@snoai/memory 1.2.5 → 1.2.6
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-Dj5LX-e7.js → atomic-memory-extraction-BK2eZE58.js} +4 -4
- package/dist/diagnostic-encoder.js +1 -1
- package/dist/index.js +4 -4
- package/dist/internal/engine/bindings/memory-forget-tool.js +1 -1
- package/dist/internal/engine/bindings/memory-list-tool.js +1 -1
- package/dist/internal/engine/bindings/memory-recall-tool.js +1 -1
- package/dist/internal/engine/bindings/memory-reflection-resolve-tool.js +1 -1
- package/dist/internal/engine/bindings/memory-stats-tool.js +1 -1
- package/dist/internal/engine/bindings/memory-store-tool.js +3 -3
- package/dist/internal/engine/bindings/memory-tool-access.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 +2 -2
- 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 +1 -1
- 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/store/maintenance.js +2 -2
- package/dist/internal/store/store.js +1 -1
- package/dist/{llm-client-BOkokxti.js → llm-client-AT2zQNnv.js} +1 -0
- package/dist/{log-site-catalog.generated-6Yhsft4u.js → log-site-catalog.generated-3oA264j8.js} +18 -18
- package/dist/log-site-catalog.json +1 -1
- package/dist/{memory-runtime-CvxA1mP0.js → memory-runtime-BStVNZYd.js} +19 -19
- package/dist/{memory-temporality-classifier-C6MW_0i4.js → memory-temporality-classifier-gePkUCcx.js} +1 -1
- package/dist/{memory-tool-dependencies-CiofG6Lj.js → memory-tool-dependencies-sGC8Njfa.js} +1 -1
- package/dist/{profile-section-writer-DYcoa4ld.js → profile-section-writer-BDcKpSXA.js} +2 -2
- package/dist/{reflection-command-hooks-_AiaIqap.js → reflection-command-hooks-DStWjPpo.js} +3 -3
- package/dist/{reflection-embedded-generator-B5K0O1sJ.js → reflection-embedded-generator-BT5DEvFV.js} +1 -1
- package/dist/{rem-batch-executor-Dpysz3or.js → rem-batch-executor-C6EnCyZf.js} +1 -1
- package/dist/{rem-trigger-DiHK3BKP.js → rem-trigger--Z0v_NYF.js} +1 -0
- package/dist/{server-0KpYuZ69.js → server-qs383_Yt.js} +3 -3
- package/dist/sidecar/main.js +1 -1
- package/dist/{sno-station-mem-runtime-dependencies-jmuWbSfR.js → sno-station-mem-runtime-dependencies-l9zO0OCC.js} +5 -5
- package/dist/{store-B81Qk2RF.js → store-BegOsCEf.js} +1 -1
- package/dist/{strategy-hook-runner-CD5X8gs3.js → strategy-hook-runner-DT2ixsC0.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.6
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
Needs Node.js 22.22.3+, 24.15.0+ or 25.9.0+. Licensed under Apache-2.0.
|
|
@@ -2,22 +2,22 @@ import { ATOMIC_CAPTURE_OUTPUT_TOKEN_BUDGET, ATOMIC_CAPTURE_TIMEOUT_MS, ATOMIC_E
|
|
|
2
2
|
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
|
-
import { a as isTerminalLlmFailure, i as createLlmClient, n as LlmClientTerminalError } from "./llm-client-
|
|
5
|
+
import { a as isTerminalLlmFailure, i as createLlmClient, n as LlmClientTerminalError } from "./llm-client-AT2zQNnv.js";
|
|
6
6
|
import { n as readModelReplyJson } from "./model-reply-text-CKopStP2.js";
|
|
7
7
|
import { resolveLlmRoute } from "./internal/model/llm-mode-routing.js";
|
|
8
8
|
import { n as ATOMIC_EXTRACTION_SKILL_HASH, r as atomicExtractionSkillReference, t as ATOMIC_EXTRACTION_SKILL } from "./atomic-extraction-skill-CcXmuCqL.js";
|
|
9
9
|
import { stripEnvelopeMetadata } from "./internal/engine/extraction/extraction-text-sanitizer.js";
|
|
10
10
|
import { a as sessionZoneCarriedBy, t as calculateCalendarTime } from "./calendar-instruction-CzqZbAPG.js";
|
|
11
|
-
import "./memory-temporality-classifier-
|
|
11
|
+
import "./memory-temporality-classifier-gePkUCcx.js";
|
|
12
12
|
import { t as appendAuditEntry } from "./runtime-audit-log-BCeujlEp.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-DqpWJXZZ.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-BegOsCEf.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-BDcKpSXA.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";
|
|
@@ -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-3oA264j8.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
|
@@ -10,21 +10,21 @@ import { s as withMemoryOperation, t as checkMemoryOperation } from "./operation
|
|
|
10
10
|
import { pruneOldestEntries, setLruEntry } from "./internal/engine/shared/lru.js";
|
|
11
11
|
import { o as CODING_SKIN_LEDGER_MAX_CHARS, p as CODING_SKIN_SESSION_QUERY } from "./coding-skin-_Qu3INZD.js";
|
|
12
12
|
import { defaultSettings } from "./internal/config/settings.js";
|
|
13
|
-
import { i as createLlmClient } from "./llm-client-
|
|
13
|
+
import { i as createLlmClient } from "./llm-client-AT2zQNnv.js";
|
|
14
14
|
import { pickLlmRoutingConfig } from "./internal/model/llm-mode-routing.js";
|
|
15
15
|
import { a as parseAgentIdFromSessionKey, n as createScopePolicy, t as MemoryScopePolicy } from "./memory-scope-policy-DICSCURA.js";
|
|
16
|
-
import { a as serializeIntervalMetadata, o as resolveMemoryDate } from "./memory-temporality-classifier-
|
|
16
|
+
import { a as serializeIntervalMetadata, o as resolveMemoryDate } from "./memory-temporality-classifier-gePkUCcx.js";
|
|
17
17
|
import { resolveAgentAccess, resolveAgentId } from "./internal/engine/bindings/memory-tool-access.js";
|
|
18
18
|
import { r as retrieveForAutoRecall, t as isOpenRecallMetadata } from "./rem-consumer-retrieval-CR0dtcHR.js";
|
|
19
19
|
import { executeMemoryRecallTool } from "./internal/engine/bindings/memory-recall-tool.js";
|
|
20
|
-
import { t as createReflectionStrategyState } from "./strategy-hook-runner-
|
|
20
|
+
import { t as createReflectionStrategyState } from "./strategy-hook-runner-DT2ixsC0.js";
|
|
21
21
|
import { buildInsightDistiller } from "./internal/engine/bindings/sno-station-mem-insight-distill-factory.js";
|
|
22
22
|
import { onAgentEnd } from "./internal/engine/bindings/sno-station-mem-ambient-learning-hook.js";
|
|
23
23
|
import { executeMemoryStoreTool } from "./internal/engine/bindings/memory-store-tool.js";
|
|
24
24
|
import { executeMemoryForgetTool } from "./internal/engine/bindings/memory-forget-tool.js";
|
|
25
25
|
import { executeMemoryUpdateTool } from "./internal/engine/bindings/memory-update-tool.js";
|
|
26
26
|
import { executeMemoryReflectionResolveTool } from "./internal/engine/bindings/memory-reflection-resolve-tool.js";
|
|
27
|
-
import { t as createRunMemoryReflection } from "./reflection-command-hooks-
|
|
27
|
+
import { t as createRunMemoryReflection } from "./reflection-command-hooks-DStWjPpo.js";
|
|
28
28
|
import { createReflectionLifecycleHandler1, createReflectionLifecycleHandler2 } from "./internal/engine/reflection/reflection-lifecycle-hooks.js";
|
|
29
29
|
import { createReflectionInjectionHandler1, createReflectionInjectionHandler2, createReflectionInjectionHandler3 } from "./internal/engine/reflection/reflection-injection-hooks.js";
|
|
30
30
|
import { z } from "zod";
|
|
@@ -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-sGC8Njfa.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-sGC8Njfa.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-sGC8Njfa.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-sGC8Njfa.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-DICSCURA.js";
|
|
2
2
|
import { readEstimatedSpendToday } from "../operations/daily-spend-estimator.js";
|
|
3
|
-
import "../../../memory-tool-dependencies-
|
|
3
|
+
import "../../../memory-tool-dependencies-sGC8Njfa.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";
|
|
@@ -4,13 +4,13 @@ import { normalizeCategory } from "../shared/types.js";
|
|
|
4
4
|
import { clamp01, stableHash } from "../shared/utils.js";
|
|
5
5
|
import { a as detectCategory } from "../../../capture-policy-detector-DaMfy9CZ.js";
|
|
6
6
|
import { stripEnvelopeMetadata } from "../extraction/extraction-text-sanitizer.js";
|
|
7
|
-
import { a as serializeIntervalMetadata, o as resolveMemoryDate } from "../../../memory-temporality-classifier-
|
|
7
|
+
import { a as serializeIntervalMetadata, o as resolveMemoryDate } from "../../../memory-temporality-classifier-gePkUCcx.js";
|
|
8
8
|
import { t as appendAuditEntry } from "../../../runtime-audit-log-BCeujlEp.js";
|
|
9
|
-
import "../../../memory-tool-dependencies-
|
|
9
|
+
import "../../../memory-tool-dependencies-sGC8Njfa.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-BDcKpSXA.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-sGC8Njfa.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-sGC8Njfa.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-sGC8Njfa.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);
|
|
@@ -4,9 +4,9 @@ import { StorageError } from "../shared/errors.js";
|
|
|
4
4
|
import { h as deriveFactKey } from "../../../memory-metadata-codec-DL1sbJiN.js";
|
|
5
5
|
import { clamp01 } from "../shared/utils.js";
|
|
6
6
|
import { stripEnvelopeMetadata } from "../extraction/extraction-text-sanitizer.js";
|
|
7
|
-
import { a as serializeIntervalMetadata, o as resolveMemoryDate } from "../../../memory-temporality-classifier-
|
|
7
|
+
import { a as serializeIntervalMetadata, o as resolveMemoryDate } from "../../../memory-temporality-classifier-gePkUCcx.js";
|
|
8
8
|
import { t as appendAuditEntry } from "../../../runtime-audit-log-BCeujlEp.js";
|
|
9
|
-
import "../../../memory-tool-dependencies-
|
|
9
|
+
import "../../../memory-tool-dependencies-sGC8Njfa.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";
|
|
@@ -3,11 +3,11 @@ import { redactSecrets } from "../security/redact.js";
|
|
|
3
3
|
import { t as checkMemoryOperation } from "../../../operation-cancellation-CTKWwNHk.js";
|
|
4
4
|
import { n as modelCallDestination } from "../../../model-call-table-BZJQkbKX.js";
|
|
5
5
|
import { t as normalizeAmbientLearningText } from "../../../ambient-learning-text-normalizer-CxjATmMp.js";
|
|
6
|
-
import { a as serializeIntervalMetadata, i as parseSessionTimestamp, s as unresolvedMemoryDate } from "../../../memory-temporality-classifier-
|
|
6
|
+
import { a as serializeIntervalMetadata, i as parseSessionTimestamp, s as unresolvedMemoryDate } from "../../../memory-temporality-classifier-gePkUCcx.js";
|
|
7
7
|
import { t as appendAuditEntry } from "../../../runtime-audit-log-BCeujlEp.js";
|
|
8
8
|
import { resolveHookAgentId } from "./sno-station-mem-runtime-mode.js";
|
|
9
9
|
import { c as shouldSkipReflectionMessage } from "../../../daily-log-generator-CH_KuWHs.js";
|
|
10
|
-
import "../../../sno-station-mem-runtime-dependencies-
|
|
10
|
+
import "../../../sno-station-mem-runtime-dependencies-l9zO0OCC.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-CR0dtcHR.js";
|
|
9
9
|
import { isChatIdBasedAgentId, resolveHookAgentId } from "./sno-station-mem-runtime-mode.js";
|
|
10
10
|
import { t as parseReflectionMetadata } from "../../../entry-metadata-parser-BIVSMCIk.js";
|
|
11
|
-
import "../../../sno-station-mem-runtime-dependencies-
|
|
11
|
+
import "../../../sno-station-mem-runtime-dependencies-l9zO0OCC.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 { pickLlmRoutingConfig, resolveLlmRoute } from "../../model/llm-mode-routing.js";
|
|
2
2
|
import { t as appendAuditEntry } from "../../../runtime-audit-log-BCeujlEp.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-BK2eZE58.js";
|
|
4
|
+
import "../../../sno-station-mem-runtime-dependencies-l9zO0OCC.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-BK2eZE58.js";
|
|
5
|
+
import "../../../sno-station-mem-runtime-dependencies-l9zO0OCC.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-BK2eZE58.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-gePkUCcx.js";
|
|
2
2
|
export { classifyTemporal, inferExpiry, inferTemporalInterval, parseSessionTimestamp, serializeIntervalMetadata };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StorageError } from "../shared/errors.js";
|
|
2
2
|
import { l as runWithMemoryAudit, u as runWithMemoryAuditSync } from "../../../runtime-audit-log-BCeujlEp.js";
|
|
3
3
|
import { getSnoStationMemStateDir } from "../../contract/profile.js";
|
|
4
|
-
import { x as MemoryStore } from "../../../store-
|
|
4
|
+
import { x as MemoryStore } from "../../../store-BegOsCEf.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";
|
|
@@ -4,7 +4,7 @@ import { n as ATOMIC_EXTRACTION_SKILL_HASH } from "../../../atomic-extraction-sk
|
|
|
4
4
|
import { getStateDir } from "../../contract/profile.js";
|
|
5
5
|
import { r as ATOMIC_EXTRACTION_RESPONSE_JSON_SCHEMA } from "../../../atomic-extraction-reply-BJ9XV_9s.js";
|
|
6
6
|
import { r as attribute_dictionary_default } from "../../../relation-dictionary-Cev1kyLe.js";
|
|
7
|
-
import { n as version, t as logSiteCatalog } from "../../../log-site-catalog.generated-
|
|
7
|
+
import { n as version, t as logSiteCatalog } from "../../../log-site-catalog.generated-3oA264j8.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-DStWjPpo.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-BT5DEvFV.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-BT5DEvFV.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-BT5DEvFV.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-BT5DEvFV.js";
|
|
2
|
+
import { t as createReflectionStrategyState } from "../../../strategy-hook-runner-DT2ixsC0.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-AT2zQNnv.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 };
|
|
@@ -3,7 +3,7 @@ import { REM_SIDECAR_TOKEN_HEADER } from "../contract/routes.js";
|
|
|
3
3
|
import "../engine/shared/utils.js";
|
|
4
4
|
import "../../coding-skin-_Qu3INZD.js";
|
|
5
5
|
import "../config/settings.js";
|
|
6
|
-
import "../../llm-client-
|
|
6
|
+
import "../../llm-client-AT2zQNnv.js";
|
|
7
7
|
import "../model/llm-mode-routing.js";
|
|
8
8
|
import { n as appendAuditEntryStrict, o as getAuditPath, t as appendAuditEntry } from "../../runtime-audit-log-BCeujlEp.js";
|
|
9
9
|
import { getDiscoveryPath, getSnoStationMemStateDir } from "../contract/profile.js";
|
|
@@ -14,7 +14,7 @@ import "../../memory-store-shared-DqpWJXZZ.js";
|
|
|
14
14
|
import { n as loadSqliteVecExtension } from "../../unplaced-candidate-migration-CbQHzcEM.js";
|
|
15
15
|
import { openSqliteDatabase } from "./sqlite-runtime.js";
|
|
16
16
|
import "../../connection-C9YD5sgm.js";
|
|
17
|
-
import "../../store-
|
|
17
|
+
import "../../store-BegOsCEf.js";
|
|
18
18
|
import "../../embedding-provider-client-40tpzKou.js";
|
|
19
19
|
import "../../retriever-ZoLvPRHq.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-BegOsCEf.js";
|
|
2
2
|
export { ATOMIC_FACT_SURFACE_LANE, AtomicExtractionCompletedElsewhere, MemoryStore, StaleSupersedeTargetError, TaskLifecycleCommandCollisionError, TaskLifecycleStaleResolutionError, TaskLifecycleStateCollisionError, TaskLifecycleTimestampCollisionError, buildTaskLifecycleMigrationManifest, hashMemorySuppressionContent, normalizeMemoryRelationPredicate, repairAtomicExtractionParameters };
|
package/dist/{log-site-catalog.generated-6Yhsft4u.js → log-site-catalog.generated-3oA264j8.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
//#region package.json
|
|
2
|
-
var version = "1.2.
|
|
2
|
+
var version = "1.2.6";
|
|
3
3
|
//#endregion
|
|
4
4
|
//#region src/engine/observability/log-site-catalog.generated.ts
|
|
5
5
|
const logSiteCatalog = {
|
|
6
|
-
"build_id": "
|
|
6
|
+
"build_id": "f8b995944301441448053b77663789405ed35acd831131e85040ced1d8e948c2",
|
|
7
7
|
"sites": {
|
|
8
8
|
"memory.recall.budget.checked": {
|
|
9
9
|
"file": "packages/memory/src/engine/bindings/memory-recall-tool.ts",
|
|
@@ -1438,112 +1438,112 @@ const logSiteCatalog = {
|
|
|
1438
1438
|
"function": "resolveRequestTransport",
|
|
1439
1439
|
"line": 375,
|
|
1440
1440
|
"column": 4,
|
|
1441
|
-
"file_hash": "
|
|
1441
|
+
"file_hash": "e2f30aa210d6fe6b6f42497bf4ed38bdccbc10249c098ebcdad995b832ea7603"
|
|
1442
1442
|
},
|
|
1443
1443
|
"shared.llm-client.resolveRequestTransport.ffa933b519": {
|
|
1444
1444
|
"file": "packages/memory/src/model/llm-client.ts",
|
|
1445
1445
|
"function": "resolveRequestTransport",
|
|
1446
1446
|
"line": 381,
|
|
1447
1447
|
"column": 4,
|
|
1448
|
-
"file_hash": "
|
|
1448
|
+
"file_hash": "e2f30aa210d6fe6b6f42497bf4ed38bdccbc10249c098ebcdad995b832ea7603"
|
|
1449
1449
|
},
|
|
1450
1450
|
"llm.host.request.completed": {
|
|
1451
1451
|
"file": "packages/memory/src/model/llm-client.ts",
|
|
1452
1452
|
"function": "requestContent",
|
|
1453
1453
|
"line": 430,
|
|
1454
1454
|
"column": 6,
|
|
1455
|
-
"file_hash": "
|
|
1455
|
+
"file_hash": "e2f30aa210d6fe6b6f42497bf4ed38bdccbc10249c098ebcdad995b832ea7603"
|
|
1456
1456
|
},
|
|
1457
1457
|
"llm.client.host_cancelled": {
|
|
1458
1458
|
"file": "packages/memory/src/model/llm-client.ts",
|
|
1459
1459
|
"function": "requestContent",
|
|
1460
1460
|
"line": 448,
|
|
1461
1461
|
"column": 5,
|
|
1462
|
-
"file_hash": "
|
|
1462
|
+
"file_hash": "e2f30aa210d6fe6b6f42497bf4ed38bdccbc10249c098ebcdad995b832ea7603"
|
|
1463
1463
|
},
|
|
1464
1464
|
"llm.client.host_error": {
|
|
1465
1465
|
"file": "packages/memory/src/model/llm-client.ts",
|
|
1466
1466
|
"function": "requestContent",
|
|
1467
1467
|
"line": 462,
|
|
1468
1468
|
"column": 5,
|
|
1469
|
-
"file_hash": "
|
|
1469
|
+
"file_hash": "e2f30aa210d6fe6b6f42497bf4ed38bdccbc10249c098ebcdad995b832ea7603"
|
|
1470
1470
|
},
|
|
1471
1471
|
"shared.llm-client.requestContent.ff17976562": {
|
|
1472
1472
|
"file": "packages/memory/src/model/llm-client.ts",
|
|
1473
1473
|
"function": "requestContent",
|
|
1474
1474
|
"line": 500,
|
|
1475
1475
|
"column": 5,
|
|
1476
|
-
"file_hash": "
|
|
1476
|
+
"file_hash": "e2f30aa210d6fe6b6f42497bf4ed38bdccbc10249c098ebcdad995b832ea7603"
|
|
1477
1477
|
},
|
|
1478
1478
|
"llm.client.raw_pipeline_failed": {
|
|
1479
1479
|
"file": "packages/memory/src/model/llm-client.ts",
|
|
1480
1480
|
"function": "requestContent",
|
|
1481
1481
|
"line": 523,
|
|
1482
1482
|
"column": 5,
|
|
1483
|
-
"file_hash": "
|
|
1483
|
+
"file_hash": "e2f30aa210d6fe6b6f42497bf4ed38bdccbc10249c098ebcdad995b832ea7603"
|
|
1484
1484
|
},
|
|
1485
1485
|
"llm.client.chat_pipeline_failed": {
|
|
1486
1486
|
"file": "packages/memory/src/model/llm-client.ts",
|
|
1487
1487
|
"function": "requestContent",
|
|
1488
1488
|
"line": 551,
|
|
1489
1489
|
"column": 4,
|
|
1490
|
-
"file_hash": "
|
|
1490
|
+
"file_hash": "e2f30aa210d6fe6b6f42497bf4ed38bdccbc10249c098ebcdad995b832ea7603"
|
|
1491
1491
|
},
|
|
1492
1492
|
"llm.client.empty_reply": {
|
|
1493
1493
|
"file": "packages/memory/src/model/llm-client.ts",
|
|
1494
1494
|
"function": "requestContent",
|
|
1495
1495
|
"line": 565,
|
|
1496
1496
|
"column": 4,
|
|
1497
|
-
"file_hash": "
|
|
1497
|
+
"file_hash": "e2f30aa210d6fe6b6f42497bf4ed38bdccbc10249c098ebcdad995b832ea7603"
|
|
1498
1498
|
},
|
|
1499
1499
|
"shared.llm-client.requestContentRetryingEmpty.cd874fefff": {
|
|
1500
1500
|
"file": "packages/memory/src/model/llm-client.ts",
|
|
1501
1501
|
"function": "requestContentRetryingEmpty",
|
|
1502
1502
|
"line": 606,
|
|
1503
1503
|
"column": 5,
|
|
1504
|
-
"file_hash": "
|
|
1504
|
+
"file_hash": "e2f30aa210d6fe6b6f42497bf4ed38bdccbc10249c098ebcdad995b832ea7603"
|
|
1505
1505
|
},
|
|
1506
1506
|
"llm.client.fallback.answered": {
|
|
1507
1507
|
"file": "packages/memory/src/model/llm-client.ts",
|
|
1508
1508
|
"function": "requestContentWithHostFallback",
|
|
1509
1509
|
"line": 659,
|
|
1510
1510
|
"column": 6,
|
|
1511
|
-
"file_hash": "
|
|
1511
|
+
"file_hash": "e2f30aa210d6fe6b6f42497bf4ed38bdccbc10249c098ebcdad995b832ea7603"
|
|
1512
1512
|
},
|
|
1513
1513
|
"llm.client.fallback.failed": {
|
|
1514
1514
|
"file": "packages/memory/src/model/llm-client.ts",
|
|
1515
1515
|
"function": "requestContentWithHostFallback",
|
|
1516
1516
|
"line": 676,
|
|
1517
1517
|
"column": 3,
|
|
1518
|
-
"file_hash": "
|
|
1518
|
+
"file_hash": "e2f30aa210d6fe6b6f42497bf4ed38bdccbc10249c098ebcdad995b832ea7603"
|
|
1519
1519
|
},
|
|
1520
1520
|
"llm.client.json.deadline_exhausted": {
|
|
1521
1521
|
"file": "packages/memory/src/model/llm-client.ts",
|
|
1522
1522
|
"function": "completeJson",
|
|
1523
1523
|
"line": 704,
|
|
1524
1524
|
"column": 7,
|
|
1525
|
-
"file_hash": "
|
|
1525
|
+
"file_hash": "e2f30aa210d6fe6b6f42497bf4ed38bdccbc10249c098ebcdad995b832ea7603"
|
|
1526
1526
|
},
|
|
1527
1527
|
"shared.llm-client.completeJson.e04c8e7e82": {
|
|
1528
1528
|
"file": "packages/memory/src/model/llm-client.ts",
|
|
1529
1529
|
"function": "completeJson",
|
|
1530
1530
|
"line": 720,
|
|
1531
1531
|
"column": 5,
|
|
1532
|
-
"file_hash": "
|
|
1532
|
+
"file_hash": "e2f30aa210d6fe6b6f42497bf4ed38bdccbc10249c098ebcdad995b832ea7603"
|
|
1533
1533
|
},
|
|
1534
1534
|
"llm.client.json.request_failed": {
|
|
1535
1535
|
"file": "packages/memory/src/model/llm-client.ts",
|
|
1536
1536
|
"function": "completeJson",
|
|
1537
1537
|
"line": 726,
|
|
1538
1538
|
"column": 5,
|
|
1539
|
-
"file_hash": "
|
|
1539
|
+
"file_hash": "e2f30aa210d6fe6b6f42497bf4ed38bdccbc10249c098ebcdad995b832ea7603"
|
|
1540
1540
|
},
|
|
1541
1541
|
"shared.llm-client.completeText.ffa933b519": {
|
|
1542
1542
|
"file": "packages/memory/src/model/llm-client.ts",
|
|
1543
1543
|
"function": "completeText",
|
|
1544
1544
|
"line": 749,
|
|
1545
1545
|
"column": 5,
|
|
1546
|
-
"file_hash": "
|
|
1546
|
+
"file_hash": "e2f30aa210d6fe6b6f42497bf4ed38bdccbc10249c098ebcdad995b832ea7603"
|
|
1547
1547
|
},
|
|
1548
1548
|
"llm.transport.request.completed": {
|
|
1549
1549
|
"file": "packages/memory/src/model/llm-provider-transport.ts",
|