MCPcopy Create free account
hub / github.com/garrytan/gstack / cacheFilePath

Function cacheFilePath

lib/gbrain-local-status.ts:107–112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105
106/** Cache path computed fresh on each call so tests can mutate GSTACK_HOME per case. */
107export function cacheFilePath(): string {
108 return join(
109 process.env.GSTACK_HOME || join(userHome(), ".gstack"),
110 ".gbrain-local-status-cache.json",
111 );
112}
113
114/** Honors GBRAIN_HOME (codex D11) — same resolution as buildGbrainEnv. */
115function gbrainConfigPath(env?: NodeJS.ProcessEnv): string {

Callers 3

readCacheFunction · 0.85
writeCacheFunction · 0.85

Calls 1

userHomeFunction · 0.85

Tested by

no test coverage detected