@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,2421 +0,0 @@
|
|
|
1
|
-
import { M as MemoryFile, bd as FusedWearableConversation, bl as FusedDayMeta, bm as FusedDayFile, b1 as MeetingRecord, bn as MeetingDetectionSource, b0 as FusedMeeting, m as MemoryFrontmatter, bo as EntityTimelineEntry, as as EntityStructuredSection, E as EntityFile, P as PluginConfig, x as MemoryStatus, u as MemoryCategory, aB as ImportanceScore, bp as MemoryLink, F as FaithfulnessFrontmatter, U as ProvenanceSource, N as MemorySubject, bq as BufferState, aK as MetaState, an as MemoryActionEvent, K as MemoryLifecycleEvent, ae as BufferSurpriseEvent, ad as BehaviorSignalEvent, ao as CompressionGuidelineOptimizerState, br as FileHygieneConfig, bs as EntityRelationship, bt as EntityActivityEntry, bu as AccessTrackingEntry, J as MemoryProjectionCurrentState, bv as MemorySummary, aO as TopicScore } from './types-Du6VdoAg.js';
|
|
2
|
-
import { CorpusReadOptions } from './corpus-read-cancellation.js';
|
|
3
|
-
import { ArtifactSearchOptions } from './artifact-search.js';
|
|
4
|
-
import { ContextTransformTelemetryRecord } from './active-context-transform.js';
|
|
5
|
-
import './entity-id-normalization.js';
|
|
6
|
-
import { VersioningConfig } from './page-versioning.js';
|
|
7
|
-
import { ConsolidationOperator } from './consolidation-operator.js';
|
|
8
|
-
import { withHeldFileLock } from './utils/serialize-mutations.js';
|
|
9
|
-
import { ProjectedMemoryBrowseOptions, ProjectedMemoryBrowsePage, readProjectedGovernanceRecord } from './memory-projection-store.js';
|
|
10
|
-
import { SealedMemoryEnvelope } from './write-envelope.js';
|
|
11
|
-
import './structured-attributes.js';
|
|
12
|
-
import { ContinuityIncidentOpenInput, ContinuityIncidentRecord, ContinuityIncidentCloseInput, ContinuityImprovementLoop, ContinuityLoopUpsertInput, ContinuityLoopReviewInput } from './types-continuity.js';
|
|
13
|
-
|
|
14
|
-
/** #2813 (P1 A): truthful outcome of a standing-receipt read.
|
|
15
|
-
* - `present` — the target's standing receipt token.
|
|
16
|
-
* - `absent` — no receipt was ever minted (a pre-sidecar legacy record, or
|
|
17
|
-
* a fresh target); `undefined` semantics stay correct for those.
|
|
18
|
-
* - `unavailable` — the sidecar could not be read (unreadable, unsafe, or
|
|
19
|
-
* PENDING finalization), so receipt identity is UNKNOWN. The fail-open
|
|
20
|
-
* `readRevision` collapses this into `undefined`; callers that transact
|
|
21
|
-
* on receipt identity MUST refuse instead. */
|
|
22
|
-
type CasRevisionReadStatus = {
|
|
23
|
-
status: "present";
|
|
24
|
-
revision: string;
|
|
25
|
-
committedDigest?: string;
|
|
26
|
-
committedSemanticFingerprint?: string;
|
|
27
|
-
} | {
|
|
28
|
-
status: "absent";
|
|
29
|
-
} | {
|
|
30
|
-
status: "unavailable";
|
|
31
|
-
reason: string;
|
|
32
|
-
};
|
|
33
|
-
/** #2813 (P1 C): a write-ahead receipt transaction. `pendingRevision` is a
|
|
34
|
-
* RESERVATION, never ownership: no reader may attribute the record from it
|
|
35
|
-
* while the marker is pending. `commit` publishes the COMMITTED receipt
|
|
36
|
-
* after the durable memory write lands; `abort` discards the reservation
|
|
37
|
-
* (restoring the previous standing token) when the write failed. If
|
|
38
|
-
* `commit` itself fails after the write, the pending marker REMAINS so
|
|
39
|
-
* readers report recovery-needed and promotion/rollback refuse until
|
|
40
|
-
* {@link CasRevisionStore.reconcilePendingRevision} runs with the known
|
|
41
|
-
* write outcome or {@link CasRevisionStore.recoverPendingRevision} decides
|
|
42
|
-
* from the recorded evidence (#2807). */
|
|
43
|
-
interface CasRevisionTransaction {
|
|
44
|
-
readonly pendingRevision: string;
|
|
45
|
-
/** #2807: record the durable file's post-write fingerprint in the
|
|
46
|
-
* PENDING marker — the crash evidence recovery compares. Call immediately
|
|
47
|
-
* after the durable write lands, before `commit`. */
|
|
48
|
-
writeLanded(): Promise<void>;
|
|
49
|
-
commit(): Promise<void>;
|
|
50
|
-
abort(): Promise<void>;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
interface WindowedMemoryReadOptions {
|
|
54
|
-
maxMemories?: number;
|
|
55
|
-
batchSize?: number;
|
|
56
|
-
updatedAfter?: Date;
|
|
57
|
-
/** Require candidate paths so malformed files can be reported by governance. */
|
|
58
|
-
includeMalformedPaths?: boolean;
|
|
59
|
-
}
|
|
60
|
-
interface WindowedMemoryReadResult {
|
|
61
|
-
memories: MemoryFile[];
|
|
62
|
-
filePaths: string[];
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/** Result of a pre-snapshot lifecycle drain (#2033): `folded` is true when spill
|
|
66
|
-
* rows were committed to the active ledger; `pendingDeferred` is true when
|
|
67
|
-
* durable spill rows STILL remain in the offline-sync-EXCLUDED pending queue
|
|
68
|
-
* after the attempt (the ledger lock was held by a peer, or a spill could not
|
|
69
|
-
* be claimed). A caller MUST NOT report a clean snapshot while `pendingDeferred`
|
|
70
|
-
* is true — those append-only rows would be silently omitted. */
|
|
71
|
-
interface DrainPendingLifecycleForSyncResult {
|
|
72
|
-
folded: boolean;
|
|
73
|
-
pendingDeferred: boolean;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* Wearable cross-source fusion — derived-day file serialization.
|
|
78
|
-
*
|
|
79
|
-
* One derived file per fused day, stored ALONGSIDE raw source transcripts
|
|
80
|
-
* (under the wearables tree) but never overwriting them. Format mirrors
|
|
81
|
-
* the day-transcript convention: YAML frontmatter (`kind:
|
|
82
|
-
* wearable-fusion`) + a JSON body carrying the structured
|
|
83
|
-
* `FusedWearableConversation[]`. The frontmatter `contentHash` is the
|
|
84
|
-
* idempotency key derived from inputs plus the effective fusion config,
|
|
85
|
-
* so an unchanged re-run (same inputs AND config) produces a
|
|
86
|
-
* byte-identical file.
|
|
87
|
-
*/
|
|
88
|
-
|
|
89
|
-
declare const FUSION_KIND: "wearable-fusion";
|
|
90
|
-
/** Hash the canonical JSON body for idempotent skip-unchanged checks. */
|
|
91
|
-
declare function hashFusionBody(conversations: readonly FusedWearableConversation[]): string;
|
|
92
|
-
declare function composeFusionDayMeta(date: string, conversations: readonly FusedWearableConversation[], sources: readonly string[], contentHash: string, fusedAt: string): FusedDayMeta;
|
|
93
|
-
/** Serialize meta + conversations into the persisted file format. */
|
|
94
|
-
declare function serializeFusionDay(meta: FusedDayMeta, conversations: readonly FusedWearableConversation[]): string;
|
|
95
|
-
/**
|
|
96
|
-
* Parse a persisted fused-day file. Returns null when the content does
|
|
97
|
-
* not look like a fusion artifact (wrong kind / missing frontmatter) so
|
|
98
|
-
* callers can distinguish "not fused" from a malformed file. A non-null
|
|
99
|
-
* result carries `parseOk`: false when the JSON body failed to parse, was
|
|
100
|
-
* not an array, or held a malformed element (conversations is empty in
|
|
101
|
-
* that case), true for a well-formed (incl. legitimately-empty `[]`)
|
|
102
|
-
* body — so the skip-unchanged path can force a self-repair rewrite
|
|
103
|
-
* regardless of the recomputed conversation count or body hash.
|
|
104
|
-
*/
|
|
105
|
-
declare function parseFusionDay(raw: string): FusedDayFile | null;
|
|
106
|
-
/**
|
|
107
|
-
* Encrypted-at-rest + atomic file IO the fusion artifact store needs.
|
|
108
|
-
* Satisfied by StorageManager (which owns the secure-store key + atomic
|
|
109
|
-
* write path) and injected so this module performs NO direct fs — the
|
|
110
|
-
* derived files inherit the same encrypted-at-rest + atomic-write
|
|
111
|
-
* semantics as raw day transcripts without this module knowing the key.
|
|
112
|
-
*/
|
|
113
|
-
interface FusionFileIo {
|
|
114
|
-
writeFile(filePath: string, content: string): Promise<void>;
|
|
115
|
-
/** Read a file; rejects with ENOENT when it is absent. */
|
|
116
|
-
readFile(filePath: string): Promise<string>;
|
|
117
|
-
/** Directory entries; rejects with ENOENT when the directory is absent. */
|
|
118
|
-
readDir(dirPath: string): Promise<string[]>;
|
|
119
|
-
/** Remove a file; rejects with ENOENT when it is absent. */
|
|
120
|
-
deleteFile(filePath: string): Promise<void>;
|
|
121
|
-
/**
|
|
122
|
-
* Resolve a path through symlinks (node:fs/promises realpath); rejects
|
|
123
|
-
* with ENOENT when the path is absent. Used by the symlink-containment
|
|
124
|
-
* guard so a symlinked `_fusion` dir (or a symlinked wearables root)
|
|
125
|
-
* that resolves outside the memory dir is rejected before any
|
|
126
|
-
* read/write/delete (AGENTS.md #3).
|
|
127
|
-
*/
|
|
128
|
-
realpath(filePath: string): Promise<string>;
|
|
129
|
-
/**
|
|
130
|
-
* Stat a path WITHOUT following a trailing symlink
|
|
131
|
-
* (node:fs/promises lstat); rejects with ENOENT when the path is
|
|
132
|
-
* absent. Used to detect a pre-existing symlink at the fusion
|
|
133
|
-
* artifact directory itself, which is rejected even when its
|
|
134
|
-
* target resolves inside the memory dir (issue #1849).
|
|
135
|
-
*/
|
|
136
|
-
lstat(filePath: string): Promise<{
|
|
137
|
-
isSymbolicLink: boolean;
|
|
138
|
-
}>;
|
|
139
|
-
}
|
|
140
|
-
/**
|
|
141
|
-
* Owns the derived fused-day artifact files under
|
|
142
|
-
* `<wearablesDir>/_fusion/<YYYY-MM-DD>.md`. Path construction, date
|
|
143
|
-
* validation, and newest-first listing live here (relocated out of the
|
|
144
|
-
* root storage module — issue #1810 ratchet); the bytes flow through the
|
|
145
|
-
* injected secure IO.
|
|
146
|
-
*/
|
|
147
|
-
declare class FusionArtifactStore {
|
|
148
|
-
private readonly wearablesDir;
|
|
149
|
-
private readonly memoryDir;
|
|
150
|
-
private readonly io;
|
|
151
|
-
constructor(wearablesDir: string, memoryDir: string, io: FusionFileIo);
|
|
152
|
-
fusedDayPath(date: string): string;
|
|
153
|
-
writeFusedDay(date: string, serialized: string): Promise<void>;
|
|
154
|
-
/** Read a stored fused-day artifact; null when absent. */
|
|
155
|
-
readFusedDay(date: string): Promise<string | null>;
|
|
156
|
-
/**
|
|
157
|
-
* Remove a stored fused-day artifact. Idempotent: a no-op when the
|
|
158
|
-
* artifact is already absent. Used to clear a now-stale derived file
|
|
159
|
-
* before a fusion run that deliberately refuses to fuse (e.g. a day
|
|
160
|
-
* whose sources later conflict on timezone) so fusedConversations()
|
|
161
|
-
* does not keep serving a stale view (issue #1849).
|
|
162
|
-
*/
|
|
163
|
-
deleteFusedDay(date: string): Promise<void>;
|
|
164
|
-
/** List dates with stored fused artifacts, newest first. */
|
|
165
|
-
listFusedDays(): Promise<string[]>;
|
|
166
|
-
/**
|
|
167
|
-
* Reject a symlinked/traversing fusion artifact path before any IO. The
|
|
168
|
-
* fusion dir (`<wearablesDir>/_fusion`) and its parents are followed
|
|
169
|
-
* directly by the secure IO; a symlink placed there (attacker-writable
|
|
170
|
-
* or a malformed memory dir) would otherwise be followed and
|
|
171
|
-
* read/write/delete outside the allowed root (AGENTS.md pattern #3).
|
|
172
|
-
*
|
|
173
|
-
* Containment is anchored to the real MEMORY-DIR root, not the
|
|
174
|
-
* wearables dir, AND the wearables root is checked explicitly: if
|
|
175
|
-
* `wearablesDir` itself is a symlink that resolves outside memoryDir, a
|
|
176
|
-
* leaf candidate like `<wearablesDir>/_fusion/<date>.md` may not yet
|
|
177
|
-
* exist (so its realpath ENOENT-skips) and the write would silently
|
|
178
|
-
* create the file inside the symlinked escape target. Checking
|
|
179
|
-
* `wearablesDir` itself — which resolves through the symlink when it
|
|
180
|
-
* exists — closes that gap, while the per-leaf checks catch a nested
|
|
181
|
-
* `_fusion` or per-file symlink. Absent paths are allowed (a fresh
|
|
182
|
-
* write creates them lexically under the root; only a path that
|
|
183
|
-
* resolves to an existing target can redirect IO). Mirrors
|
|
184
|
-
* `assertPathInsideRoot` in the storage walkers.
|
|
185
|
-
*/
|
|
186
|
-
private assertPathContained;
|
|
187
|
-
/**
|
|
188
|
-
* Refuse a pre-existing symbolic link at the `<wearablesDir>/_fusion`
|
|
189
|
-
* directory. Unlike `assertNoEscape` (which follows the link and only
|
|
190
|
-
* rejects when the target lands outside the memory dir), this catches a
|
|
191
|
-
* fusion root that aliases an in-bounds path — e.g. a `_fusion` link
|
|
192
|
-
* pointed at a raw source transcript — so fusion IO never writes
|
|
193
|
-
* through it and overwrites the aliased file. Absent dirs are allowed
|
|
194
|
-
* (a fresh write creates a real directory lexically under the root).
|
|
195
|
-
*/
|
|
196
|
-
private assertFusionDirNotSymlinked;
|
|
197
|
-
/**
|
|
198
|
-
* Refuse a candidate whose realpath escapes the memory root. Absent
|
|
199
|
-
* candidates are allowed: a missing path cannot yet redirect IO, and
|
|
200
|
-
* the secure write creates it lexically under the root.
|
|
201
|
-
*/
|
|
202
|
-
private assertNoEscape;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
/**
|
|
206
|
-
* Meeting record composition, serialization, and the on-disk store (#1900).
|
|
207
|
-
*
|
|
208
|
-
* One markdown file per meeting under `<memoryDir>/meetings/<YYYY-MM-DD>/<id>.md`
|
|
209
|
-
* with YAML frontmatter. Placement mirrors the wearables day-store rationale:
|
|
210
|
-
*
|
|
211
|
-
* - OUTSIDE the memory scan roots (facts/, procedures/, …) so meeting
|
|
212
|
-
* transcripts never surface as memories in recall or governance passes;
|
|
213
|
-
* - INSIDE the QMD collection root (the memory dir) so records are full-text
|
|
214
|
-
* searchable after the next index update — but never auto-recalled raw.
|
|
215
|
-
*
|
|
216
|
-
* Records rebuild idempotently on `contentHash`: an unchanged meeting re-writes
|
|
217
|
-
* nothing. The transcript body reuses the wearables day-store line grammar
|
|
218
|
-
* (`**Name** [HH:MM]: text`, escape-aware) so existing parsers apply. File IO is
|
|
219
|
-
* injected (like the fusion artifact store) so encrypted-at-rest + atomic-write
|
|
220
|
-
* semantics are inherited without this module touching the secure-store key.
|
|
221
|
-
*/
|
|
222
|
-
|
|
223
|
-
declare const MEETINGS_DIR_NAME = "meetings";
|
|
224
|
-
declare const MEETING_KIND: "meeting";
|
|
225
|
-
declare const MEETING_FORMAT_VERSION = 1;
|
|
226
|
-
/** The detection-source label from a meeting id would be ambiguous, so validate
|
|
227
|
-
* an id AND confirm its embedded date matches the directory it lives under. */
|
|
228
|
-
declare function meetingIdDate(id: string): string | null;
|
|
229
|
-
/** Base fields (identity + detection) a fused meeting is composed with. */
|
|
230
|
-
interface MeetingRecordBase {
|
|
231
|
-
id: string;
|
|
232
|
-
date: string;
|
|
233
|
-
startUtc: string;
|
|
234
|
-
endUtc: string;
|
|
235
|
-
app?: string;
|
|
236
|
-
detectionSource: MeetingDetectionSource;
|
|
237
|
-
title?: string;
|
|
238
|
-
}
|
|
239
|
-
/** Compose a full meeting record (with contentHash) from its base + fused view. */
|
|
240
|
-
declare function composeMeetingRecord(base: MeetingRecordBase, fused: FusedMeeting): MeetingRecord;
|
|
241
|
-
/** Serialize a meeting record into its persisted markdown form. */
|
|
242
|
-
declare function serializeMeetingRecord(record: MeetingRecord): string;
|
|
243
|
-
/** A meeting record's frontmatter, parsed for listing + idempotency checks. */
|
|
244
|
-
interface MeetingRecordSummary {
|
|
245
|
-
id: string;
|
|
246
|
-
date: string;
|
|
247
|
-
startUtc: string;
|
|
248
|
-
endUtc: string;
|
|
249
|
-
app?: string;
|
|
250
|
-
detectionSource: string;
|
|
251
|
-
title?: string;
|
|
252
|
-
attendees: string[];
|
|
253
|
-
sources: string[];
|
|
254
|
-
corroboratedBy: string[];
|
|
255
|
-
snapshotCount: number;
|
|
256
|
-
contentHash: string;
|
|
257
|
-
}
|
|
258
|
-
/** Parse a meeting record's frontmatter. Returns null when the content is not a
|
|
259
|
-
* meeting record (wrong kind, missing frontmatter) so callers distinguish a
|
|
260
|
-
* non-record from a corrupt one. */
|
|
261
|
-
declare function parseMeetingRecordSummary(raw: string): MeetingRecordSummary | null;
|
|
262
|
-
/**
|
|
263
|
-
* Encrypted-at-rest + atomic file IO the meeting record store needs. Satisfied
|
|
264
|
-
* by StorageManager (which owns the secure-store key + atomic write path) and
|
|
265
|
-
* injected so this module performs NO direct fs — records inherit the same
|
|
266
|
-
* encrypted-at-rest + atomic-write semantics as memories. Same shape as the
|
|
267
|
-
* fusion artifact store's IO port (kept per-module, not shared, so each store's
|
|
268
|
-
* boundary stays explicit).
|
|
269
|
-
*/
|
|
270
|
-
interface MeetingRecordFileIo {
|
|
271
|
-
writeFile(filePath: string, content: string): Promise<void>;
|
|
272
|
-
readFile(filePath: string): Promise<string>;
|
|
273
|
-
readDir(dirPath: string): Promise<string[]>;
|
|
274
|
-
deleteFile(filePath: string): Promise<void>;
|
|
275
|
-
realpath(filePath: string): Promise<string>;
|
|
276
|
-
lstat(filePath: string): Promise<{
|
|
277
|
-
isSymbolicLink: boolean;
|
|
278
|
-
}>;
|
|
279
|
-
}
|
|
280
|
-
/** Result of an idempotent record save. */
|
|
281
|
-
interface MeetingSaveResult {
|
|
282
|
-
path: string;
|
|
283
|
-
/** False when the on-disk contentHash already matched (nothing rewritten). */
|
|
284
|
-
written: boolean;
|
|
285
|
-
contentHash: string;
|
|
286
|
-
}
|
|
287
|
-
/**
|
|
288
|
-
* Owns the meeting record files under `<memoryDir>/meetings/<date>/<id>.md`.
|
|
289
|
-
* Path construction, date/id validation, and symlink containment live here; the
|
|
290
|
-
* bytes flow through the injected secure IO. Containment is anchored to the real
|
|
291
|
-
* memory-dir root and mirrors the fusion artifact store (AGENTS.md pattern #3).
|
|
292
|
-
*/
|
|
293
|
-
declare class MeetingRecordStore {
|
|
294
|
-
private readonly memoryDir;
|
|
295
|
-
private readonly io;
|
|
296
|
-
private readonly meetingsDir;
|
|
297
|
-
constructor(memoryDir: string, io: MeetingRecordFileIo);
|
|
298
|
-
recordPath(date: string, id: string): string;
|
|
299
|
-
/** Idempotently persist a record: skip the write when contentHash is unchanged. */
|
|
300
|
-
saveMeetingRecord(record: MeetingRecord): Promise<MeetingSaveResult>;
|
|
301
|
-
/** Read a stored record's raw markdown; null when absent. */
|
|
302
|
-
readMeetingRecord(date: string, id: string): Promise<string | null>;
|
|
303
|
-
/**
|
|
304
|
-
* Read + parse every stored record for a day exactly ONCE, sorted by start
|
|
305
|
-
* time (ascending, id tiebreak). The single day-read path both `listMeetingIds`
|
|
306
|
-
* and `listMeetingSummaries` derive from — no record is read twice.
|
|
307
|
-
*/
|
|
308
|
-
private readDaySummaries;
|
|
309
|
-
/** List meeting ids stored for a day, sorted by start time (ascending). */
|
|
310
|
-
listMeetingIds(date: string): Promise<string[]>;
|
|
311
|
-
/** Read parsed summaries for a day, sorted by start time. */
|
|
312
|
-
listMeetingSummaries(date: string): Promise<MeetingRecordSummary[]>;
|
|
313
|
-
/** List dates that have at least one stored meeting record, newest first. */
|
|
314
|
-
listMeetingDates(): Promise<string[]>;
|
|
315
|
-
/** Remove a stored record. Idempotent: a no-op when already absent. */
|
|
316
|
-
deleteMeetingRecord(date: string, id: string): Promise<void>;
|
|
317
|
-
private readRaw;
|
|
318
|
-
private assertPathContained;
|
|
319
|
-
/** The `<meetings>/<date>` directory on the path to `targetPath`, or null when
|
|
320
|
-
* `targetPath` is the meetings root itself. */
|
|
321
|
-
private dayDirWithin;
|
|
322
|
-
private assertNotSymlink;
|
|
323
|
-
private assertNoEscape;
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
/** Why a tombstone was emitted. */
|
|
327
|
-
type TombstoneReason = "correction" | "supersession" | "retraction" | "contradiction_resolution";
|
|
328
|
-
/** Who emitted the tombstone. */
|
|
329
|
-
type TombstoneCreatedBy = "user_correction" | "contradiction_resolution" | "supersession" | "chat";
|
|
330
|
-
/** Tier that matched on lookup. */
|
|
331
|
-
type TombstoneMatchTier = "exact" | "normalized" | "keyed" | "semantic";
|
|
332
|
-
/**
|
|
333
|
-
* A single append-only tombstone log entry.
|
|
334
|
-
*
|
|
335
|
-
* `kind: "tombstone"` blocks; `kind: "revocation"` re-allows. The log is
|
|
336
|
-
* never rewritten — the NEWEST matching entry wins at lookup (rule 25).
|
|
337
|
-
*/
|
|
338
|
-
interface TombstoneEntry {
|
|
339
|
-
/** Stable tombstone id (`tomb-<ts>-<rand>`). */
|
|
340
|
-
id: string;
|
|
341
|
-
kind: "tombstone" | "revocation";
|
|
342
|
-
reason: TombstoneReason;
|
|
343
|
-
/** The memory that was retired. */
|
|
344
|
-
sourceMemoryId: string;
|
|
345
|
-
/** sha256 of the retired identity; explicit contentHashSource may define it. */
|
|
346
|
-
contentHash: string;
|
|
347
|
-
/** Current body hash retained alongside an ambiguous or explicit primary hash. */
|
|
348
|
-
currentContentHashAlias?: string;
|
|
349
|
-
/** Current normalized body used by the normalized lookup tier. */
|
|
350
|
-
normalizedText: string;
|
|
351
|
-
/** Version of the current body identity fields. */
|
|
352
|
-
normalizerVersion?: number;
|
|
353
|
-
entityRef?: string;
|
|
354
|
-
/** Structured-attribute supersession key when one existed. */
|
|
355
|
-
supersessionKey?: string;
|
|
356
|
-
/** Stable operation identity for crash-recovery replay. */
|
|
357
|
-
operationKey?: string;
|
|
358
|
-
/** Namespace scope (rule 42). */
|
|
359
|
-
namespace: string;
|
|
360
|
-
createdAt: string;
|
|
361
|
-
createdBy: TombstoneCreatedBy;
|
|
362
|
-
/** For `kind: "revocation"`: the tombstone id being revoked. */
|
|
363
|
-
revokes?: string;
|
|
364
|
-
}
|
|
365
|
-
/** A positive block decision returned by `TombstoneStore.lookup`. */
|
|
366
|
-
interface TombstoneMatch {
|
|
367
|
-
tombstoneId: string;
|
|
368
|
-
matchedTier: TombstoneMatchTier;
|
|
369
|
-
reason: TombstoneReason;
|
|
370
|
-
}
|
|
371
|
-
/** Inputs to a lookup. At least one discriminator must be present.
|
|
372
|
-
*
|
|
373
|
-
* Issue #1579 thread Ociag/Oci-W: `supersessionKeys` (plural) lets the write
|
|
374
|
-
* chokepoint check EVERY derived key, not just the first. Emitters register
|
|
375
|
-
* one tombstone per matched key (temporal-supersession, rebuild), so a block
|
|
376
|
-
* can live on any later key; querying only `supersessionKeys[0]` missed it
|
|
377
|
-
* and the retired fact resurrected as active. `supersessionKey` (singular)
|
|
378
|
-
* remains for direct/unit callers; `lookup` checks the union of both. */
|
|
379
|
-
interface TombstoneLookupQuery {
|
|
380
|
-
contentHash?: string;
|
|
381
|
-
normalizedText?: string;
|
|
382
|
-
entityRef?: string;
|
|
383
|
-
/** Single supersession key (direct/unit callers). */
|
|
384
|
-
supersessionKey?: string;
|
|
385
|
-
/** All derived supersession keys (write chokepoint). The keyed tier is
|
|
386
|
-
* checked for each; the first active match wins. */
|
|
387
|
-
supersessionKeys?: string[];
|
|
388
|
-
namespace: string;
|
|
389
|
-
}
|
|
390
|
-
/** Configuration for a tombstone store instance. */
|
|
391
|
-
interface TombstoneStoreOptions {
|
|
392
|
-
enabled: boolean;
|
|
393
|
-
semanticMatch: boolean;
|
|
394
|
-
semanticThreshold: number;
|
|
395
|
-
/** sha256 of raw content — wired to `ContentHashIndex.computeHash`. */
|
|
396
|
-
hashContent: (raw: string) => string;
|
|
397
|
-
/** Normalize raw content — wired to `ContentHashIndex.normalizeContent`. */
|
|
398
|
-
normalizeText: (raw: string) => string;
|
|
399
|
-
/**
|
|
400
|
-
* Optional cosine similarity in [0, 1] for the semantic tier. When
|
|
401
|
-
* undefined or when `semanticMatch` is false, the semantic tier is
|
|
402
|
-
* skipped entirely.
|
|
403
|
-
*/
|
|
404
|
-
semanticSimilarity?: (a: string, b: string) => number;
|
|
405
|
-
/**
|
|
406
|
-
* Resolve source identity candidates for bounded legacy sourceMemoryIds.
|
|
407
|
-
* StorageManager reads the corpus before the tombstone write lock.
|
|
408
|
-
*/
|
|
409
|
-
readonly sourceContentsForMemoryIds?: (sourceMemoryIds: readonly string[]) => Promise<ReadonlyMap<string, string | readonly string[]>>;
|
|
410
|
-
/** Maximum number of legacy entries considered during one load. */
|
|
411
|
-
readonly legacyMigrationLimit?: number;
|
|
412
|
-
/**
|
|
413
|
-
* Cross-process write-lock timings for the tombstone JSONL mutation lock
|
|
414
|
-
* (issue #1639). The secure-store append is a read-merge-write (read
|
|
415
|
-
* encrypted → decrypt → concat → re-encrypt → atomic rename), so two
|
|
416
|
-
* Remnic processes appending concurrently can each read the same contents
|
|
417
|
-
* and the last writer drops the other's entry — breaking the
|
|
418
|
-
* non-resurrection invariant. The lock serializes the mutation across
|
|
419
|
-
* processes. When omitted, defaults that fit the short tombstone critical
|
|
420
|
-
* section (mirroring the summary-snapshot lock): staleMs 30s, maxWaitMs 5s,
|
|
421
|
-
* heartbeatMs floor(staleMs/3).
|
|
422
|
-
*/
|
|
423
|
-
readonly lockStaleMs?: number;
|
|
424
|
-
readonly lockMaxWaitMs?: number;
|
|
425
|
-
readonly lockHeartbeatMs?: number;
|
|
426
|
-
}
|
|
427
|
-
/** Injected file I/O — the StorageManager wires its secure-store-aware
|
|
428
|
-
* implementations so tombstones are encrypted at rest alongside other state.
|
|
429
|
-
* `stat` is optional; when provided the store tracks the file mtime itself and
|
|
430
|
-
* runs a cross-process staleness probe on each access (#1579). */
|
|
431
|
-
interface TombstoneFileIo {
|
|
432
|
-
read: (filePath: string) => Promise<string>;
|
|
433
|
-
append: (filePath: string, content: string) => Promise<void>;
|
|
434
|
-
write: (filePath: string, content: string) => Promise<void>;
|
|
435
|
-
stat?: (filePath: string) => {
|
|
436
|
-
mtimeMs: number;
|
|
437
|
-
};
|
|
438
|
-
}
|
|
439
|
-
/** Aggregate stats for `remnic doctor`. */
|
|
440
|
-
interface TombstoneStats {
|
|
441
|
-
count: number;
|
|
442
|
-
revoked: number;
|
|
443
|
-
lastAppendAt: string | null;
|
|
444
|
-
corruptedLines: number;
|
|
445
|
-
/** Whether the in-memory index matches the on-disk file (rebuild check). */
|
|
446
|
-
loaded: boolean;
|
|
447
|
-
}
|
|
448
|
-
/**
|
|
449
|
-
* The instance-scoped tombstone store. One per StorageManager (rule 11),
|
|
450
|
-
* namespace-scoped via `namespace` + the on-disk path (rule 42).
|
|
451
|
-
*
|
|
452
|
-
* The in-memory index is built lazily on first access and invalidated on
|
|
453
|
-
* append + by the StorageManager's cache-invalidation chokepoint (rule 25).
|
|
454
|
-
*/
|
|
455
|
-
declare class TombstoneStore {
|
|
456
|
-
private readonly filePath;
|
|
457
|
-
private readonly namespace;
|
|
458
|
-
private readonly options;
|
|
459
|
-
private readonly io;
|
|
460
|
-
private entries;
|
|
461
|
-
/** contentHash → tombstone id (newest) — exact tier. */
|
|
462
|
-
private readonly byHash;
|
|
463
|
-
/** normalizedText → tombstone id (newest) — normalized tier. */
|
|
464
|
-
private readonly byNormalized;
|
|
465
|
-
/** entityRef\0supersessionKey → tombstone id (newest) — keyed tier. */
|
|
466
|
-
private readonly byKey;
|
|
467
|
-
/** Tombstone ids that have a later revocation entry. */
|
|
468
|
-
private readonly revokedIds;
|
|
469
|
-
/** id → entry index (newest only, for revocation lookups). */
|
|
470
|
-
private readonly byId;
|
|
471
|
-
private loaded;
|
|
472
|
-
private loadPromise;
|
|
473
|
-
private corruptedLines;
|
|
474
|
-
private lastAppendAt;
|
|
475
|
-
/**
|
|
476
|
-
* Last-seen mtime of the JSONL file (cross-process staleness probe, #1579).
|
|
477
|
-
* Tracked inside the store so the StorageManager wiring stays thin. When the
|
|
478
|
-
* file's mtime advances past this value between accesses, the in-memory index
|
|
479
|
-
* is stale (a peer process appended) and is reloaded before the next lookup.
|
|
480
|
-
*/
|
|
481
|
-
private fileMtimeMs;
|
|
482
|
-
constructor(filePath: string, namespace: string, options: TombstoneStoreOptions, io: TombstoneFileIo);
|
|
483
|
-
/**
|
|
484
|
-
* Resolved cross-process write-lock timings (issue #1639). Defaults mirror
|
|
485
|
-
* the summary-snapshot lock: a tombstone append critical section is
|
|
486
|
-
* sub-second, so a stale lock older than 30s is a crashed holder; bounded
|
|
487
|
-
* acquisition gives up after 5s and strict-fails rather than clobbering a
|
|
488
|
-
* concurrent writer (which would reintroduce the lost-write race this lock
|
|
489
|
-
* closes).
|
|
490
|
-
*/
|
|
491
|
-
private readonly lockStaleMs;
|
|
492
|
-
private readonly lockMaxWaitMs;
|
|
493
|
-
private readonly lockHeartbeatMs;
|
|
494
|
-
/**
|
|
495
|
-
* Sibling advisory lockfile: `<tombstones>.jsonl` → `<tombstones>.lock`.
|
|
496
|
-
* Shared by append, revoke, and rebuild so every JSONL mutation serializes
|
|
497
|
-
* against the others across processes (issue #1639: "shared with rebuilds").
|
|
498
|
-
*/
|
|
499
|
-
private get lockPath();
|
|
500
|
-
/** Lazy load + build the in-memory index. Idempotent. */
|
|
501
|
-
load(): Promise<void>;
|
|
502
|
-
private loadInternal;
|
|
503
|
-
private parseEntries;
|
|
504
|
-
/**
|
|
505
|
-
* Re-index pre-Unicode records from retired source content.
|
|
506
|
-
* Source reads stay bounded, but every batch finishes before the store
|
|
507
|
-
* publishes its in-memory index. Missing sources remain eligible on restart.
|
|
508
|
-
*/
|
|
509
|
-
private migrateLegacyEntries;
|
|
510
|
-
private resetIndex;
|
|
511
|
-
/**
|
|
512
|
-
* Index an entry. Later entries (higher array index = newer createdAt)
|
|
513
|
-
* OVERRIDE earlier ones at each tier key — the newest matching entry wins
|
|
514
|
-
* (rule 25). Revocation entries mark their target as revoked.
|
|
515
|
-
*/
|
|
516
|
-
private indexEntry;
|
|
517
|
-
/** Invalidate the in-memory cache (rule 25). The next access reloads. */
|
|
518
|
-
invalidate(): void;
|
|
519
|
-
/**
|
|
520
|
-
* Cross-process staleness probe (#1579). If the file's mtime advanced since
|
|
521
|
-
* the last load/own-write, a peer process appended and our in-memory index
|
|
522
|
-
* is stale — invalidate and reload before the next access. Mutation callers
|
|
523
|
-
* pass `migrate: false` to avoid nested serializer/lock acquisition.
|
|
524
|
-
*/
|
|
525
|
-
ensureFreshAgainstDisk(options?: {
|
|
526
|
-
migrate?: boolean;
|
|
527
|
-
}): Promise<void>;
|
|
528
|
-
/**
|
|
529
|
-
* Record the file mtime after THIS process writes (append / revoke / rebuild)
|
|
530
|
-
* so `ensureFreshAgainstDisk` does not treat our own write as a peer append
|
|
531
|
-
* and throw away the just-updated in-memory index (#1579 — avoids a needless
|
|
532
|
-
* invalidate+reload in the hot write path).
|
|
533
|
-
*/
|
|
534
|
-
private markWritten;
|
|
535
|
-
private recordFileMtime;
|
|
536
|
-
/**
|
|
537
|
-
* Append a tombstone entry. Serialized via `serializeMutations` keyed by
|
|
538
|
-
* file path so concurrent appends do not interleave, with rejection recovery
|
|
539
|
-
* (rule 40 — a single failed append never poisons the chain). The in-memory
|
|
540
|
-
* index is updated AFTER the durable append succeeds.
|
|
541
|
-
*
|
|
542
|
-
* Returns the new tombstone id.
|
|
543
|
-
*/
|
|
544
|
-
appendTombstone(input: {
|
|
545
|
-
reason: TombstoneReason;
|
|
546
|
-
createdBy: TombstoneCreatedBy;
|
|
547
|
-
sourceMemoryId: string;
|
|
548
|
-
rawContent: string;
|
|
549
|
-
entityRef?: string;
|
|
550
|
-
supersessionKey?: string;
|
|
551
|
-
operationKey?: string;
|
|
552
|
-
createdAt?: string;
|
|
553
|
-
/**
|
|
554
|
-
* Pre-computed canonical contentHash from the retired memory's frontmatter.
|
|
555
|
-
* When provided, used directly so the tombstone's exact tier matches the
|
|
556
|
-
* hash writeMemory computes on re-extraction (issue #1579 review: cited
|
|
557
|
-
* facts must not slip past the chokepoint because the emitter hashed the
|
|
558
|
-
* citation-annotated body instead of the canonical source).
|
|
559
|
-
*/
|
|
560
|
-
contentHash?: string;
|
|
561
|
-
}): Promise<string>;
|
|
562
|
-
/**
|
|
563
|
-
* Append a revocation entry referencing `tombstoneId`. The log is
|
|
564
|
-
* append-only; lookup treats a revoked tombstone as re-allowed (rule 25).
|
|
565
|
-
*/
|
|
566
|
-
revoke(tombstoneId: string, createdBy: TombstoneCreatedBy): Promise<string>;
|
|
567
|
-
private serializeAppend;
|
|
568
|
-
private migrateLoadedLegacyEntries;
|
|
569
|
-
/**
|
|
570
|
-
* Acquire the cross-process tombstone write lock and run `task` under it
|
|
571
|
-
* (issue #1639). Strict-fail on acquisition timeout: the secure-store append
|
|
572
|
-
* is a read-merge-write, so a best-effort unlocked run would clobber a
|
|
573
|
-
* concurrent writer — reintroducing the lost-write race this lock closes.
|
|
574
|
-
* The thrown error surfaces to the caller (rule 34: never silently drop);
|
|
575
|
-
* rebuild recovers the tombstone on the next maintenance cycle.
|
|
576
|
-
*
|
|
577
|
-
* In-process callers are already serialized by serializeMutations (one key
|
|
578
|
-
* for append/revoke/rebuild), so this lock only contends across processes —
|
|
579
|
-
* the single-process daemon (default deployment) acquires it immediately.
|
|
580
|
-
*/
|
|
581
|
-
private withWriteLock;
|
|
582
|
-
/**
|
|
583
|
-
* Look up whether `query` is blocked by an active (non-revoked) tombstone.
|
|
584
|
-
* Tiers are checked in order: exact (contentHash) → normalized → keyed →
|
|
585
|
-
* semantic (off by default). Returns the first active match, or `null`.
|
|
586
|
-
*
|
|
587
|
-
* Namespace isolation (rule 42): only entries with `namespace === query.namespace`
|
|
588
|
-
* match. The store is per-namespace, so this is belt-and-suspenders.
|
|
589
|
-
*/
|
|
590
|
-
lookup(query: TombstoneLookupQuery): TombstoneMatch | null;
|
|
591
|
-
hasExactEntry(input: {
|
|
592
|
-
sourceMemoryId: string;
|
|
593
|
-
contentHash?: string;
|
|
594
|
-
entityRef?: string;
|
|
595
|
-
supersessionKey?: string;
|
|
596
|
-
createdAt?: string;
|
|
597
|
-
operationKey?: string;
|
|
598
|
-
}): Promise<boolean>;
|
|
599
|
-
/** Aggregate stats for the doctor / x-ray surfaces. */
|
|
600
|
-
stats(): TombstoneStats;
|
|
601
|
-
/** Read-only snapshot of all entries (for rebuild + tests). */
|
|
602
|
-
snapshot(): readonly TombstoneEntry[];
|
|
603
|
-
/**
|
|
604
|
-
* Rebuild the in-memory index + JSONL from the supplied retired-memory
|
|
605
|
-
* records + existing entries (preserving revocations). Byte-stable: entries
|
|
606
|
-
* are sorted by (createdAt, id) before write (rule 38).
|
|
607
|
-
*
|
|
608
|
-
* Returns the count of tombstone entries written.
|
|
609
|
-
*/
|
|
610
|
-
rebuild(retiredMemories: ReadonlyArray<RetiredMemoryRecord>): Promise<number>;
|
|
611
|
-
}
|
|
612
|
-
/** A retired memory projected into the shape `TombstoneStore.rebuild` consumes. */
|
|
613
|
-
interface RetiredMemoryRecord {
|
|
614
|
-
memoryId: string;
|
|
615
|
-
rawContent: string;
|
|
616
|
-
entityRef?: string;
|
|
617
|
-
supersessionKey?: string;
|
|
618
|
-
reason: TombstoneReason;
|
|
619
|
-
createdBy: TombstoneCreatedBy;
|
|
620
|
-
createdAt: string;
|
|
621
|
-
/** Canonical contentHash from the retired memory's frontmatter (#1579). */
|
|
622
|
-
contentHash?: string;
|
|
623
|
-
}
|
|
624
|
-
|
|
625
|
-
interface SupersessionAuditOptions {
|
|
626
|
-
content: string;
|
|
627
|
-
tags?: string[];
|
|
628
|
-
structuredAttributes?: Record<string, string>;
|
|
629
|
-
source?: string;
|
|
630
|
-
}
|
|
631
|
-
|
|
632
|
-
/**
|
|
633
|
-
* Tuning for {@link ContentHashIndex} cross-process lock waits and the
|
|
634
|
-
* deferred reconcile-save durable retry (issue #1909 / PR #2016). All optional;
|
|
635
|
-
* production uses the module defaults. Tests inject small values so the
|
|
636
|
-
* lock-timeout + retry path is exercised deterministically without real
|
|
637
|
-
* multi-second waits.
|
|
638
|
-
*/
|
|
639
|
-
interface ContentHashIndexLockOptions {
|
|
640
|
-
/** Bounded wait to acquire the per-file advisory lock; passed to `withHeldFileLock` (default 5000ms). */
|
|
641
|
-
readonly maxWaitMs?: number;
|
|
642
|
-
/** Poll interval while waiting for a busy lock (default 50ms). */
|
|
643
|
-
readonly pollMs?: number;
|
|
644
|
-
/** Base backoff before the first deferred-save retry (default 500ms). */
|
|
645
|
-
readonly retryBaseMs?: number;
|
|
646
|
-
/** Max deferred-save retries before falling back to the corpus-rebuild safety net (default 5). */
|
|
647
|
-
readonly retryMaxAttempts?: number;
|
|
648
|
-
}
|
|
649
|
-
/**
|
|
650
|
-
* Thrown when the fact-hash index cannot be made authoritative — the
|
|
651
|
-
* cross-process rebuild lock could not be acquired within the bounded retry
|
|
652
|
-
* budget (PR #2016). Callers that require an authoritative dedup answer surface
|
|
653
|
-
* this instead of silently trusting a stale loaded snapshot.
|
|
654
|
-
*/
|
|
655
|
-
declare class FactHashIndexNotAuthoritativeError extends Error {
|
|
656
|
-
constructor(stateDir: string);
|
|
657
|
-
}
|
|
658
|
-
interface ContentHashPathEntry {
|
|
659
|
-
readonly path: string;
|
|
660
|
-
readonly contentHash: string;
|
|
661
|
-
}
|
|
662
|
-
/**
|
|
663
|
-
* Content-hash dedup index for facts.
|
|
664
|
-
* Normalizes content (lowercase, strip punctuation, collapse whitespace),
|
|
665
|
-
* computes SHA-256, and stores hashes in a line-delimited file.
|
|
666
|
-
* Prevents writing semantically identical facts.
|
|
667
|
-
*/
|
|
668
|
-
declare class ContentHashIndex {
|
|
669
|
-
private hashes;
|
|
670
|
-
/**
|
|
671
|
-
* Fact-ONLY hash partition (issue #2474). `hashes` above is category-blind
|
|
672
|
-
* (every write category registers there); this subset carries only
|
|
673
|
-
* `category === "fact"` hashes so fact-only membership checks
|
|
674
|
-
* (`hasFact*`) can never be satisfied by an unrelated decision/preference
|
|
675
|
-
* sharing the same normalized body. In-memory only — never serialized to
|
|
676
|
-
* fact-hashes.txt; `clear()` drops it and every authoritative rebuild
|
|
677
|
-
* repopulates it via `addFactByHash`. Subset invariant: `factHashes ⊆
|
|
678
|
-
* hashes` — `addFact*` registers in both, and the removal sites that drop
|
|
679
|
-
* a shared hash also drop the partition entry (removal stays caller-paired
|
|
680
|
-
* because shared-index removal is category-blind: archiving a non-fact
|
|
681
|
-
* must not evict an active fact's fact-only membership).
|
|
682
|
-
*/
|
|
683
|
-
private factHashes;
|
|
684
|
-
private dirty;
|
|
685
|
-
/** True when load() found the pre-Unicode, markerless on-disk format. */
|
|
686
|
-
private formatMigrationRequired;
|
|
687
|
-
/**
|
|
688
|
-
* Hashes explicitly removed since the last successful save (issue #1909 review
|
|
689
|
-
* round 8 thread 3). Tracked separately so `saveMergingWithDisk` can be
|
|
690
|
-
* removal-AWARE: under the file lock it reads the latest on-disk set, DROPS
|
|
691
|
-
* these, then unions our additions — so a removal batch cannot resurrect a
|
|
692
|
-
* hash (union alone would) and cannot clobber a concurrent extraction's
|
|
693
|
-
* appended hash (blind overwrite would). Consumed + cleared by every save.
|
|
694
|
-
*/
|
|
695
|
-
private removed;
|
|
696
|
-
/**
|
|
697
|
-
* Hashes added by THIS instance since the last successful save (issue #1909
|
|
698
|
-
* review round 9 finding 3). Tracked separately from the loaded snapshot so a
|
|
699
|
-
* reconciling save publishes `(on-disk \ removed) ∪ added` — it re-applies only
|
|
700
|
-
* OUR additions, never the stale loaded entries. Without this, seeding the
|
|
701
|
-
* merge from `this.hashes` (loaded ∪ added) would resurrect a hash a peer
|
|
702
|
-
* removed on disk while this instance held a stale snapshot.
|
|
703
|
-
*/
|
|
704
|
-
private added;
|
|
705
|
-
private readonly filePath;
|
|
706
|
-
private readonly secureStoreKeyProvider;
|
|
707
|
-
private readonly secureStoreWriteKeyProvider;
|
|
708
|
-
private readonly memoryDir;
|
|
709
|
-
private readonly lockOptions;
|
|
710
|
-
/**
|
|
711
|
-
* Deferred reconcile-save durable-retry state (issue #1909 / PR #2016). At
|
|
712
|
-
* most ONE retry is ever armed (`reconcileRetryTimer` is the reentrancy guard)
|
|
713
|
-
* so successive timed-out saves cannot stack duplicate/parallel retries.
|
|
714
|
-
* `reconcileRetryBarrier` resolves when the chain settles (published or gave
|
|
715
|
-
* up) — awaited by tests and any caller wanting the eventual result.
|
|
716
|
-
*/
|
|
717
|
-
private reconcileRetryTimer;
|
|
718
|
-
private reconcileRetryAttempts;
|
|
719
|
-
private reconcileRetryBarrier;
|
|
720
|
-
private reconcileRetryResolve;
|
|
721
|
-
/**
|
|
722
|
-
* On-disk fingerprint captured at the last point THIS instance's in-memory
|
|
723
|
-
* set matched disk — after `load()`, `save()`, or a reconcile publish. A peer
|
|
724
|
-
* process that advances the durable index changes its file generation even
|
|
725
|
-
* when byte size and mtime collide, so the freshness check remains safe
|
|
726
|
-
* without an O(file-size) read on the hot path.
|
|
727
|
-
*/
|
|
728
|
-
private lastSyncedFingerprint;
|
|
729
|
-
constructor(stateDir: string, secureStoreKeyProvider?: () => Buffer | null, secureStoreWriteKeyProvider?: () => Buffer | null, memoryDir?: string, lockOptions?: ContentHashIndexLockOptions);
|
|
730
|
-
/** Whether a caller with an authoritative corpus must rebuild this legacy index. */
|
|
731
|
-
get requiresFormatMigration(): boolean;
|
|
732
|
-
/** Load existing hashes from disk. Safe to call multiple times. */
|
|
733
|
-
load(): Promise<void>;
|
|
734
|
-
/** Cheap `stat` of the durable index file; null when it does not exist yet. */
|
|
735
|
-
private statIndexFile;
|
|
736
|
-
/** Record the current on-disk fingerprint as this instance's synced baseline. */
|
|
737
|
-
private captureSyncedFingerprint;
|
|
738
|
-
/**
|
|
739
|
-
* True when the durable index file is unchanged since this instance last
|
|
740
|
-
* synced it (load / save / reconcile). False when a peer advanced it, when
|
|
741
|
-
* the file appeared or vanished, or when freshness cannot be established
|
|
742
|
-
* (stat error) — the caller then treats the in-memory snapshot as
|
|
743
|
-
* non-authoritative and confirms a dedup miss against the durable corpus.
|
|
744
|
-
* The stat includes file identity and generation metadata so same-size,
|
|
745
|
-
* same-mtime atomic replacements are detected without reading the file body.
|
|
746
|
-
*/
|
|
747
|
-
isDiskFingerprintCurrent(): Promise<boolean>;
|
|
748
|
-
/** Check if content already exists in the index. */
|
|
749
|
-
has(content: string): boolean;
|
|
750
|
-
/** Add content hash to the index. */
|
|
751
|
-
add(content: string): void;
|
|
752
|
-
get size(): number;
|
|
753
|
-
/** Clear all loaded hashes so the next save rewrites the index from scratch. */
|
|
754
|
-
clear(): void;
|
|
755
|
-
/** Persist index to disk if changed (plain whole-file overwrite). */
|
|
756
|
-
save(): Promise<void>;
|
|
757
|
-
/**
|
|
758
|
-
* Persist the index by RECONCILING with the latest on-disk state under a
|
|
759
|
-
* cross-process lock (issue #1909). Used by the extraction-persist batch save
|
|
760
|
-
* for BOTH append and removal batches, so appends and removals to the same
|
|
761
|
-
* index serialize against each other:
|
|
762
|
-
* final = (on-disk \ this.removed) ∪ this.added
|
|
763
|
-
* Note it re-applies only OUR local additions (`added`), NOT the loaded
|
|
764
|
-
* snapshot (review round 9 finding 3): seeding from `this.hashes` would
|
|
765
|
-
* resurrect a hash a peer removed on disk while we held a stale snapshot. This
|
|
766
|
-
* preserves a concurrent writer's appended hashes (a blind overwrite would
|
|
767
|
-
* drop them), never resurrects a removed hash, and never loses our additions.
|
|
768
|
-
*
|
|
769
|
-
* Hardening:
|
|
770
|
-
* - Dirty short-circuit (round 7 finding 3): when this instance neither added
|
|
771
|
-
* nor removed anything this run, skip the O(file) read+rewrite entirely.
|
|
772
|
-
* - Cross-process lock (round 7 finding 2): serialize the read→reconcile→write
|
|
773
|
-
* window on a per-file advisory lock. If the lock is NOT acquired (timeout),
|
|
774
|
-
* do NOT publish (round 9 finding 2): keep `dirty` set AND schedule a bounded
|
|
775
|
-
* durable background retry (PR #2016) that keeps re-attempting the locked
|
|
776
|
-
* publish until the deferred additions land — never an unlocked write that
|
|
777
|
-
* could clobber a peer, and never a silent "batch save complete" that leaves
|
|
778
|
-
* the addition in this process's memory only.
|
|
779
|
-
*/
|
|
780
|
-
saveMergingWithDisk(): Promise<void>;
|
|
781
|
-
/**
|
|
782
|
-
* Rebuild-and-publish the index from an authoritative source (the durable
|
|
783
|
-
* corpus) under the SAME per-file cross-process lock the reconciling
|
|
784
|
-
* append/removal saves (`saveMergingWithDisk`) use (issue #1909 / PR #2016).
|
|
785
|
-
* The `populate` callback runs WHILE the lock is held and MUST repopulate this
|
|
786
|
-
* index from the corpus (`clear()` then `addByHash(...)` for every corpus
|
|
787
|
-
* hash); the rebuilt set is then published with a plain overwrite that is now
|
|
788
|
-
* serialized against every locked writer.
|
|
789
|
-
*
|
|
790
|
-
* This closes the finding where the previous unlocked clear→scan→save() could
|
|
791
|
-
* overwrite a peer's newer lock-merged or deferred additions: a locked writer
|
|
792
|
-
* that committed BEFORE the rebuild acquired the lock has its memory `.md` on
|
|
793
|
-
* disk and is re-scanned; one that commits AFTER the rebuild releases
|
|
794
|
-
* reconciles its additions on top of the freshly-published set. No union with
|
|
795
|
-
* the raw on-disk file is performed, so the rebuild keeps its
|
|
796
|
-
* garbage-collection property (orphaned hashes for deleted memories drop).
|
|
797
|
-
*
|
|
798
|
-
* Lock-acquisition failure is explicit and non-destructive: `populate` is NOT
|
|
799
|
-
* run and nothing is written (never an unlocked overwrite). Returns true when
|
|
800
|
-
* the rebuild was published under the lock, false when the lock timed out —
|
|
801
|
-
* the caller keeps the index non-authoritative and retries on next use. Uses
|
|
802
|
-
* the same non-reentrant file lock as the reconcile path, so it can never
|
|
803
|
-
* deadlock with the deferred reconcile-retry: a concurrent locked writer (or a
|
|
804
|
-
* fired retry) simply yields `acquired=false` after the bounded wait.
|
|
805
|
-
*/
|
|
806
|
-
rebuildUnderLock(populate: () => Promise<void>): Promise<boolean>;
|
|
807
|
-
/**
|
|
808
|
-
* True while a background durable reconcile-save retry is armed (PR #2016).
|
|
809
|
-
* Test/introspection hook.
|
|
810
|
-
*/
|
|
811
|
-
get hasPendingReconcileRetry(): boolean;
|
|
812
|
-
/** True while this index has in-memory changes not yet published to disk. */
|
|
813
|
-
get hasPendingChanges(): boolean;
|
|
814
|
-
/**
|
|
815
|
-
* Resolve once any armed background reconcile-save retry chain has settled —
|
|
816
|
-
* either it published the deferred additions, or it exhausted its bounded
|
|
817
|
-
* attempts and fell back to the corpus-rebuild safety net. Resolves
|
|
818
|
-
* immediately when nothing is armed. Lets a caller (or a test) await the
|
|
819
|
-
* eventual durability outcome of a lock-timed-out save.
|
|
820
|
-
*/
|
|
821
|
-
whenReconcileRetrySettled(): Promise<void>;
|
|
822
|
-
/**
|
|
823
|
-
* Drive any deferred lock-timeout reconcile save to completion INLINE at a
|
|
824
|
-
* lifecycle boundary (PR #2016 finding 3). The background retry timer is
|
|
825
|
-
* `unref`'d so it never keeps a long-lived daemon alive — but a short-lived
|
|
826
|
-
* writer (a one-shot CLI) can exit before it fires, leaving a durable fact
|
|
827
|
-
* `.md` whose hash never reached `fact-hashes.txt` for peers that already
|
|
828
|
-
* built their in-memory index. `orchestrator.destroy()` calls this so the
|
|
829
|
-
* addition publishes before the process exits; long-lived hosts only reach it
|
|
830
|
-
* at their own shutdown, so their in-flight retries keep running in the
|
|
831
|
-
* background until then. Bounded by the same attempt ceiling as the background
|
|
832
|
-
* retry; a permanently contended lock falls back to the corpus-rebuild-on-
|
|
833
|
-
* restart safety net (the fact `.md` is already durable). No deadlock: each
|
|
834
|
-
* attempt is the same non-reentrant, bounded-wait file lock.
|
|
835
|
-
*/
|
|
836
|
-
flushReconcileRetry(): Promise<void>;
|
|
837
|
-
/**
|
|
838
|
-
* Schedule ONE bounded, exponentially-backed-off background retry of the
|
|
839
|
-
* deferred reconcile save (PR #2016). Reentrant-safe: an already-armed timer
|
|
840
|
-
* short-circuits, so successive timed-out saves never stack duplicate retries.
|
|
841
|
-
* When attempts are exhausted the chain settles without publishing — the
|
|
842
|
-
* durable fact `.md` is on disk and a process restart rebuilds the index from
|
|
843
|
-
* the corpus, so this degrades to that safety net, never a fatal failure.
|
|
844
|
-
*/
|
|
845
|
-
private scheduleReconcileRetry;
|
|
846
|
-
/** Cancel any armed reconcile-save retry and settle the barrier (a publish landed). */
|
|
847
|
-
private cancelReconcileRetry;
|
|
848
|
-
/** Resolve and clear the retry barrier if one is outstanding. */
|
|
849
|
-
private settleReconcileRetry;
|
|
850
|
-
/** Remove a hash from the index (used when archiving/deleting). */
|
|
851
|
-
remove(content: string): void;
|
|
852
|
-
/**
|
|
853
|
-
* Remove a pre-computed SHA-256 hash directly from the index without
|
|
854
|
-
* re-hashing. Use this when the caller already holds the stored hash
|
|
855
|
-
* (e.g. `memory.frontmatter.contentHash`) to avoid the double-hash bug
|
|
856
|
-
* where `remove(hash)` would compute `hash(hash)` and never match the
|
|
857
|
-
* entry.
|
|
858
|
-
*/
|
|
859
|
-
removeByHash(hash: string): void;
|
|
860
|
-
/**
|
|
861
|
-
* Add a pre-computed SHA-256 hash directly to the index without re-hashing.
|
|
862
|
-
* Use this when the caller already holds the stored hash
|
|
863
|
-
* (e.g. `memory.frontmatter.contentHash`) so that the index records the raw
|
|
864
|
-
* content hash rather than re-hashing the citation-annotated body.
|
|
865
|
-
*
|
|
866
|
-
* @internal Only called from `StorageManager.ensureFactHashIndexAuthoritative`.
|
|
867
|
-
* Not part of the public API — prefer `add(content)` for external callers.
|
|
868
|
-
*/
|
|
869
|
-
addByHash(hash: string): void;
|
|
870
|
-
/** Register fact content in BOTH the shared index and the fact-only partition. */
|
|
871
|
-
addFact(content: string): void;
|
|
872
|
-
/** Register a pre-computed fact hash in both the shared index and the fact-only partition. */
|
|
873
|
-
addFactByHash(hash: string): void;
|
|
874
|
-
/** Fact-ONLY membership: has this content been registered as a fact? */
|
|
875
|
-
hasFact(content: string): boolean;
|
|
876
|
-
/** Fact-ONLY membership for a pre-computed SHA-256 hash. */
|
|
877
|
-
hasFactByHash(hash: string): boolean;
|
|
878
|
-
/**
|
|
879
|
-
* Drop fact-only partition membership WITHOUT touching the shared index.
|
|
880
|
-
* The shared removal stays caller-owned: a shared hash is dropped only when
|
|
881
|
-
* no other active memory holds it, while fact-only membership follows the
|
|
882
|
-
* fact's own lifecycle (supersede/archive/promotion).
|
|
883
|
-
*/
|
|
884
|
-
removeFactByHash(hash: string): void;
|
|
885
|
-
/**
|
|
886
|
-
* Resolve a pre-computed semantic hash to one deterministic corpus path.
|
|
887
|
-
*
|
|
888
|
-
* This lookup is separate from durable hash membership: `this.hashes` stays
|
|
889
|
-
* one hash per line and `has(content)` keeps its existing raw-content contract.
|
|
890
|
-
* Reconciliation supplies short-lived manifest rows where hash and path coexist.
|
|
891
|
-
*/
|
|
892
|
-
static resolvePathByHash(hash: string, entries: Iterable<ContentHashPathEntry>): string | undefined;
|
|
893
|
-
/** Normalize content (delegates to content-hash.ts for a single source of truth). */
|
|
894
|
-
static normalizeContent(content: string): string;
|
|
895
|
-
/** Compute SHA-256 hash (delegates to content-hash.ts for a single source of truth). */
|
|
896
|
-
static computeHash(content: string): string;
|
|
897
|
-
}
|
|
898
|
-
|
|
899
|
-
type StreamedOfflineSyncIdentity = {
|
|
900
|
-
identityHash: string;
|
|
901
|
-
};
|
|
902
|
-
type OfflineSyncMemoryParser = (filePath: string, content: Buffer) => MemoryFile | null;
|
|
903
|
-
declare abstract class TombstoneBlockedCaptureIndexHost {
|
|
904
|
-
private tombstoneBlockedCaptureIndex;
|
|
905
|
-
protected abstract tombstoneBlockedCaptureIndexOptions(): TombstoneBlockedCaptureIndexOptions;
|
|
906
|
-
protected abstract writeStorageSecureFile(filePath: string, content: string | Buffer, forceEncrypt?: boolean): Promise<void>;
|
|
907
|
-
protected abstract assertManagedStoragePath(filePath: string, method: string): string;
|
|
908
|
-
protected abstract notifyCatalogWriteForPath(filePath: string): void;
|
|
909
|
-
protected abstract readMemoryByPath(filePath: string): Promise<MemoryFile | null>;
|
|
910
|
-
protected abstract invalidateAllMemoriesCache(): void;
|
|
911
|
-
protected abstract invalidateKnowledgeIndexCache(): void;
|
|
912
|
-
protected abstract invalidateColdMemoriesCache(): void;
|
|
913
|
-
protected abstract bumpArtifactWriteVersion(): number;
|
|
914
|
-
protected abstract bumpMemoryStatusVersion(): void;
|
|
915
|
-
protected abstract bumpMemoryCorpusVersion(): void;
|
|
916
|
-
protected abstract markFactHashIndexNotAuthoritative(): void;
|
|
917
|
-
/** #2837: durable unlink plus deletion-revision record, WITHOUT the CAS
|
|
918
|
-
* shard sweep — the concrete {@link deleteManagedStorageFile} composes the
|
|
919
|
-
* two so every deletion funnel (invalidation, maintenance purge, archive
|
|
920
|
-
* move, offline sync) sweeps. */
|
|
921
|
-
protected abstract deleteManagedStorageFileDurable(filePath: string, deletionMtimeMs?: number | null): Promise<boolean>;
|
|
922
|
-
protected abstract writeManagedStorageFile(filePath: string, write: () => Promise<void>): Promise<void>;
|
|
923
|
-
/** #2813 (P1 C, #2807): reserve the target's next durable CAS revision
|
|
924
|
-
* token as a two-phase receipt transaction — a PENDING write-ahead
|
|
925
|
-
* marker under the mutation's path lock, published COMMITTED only after
|
|
926
|
-
* the durable file write lands. Receipt identity lives in the per-target
|
|
927
|
-
* sidecar, never in public `frontmatter.updated`. The default host keeps
|
|
928
|
-
* no receipt identity; StorageManager records it. */
|
|
929
|
-
protected beginDurableMemoryRevision(_pathname: string, _expectedContent?: string | Buffer | null): Promise<CasRevisionTransaction | undefined>;
|
|
930
|
-
/** #2837 (shard cleanup): after a managed memory file is durably deleted,
|
|
931
|
-
* sweep its per-target CAS receipt shard so orphan shards cannot grow
|
|
932
|
-
* forever. The sweep runs under the shard's own lock and is best-effort —
|
|
933
|
-
* the memory file is already gone, so a sweep failure logs and never
|
|
934
|
-
* fails the delete. The sweeper is a second CasRevisionHost over the same
|
|
935
|
-
* memory dir; the host is stateless and every mutation serializes through
|
|
936
|
-
* the sidecar's file locks, so it shares the same shard files
|
|
937
|
-
* StorageManager's own host operates on. */
|
|
938
|
-
private deletedMemoryShardSweeper;
|
|
939
|
-
protected deleteManagedStorageFile(filePath: string, deletionMtimeMs?: number | null): Promise<boolean>;
|
|
940
|
-
private writeStorageSecureFileChunks;
|
|
941
|
-
protected getTombstoneBlockedCaptureIndex(): TombstoneBlockedCaptureIndex;
|
|
942
|
-
withTombstoneBlockedCaptureWriteLock<T>(task: () => Promise<T>, identity?: string | readonly string[]): Promise<T>;
|
|
943
|
-
/** Read selected memories while their mutation locks remain held. */
|
|
944
|
-
readMemorySnapshotsIfUnchanged(expected: readonly MemoryFile[]): Promise<MemoryFile[] | null>;
|
|
945
|
-
withMemorySnapshotsIfUnchanged<T>(expected: readonly MemoryFile[], task: (memories: MemoryFile[]) => Promise<T>): Promise<T | null>;
|
|
946
|
-
protected withTombstoneBlockedCaptureWriteLockAndHashes<T>(task: () => Promise<T>, identity: string | readonly string[] | undefined, identityHashes: readonly string[]): Promise<T>;
|
|
947
|
-
private writeTombstoneBlockedMutation;
|
|
948
|
-
protected writeTombstoneBlockedMemory(pathname: string, fileContent: string, frontmatter: MemoryFrontmatter, content: string, beforeIndexUpdate?: () => Promise<void>): Promise<void>;
|
|
949
|
-
protected withTombstoneBlockedMemoryPathLock<T>(pathname: string, task: (current: MemoryFile | null) => Promise<T>, additionalPathnames?: readonly string[]): Promise<T>;
|
|
950
|
-
protected writeTombstoneBlockedChunk(pathname: string, fileContent: string, frontmatter: MemoryFrontmatter, content: string, findDuplicate: () => Promise<MemoryFile | null>, afterWrite: (current: MemoryFile | null) => Promise<void>): Promise<string>;
|
|
951
|
-
protected writeTombstoneBlockedUpdate(before: MemoryFile, fileContent: string, frontmatter: MemoryFrontmatter, content: string, beforeIndexUpdate?: () => Promise<void>): Promise<string | undefined>;
|
|
952
|
-
protected writeTombstoneBlockedFrontmatter(before: MemoryFile, fileContent: string, frontmatter: MemoryFrontmatter, beforeIndexUpdate?: () => Promise<void>): Promise<string | undefined>;
|
|
953
|
-
private isTombstoneBlockedMemory;
|
|
954
|
-
private offlineSyncMemoryIdentity;
|
|
955
|
-
private isDuplicateTombstoneBlockedOfflineSync;
|
|
956
|
-
private invalidateAfterOfflineSyncMutation;
|
|
957
|
-
protected runTombstoneBlockedArchive(memory: MemoryFile, task: (current: MemoryFile, markDurable: () => void) => Promise<string | null>): Promise<string | null>;
|
|
958
|
-
protected runTombstoneBlockedInvalidation(memory: MemoryFile, task: (current: MemoryFile, rebuildMarker: string | undefined, markDurable: () => void) => Promise<boolean>, propagateErrors?: boolean, coordinate?: boolean): Promise<boolean>;
|
|
959
|
-
deleteMemoryForMaintenance(memory: MemoryFile, shouldDelete?: (current: MemoryFile) => boolean): Promise<MemoryFile | null>;
|
|
960
|
-
protected runTombstoneBlockedOfflineSyncMutation(target: string, after: MemoryFile | null, write: () => Promise<boolean | void>, coordinate?: boolean, streamedIdentity?: StreamedOfflineSyncIdentity): Promise<void>;
|
|
961
|
-
protected writeTombstoneBlockedOfflineSyncFile(target: string, content: Buffer): Promise<void>;
|
|
962
|
-
private prepareTombstoneBlockedOfflineSyncChunks;
|
|
963
|
-
private describeStagedOfflineSyncChunks;
|
|
964
|
-
private computeStagedOfflineSyncIdentity;
|
|
965
|
-
private readStagedOfflineSyncChunks;
|
|
966
|
-
protected writeTombstoneBlockedOfflineSyncFileChunks(target: string, chunks: AsyncIterable<Buffer>): Promise<void>;
|
|
967
|
-
writeOfflineSyncFile(filePath: string, content: Buffer): Promise<void>;
|
|
968
|
-
writeOfflineSyncFileChunks(filePath: string, chunks: AsyncIterable<Buffer>): Promise<void>;
|
|
969
|
-
/**
|
|
970
|
-
* Opaque replicated bytes can restore legacy memory references or entity
|
|
971
|
-
* relationship targets. Other sync traffic must not request reconciliation.
|
|
972
|
-
*/
|
|
973
|
-
private requestSyncReconcileIfMigrationPath;
|
|
974
|
-
deleteOfflineSyncFile(filePath: string, deletionMtimeMs?: number | null): Promise<void>;
|
|
975
|
-
protected deleteTombstoneBlockedOfflineSyncFile(target: string, deletionMtimeMs?: number | null): Promise<void>;
|
|
976
|
-
checkTombstoneBlockedExplicitCapture(...args: [string, string, string?]): Promise<{
|
|
977
|
-
has: boolean;
|
|
978
|
-
authoritative: boolean;
|
|
979
|
-
}>;
|
|
980
|
-
hasTombstoneBlockedExplicitCapture(...args: [string, string, string?]): Promise<boolean>;
|
|
981
|
-
isTombstoneBlockedExplicitCaptureIndexAuthoritative(): Promise<boolean>;
|
|
982
|
-
protected rebuildTombstoneBlockedCaptureAfterInvalidationForPath(filePath: string, ownedMarker?: string): Promise<void>;
|
|
983
|
-
protected rebuildTombstoneBlockedCaptureAfterInvalidation(ownedMarker?: string): Promise<void>;
|
|
984
|
-
}
|
|
985
|
-
|
|
986
|
-
type TombstoneBlockedCaptureIndexOptions = {
|
|
987
|
-
readonly stateDir: string;
|
|
988
|
-
readonly memoryDir: string;
|
|
989
|
-
readonly secureStoreKeyProvider: () => Buffer | null;
|
|
990
|
-
readonly secureStoreWriteKeyProvider: () => Buffer | null;
|
|
991
|
-
readonly lockOptions: () => ContentHashIndexLockOptions;
|
|
992
|
-
readonly readAllMemories: () => Promise<MemoryFile[]>;
|
|
993
|
-
readonly readAllColdMemories: () => Promise<MemoryFile[]>;
|
|
994
|
-
readonly parseMemory?: OfflineSyncMemoryParser;
|
|
995
|
-
readonly withHeldFileLock?: typeof withHeldFileLock;
|
|
996
|
-
};
|
|
997
|
-
/**
|
|
998
|
-
* Durable targeted deduplication for tombstone-blocked explicit captures.
|
|
999
|
-
*
|
|
1000
|
-
* The active fact-hash index intentionally excludes blocked rows. This small
|
|
1001
|
-
* companion index keeps the blocked identity visible without making every
|
|
1002
|
-
* authoritative active-index miss scan the full corpus.
|
|
1003
|
-
*/
|
|
1004
|
-
declare class TombstoneBlockedCaptureIndex {
|
|
1005
|
-
private readonly options;
|
|
1006
|
-
private index;
|
|
1007
|
-
private loadPromise;
|
|
1008
|
-
private refreshPromise;
|
|
1009
|
-
private authoritative;
|
|
1010
|
-
private readonly captureWriteLock;
|
|
1011
|
-
constructor(options: TombstoneBlockedCaptureIndexOptions);
|
|
1012
|
-
private createIndex;
|
|
1013
|
-
private indexPath;
|
|
1014
|
-
private rebuildMarkerPath;
|
|
1015
|
-
private readRebuildMarkers;
|
|
1016
|
-
private isAbandonedMarker;
|
|
1017
|
-
private isProcessAlive;
|
|
1018
|
-
private readProcessStartedAtMs;
|
|
1019
|
-
private getClearableRebuildMarkerPaths;
|
|
1020
|
-
private getRebuildMarkers;
|
|
1021
|
-
private writeMarkerAtomically;
|
|
1022
|
-
private markRebuildRequired;
|
|
1023
|
-
private markRebuildCommitted;
|
|
1024
|
-
private clearRebuildRequired;
|
|
1025
|
-
private hasRebuildRequired;
|
|
1026
|
-
private setAuthoritative;
|
|
1027
|
-
private isBlocked;
|
|
1028
|
-
private rebuild;
|
|
1029
|
-
private hasPersistedIndexOrMarkers;
|
|
1030
|
-
private getIndex;
|
|
1031
|
-
withCaptureWriteLock<T>(task: () => Promise<T>, identity?: string | readonly string[]): Promise<T>;
|
|
1032
|
-
withCaptureWriteLockHashes<T>(task: () => Promise<T>, identityHashes: readonly string[]): Promise<T>;
|
|
1033
|
-
withCaptureWriteLockAndHashes<T>(task: () => Promise<T>, identity: string | readonly string[] | undefined, identityHashes: readonly string[]): Promise<T>;
|
|
1034
|
-
private reload;
|
|
1035
|
-
/** Return blocked-row membership and authority from one index snapshot. */
|
|
1036
|
-
check(content: string, category: string, sourceConnector?: string): Promise<{
|
|
1037
|
-
has: boolean;
|
|
1038
|
-
authoritative: boolean;
|
|
1039
|
-
}>;
|
|
1040
|
-
/** Return whether a blocked row matches this explicit-capture identity. */
|
|
1041
|
-
has(content: string, category: string, sourceConnector?: string): Promise<boolean>;
|
|
1042
|
-
/** Return whether the in-memory index is safe to answer an authoritative miss. */
|
|
1043
|
-
isAuthoritative(): Promise<boolean>;
|
|
1044
|
-
/** Reserve durable rebuild intent before a blocked memory file is committed. */
|
|
1045
|
-
prepareWrite(): Promise<string>;
|
|
1046
|
-
/** Mark a prepared write committed once its memory file is durable. */
|
|
1047
|
-
commitWrite(rebuildMarker: string): Promise<void>;
|
|
1048
|
-
/** Drop a pending marker when the protected memory write never commits. */
|
|
1049
|
-
discardWrite(rebuildMarker: string): Promise<void>;
|
|
1050
|
-
/** Add a newly persisted blocked row to the durable targeted index. */
|
|
1051
|
-
add(memory: MemoryFile, rebuildMarker?: string): Promise<void>;
|
|
1052
|
-
/** Rebuild the index after a blocked row changes or is removed. */
|
|
1053
|
-
rebuildIfLoaded(ownedMarker?: string): Promise<void>;
|
|
1054
|
-
/** Rebuild when either side of a write is blocked and its identity changed. */
|
|
1055
|
-
sync(before: MemoryFile, after: MemoryFile, rebuildMarker?: string): Promise<void>;
|
|
1056
|
-
markUntrusted(): void;
|
|
1057
|
-
private failOpen;
|
|
1058
|
-
addWrittenMemory(pathname: string, frontmatter: MemoryFrontmatter, content: string, rebuildMarker?: string): Promise<void>;
|
|
1059
|
-
rebuildAfterInvalidation(ownedMarker?: string): Promise<void>;
|
|
1060
|
-
/**
|
|
1061
|
-
* Drop an already-committed write marker without re-reading the corpus. The
|
|
1062
|
-
* offline-sync mutation path commits its marker around the file write, then
|
|
1063
|
-
* must clear it even when the write cannot have changed the blocked key set
|
|
1064
|
-
* (neither side tombstone-blocked) — otherwise the marker lingers until some
|
|
1065
|
-
* later rebuild clears it. Mirrors the tail of `add`/`sync`.
|
|
1066
|
-
*/
|
|
1067
|
-
clearCommittedWriteMarker(rebuildMarker: string): Promise<void>;
|
|
1068
|
-
syncUpdatedMemory(before: MemoryFile, frontmatter: MemoryFrontmatter, content: string, rebuildMarker?: string): Promise<void>;
|
|
1069
|
-
syncUpdatedFrontmatter(before: MemoryFile, frontmatter: MemoryFrontmatter, rebuildMarker?: string): Promise<void>;
|
|
1070
|
-
shouldRebuildAfterInvalidationForPath(filePath: string): boolean;
|
|
1071
|
-
}
|
|
1072
|
-
|
|
1073
|
-
declare function normalizeStructuredSectionFactsWithOrigins(facts: string[], factOrigins?: Array<string | undefined>, defaultOrigin?: string): Pick<EntityStructuredSection, "facts" | "factOrigins">;
|
|
1074
|
-
declare function normalizeStructuredSectionFacts(facts: string[]): string[];
|
|
1075
|
-
declare function compileEntityFacts(timeline: EntityTimelineEntry[], structuredSections: EntityStructuredSection[]): string[];
|
|
1076
|
-
declare function compareEntityTimestamps(left?: string, right?: string): number;
|
|
1077
|
-
declare function countEntityStructuredFacts(entity: EntityFile): number;
|
|
1078
|
-
declare function fingerprintEntityStructuredFacts(entity: Pick<EntityFile, "structuredSections">): string | undefined;
|
|
1079
|
-
declare function isEntitySynthesisStale(entity: EntityFile): boolean;
|
|
1080
|
-
|
|
1081
|
-
interface ReextractJobRequest {
|
|
1082
|
-
memoryId: string;
|
|
1083
|
-
model: string;
|
|
1084
|
-
requestedAt: string;
|
|
1085
|
-
source: "cli-migrate";
|
|
1086
|
-
}
|
|
1087
|
-
interface MemoryLifecycleEventWriteOptions {
|
|
1088
|
-
at?: Date;
|
|
1089
|
-
actor?: string;
|
|
1090
|
-
reasonCode?: string;
|
|
1091
|
-
ruleVersion?: string;
|
|
1092
|
-
relatedMemoryIds?: string[];
|
|
1093
|
-
correlationId?: string;
|
|
1094
|
-
}
|
|
1095
|
-
declare function parseFrontmatterStringValue(rawValue: string | undefined): string | undefined;
|
|
1096
|
-
declare function parseFrontmatter(raw: string): {
|
|
1097
|
-
frontmatter: MemoryFrontmatter;
|
|
1098
|
-
content: string;
|
|
1099
|
-
} | null;
|
|
1100
|
-
declare function normalizeFrontmatterForPath(frontmatter: MemoryFrontmatter, pathRel: string, content?: string): MemoryFrontmatter;
|
|
1101
|
-
|
|
1102
|
-
/**
|
|
1103
|
-
* Parse an entity markdown file into a structured EntityFile.
|
|
1104
|
-
* Backward compatible: old files without new sections get empty arrays.
|
|
1105
|
-
*/
|
|
1106
|
-
declare function parseEntityFile(content: string, entitySchemas?: PluginConfig["entitySchemas"]): EntityFile;
|
|
1107
|
-
/**
|
|
1108
|
-
* Serialize an EntityFile back to markdown.
|
|
1109
|
-
* Writes the compiled-truth + timeline format while remaining parse-compatible
|
|
1110
|
-
* with the legacy in-memory `summary` and `facts` fields.
|
|
1111
|
-
*/
|
|
1112
|
-
declare function serializeEntityFile(entity: EntityFile, entitySchemas?: PluginConfig["entitySchemas"], okfType?: boolean): string;
|
|
1113
|
-
declare function buildEntitySchemaCacheKey(entitySchemas?: PluginConfig["entitySchemas"]): string;
|
|
1114
|
-
/**
|
|
1115
|
-
* Full-schema type guard for a `BUFFER_SURPRISE` telemetry row
|
|
1116
|
-
* (issue #563 PR 3).
|
|
1117
|
-
*
|
|
1118
|
-
* The reader applies `limit` over the count of VALID rows, so
|
|
1119
|
-
* applying only a partial check (e.g. "has a finite surpriseScore")
|
|
1120
|
-
* and then deferring the rest of validation to
|
|
1121
|
-
* `reportBufferSurpriseDistribution` would silently count
|
|
1122
|
-
* schema-incomplete rows toward the limit, pushing genuinely-valid
|
|
1123
|
-
* earlier rows out of the report window. Validate everything the
|
|
1124
|
-
* downstream report requires at read time so the limit semantics and
|
|
1125
|
-
* the distribution semantics stay consistent.
|
|
1126
|
-
*/
|
|
1127
|
-
declare function isValidBufferSurpriseEvent(value: unknown): value is BufferSurpriseEvent;
|
|
1128
|
-
/** Result of {@link StorageManager.writeMemory} (issue #1645). Carries the
|
|
1129
|
-
* persisted id PLUS the non-resurrection tombstone-block outcome (#1579) so
|
|
1130
|
-
* post-write callers can observe it — NEVER a silent no-op (rule 34). */
|
|
1131
|
-
interface MemoryWriteResult {
|
|
1132
|
-
/** The persisted memory id. */
|
|
1133
|
-
id: string;
|
|
1134
|
-
/** True when the #1579 tombstone chokepoint downgraded this write to
|
|
1135
|
-
* `pending_review` + `blockedBy`. Callers gate active post-write work on this. */
|
|
1136
|
-
tombstoneBlocked: boolean;
|
|
1137
|
-
/** The tombstone id that blocked the write, when `tombstoneBlocked`. */
|
|
1138
|
-
blockedBy?: string;
|
|
1139
|
-
/** Existing pending-review memory id when a blocked write coalesced with it. */
|
|
1140
|
-
duplicateOf?: string;
|
|
1141
|
-
}
|
|
1142
|
-
/**
|
|
1143
|
-
* Options accepted by `StorageManager.writeMemory` (extracted verbatim in
|
|
1144
|
-
* issue #1989 PR2 so `SealedWriteExtras` can be derived from it — the
|
|
1145
|
-
* sealed-envelope path takes envelope-owned fields from the envelope and
|
|
1146
|
-
* everything else from these extras).
|
|
1147
|
-
*/
|
|
1148
|
-
interface WriteMemoryOptions {
|
|
1149
|
-
actor?: string;
|
|
1150
|
-
confidence?: number;
|
|
1151
|
-
tags?: string[];
|
|
1152
|
-
entityRef?: string;
|
|
1153
|
-
source?: string;
|
|
1154
|
-
supersedes?: string;
|
|
1155
|
-
lineage?: string[];
|
|
1156
|
-
importance?: ImportanceScore;
|
|
1157
|
-
links?: MemoryLink[];
|
|
1158
|
-
intentGoal?: string;
|
|
1159
|
-
intentActionType?: string;
|
|
1160
|
-
intentEntityTypes?: string[];
|
|
1161
|
-
artifactType?: MemoryFrontmatter["artifactType"];
|
|
1162
|
-
sourceMemoryId?: string;
|
|
1163
|
-
sourceTurnId?: string;
|
|
1164
|
-
memoryKind?: MemoryFrontmatter["memoryKind"];
|
|
1165
|
-
expiresAt?: string;
|
|
1166
|
-
validAt?: string;
|
|
1167
|
-
observedAt?: string;
|
|
1168
|
-
eventTimeSource?: "extracted" | "assumed";
|
|
1169
|
-
invalidAt?: string;
|
|
1170
|
-
structuredAttributes?: Record<string, string>;
|
|
1171
|
-
/**
|
|
1172
|
-
* When provided, this string is used as the source for the fact-content
|
|
1173
|
-
* dedup hash index instead of the persisted body (`content`).
|
|
1174
|
-
*
|
|
1175
|
-
* Use this when the persisted body differs from the canonical fact text
|
|
1176
|
-
* — for example when `content` is a citation-annotated variant of a raw
|
|
1177
|
-
* fact. Passing the raw fact as `contentHashSource` ensures that
|
|
1178
|
-
* `hasFactContentHash(rawFact)` returns `true` after the write, so
|
|
1179
|
-
* subsequent extractions of the same logical fact are correctly deduped
|
|
1180
|
-
* even when their citation timestamp differs.
|
|
1181
|
-
*/
|
|
1182
|
-
contentHashSource?: string;
|
|
1183
|
-
/**
|
|
1184
|
-
* When true, writeMemory marks the fact-hash index dirty via `.add(...)`
|
|
1185
|
-
* but does NOT flush it to disk — the caller is responsible for a
|
|
1186
|
-
* subsequent batch save (issue #1909). The extraction persist path sets
|
|
1187
|
-
* this and relies on the orchestrator's authoritative
|
|
1188
|
-
* `saveContentHashIndexes()` batch save plus a per-storage union flush,
|
|
1189
|
-
* avoiding a whole-index (which grows with corpus size) rewrite per fact.
|
|
1190
|
-
* Default false: every
|
|
1191
|
-
* other (single-write) caller keeps the immediate, crash-safe save.
|
|
1192
|
-
*/
|
|
1193
|
-
deferHashIndexSave?: boolean;
|
|
1194
|
-
status?: MemoryStatus;
|
|
1195
|
-
/**
|
|
1196
|
-
* Consolidation provenance (issue #561 PR 2). When the caller is a
|
|
1197
|
-
* consolidation / supersession / dedup-merge path, these fields wire
|
|
1198
|
-
* the page-version snapshots the new memory was derived from and the
|
|
1199
|
-
* operator that produced it. Persisted onto frontmatter as
|
|
1200
|
-
* `derived_from` + `derived_via`; validated at serialize time.
|
|
1201
|
-
*/
|
|
1202
|
-
derivedFrom?: string[];
|
|
1203
|
-
derivedVia?: ConsolidationOperator;
|
|
1204
|
-
/**
|
|
1205
|
-
* Faithfulness gate verdict (issue #1576). When provided, persisted to
|
|
1206
|
-
* frontmatter so downstream readers (TrustScore #1577, review queue)
|
|
1207
|
-
* can consume it. Absent = gate was off or fact predates #1576.
|
|
1208
|
-
*/
|
|
1209
|
-
faithfulness?: FaithfulnessFrontmatter;
|
|
1210
|
-
/**
|
|
1211
|
-
* Claim-level provenance spans (issue #1575 PR 2). When provided,
|
|
1212
|
-
* persisted to frontmatter so downstream readers (memory_get, x-ray,
|
|
1213
|
-
* faithfulness gate #1576) can consume them. Absent = fact predates
|
|
1214
|
-
* #1575 or provenance was disabled.
|
|
1215
|
-
*/
|
|
1216
|
-
sources?: ProvenanceSource[];
|
|
1217
|
-
provenance?: "verified" | "unverified" | "none";
|
|
1218
|
-
origin?: string;
|
|
1219
|
-
sourceConnector?: string;
|
|
1220
|
-
toolScoped?: true;
|
|
1221
|
-
subject?: MemorySubject;
|
|
1222
|
-
}
|
|
1223
|
-
/**
|
|
1224
|
-
* `WriteMemoryOptions` minus the fields a `SealedMemoryEnvelope` owns.
|
|
1225
|
-
* Passing an envelope-owned field twice is a compile error by construction.
|
|
1226
|
-
*/
|
|
1227
|
-
type SealedWriteExtras = Omit<WriteMemoryOptions, "confidence" | "tags" | "entityRef" | "source" | "expiresAt" | "validAt" | "structuredAttributes" | "sourceConnector" | "origin" | "subject">;
|
|
1228
|
-
declare class StorageManager extends TombstoneBlockedCaptureIndexHost {
|
|
1229
|
-
private readonly baseDir;
|
|
1230
|
-
private readonly entitySchemas?;
|
|
1231
|
-
private knowledgeIndexCache;
|
|
1232
|
-
private readonly deletionRevisionStore;
|
|
1233
|
-
private readonly casRevisions;
|
|
1234
|
-
private artifactIndexCache;
|
|
1235
|
-
private projectionLedgerLagManager;
|
|
1236
|
-
private static readonly loadedMemorySnapshots;
|
|
1237
|
-
static readonly KNOWLEDGE_INDEX_CACHE_TTL_MS = 600000;
|
|
1238
|
-
/** Read by storage/memory-read-store.ts (decomposition). */
|
|
1239
|
-
static readonly ARTIFACT_INDEX_CACHE_TTL_MS = 60000;
|
|
1240
|
-
private static readonly artifactWriteVersionByDir;
|
|
1241
|
-
private static readonly memoryStatusVersionByDir;
|
|
1242
|
-
private static readonly memoryCorpusVersionByDir;
|
|
1243
|
-
private static readonly entityMutationVersionByDir;
|
|
1244
|
-
private static readonly secureStoreEntityCacheKeyIds;
|
|
1245
|
-
private static nextSecureStoreEntityCacheKeyId;
|
|
1246
|
-
private static readonly coldWriteVersionByDir;
|
|
1247
|
-
/**
|
|
1248
|
-
* Process-wide default for the hot-memories result cache gate (issue #1902).
|
|
1249
|
-
* Set once from config by the orchestrator/access layer via
|
|
1250
|
-
* setHotMemoriesCacheDefault() so that EVERY StorageManager — including the
|
|
1251
|
-
* ephemeral instances recall sub-stages (verified-recall, semantic-rule
|
|
1252
|
-
* verification, ...) construct over the same dir — honors the operator's
|
|
1253
|
-
* hotMemoriesCacheEnabled setting. The constructor option overrides this
|
|
1254
|
-
* per-instance (tests). Defaults true (cache on).
|
|
1255
|
-
*/
|
|
1256
|
-
private static hotMemoriesCacheDefault;
|
|
1257
|
-
/**
|
|
1258
|
-
* Per-memory-directory override of the hot-cache gate (issue #1902, Codex
|
|
1259
|
-
* P2). setHotMemoriesCacheDefault(memoryDir, enabled) registers the
|
|
1260
|
-
* operator's setting keyed by dir, so a StorageManager constructed over that
|
|
1261
|
-
* dir honors ITS owning orchestrator's config — not merely the last
|
|
1262
|
-
* orchestrator constructed in the process. Unregistered dirs fall back to
|
|
1263
|
-
* the process-wide default above.
|
|
1264
|
-
*/
|
|
1265
|
-
private static readonly hotMemoriesCacheDefaultByDir;
|
|
1266
|
-
/**
|
|
1267
|
-
* Process-wide TTL (ms) safety net for the hot cache (issue #1902). Bounds
|
|
1268
|
-
* how long a version-keyed entry is served before a fresh disk scan, so
|
|
1269
|
-
* external filesystem edits (manual/git/editor) that don't bump the sentinel
|
|
1270
|
-
* self-heal. Set from config by the orchestrator via setHotMemoriesCacheDefault.
|
|
1271
|
-
* 0 disables the TTL (version invalidation only). Default 60s.
|
|
1272
|
-
*/
|
|
1273
|
-
private static hotMemoriesCacheTtlMs;
|
|
1274
|
-
/**
|
|
1275
|
-
* Per-memory-directory override of the hot-cache TTL (issue #1902, Codex P2),
|
|
1276
|
-
* mirroring hotMemoriesCacheDefaultByDir. Registered by
|
|
1277
|
-
* setHotMemoriesCacheDefault so two orchestrators in one process with
|
|
1278
|
-
* different TTLs don't clobber each other's setting. Unregistered dirs fall
|
|
1279
|
-
* back to the process-wide default above.
|
|
1280
|
-
*/
|
|
1281
|
-
private static readonly hotMemoriesCacheTtlByDir;
|
|
1282
|
-
/**
|
|
1283
|
-
* Whether the process-wide hot-cache fallbacks (hotMemoriesCacheDefault /
|
|
1284
|
-
* hotMemoriesCacheTtlMs) have been seeded by the first
|
|
1285
|
-
* setHotMemoriesCacheDefault call (issue #1902, Cursor Low). Only the first
|
|
1286
|
-
* registration seeds them; later registrations touch ONLY their per-dir map
|
|
1287
|
-
* entry. This makes the process-wide fallback deterministic (first-writer,
|
|
1288
|
-
* by init order) instead of last-writer-wins, so a second orchestrator with
|
|
1289
|
-
* a divergent config cannot silently flip the fallback that unregistered
|
|
1290
|
-
* dirs resolve to. All REGISTERED dirs are isolated by the per-dir maps.
|
|
1291
|
-
*/
|
|
1292
|
-
private static hotMemoriesCacheProcessDefaultSeeded;
|
|
1293
|
-
/**
|
|
1294
|
-
* Per-memory-directory gate for scope-aware cache invalidation (issue #1904).
|
|
1295
|
-
* Registered from config by the orchestrator via
|
|
1296
|
-
* setScopedCacheInvalidationDefault() so every StorageManager built over a
|
|
1297
|
-
* memory dir — including ephemeral recall sub-stage instances — honors the
|
|
1298
|
-
* operator's setting. Unregistered dirs default to `true` (scoped on). Set
|
|
1299
|
-
* `false` to restore the pre-#1904 full-clear-per-write behavior (rollback
|
|
1300
|
-
* lever). Read once per write via isScopedCacheInvalidationEnabled().
|
|
1301
|
-
*/
|
|
1302
|
-
private static readonly scopedCacheInvalidationByDir;
|
|
1303
|
-
/** Read by storage/memory-read-store.ts (decomposition). */
|
|
1304
|
-
static readonly COLD_SCAN_CACHE_TTL_MS = 30000;
|
|
1305
|
-
/** Read by storage/memory-read-store.ts (decomposition). */
|
|
1306
|
-
static readonly coldMemoriesCache: Map<string, {
|
|
1307
|
-
memories: MemoryFile[];
|
|
1308
|
-
loadedAt: number;
|
|
1309
|
-
coldVersion: number;
|
|
1310
|
-
keyId: string;
|
|
1311
|
-
}>;
|
|
1312
|
-
/** Read by storage/memory-read-store.ts (decomposition). */
|
|
1313
|
-
static readonly QUESTIONS_CACHE_TTL_MS = 60000;
|
|
1314
|
-
/** Read by storage/memory-read-store.ts (decomposition). */
|
|
1315
|
-
static readonly questionsCache: Map<string, {
|
|
1316
|
-
questions: Array<{
|
|
1317
|
-
id: string;
|
|
1318
|
-
question: string;
|
|
1319
|
-
context: string;
|
|
1320
|
-
priority: number;
|
|
1321
|
-
resolved: boolean;
|
|
1322
|
-
created: string;
|
|
1323
|
-
filePath: string;
|
|
1324
|
-
}>;
|
|
1325
|
-
loadedAt: number;
|
|
1326
|
-
}>;
|
|
1327
|
-
private factHashIndex;
|
|
1328
|
-
private factHashIndexLoadPromise;
|
|
1329
|
-
private factHashIndexAuthoritative;
|
|
1330
|
-
private factHashIndexAuthoritativePromise;
|
|
1331
|
-
/**
|
|
1332
|
-
* Fact-ONLY hash membership (PR #2016 / issue #2474) lives on the shared
|
|
1333
|
-
* `ContentHashIndex` fact-only partition (`addFact*` / `hasFact*` /
|
|
1334
|
-
* `removeFactByHash`), not a parallel set here. The partition carries only
|
|
1335
|
-
* `category === "fact"` hashes and is the sole source for
|
|
1336
|
-
* `hasFactContentHash`, so an over-included non-fact body can never
|
|
1337
|
-
* suppress a real fact candidate. In-memory only; never persisted — every
|
|
1338
|
-
* authoritative corpus rebuild repopulates it via
|
|
1339
|
-
* `ContentHashIndex.clear()` + `addFactByHash`.
|
|
1340
|
-
*/
|
|
1341
|
-
/** Optional lock/retry tuning for the fact-hash index cross-process lock (PR #2016; tests inject tight budgets). */
|
|
1342
|
-
factHashIndexLockOptions: ContentHashIndexLockOptions;
|
|
1343
|
-
private readonly secureAppendChains;
|
|
1344
|
-
/**
|
|
1345
|
-
* Cache of "is this file encrypted?" keyed by absolute path, VALIDATED by file
|
|
1346
|
-
* identity (size + mtimeMs) — issue #1909 review round 10 finding 1. A prior
|
|
1347
|
-
* design cached only a boolean and relied on this instance's own writes to
|
|
1348
|
-
* invalidate it; a PEER process encrypting the file would not invalidate,
|
|
1349
|
-
* leaving a stale `false` that made the append path write RAW bytes into an
|
|
1350
|
-
* encrypted file (corruption). Now each entry records the (size, mtime) the
|
|
1351
|
-
* classification was read at; `isEncryptedFileHeader` re-sniffs (header-only)
|
|
1352
|
-
* whenever the on-disk identity no longer matches, so a foreign rewrite is
|
|
1353
|
-
* detected. The whole-file read is still never performed.
|
|
1354
|
-
*/
|
|
1355
|
-
private readonly secureFileEncryptionSniffCache;
|
|
1356
|
-
private offlineSyncDigestCache;
|
|
1357
|
-
private offlineSyncDigestCacheLoadPromise;
|
|
1358
|
-
private offlineSyncDigestCacheWriteChain;
|
|
1359
|
-
private offlineSyncDigestCacheWriteTimer;
|
|
1360
|
-
/** Optional: set by the orchestrator after construction to enable template-aware citation stripping during legacy hash rebuild. */
|
|
1361
|
-
citationTemplate: string;
|
|
1362
|
-
/** Post-write catalog hook (#1522). Installed by the namespace router; fire-and-forget. */
|
|
1363
|
-
onCatalogWrite?: () => void;
|
|
1364
|
-
/** Post-write embedding hook (#2019). Installed by the orchestrator; fire-and-forget. */
|
|
1365
|
-
onMemoryWrite?: (filePath: string) => void;
|
|
1366
|
-
private notifyMemoryWrite;
|
|
1367
|
-
private notifyCatalogWrite;
|
|
1368
|
-
/**
|
|
1369
|
-
* Whether pure state-file writes touch the namespace catalog (issue #1903).
|
|
1370
|
-
* Set by `NamespaceStorageRouter.bindCatalogWriteHook` from
|
|
1371
|
-
* `namespacesCatalogTouchStateWrites` (default false). State files
|
|
1372
|
-
* (`state/buffer.json`, ledgers, indexes) are not namespace memory data, so by
|
|
1373
|
-
* default their writes do NOT record a catalog touch.
|
|
1374
|
-
*/
|
|
1375
|
-
touchStateWrites: boolean;
|
|
1376
|
-
/**
|
|
1377
|
-
* Post-write catalog hook, gated by file path (issue #1903). Namespace data
|
|
1378
|
-
* (`facts/`, `cold/`, `entities/`, `artifacts/`, `profile.md`, ...) lives
|
|
1379
|
-
* OUTSIDE `stateDir`, so a data write always touches; a write under `stateDir`
|
|
1380
|
-
* is a pure state write and is skipped unless `touchStateWrites` is enabled.
|
|
1381
|
-
*/
|
|
1382
|
-
protected notifyCatalogWriteForPath(filePath: string): void;
|
|
1383
|
-
/** Whether `filePath` resolves to `stateDir` itself or a path contained in it. */
|
|
1384
|
-
private isStateFilePath;
|
|
1385
|
-
private tombstoneStore;
|
|
1386
|
-
private tombstoneStoreLoadPromise;
|
|
1387
|
-
private tombstonesConfig;
|
|
1388
|
-
/** Page-versioning configuration. Set by the orchestrator after construction. */
|
|
1389
|
-
private _versioningConfig;
|
|
1390
|
-
/** Set the page-versioning configuration. When `enabled` is false (default), all versioning calls are no-ops. */
|
|
1391
|
-
setVersioningConfig(config: VersioningConfig): void;
|
|
1392
|
-
/**
|
|
1393
|
-
* At-rest encryption key (issue #690 PR 3/4).
|
|
1394
|
-
*
|
|
1395
|
-
* When non-null, every memory file read is decrypted and every write
|
|
1396
|
-
* is encrypted using the secure-fs layer. When null, the storage
|
|
1397
|
-
* layer operates in plain-text mode (legacy/unencrypted store).
|
|
1398
|
-
*
|
|
1399
|
-
* Set by the orchestrator after init/unlock; cleared on lock.
|
|
1400
|
-
* The key buffer is NEVER logged or serialized.
|
|
1401
|
-
*/
|
|
1402
|
-
private _secureStoreKey;
|
|
1403
|
-
/**
|
|
1404
|
-
* When true (and `_secureStoreKey` is non-null), new writes are
|
|
1405
|
-
* encrypted. Set to false to pause encryption of new writes while
|
|
1406
|
-
* still decrypting existing files.
|
|
1407
|
-
*/
|
|
1408
|
-
private _secureStoreEncryptOnWrite;
|
|
1409
|
-
/**
|
|
1410
|
-
* When true, the secure-store is configured as required — writes
|
|
1411
|
-
* MUST be encrypted and a locked store MUST reject writes rather
|
|
1412
|
-
* than silently falling back to plaintext. Set by the orchestrator
|
|
1413
|
-
* from `resolveRecallAuxiliaryCapabilities(config).secureStore`.
|
|
1414
|
-
*/
|
|
1415
|
-
private _secureStoreRequired;
|
|
1416
|
-
/**
|
|
1417
|
-
* Set or clear the at-rest encryption key.
|
|
1418
|
-
*
|
|
1419
|
-
* Pass a 32-byte Buffer to enable encryption; pass null to clear
|
|
1420
|
-
* (lock) the store. The caller is responsible for key lifecycle —
|
|
1421
|
-
* this method does not zero the buffer on replacement; the keyring
|
|
1422
|
-
* module (`keyring.ts`) owns zeroization. The setter remains synchronous
|
|
1423
|
-
* for existing consumers; call `setSecureStoreKeyAndWait` when unlock must
|
|
1424
|
-
* await migration.
|
|
1425
|
-
*/
|
|
1426
|
-
setSecureStoreKey(key: Buffer | null, encryptOnWrite?: boolean): void;
|
|
1427
|
-
setSecureStoreKeyAndWait(key: Buffer | null, encryptOnWrite?: boolean): Promise<void>;
|
|
1428
|
-
private applySecureStoreKey;
|
|
1429
|
-
private getEntityCacheSecureStoreKey;
|
|
1430
|
-
/**
|
|
1431
|
-
* Secure-store key identity for the version-keyed hot/archive memory caches
|
|
1432
|
-
* (issue #1902, Codex P1). Scopes cached DECRYPTED corpora by the key that
|
|
1433
|
-
* decrypted them, so a locked/unkeyed StorageManager for the same baseDir
|
|
1434
|
-
* never reads content another instance decrypted under a key (which would
|
|
1435
|
-
* bypass the locked-store error). Plaintext and locked stores share the ""
|
|
1436
|
-
* namespace; an unlocked encrypted store uses its per-key id.
|
|
1437
|
-
*/
|
|
1438
|
-
hotCacheKeyId(): string;
|
|
1439
|
-
/**
|
|
1440
|
-
* Resolved hot-cache gate for THIS store (issue #1902, Cursor Medium): the
|
|
1441
|
-
* per-instance override if one was passed, else the per-dir/process default.
|
|
1442
|
-
* Recall sub-stages (verified-recall, semantic-rule) read this to honor the
|
|
1443
|
-
* operator's opt-out for their derived caches even when the caller omits the
|
|
1444
|
-
* flag in options.
|
|
1445
|
-
*/
|
|
1446
|
-
isHotCacheEnabled(): boolean;
|
|
1447
|
-
/**
|
|
1448
|
-
* Effective hot-cache TTL (ms) for this store's dir (issue #1902): the per-dir
|
|
1449
|
-
* registration if present, else the process-wide default. 0 disables the TTL.
|
|
1450
|
-
*/
|
|
1451
|
-
hotCacheTtlMs(): number;
|
|
1452
|
-
/**
|
|
1453
|
-
* True if `p` lives in this store's cold/ or archive/ tier (issue #1902,
|
|
1454
|
-
* Codex P2). Determined RELATIVE to baseDir — a substring scan of the
|
|
1455
|
-
* absolute path would misclassify every active path when memoryDir itself is
|
|
1456
|
-
* nested under a dir literally named "cold" or "archive" (e.g.
|
|
1457
|
-
* /srv/cold/remnic), skipping the patch and stranding a stale hot entry.
|
|
1458
|
-
*/
|
|
1459
|
-
private isColdOrArchiveTierPath;
|
|
1460
|
-
/**
|
|
1461
|
-
* Mark the secure-store as required for this storage instance.
|
|
1462
|
-
* When required and locked, writes throw SecureStoreLockedError
|
|
1463
|
-
* rather than silently writing plaintext.
|
|
1464
|
-
*/
|
|
1465
|
-
setSecureStoreRequired(required: boolean): void;
|
|
1466
|
-
/** Return true iff the secure-store key is currently set (store is unlocked). */
|
|
1467
|
-
isSecureStoreUnlocked(): boolean;
|
|
1468
|
-
/** Whether a state-file write encrypts at rest (encrypt-on-write on AND key
|
|
1469
|
-
* set) — the write mode lifecycle compaction reserves the envelope for (#2033). */
|
|
1470
|
-
willEncryptStateWrites(): boolean;
|
|
1471
|
-
/**
|
|
1472
|
-
* Resolve the effective write key: null when encrypt-on-write is off or the
|
|
1473
|
-
* store is unlocked-optional; the key when set; else throws
|
|
1474
|
-
* SecureStoreLockedError under a required-but-locked store (PR #767) instead
|
|
1475
|
-
* of silently writing plaintext.
|
|
1476
|
-
*
|
|
1477
|
-
* `forceEncrypt` overrides the encrypt-on-write policy flag ONLY (issue
|
|
1478
|
-
* #2033): a lifecycle-ledger compaction of an already-encrypted ledger/backup
|
|
1479
|
-
* must preserve encryption at rest even when `secureStoreEncryptOnWrite` is
|
|
1480
|
-
* paused, or it would silently downgrade encrypted state to plaintext. It
|
|
1481
|
-
* never bypasses the LOCK: when the store has no key it still returns null
|
|
1482
|
-
* (optional) or throws (required), so a keyless caller can never fabricate an
|
|
1483
|
-
* encrypted write.
|
|
1484
|
-
*/
|
|
1485
|
-
private resolveWriteKey;
|
|
1486
|
-
/**
|
|
1487
|
-
* Snapshot the current content of a page before overwriting.
|
|
1488
|
-
* No-op when versioning is disabled or the file does not yet exist.
|
|
1489
|
-
*/
|
|
1490
|
-
private snapshotBeforeWrite;
|
|
1491
|
-
/**
|
|
1492
|
-
* Consolidation provenance helper (issue #561 PR 2).
|
|
1493
|
-
*
|
|
1494
|
-
* Captures the current on-disk content of a source memory as a
|
|
1495
|
-
* page-version snapshot so the downstream consolidated write can record a
|
|
1496
|
-
* `derived_from` pointer that actually resolves. Returns the
|
|
1497
|
-
* `"<relative-path>:<versionId>"` entry expected by the `derived_from`
|
|
1498
|
-
* frontmatter field.
|
|
1499
|
-
*
|
|
1500
|
-
* Returns `null` when versioning is disabled (snapshots would not be
|
|
1501
|
-
* created), when the file does not exist (nothing to snapshot), or when
|
|
1502
|
-
* the snapshot write itself fails (best-effort — callers skip the entry
|
|
1503
|
-
* rather than block the consolidation).
|
|
1504
|
-
*/
|
|
1505
|
-
snapshotForProvenance(filePath: string): Promise<string | null>;
|
|
1506
|
-
private readonly hotMemoriesCacheEnabled;
|
|
1507
|
-
constructor(baseDir: string, entitySchemas?: PluginConfig["entitySchemas"],
|
|
1508
|
-
/**
|
|
1509
|
-
* Hot-memories result cache gate (issue #1902). When omitted, resolves to
|
|
1510
|
-
* the per-directory default registered by setHotMemoriesCacheDefault()
|
|
1511
|
-
* (falling back to the process-wide default); pass an explicit boolean to
|
|
1512
|
-
* override per-instance (tests, memory-constrained readers).
|
|
1513
|
-
*/
|
|
1514
|
-
hotMemoriesCacheEnabledOverride?: boolean);
|
|
1515
|
-
/** Set the process-wide hot-memories cache default (issue #1902). The
|
|
1516
|
-
* orchestrator/access layer calls this with the operator's
|
|
1517
|
-
* hotMemoriesCacheEnabled config so the escape hatch reaches every
|
|
1518
|
-
* StorageManager, including ephemeral recall-sub-stage instances. Only an
|
|
1519
|
-
* explicit `false` disables; `undefined` (e.g. a cast test config missing
|
|
1520
|
-
* the field) leaves the cache on. */
|
|
1521
|
-
static setHotMemoriesCacheDefault(memoryDir: string, enabled: boolean | undefined, ttlMs?: number): void;
|
|
1522
|
-
/** Register the operator's scope-aware cache invalidation gate for a memory
|
|
1523
|
-
* dir (issue #1904). The orchestrator/access layer calls this with
|
|
1524
|
-
* the operator's scopedCacheInvalidationEnabled flag so the setting reaches every
|
|
1525
|
-
* StorageManager built over the dir, including ephemeral recall-sub-stage
|
|
1526
|
-
* instances. Only an explicit `false` disables; `undefined` leaves it on. */
|
|
1527
|
-
static setScopedCacheInvalidationDefault(memoryDir: string, enabled: boolean | undefined): void;
|
|
1528
|
-
/** OKF `type` emission gate registrations per memory dir (issue #1946). */
|
|
1529
|
-
private static readonly okfConformanceByDir;
|
|
1530
|
-
/** Register the OKF conformance gate for a memory dir. Unregistered dirs default to
|
|
1531
|
-
* conformance-on; namespace child dirs (<memoryDir>/namespaces/<tok>) inherit the
|
|
1532
|
-
* nearest registered ancestor. Only an explicit `false` disables. */
|
|
1533
|
-
static setOkfConformanceDefault(memoryDir: string, enabled: boolean | undefined): void;
|
|
1534
|
-
okfConformanceEnabled(): boolean;
|
|
1535
|
-
/**
|
|
1536
|
-
* The LIVE class object of this instance (issue #1809 review of the
|
|
1537
|
-
* storage decomposition): extracted store modules must read/write the
|
|
1538
|
-
* shared static caches (questionsCache, coldMemoriesCache, ...) through
|
|
1539
|
-
* the SAME class binding the host methods use. Referencing the imported
|
|
1540
|
-
* `StorageManager` symbol from a split bundle chunk can yield a second
|
|
1541
|
-
* class copy with its own statics, split-braining the caches
|
|
1542
|
-
* (resolveQuestion clears copy A while readQuestions reads copy B).
|
|
1543
|
-
*/
|
|
1544
|
-
get storageManagerClass(): typeof StorageManager;
|
|
1545
|
-
/** The root directory of this storage instance. */
|
|
1546
|
-
/** MemoryReadStore (storage.ts decomposition). Lazy; selfDeps live wiring. */
|
|
1547
|
-
private _memoryReadStore;
|
|
1548
|
-
private get memoryReadStore();
|
|
1549
|
-
/** EntityStore (storage.ts decomposition). Lazy; selfDeps live wiring. */
|
|
1550
|
-
private _entityStore;
|
|
1551
|
-
private get entityStore();
|
|
1552
|
-
/** IdentityContinuityStore (storage.ts decomposition). Lazy; selfDeps live wiring. */
|
|
1553
|
-
private _identityContinuityStore;
|
|
1554
|
-
private get identityContinuityStore();
|
|
1555
|
-
get dir(): string;
|
|
1556
|
-
private identityFilePath;
|
|
1557
|
-
private versionFilePath;
|
|
1558
|
-
private bumpSharedVersion;
|
|
1559
|
-
private readSharedVersion;
|
|
1560
|
-
protected bumpMemoryStatusVersion(): void;
|
|
1561
|
-
getMemoryStatusVersion(): number;
|
|
1562
|
-
/**
|
|
1563
|
-
* Entity content revision used by migration discovery and entity-page cache coherence.
|
|
1564
|
-
*/
|
|
1565
|
-
getEntityMutationVersion(): number;
|
|
1566
|
-
protected bumpEntityMutationVersion(): void;
|
|
1567
|
-
/**
|
|
1568
|
-
* Corpus version sentinel for the hot-memories result cache (#1902).
|
|
1569
|
-
* Distinct from memory-status: bumps on EVERY memory-file mutation so the
|
|
1570
|
-
* version-keyed hot cache stays coherent across processes, WITHOUT
|
|
1571
|
-
* invalidating the version-keyed entity cache on every plain fact create.
|
|
1572
|
-
*/
|
|
1573
|
-
getMemoryCorpusVersion(): number;
|
|
1574
|
-
/**
|
|
1575
|
-
* Bump only — NOT invalidateAllForDir (that would drop the very hot
|
|
1576
|
-
* entry the write path just patched).
|
|
1577
|
-
*/
|
|
1578
|
-
protected bumpMemoryCorpusVersion(): void;
|
|
1579
|
-
getArchiveMutationVersion(): number;
|
|
1580
|
-
/**
|
|
1581
|
-
* Corpus bump reporting whether THIS process's append was the only one
|
|
1582
|
-
* since the pre-bump size (#1902, Codex P1): the `exclusive` flag lets
|
|
1583
|
-
* patchHotMemoriesCache refuse to re-key its locally patched corpus at a
|
|
1584
|
-
* version already reflecting a peer's still-unread concurrent append.
|
|
1585
|
-
*/
|
|
1586
|
-
private bumpMemoryCorpusVersionExclusive;
|
|
1587
|
-
protected bumpArtifactWriteVersion(): number;
|
|
1588
|
-
private getArtifactWriteVersion;
|
|
1589
|
-
private get wearablesDir();
|
|
1590
|
-
/**
|
|
1591
|
-
* Resolve the on-disk path for a source/day transcript. Throws on
|
|
1592
|
-
* malformed inputs — source ids and dates reach this from CLI/MCP/HTTP
|
|
1593
|
-
* surfaces and must never become path traversal.
|
|
1594
|
-
*/
|
|
1595
|
-
wearableTranscriptPath(sourceId: string, date: string): string;
|
|
1596
|
-
writeWearableDayTranscript(sourceId: string, date: string, serialized: string): Promise<void>;
|
|
1597
|
-
/** Read a stored day transcript; null when the day has no file. */
|
|
1598
|
-
readWearableDayTranscript(sourceId: string, date: string): Promise<string | null>;
|
|
1599
|
-
listWearableTranscriptDays(sourceId?: string): Promise<Array<{
|
|
1600
|
-
source: string;
|
|
1601
|
-
date: string;
|
|
1602
|
-
}>>;
|
|
1603
|
-
private _fusionStore?;
|
|
1604
|
-
/** Derived fusion-day IO; file IO lives in wearables/fusion (#1810). */
|
|
1605
|
-
fusionArtifactStore(): FusionArtifactStore;
|
|
1606
|
-
private _meetingRecordStore?;
|
|
1607
|
-
/**
|
|
1608
|
-
* Meeting record IO (issue #1900). Records live under `<baseDir>/meetings/`
|
|
1609
|
-
* — inside the QMD collection root (full-text searchable) but outside the
|
|
1610
|
-
* memory scan roots — and inherit the same encrypted-at-rest + atomic-write +
|
|
1611
|
-
* symlink-containment semantics as memories via the shared secure IO port.
|
|
1612
|
-
*/
|
|
1613
|
-
meetingRecordStore(): MeetingRecordStore;
|
|
1614
|
-
/**
|
|
1615
|
-
* Locate a wearable-sourced memory by exact (trimmed) content,
|
|
1616
|
-
* ignoring the "[Attributes: ...]" suffix writeMemory appends for
|
|
1617
|
-
* structuredAttributes — callers pass the raw fact text. Used by the
|
|
1618
|
-
* smart trust pipeline to find an earlier borderline write when the
|
|
1619
|
-
* same fact re-extracts with stronger evidence.
|
|
1620
|
-
*/
|
|
1621
|
-
findWearableMemoryByContent(content: string): Promise<{
|
|
1622
|
-
id: string;
|
|
1623
|
-
status: MemoryStatus | undefined;
|
|
1624
|
-
} | null>;
|
|
1625
|
-
/**
|
|
1626
|
-
* Promote a pending_review wearable memory to active in place,
|
|
1627
|
-
* merging updated trust evidence into structuredAttributes. Returns
|
|
1628
|
-
* false when the memory is missing or no longer pending_review (a
|
|
1629
|
-
* concurrent review decision wins), or when the row is tombstone-blocked
|
|
1630
|
-
* (`blockedBy` — issue #1579 threads OcuDx/Ocu1l): writeMemoryFrontmatter
|
|
1631
|
-
* bypasses the writeMemory chokepoint, so a blocked row must first be
|
|
1632
|
-
* cleared via revokeTombstone before promotion can proceed.
|
|
1633
|
-
*/
|
|
1634
|
-
promoteWearableMemory(id: string, attributeUpdates: Record<string, string>, confidence?: number): Promise<boolean>;
|
|
1635
|
-
/**
|
|
1636
|
-
* Demote a pending_review wearable memory to rejected when a re-pass
|
|
1637
|
-
* produced an explicit judge-reject verdict, merging the evidence.
|
|
1638
|
-
* Returns false when the memory is missing or no longer
|
|
1639
|
-
* pending_review — active rows are NEVER auto-demoted (operator
|
|
1640
|
-
* approvals and accrued recall signals win; contradiction scans and
|
|
1641
|
-
* supersession own active-row retirement).
|
|
1642
|
-
*/
|
|
1643
|
-
demoteWearableMemory(id: string, attributeUpdates: Record<string, string>): Promise<boolean>;
|
|
1644
|
-
private get factsDir();
|
|
1645
|
-
private get correctionsDir();
|
|
1646
|
-
private get proceduresDir();
|
|
1647
|
-
private get reasoningTracesDir();
|
|
1648
|
-
private get entitiesDir();
|
|
1649
|
-
private resolveEntityFilePath;
|
|
1650
|
-
private readStorageSecureFile;
|
|
1651
|
-
readDependencyPropagationQueueFile(filePath: string): Promise<string>;
|
|
1652
|
-
writeDependencyPropagationQueueFile(filePath: string, content: string): Promise<void>;
|
|
1653
|
-
protected writeStorageSecureFile(filePath: string, content: string | Buffer, forceEncrypt?: boolean): Promise<void>;
|
|
1654
|
-
protected assertManagedStoragePath(filePath: string, method: string): string;
|
|
1655
|
-
readDeletionRevisions(): Promise<ReadonlyMap<string, number>>;
|
|
1656
|
-
hasCommittedInvalidation(memory: Pick<MemoryFile, "content" | "frontmatter">): Promise<boolean>;
|
|
1657
|
-
readCasRevision: (filePath: string) => Promise<string | undefined>;
|
|
1658
|
-
readCasRevisionStatus: (filePath: string) => Promise<CasRevisionReadStatus>;
|
|
1659
|
-
readDurableFileDigest: (filePath: string) => Promise<string | null>;
|
|
1660
|
-
protected beginDurableMemoryRevision: (pathname: string, expectedContent?: string | Buffer | null) => Promise<CasRevisionTransaction>;
|
|
1661
|
-
private recordCommittedInvalidation;
|
|
1662
|
-
private clearCommittedInvalidation;
|
|
1663
|
-
recordReplicatedDeletionRevision(filePath: string, mtimeMs: number): Promise<void>;
|
|
1664
|
-
protected writeManagedStorageFile(filePath: string, write: () => Promise<void>): Promise<void>;
|
|
1665
|
-
protected deleteManagedStorageFileDurable(filePath: string, deletionMtimeMs?: number | null): Promise<boolean>;
|
|
1666
|
-
readOfflineSyncFile(filePath: string): Promise<Buffer>;
|
|
1667
|
-
digestOfflineSyncFile(filePath: string): Promise<{
|
|
1668
|
-
sha256: string;
|
|
1669
|
-
bytes: number;
|
|
1670
|
-
}>;
|
|
1671
|
-
private loadOfflineSyncDigestCache;
|
|
1672
|
-
private readOfflineSyncDigestCache;
|
|
1673
|
-
private rememberOfflineSyncDigest;
|
|
1674
|
-
private scheduleOfflineSyncDigestCacheWrite;
|
|
1675
|
-
private queueOfflineSyncDigestCacheWrite;
|
|
1676
|
-
private offlineSyncFileIsEncrypted;
|
|
1677
|
-
writeOfflineSyncStagingFile(filePath: string, content: Buffer): Promise<void>;
|
|
1678
|
-
createContentHashIndex(): ContentHashIndex;
|
|
1679
|
-
private appendStorageSecureFile;
|
|
1680
|
-
/**
|
|
1681
|
-
* Classify a file as encrypted by reading ONLY the fixed-size magic header
|
|
1682
|
-
* (issue #1909), never the whole file. The result is cached per-path but
|
|
1683
|
-
* VALIDATED against the file's (size, mtime) identity (review round 10 finding
|
|
1684
|
-
* 1): a `stat` on each call is O(1), and the 12-byte header read happens only
|
|
1685
|
-
* on a cache miss or when the on-disk identity changed — so a PEER process
|
|
1686
|
-
* rewriting/encrypting the file is detected and we never append raw bytes into
|
|
1687
|
-
* an encrypted body. ENOENT and short/empty files classify as not-encrypted
|
|
1688
|
-
* (fall through to a plain `appendFile`).
|
|
1689
|
-
*/
|
|
1690
|
-
private isEncryptedFileHeader;
|
|
1691
|
-
private appendStorageSecureFileUnlocked;
|
|
1692
|
-
private get stateDir();
|
|
1693
|
-
private get offlineSyncDigestCachePath();
|
|
1694
|
-
private get entitySynthesisQueuePath();
|
|
1695
|
-
/**
|
|
1696
|
-
* The on-disk tombstone log path. Lives under `<stateDir>/tombstones.jsonl`
|
|
1697
|
-
* so it is co-located with the fact-hash index and encrypted at rest when
|
|
1698
|
-
* the secure-store is enabled (the StorageManager's secure read/write
|
|
1699
|
-
* helpers are injected into the store).
|
|
1700
|
-
*/
|
|
1701
|
-
private get tombstonesPath();
|
|
1702
|
-
/**
|
|
1703
|
-
* Configure the tombstone invariant for this storage instance. Installed
|
|
1704
|
-
* by the orchestrator after construction (same pattern as
|
|
1705
|
-
* `setVersioningConfig` / `citationTemplate`). When `enabled` is false
|
|
1706
|
-
* (default until the orchestrator wires config), the chokepoint check is a
|
|
1707
|
-
* no-op — pre-feature behavior for rollback safety (rule 30).
|
|
1708
|
-
*/
|
|
1709
|
-
setTombstonesConfig(config: {
|
|
1710
|
-
enabled: boolean;
|
|
1711
|
-
semanticMatch: boolean;
|
|
1712
|
-
semanticThreshold: number;
|
|
1713
|
-
namespace: string;
|
|
1714
|
-
}): void;
|
|
1715
|
-
private buildTombstoneStore;
|
|
1716
|
-
/**
|
|
1717
|
-
* Lazily load the tombstone store. Mirrors the fact-hash-index lazy-load
|
|
1718
|
-
* pattern: a single in-flight load promise dedups concurrent first-access.
|
|
1719
|
-
* The cross-process staleness probe lives inside the store now (#1579): on
|
|
1720
|
-
* each cached access it stats its own file and invalidates if a peer process
|
|
1721
|
-
* appended, so the next lookup reloads from disk. If the probe just
|
|
1722
|
-
* invalidated the store, fall through to the reload branch — returning null
|
|
1723
|
-
* here was the original regression (the chokepoint threw and failed OPEN).
|
|
1724
|
-
*/
|
|
1725
|
-
getTombstoneStore(): Promise<TombstoneStore>;
|
|
1726
|
-
/**
|
|
1727
|
-
* Whether tombstones are enabled on this storage. Callers that need to
|
|
1728
|
-
* distinguish "tombstones disabled" (null return is expected) from
|
|
1729
|
-
* "persistence failed" (appendTombstone swallows store errors and also
|
|
1730
|
-
* returns null) use this to fail closed when enabled (#1580 review OgIqp).
|
|
1731
|
-
*/
|
|
1732
|
-
isTombstonesEnabled(): boolean;
|
|
1733
|
-
/**
|
|
1734
|
-
* Append a tombstone for a retired memory (issue #1579 emitters).
|
|
1735
|
-
* Best-effort: a tombstone append failure MUST NOT fail the supersession /
|
|
1736
|
-
* correction that triggered it (gotcha #13 / rule 34). The memory is
|
|
1737
|
-
* already retired on disk; the tombstone is the non-resurrection guard.
|
|
1738
|
-
*/
|
|
1739
|
-
appendTombstone(input: {
|
|
1740
|
-
reason: TombstoneReason;
|
|
1741
|
-
createdBy: TombstoneCreatedBy;
|
|
1742
|
-
sourceMemoryId: string;
|
|
1743
|
-
rawContent: string;
|
|
1744
|
-
entityRef?: string;
|
|
1745
|
-
supersessionKey?: string;
|
|
1746
|
-
operationKey?: string;
|
|
1747
|
-
createdAt?: string;
|
|
1748
|
-
contentHash?: string;
|
|
1749
|
-
}): Promise<string | null>;
|
|
1750
|
-
hasExactTombstone(input: {
|
|
1751
|
-
sourceMemoryId: string;
|
|
1752
|
-
contentHash?: string;
|
|
1753
|
-
entityRef?: string;
|
|
1754
|
-
supersessionKey?: string;
|
|
1755
|
-
createdAt?: string;
|
|
1756
|
-
operationKey?: string;
|
|
1757
|
-
}): Promise<boolean>;
|
|
1758
|
-
/**
|
|
1759
|
-
* Revoke a tombstone (re-allow the content). Used by the review-queue
|
|
1760
|
-
* approval path when an operator approves a blocked memory.
|
|
1761
|
-
*/
|
|
1762
|
-
revokeTombstone(tombstoneId: string, createdBy: TombstoneCreatedBy): Promise<string | null>;
|
|
1763
|
-
/** Aggregate tombstone stats for `remnic doctor`. */
|
|
1764
|
-
getTombstoneStats(): Promise<TombstoneStats | null>;
|
|
1765
|
-
/**
|
|
1766
|
-
* Rebuild the tombstone log from retired memories on disk. Exposed for
|
|
1767
|
-
* `remnic doctor --rebuild-tombstones` and tests.
|
|
1768
|
-
*/
|
|
1769
|
-
rebuildTombstonesFromFiles(): Promise<number>;
|
|
1770
|
-
protected markFactHashIndexNotAuthoritative(): void;
|
|
1771
|
-
protected tombstoneBlockedCaptureIndexOptions(): TombstoneBlockedCaptureIndexOptions;
|
|
1772
|
-
private getFactHashIndex;
|
|
1773
|
-
/**
|
|
1774
|
-
* Return the fact-hash index after ensuring it is authoritative — i.e. rebuilt
|
|
1775
|
-
* from the durable fact corpus (issue #1909 review round 12). This is the ONE
|
|
1776
|
-
* coherent dedup source: the orchestrator's dedup layer
|
|
1777
|
-
* (contentHashIndexForStorage) shares THIS instance instead of loading a raw,
|
|
1778
|
-
* possibly-stale fact-hashes.txt, so after a crash+restart the orchestrator's
|
|
1779
|
-
* hasContentHashDedup sees the same corpus-rebuilt hashes StorageManager does
|
|
1780
|
-
* and never re-creates a fact whose per-write flush was deferred and lost.
|
|
1781
|
-
*/
|
|
1782
|
-
getAuthoritativeFactHashIndex(): Promise<ContentHashIndex>;
|
|
1783
|
-
/**
|
|
1784
|
-
* Return the shared fact-hash index instance, corpus-rebuilt under the lock
|
|
1785
|
-
* when the lock is free. Unlike {@link getAuthoritativeFactHashIndex} this
|
|
1786
|
-
* NEVER throws on lock contention — it returns the shared instance (the loaded
|
|
1787
|
-
* snapshot when a locked rebuild could not run) so registration writes still
|
|
1788
|
-
* land in the one shared index and reconcile to disk. Callers that trust a
|
|
1789
|
-
* dedup MISS MUST also consult {@link isFactContentHashAuthoritative} and
|
|
1790
|
-
* confirm against the corpus when it is false (PR #2016).
|
|
1791
|
-
*/
|
|
1792
|
-
getSharedFactHashIndex(): Promise<ContentHashIndex>;
|
|
1793
|
-
private ensureFactHashIndexAuthoritative;
|
|
1794
|
-
/**
|
|
1795
|
-
* Repopulate `factHashIndex` in memory from the durable HOT+COLD corpus. Runs
|
|
1796
|
-
* WHILE the per-index cross-process lock is held (see
|
|
1797
|
-
* ContentHashIndex.rebuildUnderLock, which publishes the rebuilt set); this
|
|
1798
|
-
* method itself never writes to disk.
|
|
1799
|
-
*/
|
|
1800
|
-
private rebuildFactHashIndexFromCorpus;
|
|
1801
|
-
private storedContentIdentityCandidates;
|
|
1802
|
-
/** Returns the current body identity while preserving explicit external identities. */
|
|
1803
|
-
private corpusRegisteredHashes;
|
|
1804
|
-
private get questionsDir();
|
|
1805
|
-
private get artifactsDir();
|
|
1806
|
-
private get identityDir();
|
|
1807
|
-
private get identityAnchorPath();
|
|
1808
|
-
private get identityIncidentsDir();
|
|
1809
|
-
private get identityAuditsWeeklyDir();
|
|
1810
|
-
private get identityAuditsMonthlyDir();
|
|
1811
|
-
private get identityImprovementLoopsPath();
|
|
1812
|
-
private get identityReflectionsPath();
|
|
1813
|
-
private get profilePath();
|
|
1814
|
-
private get memoryActionsPath();
|
|
1815
|
-
private get memoryLifecycleLedgerPath();
|
|
1816
|
-
private get compressionGuidelinesPath();
|
|
1817
|
-
private get compressionGuidelineDraftPath();
|
|
1818
|
-
private get compressionGuidelineStatePath();
|
|
1819
|
-
private get compressionGuidelineDraftStatePath();
|
|
1820
|
-
private get behaviorSignalsPath();
|
|
1821
|
-
/**
|
|
1822
|
-
* In-memory dedup key set for behavior-signals appends (issue #1909),
|
|
1823
|
-
* validated by (size, mtime) file identity like the catalog `compactedCache`.
|
|
1824
|
-
* Avoids re-reading + JSON.parsing the whole `behavior-signals.jsonl` on
|
|
1825
|
-
* every append. A foreign write changes size/mtime, forcing a reload; this
|
|
1826
|
-
* process's own appends refresh the identity in place. null => reload.
|
|
1827
|
-
*/
|
|
1828
|
-
private behaviorSignalsKeyCache;
|
|
1829
|
-
/**
|
|
1830
|
-
* Per-instance serializer for `appendBehaviorSignals` (issue #1909 review
|
|
1831
|
-
* round 3). The read→dedup→append→cache-commit transaction must run to
|
|
1832
|
-
* completion before the next append starts; otherwise two concurrent callers
|
|
1833
|
-
* each snapshot their own `existingKeys`, and the later one commits an
|
|
1834
|
-
* INCOMPLETE set under the final file identity, so a subsequent call
|
|
1835
|
-
* cache-hits a set missing the earlier batch and writes duplicate signals.
|
|
1836
|
-
* The `.catch` links keep the chain alive after a rejected append
|
|
1837
|
-
* (AGENTS.md #28).
|
|
1838
|
-
*/
|
|
1839
|
-
private behaviorSignalsAppendChain;
|
|
1840
|
-
/**
|
|
1841
|
-
* Buffer surprise telemetry ledger (issue #563 PR 3).
|
|
1842
|
-
*
|
|
1843
|
-
* Append-only JSONL of per-turn `BUFFER_SURPRISE` events emitted by
|
|
1844
|
-
* `SmartBuffer` when `bufferSurpriseTriggerEnabled` is on. Each row
|
|
1845
|
-
* captures the score, the threshold in force at the time, whether the
|
|
1846
|
-
* turn caused an extract_now upgrade, and the buffer size. Kept in
|
|
1847
|
-
* `state/` alongside the other append-only ledgers so cleanup and
|
|
1848
|
-
* governance sweeps can treat it uniformly.
|
|
1849
|
-
*/
|
|
1850
|
-
private get bufferSurpriseLedgerPath();
|
|
1851
|
-
/**
|
|
1852
|
-
* Entity alias table loaded from THIS store's config/aliases.json.
|
|
1853
|
-
* Instance-scoped on purpose (issue #1534): multiple StorageManager
|
|
1854
|
-
* instances in one process (namespaces, hosted profiles, tenants) must
|
|
1855
|
-
* never share alias state — the previous module-level table let whichever
|
|
1856
|
-
* store loaded last rewrite every other store's canonical entity ids.
|
|
1857
|
-
*/
|
|
1858
|
-
private userAliases;
|
|
1859
|
-
private readonly historicalEntityCanonicalIds;
|
|
1860
|
-
private currentHistoricalIds;
|
|
1861
|
-
/** Post-persist repair subsystem (issue #2213) — storage/entity-ref-repair.ts. */
|
|
1862
|
-
private _entityRefRepair;
|
|
1863
|
-
private get entityRefRepair();
|
|
1864
|
-
private readonly entityCanonicalIdMigration;
|
|
1865
|
-
normalizeEntityName(raw: string, type: string): string;
|
|
1866
|
-
/**
|
|
1867
|
-
* Read-only view of this store's user alias table, for call sites that
|
|
1868
|
-
* normalize outside the manager (pass it to the free `normalizeEntityName`).
|
|
1869
|
-
*/
|
|
1870
|
-
get entityAliases(): Readonly<Record<string, string>>;
|
|
1871
|
-
/**
|
|
1872
|
-
* Reload user-defined entity aliases from config/aliases.json in the memory
|
|
1873
|
-
* store. File format: { "variant": "canonical", ... }. The constructor
|
|
1874
|
-
* already loads aliases, so this is only needed to pick up file changes
|
|
1875
|
-
* (e.g. orchestrator.initialize() re-running on a live instance).
|
|
1876
|
-
* Non-object payloads and non-string or empty alias values are ignored.
|
|
1877
|
-
*/
|
|
1878
|
-
loadAliases(): Promise<void>;
|
|
1879
|
-
private loadAliasesSync;
|
|
1880
|
-
private runLegacyEntityCanonicalIdMigration;
|
|
1881
|
-
ensureDirectories(): Promise<void>;
|
|
1882
|
-
/**
|
|
1883
|
-
* Resolve the on-disk write path for a memory of the given category, creating
|
|
1884
|
-
* the target directory. Category routing goes through the shared
|
|
1885
|
-
* `getCategoryDir()` chokepoint (utils/category-dir.ts → CATEGORY_DIR_MAP) so
|
|
1886
|
-
* decision/preference/moment/etc. outputs land in their dedicated dirs
|
|
1887
|
-
* (`decisions/`, `preferences/`, ...) instead of collapsing into `facts/`
|
|
1888
|
-
* (issue #1546; CLAUDE.md rule 39). `correction` keeps its historical flat
|
|
1889
|
-
* layout (no `<date>` subdir) as the corrections pipeline expects; every other
|
|
1890
|
-
* category — including `fact`/`entity`, which fall back to `facts/` — is dated
|
|
1891
|
-
* as `<dir>/<date>/`. Read/scan/reindex already iterate every category dir
|
|
1892
|
-
* (RECALL_FALLBACK_DIRS; QMD scans baseDir recursively), so writes stay found.
|
|
1893
|
-
*/
|
|
1894
|
-
private resolveCategoryWritePath;
|
|
1895
|
-
private findExistingTombstoneBlockedMemory;
|
|
1896
|
-
/** Derive the inert OKF `type` at the serialization choke point when conformance is on
|
|
1897
|
-
* and the parsed frontmatter carried none (issue #1946). Never touches `category`. */
|
|
1898
|
-
private withOkfType;
|
|
1899
|
-
writeMemory(category: MemoryCategory, content: string, options?: WriteMemoryOptions): Promise<{
|
|
1900
|
-
id: string;
|
|
1901
|
-
tombstoneBlocked: boolean;
|
|
1902
|
-
blockedBy: string | undefined;
|
|
1903
|
-
duplicateOf: string;
|
|
1904
|
-
memory: MemoryFile;
|
|
1905
|
-
} | {
|
|
1906
|
-
memory: {
|
|
1907
|
-
path: string;
|
|
1908
|
-
frontmatter: MemoryFrontmatter;
|
|
1909
|
-
content: string;
|
|
1910
|
-
};
|
|
1911
|
-
blockedBy?: string | undefined;
|
|
1912
|
-
id: string;
|
|
1913
|
-
tombstoneBlocked: boolean;
|
|
1914
|
-
duplicateOf?: undefined;
|
|
1915
|
-
}>;
|
|
1916
|
-
/**
|
|
1917
|
-
* Sealed-envelope write entry point (issue #1989 PR2).
|
|
1918
|
-
*
|
|
1919
|
-
* Byte-identity with `writeMemory` is BY DELEGATION: the envelope-owned
|
|
1920
|
-
* fields are unpacked into the exact `writeMemory` arguments a legacy
|
|
1921
|
-
* caller would have passed, so the persisted output is produced by the
|
|
1922
|
-
* same code path. The composer's `persistedBody` was assembled with the
|
|
1923
|
-
* same `assemblePersistedBody` helper `writeMemory` uses, so fingerprints
|
|
1924
|
-
* derived from the envelope match the stored body (§13).
|
|
1925
|
-
*
|
|
1926
|
-
* Differences from a raw `writeMemory` call are REJECTIONS, not silent
|
|
1927
|
-
* changes: the composer enforces tag/attribute caps, strict validAt, and
|
|
1928
|
-
* plain-object attributes that the legacy path never validated.
|
|
1929
|
-
*
|
|
1930
|
-
* `envelope.ttl` maps to `expiresAt` verbatim; converting duration
|
|
1931
|
-
* expressions (`"90d"`) to instants remains the access layer's job (PR3).
|
|
1932
|
-
* `envelope.sourceReason` is access-layer metadata with no frontmatter
|
|
1933
|
-
* field and is deliberately not persisted here.
|
|
1934
|
-
*/
|
|
1935
|
-
writeSealedMemory(envelope: SealedMemoryEnvelope, extras?: SealedWriteExtras): Promise<{
|
|
1936
|
-
id: string;
|
|
1937
|
-
tombstoneBlocked: boolean;
|
|
1938
|
-
blockedBy: string | undefined;
|
|
1939
|
-
duplicateOf: string;
|
|
1940
|
-
memory: MemoryFile;
|
|
1941
|
-
} | {
|
|
1942
|
-
memory: {
|
|
1943
|
-
path: string;
|
|
1944
|
-
frontmatter: MemoryFrontmatter;
|
|
1945
|
-
content: string;
|
|
1946
|
-
};
|
|
1947
|
-
blockedBy?: string | undefined;
|
|
1948
|
-
id: string;
|
|
1949
|
-
tombstoneBlocked: boolean;
|
|
1950
|
-
duplicateOf?: undefined;
|
|
1951
|
-
}>;
|
|
1952
|
-
hasFactContentHash(content: string): Promise<boolean>;
|
|
1953
|
-
private factContentHashPresentInCorpus;
|
|
1954
|
-
private factContentHashesForRemoval;
|
|
1955
|
-
/** Publish `hashes` for an ACTIVE fact through the SAME locked reconcile the write path uses. */
|
|
1956
|
-
private publishActiveFactHashes;
|
|
1957
|
-
/**
|
|
1958
|
-
* Register an EXPLICITLY computed content hash for an active fact (issue
|
|
1959
|
-
* #2330 round N+16 C): the degraded merge repair indexes the COMMITTED
|
|
1960
|
-
* body while the persisted `frontmatter.contentHash` is the stale
|
|
1961
|
-
* PRE-merge identity. Round N+20 (B): body-coupled (`expectedContent`) —
|
|
1962
|
-
* repair), so no obsolete hash lands on a newer record. No-op otherwise.
|
|
1963
|
-
*/
|
|
1964
|
-
registerFactContentHash(memoryId: string, contentHash: string, expectedContent: string): Promise<void>;
|
|
1965
|
-
private addActiveFactContentHash;
|
|
1966
|
-
/**
|
|
1967
|
-
* Re-register a fact's contentHash in the dedup index after a tombstone
|
|
1968
|
-
* block is lifted on approval (issue #1579 thread ObnTy): `writeMemory`
|
|
1969
|
-
* skips registration for tombstone-blocked facts (rule 44), so a promoted
|
|
1970
|
-
* fact must re-enter the index or the next extraction of the same content
|
|
1971
|
-
* creates a second active fact. No-op for non-facts or inactive facts.
|
|
1972
|
-
*/
|
|
1973
|
-
restoreFactHashAfterApproval(memoryId: string): Promise<void>;
|
|
1974
|
-
private syncFactHashIndexAfterRewrite;
|
|
1975
|
-
removeFactContentHashesForMemories(memories: MemoryFile[]): Promise<void>;
|
|
1976
|
-
/**
|
|
1977
|
-
* Remove a memory's fact-ONLY partition membership in lockstep with the
|
|
1978
|
-
* shared, category-agnostic index removal the orchestrator's
|
|
1979
|
-
* `removeContentHashForMemory` performs on archival / semantic
|
|
1980
|
-
* consolidation (PR #2016 threads SDzOP / SDzOR). Without this, the
|
|
1981
|
-
* partition kept a removed/superseded fact's hash and `hasFactContentHash`
|
|
1982
|
-
* returned a stale `true` until the next corpus rebuild, so wearable /
|
|
1983
|
-
* explicit-capture / promotion callers skipped a valid write. No-op when
|
|
1984
|
-
* the fact-hash index has not been loaded in this process yet (the
|
|
1985
|
-
* partition is empty then and the corpus rebuild excludes the removed
|
|
1986
|
-
* memory). No-op for non-facts.
|
|
1987
|
-
*/
|
|
1988
|
-
removeFactOnlyHashForMemory(memory: MemoryFile): void;
|
|
1989
|
-
isFactContentHashAuthoritative(): Promise<boolean>;
|
|
1990
|
-
writeArtifact(quote: string, options?: {
|
|
1991
|
-
actor?: string;
|
|
1992
|
-
tags?: string[];
|
|
1993
|
-
confidence?: number;
|
|
1994
|
-
artifactType?: MemoryFrontmatter["artifactType"];
|
|
1995
|
-
sourceMemoryId?: string;
|
|
1996
|
-
sourceTurnId?: string;
|
|
1997
|
-
intentGoal?: string;
|
|
1998
|
-
intentActionType?: string;
|
|
1999
|
-
intentEntityTypes?: string[];
|
|
2000
|
-
sourceConnector?: string;
|
|
2001
|
-
origin?: string;
|
|
2002
|
-
toolScoped?: true;
|
|
2003
|
-
}): Promise<string>;
|
|
2004
|
-
private readAllArtifactsCached;
|
|
2005
|
-
searchArtifacts(query: string, maxResults: number, options?: ArtifactSearchOptions): Promise<MemoryFile[]>;
|
|
2006
|
-
writeEntity(name: string, type: string, facts: string[], options?: {
|
|
2007
|
-
timestamp?: string;
|
|
2008
|
-
source?: string;
|
|
2009
|
-
sessionKey?: string;
|
|
2010
|
-
principal?: string;
|
|
2011
|
-
origin?: string;
|
|
2012
|
-
structuredSections?: EntityStructuredSection[];
|
|
2013
|
-
}): Promise<string>;
|
|
2014
|
-
readProfile(): Promise<string>;
|
|
2015
|
-
writeProfile(content: string): Promise<void>;
|
|
2016
|
-
private static normalizeForDedup;
|
|
2017
|
-
/**
|
|
2018
|
-
* Check if a new bullet is a fuzzy duplicate of any existing bullet.
|
|
2019
|
-
* Returns true if the new bullet should be skipped.
|
|
2020
|
-
*/
|
|
2021
|
-
private static isFuzzyDuplicate;
|
|
2022
|
-
appendToProfile(updates: string[]): Promise<void>;
|
|
2023
|
-
/** Check if profile.md exceeds the max line cap and needs LLM consolidation */
|
|
2024
|
-
profileNeedsConsolidation(triggerLines?: number): Promise<boolean>;
|
|
2025
|
-
private rememberMemorySnapshot;
|
|
2026
|
-
private rememberMemorySnapshots;
|
|
2027
|
-
readAllMemories(options?: CorpusReadOptions): Promise<MemoryFile[]>;
|
|
2028
|
-
/** Invalidate the readAllMemories() cache after writes that add/remove memories. */
|
|
2029
|
-
/** Public cache invalidation for callers that need authoritative disk reads
|
|
2030
|
-
* (e.g. projection verify/rebuild). */
|
|
2031
|
-
invalidateAllMemoriesCacheForDir(): void;
|
|
2032
|
-
/** Invalidate only the cache layers affected by direct tier file deletes. */
|
|
2033
|
-
invalidateMemoryCachesForTiers(tiers: Iterable<"hot" | "cold" | "archive">): void;
|
|
2034
|
-
/** Clear ALL static caches. Use in tests that write files directly
|
|
2035
|
-
* (bypassing StorageManager.writeMemory) to avoid stale reads. */
|
|
2036
|
-
static clearAllStaticCaches(): void;
|
|
2037
|
-
/** Cancel any in-flight concurrent read so the next readAllMemories()
|
|
2038
|
-
* starts a fresh disk scan and sees the just-written data.
|
|
2039
|
-
*
|
|
2040
|
-
* Finding UvBq (PR #402 round-11): this method intentionally does NOT
|
|
2041
|
-
* invalidate the cold-scan cache. Ordinary hot-tier writes (writeMemory)
|
|
2042
|
-
* do not change cold-tier content, so evicting the cold cache on every hot
|
|
2043
|
-
* write was defeating the burst-dedup optimisation — the cold cache was
|
|
2044
|
-
* cleared before applyTemporalSupersession ran, causing a full cold-tree
|
|
2045
|
-
* disk scan on every write in a burst. Cold cache invalidation is handled
|
|
2046
|
-
* exclusively by invalidateColdMemoriesCache(), which is called only when
|
|
2047
|
-
* cold content actually changes (hot→cold demotions, writeMemoryFileAtomic
|
|
2048
|
-
* inside cold/, archiveMemory, etc.). */
|
|
2049
|
-
protected invalidateAllMemoriesCache(): void;
|
|
2050
|
-
/**
|
|
2051
|
-
* Single-file write/delete fast path for the hot-memories cache (issue
|
|
2052
|
-
* #1902). Keeps THIS process's version-keyed corpus entry warm by patching
|
|
2053
|
-
* the changed memory in place, bumps the dedicated `.memory-corpus-version.log`
|
|
2054
|
-
* sentinel so PEER processes rescan (memory-status is deliberately NOT bumped
|
|
2055
|
-
* here so plain creates/content edits don't invalidate the entity cache), and
|
|
2056
|
-
* evicts only the derived/global layers (which
|
|
2057
|
-
* are cheap to rebuild and are never patched). Mirrors the in-flight-dedup
|
|
2058
|
-
* and tombstone-store invalidation that invalidateAllMemoriesCache() does.
|
|
2059
|
-
*
|
|
2060
|
-
* `added` is the written MemoryFile (writes/overwrites); `removedPath` is a
|
|
2061
|
-
* deleted path. A path outside the active scan roots (under cold/ or
|
|
2062
|
-
* archive/) is NOT applied to the hot map — that cache holds active memories
|
|
2063
|
-
* only — but the version bump and derived/global eviction still run so
|
|
2064
|
-
* coherence is preserved. Bulk/ambiguous mutations keep the wholesale
|
|
2065
|
-
* invalidateAllMemoriesCache() drop instead (issue #1902 Step 5).
|
|
2066
|
-
*/
|
|
2067
|
-
private patchHotMemoriesCache;
|
|
2068
|
-
/**
|
|
2069
|
-
* Invalidate the cold-scan cache for this storage root and bump the
|
|
2070
|
-
* on-disk cold-version sentinel so that other processes (gateway, CLI) see
|
|
2071
|
-
* the change immediately on their next readAllColdMemories() call.
|
|
2072
|
-
*
|
|
2073
|
-
* Must be called whenever a memory is written INTO the cold tier — hot→cold
|
|
2074
|
-
* demotion, atomic writes inside cold/, archiving a cold memory, etc.
|
|
2075
|
-
* NOT called on ordinary hot-tier writes (those don't change cold contents).
|
|
2076
|
-
*
|
|
2077
|
-
* Finding UvUy (PR #402 round-11): bumping the sentinel here makes the
|
|
2078
|
-
* per-process in-memory cache safe across process boundaries.
|
|
2079
|
-
*/
|
|
2080
|
-
protected invalidateColdMemoriesCache(): void;
|
|
2081
|
-
/** Return the current cold-write version counter for this storage root.
|
|
2082
|
-
* Reads the on-disk sentinel (state/cold-write.log) so it reflects writes
|
|
2083
|
-
* made by other processes. */
|
|
2084
|
-
private readColdWriteVersion;
|
|
2085
|
-
/** Bump the on-disk cold-write version sentinel and update the in-process
|
|
2086
|
-
* fallback map. Called by invalidateColdMemoriesCache(). */
|
|
2087
|
-
private bumpColdWriteVersion;
|
|
2088
|
-
private normalizeMemoryReadBatchSize;
|
|
2089
|
-
/**
|
|
2090
|
-
* Public cheap active-memory path scan (issue #2149 corpus watermark). Lists
|
|
2091
|
-
* active memory file paths without parsing frontmatter — safe on a 100k+
|
|
2092
|
-
* corpus, unlike readAllMemories().
|
|
2093
|
-
*/
|
|
2094
|
-
collectActiveMemoryPaths(options?: {
|
|
2095
|
-
propagateReadErrors?: boolean;
|
|
2096
|
-
} & CorpusReadOptions): Promise<string[]>;
|
|
2097
|
-
/**
|
|
2098
|
-
* Public cheap cold-tier path scan (issue #2156 finding D corpus census).
|
|
2099
|
-
* Lists demoted-but-reachable memory paths under `cold/` without parsing
|
|
2100
|
-
* frontmatter, so the divergence watermark counts the cold tier too.
|
|
2101
|
-
*/
|
|
2102
|
-
collectColdMemoryPaths(options?: {
|
|
2103
|
-
propagateReadErrors?: boolean;
|
|
2104
|
-
}): Promise<string[]>;
|
|
2105
|
-
/**
|
|
2106
|
-
* Combined hot+cold corpus-mutation sentinel (issue #2156). Changes whenever
|
|
2107
|
-
* EITHER tier is written, so a divergence census can bracket its hot/cold scan
|
|
2108
|
-
* and detect a tier migration (write-cold-then-unlink-hot) racing the walkers,
|
|
2109
|
-
* then retry for a consistent snapshot instead of caching a transient
|
|
2110
|
-
* double-count or miss.
|
|
2111
|
-
*/
|
|
2112
|
-
getCorpusScanVersion(): string;
|
|
2113
|
-
private readParsedMemoriesFromPaths;
|
|
2114
|
-
private readWindowUpdatedMs;
|
|
2115
|
-
private filterWindowPathsByUpdatedAfter;
|
|
2116
|
-
private orderWindowPaths;
|
|
2117
|
-
private readWindowBoundedBatch;
|
|
2118
|
-
readMemoriesWindow(options?: WindowedMemoryReadOptions): Promise<WindowedMemoryReadResult>;
|
|
2119
|
-
private _readAllMemoriesFromDisk;
|
|
2120
|
-
readAllColdMemories(): Promise<MemoryFile[]>;
|
|
2121
|
-
/**
|
|
2122
|
-
* Read archived memory markdown files under archive/.
|
|
2123
|
-
* Used by long-term recall fallback when hot recall has no hits.
|
|
2124
|
-
*/
|
|
2125
|
-
readArchivedMemories(): Promise<MemoryFile[]>;
|
|
2126
|
-
readMemoryByPath(filePath: string): Promise<MemoryFile | null>;
|
|
2127
|
-
private resolveTierRootDir;
|
|
2128
|
-
private resolveMemoryDateDir;
|
|
2129
|
-
private isArtifactMemory;
|
|
2130
|
-
buildTierMemoryPath(memory: MemoryFile, tier: "hot" | "cold"): string;
|
|
2131
|
-
private writeMemoryFileAtomic;
|
|
2132
|
-
moveMemoryToPath(memory: MemoryFile, targetPath: string): Promise<boolean>;
|
|
2133
|
-
migrateMemoryToTier(memory: MemoryFile, targetTier: "hot" | "cold"): Promise<{
|
|
2134
|
-
changed: boolean;
|
|
2135
|
-
targetPath: string;
|
|
2136
|
-
}>;
|
|
2137
|
-
private get archiveDir();
|
|
2138
|
-
/**
|
|
2139
|
-
* Archive a memory by moving it from facts/ to archive/YYYY-MM-DD/.
|
|
2140
|
-
* Updates frontmatter with archived status before moving.
|
|
2141
|
-
* Returns the new file path on success, null on failure.
|
|
2142
|
-
*/
|
|
2143
|
-
archiveMemory(memory: MemoryFile, lifecycle?: MemoryLifecycleEventWriteOptions): Promise<string | null>;
|
|
2144
|
-
/** Alias of listEntityNames (kept for legacy callers; sorted). */
|
|
2145
|
-
readEntities(): Promise<string[]>;
|
|
2146
|
-
readEntity(name: string): Promise<string>;
|
|
2147
|
-
listEntityNames(): Promise<string[]>;
|
|
2148
|
-
/**
|
|
2149
|
-
* Find an existing entity that fuzzy-matches the proposed name.
|
|
2150
|
-
* Returns the existing entity filename (without .md) or null if no match.
|
|
2151
|
-
*
|
|
2152
|
-
* Matching priority:
|
|
2153
|
-
* 1. Exact normalized match (handled by normalizeEntityName already)
|
|
2154
|
-
* 2. Dehyphenated match: "jane-doe" vs "janedoe"
|
|
2155
|
-
* 3. Substring containment: "handle-janedoe" contains "janedoe"
|
|
2156
|
-
* 4. Levenshtein ≤ 2 on dehyphenated names
|
|
2157
|
-
*/
|
|
2158
|
-
findMatchingEntity(proposedName: string, type: string): Promise<string | null>;
|
|
2159
|
-
invalidateMemory(id: string, expectedSnapshot?: Pick<MemoryFile, "content" | "frontmatter"> & Partial<Pick<MemoryFile, "path">>, options?: {
|
|
2160
|
-
recordCommitProof?: boolean;
|
|
2161
|
-
}): Promise<boolean>;
|
|
2162
|
-
/** Commit the new body and return the CAS commit receipt — the sidecar
|
|
2163
|
-
* revision token, never `frontmatter.updated` (#2813 P1, #2807). */
|
|
2164
|
-
private updateMemoryFromCurrent;
|
|
2165
|
-
updateMemory(id: string, newContent: string, options?: {
|
|
2166
|
-
supersedes?: string;
|
|
2167
|
-
lineage?: string[];
|
|
2168
|
-
actor?: string;
|
|
2169
|
-
sourceConnector?: string;
|
|
2170
|
-
}): Promise<boolean>;
|
|
2171
|
-
/** CAS content update: false when the record moved past `expected`; on
|
|
2172
|
-
* success the commit receipt — the only identity that can attribute a standing body later (#2813 P1, #2807). */
|
|
2173
|
-
updateMemoryIfUnchanged(expected: MemoryFile, newContent: string, options?: {
|
|
2174
|
-
supersedes?: string;
|
|
2175
|
-
lineage?: string[];
|
|
2176
|
-
actor?: string;
|
|
2177
|
-
sourceConnector?: string;
|
|
2178
|
-
}): Promise<string | false>;
|
|
2179
|
-
/**
|
|
2180
|
-
* Update frontmatter fields without changing memory content. Returns false when the memory is not found.
|
|
2181
|
-
*/
|
|
2182
|
-
writeMemoryFrontmatter(memory: MemoryFile, patch: Partial<MemoryFrontmatter>, lifecycle?: MemoryLifecycleEventWriteOptions): Promise<boolean>;
|
|
2183
|
-
/**
|
|
2184
|
-
* Update frontmatter only when the persisted memory still matches the
|
|
2185
|
-
* expected semantic snapshot.
|
|
2186
|
-
*/
|
|
2187
|
-
writeMemoryFrontmatterIfUnchanged(expected: MemoryFile, patch: Partial<MemoryFrontmatter>, lifecycle?: MemoryLifecycleEventWriteOptions): Promise<boolean>;
|
|
2188
|
-
/**
|
|
2189
|
-
* Update frontmatter by memory ID.
|
|
2190
|
-
* Prefer writeMemoryFrontmatter(memory, patch) in batch loops to avoid full-corpus rescans.
|
|
2191
|
-
*/
|
|
2192
|
-
updateMemoryFrontmatter(id: string, patch: Partial<MemoryFrontmatter>): Promise<boolean>;
|
|
2193
|
-
/** Remove memories past their TTL expiresAt date */
|
|
2194
|
-
cleanExpiredTTL(): Promise<MemoryFile[]>;
|
|
2195
|
-
loadBuffer(): Promise<BufferState>;
|
|
2196
|
-
saveBuffer(state: BufferState): Promise<void>;
|
|
2197
|
-
loadMeta(): Promise<MetaState>;
|
|
2198
|
-
saveMeta(state: MetaState): Promise<void>;
|
|
2199
|
-
appendMemoryActionEvents(events: MemoryActionEvent[]): Promise<number>;
|
|
2200
|
-
appendContextTransformRecords(records: ContextTransformTelemetryRecord[]): Promise<number>;
|
|
2201
|
-
readContextTransformRecords(limit?: number): Promise<ContextTransformTelemetryRecord[]>;
|
|
2202
|
-
appendMemoryLifecycleEvents(events: MemoryLifecycleEvent[]): Promise<number>;
|
|
2203
|
-
/** Drain the durable pending lifecycle-append spill into the ledger (#2033);
|
|
2204
|
-
* fast no-op when nothing is pending. Returns true when rows were drained. */
|
|
2205
|
-
drainPendingMemoryLifecycleEvents(): Promise<boolean>;
|
|
2206
|
-
/** Offline-sync pre-snapshot drain (#2033): fold pending lifecycle spills into
|
|
2207
|
-
* the active ledger and report whether durable rows STILL remain in the
|
|
2208
|
-
* offline-sync-EXCLUDED pending queue. The caller aborts the snapshot when
|
|
2209
|
-
* `pendingDeferred` is true so append-only rows are never silently omitted. */
|
|
2210
|
-
drainPendingMemoryLifecycleEventsForSync(): Promise<DrainPendingLifecycleForSyncResult>;
|
|
2211
|
-
/** Drain pending lifecycle spills for any ledger inside this storage root.
|
|
2212
|
-
* The offline CLI uses this path-aware variant for per-namespace ledgers so
|
|
2213
|
-
* secure-store encryption and path-bound authentication remain consistent. */
|
|
2214
|
-
drainPendingMemoryLifecycleEventsForSyncAt(ledgerPath: string): Promise<DrainPendingLifecycleForSyncResult>;
|
|
2215
|
-
/** Rewrite the ledger through the secure writer (#1910); re-encrypts when unlocked, throws when locked.
|
|
2216
|
-
* `targetPath` re-encrypts under a decryptable backup path's own AAD;
|
|
2217
|
-
* Buffer content passes through verbatim (#2033). `forceEncrypt` preserves
|
|
2218
|
-
* encryption at rest for an already-encrypted ledger/backup even when the
|
|
2219
|
-
* `secureStoreEncryptOnWrite` policy is paused, so a compaction never
|
|
2220
|
-
* downgrades encrypted state to plaintext (#2033); it never bypasses the lock. */
|
|
2221
|
-
writeMemoryLifecycleLedgerContent(content: string | Buffer, targetPath?: string, forceEncrypt?: boolean): Promise<void>;
|
|
2222
|
-
appendBufferSurpriseEvents(events: BufferSurpriseEvent[]): Promise<number>;
|
|
2223
|
-
readBufferSurpriseEvents(options?: {
|
|
2224
|
-
limit?: number;
|
|
2225
|
-
}): Promise<BufferSurpriseEvent[]>;
|
|
2226
|
-
appendBehaviorSignals(events: BehaviorSignalEvent[]): Promise<number>;
|
|
2227
|
-
private appendBehaviorSignalsUnlocked;
|
|
2228
|
-
appendReextractJobs(events: ReextractJobRequest[]): Promise<number>;
|
|
2229
|
-
readReextractJobs(limit?: number): Promise<ReextractJobRequest[]>;
|
|
2230
|
-
readBehaviorSignals(limit?: number): Promise<BehaviorSignalEvent[]>;
|
|
2231
|
-
readMemoryActionEvents(limit?: number): Promise<MemoryActionEvent[]>;
|
|
2232
|
-
readMemoryActionEventRows(limit?: number): Promise<Array<{
|
|
2233
|
-
line: number;
|
|
2234
|
-
event: MemoryActionEvent;
|
|
2235
|
-
}>>;
|
|
2236
|
-
readAllMemoryLifecycleEvents(): Promise<MemoryLifecycleEvent[]>;
|
|
2237
|
-
/** Raw decrypted ledger bytes as a Buffer, never a string, so an oversized
|
|
2238
|
-
* ledger cannot throw on decode before recovery (#2033). */
|
|
2239
|
-
readMemoryLifecycleLedgerRawBufferForCompaction(): Promise<Buffer>;
|
|
2240
|
-
readAllMemoryLifecycleEventsForCompaction(): Promise<MemoryLifecycleEvent[]>;
|
|
2241
|
-
readMemoryLifecycleEvents(limit?: number): Promise<MemoryLifecycleEvent[]>;
|
|
2242
|
-
writeCompressionGuidelines(content: string): Promise<void>;
|
|
2243
|
-
readCompressionGuidelines(): Promise<string | null>;
|
|
2244
|
-
writeCompressionGuidelineDraft(content: string): Promise<void>;
|
|
2245
|
-
readCompressionGuidelineDraft(): Promise<string | null>;
|
|
2246
|
-
writeCompressionGuidelineOptimizerState(state: CompressionGuidelineOptimizerState): Promise<void>;
|
|
2247
|
-
writeCompressionGuidelineDraftState(state: CompressionGuidelineOptimizerState): Promise<void>;
|
|
2248
|
-
readCompressionGuidelineOptimizerState(): Promise<CompressionGuidelineOptimizerState | null>;
|
|
2249
|
-
readCompressionGuidelineDraftState(): Promise<CompressionGuidelineOptimizerState | null>;
|
|
2250
|
-
activateCompressionGuidelineDraft(options?: {
|
|
2251
|
-
expectedContentHash?: string;
|
|
2252
|
-
expectedGuidelineVersion?: number;
|
|
2253
|
-
}): Promise<boolean>;
|
|
2254
|
-
private readCompressionGuidelineStateFile;
|
|
2255
|
-
writeIdentityAnchor(content: string): Promise<void>;
|
|
2256
|
-
readIdentityAnchor(): Promise<string | null>;
|
|
2257
|
-
appendContinuityIncident(input: ContinuityIncidentOpenInput): Promise<ContinuityIncidentRecord>;
|
|
2258
|
-
readContinuityIncidents(limit?: number, state?: "open" | "closed" | "all"): Promise<ContinuityIncidentRecord[]>;
|
|
2259
|
-
closeContinuityIncident(id: string, closure: ContinuityIncidentCloseInput): Promise<ContinuityIncidentRecord | null>;
|
|
2260
|
-
writeIdentityAudit(period: "weekly" | "monthly", key: string, content: string): Promise<string>;
|
|
2261
|
-
readIdentityAudit(period: "weekly" | "monthly", key: string): Promise<string | null>;
|
|
2262
|
-
writeIdentityImprovementLoops(content: string): Promise<void>;
|
|
2263
|
-
readIdentityImprovementLoops(): Promise<string | null>;
|
|
2264
|
-
readIdentityImprovementLoopRegister(): Promise<ContinuityImprovementLoop[]>;
|
|
2265
|
-
upsertIdentityImprovementLoop(input: ContinuityLoopUpsertInput): Promise<ContinuityImprovementLoop>;
|
|
2266
|
-
reviewIdentityImprovementLoop(id: string, input: ContinuityLoopReviewInput): Promise<ContinuityImprovementLoop | null>;
|
|
2267
|
-
private generateId;
|
|
2268
|
-
writeQuestion(question: string, context: string, priority: number): Promise<string>;
|
|
2269
|
-
readQuestions(opts?: {
|
|
2270
|
-
unresolvedOnly?: boolean;
|
|
2271
|
-
}): Promise<Array<{
|
|
2272
|
-
id: string;
|
|
2273
|
-
question: string;
|
|
2274
|
-
context: string;
|
|
2275
|
-
priority: number;
|
|
2276
|
-
resolved: boolean;
|
|
2277
|
-
created: string;
|
|
2278
|
-
filePath: string;
|
|
2279
|
-
}>>;
|
|
2280
|
-
/** Invalidate the questions cache (call after writing a question). */
|
|
2281
|
-
invalidateQuestionsCache(): void;
|
|
2282
|
-
private parseQuestionFile;
|
|
2283
|
-
resolveQuestion(id: string): Promise<boolean>;
|
|
2284
|
-
readIdentity(workspaceDir: string, namespace?: string): Promise<string>;
|
|
2285
|
-
writeIdentity(workspaceDir: string, content: string, namespace?: string): Promise<void>;
|
|
2286
|
-
/** Max size for IDENTITY.md before we stop appending reflections (15KB leaves room under 20KB gateway limit) */
|
|
2287
|
-
private static readonly IDENTITY_MAX_BYTES;
|
|
2288
|
-
/** Minimum interval between reflections (1 hour) */
|
|
2289
|
-
private static readonly REFLECTION_COOLDOWN_MS;
|
|
2290
|
-
appendToIdentity(workspaceDir: string, reflection: string, opts?: {
|
|
2291
|
-
hygiene?: FileHygieneConfig;
|
|
2292
|
-
namespace?: string;
|
|
2293
|
-
}): Promise<void>;
|
|
2294
|
-
readIdentityReflections(): Promise<string | null>;
|
|
2295
|
-
writeIdentityReflections(content: string): Promise<void>;
|
|
2296
|
-
appendIdentityReflection(reflection: string): Promise<void>;
|
|
2297
|
-
addEntityRelationship(name: string, rel: EntityRelationship): Promise<void>;
|
|
2298
|
-
addEntityActivity(name: string, entry: EntityActivityEntry, maxEntries: number): Promise<void>;
|
|
2299
|
-
addEntityAlias(name: string, alias: string): Promise<void>;
|
|
2300
|
-
updateEntitySynthesis(name: string, synthesis: string, options?: {
|
|
2301
|
-
entityUpdatedAt?: string;
|
|
2302
|
-
synthesisStructuredFactCount?: number;
|
|
2303
|
-
synthesisStructuredFactDigest?: string;
|
|
2304
|
-
synthesisTimelineCount?: number;
|
|
2305
|
-
updatedAt?: string;
|
|
2306
|
-
incrementVersion?: boolean;
|
|
2307
|
-
}): Promise<void>;
|
|
2308
|
-
/** Backward-compatible alias for legacy callers/tests. */
|
|
2309
|
-
updateEntitySummary(name: string, summary: string): Promise<void>;
|
|
2310
|
-
readEntitySynthesisQueue(): Promise<string[]>;
|
|
2311
|
-
refreshEntitySynthesisQueue(): Promise<string[]>;
|
|
2312
|
-
removeEntitySynthesisQueueEntries(entityNames: string[]): Promise<void>;
|
|
2313
|
-
migrateEntityFilesToCompiledTruthTimeline(): Promise<{
|
|
2314
|
-
total: number;
|
|
2315
|
-
migrated: number;
|
|
2316
|
-
}>;
|
|
2317
|
-
readAllEntityFiles(options?: CorpusReadOptions): Promise<EntityFile[]>;
|
|
2318
|
-
/**
|
|
2319
|
-
* Score an entity based on recency, frequency, activity, type priority,
|
|
2320
|
-
* and relationship density.
|
|
2321
|
-
*
|
|
2322
|
-
* score = recency*0.40 + frequency*0.25 + activity*0.15 + typePriority*0.10 + relationshipDensity*0.10
|
|
2323
|
-
*/
|
|
2324
|
-
static scoreEntity(entity: EntityFile, now: Date): number;
|
|
2325
|
-
buildKnowledgeIndex(config: PluginConfig, overrides?: {
|
|
2326
|
-
maxEntities?: number;
|
|
2327
|
-
maxChars?: number;
|
|
2328
|
-
}): Promise<{
|
|
2329
|
-
result: string;
|
|
2330
|
-
cached: boolean;
|
|
2331
|
-
}>;
|
|
2332
|
-
/** Invalidate the Knowledge Index cache (call after entity mutations). */
|
|
2333
|
-
invalidateKnowledgeIndexCache(): void;
|
|
2334
|
-
/** Max lines for profile.md before LLM consolidation triggers */
|
|
2335
|
-
private static readonly PROFILE_MAX_LINES;
|
|
2336
|
-
mergeFragmentedEntities(): Promise<number>;
|
|
2337
|
-
cleanExpiredCommitments(decayDays: number): Promise<MemoryFile[]>;
|
|
2338
|
-
/**
|
|
2339
|
-
* Flush batched access tracking updates to disk.
|
|
2340
|
-
* Called during consolidation or when buffer exceeds max size.
|
|
2341
|
-
*/
|
|
2342
|
-
flushAccessTracking(entries: AccessTrackingEntry[]): Promise<number>;
|
|
2343
|
-
getMemoryById(id: string): Promise<MemoryFile | null>;
|
|
2344
|
-
getMemoryByIdIncludingArchived(id: string): Promise<MemoryFile | null>;
|
|
2345
|
-
/** Resolve existing active memory IDs through a lightweight directory scan. */
|
|
2346
|
-
findExistingMemoryPaths(ids: string[], preferredPaths?: Map<string, string[]>): Promise<Map<string, string[]>>;
|
|
2347
|
-
/**
|
|
2348
|
-
* Check which of the given memory IDs actually exist on disk.
|
|
2349
|
-
*/
|
|
2350
|
-
filterExistingMemoryIds(ids: string[]): Promise<Set<string>>;
|
|
2351
|
-
getProjectedMemoryState(id: string): Promise<MemoryProjectionCurrentState | null>;
|
|
2352
|
-
browseProjectedMemories(options: ProjectedMemoryBrowseOptions): Promise<ProjectedMemoryBrowsePage | null>;
|
|
2353
|
-
getProjectedGovernanceRecord(): Promise<ReturnType<typeof readProjectedGovernanceRecord>>;
|
|
2354
|
-
private toProjectedCurrentState;
|
|
2355
|
-
getMemoryTimeline(memoryId: string, limit?: number): Promise<MemoryLifecycleEvent[]>;
|
|
2356
|
-
/**
|
|
2357
|
-
* Write a memory chunk with parent reference.
|
|
2358
|
-
* Chunk IDs follow format: {parentId}-chunk-{index}
|
|
2359
|
-
*/
|
|
2360
|
-
writeChunk(parentId: string, chunkIndex: number, chunkTotal: number, category: MemoryCategory, content: string, options?: {
|
|
2361
|
-
confidence?: number;
|
|
2362
|
-
tags?: string[];
|
|
2363
|
-
entityRef?: string;
|
|
2364
|
-
source?: string;
|
|
2365
|
-
importance?: ImportanceScore;
|
|
2366
|
-
intentGoal?: string;
|
|
2367
|
-
intentActionType?: string;
|
|
2368
|
-
intentEntityTypes?: string[];
|
|
2369
|
-
memoryKind?: MemoryFrontmatter["memoryKind"];
|
|
2370
|
-
validAt?: string;
|
|
2371
|
-
/** Lifecycle status (issue #1576): pending_review chunks stay out of active recall. */
|
|
2372
|
-
status?: MemoryStatus;
|
|
2373
|
-
/**
|
|
2374
|
-
* Tombstone block provenance (issue #1645): when the parent fact was
|
|
2375
|
-
* tombstone-blocked, propagate the tombstone id onto each chunk so an
|
|
2376
|
-
* independently-surfaced chunk (memory_get/x-ray/doctor) reveals the block
|
|
2377
|
-
* and the chunk stays pending_review, never an active resurrection.
|
|
2378
|
-
*/
|
|
2379
|
-
blockedBy?: string;
|
|
2380
|
-
/** Faithfulness gate verdict (issue #1576), propagated from the parent fact. */
|
|
2381
|
-
faithfulness?: FaithfulnessFrontmatter;
|
|
2382
|
-
/** Claim-level provenance spans (issue #1575 PR 2), propagated from the parent fact so a chunk surfaced independently (memory_get/x-ray) preserves them (chatgpt-codex-connector thread Ocvmo). */
|
|
2383
|
-
sources?: ProvenanceSource[];
|
|
2384
|
-
/** Coarse provenance tag (issue #1575 PR 2), propagated from the parent. */
|
|
2385
|
-
provenance?: "verified" | "unverified" | "none";
|
|
2386
|
-
invalidAt?: string;
|
|
2387
|
-
observedAt?: string;
|
|
2388
|
-
eventTimeSource?: "extracted" | "assumed";
|
|
2389
|
-
sourceConnector?: string;
|
|
2390
|
-
origin?: string;
|
|
2391
|
-
toolScoped?: true;
|
|
2392
|
-
}): Promise<string>;
|
|
2393
|
-
/**
|
|
2394
|
-
* Get all chunks for a given parent memory ID.
|
|
2395
|
-
* Returns chunks sorted by chunkIndex.
|
|
2396
|
-
*/
|
|
2397
|
-
getChunksForParent(parentId: string): Promise<MemoryFile[]>;
|
|
2398
|
-
supersedeMemory(oldMemoryId: string, newMemoryId: string, reason: string, supersessionMetadata?: Pick<MemoryFrontmatter, "supersessionCause" | "invalidatedBy">, options?: {
|
|
2399
|
-
actor?: string;
|
|
2400
|
-
requireActive?: boolean;
|
|
2401
|
-
acceptExactReplay?: boolean;
|
|
2402
|
-
expectedSnapshot?: Pick<MemoryFile, "content" | "frontmatter"> & Partial<Pick<MemoryFile, "path">>;
|
|
2403
|
-
audit?: SupersessionAuditOptions;
|
|
2404
|
-
}): Promise<boolean>;
|
|
2405
|
-
private get summariesDir();
|
|
2406
|
-
writeSummary(summary: MemorySummary): Promise<void>;
|
|
2407
|
-
readSummaries(): Promise<MemorySummary[]>;
|
|
2408
|
-
archiveMemories(memoryIds: string[], summaryId: string): Promise<number>;
|
|
2409
|
-
saveTopics(topics: TopicScore[]): Promise<void>;
|
|
2410
|
-
loadTopics(): Promise<{
|
|
2411
|
-
topics: TopicScore[];
|
|
2412
|
-
updatedAt: string | null;
|
|
2413
|
-
}>;
|
|
2414
|
-
addLinksToMemory(memoryId: string, links: MemoryLink[], lifecycle?: MemoryLifecycleEventWriteOptions): Promise<boolean>;
|
|
2415
|
-
private summarizeLifecycleState;
|
|
2416
|
-
private frontmatterPatchEventType;
|
|
2417
|
-
private appendGeneratedMemoryLifecycleEvent;
|
|
2418
|
-
private appendGeneratedMemoryLifecycleEventFailOpen;
|
|
2419
|
-
}
|
|
2420
|
-
|
|
2421
|
-
export { countEntityStructuredFacts as A, fingerprintEntityStructuredFacts as B, ContentHashIndex as C, isEntitySynthesisStale as D, isValidBufferSurpriseEvent as E, FusionArtifactStore as F, normalizeFrontmatterForPath as G, normalizeStructuredSectionFacts as H, normalizeStructuredSectionFactsWithOrigins as I, parseFrontmatter as J, parseFrontmatterStringValue as K, type MemoryWriteResult as M, type ReextractJobRequest as R, StorageManager as S, type WriteMemoryOptions as W, MeetingRecordStore as a, type MeetingRecordSummary as b, FUSION_KIND as c, MEETINGS_DIR_NAME as d, MEETING_FORMAT_VERSION as e, MEETING_KIND as f, type MeetingRecordBase as g, type MeetingRecordFileIo as h, type MeetingSaveResult as i, composeFusionDayMeta as j, composeMeetingRecord as k, hashFusionBody as l, meetingIdDate as m, parseFusionDay as n, parseMeetingRecordSummary as o, parseEntityFile as p, serializeFusionDay as q, serializeMeetingRecord as r, serializeEntityFile as s, type ContentHashIndexLockOptions as t, FactHashIndexNotAuthoritativeError as u, type MemoryLifecycleEventWriteOptions as v, type SealedWriteExtras as w, buildEntitySchemaCacheKey as x, compareEntityTimestamps as y, compileEntityFacts as z };
|