@remnic/core 9.69.55 → 9.69.57
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.
- package/dist/abort-error.d.ts +5 -6
- package/dist/abort-error.d.ts.map +1 -0
- package/dist/abstraction-nodes.d.ts +12 -13
- package/dist/abstraction-nodes.d.ts.map +1 -0
- package/dist/access-admin-ops-surface.d.ts +20 -153
- package/dist/access-admin-ops-surface.d.ts.map +1 -0
- package/dist/access-admin-ops-surface.js +65 -60
- package/dist/access-audit.d.ts +6 -10
- package/dist/access-audit.d.ts.map +1 -0
- package/dist/access-audit.js +2 -2
- package/dist/access-authorization-probe.d.ts +7 -152
- package/dist/access-authorization-probe.d.ts.map +1 -0
- package/dist/access-authorization-probe.js +66 -61
- package/dist/access-boundary.d.ts +156 -145
- package/dist/access-boundary.d.ts.map +1 -0
- package/dist/access-boundary.js +65 -60
- package/dist/access-citation-namespace.d.ts +3 -3
- package/dist/access-citation-namespace.d.ts.map +1 -0
- package/dist/access-citation.d.ts +6 -7
- package/dist/access-citation.d.ts.map +1 -0
- package/dist/access-cli.d.ts +7 -7
- package/dist/access-cli.d.ts.map +1 -0
- package/dist/access-cli.js +157 -152
- package/dist/access-cli.js.map +1 -1
- package/dist/access-coding-context-resolution.d.ts +4 -23
- package/dist/access-coding-context-resolution.d.ts.map +1 -0
- package/dist/access-errors.d.ts +57 -5
- package/dist/access-errors.d.ts.map +1 -0
- package/dist/access-errors.js +13 -3
- package/dist/access-extraction-force-flush.d.ts +5 -150
- package/dist/access-extraction-force-flush.d.ts.map +1 -0
- package/dist/access-extraction-force-flush.js +65 -60
- package/dist/access-health-types.d.ts +7 -30
- package/dist/access-health-types.d.ts.map +1 -0
- package/dist/access-http-briefing.d.ts +5 -150
- package/dist/access-http-briefing.d.ts.map +1 -0
- package/dist/access-http-briefing.js +66 -61
- package/dist/access-http-lcm-compaction.d.ts +12 -156
- package/dist/access-http-lcm-compaction.d.ts.map +1 -0
- package/dist/access-http-lifecycle-flush.d.ts +6 -150
- package/dist/access-http-lifecycle-flush.d.ts.map +1 -0
- package/dist/access-http-offline-stream.d.ts +6 -151
- package/dist/access-http-offline-stream.d.ts.map +1 -0
- package/dist/access-http-query.d.ts +6 -26
- package/dist/access-http-query.d.ts.map +1 -0
- package/dist/access-http-query.js +67 -62
- package/dist/access-http.d.ts +22 -189
- package/dist/access-http.d.ts.map +1 -0
- package/dist/access-http.js +93 -89
- package/dist/access-idempotency.d.ts +5 -5
- package/dist/access-idempotency.d.ts.map +1 -0
- package/dist/access-identity-continuity-surface.d.ts +4 -115
- package/dist/access-identity-continuity-surface.d.ts.map +1 -0
- package/dist/access-identity-continuity-surface.js +65 -60
- package/dist/access-lcm-surface.d.ts +5 -151
- package/dist/access-lcm-surface.d.ts.map +1 -0
- package/dist/access-lcm-surface.js +65 -60
- package/dist/access-mcp-admin-tools.d.ts +4 -5
- package/dist/access-mcp-admin-tools.d.ts.map +1 -0
- package/dist/access-mcp-output-schemas.d.ts +2 -3
- package/dist/access-mcp-output-schemas.d.ts.map +1 -0
- package/dist/access-mcp-output-schemas.js +1 -1
- package/dist/access-mcp-shared-context-tools.d.ts +3 -150
- package/dist/access-mcp-shared-context-tools.d.ts.map +1 -0
- package/dist/access-mcp-sse.d.ts +3 -5
- package/dist/access-mcp-sse.d.ts.map +1 -0
- package/dist/access-mcp-tool-names.d.ts +9 -10
- package/dist/access-mcp-tool-names.d.ts.map +1 -0
- package/dist/access-mcp.d.ts +178 -145
- package/dist/access-mcp.d.ts.map +1 -0
- package/dist/access-mcp.js +80 -76
- package/dist/access-memory-search-fanout.d.ts +18 -37
- package/dist/access-memory-search-fanout.d.ts.map +1 -0
- package/dist/access-memory-search-fanout.js +2 -2
- package/dist/access-namespace-preflight.d.ts +18 -22
- package/dist/access-namespace-preflight.d.ts.map +1 -0
- package/dist/access-namespace-preflight.js +65 -60
- package/dist/access-observe-helpers.d.ts +4 -5
- package/dist/access-observe-helpers.d.ts.map +1 -0
- package/dist/access-observe-transcript.d.ts +5 -115
- package/dist/access-observe-transcript.d.ts.map +1 -0
- package/dist/access-observe-write-category.d.ts +5 -42
- package/dist/access-observe-write-category.d.ts.map +1 -0
- package/dist/access-observe-write-category.js +7 -7
- package/dist/access-observe-write-surface.d.ts +6 -151
- package/dist/access-observe-write-surface.d.ts.map +1 -0
- package/dist/access-observe-write-surface.js +65 -60
- package/dist/access-offline-manifest.d.ts +10 -124
- package/dist/access-offline-manifest.d.ts.map +1 -0
- package/dist/access-offline-manifest.js +7 -7
- package/dist/access-operations-batch.d.ts +12 -2
- package/dist/access-operations-batch.d.ts.map +1 -0
- package/dist/access-operations-batch.js +69 -66
- package/dist/access-operations.d.ts +66 -188
- package/dist/access-operations.d.ts.map +1 -0
- package/dist/access-operations.js +76 -73
- package/dist/access-recall-concurrency.d.ts +11 -156
- package/dist/access-recall-concurrency.d.ts.map +1 -0
- package/dist/access-recall-concurrency.js +65 -60
- package/dist/access-recall-diagnostics.d.ts +64 -0
- package/dist/access-recall-diagnostics.d.ts.map +1 -0
- package/dist/access-recall-diagnostics.js +26 -0
- package/dist/access-recall-response.d.ts +7 -151
- package/dist/access-recall-response.d.ts.map +1 -0
- package/dist/access-recall-response.js +65 -60
- package/dist/access-recall-surface.d.ts +11 -152
- package/dist/access-recall-surface.d.ts.map +1 -0
- package/dist/access-recall-surface.js +65 -60
- package/dist/access-schema.d.ts +106 -124
- package/dist/access-schema.d.ts.map +1 -0
- package/dist/access-schema.js +3 -3
- package/dist/access-service-helpers.d.ts +33 -145
- package/dist/access-service-helpers.d.ts.map +1 -0
- package/dist/access-service.d.ts +1825 -145
- package/dist/access-service.d.ts.map +1 -0
- package/dist/access-service.js +65 -60
- package/dist/access-surface-catalog.d.ts +7 -154
- package/dist/access-surface-catalog.d.ts.map +1 -0
- package/dist/access-surface-catalog.js +69 -62
- package/dist/access-surface-catalog.js.map +1 -1
- package/dist/access-token-capabilities.d.ts +19 -22
- package/dist/access-token-capabilities.d.ts.map +1 -0
- package/dist/access-token-capabilities.js +2 -2
- package/dist/access-wearables-meetings-surface.d.ts +14 -54
- package/dist/access-wearables-meetings-surface.d.ts.map +1 -0
- package/dist/action-confidence.d.ts +19 -40
- package/dist/action-confidence.d.ts.map +1 -0
- package/dist/active-context-config.d.ts +7 -8
- package/dist/active-context-config.d.ts.map +1 -0
- package/dist/active-context-transform.d.ts +31 -33
- package/dist/active-context-transform.d.ts.map +1 -0
- package/dist/active-memory-bridge.d.ts +10 -28
- package/dist/active-memory-bridge.d.ts.map +1 -0
- package/dist/active-recall.d.ts +11 -30
- package/dist/active-recall.d.ts.map +1 -0
- package/dist/active-recall.js +23 -23
- package/dist/activity/config.d.ts +24 -0
- package/dist/activity/config.d.ts.map +1 -0
- package/dist/activity/digest.d.ts +15 -35
- package/dist/activity/digest.d.ts.map +1 -0
- package/dist/activity/dwell.d.ts +14 -0
- package/dist/activity/dwell.d.ts.map +1 -0
- package/dist/activity/from-ms.d.ts +7 -0
- package/dist/activity/from-ms.d.ts.map +1 -0
- package/dist/activity/heading-level.d.ts +15 -0
- package/dist/activity/heading-level.d.ts.map +1 -0
- package/dist/activity/heading-title.d.ts +15 -0
- package/dist/activity/heading-title.d.ts.map +1 -0
- package/dist/activity/index.d.ts +46 -0
- package/dist/activity/index.d.ts.map +1 -0
- package/dist/activity/journal-extract.d.ts +68 -0
- package/dist/activity/journal-extract.d.ts.map +1 -0
- package/dist/activity/journal-heading.d.ts +26 -0
- package/dist/activity/journal-heading.d.ts.map +1 -0
- package/dist/activity/journal-path.d.ts +9 -0
- package/dist/activity/journal-path.d.ts.map +1 -0
- package/dist/activity/journal-read.d.ts +31 -0
- package/dist/activity/journal-read.d.ts.map +1 -0
- package/dist/activity/journal-section.d.ts +17 -0
- package/dist/activity/journal-section.d.ts.map +1 -0
- package/dist/activity/journal-source.d.ts +25 -0
- package/dist/activity/journal-source.d.ts.map +1 -0
- package/dist/activity/journal-state.d.ts +21 -0
- package/dist/activity/journal-state.d.ts.map +1 -0
- package/dist/activity/journal-state.lock-worker.d.ts +2 -0
- package/dist/activity/journal-state.lock-worker.d.ts.map +1 -0
- package/dist/activity/journal-strip.d.ts +6 -0
- package/dist/activity/journal-strip.d.ts.map +1 -0
- package/dist/activity/journal-vault-prereq.d.ts +23 -0
- package/dist/activity/journal-vault-prereq.d.ts.map +1 -0
- package/dist/activity/journal-vault-provenance.d.ts +12 -0
- package/dist/activity/journal-vault-provenance.d.ts.map +1 -0
- package/dist/activity/journal-vault-read.d.ts +32 -0
- package/dist/activity/journal-vault-read.d.ts.map +1 -0
- package/dist/activity/journal.d.ts +29 -0
- package/dist/activity/journal.d.ts.map +1 -0
- package/dist/activity/memory-gen.d.ts +71 -0
- package/dist/activity/memory-gen.d.ts.map +1 -0
- package/dist/activity/pipeline.d.ts +44 -0
- package/dist/activity/pipeline.d.ts.map +1 -0
- package/dist/activity/privacy-delete-plan.d.ts +22 -0
- package/dist/activity/privacy-delete-plan.d.ts.map +1 -0
- package/dist/activity/privacy-enabled.d.ts +16 -0
- package/dist/activity/privacy-enabled.d.ts.map +1 -0
- package/dist/activity/privacy-gate-resolve.d.ts +17 -0
- package/dist/activity/privacy-gate-resolve.d.ts.map +1 -0
- package/dist/activity/privacy-keys.d.ts +8 -0
- package/dist/activity/privacy-keys.d.ts.map +1 -0
- package/dist/activity/privacy-redact.d.ts +13 -0
- package/dist/activity/privacy-redact.d.ts.map +1 -0
- package/dist/activity/privacy-status.d.ts +30 -0
- package/dist/activity/privacy-status.d.ts.map +1 -0
- package/dist/activity/privacy-window.d.ts +15 -0
- package/dist/activity/privacy-window.d.ts.map +1 -0
- package/dist/activity/privacy.d.ts +17 -0
- package/dist/activity/privacy.d.ts.map +1 -0
- package/dist/activity/reindex.d.ts +23 -0
- package/dist/activity/reindex.d.ts.map +1 -0
- package/dist/activity/retain-days.d.ts +8 -0
- package/dist/activity/retain-days.d.ts.map +1 -0
- package/dist/activity/runner.d.ts +100 -0
- package/dist/activity/runner.d.ts.map +1 -0
- package/dist/activity/scheduler.d.ts +90 -0
- package/dist/activity/scheduler.d.ts.map +1 -0
- package/dist/activity/source-client.d.ts +24 -0
- package/dist/activity/source-client.d.ts.map +1 -0
- package/dist/activity/store.d.ts +53 -0
- package/dist/activity/store.d.ts.map +1 -0
- package/dist/activity/sync-registration.d.ts +83 -0
- package/dist/activity/sync-registration.d.ts.map +1 -0
- package/dist/activity/timeline/analysis-batch-empty.d.ts +8 -0
- package/dist/activity/timeline/analysis-batch-empty.d.ts.map +1 -0
- package/dist/activity/timeline/analysis-batch.d.ts +12 -0
- package/dist/activity/timeline/analysis-batch.d.ts.map +1 -0
- package/dist/activity/timeline/analysis-claim.d.ts +14 -0
- package/dist/activity/timeline/analysis-claim.d.ts.map +1 -0
- package/dist/activity/timeline/analysis-dup.d.ts +8 -0
- package/dist/activity/timeline/analysis-dup.d.ts.map +1 -0
- package/dist/activity/timeline/analysis-empty.d.ts +8 -0
- package/dist/activity/timeline/analysis-empty.d.ts.map +1 -0
- package/dist/activity/timeline/analysis-evidence.d.ts +12 -0
- package/dist/activity/timeline/analysis-evidence.d.ts.map +1 -0
- package/dist/activity/timeline/analysis-failure.d.ts +19 -0
- package/dist/activity/timeline/analysis-failure.d.ts.map +1 -0
- package/dist/activity/timeline/analysis-max.d.ts +8 -0
- package/dist/activity/timeline/analysis-max.d.ts.map +1 -0
- package/dist/activity/timeline/analysis-metadata.d.ts +30 -0
- package/dist/activity/timeline/analysis-metadata.d.ts.map +1 -0
- package/dist/activity/timeline/analysis-order.d.ts +8 -0
- package/dist/activity/timeline/analysis-order.d.ts.map +1 -0
- package/dist/activity/timeline/analysis-overlap.d.ts +8 -0
- package/dist/activity/timeline/analysis-overlap.d.ts.map +1 -0
- package/dist/activity/timeline/analysis-prompt.d.ts +13 -0
- package/dist/activity/timeline/analysis-prompt.d.ts.map +1 -0
- package/dist/activity/timeline/analysis-provider.d.ts +84 -0
- package/dist/activity/timeline/analysis-provider.d.ts.map +1 -0
- package/dist/activity/timeline/analysis-run.d.ts +40 -0
- package/dist/activity/timeline/analysis-run.d.ts.map +1 -0
- package/dist/activity/timeline/analysis.d.ts +63 -0
- package/dist/activity/timeline/analysis.d.ts.map +1 -0
- package/dist/activity/timeline/build.d.ts +50 -0
- package/dist/activity/timeline/build.d.ts.map +1 -0
- package/dist/activity/timeline/categories.d.ts +27 -0
- package/dist/activity/timeline/categories.d.ts.map +1 -0
- package/dist/activity/timeline/classify.d.ts +20 -0
- package/dist/activity/timeline/classify.d.ts.map +1 -0
- package/dist/activity/timeline/corrections.d.ts +37 -0
- package/dist/activity/timeline/corrections.d.ts.map +1 -0
- package/dist/activity/timeline/index.d.ts +35 -0
- package/dist/activity/timeline/index.d.ts.map +1 -0
- package/dist/activity/timeline/journal-recap-persist.d.ts +14 -0
- package/dist/activity/timeline/journal-recap-persist.d.ts.map +1 -0
- package/dist/activity/timeline/journal-recap.d.ts +21 -0
- package/dist/activity/timeline/journal-recap.d.ts.map +1 -0
- package/dist/activity/timeline/publish-cli.d.ts +17 -0
- package/dist/activity/timeline/publish-cli.d.ts.map +1 -0
- package/dist/activity/timeline/query.d.ts +86 -0
- package/dist/activity/timeline/query.d.ts.map +1 -0
- package/dist/activity/timeline/recap-card-count.d.ts +7 -0
- package/dist/activity/timeline/recap-card-count.d.ts.map +1 -0
- package/dist/activity/timeline/recap-card-id.d.ts +14 -0
- package/dist/activity/timeline/recap-card-id.d.ts.map +1 -0
- package/dist/activity/timeline/recap-date.d.ts +15 -0
- package/dist/activity/timeline/recap-date.d.ts.map +1 -0
- package/dist/activity/timeline/recap-empty.d.ts +8 -0
- package/dist/activity/timeline/recap-empty.d.ts.map +1 -0
- package/dist/activity/timeline/recap-export-range.d.ts +55 -0
- package/dist/activity/timeline/recap-export-range.d.ts.map +1 -0
- package/dist/activity/timeline/recap-export.d.ts +48 -0
- package/dist/activity/timeline/recap-export.d.ts.map +1 -0
- package/dist/activity/timeline/recap-fallback.d.ts +47 -0
- package/dist/activity/timeline/recap-fallback.d.ts.map +1 -0
- package/dist/activity/timeline/recap-id.d.ts +8 -0
- package/dist/activity/timeline/recap-id.d.ts.map +1 -0
- package/dist/activity/timeline/recap-markdown.d.ts +15 -0
- package/dist/activity/timeline/recap-markdown.d.ts.map +1 -0
- package/dist/activity/timeline/recap-merge-edits.d.ts +24 -0
- package/dist/activity/timeline/recap-merge-edits.d.ts.map +1 -0
- package/dist/activity/timeline/recap-sort-key.d.ts +9 -0
- package/dist/activity/timeline/recap-sort-key.d.ts.map +1 -0
- package/dist/activity/timeline/recap-tz.d.ts +15 -0
- package/dist/activity/timeline/recap-tz.d.ts.map +1 -0
- package/dist/activity/timeline/recap-window.d.ts +19 -0
- package/dist/activity/timeline/recap-window.d.ts.map +1 -0
- package/dist/activity/timeline/regenerate.d.ts +84 -0
- package/dist/activity/timeline/regenerate.d.ts.map +1 -0
- package/dist/activity/timeline/types.d.ts +98 -0
- package/dist/activity/timeline/types.d.ts.map +1 -0
- package/dist/activity/timeline/week-config-hash.d.ts +13 -0
- package/dist/activity/timeline/week-config-hash.d.ts.map +1 -0
- package/dist/activity/timeline/week-count.d.ts +7 -0
- package/dist/activity/timeline/week-count.d.ts.map +1 -0
- package/dist/activity/timeline/week-dashboard.d.ts +79 -0
- package/dist/activity/timeline/week-dashboard.d.ts.map +1 -0
- package/dist/activity/timeline/week-days.d.ts +6 -0
- package/dist/activity/timeline/week-days.d.ts.map +1 -0
- package/dist/activity/timeline/week-export.d.ts +27 -0
- package/dist/activity/timeline/week-export.d.ts.map +1 -0
- package/dist/activity/timeline/week-iso.d.ts +16 -0
- package/dist/activity/timeline/week-iso.d.ts.map +1 -0
- package/dist/activity/timeline/week-monday.d.ts +3 -0
- package/dist/activity/timeline/week-monday.d.ts.map +1 -0
- package/dist/activity/timeline/week-previous.d.ts +39 -0
- package/dist/activity/timeline/week-previous.d.ts.map +1 -0
- package/dist/activity/timeline/week-range.d.ts +10 -0
- package/dist/activity/timeline/week-range.d.ts.map +1 -0
- package/dist/activity/timeline/week-recurring.d.ts +21 -0
- package/dist/activity/timeline/week-recurring.d.ts.map +1 -0
- package/dist/activity/timeline/week-snapshot.d.ts +17 -0
- package/dist/activity/timeline/week-snapshot.d.ts.map +1 -0
- package/dist/activity/timeline/week-span.d.ts +2 -0
- package/dist/activity/timeline/week-span.d.ts.map +1 -0
- package/dist/activity/timeline/week-sunday.d.ts +3 -0
- package/dist/activity/timeline/week-sunday.d.ts.map +1 -0
- package/dist/activity/timeline/weekly-persist.d.ts +18 -0
- package/dist/activity/timeline/weekly-persist.d.ts.map +1 -0
- package/dist/activity/timeline/weekly.d.ts +42 -0
- package/dist/activity/timeline/weekly.d.ts.map +1 -0
- package/dist/activity/to-ms.d.ts +7 -0
- package/dist/activity/to-ms.d.ts.map +1 -0
- package/dist/activity/types.d.ts +208 -0
- package/dist/activity/types.d.ts.map +1 -0
- package/dist/activity/vault-begin.d.ts +8 -0
- package/dist/activity/vault-begin.d.ts.map +1 -0
- package/dist/activity/vault-body-trim.d.ts +7 -0
- package/dist/activity/vault-body-trim.d.ts.map +1 -0
- package/dist/activity/vault-dry-run.d.ts +13 -0
- package/dist/activity/vault-dry-run.d.ts.map +1 -0
- package/dist/activity/vault-end.d.ts +8 -0
- package/dist/activity/vault-end.d.ts.map +1 -0
- package/dist/activity/vault-frontmatter.d.ts +41 -0
- package/dist/activity/vault-frontmatter.d.ts.map +1 -0
- package/dist/activity/vault-insert.d.ts +24 -0
- package/dist/activity/vault-insert.d.ts.map +1 -0
- package/dist/activity/vault-join.d.ts +2 -0
- package/dist/activity/vault-join.d.ts.map +1 -0
- package/dist/activity/vault-marker.d.ts +12 -0
- package/dist/activity/vault-marker.d.ts.map +1 -0
- package/dist/activity/vault-name-trim.d.ts +7 -0
- package/dist/activity/vault-name-trim.d.ts.map +1 -0
- package/dist/activity/vault-path.d.ts +20 -0
- package/dist/activity/vault-path.d.ts.map +1 -0
- package/dist/activity/vault-publish.d.ts +71 -0
- package/dist/activity/vault-publish.d.ts.map +1 -0
- package/dist/activity/vault-publisher.d.ts +58 -0
- package/dist/activity/vault-publisher.d.ts.map +1 -0
- package/dist/activity/vault-region-pair.d.ts +17 -0
- package/dist/activity/vault-region-pair.d.ts.map +1 -0
- package/dist/activity/vault-region.d.ts +24 -0
- package/dist/activity/vault-region.d.ts.map +1 -0
- package/dist/activity/vault-status.d.ts +32 -0
- package/dist/activity/vault-status.d.ts.map +1 -0
- package/dist/activity/vault-suffix.d.ts +7 -0
- package/dist/activity/vault-suffix.d.ts.map +1 -0
- package/dist/activity/vault-wikilink.d.ts +2 -0
- package/dist/activity/vault-wikilink.d.ts.map +1 -0
- package/dist/activity/window-order.d.ts +17 -0
- package/dist/activity/window-order.d.ts.map +1 -0
- package/dist/adapters/claude-code.d.ts +3 -5
- package/dist/adapters/claude-code.d.ts.map +1 -0
- package/dist/adapters/codex.d.ts +3 -5
- package/dist/adapters/codex.d.ts.map +1 -0
- package/dist/adapters/grok.d.ts +23 -0
- package/dist/adapters/grok.d.ts.map +1 -0
- package/dist/adapters/hermes.d.ts +3 -5
- package/dist/adapters/hermes.d.ts.map +1 -0
- package/dist/adapters/index.d.ts +9 -51
- package/dist/adapters/index.d.ts.map +1 -0
- package/dist/adapters/index.js +4 -4
- package/dist/adapters/opencode.d.ts +22 -0
- package/dist/adapters/opencode.d.ts.map +1 -0
- package/dist/adapters/registry.d.ts +3 -5
- package/dist/adapters/registry.d.ts.map +1 -0
- package/dist/adapters/registry.js +2 -2
- package/dist/adapters/replit.d.ts +3 -5
- package/dist/adapters/replit.d.ts.map +1 -0
- package/dist/adapters/types.d.ts +5 -6
- package/dist/adapters/types.d.ts.map +1 -0
- package/dist/admin/admin-surfaces.d.ts +362 -0
- package/dist/admin/admin-surfaces.d.ts.map +1 -0
- package/dist/ambient-provenance.d.ts +10 -30
- package/dist/ambient-provenance.d.ts.map +1 -0
- package/dist/archive-mutation-version.d.ts +8 -9
- package/dist/archive-mutation-version.d.ts.map +1 -0
- package/dist/artifact-search.d.ts +5 -25
- package/dist/artifact-search.d.ts.map +1 -0
- package/dist/auto-sync-CWSZDLLW.js +1 -1
- package/dist/background-generation-config.d.ts +3 -4
- package/dist/background-generation-config.d.ts.map +1 -0
- package/dist/background-generation.d.ts +5 -24
- package/dist/background-generation.d.ts.map +1 -0
- package/dist/behavior-learner.d.ts +6 -25
- package/dist/behavior-learner.d.ts.map +1 -0
- package/dist/behavior-signals.d.ts +5 -24
- package/dist/behavior-signals.d.ts.map +1 -0
- package/dist/binary-lifecycle/backend.d.ts +46 -0
- package/dist/binary-lifecycle/backend.d.ts.map +1 -0
- package/dist/binary-lifecycle/index.d.ts +13 -0
- package/dist/binary-lifecycle/index.d.ts.map +1 -0
- package/dist/binary-lifecycle/manifest.d.ts +22 -0
- package/dist/binary-lifecycle/manifest.d.ts.map +1 -0
- package/dist/binary-lifecycle/pipeline.d.ts +33 -0
- package/dist/binary-lifecycle/pipeline.d.ts.map +1 -0
- package/dist/binary-lifecycle/scanner.d.ts +21 -0
- package/dist/binary-lifecycle/scanner.d.ts.map +1 -0
- package/dist/binary-lifecycle/types.d.ts +70 -0
- package/dist/binary-lifecycle/types.d.ts.map +1 -0
- package/dist/bootstrap.d.ts +6 -115
- package/dist/bootstrap.d.ts.map +1 -0
- package/dist/bounded-jsonl-state.d.ts +5 -5
- package/dist/bounded-jsonl-state.d.ts.map +1 -0
- package/dist/boxes.d.ts +9 -9
- package/dist/boxes.d.ts.map +1 -0
- package/dist/briefing-window.d.ts +8 -40
- package/dist/briefing-window.d.ts.map +1 -0
- package/dist/briefing.d.ts +28 -61
- package/dist/briefing.d.ts.map +1 -0
- package/dist/briefing.js +14 -14
- package/dist/buffer-surprise-report.d.ts +6 -26
- package/dist/buffer-surprise-report.d.ts.map +1 -0
- package/dist/buffer-surprise.d.ts +5 -6
- package/dist/buffer-surprise.d.ts.map +1 -0
- package/dist/buffer-turn-helpers.d.ts +32 -18
- package/dist/buffer-turn-helpers.d.ts.map +1 -0
- package/dist/buffer.d.ts +9 -41
- package/dist/buffer.d.ts.map +1 -0
- package/dist/buffer.js +3 -3
- package/dist/bulk-import/index.d.ts +4 -44
- package/dist/bulk-import/index.d.ts.map +1 -0
- package/dist/bulk-import/pipeline.d.ts +30 -0
- package/dist/bulk-import/pipeline.d.ts.map +1 -0
- package/dist/bulk-import/registry.d.ts +23 -0
- package/dist/bulk-import/registry.d.ts.map +1 -0
- package/dist/bulk-import/types.d.ts +83 -0
- package/dist/bulk-import/types.d.ts.map +1 -0
- package/dist/calibration.d.ts +14 -37
- package/dist/calibration.d.ts.map +1 -0
- package/dist/capabilities.d.ts +64 -84
- package/dist/capabilities.d.ts.map +1 -0
- package/dist/capsule-cli.d.ts +23 -24
- package/dist/capsule-cli.d.ts.map +1 -0
- package/dist/capsule-crypto-7FJQINUR.js +18 -0
- package/dist/causal-behavior.d.ts +9 -38
- package/dist/causal-behavior.d.ts.map +1 -0
- package/dist/causal-behavior.js +2 -2
- package/dist/causal-chain.d.ts +13 -17
- package/dist/causal-chain.d.ts.map +1 -0
- package/dist/causal-chain.js +2 -2
- package/dist/causal-consolidation.d.ts +10 -29
- package/dist/causal-consolidation.d.ts.map +1 -0
- package/dist/causal-consolidation.js +17 -17
- package/dist/causal-retrieval.d.ts +6 -11
- package/dist/causal-retrieval.d.ts.map +1 -0
- package/dist/causal-retrieval.js +2 -2
- package/dist/causal-trajectory-graph.d.ts +7 -29
- package/dist/causal-trajectory-graph.d.ts.map +1 -0
- package/dist/causal-trajectory-graph.js +2 -2
- package/dist/causal-trajectory.d.ts +23 -25
- package/dist/causal-trajectory.d.ts.map +1 -0
- package/dist/causal-trajectory.js +1 -1
- package/dist/census-validation.d.ts +5 -6
- package/dist/census-validation.d.ts.map +1 -0
- package/dist/chat/chat-cli.d.ts +38 -0
- package/dist/chat/chat-cli.d.ts.map +1 -0
- package/dist/chat/chat-config.d.ts +25 -0
- package/dist/chat/chat-config.d.ts.map +1 -0
- package/dist/chat/chat-engine.d.ts +82 -0
- package/dist/chat/chat-engine.d.ts.map +1 -0
- package/dist/chat/chat-executor.d.ts +26 -0
- package/dist/chat/chat-executor.d.ts.map +1 -0
- package/dist/chat/chat-factory.d.ts +46 -0
- package/dist/chat/chat-factory.d.ts.map +1 -0
- package/dist/chat/chat-http.d.ts +83 -0
- package/dist/chat/chat-http.d.ts.map +1 -0
- package/dist/chat/chat-llm.d.ts +77 -0
- package/dist/chat/chat-llm.d.ts.map +1 -0
- package/dist/chat/chat-session.d.ts +118 -0
- package/dist/chat/chat-session.d.ts.map +1 -0
- package/dist/chat/chat-system-prompt.d.ts +23 -0
- package/dist/chat/chat-system-prompt.d.ts.map +1 -0
- package/dist/chat/chat-tools.d.ts +22 -0
- package/dist/chat/chat-tools.d.ts.map +1 -0
- package/dist/chat/chat-types.d.ts +134 -0
- package/dist/chat/chat-types.d.ts.map +1 -0
- package/dist/chunk-2CBWEIS4.js +1286 -0
- package/dist/chunk-2JQZSQXI.js +81 -0
- package/dist/chunk-2KHIBLO5.js +33 -0
- package/dist/chunk-2KHIBLO5.js.map +1 -0
- package/dist/chunk-2NLLXCJG.js +112 -0
- package/dist/chunk-2WMXZYMS.js +25 -0
- package/dist/chunk-34ZGBAGE.js +61 -0
- package/dist/chunk-36S7UHAW.js +623 -0
- package/dist/chunk-3JLWSFTV.js +801 -0
- package/dist/chunk-3MUKQQ7A.js +157 -0
- package/dist/chunk-3MUKQQ7A.js.map +1 -0
- package/dist/chunk-3RZOLUZT.js +140 -0
- package/dist/chunk-3SL52JKD.js +160 -0
- package/dist/chunk-4ALOINQ4.js +18512 -0
- package/dist/chunk-4ALOINQ4.js.map +1 -0
- package/dist/chunk-4QEZS7PK.js +502 -0
- package/dist/chunk-52VL6LCY.js +648 -0
- package/dist/chunk-52VL6LCY.js.map +1 -0
- package/dist/chunk-5HFVWYHL.js +111 -0
- package/dist/chunk-5HFVWYHL.js.map +1 -0
- package/dist/chunk-5QRYGLZN.js +35 -0
- package/dist/chunk-5R3C5LEZ.js +263 -0
- package/dist/chunk-634UKELB.js +77 -0
- package/dist/chunk-64JK4TL7.js +801 -0
- package/dist/chunk-6E5GYDIE.js +141 -0
- package/dist/chunk-6ISP2EN2.js +51 -0
- package/dist/chunk-6RD7MSIO.js +212 -0
- package/dist/chunk-6UDLN4IA.js +70 -0
- package/dist/chunk-754XN6LX.js +256 -0
- package/dist/chunk-7H2LEYYJ.js +256 -0
- package/dist/chunk-A7AISUJI.js +103 -0
- package/dist/chunk-AULKCNZW.js +727 -0
- package/dist/chunk-B7SSU55V.js +1686 -0
- package/dist/chunk-BICNRVEC.js +224 -0
- package/dist/chunk-BJI2D4SU.js +53 -0
- package/dist/chunk-BQB5ZMYO.js +28 -0
- package/dist/chunk-BSDBDFKZ.js +168 -0
- package/dist/chunk-BSDBDFKZ.js.map +1 -0
- package/dist/chunk-C5CPYMLX.js +315 -0
- package/dist/chunk-C6LRFPZL.js +4007 -0
- package/dist/chunk-C6LRFPZL.js.map +1 -0
- package/dist/chunk-CS2JO77A.js +95 -0
- package/dist/chunk-DTABICJ3.js +549 -0
- package/dist/chunk-DXODYQ7J.js +319 -0
- package/dist/chunk-DXODYQ7J.js.map +1 -0
- package/dist/chunk-E6UNM67F.js +432 -0
- package/dist/chunk-ENUI3IO7.js +271 -0
- package/dist/chunk-FF2XYADH.js +1084 -0
- package/dist/chunk-FF6N7BXC.js +389 -0
- package/dist/chunk-FNQEXI3D.js +22 -0
- package/dist/chunk-FNQEXI3D.js.map +1 -0
- package/dist/chunk-FSXD6Y4H.js +203 -0
- package/dist/chunk-GK6NOQE6.js +3400 -0
- package/dist/chunk-GRSFFLUY.js +43 -0
- package/dist/chunk-GWK7FEUL.js +761 -0
- package/dist/chunk-GWQVMKUJ.js +218 -0
- package/dist/chunk-H7O5L2IQ.js +3560 -0
- package/dist/chunk-H7O5L2IQ.js.map +1 -0
- package/dist/chunk-HKHZWJ3E.js +63 -0
- package/dist/chunk-IAZPYX6W.js +182 -0
- package/dist/chunk-IG747LRN.js +189 -0
- package/dist/chunk-IK63WA5A.js +30 -0
- package/dist/chunk-IRGQYQQ7.js +143 -0
- package/dist/chunk-IRGQYQQ7.js.map +1 -0
- package/dist/chunk-IUD6NLNM.js +24 -0
- package/dist/chunk-JSJZ2NXS.js +9782 -0
- package/dist/chunk-JUOJGZPV.js +566 -0
- package/dist/chunk-KA4U5GQN.js +960 -0
- package/dist/chunk-KQAFEZQX.js +264 -0
- package/dist/chunk-L4WBADKG.js +72 -0
- package/dist/chunk-LAL4B37X.js +275 -0
- package/dist/chunk-LELJRLPY.js +253 -0
- package/dist/chunk-LMMQKZK3.js +403 -0
- package/dist/chunk-LQ23DMTT.js +74 -0
- package/dist/chunk-LV6ZB6CA.js +285 -0
- package/dist/chunk-M5IJP3YW.js +5505 -0
- package/dist/chunk-MMMYRC7Q.js +606 -0
- package/dist/chunk-MMMYRC7Q.js.map +1 -0
- package/dist/chunk-MWZMVLXL.js +415 -0
- package/dist/chunk-MZUQVWVC.js +72 -0
- package/dist/chunk-MZUQVWVC.js.map +1 -0
- package/dist/chunk-N4VCHRLD.js +29 -0
- package/dist/chunk-NKXHCCLB.js +879 -0
- package/dist/chunk-NVCWA4QC.js +112 -0
- package/dist/chunk-ONWVMYHX.js +122 -0
- package/dist/chunk-P6P35FY4.js +54 -0
- package/dist/chunk-P7M22CYB.js +346 -0
- package/dist/chunk-QMWKENNK.js +111 -0
- package/dist/chunk-QOPB6KE3.js +1530 -0
- package/dist/chunk-RBULO7DO.js +223 -0
- package/dist/chunk-RDESQOEE.js +1008 -0
- package/dist/chunk-RMF763SX.js +115 -0
- package/dist/chunk-RN6ZCNM5.js +321 -0
- package/dist/chunk-S2OBXHMN.js +11341 -0
- package/dist/chunk-S3JPD4N7.js +216 -0
- package/dist/chunk-SF6RFI5Z.js +165 -0
- package/dist/chunk-SJV3AOZ2.js +2453 -0
- package/dist/chunk-SLULR4GC.js +202 -0
- package/dist/chunk-TFXXMTHV.js +1476 -0
- package/dist/chunk-TYP7GYRI.js +216 -0
- package/dist/chunk-TYZK56OA.js +2440 -0
- package/dist/chunk-VLDVNZQE.js +921 -0
- package/dist/chunk-W6YK672C.js +511 -0
- package/dist/chunk-X2NFFBTO.js +576 -0
- package/dist/chunk-X45KZOT2.js +1917 -0
- package/dist/chunk-X7Y7WX73.js +249 -0
- package/dist/chunk-XIXM6G7I.js +43 -0
- package/dist/chunk-XLXYARWC.js +210 -0
- package/dist/chunk-XVW52M6I.js +223 -0
- package/dist/chunk-YHU5XUF4.js +342 -0
- package/dist/chunk-YRH3C2OJ.js +73 -0
- package/dist/chunk-YXQE67A7.js +137 -0
- package/dist/chunk-ZHUVMSHI.js +731 -0
- package/dist/chunk-ZHXSOMYH.js +297 -0
- package/dist/chunk-ZIEZJMFW.js +768 -0
- package/dist/chunk-ZMT4ZVJU.js +31013 -0
- package/dist/chunk-ZMT4ZVJU.js.map +1 -0
- package/dist/chunk-ZOASYXBS.js +629 -0
- package/dist/chunk-ZOASYXBS.js.map +1 -0
- package/dist/chunk-ZSEFGDCI.js +98 -0
- package/dist/chunk-ZX5N5D6M.js +65 -0
- package/dist/chunking.d.ts +9 -10
- package/dist/chunking.d.ts.map +1 -0
- package/dist/citations.d.ts +8 -9
- package/dist/citations.d.ts.map +1 -0
- package/dist/cli/creation-ledger-commands.d.ts +24 -0
- package/dist/cli/creation-ledger-commands.d.ts.map +1 -0
- package/dist/cli/deep-recall-commands.d.ts +19 -0
- package/dist/cli/deep-recall-commands.d.ts.map +1 -0
- package/dist/cli/harmonic-search.d.ts +12 -0
- package/dist/cli/harmonic-search.d.ts.map +1 -0
- package/dist/cli/meetings-commands.d.ts +16 -0
- package/dist/cli/meetings-commands.d.ts.map +1 -0
- package/dist/cli/memory-browse-commands.d.ts +11 -0
- package/dist/cli/memory-browse-commands.d.ts.map +1 -0
- package/dist/cli/okf-commands.d.ts +5 -0
- package/dist/cli/okf-commands.d.ts.map +1 -0
- package/dist/cli/recall-navigation-commands.d.ts +11 -0
- package/dist/cli/recall-navigation-commands.d.ts.map +1 -0
- package/dist/cli/research-status-commands.d.ts +26 -0
- package/dist/cli/research-status-commands.d.ts.map +1 -0
- package/dist/cli/skills-commands.d.ts +14 -0
- package/dist/cli/skills-commands.d.ts.map +1 -0
- package/dist/cli/timeline-publish-commands.d.ts +11 -0
- package/dist/cli/timeline-publish-commands.d.ts.map +1 -0
- package/dist/cli-fallback.d.ts +13 -14
- package/dist/cli-fallback.d.ts.map +1 -0
- package/dist/cli.d.ts +1036 -165
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +120 -116
- package/dist/coding/action-gate.d.ts +176 -0
- package/dist/coding/action-gate.d.ts.map +1 -0
- package/dist/coding/architecture-card.d.ts +135 -0
- package/dist/coding/architecture-card.d.ts.map +1 -0
- package/dist/coding/architecture-surfaces.d.ts +166 -0
- package/dist/coding/architecture-surfaces.d.ts.map +1 -0
- package/dist/coding/codegraph-runtime.d.ts +321 -0
- package/dist/coding/codegraph-runtime.d.ts.map +1 -0
- package/dist/coding/codegraph-surfaces.d.ts +191 -0
- package/dist/coding/codegraph-surfaces.d.ts.map +1 -0
- package/dist/coding/coding-graph-types.d.ts +16 -17
- package/dist/coding/coding-graph-types.d.ts.map +1 -0
- package/dist/coding/coding-knowledge-config.d.ts +69 -0
- package/dist/coding/coding-knowledge-config.d.ts.map +1 -0
- package/dist/coding/coding-namespace.d.ts +214 -0
- package/dist/coding/coding-namespace.d.ts.map +1 -0
- package/dist/coding/decision-records.d.ts +120 -0
- package/dist/coding/decision-records.d.ts.map +1 -0
- package/dist/coding/decision-surfaces.d.ts +143 -0
- package/dist/coding/decision-surfaces.d.ts.map +1 -0
- package/dist/coding/export-okf-codegraph.d.ts +9 -28
- package/dist/coding/export-okf-codegraph.d.ts.map +1 -0
- package/dist/coding/export-okf-codegraph.js +13 -13
- package/dist/coding/git-context.d.ts +92 -0
- package/dist/coding/git-context.d.ts.map +1 -0
- package/dist/coding/optional-coding-graph.d.ts +9 -10
- package/dist/coding/optional-coding-graph.d.ts.map +1 -0
- package/dist/coding/pre-action-gate.d.ts +58 -18
- package/dist/coding/pre-action-gate.d.ts.map +1 -0
- package/dist/coding/pre-action-gate.js +2 -2
- package/dist/coding/review-context.d.ts +147 -0
- package/dist/coding/review-context.d.ts.map +1 -0
- package/dist/coding/session-delta-surfaces.d.ts +138 -0
- package/dist/coding/session-delta-surfaces.d.ts.map +1 -0
- package/dist/coding/session-delta.d.ts +201 -0
- package/dist/coding/session-delta.d.ts.map +1 -0
- package/dist/coding/structural-context.d.ts +194 -0
- package/dist/coding/structural-context.d.ts.map +1 -0
- package/dist/coding/structural-subprocess-provider.d.ts +50 -0
- package/dist/coding/structural-subprocess-provider.d.ts.map +1 -0
- package/dist/commitment-ledger.d.ts +13 -14
- package/dist/commitment-ledger.d.ts.map +1 -0
- package/dist/compat/checks.d.ts +3 -5
- package/dist/compat/checks.d.ts.map +1 -0
- package/dist/compat/codex-cli-fallback.d.ts +15 -1
- package/dist/compat/codex-cli-fallback.d.ts.map +1 -0
- package/dist/compat/codex-thread-key.d.ts +15 -1
- package/dist/compat/codex-thread-key.d.ts.map +1 -0
- package/dist/compat/types.d.ts +7 -8
- package/dist/compat/types.d.ts.map +1 -0
- package/dist/compounding/engine.d.ts +11 -44
- package/dist/compounding/engine.d.ts.map +1 -0
- package/dist/compounding/engine.js +14 -14
- package/dist/compounding/preference-consolidator.d.ts +10 -37
- package/dist/compounding/preference-consolidator.d.ts.map +1 -0
- package/dist/compression-optimizer.d.ts +10 -29
- package/dist/compression-optimizer.d.ts.map +1 -0
- package/dist/config-discovery.d.ts +4 -5
- package/dist/config-discovery.d.ts.map +1 -0
- package/dist/config-qmd.d.ts +7 -8
- package/dist/config-qmd.d.ts.map +1 -0
- package/dist/config-record.d.ts +2 -3
- package/dist/config-record.d.ts.map +1 -0
- package/dist/config-security.d.ts +2 -3
- package/dist/config-security.d.ts.map +1 -0
- package/dist/config.d.ts +7 -26
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +23 -23
- package/dist/connectors/codex-marketplace.d.ts +124 -0
- package/dist/connectors/codex-marketplace.d.ts.map +1 -0
- package/dist/connectors/codex-materialize-runner.d.ts +7 -27
- package/dist/connectors/codex-materialize-runner.d.ts.map +1 -0
- package/dist/connectors/codex-materialize-runner.js +14 -14
- package/dist/connectors/codex-materialize.d.ts +23 -41
- package/dist/connectors/codex-materialize.d.ts.map +1 -0
- package/dist/connectors/coerce.d.ts +73 -0
- package/dist/connectors/coerce.d.ts.map +1 -0
- package/dist/connectors/droid-mcp.d.ts +122 -0
- package/dist/connectors/droid-mcp.d.ts.map +1 -0
- package/dist/connectors/hermes-shim.d.ts +135 -0
- package/dist/connectors/hermes-shim.d.ts.map +1 -0
- package/dist/connectors/index.d.ts +42 -247
- package/dist/connectors/index.d.ts.map +1 -0
- package/dist/connectors/index.js +20 -20
- package/dist/connectors/label.d.ts +19 -0
- package/dist/connectors/label.d.ts.map +1 -0
- package/dist/connectors/live/framework.d.ts +169 -0
- package/dist/connectors/live/framework.d.ts.map +1 -0
- package/dist/connectors/live/github.d.ts +156 -0
- package/dist/connectors/live/github.d.ts.map +1 -0
- package/dist/connectors/live/gmail.d.ts +253 -0
- package/dist/connectors/live/gmail.d.ts.map +1 -0
- package/dist/connectors/live/google-drive.d.ts +198 -0
- package/dist/connectors/live/google-drive.d.ts.map +1 -0
- package/dist/connectors/live/index.d.ts +20 -0
- package/dist/connectors/live/index.d.ts.map +1 -0
- package/dist/connectors/live/notion.d.ts +146 -0
- package/dist/connectors/live/notion.d.ts.map +1 -0
- package/dist/connectors/live/registry.d.ts +53 -0
- package/dist/connectors/live/registry.d.ts.map +1 -0
- package/dist/connectors/live/state-store.d.ts +120 -0
- package/dist/connectors/live/state-store.d.ts.map +1 -0
- package/dist/connectors/live/transient-errors.d.ts +45 -0
- package/dist/connectors/live/transient-errors.d.ts.map +1 -0
- package/dist/connectors/materialize-paths.d.ts +15 -0
- package/dist/connectors/materialize-paths.d.ts.map +1 -0
- package/dist/connectors/materialize-skills.d.ts +52 -0
- package/dist/connectors/materialize-skills.d.ts.map +1 -0
- package/dist/connectors/paths.d.ts +78 -0
- package/dist/connectors/paths.d.ts.map +1 -0
- package/dist/connectors/prime-agent.d.ts +13 -0
- package/dist/connectors/prime-agent.d.ts.map +1 -0
- package/dist/connectors-cli.d.ts +170 -2
- package/dist/connectors-cli.d.ts.map +1 -0
- package/dist/console/state.d.ts +154 -0
- package/dist/console/state.d.ts.map +1 -0
- package/dist/console/trace.d.ts +199 -0
- package/dist/console/trace.d.ts.map +1 -0
- package/dist/console/tui.d.ts +106 -0
- package/dist/console/tui.d.ts.map +1 -0
- package/dist/consolidation-operator.d.ts +8 -9
- package/dist/consolidation-operator.d.ts.map +1 -0
- package/dist/consolidation-provenance-check.d.ts +5 -40
- package/dist/consolidation-provenance-check.d.ts.map +1 -0
- package/dist/consolidation-undo.d.ts +10 -44
- package/dist/consolidation-undo.d.ts.map +1 -0
- package/dist/content-hash.d.ts +6 -7
- package/dist/content-hash.d.ts.map +1 -0
- package/dist/context-summary.d.ts +8 -9
- package/dist/context-summary.d.ts.map +1 -0
- package/dist/contradiction/contradiction-judge.d.ts +65 -0
- package/dist/contradiction/contradiction-judge.d.ts.map +1 -0
- package/dist/contradiction/contradiction-review.d.ts +117 -0
- package/dist/contradiction/contradiction-review.d.ts.map +1 -0
- package/dist/contradiction/contradiction-scan.d.ts +74 -0
- package/dist/contradiction/contradiction-scan.d.ts.map +1 -0
- package/dist/contradiction/index.d.ts +12 -41
- package/dist/contradiction/index.d.ts.map +1 -0
- package/dist/contradiction/index.js +11 -11
- package/dist/contradiction/resolution.d.ts +57 -0
- package/dist/contradiction/resolution.d.ts.map +1 -0
- package/dist/contradiction-config.d.ts +5 -6
- package/dist/contradiction-config.d.ts.map +1 -0
- package/dist/converge-config.d.ts +9 -28
- package/dist/converge-config.d.ts.map +1 -0
- package/dist/convergence-refresh.d.ts +5 -40
- package/dist/convergence-refresh.d.ts.map +1 -0
- package/dist/convergence-refresh.js +16 -16
- package/dist/conversation-index/backend.d.ts +12 -31
- package/dist/conversation-index/backend.d.ts.map +1 -0
- package/dist/conversation-index/chunker.d.ts +4 -23
- package/dist/conversation-index/chunker.d.ts.map +1 -0
- package/dist/conversation-index/cleanup.d.ts +2 -3
- package/dist/conversation-index/cleanup.d.ts.map +1 -0
- package/dist/conversation-index/faiss-adapter.d.ts +63 -22
- package/dist/conversation-index/faiss-adapter.d.ts.map +1 -0
- package/dist/conversation-index/indexer.d.ts +9 -31
- package/dist/conversation-index/indexer.d.ts.map +1 -0
- package/dist/conversation-index/search.d.ts +10 -22
- package/dist/conversation-index/search.d.ts.map +1 -0
- package/dist/corpus-read-cancellation.d.ts +3 -4
- package/dist/corpus-read-cancellation.d.ts.map +1 -0
- package/dist/corpus-watermark.d.ts +19 -40
- package/dist/corpus-watermark.d.ts.map +1 -0
- package/dist/corpus-watermark.js +18 -18
- package/dist/correction/correction-access-wiring.d.ts +129 -0
- package/dist/correction/correction-access-wiring.d.ts.map +1 -0
- package/dist/correction/correction-contract.d.ts +220 -0
- package/dist/correction/correction-contract.d.ts.map +1 -0
- package/dist/correction/correction-executor.d.ts +174 -0
- package/dist/correction/correction-executor.d.ts.map +1 -0
- package/dist/correction/correction-planner.d.ts +162 -0
- package/dist/correction/correction-planner.d.ts.map +1 -0
- package/dist/correction/correction-service.d.ts +124 -0
- package/dist/correction/correction-service.d.ts.map +1 -0
- package/dist/correction/index.d.ts +23 -0
- package/dist/correction/index.d.ts.map +1 -0
- package/dist/correction/passive-capture.d.ts +107 -0
- package/dist/correction/passive-capture.d.ts.map +1 -0
- package/dist/correction/passive-correction-detector.d.ts +60 -0
- package/dist/correction/passive-correction-detector.d.ts.map +1 -0
- package/dist/correction/passive-correction-notifications.d.ts +36 -0
- package/dist/correction/passive-correction-notifications.d.ts.map +1 -0
- package/dist/cross-lingual-recall.d.ts +10 -29
- package/dist/cross-lingual-recall.d.ts.map +1 -0
- package/dist/cross-namespace-budget.d.ts +9 -10
- package/dist/cross-namespace-budget.d.ts.map +1 -0
- package/dist/cue-anchors.d.ts +11 -12
- package/dist/cue-anchors.d.ts.map +1 -0
- package/dist/curation/index.d.ts +98 -0
- package/dist/curation/index.d.ts.map +1 -0
- package/dist/dashboard-runtime.d.ts +4 -5
- package/dist/dashboard-runtime.d.ts.map +1 -0
- package/dist/day-summary.d.ts +5 -24
- package/dist/day-summary.d.ts.map +1 -0
- package/dist/dedup/connector-scope.d.ts +28 -0
- package/dist/dedup/connector-scope.d.ts.map +1 -0
- package/dist/dedup/index.d.ts +78 -0
- package/dist/dedup/index.d.ts.map +1 -0
- package/dist/dedup/merge-content.d.ts +24 -0
- package/dist/dedup/merge-content.d.ts.map +1 -0
- package/dist/dedup/merge-count.d.ts +7 -0
- package/dist/dedup/merge-count.d.ts.map +1 -0
- package/dist/dedup/merge-decision.d.ts +26 -0
- package/dist/dedup/merge-decision.d.ts.map +1 -0
- package/dist/dedup/merge-dup.d.ts +8 -0
- package/dist/dedup/merge-dup.d.ts.map +1 -0
- package/dist/dedup/merge-empty.d.ts +15 -0
- package/dist/dedup/merge-empty.d.ts.map +1 -0
- package/dist/dedup/merge-id.d.ts +8 -0
- package/dist/dedup/merge-id.d.ts.map +1 -0
- package/dist/dedup/merge-judge.d.ts +33 -0
- package/dist/dedup/merge-judge.d.ts.map +1 -0
- package/dist/dedup/merge-min-score.d.ts +2 -0
- package/dist/dedup/merge-min-score.d.ts.map +1 -0
- package/dist/dedup/merge-on-write-wire.d.ts +17 -0
- package/dist/dedup/merge-on-write-wire.d.ts.map +1 -0
- package/dist/dedup/merge-on-write.d.ts +32 -0
- package/dist/dedup/merge-on-write.d.ts.map +1 -0
- package/dist/dedup/merge-pair.d.ts +8 -0
- package/dist/dedup/merge-pair.d.ts.map +1 -0
- package/dist/dedup/merge-provenance.d.ts +43 -0
- package/dist/dedup/merge-provenance.d.ts.map +1 -0
- package/dist/dedup/merge-score.d.ts +7 -0
- package/dist/dedup/merge-score.d.ts.map +1 -0
- package/dist/dedup/merge-self.d.ts +13 -0
- package/dist/dedup/merge-self.d.ts.map +1 -0
- package/dist/dedup/merge-threshold.d.ts +13 -0
- package/dist/dedup/merge-threshold.d.ts.map +1 -0
- package/dist/dedup/merge-tie.d.ts +8 -0
- package/dist/dedup/merge-tie.d.ts.map +1 -0
- package/dist/dedup/merge-unique.d.ts +7 -0
- package/dist/dedup/merge-unique.d.ts.map +1 -0
- package/dist/dedup/merge-verdict.d.ts +19 -0
- package/dist/dedup/merge-verdict.d.ts.map +1 -0
- package/dist/dedup/merge.d.ts +122 -0
- package/dist/dedup/merge.d.ts.map +1 -0
- package/dist/dedup/novelty-gate.d.ts +60 -0
- package/dist/dedup/novelty-gate.d.ts.map +1 -0
- package/dist/dedup/semantic.d.ts +86 -0
- package/dist/dedup/semantic.d.ts.map +1 -0
- package/dist/deep-recall-config.d.ts +7 -8
- package/dist/deep-recall-config.d.ts.map +1 -0
- package/dist/deep-recall-config.js +2 -2
- package/dist/deep-recall-http-glue.d.ts +5 -151
- package/dist/deep-recall-http-glue.d.ts.map +1 -0
- package/dist/deep-recall-http-glue.js +6 -6
- package/dist/deep-recall-mcp-tools.d.ts +3 -150
- package/dist/deep-recall-mcp-tools.d.ts.map +1 -0
- package/dist/deep-recall-policy-llm.d.ts +6 -30
- package/dist/deep-recall-policy-llm.d.ts.map +1 -0
- package/dist/deep-recall-renderer.d.ts +3 -9
- package/dist/deep-recall-renderer.d.ts.map +1 -0
- package/dist/deep-recall-seeds.d.ts +7 -30
- package/dist/deep-recall-seeds.d.ts.map +1 -0
- package/dist/deep-recall.d.ts +15 -17
- package/dist/deep-recall.d.ts.map +1 -0
- package/dist/delinearize.d.ts +5 -25
- package/dist/delinearize.d.ts.map +1 -0
- package/dist/dependency-propagation-config.d.ts +3 -22
- package/dist/dependency-propagation-config.d.ts.map +1 -0
- package/dist/deterministic-order.d.ts +3 -4
- package/dist/deterministic-order.d.ts.map +1 -0
- package/dist/direct-answer-wiring.d.ts +8 -28
- package/dist/direct-answer-wiring.d.ts.map +1 -0
- package/dist/direct-answer.d.ts +10 -30
- package/dist/direct-answer.d.ts.map +1 -0
- package/dist/directory-sidecars.d.ts +17 -18
- package/dist/directory-sidecars.d.ts.map +1 -0
- package/dist/embedding-fallback.d.ts +6 -25
- package/dist/embedding-fallback.d.ts.map +1 -0
- package/dist/emit-legacy-tools.d.ts +3 -4
- package/dist/emit-legacy-tools.d.ts.map +1 -0
- package/dist/enrichment/audit.d.ts +27 -0
- package/dist/enrichment/audit.d.ts.map +1 -0
- package/dist/enrichment/index.d.ts +8 -177
- package/dist/enrichment/index.d.ts.map +1 -0
- package/dist/enrichment/pipeline.d.ts +15 -0
- package/dist/enrichment/pipeline.d.ts.map +1 -0
- package/dist/enrichment/provider-registry.d.ts +28 -0
- package/dist/enrichment/provider-registry.d.ts.map +1 -0
- package/dist/enrichment/types.d.ts +65 -0
- package/dist/enrichment/types.d.ts.map +1 -0
- package/dist/enrichment/web-search-provider.d.ts +26 -0
- package/dist/enrichment/web-search-provider.d.ts.map +1 -0
- package/dist/entity-id-normalization.d.ts +3 -4
- package/dist/entity-id-normalization.d.ts.map +1 -0
- package/dist/entity-origin-fields.d.ts +6 -24
- package/dist/entity-origin-fields.d.ts.map +1 -0
- package/dist/entity-recall-cancellation.d.ts +6 -7
- package/dist/entity-recall-cancellation.d.ts.map +1 -0
- package/dist/entity-retrieval-boundaries.d.ts +2 -3
- package/dist/entity-retrieval-boundaries.d.ts.map +1 -0
- package/dist/entity-retrieval-i18n.d.ts +5 -6
- package/dist/entity-retrieval-i18n.d.ts.map +1 -0
- package/dist/entity-retrieval.d.ts +8 -41
- package/dist/entity-retrieval.d.ts.map +1 -0
- package/dist/entity-retrieval.js +14 -14
- package/dist/entity-schema.d.ts +9 -28
- package/dist/entity-schema.d.ts.map +1 -0
- package/dist/episodic-context.d.ts +10 -30
- package/dist/episodic-context.d.ts.map +1 -0
- package/dist/eval-trajectory-contracts.d.ts +48 -68
- package/dist/eval-trajectory-contracts.d.ts.map +1 -0
- package/dist/eval-trajectory-store.d.ts +7 -28
- package/dist/eval-trajectory-store.d.ts.map +1 -0
- package/dist/eval-trajectory.d.ts +9 -30
- package/dist/eval-trajectory.d.ts.map +1 -0
- package/dist/evals.d.ts +29 -30
- package/dist/evals.d.ts.map +1 -0
- package/dist/event-order-query.d.ts +2 -3
- package/dist/event-order-query.d.ts.map +1 -0
- package/dist/event-order-recall.d.ts +6 -8
- package/dist/event-order-recall.d.ts.map +1 -0
- package/dist/event-time.d.ts +7 -8
- package/dist/event-time.d.ts.map +1 -0
- package/dist/evidence-pack.d.ts +7 -8
- package/dist/evidence-pack.d.ts.map +1 -0
- package/dist/experience/session-experience-config.d.ts +19 -0
- package/dist/experience/session-experience-config.d.ts.map +1 -0
- package/dist/experience/session-experience-mining.d.ts +31 -0
- package/dist/experience/session-experience-mining.d.ts.map +1 -0
- package/dist/experience/session-experience-recall.d.ts +19 -0
- package/dist/experience/session-experience-recall.d.ts.map +1 -0
- package/dist/experience/session-experience.d.ts +74 -0
- package/dist/experience/session-experience.d.ts.map +1 -0
- package/dist/explicit-capture.d.ts +20 -128
- package/dist/explicit-capture.d.ts.map +1 -0
- package/dist/explicit-capture.js +1 -1
- package/dist/explicit-cue-recall.d.ts +17 -19
- package/dist/explicit-cue-recall.d.ts.map +1 -0
- package/dist/external-wiki-access.d.ts +4 -152
- package/dist/external-wiki-access.d.ts.map +1 -0
- package/dist/external-wiki-access.js +66 -61
- package/dist/external-wiki-cli.d.ts +4 -5
- package/dist/external-wiki-cli.d.ts.map +1 -0
- package/dist/external-wiki-collection-registration.d.ts +7 -27
- package/dist/external-wiki-collection-registration.d.ts.map +1 -0
- package/dist/external-wiki-collection.d.ts +9 -29
- package/dist/external-wiki-collection.d.ts.map +1 -0
- package/dist/external-wiki-config.d.ts +3 -4
- package/dist/external-wiki-config.d.ts.map +1 -0
- package/dist/external-wiki-guard.d.ts +6 -7
- package/dist/external-wiki-guard.d.ts.map +1 -0
- package/dist/external-wiki-mcp-tools.d.ts +3 -149
- package/dist/external-wiki-mcp-tools.d.ts.map +1 -0
- package/dist/external-wiki-search.d.ts +12 -13
- package/dist/external-wiki-search.d.ts.map +1 -0
- package/dist/external-wiki.d.ts +12 -13
- package/dist/external-wiki.d.ts.map +1 -0
- package/dist/extraction-error-classification.d.ts +5 -24
- package/dist/extraction-error-classification.d.ts.map +1 -0
- package/dist/extraction-evidence-class.d.ts +13 -33
- package/dist/extraction-evidence-class.d.ts.map +1 -0
- package/dist/extraction-evidence-class.js +2 -2
- package/dist/extraction-faithfulness.d.ts +23 -46
- package/dist/extraction-faithfulness.d.ts.map +1 -0
- package/dist/extraction-judge-telemetry.d.ts +9 -36
- package/dist/extraction-judge-telemetry.d.ts.map +1 -0
- package/dist/extraction-judge-training.d.ts +9 -36
- package/dist/extraction-judge-training.d.ts.map +1 -0
- package/dist/extraction-judge.d.ts +20 -44
- package/dist/extraction-judge.d.ts.map +1 -0
- package/dist/extraction-liveness.d.ts +161 -18
- package/dist/extraction-liveness.d.ts.map +1 -0
- package/dist/extraction-normalization.d.ts +7 -26
- package/dist/extraction-normalization.d.ts.map +1 -0
- package/dist/extraction-prompt.d.ts +14 -34
- package/dist/extraction-prompt.d.ts.map +1 -0
- package/dist/extraction-redaction-rules.d.ts +6 -7
- package/dist/extraction-redaction-rules.d.ts.map +1 -0
- package/dist/extraction-source-grounding-helpers.d.ts +31 -32
- package/dist/extraction-source-grounding-helpers.d.ts.map +1 -0
- package/dist/extraction-source-grounding-rules.d.ts +6 -25
- package/dist/extraction-source-grounding-rules.d.ts.map +1 -0
- package/dist/extraction-source-grounding.d.ts +7 -25
- package/dist/extraction-source-grounding.d.ts.map +1 -0
- package/dist/extraction-source-grounding.js +3 -3
- package/dist/extraction-span-bench.d.ts +3 -4
- package/dist/extraction-span-bench.d.ts.map +1 -0
- package/dist/extraction-span-clip.d.ts +5 -6
- package/dist/extraction-span-clip.d.ts.map +1 -0
- package/dist/extraction-span-config.d.ts +40 -18
- package/dist/extraction-span-config.d.ts.map +1 -0
- package/dist/extraction-span-contains.d.ts +2 -3
- package/dist/extraction-span-contains.d.ts.map +1 -0
- package/dist/extraction-span-fallback.d.ts +5 -6
- package/dist/extraction-span-fallback.d.ts.map +1 -0
- package/dist/extraction-span-gap.d.ts +2 -3
- package/dist/extraction-span-gap.d.ts.map +1 -0
- package/dist/extraction-span-gate.d.ts +7 -8
- package/dist/extraction-span-gate.d.ts.map +1 -0
- package/dist/extraction-span-join.d.ts +5 -6
- package/dist/extraction-span-join.d.ts.map +1 -0
- package/dist/extraction-span-length.d.ts +2 -3
- package/dist/extraction-span-length.d.ts.map +1 -0
- package/dist/extraction-span-materialize.d.ts +18 -37
- package/dist/extraction-span-materialize.d.ts.map +1 -0
- package/dist/extraction-span-materialize.js +2 -2
- package/dist/extraction-span-overlap.d.ts +2 -3
- package/dist/extraction-span-overlap.d.ts.map +1 -0
- package/dist/extraction-span-provenance.d.ts +4 -5
- package/dist/extraction-span-provenance.d.ts.map +1 -0
- package/dist/extraction-span-shift.d.ts +2 -3
- package/dist/extraction-span-shift.d.ts.map +1 -0
- package/dist/extraction-span-slice.d.ts +2 -3
- package/dist/extraction-span-slice.d.ts.map +1 -0
- package/dist/extraction-span-source-hash.d.ts +5 -6
- package/dist/extraction-span-source-hash.d.ts.map +1 -0
- package/dist/extraction-span-tokens.d.ts +4 -5
- package/dist/extraction-span-tokens.d.ts.map +1 -0
- package/dist/extraction-span-validate.d.ts +5 -6
- package/dist/extraction-span-validate.d.ts.map +1 -0
- package/dist/extraction-span-wire.d.ts +5 -25
- package/dist/extraction-span-wire.d.ts.map +1 -0
- package/dist/extraction-span.d.ts +4 -5
- package/dist/extraction-span.d.ts.map +1 -0
- package/dist/extraction.d.ts +11 -44
- package/dist/extraction.d.ts.map +1 -0
- package/dist/extraction.js +26 -26
- package/dist/faithfulness-config.d.ts +3 -4
- package/dist/faithfulness-config.d.ts.map +1 -0
- package/dist/fallback-llm-codex-subscription.d.ts +23 -42
- package/dist/fallback-llm-codex-subscription.d.ts.map +1 -0
- package/dist/fallback-llm.d.ts +9 -30
- package/dist/fallback-llm.d.ts.map +1 -0
- package/dist/focused-list-recall.d.ts +5 -8
- package/dist/focused-list-recall.d.ts.map +1 -0
- package/dist/graph-append-error.d.ts +3 -27
- package/dist/graph-append-error.d.ts.map +1 -0
- package/dist/graph-dashboard-diff.d.ts +5 -28
- package/dist/graph-dashboard-diff.d.ts.map +1 -0
- package/dist/graph-dashboard-key.d.ts +3 -26
- package/dist/graph-dashboard-key.d.ts.map +1 -0
- package/dist/graph-dashboard-parser.d.ts +6 -29
- package/dist/graph-dashboard-parser.d.ts.map +1 -0
- package/dist/graph-edge-decay-ROSUPDX3.js +30 -0
- package/dist/graph-edge-reinforcement.d.ts +12 -36
- package/dist/graph-edge-reinforcement.d.ts.map +1 -0
- package/dist/graph-events.d.ts +13 -16
- package/dist/graph-events.d.ts.map +1 -0
- package/dist/graph-jsonl.d.ts +8 -31
- package/dist/graph-jsonl.d.ts.map +1 -0
- package/dist/graph-jsonl.js +3 -3
- package/dist/graph-path-reconstruction.d.ts +22 -22
- package/dist/graph-path-reconstruction.d.ts.map +1 -0
- package/dist/graph-path-scoring-config.d.ts +3 -4
- package/dist/graph-path-scoring-config.d.ts.map +1 -0
- package/dist/graph-path-scoring.d.ts +8 -30
- package/dist/graph-path-scoring.d.ts.map +1 -0
- package/dist/graph-recall.d.ts +7 -10
- package/dist/graph-recall.d.ts.map +1 -0
- package/dist/graph-retrieval.d.ts +19 -20
- package/dist/graph-retrieval.d.ts.map +1 -0
- package/dist/graph-snapshot.d.ts +14 -38
- package/dist/graph-snapshot.d.ts.map +1 -0
- package/dist/graph-snapshot.js +3 -3
- package/dist/graph-write-lock.d.ts +7 -10
- package/dist/graph-write-lock.d.ts.map +1 -0
- package/dist/graph.d.ts +325 -22
- package/dist/graph.d.ts.map +1 -0
- package/dist/graph.js +2 -2
- package/dist/harmonic-construction.d.ts +11 -13
- package/dist/harmonic-construction.d.ts.map +1 -0
- package/dist/harmonic-retrieval.d.ts +10 -12
- package/dist/harmonic-retrieval.d.ts.map +1 -0
- package/dist/harmonic-retrieval.js +1 -1
- package/dist/himem.d.ts +3 -4
- package/dist/himem.d.ts.map +1 -0
- package/dist/host-embedding-provider.d.ts +7 -8
- package/dist/host-embedding-provider.d.ts.map +1 -0
- package/dist/http-retry.d.ts +9 -10
- package/dist/http-retry.d.ts.map +1 -0
- package/dist/hygiene.d.ts +4 -5
- package/dist/hygiene.d.ts.map +1 -0
- package/dist/identity-continuity.d.ts +9 -11
- package/dist/identity-continuity.d.ts.map +1 -0
- package/dist/importance.d.ts +6 -26
- package/dist/importance.d.ts.map +1 -0
- package/dist/importers/base.d.ts +261 -0
- package/dist/importers/base.d.ts.map +1 -0
- package/dist/importers/index.d.ts +3 -280
- package/dist/importers/index.d.ts.map +1 -0
- package/dist/importers/test-utils.d.ts +5 -24
- package/dist/importers/test-utils.d.ts.map +1 -0
- package/dist/in-flight-reads.d.ts +10 -29
- package/dist/in-flight-reads.d.ts.map +1 -0
- package/dist/included-memories.d.ts +6 -7
- package/dist/included-memories.d.ts.map +1 -0
- package/dist/index.d.ts +185 -9836
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +275 -229
- package/dist/inline-script.d.ts +2 -3
- package/dist/inline-script.d.ts.map +1 -0
- package/dist/intent.d.ts +7 -26
- package/dist/intent.d.ts.map +1 -0
- package/dist/json-extract.d.ts +3 -4
- package/dist/json-extract.d.ts.map +1 -0
- package/dist/json-store.d.ts +9 -9
- package/dist/json-store.d.ts.map +1 -0
- package/dist/lcm/archive.d.ts +11 -13
- package/dist/lcm/archive.d.ts.map +1 -0
- package/dist/lcm/dag.d.ts +5 -7
- package/dist/lcm/dag.d.ts.map +1 -0
- package/dist/lcm/engine.d.ts +10 -32
- package/dist/lcm/engine.d.ts.map +1 -0
- package/dist/lcm/engine.js +4 -4
- package/dist/lcm/evidence-identity.d.ts +20 -0
- package/dist/lcm/evidence-identity.d.ts.map +1 -0
- package/dist/lcm/index.d.ts +9 -52
- package/dist/lcm/index.d.ts.map +1 -0
- package/dist/lcm/index.js +13 -13
- package/dist/lcm/queue.d.ts +7 -10
- package/dist/lcm/queue.d.ts.map +1 -0
- package/dist/lcm/recall.d.ts +8 -13
- package/dist/lcm/recall.d.ts.map +1 -0
- package/dist/lcm/schema.d.ts +5 -8
- package/dist/lcm/schema.d.ts.map +1 -0
- package/dist/lcm/summarizer.d.ts +7 -11
- package/dist/lcm/summarizer.d.ts.map +1 -0
- package/dist/lcm/tools.d.ts +4 -30
- package/dist/lcm/tools.d.ts.map +1 -0
- package/dist/lcm-fallback-read.d.ts +4 -5
- package/dist/lcm-fallback-read.d.ts.map +1 -0
- package/dist/lifecycle/seed-graduation-config-types.d.ts +21 -0
- package/dist/lifecycle/seed-graduation-config-types.d.ts.map +1 -0
- package/dist/lifecycle/seed-graduation.d.ts +97 -0
- package/dist/lifecycle/seed-graduation.d.ts.map +1 -0
- package/dist/lifecycle/tombstones.d.ts +389 -0
- package/dist/lifecycle/tombstones.d.ts.map +1 -0
- package/dist/lifecycle.d.ts +14 -33
- package/dist/lifecycle.d.ts.map +1 -0
- package/dist/live-connectors-runner.d.ts +11 -29
- package/dist/live-connectors-runner.d.ts.map +1 -0
- package/dist/local-llm-config.d.ts +5 -7
- package/dist/local-llm-config.d.ts.map +1 -0
- package/dist/local-llm-config.js +1 -1
- package/dist/local-llm-helpers.d.ts +102 -20
- package/dist/local-llm-helpers.d.ts.map +1 -0
- package/dist/local-llm-transport.d.ts +4 -6
- package/dist/local-llm-transport.d.ts.map +1 -0
- package/dist/local-llm.d.ts +145 -20
- package/dist/local-llm.d.ts.map +1 -0
- package/dist/local-model-endpoint.d.ts +10 -29
- package/dist/local-model-endpoint.d.ts.map +1 -0
- package/dist/location/access-operations.d.ts +9 -0
- package/dist/location/access-operations.d.ts.map +1 -0
- package/dist/location/backfill.d.ts +57 -0
- package/dist/location/backfill.d.ts.map +1 -0
- package/dist/location/cli.d.ts +67 -0
- package/dist/location/cli.d.ts.map +1 -0
- package/dist/location/config.d.ts +11 -0
- package/dist/location/config.d.ts.map +1 -0
- package/dist/location/http-glue.d.ts +20 -0
- package/dist/location/http-glue.d.ts.map +1 -0
- package/dist/location/index.d.ts +21 -534
- package/dist/location/index.d.ts.map +1 -0
- package/dist/location/index.js +17 -17
- package/dist/location/intervals.d.ts +61 -0
- package/dist/location/intervals.d.ts.map +1 -0
- package/dist/location/matching.d.ts +124 -0
- package/dist/location/matching.d.ts.map +1 -0
- package/dist/location/mcp-tools.d.ts +12 -0
- package/dist/location/mcp-tools.d.ts.map +1 -0
- package/dist/location/parse-companions.d.ts +7 -0
- package/dist/location/parse-companions.d.ts.map +1 -0
- package/dist/location/pipeline.d.ts +44 -0
- package/dist/location/pipeline.d.ts.map +1 -0
- package/dist/location/provider-setup.d.ts +33 -0
- package/dist/location/provider-setup.d.ts.map +1 -0
- package/dist/location/registry.d.ts +15 -0
- package/dist/location/registry.d.ts.map +1 -0
- package/dist/location/scheduler.d.ts +48 -0
- package/dist/location/scheduler.d.ts.map +1 -0
- package/dist/location/store.d.ts +95 -0
- package/dist/location/store.d.ts.map +1 -0
- package/dist/location/surfaces.d.ts +76 -0
- package/dist/location/surfaces.d.ts.map +1 -0
- package/dist/location/tagging.d.ts +116 -0
- package/dist/location/tagging.d.ts.map +1 -0
- package/dist/location/types.d.ts +109 -0
- package/dist/location/types.d.ts.map +1 -0
- package/dist/logger.d.ts +7 -8
- package/dist/logger.d.ts.map +1 -0
- package/dist/maintenance/archive-observations.d.ts +5 -5
- package/dist/maintenance/archive-observations.d.ts.map +1 -0
- package/dist/maintenance/atomic-file.d.ts +4 -5
- package/dist/maintenance/atomic-file.d.ts.map +1 -0
- package/dist/maintenance/backup-stamp.d.ts +2 -3
- package/dist/maintenance/backup-stamp.d.ts.map +1 -0
- package/dist/maintenance/day-summary-cron.d.ts +20 -0
- package/dist/maintenance/day-summary-cron.d.ts.map +1 -0
- package/dist/maintenance/dreams-ledger.d.ts +172 -0
- package/dist/maintenance/dreams-ledger.d.ts.map +1 -0
- package/dist/maintenance/first-start-migration.d.ts +61 -0
- package/dist/maintenance/first-start-migration.d.ts.map +1 -0
- package/dist/maintenance/forget.d.ts +59 -0
- package/dist/maintenance/forget.d.ts.map +1 -0
- package/dist/maintenance/graph-edge-decay.d.ts +122 -0
- package/dist/maintenance/graph-edge-decay.d.ts.map +1 -0
- package/dist/maintenance/memory-governance-cron.d.ts +9 -10
- package/dist/maintenance/memory-governance-cron.d.ts.map +1 -0
- package/dist/maintenance/memory-governance.d.ts +25 -43
- package/dist/maintenance/memory-governance.d.ts.map +1 -0
- package/dist/maintenance/memory-governance.js +14 -14
- package/dist/maintenance/migrate-observations.d.ts +4 -5
- package/dist/maintenance/migrate-observations.d.ts.map +1 -0
- package/dist/maintenance/namespace-maintenance-fanout.d.ts +132 -0
- package/dist/maintenance/namespace-maintenance-fanout.d.ts.map +1 -0
- package/dist/maintenance/namespace-planner.d.ts +96 -0
- package/dist/maintenance/namespace-planner.d.ts.map +1 -0
- package/dist/maintenance/observation-ledger-utils.d.ts +5 -6
- package/dist/maintenance/observation-ledger-utils.d.ts.map +1 -0
- package/dist/maintenance/pattern-reinforcement.d.ts +129 -0
- package/dist/maintenance/pattern-reinforcement.d.ts.map +1 -0
- package/dist/maintenance/projection-support.d.ts +76 -0
- package/dist/maintenance/projection-support.d.ts.map +1 -0
- package/dist/maintenance/purge.d.ts +85 -0
- package/dist/maintenance/purge.d.ts.map +1 -0
- package/dist/maintenance/rebuild-memory-lifecycle-ledger-cli.d.ts +24 -0
- package/dist/maintenance/rebuild-memory-lifecycle-ledger-cli.d.ts.map +1 -0
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.d.ts +11 -43
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.d.ts.map +1 -0
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +14 -14
- package/dist/maintenance/rebuild-memory-projection.d.ts +14 -72
- package/dist/maintenance/rebuild-memory-projection.d.ts.map +1 -0
- package/dist/maintenance/rebuild-memory-projection.js +15 -15
- package/dist/maintenance/rebuild-observations.d.ts +4 -5
- package/dist/maintenance/rebuild-observations.d.ts.map +1 -0
- package/dist/maintenance/tier-stats.d.ts +59 -0
- package/dist/maintenance/tier-stats.d.ts.map +1 -0
- package/dist/mcp-memory-inspector-app.d.ts +15 -158
- package/dist/mcp-memory-inspector-app.d.ts.map +1 -0
- package/dist/mcp-read-only-tools.d.ts +2 -3
- package/dist/mcp-read-only-tools.d.ts.map +1 -0
- package/dist/mcp-read-only-tools.js +1 -1
- package/dist/meetings/build-scheduler.d.ts +43 -0
- package/dist/meetings/build-scheduler.d.ts.map +1 -0
- package/dist/meetings/build.d.ts +137 -0
- package/dist/meetings/build.d.ts.map +1 -0
- package/dist/meetings/cli.d.ts +37 -0
- package/dist/meetings/cli.d.ts.map +1 -0
- package/dist/meetings/config.d.ts +18 -0
- package/dist/meetings/config.d.ts.map +1 -0
- package/dist/meetings/day-source.d.ts +103 -0
- package/dist/meetings/day-source.d.ts.map +1 -0
- package/dist/meetings/detect.d.ts +33 -0
- package/dist/meetings/detect.d.ts.map +1 -0
- package/dist/meetings/errors.d.ts +10 -0
- package/dist/meetings/errors.d.ts.map +1 -0
- package/dist/meetings/fuse.d.ts +30 -0
- package/dist/meetings/fuse.d.ts.map +1 -0
- package/dist/meetings/http-glue.d.ts +37 -0
- package/dist/meetings/http-glue.d.ts.map +1 -0
- package/dist/meetings/index.d.ts +20 -0
- package/dist/meetings/index.d.ts.map +1 -0
- package/dist/meetings/mcp-tools.d.ts +10 -0
- package/dist/meetings/mcp-tools.d.ts.map +1 -0
- package/dist/meetings/memory-gen.d.ts +157 -0
- package/dist/meetings/memory-gen.d.ts.map +1 -0
- package/dist/meetings/memory-generator.d.ts +113 -0
- package/dist/meetings/memory-generator.d.ts.map +1 -0
- package/dist/meetings/service.d.ts +80 -0
- package/dist/meetings/service.d.ts.map +1 -0
- package/dist/meetings/store.d.ts +121 -0
- package/dist/meetings/store.d.ts.map +1 -0
- package/dist/meetings/summary-extractor.d.ts +96 -0
- package/dist/meetings/summary-extractor.d.ts.map +1 -0
- package/dist/meetings/types.d.ts +155 -0
- package/dist/meetings/types.d.ts.map +1 -0
- package/dist/memory-action-policy.d.ts +6 -25
- package/dist/memory-action-policy.d.ts.map +1 -0
- package/dist/memory-age.d.ts +16 -17
- package/dist/memory-age.d.ts.map +1 -0
- package/dist/memory-browse-http-glue.d.ts +5 -151
- package/dist/memory-browse-http-glue.d.ts.map +1 -0
- package/dist/memory-browse-http-glue.js +2 -2
- package/dist/memory-browse-mcp-tools.d.ts +3 -150
- package/dist/memory-browse-mcp-tools.d.ts.map +1 -0
- package/dist/memory-browse-operations.d.ts +11 -2
- package/dist/memory-browse-operations.d.ts.map +1 -0
- package/dist/memory-browse-operations.js +66 -61
- package/dist/memory-browse.d.ts +16 -36
- package/dist/memory-browse.d.ts.map +1 -0
- package/dist/memory-browse.js +4 -4
- package/dist/memory-cache.d.ts +27 -46
- package/dist/memory-cache.d.ts.map +1 -0
- package/dist/memory-controller.d.ts +29 -50
- package/dist/memory-controller.d.ts.map +1 -0
- package/dist/memory-corpus-version.d.ts +3 -4
- package/dist/memory-corpus-version.d.ts.map +1 -0
- package/dist/memory-extension/claude-code-publisher.d.ts +18 -0
- package/dist/memory-extension/claude-code-publisher.d.ts.map +1 -0
- package/dist/memory-extension/codex-publisher.d.ts +22 -0
- package/dist/memory-extension/codex-publisher.d.ts.map +1 -0
- package/dist/memory-extension/hermes-publisher.d.ts +18 -0
- package/dist/memory-extension/hermes-publisher.d.ts.map +1 -0
- package/dist/memory-extension/index.d.ts +57 -0
- package/dist/memory-extension/index.d.ts.map +1 -0
- package/dist/memory-extension/shared-instructions.d.ts +30 -0
- package/dist/memory-extension/shared-instructions.d.ts.map +1 -0
- package/dist/memory-extension/types.d.ts +88 -0
- package/dist/memory-extension/types.d.ts.map +1 -0
- package/dist/memory-extension-host/host-discovery.d.ts +38 -0
- package/dist/memory-extension-host/host-discovery.d.ts.map +1 -0
- package/dist/memory-extension-host/index.d.ts +7 -0
- package/dist/memory-extension-host/index.d.ts.map +1 -0
- package/dist/memory-extension-host/render-extensions-block.d.ts +23 -0
- package/dist/memory-extension-host/render-extensions-block.d.ts.map +1 -0
- package/dist/memory-extension-host/types.d.ts +20 -0
- package/dist/memory-extension-host/types.d.ts.map +1 -0
- package/dist/memory-lifecycle-ledger-utils.d.ts +19 -38
- package/dist/memory-lifecycle-ledger-utils.d.ts.map +1 -0
- package/dist/memory-projection-format.d.ts +3 -4
- package/dist/memory-projection-format.d.ts.map +1 -0
- package/dist/memory-projection-mutations.d.ts +3 -4
- package/dist/memory-projection-mutations.d.ts.map +1 -0
- package/dist/memory-projection-store.d.ts +35 -54
- package/dist/memory-projection-store.d.ts.map +1 -0
- package/dist/memory-provenance.d.ts +10 -29
- package/dist/memory-provenance.d.ts.map +1 -0
- package/dist/memory-snapshot.d.ts +3 -22
- package/dist/memory-snapshot.d.ts.map +1 -0
- package/dist/memory-subject-cli.d.ts +9 -156
- package/dist/memory-subject-cli.d.ts.map +1 -0
- package/dist/memory-subject.d.ts +132 -145
- package/dist/memory-subject.d.ts.map +1 -0
- package/dist/memory-worth-bench.d.ts +4 -5
- package/dist/memory-worth-bench.d.ts.map +1 -0
- package/dist/memory-worth-filter.d.ts +8 -11
- package/dist/memory-worth-filter.d.ts.map +1 -0
- package/dist/memory-worth-outcomes.d.ts +11 -45
- package/dist/memory-worth-outcomes.d.ts.map +1 -0
- package/dist/memory-worth.d.ts +4 -5
- package/dist/memory-worth.d.ts.map +1 -0
- package/dist/message-parts/index.d.ts +15 -16
- package/dist/message-parts/index.d.ts.map +1 -0
- package/dist/migrate/from-engram.d.ts +6 -7
- package/dist/migrate/from-engram.d.ts.map +1 -0
- package/dist/model-registry.d.ts +3 -4
- package/dist/model-registry.d.ts.map +1 -0
- package/dist/models-json.d.ts +5 -24
- package/dist/models-json.d.ts.map +1 -0
- package/dist/namespaces/catalog.d.ts +473 -0
- package/dist/namespaces/catalog.d.ts.map +1 -0
- package/dist/namespaces/identity.d.ts +5 -0
- package/dist/namespaces/identity.d.ts.map +1 -0
- package/dist/namespaces/migrate.d.ts +11 -46
- package/dist/namespaces/migrate.d.ts.map +1 -0
- package/dist/namespaces/migrate.js +15 -15
- package/dist/namespaces/path.d.ts +3 -0
- package/dist/namespaces/path.d.ts.map +1 -0
- package/dist/namespaces/principal.d.ts +9 -28
- package/dist/namespaces/principal.d.ts.map +1 -0
- package/dist/namespaces/scope-profile-config.d.ts +5 -0
- package/dist/namespaces/scope-profile-config.d.ts.map +1 -0
- package/dist/namespaces/scope-profiles.d.ts +46 -0
- package/dist/namespaces/scope-profiles.d.ts.map +1 -0
- package/dist/namespaces/search.d.ts +10 -28
- package/dist/namespaces/search.d.ts.map +1 -0
- package/dist/namespaces/search.js +5 -5
- package/dist/namespaces/storage.d.ts +8 -41
- package/dist/namespaces/storage.d.ts.map +1 -0
- package/dist/namespaces/storage.js +14 -14
- package/dist/native-binding-hint.d.ts +3 -4
- package/dist/native-binding-hint.d.ts.map +1 -0
- package/dist/native-knowledge.d.ts +15 -34
- package/dist/native-knowledge.d.ts.map +1 -0
- package/dist/negative.d.ts +3 -4
- package/dist/negative.d.ts.map +1 -0
- package/dist/network/tailscale.d.ts +7 -8
- package/dist/network/tailscale.d.ts.map +1 -0
- package/dist/network/webdav.d.ts +9 -10
- package/dist/network/webdav.d.ts.map +1 -0
- package/dist/objective-state-writers.d.ts +8 -9
- package/dist/objective-state-writers.d.ts.map +1 -0
- package/dist/objective-state.d.ts +15 -16
- package/dist/objective-state.d.ts.map +1 -0
- package/dist/offline-sync-exclude-globs.d.ts +3 -4
- package/dist/offline-sync-exclude-globs.d.ts.map +1 -0
- package/dist/offline-sync-file-io.d.ts +8 -9
- package/dist/offline-sync-file-io.d.ts.map +1 -0
- package/dist/offline-sync-impression-drain.d.ts +8 -26
- package/dist/offline-sync-impression-drain.d.ts.map +1 -0
- package/dist/offline-sync-impression-drain.js +2 -2
- package/dist/offline-sync.d.ts +57 -58
- package/dist/offline-sync.d.ts.map +1 -0
- package/dist/okf/cli.d.ts +10 -0
- package/dist/okf/cli.d.ts.map +1 -0
- package/dist/okf/config.d.ts +11 -0
- package/dist/okf/config.d.ts.map +1 -0
- package/dist/okf/index-files.d.ts +7 -0
- package/dist/okf/index-files.d.ts.map +1 -0
- package/dist/okf/lint.d.ts +12 -0
- package/dist/okf/lint.d.ts.map +1 -0
- package/dist/okf/render.d.ts +29 -0
- package/dist/okf/render.d.ts.map +1 -0
- package/dist/okf/sweep.d.ts +9 -0
- package/dist/okf/sweep.d.ts.map +1 -0
- package/dist/okf/type-mapping.d.ts +30 -0
- package/dist/okf/type-mapping.d.ts.map +1 -0
- package/dist/onboarding/index.d.ts +63 -0
- package/dist/onboarding/index.d.ts.map +1 -0
- package/dist/openai-chat-compat.d.ts +6 -7
- package/dist/openai-chat-compat.d.ts.map +1 -0
- package/dist/operator-doctor-corpus.d.ts +8 -29
- package/dist/operator-doctor-corpus.d.ts.map +1 -0
- package/dist/operator-doctor-corpus.js +21 -21
- package/dist/operator-doctor-replica.d.ts +8 -29
- package/dist/operator-doctor-replica.d.ts.map +1 -0
- package/dist/operator-doctor-replica.js +4 -4
- package/dist/operator-doctor-types.d.ts +2 -3
- package/dist/operator-doctor-types.d.ts.map +1 -0
- package/dist/operator-toolkit.d.ts +43 -75
- package/dist/operator-toolkit.d.ts.map +1 -0
- package/dist/operator-toolkit.js +37 -37
- package/dist/opik-exporter.d.ts +6 -8
- package/dist/opik-exporter.d.ts.map +1 -0
- package/dist/orchestration/compression-guideline-coordinator.d.ts +6 -40
- package/dist/orchestration/compression-guideline-coordinator.d.ts.map +1 -0
- package/dist/orchestration/consolidation-run.d.ts +93 -0
- package/dist/orchestration/consolidation-run.d.ts.map +1 -0
- package/dist/orchestration/contradiction-linking-coordinator.d.ts +102 -0
- package/dist/orchestration/contradiction-linking-coordinator.d.ts.map +1 -0
- package/dist/orchestration/conversation-index-coordinator.d.ts +99 -0
- package/dist/orchestration/conversation-index-coordinator.d.ts.map +1 -0
- package/dist/orchestration/dependency-propagation-delivery.d.ts +129 -0
- package/dist/orchestration/dependency-propagation-delivery.d.ts.map +1 -0
- package/dist/orchestration/dependency-propagation-queue-state.d.ts +15 -0
- package/dist/orchestration/dependency-propagation-queue-state.d.ts.map +1 -0
- package/dist/orchestration/dependency-propagation-recovery-replay.d.ts +49 -0
- package/dist/orchestration/dependency-propagation-recovery-replay.d.ts.map +1 -0
- package/dist/orchestration/dependency-propagation-replay-reconciliation.d.ts +25 -0
- package/dist/orchestration/dependency-propagation-replay-reconciliation.d.ts.map +1 -0
- package/dist/orchestration/dependency-propagation.d.ts +64 -0
- package/dist/orchestration/dependency-propagation.d.ts.map +1 -0
- package/dist/orchestration/dependency-revalidation.d.ts +45 -0
- package/dist/orchestration/dependency-revalidation.d.ts.map +1 -0
- package/dist/orchestration/entity-synthesis-coordinator.d.ts +64 -0
- package/dist/orchestration/entity-synthesis-coordinator.d.ts.map +1 -0
- package/dist/orchestration/episodic-context-section.d.ts +30 -0
- package/dist/orchestration/episodic-context-section.d.ts.map +1 -0
- package/dist/orchestration/extraction-anchor-snapshot.d.ts +20 -0
- package/dist/orchestration/extraction-anchor-snapshot.d.ts.map +1 -0
- package/dist/orchestration/extraction-envelope.d.ts +40 -0
- package/dist/orchestration/extraction-envelope.d.ts.map +1 -0
- package/dist/orchestration/extraction-injection-gate.d.ts +51 -0
- package/dist/orchestration/extraction-injection-gate.d.ts.map +1 -0
- package/dist/orchestration/extraction-origin-context.d.ts +19 -0
- package/dist/orchestration/extraction-origin-context.d.ts.map +1 -0
- package/dist/orchestration/extraction-persist-deps.d.ts +76 -0
- package/dist/orchestration/extraction-persist-deps.d.ts.map +1 -0
- package/dist/orchestration/extraction-persist-promotion.d.ts +203 -0
- package/dist/orchestration/extraction-persist-promotion.d.ts.map +1 -0
- package/dist/orchestration/extraction-persist.d.ts +19 -0
- package/dist/orchestration/extraction-persist.d.ts.map +1 -0
- package/dist/orchestration/extraction-queue-coordinator.d.ts +103 -0
- package/dist/orchestration/extraction-queue-coordinator.d.ts.map +1 -0
- package/dist/orchestration/extraction-run-helpers.d.ts +123 -0
- package/dist/orchestration/extraction-run-helpers.d.ts.map +1 -0
- package/dist/orchestration/extraction-run.d.ts +174 -0
- package/dist/orchestration/extraction-run.d.ts.map +1 -0
- package/dist/orchestration/extraction-shutdown.d.ts +6 -0
- package/dist/orchestration/extraction-shutdown.d.ts.map +1 -0
- package/dist/orchestration/extraction-watermark.d.ts +28 -0
- package/dist/orchestration/extraction-watermark.d.ts.map +1 -0
- package/dist/orchestration/generic-recall-paths.d.ts +36 -0
- package/dist/orchestration/generic-recall-paths.d.ts.map +1 -0
- package/dist/orchestration/graph-path-state-loader.d.ts +15 -0
- package/dist/orchestration/graph-path-state-loader.d.ts.map +1 -0
- package/dist/orchestration/graph-recall-coordinator.d.ts +107 -0
- package/dist/orchestration/graph-recall-coordinator.d.ts.map +1 -0
- package/dist/orchestration/harmonic-construction-persist.d.ts +58 -0
- package/dist/orchestration/harmonic-construction-persist.d.ts.map +1 -0
- package/dist/orchestration/lifecycle-policy-coordinator.d.ts +81 -0
- package/dist/orchestration/lifecycle-policy-coordinator.d.ts.map +1 -0
- package/dist/orchestration/maintenance.d.ts +229 -37
- package/dist/orchestration/maintenance.d.ts.map +1 -0
- package/dist/orchestration/maintenance.js +25 -25
- package/dist/orchestration/namespace-read-fanout.d.ts +95 -0
- package/dist/orchestration/namespace-read-fanout.d.ts.map +1 -0
- package/dist/orchestration/orchestrator-helpers.d.ts +408 -0
- package/dist/orchestration/orchestrator-helpers.d.ts.map +1 -0
- package/dist/orchestration/orchestrator-init.d.ts +124 -0
- package/dist/orchestration/orchestrator-init.d.ts.map +1 -0
- package/dist/orchestration/orchestrator-namespace-scope.d.ts +19 -0
- package/dist/orchestration/orchestrator-namespace-scope.d.ts.map +1 -0
- package/dist/orchestration/persistence-index.d.ts +141 -0
- package/dist/orchestration/persistence-index.d.ts.map +1 -0
- package/dist/orchestration/projection-rebuild-schedule.d.ts +21 -0
- package/dist/orchestration/projection-rebuild-schedule.d.ts.map +1 -0
- package/dist/orchestration/qmd-result-resolver.d.ts +75 -0
- package/dist/orchestration/qmd-result-resolver.d.ts.map +1 -0
- package/dist/orchestration/recall-background-writes.d.ts +3 -0
- package/dist/orchestration/recall-background-writes.d.ts.map +1 -0
- package/dist/orchestration/recall-entry.d.ts +78 -0
- package/dist/orchestration/recall-entry.d.ts.map +1 -0
- package/dist/orchestration/recall-internal-deps.d.ts +311 -0
- package/dist/orchestration/recall-internal-deps.d.ts.map +1 -0
- package/dist/orchestration/recall-internal.d.ts +30 -0
- package/dist/orchestration/recall-internal.d.ts.map +1 -0
- package/dist/orchestration/recall-introspection.d.ts +108 -0
- package/dist/orchestration/recall-introspection.d.ts.map +1 -0
- package/dist/orchestration/recall-profile-storage.d.ts +20 -0
- package/dist/orchestration/recall-profile-storage.d.ts.map +1 -0
- package/dist/orchestration/recall-recognition-index.d.ts +23 -0
- package/dist/orchestration/recall-recognition-index.d.ts.map +1 -0
- package/dist/orchestration/recall-recognition-search.d.ts +7 -0
- package/dist/orchestration/recall-recognition-search.d.ts.map +1 -0
- package/dist/orchestration/recall-rerank-coordinator.d.ts +126 -0
- package/dist/orchestration/recall-rerank-coordinator.d.ts.map +1 -0
- package/dist/orchestration/recall-result-formatter.d.ts +128 -0
- package/dist/orchestration/recall-result-formatter.d.ts.map +1 -0
- package/dist/orchestration/recall-search-pipeline.d.ts +284 -0
- package/dist/orchestration/recall-search-pipeline.d.ts.map +1 -0
- package/dist/orchestration/recall-search-prefilter.d.ts +31 -0
- package/dist/orchestration/recall-search-prefilter.d.ts.map +1 -0
- package/dist/orchestration/recall-section-coordinator.d.ts +92 -0
- package/dist/orchestration/recall-section-coordinator.d.ts.map +1 -0
- package/dist/orchestration/self-deps.d.ts +27 -0
- package/dist/orchestration/self-deps.d.ts.map +1 -0
- package/dist/orchestration/semantic-consolidation-coordinator.d.ts +64 -0
- package/dist/orchestration/semantic-consolidation-coordinator.d.ts.map +1 -0
- package/dist/orchestration/semantic-merge-commit-effects.d.ts +193 -0
- package/dist/orchestration/semantic-merge-commit-effects.d.ts.map +1 -0
- package/dist/orchestration/semantic-merge-persist.d.ts +318 -0
- package/dist/orchestration/semantic-merge-persist.d.ts.map +1 -0
- package/dist/orchestration/semantic-merge-promotion-payload.d.ts +132 -0
- package/dist/orchestration/semantic-merge-promotion-payload.d.ts.map +1 -0
- package/dist/orchestration/session-context.d.ts +225 -0
- package/dist/orchestration/session-context.d.ts.map +1 -0
- package/dist/orchestration/startup-collection-checks.d.ts +23 -0
- package/dist/orchestration/startup-collection-checks.d.ts.map +1 -0
- package/dist/orchestration/tier-migration-coordinator.d.ts +65 -0
- package/dist/orchestration/tier-migration-coordinator.d.ts.map +1 -0
- package/dist/orchestration/turn-ingestion.d.ts +227 -0
- package/dist/orchestration/turn-ingestion.d.ts.map +1 -0
- package/dist/orchestration/update-localization.d.ts +37 -0
- package/dist/orchestration/update-localization.d.ts.map +1 -0
- package/dist/orchestration/workspace-ops.d.ts +154 -0
- package/dist/orchestration/workspace-ops.d.ts.map +1 -0
- package/dist/orchestration/xray-capture-queue.d.ts +17 -0
- package/dist/orchestration/xray-capture-queue.d.ts.map +1 -0
- package/dist/orchestrator.d.ts +867 -109
- package/dist/orchestrator.d.ts.map +1 -0
- package/dist/orchestrator.js +157 -152
- package/dist/page-versioning.d.ts +16 -17
- package/dist/page-versioning.d.ts.map +1 -0
- package/dist/patterns-cli.d.ts +20 -40
- package/dist/patterns-cli.d.ts.map +1 -0
- package/dist/peers/index.d.ts +17 -327
- package/dist/peers/index.d.ts.map +1 -0
- package/dist/peers/migrate-from-identity-anchor.d.ts +119 -0
- package/dist/peers/migrate-from-identity-anchor.d.ts.map +1 -0
- package/dist/peers/profile-reasoner.d.ts +204 -0
- package/dist/peers/profile-reasoner.d.ts.map +1 -0
- package/dist/peers/storage.d.ts +163 -0
- package/dist/peers/storage.d.ts.map +1 -0
- package/dist/peers/types.d.ts +125 -0
- package/dist/peers/types.d.ts.map +1 -0
- package/dist/plugin-entry-resolver.d.ts +3 -4
- package/dist/plugin-entry-resolver.d.ts.map +1 -0
- package/dist/plugin-id.d.ts +4 -5
- package/dist/plugin-id.d.ts.map +1 -0
- package/dist/policy-runtime.d.ts +7 -26
- package/dist/policy-runtime.d.ts.map +1 -0
- package/dist/preferences/drift-config.d.ts +27 -0
- package/dist/preferences/drift-config.d.ts.map +1 -0
- package/dist/preferences/drift-recall.d.ts +74 -0
- package/dist/preferences/drift-recall.d.ts.map +1 -0
- package/dist/preferences/drift-types.d.ts +59 -0
- package/dist/preferences/drift-types.d.ts.map +1 -0
- package/dist/preferences/index.d.ts +12 -0
- package/dist/preferences/index.d.ts.map +1 -0
- package/dist/preferences/preference-drift.d.ts +144 -0
- package/dist/preferences/preference-drift.d.ts.map +1 -0
- package/dist/prioritized-embed.d.ts +3 -4
- package/dist/prioritized-embed.d.ts.map +1 -0
- package/dist/proactive-contention.d.ts +4 -24
- package/dist/proactive-contention.d.ts.map +1 -0
- package/dist/procedural/library-maintenance.d.ts +102 -0
- package/dist/procedural/library-maintenance.d.ts.map +1 -0
- package/dist/procedural/maintenance-config.d.ts +9 -0
- package/dist/procedural/maintenance-config.d.ts.map +1 -0
- package/dist/procedural/procedure-miner.d.ts +20 -0
- package/dist/procedural/procedure-miner.d.ts.map +1 -0
- package/dist/procedural/procedure-recall.d.ts +30 -0
- package/dist/procedural/procedure-recall.d.ts.map +1 -0
- package/dist/procedural/procedure-stats.d.ts +68 -0
- package/dist/procedural/procedure-stats.d.ts.map +1 -0
- package/dist/procedural/procedure-types.d.ts +26 -0
- package/dist/procedural/procedure-types.d.ts.map +1 -0
- package/dist/procedural/reinforcement-core.d.ts +39 -0
- package/dist/procedural/reinforcement-core.d.ts.map +1 -0
- package/dist/procedural/skill-io.d.ts +70 -0
- package/dist/procedural/skill-io.d.ts.map +1 -0
- package/dist/procedural/skill-projection.d.ts +98 -0
- package/dist/procedural/skill-projection.d.ts.map +1 -0
- package/dist/profiling.d.ts +10 -11
- package/dist/profiling.d.ts.map +1 -0
- package/dist/projection/index.d.ts +62 -0
- package/dist/projection/index.d.ts.map +1 -0
- package/dist/provenance.d.ts +13 -33
- package/dist/provenance.d.ts.map +1 -0
- package/dist/provenance.js +2 -2
- package/dist/providers/codex-subscription.d.ts +115 -0
- package/dist/providers/codex-subscription.d.ts.map +1 -0
- package/dist/qmd-preflight.d.ts +31 -21
- package/dist/qmd-preflight.d.ts.map +1 -0
- package/dist/qmd-recall-cache.d.ts +11 -30
- package/dist/qmd-recall-cache.d.ts.map +1 -0
- package/dist/qmd-status.d.ts +10 -11
- package/dist/qmd-status.d.ts.map +1 -0
- package/dist/qmd.d.ts +325 -21
- package/dist/qmd.d.ts.map +1 -0
- package/dist/reasoning-trace-recall.d.ts +7 -8
- package/dist/reasoning-trace-recall.d.ts.map +1 -0
- package/dist/reasoning-trace-types.d.ts +9 -10
- package/dist/reasoning-trace-types.d.ts.map +1 -0
- package/dist/recall-audit-anomaly.d.ts +11 -15
- package/dist/recall-audit-anomaly.d.ts.map +1 -0
- package/dist/recall-audit.d.ts +6 -8
- package/dist/recall-audit.d.ts.map +1 -0
- package/dist/recall-composition-decision.d.ts +9 -12
- package/dist/recall-composition-decision.d.ts.map +1 -0
- package/dist/recall-concurrency-config.d.ts +3 -22
- package/dist/recall-concurrency-config.d.ts.map +1 -0
- package/dist/recall-context-composition.d.ts +21 -22
- package/dist/recall-context-composition.d.ts.map +1 -0
- package/dist/recall-deep-access.d.ts +9 -12
- package/dist/recall-deep-access.d.ts.map +1 -0
- package/dist/recall-deep-budget-left.d.ts +2 -3
- package/dist/recall-deep-budget-left.d.ts.map +1 -0
- package/dist/recall-deep-budget.d.ts +2 -3
- package/dist/recall-deep-budget.d.ts.map +1 -0
- package/dist/recall-deep-expand-select.d.ts +4 -5
- package/dist/recall-deep-expand-select.d.ts.map +1 -0
- package/dist/recall-deep-expand.d.ts +2 -3
- package/dist/recall-deep-expand.d.ts.map +1 -0
- package/dist/recall-deep-frontier.d.ts +4 -5
- package/dist/recall-deep-frontier.d.ts.map +1 -0
- package/dist/recall-deep-policy.d.ts +5 -6
- package/dist/recall-deep-policy.d.ts.map +1 -0
- package/dist/recall-deep-query.d.ts +3 -4
- package/dist/recall-deep-query.d.ts.map +1 -0
- package/dist/recall-deep-refine.d.ts +2 -3
- package/dist/recall-deep-refine.d.ts.map +1 -0
- package/dist/recall-deep-render.d.ts +3 -6
- package/dist/recall-deep-render.d.ts.map +1 -0
- package/dist/recall-deep-rewrite.d.ts +4 -5
- package/dist/recall-deep-rewrite.d.ts.map +1 -0
- package/dist/recall-deep-step-count.d.ts +2 -3
- package/dist/recall-deep-step-count.d.ts.map +1 -0
- package/dist/recall-deep-stop-reason.d.ts +5 -6
- package/dist/recall-deep-stop-reason.d.ts.map +1 -0
- package/dist/recall-deep-stop.d.ts +6 -7
- package/dist/recall-deep-stop.d.ts.map +1 -0
- package/dist/recall-deep-trace-empty.d.ts +2 -3
- package/dist/recall-deep-trace-empty.d.ts.map +1 -0
- package/dist/recall-deep-working-set.d.ts +2 -3
- package/dist/recall-deep-working-set.d.ts.map +1 -0
- package/dist/recall-deep.d.ts +11 -12
- package/dist/recall-deep.d.ts.map +1 -0
- package/dist/recall-disclosure-escalation.d.ts +9 -29
- package/dist/recall-disclosure-escalation.d.ts.map +1 -0
- package/dist/recall-explain-renderer.d.ts +12 -38
- package/dist/recall-explain-renderer.d.ts.map +1 -0
- package/dist/recall-explain-renderer.js +3 -3
- package/dist/recall-handles.d.ts +23 -24
- package/dist/recall-handles.d.ts.map +1 -0
- package/dist/recall-memory-map.d.ts +8 -27
- package/dist/recall-memory-map.d.ts.map +1 -0
- package/dist/recall-mmr.d.ts +13 -14
- package/dist/recall-mmr.d.ts.map +1 -0
- package/dist/recall-navigate-access.d.ts +6 -27
- package/dist/recall-navigate-access.d.ts.map +1 -0
- package/dist/recall-navigate-access.js +2 -2
- package/dist/recall-navigate-action.d.ts +5 -5
- package/dist/recall-navigate-action.d.ts.map +1 -0
- package/dist/recall-navigate-budget.d.ts +3 -4
- package/dist/recall-navigate-budget.d.ts.map +1 -0
- package/dist/recall-navigate-cost.d.ts +2 -3
- package/dist/recall-navigate-cost.d.ts.map +1 -0
- package/dist/recall-navigate-depth.d.ts +2 -3
- package/dist/recall-navigate-depth.d.ts.map +1 -0
- package/dist/recall-navigate-disclosure.d.ts +5 -25
- package/dist/recall-navigate-disclosure.d.ts.map +1 -0
- package/dist/recall-navigate-disclosure.js +2 -2
- package/dist/recall-navigate-link.d.ts +5 -5
- package/dist/recall-navigate-link.d.ts.map +1 -0
- package/dist/recall-navigate-max-children.d.ts +2 -3
- package/dist/recall-navigate-max-children.d.ts.map +1 -0
- package/dist/recall-navigate-node.d.ts +3 -4
- package/dist/recall-navigate-node.d.ts.map +1 -0
- package/dist/recall-navigate-path.d.ts +2 -3
- package/dist/recall-navigate-path.d.ts.map +1 -0
- package/dist/recall-navigate-render.d.ts +3 -4
- package/dist/recall-navigate-render.d.ts.map +1 -0
- package/dist/recall-navigate-traverse.d.ts +5 -6
- package/dist/recall-navigate-traverse.d.ts.map +1 -0
- package/dist/recall-navigate-window.d.ts +5 -6
- package/dist/recall-navigate-window.d.ts.map +1 -0
- package/dist/recall-navigate.d.ts +13 -33
- package/dist/recall-navigate.d.ts.map +1 -0
- package/dist/recall-navigate.js +2 -2
- package/dist/recall-navigation-config.d.ts +7 -8
- package/dist/recall-navigation-config.d.ts.map +1 -0
- package/dist/recall-navigation-http-glue.d.ts +5 -151
- package/dist/recall-navigation-http-glue.d.ts.map +1 -0
- package/dist/recall-navigation-http-glue.js +2 -2
- package/dist/recall-navigation-mcp-tools.d.ts +3 -150
- package/dist/recall-navigation-mcp-tools.d.ts.map +1 -0
- package/dist/recall-navigation-operations.d.ts +11 -2
- package/dist/recall-navigation-operations.d.ts.map +1 -0
- package/dist/recall-navigation-operations.js +66 -61
- package/dist/recall-navigation-renderer.d.ts +4 -28
- package/dist/recall-navigation-renderer.d.ts.map +1 -0
- package/dist/recall-navigation.d.ts +13 -34
- package/dist/recall-navigation.d.ts.map +1 -0
- package/dist/recall-navigation.js +65 -60
- package/dist/recall-pipeline-stages.d.ts +6 -9
- package/dist/recall-pipeline-stages.d.ts.map +1 -0
- package/dist/recall-planner-i18n.d.ts +13 -14
- package/dist/recall-planner-i18n.d.ts.map +1 -0
- package/dist/recall-planner-llm.d.ts +8 -30
- package/dist/recall-planner-llm.d.ts.map +1 -0
- package/dist/recall-qos.d.ts +13 -15
- package/dist/recall-qos.d.ts.map +1 -0
- package/dist/recall-query-policy.d.ts +9 -10
- package/dist/recall-query-policy.d.ts.map +1 -0
- package/dist/recall-recognition-tier.d.ts +27 -28
- package/dist/recall-recognition-tier.d.ts.map +1 -0
- package/dist/recall-state-view-admission.d.ts +7 -26
- package/dist/recall-state-view-admission.d.ts.map +1 -0
- package/dist/recall-state-view-admission.js +3 -3
- package/dist/recall-state-view-anchors.d.ts +10 -29
- package/dist/recall-state-view-anchors.d.ts.map +1 -0
- package/dist/recall-state-view-current.d.ts +4 -5
- package/dist/recall-state-view-current.d.ts.map +1 -0
- package/dist/recall-state-view-inject.d.ts +3 -7
- package/dist/recall-state-view-inject.d.ts.map +1 -0
- package/dist/recall-state-view-kind.d.ts +5 -5
- package/dist/recall-state-view-kind.d.ts.map +1 -0
- package/dist/recall-state-view-label.d.ts +3 -6
- package/dist/recall-state-view-label.d.ts.map +1 -0
- package/dist/recall-state-view-packet.d.ts +7 -9
- package/dist/recall-state-view-packet.d.ts.map +1 -0
- package/dist/recall-state-view-render.d.ts +4 -7
- package/dist/recall-state-view-render.d.ts.map +1 -0
- package/dist/recall-state-view-successor.d.ts +3 -4
- package/dist/recall-state-view-successor.d.ts.map +1 -0
- package/dist/recall-state-view-superseded.d.ts +3 -4
- package/dist/recall-state-view-superseded.d.ts.map +1 -0
- package/dist/recall-state-view-transition.d.ts +4 -5
- package/dist/recall-state-view-transition.d.ts.map +1 -0
- package/dist/recall-state-view-widen.d.ts +3 -6
- package/dist/recall-state-view-widen.d.ts.map +1 -0
- package/dist/recall-state-view-wire.d.ts +3 -6
- package/dist/recall-state-view-wire.d.ts.map +1 -0
- package/dist/recall-state-view-zero-diff.d.ts +4 -5
- package/dist/recall-state-view-zero-diff.d.ts.map +1 -0
- package/dist/recall-state-view.d.ts +16 -17
- package/dist/recall-state-view.d.ts.map +1 -0
- package/dist/recall-state.d.ts +17 -35
- package/dist/recall-state.d.ts.map +1 -0
- package/dist/recall-tag-filter.d.ts +10 -33
- package/dist/recall-tag-filter.d.ts.map +1 -0
- package/dist/recall-timings.d.ts +10 -29
- package/dist/recall-timings.d.ts.map +1 -0
- package/dist/recall-tokenization.d.ts +7 -8
- package/dist/recall-tokenization.d.ts.map +1 -0
- package/dist/recall-why-cli.d.ts +25 -0
- package/dist/recall-why-cli.d.ts.map +1 -0
- package/dist/recall-why-cli.js +9 -0
- package/dist/recall-why-cli.js.map +1 -0
- package/dist/recall-why-renderer.d.ts +25 -0
- package/dist/recall-why-renderer.d.ts.map +1 -0
- package/dist/recall-why-renderer.js +18 -0
- package/dist/recall-why-renderer.js.map +1 -0
- package/dist/recall-why-service.d.ts +49 -0
- package/dist/recall-why-service.d.ts.map +1 -0
- package/dist/recall-why-service.js +46 -0
- package/dist/recall-why-service.js.map +1 -0
- package/dist/recall-why.d.ts +175 -0
- package/dist/recall-why.d.ts.map +1 -0
- package/dist/recall-why.js +25 -0
- package/dist/recall-why.js.map +1 -0
- package/dist/recall-xray-cli.d.ts +7 -31
- package/dist/recall-xray-cli.d.ts.map +1 -0
- package/dist/recall-xray-cli.js +4 -4
- package/dist/recall-xray-renderer.d.ts +9 -33
- package/dist/recall-xray-renderer.d.ts.map +1 -0
- package/dist/recall-xray-renderer.js +3 -3
- package/dist/recall-xray.d.ts +19 -39
- package/dist/recall-xray.d.ts.map +1 -0
- package/dist/recall-xray.js +2 -2
- package/dist/reconcile/cursor.d.ts +15 -37
- package/dist/reconcile/cursor.d.ts.map +1 -0
- package/dist/reconcile/manifest.d.ts +19 -40
- package/dist/reconcile/manifest.d.ts.map +1 -0
- package/dist/reconcile/manifest.js +2 -2
- package/dist/reconcile/plan.d.ts +22 -42
- package/dist/reconcile/plan.d.ts.map +1 -0
- package/dist/reconstruct.d.ts +2 -3
- package/dist/reconstruct.d.ts.map +1 -0
- package/dist/relay/mission-access.d.ts +28 -0
- package/dist/relay/mission-access.d.ts.map +1 -0
- package/dist/relay/mission-fixture.d.ts +11 -0
- package/dist/relay/mission-fixture.d.ts.map +1 -0
- package/dist/relay/mission.d.ts +3952 -0
- package/dist/relay/mission.d.ts.map +1 -0
- package/dist/release-changelog.d.ts +3 -4
- package/dist/release-changelog.d.ts.map +1 -0
- package/dist/relevance.d.ts +3 -3
- package/dist/relevance.d.ts.map +1 -0
- package/dist/replay/normalizers/chatgpt.d.ts +3 -23
- package/dist/replay/normalizers/chatgpt.d.ts.map +1 -0
- package/dist/replay/normalizers/claude.d.ts +3 -23
- package/dist/replay/normalizers/claude.d.ts.map +1 -0
- package/dist/replay/normalizers/openclaw.d.ts +3 -23
- package/dist/replay/normalizers/openclaw.d.ts.map +1 -0
- package/dist/replay/normalizers/shared.d.ts +6 -25
- package/dist/replay/normalizers/shared.d.ts.map +1 -0
- package/dist/replay/runner.d.ts +10 -30
- package/dist/replay/runner.d.ts.map +1 -0
- package/dist/replay/types.d.ts +18 -37
- package/dist/replay/types.d.ts.map +1 -0
- package/dist/replica-divergence.d.ts +24 -45
- package/dist/replica-divergence.d.ts.map +1 -0
- package/dist/replica-divergence.js +3 -3
- package/dist/replica-peers-config.d.ts +50 -18
- package/dist/replica-peers-config.d.ts.map +1 -0
- package/dist/rerank.d.ts +8 -9
- package/dist/rerank.d.ts.map +1 -0
- package/dist/resolution-CHNISQJB.js +36 -0
- package/dist/resolution-CHNISQJB.js.map +1 -0
- package/dist/resolve-auth-token.d.ts +9 -27
- package/dist/resolve-auth-token.d.ts.map +1 -0
- package/dist/resolve-provider-secret.d.ts +10 -11
- package/dist/resolve-provider-secret.d.ts.map +1 -0
- package/dist/response-guidance-recall.d.ts +5 -8
- package/dist/response-guidance-recall.d.ts.map +1 -0
- package/dist/resume-bundles.d.ts +9 -10
- package/dist/resume-bundles.d.ts.map +1 -0
- package/dist/resume-bundles.js +24 -24
- package/dist/retrieval-agents.d.ts +14 -36
- package/dist/retrieval-agents.d.ts.map +1 -0
- package/dist/retrieval-tiers.d.ts +4 -24
- package/dist/retrieval-tiers.d.ts.map +1 -0
- package/dist/retrieval.d.ts +5 -6
- package/dist/retrieval.d.ts.map +1 -0
- package/dist/review/frontmatter.d.ts +6 -0
- package/dist/review/frontmatter.d.ts.map +1 -0
- package/dist/review/index.d.ts +81 -0
- package/dist/review/index.d.ts.map +1 -0
- package/dist/review/review-deck-http-base.d.ts +10 -0
- package/dist/review/review-deck-http-base.d.ts.map +1 -0
- package/dist/review/review-deck-mutation.d.ts +51 -0
- package/dist/review/review-deck-mutation.d.ts.map +1 -0
- package/dist/review/review-deck-snapshot.d.ts +10 -0
- package/dist/review/review-deck-snapshot.d.ts.map +1 -0
- package/dist/review/review-deck-surface.d.ts +33 -0
- package/dist/review/review-deck-surface.d.ts.map +1 -0
- package/dist/review/review-deck.d.ts +107 -0
- package/dist/review/review-deck.d.ts.map +1 -0
- package/dist/routing/engine.d.ts +12 -31
- package/dist/routing/engine.d.ts.map +1 -0
- package/dist/routing/store.d.ts +3 -23
- package/dist/routing/store.d.ts.map +1 -0
- package/dist/runtime/better-sqlite.d.ts +9 -10
- package/dist/runtime/better-sqlite.d.ts.map +1 -0
- package/dist/runtime/child-process.d.ts +5 -5
- package/dist/runtime/child-process.d.ts.map +1 -0
- package/dist/runtime/daemon-health.d.ts +2 -0
- package/dist/runtime/daemon-health.d.ts.map +1 -0
- package/dist/runtime/env.d.ts +5 -6
- package/dist/runtime/env.d.ts.map +1 -0
- package/dist/runtime/http-transport.d.ts +3 -4
- package/dist/runtime/http-transport.d.ts.map +1 -0
- package/dist/salvage-envelope.d.ts +3 -23
- package/dist/salvage-envelope.d.ts.map +1 -0
- package/dist/sanitize.d.ts +5 -7
- package/dist/sanitize.d.ts.map +1 -0
- package/dist/schemas.d.ts +135 -137
- package/dist/schemas.d.ts.map +1 -0
- package/dist/scopes/scope-plan.d.ts +258 -0
- package/dist/scopes/scope-plan.d.ts.map +1 -0
- package/dist/sdk-compat.d.ts +4 -5
- package/dist/sdk-compat.d.ts.map +1 -0
- package/dist/search/abort.d.ts +5 -0
- package/dist/search/abort.d.ts.map +1 -0
- package/dist/search/document-scanner.d.ts +3 -4
- package/dist/search/document-scanner.d.ts.map +1 -0
- package/dist/search/embed-helper.d.ts +8 -26
- package/dist/search/embed-helper.d.ts.map +1 -0
- package/dist/search/factory.d.ts +10 -31
- package/dist/search/factory.d.ts.map +1 -0
- package/dist/search/factory.js +4 -4
- package/dist/search/index.d.ts +11 -32
- package/dist/search/index.d.ts.map +1 -0
- package/dist/search/index.js +10 -10
- package/dist/search/lancedb-backend.d.ts +5 -26
- package/dist/search/lancedb-backend.d.ts.map +1 -0
- package/dist/search/meilisearch-backend.d.ts +4 -24
- package/dist/search/meilisearch-backend.d.ts.map +1 -0
- package/dist/search/noop-backend.d.ts +3 -23
- package/dist/search/noop-backend.d.ts.map +1 -0
- package/dist/search/orama-backend.d.ts +6 -27
- package/dist/search/orama-backend.d.ts.map +1 -0
- package/dist/search/orama-cjk-tokenizer.d.ts +53 -0
- package/dist/search/orama-cjk-tokenizer.d.ts.map +1 -0
- package/dist/search/port.d.ts +10 -29
- package/dist/search/port.d.ts.map +1 -0
- package/dist/search/remote-backend.d.ts +4 -24
- package/dist/search/remote-backend.d.ts.map +1 -0
- package/dist/secure-store/cipher.d.ts +127 -0
- package/dist/secure-store/cipher.d.ts.map +1 -0
- package/dist/secure-store/cli-handlers.d.ts +134 -0
- package/dist/secure-store/cli-handlers.d.ts.map +1 -0
- package/dist/secure-store/cli-renderer.d.ts +16 -0
- package/dist/secure-store/cli-renderer.d.ts.map +1 -0
- package/dist/secure-store/header.d.ts +137 -0
- package/dist/secure-store/header.d.ts.map +1 -0
- package/dist/secure-store/index.d.ts +23 -899
- package/dist/secure-store/index.d.ts.map +1 -0
- package/dist/secure-store/kdf.d.ts +101 -0
- package/dist/secure-store/kdf.d.ts.map +1 -0
- package/dist/secure-store/keyring.d.ts +58 -0
- package/dist/secure-store/keyring.d.ts.map +1 -0
- package/dist/secure-store/metadata.d.ts +104 -0
- package/dist/secure-store/metadata.d.ts.map +1 -0
- package/dist/secure-store/passphrase-reader.d.ts +40 -0
- package/dist/secure-store/passphrase-reader.d.ts.map +1 -0
- package/dist/secure-store/secure-fs.d.ts +227 -0
- package/dist/secure-store/secure-fs.d.ts.map +1 -0
- package/dist/security/audit-memory-cli.d.ts +9 -0
- package/dist/security/audit-memory-cli.d.ts.map +1 -0
- package/dist/security/audit-memory.d.ts +48 -0
- package/dist/security/audit-memory.d.ts.map +1 -0
- package/dist/security/injection-screen.d.ts +19 -0
- package/dist/security/injection-screen.d.ts.map +1 -0
- package/dist/security/origin-authority.d.ts +30 -0
- package/dist/security/origin-authority.d.ts.map +1 -0
- package/dist/security/types.d.ts +13 -0
- package/dist/security/types.d.ts.map +1 -0
- package/dist/semantic-chunking.d.ts +13 -16
- package/dist/semantic-chunking.d.ts.map +1 -0
- package/dist/semantic-consolidation.d.ts +126 -22
- package/dist/semantic-consolidation.d.ts.map +1 -0
- package/dist/semantic-consolidation.js +15 -15
- package/dist/semantic-merge-config.d.ts +2 -3
- package/dist/semantic-merge-config.d.ts.map +1 -0
- package/dist/semantic-rule-promotion.d.ts +7 -7
- package/dist/semantic-rule-promotion.d.ts.map +1 -0
- package/dist/semantic-rule-promotion.js +14 -14
- package/dist/semantic-rule-verifier.d.ts +6 -25
- package/dist/semantic-rule-verifier.d.ts.map +1 -0
- package/dist/semantic-rule-verifier.js +14 -14
- package/dist/session-identity.d.ts +10 -11
- package/dist/session-identity.d.ts.map +1 -0
- package/dist/session-integrity.d.ts +14 -15
- package/dist/session-integrity.d.ts.map +1 -0
- package/dist/session-namespace-bindings.d.ts +10 -11
- package/dist/session-namespace-bindings.d.ts.map +1 -0
- package/dist/session-observer-bands.d.ts +4 -23
- package/dist/session-observer-bands.d.ts.map +1 -0
- package/dist/session-observer-state.d.ts +6 -25
- package/dist/session-observer-state.d.ts.map +1 -0
- package/dist/session-summaries/adapters.d.ts +5 -0
- package/dist/session-summaries/adapters.d.ts.map +1 -0
- package/dist/session-summaries/index.d.ts +7 -0
- package/dist/session-summaries/index.d.ts.map +1 -0
- package/dist/session-summaries/redaction.d.ts +8 -0
- package/dist/session-summaries/redaction.d.ts.map +1 -0
- package/dist/session-summaries/types.d.ts +113 -0
- package/dist/session-summaries/types.d.ts.map +1 -0
- package/dist/session-toggles.d.ts +4 -4
- package/dist/session-toggles.d.ts.map +1 -0
- package/dist/session-transcript-migration.d.ts +9 -10
- package/dist/session-transcript-migration.d.ts.map +1 -0
- package/dist/shared-context/authority-precedence.d.ts +22 -0
- package/dist/shared-context/authority-precedence.d.ts.map +1 -0
- package/dist/shared-context/authority.d.ts +18 -0
- package/dist/shared-context/authority.d.ts.map +1 -0
- package/dist/shared-context/claim-key.d.ts +14 -0
- package/dist/shared-context/claim-key.d.ts.map +1 -0
- package/dist/shared-context/contradictions.d.ts +20 -0
- package/dist/shared-context/contradictions.d.ts.map +1 -0
- package/dist/shared-context/curation-lint.d.ts +23 -0
- package/dist/shared-context/curation-lint.d.ts.map +1 -0
- package/dist/shared-context/envelope-actor.d.ts +14 -0
- package/dist/shared-context/envelope-actor.d.ts.map +1 -0
- package/dist/shared-context/envelope-at.d.ts +19 -0
- package/dist/shared-context/envelope-at.d.ts.map +1 -0
- package/dist/shared-context/envelope-id.d.ts +14 -0
- package/dist/shared-context/envelope-id.d.ts.map +1 -0
- package/dist/shared-context/envelope-io.d.ts +100 -0
- package/dist/shared-context/envelope-io.d.ts.map +1 -0
- package/dist/shared-context/envelope-required.d.ts +14 -0
- package/dist/shared-context/envelope-required.d.ts.map +1 -0
- package/dist/shared-context/envelope-ttl.d.ts +12 -0
- package/dist/shared-context/envelope-ttl.d.ts.map +1 -0
- package/dist/shared-context/governance.d.ts +28 -0
- package/dist/shared-context/governance.d.ts.map +1 -0
- package/dist/shared-context/iso-instant.d.ts +19 -0
- package/dist/shared-context/iso-instant.d.ts.map +1 -0
- package/dist/shared-context/manager.d.ts +13 -40
- package/dist/shared-context/manager.d.ts.map +1 -0
- package/dist/shared-context/provenance.d.ts +18 -0
- package/dist/shared-context/provenance.d.ts.map +1 -0
- package/dist/shared-context/staleness.d.ts +18 -0
- package/dist/shared-context/staleness.d.ts.map +1 -0
- package/dist/shared-context/supersession-chain.d.ts +41 -0
- package/dist/shared-context/supersession-chain.d.ts.map +1 -0
- package/dist/shared-context/trajectories.d.ts +24 -0
- package/dist/shared-context/trajectories.d.ts.map +1 -0
- package/dist/shared-context/write-output-controls.d.ts +4 -5
- package/dist/shared-context/write-output-controls.d.ts.map +1 -0
- package/dist/signal.d.ts +4 -23
- package/dist/signal.d.ts.map +1 -0
- package/dist/skills-registry.d.ts +4 -5
- package/dist/skills-registry.d.ts.map +1 -0
- package/dist/source-agent-qualifier.d.ts +8 -27
- package/dist/source-agent-qualifier.d.ts.map +1 -0
- package/dist/source-agent-qualifier.js +23 -23
- package/dist/source-attribution.d.ts +20 -21
- package/dist/source-attribution.d.ts.map +1 -0
- package/dist/spaces/index.d.ts +148 -0
- package/dist/spaces/index.d.ts.map +1 -0
- package/dist/standing-memory-block.d.ts +25 -26
- package/dist/standing-memory-block.d.ts.map +1 -0
- package/dist/standup/access-operations.d.ts +2 -0
- package/dist/standup/access-operations.d.ts.map +1 -0
- package/dist/standup/build.d.ts +6 -7
- package/dist/standup/build.d.ts.map +1 -0
- package/dist/standup/build.js +15 -15
- package/dist/standup/http-glue.d.ts +4 -0
- package/dist/standup/http-glue.d.ts.map +1 -0
- package/dist/standup/mcp-tools.d.ts +3 -0
- package/dist/standup/mcp-tools.d.ts.map +1 -0
- package/dist/storage/cas-revision-host.d.ts +34 -0
- package/dist/storage/cas-revision-host.d.ts.map +1 -0
- package/dist/storage/cas-revision-store.d.ts +176 -0
- package/dist/storage/cas-revision-store.d.ts.map +1 -0
- package/dist/storage/citation-hash-source.d.ts +3 -0
- package/dist/storage/citation-hash-source.d.ts.map +1 -0
- package/dist/storage/committed-invalidation.d.ts +9 -0
- package/dist/storage/committed-invalidation.d.ts.map +1 -0
- package/dist/storage/content-hash-index.d.ts +269 -0
- package/dist/storage/content-hash-index.d.ts.map +1 -0
- package/dist/storage/context-transform-ledger.d.ts +10 -0
- package/dist/storage/context-transform-ledger.d.ts.map +1 -0
- package/dist/storage/deletion-revision-store.d.ts +79 -0
- package/dist/storage/deletion-revision-store.d.ts.map +1 -0
- package/dist/storage/entity-alias-config.d.ts +2 -0
- package/dist/storage/entity-alias-config.d.ts.map +1 -0
- package/dist/storage/entity-canonical-id-lock.d.ts +4 -0
- package/dist/storage/entity-canonical-id-lock.d.ts.map +1 -0
- package/dist/storage/entity-canonical-id-migration-adapter.d.ts +24 -0
- package/dist/storage/entity-canonical-id-migration-adapter.d.ts.map +1 -0
- package/dist/storage/entity-canonical-id-migration-runner.d.ts +16 -0
- package/dist/storage/entity-canonical-id-migration-runner.d.ts.map +1 -0
- package/dist/storage/entity-canonical-id-migration.d.ts +44 -0
- package/dist/storage/entity-canonical-id-migration.d.ts.map +1 -0
- package/dist/storage/entity-canonical-id-references.d.ts +173 -0
- package/dist/storage/entity-canonical-id-references.d.ts.map +1 -0
- package/dist/storage/entity-id-safety.d.ts +2 -0
- package/dist/storage/entity-id-safety.d.ts.map +1 -0
- package/dist/storage/entity-ref-repair.d.ts +45 -0
- package/dist/storage/entity-ref-repair.d.ts.map +1 -0
- package/dist/storage/entity-store.d.ts +131 -0
- package/dist/storage/entity-store.d.ts.map +1 -0
- package/dist/storage/entity-timeline.d.ts +34 -0
- package/dist/storage/entity-timeline.d.ts.map +1 -0
- package/dist/storage/identity-continuity-store.d.ts +40 -0
- package/dist/storage/identity-continuity-store.d.ts.map +1 -0
- package/dist/storage/memory-frontmatter-metadata.d.ts +4 -0
- package/dist/storage/memory-frontmatter-metadata.d.ts.map +1 -0
- package/dist/storage/memory-lifecycle-ledger-access.d.ts +194 -0
- package/dist/storage/memory-lifecycle-ledger-access.d.ts.map +1 -0
- package/dist/storage/memory-migration-serialization.d.ts +5 -0
- package/dist/storage/memory-migration-serialization.d.ts.map +1 -0
- package/dist/storage/memory-read-store.d.ts +193 -0
- package/dist/storage/memory-read-store.d.ts.map +1 -0
- package/dist/storage/profile-header.d.ts +16 -0
- package/dist/storage/profile-header.d.ts.map +1 -0
- package/dist/storage/questions-file.d.ts +11 -0
- package/dist/storage/questions-file.d.ts.map +1 -0
- package/dist/storage/secure-line-reader.d.ts +53 -0
- package/dist/storage/secure-line-reader.d.ts.map +1 -0
- package/dist/storage/supersession-audit.d.ts +7 -0
- package/dist/storage/supersession-audit.d.ts.map +1 -0
- package/dist/storage/supersession-side-effects.d.ts +51 -0
- package/dist/storage/supersession-side-effects.d.ts.map +1 -0
- package/dist/storage/tombstone-blocked-capture-index.d.ts +93 -0
- package/dist/storage/tombstone-blocked-capture-index.d.ts.map +1 -0
- package/dist/storage/tombstone-blocked-capture-mutation.d.ts +53 -0
- package/dist/storage/tombstone-blocked-capture-mutation.d.ts.map +1 -0
- package/dist/storage/tombstone-blocked-capture-sync.d.ts +96 -0
- package/dist/storage/tombstone-blocked-capture-sync.d.ts.map +1 -0
- package/dist/storage/tombstone-migration-sources.d.ts +24 -0
- package/dist/storage/tombstone-migration-sources.d.ts.map +1 -0
- package/dist/storage/windowed-memory-read.d.ts +28 -0
- package/dist/storage/windowed-memory-read.d.ts.map +1 -0
- package/dist/storage-contract/harness.d.ts +59 -0
- package/dist/storage-contract/harness.d.ts.map +1 -0
- package/dist/storage-guards.d.ts +6 -7
- package/dist/storage-guards.d.ts.map +1 -0
- package/dist/storage-paths.d.ts +8 -9
- package/dist/storage-paths.d.ts.map +1 -0
- package/dist/storage.d.ts +1362 -33
- package/dist/storage.d.ts.map +1 -0
- package/dist/storage.js +15 -15
- package/dist/store-contract.d.ts +9 -10
- package/dist/store-contract.d.ts.map +1 -0
- package/dist/structured-attributes.d.ts +6 -7
- package/dist/structured-attributes.d.ts.map +1 -0
- package/dist/subject-config.d.ts +4 -24
- package/dist/subject-config.d.ts.map +1 -0
- package/dist/summarizer.d.ts +7 -27
- package/dist/summarizer.d.ts.map +1 -0
- package/dist/summarizer.js +3 -3
- package/dist/summary-snapshot.d.ts +6 -25
- package/dist/summary-snapshot.d.ts.map +1 -0
- package/dist/support-passport/access-http-base.d.ts +20 -0
- package/dist/support-passport/access-http-base.d.ts.map +1 -0
- package/dist/support-passport/access-http.d.ts +64 -0
- package/dist/support-passport/access-http.d.ts.map +1 -0
- package/dist/support-passport/access-operations.d.ts +197 -0
- package/dist/support-passport/access-operations.d.ts.map +1 -0
- package/dist/support-passport/access-service-base.d.ts +86 -0
- package/dist/support-passport/access-service-base.d.ts.map +1 -0
- package/dist/support-passport/access-surface.d.ts +118 -0
- package/dist/support-passport/access-surface.d.ts.map +1 -0
- package/dist/support-passport/card-projection.d.ts +83 -0
- package/dist/support-passport/card-projection.d.ts.map +1 -0
- package/dist/support-passport/card-replacement.d.ts +21 -0
- package/dist/support-passport/card-replacement.d.ts.map +1 -0
- package/dist/support-passport/card-service.d.ts +65 -0
- package/dist/support-passport/card-service.d.ts.map +1 -0
- package/dist/support-passport/card-state.d.ts +28 -0
- package/dist/support-passport/card-state.d.ts.map +1 -0
- package/dist/support-passport/config.d.ts +4 -0
- package/dist/support-passport/config.d.ts.map +1 -0
- package/dist/support-passport/contracts.d.ts +165 -0
- package/dist/support-passport/contracts.d.ts.map +1 -0
- package/dist/support-passport/errors.d.ts +7 -0
- package/dist/support-passport/errors.d.ts.map +1 -0
- package/dist/support-passport/generated-batch.d.ts +47 -0
- package/dist/support-passport/generated-batch.d.ts.map +1 -0
- package/dist/support-passport/grant-contracts.d.ts +443 -0
- package/dist/support-passport/grant-contracts.d.ts.map +1 -0
- package/dist/support-passport/grant-service.d.ts +48 -0
- package/dist/support-passport/grant-service.d.ts.map +1 -0
- package/dist/support-passport/grant-store.d.ts +84 -0
- package/dist/support-passport/grant-store.d.ts.map +1 -0
- package/dist/support-passport/index.d.ts +17 -571
- package/dist/support-passport/index.d.ts.map +1 -0
- package/dist/support-passport/index.js +75 -70
- package/dist/support-passport/mcp-tools.d.ts +16 -0
- package/dist/support-passport/mcp-tools.d.ts.map +1 -0
- package/dist/support-passport/model-adapter.d.ts +90 -0
- package/dist/support-passport/model-adapter.d.ts.map +1 -0
- package/dist/support-passport/model-audit.d.ts +115 -0
- package/dist/support-passport/model-audit.d.ts.map +1 -0
- package/dist/support-passport/model-bridge.d.ts +105 -0
- package/dist/support-passport/model-bridge.d.ts.map +1 -0
- package/dist/support-passport/model-contracts.d.ts +219 -0
- package/dist/support-passport/model-contracts.d.ts.map +1 -0
- package/dist/support-passport/model-service.d.ts +58 -0
- package/dist/support-passport/model-service.d.ts.map +1 -0
- package/dist/support-passport/offline-sync-guard.d.ts +46 -0
- package/dist/support-passport/offline-sync-guard.d.ts.map +1 -0
- package/dist/support-passport/owner-lock.d.ts +16 -0
- package/dist/support-passport/owner-lock.d.ts.map +1 -0
- package/dist/support-passport/private-file.d.ts +16 -0
- package/dist/support-passport/private-file.d.ts.map +1 -0
- package/dist/support-passport/public-http.d.ts +23 -0
- package/dist/support-passport/public-http.d.ts.map +1 -0
- package/dist/surfaces/dreams.d.ts +4 -5
- package/dist/surfaces/dreams.d.ts.map +1 -0
- package/dist/surfaces/heartbeat.d.ts +4 -5
- package/dist/surfaces/heartbeat.d.ts.map +1 -0
- package/dist/sync/index.d.ts +69 -0
- package/dist/sync/index.d.ts.map +1 -0
- package/dist/targeted-fact-recall.d.ts +5 -8
- package/dist/targeted-fact-recall.d.ts.map +1 -0
- package/dist/task-llm-config.d.ts +4 -5
- package/dist/task-llm-config.d.ts.map +1 -0
- package/dist/taxonomy/default-taxonomy.d.ts +7 -0
- package/dist/taxonomy/default-taxonomy.d.ts.map +1 -0
- package/dist/taxonomy/index.d.ts +11 -0
- package/dist/taxonomy/index.d.ts.map +1 -0
- package/dist/taxonomy/resolver-doc-generator.d.ts +17 -0
- package/dist/taxonomy/resolver-doc-generator.d.ts.map +1 -0
- package/dist/taxonomy/resolver.d.ts +25 -0
- package/dist/taxonomy/resolver.d.ts.map +1 -0
- package/dist/taxonomy/taxonomy-loader.d.ts +38 -0
- package/dist/taxonomy/taxonomy-loader.d.ts.map +1 -0
- package/dist/taxonomy/types.d.ts +49 -0
- package/dist/taxonomy/types.d.ts.map +1 -0
- package/dist/telemetry-transcript.d.ts +6 -7
- package/dist/telemetry-transcript.d.ts.map +1 -0
- package/dist/temporal-index-batch.d.ts +30 -1
- package/dist/temporal-index-batch.d.ts.map +1 -0
- package/dist/temporal-index-compat.d.ts +7 -267
- package/dist/temporal-index-compat.d.ts.map +1 -0
- package/dist/temporal-index.d.ts +230 -1
- package/dist/temporal-index.d.ts.map +1 -0
- package/dist/temporal-supersession.d.ts +14 -34
- package/dist/temporal-supersession.d.ts.map +1 -0
- package/dist/temporal-timeline-recall.d.ts +5 -24
- package/dist/temporal-timeline-recall.d.ts.map +1 -0
- package/dist/temporal-validity.d.ts +7 -27
- package/dist/temporal-validity.d.ts.map +1 -0
- package/dist/testing/lifecycle-matrix.d.ts +11 -12
- package/dist/testing/lifecycle-matrix.d.ts.map +1 -0
- package/dist/testing/orchestrator-lite.d.ts +80 -0
- package/dist/testing/orchestrator-lite.d.ts.map +1 -0
- package/dist/testing/subjects/meetings-namespace-harness.d.ts +32 -0
- package/dist/testing/subjects/meetings-namespace-harness.d.ts.map +1 -0
- package/dist/testing/tmp-dir.d.ts +9 -0
- package/dist/testing/tmp-dir.d.ts.map +1 -0
- package/dist/thread-key.d.ts +2 -3
- package/dist/thread-key.d.ts.map +1 -0
- package/dist/threading.d.ts +3 -23
- package/dist/threading.d.ts.map +1 -0
- package/dist/tier-migration.d.ts +10 -43
- package/dist/tier-migration.d.ts.map +1 -0
- package/dist/tier-routing.d.ts +8 -27
- package/dist/tier-routing.d.ts.map +1 -0
- package/dist/tmt.d.ts +18 -19
- package/dist/tmt.d.ts.map +1 -0
- package/dist/token-estimate.d.ts +2 -3
- package/dist/token-estimate.d.ts.map +1 -0
- package/dist/tokens.d.ts +15 -19
- package/dist/tokens.d.ts.map +1 -0
- package/dist/tokens.js +3 -3
- package/dist/tool-scoped-memory.d.ts +7 -8
- package/dist/tool-scoped-memory.d.ts.map +1 -0
- package/dist/topics.d.ts +4 -24
- package/dist/topics.d.ts.map +1 -0
- package/dist/training-export/converter.d.ts +18 -0
- package/dist/training-export/converter.d.ts.map +1 -0
- package/dist/training-export/date-parse.d.ts +38 -0
- package/dist/training-export/date-parse.d.ts.map +1 -0
- package/dist/training-export/index.d.ts +10 -0
- package/dist/training-export/index.d.ts.map +1 -0
- package/dist/training-export/registry.d.ts +27 -0
- package/dist/training-export/registry.d.ts.map +1 -0
- package/dist/training-export/types.d.ts +29 -0
- package/dist/training-export/types.d.ts.map +1 -0
- package/dist/transcript.d.ts +5 -24
- package/dist/transcript.d.ts.map +1 -0
- package/dist/transfer/autodetect.d.ts +3 -4
- package/dist/transfer/autodetect.d.ts.map +1 -0
- package/dist/transfer/backup.d.ts +3 -4
- package/dist/transfer/backup.d.ts.map +1 -0
- package/dist/transfer/backup.js +2 -2
- package/dist/transfer/capsule-crypto.d.ts +168 -0
- package/dist/transfer/capsule-crypto.d.ts.map +1 -0
- package/dist/transfer/capsule-export.d.ts +6 -9
- package/dist/transfer/capsule-export.d.ts.map +1 -0
- package/dist/transfer/capsule-export.js +2 -2
- package/dist/transfer/capsule-fork.d.ts +117 -0
- package/dist/transfer/capsule-fork.d.ts.map +1 -0
- package/dist/transfer/capsule-import.d.ts +10 -13
- package/dist/transfer/capsule-import.d.ts.map +1 -0
- package/dist/transfer/capsule-import.js +2 -2
- package/dist/transfer/capsule-merge.d.ts +124 -0
- package/dist/transfer/capsule-merge.d.ts.map +1 -0
- package/dist/transfer/conflict-policy.d.ts +5 -0
- package/dist/transfer/conflict-policy.d.ts.map +1 -0
- package/dist/transfer/constants.d.ts +4 -5
- package/dist/transfer/constants.d.ts.map +1 -0
- package/dist/transfer/exclusions.d.ts +8 -0
- package/dist/transfer/exclusions.d.ts.map +1 -0
- package/dist/transfer/export-json.d.ts +3 -4
- package/dist/transfer/export-json.d.ts.map +1 -0
- package/dist/transfer/export-md.d.ts +4 -5
- package/dist/transfer/export-md.d.ts.map +1 -0
- package/dist/transfer/export-okf.d.ts +11 -31
- package/dist/transfer/export-okf.d.ts.map +1 -0
- package/dist/transfer/export-okf.js +14 -14
- package/dist/transfer/export-sqlite.d.ts +3 -4
- package/dist/transfer/export-sqlite.d.ts.map +1 -0
- package/dist/transfer/fs-utils.d.ts +20 -21
- package/dist/transfer/fs-utils.d.ts.map +1 -0
- package/dist/transfer/import-json.d.ts +6 -7
- package/dist/transfer/import-json.d.ts.map +1 -0
- package/dist/transfer/import-md.d.ts +5 -6
- package/dist/transfer/import-md.d.ts.map +1 -0
- package/dist/transfer/import-sqlite.d.ts +5 -6
- package/dist/transfer/import-sqlite.d.ts.map +1 -0
- package/dist/transfer/integrity.d.ts +8 -0
- package/dist/transfer/integrity.d.ts.map +1 -0
- package/dist/transfer/sqlite-schema.d.ts +3 -4
- package/dist/transfer/sqlite-schema.d.ts.map +1 -0
- package/dist/transfer/types.d.ts +48 -50
- package/dist/transfer/types.d.ts.map +1 -0
- package/dist/trust-score-stage.d.ts +21 -40
- package/dist/trust-score-stage.d.ts.map +1 -0
- package/dist/trust-score.d.ts +15 -34
- package/dist/trust-score.d.ts.map +1 -0
- package/dist/trust-zones.d.ts +29 -30
- package/dist/trust-zones.d.ts.map +1 -0
- package/dist/types-continuity.d.ts +10 -11
- package/dist/types-continuity.d.ts.map +1 -0
- package/dist/types.d.ts +3500 -18
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +1 -1
- package/dist/user-message-cleaning.d.ts +3 -4
- package/dist/user-message-cleaning.d.ts.map +1 -0
- package/dist/user-model.d.ts +17 -18
- package/dist/user-model.d.ts.map +1 -0
- package/dist/utility-learner.d.ts +10 -12
- package/dist/utility-learner.d.ts.map +1 -0
- package/dist/utility-runtime.d.ts +6 -27
- package/dist/utility-runtime.d.ts.map +1 -0
- package/dist/utility-telemetry.d.ts +12 -13
- package/dist/utility-telemetry.d.ts.map +1 -0
- package/dist/utils/category-dir.d.ts +45 -0
- package/dist/utils/category-dir.d.ts.map +1 -0
- package/dist/utils/errno.d.ts +4 -0
- package/dist/utils/errno.d.ts.map +1 -0
- package/dist/utils/iso-timestamp.d.ts +18 -0
- package/dist/utils/iso-timestamp.d.ts.map +1 -0
- package/dist/utils/path-containment.d.ts +50 -0
- package/dist/utils/path-containment.d.ts.map +1 -0
- package/dist/utils/path.d.ts +2 -3
- package/dist/utils/path.d.ts.map +1 -0
- package/dist/utils/script-aware-text.d.ts +27 -0
- package/dist/utils/script-aware-text.d.ts.map +1 -0
- package/dist/utils/serialize-mutations.d.ts +6 -7
- package/dist/utils/serialize-mutations.d.ts.map +1 -0
- package/dist/utils/yaml-scalar.d.ts +9 -0
- package/dist/utils/yaml-scalar.d.ts.map +1 -0
- package/dist/verified-recall.d.ts +5 -7
- package/dist/verified-recall.d.ts.map +1 -0
- package/dist/verified-recall.js +14 -14
- package/dist/version-utils.d.ts +3 -4
- package/dist/version-utils.d.ts.map +1 -0
- package/dist/wearables/auto-sync.d.ts +63 -0
- package/dist/wearables/auto-sync.d.ts.map +1 -0
- package/dist/wearables/cleanup.d.ts +39 -0
- package/dist/wearables/cleanup.d.ts.map +1 -0
- package/dist/wearables/cli.d.ts +24 -0
- package/dist/wearables/cli.d.ts.map +1 -0
- package/dist/wearables/config.d.ts +22 -0
- package/dist/wearables/config.d.ts.map +1 -0
- package/dist/wearables/corrections.d.ts +46 -0
- package/dist/wearables/corrections.d.ts.map +1 -0
- package/dist/wearables/day-store.d.ts +152 -0
- package/dist/wearables/day-store.d.ts.map +1 -0
- package/dist/wearables/errors.d.ts +19 -0
- package/dist/wearables/errors.d.ts.map +1 -0
- package/dist/wearables/fusion/cluster.d.ts +70 -0
- package/dist/wearables/fusion/cluster.d.ts.map +1 -0
- package/dist/wearables/fusion/fuse.d.ts +40 -0
- package/dist/wearables/fusion/fuse.d.ts.map +1 -0
- package/dist/wearables/fusion/index.d.ts +16 -0
- package/dist/wearables/fusion/index.d.ts.map +1 -0
- package/dist/wearables/fusion/reconcile.d.ts +52 -0
- package/dist/wearables/fusion/reconcile.d.ts.map +1 -0
- package/dist/wearables/fusion/reconstruct.d.ts +37 -0
- package/dist/wearables/fusion/reconstruct.d.ts.map +1 -0
- package/dist/wearables/fusion/store.d.ts +131 -0
- package/dist/wearables/fusion/store.d.ts.map +1 -0
- package/dist/wearables/fusion/types.d.ts +219 -0
- package/dist/wearables/fusion/types.d.ts.map +1 -0
- package/dist/wearables/http-glue.d.ts +12 -0
- package/dist/wearables/http-glue.d.ts.map +1 -0
- package/dist/wearables/index.d.ts +23 -0
- package/dist/wearables/index.d.ts.map +1 -0
- package/dist/wearables/mcp-tools.d.ts +12 -0
- package/dist/wearables/mcp-tools.d.ts.map +1 -0
- package/dist/wearables/memory-gen.d.ts +139 -0
- package/dist/wearables/memory-gen.d.ts.map +1 -0
- package/dist/wearables/pipeline.d.ts +81 -0
- package/dist/wearables/pipeline.d.ts.map +1 -0
- package/dist/wearables/redaction.d.ts +75 -0
- package/dist/wearables/redaction.d.ts.map +1 -0
- package/dist/wearables/registry.d.ts +47 -0
- package/dist/wearables/registry.d.ts.map +1 -0
- package/dist/wearables/service.d.ts +225 -0
- package/dist/wearables/service.d.ts.map +1 -0
- package/dist/wearables/speakers.d.ts +83 -0
- package/dist/wearables/speakers.d.ts.map +1 -0
- package/dist/wearables/sync-state.d.ts +52 -0
- package/dist/wearables/sync-state.d.ts.map +1 -0
- package/dist/wearables/text-language.d.ts +41 -0
- package/dist/wearables/text-language.d.ts.map +1 -0
- package/dist/wearables/trust.d.ts +93 -0
- package/dist/wearables/trust.d.ts.map +1 -0
- package/dist/wearables/types.d.ts +389 -0
- package/dist/wearables/types.d.ts.map +1 -0
- package/dist/whitespace.d.ts +7 -8
- package/dist/whitespace.d.ts.map +1 -0
- package/dist/who-knows-cli.d.ts +8 -155
- package/dist/who-knows-cli.d.ts.map +1 -0
- package/dist/who-knows-cli.js +16 -16
- package/dist/who-knows.d.ts +97 -145
- package/dist/who-knows.d.ts.map +1 -0
- package/dist/who-knows.js +15 -15
- package/dist/work/board.d.ts +8 -10
- package/dist/work/board.d.ts.map +1 -0
- package/dist/work/boundary.d.ts +5 -6
- package/dist/work/boundary.d.ts.map +1 -0
- package/dist/work/storage.d.ts +4 -6
- package/dist/work/storage.d.ts.map +1 -0
- package/dist/work/types.d.ts +11 -12
- package/dist/work/types.d.ts.map +1 -0
- package/dist/work-product-ledger.d.ts +12 -13
- package/dist/work-product-ledger.d.ts.map +1 -0
- package/dist/write-envelope.d.ts +23 -42
- package/dist/write-envelope.d.ts.map +1 -0
- package/dist/write-quarantine.d.ts +8 -9
- package/dist/write-quarantine.d.ts.map +1 -0
- package/dist/write-rate-limiter.d.ts +4 -4
- package/dist/write-rate-limiter.d.ts.map +1 -0
- package/package.json +2 -2
- package/scripts/build-with-heap.mjs +40 -19
- package/src/access-boundary.ts +1 -0
- package/src/access-errors.test.ts +182 -0
- package/src/access-errors.ts +252 -1
- package/src/access-http.ts +36 -103
- package/src/access-mcp-output-schemas.ts +1 -0
- package/src/access-mcp.ts +21 -2
- package/src/access-operations-batch.ts +8 -0
- package/src/access-recall-diagnostics.ts +236 -0
- package/src/access-service.ts +6 -0
- package/src/access-surface-catalog.ts +2 -0
- package/src/index.ts +11 -0
- package/src/mcp-read-only-tools.ts +1 -0
- package/src/orchestration/orchestrator-helpers.ts +7 -0
- package/src/orchestration/recall-internal.ts +1 -1
- package/src/recall-degradation-sink.test.ts +144 -0
- package/src/recall-why-cli.ts +59 -0
- package/src/recall-why-renderer.ts +142 -0
- package/src/recall-why-service.test.ts +306 -0
- package/src/recall-why-service.ts +218 -0
- package/src/recall-why.test.ts +511 -0
- package/src/recall-why.ts +568 -0
- package/src/types.ts +1 -0
- package/dist/access-namespace-preflight-U9RAdxqZ.d.ts +0 -146
- package/dist/access-service-H-qEdnSs.d.ts +0 -4700
- package/dist/capsule-crypto-YO5QJ6L3.js +0 -18
- package/dist/catalog-BuMyYPUn.d.ts +0 -473
- package/dist/chunk-27MKMTBY.js +0 -342
- package/dist/chunk-2HJKAVAS.js +0 -216
- package/dist/chunk-2QZJ4P27.js +0 -203
- package/dist/chunk-2SIKTXWX.js +0 -502
- package/dist/chunk-2Z24E5W2.js +0 -22
- package/dist/chunk-2Z24E5W2.js.map +0 -1
- package/dist/chunk-3R23DDD3.js +0 -9782
- package/dist/chunk-3S6URXEH.js +0 -63
- package/dist/chunk-43IQRLEF.js +0 -256
- package/dist/chunk-4UVJ6EIT.js +0 -22
- package/dist/chunk-4UVJ6EIT.js.map +0 -1
- package/dist/chunk-5FAGCOZD.js +0 -761
- package/dist/chunk-75YZ5VAI.js +0 -140
- package/dist/chunk-7IRZK6MM.js +0 -256
- package/dist/chunk-7QVYVSEH.js +0 -285
- package/dist/chunk-7RGX7BMF.js +0 -103
- package/dist/chunk-7RKAE6Y4.js +0 -727
- package/dist/chunk-AH44WTLJ.js +0 -415
- package/dist/chunk-AHVJ6GLL.js +0 -95
- package/dist/chunk-AIVRD66I.js +0 -511
- package/dist/chunk-AQ55YKEV.js +0 -29
- package/dist/chunk-AQWGCHIV.js +0 -263
- package/dist/chunk-ARRKSBQU.js +0 -72
- package/dist/chunk-AYHNTYVG.js +0 -43
- package/dist/chunk-BSCNBIF4.js +0 -24
- package/dist/chunk-BXLOS5AJ.js +0 -112
- package/dist/chunk-BXOPUJ3W.js +0 -801
- package/dist/chunk-CEO4DONG.js +0 -28
- package/dist/chunk-CVILPI77.js +0 -432
- package/dist/chunk-D2N3PMAE.js +0 -51
- package/dist/chunk-D7VT2LED.js +0 -253
- package/dist/chunk-DAOMWGO2.js +0 -65
- package/dist/chunk-DGS34QSY.js +0 -141
- package/dist/chunk-DI52XAKG.js +0 -223
- package/dist/chunk-DQEMWVMT.js +0 -249
- package/dist/chunk-DZP2XMZC.js +0 -1084
- package/dist/chunk-EVQ33D3N.js +0 -731
- package/dist/chunk-FPB5LQWW.js +0 -71
- package/dist/chunk-FPB5LQWW.js.map +0 -1
- package/dist/chunk-FROKVQQY.js +0 -3997
- package/dist/chunk-FROKVQQY.js.map +0 -1
- package/dist/chunk-G7S37WD4.js +0 -801
- package/dist/chunk-GRDRVYXJ.js +0 -1917
- package/dist/chunk-H6WOFMOV.js +0 -346
- package/dist/chunk-HMDYSGY6.js +0 -54
- package/dist/chunk-HNHIHXSD.js +0 -879
- package/dist/chunk-HWLIMQE2.js +0 -165
- package/dist/chunk-IWO6QXWJ.js +0 -224
- package/dist/chunk-IYNCJKBM.js +0 -3602
- package/dist/chunk-IYNCJKBM.js.map +0 -1
- package/dist/chunk-J54B5DGD.js +0 -1530
- package/dist/chunk-JMZQS6OS.js +0 -81
- package/dist/chunk-K4KE5MYE.js +0 -648
- package/dist/chunk-K4KE5MYE.js.map +0 -1
- package/dist/chunk-KH2D26LQ.js +0 -2440
- package/dist/chunk-KIGC55FQ.js +0 -5505
- package/dist/chunk-KQVBR7BC.js +0 -1286
- package/dist/chunk-L63GFNKL.js +0 -403
- package/dist/chunk-LIAKZGOY.js +0 -25
- package/dist/chunk-LVFI5LG7.js +0 -576
- package/dist/chunk-MTWD4KMM.js +0 -223
- package/dist/chunk-MWVYHNSU.js +0 -623
- package/dist/chunk-MZWSOLMT.js +0 -189
- package/dist/chunk-NNEWBRUL.js +0 -271
- package/dist/chunk-NPX6WMFJ.js +0 -1686
- package/dist/chunk-O7OVWKT4.js +0 -768
- package/dist/chunk-PLJ2MQFT.js +0 -182
- package/dist/chunk-Q4AUIFUA.js +0 -111
- package/dist/chunk-QWQB7TOB.js +0 -11341
- package/dist/chunk-QZ4U67KO.js +0 -98
- package/dist/chunk-RMMVQQA6.js +0 -70
- package/dist/chunk-RSMNPYBM.js +0 -61
- package/dist/chunk-RUUJXAGT.js +0 -122
- package/dist/chunk-S45INSV3.js +0 -389
- package/dist/chunk-SCXURCVT.js +0 -218
- package/dist/chunk-SGUDMW2K.js +0 -3400
- package/dist/chunk-SLGD36MM.js +0 -53
- package/dist/chunk-SMBWBEE7.js +0 -73
- package/dist/chunk-SPFNGHHP.js +0 -115
- package/dist/chunk-SPWNCGSM.js +0 -77
- package/dist/chunk-SZ7IVZGD.js +0 -112
- package/dist/chunk-TJNDFNCU.js +0 -597
- package/dist/chunk-TJNDFNCU.js.map +0 -1
- package/dist/chunk-TQT4AOPO.js +0 -321
- package/dist/chunk-TTFJQ5B5.js +0 -43
- package/dist/chunk-U2SK45U3.js +0 -1476
- package/dist/chunk-UCH2RWFX.js +0 -216
- package/dist/chunk-UDJMJNBK.js +0 -549
- package/dist/chunk-UJBIWY5M.js +0 -212
- package/dist/chunk-ULQVG6G3.js +0 -275
- package/dist/chunk-VDX2J7OX.js +0 -264
- package/dist/chunk-VGO57TU7.js +0 -960
- package/dist/chunk-VUV472VH.js +0 -1008
- package/dist/chunk-VVX5PZFS.js +0 -297
- package/dist/chunk-WH7RINGG.js +0 -315
- package/dist/chunk-WUJD4CHZ.js +0 -137
- package/dist/chunk-X7WAM3IY.js +0 -30
- package/dist/chunk-XPFJSUOR.js +0 -921
- package/dist/chunk-XVZA6VXC.js +0 -160
- package/dist/chunk-XZRZJHBW.js +0 -31013
- package/dist/chunk-XZRZJHBW.js.map +0 -1
- package/dist/chunk-Y4G6LHJW.js +0 -35
- package/dist/chunk-Y7LZ5V7N.js +0 -202
- package/dist/chunk-YEIKOBOW.js +0 -628
- package/dist/chunk-YEIKOBOW.js.map +0 -1
- package/dist/chunk-YIIW2OH2.js +0 -566
- package/dist/chunk-ZBYVR5W4.js +0 -18504
- package/dist/chunk-ZBYVR5W4.js.map +0 -1
- package/dist/chunk-ZN7SMKAK.js +0 -210
- package/dist/chunk-ZP73EM2X.js +0 -74
- package/dist/chunk-ZXQPAYCS.js +0 -2453
- package/dist/cli-VGDSn2zY.d.ts +0 -1136
- package/dist/conflict-policy-DyJ2wd-h.d.ts +0 -4
- package/dist/connectors-cli-2iaQ5tX2.d.ts +0 -263
- package/dist/dependency-propagation-delivery-BrhPjAHQ.d.ts +0 -41
- package/dist/faiss-adapter-BHecI1fF.d.ts +0 -73
- package/dist/framework-CNDn2164.d.ts +0 -170
- package/dist/generic-recall-paths-C0J1Oxb7.d.ts +0 -23
- package/dist/graph-DRkl22KE.d.ts +0 -347
- package/dist/graph-edge-decay-MKIRZ762.js +0 -30
- package/dist/index-B735x-tK.d.ts +0 -284
- package/dist/local-llm-BkkEK9rn.d.ts +0 -247
- package/dist/maintenance-CLBIvVxg.d.ts +0 -749
- package/dist/orchestrator-iexgVLow.d.ts +0 -2701
- package/dist/pipeline-DvtDtyo9.d.ts +0 -32
- package/dist/public-http-P0cnHzYB.d.ts +0 -25
- package/dist/qmd-CBYBJ6HW.d.ts +0 -353
- package/dist/resolution-LXFQQ4AE.js +0 -36
- package/dist/scope-profiles-BN1Dgfha.d.ts +0 -30
- package/dist/semantic-BalR6EXU.d.ts +0 -87
- package/dist/semantic-consolidation-D--qe0eE.d.ts +0 -180
- package/dist/service-VealHeqO.d.ts +0 -846
- package/dist/storage-BhS9gUx3.d.ts +0 -166
- package/dist/storage-CMm-3aD3.d.ts +0 -2421
- package/dist/tagging-BjsNFKWz.d.ts +0 -240
- package/dist/types-B1VHaf2w.d.ts +0 -126
- package/dist/types-DJhqDJUV.d.ts +0 -50
- package/dist/types-Du6VdoAg.d.ts +0 -5482
- /package/dist/{capsule-crypto-YO5QJ6L3.js.map → access-recall-diagnostics.js.map} +0 -0
- /package/dist/{graph-edge-decay-MKIRZ762.js.map → capsule-crypto-7FJQINUR.js.map} +0 -0
- /package/dist/{chunk-KQVBR7BC.js.map → chunk-2CBWEIS4.js.map} +0 -0
- /package/dist/{chunk-JMZQS6OS.js.map → chunk-2JQZSQXI.js.map} +0 -0
- /package/dist/{chunk-BXLOS5AJ.js.map → chunk-2NLLXCJG.js.map} +0 -0
- /package/dist/{chunk-LIAKZGOY.js.map → chunk-2WMXZYMS.js.map} +0 -0
- /package/dist/{chunk-RSMNPYBM.js.map → chunk-34ZGBAGE.js.map} +0 -0
- /package/dist/{chunk-MWVYHNSU.js.map → chunk-36S7UHAW.js.map} +0 -0
- /package/dist/{chunk-G7S37WD4.js.map → chunk-3JLWSFTV.js.map} +0 -0
- /package/dist/{chunk-75YZ5VAI.js.map → chunk-3RZOLUZT.js.map} +0 -0
- /package/dist/{chunk-XVZA6VXC.js.map → chunk-3SL52JKD.js.map} +0 -0
- /package/dist/{chunk-2SIKTXWX.js.map → chunk-4QEZS7PK.js.map} +0 -0
- /package/dist/{chunk-Y4G6LHJW.js.map → chunk-5QRYGLZN.js.map} +0 -0
- /package/dist/{chunk-AQWGCHIV.js.map → chunk-5R3C5LEZ.js.map} +0 -0
- /package/dist/{chunk-SPWNCGSM.js.map → chunk-634UKELB.js.map} +0 -0
- /package/dist/{chunk-BXOPUJ3W.js.map → chunk-64JK4TL7.js.map} +0 -0
- /package/dist/{chunk-DGS34QSY.js.map → chunk-6E5GYDIE.js.map} +0 -0
- /package/dist/{chunk-D2N3PMAE.js.map → chunk-6ISP2EN2.js.map} +0 -0
- /package/dist/{chunk-UJBIWY5M.js.map → chunk-6RD7MSIO.js.map} +0 -0
- /package/dist/{chunk-RMMVQQA6.js.map → chunk-6UDLN4IA.js.map} +0 -0
- /package/dist/{chunk-7IRZK6MM.js.map → chunk-754XN6LX.js.map} +0 -0
- /package/dist/{chunk-43IQRLEF.js.map → chunk-7H2LEYYJ.js.map} +0 -0
- /package/dist/{chunk-7RGX7BMF.js.map → chunk-A7AISUJI.js.map} +0 -0
- /package/dist/{chunk-7RKAE6Y4.js.map → chunk-AULKCNZW.js.map} +0 -0
- /package/dist/{chunk-NPX6WMFJ.js.map → chunk-B7SSU55V.js.map} +0 -0
- /package/dist/{chunk-IWO6QXWJ.js.map → chunk-BICNRVEC.js.map} +0 -0
- /package/dist/{chunk-SLGD36MM.js.map → chunk-BJI2D4SU.js.map} +0 -0
- /package/dist/{chunk-CEO4DONG.js.map → chunk-BQB5ZMYO.js.map} +0 -0
- /package/dist/{chunk-WH7RINGG.js.map → chunk-C5CPYMLX.js.map} +0 -0
- /package/dist/{chunk-AHVJ6GLL.js.map → chunk-CS2JO77A.js.map} +0 -0
- /package/dist/{chunk-UDJMJNBK.js.map → chunk-DTABICJ3.js.map} +0 -0
- /package/dist/{chunk-CVILPI77.js.map → chunk-E6UNM67F.js.map} +0 -0
- /package/dist/{chunk-NNEWBRUL.js.map → chunk-ENUI3IO7.js.map} +0 -0
- /package/dist/{chunk-DZP2XMZC.js.map → chunk-FF2XYADH.js.map} +0 -0
- /package/dist/{chunk-S45INSV3.js.map → chunk-FF6N7BXC.js.map} +0 -0
- /package/dist/{chunk-2QZJ4P27.js.map → chunk-FSXD6Y4H.js.map} +0 -0
- /package/dist/{chunk-SGUDMW2K.js.map → chunk-GK6NOQE6.js.map} +0 -0
- /package/dist/{chunk-TTFJQ5B5.js.map → chunk-GRSFFLUY.js.map} +0 -0
- /package/dist/{chunk-5FAGCOZD.js.map → chunk-GWK7FEUL.js.map} +0 -0
- /package/dist/{chunk-SCXURCVT.js.map → chunk-GWQVMKUJ.js.map} +0 -0
- /package/dist/{chunk-3S6URXEH.js.map → chunk-HKHZWJ3E.js.map} +0 -0
- /package/dist/{chunk-PLJ2MQFT.js.map → chunk-IAZPYX6W.js.map} +0 -0
- /package/dist/{chunk-MZWSOLMT.js.map → chunk-IG747LRN.js.map} +0 -0
- /package/dist/{chunk-X7WAM3IY.js.map → chunk-IK63WA5A.js.map} +0 -0
- /package/dist/{chunk-BSCNBIF4.js.map → chunk-IUD6NLNM.js.map} +0 -0
- /package/dist/{chunk-3R23DDD3.js.map → chunk-JSJZ2NXS.js.map} +0 -0
- /package/dist/{chunk-YIIW2OH2.js.map → chunk-JUOJGZPV.js.map} +0 -0
- /package/dist/{chunk-VGO57TU7.js.map → chunk-KA4U5GQN.js.map} +0 -0
- /package/dist/{chunk-VDX2J7OX.js.map → chunk-KQAFEZQX.js.map} +0 -0
- /package/dist/{chunk-ARRKSBQU.js.map → chunk-L4WBADKG.js.map} +0 -0
- /package/dist/{chunk-ULQVG6G3.js.map → chunk-LAL4B37X.js.map} +0 -0
- /package/dist/{chunk-D7VT2LED.js.map → chunk-LELJRLPY.js.map} +0 -0
- /package/dist/{chunk-L63GFNKL.js.map → chunk-LMMQKZK3.js.map} +0 -0
- /package/dist/{chunk-ZP73EM2X.js.map → chunk-LQ23DMTT.js.map} +0 -0
- /package/dist/{chunk-7QVYVSEH.js.map → chunk-LV6ZB6CA.js.map} +0 -0
- /package/dist/{chunk-KIGC55FQ.js.map → chunk-M5IJP3YW.js.map} +0 -0
- /package/dist/{chunk-AH44WTLJ.js.map → chunk-MWZMVLXL.js.map} +0 -0
- /package/dist/{chunk-AQ55YKEV.js.map → chunk-N4VCHRLD.js.map} +0 -0
- /package/dist/{chunk-HNHIHXSD.js.map → chunk-NKXHCCLB.js.map} +0 -0
- /package/dist/{chunk-SZ7IVZGD.js.map → chunk-NVCWA4QC.js.map} +0 -0
- /package/dist/{chunk-RUUJXAGT.js.map → chunk-ONWVMYHX.js.map} +0 -0
- /package/dist/{chunk-HMDYSGY6.js.map → chunk-P6P35FY4.js.map} +0 -0
- /package/dist/{chunk-H6WOFMOV.js.map → chunk-P7M22CYB.js.map} +0 -0
- /package/dist/{chunk-Q4AUIFUA.js.map → chunk-QMWKENNK.js.map} +0 -0
- /package/dist/{chunk-J54B5DGD.js.map → chunk-QOPB6KE3.js.map} +0 -0
- /package/dist/{chunk-DI52XAKG.js.map → chunk-RBULO7DO.js.map} +0 -0
- /package/dist/{chunk-VUV472VH.js.map → chunk-RDESQOEE.js.map} +0 -0
- /package/dist/{chunk-SPFNGHHP.js.map → chunk-RMF763SX.js.map} +0 -0
- /package/dist/{chunk-TQT4AOPO.js.map → chunk-RN6ZCNM5.js.map} +0 -0
- /package/dist/{chunk-QWQB7TOB.js.map → chunk-S2OBXHMN.js.map} +0 -0
- /package/dist/{chunk-UCH2RWFX.js.map → chunk-S3JPD4N7.js.map} +0 -0
- /package/dist/{chunk-HWLIMQE2.js.map → chunk-SF6RFI5Z.js.map} +0 -0
- /package/dist/{chunk-ZXQPAYCS.js.map → chunk-SJV3AOZ2.js.map} +0 -0
- /package/dist/{chunk-Y7LZ5V7N.js.map → chunk-SLULR4GC.js.map} +0 -0
- /package/dist/{chunk-U2SK45U3.js.map → chunk-TFXXMTHV.js.map} +0 -0
- /package/dist/{chunk-2HJKAVAS.js.map → chunk-TYP7GYRI.js.map} +0 -0
- /package/dist/{chunk-KH2D26LQ.js.map → chunk-TYZK56OA.js.map} +0 -0
- /package/dist/{chunk-XPFJSUOR.js.map → chunk-VLDVNZQE.js.map} +0 -0
- /package/dist/{chunk-AIVRD66I.js.map → chunk-W6YK672C.js.map} +0 -0
- /package/dist/{chunk-LVFI5LG7.js.map → chunk-X2NFFBTO.js.map} +0 -0
- /package/dist/{chunk-GRDRVYXJ.js.map → chunk-X45KZOT2.js.map} +0 -0
- /package/dist/{chunk-DQEMWVMT.js.map → chunk-X7Y7WX73.js.map} +0 -0
- /package/dist/{chunk-AYHNTYVG.js.map → chunk-XIXM6G7I.js.map} +0 -0
- /package/dist/{chunk-ZN7SMKAK.js.map → chunk-XLXYARWC.js.map} +0 -0
- /package/dist/{chunk-MTWD4KMM.js.map → chunk-XVW52M6I.js.map} +0 -0
- /package/dist/{chunk-27MKMTBY.js.map → chunk-YHU5XUF4.js.map} +0 -0
- /package/dist/{chunk-SMBWBEE7.js.map → chunk-YRH3C2OJ.js.map} +0 -0
- /package/dist/{chunk-WUJD4CHZ.js.map → chunk-YXQE67A7.js.map} +0 -0
- /package/dist/{chunk-EVQ33D3N.js.map → chunk-ZHUVMSHI.js.map} +0 -0
- /package/dist/{chunk-VVX5PZFS.js.map → chunk-ZHXSOMYH.js.map} +0 -0
- /package/dist/{chunk-O7OVWKT4.js.map → chunk-ZIEZJMFW.js.map} +0 -0
- /package/dist/{chunk-QZ4U67KO.js.map → chunk-ZSEFGDCI.js.map} +0 -0
- /package/dist/{chunk-DAOMWGO2.js.map → chunk-ZX5N5D6M.js.map} +0 -0
- /package/dist/{resolution-LXFQQ4AE.js.map → graph-edge-decay-ROSUPDX3.js.map} +0 -0
|
@@ -1,2701 +0,0 @@
|
|
|
1
|
-
import { TierMigrationStatusStore, TierMigrationStatusSnapshot, TierMigrationCycleSummary, RecallHandleHistoryStore, LastRecallBudgetSummary, GraphRecallExpandedEntry, LastRecallStore, LastRecallSnapshot, DrainPendingImpressionsResult } from './recall-state.js';
|
|
2
|
-
import { BriefingFollowupGenerator } from './briefing.js';
|
|
3
|
-
import { SmartBuffer } from './buffer.js';
|
|
4
|
-
import { FaithfulnessGateCounters } from './extraction-faithfulness.js';
|
|
5
|
-
import { SearchBackend, SearchQueryOptions, SearchExecutionOptions } from './search/port.js';
|
|
6
|
-
import { S as StorageManager } from './storage-CMm-3aD3.js';
|
|
7
|
-
import { TranscriptManager } from './transcript.js';
|
|
8
|
-
import { HourlySummarizer } from './summarizer.js';
|
|
9
|
-
import { L as LocalLlmClient } from './local-llm-BkkEK9rn.js';
|
|
10
|
-
import { FallbackLlmClient } from './fallback-llm.js';
|
|
11
|
-
import { M as MaintenanceScheduler } from './maintenance-CLBIvVxg.js';
|
|
12
|
-
import { CompoundingEngine } from './compounding/engine.js';
|
|
13
|
-
import { P as PluginConfig, M as MemoryFile, an as MemoryActionEvent, Q as QmdSearchResult, R as RecallPlanMode, I as IdentityInjectionMode, bw as RecallSectionConfig, bp as MemoryLink, ac as ExtractionResult, k as BufferTurn, C as CodingContext, aC as MemoryIntent, p as SourceConnectorProvenance, m as MemoryFrontmatter, t as BehaviorLoopPolicyState, bx as BootstrapOptions, by as BootstrapResult, bz as ConsolidationObservation, aU as DaySummaryResult, af as ImportTurn } from './types-Du6VdoAg.js';
|
|
14
|
-
import { UtilityRuntimeValues } from './utility-runtime.js';
|
|
15
|
-
import { CompressionGuidelineCoordinator } from './orchestration/compression-guideline-coordinator.js';
|
|
16
|
-
import { S as SemanticConsolidationResult } from './semantic-consolidation-D--qe0eE.js';
|
|
17
|
-
import { EmbeddingFallback } from './embedding-fallback.js';
|
|
18
|
-
import { ExtractionEngine } from './extraction.js';
|
|
19
|
-
import { ObjectiveStateSearchResult } from './objective-state.js';
|
|
20
|
-
import { CausalTrajectorySearchResult } from './causal-trajectory.js';
|
|
21
|
-
import { TrustZoneSearchResult } from './trust-zones.js';
|
|
22
|
-
import { HarmonicRetrievalResult } from './harmonic-retrieval.js';
|
|
23
|
-
import { VerifiedEpisodeResult } from './verified-recall.js';
|
|
24
|
-
import { VerifiedSemanticRuleResult } from './semantic-rule-verifier.js';
|
|
25
|
-
import { WorkProductLedgerSearchResult } from './work-product-ledger.js';
|
|
26
|
-
import { TrustStageResultItem } from './trust-score-stage.js';
|
|
27
|
-
import { ContinuityIncidentRecord } from './types-continuity.js';
|
|
28
|
-
import { ConversationChunk } from './conversation-index/chunker.js';
|
|
29
|
-
import { ConversationIndexBackend, ConversationIndexBackendInspection } from './conversation-index/backend.js';
|
|
30
|
-
import { C as ConversationSearchResult } from './faiss-adapter-BHecI1fF.js';
|
|
31
|
-
import { CapabilitySet, GraphConstructionCapabilitySet, MemoryLifecycleCapabilitySet } from './capabilities.js';
|
|
32
|
-
import { IncludedMemory } from './included-memories.js';
|
|
33
|
-
import { D as DependencyPropagationDeliveryPort } from './dependency-propagation-delivery-BrhPjAHQ.js';
|
|
34
|
-
import { BoxBuilder } from './boxes.js';
|
|
35
|
-
import { NamespaceStorageRouter } from './namespaces/storage.js';
|
|
36
|
-
import { ThreadingManager } from './threading.js';
|
|
37
|
-
import { R as ResolvedScopeProfilePlan } from './scope-profiles-BN1Dgfha.js';
|
|
38
|
-
import { c as GraphIndex } from './graph-DRkl22KE.js';
|
|
39
|
-
import { RecallXrayServedBy, RecallXraySnapshot } from './recall-xray.js';
|
|
40
|
-
import { RecallContextComposition } from './recall-context-composition.js';
|
|
41
|
-
import './generic-recall-paths-C0J1Oxb7.js';
|
|
42
|
-
import { LiveConnectorsRunSummary } from './live-connectors-runner.js';
|
|
43
|
-
import { ModelRegistry } from './model-registry.js';
|
|
44
|
-
import { RelevanceStore } from './relevance.js';
|
|
45
|
-
import { NegativeExampleStore } from './negative.js';
|
|
46
|
-
import { SessionObserverState } from './session-observer-state.js';
|
|
47
|
-
import { S as SemanticDedupHit } from './semantic-BalR6EXU.js';
|
|
48
|
-
import { ReplayTurn } from './replay/types.js';
|
|
49
|
-
import { W as WearablesService, M as MeetingsService } from './service-VealHeqO.js';
|
|
50
|
-
import { LcmEngine } from './lcm/engine.js';
|
|
51
|
-
import { N as NamespaceKind, a as NamespaceCatalog } from './catalog-BuMyYPUn.js';
|
|
52
|
-
import { NamespaceSearchHealth } from './namespaces/search.js';
|
|
53
|
-
import { SharedContextManager } from './shared-context/manager.js';
|
|
54
|
-
import { RuntimePolicyValues } from './policy-runtime.js';
|
|
55
|
-
import { ProfilingCollector } from './profiling.js';
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Pattern-reinforcement maintenance job (issue #687 PR 2/4).
|
|
59
|
-
*
|
|
60
|
-
* Reads all memories via `StorageManager.readAllMemories()`, clusters
|
|
61
|
-
* non-procedural memories by normalized content, and reinforces the
|
|
62
|
-
* most-recent member of each large-enough cluster:
|
|
63
|
-
*
|
|
64
|
-
* 1. Cluster across active AND already-superseded members. This is
|
|
65
|
-
* load-bearing: after the first reinforcement pass, older
|
|
66
|
-
* duplicates are marked `superseded`, so on the next pass the
|
|
67
|
-
* "active count" alone would be just `canonical + N-new`. By
|
|
68
|
-
* keeping superseded members in the cluster for the threshold
|
|
69
|
-
* check, an established canonical (count >= minCount) keeps
|
|
70
|
-
* growing as soon as a single new duplicate arrives.
|
|
71
|
-
* `forgotten` / `archived` / `quarantined` / `pending_review` /
|
|
72
|
-
* `rejected` stay excluded per CLAUDE.md rule 53.
|
|
73
|
-
* 2. Pick the most-recent ACTIVE member of each cluster as the
|
|
74
|
-
* canonical. Stamp it with `reinforcement_count` (total cluster
|
|
75
|
-
* size including superseded members) and `last_reinforced_at`.
|
|
76
|
-
* Record provenance: `derived_from = [...source-ids...]` and
|
|
77
|
-
* `derived_via = "pattern-reinforcement"`.
|
|
78
|
-
* 3. Mark any still-active duplicates with `status: "superseded"`
|
|
79
|
-
* and point `supersededBy` at the canonical id.
|
|
80
|
-
*
|
|
81
|
-
* The job is idempotent: re-running on the same corpus does not
|
|
82
|
-
* double-bump `reinforcement_count` (the bump-only-on-change guard
|
|
83
|
-
* compares cluster size to the canonical's previous counter), and
|
|
84
|
-
* already-superseded duplicates simply pass through.
|
|
85
|
-
*
|
|
86
|
-
* Recall integration (boost from `reinforcement_count`) and the CLI
|
|
87
|
-
* surface ship in PR 3/4 and PR 4/4 respectively — this PR only wires
|
|
88
|
-
* the maintenance job and storage plumbing.
|
|
89
|
-
*/
|
|
90
|
-
|
|
91
|
-
interface PatternReinforcementClusterResult {
|
|
92
|
-
/** Memory id of the canonical (most-recent) member. */
|
|
93
|
-
canonicalId: string;
|
|
94
|
-
/** Cluster size at run time (mirrors `reinforcement_count`). */
|
|
95
|
-
count: number;
|
|
96
|
-
/** IDs of the source memories that contributed (canonical + duplicates). */
|
|
97
|
-
sourceIds: readonly string[];
|
|
98
|
-
/** IDs of the older duplicates that were marked superseded. */
|
|
99
|
-
supersededIds: readonly string[];
|
|
100
|
-
/**
|
|
101
|
-
* `true` when the canonical's `reinforcement_count` actually
|
|
102
|
-
* changed during this run. False when the job converged
|
|
103
|
-
* idempotently (same cluster size as the previous run).
|
|
104
|
-
*/
|
|
105
|
-
reinforcementBumped: boolean;
|
|
106
|
-
}
|
|
107
|
-
interface PatternReinforcementResult {
|
|
108
|
-
/** Number of clusters that met the `minCount` threshold. */
|
|
109
|
-
clustersFound: number;
|
|
110
|
-
/** Number of canonical memories whose reinforcement counter changed. */
|
|
111
|
-
canonicalsUpdated: number;
|
|
112
|
-
/** Total duplicate memories newly marked `status: "superseded"`. */
|
|
113
|
-
duplicatesSuperseded: number;
|
|
114
|
-
/** Per-cluster details for tests / observability. */
|
|
115
|
-
clusters: PatternReinforcementClusterResult[];
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* Conversation index coordinator — extracted from the orchestrator (issue #1526).
|
|
120
|
-
*
|
|
121
|
-
* Owns the conversation-index subsystem: semantic recall over past
|
|
122
|
-
* conversations, plus the build / update / rebuild / inspect / health
|
|
123
|
-
* lifecycle of the on-disk chunk store and its pluggable search backend
|
|
124
|
-
* (qmd or faiss). Behavior-preserving move from orchestrator.ts — no logic
|
|
125
|
-
* changes; the orchestrator constructs one instance and keeps thin
|
|
126
|
-
* delegating methods so existing call sites and tests that exercise the
|
|
127
|
-
* private API continue to work.
|
|
128
|
-
*
|
|
129
|
-
* The backend and transcript are read through getters (not captured at
|
|
130
|
-
* construction) so that post-construction reassignment of the orchestrator's
|
|
131
|
-
* live fields — exercised by the conversation-index integration tests and by
|
|
132
|
-
* backend swap-in at deferred-init time — is honored. This mirrors the
|
|
133
|
-
* TierMigrationCoordinator accessor pattern.
|
|
134
|
-
*/
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* Coordinator for the conversation-index subsystem.
|
|
138
|
-
*
|
|
139
|
-
* Holds the per-session last-update timestamps (previously an orchestrator
|
|
140
|
-
* field) and delegates chunk building / persistence / embedding to the
|
|
141
|
-
* configured backend.
|
|
142
|
-
*/
|
|
143
|
-
declare class ConversationIndexCoordinator {
|
|
144
|
-
private readonly config;
|
|
145
|
-
private readonly originAuthorityEnabled;
|
|
146
|
-
private readonly getTranscript;
|
|
147
|
-
private readonly getBackend;
|
|
148
|
-
private readonly indexDir;
|
|
149
|
-
private readonly lastUpdateAtMs;
|
|
150
|
-
constructor(options: {
|
|
151
|
-
config: PluginConfig;
|
|
152
|
-
getTranscript: () => TranscriptManager;
|
|
153
|
-
getBackend: () => ConversationIndexBackend | undefined;
|
|
154
|
-
indexDir: string;
|
|
155
|
-
});
|
|
156
|
-
/** Semantic recall over past-conversation chunks (fail-open: empty on miss). */
|
|
157
|
-
search(retrievalQuery: string, topK: number): Promise<ConversationSearchResult[]>;
|
|
158
|
-
/** Render conversation-recall search hits as a budgeted markdown section. */
|
|
159
|
-
formatRecallSection(results: ConversationSearchResult[], maxChars: number): string | null;
|
|
160
|
-
/** Recursively count `.md` chunk documents under a directory. */
|
|
161
|
-
countChunkDocs(dir: string): Promise<number>;
|
|
162
|
-
/** Read recent transcript entries and chunk them for indexing. */
|
|
163
|
-
buildChunks(sessionKey?: string, hours?: number): Promise<ConversationChunk[]>;
|
|
164
|
-
getHealth(): Promise<{
|
|
165
|
-
enabled: boolean;
|
|
166
|
-
backend: "qmd" | "faiss";
|
|
167
|
-
status: "ok" | "degraded" | "disabled";
|
|
168
|
-
chunkDocCount: number;
|
|
169
|
-
lastUpdateAt: string | null;
|
|
170
|
-
qmdAvailable?: boolean;
|
|
171
|
-
faiss?: {
|
|
172
|
-
ok: boolean;
|
|
173
|
-
status: "ok" | "degraded" | "error";
|
|
174
|
-
indexPath: string;
|
|
175
|
-
message?: string;
|
|
176
|
-
manifest?: {
|
|
177
|
-
version: number;
|
|
178
|
-
modelId: string;
|
|
179
|
-
normalizedModelId: string;
|
|
180
|
-
dimension: number;
|
|
181
|
-
chunkCount: number;
|
|
182
|
-
updatedAt: string;
|
|
183
|
-
lastSuccessfulRebuildAt: string;
|
|
184
|
-
};
|
|
185
|
-
};
|
|
186
|
-
}>;
|
|
187
|
-
inspect(): Promise<ConversationIndexBackendInspection & {
|
|
188
|
-
enabled: boolean;
|
|
189
|
-
chunkDocCount: number;
|
|
190
|
-
lastUpdateAt: string | null;
|
|
191
|
-
}>;
|
|
192
|
-
update(sessionKey: string, hours?: number, opts?: {
|
|
193
|
-
embed?: boolean;
|
|
194
|
-
enforceMinInterval?: boolean;
|
|
195
|
-
}): Promise<{
|
|
196
|
-
chunks: number;
|
|
197
|
-
skipped: boolean;
|
|
198
|
-
reason?: string;
|
|
199
|
-
retryAfterMs?: number;
|
|
200
|
-
embedded?: boolean;
|
|
201
|
-
}>;
|
|
202
|
-
rebuild(sessionKey?: string, hours?: number, opts?: {
|
|
203
|
-
embed?: boolean;
|
|
204
|
-
}): Promise<{
|
|
205
|
-
chunks: number;
|
|
206
|
-
skipped: boolean;
|
|
207
|
-
reason?: string;
|
|
208
|
-
embedded?: boolean;
|
|
209
|
-
rebuilt?: boolean;
|
|
210
|
-
}>;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
/**
|
|
214
|
-
* Tier migration coordinator — extracted from the orchestrator (issue #1526).
|
|
215
|
-
*
|
|
216
|
-
* Owns the hot/cold tier-migration lifecycle for a single cycle:
|
|
217
|
-
* - gating (config flags, in-flight guard, min-interval throttle)
|
|
218
|
-
* - budget selection (compounding override or config default)
|
|
219
|
-
* - candidate scanning across hot + cold storage
|
|
220
|
-
* - promotion/demotion execution via TierMigrationExecutor
|
|
221
|
-
* - status recording through TierMigrationStatusStore
|
|
222
|
-
*
|
|
223
|
-
* The orchestrator constructs one instance and exposes it as the public
|
|
224
|
-
* `tierMigrationCoordinator` field. CLI commands and maintenance paths call
|
|
225
|
-
* `getStatus`/`runCycle` directly; the orchestrator keeps a private
|
|
226
|
-
* `runTierMigrationCycle` wrapper for the extraction-run dependency.
|
|
227
|
-
* Storage is passed per-call so extraction (which writes to a namespace-
|
|
228
|
-
* scoped storage) and maintenance/manual (which use the default storage)
|
|
229
|
-
* share one coordinator.
|
|
230
|
-
*/
|
|
231
|
-
|
|
232
|
-
/** Dependencies injected by the orchestrator. All stable references or live
|
|
233
|
-
* accessors (the orchestrator reassigns `qmd` to NoopSearchBackend and
|
|
234
|
-
* `utilityRuntimeValues` after async init, so those arrive as getters). */
|
|
235
|
-
interface TierMigrationCoordinatorDeps {
|
|
236
|
-
config: PluginConfig;
|
|
237
|
-
/** Live accessor — the orchestrator reassigns this.qmd to NoopSearchBackend
|
|
238
|
-
* after construction when the collection is missing. */
|
|
239
|
-
getQmd: () => SearchBackend;
|
|
240
|
-
tierMigrationStatus: TierMigrationStatusStore;
|
|
241
|
-
/** Live accessor — loaded asynchronously during init, null before that. */
|
|
242
|
-
getUtilityRuntimeValues: () => UtilityRuntimeValues | null;
|
|
243
|
-
/** Live accessor — undefined when compounding is disabled. */
|
|
244
|
-
getCompounding: () => CompoundingEngine | undefined;
|
|
245
|
-
/** Constructs the cold-tier StorageManager for a given parent memory dir.
|
|
246
|
-
* Injected so this module owns no direct storage.ts import (#1533). */
|
|
247
|
-
createColdStorage: (parentDir: string) => StorageManager;
|
|
248
|
-
}
|
|
249
|
-
/**
|
|
250
|
-
* Coordinates a single tier-migration cycle. Owns the in-flight guard and
|
|
251
|
-
* last-run timestamp that previously lived as private orchestrator fields.
|
|
252
|
-
*/
|
|
253
|
-
declare class TierMigrationCoordinator {
|
|
254
|
-
private readonly deps;
|
|
255
|
-
private inFlight;
|
|
256
|
-
private lastRunAtMs;
|
|
257
|
-
constructor(deps: TierMigrationCoordinatorDeps);
|
|
258
|
-
/** Whether a migration cycle is currently executing (diagnostics). */
|
|
259
|
-
isInFlight(): boolean;
|
|
260
|
-
/** Latest status snapshot (delegates to the status store). */
|
|
261
|
-
getStatus(): TierMigrationStatusSnapshot;
|
|
262
|
-
/**
|
|
263
|
-
* Run one tier-migration cycle. Behavior-preserving move of the
|
|
264
|
-
* orchestrator's former `runTierMigrationCycle`.
|
|
265
|
-
*/
|
|
266
|
-
runCycle(storage: StorageManager, trigger: "extraction" | "maintenance" | "manual", options?: {
|
|
267
|
-
dryRun?: boolean;
|
|
268
|
-
limitOverride?: number;
|
|
269
|
-
force?: boolean;
|
|
270
|
-
}): Promise<TierMigrationCycleSummary>;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
/**
|
|
274
|
-
* Extraction queue coordinator — extracted from the orchestrator (issue #1526).
|
|
275
|
-
*
|
|
276
|
-
* Owns the background serial queue that drains extraction tasks one at a
|
|
277
|
-
* time to avoid races between concurrent flush/heartbeat/bulk-import
|
|
278
|
-
* triggers:
|
|
279
|
-
* - queue state (`extractionQueue` + `queueProcessing`)
|
|
280
|
-
* - the scheduling trigger (start the drain when the first task lands and
|
|
281
|
-
* the processor is idle)
|
|
282
|
-
* - the serial drain loop itself (`processQueue`)
|
|
283
|
-
* - failure classification (`logExtractionQueueFailure`) — issue #549:
|
|
284
|
-
* AbortError from session transitions logs at debug, real failures at
|
|
285
|
-
* error
|
|
286
|
-
* - the idle wait (`waitForIdle`) used by bootstrap and tests
|
|
287
|
-
*
|
|
288
|
-
* Does NOT own the WHAT — `runExtraction`, the dedupe fingerprint check,
|
|
289
|
-
* the deadline timer, and the buffer-clear policy remain on the
|
|
290
|
-
* orchestrator (they need the full extraction dependency surface). The
|
|
291
|
-
* orchestrator builds each task closure and hands it to `enqueue`; the
|
|
292
|
-
* coordinator owns only the queue mechanics.
|
|
293
|
-
*
|
|
294
|
-
* Behavior-preserving move from orchestrator.ts. No logic changes — the
|
|
295
|
-
* orchestrator keeps a thin delegating `waitForExtractionIdle` and the
|
|
296
|
-
* `queueBufferedExtraction` builder delegates push+scheduling here.
|
|
297
|
-
*/
|
|
298
|
-
/**
|
|
299
|
-
* Coordinates the background serial extraction queue. Owns the in-flight
|
|
300
|
-
* guard + queue array that previously lived as private orchestrator fields.
|
|
301
|
-
*/
|
|
302
|
-
declare class ExtractionQueueCoordinator {
|
|
303
|
-
/**
|
|
304
|
-
* Background serial queue for extractions (agent_end optimization).
|
|
305
|
-
* Queue stores tasks that resolve when extraction should run.
|
|
306
|
-
*/
|
|
307
|
-
private readonly queue;
|
|
308
|
-
/** Whether the serial drain loop is currently running. */
|
|
309
|
-
private processing;
|
|
310
|
-
private accepting;
|
|
311
|
-
/** Current queue depth (idle-wait + test seam). */
|
|
312
|
-
get length(): number;
|
|
313
|
-
/** Whether the serial drain loop is currently running (idle-wait + test seam). */
|
|
314
|
-
get isProcessing(): boolean;
|
|
315
|
-
/**
|
|
316
|
-
* Enqueue a task and start the serial processor if it is idle. This is
|
|
317
|
-
* the production entry point — the orchestrator's `queueBufferedExtraction`
|
|
318
|
-
* builds each task closure and hands it here.
|
|
319
|
-
*/
|
|
320
|
-
enqueue(task: () => Promise<void>): boolean;
|
|
321
|
-
/** Stop new producers from entering the queue. */
|
|
322
|
-
stopAccepting(): void;
|
|
323
|
-
/** Resume producer acceptance after an orchestrator re-initializes. */
|
|
324
|
-
resumeAccepting(): void;
|
|
325
|
-
/** Stop new producers and wait for all accepted work to finish. */
|
|
326
|
-
pauseAndDrain(timeoutMs?: number): Promise<boolean>;
|
|
327
|
-
/**
|
|
328
|
-
* Background serial queue processor.
|
|
329
|
-
* Processes extractions one at a time to avoid race conditions.
|
|
330
|
-
* Called automatically when items are queued via `enqueue`; also exposed
|
|
331
|
-
* for the characterization tests that push raw tasks and assert drain
|
|
332
|
-
* semantics directly.
|
|
333
|
-
*/
|
|
334
|
-
processQueue(): Promise<void>;
|
|
335
|
-
/**
|
|
336
|
-
* Classify + log a failure from either the per-task catch inside
|
|
337
|
-
* `processQueue()` or the outer `processQueue().catch(...)` in
|
|
338
|
-
* `enqueue()`. Issue #549: `throwIfRecallAborted`
|
|
339
|
-
* (used throughout `runExtraction`) raises an Error whose `name` is
|
|
340
|
-
* `"AbortError"`. That path fires when `before_reset` aborts a
|
|
341
|
-
* queued task to avoid duplicate extraction — it is intentional
|
|
342
|
-
* cancellation, not a failure. Downgrading the log to debug
|
|
343
|
-
* prevents spurious `error`-level lines that routinely appear
|
|
344
|
-
* right next to a successful `persisted: N facts, M entities` log
|
|
345
|
-
* and that confuse operators into thinking extraction is broken.
|
|
346
|
-
* Genuine extraction failures (network, parse, I/O) still log at
|
|
347
|
-
* `error`.
|
|
348
|
-
*
|
|
349
|
-
* Source differentiates the two call sites so the log message
|
|
350
|
-
* names the right layer (`task` vs `processor`).
|
|
351
|
-
*/
|
|
352
|
-
logExtractionQueueFailure(err: unknown, source: "task" | "processor"): void;
|
|
353
|
-
/**
|
|
354
|
-
* Wait until the extraction queue is fully drained (no tasks queued, no
|
|
355
|
-
* drain in flight) or `timeoutMs` elapses. Used by bootstrap (after a
|
|
356
|
-
* dry-run import) and by tests that need to assert extraction settled.
|
|
357
|
-
* Returns false on timeout, true once idle.
|
|
358
|
-
*/
|
|
359
|
-
waitForIdle(timeoutMs?: number): Promise<boolean>;
|
|
360
|
-
/**
|
|
361
|
-
* Push a raw task WITHOUT auto-starting the processor, matching the
|
|
362
|
-
* pre-extraction `this.extractionQueue.push(...)` used by the
|
|
363
|
-
* characterization tests that drive the drain manually via `processQueue`.
|
|
364
|
-
*/
|
|
365
|
-
pushRaw(task: () => Promise<void>): void;
|
|
366
|
-
/** Remove + return the front task (test seam for the flush deadline tests). */
|
|
367
|
-
shift(): (() => Promise<void>) | undefined;
|
|
368
|
-
/**
|
|
369
|
-
* Force the processor-busy flag so `enqueue` does not auto-start the
|
|
370
|
-
* drain — used by the flush deadline test to simulate a busy queue and
|
|
371
|
-
* assert a queued task's deadline expires while it waits.
|
|
372
|
-
*/
|
|
373
|
-
setProcessingForTest(value: boolean): void;
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
/**
|
|
377
|
-
* Semantic-consolidation coordinator — extracted from the orchestrator
|
|
378
|
-
* (issue #1526, seam 5).
|
|
379
|
-
*
|
|
380
|
-
* Owns the semantic-consolidation lifecycle: discovering clusters of
|
|
381
|
-
* similar memories, synthesizing a canonical memory per cluster via the
|
|
382
|
-
* LLM (operator-aware or legacy), archiving the superseded sources, and
|
|
383
|
-
* firing post-consolidation hooks (Codex materialize, peer-profile
|
|
384
|
-
* reasoner).
|
|
385
|
-
*
|
|
386
|
-
* The orchestrator constructs one instance and delegates the internal
|
|
387
|
-
* entrypoint (`runSemanticConsolidation`) to it. The public wrappers
|
|
388
|
-
* (`runSemanticConsolidationNow`, `runSemanticConsolidationFanout`)
|
|
389
|
-
* remain on the orchestrator as thin pass-throughs. Storage is the
|
|
390
|
-
* orchestrator's stable `this.storage` (or a per-namespace override
|
|
391
|
-
* passed via options); the fast-tier LLM, content-hash removal, and
|
|
392
|
-
* index save arrive as callbacks so the orchestrator keeps ownership of
|
|
393
|
-
* gateway routing and cross-subsystem persistence.
|
|
394
|
-
*
|
|
395
|
-
* Behavior-preserving move from orchestrator.ts. No logic changes — the
|
|
396
|
-
* orchestrator keeps a thin delegating method so existing call sites
|
|
397
|
-
* and tests that exercise the public API continue to work.
|
|
398
|
-
*/
|
|
399
|
-
|
|
400
|
-
/** Dependencies injected by the orchestrator. All stable references or
|
|
401
|
-
* live accessors. */
|
|
402
|
-
interface SemanticConsolidationCoordinatorDeps {
|
|
403
|
-
config: PluginConfig;
|
|
404
|
-
/** Live accessor: the orchestrator's storage manager (stable post-ctor). */
|
|
405
|
-
getStorage: () => StorageManager;
|
|
406
|
-
/** Live accessor for the fast-tier local LLM client (falls back to main
|
|
407
|
-
* local LLM when localLlmFastEnabled is false — orchestrator ctor handles
|
|
408
|
-
* this). Injected as an accessor so tests that overwrite orchestrator.fastLlm
|
|
409
|
-
* after construction still take effect. */
|
|
410
|
-
getFastLlm: () => LocalLlmClient;
|
|
411
|
-
/** The embedding-fallback manager used for index cleanup on archival. */
|
|
412
|
-
embeddingFallback: EmbeddingFallback;
|
|
413
|
-
/** Remove a memory's content-hash entry from the storage-scoped index.
|
|
414
|
-
* Delegated to the orchestrator which owns the per-storage index map. */
|
|
415
|
-
removeContentHashForMemory: (targetStorage: StorageManager, memory: MemoryFile, context: string) => Promise<void>;
|
|
416
|
-
/** Persist all dirty content-hash indexes to disk. */
|
|
417
|
-
saveContentHashIndexes: () => Promise<void>;
|
|
418
|
-
}
|
|
419
|
-
/**
|
|
420
|
-
* Coordinates semantic consolidation. Holds no mutable state of its own —
|
|
421
|
-
* all persistence flows through the injected storage managers and
|
|
422
|
-
* callbacks.
|
|
423
|
-
*/
|
|
424
|
-
declare class SemanticConsolidationCoordinator {
|
|
425
|
-
private readonly deps;
|
|
426
|
-
constructor(deps: SemanticConsolidationCoordinatorDeps);
|
|
427
|
-
private get config();
|
|
428
|
-
runSemanticConsolidation(options?: {
|
|
429
|
-
dryRun?: boolean;
|
|
430
|
-
thresholdOverride?: number;
|
|
431
|
-
force?: boolean;
|
|
432
|
-
storage?: StorageManager;
|
|
433
|
-
}): Promise<SemanticConsolidationResult>;
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
/**
|
|
437
|
-
* Lifecycle-policy coordinator — extracted from the orchestrator
|
|
438
|
-
* (issue #1526, seam 6).
|
|
439
|
-
*
|
|
440
|
-
* Owns the deterministic memory-lifecycle pipeline: heat/decay scoring
|
|
441
|
-
* (`runLifecyclePolicyPass`), fact archival (`runFactArchival`),
|
|
442
|
-
* summarization (`runSummarization`), and topic extraction
|
|
443
|
-
* (`runTopicExtraction`). Also owns the action-outcome prior builder
|
|
444
|
-
* (`buildLifecycleActionPriors` / `actionOutcomePriorDelta`) that feeds
|
|
445
|
-
* the lifecycle transition decider.
|
|
446
|
-
*
|
|
447
|
-
* The orchestrator constructs one instance and delegates the internal
|
|
448
|
-
* entrypoints to it. The public wrapper (`runLifecyclePolicyNow`)
|
|
449
|
-
* remains on the orchestrator as a thin pass-through. Storage is the
|
|
450
|
-
* orchestrator's stable `this.storage` (or a per-namespace override
|
|
451
|
-
* passed via options); the extraction engine, embedding-fallback, and
|
|
452
|
-
* content-hash callbacks arrive as deps so the orchestrator keeps
|
|
453
|
-
* ownership of gateway routing and cross-subsystem persistence.
|
|
454
|
-
*
|
|
455
|
-
* Behavior-preserving move from orchestrator.ts. No logic changes — the
|
|
456
|
-
* orchestrator keeps thin delegating methods so existing call sites
|
|
457
|
-
* and tests that exercise the public API continue to work.
|
|
458
|
-
*/
|
|
459
|
-
|
|
460
|
-
/** Dependencies injected by the orchestrator. All stable references or
|
|
461
|
-
* live accessors. */
|
|
462
|
-
interface LifecyclePolicyCoordinatorDeps {
|
|
463
|
-
config: PluginConfig;
|
|
464
|
-
/** Live accessor: the orchestrator's storage manager (stable post-ctor). */
|
|
465
|
-
getStorage: () => StorageManager;
|
|
466
|
-
/** The extraction engine — used for summarization. */
|
|
467
|
-
extraction: ExtractionEngine;
|
|
468
|
-
/** The embedding-fallback manager used for index cleanup on archival. */
|
|
469
|
-
embeddingFallback: EmbeddingFallback;
|
|
470
|
-
/** Effective lifecycle thresholds (promote/stale/archive). Delegated to
|
|
471
|
-
* the orchestrator which owns runtime-policy-values overlay. */
|
|
472
|
-
getEffectiveLifecycleThresholds: () => {
|
|
473
|
-
promoteHeatThreshold: number;
|
|
474
|
-
staleDecayThreshold: number;
|
|
475
|
-
archiveDecayThreshold: number;
|
|
476
|
-
};
|
|
477
|
-
/** Remove a memory's content-hash entry from the storage-scoped index.
|
|
478
|
-
* Delegated to the orchestrator which owns the per-storage index map. */
|
|
479
|
-
removeContentHashForMemory: (targetStorage: StorageManager, memory: MemoryFile, context: string) => Promise<void>;
|
|
480
|
-
/** Persist all dirty content-hash indexes to disk. */
|
|
481
|
-
saveContentHashIndexes: () => Promise<void>;
|
|
482
|
-
/** Recall-handle ring used to suppress quoted-back echo during seed graduation. */
|
|
483
|
-
getHandleHistory?: () => RecallHandleHistoryStore;
|
|
484
|
-
}
|
|
485
|
-
/**
|
|
486
|
-
* Coordinates the memory-lifecycle policy pipeline. Holds no mutable
|
|
487
|
-
* state of its own — all persistence flows through the injected storage
|
|
488
|
-
* managers and callbacks.
|
|
489
|
-
*/
|
|
490
|
-
declare class LifecyclePolicyCoordinator {
|
|
491
|
-
private readonly deps;
|
|
492
|
-
constructor(deps: LifecyclePolicyCoordinatorDeps);
|
|
493
|
-
private get config();
|
|
494
|
-
actionOutcomePriorDelta(event: MemoryActionEvent): number;
|
|
495
|
-
buildLifecycleActionPriors(storage?: StorageManager): Promise<Map<string, number>>;
|
|
496
|
-
runLifecyclePolicyPass(allMemories: MemoryFile[], storage?: StorageManager): Promise<number>;
|
|
497
|
-
/**
|
|
498
|
-
* Archive old, low-importance, rarely-accessed facts (v6.0).
|
|
499
|
-
* Moves eligible facts from facts/ to archive/YYYY-MM-DD/.
|
|
500
|
-
* Returns the number of archived facts.
|
|
501
|
-
*/
|
|
502
|
-
runFactArchival(allMemories: MemoryFile[]): Promise<number>;
|
|
503
|
-
/**
|
|
504
|
-
* Run memory summarization if memory count exceeds threshold (Phase 4A).
|
|
505
|
-
*/
|
|
506
|
-
runSummarization(allMemories: MemoryFile[]): Promise<void>;
|
|
507
|
-
/**
|
|
508
|
-
* Run topic extraction on all memories (Phase 4B).
|
|
509
|
-
*/
|
|
510
|
-
runTopicExtraction(allMemories: MemoryFile[]): Promise<void>;
|
|
511
|
-
}
|
|
512
|
-
|
|
513
|
-
/**
|
|
514
|
-
* Entity synthesis coordinator — extracted from the orchestrator (issue #1526).
|
|
515
|
-
*
|
|
516
|
-
* Owns the entity-synthesis lifecycle: processing the queued entities whose
|
|
517
|
-
* evidence has changed since their last synthesis, gathering timeline +
|
|
518
|
-
* structured-section evidence, deduplicating it, batch-feeding it through the
|
|
519
|
-
* fast-tier LLM to produce a compact "current truth" synthesis, and persisting
|
|
520
|
-
* the result with drift/bookkeeping metadata.
|
|
521
|
-
*
|
|
522
|
-
* Moved here (behavior-preserving):
|
|
523
|
-
* - module-level helpers `dedupeEntitySynthesisEvidenceEntries`,
|
|
524
|
-
* `flattenStructuredSectionEvidence`, `fingerprintEntitySynthesisEvidence`
|
|
525
|
-
* - the queue-processing method, now owned by this coordinator as
|
|
526
|
-
* `processQueue` (originally the orchestrator's `processEntitySynthesisQueue`)
|
|
527
|
-
*
|
|
528
|
-
* The orchestrator constructs one instance and exposes it as
|
|
529
|
-
* `orchestrator.entitySynthesisCoordinator`; call sites invoke `processQueue`
|
|
530
|
-
* directly (issue #1800 removed the orchestrator's forwarding delegate once
|
|
531
|
-
* every caller migrated). Storage is resolved per-call via the injected
|
|
532
|
-
* accessor so namespace-scoped and default-namespace calls share one
|
|
533
|
-
* coordinator.
|
|
534
|
-
*/
|
|
535
|
-
|
|
536
|
-
/** Dependencies injected by the orchestrator. */
|
|
537
|
-
interface EntitySynthesisCoordinatorDeps {
|
|
538
|
-
config: PluginConfig;
|
|
539
|
-
/** Resolve the storage manager for a namespace (or the default). */
|
|
540
|
-
getStorage: (namespace?: string) => Promise<StorageManager>;
|
|
541
|
-
/** Fast-tier LLM completion (same signature as Orchestrator.fastChatCompletion). */
|
|
542
|
-
fastChatCompletion: (messages: Array<{
|
|
543
|
-
role: string;
|
|
544
|
-
content: string;
|
|
545
|
-
}>, options: {
|
|
546
|
-
temperature?: number;
|
|
547
|
-
maxTokens?: number;
|
|
548
|
-
timeoutMs?: number;
|
|
549
|
-
operation?: string;
|
|
550
|
-
priority?: "background" | "recall-critical";
|
|
551
|
-
}) => Promise<{
|
|
552
|
-
content: string;
|
|
553
|
-
} | null>;
|
|
554
|
-
}
|
|
555
|
-
/**
|
|
556
|
-
* Coordinates entity synthesis refresh for queued entities. Owns the
|
|
557
|
-
* evidence-gathering, dedup, batched-LLM-synthesis, and persistence logic
|
|
558
|
-
* that previously lived inline in the orchestrator.
|
|
559
|
-
*/
|
|
560
|
-
declare class EntitySynthesisCoordinator {
|
|
561
|
-
private readonly deps;
|
|
562
|
-
constructor(deps: EntitySynthesisCoordinatorDeps);
|
|
563
|
-
/**
|
|
564
|
-
* Process up to `maxEntities` entities from the synthesis queue for the
|
|
565
|
-
* given namespace. Returns the number of entities whose synthesis was
|
|
566
|
-
* successfully refreshed.
|
|
567
|
-
*/
|
|
568
|
-
processQueue(namespace?: string, maxEntities?: number): Promise<number>;
|
|
569
|
-
}
|
|
570
|
-
|
|
571
|
-
/**
|
|
572
|
-
* Recall result formatter — extracted from the orchestrator (issue #1526).
|
|
573
|
-
*
|
|
574
|
-
* Owns the formatting of recall search results into display sections, plus the
|
|
575
|
-
* identity-continuity section assembly:
|
|
576
|
-
* - QMD result formatting (with memory handles + epistemic hedge rendering)
|
|
577
|
-
* - Specialized recall result formatters (objective-state, causal-trajectory,
|
|
578
|
-
* trust-zone, harmonic-retrieval, work-product, verified-episode,
|
|
579
|
-
* verified-semantic-rule)
|
|
580
|
-
* - Identity continuity helpers (summarizeIdentityText, formatOpenIncidentLine,
|
|
581
|
-
* trimIdentitySection) and the full buildIdentityContinuitySection builder
|
|
582
|
-
* - Module-level helpers hasIdentityRecoveryIntent and
|
|
583
|
-
* resolveEffectiveIdentityInjectionMode (only consumed here)
|
|
584
|
-
*
|
|
585
|
-
* Behavior-preserving move from orchestrator.ts. No logic changes — the
|
|
586
|
-
* orchestrator constructs one instance and keeps thin delegating methods so
|
|
587
|
-
* existing call sites and tests that exercise the private API continue to work.
|
|
588
|
-
*/
|
|
589
|
-
|
|
590
|
-
declare function hasIdentityRecoveryIntent(prompt: string): boolean;
|
|
591
|
-
declare function resolveEffectiveIdentityInjectionMode(options: {
|
|
592
|
-
configuredMode: IdentityInjectionMode;
|
|
593
|
-
recallMode: RecallPlanMode;
|
|
594
|
-
prompt: string;
|
|
595
|
-
}): {
|
|
596
|
-
mode: IdentityInjectionMode;
|
|
597
|
-
shouldInject: boolean;
|
|
598
|
-
};
|
|
599
|
-
/**
|
|
600
|
-
* Formats recall search results into display sections and assembles the
|
|
601
|
-
* identity-continuity section. Holds a reference to config for feature-gated
|
|
602
|
-
* rendering (memory handles, epistemic hedges, identity injection mode).
|
|
603
|
-
*/
|
|
604
|
-
declare class RecallResultFormatter {
|
|
605
|
-
private readonly config;
|
|
606
|
-
private readonly originAuthorityEnabled;
|
|
607
|
-
constructor(config: PluginConfig);
|
|
608
|
-
formatQmdResultEntries(title: string, results: QmdSearchResult[], sessionKey?: string, trustByPath?: Map<string, TrustStageResultItem> | null): {
|
|
609
|
-
heading: string;
|
|
610
|
-
entries: string[];
|
|
611
|
-
};
|
|
612
|
-
formatQmdResults(title: string, results: QmdSearchResult[], sessionKey?: string, trustByPath?: Map<string, TrustStageResultItem> | null): string;
|
|
613
|
-
formatObjectiveStateResults(results: ObjectiveStateSearchResult[]): string;
|
|
614
|
-
formatCausalTrajectoryResults(results: CausalTrajectorySearchResult[]): string;
|
|
615
|
-
formatTrustZoneResults(results: TrustZoneSearchResult[]): string;
|
|
616
|
-
formatHarmonicRetrievalResults(results: HarmonicRetrievalResult[]): string;
|
|
617
|
-
/**
|
|
618
|
-
* Render grouped raw-turn episodes for the top recalled facts (issue #2331).
|
|
619
|
-
* Returns `null` for zero episodes so the section is omitted entirely —
|
|
620
|
-
* never an empty header.
|
|
621
|
-
*/
|
|
622
|
-
formatEpisodicContext(episodes: ReadonlyArray<{
|
|
623
|
-
sessionKey: string;
|
|
624
|
-
fromTurn: number;
|
|
625
|
-
toTurn: number;
|
|
626
|
-
memoryIds: readonly string[];
|
|
627
|
-
turns: ReadonlyArray<{
|
|
628
|
-
role: string;
|
|
629
|
-
content: string;
|
|
630
|
-
}>;
|
|
631
|
-
}>): string | null;
|
|
632
|
-
formatWorkProductResults(results: WorkProductLedgerSearchResult[]): string;
|
|
633
|
-
formatVerifiedEpisodeResults(results: VerifiedEpisodeResult[]): string;
|
|
634
|
-
formatVerifiedSemanticRuleResults(results: VerifiedSemanticRuleResult[]): string;
|
|
635
|
-
summarizeIdentityText(raw: string, maxLines: number, maxChars: number): string;
|
|
636
|
-
formatOpenIncidentLine(incident: ContinuityIncidentRecord, includeDetails: boolean): string;
|
|
637
|
-
trimIdentitySection(content: string, maxChars: number): {
|
|
638
|
-
text: string;
|
|
639
|
-
truncated: boolean;
|
|
640
|
-
};
|
|
641
|
-
buildIdentityContinuitySection(options: {
|
|
642
|
-
storage: StorageManager;
|
|
643
|
-
recallMode: RecallPlanMode;
|
|
644
|
-
prompt: string;
|
|
645
|
-
}): Promise<{
|
|
646
|
-
section: string;
|
|
647
|
-
mode: IdentityInjectionMode;
|
|
648
|
-
injectedChars: number;
|
|
649
|
-
truncated: boolean;
|
|
650
|
-
} | null>;
|
|
651
|
-
}
|
|
652
|
-
|
|
653
|
-
/**
|
|
654
|
-
* Recall rerank coordinator — extracted from the orchestrator (issue #1526).
|
|
655
|
-
*
|
|
656
|
-
* Owns the post-retrieval result-ranking subsystem: Memory-Worth reranking,
|
|
657
|
-
* TrustScore scoring + quarantine, reasoning-trace boost, and MMR
|
|
658
|
-
* diversification/limiting. Behavior-preserving move from orchestrator.ts —
|
|
659
|
-
* no logic changes; the orchestrator constructs one instance and keeps thin
|
|
660
|
-
* delegating methods so existing call sites (recallInternal,
|
|
661
|
-
* applyColdFallbackPipeline) continue to work.
|
|
662
|
-
*
|
|
663
|
-
* Config, storage, and the QMD-result memory reader are accessed through
|
|
664
|
-
* getter callbacks (not captured at construction) so that post-construction
|
|
665
|
-
* reassignment of the orchestrator's live fields is honored. This mirrors
|
|
666
|
-
* the ConversationIndexCoordinator / TierMigrationCoordinator accessor
|
|
667
|
-
* pattern.
|
|
668
|
-
*/
|
|
669
|
-
|
|
670
|
-
interface RecallResultPartition {
|
|
671
|
-
appliedResults: QmdSearchResult[];
|
|
672
|
-
headroomResults: QmdSearchResult[];
|
|
673
|
-
}
|
|
674
|
-
/**
|
|
675
|
-
* Coordinator for the recall-result reranking subsystem.
|
|
676
|
-
*
|
|
677
|
-
* Holds the per-namespace caches for memory-worth counters and trust signals
|
|
678
|
-
* (previously orchestrator fields) so the reranking stages don't trigger a
|
|
679
|
-
* full `readAllMemories` scan per query.
|
|
680
|
-
*/
|
|
681
|
-
declare class RecallRerankCoordinator {
|
|
682
|
-
private readonly getConfig;
|
|
683
|
-
private readonly getStorage;
|
|
684
|
-
private readonly readQmdResultMemory;
|
|
685
|
-
private readonly memoryWorthCounterCache;
|
|
686
|
-
private readonly trustSignalCache;
|
|
687
|
-
/**
|
|
688
|
-
* Cap on distinct namespaces retained in the corpus-fallback caches. Each
|
|
689
|
-
* entry holds a derived per-namespace map; on high-cardinality namespace
|
|
690
|
-
* workloads an unbounded map would grow without limit (#1905, Cursor). Map
|
|
691
|
-
* preserves insertion order, so overflow evicts the oldest namespace.
|
|
692
|
-
*/
|
|
693
|
-
private static readonly CORPUS_FALLBACK_CACHE_MAX_NAMESPACES;
|
|
694
|
-
/** Insert-ordered bounded set: evict the oldest namespace on overflow. */
|
|
695
|
-
private static capCache;
|
|
696
|
-
constructor(options: {
|
|
697
|
-
getConfig: () => PluginConfig;
|
|
698
|
-
getStorage: (namespace: string) => Promise<StorageManager>;
|
|
699
|
-
readQmdResultMemory: (resultPath: string, fallbackStorage: StorageManager, recallNamespaces: readonly string[], preferredNamespace?: string) => Promise<MemoryFile | null>;
|
|
700
|
-
});
|
|
701
|
-
applyMemoryWorthRerank(results: QmdSearchResult[], namespaces: string[], preloadedFrontmatter?: ReadonlyMap<string, MemoryFile>, abortSignal?: AbortSignal): Promise<QmdSearchResult[]>;
|
|
702
|
-
/**
|
|
703
|
-
* Issue #1577 — unified TrustScore recall stage. Thin wiring over the pure
|
|
704
|
-
* {@link applyTrustScoreStage} scorer + the {@link buildTrustSignalsForRerank}
|
|
705
|
-
* signal builder. The stage subsumes the Memory Worth multiplier — the
|
|
706
|
-
* orchestrator runs exactly one of the two (mutual exclusion, rule 39; the
|
|
707
|
-
* double-multiplier test in trust-score-stage.test.ts pins it structurally).
|
|
708
|
-
*
|
|
709
|
-
* Returns the admitted results AND the per-path trust map (including
|
|
710
|
-
* quarantined items) so the caller can: (a) render epistemic hedges, (b)
|
|
711
|
-
* surface quarantined items in X-ray with a reason (rule 34), and (c) filter
|
|
712
|
-
* quarantined paths from fallback recall branches. The trust map is a
|
|
713
|
-
* per-recall local — never instance state — so concurrent recalls cannot
|
|
714
|
-
* race on it (review: shared-trust-map concurrency).
|
|
715
|
-
*/
|
|
716
|
-
applyTrustScoreRerank(results: QmdSearchResult[], namespaces: string[], preloadedFrontmatter?: ReadonlyMap<string, MemoryFile>, abortSignal?: AbortSignal): Promise<{
|
|
717
|
-
results: QmdSearchResult[];
|
|
718
|
-
trustByPath: Map<string, TrustStageResultItem> | null;
|
|
719
|
-
}>;
|
|
720
|
-
/**
|
|
721
|
-
* Issue #1577 — apply the TrustScore stage (or, when trust is off, the Memory
|
|
722
|
-
* Worth multiplier fallback) to ONE recall branch's results, returning the
|
|
723
|
-
* scored results + the per-path trust map. Thin wiring over
|
|
724
|
-
* {@link applyTrustScoreRerank} so every recall path — hot QMD, embedding
|
|
725
|
-
* fallback, recent scan — applies the SAME multiplier gate (rule 41: a
|
|
726
|
-
* feature gate must apply across ALL parallel recall paths). TrustScore
|
|
727
|
-
* subsumes Memory Worth; exactly one runs (rule 39). Fail-open on lookup
|
|
728
|
-
* errors so a storage hiccup never breaks a fallback path.
|
|
729
|
-
*/
|
|
730
|
-
applyTrustScoreToBranch(results: QmdSearchResult[], namespaces: string[], caps: CapabilitySet, label: string, preloadedFrontmatter?: ReadonlyMap<string, MemoryFile>, abortSignal?: AbortSignal): Promise<{
|
|
731
|
-
results: QmdSearchResult[];
|
|
732
|
-
trustByPath: Map<string, TrustStageResultItem> | null;
|
|
733
|
-
}>;
|
|
734
|
-
/**
|
|
735
|
-
* Issue #2371 — stale-preference damping + injection annotation.
|
|
736
|
-
*
|
|
737
|
-
* Runs immediately after the trust/Memory-Worth stage on EVERY recall branch
|
|
738
|
-
* (hot QMD, embedding fallback, recent scan, cold fallback), so the feature
|
|
739
|
-
* gate applies uniformly and fallback parity holds (§27, AGENTS.md retrieval
|
|
740
|
-
* guardrails). Fully inert on the default config: when neither damping nor
|
|
741
|
-
* annotation is active the input array is returned untouched and NO
|
|
742
|
-
* frontmatter is read, so recall ordering and injected text stay
|
|
743
|
-
* byte-identical to pre-#2371.
|
|
744
|
-
*
|
|
745
|
-
* Fail-open: any lookup error leaves the branch's results unchanged.
|
|
746
|
-
*/
|
|
747
|
-
applyPreferenceDriftStage(results: QmdSearchResult[], namespaces: string[], preloadedFrontmatter?: ReadonlyMap<string, MemoryFile>, abortSignal?: AbortSignal): Promise<QmdSearchResult[]>;
|
|
748
|
-
diversifyRecallResultsWithHeadroom(sectionId: string, results: QmdSearchResult[], limit: number, retrievalQuery?: string, caps?: CapabilitySet,
|
|
749
|
-
/**
|
|
750
|
-
* #2859 — state-view packet semantics. When true, superseded rows are
|
|
751
|
-
* reconciled against their successors BEFORE MMR (orphan removal can
|
|
752
|
-
* never underfill), and the cap counts complete evidence packets: a
|
|
753
|
-
* predecessor admitted alongside its successor consumes ONE slot and
|
|
754
|
-
* the slice never splits the pair at the boundary. Absent/false keeps
|
|
755
|
-
* the legacy slice byte-identical.
|
|
756
|
-
*/
|
|
757
|
-
stateViewActive?: boolean): RecallResultPartition;
|
|
758
|
-
diversifyAndLimitRecallResults(sectionId: string, results: QmdSearchResult[], limit: number, retrievalQuery?: string, caps?: CapabilitySet,
|
|
759
|
-
/** #2859 — see diversifyRecallResultsWithHeadroom. */
|
|
760
|
-
stateViewActive?: boolean): QmdSearchResult[];
|
|
761
|
-
/**
|
|
762
|
-
* Apply Maximal Marginal Relevance to a section's ordered candidate list.
|
|
763
|
-
*
|
|
764
|
-
* Operates per-section so one redundant cluster cannot dominate a section,
|
|
765
|
-
* and so one section's MMR pass cannot starve other sections. Returns the
|
|
766
|
-
* input unchanged when disabled, when there are fewer than 2 candidates, or
|
|
767
|
-
* when no budget information is available.
|
|
768
|
-
*/
|
|
769
|
-
applyMmrToQmdResults(sectionId: string, results: QmdSearchResult[], caps?: CapabilitySet): QmdSearchResult[];
|
|
770
|
-
}
|
|
771
|
-
|
|
772
|
-
/**
|
|
773
|
-
* Recall section coordinator — extracted from the orchestrator (issue #1526).
|
|
774
|
-
*
|
|
775
|
-
* Owns the recall-output section-budgeting subsystem: section enablement
|
|
776
|
-
* lookups, per-section maxChars/number resolution, section bucket appends,
|
|
777
|
-
* budget-aware section truncation, and final ordered assembly of recall
|
|
778
|
-
* sections within the configured character budget. Also builds the
|
|
779
|
-
* LastRecallBudgetSummary and collects the sources used for X-ray tracing.
|
|
780
|
-
*
|
|
781
|
-
* Behavior-preserving move from orchestrator.ts — no logic changes; the
|
|
782
|
-
* orchestrator constructs one instance and keeps thin delegating methods so
|
|
783
|
-
* existing call sites (recallInternal, consolidation) continue to work.
|
|
784
|
-
*
|
|
785
|
-
* Config is accessed through a getter callback (not captured at construction)
|
|
786
|
-
* so that post-construction reassignment of the orchestrator's live
|
|
787
|
-
* `config` field is honored. This mirrors the ConversationIndexCoordinator /
|
|
788
|
-
* TierMigrationCoordinator accessor pattern.
|
|
789
|
-
*/
|
|
790
|
-
|
|
791
|
-
interface RecallSectionAppendOptions {
|
|
792
|
-
atomic?: boolean;
|
|
793
|
-
memoryId?: string;
|
|
794
|
-
memoryPath?: string;
|
|
795
|
-
memoryNamespace?: string;
|
|
796
|
-
/**
|
|
797
|
-
* #2928 — state-view packet key (canonical `stateViewPacketKeys` root).
|
|
798
|
-
* Atomic chunks sharing a packetKey are ONE evidence packet: the final
|
|
799
|
-
* budget admits or drops them together, so a historical row can never
|
|
800
|
-
* render without its linked successor. Absent on non-state rows.
|
|
801
|
-
*/
|
|
802
|
-
packetKey?: string;
|
|
803
|
-
}
|
|
804
|
-
interface RecallSectionChunk {
|
|
805
|
-
content: string;
|
|
806
|
-
atomic?: boolean;
|
|
807
|
-
memoryId?: string;
|
|
808
|
-
memoryPath?: string;
|
|
809
|
-
memoryNamespace?: string;
|
|
810
|
-
packetKey?: string;
|
|
811
|
-
}
|
|
812
|
-
type RecallSectionBuckets = Map<string, Array<string | RecallSectionChunk>>;
|
|
813
|
-
/**
|
|
814
|
-
* Coordinator for the recall section budgeting + assembly subsystem.
|
|
815
|
-
*
|
|
816
|
-
* All methods are pure with respect to the coordinator's own state — they
|
|
817
|
-
* read config via the getter and operate on the caller-provided section
|
|
818
|
-
* buckets. No caches are held because the config-derived values are cheap
|
|
819
|
-
* to recompute and the buckets are transient (per-recall-call).
|
|
820
|
-
*/
|
|
821
|
-
declare class RecallSectionCoordinator {
|
|
822
|
-
private readonly getConfig;
|
|
823
|
-
private readonly resolveSectionEnabled;
|
|
824
|
-
constructor(options: {
|
|
825
|
-
getConfig: () => PluginConfig;
|
|
826
|
-
resolveSectionEnabled?: (sectionId: string, defaultEnabled: boolean) => boolean;
|
|
827
|
-
});
|
|
828
|
-
getRecallSectionEntry(sectionId: string): RecallSectionConfig | undefined;
|
|
829
|
-
isRecallSectionEnabled(sectionId: string, defaultEnabled?: boolean): boolean;
|
|
830
|
-
isSpecializedRecallSectionEnabled(sectionId: string, topLevelEnabled: boolean): boolean;
|
|
831
|
-
getRecallSectionMaxChars(sectionId: string): number | null | undefined;
|
|
832
|
-
getRecallSectionNumber(sectionId: string, key: keyof RecallSectionConfig): number | undefined;
|
|
833
|
-
appendRecallSection(sectionBuckets: RecallSectionBuckets, sectionId: string, content: string, options?: RecallSectionAppendOptions): boolean;
|
|
834
|
-
truncateProfileToBoundary(content: string, maxChars: number): string;
|
|
835
|
-
truncateRecallSectionToBudget(content: string, maxChars: number, maxTokens?: number): string;
|
|
836
|
-
getRecallBudgetChars(override?: number): number;
|
|
837
|
-
assembleRecallSections(sectionBuckets: RecallSectionBuckets, budgetOverride?: number): {
|
|
838
|
-
sections: string[];
|
|
839
|
-
includedIds: string[];
|
|
840
|
-
omittedIds: string[];
|
|
841
|
-
truncated: boolean;
|
|
842
|
-
finalChars: number;
|
|
843
|
-
includedMemories: IncludedMemory[];
|
|
844
|
-
includedMemoryIds: string[];
|
|
845
|
-
includedMemoryPaths: string[];
|
|
846
|
-
includedMemoryNamespaces: Array<string | undefined>;
|
|
847
|
-
omittedMemoryIds: string[];
|
|
848
|
-
};
|
|
849
|
-
buildLastRecallBudgetSummary(options: {
|
|
850
|
-
requestedTopK?: number;
|
|
851
|
-
recallResultLimit: number;
|
|
852
|
-
qmdFetchLimit: number;
|
|
853
|
-
qmdHybridFetchLimit: number;
|
|
854
|
-
finalContextChars?: number;
|
|
855
|
-
truncated?: boolean;
|
|
856
|
-
includedSections?: string[];
|
|
857
|
-
omittedMemoryIds?: string[];
|
|
858
|
-
omittedSections?: string[];
|
|
859
|
-
}): LastRecallBudgetSummary;
|
|
860
|
-
collectLastRecallSources(sectionBuckets: RecallSectionBuckets, recallSource: "none" | "hot_qmd" | "hot_embedding" | "cold_fallback" | "recent_scan"): string[];
|
|
861
|
-
}
|
|
862
|
-
|
|
863
|
-
/**
|
|
864
|
-
* QMD result resolver — extracted from the orchestrator (issue #1526 seam 11).
|
|
865
|
-
*
|
|
866
|
-
* Owns the subsystem that resolves a QMD search-result path back to the
|
|
867
|
-
* concrete `MemoryFile` (and its owning namespace/storage). Three concerns
|
|
868
|
-
* live here:
|
|
869
|
-
*
|
|
870
|
-
* - `readQmdResultMemory` — resolve a result path to a `MemoryFile`,
|
|
871
|
-
* handling cold-tier collections, namespace-prefixed collections, and
|
|
872
|
-
* absolute vs relative paths.
|
|
873
|
-
* - `resolveColdQmdResultForRecall` — wrap a result with its owner
|
|
874
|
-
* namespace so the recall pipeline can scope-filter candidates.
|
|
875
|
-
* - `storageForAbsoluteQmdResultPath` — find the `StorageManager` whose
|
|
876
|
-
* directory tree contains an absolute result path.
|
|
877
|
-
*
|
|
878
|
-
* Behavior-preserving move from orchestrator.ts — no logic changes. The
|
|
879
|
-
* orchestrator constructs one instance and keeps thin delegating methods so
|
|
880
|
-
* existing call sites (recallInternal, applyColdFallbackPipeline,
|
|
881
|
-
* loadSearchResultMemoryMap, suggestLinksForMemory, and the
|
|
882
|
-
* RecallRerankCoordinator callback) continue to work.
|
|
883
|
-
*
|
|
884
|
-
* Config, the storage router, and the orchestrator's namespace-resolution
|
|
885
|
-
* helpers are accessed through getter callbacks (not captured at
|
|
886
|
-
* construction) so that post-construction reassignment of the
|
|
887
|
-
* orchestrator's live fields is honored. This mirrors the
|
|
888
|
-
* RecallRerankCoordinator / ConversationIndexCoordinator accessor pattern.
|
|
889
|
-
*/
|
|
890
|
-
|
|
891
|
-
/**
|
|
892
|
-
* Coordinator for resolving QMD search-result paths to concrete memory
|
|
893
|
-
* files and their owning namespace/storage.
|
|
894
|
-
*/
|
|
895
|
-
declare class QmdResultResolver {
|
|
896
|
-
private readonly getConfig;
|
|
897
|
-
private readonly storageFor;
|
|
898
|
-
private readonly storageDirNamespace;
|
|
899
|
-
private readonly qmdCollectionNamespaceFromPrefix;
|
|
900
|
-
private readonly namespaceFromPath;
|
|
901
|
-
constructor(options: {
|
|
902
|
-
getConfig: () => PluginConfig;
|
|
903
|
-
storageFor: (namespace: string) => Promise<StorageManager>;
|
|
904
|
-
storageDirNamespace: (storageDir: string) => string;
|
|
905
|
-
qmdCollectionNamespaceFromPrefix: (collectionPrefix: string) => string | null;
|
|
906
|
-
namespaceFromPath: (p: string) => string;
|
|
907
|
-
});
|
|
908
|
-
readQmdResultMemory(resultPath: string, fallbackStorage: StorageManager, recallNamespaces?: readonly string[], preferredNamespace?: string): Promise<MemoryFile | null>;
|
|
909
|
-
filterPrivateSearchResults(results: QmdSearchResult[], fallbackStorage: StorageManager, namespaces?: readonly string[], preserveUnresolved?: boolean, visibilityCache?: Map<string, boolean>): Promise<QmdSearchResult[]>;
|
|
910
|
-
private isVisibleSearchResult;
|
|
911
|
-
resolveColdQmdResultForRecall(result: QmdSearchResult, fallbackStorage: StorageManager, recallNamespaces?: readonly string[]): Promise<{
|
|
912
|
-
namespace: string;
|
|
913
|
-
result: QmdSearchResult;
|
|
914
|
-
} | null>;
|
|
915
|
-
storageForAbsoluteQmdResultPath(resultPath: string, fallbackStorage: StorageManager, recallNamespaces?: readonly string[]): Promise<{
|
|
916
|
-
storage: StorageManager;
|
|
917
|
-
dir: string;
|
|
918
|
-
namespace: string;
|
|
919
|
-
} | null>;
|
|
920
|
-
}
|
|
921
|
-
|
|
922
|
-
/**
|
|
923
|
-
* Contradiction-linking coordinator — extracted from the orchestrator (issue #1526).
|
|
924
|
-
*
|
|
925
|
-
* Owns the write-path semantic-analysis subsystem: contradiction detection
|
|
926
|
-
* (QMD similarity search + LLM verification), deferred contradiction
|
|
927
|
-
* auto-resolve (#1645 — retires superseded memories only after the new write's
|
|
928
|
-
* tombstone status is known), and memory link suggestion. The orchestrator
|
|
929
|
-
* constructs one instance and keeps thin delegating methods so existing call
|
|
930
|
-
* sites (writeMemory fact-write branches) continue to work.
|
|
931
|
-
*
|
|
932
|
-
* Config, storage, search, namespace resolution, and the extraction engine are
|
|
933
|
-
* accessed through getter callbacks (not captured at construction) so that
|
|
934
|
-
* post-construction reassignment of the orchestrator's live fields is honored.
|
|
935
|
-
* This mirrors the RecallRerankCoordinator / ConversationIndexCoordinator
|
|
936
|
-
* accessor pattern.
|
|
937
|
-
*/
|
|
938
|
-
|
|
939
|
-
/** Result type of {@link ContradictionLinkingCoordinator.checkForContradiction}. */
|
|
940
|
-
interface ContradictionResult {
|
|
941
|
-
supersededId: string;
|
|
942
|
-
confidence: number;
|
|
943
|
-
reason: string;
|
|
944
|
-
supersededPath: string;
|
|
945
|
-
supersededCreated: string;
|
|
946
|
-
supersededTags: string[];
|
|
947
|
-
}
|
|
948
|
-
/** Outcome of the post-write contradiction retirement attempt. */
|
|
949
|
-
type ContradictionResolveOutcome = "not_attempted" | "blocked" | "resolved" | "lost_race" | "supersede_failed" | "supersedes_clear_failed";
|
|
950
|
-
/**
|
|
951
|
-
* Subset of {@link ContradictionResult} used by
|
|
952
|
-
* {@link ContradictionLinkingCoordinator.applyDeferredContradictionResolve}.
|
|
953
|
-
* The deferred resolve runs AFTER writeMemory and only needs the supersede
|
|
954
|
-
* target fields (not confidence, which the caller already consumed).
|
|
955
|
-
*/
|
|
956
|
-
interface ContradictionResolveTarget {
|
|
957
|
-
supersededId: string;
|
|
958
|
-
reason: string;
|
|
959
|
-
supersededPath: string;
|
|
960
|
-
supersededCreated: string;
|
|
961
|
-
supersededTags: string[];
|
|
962
|
-
}
|
|
963
|
-
/**
|
|
964
|
-
* Coordinator for the contradiction-detection + memory-linking subsystem.
|
|
965
|
-
*
|
|
966
|
-
* The three methods mirror the orchestrator's former private methods
|
|
967
|
-
* `checkForContradiction`, `applyDeferredContradictionResolve`, and
|
|
968
|
-
* `suggestLinksForMemory` byte-for-byte in logic.
|
|
969
|
-
*/
|
|
970
|
-
declare class ContradictionLinkingCoordinator {
|
|
971
|
-
private readonly getConfig;
|
|
972
|
-
private readonly isSearchAvailable;
|
|
973
|
-
private readonly searchAcrossNamespaces;
|
|
974
|
-
private readonly extractMemoryIdsFromResults;
|
|
975
|
-
private readonly namespaceFromPath;
|
|
976
|
-
private readonly storageForNamespace;
|
|
977
|
-
private readonly getExtraction;
|
|
978
|
-
private readonly storageDirNamespace;
|
|
979
|
-
private readonly getDependencyPropagationDelivery;
|
|
980
|
-
constructor(options: {
|
|
981
|
-
getConfig: () => PluginConfig;
|
|
982
|
-
isSearchAvailable: () => boolean;
|
|
983
|
-
searchAcrossNamespaces: (options: {
|
|
984
|
-
query: string;
|
|
985
|
-
namespaces?: string[];
|
|
986
|
-
maxResults?: number;
|
|
987
|
-
mode?: "search" | "hybrid" | "bm25" | "vector";
|
|
988
|
-
}) => Promise<QmdSearchResult[]>;
|
|
989
|
-
extractMemoryIdsFromResults: (results: QmdSearchResult[]) => string[];
|
|
990
|
-
namespaceFromPath: (p: string) => string;
|
|
991
|
-
storageForNamespace: (namespace: string) => Promise<StorageManager>;
|
|
992
|
-
getExtraction: () => ExtractionEngine;
|
|
993
|
-
storageDirNamespace?: (storageDir: string) => string;
|
|
994
|
-
getDependencyPropagationDelivery?: () => DependencyPropagationDeliveryPort;
|
|
995
|
-
});
|
|
996
|
-
/**
|
|
997
|
-
* Check if a new memory contradicts an existing one.
|
|
998
|
-
* Uses QMD to find similar memories, then LLM to verify contradiction.
|
|
999
|
-
*/
|
|
1000
|
-
checkForContradiction(content: string, category: string, namespaceScope: string, anchor?: {
|
|
1001
|
-
entityRef?: string;
|
|
1002
|
-
structuredAttributes?: Record<string, string>;
|
|
1003
|
-
attributes?: Record<string, string>;
|
|
1004
|
-
storageSnapshot?: MemoryFile[];
|
|
1005
|
-
}): Promise<ContradictionResult | null>;
|
|
1006
|
-
/**
|
|
1007
|
-
* #1645: Complete the deferred contradiction auto-resolve after writeMemory
|
|
1008
|
-
* returns and the new write's tombstone status is known. Retires the old
|
|
1009
|
-
* memory + deindexes it ONLY when the new write is genuinely active (not
|
|
1010
|
-
* tombstone-blocked / pending_review). A blocked write must not retire the
|
|
1011
|
-
* only active copy — deferring here closes the "contradictionAutoResolve
|
|
1012
|
-
* supersedes before tombstone status is known" defect class.
|
|
1013
|
-
*/
|
|
1014
|
-
applyDeferredContradictionResolve(contradiction: ContradictionResolveTarget | null | undefined, storage: StorageManager, newMemoryId: string, postWriteGuard: boolean): Promise<ContradictionResolveOutcome>;
|
|
1015
|
-
/**
|
|
1016
|
-
* Suggest links for a new memory based on similar existing memories.
|
|
1017
|
-
*/
|
|
1018
|
-
suggestLinksForMemory(content: string, category: string, namespaceScope: string): Promise<MemoryLink[]>;
|
|
1019
|
-
}
|
|
1020
|
-
|
|
1021
|
-
/**
|
|
1022
|
-
* Derive issue #1955 origin metadata at the extraction boundary.
|
|
1023
|
-
*/
|
|
1024
|
-
|
|
1025
|
-
interface ExtractionSourceContext {
|
|
1026
|
-
sessionKey?: string;
|
|
1027
|
-
principal?: string;
|
|
1028
|
-
validAt?: string;
|
|
1029
|
-
sourceConnector?: string;
|
|
1030
|
-
turnRole?: "user" | "assistant" | "tool" | string;
|
|
1031
|
-
importAdapter?: string;
|
|
1032
|
-
originConflict?: boolean;
|
|
1033
|
-
}
|
|
1034
|
-
|
|
1035
|
-
declare function deriveTopicsFromExtraction(result: ExtractionResult): string[];
|
|
1036
|
-
interface ExtractionResilienceStatus {
|
|
1037
|
-
breaker: {
|
|
1038
|
-
state: "closed" | "open" | "half_open";
|
|
1039
|
-
openUntilMs: number;
|
|
1040
|
-
consecutiveFailures: number;
|
|
1041
|
-
lastReason: string;
|
|
1042
|
-
};
|
|
1043
|
-
backoffFingerprintCount: number;
|
|
1044
|
-
}
|
|
1045
|
-
|
|
1046
|
-
/**
|
|
1047
|
-
* Extraction-run coordinator — extracted from the orchestrator
|
|
1048
|
-
* (issue #1526, seam 15).
|
|
1049
|
-
*
|
|
1050
|
-
* Owns the buffer→extract→persist pipeline orchestration:
|
|
1051
|
-
* - `runExtraction` — the main extraction pipeline coordinator
|
|
1052
|
-
* (normalize → threshold gate → namespace resolve → dedupe
|
|
1053
|
-
* fingerprint → extract → validate → persist → post-write hooks)
|
|
1054
|
-
* - dedupe support: `shouldQueueExtraction`,
|
|
1055
|
-
* `buildExtractionFingerprint`, `normalizeExtractionFingerprintTurns`
|
|
1056
|
-
* - `recordProcessedExtractionFingerprint` — meta recording
|
|
1057
|
-
*
|
|
1058
|
-
* The orchestrator constructs one instance and delegates the extraction
|
|
1059
|
-
* run to it. `persistExtraction`, `maybeCapturePassiveCorrections`, and
|
|
1060
|
-
* all post-write side-effect helpers arrive as injectable delegates so
|
|
1061
|
-
* the orchestrator keeps ownership of cross-subsystem routing and the
|
|
1062
|
-
* behavior-critical chokepoints it hosts.
|
|
1063
|
-
*
|
|
1064
|
-
* Behavior-preserving move from orchestrator.ts. No logic changes — the
|
|
1065
|
-
* orchestrator keeps thin delegating methods so existing call sites
|
|
1066
|
-
* and tests that exercise the public API continue to work.
|
|
1067
|
-
*/
|
|
1068
|
-
|
|
1069
|
-
interface ExtractionRunResult {
|
|
1070
|
-
status: "completed" | "skipped";
|
|
1071
|
-
reason?: string;
|
|
1072
|
-
persistedCount: number;
|
|
1073
|
-
durableOutputCount: number;
|
|
1074
|
-
postPersistMetadataFailed?: boolean;
|
|
1075
|
-
}
|
|
1076
|
-
/** Dependencies injected by the orchestrator. All stable references or
|
|
1077
|
-
* live accessors — lazy getters for anything tests reassign
|
|
1078
|
-
* post-construction (buffer, extraction, storageRouter, threading). */
|
|
1079
|
-
interface ExtractionRunCoordinatorDeps {
|
|
1080
|
-
config: PluginConfig;
|
|
1081
|
-
getBuffer: () => SmartBuffer;
|
|
1082
|
-
getExtraction: () => Pick<ExtractionEngine, "extract">;
|
|
1083
|
-
getStorageRouter: () => Pick<NamespaceStorageRouter, "storageFor">;
|
|
1084
|
-
getThreading: () => Pick<ThreadingManager, "processTurn" | "updateThreadTitle">;
|
|
1085
|
-
persistExtraction: (result: ExtractionResult, storage: StorageManager, threadIdForExtraction?: string | null, sourceContext?: ExtractionSourceContext, baseNamespace?: string, scopeProfileWritePlan?: ResolvedScopeProfilePlan | null, sourceText?: string, graphCaps?: GraphConstructionCapabilitySet, lifecycleCaps?: MemoryLifecycleCapabilitySet) => Promise<{
|
|
1086
|
-
persistedIds: string[];
|
|
1087
|
-
memoryPathById: Map<string, string>;
|
|
1088
|
-
}>;
|
|
1089
|
-
maybeCapturePassiveCorrections: (turns: readonly BufferTurn[], opts: {
|
|
1090
|
-
sessionKey: string;
|
|
1091
|
-
principal?: string;
|
|
1092
|
-
namespace: string;
|
|
1093
|
-
bufferKey: string;
|
|
1094
|
-
isLiveSession: boolean;
|
|
1095
|
-
abortSignal?: AbortSignal;
|
|
1096
|
-
}) => Promise<void>;
|
|
1097
|
-
resolveSelfNamespace: (sessionKey?: string) => string;
|
|
1098
|
-
getCodingContextForSession: (sessionKey: string) => CodingContext | null;
|
|
1099
|
-
applyCodingNamespaceOverlay: (sessionKey: string, namespace: string) => string;
|
|
1100
|
-
boxBuilderFor: (storage: StorageManager) => Pick<BoxBuilder, "onExtraction">;
|
|
1101
|
-
appendPersistedThreadEpisodes: (threadId: string, ids: string[]) => Promise<void>;
|
|
1102
|
-
maybeScheduleConsolidation: (nonZero: boolean) => void;
|
|
1103
|
-
requestQmdMaintenance: () => void;
|
|
1104
|
-
runTierMigrationCycle: (storage: StorageManager, trigger: "extraction" | "maintenance" | "manual", options?: {
|
|
1105
|
-
dryRun?: boolean;
|
|
1106
|
-
limitOverride?: number;
|
|
1107
|
-
force?: boolean;
|
|
1108
|
-
}) => Promise<TierMigrationCycleSummary>;
|
|
1109
|
-
getLastPersistExtractionDeferredCount: () => number;
|
|
1110
|
-
recordProcessedExtractionFingerprint: (storage: StorageManager, fingerprint: string, preloadedMeta?: Awaited<ReturnType<StorageManager["loadMeta"]>>) => Promise<void>;
|
|
1111
|
-
}
|
|
1112
|
-
|
|
1113
|
-
/**
|
|
1114
|
-
* Coordinates the extraction run pipeline. Holds the dedupe fingerprint
|
|
1115
|
-
* cache (`recentExtractionFingerprints`) and delegates all side effects
|
|
1116
|
-
* to injected orchestrator methods.
|
|
1117
|
-
*/
|
|
1118
|
-
declare class ExtractionRunCoordinator {
|
|
1119
|
-
private readonly deps;
|
|
1120
|
-
private readonly recentExtractionFingerprints;
|
|
1121
|
-
private readonly extractionRetryState;
|
|
1122
|
-
private readonly hydratedRetryNamespaces;
|
|
1123
|
-
private providerBreaker;
|
|
1124
|
-
constructor(deps: ExtractionRunCoordinatorDeps);
|
|
1125
|
-
private get config();
|
|
1126
|
-
private latestSourceValidAtFromTurns;
|
|
1127
|
-
normalizeExtractionFingerprintTurns(turns: BufferTurn[]): string[];
|
|
1128
|
-
buildExtractionFingerprint(turns: BufferTurn[], bufferKey: string): string | null;
|
|
1129
|
-
shouldQueueExtraction(turns: BufferTurn[], options?: {
|
|
1130
|
-
commit?: boolean;
|
|
1131
|
-
bufferKey?: string;
|
|
1132
|
-
}): boolean;
|
|
1133
|
-
recordProcessedExtractionFingerprint(storage: StorageManager, fingerprint: string, preloadedMeta?: Awaited<ReturnType<StorageManager["loadMeta"]>>): Promise<void>;
|
|
1134
|
-
/** Lazily hydrate the in-memory retry-state mirror for a namespace from meta.
|
|
1135
|
-
* One-time per namespace per coordinator; the hot path is then a Map lookup.
|
|
1136
|
-
* Cross-process coherence: a fresh coordinator hydrates from the shared
|
|
1137
|
-
* meta.json, so a failure persisted by another process is honored here. */
|
|
1138
|
-
private hydrateRetryStateFromMeta;
|
|
1139
|
-
private logBreakerTransition;
|
|
1140
|
-
/** True while the breaker suppresses non-forced attempts. Flips an expired
|
|
1141
|
-
* `open` breaker to `half_open`, which allows exactly one probe (the next
|
|
1142
|
-
* non-forced attempt) because the extraction queue is a serial drain. */
|
|
1143
|
-
private isProviderBreakerOpen;
|
|
1144
|
-
private onProviderFailure;
|
|
1145
|
-
private resetProviderBreakerOnSuccess;
|
|
1146
|
-
/** Rebuild `meta.extractionRetryState` from the in-memory namespace mirror,
|
|
1147
|
-
* bounded to the newest entries, and prune the mirror to match. */
|
|
1148
|
-
private persistRetryStateToMeta;
|
|
1149
|
-
/** Record an extraction failure into per-fingerprint backoff state + breaker,
|
|
1150
|
-
* persisting to namespace meta. Fail-open: never throws upward. */
|
|
1151
|
-
private recordExtractionFailure;
|
|
1152
|
-
/** Delete a fingerprint's retry entry from the mirror + meta. Returns whether
|
|
1153
|
-
* meta changed (so the caller can decide to persist). Does not touch the
|
|
1154
|
-
* breaker — callers pair this with `resetProviderBreakerOnSuccess`. */
|
|
1155
|
-
private clearExtractionRetryEntry;
|
|
1156
|
-
/** Live in-process resilience snapshot (breaker + backoff population). */
|
|
1157
|
-
getExtractionResilienceStatus(): ExtractionResilienceStatus;
|
|
1158
|
-
runExtraction(turns: BufferTurn[], options?: {
|
|
1159
|
-
clearBufferAfterExtraction?: boolean;
|
|
1160
|
-
clearMatchingTurns?: boolean;
|
|
1161
|
-
skipCharThreshold?: boolean;
|
|
1162
|
-
skipUserTurnThreshold?: boolean;
|
|
1163
|
-
deadlineMs?: number;
|
|
1164
|
-
bufferKey?: string;
|
|
1165
|
-
abortSignal?: AbortSignal;
|
|
1166
|
-
failOnExtractionFailure?: boolean;
|
|
1167
|
-
/**
|
|
1168
|
-
* Called immediately after durable extraction persistence returns, before
|
|
1169
|
-
* any metadata, retention, or helper work. Lifecycle callers use this
|
|
1170
|
-
* as the write-rate-limit commit boundary.
|
|
1171
|
-
*/
|
|
1172
|
-
onDurableCommit?: () => void;
|
|
1173
|
-
/**
|
|
1174
|
-
* Explicit namespace override for the write path (#460). When set, this
|
|
1175
|
-
* is the namespace where extraction writes go instead of the one derived
|
|
1176
|
-
* from `defaultNamespaceForPrincipal(resolvePrincipal(sessionKey))`.
|
|
1177
|
-
* The resolved `principal` is still threaded into memory metadata for
|
|
1178
|
-
* provenance; only the storage target is overridden.
|
|
1179
|
-
*/
|
|
1180
|
-
writeNamespaceOverride?: string;
|
|
1181
|
-
/**
|
|
1182
|
-
* Pin the provenance principal instead of deriving it from
|
|
1183
|
-
* `resolvePrincipal(sessionKey)`. When set, this is the identity an
|
|
1184
|
-
* access surface already authenticated; used so observed-turn provenance
|
|
1185
|
-
* is correct even though `turn.sessionKey` is the original key.
|
|
1186
|
-
*/
|
|
1187
|
-
principalOverride?: string;
|
|
1188
|
-
/**
|
|
1189
|
-
* Access scope resolution may already have selected a profile while the
|
|
1190
|
-
* session context remains intentionally unbound. Reuse that plan for
|
|
1191
|
-
* persistence instead of deriving it from shared session state.
|
|
1192
|
-
*/
|
|
1193
|
-
scopeProfileWritePlan?: ResolvedScopeProfilePlan | null;
|
|
1194
|
-
/**
|
|
1195
|
-
* Force the extractor call, bypassing the retry-backoff / circuit-breaker
|
|
1196
|
-
* gate (extraction hot-loop hardening). Set by explicit flush paths.
|
|
1197
|
-
*/
|
|
1198
|
-
forceExtractionAttempt?: boolean;
|
|
1199
|
-
}): Promise<ExtractionRunResult>;
|
|
1200
|
-
}
|
|
1201
|
-
|
|
1202
|
-
/**
|
|
1203
|
-
* Graph-recall coordinator — extracted from the orchestrator (issue #1526).
|
|
1204
|
-
*
|
|
1205
|
-
* Owns the graph-expansion subsystem in recall: spreading-activation
|
|
1206
|
-
* traversal from seed memories, seed-path resolution relative to
|
|
1207
|
-
* per-namespace storage, and the last-graph-recall snapshot persistence.
|
|
1208
|
-
* Behavior-preserving move from orchestrator.ts with bounded graph-state
|
|
1209
|
-
* lookups and optional path scoring. The orchestrator constructs one instance
|
|
1210
|
-
* and keeps thin delegating methods so existing call sites (recallInternal,
|
|
1211
|
-
* cold-fallback pipeline) continue to work.
|
|
1212
|
-
*
|
|
1213
|
-
* Config, storage, graph index, namespace resolution, and QMD result
|
|
1214
|
-
* resolution are accessed through getter callbacks (not captured at
|
|
1215
|
-
* construction) so that post-construction reassignment of the orchestrator's
|
|
1216
|
-
* live fields is honored. This mirrors the RecallRerankCoordinator /
|
|
1217
|
-
* ContradictionLinkingCoordinator accessor pattern.
|
|
1218
|
-
*/
|
|
1219
|
-
|
|
1220
|
-
interface GraphRecallRankedResult {
|
|
1221
|
-
path: string;
|
|
1222
|
-
score: number;
|
|
1223
|
-
docid?: string;
|
|
1224
|
-
sourceLabels: string[];
|
|
1225
|
-
}
|
|
1226
|
-
interface GraphRecallShadowComparison {
|
|
1227
|
-
baselineCount: number;
|
|
1228
|
-
graphCount: number;
|
|
1229
|
-
overlapCount: number;
|
|
1230
|
-
overlapRatio: number;
|
|
1231
|
-
averageOverlapDelta: number;
|
|
1232
|
-
}
|
|
1233
|
-
interface GraphRecallExpansionOptions {
|
|
1234
|
-
memoryResults: QmdSearchResult[];
|
|
1235
|
-
recallNamespaces: string[];
|
|
1236
|
-
recallResultLimit: number;
|
|
1237
|
-
/** Query-time instant used for graph-path invalidity checks. */
|
|
1238
|
-
asOf?: string;
|
|
1239
|
-
asOfMs?: number;
|
|
1240
|
-
deadlineAtMs?: number | null;
|
|
1241
|
-
/** Issue #681 — when true, bypass graphTraversalConfidenceFloor. */
|
|
1242
|
-
includeLowConfidence?: boolean;
|
|
1243
|
-
}
|
|
1244
|
-
interface GraphRecallExpansionResult {
|
|
1245
|
-
merged: QmdSearchResult[];
|
|
1246
|
-
seedPaths: string[];
|
|
1247
|
-
expandedPaths: GraphRecallExpandedEntry[];
|
|
1248
|
-
seedResults: QmdSearchResult[];
|
|
1249
|
-
}
|
|
1250
|
-
declare function mergeGraphExpandedResults(primary: QmdSearchResult[], expanded: QmdSearchResult[]): QmdSearchResult[];
|
|
1251
|
-
declare function graphPathRelativeToStorage(storageDir: string, candidatePath: string): string | null;
|
|
1252
|
-
declare function blendGraphExpandedRecallScore(options: {
|
|
1253
|
-
graphActivationScore: number;
|
|
1254
|
-
seedRecallScore: number;
|
|
1255
|
-
activationWeight: number;
|
|
1256
|
-
blendMin: number;
|
|
1257
|
-
blendMax: number;
|
|
1258
|
-
}): number;
|
|
1259
|
-
declare class GraphRecallCoordinator {
|
|
1260
|
-
private readonly getConfig;
|
|
1261
|
-
private readonly getStorage;
|
|
1262
|
-
private readonly storageFor;
|
|
1263
|
-
private readonly graphIndexFor;
|
|
1264
|
-
private readonly namespaceFromPath;
|
|
1265
|
-
private readonly resolveColdQmdResultForRecall;
|
|
1266
|
-
private readonly storageForAbsoluteQmdResultPath;
|
|
1267
|
-
private readonly readQmdResultMemory;
|
|
1268
|
-
private readonly graphPathStateLoader;
|
|
1269
|
-
constructor(options: {
|
|
1270
|
-
getConfig: () => PluginConfig;
|
|
1271
|
-
getStorage: () => StorageManager;
|
|
1272
|
-
storageFor: (namespace: string) => Promise<StorageManager>;
|
|
1273
|
-
graphIndexFor: (storage: StorageManager) => GraphIndex;
|
|
1274
|
-
namespaceFromPath: (p: string) => string;
|
|
1275
|
-
resolveColdQmdResultForRecall: (result: QmdSearchResult, fallbackStorage: StorageManager, recallNamespaces: readonly string[]) => Promise<{
|
|
1276
|
-
namespace: string;
|
|
1277
|
-
result: QmdSearchResult;
|
|
1278
|
-
} | null>;
|
|
1279
|
-
storageForAbsoluteQmdResultPath: (resultPath: string, fallbackStorage: StorageManager, recallNamespaces: readonly string[]) => Promise<{
|
|
1280
|
-
storage: StorageManager;
|
|
1281
|
-
dir: string;
|
|
1282
|
-
namespace: string;
|
|
1283
|
-
} | null>;
|
|
1284
|
-
readQmdResultMemory: (resultPath: string, fallbackStorage: StorageManager, recallNamespaces: readonly string[], preferredNamespace?: string) => Promise<MemoryFile | null>;
|
|
1285
|
-
});
|
|
1286
|
-
expandResultsViaGraph(options: GraphRecallExpansionOptions): Promise<GraphRecallExpansionResult>;
|
|
1287
|
-
recordLastGraphRecallSnapshot(options: {
|
|
1288
|
-
storage: StorageManager;
|
|
1289
|
-
prompt: string;
|
|
1290
|
-
recallMode: RecallPlanMode;
|
|
1291
|
-
recallNamespaces: string[];
|
|
1292
|
-
seedPaths: string[];
|
|
1293
|
-
expandedPaths: GraphRecallExpandedEntry[];
|
|
1294
|
-
status: "completed" | "skipped" | "aborted";
|
|
1295
|
-
reason?: string;
|
|
1296
|
-
shadowMode?: boolean;
|
|
1297
|
-
queryIntent: MemoryIntent;
|
|
1298
|
-
seedResults?: GraphRecallRankedResult[];
|
|
1299
|
-
finalResults?: GraphRecallRankedResult[];
|
|
1300
|
-
shadowComparison?: GraphRecallShadowComparison;
|
|
1301
|
-
}): Promise<void>;
|
|
1302
|
-
private graphSeedPathRelativeToStorage;
|
|
1303
|
-
private graphSeedPathsWithinDeadline;
|
|
1304
|
-
}
|
|
1305
|
-
|
|
1306
|
-
/**
|
|
1307
|
-
* Turn-ingestion coordinator — extracted from the orchestrator
|
|
1308
|
-
* (issue #1526, seam 20).
|
|
1309
|
-
*
|
|
1310
|
-
* Owns the buffer-side entry points that feed the extraction pipeline:
|
|
1311
|
-
* - processTurn (per-turn buffering + trigger-mode flush decisions)
|
|
1312
|
-
* - observeSessionHeartbeat (heartbeat-driven extraction observer)
|
|
1313
|
-
* - queueBufferedExtraction (dedupe-gated extraction queueing)
|
|
1314
|
-
* - ingestReplayBatch / ingestBulkImportBatch (batch ingestion)
|
|
1315
|
-
* - maybeCapturePassiveCorrections (passive correction capture)
|
|
1316
|
-
*
|
|
1317
|
-
* Behavior-preserving move from orchestrator.ts. The orchestrator keeps
|
|
1318
|
-
* thin delegating methods; every member the moved code consults flows
|
|
1319
|
-
* back through TurnIngestionDeps live accessors/arrows so prototype-call
|
|
1320
|
-
* tests (Orchestrator.prototype.processTurn.call(fake, …)) and instance
|
|
1321
|
-
* stubs keep working (same late-binding rule as seams 18/19).
|
|
1322
|
-
*/
|
|
1323
|
-
|
|
1324
|
-
/**
|
|
1325
|
-
* Options for {@link TurnIngestionCoordinator.processTurn}.
|
|
1326
|
-
* Extends {@link SourceConnectorProvenance} to thread trusted connector identity.
|
|
1327
|
-
*/
|
|
1328
|
-
interface TurnIngestionOptions extends SourceConnectorProvenance {
|
|
1329
|
-
bufferKey?: string;
|
|
1330
|
-
logicalSessionKey?: string;
|
|
1331
|
-
providerThreadId?: string | null;
|
|
1332
|
-
turnFingerprint?: string;
|
|
1333
|
-
}
|
|
1334
|
-
|
|
1335
|
-
/**
|
|
1336
|
-
* Recall-introspection coordinator — extracted from the orchestrator
|
|
1337
|
-
* (issue #1526, seam 21).
|
|
1338
|
-
*
|
|
1339
|
-
* Owns the recall observability surfaces:
|
|
1340
|
-
* - last-intent / last-graph-recall / last-QMD-recall snapshot
|
|
1341
|
-
* recording, reading, and explain rendering
|
|
1342
|
-
* - console faithfulness distribution
|
|
1343
|
-
* - background direct-answer tier annotation (observation mode, #518)
|
|
1344
|
-
*
|
|
1345
|
-
* Behavior-preserving move from orchestrator.ts. The orchestrator keeps
|
|
1346
|
-
* thin delegating methods; all member access flows back through
|
|
1347
|
-
* RecallIntrospectionDeps live accessors/arrows (late-binding rule,
|
|
1348
|
-
* seams 18–20).
|
|
1349
|
-
*/
|
|
1350
|
-
|
|
1351
|
-
interface RecallIntrospectionDeps {
|
|
1352
|
-
annotateDirectAnswerTier(prompt: string, sessionKey: string, namespaces: string[], expectedIdentity: {
|
|
1353
|
-
writeNonce?: string;
|
|
1354
|
-
traceId?: string;
|
|
1355
|
-
recordedAt?: string;
|
|
1356
|
-
} | undefined, caps: CapabilitySet, _parentAbortSignal?: AbortSignal): Promise<void>;
|
|
1357
|
-
readonly config: PluginConfig;
|
|
1358
|
-
directAnswerObservationChain: Promise<void>;
|
|
1359
|
-
effectiveCronRecallInstructionHeavyTokenCap(): number;
|
|
1360
|
-
readonly faithfulnessCounters: FaithfulnessGateCounters;
|
|
1361
|
-
getCodingContextForSession(sessionKey: string | undefined): CodingContext | null;
|
|
1362
|
-
getStorage(namespace?: string): Promise<StorageManager>;
|
|
1363
|
-
readonly graphRecallCoordinator: GraphRecallCoordinator;
|
|
1364
|
-
readonly lastRecall: LastRecallStore;
|
|
1365
|
-
trackRecallBackgroundWrite(promise: Promise<void>, label: string): void;
|
|
1366
|
-
resolveStateDirForNamespace(namespace: string): Promise<string>;
|
|
1367
|
-
readonly storageRouter: NamespaceStorageRouter;
|
|
1368
|
-
}
|
|
1369
|
-
declare class RecallIntrospectionCoordinator {
|
|
1370
|
-
private readonly deps;
|
|
1371
|
-
constructor(deps: RecallIntrospectionDeps);
|
|
1372
|
-
/**
|
|
1373
|
-
* Faithfulness gate verdict distribution (issue #1576). Consumed by the
|
|
1374
|
-
* console-state aggregator so `remnic doctor` can render how the gate is
|
|
1375
|
-
* performing. Returns a fresh object so callers cannot mutate the
|
|
1376
|
-
* internal counters. Returns `undefined` when the gate is off so the
|
|
1377
|
-
* console-state snapshot omits the faithfulness block entirely (cursor
|
|
1378
|
-
* review: an all-zero block would otherwise always be truthy and leak
|
|
1379
|
-
* into snapshots that document it as absent-when-off).
|
|
1380
|
-
*/
|
|
1381
|
-
getConsoleFaithfulnessDistribution(): FaithfulnessGateCounters | undefined;
|
|
1382
|
-
getLastGraphRecallSnapshot(namespace?: string): Promise<GraphRecallSnapshot | null>;
|
|
1383
|
-
getLastIntentSnapshot(namespace?: string): Promise<IntentDebugSnapshot | null>;
|
|
1384
|
-
getLastQmdRecallSnapshot(namespace?: string): Promise<QmdRecallSnapshot | null>;
|
|
1385
|
-
explainLastGraphRecall(options?: {
|
|
1386
|
-
namespace?: string;
|
|
1387
|
-
maxExpanded?: number;
|
|
1388
|
-
}): Promise<string>;
|
|
1389
|
-
explainLastIntent(options?: {
|
|
1390
|
-
namespace?: string;
|
|
1391
|
-
}): Promise<string>;
|
|
1392
|
-
explainLastQmdRecall(options?: {
|
|
1393
|
-
namespace?: string;
|
|
1394
|
-
maxResults?: number;
|
|
1395
|
-
}): Promise<string>;
|
|
1396
|
-
/**
|
|
1397
|
-
* Await the in-flight observation-mode direct-answer annotation chain.
|
|
1398
|
-
* Resolves to true when settled, false on timeout.
|
|
1399
|
-
*/
|
|
1400
|
-
waitForDirectAnswerObservationIdle(timeoutMs?: number): Promise<boolean>;
|
|
1401
|
-
enqueueDirectAnswerObservation(prompt: string, sessionKey: string, namespaceOverride: string | undefined, principalOverride: string | undefined, caps: CapabilitySet, namespacesEnabled: boolean): void;
|
|
1402
|
-
annotateDirectAnswerTier(prompt: string, sessionKey: string, namespaces: string[], expectedIdentity: {
|
|
1403
|
-
writeNonce?: string;
|
|
1404
|
-
traceId?: string;
|
|
1405
|
-
recordedAt?: string;
|
|
1406
|
-
} | undefined, caps: CapabilitySet, _parentAbortSignal?: AbortSignal): Promise<void>;
|
|
1407
|
-
recordLastGraphRecallSnapshot(options: {
|
|
1408
|
-
storage: StorageManager;
|
|
1409
|
-
prompt: string;
|
|
1410
|
-
recallMode: RecallPlanMode;
|
|
1411
|
-
recallNamespaces: string[];
|
|
1412
|
-
seedPaths: string[];
|
|
1413
|
-
expandedPaths: GraphRecallExpandedEntry[];
|
|
1414
|
-
status: "completed" | "skipped" | "aborted";
|
|
1415
|
-
reason?: string;
|
|
1416
|
-
shadowMode?: boolean;
|
|
1417
|
-
queryIntent: MemoryIntent;
|
|
1418
|
-
seedResults?: GraphRecallRankedResult[];
|
|
1419
|
-
finalResults?: GraphRecallRankedResult[];
|
|
1420
|
-
shadowComparison?: GraphRecallShadowComparison;
|
|
1421
|
-
}): Promise<void>;
|
|
1422
|
-
recordLastIntentSnapshot(options: {
|
|
1423
|
-
storage: StorageManager;
|
|
1424
|
-
snapshot: IntentDebugSnapshot;
|
|
1425
|
-
}): Promise<void>;
|
|
1426
|
-
recordLastQmdRecallSnapshot(options: {
|
|
1427
|
-
storage: StorageManager;
|
|
1428
|
-
snapshot: QmdRecallSnapshot;
|
|
1429
|
-
}): Promise<void>;
|
|
1430
|
-
recordLastIntentSnapshotForNamespace(options: {
|
|
1431
|
-
namespace: string;
|
|
1432
|
-
snapshot: IntentDebugSnapshot;
|
|
1433
|
-
}): Promise<void>;
|
|
1434
|
-
}
|
|
1435
|
-
|
|
1436
|
-
/**
|
|
1437
|
-
* Session-context coordinator — extracted from the orchestrator
|
|
1438
|
-
* (issue #1526, seam 28).
|
|
1439
|
-
*
|
|
1440
|
-
* Owns per-session binding surfaces and session-facing service glue:
|
|
1441
|
-
* - peer-id and coding-context bindings (incl. namespace overlay)
|
|
1442
|
-
* - LCM read-namespace resolution for a session
|
|
1443
|
-
* - session flush, passive-correction service construction
|
|
1444
|
-
* - day-summary generation and deep-sleep governance triggers
|
|
1445
|
-
*
|
|
1446
|
-
* Behavior-preserving move (late-binding selfDeps wiring, seams 18–27).
|
|
1447
|
-
*/
|
|
1448
|
-
|
|
1449
|
-
interface SessionFlushOptions {
|
|
1450
|
-
reason: string;
|
|
1451
|
-
abortSignal?: AbortSignal;
|
|
1452
|
-
bufferKey?: string;
|
|
1453
|
-
clearMatchingTurns?: boolean;
|
|
1454
|
-
extractionDeadlineMs?: number;
|
|
1455
|
-
writeNamespaceOverride?: string;
|
|
1456
|
-
/** Called at the first durable extraction commit in this flush. */
|
|
1457
|
-
onCommitted?: () => void;
|
|
1458
|
-
failOnExtractionFailure?: boolean;
|
|
1459
|
-
/** Resolved profile plan from access scope resolution; avoids recomputing from shared session context. */
|
|
1460
|
-
scopeProfileWritePlan?: ResolvedScopeProfilePlan | null;
|
|
1461
|
-
principalOverride?: string;
|
|
1462
|
-
}
|
|
1463
|
-
|
|
1464
|
-
/**
|
|
1465
|
-
* Orchestrator module-level helpers — relocated from orchestrator.ts
|
|
1466
|
-
* (issue #1526, seam 25).
|
|
1467
|
-
*
|
|
1468
|
-
* Pure functions, types, and constants that previously lived at module
|
|
1469
|
-
* level in orchestrator.ts: recall-mode planning, recall snapshots and
|
|
1470
|
-
* parsers, abort/race helpers, artifact recall limits, replay
|
|
1471
|
-
* source-time slicing, day-summary date utilities, and QMD startup
|
|
1472
|
-
* checks. orchestrator.ts re-exports the previously-public names so
|
|
1473
|
-
* every existing importer (coordinators, tests, root shims) keeps
|
|
1474
|
-
* working unchanged.
|
|
1475
|
-
*
|
|
1476
|
-
* Behavior-preserving move — no logic changes.
|
|
1477
|
-
*/
|
|
1478
|
-
|
|
1479
|
-
interface BulkImportBatchIngestResult {
|
|
1480
|
-
attemptedTurnCount: number;
|
|
1481
|
-
extractionCount: number;
|
|
1482
|
-
persistedCount: number;
|
|
1483
|
-
durableOutputCount: number;
|
|
1484
|
-
skippedCount: number;
|
|
1485
|
-
failedCount: number;
|
|
1486
|
-
postPersistMetadataFailureCount: number;
|
|
1487
|
-
processedTurnCount: number;
|
|
1488
|
-
}
|
|
1489
|
-
declare class BulkImportBatchPartialFailureError extends Error {
|
|
1490
|
-
readonly partialResult: BulkImportBatchIngestResult;
|
|
1491
|
-
readonly originalError: unknown;
|
|
1492
|
-
constructor(message: string, partialResult: BulkImportBatchIngestResult, originalError: unknown);
|
|
1493
|
-
}
|
|
1494
|
-
interface GraphRecallSnapshot {
|
|
1495
|
-
recordedAt: string;
|
|
1496
|
-
mode: RecallPlanMode | string;
|
|
1497
|
-
queryHash: string;
|
|
1498
|
-
queryLength: number;
|
|
1499
|
-
namespaces: string[];
|
|
1500
|
-
seedCount: number;
|
|
1501
|
-
expandedCount: number;
|
|
1502
|
-
seeds: string[];
|
|
1503
|
-
expanded: GraphRecallExpandedEntry[];
|
|
1504
|
-
status?: "completed" | "skipped" | "aborted";
|
|
1505
|
-
reason?: string;
|
|
1506
|
-
shadowMode?: boolean;
|
|
1507
|
-
queryIntent?: MemoryIntent;
|
|
1508
|
-
seedResults?: GraphRecallRankedResult[];
|
|
1509
|
-
finalResults?: GraphRecallRankedResult[];
|
|
1510
|
-
shadowComparison?: GraphRecallShadowComparison;
|
|
1511
|
-
}
|
|
1512
|
-
interface IntentDebugSnapshot {
|
|
1513
|
-
recordedAt: string;
|
|
1514
|
-
promptHash: string;
|
|
1515
|
-
promptLength: number;
|
|
1516
|
-
retrievalQueryHash: string;
|
|
1517
|
-
retrievalQueryLength: number;
|
|
1518
|
-
plannerEnabled: boolean;
|
|
1519
|
-
plannedMode: RecallPlanMode;
|
|
1520
|
-
effectiveMode: RecallPlanMode;
|
|
1521
|
-
recallResultLimit: number;
|
|
1522
|
-
queryIntent: MemoryIntent;
|
|
1523
|
-
graphExpandedIntentDetected: boolean;
|
|
1524
|
-
graphDecision: {
|
|
1525
|
-
status: "not_requested" | "skipped" | "completed" | "aborted";
|
|
1526
|
-
reason?: string;
|
|
1527
|
-
shadowMode: boolean;
|
|
1528
|
-
qmdAvailable: boolean;
|
|
1529
|
-
graphRecallEnabled: boolean;
|
|
1530
|
-
multiGraphMemoryEnabled: boolean;
|
|
1531
|
-
};
|
|
1532
|
-
}
|
|
1533
|
-
interface QmdRecallSnapshot {
|
|
1534
|
-
recordedAt: string;
|
|
1535
|
-
queryHash: string;
|
|
1536
|
-
queryLength: number;
|
|
1537
|
-
collection?: string;
|
|
1538
|
-
namespaces: string[];
|
|
1539
|
-
fetchLimit: number;
|
|
1540
|
-
primaryResultCount: number;
|
|
1541
|
-
hybridResultCount: number;
|
|
1542
|
-
queryAwareSeedCount: number;
|
|
1543
|
-
resultCount: number;
|
|
1544
|
-
intentHint?: string;
|
|
1545
|
-
explainEnabled: boolean;
|
|
1546
|
-
hybridTopUpUsed: boolean;
|
|
1547
|
-
hybridTopUpSkippedReason?: string;
|
|
1548
|
-
results: QmdSearchResult[];
|
|
1549
|
-
}
|
|
1550
|
-
interface RecallModeDecision {
|
|
1551
|
-
plannedMode: RecallPlanMode;
|
|
1552
|
-
effectiveMode: RecallPlanMode;
|
|
1553
|
-
graphExpandedIntentDetected: boolean;
|
|
1554
|
-
graphReason?: string;
|
|
1555
|
-
/**
|
|
1556
|
-
* Where `plannedMode` came from (issue #1367 / Option C). `"heuristic"` for
|
|
1557
|
-
* the regex planner; `"llm"` when the LLM planner classified it; and
|
|
1558
|
-
* `"heuristic-fallback"` when the LLM was enabled but errored/timed out and we
|
|
1559
|
-
* fell back. Absent on the synchronous heuristic-only path.
|
|
1560
|
-
*/
|
|
1561
|
-
plannerSource?: "heuristic" | "llm" | "heuristic-fallback";
|
|
1562
|
-
/** Short rationale from the planner (for telemetry / x-ray). */
|
|
1563
|
-
plannerReason?: string;
|
|
1564
|
-
/** Wall-clock spent in the LLM planner call, when one was made. */
|
|
1565
|
-
plannerLatencyMs?: number;
|
|
1566
|
-
/** True when the LLM planner was enabled but fell back to the heuristic. */
|
|
1567
|
-
plannerFallbackUsed?: boolean;
|
|
1568
|
-
/** Model that served the LLM classification, when one was used. */
|
|
1569
|
-
plannerModelUsed?: string;
|
|
1570
|
-
/**
|
|
1571
|
-
* The regex-heuristic baseline mode, captured whenever the LLM planner ran
|
|
1572
|
-
* (any source). Lets operators compare planned-vs-heuristic during rollout —
|
|
1573
|
-
* distinct from `plannedMode`, which on the LLM path is the LLM's choice.
|
|
1574
|
-
*/
|
|
1575
|
-
plannerHeuristicMode?: RecallPlanMode;
|
|
1576
|
-
/**
|
|
1577
|
-
* In shadow mode, the mode the LLM *would* have chosen (recorded for
|
|
1578
|
-
* comparison) while `effectiveMode` stays on the heuristic decision.
|
|
1579
|
-
*/
|
|
1580
|
-
shadowLlmMode?: RecallPlanMode;
|
|
1581
|
-
}
|
|
1582
|
-
/**
|
|
1583
|
-
* Map the orchestrator's internal `recallSource` strings to the
|
|
1584
|
-
* X-ray `servedBy` vocabulary (issue #570 PR 1). The X-ray tier
|
|
1585
|
-
* ladder intentionally flattens QMD / embedding / cold-fallback to
|
|
1586
|
-
* the `hybrid` tier because they all materialize through the same
|
|
1587
|
-
* hybrid BM25+vector pipeline from the caller's perspective. The
|
|
1588
|
-
* `recent_scan` path gets its own dedicated tier because it bypasses
|
|
1589
|
-
* the hybrid pipeline entirely. `none` is treated as `hybrid` on the
|
|
1590
|
-
* theory that a query that returned nothing still routed through the
|
|
1591
|
-
* hybrid pipeline — but callers should normally gate capture on
|
|
1592
|
-
* `recalledMemoryIds.length > 0`.
|
|
1593
|
-
*/
|
|
1594
|
-
declare function mapRecallSourceToXrayServedBy(source: "none" | "hot_qmd" | "hot_embedding" | "cold_fallback" | "recent_scan"): RecallXrayServedBy;
|
|
1595
|
-
interface RecallInvocationOptions {
|
|
1596
|
-
namespace?: string;
|
|
1597
|
-
topK?: number;
|
|
1598
|
-
mode?: RecallPlanMode;
|
|
1599
|
-
abortSignal?: AbortSignal;
|
|
1600
|
-
/** Server-resolved identity of the connector performing this recall. */
|
|
1601
|
-
sourceConnector?: string;
|
|
1602
|
-
/**
|
|
1603
|
-
* Capture a `RecallXraySnapshot` for this recall (issue #570). When
|
|
1604
|
-
* `true`, the orchestrator builds a snapshot from the data it has
|
|
1605
|
-
* already gathered and stashes it in memory, accessible via
|
|
1606
|
-
* `getLastXraySnapshot()`. When `false` or absent, nothing is
|
|
1607
|
-
* captured and recall behavior is unchanged (schema-only slice).
|
|
1608
|
-
*/
|
|
1609
|
-
xrayCapture?: boolean;
|
|
1610
|
-
/**
|
|
1611
|
-
* Per-invocation override for `recallBudgetChars` (issue #570 PR 3/4).
|
|
1612
|
-
* Flows through `getRecallBudgetChars()` for this recall only — no
|
|
1613
|
-
* shared config mutation, so concurrent recalls on the same
|
|
1614
|
-
* orchestrator are not affected (CLAUDE.md rule 47: no shared
|
|
1615
|
-
* mutable state across async boundaries). Must be a non-negative
|
|
1616
|
-
* finite integer; non-conforming values are ignored and the
|
|
1617
|
-
* configured budget is used.
|
|
1618
|
-
*/
|
|
1619
|
-
budgetCharsOverride?: number;
|
|
1620
|
-
/**
|
|
1621
|
-
* Per-invocation principal override (issue #570 PR 4). When set,
|
|
1622
|
-
* the orchestrator uses this principal for ACL / namespace checks
|
|
1623
|
-
* instead of `resolvePrincipal(sessionKey, config)`. This is the
|
|
1624
|
-
* escape hatch for access surfaces (HTTP / MCP) that have already
|
|
1625
|
-
* authenticated the caller upstream — threading an unmapped
|
|
1626
|
-
* principal through the session-key-based resolver would otherwise
|
|
1627
|
-
* collapse it to `"default"` and produce false denials in
|
|
1628
|
-
* namespace-enabled deployments (CLAUDE.md rule 42).
|
|
1629
|
-
*/
|
|
1630
|
-
principalOverride?: string;
|
|
1631
|
-
/**
|
|
1632
|
-
* Historical recall point (issue #680). When set, the orchestrator
|
|
1633
|
-
* filters out memories whose `valid_at` is after this timestamp OR
|
|
1634
|
-
* whose `invalid_at` is at-or-before this timestamp, so callers see
|
|
1635
|
-
* the corpus as it existed at `asOf`. ISO 8601 string; comparisons
|
|
1636
|
-
* use `Date.parse()` so timezone-aware values round-trip correctly
|
|
1637
|
-
* (CLAUDE.md gotcha — never compare ISO strings lexicographically).
|
|
1638
|
-
* Invalid values must be rejected at input boundaries (CLAUDE.md
|
|
1639
|
-
* rule 51); the orchestrator does NOT silently fall back here.
|
|
1640
|
-
*/
|
|
1641
|
-
asOf?: string;
|
|
1642
|
-
/**
|
|
1643
|
-
* Issue #681 — when `true`, bypasses `graphTraversalConfidenceFloor`
|
|
1644
|
-
* and includes edges below the floor in graph traversal. Useful for
|
|
1645
|
-
* diagnostic recall queries that need to surface results that would
|
|
1646
|
-
* normally be pruned by confidence decay. Default `false`.
|
|
1647
|
-
*/
|
|
1648
|
-
includeLowConfidence?: boolean;
|
|
1649
|
-
/**
|
|
1650
|
-
* #1952 — per-call override enabling state-aware recall views for this
|
|
1651
|
-
* recall only (MCP `stateView` boolean). ORs with the `recallStateViews`
|
|
1652
|
-
* config flag; a change-intent query is still required for any effect.
|
|
1653
|
-
*/
|
|
1654
|
-
stateView?: boolean;
|
|
1655
|
-
/**
|
|
1656
|
-
* User-aware context scopes active for this recall. Used by X-ray
|
|
1657
|
-
* provenance safety checks so boundary-scoped memories are evaluated
|
|
1658
|
-
* against the caller's real context.
|
|
1659
|
-
*/
|
|
1660
|
-
currentContextScopes?: readonly unknown[];
|
|
1661
|
-
/**
|
|
1662
|
-
* Wall-clock ms the caller waited to begin execution — per-principal
|
|
1663
|
-
* semaphore queue + single-flight wait (issue #1906). Folded into
|
|
1664
|
-
* recall-timings additively as `queueWaitMs`; omitted phases are simply
|
|
1665
|
-
* absent, so existing timing consumers are unaffected.
|
|
1666
|
-
*/
|
|
1667
|
-
queueWaitMs?: number;
|
|
1668
|
-
onContextComposition?: (composition: RecallContextComposition) => void | PromiseLike<void>;
|
|
1669
|
-
}
|
|
1670
|
-
type QueryAwarePrefilter = {
|
|
1671
|
-
candidatePaths: Set<string> | null;
|
|
1672
|
-
temporalFromDate: string | null;
|
|
1673
|
-
matchedTags: string[];
|
|
1674
|
-
expandedTags: string[];
|
|
1675
|
-
combination: "none" | "temporal" | "tag" | "intersection" | "union";
|
|
1676
|
-
filteredToFullSearch: boolean;
|
|
1677
|
-
};
|
|
1678
|
-
declare function throwIfRecallAborted(signal?: AbortSignal, message?: string): void;
|
|
1679
|
-
declare function raceRecallAbort<T>(promise: Promise<T>, signal?: AbortSignal, message?: string): Promise<T>;
|
|
1680
|
-
/** Maximum age (ms) before a compaction-reset signal file is considered stale and removed. */
|
|
1681
|
-
declare const COMPACTION_SIGNAL_MAX_AGE_MS: number;
|
|
1682
|
-
type DaySummaryGatherOptions = {
|
|
1683
|
-
timeZone?: string;
|
|
1684
|
-
now?: Date;
|
|
1685
|
-
/** Opt-in location context (issue #2925); false/absent keeps output byte-identical. */
|
|
1686
|
-
includeLocation?: boolean;
|
|
1687
|
-
};
|
|
1688
|
-
declare function normalizeIanaTimeZone(value: unknown): string | undefined;
|
|
1689
|
-
declare function formatDateInTimeZone(date: Date, timeZone: string): string;
|
|
1690
|
-
declare function utcDateKeysForLocalDay(date: Date, timeZone: string): string[];
|
|
1691
|
-
declare function parseFiniteDate(value: unknown): Date | null;
|
|
1692
|
-
declare function filterHourlySummaryMarkdownForLocalDay(raw: string, utcDate: string, timeZone: string, targetLocalDate: string): string | null;
|
|
1693
|
-
type SearchCollectionState = "present" | "missing" | "unknown" | "skipped";
|
|
1694
|
-
declare function qmdStartupCollectionCheckWithTimeout(promise: Promise<SearchCollectionState>, controller: AbortController, label: string): Promise<SearchCollectionState>;
|
|
1695
|
-
/** Default workspace directory when no per-agent or config workspace is available. */
|
|
1696
|
-
declare function defaultWorkspaceDir(): string;
|
|
1697
|
-
/**
|
|
1698
|
-
* Produce a collision-resistant, filesystem-safe identifier from a session key.
|
|
1699
|
-
*
|
|
1700
|
-
* Session keys follow colon-delimited forms (e.g., `agent:gpucodebot:main`).
|
|
1701
|
-
* A naive replace (`:` → `_`) is lossy: different keys like `agent:alpha` and
|
|
1702
|
-
* `agent/alpha` would collide. Instead we append a short SHA-256 hash of the
|
|
1703
|
-
* original key to the human-readable sanitized prefix, guaranteeing uniqueness
|
|
1704
|
-
* while keeping filenames debuggable.
|
|
1705
|
-
*
|
|
1706
|
-
* Format: `<sanitized>-<12-char-hex-hash>`
|
|
1707
|
-
* Example: `agent:gpucodebot:main` → `agent_gpucodebot_main-a1b2c3d4e5f6`
|
|
1708
|
-
*/
|
|
1709
|
-
declare function sanitizeSessionKeyForFilename(sessionKey: string): string;
|
|
1710
|
-
declare function targetSourceValidAtSortMs(turns: readonly BufferTurn[]): number;
|
|
1711
|
-
declare function splitTurnsBySourceValidAt(turns: readonly BufferTurn[], options?: {
|
|
1712
|
-
includeContext?: boolean;
|
|
1713
|
-
}): BufferTurn[][];
|
|
1714
|
-
declare function isArtifactMemoryPath(filePath: string): boolean;
|
|
1715
|
-
declare function buildCompressionGuidelinesMarkdown(events: MemoryActionEvent[], generatedAtIso?: string): string;
|
|
1716
|
-
declare function applyQueryAwareCandidateFilter(candidates: QmdSearchResult[], candidatePaths: Set<string> | null): QmdSearchResult[];
|
|
1717
|
-
declare function tokenizeRecallQuery(prompt: string): string[];
|
|
1718
|
-
declare function shouldFilterLifecycleRecallCandidate(frontmatter: MemoryFrontmatter, options: {
|
|
1719
|
-
lifecyclePolicyEnabled: boolean;
|
|
1720
|
-
lifecycleFilterStaleEnabled: boolean;
|
|
1721
|
-
}): boolean;
|
|
1722
|
-
declare function lifecycleRecallScoreAdjustment(frontmatter: MemoryFrontmatter, options: {
|
|
1723
|
-
lifecyclePolicyEnabled: boolean;
|
|
1724
|
-
}): number;
|
|
1725
|
-
declare function computeArtifactRecallLimit(recallMode: RecallPlanMode, recallResultLimit: number, verbatimArtifactsMaxRecall: number): number;
|
|
1726
|
-
declare function resolveEffectiveRecallMode(options: {
|
|
1727
|
-
plannerEnabled: boolean;
|
|
1728
|
-
graphRecallEnabled: boolean;
|
|
1729
|
-
multiGraphMemoryEnabled: boolean;
|
|
1730
|
-
graphExpandedIntentEnabled?: boolean;
|
|
1731
|
-
prompt: string;
|
|
1732
|
-
}): RecallPlanMode;
|
|
1733
|
-
interface RecallModeGraphOptions {
|
|
1734
|
-
plannerEnabled: boolean;
|
|
1735
|
-
graphRecallEnabled: boolean;
|
|
1736
|
-
multiGraphMemoryEnabled: boolean;
|
|
1737
|
-
graphExpandedIntentEnabled?: boolean;
|
|
1738
|
-
prompt: string;
|
|
1739
|
-
}
|
|
1740
|
-
declare function resolveRecallModeDecision(options: RecallModeGraphOptions): RecallModeDecision;
|
|
1741
|
-
/**
|
|
1742
|
-
* Async recall-mode decision with optional LLM-based planning (issue #1367 /
|
|
1743
|
-
* Option C). Falls back to the heuristic decision when the LLM planner is
|
|
1744
|
-
* disabled, in shadow mode, or unavailable/failed — so this is always safe to
|
|
1745
|
-
* await on the recall hot path. Provider-agnostic: the LLM call routes through
|
|
1746
|
-
* the gateway/fallback chain.
|
|
1747
|
-
*
|
|
1748
|
-
* `recallPlannerEnabled === false` keeps the legacy "always full" behavior and
|
|
1749
|
-
* skips the LLM entirely (the planner as a whole is off).
|
|
1750
|
-
*/
|
|
1751
|
-
declare function resolveRecallModeDecisionAsync(options: RecallModeGraphOptions & {
|
|
1752
|
-
config: PluginConfig;
|
|
1753
|
-
/**
|
|
1754
|
-
* Recall-operation capability gates (issue #1523). REQUIRED: the recall
|
|
1755
|
-
* orchestrator always passes a resolved set — the LLM planner gate reads
|
|
1756
|
-
* `caps.recallPlannerLlm`, never re-derives from config.
|
|
1757
|
-
*/
|
|
1758
|
-
caps: CapabilitySet;
|
|
1759
|
-
hints?: string[];
|
|
1760
|
-
llm?: FallbackLlmClient;
|
|
1761
|
-
signal?: AbortSignal;
|
|
1762
|
-
}): Promise<RecallModeDecision>;
|
|
1763
|
-
declare function computeArtifactCandidateFetchLimit(targetCount: number): number;
|
|
1764
|
-
declare function computeQmdHybridFetchLimit(recallFetchLimit: number, artifactsEnabled: boolean, maxArtifactRecall: number): number;
|
|
1765
|
-
declare function summarizeGraphShadowComparison(baseline: QmdSearchResult[], merged: QmdSearchResult[], topN: number): {
|
|
1766
|
-
baselineCount: number;
|
|
1767
|
-
graphCount: number;
|
|
1768
|
-
overlapCount: number;
|
|
1769
|
-
overlapRatio: number;
|
|
1770
|
-
averageOverlapDelta: number;
|
|
1771
|
-
};
|
|
1772
|
-
declare function parseGraphRecallRankedResults(value: unknown): GraphRecallRankedResult[];
|
|
1773
|
-
declare function parseMemoryIntentSnapshot(value: unknown): MemoryIntent;
|
|
1774
|
-
declare function parseQmdRecallResults(value: unknown): QmdSearchResult[];
|
|
1775
|
-
declare function mergeArtifactRecallCandidates(candidatesByNamespace: MemoryFile[][], limit: number): MemoryFile[];
|
|
1776
|
-
declare function resolveRecentThreadMemoryPaths(options: {
|
|
1777
|
-
threadEpisodeIds: string[];
|
|
1778
|
-
currentMemoryId: string;
|
|
1779
|
-
allMemsForGraph: MemoryFile[] | null | undefined;
|
|
1780
|
-
pathById?: Map<string, string>;
|
|
1781
|
-
storageDir: string;
|
|
1782
|
-
maxRecent: number;
|
|
1783
|
-
}): string[];
|
|
1784
|
-
declare function buildMemoryPathById(allMemsForGraph: MemoryFile[] | null | undefined, storageDir: string): Map<string, string>;
|
|
1785
|
-
declare function appendMemoryToGraphContext(options: {
|
|
1786
|
-
allMemsForGraph: MemoryFile[] | null | undefined;
|
|
1787
|
-
storageDir: string;
|
|
1788
|
-
memoryRelPath: string;
|
|
1789
|
-
memoryId: string;
|
|
1790
|
-
category: MemoryFile["frontmatter"]["category"];
|
|
1791
|
-
content: string;
|
|
1792
|
-
entityRef: string | undefined;
|
|
1793
|
-
}): void;
|
|
1794
|
-
declare function resolvePersistedMemoryRelativePath(options: {
|
|
1795
|
-
memoryId: string;
|
|
1796
|
-
pathById: Map<string, string>;
|
|
1797
|
-
category: string;
|
|
1798
|
-
}): string;
|
|
1799
|
-
|
|
1800
|
-
interface QmdStartupCollectionCheckResult {
|
|
1801
|
-
namespace: string;
|
|
1802
|
-
state: SearchCollectionState;
|
|
1803
|
-
}
|
|
1804
|
-
/**
|
|
1805
|
-
* Bound the complete startup collection-check batch, not just each individual
|
|
1806
|
-
* check. This preserves service availability when a backend ignores an abort
|
|
1807
|
-
* signal or a check promise never settles: startup continues with fail-open
|
|
1808
|
-
* `unknown` states and the normal background retry path can repair search.
|
|
1809
|
-
*/
|
|
1810
|
-
declare function qmdStartupCollectionChecksWithTimeout(checks: readonly Promise<QmdStartupCollectionCheckResult>[], namespaces: readonly string[], timeoutMs?: number): Promise<QmdStartupCollectionCheckResult[]>;
|
|
1811
|
-
|
|
1812
|
-
type NamespaceMaintenanceJobName = string;
|
|
1813
|
-
type NamespaceMaintenanceSkipReason = "fanout_disabled" | "empty_root" | "branch_disabled" | "project_disabled" | "team_project_disabled" | "catalog_read_failed" | "unsafe_or_stale_root" | "budget_exhausted" | "lock_held" | "batch_lock_incomplete" | "throttled" | "job_failed";
|
|
1814
|
-
interface NamespaceMaintenanceCandidate {
|
|
1815
|
-
namespace: string;
|
|
1816
|
-
kind: NamespaceKind;
|
|
1817
|
-
storageDir?: string;
|
|
1818
|
-
source: "configured" | "catalog";
|
|
1819
|
-
lastWriteAt?: string;
|
|
1820
|
-
lastMaintenanceAt?: string;
|
|
1821
|
-
}
|
|
1822
|
-
interface NamespaceMaintenanceRunStatus {
|
|
1823
|
-
namespace: string;
|
|
1824
|
-
jobName: NamespaceMaintenanceJobName;
|
|
1825
|
-
state: "ran" | "skipped" | "failed";
|
|
1826
|
-
reason?: NamespaceMaintenanceSkipReason;
|
|
1827
|
-
startedAt: string;
|
|
1828
|
-
completedAt: string;
|
|
1829
|
-
itemCount?: number;
|
|
1830
|
-
error?: string;
|
|
1831
|
-
}
|
|
1832
|
-
interface NamespaceMaintenanceSummary {
|
|
1833
|
-
jobName: NamespaceMaintenanceJobName;
|
|
1834
|
-
generatedAt: string;
|
|
1835
|
-
ran: number;
|
|
1836
|
-
skipped: number;
|
|
1837
|
-
failed: number;
|
|
1838
|
-
statuses: NamespaceMaintenanceRunStatus[];
|
|
1839
|
-
}
|
|
1840
|
-
|
|
1841
|
-
/**
|
|
1842
|
-
* Namespace maintenance fanout coordinator (issue #1500).
|
|
1843
|
-
*
|
|
1844
|
-
* Builds on the namespace-aware maintenance planner (#1499 / #1517) to fan out
|
|
1845
|
-
* the REMAINING background maintenance jobs — dreams, pattern reinforcement,
|
|
1846
|
-
* governance/lifecycle, contradiction scans, semantic/causal consolidation,
|
|
1847
|
-
* graph decay, fact archival, tier migration — across all maintained
|
|
1848
|
-
* namespaces.
|
|
1849
|
-
*
|
|
1850
|
-
* The planner (`namespace-planner.ts`) already handles namespace discovery
|
|
1851
|
-
* (configured + catalog), per-kind gating, cycle budgeting, per-job+namespace
|
|
1852
|
-
* locking, status recording, and catalog maintenance timestamps. QMD
|
|
1853
|
-
* maintenance was wired through it in #1517. This module standardizes the
|
|
1854
|
-
* per-job adapter pattern so every other maintenance job can be fanned out
|
|
1855
|
-
* with one call, and aggregates per-namespace health for doctor/dashboard.
|
|
1856
|
-
*
|
|
1857
|
-
* Design contract (issue #1500 compatibility requirements):
|
|
1858
|
-
* - Existing direct `runJob({ namespace })` calls continue to work unchanged.
|
|
1859
|
-
* - Namespaces disabled: fanout is a no-op (the planner returns only the
|
|
1860
|
-
* default namespace; jobs run exactly as before).
|
|
1861
|
-
* - `maintenanceNamespaceFanoutEnabled: false`: fanout is a no-op.
|
|
1862
|
-
* - A failure in one namespace must not abort other namespaces (the planner
|
|
1863
|
-
* already isolates per-namespace failures).
|
|
1864
|
-
* - Per-namespace locks prevent duplicate concurrent runs (planner-provided).
|
|
1865
|
-
*/
|
|
1866
|
-
|
|
1867
|
-
/**
|
|
1868
|
-
* Context passed to a fanout job runner. The runner receives the per-namespace
|
|
1869
|
-
* candidate (namespace name, kind, storage dir) and a storage resolver that
|
|
1870
|
-
* the orchestrator wires to `storageRouter.storageFor(namespace)`.
|
|
1871
|
-
*
|
|
1872
|
-
* The storage resolver is intentionally typed as `unknown` here so this module
|
|
1873
|
-
* does not depend on the `StorageManager` class — the orchestrator provides the
|
|
1874
|
-
* typed resolver. This keeps the fanout module free of orchestrator/storage
|
|
1875
|
-
* imports and unit-testable with a stub.
|
|
1876
|
-
*/
|
|
1877
|
-
interface NamespaceMaintenanceFanoutRunnerContext {
|
|
1878
|
-
config: PluginConfig;
|
|
1879
|
-
candidate: NamespaceMaintenanceCandidate;
|
|
1880
|
-
resolveStorage: (namespace: string) => Promise<unknown>;
|
|
1881
|
-
}
|
|
1882
|
-
interface NamespaceMaintenanceJobHealth {
|
|
1883
|
-
jobName: string;
|
|
1884
|
-
ran: number;
|
|
1885
|
-
skipped: number;
|
|
1886
|
-
failed: number;
|
|
1887
|
-
lastRunAt: string | null;
|
|
1888
|
-
namespaces: NamespaceMaintenanceRunStatus[];
|
|
1889
|
-
}
|
|
1890
|
-
interface NamespaceMaintenanceHealthSummary {
|
|
1891
|
-
generatedAt: string;
|
|
1892
|
-
fanoutEnabled: boolean;
|
|
1893
|
-
namespacesEnabled: boolean;
|
|
1894
|
-
maxNamespacesPerCycle: number;
|
|
1895
|
-
jobs: NamespaceMaintenanceJobHealth[];
|
|
1896
|
-
totalRan: number;
|
|
1897
|
-
totalSkipped: number;
|
|
1898
|
-
totalFailed: number;
|
|
1899
|
-
}
|
|
1900
|
-
|
|
1901
|
-
declare class Orchestrator {
|
|
1902
|
-
readonly storage: StorageManager;
|
|
1903
|
-
private readonly storageRouter;
|
|
1904
|
-
/** Rebuildable namespace catalog (issue #1499). Inert unless namespaces enabled. */
|
|
1905
|
-
readonly namespaceCatalog: NamespaceCatalog;
|
|
1906
|
-
private readonly namespaceStorageDirHints;
|
|
1907
|
-
private namespaceStorageDirHintsLoaded;
|
|
1908
|
-
private readonly namespaceSearchRouter;
|
|
1909
|
-
qmd: SearchBackend;
|
|
1910
|
-
/**
|
|
1911
|
-
* Maintenance scheduler (issue #1526 PR1). Owns cron auto-registration,
|
|
1912
|
-
* debounced QMD index maintenance, and consolidation scheduling. Job
|
|
1913
|
-
* runners (consolidation/pattern-reinforcement/governance) stay here.
|
|
1914
|
-
*/
|
|
1915
|
-
readonly maintenanceScheduler: MaintenanceScheduler;
|
|
1916
|
-
private prioritizedEmbedding?;
|
|
1917
|
-
private readonly conversationQmd?;
|
|
1918
|
-
private readonly conversationFaiss?;
|
|
1919
|
-
private readonly conversationIndexBackend?;
|
|
1920
|
-
readonly sharedContext?: SharedContextManager;
|
|
1921
|
-
readonly compounding?: CompoundingEngine;
|
|
1922
|
-
readonly buffer: SmartBuffer;
|
|
1923
|
-
readonly transcript: TranscriptManager;
|
|
1924
|
-
readonly sessionObserver: SessionObserverState;
|
|
1925
|
-
readonly summarizer: HourlySummarizer;
|
|
1926
|
-
readonly localLlm: LocalLlmClient;
|
|
1927
|
-
readonly fastLlm: LocalLlmClient;
|
|
1928
|
-
private readonly judgeVerdictCache;
|
|
1929
|
-
/**
|
|
1930
|
-
* Per-orchestrator defer-counter map (issue #562, PR 2). Tracks how many
|
|
1931
|
-
* times the judge has returned `"defer"` for a given candidate content
|
|
1932
|
-
* hash so the defer cap can be enforced.
|
|
1933
|
-
*/
|
|
1934
|
-
private readonly judgeDeferCounts;
|
|
1935
|
-
/**
|
|
1936
|
-
* Faithfulness gate distribution counters (issue #1576). Per-orchestrator
|
|
1937
|
-
* running tally surfaced via console_state telemetry. No module-level state
|
|
1938
|
-
* (rule 11) — these hang off the orchestrator instance.
|
|
1939
|
-
*/
|
|
1940
|
-
private faithfulnessCounters;
|
|
1941
|
-
/**
|
|
1942
|
-
* Side-channel: number of facts deferred in the most recent
|
|
1943
|
-
* `persistExtraction` call (issue #562, PR 2). The caller reads this after
|
|
1944
|
-
* `persistExtraction` returns to decide whether to retain buffer turns for
|
|
1945
|
-
* the next extraction pass. Not part of the return signature because many
|
|
1946
|
-
* callers already destructure `persistedIds` by position.
|
|
1947
|
-
*/
|
|
1948
|
-
private lastPersistExtractionDeferredCount;
|
|
1949
|
-
/**
|
|
1950
|
-
* Side-channel (#1635): pending_review persisted ids from the last
|
|
1951
|
-
* persistExtraction; runExtraction excludes them from the thread episode set.
|
|
1952
|
-
*/
|
|
1953
|
-
private lastPersistExtractionPendingReviewIds;
|
|
1954
|
-
private readonly _fastGatewayLlm;
|
|
1955
|
-
get fastGatewayLlm(): FallbackLlmClient | null;
|
|
1956
|
-
getConsoleFaithfulnessDistribution(): FaithfulnessGateCounters | undefined;
|
|
1957
|
-
readonly modelRegistry: ModelRegistry;
|
|
1958
|
-
readonly relevance: RelevanceStore;
|
|
1959
|
-
readonly negatives: NegativeExampleStore;
|
|
1960
|
-
readonly lastRecall: LastRecallStore;
|
|
1961
|
-
readonly handleHistory: RecallHandleHistoryStore;
|
|
1962
|
-
readonly tierMigrationStatus: TierMigrationStatusStore;
|
|
1963
|
-
readonly tierMigrationCoordinator: TierMigrationCoordinator;
|
|
1964
|
-
readonly compressionGuidelineCoordinator: CompressionGuidelineCoordinator;
|
|
1965
|
-
readonly semanticConsolidationCoordinator: SemanticConsolidationCoordinator;
|
|
1966
|
-
readonly lifecyclePolicyCoordinator: LifecyclePolicyCoordinator;
|
|
1967
|
-
readonly entitySynthesisCoordinator: EntitySynthesisCoordinator;
|
|
1968
|
-
/**
|
|
1969
|
-
* In-memory X-ray snapshot from the most recent `recall()` call that
|
|
1970
|
-
* was invoked with `xrayCapture: true` (issue #570 PR 1). Scope is
|
|
1971
|
-
* per-process; later slices add CLI/HTTP/MCP surfaces that consume
|
|
1972
|
-
* this via the shared renderer. `null` until the first capture, and
|
|
1973
|
-
* NEVER overwritten by a recall that did not request capture —
|
|
1974
|
-
* requests without the flag leave prior captures intact so the
|
|
1975
|
-
* capturing caller can still read their snapshot back.
|
|
1976
|
-
*/
|
|
1977
|
-
private lastXraySnapshot;
|
|
1978
|
-
/** Per-instance ordering domain for every writer of `lastXraySnapshot`. */
|
|
1979
|
-
private readonly xrayCaptureQueue;
|
|
1980
|
-
readonly embeddingFallback: EmbeddingFallback;
|
|
1981
|
-
private readonly conversationIndexDir;
|
|
1982
|
-
private readonly extraction;
|
|
1983
|
-
readonly config: PluginConfig;
|
|
1984
|
-
readonly profiler: ProfilingCollector;
|
|
1985
|
-
private readonly threading;
|
|
1986
|
-
/** v8.2: Per-namespace multi-graph memory indexes (entity/time/causal edges) */
|
|
1987
|
-
private readonly graphIndexes;
|
|
1988
|
-
/** Per-namespace BoxBuilders, keyed by the namespace root directory path. */
|
|
1989
|
-
private readonly boxBuilders;
|
|
1990
|
-
/** Temporal Memory Tree builder — builds hour/day/week/persona summary nodes. */
|
|
1991
|
-
private readonly tmtBuilder;
|
|
1992
|
-
/** Lossless Context Management engine — proactive session archive + DAG summarization. */
|
|
1993
|
-
readonly lcmEngine: LcmEngine | null;
|
|
1994
|
-
private readonly rerankCache;
|
|
1995
|
-
/**
|
|
1996
|
-
* Per-session workspace selections keyed by sessionKey.
|
|
1997
|
-
* Set by the before_prompt_build hook so recall() uses the correct
|
|
1998
|
-
* agent workspace for BOOT.md injection. Cleared after each recall.
|
|
1999
|
-
* Using a Map prevents concurrent sessions from overwriting each other.
|
|
2000
|
-
*/
|
|
2001
|
-
private _recallWorkspaceOverrides;
|
|
2002
|
-
/**
|
|
2003
|
-
* Per-session coding-agent context (issue #569). Populated by connectors at
|
|
2004
|
-
* session-start (PRs 5/6/7) via `setCodingContextForSession`. Used by both
|
|
2005
|
-
* the recall path and the write path so that memory routing respects the
|
|
2006
|
-
* project/branch scope a session is operating in (rule 42 — read + write
|
|
2007
|
-
* through the same namespace layer).
|
|
2008
|
-
*/
|
|
2009
|
-
private _codingContextBySession;
|
|
2010
|
-
/**
|
|
2011
|
-
* Per-session peer ID registry (issue #679 PR 3/5).
|
|
2012
|
-
* Set by connectors / hooks via `setPeerIdForSession` so `recallInternal`
|
|
2013
|
-
* can inject the peer's profile into recall context when
|
|
2014
|
-
* `peerProfileRecallEnabled` is true. Cleared when the session ends.
|
|
2015
|
-
* Keyed by sessionKey so concurrent sessions don't clobber each other
|
|
2016
|
-
* (rule 11 — scope globals per plugin ID / session).
|
|
2017
|
-
*/
|
|
2018
|
-
private _peerIdBySession;
|
|
2019
|
-
/**
|
|
2020
|
-
* Defensive init for the session-binding maps (issue #1526 seam 28
|
|
2021
|
-
* review). `Object.create(Orchestrator.prototype)` stubs in legacy
|
|
2022
|
-
* tests skip class-field initializers, so the maps may be undefined on
|
|
2023
|
-
* fakes; SessionContextCoordinator calls this before writing so the
|
|
2024
|
-
* maps are created ON THE ORCHESTRATOR (or fake), never on the
|
|
2025
|
-
* coordinator.
|
|
2026
|
-
*/
|
|
2027
|
-
ensureSessionBindingMaps(): void;
|
|
2028
|
-
private routingRulesStore;
|
|
2029
|
-
private contentHashIndex;
|
|
2030
|
-
private readonly contentHashIndexesByStorageDir;
|
|
2031
|
-
private readonly artifactSourceStatusCache;
|
|
2032
|
-
private accessTrackingBuffer;
|
|
2033
|
-
private passiveCorrectionDedup;
|
|
2034
|
-
private _passiveCorrectionService;
|
|
2035
|
-
private passiveCorrectionTelemetry;
|
|
2036
|
-
private _dependencyPropagationDelivery;
|
|
2037
|
-
private _dependencyPropagationRecovery;
|
|
2038
|
-
private destroyed;
|
|
2039
|
-
private get dependencyPropagationDelivery();
|
|
2040
|
-
readonly extractionQueueCoordinator: ExtractionQueueCoordinator;
|
|
2041
|
-
private _extractionRunCoordinator;
|
|
2042
|
-
private get extractionRunCoordinator();
|
|
2043
|
-
private _consolidationRunCoordinator;
|
|
2044
|
-
private get consolidationRunCoordinator();
|
|
2045
|
-
private _extractionPersistCoordinator;
|
|
2046
|
-
private get extractionPersistCoordinator();
|
|
2047
|
-
/**
|
|
2048
|
-
* Issue #1526: recall result formatting + identity continuity section moved
|
|
2049
|
-
* to RecallResultFormatter.
|
|
2050
|
-
*/
|
|
2051
|
-
readonly recallResultFormatter: RecallResultFormatter;
|
|
2052
|
-
/**
|
|
2053
|
-
* Issue #1526: conversation-index subsystem moved to
|
|
2054
|
-
* ConversationIndexCoordinator.
|
|
2055
|
-
*/
|
|
2056
|
-
readonly conversationIndexCoordinator: ConversationIndexCoordinator;
|
|
2057
|
-
readonly recallRerankCoordinator: RecallRerankCoordinator;
|
|
2058
|
-
readonly recallSectionCoordinator: RecallSectionCoordinator;
|
|
2059
|
-
readonly qmdResultResolver: QmdResultResolver;
|
|
2060
|
-
readonly contradictionLinkingCoordinator: ContradictionLinkingCoordinator;
|
|
2061
|
-
readonly graphRecallCoordinator: GraphRecallCoordinator;
|
|
2062
|
-
private heartbeatObserverChains;
|
|
2063
|
-
private recentExtractionFingerprints;
|
|
2064
|
-
private readonly consolidationObservers;
|
|
2065
|
-
private readonly wearablesServiceByNamespace;
|
|
2066
|
-
private readonly meetingsServiceByNamespace;
|
|
2067
|
-
private wearablesAutoSyncHandle;
|
|
2068
|
-
private lastQmdReprobeAtMs;
|
|
2069
|
-
private lastFileHygieneRunAtMs;
|
|
2070
|
-
private lastPatternReinforcementAtByNs;
|
|
2071
|
-
private lastRecallFailureLogAtMs;
|
|
2072
|
-
private lastRecallFailureAtMs;
|
|
2073
|
-
private suppressedRecallFailures;
|
|
2074
|
-
private readonly policyRuntime;
|
|
2075
|
-
private runtimePolicyValues;
|
|
2076
|
-
private utilityRuntimeValues;
|
|
2077
|
-
private evalShadowWriteChain;
|
|
2078
|
-
private directAnswerObservationChain;
|
|
2079
|
-
private initPromise;
|
|
2080
|
-
private resolveInit;
|
|
2081
|
-
/**
|
|
2082
|
-
* Resolves when deferred initialization (QMD probe, warmup, caches, cron)
|
|
2083
|
-
* completes. CLI and http-serve callers that need `qmd.isAvailable()` to
|
|
2084
|
-
* reflect reality should `await orchestrator.deferredReady` after
|
|
2085
|
-
* `initialize()`. Gateway callers can ignore it — recall() degrades
|
|
2086
|
-
* gracefully when QMD isn't ready yet.
|
|
2087
|
-
*
|
|
2088
|
-
* Also resolves (without error) when `initialize()` throws before reaching
|
|
2089
|
-
* the deferred-init phase, so callers never hang on a permanently-pending
|
|
2090
|
-
* promise.
|
|
2091
|
-
*
|
|
2092
|
-
* Host adapters that need to tie deferred init to their stop() lifecycle
|
|
2093
|
-
* should `await orchestrator.deferredReady` before proceeding with teardown
|
|
2094
|
-
* to prevent background QMD/warmup/cron tasks from racing with shutdown.
|
|
2095
|
-
*/
|
|
2096
|
-
deferredReady: Promise<void>;
|
|
2097
|
-
private resolveDeferredReady;
|
|
2098
|
-
private deferredInitAbort;
|
|
2099
|
-
/**
|
|
2100
|
-
* Whether the deferred init's QMD startup sync completed successfully.
|
|
2101
|
-
* When false after deferredReady resolves, the server retry loop should
|
|
2102
|
-
* attempt startupSearchSync() even if `qmd.isAvailable()` is true —
|
|
2103
|
-
* availability only means probe succeeded, not that the index is current.
|
|
2104
|
-
*/
|
|
2105
|
-
deferredSyncSucceeded: boolean;
|
|
2106
|
-
/**
|
|
2107
|
-
* Abort deferred initialization so background QMD sync/warmup stops
|
|
2108
|
-
* promptly on shutdown. Safe to call multiple times or before init.
|
|
2109
|
-
*/
|
|
2110
|
-
abortDeferredInit(): void;
|
|
2111
|
-
disposeSearchBackendIfNeeded(): Promise<void>;
|
|
2112
|
-
/** Track a recall-side write so destroy() can wait for it before teardown. @internal */
|
|
2113
|
-
trackRecallBackgroundWrite(promise: Promise<void>, label: string): void;
|
|
2114
|
-
/**
|
|
2115
|
-
* Stop background initialization and release runtime-owned handles.
|
|
2116
|
-
* Long-lived hosts should call this from their shutdown path; one-shot
|
|
2117
|
-
* commands should call it before returning to let Node exit naturally.
|
|
2118
|
-
*/
|
|
2119
|
-
destroy(): Promise<void>;
|
|
2120
|
-
/** Set per-session workspace for the next recall() call (compaction reset). @internal */
|
|
2121
|
-
setRecallWorkspaceOverride(sessionKey: string, dir: string): void;
|
|
2122
|
-
/** Remove a per-session workspace selection (cleanup on error or early return). @internal */
|
|
2123
|
-
clearRecallWorkspaceOverride(sessionKey: string): void;
|
|
2124
|
-
resolvePrincipal(sessionKey?: string): string | undefined;
|
|
2125
|
-
resolveSelfNamespace(sessionKey?: string): string;
|
|
2126
|
-
private lcmReadNamespaceForSession;
|
|
2127
|
-
setCodingContextForSession(sessionKey: string, codingContext: CodingContext | null): void;
|
|
2128
|
-
getCodingContextForSession(sessionKey: string | undefined): CodingContext | null;
|
|
2129
|
-
applyCodingNamespaceOverlay(sessionKey: string | undefined, baseNamespace: string): string;
|
|
2130
|
-
setPeerIdForSession(sessionKey: string, peerId: string | null): void;
|
|
2131
|
-
getPeerIdForSession(sessionKey: string | undefined): string | null;
|
|
2132
|
-
/**
|
|
2133
|
-
* Read-side overlay: returns the list of namespaces a session should read
|
|
2134
|
-
* from, including any read fallbacks (branch → project, global root).
|
|
2135
|
-
*
|
|
2136
|
-
* Returns `null` when:
|
|
2137
|
-
* - `namespacesEnabled` is false (overlay would create false isolation)
|
|
2138
|
-
* - no context attached to the session
|
|
2139
|
-
* - `codingMode.projectScope` is false (CLAUDE.md #30 escape hatch)
|
|
2140
|
-
*
|
|
2141
|
-
* The returned `namespace` / `readFallbacks` are RAW overlay fragments
|
|
2142
|
-
* (e.g. `project-origin-ab12`). Callers MUST combine them with the
|
|
2143
|
-
* principal-derived base through `combineNamespaces()` before passing to
|
|
2144
|
-
* storage, so principal isolation is preserved (rule 42).
|
|
2145
|
-
*
|
|
2146
|
-
* @internal
|
|
2147
|
-
*/
|
|
2148
|
-
applyCodingRecallOverlay(sessionKey: string | undefined): {
|
|
2149
|
-
namespace: string;
|
|
2150
|
-
readFallbacks: string[];
|
|
2151
|
-
} | null;
|
|
2152
|
-
getStorageForNamespace(namespace?: string): Promise<StorageManager>;
|
|
2153
|
-
filterPrivateSearchResults: (results: QmdSearchResult[], namespaces?: readonly string[], preserveUnresolved?: boolean, visibilityCache?: Map<string, boolean>) => Promise<QmdSearchResult[]>;
|
|
2154
|
-
private configuredNamespaceList;
|
|
2155
|
-
private rememberNamespaceStorageDirHint;
|
|
2156
|
-
private storageDirMatchesNamespaceHint;
|
|
2157
|
-
private namespaceStorageDirHintOwnershipRank;
|
|
2158
|
-
private preferNamespaceStorageDirHintOwner;
|
|
2159
|
-
private loadNamespaceStorageDirHintsFromCatalog;
|
|
2160
|
-
private maintenanceNamespaces;
|
|
2161
|
-
/**
|
|
2162
|
-
* Fan out a maintenance job across all maintained namespaces (issue #1500).
|
|
2163
|
-
*
|
|
2164
|
-
* Delegates to the namespace-maintenance-fanout coordinator, which plans
|
|
2165
|
-
* namespace discovery (configured + catalog), applies the cycle budget,
|
|
2166
|
-
* acquires per-job+namespace locks, records status files, and touches the
|
|
2167
|
-
* catalog's `lastMaintenanceAt`. The runner receives a per-namespace
|
|
2168
|
-
* candidate and a storage resolver wired to `this.getStorage(namespace)`.
|
|
2169
|
-
*
|
|
2170
|
-
* When namespaces are disabled the planner returns only the default
|
|
2171
|
-
* namespace, so the job runs exactly once — preserving single-user behavior.
|
|
2172
|
-
*/
|
|
2173
|
-
runNamespaceMaintenanceFanoutForJob(jobName: string, runner: (ctx: NamespaceMaintenanceFanoutRunnerContext) => Promise<{
|
|
2174
|
-
itemCount?: number;
|
|
2175
|
-
} | undefined>, options?: {
|
|
2176
|
-
enabled?: boolean;
|
|
2177
|
-
}): Promise<NamespaceMaintenanceSummary>;
|
|
2178
|
-
/**
|
|
2179
|
-
* Read-only namespace maintenance health summary for doctor / dashboard /
|
|
2180
|
-
* CLI (issue #1500). Aggregates all per-namespace maintenance status files
|
|
2181
|
-
* into one report without running any maintenance.
|
|
2182
|
-
*/
|
|
2183
|
-
readNamespaceMaintenanceHealth(): Promise<NamespaceMaintenanceHealthSummary>;
|
|
2184
|
-
private buildConfiguredQmdSearchOptions;
|
|
2185
|
-
searchAcrossNamespaces(options: {
|
|
2186
|
-
query: string;
|
|
2187
|
-
namespaces?: string[];
|
|
2188
|
-
maxResults?: number;
|
|
2189
|
-
mode?: "search" | "hybrid" | "bm25" | "vector";
|
|
2190
|
-
searchOptions?: SearchQueryOptions;
|
|
2191
|
-
execution?: SearchExecutionOptions;
|
|
2192
|
-
}): Promise<QmdSearchResult[]>;
|
|
2193
|
-
searchHealthForNamespace(namespace: string, execution?: SearchExecutionOptions): Promise<NamespaceSearchHealth>;
|
|
2194
|
-
refreshNamespacesAfterConvergence(namespaces: readonly string[]): Promise<void>;
|
|
2195
|
-
invalidateLiveContentHashIndex(): void;
|
|
2196
|
-
private contentHashIndexForStorage;
|
|
2197
|
-
private hasContentHashDedup;
|
|
2198
|
-
private addContentHashDedup;
|
|
2199
|
-
private removeContentHashForMemory;
|
|
2200
|
-
private backfillTemporalBoundsOnDedupHit;
|
|
2201
|
-
private saveContentHashIndexes;
|
|
2202
|
-
constructor(config: PluginConfig);
|
|
2203
|
-
/** Get or create a BoxBuilder for the given namespace storage root (namespace-isolated). */
|
|
2204
|
-
private boxBuilderFor;
|
|
2205
|
-
private effectiveRecencyWeight;
|
|
2206
|
-
private effectiveCronRecallInstructionHeavyTokenCap;
|
|
2207
|
-
private currentPolicyVersion;
|
|
2208
|
-
private effectiveLifecycleThresholds;
|
|
2209
|
-
private routeEngineOptions;
|
|
2210
|
-
private getRoutingRulesStore;
|
|
2211
|
-
private loadRoutingRules;
|
|
2212
|
-
private resolveArtifactSourceStatuses;
|
|
2213
|
-
/** Execute a fast-tier completion through the gateway when configured, otherwise the local fast LLM. */
|
|
2214
|
-
private fastChatCompletion;
|
|
2215
|
-
/**
|
|
2216
|
-
* Get a fast-tier LLM client compatible with the rerank interface.
|
|
2217
|
-
* When gateway model source is active, routes through the gateway fast chain.
|
|
2218
|
-
* Otherwise returns the local fast LLM directly.
|
|
2219
|
-
*/
|
|
2220
|
-
get fastLlmForRerank(): {
|
|
2221
|
-
chatCompletion: (messages: Array<{
|
|
2222
|
-
role: string;
|
|
2223
|
-
content: string;
|
|
2224
|
-
}>, options?: {
|
|
2225
|
-
maxTokens?: number;
|
|
2226
|
-
temperature?: number;
|
|
2227
|
-
timeoutMs?: number;
|
|
2228
|
-
operation?: string;
|
|
2229
|
-
priority?: "recall-critical" | "background";
|
|
2230
|
-
}) => Promise<{
|
|
2231
|
-
content: string;
|
|
2232
|
-
} | null>;
|
|
2233
|
-
};
|
|
2234
|
-
/**
|
|
2235
|
-
* Build a briefing follow-up generator backed by the configured LLM chain
|
|
2236
|
-
* (gateway model source or local LLM). Returns `undefined` when no chain
|
|
2237
|
-
* is available so `buildBriefing` can surface a clear unavailable reason
|
|
2238
|
-
* instead of failing at call time. Used by the access service and CLI as
|
|
2239
|
-
* the fallback when no direct `openaiApiKey` is configured, so briefing
|
|
2240
|
-
* follow-ups ride the same routing as every other fast-tier LLM feature.
|
|
2241
|
-
*/
|
|
2242
|
-
get briefingChainFollowupGenerator(): BriefingFollowupGenerator | undefined;
|
|
2243
|
-
initialize(): Promise<void>;
|
|
2244
|
-
private deferredInitialize;
|
|
2245
|
-
startupSearchSync(signal?: AbortSignal): Promise<boolean>;
|
|
2246
|
-
runPatternReinforcement(options?: {
|
|
2247
|
-
force?: boolean;
|
|
2248
|
-
namespace?: string;
|
|
2249
|
-
}): Promise<{
|
|
2250
|
-
ran: boolean;
|
|
2251
|
-
skippedReason?: "disabled" | "cadence";
|
|
2252
|
-
namespace: string;
|
|
2253
|
-
result?: PatternReinforcementResult;
|
|
2254
|
-
}>;
|
|
2255
|
-
runPatternReinforcementFanout(options?: {
|
|
2256
|
-
force?: boolean;
|
|
2257
|
-
}): Promise<NamespaceMaintenanceSummary>;
|
|
2258
|
-
/**
|
|
2259
|
-
* Fan out lifecycle/governance policy across all maintained namespaces
|
|
2260
|
-
* (issue #1500). Each namespace gets its own lifecycle pass against its
|
|
2261
|
-
* namespace-scoped storage. When namespaces are disabled, runs once against
|
|
2262
|
-
* default storage.
|
|
2263
|
-
*/
|
|
2264
|
-
runLifecyclePolicyFanout(): Promise<NamespaceMaintenanceSummary>;
|
|
2265
|
-
/**
|
|
2266
|
-
* Fan out semantic consolidation across all maintained namespaces (issue #1500).
|
|
2267
|
-
* Each namespace gets its own consolidation pass against its namespace-scoped
|
|
2268
|
-
* storage. When namespaces are disabled, runs once against default storage.
|
|
2269
|
-
*/
|
|
2270
|
-
runSemanticConsolidationFanout(options?: {
|
|
2271
|
-
dryRun?: boolean;
|
|
2272
|
-
}): Promise<NamespaceMaintenanceSummary>;
|
|
2273
|
-
/**
|
|
2274
|
-
* Fan out deep-sleep governance across all maintained namespaces (issue #1500).
|
|
2275
|
-
* Each namespace gets its own governance scan against its namespace-scoped
|
|
2276
|
-
* storage. When namespaces are disabled, runs once against default storage.
|
|
2277
|
-
*/
|
|
2278
|
-
runDeepSleepGovernanceFanout(options?: {
|
|
2279
|
-
dryRun?: boolean;
|
|
2280
|
-
}): Promise<NamespaceMaintenanceSummary>;
|
|
2281
|
-
runLiveConnectors(options?: {
|
|
2282
|
-
force?: boolean;
|
|
2283
|
-
abortSignal?: AbortSignal;
|
|
2284
|
-
}): Promise<LiveConnectorsRunSummary>;
|
|
2285
|
-
applyBehaviorRuntimePolicy(state: BehaviorLoopPolicyState): Promise<{
|
|
2286
|
-
applied: boolean;
|
|
2287
|
-
rolledBack: boolean;
|
|
2288
|
-
values: RuntimePolicyValues | null;
|
|
2289
|
-
reason: string;
|
|
2290
|
-
}>;
|
|
2291
|
-
rollbackBehaviorRuntimePolicy(): Promise<boolean>;
|
|
2292
|
-
maybeRunFileHygiene(): Promise<void>;
|
|
2293
|
-
runBootstrap(options: BootstrapOptions): Promise<BootstrapResult>;
|
|
2294
|
-
runConsolidationNow(): Promise<{
|
|
2295
|
-
memoriesProcessed: number;
|
|
2296
|
-
merged: number;
|
|
2297
|
-
invalidated: number;
|
|
2298
|
-
}>;
|
|
2299
|
-
reindexMemoryById(id: string, options?: {
|
|
2300
|
-
storage?: StorageManager;
|
|
2301
|
-
}): Promise<void>;
|
|
2302
|
-
registerConsolidationObserver(observer: (observation: ConsolidationObservation) => Promise<void> | void): () => void;
|
|
2303
|
-
runSemanticConsolidationNow(options?: {
|
|
2304
|
-
dryRun?: boolean;
|
|
2305
|
-
thresholdOverride?: number;
|
|
2306
|
-
storage?: StorageManager;
|
|
2307
|
-
}): Promise<SemanticConsolidationResult>;
|
|
2308
|
-
runDeepSleepGovernanceNow(options?: {
|
|
2309
|
-
dryRun?: boolean;
|
|
2310
|
-
storage?: StorageManager;
|
|
2311
|
-
}): Promise<{
|
|
2312
|
-
scannedMemories: number;
|
|
2313
|
-
appliedActionCount: number;
|
|
2314
|
-
notes?: string;
|
|
2315
|
-
}>;
|
|
2316
|
-
private runSemanticConsolidation;
|
|
2317
|
-
waitForExtractionIdle(timeoutMs?: number): Promise<boolean>;
|
|
2318
|
-
waitForConsolidationIdle(timeoutMs?: number): Promise<boolean>;
|
|
2319
|
-
getStorage(namespace?: string): Promise<StorageManager>;
|
|
2320
|
-
generateDaySummary(memories: string | MemoryFile[]): Promise<DaySummaryResult | null>;
|
|
2321
|
-
/**
|
|
2322
|
-
* Auto-gather today's facts and hourly summaries from storage, then generate a day summary.
|
|
2323
|
-
* Returns null if no facts are found for today.
|
|
2324
|
-
*/
|
|
2325
|
-
generateDaySummaryAuto(namespace?: string, options?: DaySummaryGatherOptions): Promise<DaySummaryResult | null>;
|
|
2326
|
-
gatherTodayFacts(namespace?: string, options?: DaySummaryGatherOptions): Promise<string>;
|
|
2327
|
-
previewMemoryActionEvent(event: Omit<MemoryActionEvent, "timestamp"> & {
|
|
2328
|
-
timestamp?: string;
|
|
2329
|
-
}): MemoryActionEvent;
|
|
2330
|
-
appendMemoryActionEvent(event: Omit<MemoryActionEvent, "timestamp"> & {
|
|
2331
|
-
timestamp?: string;
|
|
2332
|
-
}): Promise<boolean>;
|
|
2333
|
-
private searchConversationRecallResults;
|
|
2334
|
-
private formatConversationRecallSection;
|
|
2335
|
-
getRecoverySummary(sessionKey?: string): Promise<{
|
|
2336
|
-
generatedAt: string;
|
|
2337
|
-
sessionKey?: string;
|
|
2338
|
-
healthy: boolean;
|
|
2339
|
-
issueCount: number;
|
|
2340
|
-
incompleteTurns: number;
|
|
2341
|
-
brokenChains: number;
|
|
2342
|
-
checkpointHealthy: boolean;
|
|
2343
|
-
}>;
|
|
2344
|
-
private validateLocalLlmModel;
|
|
2345
|
-
private invokeRecall;
|
|
2346
|
-
recall(prompt: string, sessionKey?: string, options?: RecallInvocationOptions): Promise<string>;
|
|
2347
|
-
/**
|
|
2348
|
-
* Return the most recent X-ray snapshot captured during a recall.
|
|
2349
|
-
* Returns `null` when no such capture has occurred on this
|
|
2350
|
-
* orchestrator instance. Returned snapshot is a deep copy so
|
|
2351
|
-
* caller mutation cannot tear the stored value.
|
|
2352
|
-
*
|
|
2353
|
-
* @deprecated Reading this after a separate `recall()` is not atomic. Use
|
|
2354
|
-
* `recallWithXrayCapture()` when the snapshot must belong to that call.
|
|
2355
|
-
*/
|
|
2356
|
-
getLastXraySnapshot(): RecallXraySnapshot | null;
|
|
2357
|
-
/**
|
|
2358
|
-
* Clear the captured X-ray snapshot. Exposed for tests / explicit reset.
|
|
2359
|
-
*
|
|
2360
|
-
* @deprecated A separate clear → recall → get sequence is not atomic. Use
|
|
2361
|
-
* `recallWithXrayCapture()` for capture operations.
|
|
2362
|
-
*/
|
|
2363
|
-
clearLastXraySnapshot(): void;
|
|
2364
|
-
/** Atomically run recall and return the cloned X-ray snapshot it published. */
|
|
2365
|
-
recallWithXrayCapture(prompt: string, sessionKey?: string, options?: Omit<RecallInvocationOptions, "xrayCapture">): Promise<{
|
|
2366
|
-
result: string;
|
|
2367
|
-
snapshot: RecallXraySnapshot | null;
|
|
2368
|
-
recallStartedAt: number;
|
|
2369
|
-
}>;
|
|
2370
|
-
private runRecallWithXrayCapture;
|
|
2371
|
-
waitForDirectAnswerObservationIdle(timeoutMs?: number): Promise<boolean>;
|
|
2372
|
-
private enqueueDirectAnswerObservation;
|
|
2373
|
-
private annotateDirectAnswerTier;
|
|
2374
|
-
private logRecallFailure;
|
|
2375
|
-
private artifactTypeForCategory;
|
|
2376
|
-
private truncateArtifactForRecall;
|
|
2377
|
-
private fetchActiveArtifactsForNamespace;
|
|
2378
|
-
private recallArtifactsAcrossNamespaces;
|
|
2379
|
-
private scopeQueryAwarePaths;
|
|
2380
|
-
private buildQueryAwarePrefilter;
|
|
2381
|
-
private searchScopedMemoryCandidates;
|
|
2382
|
-
private fetchQmdMemoryResultsWithArtifactTopUp;
|
|
2383
|
-
expandResultsViaGraph(options: GraphRecallExpansionOptions): Promise<GraphRecallExpansionResult>;
|
|
2384
|
-
private recordLastGraphRecallSnapshot;
|
|
2385
|
-
private recordLastIntentSnapshot;
|
|
2386
|
-
private recordLastQmdRecallSnapshot;
|
|
2387
|
-
private recordLastIntentSnapshotForNamespace;
|
|
2388
|
-
private resolveStateDirForNamespace;
|
|
2389
|
-
private buildGraphRecallRankedResults;
|
|
2390
|
-
private getRecallSectionEntry;
|
|
2391
|
-
private isRecallSectionEnabled;
|
|
2392
|
-
private isSpecializedRecallSectionEnabled;
|
|
2393
|
-
private getRecallSectionMaxChars;
|
|
2394
|
-
private getRecallSectionNumber;
|
|
2395
|
-
private appendRecallSection;
|
|
2396
|
-
private truncateRecallSectionToBudget;
|
|
2397
|
-
private getRecallBudgetChars;
|
|
2398
|
-
private assembleRecallSections;
|
|
2399
|
-
/**
|
|
2400
|
-
* Clock source for the shared post-retrieval assembly/enrichment budget. The
|
|
2401
|
-
* deadline is set from this value and every expiry check reads it back, so a
|
|
2402
|
-
* test can drive the budget deterministically instead of racing the few-ms
|
|
2403
|
-
* wall-clock window that made the "skips … after budget expires" tests flaky.
|
|
2404
|
-
* Production behavior is unchanged — it returns the wall clock.
|
|
2405
|
-
*/
|
|
2406
|
-
protected recallAssemblyClockMs(): number;
|
|
2407
|
-
/**
|
|
2408
|
-
* Recall-internal coordinator (issue #1526 seam 18). Owns the full
|
|
2409
|
-
* `recallInternal` assembly pipeline. Lazy: created on first access so
|
|
2410
|
-
* Object.create(prototype) tests that set fields post-construction work,
|
|
2411
|
-
* and so subclass/test overrides of orchestrator members (e.g. the
|
|
2412
|
-
* `recallAssemblyClockMs` clock seam) are observed live via accessors.
|
|
2413
|
-
*/
|
|
2414
|
-
private _recallInternalCoordinator;
|
|
2415
|
-
private get recallInternalCoordinator();
|
|
2416
|
-
/**
|
|
2417
|
-
* Recall search-pipeline coordinator (issue #1526 seam 19). Owns QMD
|
|
2418
|
-
* search post-processing (prefilter, fallbacks, safety filter, boost).
|
|
2419
|
-
* Lazy + accessor-wired for the same reasons as seam 18: instance-level
|
|
2420
|
-
* test overrides of orchestrator members must stay live.
|
|
2421
|
-
*/
|
|
2422
|
-
private _recallSearchPipelineCoordinator;
|
|
2423
|
-
private get recallSearchPipelineCoordinator();
|
|
2424
|
-
/**
|
|
2425
|
-
* Turn-ingestion coordinator (issue #1526 seam 20). Owns the buffer-side
|
|
2426
|
-
* extraction entry points. Lazy + accessor-wired so prototype-call tests
|
|
2427
|
-
* and instance-level stubs stay live (same rule as seams 18/19).
|
|
2428
|
-
*/
|
|
2429
|
-
private _turnIngestionCoordinator;
|
|
2430
|
-
private get turnIngestionCoordinator();
|
|
2431
|
-
/**
|
|
2432
|
-
* Recall-introspection coordinator (issue #1526 seam 21). Owns the
|
|
2433
|
-
* last-recall snapshot/explain surfaces and direct-answer annotation.
|
|
2434
|
-
* Lazy + accessor-wired (late-binding rule, seams 18–20).
|
|
2435
|
-
*/
|
|
2436
|
-
private _recallIntrospectionCoordinator;
|
|
2437
|
-
get recallIntrospection(): RecallIntrospectionCoordinator;
|
|
2438
|
-
/**
|
|
2439
|
-
* Orchestrator-init coordinator (issue #1526 seam 22). Owns
|
|
2440
|
-
* initialize/deferredInitialize/startupSearchSync. Lazy + accessor-wired
|
|
2441
|
-
* (late-binding rule, seams 18–21); the init gate fields stay on the
|
|
2442
|
-
* orchestrator and are mutated through set accessors.
|
|
2443
|
-
*/
|
|
2444
|
-
private _orchestratorInitCoordinator;
|
|
2445
|
-
private get orchestratorInitCoordinator();
|
|
2446
|
-
/**
|
|
2447
|
-
* Persistence-index coordinator (issue #1526 seam 23). Owns post-persist
|
|
2448
|
-
* bookkeeping (content-hash dedup, temporal indexes, graph edges,
|
|
2449
|
-
* semantic dedup lookup). Lazy + accessor-wired (late-binding rule).
|
|
2450
|
-
*/
|
|
2451
|
-
private _persistenceIndexCoordinator;
|
|
2452
|
-
private get persistenceIndexCoordinator();
|
|
2453
|
-
/**
|
|
2454
|
-
* Workspace-ops coordinator (issue #1526 seam 24). Owns periodic
|
|
2455
|
-
* workspace/operations surfaces. Lazy + accessor-wired (late-binding
|
|
2456
|
-
* rule, seams 18–23).
|
|
2457
|
-
*/
|
|
2458
|
-
private _workspaceOpsCoordinator;
|
|
2459
|
-
private get workspaceOpsCoordinator();
|
|
2460
|
-
/**
|
|
2461
|
-
* Namespace read-fanout coordinator (issue #1526 seam 26). Owns
|
|
2462
|
-
* namespace-scoped read fanout (hints, cross-namespace search/reads,
|
|
2463
|
-
* artifact statuses). Lazy + accessor-wired (late-binding rule).
|
|
2464
|
-
*/
|
|
2465
|
-
private _namespaceReadFanoutCoordinator;
|
|
2466
|
-
private get namespaceReadFanoutCoordinator();
|
|
2467
|
-
/** RecallEntryCoordinator (issue #1526 seam 28). Lazy; selfDeps live wiring. */
|
|
2468
|
-
private _recallEntryCoordinator;
|
|
2469
|
-
private get recallEntryCoordinator();
|
|
2470
|
-
/** SessionContextCoordinator (issue #1526 seam 28). Lazy; selfDeps live wiring. */
|
|
2471
|
-
private _sessionContextCoordinator;
|
|
2472
|
-
/**
|
|
2473
|
-
* Self-handle read through the selfDeps proxy (seam 28): coordinators
|
|
2474
|
-
* that construct services against the orchestrator instance (e.g. the
|
|
2475
|
-
* passive-correction CorrectionService) receive it via deps instead of
|
|
2476
|
-
* capturing the coordinator's own `this`.
|
|
2477
|
-
*/
|
|
2478
|
-
get orchestratorSelf(): Orchestrator;
|
|
2479
|
-
private get sessionContextCoordinator();
|
|
2480
|
-
private recallInternal;
|
|
2481
|
-
processTurn(role: "user" | "assistant", content: string, sessionKey?: string, options?: TurnIngestionOptions & {
|
|
2482
|
-
persistProcessedFingerprint?: boolean;
|
|
2483
|
-
}): Promise<void>;
|
|
2484
|
-
flushSession(sessionKey: string, options: SessionFlushOptions): Promise<void>;
|
|
2485
|
-
ingestReplayBatch(turns: ReplayTurn[], options?: {
|
|
2486
|
-
deadlineMs?: number;
|
|
2487
|
-
archiveLcm?: boolean;
|
|
2488
|
-
abortSignal?: AbortSignal;
|
|
2489
|
-
/**
|
|
2490
|
-
* Pin extraction writes to this namespace instead of deriving one from
|
|
2491
|
-
* `defaultNamespaceForPrincipal(resolvePrincipal(sessionKey))` + the
|
|
2492
|
-
* coding overlay (#1495). The access `observe` surface resolves a single
|
|
2493
|
-
* effective scope plan and passes its `writeNamespace` here so the
|
|
2494
|
-
* extracted memories land in the SAME namespace as LCM archival,
|
|
2495
|
-
* objective-state snapshots, and project-scoped recall — without relying
|
|
2496
|
-
* on re-deriving the namespace from a namespace-prefixed session key.
|
|
2497
|
-
* Same hook bulk-import uses (#460).
|
|
2498
|
-
*/
|
|
2499
|
-
writeNamespaceOverride?: string;
|
|
2500
|
-
/**
|
|
2501
|
-
* Pin the provenance PRINCIPAL instead of deriving it from
|
|
2502
|
-
* `resolvePrincipal(turn.sessionKey)` (#1495 thread 1). The access
|
|
2503
|
-
* `observe` surface authenticates the caller at the transport layer and
|
|
2504
|
-
* passes its resolved principal here so extracted-memory provenance uses
|
|
2505
|
-
* the SAME identity the surface authorized — independent of storage
|
|
2506
|
-
* routing (`writeNamespaceOverride`) and of whatever `resolvePrincipal`
|
|
2507
|
-
* would parse from the raw session key. Mirrors the recall path's
|
|
2508
|
-
* `principalOverride` (issue #570 PR 4).
|
|
2509
|
-
*/
|
|
2510
|
-
principalOverride?: string;
|
|
2511
|
-
/** Persist the authenticated session owner on buffered turns. */
|
|
2512
|
-
sessionOwnerPrincipal?: string;
|
|
2513
|
-
}): Promise<void>;
|
|
2514
|
-
/**
|
|
2515
|
-
* Return the namespace that `ingestBulkImportBatch` writes into (#460).
|
|
2516
|
-
*
|
|
2517
|
-
* Exposed so host CLIs can snapshot the same storage root that extraction
|
|
2518
|
-
* actually writes to, avoiding the "CLI counts files at namespace A while
|
|
2519
|
-
* writes land in namespace B" footgun that a naïve
|
|
2520
|
-
* `config.defaultNamespace` snapshot could hit when a namespace policy
|
|
2521
|
-
* named `"default"` also exists.
|
|
2522
|
-
*
|
|
2523
|
-
* Today bulk-import is pinned to `config.defaultNamespace`; future
|
|
2524
|
-
* per-invocation namespace routing would thread an explicit target here
|
|
2525
|
-
* and through `ingestBulkImportBatch`.
|
|
2526
|
-
*/
|
|
2527
|
-
bulkImportWriteNamespace(): string;
|
|
2528
|
-
getWearablesService(namespace?: string): WearablesService;
|
|
2529
|
-
getMeetingsService(namespace?: string): Promise<MeetingsService>;
|
|
2530
|
-
ingestBulkImportBatch(turns: ImportTurn[], options?: {
|
|
2531
|
-
deadlineMs?: number;
|
|
2532
|
-
failOnExtractionFailure?: boolean;
|
|
2533
|
-
includeSourceValidAtContext?: boolean;
|
|
2534
|
-
}): Promise<BulkImportBatchIngestResult>;
|
|
2535
|
-
observeSessionHeartbeat(sessionKey: string, options?: {
|
|
2536
|
-
bufferKey?: string;
|
|
2537
|
-
}): Promise<void>;
|
|
2538
|
-
private queueBufferedExtraction;
|
|
2539
|
-
private normalizeExtractionFingerprintTurns;
|
|
2540
|
-
private buildExtractionFingerprint;
|
|
2541
|
-
private shouldQueueExtraction;
|
|
2542
|
-
private maybeCapturePassiveCorrections;
|
|
2543
|
-
private passiveCorrectionService;
|
|
2544
|
-
runExtraction(...args: Parameters<ExtractionRunCoordinator["runExtraction"]>): Promise<ExtractionRunResult>;
|
|
2545
|
-
/** Live extraction resilience snapshot (provider circuit breaker + per-
|
|
2546
|
-
* fingerprint backoff population) for status/doctor surfaces. */
|
|
2547
|
-
getExtractionResilienceStatus(): ExtractionResilienceStatus;
|
|
2548
|
-
private recordProcessedExtractionFingerprint;
|
|
2549
|
-
private runTierMigrationCycle;
|
|
2550
|
-
private maybeScheduleConsolidation;
|
|
2551
|
-
requestQmdMaintenance(): void;
|
|
2552
|
-
/**
|
|
2553
|
-
* Public entrypoint for tool-driven QMD maintenance requests.
|
|
2554
|
-
* Delegates to the maintenance scheduler (issue #1526 PR1).
|
|
2555
|
-
*/
|
|
2556
|
-
requestQmdMaintenanceForTool(reason: string): void;
|
|
2557
|
-
persistExtraction(result: ExtractionResult, storage: StorageManager, threadIdForExtraction?: string | null, sourceContext?: ExtractionSourceContext, baseNamespace?: string, scopeProfileWritePlan?: ResolvedScopeProfilePlan | null,
|
|
2558
|
-
/** Verbatim source turn text the facts were extracted from (faithfulness gate #1576). */
|
|
2559
|
-
sourceText?: string, graphCaps?: GraphConstructionCapabilitySet, lifecycleCaps?: MemoryLifecycleCapabilitySet): Promise<{
|
|
2560
|
-
persistedIds: string[];
|
|
2561
|
-
memoryPathById: Map<string, string>;
|
|
2562
|
-
}>;
|
|
2563
|
-
/**
|
|
2564
|
-
* Append persisted ids to the thread episode set, excluding pending_review
|
|
2565
|
-
* fact ids (#1635) so they don't re-seed predecessor edges. Fail-open like
|
|
2566
|
-
* the raw appendEpisodeIds call it replaces.
|
|
2567
|
-
*/
|
|
2568
|
-
private appendPersistedThreadEpisodes;
|
|
2569
|
-
private indexPersistedMemory;
|
|
2570
|
-
/** Delegation wrapper so the persist wiring and root-test stubs route through `this` (#2813 CI-0). */
|
|
2571
|
-
private buildGraphEdge;
|
|
2572
|
-
private graphIndexFor;
|
|
2573
|
-
private updateTemporalTagIndexes;
|
|
2574
|
-
/** IDs of facts persisted in the last extraction */
|
|
2575
|
-
private lastPersistedIds;
|
|
2576
|
-
private runConsolidation;
|
|
2577
|
-
private buildCompressionGuidelineRecallSection;
|
|
2578
|
-
runLifecyclePolicyNow(storage?: StorageManager): Promise<{
|
|
2579
|
-
memoriesAssessed: number;
|
|
2580
|
-
}>;
|
|
2581
|
-
private runLifecyclePolicyPass;
|
|
2582
|
-
/**
|
|
2583
|
-
* Threshold (bytes) at which IDENTITY.md reflections get auto-consolidated.
|
|
2584
|
-
* Read by WorkspaceOpsCoordinator (seam 24) via `Orchestrator.…`, hence
|
|
2585
|
-
* not `private`.
|
|
2586
|
-
*/
|
|
2587
|
-
static readonly IDENTITY_CONSOLIDATE_THRESHOLD = 8000;
|
|
2588
|
-
private autoConsolidateIdentity;
|
|
2589
|
-
private formatQmdResults;
|
|
2590
|
-
private formatObjectiveStateResults;
|
|
2591
|
-
private formatCausalTrajectoryResults;
|
|
2592
|
-
private formatTrustZoneResults;
|
|
2593
|
-
private formatHarmonicRetrievalResults;
|
|
2594
|
-
private formatWorkProductResults;
|
|
2595
|
-
private formatVerifiedEpisodeResults;
|
|
2596
|
-
private formatVerifiedSemanticRuleResults;
|
|
2597
|
-
private summarizeIdentityText;
|
|
2598
|
-
private formatOpenIncidentLine;
|
|
2599
|
-
private trimIdentitySection;
|
|
2600
|
-
private buildIdentityContinuitySection;
|
|
2601
|
-
private emitTrace;
|
|
2602
|
-
private queueEvalShadowRecall;
|
|
2603
|
-
private publishRecallResults;
|
|
2604
|
-
private readQmdResultMemory;
|
|
2605
|
-
private resolveColdQmdResultForRecall;
|
|
2606
|
-
private storageForAbsoluteQmdResultPath;
|
|
2607
|
-
private applyMemoryWorthRerank;
|
|
2608
|
-
private applyTrustScoreRerank;
|
|
2609
|
-
private applyTrustScoreToBranch;
|
|
2610
|
-
private diversifyAndLimitRecallResults;
|
|
2611
|
-
private applyMmrToQmdResults;
|
|
2612
|
-
private buildLastRecallBudgetSummary;
|
|
2613
|
-
private collectLastRecallSources;
|
|
2614
|
-
semanticDedupLookup(content: string, limit: number, targetStorage: StorageManager): Promise<SemanticDedupHit[]>;
|
|
2615
|
-
/**
|
|
2616
|
-
* Resolve the namespace-scoped filter to pass into
|
|
2617
|
-
* `EmbeddingFallback.search()` for semantic dedup. Returns an empty
|
|
2618
|
-
* object (no filter) when namespaces are disabled, preserving the
|
|
2619
|
-
* pre-PR #399 behavior for single-tenant installs.
|
|
2620
|
-
*
|
|
2621
|
-
* Index entries are stored as paths relative to `config.memoryDir`, so:
|
|
2622
|
-
* - A non-default namespace `ns` lives under `namespaces/<ns>/…` and
|
|
2623
|
-
* we include exactly that prefix.
|
|
2624
|
-
* - The default namespace may live at `memoryDir` root (legacy) or at
|
|
2625
|
-
* `memoryDir/namespaces/<default>/…` (migrated). When it lives at
|
|
2626
|
-
* root we include everything but EXCLUDE all `namespaces/…` entries
|
|
2627
|
-
* so facts from non-default namespaces can't cross-match.
|
|
2628
|
-
*/
|
|
2629
|
-
private semanticDedupScopeFor;
|
|
2630
|
-
private searchEmbeddingFallback;
|
|
2631
|
-
private searchQueryAwareFallback;
|
|
2632
|
-
private applyColdFallbackPipeline;
|
|
2633
|
-
/**
|
|
2634
|
-
* Record that memories were accessed (retrieved).
|
|
2635
|
-
* Updates are batched in memory and flushed during consolidation.
|
|
2636
|
-
*/
|
|
2637
|
-
trackMemoryAccess(memoryIds: string[], memoryPaths?: string[], memoryNamespaces?: Array<string | undefined>): void;
|
|
2638
|
-
flushAccessTracking(): Promise<void>;
|
|
2639
|
-
private loadSearchResultMemoryMap;
|
|
2640
|
-
private filterSearchResultsByRecallSafety;
|
|
2641
|
-
private filterSearchResultsForRecall;
|
|
2642
|
-
private boostSearchResults;
|
|
2643
|
-
private extractMemoryIdsFromResults;
|
|
2644
|
-
recordMemoryFeedback(memoryId: string, vote: "up" | "down", note?: string): Promise<void>;
|
|
2645
|
-
recordNotUsefulMemories(memoryIds: string[], note?: string): Promise<void>;
|
|
2646
|
-
getLastRecall(sessionKey: string): LastRecallSnapshot | null;
|
|
2647
|
-
drainPendingRecallImpressions(): Promise<DrainPendingImpressionsResult>;
|
|
2648
|
-
/**
|
|
2649
|
-
* Issue #1582 — resolve a memory handle (`[m:4f2a]` / bare hex) to its memory
|
|
2650
|
-
* id against THIS session's recent recall history. Returns the id on a unique
|
|
2651
|
-
* hit, `null` on a miss, and throws on ambiguity (callers must disambiguate —
|
|
2652
|
-
* rule 34/51). Resolution is per-session and snapshot-scoped; there is no
|
|
2653
|
-
* global handle→id map (rule 42).
|
|
2654
|
-
*/
|
|
2655
|
-
resolveMemoryHandle(handle: string, sessionKey: string): string | null;
|
|
2656
|
-
/**
|
|
2657
|
-
* Issue #1582 — resolve a caller reference that may be EITHER a memory id or
|
|
2658
|
-
* a handle to a concrete memory id. Handles resolve against the session's
|
|
2659
|
-
* recall history; raw ids pass through unchanged. The single shared helper
|
|
2660
|
-
* every surface (memory_get / feedback / outcome / correction targetIds)
|
|
2661
|
-
* calls so handle resolution has one path (rule 22).
|
|
2662
|
-
*/
|
|
2663
|
-
resolveMemoryIdOrHandle(ref: string, sessionKey?: string): string;
|
|
2664
|
-
/**
|
|
2665
|
-
* Check if a new memory contradicts an existing one.
|
|
2666
|
-
* Uses QMD to find similar memories, then LLM to verify contradiction.
|
|
2667
|
-
*/
|
|
2668
|
-
private checkForContradiction;
|
|
2669
|
-
/**
|
|
2670
|
-
* #1645: Complete the deferred contradiction auto-resolve after writeMemory
|
|
2671
|
-
* returns and the new write's tombstone status is known. Retires the old
|
|
2672
|
-
* memory + deindexes it ONLY when the new write is genuinely active (not
|
|
2673
|
-
* tombstone-blocked / pending_review). A blocked write must not retire the
|
|
2674
|
-
* only active copy — deferring here closes the "contradictionAutoResolve
|
|
2675
|
-
* supersedes before tombstone status is known" defect class.
|
|
2676
|
-
*/
|
|
2677
|
-
private applyDeferredContradictionResolve;
|
|
2678
|
-
/**
|
|
2679
|
-
* Suggest links for a new memory based on similar existing memories.
|
|
2680
|
-
*/
|
|
2681
|
-
private suggestLinksForMemory;
|
|
2682
|
-
private namespaceFromPath;
|
|
2683
|
-
private storageDirNamespace;
|
|
2684
|
-
/**
|
|
2685
|
-
* Public best-effort catalog write touch (issue #1499). User-facing explicit
|
|
2686
|
-
* captures (`memory_store`) and review-queue approvals persist via
|
|
2687
|
-
* `persistExplicitCapture()` → `storage.writeMemory()`, which bypasses the
|
|
2688
|
-
* extraction write path that owns the catalog touch. Without this their
|
|
2689
|
-
* namespaces never record `lastWriteAt`, so the catalog under-reports write
|
|
2690
|
-
* recency (round 5, codex P2). Fire-and-forget and failure-tolerant — a
|
|
2691
|
-
* catalog error must never affect the explicit write (gotcha #13, rule #40).
|
|
2692
|
-
*
|
|
2693
|
-
* An undefined/empty `namespace` means the write targeted the DEFAULT namespace
|
|
2694
|
-
* (`getStorage(undefined)` routes there), so we record it under the configured
|
|
2695
|
-
* default rather than skipping it (round 6, codex P2 — default `memory_store`
|
|
2696
|
-
* and inline-note writes were missing from `writtenSince`/maintenance).
|
|
2697
|
-
*/
|
|
2698
|
-
private readAllMemoriesForNamespaces;
|
|
2699
|
-
}
|
|
2700
|
-
|
|
2701
|
-
export { summarizeGraphShadowComparison as $, normalizeIanaTimeZone as A, type BulkImportBatchIngestResult as B, ConversationIndexCoordinator as C, type DaySummaryGatherOptions as D, type ExtractionRunResult as E, parseFiniteDate as F, type GraphRecallSnapshot as G, parseGraphRecallRankedResults as H, type IntentDebugSnapshot as I, parseMemoryIntentSnapshot as J, parseQmdRecallResults as K, qmdStartupCollectionCheckWithTimeout as L, qmdStartupCollectionChecksWithTimeout as M, raceRecallAbort as N, Orchestrator as O, type PatternReinforcementResult as P, type QmdRecallSnapshot as Q, type RecallInvocationOptions as R, resolveEffectiveIdentityInjectionMode as S, TierMigrationCoordinator as T, resolveEffectiveRecallMode as U, resolvePersistedMemoryRelativePath as V, resolveRecallModeDecision as W, resolveRecallModeDecisionAsync as X, resolveRecentThreadMemoryPaths as Y, shouldFilterLifecycleRecallCandidate as Z, splitTurnsBySourceValidAt as _, BulkImportBatchPartialFailureError as a, targetSourceValidAtSortMs as a0, throwIfRecallAborted as a1, tokenizeRecallQuery as a2, utcDateKeysForLocalDay as a3, COMPACTION_SIGNAL_MAX_AGE_MS as b, type GraphRecallRankedResult as c, defaultWorkspaceDir as d, type GraphRecallShadowComparison as e, type QueryAwarePrefilter as f, type RecallModeDecision as g, appendMemoryToGraphContext as h, applyQueryAwareCandidateFilter as i, blendGraphExpandedRecallScore as j, buildCompressionGuidelinesMarkdown as k, buildMemoryPathById as l, computeArtifactCandidateFetchLimit as m, computeArtifactRecallLimit as n, computeQmdHybridFetchLimit as o, deriveTopicsFromExtraction as p, filterHourlySummaryMarkdownForLocalDay as q, formatDateInTimeZone as r, sanitizeSessionKeyForFilename as s, graphPathRelativeToStorage as t, hasIdentityRecoveryIntent as u, isArtifactMemoryPath as v, lifecycleRecallScoreAdjustment as w, mapRecallSourceToXrayServedBy as x, mergeArtifactRecallCandidates as y, mergeGraphExpandedResults as z };
|