@snoai/memory 1.5.0 → 1.6.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-B1H2AJlH.d.ts → access-tracker-CFxRg7Bt.d.ts} +4 -4
- package/dist/{adapter-CgdVA88V.d.ts → adapter-BFtbOOw3.d.ts} +2 -2
- package/dist/{atomic-memory-extraction-DCMTQ0h-.d.ts → atomic-memory-extraction-Bp7AWZqi.d.ts} +4 -4
- package/dist/{atomic-memory-extraction-De86y7O-.js → atomic-memory-extraction-l65aofbl.js} +5 -5
- package/dist/{b-profile-section-dictionary-provider-DbqdRYMw.d.ts → b-profile-section-dictionary-provider-Buj_M-QA.d.ts} +1 -1
- package/dist/{capture-policy-detector-D4ziS7KF.d.ts → capture-policy-detector-3tDQkBi9.d.ts} +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/{config-DWeuetYo.js → config-CByvnX3d.js} +57 -135
- package/dist/{connection-PQcq3TPO.js → connection-BtK-3r-f.js} +1 -20
- package/dist/{connection-3IVXpuPE.d.ts → connection-D989FqGS.d.ts} +1 -17
- package/dist/{derived-suppression-cache-2xOq6XHX.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-PjHhlG6e.d.ts → index-Df9420Pl.d.ts} +2 -2
- package/dist/index.d.ts +9 -9
- package/dist/index.js +5 -5
- 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 +2 -2
- 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/atomic-memory-cutover-sql.js +1 -1
- package/dist/internal/store/connection.d.ts +2 -2
- package/dist/internal/store/connection.js +2 -2
- package/dist/internal/store/maintenance.d.ts +2 -2
- package/dist/internal/store/maintenance.js +5 -5
- package/dist/internal/store/memory-kinds-cutover-migrator.d.ts +0 -2
- package/dist/internal/store/memory-kinds-cutover-migrator.js +1 -10
- package/dist/internal/store/store.d.ts +2 -2
- package/dist/internal/store/store.js +1 -1
- package/dist/{llm-client-DDdUjYWS.js → llm-client-ByzZRemn.js} +8 -5
- package/dist/{llm-client-C-K7oyfu.d.ts → llm-client-nWW1o1F6.d.ts} +1 -1
- package/dist/{log-site-catalog.generated-Cn8rTa65.js → log-site-catalog.generated-DsvDgHJa.js} +101 -171
- package/dist/log-site-catalog.json +1 -1
- package/dist/{memory-entry-projector-DHo8jH10.js → memory-entry-projector-B36Nwsi_.js} +2 -1
- package/dist/{memory-kind-policy-DgPCjfY4.d.ts → memory-kind-policy-BMebgugU.d.ts} +1 -1
- package/dist/{memory-metadata-codec-CfP9JLVO.d.ts → memory-metadata-codec-H8BniJM3.d.ts} +1 -1
- package/dist/{memory-runtime-jQke2sBc.js → memory-runtime-DXr1VO1p.js} +110 -175
- package/dist/{memory-snapshot-B6a-6nJ7.d.ts → memory-snapshot-CKnQovB5.d.ts} +2 -2
- package/dist/{memory-store-base-upd9MuG6.d.ts → memory-store-base-BHYXgsCq.d.ts} +4 -4
- package/dist/{memory-store-shared-CURizQIy.js → memory-store-shared-pOb59ScU.js} +1 -1
- package/dist/{memory-temporality-classifier-BwBKEQbL.js → memory-temporality-classifier-Bauwnls7.js} +2 -2
- package/dist/{memory-temporality-classifier-DPk3_9Or.d.ts → memory-temporality-classifier-Wi6WWeAj.d.ts} +1 -1
- package/dist/{memory-tier-promoter-Cq23yveQ.d.ts → memory-tier-promoter-m60-RlAj.d.ts} +1 -1
- package/dist/{memory-tool-dependencies-aAr7Pkuj.js → memory-tool-dependencies-Cc4SJMtd.js} +1 -1
- package/dist/memory-tool-dependencies-D2fOC-KL.d.ts +14 -0
- package/dist/{model-call-table-DoIl2S0P.js → model-call-table-CPyQfBJ6.js} +7 -7
- package/dist/{observable-embedder-DihQuuQD.d.ts → observable-embedder-0FwxJMhJ.d.ts} +1 -1
- package/dist/{observable-llm-client-BglDBFN5.d.ts → observable-llm-client-DY7w1Fj1.d.ts} +3 -3
- package/dist/{observable-memory-store--n02Dre8.d.ts → observable-memory-store-C25Q_hoW.d.ts} +4 -4
- package/dist/{observable-retriever-CV6odifA.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-dV2_HgBo.d.ts → plugin-config-schema-DQh5njrS.d.ts} +9 -11
- package/dist/{profile-CoLKGobS.d.ts → profile-CcvVR6K8.d.ts} +1 -1
- package/dist/{profile-section-writer-Dd4FKpt5.js → profile-section-writer-CR-WWIoB.js} +2 -2
- package/dist/{reflection-command-hooks-Cfv836Wc.d.ts → reflection-command-hooks-BRLqVNCi.d.ts} +4 -4
- package/dist/{reflection-command-hooks-B2P4zDr6.js → reflection-command-hooks-Der9aX0e.js} +6 -4
- package/dist/{reflection-deps-DihlwQxE.d.ts → reflection-deps-C0TJ-gpU.d.ts} +2 -2
- package/dist/{reflection-embedded-generator-DV-NkeU-.js → reflection-embedded-generator-BEdDusPV.js} +2 -1
- package/dist/{reflection-embedded-generator-DCZaS6kz.d.ts → reflection-embedded-generator-Cs59hWYr.d.ts} +3 -3
- package/dist/{reflection-injection-hooks-BYxkrds6.d.ts → reflection-injection-hooks-Cy4bRemm.d.ts} +4 -4
- package/dist/{reflection-lifecycle-hooks-Bwq2y5pe.d.ts → reflection-lifecycle-hooks-C-lf00DB.d.ts} +3 -3
- package/dist/{rem-batch-executor-B_49KivZ.js → rem-batch-executor-DiU8hSGc.js} +1 -1
- package/dist/{rem-trigger-DL0MlLeo.js → rem-trigger-CBfyJVfh.js} +48 -432
- package/dist/{retriever-hTIkt3CJ.d.ts → retriever-2RJYAvlD.d.ts} +10 -52
- package/dist/{retriever-CsBW6MZv.js → retriever-C54bXeDh.js} +30 -452
- package/dist/{runtime-audit-log-eBrt_iPp.d.ts → runtime-audit-log-D2Hqk_kl.d.ts} +1 -1
- package/dist/{server-BnBzsvMF.js → server-BlbG5uOM.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-DrVDRAmf.js → sno-station-mem-runtime-dependencies-DsidkZi2.js} +7 -7
- package/dist/{store-COwW7mIh.js → store-Bja1tVFw.js} +3 -3
- package/dist/{store-DEG06TLb.d.ts → store-Bz0y76cJ.d.ts} +1 -1
- package/dist/{strategy-hook-runner-CALbWcys.js → strategy-hook-runner-F-ruiw48.js} +2 -2
- package/dist/{strategy-hook-runner-D1sRVThs.d.ts → strategy-hook-runner-vbrWiDbK.d.ts} +7 -7
- package/dist/{types-DBEwNYdR.d.ts → types-El7jViCz.d.ts} +1 -1
- package/package.json +1 -1
- package/settings.default.json +2 -3
- package/dist/memory-tool-dependencies-C9qgVGOn.d.ts +0 -14
- package/dist/paths-qJqwGcKl.d.ts +0 -1
- package/dist/sno-station-mem-runtime-dependencies-9L8WkMMV.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,11 +1,11 @@
|
|
|
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-
|
|
8
|
-
import { t as DrizzleDB } from "./connection-
|
|
7
|
+
import { r as WriterAuthority } from "./memory-kind-policy-BMebgugU.js";
|
|
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";
|
|
11
11
|
import { a as MemoryTelemetryMetadata, i as MemoryTelemetryEventType, r as MemoryTelemetryDeleteReason } from "./memory-telemetry-types-CufVmrCs.js";
|
|
@@ -2,7 +2,7 @@ import "./internal/config/index.js";
|
|
|
2
2
|
import { Ct as PERSISTED_CONTENT_HASH_V3, St as PERSISTED_CONTENT_HASH_V1 } from "./signed-registry-constants-yq3DlG3B.js";
|
|
3
3
|
import { StorageError } from "./internal/engine/shared/errors.js";
|
|
4
4
|
import "./internal/engine/shared/utils.js";
|
|
5
|
-
import "./connection-
|
|
5
|
+
import "./connection-BtK-3r-f.js";
|
|
6
6
|
import { CHUNKING_VERSION, aggregateChunksToMemories, buildChunkId, buildDensePayload, chunk as chunk$1, expandSnippetWindow, extractMetadataHeader, headExtract, shouldDropSummary } from "@snoai/chunking";
|
|
7
7
|
import { createLogger } from "@snoai/utils/logger";
|
|
8
8
|
import { randomUUID as randomUUID$1 } from "node:crypto";
|
package/dist/{memory-temporality-classifier-BwBKEQbL.js → memory-temporality-classifier-Bauwnls7.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-CPyQfBJ6.js";
|
|
4
|
+
import { a as isTerminalLlmFailure } from "./llm-client-ByzZRemn.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-Bauwnls7.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 };
|
|
@@ -394,13 +394,13 @@ const MODEL_CALLS = {
|
|
|
394
394
|
}
|
|
395
395
|
},
|
|
396
396
|
R2: {
|
|
397
|
-
description: "label local sessions before the
|
|
398
|
-
calledBy: "
|
|
397
|
+
description: "label local sessions before the Self Learning cloud upload",
|
|
398
|
+
calledBy: "Self Learning",
|
|
399
399
|
destinations: host
|
|
400
400
|
},
|
|
401
401
|
R3: {
|
|
402
|
-
description: "upload sessions nightly for
|
|
403
|
-
calledBy: "
|
|
402
|
+
description: "upload sessions nightly for Self Learning",
|
|
403
|
+
calledBy: "Self Learning",
|
|
404
404
|
destinations: {
|
|
405
405
|
"local-first": "off",
|
|
406
406
|
"agent-native": "sno-gpu",
|
|
@@ -409,7 +409,7 @@ const MODEL_CALLS = {
|
|
|
409
409
|
},
|
|
410
410
|
R4: {
|
|
411
411
|
description: "recall one relevant cloud experience on a session's first prompt",
|
|
412
|
-
calledBy: "
|
|
412
|
+
calledBy: "Self Learning",
|
|
413
413
|
destinations: {
|
|
414
414
|
"local-first": "off",
|
|
415
415
|
"agent-native": "sno-gpu",
|
|
@@ -417,8 +417,8 @@ const MODEL_CALLS = {
|
|
|
417
417
|
}
|
|
418
418
|
},
|
|
419
419
|
R5: {
|
|
420
|
-
description: "generate local lessons and skill reminders nightly",
|
|
421
|
-
calledBy: "
|
|
420
|
+
description: "generate local lessons and skill reminders nightly for Self Learning",
|
|
421
|
+
calledBy: "Self Learning",
|
|
422
422
|
destinations: {
|
|
423
423
|
"local-first": "host",
|
|
424
424
|
"agent-native": "off",
|
|
@@ -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--n02Dre8.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
|
/**
|
|
@@ -177,7 +176,7 @@ type ModelCall = {
|
|
|
177
176
|
};
|
|
178
177
|
declare const MODEL_CALLS: Record<ModelCallId, ModelCall> & Record<RsiModelCallId, {
|
|
179
178
|
description: string;
|
|
180
|
-
calledBy: "
|
|
179
|
+
calledBy: "Self Learning";
|
|
181
180
|
destinations: Record<ProductMode, ModelDestination>;
|
|
182
181
|
}>;
|
|
183
182
|
//#endregion
|
|
@@ -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-ByzZRemn.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-Bja1tVFw.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";
|
package/dist/{reflection-command-hooks-Cfv836Wc.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;
|
|
@@ -3,15 +3,15 @@ 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-ByzZRemn.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-CR-WWIoB.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-
|
|
14
|
-
import { i as buildReflectionMappedMetadata, n as createReflectionEventId, o as extractInjectableReflectionMappedMemoryItems, r as buildReflectionAntiPatternSignature, s as extractReflectionLearningGovernanceCandidates, t as storeReflectionEntries } from "./memory-entry-projector-
|
|
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-BEdDusPV.js";
|
|
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";
|
|
17
17
|
import { getSnoProfileDir } from "@snoai/observability";
|
|
@@ -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,
|
|
@@ -552,6 +553,7 @@ async function maybeStoreReflection(params, diagnostics) {
|
|
|
552
553
|
sessionKey: params.sessionKey,
|
|
553
554
|
sessionId: params.sessionId,
|
|
554
555
|
agentId: params.sourceAgentId,
|
|
556
|
+
derivedAgentId: params.writerAgentId ?? params.sourceAgentId,
|
|
555
557
|
writerAgentId: params.writerAgentId,
|
|
556
558
|
command: params.command,
|
|
557
559
|
scope: targetScope,
|
|
@@ -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
|
package/dist/{reflection-embedded-generator-DV-NkeU-.js → reflection-embedded-generator-BEdDusPV.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-ByzZRemn.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,
|
|
@@ -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-injection-hooks-BYxkrds6.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-Bwq2y5pe.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-CBfyJVfh.js";
|
|
2
2
|
export { runRemProductionOrderedWave };
|