@snoai/memory 1.7.1 → 2.0.1

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.
Files changed (59) hide show
  1. package/README.md +1 -1
  2. package/dist/agent-state-BB-voJsF.js +928 -0
  3. package/dist/agent-state-view.d.ts +1 -0
  4. package/dist/agent-state-view.js +185 -0
  5. package/dist/{atomic-memory-extraction-CWMMWF2C.js → atomic-memory-extraction-OusdO3Ig.js} +4 -4
  6. package/dist/client.js +1 -1
  7. package/dist/coding-skin-lewnGLT-.js +342 -0
  8. package/dist/coding-skin.d.ts +90 -4
  9. package/dist/coding-skin.js +3 -2
  10. package/dist/{config-D6GJyMKz.js → config-0oK6k24i.js} +2 -2
  11. package/dist/diagnostic-encoder.js +1 -1
  12. package/dist/index.js +5 -5
  13. package/dist/internal/config/settings.js +2 -2
  14. package/dist/internal/engine/bindings/memory-forget-tool.js +1 -1
  15. package/dist/internal/engine/bindings/memory-list-tool.js +1 -1
  16. package/dist/internal/engine/bindings/memory-recall-tool.js +1 -1
  17. package/dist/internal/engine/bindings/memory-reflection-resolve-tool.js +1 -1
  18. package/dist/internal/engine/bindings/memory-stats-tool.js +1 -1
  19. package/dist/internal/engine/bindings/memory-store-tool.js +3 -3
  20. package/dist/internal/engine/bindings/memory-tool-access.js +1 -1
  21. package/dist/internal/engine/bindings/memory-tool-results.js +1 -1
  22. package/dist/internal/engine/bindings/memory-tool-schemas.js +1 -1
  23. package/dist/internal/engine/bindings/memory-update-tool.js +2 -2
  24. package/dist/internal/engine/bindings/sno-station-mem-ambient-learning-hook.js +2 -2
  25. package/dist/internal/engine/bindings/sno-station-mem-auto-recall-hook.js +1 -1
  26. package/dist/internal/engine/bindings/sno-station-mem-insight-distill-factory.js +2 -2
  27. package/dist/internal/engine/bindings/sno-station-mem-message-transcript.js +2 -2
  28. package/dist/internal/engine/extraction/atomic-memory-extraction.js +1 -1
  29. package/dist/internal/engine/extraction/memory-temporality-classifier.js +1 -1
  30. package/dist/internal/engine/observability/observable-memory-store.js +1 -1
  31. package/dist/internal/engine/observability/runtime-diagnostics.js +1 -1
  32. package/dist/internal/engine/reflection/reflection-command-hooks.js +1 -1
  33. package/dist/internal/engine/reflection/reflection-embedded-generator.js +1 -1
  34. package/dist/internal/engine/reflection/reflection-injection-hooks.js +1 -1
  35. package/dist/internal/engine/reflection/reflection-lifecycle-hooks.js +1 -1
  36. package/dist/internal/engine/reflection/strategy-hook-runner.js +2 -2
  37. package/dist/internal/model/llm-client.js +1 -1
  38. package/dist/internal/store/maintenance.js +3 -3
  39. package/dist/internal/store/store.js +1 -1
  40. package/dist/{llm-client-BtbX4af4.js → llm-client-DhBvu-U_.js} +1 -1
  41. package/dist/{log-site-catalog.generated-Dtiih6m2.js → log-site-catalog.generated-ClhbzmWf.js} +2 -2
  42. package/dist/log-site-catalog.json +1 -1
  43. package/dist/memdump.js +1 -1
  44. package/dist/{memory-runtime-B9fG-sNo.js → memory-runtime-DPrBxPA5.js} +4 -4
  45. package/dist/{memory-temporality-classifier-Bm0EiCN8.js → memory-temporality-classifier-DTRhzXmG.js} +1 -1
  46. package/dist/{memory-tool-dependencies-BxVJ-bHs.js → memory-tool-dependencies-BQHE4kMD.js} +1 -1
  47. package/dist/{profile-section-writer-DSX6R3GF.js → profile-section-writer-QiB0MMtt.js} +2 -2
  48. package/dist/{reflection-command-hooks-Dyckr_Ma.js → reflection-command-hooks-DBpqpF7A.js} +3 -3
  49. package/dist/{reflection-embedded-generator-i8KHqMpr.js → reflection-embedded-generator-DNFMQNsv.js} +1 -1
  50. package/dist/{rem-batch-executor-BSWXFOLH.js → rem-batch-executor-CUD8VH49.js} +1 -1
  51. package/dist/{rem-trigger-BaJa5FS0.js → rem-trigger-BwdTBHtj.js} +29 -7
  52. package/dist/{server-DPd3Xef2.js → server-D7tIZPWW.js} +4 -4
  53. package/dist/sidecar/main.js +2 -2
  54. package/dist/{sno-station-mem-runtime-dependencies-DITNvfkR.js → sno-station-mem-runtime-dependencies-Fq6yRstU.js} +5 -5
  55. package/dist/{store-YX1_c1NH.js → store-cu7Qq2OW.js} +1 -1
  56. package/dist/{strategy-hook-runner-CwqZ1orf.js → strategy-hook-runner-CvdsVcwR.js} +1 -1
  57. package/package.json +1 -1
  58. package/settings.default.json +2 -2
  59. package/dist/coding-skin-BnFryVac.js +0 -265
@@ -2,6 +2,92 @@ import { ObserveLedgerRow, appendObserveLedgerRows } from "./internal/engine/tel
2
2
  import { SKILL_CATEGORIES, skillVersionFor } from "./internal/config/skill-categories.js";
3
3
  import { HOST_MODEL_CALLBACK_HOST, HOST_MODEL_CALLBACK_PATH, HOST_MODEL_DEADLINE_HEADER } from "./internal/config/skin-defaults.js";
4
4
  import { z } from "zod";
5
+ type AgentHarness = "claude" | "codex" | "cursor" | "hermes" | "openclaw" | "unknown";
6
+ interface AgentObservation {
7
+ harness: AgentHarness;
8
+ sessionId: string;
9
+ at: string;
10
+ event: string;
11
+ input: Record<string, unknown>;
12
+ pid?: number;
13
+ processStart?: string;
14
+ reachAddress?: string;
15
+ cwd?: string;
16
+ }
17
+ interface AgentOperationError {
18
+ operation: string;
19
+ target: string;
20
+ error: string;
21
+ impact: string;
22
+ }
23
+ interface AgentRow {
24
+ harness: AgentHarness;
25
+ sessionId: string;
26
+ reachAddress: string;
27
+ cwd: string;
28
+ description: string;
29
+ doing: "working" | "idle at prompt" | "unknown";
30
+ process: "present" | "detached" | "exited" | "absent" | "unknown";
31
+ resumable: "live" | "resumable" | "context full" | "unknown";
32
+ waitingForHuman: "yes" | "no" | "unknown";
33
+ waitingReason: string;
34
+ group: "Needs you" | "Working" | "Finished" | "unknown";
35
+ subgroup: string;
36
+ lastEvent: {
37
+ at: string;
38
+ event: string;
39
+ source: string;
40
+ } | "unknown";
41
+ ageSeconds: number | "unknown";
42
+ resultId: string;
43
+ humanSeen: boolean | "unknown";
44
+ finalReply: string;
45
+ work: Record<string, unknown>[];
46
+ delivery: string;
47
+ resumeEvidence: string;
48
+ missingReasons: string[];
49
+ }
50
+ interface AgentView {
51
+ observedAt: string;
52
+ agents: AgentRow[];
53
+ work: Record<string, unknown>[];
54
+ quota: Record<string, unknown>[];
55
+ errors: AgentOperationError[];
56
+ }
57
+ interface AgentViewOptions {
58
+ profileDir?: string;
59
+ reachRoot?: string;
60
+ now?: number;
61
+ reachProgram?: string;
62
+ /** Status-line and tmux redraws: only observations inside the freshness horizon, and no Reach work scan. */
63
+ recent?: boolean;
64
+ }
65
+ interface AgentIdentity {
66
+ harness?: string;
67
+ sessionId?: string;
68
+ reachAddress?: string;
69
+ }
70
+ /** Linux start ticks identify one process lifetime, including across PID reuse. */
71
+ export declare function agentProcessIdentity(pid: number): Promise<{
72
+ pid: number;
73
+ processStart: string;
74
+ }>;
75
+ /** Observational failures are logged; they never prevent an agent's ordinary hook. */
76
+ export declare function observeAgentEvent(harness: AgentHarness, event: string, raw: unknown): Promise<void>;
77
+ export declare function readAgentView(options?: AgentViewOptions): Promise<AgentView>;
78
+ export declare function compactAgentView(view: AgentView, current?: AgentIdentity): string;
79
+ export declare function markAgentResultSeen(row: AgentRow, profile?: string): Promise<void>;
80
+ type StatusHarness = "claude" | "cursor";
81
+ /** The owned command carries the original configuration; no separate settings backup is needed. */
82
+ export declare function composeAgentStatusLine(config: Record<string, unknown>, entryPath: string, harness: StatusHarness, installing: boolean): void;
83
+ export declare function renderAgentStatusLine(harness: StatusHarness, originalEncoded: string, input: string): Promise<number>;
84
+ type ContinuityHarness = "claude" | "codex";
85
+ type ContinuityEvent = "SessionStart" | "UserPromptSubmit";
86
+ export declare function continuityBriefPath(sessionId: string): string;
87
+ /** The same envelope carries durable task state, memory recall and locally approved lessons. */
88
+ export declare function composeContinuityContext(harness: ContinuityHarness, event: ContinuityEvent, input: unknown, memory: () => Promise<string>): Promise<string>;
89
+ /** Refresh the existing readable brief before compaction; never manufacture task facts. */
90
+ export declare function refreshContinuityBrief(harness: ContinuityHarness, input: unknown): Promise<void>;
5
91
  /** True when the text of a user message came from another agent's tooling: a Reach ring or seat start, or a heartbeat wake. */
6
92
  export declare function isAgentText(text: string): boolean;
7
93
  /** One transcript record: its time, and who sent the incoming message it carries, if it carries one. */
@@ -83,7 +169,7 @@ export declare const CODING_SKIN_HOOKS: {
83
169
  readonly UserPromptSubmit: {
84
170
  readonly eventName: "user_prompt_submit";
85
171
  readonly subcommand: "user-prompt-submit";
86
- readonly timeout: 8;
172
+ readonly timeout: 30;
87
173
  };
88
174
  readonly Stop: {
89
175
  readonly eventName: "stop";
@@ -103,7 +189,7 @@ export declare const CODING_SKIN_HOOKS: {
103
189
  readonly PostToolUse: {
104
190
  readonly eventName: "post_tool_use";
105
191
  readonly subcommand: "post-tool-use";
106
- readonly timeout: 8;
192
+ readonly timeout: 30;
107
193
  };
108
194
  };
109
195
  export type CodingSkinHookName = keyof typeof CODING_SKIN_HOOKS;
@@ -115,7 +201,7 @@ export declare const CODING_SKIN_CURSOR_HOOKS: {
115
201
  };
116
202
  readonly beforeSubmitPrompt: {
117
203
  readonly subcommand: "user-prompt-submit";
118
- readonly timeout: 8;
204
+ readonly timeout: 30;
119
205
  };
120
206
  readonly afterAgentResponse: {
121
207
  readonly subcommand: "after-agent-response";
@@ -148,4 +234,4 @@ export declare function snoProgramPath(path: string): string;
148
234
  export declare function codingSkinHookCommand(snoPath: string, subcommand: string, harness: CodingSkinHarness): string;
149
235
  /** True for a hook command of that shape, whatever the path to `sno` is. */
150
236
  export declare function isCodingSkinHookCommand(command: string, subcommand: string, harness: CodingSkinHarness): boolean;
151
- export { type ActivityCursor, type ActivityRecord, HOST_MODEL_CALLBACK_HOST, HOST_MODEL_CALLBACK_PATH, HOST_MODEL_DEADLINE_HEADER, type ObserveLedgerRow, SKILL_CATEGORIES, type SessionActivityPayload, appendObserveLedgerRows, skillVersionFor };
237
+ export { type ActivityCursor, type ActivityRecord, type AgentHarness, type AgentIdentity, type AgentObservation, type AgentOperationError, type AgentRow, type AgentView, type AgentViewOptions, HOST_MODEL_CALLBACK_HOST, HOST_MODEL_CALLBACK_PATH, HOST_MODEL_DEADLINE_HEADER, type ObserveLedgerRow, SKILL_CATEGORIES, type SessionActivityPayload, appendObserveLedgerRows, skillVersionFor };
@@ -1,5 +1,6 @@
1
+ import { a as readAgentView, d as foldActivity, f as isAgentText, i as observeAgentEvent, l as EMPTY_ACTIVITY_CURSOR, n as compactAgentView, p as readNewLines, r as markAgentResultSeen, t as agentProcessIdentity, u as activityCursorSchema } from "./agent-state-BB-voJsF.js";
2
+ import { C as continuityBriefPath, E as renderAgentStatusLine, S as composeContinuityContext, T as composeAgentStatusLine, _ as CODING_SKIN_WORKER_LIFETIME_MS, a as CODING_SKIN_CURSOR_HOOKS, b as shellQuote, c as CODING_SKIN_LEDGER_MAX_CHARS, d as CODING_SKIN_MAX_PENDING_CAPTURES, f as CODING_SKIN_MODEL_COMMANDS, g as CODING_SKIN_SESSION_QUERY, h as CODING_SKIN_RETRY_DELAYS_MS, i as CODING_SKIN_CHILD_MAX_BUFFER_BYTES, l as CODING_SKIN_MANUAL_SESSION_ID, m as CODING_SKIN_RECALL_SENTENCE_MAX_CHARS, n as CODING_SKIN_CAPTURE_QUIET_MS, o as CODING_SKIN_HOOKS, p as CODING_SKIN_RECALL_ITEM_MAX_CHARS, r as CODING_SKIN_CHILD_DEADLINE_MS, s as CODING_SKIN_IMPORT_INTERVAL_MS, t as CODING_SKIN_CAPTURE_MAX_INPUT_TOKENS, u as CODING_SKIN_MAX_ATTEMPTS, v as codingSkinHookCommand, w as refreshContinuityBrief, x as snoProgramPath, y as isCodingSkinHookCommand } from "./coding-skin-lewnGLT-.js";
1
3
  import { appendObserveLedgerRows } from "./internal/engine/telemetry/observe-ledger.js";
2
4
  import { SKILL_CATEGORIES, skillVersionFor } from "./internal/config/skill-categories.js";
3
5
  import { HOST_MODEL_CALLBACK_HOST, HOST_MODEL_CALLBACK_PATH, HOST_MODEL_DEADLINE_HEADER } from "./internal/config/skin-defaults.js";
4
- import { C as activityCursorSchema, E as readNewLines, S as EMPTY_ACTIVITY_CURSOR, T as isAgentText, _ as CODING_SKIN_WORKER_LIFETIME_MS, a as CODING_SKIN_CURSOR_HOOKS, b as shellQuote, c as CODING_SKIN_LEDGER_MAX_CHARS, d as CODING_SKIN_MAX_PENDING_CAPTURES, f as CODING_SKIN_MODEL_COMMANDS, g as CODING_SKIN_SESSION_QUERY, h as CODING_SKIN_RETRY_DELAYS_MS, i as CODING_SKIN_CHILD_MAX_BUFFER_BYTES, l as CODING_SKIN_MANUAL_SESSION_ID, m as CODING_SKIN_RECALL_SENTENCE_MAX_CHARS, n as CODING_SKIN_CAPTURE_QUIET_MS, o as CODING_SKIN_HOOKS, p as CODING_SKIN_RECALL_ITEM_MAX_CHARS, r as CODING_SKIN_CHILD_DEADLINE_MS, s as CODING_SKIN_IMPORT_INTERVAL_MS, t as CODING_SKIN_CAPTURE_MAX_INPUT_TOKENS, u as CODING_SKIN_MAX_ATTEMPTS, v as codingSkinHookCommand, w as foldActivity, x as snoProgramPath, y as isCodingSkinHookCommand } from "./coding-skin-BnFryVac.js";
5
- export { CODING_SKIN_CAPTURE_MAX_INPUT_TOKENS, CODING_SKIN_CAPTURE_QUIET_MS, CODING_SKIN_CHILD_DEADLINE_MS, CODING_SKIN_CHILD_MAX_BUFFER_BYTES, CODING_SKIN_CURSOR_HOOKS, CODING_SKIN_HOOKS, CODING_SKIN_IMPORT_INTERVAL_MS, CODING_SKIN_LEDGER_MAX_CHARS, CODING_SKIN_MANUAL_SESSION_ID, CODING_SKIN_MAX_ATTEMPTS, CODING_SKIN_MAX_PENDING_CAPTURES, CODING_SKIN_MODEL_COMMANDS, CODING_SKIN_RECALL_ITEM_MAX_CHARS, CODING_SKIN_RECALL_SENTENCE_MAX_CHARS, CODING_SKIN_RETRY_DELAYS_MS, CODING_SKIN_SESSION_QUERY, CODING_SKIN_WORKER_LIFETIME_MS, EMPTY_ACTIVITY_CURSOR, HOST_MODEL_CALLBACK_HOST, HOST_MODEL_CALLBACK_PATH, HOST_MODEL_DEADLINE_HEADER, SKILL_CATEGORIES, activityCursorSchema, appendObserveLedgerRows, codingSkinHookCommand, foldActivity, isAgentText, isCodingSkinHookCommand, readNewLines, shellQuote, skillVersionFor, snoProgramPath };
6
+ export { CODING_SKIN_CAPTURE_MAX_INPUT_TOKENS, CODING_SKIN_CAPTURE_QUIET_MS, CODING_SKIN_CHILD_DEADLINE_MS, CODING_SKIN_CHILD_MAX_BUFFER_BYTES, CODING_SKIN_CURSOR_HOOKS, CODING_SKIN_HOOKS, CODING_SKIN_IMPORT_INTERVAL_MS, CODING_SKIN_LEDGER_MAX_CHARS, CODING_SKIN_MANUAL_SESSION_ID, CODING_SKIN_MAX_ATTEMPTS, CODING_SKIN_MAX_PENDING_CAPTURES, CODING_SKIN_MODEL_COMMANDS, CODING_SKIN_RECALL_ITEM_MAX_CHARS, CODING_SKIN_RECALL_SENTENCE_MAX_CHARS, CODING_SKIN_RETRY_DELAYS_MS, CODING_SKIN_SESSION_QUERY, CODING_SKIN_WORKER_LIFETIME_MS, EMPTY_ACTIVITY_CURSOR, HOST_MODEL_CALLBACK_HOST, HOST_MODEL_CALLBACK_PATH, HOST_MODEL_DEADLINE_HEADER, SKILL_CATEGORIES, activityCursorSchema, agentProcessIdentity, appendObserveLedgerRows, codingSkinHookCommand, compactAgentView, composeAgentStatusLine, composeContinuityContext, continuityBriefPath, foldActivity, isAgentText, isCodingSkinHookCommand, markAgentResultSeen, observeAgentEvent, readAgentView, readNewLines, refreshContinuityBrief, renderAgentStatusLine, shellQuote, skillVersionFor, snoProgramPath };
@@ -2644,7 +2644,7 @@ function defaultSettings() {
2644
2644
  language: "en"
2645
2645
  },
2646
2646
  snoGpu: {
2647
- baseUrl: "https://rt3-llm.sno.ai",
2647
+ baseUrl: "https://gpu.sno.ai",
2648
2648
  apiKey: ""
2649
2649
  },
2650
2650
  rerank: {
@@ -2674,7 +2674,7 @@ function defaultSettings() {
2674
2674
  prompt: {
2675
2675
  limit: 3,
2676
2676
  maxChars: 1500,
2677
- timeoutMs: 4e3,
2677
+ timeoutMs: 25e3,
2678
2678
  minChars: 12,
2679
2679
  minScore: 0
2680
2680
  },
@@ -1,4 +1,4 @@
1
- import { n as version, t as logSiteCatalog } from "./log-site-catalog.generated-Dtiih6m2.js";
1
+ import { n as version, t as logSiteCatalog } from "./log-site-catalog.generated-ClhbzmWf.js";
2
2
  import { diagnosticProcessInstanceId, encodeDiagnostic as encodeDiagnostic$1, writeEmergencyDiagnostic as writeEmergencyDiagnostic$1 } from "@snoai/utils/log-encoder";
3
3
  // src/engine/observability/early-diagnostics.ts
4
4
  function bindApplication(input) {
package/dist/index.js CHANGED
@@ -9,24 +9,24 @@ import { a as readTrustedUserId, c as inspectProviderProjects, o as resolveProvi
9
9
  import { debugContentPreview } from "./internal/engine/shared/utils.js";
10
10
  import { c as withMemoryOperation, t as checkMemoryOperation } from "./operation-cancellation-mqfQz0ka.js";
11
11
  import { pruneOldestEntries, setLruEntry } from "./internal/engine/shared/lru.js";
12
- import { c as CODING_SKIN_LEDGER_MAX_CHARS, g as CODING_SKIN_SESSION_QUERY } from "./coding-skin-BnFryVac.js";
12
+ import { c as CODING_SKIN_LEDGER_MAX_CHARS, g as CODING_SKIN_SESSION_QUERY } from "./coding-skin-lewnGLT-.js";
13
13
  import { defaultSettings } from "./internal/config/settings.js";
14
14
  import { t as appendAuditEntry } from "./runtime-audit-log-4NJsojEj.js";
15
- import { i as createLlmClient } from "./llm-client-BtbX4af4.js";
15
+ import { i as createLlmClient } from "./llm-client-DhBvu-U_.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-Dg2LHZ25.js";
18
- import { a as serializeIntervalMetadata, o as resolveMemoryDate } from "./memory-temporality-classifier-Bm0EiCN8.js";
18
+ import { a as serializeIntervalMetadata, o as resolveMemoryDate } from "./memory-temporality-classifier-DTRhzXmG.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-DXeqknml.js";
21
21
  import { executeMemoryRecallTool } from "./internal/engine/bindings/memory-recall-tool.js";
22
- import { t as createReflectionStrategyState } from "./strategy-hook-runner-CwqZ1orf.js";
22
+ import { t as createReflectionStrategyState } from "./strategy-hook-runner-CvdsVcwR.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-Dyckr_Ma.js";
29
+ import { t as createRunMemoryReflection } from "./reflection-command-hooks-DBpqpF7A.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";
@@ -121,7 +121,7 @@ function defaultSettings() {
121
121
  language: "en"
122
122
  },
123
123
  snoGpu: {
124
- baseUrl: "https://rt3-llm.sno.ai",
124
+ baseUrl: "https://gpu.sno.ai",
125
125
  apiKey: ""
126
126
  },
127
127
  rerank: {
@@ -151,7 +151,7 @@ function defaultSettings() {
151
151
  prompt: {
152
152
  limit: 3,
153
153
  maxChars: 1500,
154
- timeoutMs: 4e3,
154
+ timeoutMs: 25e3,
155
155
  minChars: 12,
156
156
  minScore: 0
157
157
  },
@@ -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-BxVJ-bHs.js";
4
+ import "../../../memory-tool-dependencies-BQHE4kMD.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-BxVJ-bHs.js";
6
+ import "../../../memory-tool-dependencies-BQHE4kMD.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-BxVJ-bHs.js";
6
+ import { t as countTokens } from "../../../memory-tool-dependencies-BQHE4kMD.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-BxVJ-bHs.js";
2
+ import "../../../memory-tool-dependencies-BQHE4kMD.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-W53-Odqm.js";
@@ -1,6 +1,6 @@
1
1
  import { i as isSystemBypassId } from "../../../memory-scope-policy-Dg2LHZ25.js";
2
2
  import { readEstimatedSpendToday } from "../operations/daily-spend-estimator.js";
3
- import "../../../memory-tool-dependencies-BxVJ-bHs.js";
3
+ import "../../../memory-tool-dependencies-BQHE4kMD.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-4NJsojEj.js";
6
6
  import { a as detectCategory } from "../../../capture-policy-detector-DhNGhDw3.js";
7
7
  import { stripEnvelopeMetadata } from "../extraction/extraction-text-sanitizer.js";
8
- import { a as serializeIntervalMetadata, o as resolveMemoryDate } from "../../../memory-temporality-classifier-Bm0EiCN8.js";
9
- import "../../../memory-tool-dependencies-BxVJ-bHs.js";
8
+ import { a as serializeIntervalMetadata, o as resolveMemoryDate } from "../../../memory-temporality-classifier-DTRhzXmG.js";
9
+ import "../../../memory-tool-dependencies-BQHE4kMD.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-DSX6R3GF.js";
13
+ import { n as createRetireByNameRunBudget, r as runProfileSectionUpdate } from "../../../profile-section-writer-QiB0MMtt.js";
14
14
  // 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-BxVJ-bHs.js";
2
+ import "../../../memory-tool-dependencies-BQHE4kMD.js";
3
3
  // 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-BxVJ-bHs.js";
2
+ import { n as z } from "../../../memory-tool-dependencies-BQHE4kMD.js";
3
3
  import { createLogger } from "@snoai/utils/logger";
4
4
  // 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-BxVJ-bHs.js";
2
+ import { n as z } from "../../../memory-tool-dependencies-BQHE4kMD.js";
3
3
  // 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-Cglikqj8.js";
5
5
  import { clamp01 } from "../shared/utils.js";
6
6
  import { t as appendAuditEntry } from "../../../runtime-audit-log-4NJsojEj.js";
7
7
  import { stripEnvelopeMetadata } from "../extraction/extraction-text-sanitizer.js";
8
- import { a as serializeIntervalMetadata, o as resolveMemoryDate } from "../../../memory-temporality-classifier-Bm0EiCN8.js";
9
- import "../../../memory-tool-dependencies-BxVJ-bHs.js";
8
+ import { a as serializeIntervalMetadata, o as resolveMemoryDate } from "../../../memory-temporality-classifier-DTRhzXmG.js";
9
+ import "../../../memory-tool-dependencies-BQHE4kMD.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,10 +4,10 @@ import { t as checkMemoryOperation } from "../../../operation-cancellation-mqfQz
4
4
  import { r as modelCallDestination } from "../../../model-call-table-BxGwmwv0.js";
5
5
  import { t as appendAuditEntry } from "../../../runtime-audit-log-4NJsojEj.js";
6
6
  import { t as normalizeAmbientLearningText } from "../../../ambient-learning-text-normalizer-dxAxf9oi.js";
7
- import { a as serializeIntervalMetadata, i as parseSessionTimestamp, s as unresolvedMemoryDate } from "../../../memory-temporality-classifier-Bm0EiCN8.js";
7
+ import { a as serializeIntervalMetadata, i as parseSessionTimestamp, s as unresolvedMemoryDate } from "../../../memory-temporality-classifier-DTRhzXmG.js";
8
8
  import { resolveHookAgentId } from "./sno-station-mem-runtime-mode.js";
9
9
  import { c as shouldSkipReflectionMessage } from "../../../daily-log-generator-DdzlaQYy.js";
10
- import "../../../sno-station-mem-runtime-dependencies-DITNvfkR.js";
10
+ import "../../../sno-station-mem-runtime-dependencies-Fq6yRstU.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-DXeqknml.js";
9
9
  import { isChatIdBasedAgentId, resolveHookAgentId } from "./sno-station-mem-runtime-mode.js";
10
10
  import { t as parseReflectionMetadata } from "../../../entry-metadata-parser-W53-Odqm.js";
11
- import "../../../sno-station-mem-runtime-dependencies-DITNvfkR.js";
11
+ import "../../../sno-station-mem-runtime-dependencies-Fq6yRstU.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-4NJsojEj.js";
2
2
  import { pickLlmRoutingConfig, resolveLlmRoute } from "../../model/llm-mode-routing.js";
3
- import { r as createSignedAtomicMemoryExtractionTransports, t as AtomicInsightDistiller } from "../../../atomic-memory-extraction-CWMMWF2C.js";
4
- import "../../../sno-station-mem-runtime-dependencies-DITNvfkR.js";
3
+ import { r as createSignedAtomicMemoryExtractionTransports, t as AtomicInsightDistiller } from "../../../atomic-memory-extraction-OusdO3Ig.js";
4
+ import "../../../sno-station-mem-runtime-dependencies-Fq6yRstU.js";
5
5
  import { createLogger } from "@snoai/utils/logger";
6
6
  // 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-CO2vv_QJ.js";
2
2
  import { parseIsoDateTimeMs } from "../shared/iso-date-time.js";
3
3
  import { t as normalizeAmbientLearningText } from "../../../ambient-learning-text-normalizer-dxAxf9oi.js";
4
- import { a as escapeTranscriptRoleContinuations } from "../../../atomic-memory-extraction-CWMMWF2C.js";
5
- import "../../../sno-station-mem-runtime-dependencies-DITNvfkR.js";
4
+ import { a as escapeTranscriptRoleContinuations } from "../../../atomic-memory-extraction-OusdO3Ig.js";
5
+ import "../../../sno-station-mem-runtime-dependencies-Fq6yRstU.js";
6
6
  import { sanitizeContentIngress } from "@snoai/content-sanitizer";
7
7
  import { Temporal } from "@js-temporal/polyfill";
8
8
  // src/engine/bindings/sno-station-mem-message-transcript.ts
@@ -1 +1 @@
1
- export { t as AtomicInsightDistiller, n as createAtomicResplitTransport, r as createSignedAtomicMemoryExtractionTransports, i as runAtomicMemoryExtraction } from "../../../atomic-memory-extraction-CWMMWF2C.js";
1
+ export { t as AtomicInsightDistiller, n as createAtomicResplitTransport, r as createSignedAtomicMemoryExtractionTransports, i as runAtomicMemoryExtraction } from "../../../atomic-memory-extraction-OusdO3Ig.js";
@@ -1 +1 @@
1
- export { t as classifyTemporal, n as inferExpiry, r as inferTemporalInterval, i as parseSessionTimestamp, a as serializeIntervalMetadata } from "../../../memory-temporality-classifier-Bm0EiCN8.js";
1
+ export { t as classifyTemporal, n as inferExpiry, r as inferTemporalInterval, i as parseSessionTimestamp, a as serializeIntervalMetadata } from "../../../memory-temporality-classifier-DTRhzXmG.js";
@@ -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-4NJsojEj.js";
3
3
  import { getSnoStationMemStateDir } from "../../contract/profile.js";
4
- import { x as MemoryStore } from "../../../store-YX1_c1NH.js";
4
+ import { x as MemoryStore } from "../../../store-cu7Qq2OW.js";
5
5
  import { t as countEmbeddingTokens } from "../../../token-counter-N9I9iWq1.js";
6
6
  import { isAbsolute } from "node:path";
7
7
  import { detectProjectId } from "@snoai/observability";
@@ -4,7 +4,7 @@ import { pickLlmRoutingConfig, resolveLlmRoute } from "../../model/llm-mode-rout
4
4
  import { n as ATOMIC_EXTRACTION_SKILL_HASH } from "../../../atomic-extraction-skill-5lAqr8BM.js";
5
5
  import { r as ATOMIC_EXTRACTION_RESPONSE_JSON_SCHEMA } from "../../../atomic-extraction-reply-CoxIGLmU.js";
6
6
  import { r as attribute_dictionary_default } from "../../../relation-dictionary-QVBewRQ1.js";
7
- import { n as version, t as logSiteCatalog } from "../../../log-site-catalog.generated-Dtiih6m2.js";
7
+ import { n as version, t as logSiteCatalog } from "../../../log-site-catalog.generated-ClhbzmWf.js";
8
8
  import { configureLogger, createLogger, effectiveLogLevel, loggerFileStatus } from "@snoai/utils/logger";
9
9
  import { createHash } from "node:crypto";
10
10
  // src/engine/observability/runtime-diagnostics.ts
@@ -1 +1 @@
1
- export { t as createRunMemoryReflection } from "../../../reflection-command-hooks-Dyckr_Ma.js";
1
+ export { t as createRunMemoryReflection } from "../../../reflection-command-hooks-DBpqpF7A.js";
@@ -1 +1 @@
1
- export { t as DEFAULT_MEMORY_LLM_CONFIG, n as createReflectionGenerator, r as isInternalReflectionSessionKey, i as pruneReflectionState, a as resolveWorkspaceDirFromEvent } from "../../../reflection-embedded-generator-i8KHqMpr.js";
1
+ export { t as DEFAULT_MEMORY_LLM_CONFIG, n as createReflectionGenerator, r as isInternalReflectionSessionKey, i as pruneReflectionState, a as resolveWorkspaceDirFromEvent } from "../../../reflection-embedded-generator-DNFMQNsv.js";
@@ -1,5 +1,5 @@
1
1
  import { vt as FIXED_PROTOCOL_VALUE_79 } from "../../../signed-registry-constants-CO2vv_QJ.js";
2
- import { c as getReflectionDerivedSuppression, d as getReflectionDerivedCacheEntry, r as isInternalReflectionSessionKey, s as deleteReflectionDerivedSuppression } from "../../../reflection-embedded-generator-i8KHqMpr.js";
2
+ import { c as getReflectionDerivedSuppression, d as getReflectionDerivedCacheEntry, r as isInternalReflectionSessionKey, s as deleteReflectionDerivedSuppression } from "../../../reflection-embedded-generator-DNFMQNsv.js";
3
3
  import { createLogger, privateLogReference } from "@snoai/utils/logger";
4
4
  // 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-CqvwBBWn.js";
3
- import { r as isInternalReflectionSessionKey, s as deleteReflectionDerivedSuppression } from "../../../reflection-embedded-generator-i8KHqMpr.js";
3
+ import { r as isInternalReflectionSessionKey, s as deleteReflectionDerivedSuppression } from "../../../reflection-embedded-generator-DNFMQNsv.js";
4
4
  // 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-i8KHqMpr.js";
2
- import { t as createReflectionStrategyState } from "../../../strategy-hook-runner-CwqZ1orf.js";
1
+ import { r as isInternalReflectionSessionKey } from "../../../reflection-embedded-generator-DNFMQNsv.js";
2
+ import { t as createReflectionStrategyState } from "../../../strategy-hook-runner-CvdsVcwR.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-BtbX4af4.js";
1
+ import { a as isTerminalLlmFailure, i as createLlmClient, n as LlmClientTerminalError, r as ModelCallRefusedError, t as JSON_SYSTEM_CONTENT } from "../../llm-client-DhBvu-U_.js";
2
2
  import { a as repairCommonJson, r as extractJsonFromResponse } from "../../model-reply-text-C7jEWDXG.js";
3
3
  export { JSON_SYSTEM_CONTENT, LlmClientTerminalError, ModelCallRefusedError, createLlmClient, extractJsonFromResponse, isTerminalLlmFailure, repairCommonJson };
@@ -1,12 +1,12 @@
1
1
  import { BACKUP_INTERVAL_MS, BACKUP_MIN_FREE_DISK_RATIO, FTS_MERGE_INTERVAL_MS, INTEGRITY_CHECK_INTERVAL_MS, MAINTENANCE_TICK_MS, PLANNER_STATISTICS_INTERVAL_MS, REM_TRIGGER_CHECK_INTERVAL_MS, USAGE_EVENT_RETENTION_INTERVAL_MS, USAGE_OUTBOX_INTERVAL_MS } from "../config/index.js";
2
2
  import { REM_SIDECAR_TOKEN_HEADER } from "../contract/routes.js";
3
3
  import "../engine/shared/utils.js";
4
- import "../../coding-skin-BnFryVac.js";
4
+ import "../../coding-skin-lewnGLT-.js";
5
5
  import "../config/settings.js";
6
6
  import { n as appendAuditEntryStrict, p as readJsonlLines, s as getAuditPath, t as appendAuditEntry } from "../../runtime-audit-log-4NJsojEj.js";
7
7
  import { getDiscoveryPath, getSnoStationMemStateDir } from "../contract/profile.js";
8
8
  import "../engine/shared/paths.js";
9
- import "../../llm-client-BtbX4af4.js";
9
+ import "../../llm-client-DhBvu-U_.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-QVBewRQ1.js";
@@ -14,7 +14,7 @@ import "../../memory-store-shared-B-zOxk_Q.js";
14
14
  import { n as loadSqliteVecExtension } from "../../unplaced-candidate-migration-BFQqjIDP.js";
15
15
  import { openSqliteDatabase } from "./sqlite-runtime.js";
16
16
  import "../../connection-H-_OZ-pP.js";
17
- import "../../store-YX1_c1NH.js";
17
+ import "../../store-cu7Qq2OW.js";
18
18
  import "../../embedding-provider-client-ClgiYSD4.js";
19
19
  import "../../retriever-DRtPp86k.js";
20
20
  import { t as recordMemoryTelemetryIncident } from "../../memory-telemetry-incidents-Dp8GVD2Q.js";
@@ -1 +1 @@
1
- export { p as ATOMIC_FACT_SURFACE_LANE, v as AtomicExtractionCompletedElsewhere, x as MemoryStore, S as StaleSupersedeTargetError, C as TaskLifecycleCommandCollisionError, w as TaskLifecycleStaleResolutionError, T as TaskLifecycleStateCollisionError, E as TaskLifecycleTimestampCollisionError, t as buildTaskLifecycleMigrationManifest, _ as hashMemorySuppressionContent, b as normalizeMemoryRelationPredicate, y as repairAtomicExtractionParameters } from "../../store-YX1_c1NH.js";
1
+ export { p as ATOMIC_FACT_SURFACE_LANE, v as AtomicExtractionCompletedElsewhere, x as MemoryStore, S as StaleSupersedeTargetError, C as TaskLifecycleCommandCollisionError, w as TaskLifecycleStaleResolutionError, T as TaskLifecycleStateCollisionError, E as TaskLifecycleTimestampCollisionError, t as buildTaskLifecycleMigrationManifest, _ as hashMemorySuppressionContent, b as normalizeMemoryRelationPredicate, y as repairAtomicExtractionParameters } from "../../store-cu7Qq2OW.js";
@@ -182,7 +182,7 @@ async function resolveConfiguredBundledLlmixEndpoint(input) {
182
182
  });
183
183
  }
184
184
  // src/model/llm-endpoint-resolution.ts
185
- const SNO_GPU_ORIGIN = "https://rt3-llm.sno.ai";
185
+ const SNO_GPU_ORIGIN = "https://gpu.sno.ai";
186
186
  const PROVIDER_API_BASES = {
187
187
  openai: FIXED_PROTOCOL_VALUE_69,
188
188
  openrouter: "https://openrouter.ai/api/v1"
@@ -1,8 +1,8 @@
1
1
  // package.json
2
- var version = "1.7.1";
2
+ var version = "2.0.1";
3
3
  // src/engine/observability/log-site-catalog.generated.ts
4
4
  const logSiteCatalog = {
5
- "build_id": "adc3f82ce64373cc97694ab820cb8be47d6786fb3a73a9048b88607316796a38",
5
+ "build_id": "0c92bdd66ef1e0fe428b67b40d230015d829b64236db324460f31fa0237b766f",
6
6
  "sites": {
7
7
  "memory.recall.budget.checked": {
8
8
  "file": "packages/memory/src/engine/bindings/memory-recall-tool.ts",