@remnic/core 9.69.43 → 9.69.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/access-admin-ops-surface.d.ts +14 -14
- package/dist/access-admin-ops-surface.js +24 -24
- package/dist/access-authorization-probe.d.ts +14 -14
- package/dist/access-authorization-probe.js +25 -25
- package/dist/access-boundary.d.ts +14 -14
- package/dist/access-boundary.js +24 -24
- package/dist/access-cli.js +71 -69
- package/dist/access-cli.js.map +1 -1
- package/dist/access-coding-context-resolution.d.ts +1 -1
- package/dist/access-extraction-force-flush.d.ts +14 -14
- package/dist/access-extraction-force-flush.js +24 -24
- package/dist/access-health-types.d.ts +1 -1
- package/dist/access-http-briefing.d.ts +14 -14
- package/dist/access-http-briefing.js +25 -25
- package/dist/access-http-lcm-compaction.d.ts +14 -14
- package/dist/access-http-lifecycle-flush.d.ts +14 -14
- package/dist/access-http-offline-stream.d.ts +14 -14
- package/dist/access-http-query.d.ts +2 -2
- package/dist/access-http-query.js +26 -26
- package/dist/access-http.d.ts +15 -15
- package/dist/access-http.js +40 -40
- package/dist/access-identity-continuity-surface.d.ts +11 -11
- package/dist/access-identity-continuity-surface.js +24 -24
- package/dist/access-lcm-surface.d.ts +14 -14
- package/dist/access-lcm-surface.js +24 -24
- package/dist/access-mcp-shared-context-tools.d.ts +14 -14
- package/dist/access-mcp.d.ts +14 -14
- package/dist/access-mcp.js +32 -32
- package/dist/access-memory-search-fanout.d.ts +2 -2
- package/dist/{access-namespace-preflight-CE-RrXKu.d.ts → access-namespace-preflight-DDnsN22V.d.ts} +1 -1
- package/dist/access-namespace-preflight.d.ts +3 -3
- package/dist/access-namespace-preflight.js +24 -24
- package/dist/access-observe-transcript.d.ts +11 -11
- package/dist/access-observe-write-category.d.ts +4 -3
- package/dist/access-observe-write-category.js +2 -2
- package/dist/access-observe-write-surface.d.ts +14 -14
- package/dist/access-observe-write-surface.js +24 -24
- package/dist/access-offline-manifest.d.ts +11 -11
- package/dist/access-offline-manifest.js +3 -3
- package/dist/access-operations-batch.js +25 -25
- package/dist/access-operations.d.ts +14 -14
- package/dist/access-operations.js +31 -31
- package/dist/access-recall-concurrency.d.ts +14 -14
- package/dist/access-recall-concurrency.js +24 -24
- package/dist/access-recall-response.d.ts +14 -14
- package/dist/access-recall-response.js +24 -24
- package/dist/access-recall-surface.d.ts +14 -14
- package/dist/access-recall-surface.js +24 -24
- package/dist/access-schema.d.ts +9 -2
- package/dist/access-schema.js +3 -1
- package/dist/{access-service-DxTTTg9O.d.ts → access-service-CDteK_Gt.d.ts} +9 -9
- package/dist/access-service-helpers.d.ts +14 -14
- package/dist/access-service.d.ts +14 -14
- package/dist/access-service.js +24 -24
- package/dist/access-surface-catalog.d.ts +14 -14
- package/dist/access-surface-catalog.js +26 -26
- package/dist/access-wearables-meetings-surface.d.ts +4 -4
- package/dist/action-confidence.d.ts +1 -1
- package/dist/active-memory-bridge.d.ts +1 -1
- package/dist/active-recall.d.ts +1 -1
- package/dist/active-recall.js +2 -2
- package/dist/activity/digest.d.ts +1 -1
- package/dist/ambient-provenance.d.ts +1 -1
- package/dist/artifact-search.d.ts +1 -1
- package/dist/{auto-sync-QZD4RD6H.js → auto-sync-DG5KEOF5.js} +5 -5
- package/dist/background-generation.d.ts +1 -1
- package/dist/behavior-learner.d.ts +1 -1
- package/dist/behavior-signals.d.ts +1 -1
- package/dist/bootstrap.d.ts +11 -11
- package/dist/briefing-window.d.ts +2 -2
- package/dist/briefing.d.ts +2 -2
- package/dist/briefing.js +6 -6
- package/dist/buffer-surprise-report.d.ts +1 -1
- package/dist/buffer-turn-helpers.d.ts +1 -1
- package/dist/buffer.d.ts +2 -2
- package/dist/buffer.js +3 -3
- package/dist/bulk-import/index.d.ts +3 -3
- package/dist/calibration.d.ts +1 -1
- package/dist/calibration.js +2 -2
- package/dist/capabilities.d.ts +1 -1
- package/dist/{catalog-Ya3DDn_T.d.ts → catalog-Dl2hYqpS.d.ts} +1 -1
- package/dist/causal-behavior.d.ts +1 -1
- package/dist/causal-consolidation.d.ts +1 -1
- package/dist/causal-consolidation.js +7 -7
- package/dist/causal-trajectory-graph.d.ts +1 -1
- package/dist/{chunk-BZDK5EOD.js → chunk-2LRO73MN.js} +2 -2
- package/dist/chunk-2WMXZYMS.js +25 -0
- package/dist/chunk-2WMXZYMS.js.map +1 -0
- package/dist/{chunk-JDL5BYYF.js → chunk-46A4RGBC.js} +2 -2
- package/dist/{chunk-6EGIQEKC.js → chunk-4HTQ76O4.js} +2 -2
- package/dist/{chunk-7L54ARML.js → chunk-4XTSKGLX.js} +2 -2
- package/dist/{chunk-KOM36ILJ.js → chunk-5TKHJ5RW.js} +13 -13
- package/dist/{chunk-IB7FDRRC.js → chunk-5XTILJRI.js} +2 -2
- package/dist/{chunk-J2MGTGKC.js → chunk-5ZXGH2ZL.js} +20 -3
- package/dist/chunk-5ZXGH2ZL.js.map +1 -0
- package/dist/{chunk-VJXMFBVR.js → chunk-6II55MXS.js} +2 -2
- package/dist/{chunk-LT4H7SL5.js → chunk-7LKXP4QG.js} +19 -19
- package/dist/{chunk-PF7LQ22G.js → chunk-A2YN3FR4.js} +3 -3
- package/dist/chunk-AAQA6ZUP.js +41 -0
- package/dist/chunk-AAQA6ZUP.js.map +1 -0
- package/dist/{chunk-RJ7Z7YXK.js → chunk-AG6PANBG.js} +14 -20
- package/dist/chunk-AG6PANBG.js.map +1 -0
- package/dist/{chunk-KDLOKVX7.js → chunk-AOMUIF3R.js} +2 -2
- package/dist/{chunk-2YIUUXNK.js → chunk-B55FYF6F.js} +2 -2
- package/dist/{chunk-2HDLDBJW.js → chunk-BOWAP64Q.js} +2 -2
- package/dist/{chunk-PPDZSJXB.js → chunk-C3MCMFNV.js} +2 -2
- package/dist/{chunk-DABSYX7V.js → chunk-D3DJYGU2.js} +3 -3
- package/dist/{chunk-F2FJTOV6.js → chunk-DO6R3LIE.js} +2 -2
- package/dist/{chunk-LD22AAJI.js → chunk-DSHSQGSN.js} +2 -2
- package/dist/{chunk-3254BYQV.js → chunk-E5VOKZQV.js} +1 -1
- package/dist/{chunk-46FVFU7S.js → chunk-EC5SVM6H.js} +2 -2
- package/dist/{chunk-UHSOPTNB.js → chunk-EP6BA7VV.js} +50 -15
- package/dist/chunk-EP6BA7VV.js.map +1 -0
- package/dist/{chunk-BPXJINHW.js → chunk-EUP4AXIW.js} +2 -2
- package/dist/{chunk-KY75VZKG.js → chunk-F6AYWLRN.js} +2 -2
- package/dist/{chunk-4AX5OYKC.js → chunk-FDDCZDBI.js} +2 -2
- package/dist/{chunk-VHANUT45.js → chunk-HBGSZ62Z.js} +7 -7
- package/dist/{chunk-M7H56FOQ.js → chunk-HVGCQMTQ.js} +2 -2
- package/dist/{chunk-GMU7MAHS.js → chunk-IAT5WFEU.js} +3 -3
- package/dist/{chunk-R3H2AXO2.js → chunk-IFULZYYQ.js} +2 -2
- package/dist/{chunk-ZYSOT6HD.js → chunk-J3IWHCMF.js} +2 -2
- package/dist/{chunk-QCTXQ2HW.js → chunk-J6NEOCQC.js} +2 -2
- package/dist/{chunk-H2N6SLTR.js → chunk-JIWZVOQM.js} +2 -2
- package/dist/{chunk-LUAQHDUI.js → chunk-JMBTNVMW.js} +2 -2
- package/dist/{chunk-HKQAI6XI.js → chunk-JPNUKKSL.js} +2 -2
- package/dist/{chunk-CRK6F6N3.js → chunk-JUOJGZPV.js} +5 -1
- package/dist/chunk-JUOJGZPV.js.map +1 -0
- package/dist/{chunk-F6PTJLEM.js → chunk-K4KE5MYE.js} +1 -1
- package/dist/{chunk-5AJZ7EUW.js → chunk-K75H7FSO.js} +2 -2
- package/dist/{chunk-JL4TQYM5.js → chunk-L272A5QW.js} +33 -2
- package/dist/{chunk-JL4TQYM5.js.map → chunk-L272A5QW.js.map} +1 -1
- package/dist/{chunk-7F47R4H4.js → chunk-LZAJONO5.js} +2 -2
- package/dist/{chunk-2WFOVXVJ.js → chunk-M7ECD3KN.js} +2 -2
- package/dist/{chunk-KORQWGUA.js → chunk-MDYZCPNQ.js} +2 -2
- package/dist/{chunk-IWHNT35B.js → chunk-N6I257OM.js} +3 -3
- package/dist/{chunk-YR5QT4SR.js → chunk-NAFPHFDM.js} +2 -2
- package/dist/{chunk-D7UUB33A.js → chunk-NGAFYIHQ.js} +2 -2
- package/dist/{chunk-LXMZM7LM.js → chunk-NKDQXDFL.js} +16 -16
- package/dist/{chunk-ZBSP4BSN.js → chunk-NRFUYVW7.js} +2 -2
- package/dist/{chunk-VNQRRUNS.js → chunk-O6ZSWHVR.js} +2 -3
- package/dist/chunk-O6ZSWHVR.js.map +1 -0
- package/dist/{chunk-XOCGC3FJ.js → chunk-OFBJD3V5.js} +2 -2
- package/dist/{chunk-YPB3Y57U.js → chunk-OOBUWMPY.js} +4 -4
- package/dist/{chunk-324HBGS4.js → chunk-OREGA7GY.js} +6 -6
- package/dist/{chunk-4WMGRLTV.js → chunk-Q4MI2KCG.js} +2 -2
- package/dist/{chunk-MOL7JK4F.js → chunk-R4HFCATE.js} +2 -2
- package/dist/{chunk-AKB44K3D.js → chunk-SPN5YFXN.js} +8 -8
- package/dist/{chunk-2PIC6CEN.js → chunk-T2ZNUWUY.js} +2 -2
- package/dist/{chunk-NHFXGNGC.js → chunk-TFS5FAAC.js} +36 -36
- package/dist/{chunk-JDOBQPJY.js → chunk-TNQR7N52.js} +2 -2
- package/dist/{chunk-JWBDHA4F.js → chunk-UJXNBZYJ.js} +4 -4
- package/dist/{chunk-DDGQDNQW.js → chunk-VA5QRTZX.js} +2 -2
- package/dist/{chunk-XIJHRQ4A.js → chunk-W6YDAIVB.js} +2 -2
- package/dist/{chunk-GKKLI23D.js → chunk-WCQ7L54B.js} +2 -2
- package/dist/{chunk-3YQ7VLP3.js → chunk-WMTYEQO5.js} +2 -2
- package/dist/{chunk-VKDXYEA6.js → chunk-WNMVUWI7.js} +2 -2
- package/dist/{chunk-OGAKUA7I.js → chunk-YHSEUZV5.js} +2 -2
- package/dist/{chunk-GR76OKET.js → chunk-YSBYNCCN.js} +2 -2
- package/dist/{chunk-QUBPZQED.js → chunk-Z5YNVWRD.js} +2 -2
- package/dist/{chunk-UCLWIMVW.js → chunk-ZLVURGAJ.js} +2 -2
- package/dist/{chunk-M6FKXOYV.js → chunk-ZQ533JDE.js} +2 -2
- package/dist/{chunk-TRTLWUDD.js → chunk-ZTHGFTMW.js} +2 -2
- package/dist/{cli-BfCl5kWD.d.ts → cli-CZDhIcxu.d.ts} +5 -5
- package/dist/cli.d.ts +16 -16
- package/dist/cli.js +53 -53
- package/dist/coding/export-okf-codegraph.d.ts +1 -1
- package/dist/coding/export-okf-codegraph.js +5 -5
- package/dist/coding/pre-action-gate.d.ts +1 -1
- package/dist/compounding/engine.d.ts +2 -2
- package/dist/compounding/engine.js +6 -6
- package/dist/compounding/preference-consolidator.d.ts +1 -1
- package/dist/compression-optimizer.d.ts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/config.js +2 -2
- package/dist/connectors/codex-materialize-runner.d.ts +1 -1
- package/dist/connectors/codex-materialize-runner.js +6 -6
- package/dist/connectors/codex-materialize.d.ts +1 -1
- package/dist/connectors/index.d.ts +1 -1
- package/dist/connectors/index.js +6 -6
- package/dist/consolidation-provenance-check.d.ts +2 -2
- package/dist/consolidation-undo.d.ts +2 -2
- package/dist/contradiction/index.d.ts +4 -4
- package/dist/converge-config.d.ts +1 -1
- package/dist/convergence-refresh.d.ts +2 -2
- package/dist/convergence-refresh.js +8 -8
- package/dist/conversation-index/backend.d.ts +1 -1
- package/dist/conversation-index/chunker.d.ts +1 -1
- package/dist/conversation-index/faiss-adapter.d.ts +1 -1
- package/dist/conversation-index/indexer.d.ts +1 -1
- package/dist/conversation-index/search.d.ts +1 -1
- package/dist/corpus-watermark.d.ts +1 -1
- package/dist/corpus-watermark.js +8 -8
- package/dist/cross-lingual-recall.d.ts +1 -1
- package/dist/day-summary.d.ts +1 -1
- package/dist/deep-recall-http-glue.d.ts +14 -14
- package/dist/deep-recall-http-glue.js +2 -2
- package/dist/deep-recall-mcp-tools.d.ts +14 -14
- package/dist/deep-recall-policy-llm.d.ts +2 -2
- package/dist/deep-recall-policy-llm.js +3 -3
- package/dist/deep-recall-seeds.d.ts +1 -1
- package/dist/delinearize.d.ts +1 -1
- package/dist/dependency-propagation-config.d.ts +1 -1
- package/dist/{dependency-propagation-delivery-CggS9BFT.d.ts → dependency-propagation-delivery-BXaUoVUf.d.ts} +1 -1
- package/dist/direct-answer-wiring.d.ts +1 -1
- package/dist/direct-answer.d.ts +1 -1
- package/dist/embedding-fallback.d.ts +1 -1
- package/dist/enrichment/index.d.ts +1 -1
- package/dist/entity-origin-fields.d.ts +1 -1
- package/dist/entity-retrieval.d.ts +2 -2
- package/dist/entity-retrieval.js +6 -6
- package/dist/entity-schema.d.ts +1 -1
- package/dist/episodic-context.d.ts +1 -1
- package/dist/eval-trajectory-contracts.d.ts +1 -1
- package/dist/eval-trajectory-store.d.ts +1 -1
- package/dist/eval-trajectory.d.ts +1 -1
- package/dist/explicit-capture.d.ts +11 -11
- package/dist/external-wiki-access.d.ts +14 -14
- package/dist/external-wiki-access.js +25 -25
- package/dist/external-wiki-collection-registration.d.ts +1 -1
- package/dist/external-wiki-collection.d.ts +1 -1
- package/dist/external-wiki-mcp-tools.d.ts +14 -14
- package/dist/extraction-error-classification.d.ts +1 -1
- package/dist/extraction-faithfulness.d.ts +2 -2
- package/dist/extraction-faithfulness.js +3 -3
- package/dist/extraction-judge-telemetry.d.ts +2 -2
- package/dist/extraction-judge-training.d.ts +2 -2
- package/dist/extraction-judge.d.ts +2 -2
- package/dist/extraction-judge.js +3 -3
- package/dist/extraction-liveness.d.ts +1 -1
- package/dist/extraction-normalization.d.ts +1 -1
- package/dist/extraction-prompt.d.ts +1 -1
- package/dist/extraction-source-grounding-rules.d.ts +1 -1
- package/dist/extraction-source-grounding.d.ts +1 -1
- package/dist/extraction-span-config.d.ts +1 -1
- package/dist/extraction-span-materialize.d.ts +1 -1
- package/dist/extraction-span-wire.d.ts +23 -4
- package/dist/extraction-span-wire.js +7 -8
- package/dist/extraction-span-wire.js.map +1 -1
- package/dist/extraction.d.ts +2 -2
- package/dist/extraction.js +13 -11
- package/dist/fallback-llm-codex-subscription.d.ts +1 -1
- package/dist/fallback-llm-codex-subscription.js +1 -1
- package/dist/fallback-llm.d.ts +1 -1
- package/dist/fallback-llm.js +2 -2
- package/dist/{generic-recall-paths-CoXPSnCw.d.ts → generic-recall-paths-BkVVEoeO.d.ts} +1 -1
- package/dist/graph-append-error.d.ts +1 -1
- package/dist/graph-dashboard-diff.d.ts +1 -1
- package/dist/graph-dashboard-key.d.ts +1 -1
- package/dist/graph-dashboard-parser.d.ts +1 -1
- package/dist/graph-edge-reinforcement.d.ts +1 -1
- package/dist/graph-jsonl.d.ts +1 -1
- package/dist/graph-path-reconstruction.d.ts +1 -1
- package/dist/graph-path-scoring.d.ts +1 -1
- package/dist/graph-snapshot.d.ts +1 -1
- package/dist/graph.d.ts +1 -1
- package/dist/harmonic-retrieval.js +1 -1
- package/dist/importance.d.ts +1 -1
- package/dist/importers/index.d.ts +1 -1
- package/dist/importers/test-utils.d.ts +1 -1
- package/dist/in-flight-reads.d.ts +1 -1
- package/dist/{index-fdw_oK5a.d.ts → index-TBPe6NvB.d.ts} +3 -3
- package/dist/index.d.ts +28 -28
- package/dist/index.js +73 -69
- package/dist/intent.d.ts +1 -1
- package/dist/lcm/engine.d.ts +1 -1
- package/dist/lcm/index.d.ts +1 -1
- package/dist/lcm/tools.d.ts +1 -1
- package/dist/lifecycle.d.ts +1 -1
- package/dist/live-connectors-runner.d.ts +1 -1
- package/dist/{local-llm-3-jtw52a.d.ts → local-llm-DdrhmecM.d.ts} +1 -1
- package/dist/local-llm-config.js +1 -1
- package/dist/local-llm-helpers.d.ts +2 -2
- package/dist/local-llm.d.ts +2 -2
- package/dist/local-model-endpoint.d.ts +1 -1
- package/dist/location/index.d.ts +5 -5
- package/dist/location/index.js +8 -8
- package/dist/maintenance/memory-governance.d.ts +1 -1
- package/dist/maintenance/memory-governance.js +6 -6
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.d.ts +2 -2
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +6 -6
- package/dist/maintenance/rebuild-memory-projection.d.ts +2 -2
- package/dist/maintenance/rebuild-memory-projection.js +7 -7
- package/dist/{maintenance-DgeeH0a1.d.ts → maintenance-B813YFWJ.d.ts} +3 -3
- package/dist/mcp-memory-inspector-app.d.ts +14 -14
- package/dist/memory-action-policy.d.ts +1 -1
- package/dist/memory-cache.d.ts +1 -1
- package/dist/memory-controller.d.ts +1 -1
- package/dist/memory-lifecycle-ledger-utils.d.ts +1 -1
- package/dist/memory-projection-store.d.ts +1 -1
- package/dist/memory-provenance.d.ts +1 -1
- package/dist/memory-snapshot.d.ts +1 -1
- package/dist/memory-subject-cli.d.ts +14 -14
- package/dist/memory-subject.d.ts +14 -14
- package/dist/memory-worth-outcomes.d.ts +2 -2
- package/dist/models-json.d.ts +1 -1
- package/dist/namespaces/migrate.d.ts +3 -3
- package/dist/namespaces/migrate.js +7 -7
- package/dist/namespaces/principal.d.ts +1 -1
- package/dist/namespaces/search.d.ts +1 -1
- package/dist/namespaces/storage.d.ts +3 -3
- package/dist/namespaces/storage.js +6 -6
- package/dist/native-knowledge.d.ts +1 -1
- package/dist/offline-sync-impression-drain.d.ts +1 -1
- package/dist/operator-doctor-corpus.d.ts +1 -1
- package/dist/operator-doctor-corpus.js +9 -9
- package/dist/operator-doctor-replica.d.ts +1 -1
- package/dist/operator-toolkit.d.ts +3 -3
- package/dist/operator-toolkit.js +16 -16
- package/dist/orchestration/compression-guideline-coordinator.d.ts +2 -2
- package/dist/orchestration/maintenance.d.ts +4 -4
- package/dist/orchestration/maintenance.js +14 -14
- package/dist/{orchestrator-VXWKdatm.d.ts → orchestrator-BCvQavIS.d.ts} +10 -10
- package/dist/orchestrator.d.ts +11 -11
- package/dist/orchestrator.js +71 -69
- package/dist/patterns-cli.d.ts +1 -1
- package/dist/{pipeline-CwXZBKR5.d.ts → pipeline-4lqKJZ_0.d.ts} +1 -1
- package/dist/policy-runtime.d.ts +1 -1
- package/dist/proactive-contention.d.ts +2 -2
- package/dist/provenance.d.ts +1 -1
- package/dist/{public-http-B55s59aR.d.ts → public-http-NH72a6aa.d.ts} +1 -1
- package/dist/{qmd-DOLTPIQg.d.ts → qmd-DnoWaXKb.d.ts} +1 -1
- package/dist/qmd-preflight.d.ts +2 -2
- package/dist/qmd-recall-cache.d.ts +1 -1
- package/dist/qmd.d.ts +2 -2
- package/dist/recall-concurrency-config.d.ts +1 -1
- package/dist/recall-disclosure-escalation.d.ts +1 -1
- package/dist/recall-explain-renderer.d.ts +1 -1
- package/dist/recall-memory-map.d.ts +1 -1
- package/dist/recall-navigate-access.d.ts +1 -1
- package/dist/recall-navigate-disclosure.d.ts +1 -1
- package/dist/recall-navigate.d.ts +1 -1
- package/dist/recall-navigation-http-glue.d.ts +14 -14
- package/dist/recall-navigation-mcp-tools.d.ts +14 -14
- package/dist/recall-navigation-operations.js +25 -25
- package/dist/recall-navigation-renderer.d.ts +1 -1
- package/dist/recall-navigation.d.ts +1 -1
- package/dist/recall-navigation.js +24 -24
- package/dist/recall-planner-llm.d.ts +1 -1
- package/dist/recall-planner-llm.js +2 -2
- package/dist/recall-state-view-admission.d.ts +2 -2
- package/dist/recall-state-view-admission.js +3 -3
- package/dist/recall-state-view-anchors.d.ts +1 -1
- package/dist/recall-state.d.ts +1 -1
- package/dist/recall-tag-filter.d.ts +1 -1
- package/dist/recall-timings.d.ts +1 -1
- package/dist/recall-xray-cli.d.ts +1 -1
- package/dist/recall-xray-renderer.d.ts +1 -1
- package/dist/recall-xray.d.ts +1 -1
- package/dist/reconcile/cursor.d.ts +1 -1
- package/dist/reconcile/manifest.d.ts +1 -1
- package/dist/reconcile/manifest.js +2 -2
- package/dist/reconcile/plan.d.ts +1 -1
- package/dist/replay/normalizers/chatgpt.d.ts +1 -1
- package/dist/replay/normalizers/claude.d.ts +1 -1
- package/dist/replay/normalizers/openclaw.d.ts +1 -1
- package/dist/replay/normalizers/shared.d.ts +1 -1
- package/dist/replay/runner.d.ts +1 -1
- package/dist/replay/types.d.ts +1 -1
- package/dist/replica-divergence.d.ts +1 -1
- package/dist/replica-peers-config.d.ts +1 -1
- package/dist/resolve-auth-token.d.ts +1 -1
- package/dist/resume-bundles.js +3 -3
- package/dist/retrieval-agents.d.ts +2 -2
- package/dist/retrieval-tiers.d.ts +1 -1
- package/dist/routing/engine.d.ts +1 -1
- package/dist/routing/store.d.ts +1 -1
- package/dist/salvage-envelope.d.ts +1 -1
- package/dist/{scope-profiles-C564-hrv.d.ts → scope-profiles-crazXegZ.d.ts} +1 -1
- package/dist/search/embed-helper.d.ts +1 -1
- package/dist/search/factory.d.ts +1 -1
- package/dist/search/index.d.ts +1 -1
- package/dist/search/lancedb-backend.d.ts +1 -1
- package/dist/search/meilisearch-backend.d.ts +1 -1
- package/dist/search/noop-backend.d.ts +1 -1
- package/dist/search/orama-backend.d.ts +1 -1
- package/dist/search/port.d.ts +1 -1
- package/dist/search/remote-backend.d.ts +1 -1
- package/dist/{semantic-consolidation-g6x-ShY8.d.ts → semantic-consolidation-B09JI9WM.d.ts} +1 -1
- package/dist/semantic-consolidation.d.ts +2 -2
- package/dist/semantic-consolidation.js +7 -7
- package/dist/semantic-rule-promotion.js +6 -6
- package/dist/semantic-rule-verifier.d.ts +1 -1
- package/dist/semantic-rule-verifier.js +6 -6
- package/dist/{service-CaCOk0rd.d.ts → service-Echc5Xso.d.ts} +2 -2
- package/dist/session-observer-bands.d.ts +1 -1
- package/dist/session-observer-state.d.ts +1 -1
- package/dist/shared-context/manager.d.ts +1 -1
- package/dist/signal.d.ts +1 -1
- package/dist/source-agent-qualifier.d.ts +1 -1
- package/dist/source-agent-qualifier.js +9 -9
- package/dist/source-attribution.d.ts +7 -4
- package/dist/source-attribution.js +1 -1
- package/dist/standup/build.js +6 -6
- package/dist/{storage-C9nsZX5Q.d.ts → storage-ClkHCQSE.d.ts} +1 -1
- package/dist/storage.d.ts +2 -2
- package/dist/storage.js +5 -5
- package/dist/subject-config.d.ts +1 -1
- package/dist/summarizer.d.ts +1 -1
- package/dist/summarizer.js +3 -3
- package/dist/summary-snapshot.d.ts +1 -1
- package/dist/support-passport/index.d.ts +17 -17
- package/dist/support-passport/index.js +27 -27
- package/dist/{tagging-BA4RFdH3.d.ts → tagging-ksktJ60G.d.ts} +2 -2
- package/dist/temporal-supersession.d.ts +2 -2
- package/dist/temporal-timeline-recall.d.ts +1 -1
- package/dist/temporal-validity.d.ts +1 -1
- package/dist/threading.d.ts +1 -1
- package/dist/tier-migration.d.ts +2 -2
- package/dist/tier-routing.d.ts +1 -1
- package/dist/topics.d.ts +1 -1
- package/dist/transcript.d.ts +1 -1
- package/dist/transfer/export-okf.d.ts +1 -1
- package/dist/transfer/export-okf.js +6 -6
- package/dist/trust-score-stage.d.ts +1 -1
- package/dist/trust-score.d.ts +1 -1
- package/dist/{types-Sps-lg5I.d.ts → types-nmhnJpxx.d.ts} +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/utility-runtime.d.ts +1 -1
- package/dist/verified-recall.js +6 -6
- package/dist/who-knows-cli.d.ts +14 -14
- package/dist/who-knows-cli.js +7 -7
- package/dist/who-knows.d.ts +14 -14
- package/dist/who-knows.js +6 -6
- package/dist/write-envelope.d.ts +1 -1
- package/package.json +2 -2
- package/src/access-category-alias.test.ts +57 -0
- package/src/access-observe-write-category.ts +20 -1
- package/src/access-schema.ts +10 -0
- package/src/background-generation.test.ts +77 -0
- package/src/extraction-span-wire.test.ts +17 -1
- package/src/extraction-span-wire.ts +46 -3
- package/src/extraction.ts +2 -11
- package/src/local-llm-config.test.ts +21 -0
- package/src/local-llm-config.ts +1 -2
- package/src/providers/codex-subscription.test.ts +109 -3
- package/src/providers/codex-subscription.ts +57 -17
- package/src/source-attribution.test.ts +27 -0
- package/src/source-attribution.ts +41 -5
- package/src/summarizer.ts +18 -0
- package/dist/chunk-CRK6F6N3.js.map +0 -1
- package/dist/chunk-J2MGTGKC.js.map +0 -1
- package/dist/chunk-RJ7Z7YXK.js.map +0 -1
- package/dist/chunk-UHSOPTNB.js.map +0 -1
- package/dist/chunk-VNQRRUNS.js.map +0 -1
- package/dist/chunk-YTV6J4T6.js +0 -14
- package/dist/chunk-YTV6J4T6.js.map +0 -1
- /package/dist/{auto-sync-QZD4RD6H.js.map → auto-sync-DG5KEOF5.js.map} +0 -0
- /package/dist/{chunk-BZDK5EOD.js.map → chunk-2LRO73MN.js.map} +0 -0
- /package/dist/{chunk-JDL5BYYF.js.map → chunk-46A4RGBC.js.map} +0 -0
- /package/dist/{chunk-6EGIQEKC.js.map → chunk-4HTQ76O4.js.map} +0 -0
- /package/dist/{chunk-7L54ARML.js.map → chunk-4XTSKGLX.js.map} +0 -0
- /package/dist/{chunk-KOM36ILJ.js.map → chunk-5TKHJ5RW.js.map} +0 -0
- /package/dist/{chunk-IB7FDRRC.js.map → chunk-5XTILJRI.js.map} +0 -0
- /package/dist/{chunk-VJXMFBVR.js.map → chunk-6II55MXS.js.map} +0 -0
- /package/dist/{chunk-LT4H7SL5.js.map → chunk-7LKXP4QG.js.map} +0 -0
- /package/dist/{chunk-PF7LQ22G.js.map → chunk-A2YN3FR4.js.map} +0 -0
- /package/dist/{chunk-KDLOKVX7.js.map → chunk-AOMUIF3R.js.map} +0 -0
- /package/dist/{chunk-2YIUUXNK.js.map → chunk-B55FYF6F.js.map} +0 -0
- /package/dist/{chunk-2HDLDBJW.js.map → chunk-BOWAP64Q.js.map} +0 -0
- /package/dist/{chunk-PPDZSJXB.js.map → chunk-C3MCMFNV.js.map} +0 -0
- /package/dist/{chunk-DABSYX7V.js.map → chunk-D3DJYGU2.js.map} +0 -0
- /package/dist/{chunk-F2FJTOV6.js.map → chunk-DO6R3LIE.js.map} +0 -0
- /package/dist/{chunk-LD22AAJI.js.map → chunk-DSHSQGSN.js.map} +0 -0
- /package/dist/{chunk-3254BYQV.js.map → chunk-E5VOKZQV.js.map} +0 -0
- /package/dist/{chunk-46FVFU7S.js.map → chunk-EC5SVM6H.js.map} +0 -0
- /package/dist/{chunk-BPXJINHW.js.map → chunk-EUP4AXIW.js.map} +0 -0
- /package/dist/{chunk-KY75VZKG.js.map → chunk-F6AYWLRN.js.map} +0 -0
- /package/dist/{chunk-4AX5OYKC.js.map → chunk-FDDCZDBI.js.map} +0 -0
- /package/dist/{chunk-VHANUT45.js.map → chunk-HBGSZ62Z.js.map} +0 -0
- /package/dist/{chunk-M7H56FOQ.js.map → chunk-HVGCQMTQ.js.map} +0 -0
- /package/dist/{chunk-GMU7MAHS.js.map → chunk-IAT5WFEU.js.map} +0 -0
- /package/dist/{chunk-R3H2AXO2.js.map → chunk-IFULZYYQ.js.map} +0 -0
- /package/dist/{chunk-ZYSOT6HD.js.map → chunk-J3IWHCMF.js.map} +0 -0
- /package/dist/{chunk-QCTXQ2HW.js.map → chunk-J6NEOCQC.js.map} +0 -0
- /package/dist/{chunk-H2N6SLTR.js.map → chunk-JIWZVOQM.js.map} +0 -0
- /package/dist/{chunk-LUAQHDUI.js.map → chunk-JMBTNVMW.js.map} +0 -0
- /package/dist/{chunk-HKQAI6XI.js.map → chunk-JPNUKKSL.js.map} +0 -0
- /package/dist/{chunk-F6PTJLEM.js.map → chunk-K4KE5MYE.js.map} +0 -0
- /package/dist/{chunk-5AJZ7EUW.js.map → chunk-K75H7FSO.js.map} +0 -0
- /package/dist/{chunk-7F47R4H4.js.map → chunk-LZAJONO5.js.map} +0 -0
- /package/dist/{chunk-2WFOVXVJ.js.map → chunk-M7ECD3KN.js.map} +0 -0
- /package/dist/{chunk-KORQWGUA.js.map → chunk-MDYZCPNQ.js.map} +0 -0
- /package/dist/{chunk-IWHNT35B.js.map → chunk-N6I257OM.js.map} +0 -0
- /package/dist/{chunk-YR5QT4SR.js.map → chunk-NAFPHFDM.js.map} +0 -0
- /package/dist/{chunk-D7UUB33A.js.map → chunk-NGAFYIHQ.js.map} +0 -0
- /package/dist/{chunk-LXMZM7LM.js.map → chunk-NKDQXDFL.js.map} +0 -0
- /package/dist/{chunk-ZBSP4BSN.js.map → chunk-NRFUYVW7.js.map} +0 -0
- /package/dist/{chunk-XOCGC3FJ.js.map → chunk-OFBJD3V5.js.map} +0 -0
- /package/dist/{chunk-YPB3Y57U.js.map → chunk-OOBUWMPY.js.map} +0 -0
- /package/dist/{chunk-324HBGS4.js.map → chunk-OREGA7GY.js.map} +0 -0
- /package/dist/{chunk-4WMGRLTV.js.map → chunk-Q4MI2KCG.js.map} +0 -0
- /package/dist/{chunk-MOL7JK4F.js.map → chunk-R4HFCATE.js.map} +0 -0
- /package/dist/{chunk-AKB44K3D.js.map → chunk-SPN5YFXN.js.map} +0 -0
- /package/dist/{chunk-2PIC6CEN.js.map → chunk-T2ZNUWUY.js.map} +0 -0
- /package/dist/{chunk-NHFXGNGC.js.map → chunk-TFS5FAAC.js.map} +0 -0
- /package/dist/{chunk-JDOBQPJY.js.map → chunk-TNQR7N52.js.map} +0 -0
- /package/dist/{chunk-JWBDHA4F.js.map → chunk-UJXNBZYJ.js.map} +0 -0
- /package/dist/{chunk-DDGQDNQW.js.map → chunk-VA5QRTZX.js.map} +0 -0
- /package/dist/{chunk-XIJHRQ4A.js.map → chunk-W6YDAIVB.js.map} +0 -0
- /package/dist/{chunk-GKKLI23D.js.map → chunk-WCQ7L54B.js.map} +0 -0
- /package/dist/{chunk-3YQ7VLP3.js.map → chunk-WMTYEQO5.js.map} +0 -0
- /package/dist/{chunk-VKDXYEA6.js.map → chunk-WNMVUWI7.js.map} +0 -0
- /package/dist/{chunk-OGAKUA7I.js.map → chunk-YHSEUZV5.js.map} +0 -0
- /package/dist/{chunk-GR76OKET.js.map → chunk-YSBYNCCN.js.map} +0 -0
- /package/dist/{chunk-QUBPZQED.js.map → chunk-Z5YNVWRD.js.map} +0 -0
- /package/dist/{chunk-UCLWIMVW.js.map → chunk-ZLVURGAJ.js.map} +0 -0
- /package/dist/{chunk-M6FKXOYV.js.map → chunk-ZQ533JDE.js.map} +0 -0
- /package/dist/{chunk-TRTLWUDD.js.map → chunk-ZTHGFTMW.js.map} +0 -0
package/dist/who-knows-cli.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { W as WhoKnowsResult } from './access-service-
|
|
2
|
-
import './types-
|
|
1
|
+
import { W as WhoKnowsResult } from './access-service-CDteK_Gt.js';
|
|
2
|
+
import './types-nmhnJpxx.js';
|
|
3
3
|
import './message-parts/index.js';
|
|
4
4
|
import './bounded-jsonl-state.js';
|
|
5
5
|
import './operator-doctor-types.js';
|
|
@@ -16,13 +16,13 @@ import './active-context-config.js';
|
|
|
16
16
|
import './local-llm-config.js';
|
|
17
17
|
import './semantic-merge-config.js';
|
|
18
18
|
import './types-continuity.js';
|
|
19
|
-
import './orchestrator-
|
|
19
|
+
import './orchestrator-BCvQavIS.js';
|
|
20
20
|
import './recall-state.js';
|
|
21
21
|
import './utils/serialize-mutations.js';
|
|
22
22
|
import './search/port.js';
|
|
23
23
|
import './included-memories.js';
|
|
24
24
|
import './briefing.js';
|
|
25
|
-
import './storage-
|
|
25
|
+
import './storage-ClkHCQSE.js';
|
|
26
26
|
import './corpus-read-cancellation.js';
|
|
27
27
|
import './artifact-search.js';
|
|
28
28
|
import './active-context-transform.js';
|
|
@@ -38,7 +38,7 @@ import './write-envelope.js';
|
|
|
38
38
|
import './structured-attributes.js';
|
|
39
39
|
import './buffer.js';
|
|
40
40
|
import './extraction-faithfulness.js';
|
|
41
|
-
import './local-llm-
|
|
41
|
+
import './local-llm-DdrhmecM.js';
|
|
42
42
|
import './model-registry.js';
|
|
43
43
|
import './fallback-llm.js';
|
|
44
44
|
import './fallback-llm-codex-subscription.js';
|
|
@@ -47,8 +47,8 @@ import './resolve-provider-secret.js';
|
|
|
47
47
|
import './transcript.js';
|
|
48
48
|
import './session-integrity.js';
|
|
49
49
|
import './summarizer.js';
|
|
50
|
-
import './maintenance-
|
|
51
|
-
import './catalog-
|
|
50
|
+
import './maintenance-B813YFWJ.js';
|
|
51
|
+
import './catalog-Dl2hYqpS.js';
|
|
52
52
|
import './namespaces/search.js';
|
|
53
53
|
import './compounding/engine.js';
|
|
54
54
|
import './shared-context/manager.js';
|
|
@@ -58,7 +58,7 @@ import './utility-runtime.js';
|
|
|
58
58
|
import './tier-routing.js';
|
|
59
59
|
import './lifecycle.js';
|
|
60
60
|
import './orchestration/compression-guideline-coordinator.js';
|
|
61
|
-
import './semantic-consolidation-
|
|
61
|
+
import './semantic-consolidation-B09JI9WM.js';
|
|
62
62
|
import './connectors/codex-materialize.js';
|
|
63
63
|
import './logger.js';
|
|
64
64
|
import './embedding-fallback.js';
|
|
@@ -80,17 +80,17 @@ import './conversation-index/chunker.js';
|
|
|
80
80
|
import './conversation-index/backend.js';
|
|
81
81
|
import './faiss-adapter-BHecI1fF.js';
|
|
82
82
|
import './runtime/child-process.js';
|
|
83
|
-
import './dependency-propagation-delivery-
|
|
83
|
+
import './dependency-propagation-delivery-BXaUoVUf.js';
|
|
84
84
|
import './namespaces/storage.js';
|
|
85
85
|
import './threading.js';
|
|
86
|
-
import './scope-profiles-
|
|
86
|
+
import './scope-profiles-crazXegZ.js';
|
|
87
87
|
import './graph-DRkl22KE.js';
|
|
88
88
|
import './graph-write-lock.js';
|
|
89
89
|
import './recall-xray.js';
|
|
90
90
|
import './memory-provenance.js';
|
|
91
91
|
import './user-model.js';
|
|
92
92
|
import './recall-context-composition.js';
|
|
93
|
-
import './generic-recall-paths-
|
|
93
|
+
import './generic-recall-paths-BkVVEoeO.js';
|
|
94
94
|
import './live-connectors-runner.js';
|
|
95
95
|
import './framework-CNDn2164.js';
|
|
96
96
|
import './relevance.js';
|
|
@@ -98,7 +98,7 @@ import './negative.js';
|
|
|
98
98
|
import './session-observer-state.js';
|
|
99
99
|
import './semantic-BalR6EXU.js';
|
|
100
100
|
import './replay/types.js';
|
|
101
|
-
import './service-
|
|
101
|
+
import './service-Echc5Xso.js';
|
|
102
102
|
import './extraction-judge.js';
|
|
103
103
|
import './lcm/engine.js';
|
|
104
104
|
import './lcm/archive.js';
|
|
@@ -121,7 +121,7 @@ import './types-B1VHaf2w.js';
|
|
|
121
121
|
import './transfer/capsule-import.js';
|
|
122
122
|
import './transfer/types.js';
|
|
123
123
|
import './recall-navigation.js';
|
|
124
|
-
import './access-namespace-preflight-
|
|
124
|
+
import './access-namespace-preflight-DDnsN22V.js';
|
|
125
125
|
import './access-token-capabilities.js';
|
|
126
126
|
import 'node:async_hooks';
|
|
127
127
|
import './recall-explain-renderer.js';
|
|
@@ -129,7 +129,7 @@ import './access-citation.js';
|
|
|
129
129
|
import './access-health-types.js';
|
|
130
130
|
import './corpus-watermark.js';
|
|
131
131
|
import './replica-divergence.js';
|
|
132
|
-
import './tagging-
|
|
132
|
+
import './tagging-ksktJ60G.js';
|
|
133
133
|
import './explicit-capture.js';
|
|
134
134
|
import './access-wearables-meetings-surface.js';
|
|
135
135
|
import './deep-recall.js';
|
package/dist/who-knows-cli.js
CHANGED
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
renderWhoKnows,
|
|
5
5
|
renderWhoKnowsJson,
|
|
6
6
|
renderWhoKnowsText
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-OFBJD3V5.js";
|
|
8
|
+
import "./chunk-NGAFYIHQ.js";
|
|
9
|
+
import "./chunk-IAT5WFEU.js";
|
|
10
10
|
import "./chunk-46WM6JX2.js";
|
|
11
11
|
import "./chunk-UHVXE24Y.js";
|
|
12
12
|
import "./chunk-D5F7TKMH.js";
|
|
@@ -32,7 +32,7 @@ import "./chunk-MRPOZBJC.js";
|
|
|
32
32
|
import "./chunk-S2HLHAZ4.js";
|
|
33
33
|
import "./chunk-DM2T26WE.js";
|
|
34
34
|
import "./chunk-LDXUBPMO.js";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-J3IWHCMF.js";
|
|
36
36
|
import "./chunk-AAD2ZS6P.js";
|
|
37
37
|
import "./chunk-SHEHQBCG.js";
|
|
38
38
|
import "./chunk-3ONXXHQO.js";
|
|
@@ -52,11 +52,11 @@ import "./chunk-ZLQ37WJX.js";
|
|
|
52
52
|
import "./chunk-IUM3VSHI.js";
|
|
53
53
|
import "./chunk-C64XATK7.js";
|
|
54
54
|
import "./chunk-42JKGUFJ.js";
|
|
55
|
-
import "./chunk-
|
|
55
|
+
import "./chunk-ZTHGFTMW.js";
|
|
56
56
|
import "./chunk-I55KAVET.js";
|
|
57
57
|
import "./chunk-L2EXJQJP.js";
|
|
58
58
|
import "./chunk-45GF7Y3V.js";
|
|
59
|
-
import "./chunk-
|
|
59
|
+
import "./chunk-EP6BA7VV.js";
|
|
60
60
|
import "./chunk-E2AWJ7KQ.js";
|
|
61
61
|
import "./chunk-RW4QNB4J.js";
|
|
62
62
|
import "./chunk-ZIKENA2C.js";
|
|
@@ -74,7 +74,7 @@ import "./chunk-VYCOJKSX.js";
|
|
|
74
74
|
import "./chunk-BJMBJZ2Y.js";
|
|
75
75
|
import "./chunk-UKJAGEXH.js";
|
|
76
76
|
import "./chunk-FP2373TW.js";
|
|
77
|
-
import "./chunk-
|
|
77
|
+
import "./chunk-L272A5QW.js";
|
|
78
78
|
import "./chunk-SGHGCFVV.js";
|
|
79
79
|
import "./chunk-ZA53AZND.js";
|
|
80
80
|
import "./chunk-AL3UYZ5N.js";
|
package/dist/who-knows.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { bA as WHO_KNOWS_AUTHORSHIP_BONUS, bB as WHO_KNOWS_DEFAULT_LIMIT, bC as WHO_KNOWS_MAX_EVIDENCE, bD as WHO_KNOWS_MAX_LIMIT, bE as WHO_KNOWS_MCP_TOOLS, bF as WhoKnowsEntity, bG as WhoKnowsEvidence, bH as WhoKnowsHit, bI as WhoKnowsHttpOutcome, W as WhoKnowsResult, bJ as WhoKnowsStorage, bT as computeWhoKnows, bZ as handleWhoKnowsHttpQuery, c2 as loadWhoKnowsEntities, c9 as tokenizeTopic, ca as validateWhoKnowsInput } from './access-service-
|
|
2
|
-
import './types-
|
|
3
|
-
import './orchestrator-
|
|
1
|
+
export { bA as WHO_KNOWS_AUTHORSHIP_BONUS, bB as WHO_KNOWS_DEFAULT_LIMIT, bC as WHO_KNOWS_MAX_EVIDENCE, bD as WHO_KNOWS_MAX_LIMIT, bE as WHO_KNOWS_MCP_TOOLS, bF as WhoKnowsEntity, bG as WhoKnowsEvidence, bH as WhoKnowsHit, bI as WhoKnowsHttpOutcome, W as WhoKnowsResult, bJ as WhoKnowsStorage, bT as computeWhoKnows, bZ as handleWhoKnowsHttpQuery, c2 as loadWhoKnowsEntities, c9 as tokenizeTopic, ca as validateWhoKnowsInput } from './access-service-CDteK_Gt.js';
|
|
2
|
+
import './types-nmhnJpxx.js';
|
|
3
|
+
import './orchestrator-BCvQavIS.js';
|
|
4
4
|
import './recall-state.js';
|
|
5
5
|
import './utils/serialize-mutations.js';
|
|
6
6
|
import './search/port.js';
|
|
@@ -22,7 +22,7 @@ import './semantic-merge-config.js';
|
|
|
22
22
|
import './types-continuity.js';
|
|
23
23
|
import './included-memories.js';
|
|
24
24
|
import './briefing.js';
|
|
25
|
-
import './storage-
|
|
25
|
+
import './storage-ClkHCQSE.js';
|
|
26
26
|
import './corpus-read-cancellation.js';
|
|
27
27
|
import './artifact-search.js';
|
|
28
28
|
import './active-context-transform.js';
|
|
@@ -38,7 +38,7 @@ import './write-envelope.js';
|
|
|
38
38
|
import './structured-attributes.js';
|
|
39
39
|
import './buffer.js';
|
|
40
40
|
import './extraction-faithfulness.js';
|
|
41
|
-
import './local-llm-
|
|
41
|
+
import './local-llm-DdrhmecM.js';
|
|
42
42
|
import './model-registry.js';
|
|
43
43
|
import './fallback-llm.js';
|
|
44
44
|
import './fallback-llm-codex-subscription.js';
|
|
@@ -47,8 +47,8 @@ import './resolve-provider-secret.js';
|
|
|
47
47
|
import './transcript.js';
|
|
48
48
|
import './session-integrity.js';
|
|
49
49
|
import './summarizer.js';
|
|
50
|
-
import './maintenance-
|
|
51
|
-
import './catalog-
|
|
50
|
+
import './maintenance-B813YFWJ.js';
|
|
51
|
+
import './catalog-Dl2hYqpS.js';
|
|
52
52
|
import './namespaces/search.js';
|
|
53
53
|
import './compounding/engine.js';
|
|
54
54
|
import './shared-context/manager.js';
|
|
@@ -58,7 +58,7 @@ import './utility-runtime.js';
|
|
|
58
58
|
import './tier-routing.js';
|
|
59
59
|
import './lifecycle.js';
|
|
60
60
|
import './orchestration/compression-guideline-coordinator.js';
|
|
61
|
-
import './semantic-consolidation-
|
|
61
|
+
import './semantic-consolidation-B09JI9WM.js';
|
|
62
62
|
import './connectors/codex-materialize.js';
|
|
63
63
|
import './logger.js';
|
|
64
64
|
import './embedding-fallback.js';
|
|
@@ -80,17 +80,17 @@ import './conversation-index/chunker.js';
|
|
|
80
80
|
import './conversation-index/backend.js';
|
|
81
81
|
import './faiss-adapter-BHecI1fF.js';
|
|
82
82
|
import './runtime/child-process.js';
|
|
83
|
-
import './dependency-propagation-delivery-
|
|
83
|
+
import './dependency-propagation-delivery-BXaUoVUf.js';
|
|
84
84
|
import './namespaces/storage.js';
|
|
85
85
|
import './threading.js';
|
|
86
|
-
import './scope-profiles-
|
|
86
|
+
import './scope-profiles-crazXegZ.js';
|
|
87
87
|
import './graph-DRkl22KE.js';
|
|
88
88
|
import './graph-write-lock.js';
|
|
89
89
|
import './recall-xray.js';
|
|
90
90
|
import './memory-provenance.js';
|
|
91
91
|
import './user-model.js';
|
|
92
92
|
import './recall-context-composition.js';
|
|
93
|
-
import './generic-recall-paths-
|
|
93
|
+
import './generic-recall-paths-BkVVEoeO.js';
|
|
94
94
|
import './live-connectors-runner.js';
|
|
95
95
|
import './framework-CNDn2164.js';
|
|
96
96
|
import './relevance.js';
|
|
@@ -98,7 +98,7 @@ import './negative.js';
|
|
|
98
98
|
import './session-observer-state.js';
|
|
99
99
|
import './semantic-BalR6EXU.js';
|
|
100
100
|
import './replay/types.js';
|
|
101
|
-
import './service-
|
|
101
|
+
import './service-Echc5Xso.js';
|
|
102
102
|
import './extraction-judge.js';
|
|
103
103
|
import './lcm/engine.js';
|
|
104
104
|
import './lcm/archive.js';
|
|
@@ -121,7 +121,7 @@ import './types-B1VHaf2w.js';
|
|
|
121
121
|
import './transfer/capsule-import.js';
|
|
122
122
|
import './transfer/types.js';
|
|
123
123
|
import './recall-navigation.js';
|
|
124
|
-
import './access-namespace-preflight-
|
|
124
|
+
import './access-namespace-preflight-DDnsN22V.js';
|
|
125
125
|
import './access-token-capabilities.js';
|
|
126
126
|
import 'node:async_hooks';
|
|
127
127
|
import './recall-explain-renderer.js';
|
|
@@ -129,7 +129,7 @@ import './access-citation.js';
|
|
|
129
129
|
import './access-health-types.js';
|
|
130
130
|
import './corpus-watermark.js';
|
|
131
131
|
import './replica-divergence.js';
|
|
132
|
-
import './tagging-
|
|
132
|
+
import './tagging-ksktJ60G.js';
|
|
133
133
|
import './explicit-capture.js';
|
|
134
134
|
import './access-wearables-meetings-surface.js';
|
|
135
135
|
import './deep-recall.js';
|
package/dist/who-knows.js
CHANGED
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
loadWhoKnowsEntities,
|
|
10
10
|
tokenizeTopic,
|
|
11
11
|
validateWhoKnowsInput
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-NGAFYIHQ.js";
|
|
13
|
+
import "./chunk-IAT5WFEU.js";
|
|
14
14
|
import "./chunk-46WM6JX2.js";
|
|
15
15
|
import "./chunk-UHVXE24Y.js";
|
|
16
16
|
import "./chunk-D5F7TKMH.js";
|
|
@@ -36,7 +36,7 @@ import "./chunk-MRPOZBJC.js";
|
|
|
36
36
|
import "./chunk-S2HLHAZ4.js";
|
|
37
37
|
import "./chunk-DM2T26WE.js";
|
|
38
38
|
import "./chunk-LDXUBPMO.js";
|
|
39
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-J3IWHCMF.js";
|
|
40
40
|
import "./chunk-AAD2ZS6P.js";
|
|
41
41
|
import "./chunk-SHEHQBCG.js";
|
|
42
42
|
import "./chunk-3ONXXHQO.js";
|
|
@@ -56,11 +56,11 @@ import "./chunk-ZLQ37WJX.js";
|
|
|
56
56
|
import "./chunk-IUM3VSHI.js";
|
|
57
57
|
import "./chunk-C64XATK7.js";
|
|
58
58
|
import "./chunk-42JKGUFJ.js";
|
|
59
|
-
import "./chunk-
|
|
59
|
+
import "./chunk-ZTHGFTMW.js";
|
|
60
60
|
import "./chunk-I55KAVET.js";
|
|
61
61
|
import "./chunk-L2EXJQJP.js";
|
|
62
62
|
import "./chunk-45GF7Y3V.js";
|
|
63
|
-
import "./chunk-
|
|
63
|
+
import "./chunk-EP6BA7VV.js";
|
|
64
64
|
import "./chunk-E2AWJ7KQ.js";
|
|
65
65
|
import "./chunk-RW4QNB4J.js";
|
|
66
66
|
import "./chunk-ZIKENA2C.js";
|
|
@@ -78,7 +78,7 @@ import "./chunk-VYCOJKSX.js";
|
|
|
78
78
|
import "./chunk-BJMBJZ2Y.js";
|
|
79
79
|
import "./chunk-UKJAGEXH.js";
|
|
80
80
|
import "./chunk-FP2373TW.js";
|
|
81
|
-
import "./chunk-
|
|
81
|
+
import "./chunk-L272A5QW.js";
|
|
82
82
|
import "./chunk-SGHGCFVV.js";
|
|
83
83
|
import "./chunk-ZA53AZND.js";
|
|
84
84
|
import "./chunk-AL3UYZ5N.js";
|
package/dist/write-envelope.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as MemoryCategory, N as MemorySubject } from './types-
|
|
1
|
+
import { u as MemoryCategory, N as MemorySubject } from './types-nmhnJpxx.js';
|
|
2
2
|
import './message-parts/index.js';
|
|
3
3
|
import './bounded-jsonl-state.js';
|
|
4
4
|
import './operator-doctor-types.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remnic/core",
|
|
3
|
-
"version": "9.69.
|
|
3
|
+
"version": "9.69.45",
|
|
4
4
|
"description": "Framework-agnostic Remnic memory engine — orchestrator, storage, extraction, search, trust zones",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -3307,7 +3307,7 @@
|
|
|
3307
3307
|
"core"
|
|
3308
3308
|
],
|
|
3309
3309
|
"peerDependencies": {
|
|
3310
|
-
"@remnic/coding-graph": "^9.69.
|
|
3310
|
+
"@remnic/coding-graph": "^9.69.45"
|
|
3311
3311
|
},
|
|
3312
3312
|
"peerDependenciesMeta": {
|
|
3313
3313
|
"@remnic/coding-graph": {
|
|
@@ -503,6 +503,63 @@ test("#2889 suggestion_submit reports the coercion and queues the canonical cate
|
|
|
503
503
|
assert.equal("categoryCoercion" in canonical, false, "a no-alias submit reports no coercion");
|
|
504
504
|
});
|
|
505
505
|
});
|
|
506
|
+
|
|
507
|
+
// ---------------------------------------------------------------------------
|
|
508
|
+
// #2962 — direct service calls canonicalize accepted aliases at the split
|
|
509
|
+
// boundary instead of echoing them in an "unsupported category" 400
|
|
510
|
+
// ---------------------------------------------------------------------------
|
|
511
|
+
|
|
512
|
+
test("#2962 a direct service call canonicalizes an accepted alias instead of echoing it in a 400", async () => {
|
|
513
|
+
// In-process consumers call the exported service API without a wire parse,
|
|
514
|
+
// so an accepted alias arrives on `category` itself (PR #2866 review). The
|
|
515
|
+
// split boundary must canonicalize it — same contract the wire schema
|
|
516
|
+
// enforces for HTTP/MCP/CLI — and mint the retained spelling so the
|
|
517
|
+
// response still reports the coercion note.
|
|
518
|
+
await withPersistService(async ({ service, writes }) => {
|
|
519
|
+
const aliased = await service.memoryStore({
|
|
520
|
+
content: "direct in-process aliased write",
|
|
521
|
+
category: "project",
|
|
522
|
+
confidence: 0.9,
|
|
523
|
+
tags: [],
|
|
524
|
+
});
|
|
525
|
+
assert.equal(aliased.status, "stored");
|
|
526
|
+
assert.deepEqual(
|
|
527
|
+
aliased.categoryCoercion,
|
|
528
|
+
{ from: "project", to: "fact" },
|
|
529
|
+
"the retained raw spelling is still reported",
|
|
530
|
+
);
|
|
531
|
+
assert.equal(writes.length, 1);
|
|
532
|
+
assert.equal(writes[0]?.category, "fact", "the persisted memory stays canonical");
|
|
533
|
+
|
|
534
|
+
const suggested = await service.suggestionSubmit({
|
|
535
|
+
content: "direct in-process aliased suggestion",
|
|
536
|
+
category: "project_update",
|
|
537
|
+
confidence: 0.9,
|
|
538
|
+
tags: [],
|
|
539
|
+
});
|
|
540
|
+
assert.equal(suggested.status, "queued_for_review");
|
|
541
|
+
assert.deepEqual(suggested.categoryCoercion, { from: "project_update", to: "fact" });
|
|
542
|
+
assert.equal(writes.length, 2);
|
|
543
|
+
|
|
544
|
+
// A genuine near-miss changes nothing: it still rejects at the write
|
|
545
|
+
// candidate with the attempted category echoed in the 400 detail.
|
|
546
|
+
await assert.rejects(
|
|
547
|
+
service.memoryStore({
|
|
548
|
+
content: "a genuine near-miss must still reject",
|
|
549
|
+
category: "projection",
|
|
550
|
+
confidence: 0.9,
|
|
551
|
+
tags: [],
|
|
552
|
+
}),
|
|
553
|
+
(error: unknown) => {
|
|
554
|
+
assert.ok(error instanceof EngramAccessInputError);
|
|
555
|
+
assert.match(error.message, /unsupported category: projection/);
|
|
556
|
+
return true;
|
|
557
|
+
},
|
|
558
|
+
);
|
|
559
|
+
assert.equal(writes.length, 2, "the near-miss persists nothing");
|
|
560
|
+
});
|
|
561
|
+
});
|
|
562
|
+
|
|
506
563
|
// ---------------------------------------------------------------------------
|
|
507
564
|
// Quarantine — the parked payload keeps the raw spelling for replay
|
|
508
565
|
// ---------------------------------------------------------------------------
|
|
@@ -7,20 +7,39 @@
|
|
|
7
7
|
* and a replay must rebuild the note from THIS request's spelling.
|
|
8
8
|
*/
|
|
9
9
|
import {
|
|
10
|
+
canonicalCategoryForAlias,
|
|
10
11
|
categoryAliasCoercion,
|
|
11
12
|
reapplyCategoryCoercion,
|
|
12
13
|
type CategoryAliasCoercion,
|
|
14
|
+
type MemoryCategoryAlias,
|
|
13
15
|
} from "./access-schema.js";
|
|
14
16
|
|
|
15
17
|
export { reapplyCategoryCoercion };
|
|
16
18
|
export { applyBriefingLocationContext } from "./location/tagging.js";
|
|
17
19
|
|
|
18
|
-
export function splitCanonicalWriteRequest<T extends { rawCategory?: string }>(
|
|
20
|
+
export function splitCanonicalWriteRequest<T extends { rawCategory?: string; category?: string }>(
|
|
19
21
|
request: T,
|
|
20
22
|
): {
|
|
21
23
|
canonical: Omit<T, "rawCategory">;
|
|
22
24
|
categoryCoercion: CategoryAliasCoercion | undefined;
|
|
23
25
|
} {
|
|
24
26
|
const { rawCategory, ...canonical } = request;
|
|
27
|
+
// #2962: a direct service caller bypasses the wire schema, so an accepted
|
|
28
|
+
// alias can still sit on `category`. Canonicalize it at the same boundary
|
|
29
|
+
// the schema's transform covers for HTTP/MCP/CLI, minting the retained
|
|
30
|
+
// spelling from the request itself. A schema-minted `rawCategory` always
|
|
31
|
+
// wins (it names the spelling the transform actually canonicalized);
|
|
32
|
+
// near-misses pass through untouched and reject at the write candidate
|
|
33
|
+
// with the attempted category echoed.
|
|
34
|
+
if (rawCategory === undefined && typeof canonical.category === "string") {
|
|
35
|
+
const mapped = canonicalCategoryForAlias(canonical.category);
|
|
36
|
+
if (mapped !== undefined) {
|
|
37
|
+
const from = canonical.category as MemoryCategoryAlias;
|
|
38
|
+
return {
|
|
39
|
+
canonical: { ...canonical, category: mapped } as Omit<T, "rawCategory">,
|
|
40
|
+
categoryCoercion: { from, to: mapped },
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
}
|
|
25
44
|
return { canonical, categoryCoercion: categoryAliasCoercion(rawCategory) };
|
|
26
45
|
}
|
package/src/access-schema.ts
CHANGED
|
@@ -307,6 +307,16 @@ export function isMemoryCategoryAlias(value: string): value is MemoryCategoryAli
|
|
|
307
307
|
return Object.prototype.hasOwnProperty.call(MEMORY_CATEGORY_ALIAS_TO_CANONICAL, value);
|
|
308
308
|
}
|
|
309
309
|
|
|
310
|
+
/**
|
|
311
|
+
* Canonical category for an accepted alias spelling; undefined for anything
|
|
312
|
+
* else (canonical spellings and near-misses map to nothing). Service-boundary
|
|
313
|
+
* consumers that receive `category` without a prior wire parse use this to
|
|
314
|
+
* match the transport contract (#2962).
|
|
315
|
+
*/
|
|
316
|
+
export function canonicalCategoryForAlias(value: string): "fact" | undefined {
|
|
317
|
+
return isMemoryCategoryAlias(value) ? MEMORY_CATEGORY_ALIAS_TO_CANONICAL[value] : undefined;
|
|
318
|
+
}
|
|
319
|
+
|
|
310
320
|
/** Coercion diagnostic for a write whose input category was a compat alias. */
|
|
311
321
|
export interface CategoryAliasCoercion {
|
|
312
322
|
from: MemoryCategoryAlias;
|
|
@@ -130,3 +130,80 @@ test("HourlySummarizer uses backgroundGeneration and not openaiBaseUrl", async (
|
|
|
130
130
|
rmSync(memoryDir, { recursive: true, force: true });
|
|
131
131
|
}
|
|
132
132
|
});
|
|
133
|
+
|
|
134
|
+
test("HourlySummarizer routes extended summaries through backgroundGeneration", async () => {
|
|
135
|
+
const memoryDir = mkdtempSync(path.join(tmpdir(), "remnic-bg-extended-"));
|
|
136
|
+
const previousFetch = globalThis.fetch;
|
|
137
|
+
const previousXdg = process.env.XDG_CONFIG_HOME;
|
|
138
|
+
process.env.XDG_CONFIG_HOME = memoryDir;
|
|
139
|
+
const calls: string[] = [];
|
|
140
|
+
try {
|
|
141
|
+
const config = parseConfig({
|
|
142
|
+
memoryDir,
|
|
143
|
+
openaiApiKey: "keep-me",
|
|
144
|
+
openaiBaseUrl: "http://127.0.0.1:9999/v1",
|
|
145
|
+
hourlySummariesExtendedEnabled: true,
|
|
146
|
+
backgroundGeneration: {
|
|
147
|
+
endpoint: "http://127.0.0.1:8765/v1/chat/completions",
|
|
148
|
+
token: "bridge-token-fixture",
|
|
149
|
+
timeoutSeconds: 12,
|
|
150
|
+
},
|
|
151
|
+
});
|
|
152
|
+
let sentBody: string | undefined;
|
|
153
|
+
globalThis.fetch = (async (url, init) => {
|
|
154
|
+
calls.push(String(url));
|
|
155
|
+
if (String(url) !== "http://127.0.0.1:8765/v1/chat/completions") {
|
|
156
|
+
return new Response("not the bridge", { status: 404 });
|
|
157
|
+
}
|
|
158
|
+
sentBody = String(init?.body);
|
|
159
|
+
return new Response(
|
|
160
|
+
JSON.stringify({
|
|
161
|
+
choices: [
|
|
162
|
+
{
|
|
163
|
+
message: {
|
|
164
|
+
content:
|
|
165
|
+
'{"topics":["bridge-topic"],"decisions":["ship it"],"actionItems":["land the PR"],"rejected":[]}',
|
|
166
|
+
},
|
|
167
|
+
},
|
|
168
|
+
],
|
|
169
|
+
}),
|
|
170
|
+
{ status: 200, headers: { "content-type": "application/json" } },
|
|
171
|
+
);
|
|
172
|
+
}) as typeof fetch;
|
|
173
|
+
|
|
174
|
+
const summarizer = new HourlySummarizer(config);
|
|
175
|
+
const summary = await summarizer.generateSummary(
|
|
176
|
+
"session-bridge",
|
|
177
|
+
new Date("2026-08-23T10:00:00.000Z"),
|
|
178
|
+
[
|
|
179
|
+
{
|
|
180
|
+
timestamp: "2026-08-23T10:01:00.000Z",
|
|
181
|
+
role: "user",
|
|
182
|
+
content: "ship the bridge",
|
|
183
|
+
sessionKey: "session-bridge",
|
|
184
|
+
turnId: "t1",
|
|
185
|
+
},
|
|
186
|
+
],
|
|
187
|
+
);
|
|
188
|
+
|
|
189
|
+
assert.deepEqual(summary?.bullets, ["bridge-topic"]);
|
|
190
|
+
const extended = (summary as { _extended?: { topics: string[]; decisions: string[]; actionItems: string[]; rejected: string[] } })._extended;
|
|
191
|
+
assert.deepEqual(extended?.topics, ["bridge-topic"]);
|
|
192
|
+
assert.deepEqual(extended?.decisions, ["ship it"]);
|
|
193
|
+
assert.deepEqual(extended?.actionItems, ["land the PR"]);
|
|
194
|
+
assert.deepEqual(extended?.rejected, []);
|
|
195
|
+
assert.deepEqual(calls, ["http://127.0.0.1:8765/v1/chat/completions"]);
|
|
196
|
+
assert.equal(config.openaiBaseUrl, "http://127.0.0.1:9999/v1");
|
|
197
|
+
const sent = JSON.parse(String(sentBody)) as {
|
|
198
|
+
messages: Array<{ role: string; content: string }>;
|
|
199
|
+
};
|
|
200
|
+
const system = sent.messages.find((message) => message.role === "system")?.content ?? "";
|
|
201
|
+
assert.match(system, /"topics"/);
|
|
202
|
+
assert.match(system, /"decisions"/);
|
|
203
|
+
} finally {
|
|
204
|
+
globalThis.fetch = previousFetch;
|
|
205
|
+
if (previousXdg === undefined) delete process.env.XDG_CONFIG_HOME;
|
|
206
|
+
else process.env.XDG_CONFIG_HOME = previousXdg;
|
|
207
|
+
rmSync(memoryDir, { recursive: true, force: true });
|
|
208
|
+
}
|
|
209
|
+
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import assert from "node:assert/strict";
|
|
2
2
|
import { test } from "node:test";
|
|
3
|
-
import { applySpanMode } from "./extraction-span-wire.js";
|
|
3
|
+
import { applySpanMode, extractionProviderJsonSchema } from "./extraction-span-wire.js";
|
|
4
4
|
|
|
5
5
|
const TEXT = "Alice moved to Seattle";
|
|
6
6
|
|
|
@@ -18,3 +18,19 @@ test("applySpanMode: enabled slices half-open [start, end)", () => {
|
|
|
18
18
|
end: 11,
|
|
19
19
|
});
|
|
20
20
|
});
|
|
21
|
+
|
|
22
|
+
function factProperties(spanMode: "off" | "shadow" | "on") {
|
|
23
|
+
const schema = extractionProviderJsonSchema(spanMode);
|
|
24
|
+
const properties = schema.properties as
|
|
25
|
+
| Record<string, { items?: { properties?: Record<string, unknown> } }>
|
|
26
|
+
| undefined;
|
|
27
|
+
return properties?.facts?.items?.properties ?? {};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
test("provider schema omits span in off mode and keeps it in on/shadow (issue #2952)", () => {
|
|
31
|
+
assert.equal("span" in factProperties("off"), false);
|
|
32
|
+
assert.equal("span" in factProperties("on"), true);
|
|
33
|
+
assert.equal("span" in factProperties("shadow"), true);
|
|
34
|
+
assert.deepEqual(extractionProviderJsonSchema("on"), extractionProviderJsonSchema("shadow"));
|
|
35
|
+
assert.notEqual(extractionProviderJsonSchema("off"), extractionProviderJsonSchema("on"));
|
|
36
|
+
});
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Extraction seam for span mode (issue #2333 leftover slice).
|
|
2
|
+
* Extraction seam for span mode (issue #2333 leftover slice + #2952).
|
|
3
3
|
*
|
|
4
|
-
* Default off. Callers pass `enabled
|
|
5
|
-
*
|
|
4
|
+
* Default off. Callers pass `enabled` to `applySpanMode`. The provider JSON
|
|
5
|
+
* schema is mode-aware so off-mode structured output cannot advertise `span`.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
+
import { zodToJsonSchema } from "zod-to-json-schema";
|
|
9
|
+
import type { ExtractionSpanConfig } from "./extraction-span-config.js";
|
|
8
10
|
import { parseSpanOffsets, type ParsedSpan } from "./extraction-span.js";
|
|
11
|
+
import { ExtractionProviderOutputSchema } from "./schemas.js";
|
|
9
12
|
|
|
10
13
|
export function applySpanMode(opts: {
|
|
11
14
|
enabled?: boolean | 0 | 1;
|
|
@@ -15,3 +18,43 @@ export function applySpanMode(opts: {
|
|
|
15
18
|
}): ParsedSpan {
|
|
16
19
|
return parseSpanOffsets(opts.text, { start: opts.start, end: opts.end }, opts.enabled);
|
|
17
20
|
}
|
|
21
|
+
|
|
22
|
+
const JSON_SCHEMA_OPTS = { $refStrategy: "none" as const, effectStrategy: "input" as const };
|
|
23
|
+
|
|
24
|
+
const EXTRACTION_PROVIDER_JSON_SCHEMA_WITH_SPAN = zodToJsonSchema(
|
|
25
|
+
ExtractionProviderOutputSchema,
|
|
26
|
+
JSON_SCHEMA_OPTS,
|
|
27
|
+
) as Record<string, unknown>;
|
|
28
|
+
|
|
29
|
+
type FactItems = {
|
|
30
|
+
properties?: Record<string, unknown>;
|
|
31
|
+
required?: string[];
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
function omitFactSpan(schema: Record<string, unknown>): Record<string, unknown> {
|
|
35
|
+
const clone = structuredClone(schema) as {
|
|
36
|
+
properties?: { facts?: { items?: FactItems } };
|
|
37
|
+
};
|
|
38
|
+
const items = clone.properties?.facts?.items;
|
|
39
|
+
if (!items?.properties || !("span" in items.properties)) {
|
|
40
|
+
throw new Error("extraction provider schema is missing facts.items.properties.span");
|
|
41
|
+
}
|
|
42
|
+
delete items.properties.span;
|
|
43
|
+
if (Array.isArray(items.required)) {
|
|
44
|
+
items.required = items.required.filter((key) => key !== "span");
|
|
45
|
+
}
|
|
46
|
+
return clone as Record<string, unknown>;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
const EXTRACTION_PROVIDER_JSON_SCHEMA_WITHOUT_SPAN = omitFactSpan(
|
|
50
|
+
EXTRACTION_PROVIDER_JSON_SCHEMA_WITH_SPAN,
|
|
51
|
+
);
|
|
52
|
+
|
|
53
|
+
/** Provider JSON schema: `span` is present in on/shadow, absent in off. */
|
|
54
|
+
export function extractionProviderJsonSchema(
|
|
55
|
+
spanMode: ExtractionSpanConfig["spanMode"] = "off",
|
|
56
|
+
): Record<string, unknown> {
|
|
57
|
+
return spanMode === "off"
|
|
58
|
+
? EXTRACTION_PROVIDER_JSON_SCHEMA_WITHOUT_SPAN
|
|
59
|
+
: EXTRACTION_PROVIDER_JSON_SCHEMA_WITH_SPAN;
|
|
60
|
+
}
|
package/src/extraction.ts
CHANGED
|
@@ -7,7 +7,6 @@ import { shouldRunProactivePass } from "./proactive-contention.js";
|
|
|
7
7
|
import { FallbackLlmClient, fallbackLlmRuntimeContextFromConfig, gatewayTaskChainOptions } from "./fallback-llm.js";
|
|
8
8
|
import { revalidateDependentsViaLlm, type RevalidationFastChatCompletion } from "./orchestration/dependency-revalidation.js";
|
|
9
9
|
import {
|
|
10
|
-
ExtractionProviderOutputSchema,
|
|
11
10
|
ExtractionResultSchema,
|
|
12
11
|
ConsolidationResultSchema,
|
|
13
12
|
IdentityConsolidationResultSchema,
|
|
@@ -53,9 +52,9 @@ import {
|
|
|
53
52
|
eventTimePromptInstruction,
|
|
54
53
|
spanModePromptSection,
|
|
55
54
|
} from "./extraction-prompt.js";
|
|
56
|
-
import { zodToJsonSchema } from "zod-to-json-schema";
|
|
57
55
|
import { containsExtractionPlaceholder, extractionAttributes, extractionCueAnchors, extractionText, isPlainRecord } from "./extraction-normalization.js";
|
|
58
56
|
import { applyExtractionSpanMaterialization, bindLocalExtractionPrompt, buildSpanMaterializeTurns, stripUntrustedFactSpans, truncateLocalExtractionConversation, type SpanMaterializeTurn } from "./extraction-span-materialize.js";
|
|
57
|
+
import { extractionProviderJsonSchema } from "./extraction-span-wire.js";
|
|
59
58
|
import { resolveLocalLlmCapabilities, resolveMemoryLifecycleCapabilities, resolvePipelineProcessingCapabilities, resolveRecallAuxiliaryCapabilities } from "./capabilities.js";
|
|
60
59
|
type ExtractionQuestion = ExtractionResult["questions"][number];
|
|
61
60
|
type ExtractedFactResult = ExtractionResult["facts"][number];
|
|
@@ -64,14 +63,6 @@ type ExtractedRelationshipResult = NonNullable<ExtractionResult["relationships"]
|
|
|
64
63
|
|
|
65
64
|
const PROACTIVE_MIN_CONFIDENCE = 0.8;
|
|
66
65
|
|
|
67
|
-
const EXTRACTION_PROVIDER_JSON_SCHEMA = zodToJsonSchema(
|
|
68
|
-
ExtractionProviderOutputSchema,
|
|
69
|
-
{
|
|
70
|
-
$refStrategy: "none",
|
|
71
|
-
effectStrategy: "input",
|
|
72
|
-
},
|
|
73
|
-
) as Record<string, unknown>;
|
|
74
|
-
|
|
75
66
|
function extractionEntityType(value: unknown): ExtractedEntityResult["type"] | undefined {
|
|
76
67
|
const type = extractionText(value);
|
|
77
68
|
if (
|
|
@@ -1353,7 +1344,7 @@ export class ExtractionEngine {
|
|
|
1353
1344
|
timeoutMs: this.config.taskLlmTimeoutMs ?? this.config.localLlmTimeoutMs,
|
|
1354
1345
|
jsonSchema: {
|
|
1355
1346
|
name: "extraction_result",
|
|
1356
|
-
schema:
|
|
1347
|
+
schema: extractionProviderJsonSchema(this.config.extraction?.spanMode ?? "off"),
|
|
1357
1348
|
strict: false,
|
|
1358
1349
|
},
|
|
1359
1350
|
signal,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import assert from "node:assert/strict";
|
|
2
|
+
import test from "node:test";
|
|
3
|
+
import { parseLocalLlmConfig } from "./local-llm-config.js";
|
|
4
|
+
|
|
5
|
+
test("#2964: parseLocalLlmConfig round-trips a free-form localLlmHeaders key", () => {
|
|
6
|
+
const parsed = parseLocalLlmConfig(
|
|
7
|
+
{
|
|
8
|
+
localLlmHeaders: {
|
|
9
|
+
"X-Remnic-Canary": "alpha-9",
|
|
10
|
+
Authorization: "Bearer x",
|
|
11
|
+
drop: 1,
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
undefined,
|
|
15
|
+
(value) => value,
|
|
16
|
+
);
|
|
17
|
+
assert.deepEqual(parsed.localLlmHeaders, {
|
|
18
|
+
"X-Remnic-Canary": "alpha-9",
|
|
19
|
+
Authorization: "Bearer x",
|
|
20
|
+
});
|
|
21
|
+
});
|