@remnic/core 9.69.39 → 9.69.40
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 +16 -14
- package/dist/access-admin-ops-surface.js +37 -37
- package/dist/access-authorization-probe.d.ts +16 -14
- package/dist/access-authorization-probe.js +38 -38
- package/dist/access-boundary.d.ts +16 -14
- package/dist/access-boundary.js +37 -37
- package/dist/access-cli.js +98 -97
- 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 +16 -14
- package/dist/access-extraction-force-flush.js +37 -37
- package/dist/access-health-types.d.ts +1 -1
- package/dist/access-http-briefing.d.ts +16 -14
- package/dist/access-http-briefing.js +38 -38
- package/dist/access-http-lcm-compaction.d.ts +16 -14
- package/dist/access-http-lifecycle-flush.d.ts +16 -14
- package/dist/access-http-offline-stream.d.ts +16 -14
- package/dist/access-http-query.d.ts +2 -2
- package/dist/access-http-query.js +39 -39
- package/dist/access-http.d.ts +17 -15
- package/dist/access-http.js +53 -53
- package/dist/access-identity-continuity-surface.d.ts +13 -12
- package/dist/access-identity-continuity-surface.js +37 -37
- package/dist/access-lcm-surface.d.ts +16 -14
- package/dist/access-lcm-surface.js +37 -37
- package/dist/access-mcp.d.ts +16 -14
- package/dist/access-mcp.js +45 -45
- package/dist/access-memory-search-fanout.d.ts +2 -2
- package/dist/{access-namespace-preflight-DY4z6L5X.d.ts → access-namespace-preflight-CKBumJ8W.d.ts} +1 -1
- package/dist/access-namespace-preflight.d.ts +3 -3
- package/dist/access-namespace-preflight.js +37 -37
- package/dist/access-observe-transcript.d.ts +13 -12
- package/dist/access-observe-write-category.d.ts +1 -1
- package/dist/access-observe-write-category.js +2 -2
- package/dist/access-observe-write-surface.d.ts +16 -14
- package/dist/access-observe-write-surface.js +37 -37
- package/dist/access-offline-manifest.d.ts +37 -13
- package/dist/access-offline-manifest.js +7 -3
- package/dist/access-operations-batch.js +39 -39
- package/dist/access-operations.d.ts +16 -14
- package/dist/access-operations.js +44 -44
- package/dist/access-recall-concurrency.d.ts +16 -14
- package/dist/access-recall-concurrency.js +37 -37
- package/dist/access-recall-response.d.ts +16 -14
- package/dist/access-recall-response.js +37 -37
- package/dist/access-recall-surface.d.ts +16 -14
- package/dist/access-recall-surface.js +37 -37
- package/dist/access-schema.d.ts +5 -3
- package/dist/access-schema.js +1 -1
- package/dist/{access-service-MY4bsr_Q.d.ts → access-service-DJ3qogNt.d.ts} +8 -8
- package/dist/access-service-helpers.d.ts +16 -14
- package/dist/access-service.d.ts +16 -14
- package/dist/access-service.js +37 -37
- package/dist/access-surface-catalog.d.ts +16 -14
- package/dist/access-surface-catalog.js +39 -39
- package/dist/access-wearables-meetings-surface.d.ts +6 -5
- 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 +6 -5
- package/dist/active-recall.js.map +1 -1
- 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-RP4C6ZPF.js → auto-sync-D6BAPIJV.js} +5 -5
- package/dist/background-generation-config.d.ts +1 -1
- package/dist/background-generation-config.js +3 -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 +13 -12
- package/dist/briefing-window.d.ts +2 -2
- package/dist/briefing.d.ts +2 -2
- package/dist/briefing.js +15 -15
- 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 +3 -2
- package/dist/calibration.js +2 -2
- package/dist/capabilities.d.ts +1 -1
- package/dist/{catalog-CW87xGx8.d.ts → catalog-BHXkBVhg.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 +19 -18
- package/dist/causal-consolidation.js.map +1 -1
- package/dist/causal-trajectory-graph.d.ts +1 -1
- package/dist/{chunk-B36GUU6T.js → chunk-23HFXQ5J.js} +36 -3
- package/dist/chunk-23HFXQ5J.js.map +1 -0
- package/dist/{chunk-YFTNZMGR.js → chunk-27NO2KVB.js} +31 -8
- package/dist/chunk-27NO2KVB.js.map +1 -0
- package/dist/{chunk-JTQR6L2N.js → chunk-2SKMZUOW.js} +2 -2
- package/dist/{chunk-GG5FHZJJ.js → chunk-2SNCQHJZ.js} +2 -2
- package/dist/{chunk-O76F5QPP.js → chunk-3QEVOQF5.js} +2 -2
- package/dist/{chunk-3N3PBBEH.js → chunk-3XPN7AVY.js} +2 -2
- package/dist/{chunk-X4TD4O2F.js → chunk-46Z3VGWF.js} +2 -2
- package/dist/{chunk-2ZTDRNCS.js → chunk-4CMXI55L.js} +2 -2
- package/dist/{chunk-FWWWUPOE.js → chunk-5LYSEZOF.js} +18 -9
- package/dist/chunk-5LYSEZOF.js.map +1 -0
- package/dist/{chunk-IQEJIOEU.js → chunk-62HFZNCJ.js} +17 -10
- package/dist/chunk-62HFZNCJ.js.map +1 -0
- package/dist/{chunk-YKREX63Z.js → chunk-6L2II3KS.js} +5 -3
- package/dist/chunk-6L2II3KS.js.map +1 -0
- package/dist/{chunk-MUTVRKKY.js → chunk-7D6SER6A.js} +8 -8
- package/dist/{chunk-WBM2MVBK.js → chunk-7Z54NXVS.js} +2 -2
- package/dist/{chunk-ACY4ZPF7.js → chunk-AEOOGXMQ.js} +10 -5
- package/dist/chunk-AEOOGXMQ.js.map +1 -0
- package/dist/{chunk-UHRZ324M.js → chunk-BGRTZOJB.js} +3 -3
- package/dist/{chunk-ZEGL7YCC.js → chunk-BXIJSPCL.js} +2 -2
- package/dist/{chunk-JKKII6GX.js → chunk-BYQX4IOG.js} +2 -2
- package/dist/{chunk-WIWLX65T.js → chunk-C5R73BON.js} +2 -2
- package/dist/{chunk-BD7JTBYP.js → chunk-D7MAYFQP.js} +2 -2
- package/dist/{chunk-TNZNSMVJ.js → chunk-DAZANIYU.js} +249 -295
- package/dist/chunk-DAZANIYU.js.map +1 -0
- package/dist/{chunk-LMLGBG6H.js → chunk-DFVSJFHK.js} +2 -2
- package/dist/{chunk-3NPNBVFR.js → chunk-ES5BUPYB.js} +2 -2
- package/dist/{chunk-MVAQ2WM3.js → chunk-G2XZFGYN.js} +6 -2
- package/dist/chunk-G2XZFGYN.js.map +1 -0
- package/dist/{chunk-TNSCIPBQ.js → chunk-G6NQ3L4T.js} +2 -2
- package/dist/{chunk-5N4MZLEH.js → chunk-GO5LOHCD.js} +2 -2
- package/dist/{chunk-AECJY3GJ.js → chunk-GSSDHAYH.js} +2 -2
- package/dist/{chunk-TSP5WH72.js → chunk-HJUP3K6L.js} +2 -2
- package/dist/{chunk-AAZEKXUP.js → chunk-ICNJ6J46.js} +2 -2
- package/dist/{chunk-6EHM2AV7.js → chunk-IMBQFHRV.js} +2 -2
- package/dist/{chunk-4RZLTZVM.js → chunk-IOPIGX7Y.js} +1 -1
- package/dist/{chunk-EYKIDK33.js → chunk-IS2IDFJP.js} +13 -13
- package/dist/{chunk-VJIE4D2I.js → chunk-J4WGTN2N.js} +2 -2
- package/dist/{chunk-NXGSONWM.js → chunk-J7FVMLBR.js} +2 -2
- package/dist/{chunk-VSL63CFJ.js → chunk-JAJIMTFB.js} +6 -6
- package/dist/{chunk-4JVQRFZD.js → chunk-JOP7W24J.js} +9 -9
- package/dist/{chunk-YUW66UAH.js → chunk-JUDT33RX.js} +2 -2
- package/dist/{chunk-QHT7MOUF.js → chunk-K4A6UVPB.js} +22 -11
- package/dist/chunk-K4A6UVPB.js.map +1 -0
- package/dist/{chunk-D545Z7UH.js → chunk-K4JKAXMO.js} +2 -2
- package/dist/{chunk-BV4ZKIZH.js → chunk-K75A5XWU.js} +3 -2
- package/dist/{chunk-3CBI2ZSA.js → chunk-KG2OOAFF.js} +20 -12
- package/dist/chunk-KG2OOAFF.js.map +1 -0
- package/dist/{chunk-M6HBPLBA.js → chunk-KOTG3RXE.js} +2 -2
- package/dist/{chunk-CWTCMZGE.js → chunk-KTOXQMW3.js} +119 -3
- package/dist/chunk-KTOXQMW3.js.map +1 -0
- package/dist/{chunk-OB3XMWX5.js → chunk-KVO2BTA4.js} +2 -2
- package/dist/{chunk-GI4ZBWPQ.js → chunk-KY236SP5.js} +3 -3
- package/dist/{chunk-4BCHFSC7.js → chunk-LFVZD5EC.js} +3 -3
- package/dist/{chunk-O4M4BDIJ.js → chunk-LKFVVN7R.js} +2 -2
- package/dist/{chunk-IYKZJVL5.js → chunk-MDIEES23.js} +1 -1
- package/dist/chunk-MDIEES23.js.map +1 -0
- package/dist/{chunk-4RX5O34R.js → chunk-MJC7UKH7.js} +2 -2
- package/dist/{chunk-CZTPU65V.js → chunk-MVG3KXON.js} +63 -16
- package/dist/chunk-MVG3KXON.js.map +1 -0
- package/dist/{chunk-YDVAM7S4.js → chunk-NETQXOPY.js} +2 -2
- package/dist/chunk-NETQXOPY.js.map +1 -0
- package/dist/{chunk-UZZ7SQT3.js → chunk-NVVZPBKI.js} +2 -2
- package/dist/{chunk-BLDBT6HZ.js → chunk-PJRKLB4Z.js} +18 -2
- package/dist/chunk-PJRKLB4Z.js.map +1 -0
- package/dist/{chunk-VBSNUH4J.js → chunk-PKUJNICO.js} +2 -2
- package/dist/{chunk-OPBFP4TF.js → chunk-QE6YVNP5.js} +7 -7
- package/dist/{chunk-WKDFJXW5.js → chunk-QM2SPLKQ.js} +1 -1
- package/dist/chunk-QM2SPLKQ.js.map +1 -0
- package/dist/{chunk-ENBPQEVU.js → chunk-QPVNK2VE.js} +2 -2
- package/dist/{chunk-RLJHJQUY.js → chunk-QS5Q5RBV.js} +2 -2
- package/dist/{chunk-3EKVN2OP.js → chunk-RDLPFM7I.js} +2 -2
- package/dist/{chunk-F4EHXVP7.js → chunk-RJQAP333.js} +2 -2
- package/dist/{chunk-QTQ6XKGT.js → chunk-RLU2Y5GV.js} +4 -4
- package/dist/chunk-RLU2Y5GV.js.map +1 -0
- package/dist/{chunk-5SPCMAUC.js → chunk-ROEFLU37.js} +4 -4
- package/dist/{chunk-UZEHHXYC.js → chunk-SFHLQPBF.js} +22 -22
- package/dist/chunk-SK7D34OL.js +68 -0
- package/dist/chunk-SK7D34OL.js.map +1 -0
- package/dist/{chunk-ZBW7A667.js → chunk-SUEOG2S4.js} +2 -2
- package/dist/{chunk-Q7CLGFA7.js → chunk-TEMKBSV6.js} +2 -2
- package/dist/{chunk-LQNRVPTV.js → chunk-THTF2W7M.js} +151 -118
- package/dist/chunk-THTF2W7M.js.map +1 -0
- package/dist/{chunk-GMIQV6DD.js → chunk-TO36VPZI.js} +2 -2
- package/dist/{chunk-6YAIN5XJ.js → chunk-TZ44E732.js} +44 -6
- package/dist/chunk-TZ44E732.js.map +1 -0
- package/dist/{chunk-JXN77SGO.js → chunk-U2VDCFXW.js} +1 -1
- package/dist/chunk-U2VDCFXW.js.map +1 -0
- package/dist/{chunk-LPYYY4AP.js → chunk-UZ6JYPJ6.js} +500 -218
- package/dist/chunk-UZ6JYPJ6.js.map +1 -0
- package/dist/{chunk-FXHOZGSE.js → chunk-V2ZA4YWE.js} +2 -2
- package/dist/{chunk-XH3HGI2N.js → chunk-VHKXRYQN.js} +2 -2
- package/dist/{chunk-GAS7KYC7.js → chunk-VKWFNPBH.js} +2 -2
- package/dist/{chunk-6H2G7RFT.js → chunk-VNQRRUNS.js} +11 -10
- package/dist/chunk-VNQRRUNS.js.map +1 -0
- package/dist/{chunk-IL6ODG6M.js → chunk-VQWBUPSJ.js} +2 -2
- package/dist/{chunk-5YCNDC3C.js → chunk-VQYWKCDR.js} +2 -2
- package/dist/{chunk-54NX5EG4.js → chunk-W23JARAQ.js} +2 -2
- package/dist/{chunk-YQNNHLCG.js → chunk-WPGR3RW4.js} +2 -2
- package/dist/{chunk-FNHLI2RE.js → chunk-WZYHPAG5.js} +3 -3
- package/dist/{chunk-5HYUUFMQ.js → chunk-XCPNH2MG.js} +259 -10
- package/dist/chunk-XCPNH2MG.js.map +1 -0
- package/dist/{chunk-TA4C3XB7.js → chunk-XM46Y66S.js} +2 -2
- package/dist/{chunk-PCOVEDPK.js → chunk-YRIFXXMI.js} +3 -3
- package/dist/{chunk-TRLOFIQC.js → chunk-YTK5MVNF.js} +2 -2
- package/dist/{chunk-Q432REND.js → chunk-YTZN2UZO.js} +2 -2
- package/dist/{chunk-6AGWBKQU.js → chunk-Z4GUX2M6.js} +2 -2
- package/dist/{chunk-AENM6GKU.js → chunk-ZAEPD4C2.js} +2 -2
- package/dist/{chunk-KQW3YGEN.js → chunk-ZRMMXWYI.js} +2 -2
- package/dist/{chunk-P4ZAEYKG.js → chunk-ZX3AYNNV.js} +6 -3
- package/dist/chunk-ZX3AYNNV.js.map +1 -0
- package/dist/{chunk-MCRVQ5YQ.js → chunk-ZZCR2QYL.js} +2 -2
- package/dist/{cli-DGq0MNpO.d.ts → cli-BWri5-am.d.ts} +5 -5
- package/dist/cli.d.ts +18 -16
- package/dist/cli.js +75 -74
- package/dist/coding/export-okf-codegraph.d.ts +1 -1
- package/dist/coding/export-okf-codegraph.js +14 -14
- package/dist/coding/pre-action-gate.d.ts +1 -1
- package/dist/compounding/engine.d.ts +2 -2
- package/dist/compounding/engine.js +15 -15
- 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 +6 -5
- package/dist/connectors/codex-materialize-runner.d.ts +1 -1
- package/dist/connectors/codex-materialize-runner.js +15 -15
- package/dist/connectors/codex-materialize.d.ts +1 -1
- package/dist/connectors/index.d.ts +1 -1
- package/dist/connectors/index.js +15 -15
- package/dist/consolidation-provenance-check.d.ts +2 -2
- package/dist/consolidation-undo.d.ts +2 -2
- package/dist/contradiction/index.d.ts +6 -5
- package/dist/converge-config.d.ts +1 -1
- package/dist/convergence-refresh.d.ts +2 -2
- package/dist/convergence-refresh.js +17 -17
- 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 +17 -17
- 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 +16 -14
- package/dist/deep-recall-http-glue.js +2 -2
- package/dist/deep-recall-mcp-tools.d.ts +16 -14
- package/dist/deep-recall-policy-llm.d.ts +4 -3
- 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-Cq1ekOwV.d.ts → dependency-propagation-delivery-ueZlKTQB.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 +15 -15
- 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 +13 -12
- package/dist/external-wiki-access.d.ts +16 -14
- package/dist/external-wiki-access.js +38 -38
- 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 +16 -14
- package/dist/extraction-error-classification.d.ts +14 -3
- package/dist/extraction-error-classification.js +5 -3
- package/dist/extraction-faithfulness.d.ts +4 -3
- package/dist/extraction-faithfulness.js +3 -3
- package/dist/extraction-judge-telemetry.d.ts +4 -3
- package/dist/extraction-judge-training.d.ts +4 -3
- package/dist/extraction-judge.d.ts +4 -3
- 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.d.ts +4 -4
- package/dist/extraction.js +25 -23
- package/dist/fallback-llm-codex-subscription.d.ts +52 -7
- package/dist/fallback-llm-codex-subscription.js +17 -1
- package/dist/fallback-llm.d.ts +25 -28
- package/dist/fallback-llm.js +4 -3
- package/dist/{generic-recall-paths-BcySh_f9.d.ts → generic-recall-paths-CpyVmA88.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-DWOb4wz9.d.ts → index-BvUA4S7M.d.ts} +3 -3
- package/dist/index.d.ts +79 -39
- package/dist/index.js +119 -103
- 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/index.js +3 -3
- 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-BsJGulur.d.ts +247 -0
- package/dist/local-llm-config.d.ts +4 -1
- package/dist/local-llm-config.js +4 -2
- package/dist/local-llm-helpers.d.ts +18 -69
- package/dist/local-llm-helpers.js +1 -1
- package/dist/local-llm.d.ts +3 -170
- package/dist/local-llm.js +2 -2
- package/dist/local-model-endpoint.d.ts +1 -1
- package/dist/location/index.d.ts +3 -3
- package/dist/location/index.js +17 -17
- package/dist/maintenance/memory-governance.d.ts +1 -1
- package/dist/maintenance/memory-governance.js +15 -15
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.d.ts +2 -2
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +15 -15
- package/dist/maintenance/rebuild-memory-projection.d.ts +2 -2
- package/dist/maintenance/rebuild-memory-projection.js +16 -16
- package/dist/{maintenance-CW9wCzMP.d.ts → maintenance-CYubtIRr.d.ts} +9 -3
- package/dist/mcp-memory-inspector-app.d.ts +16 -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 +16 -14
- package/dist/memory-subject.d.ts +16 -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 +16 -16
- package/dist/namespaces/principal.d.ts +1 -1
- package/dist/namespaces/search.d.ts +12 -1
- package/dist/namespaces/search.js +9 -9
- package/dist/namespaces/storage.d.ts +3 -3
- package/dist/namespaces/storage.js +15 -15
- 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 +18 -18
- package/dist/operator-doctor-replica.d.ts +1 -1
- package/dist/operator-toolkit.d.ts +3 -3
- package/dist/operator-toolkit.js +29 -28
- package/dist/orchestration/compression-guideline-coordinator.d.ts +2 -2
- package/dist/orchestration/maintenance.d.ts +4 -4
- package/dist/orchestration/maintenance.js +26 -26
- package/dist/{orchestrator-ComHLm49.d.ts → orchestrator-BWDRJ_0d.d.ts} +24 -11
- package/dist/orchestrator.d.ts +13 -12
- package/dist/orchestrator.js +101 -98
- package/dist/patterns-cli.d.ts +1 -1
- package/dist/{pipeline-CiYcqqhl.d.ts → pipeline-7JMn2yMH.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-CuK4_Cb1.d.ts → public-http-CJWs3mo9.d.ts} +1 -1
- package/dist/{qmd-qXD4vatU.d.ts → qmd-CxCH9G9m.d.ts} +2 -2
- 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 +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-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 +1 -1
- package/dist/recall-navigate.d.ts +1 -1
- package/dist/recall-navigate.js +2 -2
- package/dist/recall-planner-llm.d.ts +3 -2
- package/dist/recall-planner-llm.js +4 -3
- package/dist/recall-planner-llm.js.map +1 -1
- package/dist/recall-state-view-admission.d.ts +13 -3
- package/dist/recall-state-view-admission.js +8 -8
- package/dist/recall-state-view-anchors.d.ts +1 -1
- package/dist/recall-state-view-anchors.js +2 -2
- package/dist/recall-state-view-inject.js +2 -2
- package/dist/recall-state-view-render.js +2 -2
- package/dist/recall-state-view-widen.js +2 -2
- package/dist/recall-state-view-wire.js +3 -3
- package/dist/recall-state-view.d.ts +1 -0
- package/dist/recall-state-view.js +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 +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 +7 -6
- 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-BT9rqC3w.d.ts → scope-profiles-BGAUqhBR.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 +8 -8
- package/dist/search/index.d.ts +1 -1
- package/dist/search/index.js +10 -10
- package/dist/search/lancedb-backend.d.ts +1 -1
- package/dist/search/lancedb-backend.js +2 -2
- package/dist/search/meilisearch-backend.d.ts +1 -1
- package/dist/search/meilisearch-backend.js +2 -2
- package/dist/search/noop-backend.d.ts +1 -1
- package/dist/search/orama-backend.d.ts +1 -1
- package/dist/search/orama-backend.js +2 -2
- package/dist/search/port.d.ts +2 -2
- package/dist/search/port.js +1 -1
- package/dist/search/remote-backend.d.ts +1 -1
- package/dist/search/remote-backend.js +2 -2
- package/dist/{semantic-consolidation-CmZi7thY.d.ts → semantic-consolidation-CCeRD9pV.d.ts} +1 -1
- package/dist/semantic-consolidation.d.ts +2 -2
- package/dist/semantic-consolidation.js +16 -16
- package/dist/semantic-rule-promotion.js +15 -15
- package/dist/semantic-rule-verifier.d.ts +1 -1
- package/dist/semantic-rule-verifier.js +15 -15
- package/dist/{service-CLkA7AQB.d.ts → service-BwpzRduk.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 +18 -18
- package/dist/standup/build.js +15 -15
- package/dist/{storage-wvX01lht.d.ts → storage-BprAGBG0.d.ts} +2 -1
- package/dist/storage.d.ts +2 -2
- package/dist/storage.js +14 -14
- package/dist/subject-config.d.ts +1 -1
- package/dist/summarizer.d.ts +1 -1
- package/dist/summarizer.js +5 -5
- package/dist/summary-snapshot.d.ts +1 -1
- package/dist/support-passport/index.d.ts +18 -17
- package/dist/support-passport/index.js +40 -40
- package/dist/task-llm-config.d.ts +16 -0
- package/dist/task-llm-config.js +12 -0
- package/dist/task-llm-config.js.map +1 -0
- 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 +15 -15
- package/dist/trust-score-stage.d.ts +1 -1
- package/dist/trust-score.d.ts +1 -1
- package/dist/{types-Cyr32ABj.d.ts → types-nJV23pa3.d.ts} +1 -1
- 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 +15 -15
- package/dist/who-knows-cli.d.ts +16 -14
- package/dist/who-knows-cli.js +16 -16
- package/dist/who-knows.d.ts +16 -14
- package/dist/who-knows.js +15 -15
- package/dist/write-envelope.d.ts +1 -1
- package/package.json +2 -2
- package/src/access-category-alias.test.ts +93 -0
- package/src/access-offline-manifest.ts +52 -2
- package/src/access-schema.ts +9 -4
- package/src/activity/config.test.ts +61 -0
- package/src/activity/config.ts +40 -1
- package/src/activity/timeline/analysis-provider.ts +8 -2
- package/src/activity/timeline/analysis-run.test.ts +82 -0
- package/src/activity/timeline/publish-cli.test.ts +30 -0
- package/src/activity/timeline/publish-cli.ts +7 -0
- package/src/activity/timeline/query.ts +8 -1
- package/src/activity/timeline/regenerate.test.ts +82 -2
- package/src/activity/timeline/regenerate.ts +7 -1
- package/src/activity/vault-frontmatter.test.ts +99 -1
- package/src/activity/vault-frontmatter.ts +131 -0
- package/src/activity/vault-publish.ts +6 -0
- package/src/activity/vault-publisher.test.ts +172 -0
- package/src/activity/vault-publisher.ts +69 -15
- package/src/activity/vault-region.test.ts +7 -2
- package/src/activity/vault-region.ts +7 -3
- package/src/background-generation-config.ts +32 -6
- package/src/background-generation.test.ts +10 -1
- package/src/cli/timeline-publish-commands.ts +9 -0
- package/src/config.test.ts +170 -43
- package/src/config.ts +17 -5
- package/src/extraction-error-classification.ts +36 -1
- package/src/extraction-timeout.test.ts +110 -1
- package/src/extraction.test.ts +19 -1
- package/src/extraction.ts +23 -21
- package/src/fallback-llm-codex-subscription.ts +193 -7
- package/src/fallback-llm-parse-failure.test.ts +156 -0
- package/src/fallback-llm.test.ts +58 -0
- package/src/fallback-llm.ts +187 -186
- package/src/index.ts +1 -0
- package/src/local-llm-config.ts +11 -10
- package/src/local-llm-headers-timeout.test.ts +30 -0
- package/src/local-llm-helpers.ts +28 -0
- package/src/local-llm.ts +8 -19
- package/src/namespaces/search.test.ts +51 -1
- package/src/namespaces/search.ts +48 -3
- package/src/orchestration/extraction-persist-promotion.test.ts +228 -2
- package/src/orchestration/extraction-persist-promotion.ts +17 -14
- package/src/orchestration/orchestrator-helpers.test.ts +104 -0
- package/src/orchestration/orchestrator-init.ts +366 -106
- package/src/orchestration/recall-internal.ts +5 -11
- package/src/orchestration/semantic-merge-promotion-payload.ts +62 -6
- package/src/orchestration/startup-collection-checks.ts +85 -0
- package/src/orchestrator-flush.test.ts +7 -0
- package/src/orchestrator-init.test.ts +1539 -0
- package/src/orchestrator.ts +7 -0
- package/src/qmd.ts +21 -10
- package/src/recall-state-view-admission.ts +11 -1
- package/src/recall-state-view-cron-intent.test.ts +268 -0
- package/src/recall-state-view-widen.test.ts +14 -5
- package/src/recall-state-view-widen.ts +8 -1
- package/src/recall-state-view.ts +5 -2
- package/src/reconcile-identity-cache.test.ts +82 -1
- package/src/search/port.ts +1 -1
- package/src/storage/cas-revision-store.test.ts +4 -0
- package/src/storage/cas-revision-store.ts +104 -12
- package/src/storage-frontmatter-cas.test.ts +19 -17
- package/src/summarizer.ts +5 -1
- package/src/task-llm-config.test.ts +124 -0
- package/src/task-llm-config.ts +88 -0
- package/src/testing/subjects/startup-discovery-lifecycle.test.ts +273 -0
- package/src/types.ts +1 -0
- package/dist/chunk-3CBI2ZSA.js.map +0 -1
- package/dist/chunk-5HYUUFMQ.js.map +0 -1
- package/dist/chunk-6H2G7RFT.js.map +0 -1
- package/dist/chunk-6YAIN5XJ.js.map +0 -1
- package/dist/chunk-ACY4ZPF7.js.map +0 -1
- package/dist/chunk-B36GUU6T.js.map +0 -1
- package/dist/chunk-BLDBT6HZ.js.map +0 -1
- package/dist/chunk-CWTCMZGE.js.map +0 -1
- package/dist/chunk-CZTPU65V.js.map +0 -1
- package/dist/chunk-FWWWUPOE.js.map +0 -1
- package/dist/chunk-IQEJIOEU.js.map +0 -1
- package/dist/chunk-IYKZJVL5.js.map +0 -1
- package/dist/chunk-JXN77SGO.js.map +0 -1
- package/dist/chunk-LPYYY4AP.js.map +0 -1
- package/dist/chunk-LQNRVPTV.js.map +0 -1
- package/dist/chunk-MVAQ2WM3.js.map +0 -1
- package/dist/chunk-P4ZAEYKG.js.map +0 -1
- package/dist/chunk-QHT7MOUF.js.map +0 -1
- package/dist/chunk-QTQ6XKGT.js.map +0 -1
- package/dist/chunk-TNZNSMVJ.js.map +0 -1
- package/dist/chunk-WKDFJXW5.js.map +0 -1
- package/dist/chunk-YDVAM7S4.js.map +0 -1
- package/dist/chunk-YFTNZMGR.js.map +0 -1
- package/dist/chunk-YKREX63Z.js.map +0 -1
- /package/dist/{auto-sync-RP4C6ZPF.js.map → auto-sync-D6BAPIJV.js.map} +0 -0
- /package/dist/{chunk-JTQR6L2N.js.map → chunk-2SKMZUOW.js.map} +0 -0
- /package/dist/{chunk-GG5FHZJJ.js.map → chunk-2SNCQHJZ.js.map} +0 -0
- /package/dist/{chunk-O76F5QPP.js.map → chunk-3QEVOQF5.js.map} +0 -0
- /package/dist/{chunk-3N3PBBEH.js.map → chunk-3XPN7AVY.js.map} +0 -0
- /package/dist/{chunk-X4TD4O2F.js.map → chunk-46Z3VGWF.js.map} +0 -0
- /package/dist/{chunk-2ZTDRNCS.js.map → chunk-4CMXI55L.js.map} +0 -0
- /package/dist/{chunk-MUTVRKKY.js.map → chunk-7D6SER6A.js.map} +0 -0
- /package/dist/{chunk-WBM2MVBK.js.map → chunk-7Z54NXVS.js.map} +0 -0
- /package/dist/{chunk-UHRZ324M.js.map → chunk-BGRTZOJB.js.map} +0 -0
- /package/dist/{chunk-ZEGL7YCC.js.map → chunk-BXIJSPCL.js.map} +0 -0
- /package/dist/{chunk-JKKII6GX.js.map → chunk-BYQX4IOG.js.map} +0 -0
- /package/dist/{chunk-WIWLX65T.js.map → chunk-C5R73BON.js.map} +0 -0
- /package/dist/{chunk-BD7JTBYP.js.map → chunk-D7MAYFQP.js.map} +0 -0
- /package/dist/{chunk-LMLGBG6H.js.map → chunk-DFVSJFHK.js.map} +0 -0
- /package/dist/{chunk-3NPNBVFR.js.map → chunk-ES5BUPYB.js.map} +0 -0
- /package/dist/{chunk-TNSCIPBQ.js.map → chunk-G6NQ3L4T.js.map} +0 -0
- /package/dist/{chunk-5N4MZLEH.js.map → chunk-GO5LOHCD.js.map} +0 -0
- /package/dist/{chunk-AECJY3GJ.js.map → chunk-GSSDHAYH.js.map} +0 -0
- /package/dist/{chunk-TSP5WH72.js.map → chunk-HJUP3K6L.js.map} +0 -0
- /package/dist/{chunk-AAZEKXUP.js.map → chunk-ICNJ6J46.js.map} +0 -0
- /package/dist/{chunk-6EHM2AV7.js.map → chunk-IMBQFHRV.js.map} +0 -0
- /package/dist/{chunk-4RZLTZVM.js.map → chunk-IOPIGX7Y.js.map} +0 -0
- /package/dist/{chunk-EYKIDK33.js.map → chunk-IS2IDFJP.js.map} +0 -0
- /package/dist/{chunk-VJIE4D2I.js.map → chunk-J4WGTN2N.js.map} +0 -0
- /package/dist/{chunk-NXGSONWM.js.map → chunk-J7FVMLBR.js.map} +0 -0
- /package/dist/{chunk-VSL63CFJ.js.map → chunk-JAJIMTFB.js.map} +0 -0
- /package/dist/{chunk-4JVQRFZD.js.map → chunk-JOP7W24J.js.map} +0 -0
- /package/dist/{chunk-YUW66UAH.js.map → chunk-JUDT33RX.js.map} +0 -0
- /package/dist/{chunk-D545Z7UH.js.map → chunk-K4JKAXMO.js.map} +0 -0
- /package/dist/{chunk-BV4ZKIZH.js.map → chunk-K75A5XWU.js.map} +0 -0
- /package/dist/{chunk-M6HBPLBA.js.map → chunk-KOTG3RXE.js.map} +0 -0
- /package/dist/{chunk-OB3XMWX5.js.map → chunk-KVO2BTA4.js.map} +0 -0
- /package/dist/{chunk-GI4ZBWPQ.js.map → chunk-KY236SP5.js.map} +0 -0
- /package/dist/{chunk-4BCHFSC7.js.map → chunk-LFVZD5EC.js.map} +0 -0
- /package/dist/{chunk-O4M4BDIJ.js.map → chunk-LKFVVN7R.js.map} +0 -0
- /package/dist/{chunk-4RX5O34R.js.map → chunk-MJC7UKH7.js.map} +0 -0
- /package/dist/{chunk-UZZ7SQT3.js.map → chunk-NVVZPBKI.js.map} +0 -0
- /package/dist/{chunk-VBSNUH4J.js.map → chunk-PKUJNICO.js.map} +0 -0
- /package/dist/{chunk-OPBFP4TF.js.map → chunk-QE6YVNP5.js.map} +0 -0
- /package/dist/{chunk-ENBPQEVU.js.map → chunk-QPVNK2VE.js.map} +0 -0
- /package/dist/{chunk-RLJHJQUY.js.map → chunk-QS5Q5RBV.js.map} +0 -0
- /package/dist/{chunk-3EKVN2OP.js.map → chunk-RDLPFM7I.js.map} +0 -0
- /package/dist/{chunk-F4EHXVP7.js.map → chunk-RJQAP333.js.map} +0 -0
- /package/dist/{chunk-5SPCMAUC.js.map → chunk-ROEFLU37.js.map} +0 -0
- /package/dist/{chunk-UZEHHXYC.js.map → chunk-SFHLQPBF.js.map} +0 -0
- /package/dist/{chunk-ZBW7A667.js.map → chunk-SUEOG2S4.js.map} +0 -0
- /package/dist/{chunk-Q7CLGFA7.js.map → chunk-TEMKBSV6.js.map} +0 -0
- /package/dist/{chunk-GMIQV6DD.js.map → chunk-TO36VPZI.js.map} +0 -0
- /package/dist/{chunk-FXHOZGSE.js.map → chunk-V2ZA4YWE.js.map} +0 -0
- /package/dist/{chunk-XH3HGI2N.js.map → chunk-VHKXRYQN.js.map} +0 -0
- /package/dist/{chunk-GAS7KYC7.js.map → chunk-VKWFNPBH.js.map} +0 -0
- /package/dist/{chunk-IL6ODG6M.js.map → chunk-VQWBUPSJ.js.map} +0 -0
- /package/dist/{chunk-5YCNDC3C.js.map → chunk-VQYWKCDR.js.map} +0 -0
- /package/dist/{chunk-54NX5EG4.js.map → chunk-W23JARAQ.js.map} +0 -0
- /package/dist/{chunk-YQNNHLCG.js.map → chunk-WPGR3RW4.js.map} +0 -0
- /package/dist/{chunk-FNHLI2RE.js.map → chunk-WZYHPAG5.js.map} +0 -0
- /package/dist/{chunk-TA4C3XB7.js.map → chunk-XM46Y66S.js.map} +0 -0
- /package/dist/{chunk-PCOVEDPK.js.map → chunk-YRIFXXMI.js.map} +0 -0
- /package/dist/{chunk-TRLOFIQC.js.map → chunk-YTK5MVNF.js.map} +0 -0
- /package/dist/{chunk-Q432REND.js.map → chunk-YTZN2UZO.js.map} +0 -0
- /package/dist/{chunk-6AGWBKQU.js.map → chunk-Z4GUX2M6.js.map} +0 -0
- /package/dist/{chunk-AENM6GKU.js.map → chunk-ZAEPD4C2.js.map} +0 -0
- /package/dist/{chunk-KQW3YGEN.js.map → chunk-ZRMMXWYI.js.map} +0 -0
- /package/dist/{chunk-MCRVQ5YQ.js.map → chunk-ZZCR2QYL.js.map} +0 -0
package/dist/intent.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aB as MemoryIntent, R as RecallPlanMode } from './types-
|
|
1
|
+
import { aB as MemoryIntent, R as RecallPlanMode } from './types-nJV23pa3.js';
|
|
2
2
|
import './message-parts/index.js';
|
|
3
3
|
import './bounded-jsonl-state.js';
|
|
4
4
|
import './operator-doctor-types.js';
|
package/dist/lcm/engine.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { LcmStructuredRecallMatch, LcmMessage } from './archive.js';
|
|
|
2
2
|
import { SummarizeFn } from '../context-summary.js';
|
|
3
3
|
import { LcmRecallWithTraceResult } from './recall.js';
|
|
4
4
|
import { LcmObserveMessage } from './queue.js';
|
|
5
|
-
import { P as PluginConfig } from '../types-
|
|
5
|
+
import { P as PluginConfig } from '../types-nJV23pa3.js';
|
|
6
6
|
import 'better-sqlite3';
|
|
7
7
|
import '../message-parts/index.js';
|
|
8
8
|
import '../token-estimate.js';
|
package/dist/lcm/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export { ensureLcmStateDir, openLcmDatabase } from './schema.js';
|
|
|
8
8
|
export { SummarizeFn } from '../context-summary.js';
|
|
9
9
|
import './queue.js';
|
|
10
10
|
import '../message-parts/index.js';
|
|
11
|
-
import '../types-
|
|
11
|
+
import '../types-nJV23pa3.js';
|
|
12
12
|
import '../bounded-jsonl-state.js';
|
|
13
13
|
import '../operator-doctor-types.js';
|
|
14
14
|
import '../external-wiki-config.js';
|
package/dist/lcm/index.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import "../chunk-VDC6RZI4.js";
|
|
2
|
+
import {
|
|
3
|
+
registerLcmTools
|
|
4
|
+
} from "../chunk-UWK5OXUJ.js";
|
|
2
5
|
import {
|
|
3
6
|
LcmEngine,
|
|
4
7
|
extractLcmConfig
|
|
@@ -18,9 +21,6 @@ import {
|
|
|
18
21
|
import {
|
|
19
22
|
LcmSummarizer
|
|
20
23
|
} from "../chunk-KOLJJN5G.js";
|
|
21
|
-
import {
|
|
22
|
-
registerLcmTools
|
|
23
|
-
} from "../chunk-UWK5OXUJ.js";
|
|
24
24
|
import {
|
|
25
25
|
LcmArchive,
|
|
26
26
|
estimateTokens
|
package/dist/lcm/tools.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import '../context-summary.js';
|
|
|
7
7
|
import './recall.js';
|
|
8
8
|
import './dag.js';
|
|
9
9
|
import './queue.js';
|
|
10
|
-
import '../types-
|
|
10
|
+
import '../types-nJV23pa3.js';
|
|
11
11
|
import '../bounded-jsonl-state.js';
|
|
12
12
|
import '../operator-doctor-types.js';
|
|
13
13
|
import '../external-wiki-config.js';
|
package/dist/lifecycle.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { X as LifecycleState, u as MemoryCategory, M as MemoryFile, m as MemoryFrontmatter } from './types-nJV23pa3.js';
|
|
2
2
|
import './message-parts/index.js';
|
|
3
3
|
import './bounded-jsonl-state.js';
|
|
4
4
|
import './operator-doctor-types.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { L as LiveConnector, C as ConnectorConfig, a as ConnectorDocument } from './framework-CNDn2164.js';
|
|
2
|
-
import { L as LiveConnectorsConfig } from './types-
|
|
2
|
+
import { L as LiveConnectorsConfig } from './types-nJV23pa3.js';
|
|
3
3
|
import './message-parts/index.js';
|
|
4
4
|
import './bounded-jsonl-state.js';
|
|
5
5
|
import './operator-doctor-types.js';
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
import { P as PluginConfig } from './types-nJV23pa3.js';
|
|
2
|
+
import { ModelRegistry } from './model-registry.js';
|
|
3
|
+
|
|
4
|
+
interface LocalLlmChatCompletionOptions {
|
|
5
|
+
temperature?: number;
|
|
6
|
+
maxTokens?: number;
|
|
7
|
+
responseFormat?: {
|
|
8
|
+
type: string;
|
|
9
|
+
};
|
|
10
|
+
timeoutMs?: number;
|
|
11
|
+
operation?: string;
|
|
12
|
+
forceDisableThinking?: boolean;
|
|
13
|
+
disableThinking?: boolean;
|
|
14
|
+
priority?: LocalLlmRequestPriority;
|
|
15
|
+
signal?: AbortSignal;
|
|
16
|
+
redactProviderErrors?: boolean;
|
|
17
|
+
/** Per-request model; defaults to config.localLlmModel. */
|
|
18
|
+
model?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Optional out-box for the terminal failure cause (issue #2891): on a
|
|
21
|
+
* failed request the client records the last provider error here so
|
|
22
|
+
* callers can classify it (e.g. HTTP 429 → rate-limited) in memory
|
|
23
|
+
* instead of seeing only null. Never logged.
|
|
24
|
+
*/
|
|
25
|
+
failureDiag?: {
|
|
26
|
+
lastError?: unknown;
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
interface LocalLlmChatCompletionResult {
|
|
30
|
+
content: string;
|
|
31
|
+
usage?: {
|
|
32
|
+
promptTokens: number;
|
|
33
|
+
completionTokens: number;
|
|
34
|
+
totalTokens: number;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
declare function isAbortError(err: unknown): boolean;
|
|
38
|
+
declare function waitForRetryBackoff(backoffMs: number, signal?: AbortSignal): Promise<boolean>;
|
|
39
|
+
declare function normalizeBackendTripReason(reason: string): string;
|
|
40
|
+
declare function extractNonRecoverableBackendReason(reason: string): string | null;
|
|
41
|
+
declare function extractNonRecoverableBackendReasonFromErrorText(errorText: string): string | null;
|
|
42
|
+
/**
|
|
43
|
+
* Flatten a fetch rejection into one line, including the `cause` undici hides
|
|
44
|
+
* the real reason behind (`fetch failed` alone says nothing).
|
|
45
|
+
*/
|
|
46
|
+
declare function describeFetchFailure(err: unknown): string;
|
|
47
|
+
/**
|
|
48
|
+
* What to record when every availability probe failed.
|
|
49
|
+
*
|
|
50
|
+
* A probe that TIMED OUT is not evidence the backend is down: the budget is a
|
|
51
|
+
* fixed 2s and a busy event loop can burn it before the socket is scheduled,
|
|
52
|
+
* so the backend looks dead while it answers other callers in single-digit ms.
|
|
53
|
+
* Caching that verdict took extraction offline for a whole health-check
|
|
54
|
+
* interval at a time (issue #2210), so a timeout leaves availability UNKNOWN —
|
|
55
|
+
* this call fails, the next one re-probes instead of reading a stale false.
|
|
56
|
+
*
|
|
57
|
+
* A backend that ANSWERED and said no is a real verdict and stays cached, or
|
|
58
|
+
* the daemon re-probes a known-bad endpoint on every request.
|
|
59
|
+
*/
|
|
60
|
+
declare function resolveUnavailableVerdict(args: {
|
|
61
|
+
baseUrl: string;
|
|
62
|
+
sawAbortedProbe: boolean;
|
|
63
|
+
wasAvailable: boolean | null;
|
|
64
|
+
}): {
|
|
65
|
+
cacheVerdict: boolean;
|
|
66
|
+
warning: string | null;
|
|
67
|
+
};
|
|
68
|
+
interface ProbeFetchResult {
|
|
69
|
+
ok: boolean;
|
|
70
|
+
data: unknown;
|
|
71
|
+
status: number | null;
|
|
72
|
+
/** The probe hit its own budget rather than getting an answer. */
|
|
73
|
+
aborted?: boolean;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* One health-probe request.
|
|
77
|
+
*
|
|
78
|
+
* Every failure is logged with its cause: a transport error and a 404 both
|
|
79
|
+
* returned `ok: false` with nothing recorded, so an unreachable backend was
|
|
80
|
+
* indistinguishable from a wrong path and an availability failure had no
|
|
81
|
+
* diagnosable reason at all (§22, issue #2210).
|
|
82
|
+
*/
|
|
83
|
+
declare function probeFetch(url: string, options: {
|
|
84
|
+
timeoutMs: number;
|
|
85
|
+
headers: Record<string, string>;
|
|
86
|
+
signal?: AbortSignal;
|
|
87
|
+
}): Promise<ProbeFetchResult>;
|
|
88
|
+
/**
|
|
89
|
+
* Collapses concurrent probe sequences onto one in-flight run.
|
|
90
|
+
*
|
|
91
|
+
* A timed-out availability probe deliberately caches nothing (issue #2210),
|
|
92
|
+
* which removed the false verdict that used to absorb concurrent callers:
|
|
93
|
+
* every queued request would then run its own full probe sequence, on a host
|
|
94
|
+
* already slow enough to blow the probe budget.
|
|
95
|
+
*
|
|
96
|
+
* Cancellation is refcounted rather than shared: one caller walking away must
|
|
97
|
+
* not abort a sequence the others are still waiting on, so the underlying task
|
|
98
|
+
* is aborted only once every waiter has gone.
|
|
99
|
+
*/
|
|
100
|
+
declare class SingleFlightProbe {
|
|
101
|
+
private pending;
|
|
102
|
+
run(task: (signal: AbortSignal) => Promise<boolean>, signal?: AbortSignal): Promise<boolean>;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Local LLM client for OpenAI-compatible endpoints (LM Studio, Ollama, MLX, etc.)
|
|
107
|
+
*
|
|
108
|
+
* Based on openclaw-tactician's provider detection patterns for consistency.
|
|
109
|
+
* Provides privacy-preserving, cost-effective LLM operations with
|
|
110
|
+
* graceful fallback to cloud providers when local LLM is unavailable.
|
|
111
|
+
*/
|
|
112
|
+
type LocalLlmType = "lmstudio" | "ollama" | "mlx" | "vllm" | "llamacpp" | "generic";
|
|
113
|
+
interface LocalModelInfo {
|
|
114
|
+
id: string;
|
|
115
|
+
contextWindow?: number;
|
|
116
|
+
maxTokens?: number;
|
|
117
|
+
}
|
|
118
|
+
type LocalLlmRequestPriority = "recall-critical" | "background";
|
|
119
|
+
declare class LocalLlmClient {
|
|
120
|
+
private config;
|
|
121
|
+
private isAvailable;
|
|
122
|
+
private lastHealthCheck;
|
|
123
|
+
private readonly availabilityProbe;
|
|
124
|
+
private detectedType;
|
|
125
|
+
private cachedModelInfo;
|
|
126
|
+
private cachedLmsContext;
|
|
127
|
+
private lastLmsCheck;
|
|
128
|
+
private consecutive400s;
|
|
129
|
+
private cooldownUntilMs;
|
|
130
|
+
private modelRegistry?;
|
|
131
|
+
private _disableThinking;
|
|
132
|
+
private readonly requestQueues;
|
|
133
|
+
private readonly queueProcessing;
|
|
134
|
+
private queueDrainScheduled;
|
|
135
|
+
private static readonly HEALTH_CHECK_INTERVAL_MS;
|
|
136
|
+
private static readonly LMS_CACHE_INTERVAL_MS;
|
|
137
|
+
private readonly chatTransport;
|
|
138
|
+
constructor(config: PluginConfig, modelRegistry?: ModelRegistry);
|
|
139
|
+
/**
|
|
140
|
+
* Request thinking/reasoning suppression on the next chat completion.
|
|
141
|
+
*
|
|
142
|
+
* When `true`, the client will inject
|
|
143
|
+
* `chat_template_kwargs: { enable_thinking: false }` into the request
|
|
144
|
+
* body — **but only when the detected backend is known to support it**
|
|
145
|
+
* (LM Studio, vLLM; see `THINKING_COMPATIBLE_BACKENDS`). Strict
|
|
146
|
+
* OpenAI-compat backends reject unknown fields with 400; on those the
|
|
147
|
+
* client fails open (thinking runs normally). This is the safe
|
|
148
|
+
* default for Remnic extraction-style operations: measurable latency
|
|
149
|
+
* win on thinking-capable backends, zero risk on others. Consolidation
|
|
150
|
+
* operations keep thinking enabled unless explicitly added to
|
|
151
|
+
* `THINKING_SUPPRESSED_OPERATIONS`. Issues #548 and #979.
|
|
152
|
+
*/
|
|
153
|
+
set disableThinking(value: boolean);
|
|
154
|
+
private resolveHomeDir;
|
|
155
|
+
private buildRequestHeaders;
|
|
156
|
+
/**
|
|
157
|
+
* Set the ModelRegistry for caching detected capabilities
|
|
158
|
+
*/
|
|
159
|
+
setModelRegistry(registry: ModelRegistry): void;
|
|
160
|
+
/**
|
|
161
|
+
* Get the detected server type (null if not detected)
|
|
162
|
+
*/
|
|
163
|
+
getDetectedType(): LocalLlmType | null;
|
|
164
|
+
private getBackendKey;
|
|
165
|
+
private getGlobalBackendState;
|
|
166
|
+
private getTrippedBackendState;
|
|
167
|
+
private markBackendUnavailable;
|
|
168
|
+
/**
|
|
169
|
+
* Fetch with timeout for health checks. Body lives in the sibling helper so
|
|
170
|
+
* this file stays under its size ceiling (issue #1995).
|
|
171
|
+
*/
|
|
172
|
+
private fetchWithTimeout;
|
|
173
|
+
private probeLmStudioNativeModels;
|
|
174
|
+
/**
|
|
175
|
+
* Check if local LLM is available
|
|
176
|
+
* Uses 127.0.0.1 instead of localhost to avoid DNS issues (consistent with tactician)
|
|
177
|
+
*/
|
|
178
|
+
checkAvailability(signal?: AbortSignal): Promise<boolean>;
|
|
179
|
+
private probeAvailability;
|
|
180
|
+
/**
|
|
181
|
+
* Try to get context window from LM Studio settings.json as fallback.
|
|
182
|
+
* This reads the defaultContextLength setting which is what LM Studio uses
|
|
183
|
+
* when loading models without explicit context configuration.
|
|
184
|
+
*/
|
|
185
|
+
private getContextFromLmStudioSettings;
|
|
186
|
+
/**
|
|
187
|
+
* Try to get context window from LMS CLI (LM Studio specific).
|
|
188
|
+
* Uses --json flag for reliable parsing.
|
|
189
|
+
* Returns null if LMS CLI is not available or model not found.
|
|
190
|
+
*/
|
|
191
|
+
private getContextFromLmsCli;
|
|
192
|
+
/**
|
|
193
|
+
* Get full model info from LMS CLI including context length and max context length.
|
|
194
|
+
* Returns null if LMS CLI is unavailable or model not found.
|
|
195
|
+
*/
|
|
196
|
+
private getLmsModelInfo;
|
|
197
|
+
/**
|
|
198
|
+
* Get context window for the configured model, using cache if available.
|
|
199
|
+
* This method caches the result to avoid repeated LMS CLI calls.
|
|
200
|
+
* Order: ModelRegistry (persistent) -> memory cache -> LMS CLI -> settings.json
|
|
201
|
+
*/
|
|
202
|
+
getCachedContextWindow(modelId: string): number | null;
|
|
203
|
+
/**
|
|
204
|
+
* Clear the LMS context cache. Call this when the model changes.
|
|
205
|
+
*/
|
|
206
|
+
clearContextCache(): void;
|
|
207
|
+
private remainingCooldownMs;
|
|
208
|
+
private scheduleQueueDrain;
|
|
209
|
+
/** True when a background-priority request occupies or awaits this client's local lane (issue #2011). */
|
|
210
|
+
isBackgroundLaneContended(): boolean;
|
|
211
|
+
private dequeueQueuedRequest;
|
|
212
|
+
private failOpenQueuedRequestsForCooldown;
|
|
213
|
+
private startAvailableQueuedRequests;
|
|
214
|
+
private runQueuedRequest;
|
|
215
|
+
private runChatCompletionRequest;
|
|
216
|
+
/**
|
|
217
|
+
* Query the local LLM server for loaded model information.
|
|
218
|
+
* Returns null if unavailable or if the model is not found.
|
|
219
|
+
*/
|
|
220
|
+
getLoadedModelInfo(): Promise<LocalModelInfo | null>;
|
|
221
|
+
/**
|
|
222
|
+
* Check if the configured model is available and get its actual context window.
|
|
223
|
+
* Warns if there's a mismatch between expected and actual context.
|
|
224
|
+
*/
|
|
225
|
+
validateModelConfig(expectedContextWindow?: number): Promise<{
|
|
226
|
+
available: boolean;
|
|
227
|
+
actualContextWindow?: number;
|
|
228
|
+
warnings: string[];
|
|
229
|
+
}>;
|
|
230
|
+
/**
|
|
231
|
+
* Make a chat completion request to local LLM
|
|
232
|
+
*/
|
|
233
|
+
chatCompletion(messages: Array<{
|
|
234
|
+
role: string;
|
|
235
|
+
content: string;
|
|
236
|
+
}>, options?: LocalLlmChatCompletionOptions): Promise<LocalLlmChatCompletionResult | null>;
|
|
237
|
+
/**
|
|
238
|
+
* Estimate tokens when local LLM does not return usage stats.
|
|
239
|
+
*/
|
|
240
|
+
private estimateTokens;
|
|
241
|
+
/**
|
|
242
|
+
* Try local LLM first, fallback to cloud provider if configured
|
|
243
|
+
*/
|
|
244
|
+
withFallback<T>(localOperation: () => Promise<T | null>, fallbackOperation: () => Promise<T>, operationName: string): Promise<T>;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
export { LocalLlmClient as L, type ProbeFetchResult as P, SingleFlightProbe as S, type LocalLlmChatCompletionOptions as a, type LocalLlmChatCompletionResult as b, extractNonRecoverableBackendReasonFromErrorText as c, describeFetchFailure as d, extractNonRecoverableBackendReason as e, type LocalLlmRequestPriority as f, type LocalLlmType as g, type LocalModelInfo as h, isAbortError as i, normalizeBackendTripReason as n, probeFetch as p, resolveUnavailableVerdict as r, waitForRetryBackoff as w };
|
|
@@ -13,14 +13,17 @@ interface LocalLlmConfig {
|
|
|
13
13
|
/** If false, do not send Authorization header even when localLlmApiKey is set. */
|
|
14
14
|
localLlmAuthHeader: boolean;
|
|
15
15
|
localLlmFallback: boolean;
|
|
16
|
+
taskLlmFallback?: boolean;
|
|
16
17
|
/** Optional home directory override for local LLM helpers (LM Studio settings, CLI PATH). */
|
|
17
18
|
localLlmHomeDir?: string;
|
|
18
19
|
/** Optional absolute path to LMS CLI binary (preferred over auto-detection). */
|
|
19
20
|
localLmsCliPath?: string;
|
|
20
21
|
/** Optional bin directory prepended to PATH for LMS CLI execution. */
|
|
21
22
|
localLmsBinDir?: string;
|
|
22
|
-
/** Hard timeout for local LLM
|
|
23
|
+
/** Hard timeout for local LLM requests (ms). Legacy alias for the task-chain timeout when `taskLlmTimeoutMs` is absent. */
|
|
23
24
|
localLlmTimeoutMs: number;
|
|
25
|
+
/** Timeout for the gateway/task LLM chain (ms). */
|
|
26
|
+
taskLlmTimeoutMs?: number;
|
|
24
27
|
/** Max context window for local LLM (override auto-detection). Set lower if your LLM server defaults to smaller contexts. */
|
|
25
28
|
localLlmMaxContext?: number;
|
|
26
29
|
}
|
package/dist/local-llm-config.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseLocalLlmConfig
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-VNQRRUNS.js";
|
|
4
|
+
import "./chunk-SK7D34OL.js";
|
|
5
|
+
import "./chunk-27NO2KVB.js";
|
|
5
6
|
import "./chunk-C5C7IJ4Q.js";
|
|
6
7
|
import "./chunk-PQVCH2AE.js";
|
|
8
|
+
import "./chunk-6KH5NLQS.js";
|
|
7
9
|
import "./chunk-P2QRMMVQ.js";
|
|
8
10
|
import "./chunk-3WCASNQZ.js";
|
|
9
11
|
import "./chunk-PZ5AY32C.js";
|
|
@@ -1,69 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
* this call fails, the next one re-probes instead of reading a stale false.
|
|
20
|
-
*
|
|
21
|
-
* A backend that ANSWERED and said no is a real verdict and stays cached, or
|
|
22
|
-
* the daemon re-probes a known-bad endpoint on every request.
|
|
23
|
-
*/
|
|
24
|
-
declare function resolveUnavailableVerdict(args: {
|
|
25
|
-
baseUrl: string;
|
|
26
|
-
sawAbortedProbe: boolean;
|
|
27
|
-
wasAvailable: boolean | null;
|
|
28
|
-
}): {
|
|
29
|
-
cacheVerdict: boolean;
|
|
30
|
-
warning: string | null;
|
|
31
|
-
};
|
|
32
|
-
interface ProbeFetchResult {
|
|
33
|
-
ok: boolean;
|
|
34
|
-
data: unknown;
|
|
35
|
-
status: number | null;
|
|
36
|
-
/** The probe hit its own budget rather than getting an answer. */
|
|
37
|
-
aborted?: boolean;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* One health-probe request.
|
|
41
|
-
*
|
|
42
|
-
* Every failure is logged with its cause: a transport error and a 404 both
|
|
43
|
-
* returned `ok: false` with nothing recorded, so an unreachable backend was
|
|
44
|
-
* indistinguishable from a wrong path and an availability failure had no
|
|
45
|
-
* diagnosable reason at all (§22, issue #2210).
|
|
46
|
-
*/
|
|
47
|
-
declare function probeFetch(url: string, options: {
|
|
48
|
-
timeoutMs: number;
|
|
49
|
-
headers: Record<string, string>;
|
|
50
|
-
signal?: AbortSignal;
|
|
51
|
-
}): Promise<ProbeFetchResult>;
|
|
52
|
-
/**
|
|
53
|
-
* Collapses concurrent probe sequences onto one in-flight run.
|
|
54
|
-
*
|
|
55
|
-
* A timed-out availability probe deliberately caches nothing (issue #2210),
|
|
56
|
-
* which removed the false verdict that used to absorb concurrent callers:
|
|
57
|
-
* every queued request would then run its own full probe sequence, on a host
|
|
58
|
-
* already slow enough to blow the probe budget.
|
|
59
|
-
*
|
|
60
|
-
* Cancellation is refcounted rather than shared: one caller walking away must
|
|
61
|
-
* not abort a sequence the others are still waiting on, so the underlying task
|
|
62
|
-
* is aborted only once every waiter has gone.
|
|
63
|
-
*/
|
|
64
|
-
declare class SingleFlightProbe {
|
|
65
|
-
private pending;
|
|
66
|
-
run(task: (signal: AbortSignal) => Promise<boolean>, signal?: AbortSignal): Promise<boolean>;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export { type ProbeFetchResult, SingleFlightProbe, describeFetchFailure, extractNonRecoverableBackendReason, extractNonRecoverableBackendReasonFromErrorText, isAbortError, normalizeBackendTripReason, probeFetch, resolveUnavailableVerdict, waitForRetryBackoff };
|
|
1
|
+
export { a as LocalLlmChatCompletionOptions, b as LocalLlmChatCompletionResult, P as ProbeFetchResult, S as SingleFlightProbe, d as describeFetchFailure, e as extractNonRecoverableBackendReason, c as extractNonRecoverableBackendReasonFromErrorText, i as isAbortError, n as normalizeBackendTripReason, p as probeFetch, r as resolveUnavailableVerdict, w as waitForRetryBackoff } from './local-llm-BsJGulur.js';
|
|
2
|
+
import './types-nJV23pa3.js';
|
|
3
|
+
import './message-parts/index.js';
|
|
4
|
+
import './bounded-jsonl-state.js';
|
|
5
|
+
import './operator-doctor-types.js';
|
|
6
|
+
import './external-wiki-config.js';
|
|
7
|
+
import './recall-state-view.js';
|
|
8
|
+
import './contradiction-config.js';
|
|
9
|
+
import './graph-path-scoring-config.js';
|
|
10
|
+
import './background-generation-config.js';
|
|
11
|
+
import './deep-recall-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
|
+
import './model-registry.js';
|
package/dist/local-llm.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import './types-nJV23pa3.js';
|
|
2
|
+
import './model-registry.js';
|
|
3
|
+
export { L as LocalLlmClient, f as LocalLlmRequestPriority, g as LocalLlmType, h as LocalModelInfo } from './local-llm-BsJGulur.js';
|
|
3
4
|
import './message-parts/index.js';
|
|
4
5
|
import './bounded-jsonl-state.js';
|
|
5
6
|
import './operator-doctor-types.js';
|
|
@@ -15,171 +16,3 @@ import './active-context-config.js';
|
|
|
15
16
|
import './local-llm-config.js';
|
|
16
17
|
import './semantic-merge-config.js';
|
|
17
18
|
import './types-continuity.js';
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Local LLM client for OpenAI-compatible endpoints (LM Studio, Ollama, MLX, etc.)
|
|
21
|
-
*
|
|
22
|
-
* Based on openclaw-tactician's provider detection patterns for consistency.
|
|
23
|
-
* Provides privacy-preserving, cost-effective LLM operations with
|
|
24
|
-
* graceful fallback to cloud providers when local LLM is unavailable.
|
|
25
|
-
*/
|
|
26
|
-
type LocalLlmType = "lmstudio" | "ollama" | "mlx" | "vllm" | "llamacpp" | "generic";
|
|
27
|
-
interface LocalModelInfo {
|
|
28
|
-
id: string;
|
|
29
|
-
contextWindow?: number;
|
|
30
|
-
maxTokens?: number;
|
|
31
|
-
}
|
|
32
|
-
type LocalLlmRequestPriority = "recall-critical" | "background";
|
|
33
|
-
interface LocalLlmChatCompletionOptions {
|
|
34
|
-
temperature?: number;
|
|
35
|
-
maxTokens?: number;
|
|
36
|
-
responseFormat?: {
|
|
37
|
-
type: string;
|
|
38
|
-
};
|
|
39
|
-
timeoutMs?: number;
|
|
40
|
-
operation?: string;
|
|
41
|
-
forceDisableThinking?: boolean;
|
|
42
|
-
disableThinking?: boolean;
|
|
43
|
-
priority?: LocalLlmRequestPriority;
|
|
44
|
-
signal?: AbortSignal;
|
|
45
|
-
redactProviderErrors?: boolean;
|
|
46
|
-
/** Per-request model; defaults to config.localLlmModel. */
|
|
47
|
-
model?: string;
|
|
48
|
-
}
|
|
49
|
-
interface LocalLlmChatCompletionResult {
|
|
50
|
-
content: string;
|
|
51
|
-
usage?: {
|
|
52
|
-
promptTokens: number;
|
|
53
|
-
completionTokens: number;
|
|
54
|
-
totalTokens: number;
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
declare class LocalLlmClient {
|
|
58
|
-
private config;
|
|
59
|
-
private isAvailable;
|
|
60
|
-
private lastHealthCheck;
|
|
61
|
-
private readonly availabilityProbe;
|
|
62
|
-
private detectedType;
|
|
63
|
-
private cachedModelInfo;
|
|
64
|
-
private cachedLmsContext;
|
|
65
|
-
private lastLmsCheck;
|
|
66
|
-
private consecutive400s;
|
|
67
|
-
private cooldownUntilMs;
|
|
68
|
-
private modelRegistry?;
|
|
69
|
-
private _disableThinking;
|
|
70
|
-
private readonly requestQueues;
|
|
71
|
-
private readonly queueProcessing;
|
|
72
|
-
private queueDrainScheduled;
|
|
73
|
-
private static readonly HEALTH_CHECK_INTERVAL_MS;
|
|
74
|
-
private static readonly LMS_CACHE_INTERVAL_MS;
|
|
75
|
-
private readonly chatTransport;
|
|
76
|
-
constructor(config: PluginConfig, modelRegistry?: ModelRegistry);
|
|
77
|
-
/**
|
|
78
|
-
* Request thinking/reasoning suppression on the next chat completion.
|
|
79
|
-
*
|
|
80
|
-
* When `true`, the client will inject
|
|
81
|
-
* `chat_template_kwargs: { enable_thinking: false }` into the request
|
|
82
|
-
* body — **but only when the detected backend is known to support it**
|
|
83
|
-
* (LM Studio, vLLM; see `THINKING_COMPATIBLE_BACKENDS`). Strict
|
|
84
|
-
* OpenAI-compat backends reject unknown fields with 400; on those the
|
|
85
|
-
* client fails open (thinking runs normally). This is the safe
|
|
86
|
-
* default for Remnic extraction-style operations: measurable latency
|
|
87
|
-
* win on thinking-capable backends, zero risk on others. Consolidation
|
|
88
|
-
* operations keep thinking enabled unless explicitly added to
|
|
89
|
-
* `THINKING_SUPPRESSED_OPERATIONS`. Issues #548 and #979.
|
|
90
|
-
*/
|
|
91
|
-
set disableThinking(value: boolean);
|
|
92
|
-
private resolveHomeDir;
|
|
93
|
-
private buildRequestHeaders;
|
|
94
|
-
/**
|
|
95
|
-
* Set the ModelRegistry for caching detected capabilities
|
|
96
|
-
*/
|
|
97
|
-
setModelRegistry(registry: ModelRegistry): void;
|
|
98
|
-
/**
|
|
99
|
-
* Get the detected server type (null if not detected)
|
|
100
|
-
*/
|
|
101
|
-
getDetectedType(): LocalLlmType | null;
|
|
102
|
-
private getBackendKey;
|
|
103
|
-
private getGlobalBackendState;
|
|
104
|
-
private getTrippedBackendState;
|
|
105
|
-
private markBackendUnavailable;
|
|
106
|
-
/**
|
|
107
|
-
* Fetch with timeout for health checks. Body lives in the sibling helper so
|
|
108
|
-
* this file stays under its size ceiling (issue #1995).
|
|
109
|
-
*/
|
|
110
|
-
private fetchWithTimeout;
|
|
111
|
-
private probeLmStudioNativeModels;
|
|
112
|
-
/**
|
|
113
|
-
* Check if local LLM is available
|
|
114
|
-
* Uses 127.0.0.1 instead of localhost to avoid DNS issues (consistent with tactician)
|
|
115
|
-
*/
|
|
116
|
-
checkAvailability(signal?: AbortSignal): Promise<boolean>;
|
|
117
|
-
private probeAvailability;
|
|
118
|
-
/**
|
|
119
|
-
* Try to get context window from LM Studio settings.json as fallback.
|
|
120
|
-
* This reads the defaultContextLength setting which is what LM Studio uses
|
|
121
|
-
* when loading models without explicit context configuration.
|
|
122
|
-
*/
|
|
123
|
-
private getContextFromLmStudioSettings;
|
|
124
|
-
/**
|
|
125
|
-
* Try to get context window from LMS CLI (LM Studio specific).
|
|
126
|
-
* Uses --json flag for reliable parsing.
|
|
127
|
-
* Returns null if LMS CLI is not available or model not found.
|
|
128
|
-
*/
|
|
129
|
-
private getContextFromLmsCli;
|
|
130
|
-
/**
|
|
131
|
-
* Get full model info from LMS CLI including context length and max context length.
|
|
132
|
-
* Returns null if LMS CLI is unavailable or model not found.
|
|
133
|
-
*/
|
|
134
|
-
private getLmsModelInfo;
|
|
135
|
-
/**
|
|
136
|
-
* Get context window for the configured model, using cache if available.
|
|
137
|
-
* This method caches the result to avoid repeated LMS CLI calls.
|
|
138
|
-
* Order: ModelRegistry (persistent) -> memory cache -> LMS CLI -> settings.json
|
|
139
|
-
*/
|
|
140
|
-
getCachedContextWindow(modelId: string): number | null;
|
|
141
|
-
/**
|
|
142
|
-
* Clear the LMS context cache. Call this when the model changes.
|
|
143
|
-
*/
|
|
144
|
-
clearContextCache(): void;
|
|
145
|
-
private remainingCooldownMs;
|
|
146
|
-
private scheduleQueueDrain;
|
|
147
|
-
/** True when a background-priority request occupies or awaits this client's local lane (issue #2011). */
|
|
148
|
-
isBackgroundLaneContended(): boolean;
|
|
149
|
-
private dequeueQueuedRequest;
|
|
150
|
-
private failOpenQueuedRequestsForCooldown;
|
|
151
|
-
private startAvailableQueuedRequests;
|
|
152
|
-
private runQueuedRequest;
|
|
153
|
-
private runChatCompletionRequest;
|
|
154
|
-
/**
|
|
155
|
-
* Query the local LLM server for loaded model information.
|
|
156
|
-
* Returns null if unavailable or if the model is not found.
|
|
157
|
-
*/
|
|
158
|
-
getLoadedModelInfo(): Promise<LocalModelInfo | null>;
|
|
159
|
-
/**
|
|
160
|
-
* Check if the configured model is available and get its actual context window.
|
|
161
|
-
* Warns if there's a mismatch between expected and actual context.
|
|
162
|
-
*/
|
|
163
|
-
validateModelConfig(expectedContextWindow?: number): Promise<{
|
|
164
|
-
available: boolean;
|
|
165
|
-
actualContextWindow?: number;
|
|
166
|
-
warnings: string[];
|
|
167
|
-
}>;
|
|
168
|
-
/**
|
|
169
|
-
* Make a chat completion request to local LLM
|
|
170
|
-
*/
|
|
171
|
-
chatCompletion(messages: Array<{
|
|
172
|
-
role: string;
|
|
173
|
-
content: string;
|
|
174
|
-
}>, options?: LocalLlmChatCompletionOptions): Promise<LocalLlmChatCompletionResult | null>;
|
|
175
|
-
/**
|
|
176
|
-
* Estimate tokens when local LLM does not return usage stats.
|
|
177
|
-
*/
|
|
178
|
-
private estimateTokens;
|
|
179
|
-
/**
|
|
180
|
-
* Try local LLM first, fallback to cloud provider if configured
|
|
181
|
-
*/
|
|
182
|
-
withFallback<T>(localOperation: () => Promise<T | null>, fallbackOperation: () => Promise<T>, operationName: string): Promise<T>;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
export { LocalLlmClient, type LocalLlmRequestPriority, type LocalLlmType, type LocalModelInfo };
|
package/dist/local-llm.js
CHANGED
package/dist/location/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { bm as LocationSegment, bn as LocationPlace, bo as LocationConfig, M as MemoryFile, b0 as WearableConversation, P as PluginConfig, bp as LocationProvider, bq as LocationObservation } from '../types-
|
|
2
|
-
export { br as LocationObservationPage, bs as LocationProviderCheck, bt as LocationSourceConfig, bu as LocationTaggingConfig } from '../types-
|
|
3
|
-
import { S as StorageManager } from '../storage-
|
|
1
|
+
import { bm as LocationSegment, bn as LocationPlace, bo as LocationConfig, M as MemoryFile, b0 as WearableConversation, P as PluginConfig, bp as LocationProvider, bq as LocationObservation } from '../types-nJV23pa3.js';
|
|
2
|
+
export { br as LocationObservationPage, bs as LocationProviderCheck, bt as LocationSourceConfig, bu as LocationTaggingConfig } from '../types-nJV23pa3.js';
|
|
3
|
+
import { S as StorageManager } from '../storage-BprAGBG0.js';
|
|
4
4
|
import '../message-parts/index.js';
|
|
5
5
|
import '../bounded-jsonl-state.js';
|
|
6
6
|
import '../operator-doctor-types.js';
|