diff --git a/setup-gbrain/SKILL.md b/setup-gbrain/SKILL.md index 89c2ffbc37..aacf34ed03 100644 --- a/setup-gbrain/SKILL.md +++ b/setup-gbrain/SKILL.md @@ -1441,7 +1441,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 @@ -1486,7 +1486,7 @@ 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 diff --git a/setup-gbrain/SKILL.md.tmpl b/setup-gbrain/SKILL.md.tmpl index f48581543b..59f772e701 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 @@ -732,7 +732,7 @@ 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 diff --git a/test/setup-gbrain-script-invocations.test.ts b/test/setup-gbrain-script-invocations.test.ts new file mode 100644 index 0000000000..068cfd6807 --- /dev/null +++ b/test/setup-gbrain-script-invocations.test.ts @@ -0,0 +1,22 @@ +import { describe, expect, test } from "bun:test"; +import { readFileSync } from "fs"; +import { join } from "path"; + +const template = readFileSync( + join(import.meta.dir, "..", "setup-gbrain", "SKILL.md.tmpl"), + "utf-8", +); + +describe("setup-gbrain script invocations", () => { + test("runs the TypeScript transcript probe through Bun", () => { + expect(template).toContain( + "bun run ~/.claude/skills/gstack/bin/gstack-memory-ingest.ts --probe", + ); + }); + + test("runs the TypeScript full sync through Bun", () => { + expect(template).toContain( + "bun run ~/.claude/skills/gstack/bin/gstack-gbrain-sync.ts --full --no-brain-sync", + ); + }); +});