From 9651508168b1e92b0df7c479aff859c362ff2faf Mon Sep 17 00:00:00 2001 From: SomSamantray <> Date: Fri, 31 Jul 2026 10:01:45 +0530 Subject: [PATCH] fix(setup-gbrain): correct stale bin invocation paths in SKILL.md.tmpl gstack-memory-ingest and gstack-gbrain-sync are .ts files with no package.json bin alias, so the bare-name form used in 4 places (the probe/bulk/full/incremental invocations) fails with "No such file or directory". Corrected to bun run .ts, matching the orchestrator's own internal invocation and setup-gbrain/memory.md's already-correct example. Fixes #2393, #2250. --- setup-gbrain/SKILL.md.tmpl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/setup-gbrain/SKILL.md.tmpl b/setup-gbrain/SKILL.md.tmpl index f475987c1..8765502d0 100644 --- a/setup-gbrain/SKILL.md.tmpl +++ b/setup-gbrain/SKILL.md.tmpl @@ -687,7 +687,7 @@ curated `~/.gstack/` artifacts into gbrain so the retrieval surface Run the probe to size the operation: ```bash -~/.claude/skills/gstack/bin/gstack-memory-ingest --probe +bun run ~/.claude/skills/gstack/bin/gstack-memory-ingest.ts --probe ``` Read the output. If `Total files in window: 0`, skip — there's nothing @@ -695,7 +695,7 @@ to ingest. Set `gstack-config set transcript_ingest_mode incremental` silently and continue to Step 8. If `New (never ingested)` is < 200 AND total bytes are < 100MB: silent -bulk via `gstack-memory-ingest --bulk --quiet`. Set +bulk via `bun run ~/.claude/skills/gstack/bin/gstack-memory-ingest.ts --bulk --quiet`. Set `transcript_ingest_mode=incremental` and continue. Otherwise (the "many transcripts on disk" path): AskUserQuestion with @@ -732,14 +732,14 @@ Options: After answer: ```bash ~/.claude/skills/gstack/bin/gstack-config set transcript_ingest_mode -~/.claude/skills/gstack/bin/gstack-gbrain-sync --full --no-brain-sync +bun run ~/.claude/skills/gstack/bin/gstack-gbrain-sync.ts --full --no-brain-sync ``` (`--no-brain-sync` because Step 7 already wired that path; this just runs the code import + memory ingest stages. Brain-sync will run on the next preamble hook.) If A/D/E, ingest is incremental from this point on; preamble-boundary -hook runs `gstack-gbrain-sync --incremental --quiet` on every skill +hook runs `bun run ~/.claude/skills/gstack/bin/gstack-gbrain-sync.ts --incremental --quiet` on every skill start (cheap mtime fast-path). Reference doc for users: `setup-gbrain/memory.md` (linked from CLAUDE.md