@snoai/memory 1.6.0 → 1.7.1
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/README.md +1 -1
- package/dist/{_types-CUKHSRkS.d.ts → _types-CZDWRxyi.d.ts} +0 -2
- package/dist/{access-tracker-CFxRg7Bt.d.ts → access-tracker-CtqCTq9b.d.ts} +4 -6
- package/dist/{adapter-BFtbOOw3.d.ts → adapter-6irg6Ykg.d.ts} +3 -7
- package/dist/{adapter-CG-UbOjU.js → adapter-BVBeFvUc.js} +2 -4
- package/dist/{agent-llm-port-BlFrD2ro.d.ts → agent-llm-port-i_L33_v_.d.ts} +0 -2
- package/dist/{all-resources-Dij6l5h0.d.ts → all-resources-3zj0PED4.d.ts} +2 -4
- package/dist/{all-resources-BQK2ugjB.js → all-resources-BZc9QIAW.js} +41 -81
- package/dist/{ambient-learning-text-normalizer-_fH3LeuK.d.ts → ambient-learning-text-normalizer-H_idEjJi.d.ts} +0 -2
- package/dist/{ambient-learning-text-normalizer-CxjATmMp.js → ambient-learning-text-normalizer-dxAxf9oi.js} +3 -5
- package/dist/{atomic-extraction-reply-BJ9XV_9s.js → atomic-extraction-reply-CoxIGLmU.js} +12 -12
- package/dist/{atomic-extraction-skill-CcXmuCqL.js → atomic-extraction-skill-5lAqr8BM.js} +1 -2
- package/dist/{atomic-memory-extraction-l65aofbl.js → atomic-memory-extraction-CWMMWF2C.js} +67 -41
- package/dist/{atomic-memory-extraction-Bp7AWZqi.d.ts → atomic-memory-extraction-DcoaYWiS.d.ts} +6 -20
- package/dist/{b-profile-section-dictionary-provider-Buj_M-QA.d.ts → b-profile-section-dictionary-provider-BuzxMJtG.d.ts} +2 -6
- package/dist/{b-profile-section-dictionary-provider-BHkoNqgk.js → b-profile-section-dictionary-provider-DMGsJlYh.js} +3 -6
- package/dist/{best-effort-BPZSzKk0.d.ts → best-effort-DvyP9avp.d.ts} +0 -2
- package/dist/{calendar-instruction-CzqZbAPG.js → calendar-instruction-uK6xsrCt.js} +1 -2
- package/dist/{capture-policy-detector-3tDQkBi9.d.ts → capture-policy-detector-CEgDjHPq.d.ts} +1 -3
- package/dist/{capture-policy-detector-DaMfy9CZ.js → capture-policy-detector-DhNGhDw3.js} +5 -7
- package/dist/{classifier-CXQxJJPP.d.ts → classifier-DeFV9Zro.d.ts} +1 -5
- package/dist/client.d.ts +1 -3
- package/dist/client.js +4 -6
- package/dist/{coding-skin-azRXA51Z.js → coding-skin-BnFryVac.js} +11 -5
- package/dist/coding-skin.d.ts +8 -4
- package/dist/coding-skin.js +2 -2
- package/dist/{config-CByvnX3d.js → config-D6GJyMKz.js} +29 -41
- package/dist/{connection-D989FqGS.d.ts → connection-22Uywd-U.d.ts} +1 -6
- package/dist/{connection-BtK-3r-f.js → connection-H-_OZ-pP.js} +3 -5
- package/dist/{daily-log-generator-DEsiCs7o.js → daily-log-generator-DdzlaQYy.js} +8 -12
- package/dist/{daily-log-generator-CsQPHl4A.d.ts → daily-log-generator-IbaCpCH8.d.ts} +1 -5
- package/dist/{daily-spend-estimator-DiwzBlo1.d.ts → daily-spend-estimator-CKaQYiHB.d.ts} +0 -2
- package/dist/{data-bootstrap-Bl3lthzE.d.ts → data-bootstrap-Bf_VMTSc.d.ts} +0 -4
- package/dist/{data-bootstrap-P8sie9WA.js → data-bootstrap-Db6a7ASj.js} +1 -3
- package/dist/{data-paths-C7sNdqvP.d.ts → data-paths-CFwVskNd.d.ts} +0 -2
- package/dist/{derived-suppression-cache-CcANI-p7.d.ts → derived-suppression-cache-ByclOuKE.d.ts} +1 -7
- package/dist/diagnostic-encoder.d.ts +0 -2
- package/dist/diagnostic-encoder.js +2 -3
- package/dist/{embedding-provider-client-CELWtPgt.d.ts → embedding-provider-client-Bli3uXan.d.ts} +0 -4
- package/dist/{embedding-provider-client-CgpUK_1G.js → embedding-provider-client-ClgiYSD4.js} +4 -8
- package/dist/{entry-metadata-parser-BIVSMCIk.js → entry-metadata-parser-W53-Odqm.js} +1 -2
- package/dist/{error-D-wb-rZw.js → error-Dga5Ot1M.js} +1 -2
- package/dist/{error-signals-lMH2uAdV.js → error-signals-CqvwBBWn.js} +1 -2
- package/dist/{error-signals-D8_3vYu4.d.ts → error-signals-f0JhwtHI.d.ts} +0 -2
- package/dist/{errors-CeVRxf9V.d.ts → errors-Cqej5eCm.d.ts} +0 -2
- package/dist/{extraction-text-sanitizer-B_AhIecT.d.ts → extraction-text-sanitizer-D_7Ogceg.d.ts} +0 -2
- package/dist/{i18n-text-DbD6Qify.d.ts → i18n-text-CqS4mUit.d.ts} +0 -2
- package/dist/{index-Df9420Pl.d.ts → index-B0iQL0Kp.d.ts} +3 -15
- package/dist/{index-DPfJrOFD.d.ts → index-B3H1zNbk.d.ts} +2 -38
- package/dist/{index-CJrMFlAU.d.ts → index-oFJyQfvq.d.ts} +0 -2
- package/dist/index.d.ts +12 -14
- package/dist/index.js +18 -22
- package/dist/{intent-analyzer-B5XVrWwe.d.ts → intent-analyzer-DmeMSTrr.d.ts} +0 -2
- package/dist/internal/config/index.d.ts +1 -1
- package/dist/internal/config/index.js +1 -2
- package/dist/internal/config/plugin-config-schema.d.ts +1 -1
- package/dist/internal/config/plugin-config-schema.js +1 -2
- package/dist/internal/config/product-mode.d.ts +1 -1
- package/dist/internal/config/product-mode.js +1 -2
- package/dist/internal/config/settings.d.ts +1 -1
- package/dist/internal/config/settings.js +3 -4
- package/dist/internal/config/skill-categories.d.ts +1 -3
- package/dist/internal/config/skill-categories.js +1 -2
- package/dist/internal/config/skin-defaults.d.ts +1 -3
- package/dist/internal/config/skin-defaults.js +1 -2
- package/dist/internal/contract/discovery.d.ts +1 -3
- package/dist/internal/contract/discovery.js +2 -3
- package/dist/internal/contract/profile.d.ts +1 -1
- package/dist/internal/contract/profile.js +1 -2
- package/dist/internal/contract/routes.d.ts +1 -1
- package/dist/internal/contract/routes.js +1 -2
- package/dist/internal/engine/bindings/memory-cli-shared.d.ts +7 -9
- package/dist/internal/engine/bindings/memory-cli-shared.js +1 -2
- package/dist/internal/engine/bindings/memory-forget-tool.d.ts +1 -3
- package/dist/internal/engine/bindings/memory-forget-tool.js +2 -3
- package/dist/internal/engine/bindings/memory-list-tool.d.ts +1 -3
- package/dist/internal/engine/bindings/memory-list-tool.js +2 -3
- package/dist/internal/engine/bindings/memory-recall-tool.d.ts +1 -3
- package/dist/internal/engine/bindings/memory-recall-tool.js +3 -4
- package/dist/internal/engine/bindings/memory-reflection-resolve-tool.d.ts +1 -3
- package/dist/internal/engine/bindings/memory-reflection-resolve-tool.js +3 -4
- package/dist/internal/engine/bindings/memory-stats-tool.d.ts +1 -3
- package/dist/internal/engine/bindings/memory-stats-tool.js +3 -4
- package/dist/internal/engine/bindings/memory-store-tool.d.ts +1 -3
- package/dist/internal/engine/bindings/memory-store-tool.js +6 -7
- package/dist/internal/engine/bindings/memory-tool-access.d.ts +3 -5
- package/dist/internal/engine/bindings/memory-tool-access.js +2 -3
- package/dist/internal/engine/bindings/memory-tool-formatting.d.ts +1 -3
- package/dist/internal/engine/bindings/memory-tool-formatting.js +2 -3
- package/dist/internal/engine/bindings/memory-tool-results.d.ts +3 -5
- package/dist/internal/engine/bindings/memory-tool-results.js +2 -3
- package/dist/internal/engine/bindings/memory-tool-schemas.d.ts +9 -11
- package/dist/internal/engine/bindings/memory-tool-schemas.js +2 -3
- package/dist/internal/engine/bindings/memory-update-tool.d.ts +1 -3
- package/dist/internal/engine/bindings/memory-update-tool.js +5 -6
- package/dist/internal/engine/bindings/sno-station-mem-ambient-learning-hook.d.ts +7 -9
- package/dist/internal/engine/bindings/sno-station-mem-ambient-learning-hook.js +8 -9
- package/dist/internal/engine/bindings/sno-station-mem-auto-recall-hook.d.ts +7 -9
- package/dist/internal/engine/bindings/sno-station-mem-auto-recall-hook.js +6 -7
- package/dist/internal/engine/bindings/sno-station-mem-hook-types.d.ts +1 -3
- package/dist/internal/engine/bindings/sno-station-mem-insight-distill-factory.d.ts +8 -10
- package/dist/internal/engine/bindings/sno-station-mem-insight-distill-factory.js +4 -5
- package/dist/internal/engine/bindings/sno-station-mem-message-transcript.d.ts +2 -4
- package/dist/internal/engine/bindings/sno-station-mem-message-transcript.js +5 -6
- package/dist/internal/engine/bindings/sno-station-mem-reset-hook.d.ts +6 -8
- package/dist/internal/engine/bindings/sno-station-mem-reset-hook.js +1 -2
- package/dist/internal/engine/bindings/sno-station-mem-runtime-mode.d.ts +2 -4
- package/dist/internal/engine/bindings/sno-station-mem-runtime-mode.js +4 -5
- package/dist/internal/engine/bindings/sno-station-mem-session-state.d.ts +1 -3
- package/dist/internal/engine/bindings/sno-station-mem-session-state.js +1 -2
- package/dist/internal/engine/eval/trace.d.ts +1 -1
- package/dist/internal/engine/eval/trace.js +1 -2
- package/dist/internal/engine/extraction/ambient-learning-text-normalizer.d.ts +1 -1
- package/dist/internal/engine/extraction/ambient-learning-text-normalizer.js +1 -2
- package/dist/internal/engine/extraction/atomic-memory-extraction.d.ts +1 -1
- package/dist/internal/engine/extraction/atomic-memory-extraction.js +1 -2
- package/dist/internal/engine/extraction/b-profile-section-dictionary-provider.d.ts +1 -1
- package/dist/internal/engine/extraction/b-profile-section-dictionary-provider.js +1 -2
- package/dist/internal/engine/extraction/b-profile-section-rekey.d.ts +6 -8
- package/dist/internal/engine/extraction/b-profile-section-rekey.js +4 -5
- package/dist/internal/engine/extraction/capture-policy-detector.d.ts +1 -1
- package/dist/internal/engine/extraction/capture-policy-detector.js +1 -2
- package/dist/internal/engine/extraction/embedding-provider-client.d.ts +1 -1
- package/dist/internal/engine/extraction/embedding-provider-client.js +1 -2
- package/dist/internal/engine/extraction/extraction-text-sanitizer.d.ts +1 -1
- package/dist/internal/engine/extraction/extraction-text-sanitizer.js +3 -4
- package/dist/internal/engine/extraction/memory-metadata-codec.d.ts +2 -2
- package/dist/internal/engine/extraction/memory-metadata-codec.js +1 -2
- package/dist/internal/engine/extraction/memory-temporality-classifier.d.ts +1 -1
- package/dist/internal/engine/extraction/memory-temporality-classifier.js +1 -2
- package/dist/internal/engine/i18n/all-resources.d.ts +1 -1
- package/dist/internal/engine/i18n/all-resources.js +1 -2
- package/dist/internal/engine/i18n/locales.d.ts +1 -1
- package/dist/internal/engine/i18n/locales.js +1 -2
- package/dist/internal/engine/i18n/res/_types.d.ts +1 -1
- package/dist/internal/engine/i18n/res/_types.js +1 -2
- package/dist/internal/engine/observability/adapter.d.ts +1 -1
- package/dist/internal/engine/observability/adapter.js +1 -2
- package/dist/internal/engine/observability/best-effort.d.ts +1 -1
- package/dist/internal/engine/observability/best-effort.js +1 -2
- package/dist/internal/engine/observability/early-diagnostics.js +1 -2
- package/dist/internal/engine/observability/memory-snapshot.d.ts +1 -1
- package/dist/internal/engine/observability/memory-snapshot.js +1 -2
- package/dist/internal/engine/observability/observable-embedder.d.ts +1 -1
- package/dist/internal/engine/observability/observable-embedder.js +2 -3
- package/dist/internal/engine/observability/observable-llm-client.d.ts +1 -1
- package/dist/internal/engine/observability/observable-llm-client.js +2 -3
- package/dist/internal/engine/observability/observable-memory-store.d.ts +1 -1
- package/dist/internal/engine/observability/observable-memory-store.js +4 -5
- package/dist/internal/engine/observability/observable-retriever.d.ts +1 -1
- package/dist/internal/engine/observability/observable-retriever.js +4 -5
- package/dist/internal/engine/observability/runtime-diagnostics.d.ts +2 -4
- package/dist/internal/engine/observability/runtime-diagnostics.js +6 -7
- package/dist/internal/engine/observability/session-registry.d.ts +1 -1
- package/dist/internal/engine/observability/session-registry.js +1 -2
- package/dist/internal/engine/observability/version-metadata.d.ts +1 -3
- package/dist/internal/engine/observability/version-metadata.js +1 -2
- package/dist/internal/engine/operations/daily-spend-estimator.d.ts +1 -1
- package/dist/internal/engine/operations/daily-spend-estimator.js +2 -3
- package/dist/internal/engine/operations/learning-file-maintenance.d.ts +1 -1
- package/dist/internal/engine/operations/learning-file-maintenance.js +3 -4
- package/dist/internal/engine/operations/memory-tier-promoter.d.ts +1 -1
- package/dist/internal/engine/operations/memory-tier-promoter.js +1 -2
- package/dist/internal/engine/operations/runtime-audit-log.d.ts +2 -2
- package/dist/internal/engine/operations/runtime-audit-log.js +1 -1
- package/dist/internal/engine/provider/canonical-memory-corpus.d.ts +2 -4
- package/dist/internal/engine/provider/canonical-memory-corpus.js +2 -3
- package/dist/internal/engine/provider/provider-registration.d.ts +7 -9
- package/dist/internal/engine/provider/provider-registration.js +1 -2
- package/dist/internal/engine/provider/provider-row-renderer.d.ts +2 -4
- package/dist/internal/engine/provider/provider-row-renderer.js +2 -3
- package/dist/internal/engine/provider/provider-types.d.ts +1 -1
- package/dist/internal/engine/reflection/daily-log-generator.d.ts +1 -1
- package/dist/internal/engine/reflection/daily-log-generator.js +1 -2
- package/dist/internal/engine/reflection/reflection-command-hooks.d.ts +1 -1
- package/dist/internal/engine/reflection/reflection-command-hooks.js +1 -2
- package/dist/internal/engine/reflection/reflection-deps.d.ts +1 -1
- package/dist/internal/engine/reflection/reflection-embedded-generator.d.ts +1 -1
- package/dist/internal/engine/reflection/reflection-embedded-generator.js +1 -2
- package/dist/internal/engine/reflection/reflection-injection-hooks.d.ts +1 -1
- package/dist/internal/engine/reflection/reflection-injection-hooks.js +3 -4
- package/dist/internal/engine/reflection/reflection-lifecycle-hooks.d.ts +1 -1
- package/dist/internal/engine/reflection/reflection-lifecycle-hooks.js +3 -4
- package/dist/internal/engine/reflection/strategy-hook-runner.d.ts +3 -3
- package/dist/internal/engine/reflection/strategy-hook-runner.js +2 -2
- package/dist/internal/engine/rem/classifier.d.ts +1 -1
- package/dist/internal/engine/rem/classifier.js +1 -2
- package/dist/internal/engine/rem/index.d.ts +3 -3
- package/dist/internal/engine/rem/index.js +18 -36
- package/dist/internal/engine/rem/types.d.ts +1 -1
- package/dist/internal/engine/rem/types.js +1 -2
- package/dist/internal/engine/retrieval/access-tracker.d.ts +1 -1
- package/dist/internal/engine/retrieval/access-tracker.js +1 -2
- package/dist/internal/engine/retrieval/intent-analyzer.d.ts +1 -1
- package/dist/internal/engine/retrieval/intent-analyzer.js +1 -2
- package/dist/internal/engine/retrieval/retrieval-gate.d.ts +1 -1
- package/dist/internal/engine/retrieval/retrieval-gate.js +1 -2
- package/dist/internal/engine/retrieval/retriever.d.ts +1 -1
- package/dist/internal/engine/retrieval/retriever.js +1 -2
- package/dist/internal/engine/security/memory-scope-policy.d.ts +1 -1
- package/dist/internal/engine/security/memory-scope-policy.js +1 -2
- package/dist/internal/engine/security/redact.d.ts +1 -1
- package/dist/internal/engine/security/redact.js +1 -2
- package/dist/internal/engine/security/scopes.d.ts +2 -2
- package/dist/internal/engine/security/scopes.js +2 -2
- package/dist/internal/engine/shared/errors.d.ts +1 -1
- package/dist/internal/engine/shared/errors.js +1 -2
- package/dist/internal/engine/shared/i18n-text.d.ts +1 -1
- package/dist/internal/engine/shared/i18n-text.js +1 -2
- package/dist/internal/engine/shared/iso-date-time.d.ts +1 -3
- package/dist/internal/engine/shared/iso-date-time.js +1 -2
- package/dist/internal/engine/shared/lru.d.ts +1 -1
- package/dist/internal/engine/shared/lru.js +1 -2
- package/dist/internal/engine/shared/memory-kind-policy.d.ts +1 -1
- package/dist/internal/engine/shared/memory-kind-policy.js +1 -2
- package/dist/internal/engine/shared/paths.d.ts +2 -2
- package/dist/internal/engine/shared/paths.js +1 -2
- package/dist/internal/engine/shared/types.d.ts +2 -2
- package/dist/internal/engine/shared/types.js +2 -3
- package/dist/internal/engine/shared/utils.d.ts +1 -1
- package/dist/internal/engine/shared/utils.js +1 -2
- package/dist/internal/engine/telemetry/memory-telemetry-api.d.ts +5 -9
- package/dist/internal/engine/telemetry/memory-telemetry-api.js +6 -8
- package/dist/internal/engine/telemetry/memory-telemetry-observability.d.ts +2 -4
- package/dist/internal/engine/telemetry/memory-telemetry-observability.js +1 -2
- package/dist/internal/engine/telemetry/memory-telemetry-outbox.d.ts +1 -1
- package/dist/internal/engine/telemetry/memory-telemetry-outbox.js +4 -5
- package/dist/internal/engine/telemetry/memory-telemetry-types.d.ts +1 -1
- package/dist/internal/engine/telemetry/memory-telemetry-types.js +1 -2
- package/dist/internal/engine/telemetry/observe-ledger.d.ts +3 -5
- package/dist/internal/engine/telemetry/observe-ledger.js +2 -3
- package/dist/internal/model/agent-llm-port.d.ts +1 -1
- package/dist/internal/model/llm-client.d.ts +2 -2
- package/dist/internal/model/llm-client.js +2 -2
- package/dist/internal/model/llm-failure.d.ts +1 -3
- package/dist/internal/model/llm-failure.js +1 -2
- package/dist/internal/model/llm-mode-routing.d.ts +1 -3
- package/dist/internal/model/llm-mode-routing.js +2 -3
- package/dist/internal/store/atomic-memory-cutover-sql.d.ts +2 -4
- package/dist/internal/store/atomic-memory-cutover-sql.js +2 -3
- package/dist/internal/store/connection.d.ts +1 -1
- package/dist/internal/store/connection.js +1 -2
- package/dist/internal/store/data-bootstrap.d.ts +1 -1
- package/dist/internal/store/data-bootstrap.js +1 -2
- package/dist/internal/store/data-paths.d.ts +1 -1
- package/dist/internal/store/data-paths.js +1 -2
- package/dist/internal/store/maintenance.d.ts +4 -6
- package/dist/internal/store/maintenance.js +18 -25
- package/dist/internal/store/memory-kinds-cutover-migrator.d.ts +1 -3
- package/dist/internal/store/memory-kinds-cutover-migrator.js +4 -5
- package/dist/internal/store/migrations.d.ts +2 -4
- package/dist/internal/store/migrations.js +2 -3
- package/dist/internal/store/sqlite-runtime.d.ts +1 -1
- package/dist/internal/store/sqlite-runtime.js +2 -3
- package/dist/internal/store/store.d.ts +2 -2
- package/dist/internal/store/store.js +1 -2
- package/dist/{learning-file-maintenance-9b-Ut6Kv.d.ts → learning-file-maintenance-ZT6kHwb1.d.ts} +0 -2
- package/dist/{llm-client-nWW1o1F6.d.ts → llm-client-Bar23wPq.d.ts} +1 -5
- package/dist/{llm-client-ByzZRemn.js → llm-client-BtbX4af4.js} +43 -17
- package/dist/{locales-JxGmkG6t.d.ts → locales-CCZtQJq7.d.ts} +0 -2
- package/dist/{log-site-catalog.generated-DsvDgHJa.js → log-site-catalog.generated-Dtiih6m2.js} +92 -94
- package/dist/log-site-catalog.json +1 -1
- package/dist/{lru-DyoaTyIs.d.ts → lru-DYiuPJFA.d.ts} +0 -2
- package/dist/memdump.d.ts +1 -3
- package/dist/memdump.js +1 -2
- package/dist/{memory-entry-projector-B36Nwsi_.js → memory-entry-projector-CkoEuLv6.js} +17 -30
- package/dist/{memory-kind-policy-BMebgugU.d.ts → memory-kind-policy-BRjhwhSl.d.ts} +1 -3
- package/dist/{memory-metadata-codec-H8BniJM3.d.ts → memory-metadata-codec-CcYw0t6c.d.ts} +1 -7
- package/dist/{memory-metadata-codec-DL1sbJiN.js → memory-metadata-codec-Cglikqj8.js} +4 -8
- package/dist/{memory-runtime-DXr1VO1p.js → memory-runtime-B9fG-sNo.js} +240 -298
- package/dist/{memory-scope-policy-1gg5QlWZ.d.ts → memory-scope-policy-4WfFFs_H.d.ts} +0 -4
- package/dist/{memory-scope-policy--TiLZnrE.js → memory-scope-policy-Dg2LHZ25.js} +3 -6
- package/dist/{memory-snapshot-CKnQovB5.d.ts → memory-snapshot-8RxJpqig.d.ts} +3 -5
- package/dist/{memory-source-order-YMRoeDLd.js → memory-source-order-BTo_ix2y.js} +1 -2
- package/dist/{memory-store-base-BHYXgsCq.d.ts → memory-store-base-CHBfMmZb.d.ts} +11 -21
- package/dist/{memory-store-shared-pOb59ScU.js → memory-store-shared-B-zOxk_Q.js} +4 -6
- package/dist/{memory-store-write-validation-B_hDG2zf.js → memory-store-write-validation-BbvoN3Li.js} +4 -7
- package/dist/{memory-telemetry-incidents-BWA9kcZx.js → memory-telemetry-incidents-Dp8GVD2Q.js} +1 -2
- package/dist/{memory-telemetry-metadata-CA7W8tK6.js → memory-telemetry-metadata-PMKWCAbj.js} +1 -2
- package/dist/{memory-telemetry-outbox-ddTdImt7.d.ts → memory-telemetry-outbox-D-L9c3Nw.d.ts} +2 -4
- package/dist/{memory-telemetry-receipts-MAJecvXQ.d.ts → memory-telemetry-receipts-Boj2CE16.d.ts} +1 -5
- package/dist/{memory-telemetry-receipts-cjIQGwdp.js → memory-telemetry-receipts-ComlCOro.js} +2 -4
- package/dist/{memory-telemetry-types-CufVmrCs.d.ts → memory-telemetry-types-Bg8U0Drl.d.ts} +0 -2
- package/dist/{memory-temporality-classifier-Bauwnls7.js → memory-temporality-classifier-Bm0EiCN8.js} +7 -9
- package/dist/{memory-temporality-classifier-Wi6WWeAj.d.ts → memory-temporality-classifier-HI9KeEsM.d.ts} +1 -3
- package/dist/{memory-tier-promoter-m60-RlAj.d.ts → memory-tier-promoter-CqNT2qFj.d.ts} +1 -3
- package/dist/{memory-tool-dependencies-Cc4SJMtd.js → memory-tool-dependencies-BxVJ-bHs.js} +6 -6
- package/dist/memory-tool-dependencies-KsEWfLkV.d.ts +14 -0
- package/dist/{model-call-table-CPyQfBJ6.js → model-call-table-BxGwmwv0.js} +14 -10
- package/dist/{model-reply-text-CKopStP2.js → model-reply-text-C7jEWDXG.js} +2 -4
- package/dist/{observable-embedder-0FwxJMhJ.d.ts → observable-embedder-DunGMyQg.d.ts} +2 -4
- package/dist/{observable-llm-client-DY7w1Fj1.d.ts → observable-llm-client-D_mOM5Pn.d.ts} +3 -5
- package/dist/{observable-memory-store-C25Q_hoW.d.ts → observable-memory-store-DUhat-p3.d.ts} +5 -7
- package/dist/{observable-retriever-Cs9Bwzq6.d.ts → observable-retriever-7TmJk1HE.d.ts} +6 -8
- package/dist/{operation-cancellation-QcwC4mDX.js → operation-cancellation-mqfQz0ka.js} +1 -2
- package/dist/paths-BySyy_eq.d.ts +1 -0
- package/dist/{plugin-config-observe-schema-ue9XxUj_.js → plugin-config-observe-schema-CwHVuVhu.js} +2 -3
- package/dist/{plugin-config-schema-DQh5njrS.d.ts → plugin-config-schema-DO4FhsYc.d.ts} +4 -24
- package/dist/{plugin-config-schema-D-IoHmis.js → plugin-config-schema-sJbkVY0-.js} +8 -14
- package/dist/{profile-CcvVR6K8.d.ts → profile-nVQCcv-0.d.ts} +1 -3
- package/dist/{profile-section-writer-CR-WWIoB.js → profile-section-writer-DSX6R3GF.js} +10 -15
- package/dist/{provider-registration-qLSA9CQl.js → provider-registration-lujpiuef.js} +5 -8
- package/dist/{provider-runtime-types-DFhtdA6d.d.ts → provider-runtime-types-peajl6V-.d.ts} +0 -2
- package/dist/{provider-types-CZGm6v88.d.ts → provider-types-DIU9efEA.d.ts} +1 -3
- package/dist/{redact-BTIZcHQL.d.ts → redact-BnUxXQUE.d.ts} +0 -2
- package/dist/{reflection-command-hooks-BRLqVNCi.d.ts → reflection-command-hooks-CvkTlbOa.d.ts} +5 -7
- package/dist/{reflection-command-hooks-Der9aX0e.js → reflection-command-hooks-Dyckr_Ma.js} +11 -14
- package/dist/{reflection-deps-C0TJ-gpU.d.ts → reflection-deps-AqE-y4Ba.d.ts} +6 -8
- package/dist/{reflection-embedded-generator-Cs59hWYr.d.ts → reflection-embedded-generator-BJol6by2.d.ts} +6 -8
- package/dist/{reflection-embedded-generator-BEdDusPV.js → reflection-embedded-generator-i8KHqMpr.js} +5 -8
- package/dist/{reflection-injection-hooks-Cy4bRemm.d.ts → reflection-injection-hooks-C3PeK3QM.d.ts} +7 -11
- package/dist/{reflection-lifecycle-hooks-C-lf00DB.d.ts → reflection-lifecycle-hooks-Cjvwic3J.d.ts} +4 -6
- package/dist/{relation-dictionary-Cev1kyLe.js → relation-dictionary-QVBewRQ1.js} +3 -6
- package/dist/release-download.d.ts +1 -3
- package/dist/release-download.js +1 -2
- package/dist/{relevant-memories-context-m8nuFZcM.js → relevant-memories-context-CvMB_zj8.js} +1 -2
- package/dist/rem-batch-executor-BSWXFOLH.js +1 -0
- package/dist/{rem-consumer-retrieval-BhS1ivcd.js → rem-consumer-retrieval-DXeqknml.js} +3 -5
- package/dist/{rem-trigger-CBfyJVfh.js → rem-trigger-BaJa5FS0.js} +206 -345
- package/dist/{resolver-Dy-hnjCR.js → resolver-DQ47zbPS.js} +2 -4
- package/dist/{results-BkMsHy7M.js → results-DERE8r4S.js} +2 -3
- package/dist/{retrieval-gate-Bx2Zg7jD.d.ts → retrieval-gate-XvDp3HuK.d.ts} +0 -2
- package/dist/{retriever-2RJYAvlD.d.ts → retriever-Cv-hwHpH.d.ts} +10 -22
- package/dist/{retriever-C54bXeDh.js → retriever-DRtPp86k.js} +12 -22
- package/dist/{rolldown-runtime-D7D4PA-g.js → rolldown-runtime-D8jQpDG7.js} +1 -2
- package/dist/{runtime-audit-log-DK6xAYxh.js → runtime-audit-log-4NJsojEj.js} +2 -4
- package/dist/{runtime-audit-log-D2Hqk_kl.d.ts → runtime-audit-log-CJK9iVX9.d.ts} +1 -3
- package/dist/{scopes-CtrY-YQ3.d.ts → scopes-BcdyFdfw.d.ts} +1 -5
- package/dist/{scopes-a4Kly9n7.js → scopes-DQjbRC2q.js} +2 -3
- package/dist/{server-BlbG5uOM.js → server-DPd3Xef2.js} +10 -15
- package/dist/{session-registry-DBoE7AvZ.d.ts → session-registry-Dft8oCDg.d.ts} +0 -2
- package/dist/sidecar/main.js +3 -4
- package/dist/{signed-registry-constants-Bv0fgZ8Q.d.ts → signed-registry-constants-BfycrCI1.d.ts} +0 -2
- package/dist/{signed-registry-constants-yq3DlG3B.js → signed-registry-constants-CO2vv_QJ.js} +1 -2
- package/dist/{sno-station-mem-runtime-dependencies-DsidkZi2.js → sno-station-mem-runtime-dependencies-DITNvfkR.js} +14 -14
- package/dist/sno-station-mem-runtime-dependencies-DorPRtTM.d.ts +29 -0
- package/dist/{sqlite-runtime-L_ywirTm.d.ts → sqlite-runtime-Cea2knhj.d.ts} +0 -2
- package/dist/{store-Bz0y76cJ.d.ts → store-AGtE-n72.d.ts} +4 -14
- package/dist/{store-Bja1tVFw.js → store-YX1_c1NH.js} +44 -76
- package/dist/{strategy-hook-runner-F-ruiw48.js → strategy-hook-runner-CwqZ1orf.js} +5 -7
- package/dist/{strategy-hook-runner-vbrWiDbK.d.ts → strategy-hook-runner-DqJpzS9C.d.ts} +7 -9
- package/dist/{token-counter-BD1f48Km.js → token-counter-N9I9iWq1.js} +1 -2
- package/dist/{trace-C1JxMfs-.d.ts → trace-CX26YO5M.d.ts} +0 -2
- package/dist/{types-El7jViCz.d.ts → types-CMbBmMJB.d.ts} +1 -5
- package/dist/{types-pVomjzqR.d.ts → types-qOSF58Ck.d.ts} +0 -2
- package/dist/{unplaced-candidate-migration-BCcdQkcx.js → unplaced-candidate-migration-BFQqjIDP.js} +8 -14
- package/dist/{utils-CDw2ttQf.d.ts → utils-CdhxW1G9.d.ts} +0 -2
- package/package.json +1 -1
- package/settings.default.json +7 -7
- package/skills/extract-atomic-memory/SKILL.md +4 -3
- package/skills/extract-atomic-memory/references/capture.md +3 -2
- package/dist/memory-tool-dependencies-D2fOC-KL.d.ts +0 -14
- package/dist/paths-obFSsJv3.d.ts +0 -1
- package/dist/rem-batch-executor-DiU8hSGc.js +0 -2
- package/dist/sno-station-mem-runtime-dependencies-ByI3b-wB.d.ts +0 -31
|
@@ -11,7 +11,7 @@ import { LRUCache } from "lru-cache";
|
|
|
11
11
|
import { isLowercaseCanonicalUUIDv7 } from "@snoai/common-core";
|
|
12
12
|
import { z } from "zod";
|
|
13
13
|
import { CHUNKING_VERSION, DEFAULT_AGGREGATION_CONFIG, DEFAULT_CHUNK_CONFIG, HEAD_EXTRACT_MIN_CONTENT_TOKENS, HEAD_EXTRACT_OVERLAP_DROP_RATIO, HEAD_EXTRACT_TOKEN_BUDGET } from "@snoai/chunking";
|
|
14
|
-
|
|
14
|
+
// src/contract/routes.ts
|
|
15
15
|
const MEMORY_ROUTES = {
|
|
16
16
|
init: {
|
|
17
17
|
path: "/v1/init",
|
|
@@ -70,8 +70,7 @@ const MEMORY_ERROR_STATUS = {
|
|
|
70
70
|
};
|
|
71
71
|
const MEMORY_RECONNECT_INTERVAL_MS = 1e3;
|
|
72
72
|
const MEMORY_DEFAULT_SKIN_ID = "default";
|
|
73
|
-
|
|
74
|
-
//#region ../embedder/dist/index.mjs
|
|
73
|
+
// ../embedder/dist/index.mjs
|
|
75
74
|
/**
|
|
76
75
|
* Shared embedding constants — single source of truth for all apps.
|
|
77
76
|
* 1024-d is the ONLY supported dimension.
|
|
@@ -1215,8 +1214,7 @@ var LocalReranker = class {
|
|
|
1215
1214
|
}
|
|
1216
1215
|
}
|
|
1217
1216
|
};
|
|
1218
|
-
|
|
1219
|
-
//#region config/index.ts
|
|
1217
|
+
// config/index.ts
|
|
1220
1218
|
/**
|
|
1221
1219
|
* Sno Station Memory centralized configuration.
|
|
1222
1220
|
* Shared tunable constants for every memory skin.
|
|
@@ -1487,8 +1485,7 @@ const recallLifecycleSchema = z.object({
|
|
|
1487
1485
|
* literal default object instead of re-parsing the schema each time.
|
|
1488
1486
|
*/
|
|
1489
1487
|
const DEFAULT_RECALL_LIFECYCLE = recallLifecycleSchema.parse(void 0);
|
|
1490
|
-
|
|
1491
|
-
//#region src/engine/i18n/locales.ts
|
|
1488
|
+
// src/engine/i18n/locales.ts
|
|
1492
1489
|
const SUPPORTED_LOCALES = [
|
|
1493
1490
|
"en",
|
|
1494
1491
|
"de",
|
|
@@ -1504,8 +1501,7 @@ const SUPPORTED_SET = new Set(SUPPORTED_LOCALES);
|
|
|
1504
1501
|
function isSupportedLocale(value) {
|
|
1505
1502
|
return SUPPORTED_SET.has(value);
|
|
1506
1503
|
}
|
|
1507
|
-
|
|
1508
|
-
//#region config/plugin-config-mode-schema.ts
|
|
1504
|
+
// config/plugin-config-mode-schema.ts
|
|
1509
1505
|
/**
|
|
1510
1506
|
* Product LLM modes, tier-ordered: Local First (selected calls on host) → Agent
|
|
1511
1507
|
* Native (every call borrows the host agent's model) → REM Enhanced (top
|
|
@@ -1529,8 +1525,7 @@ const llmRoutingConfigSchema = z.object({
|
|
|
1529
1525
|
language: z.enum(SUPPORTED_LOCALES).default("en"),
|
|
1530
1526
|
modelCalls: modelCallsConfigSchema
|
|
1531
1527
|
}).strict();
|
|
1532
|
-
|
|
1533
|
-
//#region config/plugin-config-embedding-schema.ts
|
|
1528
|
+
// config/plugin-config-embedding-schema.ts
|
|
1534
1529
|
const localEmbedSessionOptionsSchema = z.object({
|
|
1535
1530
|
graphOptimizationLevel: z.enum([
|
|
1536
1531
|
"disabled",
|
|
@@ -1581,8 +1576,7 @@ const embeddingConfigSchema = z.object({
|
|
|
1581
1576
|
/** Enable text chunking for long passages (default: true) */
|
|
1582
1577
|
chunking: z.boolean().default(true)
|
|
1583
1578
|
}).prefault({});
|
|
1584
|
-
|
|
1585
|
-
//#region src/model/signed-registry-constants.ts
|
|
1579
|
+
// src/model/signed-registry-constants.ts
|
|
1586
1580
|
/** Fixed signed, persisted, and host protocol values. Change only with their external authority. */
|
|
1587
1581
|
const FIXED_EXTERNAL_VALUE_49 = "database contains both mem_claw_memories and nodix_memories";
|
|
1588
1582
|
const FIXED_EXTERNAL_VALUE_51 = "PRAGMA table_info(mem_claw_memories)";
|
|
@@ -1662,16 +1656,14 @@ const PERSISTED_CANDIDATE_HASH_V1 = "mem-claw:unplaced-candidate:legacy:v1";
|
|
|
1662
1656
|
const PERSISTED_CONTENT_HASH_V1 = "mem-claw:hash:v1";
|
|
1663
1657
|
const PERSISTED_CONTENT_HASH_V3 = "mem-claw:hash:v3";
|
|
1664
1658
|
const PERSISTED_PROVIDER_SYSTEM = "openclaw";
|
|
1665
|
-
|
|
1666
|
-
//#region src/model/llm-client-types.ts
|
|
1659
|
+
// src/model/llm-client-types.ts
|
|
1667
1660
|
const LLM_PRESETS = [
|
|
1668
1661
|
FIXED_MEMORY_SNO_AI_EXTRACT,
|
|
1669
1662
|
FIXED_MEMORY_SNO_EXTRACT_CHAT,
|
|
1670
1663
|
FIXED_MEMORY_SNO_EXTRACT_PROFILE,
|
|
1671
1664
|
FIXED_MEMORY_SNO_CONFLICT_VERDICT
|
|
1672
1665
|
];
|
|
1673
|
-
|
|
1674
|
-
//#region config/plugin-config-feature-schema.ts
|
|
1666
|
+
// config/plugin-config-feature-schema.ts
|
|
1675
1667
|
const sessionMemoryConfigSchema = z.object({
|
|
1676
1668
|
enabled: z.boolean().default(true),
|
|
1677
1669
|
messageCount: z.number().int().min(1).max(100).default(15)
|
|
@@ -1716,8 +1708,7 @@ const memoryReflectionConfigSchema = z.object({
|
|
|
1716
1708
|
injectIntoPrompt: z.boolean().default(false),
|
|
1717
1709
|
agentId: z.string().optional()
|
|
1718
1710
|
}).prefault({});
|
|
1719
|
-
|
|
1720
|
-
//#region config/plugin-config-observe-schema.ts
|
|
1711
|
+
// config/plugin-config-observe-schema.ts
|
|
1721
1712
|
const AGENT_IDS = [
|
|
1722
1713
|
PERSISTED_PROVIDER_SYSTEM,
|
|
1723
1714
|
FIXED_PROTOCOL_VALUE_70,
|
|
@@ -1770,8 +1761,7 @@ const observeConfigSchema = z.object({
|
|
|
1770
1761
|
}).prefault({}).superRefine((value, ctx) => {
|
|
1771
1762
|
if (value.enabled) validateObserveBaseUrl(value.baseUrl, ctx);
|
|
1772
1763
|
});
|
|
1773
|
-
|
|
1774
|
-
//#region config/plugin-config-retrieval-schema.ts
|
|
1764
|
+
// config/plugin-config-retrieval-schema.ts
|
|
1775
1765
|
const log = createLogger("sno-station-mem:config:retrieval");
|
|
1776
1766
|
/** Published remote selections now run the existing local pipeline. */
|
|
1777
1767
|
const rerankModeSchema = z.preprocess((value) => {
|
|
@@ -1827,8 +1817,7 @@ const retrievalConfigSchema = z.object({
|
|
|
1827
1817
|
/** Hard cap: effective half-life <= baseHalfLife * maxHalfLifeMultiplier (default: 3) */
|
|
1828
1818
|
maxHalfLifeMultiplier: z.number().min(1).max(10).default(3)
|
|
1829
1819
|
}).prefault({});
|
|
1830
|
-
|
|
1831
|
-
//#region config/session-strategy.ts
|
|
1820
|
+
// config/session-strategy.ts
|
|
1832
1821
|
/** @file session-strategy.ts
|
|
1833
1822
|
* @purpose Defines session-memory strategy constants without importing plugin config schemas.
|
|
1834
1823
|
* @boundary Shared literal values only; no schema or runtime registration dependencies.
|
|
@@ -1838,8 +1827,7 @@ const SESSION_STRATEGIES = [
|
|
|
1838
1827
|
"systemSessionMemory",
|
|
1839
1828
|
"none"
|
|
1840
1829
|
];
|
|
1841
|
-
|
|
1842
|
-
//#region config/plugin-config-schema.ts
|
|
1830
|
+
// config/plugin-config-schema.ts
|
|
1843
1831
|
const scopesConfigSchema = z.object({
|
|
1844
1832
|
default: z.string().default(DEFAULT_SCOPE),
|
|
1845
1833
|
definitions: z.record(z.string(), z.object({
|
|
@@ -1931,13 +1919,17 @@ const pluginConfigSchema = z.object({
|
|
|
1931
1919
|
profile: z.enum(ONBOARDING_PROFILES)
|
|
1932
1920
|
}).strict().optional()
|
|
1933
1921
|
}).strict();
|
|
1934
|
-
|
|
1935
|
-
//#region src/model/model-call-table.ts
|
|
1922
|
+
// src/model/model-call-table.ts
|
|
1936
1923
|
const extract = {
|
|
1937
1924
|
"local-first": "off",
|
|
1938
1925
|
"agent-native": "host",
|
|
1939
1926
|
"rem-enhanced": "sno-gpu"
|
|
1940
1927
|
};
|
|
1928
|
+
const extractHost = {
|
|
1929
|
+
"local-first": "off",
|
|
1930
|
+
"agent-native": "host",
|
|
1931
|
+
"rem-enhanced": "host"
|
|
1932
|
+
};
|
|
1941
1933
|
const host = {
|
|
1942
1934
|
"local-first": "off",
|
|
1943
1935
|
"agent-native": "host",
|
|
@@ -1987,7 +1979,7 @@ const MODEL_CALLS = {
|
|
|
1987
1979
|
E2: {
|
|
1988
1980
|
description: "fact enrichment",
|
|
1989
1981
|
occasion: "memoryExtract",
|
|
1990
|
-
destinations:
|
|
1982
|
+
destinations: extractHost,
|
|
1991
1983
|
snoPreset: chat,
|
|
1992
1984
|
transport: {
|
|
1993
1985
|
host: "agent-host-seam",
|
|
@@ -2023,7 +2015,7 @@ const MODEL_CALLS = {
|
|
|
2023
2015
|
E4: {
|
|
2024
2016
|
description: "compound record split",
|
|
2025
2017
|
occasion: "memoryExtract",
|
|
2026
|
-
destinations:
|
|
2018
|
+
destinations: extractHost,
|
|
2027
2019
|
snoPreset: chat,
|
|
2028
2020
|
transport: {
|
|
2029
2021
|
host: "agent-host-seam",
|
|
@@ -2041,7 +2033,7 @@ const MODEL_CALLS = {
|
|
|
2041
2033
|
E5: {
|
|
2042
2034
|
description: "missing half recovery",
|
|
2043
2035
|
occasion: "memoryExtract",
|
|
2044
|
-
destinations:
|
|
2036
|
+
destinations: extractHost,
|
|
2045
2037
|
snoPreset: chat,
|
|
2046
2038
|
transport: {
|
|
2047
2039
|
host: "agent-host-seam",
|
|
@@ -2059,7 +2051,7 @@ const MODEL_CALLS = {
|
|
|
2059
2051
|
E6: {
|
|
2060
2052
|
description: "subject check",
|
|
2061
2053
|
occasion: "memoryExtract",
|
|
2062
|
-
destinations:
|
|
2054
|
+
destinations: extractHost,
|
|
2063
2055
|
snoPreset: chat,
|
|
2064
2056
|
transport: {
|
|
2065
2057
|
host: "agent-host-seam",
|
|
@@ -2077,7 +2069,7 @@ const MODEL_CALLS = {
|
|
|
2077
2069
|
E7: {
|
|
2078
2070
|
description: "unresolved subject recovery",
|
|
2079
2071
|
occasion: "memoryExtract",
|
|
2080
|
-
destinations:
|
|
2072
|
+
destinations: extractHost,
|
|
2081
2073
|
snoPreset: chat,
|
|
2082
2074
|
transport: {
|
|
2083
2075
|
host: "agent-host-seam",
|
|
@@ -2095,7 +2087,7 @@ const MODEL_CALLS = {
|
|
|
2095
2087
|
E8: {
|
|
2096
2088
|
description: "same entity judgment",
|
|
2097
2089
|
occasion: "memoryExtract",
|
|
2098
|
-
destinations:
|
|
2090
|
+
destinations: extractHost,
|
|
2099
2091
|
snoPreset: chat,
|
|
2100
2092
|
transport: {
|
|
2101
2093
|
host: "agent-host-seam",
|
|
@@ -2167,7 +2159,7 @@ const MODEL_CALLS = {
|
|
|
2167
2159
|
E12: {
|
|
2168
2160
|
description: "background state keying",
|
|
2169
2161
|
occasion: "memoryExtract",
|
|
2170
|
-
destinations:
|
|
2162
|
+
destinations: extractHost,
|
|
2171
2163
|
snoPreset: chat,
|
|
2172
2164
|
transport: {
|
|
2173
2165
|
host: "agent-host-seam",
|
|
@@ -2537,8 +2529,7 @@ const MODEL_CALL_WORKLOAD = {
|
|
|
2537
2529
|
function modelCallDestination(callId, mode, modelCalls) {
|
|
2538
2530
|
return modelCalls[callId][mode];
|
|
2539
2531
|
}
|
|
2540
|
-
|
|
2541
|
-
//#region config/settings.ts
|
|
2532
|
+
// config/settings.ts
|
|
2542
2533
|
const destination = z.enum([
|
|
2543
2534
|
"off",
|
|
2544
2535
|
"host",
|
|
@@ -2771,8 +2762,7 @@ function settingsToPluginConfig(settings, usageClass) {
|
|
|
2771
2762
|
} }
|
|
2772
2763
|
});
|
|
2773
2764
|
}
|
|
2774
|
-
|
|
2775
|
-
//#region src/contract/profile.ts
|
|
2765
|
+
// src/contract/profile.ts
|
|
2776
2766
|
function getStateDir(defaultStateDir) {
|
|
2777
2767
|
return path.resolve(process.env.SNO_PROFILE_DIR ?? defaultStateDir ?? path.join(homedir(), ".sno"));
|
|
2778
2768
|
}
|
|
@@ -2807,8 +2797,7 @@ function getDiscoveryPath() {
|
|
|
2807
2797
|
function getSidecarSocketPath() {
|
|
2808
2798
|
return path.join(getStateDir(), "station", "sidecar.sock");
|
|
2809
2799
|
}
|
|
2810
|
-
|
|
2811
|
-
//#region src/sidecar/config.ts
|
|
2800
|
+
// src/sidecar/config.ts
|
|
2812
2801
|
/** @file config.ts
|
|
2813
2802
|
* @purpose Centralizes the standalone REM sidecar's paths, protocol constants, and boot settings.
|
|
2814
2803
|
* @boundary Environment and filesystem configuration for CLI discovery and local REM state.
|
|
@@ -2926,5 +2915,4 @@ function readMaintenanceOverrides() {
|
|
|
2926
2915
|
volumeThreshold: positive(REM_VOLUME_THRESHOLD_ENV)
|
|
2927
2916
|
};
|
|
2928
2917
|
}
|
|
2929
|
-
//#endregion
|
|
2930
2918
|
export { FIXED_IDX_MEMORY_ACTIVE_TASK_CURRENT_REVISION as $, MEMORY_SHUTDOWN_TIMEOUT_MS as $n, FIXED_PROTOCOL_VALUE_79 as $t, modelCallDestination as A, DEFAULT_REFLECTION_ERROR_SCAN_MAX_CHARS as An, MEMORY_SKIN_HEADER as Ar, FIXED_MEMORY_PROFILE_RECOVERY_ENTRIES as At, FIXED_EXTERNAL_VALUE_49 as B, FTS_MERGE_INTERVAL_MS as Bn, FIXED_PROTOCOL_VALUE_63 as Bt, getSnoStationMemStateDir as C, CHUNK_OVERLAP_TOKENS as Cn, ensureModelDownloaded as Cr, FIXED_MEMORY_CHUNKS_MEM_FACET_IDX as Ct, settingsToPluginConfig as D, DEFAULT_IMPORTANCE as Dn, MEMORY_ERROR_STATUS as Dr, FIXED_MEMORY_MEMORIES_FACT_ID_INSERT_GUARD as Dt, defaultSettings as E, DEFAULT_BM25_WEIGHT as En, MEMORY_DEFAULT_SKIN_ID as Er, FIXED_MEMORY_MEMORIES as Et, observeConfigSchema as F, EMBEDDER_DIM as Fn, FIXED_MEMORY_SNO_AI_EXTRACT as Ft, FIXED_EXTERNAL_VALUE_55 as G, INTEGRITY_CHECK_INTERVAL_MS as Gn, FIXED_PROTOCOL_VALUE_68 as Gt, FIXED_EXTERNAL_VALUE_52 as H, HEAD_EXTRACT_OVERLAP_DROP_RATIO as Hn, FIXED_PROTOCOL_VALUE_65 as Ht, extractionConfigSchema as I, EMBEDDER_MODEL_DEFAULT as In, FIXED_MEMORY_SNO_EXTRACT_CHAT as It, FIXED_EXTERNAL_VALUE_58 as J, MAX_AGGREGATION_RESULT_TOKENS as Jn, FIXED_PROTOCOL_VALUE_74 as Jt, FIXED_EXTERNAL_VALUE_56 as K, INTRA_MEMORY_COSINE_THRESHOLD as Kn, FIXED_PROTOCOL_VALUE_69 as Kt, memoryReflectionConfigSchema as L, EMBEDDER_PROVIDER_DEFAULT as Ln, FIXED_MEMORY_SNO_EXTRACT_PROFILE as Lt, retrievalConfigSchema as M, DEFAULT_RERANK_TIMEOUT_MS as Mn, memoryMethod as Mr, FIXED_MEMORY_PROVIDER_PROJECT_AGENTS as Mt, isObserveAgentId as N, DEFAULT_SCOPE as Nn, FIXED_MEMORY_PROVIDER_PROJECT_MAPPINGS as Nt, MODEL_CALLS as O, DEFAULT_RECALL_LIFECYCLE as On, MEMORY_RECONNECT_INTERVAL_MS as Or, FIXED_MEMORY_MEMORIES_FACT_ID_UPDATE_GUARD as Ot, observeAgentId as P, DEFAULT_VECTOR_WEIGHT as Pn, FIXED_MEMORY_ROW_PATH_PATTERN as Pt, FIXED_IDX_MEMORY as Q, MAX_RECALLED_TODO_TOKENS as Qn, FIXED_PROTOCOL_VALUE_78 as Qt, selfImprovementConfigSchema as R, EVAL_QA_TRACES_FILENAME as Rn, FIXED_MEMORY_TASK_LIFECYCLE_COMMANDS as Rt, getSidecarSocketPath as S, CHUNK_MIN_TOKENS as Sn, LocalReranker as Sr, FIXED_MEMORY_CHUNKS_MEMORY_ID_IDX as St, readSettings as T, CHUNK_TOKENIZER_MODE as Tn, MEMORY_CANCEL_ON_DISCONNECT_HEADER as Tr, FIXED_MEMORY_EXTRACTION_TIMESTAMPS as Tt, FIXED_EXTERNAL_VALUE_53 as U, HEAD_EXTRACT_TOKEN_BUDGET as Un, FIXED_PROTOCOL_VALUE_66 as Ut, FIXED_EXTERNAL_VALUE_51 as V, HEAD_EXTRACT_MIN_CONTENT_TOKENS as Vn, FIXED_PROTOCOL_VALUE_64 as Vt, FIXED_EXTERNAL_VALUE_54 as W, IMPORTANCE_WEIGHT_BASE as Wn, FIXED_PROTOCOL_VALUE_67 as Wt, FIXED_EXTERNAL_VALUE_8 as X, MAX_CHUNK_FETCH_LIMIT as Xn, FIXED_PROTOCOL_VALUE_76 as Xt, FIXED_EXTERNAL_VALUE_62 as Y, MAX_CANDIDATE_POOL_SIZE as Yn, FIXED_PROTOCOL_VALUE_75 as Yt, FIXED_EXTERNAL_VALUE_9 as Z, MAX_LIST_LIMIT as Zn, FIXED_PROTOCOL_VALUE_77 as Zt, readRemTestHoldMs as _, BACKUP_MIN_FREE_DISK_RATIO as _n, CachedEmbeddingProvider as _r, FIXED_MEMORY_CHUNKS as _t, REM_MODEL_OUTPUT_TOKEN_CAP as a, PERSISTED_PROVIDER_SYSTEM as an, RECENCY_WEIGHT as ar, FIXED_IDX_MEMORY_MEMORIES_LANE_PROJECT as at, getPrincipal as b, CHUNKING_VERSION as bn, LOCAL_EMBEDDING_MODEL_REVISION as br, FIXED_MEMORY_CHUNKS_AU as bt, REM_SIDECAR_ORIGIN as c, SUPPORTED_LOCALES as cn, RETRIEVAL_STORAGE_CHUNK_PROFILE as cr, FIXED_IDX_MEMORY_MEMORIES_PROJECT_FACT_KEY_ACTIVE as ct, getRemDiscoveryPath as d, ADJACENCY_BONUS_PER_PAIR as dn, USAGE_EVENT_RETENTION_INTERVAL_MS as dr, FIXED_MEMORY_ACTIVE_TASK_EVIDENCE as dt, FIXED_VEC_MEMORY as en, MIN_RECALL_TOKEN_BUDGET as er, FIXED_IDX_MEMORY_ACTIVE_TASK_EVIDENCE_INSTANCE as et, getRemJobJournalPath as f, ATOMIC_CAPTURE_OUTPUT_TOKEN_BUDGET as fn, USAGE_OUTBOX_INTERVAL_MS as fr, FIXED_MEMORY_ACTIVE_TASK_INSTANCES as ft, readRemOperationalConfig as g, BACKUP_INTERVAL_MS as gn, recallLifecycleSchema as gr, FIXED_MEMORY_ACTIVE_TASK_TRANSITIONS as gt, readMaintenanceOverrides as h, ATOMIC_EXTRACTION_MAX_INPUT_TOKENS as hn, experimentMmrDisabled as hr, FIXED_MEMORY_ACTIVE_TASK_REVISIONS as ht, REM_JOBS_PATH_PREFIX as i, PERSISTED_CONTENT_HASH_V3 as in, PLANNER_STATISTICS_INTERVAL_MS as ir, FIXED_IDX_MEMORY_MEMORIES_FACT_ID as it, SESSION_STRATEGIES as j, DEFAULT_REFLECTION_SESSION_TTL_MS as jn, REM_SIDECAR_TOKEN_HEADER as jr, FIXED_MEMORY_PROVIDER_AGENT_MAPPINGS as jt, MODEL_CALL_WORKLOAD as k, DEFAULT_RECALL_TOKEN_BUDGET as kn, MEMORY_ROUTES as kr, FIXED_MEMORY_MIGRATION_MARKERS as kt, REM_SOURCE as l, isSupportedLocale as ln, SNO_OBSERVE_FLUSH_TIMEOUT_MS as lr, FIXED_IDX_MEMORY_MEMORIES_PROJECT_TIMESTAMP as lt, isRemTraceEnabled as m, ATOMIC_ENRICHMENT_OUTPUT_TOKEN_BUDGET as mn, experimentCandidatePoolOverride as mr, FIXED_MEMORY_ACTIVE_TASK_MIGRATION_MANIFESTS as mt, MEMORY_USAGE_FLUSH_INTERVAL_MS as n, PERSISTED_CANDIDATE_HASH_V1 as nn, MULTI_HIT_BONUS_CAP as nr, FIXED_IDX_MEMORY_MEMORIES_CATEGORY as nt, REM_RUN_PATH as o, embeddingConfigSchema as on, REFLECTION_SLICE_CACHE_TTL_MS as or, FIXED_IDX_MEMORY_MEMORIES_PROJECT as ot, getRemTraceLogPath as p, ATOMIC_CAPTURE_TIMEOUT_MS as pn, VECTOR_DIMENSION_DEFAULT as pr, FIXED_MEMORY_ACTIVE_TASK_MIGRATION_EVIDENCE as pt, FIXED_EXTERNAL_VALUE_57 as q, MAINTENANCE_TICK_MS as qn, FIXED_PROTOCOL_VALUE_73 as qt, REM_CORRELATION_ID_HEADER as r, PERSISTED_CONTENT_HASH_V1 as rn, MULTI_HIT_BONUS_PER_HIT as rr, FIXED_IDX_MEMORY_MEMORIES_CONTENT_HASH as rt, REM_SIDECAR_HOST as s, llmRoutingConfigSchema as sn, REM_TRIGGER_CHECK_INTERVAL_MS as sr, FIXED_IDX_MEMORY_MEMORIES_PROJECT_CONTENT_HASH as st, HEALTH_PATH as t, FIXED_VEC_MEMORY_CHUNKS as tn, MMR_LAMBDA as tr, FIXED_IDX_MEMORY_ACTIVE_TASK_INSTANCES_PROJECTION as tt, getRemChassisJournalPath as u, ADJACENCY_BONUS_CAP as un, TIME_DECAY_FLOOR as ur, FIXED_MEMORY as ut, SettingsUnavailableError as v, BONUS_TOTAL_INVARIANT as vn, LOCAL_EMBEDDING_CACHE_DIR_DEFAULT as vr, FIXED_MEMORY_CHUNKS_AD as vt, getStateDir as w, CHUNK_TARGET_TOKENS as wn, MEMORY_BODY_LIMIT_BYTES as wr, FIXED_MEMORY_CHUNKS_MEM_IDX as wt, getSettingsPath as x, CHUNK_MAX_TOKENS as xn, LocalEmbedProvider as xr, FIXED_MEMORY_CHUNKS_FTS as xt, getDiscoveryPath as y, CACHE_TTL_MS as yn, LOCAL_EMBEDDING_MODEL as yr, FIXED_MEMORY_CHUNKS_AI as yt, sessionMemoryConfigSchema as z, FORGET_QUERY_MIN_SCORE as zn, FIXED_MEMORY_UNPLACED_CANDIDATES as zt };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as SqliteRuntimeHandle, r as SqliteDatabaseLike } from "./sqlite-runtime-
|
|
1
|
+
import { o as SqliteRuntimeHandle, r as SqliteDatabaseLike } from "./sqlite-runtime-Cea2knhj.js";
|
|
2
2
|
import { drizzle } from "drizzle-orm/better-sqlite3";
|
|
3
3
|
import { SQLiteColumn, SQLiteTableWithColumns } from "drizzle-orm/sqlite-core";
|
|
4
4
|
declare namespace schema_d_exports {
|
|
@@ -320,16 +320,12 @@ declare const nodixProfileRecoveryEntries: SQLiteTableWithColumns<{
|
|
|
320
320
|
};
|
|
321
321
|
dialect: "sqlite";
|
|
322
322
|
}>;
|
|
323
|
-
//#endregion
|
|
324
|
-
//#region src/store/path-validation.d.ts
|
|
325
323
|
/**
|
|
326
324
|
* Validate and prepare the storage directory for the SQLite database file.
|
|
327
325
|
* Resolves symlinks, creates missing directories, and checks write permissions.
|
|
328
326
|
* Returns the resolved parent directory path on success, or throws a descriptive error.
|
|
329
327
|
*/
|
|
330
328
|
declare function validateStoragePath(dbPath: string): string;
|
|
331
|
-
//#endregion
|
|
332
|
-
//#region src/store/connection.d.ts
|
|
333
329
|
type RuntimeDrizzleDB = ReturnType<typeof drizzle<typeof schema_d_exports>>;
|
|
334
330
|
type DrizzleDB = RuntimeDrizzleDB & {
|
|
335
331
|
$client: SqliteDatabaseLike;
|
|
@@ -371,5 +367,4 @@ declare function loadStorageExtensions(sqlite: SqliteRuntimeHandle): void;
|
|
|
371
367
|
declare function initDb(dbPath: string, vectorDim: number): DrizzleDB;
|
|
372
368
|
/** Implements close db as the local SQLite connection setup operation. */
|
|
373
369
|
declare function closeDb(db: DrizzleDB): void;
|
|
374
|
-
//#endregion
|
|
375
370
|
export { loadStorageExtensions as a, readChunkVecTableState as c, initDb as i, vecTableDdlHasPartitionKey as l, VecTableState as n, parseVecTableDimension as o, closeDb as r, readChunkVecTableDimension as s, DrizzleDB as t, validateStoragePath as u };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { StorageError } from "./internal/engine/shared/errors.js";
|
|
2
|
-
import { a as schema_exports, i as migrateLegacyDatabaseNamespace, n as loadSqliteVecExtension, o as applyEntityNameKeyMigration, r as resolveSimpleTokenizerPath, t as migrateUnplacedCandidates } from "./unplaced-candidate-migration-
|
|
2
|
+
import { a as schema_exports, i as migrateLegacyDatabaseNamespace, n as loadSqliteVecExtension, o as applyEntityNameKeyMigration, r as resolveSimpleTokenizerPath, t as migrateUnplacedCandidates } from "./unplaced-candidate-migration-BFQqjIDP.js";
|
|
3
3
|
import { SqliteFileMissingError, openSqliteDatabase } from "./internal/store/sqlite-runtime.js";
|
|
4
4
|
import { createLogger } from "@snoai/utils/logger";
|
|
5
5
|
import { dirname, join } from "node:path";
|
|
@@ -7,7 +7,7 @@ import { accessSync, constants, existsSync, lstatSync, mkdirSync, realpathSync }
|
|
|
7
7
|
import { fileURLToPath } from "node:url";
|
|
8
8
|
import { drizzle } from "drizzle-orm/better-sqlite3";
|
|
9
9
|
import { migrate } from "drizzle-orm/better-sqlite3/migrator";
|
|
10
|
-
|
|
10
|
+
// src/store/path-validation.ts
|
|
11
11
|
/**
|
|
12
12
|
* Validate and prepare the storage directory for the SQLite database file.
|
|
13
13
|
* Resolves symlinks, creates missing directories, and checks write permissions.
|
|
@@ -41,8 +41,7 @@ function validateStoragePath(dbPath) {
|
|
|
41
41
|
}
|
|
42
42
|
return resolvedDir;
|
|
43
43
|
}
|
|
44
|
-
|
|
45
|
-
//#region src/store/connection.ts
|
|
44
|
+
// src/store/connection.ts
|
|
46
45
|
/** @file connection.ts
|
|
47
46
|
* @purpose Creates and validates SQLite connections used by the memory store.
|
|
48
47
|
* @boundary Filesystem safety, database pragmas, migrations, and runtime loading.
|
|
@@ -274,5 +273,4 @@ function ensureColumn(database, tableName, columnName, declaration) {
|
|
|
274
273
|
if (database.prepare(`PRAGMA table_info(${tableName})`).all().some(({ name }) => name === columnName)) return;
|
|
275
274
|
database.exec(`ALTER TABLE ${tableName} ADD COLUMN ${columnName} ${declaration}`);
|
|
276
275
|
}
|
|
277
|
-
//#endregion
|
|
278
276
|
export { readChunkVecTableDimension as a, validateStoragePath as c, parseVecTableDimension as i, initDb as n, readChunkVecTableState as o, loadStorageExtensions as r, vecTableDdlHasPartitionKey as s, closeDb as t };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./internal/config/index.js";
|
|
2
2
|
import { redactSecrets } from "./internal/engine/security/redact.js";
|
|
3
|
-
import { a as memoryOperationSignal, n as memoryFileWrite, t as checkMemoryOperation } from "./operation-cancellation-
|
|
4
|
-
import { n as RESOURCES_BY_LOCALE } from "./all-resources-
|
|
5
|
-
import { t as resolveLocale } from "./resolver-
|
|
6
|
-
import { a as sha256Hex } from "./error-signals-
|
|
3
|
+
import { a as memoryOperationSignal, n as memoryFileWrite, t as checkMemoryOperation } from "./operation-cancellation-mqfQz0ka.js";
|
|
4
|
+
import { n as RESOURCES_BY_LOCALE } from "./all-resources-BZc9QIAW.js";
|
|
5
|
+
import { t as resolveLocale } from "./resolver-DQ47zbPS.js";
|
|
6
|
+
import { a as sha256Hex } from "./error-signals-CqvwBBWn.js";
|
|
7
7
|
import { chunk, countTokens } from "@snoai/chunking";
|
|
8
8
|
import { createLogger } from "@snoai/utils/logger";
|
|
9
9
|
import { basename, dirname, join } from "node:path";
|
|
@@ -11,7 +11,7 @@ import { appendFile, link, mkdir, readFile, readdir, stat, unlink, writeFile } f
|
|
|
11
11
|
import { randomUUID } from "node:crypto";
|
|
12
12
|
import "node:fs";
|
|
13
13
|
import "node:readline";
|
|
14
|
-
|
|
14
|
+
// src/engine/operations/session-summary-storage.ts
|
|
15
15
|
const diagnosticLog$1 = createLogger("sno-station-mem:session-summary-storage");
|
|
16
16
|
/** Implements sort file names by mtime desc as the local session summary storage operation. */
|
|
17
17
|
async function sortFileNamesByMtimeDesc(dir, fileNames) {
|
|
@@ -48,8 +48,7 @@ function extractTextContent(content) {
|
|
|
48
48
|
}
|
|
49
49
|
return parts.length > 0 ? parts.join("\n") : null;
|
|
50
50
|
}
|
|
51
|
-
|
|
52
|
-
//#region src/engine/reflection/reflection-prompt-input.ts
|
|
51
|
+
// src/engine/reflection/reflection-prompt-input.ts
|
|
53
52
|
function prepareReflectionPromptInputs(conversation, maxInputChars) {
|
|
54
53
|
const trimmed = conversation.trim();
|
|
55
54
|
if (!trimmed) return [];
|
|
@@ -61,8 +60,7 @@ function prepareReflectionPromptInputs(conversation, maxInputChars) {
|
|
|
61
60
|
maxTokens
|
|
62
61
|
}).map((draft) => draft.chunkText);
|
|
63
62
|
}
|
|
64
|
-
|
|
65
|
-
//#region src/engine/reflection/transient-generation-retry.ts
|
|
63
|
+
// src/engine/reflection/transient-generation-retry.ts
|
|
66
64
|
const TRANSIENT_POLICIES = {
|
|
67
65
|
transportReset: [
|
|
68
66
|
/unexpected eof/i,
|
|
@@ -240,8 +238,7 @@ async function runWithReflectionTransientRetryOnce(params) {
|
|
|
240
238
|
}
|
|
241
239
|
}
|
|
242
240
|
}
|
|
243
|
-
|
|
244
|
-
//#region src/engine/reflection/daily-log-generator.ts
|
|
241
|
+
// src/engine/reflection/daily-log-generator.ts
|
|
245
242
|
/** @file daily-log-generator.ts
|
|
246
243
|
* @purpose Runs reflection analysis and writes durable improvement-oriented records.
|
|
247
244
|
* @boundary LLM prompts, reflection stores, retry handling, and learning extraction.
|
|
@@ -465,5 +462,4 @@ async function writeReflectionToFilesystem(params) {
|
|
|
465
462
|
}
|
|
466
463
|
throw new Error(`Failed to allocate unique reflection file for ${dateStr} ${timeCompact}`);
|
|
467
464
|
}
|
|
468
|
-
//#endregion
|
|
469
465
|
export { generateReflectionText as a, shouldSkipReflectionMessage as c, ensureDailyLogFile as i, writeReflectionToFilesystem as l, buildReflectionFallbackText as n, readSessionConversationForReflection as o, buildReflectionPrompt as r, readSessionConversationWithResetFallback as s, REFLECTION_FALLBACK_MARKER as t, extractTextContent as u };
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import { t as ReflectionErrorSignal } from "./error-signals-
|
|
2
|
-
//#region src/engine/operations/session-summary-storage.d.ts
|
|
1
|
+
import { t as ReflectionErrorSignal } from "./error-signals-f0JhwtHI.js";
|
|
3
2
|
/** Extracts text content from raw inputs while tolerating partial data. */
|
|
4
3
|
declare function extractTextContent(content: unknown): string | null;
|
|
5
|
-
//#endregion
|
|
6
|
-
//#region src/engine/reflection/daily-log-generator.d.ts
|
|
7
4
|
declare const REFLECTION_FALLBACK_MARKER = "(fallback) Reflection generation failed; storing minimal pointer only.";
|
|
8
5
|
/**
|
|
9
6
|
* Tests whether should skip reflection message without mutating reflection capture policy state.
|
|
@@ -69,5 +66,4 @@ type WriteReflectionFsParams = {
|
|
|
69
66
|
* Persists reflection to filesystem through the single reflection capture policy write path.
|
|
70
67
|
*/
|
|
71
68
|
declare function writeReflectionToFilesystem(params: WriteReflectionFsParams): Promise<string>;
|
|
72
|
-
//#endregion
|
|
73
69
|
export { buildReflectionFallbackText as a, generateReflectionText as c, shouldSkipReflectionMessage as d, writeReflectionToFilesystem as f, WriteReflectionFsParams as i, readSessionConversationForReflection as l, ReflectionGenerator as n, buildReflectionPrompt as o, extractTextContent as p, ReflectionResult as r, ensureDailyLogFile as s, REFLECTION_FALLBACK_MARKER as t, readSessionConversationWithResetFallback as u };
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
//#region src/engine/operations/daily-spend-estimator.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Reads estimated spend today and applies daily spend accounting fallback behavior for missing
|
|
4
3
|
* data.
|
|
5
4
|
*/
|
|
6
5
|
declare function readEstimatedSpendToday(stateDir: string): Promise<number>;
|
|
7
|
-
//#endregion
|
|
8
6
|
export { readEstimatedSpendToday as t };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
//#region src/store/install-manifest.d.ts
|
|
3
2
|
/** Manifest shape, named so the schema can be annotated without restating it. */
|
|
4
3
|
interface InstallManifestShape {
|
|
5
4
|
schemaVersion: 1;
|
|
@@ -11,8 +10,6 @@ interface InstallManifestShape {
|
|
|
11
10
|
/** Schema. No `lastSeenVersion` / `lastSeenAt`. */
|
|
12
11
|
declare const InstallManifestSchema: z.ZodType<InstallManifestShape, unknown>;
|
|
13
12
|
type InstallManifest = z.infer<typeof InstallManifestSchema>;
|
|
14
|
-
//#endregion
|
|
15
|
-
//#region src/store/data-bootstrap.d.ts
|
|
16
13
|
interface BootstrapResult {
|
|
17
14
|
dbPath: string;
|
|
18
15
|
manifest: InstallManifest;
|
|
@@ -26,5 +23,4 @@ interface BootstrapResult {
|
|
|
26
23
|
* 3. manifest missing, dir empty → fresh install.
|
|
27
24
|
*/
|
|
28
25
|
declare function bootstrapDataLayout(storePath: string): BootstrapResult;
|
|
29
|
-
//#endregion
|
|
30
26
|
export { bootstrapDataLayout as n, BootstrapResult as t };
|
|
@@ -94,8 +94,7 @@ function freshInstallManifest(args) {
|
|
|
94
94
|
dbPath: args.dbPath
|
|
95
95
|
});
|
|
96
96
|
}
|
|
97
|
-
|
|
98
|
-
//#region src/store/data-bootstrap.ts
|
|
97
|
+
// src/store/data-bootstrap.ts
|
|
99
98
|
/** @file data-bootstrap.ts
|
|
100
99
|
* @purpose Drive the boot flow: ensure data dir exists, probe
|
|
101
100
|
* filesystem, then resolve or create the install manifest
|
|
@@ -168,5 +167,4 @@ function bootstrapDataLayout(storePath) {
|
|
|
168
167
|
dataDir
|
|
169
168
|
};
|
|
170
169
|
}
|
|
171
|
-
//#endregion
|
|
172
170
|
export { bootstrapDataLayout as t };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/store/data-paths.d.ts
|
|
2
1
|
/** Typed boundary error for refuse-to-operate when data dir is on NFS/SMB/FUSE. */
|
|
3
2
|
declare class NonLocalFilesystemError extends Error {
|
|
4
3
|
readonly dir: string;
|
|
@@ -18,5 +17,4 @@ declare function getBackupsDir(): string;
|
|
|
18
17
|
* only — Windows is out of v1 projectId.
|
|
19
18
|
*/
|
|
20
19
|
declare function assertLocalFilesystem(dir: string): void;
|
|
21
|
-
//#endregion
|
|
22
20
|
export { getCostLogPath as a, getSnoStationMemDataDir as c, getBackupsDir as i, assertLocalFilesystem as n, getInstallManifestPath as o, getAuditLogPath as r, getKillswitchPath as s, NonLocalFilesystemError as t };
|
package/dist/{derived-suppression-cache-CcANI-p7.d.ts → derived-suppression-cache-ByclOuKE.d.ts}
RENAMED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import "./types-
|
|
2
|
-
//#region src/engine/reflection/reflection-line-loader.d.ts
|
|
1
|
+
import "./types-CMbBmMJB.js";
|
|
3
2
|
interface ReflectionLineSource {
|
|
4
3
|
line: string;
|
|
5
4
|
rowId: string;
|
|
@@ -16,21 +15,16 @@ interface LoadedReflectionSlices {
|
|
|
16
15
|
invariantSources: ReflectionLineSource[];
|
|
17
16
|
derivedSources: ReflectionLineSource[];
|
|
18
17
|
}
|
|
19
|
-
//#endregion
|
|
20
|
-
//#region src/engine/reflection/derived-line-cache.d.ts
|
|
21
18
|
type ReflectionDerivedCacheEntry = {
|
|
22
19
|
updatedAt: number;
|
|
23
20
|
derived: string[];
|
|
24
21
|
derivedSources?: ReflectionLineSource[];
|
|
25
22
|
};
|
|
26
23
|
type ReflectionDerivedCache = Map<string, ReflectionDerivedCacheEntry>;
|
|
27
|
-
//#endregion
|
|
28
|
-
//#region src/engine/reflection/derived-suppression-cache.d.ts
|
|
29
24
|
type ReflectionDerivedSuppressionEntry = {
|
|
30
25
|
updatedAt: number;
|
|
31
26
|
until: number;
|
|
32
27
|
reason: string;
|
|
33
28
|
};
|
|
34
29
|
type ReflectionDerivedSuppressionCache = Map<string, ReflectionDerivedSuppressionEntry>;
|
|
35
|
-
//#endregion
|
|
36
30
|
export { ReflectionDerivedCache as n, LoadedReflectionSlices as r, ReflectionDerivedSuppressionCache as t };
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { DiagnosticInput, DiagnosticInput as DiagnosticInput$1, LogLevel, LogSource } from "@snoai/utils/log-encoder";
|
|
2
|
-
//#region src/engine/observability/early-diagnostics.d.ts
|
|
3
2
|
export declare function encodeDiagnostic(input: DiagnosticInput$1): string;
|
|
4
3
|
export declare function writeEmergencyDiagnostic(input: DiagnosticInput$1): void;
|
|
5
|
-
//#endregion
|
|
6
4
|
export type { DiagnosticInput, LogLevel, LogSource };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as version, t as logSiteCatalog } from "./log-site-catalog.generated-
|
|
1
|
+
import { n as version, t as logSiteCatalog } from "./log-site-catalog.generated-Dtiih6m2.js";
|
|
2
2
|
import { diagnosticProcessInstanceId, encodeDiagnostic as encodeDiagnostic$1, writeEmergencyDiagnostic as writeEmergencyDiagnostic$1 } from "@snoai/utils/log-encoder";
|
|
3
|
-
|
|
3
|
+
// src/engine/observability/early-diagnostics.ts
|
|
4
4
|
function bindApplication(input) {
|
|
5
5
|
const site = logSiteCatalog.sites[input.source.site_id];
|
|
6
6
|
const matched = site?.file === input.source.file && site?.function === input.source.function;
|
|
@@ -25,5 +25,4 @@ function encodeDiagnostic(input) {
|
|
|
25
25
|
function writeEmergencyDiagnostic(input) {
|
|
26
26
|
writeEmergencyDiagnostic$1(bindApplication(input));
|
|
27
27
|
}
|
|
28
|
-
//#endregion
|
|
29
28
|
export { encodeDiagnostic, writeEmergencyDiagnostic };
|
package/dist/{embedding-provider-client-CELWtPgt.d.ts → embedding-provider-client-Bli3uXan.d.ts}
RENAMED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { LocalEmbedDtype, LocalEmbedSessionOptions } from "@snoai/embedder";
|
|
2
|
-
//#region src/engine/extraction/embedding-provider-factory.d.ts
|
|
3
2
|
type EmbeddingProviderKind = "local-onnx";
|
|
4
3
|
interface EmbeddingConfig {
|
|
5
4
|
/** Which provider to instantiate. Defaults to local-onnx. */
|
|
@@ -29,8 +28,6 @@ interface EmbeddingConfig {
|
|
|
29
28
|
/** Enable text chunking for long passages (default: true) */
|
|
30
29
|
chunking?: boolean;
|
|
31
30
|
}
|
|
32
|
-
//#endregion
|
|
33
|
-
//#region src/engine/extraction/embedding-provider-client.d.ts
|
|
34
31
|
declare class Embedder {
|
|
35
32
|
private readonly provider;
|
|
36
33
|
private readonly chunkingEnabled;
|
|
@@ -96,5 +93,4 @@ declare class Embedder {
|
|
|
96
93
|
}
|
|
97
94
|
/** Creates the embedder facade around the local ONNX provider. */
|
|
98
95
|
declare function createEmbedder(config: EmbeddingConfig, stateDir: string): Embedder;
|
|
99
|
-
//#endregion
|
|
100
96
|
export { EmbeddingProviderKind as i, createEmbedder as n, EmbeddingConfig as r, Embedder as t };
|
package/dist/{embedding-provider-client-CgpUK_1G.js → embedding-provider-client-ClgiYSD4.js}
RENAMED
|
@@ -4,7 +4,7 @@ import { chunk } from "@snoai/chunking";
|
|
|
4
4
|
import { CachedEmbeddingProvider, LOCAL_EMBEDDING_CACHE_DIR_DEFAULT, LOCAL_EMBEDDING_MODEL, LOCAL_EMBEDDING_MODEL_REVISION, LocalEmbedProvider, LocalReranker, ensureModelDownloaded } from "@snoai/embedder";
|
|
5
5
|
import { createLogger } from "@snoai/utils/logger";
|
|
6
6
|
import { availableParallelism } from "node:os";
|
|
7
|
-
|
|
7
|
+
// src/engine/extraction/embedding-provider-factory.ts
|
|
8
8
|
function resolveEmbeddingCacheDir(config) {
|
|
9
9
|
return config.cacheDir || LOCAL_EMBEDDING_CACHE_DIR_DEFAULT;
|
|
10
10
|
}
|
|
@@ -26,8 +26,7 @@ function buildProvider(config) {
|
|
|
26
26
|
...config.pooling !== void 0 ? { pooling: config.pooling } : {}
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
|
-
|
|
30
|
-
//#region src/engine/extraction/embedding-vector-aggregation.ts
|
|
29
|
+
// src/engine/extraction/embedding-vector-aggregation.ts
|
|
31
30
|
/**
|
|
32
31
|
* Compute L2-normalized weighted average of Float32Array vectors.
|
|
33
32
|
* Weights are typically chunk char lengths so longer chunks contribute more.
|
|
@@ -52,8 +51,7 @@ function weightedAverageFloat32(vectors, weights, dim) {
|
|
|
52
51
|
if (norm > 0) for (let j = 0; j < dim; j++) acc[j] = (acc[j] ?? 0) / norm;
|
|
53
52
|
return Float32Array.from(acc);
|
|
54
53
|
}
|
|
55
|
-
|
|
56
|
-
//#region src/engine/shared/token-bound.ts
|
|
54
|
+
// src/engine/shared/token-bound.ts
|
|
57
55
|
/** @file token-bound.ts
|
|
58
56
|
* @purpose Cuts text to a token budget under any monotonic token counter.
|
|
59
57
|
* @boundary Pure text function; the caller supplies the counter.
|
|
@@ -80,8 +78,7 @@ function truncateToTokens(text, maxTokens, countTokens) {
|
|
|
80
78
|
}
|
|
81
79
|
return codePoints.slice(0, low).join("").trimEnd();
|
|
82
80
|
}
|
|
83
|
-
|
|
84
|
-
//#region src/engine/extraction/embedding-provider-client.ts
|
|
81
|
+
// src/engine/extraction/embedding-provider-client.ts
|
|
85
82
|
/** @file embedding-provider-client.ts
|
|
86
83
|
* @purpose Adapts embedding providers to the plugin retrieval and storage contract.
|
|
87
84
|
* @boundary Local ONNX embeddings, chunk sizing, and vector dimensions.
|
|
@@ -309,5 +306,4 @@ var Embedder = class {
|
|
|
309
306
|
function createEmbedder(config, stateDir) {
|
|
310
307
|
return new Embedder(config, stateDir);
|
|
311
308
|
}
|
|
312
|
-
//#endregion
|
|
313
309
|
export { createEmbedder as n, Embedder as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/engine/reflection/entry-metadata-parser.ts
|
|
2
2
|
/** @file entry-metadata-parser.ts
|
|
3
3
|
* @purpose Defines metadata helpers for reflection provenance, severity, and grouping.
|
|
4
4
|
* @boundary Reflection item storage, retry handling, and reporting surfaces.
|
|
@@ -16,5 +16,4 @@ function parseReflectionMetadata(metadataRaw) {
|
|
|
16
16
|
return {};
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
//#endregion
|
|
20
19
|
export { parseReflectionMetadata as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/contract/error.ts
|
|
2
2
|
const DEGRADED_REASONS = [
|
|
3
3
|
"sidecar-unreachable",
|
|
4
4
|
"sidecar-unresponsive",
|
|
@@ -19,5 +19,4 @@ var ContractError = class extends Error {
|
|
|
19
19
|
this.name = "ContractError";
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
|
-
//#endregion
|
|
23
22
|
export { DEGRADED_REASONS as n, ContractError as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./internal/config/index.js";
|
|
2
2
|
import { redactSecrets } from "./internal/engine/security/redact.js";
|
|
3
3
|
import { createHash } from "node:crypto";
|
|
4
|
-
|
|
4
|
+
// src/engine/security/error-signals.ts
|
|
5
5
|
/** @file error-signals.ts
|
|
6
6
|
* @purpose Classifies error-like text patterns used by capture and retrieval heuristics.
|
|
7
7
|
* @boundary Multilingual runtime regexes and operational signal extraction.
|
|
@@ -130,5 +130,4 @@ function createErrorSignalTracker(options = {}) {
|
|
|
130
130
|
}
|
|
131
131
|
};
|
|
132
132
|
}
|
|
133
|
-
//#endregion
|
|
134
133
|
export { sha256Hex as a, normalizeErrorSignature as i, createErrorSignalTracker as n, summarizeErrorText as o, extractTextFromToolResult as r, containsErrorSignal as t };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/engine/security/error-signals.d.ts
|
|
2
1
|
type ReflectionErrorSignal = {
|
|
3
2
|
at: number;
|
|
4
3
|
toolName: string;
|
|
@@ -24,5 +23,4 @@ declare function createErrorSignalTracker(options?: CreateErrorSignalTrackerOpti
|
|
|
24
23
|
clearSession: (sessionKey: string) => void;
|
|
25
24
|
prune: (ttlMs: number, maxSessions: number) => void;
|
|
26
25
|
};
|
|
27
|
-
//#endregion
|
|
28
26
|
export { createErrorSignalTracker as n, ReflectionErrorSignal as t };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/engine/shared/errors.d.ts
|
|
2
1
|
/** @file errors.ts
|
|
3
2
|
* @purpose Defines typed plugin errors and stable codes for callers and CLI output.
|
|
4
3
|
* @boundary Runtime boundaries, CLI error mapping, and test assertions.
|
|
@@ -45,5 +44,4 @@ declare class ConfigError extends SnoStationMemError {
|
|
|
45
44
|
*/
|
|
46
45
|
constructor(message: string, cause?: unknown);
|
|
47
46
|
}
|
|
48
|
-
//#endregion
|
|
49
47
|
export { StorageError as a, SnoStationMemError as i, EmbeddingError as n, RetrievalError as r, ConfigError as t };
|
package/dist/{extraction-text-sanitizer-B_AhIecT.d.ts → extraction-text-sanitizer-D_7Ogceg.d.ts}
RENAMED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/engine/extraction/extraction-text-sanitizer.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Keeps a section's clause list inside `DEFAULT_MAX_CONTEXT_TOKENS`, the repository-wide
|
|
4
3
|
* per-record ceiling the store refuses to write past.
|
|
@@ -28,5 +27,4 @@ declare function buildIndexedText(abstract: string, content: string): string;
|
|
|
28
27
|
* conversation text reaches the extraction LLM.
|
|
29
28
|
*/
|
|
30
29
|
declare function stripEnvelopeMetadata(text: string): string;
|
|
31
|
-
//#endregion
|
|
32
30
|
export { buildIndexedText as n, stripEnvelopeMetadata as r, boundSectionContent as t };
|