@remnic/core 9.65.8 → 9.66.1
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 +11 -12
- package/dist/access-admin-ops-surface.js +54 -51
- package/dist/access-authorization-probe.d.ts +11 -12
- package/dist/access-authorization-probe.js +55 -52
- package/dist/access-boundary.d.ts +11 -12
- package/dist/access-boundary.js +54 -51
- package/dist/access-citation-namespace.js +3 -3
- package/dist/access-cli.js +132 -125
- package/dist/access-cli.js.map +1 -1
- package/dist/access-coding-context-resolution.d.ts +1 -2
- package/dist/access-coding-context-resolution.js +2 -2
- package/dist/access-extraction-force-flush.d.ts +11 -12
- package/dist/access-extraction-force-flush.js +54 -51
- package/dist/access-health-types.d.ts +1 -2
- package/dist/access-http-lcm-compaction.d.ts +11 -12
- package/dist/access-http-lifecycle-flush.d.ts +11 -12
- package/dist/access-http-offline-stream.d.ts +11 -12
- package/dist/access-http-query.d.ts +2 -3
- package/dist/access-http-query.js +56 -53
- package/dist/access-http.d.ts +12 -13
- package/dist/access-http.js +77 -74
- package/dist/access-identity-continuity-surface.d.ts +9 -10
- package/dist/access-identity-continuity-surface.js +54 -51
- package/dist/access-lcm-surface.d.ts +11 -12
- package/dist/access-lcm-surface.js +54 -51
- package/dist/access-mcp-output-schemas.js +1 -1
- package/dist/access-mcp.d.ts +11 -12
- package/dist/access-mcp.js +67 -64
- package/dist/access-memory-search-fanout.d.ts +2 -3
- package/dist/{access-namespace-preflight-CpAOrS-9.d.ts → access-namespace-preflight-50VIkPhB.d.ts} +1 -1
- package/dist/access-namespace-preflight.d.ts +3 -4
- package/dist/access-namespace-preflight.js +54 -51
- package/dist/access-observe-write-surface.d.ts +11 -12
- package/dist/access-observe-write-surface.js +54 -51
- package/dist/access-offline-manifest.d.ts +9 -10
- package/dist/access-offline-manifest.js +15 -15
- package/dist/access-operations-batch.js +59 -56
- package/dist/access-operations.d.ts +12 -13
- package/dist/access-operations.js +64 -61
- package/dist/access-recall-concurrency.d.ts +11 -12
- package/dist/access-recall-concurrency.js +54 -51
- package/dist/access-recall-response.d.ts +11 -12
- package/dist/access-recall-response.js +54 -51
- package/dist/access-recall-surface.d.ts +11 -12
- package/dist/access-recall-surface.js +54 -51
- package/dist/access-schema.d.ts +12 -12
- package/dist/access-schema.js +5 -5
- package/dist/{access-service-Diu61Cfv.d.ts → access-service-C2tV2-uL.d.ts} +8 -8
- package/dist/access-service-helpers.d.ts +11 -12
- package/dist/access-service.d.ts +11 -12
- package/dist/access-service.js +54 -51
- package/dist/access-surface-catalog.d.ts +11 -12
- package/dist/access-surface-catalog.js +58 -53
- package/dist/access-surface-catalog.js.map +1 -1
- package/dist/access-wearables-meetings-surface.d.ts +3 -4
- package/dist/action-confidence.d.ts +1 -2
- package/dist/active-memory-bridge.d.ts +1 -2
- package/dist/active-memory-bridge.js +2 -2
- package/dist/active-recall.d.ts +1 -2
- package/dist/active-recall.js +11 -11
- package/dist/adapters/index.js +7 -7
- package/dist/adapters/registry.js +3 -3
- package/dist/ambient-provenance.d.ts +1 -2
- package/dist/artifact-search.d.ts +1 -2
- package/dist/{auto-sync-2YPITIWN.js → auto-sync-Q6Q2FVSC.js} +9 -9
- package/dist/behavior-learner.d.ts +1 -2
- package/dist/behavior-signals.d.ts +1 -2
- package/dist/bootstrap.d.ts +9 -10
- package/dist/briefing-window.d.ts +2 -3
- package/dist/briefing.d.ts +2 -3
- package/dist/briefing.js +28 -28
- package/dist/buffer-surprise-report.d.ts +1 -2
- package/dist/buffer-turn-helpers.d.ts +1 -2
- package/dist/buffer.d.ts +2 -3
- package/dist/buffer.js +20 -4
- package/dist/bulk-import/index.d.ts +3 -4
- package/dist/calibration.d.ts +1 -2
- package/dist/calibration.js +1 -1
- package/dist/capabilities.d.ts +1 -2
- package/dist/{capsule-merge-SGIVB3WA.js → capsule-merge-SEHERWWP.js} +4 -4
- package/dist/{catalog-9f-vEQLS.d.ts → catalog-C2jA-gLm.d.ts} +1 -1
- package/dist/causal-behavior.d.ts +1 -2
- package/dist/causal-consolidation.d.ts +1 -2
- package/dist/causal-consolidation.js +29 -29
- package/dist/causal-trajectory-graph.d.ts +1 -2
- package/dist/{chunk-LEPOP46W.js → chunk-227UFSEQ.js} +4 -4
- package/dist/{chunk-TFR3HG4K.js → chunk-2FA7U5XY.js} +4 -4
- package/dist/{chunk-PO7NXBG2.js → chunk-2GF27PGH.js} +5 -5
- package/dist/{chunk-W2BAGGEW.js → chunk-2ITZ74A6.js} +40 -31
- package/dist/{chunk-W2BAGGEW.js.map → chunk-2ITZ74A6.js.map} +1 -1
- package/dist/{chunk-MY2BC6UE.js → chunk-2X6BGKQL.js} +11 -11
- package/dist/{chunk-UEBDCMOO.js → chunk-3TSU662L.js} +3 -3
- package/dist/{chunk-XAB6STPO.js → chunk-46XR5FNZ.js} +53 -3
- package/dist/chunk-46XR5FNZ.js.map +1 -0
- package/dist/{chunk-FP7YTTVO.js → chunk-4OFKZAJG.js} +2 -1
- package/dist/chunk-4OFKZAJG.js.map +1 -0
- package/dist/{chunk-S5XOSTYM.js → chunk-4XLTUR6R.js} +3 -3
- package/dist/{chunk-BWGCOLEL.js → chunk-65JOGLIS.js} +2 -2
- package/dist/{chunk-HMZKGHMD.js → chunk-7UOXCCCI.js} +3 -3
- package/dist/{chunk-7WOWGRAU.js → chunk-AF5H7TKI.js} +108 -23
- package/dist/chunk-AF5H7TKI.js.map +1 -0
- package/dist/{chunk-7BDZTALN.js → chunk-AJTG3CP7.js} +12 -2
- package/dist/chunk-AJTG3CP7.js.map +1 -0
- package/dist/{chunk-2LWQSV6A.js → chunk-AL3UYZ5N.js} +3 -2
- package/dist/chunk-AL3UYZ5N.js.map +1 -0
- package/dist/{chunk-4F4AQFWL.js → chunk-B4AOWRYF.js} +10 -10
- package/dist/{chunk-ODU2CNNX.js → chunk-C5IUOBCN.js} +2 -2
- package/dist/{chunk-3A2NJP2U.js → chunk-CHGG74CY.js} +3 -3
- package/dist/{chunk-76DIF5KT.js → chunk-CX4OLNIH.js} +2 -2
- package/dist/{chunk-Z3YEGSR4.js → chunk-D3UXGE5D.js} +10 -10
- package/dist/{chunk-5HK3CJAR.js → chunk-D6Q5EPOV.js} +2 -2
- package/dist/{chunk-EGBDFJ36.js → chunk-DD5JFCWM.js} +2 -2
- package/dist/{chunk-XBGHAAKR.js → chunk-DDX6KIXF.js} +2 -2
- package/dist/{chunk-JIYDRBVZ.js → chunk-DJORULH3.js} +2 -2
- package/dist/{chunk-7KQB4EBS.js → chunk-DUAJKRR2.js} +2 -2
- package/dist/{chunk-XDL5CYZN.js → chunk-EEOUMG3J.js} +2 -1
- package/dist/{chunk-XDL5CYZN.js.map → chunk-EEOUMG3J.js.map} +1 -1
- package/dist/{chunk-Q57GOHLF.js → chunk-EGALNSZ4.js} +3 -3
- package/dist/{chunk-DPCXDG7G.js → chunk-EH65UV2Z.js} +2 -2
- package/dist/{chunk-KCT36JAW.js → chunk-ESNFSSO4.js} +2 -2
- package/dist/{chunk-XQ3HXAQH.js → chunk-ET2CNMLD.js} +4 -4
- package/dist/{chunk-TUHBYJXL.js → chunk-EWKVYCFP.js} +1 -1
- package/dist/{chunk-NPFUNWNX.js → chunk-FFUMTH27.js} +2 -2
- package/dist/{chunk-3PKAS6VL.js → chunk-GAJK3DQ5.js} +2 -2
- package/dist/{chunk-DA7ITC5Z.js → chunk-GBEOUCBB.js} +2 -2
- package/dist/{chunk-UENKPWCS.js → chunk-H2IRSXZN.js} +6 -6
- package/dist/{chunk-CFVTRUR3.js → chunk-H6RSANGQ.js} +2 -2
- package/dist/chunk-HVAEXYPL.js +98 -0
- package/dist/chunk-HVAEXYPL.js.map +1 -0
- package/dist/{chunk-EUYWQ7TS.js → chunk-IEZ6CGTW.js} +2 -2
- package/dist/{chunk-3SZD4CYO.js → chunk-IGZCAHFL.js} +3 -3
- package/dist/{chunk-UPFNQJC7.js → chunk-INUBU6I5.js} +2 -2
- package/dist/{chunk-PMVPCZJZ.js → chunk-J2R275FN.js} +3 -3
- package/dist/{chunk-UW5NPZJ2.js → chunk-JALOAKSZ.js} +59 -7
- package/dist/chunk-JALOAKSZ.js.map +1 -0
- package/dist/{chunk-2QSZNTDO.js → chunk-JBPKEARU.js} +7 -7
- package/dist/{chunk-3BCULS4U.js → chunk-JKTV3JNX.js} +145 -507
- package/dist/chunk-JKTV3JNX.js.map +1 -0
- package/dist/{chunk-5ACCD4L7.js → chunk-JRRQ747T.js} +7 -7
- package/dist/{chunk-V4IDF3EZ.js → chunk-JTWZKNUH.js} +5 -5
- package/dist/{chunk-AZMLH5UT.js → chunk-KI64TTBL.js} +2 -2
- package/dist/{chunk-DEACDKE3.js → chunk-KJXCD7VR.js} +112 -87
- package/dist/chunk-KJXCD7VR.js.map +1 -0
- package/dist/chunk-LJABGXC4.js +267 -0
- package/dist/chunk-LJABGXC4.js.map +1 -0
- package/dist/{chunk-NPIBN2VL.js → chunk-LK4TOYPU.js} +2 -2
- package/dist/{chunk-UTQUEHC7.js → chunk-LUDBXTBJ.js} +8 -8
- package/dist/{chunk-PU56CXZA.js → chunk-LYUUA6QB.js} +2 -2
- package/dist/{chunk-P36Z4JRA.js → chunk-M5ERTI4I.js} +2 -2
- package/dist/{chunk-LDKPDODJ.js → chunk-ME35HVDJ.js} +2 -2
- package/dist/{chunk-773TRRGT.js → chunk-MJUCDM3C.js} +2 -2
- package/dist/{chunk-OXRRJXPR.js → chunk-MUEGIKKY.js} +476 -1796
- package/dist/chunk-MUEGIKKY.js.map +1 -0
- package/dist/{chunk-AHPIFKNG.js → chunk-N4F7ZSSG.js} +2 -2
- package/dist/{chunk-JOZUBF4A.js → chunk-NACLNNFQ.js} +2 -2
- package/dist/{chunk-LC2BDILZ.js → chunk-NBP4EX5N.js} +2 -2
- package/dist/{chunk-T7XP6IZE.js → chunk-NFP4KPTA.js} +2 -2
- package/dist/{chunk-ZVPVTPGI.js → chunk-NNZFPYYX.js} +4 -4
- package/dist/{chunk-LPNCR4QK.js → chunk-NSTNGMSS.js} +14 -14
- package/dist/{chunk-5RWZH6PH.js → chunk-NUF7VSEX.js} +2 -2
- package/dist/{chunk-7VZFRUQU.js → chunk-O7ERGZDA.js} +5 -5
- package/dist/{chunk-HSZMX3ZJ.js → chunk-ODW5GDFE.js} +2 -2
- package/dist/{chunk-5DHKCO52.js → chunk-OJUEUQDJ.js} +2 -2
- package/dist/{chunk-LOXHYCVS.js → chunk-OMX6TKXH.js} +2 -2
- package/dist/{chunk-J2WC5LF4.js → chunk-QBC33MPY.js} +2 -1
- package/dist/{chunk-SEEJOGQX.js → chunk-QBNE55VA.js} +4 -4
- package/dist/chunk-QJCWK2A7.js +1466 -0
- package/dist/chunk-QJCWK2A7.js.map +1 -0
- package/dist/{chunk-YEUXERJ6.js → chunk-RDGKVH6T.js} +7 -3
- package/dist/{chunk-YEUXERJ6.js.map → chunk-RDGKVH6T.js.map} +1 -1
- package/dist/{chunk-JYSN42VN.js → chunk-RPIS5FQ7.js} +237 -183
- package/dist/chunk-RPIS5FQ7.js.map +1 -0
- package/dist/{chunk-F7XUD3PL.js → chunk-S4CDUXQY.js} +2 -2
- package/dist/{chunk-WNXYT4MK.js → chunk-S4Z2OBTX.js} +4 -4
- package/dist/{chunk-UL4MKZHI.js → chunk-SN4JXNLL.js} +2 -2
- package/dist/{chunk-CAMNRAJF.js → chunk-SZMYGDSM.js} +2 -2
- package/dist/chunk-TB2MJRI6.js +866 -0
- package/dist/chunk-TB2MJRI6.js.map +1 -0
- package/dist/{chunk-XNWXSGHS.js → chunk-TBCDF556.js} +28 -10
- package/dist/chunk-TBCDF556.js.map +1 -0
- package/dist/{chunk-LKYIOCWL.js → chunk-TCF4MU7L.js} +967 -132
- package/dist/chunk-TCF4MU7L.js.map +1 -0
- package/dist/chunk-TCQRIIIN.js +202 -0
- package/dist/chunk-TCQRIIIN.js.map +1 -0
- package/dist/{chunk-7PHI6GUI.js → chunk-TEZ2HTC7.js} +42 -2
- package/dist/chunk-TEZ2HTC7.js.map +1 -0
- package/dist/{chunk-CPA5NBHN.js → chunk-TNGH4ZYI.js} +2 -2
- package/dist/{chunk-F3NVYTTA.js → chunk-TNXNECAN.js} +6 -6
- package/dist/{chunk-BEC4YBNA.js → chunk-TVW4C7PV.js} +2 -2
- package/dist/{chunk-UFKPQBXH.js → chunk-U62OK7BB.js} +2 -2
- package/dist/{chunk-KZIF6XHX.js → chunk-U65VJSCJ.js} +32 -19
- package/dist/chunk-U65VJSCJ.js.map +1 -0
- package/dist/{chunk-4QEYREAV.js → chunk-U6NGKS32.js} +8 -8
- package/dist/{chunk-HRHO3ZNG.js → chunk-UW4RYPWC.js} +2 -2
- package/dist/{chunk-AX7UXCHJ.js → chunk-UYA36DQ7.js} +2 -1
- package/dist/chunk-UYA36DQ7.js.map +1 -0
- package/dist/{chunk-T6ILXUAH.js → chunk-VG4SSPAW.js} +2 -2
- package/dist/chunk-VOSWUO3K.js +100 -0
- package/dist/chunk-VOSWUO3K.js.map +1 -0
- package/dist/chunk-WFCWP4XU.js +17 -0
- package/dist/chunk-WFCWP4XU.js.map +1 -0
- package/dist/{chunk-H2YSH3DG.js → chunk-WKAXBXVA.js} +2 -2
- package/dist/{chunk-SXIMQLGV.js → chunk-WVGXCBOC.js} +2 -2
- package/dist/{chunk-UNUMFURP.js → chunk-X5PIDJ3L.js} +3 -3
- package/dist/{chunk-CRML27CO.js → chunk-X5YYSAZX.js} +4 -4
- package/dist/{chunk-FZEEWOI2.js → chunk-XJJYSX6F.js} +2 -2
- package/dist/{chunk-U7EW2W4W.js → chunk-XKNHFDTT.js} +26 -6
- package/dist/chunk-XKNHFDTT.js.map +1 -0
- package/dist/{chunk-OA2O2GJ4.js → chunk-XOHYGIWF.js} +3 -3
- package/dist/{chunk-UG6VXIOK.js → chunk-XSTNGNJP.js} +2 -2
- package/dist/{chunk-MINHJ55X.js → chunk-XXW32OL7.js} +1 -1
- package/dist/{chunk-MINHJ55X.js.map → chunk-XXW32OL7.js.map} +1 -1
- package/dist/{chunk-YDPAE2RD.js → chunk-YFLLGRXO.js} +2 -2
- package/dist/{chunk-MDD2RINF.js → chunk-YWPLOJ7T.js} +3 -3
- package/dist/{chunk-Q4WONDMJ.js → chunk-YYGZJPOK.js} +2 -2
- package/dist/{chunk-GTO56JY5.js → chunk-ZPS724LT.js} +2 -2
- package/dist/{chunk-SNOIKAHM.js → chunk-ZZZWEDF4.js} +3 -3
- package/dist/{cli-O3F-ht3i.d.ts → cli-CsfFMe6n.d.ts} +5 -5
- package/dist/cli.d.ts +13 -14
- package/dist/cli.js +101 -96
- package/dist/coding/export-okf-codegraph.d.ts +56 -0
- package/dist/coding/export-okf-codegraph.js +526 -0
- package/dist/coding/export-okf-codegraph.js.map +1 -0
- package/dist/coding/pre-action-gate.d.ts +1 -2
- package/dist/compounding/engine.d.ts +2 -3
- package/dist/compounding/engine.js +29 -29
- package/dist/compounding/preference-consolidator.d.ts +1 -2
- package/dist/compression-optimizer.d.ts +1 -2
- package/dist/config.d.ts +1 -2
- package/dist/config.js +11 -11
- package/dist/connectors/codex-materialize-runner.d.ts +1 -2
- package/dist/connectors/codex-materialize-runner.js +28 -28
- package/dist/connectors/codex-materialize.d.ts +1 -2
- package/dist/connectors/index.d.ts +1 -2
- package/dist/connectors/index.js +28 -28
- package/dist/consolidation-provenance-check.d.ts +2 -3
- package/dist/consolidation-provenance-check.js +4 -4
- package/dist/consolidation-undo.d.ts +2 -3
- package/dist/consolidation-undo.js +3 -3
- package/dist/contradiction/index.d.ts +3 -4
- package/dist/contradiction/index.js +9 -9
- package/dist/{contradiction-scan-AKUWPX5N.js → contradiction-scan-NOYMFG66.js} +3 -3
- package/dist/converge-config.d.ts +1 -2
- package/dist/convergence-refresh.d.ts +2 -3
- package/dist/convergence-refresh.js +30 -30
- package/dist/conversation-index/backend.d.ts +1 -2
- package/dist/conversation-index/backend.js +2 -2
- package/dist/conversation-index/chunker.d.ts +1 -2
- package/dist/conversation-index/faiss-adapter.d.ts +1 -2
- package/dist/conversation-index/indexer.d.ts +1 -2
- package/dist/conversation-index/search.d.ts +1 -2
- package/dist/corpus-watermark.d.ts +1 -2
- package/dist/corpus-watermark.js +30 -30
- package/dist/cross-lingual-recall.d.ts +1 -2
- package/dist/day-summary.d.ts +1 -2
- package/dist/delinearize.d.ts +1 -2
- package/dist/dependency-propagation-config.d.ts +1 -2
- package/dist/{dependency-propagation-delivery-CL6RWXTA.d.ts → dependency-propagation-delivery-D4WMbOwA.d.ts} +1 -1
- package/dist/direct-answer-wiring.d.ts +1 -2
- package/dist/direct-answer.d.ts +1 -2
- package/dist/embedding-fallback.d.ts +1 -2
- package/dist/enrichment/index.d.ts +1 -2
- package/dist/entity-origin-fields.d.ts +1 -2
- package/dist/entity-retrieval.d.ts +2 -3
- package/dist/entity-retrieval.js +28 -28
- package/dist/entity-schema.d.ts +1 -2
- package/dist/episodic-context.d.ts +1 -2
- package/dist/eval-trajectory-contracts.d.ts +1 -2
- package/dist/eval-trajectory-store.d.ts +1 -2
- package/dist/eval-trajectory.d.ts +1 -2
- package/dist/explicit-capture.d.ts +9 -10
- package/dist/explicit-capture.js +11 -11
- package/dist/external-wiki-access.d.ts +11 -12
- package/dist/external-wiki-access.js +55 -52
- package/dist/external-wiki-collection-registration.d.ts +1 -2
- package/dist/external-wiki-collection.d.ts +1 -2
- package/dist/external-wiki-mcp-tools.d.ts +11 -12
- package/dist/extraction-error-classification.d.ts +1 -2
- package/dist/extraction-faithfulness.d.ts +1 -2
- package/dist/extraction-faithfulness.js +2 -2
- package/dist/extraction-judge-telemetry.d.ts +1 -2
- package/dist/extraction-judge-training.d.ts +1 -2
- package/dist/extraction-judge.d.ts +1 -2
- package/dist/extraction-judge.js +2 -2
- package/dist/extraction-liveness.d.ts +1 -2
- package/dist/extraction-normalization.d.ts +1 -2
- package/dist/extraction-prompt.d.ts +1 -2
- package/dist/extraction-source-grounding-rules.d.ts +1 -2
- package/dist/extraction-source-grounding.d.ts +1 -2
- package/dist/extraction.d.ts +1 -2
- package/dist/extraction.js +37 -34
- package/dist/fallback-llm.d.ts +7 -2
- package/dist/fallback-llm.js +1 -1
- package/dist/{first-start-migration-4NETATFF.js → first-start-migration-KHIMCBIC.js} +3 -3
- package/dist/graph-dashboard-diff.d.ts +1 -2
- package/dist/graph-dashboard-key.d.ts +1 -2
- package/dist/graph-dashboard-parser.d.ts +1 -2
- package/dist/graph-edge-reinforcement.d.ts +1 -2
- package/dist/graph-path-reconstruction.d.ts +1 -2
- package/dist/graph-path-scoring.d.ts +1 -2
- package/dist/graph-snapshot.d.ts +1 -2
- package/dist/graph.d.ts +1 -2
- package/dist/harmonic-retrieval.js +1 -1
- package/dist/importance.d.ts +1 -2
- package/dist/importers/index.d.ts +1 -2
- package/dist/in-flight-reads.d.ts +1 -2
- package/dist/{index-C7Xep6S9.d.ts → index-DuJnzwHv.d.ts} +2 -2
- package/dist/index.d.ts +364 -26
- package/dist/index.js +232 -169
- package/dist/intent.d.ts +1 -2
- package/dist/lcm/engine.d.ts +1 -2
- package/dist/lcm/engine.js +4 -4
- package/dist/lcm/index.d.ts +1 -2
- package/dist/lcm/index.js +10 -10
- package/dist/lcm/tools.d.ts +1 -2
- package/dist/lifecycle.d.ts +1 -2
- package/dist/live-connectors-runner.d.ts +1 -2
- package/dist/local-llm.d.ts +1 -2
- package/dist/local-model-endpoint.d.ts +1 -2
- package/dist/location/index.d.ts +315 -6
- package/dist/location/index.js +151 -19
- package/dist/maintenance/memory-governance.d.ts +1 -2
- package/dist/maintenance/memory-governance.js +28 -28
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.d.ts +2 -3
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +28 -28
- package/dist/maintenance/rebuild-memory-projection.d.ts +2 -3
- package/dist/maintenance/rebuild-memory-projection.js +29 -29
- package/dist/{maintenance-CJ-xqFp0.d.ts → maintenance-BBeaeYRR.d.ts} +3 -3
- package/dist/mcp-memory-inspector-app.d.ts +11 -12
- package/dist/mcp-read-only-tools.js +1 -1
- package/dist/memory-action-policy.d.ts +1 -2
- package/dist/memory-cache.d.ts +1 -2
- package/dist/memory-controller.d.ts +1 -2
- package/dist/memory-lifecycle-ledger-utils.d.ts +1 -2
- package/dist/memory-projection-mutations.js +3 -3
- package/dist/memory-projection-store.d.ts +1 -2
- package/dist/memory-projection-store.js +1 -1
- package/dist/memory-provenance.d.ts +1 -2
- package/dist/memory-snapshot.d.ts +1 -2
- package/dist/memory-subject-cli.d.ts +11 -12
- package/dist/memory-subject.d.ts +11 -12
- package/dist/memory-subject.js +4 -4
- package/dist/memory-worth-outcomes.d.ts +2 -3
- package/dist/models-json.d.ts +1 -2
- package/dist/namespaces/migrate.d.ts +3 -4
- package/dist/namespaces/migrate.js +29 -29
- package/dist/namespaces/principal.d.ts +1 -2
- package/dist/namespaces/search.d.ts +1 -2
- package/dist/namespaces/search.js +8 -8
- package/dist/namespaces/storage.d.ts +3 -4
- package/dist/namespaces/storage.js +28 -28
- package/dist/native-knowledge.d.ts +1 -2
- package/dist/offline-sync-file-io.js +3 -3
- package/dist/offline-sync-impression-drain.d.ts +1 -2
- package/dist/offline-sync-impression-drain.js +9 -9
- package/dist/offline-sync.js +4 -4
- package/dist/operator-doctor-corpus.d.ts +1 -2
- package/dist/operator-doctor-corpus.js +31 -31
- package/dist/operator-doctor-replica.d.ts +1 -2
- package/dist/operator-toolkit.d.ts +3 -4
- package/dist/operator-toolkit.js +47 -47
- package/dist/orchestration/compression-guideline-coordinator.d.ts +2 -3
- package/dist/orchestration/maintenance.d.ts +4 -5
- package/dist/orchestration/maintenance.js +42 -41
- package/dist/{orchestrator-BsntWxLy.d.ts → orchestrator-CaqnwNwM.d.ts} +8 -8
- package/dist/orchestrator.d.ts +9 -10
- package/dist/orchestrator.js +132 -125
- package/dist/page-versioning.js +3 -3
- package/dist/patterns-cli.d.ts +1 -2
- package/dist/{pipeline-CVoysPm2.d.ts → pipeline-CrxVjlJr.d.ts} +1 -1
- package/dist/policy-runtime.d.ts +1 -2
- package/dist/proactive-contention.d.ts +1 -2
- package/dist/provenance.d.ts +1 -2
- package/dist/{public-http-CuOxlTC2.d.ts → public-http-Cwvl4QZr.d.ts} +1 -1
- package/dist/{purge-GB7PZHT2.js → purge-OP6BEDFY.js} +2 -2
- package/dist/{qmd-DWMAGA5l.d.ts → qmd-BZgbJm0g.d.ts} +1 -1
- package/dist/qmd-preflight.d.ts +2 -3
- package/dist/qmd-recall-cache.d.ts +1 -2
- package/dist/qmd.d.ts +2 -3
- package/dist/recall-concurrency-config.d.ts +1 -2
- package/dist/recall-deep.d.ts +37 -0
- package/dist/recall-deep.js +81 -0
- package/dist/recall-deep.js.map +1 -0
- package/dist/recall-disclosure-escalation.d.ts +1 -2
- package/dist/recall-explain-renderer.d.ts +1 -2
- package/dist/recall-explain-renderer.js +3 -3
- package/dist/recall-memory-map.d.ts +1 -2
- package/dist/recall-navigate.d.ts +70 -0
- package/dist/recall-navigate.js +51 -0
- package/dist/recall-navigate.js.map +1 -0
- package/dist/recall-planner-llm.d.ts +1 -2
- package/dist/recall-planner-llm.js +1 -1
- package/dist/recall-state-view-wire.d.ts +14 -0
- package/dist/recall-state-view-wire.js +11 -0
- package/dist/recall-state-view.d.ts +25 -0
- package/dist/recall-state-view.js +22 -0
- package/dist/recall-state-view.js.map +1 -0
- package/dist/recall-state.d.ts +1 -2
- package/dist/recall-tag-filter.d.ts +1 -2
- package/dist/recall-timings.d.ts +1 -2
- package/dist/recall-xray-cli.d.ts +1 -2
- package/dist/recall-xray-cli.js +4 -4
- package/dist/recall-xray-renderer.d.ts +1 -2
- package/dist/recall-xray-renderer.js +3 -3
- package/dist/recall-xray.d.ts +1 -2
- package/dist/recall-xray.js +2 -2
- package/dist/reconcile/cursor.d.ts +1 -2
- package/dist/reconcile/manifest.d.ts +1 -2
- package/dist/reconcile/manifest.js +4 -4
- package/dist/reconcile/plan.d.ts +1 -2
- package/dist/replay/normalizers/chatgpt.d.ts +1 -2
- package/dist/replay/normalizers/claude.d.ts +1 -2
- package/dist/replay/normalizers/openclaw.d.ts +1 -2
- package/dist/replay/normalizers/shared.d.ts +1 -2
- package/dist/replay/runner.d.ts +1 -2
- package/dist/replay/types.d.ts +1 -2
- package/dist/replica-divergence.d.ts +1 -2
- package/dist/replica-peers-config.d.ts +1 -2
- package/dist/{resolution-XWBPKYFB.js → resolution-4DLI3IOR.js} +10 -10
- package/dist/resolution-4DLI3IOR.js.map +1 -0
- package/dist/resolve-auth-token.d.ts +1 -2
- package/dist/resume-bundles.js +12 -12
- package/dist/retrieval-agents.d.ts +2 -3
- package/dist/retrieval-tiers.d.ts +1 -2
- package/dist/routing/engine.d.ts +1 -2
- package/dist/routing/store.d.ts +1 -2
- package/dist/salvage-envelope.d.ts +1 -2
- package/dist/salvage-envelope.js +6 -6
- package/dist/schemas.d.ts +570 -105
- package/dist/schemas.js +3 -1
- package/dist/{scope-profiles-CPWkW_dI.d.ts → scope-profiles-DFaojvoP.d.ts} +1 -1
- package/dist/search/document-scanner.js +1 -1
- package/dist/search/embed-helper.d.ts +1 -2
- package/dist/search/factory.d.ts +1 -2
- package/dist/search/factory.js +7 -7
- package/dist/search/index.d.ts +1 -2
- package/dist/search/index.js +13 -13
- package/dist/search/lancedb-backend.d.ts +1 -2
- package/dist/search/lancedb-backend.js +1 -1
- package/dist/search/meilisearch-backend.d.ts +1 -2
- package/dist/search/meilisearch-backend.js +1 -1
- package/dist/search/noop-backend.d.ts +1 -2
- package/dist/search/orama-backend.d.ts +1 -2
- package/dist/search/orama-backend.js +1 -1
- package/dist/search/port.d.ts +1 -2
- package/dist/search/remote-backend.d.ts +1 -2
- package/dist/secure-store/index.js +3 -3
- package/dist/{semantic-consolidation-CNFVBXFc.d.ts → semantic-consolidation-BiX68wZA.d.ts} +1 -1
- package/dist/semantic-consolidation.d.ts +2 -3
- package/dist/semantic-consolidation.js +29 -29
- package/dist/semantic-rule-promotion.js +28 -28
- package/dist/semantic-rule-verifier.d.ts +1 -2
- package/dist/semantic-rule-verifier.js +28 -28
- package/dist/{service-Bb-JIdQ0.d.ts → service-D5h2zZ0M.d.ts} +2 -2
- package/dist/session-observer-bands.d.ts +1 -2
- package/dist/session-observer-state.d.ts +1 -2
- package/dist/shared-context/manager.d.ts +1 -2
- package/dist/signal.d.ts +1 -2
- package/dist/source-agent-qualifier.d.ts +1 -2
- package/dist/source-agent-qualifier.js +35 -32
- package/dist/standup/build.d.ts +16 -0
- package/dist/standup/build.js +17 -0
- package/dist/standup/build.js.map +1 -0
- package/dist/{storage-CukrlNKk.d.ts → storage-CtsaojWD.d.ts} +1 -1
- package/dist/storage.d.ts +2 -3
- package/dist/storage.js +27 -27
- package/dist/subject-config.d.ts +1 -2
- package/dist/subject-config.js +5 -5
- package/dist/summarizer.d.ts +1 -2
- package/dist/summarizer.js +2 -2
- package/dist/summary-snapshot.d.ts +1 -2
- package/dist/support-passport/index.d.ts +16 -17
- package/dist/support-passport/index.js +57 -54
- package/dist/temporal-supersession.d.ts +2 -3
- package/dist/temporal-timeline-recall.d.ts +1 -2
- package/dist/temporal-validity.d.ts +1 -2
- package/dist/threading.d.ts +1 -2
- package/dist/tier-migration.d.ts +2 -3
- package/dist/tier-routing.d.ts +1 -2
- package/dist/tier-routing.js +2 -2
- package/dist/{tier-stats-4B5IJ3NE.js → tier-stats-2TOW3QNL.js} +3 -3
- package/dist/topics.d.ts +1 -2
- package/dist/transcript.d.ts +1 -2
- package/dist/transfer/capsule-import.js +4 -4
- package/dist/transfer/export-okf.d.ts +39 -0
- package/dist/transfer/export-okf.js +112 -0
- package/dist/transfer/export-okf.js.map +1 -0
- package/dist/trust-score-stage.d.ts +1 -2
- package/dist/trust-score.d.ts +1 -2
- package/dist/{types-djxQlxJ7.d.ts → types-CIpfYz1I.d.ts} +132 -12
- package/dist/types.d.ts +1 -2
- package/dist/types.js +1 -1
- package/dist/utility-runtime.d.ts +1 -2
- package/dist/verified-recall.js +28 -28
- package/dist/who-knows-cli.d.ts +11 -12
- package/dist/who-knows-cli.js +29 -29
- package/dist/who-knows.d.ts +11 -12
- package/dist/who-knows.js +28 -28
- package/dist/write-envelope.d.ts +1 -2
- package/dist/write-envelope.js +5 -5
- package/package.json +34 -3
- package/src/access-admin-ops-surface.ts +6 -1
- package/src/access-boundary.ts +1 -0
- package/src/access-http.ts +3 -1
- package/src/access-mcp-output-schemas.ts +1 -0
- package/src/access-mcp.ts +3 -3
- package/src/access-operations.ts +1 -0
- package/src/access-service-offline-file-content.test.ts +63 -0
- package/src/access-surface-catalog.ts +2 -0
- package/src/activity/config.test.ts +1 -0
- package/src/activity/config.ts +66 -1
- package/src/activity/index.ts +3 -0
- package/src/activity/journal.test.ts +97 -0
- package/src/activity/journal.ts +113 -0
- package/src/activity/privacy.test.ts +53 -0
- package/src/activity/privacy.ts +80 -0
- package/src/activity/timeline/build.ts +279 -0
- package/src/activity/timeline/categories.ts +111 -0
- package/src/activity/timeline/classify.ts +110 -0
- package/src/activity/timeline/corrections.ts +145 -0
- package/src/activity/timeline/index.ts +8 -0
- package/src/activity/timeline/journal-recap.test.ts +113 -0
- package/src/activity/timeline/journal-recap.ts +130 -0
- package/src/activity/timeline/query.test.ts +198 -0
- package/src/activity/timeline/query.ts +313 -0
- package/src/activity/timeline/timeline.test.ts +277 -0
- package/src/activity/timeline/types.ts +106 -0
- package/src/activity/timeline/weekly.test.ts +215 -0
- package/src/activity/timeline/weekly.ts +234 -0
- package/src/activity/types.ts +20 -0
- package/src/activity/vault-publish.test.ts +166 -0
- package/src/activity/vault-publish.ts +101 -0
- package/src/cli/okf-commands.ts +45 -0
- package/src/cli.ts +2 -2
- package/src/coding/export-okf-codegraph.test.ts +381 -0
- package/src/coding/export-okf-codegraph.ts +565 -0
- package/src/config.test.ts +1 -0
- package/src/config.ts +2 -22
- package/src/dedup/merge-on-write.test.ts +91 -0
- package/src/dedup/merge-on-write.ts +75 -0
- package/src/dedup/novelty-gate.test.ts +143 -0
- package/src/dedup/novelty-gate.ts +163 -0
- package/src/extraction-prompt-safety.test.ts +14 -2
- package/src/extraction.ts +21 -1
- package/src/fallback-llm.test.ts +134 -0
- package/src/fallback-llm.ts +77 -5
- package/src/location/access-operations.ts +17 -8
- package/src/location/backfill.ts +137 -0
- package/src/location/config.test.ts +3 -0
- package/src/location/config.ts +46 -2
- package/src/location/http-glue.ts +1 -1
- package/src/location/index.ts +3 -0
- package/src/location/intervals.ts +1 -0
- package/src/location/matching.test.ts +65 -0
- package/src/location/matching.ts +354 -0
- package/src/location/mcp-tools.ts +2 -1
- package/src/location/recall-exclusion.test.ts +1 -0
- package/src/location/surfaces.test.ts +15 -2
- package/src/location/surfaces.ts +95 -18
- package/src/location/tagging.test.ts +119 -0
- package/src/location/tagging.ts +277 -0
- package/src/location/types.ts +23 -1
- package/src/mcp-read-only-tools.ts +1 -0
- package/src/memory-projection-store.ts +3 -1
- package/src/okf/cli.ts +18 -5
- package/src/okf/config.ts +5 -0
- package/src/okf/index-files.test.ts +60 -0
- package/src/okf/index-files.ts +114 -0
- package/src/okf/render.ts +133 -0
- package/src/okf/type-mapping.test.ts +3 -0
- package/src/okf/type-mapping.ts +2 -0
- package/src/orchestration/extraction-persist.ts +22 -23
- package/src/orchestration/extraction-run.ts +2 -1
- package/src/orchestration/generic-recall-paths.ts +15 -3
- package/src/orchestration/recall-entry.ts +8 -3
- package/src/recall-deep.test.ts +72 -0
- package/src/recall-deep.ts +113 -0
- package/src/recall-navigate.test.ts +84 -0
- package/src/recall-navigate.ts +100 -0
- package/src/recall-state-view-wire.test.ts +35 -0
- package/src/recall-state-view-wire.ts +28 -0
- package/src/recall-state-view.test.ts +131 -0
- package/src/recall-state-view.ts +138 -0
- package/src/schemas.ts +17 -1
- package/src/shared-context/governance.test.ts +53 -0
- package/src/shared-context/governance.ts +86 -0
- package/src/standup/access-operations.ts +14 -0
- package/src/standup/build.test.ts +34 -0
- package/src/standup/build.ts +115 -0
- package/src/standup/http-glue.ts +15 -0
- package/src/standup/mcp-tools.ts +16 -0
- package/src/support-passport/card-projection.ts +1 -0
- package/src/support-passport/card-service-commit-forwarding.test.ts +1 -0
- package/src/support-passport/card-service.test.ts +75 -1
- package/src/support-passport/card-service.ts +6 -3
- package/src/support-passport/card-state.ts +5 -1
- package/src/support-passport/offline-sync-guard.ts +14 -1
- package/src/transfer/export-okf.test.ts +164 -0
- package/src/transfer/export-okf.ts +286 -0
- package/src/types.ts +3 -10
- package/dist/chunk-2LWQSV6A.js.map +0 -1
- package/dist/chunk-3BCULS4U.js.map +0 -1
- package/dist/chunk-7BDZTALN.js.map +0 -1
- package/dist/chunk-7PHI6GUI.js.map +0 -1
- package/dist/chunk-7WOWGRAU.js.map +0 -1
- package/dist/chunk-AX7UXCHJ.js.map +0 -1
- package/dist/chunk-DEACDKE3.js.map +0 -1
- package/dist/chunk-FP7YTTVO.js.map +0 -1
- package/dist/chunk-JYSN42VN.js.map +0 -1
- package/dist/chunk-KZIF6XHX.js.map +0 -1
- package/dist/chunk-LKYIOCWL.js.map +0 -1
- package/dist/chunk-OXRRJXPR.js.map +0 -1
- package/dist/chunk-U7EW2W4W.js.map +0 -1
- package/dist/chunk-UW5NPZJ2.js.map +0 -1
- package/dist/chunk-XAB6STPO.js.map +0 -1
- package/dist/chunk-XNWXSGHS.js.map +0 -1
- package/dist/types-CM86alG1.d.ts +0 -89
- /package/dist/{auto-sync-2YPITIWN.js.map → auto-sync-Q6Q2FVSC.js.map} +0 -0
- /package/dist/{capsule-merge-SGIVB3WA.js.map → capsule-merge-SEHERWWP.js.map} +0 -0
- /package/dist/{chunk-LEPOP46W.js.map → chunk-227UFSEQ.js.map} +0 -0
- /package/dist/{chunk-TFR3HG4K.js.map → chunk-2FA7U5XY.js.map} +0 -0
- /package/dist/{chunk-PO7NXBG2.js.map → chunk-2GF27PGH.js.map} +0 -0
- /package/dist/{chunk-MY2BC6UE.js.map → chunk-2X6BGKQL.js.map} +0 -0
- /package/dist/{chunk-UEBDCMOO.js.map → chunk-3TSU662L.js.map} +0 -0
- /package/dist/{chunk-S5XOSTYM.js.map → chunk-4XLTUR6R.js.map} +0 -0
- /package/dist/{chunk-BWGCOLEL.js.map → chunk-65JOGLIS.js.map} +0 -0
- /package/dist/{chunk-HMZKGHMD.js.map → chunk-7UOXCCCI.js.map} +0 -0
- /package/dist/{chunk-4F4AQFWL.js.map → chunk-B4AOWRYF.js.map} +0 -0
- /package/dist/{chunk-ODU2CNNX.js.map → chunk-C5IUOBCN.js.map} +0 -0
- /package/dist/{chunk-3A2NJP2U.js.map → chunk-CHGG74CY.js.map} +0 -0
- /package/dist/{chunk-76DIF5KT.js.map → chunk-CX4OLNIH.js.map} +0 -0
- /package/dist/{chunk-Z3YEGSR4.js.map → chunk-D3UXGE5D.js.map} +0 -0
- /package/dist/{chunk-5HK3CJAR.js.map → chunk-D6Q5EPOV.js.map} +0 -0
- /package/dist/{chunk-EGBDFJ36.js.map → chunk-DD5JFCWM.js.map} +0 -0
- /package/dist/{chunk-XBGHAAKR.js.map → chunk-DDX6KIXF.js.map} +0 -0
- /package/dist/{chunk-JIYDRBVZ.js.map → chunk-DJORULH3.js.map} +0 -0
- /package/dist/{chunk-7KQB4EBS.js.map → chunk-DUAJKRR2.js.map} +0 -0
- /package/dist/{chunk-Q57GOHLF.js.map → chunk-EGALNSZ4.js.map} +0 -0
- /package/dist/{chunk-DPCXDG7G.js.map → chunk-EH65UV2Z.js.map} +0 -0
- /package/dist/{chunk-KCT36JAW.js.map → chunk-ESNFSSO4.js.map} +0 -0
- /package/dist/{chunk-XQ3HXAQH.js.map → chunk-ET2CNMLD.js.map} +0 -0
- /package/dist/{chunk-TUHBYJXL.js.map → chunk-EWKVYCFP.js.map} +0 -0
- /package/dist/{chunk-NPFUNWNX.js.map → chunk-FFUMTH27.js.map} +0 -0
- /package/dist/{chunk-3PKAS6VL.js.map → chunk-GAJK3DQ5.js.map} +0 -0
- /package/dist/{chunk-DA7ITC5Z.js.map → chunk-GBEOUCBB.js.map} +0 -0
- /package/dist/{chunk-UENKPWCS.js.map → chunk-H2IRSXZN.js.map} +0 -0
- /package/dist/{chunk-CFVTRUR3.js.map → chunk-H6RSANGQ.js.map} +0 -0
- /package/dist/{chunk-EUYWQ7TS.js.map → chunk-IEZ6CGTW.js.map} +0 -0
- /package/dist/{chunk-3SZD4CYO.js.map → chunk-IGZCAHFL.js.map} +0 -0
- /package/dist/{chunk-UPFNQJC7.js.map → chunk-INUBU6I5.js.map} +0 -0
- /package/dist/{chunk-PMVPCZJZ.js.map → chunk-J2R275FN.js.map} +0 -0
- /package/dist/{chunk-2QSZNTDO.js.map → chunk-JBPKEARU.js.map} +0 -0
- /package/dist/{chunk-5ACCD4L7.js.map → chunk-JRRQ747T.js.map} +0 -0
- /package/dist/{chunk-V4IDF3EZ.js.map → chunk-JTWZKNUH.js.map} +0 -0
- /package/dist/{chunk-AZMLH5UT.js.map → chunk-KI64TTBL.js.map} +0 -0
- /package/dist/{chunk-NPIBN2VL.js.map → chunk-LK4TOYPU.js.map} +0 -0
- /package/dist/{chunk-UTQUEHC7.js.map → chunk-LUDBXTBJ.js.map} +0 -0
- /package/dist/{chunk-PU56CXZA.js.map → chunk-LYUUA6QB.js.map} +0 -0
- /package/dist/{chunk-P36Z4JRA.js.map → chunk-M5ERTI4I.js.map} +0 -0
- /package/dist/{chunk-LDKPDODJ.js.map → chunk-ME35HVDJ.js.map} +0 -0
- /package/dist/{chunk-773TRRGT.js.map → chunk-MJUCDM3C.js.map} +0 -0
- /package/dist/{chunk-AHPIFKNG.js.map → chunk-N4F7ZSSG.js.map} +0 -0
- /package/dist/{chunk-JOZUBF4A.js.map → chunk-NACLNNFQ.js.map} +0 -0
- /package/dist/{chunk-LC2BDILZ.js.map → chunk-NBP4EX5N.js.map} +0 -0
- /package/dist/{chunk-T7XP6IZE.js.map → chunk-NFP4KPTA.js.map} +0 -0
- /package/dist/{chunk-ZVPVTPGI.js.map → chunk-NNZFPYYX.js.map} +0 -0
- /package/dist/{chunk-LPNCR4QK.js.map → chunk-NSTNGMSS.js.map} +0 -0
- /package/dist/{chunk-5RWZH6PH.js.map → chunk-NUF7VSEX.js.map} +0 -0
- /package/dist/{chunk-7VZFRUQU.js.map → chunk-O7ERGZDA.js.map} +0 -0
- /package/dist/{chunk-HSZMX3ZJ.js.map → chunk-ODW5GDFE.js.map} +0 -0
- /package/dist/{chunk-5DHKCO52.js.map → chunk-OJUEUQDJ.js.map} +0 -0
- /package/dist/{chunk-LOXHYCVS.js.map → chunk-OMX6TKXH.js.map} +0 -0
- /package/dist/{chunk-J2WC5LF4.js.map → chunk-QBC33MPY.js.map} +0 -0
- /package/dist/{chunk-SEEJOGQX.js.map → chunk-QBNE55VA.js.map} +0 -0
- /package/dist/{chunk-F7XUD3PL.js.map → chunk-S4CDUXQY.js.map} +0 -0
- /package/dist/{chunk-WNXYT4MK.js.map → chunk-S4Z2OBTX.js.map} +0 -0
- /package/dist/{chunk-UL4MKZHI.js.map → chunk-SN4JXNLL.js.map} +0 -0
- /package/dist/{chunk-CAMNRAJF.js.map → chunk-SZMYGDSM.js.map} +0 -0
- /package/dist/{chunk-CPA5NBHN.js.map → chunk-TNGH4ZYI.js.map} +0 -0
- /package/dist/{chunk-F3NVYTTA.js.map → chunk-TNXNECAN.js.map} +0 -0
- /package/dist/{chunk-BEC4YBNA.js.map → chunk-TVW4C7PV.js.map} +0 -0
- /package/dist/{chunk-UFKPQBXH.js.map → chunk-U62OK7BB.js.map} +0 -0
- /package/dist/{chunk-4QEYREAV.js.map → chunk-U6NGKS32.js.map} +0 -0
- /package/dist/{chunk-HRHO3ZNG.js.map → chunk-UW4RYPWC.js.map} +0 -0
- /package/dist/{chunk-T6ILXUAH.js.map → chunk-VG4SSPAW.js.map} +0 -0
- /package/dist/{chunk-H2YSH3DG.js.map → chunk-WKAXBXVA.js.map} +0 -0
- /package/dist/{chunk-SXIMQLGV.js.map → chunk-WVGXCBOC.js.map} +0 -0
- /package/dist/{chunk-UNUMFURP.js.map → chunk-X5PIDJ3L.js.map} +0 -0
- /package/dist/{chunk-CRML27CO.js.map → chunk-X5YYSAZX.js.map} +0 -0
- /package/dist/{chunk-FZEEWOI2.js.map → chunk-XJJYSX6F.js.map} +0 -0
- /package/dist/{chunk-OA2O2GJ4.js.map → chunk-XOHYGIWF.js.map} +0 -0
- /package/dist/{chunk-UG6VXIOK.js.map → chunk-XSTNGNJP.js.map} +0 -0
- /package/dist/{chunk-YDPAE2RD.js.map → chunk-YFLLGRXO.js.map} +0 -0
- /package/dist/{chunk-MDD2RINF.js.map → chunk-YWPLOJ7T.js.map} +0 -0
- /package/dist/{chunk-Q4WONDMJ.js.map → chunk-YYGZJPOK.js.map} +0 -0
- /package/dist/{chunk-GTO56JY5.js.map → chunk-ZPS724LT.js.map} +0 -0
- /package/dist/{chunk-SNOIKAHM.js.map → chunk-ZZZWEDF4.js.map} +0 -0
- /package/dist/{contradiction-scan-AKUWPX5N.js.map → contradiction-scan-NOYMFG66.js.map} +0 -0
- /package/dist/{first-start-migration-4NETATFF.js.map → first-start-migration-KHIMCBIC.js.map} +0 -0
- /package/dist/{purge-GB7PZHT2.js.map → purge-OP6BEDFY.js.map} +0 -0
- /package/dist/{resolution-XWBPKYFB.js.map → recall-state-view-wire.js.map} +0 -0
- /package/dist/{tier-stats-4B5IJ3NE.js.map → tier-stats-2TOW3QNL.js.map} +0 -0
|
@@ -7,18 +7,22 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
openclawReplayNormalizer
|
|
9
9
|
} from "./chunk-H4CKS5B2.js";
|
|
10
|
-
import {
|
|
11
|
-
importSqlite
|
|
12
|
-
} from "./chunk-PYHOAXTI.js";
|
|
13
10
|
import {
|
|
14
11
|
exportJsonBundle
|
|
15
12
|
} from "./chunk-UP6MOYCB.js";
|
|
13
|
+
import {
|
|
14
|
+
exportOkfBundle,
|
|
15
|
+
parseIncludeStatus
|
|
16
|
+
} from "./chunk-LJABGXC4.js";
|
|
16
17
|
import {
|
|
17
18
|
exportSqlite
|
|
18
19
|
} from "./chunk-BV2TIZ4F.js";
|
|
19
20
|
import {
|
|
20
21
|
importMarkdownBundle
|
|
21
22
|
} from "./chunk-HDDRVXX4.js";
|
|
23
|
+
import {
|
|
24
|
+
importSqlite
|
|
25
|
+
} from "./chunk-PYHOAXTI.js";
|
|
22
26
|
import {
|
|
23
27
|
detectImportFormat
|
|
24
28
|
} from "./chunk-OZKVVUJB.js";
|
|
@@ -31,9 +35,6 @@ import {
|
|
|
31
35
|
import {
|
|
32
36
|
exportMarkdownBundle
|
|
33
37
|
} from "./chunk-765K3SAT.js";
|
|
34
|
-
import {
|
|
35
|
-
RoutingRulesStore
|
|
36
|
-
} from "./chunk-TBUEE7XF.js";
|
|
37
38
|
import {
|
|
38
39
|
buildReplayNormalizerRegistry,
|
|
39
40
|
clampBatchSize,
|
|
@@ -43,6 +44,9 @@ import {
|
|
|
43
44
|
isReplaySource,
|
|
44
45
|
normalizeReplaySessionKey
|
|
45
46
|
} from "./chunk-AJVLDJU6.js";
|
|
47
|
+
import {
|
|
48
|
+
RoutingRulesStore
|
|
49
|
+
} from "./chunk-TBUEE7XF.js";
|
|
46
50
|
import {
|
|
47
51
|
TailscaleHelper
|
|
48
52
|
} from "./chunk-EEC4PCG5.js";
|
|
@@ -54,22 +58,28 @@ import {
|
|
|
54
58
|
} from "./chunk-IIFFC3RL.js";
|
|
55
59
|
import {
|
|
56
60
|
rebuildMemoryLifecycleLedger
|
|
57
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-2FA7U5XY.js";
|
|
58
62
|
import {
|
|
59
63
|
rebuildObservations
|
|
60
64
|
} from "./chunk-DQTCGVFK.js";
|
|
61
65
|
import {
|
|
62
66
|
archiveObservations
|
|
63
67
|
} from "./chunk-YLBE6PLR.js";
|
|
64
|
-
import {
|
|
65
|
-
runCompatChecks
|
|
66
|
-
} from "./chunk-CDKHKZL5.js";
|
|
67
68
|
import {
|
|
68
69
|
getBulkImportSource,
|
|
69
70
|
listBulkImportSources,
|
|
70
71
|
registerBulkImportSource,
|
|
71
72
|
runBulkImportPipeline
|
|
72
73
|
} from "./chunk-HSSERO3E.js";
|
|
74
|
+
import {
|
|
75
|
+
lintOkfDir
|
|
76
|
+
} from "./chunk-TCQRIIIN.js";
|
|
77
|
+
import {
|
|
78
|
+
runCompatChecks
|
|
79
|
+
} from "./chunk-CDKHKZL5.js";
|
|
80
|
+
import {
|
|
81
|
+
searchVerifiedEpisodes
|
|
82
|
+
} from "./chunk-ZPS724LT.js";
|
|
73
83
|
import {
|
|
74
84
|
getUtilityLearningStatus,
|
|
75
85
|
learnUtilityPromotionWeights
|
|
@@ -78,23 +88,20 @@ import {
|
|
|
78
88
|
getUtilityTelemetryStatus,
|
|
79
89
|
recordUtilityTelemetryEvent
|
|
80
90
|
} from "./chunk-6FC3IZ26.js";
|
|
81
|
-
import {
|
|
82
|
-
searchVerifiedEpisodes
|
|
83
|
-
} from "./chunk-GTO56JY5.js";
|
|
84
91
|
import {
|
|
85
92
|
ThreadingManager
|
|
86
93
|
} from "./chunk-OJP3N7UK.js";
|
|
87
94
|
import {
|
|
88
95
|
promoteSemanticRuleFromMemory
|
|
89
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-XOHYGIWF.js";
|
|
90
97
|
import {
|
|
91
98
|
searchVerifiedSemanticRules
|
|
92
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-M5ERTI4I.js";
|
|
93
100
|
import {
|
|
94
101
|
buildResumeBundleFromState,
|
|
95
102
|
getResumeBundleStatus,
|
|
96
103
|
recordResumeBundle
|
|
97
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-GBEOUCBB.js";
|
|
98
105
|
import {
|
|
99
106
|
getWorkProductLedgerStatus,
|
|
100
107
|
recordWorkProductLedgerEntry,
|
|
@@ -105,7 +112,7 @@ import {
|
|
|
105
112
|
} from "./chunk-AM4T6CHX.js";
|
|
106
113
|
import {
|
|
107
114
|
parseXrayCliOptions
|
|
108
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-X5PIDJ3L.js";
|
|
109
116
|
import {
|
|
110
117
|
readRuntimePolicySnapshot,
|
|
111
118
|
sanitizeRuntimePolicyValues
|
|
@@ -118,7 +125,7 @@ import {
|
|
|
118
125
|
runOperatorInventory,
|
|
119
126
|
runOperatorRepair,
|
|
120
127
|
runOperatorSetup
|
|
121
|
-
} from "./chunk-
|
|
128
|
+
} from "./chunk-2X6BGKQL.js";
|
|
122
129
|
import {
|
|
123
130
|
analyzeSessionIntegrity,
|
|
124
131
|
applySessionRepair,
|
|
@@ -155,7 +162,7 @@ import {
|
|
|
155
162
|
} from "./chunk-UOBPK2OS.js";
|
|
156
163
|
import {
|
|
157
164
|
searchHarmonicRetrieval
|
|
158
|
-
} from "./chunk-
|
|
165
|
+
} from "./chunk-EWKVYCFP.js";
|
|
159
166
|
import {
|
|
160
167
|
createEvalBaselineSnapshot,
|
|
161
168
|
getEvalHarnessStatus,
|
|
@@ -175,7 +182,7 @@ import {
|
|
|
175
182
|
rebuildMemoryProjection,
|
|
176
183
|
repairMemoryProjection,
|
|
177
184
|
verifyMemoryProjection
|
|
178
|
-
} from "./chunk-
|
|
185
|
+
} from "./chunk-H2IRSXZN.js";
|
|
179
186
|
import {
|
|
180
187
|
applyCommitmentLedgerLifecycle,
|
|
181
188
|
getCommitmentLedgerStatus,
|
|
@@ -196,11 +203,11 @@ import {
|
|
|
196
203
|
} from "./chunk-6TBIWIAG.js";
|
|
197
204
|
import {
|
|
198
205
|
parseConfig
|
|
199
|
-
} from "./chunk-
|
|
206
|
+
} from "./chunk-AF5H7TKI.js";
|
|
200
207
|
import {
|
|
201
208
|
EngramAccessHttpServer,
|
|
202
209
|
MeetingsInputError
|
|
203
|
-
} from "./chunk-
|
|
210
|
+
} from "./chunk-U65VJSCJ.js";
|
|
204
211
|
import {
|
|
205
212
|
WearablesInputError
|
|
206
213
|
} from "./chunk-V7IZKJI3.js";
|
|
@@ -210,13 +217,13 @@ import {
|
|
|
210
217
|
loadChatSession,
|
|
211
218
|
processChatMessage,
|
|
212
219
|
sessionBelongsToPrincipal
|
|
213
|
-
} from "./chunk-
|
|
220
|
+
} from "./chunk-TBCDF556.js";
|
|
214
221
|
import {
|
|
215
222
|
getAbstractionNodeStoreStatus
|
|
216
223
|
} from "./chunk-DJUKBGAD.js";
|
|
217
224
|
import {
|
|
218
225
|
EngramAccessService
|
|
219
|
-
} from "./chunk-
|
|
226
|
+
} from "./chunk-MUEGIKKY.js";
|
|
220
227
|
import {
|
|
221
228
|
WorkStorage
|
|
222
229
|
} from "./chunk-GDB4J2H3.js";
|
|
@@ -233,10 +240,10 @@ import {
|
|
|
233
240
|
parseRecallExplainFormat,
|
|
234
241
|
renderRecallExplain,
|
|
235
242
|
renderXray
|
|
236
|
-
} from "./chunk-
|
|
243
|
+
} from "./chunk-H6RSANGQ.js";
|
|
237
244
|
import {
|
|
238
245
|
readAggregateExtractionWatermark
|
|
239
|
-
} from "./chunk-
|
|
246
|
+
} from "./chunk-OMX6TKXH.js";
|
|
240
247
|
import {
|
|
241
248
|
getObjectiveStateStoreStatus
|
|
242
249
|
} from "./chunk-HTP6XRUI.js";
|
|
@@ -244,16 +251,16 @@ import {
|
|
|
244
251
|
listNamespaces,
|
|
245
252
|
runNamespaceMigration,
|
|
246
253
|
verifyNamespaces
|
|
247
|
-
} from "./chunk-
|
|
254
|
+
} from "./chunk-4XLTUR6R.js";
|
|
248
255
|
import {
|
|
249
256
|
listMemoryGovernanceRuns,
|
|
250
257
|
readMemoryGovernanceRunArtifact,
|
|
251
258
|
restoreMemoryGovernanceRun,
|
|
252
259
|
runMemoryGovernance
|
|
253
|
-
} from "./chunk-
|
|
260
|
+
} from "./chunk-QBNE55VA.js";
|
|
254
261
|
import {
|
|
255
262
|
resolveNamespaceChildRoot
|
|
256
|
-
} from "./chunk-
|
|
263
|
+
} from "./chunk-YWPLOJ7T.js";
|
|
257
264
|
import {
|
|
258
265
|
analyzeGraphHealth
|
|
259
266
|
} from "./chunk-YMOPYG3K.js";
|
|
@@ -261,23 +268,26 @@ import {
|
|
|
261
268
|
OKF_RESERVED_BASENAMES,
|
|
262
269
|
meetingIdDate,
|
|
263
270
|
okfTypeForCategory
|
|
264
|
-
} from "./chunk-
|
|
271
|
+
} from "./chunk-2ITZ74A6.js";
|
|
265
272
|
import {
|
|
266
273
|
isValidTranscriptDate
|
|
267
274
|
} from "./chunk-UHVXE24Y.js";
|
|
268
275
|
import {
|
|
269
276
|
RECALL_DISCLOSURE_LEVELS,
|
|
270
277
|
isRecallDisclosure
|
|
271
|
-
} from "./chunk-
|
|
278
|
+
} from "./chunk-XXW32OL7.js";
|
|
272
279
|
import {
|
|
273
|
-
|
|
274
|
-
} from "./chunk-
|
|
280
|
+
normalizeProjectionPreview
|
|
281
|
+
} from "./chunk-SCU65EZI.js";
|
|
275
282
|
import {
|
|
276
283
|
bumpMemoryCorpusVersionForDir
|
|
277
284
|
} from "./chunk-XCB6QDL6.js";
|
|
278
285
|
import {
|
|
279
286
|
renderQmdBacklogStatus
|
|
280
287
|
} from "./chunk-IUM3VSHI.js";
|
|
288
|
+
import {
|
|
289
|
+
composeMemoryEnvelope
|
|
290
|
+
} from "./chunk-WKAXBXVA.js";
|
|
281
291
|
import {
|
|
282
292
|
hostSecretRefResolver,
|
|
283
293
|
loadHostSecretRefResolver,
|
|
@@ -313,20 +323,23 @@ import {
|
|
|
313
323
|
renderActionConfidenceText
|
|
314
324
|
} from "./chunk-Z2YFLXHU.js";
|
|
315
325
|
import {
|
|
316
|
-
|
|
317
|
-
} from "./chunk-
|
|
326
|
+
writeFileAtomically
|
|
327
|
+
} from "./chunk-AW4QUFQF.js";
|
|
318
328
|
import {
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
} from "./chunk-GCASGYIO.js";
|
|
329
|
+
STATE_FILE_MAX_DECRYPT_BYTES
|
|
330
|
+
} from "./chunk-JRRQ747T.js";
|
|
322
331
|
import {
|
|
323
332
|
inferMemoryStatus,
|
|
324
333
|
isArchivedMemoryPath,
|
|
325
334
|
toMemoryPathRel
|
|
326
335
|
} from "./chunk-7RJUVTVF.js";
|
|
336
|
+
import {
|
|
337
|
+
assertPathInsideRoot,
|
|
338
|
+
pathIsInside
|
|
339
|
+
} from "./chunk-GCASGYIO.js";
|
|
327
340
|
import {
|
|
328
341
|
isSupportPassportPrivateMemory
|
|
329
|
-
} from "./chunk-
|
|
342
|
+
} from "./chunk-EEOUMG3J.js";
|
|
330
343
|
import {
|
|
331
344
|
selectRouteRule,
|
|
332
345
|
validateRouteTarget
|
|
@@ -355,10 +368,9 @@ import {
|
|
|
355
368
|
resolveHomeDir
|
|
356
369
|
} from "./chunk-JUC24CTX.js";
|
|
357
370
|
import {
|
|
358
|
-
MAGIC_BYTES,
|
|
359
371
|
SECURE_STORE_ENVELOPE_OVERHEAD_BYTES,
|
|
360
372
|
probeEncryptedRegularFileHeader
|
|
361
|
-
} from "./chunk-
|
|
373
|
+
} from "./chunk-ET2CNMLD.js";
|
|
362
374
|
import {
|
|
363
375
|
RECALL_FALLBACK_DIRS
|
|
364
376
|
} from "./chunk-VS2IYZRU.js";
|
|
@@ -367,7 +379,7 @@ import {
|
|
|
367
379
|
} from "./chunk-3WCASNQZ.js";
|
|
368
380
|
|
|
369
381
|
// src/cli.ts
|
|
370
|
-
import
|
|
382
|
+
import path7 from "path";
|
|
371
383
|
import { access, lstat as lstat3, readFile as readFile2, readdir as readdir3, realpath as realpath3, unlink } from "fs/promises";
|
|
372
384
|
import { createHash } from "crypto";
|
|
373
385
|
|
|
@@ -1165,99 +1177,12 @@ function registerMeetingsCommands(cmd, orchestrator) {
|
|
|
1165
1177
|
});
|
|
1166
1178
|
}
|
|
1167
1179
|
|
|
1168
|
-
// src/okf
|
|
1169
|
-
import
|
|
1170
|
-
import path from "path";
|
|
1171
|
-
function isEncryptedBlob(raw) {
|
|
1172
|
-
return raw.startsWith(MAGIC_BYTES.toString("ascii"));
|
|
1173
|
-
}
|
|
1174
|
-
function hasFrontmatter(raw) {
|
|
1175
|
-
return raw.startsWith("---\n") || raw.startsWith("---\r\n");
|
|
1176
|
-
}
|
|
1177
|
-
function readType(raw) {
|
|
1178
|
-
const close = raw.indexOf("\n---", 4);
|
|
1179
|
-
if (close === -1) return void 0;
|
|
1180
|
-
const block = raw.slice(4, close);
|
|
1181
|
-
const match = /^type:[ \t]*(.*)$/m.exec(block);
|
|
1182
|
-
if (!match) return void 0;
|
|
1183
|
-
const value = match[1].trim().replace(/^["']|["']$/g, "");
|
|
1184
|
-
return value;
|
|
1185
|
-
}
|
|
1186
|
-
function walkMarkdown(root, out) {
|
|
1187
|
-
let entries;
|
|
1188
|
-
try {
|
|
1189
|
-
entries = fs.readdirSync(root, { withFileTypes: true });
|
|
1190
|
-
} catch {
|
|
1191
|
-
return;
|
|
1192
|
-
}
|
|
1193
|
-
for (const entry of entries.sort((a, b) => a.name.localeCompare(b.name))) {
|
|
1194
|
-
if (entry.name === "state" || entry.name === ".git") continue;
|
|
1195
|
-
const full = path.join(root, entry.name);
|
|
1196
|
-
let stat;
|
|
1197
|
-
try {
|
|
1198
|
-
stat = fs.lstatSync(full);
|
|
1199
|
-
} catch {
|
|
1200
|
-
continue;
|
|
1201
|
-
}
|
|
1202
|
-
if (stat.isSymbolicLink()) continue;
|
|
1203
|
-
if (stat.isDirectory()) {
|
|
1204
|
-
walkMarkdown(full, out);
|
|
1205
|
-
continue;
|
|
1206
|
-
}
|
|
1207
|
-
if (stat.isFile() && entry.name.endsWith(".md")) out.push(full);
|
|
1208
|
-
}
|
|
1209
|
-
}
|
|
1210
|
-
function lintOkfDir(memoryDir) {
|
|
1211
|
-
const files = [];
|
|
1212
|
-
walkMarkdown(memoryDir, files);
|
|
1213
|
-
const findings = [];
|
|
1214
|
-
for (const file of files) {
|
|
1215
|
-
const rel = path.relative(memoryDir, file);
|
|
1216
|
-
const base = path.basename(file);
|
|
1217
|
-
if (OKF_RESERVED_BASENAMES[base] === true) {
|
|
1218
|
-
findings.push({
|
|
1219
|
-
file: rel,
|
|
1220
|
-
code: "reserved_basename",
|
|
1221
|
-
message: `${base} is reserved by OKF \xA76/\xA77`
|
|
1222
|
-
});
|
|
1223
|
-
continue;
|
|
1224
|
-
}
|
|
1225
|
-
let raw;
|
|
1226
|
-
try {
|
|
1227
|
-
raw = fs.readFileSync(file, "utf8");
|
|
1228
|
-
} catch {
|
|
1229
|
-
continue;
|
|
1230
|
-
}
|
|
1231
|
-
if (isEncryptedBlob(raw)) {
|
|
1232
|
-
findings.push({
|
|
1233
|
-
file: rel,
|
|
1234
|
-
code: "skipped_encrypted",
|
|
1235
|
-
message: "skipped (encrypted)"
|
|
1236
|
-
});
|
|
1237
|
-
continue;
|
|
1238
|
-
}
|
|
1239
|
-
if (!hasFrontmatter(raw)) {
|
|
1240
|
-
findings.push({
|
|
1241
|
-
file: rel,
|
|
1242
|
-
code: "missing_frontmatter",
|
|
1243
|
-
message: "missing YAML frontmatter"
|
|
1244
|
-
});
|
|
1245
|
-
continue;
|
|
1246
|
-
}
|
|
1247
|
-
const type = readType(raw);
|
|
1248
|
-
if (type === void 0) {
|
|
1249
|
-
findings.push({ file: rel, code: "missing_type", message: "missing type" });
|
|
1250
|
-
} else if (type.length === 0) {
|
|
1251
|
-
findings.push({ file: rel, code: "empty_type", message: "empty type" });
|
|
1252
|
-
}
|
|
1253
|
-
}
|
|
1254
|
-
const actionable = findings.filter((f) => f.code !== "skipped_encrypted");
|
|
1255
|
-
return { ok: actionable.length === 0, scanned: files.length, findings };
|
|
1256
|
-
}
|
|
1180
|
+
// src/cli/okf-commands.ts
|
|
1181
|
+
import path3 from "path";
|
|
1257
1182
|
|
|
1258
1183
|
// src/okf/sweep.ts
|
|
1259
|
-
import
|
|
1260
|
-
import
|
|
1184
|
+
import fs from "fs";
|
|
1185
|
+
import path from "path";
|
|
1261
1186
|
function insertType(raw, type) {
|
|
1262
1187
|
const crlf = raw.startsWith("---\r\n");
|
|
1263
1188
|
if (!crlf && !raw.startsWith("---\n")) return null;
|
|
@@ -1295,37 +1220,137 @@ function runOkfConformanceSweep(memoryDir, options) {
|
|
|
1295
1220
|
let written = 0;
|
|
1296
1221
|
for (const finding of lint.findings) {
|
|
1297
1222
|
if (finding.code !== "missing_type" && finding.code !== "empty_type") continue;
|
|
1298
|
-
const file =
|
|
1299
|
-
const raw =
|
|
1223
|
+
const file = path.join(memoryDir, finding.file);
|
|
1224
|
+
const raw = fs.readFileSync(file, "utf8");
|
|
1300
1225
|
const next = insertType(raw, "");
|
|
1301
1226
|
if (next === null || next === raw) continue;
|
|
1302
|
-
|
|
1227
|
+
fs.writeFileSync(file, next);
|
|
1303
1228
|
written += 1;
|
|
1304
1229
|
}
|
|
1305
1230
|
return { scanned: lint.scanned, written };
|
|
1306
1231
|
}
|
|
1307
1232
|
|
|
1233
|
+
// src/okf/index-files.ts
|
|
1234
|
+
import { readdirSync, readFileSync, statSync, unlinkSync } from "fs";
|
|
1235
|
+
import path2 from "path";
|
|
1236
|
+
var OKF_INDEX_MARKER = "<!-- remnic-okf-index -->";
|
|
1237
|
+
var INDEXED_ROOTS = ["entities", "facts", "corrections", "summaries"];
|
|
1238
|
+
async function runOkfIndexMaintenance(memoryDir, enabled) {
|
|
1239
|
+
const written = [];
|
|
1240
|
+
const removed = [];
|
|
1241
|
+
const dirs = collectIndexDirs(memoryDir);
|
|
1242
|
+
for (const dir of dirs) {
|
|
1243
|
+
const indexPath = path2.join(dir, "index.md");
|
|
1244
|
+
if (!enabled) {
|
|
1245
|
+
if (isGeneratedIndex(indexPath)) {
|
|
1246
|
+
unlinkSync(indexPath);
|
|
1247
|
+
removed.push(indexPath);
|
|
1248
|
+
}
|
|
1249
|
+
continue;
|
|
1250
|
+
}
|
|
1251
|
+
const next = renderIndex(dir);
|
|
1252
|
+
if (next === null) continue;
|
|
1253
|
+
if (isUnchangedGenerated(indexPath, next)) continue;
|
|
1254
|
+
await writeFileAtomically(indexPath, next);
|
|
1255
|
+
written.push(indexPath);
|
|
1256
|
+
}
|
|
1257
|
+
return { written, removed };
|
|
1258
|
+
}
|
|
1259
|
+
function collectIndexDirs(memoryDir) {
|
|
1260
|
+
const dirs = [memoryDir];
|
|
1261
|
+
for (const root of INDEXED_ROOTS) {
|
|
1262
|
+
const full = path2.join(memoryDir, root);
|
|
1263
|
+
if (!isDir(full)) continue;
|
|
1264
|
+
dirs.push(full);
|
|
1265
|
+
if (root === "facts") {
|
|
1266
|
+
for (const entry of safeList(full)) {
|
|
1267
|
+
const child = path2.join(full, entry);
|
|
1268
|
+
if (isDir(child) && /^\d{4}-\d{2}-\d{2}$/.test(entry)) dirs.push(child);
|
|
1269
|
+
}
|
|
1270
|
+
}
|
|
1271
|
+
}
|
|
1272
|
+
return dirs;
|
|
1273
|
+
}
|
|
1274
|
+
function renderIndex(dir) {
|
|
1275
|
+
const entries = safeList(dir).filter((name) => name.endsWith(".md") && OKF_RESERVED_BASENAMES[name] !== true).sort((a, b) => a.localeCompare(b));
|
|
1276
|
+
if (entries.length === 0) return null;
|
|
1277
|
+
const lines = [OKF_INDEX_MARKER, "", `# ${path2.basename(dir)}`, ""];
|
|
1278
|
+
for (const name of entries) {
|
|
1279
|
+
const preview = previewFile(path2.join(dir, name));
|
|
1280
|
+
lines.push(`* [${titleFrom(name, preview)}](${name}) - ${preview}`);
|
|
1281
|
+
}
|
|
1282
|
+
lines.push("");
|
|
1283
|
+
return lines.join("\n");
|
|
1284
|
+
}
|
|
1285
|
+
function previewFile(filePath) {
|
|
1286
|
+
try {
|
|
1287
|
+
return normalizeProjectionPreview(readFileSync(filePath, "utf8"), 120);
|
|
1288
|
+
} catch {
|
|
1289
|
+
return "";
|
|
1290
|
+
}
|
|
1291
|
+
}
|
|
1292
|
+
function titleFrom(name, preview) {
|
|
1293
|
+
return preview.split(" ").slice(0, 8).join(" ") || name.replace(/\.md$/, "");
|
|
1294
|
+
}
|
|
1295
|
+
function isGeneratedIndex(filePath) {
|
|
1296
|
+
try {
|
|
1297
|
+
return readFileSync(filePath, "utf8").includes(OKF_INDEX_MARKER);
|
|
1298
|
+
} catch {
|
|
1299
|
+
return false;
|
|
1300
|
+
}
|
|
1301
|
+
}
|
|
1302
|
+
function isUnchangedGenerated(filePath, next) {
|
|
1303
|
+
try {
|
|
1304
|
+
return readFileSync(filePath, "utf8") === next;
|
|
1305
|
+
} catch {
|
|
1306
|
+
return false;
|
|
1307
|
+
}
|
|
1308
|
+
}
|
|
1309
|
+
function isDir(dir) {
|
|
1310
|
+
try {
|
|
1311
|
+
return statSync(dir).isDirectory();
|
|
1312
|
+
} catch {
|
|
1313
|
+
return false;
|
|
1314
|
+
}
|
|
1315
|
+
}
|
|
1316
|
+
function safeList(dir) {
|
|
1317
|
+
try {
|
|
1318
|
+
return readdirSync(dir);
|
|
1319
|
+
} catch {
|
|
1320
|
+
return [];
|
|
1321
|
+
}
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1308
1324
|
// src/okf/cli.ts
|
|
1309
1325
|
async function runOkfCliCommand(argv, io, ctx) {
|
|
1310
1326
|
const [subcommand, ...rest] = argv;
|
|
1311
1327
|
if (subcommand === "help" || subcommand === "--help" || subcommand === "-h") {
|
|
1312
|
-
io.stdout.write(`usage: remnic okf <lint|sweep> [--json]
|
|
1328
|
+
io.stdout.write(`usage: remnic okf <lint|sweep|index> [--json]
|
|
1313
1329
|
lint report OKF conformance findings (exit 1 when findings remain)
|
|
1314
1330
|
sweep backfill missing type values (requires okf.sweepEnabled)
|
|
1331
|
+
index generate or remove index.md files (okf.indexFilesEnabled)
|
|
1315
1332
|
`);
|
|
1316
1333
|
return 0;
|
|
1317
1334
|
}
|
|
1318
|
-
if (subcommand !== "lint" && subcommand !== "sweep") {
|
|
1319
|
-
io.stderr.write("okf: expected lint or
|
|
1335
|
+
if (subcommand !== "lint" && subcommand !== "sweep" && subcommand !== "index") {
|
|
1336
|
+
io.stderr.write("okf: expected lint, sweep, or index\n");
|
|
1320
1337
|
return 1;
|
|
1321
1338
|
}
|
|
1322
1339
|
for (const token of rest) {
|
|
1323
1340
|
if (token === "--json") continue;
|
|
1324
|
-
io.stderr.write(`okf: unexpected argument '${token}' \u2014 usage: remnic okf <lint|sweep> [--json]
|
|
1341
|
+
io.stderr.write(`okf: unexpected argument '${token}' \u2014 usage: remnic okf <lint|sweep|index> [--json]
|
|
1325
1342
|
`);
|
|
1326
1343
|
return 1;
|
|
1327
1344
|
}
|
|
1328
1345
|
const json = rest.includes("--json");
|
|
1346
|
+
if (subcommand === "index") {
|
|
1347
|
+
const result2 = await runOkfIndexMaintenance(ctx.memoryDir, ctx.indexFilesEnabled);
|
|
1348
|
+
if (json) io.stdout.write(`${JSON.stringify(result2)}
|
|
1349
|
+
`);
|
|
1350
|
+
else io.stdout.write(`okf index: wrote ${result2.written.length}, removed ${result2.removed.length}
|
|
1351
|
+
`);
|
|
1352
|
+
return 0;
|
|
1353
|
+
}
|
|
1329
1354
|
if (subcommand === "sweep") {
|
|
1330
1355
|
const result2 = runOkfConformanceSweep(ctx.memoryDir, ctx);
|
|
1331
1356
|
if (json) io.stdout.write(`${JSON.stringify(result2)}
|
|
@@ -1355,7 +1380,8 @@ function registerOkfCommands(cmd, orchestrator) {
|
|
|
1355
1380
|
const code = await runOkfCliCommand(argv, { stdout: process.stdout, stderr: process.stderr }, {
|
|
1356
1381
|
memoryDir: orchestrator.config.memoryDir,
|
|
1357
1382
|
conformanceEnabled: orchestrator.config.okf.conformanceEnabled,
|
|
1358
|
-
sweepEnabled: orchestrator.config.okf.sweepEnabled
|
|
1383
|
+
sweepEnabled: orchestrator.config.okf.sweepEnabled,
|
|
1384
|
+
indexFilesEnabled: orchestrator.config.okf.indexFilesEnabled
|
|
1359
1385
|
});
|
|
1360
1386
|
if (code !== 0) process.exitCode = code;
|
|
1361
1387
|
};
|
|
@@ -1368,16 +1394,43 @@ function registerOkfCommands(cmd, orchestrator) {
|
|
|
1368
1394
|
await forward(["sweep", ...options.json === true ? ["--json"] : []]);
|
|
1369
1395
|
});
|
|
1370
1396
|
}
|
|
1397
|
+
function registerExportOkfCommand(exportCmd, orchestrator) {
|
|
1398
|
+
exportCmd.command("okf").description("Export a portable OKF v0.1 knowledge bundle").requiredOption("--out <path>", "Output directory").option("--namespace <ns>", "Namespace to export").option("--include-status <status>", "Repeatable status allow-list (default: active)").option("--include-categories <categories>", "Comma-separated category allow-list").option("--exclude-tags <tags>", "Comma-separated tags to drop").option("--include-profile", "Include profile.md (default off)").option("--include-wearables", "Include wearable day transcripts (default off)").option("--log", "Write log.md from the lifecycle ledger").option("--force", "Replace a non-empty output directory").action(async (...args) => {
|
|
1399
|
+
const options = args[0] ?? {};
|
|
1400
|
+
const out = options.out ? String(options.out) : "";
|
|
1401
|
+
if (!out) throw new Error("Missing --out");
|
|
1402
|
+
const includeStatus = parseIncludeStatus(options.includeStatus);
|
|
1403
|
+
const namespace = options.namespace ? String(options.namespace) : "";
|
|
1404
|
+
const memoryDir = namespace ? path3.join(orchestrator.config.memoryDir, "namespaces", namespace) : orchestrator.config.memoryDir;
|
|
1405
|
+
const result = await exportOkfBundle({
|
|
1406
|
+
memoryDir,
|
|
1407
|
+
outDir: out,
|
|
1408
|
+
includeStatus,
|
|
1409
|
+
includeCategories: options.includeCategories ? String(options.includeCategories).split(",") : void 0,
|
|
1410
|
+
excludeTags: options.excludeTags ? String(options.excludeTags).split(",") : void 0,
|
|
1411
|
+
includeProfile: options.includeProfile === true,
|
|
1412
|
+
includeWearables: options.includeWearables === true,
|
|
1413
|
+
includeLog: options.log === true,
|
|
1414
|
+
force: options.force === true
|
|
1415
|
+
});
|
|
1416
|
+
if (result.plaintextWarning) {
|
|
1417
|
+
console.log("PLAINTEXT EXPORT: the OKF bundle is unencrypted.");
|
|
1418
|
+
}
|
|
1419
|
+
console.log(
|
|
1420
|
+
`OKF export: ${result.exported} concepts, ${result.excluded} excluded`
|
|
1421
|
+
);
|
|
1422
|
+
});
|
|
1423
|
+
}
|
|
1371
1424
|
|
|
1372
1425
|
// src/procedural/skill-io.ts
|
|
1373
1426
|
import { lstat, mkdir, readdir, readFile, realpath, writeFile } from "fs/promises";
|
|
1374
|
-
import
|
|
1427
|
+
import path4 from "path";
|
|
1375
1428
|
async function exportSkillBundles(options) {
|
|
1376
|
-
const outDir =
|
|
1429
|
+
const outDir = path4.resolve(options.outDir);
|
|
1377
1430
|
await mkdir(outDir, { recursive: true });
|
|
1378
1431
|
const slugs = [];
|
|
1379
1432
|
for (const bundle of options.bundles) {
|
|
1380
|
-
const dir =
|
|
1433
|
+
const dir = path4.join(outDir, bundle.slug);
|
|
1381
1434
|
if (!pathIsInside(outDir, dir)) {
|
|
1382
1435
|
throw new Error(`skill export: refusing to write outside ${outDir} (slug ${bundle.slug})`);
|
|
1383
1436
|
}
|
|
@@ -1390,7 +1443,7 @@ async function exportSkillBundles(options) {
|
|
|
1390
1443
|
if (err.code !== "ENOENT") throw err;
|
|
1391
1444
|
}
|
|
1392
1445
|
await mkdir(dir, { recursive: true });
|
|
1393
|
-
const skillPath =
|
|
1446
|
+
const skillPath = path4.join(dir, SKILL_FILE_NAME);
|
|
1394
1447
|
try {
|
|
1395
1448
|
const existingSkill = await lstat(skillPath);
|
|
1396
1449
|
if (existingSkill.isSymbolicLink()) {
|
|
@@ -1405,7 +1458,7 @@ async function exportSkillBundles(options) {
|
|
|
1405
1458
|
return { outDir, slugs };
|
|
1406
1459
|
}
|
|
1407
1460
|
async function readSkillBundlesFromDir(dir) {
|
|
1408
|
-
const root =
|
|
1461
|
+
const root = path4.resolve(dir);
|
|
1409
1462
|
const rootStat = await lstat(root);
|
|
1410
1463
|
if (rootStat.isSymbolicLink()) {
|
|
1411
1464
|
throw new Error(`skill import: refusing to walk symlinked directory ${root}`);
|
|
@@ -1425,13 +1478,13 @@ async function readSkillBundlesFromDir(dir) {
|
|
|
1425
1478
|
continue;
|
|
1426
1479
|
}
|
|
1427
1480
|
if (!entry.isDirectory()) continue;
|
|
1428
|
-
const bundleDir =
|
|
1481
|
+
const bundleDir = path4.join(root, entry.name);
|
|
1429
1482
|
const bundleReal = await realpath(bundleDir);
|
|
1430
1483
|
if (!pathIsInside(rootReal, bundleReal)) {
|
|
1431
1484
|
skipped.push({ entry: entry.name, reason: "resolves outside the import root" });
|
|
1432
1485
|
continue;
|
|
1433
1486
|
}
|
|
1434
|
-
const skillPath =
|
|
1487
|
+
const skillPath = path4.join(bundleDir, SKILL_FILE_NAME);
|
|
1435
1488
|
let skillStat;
|
|
1436
1489
|
try {
|
|
1437
1490
|
skillStat = await lstat(skillPath);
|
|
@@ -1968,10 +2021,10 @@ function registerCreationLedgerCommands(cmd, orchestrator) {
|
|
|
1968
2021
|
}
|
|
1969
2022
|
|
|
1970
2023
|
// src/maintenance/rebuild-memory-lifecycle-ledger-cli.ts
|
|
1971
|
-
import
|
|
2024
|
+
import path5 from "path";
|
|
1972
2025
|
async function runRebuildMemoryLifecycleLedgerCliCommand(options) {
|
|
1973
2026
|
const storage = options.storage;
|
|
1974
|
-
const ledgerPath =
|
|
2027
|
+
const ledgerPath = path5.join(options.memoryDir, "state", "memory-lifecycle-ledger.jsonl");
|
|
1975
2028
|
const encrypted = await probeEncryptedRegularFileHeader(ledgerPath);
|
|
1976
2029
|
if (encrypted && !(storage?.isSecureStoreUnlocked() ?? false)) {
|
|
1977
2030
|
throw new Error(
|
|
@@ -2469,7 +2522,7 @@ assistant> ${result.reply}
|
|
|
2469
2522
|
// src/training-export/converter.ts
|
|
2470
2523
|
import { constants } from "fs";
|
|
2471
2524
|
import { lstat as lstat2, open, readdir as readdir2, realpath as realpath2 } from "fs/promises";
|
|
2472
|
-
import
|
|
2525
|
+
import path6 from "path";
|
|
2473
2526
|
function parseFrontmatter(raw) {
|
|
2474
2527
|
const match = raw.match(/^---\n([\s\S]*?)\n---\n?([\s\S]*)$/);
|
|
2475
2528
|
if (!match) return null;
|
|
@@ -2509,7 +2562,7 @@ async function safeRealpath(p) {
|
|
|
2509
2562
|
}
|
|
2510
2563
|
}
|
|
2511
2564
|
function isContainedPath(real, containmentRoot) {
|
|
2512
|
-
return real === containmentRoot || real.startsWith(containmentRoot +
|
|
2565
|
+
return real === containmentRoot || real.startsWith(containmentRoot + path6.sep);
|
|
2513
2566
|
}
|
|
2514
2567
|
async function collectMarkdownFiles(dir, containmentRoot) {
|
|
2515
2568
|
const files = [];
|
|
@@ -2529,7 +2582,7 @@ async function collectMarkdownFiles(dir, containmentRoot) {
|
|
|
2529
2582
|
}
|
|
2530
2583
|
const sorted = [...entries].sort((a, b) => a.name.localeCompare(b.name));
|
|
2531
2584
|
for (const entry of sorted) {
|
|
2532
|
-
const full =
|
|
2585
|
+
const full = path6.join(d, entry.name);
|
|
2533
2586
|
if (entry.isSymbolicLink()) continue;
|
|
2534
2587
|
if (entry.isDirectory()) {
|
|
2535
2588
|
await walk(full);
|
|
@@ -2611,9 +2664,9 @@ async function convertMemoriesToRecords(options) {
|
|
|
2611
2664
|
const { memoryDir } = options;
|
|
2612
2665
|
const containmentRoot = await safeRealpath(memoryDir);
|
|
2613
2666
|
if (!containmentRoot) return [];
|
|
2614
|
-
const dirs = RECALL_FALLBACK_DIRS.map((dir) =>
|
|
2667
|
+
const dirs = RECALL_FALLBACK_DIRS.map((dir) => path6.join(memoryDir, dir));
|
|
2615
2668
|
if (options.includeEntities) {
|
|
2616
|
-
dirs.push(
|
|
2669
|
+
dirs.push(path6.join(memoryDir, "entities"));
|
|
2617
2670
|
}
|
|
2618
2671
|
const allFiles = [];
|
|
2619
2672
|
for (const dir of dirs) {
|
|
@@ -2876,14 +2929,14 @@ async function runTrainingExportCliCommand(opts) {
|
|
|
2876
2929
|
`Unknown training-export format "${opts.format}". ${validList}`
|
|
2877
2930
|
);
|
|
2878
2931
|
}
|
|
2879
|
-
const { statSync, existsSync } = await import("fs");
|
|
2932
|
+
const { statSync: statSync2, existsSync } = await import("fs");
|
|
2880
2933
|
if (!existsSync(expandedMemoryDir)) {
|
|
2881
2934
|
throw new Error(
|
|
2882
2935
|
`--memory-dir "${opts.memoryDir}" does not exist. Provide the path to an existing memory directory.`
|
|
2883
2936
|
);
|
|
2884
2937
|
}
|
|
2885
2938
|
try {
|
|
2886
|
-
if (!
|
|
2939
|
+
if (!statSync2(expandedMemoryDir).isDirectory()) {
|
|
2887
2940
|
throw new Error(
|
|
2888
2941
|
`--memory-dir "${opts.memoryDir}" is not a directory. Provide the path to a memory directory, not a file.`
|
|
2889
2942
|
);
|
|
@@ -3621,7 +3674,7 @@ function policyVersionForValues(values, config) {
|
|
|
3621
3674
|
return createHash("sha256").update(JSON.stringify(normalized)).digest("hex").slice(0, 12);
|
|
3622
3675
|
}
|
|
3623
3676
|
async function readRuntimePolicySnapshot2(config, fileName) {
|
|
3624
|
-
const filePath =
|
|
3677
|
+
const filePath = path7.join(config.memoryDir, "state", fileName);
|
|
3625
3678
|
const snapshot = await readRuntimePolicySnapshot(filePath, {
|
|
3626
3679
|
maxStaleDecayThreshold: config.lifecycleArchiveDecayThreshold
|
|
3627
3680
|
});
|
|
@@ -4398,7 +4451,7 @@ async function exists(p) {
|
|
|
4398
4451
|
}
|
|
4399
4452
|
}
|
|
4400
4453
|
function assertSafeNamespaceSegment(namespace) {
|
|
4401
|
-
if (namespace.length === 0 || namespace === "." || namespace === ".." || namespace.includes("/") || namespace.includes("\\") ||
|
|
4454
|
+
if (namespace.length === 0 || namespace === "." || namespace === ".." || namespace.includes("/") || namespace.includes("\\") || path7.isAbsolute(namespace) || path7.win32.isAbsolute(namespace)) {
|
|
4402
4455
|
throw new Error(`invalid namespace: ${namespace}`);
|
|
4403
4456
|
}
|
|
4404
4457
|
}
|
|
@@ -4448,7 +4501,7 @@ async function walkMemoryMarkdownFiles(memoryDir, visit) {
|
|
|
4448
4501
|
for (const entry of entries) {
|
|
4449
4502
|
if (entry.isSymbolicLink()) continue;
|
|
4450
4503
|
const entryName = typeof entry.name === "string" ? entry.name : entry.name.toString("utf-8");
|
|
4451
|
-
const fullPath =
|
|
4504
|
+
const fullPath = path7.join(dir, entryName);
|
|
4452
4505
|
try {
|
|
4453
4506
|
assertPathInsideRoot(memoryRootReal, await realpath3(fullPath), fullPath);
|
|
4454
4507
|
} catch (err) {
|
|
@@ -4463,7 +4516,7 @@ async function walkMemoryMarkdownFiles(memoryDir, visit) {
|
|
|
4463
4516
|
await visit(fullPath);
|
|
4464
4517
|
}
|
|
4465
4518
|
};
|
|
4466
|
-
for (const root of RECALL_FALLBACK_DIRS.map((dir) =>
|
|
4519
|
+
for (const root of RECALL_FALLBACK_DIRS.map((dir) => path7.join(memoryDir, dir))) {
|
|
4467
4520
|
await walk(root);
|
|
4468
4521
|
}
|
|
4469
4522
|
}
|
|
@@ -4791,7 +4844,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
|
|
|
4791
4844
|
);
|
|
4792
4845
|
tierCmd.command("list").description("Summarize tier distribution across all memories").option("--json", "Emit machine-readable JSON only").action(async (...args) => {
|
|
4793
4846
|
const options = args[0] ?? {};
|
|
4794
|
-
const { summarizeTiers, formatTierSummaryText } = await import("./tier-stats-
|
|
4847
|
+
const { summarizeTiers, formatTierSummaryText } = await import("./tier-stats-2TOW3QNL.js");
|
|
4795
4848
|
const summary = await summarizeTiers(orchestrator.storage);
|
|
4796
4849
|
if (reportHasMachineReadableOutput(options)) {
|
|
4797
4850
|
console.log(JSON.stringify(summary, null, 2));
|
|
@@ -4802,7 +4855,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
|
|
|
4802
4855
|
tierCmd.command("explain").description("Explain the tier-transition decision for a single memory").argument("<id>", "Memory id to explain").option("--json", "Emit machine-readable JSON only").action(async (...args) => {
|
|
4803
4856
|
const idArg = typeof args[0] === "string" ? args[0] : "";
|
|
4804
4857
|
const options = args[1] ?? {};
|
|
4805
|
-
const { explainTierForMemory, formatTierExplainText } = await import("./tier-stats-
|
|
4858
|
+
const { explainTierForMemory, formatTierExplainText } = await import("./tier-stats-2TOW3QNL.js");
|
|
4806
4859
|
try {
|
|
4807
4860
|
const explain = await explainTierForMemory(
|
|
4808
4861
|
orchestrator.storage,
|
|
@@ -4928,7 +4981,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
|
|
|
4928
4981
|
}
|
|
4929
4982
|
const confirmed = confirmValue === "yes";
|
|
4930
4983
|
const dryRun = hasDryRunFlag || !confirmed;
|
|
4931
|
-
const { purgeMemories } = await import("./purge-
|
|
4984
|
+
const { purgeMemories } = await import("./purge-OP6BEDFY.js");
|
|
4932
4985
|
try {
|
|
4933
4986
|
const result = await purgeMemories({
|
|
4934
4987
|
storage: orchestrator.storage,
|
|
@@ -5073,7 +5126,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
|
|
|
5073
5126
|
if (plan.moved.length > 0) {
|
|
5074
5127
|
console.log("\nEntries:");
|
|
5075
5128
|
for (const move of plan.moved) {
|
|
5076
|
-
console.log(`- ${
|
|
5129
|
+
console.log(`- ${path7.basename(move.from)}`);
|
|
5077
5130
|
}
|
|
5078
5131
|
}
|
|
5079
5132
|
if (dryRun) {
|
|
@@ -5198,6 +5251,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
|
|
|
5198
5251
|
}
|
|
5199
5252
|
console.log("OK");
|
|
5200
5253
|
});
|
|
5254
|
+
registerExportOkfCommand(exportCmd, orchestrator);
|
|
5201
5255
|
const importCmd = cmd.command("import").description("Import Remnic memory from JSON bundle, Markdown bundle, or SQLite").option("--from <path>", "Import source path (dir or file)").option("--format <format>", "Import format: auto|json|md|sqlite", "auto").option("--conflict <mode>", "Conflict policy: skip|overwrite|dedupe", "skip").option("--dry-run", "Validate import without writing files").option("--namespace <ns>", "Namespace to import into (v3.0+, default: config defaultNamespace)", "").action(async (...args) => {
|
|
5202
5256
|
const options = args[0] ?? {};
|
|
5203
5257
|
const from = options.from ? String(options.from) : "";
|
|
@@ -5373,15 +5427,15 @@ function registerCli(api, orchestrator, registerOptions = {}) {
|
|
|
5373
5427
|
const capsulesDir = defaultCapsulesDir(memoryDir);
|
|
5374
5428
|
const { stat: statMerge } = await import("fs/promises");
|
|
5375
5429
|
let sourceArchive = expandTildePath(parsed.archive);
|
|
5376
|
-
const looksLikePath = sourceArchive.startsWith("/") || sourceArchive.startsWith("./") || sourceArchive.startsWith("../") || sourceArchive.includes(
|
|
5430
|
+
const looksLikePath = sourceArchive.startsWith("/") || sourceArchive.startsWith("./") || sourceArchive.startsWith("../") || sourceArchive.includes(path7.sep);
|
|
5377
5431
|
if (!looksLikePath) {
|
|
5378
|
-
const cwdResolved =
|
|
5432
|
+
const cwdResolved = path7.resolve(sourceArchive);
|
|
5379
5433
|
const cwdSt = await statMerge(cwdResolved).catch(() => null);
|
|
5380
5434
|
if (cwdSt && cwdSt.isFile()) {
|
|
5381
5435
|
sourceArchive = cwdResolved;
|
|
5382
5436
|
} else {
|
|
5383
|
-
const byId =
|
|
5384
|
-
const byIdEnc =
|
|
5437
|
+
const byId = path7.join(capsulesDir, `${sourceArchive}.capsule.json.gz`);
|
|
5438
|
+
const byIdEnc = path7.join(capsulesDir, `${sourceArchive}.capsule.json.gz.enc`);
|
|
5385
5439
|
const stId = await statMerge(byId).catch(() => null);
|
|
5386
5440
|
if (stId && stId.isFile()) {
|
|
5387
5441
|
sourceArchive = byId;
|
|
@@ -5402,7 +5456,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
|
|
|
5402
5456
|
);
|
|
5403
5457
|
}
|
|
5404
5458
|
}
|
|
5405
|
-
const { mergeCapsule } = await import("./capsule-merge-
|
|
5459
|
+
const { mergeCapsule } = await import("./capsule-merge-SEHERWWP.js");
|
|
5406
5460
|
const result = await mergeCapsule({
|
|
5407
5461
|
sourceArchive,
|
|
5408
5462
|
targetRoot: memoryDir,
|
|
@@ -5462,10 +5516,10 @@ function registerCli(api, orchestrator, registerOptions = {}) {
|
|
|
5462
5516
|
).sort();
|
|
5463
5517
|
const entries = [];
|
|
5464
5518
|
for (const archiveName of archives) {
|
|
5465
|
-
const archivePath =
|
|
5519
|
+
const archivePath = path7.join(capsulesDir, archiveName);
|
|
5466
5520
|
const id = archiveName.replace(/\.capsule\.json\.gz\.enc$/, "").replace(/\.capsule\.json\.gz$/, "");
|
|
5467
5521
|
const manifestName = `${id}.manifest.json`;
|
|
5468
|
-
const manifestPath =
|
|
5522
|
+
const manifestPath = path7.join(capsulesDir, manifestName);
|
|
5469
5523
|
let createdAt = null;
|
|
5470
5524
|
let pluginVersion = null;
|
|
5471
5525
|
let fileCount = null;
|
|
@@ -5520,15 +5574,15 @@ function registerCli(api, orchestrator, registerOptions = {}) {
|
|
|
5520
5574
|
const parsed = parseCapsuleInspectOptions(archiveArg, opts);
|
|
5521
5575
|
const { stat } = await import("fs/promises");
|
|
5522
5576
|
let archivePath = expandTildePath(parsed.archive);
|
|
5523
|
-
const looksLikePath = archivePath.startsWith("/") || archivePath.startsWith("./") || archivePath.startsWith("../") || archivePath.includes(
|
|
5577
|
+
const looksLikePath = archivePath.startsWith("/") || archivePath.startsWith("./") || archivePath.startsWith("../") || archivePath.includes(path7.sep);
|
|
5524
5578
|
if (!looksLikePath) {
|
|
5525
|
-
const cwdResolved =
|
|
5579
|
+
const cwdResolved = path7.resolve(archivePath);
|
|
5526
5580
|
const cwdSt = await stat(cwdResolved).catch(() => null);
|
|
5527
5581
|
if (cwdSt && cwdSt.isFile()) {
|
|
5528
5582
|
archivePath = cwdResolved;
|
|
5529
5583
|
} else {
|
|
5530
|
-
const byId =
|
|
5531
|
-
const byIdEnc =
|
|
5584
|
+
const byId = path7.join(capsulesDir, `${archivePath}.capsule.json.gz`);
|
|
5585
|
+
const byIdEnc = path7.join(capsulesDir, `${archivePath}.capsule.json.gz.enc`);
|
|
5532
5586
|
const st = await stat(byId).catch(() => null);
|
|
5533
5587
|
if (st && st.isFile()) {
|
|
5534
5588
|
archivePath = byId;
|
|
@@ -7519,7 +7573,7 @@ Semantic consolidation complete. clusters=${result.clustersFound}, consolidated=
|
|
|
7519
7573
|
return;
|
|
7520
7574
|
}
|
|
7521
7575
|
const expandedTarget = expandTildePath(rawTarget);
|
|
7522
|
-
const targetPath =
|
|
7576
|
+
const targetPath = path7.isAbsolute(expandedTarget) ? expandedTarget : path7.join(orchestrator.config.memoryDir, expandedTarget);
|
|
7523
7577
|
const { runConsolidationUndo, formatConsolidationUndoResult } = await import("./consolidation-undo.js");
|
|
7524
7578
|
const result = await runConsolidationUndo({
|
|
7525
7579
|
storage: orchestrator.storage,
|
|
@@ -7557,7 +7611,7 @@ Semantic consolidation complete. clusters=${result.clustersFound}, consolidated=
|
|
|
7557
7611
|
}
|
|
7558
7612
|
});
|
|
7559
7613
|
cmd.command("identity").description("Show agent identity reflections").action(async () => {
|
|
7560
|
-
const workspaceDir =
|
|
7614
|
+
const workspaceDir = path7.join(resolveHomeDir(), ".openclaw", "workspace");
|
|
7561
7615
|
const identity = await orchestrator.storage.readIdentity(workspaceDir);
|
|
7562
7616
|
if (!identity) {
|
|
7563
7617
|
console.log("No identity file found.");
|
|
@@ -7780,8 +7834,8 @@ Semantic consolidation complete. clusters=${result.clustersFound}, consolidated=
|
|
|
7780
7834
|
const options = args[0] ?? {};
|
|
7781
7835
|
const threadId = options.thread;
|
|
7782
7836
|
const top = parseInt(options.top ?? "10", 10);
|
|
7783
|
-
const memoryDir =
|
|
7784
|
-
const threading = new ThreadingManager(
|
|
7837
|
+
const memoryDir = path7.join(resolveHomeDir(), ".openclaw", "workspace", "memory", "local");
|
|
7838
|
+
const threading = new ThreadingManager(path7.join(memoryDir, "threads"));
|
|
7785
7839
|
if (threadId) {
|
|
7786
7840
|
const thread = await threading.loadThread(threadId);
|
|
7787
7841
|
if (!thread) {
|
|
@@ -8043,7 +8097,7 @@ Semantic consolidation complete. clusters=${result.clustersFound}, consolidated=
|
|
|
8043
8097
|
console.error("--verb is required. Must be one of: keep-a, keep-b, merge, both-valid, needs-more-context");
|
|
8044
8098
|
process.exit(1);
|
|
8045
8099
|
}
|
|
8046
|
-
const { isValidResolutionVerb, executeResolution } = await import("./resolution-
|
|
8100
|
+
const { isValidResolutionVerb, executeResolution } = await import("./resolution-4DLI3IOR.js");
|
|
8047
8101
|
if (!isValidResolutionVerb(verb)) {
|
|
8048
8102
|
console.error(`Invalid verb: ${verb}. Must be one of: keep-a, keep-b, merge, both-valid, needs-more-context`);
|
|
8049
8103
|
process.exit(1);
|
|
@@ -8075,7 +8129,7 @@ Semantic consolidation complete. clusters=${result.clustersFound}, consolidated=
|
|
|
8075
8129
|
});
|
|
8076
8130
|
reviewCmd.command("scan").description("Run an on-demand contradiction scan").option("--namespace <ns>", "Namespace to scan").action(async (...args) => {
|
|
8077
8131
|
const options = args[0] ?? {};
|
|
8078
|
-
const { runContradictionScan } = await import("./contradiction-scan-
|
|
8132
|
+
const { runContradictionScan } = await import("./contradiction-scan-NOYMFG66.js");
|
|
8079
8133
|
console.log("Running contradiction scan...");
|
|
8080
8134
|
const result = await runContradictionScan({
|
|
8081
8135
|
storage: orchestrator.storage,
|
|
@@ -8811,4 +8865,4 @@ export {
|
|
|
8811
8865
|
listMemoryMarkdownFilePaths,
|
|
8812
8866
|
registerCli
|
|
8813
8867
|
};
|
|
8814
|
-
//# sourceMappingURL=chunk-
|
|
8868
|
+
//# sourceMappingURL=chunk-RPIS5FQ7.js.map
|