@remnic/core 9.69.40 → 9.69.42
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 +14 -13
- package/dist/access-admin-ops-surface.js +79 -78
- package/dist/access-audit.js +2 -2
- package/dist/access-authorization-probe.d.ts +14 -13
- package/dist/access-authorization-probe.js +80 -79
- package/dist/access-boundary.d.ts +14 -13
- package/dist/access-boundary.js +79 -78
- package/dist/access-cli.js +170 -168
- 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 +14 -13
- package/dist/access-extraction-force-flush.js +79 -78
- package/dist/access-health-types.d.ts +1 -1
- package/dist/access-http-briefing.d.ts +14 -13
- package/dist/access-http-briefing.js +80 -79
- package/dist/access-http-lcm-compaction.d.ts +14 -13
- package/dist/access-http-lifecycle-flush.d.ts +14 -13
- package/dist/access-http-offline-stream.d.ts +14 -13
- package/dist/access-http-query.d.ts +2 -2
- package/dist/access-http-query.js +81 -80
- package/dist/access-http.d.ts +15 -14
- package/dist/access-http.js +100 -97
- package/dist/access-identity-continuity-surface.d.ts +11 -11
- package/dist/access-identity-continuity-surface.js +79 -78
- package/dist/access-lcm-surface.d.ts +14 -13
- package/dist/access-lcm-surface.js +79 -78
- package/dist/access-mcp-shared-context-tools.d.ts +157 -0
- package/dist/access-mcp-shared-context-tools.js +8 -0
- package/dist/access-mcp.d.ts +14 -13
- package/dist/access-mcp.js +91 -88
- package/dist/access-memory-search-fanout.d.ts +2 -2
- package/dist/{access-namespace-preflight-CKBumJ8W.d.ts → access-namespace-preflight-ShnAJ9uL.d.ts} +1 -1
- package/dist/access-namespace-preflight.d.ts +3 -3
- package/dist/access-namespace-preflight.js +79 -78
- package/dist/access-observe-transcript.d.ts +11 -11
- package/dist/access-observe-write-category.d.ts +17 -1
- package/dist/access-observe-write-category.js +21 -4
- package/dist/access-observe-write-surface.d.ts +14 -13
- package/dist/access-observe-write-surface.js +79 -78
- package/dist/access-offline-manifest.d.ts +11 -11
- package/dist/access-offline-manifest.js +14 -14
- package/dist/access-operations-batch.js +84 -82
- package/dist/access-operations.d.ts +14 -13
- package/dist/access-operations.js +89 -87
- package/dist/access-recall-concurrency.d.ts +14 -13
- package/dist/access-recall-concurrency.js +79 -78
- package/dist/access-recall-response.d.ts +14 -13
- package/dist/access-recall-response.js +79 -78
- package/dist/access-recall-surface.d.ts +14 -13
- package/dist/access-recall-surface.js +79 -78
- package/dist/access-schema.d.ts +117 -114
- package/dist/access-schema.js +3 -3
- package/dist/{access-service-DJ3qogNt.d.ts → access-service-DjG_e2cM.d.ts} +81 -75
- package/dist/access-service-helpers.d.ts +14 -13
- package/dist/access-service.d.ts +14 -13
- package/dist/access-service.js +79 -78
- package/dist/access-surface-catalog.d.ts +14 -13
- package/dist/access-surface-catalog.js +81 -80
- package/dist/access-surface-catalog.js.map +1 -1
- package/dist/access-wearables-meetings-surface.d.ts +4 -4
- package/dist/action-confidence.d.ts +1 -1
- package/dist/active-memory-bridge.d.ts +1 -1
- package/dist/active-memory-bridge.js +3 -3
- package/dist/active-recall.d.ts +1 -1
- package/dist/active-recall.js +10 -10
- package/dist/activity/digest.d.ts +1 -1
- package/dist/ambient-provenance.d.ts +1 -1
- package/dist/artifact-search.d.ts +1 -1
- package/dist/{auto-sync-D6BAPIJV.js → auto-sync-QZD4RD6H.js} +14 -10
- package/dist/{auto-sync-D6BAPIJV.js.map → auto-sync-QZD4RD6H.js.map} +1 -1
- package/dist/background-generation.d.ts +1 -1
- package/dist/behavior-learner.d.ts +1 -1
- package/dist/behavior-signals.d.ts +1 -1
- package/dist/bootstrap.d.ts +11 -11
- package/dist/briefing-window.d.ts +2 -2
- package/dist/briefing.d.ts +2 -2
- package/dist/briefing.js +22 -22
- 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 +9 -9
- package/dist/bulk-import/index.d.ts +3 -3
- package/dist/calibration.d.ts +1 -1
- package/dist/calibration.js +2 -2
- package/dist/capabilities.d.ts +1 -1
- package/dist/{capsule-crypto-7FJQINUR.js → capsule-crypto-YO5QJ6L3.js} +2 -2
- package/dist/{capsule-merge-IPG4IOFP.js → capsule-merge-3MNURAQ3.js} +2 -2
- package/dist/{catalog-BHXkBVhg.d.ts → catalog-BhuXaQHx.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 +25 -25
- package/dist/causal-trajectory-graph.d.ts +1 -1
- package/dist/{chunk-M6RORUO5.js → chunk-2EYZ32LH.js} +24 -2
- package/dist/{chunk-M6RORUO5.js.map → chunk-2EYZ32LH.js.map} +1 -1
- package/dist/{chunk-JAJIMTFB.js → chunk-2PDMIPMP.js} +9 -9
- package/dist/{chunk-5LYSEZOF.js → chunk-2UINSKQC.js} +12 -11
- package/dist/chunk-2UINSKQC.js.map +1 -0
- package/dist/{chunk-6L2II3KS.js → chunk-3D75XIYO.js} +2 -2
- package/dist/{chunk-XCPNH2MG.js → chunk-3KJTSCSX.js} +5 -5
- package/dist/{chunk-YTZN2UZO.js → chunk-3RLWUW7G.js} +2 -2
- package/dist/{chunk-J272ODKJ.js → chunk-42DJ235G.js} +2 -2
- package/dist/{chunk-NVVZPBKI.js → chunk-46FVFU7S.js} +2 -2
- package/dist/{chunk-JUDT33RX.js → chunk-4AX5OYKC.js} +2 -2
- package/dist/{chunk-GSSDHAYH.js → chunk-4IGOLIWM.js} +2 -2
- package/dist/{chunk-23HFXQ5J.js → chunk-6EGIQEKC.js} +4 -4
- package/dist/{chunk-TVVEYCNW.js → chunk-7K5Q6COX.js} +4 -4
- package/dist/{chunk-GO5LOHCD.js → chunk-7L54ARML.js} +2 -2
- package/dist/{chunk-TEMKBSV6.js → chunk-7PSRCGWT.js} +3 -3
- package/dist/{chunk-ICNJ6J46.js → chunk-AAAFZW3U.js} +2 -2
- package/dist/{chunk-K4JKAXMO.js → chunk-AAX22E4K.js} +3 -3
- package/dist/{chunk-UZ6JYPJ6.js → chunk-ADARR5KF.js} +232 -171
- package/dist/chunk-ADARR5KF.js.map +1 -0
- package/dist/{chunk-KY236SP5.js → chunk-AHHFBJX7.js} +3 -3
- package/dist/{chunk-TZ44E732.js → chunk-AIVRD66I.js} +2 -2
- package/dist/{chunk-OEDW4ER7.js → chunk-AJBWVDRV.js} +2 -1
- package/dist/chunk-AJBWVDRV.js.map +1 -0
- package/dist/{chunk-YRIFXXMI.js → chunk-AOGICQMH.js} +6 -6
- package/dist/{chunk-KOTG3RXE.js → chunk-AUSRUOMQ.js} +2 -2
- package/dist/{chunk-C5R73BON.js → chunk-BIANISES.js} +2 -2
- package/dist/{chunk-IMBQFHRV.js → chunk-BPXJINHW.js} +8 -8
- package/dist/{chunk-2NLLXCJG.js → chunk-BXLOS5AJ.js} +2 -2
- package/dist/{chunk-2J3V5QEO.js → chunk-C3QXITIP.js} +4 -4
- package/dist/{chunk-2SNCQHJZ.js → chunk-CQ4BTPX6.js} +6 -6
- package/dist/{chunk-3QEVOQF5.js → chunk-CTETTVDN.js} +2 -2
- package/dist/{chunk-DFVSJFHK.js → chunk-DBB5JPSL.js} +2 -2
- package/dist/{chunk-W23JARAQ.js → chunk-DLPMOSNH.js} +2 -2
- package/dist/{chunk-BGRTZOJB.js → chunk-DMTSKY4W.js} +8 -8
- package/dist/{chunk-X7Y7WX73.js → chunk-DQEMWVMT.js} +1 -1
- package/dist/{chunk-QS5Q5RBV.js → chunk-E4FRR4MA.js} +8 -8
- package/dist/{chunk-NETQXOPY.js → chunk-EH3HNCAM.js} +12 -7
- package/dist/{chunk-NETQXOPY.js.map → chunk-EH3HNCAM.js.map} +1 -1
- package/dist/{chunk-RJQAP333.js → chunk-ETE3SGAH.js} +2 -2
- package/dist/{chunk-YNDLCWXS.js → chunk-EZ25VE3G.js} +4 -4
- package/dist/{chunk-RLU2Y5GV.js → chunk-F2FJTOV6.js} +4 -4
- package/dist/{chunk-V2ZA4YWE.js → chunk-F5H6YG5P.js} +2 -2
- package/dist/{chunk-K75A5XWU.js → chunk-F6PTJLEM.js} +4 -4
- package/dist/chunk-F6PTJLEM.js.map +1 -0
- package/dist/{chunk-4CMXI55L.js → chunk-FSUFKIFS.js} +2 -2
- package/dist/{chunk-ZAEPD4C2.js → chunk-G3NTZZWT.js} +2 -2
- package/dist/{chunk-ZMWSYUUL.js → chunk-GCBIXUPT.js} +2 -2
- package/dist/{chunk-WZYHPAG5.js → chunk-GIM2AGFL.js} +3 -3
- package/dist/{chunk-VKWFNPBH.js → chunk-GR76OKET.js} +14 -5
- package/dist/{chunk-VKWFNPBH.js.map → chunk-GR76OKET.js.map} +1 -1
- package/dist/{chunk-J7FVMLBR.js → chunk-GWEZNCGA.js} +2 -2
- package/dist/{chunk-LFVZD5EC.js → chunk-GWNSKQDA.js} +3 -3
- package/dist/{chunk-MJC7UKH7.js → chunk-H2N6SLTR.js} +2 -2
- package/dist/{chunk-J4WGTN2N.js → chunk-HK44SV6K.js} +4 -4
- package/dist/{chunk-JDX2OA4R.js → chunk-HNHIHXSD.js} +2 -2
- package/dist/{chunk-IS2IDFJP.js → chunk-HO2P3FAX.js} +22 -22
- package/dist/chunk-HO2P3FAX.js.map +1 -0
- package/dist/{chunk-VQYWKCDR.js → chunk-HPMCKAET.js} +3 -3
- package/dist/{chunk-ROEFLU37.js → chunk-HSJU6JFT.js} +16 -86
- package/dist/chunk-HSJU6JFT.js.map +1 -0
- package/dist/{chunk-MVG3KXON.js → chunk-I65KB36L.js} +25 -25
- package/dist/chunk-IFBSZGW3.js +42 -0
- package/dist/chunk-IFBSZGW3.js.map +1 -0
- package/dist/{chunk-SFHLQPBF.js → chunk-IUTYNDFS.js} +118 -112
- package/dist/chunk-IUTYNDFS.js.map +1 -0
- package/dist/{chunk-AEOOGXMQ.js → chunk-J2MGTGKC.js} +4 -4
- package/dist/chunk-JATHBCAV.js +94 -0
- package/dist/chunk-JATHBCAV.js.map +1 -0
- package/dist/{chunk-PKUJNICO.js → chunk-JC2OBYYD.js} +2 -2
- package/dist/{chunk-5U7K4W6K.js → chunk-JDOBQPJY.js} +3 -3
- package/dist/{chunk-TG3FAM2S.js → chunk-JL4TQYM5.js} +48 -1
- package/dist/{chunk-TG3FAM2S.js.map → chunk-JL4TQYM5.js.map} +1 -1
- package/dist/{chunk-VQWBUPSJ.js → chunk-JMAP6L6Q.js} +2 -2
- package/dist/{chunk-7Z54NXVS.js → chunk-K27INAPR.js} +2 -2
- package/dist/{chunk-YTK5MVNF.js → chunk-KCKXOS4Y.js} +14 -13
- package/dist/chunk-KCKXOS4Y.js.map +1 -0
- package/dist/{chunk-7D6SER6A.js → chunk-KJQ4Y2PY.js} +14 -14
- package/dist/{chunk-DAZANIYU.js → chunk-L732NBPR.js} +87 -88
- package/dist/{chunk-DAZANIYU.js.map → chunk-L732NBPR.js.map} +1 -1
- package/dist/{chunk-QPVNK2VE.js → chunk-LCVYO3ON.js} +2 -2
- package/dist/{chunk-HIP6DKJJ.js → chunk-LQVXSRAJ.js} +2 -2
- package/dist/{chunk-A7GQBJP5.js → chunk-LVFI5LG7.js} +7 -7
- package/dist/{chunk-TO36VPZI.js → chunk-LWF6GOII.js} +2 -2
- package/dist/{chunk-62HFZNCJ.js → chunk-N7B6V7SG.js} +13 -12
- package/dist/{chunk-62HFZNCJ.js.map → chunk-N7B6V7SG.js.map} +1 -1
- package/dist/{chunk-ES5BUPYB.js → chunk-OCWFKD5Q.js} +2 -2
- package/dist/{chunk-IOPIGX7Y.js → chunk-OP722LOG.js} +2 -2
- package/dist/{chunk-62D2PAAM.js → chunk-PAAJWQH5.js} +4 -4
- package/dist/{chunk-V6EGNVUT.js → chunk-PIWFNPQT.js} +4 -4
- package/dist/{chunk-JOP7W24J.js → chunk-PLJ2MQFT.js} +4 -4
- package/dist/{chunk-37CAEC7E.js → chunk-PWPIERBM.js} +4 -4
- package/dist/{chunk-BXIJSPCL.js → chunk-Q62GA5U2.js} +2 -2
- package/dist/{chunk-CC37E3QM.js → chunk-QKCXRS5A.js} +16 -1
- package/dist/chunk-QKCXRS5A.js.map +1 -0
- package/dist/{chunk-I3H5LFOI.js → chunk-QNJQCLI6.js} +4 -4
- package/dist/{chunk-BYQX4IOG.js → chunk-R45VFSEV.js} +2 -2
- package/dist/{chunk-XVDZFTN5.js → chunk-RFIJH2OE.js} +5 -5
- package/dist/{chunk-K4A6UVPB.js → chunk-RJ7Z7YXK.js} +11 -11
- package/dist/{chunk-ZZCR2QYL.js → chunk-RSSLDMFX.js} +2 -2
- package/dist/{chunk-ZZCR2QYL.js.map → chunk-RSSLDMFX.js.map} +1 -1
- package/dist/{chunk-QE6YVNP5.js → chunk-RTXHUVOD.js} +53 -19
- package/dist/chunk-RTXHUVOD.js.map +1 -0
- package/dist/{chunk-HJUP3K6L.js → chunk-RXYO6NA6.js} +2 -2
- package/dist/{chunk-TBXAY2SS.js → chunk-SGHGCFVV.js} +5 -5
- package/dist/{chunk-THTF2W7M.js → chunk-TRTLWUDD.js} +19 -18
- package/dist/chunk-TRTLWUDD.js.map +1 -0
- package/dist/{chunk-2SKMZUOW.js → chunk-U26LB4WA.js} +7 -7
- package/dist/{chunk-6P4REYKL.js → chunk-UDAUULK2.js} +28 -2
- package/dist/{chunk-6P4REYKL.js.map → chunk-UDAUULK2.js.map} +1 -1
- package/dist/{chunk-KTOXQMW3.js → chunk-UHSOPTNB.js} +14 -4
- package/dist/chunk-UHSOPTNB.js.map +1 -0
- package/dist/{chunk-VHKXRYQN.js → chunk-VBK6SRNE.js} +2 -2
- package/dist/{chunk-KQAFEZQX.js → chunk-VDX2J7OX.js} +2 -2
- package/dist/{chunk-Z4GUX2M6.js → chunk-VSN2DMQK.js} +2 -2
- package/dist/{chunk-ZHXSOMYH.js → chunk-VVX5PZFS.js} +2 -2
- package/dist/{chunk-G2XZFGYN.js → chunk-WGZHSQDV.js} +4 -4
- package/dist/{chunk-H3TKENU4.js → chunk-WIKO4SCR.js} +5 -5
- package/dist/{chunk-MDIEES23.js → chunk-WN2OXGGH.js} +1 -1
- package/dist/chunk-WN2OXGGH.js.map +1 -0
- package/dist/{chunk-LKFVVN7R.js → chunk-WNPRRBOE.js} +2 -2
- package/dist/{chunk-SV4Z2S67.js → chunk-WUUGE7QC.js} +54 -21
- package/dist/chunk-WUUGE7QC.js.map +1 -0
- package/dist/{chunk-ZZUVBZL2.js → chunk-X2QPKLPL.js} +2 -2
- package/dist/{chunk-RDLPFM7I.js → chunk-XJLTQTAO.js} +2 -2
- package/dist/{chunk-ZRMMXWYI.js → chunk-YR5QT4SR.js} +32 -9
- package/dist/chunk-YR5QT4SR.js.map +1 -0
- package/dist/{chunk-CARRTDKC.js → chunk-Z22M4JCY.js} +4 -3
- package/dist/chunk-Z22M4JCY.js.map +1 -0
- package/dist/{chunk-XM46Y66S.js → chunk-ZFU6QNRN.js} +7 -7
- package/dist/{chunk-SUEOG2S4.js → chunk-ZGXHTV5Y.js} +2 -2
- package/dist/{chunk-ZX3AYNNV.js → chunk-ZOGKZ2XT.js} +3 -2
- package/dist/chunk-ZOGKZ2XT.js.map +1 -0
- package/dist/{chunk-46Z3VGWF.js → chunk-ZYRAY5FL.js} +3 -3
- package/dist/{chunk-3XPN7AVY.js → chunk-ZYSOT6HD.js} +2 -2
- package/dist/{cli-BWri5-am.d.ts → cli-Cx9s_VRn.d.ts} +5 -5
- package/dist/cli.d.ts +16 -15
- package/dist/cli.js +129 -127
- package/dist/coding/export-okf-codegraph.d.ts +1 -1
- package/dist/coding/export-okf-codegraph.js +22 -22
- package/dist/coding/pre-action-gate.d.ts +1 -1
- package/dist/compounding/engine.d.ts +2 -2
- package/dist/compounding/engine.js +24 -24
- 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 +10 -10
- package/dist/connectors/codex-materialize-runner.d.ts +1 -1
- package/dist/connectors/codex-materialize-runner.js +24 -24
- package/dist/connectors/codex-materialize.d.ts +1 -1
- package/dist/connectors/codex-materialize.js +2 -2
- package/dist/connectors/index.d.ts +1 -1
- package/dist/connectors/index.js +25 -25
- package/dist/consolidation-provenance-check.d.ts +2 -2
- package/dist/consolidation-undo.d.ts +2 -2
- package/dist/contradiction/index.d.ts +4 -4
- package/dist/contradiction/index.js +7 -7
- package/dist/{contradiction-scan-BSGKZHYJ.js → contradiction-scan-GVD4JJ7B.js} +4 -4
- package/dist/converge-config.d.ts +1 -1
- package/dist/convergence-refresh.d.ts +2 -2
- package/dist/convergence-refresh.js +26 -26
- package/dist/conversation-index/backend.d.ts +1 -1
- 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 -25
- package/dist/cross-lingual-recall.d.ts +1 -1
- package/dist/dashboard-runtime.js +2 -2
- package/dist/day-summary.d.ts +1 -1
- package/dist/deep-recall-config.d.ts +12 -1
- package/dist/deep-recall-config.js +5 -3
- package/dist/deep-recall-http-glue.d.ts +17 -14
- package/dist/deep-recall-http-glue.js +7 -4
- package/dist/deep-recall-mcp-tools.d.ts +14 -13
- package/dist/deep-recall-policy-llm.d.ts +12 -2
- package/dist/deep-recall-policy-llm.js +3 -3
- package/dist/deep-recall-seeds.d.ts +4 -1
- package/dist/deep-recall-seeds.js +1 -1
- package/dist/deep-recall.d.ts +12 -1
- package/dist/deep-recall.js +3 -2
- package/dist/delinearize.d.ts +1 -1
- package/dist/dependency-propagation-config.d.ts +1 -1
- package/dist/{dependency-propagation-delivery-ueZlKTQB.d.ts → dependency-propagation-delivery-C2QFQ97b.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-origin-fields.d.ts +1 -1
- package/dist/entity-retrieval.d.ts +2 -2
- package/dist/entity-retrieval.js +23 -23
- package/dist/entity-schema.d.ts +1 -1
- package/dist/episodic-context.d.ts +1 -1
- package/dist/eval-trajectory-contracts.d.ts +1 -1
- package/dist/eval-trajectory-store.d.ts +1 -1
- package/dist/eval-trajectory.d.ts +1 -1
- package/dist/explicit-capture.d.ts +11 -11
- package/dist/explicit-capture.js +6 -6
- package/dist/external-wiki-access.d.ts +14 -13
- package/dist/external-wiki-access.js +80 -79
- 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 +14 -13
- package/dist/extraction-error-classification.d.ts +1 -1
- package/dist/extraction-faithfulness.d.ts +2 -2
- package/dist/extraction-faithfulness.js +3 -3
- package/dist/extraction-judge-telemetry.d.ts +2 -2
- package/dist/extraction-judge-training.d.ts +2 -2
- package/dist/extraction-judge.d.ts +2 -2
- package/dist/extraction-judge.js +3 -3
- 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-span-config.d.ts +1 -1
- package/dist/extraction-span-materialize.d.ts +1 -1
- package/dist/extraction.d.ts +2 -2
- package/dist/extraction.js +38 -38
- package/dist/fallback-llm-codex-subscription.d.ts +15 -5
- package/dist/fallback-llm-codex-subscription.js +3 -1
- package/dist/fallback-llm.d.ts +1 -1
- package/dist/fallback-llm.js +2 -2
- package/dist/{first-start-migration-ZWMV5CX4.js → first-start-migration-L3UFX5CU.js} +4 -4
- package/dist/{generic-recall-paths-CpyVmA88.d.ts → generic-recall-paths-CeKQsQEn.d.ts} +1 -1
- package/dist/graph-append-error.d.ts +1 -1
- 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-jsonl.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 +3 -3
- package/dist/importance.d.ts +1 -1
- package/dist/importers/index.d.ts +1 -1
- package/dist/importers/test-utils.d.ts +1 -1
- package/dist/in-flight-reads.d.ts +1 -1
- package/dist/{index-BvUA4S7M.d.ts → index-Bau-Wl0H.d.ts} +3 -3
- package/dist/index.d.ts +703 -702
- package/dist/index.js +331 -327
- 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 +8 -8
- 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-BsJGulur.d.ts → local-llm-Bj-m01Ro.d.ts} +1 -1
- package/dist/local-llm-helpers.d.ts +2 -2
- package/dist/local-llm.d.ts +2 -2
- package/dist/local-llm.js +2 -2
- package/dist/local-model-endpoint.d.ts +1 -1
- package/dist/location/index.d.ts +6 -209
- package/dist/location/index.js +77 -71
- package/dist/maintenance/memory-governance.d.ts +1 -1
- package/dist/maintenance/memory-governance.js +23 -23
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.d.ts +2 -2
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +23 -23
- package/dist/maintenance/rebuild-memory-projection.d.ts +2 -2
- package/dist/maintenance/rebuild-memory-projection.js +25 -25
- package/dist/{maintenance-CYubtIRr.d.ts → maintenance-Ye-y-c7f.d.ts} +7 -6
- package/dist/mcp-memory-inspector-app.d.ts +14 -13
- package/dist/memory-action-policy.d.ts +1 -1
- package/dist/memory-cache.d.ts +1 -1
- package/dist/memory-controller.d.ts +1 -1
- package/dist/memory-lifecycle-ledger-utils.d.ts +1 -1
- package/dist/memory-projection-store.d.ts +1 -1
- package/dist/memory-provenance.d.ts +1 -1
- package/dist/memory-snapshot.d.ts +1 -1
- package/dist/memory-subject-cli.d.ts +14 -13
- package/dist/memory-subject.d.ts +14 -13
- 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 +23 -23
- package/dist/namespaces/principal.d.ts +1 -1
- package/dist/namespaces/search.d.ts +1 -1
- package/dist/namespaces/search.js +3 -3
- package/dist/namespaces/storage.d.ts +3 -3
- package/dist/namespaces/storage.js +22 -22
- package/dist/native-knowledge.d.ts +1 -1
- package/dist/offline-sync-impression-drain.d.ts +1 -1
- package/dist/offline-sync-impression-drain.js +5 -5
- package/dist/operator-doctor-corpus.d.ts +1 -1
- package/dist/operator-doctor-corpus.js +26 -26
- package/dist/operator-doctor-replica.d.ts +1 -1
- package/dist/operator-toolkit.d.ts +3 -3
- package/dist/operator-toolkit.js +44 -44
- package/dist/orchestration/compression-guideline-coordinator.d.ts +2 -2
- package/dist/orchestration/maintenance.d.ts +4 -4
- package/dist/orchestration/maintenance.js +39 -39
- package/dist/{orchestrator-BWDRJ_0d.d.ts → orchestrator-fFDDYUUV.d.ts} +20 -10
- package/dist/orchestrator.d.ts +11 -11
- package/dist/orchestrator.js +170 -168
- package/dist/patterns-cli.d.ts +1 -1
- package/dist/{pipeline-7JMn2yMH.d.ts → pipeline-D_j5n_Ih.d.ts} +1 -1
- package/dist/policy-runtime.d.ts +1 -1
- package/dist/proactive-contention.d.ts +2 -2
- package/dist/provenance.d.ts +1 -1
- package/dist/{public-http-CJWs3mo9.d.ts → public-http-CjiSqxUx.d.ts} +1 -1
- package/dist/{qmd-CxCH9G9m.d.ts → qmd-CnxVjKrv.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-navigate-access.d.ts +1 -1
- package/dist/recall-navigate-access.js +2 -2
- package/dist/recall-navigate-disclosure.d.ts +1 -1
- package/dist/recall-navigate-disclosure.js +1 -1
- package/dist/recall-navigate.d.ts +1 -1
- package/dist/recall-navigate.js +2 -2
- package/dist/recall-planner-llm.d.ts +1 -1
- package/dist/recall-planner-llm.js +2 -2
- package/dist/recall-state-view-admission.d.ts +2 -2
- package/dist/recall-state-view-admission.js +8 -8
- package/dist/recall-state-view-anchors.d.ts +1 -1
- package/dist/recall-state-view-anchors.js +2 -2
- package/dist/recall-state-view-inject.js +2 -2
- package/dist/recall-state-view-render.js +2 -2
- package/dist/recall-state-view-widen.js +2 -2
- package/dist/recall-state-view-wire.js +3 -3
- package/dist/recall-state-view.d.ts +9 -1
- package/dist/recall-state-view.js +5 -3
- 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 +1 -1
- package/dist/reconcile/cursor.js +2 -2
- package/dist/reconcile/manifest.d.ts +1 -1
- package/dist/reconcile/manifest.js +4 -4
- package/dist/reconcile/plan.d.ts +1 -1
- package/dist/reconcile/plan.js +2 -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/{resolution-4GG3QZRJ.js → resolution-LXFQQ4AE.js} +8 -8
- package/dist/resolution-LXFQQ4AE.js.map +1 -0
- package/dist/resolve-auth-token.d.ts +1 -1
- package/dist/resume-bundles.js +12 -12
- 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 +160 -160
- package/dist/{scope-profiles-BGAUqhBR.d.ts → scope-profiles-BajH5zAT.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 +2 -2
- package/dist/search/index.d.ts +1 -1
- package/dist/search/index.js +4 -4
- 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-CCeRD9pV.d.ts → semantic-consolidation-Bu6d3O7R.d.ts} +1 -1
- package/dist/semantic-consolidation.d.ts +2 -2
- package/dist/semantic-consolidation.js +25 -25
- package/dist/semantic-rule-promotion.js +22 -22
- package/dist/semantic-rule-verifier.d.ts +1 -1
- package/dist/semantic-rule-verifier.js +22 -22
- package/dist/{service-BwpzRduk.d.ts → service-ChFwWtLS.d.ts} +13 -2
- 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 +7 -7
- package/dist/shared-context/manager.js +2 -2
- package/dist/shared-context/write-output-controls.d.ts +34 -0
- package/dist/shared-context/write-output-controls.js +10 -0
- package/dist/shared-context/write-output-controls.js.map +1 -0
- package/dist/signal.d.ts +1 -1
- package/dist/source-agent-qualifier.d.ts +1 -1
- package/dist/source-agent-qualifier.js +33 -33
- package/dist/source-attribution.d.ts +23 -1
- package/dist/source-attribution.js +13 -3
- package/dist/standup/build.js +23 -23
- package/dist/{storage-BprAGBG0.d.ts → storage-BDKQdsmB.d.ts} +1 -1
- package/dist/storage.d.ts +2 -2
- package/dist/storage.js +21 -21
- package/dist/subject-config.d.ts +1 -1
- package/dist/subject-config.js +2 -2
- package/dist/summarizer.d.ts +1 -1
- package/dist/summarizer.js +6 -6
- package/dist/summary-snapshot.d.ts +1 -1
- package/dist/support-passport/index.d.ts +17 -16
- package/dist/support-passport/index.js +82 -81
- package/dist/tagging-CwK6um2q.d.ts +240 -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 +1 -1
- package/dist/tier-routing.js +3 -3
- package/dist/{tier-stats-LUSUUNU6.js → tier-stats-VK5PCO2L.js} +4 -4
- package/dist/topics.d.ts +1 -1
- package/dist/transcript.d.ts +1 -1
- package/dist/transfer/backup.js +2 -2
- package/dist/transfer/capsule-export.js +2 -2
- package/dist/transfer/capsule-import.js +3 -3
- package/dist/transfer/export-okf.d.ts +1 -1
- package/dist/transfer/export-okf.js +22 -22
- package/dist/transfer/types.d.ts +78 -78
- package/dist/trust-score-stage.d.ts +1 -1
- package/dist/trust-score.d.ts +1 -1
- package/dist/{types-nJV23pa3.d.ts → types-B65IoepH.d.ts} +6 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.js +1 -1
- package/dist/utility-runtime.d.ts +1 -1
- package/dist/verified-recall.js +22 -22
- package/dist/who-knows-cli.d.ts +14 -13
- package/dist/who-knows-cli.js +23 -23
- package/dist/who-knows.d.ts +14 -13
- package/dist/who-knows.js +22 -22
- package/dist/write-envelope.d.ts +1 -1
- package/package.json +12 -2
- package/src/access-http.test.ts +1 -0
- package/src/access-http.ts +1 -1
- package/src/access-mcp-shared-context-tools.ts +103 -0
- package/src/access-mcp.ts +7 -80
- package/src/access-observe-write-category.ts +1 -0
- package/src/access-observe-write-surface.ts +3 -3
- package/src/access-operations-batch.ts +47 -4
- package/src/access-schema.ts +1 -0
- package/src/access-service.ts +18 -12
- package/src/activity/timeline/regenerate.test.ts +48 -0
- package/src/activity/timeline/regenerate.ts +7 -5
- package/src/cli/deep-recall-commands.ts +22 -10
- package/src/config.ts +5 -0
- package/src/dedup/merge.test.ts +283 -0
- package/src/deep-recall-boundary.test.ts +66 -0
- package/src/deep-recall-cli.test.ts +82 -0
- package/src/deep-recall-config.test.ts +56 -0
- package/src/deep-recall-config.ts +32 -0
- package/src/deep-recall-http-glue.ts +10 -10
- package/src/deep-recall-policy-llm.test.ts +242 -0
- package/src/deep-recall-policy-llm.ts +37 -7
- package/src/deep-recall-seeds.test.ts +53 -0
- package/src/deep-recall-seeds.ts +7 -1
- package/src/deep-recall-surface.test.ts +93 -0
- package/src/deep-recall.test.ts +121 -0
- package/src/deep-recall.ts +88 -28
- package/src/fallback-llm-codex-subscription.ts +27 -5
- package/src/fallback-llm.test.ts +120 -0
- package/src/fallback-llm.ts +17 -16
- package/src/location/phase5-wiring.test.ts +408 -0
- package/src/location/tagging.ts +58 -0
- package/src/meetings/config.test.ts +58 -0
- package/src/orchestration/extraction-persist.ts +1 -1
- package/src/orchestration/orchestrator-helpers.ts +2 -0
- package/src/orchestration/recall-entry.ts +15 -1
- package/src/orchestration/recall-internal.ts +1 -0
- package/src/orchestration/recall-section-coordinator.ts +65 -28
- package/src/orchestration/recall-state-view-pipeline.test.ts +8 -2
- package/src/orchestration/semantic-merge-commit-effects.ts +45 -16
- package/src/orchestration/semantic-merge-persist.ts +23 -36
- package/src/orchestration/workspace-ops.ts +14 -0
- package/src/providers/codex-subscription.test.ts +127 -0
- package/src/providers/codex-subscription.ts +1 -1
- package/src/recall-state-view-budget.test.ts +424 -0
- package/src/recall-state-view.ts +30 -16
- package/src/shared-context/envelope-io.ts +25 -0
- package/src/shared-context/envelope-wiring.test.ts +4 -2
- package/src/shared-context/manager.ts +1 -0
- package/src/shared-context/write-output-controls.test.ts +192 -0
- package/src/shared-context/write-output-controls.ts +72 -0
- package/src/source-attribution.test.ts +39 -0
- package/src/source-attribution.ts +72 -0
- package/src/types.ts +5 -0
- package/src/wearables/pipeline.ts +19 -0
- package/src/wearables/service.ts +8 -0
- package/dist/chunk-5LYSEZOF.js.map +0 -1
- package/dist/chunk-CARRTDKC.js.map +0 -1
- package/dist/chunk-CC37E3QM.js.map +0 -1
- package/dist/chunk-IS2IDFJP.js.map +0 -1
- package/dist/chunk-K75A5XWU.js.map +0 -1
- package/dist/chunk-KTOXQMW3.js.map +0 -1
- package/dist/chunk-MDIEES23.js.map +0 -1
- package/dist/chunk-OEDW4ER7.js.map +0 -1
- package/dist/chunk-QE6YVNP5.js.map +0 -1
- package/dist/chunk-ROEFLU37.js.map +0 -1
- package/dist/chunk-SFHLQPBF.js.map +0 -1
- package/dist/chunk-SV4Z2S67.js.map +0 -1
- package/dist/chunk-THTF2W7M.js.map +0 -1
- package/dist/chunk-UZ6JYPJ6.js.map +0 -1
- package/dist/chunk-YTK5MVNF.js.map +0 -1
- package/dist/chunk-ZRMMXWYI.js.map +0 -1
- package/dist/chunk-ZX3AYNNV.js.map +0 -1
- /package/dist/{capsule-crypto-7FJQINUR.js.map → access-mcp-shared-context-tools.js.map} +0 -0
- /package/dist/{contradiction-scan-BSGKZHYJ.js.map → capsule-crypto-YO5QJ6L3.js.map} +0 -0
- /package/dist/{capsule-merge-IPG4IOFP.js.map → capsule-merge-3MNURAQ3.js.map} +0 -0
- /package/dist/{chunk-JAJIMTFB.js.map → chunk-2PDMIPMP.js.map} +0 -0
- /package/dist/{chunk-6L2II3KS.js.map → chunk-3D75XIYO.js.map} +0 -0
- /package/dist/{chunk-XCPNH2MG.js.map → chunk-3KJTSCSX.js.map} +0 -0
- /package/dist/{chunk-YTZN2UZO.js.map → chunk-3RLWUW7G.js.map} +0 -0
- /package/dist/{chunk-J272ODKJ.js.map → chunk-42DJ235G.js.map} +0 -0
- /package/dist/{chunk-NVVZPBKI.js.map → chunk-46FVFU7S.js.map} +0 -0
- /package/dist/{chunk-JUDT33RX.js.map → chunk-4AX5OYKC.js.map} +0 -0
- /package/dist/{chunk-GSSDHAYH.js.map → chunk-4IGOLIWM.js.map} +0 -0
- /package/dist/{chunk-23HFXQ5J.js.map → chunk-6EGIQEKC.js.map} +0 -0
- /package/dist/{chunk-TVVEYCNW.js.map → chunk-7K5Q6COX.js.map} +0 -0
- /package/dist/{chunk-GO5LOHCD.js.map → chunk-7L54ARML.js.map} +0 -0
- /package/dist/{chunk-TEMKBSV6.js.map → chunk-7PSRCGWT.js.map} +0 -0
- /package/dist/{chunk-ICNJ6J46.js.map → chunk-AAAFZW3U.js.map} +0 -0
- /package/dist/{chunk-K4JKAXMO.js.map → chunk-AAX22E4K.js.map} +0 -0
- /package/dist/{chunk-KY236SP5.js.map → chunk-AHHFBJX7.js.map} +0 -0
- /package/dist/{chunk-TZ44E732.js.map → chunk-AIVRD66I.js.map} +0 -0
- /package/dist/{chunk-YRIFXXMI.js.map → chunk-AOGICQMH.js.map} +0 -0
- /package/dist/{chunk-KOTG3RXE.js.map → chunk-AUSRUOMQ.js.map} +0 -0
- /package/dist/{chunk-C5R73BON.js.map → chunk-BIANISES.js.map} +0 -0
- /package/dist/{chunk-IMBQFHRV.js.map → chunk-BPXJINHW.js.map} +0 -0
- /package/dist/{chunk-2NLLXCJG.js.map → chunk-BXLOS5AJ.js.map} +0 -0
- /package/dist/{chunk-2J3V5QEO.js.map → chunk-C3QXITIP.js.map} +0 -0
- /package/dist/{chunk-2SNCQHJZ.js.map → chunk-CQ4BTPX6.js.map} +0 -0
- /package/dist/{chunk-3QEVOQF5.js.map → chunk-CTETTVDN.js.map} +0 -0
- /package/dist/{chunk-DFVSJFHK.js.map → chunk-DBB5JPSL.js.map} +0 -0
- /package/dist/{chunk-W23JARAQ.js.map → chunk-DLPMOSNH.js.map} +0 -0
- /package/dist/{chunk-BGRTZOJB.js.map → chunk-DMTSKY4W.js.map} +0 -0
- /package/dist/{chunk-X7Y7WX73.js.map → chunk-DQEMWVMT.js.map} +0 -0
- /package/dist/{chunk-QS5Q5RBV.js.map → chunk-E4FRR4MA.js.map} +0 -0
- /package/dist/{chunk-RJQAP333.js.map → chunk-ETE3SGAH.js.map} +0 -0
- /package/dist/{chunk-YNDLCWXS.js.map → chunk-EZ25VE3G.js.map} +0 -0
- /package/dist/{chunk-RLU2Y5GV.js.map → chunk-F2FJTOV6.js.map} +0 -0
- /package/dist/{chunk-V2ZA4YWE.js.map → chunk-F5H6YG5P.js.map} +0 -0
- /package/dist/{chunk-4CMXI55L.js.map → chunk-FSUFKIFS.js.map} +0 -0
- /package/dist/{chunk-ZAEPD4C2.js.map → chunk-G3NTZZWT.js.map} +0 -0
- /package/dist/{chunk-ZMWSYUUL.js.map → chunk-GCBIXUPT.js.map} +0 -0
- /package/dist/{chunk-WZYHPAG5.js.map → chunk-GIM2AGFL.js.map} +0 -0
- /package/dist/{chunk-J7FVMLBR.js.map → chunk-GWEZNCGA.js.map} +0 -0
- /package/dist/{chunk-LFVZD5EC.js.map → chunk-GWNSKQDA.js.map} +0 -0
- /package/dist/{chunk-MJC7UKH7.js.map → chunk-H2N6SLTR.js.map} +0 -0
- /package/dist/{chunk-J4WGTN2N.js.map → chunk-HK44SV6K.js.map} +0 -0
- /package/dist/{chunk-JDX2OA4R.js.map → chunk-HNHIHXSD.js.map} +0 -0
- /package/dist/{chunk-VQYWKCDR.js.map → chunk-HPMCKAET.js.map} +0 -0
- /package/dist/{chunk-MVG3KXON.js.map → chunk-I65KB36L.js.map} +0 -0
- /package/dist/{chunk-AEOOGXMQ.js.map → chunk-J2MGTGKC.js.map} +0 -0
- /package/dist/{chunk-PKUJNICO.js.map → chunk-JC2OBYYD.js.map} +0 -0
- /package/dist/{chunk-5U7K4W6K.js.map → chunk-JDOBQPJY.js.map} +0 -0
- /package/dist/{chunk-VQWBUPSJ.js.map → chunk-JMAP6L6Q.js.map} +0 -0
- /package/dist/{chunk-7Z54NXVS.js.map → chunk-K27INAPR.js.map} +0 -0
- /package/dist/{chunk-7D6SER6A.js.map → chunk-KJQ4Y2PY.js.map} +0 -0
- /package/dist/{chunk-QPVNK2VE.js.map → chunk-LCVYO3ON.js.map} +0 -0
- /package/dist/{chunk-HIP6DKJJ.js.map → chunk-LQVXSRAJ.js.map} +0 -0
- /package/dist/{chunk-A7GQBJP5.js.map → chunk-LVFI5LG7.js.map} +0 -0
- /package/dist/{chunk-TO36VPZI.js.map → chunk-LWF6GOII.js.map} +0 -0
- /package/dist/{chunk-ES5BUPYB.js.map → chunk-OCWFKD5Q.js.map} +0 -0
- /package/dist/{chunk-IOPIGX7Y.js.map → chunk-OP722LOG.js.map} +0 -0
- /package/dist/{chunk-62D2PAAM.js.map → chunk-PAAJWQH5.js.map} +0 -0
- /package/dist/{chunk-V6EGNVUT.js.map → chunk-PIWFNPQT.js.map} +0 -0
- /package/dist/{chunk-JOP7W24J.js.map → chunk-PLJ2MQFT.js.map} +0 -0
- /package/dist/{chunk-37CAEC7E.js.map → chunk-PWPIERBM.js.map} +0 -0
- /package/dist/{chunk-BXIJSPCL.js.map → chunk-Q62GA5U2.js.map} +0 -0
- /package/dist/{chunk-I3H5LFOI.js.map → chunk-QNJQCLI6.js.map} +0 -0
- /package/dist/{chunk-BYQX4IOG.js.map → chunk-R45VFSEV.js.map} +0 -0
- /package/dist/{chunk-XVDZFTN5.js.map → chunk-RFIJH2OE.js.map} +0 -0
- /package/dist/{chunk-K4A6UVPB.js.map → chunk-RJ7Z7YXK.js.map} +0 -0
- /package/dist/{chunk-HJUP3K6L.js.map → chunk-RXYO6NA6.js.map} +0 -0
- /package/dist/{chunk-TBXAY2SS.js.map → chunk-SGHGCFVV.js.map} +0 -0
- /package/dist/{chunk-2SKMZUOW.js.map → chunk-U26LB4WA.js.map} +0 -0
- /package/dist/{chunk-VHKXRYQN.js.map → chunk-VBK6SRNE.js.map} +0 -0
- /package/dist/{chunk-KQAFEZQX.js.map → chunk-VDX2J7OX.js.map} +0 -0
- /package/dist/{chunk-Z4GUX2M6.js.map → chunk-VSN2DMQK.js.map} +0 -0
- /package/dist/{chunk-ZHXSOMYH.js.map → chunk-VVX5PZFS.js.map} +0 -0
- /package/dist/{chunk-G2XZFGYN.js.map → chunk-WGZHSQDV.js.map} +0 -0
- /package/dist/{chunk-H3TKENU4.js.map → chunk-WIKO4SCR.js.map} +0 -0
- /package/dist/{chunk-LKFVVN7R.js.map → chunk-WNPRRBOE.js.map} +0 -0
- /package/dist/{chunk-ZZUVBZL2.js.map → chunk-X2QPKLPL.js.map} +0 -0
- /package/dist/{chunk-RDLPFM7I.js.map → chunk-XJLTQTAO.js.map} +0 -0
- /package/dist/{chunk-XM46Y66S.js.map → chunk-ZFU6QNRN.js.map} +0 -0
- /package/dist/{chunk-SUEOG2S4.js.map → chunk-ZGXHTV5Y.js.map} +0 -0
- /package/dist/{chunk-46Z3VGWF.js.map → chunk-ZYRAY5FL.js.map} +0 -0
- /package/dist/{chunk-3XPN7AVY.js.map → chunk-ZYSOT6HD.js.map} +0 -0
- /package/dist/{resolution-4GG3QZRJ.js.map → contradiction-scan-GVD4JJ7B.js.map} +0 -0
- /package/dist/{first-start-migration-ZWMV5CX4.js.map → first-start-migration-L3UFX5CU.js.map} +0 -0
- /package/dist/{tier-stats-LUSUUNU6.js.map → tier-stats-VK5PCO2L.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getOperation
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IUTYNDFS.js";
|
|
4
4
|
import {
|
|
5
5
|
EngramAccessInputError
|
|
6
6
|
} from "./chunk-2Z24E5W2.js";
|
|
@@ -21,4 +21,4 @@ async function respondBriefingHttp(options) {
|
|
|
21
21
|
export {
|
|
22
22
|
respondBriefingHttp
|
|
23
23
|
};
|
|
24
|
-
//# sourceMappingURL=chunk-
|
|
24
|
+
//# sourceMappingURL=chunk-OCWFKD5Q.js.map
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "./chunk-YCVB7X56.js";
|
|
12
12
|
import {
|
|
13
13
|
isSupportPassportPrivateMemory
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-PWPIERBM.js";
|
|
15
15
|
import {
|
|
16
16
|
inferMemoryStatus,
|
|
17
17
|
toMemoryPathRel
|
|
@@ -318,4 +318,4 @@ export {
|
|
|
318
318
|
readProjectedHarmonicGraph,
|
|
319
319
|
searchHarmonicRetrieval
|
|
320
320
|
};
|
|
321
|
-
//# sourceMappingURL=chunk-
|
|
321
|
+
//# sourceMappingURL=chunk-OP722LOG.js.map
|
|
@@ -2,9 +2,6 @@ import {
|
|
|
2
2
|
CONVERGE_CONFLICT_POLICIES,
|
|
3
3
|
DEFAULT_CONVERGE_CONFLICT_POLICY
|
|
4
4
|
} from "./chunk-6MINUTGJ.js";
|
|
5
|
-
import {
|
|
6
|
-
normalizeNamespaceIdentity
|
|
7
|
-
} from "./chunk-VUFL7X3H.js";
|
|
8
5
|
import {
|
|
9
6
|
validateArchiveRelativePath
|
|
10
7
|
} from "./chunk-GCGJW34D.js";
|
|
@@ -13,6 +10,9 @@ import {
|
|
|
13
10
|
isCensusMtimeMs,
|
|
14
11
|
isSha256Hex
|
|
15
12
|
} from "./chunk-LQWOFU6L.js";
|
|
13
|
+
import {
|
|
14
|
+
normalizeNamespaceIdentity
|
|
15
|
+
} from "./chunk-VUFL7X3H.js";
|
|
16
16
|
|
|
17
17
|
// src/reconcile/plan.ts
|
|
18
18
|
var ReconcilePlanInputError = class extends Error {
|
|
@@ -435,4 +435,4 @@ export {
|
|
|
435
435
|
summarizeReconcilePlan,
|
|
436
436
|
planReconciliation
|
|
437
437
|
};
|
|
438
|
-
//# sourceMappingURL=chunk-
|
|
438
|
+
//# sourceMappingURL=chunk-PAAJWQH5.js.map
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
estimateTokenCount
|
|
3
|
+
} from "./chunk-TOTT6S2V.js";
|
|
1
4
|
import {
|
|
2
5
|
SKILL_FILE_NAME,
|
|
3
6
|
renderSkillBundle
|
|
@@ -5,9 +8,6 @@ import {
|
|
|
5
8
|
import {
|
|
6
9
|
isValidSkillSlug
|
|
7
10
|
} from "./chunk-ZCUTSMR2.js";
|
|
8
|
-
import {
|
|
9
|
-
estimateTokenCount
|
|
10
|
-
} from "./chunk-TOTT6S2V.js";
|
|
11
11
|
import {
|
|
12
12
|
pathIsInside
|
|
13
13
|
} from "./chunk-C7HJ3NEI.js";
|
|
@@ -800,4 +800,4 @@ export {
|
|
|
800
800
|
truncateToTokenBudget,
|
|
801
801
|
describeMemoriesDir
|
|
802
802
|
};
|
|
803
|
-
//# sourceMappingURL=chunk-
|
|
803
|
+
//# sourceMappingURL=chunk-PIWFNPQT.js.map
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
MeilisearchBackend
|
|
3
|
+
} from "./chunk-KVO2BTA4.js";
|
|
1
4
|
import {
|
|
2
5
|
NoopSearchBackend
|
|
3
6
|
} from "./chunk-CYEPCZN5.js";
|
|
@@ -13,9 +16,6 @@ import {
|
|
|
13
16
|
import {
|
|
14
17
|
LanceDbBackend
|
|
15
18
|
} from "./chunk-D7MAYFQP.js";
|
|
16
|
-
import {
|
|
17
|
-
MeilisearchBackend
|
|
18
|
-
} from "./chunk-KVO2BTA4.js";
|
|
19
19
|
import {
|
|
20
20
|
createConversationIndexBackend
|
|
21
21
|
} from "./chunk-TFA6HPOA.js";
|
|
@@ -179,4 +179,4 @@ export {
|
|
|
179
179
|
createConversationSearchBackend,
|
|
180
180
|
createConversationIndexRuntime
|
|
181
181
|
};
|
|
182
|
-
//# sourceMappingURL=chunk-
|
|
182
|
+
//# sourceMappingURL=chunk-PLJ2MQFT.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
stripAttributesSuffix
|
|
3
3
|
} from "./chunk-JDSVLVCG.js";
|
|
4
|
-
import {
|
|
5
|
-
normalizeNamespaceIdentity
|
|
6
|
-
} from "./chunk-VUFL7X3H.js";
|
|
7
4
|
import {
|
|
8
5
|
parseIsoOffsetTimestamp
|
|
9
6
|
} from "./chunk-P7FMDTKL.js";
|
|
7
|
+
import {
|
|
8
|
+
normalizeNamespaceIdentity
|
|
9
|
+
} from "./chunk-VUFL7X3H.js";
|
|
10
10
|
|
|
11
11
|
// src/support-passport/contracts.ts
|
|
12
12
|
import { createHash } from "crypto";
|
|
@@ -400,4 +400,4 @@ export {
|
|
|
400
400
|
hasLiveSupportPassportCard,
|
|
401
401
|
projectSupportPassportCard
|
|
402
402
|
};
|
|
403
|
-
//# sourceMappingURL=chunk-
|
|
403
|
+
//# sourceMappingURL=chunk-PWPIERBM.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isRecallDisclosure
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WN2OXGGH.js";
|
|
4
4
|
import {
|
|
5
5
|
estimateTokenCount
|
|
6
6
|
} from "./chunk-TOTT6S2V.js";
|
|
@@ -306,4 +306,4 @@ export {
|
|
|
306
306
|
RecallXrayBuilder,
|
|
307
307
|
summarizeDisclosureTokens
|
|
308
308
|
};
|
|
309
|
-
//# sourceMappingURL=chunk-
|
|
309
|
+
//# sourceMappingURL=chunk-Q62GA5U2.js.map
|
|
@@ -121,6 +121,18 @@ function optionalEnvelopeAt(expiresAt) {
|
|
|
121
121
|
}
|
|
122
122
|
return parsed.at;
|
|
123
123
|
}
|
|
124
|
+
var MAX_WRITE_EXPIRES_AT_TTL_MS = 3650 * 24 * 60 * 60 * 1e3;
|
|
125
|
+
function assertBoundedFutureExpiry(expiresAt, nowMs) {
|
|
126
|
+
const expiresAtMs = Date.parse(expiresAt);
|
|
127
|
+
if (expiresAtMs <= nowMs) {
|
|
128
|
+
throw new Error("composeWriteEnvelope: expiresAt must be an instant strictly after the write time");
|
|
129
|
+
}
|
|
130
|
+
if (expiresAtMs - nowMs > MAX_WRITE_EXPIRES_AT_TTL_MS) {
|
|
131
|
+
throw new Error(
|
|
132
|
+
`composeWriteEnvelope: expiresAt exceeds the maximum TTL of ${MAX_WRITE_EXPIRES_AT_TTL_MS}ms`
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
124
136
|
function optionalEnvelopeId(supersedes) {
|
|
125
137
|
if (supersedes === void 0) return void 0;
|
|
126
138
|
const parsed = parseEnvelopeId(supersedes);
|
|
@@ -162,6 +174,9 @@ function requireProducer(value) {
|
|
|
162
174
|
function composeWriteEnvelope(input) {
|
|
163
175
|
const sharedBy = requireEnvelopeActor(input.origin);
|
|
164
176
|
const expiresAt = optionalEnvelopeAt(input.expiresAt);
|
|
177
|
+
if (expiresAt !== void 0 && Number.isFinite(input.nowMs ?? Number.NaN)) {
|
|
178
|
+
assertBoundedFutureExpiry(expiresAt, input.nowMs);
|
|
179
|
+
}
|
|
165
180
|
const supersedes = optionalEnvelopeId(input.supersedes);
|
|
166
181
|
return applyDefaultEnvelope(
|
|
167
182
|
{ sharedBy, authority: input.authority, expiresAt, supersedes },
|
|
@@ -195,4 +210,4 @@ export {
|
|
|
195
210
|
envelopeFromScalars,
|
|
196
211
|
resolveReadAuthority
|
|
197
212
|
};
|
|
198
|
-
//# sourceMappingURL=chunk-
|
|
213
|
+
//# sourceMappingURL=chunk-QKCXRS5A.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/shared-context/governance.ts","../src/shared-context/authority-precedence.ts","../src/shared-context/envelope-actor.ts","../src/shared-context/iso-instant.ts","../src/shared-context/envelope-at.ts","../src/shared-context/envelope-id.ts","../src/shared-context/envelope-io.ts"],"sourcesContent":["/**\n * Shared-item authority envelope (issue #1957).\n *\n * Pure parse/default/expiry helpers over the authority classes. Binding is\n * never inferred, and the authority token is validated exactly as supplied\n * or stored — a padded value never resolves to a privileged class.\n */\n\nexport const SHARED_AUTHORITIES = [\"informational\", \"advisory\", \"binding\"] as const;\nexport type SharedAuthority = (typeof SHARED_AUTHORITIES)[number];\n\nexport interface SharedEnvelope {\n sharedBy?: string;\n authority: SharedAuthority;\n expiresAt?: string;\n supersedes?: string;\n}\n\nexport interface SharedEnvelopeInput {\n sharedBy?: string;\n authority?: string;\n expiresAt?: string;\n supersedes?: string;\n}\n\nexport interface ApplyDefaultEnvelopeOptions {\n binding?: boolean;\n}\n\nfunction isSharedAuthority(value: string): value is SharedAuthority {\n return (SHARED_AUTHORITIES as readonly string[]).includes(value);\n}\n\nfunction optionalString(value: unknown): string | undefined {\n if (typeof value !== \"string\") return undefined;\n const trimmed = value.trim();\n return trimmed.length > 0 ? trimmed : undefined;\n}\n\ntype AuthorityToken =\n | { kind: \"absent\" }\n | { kind: \"invalid\"; raw: string }\n | { kind: \"valid\"; authority: SharedAuthority };\n\n/**\n * Read the authority token EXACTLY as supplied or stored. A padded value\n * such as `\" binding \"` is malformed data, never a normalized match for a\n * privileged class: trimming first would let stored whitespace resolve as\n * binding/advisory (AGENTS.md rule 45). Only the empty string counts as\n * \"unspecified\"; whitespace-only is invalid.\n */\nfunction readExactAuthority(value: unknown): AuthorityToken {\n if (typeof value !== \"string\" || value.length === 0) return { kind: \"absent\" };\n if (!isSharedAuthority(value)) return { kind: \"invalid\", raw: value };\n return { kind: \"valid\", authority: value };\n}\n\nfunction withOptionalFields(\n authority: SharedAuthority,\n source: { sharedBy?: unknown; expiresAt?: unknown; supersedes?: unknown },\n): SharedEnvelope {\n const envelope: SharedEnvelope = { authority };\n const sharedBy = optionalString(source.sharedBy);\n const expiresAt = optionalString(source.expiresAt);\n const supersedes = optionalString(source.supersedes);\n if (sharedBy) envelope.sharedBy = sharedBy;\n if (expiresAt) envelope.expiresAt = expiresAt;\n if (supersedes) envelope.supersedes = supersedes;\n return envelope;\n}\n\nexport function applyDefaultEnvelope(\n input: SharedEnvelopeInput = {},\n options: ApplyDefaultEnvelopeOptions = {},\n): SharedEnvelope {\n const requested = readExactAuthority(input.authority);\n if (requested.kind === \"invalid\") {\n throw new Error(\n `applyDefaultEnvelope: authority must be informational, advisory, or binding; got ${JSON.stringify(requested.raw)}`,\n );\n }\n if (requested.kind === \"valid\" && requested.authority === \"binding\" && options.binding !== true) {\n throw new Error(\"applyDefaultEnvelope: authority \\\"binding\\\" requires an explicit binding flag\");\n }\n return withOptionalFields(requested.kind === \"valid\" ? requested.authority : \"informational\", input);\n}\n\nexport function parseSharedEnvelope(raw: unknown): SharedEnvelope {\n if (typeof raw !== \"object\" || raw === null || Array.isArray(raw)) {\n return { authority: \"informational\" };\n }\n const record = raw as Record<string, unknown>;\n const requested = readExactAuthority(record.authority);\n const authority = requested.kind === \"valid\" ? requested.authority : \"informational\";\n return withOptionalFields(authority, record);\n}\n\nexport function isExpired(envelope: Pick<SharedEnvelope, \"expiresAt\">, nowMs: number): boolean {\n if (!Number.isFinite(nowMs)) return false;\n const expiresAt = envelope.expiresAt?.trim();\n if (!expiresAt) return false;\n const expiresAtMs = Date.parse(expiresAt);\n if (!Number.isFinite(expiresAtMs)) return false;\n return expiresAtMs <= nowMs;\n}\n","/**\n * Shared-item authority precedence (issue #1957).\n *\n * Pure helpers over the authority classes owned by `governance.ts`\n * (`SHARED_AUTHORITIES`). Resolution is least-privilege: an absent,\n * malformed, or unrecognized authority never resolves above\n * `informational`, and `binding` additionally requires the explicit\n * `allowBinding` flag. The helpers are exported for callers; wiring them\n * into the shared-context read and write paths is a later slice.\n */\n\nimport { SHARED_AUTHORITIES, type SharedAuthority } from \"./governance.js\";\n\nexport { SHARED_AUTHORITIES as SHARED_AUTHORITY_CLASSES };\nexport type { SharedAuthority as SharedAuthorityClass };\n\nexport interface ResolveSharedAuthorityInput {\n /** Raw authority value from an item's envelope, if any. */\n authority?: unknown;\n /** Explicit opt-in required before \"binding\" is honored. */\n allowBinding?: boolean;\n}\n\nconst AUTHORITY_RANK: Readonly<Record<SharedAuthority, number>> = {\n informational: 0,\n advisory: 1,\n binding: 2,\n};\n\nfunction isKnownAuthority(value: string): value is SharedAuthority {\n return (SHARED_AUTHORITIES as readonly string[]).includes(value);\n}\n\n\nexport function resolveSharedAuthority(input: ResolveSharedAuthorityInput): SharedAuthority {\n // Read the security switch ONCE. A getter (or a Proxy) can return undefined\n // during validation and true at the decision, which would let binding\n // through without a validated opt-in.\n const allowBinding = input.allowBinding;\n if (allowBinding !== undefined && typeof allowBinding !== \"boolean\") {\n // The flag is the security switch, so a truthy string or number must\n // not enable binding: reject it instead of coercing.\n throw new TypeError(\n `resolveSharedAuthority: allowBinding must be a boolean when supplied, got ${typeof allowBinding}`,\n );\n }\n const authority = input.authority;\n // Absent (missing key, undefined, null) and present-but-invalid both land\n // on informational — the least-privileged class — so an unmarked or\n // malformed legacy item can never be treated as binding. Validate the\n // exact value: no trim, no case-fold, because \" binding\" and \"BINDING\"\n // are unrecognized data, not normalized matches for a known class.\n if (typeof authority !== \"string\") return \"informational\";\n if (!isKnownAuthority(authority)) return \"informational\";\n if (authority === \"binding\" && allowBinding !== true) {\n // Downgrade rather than throw: a legacy item already carrying \"binding\"\n // is stored data, not a caller bug, so it resolves to the highest class\n // that does not require the explicit opt-in.\n return \"advisory\";\n }\n return authority;\n}\n\nexport function compareSharedAuthority(a: string, b: string): number {\n const rankA = isKnownAuthority(a) ? AUTHORITY_RANK[a] : AUTHORITY_RANK.informational;\n const rankB = isKnownAuthority(b) ? AUTHORITY_RANK[b] : AUTHORITY_RANK.informational;\n return Math.sign(rankA - rankB);\n}\n","/**\n * Shared-item envelope actor parse (issue #1957 leftover).\n *\n * Pure. Empty is missing_actor. Newline is invalid_actor.\n */\n\nexport type ParseEnvelopeActorResult =\n | { ok: true; actor: string }\n | { ok: false; error: \"missing_actor\" | \"invalid_actor\" };\n\nexport function parseEnvelopeActor(value: string): ParseEnvelopeActorResult {\n const actor = value.trim();\n if (actor.length === 0) return { ok: false, error: \"missing_actor\" };\n if (actor.includes(\"\\n\")) return { ok: false, error: \"invalid_actor\" };\n return { ok: true, actor };\n}\n","/**\n * Strict ISO-8601 instant validation for shared-context envelopes\n * (issue #1957 review round 3).\n *\n * `Date.parse` is permissive: under the supported Node runtime it reads\n * `\"2026-02-30\"` as March 2 and `\"1\"` as January 1 2001. A caller-supplied\n * expiry would therefore be silently reinterpreted into a governance deadline\n * the caller never asked for. Validate the ISO shape AND the calendar\n * components against the exact input, and reject rather than normalize.\n *\n * Extracted from `provenance.ts` so the envelope write path and the\n * provenance stamp share one validator instead of two copies.\n */\n\n// Linear ISO instant. No nested quantifiers.\nconst ISO_INSTANT =\n /^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2})(?:\\.\\d+)?(?:Z|[+-]\\d{2}:\\d{2})$/;\n\n/**\n * True only for a calendar-valid ISO-8601 instant carrying an explicit zone.\n * Non-strings and non-finite parses are rejected explicitly, never coerced.\n */\nexport function isStrictIsoInstant(value: unknown): boolean {\n if (typeof value !== \"string\") return false;\n const match = ISO_INSTANT.exec(value);\n if (!match) return false;\n const year = Number(match[1]);\n const month = Number(match[2]);\n const day = Number(match[3]);\n const hour = Number(match[4]);\n const minute = Number(match[5]);\n const second = Number(match[6]);\n const utc = new Date(Date.UTC(year, month - 1, day, hour, minute, second));\n return (\n Number.isFinite(Date.parse(value)) &&\n utc.getUTCFullYear() === year &&\n utc.getUTCMonth() === month - 1 &&\n utc.getUTCDate() === day &&\n utc.getUTCHours() === hour &&\n utc.getUTCMinutes() === minute &&\n utc.getUTCSeconds() === second\n );\n}\n","/**\n * Shared-item envelope at parse (issue #1957 leftover).\n *\n * Pure. Blank is missing_at. Anything that is not a calendar-valid ISO-8601\n * instant is invalid_at — including values permissive `Date.parse` would\n * silently reinterpret (`\"2026-02-30\"` -> March 2, `\"1\"` -> January 1 2001),\n * a whitespace-padded timestamp, and any non-string or non-finite input\n * (review round 3). `trim()` only detects blankness; validation reads the\n * exact value, so normalization can never widen what passes.\n */\n\nimport { isStrictIsoInstant } from \"./iso-instant.js\";\n\nexport type ParseEnvelopeAtResult =\n | { ok: true; at: string }\n | { ok: false; error: \"missing_at\" | \"invalid_at\" };\n\nexport function parseEnvelopeAt(value: string): ParseEnvelopeAtResult {\n if (typeof value !== \"string\") return { ok: false, error: \"invalid_at\" };\n if (value.trim().length === 0) return { ok: false, error: \"missing_at\" };\n if (!isStrictIsoInstant(value)) return { ok: false, error: \"invalid_at\" };\n return { ok: true, at: new Date(Date.parse(value)).toISOString() };\n}\n","/**\n * Shared-item envelope id parse (issue #1957 leftover).\n *\n * Pure. Empty is missing_id. Newline is invalid_id.\n */\n\nexport type ParseEnvelopeIdResult =\n | { ok: true; id: string }\n | { ok: false; error: \"missing_id\" | \"invalid_id\" };\n\nexport function parseEnvelopeId(value: string): ParseEnvelopeIdResult {\n const id = value.trim();\n if (id.length === 0) return { ok: false, error: \"missing_id\" };\n if (id.includes(\"\\n\")) return { ok: false, error: \"invalid_id\" };\n return { ok: true, id };\n}\n","/**\n * Shared-item envelope wiring (issue #1957, control 1: origin + authority).\n *\n * Bridges the pure envelope helpers onto the markdown frontmatter the\n * shared-context manager reads and writes.\n *\n * Write side rejects invalid input (an unrecognized authority or a binding\n * request without the config opt-in throws — never silently reinterpreted).\n * Read side resolves least privilege: a missing, malformed, or unrecognized\n * authority never resolves above informational, and stored binding\n * downgrades to advisory unless config opted in.\n */\n\nimport { applyDefaultEnvelope, parseSharedEnvelope, type SharedEnvelope } from \"./governance.js\";\nimport { resolveSharedAuthority } from \"./authority-precedence.js\";\nimport type { SharedAuthority } from \"./governance.js\";\nimport { parseEnvelopeActor } from \"./envelope-actor.js\";\nimport { parseEnvelopeAt } from \"./envelope-at.js\";\nimport { parseEnvelopeId } from \"./envelope-id.js\";\n\nexport interface ComposeWriteEnvelopeInput {\n /** Governance origin. Becomes the envelope's `sharedBy`. */\n origin: string;\n /** Requested authority class. Unrecognized values throw. */\n authority?: string;\n /** Optional ISO-8601 expiry. Invalid timestamps throw. */\n expiresAt?: string;\n /** Optional id of the item this one supersedes. */\n supersedes?: string;\n /** Config opt-in (`sharedContextAllowBindingAuthority`). Binding throws without it. */\n allowBinding: boolean;\n /**\n * Write instant for the expiry TTL policy (issue #2920). When finite, an\n * `expiresAt` must land strictly after it and within the maximum TTL —\n * a past or effectively-immortal expiry is a client input error, never a\n * silently accepted stamp.\n */\n nowMs?: number;\n}\n\nfunction requireEnvelopeActor(agentId: string): string {\n const parsed = parseEnvelopeActor(agentId);\n if (!parsed.ok) {\n throw new Error(`composeWriteEnvelope: agentId must be a non-blank single-line string (${parsed.error})`);\n }\n return parsed.actor;\n}\n\nfunction optionalEnvelopeAt(expiresAt: string | undefined): string | undefined {\n if (expiresAt === undefined) return undefined;\n const parsed = parseEnvelopeAt(expiresAt);\n if (!parsed.ok) {\n throw new Error(`composeWriteEnvelope: expiresAt must be a valid ISO-8601 timestamp (${parsed.error})`);\n }\n return parsed.at;\n}\n\n/** Maximum write-side TTL: 10 years. A farther `expiresAt` is rejected. */\nexport const MAX_WRITE_EXPIRES_AT_TTL_MS = 3650 * 24 * 60 * 60 * 1000;\n\nfunction assertBoundedFutureExpiry(expiresAt: string, nowMs: number): void {\n const expiresAtMs = Date.parse(expiresAt);\n if (expiresAtMs <= nowMs) {\n throw new Error(\"composeWriteEnvelope: expiresAt must be an instant strictly after the write time\");\n }\n if (expiresAtMs - nowMs > MAX_WRITE_EXPIRES_AT_TTL_MS) {\n throw new Error(\n `composeWriteEnvelope: expiresAt exceeds the maximum TTL of ${MAX_WRITE_EXPIRES_AT_TTL_MS}ms`,\n );\n }\n}\n\nfunction optionalEnvelopeId(supersedes: string | undefined): string | undefined {\n if (supersedes === undefined) return undefined;\n const parsed = parseEnvelopeId(supersedes);\n if (!parsed.ok) {\n throw new Error(`composeWriteEnvelope: supersedes must be a non-blank single-line id (${parsed.error})`);\n }\n return parsed.id;\n}\n\n/**\n * Reserved governance origin for an authenticated external access write that\n * resolved no principal (`agentAccessHttp.principal` unset, no adapter\n * identity). Server-owned: the caller cannot mint or influence it, and the\n * caller-supplied `agentId` never becomes audit metadata on that path.\n */\nexport const UNATTRIBUTED_ACCESS_WRITE_ORIGIN = \"unattributed:access-surface\";\n\nexport interface ResolvedWriteIdentity {\n /**\n * Producer identity: frontmatter `agent`, on-disk segment, and the\n * cross-signals grouping key. Self-declared by the caller only on\n * surfaces that resolved no server identity; never decides authority.\n */\n agent: string;\n /** Governance origin stamped as the envelope's `sharedBy`. */\n origin: string;\n}\n\n/**\n * Resolve the producer identity and governance origin for a shared-context\n * write. They are different fields with different trust requirements:\n *\n * - The origin (`sharedBy`) is audit metadata and is always server-derived.\n * When the surface resolved an authenticated identity, that identity IS the\n * origin; when it resolved none but the write crosses an external\n * boundary, the caller-supplied `unattributedOrigin` token is stamped\n * instead — never the caller's value. Only a trusted in-process caller\n * (no identity, no token) may stamp its own id as the origin.\n * - The producer (`agent`) drives grouping and display only. When an\n * authenticated identity exists it is also the producer, and a\n * caller-supplied `agentId` naming a different agent is REJECTED, so a\n * caller can never publish an item attributed to another agent. Without a\n * server identity the caller's label stands as the producer — collapsing\n * it instead would merge every writer into one agent and erase\n * multi-agent overlaps from `synthesizeCrossSignals`.\n */\nexport function resolveWriteOrigin(input: {\n agentId: string;\n authenticatedIdentity?: string;\n unattributedOrigin?: string;\n}): ResolvedWriteIdentity {\n const identity = input.authenticatedIdentity?.trim() ?? \"\";\n if (identity.length > 0) {\n const requested = input.agentId.trim();\n if (requested.length > 0 && requested !== identity) {\n throw new Error(\n `shared-context write origin mismatch: authenticated identity ${JSON.stringify(identity)} cannot publish as ${JSON.stringify(requested)}`,\n );\n }\n return { agent: identity, origin: identity };\n }\n const unattributed = input.unattributedOrigin?.trim() ?? \"\";\n if (unattributed.length > 0) {\n const label = input.agentId.trim();\n return {\n agent: label.length > 0 ? requireProducer(label) : requireProducer(unattributed),\n origin: requireProducer(unattributed),\n };\n }\n const actor = requireProducer(input.agentId);\n return { agent: actor, origin: actor };\n}\n\nfunction requireProducer(value: string): string {\n const parsed = parseEnvelopeActor(value);\n if (!parsed.ok) {\n throw new Error(`shared-context write producer must be a non-blank single-line string (${parsed.error})`);\n }\n return parsed.actor;\n}\n\n/**\n * Validate and compose the envelope for a shared-context write.\n * `sharedBy` is stamped from the server-derived origin — provenance is\n * never injected through item content or the caller's producer label.\n */\nexport function composeWriteEnvelope(input: ComposeWriteEnvelopeInput): SharedEnvelope {\n const sharedBy = requireEnvelopeActor(input.origin);\n const expiresAt = optionalEnvelopeAt(input.expiresAt);\n if (expiresAt !== undefined && Number.isFinite(input.nowMs ?? Number.NaN)) {\n assertBoundedFutureExpiry(expiresAt, input.nowMs as number);\n }\n const supersedes = optionalEnvelopeId(input.supersedes);\n return applyDefaultEnvelope(\n { sharedBy, authority: input.authority, expiresAt, supersedes },\n { binding: input.allowBinding },\n );\n}\n\n/** Serialize an envelope into frontmatter lines (caller adds the `---` fences). */\nexport function envelopeToFrontmatterLines(envelope: SharedEnvelope): string[] {\n const line = (key: string, value: string) => `${key}: ${JSON.stringify(value)}`;\n const lines = [line(\"sharedBy\", envelope.sharedBy ?? \"\"), line(\"authority\", envelope.authority)];\n if (envelope.expiresAt !== undefined) lines.push(line(\"expiresAt\", envelope.expiresAt));\n if (envelope.supersedes !== undefined) lines.push(line(\"supersedes\", envelope.supersedes));\n return lines;\n}\n\n/**\n * Build an envelope from frontmatter scalars already read off a stored item.\n * Missing scalars (legacy items) compose to informational with no expiry.\n */\nexport function envelopeFromScalars(scalars: {\n sharedBy: string | null;\n authority: string | null;\n expiresAt: string | null;\n supersedes: string | null;\n}): SharedEnvelope {\n const record: Record<string, string> = {};\n if (scalars.sharedBy !== null) record.sharedBy = scalars.sharedBy;\n if (scalars.authority !== null) record.authority = scalars.authority;\n if (scalars.expiresAt !== null) record.expiresAt = scalars.expiresAt;\n if (scalars.supersedes !== null) record.supersedes = scalars.supersedes;\n return parseSharedEnvelope(record);\n}\n\n/**\n * Resolve a stored envelope's authority for read-side consumption.\n * Least privilege: unrecognized/missing stays informational; binding\n * requires the config opt-in or downgrades to advisory.\n */\nexport function resolveReadAuthority(\n envelope: Pick<SharedEnvelope, \"authority\">,\n allowBinding: boolean,\n): SharedAuthority {\n return resolveSharedAuthority({ authority: envelope.authority, allowBinding });\n}\n"],"mappings":"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","names":[]}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
assertValidTimezone
|
|
3
|
-
} from "./chunk-353C5UNV.js";
|
|
4
1
|
import {
|
|
5
2
|
coerceBooleanLike,
|
|
6
3
|
coerceNumber
|
|
7
4
|
} from "./chunk-PQVCH2AE.js";
|
|
5
|
+
import {
|
|
6
|
+
assertValidTimezone
|
|
7
|
+
} from "./chunk-353C5UNV.js";
|
|
8
8
|
|
|
9
9
|
// src/location/config.ts
|
|
10
10
|
var PROVIDER_ID_PATTERN = /^[a-z0-9][a-z0-9-]*$/;
|
|
@@ -132,4 +132,4 @@ export {
|
|
|
132
132
|
defaultLocationConfig,
|
|
133
133
|
parseLocationConfig
|
|
134
134
|
};
|
|
135
|
-
//# sourceMappingURL=chunk-
|
|
135
|
+
//# sourceMappingURL=chunk-QNJQCLI6.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
computeCorpusWatermarks,
|
|
6
6
|
resolveCorpusNamespaceRoots
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-JMAP6L6Q.js";
|
|
8
8
|
|
|
9
9
|
// src/operator-doctor-corpus.ts
|
|
10
10
|
var DIGEST_PREFIX_LENGTH = 12;
|
|
@@ -78,4 +78,4 @@ export {
|
|
|
78
78
|
corpusWatermarksFromCheck,
|
|
79
79
|
summarizeCorpusAndReplica
|
|
80
80
|
};
|
|
81
|
-
//# sourceMappingURL=chunk-
|
|
81
|
+
//# sourceMappingURL=chunk-R45VFSEV.js.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getConfiguredNamespaces
|
|
3
3
|
} from "./chunk-OQQXGYMX.js";
|
|
4
|
-
import {
|
|
5
|
-
writeFileAtomically
|
|
6
|
-
} from "./chunk-AW4QUFQF.js";
|
|
7
4
|
import {
|
|
8
5
|
drainPendingLifecycleForSyncOrThrow,
|
|
9
6
|
drainPendingLifecycleLedgerForSync
|
|
10
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SGHGCFVV.js";
|
|
11
8
|
import {
|
|
12
9
|
displayErrorDetail
|
|
13
10
|
} from "./chunk-RL6NEVXT.js";
|
|
11
|
+
import {
|
|
12
|
+
writeFileAtomically
|
|
13
|
+
} from "./chunk-AW4QUFQF.js";
|
|
14
14
|
import {
|
|
15
15
|
assertPathInsideRoot,
|
|
16
16
|
pathIsInside
|
|
@@ -181,4 +181,4 @@ export {
|
|
|
181
181
|
offlineSyncStorageForSnapshot,
|
|
182
182
|
drainPendingLifecycleForOfflineSync
|
|
183
183
|
};
|
|
184
|
-
//# sourceMappingURL=chunk-
|
|
184
|
+
//# sourceMappingURL=chunk-RFIJH2OE.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
headerConnector,
|
|
4
4
|
renderExtractionConversation,
|
|
5
5
|
resolveSourceConnector
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7L54ARML.js";
|
|
7
7
|
import {
|
|
8
8
|
ConsolidationResultSchema,
|
|
9
9
|
DaySummaryResultSchema,
|
|
@@ -62,13 +62,13 @@ import {
|
|
|
62
62
|
extractionResponseShape,
|
|
63
63
|
spanModePromptSection
|
|
64
64
|
} from "./chunk-BOADKFN4.js";
|
|
65
|
+
import {
|
|
66
|
+
looksLikeMechanicalTelemetryTranscript
|
|
67
|
+
} from "./chunk-4RA3C3EV.js";
|
|
65
68
|
import {
|
|
66
69
|
AMBIENT_CAPTURE_PROMPT_SECTION_COMPACT,
|
|
67
70
|
clampAmbientCaptureConfidence
|
|
68
71
|
} from "./chunk-QW27DOHG.js";
|
|
69
|
-
import {
|
|
70
|
-
looksLikeMechanicalTelemetryTranscript
|
|
71
|
-
} from "./chunk-4RA3C3EV.js";
|
|
72
72
|
import {
|
|
73
73
|
applyWorkExtractionBoundary
|
|
74
74
|
} from "./chunk-EI6V5UXY.js";
|
|
@@ -80,27 +80,27 @@ import {
|
|
|
80
80
|
} from "./chunk-WLZYGLJ4.js";
|
|
81
81
|
import {
|
|
82
82
|
LocalLlmClient
|
|
83
|
-
} from "./chunk-
|
|
84
|
-
import {
|
|
85
|
-
isMemoryCategory
|
|
86
|
-
} from "./chunk-GDYU6VF4.js";
|
|
83
|
+
} from "./chunk-WGZHSQDV.js";
|
|
87
84
|
import {
|
|
88
85
|
FallbackLlmClient,
|
|
89
86
|
gatewayTaskChainOptions
|
|
90
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-TRTLWUDD.js";
|
|
91
88
|
import {
|
|
92
89
|
buildChatCompletionTokenLimit,
|
|
93
90
|
shouldAssumeOpenAiChatCompletions
|
|
94
91
|
} from "./chunk-L2EXJQJP.js";
|
|
95
92
|
import {
|
|
96
93
|
fallbackLlmRuntimeContextFromConfig
|
|
97
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-UHSOPTNB.js";
|
|
98
95
|
import {
|
|
99
96
|
normalizeProcedureSteps
|
|
100
97
|
} from "./chunk-QDW3E4RD.js";
|
|
101
98
|
import {
|
|
102
99
|
extractJsonCandidates
|
|
103
100
|
} from "./chunk-RGMVMVMF.js";
|
|
101
|
+
import {
|
|
102
|
+
isMemoryCategory
|
|
103
|
+
} from "./chunk-GDYU6VF4.js";
|
|
104
104
|
import {
|
|
105
105
|
sanitizeMemoryContent
|
|
106
106
|
} from "./chunk-5GKPFL3S.js";
|
|
@@ -2443,4 +2443,4 @@ export {
|
|
|
2443
2443
|
shouldEnableLocalExtractionThinking,
|
|
2444
2444
|
ExtractionEngine
|
|
2445
2445
|
};
|
|
2446
|
-
//# sourceMappingURL=chunk-
|
|
2446
|
+
//# sourceMappingURL=chunk-RJ7Z7YXK.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
categoryAliasCoercion
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZOGKZ2XT.js";
|
|
4
4
|
|
|
5
5
|
// src/access-observe-write-category.ts
|
|
6
6
|
function splitCanonicalWriteRequest(request) {
|
|
@@ -11,4 +11,4 @@ function splitCanonicalWriteRequest(request) {
|
|
|
11
11
|
export {
|
|
12
12
|
splitCanonicalWriteRequest
|
|
13
13
|
};
|
|
14
|
-
//# sourceMappingURL=chunk-
|
|
14
|
+
//# sourceMappingURL=chunk-RSSLDMFX.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/access-observe-write-category.ts"],"sourcesContent":["/**\n * Category-alias split + replay restamp for observe/write (#2829).\n * Extracted from access-observe-write-surface.ts to stay under the 1200-line cap.\n *\n * The wire schema already maps an alias to \"fact\". `rawCategory` is the\n * caller's spelling: it must not reach the write candidate or fingerprint,\n * and a replay must rebuild the note from THIS request's spelling.\n */\nimport {\n categoryAliasCoercion,\n reapplyCategoryCoercion,\n type CategoryAliasCoercion,\n} from \"./access-schema.js\";\n\nexport { reapplyCategoryCoercion };\n\nexport function splitCanonicalWriteRequest<T extends { rawCategory?: string }>(\n request: T,\n): {\n canonical: Omit<T, \"rawCategory\">;\n categoryCoercion: CategoryAliasCoercion | undefined;\n} {\n const { rawCategory, ...canonical } = request;\n return { canonical, categoryCoercion: categoryAliasCoercion(rawCategory) };\n}\n"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"sources":["../src/access-observe-write-category.ts"],"sourcesContent":["/**\n * Category-alias split + replay restamp for observe/write (#2829).\n * Extracted from access-observe-write-surface.ts to stay under the 1200-line cap.\n *\n * The wire schema already maps an alias to \"fact\". `rawCategory` is the\n * caller's spelling: it must not reach the write candidate or fingerprint,\n * and a replay must rebuild the note from THIS request's spelling.\n */\nimport {\n categoryAliasCoercion,\n reapplyCategoryCoercion,\n type CategoryAliasCoercion,\n} from \"./access-schema.js\";\n\nexport { reapplyCategoryCoercion };\nexport { applyBriefingLocationContext } from \"./location/tagging.js\";\n\nexport function splitCanonicalWriteRequest<T extends { rawCategory?: string }>(\n request: T,\n): {\n canonical: Omit<T, \"rawCategory\">;\n categoryCoercion: CategoryAliasCoercion | undefined;\n} {\n const { rawCategory, ...canonical } = request;\n return { canonical, categoryCoercion: categoryAliasCoercion(rawCategory) };\n}\n"],"mappings":";;;;;AAiBO,SAAS,2BACd,SAIA;AACA,QAAM,EAAE,aAAa,GAAG,UAAU,IAAI;AACtC,SAAO,EAAE,WAAW,kBAAkB,sBAAsB,WAAW,EAAE;AAC3E;","names":[]}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
normalizeDreamsStatusWindowHours
|
|
3
|
-
} from "./chunk-EQWEIIKQ.js";
|
|
4
1
|
import {
|
|
5
2
|
runGraphEdgeDecayMaintenanceAcrossNamespaces
|
|
6
3
|
} from "./chunk-SCXURCVT.js";
|
|
4
|
+
import {
|
|
5
|
+
normalizeDreamsStatusWindowHours
|
|
6
|
+
} from "./chunk-EQWEIIKQ.js";
|
|
7
7
|
import {
|
|
8
8
|
executeResolution,
|
|
9
9
|
isValidResolutionVerb,
|
|
10
10
|
runPreferenceDriftScan
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-HNHIHXSD.js";
|
|
12
12
|
import {
|
|
13
13
|
runContradictionScan
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-42DJ235G.js";
|
|
15
15
|
import {
|
|
16
16
|
isDefaultReviewNamespace,
|
|
17
17
|
listPairs,
|
|
@@ -25,14 +25,26 @@ import {
|
|
|
25
25
|
buildChatGptMemoryInspectorActionRequest,
|
|
26
26
|
buildChatGptMemoryInspectorResult
|
|
27
27
|
} from "./chunk-E4RMZGRS.js";
|
|
28
|
+
import {
|
|
29
|
+
parseDeepRecallMaxSteps
|
|
30
|
+
} from "./chunk-2EYZ32LH.js";
|
|
28
31
|
import {
|
|
29
32
|
defineOperation,
|
|
30
33
|
parseNamespacePreflightWriteOp,
|
|
31
34
|
resolveAuthorizedNamespaceWritablePreflight
|
|
32
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-IUTYNDFS.js";
|
|
36
|
+
import {
|
|
37
|
+
parseSharedWriteOutputControls
|
|
38
|
+
} from "./chunk-IFBSZGW3.js";
|
|
33
39
|
import {
|
|
34
40
|
validateBriefingFormat
|
|
35
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-HPMCKAET.js";
|
|
42
|
+
import {
|
|
43
|
+
observeRequestSchema,
|
|
44
|
+
recallRequestSchema,
|
|
45
|
+
retainedCategoryAlias,
|
|
46
|
+
suggestionSubmitRequestSchema
|
|
47
|
+
} from "./chunk-ZOGKZ2XT.js";
|
|
36
48
|
import {
|
|
37
49
|
enforceNamespaceAllowList,
|
|
38
50
|
tokenCapabilityStore
|
|
@@ -40,12 +52,6 @@ import {
|
|
|
40
52
|
import {
|
|
41
53
|
resolvePrincipal
|
|
42
54
|
} from "./chunk-MRV7VSQK.js";
|
|
43
|
-
import {
|
|
44
|
-
observeRequestSchema,
|
|
45
|
-
recallRequestSchema,
|
|
46
|
-
retainedCategoryAlias,
|
|
47
|
-
suggestionSubmitRequestSchema
|
|
48
|
-
} from "./chunk-ZX3AYNNV.js";
|
|
49
55
|
import {
|
|
50
56
|
projectTagProjectId
|
|
51
57
|
} from "./chunk-3Q3N35W7.js";
|
|
@@ -256,7 +262,13 @@ defineOperation({ name: "meetings_build", description: "Detect + fuse + store a
|
|
|
256
262
|
defineOperation({ name: "deep_recall", description: "Budgeted multi-hop deep recall over the anchor graph.", schema: strictSchema({ query: S.str, maxSteps: S.flexNum, namespace: S.str, sessionKey: S.str }), handler: async (input, ctx) => {
|
|
257
263
|
const q = defStr(input.query, "");
|
|
258
264
|
if (q.trim().length === 0) throw new EngramAccessInputError("deep_recall: query is required");
|
|
259
|
-
|
|
265
|
+
let maxSteps;
|
|
266
|
+
try {
|
|
267
|
+
maxSteps = parseDeepRecallMaxSteps(input.maxSteps);
|
|
268
|
+
} catch (err) {
|
|
269
|
+
throw new EngramAccessInputError(`deep_recall: ${err instanceof Error ? err.message : String(err)}`);
|
|
270
|
+
}
|
|
271
|
+
return { result: await ctx.service.deepRecall({ query: q, maxSteps, authenticatedPrincipal: ctx.authenticatedPrincipal, namespace: optStr(input.namespace), sessionKey: optStr(input.sessionKey), ...ctx.abortSignal ? { abortSignal: ctx.abortSignal } : {} }) };
|
|
260
272
|
} });
|
|
261
273
|
defineOperation({ name: "action_confidence", description: "Action confidence.", schema: strictSchema({ intendedAction: S.str, confidence: S.num, risk: S.str, contextReadiness: S.str, currentContextScopes: S.strArr, userRules: z.array(z.unknown()).optional(), retrievedMemories: z.array(z.unknown()).optional() }), handler: async (input, ctx) => {
|
|
262
274
|
const req = {};
|
|
@@ -289,9 +301,10 @@ defineOperation({
|
|
|
289
301
|
return { result: buildChatGptMemoryInspectorResult(ii, r, x, ac) };
|
|
290
302
|
}
|
|
291
303
|
});
|
|
292
|
-
defineOperation({ name: "day_summary", description: "Day summary.", schema: strictSchema({ memories: S.str, sessionKey: S.str, namespace: S.str, timeZone: S.str, cwd: S.str, projectTag: S.str }), handler: async (input, ctx) => {
|
|
304
|
+
defineOperation({ name: "day_summary", description: "Day summary.", schema: strictSchema({ memories: S.str, includeLocation: S.bool, sessionKey: S.str, namespace: S.str, timeZone: S.str, cwd: S.str, projectTag: S.str }), handler: async (input, ctx) => {
|
|
293
305
|
const req = {};
|
|
294
306
|
if (input.memories !== void 0) req.memories = optStr(input.memories);
|
|
307
|
+
if (input.includeLocation !== void 0) req.includeLocation = optBool(input.includeLocation);
|
|
295
308
|
if (input.sessionKey !== void 0) req.sessionKey = optStr(input.sessionKey);
|
|
296
309
|
if (input.namespace !== void 0) req.namespace = optStr(input.namespace);
|
|
297
310
|
if (input.timeZone !== void 0) req.timeZone = optStr(input.timeZone);
|
|
@@ -378,7 +391,28 @@ defineOperation({ name: "memory_identity", description: "Memory identity.", sche
|
|
|
378
391
|
defineOperation({ name: "work_task", description: "Manage work task.", schema: strictSchema({ action: S.str, id: S.str, title: S.str, description: S.str, status: S.str, priority: S.str, owner: S.str, assignee: S.str, projectId: S.str, tags: S.strArr, dueAt: S.str }), handler: async (input, ctx) => ({ result: await ctx.service.workTask({ action: optStr(input.action) ?? "list", id: optStr(input.id), title: optStr(input.title), description: optStr(input.description), status: optStr(input.status), priority: optStr(input.priority), owner: optStr(input.owner), assignee: optStr(input.assignee), projectId: optStr(input.projectId), tags: optStrArr(input.tags), dueAt: optStr(input.dueAt) }) }) });
|
|
379
392
|
defineOperation({ name: "work_project", description: "Manage work project.", schema: strictSchema({ action: S.str, id: S.str, name: S.str, description: S.str, status: S.str, owner: S.str, tags: S.strArr, taskId: S.str, projectId: S.str }), handler: async (input, ctx) => ({ result: await ctx.service.workProject({ action: optStr(input.action) ?? "list", id: optStr(input.id), name: optStr(input.name), description: optStr(input.description), status: optStr(input.status), owner: optStr(input.owner), tags: optStrArr(input.tags), taskId: optStr(input.taskId), projectId: optStr(input.projectId) }) }) });
|
|
380
393
|
defineOperation({ name: "work_board", description: "Manage work board.", schema: strictSchema({ action: S.str, projectId: S.str, snapshotJson: S.str, linkToMemory: S.bool }), handler: async (input, ctx) => ({ result: await ctx.service.workBoard({ action: optStr(input.action) ?? "export_markdown", projectId: optStr(input.projectId) ?? "", snapshotJson: optStr(input.snapshotJson) ?? "", linkToMemory: input.linkToMemory === true }) }) });
|
|
381
|
-
defineOperation({
|
|
394
|
+
defineOperation({
|
|
395
|
+
name: "shared_context_write_output",
|
|
396
|
+
description: "Write shared output.",
|
|
397
|
+
schema: strictSchema({ agentId: S.str, title: S.str, content: S.str, authority: S.str, expiresAt: S.str, supersedes: S.str }),
|
|
398
|
+
handler: async (input, ctx) => {
|
|
399
|
+
let controls;
|
|
400
|
+
try {
|
|
401
|
+
controls = parseSharedWriteOutputControls(input);
|
|
402
|
+
} catch (error) {
|
|
403
|
+
throw new EngramAccessInputError(error instanceof Error ? error.message : String(error));
|
|
404
|
+
}
|
|
405
|
+
return {
|
|
406
|
+
result: await ctx.service.sharedContextWriteOutput({
|
|
407
|
+
agentId: optStr(input.agentId) ?? "",
|
|
408
|
+
title: optStr(input.title) ?? "",
|
|
409
|
+
content: optStr(input.content) ?? "",
|
|
410
|
+
...controls,
|
|
411
|
+
principal: ctx.authenticatedPrincipal
|
|
412
|
+
})
|
|
413
|
+
};
|
|
414
|
+
}
|
|
415
|
+
});
|
|
382
416
|
defineOperation({ name: "shared_feedback_record", description: "Record shared feedback.", schema: strictSchema({ agent: S.str, decision: S.str, reason: S.str, date: S.str, learning: S.str, outcome: S.str, severity: S.str, confidence: S.num, workflow: S.str, tags: S.strArr, evidenceWindowStart: S.str, evidenceWindowEnd: S.str, refs: S.strArr }), handler: async (input, ctx) => {
|
|
383
417
|
const sv = optStr(input.severity);
|
|
384
418
|
return { result: await ctx.service.sharedFeedbackRecord({ agent: optStr(input.agent) ?? "", decision: optStr(input.decision) ?? "approved", reason: optStr(input.reason) ?? "", date: optStr(input.date), learning: optStr(input.learning), outcome: optStr(input.outcome), severity: sv === "low" || sv === "medium" || sv === "high" ? sv : void 0, confidence: optNum(input.confidence), workflow: optStr(input.workflow), tags: optStrArr(input.tags), evidenceWindowStart: optStr(input.evidenceWindowStart), evidenceWindowEnd: optStr(input.evidenceWindowEnd), refs: optStrArr(input.refs) }) };
|
|
@@ -407,11 +441,11 @@ defineOperation({ name: "memory_outcome", description: "Record outcome.", schema
|
|
|
407
441
|
} });
|
|
408
442
|
defineOperation({ name: "memory_action_apply", description: "Apply action.", schema: strictSchema({ action: S.str, outcome: S.str, reason: S.str, memoryId: S.str, namespace: S.str, sessionKey: S.str, content: S.str, category: S.str, linkTargetId: S.str, linkType: S.str, linkStrength: S.num, artifactType: S.str, execute: S.bool, sourcePrompt: S.str, dryRun: S.bool }), handler: async (input, ctx) => ({ result: await ctx.service.memoryActionApply({ action: optStr(input.action) ?? "", outcome: optStr(input.outcome), reason: optStr(input.reason), memoryId: optStr(input.memoryId) ?? "", namespace: optStr(input.namespace), sessionKey: optStr(input.sessionKey), content: optStr(input.content), category: optStr(input.category), linkTargetId: optStr(input.linkTargetId), linkType: optStr(input.linkType), linkStrength: optNum(input.linkStrength), artifactType: optStr(input.artifactType), execute: optBool(input.execute), sourcePrompt: optStr(input.sourcePrompt), dryRun: input.dryRun === true, principal: ctx.authenticatedPrincipal }) }) });
|
|
409
443
|
defineOperation({ name: "context_checkpoint", description: "Context checkpoint.", schema: strictSchema({ sessionKey: S.str, context: S.str, namespace: S.str }), handler: async (input, ctx) => ({ result: await ctx.service.contextCheckpoint({ sessionKey: optStr(input.sessionKey) ?? "", context: optStr(input.context) ?? "", namespace: optStr(input.namespace), principal: ctx.authenticatedPrincipal }) }) });
|
|
410
|
-
defineOperation({ name: "briefing", description: "Daily briefing.", schema: strictSchema({ since: S.str, focus: S.str, namespace: S.str, format: S.str, maxFollowups: S.num }), handler: async (input, ctx) => {
|
|
444
|
+
defineOperation({ name: "briefing", description: "Daily briefing.", schema: strictSchema({ since: S.str, focus: S.str, namespace: S.str, includeLocation: S.bool, format: S.str, maxFollowups: S.num }), handler: async (input, ctx) => {
|
|
411
445
|
const rf = optStr(input.format);
|
|
412
446
|
const fe = validateBriefingFormat(rf);
|
|
413
447
|
if (fe) throw new EngramAccessInputError(fe);
|
|
414
|
-
return { result: await ctx.service.briefing({ since: optStr(input.since), focus: optStr(input.focus), namespace: optStr(input.namespace), format: rf, maxFollowups: optNum(input.maxFollowups), principal: ctx.authenticatedPrincipal }) };
|
|
448
|
+
return { result: await ctx.service.briefing({ since: optStr(input.since), focus: optStr(input.focus), namespace: optStr(input.namespace), includeLocation: optBool(input.includeLocation), format: rf, maxFollowups: optNum(input.maxFollowups), principal: ctx.authenticatedPrincipal }) };
|
|
415
449
|
} });
|
|
416
450
|
defineOperation({
|
|
417
451
|
name: "review_list",
|
|
@@ -560,4 +594,4 @@ defineOperation({ name: "graph_events", description: "SSE graph events.", schema
|
|
|
560
594
|
defineOperation({ name: "chat_message", description: "Chat message.", schema: strictSchema({ message: S.str, chatSessionId: S.str }), handler: async (_i, _ctx) => ({ result: { ok: true } }) });
|
|
561
595
|
defineOperation({ name: "chat_events", description: "SSE chat events.", schema: strictSchema({}), handler: async (_i, _ctx) => ({ result: { stream: "sse" } }) });
|
|
562
596
|
defineOperation({ name: "adapters_status", description: "Adapter registry metadata (issue #1850 round 5). Marker op: the HTTP transport builds the response from its own adapterRegistry, but the op still must be registered so it appears in listRegisteredOperations and enforceTokenOp can gate it for scoped tokens.", schema: strictSchema({}), handler: async (_i, _ctx) => ({ result: { ok: true } }) });
|
|
563
|
-
//# sourceMappingURL=chunk-
|
|
597
|
+
//# sourceMappingURL=chunk-RTXHUVOD.js.map
|