@remnic/core 9.65.1 → 9.65.3
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 +44 -44
- package/dist/access-admin-ops-surface.js +36 -35
- package/dist/access-authorization-probe.d.ts +39 -40
- package/dist/access-authorization-probe.js +37 -36
- package/dist/access-boundary.d.ts +41 -185
- package/dist/access-boundary.js +36 -35
- package/dist/access-cli.js +110 -107
- package/dist/access-cli.js.map +1 -1
- package/dist/access-coding-context-resolution.d.ts +3 -1
- package/dist/access-extraction-force-flush.d.ts +25 -25
- package/dist/access-extraction-force-flush.js +36 -35
- package/dist/access-health-types.d.ts +3 -1
- package/dist/access-http-lcm-compaction.d.ts +39 -39
- package/dist/access-http-lifecycle-flush.d.ts +40 -41
- package/dist/access-http-offline-stream.d.ts +25 -25
- package/dist/access-http-query.d.ts +4 -2
- package/dist/access-http-query.js +38 -37
- package/dist/access-http.d.ts +51 -44
- package/dist/access-http.js +57 -56
- package/dist/access-identity-continuity-surface.d.ts +12 -12
- package/dist/access-identity-continuity-surface.js +36 -35
- package/dist/access-lcm-surface.d.ts +27 -27
- package/dist/access-lcm-surface.js +36 -35
- package/dist/access-mcp-admin-tools.d.ts +9 -1
- package/dist/access-mcp-admin-tools.js +3 -1
- package/dist/access-mcp-output-schemas.js +1 -1
- package/dist/access-mcp.d.ts +39 -39
- package/dist/access-mcp.js +50 -47
- package/dist/access-memory-search-fanout.d.ts +4 -2
- package/dist/{access-namespace-preflight-BKUnKsBv.d.ts → access-namespace-preflight-B7Usyz-K.d.ts} +1 -1
- package/dist/access-namespace-preflight.d.ts +5 -3
- package/dist/access-namespace-preflight.js +36 -35
- package/dist/access-observe-write-surface.d.ts +39 -39
- package/dist/access-observe-write-surface.js +36 -35
- package/dist/access-offline-manifest.d.ts +12 -12
- package/dist/access-offline-manifest.js +5 -5
- package/dist/access-operations-batch.js +41 -40
- package/dist/access-operations.d.ts +46 -47
- package/dist/access-operations.js +44 -43
- package/dist/access-recall-concurrency.d.ts +40 -40
- package/dist/access-recall-concurrency.js +36 -35
- package/dist/access-recall-response.d.ts +24 -24
- package/dist/access-recall-response.js +36 -35
- package/dist/access-recall-surface.d.ts +24 -24
- package/dist/access-recall-surface.js +36 -35
- package/dist/access-schema.d.ts +139 -139
- package/dist/access-schema.js +3 -3
- package/dist/{access-service-B1Lbb-nQ.d.ts → access-service-DkaIG3n8.d.ts} +688 -140
- package/dist/access-service-helpers.d.ts +40 -40
- package/dist/access-service.d.ts +47 -47
- package/dist/access-service.js +36 -35
- package/dist/access-surface-catalog.d.ts +41 -42
- package/dist/access-surface-catalog.js +44 -37
- package/dist/access-surface-catalog.js.map +1 -1
- package/dist/access-wearables-meetings-surface.d.ts +5 -3
- package/dist/action-confidence.d.ts +3 -1
- package/dist/active-memory-bridge.d.ts +3 -1
- package/dist/active-recall.d.ts +3 -1
- package/dist/active-recall.js +11 -1
- package/dist/active-recall.js.map +1 -1
- package/dist/adapters/index.js +4 -4
- package/dist/adapters/registry.js +2 -2
- package/dist/ambient-provenance.d.ts +3 -1
- package/dist/artifact-search.d.ts +3 -1
- package/dist/{auto-sync-5L7EUZ27.js → auto-sync-H64ZCNIR.js} +13 -5
- package/dist/{auto-sync-5L7EUZ27.js.map → auto-sync-H64ZCNIR.js.map} +1 -1
- package/dist/behavior-learner.d.ts +3 -1
- package/dist/behavior-signals.d.ts +3 -1
- package/dist/bootstrap.d.ts +12 -12
- package/dist/briefing-window.d.ts +4 -2
- package/dist/briefing.d.ts +4 -2
- package/dist/briefing.js +16 -15
- package/dist/buffer-surprise-report.d.ts +3 -1
- package/dist/buffer-turn-helpers.d.ts +3 -1
- package/dist/buffer.d.ts +4 -2
- package/dist/buffer.js +4 -4
- package/dist/bulk-import/index.d.ts +5 -3
- package/dist/calibration.d.ts +3 -1
- package/dist/calibration.js +1 -1
- package/dist/capabilities.d.ts +3 -1
- package/dist/{capsule-crypto-7FJQINUR.js → capsule-crypto-YO5QJ6L3.js} +2 -2
- package/dist/{catalog-DjVhJoRM.d.ts → catalog-CX2BZEJh.d.ts} +1 -1
- package/dist/causal-behavior.d.ts +1 -1
- package/dist/causal-consolidation.d.ts +3 -1
- package/dist/causal-consolidation.js +20 -19
- package/dist/causal-consolidation.js.map +1 -1
- package/dist/causal-trajectory-graph.d.ts +1 -1
- package/dist/{chunk-MIBKEW7A.js → chunk-2VXWFYJE.js} +3 -3
- package/dist/{chunk-3YTTAGPB.js → chunk-3DVBKTSO.js} +2 -2
- package/dist/{chunk-EIR5VLIH.js → chunk-4K7IW3F7.js} +2 -2
- package/dist/chunk-4K7IW3F7.js.map +1 -0
- package/dist/{chunk-JTSVMJHV.js → chunk-4XDGYCZI.js} +3 -3
- package/dist/chunk-573TEZCD.js +88 -0
- package/dist/chunk-573TEZCD.js.map +1 -0
- package/dist/{chunk-HQSBYI5X.js → chunk-57HVIG5U.js} +2 -2
- package/dist/{chunk-PMVPCZJZ.js → chunk-6433HV72.js} +2 -2
- package/dist/{chunk-N6TRHP72.js → chunk-6TAX66IA.js} +2 -2
- package/dist/{chunk-AGKIG3YA.js → chunk-6VALIZKG.js} +2 -2
- package/dist/{chunk-YQ3CBLL4.js → chunk-76PL4XLG.js} +512 -8
- package/dist/chunk-76PL4XLG.js.map +1 -0
- package/dist/{chunk-4NZHHGVL.js → chunk-7BDZTALN.js} +4 -1
- package/dist/chunk-7BDZTALN.js.map +1 -0
- package/dist/{chunk-NS5ETDYD.js → chunk-7BEPVIH3.js} +3 -3
- package/dist/{chunk-JG22O53B.js → chunk-7CBKAQIG.js} +2 -1
- package/dist/chunk-7CBKAQIG.js.map +1 -0
- package/dist/{chunk-LYIZXQYY.js → chunk-7KFIMGMP.js} +2 -2
- package/dist/{chunk-LWVO2QZV.js → chunk-7QOO4LGC.js} +56 -56
- package/dist/chunk-AAXJNINV.js +55 -0
- package/dist/chunk-AAXJNINV.js.map +1 -0
- package/dist/{chunk-56BSXSHC.js → chunk-AB3A7EFH.js} +31 -2
- package/dist/{chunk-56BSXSHC.js.map → chunk-AB3A7EFH.js.map} +1 -1
- package/dist/{chunk-CCTVAVTT.js → chunk-AUO2LJ3K.js} +2 -2
- package/dist/{chunk-ALCJRQ72.js → chunk-AYDDB3XI.js} +2 -2
- package/dist/{chunk-3TMYV3LP.js → chunk-AYYGRVRP.js} +5 -5
- package/dist/{chunk-W6TSGWYS.js → chunk-AZAA5DNP.js} +2 -2
- package/dist/{chunk-WTOE7CW4.js → chunk-BKYPJUQL.js} +122 -16
- package/dist/chunk-BKYPJUQL.js.map +1 -0
- package/dist/{chunk-6JJT5AKI.js → chunk-BQUEAVNW.js} +2 -2
- package/dist/{chunk-2NLLXCJG.js → chunk-BXLOS5AJ.js} +2 -2
- package/dist/{chunk-CEH2AFXG.js → chunk-C24UZSFW.js} +6 -6
- package/dist/{chunk-ZPN7W3OP.js → chunk-CDUUDBWJ.js} +3 -3
- package/dist/{chunk-35NN3ZFA.js → chunk-CTVWELNK.js} +21 -3
- package/dist/chunk-CTVWELNK.js.map +1 -0
- package/dist/{chunk-Y23B2QXP.js → chunk-D27J626P.js} +2 -2
- package/dist/{chunk-2572MRP2.js → chunk-DHTQP334.js} +2 -2
- package/dist/{chunk-HJQZQUPC.js → chunk-DJZWNKFO.js} +5 -5
- package/dist/{chunk-X7Y7WX73.js → chunk-DQEMWVMT.js} +1 -1
- package/dist/{chunk-VJ6ECBIP.js → chunk-E4MVQQVX.js} +2 -2
- package/dist/{chunk-SYJ6EKKE.js → chunk-EIVIB73I.js} +2 -2
- package/dist/{chunk-HUNSEO5U.js → chunk-EV3YFLCB.js} +2 -2
- package/dist/{chunk-GEULB2VI.js → chunk-FC7TIRFS.js} +21 -1
- package/dist/chunk-FC7TIRFS.js.map +1 -0
- package/dist/{chunk-VPGRXEAB.js → chunk-G57LQRP6.js} +2 -2
- package/dist/{chunk-BC4QD3FM.js → chunk-GN55KU2P.js} +2 -2
- package/dist/{chunk-4W6INNXO.js → chunk-GUXS322H.js} +2 -2
- package/dist/{chunk-DBXZZIDU.js → chunk-H5FW4S5Q.js} +434 -693
- package/dist/chunk-H5FW4S5Q.js.map +1 -0
- package/dist/chunk-I32NKXE2.js +879 -0
- package/dist/chunk-I32NKXE2.js.map +1 -0
- package/dist/{chunk-3MADV4YC.js → chunk-IQSC3V2E.js} +2 -2
- package/dist/{chunk-UYCIS6V5.js → chunk-JCWY73FK.js} +2 -2
- package/dist/{chunk-T42L3S6A.js → chunk-LBWQ65SX.js} +4 -4
- package/dist/{chunk-MSTNSVXI.js → chunk-LDBFXD4F.js} +2 -1
- package/dist/chunk-LDBFXD4F.js.map +1 -0
- package/dist/{chunk-CEQF6L5K.js → chunk-LUNJ3WFO.js} +9 -7
- package/dist/chunk-LUNJ3WFO.js.map +1 -0
- package/dist/{chunk-256FBCVX.js → chunk-M4AHBM72.js} +7 -7
- package/dist/{chunk-YEQEGSJA.js → chunk-MBDJJTAT.js} +3 -3
- package/dist/{chunk-IAY7YBXS.js → chunk-MRTUN665.js} +2 -2
- package/dist/{chunk-JFJ3MHGV.js → chunk-NXKJHSDN.js} +1 -1
- package/dist/chunk-NXKJHSDN.js.map +1 -0
- package/dist/{chunk-R3AAOKR2.js → chunk-NZWEEALH.js} +2 -2
- package/dist/{chunk-I2HTKOOP.js → chunk-ODZG724P.js} +2 -2
- package/dist/{chunk-7QFBLYFP.js → chunk-OJD4WS2E.js} +3 -3
- package/dist/{chunk-CUS6S7PN.js → chunk-OLWTCWQ2.js} +9 -9
- package/dist/chunk-OLWTCWQ2.js.map +1 -0
- package/dist/{chunk-53ENM6F6.js → chunk-P4DHENRE.js} +2 -2
- package/dist/{chunk-DEFI2QBT.js → chunk-PAYGC3BD.js} +52 -22
- package/dist/chunk-PAYGC3BD.js.map +1 -0
- package/dist/{chunk-KPBLJCCV.js → chunk-PDVQ5JU3.js} +2 -2
- package/dist/{chunk-7BY7V4YX.js → chunk-Q4WONDMJ.js} +4 -3
- package/dist/{chunk-7BY7V4YX.js.map → chunk-Q4WONDMJ.js.map} +1 -1
- package/dist/{chunk-ESCQ6LY7.js → chunk-QFMO32TO.js} +3 -3
- package/dist/{chunk-HQSPXTQO.js → chunk-QXIQPCCN.js} +1 -1
- package/dist/{chunk-CFRBTATE.js → chunk-R47WINCY.js} +3 -3
- package/dist/{chunk-G72IPMR7.js → chunk-R4OCGPSH.js} +2 -2
- package/dist/{chunk-LCU5R6TQ.js → chunk-RAIUTAZZ.js} +22 -3
- package/dist/chunk-RAIUTAZZ.js.map +1 -0
- package/dist/chunk-RIAM7DND.js +167 -0
- package/dist/chunk-RIAM7DND.js.map +1 -0
- package/dist/{chunk-VZVP2W4O.js → chunk-RK4WXUI2.js} +2 -2
- package/dist/{chunk-JBPKEARU.js → chunk-RKNJBZ55.js} +4 -4
- package/dist/{chunk-6L27N6YI.js → chunk-S7Q5CM7E.js} +2 -2
- package/dist/{chunk-CTQRPANJ.js → chunk-SVSRPG6M.js} +2 -2
- package/dist/{chunk-GXWDWOWP.js → chunk-TDKSCV62.js} +2 -2
- package/dist/{chunk-S2VBSTTA.js → chunk-THG4GYIE.js} +2 -2
- package/dist/{chunk-IXRC7EQG.js → chunk-TR7DGXGI.js} +2 -2
- package/dist/{chunk-63FHSH7E.js → chunk-TYUS5TLG.js} +4 -4
- package/dist/{chunk-7PWWGYGO.js → chunk-URHCUXKI.js} +2 -2
- package/dist/{chunk-Z54TXZ2F.js → chunk-VA5KMSAE.js} +16 -7
- package/dist/chunk-VA5KMSAE.js.map +1 -0
- package/dist/{chunk-KQAFEZQX.js → chunk-VDX2J7OX.js} +2 -2
- package/dist/{chunk-MUJ4QFUQ.js → chunk-W4BMEGQA.js} +4 -4
- package/dist/{chunk-5HK3CJAR.js → chunk-W675UJCZ.js} +2 -2
- package/dist/{chunk-3PXVYJMC.js → chunk-WN5FSGLE.js} +2077 -215
- package/dist/chunk-WN5FSGLE.js.map +1 -0
- package/dist/{chunk-3RHFGGI5.js → chunk-YF6UHWOV.js} +30 -10
- package/dist/chunk-YF6UHWOV.js.map +1 -0
- package/dist/{chunk-X5SDZMO7.js → chunk-YHCBJULX.js} +2 -2
- package/dist/{chunk-5UYSCYR7.js → chunk-Z4RPXHJH.js} +4 -4
- package/dist/{cli-Pulnz-qm.d.ts → cli-ChKeYMZv.d.ts} +5 -5
- package/dist/cli.d.ts +25 -25
- package/dist/cli.js +81 -78
- package/dist/coding/pre-action-gate.d.ts +2 -60
- package/dist/compounding/engine.d.ts +4 -2
- package/dist/compounding/engine.js +17 -16
- package/dist/compounding/preference-consolidator.d.ts +3 -1
- package/dist/compression-optimizer.d.ts +3 -1
- package/dist/config.d.ts +3 -1
- package/dist/config.js +11 -1
- package/dist/connectors/codex-materialize-runner.d.ts +3 -1
- package/dist/connectors/codex-materialize-runner.js +16 -15
- package/dist/connectors/codex-materialize.d.ts +3 -1
- package/dist/connectors/index.d.ts +3 -1
- package/dist/connectors/index.js +16 -15
- package/dist/consolidation-provenance-check.d.ts +4 -2
- package/dist/consolidation-undo.d.ts +4 -2
- package/dist/contradiction/index.d.ts +10 -270
- package/dist/contradiction/index.js +20 -7
- package/dist/{contradiction-review-QKJH5DKD.js → contradiction-review-WRVLRWHS.js} +6 -2
- package/dist/{contradiction-scan-VOTQRRSX.js → contradiction-scan-AKUWPX5N.js} +5 -3
- package/dist/converge-config.d.ts +3 -1
- package/dist/convergence-refresh.d.ts +4 -2
- package/dist/convergence-refresh.js +18 -17
- package/dist/conversation-index/backend.d.ts +3 -1
- package/dist/conversation-index/chunker.d.ts +3 -1
- package/dist/conversation-index/faiss-adapter.d.ts +3 -1
- package/dist/conversation-index/indexer.d.ts +3 -1
- package/dist/conversation-index/search.d.ts +3 -1
- package/dist/corpus-watermark.d.ts +3 -1
- package/dist/corpus-watermark.js +18 -17
- package/dist/cross-lingual-recall.d.ts +3 -1
- package/dist/day-summary.d.ts +3 -1
- package/dist/delinearize.d.ts +3 -1
- package/dist/dependency-propagation-config.d.ts +3 -1
- package/dist/{dependency-propagation-delivery-Co17gxYb.d.ts → dependency-propagation-delivery-B8ZMBBCY.d.ts} +1 -1
- package/dist/direct-answer-wiring.d.ts +3 -1
- package/dist/direct-answer.d.ts +3 -1
- package/dist/embedding-fallback.d.ts +3 -1
- package/dist/enrichment/index.d.ts +3 -1
- package/dist/entity-origin-fields.d.ts +3 -1
- package/dist/entity-retrieval.d.ts +4 -2
- package/dist/entity-retrieval.js +16 -15
- package/dist/entity-schema.d.ts +3 -1
- package/dist/episodic-context.d.ts +3 -1
- package/dist/explicit-capture.d.ts +12 -12
- package/dist/explicit-capture.js +7 -6
- package/dist/external-wiki-access.d.ts +41 -42
- package/dist/external-wiki-access.js +37 -36
- package/dist/external-wiki-collection-registration.d.ts +3 -1
- package/dist/external-wiki-collection.d.ts +3 -1
- package/dist/external-wiki-mcp-tools.d.ts +40 -40
- package/dist/extraction-error-classification.d.ts +3 -1
- package/dist/extraction-faithfulness.d.ts +3 -1
- package/dist/extraction-judge-telemetry.d.ts +3 -1
- package/dist/extraction-judge-training.d.ts +3 -1
- package/dist/extraction-judge.d.ts +3 -1
- package/dist/extraction-judge.js +2 -2
- package/dist/extraction-liveness.d.ts +3 -1
- package/dist/extraction-normalization.d.ts +3 -1
- package/dist/extraction-normalization.js +2 -2
- package/dist/extraction-prompt.d.ts +4 -2
- package/dist/extraction-prompt.js +1 -1
- package/dist/extraction-source-grounding-rules.d.ts +3 -1
- package/dist/extraction-source-grounding.d.ts +3 -1
- package/dist/extraction.d.ts +3 -1
- package/dist/extraction.js +22 -21
- package/dist/fallback-llm.d.ts +3 -1
- package/dist/graph-dashboard-diff.d.ts +3 -1
- package/dist/graph-dashboard-key.d.ts +3 -1
- package/dist/graph-dashboard-parser.d.ts +3 -1
- package/dist/graph-edge-reinforcement.d.ts +3 -1
- package/dist/graph-path-reconstruction.d.ts +3 -1
- package/dist/graph-path-scoring.d.ts +3 -1
- package/dist/graph-snapshot.d.ts +3 -1
- package/dist/graph.d.ts +3 -1
- package/dist/harmonic-retrieval.js +1 -1
- package/dist/importance.d.ts +3 -1
- package/dist/importers/index.d.ts +3 -1
- package/dist/in-flight-reads.d.ts +3 -1
- package/dist/index-CexDrJzC.d.ts +284 -0
- package/dist/index.d.ts +946 -707
- package/dist/index.js +253 -151
- package/dist/intent.d.ts +3 -1
- package/dist/lcm/engine.d.ts +3 -1
- package/dist/lcm/engine.js +3 -3
- package/dist/lcm/index.d.ts +3 -1
- package/dist/lcm/index.js +6 -6
- package/dist/lcm/tools.d.ts +3 -1
- package/dist/lifecycle.d.ts +3 -1
- package/dist/live-connectors-runner.d.ts +3 -1
- package/dist/local-llm.d.ts +3 -1
- package/dist/local-model-endpoint.d.ts +3 -1
- package/dist/maintenance/memory-governance.d.ts +3 -1
- package/dist/maintenance/memory-governance.js +16 -15
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.d.ts +4 -2
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +16 -15
- package/dist/maintenance/rebuild-memory-projection.d.ts +4 -2
- package/dist/maintenance/rebuild-memory-projection.js +17 -16
- package/dist/{maintenance-DiSLtVN7.d.ts → maintenance-nkdtSrVr.d.ts} +3 -3
- package/dist/mcp-memory-inspector-app.d.ts +37 -37
- package/dist/mcp-read-only-tools.js +1 -1
- package/dist/memory-action-policy.d.ts +3 -1
- package/dist/memory-cache.d.ts +3 -1
- package/dist/memory-lifecycle-ledger-utils.d.ts +3 -1
- package/dist/memory-projection-store.d.ts +3 -1
- package/dist/memory-provenance.d.ts +3 -1
- package/dist/memory-snapshot.d.ts +3 -1
- package/dist/memory-subject-cli.d.ts +177 -0
- package/dist/memory-subject-cli.js +16 -0
- package/dist/memory-subject.d.ts +128 -0
- package/dist/memory-subject.js +44 -0
- package/dist/memory-subject.js.map +1 -0
- package/dist/memory-worth-outcomes.d.ts +7 -4
- package/dist/memory-worth-outcomes.js +1 -1
- package/dist/models-json.d.ts +3 -1
- package/dist/namespaces/migrate.d.ts +5 -3
- package/dist/namespaces/migrate.js +17 -16
- package/dist/namespaces/principal.d.ts +3 -1
- package/dist/namespaces/search.d.ts +3 -1
- package/dist/namespaces/search.js +6 -6
- package/dist/namespaces/storage.d.ts +5 -3
- package/dist/namespaces/storage.js +16 -15
- package/dist/native-knowledge.d.ts +3 -1
- package/dist/offline-sync-impression-drain.d.ts +3 -1
- package/dist/operator-doctor-corpus.d.ts +3 -1
- package/dist/operator-doctor-corpus.js +19 -18
- package/dist/operator-doctor-replica.d.ts +3 -1
- package/dist/operator-toolkit.d.ts +5 -3
- package/dist/operator-toolkit.js +29 -24
- package/dist/orchestration/compression-guideline-coordinator.d.ts +4 -2
- package/dist/orchestration/maintenance.d.ts +6 -4
- package/dist/orchestration/maintenance.js +22 -21
- package/dist/{orchestrator-DzCaxNS4.d.ts → orchestrator-Bvq1-RQs.d.ts} +23 -9
- package/dist/orchestrator.d.ts +12 -12
- package/dist/orchestrator.js +111 -108
- package/dist/patterns-cli.d.ts +3 -1
- package/dist/{pipeline-HJ8DKbFl.d.ts → pipeline-C8vfIiTX.d.ts} +1 -1
- package/dist/policy-runtime.d.ts +3 -1
- package/dist/proactive-contention.d.ts +3 -1
- package/dist/provenance.d.ts +3 -1
- package/dist/{public-http-DwXauTX3.d.ts → public-http-Cy0aYbys.d.ts} +1 -1
- package/dist/{qmd-BzxluoLt.d.ts → qmd-B9p1SZTZ.d.ts} +1 -1
- package/dist/qmd-preflight.d.ts +4 -2
- package/dist/qmd-recall-cache.d.ts +3 -1
- package/dist/qmd.d.ts +4 -2
- package/dist/qmd.js +4 -4
- package/dist/recall-concurrency-config.d.ts +3 -1
- package/dist/recall-disclosure-escalation.d.ts +3 -1
- package/dist/recall-explain-renderer.d.ts +3 -1
- package/dist/recall-explain-renderer.js +3 -3
- package/dist/recall-memory-map.d.ts +3 -1
- package/dist/recall-planner-llm.d.ts +3 -1
- package/dist/recall-state.d.ts +3 -1
- package/dist/recall-tag-filter.d.ts +3 -1
- package/dist/recall-timings.d.ts +3 -1
- package/dist/recall-xray-cli.d.ts +3 -1
- package/dist/recall-xray-cli.js +4 -4
- package/dist/recall-xray-renderer.d.ts +3 -1
- package/dist/recall-xray-renderer.js +3 -3
- package/dist/recall-xray.d.ts +3 -1
- package/dist/recall-xray.js +2 -2
- package/dist/reconcile/cursor.d.ts +3 -1
- package/dist/reconcile/manifest.d.ts +3 -1
- package/dist/reconcile/manifest.js +3 -3
- package/dist/reconcile/plan.d.ts +3 -1
- package/dist/replay/normalizers/chatgpt.d.ts +3 -1
- package/dist/replay/normalizers/claude.d.ts +3 -1
- package/dist/replay/normalizers/openclaw.d.ts +3 -1
- package/dist/replay/normalizers/shared.d.ts +3 -1
- package/dist/replay/runner.d.ts +3 -1
- package/dist/replay/types.d.ts +3 -1
- package/dist/replica-divergence.d.ts +3 -1
- package/dist/replica-peers-config.d.ts +3 -1
- package/dist/resolution-4552BNRV.js +36 -0
- package/dist/resolution-4552BNRV.js.map +1 -0
- package/dist/resolve-auth-token.d.ts +3 -1
- package/dist/resume-bundles.js +9 -2
- package/dist/retrieval-agents.d.ts +4 -2
- package/dist/retrieval-tiers.d.ts +3 -1
- package/dist/routing/engine.d.ts +3 -1
- package/dist/routing/store.d.ts +3 -1
- package/dist/salvage-envelope.d.ts +3 -1
- package/dist/salvage-envelope.js +10 -2
- package/dist/schemas.d.ts +130 -116
- package/dist/schemas.js +1 -1
- package/dist/{scope-profiles-CEMZz0t5.d.ts → scope-profiles-DLrRxFWR.d.ts} +1 -1
- package/dist/search/embed-helper.d.ts +3 -1
- package/dist/search/factory.d.ts +3 -1
- package/dist/search/factory.js +5 -5
- package/dist/search/index.d.ts +3 -1
- package/dist/search/index.js +9 -9
- package/dist/search/lancedb-backend.d.ts +3 -1
- package/dist/search/meilisearch-backend.d.ts +3 -1
- package/dist/search/noop-backend.d.ts +3 -1
- package/dist/search/orama-backend.d.ts +3 -1
- package/dist/search/port.d.ts +3 -1
- package/dist/search/remote-backend.d.ts +3 -1
- package/dist/{semantic-TddhF0y7.d.ts → semantic-BalR6EXU.d.ts} +1 -1
- package/dist/{semantic-consolidation-D9dYj6vu.d.ts → semantic-consolidation-DlN6xe20.d.ts} +1 -1
- package/dist/semantic-consolidation.d.ts +4 -2
- package/dist/semantic-consolidation.js +17 -16
- package/dist/semantic-rule-promotion.js +16 -15
- package/dist/semantic-rule-verifier.d.ts +3 -1
- package/dist/semantic-rule-verifier.js +16 -15
- package/dist/{service-_qgST_0y.d.ts → service-GkYyVfm9.d.ts} +2 -2
- package/dist/session-observer-bands.d.ts +3 -1
- package/dist/session-observer-state.d.ts +3 -1
- package/dist/shared-context/manager.d.ts +13 -11
- package/dist/signal.d.ts +3 -1
- package/dist/source-agent-qualifier.d.ts +3 -1
- package/dist/source-agent-qualifier.js +18 -17
- package/dist/{storage-B9lbNTYE.d.ts → storage-BIDzuKIn.d.ts} +3 -2
- package/dist/storage.d.ts +4 -2
- package/dist/storage.js +18 -17
- package/dist/subject-config.d.ts +40 -0
- package/dist/subject-config.js +20 -0
- package/dist/subject-config.js.map +1 -0
- package/dist/summarizer.d.ts +3 -1
- package/dist/summary-snapshot.d.ts +3 -1
- package/dist/support-passport/index.d.ts +43 -43
- package/dist/support-passport/index.js +39 -38
- package/dist/temporal-supersession.d.ts +4 -2
- package/dist/temporal-timeline-recall.d.ts +3 -1
- package/dist/temporal-validity.d.ts +3 -1
- package/dist/threading.d.ts +3 -1
- package/dist/tier-migration.d.ts +4 -2
- package/dist/tier-routing.d.ts +3 -1
- package/dist/topics.d.ts +3 -1
- package/dist/transcript.d.ts +3 -1
- package/dist/transfer/backup.js +2 -2
- package/dist/transfer/capsule-export.js +2 -2
- package/dist/transfer/capsule-import.js +2 -2
- package/dist/transfer/types.d.ts +86 -86
- package/dist/trust-score-stage.d.ts +3 -1
- package/dist/trust-score.d.ts +3 -1
- package/dist/{types-BrEzuxPA.d.ts → types-BxAcOl5Q.d.ts} +360 -32
- package/dist/types.d.ts +3 -1
- package/dist/types.js +1 -1
- package/dist/utility-runtime.d.ts +3 -1
- package/dist/verified-recall.js +16 -15
- package/dist/who-knows-cli.d.ts +40 -40
- package/dist/who-knows-cli.js +17 -16
- package/dist/who-knows.d.ts +42 -42
- package/dist/who-knows.js +16 -15
- package/dist/write-envelope.d.ts +7 -2
- package/dist/write-envelope.js +10 -1
- package/package.json +2 -2
- package/scripts/build-with-heap.mjs +1 -1
- package/src/access-boundary.ts +6 -0
- package/src/access-http.ts +6 -5
- package/src/access-mcp-admin-tools.ts +38 -0
- package/src/access-mcp-output-schemas.ts +20 -0
- package/src/access-mcp.ts +8 -8
- package/src/access-operations-batch.ts +13 -0
- package/src/access-service.ts +112 -0
- package/src/access-surface-catalog.test.ts +24 -0
- package/src/access-surface-catalog.ts +6 -0
- package/src/coding/action-gate.test.ts +341 -0
- package/src/coding/action-gate.ts +556 -0
- package/src/config.ts +15 -17
- package/src/contradiction/contradiction-review.ts +50 -4
- package/src/contradiction/contradiction-scan.ts +14 -3
- package/src/contradiction/resolution.ts +50 -2
- package/src/extraction-prompt.ts +1 -0
- package/src/extraction.ts +4 -1
- package/src/index.ts +9 -9
- package/src/mcp-read-only-tools.ts +1 -0
- package/src/memory-subject-cli.ts +135 -0
- package/src/memory-subject.test.ts +48 -0
- package/src/memory-subject.ts +314 -0
- package/src/memory-worth-outcomes.test.ts +6 -2
- package/src/memory-worth-outcomes.ts +11 -7
- package/src/operator-toolkit.ts +1 -1
- package/src/orchestration/extraction-persist.ts +48 -48
- package/src/orchestration/recall-internal.ts +6 -5
- package/src/orchestration/recall-rerank-coordinator.ts +123 -4
- package/src/orchestration/recall-result-formatter.ts +6 -2
- package/src/orchestration/recall-search-pipeline.ts +14 -1
- package/src/preferences/drift-config.ts +118 -0
- package/src/preferences/drift-recall.ts +133 -0
- package/src/preferences/drift-types.ts +87 -0
- package/src/preferences/index.ts +12 -0
- package/src/preferences/preference-drift.test.ts +690 -0
- package/src/preferences/preference-drift.ts +724 -0
- package/src/procedural/library-maintenance.test.ts +582 -0
- package/src/procedural/library-maintenance.ts +546 -0
- package/src/procedural/maintenance-config.ts +78 -0
- package/src/procedural/procedure-recall.ts +29 -1
- package/src/procedural/procedure-stats.ts +20 -0
- package/src/review/review-deck-access.test.ts +325 -0
- package/src/review/review-deck-http-base.ts +133 -0
- package/src/review/review-deck-mutation.test.ts +417 -0
- package/src/review/review-deck-mutation.ts +677 -0
- package/src/review/review-deck-snapshot.ts +196 -0
- package/src/review/review-deck-surface.ts +117 -0
- package/src/review/review-deck.test.ts +347 -0
- package/src/review/review-deck.ts +311 -0
- package/src/schemas.ts +7 -0
- package/src/spaces/index.ts +38 -2
- package/src/storage.ts +10 -8
- package/src/subject-config.ts +80 -0
- package/src/types.ts +33 -32
- package/src/write-envelope.test.ts +14 -0
- package/src/write-envelope.ts +24 -3
- package/dist/chunk-35NN3ZFA.js.map +0 -1
- package/dist/chunk-3PXVYJMC.js.map +0 -1
- package/dist/chunk-3RHFGGI5.js.map +0 -1
- package/dist/chunk-4NZHHGVL.js.map +0 -1
- package/dist/chunk-CEQF6L5K.js.map +0 -1
- package/dist/chunk-CUS6S7PN.js.map +0 -1
- package/dist/chunk-DBXZZIDU.js.map +0 -1
- package/dist/chunk-DEFI2QBT.js.map +0 -1
- package/dist/chunk-EIR5VLIH.js.map +0 -1
- package/dist/chunk-GEULB2VI.js.map +0 -1
- package/dist/chunk-JFJ3MHGV.js.map +0 -1
- package/dist/chunk-JG22O53B.js.map +0 -1
- package/dist/chunk-LCU5R6TQ.js.map +0 -1
- package/dist/chunk-MDVBCPOS.js +0 -402
- package/dist/chunk-MDVBCPOS.js.map +0 -1
- package/dist/chunk-MSTNSVXI.js.map +0 -1
- package/dist/chunk-WTOE7CW4.js.map +0 -1
- package/dist/chunk-YQ3CBLL4.js.map +0 -1
- package/dist/chunk-Z54TXZ2F.js.map +0 -1
- package/dist/resolution-DKMBPXHI.js +0 -18
- /package/dist/{capsule-crypto-7FJQINUR.js.map → capsule-crypto-YO5QJ6L3.js.map} +0 -0
- /package/dist/{chunk-MIBKEW7A.js.map → chunk-2VXWFYJE.js.map} +0 -0
- /package/dist/{chunk-3YTTAGPB.js.map → chunk-3DVBKTSO.js.map} +0 -0
- /package/dist/{chunk-JTSVMJHV.js.map → chunk-4XDGYCZI.js.map} +0 -0
- /package/dist/{chunk-HQSBYI5X.js.map → chunk-57HVIG5U.js.map} +0 -0
- /package/dist/{chunk-PMVPCZJZ.js.map → chunk-6433HV72.js.map} +0 -0
- /package/dist/{chunk-N6TRHP72.js.map → chunk-6TAX66IA.js.map} +0 -0
- /package/dist/{chunk-AGKIG3YA.js.map → chunk-6VALIZKG.js.map} +0 -0
- /package/dist/{chunk-NS5ETDYD.js.map → chunk-7BEPVIH3.js.map} +0 -0
- /package/dist/{chunk-LYIZXQYY.js.map → chunk-7KFIMGMP.js.map} +0 -0
- /package/dist/{chunk-LWVO2QZV.js.map → chunk-7QOO4LGC.js.map} +0 -0
- /package/dist/{chunk-CCTVAVTT.js.map → chunk-AUO2LJ3K.js.map} +0 -0
- /package/dist/{chunk-ALCJRQ72.js.map → chunk-AYDDB3XI.js.map} +0 -0
- /package/dist/{chunk-3TMYV3LP.js.map → chunk-AYYGRVRP.js.map} +0 -0
- /package/dist/{chunk-W6TSGWYS.js.map → chunk-AZAA5DNP.js.map} +0 -0
- /package/dist/{chunk-6JJT5AKI.js.map → chunk-BQUEAVNW.js.map} +0 -0
- /package/dist/{chunk-2NLLXCJG.js.map → chunk-BXLOS5AJ.js.map} +0 -0
- /package/dist/{chunk-CEH2AFXG.js.map → chunk-C24UZSFW.js.map} +0 -0
- /package/dist/{chunk-ZPN7W3OP.js.map → chunk-CDUUDBWJ.js.map} +0 -0
- /package/dist/{chunk-Y23B2QXP.js.map → chunk-D27J626P.js.map} +0 -0
- /package/dist/{chunk-2572MRP2.js.map → chunk-DHTQP334.js.map} +0 -0
- /package/dist/{chunk-HJQZQUPC.js.map → chunk-DJZWNKFO.js.map} +0 -0
- /package/dist/{chunk-X7Y7WX73.js.map → chunk-DQEMWVMT.js.map} +0 -0
- /package/dist/{chunk-VJ6ECBIP.js.map → chunk-E4MVQQVX.js.map} +0 -0
- /package/dist/{chunk-SYJ6EKKE.js.map → chunk-EIVIB73I.js.map} +0 -0
- /package/dist/{chunk-HUNSEO5U.js.map → chunk-EV3YFLCB.js.map} +0 -0
- /package/dist/{chunk-VPGRXEAB.js.map → chunk-G57LQRP6.js.map} +0 -0
- /package/dist/{chunk-BC4QD3FM.js.map → chunk-GN55KU2P.js.map} +0 -0
- /package/dist/{chunk-4W6INNXO.js.map → chunk-GUXS322H.js.map} +0 -0
- /package/dist/{chunk-3MADV4YC.js.map → chunk-IQSC3V2E.js.map} +0 -0
- /package/dist/{chunk-UYCIS6V5.js.map → chunk-JCWY73FK.js.map} +0 -0
- /package/dist/{chunk-T42L3S6A.js.map → chunk-LBWQ65SX.js.map} +0 -0
- /package/dist/{chunk-256FBCVX.js.map → chunk-M4AHBM72.js.map} +0 -0
- /package/dist/{chunk-YEQEGSJA.js.map → chunk-MBDJJTAT.js.map} +0 -0
- /package/dist/{chunk-IAY7YBXS.js.map → chunk-MRTUN665.js.map} +0 -0
- /package/dist/{chunk-R3AAOKR2.js.map → chunk-NZWEEALH.js.map} +0 -0
- /package/dist/{chunk-I2HTKOOP.js.map → chunk-ODZG724P.js.map} +0 -0
- /package/dist/{chunk-7QFBLYFP.js.map → chunk-OJD4WS2E.js.map} +0 -0
- /package/dist/{chunk-53ENM6F6.js.map → chunk-P4DHENRE.js.map} +0 -0
- /package/dist/{chunk-KPBLJCCV.js.map → chunk-PDVQ5JU3.js.map} +0 -0
- /package/dist/{chunk-ESCQ6LY7.js.map → chunk-QFMO32TO.js.map} +0 -0
- /package/dist/{chunk-HQSPXTQO.js.map → chunk-QXIQPCCN.js.map} +0 -0
- /package/dist/{chunk-CFRBTATE.js.map → chunk-R47WINCY.js.map} +0 -0
- /package/dist/{chunk-G72IPMR7.js.map → chunk-R4OCGPSH.js.map} +0 -0
- /package/dist/{chunk-VZVP2W4O.js.map → chunk-RK4WXUI2.js.map} +0 -0
- /package/dist/{chunk-JBPKEARU.js.map → chunk-RKNJBZ55.js.map} +0 -0
- /package/dist/{chunk-6L27N6YI.js.map → chunk-S7Q5CM7E.js.map} +0 -0
- /package/dist/{chunk-CTQRPANJ.js.map → chunk-SVSRPG6M.js.map} +0 -0
- /package/dist/{chunk-GXWDWOWP.js.map → chunk-TDKSCV62.js.map} +0 -0
- /package/dist/{chunk-S2VBSTTA.js.map → chunk-THG4GYIE.js.map} +0 -0
- /package/dist/{chunk-IXRC7EQG.js.map → chunk-TR7DGXGI.js.map} +0 -0
- /package/dist/{chunk-63FHSH7E.js.map → chunk-TYUS5TLG.js.map} +0 -0
- /package/dist/{chunk-7PWWGYGO.js.map → chunk-URHCUXKI.js.map} +0 -0
- /package/dist/{chunk-KQAFEZQX.js.map → chunk-VDX2J7OX.js.map} +0 -0
- /package/dist/{chunk-MUJ4QFUQ.js.map → chunk-W4BMEGQA.js.map} +0 -0
- /package/dist/{chunk-5HK3CJAR.js.map → chunk-W675UJCZ.js.map} +0 -0
- /package/dist/{chunk-X5SDZMO7.js.map → chunk-YHCBJULX.js.map} +0 -0
- /package/dist/{chunk-5UYSCYR7.js.map → chunk-Z4RPXHJH.js.map} +0 -0
- /package/dist/{contradiction-review-QKJH5DKD.js.map → contradiction-review-WRVLRWHS.js.map} +0 -0
- /package/dist/{contradiction-scan-VOTQRRSX.js.map → contradiction-scan-AKUWPX5N.js.map} +0 -0
- /package/dist/{resolution-DKMBPXHI.js.map → memory-subject-cli.js.map} +0 -0
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { S as
|
|
4
|
-
import { S as StorageManager } from './storage-
|
|
1
|
+
import { P as PluginConfig, C as CodingContext, M as MemoryFile, y as MemoryCategory, G as GatewayConfig, N as MemorySubject, au as SubjectGuardMode, aI as DaySummaryResult, o as RecallDisclosure, R as RecallPlanMode, K as MemoryLifecycleEvent, E as EntityFile, w as MemoryStatus, p as SourceConnectorProvenance, bj as DreamsStatusResult, D as DreamsPhase, a as DreamsRunResult } from './types-BxAcOl5Q.js';
|
|
2
|
+
import { O as Orchestrator, I as IntentDebugSnapshot, G as GraphRecallSnapshot, P as PatternReinforcementResult } from './orchestrator-Bvq1-RQs.js';
|
|
3
|
+
import { S as ScopeProfileLayerResolution, a as ScopeProfilePromotionResolution, R as ResolvedScopeProfilePlan } from './scope-profiles-DLrRxFWR.js';
|
|
4
|
+
import { S as StorageManager } from './storage-BIDzuKIn.js';
|
|
5
|
+
import { a as SemanticDedupLookup } from './semantic-BalR6EXU.js';
|
|
6
|
+
import { LocalLlmClient } from './local-llm.js';
|
|
7
|
+
import { FallbackLlmClient } from './fallback-llm.js';
|
|
8
|
+
import { TrustZoneStoreStatus, TrustZoneName, TrustZoneRecordKind, TrustZoneSourceClass, TrustZoneProvenanceScore, TrustZonePromotionResult, TrustZoneDemoSeedResult } from './trust-zones.js';
|
|
9
|
+
import { LcmMessagePartInput, MessagePartSourceFormat } from './message-parts/index.js';
|
|
10
|
+
import { RecallRequest, ObserveRequest } from './access-schema.js';
|
|
11
|
+
import { z } from 'zod';
|
|
12
|
+
import { ResolveSecretRefFn } from './resolve-auth-token.js';
|
|
13
|
+
import { RecallContextComposition } from './recall-context-composition.js';
|
|
14
|
+
import { RecallXraySnapshot } from './recall-xray.js';
|
|
15
|
+
import { Readable, Writable } from 'node:stream';
|
|
16
|
+
import { ActionConfidenceInput, ActionConfidenceResult } from './action-confidence.js';
|
|
17
|
+
import { OfflineSyncFileState, OfflineSyncSnapshot, OfflineSyncFileRecord, OfflineSyncFileContentChunk, OfflineSyncApplyFileContentChunkResult, OfflineSyncApplyChangesetResult } from './offline-sync.js';
|
|
18
|
+
import { LiveConnectorsRunSummary } from './live-connectors-runner.js';
|
|
19
|
+
import { readMemoryGovernanceRunArtifact } from './maintenance/memory-governance.js';
|
|
20
|
+
import { LastRecallSnapshot } from './recall-state.js';
|
|
21
|
+
import { W as WearablesService, c as MeetingsListResult, b as MeetingsGetResult, a as MeetingsDayBuildSummary } from './service-GkYyVfm9.js';
|
|
22
|
+
import { MemoryOutcomeKind, RecordMemoryOutcomeResult } from './memory-worth-outcomes.js';
|
|
23
|
+
import { BudgetWarning } from './cross-namespace-budget.js';
|
|
24
|
+
import { AnomalyDetectorResult } from './recall-audit-anomaly.js';
|
|
5
25
|
import { a as Peer, b as PeerProfile } from './types-B1VHaf2w.js';
|
|
26
|
+
import { ImportCapsuleOptions, ImportCapsuleResult } from './transfer/capsule-import.js';
|
|
27
|
+
import { b as NamespaceRecord } from './catalog-CX2BZEJh.js';
|
|
28
|
+
import { S as ScopePlan, E as EngramAccessNamespaceWritableRequest, W as WritableNamespaceResult } from './access-namespace-preflight-B7Usyz-K.js';
|
|
6
29
|
import { RecallExplainJsonPayload } from './recall-explain-renderer.js';
|
|
7
30
|
import { CitationUsageRequest, CitationUsageResult } from './access-citation.js';
|
|
8
31
|
import { EngramAccessHealthResponse } from './access-health-types.js';
|
|
9
|
-
import { ResolveSecretRefFn } from './resolve-auth-token.js';
|
|
10
|
-
import { O as Orchestrator, I as IntentDebugSnapshot, G as GraphRecallSnapshot, P as PatternReinforcementResult } from './orchestrator-DzCaxNS4.js';
|
|
11
|
-
import { BudgetWarning } from './cross-namespace-budget.js';
|
|
12
32
|
import { ExplicitCaptureInput } from './explicit-capture.js';
|
|
13
|
-
import { LiveConnectorsRunSummary } from './live-connectors-runner.js';
|
|
14
|
-
import { readMemoryGovernanceRunArtifact } from './maintenance/memory-governance.js';
|
|
15
|
-
import { W as WearablesService, c as MeetingsListResult, b as MeetingsGetResult, a as MeetingsDayBuildSummary } from './service-_qgST_0y.js';
|
|
16
|
-
import { AnomalyDetectorResult } from './recall-audit-anomaly.js';
|
|
17
33
|
import { WearablesMeetingsScope } from './access-wearables-meetings-surface.js';
|
|
18
34
|
import { GraphSnapshotRequest, GraphSnapshotResponse } from './graph-snapshot.js';
|
|
19
|
-
import { S as ScopeProfileLayerResolution, a as ScopeProfilePromotionResolution, R as ResolvedScopeProfilePlan } from './scope-profiles-CEMZz0t5.js';
|
|
20
|
-
import { RecallContextComposition } from './recall-context-composition.js';
|
|
21
|
-
import { LastRecallSnapshot } from './recall-state.js';
|
|
22
|
-
import { TrustZoneStoreStatus, TrustZoneName, TrustZoneRecordKind, TrustZoneSourceClass, TrustZoneProvenanceScore, TrustZonePromotionResult, TrustZoneDemoSeedResult } from './trust-zones.js';
|
|
23
|
-
import { FallbackLlmClient } from './fallback-llm.js';
|
|
24
|
-
import { LocalLlmClient } from './local-llm.js';
|
|
25
|
-
import { z } from 'zod';
|
|
26
35
|
import { OfflineSyncManifestStreamResponse } from './access-offline-manifest.js';
|
|
27
|
-
import { ActionConfidenceInput, ActionConfidenceResult } from './action-confidence.js';
|
|
28
36
|
import { CapsuleListEntry } from './capsule-cli.js';
|
|
29
|
-
import { S as SemanticDedupLookup } from './semantic-TddhF0y7.js';
|
|
30
|
-
import { MemoryOutcomeKind, RecordMemoryOutcomeResult } from './memory-worth-outcomes.js';
|
|
31
|
-
import { LcmMessagePartInput, MessagePartSourceFormat } from './message-parts/index.js';
|
|
32
|
-
import { RecallRequest, ObserveRequest } from './access-schema.js';
|
|
33
|
-
import { OfflineSyncFileState, OfflineSyncSnapshot, OfflineSyncFileRecord, OfflineSyncFileContentChunk, OfflineSyncApplyFileContentChunkResult, OfflineSyncApplyChangesetResult } from './offline-sync.js';
|
|
34
|
-
import { RecallXraySnapshot } from './recall-xray.js';
|
|
35
|
-
import { Readable, Writable } from 'node:stream';
|
|
36
37
|
import { withHeldFileLock } from './utils/serialize-mutations.js';
|
|
37
38
|
import { ExportCapsuleOptions, ExportCapsuleResult } from './transfer/capsule-export.js';
|
|
38
|
-
import { ImportCapsuleOptions, ImportCapsuleResult } from './transfer/capsule-import.js';
|
|
39
39
|
import './access-errors.js';
|
|
40
40
|
|
|
41
41
|
/**
|
|
@@ -321,6 +321,10 @@ interface ProcedureStatsReport {
|
|
|
321
321
|
counts: ProcedureStatusCounts;
|
|
322
322
|
recent: ProcedureStatsRecent;
|
|
323
323
|
config: ProcedureStatsConfigSnapshot;
|
|
324
|
+
/** ISO timestamp of the last library-maintenance run marker, or null (issue #2370). */
|
|
325
|
+
lastMaintenanceAt: string | null;
|
|
326
|
+
/** Active procedures currently carrying a `needsRepair` flag (issue #2370). */
|
|
327
|
+
needsRepairFlags: number;
|
|
324
328
|
}
|
|
325
329
|
/**
|
|
326
330
|
* Read all memories from storage and tally procedures by status + recency.
|
|
@@ -337,6 +341,98 @@ declare function computeProcedureStats(options: {
|
|
|
337
341
|
*/
|
|
338
342
|
declare function formatProcedureStatsText(report: ProcedureStatsReport): string;
|
|
339
343
|
|
|
344
|
+
/**
|
|
345
|
+
* Procedure library health maintenance (issue #2370).
|
|
346
|
+
*
|
|
347
|
+
* The library-health loop the agent-memory survey describes: consume the
|
|
348
|
+
* telemetry Remnic already records (Memory Worth counters, access
|
|
349
|
+
* timestamps, causal trajectories) and propose merge / repair-flag /
|
|
350
|
+
* retire transitions for ACTIVE procedure memories.
|
|
351
|
+
*
|
|
352
|
+
* Shadow-first contract (mirrors `memory_governance_run`): the default run
|
|
353
|
+
* mode produces a JSON report and writes NOTHING — not even the run
|
|
354
|
+
* marker. Applying requires `apply: true` AND
|
|
355
|
+
* `procedural.maintenance.enabled: true`.
|
|
356
|
+
*
|
|
357
|
+
* Actions, evaluated in this order per run:
|
|
358
|
+
* 1. Merge — cluster active procedures by normalized trigger phrase +
|
|
359
|
+
* step signature; most-recently-updated member becomes the
|
|
360
|
+
* canonical, the rest are superseded pointing at it. The
|
|
361
|
+
* canonical is stamped with the issue-#687 frontmatter
|
|
362
|
+
* contract (`reinforcement_count`, `last_reinforced_at`,
|
|
363
|
+
* `derived_via`, `derived_from`) so `patterns explain` reads
|
|
364
|
+
* procedure canonicals unchanged. A user-edited body never
|
|
365
|
+
* merges — the cluster is flagged instead.
|
|
366
|
+
* 2. Repair — flag (never rewrite) procedures whose `ProcedureStep`
|
|
367
|
+
* toolCall tools no longer appear in recent causal
|
|
368
|
+
* trajectories, via `structuredAttributes.needsRepair`.
|
|
369
|
+
* 3. Retire — demote to `archived` when failure-dominant past the
|
|
370
|
+
* configured thresholds, or idle past `retireIdleDays` with
|
|
371
|
+
* zero recorded outcomes. Demotion, never deletion; page
|
|
372
|
+
* versioning snapshots every overwrite. User-edited
|
|
373
|
+
* procedures are exempt and flagged instead.
|
|
374
|
+
*
|
|
375
|
+
* Deliberately NOT part of `runMemoryGovernance` — same isolation decision
|
|
376
|
+
* as procedure mining (docs/procedural-memory.md).
|
|
377
|
+
*/
|
|
378
|
+
|
|
379
|
+
type ProcedureLibraryStorage = {
|
|
380
|
+
readAllMemories: () => Promise<MemoryFile[]>;
|
|
381
|
+
writeMemoryFrontmatter: (memory: MemoryFile, patch: Record<string, unknown>, extras?: Record<string, unknown>) => Promise<unknown>;
|
|
382
|
+
archiveMemory: (memory: MemoryFile, opts: {
|
|
383
|
+
at: Date;
|
|
384
|
+
actor: string;
|
|
385
|
+
reasonCode: string;
|
|
386
|
+
ruleVersion?: string;
|
|
387
|
+
relatedMemoryIds?: string[];
|
|
388
|
+
}) => Promise<string | null>;
|
|
389
|
+
};
|
|
390
|
+
type ProcedureMaintenanceActionKind = "merge" | "retire" | "flag_repair" | "flag_user_edited";
|
|
391
|
+
type ProcedureMaintenanceReasonCode = "merge_duplicate_signature" | "retire_failure_dominant" | "retire_idle" | "needs_repair_stale_tools" | "user_edited_protected";
|
|
392
|
+
interface ProcedureMaintenanceEvidence {
|
|
393
|
+
memoryId: string;
|
|
394
|
+
mwSuccess: number;
|
|
395
|
+
mwFail: number;
|
|
396
|
+
lastAccessed: string | null;
|
|
397
|
+
updated: string | null;
|
|
398
|
+
}
|
|
399
|
+
interface ProcedureMaintenanceAction {
|
|
400
|
+
action: ProcedureMaintenanceActionKind;
|
|
401
|
+
reasonCode: ProcedureMaintenanceReasonCode;
|
|
402
|
+
/** Canonical first for merges; otherwise the single targeted memory. */
|
|
403
|
+
memoryIds: string[];
|
|
404
|
+
canonicalId?: string;
|
|
405
|
+
reason: string;
|
|
406
|
+
evidence: ProcedureMaintenanceEvidence[];
|
|
407
|
+
}
|
|
408
|
+
interface ProcedureLibraryMaintenanceReport {
|
|
409
|
+
schemaVersion: 1;
|
|
410
|
+
generatedAt: string;
|
|
411
|
+
mode: "shadow" | "apply";
|
|
412
|
+
scannedProcedures: number;
|
|
413
|
+
proposed: ProcedureMaintenanceAction[];
|
|
414
|
+
applied: ProcedureMaintenanceAction[];
|
|
415
|
+
appliedCount: number;
|
|
416
|
+
skippedReason?: "procedural_disabled" | "maintenance_disabled";
|
|
417
|
+
}
|
|
418
|
+
interface ProcedureMaintenanceMarker {
|
|
419
|
+
schemaVersion: 1;
|
|
420
|
+
lastRunAt: string;
|
|
421
|
+
lastApplyAt: string | null;
|
|
422
|
+
appliedCount: number;
|
|
423
|
+
}
|
|
424
|
+
/**
|
|
425
|
+
* Run one library-health maintenance pass over the procedures in a storage.
|
|
426
|
+
* Shadow mode performs NO writes (not even the state marker).
|
|
427
|
+
*/
|
|
428
|
+
declare function runProcedureLibraryMaintenance(options: {
|
|
429
|
+
storage: ProcedureLibraryStorage;
|
|
430
|
+
memoryDir: string;
|
|
431
|
+
config: PluginConfig;
|
|
432
|
+
apply?: boolean;
|
|
433
|
+
now?: Date;
|
|
434
|
+
}): Promise<ProcedureLibraryMaintenanceReport>;
|
|
435
|
+
|
|
340
436
|
interface ConsoleBufferState {
|
|
341
437
|
/** Number of turns currently held in the default buffer slot. */
|
|
342
438
|
turnsCount: number;
|
|
@@ -933,24 +1029,24 @@ declare const SupportPassportDraftCardSchema: z.ZodEffects<z.ZodObject<{
|
|
|
933
1029
|
category: z.ZodEnum<["communication", "environment", "transitions", "sensory", "regulation", "interests", "other"]>;
|
|
934
1030
|
sourceMemoryIds: z.ZodArray<z.ZodString, "many">;
|
|
935
1031
|
}, "strict", z.ZodTypeAny, {
|
|
1032
|
+
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
936
1033
|
title: string;
|
|
937
1034
|
sourceMemoryIds: string[];
|
|
938
|
-
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
939
1035
|
statement: string;
|
|
940
1036
|
}, {
|
|
1037
|
+
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
941
1038
|
title: string;
|
|
942
1039
|
sourceMemoryIds: string[];
|
|
943
|
-
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
944
1040
|
statement: string;
|
|
945
1041
|
}>, {
|
|
1042
|
+
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
946
1043
|
title: string;
|
|
947
1044
|
sourceMemoryIds: string[];
|
|
948
|
-
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
949
1045
|
statement: string;
|
|
950
1046
|
}, {
|
|
1047
|
+
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
951
1048
|
title: string;
|
|
952
1049
|
sourceMemoryIds: string[];
|
|
953
|
-
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
954
1050
|
statement: string;
|
|
955
1051
|
}>;
|
|
956
1052
|
declare const SupportPassportDraftOutputSchema: z.ZodObject<{
|
|
@@ -960,38 +1056,38 @@ declare const SupportPassportDraftOutputSchema: z.ZodObject<{
|
|
|
960
1056
|
category: z.ZodEnum<["communication", "environment", "transitions", "sensory", "regulation", "interests", "other"]>;
|
|
961
1057
|
sourceMemoryIds: z.ZodArray<z.ZodString, "many">;
|
|
962
1058
|
}, "strict", z.ZodTypeAny, {
|
|
1059
|
+
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
963
1060
|
title: string;
|
|
964
1061
|
sourceMemoryIds: string[];
|
|
965
|
-
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
966
1062
|
statement: string;
|
|
967
1063
|
}, {
|
|
1064
|
+
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
968
1065
|
title: string;
|
|
969
1066
|
sourceMemoryIds: string[];
|
|
970
|
-
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
971
1067
|
statement: string;
|
|
972
1068
|
}>, {
|
|
1069
|
+
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
973
1070
|
title: string;
|
|
974
1071
|
sourceMemoryIds: string[];
|
|
975
|
-
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
976
1072
|
statement: string;
|
|
977
1073
|
}, {
|
|
1074
|
+
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
978
1075
|
title: string;
|
|
979
1076
|
sourceMemoryIds: string[];
|
|
980
|
-
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
981
1077
|
statement: string;
|
|
982
1078
|
}>, "many">;
|
|
983
1079
|
}, "strict", z.ZodTypeAny, {
|
|
984
1080
|
cards: {
|
|
1081
|
+
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
985
1082
|
title: string;
|
|
986
1083
|
sourceMemoryIds: string[];
|
|
987
|
-
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
988
1084
|
statement: string;
|
|
989
1085
|
}[];
|
|
990
1086
|
}, {
|
|
991
1087
|
cards: {
|
|
1088
|
+
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
992
1089
|
title: string;
|
|
993
1090
|
sourceMemoryIds: string[];
|
|
994
|
-
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
995
1091
|
statement: string;
|
|
996
1092
|
}[];
|
|
997
1093
|
}>;
|
|
@@ -1037,20 +1133,20 @@ declare const SupportPassportAnswerOutputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1037
1133
|
citedCardIds: z.ZodArray<z.ZodString, "many">;
|
|
1038
1134
|
coverage: z.ZodEnum<["grounded", "not_in_guide"]>;
|
|
1039
1135
|
}, "strict", z.ZodTypeAny, {
|
|
1040
|
-
answer: string;
|
|
1041
1136
|
coverage: "grounded" | "not_in_guide";
|
|
1137
|
+
answer: string;
|
|
1042
1138
|
citedCardIds: string[];
|
|
1043
1139
|
}, {
|
|
1044
|
-
answer: string;
|
|
1045
1140
|
coverage: "grounded" | "not_in_guide";
|
|
1141
|
+
answer: string;
|
|
1046
1142
|
citedCardIds: string[];
|
|
1047
1143
|
}>, {
|
|
1048
|
-
answer: string;
|
|
1049
1144
|
coverage: "grounded" | "not_in_guide";
|
|
1145
|
+
answer: string;
|
|
1050
1146
|
citedCardIds: string[];
|
|
1051
1147
|
}, {
|
|
1052
|
-
answer: string;
|
|
1053
1148
|
coverage: "grounded" | "not_in_guide";
|
|
1149
|
+
answer: string;
|
|
1054
1150
|
citedCardIds: string[];
|
|
1055
1151
|
}>;
|
|
1056
1152
|
declare const SupportPassportAnswerModelInputSchema: z.ZodObject<{
|
|
@@ -1066,38 +1162,38 @@ declare const SupportPassportAnswerModelInputSchema: z.ZodObject<{
|
|
|
1066
1162
|
category: z.ZodEnum<["communication", "environment", "transitions", "sensory", "regulation", "interests", "other"]>;
|
|
1067
1163
|
updatedAt: z.ZodEffects<z.ZodString, string, string>;
|
|
1068
1164
|
}, "strict", z.ZodTypeAny, {
|
|
1069
|
-
title: string;
|
|
1070
1165
|
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
1166
|
+
title: string;
|
|
1071
1167
|
updatedAt: string;
|
|
1072
1168
|
cardId: string;
|
|
1073
1169
|
statement: string;
|
|
1074
1170
|
}, {
|
|
1075
|
-
title: string;
|
|
1076
1171
|
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
1172
|
+
title: string;
|
|
1077
1173
|
updatedAt: string;
|
|
1078
1174
|
cardId: string;
|
|
1079
1175
|
statement: string;
|
|
1080
1176
|
}>, "many">;
|
|
1081
1177
|
}, "strict", z.ZodTypeAny, {
|
|
1082
|
-
schemaVersion: 1;
|
|
1083
1178
|
expiresAt: string;
|
|
1179
|
+
schemaVersion: 1;
|
|
1084
1180
|
updatedAt: string;
|
|
1085
1181
|
grantId: string;
|
|
1086
1182
|
cards: {
|
|
1087
|
-
title: string;
|
|
1088
1183
|
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
1184
|
+
title: string;
|
|
1089
1185
|
updatedAt: string;
|
|
1090
1186
|
cardId: string;
|
|
1091
1187
|
statement: string;
|
|
1092
1188
|
}[];
|
|
1093
1189
|
}, {
|
|
1094
|
-
schemaVersion: 1;
|
|
1095
1190
|
expiresAt: string;
|
|
1191
|
+
schemaVersion: 1;
|
|
1096
1192
|
updatedAt: string;
|
|
1097
1193
|
grantId: string;
|
|
1098
1194
|
cards: {
|
|
1099
|
-
title: string;
|
|
1100
1195
|
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
1196
|
+
title: string;
|
|
1101
1197
|
updatedAt: string;
|
|
1102
1198
|
cardId: string;
|
|
1103
1199
|
statement: string;
|
|
@@ -1107,13 +1203,13 @@ declare const SupportPassportAnswerModelInputSchema: z.ZodObject<{
|
|
|
1107
1203
|
}, "strict", z.ZodTypeAny, {
|
|
1108
1204
|
question: string;
|
|
1109
1205
|
guide: {
|
|
1110
|
-
schemaVersion: 1;
|
|
1111
1206
|
expiresAt: string;
|
|
1207
|
+
schemaVersion: 1;
|
|
1112
1208
|
updatedAt: string;
|
|
1113
1209
|
grantId: string;
|
|
1114
1210
|
cards: {
|
|
1115
|
-
title: string;
|
|
1116
1211
|
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
1212
|
+
title: string;
|
|
1117
1213
|
updatedAt: string;
|
|
1118
1214
|
cardId: string;
|
|
1119
1215
|
statement: string;
|
|
@@ -1122,13 +1218,13 @@ declare const SupportPassportAnswerModelInputSchema: z.ZodObject<{
|
|
|
1122
1218
|
}, {
|
|
1123
1219
|
question: string;
|
|
1124
1220
|
guide: {
|
|
1125
|
-
schemaVersion: 1;
|
|
1126
1221
|
expiresAt: string;
|
|
1222
|
+
schemaVersion: 1;
|
|
1127
1223
|
updatedAt: string;
|
|
1128
1224
|
grantId: string;
|
|
1129
1225
|
cards: {
|
|
1130
|
-
title: string;
|
|
1131
1226
|
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
1227
|
+
title: string;
|
|
1132
1228
|
updatedAt: string;
|
|
1133
1229
|
cardId: string;
|
|
1134
1230
|
statement: string;
|
|
@@ -1226,6 +1322,285 @@ declare class SupportPassportModelAdapter {
|
|
|
1226
1322
|
private invokeRoute;
|
|
1227
1323
|
}
|
|
1228
1324
|
|
|
1325
|
+
type ReviewDeckChoice = "keep" | "prepare_fix" | "not_true";
|
|
1326
|
+
type ReviewDeckRisk = "reversible";
|
|
1327
|
+
interface ReviewDeckEvidence {
|
|
1328
|
+
sourceMemoryId?: string;
|
|
1329
|
+
sourceDate?: string;
|
|
1330
|
+
excerpt?: string;
|
|
1331
|
+
relation: "supports" | "conflicts" | "origin";
|
|
1332
|
+
}
|
|
1333
|
+
interface ReviewDeckItem {
|
|
1334
|
+
schemaVersion: 1;
|
|
1335
|
+
itemId: string;
|
|
1336
|
+
source: "review";
|
|
1337
|
+
sourceId: string;
|
|
1338
|
+
memoryId?: string;
|
|
1339
|
+
content: string;
|
|
1340
|
+
category?: string;
|
|
1341
|
+
lifecycleState?: string;
|
|
1342
|
+
confidence?: number;
|
|
1343
|
+
confidenceTier?: string;
|
|
1344
|
+
reviewReason: string;
|
|
1345
|
+
reviewReasonLabel: string;
|
|
1346
|
+
supportCount: number;
|
|
1347
|
+
provenance: readonly ReviewDeckEvidence[];
|
|
1348
|
+
allowedChoices: readonly ReviewDeckChoice[];
|
|
1349
|
+
choiceRisk: Readonly<Record<ReviewDeckChoice, ReviewDeckRisk | "unavailable">>;
|
|
1350
|
+
namespace: string;
|
|
1351
|
+
revision: string;
|
|
1352
|
+
}
|
|
1353
|
+
interface ReviewDeckPage {
|
|
1354
|
+
schemaVersion: 1;
|
|
1355
|
+
items: readonly ReviewDeckItem[];
|
|
1356
|
+
nextCursor?: string;
|
|
1357
|
+
total: number;
|
|
1358
|
+
}
|
|
1359
|
+
type ReviewDeckActionRequest = {
|
|
1360
|
+
schemaVersion: 1;
|
|
1361
|
+
itemId: string;
|
|
1362
|
+
revision: string;
|
|
1363
|
+
action: "keep" | "not_true";
|
|
1364
|
+
idempotencyKey: string;
|
|
1365
|
+
} | {
|
|
1366
|
+
schemaVersion: 1;
|
|
1367
|
+
itemId: string;
|
|
1368
|
+
revision: string;
|
|
1369
|
+
action: "prepare_fix";
|
|
1370
|
+
correctionText: string;
|
|
1371
|
+
idempotencyKey: string;
|
|
1372
|
+
};
|
|
1373
|
+
interface ReviewDeckActionReceipt {
|
|
1374
|
+
schemaVersion: 1;
|
|
1375
|
+
receiptId: string;
|
|
1376
|
+
itemId: string;
|
|
1377
|
+
action: "keep" | "not_true" | "prepare_fix" | "undo";
|
|
1378
|
+
outcome: "planned" | "applied" | "conflict" | "failed";
|
|
1379
|
+
effect: string;
|
|
1380
|
+
undoAvailable: boolean;
|
|
1381
|
+
appliedRevision?: string;
|
|
1382
|
+
correctionPlanId?: string;
|
|
1383
|
+
correctionPreview?: unknown;
|
|
1384
|
+
}
|
|
1385
|
+
interface ReviewDeckUndoRequest {
|
|
1386
|
+
schemaVersion: 1;
|
|
1387
|
+
receiptId: string;
|
|
1388
|
+
expectedRevision: string;
|
|
1389
|
+
idempotencyKey: string;
|
|
1390
|
+
}
|
|
1391
|
+
interface ReviewDeckSourceRow {
|
|
1392
|
+
itemId: string;
|
|
1393
|
+
filePath: string;
|
|
1394
|
+
fileContent: string;
|
|
1395
|
+
revision: string;
|
|
1396
|
+
content: string;
|
|
1397
|
+
category?: string;
|
|
1398
|
+
confidence?: number;
|
|
1399
|
+
confidenceTier?: string;
|
|
1400
|
+
reviewReason: string;
|
|
1401
|
+
created: string;
|
|
1402
|
+
source?: string;
|
|
1403
|
+
blockedBy?: string;
|
|
1404
|
+
lifecycleState?: string;
|
|
1405
|
+
context?: string;
|
|
1406
|
+
}
|
|
1407
|
+
interface ReviewDeckSnapshot {
|
|
1408
|
+
corpusVersion: string;
|
|
1409
|
+
total: number;
|
|
1410
|
+
rows: readonly ReviewDeckSourceRow[];
|
|
1411
|
+
}
|
|
1412
|
+
interface ReviewDeckCursorScope {
|
|
1413
|
+
principalDigest: string;
|
|
1414
|
+
namespace: string;
|
|
1415
|
+
filterDigest: string;
|
|
1416
|
+
corpusVersion: string;
|
|
1417
|
+
}
|
|
1418
|
+
declare class ReviewDeckCursorError extends Error {
|
|
1419
|
+
constructor(message?: string);
|
|
1420
|
+
}
|
|
1421
|
+
declare function computeReviewItemRevision(fileContent: string): string;
|
|
1422
|
+
declare function projectReviewDeckItem(row: ReviewDeckSourceRow, namespace: string): ReviewDeckItem;
|
|
1423
|
+
declare function compareReviewDeckRows(a: ReviewDeckSourceRow, b: ReviewDeckSourceRow): number;
|
|
1424
|
+
declare function encodeReviewDeckCursor(scope: ReviewDeckCursorScope, lastSortKey: string): string;
|
|
1425
|
+
declare function decodeReviewDeckCursor(cursor: string, scope: ReviewDeckCursorScope): string;
|
|
1426
|
+
declare function buildReviewDeckPage(rows: readonly ReviewDeckSourceRow[], opts: {
|
|
1427
|
+
scope: ReviewDeckCursorScope;
|
|
1428
|
+
cursor?: string;
|
|
1429
|
+
limit: number;
|
|
1430
|
+
}): ReviewDeckPage;
|
|
1431
|
+
|
|
1432
|
+
interface ReviewDeckSurfaceDeps {
|
|
1433
|
+
readonly orchestrator: Orchestrator;
|
|
1434
|
+
resolveReadableNamespace(namespace: string | undefined, principal?: string): string;
|
|
1435
|
+
writableNamespaceFor(namespace: string | undefined, sessionKey: string | undefined, authenticatedPrincipal?: string): string;
|
|
1436
|
+
correctionPlan(request: CorrectionRequest, opts?: {
|
|
1437
|
+
abortSignal?: AbortSignal;
|
|
1438
|
+
}): Promise<CorrectionPlan>;
|
|
1439
|
+
}
|
|
1440
|
+
declare class ReviewDeckSurface {
|
|
1441
|
+
private readonly deps;
|
|
1442
|
+
constructor(deps: ReviewDeckSurfaceDeps);
|
|
1443
|
+
list(opts: {
|
|
1444
|
+
namespace?: string;
|
|
1445
|
+
principal?: string;
|
|
1446
|
+
cursor?: string;
|
|
1447
|
+
limit: number;
|
|
1448
|
+
}): Promise<ReviewDeckPage>;
|
|
1449
|
+
action(req: ReviewDeckActionRequest, opts: {
|
|
1450
|
+
namespace?: string;
|
|
1451
|
+
principal?: string;
|
|
1452
|
+
signal?: AbortSignal;
|
|
1453
|
+
}): Promise<ReviewDeckActionReceipt>;
|
|
1454
|
+
undo(req: ReviewDeckUndoRequest, opts: {
|
|
1455
|
+
namespace?: string;
|
|
1456
|
+
principal?: string;
|
|
1457
|
+
signal?: AbortSignal;
|
|
1458
|
+
}): Promise<ReviewDeckActionReceipt>;
|
|
1459
|
+
private mutationContext;
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
/**
|
|
1463
|
+
* Single input-validation and error boundary for the CLI/MCP/HTTP access
|
|
1464
|
+
* surfaces (issue #1525, epic #1520 Phase 1).
|
|
1465
|
+
*
|
|
1466
|
+
* Every operation that crosses the access-service facade passes through ONE
|
|
1467
|
+
* registry entry: a zod-validated request envelope, a shared error mapper,
|
|
1468
|
+
* and the "reject invalid input and list valid options" behavior that
|
|
1469
|
+
* CLAUDE.md rules 14/17/24/28/36/48/51 previously had to be re-implemented
|
|
1470
|
+
* per handler. The three surfaces become thin adapters — one operation
|
|
1471
|
+
* definition, three transports — so a validation fix lands everywhere at
|
|
1472
|
+
* once.
|
|
1473
|
+
*
|
|
1474
|
+
* Host-agnostic (rule 31): operation names carry no `openclaw-*`/`engram-*`
|
|
1475
|
+
* prefix. Session/namespace tenancy stays in the handler layer (resolved via
|
|
1476
|
+
* ScopePlan #1521); the boundary validates SHAPE, not tenancy.
|
|
1477
|
+
*/
|
|
1478
|
+
|
|
1479
|
+
/**
|
|
1480
|
+
* Canonical operation ids. One id is shared by the MCP tool, the HTTP route,
|
|
1481
|
+
* and the CLI command that expose the same operation. Add to this union as
|
|
1482
|
+
* each domain-group migration PR (memory ops → connectors → namespaces …)
|
|
1483
|
+
* lands; the fitness test in `access-surface-catalog.test.ts` treats the
|
|
1484
|
+
* registered set as the migration state.
|
|
1485
|
+
*/
|
|
1486
|
+
declare const OPERATION_NAMES: readonly ["memory_get", "memory_search", "external_wiki_search", "memory_store", "coding_decision", "coding_architecture", "codegraph_index", "codegraph_list_projects", "codegraph_delete_project", "codegraph_index_status", "codegraph_search_graph", "codegraph_trace_path", "codegraph_detect_changes", "codegraph_query_graph", "codegraph_get_schema", "codegraph_get_snippet", "codegraph_get_architecture", "codegraph_search_code", "codegraph_manage_adr", "codegraph_ingest_traces", "memory_correct_plan", "memory_correct_apply", "coding_delta", "recall", "recall_explain", "set_coding_context", "recall_tier_explain", "recall_xray", "who_knows", "promotion_candidates", "namespace_writable", "wearables_status", "wearables_sync", "transcript_day", "transcript_search", "transcript_memories", "meetings_list", "meetings_get", "meetings_build", "action_confidence", "chatgpt_memory_inspector", "day_summary", "capsule_export", "capsule_import", "capsule_list", "memory_governance_run", "entity_synthesis_run", "procedure_mining_run", "pattern_reinforcement_run", "procedural_stats", "procedure_library_maintenance", "memory_timeline", "suggestion_submit", "entity_get", "review_queue_list", "correction_pending", "observe", "lcm_search", "lcm_compaction_flush", "extraction_force_flush", "lcm_compaction_record", "continuity_audit_generate", "continuity_incident_open", "continuity_incident_close", "continuity_incident_list", "continuity_loop_add_or_update", "continuity_loop_review", "identity_anchor_get", "identity_anchor_update", "memory_identity", "work_task", "work_project", "work_board", "shared_context_write_output", "shared_feedback_record", "shared_priorities_append", "relay_mission_append", "relay_mission_read", "shared_context_cross_signals_run", "shared_context_curate_daily", "compounding_weekly_synthesize", "compounding_promote_candidate", "compression_guidelines_optimize", "compression_guidelines_activate", "memory_profile", "memory_entities_list", "memory_questions", "memory_last_recall", "memory_intent_debug", "memory_qmd_debug", "memory_graph_explain", "graph_snapshot", "memory_feedback", "memory_promote", "memory_outcome", "memory_action_apply", "context_checkpoint", "briefing", "review_list", "review_resolve", "contradiction_scan_run", "preference_drift_scan", "memory_summarize_hourly", "conversation_index_update", "profiling_report", "graph_edge_decay_run", "live_connectors_run", "peer_list", "peer_get", "peer_set", "peer_delete", "peer_profile_get", "peer_forget", "console_state", "dreams_status", "dreams_run", "support_passport_memory_preview", "support_passport_cards_list", "support_passport_draft_create", "support_passport_drafts_generate", "support_passport_card_replace", "support_passport_card_approve", "support_passport_card_reject", "support_passport_card_withdraw", "support_passport_grant_create", "support_passport_grants_list", "support_passport_grant_revoke", "support_passport_grant_read", "support_passport_grant_ask", "adapters_status", "offline_sync_snapshot", "offline_sync_snapshot_stream", "offline_sync_files", "offline_sync_file_content", "offline_sync_apply_file_content", "offline_sync_apply", "lcm_status", "memory_list", "recall_timings", "entity_list", "maintenance_status", "quality_status", "trust_zones_status", "trust_zones_records", "review_disposition", "review_deck_list", "review_deck_action", "review_deck_undo", "trust_zones_promote", "trust_zones_demo_seed", "citations_observed", "contradiction_detail", "graph_events", "chat_message", "chat_events"];
|
|
1487
|
+
/**
|
|
1488
|
+
* Canonical operation ids. One id is shared by the MCP tool, the HTTP route,
|
|
1489
|
+
* and the CLI command that expose the same operation. Derived from
|
|
1490
|
+
* {@link OPERATION_NAMES} (single source of truth) so the runtime catalog
|
|
1491
|
+
* used for token-capability validation cannot drift from the type. The
|
|
1492
|
+
* fitness test in `access-surface-catalog.test.ts` treats the registered set
|
|
1493
|
+
* as the migration state.
|
|
1494
|
+
*/
|
|
1495
|
+
type OperationName = (typeof OPERATION_NAMES)[number];
|
|
1496
|
+
/**
|
|
1497
|
+
* Per-call context. `service` is the facade the handler delegates to; the
|
|
1498
|
+
* boundary never reaches past it. `authenticatedPrincipal` is resolved by
|
|
1499
|
+
* the SURFACE (MCP header / HTTP identity / CLI flag) before the boundary
|
|
1500
|
+
* runs, so handlers stay principal-source-agnostic. `hooks` carries
|
|
1501
|
+
* transport-level callbacks (e.g. HTTP write-quota enforcement) that must
|
|
1502
|
+
* fire atomically inside the service call; surfaces that have no such hook
|
|
1503
|
+
* leave it undefined.
|
|
1504
|
+
*/
|
|
1505
|
+
interface OperationContext {
|
|
1506
|
+
readonly service: EngramAccessService;
|
|
1507
|
+
readonly authenticatedPrincipal?: string;
|
|
1508
|
+
readonly operatorPrincipal?: string;
|
|
1509
|
+
/** Per-request cancellation supplied by transports that own a request lifecycle. */
|
|
1510
|
+
readonly abortSignal?: AbortSignal;
|
|
1511
|
+
/** Server-resolved connector identity (Phase 1 provenance). Set by the HTTP auth boundary from the matched token's connector; flows to write handlers so frontmatter records which connector submitted the memory. Client-supplied values are always overridden. */
|
|
1512
|
+
readonly sourceConnector?: string;
|
|
1513
|
+
readonly hooks?: OperationHooks;
|
|
1514
|
+
}
|
|
1515
|
+
/**
|
|
1516
|
+
* Transport-level callbacks a handler forwards into the service call. Kept
|
|
1517
|
+
* narrow on purpose: the boundary owns validation + dispatch shape, not
|
|
1518
|
+
* transport policy. Add fields here only when a surface genuinely needs a
|
|
1519
|
+
* callback the service itself consumes.
|
|
1520
|
+
*/
|
|
1521
|
+
interface OperationHooks {
|
|
1522
|
+
/** HTTP write-quota gate; throws to reject the write when exhausted. */
|
|
1523
|
+
readonly enforceWriteQuota?: () => void | Promise<void>;
|
|
1524
|
+
/** Commit-boundary accounting for writes that can fail after durability. */
|
|
1525
|
+
readonly recordWriteCommit?: () => void;
|
|
1526
|
+
}
|
|
1527
|
+
interface OperationSpec<In, Out> {
|
|
1528
|
+
/** Canonical operation id; matches an {@link OperationName}. */
|
|
1529
|
+
readonly name: OperationName;
|
|
1530
|
+
readonly description: string;
|
|
1531
|
+
/** Zod schema validating the raw request envelope. */
|
|
1532
|
+
readonly schema: z.ZodType<In>;
|
|
1533
|
+
/** Handler invoked with the parsed input; throws EngramAccessInputError for domain faults. */
|
|
1534
|
+
readonly handler: (input: In, ctx: OperationContext) => Promise<Out>;
|
|
1535
|
+
/**
|
|
1536
|
+
* Marks an operation as inherently FLEET-WIDE / global — it runs across ALL
|
|
1537
|
+
* namespaces (or against a single non-namespaced global layer) and carries no
|
|
1538
|
+
* `namespace` argument, so the MCP `tools/call` effective-namespace chokepoint
|
|
1539
|
+
* never applies. When set, {@link defineOperation}'s run wrapper rejects any
|
|
1540
|
+
* namespace-SCOPED token (fail closed) via assertFleetWideOperationAllowed
|
|
1541
|
+
* BEFORE the handler — no side effect on denial. Unrestricted/legacy tokens
|
|
1542
|
+
* (cron, internal callers, no capability record) are unaffected (issue #1850).
|
|
1543
|
+
*/
|
|
1544
|
+
readonly fleetWide?: boolean;
|
|
1545
|
+
/**
|
|
1546
|
+
* Alternate op allow-list: when set, the token may invoke this operation if
|
|
1547
|
+
* its ops allow-list permits ANY of these ops (instead of the default rule
|
|
1548
|
+
* that requires the op's own {@link name}). Lets a read-only diagnostic be
|
|
1549
|
+
* granted by the write ops it diagnoses — e.g. `namespace_writable` is
|
|
1550
|
+
* runnable by any token permitted to `observe`/`memory_store`, so a token
|
|
1551
|
+
* minted before the diagnostic op existed can still call it. Unrestricted /
|
|
1552
|
+
* legacy tokens (no ops axis) are unaffected. Keeps the boundary and any HTTP
|
|
1553
|
+
* transport for the same op enforcing ONE policy.
|
|
1554
|
+
*/
|
|
1555
|
+
readonly allowedByOps?: readonly OperationName[];
|
|
1556
|
+
}
|
|
1557
|
+
interface BoundOperation<In = unknown, Out = unknown> {
|
|
1558
|
+
readonly spec: OperationSpec<In, Out>;
|
|
1559
|
+
/** Validate the raw envelope, then invoke the handler. Throws EngramAccessInputError on any validation failure. */
|
|
1560
|
+
readonly run: (rawInput: unknown, ctx: OperationContext) => Promise<Out>;
|
|
1561
|
+
}
|
|
1562
|
+
/**
|
|
1563
|
+
* Coerce boolean-like strings at the edge (rule 36). Accepts actual booleans
|
|
1564
|
+
* and the string spellings clients send ("true"/"false"/"1"/"0"/"yes"/"no"/
|
|
1565
|
+
* "on"/"off", case-insensitive). Rejects anything else loudly — `Boolean("false")`
|
|
1566
|
+
* would silently be `true`, which is the bug rule 36 exists to prevent.
|
|
1567
|
+
*
|
|
1568
|
+
* `undefined`/`null`/`""` → `undefined`, so callers can keep treating an
|
|
1569
|
+
* absent flag as "use the default" without a separate presence check.
|
|
1570
|
+
*/
|
|
1571
|
+
declare function coerceBooleanLike(value: unknown): boolean | undefined;
|
|
1572
|
+
/**
|
|
1573
|
+
* Coerce + validate a positive integer from a numeric string or number
|
|
1574
|
+
* (rule 28). Loosely-typed MCP/CLI clients send `"5"`; `typeof saved === "number"`
|
|
1575
|
+
* on read-back would reject it later, so we coerce at the edge and reject
|
|
1576
|
+
* booleans/objects loudly (`Number(true) === 1` would silently pass otherwise).
|
|
1577
|
+
*
|
|
1578
|
+
* `undefined`/`null`/`""` → `undefined`.
|
|
1579
|
+
*/
|
|
1580
|
+
declare function coercePositiveInteger(value: unknown, label: string): number | undefined;
|
|
1581
|
+
/**
|
|
1582
|
+
* Expand `~` in a path-shaped input (rule 17). Node `fs` does NOT expand `~`;
|
|
1583
|
+
* ad-hoc regex drifts. `undefined`/`null`/`""` → `undefined`.
|
|
1584
|
+
*/
|
|
1585
|
+
declare function normalizeOptionalPath(value: unknown): string | undefined;
|
|
1586
|
+
/**
|
|
1587
|
+
* Turn a zod failure into an {@link EngramAccessInputError} whose message
|
|
1588
|
+
* names the offending field and — for enum/union issues — lists the valid
|
|
1589
|
+
* options, so the caller can correct rather than guess (rule 51).
|
|
1590
|
+
*/
|
|
1591
|
+
declare function formatZodIssues(error: z.ZodError): string;
|
|
1592
|
+
declare function defineOperation<In, Out>(spec: OperationSpec<In, Out>): BoundOperation<In, Out>;
|
|
1593
|
+
/** Look up a registered operation by canonical name. */
|
|
1594
|
+
declare function getOperation(name: OperationName): BoundOperation | undefined;
|
|
1595
|
+
/** Whether a probe must authorize an operation's effective namespace. */
|
|
1596
|
+
declare function operationRequiresAuthorizedNamespace(name: OperationName): boolean;
|
|
1597
|
+
/** Whether an operation resolves its namespace from the authenticated principal. */
|
|
1598
|
+
declare function operationUsesPrincipalNamespace(name: OperationName): boolean;
|
|
1599
|
+
/** All registered operation names. */
|
|
1600
|
+
declare function listRegisteredOperations(): readonly OperationName[];
|
|
1601
|
+
/** Test-only: clear the registry so pilot definitions can be re-registered. */
|
|
1602
|
+
declare function __resetRegistryForTest(): void;
|
|
1603
|
+
|
|
1229
1604
|
declare const SUPPORT_PASSPORT_CARD_CATEGORIES: readonly ["communication", "environment", "transitions", "sensory", "regulation", "interests", "other"];
|
|
1230
1605
|
declare const SUPPORT_PASSPORT_CARD_STATUSES: readonly ["pending_review", "active", "rejected", "superseded", "archived"];
|
|
1231
1606
|
declare const SupportPassportCardCategorySchema: z.ZodEnum<["communication", "environment", "transitions", "sensory", "regulation", "interests", "other"]>;
|
|
@@ -1245,23 +1620,23 @@ declare const SupportPassportCardSchema: z.ZodObject<{
|
|
|
1245
1620
|
reviewBy: z.ZodEffects<z.ZodString, string, string>;
|
|
1246
1621
|
revision: z.ZodString;
|
|
1247
1622
|
}, "strict", z.ZodTypeAny, {
|
|
1248
|
-
title: string;
|
|
1249
|
-
status: "active" | "pending_review" | "rejected" | "superseded" | "archived";
|
|
1250
1623
|
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
1624
|
+
status: "active" | "pending_review" | "rejected" | "superseded" | "archived";
|
|
1625
|
+
title: string;
|
|
1251
1626
|
updatedAt: string;
|
|
1627
|
+
revision: string;
|
|
1252
1628
|
cardId: string;
|
|
1253
1629
|
statement: string;
|
|
1254
1630
|
reviewBy: string;
|
|
1255
|
-
revision: string;
|
|
1256
1631
|
}, {
|
|
1257
|
-
title: string;
|
|
1258
|
-
status: "active" | "pending_review" | "rejected" | "superseded" | "archived";
|
|
1259
1632
|
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
1633
|
+
status: "active" | "pending_review" | "rejected" | "superseded" | "archived";
|
|
1634
|
+
title: string;
|
|
1260
1635
|
updatedAt: string;
|
|
1636
|
+
revision: string;
|
|
1261
1637
|
cardId: string;
|
|
1262
1638
|
statement: string;
|
|
1263
1639
|
reviewBy: string;
|
|
1264
|
-
revision: string;
|
|
1265
1640
|
}>;
|
|
1266
1641
|
declare const SupportPassportCardListSchema: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
1267
1642
|
cardId: z.ZodString;
|
|
@@ -1273,41 +1648,41 @@ declare const SupportPassportCardListSchema: z.ZodEffects<z.ZodArray<z.ZodObject
|
|
|
1273
1648
|
reviewBy: z.ZodEffects<z.ZodString, string, string>;
|
|
1274
1649
|
revision: z.ZodString;
|
|
1275
1650
|
}, "strict", z.ZodTypeAny, {
|
|
1276
|
-
title: string;
|
|
1277
|
-
status: "active" | "pending_review" | "rejected" | "superseded" | "archived";
|
|
1278
1651
|
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
1652
|
+
status: "active" | "pending_review" | "rejected" | "superseded" | "archived";
|
|
1653
|
+
title: string;
|
|
1279
1654
|
updatedAt: string;
|
|
1655
|
+
revision: string;
|
|
1280
1656
|
cardId: string;
|
|
1281
1657
|
statement: string;
|
|
1282
1658
|
reviewBy: string;
|
|
1283
|
-
revision: string;
|
|
1284
1659
|
}, {
|
|
1285
|
-
title: string;
|
|
1286
|
-
status: "active" | "pending_review" | "rejected" | "superseded" | "archived";
|
|
1287
1660
|
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
1661
|
+
status: "active" | "pending_review" | "rejected" | "superseded" | "archived";
|
|
1662
|
+
title: string;
|
|
1288
1663
|
updatedAt: string;
|
|
1664
|
+
revision: string;
|
|
1289
1665
|
cardId: string;
|
|
1290
1666
|
statement: string;
|
|
1291
1667
|
reviewBy: string;
|
|
1292
|
-
revision: string;
|
|
1293
1668
|
}>, "many">, {
|
|
1294
|
-
title: string;
|
|
1295
|
-
status: "active" | "pending_review" | "rejected" | "superseded" | "archived";
|
|
1296
1669
|
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
1670
|
+
status: "active" | "pending_review" | "rejected" | "superseded" | "archived";
|
|
1671
|
+
title: string;
|
|
1297
1672
|
updatedAt: string;
|
|
1673
|
+
revision: string;
|
|
1298
1674
|
cardId: string;
|
|
1299
1675
|
statement: string;
|
|
1300
1676
|
reviewBy: string;
|
|
1301
|
-
revision: string;
|
|
1302
1677
|
}[], {
|
|
1303
|
-
title: string;
|
|
1304
|
-
status: "active" | "pending_review" | "rejected" | "superseded" | "archived";
|
|
1305
1678
|
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
1679
|
+
status: "active" | "pending_review" | "rejected" | "superseded" | "archived";
|
|
1680
|
+
title: string;
|
|
1306
1681
|
updatedAt: string;
|
|
1682
|
+
revision: string;
|
|
1307
1683
|
cardId: string;
|
|
1308
1684
|
statement: string;
|
|
1309
1685
|
reviewBy: string;
|
|
1310
|
-
revision: string;
|
|
1311
1686
|
}[]>;
|
|
1312
1687
|
declare const SupportPassportListCardsInputSchema: z.ZodObject<{
|
|
1313
1688
|
principal: z.ZodString;
|
|
@@ -1323,14 +1698,14 @@ declare const SupportPassportManualDraftInputSchema: z.ZodObject<{
|
|
|
1323
1698
|
category: z.ZodEnum<["communication", "environment", "transitions", "sensory", "regulation", "interests", "other"]>;
|
|
1324
1699
|
reviewBy: z.ZodEffects<z.ZodString, string, string>;
|
|
1325
1700
|
}, "strict", z.ZodTypeAny, {
|
|
1326
|
-
title: string;
|
|
1327
1701
|
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
1702
|
+
title: string;
|
|
1328
1703
|
statement: string;
|
|
1329
1704
|
reviewBy: string;
|
|
1330
1705
|
principal: string;
|
|
1331
1706
|
}, {
|
|
1332
|
-
title: string;
|
|
1333
1707
|
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
1708
|
+
title: string;
|
|
1334
1709
|
statement: string;
|
|
1335
1710
|
reviewBy: string;
|
|
1336
1711
|
principal: string;
|
|
@@ -1362,8 +1737,8 @@ declare const SupportPassportReplaceCardInputSchema: z.ZodObject<{
|
|
|
1362
1737
|
category: z.ZodEnum<["communication", "environment", "transitions", "sensory", "regulation", "interests", "other"]>;
|
|
1363
1738
|
reviewBy: z.ZodEffects<z.ZodString, string, string>;
|
|
1364
1739
|
}, "strict", z.ZodTypeAny, {
|
|
1365
|
-
title: string;
|
|
1366
1740
|
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
1741
|
+
title: string;
|
|
1367
1742
|
cardId: string;
|
|
1368
1743
|
statement: string;
|
|
1369
1744
|
reviewBy: string;
|
|
@@ -1371,8 +1746,8 @@ declare const SupportPassportReplaceCardInputSchema: z.ZodObject<{
|
|
|
1371
1746
|
expectedRevision: string;
|
|
1372
1747
|
reasonCode?: string | undefined;
|
|
1373
1748
|
}, {
|
|
1374
|
-
title: string;
|
|
1375
1749
|
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
1750
|
+
title: string;
|
|
1376
1751
|
cardId: string;
|
|
1377
1752
|
statement: string;
|
|
1378
1753
|
reviewBy: string;
|
|
@@ -1403,11 +1778,11 @@ declare const SupportPassportGrantCardRefSchema: z.ZodObject<{
|
|
|
1403
1778
|
cardId: z.ZodString;
|
|
1404
1779
|
revision: z.ZodString;
|
|
1405
1780
|
}, "strict", z.ZodTypeAny, {
|
|
1406
|
-
cardId: string;
|
|
1407
1781
|
revision: string;
|
|
1408
|
-
}, {
|
|
1409
1782
|
cardId: string;
|
|
1783
|
+
}, {
|
|
1410
1784
|
revision: string;
|
|
1785
|
+
cardId: string;
|
|
1411
1786
|
}>;
|
|
1412
1787
|
declare const SupportPassportGrantStateSchema: z.ZodEffects<z.ZodObject<{
|
|
1413
1788
|
schemaVersion: z.ZodLiteral<1>;
|
|
@@ -1421,73 +1796,73 @@ declare const SupportPassportGrantStateSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1421
1796
|
cardId: z.ZodString;
|
|
1422
1797
|
revision: z.ZodString;
|
|
1423
1798
|
}, "strict", z.ZodTypeAny, {
|
|
1424
|
-
cardId: string;
|
|
1425
1799
|
revision: string;
|
|
1426
|
-
}, {
|
|
1427
1800
|
cardId: string;
|
|
1801
|
+
}, {
|
|
1428
1802
|
revision: string;
|
|
1803
|
+
cardId: string;
|
|
1429
1804
|
}>, "many">;
|
|
1430
1805
|
createdAt: z.ZodEffects<z.ZodString, string, string>;
|
|
1431
1806
|
expiresAt: z.ZodEffects<z.ZodString, string, string>;
|
|
1432
1807
|
revokedAt: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1433
1808
|
}, "strict", z.ZodTypeAny, {
|
|
1434
|
-
|
|
1809
|
+
namespace: string;
|
|
1435
1810
|
createdAt: string;
|
|
1436
1811
|
expiresAt: string;
|
|
1437
|
-
|
|
1812
|
+
schemaVersion: 1;
|
|
1438
1813
|
stateVersion: number;
|
|
1439
1814
|
grantId: string;
|
|
1440
1815
|
principalHash: string;
|
|
1441
1816
|
ownerLockKey: string;
|
|
1442
1817
|
secretHash: string;
|
|
1443
1818
|
cards: {
|
|
1444
|
-
cardId: string;
|
|
1445
1819
|
revision: string;
|
|
1820
|
+
cardId: string;
|
|
1446
1821
|
}[];
|
|
1447
1822
|
revokedAt?: string | undefined;
|
|
1448
1823
|
}, {
|
|
1449
|
-
|
|
1824
|
+
namespace: string;
|
|
1450
1825
|
createdAt: string;
|
|
1451
1826
|
expiresAt: string;
|
|
1452
|
-
|
|
1827
|
+
schemaVersion: 1;
|
|
1453
1828
|
stateVersion: number;
|
|
1454
1829
|
grantId: string;
|
|
1455
1830
|
principalHash: string;
|
|
1456
1831
|
ownerLockKey: string;
|
|
1457
1832
|
secretHash: string;
|
|
1458
1833
|
cards: {
|
|
1459
|
-
cardId: string;
|
|
1460
1834
|
revision: string;
|
|
1835
|
+
cardId: string;
|
|
1461
1836
|
}[];
|
|
1462
1837
|
revokedAt?: string | undefined;
|
|
1463
1838
|
}>, {
|
|
1464
|
-
|
|
1839
|
+
namespace: string;
|
|
1465
1840
|
createdAt: string;
|
|
1466
1841
|
expiresAt: string;
|
|
1467
|
-
|
|
1842
|
+
schemaVersion: 1;
|
|
1468
1843
|
stateVersion: number;
|
|
1469
1844
|
grantId: string;
|
|
1470
1845
|
principalHash: string;
|
|
1471
1846
|
ownerLockKey: string;
|
|
1472
1847
|
secretHash: string;
|
|
1473
1848
|
cards: {
|
|
1474
|
-
cardId: string;
|
|
1475
1849
|
revision: string;
|
|
1850
|
+
cardId: string;
|
|
1476
1851
|
}[];
|
|
1477
1852
|
revokedAt?: string | undefined;
|
|
1478
1853
|
}, {
|
|
1479
|
-
|
|
1854
|
+
namespace: string;
|
|
1480
1855
|
createdAt: string;
|
|
1481
1856
|
expiresAt: string;
|
|
1482
|
-
|
|
1857
|
+
schemaVersion: 1;
|
|
1483
1858
|
stateVersion: number;
|
|
1484
1859
|
grantId: string;
|
|
1485
1860
|
principalHash: string;
|
|
1486
1861
|
ownerLockKey: string;
|
|
1487
1862
|
secretHash: string;
|
|
1488
1863
|
cards: {
|
|
1489
|
-
cardId: string;
|
|
1490
1864
|
revision: string;
|
|
1865
|
+
cardId: string;
|
|
1491
1866
|
}[];
|
|
1492
1867
|
revokedAt?: string | undefined;
|
|
1493
1868
|
}>;
|
|
@@ -1497,43 +1872,43 @@ declare const SupportPassportCreateGrantInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1497
1872
|
cardId: z.ZodString;
|
|
1498
1873
|
revision: z.ZodString;
|
|
1499
1874
|
}, "strict", z.ZodTypeAny, {
|
|
1500
|
-
cardId: string;
|
|
1501
1875
|
revision: string;
|
|
1502
|
-
}, {
|
|
1503
1876
|
cardId: string;
|
|
1877
|
+
}, {
|
|
1504
1878
|
revision: string;
|
|
1879
|
+
cardId: string;
|
|
1505
1880
|
}>, "many">;
|
|
1506
1881
|
expiresAt: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1507
1882
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
1508
1883
|
}, "strict", z.ZodTypeAny, {
|
|
1509
1884
|
principal: string;
|
|
1510
1885
|
cards: {
|
|
1511
|
-
cardId: string;
|
|
1512
1886
|
revision: string;
|
|
1887
|
+
cardId: string;
|
|
1513
1888
|
}[];
|
|
1514
1889
|
durationMs?: number | undefined;
|
|
1515
1890
|
expiresAt?: string | undefined;
|
|
1516
1891
|
}, {
|
|
1517
1892
|
principal: string;
|
|
1518
1893
|
cards: {
|
|
1519
|
-
cardId: string;
|
|
1520
1894
|
revision: string;
|
|
1895
|
+
cardId: string;
|
|
1521
1896
|
}[];
|
|
1522
1897
|
durationMs?: number | undefined;
|
|
1523
1898
|
expiresAt?: string | undefined;
|
|
1524
1899
|
}>, {
|
|
1525
1900
|
principal: string;
|
|
1526
1901
|
cards: {
|
|
1527
|
-
cardId: string;
|
|
1528
1902
|
revision: string;
|
|
1903
|
+
cardId: string;
|
|
1529
1904
|
}[];
|
|
1530
1905
|
durationMs?: number | undefined;
|
|
1531
1906
|
expiresAt?: string | undefined;
|
|
1532
1907
|
}, {
|
|
1533
1908
|
principal: string;
|
|
1534
1909
|
cards: {
|
|
1535
|
-
cardId: string;
|
|
1536
1910
|
revision: string;
|
|
1911
|
+
cardId: string;
|
|
1537
1912
|
}[];
|
|
1538
1913
|
durationMs?: number | undefined;
|
|
1539
1914
|
expiresAt?: string | undefined;
|
|
@@ -1544,43 +1919,43 @@ declare const SupportPassportCreateGrantRequestSchema: z.ZodEffects<z.ZodObject<
|
|
|
1544
1919
|
cardId: z.ZodString;
|
|
1545
1920
|
revision: z.ZodString;
|
|
1546
1921
|
}, "strict", z.ZodTypeAny, {
|
|
1547
|
-
cardId: string;
|
|
1548
1922
|
revision: string;
|
|
1549
|
-
}, {
|
|
1550
1923
|
cardId: string;
|
|
1924
|
+
}, {
|
|
1551
1925
|
revision: string;
|
|
1926
|
+
cardId: string;
|
|
1552
1927
|
}>, "many">;
|
|
1553
1928
|
expiresAt: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1554
1929
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
1555
1930
|
}, "strict", z.ZodTypeAny, {
|
|
1556
1931
|
cardIds: string[];
|
|
1557
1932
|
cardRevisions: {
|
|
1558
|
-
cardId: string;
|
|
1559
1933
|
revision: string;
|
|
1934
|
+
cardId: string;
|
|
1560
1935
|
}[];
|
|
1561
1936
|
durationMs?: number | undefined;
|
|
1562
1937
|
expiresAt?: string | undefined;
|
|
1563
1938
|
}, {
|
|
1564
1939
|
cardIds: string[];
|
|
1565
1940
|
cardRevisions: {
|
|
1566
|
-
cardId: string;
|
|
1567
1941
|
revision: string;
|
|
1942
|
+
cardId: string;
|
|
1568
1943
|
}[];
|
|
1569
1944
|
durationMs?: number | undefined;
|
|
1570
1945
|
expiresAt?: string | undefined;
|
|
1571
1946
|
}>, {
|
|
1572
1947
|
cardIds: string[];
|
|
1573
1948
|
cardRevisions: {
|
|
1574
|
-
cardId: string;
|
|
1575
1949
|
revision: string;
|
|
1950
|
+
cardId: string;
|
|
1576
1951
|
}[];
|
|
1577
1952
|
durationMs?: number | undefined;
|
|
1578
1953
|
expiresAt?: string | undefined;
|
|
1579
1954
|
}, {
|
|
1580
1955
|
cardIds: string[];
|
|
1581
1956
|
cardRevisions: {
|
|
1582
|
-
cardId: string;
|
|
1583
1957
|
revision: string;
|
|
1958
|
+
cardId: string;
|
|
1584
1959
|
}[];
|
|
1585
1960
|
durationMs?: number | undefined;
|
|
1586
1961
|
expiresAt?: string | undefined;
|
|
@@ -1591,43 +1966,43 @@ declare const SupportPassportOwnerCreateGrantRequestSchema: z.ZodEffects<z.ZodOb
|
|
|
1591
1966
|
cardId: z.ZodString;
|
|
1592
1967
|
revision: z.ZodString;
|
|
1593
1968
|
}, "strict", z.ZodTypeAny, {
|
|
1594
|
-
cardId: string;
|
|
1595
1969
|
revision: string;
|
|
1596
|
-
}, {
|
|
1597
1970
|
cardId: string;
|
|
1971
|
+
}, {
|
|
1598
1972
|
revision: string;
|
|
1973
|
+
cardId: string;
|
|
1599
1974
|
}>, "many">;
|
|
1600
1975
|
expiresAt: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1601
1976
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
1602
1977
|
}, "strict", z.ZodTypeAny, {
|
|
1603
1978
|
cardIds: string[];
|
|
1604
1979
|
cardRevisions: {
|
|
1605
|
-
cardId: string;
|
|
1606
1980
|
revision: string;
|
|
1981
|
+
cardId: string;
|
|
1607
1982
|
}[];
|
|
1608
1983
|
durationMs?: number | undefined;
|
|
1609
1984
|
expiresAt?: string | undefined;
|
|
1610
1985
|
}, {
|
|
1611
1986
|
cardIds: string[];
|
|
1612
1987
|
cardRevisions: {
|
|
1613
|
-
cardId: string;
|
|
1614
1988
|
revision: string;
|
|
1989
|
+
cardId: string;
|
|
1615
1990
|
}[];
|
|
1616
1991
|
durationMs?: number | undefined;
|
|
1617
1992
|
expiresAt?: string | undefined;
|
|
1618
1993
|
}>, {
|
|
1619
1994
|
cardIds: string[];
|
|
1620
1995
|
cardRevisions: {
|
|
1621
|
-
cardId: string;
|
|
1622
1996
|
revision: string;
|
|
1997
|
+
cardId: string;
|
|
1623
1998
|
}[];
|
|
1624
1999
|
durationMs?: number | undefined;
|
|
1625
2000
|
expiresAt?: string | undefined;
|
|
1626
2001
|
}, {
|
|
1627
2002
|
cardIds: string[];
|
|
1628
2003
|
cardRevisions: {
|
|
1629
|
-
cardId: string;
|
|
1630
2004
|
revision: string;
|
|
2005
|
+
cardId: string;
|
|
1631
2006
|
}[];
|
|
1632
2007
|
durationMs?: number | undefined;
|
|
1633
2008
|
expiresAt?: string | undefined;
|
|
@@ -1639,36 +2014,36 @@ declare const SupportPassportOwnerGrantSchema: z.ZodObject<{
|
|
|
1639
2014
|
cardId: z.ZodString;
|
|
1640
2015
|
revision: z.ZodString;
|
|
1641
2016
|
}, "strict", z.ZodTypeAny, {
|
|
1642
|
-
cardId: string;
|
|
1643
2017
|
revision: string;
|
|
1644
|
-
}, {
|
|
1645
2018
|
cardId: string;
|
|
2019
|
+
}, {
|
|
1646
2020
|
revision: string;
|
|
2021
|
+
cardId: string;
|
|
1647
2022
|
}>, "many">;
|
|
1648
2023
|
createdAt: z.ZodEffects<z.ZodString, string, string>;
|
|
1649
2024
|
expiresAt: z.ZodEffects<z.ZodString, string, string>;
|
|
1650
2025
|
revokedAt: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1651
2026
|
status: z.ZodEnum<["active", "expired", "revoked"]>;
|
|
1652
2027
|
}, "strict", z.ZodTypeAny, {
|
|
1653
|
-
status: "active" | "expired" | "revoked";
|
|
1654
2028
|
createdAt: string;
|
|
1655
2029
|
expiresAt: string;
|
|
2030
|
+
status: "active" | "expired" | "revoked";
|
|
1656
2031
|
stateVersion: number;
|
|
1657
2032
|
grantId: string;
|
|
1658
2033
|
cards: {
|
|
1659
|
-
cardId: string;
|
|
1660
2034
|
revision: string;
|
|
2035
|
+
cardId: string;
|
|
1661
2036
|
}[];
|
|
1662
2037
|
revokedAt?: string | undefined;
|
|
1663
2038
|
}, {
|
|
1664
|
-
status: "active" | "expired" | "revoked";
|
|
1665
2039
|
createdAt: string;
|
|
1666
2040
|
expiresAt: string;
|
|
2041
|
+
status: "active" | "expired" | "revoked";
|
|
1667
2042
|
stateVersion: number;
|
|
1668
2043
|
grantId: string;
|
|
1669
2044
|
cards: {
|
|
1670
|
-
cardId: string;
|
|
1671
2045
|
revision: string;
|
|
2046
|
+
cardId: string;
|
|
1672
2047
|
}[];
|
|
1673
2048
|
revokedAt?: string | undefined;
|
|
1674
2049
|
}>;
|
|
@@ -1680,36 +2055,36 @@ declare const SupportPassportCreatedGrantSchema: z.ZodObject<{
|
|
|
1680
2055
|
cardId: z.ZodString;
|
|
1681
2056
|
revision: z.ZodString;
|
|
1682
2057
|
}, "strict", z.ZodTypeAny, {
|
|
1683
|
-
cardId: string;
|
|
1684
2058
|
revision: string;
|
|
1685
|
-
}, {
|
|
1686
2059
|
cardId: string;
|
|
2060
|
+
}, {
|
|
1687
2061
|
revision: string;
|
|
2062
|
+
cardId: string;
|
|
1688
2063
|
}>, "many">;
|
|
1689
2064
|
createdAt: z.ZodEffects<z.ZodString, string, string>;
|
|
1690
2065
|
expiresAt: z.ZodEffects<z.ZodString, string, string>;
|
|
1691
2066
|
revokedAt: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1692
2067
|
status: z.ZodEnum<["active", "expired", "revoked"]>;
|
|
1693
2068
|
}, "strict", z.ZodTypeAny, {
|
|
1694
|
-
status: "active" | "expired" | "revoked";
|
|
1695
2069
|
createdAt: string;
|
|
1696
2070
|
expiresAt: string;
|
|
2071
|
+
status: "active" | "expired" | "revoked";
|
|
1697
2072
|
stateVersion: number;
|
|
1698
2073
|
grantId: string;
|
|
1699
2074
|
cards: {
|
|
1700
|
-
cardId: string;
|
|
1701
2075
|
revision: string;
|
|
2076
|
+
cardId: string;
|
|
1702
2077
|
}[];
|
|
1703
2078
|
revokedAt?: string | undefined;
|
|
1704
2079
|
}, {
|
|
1705
|
-
status: "active" | "expired" | "revoked";
|
|
1706
2080
|
createdAt: string;
|
|
1707
2081
|
expiresAt: string;
|
|
2082
|
+
status: "active" | "expired" | "revoked";
|
|
1708
2083
|
stateVersion: number;
|
|
1709
2084
|
grantId: string;
|
|
1710
2085
|
cards: {
|
|
1711
|
-
cardId: string;
|
|
1712
2086
|
revision: string;
|
|
2087
|
+
cardId: string;
|
|
1713
2088
|
}[];
|
|
1714
2089
|
revokedAt?: string | undefined;
|
|
1715
2090
|
}>;
|
|
@@ -1717,28 +2092,28 @@ declare const SupportPassportCreatedGrantSchema: z.ZodObject<{
|
|
|
1717
2092
|
}, "strict", z.ZodTypeAny, {
|
|
1718
2093
|
secret: string;
|
|
1719
2094
|
grant: {
|
|
1720
|
-
status: "active" | "expired" | "revoked";
|
|
1721
2095
|
createdAt: string;
|
|
1722
2096
|
expiresAt: string;
|
|
2097
|
+
status: "active" | "expired" | "revoked";
|
|
1723
2098
|
stateVersion: number;
|
|
1724
2099
|
grantId: string;
|
|
1725
2100
|
cards: {
|
|
1726
|
-
cardId: string;
|
|
1727
2101
|
revision: string;
|
|
2102
|
+
cardId: string;
|
|
1728
2103
|
}[];
|
|
1729
2104
|
revokedAt?: string | undefined;
|
|
1730
2105
|
};
|
|
1731
2106
|
}, {
|
|
1732
2107
|
secret: string;
|
|
1733
2108
|
grant: {
|
|
1734
|
-
status: "active" | "expired" | "revoked";
|
|
1735
2109
|
createdAt: string;
|
|
1736
2110
|
expiresAt: string;
|
|
2111
|
+
status: "active" | "expired" | "revoked";
|
|
1737
2112
|
stateVersion: number;
|
|
1738
2113
|
grantId: string;
|
|
1739
2114
|
cards: {
|
|
1740
|
-
cardId: string;
|
|
1741
2115
|
revision: string;
|
|
2116
|
+
cardId: string;
|
|
1742
2117
|
}[];
|
|
1743
2118
|
revokedAt?: string | undefined;
|
|
1744
2119
|
};
|
|
@@ -1750,14 +2125,14 @@ declare const SupportPassportPublicCardSchema: z.ZodObject<{
|
|
|
1750
2125
|
category: z.ZodEnum<["communication", "environment", "transitions", "sensory", "regulation", "interests", "other"]>;
|
|
1751
2126
|
updatedAt: z.ZodEffects<z.ZodString, string, string>;
|
|
1752
2127
|
}, "strict", z.ZodTypeAny, {
|
|
1753
|
-
title: string;
|
|
1754
2128
|
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
2129
|
+
title: string;
|
|
1755
2130
|
updatedAt: string;
|
|
1756
2131
|
cardId: string;
|
|
1757
2132
|
statement: string;
|
|
1758
2133
|
}, {
|
|
1759
|
-
title: string;
|
|
1760
2134
|
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
2135
|
+
title: string;
|
|
1761
2136
|
updatedAt: string;
|
|
1762
2137
|
cardId: string;
|
|
1763
2138
|
statement: string;
|
|
@@ -1774,38 +2149,38 @@ declare const SupportPassportPublicGuideSchema: z.ZodObject<{
|
|
|
1774
2149
|
category: z.ZodEnum<["communication", "environment", "transitions", "sensory", "regulation", "interests", "other"]>;
|
|
1775
2150
|
updatedAt: z.ZodEffects<z.ZodString, string, string>;
|
|
1776
2151
|
}, "strict", z.ZodTypeAny, {
|
|
1777
|
-
title: string;
|
|
1778
2152
|
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
2153
|
+
title: string;
|
|
1779
2154
|
updatedAt: string;
|
|
1780
2155
|
cardId: string;
|
|
1781
2156
|
statement: string;
|
|
1782
2157
|
}, {
|
|
1783
|
-
title: string;
|
|
1784
2158
|
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
2159
|
+
title: string;
|
|
1785
2160
|
updatedAt: string;
|
|
1786
2161
|
cardId: string;
|
|
1787
2162
|
statement: string;
|
|
1788
2163
|
}>, "many">;
|
|
1789
2164
|
}, "strict", z.ZodTypeAny, {
|
|
1790
|
-
schemaVersion: 1;
|
|
1791
2165
|
expiresAt: string;
|
|
2166
|
+
schemaVersion: 1;
|
|
1792
2167
|
updatedAt: string;
|
|
1793
2168
|
grantId: string;
|
|
1794
2169
|
cards: {
|
|
1795
|
-
title: string;
|
|
1796
2170
|
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
2171
|
+
title: string;
|
|
1797
2172
|
updatedAt: string;
|
|
1798
2173
|
cardId: string;
|
|
1799
2174
|
statement: string;
|
|
1800
2175
|
}[];
|
|
1801
2176
|
}, {
|
|
1802
|
-
schemaVersion: 1;
|
|
1803
2177
|
expiresAt: string;
|
|
2178
|
+
schemaVersion: 1;
|
|
1804
2179
|
updatedAt: string;
|
|
1805
2180
|
grantId: string;
|
|
1806
2181
|
cards: {
|
|
1807
|
-
title: string;
|
|
1808
2182
|
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
2183
|
+
title: string;
|
|
1809
2184
|
updatedAt: string;
|
|
1810
2185
|
cardId: string;
|
|
1811
2186
|
statement: string;
|
|
@@ -1869,14 +2244,14 @@ declare const SupportPassportModelAuditRecordSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1869
2244
|
}, "strict", z.ZodTypeAny, {
|
|
1870
2245
|
schemaVersion: 1;
|
|
1871
2246
|
outcome: "error" | "success";
|
|
2247
|
+
latencyMs: number;
|
|
1872
2248
|
modelUsed: string;
|
|
1873
2249
|
operation: "draft_cards" | "answer_question";
|
|
1874
2250
|
route: "unavailable" | "direct" | "local" | "gateway";
|
|
1875
|
-
latencyMs: number;
|
|
1876
|
-
occurredAt: string;
|
|
1877
2251
|
actorHash: string;
|
|
1878
2252
|
subjectIdsHash: string;
|
|
1879
2253
|
outputSchemaVersion: 1;
|
|
2254
|
+
occurredAt: string;
|
|
1880
2255
|
usage?: {
|
|
1881
2256
|
inputTokens?: number | undefined;
|
|
1882
2257
|
outputTokens?: number | undefined;
|
|
@@ -1886,14 +2261,14 @@ declare const SupportPassportModelAuditRecordSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1886
2261
|
}, {
|
|
1887
2262
|
schemaVersion: 1;
|
|
1888
2263
|
outcome: "error" | "success";
|
|
2264
|
+
latencyMs: number;
|
|
1889
2265
|
modelUsed: string;
|
|
1890
2266
|
operation: "draft_cards" | "answer_question";
|
|
1891
2267
|
route: "unavailable" | "direct" | "local" | "gateway";
|
|
1892
|
-
latencyMs: number;
|
|
1893
|
-
occurredAt: string;
|
|
1894
2268
|
actorHash: string;
|
|
1895
2269
|
subjectIdsHash: string;
|
|
1896
2270
|
outputSchemaVersion: 1;
|
|
2271
|
+
occurredAt: string;
|
|
1897
2272
|
usage?: {
|
|
1898
2273
|
inputTokens?: number | undefined;
|
|
1899
2274
|
outputTokens?: number | undefined;
|
|
@@ -1903,14 +2278,14 @@ declare const SupportPassportModelAuditRecordSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1903
2278
|
}>, {
|
|
1904
2279
|
schemaVersion: 1;
|
|
1905
2280
|
outcome: "error" | "success";
|
|
2281
|
+
latencyMs: number;
|
|
1906
2282
|
modelUsed: string;
|
|
1907
2283
|
operation: "draft_cards" | "answer_question";
|
|
1908
2284
|
route: "unavailable" | "direct" | "local" | "gateway";
|
|
1909
|
-
latencyMs: number;
|
|
1910
|
-
occurredAt: string;
|
|
1911
2285
|
actorHash: string;
|
|
1912
2286
|
subjectIdsHash: string;
|
|
1913
2287
|
outputSchemaVersion: 1;
|
|
2288
|
+
occurredAt: string;
|
|
1914
2289
|
usage?: {
|
|
1915
2290
|
inputTokens?: number | undefined;
|
|
1916
2291
|
outputTokens?: number | undefined;
|
|
@@ -1920,14 +2295,14 @@ declare const SupportPassportModelAuditRecordSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1920
2295
|
}, {
|
|
1921
2296
|
schemaVersion: 1;
|
|
1922
2297
|
outcome: "error" | "success";
|
|
2298
|
+
latencyMs: number;
|
|
1923
2299
|
modelUsed: string;
|
|
1924
2300
|
operation: "draft_cards" | "answer_question";
|
|
1925
2301
|
route: "unavailable" | "direct" | "local" | "gateway";
|
|
1926
|
-
latencyMs: number;
|
|
1927
|
-
occurredAt: string;
|
|
1928
2302
|
actorHash: string;
|
|
1929
2303
|
subjectIdsHash: string;
|
|
1930
2304
|
outputSchemaVersion: 1;
|
|
2305
|
+
occurredAt: string;
|
|
1931
2306
|
usage?: {
|
|
1932
2307
|
inputTokens?: number | undefined;
|
|
1933
2308
|
outputTokens?: number | undefined;
|
|
@@ -2113,6 +2488,7 @@ type McpTool = {
|
|
|
2113
2488
|
* header and reject requests advertising an unknown version.
|
|
2114
2489
|
*/
|
|
2115
2490
|
declare const MCP_SUPPORTED_PROTOCOL_VERSIONS: readonly string[];
|
|
2491
|
+
declare const MCP_MIGRATED_OPERATIONS: Readonly<Record<string, OperationName>>;
|
|
2116
2492
|
declare class EngramMcpServer {
|
|
2117
2493
|
private readonly service;
|
|
2118
2494
|
private buffer;
|
|
@@ -2332,6 +2708,137 @@ declare function handleWhoKnowsHttpQuery(deps: {
|
|
|
2332
2708
|
}) => Promise<WhoKnowsResult>;
|
|
2333
2709
|
}): Promise<WhoKnowsHttpOutcome>;
|
|
2334
2710
|
|
|
2711
|
+
/**
|
|
2712
|
+
* Memory subject: user-centric vs agent-centric classification (issue #2372).
|
|
2713
|
+
*
|
|
2714
|
+
* Scope says WHERE a memory lives; subject says WHOM it is about — and that
|
|
2715
|
+
* is what determines where it may safely go. `user` memories model one
|
|
2716
|
+
* person (preferences, relationships, biography, moments, commitments);
|
|
2717
|
+
* `agent` memories model how to operate (procedures, principles,
|
|
2718
|
+
* tool-usage lessons, debugging strategies, environment facts with no
|
|
2719
|
+
* personal content).
|
|
2720
|
+
*
|
|
2721
|
+
* This module owns, in one place:
|
|
2722
|
+
* - the deterministic write-time classification (category defaults with an
|
|
2723
|
+
* optional extractor override),
|
|
2724
|
+
* - the promotion guard shared by EVERY promotion surface (spaces promote
|
|
2725
|
+
* AND scope-profile promotion targets — AGENTS.md §27 uniform gating),
|
|
2726
|
+
* - read-only promotion-candidate surfacing (reuse-signaled agent-subject
|
|
2727
|
+
* memories with no equivalent in the target layer), and
|
|
2728
|
+
* - the deterministic backfill pass (shadow/apply, no LLM).
|
|
2729
|
+
*/
|
|
2730
|
+
|
|
2731
|
+
declare const SUBJECT_VALUES: readonly ["user", "agent"];
|
|
2732
|
+
declare const SUBJECT_GUARD_MODES: readonly ["off", "warn", "enforce"];
|
|
2733
|
+
/** The CLI / per-call override that permits a user-subject promotion. */
|
|
2734
|
+
declare const SUBJECT_GUARD_OVERRIDE_FLAG = "--allow-user-subject";
|
|
2735
|
+
declare function isMemorySubject(value: unknown): value is MemorySubject;
|
|
2736
|
+
declare function isSubjectGuardMode(value: unknown): value is SubjectGuardMode;
|
|
2737
|
+
declare function subjectDefaultForCategory(category: MemoryCategory): MemorySubject;
|
|
2738
|
+
/**
|
|
2739
|
+
* Resolve the write-time subject: the extractor's single-token value when it
|
|
2740
|
+
* emitted a valid one, else the category default. Never reclassifies on read.
|
|
2741
|
+
*/
|
|
2742
|
+
declare function resolveWriteSubject(category: MemoryCategory, extractorValue: unknown): MemorySubject;
|
|
2743
|
+
/** Scope-profile promotion targets that are shared layers. */
|
|
2744
|
+
declare function isSharedPromotionTarget(target: string): boolean;
|
|
2745
|
+
interface SubjectGuardDecision {
|
|
2746
|
+
action: "allow" | "warn" | "reject";
|
|
2747
|
+
/** Effective subject — an absent subject resolves to "user" (fail closed, §36). */
|
|
2748
|
+
effectiveSubject: MemorySubject;
|
|
2749
|
+
/** Structured reason; empty string when action === "allow". */
|
|
2750
|
+
reason: string;
|
|
2751
|
+
/** The override that permits this promotion when action is reject/warn. */
|
|
2752
|
+
override: typeof SUBJECT_GUARD_OVERRIDE_FLAG;
|
|
2753
|
+
}
|
|
2754
|
+
/**
|
|
2755
|
+
* Evaluate one promotion against the subject guard. Shared by the spaces
|
|
2756
|
+
* promotion workflow and the scope-profile promotion targets so the two
|
|
2757
|
+
* surfaces cannot drift (issue #2372 acceptance 2, AGENTS.md §27).
|
|
2758
|
+
*
|
|
2759
|
+
* - mode "off", non-shared targets, agent-subject memories, and explicit
|
|
2760
|
+
* `allowUserSubject` overrides all allow.
|
|
2761
|
+
* - a `user`-subject memory (or a memory with NO subject — fail closed)
|
|
2762
|
+
* promoted to a shared layer warns under "warn" and rejects under
|
|
2763
|
+
* "enforce", with the override named in the reason (§39: never a silent
|
|
2764
|
+
* accept).
|
|
2765
|
+
*/
|
|
2766
|
+
declare function evaluateSubjectGuard(params: {
|
|
2767
|
+
subject: MemorySubject | undefined;
|
|
2768
|
+
sharedTarget: boolean;
|
|
2769
|
+
mode: SubjectGuardMode;
|
|
2770
|
+
allowUserSubject?: boolean;
|
|
2771
|
+
}): SubjectGuardDecision;
|
|
2772
|
+
type PromotionReuseSignal = "reinforcement" | "memory_worth" | "access_count";
|
|
2773
|
+
interface PromotionCandidate {
|
|
2774
|
+
id: string;
|
|
2775
|
+
path: string;
|
|
2776
|
+
category: MemoryCategory;
|
|
2777
|
+
content: string;
|
|
2778
|
+
accessCount: number;
|
|
2779
|
+
reinforcementCount: number;
|
|
2780
|
+
mwSuccess: number;
|
|
2781
|
+
mwFail: number;
|
|
2782
|
+
reuseSignal: PromotionReuseSignal;
|
|
2783
|
+
}
|
|
2784
|
+
/** Default reuse-signal threshold for `accessCount` (config `promotionCandidates.minAccessCount`). */
|
|
2785
|
+
declare const PROMOTION_CANDIDATES_DEFAULT_MIN_ACCESS = 3;
|
|
2786
|
+
/** Canonical content form for target-equivalence checks (same normalize pipeline as dedup). */
|
|
2787
|
+
declare function promotionCandidateKey(content: string): string;
|
|
2788
|
+
/**
|
|
2789
|
+
* List `subject: "agent"` memories that (a) are active, (b) show a reuse
|
|
2790
|
+
* signal (`reinforcement_count > 0` OR `mw_success > mw_fail` OR
|
|
2791
|
+
* `accessCount >= minAccessCount`), and (c) have no equivalent already in
|
|
2792
|
+
* the promotion target layer (content-hash check via the dedup normalizer).
|
|
2793
|
+
* Pure over the two memory lists; callers resolve namespaces.
|
|
2794
|
+
*/
|
|
2795
|
+
declare function computePromotionCandidates(options: {
|
|
2796
|
+
memories: MemoryFile[];
|
|
2797
|
+
targetMemories: MemoryFile[];
|
|
2798
|
+
minAccessCount: number;
|
|
2799
|
+
limit?: number;
|
|
2800
|
+
}): PromotionCandidate[];
|
|
2801
|
+
interface PromotionCandidatesResult {
|
|
2802
|
+
namespace: string;
|
|
2803
|
+
targetNamespace: string;
|
|
2804
|
+
minAccessCount: number;
|
|
2805
|
+
candidates: PromotionCandidate[];
|
|
2806
|
+
}
|
|
2807
|
+
declare const PROMOTION_CANDIDATES_MCP_TOOLS: McpTool[];
|
|
2808
|
+
/**
|
|
2809
|
+
* Storage surface the backfill needs (mirrors pattern-reinforcement's
|
|
2810
|
+
* structural interface so tests can pass an in-memory stub).
|
|
2811
|
+
* `writeMemoryFrontmatter` invalidates caches and syncs the fact-hash index
|
|
2812
|
+
* (§25/§31), so a stamped memory is immediately discoverable.
|
|
2813
|
+
*/
|
|
2814
|
+
interface SubjectBackfillStorage {
|
|
2815
|
+
readAllMemories(): Promise<MemoryFile[]>;
|
|
2816
|
+
writeMemoryFrontmatter(memory: MemoryFile, patch: Partial<MemoryFile["frontmatter"]>): Promise<boolean>;
|
|
2817
|
+
}
|
|
2818
|
+
interface SubjectBackfillReport {
|
|
2819
|
+
mode: "shadow" | "apply";
|
|
2820
|
+
scanned: number;
|
|
2821
|
+
stamped: number;
|
|
2822
|
+
alreadyStamped: number;
|
|
2823
|
+
stamps: Array<{
|
|
2824
|
+
id: string;
|
|
2825
|
+
category: MemoryCategory;
|
|
2826
|
+
subject: MemorySubject;
|
|
2827
|
+
path: string;
|
|
2828
|
+
}>;
|
|
2829
|
+
}
|
|
2830
|
+
/**
|
|
2831
|
+
* Stamp `subject` on memories that have none, using ONLY the deterministic
|
|
2832
|
+
* category defaults (never an LLM, never reclassifying an existing subject —
|
|
2833
|
+
* issue #2372 §1.3). `shadow` reports the intended stamps without writing;
|
|
2834
|
+
* `apply` writes through `writeMemoryFrontmatter`, which invalidates the
|
|
2835
|
+
* memory caches and re-syncs the fact-hash index.
|
|
2836
|
+
*/
|
|
2837
|
+
declare function backfillMemorySubjects(options: {
|
|
2838
|
+
storage: SubjectBackfillStorage;
|
|
2839
|
+
mode: "shadow" | "apply";
|
|
2840
|
+
}): Promise<SubjectBackfillReport>;
|
|
2841
|
+
|
|
2335
2842
|
declare abstract class SupportPassportAccessServiceBase {
|
|
2336
2843
|
private _supportPassportSurface;
|
|
2337
2844
|
abstract get configRef(): PluginConfig;
|
|
@@ -3061,6 +3568,7 @@ declare class EngramAccessService extends SupportPassportAccessServiceBase {
|
|
|
3061
3568
|
private readonly corpusWatermarkCache;
|
|
3062
3569
|
private readonly replicaDivergenceMonitor;
|
|
3063
3570
|
private readonly injectedSupportPassportGatewayRoute;
|
|
3571
|
+
readonly reviewDeckEnabled: boolean;
|
|
3064
3572
|
/** AccessObserveWriteSurface (access-service decomposition). Lazy; selfDeps live wiring. */
|
|
3065
3573
|
private _accessObserveWriteSurface;
|
|
3066
3574
|
private get accessObserveWriteSurface();
|
|
@@ -3070,6 +3578,8 @@ declare class EngramAccessService extends SupportPassportAccessServiceBase {
|
|
|
3070
3578
|
/** AccessAdminOpsSurface (access-service decomposition). Lazy; selfDeps live wiring. */
|
|
3071
3579
|
private _accessAdminOpsSurface;
|
|
3072
3580
|
private get accessAdminOpsSurface();
|
|
3581
|
+
private _reviewDeckSurface;
|
|
3582
|
+
private get reviewDeckSurface();
|
|
3073
3583
|
/** AccessRecallSurface (access-service decomposition). Lazy; selfDeps live wiring. */
|
|
3074
3584
|
private _accessRecallSurface;
|
|
3075
3585
|
private get accessRecallSurface();
|
|
@@ -3080,6 +3590,7 @@ declare class EngramAccessService extends SupportPassportAccessServiceBase {
|
|
|
3080
3590
|
constructor(orchestrator: Orchestrator, options?: {
|
|
3081
3591
|
resolveSecretRef?: ResolveSecretRefFn | null;
|
|
3082
3592
|
supportPassportGatewayRoute?: SupportPassportModelRoute | null;
|
|
3593
|
+
reviewDeckEnabled?: boolean;
|
|
3083
3594
|
});
|
|
3084
3595
|
get supportPassportGatewayRouteRef(): SupportPassportModelRoute | null;
|
|
3085
3596
|
get briefingEnabled(): boolean;
|
|
@@ -3264,6 +3775,18 @@ declare class EngramAccessService extends SupportPassportAccessServiceBase {
|
|
|
3264
3775
|
namespace?: string;
|
|
3265
3776
|
authenticatedPrincipal?: string;
|
|
3266
3777
|
}): Promise<WhoKnowsResult>;
|
|
3778
|
+
/**
|
|
3779
|
+
* Read-only promotion-candidate surfacing (issue #2372): agent-subject,
|
|
3780
|
+
* active, reuse-signaled memories in the caller's namespace with no
|
|
3781
|
+
* equivalent in the target layer. No auto-promotion — callers use the
|
|
3782
|
+
* existing promotion commands.
|
|
3783
|
+
*/
|
|
3784
|
+
promotionCandidates(request: {
|
|
3785
|
+
namespace?: string;
|
|
3786
|
+
targetNamespace?: string;
|
|
3787
|
+
limit?: number;
|
|
3788
|
+
authenticatedPrincipal?: string;
|
|
3789
|
+
}): Promise<PromotionCandidatesResult>;
|
|
3267
3790
|
memoryStore(request: EngramAccessMemoryStoreRequest, hooks?: {
|
|
3268
3791
|
enforceWriteQuota?: () => void | Promise<void>;
|
|
3269
3792
|
}): Promise<EngramAccessWriteResponse>;
|
|
@@ -3445,6 +3968,28 @@ declare class EngramAccessService extends SupportPassportAccessServiceBase {
|
|
|
3445
3968
|
}, principal?: string): Promise<ProcedureStatsReport & {
|
|
3446
3969
|
namespace: string;
|
|
3447
3970
|
}>;
|
|
3971
|
+
/**
|
|
3972
|
+
* Procedure library health maintenance (issue #2370). Shadow-first: the
|
|
3973
|
+
* gate is checked BEFORE any storage read, so `maintenance.enabled=false`
|
|
3974
|
+
* returns `{ enabled: false }` having touched nothing but config. Apply
|
|
3975
|
+
* mode additionally requires `apply: true`; `dryRun: true` forces shadow.
|
|
3976
|
+
*
|
|
3977
|
+
* The authenticated principal (never a client-supplied actor) drives the
|
|
3978
|
+
* namespace via the same writable resolver `procedureMiningRun` uses, so
|
|
3979
|
+
* cross-tenant writes are impossible.
|
|
3980
|
+
*/
|
|
3981
|
+
procedureLibraryMaintenance(request: {
|
|
3982
|
+
namespace?: string;
|
|
3983
|
+
apply?: boolean;
|
|
3984
|
+
dryRun?: boolean;
|
|
3985
|
+
authenticatedPrincipal?: string;
|
|
3986
|
+
}, principal?: string): Promise<{
|
|
3987
|
+
enabled: false;
|
|
3988
|
+
} | {
|
|
3989
|
+
enabled: true;
|
|
3990
|
+
namespace: string;
|
|
3991
|
+
report: ProcedureLibraryMaintenanceReport;
|
|
3992
|
+
}>;
|
|
3448
3993
|
memorySummarizeHourly(): Promise<{
|
|
3449
3994
|
ok: true;
|
|
3450
3995
|
message: string;
|
|
@@ -4083,6 +4628,9 @@ declare class EngramAccessService extends SupportPassportAccessServiceBase {
|
|
|
4083
4628
|
reason: string;
|
|
4084
4629
|
actor?: never;
|
|
4085
4630
|
}): Promise<MemoryPromotionResult>;
|
|
4631
|
+
reviewDeckList(opts: Parameters<ReviewDeckSurface["list"]>[0]): Promise<ReviewDeckPage>;
|
|
4632
|
+
reviewDeckAction(...args: Parameters<ReviewDeckSurface["action"]>): Promise<ReviewDeckActionReceipt>;
|
|
4633
|
+
reviewDeckUndo(...args: Parameters<ReviewDeckSurface["undo"]>): Promise<ReviewDeckActionReceipt>;
|
|
4086
4634
|
}
|
|
4087
4635
|
|
|
4088
|
-
export { type
|
|
4636
|
+
export { type ProcedureMaintenanceReasonCode as $, type AccessProfilingReportRequest as A, type BoundOperation as B, type CodingScopedWriteInput as C, type DecisionSurfaceRequest as D, type EngramAccessReviewQueueResponse as E, type CodegraphSurfaceResponse as F, type EngramAccessRecallResponse as G, type EngramAccessRecallRequest as H, type EngramAccessMemorySummary as I, type EngramAccessSetCodingContextRequest as J, type McpTool as K, type ReviewDeckSnapshot as L, type MemoryPromotionTargetKind as M, EngramMcpServer as N, type OperationName as O, type PromotionCandidatesResult as P, OPERATION_NAMES as Q, type ReviewDeckSourceRow as R, type SubjectBackfillReport as S, PROMOTION_CANDIDATES_DEFAULT_MIN_ACCESS as T, PROMOTION_CANDIDATES_MCP_TOOLS as U, type ProcedureLibraryMaintenanceReport as V, type WhoKnowsResult as W, type ProcedureMaintenanceAction as X, type ProcedureMaintenanceActionKind as Y, type ProcedureMaintenanceEvidence as Z, type ProcedureMaintenanceMarker as _, type AccessProfilingReportResponse as a, SupportPassportGrantStateSchema as a$, type ProcedureStatsConfigSnapshot as a0, type ProcedureStatsRecent as a1, type ProcedureStatsReport as a2, type ProcedureStatusCounts as a3, type PromotionCandidate as a4, type PromotionReuseSignal as a5, type ReviewDeckActionReceipt as a6, type ReviewDeckActionRequest as a7, type ReviewDeckChoice as a8, ReviewDeckCursorError as a9, SupportPassportCardCategorySchema as aA, SupportPassportCardListSchema as aB, type SupportPassportCardMutationInput as aC, SupportPassportCardMutationInputSchema as aD, SupportPassportCardSchema as aE, type SupportPassportCardServiceDependencies as aF, type SupportPassportCardStatus as aG, SupportPassportCardStatusSchema as aH, SupportPassportCardTitleSchema as aI, type SupportPassportCreateGrantInput as aJ, SupportPassportCreateGrantInputSchema as aK, type SupportPassportCreateGrantRequest as aL, SupportPassportCreateGrantRequestSchema as aM, type SupportPassportCreateGrantResult as aN, type SupportPassportCreatedGrant as aO, SupportPassportCreatedGrantSchema as aP, type SupportPassportDraftCard as aQ, SupportPassportDraftCardSchema as aR, type SupportPassportDraftModelInput as aS, SupportPassportDraftModelInputSchema as aT, SupportPassportDraftOutputSchema as aU, type SupportPassportDraftResult as aV, SupportPassportError as aW, type SupportPassportErrorCode as aX, type SupportPassportGrantCardRef as aY, SupportPassportGrantCardRefSchema as aZ, type SupportPassportGrantState as a_, type ReviewDeckCursorScope as aa, type ReviewDeckEvidence as ab, type ReviewDeckItem as ac, type ReviewDeckPage as ad, type ReviewDeckRisk as ae, type ReviewDeckUndoRequest as af, SUBJECT_GUARD_MODES as ag, SUBJECT_GUARD_OVERRIDE_FLAG as ah, SUBJECT_VALUES as ai, SUPPORT_PASSPORT_CARD_CATEGORIES as aj, SUPPORT_PASSPORT_CARD_STATUSES as ak, SUPPORT_PASSPORT_DRAFT_MAX_CONTENT_CHARACTERS as al, SUPPORT_PASSPORT_DRAFT_MAX_MEMORIES as am, SUPPORT_PASSPORT_NOT_IN_GUIDE_ANSWER as an, SUPPORT_PASSPORT_SOURCE_MEMORY_ID_MAX_LENGTH as ao, type SubjectBackfillStorage as ap, type SubjectGuardDecision as aq, SupportPassportAccessSurface as ar, type SupportPassportAccessSurfaceDependencies as as, type SupportPassportAnswerModelInput as at, SupportPassportAnswerModelInputSchema as au, type SupportPassportAnswerOutput as av, SupportPassportAnswerOutputSchema as aw, type SupportPassportAnswerResult as ax, type SupportPassportCard as ay, type SupportPassportCardCategory as az, type EngramAccessCapsuleListResponse as b, isMemorySubject as b$, SupportPassportListCardsInputSchema as b0, SupportPassportListGrantsInputSchema as b1, type SupportPassportManualDraftInput as b2, SupportPassportManualDraftInputSchema as b3, SupportPassportMemoryIdSchema as b4, type SupportPassportMemoryPreview as b5, SupportPassportModelAdapter as b6, type SupportPassportModelAdapterOptions as b7, type SupportPassportModelAuditRecord as b8, SupportPassportModelAuditRecordSchema as b9, WHO_KNOWS_AUTHORSHIP_BONUS as bA, WHO_KNOWS_DEFAULT_LIMIT as bB, WHO_KNOWS_MAX_EVIDENCE as bC, WHO_KNOWS_MAX_LIMIT as bD, WHO_KNOWS_MCP_TOOLS as bE, type WhoKnowsEntity as bF, type WhoKnowsEvidence as bG, type WhoKnowsHit as bH, type WhoKnowsHttpOutcome as bI, type WhoKnowsStorage as bJ, acceptsSupportPassportModelResponse as bK, backfillMemorySubjects as bL, buildReviewDeckPage as bM, buildSupportPassportDirectGatewayConfig as bN, compareReviewDeckRows as bO, computeProcedureStats as bP, computePromotionCandidates as bQ, computeReviewItemRevision as bR, computeSupportPassportCardRevision as bS, computeWhoKnows as bT, createSupportPassportModelAdapter as bU, decodeReviewDeckCursor as bV, encodeReviewDeckCursor as bW, evaluateSubjectGuard as bX, formatProcedureStatsText as bY, handleWhoKnowsHttpQuery as bZ, hashSupportPassportAuditValues as b_, type SupportPassportModelAuditSink as ba, SupportPassportModelAuditStore as bb, SupportPassportModelCallError as bc, type SupportPassportModelClients as bd, type SupportPassportModelFailureMetadata as be, type SupportPassportModelMessage as bf, type SupportPassportModelResultMetadata as bg, type SupportPassportModelRoute as bh, type SupportPassportModelRouteKind as bi, type SupportPassportModelRouteResult as bj, type SupportPassportModelUsage as bk, SupportPassportNamespaceSchema as bl, type SupportPassportOwnerCreateGrantRequest as bm, SupportPassportOwnerCreateGrantRequestSchema as bn, type SupportPassportOwnerGrant as bo, SupportPassportOwnerGrantSchema as bp, type SupportPassportOwnerScope as bq, SupportPassportPublicCardSchema as br, type SupportPassportPublicGuide as bs, SupportPassportPublicGuideSchema as bt, type SupportPassportReplaceCardInput as bu, SupportPassportReplaceCardInputSchema as bv, type SupportPassportRevokeGrantInput as bw, SupportPassportRevokeGrantInputSchema as bx, type SupportPassportRevokeGrantResult as by, SupportPassportSourceMemoryIdSchema as bz, type MemoryPromotionResult as c, type EngramAccessTrustZoneBrowseRequest as c$, isSharedPromotionTarget as c0, isSubjectGuardMode as c1, loadWhoKnowsEntities as c2, projectReviewDeckItem as c3, promotionCandidateKey as c4, resolveSupportPassportModelRoutePlan as c5, resolveWriteSubject as c6, runProcedureLibraryMaintenance as c7, subjectDefaultForCategory as c8, tokenizeTopic as c9, type EngramAccessLcmCompactionRecordRequest as cA, type EngramAccessLcmStatusResponse as cB, type EngramAccessMaintenanceResponse as cC, type EngramAccessMemoryBrowseRequest as cD, type EngramAccessMemoryBrowseResponse as cE, type EngramAccessMemoryRecord as cF, type EngramAccessObserveMessage as cG, type EngramAccessOfflineSyncApplyFileContentRequest as cH, type EngramAccessOfflineSyncApplyFileContentResponse as cI, type EngramAccessOfflineSyncApplyRequest as cJ, type EngramAccessOfflineSyncApplyResponse as cK, type EngramAccessOfflineSyncFileContentRequest as cL, type EngramAccessOfflineSyncFileContentResponse as cM, type EngramAccessOfflineSyncFilesRequest as cN, type EngramAccessOfflineSyncFilesResponse as cO, type EngramAccessOfflineSyncFinalizeConvergenceRequest as cP, type EngramAccessOfflineSyncFinalizeConvergenceResponse as cQ, type EngramAccessOfflineSyncManifestRequest as cR, type EngramAccessOfflineSyncSnapshotRequest as cS, type EngramAccessOfflineSyncSnapshotResponse as cT, type EngramAccessQualityResponse as cU, type EngramAccessRecallExplainRequest as cV, type EngramAccessRecallExplainResponse as cW, type EngramAccessReviewDispositionRequest as cX, type EngramAccessReviewDispositionResponse as cY, type EngramAccessScopeDebug as cZ, type EngramAccessTimelineResponse as c_, validateWhoKnowsInput as ca, type EngramAccessLcmCompactionFlushRequest as cb, type ExtractionForceFlushDelegate as cc, delegateExtractionForceFlush as cd, type OperationContext as ce, type OperationHooks as cf, type OperationSpec as cg, __resetRegistryForTest as ch, coerceBooleanLike as ci, coercePositiveInteger as cj, defineOperation as ck, formatZodIssues as cl, getOperation as cm, listRegisteredOperations as cn, normalizeOptionalPath as co, operationRequiresAuthorizedNamespace as cp, operationUsesPrincipalNamespace as cq, MCP_MIGRATED_OPERATIONS as cr, MCP_SUPPORTED_PROTOCOL_VERSIONS as cs, ENGRAM_ACCESS_WRITE_SCHEMA_VERSION as ct, type EngramAccessActionConfidenceRequest as cu, type EngramAccessActionConfidenceResponse as cv, type EngramAccessDaySummaryRequest as cw, type EngramAccessEntityListResponse as cx, type EngramAccessEntityResponse as cy, type EngramAccessEntitySummary as cz, type EngramAccessExtractionForceFlushRequest as d, type EngramAccessTrustZoneBrowseResponse as d0, type EngramAccessTrustZoneDemoSeedRequest as d1, type EngramAccessTrustZoneDemoSeedResponse as d2, type EngramAccessTrustZonePromoteRequest as d3, type EngramAccessTrustZonePromoteResponse as d4, type EngramAccessTrustZoneRecordSummary as d5, type EngramAccessTrustZoneStatusResponse as d6, type EngramAccessWriteEnvelope as d7, buildProjectedGovernanceProposedActions as d8, hasGroupedGovernanceActions as d9, shapeMemorySummary as da, type EngramAccessExtractionForceFlushResponse as e, EngramAccessService as f, type EngramAccessLcmCompactionFlushResponse as g, type EngramAccessLcmCompactionRecordResponse as h, type EngramAccessOfflineSyncSnapshotStreamResponse as i, type EngramAccessLcmSearchRequest as j, type EngramAccessLcmSearchResponse as k, type MemoryScopePlan as l, type EngramAccessMemoryStoreRequest as m, type EngramAccessSuggestionSubmitRequest as n, type EngramAccessBriefingRequest as o, type EngramAccessBriefingResponse as p, type EngramAccessWriteResponse as q, type EngramAccessObserveRequest as r, type EngramAccessObserveResponse as s, type ArchitectureSurfaceRequest as t, type ArchitectureSurfaceResponse as u, type DecisionSurfaceResponse as v, type DeltaSurfaceRequest as w, type DeltaSurfaceResponse as x, type EngramAccessMemoryResponse as y, type CodegraphSurfaceRequest as z };
|