@snoai/memory 1.2.11 → 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.js +4 -4
- package/dist/internal/config/settings.js +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 +1 -1
- package/dist/internal/engine/bindings/memory-reflection-resolve-tool.js +1 -1
- package/dist/internal/engine/bindings/memory-stats-tool.js +1 -1
- package/dist/internal/engine/bindings/memory-store-tool.js +3 -3
- package/dist/internal/engine/bindings/memory-tool-access.js +1 -1
- package/dist/internal/engine/bindings/memory-tool-results.js +1 -1
- 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.js +3 -3
- 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.js +2 -2
- package/dist/internal/engine/bindings/sno-station-mem-message-transcript.js +2 -2
- 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/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/model/llm-client.js +1 -1
- package/dist/internal/model/llm-mode-routing.js +1 -1
- package/dist/internal/store/maintenance.js +2 -2
- 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-Dzgj9o5c.js → log-site-catalog.generated-B4LkDXe0.js} +4 -4
- package/dist/log-site-catalog.json +1 -1
- package/dist/{memory-runtime-C8ZIW2WL.js → memory-runtime-D6cAHd34.js} +6 -6
- package/dist/{memory-temporality-classifier-MBJyJdvB.js → memory-temporality-classifier-Bm4-tqB5.js} +2 -2
- 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/{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-DbV8Y-B-.js → rem-batch-executor-Cn-MBe4m.js} +1 -1
- package/dist/{rem-trigger-BSrGyG0s.js → rem-trigger-B_S0CBa7.js} +20 -3
- package/dist/{server-CjwHZY1P.js → server-C2XTjGFr.js} +4 -4
- package/dist/sidecar/main.js +2 -2
- package/dist/{sno-station-mem-runtime-dependencies-DlvM6mL7.js → sno-station-mem-runtime-dependencies-BaaXGrZb.js} +5 -5
- 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.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
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";
|
|
@@ -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,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,7 +3,7 @@ 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";
|
|
@@ -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 { 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 { 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
|
|
@@ -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";
|
|
@@ -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";
|
|
@@ -8,7 +8,7 @@ import { episodicEventDate, saidOnDate, sourceQuote } from "./memory-tool-format
|
|
|
8
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";
|
|
@@ -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
|
|
@@ -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,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,3 +1,3 @@
|
|
|
1
|
-
import { a as isTerminalLlmFailure, i as createLlmClient, n as LlmClientTerminalError, r as ModelCallRefusedError, t as JSON_SYSTEM_CONTENT } from "../../llm-client-
|
|
1
|
+
import { a as isTerminalLlmFailure, i as createLlmClient, n as LlmClientTerminalError, r as ModelCallRefusedError, t as JSON_SYSTEM_CONTENT } from "../../llm-client-DPBhPtmQ.js";
|
|
2
2
|
import { a as repairCommonJson, r as extractJsonFromResponse } from "../../model-reply-text-CKopStP2.js";
|
|
3
3
|
export { JSON_SYSTEM_CONTENT, LlmClientTerminalError, ModelCallRefusedError, createLlmClient, extractJsonFromResponse, isTerminalLlmFailure, repairCommonJson };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { llmRoutingConfigSchema } from "../config/product-mode.js";
|
|
2
|
-
import {
|
|
2
|
+
import { r as modelCallDestination, t as MODEL_CALLS } from "../../model-call-table-DoIl2S0P.js";
|
|
3
3
|
//#region src/model/llm-mode-routing.ts
|
|
4
4
|
/** @file llm-mode-routing.ts
|
|
5
5
|
* @purpose Resolve one model call id to its configured destination and transport.
|
|
@@ -6,7 +6,7 @@ import "../config/settings.js";
|
|
|
6
6
|
import { n as appendAuditEntryStrict, p as readJsonlLines, s as getAuditPath, t as appendAuditEntry } from "../../runtime-audit-log-DK6xAYxh.js";
|
|
7
7
|
import { getDiscoveryPath, getSnoStationMemStateDir } from "../contract/profile.js";
|
|
8
8
|
import "../engine/shared/paths.js";
|
|
9
|
-
import "../../llm-client-
|
|
9
|
+
import "../../llm-client-DPBhPtmQ.js";
|
|
10
10
|
import "../model/llm-mode-routing.js";
|
|
11
11
|
import { defineRemSafetyGuard, requireRemOwnerDecisions } from "../engine/rem/index.js";
|
|
12
12
|
import { n as state_vocabulary_default, r as attribute_dictionary_default } from "../../relation-dictionary-Cev1kyLe.js";
|
|
@@ -14,7 +14,7 @@ import "../../memory-store-shared-CURizQIy.js";
|
|
|
14
14
|
import { n as loadSqliteVecExtension } from "../../unplaced-candidate-migration-BCcdQkcx.js";
|
|
15
15
|
import { openSqliteDatabase } from "./sqlite-runtime.js";
|
|
16
16
|
import "../../connection-PQcq3TPO.js";
|
|
17
|
-
import "../../store-
|
|
17
|
+
import "../../store-BzWYcvpF.js";
|
|
18
18
|
import "../../embedding-provider-client-40tpzKou.js";
|
|
19
19
|
import "../../retriever-Bzz6H8Mn.js";
|
|
20
20
|
import { t as recordMemoryTelemetryIncident } from "../../memory-telemetry-incidents-BWA9kcZx.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as TaskLifecycleCommandCollisionError, E as TaskLifecycleTimestampCollisionError, S as StaleSupersedeTargetError, T as TaskLifecycleStateCollisionError, _ as hashMemorySuppressionContent, b as normalizeMemoryRelationPredicate, p as ATOMIC_FACT_SURFACE_LANE, t as buildTaskLifecycleMigrationManifest, v as AtomicExtractionCompletedElsewhere, w as TaskLifecycleStaleResolutionError, x as MemoryStore, y as repairAtomicExtractionParameters } from "../../store-
|
|
1
|
+
import { C as TaskLifecycleCommandCollisionError, E as TaskLifecycleTimestampCollisionError, S as StaleSupersedeTargetError, T as TaskLifecycleStateCollisionError, _ as hashMemorySuppressionContent, b as normalizeMemoryRelationPredicate, p as ATOMIC_FACT_SURFACE_LANE, t as buildTaskLifecycleMigrationManifest, v as AtomicExtractionCompletedElsewhere, w as TaskLifecycleStaleResolutionError, x as MemoryStore, y as repairAtomicExtractionParameters } from "../../store-BzWYcvpF.js";
|
|
2
2
|
export { ATOMIC_FACT_SURFACE_LANE, AtomicExtractionCompletedElsewhere, MemoryStore, StaleSupersedeTargetError, TaskLifecycleCommandCollisionError, TaskLifecycleStaleResolutionError, TaskLifecycleStateCollisionError, TaskLifecycleTimestampCollisionError, buildTaskLifecycleMigrationManifest, hashMemorySuppressionContent, normalizeMemoryRelationPredicate, repairAtomicExtractionParameters };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ct as FIXED_PROTOCOL_VALUE_69, d as FIXED_EXTERNAL_VALUE_8, f as FIXED_EXTERNAL_VALUE_9 } from "./signed-registry-constants-yq3DlG3B.js";
|
|
2
2
|
import { i as memoryOperationSignal, r as memoryOperationId, t as checkMemoryOperation } from "./operation-cancellation-CTKWwNHk.js";
|
|
3
|
-
import { t as MODEL_CALLS } from "./model-call-table-
|
|
3
|
+
import { n as MODEL_CALL_WORKLOAD, t as MODEL_CALLS } from "./model-call-table-DoIl2S0P.js";
|
|
4
4
|
import { classifyLlmFailure, isCredentialFailure, isTransientLlmStatus } from "./internal/model/llm-failure.js";
|
|
5
5
|
import { a as repairCommonJson, i as previewText, n as readModelReplyJson, r as extractJsonFromResponse } from "./model-reply-text-CKopStP2.js";
|
|
6
6
|
import { resolveLlmRoute } from "./internal/model/llm-mode-routing.js";
|
|
@@ -215,11 +215,23 @@ async function resolveLlmEndpoint(input) {
|
|
|
215
215
|
const log$1 = createLogger("sno-station-mem:llm-provider-transport");
|
|
216
216
|
const routeInFlight = /* @__PURE__ */ new Map();
|
|
217
217
|
const providerResponses = new AsyncLocalStorage();
|
|
218
|
+
/** Sno GPU request attribution (GPU_REQUEST_METADATA_STANDARD): self-reported labels, never identity. */
|
|
219
|
+
const SNO_GPU_SOURCE = "sno-station";
|
|
220
|
+
function snoGpuAttributionHeaders(clientRequestId, callId) {
|
|
221
|
+
return {
|
|
222
|
+
"X-Sno-Source": SNO_GPU_SOURCE,
|
|
223
|
+
"X-Sno-Workload": callId ? MODEL_CALL_WORKLOAD[callId] : "station-aux",
|
|
224
|
+
"X-Request-ID": clientRequestId
|
|
225
|
+
};
|
|
226
|
+
}
|
|
218
227
|
async function observeRequest(input, run) {
|
|
219
228
|
const route = createHash("sha256").update(input.endpoint).digest("hex");
|
|
220
229
|
const inFlight = (routeInFlight.get(route) ?? 0) + 1;
|
|
221
230
|
routeInFlight.set(route, inFlight);
|
|
222
|
-
const diagnostic = {
|
|
231
|
+
const diagnostic = {
|
|
232
|
+
started: performance.now(),
|
|
233
|
+
clientRequestId: input.requestId ?? randomUUID()
|
|
234
|
+
};
|
|
223
235
|
return withLogContext({ attempt_id: randomUUID() }, async () => {
|
|
224
236
|
let outcome = "failed";
|
|
225
237
|
let failure;
|
|
@@ -239,6 +251,7 @@ async function observeRequest(input, run) {
|
|
|
239
251
|
outcome,
|
|
240
252
|
error: failure,
|
|
241
253
|
call_id: input.slot ?? "unavailable",
|
|
254
|
+
client_request_id: diagnostic.clientRequestId,
|
|
242
255
|
destination: input.label ?? "unavailable",
|
|
243
256
|
route_hash: route,
|
|
244
257
|
transport: input.transport,
|
|
@@ -249,6 +262,7 @@ async function observeRequest(input, run) {
|
|
|
249
262
|
prompt_template_unavailable_reason: input.promptTemplateHash ? void 0 : "caller_does_not_provide_template_identity",
|
|
250
263
|
config_hash: createHash("sha256").update(JSON.stringify({
|
|
251
264
|
...input,
|
|
265
|
+
requestId: void 0,
|
|
252
266
|
endpoint: route
|
|
253
267
|
})).digest("hex"),
|
|
254
268
|
output_cap: input.cap ?? "unavailable",
|
|
@@ -407,6 +421,7 @@ async function callSnoProfileCompletion(request) {
|
|
|
407
421
|
transport: "raw-completions",
|
|
408
422
|
slot: request.callId,
|
|
409
423
|
label: request.destination,
|
|
424
|
+
requestId: request.requestId,
|
|
410
425
|
timeout: request.timeoutMs,
|
|
411
426
|
cap: request.singleTokenVerdict ? 1 : request.maxTokens,
|
|
412
427
|
sampling: {},
|
|
@@ -422,7 +437,7 @@ async function callSnoProfileCompletion(request) {
|
|
|
422
437
|
headers: {
|
|
423
438
|
"Content-Type": "application/json",
|
|
424
439
|
"X-Internal-Token": request.apiKey,
|
|
425
|
-
...
|
|
440
|
+
...snoGpuAttributionHeaders(diagnostic.clientRequestId, request.callId),
|
|
426
441
|
...request.operationId ? { "X-Sno-Operation": request.operationId } : {}
|
|
427
442
|
},
|
|
428
443
|
body: JSON.stringify({
|
|
@@ -502,6 +517,7 @@ async function snoStationMemDispatch(ctx) {
|
|
|
502
517
|
transport: "chat-completions",
|
|
503
518
|
slot: cfgExt.callId,
|
|
504
519
|
label: cfgExt.destination,
|
|
520
|
+
requestId: typeof cfgExt.requestId === "string" ? cfgExt.requestId : void 0,
|
|
505
521
|
timeout: timeoutMs,
|
|
506
522
|
cap: typeof callBody.max_tokens === "number" ? callBody.max_tokens : typeof callBody.max_completion_tokens === "number" ? callBody.max_completion_tokens : void 0,
|
|
507
523
|
sampling,
|
|
@@ -521,6 +537,7 @@ async function snoStationMemDispatch(ctx) {
|
|
|
521
537
|
if (typeof cfgExt.requestId === "string") headers["X-Request-ID"] = cfgExt.requestId;
|
|
522
538
|
if (provider === "sno-gpu") {
|
|
523
539
|
headers["X-Internal-Token"] = ctx.apiKey;
|
|
540
|
+
Object.assign(headers, snoGpuAttributionHeaders(diagnostic.clientRequestId, cfgExt.callId));
|
|
524
541
|
if (typeof cfgExt.operationId === "string") headers["X-Sno-Operation"] = cfgExt.operationId;
|
|
525
542
|
} else headers.Authorization = `Bearer ${ctx.apiKey}`;
|
|
526
543
|
let response;
|
package/dist/{log-site-catalog.generated-Dzgj9o5c.js → log-site-catalog.generated-B4LkDXe0.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
//#region package.json
|
|
2
|
-
var version = "1.2.
|
|
2
|
+
var version = "1.2.12";
|
|
3
3
|
//#endregion
|
|
4
4
|
//#region src/engine/observability/log-site-catalog.generated.ts
|
|
5
5
|
const logSiteCatalog = {
|
|
6
|
-
"build_id": "
|
|
6
|
+
"build_id": "a396e44ddf21082b9c9a4581b038ad8bcacd7fc51fb51aadfedcdadcc7f343db",
|
|
7
7
|
"sites": {
|
|
8
8
|
"memory.recall.budget.checked": {
|
|
9
9
|
"file": "packages/memory/src/engine/bindings/memory-recall-tool.ts",
|
|
@@ -1562,9 +1562,9 @@ const logSiteCatalog = {
|
|
|
1562
1562
|
"llm.transport.request.completed": {
|
|
1563
1563
|
"file": "packages/memory/src/model/llm-provider-transport.ts",
|
|
1564
1564
|
"function": "observeRequest",
|
|
1565
|
-
"line":
|
|
1565
|
+
"line": 82,
|
|
1566
1566
|
"column": 4,
|
|
1567
|
-
"file_hash": "
|
|
1567
|
+
"file_hash": "4779c2b9d4b4222719a8b1c1f65212b4235119c18db256d58072499140fd695d"
|
|
1568
1568
|
},
|
|
1569
1569
|
"memory.host.degraded": {
|
|
1570
1570
|
"file": "packages/memory/src/model/registered-agent-port.ts",
|