@snoai/memory 1.2.7 → 1.2.9
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-lGtC_mSo.d.ts → access-tracker-D1e-2-Bb.d.ts} +3 -3
- package/dist/{adapter-BMWZTlH4.js → adapter-CG-UbOjU.js} +2 -2
- package/dist/{adapter-DTPNFkoo.d.ts → adapter-TCrv5P-C.d.ts} +3 -3
- package/dist/{atomic-memory-extraction-BCwNCeZc.d.ts → atomic-memory-extraction-C0n0wHzt.d.ts} +4 -4
- package/dist/{b-profile-section-dictionary-provider-CgSEG4Ir.d.ts → b-profile-section-dictionary-provider-y3DMQ518.d.ts} +1 -1
- package/dist/{capture-policy-detector-DGedgtel.d.ts → capture-policy-detector-BY7v5Cq1.d.ts} +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/{derived-suppression-cache-BVFHTXbL.d.ts → derived-suppression-cache-BLAH0nB9.d.ts} +1 -1
- package/dist/diagnostic-encoder.js +1 -1
- package/dist/{index-BGq6nq6V.d.ts → index-dQMkc_6y.d.ts} +2 -2
- package/dist/index.d.ts +9 -9
- 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/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-tool-access.d.ts +1 -1
- package/dist/internal/engine/bindings/memory-tool-results.d.ts +1 -1
- package/dist/internal/engine/bindings/memory-tool-schemas.d.ts +5 -5
- 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 +1 -1
- 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 +1 -1
- package/dist/internal/engine/bindings/sno-station-mem-message-transcript.js +1 -1
- 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/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/observability/adapter.d.ts +1 -1
- package/dist/internal/engine/observability/adapter.js +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-retriever.d.ts +1 -1
- package/dist/internal/engine/observability/observable-retriever.js +1 -1
- package/dist/internal/engine/observability/runtime-diagnostics.d.ts +1 -1
- package/dist/internal/engine/observability/runtime-diagnostics.js +1 -1
- 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-deps.d.ts +1 -1
- package/dist/internal/engine/reflection/reflection-embedded-generator.d.ts +1 -1
- package/dist/internal/engine/reflection/reflection-injection-hooks.d.ts +1 -1
- package/dist/internal/engine/reflection/reflection-lifecycle-hooks.d.ts +1 -1
- package/dist/internal/engine/reflection/strategy-hook-runner.d.ts +3 -3
- 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/retrieval/retriever.js +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-mode-routing.d.ts +1 -1
- package/dist/internal/store/maintenance.d.ts +2 -2
- package/dist/internal/store/maintenance.js +1 -1
- package/dist/internal/store/store.d.ts +2 -2
- package/dist/{llm-client-C5PLh1Ei.d.ts → llm-client-RqmOEQkg.d.ts} +1 -1
- package/dist/{log-site-catalog.generated-DUx4iGMu.js → log-site-catalog.generated-By86ZBRB.js} +21 -21
- package/dist/log-site-catalog.json +1 -1
- package/dist/{memory-kind-policy-7wKs8QHo.d.ts → memory-kind-policy-BOGb8thm.d.ts} +1 -1
- package/dist/{memory-metadata-codec-Cp3ydYBH.d.ts → memory-metadata-codec-DcSqjbWR.d.ts} +1 -1
- package/dist/{memory-runtime-DHR0lTDt.js → memory-runtime-CbuNkL0G.js} +28 -27
- package/dist/{memory-snapshot-BCXwcPjP.d.ts → memory-snapshot-C5BnJ2rO.d.ts} +2 -2
- package/dist/{memory-store-base-BwRQdcUl.d.ts → memory-store-base-z593oJ4h.d.ts} +2 -2
- package/dist/{memory-temporality-classifier-B-w4H9b-.d.ts → memory-temporality-classifier-SzlUCgTj.d.ts} +1 -1
- package/dist/{memory-tier-promoter-B6GTS-e1.d.ts → memory-tier-promoter-Z7jprFB7.d.ts} +1 -1
- package/dist/memory-tool-dependencies-CJNppsKh.d.ts +14 -0
- package/dist/{observable-embedder-C_Sldurx.d.ts → observable-embedder-DjhGxHx2.d.ts} +1 -1
- package/dist/{observable-llm-client-B9nOU_E6.d.ts → observable-llm-client-CLJLMmwA.d.ts} +3 -3
- package/dist/{observable-memory-store-CuiqSZnt.d.ts → observable-memory-store-B48HV2NK.d.ts} +4 -4
- package/dist/{observable-retriever-N6AA7gPT.d.ts → observable-retriever-CAdHncKh.d.ts} +5 -5
- package/dist/paths-D3dEsoE4.d.ts +1 -0
- package/dist/{plugin-config-schema-L5me0lL3.d.ts → plugin-config-schema-VBSPGEG3.d.ts} +1 -1
- package/dist/{profile-DnvbubNT.d.ts → profile-CQNCtVIu.d.ts} +1 -1
- package/dist/{reflection-command-hooks-CA6vFpvb.d.ts → reflection-command-hooks-Cl0ShtbF.d.ts} +4 -4
- package/dist/{reflection-deps-ICwm0OMs.d.ts → reflection-deps-B0_cPBZt.d.ts} +2 -2
- package/dist/{reflection-embedded-generator-BFrrjvjh.d.ts → reflection-embedded-generator-C5kA0T0v.d.ts} +3 -3
- package/dist/{reflection-injection-hooks-7CYREnXW.d.ts → reflection-injection-hooks-CtgcjLGx.d.ts} +4 -4
- package/dist/{reflection-lifecycle-hooks-93dQaxyU.d.ts → reflection-lifecycle-hooks-Pd7P9wya.d.ts} +3 -3
- package/dist/{rem-batch-executor-DsXWpJYU.js → rem-batch-executor-ryxxkzQp.js} +1 -1
- package/dist/{rem-trigger-DZaplx_E.js → rem-trigger-Dz_Jrr9p.js} +15 -2
- package/dist/{retriever-ZoLvPRHq.js → retriever-BXQmJMh0.js} +16 -3
- package/dist/{retriever-DwQNTuGH.d.ts → retriever-DQdyGlkr.d.ts} +6 -6
- package/dist/{runtime-audit-log-Dd5Hzhx5.d.ts → runtime-audit-log-Bn3JLBPj.d.ts} +1 -1
- package/dist/{server-BYCygCAA.js → server-DFLEPkQA.js} +3 -3
- package/dist/sidecar/main.js +1 -1
- package/dist/sno-station-mem-runtime-dependencies-8CRIkARK.d.ts +31 -0
- package/dist/{sno-station-mem-runtime-dependencies-D3JoyumW.js → sno-station-mem-runtime-dependencies-CY-XDHxU.js} +2 -2
- package/dist/{store-ihLfJzMY.d.ts → store-DKndKig1.d.ts} +1 -1
- package/dist/{strategy-hook-runner-D-qKDGhN.d.ts → strategy-hook-runner-BSk_o6Yt.d.ts} +7 -7
- package/dist/{types-CvnSpW2f.d.ts → types-Del9J7UB.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/memory-tool-dependencies-D6usR1cg.d.ts +0 -14
- package/dist/paths-PUd6Z0ej.d.ts +0 -1
- package/dist/sno-station-mem-runtime-dependencies-_MCIigfD.d.ts +0 -31
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as compareMemorySourceOrder, $t as ATOMIC_EXTRACTION_SKILL, A as recordTokenCounter, At as classifyLlmFailure, B as validateMemoryTelemetryMetadata, Bt as truncateGraphemes, C as resolveHookAgentId, Ct as createScopePolicy, D as closeAtomicArrivalRetirementTargets, Dt as createLlmClient, E as recordAtomicEntityIdentityJournal, F as AtomicExtractionCompletedElsewhere, Ft as clamp01, Gt as normalizeIsoDateTimeString, H as readChunkVecTableState, Ht as buildInsightMetadata, I as normalizeMemoryRelationPredicate, It as clampInt, J as orderAdapterAPair, Jt as AGGREGATION_OPERATIONS, K as adapterAViewFromRecord, Kt as parseIsoDateTimeMs, L as MemoryStore, Lt as stableHash, M as canonicalizeProfileSectionName, Mt as CODING_SKIN_LEDGER_MAX_CHARS, N as normalizeTopicToSectionName, Nt as CODING_SKIN_SESSION_QUERY, O as journalAtomicArrivalRetirementRefusal, Ot as isTerminalLlmFailure, P as getSnoStationMemDataDir, Pt as HOST_MODEL_DEADLINE_HEADER, Q as renderAdapterAPrompt, Qt as resolveLlmRoute, R as StaleSupersedeTargetError, Rt as stripHtmlTags, S as resolveTaskLifecycleEffectiveTime, St as MemoryScopePolicy, T as normalizeEntityName, Tt as LlmClientTerminalError, U as loadSqliteVecExtension, Ut as parseInsightMetadata, V as randomUUID$1, Vt as redactSecrets, Wt as stringifyInsightMetadata, X as prospectiveProfileView, Xt as normalizeCategory, Y as parseAdapterAChatVerdict, Yt as MEMORY_CATEGORIES, Z as renderAdapterAChatPrompt, Zt as pickLlmRoutingConfig, _ as findUniqueActiveTaskByDescription, _n as memoryFileWrite, _t as ALL_RESOURCES, an as relations, at as runWithMemoryAudit, b as admitTaskLifecycleAssertion, bn as forwardObserveLedgerUntilIdle, bt as SnoStationMemError, cn as isCalendarLabel, d as MemoryRetriever, dn as MEMORY_TELEMETRY_DELETE_REASONS, dt as resolveMemoryDate, en as ATOMIC_EXTRACTION_SKILL_HASH, et as readMemorySourceOrderOrOldest, f as DEFAULT_RETRIEVAL_CONFIG, fn as isMemoryTelemetryEventType, ft as unresolvedMemoryDate, g as buildTaskLifecycleCandidateSet, gn as checkMemoryOperation, gt as normalizeAmbientLearningText, h as acceptsTaskLifecycleJudgment, hn as openSqliteDatabaseReadonly, ht as stripEnvelopeMetadata, in as state_vocabulary_default, j as canExtractorWrite, jt as isTerminalLlmFailure$1, k as readAtomicArrivalRetirementCandidateSet, kt as withProviderResponses, ln as sessionZoneCarriedBy, lt as parseSessionTimestamp, m as Embedder, mn as openSqliteDatabase, mt as buildIndexedText, nn as modelReplyJsonCandidates, on as calculateCalendarTime, ot as runWithMemoryAuditSync, p as AccessTracker, pn as initSqliteRuntime, pt as boundSectionContent, q as isAdapterAVerdictReply, qt as deriveFactKey, rn as readModelReplyJson, rt as currentMutationAttemptId, sn as calendarInstructionSchema, st as runWithMutationAttempt, t as evaluateRemAutomaticTriggers, tn as atomicExtractionSkillReference, tt as appendAuditEntry, un as attribute_dictionary_default, ut as serializeIntervalMetadata, v as resolveTaskLifecycle, vn as memoryOperationSignal, vt as RESOURCES_BY_LOCALE, w as listAtomicMemoryEntityCandidates, wt as parseAgentIdFromSessionKey, x as buildTaskLifecycleCommandClaim, xt as StorageError, y as taskLifecycleCandidateSetVersion, yn as withMemoryOperation, yt as RetrievalError, z as TaskLifecycleStaleResolutionError, zt as stripRoleLabelPrefix } from "./rem-trigger-
|
|
1
|
+
import { $ as compareMemorySourceOrder, $t as ATOMIC_EXTRACTION_SKILL, A as recordTokenCounter, At as classifyLlmFailure, B as validateMemoryTelemetryMetadata, Bt as truncateGraphemes, C as resolveHookAgentId, Ct as createScopePolicy, D as closeAtomicArrivalRetirementTargets, Dt as createLlmClient, E as recordAtomicEntityIdentityJournal, F as AtomicExtractionCompletedElsewhere, Ft as clamp01, Gt as normalizeIsoDateTimeString, H as readChunkVecTableState, Ht as buildInsightMetadata, I as normalizeMemoryRelationPredicate, It as clampInt, J as orderAdapterAPair, Jt as AGGREGATION_OPERATIONS, K as adapterAViewFromRecord, Kt as parseIsoDateTimeMs, L as MemoryStore, Lt as stableHash, M as canonicalizeProfileSectionName, Mt as CODING_SKIN_LEDGER_MAX_CHARS, N as normalizeTopicToSectionName, Nt as CODING_SKIN_SESSION_QUERY, O as journalAtomicArrivalRetirementRefusal, Ot as isTerminalLlmFailure, P as getSnoStationMemDataDir, Pt as HOST_MODEL_DEADLINE_HEADER, Q as renderAdapterAPrompt, Qt as resolveLlmRoute, R as StaleSupersedeTargetError, Rt as stripHtmlTags, S as resolveTaskLifecycleEffectiveTime, St as MemoryScopePolicy, T as normalizeEntityName, Tt as LlmClientTerminalError, U as loadSqliteVecExtension, Ut as parseInsightMetadata, V as randomUUID$1, Vt as redactSecrets, Wt as stringifyInsightMetadata, X as prospectiveProfileView, Xt as normalizeCategory, Y as parseAdapterAChatVerdict, Yt as MEMORY_CATEGORIES, Z as renderAdapterAChatPrompt, Zt as pickLlmRoutingConfig, _ as findUniqueActiveTaskByDescription, _n as memoryFileWrite, _t as ALL_RESOURCES, an as relations, at as runWithMemoryAudit, b as admitTaskLifecycleAssertion, bn as forwardObserveLedgerUntilIdle, bt as SnoStationMemError, cn as isCalendarLabel, d as MemoryRetriever, dn as MEMORY_TELEMETRY_DELETE_REASONS, dt as resolveMemoryDate, en as ATOMIC_EXTRACTION_SKILL_HASH, et as readMemorySourceOrderOrOldest, f as DEFAULT_RETRIEVAL_CONFIG, fn as isMemoryTelemetryEventType, ft as unresolvedMemoryDate, g as buildTaskLifecycleCandidateSet, gn as checkMemoryOperation, gt as normalizeAmbientLearningText, h as acceptsTaskLifecycleJudgment, hn as openSqliteDatabaseReadonly, ht as stripEnvelopeMetadata, in as state_vocabulary_default, j as canExtractorWrite, jt as isTerminalLlmFailure$1, k as readAtomicArrivalRetirementCandidateSet, kt as withProviderResponses, ln as sessionZoneCarriedBy, lt as parseSessionTimestamp, m as Embedder, mn as openSqliteDatabase, mt as buildIndexedText, nn as modelReplyJsonCandidates, on as calculateCalendarTime, ot as runWithMemoryAuditSync, p as AccessTracker, pn as initSqliteRuntime, pt as boundSectionContent, q as isAdapterAVerdictReply, qt as deriveFactKey, rn as readModelReplyJson, rt as currentMutationAttemptId, sn as calendarInstructionSchema, st as runWithMutationAttempt, t as evaluateRemAutomaticTriggers, tn as atomicExtractionSkillReference, tt as appendAuditEntry, un as attribute_dictionary_default, ut as serializeIntervalMetadata, v as resolveTaskLifecycle, vn as memoryOperationSignal, vt as RESOURCES_BY_LOCALE, w as listAtomicMemoryEntityCandidates, wt as parseAgentIdFromSessionKey, x as buildTaskLifecycleCommandClaim, xt as StorageError, y as taskLifecycleCandidateSetVersion, yn as withMemoryOperation, yt as RetrievalError, z as TaskLifecycleStaleResolutionError, zt as stripRoleLabelPrefix } from "./rem-trigger-Dz_Jrr9p.js";
|
|
2
2
|
import { A as SESSION_STRATEGIES, An as DEFAULT_REFLECTION_SESSION_TTL_MS, Bn as FTS_MERGE_INTERVAL_MS, Bt as FIXED_PROTOCOL_VALUE_64, C as getSnoStationMemStateDir, D as settingsToPluginConfig, E as defaultSettings, En as DEFAULT_IMPORTANCE, F as extractionConfigSchema, Ft as FIXED_MEMORY_SNO_EXTRACT_CHAT, Gn as INTEGRITY_CHECK_INTERVAL_MS, Ht as FIXED_PROTOCOL_VALUE_66, I as memoryReflectionConfigSchema, It as FIXED_MEMORY_SNO_EXTRACT_PROFILE, L as selfImprovementConfigSchema, M as isObserveAgentId, N as observeAgentId, Nt as FIXED_MEMORY_ROW_PATH_PATTERN, O as MODEL_CALLS, On as DEFAULT_RECALL_TOKEN_BUDGET, P as observeConfigSchema, Pt as FIXED_MEMORY_SNO_AI_EXTRACT, Qn as MAX_CANDIDATE_POOL_SIZE, Qt as FIXED_PROTOCOL_VALUE_79, R as sessionMemoryConfigSchema, T as readSettings, Ut as FIXED_PROTOCOL_VALUE_67, Vt as FIXED_PROTOCOL_VALUE_65, Wt as FIXED_PROTOCOL_VALUE_68, Xn as MAINTENANCE_TICK_MS, Xt as FIXED_PROTOCOL_VALUE_77, Yt as FIXED_PROTOCOL_VALUE_76, Zn as MAX_AGGREGATION_RESULT_TOKENS, Zt as FIXED_PROTOCOL_VALUE_78, _r as USAGE_OUTBOX_INTERVAL_MS, an as embeddingConfigSchema, b as getPrincipal, cn as isSupportedLocale, dn as ATOMIC_CAPTURE_OUTPUT_TOKEN_BUDGET, er as MAX_LIST_LIMIT, fn as ATOMIC_CAPTURE_TIMEOUT_MS, gn as BACKUP_MIN_FREE_DISK_RATIO, gr as USAGE_EVENT_RETENTION_INTERVAL_MS, h as readMaintenanceOverrides, hn as BACKUP_INTERVAL_MS, in as PERSISTED_PROVIDER_SYSTEM, j as retrievalConfigSchema, k as modelCallDestination, kn as DEFAULT_REFLECTION_ERROR_SCAN_MAX_CHARS, mn as ATOMIC_EXTRACTION_MAX_INPUT_TOKENS, mr as SNO_OBSERVE_FLUSH_TIMEOUT_MS, n as MEMORY_USAGE_FLUSH_INTERVAL_MS, qt as FIXED_PROTOCOL_VALUE_74, rr as MIN_RECALL_TOKEN_BUDGET, sr as PLANNER_STATISTICS_INTERVAL_MS, ur as REM_TRIGGER_CHECK_INTERVAL_MS, w as getStateDir, x as getSettingsPath, xr as recallLifecycleSchema, zn as FORGET_QUERY_MIN_SCORE, zt as FIXED_PROTOCOL_VALUE_63 } from "./config-BCZRhUvW.js";
|
|
3
3
|
import { n as DEGRADED_REASONS, t as ContractError } from "./error-D-wb-rZw.js";
|
|
4
4
|
import { configureLogger, createLogger, currentLogContext, effectiveLogLevel, loggerFileStatus, privateLogReference, withLogContext } from "@snoai/utils/logger";
|
|
@@ -196,7 +196,7 @@ function addNumber(target, key, value) {
|
|
|
196
196
|
}
|
|
197
197
|
//#endregion
|
|
198
198
|
//#region package.json
|
|
199
|
-
var version = "1.2.
|
|
199
|
+
var version = "1.2.9";
|
|
200
200
|
//#endregion
|
|
201
201
|
//#region config/atomic-extraction-response.schema.json
|
|
202
202
|
var atomic_extraction_response_schema_default = {
|
|
@@ -1057,7 +1057,7 @@ function fallbackAtomicCapturedFact(fact) {
|
|
|
1057
1057
|
//#endregion
|
|
1058
1058
|
//#region src/engine/observability/log-site-catalog.generated.ts
|
|
1059
1059
|
const logSiteCatalog = {
|
|
1060
|
-
"build_id": "
|
|
1060
|
+
"build_id": "83c1ad68062ce0cd0d7e4d48a14b38404ce5e55699713f12332b999e9f482f67",
|
|
1061
1061
|
"sites": {
|
|
1062
1062
|
"memory.recall.budget.checked": {
|
|
1063
1063
|
"file": "packages/memory/src/engine/bindings/memory-recall-tool.ts",
|
|
@@ -1799,42 +1799,42 @@ const logSiteCatalog = {
|
|
|
1799
1799
|
"function": "PluginObservability.tryEmit",
|
|
1800
1800
|
"line": 127,
|
|
1801
1801
|
"column": 4,
|
|
1802
|
-
"file_hash": "
|
|
1802
|
+
"file_hash": "5329d7f61fc5b8f0ecac7996e01e540db3bf887f80fe61a1b572a0a22db0b532"
|
|
1803
1803
|
},
|
|
1804
1804
|
"adapter.<anonymous callback>.82f49c57a7": {
|
|
1805
1805
|
"file": "packages/memory/src/engine/observability/adapter.ts",
|
|
1806
1806
|
"function": "<anonymous callback>",
|
|
1807
1807
|
"line": 151,
|
|
1808
1808
|
"column": 7,
|
|
1809
|
-
"file_hash": "
|
|
1809
|
+
"file_hash": "5329d7f61fc5b8f0ecac7996e01e540db3bf887f80fe61a1b572a0a22db0b532"
|
|
1810
1810
|
},
|
|
1811
1811
|
"observability.background.timed_out": {
|
|
1812
1812
|
"file": "packages/memory/src/engine/observability/adapter.ts",
|
|
1813
1813
|
"function": "PluginObservability.runBackgroundTask",
|
|
1814
1814
|
"line": 205,
|
|
1815
1815
|
"column": 7,
|
|
1816
|
-
"file_hash": "
|
|
1816
|
+
"file_hash": "5329d7f61fc5b8f0ecac7996e01e540db3bf887f80fe61a1b572a0a22db0b532"
|
|
1817
1817
|
},
|
|
1818
1818
|
"adapter.<anonymous callback>.f036514cb8": {
|
|
1819
1819
|
"file": "packages/memory/src/engine/observability/adapter.ts",
|
|
1820
1820
|
"function": "<anonymous callback>",
|
|
1821
1821
|
"line": 242,
|
|
1822
1822
|
"column": 9,
|
|
1823
|
-
"file_hash": "
|
|
1823
|
+
"file_hash": "5329d7f61fc5b8f0ecac7996e01e540db3bf887f80fe61a1b572a0a22db0b532"
|
|
1824
1824
|
},
|
|
1825
1825
|
"adapter.<anonymous callback>.9aedc01548": {
|
|
1826
1826
|
"file": "packages/memory/src/engine/observability/adapter.ts",
|
|
1827
1827
|
"function": "<anonymous callback>",
|
|
1828
1828
|
"line": 281,
|
|
1829
1829
|
"column": 9,
|
|
1830
|
-
"file_hash": "
|
|
1830
|
+
"file_hash": "5329d7f61fc5b8f0ecac7996e01e540db3bf887f80fe61a1b572a0a22db0b532"
|
|
1831
1831
|
},
|
|
1832
1832
|
"adapter.<anonymous callback>.52f64c2607": {
|
|
1833
1833
|
"file": "packages/memory/src/engine/observability/adapter.ts",
|
|
1834
1834
|
"function": "<anonymous callback>",
|
|
1835
1835
|
"line": 323,
|
|
1836
1836
|
"column": 9,
|
|
1837
|
-
"file_hash": "
|
|
1837
|
+
"file_hash": "5329d7f61fc5b8f0ecac7996e01e540db3bf887f80fe61a1b572a0a22db0b532"
|
|
1838
1838
|
},
|
|
1839
1839
|
"observability.bestEffort.failed": {
|
|
1840
1840
|
"file": "packages/memory/src/engine/observability/best-effort.ts",
|
|
@@ -2392,30 +2392,30 @@ const logSiteCatalog = {
|
|
|
2392
2392
|
"retrieval.retriever-search-modes.aggregationComplete.5a3b7f9337": {
|
|
2393
2393
|
"file": "packages/memory/src/engine/retrieval/retriever-search-modes.ts",
|
|
2394
2394
|
"function": "aggregationComplete",
|
|
2395
|
-
"line":
|
|
2395
|
+
"line": 88,
|
|
2396
2396
|
"column": 3,
|
|
2397
|
-
"file_hash": "
|
|
2397
|
+
"file_hash": "a361c008d52d30349b011091524d1d0f4e78c66a2157716ab1ef5c6c69cb4a2b"
|
|
2398
2398
|
},
|
|
2399
2399
|
"retrieval.retriever-search-modes.precisionRecall.97b8770f50": {
|
|
2400
2400
|
"file": "packages/memory/src/engine/retrieval/retriever-search-modes.ts",
|
|
2401
2401
|
"function": "precisionRecall",
|
|
2402
|
-
"line":
|
|
2402
|
+
"line": 264,
|
|
2403
2403
|
"column": 4,
|
|
2404
|
-
"file_hash": "
|
|
2404
|
+
"file_hash": "a361c008d52d30349b011091524d1d0f4e78c66a2157716ab1ef5c6c69cb4a2b"
|
|
2405
2405
|
},
|
|
2406
2406
|
"retrieval.retriever-search-modes.precisionRecall.c20ade60c4": {
|
|
2407
2407
|
"file": "packages/memory/src/engine/retrieval/retriever-search-modes.ts",
|
|
2408
2408
|
"function": "precisionRecall",
|
|
2409
|
-
"line":
|
|
2409
|
+
"line": 272,
|
|
2410
2410
|
"column": 4,
|
|
2411
|
-
"file_hash": "
|
|
2411
|
+
"file_hash": "a361c008d52d30349b011091524d1d0f4e78c66a2157716ab1ef5c6c69cb4a2b"
|
|
2412
2412
|
},
|
|
2413
2413
|
"retrieval.retriever-search-modes.precisionRecall.aaf0b2eb17": {
|
|
2414
2414
|
"file": "packages/memory/src/engine/retrieval/retriever-search-modes.ts",
|
|
2415
2415
|
"function": "precisionRecall",
|
|
2416
|
-
"line":
|
|
2416
|
+
"line": 324,
|
|
2417
2417
|
"column": 3,
|
|
2418
|
-
"file_hash": "
|
|
2418
|
+
"file_hash": "a361c008d52d30349b011091524d1d0f4e78c66a2157716ab1ef5c6c69cb4a2b"
|
|
2419
2419
|
},
|
|
2420
2420
|
"scope-helpers.resolveScopeFilter.0d7f91dae7": {
|
|
2421
2421
|
"file": "packages/memory/src/engine/security/scope-helpers.ts",
|
|
@@ -2639,28 +2639,28 @@ const logSiteCatalog = {
|
|
|
2639
2639
|
"function": "engineLog",
|
|
2640
2640
|
"line": 62,
|
|
2641
2641
|
"column": 2,
|
|
2642
|
-
"file_hash": "
|
|
2642
|
+
"file_hash": "0f7093edf0e9f0e6dc670bcfdcc7df602d8f87df31eaabbdb752acfcc72f7282"
|
|
2643
2643
|
},
|
|
2644
2644
|
"memory.sidecar.model.prepare.failed": {
|
|
2645
2645
|
"file": "packages/memory/src/sidecar/memory-runtime.ts",
|
|
2646
2646
|
"function": "prepareModel",
|
|
2647
2647
|
"line": 119,
|
|
2648
2648
|
"column": 4,
|
|
2649
|
-
"file_hash": "
|
|
2649
|
+
"file_hash": "0f7093edf0e9f0e6dc670bcfdcc7df602d8f87df31eaabbdb752acfcc72f7282"
|
|
2650
2650
|
},
|
|
2651
2651
|
"memory.sidecar.pending_capture.failed": {
|
|
2652
2652
|
"file": "packages/memory/src/sidecar/memory-runtime.ts",
|
|
2653
2653
|
"function": "replayPendingCaptures",
|
|
2654
2654
|
"line": 136,
|
|
2655
2655
|
"column": 5,
|
|
2656
|
-
"file_hash": "
|
|
2656
|
+
"file_hash": "0f7093edf0e9f0e6dc670bcfdcc7df602d8f87df31eaabbdb752acfcc72f7282"
|
|
2657
2657
|
},
|
|
2658
2658
|
"memory.sidecar.usage.failed": {
|
|
2659
2659
|
"file": "packages/memory/src/sidecar/memory-runtime.ts",
|
|
2660
2660
|
"function": "<anonymous callback>",
|
|
2661
|
-
"line":
|
|
2661
|
+
"line": 427,
|
|
2662
2662
|
"column": 5,
|
|
2663
|
-
"file_hash": "
|
|
2663
|
+
"file_hash": "0f7093edf0e9f0e6dc670bcfdcc7df602d8f87df31eaabbdb752acfcc72f7282"
|
|
2664
2664
|
},
|
|
2665
2665
|
"rem-batch-executor.onStageError.d5f24d50d3": {
|
|
2666
2666
|
"file": "packages/memory/src/sidecar/rem-batch-executor.ts",
|
|
@@ -12185,7 +12185,7 @@ var PluginObservability = class {
|
|
|
12185
12185
|
if (timeoutHandle) clearTimeout(timeoutHandle);
|
|
12186
12186
|
}
|
|
12187
12187
|
}
|
|
12188
|
-
async emitError(kind, error, sessionUuid
|
|
12188
|
+
async emitError(kind, error, sessionUuid) {
|
|
12189
12189
|
const messageHash = this.hashText(formatErrorMessage(error));
|
|
12190
12190
|
if (!messageHash) return;
|
|
12191
12191
|
await this.emit({
|
|
@@ -12202,7 +12202,7 @@ var PluginObservability = class {
|
|
|
12202
12202
|
}[this.agentId],
|
|
12203
12203
|
context: kind.split(":", 1)[0] ?? kind,
|
|
12204
12204
|
message_hash: messageHash,
|
|
12205
|
-
recoverable
|
|
12205
|
+
recoverable: false
|
|
12206
12206
|
}
|
|
12207
12207
|
});
|
|
12208
12208
|
}
|
|
@@ -19423,7 +19423,7 @@ var MemoryRuntimePool = class MemoryRuntimePool {
|
|
|
19423
19423
|
}
|
|
19424
19424
|
return result;
|
|
19425
19425
|
} finally {
|
|
19426
|
-
await this.emitProviderUsage(entry, scope, responses);
|
|
19426
|
+
await this.emitProviderUsage(entry, scope, responses, method === "capture");
|
|
19427
19427
|
const session = input.scope.host?.observeSessionUuid;
|
|
19428
19428
|
if (session) {
|
|
19429
19429
|
this.observability.aggregator.delete(session);
|
|
@@ -19513,12 +19513,13 @@ var MemoryRuntimePool = class MemoryRuntimePool {
|
|
|
19513
19513
|
}
|
|
19514
19514
|
}
|
|
19515
19515
|
}
|
|
19516
|
-
async emitProviderUsage(entry, scope, responses) {
|
|
19516
|
+
async emitProviderUsage(entry, scope, responses, deferrable = false) {
|
|
19517
19517
|
if (!scope.host?.observeSessionUuid || responses.length === 0) return;
|
|
19518
19518
|
await bestEffort("provider usage", async () => {
|
|
19519
19519
|
for (const response of responses) {
|
|
19520
19520
|
if (response.failure) {
|
|
19521
|
-
|
|
19521
|
+
if (response.hostGone && deferrable) continue;
|
|
19522
|
+
await entry.observability.emitError(`llm.call:${response.failure}`, `${response.provider} ${response.callId}`, scope.host?.observeSessionUuid);
|
|
19522
19523
|
continue;
|
|
19523
19524
|
}
|
|
19524
19525
|
if (!response.usage || !response.model) {
|
|
@@ -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-VBSPGEG3.js";
|
|
2
|
+
import "./types-Del9J7UB.js";
|
|
3
3
|
import { r as SqliteDatabaseLike } from "./sqlite-runtime-L_ywirTm.js";
|
|
4
4
|
//#region src/engine/observability/memory-snapshot.d.ts
|
|
5
5
|
type SnapshotReason = "startup" | "session_end";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { _ as MemoryLane, b as MemoryTier, g as MemoryEntry, h as MemoryCategory, r as AggregationQuery, v as MemoryMetadata, y as MemorySearchResult } from "./types-
|
|
1
|
+
import { _ as MemoryLane, b as MemoryTier, g as MemoryEntry, h as MemoryCategory, r as AggregationQuery, v as MemoryMetadata, y as MemorySearchResult } from "./types-Del9J7UB.js";
|
|
2
2
|
import "./index-DL8AVj0Z.js";
|
|
3
3
|
import { t as Embedder } from "./embedding-provider-client-vynZMuit.js";
|
|
4
4
|
import { K as RemFacetPolicy } from "./index-BO4RU_mc.js";
|
|
5
5
|
import { T as WriteTextVersionInput, h as RemMutationResult } from "./types-pVomjzqR.js";
|
|
6
6
|
import { a as StorageError } from "./errors-CeVRxf9V.js";
|
|
7
|
-
import { r as WriterAuthority } from "./memory-kind-policy-
|
|
7
|
+
import { r as WriterAuthority } from "./memory-kind-policy-BOGb8thm.js";
|
|
8
8
|
import { t as DrizzleDB } from "./connection-3IVXpuPE.js";
|
|
9
9
|
import { r as SqliteDatabaseLike } from "./sqlite-runtime-L_ywirTm.js";
|
|
10
10
|
import { n as MemoryTelemetryKeySet, t as MemoryTelemetryReceiptService } from "./memory-telemetry-receipts-MAJecvXQ.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as MemoryCategory, w as InsightMetadata } from "./types-
|
|
1
|
+
import { h as MemoryCategory, w as InsightMetadata } from "./types-Del9J7UB.js";
|
|
2
2
|
//#region src/engine/extraction/memory-temporality-classifier.d.ts
|
|
3
3
|
type TemporalType = "static" | "dynamic";
|
|
4
4
|
type TemporalResolutionStatus = "resolved" | "unresolved" | "static";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as MemoryTier, l as DecayScore } from "./types-
|
|
1
|
+
import { b as MemoryTier, l as DecayScore } from "./types-Del9J7UB.js";
|
|
2
2
|
//#region src/engine/operations/memory-tier-promoter.d.ts
|
|
3
3
|
interface TierConfig {
|
|
4
4
|
/** Minimum access count for Core promotion (default: 10) */
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import "./types-Del9J7UB.js";
|
|
2
|
+
import "./index-DL8AVj0Z.js";
|
|
3
|
+
import "./embedding-provider-client-vynZMuit.js";
|
|
4
|
+
import "./retriever-DQdyGlkr.js";
|
|
5
|
+
import "./memory-metadata-codec-DcSqjbWR.js";
|
|
6
|
+
import "./store-DKndKig1.js";
|
|
7
|
+
import "./capture-policy-detector-BY7v5Cq1.js";
|
|
8
|
+
import "./memory-temporality-classifier-SzlUCgTj.js";
|
|
9
|
+
import "./runtime-audit-log-Bn3JLBPj.js";
|
|
10
|
+
import { z as z$1 } from "zod";
|
|
11
|
+
import "@snoai/chunking";
|
|
12
|
+
import "@sinclair/typebox";
|
|
13
|
+
import "async-mutex";
|
|
14
|
+
export { z$1 as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as PluginObservability } from "./adapter-
|
|
1
|
+
import { n as PluginObservability } from "./adapter-TCrv5P-C.js";
|
|
2
2
|
import { r as EmbeddingConfig, t as Embedder } from "./embedding-provider-client-vynZMuit.js";
|
|
3
3
|
//#region src/engine/observability/observable-embedder.d.ts
|
|
4
4
|
type SessionUuidProvider = () => string | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as LlmClientConfig, r as LlmClient, s as MemoryLlmRequest } from "./plugin-config-schema-
|
|
2
|
-
import { n as PluginObservability } from "./adapter-
|
|
3
|
-
import "./llm-client-
|
|
1
|
+
import { i as LlmClientConfig, r as LlmClient, s as MemoryLlmRequest } from "./plugin-config-schema-VBSPGEG3.js";
|
|
2
|
+
import { n as PluginObservability } from "./adapter-TCrv5P-C.js";
|
|
3
|
+
import "./llm-client-RqmOEQkg.js";
|
|
4
4
|
//#region src/engine/observability/observable-llm-client.d.ts
|
|
5
5
|
type SessionUuidProvider = () => string | undefined;
|
|
6
6
|
declare class ObservableLlmClient implements LlmClient {
|
package/dist/{observable-memory-store-CuiqSZnt.d.ts → observable-memory-store-B48HV2NK.d.ts}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { b as MemoryTier, g as MemoryEntry, v as MemoryMetadata, y as MemorySearchResult } from "./types-
|
|
2
|
-
import { n as PluginObservability } from "./adapter-
|
|
1
|
+
import { b as MemoryTier, g as MemoryEntry, v as MemoryMetadata, y as MemorySearchResult } from "./types-Del9J7UB.js";
|
|
2
|
+
import { n as PluginObservability } from "./adapter-TCrv5P-C.js";
|
|
3
3
|
import { r as EmbeddingConfig } from "./embedding-provider-client-vynZMuit.js";
|
|
4
|
-
import { C as MemoryStore, F as TaskLifecycleBatchWriteResult, M as SupersedeClose, N as SupersedePreserveExisting, P as TaskLifecycleBatchWriteInput, at as ListOptions, dt as RecordUnplacedCandidateResult, f as AtomicExtractionWriteResult, ft as SearchOptions, gt as StoreResult, ht as StoreInput, j as SupersedeActiveFactGuard, mt as StoreConfig, ot as MemoryRow, rt as ChunkSearchResult, u as AtomicExtractionWriteInput, ut as RecordUnplacedCandidateInput, w as MemoryStoreInternals, yt as UpdateChanges } from "./memory-store-base-
|
|
5
|
-
import "./store-
|
|
4
|
+
import { C as MemoryStore, F as TaskLifecycleBatchWriteResult, M as SupersedeClose, N as SupersedePreserveExisting, P as TaskLifecycleBatchWriteInput, at as ListOptions, dt as RecordUnplacedCandidateResult, f as AtomicExtractionWriteResult, ft as SearchOptions, gt as StoreResult, ht as StoreInput, j as SupersedeActiveFactGuard, mt as StoreConfig, ot as MemoryRow, rt as ChunkSearchResult, u as AtomicExtractionWriteInput, ut as RecordUnplacedCandidateInput, w as MemoryStoreInternals, yt as UpdateChanges } from "./memory-store-base-z593oJ4h.js";
|
|
5
|
+
import "./store-DKndKig1.js";
|
|
6
6
|
//#region src/engine/observability/observable-memory-store.d.ts
|
|
7
7
|
type SessionUuidProvider = () => string | undefined;
|
|
8
8
|
declare class ObservableMemoryStore extends MemoryStore {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { x as RetrievalResult } from "./types-
|
|
2
|
-
import { n as PluginObservability } from "./adapter-
|
|
1
|
+
import { x as RetrievalResult } from "./types-Del9J7UB.js";
|
|
2
|
+
import { n as PluginObservability } from "./adapter-TCrv5P-C.js";
|
|
3
3
|
import { r as EmbeddingConfig, t as Embedder } from "./embedding-provider-client-vynZMuit.js";
|
|
4
|
-
import { d as RetrievalConfig, f as RetrievalContext, t as MemoryRetriever } from "./retriever-
|
|
5
|
-
import { C as MemoryStore } from "./memory-store-base-
|
|
6
|
-
import "./store-
|
|
4
|
+
import { d as RetrievalConfig, f as RetrievalContext, t as MemoryRetriever } from "./retriever-DQdyGlkr.js";
|
|
5
|
+
import { C as MemoryStore } from "./memory-store-base-z593oJ4h.js";
|
|
6
|
+
import "./store-DKndKig1.js";
|
|
7
7
|
//#region src/engine/observability/observable-retriever.d.ts
|
|
8
8
|
type SessionUuidProvider = () => string | undefined;
|
|
9
9
|
type RetrievalTraceResult = Awaited<ReturnType<MemoryRetriever["retrieveWithTrace"]>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./profile-CQNCtVIu.js";
|
|
@@ -272,7 +272,7 @@ type ProviderResponseTrace = {
|
|
|
272
272
|
usage?: Omit<TokenUsage, "estimated">;
|
|
273
273
|
/** Set when the call produced no answer; the value is the failure category. */
|
|
274
274
|
failure?: string;
|
|
275
|
-
/** The host that should have answered was no longer there; the
|
|
275
|
+
/** The host that should have answered was no longer there; the call is deferred and retried when a host returns. */
|
|
276
276
|
hostGone?: boolean;
|
|
277
277
|
};
|
|
278
278
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as Settings } from "./plugin-config-schema-
|
|
1
|
+
import { b as Settings } from "./plugin-config-schema-VBSPGEG3.js";
|
|
2
2
|
//#region src/contract/profile.d.ts
|
|
3
3
|
declare function getStateDir(defaultStateDir?: string): string;
|
|
4
4
|
declare function getSettingsPath(): string;
|
package/dist/{reflection-command-hooks-CA6vFpvb.d.ts → reflection-command-hooks-Cl0ShtbF.d.ts}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as PluginConfig } from "./plugin-config-schema-
|
|
2
|
-
import "./types-
|
|
1
|
+
import { t as PluginConfig } from "./plugin-config-schema-VBSPGEG3.js";
|
|
2
|
+
import "./types-Del9J7UB.js";
|
|
3
3
|
import { n as createErrorSignalTracker } from "./error-signals-D8_3vYu4.js";
|
|
4
|
-
import { n as ReflectionDerivedCache, t as ReflectionDerivedSuppressionCache } from "./derived-suppression-cache-
|
|
5
|
-
import { t as ReflectionDeps } from "./reflection-deps-
|
|
4
|
+
import { n as ReflectionDerivedCache, t as ReflectionDerivedSuppressionCache } from "./derived-suppression-cache-BLAH0nB9.js";
|
|
5
|
+
import { t as ReflectionDeps } from "./reflection-deps-B0_cPBZt.js";
|
|
6
6
|
//#region src/engine/reflection/reflection-command-hooks.d.ts
|
|
7
7
|
declare function createRunMemoryReflection(params: ReflectionCommandParams): (event: {
|
|
8
8
|
sessionKey: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as AgentLlmPort } from "./agent-llm-port-DY2290EK.js";
|
|
2
2
|
import { n as createEmbedder } from "./embedding-provider-client-vynZMuit.js";
|
|
3
|
-
import { C as MemoryStore } from "./memory-store-base-
|
|
4
|
-
import "./store-
|
|
3
|
+
import { C as MemoryStore } from "./memory-store-base-z593oJ4h.js";
|
|
4
|
+
import "./store-DKndKig1.js";
|
|
5
5
|
import { r as MemoryTelemetryUsageOutbox } from "./memory-telemetry-outbox-ddTdImt7.js";
|
|
6
6
|
import { n as createScopePolicy } from "./memory-scope-policy-1gg5QlWZ.js";
|
|
7
7
|
//#region src/engine/reflection/reflection-deps.d.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as LlmRoutingConfig, t as PluginConfig } from "./plugin-config-schema-
|
|
2
|
-
import "./types-
|
|
1
|
+
import { p as LlmRoutingConfig, t as PluginConfig } from "./plugin-config-schema-VBSPGEG3.js";
|
|
2
|
+
import "./types-Del9J7UB.js";
|
|
3
3
|
import { n as AgentLlmPort } from "./agent-llm-port-DY2290EK.js";
|
|
4
4
|
import { n as ReflectionGenerator } from "./daily-log-generator-CsQPHl4A.js";
|
|
5
5
|
import { n as createErrorSignalTracker } from "./error-signals-D8_3vYu4.js";
|
|
6
|
-
import { n as ReflectionDerivedCache, t as ReflectionDerivedSuppressionCache } from "./derived-suppression-cache-
|
|
6
|
+
import { n as ReflectionDerivedCache, t as ReflectionDerivedSuppressionCache } from "./derived-suppression-cache-BLAH0nB9.js";
|
|
7
7
|
//#region src/engine/reflection/reflection-embedded-generator.d.ts
|
|
8
8
|
declare const DEFAULT_MEMORY_LLM_CONFIG: NonNullable<PluginConfig["extraction"]["llm"]>;
|
|
9
9
|
declare function isInternalReflectionSessionKey(sessionKey: unknown): boolean;
|
package/dist/{reflection-injection-hooks-7CYREnXW.d.ts → reflection-injection-hooks-CtgcjLGx.d.ts}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as PluginConfig } from "./plugin-config-schema-
|
|
2
|
-
import "./types-
|
|
3
|
-
import "./store-
|
|
1
|
+
import { t as PluginConfig } from "./plugin-config-schema-VBSPGEG3.js";
|
|
2
|
+
import "./types-Del9J7UB.js";
|
|
3
|
+
import "./store-DKndKig1.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 { n as createErrorSignalTracker } from "./error-signals-D8_3vYu4.js";
|
|
7
|
-
import { n as ReflectionDerivedCache, r as LoadedReflectionSlices, t as ReflectionDerivedSuppressionCache } from "./derived-suppression-cache-
|
|
7
|
+
import { n as ReflectionDerivedCache, r as LoadedReflectionSlices, t as ReflectionDerivedSuppressionCache } from "./derived-suppression-cache-BLAH0nB9.js";
|
|
8
8
|
//#region src/engine/reflection/reflection-slice-loader.d.ts
|
|
9
9
|
interface ReflectionSliceLoader {
|
|
10
10
|
loadAgentReflectionSlices: (agentId: string, projectIdFilter: string[]) => Promise<LoadedReflectionSlices>;
|
package/dist/{reflection-lifecycle-hooks-93dQaxyU.d.ts → reflection-lifecycle-hooks-Pd7P9wya.d.ts}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as PluginConfig } from "./plugin-config-schema-
|
|
2
|
-
import "./types-
|
|
1
|
+
import { t as PluginConfig } from "./plugin-config-schema-VBSPGEG3.js";
|
|
2
|
+
import "./types-Del9J7UB.js";
|
|
3
3
|
import { n as createErrorSignalTracker } from "./error-signals-D8_3vYu4.js";
|
|
4
|
-
import { n as ReflectionDerivedCache, t as ReflectionDerivedSuppressionCache } from "./derived-suppression-cache-
|
|
4
|
+
import { n as ReflectionDerivedCache, t as ReflectionDerivedSuppressionCache } from "./derived-suppression-cache-BLAH0nB9.js";
|
|
5
5
|
//#region src/engine/reflection/reflection-lifecycle-hooks.d.ts
|
|
6
6
|
type ReflectionLifecycleParams = {
|
|
7
7
|
reflectionCfg: PluginConfig["memoryReflection"];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { c as runRemProductionOrderedWave } from "./rem-trigger-
|
|
1
|
+
import { c as runRemProductionOrderedWave } from "./rem-trigger-Dz_Jrr9p.js";
|
|
2
2
|
export { runRemProductionOrderedWave };
|
|
@@ -27097,6 +27097,19 @@ function collectParallelStage(results, key, fallbackIds) {
|
|
|
27097
27097
|
}
|
|
27098
27098
|
//#endregion
|
|
27099
27099
|
//#region src/engine/retrieval/retriever-search-modes.ts
|
|
27100
|
+
/**
|
|
27101
|
+
* Ordinary long prose is chunked and averaged by the embedder. Text it cannot cut under the model's limit (a pasted log or hash
|
|
27102
|
+
* dump) is rejected, and would fail the whole recall, so only then is the query cut to the limit; keyword search still sees all of it.
|
|
27103
|
+
*/
|
|
27104
|
+
async function embedQuery(embedder, query) {
|
|
27105
|
+
await embedder.warmup();
|
|
27106
|
+
try {
|
|
27107
|
+
return await embedder.embed(query);
|
|
27108
|
+
} catch (error) {
|
|
27109
|
+
if (!(error instanceof EmbeddingError)) throw error;
|
|
27110
|
+
return embedder.embed(embedder.truncateToTokens(query, 512));
|
|
27111
|
+
}
|
|
27112
|
+
}
|
|
27100
27113
|
Object.assign(MemoryRetriever.prototype, {
|
|
27101
27114
|
async aggregationComplete(context, trace) {
|
|
27102
27115
|
trace?.startStage("aggregation_evidence", []);
|
|
@@ -27142,7 +27155,7 @@ Object.assign(MemoryRetriever.prototype, {
|
|
|
27142
27155
|
return mapped;
|
|
27143
27156
|
},
|
|
27144
27157
|
async vectorOnly(context, trace) {
|
|
27145
|
-
const vector = await this.embedder
|
|
27158
|
+
const vector = await embedQuery(this.embedder, context.query);
|
|
27146
27159
|
this.throwIfAborted(context);
|
|
27147
27160
|
const searchLimit = this.config.temporalExpiry ? Math.max(this.config.candidatePoolSize, context.limit * 2) : context.limit;
|
|
27148
27161
|
trace?.startStage("vector_search", []);
|
|
@@ -27185,7 +27198,7 @@ Object.assign(MemoryRetriever.prototype, {
|
|
|
27185
27198
|
},
|
|
27186
27199
|
async precisionRecall(context, trace) {
|
|
27187
27200
|
trace?.startStage("embed_query", []);
|
|
27188
|
-
const queryVector = await this.embedder
|
|
27201
|
+
const queryVector = await embedQuery(this.embedder, context.query);
|
|
27189
27202
|
trace?.endStage([]);
|
|
27190
27203
|
this.throwIfAborted(context);
|
|
27191
27204
|
const bm25Query = context.query;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CHUNKING_VERSION, DEFAULT_BM25_WEIGHT, DEFAULT_RECALL_LIFECYCLE, DEFAULT_RERANK_MODEL, DEFAULT_RERANK_TIMEOUT_MS, DEFAULT_VECTOR_WEIGHT, IMPORTANCE_WEIGHT_BASE, LIGHTWEIGHT_COSINE_WEIGHT, LIGHTWEIGHT_FUSION_WEIGHT, LIGHTWEIGHT_RERANK_PENALTY, MMR_LAMBDA, RECENCY_WEIGHT, RERANK_BLEND_CROSS, RERANK_BLEND_VECTOR, TIME_DECAY_FLOOR, experimentCandidatePoolOverride, experimentMmrDisabled } from "./internal/config/index.js";
|
|
2
2
|
import "./internal/engine/shared/types.js";
|
|
3
|
-
import { RetrievalError } from "./internal/engine/shared/errors.js";
|
|
3
|
+
import { EmbeddingError, RetrievalError } from "./internal/engine/shared/errors.js";
|
|
4
4
|
import { o as isMemoryExpired, s as parseInsightMetadata } from "./memory-metadata-codec-DL1sbJiN.js";
|
|
5
5
|
import { clamp01 } from "./internal/engine/shared/utils.js";
|
|
6
6
|
import { i as memoryOperationSignal } from "./operation-cancellation-CTKWwNHk.js";
|
|
@@ -375,6 +375,19 @@ function collectParallelStage(results, key, fallbackIds) {
|
|
|
375
375
|
}
|
|
376
376
|
//#endregion
|
|
377
377
|
//#region src/engine/retrieval/retriever-search-modes.ts
|
|
378
|
+
/**
|
|
379
|
+
* Ordinary long prose is chunked and averaged by the embedder. Text it cannot cut under the model's limit (a pasted log or hash
|
|
380
|
+
* dump) is rejected, and would fail the whole recall, so only then is the query cut to the limit; keyword search still sees all of it.
|
|
381
|
+
*/
|
|
382
|
+
async function embedQuery(embedder, query) {
|
|
383
|
+
await embedder.warmup();
|
|
384
|
+
try {
|
|
385
|
+
return await embedder.embed(query);
|
|
386
|
+
} catch (error) {
|
|
387
|
+
if (!(error instanceof EmbeddingError)) throw error;
|
|
388
|
+
return embedder.embed(embedder.truncateToTokens(query, 512));
|
|
389
|
+
}
|
|
390
|
+
}
|
|
378
391
|
Object.assign(MemoryRetriever.prototype, {
|
|
379
392
|
async aggregationComplete(context, trace) {
|
|
380
393
|
trace?.startStage("aggregation_evidence", []);
|
|
@@ -420,7 +433,7 @@ Object.assign(MemoryRetriever.prototype, {
|
|
|
420
433
|
return mapped;
|
|
421
434
|
},
|
|
422
435
|
async vectorOnly(context, trace) {
|
|
423
|
-
const vector = await this.embedder
|
|
436
|
+
const vector = await embedQuery(this.embedder, context.query);
|
|
424
437
|
this.throwIfAborted(context);
|
|
425
438
|
const searchLimit = this.config.temporalExpiry ? Math.max(this.config.candidatePoolSize, context.limit * 2) : context.limit;
|
|
426
439
|
trace?.startStage("vector_search", []);
|
|
@@ -463,7 +476,7 @@ Object.assign(MemoryRetriever.prototype, {
|
|
|
463
476
|
},
|
|
464
477
|
async precisionRecall(context, trace) {
|
|
465
478
|
trace?.startStage("embed_query", []);
|
|
466
|
-
const queryVector = await this.embedder
|
|
479
|
+
const queryVector = await embedQuery(this.embedder, context.query);
|
|
467
480
|
trace?.endStage([]);
|
|
468
481
|
this.throwIfAborted(context);
|
|
469
482
|
const bm25Query = context.query;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { h as MemoryCategory, l as DecayScore, r as AggregationQuery, u as DecayableMemory, x as RetrievalResult, y as MemorySearchResult } from "./types-
|
|
1
|
+
import { h as MemoryCategory, l as DecayScore, r as AggregationQuery, u as DecayableMemory, x as RetrievalResult, y as MemorySearchResult } from "./types-Del9J7UB.js";
|
|
2
2
|
import { sn as RecallLifecycleConfig } from "./index-DL8AVj0Z.js";
|
|
3
3
|
import { t as Embedder } from "./embedding-provider-client-vynZMuit.js";
|
|
4
4
|
import "./trace-C1JxMfs-.js";
|
|
5
|
-
import "./memory-metadata-codec-
|
|
5
|
+
import "./memory-metadata-codec-DcSqjbWR.js";
|
|
6
6
|
import { K as RemFacetPolicy } from "./index-BO4RU_mc.js";
|
|
7
|
-
import { C as MemoryStore } from "./memory-store-base-
|
|
8
|
-
import "./store-
|
|
9
|
-
import { n as AccessTracker } from "./access-tracker-
|
|
10
|
-
import { r as TierPromoter } from "./memory-tier-promoter-
|
|
7
|
+
import { C as MemoryStore } from "./memory-store-base-z593oJ4h.js";
|
|
8
|
+
import "./store-DKndKig1.js";
|
|
9
|
+
import { n as AccessTracker } from "./access-tracker-D1e-2-Bb.js";
|
|
10
|
+
import { r as TierPromoter } from "./memory-tier-promoter-Z7jprFB7.js";
|
|
11
11
|
import "@snoai/utils/logger";
|
|
12
12
|
//#region src/engine/retrieval/retrieval-trace.d.ts
|
|
13
13
|
/** @file retrieval-trace.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./paths-
|
|
1
|
+
import "./paths-D3dEsoE4.js";
|
|
2
2
|
//#region src/engine/operations/runtime-audit-log.d.ts
|
|
3
3
|
type AuditEvent = "tool_call" | "hook_trigger" | "kill_switch" | "startup" | "error" | "auto_recall" | "ambient_learning" | "session_summary" | "envelope_strip" | "storage_integrity" | "memory_injected" | "memory_searched" | "memory_read" | "memory_updated" | "memory_superseded" | "memory_deleted" | "memory_purged" | "rem_trigger_evaluated" | "rem_triggered" | "rem_completed" | "rem_failed";
|
|
4
4
|
type AuditStatus = "ok" | "error" | "skipped" | "partial";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Et as ModelCallRefusedError, G as parseRemOperationType, W as REM_BUILT_OPERATION_TYPES, ct as readJsonlLines, it as getAuditPath, n as remNeedsHost, nt as appendAuditEntryStrict } from "./rem-trigger-
|
|
1
|
+
import { Et as ModelCallRefusedError, G as parseRemOperationType, W as REM_BUILT_OPERATION_TYPES, ct as readJsonlLines, it as getAuditPath, n as remNeedsHost, nt as appendAuditEntryStrict } from "./rem-trigger-Dz_Jrr9p.js";
|
|
2
2
|
import { Ar as MEMORY_ERROR_STATUS, C as getSnoStationMemStateDir, Fr as memoryMethod, Mr as MEMORY_ROUTES, Nr as MEMORY_SKIN_HEADER, S as getSidecarSocketPath, _ as readRemTestHoldMs, c as REM_SIDECAR_ORIGIN, d as getRemDiscoveryPath, f as getRemJobJournalPath, g as readRemOperationalConfig, i as REM_JOBS_PATH_PREFIX, kr as MEMORY_DEFAULT_SKIN_ID, l as REM_SOURCE, nr as MEMORY_SHUTDOWN_TIMEOUT_MS, r as REM_CORRELATION_ID_HEADER, s as REM_SIDECAR_HOST, u as getRemChassisJournalPath, v as SettingsUnavailableError, y as getDiscoveryPath } from "./config-BCZRhUvW.js";
|
|
3
3
|
import { t as ContractError } from "./error-D-wb-rZw.js";
|
|
4
4
|
import { setImmediate } from "node:timers/promises";
|
|
@@ -643,7 +643,7 @@ async function startOwnedRemSidecar() {
|
|
|
643
643
|
async open() {
|
|
644
644
|
if (currentMemory) return currentMemory;
|
|
645
645
|
if (settingsError) throw settingsError;
|
|
646
|
-
openingMemory ??= import("./memory-runtime-
|
|
646
|
+
openingMemory ??= import("./memory-runtime-CbuNkL0G.js").then((module) => module.MemoryRuntimePool.open()).then((pool) => {
|
|
647
647
|
currentMemory = pool;
|
|
648
648
|
if (stopping) pool.stopTimers();
|
|
649
649
|
return pool;
|
|
@@ -1038,7 +1038,7 @@ async function runChassisJob(store, journal, waveId, holdMs, runtime) {
|
|
|
1038
1038
|
cleanRefusalReasons.push(reason);
|
|
1039
1039
|
await appendChassisRefusal(journal, queued, operation, "refused", reason);
|
|
1040
1040
|
}
|
|
1041
|
-
const { runRemProductionOrderedWave } = await import("./rem-batch-executor-
|
|
1041
|
+
const { runRemProductionOrderedWave } = await import("./rem-batch-executor-ryxxkzQp.js");
|
|
1042
1042
|
const result = enabledOperations.length === 0 ? {
|
|
1043
1043
|
decision: "allow",
|
|
1044
1044
|
reasonCode: null,
|
package/dist/sidecar/main.js
CHANGED
|
@@ -6,7 +6,7 @@ import { addLogFileTarget, closeLogger, createLogger } from "@snoai/utils/logger
|
|
|
6
6
|
* @purpose Boots the standalone local REM sidecar process.
|
|
7
7
|
* @boundary Process environment, sidecar lifecycle, and local request-log destination.
|
|
8
8
|
*/
|
|
9
|
-
const { startRemSidecar, DuplicateSidecarError } = await import("../server-
|
|
9
|
+
const { startRemSidecar, DuplicateSidecarError } = await import("../server-DFLEPkQA.js");
|
|
10
10
|
let sidecar;
|
|
11
11
|
while (!sidecar) try {
|
|
12
12
|
sidecar = await startRemSidecar();
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import "./types-Del9J7UB.js";
|
|
2
|
+
import "./index-DL8AVj0Z.js";
|
|
3
|
+
import "./adapter-TCrv5P-C.js";
|
|
4
|
+
import "./embedding-provider-client-vynZMuit.js";
|
|
5
|
+
import "./retriever-DQdyGlkr.js";
|
|
6
|
+
import "./connection-3IVXpuPE.js";
|
|
7
|
+
import "./sqlite-runtime-L_ywirTm.js";
|
|
8
|
+
import "./store-DKndKig1.js";
|
|
9
|
+
import "./access-tracker-D1e-2-Bb.js";
|
|
10
|
+
import "./memory-tier-promoter-Z7jprFB7.js";
|
|
11
|
+
import "./capture-policy-detector-BY7v5Cq1.js";
|
|
12
|
+
import "./memory-temporality-classifier-SzlUCgTj.js";
|
|
13
|
+
import "./runtime-audit-log-Bn3JLBPj.js";
|
|
14
|
+
import "./atomic-memory-extraction-C0n0wHzt.js";
|
|
15
|
+
import "./llm-client-RqmOEQkg.js";
|
|
16
|
+
import "./memory-snapshot-C5BnJ2rO.js";
|
|
17
|
+
import "./observable-embedder-DjhGxHx2.js";
|
|
18
|
+
import "./observable-llm-client-CLJLMmwA.js";
|
|
19
|
+
import "./observable-memory-store-B48HV2NK.js";
|
|
20
|
+
import "./observable-retriever-CAdHncKh.js";
|
|
21
|
+
import "./reflection-embedded-generator-C5kA0T0v.js";
|
|
22
|
+
import "./strategy-hook-runner-BSk_o6Yt.js";
|
|
23
|
+
import "./data-bootstrap-Bl3lthzE.js";
|
|
24
|
+
import "@snoai/sqlite-crypto";
|
|
25
|
+
//#region src/engine/bindings/sno-station-mem-runtime-dependencies.d.ts
|
|
26
|
+
/** Legacy parameters carry only an unused logger slot; no host operations are exposed. */
|
|
27
|
+
type SnoStationMemPluginApi = {
|
|
28
|
+
logger: unknown;
|
|
29
|
+
};
|
|
30
|
+
//#endregion
|
|
31
|
+
export { SnoStationMemPluginApi as t };
|
|
@@ -13,13 +13,13 @@ import "./atomic-memory-extraction-BG42OXou.js";
|
|
|
13
13
|
import "./internal/store/sqlite-runtime.js";
|
|
14
14
|
import "./connection-C9YD5sgm.js";
|
|
15
15
|
import "./internal/store/data-paths.js";
|
|
16
|
-
import "./adapter-
|
|
16
|
+
import "./adapter-CG-UbOjU.js";
|
|
17
17
|
import "./internal/engine/observability/memory-snapshot.js";
|
|
18
18
|
import "./internal/engine/observability/observable-embedder.js";
|
|
19
19
|
import "./internal/engine/observability/observable-llm-client.js";
|
|
20
20
|
import "./internal/engine/observability/observable-memory-store.js";
|
|
21
21
|
import "./internal/engine/retrieval/access-tracker.js";
|
|
22
|
-
import "./retriever-
|
|
22
|
+
import "./retriever-BXQmJMh0.js";
|
|
23
23
|
import "./internal/engine/observability/observable-retriever.js";
|
|
24
24
|
import "./internal/engine/observability/session-registry.js";
|
|
25
25
|
import "./daily-log-generator-CH_KuWHs.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./embedding-provider-client-vynZMuit.js";
|
|
2
|
-
import { B as TaskLifecycleMigrationManifest, H as TaskLifecycleMigrationSourceRow, a as AtomicExtractionRepairStrategy, c as AtomicExtractionRunParameters, n as AtomicExtractionLedgerEntry, o as AtomicExtractionReprocessBounds, s as AtomicExtractionReprocessReason, x as MemoryRelationPredicate, z as TaskLifecycleMigrationCensusRow } from "./memory-store-base-
|
|
2
|
+
import { B as TaskLifecycleMigrationManifest, H as TaskLifecycleMigrationSourceRow, a as AtomicExtractionRepairStrategy, c as AtomicExtractionRunParameters, n as AtomicExtractionLedgerEntry, o as AtomicExtractionReprocessBounds, s as AtomicExtractionReprocessReason, x as MemoryRelationPredicate, z as TaskLifecycleMigrationCensusRow } from "./memory-store-base-z593oJ4h.js";
|
|
3
3
|
import { a as StorageError } from "./errors-CeVRxf9V.js";
|
|
4
4
|
import "./sqlite-runtime-L_ywirTm.js";
|
|
5
5
|
//#region src/store/memory-store-relation-api.d.ts
|