MCPcopy Index your code
hub / github.com/garrytan/gstack / decisionPaths

Function decisionPaths

lib/gstack-decision.ts:58–66  ·  view source on GitHub ↗
(slug: string, gstackHome?: string)

Source from the content-addressed store, hash-verified

56
57/** Resolve the per-project decision store paths. Bins pass slug + GSTACK_HOME. */
58export function decisionPaths(slug: string, gstackHome?: string): DecisionPaths {
59 const home = gstackHome || process.env.GSTACK_HOME || join(homedir(), ".gstack");
60 const dir = join(home, "projects", slug || "unknown");
61 return {
62 log: join(dir, "decisions.jsonl"),
63 snapshot: join(dir, "decisions.active.json"),
64 archive: join(dir, "decisions.archive.jsonl"),
65 };
66}
67
68/**
69 * Datamark resurfaced decision text so a stored string can't masquerade as

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected