@remnic/core 9.69.56 → 9.69.58
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 +203 -221
- 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 +205 -207
- 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 +21 -48
- 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 +114 -116
- 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-CUNM5RfA.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-CCc34xV7.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-UWVcqMcb.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
|
@@ -0,0 +1,1686 @@
|
|
|
1
|
+
import {
|
|
2
|
+
planNamespaceMaintenance,
|
|
3
|
+
readNamespaceMaintenanceLastRanStatuses,
|
|
4
|
+
readNamespaceMaintenanceStatuses,
|
|
5
|
+
runNamespaceMaintenancePlan
|
|
6
|
+
} from "./chunk-AULKCNZW.js";
|
|
7
|
+
import {
|
|
8
|
+
analyzeSessionIntegrity,
|
|
9
|
+
applySessionRepair,
|
|
10
|
+
planSessionRepair
|
|
11
|
+
} from "./chunk-KFY3SGN7.js";
|
|
12
|
+
import {
|
|
13
|
+
resolvePluginEntry
|
|
14
|
+
} from "./chunk-CMTINOFS.js";
|
|
15
|
+
import {
|
|
16
|
+
summarizeCorpusAndReplica
|
|
17
|
+
} from "./chunk-2JQZSQXI.js";
|
|
18
|
+
import {
|
|
19
|
+
readJudgeVerdictStats
|
|
20
|
+
} from "./chunk-OZKOPQCM.js";
|
|
21
|
+
import {
|
|
22
|
+
createEvalBaselineSnapshot,
|
|
23
|
+
getEvalHarnessStatus,
|
|
24
|
+
runEvalBaselineDeltaReport,
|
|
25
|
+
runEvalBenchmarkCiGate,
|
|
26
|
+
validateEvalBenchmarkPack
|
|
27
|
+
} from "./chunk-4IHBN6WU.js";
|
|
28
|
+
import {
|
|
29
|
+
resolveCuratedIncludeFilesStatePath,
|
|
30
|
+
resolveNativeKnowledgeStatePath,
|
|
31
|
+
resolveOpenClawWorkspaceStatePath
|
|
32
|
+
} from "./chunk-2DQ2XREU.js";
|
|
33
|
+
import {
|
|
34
|
+
runConsolidationProvenanceCheck
|
|
35
|
+
} from "./chunk-2SGLMP2E.js";
|
|
36
|
+
import {
|
|
37
|
+
reportBufferSurpriseDistribution
|
|
38
|
+
} from "./chunk-YBPYIAA5.js";
|
|
39
|
+
import {
|
|
40
|
+
parseConfig
|
|
41
|
+
} from "./chunk-M5IJP3YW.js";
|
|
42
|
+
import {
|
|
43
|
+
readAggregateExtractionWatermark
|
|
44
|
+
} from "./chunk-FSXD6Y4H.js";
|
|
45
|
+
import {
|
|
46
|
+
listMemoryGovernanceRuns,
|
|
47
|
+
readMemoryGovernanceRunArtifact
|
|
48
|
+
} from "./chunk-ZIEZJMFW.js";
|
|
49
|
+
import {
|
|
50
|
+
listNamespaces
|
|
51
|
+
} from "./chunk-S3JPD4N7.js";
|
|
52
|
+
import {
|
|
53
|
+
analyzeGraphHealth
|
|
54
|
+
} from "./chunk-GWK7FEUL.js";
|
|
55
|
+
import {
|
|
56
|
+
summarizeExtractionLiveness
|
|
57
|
+
} from "./chunk-3SG4FGDV.js";
|
|
58
|
+
import {
|
|
59
|
+
StorageManager
|
|
60
|
+
} from "./chunk-S2OBXHMN.js";
|
|
61
|
+
import {
|
|
62
|
+
lintWorkspaceFiles
|
|
63
|
+
} from "./chunk-DM2T26WE.js";
|
|
64
|
+
import {
|
|
65
|
+
probeProjectionHealth
|
|
66
|
+
} from "./chunk-AL3UYZ5N.js";
|
|
67
|
+
import {
|
|
68
|
+
resolveAccessSetupCapabilities,
|
|
69
|
+
resolveCapabilities,
|
|
70
|
+
resolveConversationContextCapabilities,
|
|
71
|
+
resolveEvalCapabilities,
|
|
72
|
+
resolveGraphConstructionCapabilities,
|
|
73
|
+
resolveIndexingCapabilities,
|
|
74
|
+
resolveNamespaceCapabilities,
|
|
75
|
+
resolvePresentationCapabilities,
|
|
76
|
+
resolveQmdCapabilities
|
|
77
|
+
} from "./chunk-JUOZ62Y7.js";
|
|
78
|
+
import {
|
|
79
|
+
readEnvVar,
|
|
80
|
+
resolveHomeDir
|
|
81
|
+
} from "./chunk-P2QRMMVQ.js";
|
|
82
|
+
|
|
83
|
+
// src/operator-toolkit.ts
|
|
84
|
+
import path from "path";
|
|
85
|
+
import { constants as fsConstants } from "fs";
|
|
86
|
+
import { access, mkdir, readFile, readdir, stat, unlink, writeFile } from "fs/promises";
|
|
87
|
+
|
|
88
|
+
// src/maintenance/namespace-maintenance-fanout.ts
|
|
89
|
+
var NAMESPACE_MAINTENANCE_JOBS = [
|
|
90
|
+
"qmd",
|
|
91
|
+
"pattern-reinforcement",
|
|
92
|
+
"contradiction-scan",
|
|
93
|
+
"semantic-consolidation",
|
|
94
|
+
"governance",
|
|
95
|
+
"lifecycle",
|
|
96
|
+
"graph-decay",
|
|
97
|
+
"fact-archival",
|
|
98
|
+
"tier-migration"
|
|
99
|
+
];
|
|
100
|
+
async function runNamespaceMaintenanceFanout(options) {
|
|
101
|
+
if (options.enabled === false) {
|
|
102
|
+
return {
|
|
103
|
+
jobName: options.jobName,
|
|
104
|
+
generatedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
105
|
+
ran: 0,
|
|
106
|
+
skipped: 0,
|
|
107
|
+
failed: 0,
|
|
108
|
+
statuses: []
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
const plan = await planNamespaceMaintenance(options.config, {
|
|
112
|
+
jobName: options.jobName,
|
|
113
|
+
catalog: options.catalog
|
|
114
|
+
});
|
|
115
|
+
return runNamespaceMaintenancePlan(
|
|
116
|
+
options.config,
|
|
117
|
+
plan,
|
|
118
|
+
async (candidate) => {
|
|
119
|
+
return options.runner({
|
|
120
|
+
config: options.config,
|
|
121
|
+
candidate,
|
|
122
|
+
resolveStorage: options.resolveStorage
|
|
123
|
+
});
|
|
124
|
+
},
|
|
125
|
+
options.catalog
|
|
126
|
+
);
|
|
127
|
+
}
|
|
128
|
+
async function summarizeNamespaceMaintenanceHealth(config) {
|
|
129
|
+
const generatedAt = (/* @__PURE__ */ new Date()).toISOString();
|
|
130
|
+
const statuses = await readNamespaceMaintenanceStatuses(config);
|
|
131
|
+
const lastRanStatuses = await readNamespaceMaintenanceLastRanStatuses(config);
|
|
132
|
+
const lastRanByJobNs = /* @__PURE__ */ new Map();
|
|
133
|
+
for (const lr of lastRanStatuses) {
|
|
134
|
+
lastRanByJobNs.set(`${lr.jobName}\0${lr.namespace}`, lr);
|
|
135
|
+
}
|
|
136
|
+
const byJob = /* @__PURE__ */ new Map();
|
|
137
|
+
for (const status of statuses) {
|
|
138
|
+
const bucket = byJob.get(status.jobName);
|
|
139
|
+
if (bucket) {
|
|
140
|
+
bucket.push(status);
|
|
141
|
+
} else {
|
|
142
|
+
byJob.set(status.jobName, [status]);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
const knownJobs = new Set(NAMESPACE_MAINTENANCE_JOBS);
|
|
146
|
+
for (const jobName of byJob.keys()) {
|
|
147
|
+
knownJobs.add(jobName);
|
|
148
|
+
}
|
|
149
|
+
const jobs = [];
|
|
150
|
+
let totalRan = 0;
|
|
151
|
+
let totalSkipped = 0;
|
|
152
|
+
let totalFailed = 0;
|
|
153
|
+
for (const jobName of [...knownJobs].sort()) {
|
|
154
|
+
const jobStatuses = byJob.get(jobName) ?? [];
|
|
155
|
+
const ran = jobStatuses.filter((s) => s.state === "ran").length;
|
|
156
|
+
const skipped = jobStatuses.filter((s) => s.state === "skipped").length;
|
|
157
|
+
const failed = jobStatuses.filter((s) => s.state === "failed").length;
|
|
158
|
+
const candidates = [];
|
|
159
|
+
for (const st of jobStatuses) {
|
|
160
|
+
if (typeof st.completedAt === "string") candidates.push(st.completedAt);
|
|
161
|
+
const lr = lastRanByJobNs.get(`${jobName}\0${st.namespace}`);
|
|
162
|
+
if (lr && typeof lr.completedAt === "string") candidates.push(lr.completedAt);
|
|
163
|
+
}
|
|
164
|
+
const lastRunAt = candidates.sort().at(-1) ?? null;
|
|
165
|
+
totalRan += ran;
|
|
166
|
+
totalSkipped += skipped;
|
|
167
|
+
totalFailed += failed;
|
|
168
|
+
jobs.push({
|
|
169
|
+
jobName,
|
|
170
|
+
ran,
|
|
171
|
+
skipped,
|
|
172
|
+
failed,
|
|
173
|
+
lastRunAt,
|
|
174
|
+
namespaces: jobStatuses
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
return {
|
|
178
|
+
generatedAt,
|
|
179
|
+
fanoutEnabled: resolveConversationContextCapabilities(config).maintenanceNamespaceFanout !== false,
|
|
180
|
+
namespacesEnabled: resolveNamespaceCapabilities(config).namespaces,
|
|
181
|
+
maxNamespacesPerCycle: config.maintenanceMaxNamespacesPerCycle,
|
|
182
|
+
jobs,
|
|
183
|
+
totalRan,
|
|
184
|
+
totalSkipped,
|
|
185
|
+
totalFailed
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
function formatNamespaceMaintenanceHealthText(summary) {
|
|
189
|
+
const lines = [
|
|
190
|
+
"=== Namespace Maintenance ===",
|
|
191
|
+
"",
|
|
192
|
+
` fanout: ${summary.fanoutEnabled ? "enabled" : "disabled"}`,
|
|
193
|
+
` namespaces: ${summary.namespacesEnabled ? "enabled" : "disabled"}`,
|
|
194
|
+
` max/cycle: ${summary.maxNamespacesPerCycle}`,
|
|
195
|
+
` total ran: ${summary.totalRan}`,
|
|
196
|
+
` total skipped: ${summary.totalSkipped}`,
|
|
197
|
+
` total failed: ${summary.totalFailed}`,
|
|
198
|
+
""
|
|
199
|
+
];
|
|
200
|
+
if (summary.totalRan === 0 && summary.totalSkipped === 0 && summary.totalFailed === 0) {
|
|
201
|
+
lines.push(" (no maintenance status recorded yet)");
|
|
202
|
+
return lines.join("\n");
|
|
203
|
+
}
|
|
204
|
+
lines.push(" Per-job breakdown:");
|
|
205
|
+
for (const job of summary.jobs) {
|
|
206
|
+
const parts = [
|
|
207
|
+
`ran=${job.ran}`,
|
|
208
|
+
`skipped=${job.skipped}`,
|
|
209
|
+
`failed=${job.failed}`
|
|
210
|
+
];
|
|
211
|
+
if (job.lastRunAt) {
|
|
212
|
+
parts.push(`last=${job.lastRunAt}`);
|
|
213
|
+
}
|
|
214
|
+
lines.push(` ${job.jobName}: ${parts.join(", ")}`);
|
|
215
|
+
const failedNs = job.namespaces.filter((n) => n.state === "failed");
|
|
216
|
+
for (const ns of failedNs) {
|
|
217
|
+
const detail = ns.error ? `: ${ns.error}` : "";
|
|
218
|
+
lines.push(` ! ${ns.namespace} failed (reason=${ns.reason ?? "unknown"})${detail}`);
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
return lines.join("\n");
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
// src/operator-toolkit.ts
|
|
225
|
+
var OPENCLAW_REMNIC_PLUGIN_IDS = ["openclaw-remnic", "openclaw-engram"];
|
|
226
|
+
function getOpenClawPluginEntries(raw) {
|
|
227
|
+
const plugins = raw["plugins"] && typeof raw["plugins"] === "object" && !Array.isArray(raw["plugins"]) ? raw["plugins"] : void 0;
|
|
228
|
+
const entries = plugins && plugins["entries"] && typeof plugins["entries"] === "object" && !Array.isArray(plugins["entries"]) ? plugins["entries"] : void 0;
|
|
229
|
+
return entries;
|
|
230
|
+
}
|
|
231
|
+
function getOpenClawMemorySlotId(raw) {
|
|
232
|
+
const plugins = raw["plugins"] && typeof raw["plugins"] === "object" && !Array.isArray(raw["plugins"]) ? raw["plugins"] : void 0;
|
|
233
|
+
const slots = plugins && plugins["slots"] && typeof plugins["slots"] === "object" && !Array.isArray(plugins["slots"]) ? plugins["slots"] : void 0;
|
|
234
|
+
const slotId = slots?.["memory"];
|
|
235
|
+
return typeof slotId === "string" ? slotId : void 0;
|
|
236
|
+
}
|
|
237
|
+
function resolveOpenClawRemnicPluginEntry(raw) {
|
|
238
|
+
return resolvePluginEntry(raw, {
|
|
239
|
+
candidateIds: OPENCLAW_REMNIC_PLUGIN_IDS,
|
|
240
|
+
getEntries: getOpenClawPluginEntries,
|
|
241
|
+
getSlotId: getOpenClawMemorySlotId
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
function isMissingPathError(error) {
|
|
245
|
+
return typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT";
|
|
246
|
+
}
|
|
247
|
+
function formatUnknownError(error) {
|
|
248
|
+
return error instanceof Error ? error.message : String(error);
|
|
249
|
+
}
|
|
250
|
+
function resolveConfigPath(explicitPath) {
|
|
251
|
+
if (explicitPath && explicitPath.trim().length > 0) return explicitPath.trim();
|
|
252
|
+
const configured = readEnvVar("OPENCLAW_CONFIG_PATH") || readEnvVar("OPENCLAW_ENGRAM_CONFIG_PATH");
|
|
253
|
+
if (configured && configured.trim().length > 0) return configured.trim();
|
|
254
|
+
return path.join(resolveHomeDir(), ".openclaw", "openclaw.json");
|
|
255
|
+
}
|
|
256
|
+
async function loadCliPluginConfig(configPath) {
|
|
257
|
+
const resolvedPath = resolveConfigPath(configPath);
|
|
258
|
+
try {
|
|
259
|
+
const raw = JSON.parse(await readFile(resolvedPath, "utf-8"));
|
|
260
|
+
const entry = resolveOpenClawRemnicPluginEntry(raw);
|
|
261
|
+
const parsedConfig = parseConfig(
|
|
262
|
+
entry && typeof entry === "object" ? entry["config"] ?? {} : {}
|
|
263
|
+
);
|
|
264
|
+
return {
|
|
265
|
+
found: true,
|
|
266
|
+
path: resolvedPath,
|
|
267
|
+
parsed: true,
|
|
268
|
+
memoryDir: parsedConfig.memoryDir,
|
|
269
|
+
workspaceDir: parsedConfig.workspaceDir
|
|
270
|
+
};
|
|
271
|
+
} catch (error) {
|
|
272
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
273
|
+
return {
|
|
274
|
+
found: !/ENOENT/i.test(message),
|
|
275
|
+
path: resolvedPath,
|
|
276
|
+
parsed: false,
|
|
277
|
+
error: message
|
|
278
|
+
};
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
async function isWritable(targetPath) {
|
|
282
|
+
try {
|
|
283
|
+
await access(targetPath, fsConstants.W_OK);
|
|
284
|
+
return true;
|
|
285
|
+
} catch {
|
|
286
|
+
return false;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
async function pathExists(targetPath) {
|
|
290
|
+
try {
|
|
291
|
+
await access(targetPath, fsConstants.F_OK);
|
|
292
|
+
return true;
|
|
293
|
+
} catch {
|
|
294
|
+
return false;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
function formatConfigValue(value) {
|
|
298
|
+
if (value === void 0 || value === null) return "(unset)";
|
|
299
|
+
if (typeof value === "string") return value.length > 0 ? value : "(unset)";
|
|
300
|
+
if (typeof value === "number" || typeof value === "boolean") return String(value);
|
|
301
|
+
return JSON.stringify(value);
|
|
302
|
+
}
|
|
303
|
+
async function gatherDirectoryStatus(paths) {
|
|
304
|
+
return Promise.all(paths.map(async (targetPath) => {
|
|
305
|
+
try {
|
|
306
|
+
await access(targetPath, fsConstants.F_OK);
|
|
307
|
+
return {
|
|
308
|
+
path: targetPath,
|
|
309
|
+
exists: true,
|
|
310
|
+
writable: await isWritable(targetPath)
|
|
311
|
+
};
|
|
312
|
+
} catch {
|
|
313
|
+
return {
|
|
314
|
+
path: targetPath,
|
|
315
|
+
exists: false,
|
|
316
|
+
writable: false
|
|
317
|
+
};
|
|
318
|
+
}
|
|
319
|
+
}));
|
|
320
|
+
}
|
|
321
|
+
function getSetupPaths(config) {
|
|
322
|
+
return [
|
|
323
|
+
config.memoryDir,
|
|
324
|
+
config.workspaceDir,
|
|
325
|
+
path.join(config.memoryDir, "facts"),
|
|
326
|
+
path.join(config.memoryDir, "entities"),
|
|
327
|
+
path.join(config.memoryDir, "state"),
|
|
328
|
+
path.join(config.memoryDir, "questions"),
|
|
329
|
+
path.join(config.memoryDir, "artifacts"),
|
|
330
|
+
path.join(config.memoryDir, "config")
|
|
331
|
+
];
|
|
332
|
+
}
|
|
333
|
+
async function readJsonIfExists(filePath) {
|
|
334
|
+
try {
|
|
335
|
+
return JSON.parse(await readFile(filePath, "utf-8"));
|
|
336
|
+
} catch {
|
|
337
|
+
return null;
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
async function summarizeNativeKnowledgeStatus(config) {
|
|
341
|
+
const nativeKnowledge = config.nativeKnowledge;
|
|
342
|
+
const nativeKnowledgeStateDir = nativeKnowledge?.stateDir ?? "state/native-knowledge";
|
|
343
|
+
const curatedStatePath = nativeKnowledge ? resolveCuratedIncludeFilesStatePath(config.memoryDir, nativeKnowledge) : path.join(config.memoryDir, nativeKnowledgeStateDir, "curated-include-sync.json");
|
|
344
|
+
const obsidianStatePath = nativeKnowledge ? resolveNativeKnowledgeStatePath(config.memoryDir, nativeKnowledge) : path.join(config.memoryDir, nativeKnowledgeStateDir, "obsidian-sync.json");
|
|
345
|
+
const openclawStatePath = nativeKnowledge ? resolveOpenClawWorkspaceStatePath(config.memoryDir, nativeKnowledge) : path.join(config.memoryDir, nativeKnowledgeStateDir, "openclaw-workspace-sync.json");
|
|
346
|
+
const [curatedRaw, obsidianRaw, openclawRaw] = await Promise.all([
|
|
347
|
+
readJsonIfExists(curatedStatePath),
|
|
348
|
+
readJsonIfExists(obsidianStatePath),
|
|
349
|
+
readJsonIfExists(openclawStatePath)
|
|
350
|
+
]);
|
|
351
|
+
const curatedFiles = curatedRaw && typeof curatedRaw === "object" && curatedRaw !== null && "files" in curatedRaw && typeof curatedRaw.files === "object" && curatedRaw.files !== null ? curatedRaw : null;
|
|
352
|
+
let curatedActiveChunkCount = 0;
|
|
353
|
+
let curatedDeletedFileCount = 0;
|
|
354
|
+
for (const file of Object.values(curatedFiles?.files ?? {})) {
|
|
355
|
+
if (file.deleted) {
|
|
356
|
+
curatedDeletedFileCount += 1;
|
|
357
|
+
continue;
|
|
358
|
+
}
|
|
359
|
+
curatedActiveChunkCount += Array.isArray(file.chunks) ? file.chunks.length : 0;
|
|
360
|
+
}
|
|
361
|
+
const obsidianVaults = obsidianRaw && typeof obsidianRaw === "object" && obsidianRaw !== null && "vaults" in obsidianRaw && typeof obsidianRaw.vaults === "object" && obsidianRaw.vaults !== null ? obsidianRaw : null;
|
|
362
|
+
let obsidianActiveChunkCount = 0;
|
|
363
|
+
let obsidianDeletedNoteCount = 0;
|
|
364
|
+
for (const vault of Object.values(obsidianVaults?.vaults ?? {})) {
|
|
365
|
+
for (const note of Object.values(vault.notes ?? {})) {
|
|
366
|
+
if (note.deleted) {
|
|
367
|
+
obsidianDeletedNoteCount += 1;
|
|
368
|
+
continue;
|
|
369
|
+
}
|
|
370
|
+
obsidianActiveChunkCount += Array.isArray(note.chunks) ? note.chunks.length : 0;
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
const openclawFiles = openclawRaw && typeof openclawRaw === "object" && openclawRaw !== null && "files" in openclawRaw && typeof openclawRaw.files === "object" && openclawRaw.files !== null ? openclawRaw : null;
|
|
374
|
+
let openclawActiveChunkCount = 0;
|
|
375
|
+
let openclawDeletedFileCount = 0;
|
|
376
|
+
for (const file of Object.values(openclawFiles?.files ?? {})) {
|
|
377
|
+
if (file.deleted) {
|
|
378
|
+
openclawDeletedFileCount += 1;
|
|
379
|
+
continue;
|
|
380
|
+
}
|
|
381
|
+
openclawActiveChunkCount += Array.isArray(file.chunks) ? file.chunks.length : 0;
|
|
382
|
+
}
|
|
383
|
+
return {
|
|
384
|
+
enabled: nativeKnowledge?.enabled === true,
|
|
385
|
+
includeFiles: nativeKnowledge?.includeFiles ?? [],
|
|
386
|
+
curatedIncludeSync: {
|
|
387
|
+
statePath: curatedStatePath,
|
|
388
|
+
exists: curatedFiles !== null,
|
|
389
|
+
updatedAt: typeof curatedFiles?.updatedAt === "string" ? curatedFiles.updatedAt : null,
|
|
390
|
+
fileCount: Object.keys(curatedFiles?.files ?? {}).length,
|
|
391
|
+
activeChunkCount: curatedActiveChunkCount,
|
|
392
|
+
deletedFileCount: curatedDeletedFileCount
|
|
393
|
+
},
|
|
394
|
+
openclawWorkspaceAdapterEnabled: nativeKnowledge?.openclawWorkspace?.enabled === true,
|
|
395
|
+
obsidianVaultAdapterEnabled: (nativeKnowledge?.obsidianVaults?.length ?? 0) > 0,
|
|
396
|
+
obsidianSync: {
|
|
397
|
+
statePath: obsidianStatePath,
|
|
398
|
+
exists: obsidianVaults !== null,
|
|
399
|
+
updatedAt: typeof obsidianVaults?.updatedAt === "string" ? obsidianVaults.updatedAt : null,
|
|
400
|
+
vaultCount: Object.keys(obsidianVaults?.vaults ?? {}).length,
|
|
401
|
+
activeChunkCount: obsidianActiveChunkCount,
|
|
402
|
+
deletedNoteCount: obsidianDeletedNoteCount
|
|
403
|
+
},
|
|
404
|
+
openclawWorkspaceSync: {
|
|
405
|
+
statePath: openclawStatePath,
|
|
406
|
+
exists: openclawFiles !== null,
|
|
407
|
+
updatedAt: typeof openclawFiles?.updatedAt === "string" ? openclawFiles.updatedAt : null,
|
|
408
|
+
fileCount: Object.keys(openclawFiles?.files ?? {}).length,
|
|
409
|
+
activeChunkCount: openclawActiveChunkCount,
|
|
410
|
+
deletedFileCount: openclawDeletedFileCount
|
|
411
|
+
}
|
|
412
|
+
};
|
|
413
|
+
}
|
|
414
|
+
var CAPTURE_INSTRUCTIONS_START = "<!-- BEGIN ENGRAM EXPLICIT CAPTURE INSTRUCTIONS -->";
|
|
415
|
+
var CAPTURE_INSTRUCTIONS_END = "<!-- END ENGRAM EXPLICIT CAPTURE INSTRUCTIONS -->";
|
|
416
|
+
function buildCaptureInstructions() {
|
|
417
|
+
return [
|
|
418
|
+
CAPTURE_INSTRUCTIONS_START,
|
|
419
|
+
"# Memory",
|
|
420
|
+
"",
|
|
421
|
+
"Use this file for explicit memory capture notes when Engram runs in explicit or hybrid mode.",
|
|
422
|
+
"",
|
|
423
|
+
"## Suggested format",
|
|
424
|
+
"",
|
|
425
|
+
"- Write durable facts, decisions, commitments, or corrections.",
|
|
426
|
+
"- Keep entries concise and specific.",
|
|
427
|
+
"- Avoid secrets, tokens, and private credentials.",
|
|
428
|
+
"",
|
|
429
|
+
"## Example",
|
|
430
|
+
"",
|
|
431
|
+
"- Decision: recall benchmark packs live under `state/evals/benchmarks/`.",
|
|
432
|
+
"- Commitment: rerun `openclaw engram doctor --json` after changing retrieval settings.",
|
|
433
|
+
"",
|
|
434
|
+
CAPTURE_INSTRUCTIONS_END
|
|
435
|
+
].join("\n");
|
|
436
|
+
}
|
|
437
|
+
function upsertManagedCaptureInstructions(existing, snippet) {
|
|
438
|
+
if (!existing || existing.trim().length === 0) {
|
|
439
|
+
return { content: `${snippet}
|
|
440
|
+
`, updated: false, installed: true };
|
|
441
|
+
}
|
|
442
|
+
if (existing.includes(CAPTURE_INSTRUCTIONS_START) && existing.includes(CAPTURE_INSTRUCTIONS_END)) {
|
|
443
|
+
const next = existing.replace(
|
|
444
|
+
new RegExp(`${CAPTURE_INSTRUCTIONS_START}[\\s\\S]*?${CAPTURE_INSTRUCTIONS_END}`),
|
|
445
|
+
snippet
|
|
446
|
+
);
|
|
447
|
+
return { content: next.endsWith("\n") ? next : `${next}
|
|
448
|
+
`, updated: next !== existing, installed: false };
|
|
449
|
+
}
|
|
450
|
+
const trimmed = existing.trimEnd();
|
|
451
|
+
return {
|
|
452
|
+
content: `${trimmed}
|
|
453
|
+
|
|
454
|
+
${snippet}
|
|
455
|
+
`,
|
|
456
|
+
updated: false,
|
|
457
|
+
installed: true
|
|
458
|
+
};
|
|
459
|
+
}
|
|
460
|
+
function removeManagedCaptureInstructions(existing) {
|
|
461
|
+
if (!existing.includes(CAPTURE_INSTRUCTIONS_START) || !existing.includes(CAPTURE_INSTRUCTIONS_END)) {
|
|
462
|
+
return { content: existing, removed: false };
|
|
463
|
+
}
|
|
464
|
+
const stripped = existing.replace(new RegExp(`\\n*${CAPTURE_INSTRUCTIONS_START}[\\s\\S]*?${CAPTURE_INSTRUCTIONS_END}\\n*`), "\n").replace(/\n{3,}/g, "\n\n").trim();
|
|
465
|
+
return {
|
|
466
|
+
content: stripped.length > 0 ? `${stripped}
|
|
467
|
+
` : "",
|
|
468
|
+
removed: true
|
|
469
|
+
};
|
|
470
|
+
}
|
|
471
|
+
async function runOperatorSetup(options) {
|
|
472
|
+
const now = options.now ?? /* @__PURE__ */ new Date();
|
|
473
|
+
const configStatus = await loadCliPluginConfig(options.configPath);
|
|
474
|
+
const storage = options.orchestrator.storage;
|
|
475
|
+
await storage.ensureDirectories();
|
|
476
|
+
await mkdir(options.orchestrator.config.workspaceDir, { recursive: true });
|
|
477
|
+
const qmdAvailable = await options.orchestrator.qmd.probe();
|
|
478
|
+
const collectionState = resolveQmdCapabilities(options.orchestrator.config).qmd ? await options.orchestrator.qmd.ensureCollection(
|
|
479
|
+
options.orchestrator.config.memoryDir,
|
|
480
|
+
options.orchestrator.config.qmdCollection
|
|
481
|
+
) : "skipped";
|
|
482
|
+
const nativeKnowledgeStatus = await summarizeNativeKnowledgeStatus(options.orchestrator.config);
|
|
483
|
+
const memoryDocPath = path.join(options.orchestrator.config.workspaceDir, "MEMORY.md");
|
|
484
|
+
const captureInstructionsMode = options.captureInstructionsMode ?? (options.installCaptureInstructions ? "install" : void 0);
|
|
485
|
+
let memoryDocExists = false;
|
|
486
|
+
try {
|
|
487
|
+
await access(memoryDocPath, fsConstants.F_OK);
|
|
488
|
+
memoryDocExists = true;
|
|
489
|
+
} catch {
|
|
490
|
+
memoryDocExists = false;
|
|
491
|
+
}
|
|
492
|
+
let memoryDocInstalled = false;
|
|
493
|
+
let memoryDocUpdated = false;
|
|
494
|
+
let memoryDocRemoved = false;
|
|
495
|
+
const explicitCaptureEnabled = options.orchestrator.config.captureMode === "explicit" || options.orchestrator.config.captureMode === "hybrid";
|
|
496
|
+
const captureInstructionsPreview = captureInstructionsMode ? buildCaptureInstructions() : null;
|
|
497
|
+
if (captureInstructionsMode) {
|
|
498
|
+
if (captureInstructionsMode === "preview") {
|
|
499
|
+
} else if (captureInstructionsMode === "install") {
|
|
500
|
+
const existing = memoryDocExists ? await readFile(memoryDocPath, "utf-8") : null;
|
|
501
|
+
const next = upsertManagedCaptureInstructions(existing, captureInstructionsPreview ?? "");
|
|
502
|
+
if (!existing || next.content !== existing) {
|
|
503
|
+
await writeFile(memoryDocPath, next.content, "utf-8");
|
|
504
|
+
}
|
|
505
|
+
memoryDocExists = true;
|
|
506
|
+
memoryDocInstalled = next.installed;
|
|
507
|
+
memoryDocUpdated = next.updated;
|
|
508
|
+
} else if (captureInstructionsMode === "remove" && memoryDocExists) {
|
|
509
|
+
const existing = await readFile(memoryDocPath, "utf-8");
|
|
510
|
+
const next = removeManagedCaptureInstructions(existing);
|
|
511
|
+
if (next.removed) {
|
|
512
|
+
if (next.content.length === 0) {
|
|
513
|
+
await unlink(memoryDocPath);
|
|
514
|
+
memoryDocExists = false;
|
|
515
|
+
} else {
|
|
516
|
+
await writeFile(memoryDocPath, next.content, "utf-8");
|
|
517
|
+
memoryDocExists = true;
|
|
518
|
+
}
|
|
519
|
+
memoryDocRemoved = true;
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
const directories = await gatherDirectoryStatus(getSetupPaths(options.orchestrator.config));
|
|
524
|
+
const nextSteps = [
|
|
525
|
+
`Run \`openclaw engram doctor${options.installCaptureInstructions ? "" : " --json"}\` to verify runtime health.`,
|
|
526
|
+
"Run `openclaw engram inventory --json` to capture a baseline footprint.",
|
|
527
|
+
"If QMD is enabled and the collection is missing, add the collection to `~/.config/qmd/index.yml` and run `qmd update && qmd embed`."
|
|
528
|
+
];
|
|
529
|
+
if (explicitCaptureEnabled && !memoryDocExists) {
|
|
530
|
+
nextSteps.push("Run `openclaw engram setup --preview-capture-instructions` to review the managed explicit-capture snippet, then `--install-capture-instructions` to write it.");
|
|
531
|
+
}
|
|
532
|
+
return {
|
|
533
|
+
schemaVersion: 1,
|
|
534
|
+
generatedAt: now.toISOString(),
|
|
535
|
+
config: configStatus,
|
|
536
|
+
memoryDir: options.orchestrator.config.memoryDir,
|
|
537
|
+
workspaceDir: options.orchestrator.config.workspaceDir,
|
|
538
|
+
directories,
|
|
539
|
+
qmd: {
|
|
540
|
+
enabled: resolveQmdCapabilities(options.orchestrator.config).qmd,
|
|
541
|
+
available: qmdAvailable,
|
|
542
|
+
collectionState,
|
|
543
|
+
debugStatus: options.orchestrator.qmd.debugStatus()
|
|
544
|
+
},
|
|
545
|
+
nativeKnowledge: nativeKnowledgeStatus,
|
|
546
|
+
explicitCapture: {
|
|
547
|
+
captureMode: options.orchestrator.config.captureMode,
|
|
548
|
+
enabled: explicitCaptureEnabled,
|
|
549
|
+
memoryDocPath,
|
|
550
|
+
memoryDocExists,
|
|
551
|
+
memoryDocInstalled,
|
|
552
|
+
memoryDocUpdated,
|
|
553
|
+
memoryDocRemoved,
|
|
554
|
+
preview: captureInstructionsMode === "preview" ? captureInstructionsPreview : null
|
|
555
|
+
},
|
|
556
|
+
nextSteps,
|
|
557
|
+
verificationCommands: [
|
|
558
|
+
"openclaw engram doctor --json",
|
|
559
|
+
"openclaw engram inventory --json",
|
|
560
|
+
"openclaw engram benchmark recall --json"
|
|
561
|
+
]
|
|
562
|
+
};
|
|
563
|
+
}
|
|
564
|
+
function summarizeHygieneWarnings(warnings, hygiene) {
|
|
565
|
+
if (!hygiene?.enabled || hygiene.lintEnabled !== true) {
|
|
566
|
+
return {
|
|
567
|
+
key: "file_hygiene",
|
|
568
|
+
status: "warn",
|
|
569
|
+
summary: "File hygiene linting is disabled; bootstrap file truncation warnings are not active.",
|
|
570
|
+
remediation: "Enable `fileHygiene.enabled` and `fileHygiene.lintEnabled` if large workspace bootstrap files are common.",
|
|
571
|
+
details: {
|
|
572
|
+
enabled: hygiene?.enabled === true,
|
|
573
|
+
lintEnabled: hygiene?.lintEnabled === true
|
|
574
|
+
}
|
|
575
|
+
};
|
|
576
|
+
}
|
|
577
|
+
if (warnings.length > 0) {
|
|
578
|
+
return {
|
|
579
|
+
key: "file_hygiene",
|
|
580
|
+
status: "warn",
|
|
581
|
+
summary: `${warnings.length} bootstrap file(s) are near or above the configured budget.`,
|
|
582
|
+
remediation: "Archive/split the listed files or adjust `fileHygiene` budgets.",
|
|
583
|
+
details: { warnings }
|
|
584
|
+
};
|
|
585
|
+
}
|
|
586
|
+
return {
|
|
587
|
+
key: "file_hygiene",
|
|
588
|
+
status: "ok",
|
|
589
|
+
summary: "Bootstrap file hygiene is within budget.",
|
|
590
|
+
details: {
|
|
591
|
+
enabled: true,
|
|
592
|
+
lintPaths: hygiene.lintPaths,
|
|
593
|
+
budgetBytes: hygiene.lintBudgetBytes
|
|
594
|
+
}
|
|
595
|
+
};
|
|
596
|
+
}
|
|
597
|
+
function buildConfigReviewFinding(input) {
|
|
598
|
+
return {
|
|
599
|
+
key: input.key,
|
|
600
|
+
status: input.status,
|
|
601
|
+
setting: input.setting,
|
|
602
|
+
currentValue: formatConfigValue(input.currentValue),
|
|
603
|
+
defaultValue: formatConfigValue(input.defaultValue),
|
|
604
|
+
recommendedValue: formatConfigValue(input.recommendedValue),
|
|
605
|
+
summary: input.summary,
|
|
606
|
+
rationale: input.rationale
|
|
607
|
+
};
|
|
608
|
+
}
|
|
609
|
+
async function runOperatorConfigReview(options) {
|
|
610
|
+
const now = options.now ?? /* @__PURE__ */ new Date();
|
|
611
|
+
const configStatus = await loadCliPluginConfig(options.configPath);
|
|
612
|
+
return buildOperatorConfigReviewReport({
|
|
613
|
+
now,
|
|
614
|
+
configStatus,
|
|
615
|
+
config: options.orchestrator.config
|
|
616
|
+
});
|
|
617
|
+
}
|
|
618
|
+
async function buildOperatorConfigReviewReport(input) {
|
|
619
|
+
const { now, configStatus, config } = input;
|
|
620
|
+
const caps = resolveCapabilities(config);
|
|
621
|
+
const findings = [];
|
|
622
|
+
const searchBackend = config.searchBackend ?? "qmd";
|
|
623
|
+
const workspaceBootstrapFiles = [
|
|
624
|
+
path.join(config.workspaceDir, "IDENTITY.md"),
|
|
625
|
+
path.join(config.workspaceDir, "MEMORY.md"),
|
|
626
|
+
path.join(config.workspaceDir, "USER.md")
|
|
627
|
+
];
|
|
628
|
+
const workspaceBootstrapExists = (await Promise.all(workspaceBootstrapFiles.map(pathExists))).some(Boolean);
|
|
629
|
+
if (config.memoryOsPreset !== "conservative" && config.memoryOsPreset !== "balanced" && config.memoryOsPreset !== "research-max" && config.memoryOsPreset !== "local-llm-heavy" && resolveIndexingCapabilities(config).queryAwareIndexing === false && resolvePresentationCapabilities(config).verbatimArtifacts === false && !caps.rerank) {
|
|
630
|
+
findings.push(buildConfigReviewFinding({
|
|
631
|
+
key: "balanced_preset",
|
|
632
|
+
status: "recommend",
|
|
633
|
+
setting: "memoryOsPreset",
|
|
634
|
+
currentValue: config.memoryOsPreset,
|
|
635
|
+
defaultValue: "(unset)",
|
|
636
|
+
recommendedValue: "balanced",
|
|
637
|
+
summary: "Adopt the balanced preset as the baseline configuration profile.",
|
|
638
|
+
rationale: "The balanced preset enables the recommended indexing, reranking, and artifact defaults without turning on the higher-churn graph and learning loops."
|
|
639
|
+
}));
|
|
640
|
+
}
|
|
641
|
+
if (resolveQmdCapabilities(config).qmd && resolveQmdCapabilities(config).qmdDaemon === false) {
|
|
642
|
+
findings.push(buildConfigReviewFinding({
|
|
643
|
+
key: "qmd_daemon",
|
|
644
|
+
status: "recommend",
|
|
645
|
+
setting: "qmdDaemonEnabled",
|
|
646
|
+
currentValue: resolveQmdCapabilities(config).qmdDaemon,
|
|
647
|
+
defaultValue: true,
|
|
648
|
+
recommendedValue: true,
|
|
649
|
+
summary: "Enable the QMD daemon path when QMD powers recall.",
|
|
650
|
+
rationale: "The daemon path reduces recall/search contention by preferring the MCP transport instead of repeated subprocess calls when QMD is available."
|
|
651
|
+
}));
|
|
652
|
+
}
|
|
653
|
+
if (workspaceBootstrapExists && config.nativeKnowledge?.enabled !== true) {
|
|
654
|
+
findings.push(buildConfigReviewFinding({
|
|
655
|
+
key: "native_knowledge_enabled",
|
|
656
|
+
status: "recommend",
|
|
657
|
+
setting: "nativeKnowledge.enabled",
|
|
658
|
+
currentValue: config.nativeKnowledge?.enabled,
|
|
659
|
+
defaultValue: false,
|
|
660
|
+
recommendedValue: true,
|
|
661
|
+
summary: "Enable native knowledge recall for workspace bootstrap documents.",
|
|
662
|
+
rationale: "When files like IDENTITY.md or MEMORY.md already exist, native knowledge recall can chunk and inject them directly instead of relying only on extracted memories."
|
|
663
|
+
}));
|
|
664
|
+
}
|
|
665
|
+
if (workspaceBootstrapExists && config.fileHygiene?.enabled !== true) {
|
|
666
|
+
findings.push(buildConfigReviewFinding({
|
|
667
|
+
key: "file_hygiene_enabled",
|
|
668
|
+
status: "recommend",
|
|
669
|
+
setting: "fileHygiene.enabled",
|
|
670
|
+
currentValue: config.fileHygiene?.enabled,
|
|
671
|
+
defaultValue: false,
|
|
672
|
+
recommendedValue: true,
|
|
673
|
+
summary: "Enable file hygiene to avoid silent workspace-file truncation.",
|
|
674
|
+
rationale: "OpenClaw bootstrap files can grow quietly; file hygiene warns before oversized files are truncated during prompt bootstrap."
|
|
675
|
+
}));
|
|
676
|
+
}
|
|
677
|
+
if (searchBackend === "qmd" && resolveQmdCapabilities(config).qmd === false) {
|
|
678
|
+
findings.push(buildConfigReviewFinding({
|
|
679
|
+
key: "qmd_search_backend_disabled",
|
|
680
|
+
status: "problem",
|
|
681
|
+
setting: "qmdEnabled",
|
|
682
|
+
currentValue: resolveQmdCapabilities(config).qmd,
|
|
683
|
+
defaultValue: true,
|
|
684
|
+
recommendedValue: true,
|
|
685
|
+
summary: "QMD search is selected but QMD is disabled.",
|
|
686
|
+
rationale: "When searchBackend resolves to qmd while qmdEnabled is false, Engram falls back to the noop backend and disables the primary search path."
|
|
687
|
+
}));
|
|
688
|
+
}
|
|
689
|
+
if (resolveQmdCapabilities(config).qmdColdTier === true && resolveQmdCapabilities(config).qmd === false) {
|
|
690
|
+
findings.push(buildConfigReviewFinding({
|
|
691
|
+
key: "qmd_cold_tier_requires_qmd",
|
|
692
|
+
status: "problem",
|
|
693
|
+
setting: "qmdEnabled",
|
|
694
|
+
currentValue: resolveQmdCapabilities(config).qmd,
|
|
695
|
+
defaultValue: true,
|
|
696
|
+
recommendedValue: true,
|
|
697
|
+
summary: "Cold-tier QMD recall is enabled while QMD itself is disabled.",
|
|
698
|
+
rationale: "The cold tier depends on the same QMD runtime as the hot tier, so turning QMD off leaves the extra tiering path unusable."
|
|
699
|
+
}));
|
|
700
|
+
}
|
|
701
|
+
if (resolveQmdCapabilities(config).qmdTierMigration && resolveQmdCapabilities(config).qmdColdTier !== true) {
|
|
702
|
+
findings.push(buildConfigReviewFinding({
|
|
703
|
+
key: "qmd_tier_migration_requires_cold_tier",
|
|
704
|
+
status: "problem",
|
|
705
|
+
setting: "qmdColdTierEnabled",
|
|
706
|
+
currentValue: resolveQmdCapabilities(config).qmdColdTier,
|
|
707
|
+
defaultValue: false,
|
|
708
|
+
recommendedValue: true,
|
|
709
|
+
summary: "Hot/cold tier migration is enabled without the cold tier itself.",
|
|
710
|
+
rationale: "Tier migration depends on the cold-tier collection and recall path, so enabling migration while the cold tier is off leaves the feature in a contradictory state."
|
|
711
|
+
}));
|
|
712
|
+
}
|
|
713
|
+
if (resolveIndexingCapabilities(config).conversationIndex && config.conversationIndexBackend === "qmd" && resolveQmdCapabilities(config).qmd === false) {
|
|
714
|
+
findings.push(buildConfigReviewFinding({
|
|
715
|
+
key: "conversation_index_qmd_requires_qmd",
|
|
716
|
+
status: "problem",
|
|
717
|
+
setting: "qmdEnabled",
|
|
718
|
+
currentValue: resolveQmdCapabilities(config).qmd,
|
|
719
|
+
defaultValue: true,
|
|
720
|
+
recommendedValue: true,
|
|
721
|
+
summary: "The conversation index is configured for QMD while QMD is disabled.",
|
|
722
|
+
rationale: "A QMD-backed conversation index cannot rebuild or serve queries when the underlying QMD runtime is disabled."
|
|
723
|
+
}));
|
|
724
|
+
}
|
|
725
|
+
const summary = findings.reduce(
|
|
726
|
+
(acc, finding) => {
|
|
727
|
+
acc[finding.status] += 1;
|
|
728
|
+
return acc;
|
|
729
|
+
},
|
|
730
|
+
{ recommend: 0, problem: 0 }
|
|
731
|
+
);
|
|
732
|
+
return {
|
|
733
|
+
schemaVersion: 1,
|
|
734
|
+
generatedAt: now.toISOString(),
|
|
735
|
+
ok: configStatus.parsed && summary.problem === 0,
|
|
736
|
+
config: configStatus,
|
|
737
|
+
profile: {
|
|
738
|
+
memoryOsPreset: config.memoryOsPreset,
|
|
739
|
+
searchBackend,
|
|
740
|
+
qmdEnabled: resolveQmdCapabilities(config).qmd,
|
|
741
|
+
qmdDaemonEnabled: resolveQmdCapabilities(config).qmdDaemon,
|
|
742
|
+
nativeKnowledgeEnabled: config.nativeKnowledge?.enabled === true,
|
|
743
|
+
fileHygieneEnabled: config.fileHygiene?.enabled === true,
|
|
744
|
+
conversationIndexEnabled: resolveIndexingCapabilities(config).conversationIndex
|
|
745
|
+
},
|
|
746
|
+
summary,
|
|
747
|
+
findings
|
|
748
|
+
};
|
|
749
|
+
}
|
|
750
|
+
function summarizeProvenanceCoverage(memories) {
|
|
751
|
+
const counts = { verified: 0, unverified: 0, none: 0 };
|
|
752
|
+
for (const mem of memories) {
|
|
753
|
+
const tag = mem.frontmatter.provenance ?? "none";
|
|
754
|
+
if (tag === "verified") counts.verified += 1;
|
|
755
|
+
else if (tag === "unverified") counts.unverified += 1;
|
|
756
|
+
else counts.none += 1;
|
|
757
|
+
}
|
|
758
|
+
return { counts, total: memories.length };
|
|
759
|
+
}
|
|
760
|
+
function summarizeProjectionHealth(config) {
|
|
761
|
+
const probe = probeProjectionHealth(config.memoryDir);
|
|
762
|
+
if (probe.state === "absent") {
|
|
763
|
+
return {
|
|
764
|
+
key: "memory_projection",
|
|
765
|
+
status: "ok",
|
|
766
|
+
summary: "Memory projection index not built yet (normal until first maintenance run).",
|
|
767
|
+
details: { state: probe.state }
|
|
768
|
+
};
|
|
769
|
+
}
|
|
770
|
+
if (probe.state === "openable") {
|
|
771
|
+
return {
|
|
772
|
+
key: "memory_projection",
|
|
773
|
+
status: "ok",
|
|
774
|
+
summary: "Memory projection index opens cleanly.",
|
|
775
|
+
details: { state: probe.state }
|
|
776
|
+
};
|
|
777
|
+
}
|
|
778
|
+
if (probe.state === "present-but-invalid") {
|
|
779
|
+
const schemaDetailSuffix = probe.detail ? ` (${probe.detail})` : "";
|
|
780
|
+
return {
|
|
781
|
+
key: "memory_projection",
|
|
782
|
+
status: "error",
|
|
783
|
+
summary: `Memory projection index exists but its schema is missing or unreadable${schemaDetailSuffix}; memory browse is falling back to full-corpus scans.`,
|
|
784
|
+
remediation: "Rebuild the projection with `remnic rebuild-memory-projection --write`.",
|
|
785
|
+
details: { state: probe.state, detail: probe.detail }
|
|
786
|
+
};
|
|
787
|
+
}
|
|
788
|
+
const nativeSuffix = probe.nativeBindingMismatch ? " Native binding appears built for the wrong Node.js ABI." : "";
|
|
789
|
+
const detailSuffix = probe.detail ? ` (${probe.detail})` : "";
|
|
790
|
+
return {
|
|
791
|
+
key: "memory_projection",
|
|
792
|
+
status: "error",
|
|
793
|
+
summary: `Memory projection index exists but could not be opened${detailSuffix}.${nativeSuffix}`,
|
|
794
|
+
remediation: probe.nativeBindingMismatch ? "Rebuild the better-sqlite3 native binding for this Node.js (`node scripts/ensure-better-sqlite3.mjs` or `pnpm rebuild better-sqlite3`), then restart." : "Rebuild the projection with `remnic rebuild-memory-projection --write`; check file permissions and integrity.",
|
|
795
|
+
details: {
|
|
796
|
+
state: probe.state,
|
|
797
|
+
detail: probe.detail,
|
|
798
|
+
nativeBindingMismatch: probe.nativeBindingMismatch
|
|
799
|
+
}
|
|
800
|
+
};
|
|
801
|
+
}
|
|
802
|
+
async function runOperatorDoctor(options) {
|
|
803
|
+
const now = options.now ?? /* @__PURE__ */ new Date();
|
|
804
|
+
const configStatus = await loadCliPluginConfig(options.configPath);
|
|
805
|
+
const checks = [];
|
|
806
|
+
const config = options.orchestrator.config;
|
|
807
|
+
const storage = options.orchestrator.storage;
|
|
808
|
+
const configReview = await buildOperatorConfigReviewReport({
|
|
809
|
+
now,
|
|
810
|
+
configStatus,
|
|
811
|
+
config
|
|
812
|
+
});
|
|
813
|
+
const nativeKnowledgeStatus = await summarizeNativeKnowledgeStatus(config);
|
|
814
|
+
const setupPaths = await gatherDirectoryStatus(getSetupPaths(config));
|
|
815
|
+
const missingPaths = setupPaths.filter((entry) => !entry.exists).map((entry) => entry.path);
|
|
816
|
+
checks.push({
|
|
817
|
+
key: "config",
|
|
818
|
+
status: configStatus.parsed ? "ok" : options.configPath ? "error" : "warn",
|
|
819
|
+
summary: configStatus.parsed ? "OpenClaw config loaded and Engram config parsed successfully." : "Config file could not be parsed.",
|
|
820
|
+
remediation: configStatus.parsed ? void 0 : "Fix the config file or set OPENCLAW_ENGRAM_CONFIG_PATH/OPENCLAW_CONFIG_PATH.",
|
|
821
|
+
details: configStatus
|
|
822
|
+
});
|
|
823
|
+
checks.push({
|
|
824
|
+
key: "memory_dir",
|
|
825
|
+
status: missingPaths.length === 0 ? "ok" : "warn",
|
|
826
|
+
summary: missingPaths.length === 0 ? "Expected Engram directories exist." : `${missingPaths.length} expected directory path(s) are missing.`,
|
|
827
|
+
remediation: missingPaths.length === 0 ? void 0 : "Run `openclaw engram setup` to create missing directories.",
|
|
828
|
+
details: { directories: setupPaths }
|
|
829
|
+
});
|
|
830
|
+
checks.push({
|
|
831
|
+
key: "config_review",
|
|
832
|
+
status: configReview.summary.problem > 0 ? "error" : configReview.summary.recommend > 0 ? "warn" : "ok",
|
|
833
|
+
summary: configReview.summary.problem > 0 ? `${configReview.summary.problem} configuration problem(s) detected.` : configReview.summary.recommend > 0 ? `No configuration problems detected; ${configReview.summary.recommend} optional recommendation(s) are available.` : "No configuration problems detected.",
|
|
834
|
+
remediation: configReview.summary.problem > 0 || configReview.summary.recommend > 0 ? "Run `openclaw engram config-review` to inspect and fix the flagged configuration combinations." : void 0,
|
|
835
|
+
details: configReview
|
|
836
|
+
});
|
|
837
|
+
const qmdAvailable = await options.orchestrator.qmd.probe();
|
|
838
|
+
const collectionState = resolveQmdCapabilities(config).qmd ? await options.orchestrator.qmd.ensureCollection(config.memoryDir, config.qmdCollection) : "skipped";
|
|
839
|
+
checks.push({
|
|
840
|
+
key: "qmd",
|
|
841
|
+
status: !resolveQmdCapabilities(config).qmd ? "warn" : !qmdAvailable ? "error" : collectionState === "present" ? "ok" : collectionState === "missing" ? "error" : "warn",
|
|
842
|
+
summary: !resolveQmdCapabilities(config).qmd ? "QMD is disabled in config." : qmdAvailable ? `QMD is reachable (${collectionState}).` : "QMD is not currently reachable.",
|
|
843
|
+
remediation: !resolveQmdCapabilities(config).qmd ? "Enable `qmdEnabled` if you expect hybrid search." : !qmdAvailable ? "Ensure the `qmd` binary is installed and on PATH, or set `qmdPath`." : collectionState === "missing" ? "Add the configured collection to `~/.config/qmd/index.yml`." : collectionState === "present" ? void 0 : "Re-run `openclaw engram setup` after restoring QMD access.",
|
|
844
|
+
details: {
|
|
845
|
+
available: qmdAvailable,
|
|
846
|
+
collectionState,
|
|
847
|
+
debugStatus: options.orchestrator.qmd.debugStatus()
|
|
848
|
+
}
|
|
849
|
+
});
|
|
850
|
+
const conversationIndex = await options.orchestrator.conversationIndexCoordinator.getHealth();
|
|
851
|
+
checks.push({
|
|
852
|
+
key: "conversation_index",
|
|
853
|
+
status: conversationIndex.status === "ok" ? "ok" : conversationIndex.enabled ? "error" : "warn",
|
|
854
|
+
summary: conversationIndex.enabled ? `Conversation index backend is ${conversationIndex.status}.` : "Conversation index is disabled.",
|
|
855
|
+
remediation: conversationIndex.enabled && conversationIndex.status !== "ok" ? "Run `openclaw engram rebuild-index` to refresh the conversation index artifacts." : void 0,
|
|
856
|
+
details: conversationIndex
|
|
857
|
+
});
|
|
858
|
+
const meta = await storage.loadMeta();
|
|
859
|
+
checks.push({
|
|
860
|
+
key: "maintenance",
|
|
861
|
+
status: meta.lastExtractionAt || meta.lastConsolidationAt ? "ok" : "warn",
|
|
862
|
+
summary: meta.lastExtractionAt || meta.lastConsolidationAt ? "Extraction/consolidation metadata is present." : "No extraction or consolidation metadata found yet.",
|
|
863
|
+
remediation: meta.lastExtractionAt || meta.lastConsolidationAt ? void 0 : "Run a normal agent turn or `openclaw engram consolidate` after seeding memory.",
|
|
864
|
+
details: meta
|
|
865
|
+
});
|
|
866
|
+
const retryEntries = meta.extractionRetryState ?? [];
|
|
867
|
+
const authConfigFailures = retryEntries.filter((entry) => entry.lastFailureClass === "auth_config");
|
|
868
|
+
const nowMs = Date.now();
|
|
869
|
+
const parkedFingerprints = retryEntries.filter((entry) => {
|
|
870
|
+
const eligibleAt = Date.parse(entry.nextEligibleAt);
|
|
871
|
+
return Number.isFinite(eligibleAt) && eligibleAt > nowMs;
|
|
872
|
+
});
|
|
873
|
+
const providerRetryableParked = parkedFingerprints.filter(
|
|
874
|
+
(entry) => entry.lastFailureClass === "provider_retryable"
|
|
875
|
+
);
|
|
876
|
+
const breakerLikelyOpen = providerRetryableParked.length >= Math.max(1, config.extractionBreakerFailureThreshold);
|
|
877
|
+
const resilienceStatus = authConfigFailures.length > 0 ? "error" : parkedFingerprints.length > 0 ? "warn" : "ok";
|
|
878
|
+
checks.push({
|
|
879
|
+
key: "extraction-resilience",
|
|
880
|
+
status: resilienceStatus,
|
|
881
|
+
summary: resilienceStatus === "error" ? `Extraction provider has ${authConfigFailures.length} auth/config failure(s); the circuit breaker opens immediately and extraction is suspended.` : resilienceStatus === "warn" ? `${parkedFingerprints.length} extraction fingerprint(s) in backoff after transient provider failures${breakerLikelyOpen ? "; the provider circuit breaker is likely OPEN in the daemon (non-forced extraction is suspended until it half-opens)" : ""}.` : "No extraction provider failures are currently parked.",
|
|
882
|
+
remediation: resilienceStatus === "error" ? 'Check the extraction LLM gateway/model configuration (a 401/403 or "no models configured" was seen). Extraction resumes automatically once the provider is reachable.' : resilienceStatus === "warn" ? "Transient provider failures (e.g. 429/5xx). Backoff clears automatically as the provider recovers; no action needed unless it persists." : void 0,
|
|
883
|
+
details: {
|
|
884
|
+
backoffFingerprintCount: retryEntries.length,
|
|
885
|
+
authConfigFailureCount: authConfigFailures.length,
|
|
886
|
+
parkedFingerprintCount: parkedFingerprints.length,
|
|
887
|
+
providerRetryableParkedCount: providerRetryableParked.length,
|
|
888
|
+
breakerLikelyOpen
|
|
889
|
+
}
|
|
890
|
+
});
|
|
891
|
+
checks.push(summarizeProjectionHealth(config));
|
|
892
|
+
let provenanceCoverage = {
|
|
893
|
+
counts: { verified: 0, unverified: 0, none: 0 },
|
|
894
|
+
total: 0
|
|
895
|
+
};
|
|
896
|
+
let provenanceReadOk = true;
|
|
897
|
+
let provenancePartialTiers = [];
|
|
898
|
+
try {
|
|
899
|
+
const [hot, archived, cold] = await Promise.allSettled([
|
|
900
|
+
storage.readAllMemories(),
|
|
901
|
+
storage.readArchivedMemories(),
|
|
902
|
+
storage.readAllColdMemories()
|
|
903
|
+
]);
|
|
904
|
+
const all = [];
|
|
905
|
+
if (hot.status === "fulfilled") all.push(...hot.value);
|
|
906
|
+
else provenancePartialTiers.push("hot");
|
|
907
|
+
if (archived.status === "fulfilled") all.push(...archived.value);
|
|
908
|
+
else provenancePartialTiers.push("archived");
|
|
909
|
+
if (cold.status === "fulfilled") all.push(...cold.value);
|
|
910
|
+
else provenancePartialTiers.push("cold");
|
|
911
|
+
provenanceCoverage = summarizeProvenanceCoverage(all);
|
|
912
|
+
} catch {
|
|
913
|
+
provenanceReadOk = false;
|
|
914
|
+
}
|
|
915
|
+
const pc = provenanceCoverage.counts;
|
|
916
|
+
const totalProvenance = provenanceCoverage.total;
|
|
917
|
+
const provenanceCovered = pc.verified + pc.unverified;
|
|
918
|
+
const partialSuffix = provenancePartialTiers.length > 0 ? ` (partial: ${provenancePartialTiers.join("/")} tier unreadable)` : "";
|
|
919
|
+
checks.push({
|
|
920
|
+
key: "provenance_coverage",
|
|
921
|
+
status: !provenanceReadOk || provenancePartialTiers.length > 0 ? "warn" : totalProvenance === 0 ? "warn" : provenanceCovered === 0 ? "warn" : "ok",
|
|
922
|
+
summary: !provenanceReadOk ? "Could not read memories for provenance coverage." : totalProvenance === 0 ? "No memories found yet \u2014 provenance coverage is empty." : `Provenance coverage: ${pc.verified} verified, ${pc.unverified} unverified, ${pc.none} none (${totalProvenance} total).${partialSuffix}`,
|
|
923
|
+
remediation: !provenanceReadOk ? void 0 : provenancePartialTiers.length > 0 ? `Some tiers could not be read (${provenancePartialTiers.join(", ")}). Check storage health and re-run.` : provenanceCovered === 0 && totalProvenance > 0 ? "New extractions will carry source spans. Existing legacy memories remain `none` until re-extracted." : void 0,
|
|
924
|
+
details: { provenanceCounts: pc, total: totalProvenance, partialTiers: provenancePartialTiers.length > 0 ? provenancePartialTiers : void 0 }
|
|
925
|
+
});
|
|
926
|
+
const syncedChunkCount = nativeKnowledgeStatus.curatedIncludeSync.activeChunkCount + nativeKnowledgeStatus.obsidianSync.activeChunkCount + nativeKnowledgeStatus.openclawWorkspaceSync.activeChunkCount;
|
|
927
|
+
const hasSyncState = nativeKnowledgeStatus.curatedIncludeSync.exists || nativeKnowledgeStatus.obsidianSync.exists || nativeKnowledgeStatus.openclawWorkspaceSync.exists;
|
|
928
|
+
checks.push({
|
|
929
|
+
key: "native_knowledge",
|
|
930
|
+
status: !nativeKnowledgeStatus.enabled ? "warn" : hasSyncState ? "ok" : "warn",
|
|
931
|
+
summary: !nativeKnowledgeStatus.enabled ? "Native knowledge sync is disabled." : hasSyncState ? `Native knowledge sync state is present (${syncedChunkCount} active chunks).` : "Native knowledge sync is enabled but no sync state has been written yet.",
|
|
932
|
+
remediation: !nativeKnowledgeStatus.enabled ? "Enable `nativeKnowledge.enabled` if curated workspace recall should participate in retrieval." : hasSyncState ? void 0 : "Run a recall, sync, or setup flow that touches native knowledge sources, then rerun `openclaw engram doctor --json`.",
|
|
933
|
+
details: nativeKnowledgeStatus
|
|
934
|
+
});
|
|
935
|
+
const agentAccessEnabled = config.agentAccessHttp?.enabled === true;
|
|
936
|
+
const rawAuthToken = config.agentAccessHttp?.authToken;
|
|
937
|
+
const authTokenConfigured = typeof rawAuthToken === "string" && rawAuthToken.length > 0 || rawAuthToken !== null && typeof rawAuthToken === "object" && typeof rawAuthToken.source === "string";
|
|
938
|
+
checks.push({
|
|
939
|
+
key: "access_http_auth",
|
|
940
|
+
status: !agentAccessEnabled ? "warn" : authTokenConfigured ? "ok" : "error",
|
|
941
|
+
summary: !agentAccessEnabled ? "Agent access HTTP bridge is disabled." : authTokenConfigured ? "Agent access HTTP bridge has an auth token configured." : "Agent access HTTP bridge is enabled without an auth token.",
|
|
942
|
+
remediation: !agentAccessEnabled ? "Ignore unless you plan to enable the HTTP bridge." : authTokenConfigured ? void 0 : "Set `agentAccessHttp.authToken` before exposing the bridge."
|
|
943
|
+
});
|
|
944
|
+
const warnings = config.fileHygiene?.lintEnabled ? await lintWorkspaceFiles({
|
|
945
|
+
workspaceDir: config.workspaceDir,
|
|
946
|
+
paths: config.fileHygiene.lintPaths,
|
|
947
|
+
budgetBytes: config.fileHygiene.lintBudgetBytes,
|
|
948
|
+
warnRatio: config.fileHygiene.lintWarnRatio
|
|
949
|
+
}) : [];
|
|
950
|
+
checks.push(summarizeHygieneWarnings(warnings, config.fileHygiene));
|
|
951
|
+
checks.push(await summarizeMemoryWorthLegacyCounters(storage));
|
|
952
|
+
checks.push(
|
|
953
|
+
await summarizeBufferSurpriseDistribution(storage, config)
|
|
954
|
+
);
|
|
955
|
+
checks.push(await summarizeConsolidationProvenance(storage, config));
|
|
956
|
+
checks.push(await summarizeGraphEdgeDecayStatus(config));
|
|
957
|
+
checks.push(await summarizeTierDistribution(options.orchestrator.storage));
|
|
958
|
+
checks.push(await summarizeDreamsPhases(config, storage, meta));
|
|
959
|
+
const extractionWatermark = await readAggregateExtractionWatermark({ config, rootStorage: storage, rootMeta: meta, storageForNamespace: (ns, rootDir) => options.orchestrator.getStorage?.(ns) ?? new StorageManager(rootDir) });
|
|
960
|
+
checks.push(await summarizeExtractionLiveness(config, extractionWatermark, options.orchestrator.buffer));
|
|
961
|
+
checks.push(...await summarizeCorpusAndReplica(config, (d) => new StorageManager(d), options.resolveSecretRef));
|
|
962
|
+
checks.push(summarizeSecurityMitigations(config));
|
|
963
|
+
checks.push(await summarizeObservationThroughput(config.memoryDir));
|
|
964
|
+
const namespaceMaintenanceHealth = await summarizeNamespaceMaintenanceHealth(config);
|
|
965
|
+
checks.push({
|
|
966
|
+
key: "namespace_maintenance",
|
|
967
|
+
status: namespaceMaintenanceHealth.totalFailed > 0 ? "warn" : "ok",
|
|
968
|
+
summary: namespaceMaintenanceHealth.totalRan === 0 && namespaceMaintenanceHealth.totalFailed === 0 ? "No namespace maintenance recorded yet (expected for a fresh install)." : `${namespaceMaintenanceHealth.totalRan} namespace maintenance run(s)` + (namespaceMaintenanceHealth.totalFailed > 0 ? `, ${namespaceMaintenanceHealth.totalFailed} failure(s) across ${namespaceMaintenanceHealth.jobs.filter((j) => j.failed > 0).length} job(s)` : "") + ".",
|
|
969
|
+
remediation: namespaceMaintenanceHealth.totalFailed > 0 ? "Run `remnic namespaces maintenance` for per-namespace details." : void 0,
|
|
970
|
+
details: namespaceMaintenanceHealth
|
|
971
|
+
});
|
|
972
|
+
checks.push(await summarizeTombstoneStatus(options.orchestrator.storage));
|
|
973
|
+
const summary = checks.reduce(
|
|
974
|
+
(acc, check) => {
|
|
975
|
+
acc[check.status] += 1;
|
|
976
|
+
return acc;
|
|
977
|
+
},
|
|
978
|
+
{ ok: 0, warn: 0, error: 0 }
|
|
979
|
+
);
|
|
980
|
+
return {
|
|
981
|
+
schemaVersion: 1,
|
|
982
|
+
generatedAt: now.toISOString(),
|
|
983
|
+
ok: summary.error === 0,
|
|
984
|
+
summary,
|
|
985
|
+
config: configStatus,
|
|
986
|
+
checks
|
|
987
|
+
};
|
|
988
|
+
}
|
|
989
|
+
var MEMORY_WORTH_ELIGIBLE_CATEGORIES = /* @__PURE__ */ new Set(["fact", "procedure"]);
|
|
990
|
+
async function summarizeMemoryWorthLegacyCounters(storage) {
|
|
991
|
+
let legacy = 0;
|
|
992
|
+
let instrumented = 0;
|
|
993
|
+
let ineligible = 0;
|
|
994
|
+
try {
|
|
995
|
+
const memories = await storage.readAllMemories();
|
|
996
|
+
for (const memory of memories) {
|
|
997
|
+
if (!MEMORY_WORTH_ELIGIBLE_CATEGORIES.has(memory.frontmatter.category)) {
|
|
998
|
+
ineligible += 1;
|
|
999
|
+
continue;
|
|
1000
|
+
}
|
|
1001
|
+
const { mw_success, mw_fail } = memory.frontmatter;
|
|
1002
|
+
if (mw_success === void 0 && mw_fail === void 0) {
|
|
1003
|
+
legacy += 1;
|
|
1004
|
+
} else {
|
|
1005
|
+
instrumented += 1;
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
} catch (err) {
|
|
1009
|
+
return {
|
|
1010
|
+
key: "memory_worth_legacy",
|
|
1011
|
+
status: "warn",
|
|
1012
|
+
summary: "Could not enumerate memories to count Memory Worth instrumentation.",
|
|
1013
|
+
remediation: "Retry `remnic doctor` after ensuring the memory directory is readable.",
|
|
1014
|
+
details: { error: String(err) }
|
|
1015
|
+
};
|
|
1016
|
+
}
|
|
1017
|
+
const total = legacy + instrumented;
|
|
1018
|
+
return {
|
|
1019
|
+
key: "memory_worth_legacy",
|
|
1020
|
+
status: "ok",
|
|
1021
|
+
summary: total === 0 ? "No Memory Worth\u2013eligible memories on disk yet \u2014 counters will populate as facts are extracted." : `${legacy} of ${total} eligible memories have no Memory Worth counters yet (${instrumented} instrumented).`,
|
|
1022
|
+
details: { legacy, instrumented, total, ineligible }
|
|
1023
|
+
};
|
|
1024
|
+
}
|
|
1025
|
+
async function summarizeBufferSurpriseDistribution(storage, config) {
|
|
1026
|
+
const storageWithLedger = storage;
|
|
1027
|
+
if (typeof storageWithLedger.readBufferSurpriseEvents !== "function") {
|
|
1028
|
+
return {
|
|
1029
|
+
key: "buffer_surprise_distribution",
|
|
1030
|
+
status: "ok",
|
|
1031
|
+
summary: "Buffer-surprise telemetry reader unavailable in this build.",
|
|
1032
|
+
details: { available: false }
|
|
1033
|
+
};
|
|
1034
|
+
}
|
|
1035
|
+
try {
|
|
1036
|
+
const dist = await reportBufferSurpriseDistribution(
|
|
1037
|
+
async (opts) => storageWithLedger.readBufferSurpriseEvents({ limit: opts.limit }),
|
|
1038
|
+
{ limit: 200 }
|
|
1039
|
+
);
|
|
1040
|
+
if (dist.count === 0) {
|
|
1041
|
+
return {
|
|
1042
|
+
key: "buffer_surprise_distribution",
|
|
1043
|
+
status: "ok",
|
|
1044
|
+
summary: resolvePresentationCapabilities(config).bufferSurpriseTrigger ? "Surprise trigger is enabled but no telemetry has been recorded yet." : "Surprise trigger is disabled; no telemetry expected.",
|
|
1045
|
+
details: {
|
|
1046
|
+
enabled: resolvePresentationCapabilities(config).bufferSurpriseTrigger,
|
|
1047
|
+
distribution: dist
|
|
1048
|
+
}
|
|
1049
|
+
};
|
|
1050
|
+
}
|
|
1051
|
+
const pct = (value) => (value * 100).toFixed(1);
|
|
1052
|
+
return {
|
|
1053
|
+
key: "buffer_surprise_distribution",
|
|
1054
|
+
status: "ok",
|
|
1055
|
+
summary: `Recent surprise: mean=${dist.mean.toFixed(3)}, median=${dist.median.toFixed(3)}, p90=${dist.p90.toFixed(3)}, triggered=${pct(dist.triggeredRate)}% over ${dist.count} turns (threshold=${dist.currentThreshold ?? config.bufferSurpriseThreshold}).`,
|
|
1056
|
+
details: {
|
|
1057
|
+
enabled: resolvePresentationCapabilities(config).bufferSurpriseTrigger,
|
|
1058
|
+
distribution: dist
|
|
1059
|
+
}
|
|
1060
|
+
};
|
|
1061
|
+
} catch (err) {
|
|
1062
|
+
return {
|
|
1063
|
+
key: "buffer_surprise_distribution",
|
|
1064
|
+
status: "warn",
|
|
1065
|
+
summary: "Could not read buffer-surprise telemetry ledger.",
|
|
1066
|
+
remediation: "Retry `remnic doctor` after ensuring the memory state directory is readable.",
|
|
1067
|
+
details: { error: String(err) }
|
|
1068
|
+
};
|
|
1069
|
+
}
|
|
1070
|
+
}
|
|
1071
|
+
async function summarizeGraphEdgeDecayStatus(config) {
|
|
1072
|
+
const { readGraphEdgeDecayStatus } = await import("./graph-edge-decay-ROSUPDX3.js");
|
|
1073
|
+
const { graphEdgeDecayEnabled } = config;
|
|
1074
|
+
const enabled = graphEdgeDecayEnabled === true;
|
|
1075
|
+
if (!enabled) {
|
|
1076
|
+
return {
|
|
1077
|
+
key: "graph_edge_decay",
|
|
1078
|
+
status: "ok",
|
|
1079
|
+
summary: "Graph-edge decay maintenance is disabled (graphEdgeDecayEnabled = false).",
|
|
1080
|
+
remediation: "Set graphEdgeDecayEnabled = true to opt into the periodic decay job (issue #681).",
|
|
1081
|
+
details: { enabled: false }
|
|
1082
|
+
};
|
|
1083
|
+
}
|
|
1084
|
+
const status = await readGraphEdgeDecayStatus(config.memoryDir);
|
|
1085
|
+
if (!status) {
|
|
1086
|
+
return {
|
|
1087
|
+
key: "graph_edge_decay",
|
|
1088
|
+
status: "warn",
|
|
1089
|
+
summary: "Graph-edge decay is enabled but has not run yet (no status file present).",
|
|
1090
|
+
remediation: "Trigger the cron, run `engram.graph_edge_decay_run` via MCP, or wait for the scheduled cadence to fire.",
|
|
1091
|
+
details: { enabled: true, lastRun: null, cadenceMs: config.graphEdgeDecayCadenceMs }
|
|
1092
|
+
};
|
|
1093
|
+
}
|
|
1094
|
+
return {
|
|
1095
|
+
key: "graph_edge_decay",
|
|
1096
|
+
status: "ok",
|
|
1097
|
+
summary: `Graph-edge decay last ran at ${status.ranAt} (${status.edgesDecayed}/${status.edgesTotal} edges decayed, ${status.edgesBelowVisibilityThreshold} below visibility threshold).`,
|
|
1098
|
+
details: {
|
|
1099
|
+
enabled: true,
|
|
1100
|
+
lastRun: status.ranAt,
|
|
1101
|
+
durationMs: status.durationMs,
|
|
1102
|
+
edgesTotal: status.edgesTotal,
|
|
1103
|
+
edgesDecayed: status.edgesDecayed,
|
|
1104
|
+
edgesBelowVisibilityThreshold: status.edgesBelowVisibilityThreshold,
|
|
1105
|
+
topDecayedEntities: status.topDecayedEntities,
|
|
1106
|
+
cadenceMs: config.graphEdgeDecayCadenceMs
|
|
1107
|
+
}
|
|
1108
|
+
};
|
|
1109
|
+
}
|
|
1110
|
+
async function summarizeTierDistribution(storage) {
|
|
1111
|
+
try {
|
|
1112
|
+
const { summarizeTiers } = await import("./tier-stats-VK5PCO2L.js");
|
|
1113
|
+
const summary = await summarizeTiers(storage);
|
|
1114
|
+
const storageDir = storage.dir ?? "";
|
|
1115
|
+
const journalPath = storageDir.length > 0 ? path.join(storageDir, "state", "tier-migration-journal.jsonl") : null;
|
|
1116
|
+
let recentMigrations = 0;
|
|
1117
|
+
const demotionReasons = {};
|
|
1118
|
+
const sevenDaysAgoMs = Date.now() - 7 * 864e5;
|
|
1119
|
+
if (journalPath) {
|
|
1120
|
+
try {
|
|
1121
|
+
const { readFile: readFile2 } = await import("fs/promises");
|
|
1122
|
+
const raw = await readFile2(journalPath, "utf-8");
|
|
1123
|
+
for (const line of raw.split("\n")) {
|
|
1124
|
+
const trimmed = line.trim();
|
|
1125
|
+
if (trimmed.length === 0) continue;
|
|
1126
|
+
try {
|
|
1127
|
+
const entry = JSON.parse(trimmed);
|
|
1128
|
+
const tsMs = entry.ts ? Date.parse(entry.ts) : NaN;
|
|
1129
|
+
if (Number.isFinite(tsMs) && tsMs >= sevenDaysAgoMs && entry.changed === true) {
|
|
1130
|
+
recentMigrations += 1;
|
|
1131
|
+
if (entry.fromTier === "hot" && entry.toTier === "cold" && typeof entry.reason === "string") {
|
|
1132
|
+
const reason = entry.reason;
|
|
1133
|
+
demotionReasons[reason] = (demotionReasons[reason] ?? 0) + 1;
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
} catch {
|
|
1137
|
+
}
|
|
1138
|
+
}
|
|
1139
|
+
} catch {
|
|
1140
|
+
}
|
|
1141
|
+
}
|
|
1142
|
+
const topDemotionReasons = Object.entries(demotionReasons).sort((a, b) => b[1] - a[1] || a[0].localeCompare(b[0])).slice(0, 5).map(([reason, count]) => ({ reason, count }));
|
|
1143
|
+
const statusParts = Object.entries(summary.byStatus).sort((a, b) => b[1] - a[1] || a[0].localeCompare(b[0])).slice(0, 6).map(([s, n]) => `${s}: ${n}`).join(", ");
|
|
1144
|
+
return {
|
|
1145
|
+
key: "tier_distribution",
|
|
1146
|
+
status: "ok",
|
|
1147
|
+
summary: `Tier distribution: hot=${summary.byTier.hot}, cold=${summary.byTier.cold}` + (summary.forgottenCount > 0 ? `, forgotten=${summary.forgottenCount}` : "") + `. Total: ${summary.total}.` + (recentMigrations > 0 ? ` Recent migrations (7d): ${recentMigrations}.` : ""),
|
|
1148
|
+
details: {
|
|
1149
|
+
total: summary.total,
|
|
1150
|
+
byTier: summary.byTier,
|
|
1151
|
+
byStatus: summary.byStatus,
|
|
1152
|
+
forgottenCount: summary.forgottenCount,
|
|
1153
|
+
statusSummary: statusParts,
|
|
1154
|
+
recentMigrations,
|
|
1155
|
+
topDemotionReasons
|
|
1156
|
+
}
|
|
1157
|
+
};
|
|
1158
|
+
} catch (err) {
|
|
1159
|
+
return {
|
|
1160
|
+
key: "tier_distribution",
|
|
1161
|
+
status: "ok",
|
|
1162
|
+
summary: "Tier distribution unavailable \u2014 could not enumerate memories.",
|
|
1163
|
+
details: { error: String(err) }
|
|
1164
|
+
};
|
|
1165
|
+
}
|
|
1166
|
+
}
|
|
1167
|
+
async function summarizeDreamsPhases(config, storage = new StorageManager(config.memoryDir), loadedMeta) {
|
|
1168
|
+
const phases = config.dreamsPhases;
|
|
1169
|
+
const meta = loadedMeta ?? await storage.loadMeta();
|
|
1170
|
+
let deepSleepLastRun = null;
|
|
1171
|
+
let deepSleepLastRunWarning = null;
|
|
1172
|
+
try {
|
|
1173
|
+
const runsDir = path.join(config.memoryDir, "state", "memory-governance", "runs");
|
|
1174
|
+
const runIds = (await readdir(runsDir)).sort().reverse();
|
|
1175
|
+
if (runIds.length > 0) {
|
|
1176
|
+
const latestRunId = runIds[0];
|
|
1177
|
+
const manifestPath = path.join(
|
|
1178
|
+
runsDir,
|
|
1179
|
+
latestRunId,
|
|
1180
|
+
"manifest.json"
|
|
1181
|
+
);
|
|
1182
|
+
const raw = await readFile(manifestPath, "utf-8");
|
|
1183
|
+
const parsed = JSON.parse(raw);
|
|
1184
|
+
if (typeof parsed.createdAt === "string" && parsed.createdAt.length > 0) {
|
|
1185
|
+
deepSleepLastRun = parsed.createdAt;
|
|
1186
|
+
}
|
|
1187
|
+
}
|
|
1188
|
+
} catch (error) {
|
|
1189
|
+
if (!isMissingPathError(error)) {
|
|
1190
|
+
deepSleepLastRunWarning = `Could not read latest governance run manifest: ${formatUnknownError(error)}`;
|
|
1191
|
+
}
|
|
1192
|
+
}
|
|
1193
|
+
const phaseLines = [
|
|
1194
|
+
`lightSleep: enabled=${phases.lightSleep.enabled}, cadenceMs=${phases.lightSleep.cadenceMs}, promoteHeat=${phases.lightSleep.promoteHeatThreshold}, staleDecay=${phases.lightSleep.staleDecayThreshold}, archiveDecay=${phases.lightSleep.archiveDecayThreshold}, filterStale=${phases.lightSleep.filterStaleEnabled}, lastRun=${meta.lastExtractionAt ?? "never"}`,
|
|
1195
|
+
`rem: enabled=${phases.rem.enabled}, cadenceMs=${phases.rem.cadenceMs}, similarity=${phases.rem.similarityThreshold}, minCluster=${phases.rem.minClusterSize}, maxPerRun=${phases.rem.maxPerRun}, minIntervalMs=${phases.rem.minIntervalMs}, lastRun=${meta.lastConsolidationAt ?? "never"}`,
|
|
1196
|
+
`deepSleep: enabled=${phases.deepSleep.enabled}, cadenceMs=${phases.deepSleep.cadenceMs}, versioning=${phases.deepSleep.versioningEnabled}, versioningMaxPerPage=${phases.deepSleep.versioningMaxPerPage}, lastRun=${deepSleepLastRun ?? "never"}`
|
|
1197
|
+
];
|
|
1198
|
+
return {
|
|
1199
|
+
key: "dreams_phases",
|
|
1200
|
+
status: deepSleepLastRunWarning ? "warn" : "ok",
|
|
1201
|
+
summary: `Dreams pipeline phases: ${phaseLines.join("; ")}${deepSleepLastRunWarning ? `; ${deepSleepLastRunWarning}` : ""}`,
|
|
1202
|
+
remediation: deepSleepLastRunWarning ? "Inspect state/memory-governance/runs and repair or remove unreadable governance run artifacts." : void 0,
|
|
1203
|
+
details: {
|
|
1204
|
+
lightSleep: {
|
|
1205
|
+
enabled: phases.lightSleep.enabled,
|
|
1206
|
+
cadenceMs: phases.lightSleep.cadenceMs,
|
|
1207
|
+
promoteHeatThreshold: phases.lightSleep.promoteHeatThreshold,
|
|
1208
|
+
staleDecayThreshold: phases.lightSleep.staleDecayThreshold,
|
|
1209
|
+
archiveDecayThreshold: phases.lightSleep.archiveDecayThreshold,
|
|
1210
|
+
filterStaleEnabled: phases.lightSleep.filterStaleEnabled,
|
|
1211
|
+
lastRun: meta.lastExtractionAt ?? null
|
|
1212
|
+
},
|
|
1213
|
+
rem: {
|
|
1214
|
+
enabled: phases.rem.enabled,
|
|
1215
|
+
cadenceMs: phases.rem.cadenceMs,
|
|
1216
|
+
similarityThreshold: phases.rem.similarityThreshold,
|
|
1217
|
+
minClusterSize: phases.rem.minClusterSize,
|
|
1218
|
+
maxPerRun: phases.rem.maxPerRun,
|
|
1219
|
+
minIntervalMs: phases.rem.minIntervalMs,
|
|
1220
|
+
lastRun: meta.lastConsolidationAt ?? null
|
|
1221
|
+
},
|
|
1222
|
+
deepSleep: {
|
|
1223
|
+
enabled: phases.deepSleep.enabled,
|
|
1224
|
+
cadenceMs: phases.deepSleep.cadenceMs,
|
|
1225
|
+
versioningEnabled: phases.deepSleep.versioningEnabled,
|
|
1226
|
+
versioningMaxPerPage: phases.deepSleep.versioningMaxPerPage,
|
|
1227
|
+
lastRun: deepSleepLastRun,
|
|
1228
|
+
warning: deepSleepLastRunWarning
|
|
1229
|
+
}
|
|
1230
|
+
}
|
|
1231
|
+
};
|
|
1232
|
+
}
|
|
1233
|
+
function summarizeSecurityMitigations(config) {
|
|
1234
|
+
const accessCaps = resolveAccessSetupCapabilities(config);
|
|
1235
|
+
const budgetEnabled = accessCaps.recallCrossNamespaceBudget;
|
|
1236
|
+
const anomalyEnabled = accessCaps.recallAuditAnomalyDetection;
|
|
1237
|
+
if (!budgetEnabled && !anomalyEnabled) {
|
|
1238
|
+
return {
|
|
1239
|
+
key: "security_mitigations",
|
|
1240
|
+
status: "warn",
|
|
1241
|
+
summary: "Memory-extraction mitigations are disabled (cross-namespace budget and anomaly detection off).",
|
|
1242
|
+
remediation: "Enable recallCrossNamespaceBudgetEnabled and/or recallAuditAnomalyDetectionEnabled for production deployments. See docs/security/memory-extraction-threat-model.md.",
|
|
1243
|
+
details: {
|
|
1244
|
+
budgetEnabled: false,
|
|
1245
|
+
anomalyDetectionEnabled: false
|
|
1246
|
+
}
|
|
1247
|
+
};
|
|
1248
|
+
}
|
|
1249
|
+
const details = {
|
|
1250
|
+
budgetEnabled,
|
|
1251
|
+
anomalyDetectionEnabled: anomalyEnabled
|
|
1252
|
+
};
|
|
1253
|
+
if (budgetEnabled) {
|
|
1254
|
+
details.budgetConfig = {
|
|
1255
|
+
windowMs: config.recallCrossNamespaceBudgetWindowMs,
|
|
1256
|
+
softLimit: config.recallCrossNamespaceBudgetSoftLimit,
|
|
1257
|
+
hardLimit: config.recallCrossNamespaceBudgetHardLimit
|
|
1258
|
+
};
|
|
1259
|
+
}
|
|
1260
|
+
if (anomalyEnabled) {
|
|
1261
|
+
details.anomalyConfig = {
|
|
1262
|
+
windowMs: config.recallAuditAnomalyWindowMs,
|
|
1263
|
+
repeatQueryLimit: config.recallAuditAnomalyRepeatQueryLimit,
|
|
1264
|
+
namespaceWalkLimit: config.recallAuditAnomalyNamespaceWalkLimit,
|
|
1265
|
+
highCardinalityLimit: config.recallAuditAnomalyHighCardinalityLimit,
|
|
1266
|
+
rapidFireLimit: config.recallAuditAnomalyRapidFireLimit
|
|
1267
|
+
};
|
|
1268
|
+
}
|
|
1269
|
+
return {
|
|
1270
|
+
key: "security_mitigations",
|
|
1271
|
+
status: "ok",
|
|
1272
|
+
summary: `Memory-extraction mitigation config enabled: ${budgetEnabled ? "budget" : ""}${budgetEnabled && anomalyEnabled ? ", " : ""}${anomalyEnabled ? "anomaly detection" : ""}.`,
|
|
1273
|
+
details: { ...details, configOnly: true }
|
|
1274
|
+
};
|
|
1275
|
+
}
|
|
1276
|
+
async function summarizeObservationThroughput(memoryDir) {
|
|
1277
|
+
try {
|
|
1278
|
+
const stats = await readJudgeVerdictStats(memoryDir);
|
|
1279
|
+
if (stats.total === 0) {
|
|
1280
|
+
return {
|
|
1281
|
+
key: "observations",
|
|
1282
|
+
status: "ok",
|
|
1283
|
+
summary: "No observations recorded yet (extraction-judge telemetry ledger is empty or missing).",
|
|
1284
|
+
details: { total: 0, accept: 0, reject: 0, defer: 0, lastObservedAt: null }
|
|
1285
|
+
};
|
|
1286
|
+
}
|
|
1287
|
+
const acceptPct = (stats.accept / stats.total * 100).toFixed(1);
|
|
1288
|
+
const rejectPct = (stats.reject / stats.total * 100).toFixed(1);
|
|
1289
|
+
const deferPct = (stats.defer / stats.total * 100).toFixed(1);
|
|
1290
|
+
return {
|
|
1291
|
+
key: "observations",
|
|
1292
|
+
status: "ok",
|
|
1293
|
+
summary: `${stats.total} observations recorded: accept=${acceptPct}%, reject=${rejectPct}%, defer=${deferPct}%. Last observed: ${stats.lastTs ?? "unknown"}.`,
|
|
1294
|
+
details: {
|
|
1295
|
+
total: stats.total,
|
|
1296
|
+
accept: stats.accept,
|
|
1297
|
+
reject: stats.reject,
|
|
1298
|
+
defer: stats.defer,
|
|
1299
|
+
deferCapTriggered: stats.deferCapTriggered,
|
|
1300
|
+
deferRate: stats.deferRate,
|
|
1301
|
+
meanElapsedMs: stats.meanElapsedMs,
|
|
1302
|
+
firstObservedAt: stats.firstTs ?? null,
|
|
1303
|
+
lastObservedAt: stats.lastTs ?? null
|
|
1304
|
+
}
|
|
1305
|
+
};
|
|
1306
|
+
} catch (err) {
|
|
1307
|
+
return {
|
|
1308
|
+
key: "observations",
|
|
1309
|
+
status: "warn",
|
|
1310
|
+
summary: "Could not read observation telemetry ledger.",
|
|
1311
|
+
remediation: "Retry `remnic doctor` after ensuring the memory state directory is readable.",
|
|
1312
|
+
details: { error: String(err) }
|
|
1313
|
+
};
|
|
1314
|
+
}
|
|
1315
|
+
}
|
|
1316
|
+
async function summarizeTombstoneStatus(storage) {
|
|
1317
|
+
try {
|
|
1318
|
+
const stats = await storage.getTombstoneStats();
|
|
1319
|
+
if (stats === null) {
|
|
1320
|
+
return {
|
|
1321
|
+
key: "tombstones",
|
|
1322
|
+
status: "ok",
|
|
1323
|
+
summary: "Tombstone non-resurrection invariant is disabled (tombstonesEnabled=false).",
|
|
1324
|
+
details: { enabled: false }
|
|
1325
|
+
};
|
|
1326
|
+
}
|
|
1327
|
+
const corrupted = stats.corruptedLines > 0;
|
|
1328
|
+
const parts = [
|
|
1329
|
+
`${stats.count} active tombstone(s)`,
|
|
1330
|
+
...stats.revoked > 0 ? [`${stats.revoked} revoked`] : []
|
|
1331
|
+
];
|
|
1332
|
+
if (stats.lastAppendAt) {
|
|
1333
|
+
parts.push(`last append ${stats.lastAppendAt}`);
|
|
1334
|
+
}
|
|
1335
|
+
if (corrupted) {
|
|
1336
|
+
parts.push(`${stats.corruptedLines} corrupted line(s) skipped`);
|
|
1337
|
+
}
|
|
1338
|
+
return {
|
|
1339
|
+
key: "tombstones",
|
|
1340
|
+
status: corrupted ? "warn" : "ok",
|
|
1341
|
+
summary: `Tombstone invariant enabled. ${parts.join(", ")}. ` + (corrupted ? "Run `remnic doctor --rebuild-tombstones` to repair the log." : "Re-observation of retired facts is blocked at the storage chokepoint."),
|
|
1342
|
+
remediation: corrupted ? "Rebuild the tombstone log from retired memories on disk." : void 0,
|
|
1343
|
+
details: {
|
|
1344
|
+
enabled: true,
|
|
1345
|
+
count: stats.count,
|
|
1346
|
+
revoked: stats.revoked,
|
|
1347
|
+
lastAppendAt: stats.lastAppendAt,
|
|
1348
|
+
corruptedLines: stats.corruptedLines,
|
|
1349
|
+
loaded: stats.loaded
|
|
1350
|
+
}
|
|
1351
|
+
};
|
|
1352
|
+
} catch (err) {
|
|
1353
|
+
return {
|
|
1354
|
+
key: "tombstones",
|
|
1355
|
+
status: "warn",
|
|
1356
|
+
summary: "Could not read tombstone store stats.",
|
|
1357
|
+
remediation: "Ensure the memory state directory is readable and rerun `remnic doctor`.",
|
|
1358
|
+
details: { error: String(err) }
|
|
1359
|
+
};
|
|
1360
|
+
}
|
|
1361
|
+
}
|
|
1362
|
+
async function summarizeConsolidationProvenance(storage, config) {
|
|
1363
|
+
let report;
|
|
1364
|
+
try {
|
|
1365
|
+
report = await runConsolidationProvenanceCheck({
|
|
1366
|
+
storage,
|
|
1367
|
+
memoryDir: config.memoryDir,
|
|
1368
|
+
// Honor the configured sidecar directory (PR #634 review): when an
|
|
1369
|
+
// operator overrides `versioningSidecarDir`, the default `.versions`
|
|
1370
|
+
// would point at the wrong location and every entry would report as
|
|
1371
|
+
// missing. Undefined falls back to the helper's default.
|
|
1372
|
+
sidecarDir: config.versioningSidecarDir
|
|
1373
|
+
});
|
|
1374
|
+
} catch (err) {
|
|
1375
|
+
return {
|
|
1376
|
+
key: "consolidation_provenance",
|
|
1377
|
+
status: "warn",
|
|
1378
|
+
summary: "Could not run consolidation-provenance integrity check.",
|
|
1379
|
+
remediation: "Ensure the memory directory is readable and rerun `remnic doctor`.",
|
|
1380
|
+
details: { error: String(err) }
|
|
1381
|
+
};
|
|
1382
|
+
}
|
|
1383
|
+
if (report.issues.length === 0) {
|
|
1384
|
+
return {
|
|
1385
|
+
key: "consolidation_provenance",
|
|
1386
|
+
status: "ok",
|
|
1387
|
+
summary: report.withProvenance === 0 ? "No consolidation-provenance memories on disk yet." : `${report.withProvenance} consolidation-provenance memories verified (no broken references).`,
|
|
1388
|
+
details: report
|
|
1389
|
+
};
|
|
1390
|
+
}
|
|
1391
|
+
return {
|
|
1392
|
+
key: "consolidation_provenance",
|
|
1393
|
+
status: "warn",
|
|
1394
|
+
summary: `${report.issues.length} consolidation-provenance integrity issue(s) detected across ${report.withProvenance} memories with provenance frontmatter.`,
|
|
1395
|
+
remediation: "Broken pointers are informational. Inspect flagged memories, and if they should resolve, re-snapshot via a consolidation pass or accept pruning.",
|
|
1396
|
+
details: report
|
|
1397
|
+
};
|
|
1398
|
+
}
|
|
1399
|
+
function getMemoryAgeBand(memory, now) {
|
|
1400
|
+
const created = Date.parse(memory.frontmatter.created ?? "");
|
|
1401
|
+
if (!Number.isFinite(created)) return "unknown";
|
|
1402
|
+
const ageDays = Math.max(0, Math.floor((now.getTime() - created) / 864e5));
|
|
1403
|
+
if (ageDays < 7) return "0_6d";
|
|
1404
|
+
if (ageDays < 30) return "7_29d";
|
|
1405
|
+
if (ageDays < 90) return "30_89d";
|
|
1406
|
+
return "90d_plus";
|
|
1407
|
+
}
|
|
1408
|
+
async function dirSize(targetPath) {
|
|
1409
|
+
try {
|
|
1410
|
+
const info = await stat(targetPath);
|
|
1411
|
+
if (info.isFile()) return info.size;
|
|
1412
|
+
if (!info.isDirectory()) return 0;
|
|
1413
|
+
} catch {
|
|
1414
|
+
return 0;
|
|
1415
|
+
}
|
|
1416
|
+
let total = 0;
|
|
1417
|
+
let entries;
|
|
1418
|
+
try {
|
|
1419
|
+
entries = await readdir(targetPath, { withFileTypes: true });
|
|
1420
|
+
} catch {
|
|
1421
|
+
return 0;
|
|
1422
|
+
}
|
|
1423
|
+
for (const entry of entries) {
|
|
1424
|
+
total += await dirSize(path.join(targetPath, entry.name));
|
|
1425
|
+
}
|
|
1426
|
+
return total;
|
|
1427
|
+
}
|
|
1428
|
+
async function summarizeStorageFootprint(memoryDir) {
|
|
1429
|
+
const topLevel = [
|
|
1430
|
+
"facts",
|
|
1431
|
+
"entities",
|
|
1432
|
+
"questions",
|
|
1433
|
+
"corrections",
|
|
1434
|
+
"artifacts",
|
|
1435
|
+
"state",
|
|
1436
|
+
"identity",
|
|
1437
|
+
"namespaces",
|
|
1438
|
+
"summaries",
|
|
1439
|
+
"profile.md"
|
|
1440
|
+
];
|
|
1441
|
+
const byTopLevel = {};
|
|
1442
|
+
let bytes = 0;
|
|
1443
|
+
for (const name of topLevel) {
|
|
1444
|
+
const size = await dirSize(path.join(memoryDir, name));
|
|
1445
|
+
if (size > 0) {
|
|
1446
|
+
byTopLevel[name] = size;
|
|
1447
|
+
bytes += size;
|
|
1448
|
+
}
|
|
1449
|
+
}
|
|
1450
|
+
return { bytes, byTopLevel };
|
|
1451
|
+
}
|
|
1452
|
+
async function runOperatorInventory(options) {
|
|
1453
|
+
const now = options.now ?? /* @__PURE__ */ new Date();
|
|
1454
|
+
const config = options.orchestrator.config;
|
|
1455
|
+
const namespaceEntries = await listNamespaces({ config });
|
|
1456
|
+
const uniqueRootEntries = /* @__PURE__ */ new Map();
|
|
1457
|
+
for (const entry of namespaceEntries) {
|
|
1458
|
+
if (!uniqueRootEntries.has(entry.rootDir)) {
|
|
1459
|
+
uniqueRootEntries.set(entry.rootDir, { namespace: entry.namespace, rootDir: entry.rootDir });
|
|
1460
|
+
}
|
|
1461
|
+
}
|
|
1462
|
+
const categories = {};
|
|
1463
|
+
const statuses = {};
|
|
1464
|
+
const ageBands = {
|
|
1465
|
+
"0_6d": 0,
|
|
1466
|
+
"7_29d": 0,
|
|
1467
|
+
"30_89d": 0,
|
|
1468
|
+
"90d_plus": 0,
|
|
1469
|
+
unknown: 0
|
|
1470
|
+
};
|
|
1471
|
+
const namespaces = [];
|
|
1472
|
+
let totalMemories = 0;
|
|
1473
|
+
let totalEntities = 0;
|
|
1474
|
+
let archived = 0;
|
|
1475
|
+
let pendingReview = 0;
|
|
1476
|
+
let quarantined = 0;
|
|
1477
|
+
let rejected = 0;
|
|
1478
|
+
for (const entry of uniqueRootEntries.values()) {
|
|
1479
|
+
const storage = new StorageManager(entry.rootDir, void 0, false);
|
|
1480
|
+
const memories = await storage.readAllMemories();
|
|
1481
|
+
const entities = await storage.readAllEntityFiles();
|
|
1482
|
+
namespaces.push({
|
|
1483
|
+
namespace: entry.namespace,
|
|
1484
|
+
memoryCount: memories.length,
|
|
1485
|
+
entityCount: entities.length
|
|
1486
|
+
});
|
|
1487
|
+
totalMemories += memories.length;
|
|
1488
|
+
totalEntities += entities.length;
|
|
1489
|
+
for (const memory of memories) {
|
|
1490
|
+
const category = memory.frontmatter.category;
|
|
1491
|
+
categories[category] = (categories[category] ?? 0) + 1;
|
|
1492
|
+
const status = memory.frontmatter.status ?? "active";
|
|
1493
|
+
statuses[status] = (statuses[status] ?? 0) + 1;
|
|
1494
|
+
ageBands[getMemoryAgeBand(memory, now)] += 1;
|
|
1495
|
+
if (status === "archived") archived += 1;
|
|
1496
|
+
if (status === "pending_review") pendingReview += 1;
|
|
1497
|
+
if (status === "quarantined") quarantined += 1;
|
|
1498
|
+
if (status === "rejected") rejected += 1;
|
|
1499
|
+
}
|
|
1500
|
+
}
|
|
1501
|
+
const defaultStorage = new StorageManager(config.memoryDir);
|
|
1502
|
+
const profile = await defaultStorage.readProfile();
|
|
1503
|
+
const footprint = await summarizeStorageFootprint(config.memoryDir);
|
|
1504
|
+
const reviewRunId = (await listMemoryGovernanceRuns(config.memoryDir))[0];
|
|
1505
|
+
let reviewQueue = 0;
|
|
1506
|
+
if (reviewRunId) {
|
|
1507
|
+
try {
|
|
1508
|
+
reviewQueue = (await readMemoryGovernanceRunArtifact(config.memoryDir, reviewRunId)).reviewQueue.length;
|
|
1509
|
+
} catch {
|
|
1510
|
+
reviewQueue = 0;
|
|
1511
|
+
}
|
|
1512
|
+
}
|
|
1513
|
+
const conversationIndex = await options.orchestrator.conversationIndexCoordinator.getHealth();
|
|
1514
|
+
const nativeKnowledgeStatus = await summarizeNativeKnowledgeStatus(config);
|
|
1515
|
+
return {
|
|
1516
|
+
schemaVersion: 1,
|
|
1517
|
+
generatedAt: now.toISOString(),
|
|
1518
|
+
memoryDir: config.memoryDir,
|
|
1519
|
+
totals: {
|
|
1520
|
+
memories: totalMemories,
|
|
1521
|
+
entities: totalEntities,
|
|
1522
|
+
namespaces: namespaceEntries.length,
|
|
1523
|
+
reviewQueue,
|
|
1524
|
+
storageBytes: footprint.bytes
|
|
1525
|
+
},
|
|
1526
|
+
categories,
|
|
1527
|
+
statuses,
|
|
1528
|
+
namespaces,
|
|
1529
|
+
ageBands,
|
|
1530
|
+
profile: {
|
|
1531
|
+
exists: profile.length > 0,
|
|
1532
|
+
chars: profile.length,
|
|
1533
|
+
lines: profile.length > 0 ? profile.split("\n").length : 0
|
|
1534
|
+
},
|
|
1535
|
+
storageFootprint: footprint,
|
|
1536
|
+
archivePressure: {
|
|
1537
|
+
archived,
|
|
1538
|
+
pendingReview,
|
|
1539
|
+
quarantined,
|
|
1540
|
+
rejected
|
|
1541
|
+
},
|
|
1542
|
+
conversationIndex: {
|
|
1543
|
+
enabled: conversationIndex.enabled,
|
|
1544
|
+
backend: conversationIndex.backend,
|
|
1545
|
+
status: conversationIndex.status,
|
|
1546
|
+
chunkDocCount: conversationIndex.chunkDocCount,
|
|
1547
|
+
lastUpdateAt: conversationIndex.lastUpdateAt
|
|
1548
|
+
},
|
|
1549
|
+
nativeKnowledge: {
|
|
1550
|
+
enabled: nativeKnowledgeStatus.enabled,
|
|
1551
|
+
curatedIncludeSync: nativeKnowledgeStatus.curatedIncludeSync,
|
|
1552
|
+
obsidianSync: nativeKnowledgeStatus.obsidianSync,
|
|
1553
|
+
openclawWorkspaceSync: nativeKnowledgeStatus.openclawWorkspaceSync
|
|
1554
|
+
}
|
|
1555
|
+
};
|
|
1556
|
+
}
|
|
1557
|
+
async function runBenchmarkRecall(options) {
|
|
1558
|
+
const now = options.now ?? /* @__PURE__ */ new Date();
|
|
1559
|
+
const status = await getEvalHarnessStatus({
|
|
1560
|
+
memoryDir: options.config.memoryDir,
|
|
1561
|
+
evalStoreDir: options.config.evalStoreDir,
|
|
1562
|
+
enabled: resolveEvalCapabilities(options.config).evalHarness,
|
|
1563
|
+
shadowModeEnabled: resolveEvalCapabilities(options.config).evalShadowMode,
|
|
1564
|
+
baselineSnapshotsEnabled: resolveEvalCapabilities(options.config).benchmarkBaselineSnapshots,
|
|
1565
|
+
memoryRedTeamBenchEnabled: resolveEvalCapabilities(options.config).memoryRedTeamBench
|
|
1566
|
+
});
|
|
1567
|
+
if (options.createSnapshot && options.snapshotId) {
|
|
1568
|
+
const snapshot = await createEvalBaselineSnapshot({
|
|
1569
|
+
memoryDir: options.config.memoryDir,
|
|
1570
|
+
evalStoreDir: options.config.evalStoreDir,
|
|
1571
|
+
baselineSnapshotsEnabled: resolveEvalCapabilities(options.config).benchmarkBaselineSnapshots,
|
|
1572
|
+
snapshotId: options.snapshotId,
|
|
1573
|
+
notes: options.snapshotNotes,
|
|
1574
|
+
gitRef: options.gitRef,
|
|
1575
|
+
createdAt: options.createdAt
|
|
1576
|
+
});
|
|
1577
|
+
return {
|
|
1578
|
+
schemaVersion: 1,
|
|
1579
|
+
generatedAt: now.toISOString(),
|
|
1580
|
+
mode: "snapshot",
|
|
1581
|
+
status,
|
|
1582
|
+
snapshot: {
|
|
1583
|
+
targetPath: snapshot.targetPath,
|
|
1584
|
+
snapshotId: snapshot.snapshot.snapshotId
|
|
1585
|
+
}
|
|
1586
|
+
};
|
|
1587
|
+
}
|
|
1588
|
+
if (options.baseEvalStoreDir && options.candidateEvalStoreDir) {
|
|
1589
|
+
const ciGate = await runEvalBenchmarkCiGate({
|
|
1590
|
+
baseEvalStoreDir: options.baseEvalStoreDir,
|
|
1591
|
+
candidateEvalStoreDir: options.candidateEvalStoreDir
|
|
1592
|
+
});
|
|
1593
|
+
return {
|
|
1594
|
+
schemaVersion: 1,
|
|
1595
|
+
generatedAt: now.toISOString(),
|
|
1596
|
+
mode: "ci-gate",
|
|
1597
|
+
status,
|
|
1598
|
+
ciGate
|
|
1599
|
+
};
|
|
1600
|
+
}
|
|
1601
|
+
if (options.snapshotId) {
|
|
1602
|
+
const baselineReport = await runEvalBaselineDeltaReport({
|
|
1603
|
+
memoryDir: options.config.memoryDir,
|
|
1604
|
+
evalStoreDir: options.config.evalStoreDir,
|
|
1605
|
+
benchmarkDeltaReporterEnabled: resolveEvalCapabilities(options.config).benchmarkDeltaReporter,
|
|
1606
|
+
snapshotId: options.snapshotId
|
|
1607
|
+
});
|
|
1608
|
+
return {
|
|
1609
|
+
schemaVersion: 1,
|
|
1610
|
+
generatedAt: now.toISOString(),
|
|
1611
|
+
mode: "baseline-report",
|
|
1612
|
+
status,
|
|
1613
|
+
baselineReport
|
|
1614
|
+
};
|
|
1615
|
+
}
|
|
1616
|
+
if (options.validatePath) {
|
|
1617
|
+
const validate = await validateEvalBenchmarkPack(options.validatePath, {
|
|
1618
|
+
memoryRedTeamBenchEnabled: resolveEvalCapabilities(options.config).memoryRedTeamBench
|
|
1619
|
+
});
|
|
1620
|
+
return {
|
|
1621
|
+
schemaVersion: 1,
|
|
1622
|
+
generatedAt: now.toISOString(),
|
|
1623
|
+
mode: "validate",
|
|
1624
|
+
status,
|
|
1625
|
+
validate
|
|
1626
|
+
};
|
|
1627
|
+
}
|
|
1628
|
+
return {
|
|
1629
|
+
schemaVersion: 1,
|
|
1630
|
+
generatedAt: now.toISOString(),
|
|
1631
|
+
mode: "status",
|
|
1632
|
+
status
|
|
1633
|
+
};
|
|
1634
|
+
}
|
|
1635
|
+
async function runOperatorRepair(options) {
|
|
1636
|
+
const now = options.now ?? /* @__PURE__ */ new Date();
|
|
1637
|
+
const dryRun = options.dryRun === true || options.apply !== true;
|
|
1638
|
+
const sessionCheck = await analyzeSessionIntegrity({ memoryDir: options.config.memoryDir });
|
|
1639
|
+
const sessionRepairPlan = planSessionRepair({
|
|
1640
|
+
report: sessionCheck,
|
|
1641
|
+
dryRun,
|
|
1642
|
+
allowSessionFileRepair: options.allowSessionFileRepair,
|
|
1643
|
+
sessionFilesDir: options.sessionFilesDir
|
|
1644
|
+
});
|
|
1645
|
+
const sessionRepairApply = await applySessionRepair({
|
|
1646
|
+
plan: sessionRepairPlan
|
|
1647
|
+
});
|
|
1648
|
+
const graphCaps = resolveGraphConstructionCapabilities(options.config);
|
|
1649
|
+
const graphHealth = await analyzeGraphHealth(options.config.memoryDir, {
|
|
1650
|
+
entityGraphEnabled: graphCaps.entityGraph,
|
|
1651
|
+
timeGraphEnabled: graphCaps.timeGraph,
|
|
1652
|
+
causalGraphEnabled: graphCaps.causalGraph,
|
|
1653
|
+
includeRepairGuidance: true
|
|
1654
|
+
});
|
|
1655
|
+
return {
|
|
1656
|
+
schemaVersion: 1,
|
|
1657
|
+
generatedAt: now.toISOString(),
|
|
1658
|
+
dryRun,
|
|
1659
|
+
sessionCheck,
|
|
1660
|
+
sessionRepairPlan,
|
|
1661
|
+
sessionRepairApply,
|
|
1662
|
+
graphHealth
|
|
1663
|
+
};
|
|
1664
|
+
}
|
|
1665
|
+
|
|
1666
|
+
export {
|
|
1667
|
+
runNamespaceMaintenanceFanout,
|
|
1668
|
+
summarizeNamespaceMaintenanceHealth,
|
|
1669
|
+
formatNamespaceMaintenanceHealthText,
|
|
1670
|
+
runOperatorSetup,
|
|
1671
|
+
runOperatorConfigReview,
|
|
1672
|
+
summarizeProvenanceCoverage,
|
|
1673
|
+
summarizeProjectionHealth,
|
|
1674
|
+
runOperatorDoctor,
|
|
1675
|
+
summarizeMemoryWorthLegacyCounters,
|
|
1676
|
+
summarizeBufferSurpriseDistribution,
|
|
1677
|
+
summarizeTierDistribution,
|
|
1678
|
+
summarizeDreamsPhases,
|
|
1679
|
+
summarizeObservationThroughput,
|
|
1680
|
+
summarizeTombstoneStatus,
|
|
1681
|
+
summarizeConsolidationProvenance,
|
|
1682
|
+
runOperatorInventory,
|
|
1683
|
+
runBenchmarkRecall,
|
|
1684
|
+
runOperatorRepair
|
|
1685
|
+
};
|
|
1686
|
+
//# sourceMappingURL=chunk-B7SSU55V.js.map
|