@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,113 @@
|
|
|
1
|
+
import { RecallPlanMode, IdentityInjectionMode } from './types.js';
|
|
2
|
+
|
|
3
|
+
interface LastRecallBudgetSummary {
|
|
4
|
+
requestedTopK?: number;
|
|
5
|
+
appliedTopK: number;
|
|
6
|
+
recallBudgetChars: number;
|
|
7
|
+
maxMemoryTokens: number;
|
|
8
|
+
qmdFetchLimit?: number;
|
|
9
|
+
qmdHybridFetchLimit?: number;
|
|
10
|
+
finalContextChars?: number;
|
|
11
|
+
truncated?: boolean;
|
|
12
|
+
includedSections?: string[];
|
|
13
|
+
omittedSections?: string[];
|
|
14
|
+
}
|
|
15
|
+
interface LastRecallSnapshot {
|
|
16
|
+
sessionKey: string;
|
|
17
|
+
recordedAt: string;
|
|
18
|
+
queryHash: string;
|
|
19
|
+
queryLen: number;
|
|
20
|
+
memoryIds: string[];
|
|
21
|
+
namespace?: string;
|
|
22
|
+
traceId?: string;
|
|
23
|
+
plannerMode?: RecallPlanMode;
|
|
24
|
+
requestedMode?: RecallPlanMode;
|
|
25
|
+
source?: string;
|
|
26
|
+
fallbackUsed?: boolean;
|
|
27
|
+
sourcesUsed?: string[];
|
|
28
|
+
budgetsApplied?: LastRecallBudgetSummary;
|
|
29
|
+
latencyMs?: number;
|
|
30
|
+
resultPaths?: string[];
|
|
31
|
+
policyVersion?: string;
|
|
32
|
+
identityInjectionMode?: IdentityInjectionMode | "none";
|
|
33
|
+
identityInjectedChars?: number;
|
|
34
|
+
identityInjectionTruncated?: boolean;
|
|
35
|
+
}
|
|
36
|
+
interface GraphRecallExpandedEntry {
|
|
37
|
+
path: string;
|
|
38
|
+
score: number;
|
|
39
|
+
namespace: string;
|
|
40
|
+
seed: string;
|
|
41
|
+
hopDepth: number;
|
|
42
|
+
decayedWeight: number;
|
|
43
|
+
graphType: "entity" | "time" | "causal";
|
|
44
|
+
}
|
|
45
|
+
declare function clampGraphRecallExpandedEntries(entries: unknown, maxEntries?: number): GraphRecallExpandedEntry[];
|
|
46
|
+
interface TierMigrationCycleSummary {
|
|
47
|
+
trigger: "extraction" | "maintenance" | "manual";
|
|
48
|
+
scanned: number;
|
|
49
|
+
migrated: number;
|
|
50
|
+
promoted: number;
|
|
51
|
+
demoted: number;
|
|
52
|
+
limit: number;
|
|
53
|
+
dryRun: boolean;
|
|
54
|
+
skipped?: string;
|
|
55
|
+
errorCount?: number;
|
|
56
|
+
}
|
|
57
|
+
interface TierMigrationStatusSnapshot {
|
|
58
|
+
updatedAt: string;
|
|
59
|
+
lastCycle: TierMigrationCycleSummary | null;
|
|
60
|
+
totals: {
|
|
61
|
+
cycles: number;
|
|
62
|
+
scanned: number;
|
|
63
|
+
migrated: number;
|
|
64
|
+
promoted: number;
|
|
65
|
+
demoted: number;
|
|
66
|
+
errors: number;
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
declare class LastRecallStore {
|
|
70
|
+
private readonly statePath;
|
|
71
|
+
private readonly impressionsPath;
|
|
72
|
+
private state;
|
|
73
|
+
constructor(memoryDir: string);
|
|
74
|
+
load(): Promise<void>;
|
|
75
|
+
get(sessionKey: string): LastRecallSnapshot | null;
|
|
76
|
+
getMostRecent(): LastRecallSnapshot | null;
|
|
77
|
+
/**
|
|
78
|
+
* Persist last-recall snapshot and append an impression log entry.
|
|
79
|
+
* Does not store raw query text; uses a stable hash for correlation.
|
|
80
|
+
*/
|
|
81
|
+
record(opts: {
|
|
82
|
+
sessionKey: string;
|
|
83
|
+
query: string;
|
|
84
|
+
memoryIds: string[];
|
|
85
|
+
namespace?: string;
|
|
86
|
+
traceId?: string;
|
|
87
|
+
plannerMode?: RecallPlanMode;
|
|
88
|
+
requestedMode?: RecallPlanMode;
|
|
89
|
+
source?: string;
|
|
90
|
+
fallbackUsed?: boolean;
|
|
91
|
+
sourcesUsed?: string[];
|
|
92
|
+
budgetsApplied?: LastRecallBudgetSummary;
|
|
93
|
+
latencyMs?: number;
|
|
94
|
+
resultPaths?: string[];
|
|
95
|
+
policyVersion?: string;
|
|
96
|
+
appendImpression?: boolean;
|
|
97
|
+
identityInjection?: {
|
|
98
|
+
mode: IdentityInjectionMode | "none";
|
|
99
|
+
injectedChars: number;
|
|
100
|
+
truncated: boolean;
|
|
101
|
+
};
|
|
102
|
+
}): Promise<void>;
|
|
103
|
+
}
|
|
104
|
+
declare class TierMigrationStatusStore {
|
|
105
|
+
private readonly statePath;
|
|
106
|
+
private state;
|
|
107
|
+
constructor(memoryDir: string);
|
|
108
|
+
load(): Promise<void>;
|
|
109
|
+
get(): TierMigrationStatusSnapshot;
|
|
110
|
+
recordCycle(summary: TierMigrationCycleSummary): Promise<void>;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export { type GraphRecallExpandedEntry, type LastRecallBudgetSummary, type LastRecallSnapshot, LastRecallStore, type TierMigrationCycleSummary, type TierMigrationStatusSnapshot, TierMigrationStatusStore, clampGraphRecallExpandedEntries };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
LastRecallStore,
|
|
3
|
+
TierMigrationStatusStore,
|
|
4
|
+
clampGraphRecallExpandedEntries
|
|
5
|
+
} from "./chunk-HG2NKWR2.js";
|
|
6
|
+
import "./chunk-KWBU5S5U.js";
|
|
7
|
+
export {
|
|
8
|
+
LastRecallStore,
|
|
9
|
+
TierMigrationStatusStore,
|
|
10
|
+
clampGraphRecallExpandedEntries
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=recall-state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
declare function normalizeRecallTokens(value: string, extraStopWords?: string[]): string[];
|
|
2
|
+
declare function countRecallTokenOverlap(queryTokens: Set<string>, value: string | undefined, extraStopWords?: string[]): number;
|
|
3
|
+
|
|
4
|
+
export { countRecallTokenOverlap, normalizeRecallTokens };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Memory reconstruction (E-Mem-inspired).
|
|
3
|
+
*
|
|
4
|
+
* Scans recalled memories for entity references that lack context
|
|
5
|
+
* in the recall set, then identifies candidates for targeted retrieval.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Find entity names mentioned in recalled snippets that are known entities
|
|
9
|
+
* but not represented in the recalled entity refs.
|
|
10
|
+
*
|
|
11
|
+
* Uses word-boundary matching to avoid false positives from substring overlap
|
|
12
|
+
* (e.g., "person-alice" inside "person-alice-chen").
|
|
13
|
+
*/
|
|
14
|
+
declare function findUnresolvedEntityRefs(recalledSnippets: string[], recalledEntityRefs: string[], knownEntities: string[]): string[];
|
|
15
|
+
|
|
16
|
+
export { findUnresolvedEntityRefs };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface PromoteUnreleasedChangelogOptions {
|
|
2
|
+
version: string;
|
|
3
|
+
date: string;
|
|
4
|
+
}
|
|
5
|
+
declare function promoteUnreleasedChangelog(changelog: string, options: PromoteUnreleasedChangelogOptions): string;
|
|
6
|
+
|
|
7
|
+
export { type PromoteUnreleasedChangelogOptions, promoteUnreleasedChangelog };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// src/release-changelog.ts
|
|
2
|
+
function promoteUnreleasedChangelog(changelog, options) {
|
|
3
|
+
const unreleasedMarker = "## [Unreleased]";
|
|
4
|
+
const unreleasedIndex = changelog.indexOf(unreleasedMarker);
|
|
5
|
+
if (unreleasedIndex === -1) {
|
|
6
|
+
throw new Error("CHANGELOG.md is missing the Unreleased section");
|
|
7
|
+
}
|
|
8
|
+
const afterMarker = changelog.slice(unreleasedIndex + unreleasedMarker.length);
|
|
9
|
+
const nextSectionMatch = afterMarker.match(/\n## \[/);
|
|
10
|
+
const unreleasedEnd = nextSectionMatch == null ? changelog.length : unreleasedIndex + unreleasedMarker.length + (nextSectionMatch.index ?? 0);
|
|
11
|
+
const before = changelog.slice(0, unreleasedIndex + unreleasedMarker.length);
|
|
12
|
+
const unreleasedBody = changelog.slice(unreleasedIndex + unreleasedMarker.length, unreleasedEnd);
|
|
13
|
+
const after = changelog.slice(unreleasedEnd);
|
|
14
|
+
if (unreleasedBody.trim().length === 0) {
|
|
15
|
+
return changelog;
|
|
16
|
+
}
|
|
17
|
+
const normalizedVersion = options.version.replace(/^v/i, "");
|
|
18
|
+
const normalizedBody = unreleasedBody.replace(/^\n+/, "").replace(/\n+$/, "");
|
|
19
|
+
const releaseSection = `
|
|
20
|
+
|
|
21
|
+
## [v${normalizedVersion}] - ${options.date}
|
|
22
|
+
|
|
23
|
+
${normalizedBody}
|
|
24
|
+
`;
|
|
25
|
+
return `${before}${releaseSection}${after}`;
|
|
26
|
+
}
|
|
27
|
+
export {
|
|
28
|
+
promoteUnreleasedChangelog
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=release-changelog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/release-changelog.ts"],"sourcesContent":["export interface PromoteUnreleasedChangelogOptions {\n version: string;\n date: string;\n}\n\nexport function promoteUnreleasedChangelog(\n changelog: string,\n options: PromoteUnreleasedChangelogOptions,\n): string {\n const unreleasedMarker = \"## [Unreleased]\";\n const unreleasedIndex = changelog.indexOf(unreleasedMarker);\n if (unreleasedIndex === -1) {\n throw new Error(\"CHANGELOG.md is missing the Unreleased section\");\n }\n\n const afterMarker = changelog.slice(unreleasedIndex + unreleasedMarker.length);\n const nextSectionMatch = afterMarker.match(/\\n## \\[/);\n const unreleasedEnd =\n nextSectionMatch == null\n ? changelog.length\n : unreleasedIndex + unreleasedMarker.length + (nextSectionMatch.index ?? 0);\n\n const before = changelog.slice(0, unreleasedIndex + unreleasedMarker.length);\n const unreleasedBody = changelog.slice(unreleasedIndex + unreleasedMarker.length, unreleasedEnd);\n const after = changelog.slice(unreleasedEnd);\n\n if (unreleasedBody.trim().length === 0) {\n return changelog;\n }\n\n const normalizedVersion = options.version.replace(/^v/i, \"\");\n const normalizedBody = unreleasedBody.replace(/^\\n+/, \"\").replace(/\\n+$/, \"\");\n const releaseSection = `\\n\\n## [v${normalizedVersion}] - ${options.date}\\n\\n${normalizedBody}\\n`;\n return `${before}${releaseSection}${after}`;\n}\n"],"mappings":";AAKO,SAAS,2BACd,WACA,SACQ;AACR,QAAM,mBAAmB;AACzB,QAAM,kBAAkB,UAAU,QAAQ,gBAAgB;AAC1D,MAAI,oBAAoB,IAAI;AAC1B,UAAM,IAAI,MAAM,gDAAgD;AAAA,EAClE;AAEA,QAAM,cAAc,UAAU,MAAM,kBAAkB,iBAAiB,MAAM;AAC7E,QAAM,mBAAmB,YAAY,MAAM,SAAS;AACpD,QAAM,gBACJ,oBAAoB,OAChB,UAAU,SACV,kBAAkB,iBAAiB,UAAU,iBAAiB,SAAS;AAE7E,QAAM,SAAS,UAAU,MAAM,GAAG,kBAAkB,iBAAiB,MAAM;AAC3E,QAAM,iBAAiB,UAAU,MAAM,kBAAkB,iBAAiB,QAAQ,aAAa;AAC/F,QAAM,QAAQ,UAAU,MAAM,aAAa;AAE3C,MAAI,eAAe,KAAK,EAAE,WAAW,GAAG;AACtC,WAAO;AAAA,EACT;AAEA,QAAM,oBAAoB,QAAQ,QAAQ,QAAQ,OAAO,EAAE;AAC3D,QAAM,iBAAiB,eAAe,QAAQ,QAAQ,EAAE,EAAE,QAAQ,QAAQ,EAAE;AAC5E,QAAM,iBAAiB;AAAA;AAAA,OAAY,iBAAiB,OAAO,QAAQ,IAAI;AAAA;AAAA,EAAO,cAAc;AAAA;AAC5F,SAAO,GAAG,MAAM,GAAG,cAAc,GAAG,KAAK;AAC3C;","names":[]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare class RelevanceStore {
|
|
2
|
+
private readonly statePath;
|
|
3
|
+
private state;
|
|
4
|
+
constructor(memoryDir: string);
|
|
5
|
+
load(): Promise<void>;
|
|
6
|
+
/**
|
|
7
|
+
* Record a thumbs up/down for a memory ID.
|
|
8
|
+
* This is intentionally lightweight; it should never block agent execution.
|
|
9
|
+
*/
|
|
10
|
+
record(memoryId: string, vote: "up" | "down", note?: string): Promise<void>;
|
|
11
|
+
/**
|
|
12
|
+
* Convert feedback into a small score adjustment.
|
|
13
|
+
* Intended to be used as a tie-breaker/soft bias, not a hard filter.
|
|
14
|
+
*/
|
|
15
|
+
adjustment(memoryId: string): number;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export { RelevanceStore };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/rerank.d.ts
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
interface RerankCandidate {
|
|
2
|
+
id: string;
|
|
3
|
+
originalIndex: number;
|
|
4
|
+
}
|
|
5
|
+
interface RerankScore {
|
|
6
|
+
id: string;
|
|
7
|
+
score: number;
|
|
8
|
+
}
|
|
9
|
+
interface RerankCacheEntry {
|
|
10
|
+
expiresAtMs: number;
|
|
11
|
+
rankedIds: string[];
|
|
12
|
+
}
|
|
13
|
+
declare class RerankCache {
|
|
14
|
+
private entries;
|
|
15
|
+
get(key: string): string[] | null;
|
|
16
|
+
set(key: string, rankedIds: string[], ttlMs: number): void;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Parse a rerank response (JSON) and return candidates sorted by score.
|
|
20
|
+
*
|
|
21
|
+
* Rules:
|
|
22
|
+
* - Unknown IDs in the response are ignored.
|
|
23
|
+
* - Candidates missing from the response keep relative order after scored ones.
|
|
24
|
+
* - Stable tie-breaker: originalIndex ascending.
|
|
25
|
+
*/
|
|
26
|
+
declare function parseRerankResponse(raw: string, candidates: RerankCandidate[]): Array<RerankCandidate & {
|
|
27
|
+
score?: number;
|
|
28
|
+
}>;
|
|
29
|
+
declare function rerankLocalOrNoop(opts: {
|
|
30
|
+
query: string;
|
|
31
|
+
candidates: Array<{
|
|
32
|
+
id: string;
|
|
33
|
+
snippet: string;
|
|
34
|
+
}>;
|
|
35
|
+
local: {
|
|
36
|
+
chatCompletion: (messages: Array<{
|
|
37
|
+
role: string;
|
|
38
|
+
content: string;
|
|
39
|
+
}>, options?: {
|
|
40
|
+
maxTokens?: number;
|
|
41
|
+
temperature?: number;
|
|
42
|
+
timeoutMs?: number;
|
|
43
|
+
operation?: string;
|
|
44
|
+
priority?: "recall-critical" | "background";
|
|
45
|
+
}) => Promise<{
|
|
46
|
+
content: string;
|
|
47
|
+
} | null>;
|
|
48
|
+
};
|
|
49
|
+
enabled: boolean;
|
|
50
|
+
timeoutMs: number;
|
|
51
|
+
maxCandidates: number;
|
|
52
|
+
cache?: RerankCache;
|
|
53
|
+
cacheEnabled: boolean;
|
|
54
|
+
cacheTtlMs: number;
|
|
55
|
+
}): Promise<string[] | null>;
|
|
56
|
+
|
|
57
|
+
export { RerankCache, type RerankCacheEntry, type RerankCandidate, type RerankScore, parseRerankResponse, rerankLocalOrNoop };
|
package/dist/rerank.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolve a provider API key from various OpenClaw formats.
|
|
3
|
+
*
|
|
4
|
+
* Resolution order:
|
|
5
|
+
* 1. Plain-text string → returned immediately
|
|
6
|
+
* 2. Gateway's resolveApiKeyForProvider → handles all secret ref formats
|
|
7
|
+
* 3. Environment variable fallback (PROVIDER_NAME_API_KEY)
|
|
8
|
+
* 4. undefined → provider is skipped in the fallback chain
|
|
9
|
+
*/
|
|
10
|
+
declare function resolveProviderApiKey(providerId: string, apiKeyValue: unknown, gatewayConfig?: unknown, agentDir?: string): Promise<string | undefined>;
|
|
11
|
+
/**
|
|
12
|
+
* Clear the resolution cache (useful for testing or key rotation).
|
|
13
|
+
*/
|
|
14
|
+
declare function clearSecretCache(): void;
|
|
15
|
+
|
|
16
|
+
export { clearSecretCache, resolveProviderApiKey };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
clearSecretCache,
|
|
3
|
+
resolveProviderApiKey
|
|
4
|
+
} from "./chunk-LU3GQNDQ.js";
|
|
5
|
+
import "./chunk-MARWOCVP.js";
|
|
6
|
+
import "./chunk-KWBU5S5U.js";
|
|
7
|
+
export {
|
|
8
|
+
clearSecretCache,
|
|
9
|
+
resolveProviderApiKey
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=resolve-provider-secret.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
type ResumeBundleSource = "tool_result" | "cli" | "system" | "manual";
|
|
2
|
+
interface ResumeBundle {
|
|
3
|
+
schemaVersion: 1;
|
|
4
|
+
bundleId: string;
|
|
5
|
+
recordedAt: string;
|
|
6
|
+
sessionKey: string;
|
|
7
|
+
source: ResumeBundleSource;
|
|
8
|
+
scope: string;
|
|
9
|
+
summary: string;
|
|
10
|
+
objectiveStateSnapshotRefs?: string[];
|
|
11
|
+
workProductEntryRefs?: string[];
|
|
12
|
+
commitmentEntryRefs?: string[];
|
|
13
|
+
keyFacts?: string[];
|
|
14
|
+
nextActions?: string[];
|
|
15
|
+
riskFlags?: string[];
|
|
16
|
+
metadata?: Record<string, string>;
|
|
17
|
+
}
|
|
18
|
+
interface ResumeBundleStatus {
|
|
19
|
+
enabled: boolean;
|
|
20
|
+
rootDir: string;
|
|
21
|
+
bundlesDir: string;
|
|
22
|
+
bundles: {
|
|
23
|
+
total: number;
|
|
24
|
+
valid: number;
|
|
25
|
+
invalid: number;
|
|
26
|
+
bySource: Partial<Record<ResumeBundleSource, number>>;
|
|
27
|
+
latestBundleId?: string;
|
|
28
|
+
latestRecordedAt?: string;
|
|
29
|
+
latestSessionKey?: string;
|
|
30
|
+
};
|
|
31
|
+
latestBundle?: ResumeBundle;
|
|
32
|
+
invalidBundles: Array<{
|
|
33
|
+
path: string;
|
|
34
|
+
error: string;
|
|
35
|
+
}>;
|
|
36
|
+
}
|
|
37
|
+
declare function resolveResumeBundleDir(memoryDir: string, overrideDir?: string): string;
|
|
38
|
+
declare function validateResumeBundle(raw: unknown): ResumeBundle;
|
|
39
|
+
declare function buildResumeBundleFromState(options: {
|
|
40
|
+
memoryDir: string;
|
|
41
|
+
sessionKey: string;
|
|
42
|
+
bundleId: string;
|
|
43
|
+
recordedAt: string;
|
|
44
|
+
scope: string;
|
|
45
|
+
source?: ResumeBundleSource;
|
|
46
|
+
transcriptEnabled?: boolean;
|
|
47
|
+
objectiveStateMemoryEnabled?: boolean;
|
|
48
|
+
objectiveStateStoreDir?: string;
|
|
49
|
+
creationMemoryEnabled?: boolean;
|
|
50
|
+
workProductLedgerDir?: string;
|
|
51
|
+
commitmentLedgerEnabled?: boolean;
|
|
52
|
+
commitmentLedgerDir?: string;
|
|
53
|
+
maxRefsPerStore?: number;
|
|
54
|
+
}): Promise<ResumeBundle>;
|
|
55
|
+
declare function recordResumeBundle(options: {
|
|
56
|
+
memoryDir: string;
|
|
57
|
+
resumeBundleDir?: string;
|
|
58
|
+
bundle: ResumeBundle;
|
|
59
|
+
}): Promise<string>;
|
|
60
|
+
declare function getResumeBundleStatus(options: {
|
|
61
|
+
memoryDir: string;
|
|
62
|
+
resumeBundleDir?: string;
|
|
63
|
+
enabled: boolean;
|
|
64
|
+
}): Promise<ResumeBundleStatus>;
|
|
65
|
+
|
|
66
|
+
export { type ResumeBundle, type ResumeBundleSource, type ResumeBundleStatus, buildResumeBundleFromState, getResumeBundleStatus, recordResumeBundle, resolveResumeBundleDir, validateResumeBundle };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import {
|
|
2
|
+
buildResumeBundleFromState,
|
|
3
|
+
getResumeBundleStatus,
|
|
4
|
+
recordResumeBundle,
|
|
5
|
+
resolveResumeBundleDir,
|
|
6
|
+
validateResumeBundle
|
|
7
|
+
} from "./chunk-QANCTXQF.js";
|
|
8
|
+
import "./chunk-CULXMQJH.js";
|
|
9
|
+
import "./chunk-UV2FO7J4.js";
|
|
10
|
+
import "./chunk-LOBRX7VD.js";
|
|
11
|
+
import "./chunk-YRMVARQP.js";
|
|
12
|
+
import "./chunk-FYIYMQ5N.js";
|
|
13
|
+
import "./chunk-ISY75RLM.js";
|
|
14
|
+
import "./chunk-Z5LAYHGJ.js";
|
|
15
|
+
import "./chunk-MARWOCVP.js";
|
|
16
|
+
import "./chunk-DT5TVLJE.js";
|
|
17
|
+
import "./chunk-KWBU5S5U.js";
|
|
18
|
+
import "./chunk-DGXUHMOV.js";
|
|
19
|
+
import "./chunk-LPSF4OQH.js";
|
|
20
|
+
export {
|
|
21
|
+
buildResumeBundleFromState,
|
|
22
|
+
getResumeBundleStatus,
|
|
23
|
+
recordResumeBundle,
|
|
24
|
+
resolveResumeBundleDir,
|
|
25
|
+
validateResumeBundle
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=resume-bundles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { QmdSearchResult } from './types.js';
|
|
2
|
+
import { QmdClient } from './qmd.js';
|
|
3
|
+
import './port-C1GZFv8h.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Parallel Specialized Retrieval (v9.1 — ASMR-inspired)
|
|
7
|
+
*
|
|
8
|
+
* Replaces single-pass hybrid search with three parallel specialized agents:
|
|
9
|
+
*
|
|
10
|
+
* 1. DirectFactAgent — entity-first lookup via entity filename index (<5ms)
|
|
11
|
+
* 2. ContextualAgent — existing hybridSearch (same cost as current single-pass)
|
|
12
|
+
* 3. TemporalAgent — temporal index prefilter + recency scoring (<10ms)
|
|
13
|
+
*
|
|
14
|
+
* All agents run via Promise.all(), so total latency = max(agents), not sum.
|
|
15
|
+
* No new LLM inference is introduced — agents reuse existing search primitives.
|
|
16
|
+
*
|
|
17
|
+
* Graceful degradation: any agent error/timeout does not block the others.
|
|
18
|
+
*
|
|
19
|
+
* References:
|
|
20
|
+
* - Supermemory ASMR: https://blog.supermemory.ai/...
|
|
21
|
+
* - Spec: docs/ideas/parallel-specialized-retrieval.md
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
type SearchAgentSource = "direct" | "contextual" | "temporal";
|
|
25
|
+
interface ParallelSearchResult extends QmdSearchResult {
|
|
26
|
+
/** Which retrieval agent produced this result. */
|
|
27
|
+
agentSource: SearchAgentSource;
|
|
28
|
+
}
|
|
29
|
+
/** Source-based weights applied during merge. Higher = higher confidence/precision. */
|
|
30
|
+
declare const PARALLEL_AGENT_WEIGHTS: Record<SearchAgentSource, number>;
|
|
31
|
+
/**
|
|
32
|
+
* Decide whether a given agent should run for this query.
|
|
33
|
+
* Agent 1 (direct) is the only one that may be skipped — when the query
|
|
34
|
+
* contains no proper-noun-like tokens, entity lookups will return nothing.
|
|
35
|
+
* Agents 2 (contextual) and 3 (temporal) always run.
|
|
36
|
+
*/
|
|
37
|
+
declare function shouldRunAgent(agent: SearchAgentSource, query: string, knownEntityCount: number): boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Direct Facts Agent — entity-first retrieval.
|
|
40
|
+
*
|
|
41
|
+
* Reads entity filenames from the entities directory and scores them by
|
|
42
|
+
* keyword overlap with the query. Returns matching entity file paths as
|
|
43
|
+
* QmdSearchResult[]. Zero LLM inference; pure file I/O.
|
|
44
|
+
*
|
|
45
|
+
* Cost: readdir on entities/ + filename scoring. Typically <5ms.
|
|
46
|
+
*
|
|
47
|
+
*/
|
|
48
|
+
declare function runDirectAgent(query: string, memoryDir: string, maxResults?: number): Promise<ParallelSearchResult[]>;
|
|
49
|
+
/**
|
|
50
|
+
* Temporal Agent — recency-focused retrieval.
|
|
51
|
+
*
|
|
52
|
+
* Uses the temporal index (index_time.json) to find memories from the
|
|
53
|
+
* recent time window derived from the query (default: last 7 days).
|
|
54
|
+
* Combines recency decay with query-filename token overlap so results stay
|
|
55
|
+
* relevant to the query content, not just recency. Zero LLM inference; File I/O + math.
|
|
56
|
+
*
|
|
57
|
+
* Cost: read index_time.json + date range scan. Typically <10ms.
|
|
58
|
+
*/
|
|
59
|
+
declare function runTemporalAgent(query: string, memoryDir: string, maxResults?: number,
|
|
60
|
+
/** Optional candidate set from query-aware prefilter. Applied BEFORE the top-K cap so
|
|
61
|
+
* in-scope entries are not displaced by newer out-of-scope entries. */
|
|
62
|
+
candidatePaths?: Set<string> | null): Promise<ParallelSearchResult[]>;
|
|
63
|
+
/**
|
|
64
|
+
* Contextual Agent — broad semantic/hybrid search.
|
|
65
|
+
*
|
|
66
|
+
* Delegates to the existing hybridSearch (BM25 + vector). Same cost as the
|
|
67
|
+
* current single-pass retrieval — this agent introduces no additional LLM calls.
|
|
68
|
+
*/
|
|
69
|
+
declare function runContextualAgent(query: string, qmd: QmdClient, collection: string | undefined, maxResults: number, signal?: AbortSignal): Promise<ParallelSearchResult[]>;
|
|
70
|
+
/**
|
|
71
|
+
* Merge pre-computed direct and temporal agent results with contextual results.
|
|
72
|
+
*
|
|
73
|
+
* This is the merge half of augmentWithDirectAndTemporal. Expose it separately so
|
|
74
|
+
* callers that started agents concurrently with the contextual search (for true
|
|
75
|
+
* parallel latency) can merge after all three complete, without re-running agents.
|
|
76
|
+
*
|
|
77
|
+
* Handles the same cases as augmentWithDirectAndTemporal:
|
|
78
|
+
* - Returns contextual unchanged (no reweighting) when both agents return nothing
|
|
79
|
+
* - Applies maxResults cap in all paths
|
|
80
|
+
* - Populates snippets for results discovered only by specialized agents
|
|
81
|
+
*/
|
|
82
|
+
declare function mergeWithAgentResults(contextualResults: QmdSearchResult[], directResults: ParallelSearchResult[], temporalResults: ParallelSearchResult[], weights: Record<SearchAgentSource, number>, maxResults: number): Promise<QmdSearchResult[]>;
|
|
83
|
+
/**
|
|
84
|
+
* Augment a set of contextual (hybridSearch) results with direct and temporal
|
|
85
|
+
* agent results, returning a merged, deduplicated list.
|
|
86
|
+
*
|
|
87
|
+
* **Test helper** — production recall uses the inline orchestrator path which
|
|
88
|
+
* passes namespace-specific directories to each agent. This function uses a
|
|
89
|
+
* simplified single-directory contract suitable for unit tests.
|
|
90
|
+
*
|
|
91
|
+
* Direct and temporal agents run in parallel, then all three are merged with
|
|
92
|
+
* configurable weights.
|
|
93
|
+
*
|
|
94
|
+
* Contextual weight is always applied to `contextualResults` so scoring is
|
|
95
|
+
* consistent regardless of whether direct/temporal agents return anything.
|
|
96
|
+
*
|
|
97
|
+
* Snippets: snippets from contextual results are preserved during merge. For
|
|
98
|
+
* results discovered only by direct/temporal agents (no contextual match),
|
|
99
|
+
* the first ~200 chars of the file are read as a fallback preview so downstream
|
|
100
|
+
* formatters and rerankers have content to work with, not just a path.
|
|
101
|
+
*/
|
|
102
|
+
declare function augmentWithDirectAndTemporal(query: string, memoryDir: string, contextualResults: QmdSearchResult[], weights: Record<SearchAgentSource, number>, maxPerAgent: number, maxResults: number,
|
|
103
|
+
/** Optional candidate set from query-aware prefilter (time/tag scoped). Agents' results are
|
|
104
|
+
* filtered to this set when provided so recall stays within the operator-specified scope. */
|
|
105
|
+
candidatePaths?: Set<string> | null): Promise<QmdSearchResult[]>;
|
|
106
|
+
interface ParallelRetrievalOptions {
|
|
107
|
+
collection?: string;
|
|
108
|
+
maxResults?: number;
|
|
109
|
+
signal?: AbortSignal;
|
|
110
|
+
/** If true, skip the contextual agent (hybridSearch is already running externally). */
|
|
111
|
+
skipContextual?: boolean;
|
|
112
|
+
/** Max results per agent (capped before merge). */
|
|
113
|
+
maxResultsPerAgent?: number;
|
|
114
|
+
/** Override default agent weights. Falls back to PARALLEL_AGENT_WEIGHTS when absent. */
|
|
115
|
+
agentWeights?: Record<SearchAgentSource, number>;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Run parallel specialized retrieval agents and merge results.
|
|
119
|
+
*
|
|
120
|
+
* When `skipContextual` is true, only the direct and temporal agents run.
|
|
121
|
+
* This is the intended usage inside the orchestrator, where hybridSearch
|
|
122
|
+
* already runs as the primary search — we augment with the cheap extra agents.
|
|
123
|
+
*
|
|
124
|
+
* Total latency = max(agent_latencies), not sum.
|
|
125
|
+
* Agent errors are isolated — others still return results.
|
|
126
|
+
*/
|
|
127
|
+
declare function parallelRetrieval(query: string, qmd: QmdClient, memoryDir: string, options?: ParallelRetrievalOptions): Promise<QmdSearchResult[]>;
|
|
128
|
+
|
|
129
|
+
export { PARALLEL_AGENT_WEIGHTS, type ParallelRetrievalOptions, type ParallelSearchResult, type SearchAgentSource, augmentWithDirectAndTemporal, mergeWithAgentResults, parallelRetrieval, runContextualAgent, runDirectAgent, runTemporalAgent, shouldRunAgent };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import {
|
|
2
|
+
PARALLEL_AGENT_WEIGHTS,
|
|
3
|
+
augmentWithDirectAndTemporal,
|
|
4
|
+
mergeWithAgentResults,
|
|
5
|
+
parallelRetrieval,
|
|
6
|
+
runContextualAgent,
|
|
7
|
+
runDirectAgent,
|
|
8
|
+
runTemporalAgent,
|
|
9
|
+
shouldRunAgent
|
|
10
|
+
} from "./chunk-GPGBSNKM.js";
|
|
11
|
+
import "./chunk-V3RXWQIE.js";
|
|
12
|
+
import "./chunk-KWBU5S5U.js";
|
|
13
|
+
export {
|
|
14
|
+
PARALLEL_AGENT_WEIGHTS,
|
|
15
|
+
augmentWithDirectAndTemporal,
|
|
16
|
+
mergeWithAgentResults,
|
|
17
|
+
parallelRetrieval,
|
|
18
|
+
runContextualAgent,
|
|
19
|
+
runDirectAgent,
|
|
20
|
+
runTemporalAgent,
|
|
21
|
+
shouldRunAgent
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=retrieval-agents.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
interface QueryExpansionOptions {
|
|
2
|
+
maxQueries: number;
|
|
3
|
+
minTokenLen: number;
|
|
4
|
+
}
|
|
5
|
+
interface RuntimeRetrievalPolicy {
|
|
6
|
+
recencyWeight?: number;
|
|
7
|
+
}
|
|
8
|
+
declare function applyRuntimeRetrievalPolicy(base: {
|
|
9
|
+
recencyWeight: number;
|
|
10
|
+
}, runtime: RuntimeRetrievalPolicy | null): {
|
|
11
|
+
recencyWeight: number;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Cheap, deterministic query expansion.
|
|
15
|
+
* Produces additional queries biased toward the most salient tokens in the input.
|
|
16
|
+
*/
|
|
17
|
+
declare function expandQuery(query: string, options: QueryExpansionOptions): string[];
|
|
18
|
+
|
|
19
|
+
export { type QueryExpansionOptions, type RuntimeRetrievalPolicy, applyRuntimeRetrievalPolicy, expandQuery };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type SanitizeResult = {
|
|
2
|
+
clean: boolean;
|
|
3
|
+
text: string;
|
|
4
|
+
violations: string[];
|
|
5
|
+
};
|
|
6
|
+
declare function sanitizeMemoryContent(text: string): SanitizeResult;
|
|
7
|
+
declare function isSafeMemoryContent(text: string): boolean;
|
|
8
|
+
|
|
9
|
+
export { type SanitizeResult, isSafeMemoryContent, sanitizeMemoryContent };
|