@remnic/core 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abstraction-nodes.d.ts +52 -0
- package/dist/abstraction-nodes.js +15 -0
- package/dist/abstraction-nodes.js.map +1 -0
- package/dist/access-cli.d.ts +5 -0
- package/dist/access-cli.js +308 -0
- package/dist/access-cli.js.map +1 -0
- package/dist/access-http.d.ts +158 -0
- package/dist/access-http.js +32 -0
- package/dist/access-http.js.map +1 -0
- package/dist/access-idempotency.d.ts +31 -0
- package/dist/access-idempotency.js +11 -0
- package/dist/access-idempotency.js.map +1 -0
- package/dist/access-mcp.d.ts +76 -0
- package/dist/access-mcp.js +8 -0
- package/dist/access-mcp.js.map +1 -0
- package/dist/access-schema.d.ts +266 -0
- package/dist/access-schema.js +29 -0
- package/dist/access-schema.js.map +1 -0
- package/dist/access-service.d.ts +614 -0
- package/dist/access-service.js +32 -0
- package/dist/access-service.js.map +1 -0
- package/dist/behavior-learner.d.ts +16 -0
- package/dist/behavior-learner.js +124 -0
- package/dist/behavior-learner.js.map +1 -0
- package/dist/behavior-signals.d.ts +15 -0
- package/dist/behavior-signals.js +11 -0
- package/dist/behavior-signals.js.map +1 -0
- package/dist/bootstrap.d.ts +46 -0
- package/dist/bootstrap.js +9 -0
- package/dist/bootstrap.js.map +1 -0
- package/dist/boxes.d.ts +93 -0
- package/dist/boxes.js +14 -0
- package/dist/boxes.js.map +1 -0
- package/dist/buffer.d.ts +22 -0
- package/dist/buffer.js +9 -0
- package/dist/buffer.js.map +1 -0
- package/dist/calibration.d.ts +81 -0
- package/dist/calibration.js +239 -0
- package/dist/calibration.js.map +1 -0
- package/dist/causal-behavior.d.ts +79 -0
- package/dist/causal-behavior.js +190 -0
- package/dist/causal-behavior.js.map +1 -0
- package/dist/causal-chain.d.ts +61 -0
- package/dist/causal-chain.js +24 -0
- package/dist/causal-chain.js.map +1 -0
- package/dist/causal-consolidation.d.ts +71 -0
- package/dist/causal-consolidation.js +211 -0
- package/dist/causal-consolidation.js.map +1 -0
- package/dist/causal-retrieval.d.ts +44 -0
- package/dist/causal-retrieval.js +184 -0
- package/dist/causal-retrieval.js.map +1 -0
- package/dist/causal-trajectory-graph.d.ts +13 -0
- package/dist/causal-trajectory-graph.js +59 -0
- package/dist/causal-trajectory-graph.js.map +1 -0
- package/dist/causal-trajectory.d.ts +68 -0
- package/dist/causal-trajectory.js +18 -0
- package/dist/causal-trajectory.js.map +1 -0
- package/dist/chunk-2CJCWDMR.js +87 -0
- package/dist/chunk-2CJCWDMR.js.map +1 -0
- package/dist/chunk-2NMMFZ5T.js +216 -0
- package/dist/chunk-2NMMFZ5T.js.map +1 -0
- package/dist/chunk-2PO5ZRKV.js +103 -0
- package/dist/chunk-2PO5ZRKV.js.map +1 -0
- package/dist/chunk-3QKK7QOS.js +154 -0
- package/dist/chunk-3QKK7QOS.js.map +1 -0
- package/dist/chunk-3SLRNYNG.js +26 -0
- package/dist/chunk-3SLRNYNG.js.map +1 -0
- package/dist/chunk-4A24LIM2.js +68 -0
- package/dist/chunk-4A24LIM2.js.map +1 -0
- package/dist/chunk-6HZ6AO2P.js +164 -0
- package/dist/chunk-6HZ6AO2P.js.map +1 -0
- package/dist/chunk-763GUIOU.js +302 -0
- package/dist/chunk-763GUIOU.js.map +1 -0
- package/dist/chunk-AAI7JARD.js +173 -0
- package/dist/chunk-AAI7JARD.js.map +1 -0
- package/dist/chunk-B7LOFDVE.js +112 -0
- package/dist/chunk-B7LOFDVE.js.map +1 -0
- package/dist/chunk-BDFZXRSO.js +318 -0
- package/dist/chunk-BDFZXRSO.js.map +1 -0
- package/dist/chunk-BOUYNNYD.js +707 -0
- package/dist/chunk-BOUYNNYD.js.map +1 -0
- package/dist/chunk-BRK4ODMI.js +60 -0
- package/dist/chunk-BRK4ODMI.js.map +1 -0
- package/dist/chunk-C6QPK5GG.js +111 -0
- package/dist/chunk-C6QPK5GG.js.map +1 -0
- package/dist/chunk-C7VW7C3F.js +117 -0
- package/dist/chunk-C7VW7C3F.js.map +1 -0
- package/dist/chunk-CDW777AI.js +621 -0
- package/dist/chunk-CDW777AI.js.map +1 -0
- package/dist/chunk-CULXMQJH.js +185 -0
- package/dist/chunk-CULXMQJH.js.map +1 -0
- package/dist/chunk-CXWFUJR2.js +1203 -0
- package/dist/chunk-CXWFUJR2.js.map +1 -0
- package/dist/chunk-DGXUHMOV.js +61 -0
- package/dist/chunk-DGXUHMOV.js.map +1 -0
- package/dist/chunk-DM2T26WE.js +61 -0
- package/dist/chunk-DM2T26WE.js.map +1 -0
- package/dist/chunk-DORBM6OB.js +81 -0
- package/dist/chunk-DORBM6OB.js.map +1 -0
- package/dist/chunk-DT5TVLJE.js +32 -0
- package/dist/chunk-DT5TVLJE.js.map +1 -0
- package/dist/chunk-EEQLFRUM.js +89 -0
- package/dist/chunk-EEQLFRUM.js.map +1 -0
- package/dist/chunk-EQINRHYR.js +672 -0
- package/dist/chunk-EQINRHYR.js.map +1 -0
- package/dist/chunk-ESSMF2FR.js +146 -0
- package/dist/chunk-ESSMF2FR.js.map +1 -0
- package/dist/chunk-ETOW6ACV.js +158 -0
- package/dist/chunk-ETOW6ACV.js.map +1 -0
- package/dist/chunk-FYIYMQ5N.js +221 -0
- package/dist/chunk-FYIYMQ5N.js.map +1 -0
- package/dist/chunk-G3AG3KZN.js +78 -0
- package/dist/chunk-G3AG3KZN.js.map +1 -0
- package/dist/chunk-GJR6D6KC.js +61 -0
- package/dist/chunk-GJR6D6KC.js.map +1 -0
- package/dist/chunk-GPGBSNKM.js +380 -0
- package/dist/chunk-GPGBSNKM.js.map +1 -0
- package/dist/chunk-H63EDPFJ.js +57 -0
- package/dist/chunk-H63EDPFJ.js.map +1 -0
- package/dist/chunk-HG2NKWR2.js +185 -0
- package/dist/chunk-HG2NKWR2.js.map +1 -0
- package/dist/chunk-HL4DB7TO.js +13 -0
- package/dist/chunk-HL4DB7TO.js.map +1 -0
- package/dist/chunk-HLBYLYRD.js +346 -0
- package/dist/chunk-HLBYLYRD.js.map +1 -0
- package/dist/chunk-HLXVTBF3.js +109 -0
- package/dist/chunk-HLXVTBF3.js.map +1 -0
- package/dist/chunk-IFFFR3MR.js +68 -0
- package/dist/chunk-IFFFR3MR.js.map +1 -0
- package/dist/chunk-ISY75RLM.js +1027 -0
- package/dist/chunk-ISY75RLM.js.map +1 -0
- package/dist/chunk-IZME7KW2.js +1886 -0
- package/dist/chunk-IZME7KW2.js.map +1 -0
- package/dist/chunk-J3BT33K7.js +720 -0
- package/dist/chunk-J3BT33K7.js.map +1 -0
- package/dist/chunk-J47FNDR7.js +113 -0
- package/dist/chunk-J47FNDR7.js.map +1 -0
- package/dist/chunk-JWPLJLDU.js +63 -0
- package/dist/chunk-JWPLJLDU.js.map +1 -0
- package/dist/chunk-K6WK37A6.js +865 -0
- package/dist/chunk-K6WK37A6.js.map +1 -0
- package/dist/chunk-KL4CP4SB.js +130 -0
- package/dist/chunk-KL4CP4SB.js.map +1 -0
- package/dist/chunk-KT4NEUNF.js +315 -0
- package/dist/chunk-KT4NEUNF.js.map +1 -0
- package/dist/chunk-KWBU5S5U.js +42 -0
- package/dist/chunk-KWBU5S5U.js.map +1 -0
- package/dist/chunk-L5RPWGFK.js +59 -0
- package/dist/chunk-L5RPWGFK.js.map +1 -0
- package/dist/chunk-L7WO3MZ4.js +128 -0
- package/dist/chunk-L7WO3MZ4.js.map +1 -0
- package/dist/chunk-LIRZNNUP.js +74 -0
- package/dist/chunk-LIRZNNUP.js.map +1 -0
- package/dist/chunk-LK6SGL53.js +22 -0
- package/dist/chunk-LK6SGL53.js.map +1 -0
- package/dist/chunk-LOBRX7VD.js +200 -0
- package/dist/chunk-LOBRX7VD.js.map +1 -0
- package/dist/chunk-LPSF4OQH.js +47 -0
- package/dist/chunk-LPSF4OQH.js.map +1 -0
- package/dist/chunk-LU3GQNDQ.js +152 -0
- package/dist/chunk-LU3GQNDQ.js.map +1 -0
- package/dist/chunk-M5KEYE5E.js +350 -0
- package/dist/chunk-M5KEYE5E.js.map +1 -0
- package/dist/chunk-M62O4P4T.js +41 -0
- package/dist/chunk-M62O4P4T.js.map +1 -0
- package/dist/chunk-MARWOCVP.js +48 -0
- package/dist/chunk-MARWOCVP.js.map +1 -0
- package/dist/chunk-MDDAA2AO.js +925 -0
- package/dist/chunk-MDDAA2AO.js.map +1 -0
- package/dist/chunk-MWGVGUIS.js +198 -0
- package/dist/chunk-MWGVGUIS.js.map +1 -0
- package/dist/chunk-N5AKDXAI.js +74 -0
- package/dist/chunk-N5AKDXAI.js.map +1 -0
- package/dist/chunk-NGAVDO7E.js +115 -0
- package/dist/chunk-NGAVDO7E.js.map +1 -0
- package/dist/chunk-NTTLPF7F.js +283 -0
- package/dist/chunk-NTTLPF7F.js.map +1 -0
- package/dist/chunk-ONRU4L2N.js +240 -0
- package/dist/chunk-ONRU4L2N.js.map +1 -0
- package/dist/chunk-ORZMT74A.js +209 -0
- package/dist/chunk-ORZMT74A.js.map +1 -0
- package/dist/chunk-OTAVQCSF.js +268 -0
- package/dist/chunk-OTAVQCSF.js.map +1 -0
- package/dist/chunk-PGK3VUHN.js +160 -0
- package/dist/chunk-PGK3VUHN.js.map +1 -0
- package/dist/chunk-Q6FETXJA.js +1362 -0
- package/dist/chunk-Q6FETXJA.js.map +1 -0
- package/dist/chunk-QANCTXQF.js +271 -0
- package/dist/chunk-QANCTXQF.js.map +1 -0
- package/dist/chunk-QCCCQT3O.js +189 -0
- package/dist/chunk-QCCCQT3O.js.map +1 -0
- package/dist/chunk-QDOSNLB4.js +1048 -0
- package/dist/chunk-QDOSNLB4.js.map +1 -0
- package/dist/chunk-QFQVZOGA.js +2168 -0
- package/dist/chunk-QFQVZOGA.js.map +1 -0
- package/dist/chunk-QPKFPHOO.js +178 -0
- package/dist/chunk-QPKFPHOO.js.map +1 -0
- package/dist/chunk-QSVPYQPG.js +268 -0
- package/dist/chunk-QSVPYQPG.js.map +1 -0
- package/dist/chunk-QWUUMMIK.js +3045 -0
- package/dist/chunk-QWUUMMIK.js.map +1 -0
- package/dist/chunk-QY2BHY5O.js +2378 -0
- package/dist/chunk-QY2BHY5O.js.map +1 -0
- package/dist/chunk-SCHEKPYH.js +349 -0
- package/dist/chunk-SCHEKPYH.js.map +1 -0
- package/dist/chunk-SCU65EZI.js +15 -0
- package/dist/chunk-SCU65EZI.js.map +1 -0
- package/dist/chunk-T4WRIV2C.js +170 -0
- package/dist/chunk-T4WRIV2C.js.map +1 -0
- package/dist/chunk-TKO4HZCK.js +1852 -0
- package/dist/chunk-TKO4HZCK.js.map +1 -0
- package/dist/chunk-TP4FZJIZ.js +93 -0
- package/dist/chunk-TP4FZJIZ.js.map +1 -0
- package/dist/chunk-TPB3I2AC.js +403 -0
- package/dist/chunk-TPB3I2AC.js.map +1 -0
- package/dist/chunk-TVVVQQAK.js +1431 -0
- package/dist/chunk-TVVVQQAK.js.map +1 -0
- package/dist/chunk-U4PV25RD.js +14 -0
- package/dist/chunk-U4PV25RD.js.map +1 -0
- package/dist/chunk-UCYSTFZR.js +284 -0
- package/dist/chunk-UCYSTFZR.js.map +1 -0
- package/dist/chunk-UHGBNIOS.js +205 -0
- package/dist/chunk-UHGBNIOS.js.map +1 -0
- package/dist/chunk-UIYZ5T3I.js +108 -0
- package/dist/chunk-UIYZ5T3I.js.map +1 -0
- package/dist/chunk-UV2FO7J4.js +747 -0
- package/dist/chunk-UV2FO7J4.js.map +1 -0
- package/dist/chunk-UZB5KHKX.js +63 -0
- package/dist/chunk-UZB5KHKX.js.map +1 -0
- package/dist/chunk-V3RXWQIE.js +626 -0
- package/dist/chunk-V3RXWQIE.js.map +1 -0
- package/dist/chunk-V4YC4LUK.js +444 -0
- package/dist/chunk-V4YC4LUK.js.map +1 -0
- package/dist/chunk-VEWZZM3H.js +133 -0
- package/dist/chunk-VEWZZM3H.js.map +1 -0
- package/dist/chunk-WWIQTB2Y.js +98 -0
- package/dist/chunk-WWIQTB2Y.js.map +1 -0
- package/dist/chunk-X7XN6YU4.js +24 -0
- package/dist/chunk-X7XN6YU4.js.map +1 -0
- package/dist/chunk-XKECPATV.js +202 -0
- package/dist/chunk-XKECPATV.js.map +1 -0
- package/dist/chunk-XYIK4LF6.js +75 -0
- package/dist/chunk-XYIK4LF6.js.map +1 -0
- package/dist/chunk-Y27UJK6V.js +39 -0
- package/dist/chunk-Y27UJK6V.js.map +1 -0
- package/dist/chunk-Y4Z4I6WK.js +9 -0
- package/dist/chunk-Y4Z4I6WK.js.map +1 -0
- package/dist/chunk-YAPUAHAY.js +10761 -0
- package/dist/chunk-YAPUAHAY.js.map +1 -0
- package/dist/chunk-YAZNBMNF.js +92 -0
- package/dist/chunk-YAZNBMNF.js.map +1 -0
- package/dist/chunk-YCN4BVDK.js +66 -0
- package/dist/chunk-YCN4BVDK.js.map +1 -0
- package/dist/chunk-YNCQ7E4M.js +388 -0
- package/dist/chunk-YNCQ7E4M.js.map +1 -0
- package/dist/chunk-YNI4S5WT.js +143 -0
- package/dist/chunk-YNI4S5WT.js.map +1 -0
- package/dist/chunk-YRMVARQP.js +406 -0
- package/dist/chunk-YRMVARQP.js.map +1 -0
- package/dist/chunk-Z5AAYHUC.js +79 -0
- package/dist/chunk-Z5AAYHUC.js.map +1 -0
- package/dist/chunk-Z5LAYHGJ.js +15 -0
- package/dist/chunk-Z5LAYHGJ.js.map +1 -0
- package/dist/chunk-ZJLY4QSU.js +823 -0
- package/dist/chunk-ZJLY4QSU.js.map +1 -0
- package/dist/chunk-ZKYI7UVO.js +276 -0
- package/dist/chunk-ZKYI7UVO.js.map +1 -0
- package/dist/chunk-ZPKBYX2F.js +297 -0
- package/dist/chunk-ZPKBYX2F.js.map +1 -0
- package/dist/chunking.d.ts +48 -0
- package/dist/chunking.js +11 -0
- package/dist/chunking.js.map +1 -0
- package/dist/cli.d.ts +1162 -0
- package/dist/cli.js +7187 -0
- package/dist/cli.js.map +1 -0
- package/dist/commitment-ledger.d.ts +83 -0
- package/dist/commitment-ledger.js +19 -0
- package/dist/commitment-ledger.js.map +1 -0
- package/dist/compression-optimizer.d.ts +37 -0
- package/dist/compression-optimizer.js +13 -0
- package/dist/compression-optimizer.js.map +1 -0
- package/dist/config.d.ts +6 -0
- package/dist/config.js +12 -0
- package/dist/config.js.map +1 -0
- package/dist/cue-anchors.d.ts +50 -0
- package/dist/cue-anchors.js +15 -0
- package/dist/cue-anchors.js.map +1 -0
- package/dist/dashboard-runtime.d.ts +46 -0
- package/dist/dashboard-runtime.js +10 -0
- package/dist/dashboard-runtime.js.map +1 -0
- package/dist/day-summary.d.ts +6 -0
- package/dist/day-summary.js +10 -0
- package/dist/day-summary.js.map +1 -0
- package/dist/delinearize.d.ts +34 -0
- package/dist/delinearize.js +11 -0
- package/dist/delinearize.js.map +1 -0
- package/dist/embedding-fallback.d.ts +22 -0
- package/dist/embedding-fallback.js +8 -0
- package/dist/embedding-fallback.js.map +1 -0
- package/dist/engine-P26JFSVY.js +19 -0
- package/dist/engine-P26JFSVY.js.map +1 -0
- package/dist/entity-retrieval.d.ts +23 -0
- package/dist/entity-retrieval.js +24 -0
- package/dist/entity-retrieval.js.map +1 -0
- package/dist/evals.d.ts +282 -0
- package/dist/evals.js +32 -0
- package/dist/evals.js.map +1 -0
- package/dist/explicit-capture.d.ts +60 -0
- package/dist/explicit-capture.js +23 -0
- package/dist/explicit-capture.js.map +1 -0
- package/dist/extraction.d.ts +141 -0
- package/dist/extraction.js +22 -0
- package/dist/extraction.js.map +1 -0
- package/dist/fallback-llm.d.ts +95 -0
- package/dist/fallback-llm.js +12 -0
- package/dist/fallback-llm.js.map +1 -0
- package/dist/graph-dashboard-diff.d.ts +12 -0
- package/dist/graph-dashboard-diff.js +8 -0
- package/dist/graph-dashboard-diff.js.map +1 -0
- package/dist/graph-dashboard-key.d.ts +5 -0
- package/dist/graph-dashboard-key.js +7 -0
- package/dist/graph-dashboard-key.js.map +1 -0
- package/dist/graph-dashboard-parser.d.ts +20 -0
- package/dist/graph-dashboard-parser.js +8 -0
- package/dist/graph-dashboard-parser.js.map +1 -0
- package/dist/graph.d.ts +157 -0
- package/dist/graph.js +27 -0
- package/dist/graph.js.map +1 -0
- package/dist/harmonic-retrieval.d.ts +27 -0
- package/dist/harmonic-retrieval.js +12 -0
- package/dist/harmonic-retrieval.js.map +1 -0
- package/dist/himem.d.ts +23 -0
- package/dist/himem.js +7 -0
- package/dist/himem.js.map +1 -0
- package/dist/hygiene.d.ts +24 -0
- package/dist/hygiene.js +9 -0
- package/dist/hygiene.js.map +1 -0
- package/dist/identity-continuity.d.ts +17 -0
- package/dist/identity-continuity.js +19 -0
- package/dist/identity-continuity.js.map +1 -0
- package/dist/importance.d.ts +25 -0
- package/dist/importance.js +11 -0
- package/dist/importance.js.map +1 -0
- package/dist/index.d.ts +923 -0
- package/dist/index.js +2512 -0
- package/dist/index.js.map +1 -0
- package/dist/intent.d.ts +8 -0
- package/dist/intent.js +13 -0
- package/dist/intent.js.map +1 -0
- package/dist/json-extract.d.ts +14 -0
- package/dist/json-extract.js +9 -0
- package/dist/json-extract.js.map +1 -0
- package/dist/json-store.d.ts +5 -0
- package/dist/json-store.js +11 -0
- package/dist/json-store.js.map +1 -0
- package/dist/legacy-hook-compat.d.ts +3 -0
- package/dist/legacy-hook-compat.js +35 -0
- package/dist/legacy-hook-compat.js.map +1 -0
- package/dist/lifecycle.d.ts +52 -0
- package/dist/lifecycle.js +21 -0
- package/dist/lifecycle.js.map +1 -0
- package/dist/local-llm.d.ts +154 -0
- package/dist/local-llm.js +10 -0
- package/dist/local-llm.js.map +1 -0
- package/dist/logger.d.ts +15 -0
- package/dist/logger.js +9 -0
- package/dist/logger.js.map +1 -0
- package/dist/memory-action-policy.d.ts +13 -0
- package/dist/memory-action-policy.js +7 -0
- package/dist/memory-action-policy.js.map +1 -0
- package/dist/memory-cache.d.ts +35 -0
- package/dist/memory-cache.js +37 -0
- package/dist/memory-cache.js.map +1 -0
- package/dist/memory-lifecycle-ledger-utils.d.ts +13 -0
- package/dist/memory-lifecycle-ledger-utils.js +23 -0
- package/dist/memory-lifecycle-ledger-utils.js.map +1 -0
- package/dist/memory-projection-format.d.ts +4 -0
- package/dist/memory-projection-format.js +9 -0
- package/dist/memory-projection-format.js.map +1 -0
- package/dist/memory-projection-store-NxMkbocT.d.ts +221 -0
- package/dist/memory-projection-store.d.ts +3 -0
- package/dist/memory-projection-store.js +31 -0
- package/dist/memory-projection-store.js.map +1 -0
- package/dist/model-registry.d.ts +60 -0
- package/dist/model-registry.js +8 -0
- package/dist/model-registry.js.map +1 -0
- package/dist/native-knowledge.d.ts +94 -0
- package/dist/native-knowledge.js +26 -0
- package/dist/native-knowledge.js.map +1 -0
- package/dist/negative.d.ts +26 -0
- package/dist/negative.js +8 -0
- package/dist/negative.js.map +1 -0
- package/dist/objective-state-writers.d.ts +22 -0
- package/dist/objective-state-writers.js +313 -0
- package/dist/objective-state-writers.js.map +1 -0
- package/dist/objective-state.d.ts +75 -0
- package/dist/objective-state.js +17 -0
- package/dist/objective-state.js.map +1 -0
- package/dist/openai-chat-compat.d.ts +13 -0
- package/dist/openai-chat-compat.js +11 -0
- package/dist/openai-chat-compat.js.map +1 -0
- package/dist/operator-toolkit.d.ts +304 -0
- package/dist/operator-toolkit.js +41 -0
- package/dist/operator-toolkit.js.map +1 -0
- package/dist/opik-exporter.d.ts +72 -0
- package/dist/opik-exporter.js +361 -0
- package/dist/opik-exporter.js.map +1 -0
- package/dist/orchestrator-zTa-Qo-1.d.ts +1104 -0
- package/dist/orchestrator.d.ts +21 -0
- package/dist/orchestrator.js +145 -0
- package/dist/orchestrator.js.map +1 -0
- package/dist/policy-runtime.d.ts +37 -0
- package/dist/policy-runtime.js +13 -0
- package/dist/policy-runtime.js.map +1 -0
- package/dist/port-C1GZFv8h.d.ts +41 -0
- package/dist/profiling.d.ts +80 -0
- package/dist/profiling.js +10 -0
- package/dist/profiling.js.map +1 -0
- package/dist/qmd-recall-cache.d.ts +29 -0
- package/dist/qmd-recall-cache.js +13 -0
- package/dist/qmd-recall-cache.js.map +1 -0
- package/dist/qmd.d.ts +105 -0
- package/dist/qmd.js +13 -0
- package/dist/qmd.js.map +1 -0
- package/dist/recall-qos.d.ts +33 -0
- package/dist/recall-qos.js +10 -0
- package/dist/recall-qos.js.map +1 -0
- package/dist/recall-query-policy.d.ts +20 -0
- package/dist/recall-query-policy.js +11 -0
- package/dist/recall-query-policy.js.map +1 -0
- package/dist/recall-state.d.ts +113 -0
- package/dist/recall-state.js +12 -0
- package/dist/recall-state.js.map +1 -0
- package/dist/recall-tokenization.d.ts +4 -0
- package/dist/recall-tokenization.js +9 -0
- package/dist/recall-tokenization.js.map +1 -0
- package/dist/reconstruct.d.ts +16 -0
- package/dist/reconstruct.js +7 -0
- package/dist/reconstruct.js.map +1 -0
- package/dist/release-changelog.d.ts +7 -0
- package/dist/release-changelog.js +30 -0
- package/dist/release-changelog.js.map +1 -0
- package/dist/relevance.d.ts +18 -0
- package/dist/relevance.js +8 -0
- package/dist/relevance.js.map +1 -0
- package/dist/rerank.d.ts +57 -0
- package/dist/rerank.js +11 -0
- package/dist/rerank.js.map +1 -0
- package/dist/resolve-provider-secret.d.ts +16 -0
- package/dist/resolve-provider-secret.js +11 -0
- package/dist/resolve-provider-secret.js.map +1 -0
- package/dist/resume-bundles.d.ts +66 -0
- package/dist/resume-bundles.js +27 -0
- package/dist/resume-bundles.js.map +1 -0
- package/dist/retrieval-agents.d.ts +129 -0
- package/dist/retrieval-agents.js +23 -0
- package/dist/retrieval-agents.js.map +1 -0
- package/dist/retrieval.d.ts +19 -0
- package/dist/retrieval.js +10 -0
- package/dist/retrieval.js.map +1 -0
- package/dist/sanitize.d.ts +9 -0
- package/dist/sanitize.js +9 -0
- package/dist/sanitize.js.map +1 -0
- package/dist/schemas.d.ts +688 -0
- package/dist/schemas.js +51 -0
- package/dist/schemas.js.map +1 -0
- package/dist/sdk-compat.d.ts +21 -0
- package/dist/sdk-compat.js +28 -0
- package/dist/sdk-compat.js.map +1 -0
- package/dist/semantic-consolidation.d.ts +42 -0
- package/dist/semantic-consolidation.js +12 -0
- package/dist/semantic-consolidation.js.map +1 -0
- package/dist/semantic-rule-promotion.d.ts +28 -0
- package/dist/semantic-rule-promotion.js +17 -0
- package/dist/semantic-rule-promotion.js.map +1 -0
- package/dist/semantic-rule-verifier.d.ts +19 -0
- package/dist/semantic-rule-verifier.js +18 -0
- package/dist/semantic-rule-verifier.js.map +1 -0
- package/dist/session-integrity.d.ts +67 -0
- package/dist/session-integrity.js +11 -0
- package/dist/session-integrity.js.map +1 -0
- package/dist/session-observer-bands.d.ts +6 -0
- package/dist/session-observer-bands.js +9 -0
- package/dist/session-observer-bands.js.map +1 -0
- package/dist/session-observer-state.d.ts +40 -0
- package/dist/session-observer-state.js +11 -0
- package/dist/session-observer-state.js.map +1 -0
- package/dist/signal.d.ts +6 -0
- package/dist/signal.js +9 -0
- package/dist/signal.js.map +1 -0
- package/dist/storage.d.ts +453 -0
- package/dist/storage.js +24 -0
- package/dist/storage.js.map +1 -0
- package/dist/store-contract.d.ts +10 -0
- package/dist/store-contract.js +21 -0
- package/dist/store-contract.js.map +1 -0
- package/dist/summarizer.d.ts +35 -0
- package/dist/summarizer.js +17 -0
- package/dist/summarizer.js.map +1 -0
- package/dist/summary-snapshot.d.ts +8 -0
- package/dist/summary-snapshot.js +13 -0
- package/dist/summary-snapshot.js.map +1 -0
- package/dist/temporal-index.d.ts +139 -0
- package/dist/temporal-index.js +29 -0
- package/dist/temporal-index.js.map +1 -0
- package/dist/threading.d.ts +62 -0
- package/dist/threading.js +8 -0
- package/dist/threading.js.map +1 -0
- package/dist/tier-migration.d.ts +44 -0
- package/dist/tier-migration.js +7 -0
- package/dist/tier-migration.js.map +1 -0
- package/dist/tier-routing.d.ts +21 -0
- package/dist/tier-routing.js +10 -0
- package/dist/tier-routing.js.map +1 -0
- package/dist/tmt.d.ts +79 -0
- package/dist/tmt.js +29 -0
- package/dist/tmt.js.map +1 -0
- package/dist/tokens.d.ts +24 -0
- package/dist/tokens.js +21 -0
- package/dist/tokens.js.map +1 -0
- package/dist/topics.d.ts +29 -0
- package/dist/topics.js +9 -0
- package/dist/topics.js.map +1 -0
- package/dist/transcript.d.ts +171 -0
- package/dist/transcript.js +9 -0
- package/dist/transcript.js.map +1 -0
- package/dist/trust-zones.d.ts +170 -0
- package/dist/trust-zones.js +32 -0
- package/dist/trust-zones.js.map +1 -0
- package/dist/types.d.ts +1243 -0
- package/dist/types.js +9 -0
- package/dist/types.js.map +1 -0
- package/dist/utility-learner.d.ts +59 -0
- package/dist/utility-learner.js +17 -0
- package/dist/utility-learner.js.map +1 -0
- package/dist/utility-runtime.d.ts +21 -0
- package/dist/utility-runtime.js +16 -0
- package/dist/utility-runtime.js.map +1 -0
- package/dist/utility-telemetry.d.ts +68 -0
- package/dist/utility-telemetry.js +17 -0
- package/dist/utility-telemetry.js.map +1 -0
- package/dist/verified-recall.d.ts +17 -0
- package/dist/verified-recall.js +19 -0
- package/dist/verified-recall.js.map +1 -0
- package/dist/version-utils.d.ts +4 -0
- package/dist/version-utils.js +7 -0
- package/dist/version-utils.js.map +1 -0
- package/dist/work-product-ledger.d.ts +65 -0
- package/dist/work-product-ledger.js +18 -0
- package/dist/work-product-ledger.js.map +1 -0
- package/package.json +58 -0
|
@@ -0,0 +1,453 @@
|
|
|
1
|
+
import { MemoryCategory, ImportanceScore, MemoryLink, MemoryFrontmatter, MemoryFile, BufferState, MetaState, MemoryActionEvent, MemoryLifecycleEvent, BehaviorSignalEvent, CompressionGuidelineOptimizerState, ContinuityIncidentOpenInput, ContinuityIncidentRecord, ContinuityIncidentCloseInput, ContinuityImprovementLoop, ContinuityLoopUpsertInput, ContinuityLoopReviewInput, FileHygieneConfig, EntityRelationship, EntityActivityEntry, EntityFile, PluginConfig, AccessTrackingEntry, MemoryProjectionCurrentState, MemorySummary, TopicScore } from './types.js';
|
|
2
|
+
import { P as ProjectedMemoryBrowseOptions, i as ProjectedMemoryBrowsePage, j as readProjectedGovernanceRecord } from './memory-projection-store-NxMkbocT.js';
|
|
3
|
+
import 'better-sqlite3';
|
|
4
|
+
|
|
5
|
+
interface ReextractJobRequest {
|
|
6
|
+
memoryId: string;
|
|
7
|
+
model: string;
|
|
8
|
+
requestedAt: string;
|
|
9
|
+
source: "cli-migrate";
|
|
10
|
+
}
|
|
11
|
+
interface MemoryLifecycleEventWriteOptions {
|
|
12
|
+
at?: Date;
|
|
13
|
+
actor?: string;
|
|
14
|
+
reasonCode?: string;
|
|
15
|
+
ruleVersion?: string;
|
|
16
|
+
relatedMemoryIds?: string[];
|
|
17
|
+
correlationId?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Normalize an entity name to a canonical form.
|
|
21
|
+
* Strips non-alphanumeric chars, collapses hyphens, removes type prefix duplication.
|
|
22
|
+
* e.g. "My Project" → "my-project"
|
|
23
|
+
*
|
|
24
|
+
* Checks user-defined aliases (from config/aliases.json) first, then built-in aliases.
|
|
25
|
+
*/
|
|
26
|
+
declare function normalizeEntityName(raw: string, type: string): string;
|
|
27
|
+
/**
|
|
28
|
+
* Content-hash dedup index for facts.
|
|
29
|
+
* Normalizes content (lowercase, strip punctuation, collapse whitespace),
|
|
30
|
+
* computes SHA-256, and stores hashes in a line-delimited file.
|
|
31
|
+
* Prevents writing semantically identical facts.
|
|
32
|
+
*/
|
|
33
|
+
declare class ContentHashIndex {
|
|
34
|
+
private hashes;
|
|
35
|
+
private dirty;
|
|
36
|
+
private readonly filePath;
|
|
37
|
+
constructor(stateDir: string);
|
|
38
|
+
/** Load existing hashes from disk. Safe to call multiple times. */
|
|
39
|
+
load(): Promise<void>;
|
|
40
|
+
/** Check if content already exists in the index. */
|
|
41
|
+
has(content: string): boolean;
|
|
42
|
+
/** Add content hash to the index. */
|
|
43
|
+
add(content: string): void;
|
|
44
|
+
get size(): number;
|
|
45
|
+
/** Persist index to disk if changed. */
|
|
46
|
+
save(): Promise<void>;
|
|
47
|
+
/** Remove a hash from the index (used when archiving/deleting). */
|
|
48
|
+
remove(content: string): void;
|
|
49
|
+
/** Normalize content and compute SHA-256 hash. */
|
|
50
|
+
static normalizeContent(content: string): string;
|
|
51
|
+
/** Normalize content and compute SHA-256 hash. */
|
|
52
|
+
static computeHash(content: string): string;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Parse an entity markdown file into a structured EntityFile.
|
|
56
|
+
* Backward compatible: old files without new sections get empty arrays.
|
|
57
|
+
*/
|
|
58
|
+
declare function parseEntityFile(content: string): EntityFile;
|
|
59
|
+
/**
|
|
60
|
+
* Serialize an EntityFile back to markdown.
|
|
61
|
+
* Only emits sections that have content (except Facts which is always emitted).
|
|
62
|
+
*/
|
|
63
|
+
declare function serializeEntityFile(entity: EntityFile): string;
|
|
64
|
+
declare class StorageManager {
|
|
65
|
+
private readonly baseDir;
|
|
66
|
+
private knowledgeIndexCache;
|
|
67
|
+
private static readonly KNOWLEDGE_INDEX_CACHE_TTL_MS;
|
|
68
|
+
private artifactIndexCache;
|
|
69
|
+
private static readonly ARTIFACT_INDEX_CACHE_TTL_MS;
|
|
70
|
+
private static readonly artifactWriteVersionByDir;
|
|
71
|
+
private static readonly memoryStatusVersionByDir;
|
|
72
|
+
private static readonly allMemoriesInFlight;
|
|
73
|
+
private static readonly QUESTIONS_CACHE_TTL_MS;
|
|
74
|
+
private static readonly questionsCache;
|
|
75
|
+
private factHashIndex;
|
|
76
|
+
private factHashIndexLoadPromise;
|
|
77
|
+
private factHashIndexAuthoritative;
|
|
78
|
+
private factHashIndexAuthoritativePromise;
|
|
79
|
+
constructor(baseDir: string);
|
|
80
|
+
/** The root directory of this storage instance. */
|
|
81
|
+
get dir(): string;
|
|
82
|
+
private identityFilePath;
|
|
83
|
+
private versionFilePath;
|
|
84
|
+
private bumpSharedVersion;
|
|
85
|
+
private readSharedVersion;
|
|
86
|
+
private bumpMemoryStatusVersion;
|
|
87
|
+
getMemoryStatusVersion(): number;
|
|
88
|
+
private bumpArtifactWriteVersion;
|
|
89
|
+
private getArtifactWriteVersion;
|
|
90
|
+
private get factsDir();
|
|
91
|
+
private get correctionsDir();
|
|
92
|
+
private get entitiesDir();
|
|
93
|
+
private get stateDir();
|
|
94
|
+
private get factHashIndexReadyPath();
|
|
95
|
+
private getFactHashIndex;
|
|
96
|
+
private ensureFactHashIndexAuthoritative;
|
|
97
|
+
private get questionsDir();
|
|
98
|
+
private get artifactsDir();
|
|
99
|
+
private get identityDir();
|
|
100
|
+
private get identityAnchorPath();
|
|
101
|
+
private get identityIncidentsDir();
|
|
102
|
+
private get identityAuditsWeeklyDir();
|
|
103
|
+
private get identityAuditsMonthlyDir();
|
|
104
|
+
private get identityImprovementLoopsPath();
|
|
105
|
+
private get identityReflectionsPath();
|
|
106
|
+
private get profilePath();
|
|
107
|
+
private get memoryActionsPath();
|
|
108
|
+
private get memoryLifecycleLedgerPath();
|
|
109
|
+
private get compressionGuidelinesPath();
|
|
110
|
+
private get compressionGuidelineDraftPath();
|
|
111
|
+
private get compressionGuidelineStatePath();
|
|
112
|
+
private get compressionGuidelineDraftStatePath();
|
|
113
|
+
private get behaviorSignalsPath();
|
|
114
|
+
/**
|
|
115
|
+
* Load user-defined entity aliases from config/aliases.json in the memory store.
|
|
116
|
+
* File format: { "variant": "canonical", "variant2": "canonical", ... }
|
|
117
|
+
* Call this once at startup (e.g. from orchestrator.initialize()).
|
|
118
|
+
*/
|
|
119
|
+
loadAliases(): Promise<void>;
|
|
120
|
+
ensureDirectories(): Promise<void>;
|
|
121
|
+
writeMemory(category: MemoryCategory, content: string, options?: {
|
|
122
|
+
actor?: string;
|
|
123
|
+
confidence?: number;
|
|
124
|
+
tags?: string[];
|
|
125
|
+
entityRef?: string;
|
|
126
|
+
source?: string;
|
|
127
|
+
supersedes?: string;
|
|
128
|
+
lineage?: string[];
|
|
129
|
+
importance?: ImportanceScore;
|
|
130
|
+
links?: MemoryLink[];
|
|
131
|
+
intentGoal?: string;
|
|
132
|
+
intentActionType?: string;
|
|
133
|
+
intentEntityTypes?: string[];
|
|
134
|
+
artifactType?: MemoryFrontmatter["artifactType"];
|
|
135
|
+
sourceMemoryId?: string;
|
|
136
|
+
sourceTurnId?: string;
|
|
137
|
+
memoryKind?: MemoryFrontmatter["memoryKind"];
|
|
138
|
+
expiresAt?: string;
|
|
139
|
+
structuredAttributes?: Record<string, string>;
|
|
140
|
+
}): Promise<string>;
|
|
141
|
+
hasFactContentHash(content: string): Promise<boolean>;
|
|
142
|
+
isFactContentHashAuthoritative(): Promise<boolean>;
|
|
143
|
+
writeArtifact(quote: string, options?: {
|
|
144
|
+
actor?: string;
|
|
145
|
+
tags?: string[];
|
|
146
|
+
confidence?: number;
|
|
147
|
+
artifactType?: MemoryFrontmatter["artifactType"];
|
|
148
|
+
sourceMemoryId?: string;
|
|
149
|
+
sourceTurnId?: string;
|
|
150
|
+
intentGoal?: string;
|
|
151
|
+
intentActionType?: string;
|
|
152
|
+
intentEntityTypes?: string[];
|
|
153
|
+
}): Promise<string>;
|
|
154
|
+
private readAllArtifactsCached;
|
|
155
|
+
searchArtifacts(query: string, maxResults: number): Promise<MemoryFile[]>;
|
|
156
|
+
writeEntity(name: string, type: string, facts: string[]): Promise<string>;
|
|
157
|
+
readProfile(): Promise<string>;
|
|
158
|
+
writeProfile(content: string): Promise<void>;
|
|
159
|
+
/**
|
|
160
|
+
* Normalize a string for fuzzy profile dedup: lowercase, strip punctuation, collapse whitespace.
|
|
161
|
+
*/
|
|
162
|
+
private static normalizeForDedup;
|
|
163
|
+
/**
|
|
164
|
+
* Check if a new bullet is a fuzzy duplicate of any existing bullet.
|
|
165
|
+
* Returns true if the new bullet should be skipped.
|
|
166
|
+
*/
|
|
167
|
+
private static isFuzzyDuplicate;
|
|
168
|
+
appendToProfile(updates: string[]): Promise<void>;
|
|
169
|
+
/** Check if profile.md exceeds the max line cap and needs LLM consolidation */
|
|
170
|
+
profileNeedsConsolidation(triggerLines?: number): Promise<boolean>;
|
|
171
|
+
readAllMemories(): Promise<MemoryFile[]>;
|
|
172
|
+
/** Invalidate the readAllMemories() cache after writes that add/remove memories. */
|
|
173
|
+
/** Public cache invalidation for callers that need authoritative disk reads
|
|
174
|
+
* (e.g. projection verify/rebuild). */
|
|
175
|
+
invalidateAllMemoriesCacheForDir(): void;
|
|
176
|
+
/** Clear ALL static caches. Use in tests that write files directly
|
|
177
|
+
* (bypassing StorageManager.writeMemory) to avoid stale reads. */
|
|
178
|
+
static clearAllStaticCaches(): void;
|
|
179
|
+
/** Cancel any in-flight concurrent read so the next readAllMemories()
|
|
180
|
+
* starts a fresh disk scan and sees the just-written data. */
|
|
181
|
+
private invalidateAllMemoriesCache;
|
|
182
|
+
private normalizeMemoryReadBatchSize;
|
|
183
|
+
private collectActiveMemoryPaths;
|
|
184
|
+
private readParsedMemoriesFromPaths;
|
|
185
|
+
private readWindowUpdatedMs;
|
|
186
|
+
private filterWindowPathsByUpdatedAfter;
|
|
187
|
+
private orderWindowPaths;
|
|
188
|
+
private readWindowBoundedBatch;
|
|
189
|
+
readMemoriesWindow(options?: {
|
|
190
|
+
maxMemories?: number;
|
|
191
|
+
batchSize?: number;
|
|
192
|
+
updatedAfter?: Date;
|
|
193
|
+
}): Promise<{
|
|
194
|
+
memories: MemoryFile[];
|
|
195
|
+
filePaths: string[];
|
|
196
|
+
}>;
|
|
197
|
+
private _readAllMemoriesFromDisk;
|
|
198
|
+
/**
|
|
199
|
+
* Read archived memory markdown files under archive/.
|
|
200
|
+
* Used by long-term recall fallback when hot recall has no hits.
|
|
201
|
+
*/
|
|
202
|
+
readArchivedMemories(): Promise<MemoryFile[]>;
|
|
203
|
+
/** Read a single memory file by its absolute path. Returns null if unreadable. */
|
|
204
|
+
readMemoryByPath(filePath: string): Promise<MemoryFile | null>;
|
|
205
|
+
private resolveTierRootDir;
|
|
206
|
+
private resolveMemoryDateDir;
|
|
207
|
+
private isArtifactMemory;
|
|
208
|
+
buildTierMemoryPath(memory: MemoryFile, tier: "hot" | "cold"): string;
|
|
209
|
+
private writeMemoryFileAtomic;
|
|
210
|
+
moveMemoryToPath(memory: MemoryFile, targetPath: string): Promise<void>;
|
|
211
|
+
migrateMemoryToTier(memory: MemoryFile, targetTier: "hot" | "cold"): Promise<{
|
|
212
|
+
changed: boolean;
|
|
213
|
+
targetPath: string;
|
|
214
|
+
}>;
|
|
215
|
+
private get archiveDir();
|
|
216
|
+
/**
|
|
217
|
+
* Archive a memory by moving it from facts/ to archive/YYYY-MM-DD/.
|
|
218
|
+
* Updates frontmatter with archived status before moving.
|
|
219
|
+
* Returns the new file path on success, null on failure.
|
|
220
|
+
*/
|
|
221
|
+
archiveMemory(memory: MemoryFile, lifecycle?: MemoryLifecycleEventWriteOptions): Promise<string | null>;
|
|
222
|
+
readEntities(): Promise<string[]>;
|
|
223
|
+
readEntity(name: string): Promise<string>;
|
|
224
|
+
/** Return sorted list of entity filenames (without .md extension) */
|
|
225
|
+
listEntityNames(): Promise<string[]>;
|
|
226
|
+
/**
|
|
227
|
+
* Find an existing entity that fuzzy-matches the proposed name.
|
|
228
|
+
* Returns the existing entity filename (without .md) or null if no match.
|
|
229
|
+
*
|
|
230
|
+
* Matching priority:
|
|
231
|
+
* 1. Exact normalized match (handled by normalizeEntityName already)
|
|
232
|
+
* 2. Dehyphenated match: "jane-doe" vs "janedoe"
|
|
233
|
+
* 3. Substring containment: "handle-janedoe" contains "janedoe"
|
|
234
|
+
* 4. Levenshtein ≤ 2 on dehyphenated names
|
|
235
|
+
*/
|
|
236
|
+
findMatchingEntity(proposedName: string, type: string): Promise<string | null>;
|
|
237
|
+
invalidateMemory(id: string): Promise<boolean>;
|
|
238
|
+
updateMemory(id: string, newContent: string, options?: {
|
|
239
|
+
supersedes?: string;
|
|
240
|
+
lineage?: string[];
|
|
241
|
+
actor?: string;
|
|
242
|
+
}): Promise<boolean>;
|
|
243
|
+
/**
|
|
244
|
+
* Update frontmatter fields without changing memory content.
|
|
245
|
+
* Returns false when the memory is not found.
|
|
246
|
+
*/
|
|
247
|
+
writeMemoryFrontmatter(memory: MemoryFile, patch: Partial<MemoryFrontmatter>, lifecycle?: MemoryLifecycleEventWriteOptions): Promise<boolean>;
|
|
248
|
+
/**
|
|
249
|
+
* Update frontmatter by memory ID.
|
|
250
|
+
* Prefer writeMemoryFrontmatter(memory, patch) in batch loops to avoid full-corpus rescans.
|
|
251
|
+
*/
|
|
252
|
+
updateMemoryFrontmatter(id: string, patch: Partial<MemoryFrontmatter>): Promise<boolean>;
|
|
253
|
+
/** Remove memories past their TTL expiresAt date */
|
|
254
|
+
cleanExpiredTTL(): Promise<MemoryFile[]>;
|
|
255
|
+
loadBuffer(): Promise<BufferState>;
|
|
256
|
+
saveBuffer(state: BufferState): Promise<void>;
|
|
257
|
+
loadMeta(): Promise<MetaState>;
|
|
258
|
+
saveMeta(state: MetaState): Promise<void>;
|
|
259
|
+
appendMemoryActionEvents(events: MemoryActionEvent[]): Promise<number>;
|
|
260
|
+
appendMemoryLifecycleEvents(events: MemoryLifecycleEvent[]): Promise<number>;
|
|
261
|
+
appendBehaviorSignals(events: BehaviorSignalEvent[]): Promise<number>;
|
|
262
|
+
appendReextractJobs(events: ReextractJobRequest[]): Promise<number>;
|
|
263
|
+
readReextractJobs(limit?: number): Promise<ReextractJobRequest[]>;
|
|
264
|
+
readBehaviorSignals(limit?: number): Promise<BehaviorSignalEvent[]>;
|
|
265
|
+
readMemoryActionEvents(limit?: number): Promise<MemoryActionEvent[]>;
|
|
266
|
+
readAllMemoryLifecycleEvents(): Promise<MemoryLifecycleEvent[]>;
|
|
267
|
+
readMemoryLifecycleEvents(limit?: number): Promise<MemoryLifecycleEvent[]>;
|
|
268
|
+
writeCompressionGuidelines(content: string): Promise<void>;
|
|
269
|
+
readCompressionGuidelines(): Promise<string | null>;
|
|
270
|
+
writeCompressionGuidelineDraft(content: string): Promise<void>;
|
|
271
|
+
readCompressionGuidelineDraft(): Promise<string | null>;
|
|
272
|
+
writeCompressionGuidelineOptimizerState(state: CompressionGuidelineOptimizerState): Promise<void>;
|
|
273
|
+
writeCompressionGuidelineDraftState(state: CompressionGuidelineOptimizerState): Promise<void>;
|
|
274
|
+
readCompressionGuidelineOptimizerState(): Promise<CompressionGuidelineOptimizerState | null>;
|
|
275
|
+
readCompressionGuidelineDraftState(): Promise<CompressionGuidelineOptimizerState | null>;
|
|
276
|
+
activateCompressionGuidelineDraft(options?: {
|
|
277
|
+
expectedContentHash?: string;
|
|
278
|
+
expectedGuidelineVersion?: number;
|
|
279
|
+
}): Promise<boolean>;
|
|
280
|
+
private readCompressionGuidelineStateFile;
|
|
281
|
+
writeIdentityAnchor(content: string): Promise<void>;
|
|
282
|
+
readIdentityAnchor(): Promise<string | null>;
|
|
283
|
+
appendContinuityIncident(input: ContinuityIncidentOpenInput): Promise<ContinuityIncidentRecord>;
|
|
284
|
+
readContinuityIncidents(limit?: number, state?: "open" | "closed" | "all"): Promise<ContinuityIncidentRecord[]>;
|
|
285
|
+
closeContinuityIncident(id: string, closure: ContinuityIncidentCloseInput): Promise<ContinuityIncidentRecord | null>;
|
|
286
|
+
writeIdentityAudit(period: "weekly" | "monthly", key: string, content: string): Promise<string>;
|
|
287
|
+
readIdentityAudit(period: "weekly" | "monthly", key: string): Promise<string | null>;
|
|
288
|
+
writeIdentityImprovementLoops(content: string): Promise<void>;
|
|
289
|
+
readIdentityImprovementLoops(): Promise<string | null>;
|
|
290
|
+
readIdentityImprovementLoopRegister(): Promise<ContinuityImprovementLoop[]>;
|
|
291
|
+
upsertIdentityImprovementLoop(input: ContinuityLoopUpsertInput): Promise<ContinuityImprovementLoop>;
|
|
292
|
+
reviewIdentityImprovementLoop(id: string, input: ContinuityLoopReviewInput): Promise<ContinuityImprovementLoop | null>;
|
|
293
|
+
private generateId;
|
|
294
|
+
private readContinuityIncidentFileNames;
|
|
295
|
+
private readContinuityIncidentFile;
|
|
296
|
+
private findContinuityIncidentFilePathById;
|
|
297
|
+
private sanitizeIdentityAuditKey;
|
|
298
|
+
writeQuestion(question: string, context: string, priority: number): Promise<string>;
|
|
299
|
+
readQuestions(opts?: {
|
|
300
|
+
unresolvedOnly?: boolean;
|
|
301
|
+
}): Promise<Array<{
|
|
302
|
+
id: string;
|
|
303
|
+
question: string;
|
|
304
|
+
context: string;
|
|
305
|
+
priority: number;
|
|
306
|
+
resolved: boolean;
|
|
307
|
+
created: string;
|
|
308
|
+
filePath: string;
|
|
309
|
+
}>>;
|
|
310
|
+
/** Invalidate the questions cache (call after writing a question). */
|
|
311
|
+
invalidateQuestionsCache(): void;
|
|
312
|
+
private parseQuestionFile;
|
|
313
|
+
private extractFrontmatterValue;
|
|
314
|
+
resolveQuestion(id: string): Promise<boolean>;
|
|
315
|
+
readIdentity(workspaceDir: string, namespace?: string): Promise<string>;
|
|
316
|
+
writeIdentity(workspaceDir: string, content: string, namespace?: string): Promise<void>;
|
|
317
|
+
/** Max size for IDENTITY.md before we stop appending reflections (15KB leaves room under 20KB gateway limit) */
|
|
318
|
+
private static readonly IDENTITY_MAX_BYTES;
|
|
319
|
+
/** Minimum interval between reflections (1 hour) */
|
|
320
|
+
private static readonly REFLECTION_COOLDOWN_MS;
|
|
321
|
+
appendToIdentity(workspaceDir: string, reflection: string, opts?: {
|
|
322
|
+
hygiene?: FileHygieneConfig;
|
|
323
|
+
namespace?: string;
|
|
324
|
+
}): Promise<void>;
|
|
325
|
+
readIdentityReflections(): Promise<string | null>;
|
|
326
|
+
writeIdentityReflections(content: string): Promise<void>;
|
|
327
|
+
appendIdentityReflection(reflection: string): Promise<void>;
|
|
328
|
+
/**
|
|
329
|
+
* Add a relationship to an entity file.
|
|
330
|
+
* Deduplicates by target+label.
|
|
331
|
+
*/
|
|
332
|
+
addEntityRelationship(name: string, rel: EntityRelationship): Promise<void>;
|
|
333
|
+
/**
|
|
334
|
+
* Add an activity entry to an entity file.
|
|
335
|
+
* Prepends to the beginning, prunes oldest entries beyond maxEntries.
|
|
336
|
+
*/
|
|
337
|
+
addEntityActivity(name: string, entry: EntityActivityEntry, maxEntries: number): Promise<void>;
|
|
338
|
+
/**
|
|
339
|
+
* Add an alias to an entity file. Deduplicates.
|
|
340
|
+
*/
|
|
341
|
+
addEntityAlias(name: string, alias: string): Promise<void>;
|
|
342
|
+
/**
|
|
343
|
+
* Set or update the summary of an entity file.
|
|
344
|
+
*/
|
|
345
|
+
updateEntitySummary(name: string, summary: string): Promise<void>;
|
|
346
|
+
/**
|
|
347
|
+
* Read all entity files and return lightweight EntityFile objects.
|
|
348
|
+
* Parsing is fast (~50-100ms for ~1,800 files) since entity files are small.
|
|
349
|
+
*/
|
|
350
|
+
readAllEntityFiles(): Promise<EntityFile[]>;
|
|
351
|
+
/**
|
|
352
|
+
* Score an entity based on recency, frequency, activity, type priority,
|
|
353
|
+
* and relationship density.
|
|
354
|
+
*
|
|
355
|
+
* score = recency*0.40 + frequency*0.25 + activity*0.15 + typePriority*0.10 + relationshipDensity*0.10
|
|
356
|
+
*/
|
|
357
|
+
static scoreEntity(entity: EntityFile, now: Date): number;
|
|
358
|
+
/**
|
|
359
|
+
* Build the Knowledge Index: a compact markdown table of top-scored entities.
|
|
360
|
+
* Respects maxEntities and maxChars limits from config.
|
|
361
|
+
*/
|
|
362
|
+
buildKnowledgeIndex(config: PluginConfig, overrides?: {
|
|
363
|
+
maxEntities?: number;
|
|
364
|
+
maxChars?: number;
|
|
365
|
+
}): Promise<{
|
|
366
|
+
result: string;
|
|
367
|
+
cached: boolean;
|
|
368
|
+
}>;
|
|
369
|
+
/** Invalidate the Knowledge Index cache (call after entity mutations). */
|
|
370
|
+
invalidateKnowledgeIndexCache(): void;
|
|
371
|
+
/** Max lines for profile.md before LLM consolidation triggers */
|
|
372
|
+
private static readonly PROFILE_MAX_LINES;
|
|
373
|
+
/**
|
|
374
|
+
* Merge fragmented entity files that resolve to the same canonical name.
|
|
375
|
+
* Preserves relationships, activity, aliases, and summary from all fragments.
|
|
376
|
+
* Returns count of files merged.
|
|
377
|
+
*/
|
|
378
|
+
mergeFragmentedEntities(): Promise<number>;
|
|
379
|
+
cleanExpiredCommitments(decayDays: number): Promise<MemoryFile[]>;
|
|
380
|
+
/**
|
|
381
|
+
* Flush batched access tracking updates to disk.
|
|
382
|
+
* Called during consolidation or when buffer exceeds max size.
|
|
383
|
+
*/
|
|
384
|
+
flushAccessTracking(entries: AccessTrackingEntry[]): Promise<number>;
|
|
385
|
+
/**
|
|
386
|
+
* Get a memory by its ID.
|
|
387
|
+
*/
|
|
388
|
+
getMemoryById(id: string): Promise<MemoryFile | null>;
|
|
389
|
+
getProjectedMemoryState(id: string): Promise<MemoryProjectionCurrentState | null>;
|
|
390
|
+
browseProjectedMemories(options: ProjectedMemoryBrowseOptions): Promise<ProjectedMemoryBrowsePage | null>;
|
|
391
|
+
getProjectedGovernanceRecord(): Promise<ReturnType<typeof readProjectedGovernanceRecord>>;
|
|
392
|
+
private toProjectedCurrentState;
|
|
393
|
+
getMemoryTimeline(memoryId: string, limit?: number): Promise<MemoryLifecycleEvent[]>;
|
|
394
|
+
/**
|
|
395
|
+
* Write a memory chunk with parent reference.
|
|
396
|
+
* Chunk IDs follow format: {parentId}-chunk-{index}
|
|
397
|
+
*/
|
|
398
|
+
writeChunk(parentId: string, chunkIndex: number, chunkTotal: number, category: MemoryCategory, content: string, options?: {
|
|
399
|
+
confidence?: number;
|
|
400
|
+
tags?: string[];
|
|
401
|
+
entityRef?: string;
|
|
402
|
+
source?: string;
|
|
403
|
+
importance?: ImportanceScore;
|
|
404
|
+
intentGoal?: string;
|
|
405
|
+
intentActionType?: string;
|
|
406
|
+
intentEntityTypes?: string[];
|
|
407
|
+
memoryKind?: MemoryFrontmatter["memoryKind"];
|
|
408
|
+
}): Promise<string>;
|
|
409
|
+
/**
|
|
410
|
+
* Get all chunks for a given parent memory ID.
|
|
411
|
+
* Returns chunks sorted by chunkIndex.
|
|
412
|
+
*/
|
|
413
|
+
getChunksForParent(parentId: string): Promise<MemoryFile[]>;
|
|
414
|
+
/**
|
|
415
|
+
* Mark a memory as superseded by another.
|
|
416
|
+
* Updates the old memory's status and adds the supersededBy link.
|
|
417
|
+
*/
|
|
418
|
+
supersedeMemory(oldMemoryId: string, newMemoryId: string, reason: string): Promise<boolean>;
|
|
419
|
+
private get summariesDir();
|
|
420
|
+
/**
|
|
421
|
+
* Write a memory summary.
|
|
422
|
+
*/
|
|
423
|
+
writeSummary(summary: MemorySummary): Promise<void>;
|
|
424
|
+
/**
|
|
425
|
+
* Get all summaries.
|
|
426
|
+
*/
|
|
427
|
+
readSummaries(): Promise<MemorySummary[]>;
|
|
428
|
+
/**
|
|
429
|
+
* Archive memories (mark as archived, not delete).
|
|
430
|
+
*/
|
|
431
|
+
archiveMemories(memoryIds: string[], summaryId: string): Promise<number>;
|
|
432
|
+
/**
|
|
433
|
+
* Save topic scores to meta.json.
|
|
434
|
+
*/
|
|
435
|
+
saveTopics(topics: TopicScore[]): Promise<void>;
|
|
436
|
+
/**
|
|
437
|
+
* Load topic scores from meta.json.
|
|
438
|
+
*/
|
|
439
|
+
loadTopics(): Promise<{
|
|
440
|
+
topics: TopicScore[];
|
|
441
|
+
updatedAt: string | null;
|
|
442
|
+
}>;
|
|
443
|
+
/**
|
|
444
|
+
* Add links to an existing memory.
|
|
445
|
+
*/
|
|
446
|
+
addLinksToMemory(memoryId: string, links: MemoryLink[], lifecycle?: MemoryLifecycleEventWriteOptions): Promise<boolean>;
|
|
447
|
+
private summarizeLifecycleState;
|
|
448
|
+
private frontmatterPatchEventType;
|
|
449
|
+
private appendGeneratedMemoryLifecycleEvent;
|
|
450
|
+
private appendGeneratedMemoryLifecycleEventFailOpen;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
export { ContentHashIndex, type MemoryLifecycleEventWriteOptions, type ReextractJobRequest, StorageManager, normalizeEntityName, parseEntityFile, serializeEntityFile };
|
package/dist/storage.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ContentHashIndex,
|
|
3
|
+
StorageManager,
|
|
4
|
+
normalizeEntityName,
|
|
5
|
+
parseEntityFile,
|
|
6
|
+
serializeEntityFile
|
|
7
|
+
} from "./chunk-QWUUMMIK.js";
|
|
8
|
+
import "./chunk-U4PV25RD.js";
|
|
9
|
+
import "./chunk-ESSMF2FR.js";
|
|
10
|
+
import "./chunk-TP4FZJIZ.js";
|
|
11
|
+
import "./chunk-SCU65EZI.js";
|
|
12
|
+
import "./chunk-BOUYNNYD.js";
|
|
13
|
+
import "./chunk-DM2T26WE.js";
|
|
14
|
+
import "./chunk-QSVPYQPG.js";
|
|
15
|
+
import "./chunk-M62O4P4T.js";
|
|
16
|
+
import "./chunk-KWBU5S5U.js";
|
|
17
|
+
export {
|
|
18
|
+
ContentHashIndex,
|
|
19
|
+
StorageManager,
|
|
20
|
+
normalizeEntityName,
|
|
21
|
+
parseEntityFile,
|
|
22
|
+
serializeEntityFile
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=storage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare function isRecord(value: unknown): value is Record<string, unknown>;
|
|
2
|
+
declare function assertString(value: unknown, field: string): string;
|
|
3
|
+
declare function optionalString(value: unknown): string | undefined;
|
|
4
|
+
declare function assertSafePathSegment(value: string, field: string): string;
|
|
5
|
+
declare function assertIsoRecordedAt(value: string, field?: string): string;
|
|
6
|
+
declare function recordStoreDay(recordedAt: string): string;
|
|
7
|
+
declare function optionalStringArray(value: unknown, field: string): string[] | undefined;
|
|
8
|
+
declare function validateStringRecord(raw: unknown, field?: string): Record<string, string> | undefined;
|
|
9
|
+
|
|
10
|
+
export { assertIsoRecordedAt, assertSafePathSegment, assertString, isRecord, optionalString, optionalStringArray, recordStoreDay, validateStringRecord };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import {
|
|
2
|
+
assertIsoRecordedAt,
|
|
3
|
+
assertSafePathSegment,
|
|
4
|
+
assertString,
|
|
5
|
+
isRecord,
|
|
6
|
+
optionalString,
|
|
7
|
+
optionalStringArray,
|
|
8
|
+
recordStoreDay,
|
|
9
|
+
validateStringRecord
|
|
10
|
+
} from "./chunk-DGXUHMOV.js";
|
|
11
|
+
export {
|
|
12
|
+
assertIsoRecordedAt,
|
|
13
|
+
assertSafePathSegment,
|
|
14
|
+
assertString,
|
|
15
|
+
isRecord,
|
|
16
|
+
optionalString,
|
|
17
|
+
optionalStringArray,
|
|
18
|
+
recordStoreDay,
|
|
19
|
+
validateStringRecord
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=store-contract.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ModelRegistry } from './model-registry.js';
|
|
2
|
+
import { PluginConfig, GatewayConfig, TranscriptEntry, HourlySummary } from './types.js';
|
|
3
|
+
import { TranscriptManager } from './transcript.js';
|
|
4
|
+
import './session-integrity.js';
|
|
5
|
+
|
|
6
|
+
declare class HourlySummarizer {
|
|
7
|
+
private summariesDir;
|
|
8
|
+
private config;
|
|
9
|
+
private localLlm;
|
|
10
|
+
private fallbackLlm;
|
|
11
|
+
private modelRegistry;
|
|
12
|
+
private transcript?;
|
|
13
|
+
constructor(config: PluginConfig, gatewayConfig?: GatewayConfig, modelRegistry?: ModelRegistry, transcript?: TranscriptManager);
|
|
14
|
+
private get useGatewayModelSource();
|
|
15
|
+
private get shouldUseLocalLlm();
|
|
16
|
+
private withGatewayAgent;
|
|
17
|
+
initialize(): Promise<void>;
|
|
18
|
+
generateSummary(sessionKey: string, hourStart: Date, entries: TranscriptEntry[]): Promise<HourlySummary | null>;
|
|
19
|
+
private generateExtended;
|
|
20
|
+
/**
|
|
21
|
+
* Generate summary using local LLM with JSON mode.
|
|
22
|
+
* Uses dynamic context sizing based on model capabilities.
|
|
23
|
+
*/
|
|
24
|
+
private generateWithLocalLlm;
|
|
25
|
+
saveSummary(summary: HourlySummary): Promise<void>;
|
|
26
|
+
private formatHourSection;
|
|
27
|
+
readRecent(sessionKey: string, hours: number): Promise<HourlySummary[]>;
|
|
28
|
+
private parseSummaryFile;
|
|
29
|
+
formatForRecall(summaries: HourlySummary[], maxCount: number): string;
|
|
30
|
+
runHourly(): Promise<void>;
|
|
31
|
+
private getActiveSessions;
|
|
32
|
+
private getTranscriptEntries;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export { HourlySummarizer };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
HourlySummarizer
|
|
3
|
+
} from "./chunk-CDW777AI.js";
|
|
4
|
+
import "./chunk-ETOW6ACV.js";
|
|
5
|
+
import "./chunk-ONRU4L2N.js";
|
|
6
|
+
import "./chunk-MDDAA2AO.js";
|
|
7
|
+
import "./chunk-LK6SGL53.js";
|
|
8
|
+
import "./chunk-KT4NEUNF.js";
|
|
9
|
+
import "./chunk-LU3GQNDQ.js";
|
|
10
|
+
import "./chunk-Y27UJK6V.js";
|
|
11
|
+
import "./chunk-UZB5KHKX.js";
|
|
12
|
+
import "./chunk-MARWOCVP.js";
|
|
13
|
+
import "./chunk-KWBU5S5U.js";
|
|
14
|
+
export {
|
|
15
|
+
HourlySummarizer
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=summarizer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { HourlySummary } from './types.js';
|
|
2
|
+
|
|
3
|
+
declare function summarySnapshotPath(memoryDir: string, sessionKey: string): string;
|
|
4
|
+
declare function readSummarySnapshot(memoryDir: string, sessionKey: string): Promise<HourlySummary[] | null>;
|
|
5
|
+
declare function writeSummarySnapshot(memoryDir: string, sessionKey: string, summaries: HourlySummary[]): Promise<void>;
|
|
6
|
+
declare function upsertSummarySnapshot(memoryDir: string, summary: HourlySummary): Promise<void>;
|
|
7
|
+
|
|
8
|
+
export { readSummarySnapshot, summarySnapshotPath, upsertSummarySnapshot, writeSummarySnapshot };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
readSummarySnapshot,
|
|
3
|
+
summarySnapshotPath,
|
|
4
|
+
upsertSummarySnapshot,
|
|
5
|
+
writeSummarySnapshot
|
|
6
|
+
} from "./chunk-ETOW6ACV.js";
|
|
7
|
+
export {
|
|
8
|
+
readSummarySnapshot,
|
|
9
|
+
summarySnapshotPath,
|
|
10
|
+
upsertSummarySnapshot,
|
|
11
|
+
writeSummarySnapshot
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=summary-snapshot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|