@remnic/core 1.1.2 → 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 +70 -45
- package/dist/access-cli.js.map +1 -1
- package/dist/access-http.d.ts +50 -5
- package/dist/access-http.js +37 -15
- package/dist/access-idempotency.js +1 -0
- package/dist/access-mcp.d.ts +10 -5
- package/dist/access-mcp.js +36 -13
- 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 +38 -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 +9 -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 +11 -8
- 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-TMYO7B5P.js → chunk-47WOM4YW.js} +2 -2
- package/dist/{chunk-OC5OXUQ4.js → chunk-4PLGJRBV.js} +653 -17
- package/dist/chunk-4PLGJRBV.js.map +1 -0
- package/dist/{chunk-PVICZTKG.js → chunk-55FXRRSJ.js} +5 -5
- package/dist/{chunk-PVICZTKG.js.map → chunk-55FXRRSJ.js.map} +1 -1
- 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-6YJHX2DL.js → chunk-7GCMLT7J.js} +242 -22
- 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-UWB5LMWY.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-DG6YMRDC.js → chunk-B2TL6GA2.js} +2 -2
- 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-AYXIPSZO.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-STGWEHYR.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-3YGHKTBF.js → chunk-IM3JSE73.js} +953 -322
- 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-BECYBZLX.js → chunk-JWSENLQI.js} +502 -22
- 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-XXVWLXSG.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-DIXB44VE.js → chunk-N7X62G74.js} +25 -10
- 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-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-Y7R2XJ5Q.js → chunk-Q7FJ5ZHM.js} +6 -2
- package/dist/chunk-Q7FJ5ZHM.js.map +1 -0
- package/dist/{chunk-NBVAS5MT.js → chunk-R2L7SUX2.js} +6 -6
- 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-L7IXWRYE.js → chunk-SS253RXF.js} +22 -13
- 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-GA5P7RST.js → chunk-VTJVUHRK.js} +22 -36
- package/dist/chunk-VTJVUHRK.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-4HQS2HPX.js → chunk-WSZIHQBK.js} +29 -9
- package/dist/{chunk-4HQS2HPX.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-LOIMBRDE.js → chunk-ZGXSCMQN.js} +1993 -411
- 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 +67 -33
- 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 +4 -1
- 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 +1 -0
- package/dist/{engine-72LSIWQP.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 +7 -6
- 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 +329 -67
- 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 +1 -0
- 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 +28 -16
- 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 +55 -39
- 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 +9 -1
- package/dist/resolve-provider-secret.js +4 -1
- package/dist/resume-bundles.js +4 -3
- 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 +37 -24
- 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 +11 -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 +5 -4
- 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 +1 -0
- 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-3YGHKTBF.js.map +0 -1
- package/dist/chunk-6PFRXT4K.js.map +0 -1
- package/dist/chunk-6YJHX2DL.js.map +0 -1
- package/dist/chunk-BECYBZLX.js.map +0 -1
- package/dist/chunk-C2EFFULQ.js.map +0 -1
- package/dist/chunk-CUPFXL3J.js.map +0 -1
- package/dist/chunk-DIXB44VE.js.map +0 -1
- package/dist/chunk-F5VP6YCB.js.map +0 -1
- package/dist/chunk-FVA6TGI3.js.map +0 -1
- package/dist/chunk-GA5P7RST.js.map +0 -1
- package/dist/chunk-KVBLZUKV.js.map +0 -1
- package/dist/chunk-L7IXWRYE.js.map +0 -1
- package/dist/chunk-LOIMBRDE.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-OC5OXUQ4.js.map +0 -1
- package/dist/chunk-PVPWZSSI.js.map +0 -1
- package/dist/chunk-SPI27QT6.js.map +0 -1
- package/dist/chunk-STGWEHYR.js.map +0 -1
- package/dist/chunk-TP4FZJIZ.js.map +0 -1
- package/dist/chunk-ULYOGL6R.js.map +0 -1
- package/dist/chunk-UWB5LMWY.js.map +0 -1
- package/dist/chunk-VBVG2M5G.js.map +0 -1
- package/dist/chunk-VDX363PS.js.map +0 -1
- package/dist/chunk-WCLICCGB.js.map +0 -1
- package/dist/chunk-X6GF3FX2.js +0 -26
- package/dist/chunk-X6GF3FX2.js.map +0 -1
- package/dist/chunk-XXVWLXSG.js.map +0 -1
- package/dist/chunk-Y7R2XJ5Q.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-72LSIWQP.js.map → capsule-crypto-5CYAGVC5.js.map} +0 -0
- /package/dist/{chunk-TMYO7B5P.js.map → chunk-47WOM4YW.js.map} +0 -0
- /package/dist/{chunk-DG6YMRDC.js.map → chunk-B2TL6GA2.js.map} +0 -0
- /package/dist/{chunk-AYXIPSZO.js.map → chunk-CRU27Q4J.js.map} +0 -0
- /package/dist/{chunk-RBBWYEFJ.js.map → chunk-G2WADRQ3.js.map} +0 -0
- /package/dist/{chunk-NBVAS5MT.js.map → chunk-R2L7SUX2.js.map} +0 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { SecretRef, AgentAccessAuthToken } from './types.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Resolve `agentAccessHttp.authToken` (issue #757).
|
|
5
|
+
*
|
|
6
|
+
* Two shapes are accepted:
|
|
7
|
+
*
|
|
8
|
+
* 1. Plain string — returned unchanged. This is the only shape supported
|
|
9
|
+
* in standalone Remnic; it preserves backward compatibility with every
|
|
10
|
+
* pre-#757 config.
|
|
11
|
+
*
|
|
12
|
+
* 2. SecretRef-like object (`{source, provider?, id?, command?, ...}`) —
|
|
13
|
+
* resolved only through a resolver supplied by the host adapter. Core
|
|
14
|
+
* stays host-agnostic and never scans OpenClaw, Hermes, or any other
|
|
15
|
+
* runtime directly.
|
|
16
|
+
*
|
|
17
|
+
* Resolution flow for SecretRef objects:
|
|
18
|
+
*
|
|
19
|
+
* - Plain strings short-circuit before any host work.
|
|
20
|
+
* - Host adapters pass their native SecretRef resolver in `options`.
|
|
21
|
+
* - If no resolver is provided, throw a clear, actionable error rather
|
|
22
|
+
* than silently leaving the bridge open or starting with no auth.
|
|
23
|
+
*
|
|
24
|
+
* Lessons baked in from PRs #316–#319:
|
|
25
|
+
*
|
|
26
|
+
* - Successful resolutions are cached for the process lifetime; failures
|
|
27
|
+
* are not cached so transient issues (Keychain unlocked late, agent
|
|
28
|
+
* restarts) recover automatically.
|
|
29
|
+
*/
|
|
30
|
+
type ResolveSecretRefFn = (ref: SecretRef, context?: unknown) => Promise<string | undefined> | string | undefined;
|
|
31
|
+
type ResolveAgentAccessAuthTokenOptions = {
|
|
32
|
+
resolveSecretRef?: ResolveSecretRefFn | null;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Resolve an `agentAccessHttp.authToken` value to a literal bearer string.
|
|
36
|
+
*
|
|
37
|
+
* @returns the resolved string, or `undefined` if input was undefined/empty.
|
|
38
|
+
* @throws if the input is a SecretRef and no resolver is provided, if the
|
|
39
|
+
* resolver returns no value, or if the input shape is malformed.
|
|
40
|
+
*/
|
|
41
|
+
declare function resolveAgentAccessAuthToken(value: AgentAccessAuthToken | undefined, options?: ResolveAgentAccessAuthTokenOptions): Promise<string | undefined>;
|
|
42
|
+
/**
|
|
43
|
+
* Returns true if the value is a SecretRef object (issue #757). Useful for
|
|
44
|
+
* surfaces (CLI flags, doctor checks) that want to render a redacted
|
|
45
|
+
* placeholder instead of leaking the unresolved object shape.
|
|
46
|
+
*/
|
|
47
|
+
declare function isAgentAccessSecretRef(value: unknown): value is SecretRef;
|
|
48
|
+
/** Test/operations hook: drop the cache and force resolver rediscovery. */
|
|
49
|
+
declare function clearAuthTokenSecretCache(): void;
|
|
50
|
+
|
|
51
|
+
export { type ResolveSecretRefFn, clearAuthTokenSecretCache, isAgentAccessSecretRef, resolveAgentAccessAuthToken };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
clearAuthTokenSecretCache,
|
|
3
|
+
isAgentAccessSecretRef,
|
|
4
|
+
resolveAgentAccessAuthToken
|
|
5
|
+
} from "./chunk-MXC3AP5I.js";
|
|
6
|
+
import "./chunk-PZ5AY32C.js";
|
|
7
|
+
export {
|
|
8
|
+
clearAuthTokenSecretCache,
|
|
9
|
+
isAgentAccessSecretRef,
|
|
10
|
+
resolveAgentAccessAuthToken
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=resolve-auth-token.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -40,6 +40,14 @@ type GetRuntimeAuthForModelFn = (params: {
|
|
|
40
40
|
mode?: string;
|
|
41
41
|
profileId?: string;
|
|
42
42
|
} | null>;
|
|
43
|
+
/**
|
|
44
|
+
* Discover gateway runtime module files matching the given filename prefix.
|
|
45
|
+
*
|
|
46
|
+
* Reused by adjacent SecretRef resolution code (`resolve-auth-token.ts`,
|
|
47
|
+
* issue #757). Walks the same dist-dir candidates as the model-auth path
|
|
48
|
+
* so callers don't reimplement install-method discovery.
|
|
49
|
+
*/
|
|
50
|
+
declare function findGatewayRuntimeModules(filePrefix: string): Promise<string[]>;
|
|
43
51
|
declare function findExecutableOnPath(executableName: string, access: (path: string, mode?: number) => void, stat: (path: string) => {
|
|
44
52
|
isFile(): boolean;
|
|
45
53
|
}, executableMode: number): string | undefined;
|
|
@@ -68,4 +76,4 @@ declare function getGatewayRuntimeAuthForModel(): Promise<GetRuntimeAuthForModel
|
|
|
68
76
|
declare function clearSecretCache(): void;
|
|
69
77
|
declare function __setGatewayResolverForTest(resolver: ResolveApiKeyFn | null): void;
|
|
70
78
|
|
|
71
|
-
export { type GetRuntimeAuthForModelFn, __findExecutableOnPathForTest, __setGatewayResolverForTest, clearSecretCache, getGatewayRuntimeAuthForModel, resolveProviderApiKey };
|
|
79
|
+
export { type GetRuntimeAuthForModelFn, __findExecutableOnPathForTest, __setGatewayResolverForTest, clearSecretCache, findGatewayRuntimeModules, getGatewayRuntimeAuthForModel, resolveProviderApiKey };
|
|
@@ -2,15 +2,18 @@ import {
|
|
|
2
2
|
__findExecutableOnPathForTest,
|
|
3
3
|
__setGatewayResolverForTest,
|
|
4
4
|
clearSecretCache,
|
|
5
|
+
findGatewayRuntimeModules,
|
|
5
6
|
getGatewayRuntimeAuthForModel,
|
|
6
7
|
resolveProviderApiKey
|
|
7
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-Q7FJ5ZHM.js";
|
|
8
9
|
import "./chunk-MARWOCVP.js";
|
|
9
10
|
import "./chunk-2ODBA7MQ.js";
|
|
11
|
+
import "./chunk-PZ5AY32C.js";
|
|
10
12
|
export {
|
|
11
13
|
__findExecutableOnPathForTest,
|
|
12
14
|
__setGatewayResolverForTest,
|
|
13
15
|
clearSecretCache,
|
|
16
|
+
findGatewayRuntimeModules,
|
|
14
17
|
getGatewayRuntimeAuthForModel,
|
|
15
18
|
resolveProviderApiKey
|
|
16
19
|
};
|
package/dist/resume-bundles.js
CHANGED
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
recordResumeBundle,
|
|
5
5
|
resolveResumeBundleDir,
|
|
6
6
|
validateResumeBundle
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-47WOM4YW.js";
|
|
8
8
|
import "./chunk-CULXMQJH.js";
|
|
9
9
|
import "./chunk-E6K4NIEU.js";
|
|
10
|
-
import "./chunk-YRMVARQP.js";
|
|
11
10
|
import "./chunk-LOBRX7VD.js";
|
|
12
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-YRMVARQP.js";
|
|
12
|
+
import "./chunk-JWSENLQI.js";
|
|
13
13
|
import "./chunk-Z5LAYHGJ.js";
|
|
14
14
|
import "./chunk-FYIYMQ5N.js";
|
|
15
15
|
import "./chunk-DT5TVLJE.js";
|
|
@@ -18,6 +18,7 @@ import "./chunk-MARWOCVP.js";
|
|
|
18
18
|
import "./chunk-2ODBA7MQ.js";
|
|
19
19
|
import "./chunk-DGXUHMOV.js";
|
|
20
20
|
import "./chunk-LPSF4OQH.js";
|
|
21
|
+
import "./chunk-PZ5AY32C.js";
|
|
21
22
|
export {
|
|
22
23
|
buildResumeBundleFromState,
|
|
23
24
|
getResumeBundleStatus,
|
package/dist/retrieval-agents.js
CHANGED
package/dist/retrieval-tiers.js
CHANGED
package/dist/retrieval.js
CHANGED
package/dist/sanitize.js
CHANGED
package/dist/schemas.d.ts
CHANGED
|
@@ -7,12 +7,12 @@ declare const MemoryActionEligibilityContextSchema: z.ZodObject<{
|
|
|
7
7
|
importance: z.ZodNumber;
|
|
8
8
|
source: z.ZodEnum<["extraction", "consolidation", "replay", "manual", "unknown"]>;
|
|
9
9
|
}, "strict", z.ZodTypeAny, {
|
|
10
|
-
source: "
|
|
10
|
+
source: "manual" | "extraction" | "consolidation" | "replay" | "unknown";
|
|
11
11
|
confidence: number;
|
|
12
12
|
lifecycleState: "active" | "archived" | "candidate" | "validated" | "stale";
|
|
13
13
|
importance: number;
|
|
14
14
|
}, {
|
|
15
|
-
source: "
|
|
15
|
+
source: "manual" | "extraction" | "consolidation" | "replay" | "unknown";
|
|
16
16
|
confidence: number;
|
|
17
17
|
lifecycleState: "active" | "archived" | "candidate" | "validated" | "stale";
|
|
18
18
|
importance: number;
|
|
@@ -60,6 +60,7 @@ declare const ExtractedFactSchema: z.ZodObject<{
|
|
|
60
60
|
tags: z.ZodArray<z.ZodString, "many">;
|
|
61
61
|
entityRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
62
62
|
promptedByQuestion: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
63
|
+
scope: z.ZodNullable<z.ZodOptional<z.ZodEnum<["project", "global"]>>>;
|
|
63
64
|
structuredAttributes: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
64
65
|
procedureSteps: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
65
66
|
order: z.ZodNumber;
|
|
@@ -155,6 +156,7 @@ declare const ExtractedFactSchema: z.ZodObject<{
|
|
|
155
156
|
entityRef?: string | null | undefined;
|
|
156
157
|
structuredAttributes?: Record<string, string> | null | undefined;
|
|
157
158
|
promptedByQuestion?: string | null | undefined;
|
|
159
|
+
scope?: "project" | "global" | null | undefined;
|
|
158
160
|
procedureSteps?: {
|
|
159
161
|
order: number;
|
|
160
162
|
intent: string;
|
|
@@ -183,6 +185,7 @@ declare const ExtractedFactSchema: z.ZodObject<{
|
|
|
183
185
|
entityRef?: string | null | undefined;
|
|
184
186
|
structuredAttributes?: Record<string, string> | null | undefined;
|
|
185
187
|
promptedByQuestion?: string | null | undefined;
|
|
188
|
+
scope?: "project" | "global" | null | undefined;
|
|
186
189
|
procedureSteps?: {
|
|
187
190
|
order: number;
|
|
188
191
|
intent: string;
|
|
@@ -214,12 +217,12 @@ declare const EntityMentionSchema: z.ZodObject<{
|
|
|
214
217
|
title: z.ZodString;
|
|
215
218
|
facts: z.ZodArray<z.ZodString, "many">;
|
|
216
219
|
}, "strip", z.ZodTypeAny, {
|
|
217
|
-
title: string;
|
|
218
220
|
key: string;
|
|
221
|
+
title: string;
|
|
219
222
|
facts: string[];
|
|
220
223
|
}, {
|
|
221
|
-
title: string;
|
|
222
224
|
key: string;
|
|
225
|
+
title: string;
|
|
223
226
|
facts: string[];
|
|
224
227
|
}>, "many">>>;
|
|
225
228
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -227,8 +230,8 @@ declare const EntityMentionSchema: z.ZodObject<{
|
|
|
227
230
|
name: string;
|
|
228
231
|
type: "project" | "person" | "tool" | "company" | "place" | "other";
|
|
229
232
|
structuredSections?: {
|
|
230
|
-
title: string;
|
|
231
233
|
key: string;
|
|
234
|
+
title: string;
|
|
232
235
|
facts: string[];
|
|
233
236
|
}[] | null | undefined;
|
|
234
237
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -237,8 +240,8 @@ declare const EntityMentionSchema: z.ZodObject<{
|
|
|
237
240
|
name: string;
|
|
238
241
|
type: "project" | "person" | "tool" | "company" | "place" | "other";
|
|
239
242
|
structuredSections?: {
|
|
240
|
-
title: string;
|
|
241
243
|
key: string;
|
|
244
|
+
title: string;
|
|
242
245
|
facts: string[];
|
|
243
246
|
}[] | null | undefined;
|
|
244
247
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -307,6 +310,7 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
|
|
|
307
310
|
tags: z.ZodArray<z.ZodString, "many">;
|
|
308
311
|
entityRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
309
312
|
promptedByQuestion: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
313
|
+
scope: z.ZodNullable<z.ZodOptional<z.ZodEnum<["project", "global"]>>>;
|
|
310
314
|
structuredAttributes: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
311
315
|
procedureSteps: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
312
316
|
order: z.ZodNumber;
|
|
@@ -402,6 +406,7 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
|
|
|
402
406
|
entityRef?: string | null | undefined;
|
|
403
407
|
structuredAttributes?: Record<string, string> | null | undefined;
|
|
404
408
|
promptedByQuestion?: string | null | undefined;
|
|
409
|
+
scope?: "project" | "global" | null | undefined;
|
|
405
410
|
procedureSteps?: {
|
|
406
411
|
order: number;
|
|
407
412
|
intent: string;
|
|
@@ -430,6 +435,7 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
|
|
|
430
435
|
entityRef?: string | null | undefined;
|
|
431
436
|
structuredAttributes?: Record<string, string> | null | undefined;
|
|
432
437
|
promptedByQuestion?: string | null | undefined;
|
|
438
|
+
scope?: "project" | "global" | null | undefined;
|
|
433
439
|
procedureSteps?: {
|
|
434
440
|
order: number;
|
|
435
441
|
intent: string;
|
|
@@ -462,12 +468,12 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
|
|
|
462
468
|
title: z.ZodString;
|
|
463
469
|
facts: z.ZodArray<z.ZodString, "many">;
|
|
464
470
|
}, "strip", z.ZodTypeAny, {
|
|
465
|
-
title: string;
|
|
466
471
|
key: string;
|
|
472
|
+
title: string;
|
|
467
473
|
facts: string[];
|
|
468
474
|
}, {
|
|
469
|
-
title: string;
|
|
470
475
|
key: string;
|
|
476
|
+
title: string;
|
|
471
477
|
facts: string[];
|
|
472
478
|
}>, "many">>>;
|
|
473
479
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -475,8 +481,8 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
|
|
|
475
481
|
name: string;
|
|
476
482
|
type: "project" | "person" | "tool" | "company" | "place" | "other";
|
|
477
483
|
structuredSections?: {
|
|
478
|
-
title: string;
|
|
479
484
|
key: string;
|
|
485
|
+
title: string;
|
|
480
486
|
facts: string[];
|
|
481
487
|
}[] | null | undefined;
|
|
482
488
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -485,8 +491,8 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
|
|
|
485
491
|
name: string;
|
|
486
492
|
type: "project" | "person" | "tool" | "company" | "place" | "other";
|
|
487
493
|
structuredSections?: {
|
|
488
|
-
title: string;
|
|
489
494
|
key: string;
|
|
495
|
+
title: string;
|
|
490
496
|
facts: string[];
|
|
491
497
|
}[] | null | undefined;
|
|
492
498
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -516,6 +522,7 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
|
|
|
516
522
|
entityRef?: string | null | undefined;
|
|
517
523
|
structuredAttributes?: Record<string, string> | null | undefined;
|
|
518
524
|
promptedByQuestion?: string | null | undefined;
|
|
525
|
+
scope?: "project" | "global" | null | undefined;
|
|
519
526
|
procedureSteps?: {
|
|
520
527
|
order: number;
|
|
521
528
|
intent: string;
|
|
@@ -542,8 +549,8 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
|
|
|
542
549
|
name: string;
|
|
543
550
|
type: "project" | "person" | "tool" | "company" | "place" | "other";
|
|
544
551
|
structuredSections?: {
|
|
545
|
-
title: string;
|
|
546
552
|
key: string;
|
|
553
|
+
title: string;
|
|
547
554
|
facts: string[];
|
|
548
555
|
}[] | null | undefined;
|
|
549
556
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -564,6 +571,7 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
|
|
|
564
571
|
entityRef?: string | null | undefined;
|
|
565
572
|
structuredAttributes?: Record<string, string> | null | undefined;
|
|
566
573
|
promptedByQuestion?: string | null | undefined;
|
|
574
|
+
scope?: "project" | "global" | null | undefined;
|
|
567
575
|
procedureSteps?: {
|
|
568
576
|
order: number;
|
|
569
577
|
intent: string;
|
|
@@ -590,8 +598,8 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
|
|
|
590
598
|
name: string;
|
|
591
599
|
type: "project" | "person" | "tool" | "company" | "place" | "other";
|
|
592
600
|
structuredSections?: {
|
|
593
|
-
title: string;
|
|
594
601
|
key: string;
|
|
602
|
+
title: string;
|
|
595
603
|
facts: string[];
|
|
596
604
|
}[] | null | undefined;
|
|
597
605
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -612,6 +620,7 @@ declare const ExtractionResultSchema: z.ZodObject<{
|
|
|
612
620
|
tags: z.ZodArray<z.ZodString, "many">;
|
|
613
621
|
entityRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
614
622
|
promptedByQuestion: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
623
|
+
scope: z.ZodNullable<z.ZodOptional<z.ZodEnum<["project", "global"]>>>;
|
|
615
624
|
structuredAttributes: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
616
625
|
procedureSteps: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
617
626
|
order: z.ZodNumber;
|
|
@@ -707,6 +716,7 @@ declare const ExtractionResultSchema: z.ZodObject<{
|
|
|
707
716
|
entityRef?: string | null | undefined;
|
|
708
717
|
structuredAttributes?: Record<string, string> | null | undefined;
|
|
709
718
|
promptedByQuestion?: string | null | undefined;
|
|
719
|
+
scope?: "project" | "global" | null | undefined;
|
|
710
720
|
procedureSteps?: {
|
|
711
721
|
order: number;
|
|
712
722
|
intent: string;
|
|
@@ -735,6 +745,7 @@ declare const ExtractionResultSchema: z.ZodObject<{
|
|
|
735
745
|
entityRef?: string | null | undefined;
|
|
736
746
|
structuredAttributes?: Record<string, string> | null | undefined;
|
|
737
747
|
promptedByQuestion?: string | null | undefined;
|
|
748
|
+
scope?: "project" | "global" | null | undefined;
|
|
738
749
|
procedureSteps?: {
|
|
739
750
|
order: number;
|
|
740
751
|
intent: string;
|
|
@@ -767,12 +778,12 @@ declare const ExtractionResultSchema: z.ZodObject<{
|
|
|
767
778
|
title: z.ZodString;
|
|
768
779
|
facts: z.ZodArray<z.ZodString, "many">;
|
|
769
780
|
}, "strip", z.ZodTypeAny, {
|
|
770
|
-
title: string;
|
|
771
781
|
key: string;
|
|
782
|
+
title: string;
|
|
772
783
|
facts: string[];
|
|
773
784
|
}, {
|
|
774
|
-
title: string;
|
|
775
785
|
key: string;
|
|
786
|
+
title: string;
|
|
776
787
|
facts: string[];
|
|
777
788
|
}>, "many">>>;
|
|
778
789
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -780,8 +791,8 @@ declare const ExtractionResultSchema: z.ZodObject<{
|
|
|
780
791
|
name: string;
|
|
781
792
|
type: "project" | "person" | "tool" | "company" | "place" | "other";
|
|
782
793
|
structuredSections?: {
|
|
783
|
-
title: string;
|
|
784
794
|
key: string;
|
|
795
|
+
title: string;
|
|
785
796
|
facts: string[];
|
|
786
797
|
}[] | null | undefined;
|
|
787
798
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -790,8 +801,8 @@ declare const ExtractionResultSchema: z.ZodObject<{
|
|
|
790
801
|
name: string;
|
|
791
802
|
type: "project" | "person" | "tool" | "company" | "place" | "other";
|
|
792
803
|
structuredSections?: {
|
|
793
|
-
title: string;
|
|
794
804
|
key: string;
|
|
805
|
+
title: string;
|
|
795
806
|
facts: string[];
|
|
796
807
|
}[] | null | undefined;
|
|
797
808
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -835,6 +846,7 @@ declare const ExtractionResultSchema: z.ZodObject<{
|
|
|
835
846
|
entityRef?: string | null | undefined;
|
|
836
847
|
structuredAttributes?: Record<string, string> | null | undefined;
|
|
837
848
|
promptedByQuestion?: string | null | undefined;
|
|
849
|
+
scope?: "project" | "global" | null | undefined;
|
|
838
850
|
procedureSteps?: {
|
|
839
851
|
order: number;
|
|
840
852
|
intent: string;
|
|
@@ -861,8 +873,8 @@ declare const ExtractionResultSchema: z.ZodObject<{
|
|
|
861
873
|
name: string;
|
|
862
874
|
type: "project" | "person" | "tool" | "company" | "place" | "other";
|
|
863
875
|
structuredSections?: {
|
|
864
|
-
title: string;
|
|
865
876
|
key: string;
|
|
877
|
+
title: string;
|
|
866
878
|
facts: string[];
|
|
867
879
|
}[] | null | undefined;
|
|
868
880
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -889,6 +901,7 @@ declare const ExtractionResultSchema: z.ZodObject<{
|
|
|
889
901
|
entityRef?: string | null | undefined;
|
|
890
902
|
structuredAttributes?: Record<string, string> | null | undefined;
|
|
891
903
|
promptedByQuestion?: string | null | undefined;
|
|
904
|
+
scope?: "project" | "global" | null | undefined;
|
|
892
905
|
procedureSteps?: {
|
|
893
906
|
order: number;
|
|
894
907
|
intent: string;
|
|
@@ -915,8 +928,8 @@ declare const ExtractionResultSchema: z.ZodObject<{
|
|
|
915
928
|
name: string;
|
|
916
929
|
type: "project" | "person" | "tool" | "company" | "place" | "other";
|
|
917
930
|
structuredSections?: {
|
|
918
|
-
title: string;
|
|
919
931
|
key: string;
|
|
932
|
+
title: string;
|
|
920
933
|
facts: string[];
|
|
921
934
|
}[] | null | undefined;
|
|
922
935
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -985,12 +998,12 @@ declare const ConsolidationResultSchema: z.ZodObject<{
|
|
|
985
998
|
title: z.ZodString;
|
|
986
999
|
facts: z.ZodArray<z.ZodString, "many">;
|
|
987
1000
|
}, "strip", z.ZodTypeAny, {
|
|
988
|
-
title: string;
|
|
989
1001
|
key: string;
|
|
1002
|
+
title: string;
|
|
990
1003
|
facts: string[];
|
|
991
1004
|
}, {
|
|
992
|
-
title: string;
|
|
993
1005
|
key: string;
|
|
1006
|
+
title: string;
|
|
994
1007
|
facts: string[];
|
|
995
1008
|
}>, "many">>>;
|
|
996
1009
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -998,8 +1011,8 @@ declare const ConsolidationResultSchema: z.ZodObject<{
|
|
|
998
1011
|
name: string;
|
|
999
1012
|
type: "project" | "person" | "tool" | "company" | "place" | "other";
|
|
1000
1013
|
structuredSections?: {
|
|
1001
|
-
title: string;
|
|
1002
1014
|
key: string;
|
|
1015
|
+
title: string;
|
|
1003
1016
|
facts: string[];
|
|
1004
1017
|
}[] | null | undefined;
|
|
1005
1018
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -1008,8 +1021,8 @@ declare const ConsolidationResultSchema: z.ZodObject<{
|
|
|
1008
1021
|
name: string;
|
|
1009
1022
|
type: "project" | "person" | "tool" | "company" | "place" | "other";
|
|
1010
1023
|
structuredSections?: {
|
|
1011
|
-
title: string;
|
|
1012
1024
|
key: string;
|
|
1025
|
+
title: string;
|
|
1013
1026
|
facts: string[];
|
|
1014
1027
|
}[] | null | undefined;
|
|
1015
1028
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -1028,8 +1041,8 @@ declare const ConsolidationResultSchema: z.ZodObject<{
|
|
|
1028
1041
|
name: string;
|
|
1029
1042
|
type: "project" | "person" | "tool" | "company" | "place" | "other";
|
|
1030
1043
|
structuredSections?: {
|
|
1031
|
-
title: string;
|
|
1032
1044
|
key: string;
|
|
1045
|
+
title: string;
|
|
1033
1046
|
facts: string[];
|
|
1034
1047
|
}[] | null | undefined;
|
|
1035
1048
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -1048,8 +1061,8 @@ declare const ConsolidationResultSchema: z.ZodObject<{
|
|
|
1048
1061
|
name: string;
|
|
1049
1062
|
type: "project" | "person" | "tool" | "company" | "place" | "other";
|
|
1050
1063
|
structuredSections?: {
|
|
1051
|
-
title: string;
|
|
1052
1064
|
key: string;
|
|
1065
|
+
title: string;
|
|
1053
1066
|
facts: string[];
|
|
1054
1067
|
}[] | null | undefined;
|
|
1055
1068
|
promptedByQuestion?: string | null | undefined;
|
package/dist/schemas.js
CHANGED
|
@@ -23,7 +23,8 @@ import {
|
|
|
23
23
|
buildProfileConsolidationResultSchema,
|
|
24
24
|
parseMemoryActionEligibilityContext,
|
|
25
25
|
parseMemoryActionType
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-WW3QQF4H.js";
|
|
27
|
+
import "./chunk-PZ5AY32C.js";
|
|
27
28
|
export {
|
|
28
29
|
BehaviorLoopAdjustmentSchema,
|
|
29
30
|
BehaviorLoopPolicyStateSchema,
|
package/dist/sdk-compat.js
CHANGED
package/dist/sdk-compat.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/sdk-compat.ts"],"sourcesContent":["/**\n * Runtime SDK capability detection.\n *\n * Probes the injected api object at registration time to determine which\n * OpenClaw SDK features are available. All hook registrations and entry-point\n * patterns branch on these flags so engram works on both old (≤2026.3.13)\n * and new (≥2026.3.22) runtimes.\n */\nimport { readEnvVar } from \"./runtime/env.js\";\n\nexport interface SdkCapabilities {\n /** api.on(\"before_prompt_build\", ...) is available */\n hasBeforePromptBuild: boolean;\n /** api.registerMemoryPromptSection() exists */\n hasRegisterMemoryPromptSection: boolean;\n /** api.registerMemoryCapability() exists (new SDK >=2026.4.5) */\n hasRegisterMemoryCapability: boolean;\n /** definePluginEntry from openclaw/plugin-sdk/plugin-entry is importable */\n hasDefinePluginEntry: boolean;\n /** api.runtime.* namespace exists */\n hasRuntimeNamespace: boolean;\n /** api.registrationMode is present */\n hasRegistrationMode: boolean;\n /** Hooks receive typed event/context objects */\n hasTypedHooks: boolean;\n /** Detected SDK version string, or \"legacy\" */\n sdkVersion: string;\n /** api.registrationMode value when present */\n registrationMode: \"full\" | \"setup-only\" | \"setup-runtime\" | undefined;\n}\n\nexport function detectSdkCapabilities(api: Record<string, unknown>): SdkCapabilities {\n const hasRegisterMemoryPromptSection =\n typeof (api as any).registerMemoryPromptSection === \"function\";\n const hasRegisterMemoryCapability =\n typeof (api as any).registerMemoryCapability === \"function\";\n const hasRuntimeNamespace =\n typeof (api as any).runtime === \"object\" && (api as any).runtime !== null;\n const hasRegistrationMode = typeof (api as any).registrationMode === \"string\";\n\n const runtimeVersion =\n hasRuntimeNamespace && typeof (api as any).runtime?.version === \"string\"\n ? (api as any).runtime.version\n : null;\n const isNewSdk =\n hasRegisterMemoryPromptSection || hasRegisterMemoryCapability || hasRuntimeNamespace || hasRegistrationMode;\n const sdkVersion: string =\n runtimeVersion ??\n (isNewSdk ? readEnvVar(\"OPENCLAW_SERVICE_VERSION\") : null) ??\n \"legacy\";\n\n // New SDK is indicated by any of the new API surfaces being present.\n // New hook system requires one of the authoritative new-SDK signals:\n // - registerMemoryPromptSection (pre-capability new SDKs, ≥2026.3.22)\n // - registerMemoryCapability (capability-based SDKs, ≥2026.4.5; the\n // deprecated registerMemoryPromptSection may be absent)\n // - registrationMode (explicit registration lifecycle signal)\n // Just having runtime.version is NOT sufficient — some legacy builds\n // expose it. Omitting registerMemoryCapability here would cause the\n // legacy before_agent_start hook to be registered on new SDKs that only\n // expose registerMemoryCapability, silently breaking memory injection.\n const hasNewHookSystem =\n hasRegisterMemoryPromptSection || hasRegisterMemoryCapability || hasRegistrationMode;\n\n return {\n hasBeforePromptBuild: hasNewHookSystem,\n hasRegisterMemoryPromptSection,\n hasRegisterMemoryCapability,\n hasDefinePluginEntry: isNewSdk, // entry point is less risky, keep broad detection\n hasRuntimeNamespace,\n hasRegistrationMode,\n hasTypedHooks: hasNewHookSystem,\n sdkVersion,\n registrationMode: hasRegistrationMode\n ? ((api as any).registrationMode as SdkCapabilities[\"registrationMode\"])\n : undefined,\n };\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/sdk-compat.ts"],"sourcesContent":["/**\n * Runtime SDK capability detection.\n *\n * Probes the injected api object at registration time to determine which\n * OpenClaw SDK features are available. All hook registrations and entry-point\n * patterns branch on these flags so engram works on both old (≤2026.3.13)\n * and new (≥2026.3.22) runtimes.\n */\nimport { readEnvVar } from \"./runtime/env.js\";\n\nexport interface SdkCapabilities {\n /** api.on(\"before_prompt_build\", ...) is available */\n hasBeforePromptBuild: boolean;\n /** api.registerMemoryPromptSection() exists */\n hasRegisterMemoryPromptSection: boolean;\n /** api.registerMemoryCapability() exists (new SDK >=2026.4.5) */\n hasRegisterMemoryCapability: boolean;\n /** definePluginEntry from openclaw/plugin-sdk/plugin-entry is importable */\n hasDefinePluginEntry: boolean;\n /** api.runtime.* namespace exists */\n hasRuntimeNamespace: boolean;\n /** api.registrationMode is present */\n hasRegistrationMode: boolean;\n /** Hooks receive typed event/context objects */\n hasTypedHooks: boolean;\n /** Detected SDK version string, or \"legacy\" */\n sdkVersion: string;\n /** api.registrationMode value when present */\n registrationMode: \"full\" | \"setup-only\" | \"setup-runtime\" | undefined;\n}\n\nexport function detectSdkCapabilities(api: Record<string, unknown>): SdkCapabilities {\n const hasRegisterMemoryPromptSection =\n typeof (api as any).registerMemoryPromptSection === \"function\";\n const hasRegisterMemoryCapability =\n typeof (api as any).registerMemoryCapability === \"function\";\n const hasRuntimeNamespace =\n typeof (api as any).runtime === \"object\" && (api as any).runtime !== null;\n const hasRegistrationMode = typeof (api as any).registrationMode === \"string\";\n\n const runtimeVersion =\n hasRuntimeNamespace && typeof (api as any).runtime?.version === \"string\"\n ? (api as any).runtime.version\n : null;\n const isNewSdk =\n hasRegisterMemoryPromptSection || hasRegisterMemoryCapability || hasRuntimeNamespace || hasRegistrationMode;\n const sdkVersion: string =\n runtimeVersion ??\n (isNewSdk ? readEnvVar(\"OPENCLAW_SERVICE_VERSION\") : null) ??\n \"legacy\";\n\n // New SDK is indicated by any of the new API surfaces being present.\n // New hook system requires one of the authoritative new-SDK signals:\n // - registerMemoryPromptSection (pre-capability new SDKs, ≥2026.3.22)\n // - registerMemoryCapability (capability-based SDKs, ≥2026.4.5; the\n // deprecated registerMemoryPromptSection may be absent)\n // - registrationMode (explicit registration lifecycle signal)\n // Just having runtime.version is NOT sufficient — some legacy builds\n // expose it. Omitting registerMemoryCapability here would cause the\n // legacy before_agent_start hook to be registered on new SDKs that only\n // expose registerMemoryCapability, silently breaking memory injection.\n const hasNewHookSystem =\n hasRegisterMemoryPromptSection || hasRegisterMemoryCapability || hasRegistrationMode;\n\n return {\n hasBeforePromptBuild: hasNewHookSystem,\n hasRegisterMemoryPromptSection,\n hasRegisterMemoryCapability,\n hasDefinePluginEntry: isNewSdk, // entry point is less risky, keep broad detection\n hasRuntimeNamespace,\n hasRegistrationMode,\n hasTypedHooks: hasNewHookSystem,\n sdkVersion,\n registrationMode: hasRegistrationMode\n ? ((api as any).registrationMode as SdkCapabilities[\"registrationMode\"])\n : undefined,\n };\n}\n"],"mappings":";;;;;;AA+BO,SAAS,sBAAsB,KAA+C;AACnF,QAAM,iCACJ,OAAQ,IAAY,gCAAgC;AACtD,QAAM,8BACJ,OAAQ,IAAY,6BAA6B;AACnD,QAAM,sBACJ,OAAQ,IAAY,YAAY,YAAa,IAAY,YAAY;AACvE,QAAM,sBAAsB,OAAQ,IAAY,qBAAqB;AAErE,QAAM,iBACJ,uBAAuB,OAAQ,IAAY,SAAS,YAAY,WAC3D,IAAY,QAAQ,UACrB;AACN,QAAM,WACJ,kCAAkC,+BAA+B,uBAAuB;AAC1F,QAAM,aACJ,mBACC,WAAW,WAAW,0BAA0B,IAAI,SACrD;AAYF,QAAM,mBACJ,kCAAkC,+BAA+B;AAEnE,SAAO;AAAA,IACL,sBAAsB;AAAA,IACtB;AAAA,IACA;AAAA,IACA,sBAAsB;AAAA;AAAA,IACtB;AAAA,IACA;AAAA,IACA,eAAe;AAAA,IACf;AAAA,IACA,kBAAkB,sBACZ,IAAY,mBACd;AAAA,EACN;AACF;","names":[]}
|