(slug: string, gstackHome?: string)
| 56 | |
| 57 | /** Resolve the per-project decision store paths. Bins pass slug + GSTACK_HOME. */ |
| 58 | export 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 |
no outgoing calls
no test coverage detected