@snoai/memory 1.5.1 → 1.7.0
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/{access-tracker-D-riPZRY.d.ts → access-tracker-CFxRg7Bt.d.ts} +4 -4
- package/dist/{adapter-BM58hult.d.ts → adapter-BFtbOOw3.d.ts} +2 -2
- package/dist/{atomic-extraction-reply-BJ9XV_9s.js → atomic-extraction-reply-DF_S9ROg.js} +6 -3
- package/dist/{atomic-memory-extraction-BNBCB1XD.d.ts → atomic-memory-extraction-Bp7AWZqi.d.ts} +4 -4
- package/dist/{atomic-memory-extraction-BaBrfESt.js → atomic-memory-extraction-pL1_58Kw.js} +45 -6
- package/dist/{b-profile-section-dictionary-provider-D2kzg9Re.d.ts → b-profile-section-dictionary-provider-Buj_M-QA.d.ts} +1 -1
- package/dist/{capture-policy-detector-CoT-j_Ic.d.ts → capture-policy-detector-3tDQkBi9.d.ts} +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/{coding-skin-azRXA51Z.js → coding-skin-AW1UPUPY.js} +9 -1
- package/dist/coding-skin.d.ts +8 -0
- package/dist/coding-skin.js +2 -2
- package/dist/{config-BhlMin82.js → config-BwUcq2zS.js} +61 -126
- package/dist/{derived-suppression-cache-BW52dq3w.d.ts → derived-suppression-cache-CcANI-p7.d.ts} +1 -1
- package/dist/diagnostic-encoder.js +1 -1
- package/dist/{index-BGu91bjB.d.ts → index-CJrMFlAU.d.ts} +12 -50
- package/dist/{index-GoYmsx8b.d.ts → index-Df9420Pl.d.ts} +2 -2
- package/dist/index.d.ts +9 -9
- package/dist/index.js +6 -6
- package/dist/internal/config/index.d.ts +2 -2
- package/dist/internal/config/index.js +13 -51
- 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 +17 -48
- 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 +1 -1
- package/dist/internal/engine/bindings/memory-reflection-resolve-tool.js +1 -1
- package/dist/internal/engine/bindings/memory-stats-tool.js +1 -1
- package/dist/internal/engine/bindings/memory-store-tool.js +3 -3
- 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 +2 -2
- 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 +3 -3
- 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 +1 -1
- package/dist/internal/engine/bindings/sno-station-mem-insight-distill-factory.d.ts +5 -5
- package/dist/internal/engine/bindings/sno-station-mem-insight-distill-factory.js +3 -2
- 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/eval/trace.js +3 -4
- 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-memory-store.d.ts +1 -1
- package/dist/internal/engine/observability/observable-memory-store.js +1 -1
- package/dist/internal/engine/observability/observable-retriever.d.ts +1 -1
- package/dist/internal/engine/observability/observable-retriever.js +1 -1
- 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/memory-tier-promoter.d.ts +1 -1
- package/dist/internal/engine/operations/runtime-audit-log.d.ts +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/retrieval/access-tracker.d.ts +1 -1
- package/dist/internal/engine/retrieval/retriever.d.ts +2 -2
- package/dist/internal/engine/retrieval/retriever.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/telemetry/observe-ledger.d.ts +1 -1
- 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/maintenance.d.ts +2 -2
- package/dist/internal/store/maintenance.js +4 -4
- package/dist/internal/store/store.d.ts +2 -2
- package/dist/internal/store/store.js +1 -1
- package/dist/{llm-client-Z_VkmTsW.js → llm-client-Dq9FZPdC.js} +43 -10
- package/dist/{llm-client-9XCsnmf0.d.ts → llm-client-nWW1o1F6.d.ts} +1 -1
- package/dist/{log-site-catalog.generated-lc-iJczN.js → log-site-catalog.generated-Wze-GrOG.js} +130 -200
- package/dist/log-site-catalog.json +1 -1
- package/dist/{memory-kind-policy-DcEvUTKl.d.ts → memory-kind-policy-BMebgugU.d.ts} +1 -1
- package/dist/{memory-metadata-codec-CLtCCf-b.d.ts → memory-metadata-codec-H8BniJM3.d.ts} +1 -1
- package/dist/{memory-runtime-De1T9jTv.js → memory-runtime-B4A1t5DO.js} +182 -207
- package/dist/{memory-snapshot-BXB2APN0.d.ts → memory-snapshot-CKnQovB5.d.ts} +2 -2
- package/dist/{memory-store-base-yOAD7Ff8.d.ts → memory-store-base-BHYXgsCq.d.ts} +3 -3
- package/dist/{memory-temporality-classifier-s7TjoKB-.js → memory-temporality-classifier-CHcnOT5T.js} +2 -2
- package/dist/{memory-temporality-classifier-BxmM3FOb.d.ts → memory-temporality-classifier-Wi6WWeAj.d.ts} +1 -1
- package/dist/{memory-tier-promoter-DjJwYB4w.d.ts → memory-tier-promoter-m60-RlAj.d.ts} +1 -1
- package/dist/{memory-tool-dependencies-C8JSCWCz.js → memory-tool-dependencies-CAVm0Sy4.js} +1 -1
- package/dist/memory-tool-dependencies-D2fOC-KL.d.ts +14 -0
- package/dist/{model-call-table-CPyQfBJ6.js → model-call-table-DjfbmUDl.js} +12 -7
- package/dist/{observable-embedder-DCtHXucw.d.ts → observable-embedder-0FwxJMhJ.d.ts} +1 -1
- package/dist/{observable-llm-client-DykY0exK.d.ts → observable-llm-client-DY7w1Fj1.d.ts} +3 -3
- package/dist/{observable-memory-store-ZBTjMAHj.d.ts → observable-memory-store-C25Q_hoW.d.ts} +4 -4
- package/dist/{observable-retriever-f8ENkQnP.d.ts → observable-retriever-Cs9Bwzq6.d.ts} +5 -5
- package/dist/paths-obFSsJv3.d.ts +1 -0
- package/dist/{plugin-config-schema-D9riSXDg.js → plugin-config-schema-D-IoHmis.js} +22 -43
- package/dist/{plugin-config-schema-CsKKIHq9.d.ts → plugin-config-schema-DQh5njrS.d.ts} +8 -10
- package/dist/{profile-CxdMGvxU.d.ts → profile-CcvVR6K8.d.ts} +1 -1
- package/dist/{profile-section-writer-B54r7JN1.js → profile-section-writer-3apndAJu.js} +2 -2
- package/dist/{reflection-command-hooks-a1kgC2cr.js → reflection-command-hooks-B9UENMGV.js} +4 -3
- package/dist/{reflection-command-hooks-_B_XZBIz.d.ts → reflection-command-hooks-BRLqVNCi.d.ts} +4 -4
- package/dist/{reflection-deps-DQBHeGYK.d.ts → reflection-deps-C0TJ-gpU.d.ts} +2 -2
- package/dist/{reflection-embedded-generator-LmZQqGER.d.ts → reflection-embedded-generator-Cs59hWYr.d.ts} +3 -3
- package/dist/{reflection-embedded-generator-DEuTWrBh.js → reflection-embedded-generator-Do_r_LbU.js} +2 -1
- package/dist/{reflection-injection-hooks-CTDCwu2_.d.ts → reflection-injection-hooks-Cy4bRemm.d.ts} +4 -4
- package/dist/{reflection-lifecycle-hooks-eFUc2mcd.d.ts → reflection-lifecycle-hooks-C-lf00DB.d.ts} +3 -3
- package/dist/{rem-batch-executor-D42YWCNg.js → rem-batch-executor-BUgNyYLv.js} +1 -1
- package/dist/{rem-trigger-BKr4Qmhn.js → rem-trigger-pg_cCp5U.js} +74 -437
- package/dist/{retriever-BsjtyINJ.d.ts → retriever-2RJYAvlD.d.ts} +10 -52
- package/dist/{retriever-CsBW6MZv.js → retriever-C54bXeDh.js} +30 -452
- package/dist/{runtime-audit-log-C-L0v2HU.d.ts → runtime-audit-log-D2Hqk_kl.d.ts} +1 -1
- package/dist/{server-BPOT66a_.js → server-CByyXSvp.js} +4 -4
- package/dist/sidecar/main.js +2 -2
- package/dist/sno-station-mem-runtime-dependencies-ByI3b-wB.d.ts +31 -0
- package/dist/{sno-station-mem-runtime-dependencies-DES7ZvMt.js → sno-station-mem-runtime-dependencies-CgNS1dIM.js} +6 -6
- package/dist/{store-CukgAPqu.d.ts → store-Bz0y76cJ.d.ts} +1 -1
- package/dist/{store-DRwqWMTh.js → store-DNgKOGWP.js} +1 -1
- package/dist/{strategy-hook-runner-s8dAEQ3P.js → strategy-hook-runner-Bg6rBY71.js} +1 -1
- package/dist/{strategy-hook-runner-BlJxjMjC.d.ts → strategy-hook-runner-vbrWiDbK.d.ts} +7 -7
- package/dist/{types-C9Hngi-p.d.ts → types-El7jViCz.d.ts} +1 -1
- package/package.json +1 -1
- package/settings.default.json +9 -10
- package/skills/extract-atomic-memory/SKILL.md +4 -3
- package/skills/extract-atomic-memory/references/capture.md +3 -2
- package/dist/memory-tool-dependencies-BsaSVzC8.d.ts +0 -14
- package/dist/paths-m8yncZgm.d.ts +0 -1
- package/dist/sno-station-mem-runtime-dependencies-B47DIcei.d.ts +0 -31
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as PluginConfig } from "./plugin-config-schema-
|
|
2
|
-
import "./types-
|
|
1
|
+
import { t as PluginConfig } from "./plugin-config-schema-DQh5njrS.js";
|
|
2
|
+
import "./types-El7jViCz.js";
|
|
3
3
|
import { r as SqliteDatabaseLike } from "./sqlite-runtime-L_ywirTm.js";
|
|
4
4
|
//#region src/engine/observability/memory-snapshot.d.ts
|
|
5
5
|
type SnapshotReason = "startup" | "session_end";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { _ as MemoryLane, b as MemoryTier, g as MemoryEntry, h as MemoryCategory, r as AggregationQuery, v as MemoryMetadata, y as MemorySearchResult } from "./types-
|
|
2
|
-
import "./index-
|
|
1
|
+
import { _ as MemoryLane, b as MemoryTier, g as MemoryEntry, h as MemoryCategory, r as AggregationQuery, v as MemoryMetadata, y as MemorySearchResult } from "./types-El7jViCz.js";
|
|
2
|
+
import "./index-CJrMFlAU.js";
|
|
3
3
|
import { t as Embedder } from "./embedding-provider-client-CELWtPgt.js";
|
|
4
4
|
import { K as RemFacetPolicy } from "./index-DPfJrOFD.js";
|
|
5
5
|
import { T as WriteTextVersionInput, h as RemMutationResult } from "./types-pVomjzqR.js";
|
|
6
6
|
import { a as StorageError } from "./errors-CeVRxf9V.js";
|
|
7
|
-
import { r as WriterAuthority } from "./memory-kind-policy-
|
|
7
|
+
import { r as WriterAuthority } from "./memory-kind-policy-BMebgugU.js";
|
|
8
8
|
import { t as DrizzleDB } from "./connection-D989FqGS.js";
|
|
9
9
|
import { r as SqliteDatabaseLike } from "./sqlite-runtime-L_ywirTm.js";
|
|
10
10
|
import { n as MemoryTelemetryKeySet, t as MemoryTelemetryReceiptService } from "./memory-telemetry-receipts-MAJecvXQ.js";
|
package/dist/{memory-temporality-classifier-s7TjoKB-.js → memory-temporality-classifier-CHcnOT5T.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isSupportedLocale } from "./internal/engine/i18n/locales.js";
|
|
2
2
|
import { parseIsoDateTimeMs } from "./internal/engine/shared/iso-date-time.js";
|
|
3
|
-
import { r as modelCallDestination } from "./model-call-table-
|
|
4
|
-
import { a as isTerminalLlmFailure } from "./llm-client-
|
|
3
|
+
import { r as modelCallDestination } from "./model-call-table-DjfbmUDl.js";
|
|
4
|
+
import { a as isTerminalLlmFailure } from "./llm-client-Dq9FZPdC.js";
|
|
5
5
|
import { n as readModelReplyJson } from "./model-reply-text-CKopStP2.js";
|
|
6
6
|
import { n as RESOURCES_BY_LOCALE } from "./all-resources-BQK2ugjB.js";
|
|
7
7
|
import { a as sessionZoneCarriedBy, n as calendarInstructionSchema, r as calendarSessionTimestamp, t as calculateCalendarTime } from "./calendar-instruction-CzqZbAPG.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as MemoryCategory, w as InsightMetadata } from "./types-
|
|
1
|
+
import { h as MemoryCategory, w as InsightMetadata } from "./types-El7jViCz.js";
|
|
2
2
|
//#region src/engine/extraction/memory-temporality-classifier.d.ts
|
|
3
3
|
type TemporalType = "static" | "dynamic";
|
|
4
4
|
type TemporalResolutionStatus = "resolved" | "unresolved" | "static";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as MemoryTier, l as DecayScore } from "./types-
|
|
1
|
+
import { b as MemoryTier, l as DecayScore } from "./types-El7jViCz.js";
|
|
2
2
|
//#region src/engine/operations/memory-tier-promoter.d.ts
|
|
3
3
|
interface TierConfig {
|
|
4
4
|
/** Minimum access count for Core promotion (default: 10) */
|
|
@@ -8,7 +8,7 @@ import "./runtime-audit-log-DK6xAYxh.js";
|
|
|
8
8
|
import "./all-resources-BQK2ugjB.js";
|
|
9
9
|
import "./capture-policy-detector-DaMfy9CZ.js";
|
|
10
10
|
import "./internal/engine/extraction/extraction-text-sanitizer.js";
|
|
11
|
-
import "./memory-temporality-classifier-
|
|
11
|
+
import "./memory-temporality-classifier-CHcnOT5T.js";
|
|
12
12
|
import "./internal/engine/operations/daily-spend-estimator.js";
|
|
13
13
|
import "./internal/engine/operations/learning-file-maintenance.js";
|
|
14
14
|
import "./scopes-a4Kly9n7.js";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import "./types-El7jViCz.js";
|
|
2
|
+
import "./index-CJrMFlAU.js";
|
|
3
|
+
import "./embedding-provider-client-CELWtPgt.js";
|
|
4
|
+
import "./retriever-2RJYAvlD.js";
|
|
5
|
+
import "./memory-metadata-codec-H8BniJM3.js";
|
|
6
|
+
import "./store-Bz0y76cJ.js";
|
|
7
|
+
import "./capture-policy-detector-3tDQkBi9.js";
|
|
8
|
+
import "./memory-temporality-classifier-Wi6WWeAj.js";
|
|
9
|
+
import "./runtime-audit-log-D2Hqk_kl.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 };
|
|
@@ -5,6 +5,11 @@ const extract = {
|
|
|
5
5
|
"agent-native": "host",
|
|
6
6
|
"rem-enhanced": "sno-gpu"
|
|
7
7
|
};
|
|
8
|
+
const extractHost = {
|
|
9
|
+
"local-first": "off",
|
|
10
|
+
"agent-native": "host",
|
|
11
|
+
"rem-enhanced": "host"
|
|
12
|
+
};
|
|
8
13
|
const host = {
|
|
9
14
|
"local-first": "off",
|
|
10
15
|
"agent-native": "host",
|
|
@@ -54,7 +59,7 @@ const MODEL_CALLS = {
|
|
|
54
59
|
E2: {
|
|
55
60
|
description: "fact enrichment",
|
|
56
61
|
occasion: "memoryExtract",
|
|
57
|
-
destinations:
|
|
62
|
+
destinations: extractHost,
|
|
58
63
|
snoPreset: chat,
|
|
59
64
|
transport: {
|
|
60
65
|
host: "agent-host-seam",
|
|
@@ -90,7 +95,7 @@ const MODEL_CALLS = {
|
|
|
90
95
|
E4: {
|
|
91
96
|
description: "compound record split",
|
|
92
97
|
occasion: "memoryExtract",
|
|
93
|
-
destinations:
|
|
98
|
+
destinations: extractHost,
|
|
94
99
|
snoPreset: chat,
|
|
95
100
|
transport: {
|
|
96
101
|
host: "agent-host-seam",
|
|
@@ -108,7 +113,7 @@ const MODEL_CALLS = {
|
|
|
108
113
|
E5: {
|
|
109
114
|
description: "missing half recovery",
|
|
110
115
|
occasion: "memoryExtract",
|
|
111
|
-
destinations:
|
|
116
|
+
destinations: extractHost,
|
|
112
117
|
snoPreset: chat,
|
|
113
118
|
transport: {
|
|
114
119
|
host: "agent-host-seam",
|
|
@@ -126,7 +131,7 @@ const MODEL_CALLS = {
|
|
|
126
131
|
E6: {
|
|
127
132
|
description: "subject check",
|
|
128
133
|
occasion: "memoryExtract",
|
|
129
|
-
destinations:
|
|
134
|
+
destinations: extractHost,
|
|
130
135
|
snoPreset: chat,
|
|
131
136
|
transport: {
|
|
132
137
|
host: "agent-host-seam",
|
|
@@ -144,7 +149,7 @@ const MODEL_CALLS = {
|
|
|
144
149
|
E7: {
|
|
145
150
|
description: "unresolved subject recovery",
|
|
146
151
|
occasion: "memoryExtract",
|
|
147
|
-
destinations:
|
|
152
|
+
destinations: extractHost,
|
|
148
153
|
snoPreset: chat,
|
|
149
154
|
transport: {
|
|
150
155
|
host: "agent-host-seam",
|
|
@@ -162,7 +167,7 @@ const MODEL_CALLS = {
|
|
|
162
167
|
E8: {
|
|
163
168
|
description: "same entity judgment",
|
|
164
169
|
occasion: "memoryExtract",
|
|
165
|
-
destinations:
|
|
170
|
+
destinations: extractHost,
|
|
166
171
|
snoPreset: chat,
|
|
167
172
|
transport: {
|
|
168
173
|
host: "agent-host-seam",
|
|
@@ -234,7 +239,7 @@ const MODEL_CALLS = {
|
|
|
234
239
|
E12: {
|
|
235
240
|
description: "background state keying",
|
|
236
241
|
occasion: "memoryExtract",
|
|
237
|
-
destinations:
|
|
242
|
+
destinations: extractHost,
|
|
238
243
|
snoPreset: chat,
|
|
239
244
|
transport: {
|
|
240
245
|
host: "agent-host-seam",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as PluginObservability } from "./adapter-
|
|
1
|
+
import { n as PluginObservability } from "./adapter-BFtbOOw3.js";
|
|
2
2
|
import { r as EmbeddingConfig, t as Embedder } from "./embedding-provider-client-CELWtPgt.js";
|
|
3
3
|
//#region src/engine/observability/observable-embedder.d.ts
|
|
4
4
|
type SessionUuidProvider = () => string | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as LlmClientConfig, r as LlmClient, s as MemoryLlmRequest } from "./plugin-config-schema-
|
|
2
|
-
import { n as PluginObservability } from "./adapter-
|
|
3
|
-
import "./llm-client-
|
|
1
|
+
import { i as LlmClientConfig, r as LlmClient, s as MemoryLlmRequest } from "./plugin-config-schema-DQh5njrS.js";
|
|
2
|
+
import { n as PluginObservability } from "./adapter-BFtbOOw3.js";
|
|
3
|
+
import "./llm-client-nWW1o1F6.js";
|
|
4
4
|
//#region src/engine/observability/observable-llm-client.d.ts
|
|
5
5
|
type SessionUuidProvider = () => string | undefined;
|
|
6
6
|
declare class ObservableLlmClient implements LlmClient {
|
package/dist/{observable-memory-store-ZBTjMAHj.d.ts → observable-memory-store-C25Q_hoW.d.ts}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { b as MemoryTier, g as MemoryEntry, v as MemoryMetadata, y as MemorySearchResult } from "./types-
|
|
2
|
-
import { n as PluginObservability } from "./adapter-
|
|
1
|
+
import { b as MemoryTier, g as MemoryEntry, v as MemoryMetadata, y as MemorySearchResult } from "./types-El7jViCz.js";
|
|
2
|
+
import { n as PluginObservability } from "./adapter-BFtbOOw3.js";
|
|
3
3
|
import { r as EmbeddingConfig } from "./embedding-provider-client-CELWtPgt.js";
|
|
4
|
-
import { C as MemoryStore, F as TaskLifecycleBatchWriteResult, M as SupersedeClose, N as SupersedePreserveExisting, P as TaskLifecycleBatchWriteInput, at as ListOptions, dt as RecordUnplacedCandidateResult, f as AtomicExtractionWriteResult, ft as SearchOptions, gt as StoreResult, ht as StoreInput, j as SupersedeActiveFactGuard, mt as StoreConfig, ot as MemoryRow, rt as ChunkSearchResult, u as AtomicExtractionWriteInput, ut as RecordUnplacedCandidateInput, w as MemoryStoreInternals, yt as UpdateChanges } from "./memory-store-base-
|
|
5
|
-
import "./store-
|
|
4
|
+
import { C as MemoryStore, F as TaskLifecycleBatchWriteResult, M as SupersedeClose, N as SupersedePreserveExisting, P as TaskLifecycleBatchWriteInput, at as ListOptions, dt as RecordUnplacedCandidateResult, f as AtomicExtractionWriteResult, ft as SearchOptions, gt as StoreResult, ht as StoreInput, j as SupersedeActiveFactGuard, mt as StoreConfig, ot as MemoryRow, rt as ChunkSearchResult, u as AtomicExtractionWriteInput, ut as RecordUnplacedCandidateInput, w as MemoryStoreInternals, yt as UpdateChanges } from "./memory-store-base-BHYXgsCq.js";
|
|
5
|
+
import "./store-Bz0y76cJ.js";
|
|
6
6
|
//#region src/engine/observability/observable-memory-store.d.ts
|
|
7
7
|
type SessionUuidProvider = () => string | undefined;
|
|
8
8
|
declare class ObservableMemoryStore extends MemoryStore {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { x as RetrievalResult } from "./types-
|
|
2
|
-
import { n as PluginObservability } from "./adapter-
|
|
1
|
+
import { x as RetrievalResult } from "./types-El7jViCz.js";
|
|
2
|
+
import { n as PluginObservability } from "./adapter-BFtbOOw3.js";
|
|
3
3
|
import { r as EmbeddingConfig, t as Embedder } from "./embedding-provider-client-CELWtPgt.js";
|
|
4
|
-
import {
|
|
5
|
-
import { C as MemoryStore } from "./memory-store-base-
|
|
6
|
-
import "./store-
|
|
4
|
+
import { c as RetrievalContext, s as RetrievalConfig, t as MemoryRetriever } from "./retriever-2RJYAvlD.js";
|
|
5
|
+
import { C as MemoryStore } from "./memory-store-base-BHYXgsCq.js";
|
|
6
|
+
import "./store-Bz0y76cJ.js";
|
|
7
7
|
//#region src/engine/observability/observable-retriever.d.ts
|
|
8
8
|
type SessionUuidProvider = () => string | undefined;
|
|
9
9
|
type RetrievalTraceResult = Awaited<ReturnType<MemoryRetriever["retrieveWithTrace"]>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./profile-CcvVR6K8.js";
|
|
@@ -93,6 +93,11 @@ const extractionConfigSchema = z.object({ llm: z.object({
|
|
|
93
93
|
baseURL: z.string().optional(),
|
|
94
94
|
/** Overrides provider-native env if set. */
|
|
95
95
|
apiKey: z.string().optional(),
|
|
96
|
+
usageClass: z.enum([
|
|
97
|
+
"product",
|
|
98
|
+
"research",
|
|
99
|
+
"ops"
|
|
100
|
+
]).optional(),
|
|
96
101
|
timeoutMs: z.number().int().min(1e3).max(3e5).default(3e4)
|
|
97
102
|
}).strict().prefault({}) }).strict().prefault({});
|
|
98
103
|
const memoryReflectionConfigSchema = z.object({
|
|
@@ -119,6 +124,19 @@ const memoryReflectionConfigSchema = z.object({
|
|
|
119
124
|
//#endregion
|
|
120
125
|
//#region config/plugin-config-retrieval-schema.ts
|
|
121
126
|
const log = createLogger("sno-station-mem:config:retrieval");
|
|
127
|
+
/** Published remote selections now run the existing local pipeline. */
|
|
128
|
+
const rerankModeSchema = z.preprocess((value) => {
|
|
129
|
+
if (value !== "cross-encoder") return value;
|
|
130
|
+
log.info("remote reranking retired; using the local reranker", { cause: "remote-rerank-retired" }, {
|
|
131
|
+
event_name: "memory.rerank.retired",
|
|
132
|
+
file: "packages/memory/config/plugin-config-retrieval-schema.ts",
|
|
133
|
+
function: "rerankModeSchema",
|
|
134
|
+
site_id: "memory.rerank.retired"
|
|
135
|
+
});
|
|
136
|
+
return "lightweight";
|
|
137
|
+
}, z.enum(["lightweight", "none"]));
|
|
138
|
+
/** Accept published wait settings, but use no more than the local search budget. */
|
|
139
|
+
const rerankTimeoutSchema = z.number().int().min(1e3).max(12e4).transform((value) => Math.min(value, DEFAULT_RERANK_TIMEOUT_MS));
|
|
122
140
|
const retrievalConfigSchema = z.object({
|
|
123
141
|
mode: z.enum(["precision-recall", "vector"]).default("precision-recall"),
|
|
124
142
|
/**
|
|
@@ -131,14 +149,9 @@ const retrievalConfigSchema = z.object({
|
|
|
131
149
|
vectorWeight: z.number().min(0).max(1).default(DEFAULT_VECTOR_WEIGHT),
|
|
132
150
|
bm25Weight: z.number().min(0).max(1).default(DEFAULT_BM25_WEIGHT),
|
|
133
151
|
minScore: z.number().min(0).max(1).default(0),
|
|
134
|
-
rerank:
|
|
135
|
-
"cross-encoder",
|
|
136
|
-
"lightweight",
|
|
137
|
-
"none"
|
|
138
|
-
]).default("lightweight"),
|
|
152
|
+
rerank: rerankModeSchema.default("lightweight"),
|
|
139
153
|
candidatePoolSize: z.number().int().min(10).max(2e3).default(64),
|
|
140
|
-
|
|
141
|
-
rerankTimeoutMs: z.number().int().min(1e3).max(12e4).default(DEFAULT_RERANK_TIMEOUT_MS),
|
|
154
|
+
rerankTimeoutMs: rerankTimeoutSchema.default(DEFAULT_RERANK_TIMEOUT_MS),
|
|
142
155
|
recencyHalfLifeDays: z.number().min(0).max(365).default(14),
|
|
143
156
|
recencyWeight: z.number().min(0).max(RECENCY_WEIGHT_MAX).default(RECENCY_WEIGHT),
|
|
144
157
|
/** Drop memories past their valid_until timestamp (default OFF — needs A/B eval) */
|
|
@@ -150,10 +163,6 @@ const retrievalConfigSchema = z.object({
|
|
|
150
163
|
lengthNormAnchor: z.number().int().min(0).max(5e3).default(0),
|
|
151
164
|
hardMinScore: z.number().min(0).max(1).default(0),
|
|
152
165
|
timeDecayHalfLifeDays: z.number().min(0).max(365).default(60),
|
|
153
|
-
/** Weight for fusion score in rerank blend */
|
|
154
|
-
rerankBlendVector: z.number().min(0).max(1).optional(),
|
|
155
|
-
/** Weight for cross-encoder score in rerank blend */
|
|
156
|
-
rerankBlendCross: z.number().min(0).max(1).optional(),
|
|
157
166
|
/** Fusion-score weight when rerank="lightweight" (local cosine blend) */
|
|
158
167
|
lightweightFusionWeight: z.number().min(0).max(1).optional(),
|
|
159
168
|
/** Cosine-score weight when rerank="lightweight" (local cosine blend) */
|
|
@@ -164,41 +173,11 @@ const retrievalConfigSchema = z.object({
|
|
|
164
173
|
timeDecayFloor: z.number().min(0).max(1).optional(),
|
|
165
174
|
/** Relevance vs diversity tradeoff (default: 0.7) */
|
|
166
175
|
mmrLambda: z.number().min(0).max(1).optional(),
|
|
167
|
-
/** Address of Sno's reranker (the Sno GPU address plus `/rerank`). */
|
|
168
|
-
rerankEndpoint: z.string().optional(),
|
|
169
|
-
/** Cap on candidates sent to Sno's reranker in total */
|
|
170
|
-
rerankMaxCandidates: z.number().int().min(1).max(2e3).optional(),
|
|
171
176
|
/** Scaling factor for access-based reinforcement (0 = disabled, default: 0.5) */
|
|
172
177
|
reinforcementFactor: z.number().min(0).max(5).default(.5),
|
|
173
178
|
/** Hard cap: effective half-life <= baseHalfLife * maxHalfLifeMultiplier (default: 3) */
|
|
174
179
|
maxHalfLifeMultiplier: z.number().min(1).max(10).default(3)
|
|
175
|
-
}).prefault({})
|
|
176
|
-
if (ret.rerank === "none") return ret;
|
|
177
|
-
if (ret.rerankEndpoint !== void 0) try {
|
|
178
|
-
new URL(ret.rerankEndpoint);
|
|
179
|
-
} catch {
|
|
180
|
-
ctx.addIssue({
|
|
181
|
-
code: z.ZodIssueCode.custom,
|
|
182
|
-
path: ["rerankEndpoint"],
|
|
183
|
-
message: `Invalid rerankEndpoint URL: "${ret.rerankEndpoint}"`
|
|
184
|
-
});
|
|
185
|
-
}
|
|
186
|
-
const rerankApiKey = ret.rerankApiKey;
|
|
187
|
-
if (ret.rerank === "cross-encoder" && !rerankApiKey?.trim()) {
|
|
188
|
-
log.error("memory.rerank.key.missing", { cause: "missing-rerank-key" }, {
|
|
189
|
-
event_name: "memory.rerank.key.missing",
|
|
190
|
-
file: "packages/memory/config/plugin-config-retrieval-schema.ts",
|
|
191
|
-
function: "retrievalConfigSchema",
|
|
192
|
-
site_id: "memory.rerank.key.missing"
|
|
193
|
-
});
|
|
194
|
-
ctx.addIssue({
|
|
195
|
-
code: z.ZodIssueCode.custom,
|
|
196
|
-
path: ["rerankApiKey"],
|
|
197
|
-
message: "retrieval.rerankApiKey is required for cross-encoder reranking"
|
|
198
|
-
});
|
|
199
|
-
}
|
|
200
|
-
return ret;
|
|
201
|
-
});
|
|
180
|
+
}).prefault({});
|
|
202
181
|
//#endregion
|
|
203
182
|
//#region config/plugin-config-schema.ts
|
|
204
183
|
const scopesConfigSchema = z.object({
|
|
@@ -293,4 +272,4 @@ const pluginConfigSchema = z.object({
|
|
|
293
272
|
}).strict().optional()
|
|
294
273
|
}).strict();
|
|
295
274
|
//#endregion
|
|
296
|
-
export {
|
|
275
|
+
export { extractionConfigSchema as a, sessionMemoryConfigSchema as c, retrievalConfigSchema as i, embeddingConfigSchema as l, rerankModeSchema as n, memoryReflectionConfigSchema as o, rerankTimeoutSchema as r, selfImprovementConfigSchema as s, pluginConfigSchema as t, SESSION_STRATEGIES as u };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { yn as recallLifecycleSchema } from "./index-CJrMFlAU.js";
|
|
2
2
|
import { n as Locale, r as SUPPORTED_LOCALES } from "./locales-JxGmkG6t.js";
|
|
3
3
|
import { c as FIXED_PROTOCOL_VALUE_72, i as FIXED_MEMORY_SNO_EXTRACT_PROFILE, l as PERSISTED_PROVIDER_SYSTEM, n as FIXED_MEMORY_SNO_CONFLICT_VERDICT, o as FIXED_PROTOCOL_VALUE_70, r as FIXED_MEMORY_SNO_EXTRACT_CHAT, s as FIXED_PROTOCOL_VALUE_71, t as FIXED_MEMORY_SNO_AI_EXTRACT } from "./signed-registry-constants-Bv0fgZ8Q.js";
|
|
4
4
|
import { n as AgentLlmPort } from "./agent-llm-port-BlFrD2ro.js";
|
|
@@ -49,9 +49,8 @@ type Settings = {
|
|
|
49
49
|
apiKey: string;
|
|
50
50
|
};
|
|
51
51
|
rerank: {
|
|
52
|
-
mode: "lightweight" | "
|
|
52
|
+
mode: "lightweight" | "none";
|
|
53
53
|
timeoutMs: number;
|
|
54
|
-
maxCandidates: number;
|
|
55
54
|
};
|
|
56
55
|
store: {
|
|
57
56
|
path: string;
|
|
@@ -119,7 +118,7 @@ type Settings = {
|
|
|
119
118
|
};
|
|
120
119
|
declare const settingsSchema: z.ZodType<Settings>;
|
|
121
120
|
declare function defaultSettings(): Settings;
|
|
122
|
-
declare function settingsToPluginConfig(settings: Settings): PluginConfig;
|
|
121
|
+
declare function settingsToPluginConfig(settings: Settings, usageClass?: ModelUsageClass): PluginConfig;
|
|
123
122
|
//#endregion
|
|
124
123
|
//#region config/plugin-config-mode-schema.d.ts
|
|
125
124
|
/**
|
|
@@ -185,6 +184,7 @@ declare const MODEL_CALLS: Record<ModelCallId, ModelCall> & Record<RsiModelCallI
|
|
|
185
184
|
declare const LLM_PRESETS: readonly [typeof FIXED_MEMORY_SNO_AI_EXTRACT, typeof FIXED_MEMORY_SNO_EXTRACT_CHAT, typeof FIXED_MEMORY_SNO_EXTRACT_PROFILE, typeof FIXED_MEMORY_SNO_CONFLICT_VERDICT];
|
|
186
185
|
type LlmPreset = (typeof LLM_PRESETS)[number];
|
|
187
186
|
type LlmProvider = "openai" | "openrouter" | "sno-gpu";
|
|
187
|
+
type ModelUsageClass = "product" | "research" | "ops";
|
|
188
188
|
type MemoryLlmRequest = {
|
|
189
189
|
prompt: string;
|
|
190
190
|
hostPrompt?: string;
|
|
@@ -221,6 +221,8 @@ interface LlmClientConfig {
|
|
|
221
221
|
timeoutMs?: number;
|
|
222
222
|
agentPort?: AgentLlmPort;
|
|
223
223
|
operationId?: string;
|
|
224
|
+
/** Optional diagnostic execution purpose; absent remains unknown. */
|
|
225
|
+
usageClass?: ModelUsageClass;
|
|
224
226
|
onTransportAttempt?: (attempt: {
|
|
225
227
|
callId: ModelCallId;
|
|
226
228
|
destination: "host" | "sno-gpu";
|
|
@@ -290,6 +292,7 @@ declare const extractionConfigSchema: z.ZodType<{
|
|
|
290
292
|
preset: (typeof LLM_PRESETS)[number];
|
|
291
293
|
baseURL?: string | undefined;
|
|
292
294
|
apiKey?: string | undefined;
|
|
295
|
+
usageClass?: ModelUsageClass | undefined;
|
|
293
296
|
timeoutMs: number;
|
|
294
297
|
};
|
|
295
298
|
}, unknown>;
|
|
@@ -320,9 +323,8 @@ declare const retrievalConfigSchema: z.ZodType<{
|
|
|
320
323
|
vectorWeight: number;
|
|
321
324
|
bm25Weight: number;
|
|
322
325
|
minScore: number;
|
|
323
|
-
rerank: "
|
|
326
|
+
rerank: "lightweight" | "none";
|
|
324
327
|
candidatePoolSize: number;
|
|
325
|
-
rerankApiKey?: string | undefined;
|
|
326
328
|
rerankTimeoutMs: number;
|
|
327
329
|
recencyHalfLifeDays: number;
|
|
328
330
|
recencyWeight: number;
|
|
@@ -333,15 +335,11 @@ declare const retrievalConfigSchema: z.ZodType<{
|
|
|
333
335
|
lengthNormAnchor: number;
|
|
334
336
|
hardMinScore: number;
|
|
335
337
|
timeDecayHalfLifeDays: number;
|
|
336
|
-
rerankBlendVector?: number | undefined;
|
|
337
|
-
rerankBlendCross?: number | undefined;
|
|
338
338
|
lightweightFusionWeight?: number | undefined;
|
|
339
339
|
lightweightCosineWeight?: number | undefined;
|
|
340
340
|
importanceWeightBase?: number | undefined;
|
|
341
341
|
timeDecayFloor?: number | undefined;
|
|
342
342
|
mmrLambda?: number | undefined;
|
|
343
|
-
rerankEndpoint?: string | undefined;
|
|
344
|
-
rerankMaxCandidates?: number | undefined;
|
|
345
343
|
reinforcementFactor: number;
|
|
346
344
|
maxHalfLifeMultiplier: number;
|
|
347
345
|
}, unknown>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as Settings } from "./plugin-config-schema-
|
|
1
|
+
import { b as Settings } from "./plugin-config-schema-DQh5njrS.js";
|
|
2
2
|
//#region src/contract/profile.d.ts
|
|
3
3
|
declare function getStateDir(defaultStateDir?: string): string;
|
|
4
4
|
declare function getSettingsPath(): string;
|
|
@@ -2,11 +2,11 @@ import { MAX_LIST_LIMIT } from "./internal/config/index.js";
|
|
|
2
2
|
import { SnoStationMemError, StorageError } from "./internal/engine/shared/errors.js";
|
|
3
3
|
import { a as buildInsightMetadata, c as stringifyInsightMetadata, h as deriveFactKey, s as parseInsightMetadata } from "./memory-metadata-codec-DL1sbJiN.js";
|
|
4
4
|
import { a as currentMutationAttemptId, f as runWithMutationAttempt } from "./runtime-audit-log-DK6xAYxh.js";
|
|
5
|
-
import { n as LlmClientTerminalError } from "./llm-client-
|
|
5
|
+
import { n as LlmClientTerminalError } from "./llm-client-Dq9FZPdC.js";
|
|
6
6
|
import { resolveLlmRoute } from "./internal/model/llm-mode-routing.js";
|
|
7
7
|
import { boundSectionContent, buildIndexedText } from "./internal/engine/extraction/extraction-text-sanitizer.js";
|
|
8
8
|
import { adapterAViewFromRecord, orderAdapterAPair, parseAdapterAChatVerdict, prospectiveProfileView, renderAdapterAChatPrompt, renderAdapterAPrompt } from "./internal/engine/rem/index.js";
|
|
9
|
-
import { S as StaleSupersedeTargetError, a as resolveTaskLifecycle, c as buildTaskLifecycleCommandClaim, i as findUniqueActiveTaskByDescription, l as resolveTaskLifecycleEffectiveTime, n as acceptsTaskLifecycleJudgment, o as taskLifecycleCandidateSetVersion, r as buildTaskLifecycleCandidateSet, s as admitTaskLifecycleAssertion, w as TaskLifecycleStaleResolutionError } from "./store-
|
|
9
|
+
import { S as StaleSupersedeTargetError, a as resolveTaskLifecycle, c as buildTaskLifecycleCommandClaim, i as findUniqueActiveTaskByDescription, l as resolveTaskLifecycleEffectiveTime, n as acceptsTaskLifecycleJudgment, o as taskLifecycleCandidateSetVersion, r as buildTaskLifecycleCandidateSet, s as admitTaskLifecycleAssertion, w as TaskLifecycleStaleResolutionError } from "./store-DNgKOGWP.js";
|
|
10
10
|
import { o as canonicalizeProfileSectionName, r as recordTokenCounter } from "./memory-store-write-validation-B_hDG2zf.js";
|
|
11
11
|
import { canExtractorWrite } from "./internal/engine/shared/memory-kind-policy.js";
|
|
12
12
|
import { resolveHookAgentId } from "./internal/engine/bindings/sno-station-mem-runtime-mode.js";
|
|
@@ -3,14 +3,14 @@ import { a as buildInsightMetadata, c as stringifyInsightMetadata } from "./memo
|
|
|
3
3
|
import { redactSecrets } from "./internal/engine/security/redact.js";
|
|
4
4
|
import { t as checkMemoryOperation } from "./operation-cancellation-QcwC4mDX.js";
|
|
5
5
|
import { setLruEntry } from "./internal/engine/shared/lru.js";
|
|
6
|
-
import { i as createLlmClient } from "./llm-client-
|
|
6
|
+
import { i as createLlmClient } from "./llm-client-Dq9FZPdC.js";
|
|
7
7
|
import { pickLlmRoutingConfig } from "./internal/model/llm-mode-routing.js";
|
|
8
8
|
import { appendSelfImprovementEntry } from "./internal/engine/operations/learning-file-maintenance.js";
|
|
9
9
|
import { getSnoStationMemDataDir } from "./internal/store/data-paths.js";
|
|
10
10
|
import { resolveHookAgentId } from "./internal/engine/bindings/sno-station-mem-runtime-mode.js";
|
|
11
|
-
import { n as createRetireByNameRunBudget, r as runProfileSectionUpdate } from "./profile-section-writer-
|
|
11
|
+
import { n as createRetireByNameRunBudget, r as runProfileSectionUpdate } from "./profile-section-writer-3apndAJu.js";
|
|
12
12
|
import { a as generateReflectionText, c as shouldSkipReflectionMessage, l as writeReflectionToFilesystem, s as readSessionConversationWithResetFallback, u as extractTextContent } from "./daily-log-generator-DEsiCs7o.js";
|
|
13
|
-
import { a as resolveWorkspaceDirFromEvent, f as setReflectionDerivedCacheEntry, l as isSessionBoundaryReflectionAction, n as createReflectionGenerator, o as DEFAULT_REFLECTION_BOUNDARY_DERIVED_SUPPRESSION_MS, t as DEFAULT_MEMORY_LLM_CONFIG, u as setReflectionDerivedSuppression } from "./reflection-embedded-generator-
|
|
13
|
+
import { a as resolveWorkspaceDirFromEvent, f as setReflectionDerivedCacheEntry, l as isSessionBoundaryReflectionAction, n as createReflectionGenerator, o as DEFAULT_REFLECTION_BOUNDARY_DERIVED_SUPPRESSION_MS, t as DEFAULT_MEMORY_LLM_CONFIG, u as setReflectionDerivedSuppression } from "./reflection-embedded-generator-Do_r_LbU.js";
|
|
14
14
|
import { i as buildReflectionMappedMetadata, n as createReflectionEventId, o as extractInjectableReflectionMappedMemoryItems, r as buildReflectionAntiPatternSignature, s as extractReflectionLearningGovernanceCandidates, t as storeReflectionEntries } from "./memory-entry-projector-B36Nwsi_.js";
|
|
15
15
|
import { createLogger, currentLogContext, privateLogReference, withLogContext } from "@snoai/utils/logger";
|
|
16
16
|
import { basename, join } from "node:path";
|
|
@@ -541,6 +541,7 @@ async function maybeStoreReflection(params, diagnostics) {
|
|
|
541
541
|
const llmCfg = params.config.extraction.llm ?? DEFAULT_MEMORY_LLM_CONFIG;
|
|
542
542
|
const mappedLlm = createLlmClient({
|
|
543
543
|
preset: llmCfg.preset,
|
|
544
|
+
usageClass: llmCfg.usageClass,
|
|
544
545
|
...llmCfg.apiKey ? { apiKey: llmCfg.apiKey } : {},
|
|
545
546
|
...llmCfg.baseURL ? { baseURL: llmCfg.baseURL } : {},
|
|
546
547
|
timeoutMs: llmCfg.timeoutMs,
|
package/dist/{reflection-command-hooks-_B_XZBIz.d.ts → reflection-command-hooks-BRLqVNCi.d.ts}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as PluginConfig } from "./plugin-config-schema-
|
|
2
|
-
import "./types-
|
|
1
|
+
import { t as PluginConfig } from "./plugin-config-schema-DQh5njrS.js";
|
|
2
|
+
import "./types-El7jViCz.js";
|
|
3
3
|
import { n as createErrorSignalTracker } from "./error-signals-D8_3vYu4.js";
|
|
4
|
-
import { n as ReflectionDerivedCache, t as ReflectionDerivedSuppressionCache } from "./derived-suppression-cache-
|
|
5
|
-
import { t as ReflectionDeps } from "./reflection-deps-
|
|
4
|
+
import { n as ReflectionDerivedCache, t as ReflectionDerivedSuppressionCache } from "./derived-suppression-cache-CcANI-p7.js";
|
|
5
|
+
import { t as ReflectionDeps } from "./reflection-deps-C0TJ-gpU.js";
|
|
6
6
|
//#region src/engine/reflection/reflection-command-hooks.d.ts
|
|
7
7
|
declare function createRunMemoryReflection(params: ReflectionCommandParams): (event: {
|
|
8
8
|
sessionKey: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as AgentLlmPort } from "./agent-llm-port-BlFrD2ro.js";
|
|
2
2
|
import { n as createEmbedder } from "./embedding-provider-client-CELWtPgt.js";
|
|
3
|
-
import { C as MemoryStore } from "./memory-store-base-
|
|
4
|
-
import "./store-
|
|
3
|
+
import { C as MemoryStore } from "./memory-store-base-BHYXgsCq.js";
|
|
4
|
+
import "./store-Bz0y76cJ.js";
|
|
5
5
|
import { r as MemoryTelemetryUsageOutbox } from "./memory-telemetry-outbox-ddTdImt7.js";
|
|
6
6
|
import { n as createScopePolicy } from "./memory-scope-policy-1gg5QlWZ.js";
|
|
7
7
|
//#region src/engine/reflection/reflection-deps.d.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as LlmRoutingConfig, t as PluginConfig } from "./plugin-config-schema-
|
|
2
|
-
import "./types-
|
|
1
|
+
import { p as LlmRoutingConfig, t as PluginConfig } from "./plugin-config-schema-DQh5njrS.js";
|
|
2
|
+
import "./types-El7jViCz.js";
|
|
3
3
|
import { n as AgentLlmPort } from "./agent-llm-port-BlFrD2ro.js";
|
|
4
4
|
import { n as ReflectionGenerator } from "./daily-log-generator-CsQPHl4A.js";
|
|
5
5
|
import { n as createErrorSignalTracker } from "./error-signals-D8_3vYu4.js";
|
|
6
|
-
import { n as ReflectionDerivedCache, t as ReflectionDerivedSuppressionCache } from "./derived-suppression-cache-
|
|
6
|
+
import { n as ReflectionDerivedCache, t as ReflectionDerivedSuppressionCache } from "./derived-suppression-cache-CcANI-p7.js";
|
|
7
7
|
//#region src/engine/reflection/reflection-embedded-generator.d.ts
|
|
8
8
|
declare const DEFAULT_MEMORY_LLM_CONFIG: NonNullable<PluginConfig["extraction"]["llm"]>;
|
|
9
9
|
declare function isInternalReflectionSessionKey(sessionKey: unknown): boolean;
|
package/dist/{reflection-embedded-generator-DEuTWrBh.js → reflection-embedded-generator-Do_r_LbU.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { X as FIXED_MEMORY_SNO_AI_EXTRACT } from "./signed-registry-constants-yq3DlG3B.js";
|
|
2
|
-
import { i as createLlmClient } from "./llm-client-
|
|
2
|
+
import { i as createLlmClient } from "./llm-client-Dq9FZPdC.js";
|
|
3
3
|
//#region src/engine/reflection/derived-line-cache.ts
|
|
4
4
|
/**
|
|
5
5
|
* Returns reflection derived cache entry from reflection cache keys state without side effects.
|
|
@@ -109,6 +109,7 @@ function createReflectionGenerator(llmConfig, routing, agentPort) {
|
|
|
109
109
|
if (!llmConfig) return null;
|
|
110
110
|
return createLlmClient({
|
|
111
111
|
preset: llmConfig.preset,
|
|
112
|
+
usageClass: llmConfig.usageClass,
|
|
112
113
|
...llmConfig.apiKey ? { apiKey: llmConfig.apiKey } : {},
|
|
113
114
|
...llmConfig.baseURL ? { baseURL: llmConfig.baseURL } : {},
|
|
114
115
|
timeoutMs,
|
package/dist/{reflection-injection-hooks-CTDCwu2_.d.ts → reflection-injection-hooks-Cy4bRemm.d.ts}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as PluginConfig } from "./plugin-config-schema-
|
|
2
|
-
import "./types-
|
|
3
|
-
import "./store-
|
|
1
|
+
import { t as PluginConfig } from "./plugin-config-schema-DQh5njrS.js";
|
|
2
|
+
import "./types-El7jViCz.js";
|
|
3
|
+
import "./store-Bz0y76cJ.js";
|
|
4
4
|
import { r as MemoryTelemetryUsageOutbox } from "./memory-telemetry-outbox-ddTdImt7.js";
|
|
5
5
|
import { n as createScopePolicy } from "./memory-scope-policy-1gg5QlWZ.js";
|
|
6
6
|
import { n as createErrorSignalTracker } from "./error-signals-D8_3vYu4.js";
|
|
7
|
-
import { n as ReflectionDerivedCache, r as LoadedReflectionSlices, t as ReflectionDerivedSuppressionCache } from "./derived-suppression-cache-
|
|
7
|
+
import { n as ReflectionDerivedCache, r as LoadedReflectionSlices, t as ReflectionDerivedSuppressionCache } from "./derived-suppression-cache-CcANI-p7.js";
|
|
8
8
|
//#region src/engine/reflection/reflection-slice-loader.d.ts
|
|
9
9
|
interface ReflectionSliceLoader {
|
|
10
10
|
loadAgentReflectionSlices: (agentId: string, projectIdFilter: string[]) => Promise<LoadedReflectionSlices>;
|
package/dist/{reflection-lifecycle-hooks-eFUc2mcd.d.ts → reflection-lifecycle-hooks-C-lf00DB.d.ts}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as PluginConfig } from "./plugin-config-schema-
|
|
2
|
-
import "./types-
|
|
1
|
+
import { t as PluginConfig } from "./plugin-config-schema-DQh5njrS.js";
|
|
2
|
+
import "./types-El7jViCz.js";
|
|
3
3
|
import { n as createErrorSignalTracker } from "./error-signals-D8_3vYu4.js";
|
|
4
|
-
import { n as ReflectionDerivedCache, t as ReflectionDerivedSuppressionCache } from "./derived-suppression-cache-
|
|
4
|
+
import { n as ReflectionDerivedCache, t as ReflectionDerivedSuppressionCache } from "./derived-suppression-cache-CcANI-p7.js";
|
|
5
5
|
//#region src/engine/reflection/reflection-lifecycle-hooks.d.ts
|
|
6
6
|
type ReflectionLifecycleParams = {
|
|
7
7
|
reflectionCfg: PluginConfig["memoryReflection"];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { c as runRemProductionOrderedWave } from "./rem-trigger-
|
|
1
|
+
import { c as runRemProductionOrderedWave } from "./rem-trigger-pg_cCp5U.js";
|
|
2
2
|
export { runRemProductionOrderedWave };
|