@remnic/core 9.3.710 → 9.3.712

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (177) hide show
  1. package/dist/access-boundary.d.ts +5 -5
  2. package/dist/access-boundary.js +4 -4
  3. package/dist/access-cli.js +7 -7
  4. package/dist/access-http.d.ts +5 -5
  5. package/dist/access-http.js +8 -8
  6. package/dist/access-mcp.d.ts +5 -5
  7. package/dist/access-mcp.js +7 -7
  8. package/dist/access-operations-batch.js +5 -5
  9. package/dist/access-operations.d.ts +5 -5
  10. package/dist/access-operations.js +6 -6
  11. package/dist/{access-service-CoIA0NrG.d.ts → access-service-Dx2rSJjH.d.ts} +3 -3
  12. package/dist/access-service.d.ts +5 -5
  13. package/dist/access-service.js +3 -3
  14. package/dist/access-surface-catalog.d.ts +5 -5
  15. package/dist/action-confidence.d.ts +1 -1
  16. package/dist/active-memory-bridge.d.ts +1 -1
  17. package/dist/active-recall.d.ts +1 -1
  18. package/dist/behavior-learner.d.ts +1 -1
  19. package/dist/behavior-signals.d.ts +1 -1
  20. package/dist/bootstrap.d.ts +4 -4
  21. package/dist/briefing.d.ts +1 -1
  22. package/dist/buffer-surprise-report.d.ts +1 -1
  23. package/dist/buffer.d.ts +1 -1
  24. package/dist/calibration.d.ts +1 -1
  25. package/dist/capabilities.d.ts +1 -1
  26. package/dist/{catalog-DQCZrBjw.d.ts → catalog-CadPvH29.d.ts} +1 -1
  27. package/dist/causal-behavior.d.ts +1 -1
  28. package/dist/causal-consolidation.d.ts +1 -1
  29. package/dist/{chunk-OK7FUX6R.js → chunk-4P5UAL3C.js} +46 -1
  30. package/dist/chunk-4P5UAL3C.js.map +1 -0
  31. package/dist/{chunk-NK3SPJLM.js → chunk-5KQCOIPW.js} +7 -7
  32. package/dist/{chunk-Y6PIFKXX.js → chunk-5QUS24F7.js} +22 -2
  33. package/dist/chunk-5QUS24F7.js.map +1 -0
  34. package/dist/{chunk-VWB3HDY6.js → chunk-A2R5NV6O.js} +4 -4
  35. package/dist/{chunk-XD33EX2F.js → chunk-AMXOCZHE.js} +3 -3
  36. package/dist/{chunk-2T4TDXPC.js → chunk-GKPIY7EQ.js} +13 -3
  37. package/dist/chunk-GKPIY7EQ.js.map +1 -0
  38. package/dist/{chunk-KOEKDZ6A.js → chunk-I3BT2IDW.js} +3 -3
  39. package/dist/{chunk-AZVHBFI3.js → chunk-OWOKOFXK.js} +9 -1
  40. package/dist/chunk-OWOKOFXK.js.map +1 -0
  41. package/dist/{chunk-EVX52NCY.js → chunk-YVWZW37D.js} +3 -3
  42. package/dist/{chunk-P6PRSI3W.js → chunk-Z3B2YW56.js} +3 -3
  43. package/dist/{chunk-JQ7XVM4V.js → chunk-ZBG4K36I.js} +2 -2
  44. package/dist/{chunk-PKE7EJMX.js → chunk-ZVDRL6SK.js} +2 -2
  45. package/dist/{cli-qex-L3GT.d.ts → cli-DTWRoJEI.d.ts} +3 -3
  46. package/dist/cli.d.ts +6 -6
  47. package/dist/cli.js +11 -11
  48. package/dist/compounding/engine.d.ts +1 -1
  49. package/dist/compounding/preference-consolidator.d.ts +1 -1
  50. package/dist/compression-optimizer.d.ts +1 -1
  51. package/dist/config.d.ts +1 -1
  52. package/dist/connectors/codex-materialize-runner.d.ts +1 -1
  53. package/dist/connectors/codex-materialize.d.ts +1 -1
  54. package/dist/connectors/index.d.ts +1 -1
  55. package/dist/consolidation-provenance-check.d.ts +1 -1
  56. package/dist/consolidation-undo.d.ts +1 -1
  57. package/dist/contradiction/index.d.ts +1 -1
  58. package/dist/conversation-index/backend.d.ts +1 -1
  59. package/dist/conversation-index/chunker.d.ts +1 -1
  60. package/dist/conversation-index/faiss-adapter.d.ts +1 -1
  61. package/dist/conversation-index/indexer.d.ts +1 -1
  62. package/dist/conversation-index/search.d.ts +1 -1
  63. package/dist/day-summary.d.ts +1 -1
  64. package/dist/delinearize.d.ts +1 -1
  65. package/dist/direct-answer-wiring.d.ts +1 -1
  66. package/dist/direct-answer.d.ts +1 -1
  67. package/dist/embedding-fallback.d.ts +1 -1
  68. package/dist/enrichment/index.d.ts +1 -1
  69. package/dist/entity-retrieval.d.ts +1 -1
  70. package/dist/entity-schema.d.ts +1 -1
  71. package/dist/explicit-capture.d.ts +4 -4
  72. package/dist/extraction-faithfulness.d.ts +1 -1
  73. package/dist/extraction-judge-telemetry.d.ts +1 -1
  74. package/dist/extraction-judge-training.d.ts +1 -1
  75. package/dist/extraction-judge.d.ts +1 -1
  76. package/dist/extraction.d.ts +1 -1
  77. package/dist/fallback-llm.d.ts +1 -1
  78. package/dist/identity-continuity.d.ts +1 -1
  79. package/dist/importance.d.ts +1 -1
  80. package/dist/index.d.ts +9 -9
  81. package/dist/index.js +12 -12
  82. package/dist/intent.d.ts +1 -1
  83. package/dist/lcm/engine.d.ts +1 -1
  84. package/dist/lcm/index.d.ts +1 -1
  85. package/dist/lcm/tools.d.ts +1 -1
  86. package/dist/lifecycle.d.ts +1 -1
  87. package/dist/live-connectors-runner.d.ts +1 -1
  88. package/dist/local-llm.d.ts +1 -1
  89. package/dist/maintenance/memory-governance.d.ts +1 -1
  90. package/dist/mcp-memory-inspector-app.d.ts +5 -5
  91. package/dist/memory-action-policy.d.ts +1 -1
  92. package/dist/memory-cache.d.ts +1 -1
  93. package/dist/memory-lifecycle-ledger-utils.d.ts +1 -1
  94. package/dist/memory-projection-store.d.ts +1 -1
  95. package/dist/memory-provenance.d.ts +1 -1
  96. package/dist/memory-worth-outcomes.d.ts +1 -1
  97. package/dist/models-json.d.ts +1 -1
  98. package/dist/namespaces/migrate.d.ts +2 -2
  99. package/dist/namespaces/principal.d.ts +1 -1
  100. package/dist/namespaces/search.d.ts +1 -1
  101. package/dist/namespaces/storage.d.ts +2 -2
  102. package/dist/native-knowledge.d.ts +1 -1
  103. package/dist/operator-toolkit.d.ts +20 -2
  104. package/dist/operator-toolkit.js +3 -1
  105. package/dist/orchestration/maintenance.d.ts +2 -2
  106. package/dist/{orchestrator-DsVKLEBk.d.ts → orchestrator-B1iVjEyc.d.ts} +3 -3
  107. package/dist/orchestrator.d.ts +4 -4
  108. package/dist/orchestrator.js +2 -2
  109. package/dist/patterns-cli.d.ts +1 -1
  110. package/dist/policy-runtime.d.ts +1 -1
  111. package/dist/provenance.d.ts +1 -1
  112. package/dist/qmd-recall-cache.d.ts +1 -1
  113. package/dist/qmd.d.ts +1 -1
  114. package/dist/recall-disclosure-escalation.d.ts +1 -1
  115. package/dist/recall-explain-renderer.d.ts +1 -1
  116. package/dist/recall-explain-renderer.js +2 -2
  117. package/dist/recall-planner-llm.d.ts +1 -1
  118. package/dist/recall-state.d.ts +1 -1
  119. package/dist/recall-tag-filter.d.ts +1 -1
  120. package/dist/recall-xray-cli.d.ts +1 -1
  121. package/dist/recall-xray-cli.js +3 -3
  122. package/dist/recall-xray-renderer.d.ts +1 -1
  123. package/dist/recall-xray-renderer.js +2 -2
  124. package/dist/recall-xray.d.ts +15 -1
  125. package/dist/recall-xray.js +1 -1
  126. package/dist/resolve-auth-token.d.ts +1 -1
  127. package/dist/retrieval-agents.d.ts +1 -1
  128. package/dist/retrieval-tiers.d.ts +1 -1
  129. package/dist/routing/engine.d.ts +1 -1
  130. package/dist/routing/store.d.ts +1 -1
  131. package/dist/search/embed-helper.d.ts +1 -1
  132. package/dist/search/factory.d.ts +1 -1
  133. package/dist/search/index.d.ts +1 -1
  134. package/dist/search/lancedb-backend.d.ts +1 -1
  135. package/dist/search/meilisearch-backend.d.ts +1 -1
  136. package/dist/search/noop-backend.d.ts +1 -1
  137. package/dist/search/orama-backend.d.ts +1 -1
  138. package/dist/search/port.d.ts +1 -1
  139. package/dist/search/remote-backend.d.ts +1 -1
  140. package/dist/{semantic-consolidation-_hVxkTuF.d.ts → semantic-consolidation-CY8uVRNJ.d.ts} +1 -1
  141. package/dist/semantic-consolidation.d.ts +2 -2
  142. package/dist/semantic-rule-verifier.d.ts +1 -1
  143. package/dist/session-observer-bands.d.ts +1 -1
  144. package/dist/session-observer-state.d.ts +1 -1
  145. package/dist/shared-context/manager.d.ts +1 -1
  146. package/dist/signal.d.ts +1 -1
  147. package/dist/storage.d.ts +1 -1
  148. package/dist/summarizer.d.ts +1 -1
  149. package/dist/summary-snapshot.d.ts +1 -1
  150. package/dist/temporal-supersession.d.ts +1 -1
  151. package/dist/temporal-validity.d.ts +1 -1
  152. package/dist/threading.d.ts +1 -1
  153. package/dist/tier-migration.d.ts +1 -1
  154. package/dist/tier-routing.d.ts +1 -1
  155. package/dist/topics.d.ts +1 -1
  156. package/dist/transcript.d.ts +1 -1
  157. package/dist/{types-DUK4vVnN.d.ts → types-Dr0Cw3L9.d.ts} +1 -1
  158. package/dist/types.d.ts +1 -1
  159. package/dist/utility-runtime.d.ts +1 -1
  160. package/package.json +2 -2
  161. package/src/operator-toolkit.ts +80 -0
  162. package/src/orchestrator.ts +13 -0
  163. package/src/provenance-surfaces.test.ts +254 -0
  164. package/src/recall-xray-renderer.ts +28 -0
  165. package/src/recall-xray.ts +32 -0
  166. package/dist/chunk-2T4TDXPC.js.map +0 -1
  167. package/dist/chunk-AZVHBFI3.js.map +0 -1
  168. package/dist/chunk-OK7FUX6R.js.map +0 -1
  169. package/dist/chunk-Y6PIFKXX.js.map +0 -1
  170. /package/dist/{chunk-NK3SPJLM.js.map → chunk-5KQCOIPW.js.map} +0 -0
  171. /package/dist/{chunk-VWB3HDY6.js.map → chunk-A2R5NV6O.js.map} +0 -0
  172. /package/dist/{chunk-XD33EX2F.js.map → chunk-AMXOCZHE.js.map} +0 -0
  173. /package/dist/{chunk-KOEKDZ6A.js.map → chunk-I3BT2IDW.js.map} +0 -0
  174. /package/dist/{chunk-EVX52NCY.js.map → chunk-YVWZW37D.js.map} +0 -0
  175. /package/dist/{chunk-P6PRSI3W.js.map → chunk-Z3B2YW56.js.map} +0 -0
  176. /package/dist/{chunk-JQ7XVM4V.js.map → chunk-ZBG4K36I.js.map} +0 -0
  177. /package/dist/{chunk-PKE7EJMX.js.map → chunk-ZVDRL6SK.js.map} +0 -0
@@ -14,10 +14,10 @@ import {
14
14
  } from "./chunk-NUWZFSKC.js";
15
15
  import {
16
16
  getOperation
17
- } from "./chunk-PKE7EJMX.js";
17
+ } from "./chunk-ZVDRL6SK.js";
18
18
  import {
19
19
  EngramAccessInputError
20
- } from "./chunk-EVX52NCY.js";
20
+ } from "./chunk-YVWZW37D.js";
21
21
  import {
22
22
  projectTagProjectId
23
23
  } from "./chunk-SHRRWOVY.js";
@@ -3359,4 +3359,4 @@ ${body}`;
3359
3359
  export {
3360
3360
  EngramMcpServer
3361
3361
  };
3362
- //# sourceMappingURL=chunk-KOEKDZ6A.js.map
3362
+ //# sourceMappingURL=chunk-I3BT2IDW.js.map
@@ -189,6 +189,14 @@ function cloneResult(result) {
189
189
  if (provenance !== void 0) {
190
190
  out.provenance = provenance;
191
191
  }
192
+ const ss = result.sourceSpan;
193
+ if (ss && typeof ss.quote === "string" && typeof ss.observedAt === "string" && (ss.provenance === "verified" || ss.provenance === "unverified" || ss.provenance === "none")) {
194
+ out.sourceSpan = {
195
+ quote: ss.quote,
196
+ observedAt: ss.observedAt,
197
+ provenance: ss.provenance
198
+ };
199
+ }
192
200
  return out;
193
201
  }
194
202
  function summarizeDisclosureTokens(results) {
@@ -269,4 +277,4 @@ export {
269
277
  RecallXrayBuilder,
270
278
  summarizeDisclosureTokens
271
279
  };
272
- //# sourceMappingURL=chunk-AZVHBFI3.js.map
280
+ //# sourceMappingURL=chunk-OWOKOFXK.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/recall-xray.ts"],"sourcesContent":["/**\n * Recall X-ray snapshot schema (issue #570, PR 1).\n *\n * The X-ray surface is the unified, per-result attribution document that\n * merges the tier that served each memory, its score decomposition, any\n * graph path, an audit entry id, and the exact filter/eligibility ladder\n * that either admitted or rejected each candidate. This file defines the\n * schema and an in-memory builder + builder-state helper.\n *\n * Scope for PR 1 (this slice):\n * - Types only + pure builder functions (no IO, no rendering).\n * - Orchestrator plumbing captures a snapshot when the caller passes\n * `xrayCapture: true`. No behavior change when the flag is absent.\n * - NO new public surfaces here — CLI/HTTP/MCP land in later slices.\n *\n * The shared renderer lands in PR 2 at `recall-xray-renderer.ts`. Do not\n * fork formatting logic into other surfaces; extend the renderer.\n */\n\nimport { randomUUID } from \"node:crypto\";\n\nimport {\n normalizeRetrievedMemoryProvenance,\n type RetrievedMemoryProvenance,\n} from \"./memory-provenance.js\";\nimport type { RecallDisclosure, RecallTierExplain } from \"./types.js\";\nimport { isRecallDisclosure } from \"./types.js\";\n\n/**\n * Estimate token cost of a payload at the rough ~4 chars/token English\n * heuristic. Non-negative integer; returns 0 for empty / null input.\n * Used by recall surfaces to attach `estimatedTokens` to X-ray results\n * (issue #677 PR 3/4). Identical to the private heuristic in\n * `chunking.ts`; kept self-contained here so X-ray callers don't pull\n * in chunking internals.\n */\nexport function estimateRecallTokens(text: string | null | undefined): number {\n if (typeof text !== \"string\" || text.length === 0) return 0;\n return Math.ceil(text.length / 4);\n}\n\n/**\n * Aggregated per-disclosure token spend summary, computed by the\n * renderer from a snapshot's results. Non-negative integers.\n */\nexport interface RecallXrayDisclosureSummary {\n chunk: { count: number; estimatedTokens: number };\n section: { count: number; estimatedTokens: number };\n raw: { count: number; estimatedTokens: number };\n /** Number of results without a recorded disclosure level. */\n unspecified: { count: number; estimatedTokens: number };\n}\n\n/**\n * Which retrieval source produced a given result. This is the X-ray\n * tier ladder called out in issue #570 and is *distinct* from the\n * `RetrievalTier` enum (which describes issue #518's tier-explain\n * block). Keeping the sets separate lets the two observability\n * surfaces evolve without conflating their vocabularies:\n *\n * - `RetrievalTier` — direct-answer eligibility ladder.\n * - `RecallXrayServedBy` — which source materialized each result.\n */\nexport type RecallXrayServedBy =\n | \"direct-answer\"\n | \"hybrid\"\n | \"graph\"\n | \"recent-scan\"\n | \"procedural\"\n | \"review-context\"\n | \"lcm-file-parts\"\n | \"lcm-tool-parts\";\n\nexport const RECALL_XRAY_SERVED_BY_VALUES: readonly RecallXrayServedBy[] = [\n \"direct-answer\",\n \"hybrid\",\n \"graph\",\n \"recent-scan\",\n \"procedural\",\n \"review-context\",\n \"lcm-file-parts\",\n \"lcm-tool-parts\",\n] as const;\n\nexport function isRecallXrayServedBy(\n value: unknown,\n): value is RecallXrayServedBy {\n return (\n typeof value === \"string\" &&\n (RECALL_XRAY_SERVED_BY_VALUES as readonly string[]).includes(value)\n );\n}\n\n/**\n * Score decomposition for a single X-ray result.\n *\n * All fields are optional because different tiers populate different\n * terms: `hybrid` reports vector + bm25 + mmr penalty, `direct-answer`\n * reports importance + tier prior, etc. The only guaranteed field is\n * `final`, which is the post-combination score used for ordering.\n */\nexport interface RecallXrayScoreDecomposition {\n vector?: number;\n bm25?: number;\n importance?: number;\n mmrPenalty?: number;\n tierPrior?: number;\n /** Additive boost from `reinforcement_count` frontmatter (issue #687 PR 3/4). */\n reinforcementBoost?: number;\n final: number;\n}\n\n/**\n * Per-result breakdown inside an X-ray snapshot.\n */\nexport interface RecallXrayResult {\n memoryId: string;\n path: string;\n servedBy: RecallXrayServedBy;\n scoreDecomposition: RecallXrayScoreDecomposition;\n graphPath?: string[];\n /**\n * Issue #681 PR 3/3 — per-edge confidence values aligned with\n * `graphPath`. When present, `graphEdgeConfidences[i]` is the\n * confidence of the edge between `graphPath[i]` and `graphPath[i+1]`,\n * so the array length is one less than `graphPath`. Legacy edges\n * without a recorded confidence render as `1.0`. Operators use this\n * to attribute floor-pruning and PageRank ranking decisions back to\n * specific edges. The renderer drops the line when the array is\n * empty or absent so legacy snapshots round-trip cleanly.\n */\n graphEdgeConfidences?: number[];\n auditEntryId?: string;\n /** Human-readable list of filters the candidate *passed*. */\n admittedBy: string[];\n /**\n * First filter that *would have* rejected the candidate, or undefined\n * when the candidate was admitted without a rejection trace. When\n * present, `admittedBy` may still contain filters the candidate passed\n * before the rejecting gate; consumers should render both.\n */\n rejectedBy?: string;\n /**\n * Disclosure depth used to render this result's payload (issue #677\n * PR 3/4). Mirrors the per-result disclosure already exposed in the\n * recall response so X-ray consumers can attribute token spend to\n * the depth that produced it.\n */\n disclosure?: RecallDisclosure;\n /**\n * Estimated token cost of the rendered payload at the chosen\n * disclosure depth. Non-negative integer. Computed by callers via\n * `estimateRecallTokens(text)`; the renderer aggregates these into\n * a per-disclosure summary so operators can see where their budget\n * went.\n */\n estimatedTokens?: number;\n /**\n * Free-form tags from the memory's YAML frontmatter (issue #689 PR 3/3).\n * Populated by the X-ray capture path when the caller passes a `tags`\n * filter so per-result tags are available alongside the filter trace\n * in `snapshot.filters`. Also populated without a filter when the\n * orchestrator decorates results via `xrayCapture: true` so all X-ray\n * consumers can inspect memory labels without a separate storage read.\n * Absent (not `[]`) when the frontmatter has no tags or the memory\n * could not be read.\n */\n tags?: string[];\n /**\n * Per-result memory provenance and safety context. Populated by recall\n * capture when the memory frontmatter was already loaded by retrieval.\n */\n provenance?: RetrievedMemoryProvenance;\n /**\n * Claim-level provenance span (issue #1575 PR 3). The first source excerpt\n * backing this memory, surfaced so X-ray consumers can see the literal\n * utterance each fact derives from alongside retrieval provenance. Absent\n * when the memory carries no source spans (legacy or `provenance: \"none\"`).\n */\n sourceSpan?: {\n /** Verbatim quote excerpt (capped at write time by `provenance.maxQuoteChars`). */\n quote: string;\n /** ISO timestamp of the source turn. */\n observedAt: string;\n /** Coarse strength tag from the frontmatter. */\n provenance: \"verified\" | \"unverified\" | \"none\";\n };\n}\n\n/**\n * Trace entry for a filter the orchestrator evaluated during recall.\n * Captures the name of the filter, how many candidates it saw, and how\n * many it let through. Used by X-ray consumers to render the filter\n * ladder above the per-result breakdown.\n */\nexport interface RecallFilterTrace {\n name: string;\n considered: number;\n admitted: number;\n /** Optional human-readable reason for any rejections. */\n reason?: string;\n}\n\n/**\n * Peer-profile injection annotation (issue #679 completion).\n *\n * When `peerProfileRecallEnabled` is true and a peer is registered for\n * the session, the orchestrator injects a `## Peer Profile` section into\n * the recall context. This annotation records which peer was injected and\n * how many profile fields were included so operators can correlate\n * retrieval quality with peer-context enrichment.\n *\n * `null` means no peer profile was injected (peer not registered, feature\n * disabled, or peer has no profile fields).\n */\nexport interface RecallXrayPeerProfileInjection {\n /** The peer id whose profile was injected. */\n peerId: string;\n /**\n * Number of profile fields included after the `peerProfileRecallMaxFields`\n * cap was applied. Zero means the profile existed but had no fields.\n */\n fieldsInjected: number;\n}\n\n/**\n * The unified X-ray snapshot. CLI, HTTP, and MCP surfaces all render\n * this same shape through the shared renderer (CLAUDE.md rule 22).\n */\nexport interface RecallXraySnapshot {\n /** Stable v1 tag so downstream consumers can version-gate their parsers. */\n schemaVersion: \"1\";\n query: string;\n /** UUID minted per capture; unique across snapshots within a process. */\n snapshotId: string;\n /** Epoch milliseconds the snapshot was captured. */\n capturedAt: number;\n /**\n * Tier-explain block from issue #518, carried verbatim when present.\n * `null` means direct-answer tier did not run (disabled, or another\n * tier served the query).\n */\n tierExplain: RecallTierExplain | null;\n results: RecallXrayResult[];\n filters: RecallFilterTrace[];\n /**\n * Character budget accounting for the final assembled recall payload.\n * `used` is the rendered-context length; `chars` is the cap. Both are\n * non-negative integers in `[0, 2**31)`.\n */\n budget: { chars: number; used: number };\n /** Optional session-scope fields carried for downstream filtering. */\n sessionKey?: string;\n namespace?: string;\n traceId?: string;\n /**\n * Peer-profile injection metadata (issue #679 completion).\n * Non-null when `peerProfileRecallEnabled` is true and a peer profile\n * was successfully injected into this recall's context. `null` (or\n * absent) means no peer profile was injected.\n */\n peerProfileInjection?: RecallXrayPeerProfileInjection | null;\n}\n\n// ─── Builder ──────────────────────────────────────────────────────────────\n\nexport interface BuildXraySnapshotInput {\n query: string;\n tierExplain?: RecallTierExplain | null;\n results?: RecallXrayResult[];\n filters?: RecallFilterTrace[];\n budget?: { chars?: number; used?: number };\n sessionKey?: string;\n namespace?: string;\n traceId?: string;\n /** Peer-profile injection metadata (issue #679 completion). */\n peerProfileInjection?: RecallXrayPeerProfileInjection | null;\n /** Optional injected timestamp for deterministic tests. */\n now?: () => number;\n /** Optional injected id generator for deterministic tests. */\n snapshotIdGenerator?: () => string;\n}\n\n/**\n * Build a `RecallXraySnapshot` from explicit input fields. Pure\n * function; safe to call from anywhere. All array/object inputs are\n * shallow-copied so caller mutation after build cannot tear the\n * returned snapshot.\n */\nexport function buildXraySnapshot(\n input: BuildXraySnapshotInput,\n): RecallXraySnapshot {\n const now = input.now ?? Date.now;\n const snapshotIdGenerator = input.snapshotIdGenerator ?? randomUUID;\n\n const results = Array.isArray(input.results)\n ? input.results.map(cloneResult)\n : [];\n const filters = Array.isArray(input.filters)\n ? input.filters.map(cloneFilter)\n : [];\n\n const budgetChars = nonNegativeInt(input.budget?.chars);\n const budgetUsed = nonNegativeInt(input.budget?.used);\n\n const tierExplain =\n input.tierExplain && typeof input.tierExplain === \"object\"\n ? cloneTierExplain(input.tierExplain)\n : null;\n\n // Peer-profile injection annotation (issue #679 completion).\n // Deep-copy via structuredClone so the caller can't mutate the snapshot\n // after build. Accept null explicitly (no injection) or a valid object.\n let peerProfileInjection: RecallXrayPeerProfileInjection | null | undefined;\n if (input.peerProfileInjection && typeof input.peerProfileInjection === \"object\") {\n const raw = input.peerProfileInjection;\n const peerId = nonEmptyString(raw.peerId);\n if (peerId !== undefined) {\n peerProfileInjection = {\n peerId,\n fieldsInjected: nonNegativeInt(raw.fieldsInjected),\n };\n }\n } else if (input.peerProfileInjection === null) {\n peerProfileInjection = null;\n }\n\n const out: RecallXraySnapshot = {\n schemaVersion: \"1\",\n query: typeof input.query === \"string\" ? input.query : \"\",\n snapshotId: snapshotIdGenerator(),\n capturedAt: now(),\n tierExplain,\n results,\n filters,\n budget: { chars: budgetChars, used: budgetUsed },\n sessionKey: nonEmptyString(input.sessionKey),\n namespace: nonEmptyString(input.namespace),\n traceId: nonEmptyString(input.traceId),\n };\n if (peerProfileInjection !== undefined) {\n out.peerProfileInjection = peerProfileInjection;\n }\n return out;\n}\n\n/**\n * Mutable builder used by the orchestrator to accumulate X-ray fields\n * as recall progresses. Call `build()` to get the finalized\n * immutable-ish snapshot. All inputs are validated at insert time so\n * a malformed entry cannot poison the snapshot later.\n */\nexport class RecallXrayBuilder {\n private readonly query: string;\n private readonly sessionKey: string | undefined;\n private namespace: string | undefined;\n private traceId: string | undefined;\n private tierExplain: RecallTierExplain | null = null;\n private readonly results: RecallXrayResult[] = [];\n private readonly filters: RecallFilterTrace[] = [];\n private budgetChars = 0;\n private budgetUsed = 0;\n private peerProfileInjection: RecallXrayPeerProfileInjection | null | undefined;\n\n constructor(opts: {\n query: string;\n sessionKey?: string;\n namespace?: string;\n traceId?: string;\n }) {\n this.query = typeof opts.query === \"string\" ? opts.query : \"\";\n this.sessionKey = nonEmptyString(opts.sessionKey);\n this.namespace = nonEmptyString(opts.namespace);\n this.traceId = nonEmptyString(opts.traceId);\n }\n\n setNamespace(namespace: string | undefined): void {\n this.namespace = nonEmptyString(namespace);\n }\n\n setTraceId(traceId: string | undefined): void {\n this.traceId = nonEmptyString(traceId);\n }\n\n setTierExplain(tierExplain: RecallTierExplain | null | undefined): void {\n this.tierExplain =\n tierExplain && typeof tierExplain === \"object\"\n ? cloneTierExplain(tierExplain)\n : null;\n }\n\n setBudget(budget: { chars?: number; used?: number }): void {\n this.budgetChars = nonNegativeInt(budget.chars);\n this.budgetUsed = nonNegativeInt(budget.used);\n }\n\n /**\n * Record peer-profile injection metadata for this recall snapshot\n * (issue #679 completion). Pass `null` to explicitly record that no\n * injection happened (feature enabled but no peer / no profile fields).\n */\n setPeerProfileInjection(\n injection: RecallXrayPeerProfileInjection | null,\n ): void {\n this.peerProfileInjection = injection;\n }\n\n recordResult(result: RecallXrayResult): void {\n this.results.push(cloneResult(result));\n }\n\n recordFilter(filter: RecallFilterTrace): void {\n this.filters.push(cloneFilter(filter));\n }\n\n build(opts: {\n now?: () => number;\n snapshotIdGenerator?: () => string;\n } = {}): RecallXraySnapshot {\n return buildXraySnapshot({\n query: this.query,\n tierExplain: this.tierExplain,\n results: this.results,\n filters: this.filters,\n budget: { chars: this.budgetChars, used: this.budgetUsed },\n sessionKey: this.sessionKey,\n namespace: this.namespace,\n traceId: this.traceId,\n peerProfileInjection: this.peerProfileInjection,\n now: opts.now,\n snapshotIdGenerator: opts.snapshotIdGenerator,\n });\n }\n}\n\n// ─── Internals ────────────────────────────────────────────────────────────\n\nfunction cloneResult(result: RecallXrayResult): RecallXrayResult {\n if (!result || typeof result !== \"object\") {\n throw new TypeError(\"RecallXrayResult must be an object\");\n }\n if (!isRecallXrayServedBy(result.servedBy)) {\n throw new TypeError(\n `RecallXrayResult.servedBy must be one of ${RECALL_XRAY_SERVED_BY_VALUES.join(\n \", \",\n )}; got ${JSON.stringify(result.servedBy)}`,\n );\n }\n const memoryId = typeof result.memoryId === \"string\" ? result.memoryId : \"\";\n const path = typeof result.path === \"string\" ? result.path : \"\";\n const admittedBy = Array.isArray(result.admittedBy)\n ? result.admittedBy.filter((x): x is string => typeof x === \"string\")\n : [];\n const graphPath = Array.isArray(result.graphPath)\n ? result.graphPath.filter((x): x is string => typeof x === \"string\")\n : undefined;\n // Issue #681 PR 3/3 — per-edge confidences alongside graph path.\n // Each entry is clamped into [0, 1]; the array is rejected wholesale\n // when alignment cannot be verified so downstream surfaces can rely\n // on `graphEdgeConfidences[i]` describing the edge between\n // `graphPath[i]` and `graphPath[i+1]`.\n //\n // Cursor review (#735): the input array length MUST match\n // `graphPath.length - 1` *before* any per-element filtering. The\n // earlier implementation skipped non-finite entries via `continue`\n // and then length-checked the cleaned array — that would silently\n // shift surviving values to earlier positions. Example: input\n // `[0.5, NaN, 0.7]` for a 3-edge path would collapse to\n // `[0.5, 0.7]`, length-check would pass against `expected = 2`, and\n // the renderer would mis-attribute `0.7` to edge B→C when it really\n // came from edge C→D. Reject on either size mismatch or any\n // non-finite entry so misalignment is impossible.\n let graphEdgeConfidences: number[] | undefined;\n if (Array.isArray(result.graphEdgeConfidences) && graphPath && graphPath.length > 1) {\n const expected = graphPath.length - 1;\n const raw = result.graphEdgeConfidences;\n if (raw.length === expected) {\n const cleaned: number[] = [];\n let allFinite = true;\n for (const value of raw) {\n if (typeof value !== \"number\" || !Number.isFinite(value)) {\n allFinite = false;\n break;\n }\n cleaned.push(Math.min(1, Math.max(0, value)));\n }\n if (allFinite) {\n graphEdgeConfidences = cleaned;\n }\n }\n }\n const auditEntryId = nonEmptyString(result.auditEntryId);\n const rejectedBy = nonEmptyString(result.rejectedBy);\n const scoreDecomposition = cloneScoreDecomposition(result.scoreDecomposition);\n const out: RecallXrayResult = {\n memoryId,\n path,\n servedBy: result.servedBy,\n scoreDecomposition,\n admittedBy,\n };\n if (graphPath !== undefined) out.graphPath = graphPath;\n if (graphEdgeConfidences !== undefined) {\n out.graphEdgeConfidences = graphEdgeConfidences;\n }\n if (auditEntryId !== undefined) out.auditEntryId = auditEntryId;\n if (rejectedBy !== undefined) out.rejectedBy = rejectedBy;\n // Disclosure + token telemetry (issue #677 PR 3/4). Only attach when\n // present and well-formed; unknown disclosure values are dropped so a\n // bad caller can't poison downstream renderers. Uses the shared\n // `isRecallDisclosure` guard so adding a fourth disclosure level\n // requires touching only `types.ts`.\n if (isRecallDisclosure(result.disclosure)) {\n out.disclosure = result.disclosure;\n }\n if (\n typeof result.estimatedTokens === \"number\" &&\n Number.isFinite(result.estimatedTokens) &&\n result.estimatedTokens >= 0\n ) {\n out.estimatedTokens = Math.floor(result.estimatedTokens);\n }\n // Tags from frontmatter (issue #689 PR 3/3). Normalize identically to\n // the recall-surface path: trim and drop empty strings so consumers can\n // compare tags directly without a secondary normalization step.\n if (Array.isArray(result.tags)) {\n const cleanedTags = result.tags\n .filter((t): t is string => typeof t === \"string\")\n .map((t) => t.trim())\n .filter((t) => t.length > 0);\n if (cleanedTags.length > 0) {\n out.tags = cleanedTags;\n }\n }\n const provenance = normalizeRetrievedMemoryProvenance(result.provenance);\n if (provenance !== undefined) {\n out.provenance = provenance;\n }\n // Claim-level provenance span (#1575 PR 3). Deep-copy the three scalar\n // fields so the snapshot returned by getLastXraySnapshot is independent\n // of the caller's object (matches the structuredClone contract).\n const ss = result.sourceSpan;\n if (\n ss &&\n typeof ss.quote === \"string\" &&\n typeof ss.observedAt === \"string\" &&\n (ss.provenance === \"verified\" ||\n ss.provenance === \"unverified\" ||\n ss.provenance === \"none\")\n ) {\n out.sourceSpan = {\n quote: ss.quote,\n observedAt: ss.observedAt,\n provenance: ss.provenance,\n };\n }\n return out;\n}\n\n/**\n * Summarize per-disclosure token spend across an X-ray snapshot's\n * results. Pure helper — used by the markdown renderer to print a\n * \"per-disclosure token spend\" line and exposed for tests / surfaces.\n */\nexport function summarizeDisclosureTokens(\n results: ReadonlyArray<RecallXrayResult>,\n): RecallXrayDisclosureSummary {\n const summary: RecallXrayDisclosureSummary = {\n chunk: { count: 0, estimatedTokens: 0 },\n section: { count: 0, estimatedTokens: 0 },\n raw: { count: 0, estimatedTokens: 0 },\n unspecified: { count: 0, estimatedTokens: 0 },\n };\n for (const result of results) {\n const tokens =\n typeof result.estimatedTokens === \"number\" &&\n Number.isFinite(result.estimatedTokens) &&\n result.estimatedTokens >= 0\n ? Math.floor(result.estimatedTokens)\n : 0;\n const bucket = isRecallDisclosure(result.disclosure)\n ? result.disclosure\n : \"unspecified\";\n summary[bucket].count += 1;\n summary[bucket].estimatedTokens += tokens;\n }\n return summary;\n}\n\nfunction cloneFilter(filter: RecallFilterTrace): RecallFilterTrace {\n if (!filter || typeof filter !== \"object\") {\n throw new TypeError(\"RecallFilterTrace must be an object\");\n }\n const out: RecallFilterTrace = {\n name: typeof filter.name === \"string\" ? filter.name : \"\",\n considered: nonNegativeInt(filter.considered),\n admitted: nonNegativeInt(filter.admitted),\n };\n const reason = nonEmptyString(filter.reason);\n if (reason !== undefined) out.reason = reason;\n return out;\n}\n\nfunction cloneScoreDecomposition(\n value: RecallXrayScoreDecomposition | undefined,\n): RecallXrayScoreDecomposition {\n if (!value || typeof value !== \"object\") {\n return { final: 0 };\n }\n const out: RecallXrayScoreDecomposition = {\n final: finiteNumber(value.final) ?? 0,\n };\n const vector = finiteNumber(value.vector);\n if (vector !== undefined) out.vector = vector;\n const bm25 = finiteNumber(value.bm25);\n if (bm25 !== undefined) out.bm25 = bm25;\n const importance = finiteNumber(value.importance);\n if (importance !== undefined) out.importance = importance;\n const mmrPenalty = finiteNumber(value.mmrPenalty);\n if (mmrPenalty !== undefined) out.mmrPenalty = mmrPenalty;\n const tierPrior = finiteNumber(value.tierPrior);\n if (tierPrior !== undefined) out.tierPrior = tierPrior;\n const reinforcementBoost = finiteNumber(value.reinforcementBoost);\n if (reinforcementBoost !== undefined && reinforcementBoost > 0) {\n out.reinforcementBoost = reinforcementBoost;\n }\n return out;\n}\n\nfunction cloneTierExplain(tierExplain: RecallTierExplain): RecallTierExplain {\n // Use structuredClone so future RecallTierExplain additions do not\n // silently share references through hand-enumerated fields. The\n // payload is JSON-shaped.\n return structuredClone(tierExplain);\n}\n\nfunction nonNegativeInt(value: unknown): number {\n if (typeof value !== \"number\" || !Number.isFinite(value)) return 0;\n if (value <= 0) return 0;\n return Math.floor(value);\n}\n\nfunction finiteNumber(value: unknown): number | undefined {\n if (typeof value !== \"number\" || !Number.isFinite(value)) return undefined;\n return value;\n}\n\nfunction nonEmptyString(value: unknown): string | undefined {\n if (typeof value !== \"string\") return undefined;\n const trimmed = value.trim();\n if (trimmed.length === 0) return undefined;\n return trimmed;\n}\n"],"mappings":";;;;;;;;AAmBA,SAAS,kBAAkB;AAiBpB,SAAS,qBAAqB,MAAyC;AAC5E,MAAI,OAAO,SAAS,YAAY,KAAK,WAAW,EAAG,QAAO;AAC1D,SAAO,KAAK,KAAK,KAAK,SAAS,CAAC;AAClC;AAkCO,IAAM,+BAA8D;AAAA,EACzE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAEO,SAAS,qBACd,OAC6B;AAC7B,SACE,OAAO,UAAU,YAChB,6BAAmD,SAAS,KAAK;AAEtE;AAsMO,SAAS,kBACd,OACoB;AACpB,QAAM,MAAM,MAAM,OAAO,KAAK;AAC9B,QA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,aAAa,MAAM,UAAU;AAChD,MAAI,eAAe,OAAW,KAAI,aAAa;AAC/C,QAAM,YAAY,aAAa,MAAM,SAAS;AAC9C,MAAI,cAAc,OAAW,KAAI,YAAY;AAC7C,QAAM,qBAAqB,aAAa,MAAM,kBAAkB;AAChE,MAAI,uBAAuB,UAAa,qBAAqB,GAAG;AAC9D,QAAI,qBAAqB;AAAA,EAC3B;AACA,SAAO;AACT;AAEA,SAAS,iBAAiB,aAAmD;AAI3E,SAAO,gBAAgB,WAAW;AACpC;AAEA,SAAS,eAAe,OAAwB;AAC9C,MAAI,OAAO,UAAU,YAAY,CAAC,OAAO,SAAS,KAAK,EAAG,QAAO;AACjE,MAAI,SAAS,EAAG,QAAO;AACvB,SAAO,KAAK,MAAM,KAAK;AACzB;AAEA,SAAS,aAAa,OAAoC;AACxD,MAAI,OAAO,UAAU,YAAY,CAAC,OAAO,SAAS,KAAK,EAAG,QAAO;AACjE,SAAO;AACT;AAEA,SAAS,eAAe,OAAoC;AAC1D,MAAI,OAAO,UAAU,SAAU,QAAO;AACtC,QAAM,UAAU,MAAM,KAAK;AAC3B,MAAI,QAAQ,WAAW,EAAG,QAAO;AACjC,SAAO;AACT;","names":[]}
@@ -22,7 +22,7 @@ import {
22
22
  } from "./chunk-H7XKCNR6.js";
23
23
  import {
24
24
  toRecallExplainJson
25
- } from "./chunk-Y6PIFKXX.js";
25
+ } from "./chunk-5QUS24F7.js";
26
26
  import {
27
27
  buildProposedActions,
28
28
  buildQualityScore,
@@ -58,7 +58,7 @@ import {
58
58
  } from "./chunk-FF4KLI5W.js";
59
59
  import {
60
60
  estimateRecallTokens
61
- } from "./chunk-AZVHBFI3.js";
61
+ } from "./chunk-OWOKOFXK.js";
62
62
  import {
63
63
  namespaceCollectionName
64
64
  } from "./chunk-K22IJO4R.js";
@@ -9701,4 +9701,4 @@ export {
9701
9701
  shapeMemorySummary,
9702
9702
  EngramAccessService
9703
9703
  };
9704
- //# sourceMappingURL=chunk-EVX52NCY.js.map
9704
+ //# sourceMappingURL=chunk-YVWZW37D.js.map
@@ -3,14 +3,14 @@ import {
3
3
  } from "./chunk-NUWZFSKC.js";
4
4
  import {
5
5
  defineOperation
6
- } from "./chunk-PKE7EJMX.js";
6
+ } from "./chunk-ZVDRL6SK.js";
7
7
  import {
8
8
  CorrectionContractError,
9
9
  DECISION_SUBCOMMANDS,
10
10
  DELTA_SUBCOMMANDS,
11
11
  EngramAccessInputError,
12
12
  isCodegraphToolName
13
- } from "./chunk-EVX52NCY.js";
13
+ } from "./chunk-YVWZW37D.js";
14
14
 
15
15
  // src/access-operations.ts
16
16
  import { z } from "zod";
@@ -459,4 +459,4 @@ export {
459
459
  codegraphIngestTracesOperation,
460
460
  REGISTERED_OPERATIONS
461
461
  };
462
- //# sourceMappingURL=chunk-P6PRSI3W.js.map
462
+ //# sourceMappingURL=chunk-Z3B2YW56.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  parseXrayFormat
3
- } from "./chunk-Y6PIFKXX.js";
3
+ } from "./chunk-5QUS24F7.js";
4
4
  import {
5
5
  RECALL_DISCLOSURE_LEVELS,
6
6
  isRecallDisclosure
@@ -50,4 +50,4 @@ export {
50
50
  parseXrayBudgetFlag,
51
51
  parseXrayCliOptions
52
52
  };
53
- //# sourceMappingURL=chunk-JQ7XVM4V.js.map
53
+ //# sourceMappingURL=chunk-ZBG4K36I.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  EngramAccessInputError
3
- } from "./chunk-EVX52NCY.js";
3
+ } from "./chunk-YVWZW37D.js";
4
4
  import {
5
5
  expandTildePath
6
6
  } from "./chunk-EYIEWJNI.js";
@@ -104,4 +104,4 @@ export {
104
104
  listRegisteredOperations,
105
105
  __resetRegistryForTest
106
106
  };
107
- //# sourceMappingURL=chunk-PKE7EJMX.js.map
107
+ //# sourceMappingURL=chunk-ZVDRL6SK.js.map
@@ -1,13 +1,13 @@
1
1
  import { CompoundingPromotionReport } from './compounding/engine.js';
2
2
  import { MigrateObservationsResult } from './maintenance/migrate-observations.js';
3
3
  import { MemoryGovernanceRunResult, MemoryGovernanceSummary, MemoryGovernanceMetrics, MemoryGovernanceQualityScore, MemoryGovernanceReviewQueueEntry, MemoryGovernanceAppliedAction, MemoryGovernanceTransitionReport, MemoryGovernanceManifest, MemoryGovernanceRestoreManifest, RestoreMemoryGovernanceRunResult } from './maintenance/memory-governance.js';
4
- import { h as MemoryStatus, g as MemoryFile, B as BehaviorSignalEvent, Q as QmdSearchResult, W as MemoryActionEvent, m as MemoryLifecycleEvent } from './types-DUK4vVnN.js';
4
+ import { f as MemoryStatus, g as MemoryFile, B as BehaviorSignalEvent, Q as QmdSearchResult, W as MemoryActionEvent, m as MemoryLifecycleEvent } from './types-Dr0Cw3L9.js';
5
5
  import { RebuildMemoryProjectionResult, RepairMemoryProjectionResult, VerifyMemoryProjectionResult } from './maintenance/rebuild-memory-projection.js';
6
6
  import { RebuildMemoryLifecycleLedgerResult } from './maintenance/rebuild-memory-lifecycle-ledger.js';
7
7
  import { RebuildObservationsResult } from './maintenance/rebuild-observations.js';
8
8
  import { ArchiveObservationsResult } from './maintenance/archive-observations.js';
9
9
  import { Writable, Readable } from 'node:stream';
10
- import { O as Orchestrator } from './orchestrator-DsVKLEBk.js';
10
+ import { O as Orchestrator } from './orchestrator-B1iVjEyc.js';
11
11
  import { ReplayRunSummary } from './replay/runner.js';
12
12
  import { ReplaySource, ReplayTurn } from './replay/types.js';
13
13
  import { b as BulkImportResult } from './types-gb_SNtjR.js';
@@ -16,7 +16,7 @@ import { WorkProjectStatus, WorkTaskStatus, WorkTaskPriority } from './work/type
16
16
  import { RoutePatternType } from './routing/engine.js';
17
17
  import { TailscaleSyncOptions } from './network/tailscale.js';
18
18
  import { DashboardStatus } from './dashboard-runtime.js';
19
- import { g as EngramAccessService } from './access-service-CoIA0NrG.js';
19
+ import { g as EngramAccessService } from './access-service-Dx2rSJjH.js';
20
20
  import { ResolveSecretRefFn } from './resolve-auth-token.js';
21
21
  import { CompatRunner, CompatReport } from './compat/types.js';
22
22
  import { EvalBaselineDeltaReport, EvalBaselineSnapshot, EvalCiGateReport, EvalBenchmarkPackSummary, EvalHarnessStatus, EvalStoredBaselineCiGateReport } from './evals.js';
package/dist/cli.d.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  import './compounding/engine.js';
2
2
  import './maintenance/migrate-observations.js';
3
3
  import './maintenance/memory-governance.js';
4
- import './types-DUK4vVnN.js';
4
+ import './types-Dr0Cw3L9.js';
5
5
  import './maintenance/rebuild-memory-projection.js';
6
6
  import './maintenance/rebuild-memory-lifecycle-ledger.js';
7
7
  import './maintenance/rebuild-observations.js';
8
8
  import './maintenance/archive-observations.js';
9
9
  import 'node:stream';
10
- import './orchestrator-DsVKLEBk.js';
10
+ import './orchestrator-B1iVjEyc.js';
11
11
  import './replay/runner.js';
12
12
  import './replay/types.js';
13
13
  import './types-gb_SNtjR.js';
@@ -16,7 +16,7 @@ import './work/types.js';
16
16
  import './routing/engine.js';
17
17
  import './network/tailscale.js';
18
18
  import './dashboard-runtime.js';
19
- import './access-service-CoIA0NrG.js';
19
+ import './access-service-Dx2rSJjH.js';
20
20
  import './resolve-auth-token.js';
21
21
  import './compat/types.js';
22
22
  import './evals.js';
@@ -38,7 +38,7 @@ import './trust-zones.js';
38
38
  import './session-integrity.js';
39
39
  import './recall-state.js';
40
40
  import './policy-runtime.js';
41
- export { A as AccessHttpServeCliCommandOptions, a as ArchiveObservationsCliCommandOptions, B as BulkImportCliCommandOptions, C as CliApi, b as CliCommand, c as CliProgram, d as CompatCliCommandOptions, e as ConnectorsRunCliOutputOptions, f as ConversationIndexHealthCliOrchestrator, D as DashboardStartCliCommandOptions, g as DedupeCandidate, E as ExactDedupePlan, G as GraphHealthCliCommandOptions, M as MemoryActionAuditCliCommandOptions, h as MemoryActionAuditCliNamespaceSummary, i as MemoryActionAuditCliReport, j as MemoryGovernanceCliCommandOptions, k as MemoryGovernanceReportCliCommandOptions, l as MemoryGovernanceRestoreCliCommandOptions, m as MemoryReviewDispositionCliCommandOptions, n as MemoryTimelineCliCommandOptions, o as MigrateCliOrchestrator, q as MigrateCliReport, s as MigrateObservationsCliCommandOptions, P as PolicyDiffCliReport, t as PolicyDiffEntry, u as PolicyRollbackCliReport, v as PolicyStatusCliReport, w as PolicyTuningCliOrchestrator, R as RebuildMemoryLifecycleLedgerCliCommandOptions, x as RebuildMemoryProjectionCliCommandOptions, y as RebuildObservationsCliCommandOptions, z as RepairMemoryProjectionCliCommandOptions, F as ReplayCliCommandOptions, H as ReplayCliOrchestrator, I as RouteCliCommandOptions, S as SessionIntegrityCliCommandOptions, J as SessionRepairCliCommandOptions, T as TailscaleStatusCliCommandOptions, K as TailscaleSyncCliCommandOptions, L as TierMigrationCliOrchestrator, N as TrainingExportCliCommandOptions, V as VerifyMemoryProjectionCliCommandOptions, W as WebDavServeCliCommandOptions, O as WorkProjectCliCommandOptions, Q as WorkTaskCliCommandOptions, U as emitConnectorsRunCliResult, X as filterNormalMemorySearchResults, Y as hasDestructivePurgeFailures, Z as isNormalRetrievalVisibleMemory, _ as listMemoryMarkdownFilePaths, $ as parseDurationToMs, a0 as parseStrictCliDate, a1 as planAggressiveDuplicateDeletions, a2 as planExactDuplicateDeletions, a3 as registerCli, a4 as resolveAccessPrincipalOverride, a5 as resolveMemoryDirForNamespace, a6 as runAbstractionNodeStatusCliCommand, a7 as runAccessHttpServeCliCommand, a8 as runAccessHttpStatusCliCommand, a9 as runAccessHttpStopCliCommand, aa as runAccessMcpServeCliCommand, ab as runArchiveObservationsCliCommand, ac as runBenchmarkBaselineReportCliCommand, ad as runBenchmarkBaselineSnapshotCliCommand, ae as runBenchmarkCiGateCliCommand, af as runBenchmarkImportCliCommand, ag as runBenchmarkStatusCliCommand, ah as runBenchmarkStoredBaselineCiGateCliCommand, ai as runBenchmarkValidateCliCommand, r as runBulkImportCliCommand, aj as runCausalTrajectoryStatusCliCommand, ak as runCommitmentLifecycleCliCommand, al as runCommitmentRecordCliCommand, am as runCommitmentSetStateCliCommand, an as runCommitmentStatusCliCommand, ao as runCompatCliCommand, ap as runCompoundingPromoteCliCommand, aq as runConversationIndexHealthCliCommand, ar as runConversationIndexInspectCliCommand, as as runConversationIndexRebuildCliCommand, at as runCueAnchorStatusCliCommand, au as runDashboardStartCliCommand, av as runDashboardStatusCliCommand, aw as runDashboardStopCliCommand, ax as runGraphHealthCliCommand, ay as runHarmonicSearchCliCommand, az as runMemoryActionAuditCliCommand, aA as runMemoryGovernanceCliCommand, aB as runMemoryGovernanceReportCliCommand, aC as runMemoryGovernanceRestoreCliCommand, aD as runMemoryReviewDispositionCliCommand, aE as runMemoryTimelineCliCommand, aF as runMigrateNormalizeFrontmatterCliCommand, aG as runMigrateObservationsCliCommand, aH as runMigrateRechunkCliCommand, aI as runMigrateReextractCliCommand, aJ as runMigrateRescoreImportanceCliCommand, aK as runObjectiveStateStatusCliCommand, aL as runPolicyDiffCliCommand, aM as runPolicyRollbackCliCommand, aN as runPolicyStatusCliCommand, aO as runRebuildMemoryLifecycleLedgerCliCommand, aP as runRebuildMemoryProjectionCliCommand, aQ as runRebuildObservationsCliCommand, aR as runRepairMemoryProjectionCliCommand, aS as runReplayCliCommand, aT as runResumeBundleBuildCliCommand, aU as runResumeBundleRecordCliCommand, aV as runResumeBundleStatusCliCommand, aW as runRouteCliCommand, aX as runSemanticRulePromoteCliCommand, aY as runSemanticRuleVerifyCliCommand, aZ as runSessionCheckCliCommand, a_ as runSessionRepairCliCommand, a$ as runTailscaleStatusCliCommand, b0 as runTailscaleSyncCliCommand, b1 as runTierMigrateCliCommand, b2 as runTierStatusCliCommand, b3 as runTrainingExportCliCommand, b4 as runTrustZoneDemoSeedCliCommand, b5 as runTrustZonePromoteCliCommand, b6 as runTrustZoneStatusCliCommand, b7 as runUtilityLearningCliCommand, b8 as runUtilityLearningStatusCliCommand, b9 as runUtilityTelemetryRecordCliCommand, ba as runUtilityTelemetryStatusCliCommand, bb as runVerifiedRecallSearchCliCommand, bc as runVerifyMemoryProjectionCliCommand, bd as runWebDavServeCliCommand, be as runWebDavStopCliCommand, bf as runWorkProductRecallSearchCliCommand, bg as runWorkProductRecordCliCommand, bh as runWorkProductStatusCliCommand, bi as runWorkProjectCliCommand, bj as runWorkTaskCliCommand } from './cli-qex-L3GT.js';
41
+ export { A as AccessHttpServeCliCommandOptions, a as ArchiveObservationsCliCommandOptions, B as BulkImportCliCommandOptions, C as CliApi, b as CliCommand, c as CliProgram, d as CompatCliCommandOptions, e as ConnectorsRunCliOutputOptions, f as ConversationIndexHealthCliOrchestrator, D as DashboardStartCliCommandOptions, g as DedupeCandidate, E as ExactDedupePlan, G as GraphHealthCliCommandOptions, M as MemoryActionAuditCliCommandOptions, h as MemoryActionAuditCliNamespaceSummary, i as MemoryActionAuditCliReport, j as MemoryGovernanceCliCommandOptions, k as MemoryGovernanceReportCliCommandOptions, l as MemoryGovernanceRestoreCliCommandOptions, m as MemoryReviewDispositionCliCommandOptions, n as MemoryTimelineCliCommandOptions, o as MigrateCliOrchestrator, q as MigrateCliReport, s as MigrateObservationsCliCommandOptions, P as PolicyDiffCliReport, t as PolicyDiffEntry, u as PolicyRollbackCliReport, v as PolicyStatusCliReport, w as PolicyTuningCliOrchestrator, R as RebuildMemoryLifecycleLedgerCliCommandOptions, x as RebuildMemoryProjectionCliCommandOptions, y as RebuildObservationsCliCommandOptions, z as RepairMemoryProjectionCliCommandOptions, F as ReplayCliCommandOptions, H as ReplayCliOrchestrator, I as RouteCliCommandOptions, S as SessionIntegrityCliCommandOptions, J as SessionRepairCliCommandOptions, T as TailscaleStatusCliCommandOptions, K as TailscaleSyncCliCommandOptions, L as TierMigrationCliOrchestrator, N as TrainingExportCliCommandOptions, V as VerifyMemoryProjectionCliCommandOptions, W as WebDavServeCliCommandOptions, O as WorkProjectCliCommandOptions, Q as WorkTaskCliCommandOptions, U as emitConnectorsRunCliResult, X as filterNormalMemorySearchResults, Y as hasDestructivePurgeFailures, Z as isNormalRetrievalVisibleMemory, _ as listMemoryMarkdownFilePaths, $ as parseDurationToMs, a0 as parseStrictCliDate, a1 as planAggressiveDuplicateDeletions, a2 as planExactDuplicateDeletions, a3 as registerCli, a4 as resolveAccessPrincipalOverride, a5 as resolveMemoryDirForNamespace, a6 as runAbstractionNodeStatusCliCommand, a7 as runAccessHttpServeCliCommand, a8 as runAccessHttpStatusCliCommand, a9 as runAccessHttpStopCliCommand, aa as runAccessMcpServeCliCommand, ab as runArchiveObservationsCliCommand, ac as runBenchmarkBaselineReportCliCommand, ad as runBenchmarkBaselineSnapshotCliCommand, ae as runBenchmarkCiGateCliCommand, af as runBenchmarkImportCliCommand, ag as runBenchmarkStatusCliCommand, ah as runBenchmarkStoredBaselineCiGateCliCommand, ai as runBenchmarkValidateCliCommand, r as runBulkImportCliCommand, aj as runCausalTrajectoryStatusCliCommand, ak as runCommitmentLifecycleCliCommand, al as runCommitmentRecordCliCommand, am as runCommitmentSetStateCliCommand, an as runCommitmentStatusCliCommand, ao as runCompatCliCommand, ap as runCompoundingPromoteCliCommand, aq as runConversationIndexHealthCliCommand, ar as runConversationIndexInspectCliCommand, as as runConversationIndexRebuildCliCommand, at as runCueAnchorStatusCliCommand, au as runDashboardStartCliCommand, av as runDashboardStatusCliCommand, aw as runDashboardStopCliCommand, ax as runGraphHealthCliCommand, ay as runHarmonicSearchCliCommand, az as runMemoryActionAuditCliCommand, aA as runMemoryGovernanceCliCommand, aB as runMemoryGovernanceReportCliCommand, aC as runMemoryGovernanceRestoreCliCommand, aD as runMemoryReviewDispositionCliCommand, aE as runMemoryTimelineCliCommand, aF as runMigrateNormalizeFrontmatterCliCommand, aG as runMigrateObservationsCliCommand, aH as runMigrateRechunkCliCommand, aI as runMigrateReextractCliCommand, aJ as runMigrateRescoreImportanceCliCommand, aK as runObjectiveStateStatusCliCommand, aL as runPolicyDiffCliCommand, aM as runPolicyRollbackCliCommand, aN as runPolicyStatusCliCommand, aO as runRebuildMemoryLifecycleLedgerCliCommand, aP as runRebuildMemoryProjectionCliCommand, aQ as runRebuildObservationsCliCommand, aR as runRepairMemoryProjectionCliCommand, aS as runReplayCliCommand, aT as runResumeBundleBuildCliCommand, aU as runResumeBundleRecordCliCommand, aV as runResumeBundleStatusCliCommand, aW as runRouteCliCommand, aX as runSemanticRulePromoteCliCommand, aY as runSemanticRuleVerifyCliCommand, aZ as runSessionCheckCliCommand, a_ as runSessionRepairCliCommand, a$ as runTailscaleStatusCliCommand, b0 as runTailscaleSyncCliCommand, b1 as runTierMigrateCliCommand, b2 as runTierStatusCliCommand, b3 as runTrainingExportCliCommand, b4 as runTrustZoneDemoSeedCliCommand, b5 as runTrustZonePromoteCliCommand, b6 as runTrustZoneStatusCliCommand, b7 as runUtilityLearningCliCommand, b8 as runUtilityLearningStatusCliCommand, b9 as runUtilityTelemetryRecordCliCommand, ba as runUtilityTelemetryStatusCliCommand, bb as runVerifiedRecallSearchCliCommand, bc as runVerifyMemoryProjectionCliCommand, bd as runWebDavServeCliCommand, be as runWebDavStopCliCommand, bf as runWorkProductRecallSearchCliCommand, bg as runWorkProductRecordCliCommand, bh as runWorkProductStatusCliCommand, bi as runWorkProjectCliCommand, bj as runWorkTaskCliCommand } from './cli-DTWRoJEI.js';
42
42
  import './connectors-cli-2iaQ5tX2.js';
43
43
  import './storage.js';
44
44
  import './page-versioning.js';
@@ -62,7 +62,7 @@ import './transcript.js';
62
62
  import './summarizer.js';
63
63
  import './orchestration/maintenance.js';
64
64
  import './namespaces/search.js';
65
- import './catalog-DQCZrBjw.js';
65
+ import './catalog-CadPvH29.js';
66
66
  import './live-connectors-runner.js';
67
67
  import './framework-CNDn2164.js';
68
68
  import './relevance.js';
@@ -80,7 +80,7 @@ import './lcm/archive.js';
80
80
  import './lcm/summarizer.js';
81
81
  import './lcm/dag.js';
82
82
  import './lcm/queue.js';
83
- import './semantic-consolidation-_hVxkTuF.js';
83
+ import './semantic-consolidation-CY8uVRNJ.js';
84
84
  import './connectors/codex-materialize.js';
85
85
  import './logger.js';
86
86
  import './conversation-index/backend.js';
package/dist/cli.js CHANGED
@@ -90,7 +90,7 @@ import {
90
90
  runWorkProductStatusCliCommand,
91
91
  runWorkProjectCliCommand,
92
92
  runWorkTaskCliCommand
93
- } from "./chunk-NK3SPJLM.js";
93
+ } from "./chunk-5KQCOIPW.js";
94
94
  import "./chunk-MC4FJXPA.js";
95
95
  import "./chunk-LQHDIS7L.js";
96
96
  import "./chunk-7F7Z6MOS.js";
@@ -121,8 +121,8 @@ import "./chunk-GQL52GQ5.js";
121
121
  import "./chunk-Z56IHRVV.js";
122
122
  import "./chunk-TGQ2NTWH.js";
123
123
  import "./chunk-QXNFQKWU.js";
124
- import "./chunk-JQ7XVM4V.js";
125
- import "./chunk-OK7FUX6R.js";
124
+ import "./chunk-ZBG4K36I.js";
125
+ import "./chunk-4P5UAL3C.js";
126
126
  import "./chunk-JNOYYWCA.js";
127
127
  import "./chunk-3T74IZB3.js";
128
128
  import "./chunk-HL4DB7TO.js";
@@ -168,7 +168,7 @@ import "./chunk-Z5LAYHGJ.js";
168
168
  import "./chunk-OO42R444.js";
169
169
  import "./chunk-K6MV3TRQ.js";
170
170
  import "./chunk-OADWQ5CR.js";
171
- import "./chunk-VWB3HDY6.js";
171
+ import "./chunk-A2R5NV6O.js";
172
172
  import "./chunk-SEDEKFYQ.js";
173
173
  import "./chunk-JBPKEARU.js";
174
174
  import "./chunk-TMSXWOBZ.js";
@@ -177,14 +177,14 @@ import "./chunk-RSUYKGGZ.js";
177
177
  import "./chunk-42NQ7AVG.js";
178
178
  import "./chunk-7RXCMVFQ.js";
179
179
  import "./chunk-7WV3F5DQ.js";
180
- import "./chunk-KOEKDZ6A.js";
180
+ import "./chunk-I3BT2IDW.js";
181
181
  import "./chunk-T4WDJPEZ.js";
182
182
  import "./chunk-D24OXEPB.js";
183
- import "./chunk-P6PRSI3W.js";
184
- import "./chunk-XD33EX2F.js";
183
+ import "./chunk-Z3B2YW56.js";
184
+ import "./chunk-AMXOCZHE.js";
185
185
  import "./chunk-NUWZFSKC.js";
186
- import "./chunk-PKE7EJMX.js";
187
- import "./chunk-EVX52NCY.js";
186
+ import "./chunk-ZVDRL6SK.js";
187
+ import "./chunk-YVWZW37D.js";
188
188
  import "./chunk-GDASG7NC.js";
189
189
  import "./chunk-GDB4J2H3.js";
190
190
  import "./chunk-ARV3AUOM.js";
@@ -193,7 +193,7 @@ import "./chunk-ERA5RSMZ.js";
193
193
  import "./chunk-IQ7WCZRW.js";
194
194
  import "./chunk-BT7NVCML.js";
195
195
  import "./chunk-H7XKCNR6.js";
196
- import "./chunk-Y6PIFKXX.js";
196
+ import "./chunk-5QUS24F7.js";
197
197
  import "./chunk-SOBJ6NEY.js";
198
198
  import "./chunk-XKU4YE6Z.js";
199
199
  import "./chunk-SHRRWOVY.js";
@@ -201,7 +201,7 @@ import "./chunk-RS25QOKZ.js";
201
201
  import "./chunk-JGSKJHF7.js";
202
202
  import "./chunk-S4DDLTPX.js";
203
203
  import "./chunk-FF4KLI5W.js";
204
- import "./chunk-AZVHBFI3.js";
204
+ import "./chunk-OWOKOFXK.js";
205
205
  import "./chunk-K22IJO4R.js";
206
206
  import "./chunk-OMSTU233.js";
207
207
  import "./chunk-CYEPCZN5.js";
@@ -1,5 +1,5 @@
1
1
  import { StorageManager } from '../storage.js';
2
- import { P as PluginConfig } from '../types-DUK4vVnN.js';
2
+ import { P as PluginConfig } from '../types-Dr0Cw3L9.js';
3
3
  import { SharedFeedbackEntry } from '../shared-context/manager.js';
4
4
  import '../page-versioning.js';
5
5
  import '../consolidation-operator.js';
@@ -1,4 +1,4 @@
1
- import { M as MemoryCategory, g as MemoryFile } from '../types-DUK4vVnN.js';
1
+ import { M as MemoryCategory, g as MemoryFile } from '../types-Dr0Cw3L9.js';
2
2
  import { LcmEngine } from '../lcm/engine.js';
3
3
  import '../types-gb_SNtjR.js';
4
4
  import '../message-parts/index.js';
@@ -1,4 +1,4 @@
1
- import { K as CompressionGuidelineOptimizerEventCounts, N as CompressionGuidelineOptimizerActionSummary, O as CompressionGuidelineOptimizerRuleUpdate, U as MemoryActionType, W as MemoryActionEvent, X as CompressionGuidelineOptimizerState } from './types-DUK4vVnN.js';
1
+ import { K as CompressionGuidelineOptimizerEventCounts, N as CompressionGuidelineOptimizerActionSummary, O as CompressionGuidelineOptimizerRuleUpdate, U as MemoryActionType, W as MemoryActionEvent, X as CompressionGuidelineOptimizerState } from './types-Dr0Cw3L9.js';
2
2
  import './types-gb_SNtjR.js';
3
3
  import './message-parts/index.js';
4
4
 
package/dist/config.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { P as PluginConfig } from './types-DUK4vVnN.js';
1
+ import { P as PluginConfig } from './types-Dr0Cw3L9.js';
2
2
  import './types-gb_SNtjR.js';
3
3
  import './message-parts/index.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import { P as PluginConfig, g as MemoryFile } from '../types-DUK4vVnN.js';
1
+ import { P as PluginConfig, g as MemoryFile } from '../types-Dr0Cw3L9.js';
2
2
  import { RolloutSummaryInput, MaterializeResult } from './codex-materialize.js';
3
3
  import '../types-gb_SNtjR.js';
4
4
  import '../message-parts/index.js';
@@ -1,4 +1,4 @@
1
- import { g as MemoryFile } from '../types-DUK4vVnN.js';
1
+ import { g as MemoryFile } from '../types-Dr0Cw3L9.js';
2
2
  import '../types-gb_SNtjR.js';
3
3
  import '../message-parts/index.js';
4
4
 
@@ -1,6 +1,6 @@
1
1
  export { MATERIALIZE_VERSION, MaterializeOptions, MaterializeResult, MemoryMdValidation, RolloutSummaryInput, SENTINEL_FILE, TMP_DIR, approximateTokenCount, describeMemoriesDir, ensureSentinel, materializeForNamespace, renderMemoryMd, renderMemorySummary, renderRawMemories, renderRolloutSummary, truncateToTokenBudget, validateMemoryMd } from './codex-materialize.js';
2
2
  export { RunMaterializeOptions, runCodexMaterialize } from './codex-materialize-runner.js';
3
- import { P as PluginConfig } from '../types-DUK4vVnN.js';
3
+ import { P as PluginConfig } from '../types-Dr0Cw3L9.js';
4
4
  import '../types-gb_SNtjR.js';
5
5
  import '../message-parts/index.js';
6
6
 
@@ -1,5 +1,5 @@
1
1
  import { StorageManager } from './storage.js';
2
- import './types-DUK4vVnN.js';
2
+ import './types-Dr0Cw3L9.js';
3
3
  import './types-gb_SNtjR.js';
4
4
  import './message-parts/index.js';
5
5
  import './page-versioning.js';
@@ -1,6 +1,6 @@
1
1
  import { StorageManager } from './storage.js';
2
2
  import { VersioningConfig } from './page-versioning.js';
3
- import './types-DUK4vVnN.js';
3
+ import './types-Dr0Cw3L9.js';
4
4
  import './types-gb_SNtjR.js';
5
5
  import './message-parts/index.js';
6
6
  import './consolidation-operator.js';
@@ -1,5 +1,5 @@
1
1
  import { StorageManager } from '../storage.js';
2
- import { h as MemoryStatus, P as PluginConfig, M as MemoryCategory } from '../types-DUK4vVnN.js';
2
+ import { f as MemoryStatus, P as PluginConfig, M as MemoryCategory } from '../types-Dr0Cw3L9.js';
3
3
  import { a as SemanticDedupLookup } from '../semantic-SLAa_prH.js';
4
4
  import { LocalLlmClient } from '../local-llm.js';
5
5
  import { FallbackLlmClient } from '../fallback-llm.js';
@@ -1,7 +1,7 @@
1
1
  import { SearchBackend, SearchExecutionOptions } from '../search/port.js';
2
2
  import { ConversationChunk } from './chunker.js';
3
3
  import { C as ConversationSearchResult, F as FaissConversationIndexAdapter } from '../faiss-adapter-BHecI1fF.js';
4
- import '../types-DUK4vVnN.js';
4
+ import '../types-Dr0Cw3L9.js';
5
5
  import '../types-gb_SNtjR.js';
6
6
  import '../message-parts/index.js';
7
7
  import '../runtime/child-process.js';
@@ -1,4 +1,4 @@
1
- import { T as TranscriptEntry } from '../types-DUK4vVnN.js';
1
+ import { T as TranscriptEntry } from '../types-Dr0Cw3L9.js';
2
2
  import '../types-gb_SNtjR.js';
3
3
  import '../message-parts/index.js';
4
4
 
@@ -1,7 +1,7 @@
1
1
  import './chunker.js';
2
2
  export { b as FaissAdapterConfig, c as FaissAdapterError, F as FaissConversationIndexAdapter, d as FaissHealthResult, e as FaissInspectResult, f as failOpenFaissHealth, r as resolveDefaultFaissScriptPath } from '../faiss-adapter-BHecI1fF.js';
3
3
  import '../runtime/child-process.js';
4
- import '../types-DUK4vVnN.js';
4
+ import '../types-Dr0Cw3L9.js';
5
5
  import '../types-gb_SNtjR.js';
6
6
  import '../message-parts/index.js';
7
7
  import '../search/port.js';
@@ -1,7 +1,7 @@
1
1
  import { F as FaissConversationIndexAdapter } from '../faiss-adapter-BHecI1fF.js';
2
2
  import { ConversationChunk } from './chunker.js';
3
3
  import '../search/port.js';
4
- import '../types-DUK4vVnN.js';
4
+ import '../types-Dr0Cw3L9.js';
5
5
  import '../types-gb_SNtjR.js';
6
6
  import '../message-parts/index.js';
7
7
  import '../runtime/child-process.js';
@@ -1,6 +1,6 @@
1
1
  import '../search/port.js';
2
2
  export { C as ConversationSearchResult, s as searchConversationIndex, a as searchConversationIndexFaissFailOpen } from '../faiss-adapter-BHecI1fF.js';
3
- import '../types-DUK4vVnN.js';
3
+ import '../types-Dr0Cw3L9.js';
4
4
  import '../types-gb_SNtjR.js';
5
5
  import '../message-parts/index.js';
6
6
  import './chunker.js';
@@ -1,4 +1,4 @@
1
- import { P as PluginConfig, g as MemoryFile } from './types-DUK4vVnN.js';
1
+ import { P as PluginConfig, g as MemoryFile } from './types-Dr0Cw3L9.js';
2
2
  import './types-gb_SNtjR.js';
3
3
  import './message-parts/index.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import { Y as EntityMention } from './types-DUK4vVnN.js';
1
+ import { Y as EntityMention } from './types-Dr0Cw3L9.js';
2
2
  import './types-gb_SNtjR.js';
3
3
  import './message-parts/index.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import { g as MemoryFile, P as PluginConfig } from './types-DUK4vVnN.js';
1
+ import { g as MemoryFile, P as PluginConfig } from './types-Dr0Cw3L9.js';
2
2
  import { TrustZoneName } from './trust-zones.js';
3
3
  import { T as Taxonomy } from './types-DJhqDJUV.js';
4
4
  import { DirectAnswerResult } from './direct-answer.js';
@@ -1,5 +1,5 @@
1
1
  import { TrustZoneName } from './trust-zones.js';
2
- import { g as MemoryFile } from './types-DUK4vVnN.js';
2
+ import { g as MemoryFile } from './types-Dr0Cw3L9.js';
3
3
  import './types-gb_SNtjR.js';
4
4
  import './message-parts/index.js';
5
5
 
@@ -1,4 +1,4 @@
1
- import { P as PluginConfig } from './types-DUK4vVnN.js';
1
+ import { P as PluginConfig } from './types-Dr0Cw3L9.js';
2
2
  import './types-gb_SNtjR.js';
3
3
  import './message-parts/index.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import { M as MemoryCategory, y as ImportanceLevel } from '../types-DUK4vVnN.js';
1
+ import { M as MemoryCategory, y as ImportanceLevel } from '../types-Dr0Cw3L9.js';
2
2
  import { LoggerBackend } from '../logger.js';
3
3
  import '../types-gb_SNtjR.js';
4
4
  import '../message-parts/index.js';
@@ -1,5 +1,5 @@
1
1
  import { StorageManager } from './storage.js';
2
- import { P as PluginConfig, T as TranscriptEntry } from './types-DUK4vVnN.js';
2
+ import { P as PluginConfig, T as TranscriptEntry } from './types-Dr0Cw3L9.js';
3
3
  import './page-versioning.js';
4
4
  import './consolidation-operator.js';
5
5
  import './memory-projection-store.js';
@@ -1,4 +1,4 @@
1
- import { Z as EntitySchemaDefinition, _ as EntitySchemaSectionDefinition, $ as EntityStructuredSection } from './types-DUK4vVnN.js';
1
+ import { Z as EntitySchemaDefinition, _ as EntitySchemaSectionDefinition, $ as EntityStructuredSection } from './types-Dr0Cw3L9.js';
2
2
  import './types-gb_SNtjR.js';
3
3
  import './message-parts/index.js';
4
4
 
@@ -1,5 +1,5 @@
1
- import { O as Orchestrator } from './orchestrator-DsVKLEBk.js';
2
- import { M as MemoryCategory, P as PluginConfig } from './types-DUK4vVnN.js';
1
+ import { O as Orchestrator } from './orchestrator-B1iVjEyc.js';
2
+ import { M as MemoryCategory, P as PluginConfig } from './types-Dr0Cw3L9.js';
3
3
  import './briefing.js';
4
4
  import './storage.js';
5
5
  import './page-versioning.js';
@@ -21,7 +21,7 @@ import './session-integrity.js';
21
21
  import './summarizer.js';
22
22
  import './orchestration/maintenance.js';
23
23
  import './namespaces/search.js';
24
- import './catalog-DQCZrBjw.js';
24
+ import './catalog-CadPvH29.js';
25
25
  import './live-connectors-runner.js';
26
26
  import './framework-CNDn2164.js';
27
27
  import './relevance.js';
@@ -43,7 +43,7 @@ import './lcm/archive.js';
43
43
  import './lcm/summarizer.js';
44
44
  import './lcm/dag.js';
45
45
  import './lcm/queue.js';
46
- import './semantic-consolidation-_hVxkTuF.js';
46
+ import './semantic-consolidation-CY8uVRNJ.js';
47
47
  import './connectors/codex-materialize.js';
48
48
  import './logger.js';
49
49
  import './conversation-index/backend.js';
@@ -1,4 +1,4 @@
1
- import { F as FaithfulnessFrontmatter, P as PluginConfig, k as MemoryFrontmatter } from './types-DUK4vVnN.js';
1
+ import { F as FaithfulnessFrontmatter, P as PluginConfig, k as MemoryFrontmatter } from './types-Dr0Cw3L9.js';
2
2
  import { LocalLlmClient } from './local-llm.js';
3
3
  import { FallbackLlmClient } from './fallback-llm.js';
4
4
  import './types-gb_SNtjR.js';
@@ -1,5 +1,5 @@
1
1
  import { JudgeVerdictKind } from './extraction-judge.js';
2
- import './types-DUK4vVnN.js';
2
+ import './types-Dr0Cw3L9.js';
3
3
  import './types-gb_SNtjR.js';
4
4
  import './message-parts/index.js';
5
5
  import './local-llm.js';
@@ -1,5 +1,5 @@
1
1
  import { JudgeVerdictKind } from './extraction-judge.js';
2
- import './types-DUK4vVnN.js';
2
+ import './types-Dr0Cw3L9.js';
3
3
  import './types-gb_SNtjR.js';
4
4
  import './message-parts/index.js';
5
5
  import './local-llm.js';
@@ -1,4 +1,4 @@
1
- import { y as ImportanceLevel, P as PluginConfig } from './types-DUK4vVnN.js';
1
+ import { y as ImportanceLevel, P as PluginConfig } from './types-Dr0Cw3L9.js';
2
2
  import { LocalLlmClient } from './local-llm.js';
3
3
  import { FallbackLlmClient } from './fallback-llm.js';
4
4
  import './types-gb_SNtjR.js';
@@ -1,6 +1,6 @@
1
1
  import { LocalLlmClient } from './local-llm.js';
2
2
  import { ContradictionVerificationResult, SuggestedLinks, MemorySummaryResult } from './schemas.js';
3
- import { P as PluginConfig, G as GatewayConfig, u as BufferTurn, a0 as ExtractionResult, g as MemoryFile, a1 as ConsolidationResult, a2 as DaySummaryResult } from './types-DUK4vVnN.js';
3
+ import { P as PluginConfig, G as GatewayConfig, u as BufferTurn, a0 as ExtractionResult, g as MemoryFile, a1 as ConsolidationResult, a2 as DaySummaryResult } from './types-Dr0Cw3L9.js';
4
4
  import { ModelRegistry } from './model-registry.js';
5
5
  import { ProfilingCollector } from './profiling.js';
6
6
  import './types-gb_SNtjR.js';