@snoai/memory 1.2.2 → 1.2.3
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/{adapter-CeQ7rViY.d.ts → adapter-J6IQ0rvr.d.ts} +1 -0
- package/dist/{adapter-XaRHZWZ2.js → adapter-RxQ9CJ7f.js} +1 -1
- package/dist/diagnostic-encoder.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -1
- package/dist/internal/config/plugin-config-schema.js +1 -1
- package/dist/internal/config/settings.js +1 -1
- 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 +1 -1
- 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 +2 -2
- 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/adapter.d.ts +1 -1
- package/dist/internal/engine/observability/adapter.js +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-retriever.d.ts +1 -1
- package/dist/internal/engine/observability/runtime-diagnostics.js +1 -1
- package/dist/internal/engine/shared/types.js +1 -1
- package/dist/internal/engine/telemetry/observe-ledger.d.ts +3 -2
- package/dist/internal/engine/telemetry/observe-ledger.js +3 -0
- package/dist/{log-site-catalog.generated-DTY6bcLM.js → log-site-catalog.generated-NI-E9zjv.js} +16 -16
- package/dist/log-site-catalog.json +1 -1
- package/dist/{memory-runtime-ChU1i-bO.js → memory-runtime-BKBFbD1E.js} +19 -19
- package/dist/{observable-embedder-CbFylzsx.d.ts → observable-embedder-rKGU0LqW.d.ts} +1 -1
- package/dist/{observable-llm-client-BC6Bc8t3.d.ts → observable-llm-client-Cw04DElM.d.ts} +1 -1
- package/dist/{observable-memory-store-BykVMQXt.d.ts → observable-memory-store-CHLQvW9E.d.ts} +1 -1
- package/dist/{observable-retriever-C-c9O83s.d.ts → observable-retriever-DJKBEkBC.d.ts} +1 -1
- package/dist/plugin-config-observe-schema-BORZ9_7q.js +54 -0
- package/dist/{plugin-config-schema-CTLb-ChF.js → plugin-config-schema-CC-2N9Xw.js} +4 -49
- package/dist/{rem-batch-executor-DdgZBL5K.js → rem-batch-executor-_J7QoDuG.js} +1 -1
- package/dist/{rem-batch-executor-Bdsf26tD.js → rem-batch-executor-vssXCmmE.js} +3 -1
- package/dist/{rem-trigger-6dmOjIU_.js → rem-trigger-BZBf_rmt.js} +1 -1
- package/dist/{server-CDy9liZ-.js → server-BkDfjx4w.js} +4 -4
- package/dist/sidecar/main.js +1 -1
- package/dist/{sno-station-mem-runtime-dependencies-Bzfg4hGZ.js → sno-station-mem-runtime-dependencies-DEdpOj7z.js} +1 -1
- package/dist/{sno-station-mem-runtime-dependencies-cFPSMqDD.d.ts → sno-station-mem-runtime-dependencies-DjA-KpD8.d.ts} +5 -5
- 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.3
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
Needs Node.js 22.22.3+, 24.15.0+ or 25.9.0+. Licensed under Apache-2.0.
|
|
@@ -145,7 +145,7 @@ var PluginObservability = class {
|
|
|
145
145
|
event_type: input.eventType,
|
|
146
146
|
...input.tsEdgeMs !== void 0 ? { ts_edge_ms: input.tsEdgeMs } : {},
|
|
147
147
|
...input.eventId ? { event_id: input.eventId } : {},
|
|
148
|
-
agent_id: this.agentId,
|
|
148
|
+
agent_id: input.agentId ?? this.agentId,
|
|
149
149
|
lane: laneForEventType(input.eventType),
|
|
150
150
|
...scope ? { scope } : {},
|
|
151
151
|
payload: input.payload
|
|
@@ -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-NI-E9zjv.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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { b as Settings, t as PluginConfig } from "./plugin-config-schema-CCwv_K7R.js";
|
|
2
2
|
import "./types-DvQ6nTNC.js";
|
|
3
3
|
import { n as AgentLlmPort } from "./agent-llm-port-5oXgBpzJ.js";
|
|
4
|
-
import { n as PluginObservability } from "./adapter-
|
|
4
|
+
import { n as PluginObservability } from "./adapter-J6IQ0rvr.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-DtqgCT8u.js";
|
|
6
6
|
import { t as Embedder } from "./embedding-provider-client-vynZMuit.js";
|
|
7
7
|
import { t as MemoryRetriever } from "./retriever-CXeB7-A2.js";
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { a as selfImprovementConfigSchema, c as SESSION_STRATEGIES, i as memoryReflectionConfigSchema, n as retrievalConfigSchema, o as sessionMemoryConfigSchema, r as extractionConfigSchema, s as embeddingConfigSchema } from "./plugin-config-schema-CC-2N9Xw.js";
|
|
2
2
|
import { recallLifecycleSchema } from "./internal/config/index.js";
|
|
3
|
+
import { n as observeConfigSchema } from "./plugin-config-observe-schema-BORZ9_7q.js";
|
|
3
4
|
import { AGGREGATION_OPERATIONS, MEMORY_CATEGORIES } from "./internal/engine/shared/types.js";
|
|
4
5
|
import { n as DEGRADED_REASONS, t as ContractError } from "./error-D-wb-rZw.js";
|
|
5
6
|
import { a as toolResponseSchema, i as retrievalResultSchema, n as memoryEntrySchema, r as outputSchemas, t as inspectDataSchema } from "./results-BkMsHy7M.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as pluginConfigSchema } from "../../plugin-config-schema-
|
|
1
|
+
import { t as pluginConfigSchema } from "../../plugin-config-schema-CC-2N9Xw.js";
|
|
2
2
|
export { pluginConfigSchema };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as SESSION_STRATEGIES, t as pluginConfigSchema } from "../../plugin-config-schema-CC-2N9Xw.js";
|
|
2
2
|
import { EMBEDDER_MODEL_DEFAULT } from "./index.js";
|
|
3
3
|
import { SUPPORTED_LOCALES } from "../engine/i18n/locales.js";
|
|
4
4
|
import { PRODUCT_MODES } from "./product-mode.js";
|
|
@@ -4,7 +4,7 @@ import { C as MemoryStore } from "../../../memory-store-base-Dx6oSqiv.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-BT8lFE5t.js";
|
|
7
|
-
import { t as SnoStationMemPluginApi } from "../../../sno-station-mem-runtime-dependencies-
|
|
7
|
+
import { t as SnoStationMemPluginApi } from "../../../sno-station-mem-runtime-dependencies-DjA-KpD8.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 { a as serializeIntervalMetadata, i as parseSessionTimestamp, s as unreso
|
|
|
7
7
|
import { t as appendAuditEntry } from "../../../runtime-audit-log-BCeujlEp.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-DEdpOj7z.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";
|
|
@@ -4,7 +4,7 @@ import { C as MemoryStore } from "../../../memory-store-base-Dx6oSqiv.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-DjA-KpD8.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. */
|
|
@@ -8,7 +8,7 @@ import { episodicEventDate, saidOnDate, sourceQuote } from "./memory-tool-format
|
|
|
8
8
|
import { r as retrieveForAutoRecall } from "../../../rem-consumer-retrieval-CR0dtcHR.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-DEdpOj7z.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";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as PluginConfig } from "../../../plugin-config-schema-CCwv_K7R.js";
|
|
2
2
|
import { n as AgentLlmPort } from "../../../agent-llm-port-5oXgBpzJ.js";
|
|
3
|
-
import { n as PluginObservability } from "../../../adapter-
|
|
3
|
+
import { n as PluginObservability } from "../../../adapter-J6IQ0rvr.js";
|
|
4
4
|
import { t as Embedder } from "../../../embedding-provider-client-vynZMuit.js";
|
|
5
5
|
import { C as MemoryStore } from "../../../memory-store-base-Dx6oSqiv.js";
|
|
6
6
|
import { r as AtomicInsightDistiller } from "../../../atomic-memory-extraction-BT8lFE5t.js";
|
|
7
|
-
import { t as SnoStationMemPluginApi } from "../../../sno-station-mem-runtime-dependencies-
|
|
7
|
+
import { t as SnoStationMemPluginApi } from "../../../sno-station-mem-runtime-dependencies-DjA-KpD8.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 { pickLlmRoutingConfig, resolveLlmRoute } from "../../model/llm-mode-routing.js";
|
|
2
2
|
import { t as appendAuditEntry } from "../../../runtime-audit-log-BCeujlEp.js";
|
|
3
3
|
import { r as createSignedAtomicMemoryExtractionTransports, t as AtomicInsightDistiller } from "../../../atomic-memory-extraction-By0axKHc.js";
|
|
4
|
-
import "../../../sno-station-mem-runtime-dependencies-
|
|
4
|
+
import "../../../sno-station-mem-runtime-dependencies-DEdpOj7z.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-By0axKHc.js";
|
|
5
|
-
import "../../../sno-station-mem-runtime-dependencies-
|
|
5
|
+
import "../../../sno-station-mem-runtime-dependencies-DEdpOj7z.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-Dx6oSqiv.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-DjA-KpD8.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-DjA-KpD8.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 { n as PluginObservability, t as EmitInput } from "../../../adapter-
|
|
1
|
+
import { n as PluginObservability, t as EmitInput } from "../../../adapter-J6IQ0rvr.js";
|
|
2
2
|
export { EmitInput, PluginObservability };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as PluginObservability } from "../../../adapter-
|
|
1
|
+
import { t as PluginObservability } from "../../../adapter-RxQ9CJ7f.js";
|
|
2
2
|
export { PluginObservability };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as ObservableEmbedder } from "../../../observable-embedder-
|
|
1
|
+
import { t as ObservableEmbedder } from "../../../observable-embedder-rKGU0LqW.js";
|
|
2
2
|
export { ObservableEmbedder };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as ObservableLlmClient } from "../../../observable-llm-client-
|
|
1
|
+
import { t as ObservableLlmClient } from "../../../observable-llm-client-Cw04DElM.js";
|
|
2
2
|
export { ObservableLlmClient };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as ObservableMemoryStore } from "../../../observable-memory-store-
|
|
1
|
+
import { t as ObservableMemoryStore } from "../../../observable-memory-store-CHLQvW9E.js";
|
|
2
2
|
export { ObservableMemoryStore };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as ObservableMemoryRetriever } from "../../../observable-retriever-
|
|
1
|
+
import { t as ObservableMemoryRetriever } from "../../../observable-retriever-DJKBEkBC.js";
|
|
2
2
|
export { ObservableMemoryRetriever };
|
|
@@ -4,7 +4,7 @@ import { n as ATOMIC_EXTRACTION_SKILL_HASH } from "../../../atomic-extraction-sk
|
|
|
4
4
|
import { getStateDir } from "../../contract/profile.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-NI-E9zjv.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,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as SESSION_STRATEGIES, t as pluginConfigSchema } from "../../../plugin-config-schema-CC-2N9Xw.js";
|
|
2
2
|
//#region src/engine/shared/types.ts
|
|
3
3
|
const MEMORY_CATEGORIES = [
|
|
4
4
|
"episodic",
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { t as ObserveLogger } from "../../../best-effort-BPZSzKk0.js";
|
|
2
|
-
import { t as EmitInput } from "../../../adapter-
|
|
3
|
-
import { EventLane, EventType, JsonObject } from "@snoai/observability";
|
|
2
|
+
import { t as EmitInput } from "../../../adapter-J6IQ0rvr.js";
|
|
3
|
+
import { AgentId, EventLane, EventType, JsonObject } from "@snoai/observability";
|
|
4
4
|
//#region src/engine/telemetry/observe-ledger.d.ts
|
|
5
5
|
export interface ObserveLedgerRow {
|
|
6
6
|
ts_ms: number;
|
|
7
|
+
agent_id?: AgentId;
|
|
7
8
|
event_type: EventType;
|
|
8
9
|
lane: EventLane;
|
|
9
10
|
project_id?: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { t as observeAgentId } from "../../../plugin-config-observe-schema-BORZ9_7q.js";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
import { createLogger } from "@snoai/utils/logger";
|
|
3
4
|
import { dirname, join } from "node:path";
|
|
@@ -6,6 +7,7 @@ import { appendFileSync, existsSync, mkdirSync, readFileSync, writeFileSync } fr
|
|
|
6
7
|
const log = createLogger("sno-station-mem:observe-ledger");
|
|
7
8
|
const rowSchema = z.object({
|
|
8
9
|
ts_ms: z.number().int().nonnegative(),
|
|
10
|
+
agent_id: z.string().transform(observeAgentId).optional(),
|
|
9
11
|
event_type: z.string(),
|
|
10
12
|
lane: z.string(),
|
|
11
13
|
project_id: z.string().min(1).optional(),
|
|
@@ -92,6 +94,7 @@ async function forwardObserveLedger(options) {
|
|
|
92
94
|
try {
|
|
93
95
|
if (await observe.tryEmit({
|
|
94
96
|
eventType: row.event_type,
|
|
97
|
+
agentId: row.agent_id,
|
|
95
98
|
payload: row.payload,
|
|
96
99
|
tsEdgeMs: row.ts_ms,
|
|
97
100
|
...row.project_id ? { scope: { project_id: row.project_id } } : {}
|
package/dist/{log-site-catalog.generated-DTY6bcLM.js → log-site-catalog.generated-NI-E9zjv.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
//#region package.json
|
|
2
|
-
var version = "1.2.
|
|
2
|
+
var version = "1.2.3";
|
|
3
3
|
//#endregion
|
|
4
4
|
//#region src/engine/observability/log-site-catalog.generated.ts
|
|
5
5
|
const logSiteCatalog = {
|
|
6
|
-
"build_id": "
|
|
6
|
+
"build_id": "e27169af4ffcc15a6403bd19b72f55b5daba806583a785f290564ca561e89ce8",
|
|
7
7
|
"sites": {
|
|
8
8
|
"memory.recall.budget.checked": {
|
|
9
9
|
"file": "packages/memory/src/engine/bindings/memory-recall-tool.ts",
|
|
@@ -743,44 +743,44 @@ const logSiteCatalog = {
|
|
|
743
743
|
"observability.emit.failed": {
|
|
744
744
|
"file": "packages/memory/src/engine/observability/adapter.ts",
|
|
745
745
|
"function": "PluginObservability.tryEmit",
|
|
746
|
-
"line":
|
|
746
|
+
"line": 127,
|
|
747
747
|
"column": 4,
|
|
748
|
-
"file_hash": "
|
|
748
|
+
"file_hash": "983c2252797e36db58d79c7707415222c69965de1325eecd0e0d99f9a8e1820c"
|
|
749
749
|
},
|
|
750
750
|
"adapter.<anonymous callback>.82f49c57a7": {
|
|
751
751
|
"file": "packages/memory/src/engine/observability/adapter.ts",
|
|
752
752
|
"function": "<anonymous callback>",
|
|
753
|
-
"line":
|
|
753
|
+
"line": 151,
|
|
754
754
|
"column": 7,
|
|
755
|
-
"file_hash": "
|
|
755
|
+
"file_hash": "983c2252797e36db58d79c7707415222c69965de1325eecd0e0d99f9a8e1820c"
|
|
756
756
|
},
|
|
757
757
|
"observability.background.timed_out": {
|
|
758
758
|
"file": "packages/memory/src/engine/observability/adapter.ts",
|
|
759
759
|
"function": "PluginObservability.runBackgroundTask",
|
|
760
|
-
"line":
|
|
760
|
+
"line": 205,
|
|
761
761
|
"column": 7,
|
|
762
|
-
"file_hash": "
|
|
762
|
+
"file_hash": "983c2252797e36db58d79c7707415222c69965de1325eecd0e0d99f9a8e1820c"
|
|
763
763
|
},
|
|
764
764
|
"adapter.<anonymous callback>.f036514cb8": {
|
|
765
765
|
"file": "packages/memory/src/engine/observability/adapter.ts",
|
|
766
766
|
"function": "<anonymous callback>",
|
|
767
|
-
"line":
|
|
767
|
+
"line": 242,
|
|
768
768
|
"column": 9,
|
|
769
|
-
"file_hash": "
|
|
769
|
+
"file_hash": "983c2252797e36db58d79c7707415222c69965de1325eecd0e0d99f9a8e1820c"
|
|
770
770
|
},
|
|
771
771
|
"adapter.<anonymous callback>.9aedc01548": {
|
|
772
772
|
"file": "packages/memory/src/engine/observability/adapter.ts",
|
|
773
773
|
"function": "<anonymous callback>",
|
|
774
|
-
"line":
|
|
774
|
+
"line": 281,
|
|
775
775
|
"column": 9,
|
|
776
|
-
"file_hash": "
|
|
776
|
+
"file_hash": "983c2252797e36db58d79c7707415222c69965de1325eecd0e0d99f9a8e1820c"
|
|
777
777
|
},
|
|
778
778
|
"adapter.<anonymous callback>.52f64c2607": {
|
|
779
779
|
"file": "packages/memory/src/engine/observability/adapter.ts",
|
|
780
780
|
"function": "<anonymous callback>",
|
|
781
|
-
"line":
|
|
781
|
+
"line": 323,
|
|
782
782
|
"column": 9,
|
|
783
|
-
"file_hash": "
|
|
783
|
+
"file_hash": "983c2252797e36db58d79c7707415222c69965de1325eecd0e0d99f9a8e1820c"
|
|
784
784
|
},
|
|
785
785
|
"observability.bestEffort.failed": {
|
|
786
786
|
"file": "packages/memory/src/engine/observability/best-effort.ts",
|
|
@@ -1429,9 +1429,9 @@ const logSiteCatalog = {
|
|
|
1429
1429
|
"observe.ledger.failed": {
|
|
1430
1430
|
"file": "packages/memory/src/engine/telemetry/observe-ledger.ts",
|
|
1431
1431
|
"function": "forwardObserveLedger",
|
|
1432
|
-
"line":
|
|
1432
|
+
"line": 61,
|
|
1433
1433
|
"column": 7,
|
|
1434
|
-
"file_hash": "
|
|
1434
|
+
"file_hash": "9374989d9fd58dfd7e9c4f3e56afd751009d927831139809082f7674b2d88bac"
|
|
1435
1435
|
},
|
|
1436
1436
|
"shared.llm-client.resolveRequestTransport.8f631601af": {
|
|
1437
1437
|
"file": "packages/memory/src/model/llm-client.ts",
|