mirror of
https://github.com/garrytan/gstack.git
synced 2026-09-14 17:05:28 +02:00
fix(setup-gbrain): invoke gstack-memory-ingest/gstack-gbrain-sync via bun run + .ts
/setup-gbrain's transcript-ingest steps told the agent to run bin/gstack-memory-ingest and bin/gstack-gbrain-sync by BARE name. Neither exists — only the .ts files ship (mode 644, no bin alias) — so the agent dutifully reported 'script missing at install root' and the ingest/full- sync steps dead-ended on every host (hit live under Codex; the Claude render carries the same text). All four template sites (probe, silent-bulk, post-answer full sync, the preamble-hook incremental mention) and the four memory.md reference-doc sites now use the repo's established form: 'bun run <path>/gstack-memory- ingest.ts …' / 'bun run <path>/gstack-gbrain-sync.ts …' — matching what sync-gbrain already does. Generated SKILL.md regenerated from the template in the same commit. Re-derived from PR #2409 by @SomSamantray per the wave's screening rule (the PR edited the generated SKILL.md directly; the generated file must come from gen:skill-docs). The contributor's structural test rides along as-is: bare-invocation regexes with negative .ts lookahead and backslash- continuation coverage pin every site, so the drift can't return. The referenced-paths ratchet in test/setup-claude-skill-assets.test.ts drops its two #2250 known-broken entries — the class-2 assertion now guards these paths again. Verified against #2250's site list (template lines 690/735/784-area, all covered) plus a fresh grep: zero bare invocations remain in the template or memory.md; the one prose mention ('gstack-memory-ingest now persists…') is not an invocation and stays. Fixes #2250 Fixes #2393 Co-authored-by: SomSamantray <SomSamantray@users.noreply.github.com> Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
SomSamantray
Claude Fable 5
parent
e20c29f5c2
commit
d889453686
@@ -47,9 +47,9 @@ v1.33.0.0 — off by default. To re-enable it (adds ~4-8 min to cold runs
|
||||
on a large transcript corpus), use either:
|
||||
|
||||
```bash
|
||||
gstack-memory-ingest --bulk --scan-secrets
|
||||
bun run bin/gstack-memory-ingest.ts --bulk --scan-secrets
|
||||
# or
|
||||
GSTACK_MEMORY_INGEST_SCAN_SECRETS=1 gstack-memory-ingest --bulk
|
||||
GSTACK_MEMORY_INGEST_SCAN_SECRETS=1 bun run bin/gstack-memory-ingest.ts --bulk
|
||||
```
|
||||
|
||||
When enabled, gitleaks covers:
|
||||
@@ -155,7 +155,7 @@ verdict block. If a row is RED, the row tells you what to do.
|
||||
Common cases:
|
||||
|
||||
- **Salience block is empty** — your transcripts may not be ingested
|
||||
yet. Run `gstack-gbrain-sync --full` to do a full pass.
|
||||
yet. Run `bun run bin/gstack-gbrain-sync.ts --full` to do a full pass.
|
||||
|
||||
- **"gbrain CLI missing" in the preamble output** — gbrain isn't on
|
||||
your PATH. Run `/setup-gbrain` to install/wire it.
|
||||
@@ -166,7 +166,7 @@ Common cases:
|
||||
--pglite && gbrain import <brain-remote-clone-dir>`.
|
||||
|
||||
- **A page has stale or wrong content** — `gbrain delete_page <slug>`,
|
||||
then re-run `gstack-gbrain-sync --incremental` to re-ingest from
|
||||
then re-run `bun run bin/gstack-gbrain-sync.ts --incremental` to re-ingest from
|
||||
source if the source file is still on disk and unchanged.
|
||||
|
||||
## Privacy + audit
|
||||
|
||||
Reference in New Issue
Block a user