@remnic/core 9.54.4 → 9.54.6
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 +24 -23
- package/dist/access-admin-ops-surface.js +55 -50
- package/dist/access-authorization-probe.d.ts +25 -22
- package/dist/access-authorization-probe.js +58 -51
- package/dist/access-boundary.d.ts +26 -23
- package/dist/access-boundary.js +59 -52
- package/dist/access-cli.js +115 -107
- package/dist/access-cli.js.map +1 -1
- package/dist/access-coding-context-resolution.d.ts +1 -1
- package/dist/access-extraction-force-flush.d.ts +19 -18
- package/dist/access-extraction-force-flush.js +55 -50
- package/dist/access-health-types.d.ts +1 -1
- package/dist/access-http-lcm-compaction.d.ts +22 -21
- package/dist/access-http-lifecycle-flush.d.ts +22 -21
- package/dist/access-http-offline-stream.d.ts +19 -18
- package/dist/access-http-query.js +55 -50
- package/dist/access-http.d.ts +55 -36
- package/dist/access-http.js +76 -65
- package/dist/access-identity-continuity-surface.d.ts +9 -9
- package/dist/access-identity-continuity-surface.js +55 -50
- package/dist/access-lcm-surface.d.ts +21 -20
- package/dist/access-lcm-surface.js +55 -50
- package/dist/access-mcp.d.ts +22 -21
- package/dist/access-mcp.js +63 -57
- package/dist/access-memory-search-fanout.d.ts +22 -2
- package/dist/access-memory-search-fanout.js +1 -1
- package/dist/{access-namespace-preflight-C7n4tgWC.d.ts → access-namespace-preflight-CCNn_6NE.d.ts} +1 -1
- package/dist/access-namespace-preflight.d.ts +3 -3
- package/dist/access-namespace-preflight.js +55 -50
- package/dist/access-observe-write-surface.d.ts +22 -21
- package/dist/access-observe-write-surface.js +55 -50
- package/dist/access-offline-manifest.d.ts +10 -9
- package/dist/access-offline-manifest.js +12 -10
- package/dist/access-operations-batch.js +57 -52
- package/dist/access-operations.d.ts +23 -22
- package/dist/access-operations.js +61 -55
- package/dist/access-recall-concurrency.d.ts +21 -20
- package/dist/access-recall-concurrency.js +55 -50
- package/dist/access-recall-response.d.ts +19 -18
- package/dist/access-recall-response.js +55 -50
- package/dist/access-recall-surface.d.ts +19 -18
- package/dist/access-recall-surface.js +55 -50
- package/dist/access-schema.d.ts +2 -2
- package/dist/access-schema.js +5 -4
- package/dist/{access-service-CXvbxLK-.d.ts → access-service-DkSdXK4S.d.ts} +1314 -83
- package/dist/access-service-helpers.d.ts +22 -21
- package/dist/access-service.d.ts +31 -30
- package/dist/access-service.js +55 -50
- package/dist/access-surface-catalog.d.ts +22 -21
- package/dist/access-surface-catalog.js +209 -2
- package/dist/access-surface-catalog.js.map +1 -1
- package/dist/access-wearables-meetings-surface.d.ts +3 -3
- package/dist/action-confidence.d.ts +1 -1
- package/dist/active-memory-bridge.d.ts +14 -1
- package/dist/active-memory-bridge.js +6 -1
- package/dist/active-recall.d.ts +1 -1
- package/dist/active-recall.js +4 -2
- package/dist/active-recall.js.map +1 -1
- package/dist/adapters/index.js +7 -7
- package/dist/adapters/registry.js +3 -3
- package/dist/admin-console/public/what-helps-me/app.js +1594 -0
- package/dist/admin-console/public/what-helps-me/index.html +339 -0
- package/dist/admin-console/public/what-helps-me/model.js +685 -0
- package/dist/admin-console/public/what-helps-me/what-helps-me.css +1296 -0
- package/dist/ambient-provenance.d.ts +1 -1
- package/dist/artifact-search.d.ts +1 -1
- package/dist/{auto-sync-TDHLZPVP.js → auto-sync-NR3GPCOA.js} +4 -4
- package/dist/behavior-learner.d.ts +1 -1
- package/dist/behavior-signals.d.ts +1 -1
- package/dist/bootstrap.d.ts +9 -9
- package/dist/briefing.d.ts +2 -2
- package/dist/briefing.js +33 -12
- package/dist/buffer-surprise-report.d.ts +1 -1
- package/dist/buffer-turn-helpers.d.ts +1 -1
- package/dist/buffer.d.ts +2 -2
- package/dist/buffer.js +3 -3
- package/dist/bulk-import/index.d.ts +3 -3
- package/dist/calibration.d.ts +1 -1
- package/dist/calibration.js +1 -1
- package/dist/capabilities.d.ts +1 -1
- package/dist/{catalog-BOOxl-I2.d.ts → catalog-DGFf8mD9.d.ts} +1 -1
- package/dist/causal-behavior.d.ts +1 -1
- package/dist/causal-consolidation.d.ts +1 -1
- package/dist/causal-consolidation.js +34 -13
- package/dist/causal-consolidation.js.map +1 -1
- package/dist/causal-trajectory-graph.d.ts +1 -1
- package/dist/{chunk-ZYLC7NFO.js → chunk-26ZXBTYN.js} +4 -4
- package/dist/chunk-26ZXBTYN.js.map +1 -0
- package/dist/{chunk-LLJMAULE.js → chunk-2FKEIPIT.js} +5 -5
- package/dist/{chunk-3CSX3ETE.js → chunk-2LWQSV6A.js} +23 -11
- package/dist/chunk-2LWQSV6A.js.map +1 -0
- package/dist/{chunk-JBPKEARU.js → chunk-2QSZNTDO.js} +7 -7
- package/dist/chunk-37DZZFFM.js +502 -0
- package/dist/chunk-37DZZFFM.js.map +1 -0
- package/dist/chunk-3HSRWJTC.js +9 -0
- package/dist/chunk-3HSRWJTC.js.map +1 -0
- package/dist/{chunk-XUAMCLY4.js → chunk-3TIZPSJC.js} +17 -13
- package/dist/chunk-3TIZPSJC.js.map +1 -0
- package/dist/{chunk-PDDTI7IC.js → chunk-43SEBY2M.js} +1 -1
- package/dist/{chunk-HWRD23DW.js → chunk-46SZBVDS.js} +3 -3
- package/dist/{chunk-6HPHEFXT.js → chunk-5FD7JMTX.js} +2 -2
- package/dist/{chunk-7BZOBA5J.js → chunk-5NB726GV.js} +70 -16
- package/dist/chunk-5NB726GV.js.map +1 -0
- package/dist/chunk-62OKGIJA.js +39 -0
- package/dist/chunk-62OKGIJA.js.map +1 -0
- package/dist/{chunk-IBKR2TFR.js → chunk-6CYHUWCO.js} +2 -2
- package/dist/{chunk-YN6ASZUG.js → chunk-6QPI2ITJ.js} +5 -5
- package/dist/{chunk-UU3G6GUP.js → chunk-76JJSXK7.js} +1 -1
- package/dist/chunk-76JJSXK7.js.map +1 -0
- package/dist/{chunk-PX2LSHYM.js → chunk-7BD6O7ZV.js} +189 -4
- package/dist/chunk-7BD6O7ZV.js.map +1 -0
- package/dist/chunk-7TBXNYLO.js +346 -0
- package/dist/chunk-7TBXNYLO.js.map +1 -0
- package/dist/{chunk-NH5IR2WM.js → chunk-BRR5EUTF.js} +6 -2
- package/dist/chunk-BRR5EUTF.js.map +1 -0
- package/dist/{chunk-NIS256NW.js → chunk-CIAI24TQ.js} +3 -3
- package/dist/{chunk-T2JHZWH6.js → chunk-D3LBIUWV.js} +11703 -7573
- package/dist/chunk-D3LBIUWV.js.map +1 -0
- package/dist/{chunk-7FGL6CGA.js → chunk-DVYRD4HY.js} +2 -2
- package/dist/{chunk-G7Z6EENO.js → chunk-EKTP7MNS.js} +4 -4
- package/dist/{chunk-S75M5ZRK.js → chunk-F2JRDPON.js} +16 -1
- package/dist/chunk-F2JRDPON.js.map +1 -0
- package/dist/{chunk-RZ4XGKOJ.js → chunk-FFRTNF3L.js} +8 -8
- package/dist/{chunk-VKXWK44Q.js → chunk-FONWBCVY.js} +3 -3
- package/dist/{chunk-DZD576ZU.js → chunk-FPLM2TKD.js} +2 -2
- package/dist/{chunk-ZPJ4QSGP.js → chunk-FTPONF6B.js} +2 -2
- package/dist/{chunk-LJS7KUPV.js → chunk-FWX7W5PM.js} +2 -2
- package/dist/{chunk-UTRO5UJU.js → chunk-G6DFSS6A.js} +5 -1
- package/dist/chunk-G6DFSS6A.js.map +1 -0
- package/dist/{chunk-6LAPLZOS.js → chunk-GJ776BC2.js} +8 -3
- package/dist/chunk-GJ776BC2.js.map +1 -0
- package/dist/{chunk-G4T7L557.js → chunk-GN3WRFJY.js} +6 -6
- package/dist/{chunk-QT2FRYI4.js → chunk-H7NAZ3UB.js} +2 -2
- package/dist/{chunk-APPFNGX6.js → chunk-HBUFQRIM.js} +2 -2
- package/dist/{chunk-UU7TRFNE.js → chunk-HGJ6NJ4E.js} +2 -2
- package/dist/{chunk-WB7JSQCP.js → chunk-HIEWDJ2O.js} +5 -2
- package/dist/{chunk-WB7JSQCP.js.map → chunk-HIEWDJ2O.js.map} +1 -1
- package/dist/{chunk-UES4BHA2.js → chunk-I3MSGFGD.js} +17 -6
- package/dist/chunk-I3MSGFGD.js.map +1 -0
- package/dist/{chunk-C4ZNGVK3.js → chunk-IKP5OYQQ.js} +2 -2
- package/dist/{chunk-KQAFEZQX.js → chunk-IPLYGWQF.js} +5 -5
- package/dist/{chunk-RDJRFDJY.js → chunk-IQ4NVWEF.js} +2 -2
- package/dist/{chunk-CGVHPCP2.js → chunk-JYG4OLWH.js} +2 -2
- package/dist/{chunk-WOPA3SGI.js → chunk-K26NWEOC.js} +8 -8
- package/dist/{chunk-K4QS7LXU.js → chunk-K2UGPTYY.js} +485 -44
- package/dist/chunk-K2UGPTYY.js.map +1 -0
- package/dist/{chunk-L6CQ7WIW.js → chunk-KFBOPMF6.js} +11 -11
- package/dist/chunk-KFBOPMF6.js.map +1 -0
- package/dist/{chunk-G7A5HLUS.js → chunk-KJH6W2I7.js} +2 -2
- package/dist/{chunk-IXEBUYO4.js → chunk-KM55SMLG.js} +11 -2
- package/dist/{chunk-IXEBUYO4.js.map → chunk-KM55SMLG.js.map} +1 -1
- package/dist/{chunk-HOIRB77A.js → chunk-L6Z5OAS4.js} +2 -2
- package/dist/chunk-LC2BDILZ.js +57 -0
- package/dist/chunk-LC2BDILZ.js.map +1 -0
- package/dist/{chunk-227UFSEQ.js → chunk-LEPOP46W.js} +4 -4
- package/dist/{chunk-6R4G7N4S.js → chunk-M4YHAODQ.js} +388 -748
- package/dist/chunk-M4YHAODQ.js.map +1 -0
- package/dist/{chunk-3JLPGJ43.js → chunk-MIH3CJPN.js} +5 -5
- package/dist/{chunk-QHFV6VNU.js → chunk-MK5VEWCR.js} +2 -2
- package/dist/chunk-NISZQW72.js +140 -0
- package/dist/chunk-NISZQW72.js.map +1 -0
- package/dist/{chunk-GUKBW4HL.js → chunk-NQMSEB5D.js} +6 -6
- package/dist/{chunk-G2LUMAUF.js → chunk-OCIP6YMD.js} +12 -5
- package/dist/chunk-OCIP6YMD.js.map +1 -0
- package/dist/{chunk-47P3RYZP.js → chunk-PG4QBPVG.js} +21 -11
- package/dist/chunk-PG4QBPVG.js.map +1 -0
- package/dist/{chunk-WRJVB3C2.js → chunk-PO7NXBG2.js} +2 -2
- package/dist/{chunk-QWGE2PUH.js → chunk-PT54WISF.js} +190 -56
- package/dist/chunk-PT54WISF.js.map +1 -0
- package/dist/{chunk-AZM4CCAC.js → chunk-QZLDRQ4I.js} +8 -8
- package/dist/{chunk-THPPCISA.js → chunk-RBII7637.js} +5 -5
- package/dist/{chunk-JDZPNCMA.js → chunk-RUNORG2P.js} +6 -3
- package/dist/chunk-RUNORG2P.js.map +1 -0
- package/dist/{chunk-JV5YUBIZ.js → chunk-RZQ6W2W4.js} +50 -44
- package/dist/chunk-RZQ6W2W4.js.map +1 -0
- package/dist/{chunk-RUMNY5DT.js → chunk-SMNYAMJD.js} +6 -2
- package/dist/chunk-SMNYAMJD.js.map +1 -0
- package/dist/{chunk-MKQBXQKU.js → chunk-TB6CBZ5V.js} +22 -15
- package/dist/chunk-TB6CBZ5V.js.map +1 -0
- package/dist/{chunk-VMMQDEN5.js → chunk-TO7ZTWJW.js} +2 -2
- package/dist/{chunk-K2TDK7GG.js → chunk-TWTUGCTY.js} +2 -2
- package/dist/{chunk-HLYR2TQL.js → chunk-UCTS3DDH.js} +2 -2
- package/dist/{chunk-JYIJNNN3.js → chunk-UG6VXIOK.js} +2 -2
- package/dist/{chunk-WM65LU67.js → chunk-UKYS3NU5.js} +2 -2
- package/dist/{chunk-WDBX6VER.js → chunk-UPLZNJKN.js} +5 -5
- package/dist/{chunk-C23BYTJV.js → chunk-UW5NPZJ2.js} +40 -12
- package/dist/chunk-UW5NPZJ2.js.map +1 -0
- package/dist/{chunk-2GFK22OZ.js → chunk-V6ERBR7U.js} +2 -2
- package/dist/{chunk-CYF6WVE7.js → chunk-W5ZKPI34.js} +139 -158
- package/dist/chunk-W5ZKPI34.js.map +1 -0
- package/dist/chunk-XX4HPFFM.js +370 -0
- package/dist/chunk-XX4HPFFM.js.map +1 -0
- package/dist/{chunk-ZMYDYNI4.js → chunk-XZHE2DEN.js} +4 -4
- package/dist/chunk-YXQEKCZM.js +223 -0
- package/dist/chunk-YXQEKCZM.js.map +1 -0
- package/dist/{chunk-GYPQL6XN.js → chunk-Z4N7SVVF.js} +35 -47
- package/dist/chunk-Z4N7SVVF.js.map +1 -0
- package/dist/{chunk-MAXVH44E.js → chunk-Z54EM5YZ.js} +7 -7
- package/dist/{chunk-YGLY6QFV.js → chunk-ZRZVLB7O.js} +2 -2
- package/dist/{chunk-4IIFL7GC.js → chunk-ZUKIUXHQ.js} +10 -10
- package/dist/{cli-DVUFIa5E.d.ts → cli-Bze8S0Qs.d.ts} +5 -5
- package/dist/cli.d.ts +22 -21
- package/dist/cli.js +90 -80
- package/dist/coding/pre-action-gate.d.ts +1 -1
- package/dist/compounding/engine.d.ts +2 -2
- package/dist/compounding/engine.js +33 -12
- package/dist/compounding/preference-consolidator.d.ts +1 -1
- package/dist/compression-optimizer.d.ts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/config.js +4 -2
- package/dist/connectors/codex-materialize-runner.d.ts +1 -1
- package/dist/connectors/codex-materialize-runner.js +33 -12
- package/dist/connectors/codex-materialize.d.ts +1 -1
- package/dist/connectors/index.d.ts +1 -1
- package/dist/connectors/index.js +32 -12
- package/dist/consolidation-provenance-check.d.ts +2 -2
- package/dist/consolidation-undo.d.ts +2 -2
- package/dist/contradiction/index.d.ts +2 -2
- package/dist/contradiction/index.js +3 -1
- package/dist/contradiction-scan-JDTBXRGW.js +20 -0
- package/dist/converge-config.d.ts +1 -1
- package/dist/convergence-refresh.d.ts +2 -2
- package/dist/convergence-refresh.js +35 -14
- package/dist/conversation-index/backend.d.ts +1 -1
- package/dist/conversation-index/backend.js +2 -2
- package/dist/conversation-index/chunker.d.ts +1 -1
- package/dist/conversation-index/faiss-adapter.d.ts +1 -1
- package/dist/conversation-index/indexer.d.ts +1 -1
- package/dist/conversation-index/search.d.ts +1 -1
- package/dist/corpus-watermark.d.ts +1 -1
- package/dist/corpus-watermark.js +25 -24
- package/dist/day-summary.d.ts +1 -1
- package/dist/delinearize.d.ts +1 -1
- package/dist/dependency-propagation-config.d.ts +1 -1
- package/dist/{dependency-propagation-delivery-XzF76C9n.d.ts → dependency-propagation-delivery-CzEfB31P.d.ts} +1 -1
- package/dist/direct-answer-wiring.d.ts +1 -1
- package/dist/direct-answer.d.ts +1 -1
- package/dist/embedding-fallback.d.ts +1 -1
- package/dist/enrichment/index.d.ts +1 -1
- package/dist/entity-retrieval.d.ts +2 -2
- package/dist/entity-retrieval.js +33 -12
- package/dist/entity-schema.d.ts +1 -1
- package/dist/explicit-capture.d.ts +9 -9
- package/dist/explicit-capture.js +7 -4
- package/dist/external-wiki-access.d.ts +22 -21
- package/dist/external-wiki-access.js +56 -51
- package/dist/external-wiki-collection-registration.d.ts +1 -1
- package/dist/external-wiki-collection.d.ts +1 -1
- package/dist/external-wiki-mcp-tools.d.ts +22 -21
- package/dist/extraction-error-classification.d.ts +1 -1
- package/dist/extraction-faithfulness.d.ts +1 -1
- package/dist/extraction-faithfulness.js +2 -2
- package/dist/extraction-judge-telemetry.d.ts +1 -1
- package/dist/extraction-judge-training.d.ts +1 -1
- package/dist/extraction-judge.d.ts +1 -1
- package/dist/extraction-judge.js +2 -2
- package/dist/extraction-liveness.d.ts +1 -1
- package/dist/extraction-normalization.d.ts +1 -1
- package/dist/extraction-prompt.d.ts +1 -1
- package/dist/extraction-source-grounding-rules.d.ts +1 -1
- package/dist/extraction-source-grounding.d.ts +1 -1
- package/dist/extraction.d.ts +1 -1
- package/dist/extraction.js +35 -19
- package/dist/fallback-llm.d.ts +14 -1
- package/dist/fallback-llm.js +1 -1
- package/dist/{first-start-migration-626C5554.js → first-start-migration-CRZCZAJN.js} +11 -3
- package/dist/first-start-migration-CRZCZAJN.js.map +1 -0
- package/dist/graph-dashboard-diff.d.ts +1 -1
- package/dist/graph-dashboard-key.d.ts +1 -1
- package/dist/graph-dashboard-parser.d.ts +1 -1
- package/dist/graph-edge-reinforcement.d.ts +1 -1
- package/dist/graph-path-reconstruction.d.ts +1 -1
- package/dist/graph-path-scoring.d.ts +1 -1
- package/dist/graph-snapshot.d.ts +1 -1
- package/dist/graph.d.ts +1 -1
- package/dist/harmonic-retrieval.js +1 -1
- package/dist/importance.d.ts +1 -1
- package/dist/importers/index.d.ts +1 -1
- package/dist/in-flight-reads.d.ts +1 -1
- package/dist/index.d.ts +314 -308
- package/dist/index.js +304 -133
- package/dist/inline-script.d.ts +3 -0
- package/dist/inline-script.js +8 -0
- package/dist/inline-script.js.map +1 -0
- package/dist/intent.d.ts +1 -1
- package/dist/lcm/engine.d.ts +1 -1
- package/dist/lcm/engine.js +3 -3
- package/dist/lcm/index.d.ts +1 -1
- package/dist/lcm/index.js +6 -6
- package/dist/lcm/tools.d.ts +1 -1
- package/dist/lifecycle.d.ts +1 -1
- package/dist/live-connectors-runner.d.ts +1 -1
- package/dist/local-llm.d.ts +2 -1
- package/dist/local-llm.js +2 -2
- package/dist/local-model-endpoint.d.ts +1 -1
- package/dist/maintenance/memory-governance.d.ts +1 -1
- package/dist/maintenance/memory-governance.js +33 -12
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.d.ts +2 -2
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +33 -12
- package/dist/maintenance/rebuild-memory-projection.d.ts +2 -2
- package/dist/maintenance/rebuild-memory-projection.js +34 -13
- package/dist/{maintenance-BJzNIKBE.d.ts → maintenance-C8aRWfhq.d.ts} +3 -3
- package/dist/mcp-memory-inspector-app.d.ts +22 -21
- package/dist/mcp-read-only-tools.js +1 -1
- package/dist/memory-action-policy.d.ts +1 -1
- package/dist/memory-cache.d.ts +1 -1
- package/dist/memory-lifecycle-ledger-utils.d.ts +1 -1
- package/dist/memory-projection-mutations.js +2 -2
- package/dist/memory-projection-store.d.ts +6 -2
- package/dist/memory-projection-store.js +1 -1
- package/dist/memory-provenance.d.ts +1 -1
- package/dist/memory-snapshot.d.ts +1 -1
- package/dist/memory-worth-outcomes.d.ts +2 -2
- package/dist/models-json.d.ts +1 -1
- package/dist/namespaces/migrate.d.ts +3 -3
- package/dist/namespaces/migrate.js +24 -23
- package/dist/namespaces/principal.d.ts +1 -1
- package/dist/namespaces/search.d.ts +1 -1
- package/dist/namespaces/search.js +8 -8
- package/dist/namespaces/storage.d.ts +3 -3
- package/dist/namespaces/storage.js +33 -12
- package/dist/native-knowledge.d.ts +1 -1
- package/dist/offline-sync-file-io.d.ts +20 -0
- package/dist/offline-sync-file-io.js +18 -0
- package/dist/offline-sync-file-io.js.map +1 -0
- package/dist/offline-sync-impression-drain.d.ts +1 -1
- package/dist/offline-sync-impression-drain.js +5 -5
- package/dist/offline-sync.d.ts +8 -6
- package/dist/offline-sync.js +2 -1
- package/dist/operator-doctor-corpus.d.ts +1 -1
- package/dist/operator-doctor-corpus.js +26 -25
- package/dist/operator-doctor-replica.d.ts +1 -1
- package/dist/operator-toolkit.d.ts +3 -3
- package/dist/operator-toolkit.js +39 -36
- package/dist/orchestration/compression-guideline-coordinator.d.ts +2 -2
- package/dist/orchestration/maintenance.d.ts +4 -4
- package/dist/orchestration/maintenance.js +38 -18
- package/dist/{orchestrator-BiXgBJBQ.d.ts → orchestrator-D85CzDDY.d.ts} +11 -8
- package/dist/orchestrator.d.ts +9 -9
- package/dist/orchestrator.js +117 -109
- package/dist/patterns-cli.d.ts +1 -1
- package/dist/{pipeline-sz_dcuLg.d.ts → pipeline-DPcUifCO.d.ts} +1 -1
- package/dist/policy-runtime.d.ts +1 -1
- package/dist/proactive-contention.d.ts +1 -1
- package/dist/provenance.d.ts +1 -1
- package/dist/public-http-D-SyWNj6.d.ts +25 -0
- package/dist/{purge-533FZLS4.js → purge-GB7PZHT2.js} +2 -2
- package/dist/{qmd-eAWObK4M.d.ts → qmd-dFCHp1r0.d.ts} +1 -1
- package/dist/qmd-preflight.d.ts +2 -2
- package/dist/qmd-recall-cache.d.ts +1 -1
- package/dist/qmd.d.ts +2 -2
- package/dist/recall-concurrency-config.d.ts +1 -1
- package/dist/recall-disclosure-escalation.d.ts +1 -1
- package/dist/recall-explain-renderer.d.ts +1 -1
- package/dist/recall-explain-renderer.js +3 -3
- package/dist/recall-memory-map.d.ts +1 -1
- package/dist/recall-planner-llm.d.ts +1 -1
- package/dist/recall-planner-llm.js +1 -1
- package/dist/recall-state.d.ts +1 -1
- package/dist/recall-tag-filter.d.ts +1 -1
- package/dist/recall-timings.d.ts +1 -1
- package/dist/recall-xray-cli.d.ts +1 -1
- package/dist/recall-xray-cli.js +4 -4
- package/dist/recall-xray-renderer.d.ts +1 -1
- package/dist/recall-xray-renderer.js +3 -3
- package/dist/recall-xray.d.ts +1 -1
- package/dist/recall-xray.js +2 -2
- package/dist/reconcile/cursor.d.ts +2 -1
- package/dist/reconcile/manifest.d.ts +2 -1
- package/dist/reconcile/manifest.js +6 -5
- package/dist/reconcile/plan.d.ts +2 -1
- package/dist/reconcile/plan.js +3 -2
- package/dist/replay/normalizers/chatgpt.d.ts +1 -1
- package/dist/replay/normalizers/claude.d.ts +1 -1
- package/dist/replay/normalizers/openclaw.d.ts +1 -1
- package/dist/replay/normalizers/shared.d.ts +1 -1
- package/dist/replay/runner.d.ts +1 -1
- package/dist/replay/types.d.ts +1 -1
- package/dist/replica-divergence.d.ts +1 -1
- package/dist/replica-peers-config.d.ts +1 -1
- package/dist/resolve-auth-token.d.ts +1 -1
- package/dist/resume-bundles.js +5 -3
- package/dist/retrieval-agents.d.ts +2 -2
- package/dist/retrieval-tiers.d.ts +1 -1
- package/dist/routing/engine.d.ts +1 -1
- package/dist/routing/store.d.ts +1 -1
- package/dist/salvage-envelope.d.ts +1 -1
- package/dist/schemas.d.ts +38 -38
- package/dist/{scope-profiles-BBQsXuyj.d.ts → scope-profiles-DICK7GtN.d.ts} +1 -1
- package/dist/search/embed-helper.d.ts +1 -1
- package/dist/search/factory.d.ts +1 -1
- package/dist/search/factory.js +6 -6
- package/dist/search/index.d.ts +1 -1
- package/dist/search/index.js +12 -12
- package/dist/search/lancedb-backend.d.ts +1 -1
- package/dist/search/meilisearch-backend.d.ts +1 -1
- package/dist/search/noop-backend.d.ts +1 -1
- package/dist/search/orama-backend.d.ts +1 -1
- package/dist/search/port.d.ts +1 -1
- package/dist/search/remote-backend.d.ts +1 -1
- package/dist/{semantic-consolidation-HD8RkzVA.d.ts → semantic-consolidation-BP7NAX0N.d.ts} +1 -1
- package/dist/semantic-consolidation.d.ts +2 -2
- package/dist/semantic-consolidation.js +34 -13
- package/dist/semantic-rule-promotion.js +33 -12
- package/dist/semantic-rule-verifier.d.ts +1 -1
- package/dist/semantic-rule-verifier.js +33 -12
- package/dist/{service-DIrtHHEg.d.ts → service-DT-pJyda.d.ts} +660 -660
- package/dist/session-observer-bands.d.ts +1 -1
- package/dist/session-observer-state.d.ts +1 -1
- package/dist/shared-context/manager.d.ts +1 -1
- package/dist/signal.d.ts +1 -1
- package/dist/source-agent-qualifier.d.ts +1 -1
- package/dist/source-agent-qualifier.js +31 -15
- package/dist/{storage-DqCzXi56.d.ts → storage-qOnaJ1Lw.d.ts} +49 -13
- package/dist/storage.d.ts +2 -2
- package/dist/storage.js +33 -12
- package/dist/summarizer.d.ts +1 -1
- package/dist/summarizer.js +5 -5
- package/dist/summary-snapshot.d.ts +1 -1
- package/dist/support-passport/index.d.ts +518 -0
- package/dist/support-passport/index.js +357 -0
- package/dist/support-passport/index.js.map +1 -0
- package/dist/temporal-supersession.d.ts +2 -2
- package/dist/temporal-timeline-recall.d.ts +1 -1
- package/dist/temporal-validity.d.ts +1 -1
- package/dist/threading.d.ts +1 -1
- package/dist/tier-migration.d.ts +2 -2
- package/dist/tier-routing.d.ts +2 -2
- package/dist/tier-routing.js +7 -1
- package/dist/{tier-stats-2JCZYEF7.js → tier-stats-EXYSKSVN.js} +8 -2
- package/dist/{tier-stats-2JCZYEF7.js.map → tier-stats-EXYSKSVN.js.map} +1 -1
- package/dist/topics.d.ts +1 -1
- package/dist/transcript.d.ts +1 -1
- package/dist/transfer/autodetect.js +1 -1
- package/dist/transfer/backup.js +1 -1
- package/dist/transfer/capsule-export.js +2 -2
- package/dist/transfer/types.d.ts +36 -36
- package/dist/trust-score-stage.d.ts +1 -1
- package/dist/trust-score.d.ts +1 -1
- package/dist/{types-d_j4vC6N.d.ts → types-ed-SvS2t.d.ts} +8 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.js +1 -1
- package/dist/utility-runtime.d.ts +2 -2
- package/dist/verified-recall.js +33 -12
- package/dist/write-envelope.d.ts +1 -1
- package/dist/write-rate-limiter.d.ts +11 -5
- package/dist/write-rate-limiter.js +1 -1
- package/package.json +12 -2
- package/scripts/build-with-heap.mjs +11 -1
- package/src/access-authorization-probe.ts +20 -2
- package/src/access-boundary.ts +32 -0
- package/src/access-http.test.ts +1971 -643
- package/src/access-http.ts +81 -74
- package/src/access-mcp.ts +3 -1
- package/src/access-memory-search-fanout.ts +24 -1
- package/src/access-offline-manifest.ts +5 -0
- package/src/access-operations.ts +2 -0
- package/src/access-service-namespace.test.ts +14 -0
- package/src/access-service-observe-scope.test.ts +2 -0
- package/src/access-service-offline-file-content.test.ts +211 -0
- package/src/access-service.ts +628 -884
- package/src/access-surface-catalog.test.ts +40 -10
- package/src/access-surface-catalog.ts +15 -0
- package/src/active-memory-bridge.test.ts +151 -0
- package/src/active-memory-bridge.ts +95 -21
- package/src/briefing.test.ts +38 -0
- package/src/briefing.ts +3 -3
- package/src/cli.ts +6 -1
- package/src/config.ts +18 -9
- package/src/connectors/codex-materialize-runner.ts +2 -0
- package/src/contradiction/contradiction-scan.ts +2 -0
- package/src/contradiction/contradiction.test.ts +42 -0
- package/src/correction/correction-access-wiring.ts +8 -2
- package/src/correction/correction-storage-integration.test.ts +7 -0
- package/src/explicit-capture.test.ts +24 -0
- package/src/explicit-capture.ts +2 -0
- package/src/fallback-llm.test.ts +54 -0
- package/src/fallback-llm.ts +54 -9
- package/src/index.ts +3 -0
- package/src/inline-script.ts +6 -0
- package/src/local-llm-headers-timeout.test.ts +42 -0
- package/src/local-llm.ts +8 -8
- package/src/maintenance/first-start-migration.ts +2 -1
- package/src/maintenance/memory-governance.test.ts +25 -0
- package/src/maintenance/memory-governance.ts +4 -1
- package/src/maintenance/pattern-reinforcement.test.ts +20 -0
- package/src/maintenance/pattern-reinforcement.ts +2 -1
- package/src/maintenance/rebuild-memory-projection.ts +8 -8
- package/src/mcp-read-only-tools.ts +3 -0
- package/src/memory-projection-store.ts +25 -27
- package/src/offline-sync-file-io.ts +68 -0
- package/src/offline-sync.ts +43 -57
- package/src/orchestration/consolidation-run.ts +5 -4
- package/src/orchestration/contradiction-linking-coordinator.ts +7 -0
- package/src/orchestration/contradiction-localization.integration.test.ts +115 -0
- package/src/orchestration/lifecycle-policy-coordinator.ts +2 -1
- package/src/orchestration/qmd-result-resolver.test.ts +215 -14
- package/src/orchestration/qmd-result-resolver.ts +142 -82
- package/src/orchestration/recall-search-pipeline.test.ts +41 -0
- package/src/orchestration/recall-search-pipeline.ts +12 -0
- package/src/orchestration/semantic-consolidation-coordinator.ts +2 -1
- package/src/orchestration/tier-migration-coordinator.ts +23 -56
- package/src/orchestration/workspace-ops.test.ts +37 -0
- package/src/orchestration/workspace-ops.ts +5 -29
- package/src/orchestrator.ts +7 -8
- package/src/relay/mission-access.test.ts +11 -11
- package/src/relay/mission-ui.test.ts +3 -1
- package/src/storage/supersession-audit.ts +7 -1
- package/src/storage/supersession-side-effects.ts +17 -5
- package/src/storage/tombstone-blocked-capture-sync.ts +31 -0
- package/src/storage-contract/failure-semantics.test.ts +102 -0
- package/src/storage.ts +18 -19
- package/src/support-passport/access-http-base.ts +143 -0
- package/src/support-passport/access-http.ts +172 -0
- package/src/support-passport/access-operations.ts +272 -0
- package/src/support-passport/access-service-base.test.ts +193 -0
- package/src/support-passport/access-service-base.ts +176 -0
- package/src/support-passport/access-surface.test.ts +283 -0
- package/src/support-passport/access-surface.ts +286 -0
- package/src/support-passport/card-projection.test.ts +137 -0
- package/src/support-passport/card-projection.ts +348 -0
- package/src/support-passport/card-replacement.ts +126 -0
- package/src/support-passport/card-service-commit-forwarding.test.ts +160 -0
- package/src/support-passport/card-service.test.ts +2964 -0
- package/src/support-passport/card-service.ts +1184 -0
- package/src/support-passport/card-state.ts +158 -0
- package/src/support-passport/config-model-routing.test.ts +37 -0
- package/src/support-passport/config.test.ts +34 -0
- package/src/support-passport/config.ts +41 -0
- package/src/support-passport/contracts.test.ts +156 -0
- package/src/support-passport/contracts.ts +149 -0
- package/src/support-passport/errors.ts +30 -0
- package/src/support-passport/generated-batch.test.ts +185 -0
- package/src/support-passport/generated-batch.ts +338 -0
- package/src/support-passport/grant-contracts.ts +183 -0
- package/src/support-passport/grant-generated-batch-scope.test.ts +201 -0
- package/src/support-passport/grant-service-cache.test.ts +148 -0
- package/src/support-passport/grant-service-cancellation.test.ts +83 -0
- package/src/support-passport/grant-service-marker-cache.test.ts +62 -0
- package/src/support-passport/grant-service.test.ts +3496 -0
- package/src/support-passport/grant-service.ts +513 -0
- package/src/support-passport/grant-store-commit-hook.test.ts +123 -0
- package/src/support-passport/grant-store-order.test.ts +60 -0
- package/src/support-passport/grant-store-path-safety.test.ts +30 -0
- package/src/support-passport/grant-store-recovery.test.ts +448 -0
- package/src/support-passport/grant-store.ts +906 -0
- package/src/support-passport/index.ts +17 -0
- package/src/support-passport/mcp-tools.test.ts +222 -0
- package/src/support-passport/mcp-tools.ts +187 -0
- package/src/support-passport/model-adapter.test.ts +840 -0
- package/src/support-passport/model-adapter.ts +602 -0
- package/src/support-passport/model-audit-pinned-write.test.ts +59 -0
- package/src/support-passport/model-audit.ts +152 -0
- package/src/support-passport/model-bridge.test.ts +456 -0
- package/src/support-passport/model-bridge.ts +439 -0
- package/src/support-passport/model-contracts.ts +124 -0
- package/src/support-passport/model-service.test.ts +1731 -0
- package/src/support-passport/model-service.ts +399 -0
- package/src/support-passport/offline-sync-guard.ts +230 -0
- package/src/support-passport/owner-http.test.ts +671 -0
- package/src/support-passport/owner-lock.ts +70 -0
- package/src/support-passport/private-file.test.ts +99 -0
- package/src/support-passport/private-file.ts +498 -0
- package/src/support-passport/public-http.test.ts +476 -0
- package/src/support-passport/public-http.ts +601 -0
- package/src/support-passport/ui.test.ts +181 -0
- package/src/tier-routing.ts +28 -17
- package/src/training-export/converter.test.ts +24 -0
- package/src/training-export/converter.ts +2 -0
- package/src/types.ts +8 -1
- package/src/wearables/service.test.ts +13 -0
- package/src/wearables/service.ts +2 -0
- package/src/write-rate-limiter.test.ts +30 -6
- package/src/write-rate-limiter.ts +29 -18
- package/dist/chunk-3CSX3ETE.js.map +0 -1
- package/dist/chunk-47P3RYZP.js.map +0 -1
- package/dist/chunk-6LAPLZOS.js.map +0 -1
- package/dist/chunk-6R4G7N4S.js.map +0 -1
- package/dist/chunk-7BZOBA5J.js.map +0 -1
- package/dist/chunk-C23BYTJV.js.map +0 -1
- package/dist/chunk-CYF6WVE7.js.map +0 -1
- package/dist/chunk-G2LUMAUF.js.map +0 -1
- package/dist/chunk-GYPQL6XN.js.map +0 -1
- package/dist/chunk-JDZPNCMA.js.map +0 -1
- package/dist/chunk-JV5YUBIZ.js.map +0 -1
- package/dist/chunk-K4QS7LXU.js.map +0 -1
- package/dist/chunk-L6CQ7WIW.js.map +0 -1
- package/dist/chunk-MKQBXQKU.js.map +0 -1
- package/dist/chunk-NH5IR2WM.js.map +0 -1
- package/dist/chunk-PX2LSHYM.js.map +0 -1
- package/dist/chunk-QWGE2PUH.js.map +0 -1
- package/dist/chunk-RUMNY5DT.js.map +0 -1
- package/dist/chunk-S75M5ZRK.js.map +0 -1
- package/dist/chunk-T2JHZWH6.js.map +0 -1
- package/dist/chunk-UES4BHA2.js.map +0 -1
- package/dist/chunk-UTRO5UJU.js.map +0 -1
- package/dist/chunk-UU3G6GUP.js.map +0 -1
- package/dist/chunk-XUAMCLY4.js.map +0 -1
- package/dist/chunk-ZYLC7NFO.js.map +0 -1
- package/dist/contradiction-scan-HYLIRMJ2.js +0 -14
- package/dist/first-start-migration-626C5554.js.map +0 -1
- /package/dist/{auto-sync-TDHLZPVP.js.map → auto-sync-NR3GPCOA.js.map} +0 -0
- /package/dist/{chunk-LLJMAULE.js.map → chunk-2FKEIPIT.js.map} +0 -0
- /package/dist/{chunk-JBPKEARU.js.map → chunk-2QSZNTDO.js.map} +0 -0
- /package/dist/{chunk-PDDTI7IC.js.map → chunk-43SEBY2M.js.map} +0 -0
- /package/dist/{chunk-HWRD23DW.js.map → chunk-46SZBVDS.js.map} +0 -0
- /package/dist/{chunk-6HPHEFXT.js.map → chunk-5FD7JMTX.js.map} +0 -0
- /package/dist/{chunk-IBKR2TFR.js.map → chunk-6CYHUWCO.js.map} +0 -0
- /package/dist/{chunk-YN6ASZUG.js.map → chunk-6QPI2ITJ.js.map} +0 -0
- /package/dist/{chunk-NIS256NW.js.map → chunk-CIAI24TQ.js.map} +0 -0
- /package/dist/{chunk-7FGL6CGA.js.map → chunk-DVYRD4HY.js.map} +0 -0
- /package/dist/{chunk-G7Z6EENO.js.map → chunk-EKTP7MNS.js.map} +0 -0
- /package/dist/{chunk-RZ4XGKOJ.js.map → chunk-FFRTNF3L.js.map} +0 -0
- /package/dist/{chunk-VKXWK44Q.js.map → chunk-FONWBCVY.js.map} +0 -0
- /package/dist/{chunk-DZD576ZU.js.map → chunk-FPLM2TKD.js.map} +0 -0
- /package/dist/{chunk-ZPJ4QSGP.js.map → chunk-FTPONF6B.js.map} +0 -0
- /package/dist/{chunk-LJS7KUPV.js.map → chunk-FWX7W5PM.js.map} +0 -0
- /package/dist/{chunk-G4T7L557.js.map → chunk-GN3WRFJY.js.map} +0 -0
- /package/dist/{chunk-QT2FRYI4.js.map → chunk-H7NAZ3UB.js.map} +0 -0
- /package/dist/{chunk-APPFNGX6.js.map → chunk-HBUFQRIM.js.map} +0 -0
- /package/dist/{chunk-UU7TRFNE.js.map → chunk-HGJ6NJ4E.js.map} +0 -0
- /package/dist/{chunk-C4ZNGVK3.js.map → chunk-IKP5OYQQ.js.map} +0 -0
- /package/dist/{chunk-KQAFEZQX.js.map → chunk-IPLYGWQF.js.map} +0 -0
- /package/dist/{chunk-RDJRFDJY.js.map → chunk-IQ4NVWEF.js.map} +0 -0
- /package/dist/{chunk-CGVHPCP2.js.map → chunk-JYG4OLWH.js.map} +0 -0
- /package/dist/{chunk-WOPA3SGI.js.map → chunk-K26NWEOC.js.map} +0 -0
- /package/dist/{chunk-G7A5HLUS.js.map → chunk-KJH6W2I7.js.map} +0 -0
- /package/dist/{chunk-HOIRB77A.js.map → chunk-L6Z5OAS4.js.map} +0 -0
- /package/dist/{chunk-227UFSEQ.js.map → chunk-LEPOP46W.js.map} +0 -0
- /package/dist/{chunk-3JLPGJ43.js.map → chunk-MIH3CJPN.js.map} +0 -0
- /package/dist/{chunk-QHFV6VNU.js.map → chunk-MK5VEWCR.js.map} +0 -0
- /package/dist/{chunk-GUKBW4HL.js.map → chunk-NQMSEB5D.js.map} +0 -0
- /package/dist/{chunk-WRJVB3C2.js.map → chunk-PO7NXBG2.js.map} +0 -0
- /package/dist/{chunk-AZM4CCAC.js.map → chunk-QZLDRQ4I.js.map} +0 -0
- /package/dist/{chunk-THPPCISA.js.map → chunk-RBII7637.js.map} +0 -0
- /package/dist/{chunk-VMMQDEN5.js.map → chunk-TO7ZTWJW.js.map} +0 -0
- /package/dist/{chunk-K2TDK7GG.js.map → chunk-TWTUGCTY.js.map} +0 -0
- /package/dist/{chunk-HLYR2TQL.js.map → chunk-UCTS3DDH.js.map} +0 -0
- /package/dist/{chunk-JYIJNNN3.js.map → chunk-UG6VXIOK.js.map} +0 -0
- /package/dist/{chunk-WM65LU67.js.map → chunk-UKYS3NU5.js.map} +0 -0
- /package/dist/{chunk-WDBX6VER.js.map → chunk-UPLZNJKN.js.map} +0 -0
- /package/dist/{chunk-2GFK22OZ.js.map → chunk-V6ERBR7U.js.map} +0 -0
- /package/dist/{chunk-ZMYDYNI4.js.map → chunk-XZHE2DEN.js.map} +0 -0
- /package/dist/{chunk-MAXVH44E.js.map → chunk-Z54EM5YZ.js.map} +0 -0
- /package/dist/{chunk-YGLY6QFV.js.map → chunk-ZRZVLB7O.js.map} +0 -0
- /package/dist/{chunk-4IIFL7GC.js.map → chunk-ZUKIUXHQ.js.map} +0 -0
- /package/dist/{contradiction-scan-HYLIRMJ2.js.map → contradiction-scan-JDTBXRGW.js.map} +0 -0
- /package/dist/{purge-533FZLS4.js.map → purge-GB7PZHT2.js.map} +0 -0
|
@@ -1,37 +1,39 @@
|
|
|
1
|
-
import { a as NamespaceRecord } from './catalog-
|
|
2
|
-
import { P as PluginConfig, C as CodingContext, w as MemoryCategory, aF as DaySummaryResult, R as RecallPlanMode, n as RecallDisclosure, M as MemoryFile, J as MemoryLifecycleEvent, E as EntityFile, y as MemoryStatus, o as SourceConnectorProvenance, bd as DreamsStatusResult, D as DreamsPhase, a as DreamsRunResult } from './types-
|
|
3
|
-
import { S as ScopePlan, E as EngramAccessNamespaceWritableRequest, W as WritableNamespaceResult } from './access-namespace-preflight-
|
|
4
|
-
import { S as StorageManager } from './storage-
|
|
1
|
+
import { a as NamespaceRecord } from './catalog-DGFf8mD9.js';
|
|
2
|
+
import { P as PluginConfig, C as CodingContext, w as MemoryCategory, G as GatewayConfig, aF as DaySummaryResult, R as RecallPlanMode, n as RecallDisclosure, M as MemoryFile, J as MemoryLifecycleEvent, E as EntityFile, y as MemoryStatus, o as SourceConnectorProvenance, bd as DreamsStatusResult, D as DreamsPhase, a as DreamsRunResult } from './types-ed-SvS2t.js';
|
|
3
|
+
import { S as ScopePlan, E as EngramAccessNamespaceWritableRequest, W as WritableNamespaceResult } from './access-namespace-preflight-CCNn_6NE.js';
|
|
4
|
+
import { S as StorageManager } from './storage-qOnaJ1Lw.js';
|
|
5
5
|
import { a as Peer, b as PeerProfile } from './types-B1VHaf2w.js';
|
|
6
6
|
import { RecallExplainJsonPayload } from './recall-explain-renderer.js';
|
|
7
7
|
import { CitationUsageRequest, CitationUsageResult } from './access-citation.js';
|
|
8
|
-
import { ResolveSecretRefFn } from './resolve-auth-token.js';
|
|
9
8
|
import { EngramAccessHealthResponse } from './access-health-types.js';
|
|
10
|
-
import {
|
|
11
|
-
import { O as Orchestrator, I as IntentDebugSnapshot, G as GraphRecallSnapshot, P as PatternReinforcementResult } from './orchestrator-
|
|
12
|
-
import { ExplicitCaptureInput } from './explicit-capture.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-D85CzDDY.js';
|
|
13
11
|
import { BudgetWarning } from './cross-namespace-budget.js';
|
|
14
|
-
import {
|
|
12
|
+
import { ExplicitCaptureInput } from './explicit-capture.js';
|
|
15
13
|
import { LiveConnectorsRunSummary } from './live-connectors-runner.js';
|
|
16
|
-
import {
|
|
14
|
+
import { readMemoryGovernanceRunArtifact } from './maintenance/memory-governance.js';
|
|
15
|
+
import { W as WearablesService, c as MeetingsListResult, b as MeetingsGetResult, a as MeetingsDayBuildSummary } from './service-DT-pJyda.js';
|
|
16
|
+
import { AnomalyDetectorResult } from './recall-audit-anomaly.js';
|
|
17
17
|
import { WearablesMeetingsScope } from './access-wearables-meetings-surface.js';
|
|
18
|
-
import { S as ScopeProfileLayerResolution, a as ScopeProfilePromotionResolution, R as ResolvedScopeProfilePlan } from './scope-profiles-BBQsXuyj.js';
|
|
19
|
-
import { LastRecallSnapshot } from './recall-state.js';
|
|
20
|
-
import { RecallContextComposition } from './recall-context-composition.js';
|
|
21
18
|
import { GraphSnapshotRequest, GraphSnapshotResponse } from './graph-snapshot.js';
|
|
19
|
+
import { S as ScopeProfileLayerResolution, a as ScopeProfilePromotionResolution, R as ResolvedScopeProfilePlan } from './scope-profiles-DICK7GtN.js';
|
|
20
|
+
import { RecallContextComposition } from './recall-context-composition.js';
|
|
21
|
+
import { LastRecallSnapshot } from './recall-state.js';
|
|
22
22
|
import { TrustZoneStoreStatus, TrustZoneName, TrustZoneRecordKind, TrustZoneSourceClass, TrustZoneProvenanceScore, TrustZonePromotionResult, TrustZoneDemoSeedResult } from './trust-zones.js';
|
|
23
|
-
import { RecallXraySnapshot } from './recall-xray.js';
|
|
24
|
-
import { LcmMessagePartInput, MessagePartSourceFormat } from './message-parts/index.js';
|
|
25
|
-
import { LocalLlmClient } from './local-llm.js';
|
|
26
23
|
import { FallbackLlmClient } from './fallback-llm.js';
|
|
24
|
+
import { LocalLlmClient } from './local-llm.js';
|
|
25
|
+
import { z } from 'zod';
|
|
26
|
+
import { OfflineSyncManifestStreamResponse } from './access-offline-manifest.js';
|
|
27
|
+
import { ActionConfidenceInput, ActionConfidenceResult } from './action-confidence.js';
|
|
28
|
+
import { CapsuleListEntry } from './capsule-cli.js';
|
|
27
29
|
import { S as SemanticDedupLookup } from './semantic-TddhF0y7.js';
|
|
28
30
|
import { MemoryOutcomeKind, RecordMemoryOutcomeResult } from './memory-worth-outcomes.js';
|
|
29
|
-
import {
|
|
30
|
-
import { ExportCapsuleOptions, ExportCapsuleResult } from './transfer/capsule-export.js';
|
|
31
|
-
import { CapsuleListEntry } from './capsule-cli.js';
|
|
31
|
+
import { LcmMessagePartInput, MessagePartSourceFormat } from './message-parts/index.js';
|
|
32
32
|
import { OfflineSyncFileState, OfflineSyncSnapshot, OfflineSyncFileRecord, OfflineSyncFileContentChunk, OfflineSyncApplyFileContentChunkResult, OfflineSyncApplyChangesetResult } from './offline-sync.js';
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
33
|
+
import { RecallXraySnapshot } from './recall-xray.js';
|
|
34
|
+
import { withHeldFileLock } from './utils/serialize-mutations.js';
|
|
35
|
+
import { ExportCapsuleOptions, ExportCapsuleResult } from './transfer/capsule-export.js';
|
|
36
|
+
import { ImportCapsuleOptions, ImportCapsuleResult } from './transfer/capsule-import.js';
|
|
35
37
|
import './access-errors.js';
|
|
36
38
|
|
|
37
39
|
/**
|
|
@@ -421,6 +423,66 @@ interface ConsoleStateSnapshot {
|
|
|
421
423
|
errors: string[];
|
|
422
424
|
}
|
|
423
425
|
|
|
426
|
+
/**
|
|
427
|
+
* Architecture-card surface contract + handler (issue #1548 Track A PR 3).
|
|
428
|
+
*
|
|
429
|
+
* Mirrors the decision-surfaces pattern (PR 2): one shared implementation
|
|
430
|
+
* behind the MCP, HTTP, and CLI surfaces. All three transports dispatch
|
|
431
|
+
* through the `coding_architecture` boundary operation, which calls
|
|
432
|
+
* {@link handleCodingArchitecture} via the service delegate.
|
|
433
|
+
*
|
|
434
|
+
* Gate (rule 39): `codingKnowledge.enabled + architectureCard + coding
|
|
435
|
+
* context` — one predicate, identical on every surface. The tools/list
|
|
436
|
+
* visibility gate checks conditions 1–2 only (config-level).
|
|
437
|
+
*
|
|
438
|
+
* Persistence (rule 43): the card is written through the storage
|
|
439
|
+
* manager's normal persist pipeline (writeMemory for the initial card,
|
|
440
|
+
* updateMemory for refreshes) so catalog recording + reindex fire. No
|
|
441
|
+
* direct `fs` writes of memory content. Each refresh snapshots the
|
|
442
|
+
* prior content via page-versioning before overwriting (rule 25 —
|
|
443
|
+
* preserve the old before the new is ready).
|
|
444
|
+
*
|
|
445
|
+
* Subcommands:
|
|
446
|
+
* - `get`: return the current architecture card (or not-found).
|
|
447
|
+
* - `refresh`: build a fresh card from the repo, persist it, and
|
|
448
|
+
* snapshot the prior version.
|
|
449
|
+
*/
|
|
450
|
+
|
|
451
|
+
declare const ARCHITECTURE_SUBCOMMANDS: readonly ["get", "refresh"];
|
|
452
|
+
type ArchitectureSubcommand = (typeof ARCHITECTURE_SUBCOMMANDS)[number];
|
|
453
|
+
/** Canonical surface request — one shape for all three transports. */
|
|
454
|
+
interface ArchitectureSurfaceRequest {
|
|
455
|
+
subcommand: ArchitectureSubcommand;
|
|
456
|
+
sessionKey?: string;
|
|
457
|
+
namespace?: string;
|
|
458
|
+
}
|
|
459
|
+
/** Surface response — discriminated union on `subcommand`. */
|
|
460
|
+
type ArchitectureSurfaceResponse = {
|
|
461
|
+
subcommand: "get";
|
|
462
|
+
found: boolean;
|
|
463
|
+
card?: {
|
|
464
|
+
content: string;
|
|
465
|
+
generatedAt: string;
|
|
466
|
+
byteSize: number;
|
|
467
|
+
truncated: boolean;
|
|
468
|
+
};
|
|
469
|
+
} | {
|
|
470
|
+
subcommand: "refresh";
|
|
471
|
+
refreshed: boolean;
|
|
472
|
+
memoryId: string;
|
|
473
|
+
byteSize: number;
|
|
474
|
+
truncated: boolean;
|
|
475
|
+
buildCode?: string;
|
|
476
|
+
/**
|
|
477
|
+
* Present when the refresh was tombstone-blocked (#1579): the new card
|
|
478
|
+
* content landed pending_review (no active overwrite). Callers/UI surface
|
|
479
|
+
* this so operators see why the active card didn't update (#1645).
|
|
480
|
+
*/
|
|
481
|
+
blockedReason?: string;
|
|
482
|
+
/** The tombstone id that blocked the write, when `blockedReason` is set. */
|
|
483
|
+
blockedBy?: string;
|
|
484
|
+
};
|
|
485
|
+
|
|
424
486
|
/**
|
|
425
487
|
* Decision-record surface contract + handler (issue #1548 Track A PR 2).
|
|
426
488
|
*
|
|
@@ -496,66 +558,6 @@ interface DecisionSurfaceRecord {
|
|
|
496
558
|
supersedes?: string;
|
|
497
559
|
}
|
|
498
560
|
|
|
499
|
-
/**
|
|
500
|
-
* Architecture-card surface contract + handler (issue #1548 Track A PR 3).
|
|
501
|
-
*
|
|
502
|
-
* Mirrors the decision-surfaces pattern (PR 2): one shared implementation
|
|
503
|
-
* behind the MCP, HTTP, and CLI surfaces. All three transports dispatch
|
|
504
|
-
* through the `coding_architecture` boundary operation, which calls
|
|
505
|
-
* {@link handleCodingArchitecture} via the service delegate.
|
|
506
|
-
*
|
|
507
|
-
* Gate (rule 39): `codingKnowledge.enabled + architectureCard + coding
|
|
508
|
-
* context` — one predicate, identical on every surface. The tools/list
|
|
509
|
-
* visibility gate checks conditions 1–2 only (config-level).
|
|
510
|
-
*
|
|
511
|
-
* Persistence (rule 43): the card is written through the storage
|
|
512
|
-
* manager's normal persist pipeline (writeMemory for the initial card,
|
|
513
|
-
* updateMemory for refreshes) so catalog recording + reindex fire. No
|
|
514
|
-
* direct `fs` writes of memory content. Each refresh snapshots the
|
|
515
|
-
* prior content via page-versioning before overwriting (rule 25 —
|
|
516
|
-
* preserve the old before the new is ready).
|
|
517
|
-
*
|
|
518
|
-
* Subcommands:
|
|
519
|
-
* - `get`: return the current architecture card (or not-found).
|
|
520
|
-
* - `refresh`: build a fresh card from the repo, persist it, and
|
|
521
|
-
* snapshot the prior version.
|
|
522
|
-
*/
|
|
523
|
-
|
|
524
|
-
declare const ARCHITECTURE_SUBCOMMANDS: readonly ["get", "refresh"];
|
|
525
|
-
type ArchitectureSubcommand = (typeof ARCHITECTURE_SUBCOMMANDS)[number];
|
|
526
|
-
/** Canonical surface request — one shape for all three transports. */
|
|
527
|
-
interface ArchitectureSurfaceRequest {
|
|
528
|
-
subcommand: ArchitectureSubcommand;
|
|
529
|
-
sessionKey?: string;
|
|
530
|
-
namespace?: string;
|
|
531
|
-
}
|
|
532
|
-
/** Surface response — discriminated union on `subcommand`. */
|
|
533
|
-
type ArchitectureSurfaceResponse = {
|
|
534
|
-
subcommand: "get";
|
|
535
|
-
found: boolean;
|
|
536
|
-
card?: {
|
|
537
|
-
content: string;
|
|
538
|
-
generatedAt: string;
|
|
539
|
-
byteSize: number;
|
|
540
|
-
truncated: boolean;
|
|
541
|
-
};
|
|
542
|
-
} | {
|
|
543
|
-
subcommand: "refresh";
|
|
544
|
-
refreshed: boolean;
|
|
545
|
-
memoryId: string;
|
|
546
|
-
byteSize: number;
|
|
547
|
-
truncated: boolean;
|
|
548
|
-
buildCode?: string;
|
|
549
|
-
/**
|
|
550
|
-
* Present when the refresh was tombstone-blocked (#1579): the new card
|
|
551
|
-
* content landed pending_review (no active overwrite). Callers/UI surface
|
|
552
|
-
* this so operators see why the active card didn't update (#1645).
|
|
553
|
-
*/
|
|
554
|
-
blockedReason?: string;
|
|
555
|
-
/** The tombstone id that blocked the write, when `blockedReason` is set. */
|
|
556
|
-
blockedBy?: string;
|
|
557
|
-
};
|
|
558
|
-
|
|
559
561
|
/**
|
|
560
562
|
* Codegraph parity surface contract + handler (issue #1554).
|
|
561
563
|
*
|
|
@@ -919,6 +921,1230 @@ interface ExtractionForceFlushDelegate {
|
|
|
919
921
|
}
|
|
920
922
|
declare function delegateExtractionForceFlush(delegate: ExtractionForceFlushDelegate, request: EngramAccessExtractionForceFlushRequest): Promise<EngramAccessExtractionForceFlushResponse>;
|
|
921
923
|
|
|
924
|
+
type SupportPassportErrorCode = "card_data_invalid" | "card_not_found" | "consent_required" | "feature_disabled" | "forbidden" | "grant_expired" | "grant_gone" | "grant_not_found" | "grant_stale" | "invalid_card_status" | "invalid_input" | "model_output_invalid" | "provider_unavailable" | "rate_limited" | "revision_conflict" | "state_conflict" | "storage_conflict";
|
|
925
|
+
declare class SupportPassportError extends Error {
|
|
926
|
+
readonly code: SupportPassportErrorCode;
|
|
927
|
+
readonly status: number;
|
|
928
|
+
constructor(code: SupportPassportErrorCode, message: string, status: number);
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
declare const SUPPORT_PASSPORT_NOT_IN_GUIDE_ANSWER = "That is not covered in this person's support guide.";
|
|
932
|
+
declare const SUPPORT_PASSPORT_DRAFT_MAX_MEMORIES = 20;
|
|
933
|
+
declare const SUPPORT_PASSPORT_DRAFT_MAX_CONTENT_CHARACTERS = 100000;
|
|
934
|
+
declare const SupportPassportDraftCardSchema: z.ZodEffects<z.ZodObject<{
|
|
935
|
+
title: z.ZodEffects<z.ZodString, string, string>;
|
|
936
|
+
statement: z.ZodString;
|
|
937
|
+
category: z.ZodEnum<["communication", "environment", "transitions", "sensory", "regulation", "interests", "other"]>;
|
|
938
|
+
sourceMemoryIds: z.ZodArray<z.ZodString, "many">;
|
|
939
|
+
}, "strict", z.ZodTypeAny, {
|
|
940
|
+
title: string;
|
|
941
|
+
sourceMemoryIds: string[];
|
|
942
|
+
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
943
|
+
statement: string;
|
|
944
|
+
}, {
|
|
945
|
+
title: string;
|
|
946
|
+
sourceMemoryIds: string[];
|
|
947
|
+
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
948
|
+
statement: string;
|
|
949
|
+
}>, {
|
|
950
|
+
title: string;
|
|
951
|
+
sourceMemoryIds: string[];
|
|
952
|
+
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
953
|
+
statement: string;
|
|
954
|
+
}, {
|
|
955
|
+
title: string;
|
|
956
|
+
sourceMemoryIds: string[];
|
|
957
|
+
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
958
|
+
statement: string;
|
|
959
|
+
}>;
|
|
960
|
+
declare const SupportPassportDraftOutputSchema: z.ZodObject<{
|
|
961
|
+
cards: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
962
|
+
title: z.ZodEffects<z.ZodString, string, string>;
|
|
963
|
+
statement: z.ZodString;
|
|
964
|
+
category: z.ZodEnum<["communication", "environment", "transitions", "sensory", "regulation", "interests", "other"]>;
|
|
965
|
+
sourceMemoryIds: z.ZodArray<z.ZodString, "many">;
|
|
966
|
+
}, "strict", z.ZodTypeAny, {
|
|
967
|
+
title: string;
|
|
968
|
+
sourceMemoryIds: string[];
|
|
969
|
+
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
970
|
+
statement: string;
|
|
971
|
+
}, {
|
|
972
|
+
title: string;
|
|
973
|
+
sourceMemoryIds: string[];
|
|
974
|
+
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
975
|
+
statement: string;
|
|
976
|
+
}>, {
|
|
977
|
+
title: string;
|
|
978
|
+
sourceMemoryIds: string[];
|
|
979
|
+
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
980
|
+
statement: string;
|
|
981
|
+
}, {
|
|
982
|
+
title: string;
|
|
983
|
+
sourceMemoryIds: string[];
|
|
984
|
+
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
985
|
+
statement: string;
|
|
986
|
+
}>, "many">;
|
|
987
|
+
}, "strict", z.ZodTypeAny, {
|
|
988
|
+
cards: {
|
|
989
|
+
title: string;
|
|
990
|
+
sourceMemoryIds: string[];
|
|
991
|
+
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
992
|
+
statement: string;
|
|
993
|
+
}[];
|
|
994
|
+
}, {
|
|
995
|
+
cards: {
|
|
996
|
+
title: string;
|
|
997
|
+
sourceMemoryIds: string[];
|
|
998
|
+
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
999
|
+
statement: string;
|
|
1000
|
+
}[];
|
|
1001
|
+
}>;
|
|
1002
|
+
declare const SupportPassportDraftModelInputSchema: z.ZodEffects<z.ZodObject<{
|
|
1003
|
+
consent: z.ZodLiteral<true>;
|
|
1004
|
+
memories: z.ZodArray<z.ZodObject<{
|
|
1005
|
+
memoryId: z.ZodString;
|
|
1006
|
+
content: z.ZodString;
|
|
1007
|
+
}, "strict", z.ZodTypeAny, {
|
|
1008
|
+
content: string;
|
|
1009
|
+
memoryId: string;
|
|
1010
|
+
}, {
|
|
1011
|
+
content: string;
|
|
1012
|
+
memoryId: string;
|
|
1013
|
+
}>, "many">;
|
|
1014
|
+
}, "strict", z.ZodTypeAny, {
|
|
1015
|
+
memories: {
|
|
1016
|
+
content: string;
|
|
1017
|
+
memoryId: string;
|
|
1018
|
+
}[];
|
|
1019
|
+
consent: true;
|
|
1020
|
+
}, {
|
|
1021
|
+
memories: {
|
|
1022
|
+
content: string;
|
|
1023
|
+
memoryId: string;
|
|
1024
|
+
}[];
|
|
1025
|
+
consent: true;
|
|
1026
|
+
}>, {
|
|
1027
|
+
memories: {
|
|
1028
|
+
content: string;
|
|
1029
|
+
memoryId: string;
|
|
1030
|
+
}[];
|
|
1031
|
+
consent: true;
|
|
1032
|
+
}, {
|
|
1033
|
+
memories: {
|
|
1034
|
+
content: string;
|
|
1035
|
+
memoryId: string;
|
|
1036
|
+
}[];
|
|
1037
|
+
consent: true;
|
|
1038
|
+
}>;
|
|
1039
|
+
declare const SupportPassportAnswerOutputSchema: z.ZodEffects<z.ZodObject<{
|
|
1040
|
+
answer: z.ZodString;
|
|
1041
|
+
citedCardIds: z.ZodArray<z.ZodString, "many">;
|
|
1042
|
+
coverage: z.ZodEnum<["grounded", "not_in_guide"]>;
|
|
1043
|
+
}, "strict", z.ZodTypeAny, {
|
|
1044
|
+
answer: string;
|
|
1045
|
+
coverage: "grounded" | "not_in_guide";
|
|
1046
|
+
citedCardIds: string[];
|
|
1047
|
+
}, {
|
|
1048
|
+
answer: string;
|
|
1049
|
+
coverage: "grounded" | "not_in_guide";
|
|
1050
|
+
citedCardIds: string[];
|
|
1051
|
+
}>, {
|
|
1052
|
+
answer: string;
|
|
1053
|
+
coverage: "grounded" | "not_in_guide";
|
|
1054
|
+
citedCardIds: string[];
|
|
1055
|
+
}, {
|
|
1056
|
+
answer: string;
|
|
1057
|
+
coverage: "grounded" | "not_in_guide";
|
|
1058
|
+
citedCardIds: string[];
|
|
1059
|
+
}>;
|
|
1060
|
+
declare const SupportPassportAnswerModelInputSchema: z.ZodObject<{
|
|
1061
|
+
guide: z.ZodObject<{
|
|
1062
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
1063
|
+
grantId: z.ZodEffects<z.ZodString, string, string>;
|
|
1064
|
+
expiresAt: z.ZodEffects<z.ZodString, string, string>;
|
|
1065
|
+
updatedAt: z.ZodEffects<z.ZodString, string, string>;
|
|
1066
|
+
cards: z.ZodArray<z.ZodObject<{
|
|
1067
|
+
cardId: z.ZodString;
|
|
1068
|
+
title: z.ZodString;
|
|
1069
|
+
statement: z.ZodString;
|
|
1070
|
+
category: z.ZodEnum<["communication", "environment", "transitions", "sensory", "regulation", "interests", "other"]>;
|
|
1071
|
+
updatedAt: z.ZodEffects<z.ZodString, string, string>;
|
|
1072
|
+
}, "strict", z.ZodTypeAny, {
|
|
1073
|
+
title: string;
|
|
1074
|
+
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
1075
|
+
updatedAt: string;
|
|
1076
|
+
cardId: string;
|
|
1077
|
+
statement: string;
|
|
1078
|
+
}, {
|
|
1079
|
+
title: string;
|
|
1080
|
+
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
1081
|
+
updatedAt: string;
|
|
1082
|
+
cardId: string;
|
|
1083
|
+
statement: string;
|
|
1084
|
+
}>, "many">;
|
|
1085
|
+
}, "strict", z.ZodTypeAny, {
|
|
1086
|
+
schemaVersion: 1;
|
|
1087
|
+
expiresAt: string;
|
|
1088
|
+
updatedAt: string;
|
|
1089
|
+
grantId: string;
|
|
1090
|
+
cards: {
|
|
1091
|
+
title: string;
|
|
1092
|
+
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
1093
|
+
updatedAt: string;
|
|
1094
|
+
cardId: string;
|
|
1095
|
+
statement: string;
|
|
1096
|
+
}[];
|
|
1097
|
+
}, {
|
|
1098
|
+
schemaVersion: 1;
|
|
1099
|
+
expiresAt: string;
|
|
1100
|
+
updatedAt: string;
|
|
1101
|
+
grantId: string;
|
|
1102
|
+
cards: {
|
|
1103
|
+
title: string;
|
|
1104
|
+
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
1105
|
+
updatedAt: string;
|
|
1106
|
+
cardId: string;
|
|
1107
|
+
statement: string;
|
|
1108
|
+
}[];
|
|
1109
|
+
}>;
|
|
1110
|
+
question: z.ZodString;
|
|
1111
|
+
}, "strict", z.ZodTypeAny, {
|
|
1112
|
+
question: string;
|
|
1113
|
+
guide: {
|
|
1114
|
+
schemaVersion: 1;
|
|
1115
|
+
expiresAt: string;
|
|
1116
|
+
updatedAt: string;
|
|
1117
|
+
grantId: string;
|
|
1118
|
+
cards: {
|
|
1119
|
+
title: string;
|
|
1120
|
+
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
1121
|
+
updatedAt: string;
|
|
1122
|
+
cardId: string;
|
|
1123
|
+
statement: string;
|
|
1124
|
+
}[];
|
|
1125
|
+
};
|
|
1126
|
+
}, {
|
|
1127
|
+
question: string;
|
|
1128
|
+
guide: {
|
|
1129
|
+
schemaVersion: 1;
|
|
1130
|
+
expiresAt: string;
|
|
1131
|
+
updatedAt: string;
|
|
1132
|
+
grantId: string;
|
|
1133
|
+
cards: {
|
|
1134
|
+
title: string;
|
|
1135
|
+
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
1136
|
+
updatedAt: string;
|
|
1137
|
+
cardId: string;
|
|
1138
|
+
statement: string;
|
|
1139
|
+
}[];
|
|
1140
|
+
};
|
|
1141
|
+
}>;
|
|
1142
|
+
type SupportPassportDraftCard = z.infer<typeof SupportPassportDraftCardSchema>;
|
|
1143
|
+
type SupportPassportDraftModelInput = Omit<z.input<typeof SupportPassportDraftModelInputSchema>, "consent"> & {
|
|
1144
|
+
consent: boolean;
|
|
1145
|
+
};
|
|
1146
|
+
type SupportPassportAnswerOutput = z.infer<typeof SupportPassportAnswerOutputSchema>;
|
|
1147
|
+
type SupportPassportAnswerModelInput = z.input<typeof SupportPassportAnswerModelInputSchema>;
|
|
1148
|
+
|
|
1149
|
+
type SupportPassportModelMessage = {
|
|
1150
|
+
role: "system" | "user" | "assistant";
|
|
1151
|
+
content: string;
|
|
1152
|
+
};
|
|
1153
|
+
type SupportPassportModelRouteKind = "local" | "direct" | "gateway";
|
|
1154
|
+
interface SupportPassportJsonSchema {
|
|
1155
|
+
name: string;
|
|
1156
|
+
schema: Record<string, unknown>;
|
|
1157
|
+
}
|
|
1158
|
+
interface SupportPassportModelUsage {
|
|
1159
|
+
inputTokens?: number;
|
|
1160
|
+
outputTokens?: number;
|
|
1161
|
+
totalTokens?: number;
|
|
1162
|
+
}
|
|
1163
|
+
interface SupportPassportModelRouteResult {
|
|
1164
|
+
content: string;
|
|
1165
|
+
modelUsed: string;
|
|
1166
|
+
usage?: SupportPassportModelUsage;
|
|
1167
|
+
}
|
|
1168
|
+
interface SupportPassportModelRoute {
|
|
1169
|
+
kind: SupportPassportModelRouteKind;
|
|
1170
|
+
timeoutMs?: number;
|
|
1171
|
+
invoke(messages: SupportPassportModelMessage[], options: {
|
|
1172
|
+
temperature: number;
|
|
1173
|
+
maxTokens: number;
|
|
1174
|
+
timeoutMs: number;
|
|
1175
|
+
signal?: AbortSignal;
|
|
1176
|
+
operation: string;
|
|
1177
|
+
jsonSchema: SupportPassportJsonSchema;
|
|
1178
|
+
acceptResponse?: (response: SupportPassportModelRouteResult) => boolean;
|
|
1179
|
+
}): Promise<SupportPassportModelRouteResult | null>;
|
|
1180
|
+
}
|
|
1181
|
+
interface SupportPassportModelResultMetadata {
|
|
1182
|
+
modelUsed: string;
|
|
1183
|
+
route: SupportPassportModelRouteKind;
|
|
1184
|
+
latencyMs: number;
|
|
1185
|
+
usage?: SupportPassportModelUsage;
|
|
1186
|
+
}
|
|
1187
|
+
interface SupportPassportDraftResult extends SupportPassportModelResultMetadata {
|
|
1188
|
+
cards: SupportPassportDraftCard[];
|
|
1189
|
+
}
|
|
1190
|
+
interface SupportPassportAnswerResult extends SupportPassportModelResultMetadata, SupportPassportAnswerOutput {
|
|
1191
|
+
}
|
|
1192
|
+
interface SupportPassportModelAdapterOptions {
|
|
1193
|
+
routes: SupportPassportModelRoute[];
|
|
1194
|
+
timeoutMs?: number;
|
|
1195
|
+
nowMs?: () => number;
|
|
1196
|
+
}
|
|
1197
|
+
interface SupportPassportModelFailureMetadata extends Omit<SupportPassportModelResultMetadata, "route"> {
|
|
1198
|
+
route: SupportPassportModelRouteKind | "unavailable";
|
|
1199
|
+
errorClass: string;
|
|
1200
|
+
}
|
|
1201
|
+
declare class SupportPassportModelCallError extends SupportPassportError {
|
|
1202
|
+
readonly metadata: SupportPassportModelFailureMetadata;
|
|
1203
|
+
constructor(code: "model_output_invalid" | "provider_unavailable", message: string, status: number, metadata: SupportPassportModelFailureMetadata);
|
|
1204
|
+
}
|
|
1205
|
+
type ModelRoutePlanConfig = Pick<PluginConfig, "modelSource" | "localLlmEnabled" | "localLlmFallback" | "openaiApiKey">;
|
|
1206
|
+
interface SupportPassportModelClients {
|
|
1207
|
+
localLlm?: LocalLlmClient;
|
|
1208
|
+
gatewayRoute?: SupportPassportModelRoute;
|
|
1209
|
+
directLlm?: FallbackLlmClient;
|
|
1210
|
+
}
|
|
1211
|
+
/**
|
|
1212
|
+
* Rebuild the route's synchronous output check after a provider-neutral model
|
|
1213
|
+
* request crosses a process boundary. The check uses the same schemas and
|
|
1214
|
+
* selected IDs as the in-process adapter.
|
|
1215
|
+
*/
|
|
1216
|
+
declare function acceptsSupportPassportModelResponse(operation: string, messages: SupportPassportModelMessage[], content: string): boolean;
|
|
1217
|
+
declare function resolveSupportPassportModelRoutePlan(config: ModelRoutePlanConfig, availability?: {
|
|
1218
|
+
gateway: boolean;
|
|
1219
|
+
}): SupportPassportModelRouteKind[];
|
|
1220
|
+
declare function buildSupportPassportDirectGatewayConfig(config: Pick<PluginConfig, "openaiApiKey" | "openaiBaseUrl" | "model">): GatewayConfig | undefined;
|
|
1221
|
+
declare function createSupportPassportModelAdapter(config: PluginConfig, clients?: SupportPassportModelClients): SupportPassportModelAdapter;
|
|
1222
|
+
declare class SupportPassportModelAdapter {
|
|
1223
|
+
private readonly routes;
|
|
1224
|
+
private readonly timeoutMs;
|
|
1225
|
+
private readonly nowMs;
|
|
1226
|
+
constructor(options: SupportPassportModelAdapterOptions);
|
|
1227
|
+
draftCards(input: SupportPassportDraftModelInput, signal?: AbortSignal): Promise<SupportPassportDraftResult>;
|
|
1228
|
+
answerQuestion(input: SupportPassportAnswerModelInput, signal?: AbortSignal): Promise<SupportPassportAnswerResult>;
|
|
1229
|
+
private runStructured;
|
|
1230
|
+
private invokeRoute;
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1233
|
+
declare const SUPPORT_PASSPORT_CARD_CATEGORIES: readonly ["communication", "environment", "transitions", "sensory", "regulation", "interests", "other"];
|
|
1234
|
+
declare const SUPPORT_PASSPORT_CARD_STATUSES: readonly ["pending_review", "active", "rejected", "superseded", "archived"];
|
|
1235
|
+
declare const SupportPassportCardCategorySchema: z.ZodEnum<["communication", "environment", "transitions", "sensory", "regulation", "interests", "other"]>;
|
|
1236
|
+
declare const SupportPassportCardStatusSchema: z.ZodEnum<["pending_review", "active", "rejected", "superseded", "archived"]>;
|
|
1237
|
+
declare const SupportPassportCardTitleSchema: z.ZodEffects<z.ZodString, string, string>;
|
|
1238
|
+
declare const SupportPassportNamespaceSchema: z.ZodEffects<z.ZodString, string, string>;
|
|
1239
|
+
declare const SupportPassportMemoryIdSchema: z.ZodString;
|
|
1240
|
+
declare const SUPPORT_PASSPORT_SOURCE_MEMORY_ID_MAX_LENGTH = 512;
|
|
1241
|
+
declare const SupportPassportSourceMemoryIdSchema: z.ZodString;
|
|
1242
|
+
declare const SupportPassportCardSchema: z.ZodObject<{
|
|
1243
|
+
cardId: z.ZodString;
|
|
1244
|
+
title: z.ZodEffects<z.ZodString, string, string>;
|
|
1245
|
+
statement: z.ZodString;
|
|
1246
|
+
category: z.ZodEnum<["communication", "environment", "transitions", "sensory", "regulation", "interests", "other"]>;
|
|
1247
|
+
status: z.ZodEnum<["pending_review", "active", "rejected", "superseded", "archived"]>;
|
|
1248
|
+
updatedAt: z.ZodEffects<z.ZodString, string, string>;
|
|
1249
|
+
reviewBy: z.ZodEffects<z.ZodString, string, string>;
|
|
1250
|
+
revision: z.ZodString;
|
|
1251
|
+
}, "strict", z.ZodTypeAny, {
|
|
1252
|
+
title: string;
|
|
1253
|
+
status: "active" | "pending_review" | "rejected" | "superseded" | "archived";
|
|
1254
|
+
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
1255
|
+
updatedAt: string;
|
|
1256
|
+
cardId: string;
|
|
1257
|
+
statement: string;
|
|
1258
|
+
reviewBy: string;
|
|
1259
|
+
revision: string;
|
|
1260
|
+
}, {
|
|
1261
|
+
title: string;
|
|
1262
|
+
status: "active" | "pending_review" | "rejected" | "superseded" | "archived";
|
|
1263
|
+
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
1264
|
+
updatedAt: string;
|
|
1265
|
+
cardId: string;
|
|
1266
|
+
statement: string;
|
|
1267
|
+
reviewBy: string;
|
|
1268
|
+
revision: string;
|
|
1269
|
+
}>;
|
|
1270
|
+
declare const SupportPassportCardListSchema: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
1271
|
+
cardId: z.ZodString;
|
|
1272
|
+
title: z.ZodEffects<z.ZodString, string, string>;
|
|
1273
|
+
statement: z.ZodString;
|
|
1274
|
+
category: z.ZodEnum<["communication", "environment", "transitions", "sensory", "regulation", "interests", "other"]>;
|
|
1275
|
+
status: z.ZodEnum<["pending_review", "active", "rejected", "superseded", "archived"]>;
|
|
1276
|
+
updatedAt: z.ZodEffects<z.ZodString, string, string>;
|
|
1277
|
+
reviewBy: z.ZodEffects<z.ZodString, string, string>;
|
|
1278
|
+
revision: z.ZodString;
|
|
1279
|
+
}, "strict", z.ZodTypeAny, {
|
|
1280
|
+
title: string;
|
|
1281
|
+
status: "active" | "pending_review" | "rejected" | "superseded" | "archived";
|
|
1282
|
+
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
1283
|
+
updatedAt: string;
|
|
1284
|
+
cardId: string;
|
|
1285
|
+
statement: string;
|
|
1286
|
+
reviewBy: string;
|
|
1287
|
+
revision: string;
|
|
1288
|
+
}, {
|
|
1289
|
+
title: string;
|
|
1290
|
+
status: "active" | "pending_review" | "rejected" | "superseded" | "archived";
|
|
1291
|
+
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
1292
|
+
updatedAt: string;
|
|
1293
|
+
cardId: string;
|
|
1294
|
+
statement: string;
|
|
1295
|
+
reviewBy: string;
|
|
1296
|
+
revision: string;
|
|
1297
|
+
}>, "many">, {
|
|
1298
|
+
title: string;
|
|
1299
|
+
status: "active" | "pending_review" | "rejected" | "superseded" | "archived";
|
|
1300
|
+
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
1301
|
+
updatedAt: string;
|
|
1302
|
+
cardId: string;
|
|
1303
|
+
statement: string;
|
|
1304
|
+
reviewBy: string;
|
|
1305
|
+
revision: string;
|
|
1306
|
+
}[], {
|
|
1307
|
+
title: string;
|
|
1308
|
+
status: "active" | "pending_review" | "rejected" | "superseded" | "archived";
|
|
1309
|
+
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
1310
|
+
updatedAt: string;
|
|
1311
|
+
cardId: string;
|
|
1312
|
+
statement: string;
|
|
1313
|
+
reviewBy: string;
|
|
1314
|
+
revision: string;
|
|
1315
|
+
}[]>;
|
|
1316
|
+
declare const SupportPassportListCardsInputSchema: z.ZodObject<{
|
|
1317
|
+
principal: z.ZodString;
|
|
1318
|
+
}, "strict", z.ZodTypeAny, {
|
|
1319
|
+
principal: string;
|
|
1320
|
+
}, {
|
|
1321
|
+
principal: string;
|
|
1322
|
+
}>;
|
|
1323
|
+
declare const SupportPassportManualDraftInputSchema: z.ZodObject<{
|
|
1324
|
+
principal: z.ZodString;
|
|
1325
|
+
title: z.ZodEffects<z.ZodString, string, string>;
|
|
1326
|
+
statement: z.ZodString;
|
|
1327
|
+
category: z.ZodEnum<["communication", "environment", "transitions", "sensory", "regulation", "interests", "other"]>;
|
|
1328
|
+
reviewBy: z.ZodEffects<z.ZodString, string, string>;
|
|
1329
|
+
}, "strict", z.ZodTypeAny, {
|
|
1330
|
+
title: string;
|
|
1331
|
+
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
1332
|
+
statement: string;
|
|
1333
|
+
reviewBy: string;
|
|
1334
|
+
principal: string;
|
|
1335
|
+
}, {
|
|
1336
|
+
title: string;
|
|
1337
|
+
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
1338
|
+
statement: string;
|
|
1339
|
+
reviewBy: string;
|
|
1340
|
+
principal: string;
|
|
1341
|
+
}>;
|
|
1342
|
+
declare const SupportPassportCardMutationInputSchema: z.ZodObject<{
|
|
1343
|
+
principal: z.ZodString;
|
|
1344
|
+
cardId: z.ZodString;
|
|
1345
|
+
expectedRevision: z.ZodString;
|
|
1346
|
+
reasonCode: z.ZodOptional<z.ZodString>;
|
|
1347
|
+
}, "strict", z.ZodTypeAny, {
|
|
1348
|
+
cardId: string;
|
|
1349
|
+
principal: string;
|
|
1350
|
+
expectedRevision: string;
|
|
1351
|
+
reasonCode?: string | undefined;
|
|
1352
|
+
}, {
|
|
1353
|
+
cardId: string;
|
|
1354
|
+
principal: string;
|
|
1355
|
+
expectedRevision: string;
|
|
1356
|
+
reasonCode?: string | undefined;
|
|
1357
|
+
}>;
|
|
1358
|
+
declare const SupportPassportReplaceCardInputSchema: z.ZodObject<{
|
|
1359
|
+
principal: z.ZodString;
|
|
1360
|
+
cardId: z.ZodString;
|
|
1361
|
+
expectedRevision: z.ZodString;
|
|
1362
|
+
reasonCode: z.ZodOptional<z.ZodString>;
|
|
1363
|
+
} & {
|
|
1364
|
+
title: z.ZodEffects<z.ZodString, string, string>;
|
|
1365
|
+
statement: z.ZodString;
|
|
1366
|
+
category: z.ZodEnum<["communication", "environment", "transitions", "sensory", "regulation", "interests", "other"]>;
|
|
1367
|
+
reviewBy: z.ZodEffects<z.ZodString, string, string>;
|
|
1368
|
+
}, "strict", z.ZodTypeAny, {
|
|
1369
|
+
title: string;
|
|
1370
|
+
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
1371
|
+
cardId: string;
|
|
1372
|
+
statement: string;
|
|
1373
|
+
reviewBy: string;
|
|
1374
|
+
principal: string;
|
|
1375
|
+
expectedRevision: string;
|
|
1376
|
+
reasonCode?: string | undefined;
|
|
1377
|
+
}, {
|
|
1378
|
+
title: string;
|
|
1379
|
+
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
1380
|
+
cardId: string;
|
|
1381
|
+
statement: string;
|
|
1382
|
+
reviewBy: string;
|
|
1383
|
+
principal: string;
|
|
1384
|
+
expectedRevision: string;
|
|
1385
|
+
reasonCode?: string | undefined;
|
|
1386
|
+
}>;
|
|
1387
|
+
type SupportPassportCard = z.infer<typeof SupportPassportCardSchema>;
|
|
1388
|
+
type SupportPassportCardCategory = z.infer<typeof SupportPassportCardCategorySchema>;
|
|
1389
|
+
type SupportPassportCardStatus = z.infer<typeof SupportPassportCardStatusSchema>;
|
|
1390
|
+
type SupportPassportManualDraftInput = z.input<typeof SupportPassportManualDraftInputSchema>;
|
|
1391
|
+
type SupportPassportCardMutationInput = z.input<typeof SupportPassportCardMutationInputSchema>;
|
|
1392
|
+
type SupportPassportReplaceCardInput = z.input<typeof SupportPassportReplaceCardInputSchema>;
|
|
1393
|
+
type RevisionFields = Omit<SupportPassportCard, "revision">;
|
|
1394
|
+
declare function computeSupportPassportCardRevision(fields: RevisionFields): string;
|
|
1395
|
+
|
|
1396
|
+
interface SupportPassportOwnerScope {
|
|
1397
|
+
principal: string;
|
|
1398
|
+
namespace: string;
|
|
1399
|
+
storage: StorageManager;
|
|
1400
|
+
}
|
|
1401
|
+
interface SupportPassportCardServiceDependencies {
|
|
1402
|
+
resolveOwner(principal: string): Promise<SupportPassportOwnerScope>;
|
|
1403
|
+
now?: () => Date;
|
|
1404
|
+
}
|
|
1405
|
+
|
|
1406
|
+
declare const SupportPassportGrantCardRefSchema: z.ZodObject<{
|
|
1407
|
+
cardId: z.ZodString;
|
|
1408
|
+
revision: z.ZodString;
|
|
1409
|
+
}, "strict", z.ZodTypeAny, {
|
|
1410
|
+
cardId: string;
|
|
1411
|
+
revision: string;
|
|
1412
|
+
}, {
|
|
1413
|
+
cardId: string;
|
|
1414
|
+
revision: string;
|
|
1415
|
+
}>;
|
|
1416
|
+
declare const SupportPassportGrantStateSchema: z.ZodEffects<z.ZodObject<{
|
|
1417
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
1418
|
+
stateVersion: z.ZodNumber;
|
|
1419
|
+
grantId: z.ZodEffects<z.ZodString, string, string>;
|
|
1420
|
+
namespace: z.ZodEffects<z.ZodString, string, string>;
|
|
1421
|
+
principalHash: z.ZodString;
|
|
1422
|
+
ownerLockKey: z.ZodString;
|
|
1423
|
+
secretHash: z.ZodString;
|
|
1424
|
+
cards: z.ZodArray<z.ZodObject<{
|
|
1425
|
+
cardId: z.ZodString;
|
|
1426
|
+
revision: z.ZodString;
|
|
1427
|
+
}, "strict", z.ZodTypeAny, {
|
|
1428
|
+
cardId: string;
|
|
1429
|
+
revision: string;
|
|
1430
|
+
}, {
|
|
1431
|
+
cardId: string;
|
|
1432
|
+
revision: string;
|
|
1433
|
+
}>, "many">;
|
|
1434
|
+
createdAt: z.ZodEffects<z.ZodString, string, string>;
|
|
1435
|
+
expiresAt: z.ZodEffects<z.ZodString, string, string>;
|
|
1436
|
+
revokedAt: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1437
|
+
}, "strict", z.ZodTypeAny, {
|
|
1438
|
+
schemaVersion: 1;
|
|
1439
|
+
createdAt: string;
|
|
1440
|
+
expiresAt: string;
|
|
1441
|
+
namespace: string;
|
|
1442
|
+
stateVersion: number;
|
|
1443
|
+
grantId: string;
|
|
1444
|
+
principalHash: string;
|
|
1445
|
+
ownerLockKey: string;
|
|
1446
|
+
secretHash: string;
|
|
1447
|
+
cards: {
|
|
1448
|
+
cardId: string;
|
|
1449
|
+
revision: string;
|
|
1450
|
+
}[];
|
|
1451
|
+
revokedAt?: string | undefined;
|
|
1452
|
+
}, {
|
|
1453
|
+
schemaVersion: 1;
|
|
1454
|
+
createdAt: string;
|
|
1455
|
+
expiresAt: string;
|
|
1456
|
+
namespace: string;
|
|
1457
|
+
stateVersion: number;
|
|
1458
|
+
grantId: string;
|
|
1459
|
+
principalHash: string;
|
|
1460
|
+
ownerLockKey: string;
|
|
1461
|
+
secretHash: string;
|
|
1462
|
+
cards: {
|
|
1463
|
+
cardId: string;
|
|
1464
|
+
revision: string;
|
|
1465
|
+
}[];
|
|
1466
|
+
revokedAt?: string | undefined;
|
|
1467
|
+
}>, {
|
|
1468
|
+
schemaVersion: 1;
|
|
1469
|
+
createdAt: string;
|
|
1470
|
+
expiresAt: string;
|
|
1471
|
+
namespace: string;
|
|
1472
|
+
stateVersion: number;
|
|
1473
|
+
grantId: string;
|
|
1474
|
+
principalHash: string;
|
|
1475
|
+
ownerLockKey: string;
|
|
1476
|
+
secretHash: string;
|
|
1477
|
+
cards: {
|
|
1478
|
+
cardId: string;
|
|
1479
|
+
revision: string;
|
|
1480
|
+
}[];
|
|
1481
|
+
revokedAt?: string | undefined;
|
|
1482
|
+
}, {
|
|
1483
|
+
schemaVersion: 1;
|
|
1484
|
+
createdAt: string;
|
|
1485
|
+
expiresAt: string;
|
|
1486
|
+
namespace: string;
|
|
1487
|
+
stateVersion: number;
|
|
1488
|
+
grantId: string;
|
|
1489
|
+
principalHash: string;
|
|
1490
|
+
ownerLockKey: string;
|
|
1491
|
+
secretHash: string;
|
|
1492
|
+
cards: {
|
|
1493
|
+
cardId: string;
|
|
1494
|
+
revision: string;
|
|
1495
|
+
}[];
|
|
1496
|
+
revokedAt?: string | undefined;
|
|
1497
|
+
}>;
|
|
1498
|
+
declare const SupportPassportCreateGrantInputSchema: z.ZodEffects<z.ZodObject<{
|
|
1499
|
+
principal: z.ZodString;
|
|
1500
|
+
cards: z.ZodArray<z.ZodObject<{
|
|
1501
|
+
cardId: z.ZodString;
|
|
1502
|
+
revision: z.ZodString;
|
|
1503
|
+
}, "strict", z.ZodTypeAny, {
|
|
1504
|
+
cardId: string;
|
|
1505
|
+
revision: string;
|
|
1506
|
+
}, {
|
|
1507
|
+
cardId: string;
|
|
1508
|
+
revision: string;
|
|
1509
|
+
}>, "many">;
|
|
1510
|
+
expiresAt: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1511
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
1512
|
+
}, "strict", z.ZodTypeAny, {
|
|
1513
|
+
principal: string;
|
|
1514
|
+
cards: {
|
|
1515
|
+
cardId: string;
|
|
1516
|
+
revision: string;
|
|
1517
|
+
}[];
|
|
1518
|
+
durationMs?: number | undefined;
|
|
1519
|
+
expiresAt?: string | undefined;
|
|
1520
|
+
}, {
|
|
1521
|
+
principal: string;
|
|
1522
|
+
cards: {
|
|
1523
|
+
cardId: string;
|
|
1524
|
+
revision: string;
|
|
1525
|
+
}[];
|
|
1526
|
+
durationMs?: number | undefined;
|
|
1527
|
+
expiresAt?: string | undefined;
|
|
1528
|
+
}>, {
|
|
1529
|
+
principal: string;
|
|
1530
|
+
cards: {
|
|
1531
|
+
cardId: string;
|
|
1532
|
+
revision: string;
|
|
1533
|
+
}[];
|
|
1534
|
+
durationMs?: number | undefined;
|
|
1535
|
+
expiresAt?: string | undefined;
|
|
1536
|
+
}, {
|
|
1537
|
+
principal: string;
|
|
1538
|
+
cards: {
|
|
1539
|
+
cardId: string;
|
|
1540
|
+
revision: string;
|
|
1541
|
+
}[];
|
|
1542
|
+
durationMs?: number | undefined;
|
|
1543
|
+
expiresAt?: string | undefined;
|
|
1544
|
+
}>;
|
|
1545
|
+
declare const SupportPassportCreateGrantRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
1546
|
+
cardIds: z.ZodArray<z.ZodString, "many">;
|
|
1547
|
+
cardRevisions: z.ZodArray<z.ZodObject<{
|
|
1548
|
+
cardId: z.ZodString;
|
|
1549
|
+
revision: z.ZodString;
|
|
1550
|
+
}, "strict", z.ZodTypeAny, {
|
|
1551
|
+
cardId: string;
|
|
1552
|
+
revision: string;
|
|
1553
|
+
}, {
|
|
1554
|
+
cardId: string;
|
|
1555
|
+
revision: string;
|
|
1556
|
+
}>, "many">;
|
|
1557
|
+
expiresAt: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1558
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
1559
|
+
}, "strict", z.ZodTypeAny, {
|
|
1560
|
+
cardIds: string[];
|
|
1561
|
+
cardRevisions: {
|
|
1562
|
+
cardId: string;
|
|
1563
|
+
revision: string;
|
|
1564
|
+
}[];
|
|
1565
|
+
durationMs?: number | undefined;
|
|
1566
|
+
expiresAt?: string | undefined;
|
|
1567
|
+
}, {
|
|
1568
|
+
cardIds: string[];
|
|
1569
|
+
cardRevisions: {
|
|
1570
|
+
cardId: string;
|
|
1571
|
+
revision: string;
|
|
1572
|
+
}[];
|
|
1573
|
+
durationMs?: number | undefined;
|
|
1574
|
+
expiresAt?: string | undefined;
|
|
1575
|
+
}>, {
|
|
1576
|
+
cardIds: string[];
|
|
1577
|
+
cardRevisions: {
|
|
1578
|
+
cardId: string;
|
|
1579
|
+
revision: string;
|
|
1580
|
+
}[];
|
|
1581
|
+
durationMs?: number | undefined;
|
|
1582
|
+
expiresAt?: string | undefined;
|
|
1583
|
+
}, {
|
|
1584
|
+
cardIds: string[];
|
|
1585
|
+
cardRevisions: {
|
|
1586
|
+
cardId: string;
|
|
1587
|
+
revision: string;
|
|
1588
|
+
}[];
|
|
1589
|
+
durationMs?: number | undefined;
|
|
1590
|
+
expiresAt?: string | undefined;
|
|
1591
|
+
}>;
|
|
1592
|
+
declare const SupportPassportOwnerCreateGrantRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
1593
|
+
cardIds: z.ZodArray<z.ZodString, "many">;
|
|
1594
|
+
cardRevisions: z.ZodArray<z.ZodObject<{
|
|
1595
|
+
cardId: z.ZodString;
|
|
1596
|
+
revision: z.ZodString;
|
|
1597
|
+
}, "strict", z.ZodTypeAny, {
|
|
1598
|
+
cardId: string;
|
|
1599
|
+
revision: string;
|
|
1600
|
+
}, {
|
|
1601
|
+
cardId: string;
|
|
1602
|
+
revision: string;
|
|
1603
|
+
}>, "many">;
|
|
1604
|
+
expiresAt: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1605
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
1606
|
+
}, "strict", z.ZodTypeAny, {
|
|
1607
|
+
cardIds: string[];
|
|
1608
|
+
cardRevisions: {
|
|
1609
|
+
cardId: string;
|
|
1610
|
+
revision: string;
|
|
1611
|
+
}[];
|
|
1612
|
+
durationMs?: number | undefined;
|
|
1613
|
+
expiresAt?: string | undefined;
|
|
1614
|
+
}, {
|
|
1615
|
+
cardIds: string[];
|
|
1616
|
+
cardRevisions: {
|
|
1617
|
+
cardId: string;
|
|
1618
|
+
revision: string;
|
|
1619
|
+
}[];
|
|
1620
|
+
durationMs?: number | undefined;
|
|
1621
|
+
expiresAt?: string | undefined;
|
|
1622
|
+
}>, {
|
|
1623
|
+
cardIds: string[];
|
|
1624
|
+
cardRevisions: {
|
|
1625
|
+
cardId: string;
|
|
1626
|
+
revision: string;
|
|
1627
|
+
}[];
|
|
1628
|
+
durationMs?: number | undefined;
|
|
1629
|
+
expiresAt?: string | undefined;
|
|
1630
|
+
}, {
|
|
1631
|
+
cardIds: string[];
|
|
1632
|
+
cardRevisions: {
|
|
1633
|
+
cardId: string;
|
|
1634
|
+
revision: string;
|
|
1635
|
+
}[];
|
|
1636
|
+
durationMs?: number | undefined;
|
|
1637
|
+
expiresAt?: string | undefined;
|
|
1638
|
+
}>;
|
|
1639
|
+
declare const SupportPassportOwnerGrantSchema: z.ZodObject<{
|
|
1640
|
+
grantId: z.ZodEffects<z.ZodString, string, string>;
|
|
1641
|
+
stateVersion: z.ZodNumber;
|
|
1642
|
+
cards: z.ZodArray<z.ZodObject<{
|
|
1643
|
+
cardId: z.ZodString;
|
|
1644
|
+
revision: z.ZodString;
|
|
1645
|
+
}, "strict", z.ZodTypeAny, {
|
|
1646
|
+
cardId: string;
|
|
1647
|
+
revision: string;
|
|
1648
|
+
}, {
|
|
1649
|
+
cardId: string;
|
|
1650
|
+
revision: string;
|
|
1651
|
+
}>, "many">;
|
|
1652
|
+
createdAt: z.ZodEffects<z.ZodString, string, string>;
|
|
1653
|
+
expiresAt: z.ZodEffects<z.ZodString, string, string>;
|
|
1654
|
+
revokedAt: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1655
|
+
status: z.ZodEnum<["active", "expired", "revoked"]>;
|
|
1656
|
+
}, "strict", z.ZodTypeAny, {
|
|
1657
|
+
status: "active" | "expired" | "revoked";
|
|
1658
|
+
createdAt: string;
|
|
1659
|
+
expiresAt: string;
|
|
1660
|
+
stateVersion: number;
|
|
1661
|
+
grantId: string;
|
|
1662
|
+
cards: {
|
|
1663
|
+
cardId: string;
|
|
1664
|
+
revision: string;
|
|
1665
|
+
}[];
|
|
1666
|
+
revokedAt?: string | undefined;
|
|
1667
|
+
}, {
|
|
1668
|
+
status: "active" | "expired" | "revoked";
|
|
1669
|
+
createdAt: string;
|
|
1670
|
+
expiresAt: string;
|
|
1671
|
+
stateVersion: number;
|
|
1672
|
+
grantId: string;
|
|
1673
|
+
cards: {
|
|
1674
|
+
cardId: string;
|
|
1675
|
+
revision: string;
|
|
1676
|
+
}[];
|
|
1677
|
+
revokedAt?: string | undefined;
|
|
1678
|
+
}>;
|
|
1679
|
+
declare const SupportPassportCreatedGrantSchema: z.ZodObject<{
|
|
1680
|
+
grant: z.ZodObject<{
|
|
1681
|
+
grantId: z.ZodEffects<z.ZodString, string, string>;
|
|
1682
|
+
stateVersion: z.ZodNumber;
|
|
1683
|
+
cards: z.ZodArray<z.ZodObject<{
|
|
1684
|
+
cardId: z.ZodString;
|
|
1685
|
+
revision: z.ZodString;
|
|
1686
|
+
}, "strict", z.ZodTypeAny, {
|
|
1687
|
+
cardId: string;
|
|
1688
|
+
revision: string;
|
|
1689
|
+
}, {
|
|
1690
|
+
cardId: string;
|
|
1691
|
+
revision: string;
|
|
1692
|
+
}>, "many">;
|
|
1693
|
+
createdAt: z.ZodEffects<z.ZodString, string, string>;
|
|
1694
|
+
expiresAt: z.ZodEffects<z.ZodString, string, string>;
|
|
1695
|
+
revokedAt: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1696
|
+
status: z.ZodEnum<["active", "expired", "revoked"]>;
|
|
1697
|
+
}, "strict", z.ZodTypeAny, {
|
|
1698
|
+
status: "active" | "expired" | "revoked";
|
|
1699
|
+
createdAt: string;
|
|
1700
|
+
expiresAt: string;
|
|
1701
|
+
stateVersion: number;
|
|
1702
|
+
grantId: string;
|
|
1703
|
+
cards: {
|
|
1704
|
+
cardId: string;
|
|
1705
|
+
revision: string;
|
|
1706
|
+
}[];
|
|
1707
|
+
revokedAt?: string | undefined;
|
|
1708
|
+
}, {
|
|
1709
|
+
status: "active" | "expired" | "revoked";
|
|
1710
|
+
createdAt: string;
|
|
1711
|
+
expiresAt: string;
|
|
1712
|
+
stateVersion: number;
|
|
1713
|
+
grantId: string;
|
|
1714
|
+
cards: {
|
|
1715
|
+
cardId: string;
|
|
1716
|
+
revision: string;
|
|
1717
|
+
}[];
|
|
1718
|
+
revokedAt?: string | undefined;
|
|
1719
|
+
}>;
|
|
1720
|
+
secret: z.ZodString;
|
|
1721
|
+
}, "strict", z.ZodTypeAny, {
|
|
1722
|
+
secret: string;
|
|
1723
|
+
grant: {
|
|
1724
|
+
status: "active" | "expired" | "revoked";
|
|
1725
|
+
createdAt: string;
|
|
1726
|
+
expiresAt: string;
|
|
1727
|
+
stateVersion: number;
|
|
1728
|
+
grantId: string;
|
|
1729
|
+
cards: {
|
|
1730
|
+
cardId: string;
|
|
1731
|
+
revision: string;
|
|
1732
|
+
}[];
|
|
1733
|
+
revokedAt?: string | undefined;
|
|
1734
|
+
};
|
|
1735
|
+
}, {
|
|
1736
|
+
secret: string;
|
|
1737
|
+
grant: {
|
|
1738
|
+
status: "active" | "expired" | "revoked";
|
|
1739
|
+
createdAt: string;
|
|
1740
|
+
expiresAt: string;
|
|
1741
|
+
stateVersion: number;
|
|
1742
|
+
grantId: string;
|
|
1743
|
+
cards: {
|
|
1744
|
+
cardId: string;
|
|
1745
|
+
revision: string;
|
|
1746
|
+
}[];
|
|
1747
|
+
revokedAt?: string | undefined;
|
|
1748
|
+
};
|
|
1749
|
+
}>;
|
|
1750
|
+
declare const SupportPassportPublicCardSchema: z.ZodObject<{
|
|
1751
|
+
cardId: z.ZodString;
|
|
1752
|
+
title: z.ZodString;
|
|
1753
|
+
statement: z.ZodString;
|
|
1754
|
+
category: z.ZodEnum<["communication", "environment", "transitions", "sensory", "regulation", "interests", "other"]>;
|
|
1755
|
+
updatedAt: z.ZodEffects<z.ZodString, string, string>;
|
|
1756
|
+
}, "strict", z.ZodTypeAny, {
|
|
1757
|
+
title: string;
|
|
1758
|
+
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
1759
|
+
updatedAt: string;
|
|
1760
|
+
cardId: string;
|
|
1761
|
+
statement: string;
|
|
1762
|
+
}, {
|
|
1763
|
+
title: string;
|
|
1764
|
+
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
1765
|
+
updatedAt: string;
|
|
1766
|
+
cardId: string;
|
|
1767
|
+
statement: string;
|
|
1768
|
+
}>;
|
|
1769
|
+
declare const SupportPassportPublicGuideSchema: z.ZodObject<{
|
|
1770
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
1771
|
+
grantId: z.ZodEffects<z.ZodString, string, string>;
|
|
1772
|
+
expiresAt: z.ZodEffects<z.ZodString, string, string>;
|
|
1773
|
+
updatedAt: z.ZodEffects<z.ZodString, string, string>;
|
|
1774
|
+
cards: z.ZodArray<z.ZodObject<{
|
|
1775
|
+
cardId: z.ZodString;
|
|
1776
|
+
title: z.ZodString;
|
|
1777
|
+
statement: z.ZodString;
|
|
1778
|
+
category: z.ZodEnum<["communication", "environment", "transitions", "sensory", "regulation", "interests", "other"]>;
|
|
1779
|
+
updatedAt: z.ZodEffects<z.ZodString, string, string>;
|
|
1780
|
+
}, "strict", z.ZodTypeAny, {
|
|
1781
|
+
title: string;
|
|
1782
|
+
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
1783
|
+
updatedAt: string;
|
|
1784
|
+
cardId: string;
|
|
1785
|
+
statement: string;
|
|
1786
|
+
}, {
|
|
1787
|
+
title: string;
|
|
1788
|
+
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
1789
|
+
updatedAt: string;
|
|
1790
|
+
cardId: string;
|
|
1791
|
+
statement: string;
|
|
1792
|
+
}>, "many">;
|
|
1793
|
+
}, "strict", z.ZodTypeAny, {
|
|
1794
|
+
schemaVersion: 1;
|
|
1795
|
+
expiresAt: string;
|
|
1796
|
+
updatedAt: string;
|
|
1797
|
+
grantId: string;
|
|
1798
|
+
cards: {
|
|
1799
|
+
title: string;
|
|
1800
|
+
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
1801
|
+
updatedAt: string;
|
|
1802
|
+
cardId: string;
|
|
1803
|
+
statement: string;
|
|
1804
|
+
}[];
|
|
1805
|
+
}, {
|
|
1806
|
+
schemaVersion: 1;
|
|
1807
|
+
expiresAt: string;
|
|
1808
|
+
updatedAt: string;
|
|
1809
|
+
grantId: string;
|
|
1810
|
+
cards: {
|
|
1811
|
+
title: string;
|
|
1812
|
+
category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
|
|
1813
|
+
updatedAt: string;
|
|
1814
|
+
cardId: string;
|
|
1815
|
+
statement: string;
|
|
1816
|
+
}[];
|
|
1817
|
+
}>;
|
|
1818
|
+
declare const SupportPassportRevokeGrantInputSchema: z.ZodObject<{
|
|
1819
|
+
principal: z.ZodString;
|
|
1820
|
+
grantId: z.ZodEffects<z.ZodString, string, string>;
|
|
1821
|
+
expectedStateVersion: z.ZodOptional<z.ZodNumber>;
|
|
1822
|
+
}, "strict", z.ZodTypeAny, {
|
|
1823
|
+
principal: string;
|
|
1824
|
+
grantId: string;
|
|
1825
|
+
expectedStateVersion?: number | undefined;
|
|
1826
|
+
}, {
|
|
1827
|
+
principal: string;
|
|
1828
|
+
grantId: string;
|
|
1829
|
+
expectedStateVersion?: number | undefined;
|
|
1830
|
+
}>;
|
|
1831
|
+
declare const SupportPassportListGrantsInputSchema: z.ZodObject<{
|
|
1832
|
+
principal: z.ZodString;
|
|
1833
|
+
}, "strict", z.ZodTypeAny, {
|
|
1834
|
+
principal: string;
|
|
1835
|
+
}, {
|
|
1836
|
+
principal: string;
|
|
1837
|
+
}>;
|
|
1838
|
+
type SupportPassportGrantCardRef = z.infer<typeof SupportPassportGrantCardRefSchema>;
|
|
1839
|
+
type SupportPassportGrantState = z.infer<typeof SupportPassportGrantStateSchema>;
|
|
1840
|
+
type SupportPassportCreateGrantInput = z.input<typeof SupportPassportCreateGrantInputSchema>;
|
|
1841
|
+
type SupportPassportCreateGrantRequest = z.input<typeof SupportPassportCreateGrantRequestSchema>;
|
|
1842
|
+
type SupportPassportOwnerCreateGrantRequest = z.input<typeof SupportPassportOwnerCreateGrantRequestSchema>;
|
|
1843
|
+
type SupportPassportOwnerGrant = z.infer<typeof SupportPassportOwnerGrantSchema>;
|
|
1844
|
+
type SupportPassportCreatedGrant = z.infer<typeof SupportPassportCreatedGrantSchema>;
|
|
1845
|
+
type SupportPassportPublicGuide = z.infer<typeof SupportPassportPublicGuideSchema>;
|
|
1846
|
+
type SupportPassportRevokeGrantInput = z.input<typeof SupportPassportRevokeGrantInputSchema>;
|
|
1847
|
+
|
|
1848
|
+
declare const SupportPassportModelAuditRecordSchema: z.ZodEffects<z.ZodObject<{
|
|
1849
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
1850
|
+
operation: z.ZodEnum<["draft_cards", "answer_question"]>;
|
|
1851
|
+
actorHash: z.ZodString;
|
|
1852
|
+
subjectIdsHash: z.ZodString;
|
|
1853
|
+
modelUsed: z.ZodString;
|
|
1854
|
+
route: z.ZodEnum<["local", "direct", "gateway", "unavailable"]>;
|
|
1855
|
+
outputSchemaVersion: z.ZodLiteral<1>;
|
|
1856
|
+
outcome: z.ZodEnum<["success", "error"]>;
|
|
1857
|
+
errorClass: z.ZodOptional<z.ZodString>;
|
|
1858
|
+
occurredAt: z.ZodString;
|
|
1859
|
+
latencyMs: z.ZodNumber;
|
|
1860
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
1861
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1862
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1863
|
+
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
1864
|
+
}, "strict", z.ZodTypeAny, {
|
|
1865
|
+
inputTokens?: number | undefined;
|
|
1866
|
+
outputTokens?: number | undefined;
|
|
1867
|
+
totalTokens?: number | undefined;
|
|
1868
|
+
}, {
|
|
1869
|
+
inputTokens?: number | undefined;
|
|
1870
|
+
outputTokens?: number | undefined;
|
|
1871
|
+
totalTokens?: number | undefined;
|
|
1872
|
+
}>>;
|
|
1873
|
+
}, "strict", z.ZodTypeAny, {
|
|
1874
|
+
schemaVersion: 1;
|
|
1875
|
+
outcome: "error" | "success";
|
|
1876
|
+
modelUsed: string;
|
|
1877
|
+
operation: "draft_cards" | "answer_question";
|
|
1878
|
+
route: "unavailable" | "direct" | "local" | "gateway";
|
|
1879
|
+
latencyMs: number;
|
|
1880
|
+
actorHash: string;
|
|
1881
|
+
subjectIdsHash: string;
|
|
1882
|
+
outputSchemaVersion: 1;
|
|
1883
|
+
occurredAt: string;
|
|
1884
|
+
usage?: {
|
|
1885
|
+
inputTokens?: number | undefined;
|
|
1886
|
+
outputTokens?: number | undefined;
|
|
1887
|
+
totalTokens?: number | undefined;
|
|
1888
|
+
} | undefined;
|
|
1889
|
+
errorClass?: string | undefined;
|
|
1890
|
+
}, {
|
|
1891
|
+
schemaVersion: 1;
|
|
1892
|
+
outcome: "error" | "success";
|
|
1893
|
+
modelUsed: string;
|
|
1894
|
+
operation: "draft_cards" | "answer_question";
|
|
1895
|
+
route: "unavailable" | "direct" | "local" | "gateway";
|
|
1896
|
+
latencyMs: number;
|
|
1897
|
+
actorHash: string;
|
|
1898
|
+
subjectIdsHash: string;
|
|
1899
|
+
outputSchemaVersion: 1;
|
|
1900
|
+
occurredAt: string;
|
|
1901
|
+
usage?: {
|
|
1902
|
+
inputTokens?: number | undefined;
|
|
1903
|
+
outputTokens?: number | undefined;
|
|
1904
|
+
totalTokens?: number | undefined;
|
|
1905
|
+
} | undefined;
|
|
1906
|
+
errorClass?: string | undefined;
|
|
1907
|
+
}>, {
|
|
1908
|
+
schemaVersion: 1;
|
|
1909
|
+
outcome: "error" | "success";
|
|
1910
|
+
modelUsed: string;
|
|
1911
|
+
operation: "draft_cards" | "answer_question";
|
|
1912
|
+
route: "unavailable" | "direct" | "local" | "gateway";
|
|
1913
|
+
latencyMs: number;
|
|
1914
|
+
actorHash: string;
|
|
1915
|
+
subjectIdsHash: string;
|
|
1916
|
+
outputSchemaVersion: 1;
|
|
1917
|
+
occurredAt: string;
|
|
1918
|
+
usage?: {
|
|
1919
|
+
inputTokens?: number | undefined;
|
|
1920
|
+
outputTokens?: number | undefined;
|
|
1921
|
+
totalTokens?: number | undefined;
|
|
1922
|
+
} | undefined;
|
|
1923
|
+
errorClass?: string | undefined;
|
|
1924
|
+
}, {
|
|
1925
|
+
schemaVersion: 1;
|
|
1926
|
+
outcome: "error" | "success";
|
|
1927
|
+
modelUsed: string;
|
|
1928
|
+
operation: "draft_cards" | "answer_question";
|
|
1929
|
+
route: "unavailable" | "direct" | "local" | "gateway";
|
|
1930
|
+
latencyMs: number;
|
|
1931
|
+
actorHash: string;
|
|
1932
|
+
subjectIdsHash: string;
|
|
1933
|
+
outputSchemaVersion: 1;
|
|
1934
|
+
occurredAt: string;
|
|
1935
|
+
usage?: {
|
|
1936
|
+
inputTokens?: number | undefined;
|
|
1937
|
+
outputTokens?: number | undefined;
|
|
1938
|
+
totalTokens?: number | undefined;
|
|
1939
|
+
} | undefined;
|
|
1940
|
+
errorClass?: string | undefined;
|
|
1941
|
+
}>;
|
|
1942
|
+
type SupportPassportModelAuditRecord = z.infer<typeof SupportPassportModelAuditRecordSchema>;
|
|
1943
|
+
interface SupportPassportModelAuditSink {
|
|
1944
|
+
record(record: SupportPassportModelAuditRecord): Promise<void>;
|
|
1945
|
+
}
|
|
1946
|
+
declare function hashSupportPassportAuditValues(domain: string, values: string[]): string;
|
|
1947
|
+
declare class SupportPassportModelAuditStore implements SupportPassportModelAuditSink {
|
|
1948
|
+
private memoryDir;
|
|
1949
|
+
private auditDir;
|
|
1950
|
+
private memoryRootReady?;
|
|
1951
|
+
private readonly runWithHeldFileLock;
|
|
1952
|
+
constructor(options: {
|
|
1953
|
+
memoryDir: string;
|
|
1954
|
+
withHeldFileLock?: typeof withHeldFileLock;
|
|
1955
|
+
});
|
|
1956
|
+
record(input: SupportPassportModelAuditRecord): Promise<void>;
|
|
1957
|
+
private ensureSafeDirectories;
|
|
1958
|
+
private ensureMemoryRoot;
|
|
1959
|
+
}
|
|
1960
|
+
|
|
1961
|
+
interface SupportPassportAccessSurfaceDependencies {
|
|
1962
|
+
config: PluginConfig;
|
|
1963
|
+
resolveOwner(principal: string): Promise<SupportPassportOwnerScope>;
|
|
1964
|
+
resolveNamespace(namespace: string): Promise<StorageManager>;
|
|
1965
|
+
modelAdapter?: SupportPassportModelAdapter;
|
|
1966
|
+
audit?: SupportPassportModelAuditSink;
|
|
1967
|
+
now?: () => Date;
|
|
1968
|
+
platform?: NodeJS.Platform;
|
|
1969
|
+
}
|
|
1970
|
+
interface SupportPassportCreateGrantResult {
|
|
1971
|
+
grantId: string;
|
|
1972
|
+
secret: string;
|
|
1973
|
+
expiresAt: string;
|
|
1974
|
+
version: number;
|
|
1975
|
+
}
|
|
1976
|
+
interface SupportPassportRevokeGrantResult {
|
|
1977
|
+
grantId: string;
|
|
1978
|
+
revokedAt: string;
|
|
1979
|
+
version: number;
|
|
1980
|
+
}
|
|
1981
|
+
type SupportPassportMemoryPreview = {
|
|
1982
|
+
found: false;
|
|
1983
|
+
} | {
|
|
1984
|
+
found: true;
|
|
1985
|
+
memory: {
|
|
1986
|
+
id: string;
|
|
1987
|
+
content: string;
|
|
1988
|
+
revision: string;
|
|
1989
|
+
};
|
|
1990
|
+
};
|
|
1991
|
+
declare class SupportPassportAccessSurface {
|
|
1992
|
+
private readonly config;
|
|
1993
|
+
private readonly cardService;
|
|
1994
|
+
private readonly grantService;
|
|
1995
|
+
private readonly draftService;
|
|
1996
|
+
private readonly questionService;
|
|
1997
|
+
private readonly resolveOwner;
|
|
1998
|
+
private readonly now;
|
|
1999
|
+
private readonly platformSupported;
|
|
2000
|
+
constructor(dependencies: SupportPassportAccessSurfaceDependencies);
|
|
2001
|
+
listCards(principal: string): Promise<SupportPassportCard[]>;
|
|
2002
|
+
previewMemory(principal: string, memoryId: string): Promise<SupportPassportMemoryPreview>;
|
|
2003
|
+
createManualDraft(principal: string, input: {
|
|
2004
|
+
title: string;
|
|
2005
|
+
statement: string;
|
|
2006
|
+
category: SupportPassportCardCategory;
|
|
2007
|
+
reviewBy: string;
|
|
2008
|
+
}, options?: {
|
|
2009
|
+
signal?: AbortSignal;
|
|
2010
|
+
onCommitted?: () => void;
|
|
2011
|
+
}): Promise<SupportPassportCard>;
|
|
2012
|
+
generateDrafts(principal: string, input: {
|
|
2013
|
+
sourceMemoryIds: string[];
|
|
2014
|
+
sourceMemoryRevisions: Array<{
|
|
2015
|
+
memoryId: string;
|
|
2016
|
+
revision: string;
|
|
2017
|
+
}>;
|
|
2018
|
+
consent: boolean;
|
|
2019
|
+
signal?: AbortSignal;
|
|
2020
|
+
onCommitted?: () => void;
|
|
2021
|
+
}): Promise<SupportPassportCard[]>;
|
|
2022
|
+
replaceCard(principal: string, cardId: string, input: {
|
|
2023
|
+
title: string;
|
|
2024
|
+
statement: string;
|
|
2025
|
+
category: SupportPassportCardCategory;
|
|
2026
|
+
reviewBy: string;
|
|
2027
|
+
expectedRevision: string;
|
|
2028
|
+
}, options?: {
|
|
2029
|
+
signal?: AbortSignal;
|
|
2030
|
+
onCommitted?: () => void;
|
|
2031
|
+
}): Promise<SupportPassportCard>;
|
|
2032
|
+
approveCard(principal: string, cardId: string, input: {
|
|
2033
|
+
expectedRevision: string;
|
|
2034
|
+
reasonCode?: string;
|
|
2035
|
+
}, options?: {
|
|
2036
|
+
signal?: AbortSignal;
|
|
2037
|
+
onCommitted?: () => void;
|
|
2038
|
+
}): Promise<SupportPassportCard>;
|
|
2039
|
+
rejectCard(principal: string, cardId: string, input: {
|
|
2040
|
+
expectedRevision: string;
|
|
2041
|
+
reasonCode?: string;
|
|
2042
|
+
}, options?: {
|
|
2043
|
+
signal?: AbortSignal;
|
|
2044
|
+
onCommitted?: () => void;
|
|
2045
|
+
}): Promise<SupportPassportCard>;
|
|
2046
|
+
withdrawCard(principal: string, cardId: string, input: {
|
|
2047
|
+
expectedRevision: string;
|
|
2048
|
+
reasonCode?: string;
|
|
2049
|
+
}, options?: {
|
|
2050
|
+
signal?: AbortSignal;
|
|
2051
|
+
onCommitted?: () => void;
|
|
2052
|
+
}): Promise<SupportPassportCard>;
|
|
2053
|
+
createGrant(principal: string, input: SupportPassportCreateGrantRequest, options?: {
|
|
2054
|
+
signal?: AbortSignal;
|
|
2055
|
+
onCommitted?: () => void;
|
|
2056
|
+
}): Promise<SupportPassportCreateGrantResult>;
|
|
2057
|
+
listGrants(principal: string): Promise<SupportPassportOwnerGrant[]>;
|
|
2058
|
+
revokeGrant(principal: string, grantId: string, input: {
|
|
2059
|
+
expectedVersion?: number;
|
|
2060
|
+
}, options?: {
|
|
2061
|
+
signal?: AbortSignal;
|
|
2062
|
+
onCommitted?: () => void;
|
|
2063
|
+
}): Promise<SupportPassportRevokeGrantResult>;
|
|
2064
|
+
readGrant(grantId: string, secret: string): Promise<SupportPassportPublicGuide>;
|
|
2065
|
+
askGrant(grantId: string, secret: string, question: string, signal?: AbortSignal): Promise<SupportPassportAnswerOutput>;
|
|
2066
|
+
private requireEnabled;
|
|
2067
|
+
private requirePrincipal;
|
|
2068
|
+
private invalidGrantInput;
|
|
2069
|
+
}
|
|
2070
|
+
|
|
2071
|
+
declare abstract class SupportPassportAccessServiceBase {
|
|
2072
|
+
private _supportPassportSurface;
|
|
2073
|
+
abstract get configRef(): PluginConfig;
|
|
2074
|
+
abstract get localLlmRef(): LocalLlmClient | null;
|
|
2075
|
+
abstract getWritableStorageForNamespace(namespace?: string, principal?: string): Promise<SupportPassportOwnerScope>;
|
|
2076
|
+
abstract getStorageForResolvedNamespace(namespace: string): Promise<StorageManager>;
|
|
2077
|
+
get supportPassportGatewayRouteRef(): SupportPassportModelRoute | null;
|
|
2078
|
+
get supportPassportPlatformRef(): NodeJS.Platform;
|
|
2079
|
+
private getSupportPassportSurface;
|
|
2080
|
+
get supportPassportEnabled(): boolean;
|
|
2081
|
+
supportPassportListCards(principal: string): Promise<SupportPassportCard[]>;
|
|
2082
|
+
supportPassportPreviewMemory(principal: string, memoryId: string): Promise<SupportPassportMemoryPreview>;
|
|
2083
|
+
supportPassportCreateManualDraft(principal: string, input: {
|
|
2084
|
+
title: string;
|
|
2085
|
+
statement: string;
|
|
2086
|
+
category: SupportPassportCardCategory;
|
|
2087
|
+
reviewBy: string;
|
|
2088
|
+
}, options?: {
|
|
2089
|
+
signal?: AbortSignal;
|
|
2090
|
+
onCommitted?: () => void;
|
|
2091
|
+
}): Promise<SupportPassportCard>;
|
|
2092
|
+
supportPassportGenerateDrafts(principal: string, input: {
|
|
2093
|
+
sourceMemoryIds: string[];
|
|
2094
|
+
sourceMemoryRevisions: Array<{
|
|
2095
|
+
memoryId: string;
|
|
2096
|
+
revision: string;
|
|
2097
|
+
}>;
|
|
2098
|
+
consent: boolean;
|
|
2099
|
+
signal?: AbortSignal;
|
|
2100
|
+
onCommitted?: () => void;
|
|
2101
|
+
}): Promise<SupportPassportCard[]>;
|
|
2102
|
+
supportPassportReplaceCard(principal: string, cardId: string, input: {
|
|
2103
|
+
title: string;
|
|
2104
|
+
statement: string;
|
|
2105
|
+
category: SupportPassportCardCategory;
|
|
2106
|
+
reviewBy: string;
|
|
2107
|
+
expectedRevision: string;
|
|
2108
|
+
}, options?: {
|
|
2109
|
+
signal?: AbortSignal;
|
|
2110
|
+
onCommitted?: () => void;
|
|
2111
|
+
}): Promise<SupportPassportCard>;
|
|
2112
|
+
supportPassportApproveCard(principal: string, cardId: string, input: {
|
|
2113
|
+
expectedRevision: string;
|
|
2114
|
+
reasonCode?: string;
|
|
2115
|
+
}, options?: {
|
|
2116
|
+
signal?: AbortSignal;
|
|
2117
|
+
onCommitted?: () => void;
|
|
2118
|
+
}): Promise<SupportPassportCard>;
|
|
2119
|
+
supportPassportRejectCard(principal: string, cardId: string, input: {
|
|
2120
|
+
expectedRevision: string;
|
|
2121
|
+
reasonCode?: string;
|
|
2122
|
+
}, options?: {
|
|
2123
|
+
signal?: AbortSignal;
|
|
2124
|
+
onCommitted?: () => void;
|
|
2125
|
+
}): Promise<SupportPassportCard>;
|
|
2126
|
+
supportPassportWithdrawCard(principal: string, cardId: string, input: {
|
|
2127
|
+
expectedRevision: string;
|
|
2128
|
+
reasonCode?: string;
|
|
2129
|
+
}, options?: {
|
|
2130
|
+
signal?: AbortSignal;
|
|
2131
|
+
onCommitted?: () => void;
|
|
2132
|
+
}): Promise<SupportPassportCard>;
|
|
2133
|
+
supportPassportCreateGrant(principal: string, input: SupportPassportCreateGrantRequest, options?: {
|
|
2134
|
+
signal?: AbortSignal;
|
|
2135
|
+
onCommitted?: () => void;
|
|
2136
|
+
}): Promise<SupportPassportCreateGrantResult>;
|
|
2137
|
+
supportPassportListGrants(principal: string): Promise<SupportPassportOwnerGrant[]>;
|
|
2138
|
+
supportPassportRevokeGrant(principal: string, grantId: string, input: {
|
|
2139
|
+
expectedVersion?: number;
|
|
2140
|
+
}, options?: {
|
|
2141
|
+
signal?: AbortSignal;
|
|
2142
|
+
onCommitted?: () => void;
|
|
2143
|
+
}): Promise<SupportPassportRevokeGrantResult>;
|
|
2144
|
+
supportPassportReadGrant(grantId: string, secret: string): Promise<SupportPassportPublicGuide>;
|
|
2145
|
+
supportPassportAskGrant(grantId: string, secret: string, question: string, signal?: AbortSignal): Promise<SupportPassportAnswerOutput>;
|
|
2146
|
+
}
|
|
2147
|
+
|
|
922
2148
|
type AccessProfilingReportRequest = {
|
|
923
2149
|
format?: string;
|
|
924
2150
|
limit?: number;
|
|
@@ -1636,7 +2862,7 @@ type EngramAccessIdempotencyStatus = "miss" | "replay" | "conflict";
|
|
|
1636
2862
|
* preserving the cheap-by-default browse projection.
|
|
1637
2863
|
*/
|
|
1638
2864
|
declare function shapeMemorySummary(memory: MemoryFile, baseDir: string, disclosure?: RecallDisclosure, rawExcerpts?: EngramAccessMemorySummary["rawExcerpts"]): EngramAccessMemorySummary;
|
|
1639
|
-
declare class EngramAccessService {
|
|
2865
|
+
declare class EngramAccessService extends SupportPassportAccessServiceBase {
|
|
1640
2866
|
private readonly orchestrator;
|
|
1641
2867
|
private readonly idempotency;
|
|
1642
2868
|
private readonly idempotencyLocks;
|
|
@@ -1646,6 +2872,7 @@ declare class EngramAccessService {
|
|
|
1646
2872
|
private readonly auditAdapter;
|
|
1647
2873
|
private readonly corpusWatermarkCache;
|
|
1648
2874
|
private readonly replicaDivergenceMonitor;
|
|
2875
|
+
private readonly injectedSupportPassportGatewayRoute;
|
|
1649
2876
|
/** AccessObserveWriteSurface (access-service decomposition). Lazy; selfDeps live wiring. */
|
|
1650
2877
|
private _accessObserveWriteSurface;
|
|
1651
2878
|
private get accessObserveWriteSurface();
|
|
@@ -1664,7 +2891,9 @@ declare class EngramAccessService {
|
|
|
1664
2891
|
private readonly extractionLivenessWarn;
|
|
1665
2892
|
constructor(orchestrator: Orchestrator, options?: {
|
|
1666
2893
|
resolveSecretRef?: ResolveSecretRefFn | null;
|
|
2894
|
+
supportPassportGatewayRoute?: SupportPassportModelRoute | null;
|
|
1667
2895
|
});
|
|
2896
|
+
get supportPassportGatewayRouteRef(): SupportPassportModelRoute | null;
|
|
1668
2897
|
get briefingEnabled(): boolean;
|
|
1669
2898
|
private resolveNamespace;
|
|
1670
2899
|
private normalizeRecallMode;
|
|
@@ -2498,11 +3727,13 @@ declare class EngramAccessService {
|
|
|
2498
3727
|
storage: StorageManager;
|
|
2499
3728
|
}>;
|
|
2500
3729
|
getWritableStorageForNamespace(namespace?: string, principal?: string): Promise<{
|
|
3730
|
+
principal: string;
|
|
2501
3731
|
namespace: string;
|
|
2502
3732
|
storage: StorageManager;
|
|
2503
3733
|
}>;
|
|
2504
3734
|
get storageRef(): StorageManager;
|
|
2505
3735
|
get configRef(): PluginConfig;
|
|
3736
|
+
getStorageForResolvedNamespace(namespace: string): Promise<StorageManager>;
|
|
2506
3737
|
get localLlmRef(): LocalLlmClient | null;
|
|
2507
3738
|
get fallbackLlmRef(): FallbackLlmClient | null;
|
|
2508
3739
|
get embeddingLookupFactoryRef(): (storage: StorageManager) => SemanticDedupLookup | undefined;
|
|
@@ -2653,4 +3884,4 @@ declare class EngramAccessService {
|
|
|
2653
3884
|
}): Promise<MemoryPromotionResult>;
|
|
2654
3885
|
}
|
|
2655
3886
|
|
|
2656
|
-
export { type
|
|
3887
|
+
export { type SupportPassportCard as $, type AccessProfilingReportRequest as A, type CodegraphSurfaceResponse as B, type CodingScopedWriteInput as C, type DecisionSurfaceRequest as D, type EngramAccessReviewQueueResponse as E, type EngramAccessRecallResponse as F, type EngramAccessRecallRequest as G, type EngramAccessMemorySummary as H, type EngramAccessSetCodingContextRequest as I, type ProcedureStatsRecent as J, type ProcedureStatsReport as K, type ProcedureStatusCounts as L, type MemoryPromotionTargetKind as M, SUPPORT_PASSPORT_CARD_STATUSES as N, SUPPORT_PASSPORT_DRAFT_MAX_CONTENT_CHARACTERS as O, type ProcedureStatsConfigSnapshot as P, SUPPORT_PASSPORT_DRAFT_MAX_MEMORIES as Q, SUPPORT_PASSPORT_NOT_IN_GUIDE_ANSWER as R, SUPPORT_PASSPORT_CARD_CATEGORIES as S, SUPPORT_PASSPORT_SOURCE_MEMORY_ID_MAX_LENGTH as T, SupportPassportAccessSurface as U, type SupportPassportAccessSurfaceDependencies as V, type SupportPassportAnswerModelInput as W, SupportPassportAnswerModelInputSchema as X, type SupportPassportAnswerOutput as Y, SupportPassportAnswerOutputSchema as Z, type SupportPassportAnswerResult as _, type AccessProfilingReportResponse as a, type SupportPassportRevokeGrantResult as a$, type SupportPassportCardCategory as a0, SupportPassportCardCategorySchema as a1, SupportPassportCardListSchema as a2, type SupportPassportCardMutationInput as a3, SupportPassportCardMutationInputSchema as a4, SupportPassportCardSchema as a5, type SupportPassportCardServiceDependencies as a6, type SupportPassportCardStatus as a7, SupportPassportCardStatusSchema as a8, SupportPassportCardTitleSchema as a9, type SupportPassportModelAdapterOptions as aA, type SupportPassportModelAuditRecord as aB, SupportPassportModelAuditRecordSchema as aC, type SupportPassportModelAuditSink as aD, SupportPassportModelAuditStore as aE, SupportPassportModelCallError as aF, type SupportPassportModelClients as aG, type SupportPassportModelFailureMetadata as aH, type SupportPassportModelMessage as aI, type SupportPassportModelResultMetadata as aJ, type SupportPassportModelRoute as aK, type SupportPassportModelRouteKind as aL, type SupportPassportModelRouteResult as aM, type SupportPassportModelUsage as aN, SupportPassportNamespaceSchema as aO, type SupportPassportOwnerCreateGrantRequest as aP, SupportPassportOwnerCreateGrantRequestSchema as aQ, type SupportPassportOwnerGrant as aR, SupportPassportOwnerGrantSchema as aS, type SupportPassportOwnerScope as aT, SupportPassportPublicCardSchema as aU, type SupportPassportPublicGuide as aV, SupportPassportPublicGuideSchema as aW, type SupportPassportReplaceCardInput as aX, SupportPassportReplaceCardInputSchema as aY, type SupportPassportRevokeGrantInput as aZ, SupportPassportRevokeGrantInputSchema as a_, type SupportPassportCreateGrantInput as aa, SupportPassportCreateGrantInputSchema as ab, type SupportPassportCreateGrantRequest as ac, SupportPassportCreateGrantRequestSchema as ad, type SupportPassportCreateGrantResult as ae, type SupportPassportCreatedGrant as af, SupportPassportCreatedGrantSchema as ag, type SupportPassportDraftCard as ah, SupportPassportDraftCardSchema as ai, type SupportPassportDraftModelInput as aj, SupportPassportDraftModelInputSchema as ak, SupportPassportDraftOutputSchema as al, type SupportPassportDraftResult as am, SupportPassportError as an, type SupportPassportErrorCode as ao, type SupportPassportGrantCardRef as ap, SupportPassportGrantCardRefSchema as aq, type SupportPassportGrantState as ar, SupportPassportGrantStateSchema as as, SupportPassportListCardsInputSchema as at, SupportPassportListGrantsInputSchema as au, type SupportPassportManualDraftInput as av, SupportPassportManualDraftInputSchema as aw, SupportPassportMemoryIdSchema as ax, type SupportPassportMemoryPreview as ay, SupportPassportModelAdapter as az, type EngramAccessCapsuleListResponse as b, SupportPassportSourceMemoryIdSchema as b0, acceptsSupportPassportModelResponse as b1, buildSupportPassportDirectGatewayConfig as b2, computeProcedureStats as b3, computeSupportPassportCardRevision as b4, createSupportPassportModelAdapter as b5, formatProcedureStatsText as b6, hashSupportPassportAuditValues as b7, resolveSupportPassportModelRoutePlan as b8, type EngramAccessLcmCompactionFlushRequest as b9, type EngramAccessOfflineSyncManifestRequest as bA, type EngramAccessOfflineSyncSnapshotRequest as bB, type EngramAccessOfflineSyncSnapshotResponse as bC, type EngramAccessQualityResponse as bD, type EngramAccessRecallExplainRequest as bE, type EngramAccessRecallExplainResponse as bF, type EngramAccessReviewDispositionRequest as bG, type EngramAccessReviewDispositionResponse as bH, type EngramAccessScopeDebug as bI, type EngramAccessTimelineResponse as bJ, type EngramAccessTrustZoneBrowseRequest as bK, type EngramAccessTrustZoneBrowseResponse as bL, type EngramAccessTrustZoneDemoSeedRequest as bM, type EngramAccessTrustZoneDemoSeedResponse as bN, type EngramAccessTrustZonePromoteRequest as bO, type EngramAccessTrustZonePromoteResponse as bP, type EngramAccessTrustZoneRecordSummary as bQ, type EngramAccessTrustZoneStatusResponse as bR, type EngramAccessWriteEnvelope as bS, buildProjectedGovernanceProposedActions as bT, hasGroupedGovernanceActions as bU, shapeMemorySummary as bV, type ExtractionForceFlushDelegate as ba, delegateExtractionForceFlush as bb, ENGRAM_ACCESS_WRITE_SCHEMA_VERSION as bc, type EngramAccessActionConfidenceRequest as bd, type EngramAccessActionConfidenceResponse as be, type EngramAccessDaySummaryRequest as bf, type EngramAccessEntityListResponse as bg, type EngramAccessEntityResponse as bh, type EngramAccessEntitySummary as bi, type EngramAccessLcmCompactionRecordRequest as bj, type EngramAccessLcmStatusResponse as bk, type EngramAccessMaintenanceResponse as bl, type EngramAccessMemoryBrowseRequest as bm, type EngramAccessMemoryBrowseResponse as bn, type EngramAccessMemoryRecord as bo, type EngramAccessObserveMessage as bp, type EngramAccessOfflineSyncApplyFileContentRequest as bq, type EngramAccessOfflineSyncApplyFileContentResponse as br, type EngramAccessOfflineSyncApplyRequest as bs, type EngramAccessOfflineSyncApplyResponse as bt, type EngramAccessOfflineSyncFileContentRequest as bu, type EngramAccessOfflineSyncFileContentResponse as bv, type EngramAccessOfflineSyncFilesRequest as bw, type EngramAccessOfflineSyncFilesResponse as bx, type EngramAccessOfflineSyncFinalizeConvergenceRequest as by, type EngramAccessOfflineSyncFinalizeConvergenceResponse as bz, type MemoryPromotionResult as c, type EngramAccessExtractionForceFlushRequest as d, 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 };
|