@remnic/core 9.4.2 → 9.5.0
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/access-admin-ops-surface.d.ts +5 -5
- package/dist/access-admin-ops-surface.js +26 -26
- package/dist/access-boundary.d.ts +26 -7
- package/dist/access-boundary.js +31 -27
- package/dist/access-cli.js +79 -77
- package/dist/access-cli.js.map +1 -1
- package/dist/access-http.d.ts +51 -5
- package/dist/access-http.js +38 -36
- package/dist/access-identity-continuity-surface.d.ts +4 -4
- package/dist/access-identity-continuity-surface.js +26 -26
- package/dist/access-lcm-surface.d.ts +5 -5
- package/dist/access-lcm-surface.js +26 -26
- package/dist/access-mcp.d.ts +15 -5
- package/dist/access-mcp.js +35 -33
- package/dist/access-observe-write-surface.d.ts +5 -5
- package/dist/access-observe-write-surface.js +26 -26
- package/dist/access-operations-batch.js +31 -30
- package/dist/access-operations.d.ts +7 -7
- package/dist/access-operations.js +33 -32
- package/dist/access-recall-surface.d.ts +5 -5
- package/dist/access-recall-surface.js +26 -26
- package/dist/access-schema.js +4 -4
- package/dist/{access-service-m-2VO_Ig.d.ts → access-service-DZX0sYAv.d.ts} +3 -3
- package/dist/access-service.d.ts +5 -5
- package/dist/access-service.js +26 -26
- package/dist/access-surface-catalog.d.ts +5 -5
- package/dist/access-surface-catalog.js +1 -0
- package/dist/access-surface-catalog.js.map +1 -1
- package/dist/access-token-capabilities.d.ts +174 -0
- package/dist/access-token-capabilities.js +33 -0
- package/dist/action-confidence.d.ts +1 -1
- package/dist/active-memory-bridge.d.ts +1 -1
- package/dist/active-recall.d.ts +1 -1
- package/dist/active-recall.js +1 -1
- package/dist/adapters/index.js +4 -4
- package/dist/adapters/registry.js +2 -2
- package/dist/{auto-sync-HMHQHUAG.js → auto-sync-G6IU7L6C.js} +3 -3
- package/dist/behavior-learner.d.ts +1 -1
- package/dist/behavior-signals.d.ts +1 -1
- package/dist/bootstrap.d.ts +4 -4
- package/dist/briefing.d.ts +1 -1
- package/dist/briefing.js +7 -7
- package/dist/buffer-surprise-report.d.ts +1 -1
- package/dist/buffer.d.ts +1 -1
- package/dist/calibration.d.ts +1 -1
- package/dist/capabilities.d.ts +1 -1
- package/dist/{capsule-crypto-CZJSLEFG.js → capsule-crypto-RAARDY3M.js} +2 -2
- package/dist/capsule-crypto-RAARDY3M.js.map +1 -0
- package/dist/{catalog-BxWokdC2.d.ts → catalog-DoH2b0OR.d.ts} +1 -1
- package/dist/causal-behavior.d.ts +1 -1
- package/dist/causal-behavior.js +5 -5
- package/dist/causal-chain.js +3 -3
- package/dist/causal-consolidation.d.ts +1 -1
- package/dist/causal-consolidation.js +11 -11
- package/dist/causal-retrieval.js +3 -3
- package/dist/causal-trajectory-graph.d.ts +1 -1
- package/dist/causal-trajectory.js +1 -1
- package/dist/{chunk-7QWMTOIF.js → chunk-2B7DP7AP.js} +31 -31
- package/dist/{chunk-4BFRBP45.js → chunk-2JFDHI2K.js} +2 -2
- package/dist/{chunk-OHDJ34CC.js → chunk-2SFEFR5I.js} +2 -2
- package/dist/{chunk-E2SPGGUI.js → chunk-4OKLXWDZ.js} +13 -6
- package/dist/chunk-4OKLXWDZ.js.map +1 -0
- package/dist/{chunk-ILFJ7AVS.js → chunk-4WNLSSHL.js} +35 -21
- package/dist/chunk-4WNLSSHL.js.map +1 -0
- package/dist/{chunk-YDSWRD33.js → chunk-5K5VEDFY.js} +4 -4
- package/dist/{chunk-CZAZX7JP.js → chunk-7BAJAXGB.js} +4 -4
- package/dist/{chunk-CXLNZXG5.js → chunk-7XGSIUP5.js} +1 -1
- package/dist/{chunk-ZPOROUTX.js → chunk-AOYJVCFN.js} +5 -5
- package/dist/{chunk-IC6QX5TC.js → chunk-BGMSRN6I.js} +5 -5
- package/dist/{chunk-5QZDMSSN.js → chunk-CXEL3Y22.js} +70 -70
- package/dist/{chunk-M5QKGHCR.js → chunk-CYWCKFCL.js} +5 -5
- package/dist/{chunk-2U2A5HF4.js → chunk-D2XYYU5Q.js} +5 -5
- package/dist/chunk-D7FOKIY5.js +173 -0
- package/dist/chunk-D7FOKIY5.js.map +1 -0
- package/dist/{chunk-DGYCWCQ7.js → chunk-DZSAXE3T.js} +2 -2
- package/dist/{chunk-2BFLDH5F.js → chunk-EEIROWEG.js} +2 -2
- package/dist/{chunk-6ZIETXZ2.js → chunk-H5PFR5ZT.js} +2 -2
- package/dist/{chunk-2FOD2YY3.js → chunk-I74ZEBMA.js} +236 -103
- package/dist/chunk-I74ZEBMA.js.map +1 -0
- package/dist/chunk-IC2TCZJ2.js +54 -0
- package/dist/chunk-IC2TCZJ2.js.map +1 -0
- package/dist/{chunk-66FLU5BT.js → chunk-II6WHCCW.js} +6 -6
- package/dist/{chunk-YPEMNNNY.js → chunk-ITWTKT2R.js} +6 -6
- package/dist/{chunk-AKUCU7CI.js → chunk-JI5AVXYO.js} +5 -5
- package/dist/{chunk-27FLVMDC.js → chunk-KMF67QDQ.js} +7 -7
- package/dist/{chunk-FLVL4L3L.js → chunk-KTULX4YO.js} +4 -4
- package/dist/{chunk-FZGGZAAU.js → chunk-L2QJQSHL.js} +146 -2
- package/dist/chunk-L2QJQSHL.js.map +1 -0
- package/dist/{chunk-4P4626RY.js → chunk-L4UZBJNM.js} +4 -4
- package/dist/{chunk-JLR3JSTL.js → chunk-L6V3WJ55.js} +3 -3
- package/dist/{chunk-6BISDEN6.js → chunk-LNHJ32NK.js} +14 -14
- package/dist/{chunk-437S3G37.js → chunk-LNQUAJNC.js} +1 -1
- package/dist/{chunk-LOR6ZM5R.js → chunk-MFDJ63U5.js} +2 -2
- package/dist/{chunk-HRCACVHL.js → chunk-NFTABV56.js} +2 -2
- package/dist/{chunk-OUMTBFSQ.js → chunk-NKCPUHCI.js} +5 -5
- package/dist/{chunk-KCJ5H6XQ.js → chunk-ODSYJXDU.js} +2 -2
- package/dist/{chunk-2QSZNTDO.js → chunk-RKNJBZ55.js} +4 -4
- package/dist/{chunk-NG7YBCJO.js → chunk-SNBEVJBX.js} +4 -4
- package/dist/{chunk-CZAA5N5S.js → chunk-SNNIUDRS.js} +2 -2
- package/dist/{chunk-P6SYWE4G.js → chunk-STCCFQU5.js} +9 -9
- package/dist/{chunk-X4A62ET7.js → chunk-TI7IHDBQ.js} +17 -17
- package/dist/{chunk-BGTAL46Y.js → chunk-TV7C3HCB.js} +2 -2
- package/dist/{chunk-EPGWWCZF.js → chunk-UBGAOYBP.js} +6 -6
- package/dist/{chunk-M7GGMGMZ.js → chunk-UDCDGP6A.js} +15 -15
- package/dist/{chunk-2MR3MFQB.js → chunk-UPSAT4PY.js} +2 -2
- package/dist/{chunk-CGS7UKWM.js → chunk-VCW74PNH.js} +2 -2
- package/dist/{chunk-DR6PEJU3.js → chunk-VWEWK2BM.js} +44 -59
- package/dist/chunk-VWEWK2BM.js.map +1 -0
- package/dist/{chunk-CLX5VDNY.js → chunk-Y4RKAQZ7.js} +4 -4
- package/dist/{chunk-EZ25VE3G.js → chunk-YNDLCWXS.js} +4 -4
- package/dist/{cli-EiBBOt3r.d.ts → cli-1dghPCO2.d.ts} +3 -3
- package/dist/cli.d.ts +6 -6
- package/dist/cli.js +57 -55
- package/dist/compounding/engine.d.ts +1 -1
- package/dist/compounding/engine.js +7 -7
- package/dist/compounding/preference-consolidator.d.ts +1 -1
- package/dist/compression-optimizer.d.ts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/config.js +1 -1
- package/dist/connectors/codex-materialize-runner.d.ts +1 -1
- package/dist/connectors/codex-materialize-runner.js +7 -7
- package/dist/connectors/codex-materialize.d.ts +1 -1
- package/dist/connectors/index.d.ts +1 -1
- package/dist/connectors/index.js +11 -9
- package/dist/consolidation-provenance-check.d.ts +1 -1
- package/dist/consolidation-undo.d.ts +1 -1
- package/dist/contradiction/index.d.ts +1 -1
- package/dist/contradiction/index.js +4 -4
- package/dist/conversation-index/backend.d.ts +1 -1
- package/dist/conversation-index/backend.js +2 -2
- package/dist/conversation-index/chunker.d.ts +1 -1
- package/dist/conversation-index/faiss-adapter.d.ts +1 -1
- package/dist/conversation-index/indexer.d.ts +1 -1
- package/dist/conversation-index/search.d.ts +1 -1
- package/dist/dashboard-runtime.js +2 -2
- package/dist/day-summary.d.ts +1 -1
- package/dist/delinearize.d.ts +1 -1
- package/dist/direct-answer-wiring.d.ts +1 -1
- package/dist/direct-answer.d.ts +1 -1
- package/dist/embedding-fallback.d.ts +1 -1
- package/dist/enrichment/index.d.ts +1 -1
- package/dist/entity-retrieval.d.ts +1 -1
- package/dist/entity-retrieval.js +7 -7
- package/dist/entity-schema.d.ts +1 -1
- package/dist/explicit-capture.d.ts +4 -4
- package/dist/extraction-faithfulness.d.ts +1 -1
- package/dist/extraction-judge-telemetry.d.ts +1 -1
- package/dist/extraction-judge-training.d.ts +1 -1
- package/dist/extraction-judge.d.ts +1 -1
- package/dist/extraction.d.ts +1 -1
- package/dist/fallback-llm.d.ts +1 -1
- package/dist/{first-start-migration-DY6YCRC2.js → first-start-migration-VBJQL6OI.js} +5 -5
- package/dist/graph-dashboard-diff.d.ts +1 -1
- package/dist/graph-dashboard-key.d.ts +1 -1
- package/dist/graph-dashboard-parser.d.ts +1 -1
- package/dist/graph-edge-reinforcement.d.ts +1 -1
- package/dist/graph-snapshot.d.ts +1 -1
- package/dist/graph.d.ts +1 -1
- package/dist/identity-continuity.d.ts +1 -1
- package/dist/importance.d.ts +1 -1
- package/dist/index.d.ts +13 -10
- package/dist/index.js +115 -93
- package/dist/intent.d.ts +1 -1
- package/dist/lcm/engine.d.ts +1 -1
- package/dist/lcm/engine.js +2 -2
- package/dist/lcm/index.d.ts +1 -1
- package/dist/lcm/index.js +2 -2
- package/dist/lcm/tools.d.ts +1 -1
- package/dist/lifecycle.d.ts +1 -1
- package/dist/live-connectors-runner.d.ts +1 -1
- package/dist/local-llm.d.ts +1 -1
- package/dist/local-model-endpoint.d.ts +1 -1
- package/dist/maintenance/memory-governance.d.ts +1 -1
- package/dist/maintenance/memory-governance.js +8 -8
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +7 -7
- package/dist/maintenance/rebuild-memory-projection.js +9 -9
- package/dist/mcp-memory-inspector-app.d.ts +5 -5
- package/dist/mcp-read-only-tools.d.ts +16 -0
- package/dist/mcp-read-only-tools.js +8 -0
- package/dist/mcp-read-only-tools.js.map +1 -0
- package/dist/memory-action-policy.d.ts +1 -1
- package/dist/memory-cache.d.ts +1 -1
- package/dist/memory-lifecycle-ledger-utils.d.ts +1 -1
- package/dist/memory-projection-store.d.ts +1 -1
- package/dist/memory-provenance.d.ts +1 -1
- package/dist/memory-worth-outcomes.d.ts +1 -1
- package/dist/models-json.d.ts +1 -1
- package/dist/namespaces/migrate.d.ts +2 -2
- package/dist/namespaces/migrate.js +17 -17
- package/dist/namespaces/principal.d.ts +1 -1
- package/dist/namespaces/search.d.ts +1 -1
- package/dist/namespaces/search.js +9 -9
- package/dist/namespaces/storage.d.ts +2 -2
- package/dist/namespaces/storage.js +7 -7
- package/dist/native-knowledge.d.ts +1 -1
- package/dist/operator-toolkit.d.ts +1 -1
- package/dist/operator-toolkit.js +22 -22
- package/dist/orchestration/compression-guideline-coordinator.d.ts +1 -1
- package/dist/orchestration/maintenance.d.ts +2 -2
- package/dist/orchestration/maintenance.js +9 -9
- package/dist/{orchestrator-B2Y28Z9t.d.ts → orchestrator-Dh3WSW_O.d.ts} +3 -3
- package/dist/orchestrator.d.ts +4 -4
- package/dist/orchestrator.js +81 -79
- package/dist/patterns-cli.d.ts +1 -1
- package/dist/policy-runtime.d.ts +1 -1
- package/dist/provenance.d.ts +1 -1
- package/dist/{qmd-Db9mOkzB.d.ts → qmd-DoUVxqND.d.ts} +1 -1
- package/dist/qmd-preflight.d.ts +2 -2
- package/dist/qmd-recall-cache.d.ts +1 -1
- package/dist/qmd.d.ts +2 -2
- package/dist/recall-disclosure-escalation.d.ts +1 -1
- package/dist/recall-explain-renderer.d.ts +1 -1
- package/dist/recall-planner-llm.d.ts +1 -1
- package/dist/recall-state.d.ts +1 -1
- package/dist/recall-tag-filter.d.ts +1 -1
- package/dist/recall-timings.d.ts +1 -1
- package/dist/recall-xray-cli.d.ts +1 -1
- package/dist/recall-xray-renderer.d.ts +1 -1
- package/dist/recall-xray.d.ts +1 -1
- package/dist/resolve-auth-token.d.ts +1 -1
- package/dist/resume-bundles.js +2 -2
- package/dist/retrieval-agents.d.ts +2 -2
- package/dist/retrieval-tiers.d.ts +1 -1
- package/dist/routing/engine.d.ts +1 -1
- package/dist/routing/store.d.ts +1 -1
- package/dist/search/embed-helper.d.ts +1 -1
- package/dist/search/factory.d.ts +1 -1
- package/dist/search/factory.js +8 -8
- package/dist/search/index.d.ts +1 -1
- package/dist/search/index.js +12 -12
- package/dist/search/lancedb-backend.d.ts +1 -1
- package/dist/search/lancedb-backend.js +2 -2
- package/dist/search/meilisearch-backend.d.ts +1 -1
- package/dist/search/meilisearch-backend.js +2 -2
- package/dist/search/noop-backend.d.ts +1 -1
- package/dist/search/orama-backend.d.ts +1 -1
- package/dist/search/orama-backend.js +2 -2
- package/dist/search/port.d.ts +1 -1
- package/dist/search/remote-backend.d.ts +1 -1
- package/dist/{semantic-consolidation-BDVIbLRw.d.ts → semantic-consolidation-Dof1865o.d.ts} +1 -1
- package/dist/semantic-consolidation.d.ts +2 -2
- package/dist/semantic-consolidation.js +9 -9
- package/dist/semantic-rule-promotion.js +7 -7
- package/dist/semantic-rule-verifier.d.ts +1 -1
- package/dist/semantic-rule-verifier.js +8 -8
- package/dist/session-observer-bands.d.ts +1 -1
- package/dist/session-observer-state.d.ts +1 -1
- package/dist/shared-context/manager.d.ts +1 -1
- package/dist/signal.d.ts +1 -1
- package/dist/storage.d.ts +1 -1
- package/dist/storage.js +6 -6
- package/dist/summarizer.d.ts +1 -1
- package/dist/summary-snapshot.d.ts +1 -1
- package/dist/temporal-supersession.d.ts +1 -1
- package/dist/temporal-validity.d.ts +1 -1
- package/dist/threading.d.ts +1 -1
- package/dist/tier-migration.d.ts +1 -1
- package/dist/tier-routing.d.ts +1 -1
- package/dist/{tier-stats-TG6GUZ6N.js → tier-stats-5XF4UBRQ.js} +4 -4
- package/dist/tokens.d.ts +17 -2
- package/dist/tokens.js +3 -1
- package/dist/topics.d.ts +1 -1
- package/dist/transcript.d.ts +1 -1
- package/dist/transfer/backup.js +2 -2
- package/dist/transfer/capsule-export.js +3 -3
- package/dist/transfer/capsule-import.js +3 -3
- package/dist/trust-score-stage.d.ts +1 -1
- package/dist/trust-score.d.ts +1 -1
- package/dist/{types-ljkd82rn.d.ts → types-C7HUgOuA.d.ts} +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/utility-runtime.d.ts +1 -1
- package/dist/verified-recall.js +8 -8
- package/package.json +2 -2
- package/src/access-boundary.test.ts +62 -0
- package/src/access-boundary.ts +165 -126
- package/src/access-http.test.ts +781 -0
- package/src/access-http.ts +334 -108
- package/src/access-mcp.test.ts +264 -0
- package/src/access-mcp.ts +45 -70
- package/src/access-operations-batch.ts +35 -12
- package/src/access-surface-catalog.test.ts +22 -14
- package/src/access-surface-catalog.ts +6 -3
- package/src/access-token-capabilities.test.ts +844 -0
- package/src/access-token-capabilities.ts +391 -0
- package/src/chat/chat-mcp.test.ts +232 -0
- package/src/chat/chat-session.ts +34 -0
- package/src/index.ts +14 -0
- package/src/mcp-read-only-tools.ts +61 -0
- package/src/tokens.ts +32 -3
- package/dist/chunk-2FOD2YY3.js.map +0 -1
- package/dist/chunk-DR6PEJU3.js.map +0 -1
- package/dist/chunk-E2SPGGUI.js.map +0 -1
- package/dist/chunk-FZGGZAAU.js.map +0 -1
- package/dist/chunk-ILFJ7AVS.js.map +0 -1
- /package/dist/{capsule-crypto-CZJSLEFG.js.map → access-token-capabilities.js.map} +0 -0
- /package/dist/{auto-sync-HMHQHUAG.js.map → auto-sync-G6IU7L6C.js.map} +0 -0
- /package/dist/{chunk-7QWMTOIF.js.map → chunk-2B7DP7AP.js.map} +0 -0
- /package/dist/{chunk-4BFRBP45.js.map → chunk-2JFDHI2K.js.map} +0 -0
- /package/dist/{chunk-OHDJ34CC.js.map → chunk-2SFEFR5I.js.map} +0 -0
- /package/dist/{chunk-YDSWRD33.js.map → chunk-5K5VEDFY.js.map} +0 -0
- /package/dist/{chunk-CZAZX7JP.js.map → chunk-7BAJAXGB.js.map} +0 -0
- /package/dist/{chunk-CXLNZXG5.js.map → chunk-7XGSIUP5.js.map} +0 -0
- /package/dist/{chunk-ZPOROUTX.js.map → chunk-AOYJVCFN.js.map} +0 -0
- /package/dist/{chunk-IC6QX5TC.js.map → chunk-BGMSRN6I.js.map} +0 -0
- /package/dist/{chunk-5QZDMSSN.js.map → chunk-CXEL3Y22.js.map} +0 -0
- /package/dist/{chunk-M5QKGHCR.js.map → chunk-CYWCKFCL.js.map} +0 -0
- /package/dist/{chunk-2U2A5HF4.js.map → chunk-D2XYYU5Q.js.map} +0 -0
- /package/dist/{chunk-DGYCWCQ7.js.map → chunk-DZSAXE3T.js.map} +0 -0
- /package/dist/{chunk-2BFLDH5F.js.map → chunk-EEIROWEG.js.map} +0 -0
- /package/dist/{chunk-6ZIETXZ2.js.map → chunk-H5PFR5ZT.js.map} +0 -0
- /package/dist/{chunk-66FLU5BT.js.map → chunk-II6WHCCW.js.map} +0 -0
- /package/dist/{chunk-YPEMNNNY.js.map → chunk-ITWTKT2R.js.map} +0 -0
- /package/dist/{chunk-AKUCU7CI.js.map → chunk-JI5AVXYO.js.map} +0 -0
- /package/dist/{chunk-27FLVMDC.js.map → chunk-KMF67QDQ.js.map} +0 -0
- /package/dist/{chunk-FLVL4L3L.js.map → chunk-KTULX4YO.js.map} +0 -0
- /package/dist/{chunk-4P4626RY.js.map → chunk-L4UZBJNM.js.map} +0 -0
- /package/dist/{chunk-JLR3JSTL.js.map → chunk-L6V3WJ55.js.map} +0 -0
- /package/dist/{chunk-6BISDEN6.js.map → chunk-LNHJ32NK.js.map} +0 -0
- /package/dist/{chunk-437S3G37.js.map → chunk-LNQUAJNC.js.map} +0 -0
- /package/dist/{chunk-LOR6ZM5R.js.map → chunk-MFDJ63U5.js.map} +0 -0
- /package/dist/{chunk-HRCACVHL.js.map → chunk-NFTABV56.js.map} +0 -0
- /package/dist/{chunk-OUMTBFSQ.js.map → chunk-NKCPUHCI.js.map} +0 -0
- /package/dist/{chunk-KCJ5H6XQ.js.map → chunk-ODSYJXDU.js.map} +0 -0
- /package/dist/{chunk-2QSZNTDO.js.map → chunk-RKNJBZ55.js.map} +0 -0
- /package/dist/{chunk-NG7YBCJO.js.map → chunk-SNBEVJBX.js.map} +0 -0
- /package/dist/{chunk-CZAA5N5S.js.map → chunk-SNNIUDRS.js.map} +0 -0
- /package/dist/{chunk-P6SYWE4G.js.map → chunk-STCCFQU5.js.map} +0 -0
- /package/dist/{chunk-X4A62ET7.js.map → chunk-TI7IHDBQ.js.map} +0 -0
- /package/dist/{chunk-BGTAL46Y.js.map → chunk-TV7C3HCB.js.map} +0 -0
- /package/dist/{chunk-EPGWWCZF.js.map → chunk-UBGAOYBP.js.map} +0 -0
- /package/dist/{chunk-M7GGMGMZ.js.map → chunk-UDCDGP6A.js.map} +0 -0
- /package/dist/{chunk-2MR3MFQB.js.map → chunk-UPSAT4PY.js.map} +0 -0
- /package/dist/{chunk-CGS7UKWM.js.map → chunk-VCW74PNH.js.map} +0 -0
- /package/dist/{chunk-CLX5VDNY.js.map → chunk-Y4RKAQZ7.js.map} +0 -0
- /package/dist/{chunk-EZ25VE3G.js.map → chunk-YNDLCWXS.js.map} +0 -0
- /package/dist/{first-start-migration-DY6YCRC2.js.map → first-start-migration-VBJQL6OI.js.map} +0 -0
- /package/dist/{tier-stats-TG6GUZ6N.js.map → tier-stats-5XF4UBRQ.js.map} +0 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// src/mcp-read-only-tools.ts
|
|
2
|
+
var MCP_READ_ONLY_TOOL_SUFFIXES = {
|
|
3
|
+
recall: true,
|
|
4
|
+
recall_explain: true,
|
|
5
|
+
recall_tier_explain: true,
|
|
6
|
+
recall_xray: true,
|
|
7
|
+
briefing: true,
|
|
8
|
+
wearables_status: true,
|
|
9
|
+
transcript_day: true,
|
|
10
|
+
transcript_search: true,
|
|
11
|
+
transcript_memories: true,
|
|
12
|
+
action_confidence: true,
|
|
13
|
+
capsule_list: true,
|
|
14
|
+
procedural_stats: true,
|
|
15
|
+
memory_get: true,
|
|
16
|
+
memory_timeline: true,
|
|
17
|
+
entity_get: true,
|
|
18
|
+
review_queue_list: true,
|
|
19
|
+
lcm_search: true,
|
|
20
|
+
continuity_incident_list: true,
|
|
21
|
+
identity_anchor_get: true,
|
|
22
|
+
memory_identity: true,
|
|
23
|
+
memory_search: true,
|
|
24
|
+
memory_profile: true,
|
|
25
|
+
memory_entities_list: true,
|
|
26
|
+
memory_questions: true,
|
|
27
|
+
memory_last_recall: true,
|
|
28
|
+
memory_intent_debug: true,
|
|
29
|
+
memory_qmd_debug: true,
|
|
30
|
+
memory_graph_explain: true,
|
|
31
|
+
graph_snapshot: true,
|
|
32
|
+
review_list: true,
|
|
33
|
+
profiling_report: true,
|
|
34
|
+
peer_list: true,
|
|
35
|
+
peer_get: true,
|
|
36
|
+
peer_profile_get: true,
|
|
37
|
+
console_state: true,
|
|
38
|
+
dreams_status: true,
|
|
39
|
+
codegraph_list_projects: true,
|
|
40
|
+
codegraph_index_status: true,
|
|
41
|
+
codegraph_search_graph: true,
|
|
42
|
+
codegraph_trace_path: true,
|
|
43
|
+
codegraph_detect_changes: true,
|
|
44
|
+
codegraph_query_graph: true,
|
|
45
|
+
codegraph_get_schema: true,
|
|
46
|
+
codegraph_get_snippet: true,
|
|
47
|
+
codegraph_get_architecture: true,
|
|
48
|
+
codegraph_search_code: true
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export {
|
|
52
|
+
MCP_READ_ONLY_TOOL_SUFFIXES
|
|
53
|
+
};
|
|
54
|
+
//# sourceMappingURL=chunk-IC2TCZJ2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/mcp-read-only-tools.ts"],"sourcesContent":["/**\n * Conservative allowlist of canonical MCP tool suffixes that are\n * unambiguously read-only. Tools in this set are tagged with\n * `annotations: { readOnlyHint: true }` so ChatGPT (and other MCP\n * clients that honor the hint) can skip per-call confirmation.\n *\n * The list is suffix-based so it covers both the `remnic.*` and\n * `engram.*` naming forms. Anything not on it stays unannotated:\n * uncertainty is resolved as \"might mutate\".\n *\n * Excluded by construction: anything that writes, runs a pipeline,\n * flushes, applies, records, imports, or destructively deletes.\n */\nexport const MCP_READ_ONLY_TOOL_SUFFIXES: Readonly<Record<string, true>> = {\n recall: true,\n recall_explain: true,\n recall_tier_explain: true,\n recall_xray: true,\n briefing: true,\n wearables_status: true,\n transcript_day: true,\n transcript_search: true,\n transcript_memories: true,\n action_confidence: true,\n capsule_list: true,\n procedural_stats: true,\n memory_get: true,\n memory_timeline: true,\n entity_get: true,\n review_queue_list: true,\n lcm_search: true,\n continuity_incident_list: true,\n identity_anchor_get: true,\n memory_identity: true,\n memory_search: true,\n memory_profile: true,\n memory_entities_list: true,\n memory_questions: true,\n memory_last_recall: true,\n memory_intent_debug: true,\n memory_qmd_debug: true,\n memory_graph_explain: true,\n graph_snapshot: true,\n review_list: true,\n profiling_report: true,\n peer_list: true,\n peer_get: true,\n peer_profile_get: true,\n console_state: true,\n dreams_status: true,\n codegraph_list_projects: true,\n codegraph_index_status: true,\n codegraph_search_graph: true,\n codegraph_trace_path: true,\n codegraph_detect_changes: true,\n codegraph_query_graph: true,\n codegraph_get_schema: true,\n codegraph_get_snippet: true,\n codegraph_get_architecture: true,\n codegraph_search_code: true,\n};\n"],"mappings":";AAaO,IAAM,8BAA8D;AAAA,EACzE,QAAQ;AAAA,EACR,gBAAgB;AAAA,EAChB,qBAAqB;AAAA,EACrB,aAAa;AAAA,EACb,UAAU;AAAA,EACV,kBAAkB;AAAA,EAClB,gBAAgB;AAAA,EAChB,mBAAmB;AAAA,EACnB,qBAAqB;AAAA,EACrB,mBAAmB;AAAA,EACnB,cAAc;AAAA,EACd,kBAAkB;AAAA,EAClB,YAAY;AAAA,EACZ,iBAAiB;AAAA,EACjB,YAAY;AAAA,EACZ,mBAAmB;AAAA,EACnB,YAAY;AAAA,EACZ,0BAA0B;AAAA,EAC1B,qBAAqB;AAAA,EACrB,iBAAiB;AAAA,EACjB,eAAe;AAAA,EACf,gBAAgB;AAAA,EAChB,sBAAsB;AAAA,EACtB,kBAAkB;AAAA,EAClB,oBAAoB;AAAA,EACpB,qBAAqB;AAAA,EACrB,kBAAkB;AAAA,EAClB,sBAAsB;AAAA,EACtB,gBAAgB;AAAA,EAChB,aAAa;AAAA,EACb,kBAAkB;AAAA,EAClB,WAAW;AAAA,EACX,UAAU;AAAA,EACV,kBAAkB;AAAA,EAClB,eAAe;AAAA,EACf,eAAe;AAAA,EACf,yBAAyB;AAAA,EACzB,wBAAwB;AAAA,EACxB,wBAAwB;AAAA,EACxB,sBAAsB;AAAA,EACtB,0BAA0B;AAAA,EAC1B,uBAAuB;AAAA,EACvB,sBAAsB;AAAA,EACtB,uBAAuB;AAAA,EACvB,4BAA4B;AAAA,EAC5B,uBAAuB;AACzB;","names":[]}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BoxBuilder
|
|
3
3
|
} from "./chunk-2A3OXAP2.js";
|
|
4
|
+
import {
|
|
5
|
+
countRecallTokenOverlap,
|
|
6
|
+
normalizeRecallTokens
|
|
7
|
+
} from "./chunk-ZBJMUXZH.js";
|
|
4
8
|
import {
|
|
5
9
|
StorageManager
|
|
6
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-UDCDGP6A.js";
|
|
7
11
|
import {
|
|
8
12
|
getCachedEpisodeMap,
|
|
9
13
|
setCachedEpisodeMap
|
|
10
14
|
} from "./chunk-AWJ2FHCF.js";
|
|
11
|
-
import {
|
|
12
|
-
countRecallTokenOverlap,
|
|
13
|
-
normalizeRecallTokens
|
|
14
|
-
} from "./chunk-ZBJMUXZH.js";
|
|
15
15
|
|
|
16
16
|
// src/verified-recall.ts
|
|
17
17
|
function createReadOnlyBoxBuilder(memoryDir) {
|
|
@@ -107,4 +107,4 @@ export {
|
|
|
107
107
|
compareVerifiedEpisodeResults,
|
|
108
108
|
searchVerifiedEpisodes
|
|
109
109
|
};
|
|
110
|
-
//# sourceMappingURL=chunk-
|
|
110
|
+
//# sourceMappingURL=chunk-II6WHCCW.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
countRecallTokenOverlap,
|
|
3
|
+
normalizeRecallTokens
|
|
4
|
+
} from "./chunk-ZBJMUXZH.js";
|
|
1
5
|
import {
|
|
2
6
|
StorageManager
|
|
3
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UDCDGP6A.js";
|
|
4
8
|
import {
|
|
5
9
|
getCachedRuleMemories,
|
|
6
10
|
setCachedRuleMemories
|
|
7
11
|
} from "./chunk-AWJ2FHCF.js";
|
|
8
|
-
import {
|
|
9
|
-
countRecallTokenOverlap,
|
|
10
|
-
normalizeRecallTokens
|
|
11
|
-
} from "./chunk-ZBJMUXZH.js";
|
|
12
12
|
|
|
13
13
|
// src/semantic-rule-verifier.ts
|
|
14
14
|
var DEFAULT_MIN_EFFECTIVE_CONFIDENCE = 0.45;
|
|
@@ -117,4 +117,4 @@ export {
|
|
|
117
117
|
compareVerifiedSemanticRuleResults,
|
|
118
118
|
searchVerifiedSemanticRules
|
|
119
119
|
};
|
|
120
|
-
//# sourceMappingURL=chunk-
|
|
120
|
+
//# sourceMappingURL=chunk-ITWTKT2R.js.map
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
searchConversationIndex,
|
|
3
|
-
searchConversationIndexFaissFailOpen
|
|
4
|
-
} from "./chunk-FC77VUX5.js";
|
|
5
1
|
import {
|
|
6
2
|
failOpenFaissHealth
|
|
7
3
|
} from "./chunk-TN7THW5U.js";
|
|
@@ -9,6 +5,10 @@ import {
|
|
|
9
5
|
rebuildConversationChunksFailOpen,
|
|
10
6
|
upsertConversationChunksFailOpen
|
|
11
7
|
} from "./chunk-R5VAVVHP.js";
|
|
8
|
+
import {
|
|
9
|
+
searchConversationIndex,
|
|
10
|
+
searchConversationIndexFaissFailOpen
|
|
11
|
+
} from "./chunk-FC77VUX5.js";
|
|
12
12
|
|
|
13
13
|
// src/conversation-index/backend.ts
|
|
14
14
|
function createConversationIndexBackend(options) {
|
|
@@ -235,4 +235,4 @@ function createFaissBackend(getFaiss) {
|
|
|
235
235
|
export {
|
|
236
236
|
createConversationIndexBackend
|
|
237
237
|
};
|
|
238
|
-
//# sourceMappingURL=chunk-
|
|
238
|
+
//# sourceMappingURL=chunk-JI5AVXYO.js.map
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
OramaBackend
|
|
3
|
+
} from "./chunk-7BAJAXGB.js";
|
|
1
4
|
import {
|
|
2
5
|
RemoteSearchBackend
|
|
3
6
|
} from "./chunk-ZIDSD6VC.js";
|
|
@@ -6,19 +9,16 @@ import {
|
|
|
6
9
|
} from "./chunk-QWGNDWKB.js";
|
|
7
10
|
import {
|
|
8
11
|
LanceDbBackend
|
|
9
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-5K5VEDFY.js";
|
|
10
13
|
import {
|
|
11
14
|
MeilisearchBackend
|
|
12
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-L4UZBJNM.js";
|
|
13
16
|
import {
|
|
14
17
|
NoopSearchBackend
|
|
15
18
|
} from "./chunk-CYEPCZN5.js";
|
|
16
|
-
import {
|
|
17
|
-
OramaBackend
|
|
18
|
-
} from "./chunk-CZAZX7JP.js";
|
|
19
19
|
import {
|
|
20
20
|
createConversationIndexBackend
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-JI5AVXYO.js";
|
|
22
22
|
import {
|
|
23
23
|
FaissConversationIndexAdapter
|
|
24
24
|
} from "./chunk-TN7THW5U.js";
|
|
@@ -175,4 +175,4 @@ export {
|
|
|
175
175
|
createConversationSearchBackend,
|
|
176
176
|
createConversationIndexRuntime
|
|
177
177
|
};
|
|
178
|
-
//# sourceMappingURL=chunk-
|
|
178
|
+
//# sourceMappingURL=chunk-KMF67QDQ.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
encryptCapsuleFile
|
|
3
|
+
} from "./chunk-LNQUAJNC.js";
|
|
1
4
|
import {
|
|
2
5
|
CAPSULE_ID_PATTERN,
|
|
3
6
|
CapsuleBlockSchema,
|
|
4
7
|
ExportBundleV2Schema,
|
|
5
8
|
ExportManifestV2Schema
|
|
6
9
|
} from "./chunk-WEHSQBFR.js";
|
|
7
|
-
import {
|
|
8
|
-
encryptCapsuleFile
|
|
9
|
-
} from "./chunk-437S3G37.js";
|
|
10
10
|
import {
|
|
11
11
|
CAPSULE_SCHEMA_VERSION,
|
|
12
12
|
EXPORT_FORMAT
|
|
@@ -261,4 +261,4 @@ export {
|
|
|
261
261
|
exportCapsule,
|
|
262
262
|
isValidCapsuleSince
|
|
263
263
|
};
|
|
264
|
-
//# sourceMappingURL=chunk-
|
|
264
|
+
//# sourceMappingURL=chunk-KTULX4YO.js.map
|
|
@@ -1,12 +1,151 @@
|
|
|
1
|
+
import {
|
|
2
|
+
assertFleetWideOperationAllowed,
|
|
3
|
+
assertOperationAllowed,
|
|
4
|
+
tokenCapabilityStore
|
|
5
|
+
} from "./chunk-D7FOKIY5.js";
|
|
1
6
|
import {
|
|
2
7
|
EngramAccessInputError
|
|
3
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-TI7IHDBQ.js";
|
|
4
9
|
import {
|
|
5
10
|
expandTildePath
|
|
6
11
|
} from "./chunk-EYIEWJNI.js";
|
|
7
12
|
|
|
8
13
|
// src/access-boundary.ts
|
|
9
14
|
import { z } from "zod";
|
|
15
|
+
var OPERATION_NAMES = [
|
|
16
|
+
"memory_get",
|
|
17
|
+
"memory_search",
|
|
18
|
+
"memory_store",
|
|
19
|
+
"coding_decision",
|
|
20
|
+
"coding_architecture",
|
|
21
|
+
// codegraph parity tools (issue #1554) -- each maps to one codegraph_*
|
|
22
|
+
// boundary operation that delegates to the surface handler in
|
|
23
|
+
// coding/codegraph-surfaces.ts. Names match the external tool suffixes.
|
|
24
|
+
"codegraph_index",
|
|
25
|
+
"codegraph_list_projects",
|
|
26
|
+
"codegraph_delete_project",
|
|
27
|
+
"codegraph_index_status",
|
|
28
|
+
"codegraph_search_graph",
|
|
29
|
+
"codegraph_trace_path",
|
|
30
|
+
"codegraph_detect_changes",
|
|
31
|
+
"codegraph_query_graph",
|
|
32
|
+
"codegraph_get_schema",
|
|
33
|
+
"codegraph_get_snippet",
|
|
34
|
+
"codegraph_get_architecture",
|
|
35
|
+
"codegraph_search_code",
|
|
36
|
+
"codegraph_manage_adr",
|
|
37
|
+
"codegraph_ingest_traces",
|
|
38
|
+
"memory_correct_plan",
|
|
39
|
+
"memory_correct_apply",
|
|
40
|
+
"coding_delta",
|
|
41
|
+
// Remaining MCP/HTTP handlers migrated through the boundary (issue #1525).
|
|
42
|
+
"recall",
|
|
43
|
+
"recall_explain",
|
|
44
|
+
"set_coding_context",
|
|
45
|
+
"recall_tier_explain",
|
|
46
|
+
"recall_xray",
|
|
47
|
+
"wearables_status",
|
|
48
|
+
"wearables_sync",
|
|
49
|
+
"transcript_day",
|
|
50
|
+
"transcript_search",
|
|
51
|
+
"transcript_memories",
|
|
52
|
+
"action_confidence",
|
|
53
|
+
"chatgpt_memory_inspector",
|
|
54
|
+
"day_summary",
|
|
55
|
+
"capsule_export",
|
|
56
|
+
"capsule_import",
|
|
57
|
+
"capsule_list",
|
|
58
|
+
"memory_governance_run",
|
|
59
|
+
"procedure_mining_run",
|
|
60
|
+
"pattern_reinforcement_run",
|
|
61
|
+
"procedural_stats",
|
|
62
|
+
"memory_timeline",
|
|
63
|
+
"suggestion_submit",
|
|
64
|
+
"entity_get",
|
|
65
|
+
"review_queue_list",
|
|
66
|
+
"correction_pending",
|
|
67
|
+
"observe",
|
|
68
|
+
"lcm_search",
|
|
69
|
+
"lcm_compaction_flush",
|
|
70
|
+
"lcm_compaction_record",
|
|
71
|
+
"continuity_audit_generate",
|
|
72
|
+
"continuity_incident_open",
|
|
73
|
+
"continuity_incident_close",
|
|
74
|
+
"continuity_incident_list",
|
|
75
|
+
"continuity_loop_add_or_update",
|
|
76
|
+
"continuity_loop_review",
|
|
77
|
+
"identity_anchor_get",
|
|
78
|
+
"identity_anchor_update",
|
|
79
|
+
"memory_identity",
|
|
80
|
+
"work_task",
|
|
81
|
+
"work_project",
|
|
82
|
+
"work_board",
|
|
83
|
+
"shared_context_write_output",
|
|
84
|
+
"shared_feedback_record",
|
|
85
|
+
"shared_priorities_append",
|
|
86
|
+
"shared_context_cross_signals_run",
|
|
87
|
+
"shared_context_curate_daily",
|
|
88
|
+
"compounding_weekly_synthesize",
|
|
89
|
+
"compounding_promote_candidate",
|
|
90
|
+
"compression_guidelines_optimize",
|
|
91
|
+
"compression_guidelines_activate",
|
|
92
|
+
"memory_profile",
|
|
93
|
+
"memory_entities_list",
|
|
94
|
+
"memory_questions",
|
|
95
|
+
"memory_last_recall",
|
|
96
|
+
"memory_intent_debug",
|
|
97
|
+
"memory_qmd_debug",
|
|
98
|
+
"memory_graph_explain",
|
|
99
|
+
"graph_snapshot",
|
|
100
|
+
"memory_feedback",
|
|
101
|
+
"memory_promote",
|
|
102
|
+
"memory_outcome",
|
|
103
|
+
"memory_action_apply",
|
|
104
|
+
"context_checkpoint",
|
|
105
|
+
"briefing",
|
|
106
|
+
"review_list",
|
|
107
|
+
"review_resolve",
|
|
108
|
+
"contradiction_scan_run",
|
|
109
|
+
"memory_summarize_hourly",
|
|
110
|
+
"conversation_index_update",
|
|
111
|
+
"profiling_report",
|
|
112
|
+
"graph_edge_decay_run",
|
|
113
|
+
"live_connectors_run",
|
|
114
|
+
"peer_list",
|
|
115
|
+
"peer_get",
|
|
116
|
+
"peer_set",
|
|
117
|
+
"peer_delete",
|
|
118
|
+
"peer_profile_get",
|
|
119
|
+
"peer_forget",
|
|
120
|
+
"console_state",
|
|
121
|
+
"dreams_status",
|
|
122
|
+
"dreams_run",
|
|
123
|
+
// HTTP-only routes (no direct MCP tool equivalent).
|
|
124
|
+
"adapters_status",
|
|
125
|
+
"offline_sync_snapshot",
|
|
126
|
+
"offline_sync_snapshot_stream",
|
|
127
|
+
"offline_sync_files",
|
|
128
|
+
"offline_sync_file_content",
|
|
129
|
+
"offline_sync_apply_file_content",
|
|
130
|
+
"offline_sync_apply",
|
|
131
|
+
"lcm_status",
|
|
132
|
+
"memory_list",
|
|
133
|
+
"recall_timings",
|
|
134
|
+
"entity_list",
|
|
135
|
+
"maintenance_status",
|
|
136
|
+
"quality_status",
|
|
137
|
+
"trust_zones_status",
|
|
138
|
+
"trust_zones_records",
|
|
139
|
+
"review_disposition",
|
|
140
|
+
"trust_zones_promote",
|
|
141
|
+
"trust_zones_demo_seed",
|
|
142
|
+
"citations_observed",
|
|
143
|
+
"contradiction_detail",
|
|
144
|
+
"graph_events",
|
|
145
|
+
// Chat surface — conversational memory inspection/correction (issue #1583).
|
|
146
|
+
"chat_message",
|
|
147
|
+
"chat_events"
|
|
148
|
+
];
|
|
10
149
|
function coerceBooleanLike(value) {
|
|
11
150
|
if (value === void 0 || value === null || value === "") return void 0;
|
|
12
151
|
if (typeof value === "boolean") return value;
|
|
@@ -104,6 +243,10 @@ function defineOperation(spec) {
|
|
|
104
243
|
if (!parseResult.success) {
|
|
105
244
|
throw new EngramAccessInputError(formatZodIssues(parseResult.error));
|
|
106
245
|
}
|
|
246
|
+
assertOperationAllowed(tokenCapabilityStore.getStore(), spec.name);
|
|
247
|
+
if (spec.fleetWide) {
|
|
248
|
+
assertFleetWideOperationAllowed(tokenCapabilityStore.getStore());
|
|
249
|
+
}
|
|
107
250
|
return spec.handler(parseResult.data, ctx);
|
|
108
251
|
}
|
|
109
252
|
};
|
|
@@ -121,6 +264,7 @@ function __resetRegistryForTest() {
|
|
|
121
264
|
}
|
|
122
265
|
|
|
123
266
|
export {
|
|
267
|
+
OPERATION_NAMES,
|
|
124
268
|
coerceBooleanLike,
|
|
125
269
|
coercePositiveInteger,
|
|
126
270
|
normalizeOptionalPath,
|
|
@@ -130,4 +274,4 @@ export {
|
|
|
130
274
|
listRegisteredOperations,
|
|
131
275
|
__resetRegistryForTest
|
|
132
276
|
};
|
|
133
|
-
//# sourceMappingURL=chunk-
|
|
277
|
+
//# sourceMappingURL=chunk-L2QJQSHL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/access-boundary.ts"],"sourcesContent":["/**\n * Single input-validation and error boundary for the CLI/MCP/HTTP access\n * surfaces (issue #1525, epic #1520 Phase 1).\n *\n * Every operation that crosses the access-service facade passes through ONE\n * registry entry: a zod-validated request envelope, a shared error mapper,\n * and the \"reject invalid input and list valid options\" behavior that\n * CLAUDE.md rules 14/17/24/28/36/48/51 previously had to be re-implemented\n * per handler. The three surfaces become thin adapters — one operation\n * definition, three transports — so a validation fix lands everywhere at\n * once.\n *\n * Host-agnostic (rule 31): operation names carry no `openclaw-*`/`engram-*`\n * prefix. Session/namespace tenancy stays in the handler layer (resolved via\n * ScopePlan #1521); the boundary validates SHAPE, not tenancy.\n */\n\nimport { z } from \"zod\";\nimport { EngramAccessInputError, type EngramAccessService } from \"./access-service.js\";\nimport { assertFleetWideOperationAllowed, assertOperationAllowed, tokenCapabilityStore } from \"./access-token-capabilities.js\";\nimport { expandTildePath } from \"./utils/path.js\";\n\n// ---------------------------------------------------------------------------\n// Canonical operation names — host-agnostic (rule 31)\n// ---------------------------------------------------------------------------\n\n/**\n * Canonical operation ids. One id is shared by the MCP tool, the HTTP route,\n * and the CLI command that expose the same operation. Add to this union as\n * each domain-group migration PR (memory ops → connectors → namespaces …)\n * lands; the fitness test in `access-surface-catalog.test.ts` treats the\n * registered set as the migration state.\n */\nexport const OPERATION_NAMES = [\n \"memory_get\",\n \"memory_search\",\n \"memory_store\",\n \"coding_decision\",\n \"coding_architecture\",\n // codegraph parity tools (issue #1554) -- each maps to one codegraph_*\n // boundary operation that delegates to the surface handler in\n // coding/codegraph-surfaces.ts. Names match the external tool suffixes.\n \"codegraph_index\",\n \"codegraph_list_projects\",\n \"codegraph_delete_project\",\n \"codegraph_index_status\",\n \"codegraph_search_graph\",\n \"codegraph_trace_path\",\n \"codegraph_detect_changes\",\n \"codegraph_query_graph\",\n \"codegraph_get_schema\",\n \"codegraph_get_snippet\",\n \"codegraph_get_architecture\",\n \"codegraph_search_code\",\n \"codegraph_manage_adr\",\n \"codegraph_ingest_traces\",\n \"memory_correct_plan\",\n \"memory_correct_apply\",\n \"coding_delta\",\n // Remaining MCP/HTTP handlers migrated through the boundary (issue #1525).\n \"recall\",\n \"recall_explain\",\n \"set_coding_context\",\n \"recall_tier_explain\",\n \"recall_xray\",\n \"wearables_status\",\n \"wearables_sync\",\n \"transcript_day\",\n \"transcript_search\",\n \"transcript_memories\",\n \"action_confidence\",\n \"chatgpt_memory_inspector\",\n \"day_summary\",\n \"capsule_export\",\n \"capsule_import\",\n \"capsule_list\",\n \"memory_governance_run\",\n \"procedure_mining_run\",\n \"pattern_reinforcement_run\",\n \"procedural_stats\",\n \"memory_timeline\",\n \"suggestion_submit\",\n \"entity_get\",\n \"review_queue_list\",\n \"correction_pending\",\n \"observe\",\n \"lcm_search\",\n \"lcm_compaction_flush\",\n \"lcm_compaction_record\",\n \"continuity_audit_generate\",\n \"continuity_incident_open\",\n \"continuity_incident_close\",\n \"continuity_incident_list\",\n \"continuity_loop_add_or_update\",\n \"continuity_loop_review\",\n \"identity_anchor_get\",\n \"identity_anchor_update\",\n \"memory_identity\",\n \"work_task\",\n \"work_project\",\n \"work_board\",\n \"shared_context_write_output\",\n \"shared_feedback_record\",\n \"shared_priorities_append\",\n \"shared_context_cross_signals_run\",\n \"shared_context_curate_daily\",\n \"compounding_weekly_synthesize\",\n \"compounding_promote_candidate\",\n \"compression_guidelines_optimize\",\n \"compression_guidelines_activate\",\n \"memory_profile\",\n \"memory_entities_list\",\n \"memory_questions\",\n \"memory_last_recall\",\n \"memory_intent_debug\",\n \"memory_qmd_debug\",\n \"memory_graph_explain\",\n \"graph_snapshot\",\n \"memory_feedback\",\n \"memory_promote\",\n \"memory_outcome\",\n \"memory_action_apply\",\n \"context_checkpoint\",\n \"briefing\",\n \"review_list\",\n \"review_resolve\",\n \"contradiction_scan_run\",\n \"memory_summarize_hourly\",\n \"conversation_index_update\",\n \"profiling_report\",\n \"graph_edge_decay_run\",\n \"live_connectors_run\",\n \"peer_list\",\n \"peer_get\",\n \"peer_set\",\n \"peer_delete\",\n \"peer_profile_get\",\n \"peer_forget\",\n \"console_state\",\n \"dreams_status\",\n \"dreams_run\",\n // HTTP-only routes (no direct MCP tool equivalent).\n \"adapters_status\",\n \"offline_sync_snapshot\",\n \"offline_sync_snapshot_stream\",\n \"offline_sync_files\",\n \"offline_sync_file_content\",\n \"offline_sync_apply_file_content\",\n \"offline_sync_apply\",\n \"lcm_status\",\n \"memory_list\",\n \"recall_timings\",\n \"entity_list\",\n \"maintenance_status\",\n \"quality_status\",\n \"trust_zones_status\",\n \"trust_zones_records\",\n \"review_disposition\",\n \"trust_zones_promote\",\n \"trust_zones_demo_seed\",\n \"citations_observed\",\n \"contradiction_detail\",\n \"graph_events\",\n // Chat surface — conversational memory inspection/correction (issue #1583).\n \"chat_message\",\n \"chat_events\",\n] as const;\n\n/**\n * Canonical operation ids. One id is shared by the MCP tool, the HTTP route,\n * and the CLI command that expose the same operation. Derived from\n * {@link OPERATION_NAMES} (single source of truth) so the runtime catalog\n * used for token-capability validation cannot drift from the type. The\n * fitness test in `access-surface-catalog.test.ts` treats the registered set\n * as the migration state.\n */\nexport type OperationName = (typeof OPERATION_NAMES)[number];\n\n// ---------------------------------------------------------------------------\n// Operation context — what every handler receives\n// ---------------------------------------------------------------------------\n\n/**\n * Per-call context. `service` is the facade the handler delegates to; the\n * boundary never reaches past it. `authenticatedPrincipal` is resolved by\n * the SURFACE (MCP header / HTTP identity / CLI flag) before the boundary\n * runs, so handlers stay principal-source-agnostic. `hooks` carries\n * transport-level callbacks (e.g. HTTP write-quota enforcement) that must\n * fire atomically inside the service call; surfaces that have no such hook\n * leave it undefined.\n */\nexport interface OperationContext {\n readonly service: EngramAccessService;\n readonly authenticatedPrincipal?: string;\n readonly operatorPrincipal?: string;\n readonly hooks?: OperationHooks;\n}\n\n/**\n * Transport-level callbacks a handler forwards into the service call. Kept\n * narrow on purpose: the boundary owns validation + dispatch shape, not\n * transport policy. Add fields here only when a surface genuinely needs a\n * callback the service itself consumes.\n */\nexport interface OperationHooks {\n /** HTTP write-quota gate; throws to reject the write when exhausted. */\n readonly enforceWriteQuota?: () => void | Promise<void>;\n}\n\n// ---------------------------------------------------------------------------\n// Operation spec + bound operation\n// ---------------------------------------------------------------------------\n\nexport interface OperationSpec<In, Out> {\n /** Canonical operation id; matches an {@link OperationName}. */\n readonly name: OperationName;\n readonly description: string;\n /** Zod schema validating the raw request envelope. */\n readonly schema: z.ZodType<In>;\n /** Handler invoked with the parsed input; throws EngramAccessInputError for domain faults. */\n readonly handler: (input: In, ctx: OperationContext) => Promise<Out>;\n /**\n * Marks an operation as inherently FLEET-WIDE / global — it runs across ALL\n * namespaces (or against a single non-namespaced global layer) and carries no\n * `namespace` argument, so the MCP `tools/call` effective-namespace chokepoint\n * never applies. When set, {@link defineOperation}'s run wrapper rejects any\n * namespace-SCOPED token (fail closed) via assertFleetWideOperationAllowed\n * BEFORE the handler — no side effect on denial. Unrestricted/legacy tokens\n * (cron, internal callers, no capability record) are unaffected (issue #1850).\n */\n readonly fleetWide?: boolean;\n}\n\nexport interface BoundOperation<In = unknown, Out = unknown> {\n readonly spec: OperationSpec<In, Out>;\n /** Validate the raw envelope, then invoke the handler. Throws EngramAccessInputError on any validation failure. */\n readonly run: (rawInput: unknown, ctx: OperationContext) => Promise<Out>;\n}\n\n// ---------------------------------------------------------------------------\n// Shared normalizers the boundary owns (rules 17, 28, 36, 48, 51)\n// ---------------------------------------------------------------------------\n\n/**\n * Coerce boolean-like strings at the edge (rule 36). Accepts actual booleans\n * and the string spellings clients send (\"true\"/\"false\"/\"1\"/\"0\"/\"yes\"/\"no\"/\n * \"on\"/\"off\", case-insensitive). Rejects anything else loudly — `Boolean(\"false\")`\n * would silently be `true`, which is the bug rule 36 exists to prevent.\n *\n * `undefined`/`null`/`\"\"` → `undefined`, so callers can keep treating an\n * absent flag as \"use the default\" without a separate presence check.\n */\nexport function coerceBooleanLike(value: unknown): boolean | undefined {\n if (value === undefined || value === null || value === \"\") return undefined;\n if (typeof value === \"boolean\") return value;\n if (typeof value === \"string\") {\n const lower = value.trim().toLowerCase();\n if (lower === \"true\" || lower === \"1\" || lower === \"yes\" || lower === \"on\") return true;\n if (lower === \"false\" || lower === \"0\" || lower === \"no\" || lower === \"off\") return false;\n }\n throw new EngramAccessInputError(\n `expected a boolean-like value (true|false|1|0|yes|no|on|off); got ${JSON.stringify(value)}`,\n );\n}\n\n/**\n * Coerce + validate a positive integer from a numeric string or number\n * (rule 28). Loosely-typed MCP/CLI clients send `\"5\"`; `typeof saved === \"number\"`\n * on read-back would reject it later, so we coerce at the edge and reject\n * booleans/objects loudly (`Number(true) === 1` would silently pass otherwise).\n *\n * `undefined`/`null`/`\"\"` → `undefined`.\n */\nexport function coercePositiveInteger(value: unknown, label: string): number | undefined {\n if (value === undefined || value === null || value === \"\") return undefined;\n if (typeof value === \"number\") {\n if (!Number.isFinite(value) || value <= 0 || !Number.isInteger(value)) {\n throw new EngramAccessInputError(`${label} expects a positive integer; got ${JSON.stringify(value)}`);\n }\n return value;\n }\n if (typeof value === \"string\") {\n const trimmed = value.trim();\n if (!/^[+-]?\\d+$/.test(trimmed)) {\n throw new EngramAccessInputError(`${label} expects a positive integer; got ${JSON.stringify(value)}`);\n }\n const parsed = Number(trimmed);\n if (!Number.isSafeInteger(parsed) || parsed <= 0) {\n throw new EngramAccessInputError(`${label} expects a positive integer; got ${JSON.stringify(value)}`);\n }\n return parsed;\n }\n throw new EngramAccessInputError(`${label} expects a positive integer; got ${JSON.stringify(value)}`);\n}\n\n/**\n * Expand `~` in a path-shaped input (rule 17). Node `fs` does NOT expand `~`;\n * ad-hoc regex drifts. `undefined`/`null`/`\"\"` → `undefined`.\n */\nexport function normalizeOptionalPath(value: unknown): string | undefined {\n if (value === undefined || value === null || value === \"\") return undefined;\n if (typeof value !== \"string\") {\n throw new EngramAccessInputError(`expected a path string; got ${JSON.stringify(value)}`);\n }\n return expandTildePath(value);\n}\n\n// ---------------------------------------------------------------------------\n// Error formatting — rule 51: list valid options, never silently default\n// ---------------------------------------------------------------------------\n\n/**\n * Turn a zod failure into an {@link EngramAccessInputError} whose message\n * names the offending field and — for enum/union issues — lists the valid\n * options, so the caller can correct rather than guess (rule 51).\n */\nexport function formatZodIssues(error: z.ZodError): string {\n const parts: string[] = [];\n for (const issue of error.issues) {\n // Collapse array-index paths (e.g. [\"currentContextScopes\", 1]) to\n // the field name so the message reads \"field: must be ...\" not\n // \"field.1: must be ...\".\n const hasNumeric = issue.path.some((p) => typeof p === \"number\");\n const path = hasNumeric\n ? issue.path.filter((p) => typeof p === \"string\").join(\".\") || \"(root)\"\n : issue.path.length > 0 ? issue.path.join(\".\") : \"(root)\";\n const options = enumOptionsFromIssue(issue);\n const suffix = options ? `. Valid: ${options.join(\", \")}` : \"\";\n parts.push(`${path}: ${issue.message}${suffix}`);\n }\n return parts.length > 0\n ? `request validation failed: ${parts.join(\"; \")}`\n : \"request validation failed\";\n}\n\nfunction enumOptionsFromIssue(issue: z.ZodIssue): readonly string[] | undefined {\n // zod exposes accepted enum values on the issue for ZodEnum / ZodNativeEnum\n // and on the options of invalid_union discriminators. Reading them here\n // keeps \"list valid options\" in ONE place rather than per handler.\n if (issue.code === z.ZodIssueCode.invalid_enum_value) {\n const rawOptions = (issue as { options?: unknown }).options;\n if (Array.isArray(rawOptions)) {\n return rawOptions.map((opt) => String(opt));\n }\n }\n return undefined;\n}\n\n// ---------------------------------------------------------------------------\n// Registry\n// ---------------------------------------------------------------------------\n\nconst registry = new Map<OperationName, BoundOperation>();\n\n/**\n * Register an operation. Throws if the name is already registered — duplicate\n * registration is a programming error, not a runtime input fault, so it throws\n * a plain Error (not the input-error class surfaces translate for clients).\n */\n/**\n * Error map that converts Zod's generic type-mismatch messages into\n * human-readable \"must be a <type>\" messages (rule 51). Applied at the\n * boundary chokepoint so every operation gets consistent messaging\n * without per-handler boilerplate.\n */\nconst humanReadableErrorMap: z.ZodErrorMap = (issue, ctx) => {\n if (issue.code === z.ZodIssueCode.invalid_type) {\n if (issue.received === \"undefined\") return { message: ctx.defaultError };\n // Array-element type errors — collapse to field-level message.\n if (issue.path.some((p) => typeof p === \"number\")) {\n const arrField = issue.path.filter((p) => typeof p === \"string\").join(\".\");\n return { message: `${arrField} must be an array of ${issue.expected}s` };\n }\n const fieldName = issue.path.length > 0 ? String(issue.path[issue.path.length - 1]) : \"value\";\n switch (issue.expected) {\n case \"string\": return { message: `${fieldName} must be a string` };\n case \"boolean\": return { message: `${fieldName} must be a boolean` };\n case \"number\": return { message: `${fieldName} must be a number` };\n case \"array\": return { message: `${fieldName} must be an array` };\n case \"object\": return { message: `${fieldName} must be an object` };\n default: return { message: ctx.defaultError };\n }\n }\n return { message: ctx.defaultError };\n};\n\nexport function defineOperation<In, Out>(spec: OperationSpec<In, Out>): BoundOperation<In, Out> {\n if (registry.has(spec.name)) {\n throw new Error(`access-boundary: operation already registered: ${spec.name}`);\n }\n const bound: BoundOperation<In, Out> = {\n spec,\n run: async (rawInput, ctx) => {\n const parseResult = spec.schema.safeParse(rawInput, { errorMap: humanReadableErrorMap });\n if (!parseResult.success) {\n throw new EngramAccessInputError(formatZodIssues(parseResult.error));\n }\n // Per-token capability enforcement (issue #1837): when the presenting\n // token carries an ops allow-list, reject operations not in it. The\n // capability record is carried via AsyncLocalStorage, set once per\n // authorized HTTP/MCP request; absent (CLI/tests/direct callers) ⇒\n // unrestricted. Default-deny ONLY when an ops axis is present — legacy\n // tokens (absent record) and explicit-unrestricted new tokens are\n // unaffected.\n assertOperationAllowed(tokenCapabilityStore.getStore(), spec.name);\n // Fleet-wide / global maintenance ops (issue #1850 round 10): these run\n // across all namespaces with no `namespace` arg, so the tools/call\n // effective-namespace gate never fires. A namespace-SCOPED token must not\n // trigger cross-namespace maintenance — fail closed BEFORE the handler so\n // a denial never leaks a partial mutation. No-op for unrestricted/legacy.\n if (spec.fleetWide) {\n assertFleetWideOperationAllowed(tokenCapabilityStore.getStore());\n }\n return spec.handler(parseResult.data, ctx);\n },\n };\n // Store under the canonical name; the cast is safe because In/Out are\n // erased at the registry boundary and recovered by callers via getOperation.\n registry.set(spec.name, bound as unknown as BoundOperation);\n return bound;\n}\n\n/** Look up a registered operation by canonical name. */\nexport function getOperation(name: OperationName): BoundOperation | undefined {\n return registry.get(name);\n}\n\n/** All registered operation names. */\nexport function listRegisteredOperations(): readonly OperationName[] {\n return [...registry.keys()];\n}\n\n/** Test-only: clear the registry so pilot definitions can be re-registered. */\nexport function __resetRegistryForTest(): void {\n registry.clear();\n}\n"],"mappings":";;;;;;;;;;;;;AAiBA,SAAS,SAAS;AAgBX,IAAM,kBAAkB;AAAA,EAC7B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA;AAAA;AAAA;AAAA,EAIA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA;AAAA,EAEA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;A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Dir
|
|
3
|
+
} from "./chunk-AER6MT24.js";
|
|
1
4
|
import {
|
|
2
5
|
isSearchAborted,
|
|
3
6
|
throwIfSearchAborted
|
|
4
7
|
} from "./chunk-CINZGPSJ.js";
|
|
5
|
-
import {
|
|
6
|
-
scanMemoryDir
|
|
7
|
-
} from "./chunk-AER6MT24.js";
|
|
8
8
|
import {
|
|
9
9
|
reportSearchDegradation,
|
|
10
10
|
resolveEnsureCollectionArgs
|
|
@@ -253,4 +253,4 @@ function isMeilisearchIndexNotFoundError(err) {
|
|
|
253
253
|
export {
|
|
254
254
|
MeilisearchBackend
|
|
255
255
|
};
|
|
256
|
-
//# sourceMappingURL=chunk-
|
|
256
|
+
//# sourceMappingURL=chunk-L4UZBJNM.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
NamespaceStorageRouter
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TV7C3HCB.js";
|
|
4
4
|
import {
|
|
5
5
|
namespaceCollectionName
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2JFDHI2K.js";
|
|
7
7
|
import {
|
|
8
8
|
namespaceIdentityFromToken,
|
|
9
9
|
namespaceIdentityToken
|
|
@@ -207,4 +207,4 @@ export {
|
|
|
207
207
|
verifyNamespaces,
|
|
208
208
|
runNamespaceMigration
|
|
209
209
|
};
|
|
210
|
-
//# sourceMappingURL=chunk-
|
|
210
|
+
//# sourceMappingURL=chunk-L6V3WJ55.js.map
|
|
@@ -10,21 +10,10 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
listMemoryGovernanceRuns,
|
|
12
12
|
readMemoryGovernanceRunArtifact
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-BGMSRN6I.js";
|
|
14
14
|
import {
|
|
15
15
|
StorageManager
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import {
|
|
18
|
-
MEMORY_LIFECYCLE_EVENT_SORT_ORDER,
|
|
19
|
-
buildLifecycleEventsForMemory,
|
|
20
|
-
inferMemoryStatus,
|
|
21
|
-
sortMemoryLifecycleEvents,
|
|
22
|
-
toMemoryPathRel
|
|
23
|
-
} from "./chunk-RULE4VG5.js";
|
|
24
|
-
import {
|
|
25
|
-
normalizeProjectionPreview,
|
|
26
|
-
normalizeProjectionTags
|
|
27
|
-
} from "./chunk-SCU65EZI.js";
|
|
16
|
+
} from "./chunk-UDCDGP6A.js";
|
|
28
17
|
import {
|
|
29
18
|
MEMORY_PROJECTION_SCHEMA_VERSION,
|
|
30
19
|
getMemoryProjectionPath,
|
|
@@ -40,6 +29,17 @@ import {
|
|
|
40
29
|
import {
|
|
41
30
|
openBetterSqlite3
|
|
42
31
|
} from "./chunk-RL6NEVXT.js";
|
|
32
|
+
import {
|
|
33
|
+
MEMORY_LIFECYCLE_EVENT_SORT_ORDER,
|
|
34
|
+
buildLifecycleEventsForMemory,
|
|
35
|
+
inferMemoryStatus,
|
|
36
|
+
sortMemoryLifecycleEvents,
|
|
37
|
+
toMemoryPathRel
|
|
38
|
+
} from "./chunk-RULE4VG5.js";
|
|
39
|
+
import {
|
|
40
|
+
normalizeProjectionPreview,
|
|
41
|
+
normalizeProjectionTags
|
|
42
|
+
} from "./chunk-SCU65EZI.js";
|
|
43
43
|
import {
|
|
44
44
|
log
|
|
45
45
|
} from "./chunk-37CTGERM.js";
|
|
@@ -1023,4 +1023,4 @@ export {
|
|
|
1023
1023
|
verifyMemoryProjection,
|
|
1024
1024
|
repairMemoryProjection
|
|
1025
1025
|
};
|
|
1026
|
-
//# sourceMappingURL=chunk-
|
|
1026
|
+
//# sourceMappingURL=chunk-LNHJ32NK.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveDefaultNamespaceRoot,
|
|
3
3
|
resolveNamespaceStorageRoot
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-TV7C3HCB.js";
|
|
5
5
|
import {
|
|
6
6
|
getConfiguredNamespaces
|
|
7
7
|
} from "./chunk-BAVVI5GP.js";
|
|
@@ -2042,4 +2042,4 @@ export {
|
|
|
2042
2042
|
runNamespaceMaintenancePlan,
|
|
2043
2043
|
runNamespaceMaintenanceBatchPlan
|
|
2044
2044
|
};
|
|
2045
|
-
//# sourceMappingURL=chunk-
|
|
2045
|
+
//# sourceMappingURL=chunk-MFDJ63U5.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-SFQ6QNL7.js";
|
|
7
7
|
import {
|
|
8
8
|
StorageManager
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-UDCDGP6A.js";
|
|
10
10
|
import {
|
|
11
11
|
buildLifecycleEventsForMemory,
|
|
12
12
|
sortMemoryLifecycleEvents
|
|
@@ -115,4 +115,4 @@ export {
|
|
|
115
115
|
backupExistingLedger,
|
|
116
116
|
rebuildMemoryLifecycleLedger
|
|
117
117
|
};
|
|
118
|
-
//# sourceMappingURL=chunk-
|
|
118
|
+
//# sourceMappingURL=chunk-NFTABV56.js.map
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk-2A3OXAP2.js";
|
|
4
4
|
import {
|
|
5
5
|
resolveCausalTrajectoryStoreDir
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import {
|
|
8
|
-
log
|
|
9
|
-
} from "./chunk-37CTGERM.js";
|
|
6
|
+
} from "./chunk-7XGSIUP5.js";
|
|
10
7
|
import {
|
|
11
8
|
normalizeRecallTokens
|
|
12
9
|
} from "./chunk-ZBJMUXZH.js";
|
|
10
|
+
import {
|
|
11
|
+
log
|
|
12
|
+
} from "./chunk-37CTGERM.js";
|
|
13
13
|
import {
|
|
14
14
|
assertIsoRecordedAt,
|
|
15
15
|
assertString,
|
|
@@ -339,4 +339,4 @@ export {
|
|
|
339
339
|
scoreStitchCandidate,
|
|
340
340
|
stitchCausalChain
|
|
341
341
|
};
|
|
342
|
-
//# sourceMappingURL=chunk-
|
|
342
|
+
//# sourceMappingURL=chunk-NKCPUHCI.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./chunk-3UXOZBHV.js";
|
|
8
8
|
import {
|
|
9
9
|
StorageManager
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-UDCDGP6A.js";
|
|
11
11
|
import {
|
|
12
12
|
isSafeRouteNamespace
|
|
13
13
|
} from "./chunk-U3PN77QT.js";
|
|
@@ -118,4 +118,4 @@ export {
|
|
|
118
118
|
runCodexMaterialize,
|
|
119
119
|
runPostConsolidationMaterialize
|
|
120
120
|
};
|
|
121
|
-
//# sourceMappingURL=chunk-
|
|
121
|
+
//# sourceMappingURL=chunk-ODSYJXDU.js.map
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ClaudeCodeAdapter
|
|
3
|
+
} from "./chunk-J64TK33U.js";
|
|
1
4
|
import {
|
|
2
5
|
CodexAdapter
|
|
3
6
|
} from "./chunk-RSUYKGGZ.js";
|
|
@@ -7,9 +10,6 @@ import {
|
|
|
7
10
|
import {
|
|
8
11
|
ReplitAdapter
|
|
9
12
|
} from "./chunk-TMSXWOBZ.js";
|
|
10
|
-
import {
|
|
11
|
-
ClaudeCodeAdapter
|
|
12
|
-
} from "./chunk-J64TK33U.js";
|
|
13
13
|
|
|
14
14
|
// src/adapters/registry.ts
|
|
15
15
|
var AdapterRegistry = class {
|
|
@@ -53,4 +53,4 @@ var AdapterRegistry = class {
|
|
|
53
53
|
export {
|
|
54
54
|
AdapterRegistry
|
|
55
55
|
};
|
|
56
|
-
//# sourceMappingURL=chunk-
|
|
56
|
+
//# sourceMappingURL=chunk-RKNJBZ55.js.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
memoryStoreRequestSchema
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UPSAT4PY.js";
|
|
4
4
|
import {
|
|
5
5
|
defineOperation
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-L2QJQSHL.js";
|
|
7
7
|
import {
|
|
8
8
|
CorrectionContractError,
|
|
9
9
|
DECISION_SUBCOMMANDS,
|
|
10
10
|
DELTA_SUBCOMMANDS,
|
|
11
11
|
EngramAccessInputError,
|
|
12
12
|
isCodegraphToolName
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-TI7IHDBQ.js";
|
|
14
14
|
|
|
15
15
|
// src/access-operations.ts
|
|
16
16
|
import { z } from "zod";
|
|
@@ -463,4 +463,4 @@ export {
|
|
|
463
463
|
codegraphIngestTracesOperation,
|
|
464
464
|
REGISTERED_OPERATIONS
|
|
465
465
|
};
|
|
466
|
-
//# sourceMappingURL=chunk-
|
|
466
|
+
//# sourceMappingURL=chunk-SNBEVJBX.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-UI4FVU6T.js";
|
|
5
5
|
import {
|
|
6
6
|
StorageManager
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UDCDGP6A.js";
|
|
8
8
|
import {
|
|
9
9
|
parseContinuityImprovementLoops
|
|
10
10
|
} from "./chunk-LDXUBPMO.js";
|
|
@@ -1276,4 +1276,4 @@ export {
|
|
|
1276
1276
|
defaultTierMigrationCycleBudget,
|
|
1277
1277
|
CompoundingEngine
|
|
1278
1278
|
};
|
|
1279
|
-
//# sourceMappingURL=chunk-
|
|
1279
|
+
//# sourceMappingURL=chunk-SNNIUDRS.js.map
|