Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

test: regenerate the exports types golden for capEvidenceToBudget's quote flag; mark the whitespace timing bound (GBRA-156 /ship Step 5)

garrytanede218645aab
diff --git a/test/fixtures/goldens/exports/types.json b/test/fixtures/goldens/exports/types.json
index 4b18e2e2bb..043f0be35b 100644
--- a/test/fixtures/goldens/exports/types.json
+++ b/test/fixtures/goldens/exports/types.json
@@ -7723,7 +7723,7 @@
"kind": "function",
"name": "capEvidenceToBudget",
"signature": [
- "<T extends SearchResult & { delivered?: DeliveredEvidence; }>(results: T[], delivery: DeliveryMeta) => T[]"
+ "<T extends SearchResult & { delivered?: DeliveredEvidence; }>(results: T[], delivery: DeliveryMeta, quote?: boolean) => T[]"
]
},
{
diff --git a/test/search/transcript-quote.test.ts b/test/search/transcript-quote.test.ts
index f1f6183b07..4350e776eb 100644
--- a/test/search/transcript-quote.test.ts
+++ b/test/search/transcript-quote.test.ts
@@ -315,6 +315,7 @@ describe('pre-landing review fixes, pass 2 (GBRA-156 /ship Step 9)', () => {
test('nested call openers with unmatched closes, and long whitespace before an anchor, stay linear', () => {
// gstack-timing-ok: the stack search and the per-block whitespace walk took about 4-5 s on these inputs
expect(time('<invoke name="a">\n'.repeat(24000) + '</parameter>\n'.repeat(24000)).ms).toBeLessThan(1000);
+ // gstack-timing-ok: the per-block whitespace walk took about 4 s on this input and linear work takes milliseconds
expect(time(ANCHOR + 'hi\n' + `<${P}invoke name="x"></${P}invoke>\n`.repeat(6000) + ' '.repeat(50000) + '\n' + BOB + 'kept').ms).toBeLessThan(1000);
});