MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getCwd

Function getCwd

src/utils/cwd.ts:26–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24 * Get the current working directory or the original working directory if the current one is not available
25 */
26export function getCwd(): string {
27 try {
28 return pwd()
29 } catch {
30 return getOriginalCwd()
31 }
32}
33

Callers 15

getStepsFunction · 0.85
submitMessageMethod · 0.85
logSessionTelemetryFunction · 0.85
startDeferredPrefetchesFunction · 0.85
runFunction · 0.85
logTenguInitFunction · 0.85
setupFunction · 0.85
resolveCwdReentryFunction · 0.85
getPathFunction · 0.85

Calls 2

pwdFunction · 0.85
getOriginalCwdFunction · 0.85

Tested by

no test coverage detected