@snoai/memory 1.2.10 → 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 +1 -1
- package/dist/diagnostic-encoder.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +9 -4
- package/dist/internal/engine/bindings/memory-cli-shared.d.ts +1 -1
- package/dist/internal/engine/bindings/memory-recall-tool.js +1 -1
- package/dist/internal/engine/bindings/memory-tool-access.d.ts +1 -1
- package/dist/internal/engine/bindings/memory-tool-results.d.ts +1 -1
- package/dist/internal/engine/bindings/memory-tool-schemas.d.ts +2 -2
- package/dist/internal/engine/bindings/sno-station-mem-ambient-learning-hook.d.ts +1 -1
- package/dist/internal/engine/bindings/sno-station-mem-ambient-learning-hook.js +1 -1
- package/dist/internal/engine/bindings/sno-station-mem-auto-recall-hook.d.ts +2 -2
- package/dist/internal/engine/bindings/sno-station-mem-auto-recall-hook.js +2 -2
- package/dist/internal/engine/bindings/sno-station-mem-insight-distill-factory.d.ts +1 -1
- package/dist/internal/engine/bindings/sno-station-mem-insight-distill-factory.js +1 -1
- package/dist/internal/engine/bindings/sno-station-mem-message-transcript.js +1 -1
- package/dist/internal/engine/bindings/sno-station-mem-reset-hook.d.ts +1 -1
- package/dist/internal/engine/bindings/sno-station-mem-runtime-mode.d.ts +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.js +1 -1
- package/dist/internal/engine/retrieval/retriever.d.ts +1 -1
- package/dist/internal/engine/retrieval/retriever.js +1 -1
- package/dist/internal/store/maintenance.js +1 -1
- package/dist/{log-site-catalog.generated-C9RmyAA0.js → log-site-catalog.generated-Dzgj9o5c.js} +13 -13
- package/dist/log-site-catalog.json +1 -1
- package/dist/{memory-runtime-HibOMCFa.js → memory-runtime-C8ZIW2WL.js} +24 -18
- package/dist/{memory-tool-dependencies--SrMdT3P.d.ts → memory-tool-dependencies-CWnD5mia.d.ts} +1 -1
- package/dist/{observable-retriever-BZpdv93Y.d.ts → observable-retriever-bJbG9WtJ.d.ts} +1 -1
- package/dist/{rem-batch-executor-8x4FBLtW.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-DmRERTNH.js → rem-trigger-BSrGyG0s.js} +2 -2
- package/dist/{retriever-BXQmJMh0.js → retriever-Bzz6H8Mn.js} +2 -2
- package/dist/{retriever-BpxV-0fB.d.ts → retriever-DyxY59Lg.d.ts} +2 -0
- package/dist/{server-CCduS_Ea.js → server-CjwHZY1P.js} +3 -3
- package/dist/sidecar/main.js +1 -1
- package/dist/{sno-station-mem-runtime-dependencies-AdFFr3bU.d.ts → sno-station-mem-runtime-dependencies-BZjUo6Jr.d.ts} +2 -2
- package/dist/{sno-station-mem-runtime-dependencies-CexFtaY6.js → sno-station-mem-runtime-dependencies-DlvM6mL7.js} +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -28,7 +28,7 @@ Who it is for: you do not use this package directly. Follow the
|
|
|
28
28
|
plugins use to reach the service.
|
|
29
29
|
|
|
30
30
|
```bash
|
|
31
|
-
npm install @snoai/memory@1.2.
|
|
31
|
+
npm install @snoai/memory@1.2.11
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
Needs Node.js 22.22.3+, 24.15.0+ or 25.9.0+. Licensed under Apache-2.0.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as version, t as logSiteCatalog } from "./log-site-catalog.generated-
|
|
1
|
+
import { n as version, t as logSiteCatalog } from "./log-site-catalog.generated-Dzgj9o5c.js";
|
|
2
2
|
import { diagnosticProcessInstanceId, encodeDiagnostic as encodeDiagnostic$1, writeEmergencyDiagnostic as writeEmergencyDiagnostic$1 } from "@snoai/utils/log-encoder";
|
|
3
3
|
//#region src/engine/observability/early-diagnostics.ts
|
|
4
4
|
function bindApplication(input) {
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { n as AgentLlmPort } from "./agent-llm-port-DY2290EK.js";
|
|
|
4
4
|
import { n as PluginObservability } from "./adapter-lyb6RaQE.js";
|
|
5
5
|
import { $ as usageSignalSchema, A as HostContext, B as ScopeCtx, C as inspectDataSchema, D as toolResponseSchema, E as retrievalResultSchema, F as JsonValue, G as inputSchemas, H as UsageSignal, I as Message, J as mutationSchema, K as inspectionSchema, L as Mutation, M as HostEvent, N as InitRegistration, O as AgentModelRegistration, P as Inspection, Q as turnSchema, R as RecallOptions, S as ToolResponse, T as outputSchemas, U as hostEventSchema, V as Turn, W as initRegistrationSchema, X as registrationSchema, Y as recallOptionsSchema, Z as scopeSchema, _ as engineSettingsSchema, a as parseOutput, b as ProjectSummary, c as MEMORY_ERROR_STATUS, d as MEMORY_ROUTES, et as ContractError, f as MEMORY_SKIN_HEADER, g as EngineSettings, h as memoryMethod, i as parseInput, j as HostDecision, k as ContractInputs, l as MEMORY_HEALTH_TIMEOUT_MS, m as REM_SIDECAR_TOKEN_HEADER, n as MemoryContract, nt as DegradedReason, o as MEMORY_BODY_LIMIT_BYTES, p as MEMORY_START_TIMEOUT_MS, q as messageSchema, r as contractJsonSchemas, s as MEMORY_DEFAULT_SKIN_ID, t as ContractMethod, tt as DEGRADED_REASONS, u as MEMORY_RECONNECT_INTERVAL_MS, v as ContractOutputs, w as memoryEntrySchema, x as Result, y as InspectData, z as Registration } from "./index-CsPUNkcm.js";
|
|
6
6
|
import { t as Embedder } from "./embedding-provider-client-vynZMuit.js";
|
|
7
|
-
import { t as MemoryRetriever } from "./retriever-
|
|
7
|
+
import { t as MemoryRetriever } from "./retriever-DyxY59Lg.js";
|
|
8
8
|
import { C as MemoryStore } from "./memory-store-base-Bk2dOKED.js";
|
|
9
9
|
import "./store-BDIAl2cc.js";
|
|
10
10
|
import { n as AccessTracker } from "./access-tracker-BOPHSJjf.js";
|
package/dist/index.js
CHANGED
|
@@ -17,7 +17,7 @@ import { pickLlmRoutingConfig } from "./internal/model/llm-mode-routing.js";
|
|
|
17
17
|
import { a as parseAgentIdFromSessionKey, n as createScopePolicy, t as MemoryScopePolicy } from "./memory-scope-policy--TiLZnrE.js";
|
|
18
18
|
import { a as serializeIntervalMetadata, o as resolveMemoryDate } from "./memory-temporality-classifier-MBJyJdvB.js";
|
|
19
19
|
import { resolveAgentAccess, resolveAgentId } from "./internal/engine/bindings/memory-tool-access.js";
|
|
20
|
-
import { r as retrieveForAutoRecall, t as isOpenRecallMetadata } from "./rem-consumer-retrieval-
|
|
20
|
+
import { r as retrieveForAutoRecall, t as isOpenRecallMetadata } from "./rem-consumer-retrieval-CDMSCJYI.js";
|
|
21
21
|
import { executeMemoryRecallTool } from "./internal/engine/bindings/memory-recall-tool.js";
|
|
22
22
|
import { t as createReflectionStrategyState } from "./strategy-hook-runner-SvyyGBXw.js";
|
|
23
23
|
import { buildInsightDistiller } from "./internal/engine/bindings/sno-station-mem-insight-distill-factory.js";
|
|
@@ -830,8 +830,9 @@ var MemoryContractRuntime = class {
|
|
|
830
830
|
const minimum = current === "prompt" ? options.minScore ?? settings.prompt.minScore : 0;
|
|
831
831
|
const hits = await retrieveForAutoRecall(this.services.retriever, {
|
|
832
832
|
query: current === "session-start" ? CODING_SKIN_SESSION_QUERY : query,
|
|
833
|
-
limit,
|
|
833
|
+
limit: current === "prompt" ? limit * 4 : limit,
|
|
834
834
|
minScore: minimum,
|
|
835
|
+
trackAccess: current !== "prompt",
|
|
835
836
|
scopeFilter: [context.scopePolicy.getDefaultScope()],
|
|
836
837
|
signal: retrievalSignal,
|
|
837
838
|
nowMs: Date.now(),
|
|
@@ -839,8 +840,9 @@ var MemoryContractRuntime = class {
|
|
|
839
840
|
});
|
|
840
841
|
retrievalSignal.throwIfAborted();
|
|
841
842
|
prepared.push({
|
|
842
|
-
hits: current === "prompt" ? hits.filter((hit) => hit.denseScore === void 0 || hit.denseScore >= .5) : hits,
|
|
843
|
-
cap: cfg.maxChars
|
|
843
|
+
hits: current === "prompt" ? hits.filter((hit) => hit.denseScore === void 0 || hit.denseScore >= .5).slice(0, limit) : hits,
|
|
844
|
+
cap: cfg.maxChars,
|
|
845
|
+
trackServed: current === "prompt"
|
|
844
846
|
});
|
|
845
847
|
}
|
|
846
848
|
signal?.throwIfAborted();
|
|
@@ -851,6 +853,7 @@ var MemoryContractRuntime = class {
|
|
|
851
853
|
const cap = Math.min(options.maxChars ?? prepared.reduce((sum, item) => sum + item.cap, 0), CODING_SKIN_LEDGER_MAX_CHARS - state.chars);
|
|
852
854
|
const lines = [INJECTION_HEADER];
|
|
853
855
|
const memoryIds = [];
|
|
856
|
+
const servedFromPrompt = [];
|
|
854
857
|
for (const batch of prepared) {
|
|
855
858
|
let phaseChars = 67;
|
|
856
859
|
for (const hit of batch.hits) {
|
|
@@ -863,8 +866,10 @@ var MemoryContractRuntime = class {
|
|
|
863
866
|
lines.push(line);
|
|
864
867
|
phaseChars += line.length + 1;
|
|
865
868
|
memoryIds.push(current.id);
|
|
869
|
+
if (batch.trackServed) servedFromPrompt.push(current.id);
|
|
866
870
|
}
|
|
867
871
|
}
|
|
872
|
+
if (servedFromPrompt.length && this.services.config.recallLifecycle?.autoRecallAccessTracking === true) this.services.accessTracker.recordAccess(servedFromPrompt);
|
|
868
873
|
this.recordRecallPreview(query, memoryIds.map((id) => this.services.store.getById(id)?.text));
|
|
869
874
|
if (!memoryIds.length) return empty;
|
|
870
875
|
const contextText = lines.join("\n");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h as MemoryCategory } from "../../../types-Ae3a8562.js";
|
|
2
2
|
import { t as Embedder } from "../../../embedding-provider-client-vynZMuit.js";
|
|
3
|
-
import { t as MemoryRetriever } from "../../../retriever-
|
|
3
|
+
import { t as MemoryRetriever } from "../../../retriever-DyxY59Lg.js";
|
|
4
4
|
import { C as MemoryStore } from "../../../memory-store-base-Bk2dOKED.js";
|
|
5
5
|
import "../../../store-BDIAl2cc.js";
|
|
6
6
|
import { r as MemoryTelemetryUsageOutbox } from "../../../memory-telemetry-outbox-ddTdImt7.js";
|
|
@@ -8,7 +8,7 @@ import { assertAccessibleScopeForTool, resolveReadableScopesForTool } from "./me
|
|
|
8
8
|
import { episodicEventDate, safeParseMetadata, sanitizeRecalledText, serializeMemory } from "./memory-tool-formatting.js";
|
|
9
9
|
import { makeResult, runWithAudit } from "./memory-tool-results.js";
|
|
10
10
|
import { recallParamsSchema } from "./memory-tool-schemas.js";
|
|
11
|
-
import { i as retrieveForMemoryRecallOrEval, n as packManualRecallRows } from "../../../rem-consumer-retrieval-
|
|
11
|
+
import { i as retrieveForMemoryRecallOrEval, n as packManualRecallRows } from "../../../rem-consumer-retrieval-CDMSCJYI.js";
|
|
12
12
|
import { createLogger, currentLogContext, privateLogReference, withLogContext } from "@snoai/utils/logger";
|
|
13
13
|
import { randomUUID } from "node:crypto";
|
|
14
14
|
//#region src/engine/bindings/memory-recall-tool.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as MemoryScopePolicy } from "../../../memory-scope-policy-1gg5QlWZ.js";
|
|
2
|
-
import "../../../memory-tool-dependencies
|
|
2
|
+
import "../../../memory-tool-dependencies-CWnD5mia.js";
|
|
3
3
|
//#region src/engine/bindings/memory-tool-access.d.ts
|
|
4
4
|
export declare function assertAccessibleScope(scopePolicy: MemoryScopePolicy, scope: string, agentId?: string): string;
|
|
5
5
|
export declare function resolveAgentId(runtimeAgentId: unknown, fallback?: string): string | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as SnoStationMemError } from "../../../errors-CeVRxf9V.js";
|
|
2
|
-
import "../../../memory-tool-dependencies
|
|
2
|
+
import "../../../memory-tool-dependencies-CWnD5mia.js";
|
|
3
3
|
import { ToolContext, ToolResult } from "./memory-tool-schemas.js";
|
|
4
4
|
//#region src/engine/bindings/memory-tool-results.d.ts
|
|
5
5
|
export declare function makeResult(text: string, details: Record<string, unknown>, isError?: boolean): ToolResult;
|
|
@@ -2,10 +2,10 @@ import { p as LlmRoutingConfig, r as LlmClient } from "../../../plugin-config-sc
|
|
|
2
2
|
import { h as MemoryCategory, r as AggregationQuery } from "../../../types-Ae3a8562.js";
|
|
3
3
|
import { n as Locale } from "../../../locales-JxGmkG6t.js";
|
|
4
4
|
import { t as Embedder } from "../../../embedding-provider-client-vynZMuit.js";
|
|
5
|
-
import { t as MemoryRetriever } from "../../../retriever-
|
|
5
|
+
import { t as MemoryRetriever } from "../../../retriever-DyxY59Lg.js";
|
|
6
6
|
import { C as MemoryStore } from "../../../memory-store-base-Bk2dOKED.js";
|
|
7
7
|
import { t as MemoryScopePolicy } from "../../../memory-scope-policy-1gg5QlWZ.js";
|
|
8
|
-
import { t as z } from "../../../memory-tool-dependencies
|
|
8
|
+
import { t as z } from "../../../memory-tool-dependencies-CWnD5mia.js";
|
|
9
9
|
//#region src/engine/bindings/memory-tool-schemas.d.ts
|
|
10
10
|
export declare const recallParamsSchema: z.ZodType<{
|
|
11
11
|
query: string;
|
|
@@ -4,7 +4,7 @@ import { C as MemoryStore } from "../../../memory-store-base-Bk2dOKED.js";
|
|
|
4
4
|
import { n as createScopePolicy } from "../../../memory-scope-policy-1gg5QlWZ.js";
|
|
5
5
|
import { PluginHookAgentContext, PluginHookAgentEndEvent } from "./sno-station-mem-hook-types.js";
|
|
6
6
|
import { r as AtomicInsightDistiller } from "../../../atomic-memory-extraction-B_XpkhMd.js";
|
|
7
|
-
import { t as SnoStationMemPluginApi } from "../../../sno-station-mem-runtime-dependencies-
|
|
7
|
+
import { t as SnoStationMemPluginApi } from "../../../sno-station-mem-runtime-dependencies-BZjUo6Jr.js";
|
|
8
8
|
//#region src/engine/bindings/sno-station-mem-ambient-learning-hook.d.ts
|
|
9
9
|
/** Runs atomic extraction after a successful top-level agent conversation. */
|
|
10
10
|
export type AmbientCaptureOutcome = "skipped" | "success" | "partial" | "failed";
|
|
@@ -7,7 +7,7 @@ import { t as normalizeAmbientLearningText } from "../../../ambient-learning-tex
|
|
|
7
7
|
import { a as serializeIntervalMetadata, i as parseSessionTimestamp, s as unresolvedMemoryDate } from "../../../memory-temporality-classifier-MBJyJdvB.js";
|
|
8
8
|
import { resolveHookAgentId } from "./sno-station-mem-runtime-mode.js";
|
|
9
9
|
import { c as shouldSkipReflectionMessage } from "../../../daily-log-generator-CH_KuWHs.js";
|
|
10
|
-
import "../../../sno-station-mem-runtime-dependencies-
|
|
10
|
+
import "../../../sno-station-mem-runtime-dependencies-DlvM6mL7.js";
|
|
11
11
|
import { buildConversationText, deriveSessionDateTime, extractAllMessageTexts, isAmbientLearningMessage, transcriptSessionDateTime } from "./sno-station-mem-message-transcript.js";
|
|
12
12
|
import { createLogger, currentLogContext, withLogContext } from "@snoai/utils/logger";
|
|
13
13
|
import { randomUUID } from "node:crypto";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as PluginConfig } from "../../../plugin-config-schema-BrhMvnXJ.js";
|
|
2
|
-
import { t as MemoryRetriever } from "../../../retriever-
|
|
2
|
+
import { t as MemoryRetriever } from "../../../retriever-DyxY59Lg.js";
|
|
3
3
|
import { C as MemoryStore } from "../../../memory-store-base-Bk2dOKED.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 { PluginHookAgentContext, PluginHookBeforeAgentStartEvent, PluginHookBeforeAgentStartResult } from "./sno-station-mem-hook-types.js";
|
|
7
|
-
import { t as SnoStationMemPluginApi } from "../../../sno-station-mem-runtime-dependencies-
|
|
7
|
+
import { t as SnoStationMemPluginApi } from "../../../sno-station-mem-runtime-dependencies-BZjUo6Jr.js";
|
|
8
8
|
//#region src/engine/bindings/sno-station-mem-auto-recall-hook.d.ts
|
|
9
9
|
export declare function extractAutoRecallQuery(prompt: string): string;
|
|
10
10
|
/** Injects relevant memories into the next agent turn after scope and cache checks. */
|
|
@@ -5,10 +5,10 @@ import { t as appendAuditEntry } from "../../../runtime-audit-log-DK6xAYxh.js";
|
|
|
5
5
|
import { normalizeQuery, shouldSkipRetrieval } from "../retrieval/retrieval-gate.js";
|
|
6
6
|
import { c as formatRelevantMemoriesContext } from "../../../capture-policy-detector-DaMfy9CZ.js";
|
|
7
7
|
import { episodicEventDate, saidOnDate, sourceQuote } from "./memory-tool-formatting.js";
|
|
8
|
-
import { r as retrieveForAutoRecall } from "../../../rem-consumer-retrieval-
|
|
8
|
+
import { r as retrieveForAutoRecall } from "../../../rem-consumer-retrieval-CDMSCJYI.js";
|
|
9
9
|
import { isChatIdBasedAgentId, resolveHookAgentId } from "./sno-station-mem-runtime-mode.js";
|
|
10
10
|
import { t as parseReflectionMetadata } from "../../../entry-metadata-parser-BIVSMCIk.js";
|
|
11
|
-
import "../../../sno-station-mem-runtime-dependencies-
|
|
11
|
+
import "../../../sno-station-mem-runtime-dependencies-DlvM6mL7.js";
|
|
12
12
|
import { resolveRuntimeSessionId } from "./sno-station-mem-session-state.js";
|
|
13
13
|
import { createLogger, currentLogContext, withLogContext } from "@snoai/utils/logger";
|
|
14
14
|
import { randomUUID } from "node:crypto";
|
|
@@ -4,7 +4,7 @@ import { n as PluginObservability } from "../../../adapter-lyb6RaQE.js";
|
|
|
4
4
|
import { t as Embedder } from "../../../embedding-provider-client-vynZMuit.js";
|
|
5
5
|
import { C as MemoryStore } from "../../../memory-store-base-Bk2dOKED.js";
|
|
6
6
|
import { r as AtomicInsightDistiller } from "../../../atomic-memory-extraction-B_XpkhMd.js";
|
|
7
|
-
import { t as SnoStationMemPluginApi } from "../../../sno-station-mem-runtime-dependencies-
|
|
7
|
+
import { t as SnoStationMemPluginApi } from "../../../sno-station-mem-runtime-dependencies-BZjUo6Jr.js";
|
|
8
8
|
//#region src/engine/bindings/sno-station-mem-insight-distill-factory.d.ts
|
|
9
9
|
/**
|
|
10
10
|
* Assembles Insight Distill from validated inputs for deterministic plugin lifecycle
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as appendAuditEntry } from "../../../runtime-audit-log-DK6xAYxh.js";
|
|
2
2
|
import { pickLlmRoutingConfig, resolveLlmRoute } from "../../model/llm-mode-routing.js";
|
|
3
3
|
import { r as createSignedAtomicMemoryExtractionTransports, t as AtomicInsightDistiller } from "../../../atomic-memory-extraction-o2v8mp7G.js";
|
|
4
|
-
import "../../../sno-station-mem-runtime-dependencies-
|
|
4
|
+
import "../../../sno-station-mem-runtime-dependencies-DlvM6mL7.js";
|
|
5
5
|
import { createLogger } from "@snoai/utils/logger";
|
|
6
6
|
//#region src/engine/bindings/sno-station-mem-insight-distill-factory.ts
|
|
7
7
|
/** @file sno-station-mem-insight-distill-factory.ts
|
|
@@ -2,7 +2,7 @@ import { nt as FIXED_PROTOCOL_VALUE_63, wt as PERSISTED_PROVIDER_SYSTEM } from "
|
|
|
2
2
|
import { parseIsoDateTimeMs } from "../shared/iso-date-time.js";
|
|
3
3
|
import { t as normalizeAmbientLearningText } from "../../../ambient-learning-text-normalizer-CxjATmMp.js";
|
|
4
4
|
import { a as escapeTranscriptRoleContinuations } from "../../../atomic-memory-extraction-o2v8mp7G.js";
|
|
5
|
-
import "../../../sno-station-mem-runtime-dependencies-
|
|
5
|
+
import "../../../sno-station-mem-runtime-dependencies-DlvM6mL7.js";
|
|
6
6
|
import { sanitizeContentIngress } from "@snoai/content-sanitizer";
|
|
7
7
|
import { Temporal } from "@js-temporal/polyfill";
|
|
8
8
|
//#region src/engine/bindings/sno-station-mem-message-transcript.ts
|
|
@@ -3,7 +3,7 @@ import { t as Embedder } from "../../../embedding-provider-client-vynZMuit.js";
|
|
|
3
3
|
import { C as MemoryStore } from "../../../memory-store-base-Bk2dOKED.js";
|
|
4
4
|
import { n as createScopePolicy } from "../../../memory-scope-policy-1gg5QlWZ.js";
|
|
5
5
|
import { PluginHookAgentContext, PluginHookBeforeResetEvent } from "./sno-station-mem-hook-types.js";
|
|
6
|
-
import { t as SnoStationMemPluginApi } from "../../../sno-station-mem-runtime-dependencies-
|
|
6
|
+
import { t as SnoStationMemPluginApi } from "../../../sno-station-mem-runtime-dependencies-BZjUo6Jr.js";
|
|
7
7
|
//#region src/engine/bindings/sno-station-mem-reset-hook.d.ts
|
|
8
8
|
/** Stores reset-time session context before the host discards conversation state. */
|
|
9
9
|
export declare function onBeforeReset(_api: SnoStationMemPluginApi, _config: PluginConfig, _store: MemoryStore, _embedder: Embedder, _scopePolicy: ReturnType<typeof createScopePolicy>, recallHistory: Map<string, Map<string, number>>, turnCounter: Map<string, number>, _event: PluginHookBeforeResetEvent, ctx: PluginHookAgentContext, _stateDir: string): Promise<void>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as SnoStationMemPluginApi } from "../../../sno-station-mem-runtime-dependencies-
|
|
1
|
+
import { t as SnoStationMemPluginApi } from "../../../sno-station-mem-runtime-dependencies-BZjUo6Jr.js";
|
|
2
2
|
//#region src/engine/bindings/sno-station-mem-runtime-mode.d.ts
|
|
3
3
|
/** Detects completion bootstrap mode so plugin startup can expose only completion wiring. */
|
|
4
4
|
export declare function isCompletionMode(): boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as ObservableMemoryRetriever } from "../../../observable-retriever-
|
|
1
|
+
import { t as ObservableMemoryRetriever } from "../../../observable-retriever-bJbG9WtJ.js";
|
|
2
2
|
export { ObservableMemoryRetriever };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { u as runWithMemoryAudit } from "../../../runtime-audit-log-DK6xAYxh.js";
|
|
2
2
|
import { getSnoStationMemStateDir } from "../../contract/profile.js";
|
|
3
3
|
import { n as countManyEmbeddingTokens, t as countEmbeddingTokens } from "../../../token-counter-BD1f48Km.js";
|
|
4
|
-
import { a as DEFAULT_RETRIEVAL_CONFIG, n as MemoryRetriever } from "../../../retriever-
|
|
4
|
+
import { a as DEFAULT_RETRIEVAL_CONFIG, n as MemoryRetriever } from "../../../retriever-Bzz6H8Mn.js";
|
|
5
5
|
//#region src/engine/observability/observable-retriever.ts
|
|
6
6
|
var ObservableMemoryRetriever = class extends MemoryRetriever {
|
|
7
7
|
observability;
|
|
@@ -4,7 +4,7 @@ import { pickLlmRoutingConfig, resolveLlmRoute } from "../../model/llm-mode-rout
|
|
|
4
4
|
import { n as ATOMIC_EXTRACTION_SKILL_HASH } from "../../../atomic-extraction-skill-CcXmuCqL.js";
|
|
5
5
|
import { r as ATOMIC_EXTRACTION_RESPONSE_JSON_SCHEMA } from "../../../atomic-extraction-reply-BJ9XV_9s.js";
|
|
6
6
|
import { r as attribute_dictionary_default } from "../../../relation-dictionary-Cev1kyLe.js";
|
|
7
|
-
import { n as version, t as logSiteCatalog } from "../../../log-site-catalog.generated-
|
|
7
|
+
import { n as version, t as logSiteCatalog } from "../../../log-site-catalog.generated-Dzgj9o5c.js";
|
|
8
8
|
import { configureLogger, createLogger, effectiveLogLevel, loggerFileStatus } from "@snoai/utils/logger";
|
|
9
9
|
import { createHash } from "node:crypto";
|
|
10
10
|
//#region src/engine/observability/runtime-diagnostics.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as RerankFallbackSignal, c as collectParallelStage, d as RetrievalConfig, f as RetrievalContext, i as RerankFallbackReason, l as DEFAULT_RETRIEVAL_CONFIG, n as MemoryRetrieverInternals, o as RerankOutcome, p as withServingValidityDefault, r as RERANK_FALLBACK_REASONS, s as createRetriever, t as MemoryRetriever, u as RerankProvider } from "../../../retriever-
|
|
1
|
+
import { a as RerankFallbackSignal, c as collectParallelStage, d as RetrievalConfig, f as RetrievalContext, i as RerankFallbackReason, l as DEFAULT_RETRIEVAL_CONFIG, n as MemoryRetrieverInternals, o as RerankOutcome, p as withServingValidityDefault, r as RERANK_FALLBACK_REASONS, s as createRetriever, t as MemoryRetriever, u as RerankProvider } from "../../../retriever-DyxY59Lg.js";
|
|
2
2
|
export { DEFAULT_RETRIEVAL_CONFIG, MemoryRetriever, MemoryRetrieverInternals, RERANK_FALLBACK_REASONS, RerankFallbackReason, RerankFallbackSignal, RerankOutcome, RerankProvider, RetrievalConfig, RetrievalContext, collectParallelStage, createRetriever, withServingValidityDefault };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as DEFAULT_RETRIEVAL_CONFIG, i as createRetriever, n as MemoryRetriever, o as withServingValidityDefault, r as RERANK_FALLBACK_REASONS, t as collectParallelStage } from "../../../retriever-
|
|
1
|
+
import { a as DEFAULT_RETRIEVAL_CONFIG, i as createRetriever, n as MemoryRetriever, o as withServingValidityDefault, r as RERANK_FALLBACK_REASONS, t as collectParallelStage } from "../../../retriever-Bzz6H8Mn.js";
|
|
2
2
|
export { DEFAULT_RETRIEVAL_CONFIG, MemoryRetriever, RERANK_FALLBACK_REASONS, collectParallelStage, createRetriever, withServingValidityDefault };
|
|
@@ -16,7 +16,7 @@ import { openSqliteDatabase } from "./sqlite-runtime.js";
|
|
|
16
16
|
import "../../connection-PQcq3TPO.js";
|
|
17
17
|
import "../../store-BQxkgJTX.js";
|
|
18
18
|
import "../../embedding-provider-client-40tpzKou.js";
|
|
19
|
-
import "../../retriever-
|
|
19
|
+
import "../../retriever-Bzz6H8Mn.js";
|
|
20
20
|
import { t as recordMemoryTelemetryIncident } from "../../memory-telemetry-incidents-BWA9kcZx.js";
|
|
21
21
|
import { z } from "zod";
|
|
22
22
|
import "@snoai/chunking";
|
package/dist/{log-site-catalog.generated-C9RmyAA0.js → log-site-catalog.generated-Dzgj9o5c.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
//#region package.json
|
|
2
|
-
var version = "1.2.
|
|
2
|
+
var version = "1.2.11";
|
|
3
3
|
//#endregion
|
|
4
4
|
//#region src/engine/observability/log-site-catalog.generated.ts
|
|
5
5
|
const logSiteCatalog = {
|
|
6
|
-
"build_id": "
|
|
6
|
+
"build_id": "cfa0a6dc2622349a7cce144e91fc42d5d716fba04fbbad8133ae8a0627bc1150",
|
|
7
7
|
"sites": {
|
|
8
8
|
"memory.recall.budget.checked": {
|
|
9
9
|
"file": "packages/memory/src/engine/bindings/memory-recall-tool.ts",
|
|
@@ -1228,42 +1228,42 @@ const logSiteCatalog = {
|
|
|
1228
1228
|
"function": "retrieve",
|
|
1229
1229
|
"line": 41,
|
|
1230
1230
|
"column": 3,
|
|
1231
|
-
"file_hash": "
|
|
1231
|
+
"file_hash": "23aa1ca28a758a8b5a14b83054e7f7ba6ba8d8cb332f0260461bcc4383c68263"
|
|
1232
1232
|
},
|
|
1233
1233
|
"memory.retrieval.completed": {
|
|
1234
1234
|
"file": "packages/memory/src/engine/retrieval/retriever-execution.ts",
|
|
1235
1235
|
"function": "retrieve",
|
|
1236
|
-
"line":
|
|
1236
|
+
"line": 174,
|
|
1237
1237
|
"column": 4,
|
|
1238
|
-
"file_hash": "
|
|
1238
|
+
"file_hash": "23aa1ca28a758a8b5a14b83054e7f7ba6ba8d8cb332f0260461bcc4383c68263"
|
|
1239
1239
|
},
|
|
1240
1240
|
"memory.retrieval.failed": {
|
|
1241
1241
|
"file": "packages/memory/src/engine/retrieval/retriever-execution.ts",
|
|
1242
1242
|
"function": "retrieve",
|
|
1243
|
-
"line":
|
|
1243
|
+
"line": 186,
|
|
1244
1244
|
"column": 4,
|
|
1245
|
-
"file_hash": "
|
|
1245
|
+
"file_hash": "23aa1ca28a758a8b5a14b83054e7f7ba6ba8d8cb332f0260461bcc4383c68263"
|
|
1246
1246
|
},
|
|
1247
1247
|
"memory.retrieval.traced.completed": {
|
|
1248
1248
|
"file": "packages/memory/src/engine/retrieval/retriever-execution.ts",
|
|
1249
1249
|
"function": "retrieveWithTrace",
|
|
1250
|
-
"line":
|
|
1250
|
+
"line": 262,
|
|
1251
1251
|
"column": 4,
|
|
1252
|
-
"file_hash": "
|
|
1252
|
+
"file_hash": "23aa1ca28a758a8b5a14b83054e7f7ba6ba8d8cb332f0260461bcc4383c68263"
|
|
1253
1253
|
},
|
|
1254
1254
|
"memory.retrieval.traced.failed": {
|
|
1255
1255
|
"file": "packages/memory/src/engine/retrieval/retriever-execution.ts",
|
|
1256
1256
|
"function": "retrieveWithTrace",
|
|
1257
|
-
"line":
|
|
1257
|
+
"line": 270,
|
|
1258
1258
|
"column": 4,
|
|
1259
|
-
"file_hash": "
|
|
1259
|
+
"file_hash": "23aa1ca28a758a8b5a14b83054e7f7ba6ba8d8cb332f0260461bcc4383c68263"
|
|
1260
1260
|
},
|
|
1261
1261
|
"memory.retrieval.tier.failed": {
|
|
1262
1262
|
"file": "packages/memory/src/engine/retrieval/retriever-execution.ts",
|
|
1263
1263
|
"function": "evaluateTopKTierTransitions",
|
|
1264
|
-
"line":
|
|
1264
|
+
"line": 339,
|
|
1265
1265
|
"column": 5,
|
|
1266
|
-
"file_hash": "
|
|
1266
|
+
"file_hash": "23aa1ca28a758a8b5a14b83054e7f7ba6ba8d8cb332f0260461bcc4383c68263"
|
|
1267
1267
|
},
|
|
1268
1268
|
"retrieval.retriever-rerank.rerank.6fbc6b3a22": {
|
|
1269
1269
|
"file": "packages/memory/src/engine/retrieval/retriever-rerank.ts",
|