Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

chore(ingest): serial-lane rows for the two constituent serial files; drop the ingest CLI = reader the #7619 entry already refuses

garrytanf4a56f663ffe
diff --git a/scripts/serial-files.tsv b/scripts/serial-files.tsv
index a03761f778..db7e90408d 100644
--- a/scripts/serial-files.tsv
+++ b/scripts/serial-files.tsv
@@ -452,3 +452,5 @@ test/page-embedding-lease.serial.test.ts global-state global-state: process-wide
test/migrate-search-path-best-effort.serial.test.ts R2 R2: mock.module(v277 migration module) replaces modules for every file in the process
test/agent-session-speaker-8064.serial.test.ts R1 R1: sets GBRAIN_HOME and GBRAIN_SESSION_AGENT and clears DATABASE_URL and the hook env on process.env
test/launcher-lanes-bunfig.serial.test.ts global-state global-state: spawns gbrain serve subprocesses against one shared PGLite brain and its data-dir lock; withEnv scopes HOME, GBRAIN_HOME and CODEX_HOME around the bootstrap and setup writers
+test/extraction-review-door.serial.test.ts R1 R1: mutates process.env (GBRAIN_HOME) around real git subprocesses against tmp repos for the page-door review decisions
+test/ingest.serial.test.ts R1 R1: mutates process.env (GBRAIN_HOME) around real git subprocesses; also swaps the process-wide chat transport stub (__setChatTransportForTests)
diff --git a/src/commands/ingest.ts b/src/commands/ingest.ts
index d7217e9a0c..aa7a3bdb85 100644
--- a/src/commands/ingest.ts
+++ b/src/commands/ingest.ts
@@ -41,9 +41,7 @@ const VALUE_FLAGS = new Set(['--file', '--type', '--title', '--slug', '--source'
function flag(args: string[], name: string): string | undefined {
const i = args.indexOf(name);
- if (i !== -1) return args[i + 1];
- const eq = args.find(a => a.startsWith(name + '='));
- return eq ? eq.slice(name.length + 1) : undefined;
+ return i === -1 ? undefined : args[i + 1];
}
function positional(args: string[]): string | undefined {