Environment
- gstack
1.26.4.0 (~/.claude/skills/gstack/VERSION)
- gbrain
0.18.2
- Linux, bun runtime
Reproducer
$ gbrain --version
gbrain 0.18.2
$ gbrain --help | grep -A 1 PAGES
PAGES
get <slug> Read a page
put <slug> [< file.md] Write/update a page
$ echo "hi" | gbrain put_page --slug test --type note
Unknown command: put_page
Run gbrain --help for available commands.
Result: every transcript ingest fails. In a fresh setup with 292 transcripts queued, all 292 hit [put-error] ... Unknown command: put_page and nothing lands in the brain.
Expected
gstack-memory-ingest should use the canonical gbrain page-write subcommand and successfully ingest pages.
Actual
bin/gstack-memory-ingest.ts:768 builds the args array with the literal "put_page":
const args = [
"put_page",
"--slug", page.slug,
"--title", page.title,
"--type", page.type,
"--tags", page.tags.join(","),
];
execFileSync("gbrain", args, { ... });
put_page is the gbrain <=0.17 name. gbrain >=0.18 renamed it to put (same flags, same stdin contract for the body).
Suggested fix
One-line change at bin/gstack-memory-ingest.ts:768: "put_page" -> "put". The rest of the call site (flags, stdin body, timeouts) is unchanged. PR to follow.
Environment
1.26.4.0(~/.claude/skills/gstack/VERSION)0.18.2Reproducer
Result: every transcript ingest fails. In a fresh setup with 292 transcripts queued, all 292 hit
[put-error] ... Unknown command: put_pageand nothing lands in the brain.Expected
gstack-memory-ingestshould use the canonical gbrain page-write subcommand and successfully ingest pages.Actual
bin/gstack-memory-ingest.ts:768builds the args array with the literal"put_page":put_pageis the gbrain<=0.17name. gbrain>=0.18renamed it toput(same flags, same stdin contract for the body).Suggested fix
One-line change at
bin/gstack-memory-ingest.ts:768:"put_page"->"put". The rest of the call site (flags, stdin body, timeouts) is unchanged. PR to follow.