@snoai/memory 1.5.0 → 1.5.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.
- package/README.md +1 -1
- package/dist/{access-tracker-B1H2AJlH.d.ts → access-tracker-D-riPZRY.d.ts} +3 -3
- package/dist/{adapter-CgdVA88V.d.ts → adapter-BM58hult.d.ts} +2 -2
- package/dist/{atomic-memory-extraction-DCMTQ0h-.d.ts → atomic-memory-extraction-BNBCB1XD.d.ts} +4 -4
- package/dist/{atomic-memory-extraction-De86y7O-.js → atomic-memory-extraction-BaBrfESt.js} +5 -5
- package/dist/{b-profile-section-dictionary-provider-DbqdRYMw.d.ts → b-profile-section-dictionary-provider-D2kzg9Re.d.ts} +1 -1
- package/dist/{capture-policy-detector-D4ziS7KF.d.ts → capture-policy-detector-CoT-j_Ic.d.ts} +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/{config-DWeuetYo.js → config-BhlMin82.js} +8 -16
- package/dist/{connection-PQcq3TPO.js → connection-BtK-3r-f.js} +1 -20
- package/dist/{connection-3IVXpuPE.d.ts → connection-D989FqGS.d.ts} +1 -17
- package/dist/{derived-suppression-cache-2xOq6XHX.d.ts → derived-suppression-cache-BW52dq3w.d.ts} +1 -1
- package/dist/diagnostic-encoder.js +1 -1
- package/dist/{index-PjHhlG6e.d.ts → index-GoYmsx8b.d.ts} +2 -2
- package/dist/index.d.ts +9 -9
- package/dist/index.js +4 -4
- package/dist/internal/config/plugin-config-schema.d.ts +1 -1
- package/dist/internal/config/product-mode.d.ts +1 -1
- package/dist/internal/config/settings.d.ts +1 -1
- package/dist/internal/config/settings.js +1 -1
- package/dist/internal/config/skin-defaults.d.ts +1 -1
- package/dist/internal/contract/profile.d.ts +1 -1
- package/dist/internal/contract/routes.d.ts +1 -1
- package/dist/internal/engine/bindings/memory-cli-shared.d.ts +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.d.ts +1 -1
- package/dist/internal/engine/bindings/memory-tool-access.js +1 -1
- package/dist/internal/engine/bindings/memory-tool-results.d.ts +1 -1
- package/dist/internal/engine/bindings/memory-tool-results.js +1 -1
- package/dist/internal/engine/bindings/memory-tool-schemas.d.ts +5 -5
- package/dist/internal/engine/bindings/memory-tool-schemas.js +1 -1
- package/dist/internal/engine/bindings/memory-update-tool.js +2 -2
- package/dist/internal/engine/bindings/sno-station-mem-ambient-learning-hook.d.ts +4 -4
- package/dist/internal/engine/bindings/sno-station-mem-ambient-learning-hook.js +3 -3
- package/dist/internal/engine/bindings/sno-station-mem-auto-recall-hook.d.ts +4 -4
- package/dist/internal/engine/bindings/sno-station-mem-auto-recall-hook.js +1 -1
- package/dist/internal/engine/bindings/sno-station-mem-insight-distill-factory.d.ts +5 -5
- package/dist/internal/engine/bindings/sno-station-mem-insight-distill-factory.js +2 -2
- package/dist/internal/engine/bindings/sno-station-mem-message-transcript.js +2 -2
- package/dist/internal/engine/bindings/sno-station-mem-reset-hook.d.ts +3 -3
- package/dist/internal/engine/bindings/sno-station-mem-runtime-mode.d.ts +1 -1
- package/dist/internal/engine/extraction/atomic-memory-extraction.d.ts +1 -1
- package/dist/internal/engine/extraction/atomic-memory-extraction.js +1 -1
- package/dist/internal/engine/extraction/b-profile-section-dictionary-provider.d.ts +1 -1
- package/dist/internal/engine/extraction/b-profile-section-rekey.d.ts +5 -5
- package/dist/internal/engine/extraction/capture-policy-detector.d.ts +1 -1
- package/dist/internal/engine/extraction/memory-metadata-codec.d.ts +2 -2
- package/dist/internal/engine/extraction/memory-temporality-classifier.d.ts +1 -1
- package/dist/internal/engine/extraction/memory-temporality-classifier.js +1 -1
- package/dist/internal/engine/observability/adapter.d.ts +1 -1
- package/dist/internal/engine/observability/memory-snapshot.d.ts +1 -1
- package/dist/internal/engine/observability/observable-embedder.d.ts +1 -1
- package/dist/internal/engine/observability/observable-llm-client.d.ts +1 -1
- package/dist/internal/engine/observability/observable-memory-store.d.ts +1 -1
- package/dist/internal/engine/observability/observable-memory-store.js +1 -1
- package/dist/internal/engine/observability/observable-retriever.d.ts +1 -1
- package/dist/internal/engine/observability/runtime-diagnostics.d.ts +1 -1
- package/dist/internal/engine/observability/runtime-diagnostics.js +2 -2
- package/dist/internal/engine/operations/memory-tier-promoter.d.ts +1 -1
- package/dist/internal/engine/operations/runtime-audit-log.d.ts +2 -2
- package/dist/internal/engine/provider/provider-registration.d.ts +4 -4
- package/dist/internal/engine/provider/provider-row-renderer.d.ts +1 -1
- package/dist/internal/engine/reflection/reflection-command-hooks.d.ts +1 -1
- package/dist/internal/engine/reflection/reflection-command-hooks.js +1 -1
- package/dist/internal/engine/reflection/reflection-deps.d.ts +1 -1
- package/dist/internal/engine/reflection/reflection-embedded-generator.d.ts +1 -1
- package/dist/internal/engine/reflection/reflection-embedded-generator.js +1 -1
- package/dist/internal/engine/reflection/reflection-injection-hooks.d.ts +1 -1
- package/dist/internal/engine/reflection/reflection-injection-hooks.js +1 -1
- package/dist/internal/engine/reflection/reflection-lifecycle-hooks.d.ts +1 -1
- package/dist/internal/engine/reflection/reflection-lifecycle-hooks.js +1 -1
- package/dist/internal/engine/reflection/strategy-hook-runner.d.ts +3 -3
- package/dist/internal/engine/reflection/strategy-hook-runner.js +2 -2
- package/dist/internal/engine/retrieval/access-tracker.d.ts +1 -1
- package/dist/internal/engine/retrieval/retriever.d.ts +1 -1
- package/dist/internal/engine/shared/memory-kind-policy.d.ts +1 -1
- package/dist/internal/engine/shared/paths.d.ts +2 -2
- package/dist/internal/engine/shared/types.d.ts +2 -2
- package/dist/internal/engine/telemetry/observe-ledger.d.ts +1 -1
- package/dist/internal/model/llm-client.d.ts +2 -2
- package/dist/internal/model/llm-client.js +1 -1
- package/dist/internal/model/llm-mode-routing.d.ts +1 -1
- package/dist/internal/model/llm-mode-routing.js +1 -1
- package/dist/internal/store/atomic-memory-cutover-sql.js +1 -1
- package/dist/internal/store/connection.d.ts +2 -2
- package/dist/internal/store/connection.js +2 -2
- package/dist/internal/store/maintenance.d.ts +2 -2
- package/dist/internal/store/maintenance.js +4 -4
- package/dist/internal/store/memory-kinds-cutover-migrator.d.ts +0 -2
- package/dist/internal/store/memory-kinds-cutover-migrator.js +1 -10
- package/dist/internal/store/store.d.ts +2 -2
- package/dist/internal/store/store.js +1 -1
- package/dist/{llm-client-C-K7oyfu.d.ts → llm-client-9XCsnmf0.d.ts} +1 -1
- package/dist/{llm-client-DDdUjYWS.js → llm-client-Z_VkmTsW.js} +1 -1
- package/dist/{log-site-catalog.generated-Cn8rTa65.js → log-site-catalog.generated-lc-iJczN.js} +14 -14
- package/dist/log-site-catalog.json +1 -1
- package/dist/{memory-entry-projector-DHo8jH10.js → memory-entry-projector-B36Nwsi_.js} +2 -1
- package/dist/{memory-kind-policy-DgPCjfY4.d.ts → memory-kind-policy-DcEvUTKl.d.ts} +1 -1
- package/dist/{memory-metadata-codec-CfP9JLVO.d.ts → memory-metadata-codec-CLtCCf-b.d.ts} +1 -1
- package/dist/{memory-runtime-jQke2sBc.js → memory-runtime-De1T9jTv.js} +19 -17
- package/dist/{memory-snapshot-B6a-6nJ7.d.ts → memory-snapshot-BXB2APN0.d.ts} +2 -2
- package/dist/{memory-store-base-upd9MuG6.d.ts → memory-store-base-yOAD7Ff8.d.ts} +3 -3
- package/dist/{memory-store-shared-CURizQIy.js → memory-store-shared-pOb59ScU.js} +1 -1
- package/dist/{memory-temporality-classifier-DPk3_9Or.d.ts → memory-temporality-classifier-BxmM3FOb.d.ts} +1 -1
- package/dist/{memory-temporality-classifier-BwBKEQbL.js → memory-temporality-classifier-s7TjoKB-.js} +2 -2
- package/dist/{memory-tier-promoter-Cq23yveQ.d.ts → memory-tier-promoter-DjJwYB4w.d.ts} +1 -1
- package/dist/memory-tool-dependencies-BsaSVzC8.d.ts +14 -0
- package/dist/{memory-tool-dependencies-aAr7Pkuj.js → memory-tool-dependencies-C8JSCWCz.js} +1 -1
- package/dist/{model-call-table-DoIl2S0P.js → model-call-table-CPyQfBJ6.js} +7 -7
- package/dist/{observable-embedder-DihQuuQD.d.ts → observable-embedder-DCtHXucw.d.ts} +1 -1
- package/dist/{observable-llm-client-BglDBFN5.d.ts → observable-llm-client-DykY0exK.d.ts} +3 -3
- package/dist/{observable-memory-store--n02Dre8.d.ts → observable-memory-store-ZBTjMAHj.d.ts} +4 -4
- package/dist/{observable-retriever-CV6odifA.d.ts → observable-retriever-f8ENkQnP.d.ts} +5 -5
- package/dist/paths-m8yncZgm.d.ts +1 -0
- package/dist/{plugin-config-schema-dV2_HgBo.d.ts → plugin-config-schema-CsKKIHq9.d.ts} +1 -1
- package/dist/{profile-CoLKGobS.d.ts → profile-CxdMGvxU.d.ts} +1 -1
- package/dist/{profile-section-writer-Dd4FKpt5.js → profile-section-writer-B54r7JN1.js} +2 -2
- package/dist/{reflection-command-hooks-Cfv836Wc.d.ts → reflection-command-hooks-_B_XZBIz.d.ts} +4 -4
- package/dist/{reflection-command-hooks-B2P4zDr6.js → reflection-command-hooks-a1kgC2cr.js} +5 -4
- package/dist/{reflection-deps-DihlwQxE.d.ts → reflection-deps-DQBHeGYK.d.ts} +2 -2
- package/dist/{reflection-embedded-generator-DV-NkeU-.js → reflection-embedded-generator-DEuTWrBh.js} +1 -1
- package/dist/{reflection-embedded-generator-DCZaS6kz.d.ts → reflection-embedded-generator-LmZQqGER.d.ts} +3 -3
- package/dist/{reflection-injection-hooks-BYxkrds6.d.ts → reflection-injection-hooks-CTDCwu2_.d.ts} +4 -4
- package/dist/{reflection-lifecycle-hooks-Bwq2y5pe.d.ts → reflection-lifecycle-hooks-eFUc2mcd.d.ts} +3 -3
- package/dist/{rem-batch-executor-B_49KivZ.js → rem-batch-executor-D42YWCNg.js} +1 -1
- package/dist/{rem-trigger-DL0MlLeo.js → rem-trigger-BKr4Qmhn.js} +10 -1
- package/dist/{retriever-hTIkt3CJ.d.ts → retriever-BsjtyINJ.d.ts} +6 -6
- package/dist/{runtime-audit-log-eBrt_iPp.d.ts → runtime-audit-log-C-L0v2HU.d.ts} +1 -1
- package/dist/{server-BnBzsvMF.js → server-BPOT66a_.js} +4 -4
- package/dist/sidecar/main.js +2 -2
- package/dist/sno-station-mem-runtime-dependencies-B47DIcei.d.ts +31 -0
- package/dist/{sno-station-mem-runtime-dependencies-DrVDRAmf.js → sno-station-mem-runtime-dependencies-DES7ZvMt.js} +6 -6
- package/dist/{store-DEG06TLb.d.ts → store-CukgAPqu.d.ts} +1 -1
- package/dist/{store-COwW7mIh.js → store-DRwqWMTh.js} +3 -3
- package/dist/{strategy-hook-runner-D1sRVThs.d.ts → strategy-hook-runner-BlJxjMjC.d.ts} +7 -7
- package/dist/{strategy-hook-runner-CALbWcys.js → strategy-hook-runner-s8dAEQ3P.js} +2 -2
- package/dist/{types-DBEwNYdR.d.ts → types-C9Hngi-p.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/memory-tool-dependencies-C9qgVGOn.d.ts +0 -14
- package/dist/paths-qJqwGcKl.d.ts +0 -1
- package/dist/sno-station-mem-runtime-dependencies-9L8WkMMV.d.ts +0 -31
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.5.
|
|
31
|
+
npm install @snoai/memory@1.5.1
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
Needs Node.js 22.22.3+, 24.15.0+ or 25.9.0+. Licensed under Apache-2.0.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { v as MemoryMetadata } from "./types-
|
|
1
|
+
import { v as MemoryMetadata } from "./types-C9Hngi-p.js";
|
|
2
2
|
import { sn as RecallLifecycleConfig } from "./index-BGu91bjB.js";
|
|
3
|
-
import { C as MemoryStore } from "./memory-store-base-
|
|
4
|
-
import "./store-
|
|
3
|
+
import { C as MemoryStore } from "./memory-store-base-yOAD7Ff8.js";
|
|
4
|
+
import "./store-CukgAPqu.js";
|
|
5
5
|
//#region src/engine/retrieval/access-tracker.d.ts
|
|
6
6
|
interface AccessMetadata {
|
|
7
7
|
readonly accessCount: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as PluginConfig } from "./plugin-config-schema-
|
|
2
|
-
import "./types-
|
|
1
|
+
import { t as PluginConfig } from "./plugin-config-schema-CsKKIHq9.js";
|
|
2
|
+
import "./types-C9Hngi-p.js";
|
|
3
3
|
import { t as ObserveLogger } from "./best-effort-BPZSzKk0.js";
|
|
4
4
|
import { AgentId, EventType, JsonObject } from "@snoai/observability";
|
|
5
5
|
//#region src/engine/observability/cost-aggregator.d.ts
|
package/dist/{atomic-memory-extraction-DCMTQ0h-.d.ts → atomic-memory-extraction-BNBCB1XD.d.ts}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { i as LlmClientConfig, l as ModelCallId, p as LlmRoutingConfig, r as LlmClient } from "./plugin-config-schema-
|
|
1
|
+
import { i as LlmClientConfig, l as ModelCallId, p as LlmRoutingConfig, r as LlmClient } from "./plugin-config-schema-CsKKIHq9.js";
|
|
2
2
|
import { n as Locale } from "./locales-JxGmkG6t.js";
|
|
3
3
|
import { qt as AdapterAMemoryView } from "./index-DPfJrOFD.js";
|
|
4
|
-
import { C as MemoryStore, c as AtomicExtractionRunParameters, f as AtomicExtractionWriteResult, g as BeginAtomicExtractionChunkResult, r as AtomicExtractionLedgerKey, s as AtomicExtractionReprocessReason, x as MemoryRelationPredicate } from "./memory-store-base-
|
|
5
|
-
import "./store-
|
|
6
|
-
import "./llm-client-
|
|
4
|
+
import { C as MemoryStore, c as AtomicExtractionRunParameters, f as AtomicExtractionWriteResult, g as BeginAtomicExtractionChunkResult, r as AtomicExtractionLedgerKey, s as AtomicExtractionReprocessReason, x as MemoryRelationPredicate } from "./memory-store-base-yOAD7Ff8.js";
|
|
5
|
+
import "./store-CukgAPqu.js";
|
|
6
|
+
import "./llm-client-9XCsnmf0.js";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
//#region src/engine/extraction/calendar-instruction.d.ts
|
|
9
9
|
type CalendarPrecision = "year" | "month" | "week" | "day" | "minute";
|
|
@@ -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-Z_VkmTsW.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-s7TjoKB-.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
|
-
import { g as randomUUID$1 } from "./memory-store-shared-
|
|
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-
|
|
16
|
+
import { g as randomUUID$1 } from "./memory-store-shared-pOb59ScU.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-DRwqWMTh.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-B54r7JN1.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 { g as ProductMode } from "./plugin-config-schema-
|
|
1
|
+
import { g as ProductMode } from "./plugin-config-schema-CsKKIHq9.js";
|
|
2
2
|
import { n as Locale } from "./locales-JxGmkG6t.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region src/engine/extraction/b-profile-section-registry.d.ts
|
package/dist/{capture-policy-detector-D4ziS7KF.d.ts → capture-policy-detector-CoT-j_Ic.d.ts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as MemoryCategory } from "./types-
|
|
1
|
+
import { h as MemoryCategory } from "./types-C9Hngi-p.js";
|
|
2
2
|
//#region src/engine/extraction/capture-policy-detector.d.ts
|
|
3
3
|
declare const PROMPT_INJECTION_PATTERNS: RegExp[];
|
|
4
4
|
/** Implements looks like prompt injection as the local memory capture policy operation. */
|
package/dist/client.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Discovery } from "./internal/contract/discovery.js";
|
|
2
|
-
import { B as Registration, F as Inspection, H as Turn, I as JsonValue, L as Message, N as HostEvent, P as InitRegistration, R as Mutation, U as UsageSignal, V as ScopeCtx, n as MemoryContract, rt as DegradedReason, tt as ContractError, y as ContractOutputs, z as RecallOptions } from "./index-
|
|
2
|
+
import { B as Registration, F as Inspection, H as Turn, I as JsonValue, L as Message, N as HostEvent, P as InitRegistration, R as Mutation, U as UsageSignal, V as ScopeCtx, n as MemoryContract, rt as DegradedReason, tt as ContractError, y as ContractOutputs, z as RecallOptions } from "./index-GoYmsx8b.js";
|
|
3
3
|
//#region src/contract/client.d.ts
|
|
4
4
|
export interface ConnectOptions {
|
|
5
5
|
skinId: string;
|
|
@@ -688,7 +688,7 @@ var ModelNotLoadedError = class extends Error {
|
|
|
688
688
|
this.name = "ModelNotLoadedError";
|
|
689
689
|
}
|
|
690
690
|
};
|
|
691
|
-
var LocalEmbedProvider = class
|
|
691
|
+
var LocalEmbedProvider = class {
|
|
692
692
|
_disposed = false;
|
|
693
693
|
cacheDir;
|
|
694
694
|
dtype;
|
|
@@ -701,14 +701,8 @@ var LocalEmbedProvider = class LocalEmbedProvider {
|
|
|
701
701
|
pipelineKey;
|
|
702
702
|
offline;
|
|
703
703
|
mirror;
|
|
704
|
-
/**
|
|
705
|
-
* Guard: transformers `env` is process-global — only one cacheDir is allowed per process.
|
|
706
|
-
* Intentionally never reset during normal operation; use `resetStaticState()` only in tests.
|
|
707
|
-
*/
|
|
708
|
-
static configuredCacheDir;
|
|
709
704
|
/** Reset static state — FOR TESTS ONLY. Not safe in production. */
|
|
710
705
|
static resetStaticState() {
|
|
711
|
-
LocalEmbedProvider.configuredCacheDir = void 0;
|
|
712
706
|
sharedExtractor = void 0;
|
|
713
707
|
sharedLoading$1 = void 0;
|
|
714
708
|
sharedRefCount = 0;
|
|
@@ -766,8 +760,6 @@ var LocalEmbedProvider = class LocalEmbedProvider {
|
|
|
766
760
|
throw new Error("LocalEmbedProvider shared ONNX pipeline is already loaded with a different model, revision, dtype, cacheDir, or sessionOptions. Dispose all live providers before changing pipeline configuration.");
|
|
767
761
|
}
|
|
768
762
|
async initPipeline() {
|
|
769
|
-
if (LocalEmbedProvider.configuredCacheDir !== void 0 && LocalEmbedProvider.configuredCacheDir !== this.cacheDir) throw new Error(`transformers env is global; LocalEmbedProvider cacheDir must be consistent (existing: ${LocalEmbedProvider.configuredCacheDir}, requested: ${this.cacheDir})`);
|
|
770
|
-
LocalEmbedProvider.configuredCacheDir = this.cacheDir;
|
|
771
763
|
const { pipeline } = await import("@huggingface/transformers");
|
|
772
764
|
log$1$1.info("loading ONNX model", {
|
|
773
765
|
model: this.modelId,
|
|
@@ -2375,13 +2367,13 @@ const MODEL_CALLS = {
|
|
|
2375
2367
|
}
|
|
2376
2368
|
},
|
|
2377
2369
|
R2: {
|
|
2378
|
-
description: "label local sessions before the
|
|
2379
|
-
calledBy: "
|
|
2370
|
+
description: "label local sessions before the Self Learning cloud upload",
|
|
2371
|
+
calledBy: "Self Learning",
|
|
2380
2372
|
destinations: host
|
|
2381
2373
|
},
|
|
2382
2374
|
R3: {
|
|
2383
|
-
description: "upload sessions nightly for
|
|
2384
|
-
calledBy: "
|
|
2375
|
+
description: "upload sessions nightly for Self Learning",
|
|
2376
|
+
calledBy: "Self Learning",
|
|
2385
2377
|
destinations: {
|
|
2386
2378
|
"local-first": "off",
|
|
2387
2379
|
"agent-native": "sno-gpu",
|
|
@@ -2390,7 +2382,7 @@ const MODEL_CALLS = {
|
|
|
2390
2382
|
},
|
|
2391
2383
|
R4: {
|
|
2392
2384
|
description: "recall one relevant cloud experience on a session's first prompt",
|
|
2393
|
-
calledBy: "
|
|
2385
|
+
calledBy: "Self Learning",
|
|
2394
2386
|
destinations: {
|
|
2395
2387
|
"local-first": "off",
|
|
2396
2388
|
"agent-native": "sno-gpu",
|
|
@@ -2398,8 +2390,8 @@ const MODEL_CALLS = {
|
|
|
2398
2390
|
}
|
|
2399
2391
|
},
|
|
2400
2392
|
R5: {
|
|
2401
|
-
description: "generate local lessons and skill reminders nightly",
|
|
2402
|
-
calledBy: "
|
|
2393
|
+
description: "generate local lessons and skill reminders nightly for Self Learning",
|
|
2394
|
+
calledBy: "Self Learning",
|
|
2403
2395
|
destinations: {
|
|
2404
2396
|
"local-first": "host",
|
|
2405
2397
|
"agent-native": "off",
|
|
@@ -185,25 +185,6 @@ function loadStorageExtensions(sqlite) {
|
|
|
185
185
|
* Mirrors the regex pattern used by `parseVecTableDimension` for
|
|
186
186
|
* `nodix_memory_chunk_vectors` — single SELECT against `sqlite_master`, regex match.
|
|
187
187
|
*/
|
|
188
|
-
/**
|
|
189
|
-
* Round A invariant: detect legacy DBs that pre-date migration 0004
|
|
190
|
-
* (chunk-table swap). If the parent vec/FTS objects still exist, the DB
|
|
191
|
-
* was opened against a build that never ran the new migration — fail loud
|
|
192
|
-
* so the dev wipes the file.
|
|
193
|
-
*/
|
|
194
|
-
function assertNoLegacyBoundarySchema(db) {
|
|
195
|
-
const rows = db.prepare("PRAGMA table_info(nodix_memories)").all();
|
|
196
|
-
if (rows.length === 0) return;
|
|
197
|
-
const columnNames = new Set(rows.map((row) => row.name).filter((name) => !!name));
|
|
198
|
-
const legacyBoundaryColumn = [
|
|
199
|
-
"s",
|
|
200
|
-
"c",
|
|
201
|
-
"o",
|
|
202
|
-
"p",
|
|
203
|
-
"e"
|
|
204
|
-
].join("");
|
|
205
|
-
if (columnNames.has(legacyBoundaryColumn) && !columnNames.has("project_id")) throw new StorageError("legacy boundary schema is unsupported for provider v1");
|
|
206
|
-
}
|
|
207
188
|
function ensureMemoryKindIndexes(db) {
|
|
208
189
|
db.exec("CREATE INDEX IF NOT EXISTS nodix_idx_memories_project_fact_key_active ON nodix_memories(project_id, json_extract(metadata, '$.fact_key')) WHERE json_valid(metadata) AND json_extract(metadata, '$.fact_key') IS NOT NULL AND json_extract(metadata, '$.invalidated_at') IS NULL;");
|
|
209
190
|
}
|
|
@@ -294,4 +275,4 @@ function ensureColumn(database, tableName, columnName, declaration) {
|
|
|
294
275
|
database.exec(`ALTER TABLE ${tableName} ADD COLUMN ${columnName} ${declaration}`);
|
|
295
276
|
}
|
|
296
277
|
//#endregion
|
|
297
|
-
export {
|
|
278
|
+
export { readChunkVecTableDimension as a, validateStoragePath as c, parseVecTableDimension as i, initDb as n, readChunkVecTableState as o, loadStorageExtensions as r, vecTableDdlHasPartitionKey as s, closeDb as t };
|
|
@@ -367,25 +367,9 @@ interface VecTableState {
|
|
|
367
367
|
}
|
|
368
368
|
declare function readChunkVecTableState(db: SqliteDatabaseLike): VecTableState | undefined;
|
|
369
369
|
declare function loadStorageExtensions(sqlite: SqliteRuntimeHandle): void;
|
|
370
|
-
/**
|
|
371
|
-
* Startup invariant: the persisted DDL
|
|
372
|
-
* for `nodix_memory_chunks_fts` must declare `tokenize='simple ...'`. Catches DBs
|
|
373
|
-
* created against an older plugin build (still on `unicode61`) so a stale
|
|
374
|
-
* DB plus a fresh plugin doesn't silently degrade CJK recall to char-level.
|
|
375
|
-
*
|
|
376
|
-
* Mirrors the regex pattern used by `parseVecTableDimension` for
|
|
377
|
-
* `nodix_memory_chunk_vectors` — single SELECT against `sqlite_master`, regex match.
|
|
378
|
-
*/
|
|
379
|
-
/**
|
|
380
|
-
* Round A invariant: detect legacy DBs that pre-date migration 0004
|
|
381
|
-
* (chunk-table swap). If the parent vec/FTS objects still exist, the DB
|
|
382
|
-
* was opened against a build that never ran the new migration — fail loud
|
|
383
|
-
* so the dev wipes the file.
|
|
384
|
-
*/
|
|
385
|
-
declare function assertNoLegacyBoundarySchema(db: SqliteDatabaseLike): void;
|
|
386
370
|
/** Implements init db as the local SQLite connection setup operation. */
|
|
387
371
|
declare function initDb(dbPath: string, vectorDim: number): DrizzleDB;
|
|
388
372
|
/** Implements close db as the local SQLite connection setup operation. */
|
|
389
373
|
declare function closeDb(db: DrizzleDB): void;
|
|
390
374
|
//#endregion
|
|
391
|
-
export {
|
|
375
|
+
export { loadStorageExtensions as a, readChunkVecTableState as c, initDb as i, vecTableDdlHasPartitionKey as l, VecTableState as n, parseVecTableDimension as o, closeDb as r, readChunkVecTableDimension as s, DrizzleDB as t, validateStoragePath as u };
|
|
@@ -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-lc-iJczN.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) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as LlmRoutingConfig, t as PluginConfig } from "./plugin-config-schema-
|
|
2
|
-
import { g as MemoryEntry, h as MemoryCategory, t as AGGREGATION_OPERATIONS, x as RetrievalResult } from "./types-
|
|
1
|
+
import { p as LlmRoutingConfig, t as PluginConfig } from "./plugin-config-schema-CsKKIHq9.js";
|
|
2
|
+
import { g as MemoryEntry, h as MemoryCategory, t as AGGREGATION_OPERATIONS, x as RetrievalResult } from "./types-C9Hngi-p.js";
|
|
3
3
|
import { r as SnoStationMemMemorySearchResult } from "./provider-runtime-types-DFhtdA6d.js";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region src/contract/error.d.ts
|
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { b as Settings, t as PluginConfig } from "./plugin-config-schema-
|
|
2
|
-
import "./types-
|
|
1
|
+
import { b as Settings, t as PluginConfig } from "./plugin-config-schema-CsKKIHq9.js";
|
|
2
|
+
import "./types-C9Hngi-p.js";
|
|
3
3
|
import { n as AgentLlmPort } from "./agent-llm-port-BlFrD2ro.js";
|
|
4
|
-
import { n as PluginObservability } from "./adapter-
|
|
5
|
-
import { $ as turnSchema, A as ContractInputs, B as Registration, C as ToolResponse, D as retrievalResultSchema, E as outputSchemas, F as Inspection, G as initRegistrationSchema, H as Turn, I as JsonValue, J as messageSchema, K as inputSchemas, L as Message, M as HostDecision, N as HostEvent, O as toolResponseSchema, P as InitRegistration, Q as scopeSchema, R as Mutation, S as Result, T as memoryEntrySchema, U as UsageSignal, V as ScopeCtx, W as hostEventSchema, X as recallOptionsSchema, Y as mutationSchema, Z as registrationSchema, _ as EngineSettings, a as parseOutput, b as InspectData, c as MEMORY_DEFAULT_SKIN_ID, d as MEMORY_RECONNECT_INTERVAL_MS, et as usageSignalSchema, f as MEMORY_ROUTES, g as memoryMethod, h as REM_SIDECAR_TOKEN_HEADER, i as parseInput, j as HostContext, k as AgentModelRegistration, l as MEMORY_ERROR_STATUS, m as MEMORY_START_TIMEOUT_MS, n as MemoryContract, nt as DEGRADED_REASONS, o as MEMORY_BODY_LIMIT_BYTES, p as MEMORY_SKIN_HEADER, q as inspectionSchema, r as contractJsonSchemas, rt as DegradedReason, s as MEMORY_CANCEL_ON_DISCONNECT_HEADER, t as ContractMethod, tt as ContractError, u as MEMORY_HEALTH_TIMEOUT_MS, v as engineSettingsSchema, w as inspectDataSchema, x as ProjectSummary, y as ContractOutputs, z as RecallOptions } from "./index-
|
|
4
|
+
import { n as PluginObservability } from "./adapter-BM58hult.js";
|
|
5
|
+
import { $ as turnSchema, A as ContractInputs, B as Registration, C as ToolResponse, D as retrievalResultSchema, E as outputSchemas, F as Inspection, G as initRegistrationSchema, H as Turn, I as JsonValue, J as messageSchema, K as inputSchemas, L as Message, M as HostDecision, N as HostEvent, O as toolResponseSchema, P as InitRegistration, Q as scopeSchema, R as Mutation, S as Result, T as memoryEntrySchema, U as UsageSignal, V as ScopeCtx, W as hostEventSchema, X as recallOptionsSchema, Y as mutationSchema, Z as registrationSchema, _ as EngineSettings, a as parseOutput, b as InspectData, c as MEMORY_DEFAULT_SKIN_ID, d as MEMORY_RECONNECT_INTERVAL_MS, et as usageSignalSchema, f as MEMORY_ROUTES, g as memoryMethod, h as REM_SIDECAR_TOKEN_HEADER, i as parseInput, j as HostContext, k as AgentModelRegistration, l as MEMORY_ERROR_STATUS, m as MEMORY_START_TIMEOUT_MS, n as MemoryContract, nt as DEGRADED_REASONS, o as MEMORY_BODY_LIMIT_BYTES, p as MEMORY_SKIN_HEADER, q as inspectionSchema, r as contractJsonSchemas, rt as DegradedReason, s as MEMORY_CANCEL_ON_DISCONNECT_HEADER, t as ContractMethod, tt as ContractError, u as MEMORY_HEALTH_TIMEOUT_MS, v as engineSettingsSchema, w as inspectDataSchema, x as ProjectSummary, y as ContractOutputs, z as RecallOptions } from "./index-GoYmsx8b.js";
|
|
6
6
|
import { t as Embedder } from "./embedding-provider-client-CELWtPgt.js";
|
|
7
|
-
import { t as MemoryRetriever } from "./retriever-
|
|
8
|
-
import { C as MemoryStore } from "./memory-store-base-
|
|
9
|
-
import "./store-
|
|
10
|
-
import { n as AccessTracker } from "./access-tracker-
|
|
7
|
+
import { t as MemoryRetriever } from "./retriever-BsjtyINJ.js";
|
|
8
|
+
import { C as MemoryStore } from "./memory-store-base-yOAD7Ff8.js";
|
|
9
|
+
import "./store-CukgAPqu.js";
|
|
10
|
+
import { n as AccessTracker } from "./access-tracker-D-riPZRY.js";
|
|
11
11
|
import { r as MemoryTelemetryUsageOutbox } from "./memory-telemetry-outbox-ddTdImt7.js";
|
|
12
|
-
import { t as ReflectionCommandParams } from "./reflection-command-hooks-
|
|
12
|
+
import { t as ReflectionCommandParams } from "./reflection-command-hooks-_B_XZBIz.js";
|
|
13
13
|
import { createMemoryRuntime } from "./internal/engine/provider/provider-registration.js";
|
|
14
14
|
//#region src/engine/contract-runtime.d.ts
|
|
15
15
|
interface MemoryRuntimeServices {
|
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-Z_VkmTsW.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-s7TjoKB-.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-BhS1ivcd.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-s8dAEQ3P.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-a1kgC2cr.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";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as pluginConfigSchema, t as PluginConfig } from "../../plugin-config-schema-
|
|
1
|
+
import { n as pluginConfigSchema, t as PluginConfig } from "../../plugin-config-schema-CsKKIHq9.js";
|
|
2
2
|
export { PluginConfig, pluginConfigSchema };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as llmRoutingConfigSchema, d as LLM_OCCASIONS, f as LlmOccasion, g as ProductMode, h as PRODUCT_MODES, m as LlmRoutingConfigInput, p as LlmRoutingConfig, u as DEFAULT_MODEL_MODE, v as modelCallsConfigSchema, y as remEnhancedConfigSchema } from "../../plugin-config-schema-
|
|
1
|
+
import { _ as llmRoutingConfigSchema, d as LLM_OCCASIONS, f as LlmOccasion, g as ProductMode, h as PRODUCT_MODES, m as LlmRoutingConfigInput, p as LlmRoutingConfig, u as DEFAULT_MODEL_MODE, v as modelCallsConfigSchema, y as remEnhancedConfigSchema } from "../../plugin-config-schema-CsKKIHq9.js";
|
|
2
2
|
export { DEFAULT_MODEL_MODE, LLM_OCCASIONS, LlmOccasion, LlmRoutingConfig, LlmRoutingConfigInput, PRODUCT_MODES, ProductMode, llmRoutingConfigSchema, modelCallsConfigSchema, remEnhancedConfigSchema };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as settingsToPluginConfig, S as settingsSchema, b as Settings, x as defaultSettings } from "../../plugin-config-schema-
|
|
1
|
+
import { C as settingsToPluginConfig, S as settingsSchema, b as Settings, x as defaultSettings } from "../../plugin-config-schema-CsKKIHq9.js";
|
|
2
2
|
export { Settings, defaultSettings, settingsSchema, settingsToPluginConfig };
|
|
@@ -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-CPyQfBJ6.js";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
import { LOCAL_EMBEDDING_MODEL_REVISION } from "@snoai/embedder";
|
|
8
8
|
import { createLogger } from "@snoai/utils/logger";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as ProductMode, h as PRODUCT_MODES, u as DEFAULT_MODEL_MODE } from "../../plugin-config-schema-
|
|
1
|
+
import { g as ProductMode, h as PRODUCT_MODES, u as DEFAULT_MODEL_MODE } from "../../plugin-config-schema-CsKKIHq9.js";
|
|
2
2
|
//#region config/skin-defaults.d.ts
|
|
3
3
|
export declare const HOST_MODEL_CALLBACK_HOST = "127.0.0.1";
|
|
4
4
|
export declare const HOST_MODEL_CALLBACK_PATH = "/v1/chat/completions";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as getSidecarSocketPath, c as getStateDir, i as getSettingsPath, l as readSettings, n as getDiscoveryPath, o as getSnoStationMemStateDir, r as getPrincipal, s as getStartupLogPath, t as SettingsUnavailableError } from "../../profile-
|
|
1
|
+
import { a as getSidecarSocketPath, c as getStateDir, i as getSettingsPath, l as readSettings, n as getDiscoveryPath, o as getSnoStationMemStateDir, r as getPrincipal, s as getStartupLogPath, t as SettingsUnavailableError } from "../../profile-CxdMGvxU.js";
|
|
2
2
|
export { SettingsUnavailableError, getDiscoveryPath, getPrincipal, getSettingsPath, getSidecarSocketPath, getSnoStationMemStateDir, getStartupLogPath, getStateDir, readSettings };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { c as MEMORY_DEFAULT_SKIN_ID, d as MEMORY_RECONNECT_INTERVAL_MS, f as MEMORY_ROUTES, g as memoryMethod, h as REM_SIDECAR_TOKEN_HEADER, l as MEMORY_ERROR_STATUS, m as MEMORY_START_TIMEOUT_MS, o as MEMORY_BODY_LIMIT_BYTES, p as MEMORY_SKIN_HEADER, s as MEMORY_CANCEL_ON_DISCONNECT_HEADER, u as MEMORY_HEALTH_TIMEOUT_MS } from "../../index-
|
|
1
|
+
import { c as MEMORY_DEFAULT_SKIN_ID, d as MEMORY_RECONNECT_INTERVAL_MS, f as MEMORY_ROUTES, g as memoryMethod, h as REM_SIDECAR_TOKEN_HEADER, l as MEMORY_ERROR_STATUS, m as MEMORY_START_TIMEOUT_MS, o as MEMORY_BODY_LIMIT_BYTES, p as MEMORY_SKIN_HEADER, s as MEMORY_CANCEL_ON_DISCONNECT_HEADER, u as MEMORY_HEALTH_TIMEOUT_MS } from "../../index-GoYmsx8b.js";
|
|
2
2
|
export { MEMORY_BODY_LIMIT_BYTES, MEMORY_CANCEL_ON_DISCONNECT_HEADER, MEMORY_DEFAULT_SKIN_ID, MEMORY_ERROR_STATUS, MEMORY_HEALTH_TIMEOUT_MS, MEMORY_RECONNECT_INTERVAL_MS, MEMORY_ROUTES, MEMORY_SKIN_HEADER, MEMORY_START_TIMEOUT_MS, REM_SIDECAR_TOKEN_HEADER, memoryMethod };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { h as MemoryCategory } from "../../../types-
|
|
1
|
+
import { h as MemoryCategory } from "../../../types-C9Hngi-p.js";
|
|
2
2
|
import { t as Embedder } from "../../../embedding-provider-client-CELWtPgt.js";
|
|
3
|
-
import { t as MemoryRetriever } from "../../../retriever-
|
|
4
|
-
import { C as MemoryStore } from "../../../memory-store-base-
|
|
5
|
-
import "../../../store-
|
|
3
|
+
import { t as MemoryRetriever } from "../../../retriever-BsjtyINJ.js";
|
|
4
|
+
import { C as MemoryStore } from "../../../memory-store-base-yOAD7Ff8.js";
|
|
5
|
+
import "../../../store-CukgAPqu.js";
|
|
6
6
|
import { r as MemoryTelemetryUsageOutbox } from "../../../memory-telemetry-outbox-ddTdImt7.js";
|
|
7
7
|
import { Writable } from "node:stream";
|
|
8
8
|
//#region src/engine/bindings/memory-cli-shared.d.ts
|
|
@@ -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-C8JSCWCz.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-C8JSCWCz.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-C8JSCWCz.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-C8JSCWCz.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-C8JSCWCz.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-s7TjoKB-.js";
|
|
9
|
+
import "../../../memory-tool-dependencies-C8JSCWCz.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-B54r7JN1.js";
|
|
14
14
|
//#region src/engine/bindings/memory-store-tool.ts
|
|
15
15
|
/** @file memory-store-tool.ts
|
|
16
16
|
* @purpose Registers the memory_store tool.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as MemoryScopePolicy } from "../../../memory-scope-policy-1gg5QlWZ.js";
|
|
2
|
-
import "../../../memory-tool-dependencies-
|
|
2
|
+
import "../../../memory-tool-dependencies-BsaSVzC8.js";
|
|
3
3
|
//#region src/engine/bindings/memory-tool-access.d.ts
|
|
4
4
|
export declare function assertAccessibleScope(scopePolicy: MemoryScopePolicy, scope: string, agentId?: string): string;
|
|
5
5
|
export declare function resolveAgentId(runtimeAgentId: unknown, fallback?: string): string | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SnoStationMemError } from "../shared/errors.js";
|
|
2
|
-
import "../../../memory-tool-dependencies-
|
|
2
|
+
import "../../../memory-tool-dependencies-C8JSCWCz.js";
|
|
3
3
|
//#region src/engine/bindings/memory-tool-access.ts
|
|
4
4
|
function assertAccessibleScope(scopePolicy, scope, agentId) {
|
|
5
5
|
const normalized = scope.trim();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as SnoStationMemError } from "../../../errors-CeVRxf9V.js";
|
|
2
|
-
import "../../../memory-tool-dependencies-
|
|
2
|
+
import "../../../memory-tool-dependencies-BsaSVzC8.js";
|
|
3
3
|
import { ToolContext, ToolResult } from "./memory-tool-schemas.js";
|
|
4
4
|
//#region src/engine/bindings/memory-tool-results.d.ts
|
|
5
5
|
export declare function makeResult(text: string, details: Record<string, unknown>, isError?: boolean): ToolResult;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RetrievalError, SnoStationMemError } from "../shared/errors.js";
|
|
2
|
-
import { n as z } from "../../../memory-tool-dependencies-
|
|
2
|
+
import { n as z } from "../../../memory-tool-dependencies-C8JSCWCz.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,11 +1,11 @@
|
|
|
1
|
-
import { p as LlmRoutingConfig, r as LlmClient } from "../../../plugin-config-schema-
|
|
2
|
-
import { h as MemoryCategory, r as AggregationQuery } from "../../../types-
|
|
1
|
+
import { p as LlmRoutingConfig, r as LlmClient } from "../../../plugin-config-schema-CsKKIHq9.js";
|
|
2
|
+
import { h as MemoryCategory, r as AggregationQuery } from "../../../types-C9Hngi-p.js";
|
|
3
3
|
import { n as Locale } from "../../../locales-JxGmkG6t.js";
|
|
4
4
|
import { t as Embedder } from "../../../embedding-provider-client-CELWtPgt.js";
|
|
5
|
-
import { t as MemoryRetriever } from "../../../retriever-
|
|
6
|
-
import { C as MemoryStore } from "../../../memory-store-base-
|
|
5
|
+
import { t as MemoryRetriever } from "../../../retriever-BsjtyINJ.js";
|
|
6
|
+
import { C as MemoryStore } from "../../../memory-store-base-yOAD7Ff8.js";
|
|
7
7
|
import { t as MemoryScopePolicy } from "../../../memory-scope-policy-1gg5QlWZ.js";
|
|
8
|
-
import { t as z } from "../../../memory-tool-dependencies-
|
|
8
|
+
import { t as z } from "../../../memory-tool-dependencies-BsaSVzC8.js";
|
|
9
9
|
//#region src/engine/bindings/memory-tool-schemas.d.ts
|
|
10
10
|
export declare const recallParamsSchema: z.ZodType<{
|
|
11
11
|
query: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AGGREGATION_OPERATIONS, MEMORY_CATEGORIES } from "../shared/types.js";
|
|
2
|
-
import { n as z } from "../../../memory-tool-dependencies-
|
|
2
|
+
import { n as z } from "../../../memory-tool-dependencies-C8JSCWCz.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-s7TjoKB-.js";
|
|
9
|
+
import "../../../memory-tool-dependencies-C8JSCWCz.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,10 +1,10 @@
|
|
|
1
|
-
import { t as PluginConfig } from "../../../plugin-config-schema-
|
|
1
|
+
import { t as PluginConfig } from "../../../plugin-config-schema-CsKKIHq9.js";
|
|
2
2
|
import { t as Embedder } from "../../../embedding-provider-client-CELWtPgt.js";
|
|
3
|
-
import { C as MemoryStore } from "../../../memory-store-base-
|
|
3
|
+
import { C as MemoryStore } from "../../../memory-store-base-yOAD7Ff8.js";
|
|
4
4
|
import { n as createScopePolicy } from "../../../memory-scope-policy-1gg5QlWZ.js";
|
|
5
5
|
import { PluginHookAgentContext, PluginHookAgentEndEvent } from "./sno-station-mem-hook-types.js";
|
|
6
|
-
import { r as AtomicInsightDistiller } from "../../../atomic-memory-extraction-
|
|
7
|
-
import { t as SnoStationMemPluginApi } from "../../../sno-station-mem-runtime-dependencies-
|
|
6
|
+
import { r as AtomicInsightDistiller } from "../../../atomic-memory-extraction-BNBCB1XD.js";
|
|
7
|
+
import { t as SnoStationMemPluginApi } from "../../../sno-station-mem-runtime-dependencies-B47DIcei.js";
|
|
8
8
|
//#region src/engine/bindings/sno-station-mem-ambient-learning-hook.d.ts
|
|
9
9
|
/** Runs atomic extraction after a successful top-level agent conversation. */
|
|
10
10
|
export type AmbientCaptureOutcome = "skipped" | "success" | "partial" | "failed";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { DEFAULT_IMPORTANCE } from "../../config/index.js";
|
|
2
2
|
import { redactSecrets } from "../security/redact.js";
|
|
3
3
|
import { t as checkMemoryOperation } from "../../../operation-cancellation-QcwC4mDX.js";
|
|
4
|
-
import { r as modelCallDestination } from "../../../model-call-table-
|
|
4
|
+
import { r as modelCallDestination } from "../../../model-call-table-CPyQfBJ6.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-s7TjoKB-.js";
|
|
8
8
|
import { resolveHookAgentId } from "./sno-station-mem-runtime-mode.js";
|
|
9
9
|
import { c as shouldSkipReflectionMessage } from "../../../daily-log-generator-DEsiCs7o.js";
|
|
10
|
-
import "../../../sno-station-mem-runtime-dependencies-
|
|
10
|
+
import "../../../sno-station-mem-runtime-dependencies-DES7ZvMt.js";
|
|
11
11
|
import { buildConversationText, deriveSessionDateTime, extractAllMessageTexts, isAmbientLearningMessage, transcriptSessionDateTime } from "./sno-station-mem-message-transcript.js";
|
|
12
12
|
import { createLogger, currentLogContext, withLogContext } from "@snoai/utils/logger";
|
|
13
13
|
import { randomUUID } from "node:crypto";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as PluginConfig } from "../../../plugin-config-schema-
|
|
2
|
-
import { t as MemoryRetriever } from "../../../retriever-
|
|
3
|
-
import { C as MemoryStore } from "../../../memory-store-base-
|
|
1
|
+
import { t as PluginConfig } from "../../../plugin-config-schema-CsKKIHq9.js";
|
|
2
|
+
import { t as MemoryRetriever } from "../../../retriever-BsjtyINJ.js";
|
|
3
|
+
import { C as MemoryStore } from "../../../memory-store-base-yOAD7Ff8.js";
|
|
4
4
|
import { r as MemoryTelemetryUsageOutbox } from "../../../memory-telemetry-outbox-ddTdImt7.js";
|
|
5
5
|
import { n as createScopePolicy } from "../../../memory-scope-policy-1gg5QlWZ.js";
|
|
6
6
|
import { PluginHookAgentContext, PluginHookBeforeAgentStartEvent, PluginHookBeforeAgentStartResult } from "./sno-station-mem-hook-types.js";
|
|
7
|
-
import { t as SnoStationMemPluginApi } from "../../../sno-station-mem-runtime-dependencies-
|
|
7
|
+
import { t as SnoStationMemPluginApi } from "../../../sno-station-mem-runtime-dependencies-B47DIcei.js";
|
|
8
8
|
//#region src/engine/bindings/sno-station-mem-auto-recall-hook.d.ts
|
|
9
9
|
export declare function extractAutoRecallQuery(prompt: string): string;
|
|
10
10
|
/** Injects relevant memories into the next agent turn after scope and cache checks. */
|
|
@@ -8,7 +8,7 @@ import { episodicEventDate, saidOnDate, sourceQuote } from "./memory-tool-format
|
|
|
8
8
|
import { r as retrieveForAutoRecall } from "../../../rem-consumer-retrieval-BhS1ivcd.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-DES7ZvMt.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";
|