MCPcopy Create free account
hub / github.com/IgorWarzocha/howcode / rememberSessionPath

Function rememberSessionPath

desktop/runtime/session-path-index.ts:3–7  ·  view source on GitHub ↗
(sessionPath: string | null | undefined, cwd: string)

Source from the content-addressed store, hash-verified

1const sessionPathToCwd = new Map<string, string>()
2
3export function rememberSessionPath(sessionPath: string | null | undefined, cwd: string) {
4 if (sessionPath) {
5 sessionPathToCwd.set(sessionPath, cwd)
6 }
7}
8
9export function getMappedCwd(sessionPath: string) {
10 return sessionPathToCwd.get(sessionPath) ?? null

Callers 4

createRuntimeFunction · 0.90
publishThreadUpdateFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected