Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

test: regenerate export-surface goldens for the additive evidence-packing exports

garrytan431cab7df5db
diff --git a/test/fixtures/goldens/exports/runtime.json b/test/fixtures/goldens/exports/runtime.json
index f342f8e8be..aa2f2c1078 100644
--- a/test/fixtures/goldens/exports/runtime.json
+++ b/test/fixtures/goldens/exports/runtime.json
@@ -766,14 +766,19 @@
"releaseLock"
],
"./search/evidence-delivery": [
+ "AUTO_PACKINGS",
+ "AUTO_PACKING_CONFIG_KEY",
+ "DEFAULT_AUTO_PACKING",
"DEFAULT_CONVERSATION_BUDGET",
"DEFAULT_REMOTE_BUDGET_MAX",
"DEFAULT_RETURN_BUDGET",
"EVIDENCE_BLOCK_CHAR_CAP",
+ "EVIDENCE_CUT_MARKER",
"EVIDENCE_DELIVERY_MIN_SERVER_VERSION",
"EVIDENCE_FETCH_TIMEOUT_MS",
"EVIDENCE_OMISSION",
"MAX_ASSEMBLE_HITS",
+ "MIN_EXPLICIT_AUTO_BUDGET",
"RETURN_BUDGET_CONVERSATION_KEY",
"RETURN_BUDGET_DEFAULT_KEY",
"RETURN_BUDGET_MAX_REMOTE_KEY",
@@ -783,7 +788,10 @@
"THINK_RETURN_UNIT_CONFIG_KEY",
"TIMELINE_SEPARATOR",
"assembleEvidenceForHits",
+ "autoPackingValueProblem",
"capDeliveredSnippets",
+ "capEngaged",
+ "capEvidenceToBudget",
"conversationSignal",
"countEvidenceTokens",
"deliverEvidence",
@@ -794,6 +802,7 @@
"isConversationLabels",
"locateChunks",
"pageEvidenceText",
+ "parseAutoPacking",
"parseReturnUnit",
"parseReturnWindow",
"resolveEvidencePlan",
diff --git a/test/fixtures/goldens/exports/types.json b/test/fixtures/goldens/exports/types.json
index c240d79230..c7d71c047c 100644
--- a/test/fixtures/goldens/exports/types.json
+++ b/test/fixtures/goldens/exports/types.json
@@ -6645,9 +6645,24 @@
}
],
"./search/evidence-delivery": [
+ {
+ "kind": "variable",
+ "name": "AUTO_PACKINGS",
+ "signature": [
+ "readonly [\"off\", \"cap_only\", \"breadth_capped\", \"depth_first\"]"
+ ]
+ },
+ {
+ "kind": "variable",
+ "name": "AUTO_PACKING_CONFIG_KEY",
+ "signature": [
+ "\"search.auto_packing\""
+ ]
+ },
{
"kind": "interface",
"members": [
+ "auto_packing?: \"off\" | \"cap_only\" | \"breadth_capped\" | \"depth_first\" | undefined",
"budget_tokens?: number | undefined",
"caller?: { remote?: boolean; sourceId?: string; sourceIds?: string[]; excludePrivate?: boolean; } | undefined",
"detail?: \"low\" | \"medium\" | \"high\" | undefined",
@@ -6666,6 +6681,13 @@
],
"name": "AssembleEvidenceOutput"
},
+ {
+ "kind": "type",
+ "name": "AutoPacking",
+ "signature": [
+ "\"off\" | \"cap_only\" | \"breadth_capped\" | \"depth_first\""
+ ]
+ },
{
"kind": "type",
"name": "AutoReason",
@@ -6673,6 +6695,13 @@
"\"conversation_type\" | \"conversation_slug\" | \"not_conversation\" | \"conversation_over_budget\""
]
},
+ {
+ "kind": "variable",
+ "name": "DEFAULT_AUTO_PACKING",
+ "signature": [
+ "\"off\" | \"cap_only\" | \"breadth_capped\" | \"depth_first\""
+ ]
+ },
{
"kind": "variable",
"name": "DEFAULT_CONVERSATION_BUDGET",
@@ -6735,6 +6764,7 @@
"kind": "interface",
"members": [
"applied_unit: \"auto\" | \"window\" | \"chunk\" | \"section\" | \"page\"",
+ "auto_packing?: \"off\" | \"cap_only\" | \"breadth_capped\" | \"depth_first\" | undefined",
"blocks: number",
"budget_clamped?: { requested: number; max: number; } | undefined",
"budget_tokens: number",
@@ -6768,6 +6798,13 @@
"60000"
]
},
+ {
+ "kind": "variable",
+ "name": "EVIDENCE_CUT_MARKER",
+ "signature": [
+ "string"
+ ]
+ },
{
"kind": "variable",
"name": "EVIDENCE_DELIVERY_MIN_SERVER_VERSION",
@@ -6793,8 +6830,10 @@
"kind": "interface",
"members": [
"budgetClamped?: { requested: number; max: number; } | undefined",
+ "budgetExplicit: boolean",
"budgetTokens: number",
"explicitUnit: boolean",
+ "packing: \"off\" | \"cap_only\" | \"breadth_capped\" | \"depth_first\"",
"requestedUnit: \"auto\" | \"window\" | \"chunk\" | \"section\" | \"page\"",
"unit: \"auto\" | \"window\" | \"section\" | \"page\"",
"window: number"
@@ -6817,6 +6856,13 @@
"50"
]
},
+ {
+ "kind": "variable",
+ "name": "MIN_EXPLICIT_AUTO_BUDGET",
+ "signature": [
+ "32"
+ ]
+ },
{
"kind": "interface",
"members": [
@@ -6871,6 +6917,7 @@
{
"kind": "interface",
"members": [
+ "autoPacking?: unknown",
"budget: unknown",
"configKey?: string | undefined",
"legacyBudget?: boolean | undefined",
@@ -6912,6 +6959,13 @@
"(engine: BrainEngine, input: AssembleEvidenceInput) => Promise<AssembleEvidenceOutput>"
]
},
+ {
+ "kind": "function",
+ "name": "autoPackingValueProblem",
+ "signature": [
+ "(value: string) => string | null"
+ ]
+ },
{
"kind": "function",
"name": "capDeliveredSnippets",
@@ -6919,6 +6973,20 @@
"<T extends SearchResult & { delivered?: DeliveredEvidence; }>(results: T[], cap: number, delivery: DeliveryMeta) => T[]"
]
},
+ {
+ "kind": "function",
+ "name": "capEngaged",
+ "signature": [
+ "(plan: EvidencePlan) => boolean"
+ ]
+ },
+ {
+ "kind": "function",
+ "name": "capEvidenceToBudget",
+ "signature": [
+ "<T extends SearchResult & { delivered?: DeliveredEvidence; }>(results: T[], delivery: DeliveryMeta) => T[]"
+ ]
+ },
{
"kind": "function",
"name": "conversationSignal",
@@ -6989,6 +7057,13 @@
"(page: { compiled_truth: string; timeline: string; }, includeTimeline: boolean) => { text: string; timelineAt: number; }"
]
},
+ {
+ "kind": "function",
+ "name": "parseAutoPacking",
+ "signature": [
+ "(raw: unknown) => AutoPacking | undefined"
+ ]
+ },
{
"kind": "function",
"name": "parseReturnUnit",