@remnic/core 9.69.45 → 9.69.47
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 +15 -14
- package/dist/access-admin-ops-surface.js +40 -39
- package/dist/access-audit.js +2 -2
- package/dist/access-authorization-probe.d.ts +15 -14
- package/dist/access-authorization-probe.js +41 -40
- package/dist/access-boundary.d.ts +15 -14
- package/dist/access-boundary.js +40 -39
- package/dist/access-cli.js +110 -104
- 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 +15 -14
- package/dist/access-extraction-force-flush.js +40 -39
- package/dist/access-health-types.d.ts +1 -1
- package/dist/access-http-briefing.d.ts +15 -14
- package/dist/access-http-briefing.js +41 -40
- package/dist/access-http-lcm-compaction.d.ts +15 -14
- package/dist/access-http-lifecycle-flush.d.ts +15 -14
- package/dist/access-http-offline-stream.d.ts +15 -14
- package/dist/access-http-query.d.ts +2 -2
- package/dist/access-http-query.js +42 -41
- package/dist/access-http.d.ts +16 -15
- package/dist/access-http.js +64 -60
- package/dist/access-identity-continuity-surface.d.ts +11 -11
- package/dist/access-identity-continuity-surface.js +40 -39
- package/dist/access-lcm-surface.d.ts +15 -14
- package/dist/access-lcm-surface.js +40 -39
- package/dist/access-mcp-output-schemas.js +1 -1
- package/dist/access-mcp-shared-context-tools.d.ts +15 -14
- package/dist/access-mcp.d.ts +15 -14
- package/dist/access-mcp.js +53 -50
- package/dist/access-memory-search-fanout.d.ts +2 -2
- package/dist/{access-namespace-preflight-DDnsN22V.d.ts → access-namespace-preflight-CetF9ziA.d.ts} +1 -1
- package/dist/access-namespace-preflight.d.ts +3 -3
- package/dist/access-namespace-preflight.js +40 -39
- package/dist/access-observe-transcript.d.ts +11 -11
- package/dist/access-observe-write-category.d.ts +3 -3
- package/dist/access-observe-write-surface.d.ts +15 -14
- package/dist/access-observe-write-surface.js +40 -39
- package/dist/access-offline-manifest.d.ts +11 -11
- package/dist/access-offline-manifest.js +2 -2
- package/dist/access-operations-batch.js +42 -41
- package/dist/access-operations.d.ts +16 -15
- package/dist/access-operations.js +49 -47
- package/dist/access-recall-concurrency.d.ts +15 -14
- package/dist/access-recall-concurrency.js +40 -39
- package/dist/access-recall-response.d.ts +15 -14
- package/dist/access-recall-response.js +40 -39
- package/dist/access-recall-surface.d.ts +15 -14
- package/dist/access-recall-surface.js +40 -39
- package/dist/access-schema.d.ts +1 -1
- package/dist/{access-service-CDteK_Gt.d.ts → access-service-BXYrJ3pO.d.ts} +13 -10
- package/dist/access-service-helpers.d.ts +15 -14
- package/dist/access-service.d.ts +15 -14
- package/dist/access-service.js +40 -39
- package/dist/access-surface-catalog.d.ts +15 -14
- package/dist/access-surface-catalog.js +48 -41
- package/dist/access-surface-catalog.js.map +1 -1
- 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 +3 -2
- package/dist/active-recall.js.map +1 -1
- package/dist/activity/digest.d.ts +1 -1
- package/dist/adapters/index.js +4 -4
- package/dist/adapters/registry.js +2 -2
- package/dist/ambient-provenance.d.ts +1 -1
- package/dist/artifact-search.d.ts +1 -1
- 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 +13 -13
- 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 +5 -5
- package/dist/bulk-import/index.d.ts +3 -3
- package/dist/calibration.d.ts +1 -1
- package/dist/capabilities.d.ts +1 -1
- package/dist/{catalog-Dl2hYqpS.d.ts → catalog-Bns9zpl3.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 +14 -14
- package/dist/causal-trajectory-graph.d.ts +1 -1
- package/dist/{chunk-OREGA7GY.js → chunk-2JFSQWFH.js} +5 -5
- package/dist/chunk-2JFSQWFH.js.map +1 -0
- package/dist/{chunk-C3MCMFNV.js → chunk-2QX65IEC.js} +2 -2
- package/dist/{chunk-HBGSZ62Z.js → chunk-3RKVSECD.js} +8 -8
- package/dist/{chunk-7LKXP4QG.js → chunk-44BILQ7U.js} +85 -43
- package/dist/chunk-44BILQ7U.js.map +1 -0
- package/dist/{chunk-R4HFCATE.js → chunk-4LPIVP77.js} +2 -2
- package/dist/{chunk-PW4HTWXL.js → chunk-55XWRL6F.js} +2 -2
- package/dist/{chunk-E5VOKZQV.js → chunk-5KBI2MOC.js} +1 -1
- package/dist/{chunk-ZQ533JDE.js → chunk-6A6HSXWV.js} +2 -2
- package/dist/{chunk-4HTQ76O4.js → chunk-7SJCSDQ3.js} +2 -2
- package/dist/{chunk-A2YN3FR4.js → chunk-7YUX52XZ.js} +3 -3
- package/dist/{chunk-NKDQXDFL.js → chunk-AS4YKT75.js} +36 -26
- package/dist/chunk-AS4YKT75.js.map +1 -0
- package/dist/{chunk-LQVXSRAJ.js → chunk-B4EGAHHS.js} +2 -2
- package/dist/{chunk-EUP4AXIW.js → chunk-B6VDWDFN.js} +2 -2
- package/dist/{chunk-Z5YNVWRD.js → chunk-BMENHAJL.js} +2 -2
- package/dist/{chunk-5ZXGH2ZL.js → chunk-BXOPUJ3W.js} +2 -2
- package/dist/{chunk-J6NEOCQC.js → chunk-CD7VTZIG.js} +2 -2
- package/dist/{chunk-EC5SVM6H.js → chunk-DE4ZGH2N.js} +2 -2
- package/dist/{chunk-2LRO73MN.js → chunk-DRLZB3CN.js} +2 -2
- package/dist/{chunk-SHEHQBCG.js → chunk-DUJYRVUD.js} +638 -45
- package/dist/chunk-DUJYRVUD.js.map +1 -0
- package/dist/{chunk-Q4MI2KCG.js → chunk-EGOWY342.js} +2 -2
- package/dist/chunk-EIB4FJVR.js +46 -0
- package/dist/chunk-EIB4FJVR.js.map +1 -0
- package/dist/{chunk-W44T2KHG.js → chunk-EWBDJQ5Y.js} +3 -3
- package/dist/{chunk-JMBTNVMW.js → chunk-FGRJJBFO.js} +2 -2
- package/dist/{chunk-F3TURDFG.js → chunk-FPB5LQWW.js} +4 -1
- package/dist/{chunk-F3TURDFG.js.map → chunk-FPB5LQWW.js.map} +1 -1
- package/dist/{chunk-OOBUWMPY.js → chunk-G2SJRFGP.js} +6 -6
- package/dist/{chunk-WGZHSQDV.js → chunk-G2XZFGYN.js} +4 -4
- package/dist/{chunk-JPNUKKSL.js → chunk-GGROFIYX.js} +2 -2
- package/dist/chunk-GXJSLNYO.js +74 -0
- package/dist/chunk-GXJSLNYO.js.map +1 -0
- package/dist/{chunk-VA5QRTZX.js → chunk-HG74GEVY.js} +2 -2
- package/dist/chunk-HMDYSGY6.js +54 -0
- package/dist/chunk-HMDYSGY6.js.map +1 -0
- package/dist/{chunk-WUUGE7QC.js → chunk-HS75MCQF.js} +4 -4
- package/dist/{chunk-DO6R3LIE.js → chunk-I6IJDTRP.js} +2 -2
- package/dist/{chunk-T3F2HWIG.js → chunk-IO7K7GES.js} +2 -2
- package/dist/{chunk-6II55MXS.js → chunk-JXLEQIJ7.js} +2 -2
- package/dist/{chunk-4XTSKGLX.js → chunk-JYXLW22X.js} +3 -3
- package/dist/chunk-LI4APB6M.js +218 -0
- package/dist/chunk-LI4APB6M.js.map +1 -0
- package/dist/{chunk-IFULZYYQ.js → chunk-LIAM7U2J.js} +2 -2
- package/dist/{chunk-LZAJONO5.js → chunk-LIDJWAQV.js} +2 -2
- package/dist/{chunk-B55FYF6F.js → chunk-LYMJ36UI.js} +2 -2
- package/dist/chunk-M4DB6ZNN.js +87 -0
- package/dist/chunk-M4DB6ZNN.js.map +1 -0
- package/dist/{chunk-5TKHJ5RW.js → chunk-MMQVWKFY.js} +17 -13
- package/dist/chunk-MMQVWKFY.js.map +1 -0
- package/dist/{chunk-IAT5WFEU.js → chunk-MNG536IS.js} +261 -797
- package/dist/chunk-MNG536IS.js.map +1 -0
- package/dist/{chunk-AOMUIF3R.js → chunk-MQT3WP3F.js} +2 -2
- package/dist/{chunk-F6AYWLRN.js → chunk-NE45P3OF.js} +2 -2
- package/dist/{chunk-5XTILJRI.js → chunk-NMA7RQPR.js} +2 -2
- package/dist/{chunk-46A4RGBC.js → chunk-OS4JVTHR.js} +3 -3
- package/dist/{chunk-W6YDAIVB.js → chunk-OSTXIFZW.js} +13 -2
- package/dist/chunk-OSTXIFZW.js.map +1 -0
- package/dist/chunk-P3YNEMYY.js +212 -0
- package/dist/chunk-P3YNEMYY.js.map +1 -0
- package/dist/{chunk-C3YEB7CR.js → chunk-PA67GXYJ.js} +5 -5
- package/dist/{chunk-NGAFYIHQ.js → chunk-PPJLJD2D.js} +2 -2
- package/dist/{chunk-AG6PANBG.js → chunk-PXJ6HE2W.js} +11 -11
- package/dist/{chunk-BOWAP64Q.js → chunk-QB4VXCFN.js} +2 -2
- package/dist/{chunk-L63M2PE4.js → chunk-QGAKUOKU.js} +2 -2
- package/dist/{chunk-T2ZNUWUY.js → chunk-QKFYJVDG.js} +2 -2
- package/dist/{chunk-YHSEUZV5.js → chunk-QLCMOHRE.js} +2 -2
- package/dist/{chunk-Q4AUIFUA.js → chunk-QMWKENNK.js} +4 -4
- package/dist/{chunk-UJXNBZYJ.js → chunk-R4JTUTU6.js} +12 -5
- package/dist/chunk-R4JTUTU6.js.map +1 -0
- package/dist/{chunk-TFS5FAAC.js → chunk-ROBGBT3D.js} +213 -77
- package/dist/chunk-ROBGBT3D.js.map +1 -0
- package/dist/{chunk-TNQR7N52.js → chunk-S3YM4SZQ.js} +2 -1
- package/dist/chunk-S3YM4SZQ.js.map +1 -0
- package/dist/{chunk-RW4QNB4J.js → chunk-S45INSV3.js} +3 -1
- package/dist/{chunk-RW4QNB4J.js.map → chunk-S45INSV3.js.map} +1 -1
- package/dist/{chunk-HVGCQMTQ.js → chunk-SJ7ZNUXB.js} +2 -2
- package/dist/{chunk-WCQ7L54B.js → chunk-SK6HEQTW.js} +2 -2
- package/dist/{chunk-PGAB2V53.js → chunk-SMBWBEE7.js} +2 -2
- package/dist/{chunk-SPN5YFXN.js → chunk-SS33RR4F.js} +8 -8
- package/dist/{chunk-NRFUYVW7.js → chunk-T3T5HTZZ.js} +2 -2
- package/dist/{chunk-KG2OOAFF.js → chunk-TQSCR5DU.js} +6 -6
- package/dist/{chunk-7K5Q6COX.js → chunk-TVVEYCNW.js} +4 -4
- package/dist/{chunk-ZLVURGAJ.js → chunk-V2XNMIAM.js} +2 -2
- package/dist/{chunk-AS2NOPDM.js → chunk-V7IONNTJ.js} +2 -2
- package/dist/{chunk-OFBJD3V5.js → chunk-VV5GCNKG.js} +2 -2
- package/dist/{chunk-MDYZCPNQ.js → chunk-WL3PGPGU.js} +2 -2
- package/dist/{chunk-66YUOI53.js → chunk-WQW6KPVC.js} +1 -1
- package/dist/chunk-WQW6KPVC.js.map +1 -0
- package/dist/{chunk-2AV75BJW.js → chunk-WVI43D54.js} +24 -1
- package/dist/chunk-WVI43D54.js.map +1 -0
- package/dist/{chunk-N6I257OM.js → chunk-WYU66IVZ.js} +3 -3
- package/dist/{chunk-A7GQBJP5.js → chunk-X2NFFBTO.js} +4 -4
- package/dist/{chunk-D3DJYGU2.js → chunk-XEHLYA5Z.js} +3 -3
- package/dist/{chunk-JIWZVOQM.js → chunk-XKHRNAK7.js} +2 -2
- package/dist/{chunk-VW5TGNJN.js → chunk-XXLH6KFO.js} +2 -2
- package/dist/{chunk-WMTYEQO5.js → chunk-XZUHXKM3.js} +2 -2
- package/dist/{chunk-K4KE5MYE.js → chunk-Y5VT7BIT.js} +2 -2
- package/dist/{chunk-M7ECD3KN.js → chunk-YOSLKZLZ.js} +2 -2
- package/dist/{chunk-K75H7FSO.js → chunk-YXWMZAAN.js} +2 -2
- package/dist/{chunk-DSHSQGSN.js → chunk-ZEIJQ4I3.js} +2 -2
- package/dist/{cli-CZDhIcxu.d.ts → cli-B8YyIrPR.d.ts} +5 -5
- package/dist/cli.d.ts +17 -16
- package/dist/cli.js +81 -76
- package/dist/coding/export-okf-codegraph.d.ts +1 -1
- package/dist/coding/export-okf-codegraph.js +12 -12
- package/dist/coding/pre-action-gate.d.ts +1 -1
- package/dist/compounding/engine.d.ts +2 -2
- package/dist/compounding/engine.js +13 -13
- 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 +3 -2
- package/dist/connectors/codex-materialize-runner.d.ts +1 -1
- package/dist/connectors/codex-materialize-runner.js +13 -13
- package/dist/connectors/codex-materialize.d.ts +1 -1
- package/dist/connectors/index.d.ts +1 -1
- package/dist/connectors/index.js +13 -13
- 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 +15 -15
- 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 +15 -15
- 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 +15 -14
- package/dist/deep-recall-mcp-tools.d.ts +15 -14
- package/dist/deep-recall-policy-llm.d.ts +2 -2
- package/dist/deep-recall-seeds.d.ts +1 -1
- package/dist/deep-recall.js +2 -2
- package/dist/delinearize.d.ts +1 -1
- package/dist/dependency-propagation-config.d.ts +1 -1
- package/dist/{dependency-propagation-delivery-BXaUoVUf.d.ts → dependency-propagation-delivery-B-LvcDaq.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 +13 -13
- 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/explicit-capture.js +2 -2
- package/dist/external-wiki-access.d.ts +15 -14
- package/dist/external-wiki-access.js +41 -40
- 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 +15 -14
- package/dist/extraction-error-classification.d.ts +1 -1
- package/dist/extraction-evidence-class.d.ts +142 -0
- package/dist/extraction-evidence-class.js +113 -0
- package/dist/extraction-evidence-class.js.map +1 -0
- package/dist/extraction-faithfulness.d.ts +2 -2
- 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-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-source-grounding.js +2 -2
- 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 +1 -1
- package/dist/extraction.d.ts +2 -2
- package/dist/extraction.js +21 -21
- package/dist/fallback-llm-codex-subscription.d.ts +1 -1
- package/dist/fallback-llm.d.ts +1 -1
- package/dist/{generic-recall-paths-BkVVEoeO.d.ts → generic-recall-paths-Bfc7zigS.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-TBPe6NvB.d.ts → index-C7IA1DxB.d.ts} +3 -3
- package/dist/index.d.ts +121 -30
- package/dist/index.js +170 -123
- package/dist/intent.d.ts +1 -1
- package/dist/lcm/engine.d.ts +1 -1
- package/dist/lcm/engine.js +2 -2
- package/dist/lcm/index.d.ts +1 -1
- package/dist/lcm/index.js +4 -4
- 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-DdrhmecM.d.ts → local-llm-DH4tWtck.d.ts} +1 -1
- package/dist/local-llm-helpers.d.ts +2 -2
- package/dist/local-llm.d.ts +2 -2
- package/dist/local-llm.js +2 -2
- package/dist/local-model-endpoint.d.ts +1 -1
- package/dist/location/index.d.ts +5 -5
- package/dist/location/index.js +15 -15
- package/dist/maintenance/memory-governance.d.ts +1 -1
- package/dist/maintenance/memory-governance.js +13 -13
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.d.ts +2 -2
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +13 -13
- package/dist/maintenance/rebuild-memory-projection.d.ts +2 -2
- package/dist/maintenance/rebuild-memory-projection.js +14 -14
- package/dist/{maintenance-B813YFWJ.d.ts → maintenance-n6yeTQhR.d.ts} +4 -4
- package/dist/mcp-memory-inspector-app.d.ts +15 -14
- package/dist/mcp-read-only-tools.js +1 -1
- package/dist/memory-action-policy.d.ts +1 -1
- package/dist/memory-age.d.ts +100 -0
- package/dist/memory-age.js +22 -0
- package/dist/memory-age.js.map +1 -0
- package/dist/memory-browse-http-glue.d.ts +170 -0
- package/dist/memory-browse-http-glue.js +9 -0
- package/dist/memory-browse-http-glue.js.map +1 -0
- package/dist/memory-browse-mcp-tools.d.ts +160 -0
- package/dist/memory-browse-mcp-tools.js +8 -0
- package/dist/memory-browse-mcp-tools.js.map +1 -0
- package/dist/memory-browse-operations.d.ts +2 -0
- package/dist/memory-browse-operations.js +246 -0
- package/dist/memory-browse-operations.js.map +1 -0
- package/dist/memory-browse.d.ts +113 -0
- package/dist/memory-browse.js +49 -0
- package/dist/memory-browse.js.map +1 -0
- 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 +15 -14
- package/dist/memory-subject.d.ts +15 -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 +14 -14
- package/dist/namespaces/principal.d.ts +1 -1
- package/dist/namespaces/search.d.ts +1 -1
- package/dist/namespaces/search.js +6 -6
- package/dist/namespaces/storage.d.ts +3 -3
- package/dist/namespaces/storage.js +13 -13
- 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 +16 -16
- package/dist/operator-doctor-replica.d.ts +1 -1
- package/dist/operator-toolkit.d.ts +3 -3
- package/dist/operator-toolkit.js +23 -22
- package/dist/orchestration/compression-guideline-coordinator.d.ts +2 -2
- package/dist/orchestration/maintenance.d.ts +4 -4
- package/dist/orchestration/maintenance.js +23 -23
- package/dist/{orchestrator-BCvQavIS.d.ts → orchestrator-Cirjo3ZB.d.ts} +10 -10
- package/dist/orchestrator.d.ts +11 -11
- package/dist/orchestrator.js +112 -106
- package/dist/patterns-cli.d.ts +1 -1
- package/dist/{pipeline-4lqKJZ_0.d.ts → pipeline-DK79FrgH.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 +77 -2
- package/dist/provenance.js +7 -3
- package/dist/{public-http-NH72a6aa.d.ts → public-http-VB85y0ZH.d.ts} +1 -1
- package/dist/{qmd-DnoWaXKb.d.ts → qmd-BT0ErlRS.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/qmd.js +4 -4
- 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-explain-renderer.js +3 -3
- package/dist/recall-memory-map.d.ts +1 -1
- package/dist/recall-navigate-access.d.ts +1 -1
- package/dist/recall-navigate-access.js +2 -2
- package/dist/recall-navigate-disclosure.d.ts +1 -1
- package/dist/recall-navigate-disclosure.js +2 -2
- package/dist/recall-navigate.d.ts +1 -1
- package/dist/recall-navigate.js +2 -2
- package/dist/recall-navigation-http-glue.d.ts +15 -14
- package/dist/recall-navigation-mcp-tools.d.ts +15 -14
- package/dist/recall-navigation-operations.js +41 -40
- package/dist/recall-navigation-renderer.d.ts +1 -1
- package/dist/recall-navigation.d.ts +1 -1
- package/dist/recall-navigation.js +40 -39
- package/dist/recall-planner-llm.d.ts +1 -1
- package/dist/recall-state-view-admission.d.ts +2 -2
- package/dist/recall-state-view-admission.js +5 -5
- 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-cli.js +4 -4
- package/dist/recall-xray-renderer.d.ts +1 -1
- package/dist/recall-xray-renderer.js +3 -3
- package/dist/recall-xray.d.ts +1 -1
- package/dist/recall-xray.js +2 -2
- package/dist/reconcile/cursor.d.ts +1 -1
- package/dist/reconcile/manifest.d.ts +4 -1
- package/dist/reconcile/manifest.js +1 -1
- 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 +4 -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-crazXegZ.d.ts → scope-profiles-BgPQx9iE.d.ts} +1 -1
- package/dist/search/embed-helper.d.ts +1 -1
- package/dist/search/factory.d.ts +1 -1
- package/dist/search/factory.js +5 -5
- package/dist/search/index.d.ts +1 -1
- package/dist/search/index.js +9 -9
- 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-B09JI9WM.d.ts → semantic-consolidation-BrAWKVcm.d.ts} +1 -1
- package/dist/semantic-consolidation.d.ts +2 -2
- package/dist/semantic-consolidation.js +14 -14
- package/dist/semantic-rule-promotion.js +13 -13
- package/dist/semantic-rule-verifier.d.ts +1 -1
- package/dist/semantic-rule-verifier.js +13 -13
- package/dist/{service-Echc5Xso.d.ts → service-CqHOTg87.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 +17 -17
- package/dist/standing-memory-block.d.ts +77 -0
- package/dist/standing-memory-block.js +40 -0
- package/dist/standing-memory-block.js.map +1 -0
- package/dist/standup/build.js +13 -13
- package/dist/{storage-ClkHCQSE.d.ts → storage-mD2YQ8_2.d.ts} +17 -3
- package/dist/storage.d.ts +2 -2
- package/dist/storage.js +12 -12
- 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 +18 -17
- package/dist/support-passport/index.js +43 -42
- package/dist/{tagging-ksktJ60G.d.ts → tagging-CiAVA-ID.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 +13 -13
- package/dist/trust-score-stage.d.ts +1 -1
- package/dist/trust-score.d.ts +1 -1
- package/dist/{types-nmhnJpxx.d.ts → types-DgDaoY61.d.ts} +6 -0
- package/dist/types.d.ts +1 -1
- package/dist/types.js +1 -1
- package/dist/utility-runtime.d.ts +1 -1
- package/dist/verified-recall.js +13 -13
- package/dist/who-knows-cli.d.ts +15 -14
- package/dist/who-knows-cli.js +14 -14
- package/dist/who-knows.d.ts +15 -14
- package/dist/who-knows.js +13 -13
- package/dist/write-envelope.d.ts +1 -1
- package/package.json +2 -2
- package/src/access-boundary.ts +3 -0
- package/src/access-http.ts +2 -2
- package/src/access-mcp-output-schemas.ts +25 -0
- package/src/access-mcp.ts +3 -3
- package/src/access-operations.ts +2 -0
- package/src/access-service.ts +6 -1
- package/src/access-surface-catalog.test.ts +20 -0
- package/src/access-surface-catalog.ts +6 -0
- package/src/activity/timeline/index.ts +1 -0
- package/src/activity/timeline/journal-recap.test.ts +17 -0
- package/src/activity/timeline/journal-recap.ts +19 -6
- package/src/activity/timeline/recap-export-range.test.ts +289 -0
- package/src/activity/timeline/recap-export-range.ts +169 -0
- package/src/activity/timeline/recap-export.test.ts +73 -1
- package/src/activity/timeline/recap-export.ts +57 -4
- package/src/cli/memory-browse-commands.ts +77 -0
- package/src/cli.ts +2 -2
- package/src/config.ts +11 -0
- package/src/dedup/merge.test.ts +185 -8
- package/src/extraction-evidence-class.test.ts +355 -0
- package/src/extraction-evidence-class.ts +241 -0
- package/src/index.ts +1 -0
- package/src/mcp-read-only-tools.ts +3 -0
- package/src/memory-age.test.ts +106 -0
- package/src/memory-age.ts +196 -0
- package/src/memory-browse-http-glue.ts +93 -0
- package/src/memory-browse-mcp-tools.ts +57 -0
- package/src/memory-browse-operations.ts +88 -0
- package/src/memory-browse-surface.test.ts +500 -0
- package/src/memory-browse.ts +316 -0
- package/src/orchestration/recall-search-pipeline.test.ts +207 -1
- package/src/orchestration/recall-search-pipeline.ts +13 -9
- package/src/orchestration/semantic-merge-commit-effects.ts +31 -9
- package/src/orchestration/semantic-merge-persist.ts +16 -5
- package/src/provenance.ts +3 -3
- package/src/reconcile/manifest.test.ts +27 -0
- package/src/reconcile/manifest.ts +7 -0
- package/src/standing-memory-block.test.ts +262 -0
- package/src/standing-memory-block.ts +331 -0
- package/src/storage/cas-revision-host.ts +22 -0
- package/src/storage/cas-revision-store.test.ts +44 -1
- package/src/storage/cas-revision-store.ts +23 -0
- package/src/storage/tombstone-blocked-capture-sync.ts +26 -1
- package/src/storage-frontmatter-cas.test.ts +49 -1
- package/src/storage.ts +1 -1
- package/src/types.ts +6 -0
- package/dist/chunk-2AV75BJW.js.map +0 -1
- package/dist/chunk-5TKHJ5RW.js.map +0 -1
- package/dist/chunk-66YUOI53.js.map +0 -1
- package/dist/chunk-7LKXP4QG.js.map +0 -1
- package/dist/chunk-IAT5WFEU.js.map +0 -1
- package/dist/chunk-NKDQXDFL.js.map +0 -1
- package/dist/chunk-OREGA7GY.js.map +0 -1
- package/dist/chunk-SHEHQBCG.js.map +0 -1
- package/dist/chunk-TFS5FAAC.js.map +0 -1
- package/dist/chunk-TNQR7N52.js.map +0 -1
- package/dist/chunk-UJXNBZYJ.js.map +0 -1
- package/dist/chunk-W6YDAIVB.js.map +0 -1
- /package/dist/{chunk-C3MCMFNV.js.map → chunk-2QX65IEC.js.map} +0 -0
- /package/dist/{chunk-HBGSZ62Z.js.map → chunk-3RKVSECD.js.map} +0 -0
- /package/dist/{chunk-R4HFCATE.js.map → chunk-4LPIVP77.js.map} +0 -0
- /package/dist/{chunk-PW4HTWXL.js.map → chunk-55XWRL6F.js.map} +0 -0
- /package/dist/{chunk-E5VOKZQV.js.map → chunk-5KBI2MOC.js.map} +0 -0
- /package/dist/{chunk-ZQ533JDE.js.map → chunk-6A6HSXWV.js.map} +0 -0
- /package/dist/{chunk-4HTQ76O4.js.map → chunk-7SJCSDQ3.js.map} +0 -0
- /package/dist/{chunk-A2YN3FR4.js.map → chunk-7YUX52XZ.js.map} +0 -0
- /package/dist/{chunk-LQVXSRAJ.js.map → chunk-B4EGAHHS.js.map} +0 -0
- /package/dist/{chunk-EUP4AXIW.js.map → chunk-B6VDWDFN.js.map} +0 -0
- /package/dist/{chunk-Z5YNVWRD.js.map → chunk-BMENHAJL.js.map} +0 -0
- /package/dist/{chunk-5ZXGH2ZL.js.map → chunk-BXOPUJ3W.js.map} +0 -0
- /package/dist/{chunk-J6NEOCQC.js.map → chunk-CD7VTZIG.js.map} +0 -0
- /package/dist/{chunk-EC5SVM6H.js.map → chunk-DE4ZGH2N.js.map} +0 -0
- /package/dist/{chunk-2LRO73MN.js.map → chunk-DRLZB3CN.js.map} +0 -0
- /package/dist/{chunk-Q4MI2KCG.js.map → chunk-EGOWY342.js.map} +0 -0
- /package/dist/{chunk-W44T2KHG.js.map → chunk-EWBDJQ5Y.js.map} +0 -0
- /package/dist/{chunk-JMBTNVMW.js.map → chunk-FGRJJBFO.js.map} +0 -0
- /package/dist/{chunk-OOBUWMPY.js.map → chunk-G2SJRFGP.js.map} +0 -0
- /package/dist/{chunk-WGZHSQDV.js.map → chunk-G2XZFGYN.js.map} +0 -0
- /package/dist/{chunk-JPNUKKSL.js.map → chunk-GGROFIYX.js.map} +0 -0
- /package/dist/{chunk-VA5QRTZX.js.map → chunk-HG74GEVY.js.map} +0 -0
- /package/dist/{chunk-WUUGE7QC.js.map → chunk-HS75MCQF.js.map} +0 -0
- /package/dist/{chunk-DO6R3LIE.js.map → chunk-I6IJDTRP.js.map} +0 -0
- /package/dist/{chunk-T3F2HWIG.js.map → chunk-IO7K7GES.js.map} +0 -0
- /package/dist/{chunk-6II55MXS.js.map → chunk-JXLEQIJ7.js.map} +0 -0
- /package/dist/{chunk-4XTSKGLX.js.map → chunk-JYXLW22X.js.map} +0 -0
- /package/dist/{chunk-IFULZYYQ.js.map → chunk-LIAM7U2J.js.map} +0 -0
- /package/dist/{chunk-LZAJONO5.js.map → chunk-LIDJWAQV.js.map} +0 -0
- /package/dist/{chunk-B55FYF6F.js.map → chunk-LYMJ36UI.js.map} +0 -0
- /package/dist/{chunk-AOMUIF3R.js.map → chunk-MQT3WP3F.js.map} +0 -0
- /package/dist/{chunk-F6AYWLRN.js.map → chunk-NE45P3OF.js.map} +0 -0
- /package/dist/{chunk-5XTILJRI.js.map → chunk-NMA7RQPR.js.map} +0 -0
- /package/dist/{chunk-46A4RGBC.js.map → chunk-OS4JVTHR.js.map} +0 -0
- /package/dist/{chunk-C3YEB7CR.js.map → chunk-PA67GXYJ.js.map} +0 -0
- /package/dist/{chunk-NGAFYIHQ.js.map → chunk-PPJLJD2D.js.map} +0 -0
- /package/dist/{chunk-AG6PANBG.js.map → chunk-PXJ6HE2W.js.map} +0 -0
- /package/dist/{chunk-BOWAP64Q.js.map → chunk-QB4VXCFN.js.map} +0 -0
- /package/dist/{chunk-L63M2PE4.js.map → chunk-QGAKUOKU.js.map} +0 -0
- /package/dist/{chunk-T2ZNUWUY.js.map → chunk-QKFYJVDG.js.map} +0 -0
- /package/dist/{chunk-YHSEUZV5.js.map → chunk-QLCMOHRE.js.map} +0 -0
- /package/dist/{chunk-Q4AUIFUA.js.map → chunk-QMWKENNK.js.map} +0 -0
- /package/dist/{chunk-HVGCQMTQ.js.map → chunk-SJ7ZNUXB.js.map} +0 -0
- /package/dist/{chunk-WCQ7L54B.js.map → chunk-SK6HEQTW.js.map} +0 -0
- /package/dist/{chunk-PGAB2V53.js.map → chunk-SMBWBEE7.js.map} +0 -0
- /package/dist/{chunk-SPN5YFXN.js.map → chunk-SS33RR4F.js.map} +0 -0
- /package/dist/{chunk-NRFUYVW7.js.map → chunk-T3T5HTZZ.js.map} +0 -0
- /package/dist/{chunk-KG2OOAFF.js.map → chunk-TQSCR5DU.js.map} +0 -0
- /package/dist/{chunk-7K5Q6COX.js.map → chunk-TVVEYCNW.js.map} +0 -0
- /package/dist/{chunk-ZLVURGAJ.js.map → chunk-V2XNMIAM.js.map} +0 -0
- /package/dist/{chunk-AS2NOPDM.js.map → chunk-V7IONNTJ.js.map} +0 -0
- /package/dist/{chunk-OFBJD3V5.js.map → chunk-VV5GCNKG.js.map} +0 -0
- /package/dist/{chunk-MDYZCPNQ.js.map → chunk-WL3PGPGU.js.map} +0 -0
- /package/dist/{chunk-N6I257OM.js.map → chunk-WYU66IVZ.js.map} +0 -0
- /package/dist/{chunk-A7GQBJP5.js.map → chunk-X2NFFBTO.js.map} +0 -0
- /package/dist/{chunk-D3DJYGU2.js.map → chunk-XEHLYA5Z.js.map} +0 -0
- /package/dist/{chunk-JIWZVOQM.js.map → chunk-XKHRNAK7.js.map} +0 -0
- /package/dist/{chunk-VW5TGNJN.js.map → chunk-XXLH6KFO.js.map} +0 -0
- /package/dist/{chunk-WMTYEQO5.js.map → chunk-XZUHXKM3.js.map} +0 -0
- /package/dist/{chunk-K4KE5MYE.js.map → chunk-Y5VT7BIT.js.map} +0 -0
- /package/dist/{chunk-M7ECD3KN.js.map → chunk-YOSLKZLZ.js.map} +0 -0
- /package/dist/{chunk-K75H7FSO.js.map → chunk-YXWMZAAN.js.map} +0 -0
- /package/dist/{chunk-DSHSQGSN.js.map → chunk-ZEIJQ4I3.js.map} +0 -0
|
@@ -1,74 +1,75 @@
|
|
|
1
1
|
import {
|
|
2
2
|
externalWikiSearchOperation
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BMENHAJL.js";
|
|
4
4
|
import "./chunk-7T4TOGMS.js";
|
|
5
5
|
import "./chunk-7YQ6ESEA.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-AS4YKT75.js";
|
|
7
7
|
import "./chunk-W4F3C7N7.js";
|
|
8
8
|
import "./chunk-MPC7TYTZ.js";
|
|
9
9
|
import "./chunk-ZHXSOMYH.js";
|
|
10
10
|
import "./chunk-IFBSZGW3.js";
|
|
11
|
-
import "./chunk-QKCXRS5A.js";
|
|
12
11
|
import "./chunk-C3QXITIP.js";
|
|
13
12
|
import "./chunk-VQ7B2Q6M.js";
|
|
14
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-QKCXRS5A.js";
|
|
14
|
+
import "./chunk-PPJLJD2D.js";
|
|
15
15
|
import "./chunk-PJSK6OJM.js";
|
|
16
16
|
import "./chunk-GNVZQ5JN.js";
|
|
17
17
|
import "./chunk-YN2UN7N3.js";
|
|
18
18
|
import "./chunk-ROBHL3GL.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-BXOPUJ3W.js";
|
|
20
20
|
import "./chunk-6DNMUYEE.js";
|
|
21
21
|
import "./chunk-P5FPO2BR.js";
|
|
22
22
|
import "./chunk-S4DDLTPX.js";
|
|
23
23
|
import "./chunk-5UBH37SL.js";
|
|
24
|
-
import "./chunk-EC5SVM6H.js";
|
|
25
24
|
import "./chunk-KIW3OOZE.js";
|
|
26
25
|
import "./chunk-YE4JBZO5.js";
|
|
27
26
|
import "./chunk-5KVT6G5U.js";
|
|
28
27
|
import "./chunk-VYDGHJIN.js";
|
|
29
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-V7IONNTJ.js";
|
|
30
29
|
import "./chunk-7O5EW7KX.js";
|
|
31
30
|
import "./chunk-H7XKCNR6.js";
|
|
32
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-55XWRL6F.js";
|
|
33
32
|
import "./chunk-SOBJ6NEY.js";
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-XXLH6KFO.js";
|
|
34
|
+
import "./chunk-QB4VXCFN.js";
|
|
36
35
|
import "./chunk-CVILPI77.js";
|
|
37
36
|
import "./chunk-6WHJ2EAB.js";
|
|
38
37
|
import "./chunk-AQEJKOKI.js";
|
|
39
38
|
import "./chunk-HM7RHKS4.js";
|
|
40
39
|
import "./chunk-UD7UNYRD.js";
|
|
41
40
|
import "./chunk-IISBCCWR.js";
|
|
41
|
+
import "./chunk-P3YNEMYY.js";
|
|
42
|
+
import "./chunk-DE4ZGH2N.js";
|
|
42
43
|
import "./chunk-2YA5N2BY.js";
|
|
43
44
|
import "./chunk-HWLIMQE2.js";
|
|
44
|
-
import "./chunk-
|
|
45
|
+
import "./chunk-5KBI2MOC.js";
|
|
45
46
|
import "./chunk-EI6V5UXY.js";
|
|
46
47
|
import "./chunk-CEO4DONG.js";
|
|
47
48
|
import "./chunk-SGUDMW2K.js";
|
|
48
49
|
import "./chunk-7IRZK6MM.js";
|
|
49
50
|
import "./chunk-NLE6TSLG.js";
|
|
50
51
|
import "./chunk-WLZYGLJ4.js";
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-JUXOTY6J.js";
|
|
52
|
+
import "./chunk-G2XZFGYN.js";
|
|
53
53
|
import "./chunk-QM2SPLKQ.js";
|
|
54
|
+
import "./chunk-JUXOTY6J.js";
|
|
54
55
|
import "./chunk-LTHVM4XN.js";
|
|
55
|
-
import "./chunk-
|
|
56
|
+
import "./chunk-B4EGAHHS.js";
|
|
56
57
|
import "./chunk-C37ZRXX7.js";
|
|
57
58
|
import "./chunk-7ZNJN5WZ.js";
|
|
58
59
|
import "./chunk-NAFPHFDM.js";
|
|
59
60
|
import "./chunk-RF2SMMPP.js";
|
|
60
61
|
import "./chunk-AJBWVDRV.js";
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import "./chunk-HRATODNO.js";
|
|
62
|
+
import "./chunk-HS75MCQF.js";
|
|
63
63
|
import "./chunk-WTWQA7BB.js";
|
|
64
64
|
import "./chunk-VZIAVM72.js";
|
|
65
|
-
import "./chunk-
|
|
66
|
-
import "./chunk-
|
|
67
|
-
import "./chunk-
|
|
68
|
-
import "./chunk-
|
|
65
|
+
import "./chunk-HRATODNO.js";
|
|
66
|
+
import "./chunk-YXWMZAAN.js";
|
|
67
|
+
import "./chunk-MQT3WP3F.js";
|
|
68
|
+
import "./chunk-OS4JVTHR.js";
|
|
69
|
+
import "./chunk-XZUHXKM3.js";
|
|
69
70
|
import "./chunk-UFGFMWAD.js";
|
|
70
71
|
import "./chunk-BMWN7B3Y.js";
|
|
71
|
-
import "./chunk-
|
|
72
|
+
import "./chunk-WL3PGPGU.js";
|
|
72
73
|
import "./chunk-3UXOZBHV.js";
|
|
73
74
|
import "./chunk-PIWFNPQT.js";
|
|
74
75
|
import "./chunk-5FAGCOZD.js";
|
|
@@ -77,43 +78,43 @@ import "./chunk-2LSZVONP.js";
|
|
|
77
78
|
import "./chunk-DEUNUKTD.js";
|
|
78
79
|
import "./chunk-LXY5VVGM.js";
|
|
79
80
|
import "./chunk-GKCXTSFF.js";
|
|
80
|
-
import "./chunk-
|
|
81
|
-
import "./chunk-
|
|
81
|
+
import "./chunk-B6VDWDFN.js";
|
|
82
|
+
import "./chunk-Y5VT7BIT.js";
|
|
82
83
|
import "./chunk-CSAKJVXW.js";
|
|
83
84
|
import "./chunk-K2XUWZBM.js";
|
|
84
85
|
import "./chunk-OD4FM2U7.js";
|
|
85
86
|
import "./chunk-ZY2MNJR6.js";
|
|
86
87
|
import "./chunk-TBBDFYXW.js";
|
|
87
|
-
import "./chunk-
|
|
88
|
-
import "./chunk-
|
|
88
|
+
import "./chunk-QLCMOHRE.js";
|
|
89
|
+
import "./chunk-MNG536IS.js";
|
|
89
90
|
import "./chunk-46WM6JX2.js";
|
|
90
91
|
import "./chunk-UHVXE24Y.js";
|
|
91
92
|
import "./chunk-D5F7TKMH.js";
|
|
92
|
-
import "./chunk-
|
|
93
|
-
import "./chunk-
|
|
94
|
-
import "./chunk-G6NQ3L4T.js";
|
|
93
|
+
import "./chunk-IO7K7GES.js";
|
|
94
|
+
import "./chunk-PA67GXYJ.js";
|
|
95
95
|
import "./chunk-WPGR3RW4.js";
|
|
96
96
|
import "./chunk-6KTXE6A3.js";
|
|
97
97
|
import "./chunk-D7MAYFQP.js";
|
|
98
98
|
import "./chunk-KVO2BTA4.js";
|
|
99
|
+
import "./chunk-CYEPCZN5.js";
|
|
100
|
+
import "./chunk-G6NQ3L4T.js";
|
|
99
101
|
import "./chunk-4O6WRBGE.js";
|
|
100
102
|
import "./chunk-GUMZC2BO.js";
|
|
101
|
-
import "./chunk-CYEPCZN5.js";
|
|
102
103
|
import "./chunk-TFA6HPOA.js";
|
|
103
104
|
import "./chunk-F4TWWUMP.js";
|
|
104
105
|
import "./chunk-72A4L5JJ.js";
|
|
105
106
|
import "./chunk-A7Q43EUZ.js";
|
|
106
107
|
import "./chunk-S2V7RUCL.js";
|
|
107
|
-
import "./chunk-
|
|
108
|
-
import "./chunk-66YUOI53.js";
|
|
109
|
-
import "./chunk-SCU65EZI.js";
|
|
108
|
+
import "./chunk-WQW6KPVC.js";
|
|
110
109
|
import "./chunk-MRPOZBJC.js";
|
|
111
110
|
import "./chunk-S2HLHAZ4.js";
|
|
111
|
+
import "./chunk-PCEYGOSL.js";
|
|
112
|
+
import "./chunk-SCU65EZI.js";
|
|
112
113
|
import "./chunk-DM2T26WE.js";
|
|
113
114
|
import "./chunk-LDXUBPMO.js";
|
|
114
115
|
import "./chunk-J3IWHCMF.js";
|
|
115
116
|
import "./chunk-AAD2ZS6P.js";
|
|
116
|
-
import "./chunk-
|
|
117
|
+
import "./chunk-DUJYRVUD.js";
|
|
117
118
|
import "./chunk-3ONXXHQO.js";
|
|
118
119
|
import "./chunk-YXZG5TVN.js";
|
|
119
120
|
import "./chunk-5GINB5LC.js";
|
|
@@ -125,10 +126,10 @@ import "./chunk-RBOJCG4T.js";
|
|
|
125
126
|
import "./chunk-R7QY5ZVB.js";
|
|
126
127
|
import "./chunk-5WITETWU.js";
|
|
127
128
|
import "./chunk-6CIAGZ6X.js";
|
|
128
|
-
import "./chunk-
|
|
129
|
+
import "./chunk-TQSCR5DU.js";
|
|
129
130
|
import "./chunk-U2VDCFXW.js";
|
|
130
|
-
import "./chunk-ZLQ37WJX.js";
|
|
131
131
|
import "./chunk-IUM3VSHI.js";
|
|
132
|
+
import "./chunk-ZLQ37WJX.js";
|
|
132
133
|
import "./chunk-C64XATK7.js";
|
|
133
134
|
import "./chunk-42JKGUFJ.js";
|
|
134
135
|
import "./chunk-ZTHGFTMW.js";
|
|
@@ -154,7 +155,7 @@ import "./chunk-236PXYG7.js";
|
|
|
154
155
|
import "./chunk-ZCUTSMR2.js";
|
|
155
156
|
import "./chunk-QDW3E4RD.js";
|
|
156
157
|
import "./chunk-L63GFNKL.js";
|
|
157
|
-
import "./chunk-
|
|
158
|
+
import "./chunk-S45INSV3.js";
|
|
158
159
|
import "./chunk-ZIKENA2C.js";
|
|
159
160
|
import "./chunk-6Q3ZTEF6.js";
|
|
160
161
|
import "./chunk-YCVB7X56.js";
|
|
@@ -185,8 +186,8 @@ import "./chunk-FP2373TW.js";
|
|
|
185
186
|
import "./chunk-Z2YFLXHU.js";
|
|
186
187
|
import "./chunk-I4WBNM3M.js";
|
|
187
188
|
import "./chunk-SOAU2OE2.js";
|
|
188
|
-
import "./chunk-
|
|
189
|
-
import "./chunk-
|
|
189
|
+
import "./chunk-7SJCSDQ3.js";
|
|
190
|
+
import "./chunk-S3YM4SZQ.js";
|
|
190
191
|
import "./chunk-PAAJWQH5.js";
|
|
191
192
|
import "./chunk-RFIJH2OE.js";
|
|
192
193
|
import "./chunk-OQQXGYMX.js";
|
|
@@ -234,9 +235,9 @@ import "./chunk-46EST7JO.js";
|
|
|
234
235
|
import "./chunk-G73MCJKL.js";
|
|
235
236
|
import "./chunk-A2IYSXDQ.js";
|
|
236
237
|
import "./chunk-B6O2YLUR.js";
|
|
237
|
-
import "./chunk-
|
|
238
|
-
import "./chunk-LBLXEFWK.js";
|
|
238
|
+
import "./chunk-TVVEYCNW.js";
|
|
239
239
|
import "./chunk-RFYAYKTD.js";
|
|
240
|
+
import "./chunk-LBLXEFWK.js";
|
|
240
241
|
import "./chunk-YRLHEEQT.js";
|
|
241
242
|
import "./chunk-FF4KLI5W.js";
|
|
242
243
|
import "./chunk-JN72EPOE.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ExternalWikiCollectionRoot, ExternalWikiCollectionStatus } from './external-wiki-collection.js';
|
|
2
2
|
import { SearchExecutionOptions } from './search/port.js';
|
|
3
|
-
import './types-
|
|
3
|
+
import './types-DgDaoY61.js';
|
|
4
4
|
import './message-parts/index.js';
|
|
5
5
|
import './bounded-jsonl-state.js';
|
|
6
6
|
import './operator-doctor-types.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { l as McpTool } from './access-service-
|
|
2
|
-
import './types-
|
|
1
|
+
import { l as McpTool } from './access-service-BXYrJ3pO.js';
|
|
2
|
+
import './types-DgDaoY61.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-Cirjo3ZB.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-mD2YQ8_2.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-DH4tWtck.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-n6yeTQhR.js';
|
|
51
|
+
import './catalog-Bns9zpl3.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-BrAWKVcm.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-B-LvcDaq.js';
|
|
84
84
|
import './namespaces/storage.js';
|
|
85
85
|
import './threading.js';
|
|
86
|
-
import './scope-profiles-
|
|
86
|
+
import './scope-profiles-BgPQx9iE.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-Bfc7zigS.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-CqHOTg87.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-CetF9ziA.js';
|
|
125
125
|
import './access-token-capabilities.js';
|
|
126
126
|
import 'node:async_hooks';
|
|
127
127
|
import './recall-explain-renderer.js';
|
|
@@ -129,10 +129,11 @@ 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-CiAVA-ID.js';
|
|
133
133
|
import './explicit-capture.js';
|
|
134
134
|
import './access-wearables-meetings-surface.js';
|
|
135
135
|
import './deep-recall.js';
|
|
136
|
+
import './memory-browse.js';
|
|
136
137
|
import './graph-snapshot.js';
|
|
137
138
|
import './access-offline-manifest.js';
|
|
138
139
|
import 'node:fs/promises';
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { N as MemorySubject } from './types-DgDaoY61.js';
|
|
2
|
+
import './message-parts/index.js';
|
|
3
|
+
import './bounded-jsonl-state.js';
|
|
4
|
+
import './operator-doctor-types.js';
|
|
5
|
+
import './external-wiki-config.js';
|
|
6
|
+
import './recall-state-view.js';
|
|
7
|
+
import './contradiction-config.js';
|
|
8
|
+
import './graph-path-scoring-config.js';
|
|
9
|
+
import './background-generation-config.js';
|
|
10
|
+
import './deep-recall-config.js';
|
|
11
|
+
import './recall-navigation-config.js';
|
|
12
|
+
import './causal-trajectory.js';
|
|
13
|
+
import './objective-state.js';
|
|
14
|
+
import './active-context-config.js';
|
|
15
|
+
import './local-llm-config.js';
|
|
16
|
+
import './semantic-merge-config.js';
|
|
17
|
+
import './types-continuity.js';
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Deterministic evidence provenance classes (issue #2973).
|
|
21
|
+
*
|
|
22
|
+
* Every extracted candidate is backed by spans located in buffered turns.
|
|
23
|
+
* The CLASS of a span — whose words it records — decides what the span can
|
|
24
|
+
* license (learned from distill-kura's measured self-reinforcing assertion
|
|
25
|
+
* loop: an agent asserts, the extractor records, the next agent reads it back
|
|
26
|
+
* as ground truth and repeats it with more confidence):
|
|
27
|
+
*
|
|
28
|
+
* - `user`: the human's own words. Licenses user attributions.
|
|
29
|
+
* - `tool`: machine output. The ONLY licit source for numbers.
|
|
30
|
+
* - `action`: a tool was invoked. Weaker than reading its output.
|
|
31
|
+
* - `agent`: agent prose. Licenses a first-person judgement, never a
|
|
32
|
+
* bare fact.
|
|
33
|
+
*
|
|
34
|
+
* Derivation is pure and total: turn role plus tool-part flags in, one class
|
|
35
|
+
* out, no clock, no randomness, no I/O. The same input always yields the
|
|
36
|
+
* same class. Span matching reuses `locateQuoteOffsets` /
|
|
37
|
+
* `stripLeadingRolePrefix` from `provenance.ts` so class location and
|
|
38
|
+
* provenance building can never disagree (issue #1575 pitfall: one matcher,
|
|
39
|
+
* not two).
|
|
40
|
+
*
|
|
41
|
+
* The post-extraction rules (`applyEvidenceClassRules`) are deterministic
|
|
42
|
+
* string/flag checks — no LLM — designed to run before the judge. Each
|
|
43
|
+
* returns a stable rule id for shadow-mode telemetry. Not yet wired into the
|
|
44
|
+
* extraction pipeline; see the issue's rollout plan.
|
|
45
|
+
*/
|
|
46
|
+
|
|
47
|
+
type EvidenceClass = "user" | "tool" | "action" | "agent";
|
|
48
|
+
/** Canonical class order: strongest license first. Fixed; never reorder. */
|
|
49
|
+
declare const EVIDENCE_CLASSES: readonly EvidenceClass[];
|
|
50
|
+
/**
|
|
51
|
+
* A buffered turn reduced to what class derivation needs. Callers map
|
|
52
|
+
* `BufferTurn`s via {@link evidenceTurnInput}; `role` and the tool flags are
|
|
53
|
+
* the only fields that influence the class.
|
|
54
|
+
*/
|
|
55
|
+
interface EvidenceClassTurnInput {
|
|
56
|
+
content: string;
|
|
57
|
+
role: "user" | "assistant";
|
|
58
|
+
/** Turn carries machine output (a tool_result part). */
|
|
59
|
+
toolResult?: boolean;
|
|
60
|
+
/** Turn records a tool invocation (a tool_call part). */
|
|
61
|
+
toolCall?: boolean;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Derive a turn's evidence class. Total and deterministic:
|
|
65
|
+
* - `role: "user"` → `"user"` (the human's words, regardless of stray
|
|
66
|
+
* part flags a connector may attach).
|
|
67
|
+
* - `role: "assistant"` with `toolResult` → `"tool"`; machine output
|
|
68
|
+
* outranks the invocation that produced it.
|
|
69
|
+
* - else with `toolCall` → `"action"`.
|
|
70
|
+
* - else → `"agent"` (agent prose — the weakest license).
|
|
71
|
+
*/
|
|
72
|
+
declare function deriveTurnEvidenceClass(turnInput: EvidenceClassTurnInput): EvidenceClass;
|
|
73
|
+
/**
|
|
74
|
+
* Map a buffered turn (structural subset of `BufferTurn`) to
|
|
75
|
+
* {@link EvidenceClassTurnInput}. Tool flags derive mechanically from part
|
|
76
|
+
* kinds — no content inspection, no heuristics.
|
|
77
|
+
*/
|
|
78
|
+
declare function evidenceTurnInput(bufferTurn: {
|
|
79
|
+
role: "user" | "assistant";
|
|
80
|
+
content: string;
|
|
81
|
+
parts?: ReadonlyArray<{
|
|
82
|
+
kind: string;
|
|
83
|
+
}>;
|
|
84
|
+
}): EvidenceClassTurnInput;
|
|
85
|
+
/**
|
|
86
|
+
* Classify the evidence backing a fact: the classes of every turn in which
|
|
87
|
+
* its quote was located, in canonical `EVIDENCE_CLASSES` order regardless of
|
|
88
|
+
* turn order. Deterministic — the same `(quote, turns)` pair always yields
|
|
89
|
+
* the same array. An absent or unlocatable quote yields `[]` (no evidence
|
|
90
|
+
* class; the extractor's own assertion is all that backs the fact).
|
|
91
|
+
*/
|
|
92
|
+
declare function classifyEvidenceClasses(input: {
|
|
93
|
+
quote: string | null | undefined;
|
|
94
|
+
turns: ReadonlyArray<EvidenceClassTurnInput>;
|
|
95
|
+
}): EvidenceClass[];
|
|
96
|
+
/**
|
|
97
|
+
* Collapse a fact's evidence classes to the single strongest license present.
|
|
98
|
+
* No located span (`[]`) collapses to `"agent"`: the fact is agent-asserted.
|
|
99
|
+
*/
|
|
100
|
+
declare function deriveFactEvidenceClass(classes: readonly EvidenceClass[]): EvidenceClass;
|
|
101
|
+
type EvidenceRuleId = "numeric_without_tool_evidence" | "user_attribution_without_user_span" | "echo_of_existing_content";
|
|
102
|
+
interface EvidenceRuleFinding {
|
|
103
|
+
rule: EvidenceRuleId;
|
|
104
|
+
/** `demote` routes the fact to `pending_review`; `refuse` drops it. */
|
|
105
|
+
action: "demote" | "refuse";
|
|
106
|
+
reason: string;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Normalize a quote for echo comparison. Casefold plus whitespace collapse —
|
|
110
|
+
* the same normalization `locateQuoteOffsets` matches with, via the single
|
|
111
|
+
* shared normalizer in `whitespace.ts`.
|
|
112
|
+
*/
|
|
113
|
+
declare function echoQuoteKey(quote: string): string;
|
|
114
|
+
/**
|
|
115
|
+
* Apply the three deterministic evidence rules to one extracted fact.
|
|
116
|
+
* Pure; findings come back in canonical rule-id order. A fact triggers:
|
|
117
|
+
*
|
|
118
|
+
* 1. `numeric_without_tool_evidence` — content carries a digit but no
|
|
119
|
+
* `tool`/`action` span backs it. The human and the agent are both
|
|
120
|
+
* illicit sources for numbers; demote to review rather than refuse
|
|
121
|
+
* (the number may be real — it is just unproven).
|
|
122
|
+
* 2. `user_attribution_without_user_span` — a decision-like fact about the
|
|
123
|
+
* user (absent `subject` reads as `"user"`, mirroring the promotion
|
|
124
|
+
* guard's fail-closed default) with no `user` span. This is the
|
|
125
|
+
* assertion-loop gate: an agent-asserted "the user decided X" is
|
|
126
|
+
* refused, never promoted to active.
|
|
127
|
+
* 3. `echo_of_existing_content` — every quote backing the fact already
|
|
128
|
+
* exists in the store index, so the "evidence" is the store reading
|
|
129
|
+
* itself back through a tool result. Refused: not new material.
|
|
130
|
+
*/
|
|
131
|
+
declare function applyEvidenceClassRules(input: {
|
|
132
|
+
content: string;
|
|
133
|
+
category?: string;
|
|
134
|
+
subject?: MemorySubject;
|
|
135
|
+
evidenceClasses?: readonly EvidenceClass[];
|
|
136
|
+
/** Normalized keys (`echoQuoteKey`) of the fact's surviving quotes. */
|
|
137
|
+
quoteKeys?: readonly string[];
|
|
138
|
+
/** Normalized keys of quotes already present in the content-hash index. */
|
|
139
|
+
existingQuoteKeys?: ReadonlySet<string>;
|
|
140
|
+
}): EvidenceRuleFinding[];
|
|
141
|
+
|
|
142
|
+
export { EVIDENCE_CLASSES, type EvidenceClass, type EvidenceClassTurnInput, type EvidenceRuleFinding, type EvidenceRuleId, applyEvidenceClassRules, classifyEvidenceClasses, deriveFactEvidenceClass, deriveTurnEvidenceClass, echoQuoteKey, evidenceTurnInput };
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import {
|
|
2
|
+
locateQuoteOffsets,
|
|
3
|
+
stripLeadingRolePrefix
|
|
4
|
+
} from "./chunk-S45INSV3.js";
|
|
5
|
+
import {
|
|
6
|
+
collapseWhitespace
|
|
7
|
+
} from "./chunk-PJKTFXE2.js";
|
|
8
|
+
import "./chunk-PQVCH2AE.js";
|
|
9
|
+
import "./chunk-5GKPFL3S.js";
|
|
10
|
+
import "./chunk-JAKIDQB2.js";
|
|
11
|
+
import "./chunk-P2QRMMVQ.js";
|
|
12
|
+
import "./chunk-3WCASNQZ.js";
|
|
13
|
+
import "./chunk-PZ5AY32C.js";
|
|
14
|
+
|
|
15
|
+
// src/extraction-evidence-class.ts
|
|
16
|
+
var EVIDENCE_CLASSES = ["user", "tool", "action", "agent"];
|
|
17
|
+
function deriveTurnEvidenceClass(turnInput) {
|
|
18
|
+
if (turnInput.role === "user") return "user";
|
|
19
|
+
if (turnInput.toolResult === true) return "tool";
|
|
20
|
+
if (turnInput.toolCall === true) return "action";
|
|
21
|
+
return "agent";
|
|
22
|
+
}
|
|
23
|
+
function evidenceTurnInput(bufferTurn) {
|
|
24
|
+
let toolResult = false;
|
|
25
|
+
let toolCall = false;
|
|
26
|
+
if (bufferTurn.parts) {
|
|
27
|
+
for (const part of bufferTurn.parts) {
|
|
28
|
+
if (part.kind === "tool_result") toolResult = true;
|
|
29
|
+
else if (part.kind === "tool_call") toolCall = true;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
role: bufferTurn.role,
|
|
34
|
+
content: bufferTurn.content,
|
|
35
|
+
...toolResult ? { toolResult: true } : {},
|
|
36
|
+
...toolCall ? { toolCall: true } : {}
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function resolveSearchableQuote(quote, turns) {
|
|
40
|
+
const rawQuote = typeof quote === "string" ? quote.trim() : "";
|
|
41
|
+
if (rawQuote.length === 0) return "";
|
|
42
|
+
const stripped = stripLeadingRolePrefix(rawQuote);
|
|
43
|
+
if (rawQuote === stripped) return rawQuote;
|
|
44
|
+
const rawMatches = turns.some(
|
|
45
|
+
(t) => typeof t?.content === "string" && t.content.length > 0 && locateQuoteOffsets(rawQuote, t.content).matched
|
|
46
|
+
);
|
|
47
|
+
return rawMatches ? rawQuote : stripped;
|
|
48
|
+
}
|
|
49
|
+
function classifyEvidenceClasses(input) {
|
|
50
|
+
const quote = resolveSearchableQuote(input.quote, input.turns);
|
|
51
|
+
if (quote.length === 0) return [];
|
|
52
|
+
const present = /* @__PURE__ */ new Set();
|
|
53
|
+
for (const turn of input.turns) {
|
|
54
|
+
if (!turn || typeof turn.content !== "string" || turn.content.length === 0) continue;
|
|
55
|
+
if (locateQuoteOffsets(quote, turn.content).matched) {
|
|
56
|
+
present.add(deriveTurnEvidenceClass(turn));
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
return EVIDENCE_CLASSES.filter((cls) => present.has(cls));
|
|
60
|
+
}
|
|
61
|
+
function deriveFactEvidenceClass(classes) {
|
|
62
|
+
for (const cls of EVIDENCE_CLASSES) {
|
|
63
|
+
if (classes.includes(cls)) return cls;
|
|
64
|
+
}
|
|
65
|
+
return "agent";
|
|
66
|
+
}
|
|
67
|
+
var DECISION_LIKE_CATEGORIES = {
|
|
68
|
+
decision: true,
|
|
69
|
+
preference: true,
|
|
70
|
+
commitment: true
|
|
71
|
+
};
|
|
72
|
+
function echoQuoteKey(quote) {
|
|
73
|
+
return collapseWhitespace(quote.toLowerCase());
|
|
74
|
+
}
|
|
75
|
+
function applyEvidenceClassRules(input) {
|
|
76
|
+
const classes = input.evidenceClasses ?? [];
|
|
77
|
+
const findings = [];
|
|
78
|
+
if (/\d/.test(input.content) && !classes.some((c) => c === "tool" || c === "action")) {
|
|
79
|
+
findings.push({
|
|
80
|
+
rule: "numeric_without_tool_evidence",
|
|
81
|
+
action: "demote",
|
|
82
|
+
reason: "content carries a number but no tool or action evidence span backs it"
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
const decisionLike = input.category !== void 0 && DECISION_LIKE_CATEGORIES[input.category] === true;
|
|
86
|
+
const subject = input.subject ?? "user";
|
|
87
|
+
if (decisionLike && subject === "user" && !classes.includes("user")) {
|
|
88
|
+
findings.push({
|
|
89
|
+
rule: "user_attribution_without_user_span",
|
|
90
|
+
action: "refuse",
|
|
91
|
+
reason: "decision-like fact about the user with no user-role evidence span"
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
const quoteKeys = input.quoteKeys ?? [];
|
|
95
|
+
if (quoteKeys.length > 0 && input.existingQuoteKeys !== void 0 && quoteKeys.every((key) => input.existingQuoteKeys.has(key))) {
|
|
96
|
+
findings.push({
|
|
97
|
+
rule: "echo_of_existing_content",
|
|
98
|
+
action: "refuse",
|
|
99
|
+
reason: "every evidence quote already exists in the store (echo, not new material)"
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
return findings;
|
|
103
|
+
}
|
|
104
|
+
export {
|
|
105
|
+
EVIDENCE_CLASSES,
|
|
106
|
+
applyEvidenceClassRules,
|
|
107
|
+
classifyEvidenceClasses,
|
|
108
|
+
deriveFactEvidenceClass,
|
|
109
|
+
deriveTurnEvidenceClass,
|
|
110
|
+
echoQuoteKey,
|
|
111
|
+
evidenceTurnInput
|
|
112
|
+
};
|
|
113
|
+
//# sourceMappingURL=extraction-evidence-class.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/extraction-evidence-class.ts"],"sourcesContent":["/**\n * Deterministic evidence provenance classes (issue #2973).\n *\n * Every extracted candidate is backed by spans located in buffered turns.\n * The CLASS of a span — whose words it records — decides what the span can\n * license (learned from distill-kura's measured self-reinforcing assertion\n * loop: an agent asserts, the extractor records, the next agent reads it back\n * as ground truth and repeats it with more confidence):\n *\n * - `user`: the human's own words. Licenses user attributions.\n * - `tool`: machine output. The ONLY licit source for numbers.\n * - `action`: a tool was invoked. Weaker than reading its output.\n * - `agent`: agent prose. Licenses a first-person judgement, never a\n * bare fact.\n *\n * Derivation is pure and total: turn role plus tool-part flags in, one class\n * out, no clock, no randomness, no I/O. The same input always yields the\n * same class. Span matching reuses `locateQuoteOffsets` /\n * `stripLeadingRolePrefix` from `provenance.ts` so class location and\n * provenance building can never disagree (issue #1575 pitfall: one matcher,\n * not two).\n *\n * The post-extraction rules (`applyEvidenceClassRules`) are deterministic\n * string/flag checks — no LLM — designed to run before the judge. Each\n * returns a stable rule id for shadow-mode telemetry. Not yet wired into the\n * extraction pipeline; see the issue's rollout plan.\n */\n\nimport { locateQuoteOffsets, stripLeadingRolePrefix } from \"./provenance.js\";\nimport type { MemorySubject } from \"./types.js\";\nimport { collapseWhitespace } from \"./whitespace.js\";\n\nexport type EvidenceClass = \"user\" | \"tool\" | \"action\" | \"agent\";\n\n/** Canonical class order: strongest license first. Fixed; never reorder. */\nexport const EVIDENCE_CLASSES: readonly EvidenceClass[] = [\"user\", \"tool\", \"action\", \"agent\"];\n\n/**\n * A buffered turn reduced to what class derivation needs. Callers map\n * `BufferTurn`s via {@link evidenceTurnInput}; `role` and the tool flags are\n * the only fields that influence the class.\n */\nexport interface EvidenceClassTurnInput {\n content: string;\n role: \"user\" | \"assistant\";\n /** Turn carries machine output (a tool_result part). */\n toolResult?: boolean;\n /** Turn records a tool invocation (a tool_call part). */\n toolCall?: boolean;\n}\n\n/**\n * Derive a turn's evidence class. Total and deterministic:\n * - `role: \"user\"` → `\"user\"` (the human's words, regardless of stray\n * part flags a connector may attach).\n * - `role: \"assistant\"` with `toolResult` → `\"tool\"`; machine output\n * outranks the invocation that produced it.\n * - else with `toolCall` → `\"action\"`.\n * - else → `\"agent\"` (agent prose — the weakest license).\n */\nexport function deriveTurnEvidenceClass(turnInput: EvidenceClassTurnInput): EvidenceClass {\n if (turnInput.role === \"user\") return \"user\";\n if (turnInput.toolResult === true) return \"tool\";\n if (turnInput.toolCall === true) return \"action\";\n return \"agent\";\n}\n\n/**\n * Map a buffered turn (structural subset of `BufferTurn`) to\n * {@link EvidenceClassTurnInput}. Tool flags derive mechanically from part\n * kinds — no content inspection, no heuristics.\n */\nexport function evidenceTurnInput(bufferTurn: {\n role: \"user\" | \"assistant\";\n content: string;\n parts?: ReadonlyArray<{ kind: string }>;\n}): EvidenceClassTurnInput {\n let toolResult = false;\n let toolCall = false;\n if (bufferTurn.parts) {\n for (const part of bufferTurn.parts) {\n if (part.kind === \"tool_result\") toolResult = true;\n else if (part.kind === \"tool_call\") toolCall = true;\n }\n }\n return {\n role: bufferTurn.role,\n content: bufferTurn.content,\n ...(toolResult ? { toolResult: true } : {}),\n ...(toolCall ? { toolCall: true } : {}),\n };\n}\n\n/**\n * Resolve which quote `buildFactProvenance` would search for: the raw quote\n * when it matches at least one turn, else the leading prompt role label\n * stripped (mirrors the raw-preferred contract in `provenance.ts`).\n */\nfunction resolveSearchableQuote(\n quote: string | null | undefined,\n turns: ReadonlyArray<EvidenceClassTurnInput>,\n): string {\n const rawQuote = typeof quote === \"string\" ? quote.trim() : \"\";\n if (rawQuote.length === 0) return \"\";\n const stripped = stripLeadingRolePrefix(rawQuote);\n if (rawQuote === stripped) return rawQuote;\n const rawMatches = turns.some(\n (t) => typeof t?.content === \"string\" && t.content.length > 0 && locateQuoteOffsets(rawQuote, t.content).matched,\n );\n return rawMatches ? rawQuote : stripped;\n}\n\n/**\n * Classify the evidence backing a fact: the classes of every turn in which\n * its quote was located, in canonical `EVIDENCE_CLASSES` order regardless of\n * turn order. Deterministic — the same `(quote, turns)` pair always yields\n * the same array. An absent or unlocatable quote yields `[]` (no evidence\n * class; the extractor's own assertion is all that backs the fact).\n */\nexport function classifyEvidenceClasses(input: {\n quote: string | null | undefined;\n turns: ReadonlyArray<EvidenceClassTurnInput>;\n}): EvidenceClass[] {\n const quote = resolveSearchableQuote(input.quote, input.turns);\n if (quote.length === 0) return [];\n const present = new Set<EvidenceClass>();\n for (const turn of input.turns) {\n if (!turn || typeof turn.content !== \"string\" || turn.content.length === 0) continue;\n if (locateQuoteOffsets(quote, turn.content).matched) {\n present.add(deriveTurnEvidenceClass(turn));\n }\n }\n return EVIDENCE_CLASSES.filter((cls) => present.has(cls));\n}\n\n/**\n * Collapse a fact's evidence classes to the single strongest license present.\n * No located span (`[]`) collapses to `\"agent\"`: the fact is agent-asserted.\n */\nexport function deriveFactEvidenceClass(classes: readonly EvidenceClass[]): EvidenceClass {\n for (const cls of EVIDENCE_CLASSES) {\n if (classes.includes(cls)) return cls;\n }\n return \"agent\";\n}\n\n// ---------------------------------------------------------------------------\n// Deterministic post-extraction rules (no LLM; run before the judge)\n// ---------------------------------------------------------------------------\n\nexport type EvidenceRuleId =\n | \"numeric_without_tool_evidence\"\n | \"user_attribution_without_user_span\"\n | \"echo_of_existing_content\";\n\nexport interface EvidenceRuleFinding {\n rule: EvidenceRuleId;\n /** `demote` routes the fact to `pending_review`; `refuse` drops it. */\n action: \"demote\" | \"refuse\";\n reason: string;\n}\n\n/** Categories that attribute a choice or commitment to the modeled subject. */\nconst DECISION_LIKE_CATEGORIES: Record<string, true> = {\n decision: true,\n preference: true,\n commitment: true,\n};\n\n/**\n * Normalize a quote for echo comparison. Casefold plus whitespace collapse —\n * the same normalization `locateQuoteOffsets` matches with, via the single\n * shared normalizer in `whitespace.ts`.\n */\nexport function echoQuoteKey(quote: string): string {\n return collapseWhitespace(quote.toLowerCase());\n}\n\n/**\n * Apply the three deterministic evidence rules to one extracted fact.\n * Pure; findings come back in canonical rule-id order. A fact triggers:\n *\n * 1. `numeric_without_tool_evidence` — content carries a digit but no\n * `tool`/`action` span backs it. The human and the agent are both\n * illicit sources for numbers; demote to review rather than refuse\n * (the number may be real — it is just unproven).\n * 2. `user_attribution_without_user_span` — a decision-like fact about the\n * user (absent `subject` reads as `\"user\"`, mirroring the promotion\n * guard's fail-closed default) with no `user` span. This is the\n * assertion-loop gate: an agent-asserted \"the user decided X\" is\n * refused, never promoted to active.\n * 3. `echo_of_existing_content` — every quote backing the fact already\n * exists in the store index, so the \"evidence\" is the store reading\n * itself back through a tool result. Refused: not new material.\n */\nexport function applyEvidenceClassRules(input: {\n content: string;\n category?: string;\n subject?: MemorySubject;\n evidenceClasses?: readonly EvidenceClass[];\n /** Normalized keys (`echoQuoteKey`) of the fact's surviving quotes. */\n quoteKeys?: readonly string[];\n /** Normalized keys of quotes already present in the content-hash index. */\n existingQuoteKeys?: ReadonlySet<string>;\n}): EvidenceRuleFinding[] {\n const classes = input.evidenceClasses ?? [];\n const findings: EvidenceRuleFinding[] = [];\n\n if (/\\d/.test(input.content) && !classes.some((c) => c === \"tool\" || c === \"action\")) {\n findings.push({\n rule: \"numeric_without_tool_evidence\",\n action: \"demote\",\n reason: \"content carries a number but no tool or action evidence span backs it\",\n });\n }\n\n const decisionLike = input.category !== undefined && DECISION_LIKE_CATEGORIES[input.category] === true;\n const subject = input.subject ?? \"user\";\n if (decisionLike && subject === \"user\" && !classes.includes(\"user\")) {\n findings.push({\n rule: \"user_attribution_without_user_span\",\n action: \"refuse\",\n reason: \"decision-like fact about the user with no user-role evidence span\",\n });\n }\n\n const quoteKeys = input.quoteKeys ?? [];\n if (\n quoteKeys.length > 0\n && input.existingQuoteKeys !== undefined\n && quoteKeys.every((key) => input.existingQuoteKeys!.has(key))\n ) {\n findings.push({\n rule: \"echo_of_existing_content\",\n action: \"refuse\",\n reason: \"every evidence quote already exists in the store (echo, not new material)\",\n });\n }\n\n return findings;\n}\n"],"mappings":";;;;;;;;;;;;;;;AAmCO,IAAM,mBAA6C,CAAC,QAAQ,QAAQ,UAAU,OAAO;AAyBrF,SAAS,wBAAwB,WAAkD;AACxF,MAAI,UAAU,SAAS,OAAQ,QAAO;AACtC,MAAI,UAAU,eAAe,KAAM,QAAO;AAC1C,MAAI,UAAU,aAAa,KAAM,QAAO;AACxC,SAAO;AACT;AAOO,SAAS,kBAAkB,YAIP;AACzB,MAAI,aAAa;AACjB,MAAI,WAAW;AACf,MAAI,WAAW,OAAO;AACpB,eAAW,QAAQ,WAAW,OAAO;AACnC,UAAI,KAAK,SAAS,cAAe,cAAa;AAAA,eACrC,KAAK,SAAS,YAAa,YAAW;AAAA,IACjD;AAAA,EACF;AACA,SAAO;AAAA,IACL,MAAM,WAAW;AAAA,IACjB,SAAS,WAAW;AAAA,IACpB,GAAI,aAAa,EAAE,YAAY,KAAK,IAAI,CAAC;AAAA,IACzC,GAAI,WAAW,EAAE,UAAU,KAAK,IAAI,CAAC;AAAA,EACvC;AACF;AAOA,SAAS,uBACP,OACA,OACQ;AACR,QAAM,WAAW,OAAO,UAAU,WAAW,MAAM,KAAK,IAAI;AAC5D,MAAI,SAAS,WAAW,EAAG,QAAO;AAClC,QAAM,WAAW,uBAAuB,QAAQ;AAChD,MAAI,aAAa,SAAU,QAAO;AAClC,QAAM,aAAa,MAAM;AAAA,IACvB,CAAC,MAAM,OAAO,GAAG,YAAY,YAAY,EAAE,QAAQ,SAAS,KAAK,mBAAmB,UAAU,EAAE,OAAO,EAAE;AAAA,EAC3G;AACA,SAAO,aAAa,WAAW;AACjC;AASO,SAAS,wBAAwB,OAGpB;AAClB,QAAM,QAAQ,uBAAuB,MAAM,OAAO,MAAM,KAAK;AAC7D,MAAI,MAAM,WAAW,EAAG,QAAO,CAAC;AAChC,QAAM,UAAU,oBAAI,IAAmB;AACvC,aAAW,QAAQ,MAAM,OAAO;AAC9B,QAAI,CAAC,QAAQ,OAAO,KAAK,YAAY,YAAY,KAAK,QAAQ,WAAW,EAAG;AAC5E,QAAI,mBAAmB,OAAO,KAAK,OAAO,EAAE,SAAS;AACnD,cAAQ,IAAI,wBAAwB,IAAI,CAAC;AAAA,IAC3C;AAAA,EACF;AACA,SAAO,iBAAiB,OAAO,CAAC,QAAQ,QAAQ,IAAI,GAAG,CAAC;AAC1D;AAMO,SAAS,wBAAwB,SAAkD;AACxF,aAAW,OAAO,kBAAkB;AAClC,QAAI,QAAQ,SAAS,GAAG,EAAG,QAAO;AAAA,EACpC;AACA,SAAO;AACT;AAmBA,IAAM,2BAAiD;AAAA,EACrD,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,YAAY;AACd;AAOO,SAAS,aAAa,OAAuB;AAClD,SAAO,mBAAmB,MAAM,YAAY,CAAC;AAC/C;AAmBO,SAAS,wBAAwB,OASd;AACxB,QAAM,UAAU,MAAM,mBAAmB,CAAC;AAC1C,QAAM,WAAkC,CAAC;AAEzC,MAAI,KAAK,KAAK,MAAM,OAAO,KAAK,CAAC,QAAQ,KAAK,CAAC,MAAM,MAAM,UAAU,MAAM,QAAQ,GAAG;AACpF,aAAS,KAAK;AAAA,MACZ,MAAM;AAAA,MACN,QAAQ;AAAA,MACR,QAAQ;AAAA,IACV,CAAC;AAAA,EACH;AAEA,QAAM,eAAe,MAAM,aAAa,UAAa,yBAAyB,MAAM,QAAQ,MAAM;AAClG,QAAM,UAAU,MAAM,WAAW;AACjC,MAAI,gBAAgB,YAAY,UAAU,CAAC,QAAQ,SAAS,MAAM,GAAG;AACnE,aAAS,KAAK;AAAA,MACZ,MAAM;AAAA,MACN,QAAQ;AAAA,MACR,QAAQ;AAAA,IACV,CAAC;AAAA,EACH;AAEA,QAAM,YAAY,MAAM,aAAa,CAAC;AACtC,MACE,UAAU,SAAS,KAChB,MAAM,sBAAsB,UAC5B,UAAU,MAAM,CAAC,QAAQ,MAAM,kBAAmB,IAAI,GAAG,CAAC,GAC7D;AACA,aAAS,KAAK;AAAA,MACZ,MAAM;AAAA,MACN,QAAQ;AAAA,MACR,QAAQ;AAAA,IACV,CAAC;AAAA,EACH;AAEA,SAAO;AACT;","names":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FaithfulnessFrontmatter, P as PluginConfig, m as MemoryFrontmatter } from './types-
|
|
2
|
-
import { L as LocalLlmClient } from './local-llm-
|
|
1
|
+
import { F as FaithfulnessFrontmatter, P as PluginConfig, m as MemoryFrontmatter } from './types-DgDaoY61.js';
|
|
2
|
+
import { L as LocalLlmClient } from './local-llm-DH4tWtck.js';
|
|
3
3
|
import { FallbackLlmClient } from './fallback-llm.js';
|
|
4
4
|
import './message-parts/index.js';
|
|
5
5
|
import './bounded-jsonl-state.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JudgeVerdictKind } from './extraction-judge.js';
|
|
2
|
-
import './types-
|
|
2
|
+
import './types-DgDaoY61.js';
|
|
3
3
|
import './message-parts/index.js';
|
|
4
4
|
import './bounded-jsonl-state.js';
|
|
5
5
|
import './operator-doctor-types.js';
|
|
@@ -16,7 +16,7 @@ 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 './local-llm-
|
|
19
|
+
import './local-llm-DH4tWtck.js';
|
|
20
20
|
import './model-registry.js';
|
|
21
21
|
import './fallback-llm.js';
|
|
22
22
|
import './fallback-llm-codex-subscription.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JudgeVerdictKind } from './extraction-judge.js';
|
|
2
|
-
import './types-
|
|
2
|
+
import './types-DgDaoY61.js';
|
|
3
3
|
import './message-parts/index.js';
|
|
4
4
|
import './bounded-jsonl-state.js';
|
|
5
5
|
import './operator-doctor-types.js';
|
|
@@ -16,7 +16,7 @@ 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 './local-llm-
|
|
19
|
+
import './local-llm-DH4tWtck.js';
|
|
20
20
|
import './model-registry.js';
|
|
21
21
|
import './fallback-llm.js';
|
|
22
22
|
import './fallback-llm-codex-subscription.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a2 as ImportanceLevel, P as PluginConfig } from './types-
|
|
2
|
-
import { L as LocalLlmClient } from './local-llm-
|
|
1
|
+
import { a2 as ImportanceLevel, P as PluginConfig } from './types-DgDaoY61.js';
|
|
2
|
+
import { L as LocalLlmClient } from './local-llm-DH4tWtck.js';
|
|
3
3
|
import { FallbackLlmClient } from './fallback-llm.js';
|
|
4
4
|
import './message-parts/index.js';
|
|
5
5
|
import './bounded-jsonl-state.js';
|