MCPcopy Index your code
hub / github.com/callstack/agent-device / resolveSessionRequestLogPath

Function resolveSessionRequestLogPath

src/daemon/session-store.ts:104–110  ·  view source on GitHub ↗
(
  sessionDir: string,
  requestId: string | undefined,
)

Source from the content-addressed store, hash-verified

102
103/** Path to request-scoped daemon diagnostics for this session. */
104export function resolveSessionRequestLogPath(
105 sessionDir: string,
106 requestId: string | undefined,
107): string {
108 const safeRequestId = safeSessionName(requestId && requestId.length > 0 ? requestId : 'unknown');
109 return path.join(sessionDir, 'requests', `${safeRequestId}.ndjson`);
110}

Callers 3

completeOpenCommandFunction · 0.90

Calls 1

safeSessionNameFunction · 0.90

Tested by

no test coverage detected