@snoai/memory 1.2.13 → 1.2.14
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-CglGg8uS.d.ts → access-tracker-DT04huAG.d.ts} +4 -4
- package/dist/{adapter-Cxyzdq6H.d.ts → adapter-BMx-VcJy.d.ts} +2 -2
- package/dist/{agent-llm-port-DY2290EK.d.ts → agent-llm-port-BlFrD2ro.d.ts} +5 -0
- package/dist/{atomic-memory-extraction-DWhlXJT6.js → atomic-memory-extraction-De86y7O-.js} +4 -4
- package/dist/{atomic-memory-extraction-DO4yTfch.d.ts → atomic-memory-extraction-_OEsSJbC.d.ts} +4 -4
- package/dist/{b-profile-section-dictionary-provider-BkUdS1SY.d.ts → b-profile-section-dictionary-provider-DTE4uWyh.d.ts} +1 -1
- package/dist/{capture-policy-detector-C7MA4jSr.d.ts → capture-policy-detector-B8sqRTlB.d.ts} +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/{config-D_KOwEyg.js → config-C1X5rsAx.js} +6 -52
- package/dist/{derived-suppression-cache-CmS4xAaN.d.ts → derived-suppression-cache-Cha_e2Cr.d.ts} +1 -1
- package/dist/diagnostic-encoder.js +1 -1
- package/dist/{index-Pb9LrHgL.d.ts → index-8CfO_-6T.d.ts} +7 -16
- package/dist/{index-CTi1R9T4.d.ts → index-C8tTzfrH.d.ts} +2 -2
- package/dist/index.d.ts +10 -10
- package/dist/index.js +5 -5
- package/dist/internal/config/index.d.ts +2 -2
- package/dist/internal/config/index.js +7 -16
- package/dist/internal/config/plugin-config-schema.d.ts +1 -1
- package/dist/internal/config/plugin-config-schema.js +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 +3 -30
- 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 +2 -2
- 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 +6 -6
- 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/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-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 +2 -2
- 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/shared/types.js +1 -1
- package/dist/internal/engine/telemetry/observe-ledger.d.ts +1 -1
- package/dist/internal/model/agent-llm-port.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/store/maintenance.d.ts +2 -2
- package/dist/internal/store/maintenance.js +3 -3
- package/dist/internal/store/store.d.ts +2 -2
- package/dist/internal/store/store.js +1 -1
- package/dist/{llm-client-B7LSFL_m.d.ts → llm-client-BoClMktv.d.ts} +1 -1
- package/dist/{llm-client-C7yyFWu-.js → llm-client-DDdUjYWS.js} +10 -3
- package/dist/{log-site-catalog.generated-BODn_6Kx.js → log-site-catalog.generated-DGia_6ZR.js} +66 -59
- package/dist/log-site-catalog.json +1 -1
- package/dist/{memory-kind-policy-B4IBMAlv.d.ts → memory-kind-policy-C7p4o8ru.d.ts} +1 -1
- package/dist/{memory-metadata-codec-BQ8tBY-g.d.ts → memory-metadata-codec-CFY8YtXf.d.ts} +1 -1
- package/dist/{memory-runtime-4iOpeP09.js → memory-runtime-CCPRiAk9.js} +89 -63
- package/dist/{memory-snapshot-B8mQbWR-.d.ts → memory-snapshot-DADY3InD.d.ts} +2 -2
- package/dist/{memory-store-base-CTAMKigD.d.ts → memory-store-base-D0bLwzyF.d.ts} +3 -3
- package/dist/{memory-temporality-classifier-epuZlfXa.js → memory-temporality-classifier-BwBKEQbL.js} +1 -1
- package/dist/{memory-temporality-classifier-LByFBiFJ.d.ts → memory-temporality-classifier-DL14kjtv.d.ts} +1 -1
- package/dist/{memory-tier-promoter-CSGa4LBH.d.ts → memory-tier-promoter-Cf1OdoZK.d.ts} +1 -1
- package/dist/memory-tool-dependencies-Bxdpvs3Z.d.ts +14 -0
- package/dist/{memory-tool-dependencies-xLaWzwpI.js → memory-tool-dependencies-aAr7Pkuj.js} +1 -1
- package/dist/{observable-embedder-Da0teBqx.d.ts → observable-embedder-CPyX9y7c.d.ts} +1 -1
- package/dist/{observable-llm-client-i0sp0veF.d.ts → observable-llm-client-C8ndPJck.d.ts} +3 -3
- package/dist/{observable-memory-store-CS87pitJ.d.ts → observable-memory-store-DhOfgjkU.d.ts} +4 -4
- package/dist/{observable-retriever-Bhfg9DsZ.d.ts → observable-retriever-CUlmCFy5.d.ts} +5 -5
- package/dist/paths-DnNN0G1t.d.ts +1 -0
- package/dist/{plugin-config-schema-CcEeAEdi.d.ts → plugin-config-schema-BPg-ppSt.d.ts} +2 -8
- package/dist/{plugin-config-schema-CvAGFPyE.js → plugin-config-schema-D9riSXDg.js} +3 -20
- package/dist/{profile-BMvnRqf5.d.ts → profile-BksZRjJ8.d.ts} +1 -1
- package/dist/{profile-section-writer-DeD9GPQJ.js → profile-section-writer-Dd4FKpt5.js} +2 -2
- package/dist/{reflection-command-hooks-S5L6ZWeh.js → reflection-command-hooks-B2P4zDr6.js} +3 -3
- package/dist/{reflection-command-hooks-CFXyoVvE.d.ts → reflection-command-hooks-mCOmD8b6.d.ts} +4 -4
- package/dist/{reflection-deps-BPMrDU0a.d.ts → reflection-deps-BYkAaKxD.d.ts} +3 -3
- package/dist/{reflection-embedded-generator-nmVrj4AZ.js → reflection-embedded-generator-DV-NkeU-.js} +1 -1
- package/dist/{reflection-embedded-generator-CF-NbuPS.d.ts → reflection-embedded-generator-ve1PhgUY.d.ts} +4 -4
- package/dist/{reflection-injection-hooks-BRIr3lJM.d.ts → reflection-injection-hooks-CphBCA9F.d.ts} +4 -4
- package/dist/{reflection-lifecycle-hooks-Ci8y4qHk.d.ts → reflection-lifecycle-hooks-CFGYh_8m.d.ts} +3 -3
- package/dist/{rem-batch-executor-CfWChDAk.js → rem-batch-executor-TSYG7oVi.js} +1 -1
- package/dist/{rem-trigger-B1P5_RqV.js → rem-trigger-i_E8I9lv.js} +93 -154
- package/dist/{retriever-DdikFSDC.d.ts → retriever-6ybsoVuY.d.ts} +14 -24
- package/dist/{retriever-CpyZs2ND.js → retriever-Dnjl_FHu.js} +87 -157
- package/dist/{runtime-audit-log-BVOxzkh7.d.ts → runtime-audit-log-DWpWmCx5.d.ts} +1 -1
- package/dist/{server-DOL3D6bb.js → server-DsaVeSaM.js} +4 -4
- package/dist/sidecar/main.js +2 -2
- package/dist/sno-station-mem-runtime-dependencies-DtKDYdsh.d.ts +31 -0
- package/dist/{sno-station-mem-runtime-dependencies-DZe3z4RY.js → sno-station-mem-runtime-dependencies-zzcjHD_N.js} +6 -6
- package/dist/{store-DY_rWx__.js → store-COwW7mIh.js} +1 -1
- package/dist/{store-DraRJ-HI.d.ts → store-HyzTUvwj.d.ts} +1 -1
- package/dist/{strategy-hook-runner-DH7OEQrH.d.ts → strategy-hook-runner-B_m1L5CB.d.ts} +7 -7
- package/dist/{strategy-hook-runner-CltVTtzk.js → strategy-hook-runner-CALbWcys.js} +1 -1
- package/dist/{types-DZGL4QXi.d.ts → types-Dm_XhSne.d.ts} +1 -1
- package/package.json +1 -1
- package/settings.default.json +0 -4
- package/dist/memory-tool-dependencies-Bl11T6Xm.d.ts +0 -14
- package/dist/paths-B5y-npWs.d.ts +0 -1
- package/dist/sno-station-mem-runtime-dependencies-DgAm7WqA.d.ts +0 -31
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { CHUNKING_VERSION, DEFAULT_BM25_WEIGHT, DEFAULT_RECALL_LIFECYCLE,
|
|
1
|
+
import { CHUNKING_VERSION, DEFAULT_BM25_WEIGHT, DEFAULT_RECALL_LIFECYCLE, 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
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 { a as memoryOperationSignal } from "./operation-cancellation-QcwC4mDX.js";
|
|
7
|
-
import { classifyLlmFailure } from "./internal/model/llm-failure.js";
|
|
8
7
|
import { appendQaTrace, computeConfigHash, isTraceEnabled } from "./internal/engine/eval/trace.js";
|
|
9
8
|
import { computeEffectiveHalfLife, parseAccessMetadata } from "./internal/engine/retrieval/access-tracker.js";
|
|
10
9
|
import { createLogger as createLogger$1, currentLogContext, privateLogReference, withLogContext } from "@snoai/utils/logger";
|
|
@@ -219,9 +218,7 @@ const DEFAULT_RETRIEVAL_CONFIG = {
|
|
|
219
218
|
recencyWeight: RECENCY_WEIGHT,
|
|
220
219
|
temporalExpiry: false,
|
|
221
220
|
temporalDecay: true,
|
|
222
|
-
rerankModel: DEFAULT_RERANK_MODEL,
|
|
223
221
|
rerankTimeoutMs: DEFAULT_RERANK_TIMEOUT_MS,
|
|
224
|
-
rerankProvider: "voyage",
|
|
225
222
|
lengthNormAnchor: 0,
|
|
226
223
|
hardMinScore: 0,
|
|
227
224
|
timeDecayHalfLifeDays: 60,
|
|
@@ -244,12 +241,10 @@ const DEFAULT_RETRIEVAL_CONFIG = {
|
|
|
244
241
|
*
|
|
245
242
|
* - `missing_api_key`: cross-encoder configured but no rerankApiKey set;
|
|
246
243
|
* call routes through the lightweight cosine path instead.
|
|
247
|
-
* - `no_endpoint`:
|
|
248
|
-
*
|
|
249
|
-
* - `
|
|
250
|
-
*
|
|
251
|
-
* - `invalid_response`: provider HTTP 2xx but response shape did not parse.
|
|
252
|
-
* - `timeout`: the per-call AbortSignal fired before the provider responded.
|
|
244
|
+
* - `no_endpoint`: no reranker address (`rerankEndpoint`) was set; rerank was skipped.
|
|
245
|
+
* - `http_error`: the reranker responded with a non-OK status.
|
|
246
|
+
* - `invalid_response`: the reranker answered HTTP 2xx but the response shape did not parse.
|
|
247
|
+
* - `timeout`: the per-call AbortSignal fired before the reranker responded.
|
|
253
248
|
* - `request_error`: any other thrown error inside the fetch path.
|
|
254
249
|
* - `query_over_window`: the query alone fills the reranker's per-pair token window, so no
|
|
255
250
|
* document could be sent with it. Nothing was requested.
|
|
@@ -554,8 +549,7 @@ Object.assign(MemoryRetriever.prototype, {
|
|
|
554
549
|
this.throwIfAborted(context);
|
|
555
550
|
const rerankStageMetadata = rerankOutcome.fallback ? {
|
|
556
551
|
...rerankOutcome.stats,
|
|
557
|
-
rerankFallbackReason: rerankOutcome.fallback.reason
|
|
558
|
-
rerankFallbackProvider: rerankOutcome.fallback.provider
|
|
552
|
+
rerankFallbackReason: rerankOutcome.fallback.reason
|
|
559
553
|
} : rerankOutcome.stats;
|
|
560
554
|
trace?.endStage(fused.map((r) => r.entry.id), fused.map((r) => r.score), rerankStageMetadata);
|
|
561
555
|
fused = this.applyScoringPipeline(fused, trace, context.limit);
|
|
@@ -627,100 +621,31 @@ Object.assign(MemoryRetriever.prototype, {
|
|
|
627
621
|
});
|
|
628
622
|
//#endregion
|
|
629
623
|
//#region src/engine/retrieval/retrieval-rerank-provider.ts
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
}
|
|
643
|
-
|
|
644
|
-
switch (provider) {
|
|
645
|
-
case "tei":
|
|
646
|
-
case "sno-gpu": return {
|
|
647
|
-
headers: {
|
|
648
|
-
"Content-Type": "application/json",
|
|
649
|
-
Authorization: `Bearer ${apiKey}`,
|
|
650
|
-
...provider === "sno-gpu" ? {
|
|
651
|
-
"X-Sno-Source": "sno-station",
|
|
652
|
-
"X-Sno-Workload": "station-rerank"
|
|
653
|
-
} : {}
|
|
654
|
-
},
|
|
655
|
-
body: {
|
|
656
|
-
query,
|
|
657
|
-
texts: candidates,
|
|
658
|
-
raw_scores: true
|
|
659
|
-
}
|
|
660
|
-
};
|
|
661
|
-
case "dashscope": return {
|
|
662
|
-
headers: {
|
|
663
|
-
"Content-Type": "application/json",
|
|
664
|
-
Authorization: `Bearer ${apiKey}`
|
|
665
|
-
},
|
|
666
|
-
body: {
|
|
667
|
-
model,
|
|
668
|
-
input: {
|
|
669
|
-
query,
|
|
670
|
-
documents: candidates
|
|
671
|
-
}
|
|
672
|
-
}
|
|
673
|
-
};
|
|
674
|
-
case "pinecone": return {
|
|
675
|
-
headers: {
|
|
676
|
-
"Content-Type": "application/json",
|
|
677
|
-
"Api-Key": apiKey,
|
|
678
|
-
"X-Pinecone-API-Version": "2024-10"
|
|
679
|
-
},
|
|
680
|
-
body: {
|
|
681
|
-
model,
|
|
682
|
-
query,
|
|
683
|
-
documents: candidates.map((text) => ({ text })),
|
|
684
|
-
top_n: topN,
|
|
685
|
-
rank_fields: ["text"]
|
|
686
|
-
}
|
|
687
|
-
};
|
|
688
|
-
case "voyage": return {
|
|
689
|
-
headers: {
|
|
690
|
-
"Content-Type": "application/json",
|
|
691
|
-
Authorization: `Bearer ${apiKey}`
|
|
692
|
-
},
|
|
693
|
-
body: {
|
|
694
|
-
model,
|
|
695
|
-
query,
|
|
696
|
-
documents: candidates,
|
|
697
|
-
top_k: topN
|
|
698
|
-
}
|
|
699
|
-
};
|
|
700
|
-
default: return {
|
|
701
|
-
headers: {
|
|
702
|
-
"Content-Type": "application/json",
|
|
703
|
-
Authorization: `Bearer ${apiKey}`
|
|
704
|
-
},
|
|
705
|
-
body: {
|
|
706
|
-
model,
|
|
707
|
-
query,
|
|
708
|
-
documents: candidates,
|
|
709
|
-
top_n: topN
|
|
710
|
-
}
|
|
711
|
-
};
|
|
712
|
-
}
|
|
624
|
+
function buildRerankRequest(apiKey, query, candidates) {
|
|
625
|
+
return {
|
|
626
|
+
headers: {
|
|
627
|
+
"Content-Type": "application/json",
|
|
628
|
+
Authorization: `Bearer ${apiKey}`,
|
|
629
|
+
"X-Sno-Source": "sno-station",
|
|
630
|
+
"X-Sno-Workload": "station-rerank"
|
|
631
|
+
},
|
|
632
|
+
body: {
|
|
633
|
+
query,
|
|
634
|
+
texts: candidates,
|
|
635
|
+
raw_scores: true
|
|
636
|
+
}
|
|
637
|
+
};
|
|
713
638
|
}
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
const parseItems = (items
|
|
639
|
+
/** Sno's reranker answers a list of `{index, score}`, bare or under `results` / `data`. */
|
|
640
|
+
function parseRerankResponse(data) {
|
|
641
|
+
const parseItems = (items) => {
|
|
717
642
|
if (!Array.isArray(items)) return void 0;
|
|
718
643
|
const parsed = [];
|
|
719
644
|
for (const raw of items) {
|
|
720
645
|
const index = typeof raw?.index === "number" ? raw.index : Number(raw?.index);
|
|
721
646
|
if (!Number.isFinite(index)) continue;
|
|
722
647
|
let score;
|
|
723
|
-
for (const key of
|
|
648
|
+
for (const key of ["score", "relevance_score"]) {
|
|
724
649
|
const value = raw?.[key];
|
|
725
650
|
const n = typeof value === "number" ? value : Number(value);
|
|
726
651
|
if (Number.isFinite(n)) {
|
|
@@ -737,18 +662,7 @@ function parseRerankResponse(provider, data) {
|
|
|
737
662
|
return parsed.length > 0 ? parsed : void 0;
|
|
738
663
|
};
|
|
739
664
|
const objectData = data && typeof data === "object" && !Array.isArray(data) ? data : void 0;
|
|
740
|
-
|
|
741
|
-
case "tei":
|
|
742
|
-
case "sno-gpu": return parseItems(data, ["score", "relevance_score"]) ?? parseItems(objectData?.results, ["score", "relevance_score"]) ?? parseItems(objectData?.data, ["score", "relevance_score"]);
|
|
743
|
-
case "dashscope": {
|
|
744
|
-
const output = objectData?.output;
|
|
745
|
-
if (output) return parseItems(output.results, ["relevance_score", "score"]);
|
|
746
|
-
return parseItems(objectData?.results, ["relevance_score", "score"]);
|
|
747
|
-
}
|
|
748
|
-
case "pinecone": return parseItems(objectData?.data, ["score", "relevance_score"]) ?? parseItems(objectData?.results, ["score", "relevance_score"]);
|
|
749
|
-
case "voyage": return parseItems(objectData?.data, ["relevance_score", "score"]) ?? parseItems(objectData?.results, ["relevance_score", "score"]);
|
|
750
|
-
default: return parseItems(objectData?.results, ["relevance_score", "score"]) ?? parseItems(objectData?.data, ["relevance_score", "score"]);
|
|
751
|
-
}
|
|
665
|
+
return parseItems(data) ?? parseItems(objectData?.results) ?? parseItems(objectData?.data);
|
|
752
666
|
}
|
|
753
667
|
//#endregion
|
|
754
668
|
//#region src/engine/retrieval/retriever-rerank.ts
|
|
@@ -816,11 +730,9 @@ async function fetchRerankWithRetry(send, stop) {
|
|
|
816
730
|
for (let attempt = 1; attempt <= RERANK_TRANSIENT_ATTEMPTS; attempt += 1) {
|
|
817
731
|
let retryDelayMs = RERANK_TRANSIENT_BACKOFF_MS * attempt;
|
|
818
732
|
try {
|
|
819
|
-
const
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
data: await response.json()
|
|
823
|
-
};
|
|
733
|
+
const reply = await send();
|
|
734
|
+
const { response } = reply;
|
|
735
|
+
if (response.ok) return reply;
|
|
824
736
|
if (!RERANK_TRANSIENT_STATUSES.has(response.status) || attempt === RERANK_TRANSIENT_ATTEMPTS) return { response };
|
|
825
737
|
if (response.status === 429) {
|
|
826
738
|
const retryAfter = response.headers.get("retry-after");
|
|
@@ -852,13 +764,12 @@ Object.assign(MemoryRetriever.prototype, {
|
|
|
852
764
|
async rerank(query, candidates, queryVector, options) {
|
|
853
765
|
if (candidates.length === 0) return { candidates };
|
|
854
766
|
if (this.config.rerank === "none") return { candidates };
|
|
855
|
-
const
|
|
856
|
-
|
|
857
|
-
if (this.config.rerank === "cross-encoder" && !this.config.rerankApiKey) throw new RetrievalError(`rerank "cross-encoder" requires retrieval.rerankApiKey (provider: ${provider}); set the key, or set retrieval.rerank to "lightweight" to choose the local ranker`);
|
|
767
|
+
const unranked = () => this.rerankLightweight(candidates, queryVector);
|
|
768
|
+
if (this.config.rerank === "cross-encoder" && !this.config.rerankApiKey) throw new RetrievalError("rerank \"cross-encoder\" requires retrieval.rerankApiKey; set the key, or set retrieval.rerank to \"lightweight\" to choose the local ranker");
|
|
858
769
|
if (this.config.rerank === "lightweight" || !this.config.rerankApiKey) return { candidates: this.rerankLightweight(candidates, queryVector) };
|
|
859
|
-
const rerankEndpoint = this.config.rerankEndpoint
|
|
770
|
+
const rerankEndpoint = this.config.rerankEndpoint;
|
|
860
771
|
if (!rerankEndpoint) {
|
|
861
|
-
log.warn("rerank skipped: no
|
|
772
|
+
log.warn("rerank skipped: no reranker address", {}, {
|
|
862
773
|
event_name: "memory.retriever_rerank.diagnostic",
|
|
863
774
|
file: "packages/memory/src/engine/retrieval/retriever-rerank.ts",
|
|
864
775
|
function: "rerank",
|
|
@@ -866,15 +777,12 @@ Object.assign(MemoryRetriever.prototype, {
|
|
|
866
777
|
});
|
|
867
778
|
return {
|
|
868
779
|
candidates: unranked(),
|
|
869
|
-
fallback: {
|
|
870
|
-
reason: "no_endpoint",
|
|
871
|
-
provider
|
|
872
|
-
}
|
|
780
|
+
fallback: { reason: "no_endpoint" }
|
|
873
781
|
};
|
|
874
782
|
}
|
|
875
783
|
const rerankTimeoutMs = this.config.rerankTimeoutMs ?? 15e3;
|
|
876
|
-
const
|
|
877
|
-
const stepStop =
|
|
784
|
+
const stepBudget = AbortSignal.timeout(Math.max(0, Math.floor(options?.deadlineAt === void 0 ? rerankTimeoutMs : options.deadlineAt - Date.now())));
|
|
785
|
+
const stepStop = options?.signal ? AbortSignal.any([options.signal, stepBudget]) : stepBudget;
|
|
878
786
|
const rerankApiKey = this.config.rerankApiKey;
|
|
879
787
|
const maxCandidates = this.config.rerankMaxCandidates;
|
|
880
788
|
const overCap = maxCandidates !== void 0 && candidates.length > maxCandidates;
|
|
@@ -896,10 +804,7 @@ Object.assign(MemoryRetriever.prototype, {
|
|
|
896
804
|
});
|
|
897
805
|
return {
|
|
898
806
|
candidates: unranked(),
|
|
899
|
-
fallback: {
|
|
900
|
-
reason: "query_over_window",
|
|
901
|
-
provider
|
|
902
|
-
}
|
|
807
|
+
fallback: { reason: "query_over_window" }
|
|
903
808
|
};
|
|
904
809
|
}
|
|
905
810
|
let truncatedCandidates = 0;
|
|
@@ -922,20 +827,54 @@ Object.assign(MemoryRetriever.prototype, {
|
|
|
922
827
|
const runBatch = async (start) => {
|
|
923
828
|
let batchTexts = rerankTexts.slice(start, start + batchSize);
|
|
924
829
|
for (let pass = 0;; pass += 1) {
|
|
925
|
-
const { headers, body } = buildRerankRequest(
|
|
926
|
-
const
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
830
|
+
const { headers, body } = buildRerankRequest(rerankApiKey, query, batchTexts);
|
|
831
|
+
const sendAttempt = async () => {
|
|
832
|
+
const clientRequestId = randomUUID();
|
|
833
|
+
const attemptStarted = performance.now();
|
|
834
|
+
let outcome = "failed";
|
|
835
|
+
let statusCode;
|
|
836
|
+
try {
|
|
837
|
+
const attempt = await fetch(rerankEndpoint, {
|
|
838
|
+
method: "POST",
|
|
839
|
+
headers: {
|
|
840
|
+
...headers,
|
|
841
|
+
"X-Request-ID": clientRequestId
|
|
842
|
+
},
|
|
843
|
+
body: JSON.stringify(body),
|
|
844
|
+
signal: AbortSignal.any([AbortSignal.timeout(rerankTimeoutMs), stepStop])
|
|
845
|
+
});
|
|
846
|
+
statusCode = attempt.status;
|
|
847
|
+
if (!attempt.ok) {
|
|
848
|
+
outcome = "http_error";
|
|
849
|
+
return { response: attempt };
|
|
850
|
+
}
|
|
851
|
+
const data = await attempt.json();
|
|
852
|
+
outcome = "success";
|
|
853
|
+
return {
|
|
854
|
+
response: attempt,
|
|
855
|
+
data
|
|
856
|
+
};
|
|
857
|
+
} catch (error) {
|
|
858
|
+
outcome = isRerankTimeout(error) ? "timeout" : "failed";
|
|
859
|
+
throw error;
|
|
860
|
+
} finally {
|
|
861
|
+
log.info("Rerank request completed", {
|
|
862
|
+
outcome,
|
|
863
|
+
status_code: statusCode ?? "unavailable",
|
|
864
|
+
duration_ms: performance.now() - attemptStarted,
|
|
865
|
+
texts_sent: batchTexts.length,
|
|
866
|
+
client_request_id: clientRequestId
|
|
867
|
+
}, {
|
|
868
|
+
event_name: "rerank.request.completed",
|
|
869
|
+
file: "packages/memory/src/engine/retrieval/retriever-rerank.ts",
|
|
870
|
+
function: "runBatch",
|
|
871
|
+
site_id: "rerank.request.completed"
|
|
872
|
+
});
|
|
873
|
+
}
|
|
874
|
+
};
|
|
875
|
+
const { response, data } = await fetchRerankWithRetry(sendAttempt, stepStop);
|
|
935
876
|
if (!response.ok) {
|
|
936
877
|
const retryAfter = response.headers.get("retry-after");
|
|
937
|
-
const fatalError = buildRerankHttpError(response.status);
|
|
938
|
-
if (fatalError && provider !== "sno-gpu") throw fatalError;
|
|
939
878
|
const errorBody = await response.text().catch(() => "<unreadable body>");
|
|
940
879
|
const refusal = pass === 0 ? parseOverWindowRefusal(errorBody) : void 0;
|
|
941
880
|
if (refusal) {
|
|
@@ -977,10 +916,9 @@ Object.assign(MemoryRetriever.prototype, {
|
|
|
977
916
|
});
|
|
978
917
|
return "http_error";
|
|
979
918
|
}
|
|
980
|
-
const parsed = parseRerankResponse(
|
|
919
|
+
const parsed = parseRerankResponse(data);
|
|
981
920
|
if (!parsed) {
|
|
982
921
|
log.warn("rerank API returned unparseable response", {
|
|
983
|
-
provider,
|
|
984
922
|
endpoint_hash: createHash("sha256").update(rerankEndpoint).digest("hex"),
|
|
985
923
|
batchStart: start
|
|
986
924
|
}, {
|
|
@@ -1012,10 +950,7 @@ Object.assign(MemoryRetriever.prototype, {
|
|
|
1012
950
|
for (const outcome of settled) if (outcome.status === "rejected") throw outcome.reason;
|
|
1013
951
|
for (const outcome of settled) if (outcome.status === "fulfilled" && typeof outcome.value === "string") return {
|
|
1014
952
|
candidates: unranked(),
|
|
1015
|
-
fallback: {
|
|
1016
|
-
reason: outcome.value,
|
|
1017
|
-
provider
|
|
1018
|
-
}
|
|
953
|
+
fallback: { reason: outcome.value }
|
|
1019
954
|
};
|
|
1020
955
|
for (const outcome of settled) if (outcome.status === "fulfilled" && typeof outcome.value !== "string") items.push(...outcome.value);
|
|
1021
956
|
}
|
|
@@ -1030,8 +965,7 @@ Object.assign(MemoryRetriever.prototype, {
|
|
|
1030
965
|
const candidate = toRerank[item.index];
|
|
1031
966
|
if (!candidate) continue;
|
|
1032
967
|
const sourceScore = this.getRerankSourceScore(candidate);
|
|
1033
|
-
|
|
1034
|
-
if (provider === "tei" || provider === "sno-gpu") crossScore = 1 / (1 + Math.exp(-item.score));
|
|
968
|
+
const crossScore = 1 / (1 + Math.exp(-item.score));
|
|
1035
969
|
const blendedScore = clamp01(crossScore * blendCross + sourceScore * blendVector, 0);
|
|
1036
970
|
reranked.push({
|
|
1037
971
|
...candidate,
|
|
@@ -1050,8 +984,7 @@ Object.assign(MemoryRetriever.prototype, {
|
|
|
1050
984
|
log.debug("reranked", {
|
|
1051
985
|
totalCandidateCount: candidates.length,
|
|
1052
986
|
sentToRerankCount: toRerank.length,
|
|
1053
|
-
returnedCount: reranked.length
|
|
1054
|
-
provider
|
|
987
|
+
returnedCount: reranked.length
|
|
1055
988
|
}, {
|
|
1056
989
|
event_name: "memory.retriever_rerank.diagnostic",
|
|
1057
990
|
file: "packages/memory/src/engine/retrieval/retriever-rerank.ts",
|
|
@@ -1094,10 +1027,7 @@ Object.assign(MemoryRetriever.prototype, {
|
|
|
1094
1027
|
}
|
|
1095
1028
|
return {
|
|
1096
1029
|
candidates: unranked(),
|
|
1097
|
-
fallback: {
|
|
1098
|
-
reason,
|
|
1099
|
-
provider
|
|
1100
|
-
}
|
|
1030
|
+
fallback: { reason }
|
|
1101
1031
|
};
|
|
1102
1032
|
}
|
|
1103
1033
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./paths-
|
|
1
|
+
import "./paths-DnNN0G1t.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,5 +1,5 @@
|
|
|
1
|
-
import { At as getAuditPath, Dt as appendAuditEntryStrict, K as REM_BUILT_OPERATION_TYPES, Ot as compactAuditLog, Pt as readJsonlLines, bt as ModelCallRefusedError, d as RemJobStore, f as parseRemJobStats, n as remNeedsHost, q as parseRemOperationType } from "./rem-trigger-
|
|
2
|
-
import {
|
|
1
|
+
import { At as getAuditPath, Dt as appendAuditEntryStrict, K as REM_BUILT_OPERATION_TYPES, Ot as compactAuditLog, Pt as readJsonlLines, bt as ModelCallRefusedError, d as RemJobStore, f as parseRemJobStats, n as remNeedsHost, q as parseRemOperationType } from "./rem-trigger-i_E8I9lv.js";
|
|
2
|
+
import { Ar as MEMORY_DEFAULT_SKIN_ID, C as getSnoStationMemStateDir, Ir as memoryMethod, Nr as MEMORY_ROUTES, Pr 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, jr as MEMORY_ERROR_STATUS, 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-C1X5rsAx.js";
|
|
3
3
|
import { t as ContractError } from "./error-D-wb-rZw.js";
|
|
4
4
|
import { setImmediate } from "node:timers/promises";
|
|
5
5
|
import { createLogger, currentLogContext, effectiveLogLevel, emitDiagnostic } from "@snoai/utils/logger";
|
|
@@ -335,7 +335,7 @@ async function startOwnedRemSidecar() {
|
|
|
335
335
|
async open() {
|
|
336
336
|
if (currentMemory) return currentMemory;
|
|
337
337
|
if (settingsError) throw settingsError;
|
|
338
|
-
openingMemory ??= import("./memory-runtime-
|
|
338
|
+
openingMemory ??= import("./memory-runtime-CCPRiAk9.js").then((module) => module.MemoryRuntimePool.open()).then((pool) => {
|
|
339
339
|
currentMemory = pool;
|
|
340
340
|
if (stopping) pool.stopTimers();
|
|
341
341
|
return pool;
|
|
@@ -730,7 +730,7 @@ async function runChassisJob(store, journal, waveId, holdMs, runtime) {
|
|
|
730
730
|
cleanRefusalReasons.push(reason);
|
|
731
731
|
await appendChassisRefusal(journal, queued, operation, "refused", reason);
|
|
732
732
|
}
|
|
733
|
-
const { runRemProductionOrderedWave } = await import("./rem-batch-executor-
|
|
733
|
+
const { runRemProductionOrderedWave } = await import("./rem-batch-executor-TSYG7oVi.js");
|
|
734
734
|
const result = enabledOperations.length === 0 ? {
|
|
735
735
|
decision: "allow",
|
|
736
736
|
reasonCode: null,
|
package/dist/sidecar/main.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Mr as MEMORY_RECONNECT_INTERVAL_MS, m as isRemTraceEnabled, p as getRemTraceLogPath, v as SettingsUnavailableError } from "../config-C1X5rsAx.js";
|
|
2
2
|
import { setTimeout } from "node:timers/promises";
|
|
3
3
|
import { addLogFileTarget, closeLogger, createLogger } from "@snoai/utils/logger";
|
|
4
4
|
//#region src/sidecar/main.ts
|
|
@@ -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-DsaVeSaM.js");
|
|
10
10
|
let sidecar;
|
|
11
11
|
for (let attempt = 1; !sidecar; attempt++) try {
|
|
12
12
|
sidecar = await startRemSidecar();
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import "./types-Dm_XhSne.js";
|
|
2
|
+
import "./index-8CfO_-6T.js";
|
|
3
|
+
import "./adapter-BMx-VcJy.js";
|
|
4
|
+
import "./embedding-provider-client-vynZMuit.js";
|
|
5
|
+
import "./retriever-6ybsoVuY.js";
|
|
6
|
+
import "./connection-3IVXpuPE.js";
|
|
7
|
+
import "./sqlite-runtime-L_ywirTm.js";
|
|
8
|
+
import "./store-HyzTUvwj.js";
|
|
9
|
+
import "./access-tracker-DT04huAG.js";
|
|
10
|
+
import "./memory-tier-promoter-Cf1OdoZK.js";
|
|
11
|
+
import "./capture-policy-detector-B8sqRTlB.js";
|
|
12
|
+
import "./memory-temporality-classifier-DL14kjtv.js";
|
|
13
|
+
import "./runtime-audit-log-DWpWmCx5.js";
|
|
14
|
+
import "./atomic-memory-extraction-_OEsSJbC.js";
|
|
15
|
+
import "./llm-client-BoClMktv.js";
|
|
16
|
+
import "./memory-snapshot-DADY3InD.js";
|
|
17
|
+
import "./observable-embedder-CPyX9y7c.js";
|
|
18
|
+
import "./observable-llm-client-C8ndPJck.js";
|
|
19
|
+
import "./observable-memory-store-DhOfgjkU.js";
|
|
20
|
+
import "./observable-retriever-CUlmCFy5.js";
|
|
21
|
+
import "./reflection-embedded-generator-ve1PhgUY.js";
|
|
22
|
+
import "./strategy-hook-runner-B_m1L5CB.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 };
|
|
@@ -4,12 +4,12 @@ import "./internal/engine/shared/types.js";
|
|
|
4
4
|
import "./internal/engine/security/redact.js";
|
|
5
5
|
import "./internal/engine/shared/utils.js";
|
|
6
6
|
import "./runtime-audit-log-DK6xAYxh.js";
|
|
7
|
-
import "./llm-client-
|
|
7
|
+
import "./llm-client-DDdUjYWS.js";
|
|
8
8
|
import "./capture-policy-detector-DaMfy9CZ.js";
|
|
9
9
|
import "./ambient-learning-text-normalizer-CxjATmMp.js";
|
|
10
|
-
import "./memory-temporality-classifier-
|
|
10
|
+
import "./memory-temporality-classifier-BwBKEQbL.js";
|
|
11
11
|
import "./scopes-a4Kly9n7.js";
|
|
12
|
-
import "./atomic-memory-extraction-
|
|
12
|
+
import "./atomic-memory-extraction-De86y7O-.js";
|
|
13
13
|
import "./internal/store/sqlite-runtime.js";
|
|
14
14
|
import "./connection-PQcq3TPO.js";
|
|
15
15
|
import "./internal/store/data-paths.js";
|
|
@@ -19,12 +19,12 @@ 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-Dnjl_FHu.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-DEsiCs7o.js";
|
|
26
|
-
import "./reflection-embedded-generator-
|
|
27
|
-
import "./strategy-hook-runner-
|
|
26
|
+
import "./reflection-embedded-generator-DV-NkeU-.js";
|
|
27
|
+
import "./strategy-hook-runner-CALbWcys.js";
|
|
28
28
|
import "./data-bootstrap-P8sie9WA.js";
|
|
29
29
|
import "@snoai/sqlite-crypto";
|
|
30
30
|
export {};
|
|
@@ -10,7 +10,7 @@ import { t as checkMemoryOperation } from "./operation-cancellation-QcwC4mDX.js"
|
|
|
10
10
|
import { u as runWithMemoryAudit } from "./runtime-audit-log-DK6xAYxh.js";
|
|
11
11
|
import { getSnoStationMemStateDir } from "./internal/contract/profile.js";
|
|
12
12
|
import "./internal/engine/extraction/extraction-text-sanitizer.js";
|
|
13
|
-
import "./memory-temporality-classifier-
|
|
13
|
+
import "./memory-temporality-classifier-BwBKEQbL.js";
|
|
14
14
|
import { a as readMemorySourceOrder, i as readCorrectionMoment, n as compareMemoryRetirementOrder, o as readMemorySourceOrderOrOldest, r as compareMemorySourceOrder, s as sameSourceTurn, t as closeMemoryRow } from "./memory-source-order-YMRoeDLd.js";
|
|
15
15
|
import { REM_UPDATE_LOCALES, deriveRemWriteIdentity, getRemUpdateLocaleResource, writeRemTwoFacetTransaction } from "./internal/engine/rem/index.js";
|
|
16
16
|
import { n as state_vocabulary_default, r as attribute_dictionary_default, t as relations } from "./relation-dictionary-Cev1kyLe.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-D0bLwzyF.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
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as PluginConfig } from "./plugin-config-schema-
|
|
2
|
-
import "./types-
|
|
3
|
-
import "./reflection-embedded-generator-
|
|
4
|
-
import { t as ReflectionLifecycleParams } from "./reflection-lifecycle-hooks-
|
|
5
|
-
import { t as ReflectionInjectionParams } from "./reflection-injection-hooks-
|
|
6
|
-
import { t as ReflectionDeps } from "./reflection-deps-
|
|
7
|
-
import { t as ReflectionCommandParams } from "./reflection-command-hooks-
|
|
1
|
+
import { t as PluginConfig } from "./plugin-config-schema-BPg-ppSt.js";
|
|
2
|
+
import "./types-Dm_XhSne.js";
|
|
3
|
+
import "./reflection-embedded-generator-ve1PhgUY.js";
|
|
4
|
+
import { t as ReflectionLifecycleParams } from "./reflection-lifecycle-hooks-CFGYh_8m.js";
|
|
5
|
+
import { t as ReflectionInjectionParams } from "./reflection-injection-hooks-CphBCA9F.js";
|
|
6
|
+
import { t as ReflectionDeps } from "./reflection-deps-BYkAaKxD.js";
|
|
7
|
+
import { t as ReflectionCommandParams } from "./reflection-command-hooks-mCOmD8b6.js";
|
|
8
8
|
//#region src/engine/reflection/strategy-hook-runner.d.ts
|
|
9
9
|
declare function createReflectionStrategyState(config: PluginConfig, deps: ReflectionDeps): ReflectionStrategyState;
|
|
10
10
|
type ReflectionStrategyState = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DEFAULT_REFLECTION_SESSION_TTL_MS } from "./internal/config/index.js";
|
|
2
2
|
import { setLruEntry, touchLruEntry } from "./internal/engine/shared/lru.js";
|
|
3
3
|
import { n as createErrorSignalTracker } from "./error-signals-lMH2uAdV.js";
|
|
4
|
-
import { i as pruneReflectionState } from "./reflection-embedded-generator-
|
|
4
|
+
import { i as pruneReflectionState } from "./reflection-embedded-generator-DV-NkeU-.js";
|
|
5
5
|
import { a as loadAgentReflectionSlicesFromEntries } from "./memory-entry-projector-DHo8jH10.js";
|
|
6
6
|
import { createLogger } from "@snoai/utils/logger";
|
|
7
7
|
//#region src/engine/reflection/reflection-slice-loader.ts
|
package/package.json
CHANGED
package/settings.default.json
CHANGED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import "./types-DZGL4QXi.js";
|
|
2
|
-
import "./index-Pb9LrHgL.js";
|
|
3
|
-
import "./embedding-provider-client-vynZMuit.js";
|
|
4
|
-
import "./retriever-DdikFSDC.js";
|
|
5
|
-
import "./memory-metadata-codec-BQ8tBY-g.js";
|
|
6
|
-
import "./store-DraRJ-HI.js";
|
|
7
|
-
import "./capture-policy-detector-C7MA4jSr.js";
|
|
8
|
-
import "./memory-temporality-classifier-LByFBiFJ.js";
|
|
9
|
-
import "./runtime-audit-log-BVOxzkh7.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 };
|
package/dist/paths-B5y-npWs.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./profile-BMvnRqf5.js";
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import "./types-DZGL4QXi.js";
|
|
2
|
-
import "./index-Pb9LrHgL.js";
|
|
3
|
-
import "./adapter-Cxyzdq6H.js";
|
|
4
|
-
import "./embedding-provider-client-vynZMuit.js";
|
|
5
|
-
import "./retriever-DdikFSDC.js";
|
|
6
|
-
import "./connection-3IVXpuPE.js";
|
|
7
|
-
import "./sqlite-runtime-L_ywirTm.js";
|
|
8
|
-
import "./store-DraRJ-HI.js";
|
|
9
|
-
import "./access-tracker-CglGg8uS.js";
|
|
10
|
-
import "./memory-tier-promoter-CSGa4LBH.js";
|
|
11
|
-
import "./capture-policy-detector-C7MA4jSr.js";
|
|
12
|
-
import "./memory-temporality-classifier-LByFBiFJ.js";
|
|
13
|
-
import "./runtime-audit-log-BVOxzkh7.js";
|
|
14
|
-
import "./atomic-memory-extraction-DO4yTfch.js";
|
|
15
|
-
import "./llm-client-B7LSFL_m.js";
|
|
16
|
-
import "./memory-snapshot-B8mQbWR-.js";
|
|
17
|
-
import "./observable-embedder-Da0teBqx.js";
|
|
18
|
-
import "./observable-llm-client-i0sp0veF.js";
|
|
19
|
-
import "./observable-memory-store-CS87pitJ.js";
|
|
20
|
-
import "./observable-retriever-Bhfg9DsZ.js";
|
|
21
|
-
import "./reflection-embedded-generator-CF-NbuPS.js";
|
|
22
|
-
import "./strategy-hook-runner-DH7OEQrH.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 };
|