@snoai/memory 1.2.10 → 1.2.12
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/{atomic-memory-extraction-o2v8mp7G.js → atomic-memory-extraction-B5FW2HhR.js} +4 -4
- package/dist/{config-C7LzSWhG.js → config-BWHnCb_Z.js} +32 -1
- package/dist/diagnostic-encoder.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +13 -8
- package/dist/internal/config/settings.js +1 -1
- package/dist/internal/engine/bindings/memory-cli-shared.d.ts +1 -1
- package/dist/internal/engine/bindings/memory-forget-tool.js +1 -1
- package/dist/internal/engine/bindings/memory-list-tool.js +1 -1
- package/dist/internal/engine/bindings/memory-recall-tool.js +2 -2
- package/dist/internal/engine/bindings/memory-reflection-resolve-tool.js +1 -1
- package/dist/internal/engine/bindings/memory-stats-tool.js +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 +2 -2
- 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 +1 -1
- 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 +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 +2 -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 +1 -1
- package/dist/internal/engine/bindings/sno-station-mem-runtime-mode.d.ts +1 -1
- package/dist/internal/engine/extraction/atomic-memory-extraction.js +1 -1
- package/dist/internal/engine/extraction/memory-temporality-classifier.js +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.js +2 -2
- package/dist/internal/engine/reflection/reflection-command-hooks.js +1 -1
- package/dist/internal/engine/reflection/reflection-embedded-generator.js +1 -1
- package/dist/internal/engine/reflection/reflection-injection-hooks.js +1 -1
- package/dist/internal/engine/reflection/reflection-lifecycle-hooks.js +1 -1
- package/dist/internal/engine/reflection/strategy-hook-runner.js +2 -2
- package/dist/internal/engine/retrieval/retriever.d.ts +1 -1
- package/dist/internal/engine/retrieval/retriever.js +1 -1
- package/dist/internal/model/llm-client.js +1 -1
- package/dist/internal/model/llm-mode-routing.js +1 -1
- package/dist/internal/store/maintenance.js +3 -3
- package/dist/internal/store/store.js +1 -1
- package/dist/{llm-client-ConEyQEs.js → llm-client-DPBhPtmQ.js} +20 -3
- package/dist/{log-site-catalog.generated-C9RmyAA0.js → log-site-catalog.generated-B4LkDXe0.js} +15 -15
- package/dist/log-site-catalog.json +1 -1
- package/dist/{memory-runtime-HibOMCFa.js → memory-runtime-D6cAHd34.js} +27 -21
- package/dist/{memory-temporality-classifier-MBJyJdvB.js → memory-temporality-classifier-Bm4-tqB5.js} +2 -2
- package/dist/{memory-tool-dependencies--SrMdT3P.d.ts → memory-tool-dependencies-CWnD5mia.d.ts} +1 -1
- package/dist/{memory-tool-dependencies-DUMY8SwB.js → memory-tool-dependencies-R_yWuFEg.js} +1 -1
- package/dist/{model-call-table-BE97f37s.js → model-call-table-DoIl2S0P.js} +32 -1
- package/dist/{observable-retriever-BZpdv93Y.d.ts → observable-retriever-bJbG9WtJ.d.ts} +1 -1
- package/dist/{profile-section-writer-CmNa95uN.js → profile-section-writer-Cu3ND3j7.js} +2 -2
- package/dist/{reflection-command-hooks-CnTj8cKL.js → reflection-command-hooks-vKpljnqv.js} +3 -3
- package/dist/{reflection-embedded-generator-DR525Moy.js → reflection-embedded-generator-CwTXvERI.js} +1 -1
- package/dist/{rem-batch-executor-8x4FBLtW.js → rem-batch-executor-Cn-MBe4m.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-B_S0CBa7.js} +22 -5
- 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-C2XTjGFr.js} +4 -4
- package/dist/sidecar/main.js +2 -2
- 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-BaaXGrZb.js} +6 -6
- package/dist/{store-BQxkgJTX.js → store-BzWYcvpF.js} +1 -1
- package/dist/{strategy-hook-runner-SvyyGBXw.js → strategy-hook-runner-GaJKb3O8.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.12
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
Needs Node.js 22.22.3+, 24.15.0+ or 25.9.0+. Licensed under Apache-2.0.
|
|
@@ -3,21 +3,21 @@ import "./internal/engine/i18n/locales.js";
|
|
|
3
3
|
import { $ as FIXED_MEMORY_SNO_EXTRACT_PROFILE, Q as FIXED_MEMORY_SNO_EXTRACT_CHAT } from "./signed-registry-constants-yq3DlG3B.js";
|
|
4
4
|
import { redactSecrets } from "./internal/engine/security/redact.js";
|
|
5
5
|
import { t as appendAuditEntry } from "./runtime-audit-log-DK6xAYxh.js";
|
|
6
|
-
import { a as isTerminalLlmFailure, i as createLlmClient, n as LlmClientTerminalError } from "./llm-client-
|
|
6
|
+
import { a as isTerminalLlmFailure, i as createLlmClient, n as LlmClientTerminalError } from "./llm-client-DPBhPtmQ.js";
|
|
7
7
|
import { n as readModelReplyJson } from "./model-reply-text-CKopStP2.js";
|
|
8
8
|
import { resolveLlmRoute } from "./internal/model/llm-mode-routing.js";
|
|
9
9
|
import { n as ATOMIC_EXTRACTION_SKILL_HASH, r as atomicExtractionSkillReference, t as ATOMIC_EXTRACTION_SKILL } from "./atomic-extraction-skill-CcXmuCqL.js";
|
|
10
10
|
import { stripEnvelopeMetadata } from "./internal/engine/extraction/extraction-text-sanitizer.js";
|
|
11
11
|
import { a as sessionZoneCarriedBy, t as calculateCalendarTime } from "./calendar-instruction-CzqZbAPG.js";
|
|
12
|
-
import "./memory-temporality-classifier-
|
|
12
|
+
import "./memory-temporality-classifier-Bm4-tqB5.js";
|
|
13
13
|
import { a as parseAtomicCaptureReply, c as atomic_extraction_response_schema_default, i as fallbackAtomicCapturedFact, l as excludeProgressRecords, n as ATOMIC_ENRICHMENT_RESPONSE_JSON_SCHEMA, o as parseAtomicEnrichmentReply, r as ATOMIC_EXTRACTION_RESPONSE_JSON_SCHEMA, s as parseAtomicExtractionReply, t as ATOMIC_CAPTURE_RESPONSE_JSON_SCHEMA } from "./atomic-extraction-reply-BJ9XV_9s.js";
|
|
14
14
|
import { adapterAViewFromRecord, isAdapterAVerdictReply, parseAdapterAChatVerdict, renderAdapterAChatPrompt, renderAdapterAPrompt } from "./internal/engine/rem/index.js";
|
|
15
15
|
import { n as state_vocabulary_default, r as attribute_dictionary_default, t as relations } from "./relation-dictionary-Cev1kyLe.js";
|
|
16
16
|
import { g as randomUUID$1 } from "./memory-store-shared-CURizQIy.js";
|
|
17
|
-
import { b as normalizeMemoryRelationPredicate, d as normalizeEntityName, f as recordAtomicEntityIdentityJournal, g as readAtomicArrivalRetirementCandidateSet, h as journalAtomicArrivalRetirementRefusal, m as closeAtomicArrivalRetirementTargets, u as listAtomicMemoryEntityCandidates, v as AtomicExtractionCompletedElsewhere } from "./store-
|
|
17
|
+
import { b as normalizeMemoryRelationPredicate, d as normalizeEntityName, f as recordAtomicEntityIdentityJournal, g as readAtomicArrivalRetirementCandidateSet, h as journalAtomicArrivalRetirementRefusal, m as closeAtomicArrivalRetirementTargets, u as listAtomicMemoryEntityCandidates, v as AtomicExtractionCompletedElsewhere } from "./store-BzWYcvpF.js";
|
|
18
18
|
import { o as normalizeTopicToSectionName } from "./b-profile-section-dictionary-provider-BHkoNqgk.js";
|
|
19
19
|
import { r as recordTokenCounter } from "./memory-store-write-validation-B_hDG2zf.js";
|
|
20
|
-
import { i as prepareDeterministicTaskLifecycleWrite, t as PROFILE_IDENTITY_SECTION } from "./profile-section-writer-
|
|
20
|
+
import { i as prepareDeterministicTaskLifecycleWrite, t as PROFILE_IDENTITY_SECTION } from "./profile-section-writer-Cu3ND3j7.js";
|
|
21
21
|
import { z } from "zod";
|
|
22
22
|
import { countTokens } from "@snoai/chunking";
|
|
23
23
|
import { createLogger, currentLogContext, privateLogReference, withLogContext } from "@snoai/utils/logger";
|
|
@@ -2229,6 +2229,37 @@ const MODEL_CALLS = {
|
|
|
2229
2229
|
}
|
|
2230
2230
|
}
|
|
2231
2231
|
};
|
|
2232
|
+
/** Sno GPU workload label per call (GPU_REQUEST_METADATA_STANDARD): what the caller is doing, one stable value per group. */
|
|
2233
|
+
const MODEL_CALL_WORKLOAD = {
|
|
2234
|
+
E1: "station-extract",
|
|
2235
|
+
E2: "station-extract",
|
|
2236
|
+
E3: "station-extract",
|
|
2237
|
+
E4: "station-extract",
|
|
2238
|
+
E5: "station-extract",
|
|
2239
|
+
E6: "station-subject",
|
|
2240
|
+
E7: "station-subject",
|
|
2241
|
+
E8: "station-subject",
|
|
2242
|
+
E9: "station-profile-key",
|
|
2243
|
+
E12: "station-profile-key",
|
|
2244
|
+
E10: "station-verdict",
|
|
2245
|
+
P1: "station-verdict",
|
|
2246
|
+
P2: "station-profile-merge",
|
|
2247
|
+
P3: "station-profile-merge",
|
|
2248
|
+
P4: "station-profile-merge",
|
|
2249
|
+
P5: "station-profile-merge",
|
|
2250
|
+
P6: "station-profile-merge",
|
|
2251
|
+
REM1: "station-rem-replace",
|
|
2252
|
+
REM2: "station-rem-replace",
|
|
2253
|
+
REM3: "station-rem-replace",
|
|
2254
|
+
REM4: "station-rem-replace",
|
|
2255
|
+
REM5: "station-rem-update",
|
|
2256
|
+
REM6: "station-rem-update",
|
|
2257
|
+
REM7: "station-rem-update",
|
|
2258
|
+
REM8: "station-rem-update",
|
|
2259
|
+
E11: "station-aux",
|
|
2260
|
+
T1: "station-aux",
|
|
2261
|
+
R1: "station-aux"
|
|
2262
|
+
};
|
|
2232
2263
|
function modelCallDestination(callId, mode, modelCalls) {
|
|
2233
2264
|
return modelCalls[callId][mode];
|
|
2234
2265
|
}
|
|
@@ -2644,4 +2675,4 @@ function readMaintenanceOverrides() {
|
|
|
2644
2675
|
};
|
|
2645
2676
|
}
|
|
2646
2677
|
//#endregion
|
|
2647
|
-
export {
|
|
2678
|
+
export { FIXED_IDX_MEMORY_ACTIVE_TASK_CURRENT_REVISION as $, MAX_CANDIDATE_POOL_SIZE as $n, FIXED_PROTOCOL_VALUE_79 as $t, modelCallDestination as A, DEFAULT_REFLECTION_ERROR_SCAN_MAX_CHARS as An, MEMORY_DEFAULT_SKIN_ID as Ar, FIXED_MEMORY_PROFILE_RECOVERY_ENTRIES as At, FIXED_EXTERNAL_VALUE_49 as B, FORGET_QUERY_MIN_SCORE as Bn, FIXED_PROTOCOL_VALUE_63 as Bt, getSnoStationMemStateDir as C, CHUNK_OVERLAP_TOKENS as Cn, CachedEmbeddingProvider as Cr, FIXED_MEMORY_CHUNKS_MEM_FACET_IDX as Ct, settingsToPluginConfig as D, DEFAULT_IMPORTANCE as Dn, LocalEmbedProvider as Dr, FIXED_MEMORY_MEMORIES_FACT_ID_INSERT_GUARD as Dt, defaultSettings as E, DEFAULT_BM25_WEIGHT as En, LOCAL_EMBEDDING_MODEL_REVISION as Er, FIXED_MEMORY_MEMORIES as Et, observeConfigSchema as F, DEFAULT_VECTOR_WEIGHT as Fn, REM_SIDECAR_TOKEN_HEADER as Fr, FIXED_MEMORY_SNO_AI_EXTRACT as Ft, FIXED_EXTERNAL_VALUE_55 as G, IMPORTANCE_WEIGHT_BASE as Gn, FIXED_PROTOCOL_VALUE_68 as Gt, FIXED_EXTERNAL_VALUE_52 as H, HEAD_EXTRACT_MIN_CONTENT_TOKENS as Hn, FIXED_PROTOCOL_VALUE_65 as Ht, extractionConfigSchema as I, EMBEDDER_DIM as In, memoryMethod as Ir, FIXED_MEMORY_SNO_EXTRACT_CHAT as It, FIXED_EXTERNAL_VALUE_58 as J, LIGHTWEIGHT_COSINE_WEIGHT as Jn, FIXED_PROTOCOL_VALUE_74 as Jt, FIXED_EXTERNAL_VALUE_56 as K, INTEGRITY_CHECK_INTERVAL_MS as Kn, FIXED_PROTOCOL_VALUE_69 as Kt, memoryReflectionConfigSchema as L, EMBEDDER_MODEL_DEFAULT as Ln, FIXED_MEMORY_SNO_EXTRACT_PROFILE as Lt, retrievalConfigSchema as M, DEFAULT_RERANK_MODEL as Mn, MEMORY_RECONNECT_INTERVAL_MS as Mr, FIXED_MEMORY_PROVIDER_PROJECT_AGENTS as Mt, isObserveAgentId as N, DEFAULT_RERANK_TIMEOUT_MS as Nn, MEMORY_ROUTES as Nr, FIXED_MEMORY_PROVIDER_PROJECT_MAPPINGS as Nt, MODEL_CALLS as O, DEFAULT_RECALL_LIFECYCLE as On, ensureModelDownloaded as Or, FIXED_MEMORY_MEMORIES_FACT_ID_UPDATE_GUARD as Ot, observeAgentId as P, DEFAULT_SCOPE as Pn, MEMORY_SKIN_HEADER as Pr, FIXED_MEMORY_ROW_PATH_PATTERN as Pt, FIXED_IDX_MEMORY as Q, MAX_AGGREGATION_RESULT_TOKENS as Qn, FIXED_PROTOCOL_VALUE_78 as Qt, selfImprovementConfigSchema as R, EMBEDDER_PROVIDER_DEFAULT as Rn, FIXED_MEMORY_TASK_LIFECYCLE_COMMANDS as Rt, getSidecarSocketPath as S, CHUNK_MIN_TOKENS as Sn, recallLifecycleSchema as Sr, FIXED_MEMORY_CHUNKS_MEMORY_ID_IDX as St, readSettings as T, CHUNK_TOKENIZER_MODE as Tn, LOCAL_EMBEDDING_MODEL as Tr, FIXED_MEMORY_EXTRACTION_TIMESTAMPS as Tt, FIXED_EXTERNAL_VALUE_53 as U, HEAD_EXTRACT_OVERLAP_DROP_RATIO as Un, FIXED_PROTOCOL_VALUE_66 as Ut, FIXED_EXTERNAL_VALUE_51 as V, FTS_MERGE_INTERVAL_MS as Vn, FIXED_PROTOCOL_VALUE_64 as Vt, FIXED_EXTERNAL_VALUE_54 as W, HEAD_EXTRACT_TOKEN_BUDGET as Wn, FIXED_PROTOCOL_VALUE_67 as Wt, FIXED_EXTERNAL_VALUE_8 as X, LIGHTWEIGHT_RERANK_PENALTY as Xn, FIXED_PROTOCOL_VALUE_76 as Xt, FIXED_EXTERNAL_VALUE_62 as Y, LIGHTWEIGHT_FUSION_WEIGHT as Yn, FIXED_PROTOCOL_VALUE_75 as Yt, FIXED_EXTERNAL_VALUE_9 as Z, MAINTENANCE_TICK_MS as Zn, FIXED_PROTOCOL_VALUE_77 as Zt, readRemTestHoldMs as _, BACKUP_MIN_FREE_DISK_RATIO as _n, USAGE_EVENT_RETENTION_INTERVAL_MS as _r, FIXED_MEMORY_CHUNKS as _t, REM_MODEL_OUTPUT_TOKEN_CAP as a, PERSISTED_PROVIDER_SYSTEM as an, MMR_LAMBDA as ar, FIXED_IDX_MEMORY_MEMORIES_LANE_PROJECT as at, getPrincipal as b, CHUNKING_VERSION as bn, experimentCandidatePoolOverride as br, FIXED_MEMORY_CHUNKS_AU as bt, REM_SIDECAR_ORIGIN as c, SUPPORTED_LOCALES as cn, PLANNER_STATISTICS_INTERVAL_MS as cr, FIXED_IDX_MEMORY_MEMORIES_PROJECT_FACT_KEY_ACTIVE as ct, getRemDiscoveryPath as d, ADJACENCY_BONUS_PER_PAIR as dn, REM_TRIGGER_CHECK_INTERVAL_MS as dr, FIXED_MEMORY_ACTIVE_TASK_EVIDENCE as dt, FIXED_VEC_MEMORY as en, MAX_CHUNK_FETCH_LIMIT as er, FIXED_IDX_MEMORY_ACTIVE_TASK_EVIDENCE_INSTANCE as et, getRemJobJournalPath as f, ATOMIC_CAPTURE_OUTPUT_TOKEN_BUDGET as fn, RERANK_BLEND_CROSS as fr, FIXED_MEMORY_ACTIVE_TASK_INSTANCES as ft, readRemOperationalConfig as g, BACKUP_INTERVAL_MS as gn, TIME_DECAY_FLOOR as gr, FIXED_MEMORY_ACTIVE_TASK_TRANSITIONS as gt, readMaintenanceOverrides as h, ATOMIC_EXTRACTION_MAX_INPUT_TOKENS as hn, SNO_OBSERVE_FLUSH_TIMEOUT_MS as hr, FIXED_MEMORY_ACTIVE_TASK_REVISIONS as ht, REM_JOBS_PATH_PREFIX as i, PERSISTED_CONTENT_HASH_V3 as in, MIN_RECALL_TOKEN_BUDGET as ir, FIXED_IDX_MEMORY_MEMORIES_FACT_ID as it, SESSION_STRATEGIES as j, DEFAULT_REFLECTION_SESSION_TTL_MS as jn, MEMORY_ERROR_STATUS as jr, FIXED_MEMORY_PROVIDER_AGENT_MAPPINGS as jt, MODEL_CALL_WORKLOAD as k, DEFAULT_RECALL_TOKEN_BUDGET as kn, MEMORY_BODY_LIMIT_BYTES as kr, FIXED_MEMORY_MIGRATION_MARKERS as kt, REM_SOURCE as l, isSupportedLocale as ln, RECENCY_WEIGHT as lr, FIXED_IDX_MEMORY_MEMORIES_PROJECT_TIMESTAMP as lt, isRemTraceEnabled as m, ATOMIC_ENRICHMENT_OUTPUT_TOKEN_BUDGET as mn, RETRIEVAL_STORAGE_CHUNK_PROFILE as mr, FIXED_MEMORY_ACTIVE_TASK_MIGRATION_MANIFESTS as mt, MEMORY_USAGE_FLUSH_INTERVAL_MS as n, PERSISTED_CANDIDATE_HASH_V1 as nn, MAX_RECALLED_TODO_TOKENS as nr, FIXED_IDX_MEMORY_MEMORIES_CATEGORY as nt, REM_RUN_PATH as o, embeddingConfigSchema as on, MULTI_HIT_BONUS_CAP as or, FIXED_IDX_MEMORY_MEMORIES_PROJECT as ot, getRemTraceLogPath as p, ATOMIC_CAPTURE_TIMEOUT_MS as pn, RERANK_BLEND_VECTOR as pr, FIXED_MEMORY_ACTIVE_TASK_MIGRATION_EVIDENCE as pt, FIXED_EXTERNAL_VALUE_57 as q, INTRA_MEMORY_COSINE_THRESHOLD as qn, FIXED_PROTOCOL_VALUE_73 as qt, REM_CORRELATION_ID_HEADER as r, PERSISTED_CONTENT_HASH_V1 as rn, MEMORY_SHUTDOWN_TIMEOUT_MS as rr, FIXED_IDX_MEMORY_MEMORIES_CONTENT_HASH as rt, REM_SIDECAR_HOST as s, llmRoutingConfigSchema as sn, MULTI_HIT_BONUS_PER_HIT as sr, FIXED_IDX_MEMORY_MEMORIES_PROJECT_CONTENT_HASH as st, HEALTH_PATH as t, FIXED_VEC_MEMORY_CHUNKS as tn, MAX_LIST_LIMIT as tr, FIXED_IDX_MEMORY_ACTIVE_TASK_INSTANCES_PROJECTION as tt, getRemChassisJournalPath as u, ADJACENCY_BONUS_CAP as un, REFLECTION_SLICE_CACHE_TTL_MS as ur, FIXED_MEMORY as ut, SettingsUnavailableError as v, BONUS_TOTAL_INVARIANT as vn, USAGE_OUTBOX_INTERVAL_MS as vr, FIXED_MEMORY_CHUNKS_AD as vt, getStateDir as w, CHUNK_TARGET_TOKENS as wn, LOCAL_EMBEDDING_CACHE_DIR_DEFAULT as wr, FIXED_MEMORY_CHUNKS_MEM_IDX as wt, getSettingsPath as x, CHUNK_MAX_TOKENS as xn, experimentMmrDisabled as xr, FIXED_MEMORY_CHUNKS_FTS as xt, getDiscoveryPath as y, CACHE_TTL_MS as yn, VECTOR_DIMENSION_DEFAULT as yr, FIXED_MEMORY_CHUNKS_AI as yt, sessionMemoryConfigSchema as z, EVAL_QA_TRACES_FILENAME as zn, FIXED_MEMORY_UNPLACED_CANDIDATES as zt };
|
|
@@ -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-B4LkDXe0.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
|
@@ -12,21 +12,21 @@ import { pruneOldestEntries, setLruEntry } from "./internal/engine/shared/lru.js
|
|
|
12
12
|
import { m as CODING_SKIN_SESSION_QUERY, o as CODING_SKIN_LEDGER_MAX_CHARS } from "./coding-skin-azRXA51Z.js";
|
|
13
13
|
import { defaultSettings } from "./internal/config/settings.js";
|
|
14
14
|
import { t as appendAuditEntry } from "./runtime-audit-log-DK6xAYxh.js";
|
|
15
|
-
import { i as createLlmClient } from "./llm-client-
|
|
15
|
+
import { i as createLlmClient } from "./llm-client-DPBhPtmQ.js";
|
|
16
16
|
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
|
-
import { a as serializeIntervalMetadata, o as resolveMemoryDate } from "./memory-temporality-classifier-
|
|
18
|
+
import { a as serializeIntervalMetadata, o as resolveMemoryDate } from "./memory-temporality-classifier-Bm4-tqB5.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
|
-
import { t as createReflectionStrategyState } from "./strategy-hook-runner-
|
|
22
|
+
import { t as createReflectionStrategyState } from "./strategy-hook-runner-GaJKb3O8.js";
|
|
23
23
|
import { buildInsightDistiller } from "./internal/engine/bindings/sno-station-mem-insight-distill-factory.js";
|
|
24
24
|
import { onAgentEnd } from "./internal/engine/bindings/sno-station-mem-ambient-learning-hook.js";
|
|
25
25
|
import { executeMemoryStoreTool } from "./internal/engine/bindings/memory-store-tool.js";
|
|
26
26
|
import { executeMemoryForgetTool } from "./internal/engine/bindings/memory-forget-tool.js";
|
|
27
27
|
import { executeMemoryUpdateTool } from "./internal/engine/bindings/memory-update-tool.js";
|
|
28
28
|
import { executeMemoryReflectionResolveTool } from "./internal/engine/bindings/memory-reflection-resolve-tool.js";
|
|
29
|
-
import { t as createRunMemoryReflection } from "./reflection-command-hooks-
|
|
29
|
+
import { t as createRunMemoryReflection } from "./reflection-command-hooks-vKpljnqv.js";
|
|
30
30
|
import { createReflectionLifecycleHandler1, createReflectionLifecycleHandler2 } from "./internal/engine/reflection/reflection-lifecycle-hooks.js";
|
|
31
31
|
import { createReflectionInjectionHandler1, createReflectionInjectionHandler2, createReflectionInjectionHandler3 } from "./internal/engine/reflection/reflection-injection-hooks.js";
|
|
32
32
|
import { z } from "zod";
|
|
@@ -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");
|
|
@@ -2,7 +2,7 @@ import { c as SESSION_STRATEGIES, t as pluginConfigSchema } from "../../plugin-c
|
|
|
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";
|
|
5
|
-
import { t as MODEL_CALLS } from "../../model-call-table-
|
|
5
|
+
import { t as MODEL_CALLS } from "../../model-call-table-DoIl2S0P.js";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
import { LOCAL_EMBEDDING_MODEL_REVISION } from "@snoai/embedder";
|
|
8
8
|
import { isLowercaseCanonicalUUIDv7 } from "@snoai/common-core";
|
|
@@ -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";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FORGET_QUERY_MIN_SCORE, MAX_CANDIDATE_POOL_SIZE } from "../../config/index.js";
|
|
2
2
|
import { SnoStationMemError } from "../shared/errors.js";
|
|
3
3
|
import { clamp01, clampInt } from "../shared/utils.js";
|
|
4
|
-
import "../../../memory-tool-dependencies-
|
|
4
|
+
import "../../../memory-tool-dependencies-R_yWuFEg.js";
|
|
5
5
|
import { assertAccessibleScopeForTool, isScopeAccessibleForTool, resolveReadableScopesForTool } from "./memory-tool-access.js";
|
|
6
6
|
import { makeResult, runWithAudit } from "./memory-tool-results.js";
|
|
7
7
|
import { forgetParamsSchema } from "./memory-tool-schemas.js";
|
|
@@ -3,7 +3,7 @@ import { normalizeCategory } from "../shared/types.js";
|
|
|
3
3
|
import { SnoStationMemError } from "../shared/errors.js";
|
|
4
4
|
import { clampInt } from "../shared/utils.js";
|
|
5
5
|
import { readEstimatedSpendToday } from "../operations/daily-spend-estimator.js";
|
|
6
|
-
import "../../../memory-tool-dependencies-
|
|
6
|
+
import "../../../memory-tool-dependencies-R_yWuFEg.js";
|
|
7
7
|
import { assertAccessibleScopeForTool, resolveReadableScopesForTool } from "./memory-tool-access.js";
|
|
8
8
|
import { serializeMemory } from "./memory-tool-formatting.js";
|
|
9
9
|
import { makeResult, runWithAudit } from "./memory-tool-results.js";
|
|
@@ -3,12 +3,12 @@ import { normalizeCategory } from "../shared/types.js";
|
|
|
3
3
|
import { truncateGraphemes } from "../shared/i18n-text.js";
|
|
4
4
|
import { clamp01, clampInt } from "../shared/utils.js";
|
|
5
5
|
import { formatAtDepth } from "../retrieval/intent-analyzer.js";
|
|
6
|
-
import { t as countTokens } from "../../../memory-tool-dependencies-
|
|
6
|
+
import { t as countTokens } from "../../../memory-tool-dependencies-R_yWuFEg.js";
|
|
7
7
|
import { assertAccessibleScopeForTool, resolveReadableScopesForTool } from "./memory-tool-access.js";
|
|
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 { clampInt } from "../shared/utils.js";
|
|
2
|
-
import "../../../memory-tool-dependencies-
|
|
2
|
+
import "../../../memory-tool-dependencies-R_yWuFEg.js";
|
|
3
3
|
import { assertAccessibleScopeForTool, isScopeAccessibleForTool, resolveReadableScopesForTool } from "./memory-tool-access.js";
|
|
4
4
|
import { makeResult, runWithAudit } from "./memory-tool-results.js";
|
|
5
5
|
import { t as parseReflectionMetadata } from "../../../entry-metadata-parser-BIVSMCIk.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as isSystemBypassId } from "../../../memory-scope-policy--TiLZnrE.js";
|
|
2
2
|
import { readEstimatedSpendToday } from "../operations/daily-spend-estimator.js";
|
|
3
|
-
import "../../../memory-tool-dependencies-
|
|
3
|
+
import "../../../memory-tool-dependencies-R_yWuFEg.js";
|
|
4
4
|
import { assertAccessibleScopeForTool, getStoreScopeFilterForTool, resolveReadableScopesForTool } from "./memory-tool-access.js";
|
|
5
5
|
import { makeResult, runWithAudit } from "./memory-tool-results.js";
|
|
6
6
|
import { statsParamsSchema } from "./memory-tool-schemas.js";
|
|
@@ -5,12 +5,12 @@ import { clamp01, stableHash } from "../shared/utils.js";
|
|
|
5
5
|
import { t as appendAuditEntry } from "../../../runtime-audit-log-DK6xAYxh.js";
|
|
6
6
|
import { a as detectCategory } from "../../../capture-policy-detector-DaMfy9CZ.js";
|
|
7
7
|
import { stripEnvelopeMetadata } from "../extraction/extraction-text-sanitizer.js";
|
|
8
|
-
import { a as serializeIntervalMetadata, o as resolveMemoryDate } from "../../../memory-temporality-classifier-
|
|
9
|
-
import "../../../memory-tool-dependencies-
|
|
8
|
+
import { a as serializeIntervalMetadata, o as resolveMemoryDate } from "../../../memory-temporality-classifier-Bm4-tqB5.js";
|
|
9
|
+
import "../../../memory-tool-dependencies-R_yWuFEg.js";
|
|
10
10
|
import { assertAccessibleScopeForTool, getDefaultScopeForTool } from "./memory-tool-access.js";
|
|
11
11
|
import { makeResult, runWithAudit } from "./memory-tool-results.js";
|
|
12
12
|
import { storeParamsSchema } from "./memory-tool-schemas.js";
|
|
13
|
-
import { n as createRetireByNameRunBudget, r as runProfileSectionUpdate } from "../../../profile-section-writer-
|
|
13
|
+
import { n as createRetireByNameRunBudget, r as runProfileSectionUpdate } from "../../../profile-section-writer-Cu3ND3j7.js";
|
|
14
14
|
//#region src/engine/bindings/memory-store-tool.ts
|
|
15
15
|
/** @file memory-store-tool.ts
|
|
16
16
|
* @purpose Registers the memory_store tool.
|
|
@@ -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 { SnoStationMemError } from "../shared/errors.js";
|
|
2
|
-
import "../../../memory-tool-dependencies-
|
|
2
|
+
import "../../../memory-tool-dependencies-R_yWuFEg.js";
|
|
3
3
|
//#region src/engine/bindings/memory-tool-access.ts
|
|
4
4
|
function assertAccessibleScope(scopePolicy, scope, agentId) {
|
|
5
5
|
const normalized = scope.trim();
|
|
@@ -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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RetrievalError, SnoStationMemError } from "../shared/errors.js";
|
|
2
|
-
import { n as z } from "../../../memory-tool-dependencies-
|
|
2
|
+
import { n as z } from "../../../memory-tool-dependencies-R_yWuFEg.js";
|
|
3
3
|
import { createLogger } from "@snoai/utils/logger";
|
|
4
4
|
//#region src/engine/bindings/memory-tool-results.ts
|
|
5
5
|
/** @file memory-tool-results.ts
|
|
@@ -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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AGGREGATION_OPERATIONS, MEMORY_CATEGORIES } from "../shared/types.js";
|
|
2
|
-
import { n as z } from "../../../memory-tool-dependencies-
|
|
2
|
+
import { n as z } from "../../../memory-tool-dependencies-R_yWuFEg.js";
|
|
3
3
|
//#region src/engine/bindings/memory-tool-schemas.ts
|
|
4
4
|
const TOOL_CATEGORY_INPUTS = [...MEMORY_CATEGORIES];
|
|
5
5
|
const toolCategoryInputSchema = z.enum(TOOL_CATEGORY_INPUTS);
|
|
@@ -5,8 +5,8 @@ import { h as deriveFactKey } from "../../../memory-metadata-codec-DL1sbJiN.js";
|
|
|
5
5
|
import { clamp01 } from "../shared/utils.js";
|
|
6
6
|
import { t as appendAuditEntry } from "../../../runtime-audit-log-DK6xAYxh.js";
|
|
7
7
|
import { stripEnvelopeMetadata } from "../extraction/extraction-text-sanitizer.js";
|
|
8
|
-
import { a as serializeIntervalMetadata, o as resolveMemoryDate } from "../../../memory-temporality-classifier-
|
|
9
|
-
import "../../../memory-tool-dependencies-
|
|
8
|
+
import { a as serializeIntervalMetadata, o as resolveMemoryDate } from "../../../memory-temporality-classifier-Bm4-tqB5.js";
|
|
9
|
+
import "../../../memory-tool-dependencies-R_yWuFEg.js";
|
|
10
10
|
import { parseEntryMetadata } from "./memory-tool-formatting.js";
|
|
11
11
|
import { makeResult, runWithAudit } from "./memory-tool-results.js";
|
|
12
12
|
import { updateParamsSchema } from "./memory-tool-schemas.js";
|
|
@@ -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";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { DEFAULT_IMPORTANCE } from "../../config/index.js";
|
|
2
2
|
import { redactSecrets } from "../security/redact.js";
|
|
3
3
|
import { t as checkMemoryOperation } from "../../../operation-cancellation-CTKWwNHk.js";
|
|
4
|
-
import {
|
|
4
|
+
import { r as modelCallDestination } from "../../../model-call-table-DoIl2S0P.js";
|
|
5
5
|
import { t as appendAuditEntry } from "../../../runtime-audit-log-DK6xAYxh.js";
|
|
6
6
|
import { t as normalizeAmbientLearningText } from "../../../ambient-learning-text-normalizer-CxjATmMp.js";
|
|
7
|
-
import { a as serializeIntervalMetadata, i as parseSessionTimestamp, s as unresolvedMemoryDate } from "../../../memory-temporality-classifier-
|
|
7
|
+
import { a as serializeIntervalMetadata, i as parseSessionTimestamp, s as unresolvedMemoryDate } from "../../../memory-temporality-classifier-Bm4-tqB5.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-BaaXGrZb.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-BaaXGrZb.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
|
-
import { r as createSignedAtomicMemoryExtractionTransports, t as AtomicInsightDistiller } from "../../../atomic-memory-extraction-
|
|
4
|
-
import "../../../sno-station-mem-runtime-dependencies-
|
|
3
|
+
import { r as createSignedAtomicMemoryExtractionTransports, t as AtomicInsightDistiller } from "../../../atomic-memory-extraction-B5FW2HhR.js";
|
|
4
|
+
import "../../../sno-station-mem-runtime-dependencies-BaaXGrZb.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
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { nt as FIXED_PROTOCOL_VALUE_63, wt as PERSISTED_PROVIDER_SYSTEM } from "../../../signed-registry-constants-yq3DlG3B.js";
|
|
2
2
|
import { parseIsoDateTimeMs } from "../shared/iso-date-time.js";
|
|
3
3
|
import { t as normalizeAmbientLearningText } from "../../../ambient-learning-text-normalizer-CxjATmMp.js";
|
|
4
|
-
import { a as escapeTranscriptRoleContinuations } from "../../../atomic-memory-extraction-
|
|
5
|
-
import "../../../sno-station-mem-runtime-dependencies-
|
|
4
|
+
import { a as escapeTranscriptRoleContinuations } from "../../../atomic-memory-extraction-B5FW2HhR.js";
|
|
5
|
+
import "../../../sno-station-mem-runtime-dependencies-BaaXGrZb.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 { i as runAtomicMemoryExtraction, n as createAtomicResplitTransport, r as createSignedAtomicMemoryExtractionTransports, t as AtomicInsightDistiller } from "../../../atomic-memory-extraction-
|
|
1
|
+
import { i as runAtomicMemoryExtraction, n as createAtomicResplitTransport, r as createSignedAtomicMemoryExtractionTransports, t as AtomicInsightDistiller } from "../../../atomic-memory-extraction-B5FW2HhR.js";
|
|
2
2
|
export { AtomicInsightDistiller, createAtomicResplitTransport, createSignedAtomicMemoryExtractionTransports, runAtomicMemoryExtraction };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as serializeIntervalMetadata, i as parseSessionTimestamp, n as inferExpiry, r as inferTemporalInterval, t as classifyTemporal } from "../../../memory-temporality-classifier-
|
|
1
|
+
import { a as serializeIntervalMetadata, i as parseSessionTimestamp, n as inferExpiry, r as inferTemporalInterval, t as classifyTemporal } from "../../../memory-temporality-classifier-Bm4-tqB5.js";
|
|
2
2
|
export { classifyTemporal, inferExpiry, inferTemporalInterval, parseSessionTimestamp, serializeIntervalMetadata };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StorageError } from "../shared/errors.js";
|
|
2
2
|
import { d as runWithMemoryAuditSync, u as runWithMemoryAudit } from "../../../runtime-audit-log-DK6xAYxh.js";
|
|
3
3
|
import { getSnoStationMemStateDir } from "../../contract/profile.js";
|
|
4
|
-
import { x as MemoryStore } from "../../../store-
|
|
4
|
+
import { x as MemoryStore } from "../../../store-BzWYcvpF.js";
|
|
5
5
|
import { t as countEmbeddingTokens } from "../../../token-counter-BD1f48Km.js";
|
|
6
6
|
import { isAbsolute } from "node:path";
|
|
7
7
|
import { detectProjectId } from "@snoai/observability";
|
|
@@ -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;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as MODEL_CALLS } from "../../../model-call-table-
|
|
1
|
+
import { t as MODEL_CALLS } from "../../../model-call-table-DoIl2S0P.js";
|
|
2
2
|
import { getStateDir } from "../../contract/profile.js";
|
|
3
3
|
import { pickLlmRoutingConfig, resolveLlmRoute } from "../../model/llm-mode-routing.js";
|
|
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-B4LkDXe0.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 { t as createRunMemoryReflection } from "../../../reflection-command-hooks-
|
|
1
|
+
import { t as createRunMemoryReflection } from "../../../reflection-command-hooks-vKpljnqv.js";
|
|
2
2
|
export { createRunMemoryReflection };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as resolveWorkspaceDirFromEvent, i as pruneReflectionState, n as createReflectionGenerator, r as isInternalReflectionSessionKey, t as DEFAULT_MEMORY_LLM_CONFIG } from "../../../reflection-embedded-generator-
|
|
1
|
+
import { a as resolveWorkspaceDirFromEvent, i as pruneReflectionState, n as createReflectionGenerator, r as isInternalReflectionSessionKey, t as DEFAULT_MEMORY_LLM_CONFIG } from "../../../reflection-embedded-generator-CwTXvERI.js";
|
|
2
2
|
export { DEFAULT_MEMORY_LLM_CONFIG, createReflectionGenerator, isInternalReflectionSessionKey, pruneReflectionState, resolveWorkspaceDirFromEvent };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { vt as FIXED_PROTOCOL_VALUE_79 } from "../../../signed-registry-constants-yq3DlG3B.js";
|
|
2
|
-
import { c as getReflectionDerivedSuppression, d as getReflectionDerivedCacheEntry, r as isInternalReflectionSessionKey, s as deleteReflectionDerivedSuppression } from "../../../reflection-embedded-generator-
|
|
2
|
+
import { c as getReflectionDerivedSuppression, d as getReflectionDerivedCacheEntry, r as isInternalReflectionSessionKey, s as deleteReflectionDerivedSuppression } from "../../../reflection-embedded-generator-CwTXvERI.js";
|
|
3
3
|
import { createLogger, privateLogReference } from "@snoai/utils/logger";
|
|
4
4
|
//#region src/engine/reflection/reflection-injection-hooks.ts
|
|
5
5
|
const diagnosticLog = createLogger("sno-station-mem:reflection-injection-hooks");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DEFAULT_REFLECTION_ERROR_SCAN_MAX_CHARS } from "../../config/index.js";
|
|
2
2
|
import { a as sha256Hex, i as normalizeErrorSignature, o as summarizeErrorText, r as extractTextFromToolResult, t as containsErrorSignal } from "../../../error-signals-lMH2uAdV.js";
|
|
3
|
-
import { r as isInternalReflectionSessionKey, s as deleteReflectionDerivedSuppression } from "../../../reflection-embedded-generator-
|
|
3
|
+
import { r as isInternalReflectionSessionKey, s as deleteReflectionDerivedSuppression } from "../../../reflection-embedded-generator-CwTXvERI.js";
|
|
4
4
|
//#region src/engine/reflection/reflection-lifecycle-hooks.ts
|
|
5
5
|
/** @file reflection-lifecycle-hooks.ts
|
|
6
6
|
* @purpose Tracks reflection error signals and clears per-session state.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { r as isInternalReflectionSessionKey } from "../../../reflection-embedded-generator-
|
|
2
|
-
import { t as createReflectionStrategyState } from "../../../strategy-hook-runner-
|
|
1
|
+
import { r as isInternalReflectionSessionKey } from "../../../reflection-embedded-generator-CwTXvERI.js";
|
|
2
|
+
import { t as createReflectionStrategyState } from "../../../strategy-hook-runner-GaJKb3O8.js";
|
|
3
3
|
export { createReflectionStrategyState, isInternalReflectionSessionKey };
|
|
@@ -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 };
|