MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / getProjectRoot

Function getProjectRoot

source code/bootstrap/state.ts:513–515  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

511 * Use for project identity (history, skills, sessions) not file operations.
512 */
513export function getProjectRoot(): string {
514 return STATE.projectRoot
515}
516
517export function setOriginalCwd(cwd: string): void {
518 STATE.originalCwd = cwd.normalize('NFC')

Callers 15

getTimestampedHistoryFunction · 0.85
getHistoryFunction · 0.85
addToPromptHistoryFunction · 0.85
setupFunction · 0.85
getAllCommandsFunction · 0.85
SkillTool.tsFile · 0.85
getLocalAgentMemoryDirFunction · 0.85
runAgentFunction · 0.85
callFunction · 0.85
getCronFilePathFunction · 0.85
writeCronTasksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected