@remnic/core 1.1.4 → 1.1.5

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 (174) hide show
  1. package/dist/access-cli.js +16 -16
  2. package/dist/access-http.d.ts +7 -7
  3. package/dist/access-http.js +10 -10
  4. package/dist/access-mcp.d.ts +7 -7
  5. package/dist/access-mcp.js +9 -9
  6. package/dist/access-schema.d.ts +89 -4
  7. package/dist/access-schema.js +1 -1
  8. package/dist/{access-service-CtXFnprR.d.ts → access-service-CWYIkMwY.d.ts} +16 -12
  9. package/dist/access-service.d.ts +7 -7
  10. package/dist/access-service.js +7 -7
  11. package/dist/active-memory-bridge.d.ts +1 -1
  12. package/dist/active-recall.d.ts +1 -1
  13. package/dist/behavior-learner.d.ts +1 -1
  14. package/dist/behavior-signals.d.ts +1 -1
  15. package/dist/bootstrap.d.ts +6 -6
  16. package/dist/briefing.d.ts +2 -2
  17. package/dist/briefing.js +3 -3
  18. package/dist/buffer-surprise-report.d.ts +1 -1
  19. package/dist/buffer.d.ts +2 -2
  20. package/dist/calibration.d.ts +1 -1
  21. package/dist/causal-behavior.d.ts +1 -1
  22. package/dist/causal-consolidation.d.ts +2 -2
  23. package/dist/causal-consolidation.js +3 -3
  24. package/dist/{chunk-F5VQOQ2E.js → chunk-3YBRSJ52.js} +2 -2
  25. package/dist/{chunk-Y4A6M3B6.js → chunk-46AIFPQM.js} +2 -2
  26. package/dist/{chunk-CUI2STX6.js → chunk-4CVIF7UZ.js} +12 -6
  27. package/dist/chunk-4CVIF7UZ.js.map +1 -0
  28. package/dist/{chunk-MUELDH4F.js → chunk-57SNKQNS.js} +2 -2
  29. package/dist/{chunk-EGEPUGN4.js → chunk-5XVDDCMH.js} +2 -2
  30. package/dist/{chunk-NZS2BLTP.js → chunk-7NFZWXAY.js} +711 -22
  31. package/dist/chunk-7NFZWXAY.js.map +1 -0
  32. package/dist/{chunk-XRCYKJ3V.js → chunk-DKVEJTLC.js} +61 -18
  33. package/dist/chunk-DKVEJTLC.js.map +1 -0
  34. package/dist/{chunk-AEMBDV7M.js → chunk-DTDB6YS2.js} +13 -8
  35. package/dist/chunk-DTDB6YS2.js.map +1 -0
  36. package/dist/{chunk-AGZHRWPT.js → chunk-ERWKQVCX.js} +2 -2
  37. package/dist/{chunk-TIFRGAKO.js → chunk-FG5R5AQF.js} +5 -5
  38. package/dist/{chunk-52PDY6GD.js → chunk-FLHPNR5W.js} +2 -2
  39. package/dist/{chunk-JWSENLQI.js → chunk-H62HCANJ.js} +3 -1
  40. package/dist/{chunk-JWSENLQI.js.map → chunk-H62HCANJ.js.map} +1 -1
  41. package/dist/{chunk-W7WWT4FJ.js → chunk-HPJPGIGN.js} +2 -2
  42. package/dist/{chunk-ZIBOQULP.js → chunk-KCZZLFW5.js} +2 -2
  43. package/dist/{chunk-47WOM4YW.js → chunk-MJPNOMY4.js} +2 -2
  44. package/dist/{chunk-HIRKCQGF.js → chunk-OAIXBFAH.js} +17 -17
  45. package/dist/{chunk-HIRKCQGF.js.map → chunk-OAIXBFAH.js.map} +1 -1
  46. package/dist/{chunk-RILIVK4O.js → chunk-RICG4UNC.js} +28 -2
  47. package/dist/chunk-RICG4UNC.js.map +1 -0
  48. package/dist/{chunk-SMA4IMHV.js → chunk-SGTA3HJC.js} +3 -3
  49. package/dist/{chunk-VTJVUHRK.js → chunk-SRBJUAMP.js} +1 -1
  50. package/dist/chunk-SRBJUAMP.js.map +1 -0
  51. package/dist/{chunk-V7TEH5I2.js → chunk-TMPLRVHD.js} +2 -2
  52. package/dist/{chunk-43EKP2UK.js → chunk-TOC3VOOF.js} +1 -1
  53. package/dist/{chunk-43EKP2UK.js.map → chunk-TOC3VOOF.js.map} +1 -1
  54. package/dist/{chunk-USFPPRAF.js → chunk-WMK6YP7C.js} +5 -3
  55. package/dist/chunk-WMK6YP7C.js.map +1 -0
  56. package/dist/{chunk-LW2NMHDW.js → chunk-Y6EPN6XF.js} +2 -2
  57. package/dist/{chunk-XQ4EJLUD.js → chunk-Z665HFAD.js} +2 -2
  58. package/dist/{cli-lMql2FCr.d.ts → cli-CWLyGroU.d.ts} +4 -4
  59. package/dist/cli.d.ts +8 -8
  60. package/dist/cli.js +20 -20
  61. package/dist/{codex-materialize-CQlLTzke.d.ts → codex-materialize-XRen3WAz.d.ts} +1 -1
  62. package/dist/compression-optimizer.d.ts +1 -1
  63. package/dist/config.d.ts +1 -1
  64. package/dist/config.js +1 -1
  65. package/dist/consolidation-provenance-check.d.ts +2 -2
  66. package/dist/consolidation-undo.d.ts +2 -2
  67. package/dist/day-summary.d.ts +1 -1
  68. package/dist/delinearize.d.ts +1 -1
  69. package/dist/direct-answer-wiring.d.ts +1 -1
  70. package/dist/direct-answer.d.ts +1 -1
  71. package/dist/embedding-fallback.d.ts +1 -1
  72. package/dist/{engine-O6YWKQM3.js → engine-WJ7K6AZ2.js} +4 -4
  73. package/dist/entity-retrieval.d.ts +2 -2
  74. package/dist/entity-retrieval.js +3 -3
  75. package/dist/entity-schema.d.ts +1 -1
  76. package/dist/explicit-capture.d.ts +6 -6
  77. package/dist/extraction-judge-telemetry.d.ts +1 -1
  78. package/dist/extraction-judge-training.d.ts +1 -1
  79. package/dist/extraction-judge.d.ts +1 -1
  80. package/dist/extraction.d.ts +1 -1
  81. package/dist/fallback-llm.d.ts +1 -1
  82. package/dist/identity-continuity.d.ts +1 -1
  83. package/dist/importance.d.ts +1 -1
  84. package/dist/index.d.ts +13 -13
  85. package/dist/index.js +38 -24
  86. package/dist/index.js.map +1 -1
  87. package/dist/intent.d.ts +1 -1
  88. package/dist/lifecycle.d.ts +1 -1
  89. package/dist/live-connectors-runner.d.ts +1 -1
  90. package/dist/local-llm.d.ts +1 -1
  91. package/dist/memory-action-policy.d.ts +1 -1
  92. package/dist/memory-cache.d.ts +1 -1
  93. package/dist/{memory-governance-JZHZDOLN.js → memory-governance-KXMAURFF.js} +4 -4
  94. package/dist/memory-lifecycle-ledger-utils.d.ts +1 -1
  95. package/dist/{memory-projection-store-CY8TU40w.d.ts → memory-projection-store-ConH7gNj.d.ts} +1 -1
  96. package/dist/memory-projection-store.d.ts +2 -2
  97. package/dist/memory-worth-outcomes.d.ts +2 -2
  98. package/dist/models-json.d.ts +1 -1
  99. package/dist/native-knowledge.d.ts +1 -1
  100. package/dist/operator-toolkit.d.ts +2 -2
  101. package/dist/operator-toolkit.js +6 -6
  102. package/dist/{orchestrator-ChkesB8U.d.ts → orchestrator-BHkiEBbd.d.ts} +36 -11
  103. package/dist/orchestrator.d.ts +6 -6
  104. package/dist/orchestrator.js +11 -11
  105. package/dist/patterns-cli.d.ts +1 -1
  106. package/dist/policy-runtime.d.ts +1 -1
  107. package/dist/{port-hqGnoStS.d.ts → port-DZHdlUId.d.ts} +1 -1
  108. package/dist/qmd-recall-cache.d.ts +2 -2
  109. package/dist/qmd.d.ts +2 -2
  110. package/dist/recall-disclosure-escalation.d.ts +1 -1
  111. package/dist/recall-explain-renderer.d.ts +1 -1
  112. package/dist/recall-explain-renderer.js +3 -3
  113. package/dist/recall-state.d.ts +1 -1
  114. package/dist/recall-tag-filter.d.ts +1 -1
  115. package/dist/recall-xray-cli.d.ts +1 -1
  116. package/dist/recall-xray-cli.js +4 -4
  117. package/dist/recall-xray-renderer.d.ts +1 -1
  118. package/dist/recall-xray-renderer.js +3 -3
  119. package/dist/recall-xray.d.ts +2 -2
  120. package/dist/recall-xray.js +2 -2
  121. package/dist/resolve-auth-token.d.ts +1 -1
  122. package/dist/resume-bundles.js +2 -2
  123. package/dist/retrieval-agents.d.ts +2 -2
  124. package/dist/retrieval-tiers.d.ts +1 -1
  125. package/dist/schemas.d.ts +32 -32
  126. package/dist/{semantic-consolidation-ByBXb-sf.d.ts → semantic-consolidation-Cxj-inGC.d.ts} +2 -2
  127. package/dist/semantic-consolidation.d.ts +3 -3
  128. package/dist/semantic-consolidation.js +3 -3
  129. package/dist/semantic-rule-promotion.js +3 -3
  130. package/dist/semantic-rule-verifier.d.ts +1 -1
  131. package/dist/semantic-rule-verifier.js +3 -3
  132. package/dist/session-observer-bands.d.ts +1 -1
  133. package/dist/session-observer-state.d.ts +1 -1
  134. package/dist/signal.d.ts +1 -1
  135. package/dist/storage.d.ts +2 -2
  136. package/dist/storage.js +2 -2
  137. package/dist/summarizer.d.ts +1 -1
  138. package/dist/summary-snapshot.d.ts +1 -1
  139. package/dist/temporal-supersession.d.ts +2 -2
  140. package/dist/temporal-validity.d.ts +1 -1
  141. package/dist/threading.d.ts +1 -1
  142. package/dist/tier-migration.d.ts +3 -3
  143. package/dist/tier-routing.d.ts +1 -1
  144. package/dist/topics.d.ts +1 -1
  145. package/dist/transcript.d.ts +1 -1
  146. package/dist/types-B49NzJ5q.d.ts +2707 -0
  147. package/dist/types.d.ts +1 -2668
  148. package/dist/types.js +1 -1
  149. package/dist/utility-runtime.d.ts +1 -1
  150. package/dist/verified-recall.js +3 -3
  151. package/package.json +1 -1
  152. package/dist/chunk-AEMBDV7M.js.map +0 -1
  153. package/dist/chunk-CUI2STX6.js.map +0 -1
  154. package/dist/chunk-NZS2BLTP.js.map +0 -1
  155. package/dist/chunk-RILIVK4O.js.map +0 -1
  156. package/dist/chunk-USFPPRAF.js.map +0 -1
  157. package/dist/chunk-VTJVUHRK.js.map +0 -1
  158. package/dist/chunk-XRCYKJ3V.js.map +0 -1
  159. /package/dist/{chunk-F5VQOQ2E.js.map → chunk-3YBRSJ52.js.map} +0 -0
  160. /package/dist/{chunk-Y4A6M3B6.js.map → chunk-46AIFPQM.js.map} +0 -0
  161. /package/dist/{chunk-MUELDH4F.js.map → chunk-57SNKQNS.js.map} +0 -0
  162. /package/dist/{chunk-EGEPUGN4.js.map → chunk-5XVDDCMH.js.map} +0 -0
  163. /package/dist/{chunk-AGZHRWPT.js.map → chunk-ERWKQVCX.js.map} +0 -0
  164. /package/dist/{chunk-TIFRGAKO.js.map → chunk-FG5R5AQF.js.map} +0 -0
  165. /package/dist/{chunk-52PDY6GD.js.map → chunk-FLHPNR5W.js.map} +0 -0
  166. /package/dist/{chunk-W7WWT4FJ.js.map → chunk-HPJPGIGN.js.map} +0 -0
  167. /package/dist/{chunk-ZIBOQULP.js.map → chunk-KCZZLFW5.js.map} +0 -0
  168. /package/dist/{chunk-47WOM4YW.js.map → chunk-MJPNOMY4.js.map} +0 -0
  169. /package/dist/{chunk-SMA4IMHV.js.map → chunk-SGTA3HJC.js.map} +0 -0
  170. /package/dist/{chunk-V7TEH5I2.js.map → chunk-TMPLRVHD.js.map} +0 -0
  171. /package/dist/{chunk-LW2NMHDW.js.map → chunk-Y6EPN6XF.js.map} +0 -0
  172. /package/dist/{chunk-XQ4EJLUD.js.map → chunk-Z665HFAD.js.map} +0 -0
  173. /package/dist/{engine-O6YWKQM3.js.map → engine-WJ7K6AZ2.js.map} +0 -0
  174. /package/dist/{memory-governance-JZHZDOLN.js.map → memory-governance-KXMAURFF.js.map} +0 -0
@@ -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 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\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 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;AAapB,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;AAmLO,SAAS,kBACd,OACoB;AACpB,QAAM,MAAM,MAAM,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C;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":[]}
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-SOBJ6NEY.js";
4
4
  import {
5
5
  summarizeDisclosureTokens
6
- } from "./chunk-USFPPRAF.js";
6
+ } from "./chunk-WMK6YP7C.js";
7
7
 
8
8
  // src/recall-explain-renderer.ts
9
9
  function sanitizeString(v) {
@@ -530,4 +530,4 @@ export {
530
530
  renderRecallExplain,
531
531
  parseRecallExplainFormat
532
532
  };
533
- //# sourceMappingURL=chunk-LW2NMHDW.js.map
533
+ //# sourceMappingURL=chunk-Y6EPN6XF.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-IXEJRKCZ.js";
4
4
  import {
5
5
  StorageManager
6
- } from "./chunk-Y4A6M3B6.js";
6
+ } from "./chunk-46AIFPQM.js";
7
7
  import {
8
8
  parseContinuityImprovementLoops
9
9
  } from "./chunk-QSVPYQPG.js";
@@ -1832,4 +1832,4 @@ export {
1832
1832
  defaultTierMigrationCycleBudget,
1833
1833
  CompoundingEngine
1834
1834
  };
1835
- //# sourceMappingURL=chunk-XQ4EJLUD.js.map
1835
+ //# sourceMappingURL=chunk-Z665HFAD.js.map
@@ -1,9 +1,9 @@
1
- import { R as ReplaySource, a as ReplayWarning, b as ImportTurn, B as BulkImportSource, c as BulkImportOptions, d as BulkImportResult, e as ReplayTurn, O as Orchestrator, C as CompoundingPromotionReport } from './orchestrator-ChkesB8U.js';
2
- import { M as MemoryGovernanceRunResult, c as MemoryGovernanceSummary, d as MemoryGovernanceMetrics, e as MemoryGovernanceQualityScore, f as MemoryGovernanceReviewQueueEntry, g as MemoryGovernanceAppliedAction, h as MemoryGovernanceTransitionReport, i as MemoryGovernanceManifest, j as MemoryGovernanceRestoreManifest, R as RestoreMemoryGovernanceRunResult } from './memory-projection-store-CY8TU40w.js';
3
- import { MemoryStatus, MemoryFile, BehaviorSignalEvent, QmdSearchResult, MemoryActionEvent, MemoryLifecycleEvent } from './types.js';
1
+ import { R as ReplaySource, a as ReplayWarning, b as ImportTurn, B as BulkImportSource, c as BulkImportOptions, d as BulkImportResult, e as ReplayTurn, O as Orchestrator, C as CompoundingPromotionReport } from './orchestrator-BHkiEBbd.js';
2
+ import { M as MemoryGovernanceRunResult, c as MemoryGovernanceSummary, d as MemoryGovernanceMetrics, e as MemoryGovernanceQualityScore, f as MemoryGovernanceReviewQueueEntry, g as MemoryGovernanceAppliedAction, h as MemoryGovernanceTransitionReport, i as MemoryGovernanceManifest, j as MemoryGovernanceRestoreManifest, R as RestoreMemoryGovernanceRunResult } from './memory-projection-store-ConH7gNj.js';
3
+ import { i as MemoryStatus, f as MemoryFile, B as BehaviorSignalEvent, U as QmdSearchResult, s as MemoryActionEvent, h as MemoryLifecycleEvent } from './types-B49NzJ5q.js';
4
4
  import { Writable, Readable } from 'node:stream';
5
5
  import { DashboardStatus } from './dashboard-runtime.js';
6
- import { E as EngramAccessService } from './access-service-CtXFnprR.js';
6
+ import { E as EngramAccessService } from './access-service-CWYIkMwY.js';
7
7
  import { ResolveSecretRefFn } from './resolve-auth-token.js';
8
8
  import { EvalBaselineDeltaReport, EvalBaselineSnapshot, EvalCiGateReport, EvalBenchmarkPackSummary, EvalHarnessStatus, EvalStoredBaselineCiGateReport } from './evals.js';
9
9
  import { GraphHealthReport } from './graph.js';
package/dist/cli.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import './orchestrator-ChkesB8U.js';
2
- export { A as AccessHttpServeCliCommandOptions, c as ArchiveObservationsCliCommandOptions, B as BulkImportCliCommandOptions, C as CompatCliCommandOptions, d as ConversationIndexHealthCliOrchestrator, D as DashboardStartCliCommandOptions, e as DedupeCandidate, E as ExactDedupePlan, G as GraphHealthCliCommandOptions, M as MemoryActionAuditCliCommandOptions, g as MemoryActionAuditCliNamespaceSummary, h as MemoryActionAuditCliReport, i as MemoryGovernanceCliCommandOptions, j as MemoryGovernanceReportCliCommandOptions, k as MemoryGovernanceRestoreCliCommandOptions, l as MemoryReviewDispositionCliCommandOptions, m as MemoryTimelineCliCommandOptions, n as MigrateCliOrchestrator, o as MigrateCliReport, q as MigrateObservationsCliCommandOptions, s 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 filterNormalMemorySearchResults, X as hasDestructivePurgeFailures, Y as isNormalRetrievalVisibleMemory, Z as parseDurationToMs, _ as parseStrictCliDate, $ as planAggressiveDuplicateDeletions, a0 as planExactDuplicateDeletions, a1 as registerCli, a2 as resolveAccessPrincipalOverride, a3 as resolveMemoryDirForNamespace, a4 as runAbstractionNodeStatusCliCommand, a5 as runAccessHttpServeCliCommand, a6 as runAccessHttpStatusCliCommand, a7 as runAccessHttpStopCliCommand, a8 as runAccessMcpServeCliCommand, a9 as runArchiveObservationsCliCommand, aa as runBenchmarkBaselineReportCliCommand, ab as runBenchmarkBaselineSnapshotCliCommand, ac as runBenchmarkCiGateCliCommand, ad as runBenchmarkImportCliCommand, ae as runBenchmarkStatusCliCommand, af as runBenchmarkStoredBaselineCiGateCliCommand, ag as runBenchmarkValidateCliCommand, r as runBulkImportCliCommand, ah as runCausalTrajectoryStatusCliCommand, ai as runCommitmentLifecycleCliCommand, aj as runCommitmentRecordCliCommand, ak as runCommitmentSetStateCliCommand, al as runCommitmentStatusCliCommand, am as runCompatCliCommand, an as runCompoundingPromoteCliCommand, ao as runConversationIndexHealthCliCommand, ap as runConversationIndexInspectCliCommand, aq as runConversationIndexRebuildCliCommand, ar as runCueAnchorStatusCliCommand, as as runDashboardStartCliCommand, at as runDashboardStatusCliCommand, au as runDashboardStopCliCommand, av as runGraphHealthCliCommand, aw as runHarmonicSearchCliCommand, ax as runMemoryActionAuditCliCommand, ay as runMemoryGovernanceCliCommand, az as runMemoryGovernanceReportCliCommand, aA as runMemoryGovernanceRestoreCliCommand, aB as runMemoryReviewDispositionCliCommand, aC as runMemoryTimelineCliCommand, aD as runMigrateNormalizeFrontmatterCliCommand, aE as runMigrateObservationsCliCommand, aF as runMigrateRechunkCliCommand, aG as runMigrateReextractCliCommand, aH as runMigrateRescoreImportanceCliCommand, aI as runObjectiveStateStatusCliCommand, aJ as runPolicyDiffCliCommand, aK as runPolicyRollbackCliCommand, aL as runPolicyStatusCliCommand, aM as runRebuildMemoryLifecycleLedgerCliCommand, aN as runRebuildMemoryProjectionCliCommand, aO as runRebuildObservationsCliCommand, aP as runRepairMemoryProjectionCliCommand, aQ as runReplayCliCommand, aR as runResumeBundleBuildCliCommand, aS as runResumeBundleRecordCliCommand, aT as runResumeBundleStatusCliCommand, aU as runRouteCliCommand, aV as runSemanticRulePromoteCliCommand, aW as runSemanticRuleVerifyCliCommand, aX as runSessionCheckCliCommand, aY as runSessionRepairCliCommand, aZ as runTailscaleStatusCliCommand, a_ as runTailscaleSyncCliCommand, a$ as runTierMigrateCliCommand, b0 as runTierStatusCliCommand, b1 as runTrainingExportCliCommand, b2 as runTrustZoneDemoSeedCliCommand, b3 as runTrustZonePromoteCliCommand, b4 as runTrustZoneStatusCliCommand, b5 as runUtilityLearningCliCommand, b6 as runUtilityLearningStatusCliCommand, b7 as runUtilityTelemetryRecordCliCommand, b8 as runUtilityTelemetryStatusCliCommand, b9 as runVerifiedRecallSearchCliCommand, ba as runVerifyMemoryProjectionCliCommand, bb as runWebDavServeCliCommand, bc as runWebDavStopCliCommand, bd as runWorkProductRecallSearchCliCommand, be as runWorkProductRecordCliCommand, bf as runWorkProductStatusCliCommand, bg as runWorkProjectCliCommand, bh as runWorkTaskCliCommand } from './cli-lMql2FCr.js';
3
- import './memory-projection-store-CY8TU40w.js';
4
- import './types.js';
1
+ import './orchestrator-BHkiEBbd.js';
2
+ export { A as AccessHttpServeCliCommandOptions, c as ArchiveObservationsCliCommandOptions, B as BulkImportCliCommandOptions, C as CompatCliCommandOptions, d as ConversationIndexHealthCliOrchestrator, D as DashboardStartCliCommandOptions, e as DedupeCandidate, E as ExactDedupePlan, G as GraphHealthCliCommandOptions, M as MemoryActionAuditCliCommandOptions, g as MemoryActionAuditCliNamespaceSummary, h as MemoryActionAuditCliReport, i as MemoryGovernanceCliCommandOptions, j as MemoryGovernanceReportCliCommandOptions, k as MemoryGovernanceRestoreCliCommandOptions, l as MemoryReviewDispositionCliCommandOptions, m as MemoryTimelineCliCommandOptions, n as MigrateCliOrchestrator, o as MigrateCliReport, q as MigrateObservationsCliCommandOptions, s 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 filterNormalMemorySearchResults, X as hasDestructivePurgeFailures, Y as isNormalRetrievalVisibleMemory, Z as parseDurationToMs, _ as parseStrictCliDate, $ as planAggressiveDuplicateDeletions, a0 as planExactDuplicateDeletions, a1 as registerCli, a2 as resolveAccessPrincipalOverride, a3 as resolveMemoryDirForNamespace, a4 as runAbstractionNodeStatusCliCommand, a5 as runAccessHttpServeCliCommand, a6 as runAccessHttpStatusCliCommand, a7 as runAccessHttpStopCliCommand, a8 as runAccessMcpServeCliCommand, a9 as runArchiveObservationsCliCommand, aa as runBenchmarkBaselineReportCliCommand, ab as runBenchmarkBaselineSnapshotCliCommand, ac as runBenchmarkCiGateCliCommand, ad as runBenchmarkImportCliCommand, ae as runBenchmarkStatusCliCommand, af as runBenchmarkStoredBaselineCiGateCliCommand, ag as runBenchmarkValidateCliCommand, r as runBulkImportCliCommand, ah as runCausalTrajectoryStatusCliCommand, ai as runCommitmentLifecycleCliCommand, aj as runCommitmentRecordCliCommand, ak as runCommitmentSetStateCliCommand, al as runCommitmentStatusCliCommand, am as runCompatCliCommand, an as runCompoundingPromoteCliCommand, ao as runConversationIndexHealthCliCommand, ap as runConversationIndexInspectCliCommand, aq as runConversationIndexRebuildCliCommand, ar as runCueAnchorStatusCliCommand, as as runDashboardStartCliCommand, at as runDashboardStatusCliCommand, au as runDashboardStopCliCommand, av as runGraphHealthCliCommand, aw as runHarmonicSearchCliCommand, ax as runMemoryActionAuditCliCommand, ay as runMemoryGovernanceCliCommand, az as runMemoryGovernanceReportCliCommand, aA as runMemoryGovernanceRestoreCliCommand, aB as runMemoryReviewDispositionCliCommand, aC as runMemoryTimelineCliCommand, aD as runMigrateNormalizeFrontmatterCliCommand, aE as runMigrateObservationsCliCommand, aF as runMigrateRechunkCliCommand, aG as runMigrateReextractCliCommand, aH as runMigrateRescoreImportanceCliCommand, aI as runObjectiveStateStatusCliCommand, aJ as runPolicyDiffCliCommand, aK as runPolicyRollbackCliCommand, aL as runPolicyStatusCliCommand, aM as runRebuildMemoryLifecycleLedgerCliCommand, aN as runRebuildMemoryProjectionCliCommand, aO as runRebuildObservationsCliCommand, aP as runRepairMemoryProjectionCliCommand, aQ as runReplayCliCommand, aR as runResumeBundleBuildCliCommand, aS as runResumeBundleRecordCliCommand, aT as runResumeBundleStatusCliCommand, aU as runRouteCliCommand, aV as runSemanticRulePromoteCliCommand, aW as runSemanticRuleVerifyCliCommand, aX as runSessionCheckCliCommand, aY as runSessionRepairCliCommand, aZ as runTailscaleStatusCliCommand, a_ as runTailscaleSyncCliCommand, a$ as runTierMigrateCliCommand, b0 as runTierStatusCliCommand, b1 as runTrainingExportCliCommand, b2 as runTrustZoneDemoSeedCliCommand, b3 as runTrustZonePromoteCliCommand, b4 as runTrustZoneStatusCliCommand, b5 as runUtilityLearningCliCommand, b6 as runUtilityLearningStatusCliCommand, b7 as runUtilityTelemetryRecordCliCommand, b8 as runUtilityTelemetryStatusCliCommand, b9 as runVerifiedRecallSearchCliCommand, ba as runVerifyMemoryProjectionCliCommand, bb as runWebDavServeCliCommand, bc as runWebDavStopCliCommand, bd as runWorkProductRecallSearchCliCommand, be as runWorkProductRecordCliCommand, bf as runWorkProductStatusCliCommand, bg as runWorkProjectCliCommand, bh as runWorkTaskCliCommand } from './cli-CWLyGroU.js';
3
+ import './memory-projection-store-ConH7gNj.js';
4
+ import './types-B49NzJ5q.js';
5
5
  import 'node:stream';
6
6
  import './dashboard-runtime.js';
7
- import './access-service-CtXFnprR.js';
7
+ import './access-service-CWYIkMwY.js';
8
8
  import './resolve-auth-token.js';
9
9
  import './evals.js';
10
10
  import './graph.js';
@@ -30,7 +30,7 @@ import './storage.js';
30
30
  import './page-versioning.js';
31
31
  import './consolidation-operator.js';
32
32
  import 'better-sqlite3';
33
- import './port-hqGnoStS.js';
33
+ import './port-DZHdlUId.js';
34
34
  import './transcript.js';
35
35
  import './summarizer.js';
36
36
  import './model-registry.js';
@@ -43,8 +43,8 @@ import './negative.js';
43
43
  import './recall-xray.js';
44
44
  import './session-observer-state.js';
45
45
  import './embedding-fallback.js';
46
- import './semantic-consolidation-ByBXb-sf.js';
47
- import './codex-materialize-CQlLTzke.js';
46
+ import './semantic-consolidation-Cxj-inGC.js';
47
+ import './codex-materialize-XRen3WAz.js';
48
48
  import './logger.js';
49
49
  import 'zod';
50
50
  import './profiling.js';
package/dist/cli.js CHANGED
@@ -88,13 +88,13 @@ import {
88
88
  runWorkProductStatusCliCommand,
89
89
  runWorkProjectCliCommand,
90
90
  runWorkTaskCliCommand
91
- } from "./chunk-HIRKCQGF.js";
92
- import "./chunk-MUELDH4F.js";
91
+ } from "./chunk-OAIXBFAH.js";
92
+ import "./chunk-57SNKQNS.js";
93
93
  import "./chunk-MXC3AP5I.js";
94
- import "./chunk-47WOM4YW.js";
95
- import "./chunk-SMA4IMHV.js";
94
+ import "./chunk-MJPNOMY4.js";
95
+ import "./chunk-SGTA3HJC.js";
96
96
  import "./chunk-AJA46VX5.js";
97
- import "./chunk-TIFRGAKO.js";
97
+ import "./chunk-FG5R5AQF.js";
98
98
  import "./chunk-HL4DB7TO.js";
99
99
  import "./chunk-ZPKBYX2F.js";
100
100
  import "./chunk-3SLRNYNG.js";
@@ -102,17 +102,17 @@ import "./chunk-LIRZNNUP.js";
102
102
  import "./chunk-Y4Z4I6WK.js";
103
103
  import "./chunk-5HRY2WRF.js";
104
104
  import "./chunk-ASAITVLA.js";
105
- import "./chunk-VTJVUHRK.js";
105
+ import "./chunk-SRBJUAMP.js";
106
106
  import "./chunk-PYXS46O7.js";
107
107
  import "./chunk-3QKK7QOS.js";
108
- import "./chunk-EGEPUGN4.js";
108
+ import "./chunk-5XVDDCMH.js";
109
109
  import "./chunk-JRNQ3RNA.js";
110
- import "./chunk-W7WWT4FJ.js";
110
+ import "./chunk-HPJPGIGN.js";
111
111
  import "./chunk-CULXMQJH.js";
112
112
  import "./chunk-E6K4NIEU.js";
113
113
  import "./chunk-EABGC2TL.js";
114
114
  import "./chunk-LOBRX7VD.js";
115
- import "./chunk-V7TEH5I2.js";
115
+ import "./chunk-TMPLRVHD.js";
116
116
  import "./chunk-YRMVARQP.js";
117
117
  import "./chunk-WSZIHQBK.js";
118
118
  import "./chunk-U66YHYC7.js";
@@ -123,7 +123,7 @@ import "./chunk-JXS5PDQ7.js";
123
123
  import "./chunk-K6WK37A6.js";
124
124
  import "./chunk-AJU4PJGY.js";
125
125
  import "./chunk-7SEAZFFB.js";
126
- import "./chunk-JWSENLQI.js";
126
+ import "./chunk-H62HCANJ.js";
127
127
  import "./chunk-Z5LAYHGJ.js";
128
128
  import "./chunk-OZHRDTDX.js";
129
129
  import "./chunk-C6QPK5GG.js";
@@ -133,19 +133,19 @@ import "./chunk-6HZ6AO2P.js";
133
133
  import "./chunk-URB2WSKZ.js";
134
134
  import "./chunk-PVGDJXVK.js";
135
135
  import "./chunk-NGAVDO7E.js";
136
- import "./chunk-CUI2STX6.js";
137
- import "./chunk-XRCYKJ3V.js";
136
+ import "./chunk-4CVIF7UZ.js";
137
+ import "./chunk-DKVEJTLC.js";
138
138
  import "./chunk-IQT3XTKW.js";
139
- import "./chunk-AEMBDV7M.js";
139
+ import "./chunk-DTDB6YS2.js";
140
140
  import "./chunk-3KIS4VGT.js";
141
141
  import "./chunk-BT7NVCML.js";
142
142
  import "./chunk-H7XKCNR6.js";
143
- import "./chunk-LW2NMHDW.js";
143
+ import "./chunk-Y6EPN6XF.js";
144
144
  import "./chunk-SOBJ6NEY.js";
145
145
  import "./chunk-NN3TS5BM.js";
146
146
  import "./chunk-EQINRHYR.js";
147
- import "./chunk-USFPPRAF.js";
148
- import "./chunk-F5VQOQ2E.js";
147
+ import "./chunk-WMK6YP7C.js";
148
+ import "./chunk-3YBRSJ52.js";
149
149
  import "./chunk-EIR5VLIH.js";
150
150
  import "./chunk-IXEJRKCZ.js";
151
151
  import "./chunk-PCUKNJAZ.js";
@@ -164,11 +164,11 @@ import "./chunk-74EMIVE4.js";
164
164
  import "./chunk-DT5TVLJE.js";
165
165
  import "./chunk-N5AKDXAI.js";
166
166
  import "./chunk-TBBDFYXW.js";
167
- import "./chunk-ZIBOQULP.js";
168
- import "./chunk-Y4A6M3B6.js";
167
+ import "./chunk-KCZZLFW5.js";
168
+ import "./chunk-46AIFPQM.js";
169
169
  import "./chunk-YNJHCGDT.js";
170
170
  import "./chunk-4KAN3GZ3.js";
171
- import "./chunk-43EKP2UK.js";
171
+ import "./chunk-TOC3VOOF.js";
172
172
  import "./chunk-PFV5C235.js";
173
173
  import "./chunk-RULE4VG5.js";
174
174
  import "./chunk-SCU65EZI.js";
@@ -187,7 +187,7 @@ import "./chunk-TVVEYCNW.js";
187
187
  import "./chunk-RFYAYKTD.js";
188
188
  import "./chunk-LBLXEFWK.js";
189
189
  import "./chunk-XKECPATV.js";
190
- import "./chunk-RILIVK4O.js";
190
+ import "./chunk-RICG4UNC.js";
191
191
  import "./chunk-IYY4MCPG.js";
192
192
  import "./chunk-457A4P3L.js";
193
193
  import "./chunk-OA3L7BFR.js";
@@ -1,4 +1,4 @@
1
- import { MemoryFile } from './types.js';
1
+ import { f as MemoryFile } from './types-B49NzJ5q.js';
2
2
 
3
3
  /**
4
4
  * codex-materialize.ts — Codex CLI native memory artifact materialization (#378)
@@ -1,4 +1,4 @@
1
- import { CompressionGuidelineOptimizerEventCounts, CompressionGuidelineOptimizerActionSummary, CompressionGuidelineOptimizerRuleUpdate, MemoryActionType, MemoryActionEvent, CompressionGuidelineOptimizerState } from './types.js';
1
+ import { ag as CompressionGuidelineOptimizerEventCounts, ah as CompressionGuidelineOptimizerActionSummary, ai as CompressionGuidelineOptimizerRuleUpdate, aj as MemoryActionType, s as MemoryActionEvent, C as CompressionGuidelineOptimizerState } from './types-B49NzJ5q.js';
2
2
 
3
3
  interface CompressionGuidelineCandidate {
4
4
  generatedAt: string;
package/dist/config.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { PluginConfig } from './types.js';
1
+ import { P as PluginConfig } from './types-B49NzJ5q.js';
2
2
 
3
3
  declare const DEFAULT_REASONING_MODEL = "gpt-5.2";
4
4
  declare const VALID_MEMORY_CATEGORIES: Set<string>;
package/dist/config.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  DEFAULT_REASONING_MODEL,
3
3
  VALID_MEMORY_CATEGORIES,
4
4
  parseConfig
5
- } from "./chunk-JWSENLQI.js";
5
+ } from "./chunk-H62HCANJ.js";
6
6
  import "./chunk-Z5LAYHGJ.js";
7
7
  import "./chunk-4DJQYKMN.js";
8
8
  import "./chunk-MARWOCVP.js";
@@ -1,8 +1,8 @@
1
1
  import { StorageManager } from './storage.js';
2
2
  import './page-versioning.js';
3
3
  import './consolidation-operator.js';
4
- import './types.js';
5
- import './memory-projection-store-CY8TU40w.js';
4
+ import './types-B49NzJ5q.js';
5
+ import './memory-projection-store-ConH7gNj.js';
6
6
  import 'better-sqlite3';
7
7
 
8
8
  /**
@@ -1,8 +1,8 @@
1
1
  import { StorageManager } from './storage.js';
2
2
  import { VersioningConfig } from './page-versioning.js';
3
3
  import './consolidation-operator.js';
4
- import './types.js';
5
- import './memory-projection-store-CY8TU40w.js';
4
+ import './types-B49NzJ5q.js';
5
+ import './memory-projection-store-ConH7gNj.js';
6
6
  import 'better-sqlite3';
7
7
 
8
8
  /**
@@ -1,4 +1,4 @@
1
- import { PluginConfig, MemoryFile } from './types.js';
1
+ import { P as PluginConfig, f as MemoryFile } from './types-B49NzJ5q.js';
2
2
 
3
3
  declare function loadDaySummaryPrompt(): Promise<string>;
4
4
  declare function formatDaySummaryMemories(memories: string | MemoryFile[]): string;
@@ -1,4 +1,4 @@
1
- import { EntityMention } from './types.js';
1
+ import { ak as EntityMention } from './types-B49NzJ5q.js';
2
2
 
3
3
  /**
4
4
  * De-linearization transform (SimpleMem-inspired).
@@ -1,4 +1,4 @@
1
- import { MemoryFile, PluginConfig } from './types.js';
1
+ import { f as MemoryFile, P as PluginConfig } from './types-B49NzJ5q.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,4 +1,4 @@
1
- import { MemoryFile } from './types.js';
1
+ import { f as MemoryFile } from './types-B49NzJ5q.js';
2
2
  import { TrustZoneName } from './trust-zones.js';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { PluginConfig } from './types.js';
1
+ import { P as PluginConfig } from './types-B49NzJ5q.js';
2
2
 
3
3
  /**
4
4
  * Thrown by `EmbeddingFallback.search()` (via `embed()`) when the embedding
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  CompoundingEngine,
3
3
  defaultTierMigrationCycleBudget
4
- } from "./chunk-XQ4EJLUD.js";
4
+ } from "./chunk-Z665HFAD.js";
5
5
  import "./chunk-IXEJRKCZ.js";
6
- import "./chunk-Y4A6M3B6.js";
6
+ import "./chunk-46AIFPQM.js";
7
7
  import "./chunk-YNJHCGDT.js";
8
8
  import "./chunk-4KAN3GZ3.js";
9
- import "./chunk-43EKP2UK.js";
9
+ import "./chunk-TOC3VOOF.js";
10
10
  import "./chunk-PFV5C235.js";
11
11
  import "./chunk-RULE4VG5.js";
12
12
  import "./chunk-SCU65EZI.js";
@@ -25,4 +25,4 @@ export {
25
25
  CompoundingEngine,
26
26
  defaultTierMigrationCycleBudget
27
27
  };
28
- //# sourceMappingURL=engine-O6YWKQM3.js.map
28
+ //# sourceMappingURL=engine-WJ7K6AZ2.js.map
@@ -1,8 +1,8 @@
1
1
  import { StorageManager } from './storage.js';
2
- import { PluginConfig, TranscriptEntry } from './types.js';
2
+ import { P as PluginConfig, a2 as TranscriptEntry } from './types-B49NzJ5q.js';
3
3
  import './page-versioning.js';
4
4
  import './consolidation-operator.js';
5
- import './memory-projection-store-CY8TU40w.js';
5
+ import './memory-projection-store-ConH7gNj.js';
6
6
  import 'better-sqlite3';
7
7
 
8
8
  interface BuildEntityRecallSectionOptions {
@@ -3,12 +3,12 @@ import {
3
3
  entityIndexVersion,
4
4
  entityRecentTranscriptLookbackHours,
5
5
  readRecentEntityTranscriptEntries
6
- } from "./chunk-52PDY6GD.js";
6
+ } from "./chunk-FLHPNR5W.js";
7
7
  import "./chunk-7SEAZFFB.js";
8
- import "./chunk-Y4A6M3B6.js";
8
+ import "./chunk-46AIFPQM.js";
9
9
  import "./chunk-YNJHCGDT.js";
10
10
  import "./chunk-4KAN3GZ3.js";
11
- import "./chunk-43EKP2UK.js";
11
+ import "./chunk-TOC3VOOF.js";
12
12
  import "./chunk-PFV5C235.js";
13
13
  import "./chunk-RULE4VG5.js";
14
14
  import "./chunk-SCU65EZI.js";
@@ -1,4 +1,4 @@
1
- import { EntitySchemaDefinition, EntitySchemaSectionDefinition, EntityStructuredSection } from './types.js';
1
+ import { al as EntitySchemaDefinition, am as EntitySchemaSectionDefinition, p as EntityStructuredSection } from './types-B49NzJ5q.js';
2
2
 
3
3
  declare function normalizeEntityText(value: string): string;
4
4
  declare function normalizeEntitySchemas(raw: unknown): Record<string, EntitySchemaDefinition> | undefined;
@@ -1,12 +1,12 @@
1
- import { O as Orchestrator } from './orchestrator-ChkesB8U.js';
2
- import { MemoryCategory, PluginConfig } from './types.js';
1
+ import { O as Orchestrator } from './orchestrator-BHkiEBbd.js';
2
+ import { M as MemoryCategory, P as PluginConfig } from './types-B49NzJ5q.js';
3
3
  import './buffer.js';
4
4
  import './storage.js';
5
5
  import './page-versioning.js';
6
6
  import './consolidation-operator.js';
7
- import './memory-projection-store-CY8TU40w.js';
7
+ import './memory-projection-store-ConH7gNj.js';
8
8
  import 'better-sqlite3';
9
- import './port-hqGnoStS.js';
9
+ import './port-DZHdlUId.js';
10
10
  import './transcript.js';
11
11
  import './session-integrity.js';
12
12
  import './summarizer.js';
@@ -21,8 +21,8 @@ import './recall-state.js';
21
21
  import './recall-xray.js';
22
22
  import './session-observer-state.js';
23
23
  import './embedding-fallback.js';
24
- import './semantic-consolidation-ByBXb-sf.js';
25
- import './codex-materialize-CQlLTzke.js';
24
+ import './semantic-consolidation-Cxj-inGC.js';
25
+ import './codex-materialize-XRen3WAz.js';
26
26
  import './logger.js';
27
27
  import 'zod';
28
28
  import './policy-runtime.js';
@@ -1,5 +1,5 @@
1
1
  import { JudgeVerdictKind } from './extraction-judge.js';
2
- import './types.js';
2
+ import './types-B49NzJ5q.js';
3
3
  import './local-llm.js';
4
4
  import './model-registry.js';
5
5
  import './fallback-llm.js';
@@ -1,5 +1,5 @@
1
1
  import { JudgeVerdictKind } from './extraction-judge.js';
2
- import './types.js';
2
+ import './types-B49NzJ5q.js';
3
3
  import './local-llm.js';
4
4
  import './model-registry.js';
5
5
  import './fallback-llm.js';
@@ -1,4 +1,4 @@
1
- import { ImportanceLevel, PluginConfig } from './types.js';
1
+ import { an as ImportanceLevel, P as PluginConfig } from './types-B49NzJ5q.js';
2
2
  import { LocalLlmClient } from './local-llm.js';
3
3
  import { FallbackLlmClient } from './fallback-llm.js';
4
4
  import './model-registry.js';
@@ -1,6 +1,6 @@
1
1
  import { LocalLlmClient } from './local-llm.js';
2
2
  import { ContradictionVerificationResult, SuggestedLinks, MemorySummaryResult } from './schemas.js';
3
- import { PluginConfig, GatewayConfig, BufferTurn, ExtractionResult, MemoryFile, ConsolidationResult, DaySummaryResult } from './types.js';
3
+ import { P as PluginConfig, G as GatewayConfig, a1 as BufferTurn, _ as ExtractionResult, f as MemoryFile, ao as ConsolidationResult, D as DaySummaryResult } from './types-B49NzJ5q.js';
4
4
  import { ModelRegistry } from './model-registry.js';
5
5
  import { ProfilingCollector } from './profiling.js';
6
6
  import 'zod';
@@ -1,4 +1,4 @@
1
- import { GatewayConfig } from './types.js';
1
+ import { G as GatewayConfig } from './types-B49NzJ5q.js';
2
2
 
3
3
  interface FallbackLlmOptions {
4
4
  temperature?: number;
@@ -1,4 +1,4 @@
1
- import { ContinuityIncidentRecord, ContinuityIncidentCloseInput, ContinuityIncidentOpenInput, ContinuityImprovementLoop, ContinuityLoopReviewInput, ContinuityLoopUpsertInput } from './types.js';
1
+ import { v as ContinuityIncidentRecord, w as ContinuityIncidentCloseInput, u as ContinuityIncidentOpenInput, x as ContinuityImprovementLoop, z as ContinuityLoopReviewInput, y as ContinuityLoopUpsertInput } from './types-B49NzJ5q.js';
2
2
 
3
3
  declare function serializeContinuityIncident(incident: ContinuityIncidentRecord): string;
4
4
  declare function parseContinuityIncident(raw: string): ContinuityIncidentRecord | null;
@@ -1,4 +1,4 @@
1
- import { ImportanceLevel, MemoryFile, ImportanceScore, MemoryCategory } from './types.js';
1
+ import { an as ImportanceLevel, f as MemoryFile, I as ImportanceScore, M as MemoryCategory } from './types-B49NzJ5q.js';
2
2
 
3
3
  /**
4
4
  * Local Importance Scoring (Phase 1B)
package/dist/index.d.ts CHANGED
@@ -1,25 +1,25 @@
1
1
  export { LEGACY_PLUGIN_ID, PLUGIN_ID, resolveRemnicPluginEntry } from './plugin-id.js';
2
2
  export { parseConfig } from './config.js';
3
- import { f as BulkImportSourceAdapter, b as ImportTurn } from './orchestrator-ChkesB8U.js';
4
- export { g as BulkImportError, c as BulkImportOptions, d as BulkImportResult, B as BulkImportSource, h as ImportSourceRole, i as ImportTurnValidationIssue, O as Orchestrator, j as SemanticDedupDecision, k as SemanticDedupHit, S as SemanticDedupLookup, l as SemanticDedupOptions, m as decideSemanticDedup, n as defaultWorkspaceDir, o as isImportRole, p as parseIsoTimestamp, s as sanitizeSessionKeyForFilename, v as validateImportTurn } from './orchestrator-ChkesB8U.js';
3
+ import { f as BulkImportSourceAdapter, b as ImportTurn } from './orchestrator-BHkiEBbd.js';
4
+ export { g as BulkImportError, c as BulkImportOptions, d as BulkImportResult, B as BulkImportSource, h as ImportSourceRole, i as ImportTurnValidationIssue, O as Orchestrator, j as SemanticDedupDecision, k as SemanticDedupHit, S as SemanticDedupLookup, l as SemanticDedupOptions, m as decideSemanticDedup, n as defaultWorkspaceDir, o as isImportRole, p as parseIsoTimestamp, s as sanitizeSessionKeyForFilename, v as validateImportTurn } from './orchestrator-BHkiEBbd.js';
5
5
  export { EvidencePackItem, EvidencePackOptions, buildEvidencePack } from './evidence-pack.js';
6
6
  import { StorageManager } from './storage.js';
7
7
  export { ExtractionEngine } from './extraction.js';
8
8
  export { BufferSurpriseProbe, SmartBuffer, TriggerDecision } from './buffer.js';
9
9
  export { ComputeSurpriseOptions, DEFAULT_SURPRISE_K, RecentMemoryLike, computeSurprise } from './buffer-surprise.js';
10
10
  export { BufferSurpriseDistribution, BufferSurpriseReader, BufferSurpriseReportOptions, reportBufferSurpriseDistribution } from './buffer-surprise-report.js';
11
- import { PluginConfig, CodingContext, CodingModeConfig, MemoryFile, MemoryCategory, ImportanceLevel } from './types.js';
12
- export { AgentAccessAuthToken, BriefingActiveThread, BriefingConfig, BriefingFocus, BriefingFollowup, BriefingOpenCommitment, BriefingRecentEntity, BriefingResult, BriefingSections, BriefingWindow, BufferSurpriseEvent, CalendarEvent, CalendarSource, CodexCompatConfig, ContinuityImprovementLoop, DEFAULT_RECALL_DISCLOSURE, ExtractedFact, GatewayConfig, MemoryActionEligibilityContext, MemoryActionEligibilitySource, MemoryActionType, MemoryObservation, MemoryScope, RECALL_DISCLOSURE_LEVELS, RecallDisclosure, SecretRef, isRecallDisclosure } from './types.js';
11
+ import { P as PluginConfig, S as CodingContext, ap as CodingModeConfig, f as MemoryFile, M as MemoryCategory, an as ImportanceLevel } from './types-B49NzJ5q.js';
12
+ export { af as AgentAccessAuthToken, ab as BriefingActiveThread, aq as BriefingConfig, a8 as BriefingFocus, a7 as BriefingFollowup, ar as BriefingOpenCommitment, ad as BriefingRecentEntity, ac as BriefingResult, a6 as BriefingSections, as as BriefingWindow, t as BufferSurpriseEvent, aa as CalendarEvent, a9 as CalendarSource, at as CodexCompatConfig, x as ContinuityImprovementLoop, au as DEFAULT_RECALL_DISCLOSURE, av as ExtractedFact, G as GatewayConfig, L as LcmMessagePartInput, aw as LcmMessagePartKind, ax as LcmMessagePartRow, ay as MemoryActionEligibilityContext, az as MemoryActionEligibilitySource, aj as MemoryActionType, aA as MemoryObservation, aB as MemoryScope, j as MessagePartSourceFormat, aC as ParseMessagePartsOptions, aD as RECALL_DISCLOSURE_LEVELS, g as RecallDisclosure, ae as SecretRef, aE as isLcmMessagePartKind, aF as isRecallDisclosure, aG as normalizeExplicitParts, aH as parseAnthropicMessageParts, aI as parseMessageParts, aJ as parseOpenAiMessageParts, aK as parseOpenClawMessageParts, aL as partsFromRenderedText } from './types-B49NzJ5q.js';
13
13
  export { JudgeBatchResult, JudgeCandidate, JudgeVerdict, JudgeVerdictKind, clearVerdictCache, createVerdictCache, getVerdictKind, isDurableVerdict, isValidCachedVerdict, judgeFactDurability, normalizeCachedVerdict, verdictCacheSize } from './extraction-judge.js';
14
14
  export { hasBroadGraphIntent, inferIntentFromText, intentCompatibilityScore, isTaskInitiationIntent, planRecallMode } from './intent.js';
15
- import { P as PeerInteractionLogEntry, a as Peer, b as PeerProfile, c as ExportManifestV2, I as ImportCapsuleResult, C as CapsuleParent } from './access-service-CtXFnprR.js';
16
- export { d as EngramAccessInputError, E as EngramAccessService, e as PEER_ID_MAX_LENGTH, f as PEER_ID_PATTERN, g as PeerKind, h as PeerProfileFieldProvenance, i as ProcedureStatsConfigSnapshot, j as ProcedureStatsRecent, k as ProcedureStatsReport, l as ProcedureStatusCounts, m as computeProcedureStats, n as formatProcedureStatsText } from './access-service-CtXFnprR.js';
15
+ import { P as PeerInteractionLogEntry, a as Peer, b as PeerProfile, c as ExportManifestV2, I as ImportCapsuleResult, C as CapsuleParent } from './access-service-CWYIkMwY.js';
16
+ export { d as EngramAccessInputError, E as EngramAccessService, e as PEER_ID_MAX_LENGTH, f as PEER_ID_PATTERN, g as PeerKind, h as PeerProfileFieldProvenance, i as ProcedureStatsConfigSnapshot, j as ProcedureStatsRecent, k as ProcedureStatsReport, l as ProcedureStatusCounts, m as computeProcedureStats, n as formatProcedureStatsText } from './access-service-CWYIkMwY.js';
17
17
  export { FILTER_LABELS as DIRECT_ANSWER_FILTER_LABELS, DirectAnswerCandidate, DirectAnswerConfig, DirectAnswerInput, DirectAnswerReason, DirectAnswerResult, isDirectAnswerEligible } from './direct-answer.js';
18
18
  export { MemoryTier, TierRoutingPolicy, TierTransitionDecision, computeTierValueScore, decideTierTransition } from './tier-routing.js';
19
19
  export { ApplyReasoningTraceBoostOptions, BoostableResult, DEFAULT_REASONING_TRACE_BOOST, applyReasoningTraceBoost, isReasoningTracePath, looksLikeProblemSolvingQuery } from './reasoning-trace-recall.js';
20
20
  export { CITATION_UNKNOWN, CitationContext, DEFAULT_CITATION_FORMAT, ParsedCitation, attachCitation, deriveSessionId, formatCitation, hasCitation, parseAllCitations, parseCitation, stripCitation } from './source-attribution.js';
21
21
  export { QmdClient } from './qmd.js';
22
- import { S as SearchBackend, a as SearchQueryOptions, b as SearchExecutionOptions, c as SearchResult } from './port-hqGnoStS.js';
22
+ import { S as SearchBackend, a as SearchQueryOptions, b as SearchExecutionOptions, c as SearchResult } from './port-DZHdlUId.js';
23
23
  export { buildEntityRecallSection } from './entity-retrieval.js';
24
24
  export { TrustZoneName, TrustZoneRecord, TrustZoneRecordKind, TrustZoneSourceClass, isTrustZoneName } from './trust-zones.js';
25
25
  export { EngramAccessHttpServer } from './access-http.js';
@@ -30,7 +30,7 @@ export { RECALL_XRAY_FORMATS, RecallXrayFormat, parseXrayFormat, renderXray, ren
30
30
  export { RecallFilterTrace, RecallXrayResult, RecallXrayScoreDecomposition, RecallXrayServedBy, RecallXraySnapshot } from './recall-xray.js';
31
31
  export { MemoryStoreRequest, ObserveRequest, RecallRequest, SchemaName, SchemaValidationError, SuggestionSubmitRequest, formatZodError, memoryStoreRequestSchema, observeRequestSchema, recallRequestSchema, suggestionSubmitRequestSchema, validateRequest } from './access-schema.js';
32
32
  export { buildExtensionsFooterForSummary, loadDaySummaryPrompt } from './day-summary.js';
33
- import { B as BetterSqlite3Database } from './memory-projection-store-CY8TU40w.js';
33
+ import { B as BetterSqlite3Database } from './memory-projection-store-ConH7gNj.js';
34
34
  export { ActiveMemoryGetOutput, ActiveMemoryMetadata, ActiveMemoryRecallParams, ActiveMemorySearchOutput, ActiveMemorySearchResult, getMemoryForActiveMemory, recallForActiveMemory } from './active-memory-bridge.js';
35
35
  export { BRIEFING_FORMAT_ALLOWED, BriefingFollowupGenerator, BriefingFormatValue, BuildBriefingOptions, FileCalendarSource, ParsedBriefingWindow, briefingFilename, buildBriefing, focusMatchesEntity, focusMatchesMemory, parseBriefingFocus, parseBriefingWindow, renderBriefingMarkdown, resolveBriefingSaveDir, validateBriefingFormat } from './briefing.js';
36
36
  export { BootstrapEngine } from './bootstrap.js';
@@ -39,18 +39,18 @@ export { PageVersion, VersionHistory, VersionTrigger, VersioningConfig, Versioni
39
39
  export { CitationBlock, CitationEntry, CitationMetadata, buildCitationGuidance, formatOaiMemCitation, parseOaiMemCitation, sanitizeNoteForCitation } from './citations.js';
40
40
  import { LoggerBackend } from './logger.js';
41
41
  export { initLogger, log } from './logger.js';
42
- import { D as DiscoveredExtension } from './semantic-consolidation-ByBXb-sf.js';
43
- export { E as ExtensionSchema, R as REMNIC_EXTENSIONS_TOTAL_TOKEN_LIMIT, b as buildExtensionsBlockForConsolidation, d as discoverMemoryExtensions, r as resolveExtensionsRoot } from './semantic-consolidation-ByBXb-sf.js';
42
+ import { D as DiscoveredExtension } from './semantic-consolidation-Cxj-inGC.js';
43
+ export { E as ExtensionSchema, R as REMNIC_EXTENSIONS_TOTAL_TOKEN_LIMIT, b as buildExtensionsBlockForConsolidation, d as discoverMemoryExtensions, r as resolveExtensionsRoot } from './semantic-consolidation-Cxj-inGC.js';
44
44
  import { L as LiveConnector, S as SyncIncrementalResult } from './framework-CyHYDcri.js';
45
45
  export { c as CONNECTOR_ID_PATTERN, C as ConnectorConfig, b as ConnectorCursor, a as ConnectorDocument, d as ConnectorDocumentSource, e as SyncIncrementalArgs, i as isValidConnectorId } from './framework-CyHYDcri.js';
46
46
  export { C as CONNECTORS_OUTPUT_FORMATS, a as ConnectorRow, b as ConnectorRunResult, c as ConnectorState, d as ConnectorSyncStatus, e as ConnectorsOutputFormat, P as ParsedConnectorsListOptions, f as ParsedConnectorsStatusOptions, R as RunConnectorPollOnceArgs, l as listConnectorStates, p as parseConnectorsFormat, g as parseConnectorsListOptions, h as parseConnectorsRunName, i as parseConnectorsStatusOptions, r as readConnectorState, j as renderConnectorsList, k as renderConnectorsRunResult, m as runConnectorPollOnce, w as writeConnectorState } from './connectors-cli-DFGtY2DB.js';
47
47
  export { LiveConnectorDefinition, LiveConnectorRunItem, LiveConnectorSkipReason, LiveConnectorsRunSummary, builtInLiveConnectorDefinitions, hasEnabledLiveConnector, runLiveConnectorsOnce } from './live-connectors-runner.js';
48
48
  export { TokenEntry, TokenStore, generateToken, getAllValidTokens, getAllValidTokensCached, listTokens, loadTokenStore, resolveConnectorFromToken, revokeToken, saveTokenStore } from './tokens.js';
49
- import { R as RolloutSummaryInput, M as MaterializeResult } from './codex-materialize-CQlLTzke.js';
50
- export { a as MATERIALIZE_VERSION, b as MaterializeOptions, S as SENTINEL_FILE, d as describeMemoriesDir, e as ensureSentinel, m as materializeForNamespace } from './codex-materialize-CQlLTzke.js';
49
+ import { R as RolloutSummaryInput, M as MaterializeResult } from './codex-materialize-XRen3WAz.js';
50
+ export { a as MATERIALIZE_VERSION, b as MaterializeOptions, S as SENTINEL_FILE, d as describeMemoriesDir, e as ensureSentinel, m as materializeForNamespace } from './codex-materialize-XRen3WAz.js';
51
51
  import { T as Taxonomy, R as ResolverDecision } from './types-DJhqDJUV.js';
52
52
  export { a as TaxonomyCategory } from './types-DJhqDJUV.js';
53
- export { B as BulkImportCliCommandOptions, P as ProcessBatchFn, a as ProcessBatchResult, f as formatBatchTranscript, p as parseStrictCliDate, r as runBulkImportCliCommand, b as runBulkImportPipeline } from './cli-lMql2FCr.js';
53
+ export { B as BulkImportCliCommandOptions, P as ProcessBatchFn, a as ProcessBatchResult, f as formatBatchTranscript, p as parseStrictCliDate, r as runBulkImportCliCommand, b as runBulkImportPipeline } from './cli-CWLyGroU.js';
54
54
  export { FallbackLlmClient, FallbackLlmOptions, FallbackLlmResponse, FallbackLlmRuntimeContext } from './fallback-llm.js';
55
55
  export { ComputeMemoryWorthInput, MemoryWorthResult, computeMemoryWorth } from './memory-worth.js';
56
56
  export { MemoryOutcomeKind, RecordMemoryOutcomeInput, RecordMemoryOutcomeResult, memoryWorthOutcomeEligibleCategories, recordMemoryOutcome } from './memory-worth-outcomes.js';