@snoai/memory 1.2.9 → 1.2.11
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 +4 -4
- package/dist/{access-tracker-D1e-2-Bb.d.ts → access-tracker-BOPHSJjf.d.ts} +4 -4
- package/dist/{adapter-TCrv5P-C.d.ts → adapter-lyb6RaQE.d.ts} +2 -2
- package/dist/{atomic-memory-extraction-C0n0wHzt.d.ts → atomic-memory-extraction-B_XpkhMd.d.ts} +7 -5
- package/dist/{atomic-memory-extraction-BG42OXou.js → atomic-memory-extraction-o2v8mp7G.js} +109 -50
- package/dist/{b-profile-section-dictionary-provider-y3DMQ518.d.ts → b-profile-section-dictionary-provider-BK5NBs-y.d.ts} +1 -1
- package/dist/{capture-policy-detector-BY7v5Cq1.d.ts → capture-policy-detector-BvVGmxxX.d.ts} +1 -1
- package/dist/{classifier-DnbbtwTS.d.ts → classifier-CXQxJJPP.d.ts} +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/{coding-skin-_Qu3INZD.js → coding-skin-azRXA51Z.js} +2 -1
- package/dist/coding-skin.d.ts +1 -0
- package/dist/coding-skin.js +2 -2
- package/dist/{config-BCZRhUvW.js → config-C7LzSWhG.js} +9 -4
- package/dist/{connection-C9YD5sgm.js → connection-PQcq3TPO.js} +1 -1
- package/dist/{derived-suppression-cache-BLAH0nB9.d.ts → derived-suppression-cache-Ckwjey7I.d.ts} +1 -1
- package/dist/diagnostic-encoder.js +1 -1
- package/dist/{index-dQMkc_6y.d.ts → index-CsPUNkcm.d.ts} +2 -2
- package/dist/{index-BO4RU_mc.d.ts → index-DPfJrOFD.d.ts} +1 -1
- package/dist/{index-DL8AVj0Z.d.ts → index-Pb9LrHgL.d.ts} +4 -5
- package/dist/index.d.ts +12 -9
- package/dist/index.js +106 -51
- package/dist/internal/config/index.d.ts +1 -1
- package/dist/internal/config/index.js +4 -5
- package/dist/internal/config/plugin-config-schema.d.ts +1 -1
- package/dist/internal/config/plugin-config-schema.js +1 -1
- package/dist/internal/config/product-mode.d.ts +1 -1
- package/dist/internal/config/settings.d.ts +1 -1
- package/dist/internal/config/settings.js +4 -4
- package/dist/internal/config/skin-defaults.d.ts +1 -1
- package/dist/internal/contract/profile.d.ts +1 -1
- package/dist/internal/contract/routes.d.ts +1 -1
- package/dist/internal/engine/bindings/memory-cli-shared.d.ts +4 -4
- package/dist/internal/engine/bindings/memory-forget-tool.js +1 -1
- package/dist/internal/engine/bindings/memory-list-tool.js +1 -1
- package/dist/internal/engine/bindings/memory-recall-tool.js +2 -2
- package/dist/internal/engine/bindings/memory-reflection-resolve-tool.js +1 -1
- package/dist/internal/engine/bindings/memory-stats-tool.js +2 -2
- package/dist/internal/engine/bindings/memory-store-tool.js +4 -4
- package/dist/internal/engine/bindings/memory-tool-access.d.ts +1 -1
- package/dist/internal/engine/bindings/memory-tool-access.js +1 -1
- package/dist/internal/engine/bindings/memory-tool-results.d.ts +1 -1
- package/dist/internal/engine/bindings/memory-tool-results.js +1 -1
- package/dist/internal/engine/bindings/memory-tool-schemas.d.ts +5 -5
- package/dist/internal/engine/bindings/memory-tool-schemas.js +1 -1
- package/dist/internal/engine/bindings/memory-update-tool.js +3 -3
- package/dist/internal/engine/bindings/sno-station-mem-ambient-learning-hook.d.ts +4 -4
- package/dist/internal/engine/bindings/sno-station-mem-ambient-learning-hook.js +4 -4
- package/dist/internal/engine/bindings/sno-station-mem-auto-recall-hook.d.ts +4 -4
- package/dist/internal/engine/bindings/sno-station-mem-auto-recall-hook.js +3 -3
- package/dist/internal/engine/bindings/sno-station-mem-insight-distill-factory.d.ts +6 -6
- package/dist/internal/engine/bindings/sno-station-mem-insight-distill-factory.js +7 -5
- package/dist/internal/engine/bindings/sno-station-mem-message-transcript.js +2 -2
- package/dist/internal/engine/bindings/sno-station-mem-reset-hook.d.ts +3 -3
- package/dist/internal/engine/bindings/sno-station-mem-runtime-mode.d.ts +1 -1
- package/dist/internal/engine/bindings/sno-station-mem-runtime-mode.js +3 -3
- package/dist/internal/engine/extraction/atomic-memory-extraction.d.ts +1 -1
- package/dist/internal/engine/extraction/atomic-memory-extraction.js +1 -1
- package/dist/internal/engine/extraction/b-profile-section-dictionary-provider.d.ts +1 -1
- package/dist/internal/engine/extraction/b-profile-section-rekey.d.ts +5 -5
- package/dist/internal/engine/extraction/capture-policy-detector.d.ts +1 -1
- package/dist/internal/engine/extraction/memory-metadata-codec.d.ts +2 -2
- package/dist/internal/engine/extraction/memory-temporality-classifier.d.ts +1 -1
- package/dist/internal/engine/extraction/memory-temporality-classifier.js +1 -1
- package/dist/internal/engine/observability/adapter.d.ts +1 -1
- package/dist/internal/engine/observability/memory-snapshot.d.ts +1 -1
- package/dist/internal/engine/observability/observable-embedder.d.ts +1 -1
- package/dist/internal/engine/observability/observable-llm-client.d.ts +1 -1
- package/dist/internal/engine/observability/observable-llm-client.js +0 -2
- package/dist/internal/engine/observability/observable-memory-store.d.ts +1 -1
- package/dist/internal/engine/observability/observable-memory-store.js +2 -2
- package/dist/internal/engine/observability/observable-retriever.d.ts +1 -1
- package/dist/internal/engine/observability/observable-retriever.js +2 -2
- package/dist/internal/engine/observability/runtime-diagnostics.d.ts +1 -1
- package/dist/internal/engine/observability/runtime-diagnostics.js +3 -3
- package/dist/internal/engine/operations/daily-spend-estimator.js +1 -1
- package/dist/internal/engine/operations/memory-tier-promoter.d.ts +1 -1
- package/dist/internal/engine/operations/runtime-audit-log.d.ts +3 -3
- package/dist/internal/engine/operations/runtime-audit-log.js +2 -2
- package/dist/internal/engine/provider/provider-registration.d.ts +4 -4
- package/dist/internal/engine/provider/provider-row-renderer.d.ts +1 -1
- package/dist/internal/engine/reflection/reflection-command-hooks.d.ts +1 -1
- package/dist/internal/engine/reflection/reflection-command-hooks.js +1 -1
- 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 -1
- package/dist/internal/engine/reflection/reflection-injection-hooks.d.ts +1 -1
- package/dist/internal/engine/reflection/reflection-injection-hooks.js +1 -1
- package/dist/internal/engine/reflection/reflection-lifecycle-hooks.d.ts +1 -1
- package/dist/internal/engine/reflection/reflection-lifecycle-hooks.js +1 -1
- 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/index.d.ts +2 -2
- package/dist/internal/engine/rem/index.js +9 -7
- package/dist/internal/engine/retrieval/access-tracker.d.ts +1 -1
- package/dist/internal/engine/retrieval/retriever.d.ts +1 -1
- package/dist/internal/engine/retrieval/retriever.js +1 -1
- package/dist/internal/engine/security/memory-scope-policy.js +1 -1
- package/dist/internal/engine/security/scopes.js +2 -2
- package/dist/internal/engine/shared/memory-kind-policy.d.ts +1 -1
- package/dist/internal/engine/shared/paths.d.ts +2 -2
- package/dist/internal/engine/shared/types.d.ts +2 -2
- package/dist/internal/engine/shared/types.js +1 -1
- package/dist/internal/engine/shared/utils.d.ts +1 -1
- package/dist/internal/engine/shared/utils.js +2 -3
- package/dist/internal/engine/telemetry/memory-telemetry-api.js +2 -2
- package/dist/internal/engine/telemetry/observe-ledger.d.ts +1 -1
- package/dist/internal/engine/telemetry/observe-ledger.js +46 -19
- package/dist/internal/model/llm-client.d.ts +2 -2
- package/dist/internal/model/llm-client.js +1 -1
- package/dist/internal/model/llm-mode-routing.d.ts +1 -1
- package/dist/internal/model/llm-mode-routing.js +1 -1
- package/dist/internal/store/atomic-memory-cutover-sql.js +1 -1
- package/dist/internal/store/connection.js +1 -1
- package/dist/internal/store/maintenance.d.ts +2 -2
- package/dist/internal/store/maintenance.js +444 -40
- package/dist/internal/store/memory-kinds-cutover-migrator.js +1 -1
- package/dist/internal/store/migrations.js +1 -1
- package/dist/internal/store/store.d.ts +2 -2
- package/dist/internal/store/store.js +1 -1
- package/dist/{llm-client-RqmOEQkg.d.ts → llm-client-BTaUVmDe.d.ts} +1 -1
- package/dist/{llm-client-fVrzPcyz.js → llm-client-ConEyQEs.js} +51 -12
- package/dist/{log-site-catalog.generated-By86ZBRB.js → log-site-catalog.generated-Dzgj9o5c.js} +230 -195
- package/dist/log-site-catalog.json +1 -1
- package/dist/{memory-kind-policy-BOGb8thm.d.ts → memory-kind-policy-ClQEXeOL.d.ts} +1 -1
- package/dist/{memory-metadata-codec-DcSqjbWR.d.ts → memory-metadata-codec-wVAuoKrG.d.ts} +1 -1
- package/dist/{memory-runtime-CbuNkL0G.js → memory-runtime-C8ZIW2WL.js} +495 -304
- package/dist/{memory-scope-policy-DICSCURA.js → memory-scope-policy--TiLZnrE.js} +2 -2
- package/dist/{memory-snapshot-C5BnJ2rO.d.ts → memory-snapshot-uTdxJnIh.d.ts} +2 -2
- package/dist/{memory-store-base-z593oJ4h.d.ts → memory-store-base-Bk2dOKED.d.ts} +5 -6
- package/dist/{memory-store-shared-DqpWJXZZ.js → memory-store-shared-CURizQIy.js} +1 -1
- package/dist/{memory-telemetry-receipts-YsxbwOAf.js → memory-telemetry-receipts-cjIQGwdp.js} +5 -1
- package/dist/{memory-temporality-classifier-SzlUCgTj.d.ts → memory-temporality-classifier-CcxfHYoT.d.ts} +1 -1
- package/dist/{memory-temporality-classifier-CeSOL2vq.js → memory-temporality-classifier-MBJyJdvB.js} +2 -2
- package/dist/{memory-tier-promoter-Z7jprFB7.d.ts → memory-tier-promoter-MkZPQ8u1.d.ts} +1 -1
- package/dist/memory-tool-dependencies-CWnD5mia.d.ts +14 -0
- package/dist/{memory-tool-dependencies-CnaGABQG.js → memory-tool-dependencies-DUMY8SwB.js} +3 -3
- package/dist/{model-call-table-BZJQkbKX.js → model-call-table-BE97f37s.js} +6 -1
- package/dist/{observable-embedder-DjhGxHx2.d.ts → observable-embedder-CGr3Zejf.d.ts} +1 -1
- package/dist/{observable-llm-client-CLJLMmwA.d.ts → observable-llm-client-CXUA7Gi3.d.ts} +3 -3
- package/dist/{observable-memory-store-B48HV2NK.d.ts → observable-memory-store-BwwKcUzf.d.ts} +4 -4
- package/dist/{observable-retriever-CAdHncKh.d.ts → observable-retriever-bJbG9WtJ.d.ts} +5 -5
- package/dist/paths-DmmPxD_v.d.ts +1 -0
- package/dist/{plugin-config-schema-VBSPGEG3.d.ts → plugin-config-schema-BrhMvnXJ.d.ts} +3 -1
- package/dist/{plugin-config-schema-hIfZTELX.js → plugin-config-schema-Di-uKTP0.js} +1 -1
- package/dist/{profile-CQNCtVIu.d.ts → profile-CF5oDjR7.d.ts} +1 -1
- package/dist/{profile-section-writer-joJEIYhF.js → profile-section-writer-CmNa95uN.js} +3 -3
- package/dist/{reflection-command-hooks-Cl0ShtbF.d.ts → reflection-command-hooks-CM2mWb69.d.ts} +4 -4
- package/dist/{reflection-command-hooks-CG8n1GNK.js → reflection-command-hooks-CnTj8cKL.js} +3 -3
- package/dist/{reflection-deps-B0_cPBZt.d.ts → reflection-deps-B5I0nYZS.d.ts} +2 -2
- package/dist/{reflection-embedded-generator-C5kA0T0v.d.ts → reflection-embedded-generator-CogQIBcG.d.ts} +3 -3
- package/dist/{reflection-embedded-generator-D342_5o_.js → reflection-embedded-generator-DR525Moy.js} +1 -1
- package/dist/{reflection-injection-hooks-CtgcjLGx.d.ts → reflection-injection-hooks-BnbfZqpj.d.ts} +4 -4
- package/dist/{reflection-lifecycle-hooks-Pd7P9wya.d.ts → reflection-lifecycle-hooks-DMDhtidj.d.ts} +3 -3
- package/dist/{rem-batch-executor-ryxxkzQp.js → rem-batch-executor-DbV8Y-B-.js} +1 -1
- package/dist/{rem-consumer-retrieval-CR0dtcHR.js → rem-consumer-retrieval-CDMSCJYI.js} +2 -1
- package/dist/{rem-trigger-Dz_Jrr9p.js → rem-trigger-BSrGyG0s.js} +1666 -1010
- package/dist/{retriever-BXQmJMh0.js → retriever-Bzz6H8Mn.js} +2 -2
- package/dist/{retriever-DQdyGlkr.d.ts → retriever-DyxY59Lg.d.ts} +10 -8
- package/dist/{runtime-audit-log-BCeujlEp.js → runtime-audit-log-DK6xAYxh.js} +103 -2
- package/dist/{runtime-audit-log-Bn3JLBPj.d.ts → runtime-audit-log-DdhLlTxi.d.ts} +4 -2
- package/dist/{scopes-CSOn6zdd.js → scopes-a4Kly9n7.js} +1 -1
- package/dist/{server-DFLEPkQA.js → server-CjwHZY1P.js} +17 -320
- package/dist/sidecar/main.js +11 -4
- package/dist/sno-station-mem-runtime-dependencies-BZjUo6Jr.d.ts +31 -0
- package/dist/{sno-station-mem-runtime-dependencies-CY-XDHxU.js → sno-station-mem-runtime-dependencies-DlvM6mL7.js} +9 -9
- package/dist/{store-DKndKig1.d.ts → store-BDIAl2cc.d.ts} +1 -1
- package/dist/{store-CUk-jEGA.js → store-BQxkgJTX.js} +31 -23
- package/dist/{strategy-hook-runner-BSk_o6Yt.d.ts → strategy-hook-runner-DT9emgCZ.d.ts} +7 -7
- package/dist/{strategy-hook-runner-CWApiUZW.js → strategy-hook-runner-SvyyGBXw.js} +1 -1
- package/dist/{types-Del9J7UB.d.ts → types-Ae3a8562.d.ts} +1 -1
- package/dist/{utils-Ctb9aevJ.d.ts → utils-CDw2ttQf.d.ts} +2 -3
- package/package.json +2 -2
- package/settings.default.json +4 -4
- package/dist/memory-tool-dependencies-CJNppsKh.d.ts +0 -14
- package/dist/paths-D3dEsoE4.d.ts +0 -1
- package/dist/sno-station-mem-runtime-dependencies-8CRIkARK.d.ts +0 -31
- package/dist/{unplaced-candidate-migration-CbQHzcEM.js → unplaced-candidate-migration-BCcdQkcx.js} +1 -1
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import "./types-Ae3a8562.js";
|
|
2
|
+
import "./index-Pb9LrHgL.js";
|
|
3
|
+
import "./adapter-lyb6RaQE.js";
|
|
4
|
+
import "./embedding-provider-client-vynZMuit.js";
|
|
5
|
+
import "./retriever-DyxY59Lg.js";
|
|
6
|
+
import "./connection-3IVXpuPE.js";
|
|
7
|
+
import "./sqlite-runtime-L_ywirTm.js";
|
|
8
|
+
import "./store-BDIAl2cc.js";
|
|
9
|
+
import "./access-tracker-BOPHSJjf.js";
|
|
10
|
+
import "./memory-tier-promoter-MkZPQ8u1.js";
|
|
11
|
+
import "./capture-policy-detector-BvVGmxxX.js";
|
|
12
|
+
import "./memory-temporality-classifier-CcxfHYoT.js";
|
|
13
|
+
import "./runtime-audit-log-DdhLlTxi.js";
|
|
14
|
+
import "./atomic-memory-extraction-B_XpkhMd.js";
|
|
15
|
+
import "./llm-client-BTaUVmDe.js";
|
|
16
|
+
import "./memory-snapshot-uTdxJnIh.js";
|
|
17
|
+
import "./observable-embedder-CGr3Zejf.js";
|
|
18
|
+
import "./observable-llm-client-CXUA7Gi3.js";
|
|
19
|
+
import "./observable-memory-store-BwwKcUzf.js";
|
|
20
|
+
import "./observable-retriever-bJbG9WtJ.js";
|
|
21
|
+
import "./reflection-embedded-generator-CogQIBcG.js";
|
|
22
|
+
import "./strategy-hook-runner-DT9emgCZ.js";
|
|
23
|
+
import "./data-bootstrap-Bl3lthzE.js";
|
|
24
|
+
import "@snoai/sqlite-crypto";
|
|
25
|
+
//#region src/engine/bindings/sno-station-mem-runtime-dependencies.d.ts
|
|
26
|
+
/** Legacy parameters carry only an unused logger slot; no host operations are exposed. */
|
|
27
|
+
type SnoStationMemPluginApi = {
|
|
28
|
+
logger: unknown;
|
|
29
|
+
};
|
|
30
|
+
//#endregion
|
|
31
|
+
export { SnoStationMemPluginApi as t };
|
|
@@ -3,15 +3,15 @@ import "./internal/engine/i18n/locales.js";
|
|
|
3
3
|
import "./internal/engine/shared/types.js";
|
|
4
4
|
import "./internal/engine/security/redact.js";
|
|
5
5
|
import "./internal/engine/shared/utils.js";
|
|
6
|
-
import "./
|
|
6
|
+
import "./runtime-audit-log-DK6xAYxh.js";
|
|
7
|
+
import "./llm-client-ConEyQEs.js";
|
|
7
8
|
import "./capture-policy-detector-DaMfy9CZ.js";
|
|
8
9
|
import "./ambient-learning-text-normalizer-CxjATmMp.js";
|
|
9
|
-
import "./memory-temporality-classifier-
|
|
10
|
-
import "./
|
|
11
|
-
import "./
|
|
12
|
-
import "./atomic-memory-extraction-BG42OXou.js";
|
|
10
|
+
import "./memory-temporality-classifier-MBJyJdvB.js";
|
|
11
|
+
import "./scopes-a4Kly9n7.js";
|
|
12
|
+
import "./atomic-memory-extraction-o2v8mp7G.js";
|
|
13
13
|
import "./internal/store/sqlite-runtime.js";
|
|
14
|
-
import "./connection-
|
|
14
|
+
import "./connection-PQcq3TPO.js";
|
|
15
15
|
import "./internal/store/data-paths.js";
|
|
16
16
|
import "./adapter-CG-UbOjU.js";
|
|
17
17
|
import "./internal/engine/observability/memory-snapshot.js";
|
|
@@ -19,12 +19,12 @@ import "./internal/engine/observability/observable-embedder.js";
|
|
|
19
19
|
import "./internal/engine/observability/observable-llm-client.js";
|
|
20
20
|
import "./internal/engine/observability/observable-memory-store.js";
|
|
21
21
|
import "./internal/engine/retrieval/access-tracker.js";
|
|
22
|
-
import "./retriever-
|
|
22
|
+
import "./retriever-Bzz6H8Mn.js";
|
|
23
23
|
import "./internal/engine/observability/observable-retriever.js";
|
|
24
24
|
import "./internal/engine/observability/session-registry.js";
|
|
25
25
|
import "./daily-log-generator-CH_KuWHs.js";
|
|
26
|
-
import "./reflection-embedded-generator-
|
|
27
|
-
import "./strategy-hook-runner-
|
|
26
|
+
import "./reflection-embedded-generator-DR525Moy.js";
|
|
27
|
+
import "./strategy-hook-runner-SvyyGBXw.js";
|
|
28
28
|
import "./data-bootstrap-P8sie9WA.js";
|
|
29
29
|
import "@snoai/sqlite-crypto";
|
|
30
30
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./embedding-provider-client-vynZMuit.js";
|
|
2
|
-
import { B as TaskLifecycleMigrationManifest, H as TaskLifecycleMigrationSourceRow, a as AtomicExtractionRepairStrategy, c as AtomicExtractionRunParameters, n as AtomicExtractionLedgerEntry, o as AtomicExtractionReprocessBounds, s as AtomicExtractionReprocessReason, x as MemoryRelationPredicate, z as TaskLifecycleMigrationCensusRow } from "./memory-store-base-
|
|
2
|
+
import { B as TaskLifecycleMigrationManifest, H as TaskLifecycleMigrationSourceRow, a as AtomicExtractionRepairStrategy, c as AtomicExtractionRunParameters, n as AtomicExtractionLedgerEntry, o as AtomicExtractionReprocessBounds, s as AtomicExtractionReprocessReason, x as MemoryRelationPredicate, z as TaskLifecycleMigrationCensusRow } from "./memory-store-base-Bk2dOKED.js";
|
|
3
3
|
import { a as StorageError } from "./errors-CeVRxf9V.js";
|
|
4
4
|
import "./sqlite-runtime-L_ywirTm.js";
|
|
5
5
|
//#region src/store/memory-store-relation-api.d.ts
|
|
@@ -7,16 +7,16 @@ import { redactSecrets } from "./internal/engine/security/redact.js";
|
|
|
7
7
|
import { normalizeForCompare, tokenizeForFts } from "./internal/engine/shared/i18n-text.js";
|
|
8
8
|
import { bytesToF32, clamp01, clampInt, f32ToBytes, sanitizeFtsConjunctiveQuery, sanitizeFtsQuery, stableHash } from "./internal/engine/shared/utils.js";
|
|
9
9
|
import { t as checkMemoryOperation } from "./operation-cancellation-CTKWwNHk.js";
|
|
10
|
-
import "./
|
|
11
|
-
import "./memory-temporality-classifier-CeSOL2vq.js";
|
|
12
|
-
import { l as runWithMemoryAudit } from "./runtime-audit-log-BCeujlEp.js";
|
|
10
|
+
import { u as runWithMemoryAudit } from "./runtime-audit-log-DK6xAYxh.js";
|
|
13
11
|
import { getSnoStationMemStateDir } from "./internal/contract/profile.js";
|
|
12
|
+
import "./internal/engine/extraction/extraction-text-sanitizer.js";
|
|
13
|
+
import "./memory-temporality-classifier-MBJyJdvB.js";
|
|
14
14
|
import { a as readMemorySourceOrder, i as readCorrectionMoment, n as compareMemoryRetirementOrder, o as readMemorySourceOrderOrOldest, r as compareMemorySourceOrder, s as sameSourceTurn, t as closeMemoryRow } from "./memory-source-order-YMRoeDLd.js";
|
|
15
15
|
import { REM_UPDATE_LOCALES, deriveRemWriteIdentity, getRemUpdateLocaleResource, writeRemTwoFacetTransaction } from "./internal/engine/rem/index.js";
|
|
16
16
|
import { n as state_vocabulary_default, r as attribute_dictionary_default, t as relations } from "./relation-dictionary-Cev1kyLe.js";
|
|
17
|
-
import { _ as shouldDropSummary, a as Mutex, c as buildChunkId, d as expandSnippetWindow, f as extractMetadataHeader, g as randomUUID$1, h as log$3, i as JSON_ID_BATCH_SIZE, l as buildDensePayload, m as headExtract, o as aggregateChunksToMemories, p as hashInputForEntry, r as CHUNK_BACKFILL_RETRY_BASE_MS, s as assertMetadataOnlyUpdatePreservesHashInput, t as CHUNKING_VERSION, u as chunk, v as withStoreWriteOutcome } from "./memory-store-shared-
|
|
18
|
-
import { r as initDb } from "./connection-
|
|
19
|
-
import { n as loadMemoryTelemetryKeySet, t as createMemoryTelemetryReceiptService } from "./memory-telemetry-receipts-
|
|
17
|
+
import { _ as shouldDropSummary, a as Mutex, c as buildChunkId, d as expandSnippetWindow, f as extractMetadataHeader, g as randomUUID$1, h as log$3, i as JSON_ID_BATCH_SIZE, l as buildDensePayload, m as headExtract, o as aggregateChunksToMemories, p as hashInputForEntry, r as CHUNK_BACKFILL_RETRY_BASE_MS, s as assertMetadataOnlyUpdatePreservesHashInput, t as CHUNKING_VERSION, u as chunk, v as withStoreWriteOutcome } from "./memory-store-shared-CURizQIy.js";
|
|
18
|
+
import { r as initDb } from "./connection-PQcq3TPO.js";
|
|
19
|
+
import { n as loadMemoryTelemetryKeySet, t as createMemoryTelemetryReceiptService } from "./memory-telemetry-receipts-cjIQGwdp.js";
|
|
20
20
|
import { MEMORY_TELEMETRY_DELETE_REASONS } from "./internal/engine/telemetry/memory-telemetry-types.js";
|
|
21
21
|
import { t as validateMemoryTelemetryMetadata } from "./memory-telemetry-metadata-CA7W8tK6.js";
|
|
22
22
|
import { a as validateStoreWriteMetadata, i as validateAtomicCardWrite, n as hostTimezone, r as recordTokenCounter, s as buildActiveTaskProjection, t as assertRecordWithinTokenCeiling } from "./memory-store-write-validation-B_hDG2zf.js";
|
|
@@ -61,28 +61,40 @@ var MemoryTelemetryEventWriter = class {
|
|
|
61
61
|
historicKeys: options.config?.historicKeys ?? [],
|
|
62
62
|
currentKeyVersion: options.config?.currentKeyVersion
|
|
63
63
|
});
|
|
64
|
-
this.receiptService = options.config?.receiptService ?? createMemoryTelemetryReceiptService(keySet);
|
|
64
|
+
this.receiptService = options.config?.receiptService ?? (keySet.current ? createMemoryTelemetryReceiptService(keySet) : null);
|
|
65
65
|
} catch (error) {
|
|
66
|
-
log$2.warn("memory telemetry
|
|
67
|
-
event_name: "
|
|
66
|
+
log$2.warn("memory telemetry signing unavailable; recording unsigned events", { error }, {
|
|
67
|
+
event_name: "memory.telemetry.signing.unavailable",
|
|
68
68
|
file: "packages/memory/src/engine/telemetry/memory-telemetry-events.ts",
|
|
69
69
|
function: "<anonymous callback>",
|
|
70
70
|
site_id: "memory-telemetry-events.<anonymous callback>.23cfef2d08"
|
|
71
71
|
});
|
|
72
|
-
this.enabled = false;
|
|
73
72
|
this.receiptService = null;
|
|
74
73
|
}
|
|
75
74
|
}
|
|
76
75
|
writeReceiptEvent(input) {
|
|
77
76
|
if (!this.enabled) return;
|
|
78
77
|
const timestampMs = input.timestampMs ?? Date.now();
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
78
|
+
let receipt;
|
|
79
|
+
try {
|
|
80
|
+
receipt = this.receiptService?.sign({
|
|
81
|
+
factId: input.factId,
|
|
82
|
+
contentHash: input.contentHash,
|
|
83
|
+
timestampMs
|
|
84
|
+
});
|
|
85
|
+
} catch (error) {
|
|
86
|
+
log$2.warn("memory telemetry signing failed; recording unsigned event", { error }, {
|
|
87
|
+
event_name: "memory.telemetry.signing.failed",
|
|
88
|
+
file: "packages/memory/src/engine/telemetry/memory-telemetry-events.ts",
|
|
89
|
+
function: "writeReceiptEvent",
|
|
90
|
+
site_id: "memory.telemetry.signing.failed"
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
const metadata = validateMemoryTelemetryMetadata(input.eventType, {
|
|
94
|
+
...input.metadata,
|
|
95
|
+
...input.eventType === "create" ? { receipt_status: receipt ? "signed" : "unsigned" } : {}
|
|
83
96
|
});
|
|
84
|
-
|
|
85
|
-
this.insertReceiptEventStatement.run(input.eventType, input.factId, input.memoryKind, timestampMs, this.agentId, input.projectId, input.sourceEventId ?? null, input.derivedFrom ? JSON.stringify(input.derivedFrom) : null, receipt.contentHash, receipt.receiptHmac, receipt.keyVersion, JSON.stringify(metadata));
|
|
97
|
+
this.insertReceiptEventStatement.run(input.eventType, input.factId, input.memoryKind, timestampMs, this.agentId, input.projectId, input.sourceEventId ?? null, input.derivedFrom ? JSON.stringify(input.derivedFrom) : null, input.contentHash, receipt?.receiptHmac ?? null, receipt?.keyVersion ?? null, JSON.stringify(metadata));
|
|
86
98
|
}
|
|
87
99
|
writeLifecycleEvent(input) {
|
|
88
100
|
if (!this.enabled) return;
|
|
@@ -94,10 +106,6 @@ var MemoryTelemetryEventWriter = class {
|
|
|
94
106
|
if (!this.enabled) return null;
|
|
95
107
|
return this.readLatestReceiptEventIdStatement.get(factId)?.id ?? null;
|
|
96
108
|
}
|
|
97
|
-
requireReceiptService() {
|
|
98
|
-
if (!this.receiptService) throw new Error("memory telemetry receipt service is unavailable");
|
|
99
|
-
return this.receiptService;
|
|
100
|
-
}
|
|
101
109
|
};
|
|
102
110
|
//#endregion
|
|
103
111
|
//#region src/store/rem-update-stamp-migration.ts
|
|
@@ -1387,7 +1395,7 @@ async function readAtomicArrivalRetirementCandidateSet(store, input) {
|
|
|
1387
1395
|
};
|
|
1388
1396
|
const scoreById = scoreCandidatesBySimilarity(store, await store.embedder.embed(nominatedRow.text), candidates.map(({ id }) => id));
|
|
1389
1397
|
const ranked = candidates.sort((left, right) => (scoreById.get(right.id) ?? Number.NEGATIVE_INFINITY) - (scoreById.get(left.id) ?? Number.NEGATIVE_INFINITY) || left.id.localeCompare(right.id));
|
|
1390
|
-
if (ranked.length >
|
|
1398
|
+
if (ranked.length > 3) appendArrivalRetirementJournal(store, {
|
|
1391
1399
|
jobId: input.jobId,
|
|
1392
1400
|
nominatedRowId: nominatedRow.id,
|
|
1393
1401
|
outcome: "no-action",
|
|
@@ -1395,12 +1403,12 @@ async function readAtomicArrivalRetirementCandidateSet(store, input) {
|
|
|
1395
1403
|
actionsApplied: 0,
|
|
1396
1404
|
detail: {
|
|
1397
1405
|
nominatedRowId: nominatedRow.id,
|
|
1398
|
-
omittedCount: ranked.length -
|
|
1406
|
+
omittedCount: ranked.length - 3
|
|
1399
1407
|
}
|
|
1400
1408
|
});
|
|
1401
1409
|
return {
|
|
1402
1410
|
nominatedRow: judgedRow(nominatedRow),
|
|
1403
|
-
candidateRows: ranked.slice(0,
|
|
1411
|
+
candidateRows: ranked.slice(0, 3).map(judgedRow)
|
|
1404
1412
|
};
|
|
1405
1413
|
}
|
|
1406
1414
|
function journalAtomicArrivalRetirementRefusal(store, input) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as PluginConfig } from "./plugin-config-schema-
|
|
2
|
-
import "./types-
|
|
3
|
-
import "./reflection-embedded-generator-
|
|
4
|
-
import { t as ReflectionLifecycleParams } from "./reflection-lifecycle-hooks-
|
|
5
|
-
import { t as ReflectionInjectionParams } from "./reflection-injection-hooks-
|
|
6
|
-
import { t as ReflectionDeps } from "./reflection-deps-
|
|
7
|
-
import { t as ReflectionCommandParams } from "./reflection-command-hooks-
|
|
1
|
+
import { t as PluginConfig } from "./plugin-config-schema-BrhMvnXJ.js";
|
|
2
|
+
import "./types-Ae3a8562.js";
|
|
3
|
+
import "./reflection-embedded-generator-CogQIBcG.js";
|
|
4
|
+
import { t as ReflectionLifecycleParams } from "./reflection-lifecycle-hooks-DMDhtidj.js";
|
|
5
|
+
import { t as ReflectionInjectionParams } from "./reflection-injection-hooks-BnbfZqpj.js";
|
|
6
|
+
import { t as ReflectionDeps } from "./reflection-deps-B5I0nYZS.js";
|
|
7
|
+
import { t as ReflectionCommandParams } from "./reflection-command-hooks-CM2mWb69.js";
|
|
8
8
|
//#region src/engine/reflection/strategy-hook-runner.d.ts
|
|
9
9
|
declare function createReflectionStrategyState(config: PluginConfig, deps: ReflectionDeps): ReflectionStrategyState;
|
|
10
10
|
type ReflectionStrategyState = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DEFAULT_REFLECTION_SESSION_TTL_MS } from "./internal/config/index.js";
|
|
2
2
|
import { setLruEntry, touchLruEntry } from "./internal/engine/shared/lru.js";
|
|
3
3
|
import { n as createErrorSignalTracker } from "./error-signals-lMH2uAdV.js";
|
|
4
|
-
import { i as pruneReflectionState } from "./reflection-embedded-generator-
|
|
4
|
+
import { i as pruneReflectionState } from "./reflection-embedded-generator-DR525Moy.js";
|
|
5
5
|
import { a as loadAgentReflectionSlicesFromEntries } from "./memory-entry-projector-DHo8jH10.js";
|
|
6
6
|
import { createLogger } from "@snoai/utils/logger";
|
|
7
7
|
//#region src/engine/reflection/reflection-slice-loader.ts
|
|
@@ -19,9 +19,8 @@ declare function bytesToF32(bytes: Uint8Array): Float32Array;
|
|
|
19
19
|
declare function stableHash(text: string): string;
|
|
20
20
|
/**
|
|
21
21
|
* Return a short, secret-redacted, whitespace-collapsed preview of `text` for
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* in audit.jsonl on disk. Enable for bench investigations only.
|
|
22
|
+
* audit logs. Previews are enabled by default and pass through `redactSecrets`
|
|
23
|
+
* before they are persisted in audit.jsonl on disk.
|
|
25
24
|
*/
|
|
26
25
|
declare function debugContentPreview(text: string | undefined, enabled: boolean, maxChars?: number): string | undefined;
|
|
27
26
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@snoai/memory",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.11",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"publishConfig": { "access": "public" },
|
|
6
6
|
"repository": {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"directory": "packages/memory"
|
|
10
10
|
},
|
|
11
11
|
"type": "module",
|
|
12
|
-
"description": "One encrypted memory on your machine,
|
|
12
|
+
"description": "One encrypted memory on your machine, used by every agent you run. The engine behind Sno Station.",
|
|
13
13
|
"main": "./dist/index.js",
|
|
14
14
|
"types": "./dist/index.d.ts",
|
|
15
15
|
"exports": {
|
package/settings.default.json
CHANGED
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
},
|
|
14
14
|
"E3": {
|
|
15
15
|
"local-first": "off",
|
|
16
|
-
"agent-native": "
|
|
17
|
-
"rem-enhanced": "
|
|
16
|
+
"agent-native": "off",
|
|
17
|
+
"rem-enhanced": "off"
|
|
18
18
|
},
|
|
19
19
|
"E4": {
|
|
20
20
|
"local-first": "off",
|
|
@@ -226,7 +226,7 @@
|
|
|
226
226
|
},
|
|
227
227
|
"telemetry": {
|
|
228
228
|
"memoryUsage": {
|
|
229
|
-
"enabled":
|
|
229
|
+
"enabled": true,
|
|
230
230
|
"key": "",
|
|
231
231
|
"historicKeys": []
|
|
232
232
|
},
|
|
@@ -237,7 +237,7 @@
|
|
|
237
237
|
"redactionRules": []
|
|
238
238
|
},
|
|
239
239
|
"logging": {
|
|
240
|
-
"level": "
|
|
240
|
+
"level": "debug",
|
|
241
241
|
"file": "",
|
|
242
242
|
"debugContent": false
|
|
243
243
|
},
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import "./types-Del9J7UB.js";
|
|
2
|
-
import "./index-DL8AVj0Z.js";
|
|
3
|
-
import "./embedding-provider-client-vynZMuit.js";
|
|
4
|
-
import "./retriever-DQdyGlkr.js";
|
|
5
|
-
import "./memory-metadata-codec-DcSqjbWR.js";
|
|
6
|
-
import "./store-DKndKig1.js";
|
|
7
|
-
import "./capture-policy-detector-BY7v5Cq1.js";
|
|
8
|
-
import "./memory-temporality-classifier-SzlUCgTj.js";
|
|
9
|
-
import "./runtime-audit-log-Bn3JLBPj.js";
|
|
10
|
-
import { z as z$1 } from "zod";
|
|
11
|
-
import "@snoai/chunking";
|
|
12
|
-
import "@sinclair/typebox";
|
|
13
|
-
import "async-mutex";
|
|
14
|
-
export { z$1 as t };
|
package/dist/paths-D3dEsoE4.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./profile-CQNCtVIu.js";
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import "./types-Del9J7UB.js";
|
|
2
|
-
import "./index-DL8AVj0Z.js";
|
|
3
|
-
import "./adapter-TCrv5P-C.js";
|
|
4
|
-
import "./embedding-provider-client-vynZMuit.js";
|
|
5
|
-
import "./retriever-DQdyGlkr.js";
|
|
6
|
-
import "./connection-3IVXpuPE.js";
|
|
7
|
-
import "./sqlite-runtime-L_ywirTm.js";
|
|
8
|
-
import "./store-DKndKig1.js";
|
|
9
|
-
import "./access-tracker-D1e-2-Bb.js";
|
|
10
|
-
import "./memory-tier-promoter-Z7jprFB7.js";
|
|
11
|
-
import "./capture-policy-detector-BY7v5Cq1.js";
|
|
12
|
-
import "./memory-temporality-classifier-SzlUCgTj.js";
|
|
13
|
-
import "./runtime-audit-log-Bn3JLBPj.js";
|
|
14
|
-
import "./atomic-memory-extraction-C0n0wHzt.js";
|
|
15
|
-
import "./llm-client-RqmOEQkg.js";
|
|
16
|
-
import "./memory-snapshot-C5BnJ2rO.js";
|
|
17
|
-
import "./observable-embedder-DjhGxHx2.js";
|
|
18
|
-
import "./observable-llm-client-CLJLMmwA.js";
|
|
19
|
-
import "./observable-memory-store-B48HV2NK.js";
|
|
20
|
-
import "./observable-retriever-CAdHncKh.js";
|
|
21
|
-
import "./reflection-embedded-generator-C5kA0T0v.js";
|
|
22
|
-
import "./strategy-hook-runner-BSk_o6Yt.js";
|
|
23
|
-
import "./data-bootstrap-Bl3lthzE.js";
|
|
24
|
-
import "@snoai/sqlite-crypto";
|
|
25
|
-
//#region src/engine/bindings/sno-station-mem-runtime-dependencies.d.ts
|
|
26
|
-
/** Legacy parameters carry only an unused logger slot; no host operations are exposed. */
|
|
27
|
-
type SnoStationMemPluginApi = {
|
|
28
|
-
logger: unknown;
|
|
29
|
-
};
|
|
30
|
-
//#endregion
|
|
31
|
-
export { SnoStationMemPluginApi as t };
|
package/dist/{unplaced-candidate-migration-CbQHzcEM.js → unplaced-candidate-migration-BCcdQkcx.js}
RENAMED
|
@@ -7,8 +7,8 @@ import { createLogger } from "@snoai/utils/logger";
|
|
|
7
7
|
import { dirname, join, resolve } from "node:path";
|
|
8
8
|
import { randomUUID } from "node:crypto";
|
|
9
9
|
import { existsSync } from "node:fs";
|
|
10
|
-
import { fileURLToPath } from "node:url";
|
|
11
10
|
import { arch, platform } from "node:os";
|
|
11
|
+
import { fileURLToPath } from "node:url";
|
|
12
12
|
import { index, integer, primaryKey, real, sqliteTable, text } from "drizzle-orm/sqlite-core";
|
|
13
13
|
import { arch as arch$1, platform as platform$1 } from "node:process";
|
|
14
14
|
import { getLoadablePath } from "sqlite-vec";
|