@remnic/core 1.1.1 → 1.1.3
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/abort-error.js +1 -0
- package/dist/abstraction-nodes.js +1 -0
- package/dist/access-audit.js +1 -0
- package/dist/access-cli.js +76 -51
- package/dist/access-cli.js.map +1 -1
- package/dist/access-http.d.ts +50 -5
- package/dist/access-http.js +38 -16
- package/dist/access-idempotency.js +1 -0
- package/dist/access-mcp.d.ts +10 -5
- package/dist/access-mcp.js +37 -14
- package/dist/access-schema.d.ts +133 -13
- package/dist/access-schema.js +20 -1
- package/dist/access-service-_AEUMVyX.d.ts +1981 -0
- package/dist/access-service.d.ts +11 -6
- package/dist/access-service.js +39 -14
- package/dist/active-memory-bridge.js +1 -0
- package/dist/active-recall.js +1 -0
- package/dist/active-recall.js.map +1 -1
- package/dist/behavior-learner.js +1 -0
- package/dist/behavior-learner.js.map +1 -1
- package/dist/behavior-signals.js +1 -0
- package/dist/bootstrap.d.ts +6 -4
- package/dist/bootstrap.js +1 -0
- package/dist/boxes.js +1 -0
- package/dist/briefing.d.ts +9 -5
- package/dist/briefing.js +10 -6
- package/dist/buffer-surprise-report.js +1 -0
- package/dist/buffer-surprise.js +1 -0
- package/dist/buffer.d.ts +1 -1
- package/dist/buffer.js +1 -0
- package/dist/calibration.d.ts +8 -1
- package/dist/calibration.js +10 -2
- package/dist/calibration.js.map +1 -1
- package/dist/capsule-cli.d.ts +137 -0
- package/dist/capsule-cli.js +34 -0
- package/dist/capsule-crypto-5CYAGVC5.js +18 -0
- package/dist/capsule-export-NZQPOTQ4.js +17 -0
- package/dist/capsule-export-NZQPOTQ4.js.map +1 -0
- package/dist/capsule-import-SDCUXLEV.js +16 -0
- package/dist/capsule-import-SDCUXLEV.js.map +1 -0
- package/dist/capsule-merge-DI7PNQ2H.js +189 -0
- package/dist/capsule-merge-DI7PNQ2H.js.map +1 -0
- package/dist/causal-behavior.js +1 -0
- package/dist/causal-behavior.js.map +1 -1
- package/dist/causal-chain.js +1 -0
- package/dist/causal-consolidation.js +12 -9
- package/dist/causal-consolidation.js.map +1 -1
- package/dist/causal-retrieval.js +2 -1
- package/dist/causal-retrieval.js.map +1 -1
- package/dist/causal-trajectory-graph.js +4 -1
- package/dist/causal-trajectory-graph.js.map +1 -1
- package/dist/causal-trajectory.js +2 -1
- package/dist/chunk-2LSZVONP.js +67 -0
- package/dist/chunk-2LSZVONP.js.map +1 -0
- package/dist/chunk-32KD5IHZ.js +245 -0
- package/dist/chunk-32KD5IHZ.js.map +1 -0
- package/dist/{chunk-VDX363PS.js → chunk-34F3PLWZ.js} +10 -3
- package/dist/chunk-34F3PLWZ.js.map +1 -0
- package/dist/chunk-3KIS4VGT.js +228 -0
- package/dist/chunk-3KIS4VGT.js.map +1 -0
- package/dist/chunk-3LCWFNVS.js +350 -0
- package/dist/chunk-3LCWFNVS.js.map +1 -0
- package/dist/chunk-43EKP2UK.js +26 -0
- package/dist/chunk-43EKP2UK.js.map +1 -0
- package/dist/chunk-457A4P3L.js +119 -0
- package/dist/chunk-457A4P3L.js.map +1 -0
- package/dist/{chunk-KUB6JU6H.js → chunk-47WOM4YW.js} +2 -2
- package/dist/{chunk-HK3FGIEW.js → chunk-4PLGJRBV.js} +656 -20
- package/dist/chunk-4PLGJRBV.js.map +1 -0
- package/dist/{chunk-BGJGXLZ7.js → chunk-55FXRRSJ.js} +11 -8
- package/dist/chunk-55FXRRSJ.js.map +1 -0
- package/dist/{chunk-ULYOGL6R.js → chunk-5HRY2WRF.js} +7 -3
- package/dist/chunk-5HRY2WRF.js.map +1 -0
- package/dist/chunk-6TBWYBJ3.js +236 -0
- package/dist/chunk-6TBWYBJ3.js.map +1 -0
- package/dist/chunk-74EMIVE4.js +329 -0
- package/dist/chunk-74EMIVE4.js.map +1 -0
- package/dist/chunk-74WWN7ZW.js +82 -0
- package/dist/chunk-74WWN7ZW.js.map +1 -0
- package/dist/{chunk-B5WXLVDY.js → chunk-7GCMLT7J.js} +245 -25
- package/dist/chunk-7GCMLT7J.js.map +1 -0
- package/dist/chunk-A6XUJE5D.js +126 -0
- package/dist/chunk-A6XUJE5D.js.map +1 -0
- package/dist/chunk-AJA46VX5.js +393 -0
- package/dist/chunk-AJA46VX5.js.map +1 -0
- package/dist/{chunk-DFTTJYSO.js → chunk-AKUCB2OG.js} +525 -24
- package/dist/chunk-AKUCB2OG.js.map +1 -0
- package/dist/chunk-ASIQZXYO.js +277 -0
- package/dist/chunk-ASIQZXYO.js.map +1 -0
- package/dist/{chunk-ZEM3OK2K.js → chunk-B2TL6GA2.js} +3 -3
- package/dist/chunk-BJMBJZ2Y.js +290 -0
- package/dist/chunk-BJMBJZ2Y.js.map +1 -0
- package/dist/chunk-BT7NVCML.js +79 -0
- package/dist/chunk-BT7NVCML.js.map +1 -0
- package/dist/chunk-CK5NTM2S.js +454 -0
- package/dist/chunk-CK5NTM2S.js.map +1 -0
- package/dist/{chunk-3GXCSUXR.js → chunk-CRU27Q4J.js} +2 -2
- package/dist/{chunk-F5VP6YCB.js → chunk-DCE6SQLA.js} +572 -155
- package/dist/chunk-DCE6SQLA.js.map +1 -0
- package/dist/{chunk-CUPFXL3J.js → chunk-DHRQHX36.js} +4 -4
- package/dist/chunk-DHRQHX36.js.map +1 -0
- package/dist/{chunk-GKFXUTJ2.js → chunk-DR7MCMPS.js} +981 -61
- package/dist/chunk-DR7MCMPS.js.map +1 -0
- package/dist/chunk-FP2373TW.js +149 -0
- package/dist/chunk-FP2373TW.js.map +1 -0
- package/dist/{chunk-RBBWYEFJ.js → chunk-G2WADRQ3.js} +1 -1
- package/dist/chunk-G7D6GZ5J.js +48 -0
- package/dist/chunk-G7D6GZ5J.js.map +1 -0
- package/dist/chunk-H7XKCNR6.js +60 -0
- package/dist/chunk-H7XKCNR6.js.map +1 -0
- package/dist/{chunk-VYM3VWOF.js → chunk-IM3JSE73.js} +966 -329
- package/dist/chunk-IM3JSE73.js.map +1 -0
- package/dist/chunk-IXEJRKCZ.js +18 -0
- package/dist/chunk-IXEJRKCZ.js.map +1 -0
- package/dist/chunk-IYY4MCPG.js +275 -0
- package/dist/chunk-IYY4MCPG.js.map +1 -0
- package/dist/{chunk-BK2EFTE2.js → chunk-JWSENLQI.js} +508 -28
- package/dist/chunk-JWSENLQI.js.map +1 -0
- package/dist/chunk-KNKUID7G.js +183 -0
- package/dist/chunk-KNKUID7G.js.map +1 -0
- package/dist/chunk-L2IO2QPY.js +2036 -0
- package/dist/chunk-L2IO2QPY.js.map +1 -0
- package/dist/{chunk-SPI27QT6.js → chunk-L5IIGA5V.js} +9 -4
- package/dist/chunk-L5IIGA5V.js.map +1 -0
- package/dist/{chunk-RGLL5SPU.js → chunk-LVYGDT5V.js} +56 -82
- package/dist/chunk-LVYGDT5V.js.map +1 -0
- package/dist/{chunk-ZAIM4TUE.js → chunk-LW2NMHDW.js} +46 -1
- package/dist/chunk-LW2NMHDW.js.map +1 -0
- package/dist/{chunk-3OGMS3PE.js → chunk-LZRYQK6L.js} +3 -2
- package/dist/chunk-LZRYQK6L.js.map +1 -0
- package/dist/chunk-MDYG7VI7.js +48 -0
- package/dist/chunk-MDYG7VI7.js.map +1 -0
- package/dist/chunk-MXC3AP5I.js +74 -0
- package/dist/chunk-MXC3AP5I.js.map +1 -0
- package/dist/{chunk-S3EEFKNY.js → chunk-N7X62G74.js} +26 -11
- package/dist/chunk-N7X62G74.js.map +1 -0
- package/dist/chunk-NN3TS5BM.js +147 -0
- package/dist/chunk-NN3TS5BM.js.map +1 -0
- package/dist/chunk-OA3L7BFR.js +183 -0
- package/dist/chunk-OA3L7BFR.js.map +1 -0
- package/dist/{chunk-LK6SGL53.js → chunk-OR64ZGRZ.js} +3 -2
- package/dist/chunk-OR64ZGRZ.js.map +1 -0
- package/dist/chunk-OZHRDTDX.js +240 -0
- package/dist/chunk-OZHRDTDX.js.map +1 -0
- package/dist/chunk-PCUKNJAZ.js +165 -0
- package/dist/chunk-PCUKNJAZ.js.map +1 -0
- package/dist/{chunk-6PFRXT4K.js → chunk-PFV5C235.js} +11 -6
- package/dist/chunk-PFV5C235.js.map +1 -0
- package/dist/chunk-PZ5AY32C.js +10 -0
- package/dist/chunk-PZ5AY32C.js.map +1 -0
- package/dist/{chunk-XZ2TIKGC.js → chunk-Q7FJ5ZHM.js} +30 -10
- package/dist/chunk-Q7FJ5ZHM.js.map +1 -0
- package/dist/{chunk-7I7FKFZH.js → chunk-R2L7SUX2.js} +6 -6
- package/dist/{chunk-JL2PU6AI.js → chunk-R2XRID2N.js} +2 -2
- package/dist/{chunk-WCLICCGB.js → chunk-RILIVK4O.js} +91 -4
- package/dist/chunk-RILIVK4O.js.map +1 -0
- package/dist/{chunk-C2EFFULQ.js → chunk-RK2Y4XOM.js} +163 -20
- package/dist/chunk-RK2Y4XOM.js.map +1 -0
- package/dist/{chunk-TP4FZJIZ.js → chunk-RULE4VG5.js} +5 -1
- package/dist/chunk-RULE4VG5.js.map +1 -0
- package/dist/{chunk-PVPWZSSI.js → chunk-SMA4IMHV.js} +19 -3
- package/dist/chunk-SMA4IMHV.js.map +1 -0
- package/dist/{chunk-WVVA7F5A.js → chunk-SS253RXF.js} +30 -16
- package/dist/chunk-SS253RXF.js.map +1 -0
- package/dist/chunk-TUFG6VXY.js +875 -0
- package/dist/chunk-TUFG6VXY.js.map +1 -0
- package/dist/chunk-TYEOAFH3.js +251 -0
- package/dist/chunk-TYEOAFH3.js.map +1 -0
- package/dist/chunk-UKJAGEXH.js +260 -0
- package/dist/chunk-UKJAGEXH.js.map +1 -0
- package/dist/{chunk-KVBLZUKV.js → chunk-USFPPRAF.js} +93 -3
- package/dist/chunk-USFPPRAF.js.map +1 -0
- package/dist/{chunk-EPQJM2GC.js → chunk-VTJVUHRK.js} +22 -36
- package/dist/chunk-VTJVUHRK.js.map +1 -0
- package/dist/{chunk-O5ETUNBT.js → chunk-VTU2B4VF.js} +7 -3
- package/dist/chunk-VTU2B4VF.js.map +1 -0
- package/dist/chunk-WIICJPET.js +45 -0
- package/dist/chunk-WIICJPET.js.map +1 -0
- package/dist/{chunk-VBVG2M5G.js → chunk-WPGJYVUH.js} +6 -2
- package/dist/chunk-WPGJYVUH.js.map +1 -0
- package/dist/{chunk-YNQKWQT4.js → chunk-WSZIHQBK.js} +31 -11
- package/dist/{chunk-YNQKWQT4.js.map → chunk-WSZIHQBK.js.map} +1 -1
- package/dist/{chunk-NZLQTHS5.js → chunk-WW3QQF4H.js} +4 -1
- package/dist/chunk-WW3QQF4H.js.map +1 -0
- package/dist/{chunk-FVA6TGI3.js → chunk-Y3WQ4ZWK.js} +42 -2
- package/dist/chunk-Y3WQ4ZWK.js.map +1 -0
- package/dist/chunk-YNJHCGDT.js +309 -0
- package/dist/chunk-YNJHCGDT.js.map +1 -0
- package/dist/{chunk-ALXMCZEU.js → chunk-Z2E7VW55.js} +6 -3
- package/dist/chunk-Z2E7VW55.js.map +1 -0
- package/dist/{chunk-INXV5JBT.js → chunk-ZGXSCMQN.js} +1992 -410
- package/dist/chunk-ZGXSCMQN.js.map +1 -0
- package/dist/{chunk-W6SL7OFG.js → chunk-ZTSE2ZJ6.js} +12 -2
- package/dist/{chunk-W6SL7OFG.js.map → chunk-ZTSE2ZJ6.js.map} +1 -1
- package/dist/chunking.js +1 -0
- package/dist/cipher-GVE2GQ5H.js +28 -0
- package/dist/cipher-GVE2GQ5H.js.map +1 -0
- package/dist/citations.js +1 -0
- package/dist/{cli-BkeRaYfk.d.ts → cli-x2APT9a6.d.ts} +26 -7
- package/dist/cli.d.ts +11 -6
- package/dist/cli.js +68 -34
- package/dist/codex-thread-key.js +1 -0
- package/dist/commitment-ledger.js +1 -0
- package/dist/compression-optimizer.js +1 -0
- package/dist/config.d.ts +2 -1
- package/dist/config.js +5 -2
- package/dist/connectors-cli-DFGtY2DB.d.ts +257 -0
- package/dist/connectors-cli.d.ts +2 -0
- package/dist/connectors-cli.js +22 -0
- package/dist/connectors-cli.js.map +1 -0
- package/dist/consolidation-operator.d.ts +65 -5
- package/dist/consolidation-operator.js +6 -1
- package/dist/consolidation-provenance-check.d.ts +1 -1
- package/dist/consolidation-provenance-check.js +3 -2
- package/dist/consolidation-undo.d.ts +1 -1
- package/dist/consolidation-undo.js +1 -0
- package/dist/consolidation-undo.js.map +1 -1
- package/dist/{contradiction-review-WIUBAR52.js → contradiction-review-5LTTVDQV.js} +2 -1
- package/dist/contradiction-review-5LTTVDQV.js.map +1 -0
- package/dist/{contradiction-scan-E3GJTI4F.js → contradiction-scan-3Z6YW7YA.js} +2 -1
- package/dist/{contradiction-scan-E3GJTI4F.js.map → contradiction-scan-3Z6YW7YA.js.map} +1 -1
- package/dist/cross-namespace-budget.js +1 -0
- package/dist/cue-anchors.js +1 -0
- package/dist/dashboard-runtime.js +1 -0
- package/dist/day-summary.js +1 -0
- package/dist/delinearize.js +1 -0
- package/dist/direct-answer-wiring.js +1 -0
- package/dist/direct-answer.js +1 -0
- package/dist/dreams-ledger-LR2NBAZE.js +286 -0
- package/dist/dreams-ledger-LR2NBAZE.js.map +1 -0
- package/dist/embedding-fallback.js +3 -1
- package/dist/{engine-F3GOXGE5.js → engine-ICC2DSQF.js} +10 -7
- package/dist/engine-ICC2DSQF.js.map +1 -0
- package/dist/entity-retrieval.d.ts +1 -1
- package/dist/entity-retrieval.js +9 -6
- package/dist/entity-schema.js +1 -0
- package/dist/evals.js +1 -0
- package/dist/evidence-pack.d.ts +16 -0
- package/dist/evidence-pack.js +8 -0
- package/dist/evidence-pack.js.map +1 -0
- package/dist/explicit-capture.d.ts +6 -4
- package/dist/explicit-capture.js +1 -0
- package/dist/extraction-judge-telemetry.js +1 -0
- package/dist/extraction-judge-training.js +1 -0
- package/dist/extraction-judge.js +1 -0
- package/dist/extraction.js +9 -8
- package/dist/fallback-llm.js +3 -2
- package/dist/first-start-migration-4MHQEOSD.js +263 -0
- package/dist/first-start-migration-4MHQEOSD.js.map +1 -0
- package/dist/forget-PLR6J5DN.js +69 -0
- package/dist/forget-PLR6J5DN.js.map +1 -0
- package/dist/framework-CyHYDcri.d.ts +153 -0
- package/dist/fs-utils-IRVUFB6G.js +30 -0
- package/dist/fs-utils-IRVUFB6G.js.map +1 -0
- package/dist/graph-dashboard-diff.js +1 -0
- package/dist/graph-dashboard-key.js +1 -0
- package/dist/graph-dashboard-parser.js +1 -0
- package/dist/graph-edge-decay-PWB63GRE.js +207 -0
- package/dist/graph-edge-decay-PWB63GRE.js.map +1 -0
- package/dist/graph-edge-reinforcement.d.ts +81 -0
- package/dist/graph-edge-reinforcement.js +24 -0
- package/dist/graph-edge-reinforcement.js.map +1 -0
- package/dist/graph-events.d.ts +87 -0
- package/dist/graph-events.js +14 -0
- package/dist/graph-events.js.map +1 -0
- package/dist/graph-recall.js +1 -0
- package/dist/graph-retrieval.js +1 -0
- package/dist/graph-snapshot.d.ts +112 -0
- package/dist/graph-snapshot.js +19 -0
- package/dist/graph-snapshot.js.map +1 -0
- package/dist/graph.d.ts +105 -7
- package/dist/graph.js +20 -3
- package/dist/harmonic-retrieval.js +1 -0
- package/dist/himem.js +1 -0
- package/dist/hygiene.js +1 -0
- package/dist/identity-continuity.js +1 -0
- package/dist/importance.js +1 -0
- package/dist/index.d.ts +562 -13
- package/dist/index.js +365 -96
- package/dist/index.js.map +1 -1
- package/dist/intent.js +1 -0
- package/dist/json-extract.js +1 -0
- package/dist/json-store.js +1 -0
- package/dist/kdf-7S6RWKLZ.js +26 -0
- package/dist/kdf-7S6RWKLZ.js.map +1 -0
- package/dist/legacy-hook-compat.js +1 -0
- package/dist/legacy-hook-compat.js.map +1 -1
- package/dist/lifecycle.js +1 -0
- package/dist/live-connectors-runner.d.ts +48 -0
- package/dist/live-connectors-runner.js +17 -0
- package/dist/live-connectors-runner.js.map +1 -0
- package/dist/local-llm.js +3 -2
- package/dist/logger.js +1 -0
- package/dist/memory-action-policy.js +1 -0
- package/dist/memory-cache.d.ts +2 -1
- package/dist/memory-cache.js +4 -1
- package/dist/memory-governance-KG52RITE.js +37 -0
- package/dist/memory-governance-KG52RITE.js.map +1 -0
- package/dist/memory-lifecycle-ledger-utils.d.ts +2 -1
- package/dist/memory-lifecycle-ledger-utils.js +4 -1
- package/dist/memory-projection-format.js +1 -0
- package/dist/{memory-projection-store-DeSXPh1j.d.ts → memory-projection-store-D3vBHS4J.d.ts} +1 -0
- package/dist/memory-projection-store.d.ts +1 -1
- package/dist/memory-projection-store.js +1 -0
- package/dist/memory-worth-bench.js +1 -0
- package/dist/memory-worth-bench.js.map +1 -1
- package/dist/memory-worth-filter.js +1 -0
- package/dist/memory-worth-outcomes.d.ts +1 -1
- package/dist/memory-worth-outcomes.js +1 -0
- package/dist/memory-worth.js +1 -0
- package/dist/metadata-FC3XPDRQ.js +21 -0
- package/dist/metadata-FC3XPDRQ.js.map +1 -0
- package/dist/migrate-from-identity-anchor-TTEDEJGX.js +8 -0
- package/dist/migrate-from-identity-anchor-TTEDEJGX.js.map +1 -0
- package/dist/model-registry.js +1 -0
- package/dist/models-json.js +1 -0
- package/dist/native-knowledge.js +1 -0
- package/dist/negative.js +1 -0
- package/dist/objective-state-writers.js +1 -0
- package/dist/objective-state-writers.js.map +1 -1
- package/dist/objective-state.js +1 -0
- package/dist/openai-chat-compat.js +1 -0
- package/dist/operator-toolkit.d.ts +46 -2
- package/dist/operator-toolkit.js +29 -17
- package/dist/opik-exporter.js +1 -0
- package/dist/opik-exporter.js.map +1 -1
- package/dist/{orchestrator-CmJ-NTdJ.d.ts → orchestrator-ChkesB8U.d.ts} +177 -13
- package/dist/orchestrator.d.ts +6 -4
- package/dist/orchestrator.js +58 -42
- package/dist/page-versioning.js +1 -0
- package/dist/path-RMTY5Y5A.js +9 -0
- package/dist/path-RMTY5Y5A.js.map +1 -0
- package/dist/patterns-cli.d.ts +160 -0
- package/dist/patterns-cli.js +29 -0
- package/dist/patterns-cli.js.map +1 -0
- package/dist/peers-6OSQ3NK6.js +44 -0
- package/dist/peers-6OSQ3NK6.js.map +1 -0
- package/dist/plugin-id.js +1 -0
- package/dist/policy-runtime.js +1 -0
- package/dist/{port-BADbLZU5.d.ts → port-hqGnoStS.d.ts} +6 -0
- package/dist/profiling.js +1 -0
- package/dist/purge-6ATBGT77.js +205 -0
- package/dist/purge-6ATBGT77.js.map +1 -0
- package/dist/qmd-recall-cache.d.ts +1 -1
- package/dist/qmd-recall-cache.js +1 -0
- package/dist/qmd.d.ts +2 -1
- package/dist/qmd.js +4 -3
- package/dist/reasoning-trace-recall.js +1 -0
- package/dist/reasoning-trace-types.js +1 -0
- package/dist/recall-audit-anomaly.js +1 -0
- package/dist/recall-audit.js +1 -0
- package/dist/recall-disclosure-escalation.d.ts +84 -0
- package/dist/recall-disclosure-escalation.js +14 -0
- package/dist/recall-disclosure-escalation.js.map +1 -0
- package/dist/recall-explain-renderer.js +4 -1
- package/dist/recall-mmr.js +1 -0
- package/dist/recall-qos.js +1 -0
- package/dist/recall-query-policy.js +1 -0
- package/dist/recall-state.d.ts +7 -0
- package/dist/recall-state.js +2 -1
- package/dist/recall-tag-filter.d.ts +56 -0
- package/dist/recall-tag-filter.js +14 -0
- package/dist/recall-tag-filter.js.map +1 -0
- package/dist/recall-tokenization.js +1 -0
- package/dist/recall-xray-cli.d.ts +9 -2
- package/dist/recall-xray-cli.js +9 -4
- package/dist/recall-xray-renderer.js +4 -1
- package/dist/recall-xray.d.ts +116 -2
- package/dist/recall-xray.js +9 -3
- package/dist/reconstruct.js +1 -0
- package/dist/release-changelog.js +2 -0
- package/dist/release-changelog.js.map +1 -1
- package/dist/relevance.js +1 -0
- package/dist/rerank.js +1 -0
- package/dist/{resolution-QBTDHTG7.js → resolution-YGIBORXI.js} +2 -1
- package/dist/{resolution-QBTDHTG7.js.map → resolution-YGIBORXI.js.map} +1 -1
- package/dist/resolve-auth-token.d.ts +51 -0
- package/dist/resolve-auth-token.js +12 -0
- package/dist/resolve-auth-token.js.map +1 -0
- package/dist/resolve-provider-secret.d.ts +13 -1
- package/dist/resolve-provider-secret.js +6 -1
- package/dist/resume-bundles.js +5 -4
- package/dist/retrieval-agents.d.ts +1 -1
- package/dist/retrieval-agents.js +1 -0
- package/dist/retrieval-tiers.js +1 -0
- package/dist/retrieval.js +1 -0
- package/dist/sanitize.js +1 -0
- package/dist/schemas.d.ts +15 -2
- package/dist/schemas.js +2 -1
- package/dist/sdk-compat.js +1 -0
- package/dist/sdk-compat.js.map +1 -1
- package/dist/secure-store-4R2GSO7S.js +156 -0
- package/dist/secure-store-4R2GSO7S.js.map +1 -0
- package/dist/semantic-chunking.js +1 -0
- package/dist/{semantic-consolidation-CxJU6MJk.d.ts → semantic-consolidation-ByBXb-sf.d.ts} +3 -3
- package/dist/semantic-consolidation.d.ts +2 -2
- package/dist/semantic-consolidation.js +12 -6
- package/dist/semantic-rule-promotion.d.ts +1 -1
- package/dist/semantic-rule-promotion.js +9 -6
- package/dist/semantic-rule-verifier.d.ts +1 -1
- package/dist/semantic-rule-verifier.js +9 -6
- package/dist/session-integrity.js +1 -0
- package/dist/session-observer-bands.js +1 -0
- package/dist/session-observer-state.js +1 -0
- package/dist/session-toggles.js +2 -0
- package/dist/session-toggles.js.map +1 -1
- package/dist/signal.js +1 -0
- package/dist/skills-registry.js +2 -0
- package/dist/skills-registry.js.map +1 -1
- package/dist/source-attribution.js +1 -0
- package/dist/state-NCHQ4TRG.js +8 -0
- package/dist/state-NCHQ4TRG.js.map +1 -0
- package/dist/state-store-3EH7HYIN.js +16 -0
- package/dist/state-store-3EH7HYIN.js.map +1 -0
- package/dist/storage.d.ts +76 -2
- package/dist/storage.js +8 -5
- package/dist/store-contract.js +1 -0
- package/dist/summarizer.js +6 -5
- package/dist/summary-snapshot.js +1 -0
- package/dist/temporal-index.js +1 -0
- package/dist/temporal-supersession.d.ts +1 -1
- package/dist/temporal-supersession.js +2 -1
- package/dist/temporal-validity.d.ts +52 -0
- package/dist/temporal-validity.js +14 -0
- package/dist/temporal-validity.js.map +1 -0
- package/dist/threading.js +1 -0
- package/dist/tier-migration.d.ts +2 -2
- package/dist/tier-migration.js +1 -0
- package/dist/tier-routing.js +1 -0
- package/dist/tier-stats-62ZVDFKS.js +152 -0
- package/dist/tier-stats-62ZVDFKS.js.map +1 -0
- package/dist/tmt.js +1 -0
- package/dist/tokens.js +3 -1
- package/dist/topics.js +1 -0
- package/dist/trace-C5ETWBEF.js +290 -0
- package/dist/trace-C5ETWBEF.js.map +1 -0
- package/dist/transcript.js +1 -0
- package/dist/trust-zones.js +1 -0
- package/dist/tui-RI7P6PBS.js +13 -0
- package/dist/tui-RI7P6PBS.js.map +1 -0
- package/dist/types-V3FJ26TF.js +30 -0
- package/dist/types-V3FJ26TF.js.map +1 -0
- package/dist/types.d.ts +634 -9
- package/dist/types.js +10 -3
- package/dist/utility-learner.js +1 -0
- package/dist/utility-runtime.js +1 -0
- package/dist/utility-telemetry.js +1 -0
- package/dist/verified-recall.js +9 -6
- package/dist/version-utils.js +1 -0
- package/dist/whitespace.js +1 -0
- package/dist/work-product-ledger.js +1 -0
- package/package.json +2 -1
- package/dist/access-service-Br8ZydTK.d.ts +0 -827
- package/dist/chunk-3OGMS3PE.js.map +0 -1
- package/dist/chunk-6PFRXT4K.js.map +0 -1
- package/dist/chunk-ALXMCZEU.js.map +0 -1
- package/dist/chunk-B5WXLVDY.js.map +0 -1
- package/dist/chunk-BGJGXLZ7.js.map +0 -1
- package/dist/chunk-BK2EFTE2.js.map +0 -1
- package/dist/chunk-C2EFFULQ.js.map +0 -1
- package/dist/chunk-CUPFXL3J.js.map +0 -1
- package/dist/chunk-DFTTJYSO.js.map +0 -1
- package/dist/chunk-EPQJM2GC.js.map +0 -1
- package/dist/chunk-F5VP6YCB.js.map +0 -1
- package/dist/chunk-FVA6TGI3.js.map +0 -1
- package/dist/chunk-GKFXUTJ2.js.map +0 -1
- package/dist/chunk-HK3FGIEW.js.map +0 -1
- package/dist/chunk-INXV5JBT.js.map +0 -1
- package/dist/chunk-KVBLZUKV.js.map +0 -1
- package/dist/chunk-LK6SGL53.js.map +0 -1
- package/dist/chunk-LTCGGW2D.js +0 -14
- package/dist/chunk-LTCGGW2D.js.map +0 -1
- package/dist/chunk-NZLQTHS5.js.map +0 -1
- package/dist/chunk-O5ETUNBT.js.map +0 -1
- package/dist/chunk-PVPWZSSI.js.map +0 -1
- package/dist/chunk-RGLL5SPU.js.map +0 -1
- package/dist/chunk-S3EEFKNY.js.map +0 -1
- package/dist/chunk-SPI27QT6.js.map +0 -1
- package/dist/chunk-TP4FZJIZ.js.map +0 -1
- package/dist/chunk-ULYOGL6R.js.map +0 -1
- package/dist/chunk-VBVG2M5G.js.map +0 -1
- package/dist/chunk-VDX363PS.js.map +0 -1
- package/dist/chunk-VYM3VWOF.js.map +0 -1
- package/dist/chunk-WCLICCGB.js.map +0 -1
- package/dist/chunk-WVVA7F5A.js.map +0 -1
- package/dist/chunk-X6GF3FX2.js +0 -26
- package/dist/chunk-X6GF3FX2.js.map +0 -1
- package/dist/chunk-XZ2TIKGC.js.map +0 -1
- package/dist/chunk-ZAIM4TUE.js.map +0 -1
- /package/dist/{contradiction-review-WIUBAR52.js.map → capsule-cli.js.map} +0 -0
- /package/dist/{engine-F3GOXGE5.js.map → capsule-crypto-5CYAGVC5.js.map} +0 -0
- /package/dist/{chunk-KUB6JU6H.js.map → chunk-47WOM4YW.js.map} +0 -0
- /package/dist/{chunk-ZEM3OK2K.js.map → chunk-B2TL6GA2.js.map} +0 -0
- /package/dist/{chunk-3GXCSUXR.js.map → chunk-CRU27Q4J.js.map} +0 -0
- /package/dist/{chunk-RBBWYEFJ.js.map → chunk-G2WADRQ3.js.map} +0 -0
- /package/dist/{chunk-7I7FKFZH.js.map → chunk-R2L7SUX2.js.map} +0 -0
- /package/dist/{chunk-JL2PU6AI.js.map → chunk-R2XRID2N.js.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
import "./chunk-3LCWFNVS.js";
|
|
2
|
+
import {
|
|
3
|
+
PEERS_DIR_NAME,
|
|
4
|
+
PEER_ID_MAX_LENGTH,
|
|
5
|
+
PEER_ID_PATTERN,
|
|
6
|
+
appendInteractionLog,
|
|
7
|
+
assertValidPeerId,
|
|
8
|
+
listPeers,
|
|
9
|
+
readInteractionLogRaw,
|
|
10
|
+
readPeer,
|
|
11
|
+
readPeerProfile,
|
|
12
|
+
writePeer,
|
|
13
|
+
writePeerProfile
|
|
14
|
+
} from "./chunk-TUFG6VXY.js";
|
|
1
15
|
import {
|
|
2
16
|
buildTokenEntry,
|
|
3
17
|
commitTokenEntry,
|
|
@@ -9,7 +23,7 @@ import {
|
|
|
9
23
|
resolveConnectorFromToken,
|
|
10
24
|
revokeToken,
|
|
11
25
|
saveTokenStore
|
|
12
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-VTU2B4VF.js";
|
|
13
27
|
import {
|
|
14
28
|
runGraphRecall
|
|
15
29
|
} from "./chunk-DGVM5SFL.js";
|
|
@@ -23,6 +37,9 @@ import {
|
|
|
23
37
|
isNodeType,
|
|
24
38
|
queryGraph
|
|
25
39
|
} from "./chunk-64NJRYU2.js";
|
|
40
|
+
import {
|
|
41
|
+
buildEvidencePack
|
|
42
|
+
} from "./chunk-74WWN7ZW.js";
|
|
26
43
|
import {
|
|
27
44
|
clearBulkImportSources,
|
|
28
45
|
clearTrainingExportAdapters,
|
|
@@ -34,26 +51,33 @@ import {
|
|
|
34
51
|
listBulkImportSources,
|
|
35
52
|
listTrainingExportAdapters,
|
|
36
53
|
parseIsoTimestamp,
|
|
37
|
-
parseStrictCliDate,
|
|
38
54
|
registerBulkImportSource,
|
|
39
55
|
registerTrainingExportAdapter,
|
|
40
56
|
runBulkImportCliCommand,
|
|
41
57
|
runBulkImportPipeline,
|
|
42
58
|
validateImportTurn
|
|
43
|
-
} from "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import
|
|
59
|
+
} from "./chunk-ZGXSCMQN.js";
|
|
60
|
+
import "./chunk-34F3PLWZ.js";
|
|
61
|
+
import {
|
|
62
|
+
clearAuthTokenSecretCache,
|
|
63
|
+
isAgentAccessSecretRef,
|
|
64
|
+
resolveAgentAccessAuthToken
|
|
65
|
+
} from "./chunk-MXC3AP5I.js";
|
|
66
|
+
import "./chunk-47WOM4YW.js";
|
|
46
67
|
import {
|
|
47
68
|
parseXrayBudgetFlag,
|
|
48
69
|
parseXrayCliOptions
|
|
49
|
-
} from "./chunk-
|
|
50
|
-
import
|
|
70
|
+
} from "./chunk-SMA4IMHV.js";
|
|
71
|
+
import {
|
|
72
|
+
parseStrictCliDate
|
|
73
|
+
} from "./chunk-AJA46VX5.js";
|
|
74
|
+
import "./chunk-7GCMLT7J.js";
|
|
51
75
|
import "./chunk-HL4DB7TO.js";
|
|
52
|
-
import "./chunk-ULYOGL6R.js";
|
|
53
76
|
import "./chunk-ZPKBYX2F.js";
|
|
54
77
|
import "./chunk-3SLRNYNG.js";
|
|
55
78
|
import "./chunk-LIRZNNUP.js";
|
|
56
79
|
import "./chunk-Y4Z4I6WK.js";
|
|
80
|
+
import "./chunk-5HRY2WRF.js";
|
|
57
81
|
import {
|
|
58
82
|
reportBufferSurpriseDistribution
|
|
59
83
|
} from "./chunk-ASAITVLA.js";
|
|
@@ -79,35 +103,37 @@ import {
|
|
|
79
103
|
getTaxonomyFilePath,
|
|
80
104
|
loadTaxonomy,
|
|
81
105
|
migrateFromEngram,
|
|
82
|
-
normalizeOriginUrl,
|
|
83
106
|
projectNamespaceName,
|
|
84
107
|
resolveCodingNamespaceOverlay,
|
|
85
|
-
resolveGitContext,
|
|
86
108
|
rollbackFromEngramMigration,
|
|
87
109
|
sanitizeSessionKeyForFilename,
|
|
88
110
|
saveTaxonomy,
|
|
89
|
-
stableHash,
|
|
90
111
|
validateSlug,
|
|
91
112
|
validateTaxonomy
|
|
92
|
-
} from "./chunk-
|
|
93
|
-
import "./chunk-
|
|
94
|
-
import "./chunk-
|
|
113
|
+
} from "./chunk-IM3JSE73.js";
|
|
114
|
+
import "./chunk-LVYGDT5V.js";
|
|
115
|
+
import "./chunk-CK5NTM2S.js";
|
|
95
116
|
import "./chunk-FSFEQI74.js";
|
|
96
|
-
import "./chunk-W6SL7OFG.js";
|
|
97
117
|
import "./chunk-Z5AAYHUC.js";
|
|
98
|
-
import
|
|
118
|
+
import {
|
|
119
|
+
computeTierValueScore,
|
|
120
|
+
decideTierTransition
|
|
121
|
+
} from "./chunk-S75M5ZRK.js";
|
|
99
122
|
import "./chunk-TPB3I2AC.js";
|
|
100
|
-
import "./chunk-
|
|
101
|
-
import "./chunk-
|
|
123
|
+
import "./chunk-UHGBNIOS.js";
|
|
124
|
+
import "./chunk-B2TL6GA2.js";
|
|
102
125
|
import "./chunk-ETOW6ACV.js";
|
|
126
|
+
import "./chunk-ZTSE2ZJ6.js";
|
|
127
|
+
import "./chunk-MDYG7VI7.js";
|
|
128
|
+
import "./chunk-JR4ZC3G4.js";
|
|
129
|
+
import "./chunk-5IZL4DCV.js";
|
|
130
|
+
import "./chunk-X7XN6YU4.js";
|
|
103
131
|
import "./chunk-5NPGSAVB.js";
|
|
104
132
|
import "./chunk-C7VW7C3F.js";
|
|
105
133
|
import "./chunk-K4FLSOR5.js";
|
|
106
134
|
import "./chunk-V3RXWQIE.js";
|
|
107
|
-
import "./chunk-
|
|
108
|
-
import "./chunk-
|
|
109
|
-
import "./chunk-KVBLZUKV.js";
|
|
110
|
-
import "./chunk-X7XN6YU4.js";
|
|
135
|
+
import "./chunk-7DHTMOND.js";
|
|
136
|
+
import "./chunk-WPGJYVUH.js";
|
|
111
137
|
import {
|
|
112
138
|
DEFAULT_REASONING_TRACE_BOOST,
|
|
113
139
|
applyReasoningTraceBoost,
|
|
@@ -115,10 +141,8 @@ import {
|
|
|
115
141
|
looksLikeProblemSolvingQuery
|
|
116
142
|
} from "./chunk-ZZTOURJI.js";
|
|
117
143
|
import "./chunk-YDBIWGNI.js";
|
|
118
|
-
import "./chunk-7DHTMOND.js";
|
|
119
144
|
import "./chunk-YCN4BVDK.js";
|
|
120
145
|
import "./chunk-D654IBA6.js";
|
|
121
|
-
import "./chunk-H63EDPFJ.js";
|
|
122
146
|
import {
|
|
123
147
|
applyMemoryWorthFilter,
|
|
124
148
|
buildMemoryWorthCounterMap
|
|
@@ -126,6 +150,13 @@ import {
|
|
|
126
150
|
import {
|
|
127
151
|
computeMemoryWorth
|
|
128
152
|
} from "./chunk-IISBCCWR.js";
|
|
153
|
+
import {
|
|
154
|
+
builtInLiveConnectorDefinitions,
|
|
155
|
+
hasEnabledLiveConnector,
|
|
156
|
+
runLiveConnectorsOnce
|
|
157
|
+
} from "./chunk-ASIQZXYO.js";
|
|
158
|
+
import "./chunk-H63EDPFJ.js";
|
|
159
|
+
import "./chunk-YAZNBMNF.js";
|
|
129
160
|
import {
|
|
130
161
|
hasBroadGraphIntent,
|
|
131
162
|
inferIntentFromText,
|
|
@@ -133,8 +164,6 @@ import {
|
|
|
133
164
|
isTaskInitiationIntent,
|
|
134
165
|
planRecallMode
|
|
135
166
|
} from "./chunk-GGD5W7TB.js";
|
|
136
|
-
import "./chunk-YAZNBMNF.js";
|
|
137
|
-
import "./chunk-AJU4PJGY.js";
|
|
138
167
|
import "./chunk-DF3RVK3X.js";
|
|
139
168
|
import {
|
|
140
169
|
clearVerdictCache,
|
|
@@ -148,12 +177,16 @@ import {
|
|
|
148
177
|
} from "./chunk-C4SQJZAF.js";
|
|
149
178
|
import {
|
|
150
179
|
ExtractionEngine
|
|
151
|
-
} from "./chunk-
|
|
152
|
-
import "./chunk-
|
|
180
|
+
} from "./chunk-N7X62G74.js";
|
|
181
|
+
import "./chunk-WW3QQF4H.js";
|
|
153
182
|
import "./chunk-54V4BZWP.js";
|
|
154
183
|
import "./chunk-NBNN5GOB.js";
|
|
155
184
|
import "./chunk-FEMOX5AD.js";
|
|
156
|
-
import "./chunk-
|
|
185
|
+
import "./chunk-R2XRID2N.js";
|
|
186
|
+
import {
|
|
187
|
+
buildExtensionsFooterForSummary,
|
|
188
|
+
loadDaySummaryPrompt
|
|
189
|
+
} from "./chunk-GZCUW5IC.js";
|
|
157
190
|
import "./chunk-VEWZZM3H.js";
|
|
158
191
|
import {
|
|
159
192
|
resolveCategory
|
|
@@ -162,57 +195,82 @@ import {
|
|
|
162
195
|
FILTER_LABELS,
|
|
163
196
|
isDirectAnswerEligible
|
|
164
197
|
} from "./chunk-Y4FHOFJ2.js";
|
|
165
|
-
import "./chunk-
|
|
198
|
+
import "./chunk-Z2E7VW55.js";
|
|
166
199
|
import {
|
|
167
200
|
buildEntityRecallSection
|
|
168
|
-
} from "./chunk-
|
|
169
|
-
import
|
|
170
|
-
|
|
171
|
-
loadDaySummaryPrompt
|
|
172
|
-
} from "./chunk-GZCUW5IC.js";
|
|
173
|
-
import {
|
|
174
|
-
expandTildePath
|
|
175
|
-
} from "./chunk-EPQJM2GC.js";
|
|
201
|
+
} from "./chunk-Y3WQ4ZWK.js";
|
|
202
|
+
import "./chunk-2NMMFZ5T.js";
|
|
203
|
+
import "./chunk-VTJVUHRK.js";
|
|
176
204
|
import "./chunk-PYXS46O7.js";
|
|
177
205
|
import "./chunk-3QKK7QOS.js";
|
|
178
|
-
import "./chunk-
|
|
206
|
+
import "./chunk-DHRQHX36.js";
|
|
179
207
|
import "./chunk-JRNQ3RNA.js";
|
|
180
|
-
import "./chunk-
|
|
208
|
+
import "./chunk-L5IIGA5V.js";
|
|
181
209
|
import "./chunk-CULXMQJH.js";
|
|
182
210
|
import "./chunk-E6K4NIEU.js";
|
|
211
|
+
import "./chunk-EABGC2TL.js";
|
|
212
|
+
import "./chunk-LOBRX7VD.js";
|
|
183
213
|
import {
|
|
184
214
|
LanceDbBackend,
|
|
185
215
|
MeilisearchBackend,
|
|
186
216
|
OramaBackend
|
|
187
|
-
} from "./chunk-
|
|
217
|
+
} from "./chunk-R2L7SUX2.js";
|
|
188
218
|
import "./chunk-YRMVARQP.js";
|
|
189
219
|
import {
|
|
190
220
|
QmdClient
|
|
191
|
-
} from "./chunk-
|
|
221
|
+
} from "./chunk-WSZIHQBK.js";
|
|
192
222
|
import {
|
|
193
223
|
LEGACY_PLUGIN_ID,
|
|
194
224
|
PLUGIN_ID,
|
|
195
225
|
resolveRemnicPluginEntry
|
|
196
226
|
} from "./chunk-U66YHYC7.js";
|
|
197
|
-
import
|
|
198
|
-
|
|
227
|
+
import {
|
|
228
|
+
DEFAULT_POLL_INTERVAL_MS,
|
|
229
|
+
GOOGLE_DRIVE_CONNECTOR_ID,
|
|
230
|
+
GOOGLE_DRIVE_CURSOR_KIND,
|
|
231
|
+
LiveConnectorRegistry,
|
|
232
|
+
LiveConnectorRegistryError,
|
|
233
|
+
NOTION_CONNECTOR_ID,
|
|
234
|
+
NOTION_CURSOR_KIND,
|
|
235
|
+
NOTION_DEFAULT_POLL_INTERVAL_MS,
|
|
236
|
+
createGoogleDriveConnector,
|
|
237
|
+
createNotionConnector,
|
|
238
|
+
defaultGoogleDriveClientFactory,
|
|
239
|
+
validateGoogleDriveConfig,
|
|
240
|
+
validateNotionConfig
|
|
241
|
+
} from "./chunk-L2IO2QPY.js";
|
|
242
|
+
import {
|
|
243
|
+
CONNECTOR_ID_PATTERN,
|
|
244
|
+
isValidConnectorId,
|
|
245
|
+
listConnectorStates,
|
|
246
|
+
readConnectorState,
|
|
247
|
+
writeConnectorState
|
|
248
|
+
} from "./chunk-6TBWYBJ3.js";
|
|
199
249
|
import "./chunk-HMDCOMYU.js";
|
|
200
250
|
import "./chunk-JXS5PDQ7.js";
|
|
201
|
-
import "./chunk-LK6SGL53.js";
|
|
202
|
-
import "./chunk-7SEAZFFB.js";
|
|
203
251
|
import "./chunk-K6WK37A6.js";
|
|
252
|
+
import "./chunk-AJU4PJGY.js";
|
|
253
|
+
import "./chunk-7SEAZFFB.js";
|
|
204
254
|
import {
|
|
205
255
|
coerceInstallExtension,
|
|
206
256
|
parseConfig
|
|
207
|
-
} from "./chunk-
|
|
257
|
+
} from "./chunk-JWSENLQI.js";
|
|
208
258
|
import "./chunk-Z5LAYHGJ.js";
|
|
259
|
+
import {
|
|
260
|
+
CONNECTORS_OUTPUT_FORMATS,
|
|
261
|
+
parseConnectorsFormat,
|
|
262
|
+
parseConnectorsListOptions,
|
|
263
|
+
parseConnectorsRunName,
|
|
264
|
+
parseConnectorsStatusOptions,
|
|
265
|
+
renderConnectorsList,
|
|
266
|
+
renderConnectorsRunResult,
|
|
267
|
+
runConnectorPollOnce
|
|
268
|
+
} from "./chunk-OZHRDTDX.js";
|
|
209
269
|
import "./chunk-C6QPK5GG.js";
|
|
210
|
-
import "./chunk-C2EFFULQ.js";
|
|
211
270
|
import {
|
|
212
271
|
CODEX_THREAD_KEY_PREFIX
|
|
213
272
|
} from "./chunk-3PG3H5TD.js";
|
|
214
273
|
import "./chunk-FYIYMQ5N.js";
|
|
215
|
-
import "./chunk-2NMMFZ5T.js";
|
|
216
274
|
import "./chunk-KVE7R4CG.js";
|
|
217
275
|
import "./chunk-4WMCPJWX.js";
|
|
218
276
|
import {
|
|
@@ -227,7 +285,7 @@ import {
|
|
|
227
285
|
materializeForNamespace,
|
|
228
286
|
runCodexMaterialize,
|
|
229
287
|
runPostConsolidationMaterialize
|
|
230
|
-
} from "./chunk-
|
|
288
|
+
} from "./chunk-55FXRRSJ.js";
|
|
231
289
|
import {
|
|
232
290
|
REMNIC_EXTENSIONS_TOTAL_TOKEN_LIMIT,
|
|
233
291
|
discoverMemoryExtensions,
|
|
@@ -237,8 +295,8 @@ import {
|
|
|
237
295
|
} from "./chunk-EJI5XIBB.js";
|
|
238
296
|
import {
|
|
239
297
|
FallbackLlmClient
|
|
240
|
-
} from "./chunk-
|
|
241
|
-
import "./chunk-
|
|
298
|
+
} from "./chunk-CRU27Q4J.js";
|
|
299
|
+
import "./chunk-Q7FJ5ZHM.js";
|
|
242
300
|
import "./chunk-ODWDQNRE.js";
|
|
243
301
|
import "./chunk-Y27UJK6V.js";
|
|
244
302
|
import "./chunk-UZB5KHKX.js";
|
|
@@ -253,23 +311,27 @@ import "./chunk-PVGDJXVK.js";
|
|
|
253
311
|
import "./chunk-NGAVDO7E.js";
|
|
254
312
|
import {
|
|
255
313
|
EngramAccessHttpServer
|
|
256
|
-
} from "./chunk-
|
|
314
|
+
} from "./chunk-AKUCB2OG.js";
|
|
257
315
|
import {
|
|
258
316
|
EngramMcpServer
|
|
259
|
-
} from "./chunk-
|
|
317
|
+
} from "./chunk-4PLGJRBV.js";
|
|
260
318
|
import {
|
|
261
319
|
buildCitationGuidance,
|
|
262
320
|
formatOaiMemCitation,
|
|
263
321
|
parseOaiMemCitation,
|
|
264
322
|
sanitizeNoteForCitation
|
|
265
323
|
} from "./chunk-IQT3XTKW.js";
|
|
266
|
-
import "./chunk-MARWOCVP.js";
|
|
267
324
|
import {
|
|
268
325
|
EngramAccessInputError,
|
|
269
326
|
EngramAccessService,
|
|
270
327
|
computeProcedureStats,
|
|
271
328
|
formatProcedureStatsText
|
|
272
|
-
} from "./chunk-
|
|
329
|
+
} from "./chunk-DR7MCMPS.js";
|
|
330
|
+
import {
|
|
331
|
+
importCapsule
|
|
332
|
+
} from "./chunk-3KIS4VGT.js";
|
|
333
|
+
import "./chunk-BT7NVCML.js";
|
|
334
|
+
import "./chunk-H7XKCNR6.js";
|
|
273
335
|
import {
|
|
274
336
|
RECALL_XRAY_FORMATS,
|
|
275
337
|
parseXrayFormat,
|
|
@@ -277,28 +339,45 @@ import {
|
|
|
277
339
|
renderXrayJson,
|
|
278
340
|
renderXrayMarkdown,
|
|
279
341
|
renderXrayText
|
|
280
|
-
} from "./chunk-
|
|
342
|
+
} from "./chunk-LW2NMHDW.js";
|
|
281
343
|
import "./chunk-SOBJ6NEY.js";
|
|
282
|
-
import
|
|
344
|
+
import {
|
|
345
|
+
normalizeOriginUrl,
|
|
346
|
+
resolveGitContext,
|
|
347
|
+
stableHash
|
|
348
|
+
} from "./chunk-NN3TS5BM.js";
|
|
283
349
|
import {
|
|
284
350
|
isTrustZoneName
|
|
285
351
|
} from "./chunk-EQINRHYR.js";
|
|
352
|
+
import "./chunk-USFPPRAF.js";
|
|
353
|
+
import "./chunk-LZRYQK6L.js";
|
|
286
354
|
import {
|
|
287
355
|
memoryWorthOutcomeEligibleCategories,
|
|
288
356
|
recordMemoryOutcome
|
|
289
357
|
} from "./chunk-EIR5VLIH.js";
|
|
358
|
+
import {
|
|
359
|
+
expandTildePath
|
|
360
|
+
} from "./chunk-IXEJRKCZ.js";
|
|
361
|
+
import "./chunk-PCUKNJAZ.js";
|
|
362
|
+
import "./chunk-3FPTCC3Z.js";
|
|
363
|
+
import "./chunk-2LGMW3DJ.js";
|
|
290
364
|
import "./chunk-EEQLFRUM.js";
|
|
365
|
+
import {
|
|
366
|
+
launchProcessSync
|
|
367
|
+
} from "./chunk-OR64ZGRZ.js";
|
|
291
368
|
import {
|
|
292
369
|
buildProcedureMarkdownBody,
|
|
293
370
|
parseProcedureStepsFromBody
|
|
294
371
|
} from "./chunk-QDW3E4RD.js";
|
|
295
|
-
import "./chunk-3FPTCC3Z.js";
|
|
296
|
-
import "./chunk-2LGMW3DJ.js";
|
|
297
372
|
import {
|
|
298
373
|
CrossNamespaceBudget,
|
|
299
374
|
DEFAULT_CROSS_NAMESPACE_BUDGET
|
|
300
375
|
} from "./chunk-GDFS42HT.js";
|
|
301
|
-
import "./chunk-
|
|
376
|
+
import "./chunk-RK2Y4XOM.js";
|
|
377
|
+
import "./chunk-2LSZVONP.js";
|
|
378
|
+
import "./chunk-WIICJPET.js";
|
|
379
|
+
import "./chunk-G2WADRQ3.js";
|
|
380
|
+
import "./chunk-74EMIVE4.js";
|
|
302
381
|
import "./chunk-DT5TVLJE.js";
|
|
303
382
|
import {
|
|
304
383
|
resolvePrincipal
|
|
@@ -316,11 +395,11 @@ import {
|
|
|
316
395
|
renderBriefingMarkdown,
|
|
317
396
|
resolveBriefingSaveDir,
|
|
318
397
|
validateBriefingFormat
|
|
319
|
-
} from "./chunk-
|
|
398
|
+
} from "./chunk-SS253RXF.js";
|
|
320
399
|
import {
|
|
321
400
|
StorageManager
|
|
322
|
-
} from "./chunk-
|
|
323
|
-
import "./chunk-
|
|
401
|
+
} from "./chunk-DCE6SQLA.js";
|
|
402
|
+
import "./chunk-YNJHCGDT.js";
|
|
324
403
|
import {
|
|
325
404
|
CITATION_UNKNOWN,
|
|
326
405
|
DEFAULT_CITATION_FORMAT,
|
|
@@ -332,15 +411,20 @@ import {
|
|
|
332
411
|
parseCitation,
|
|
333
412
|
stripCitation
|
|
334
413
|
} from "./chunk-4KAN3GZ3.js";
|
|
335
|
-
import
|
|
336
|
-
|
|
414
|
+
import {
|
|
415
|
+
DEFAULT_RECALL_DISCLOSURE,
|
|
416
|
+
RECALL_DISCLOSURE_LEVELS,
|
|
417
|
+
isRecallDisclosure
|
|
418
|
+
} from "./chunk-43EKP2UK.js";
|
|
419
|
+
import "./chunk-PFV5C235.js";
|
|
420
|
+
import "./chunk-RULE4VG5.js";
|
|
337
421
|
import "./chunk-SCU65EZI.js";
|
|
338
422
|
import "./chunk-BOUYNNYD.js";
|
|
339
423
|
import "./chunk-DM2T26WE.js";
|
|
340
424
|
import "./chunk-QSVPYQPG.js";
|
|
341
425
|
import "./chunk-M62O4P4T.js";
|
|
342
426
|
import "./chunk-4DJQYKMN.js";
|
|
343
|
-
import "./chunk-
|
|
427
|
+
import "./chunk-G7D6GZ5J.js";
|
|
344
428
|
import {
|
|
345
429
|
createVersion,
|
|
346
430
|
diffVersions,
|
|
@@ -348,6 +432,11 @@ import {
|
|
|
348
432
|
listVersions,
|
|
349
433
|
revertToVersion
|
|
350
434
|
} from "./chunk-FAAFWE4G.js";
|
|
435
|
+
import {
|
|
436
|
+
mergeEnv,
|
|
437
|
+
readEnvVar,
|
|
438
|
+
resolveHomeDir
|
|
439
|
+
} from "./chunk-MARWOCVP.js";
|
|
351
440
|
import {
|
|
352
441
|
initLogger,
|
|
353
442
|
log
|
|
@@ -371,7 +460,21 @@ import {
|
|
|
371
460
|
recallRequestSchema,
|
|
372
461
|
suggestionSubmitRequestSchema,
|
|
373
462
|
validateRequest
|
|
374
|
-
} from "./chunk-
|
|
463
|
+
} from "./chunk-RILIVK4O.js";
|
|
464
|
+
import "./chunk-IYY4MCPG.js";
|
|
465
|
+
import {
|
|
466
|
+
assertIsDirectoryNotSymlink,
|
|
467
|
+
assertRealpathInsideRoot
|
|
468
|
+
} from "./chunk-457A4P3L.js";
|
|
469
|
+
import {
|
|
470
|
+
CAPSULE_ID_PATTERN
|
|
471
|
+
} from "./chunk-OA3L7BFR.js";
|
|
472
|
+
import "./chunk-KNKUID7G.js";
|
|
473
|
+
import "./chunk-BJMBJZ2Y.js";
|
|
474
|
+
import "./chunk-UKJAGEXH.js";
|
|
475
|
+
import "./chunk-FP2373TW.js";
|
|
476
|
+
import "./chunk-A6XUJE5D.js";
|
|
477
|
+
import "./chunk-PZ5AY32C.js";
|
|
375
478
|
|
|
376
479
|
// src/coding/review-context.ts
|
|
377
480
|
var REVIEW_KEYWORD_PATTERNS = [
|
|
@@ -2435,7 +2538,6 @@ function hashContent3(content) {
|
|
|
2435
2538
|
import fs8 from "fs";
|
|
2436
2539
|
import path13 from "path";
|
|
2437
2540
|
import os from "os";
|
|
2438
|
-
import { spawnSync } from "child_process";
|
|
2439
2541
|
import { createRequire } from "module";
|
|
2440
2542
|
import { fileURLToPath } from "url";
|
|
2441
2543
|
|
|
@@ -2984,7 +3086,8 @@ var BUILTIN_CONNECTORS = [
|
|
|
2984
3086
|
];
|
|
2985
3087
|
var REGISTRY_DIR_NAME = ".engram-connectors";
|
|
2986
3088
|
function getRegistryPath() {
|
|
2987
|
-
const
|
|
3089
|
+
const xdgConfigHome = readEnvVar("XDG_CONFIG_HOME");
|
|
3090
|
+
const configDir = xdgConfigHome ? path13.join(xdgConfigHome, "engram") : path13.join(resolveHomeDir(), ".config", "engram");
|
|
2988
3091
|
return path13.join(configDir, REGISTRY_DIR_NAME, "registry.json");
|
|
2989
3092
|
}
|
|
2990
3093
|
function loadRegistry() {
|
|
@@ -3723,7 +3826,7 @@ function sanitizeHermesProfile(profile) {
|
|
|
3723
3826
|
}
|
|
3724
3827
|
function hermesConfigPath(profile) {
|
|
3725
3828
|
const safeProfile = sanitizeHermesProfile(profile);
|
|
3726
|
-
const profilesRoot = path13.resolve(
|
|
3829
|
+
const profilesRoot = path13.resolve(resolveHomeDir(), ".hermes", "profiles");
|
|
3727
3830
|
const cfgPath = path13.resolve(profilesRoot, safeProfile, "config.yaml");
|
|
3728
3831
|
const rel = path13.relative(profilesRoot, cfgPath);
|
|
3729
3832
|
if (rel.startsWith("..") || path13.isAbsolute(rel)) {
|
|
@@ -3921,13 +4024,14 @@ function checkDaemonHealth(host, port, authToken) {
|
|
|
3921
4024
|
const bareHost = host.startsWith("[") && host.endsWith("]") ? host.slice(1, -1) : host;
|
|
3922
4025
|
const script = [
|
|
3923
4026
|
"const http = require('http');",
|
|
4027
|
+
"const env = process['env'];",
|
|
3924
4028
|
"const headers = {};",
|
|
3925
|
-
"if (
|
|
3926
|
-
" headers['authorization'] = 'Bearer ' +
|
|
4029
|
+
"if (env.REMNIC_HEALTH_TOKEN) {",
|
|
4030
|
+
" headers['authorization'] = 'Bearer ' + env.REMNIC_HEALTH_TOKEN;",
|
|
3927
4031
|
"}",
|
|
3928
4032
|
"const req = http.get({",
|
|
3929
|
-
" host:
|
|
3930
|
-
" port: parseInt(
|
|
4033
|
+
" host: env.REMNIC_HEALTH_HOST,",
|
|
4034
|
+
" port: parseInt(env.REMNIC_HEALTH_PORT, 10),",
|
|
3931
4035
|
" path: '/engram/v1/health',",
|
|
3932
4036
|
" headers,",
|
|
3933
4037
|
" timeout: 3000,",
|
|
@@ -3935,16 +4039,16 @@ function checkDaemonHealth(host, port, authToken) {
|
|
|
3935
4039
|
"req.on('error', () => process.exit(1));",
|
|
3936
4040
|
"req.on('timeout', () => { req.destroy(); process.exit(1); });"
|
|
3937
4041
|
].join("\n");
|
|
3938
|
-
const env = {
|
|
3939
|
-
...process.env,
|
|
4042
|
+
const env = mergeEnv({
|
|
3940
4043
|
REMNIC_HEALTH_HOST: bareHost,
|
|
3941
4044
|
REMNIC_HEALTH_PORT: String(safePort)
|
|
3942
|
-
};
|
|
4045
|
+
});
|
|
3943
4046
|
if (authToken) {
|
|
3944
4047
|
env.REMNIC_HEALTH_TOKEN = authToken;
|
|
3945
4048
|
}
|
|
3946
|
-
const
|
|
3947
|
-
const
|
|
4049
|
+
const processPath = process.execPath;
|
|
4050
|
+
const launchOptions = { timeout: 4e3, env };
|
|
4051
|
+
const result = launchProcessSync(processPath, ["-e", script], launchOptions);
|
|
3948
4052
|
if (result.status === HEALTH_EXIT_OK) {
|
|
3949
4053
|
return true;
|
|
3950
4054
|
}
|
|
@@ -3952,11 +4056,11 @@ function checkDaemonHealth(host, port, authToken) {
|
|
|
3952
4056
|
console.error(
|
|
3953
4057
|
"[remnic/connectors] health probe got 401 \u2014 retrying after token cache TTL..."
|
|
3954
4058
|
);
|
|
3955
|
-
|
|
4059
|
+
launchProcessSync(processPath, ["-e", "setTimeout(() => {}, 6000)"], {
|
|
3956
4060
|
timeout: 7e3,
|
|
3957
4061
|
env: {}
|
|
3958
4062
|
});
|
|
3959
|
-
const retry =
|
|
4063
|
+
const retry = launchProcessSync(processPath, ["-e", script], launchOptions);
|
|
3960
4064
|
return retry.status === HEALTH_EXIT_OK;
|
|
3961
4065
|
}
|
|
3962
4066
|
return false;
|
|
@@ -4022,11 +4126,11 @@ function resolveCodexHome(override) {
|
|
|
4022
4126
|
if (override && typeof override === "string" && override.trim().length > 0) {
|
|
4023
4127
|
return path13.resolve(override.trim());
|
|
4024
4128
|
}
|
|
4025
|
-
const envHome =
|
|
4129
|
+
const envHome = readEnvVar("CODEX_HOME");
|
|
4026
4130
|
if (envHome && envHome.trim().length > 0) {
|
|
4027
4131
|
return path13.resolve(envHome.trim());
|
|
4028
4132
|
}
|
|
4029
|
-
const home =
|
|
4133
|
+
const home = readEnvVar("HOME") || readEnvVar("USERPROFILE") || resolveHomeDir();
|
|
4030
4134
|
return path13.resolve(home, ".codex");
|
|
4031
4135
|
}
|
|
4032
4136
|
function resolveCodexMemoryExtensionPaths(codexHomeOverride) {
|
|
@@ -4240,17 +4344,18 @@ function removeCodexMemoryExtension(options = {}) {
|
|
|
4240
4344
|
return { ...paths, removed };
|
|
4241
4345
|
}
|
|
4242
4346
|
function getConnectorsDir() {
|
|
4243
|
-
const
|
|
4347
|
+
const xdgConfigHome = readEnvVar("XDG_CONFIG_HOME");
|
|
4348
|
+
const configDir = xdgConfigHome ? path13.join(xdgConfigHome, "engram") : path13.join(resolveHomeDir(), ".config", "engram");
|
|
4244
4349
|
return path13.join(configDir, REGISTRY_DIR_NAME, "connectors");
|
|
4245
4350
|
}
|
|
4246
4351
|
var WECLONE_PROXY_CONFIG_DIRNAME = ".remnic";
|
|
4247
4352
|
var WECLONE_PROXY_CONFIG_FILENAME = "weclone.json";
|
|
4248
4353
|
function resolveWeCloneProxyConfigPath() {
|
|
4249
|
-
const override =
|
|
4354
|
+
const override = readEnvVar("REMNIC_HOME") ?? readEnvVar("ENGRAM_HOME");
|
|
4250
4355
|
if (override && override.length > 0) {
|
|
4251
4356
|
return path13.resolve(override, "connectors", WECLONE_PROXY_CONFIG_FILENAME);
|
|
4252
4357
|
}
|
|
4253
|
-
const envHome =
|
|
4358
|
+
const envHome = readEnvVar("HOME");
|
|
4254
4359
|
const home = envHome && envHome.length > 0 ? envHome : os.homedir();
|
|
4255
4360
|
return path13.resolve(
|
|
4256
4361
|
home,
|
|
@@ -4387,7 +4492,7 @@ import path14 from "path";
|
|
|
4387
4492
|
import crypto6 from "crypto";
|
|
4388
4493
|
var MANIFEST_VERSION = 1;
|
|
4389
4494
|
function getSpacesDir(baseDir) {
|
|
4390
|
-
const homeDir = baseDir ??
|
|
4495
|
+
const homeDir = baseDir ?? resolveHomeDir();
|
|
4391
4496
|
return path14.join(homeDir, ".config", "engram", "spaces");
|
|
4392
4497
|
}
|
|
4393
4498
|
function getManifestPath(baseDir) {
|
|
@@ -4414,10 +4519,10 @@ function saveManifest(manifest, baseDir) {
|
|
|
4414
4519
|
fs9.writeFileSync(manifestPath2, JSON.stringify(manifest, null, 2) + "\n");
|
|
4415
4520
|
}
|
|
4416
4521
|
function createPersonalSpace(baseDir, memoryDirOverride) {
|
|
4417
|
-
const homeDir = baseDir ??
|
|
4522
|
+
const homeDir = baseDir ?? resolveHomeDir();
|
|
4418
4523
|
const standalonePath = path14.join(homeDir, ".engram", "memory");
|
|
4419
4524
|
const openclawPath = path14.join(homeDir, ".openclaw", "workspace", "memory", "local");
|
|
4420
|
-
const memoryDir = memoryDirOverride ??
|
|
4525
|
+
const memoryDir = memoryDirOverride ?? readEnvVar("ENGRAM_MEMORY_DIR") ?? (fs9.existsSync(standalonePath) ? standalonePath : fs9.existsSync(openclawPath) ? openclawPath : standalonePath);
|
|
4421
4526
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
4422
4527
|
return {
|
|
4423
4528
|
id: "personal",
|
|
@@ -4427,7 +4532,7 @@ function createPersonalSpace(baseDir, memoryDirOverride) {
|
|
|
4427
4532
|
memoryDir,
|
|
4428
4533
|
createdAt: now,
|
|
4429
4534
|
updatedAt: now,
|
|
4430
|
-
owner:
|
|
4535
|
+
owner: readEnvVar("USER")
|
|
4431
4536
|
};
|
|
4432
4537
|
}
|
|
4433
4538
|
function listSpaces(baseDir) {
|
|
@@ -4463,7 +4568,7 @@ function createSpace(options) {
|
|
|
4463
4568
|
memoryDir,
|
|
4464
4569
|
createdAt: now,
|
|
4465
4570
|
updatedAt: now,
|
|
4466
|
-
owner:
|
|
4571
|
+
owner: readEnvVar("USER"),
|
|
4467
4572
|
parentSpaceId: options.parentSpaceId
|
|
4468
4573
|
};
|
|
4469
4574
|
fs9.mkdirSync(memoryDir, { recursive: true });
|
|
@@ -4847,13 +4952,12 @@ var CodexMemoryExtensionPublisher = class {
|
|
|
4847
4952
|
readPathTemplate: true
|
|
4848
4953
|
};
|
|
4849
4954
|
async resolveExtensionRoot(env) {
|
|
4850
|
-
const
|
|
4851
|
-
const codexHome = e.CODEX_HOME?.trim() || path15.join(e.HOME ?? os2.homedir(), ".codex");
|
|
4955
|
+
const codexHome = env === void 0 ? readEnvVar("CODEX_HOME")?.trim() || path15.join(resolveHomeDir(), ".codex") : env.CODEX_HOME?.trim() || path15.join(env.HOME ?? env.USERPROFILE ?? os2.homedir(), ".codex");
|
|
4852
4956
|
return path15.join(codexHome, "memories_extensions", REMNIC_EXTENSION_DIR_NAME2);
|
|
4853
4957
|
}
|
|
4854
4958
|
async isHostAvailable() {
|
|
4855
4959
|
try {
|
|
4856
|
-
const home =
|
|
4960
|
+
const home = readEnvVar("CODEX_HOME")?.trim() || path15.join(resolveHomeDir(), ".codex");
|
|
4857
4961
|
return fs10.existsSync(home);
|
|
4858
4962
|
} catch {
|
|
4859
4963
|
return false;
|
|
@@ -5396,12 +5500,128 @@ async function defaultWriteMemoriesToOrchestrator(target, memories) {
|
|
|
5396
5500
|
await target.ingestBulkImportBatch(turns);
|
|
5397
5501
|
return { memoriesIngested: memories.length };
|
|
5398
5502
|
}
|
|
5503
|
+
|
|
5504
|
+
// src/transfer/capsule-fork.ts
|
|
5505
|
+
import { lstat, mkdir as mkdir2, readFile as readFile2, realpath, writeFile } from "fs/promises";
|
|
5506
|
+
import path17 from "path";
|
|
5507
|
+
async function forkCapsule(opts) {
|
|
5508
|
+
validateForkId(opts.forkId);
|
|
5509
|
+
const rootAbs = path17.resolve(opts.targetRoot);
|
|
5510
|
+
await assertIsDirectoryNotSymlink(rootAbs, "forkCapsule", "targetRoot");
|
|
5511
|
+
const forkDirAbs = path17.join(rootAbs, "forks", opts.forkId);
|
|
5512
|
+
const forkEntryExists = await pathEntryExists(forkDirAbs);
|
|
5513
|
+
if (forkEntryExists) {
|
|
5514
|
+
throw new Error(
|
|
5515
|
+
`forkCapsule: fork path already exists \u2014 forkId "${opts.forkId}" is already in use at: ${forkDirAbs}`
|
|
5516
|
+
);
|
|
5517
|
+
}
|
|
5518
|
+
const archiveAbs = path17.resolve(opts.sourceArchive);
|
|
5519
|
+
const importResult = await importCapsule({
|
|
5520
|
+
archivePath: archiveAbs,
|
|
5521
|
+
root: rootAbs,
|
|
5522
|
+
mode: "fork",
|
|
5523
|
+
now: opts.now
|
|
5524
|
+
});
|
|
5525
|
+
const manifest = importResult.manifest;
|
|
5526
|
+
const sourceCapsule = manifest.capsule;
|
|
5527
|
+
const forkedAt = new Date(opts.now ?? Date.now()).toISOString();
|
|
5528
|
+
const parent = {
|
|
5529
|
+
capsuleId: sourceCapsule.id,
|
|
5530
|
+
version: sourceCapsule.version,
|
|
5531
|
+
forkRoot: `forks/${sourceCapsule.id}`
|
|
5532
|
+
};
|
|
5533
|
+
const lineage = {
|
|
5534
|
+
forkId: opts.forkId,
|
|
5535
|
+
forkedAt,
|
|
5536
|
+
parent,
|
|
5537
|
+
importedRecords: importResult.imported.length,
|
|
5538
|
+
skippedRecords: importResult.skipped.length
|
|
5539
|
+
};
|
|
5540
|
+
const lineagePath = path17.join(forkDirAbs, "lineage.json");
|
|
5541
|
+
const rootReal = await realpath(rootAbs);
|
|
5542
|
+
await assertRealpathInsideRoot(rootReal, lineagePath, `forks/${opts.forkId}/lineage.json`, "forkCapsule");
|
|
5543
|
+
await mkdir2(path17.dirname(lineagePath), { recursive: true });
|
|
5544
|
+
await writeFile(lineagePath, JSON.stringify(lineage, null, 2) + "\n", "utf-8");
|
|
5545
|
+
return {
|
|
5546
|
+
archivePath: archiveAbs,
|
|
5547
|
+
manifest,
|
|
5548
|
+
importResult,
|
|
5549
|
+
lineage,
|
|
5550
|
+
lineagePath
|
|
5551
|
+
};
|
|
5552
|
+
}
|
|
5553
|
+
async function readForkLineage(targetRoot, forkId) {
|
|
5554
|
+
if (typeof forkId !== "string" || forkId.length === 0 || forkId.length > 64 || !CAPSULE_ID_PATTERN.test(forkId)) {
|
|
5555
|
+
return null;
|
|
5556
|
+
}
|
|
5557
|
+
const rootAbs = path17.resolve(targetRoot);
|
|
5558
|
+
const rootReal = await realpath(rootAbs).catch(() => rootAbs);
|
|
5559
|
+
const lineagePath = path17.join(rootReal, "forks", forkId, "lineage.json");
|
|
5560
|
+
const rel = path17.relative(rootReal, lineagePath);
|
|
5561
|
+
if (rel.startsWith("..") || path17.isAbsolute(rel)) {
|
|
5562
|
+
return null;
|
|
5563
|
+
}
|
|
5564
|
+
if (!await isLineagePathContained(rootReal, lineagePath)) {
|
|
5565
|
+
return null;
|
|
5566
|
+
}
|
|
5567
|
+
const raw = await readFile2(lineagePath, "utf-8").catch(() => null);
|
|
5568
|
+
if (raw === null) return null;
|
|
5569
|
+
try {
|
|
5570
|
+
const parsed = JSON.parse(raw);
|
|
5571
|
+
if (typeof parsed !== "object" || parsed === null || typeof parsed.forkId !== "string") {
|
|
5572
|
+
return null;
|
|
5573
|
+
}
|
|
5574
|
+
return parsed;
|
|
5575
|
+
} catch {
|
|
5576
|
+
return null;
|
|
5577
|
+
}
|
|
5578
|
+
}
|
|
5579
|
+
function validateForkId(forkId) {
|
|
5580
|
+
if (typeof forkId !== "string") {
|
|
5581
|
+
throw new Error("forkCapsule: forkId must be a string");
|
|
5582
|
+
}
|
|
5583
|
+
if (forkId.length === 0) {
|
|
5584
|
+
throw new Error("forkCapsule: forkId must not be empty");
|
|
5585
|
+
}
|
|
5586
|
+
if (forkId.length > 64) {
|
|
5587
|
+
throw new Error("forkCapsule: forkId must be 64 characters or fewer");
|
|
5588
|
+
}
|
|
5589
|
+
if (!CAPSULE_ID_PATTERN.test(forkId)) {
|
|
5590
|
+
throw new Error(
|
|
5591
|
+
`forkCapsule: invalid forkId "${forkId}". Expected alphanumeric with single dashes (no leading/trailing dashes, no consecutive dashes).`
|
|
5592
|
+
);
|
|
5593
|
+
}
|
|
5594
|
+
}
|
|
5595
|
+
async function pathEntryExists(absPath) {
|
|
5596
|
+
const st = await lstat(absPath).catch(() => null);
|
|
5597
|
+
return st !== null;
|
|
5598
|
+
}
|
|
5599
|
+
async function isLineagePathContained(rootReal, lineagePath) {
|
|
5600
|
+
let existing = lineagePath;
|
|
5601
|
+
const suffix = [];
|
|
5602
|
+
while (existing !== path17.dirname(existing)) {
|
|
5603
|
+
const st = await lstat(existing).catch(() => null);
|
|
5604
|
+
if (st !== null) break;
|
|
5605
|
+
suffix.unshift(path17.basename(existing));
|
|
5606
|
+
existing = path17.dirname(existing);
|
|
5607
|
+
}
|
|
5608
|
+
const existingReal = await realpath(existing).catch(() => existing);
|
|
5609
|
+
const targetReal = suffix.length > 0 ? path17.join(existingReal, ...suffix) : existingReal;
|
|
5610
|
+
const rel = path17.relative(rootReal, targetReal);
|
|
5611
|
+
if (rel === "") return true;
|
|
5612
|
+
if (rel === "..") return false;
|
|
5613
|
+
if (rel.startsWith(`..${path17.sep}`)) return false;
|
|
5614
|
+
if (path17.isAbsolute(rel)) return false;
|
|
5615
|
+
return true;
|
|
5616
|
+
}
|
|
5399
5617
|
export {
|
|
5400
5618
|
AccessAuditAdapter,
|
|
5401
5619
|
BRIEFING_FORMAT_ALLOWED,
|
|
5402
5620
|
BootstrapEngine,
|
|
5403
5621
|
CITATION_UNKNOWN,
|
|
5404
5622
|
CODEX_THREAD_KEY_PREFIX,
|
|
5623
|
+
CONNECTORS_OUTPUT_FORMATS,
|
|
5624
|
+
CONNECTOR_ID_PATTERN,
|
|
5405
5625
|
ClaudeCodeMemoryExtensionPublisher,
|
|
5406
5626
|
CodexMemoryExtensionPublisher,
|
|
5407
5627
|
CrossNamespaceBudget,
|
|
@@ -5415,6 +5635,7 @@ export {
|
|
|
5415
5635
|
DEFAULT_PPR_ITERATIONS,
|
|
5416
5636
|
DEFAULT_PPR_TOLERANCE,
|
|
5417
5637
|
DEFAULT_REASONING_TRACE_BOOST,
|
|
5638
|
+
DEFAULT_RECALL_DISCLOSURE,
|
|
5418
5639
|
DEFAULT_SCAN_PATTERNS,
|
|
5419
5640
|
DEFAULT_SURPRISE_K,
|
|
5420
5641
|
DEFAULT_TAXONOMY,
|
|
@@ -5428,19 +5649,31 @@ export {
|
|
|
5428
5649
|
FallbackLlmClient,
|
|
5429
5650
|
FileCalendarSource,
|
|
5430
5651
|
FilesystemBackend,
|
|
5652
|
+
GOOGLE_DRIVE_CONNECTOR_ID,
|
|
5653
|
+
GOOGLE_DRIVE_CURSOR_KIND,
|
|
5654
|
+
DEFAULT_POLL_INTERVAL_MS as GOOGLE_DRIVE_DEFAULT_POLL_INTERVAL_MS,
|
|
5431
5655
|
HermesMemoryExtensionPublisher,
|
|
5432
5656
|
LEGACY_PLUGIN_ID,
|
|
5433
5657
|
LanceDbBackend,
|
|
5658
|
+
LiveConnectorRegistry,
|
|
5659
|
+
LiveConnectorRegistryError,
|
|
5434
5660
|
MARKETPLACE_MANIFEST_FILENAME,
|
|
5435
5661
|
MARKETPLACE_SCHEMA_VERSION,
|
|
5436
5662
|
MATERIALIZE_VERSION,
|
|
5437
5663
|
MeilisearchBackend,
|
|
5664
|
+
NOTION_CONNECTOR_ID,
|
|
5665
|
+
NOTION_CURSOR_KIND,
|
|
5666
|
+
NOTION_DEFAULT_POLL_INTERVAL_MS,
|
|
5438
5667
|
NoneBackend,
|
|
5439
5668
|
OramaBackend,
|
|
5440
5669
|
Orchestrator,
|
|
5670
|
+
PEERS_DIR_NAME,
|
|
5671
|
+
PEER_ID_MAX_LENGTH,
|
|
5672
|
+
PEER_ID_PATTERN,
|
|
5441
5673
|
PLUGIN_ID,
|
|
5442
5674
|
PUBLISHERS,
|
|
5443
5675
|
QmdClient,
|
|
5676
|
+
RECALL_DISCLOSURE_LEVELS,
|
|
5444
5677
|
RECALL_XRAY_FORMATS,
|
|
5445
5678
|
REMNIC_CITATION_FORMAT,
|
|
5446
5679
|
REMNIC_EXTENSIONS_TOTAL_TOKEN_LIMIT,
|
|
@@ -5452,21 +5685,26 @@ export {
|
|
|
5452
5685
|
StorageManager,
|
|
5453
5686
|
WebSearchProvider,
|
|
5454
5687
|
appendAuditEntry,
|
|
5688
|
+
appendInteractionLog,
|
|
5455
5689
|
applyMemoryWorthFilter,
|
|
5456
5690
|
applyReasoningTraceBoost,
|
|
5691
|
+
assertValidPeerId,
|
|
5457
5692
|
attachCitation,
|
|
5458
5693
|
branchNamespaceName,
|
|
5459
5694
|
briefingFilename,
|
|
5460
5695
|
buildBriefing,
|
|
5461
5696
|
buildCitationGuidance,
|
|
5462
5697
|
buildEntityRecallSection,
|
|
5698
|
+
buildEvidencePack,
|
|
5463
5699
|
buildExtensionsBlockForConsolidation,
|
|
5464
5700
|
buildExtensionsFooterForSummary,
|
|
5465
5701
|
buildGraphFromMemories,
|
|
5466
5702
|
buildMemoryWorthCounterMap,
|
|
5467
5703
|
buildProcedureMarkdownBody,
|
|
5468
5704
|
buildProcedureRecallSection,
|
|
5705
|
+
builtInLiveConnectorDefinitions,
|
|
5469
5706
|
checkMarketplaceManifest,
|
|
5707
|
+
clearAuthTokenSecretCache,
|
|
5470
5708
|
clearBulkImportSources,
|
|
5471
5709
|
clearTrainingExportAdapters,
|
|
5472
5710
|
clearVerdictCache,
|
|
@@ -5474,14 +5712,19 @@ export {
|
|
|
5474
5712
|
computeMemoryWorth,
|
|
5475
5713
|
computeProcedureStats,
|
|
5476
5714
|
computeSurprise,
|
|
5715
|
+
computeTierValueScore,
|
|
5477
5716
|
convertMemoriesToRecords,
|
|
5478
5717
|
createBackend,
|
|
5718
|
+
createGoogleDriveConnector,
|
|
5719
|
+
createNotionConnector,
|
|
5479
5720
|
createSpace,
|
|
5480
5721
|
createVerdictCache,
|
|
5481
5722
|
createVersion,
|
|
5482
5723
|
curate,
|
|
5483
5724
|
decideSemanticDedup,
|
|
5725
|
+
decideTierTransition,
|
|
5484
5726
|
defaultEnrichmentPipelineConfig,
|
|
5727
|
+
defaultGoogleDriveClientFactory,
|
|
5485
5728
|
defaultWorkspaceDir,
|
|
5486
5729
|
defaultWriteMemoriesToOrchestrator,
|
|
5487
5730
|
deleteSpace,
|
|
@@ -5500,6 +5743,7 @@ export {
|
|
|
5500
5743
|
findDuplicates,
|
|
5501
5744
|
focusMatchesEntity,
|
|
5502
5745
|
focusMatchesMemory,
|
|
5746
|
+
forkCapsule,
|
|
5503
5747
|
formatBatchTranscript,
|
|
5504
5748
|
formatCitation,
|
|
5505
5749
|
formatOaiMemCitation,
|
|
@@ -5524,6 +5768,7 @@ export {
|
|
|
5524
5768
|
getVersion,
|
|
5525
5769
|
hasBroadGraphIntent,
|
|
5526
5770
|
hasCitation,
|
|
5771
|
+
hasEnabledLiveConnector,
|
|
5527
5772
|
hostIdForConnector,
|
|
5528
5773
|
importedMemoryToTurn,
|
|
5529
5774
|
inferIntentFromText,
|
|
@@ -5531,19 +5776,24 @@ export {
|
|
|
5531
5776
|
installConnector,
|
|
5532
5777
|
installFromMarketplace,
|
|
5533
5778
|
intentCompatibilityScore,
|
|
5779
|
+
isAgentAccessSecretRef,
|
|
5534
5780
|
isDirectAnswerEligible,
|
|
5535
5781
|
isDurableVerdict,
|
|
5536
5782
|
isEdgeType,
|
|
5537
5783
|
isImportRole,
|
|
5538
5784
|
isNodeType,
|
|
5539
5785
|
isReasoningTracePath,
|
|
5786
|
+
isRecallDisclosure,
|
|
5540
5787
|
isReviewPrompt,
|
|
5541
5788
|
isTaskInitiationIntent,
|
|
5542
5789
|
isTrustZoneName,
|
|
5543
5790
|
isValidCachedVerdict,
|
|
5791
|
+
isValidConnectorId,
|
|
5544
5792
|
judgeFactDurability,
|
|
5545
5793
|
listBulkImportSources,
|
|
5794
|
+
listConnectorStates,
|
|
5546
5795
|
listConnectors,
|
|
5796
|
+
listPeers,
|
|
5547
5797
|
listReviewItems,
|
|
5548
5798
|
listSpaces,
|
|
5549
5799
|
listTokens,
|
|
@@ -5575,6 +5825,10 @@ export {
|
|
|
5575
5825
|
parseBriefingWindow,
|
|
5576
5826
|
parseCitation,
|
|
5577
5827
|
parseConfig,
|
|
5828
|
+
parseConnectorsFormat,
|
|
5829
|
+
parseConnectorsListOptions,
|
|
5830
|
+
parseConnectorsRunName,
|
|
5831
|
+
parseConnectorsStatusOptions,
|
|
5578
5832
|
parseIsoTimestamp,
|
|
5579
5833
|
parseOaiMemCitation,
|
|
5580
5834
|
parseProcedureStepsFromBody,
|
|
@@ -5594,7 +5848,12 @@ export {
|
|
|
5594
5848
|
queryGraph,
|
|
5595
5849
|
rankReviewCandidates,
|
|
5596
5850
|
readAuditLog,
|
|
5851
|
+
readConnectorState,
|
|
5852
|
+
readForkLineage,
|
|
5853
|
+
readInteractionLogRaw,
|
|
5597
5854
|
readManifest,
|
|
5855
|
+
readPeer,
|
|
5856
|
+
readPeerProfile,
|
|
5598
5857
|
recallForActiveMemory,
|
|
5599
5858
|
recallRequestSchema,
|
|
5600
5859
|
recordMemoryOutcome,
|
|
@@ -5603,6 +5862,8 @@ export {
|
|
|
5603
5862
|
registerTrainingExportAdapter,
|
|
5604
5863
|
removeConnector,
|
|
5605
5864
|
renderBriefingMarkdown,
|
|
5865
|
+
renderConnectorsList,
|
|
5866
|
+
renderConnectorsRunResult,
|
|
5606
5867
|
renderExtensionsBlock,
|
|
5607
5868
|
renderExtensionsFooter,
|
|
5608
5869
|
renderXray,
|
|
@@ -5610,6 +5871,7 @@ export {
|
|
|
5610
5871
|
renderXrayMarkdown,
|
|
5611
5872
|
renderXrayText,
|
|
5612
5873
|
reportBufferSurpriseDistribution,
|
|
5874
|
+
resolveAgentAccessAuthToken,
|
|
5613
5875
|
resolveBriefingSaveDir,
|
|
5614
5876
|
resolveCategory,
|
|
5615
5877
|
resolveCodingNamespaceOverlay,
|
|
@@ -5625,9 +5887,11 @@ export {
|
|
|
5625
5887
|
runBulkImportCliCommand,
|
|
5626
5888
|
runBulkImportPipeline,
|
|
5627
5889
|
runCodexMaterialize,
|
|
5890
|
+
runConnectorPollOnce,
|
|
5628
5891
|
runEnrichmentPipeline,
|
|
5629
5892
|
runGraphRecall,
|
|
5630
5893
|
runImporter,
|
|
5894
|
+
runLiveConnectorsOnce,
|
|
5631
5895
|
runPostConsolidationMaterialize,
|
|
5632
5896
|
sanitizeNoteForCitation,
|
|
5633
5897
|
sanitizeSessionKeyForFilename,
|
|
@@ -5643,16 +5907,21 @@ export {
|
|
|
5643
5907
|
switchSpace,
|
|
5644
5908
|
syncChanges,
|
|
5645
5909
|
validateBriefingFormat,
|
|
5910
|
+
validateGoogleDriveConfig,
|
|
5646
5911
|
validateImportBatchSize,
|
|
5647
5912
|
validateImportRateLimit,
|
|
5648
5913
|
validateImportTurn,
|
|
5649
5914
|
validateMarketplaceManifest,
|
|
5915
|
+
validateNotionConfig,
|
|
5650
5916
|
validateRequest,
|
|
5651
5917
|
validateSlug,
|
|
5652
5918
|
validateTaxonomy,
|
|
5653
5919
|
verdictCacheSize,
|
|
5654
5920
|
watchForChanges,
|
|
5921
|
+
writeConnectorState,
|
|
5655
5922
|
writeManifest,
|
|
5656
|
-
writeMarketplaceManifest
|
|
5923
|
+
writeMarketplaceManifest,
|
|
5924
|
+
writePeer,
|
|
5925
|
+
writePeerProfile
|
|
5657
5926
|
};
|
|
5658
5927
|
//# sourceMappingURL=index.js.map
|