MCPcopy Create free account
hub / github.com/xerrors/Yuxi / isTrackedPanelFilePath

Function isTrackedPanelFilePath

web/src/utils/agentPanelAutoOpen.js:4–10  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

2const USER_DATA_OUTPUTS_PREFIX = '/home/gem/user-data/outputs/'
3
4const isTrackedPanelFilePath = (path) => {
5 const normalizedPath = String(path || '')
6 return (
7 normalizedPath.startsWith(USER_DATA_UPLOADS_PREFIX) ||
8 normalizedPath.startsWith(USER_DATA_OUTPUTS_PREFIX)
9 )
10}
11
12export const shouldAutoOpenAgentPanel = (threadFiles) => {
13 if (!Array.isArray(threadFiles) || threadFiles.length === 0) return false

Callers 1

shouldAutoOpenAgentPanelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected