Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions setup-gbrain/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -1486,7 +1486,7 @@ Options:
After answer:
```bash
~/.claude/skills/gstack/bin/gstack-config set transcript_ingest_mode <choice>
~/.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
Expand Down
4 changes: 2 additions & 2 deletions setup-gbrain/SKILL.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -732,7 +732,7 @@ Options:
After answer:
```bash
~/.claude/skills/gstack/bin/gstack-config set transcript_ingest_mode <choice>
~/.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
Expand Down
22 changes: 22 additions & 0 deletions test/setup-gbrain-script-invocations.test.ts
Original file line number Diff line number Diff line change
@@ -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",
);
});
});