MCPcopy Create free account
hub / github.com/ChinaSiro/claude-code-sourcemap / setProjectRoot

Function setProjectRoot

restored-src/src/bootstrap/state.ts:523–525  ·  view source on GitHub ↗
(cwd: string)

Source from the content-addressed store, hash-verified

521 * call this — skills/history should stay anchored to where the session started.
522 */
523export function setProjectRoot(cwd: string): void {
524 STATE.projectRoot = cwd.normalize('NFC')
525}
526
527export function getCwdState(): string {
528 return STATE.cwd

Callers 2

setupFunction · 0.85

Calls 1

normalizeMethod · 0.45

Tested by

no test coverage detected