MCPcopy Create free account
hub / github.com/Noumena-Network/code / getRemoteAgentsDir

Function getRemoteAgentsDir

src/utils/sessionStorage.ts:348–353  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

346}
347
348function getRemoteAgentsDir(): string {
349 // Same sessionProjectDir fallback as getAgentTranscriptPath — the project
350 // dir (containing the .jsonl), not the session dir, so sessionId is joined.
351 const projectDir = getSessionProjectDir() ?? getProjectDir(getOriginalCwd())
352 return join(projectDir, getSessionId(), 'remote-agents')
353}
354
355function getRemoteAgentMetadataPath(taskId: string): string {
356 return join(getRemoteAgentsDir(), `remote-agent-${taskId}.meta.json`)

Callers 2

listRemoteAgentMetadataFunction · 0.85

Calls 4

getSessionProjectDirFunction · 0.85
getOriginalCwdFunction · 0.85
getSessionIdFunction · 0.85
getProjectDirFunction · 0.70

Tested by

no test coverage detected