@remnic/core 10.0.162 → 10.0.164
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/dist/access-admin-ops-surface.js +39 -39
- package/dist/access-cli.js +39 -39
- package/dist/access-extraction-force-flush-preempt.js +39 -39
- package/dist/access-extraction-force-flush.js +39 -39
- package/dist/access-http-briefing.js +39 -39
- package/dist/access-http-query.js +39 -39
- package/dist/access-http.js +39 -39
- package/dist/access-identity-continuity-surface.js +39 -39
- package/dist/access-lcm-surface.js +39 -39
- package/dist/access-mcp.js +39 -39
- package/dist/access-observe-write-surface.js +39 -39
- package/dist/access-operations-batch.js +39 -39
- package/dist/access-operations.js +39 -39
- package/dist/access-recall-concurrency.js +39 -39
- package/dist/access-recall-diagnostics.js +2 -2
- package/dist/access-recall-response.js +39 -39
- package/dist/access-recall-surface.js +39 -39
- package/dist/access-service.js +39 -39
- package/dist/active-recall.js +3 -3
- package/dist/briefing.js +3 -3
- package/dist/causal-consolidation.js +4 -4
- package/dist/{chunk-D2EJNBZS.js → chunk-22VXXA67.js} +2 -2
- package/dist/{chunk-23ODHEVS.js → chunk-3QLAOYBL.js} +2 -2
- package/dist/{chunk-HG4OCRKD.js → chunk-4HKK5HUI.js} +2 -2
- package/dist/{chunk-6POF4N2J.js → chunk-4LPTSB5V.js} +2 -2
- package/dist/{chunk-6HGN4OEA.js → chunk-5D4NBANY.js} +2 -2
- package/dist/{chunk-6HGN4OEA.js.map → chunk-5D4NBANY.js.map} +1 -1
- package/dist/{chunk-FDR5YW6B.js → chunk-5LTXYM7D.js} +2 -2
- package/dist/{chunk-ZZZT6OR2.js → chunk-6ARSFTLD.js} +2 -2
- package/dist/{chunk-SC7GUUGO.js → chunk-6S4DM53Y.js} +3 -3
- package/dist/{chunk-ZVK6TWGF.js → chunk-ARJ3KCX4.js} +2 -2
- package/dist/{chunk-LW5MFJBC.js → chunk-AU6AEUFD.js} +2 -2
- package/dist/{chunk-A6E54ILI.js → chunk-DBVSU3HE.js} +8 -8
- package/dist/{chunk-PZSVAVQW.js → chunk-E5RJPLNL.js} +2 -2
- package/dist/{chunk-S3QTZMSD.js → chunk-EI2M2CFJ.js} +2 -2
- package/dist/{chunk-6RW6I6X4.js → chunk-FSI45NUK.js} +2 -2
- package/dist/{chunk-IF5YAXBY.js → chunk-IHOKB3L3.js} +34 -34
- package/dist/{chunk-IF5YAXBY.js.map → chunk-IHOKB3L3.js.map} +1 -1
- package/dist/{chunk-MATBXHXU.js → chunk-JJEQRSYU.js} +2 -2
- package/dist/{chunk-SHFN2RW5.js → chunk-JVIWVJ2A.js} +2 -2
- package/dist/{chunk-Q2WMKMMX.js → chunk-KR6PEAM4.js} +7 -7
- package/dist/{chunk-R4HZOXUY.js → chunk-L6BLTV4D.js} +2 -2
- package/dist/{chunk-2S3M2GLC.js → chunk-M7Q7Z6V5.js} +34 -1
- package/dist/chunk-M7Q7Z6V5.js.map +1 -0
- package/dist/{chunk-T4V3GVX3.js → chunk-OAGTKS73.js} +2 -2
- package/dist/{chunk-FEHCP2ZN.js → chunk-PCUDFWX5.js} +2 -2
- package/dist/{chunk-DQATNC34.js → chunk-QBREZ4QL.js} +2 -2
- package/dist/{chunk-WE7WPSUA.js → chunk-RDO6AMDL.js} +2 -2
- package/dist/{chunk-UGTLRFN4.js → chunk-RH6XWXMA.js} +3 -3
- package/dist/{chunk-QRGJLMH7.js → chunk-SBU5GDOT.js} +3 -3
- package/dist/{chunk-YCOHRQWO.js → chunk-SOGOHLWN.js} +1 -1
- package/dist/chunk-SOGOHLWN.js.map +1 -0
- package/dist/{chunk-SHLEP3HN.js → chunk-SRN5M4LQ.js} +3 -3
- package/dist/{chunk-JAPUF4X7.js → chunk-TFNZXOXK.js} +2 -2
- package/dist/{chunk-6CXSNIEP.js → chunk-UGQEJWR3.js} +2 -2
- package/dist/{chunk-QUC4S2D2.js → chunk-V4ASAWRP.js} +10 -2
- package/dist/chunk-V4ASAWRP.js.map +1 -0
- package/dist/{chunk-VEPXXXTO.js → chunk-V6M6N3EE.js} +2 -2
- package/dist/{chunk-QQPXWVRX.js → chunk-VXMWTRQX.js} +2 -2
- package/dist/{chunk-SMAXKFKS.js → chunk-WAJL65KW.js} +3 -3
- package/dist/{chunk-SOO75MET.js → chunk-WRAK5LLB.js} +2 -2
- package/dist/{chunk-IVZNNRBF.js → chunk-XE4UYWW3.js} +2 -2
- package/dist/{chunk-JGIRGWS6.js → chunk-YMC4AYJK.js} +2 -2
- package/dist/{chunk-D67DA4DI.js → chunk-YWPCDR3I.js} +2 -2
- package/dist/{chunk-UVEHXFSC.js → chunk-Z3SXC3MP.js} +2 -2
- package/dist/{chunk-NFL4LC22.js → chunk-ZRLTQ2Y7.js} +2 -2
- package/dist/cli.js +39 -39
- package/dist/coding/export-okf-codegraph.js +2 -2
- package/dist/compounding/engine.js +4 -4
- package/dist/config.js +3 -3
- package/dist/connectors/codex-materialize-runner.js +3 -3
- package/dist/connectors/index.js +3 -3
- package/dist/convergence-refresh.js +5 -5
- package/dist/corpus-watermark.js +5 -5
- package/dist/entity-retrieval.js +3 -3
- package/dist/explicit-capture.js +39 -39
- package/dist/extraction-error-classification.d.ts +23 -1
- package/dist/extraction-error-classification.d.ts.map +1 -1
- package/dist/extraction-error-classification.js +7 -1
- package/dist/extraction.d.ts.map +1 -1
- package/dist/extraction.js +5 -5
- package/dist/harmonic-retrieval.js +3 -3
- package/dist/index.js +39 -39
- package/dist/location/index.js +4 -4
- package/dist/maintenance/memory-governance.js +3 -3
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +3 -3
- package/dist/maintenance/rebuild-memory-projection-runner.js +5 -5
- package/dist/maintenance/rebuild-memory-projection.js +4 -4
- package/dist/namespaces/migrate.js +4 -4
- package/dist/namespaces/storage.js +3 -3
- package/dist/operator-doctor-corpus.js +6 -6
- package/dist/operator-toolkit.js +10 -10
- package/dist/orchestration/backlog-scheduler.js +40 -40
- package/dist/orchestration/buffer-drain-runner.js +40 -40
- package/dist/orchestration/maintenance.js +11 -11
- package/dist/orchestrator.js +39 -39
- package/dist/recall-explain-renderer.js +3 -3
- package/dist/recall-navigate-access.js +2 -2
- package/dist/recall-navigate-disclosure.js +2 -2
- package/dist/recall-navigate.js +2 -2
- package/dist/recall-navigation.js +39 -39
- package/dist/recall-xray-cli.js +4 -4
- package/dist/recall-xray-renderer.js +3 -3
- package/dist/recall-xray.js +2 -2
- package/dist/resume-bundles.js +4 -4
- package/dist/semantic-consolidation.js +4 -4
- package/dist/semantic-rule-promotion.js +3 -3
- package/dist/semantic-rule-verifier.js +3 -3
- package/dist/source-agent-qualifier.js +3 -3
- package/dist/standup/build.js +3 -3
- package/dist/storage.js +2 -2
- package/dist/transfer/export-okf.js +3 -3
- package/dist/types.d.ts +1 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +1 -1
- package/dist/verified-recall.js +3 -3
- package/dist/who-knows-cli.js +4 -4
- package/dist/who-knows.js +3 -3
- package/package.json +2 -2
- package/src/access-observe-replay-durability.test.ts +23 -3
- package/src/buffer-admission-idempotency.test.ts +1 -1
- package/src/buffer-ingress-invariant.test.ts +1 -1
- package/src/config.test.ts +3 -2
- package/src/config.ts +1 -1
- package/src/extraction-direct-input-too-large.test.ts +141 -0
- package/src/extraction-error-classification.ts +61 -1
- package/src/extraction-queue-concurrency-default.test.ts +107 -0
- package/src/extraction.ts +7 -1
- package/src/orchestration/extraction-queue-coordinator.ts +1 -1
- package/src/orchestrator-extraction-queue.test.ts +3 -3
- package/src/orchestrator-flush.test.ts +12 -12
- package/src/types.ts +1 -1
- package/dist/chunk-2S3M2GLC.js.map +0 -1
- package/dist/chunk-QUC4S2D2.js.map +0 -1
- package/dist/chunk-YCOHRQWO.js.map +0 -1
- /package/dist/{chunk-D2EJNBZS.js.map → chunk-22VXXA67.js.map} +0 -0
- /package/dist/{chunk-23ODHEVS.js.map → chunk-3QLAOYBL.js.map} +0 -0
- /package/dist/{chunk-HG4OCRKD.js.map → chunk-4HKK5HUI.js.map} +0 -0
- /package/dist/{chunk-6POF4N2J.js.map → chunk-4LPTSB5V.js.map} +0 -0
- /package/dist/{chunk-FDR5YW6B.js.map → chunk-5LTXYM7D.js.map} +0 -0
- /package/dist/{chunk-ZZZT6OR2.js.map → chunk-6ARSFTLD.js.map} +0 -0
- /package/dist/{chunk-SC7GUUGO.js.map → chunk-6S4DM53Y.js.map} +0 -0
- /package/dist/{chunk-ZVK6TWGF.js.map → chunk-ARJ3KCX4.js.map} +0 -0
- /package/dist/{chunk-LW5MFJBC.js.map → chunk-AU6AEUFD.js.map} +0 -0
- /package/dist/{chunk-A6E54ILI.js.map → chunk-DBVSU3HE.js.map} +0 -0
- /package/dist/{chunk-PZSVAVQW.js.map → chunk-E5RJPLNL.js.map} +0 -0
- /package/dist/{chunk-S3QTZMSD.js.map → chunk-EI2M2CFJ.js.map} +0 -0
- /package/dist/{chunk-6RW6I6X4.js.map → chunk-FSI45NUK.js.map} +0 -0
- /package/dist/{chunk-MATBXHXU.js.map → chunk-JJEQRSYU.js.map} +0 -0
- /package/dist/{chunk-SHFN2RW5.js.map → chunk-JVIWVJ2A.js.map} +0 -0
- /package/dist/{chunk-Q2WMKMMX.js.map → chunk-KR6PEAM4.js.map} +0 -0
- /package/dist/{chunk-R4HZOXUY.js.map → chunk-L6BLTV4D.js.map} +0 -0
- /package/dist/{chunk-T4V3GVX3.js.map → chunk-OAGTKS73.js.map} +0 -0
- /package/dist/{chunk-FEHCP2ZN.js.map → chunk-PCUDFWX5.js.map} +0 -0
- /package/dist/{chunk-DQATNC34.js.map → chunk-QBREZ4QL.js.map} +0 -0
- /package/dist/{chunk-WE7WPSUA.js.map → chunk-RDO6AMDL.js.map} +0 -0
- /package/dist/{chunk-UGTLRFN4.js.map → chunk-RH6XWXMA.js.map} +0 -0
- /package/dist/{chunk-QRGJLMH7.js.map → chunk-SBU5GDOT.js.map} +0 -0
- /package/dist/{chunk-SHLEP3HN.js.map → chunk-SRN5M4LQ.js.map} +0 -0
- /package/dist/{chunk-JAPUF4X7.js.map → chunk-TFNZXOXK.js.map} +0 -0
- /package/dist/{chunk-6CXSNIEP.js.map → chunk-UGQEJWR3.js.map} +0 -0
- /package/dist/{chunk-VEPXXXTO.js.map → chunk-V6M6N3EE.js.map} +0 -0
- /package/dist/{chunk-QQPXWVRX.js.map → chunk-VXMWTRQX.js.map} +0 -0
- /package/dist/{chunk-SMAXKFKS.js.map → chunk-WAJL65KW.js.map} +0 -0
- /package/dist/{chunk-SOO75MET.js.map → chunk-WRAK5LLB.js.map} +0 -0
- /package/dist/{chunk-IVZNNRBF.js.map → chunk-XE4UYWW3.js.map} +0 -0
- /package/dist/{chunk-JGIRGWS6.js.map → chunk-YMC4AYJK.js.map} +0 -0
- /package/dist/{chunk-D67DA4DI.js.map → chunk-YWPCDR3I.js.map} +0 -0
- /package/dist/{chunk-UVEHXFSC.js.map → chunk-Z3SXC3MP.js.map} +0 -0
- /package/dist/{chunk-NFL4LC22.js.map → chunk-ZRLTQ2Y7.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runPostConsolidationMaterialize
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-L6BLTV4D.js";
|
|
4
4
|
import {
|
|
5
5
|
discoverMemoryExtensions,
|
|
6
6
|
renderExtensionsBlock,
|
|
@@ -220,4 +220,4 @@ export {
|
|
|
220
220
|
buildExtensionsBlockForConsolidation,
|
|
221
221
|
materializeAfterSemanticConsolidation
|
|
222
222
|
};
|
|
223
|
-
//# sourceMappingURL=chunk-
|
|
223
|
+
//# sourceMappingURL=chunk-JJEQRSYU.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseFrontmatter
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YMC4AYJK.js";
|
|
4
4
|
import {
|
|
5
5
|
activityDigestPath,
|
|
6
6
|
isValidActivityDate
|
|
@@ -199,4 +199,4 @@ export {
|
|
|
199
199
|
buildStandup,
|
|
200
200
|
standupHelp
|
|
201
201
|
};
|
|
202
|
-
//# sourceMappingURL=chunk-
|
|
202
|
+
//# sourceMappingURL=chunk-JVIWVJ2A.js.map
|
|
@@ -9,26 +9,26 @@ import {
|
|
|
9
9
|
} from "./chunk-666A3MOW.js";
|
|
10
10
|
import {
|
|
11
11
|
rebuildMemoryLifecycleLedger
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-OAGTKS73.js";
|
|
13
13
|
import {
|
|
14
14
|
PROJECTION_REBUILD_RUNNER_FLAG
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-FSI45NUK.js";
|
|
16
16
|
import {
|
|
17
17
|
startLocationAutoSync
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-SRN5M4LQ.js";
|
|
19
19
|
import {
|
|
20
20
|
CompoundingEngine,
|
|
21
21
|
isIsoWeekId,
|
|
22
22
|
msUntilNextIsoWeek,
|
|
23
23
|
previousIsoWeekId
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-SBU5GDOT.js";
|
|
25
25
|
import {
|
|
26
26
|
planNamespaceMaintenance,
|
|
27
27
|
runNamespaceMaintenanceBatchPlan
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-YWPCDR3I.js";
|
|
29
29
|
import {
|
|
30
30
|
rebuildMemoryProjection
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-WAJL65KW.js";
|
|
32
32
|
import {
|
|
33
33
|
LocalLlmClient
|
|
34
34
|
} from "./chunk-YOR5QBEU.js";
|
|
@@ -2874,4 +2874,4 @@ export {
|
|
|
2874
2874
|
ActivitySyncScheduler,
|
|
2875
2875
|
MaintenanceScheduler
|
|
2876
2876
|
};
|
|
2877
|
-
//# sourceMappingURL=chunk-
|
|
2877
|
+
//# sourceMappingURL=chunk-KR6PEAM4.js.map
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from "./chunk-ZCUTSMR2.js";
|
|
14
14
|
import {
|
|
15
15
|
StorageManager
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-YMC4AYJK.js";
|
|
17
17
|
import {
|
|
18
18
|
excludeSupportPassportPrivateMemories
|
|
19
19
|
} from "./chunk-TSUSHXBW.js";
|
|
@@ -134,4 +134,4 @@ export {
|
|
|
134
134
|
runCodexMaterialize,
|
|
135
135
|
runPostConsolidationMaterialize
|
|
136
136
|
};
|
|
137
|
-
//# sourceMappingURL=chunk-
|
|
137
|
+
//# sourceMappingURL=chunk-L6BLTV4D.js.map
|
|
@@ -21,6 +21,36 @@ function classifyExtractionThrownError(err) {
|
|
|
21
21
|
return "provider_retryable";
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
+
var CONTEXT_LIMIT_MESSAGE = /maximum context|context length|context window|request entity/i;
|
|
25
|
+
var SIZE_LIMIT_PHRASE = /too large|too long|exceed/i;
|
|
26
|
+
var INPUT_SUBJECT_TERM = /\b(?:input|prompt|request|payload|body|messages?|content|context|size|length|tokens?)\b/i;
|
|
27
|
+
var REQUEST_TOO_LARGE_EXCLUDE = /\b(?:max_tokens|max_completion_tokens|temperature|top_p|quota|rate limit|spending|billing)\b/i;
|
|
28
|
+
function isRequestTooLargeError(err) {
|
|
29
|
+
try {
|
|
30
|
+
const status = httpStatusFromError(err);
|
|
31
|
+
if (status === 413) return true;
|
|
32
|
+
if (status !== 400 || !(err instanceof Error)) return false;
|
|
33
|
+
const message = err.message;
|
|
34
|
+
if (CONTEXT_LIMIT_MESSAGE.test(message)) return true;
|
|
35
|
+
if (REQUEST_TOO_LARGE_EXCLUDE.test(message)) return false;
|
|
36
|
+
return SIZE_LIMIT_PHRASE.test(message) && INPUT_SUBJECT_TERM.test(message);
|
|
37
|
+
} catch {
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
function directInputTooLargeResult() {
|
|
42
|
+
return {
|
|
43
|
+
facts: [],
|
|
44
|
+
profileUpdates: [],
|
|
45
|
+
entities: [],
|
|
46
|
+
questions: [],
|
|
47
|
+
extractionFailure: "direct_input_too_large",
|
|
48
|
+
extractionFailureClass: "provider_retryable"
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function formatDirectInputTooLargeLog(chars) {
|
|
52
|
+
return `extraction: direct client refused a ${chars}-char request as too large; an atomic flush is never split, so any turns the gateway fallback does not extract stay buffered for \`remnic buffer drain\``;
|
|
53
|
+
}
|
|
24
54
|
function classifyFallbackParseFailure(reason) {
|
|
25
55
|
switch (reason) {
|
|
26
56
|
case "no_models":
|
|
@@ -66,10 +96,13 @@ function localRejectionStatus(diag) {
|
|
|
66
96
|
|
|
67
97
|
export {
|
|
68
98
|
classifyExtractionThrownError,
|
|
99
|
+
isRequestTooLargeError,
|
|
100
|
+
directInputTooLargeResult,
|
|
101
|
+
formatDirectInputTooLargeLog,
|
|
69
102
|
classifyFallbackParseFailure,
|
|
70
103
|
formatExtractionParseFailureLog,
|
|
71
104
|
LocalLlmRejectedError,
|
|
72
105
|
classifyLocalLlmRejected,
|
|
73
106
|
localRejectionStatus
|
|
74
107
|
};
|
|
75
|
-
//# sourceMappingURL=chunk-
|
|
108
|
+
//# sourceMappingURL=chunk-M7Q7Z6V5.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/extraction-error-classification.ts"],"sourcesContent":["import type { ExtractionFailureClass, ExtractionResult } from \"./types.js\";\nimport { isTransientHttpError } from \"./connectors/live/transient-errors.js\";\n\n/**\n * Read a numeric HTTP status off a thrown error without re-implementing the\n * shared transient classifier. Uses `in`/typeof narrowing (no inline casts).\n */\nfunction httpStatusFromError(err: unknown): number | undefined {\n if (!err || typeof err !== \"object\") return undefined;\n if (\"status\" in err && typeof err.status === \"number\" && Number.isFinite(err.status)) return err.status;\n if (\"statusCode\" in err && typeof err.statusCode === \"number\" && Number.isFinite(err.statusCode)) {\n return err.statusCode;\n }\n return undefined;\n}\n\n/**\n * Map a thrown extraction error to a coarse failure class for the retry/breaker\n * layer. 401/403 → `auth_config` (misconfigured provider, open the breaker);\n * transient (429/5xx/network, per the shared `isTransientHttpError`) → back off;\n * anything else defaults to `provider_retryable` (fail-open toward retry, but\n * capped by the per-fingerprint attempt budget). Never throws.\n */\nexport function classifyExtractionThrownError(err: unknown): ExtractionFailureClass {\n try {\n const status = httpStatusFromError(err);\n if (status === 401 || status === 403) return \"auth_config\";\n if (isTransientHttpError(err)) return \"provider_retryable\";\n return \"provider_retryable\";\n } catch {\n return \"provider_retryable\";\n }\n}\n\nconst CONTEXT_LIMIT_MESSAGE = /maximum context|context length|context window|request entity/i;\nconst SIZE_LIMIT_PHRASE = /too large|too long|exceed/i;\nconst INPUT_SUBJECT_TERM =\n /\\b(?:input|prompt|request|payload|body|messages?|content|context|size|length|tokens?)\\b/i;\nconst REQUEST_TOO_LARGE_EXCLUDE =\n /\\b(?:max_tokens|max_completion_tokens|temperature|top_p|quota|rate limit|spending|billing)\\b/i;\n\n/**\n * True when a provider refused the request because the input is too big: HTTP\n * 413, or HTTP 400 whose message names a size or context limit (OpenAI-style\n * \"maximum context length\", \"total text input size exceeds 8 MB\"). \"too large\",\n * \"too long\" and \"exceed\" count only beside an input subject and never beside\n * an output, quota or sampling term (`max_tokens exceeds limit`,\n * `temperature is too large`, `quota exceeded` are different failures).\n * Resending the same atomic request can never succeed (#3531). Never throws.\n */\n\n/** An Error or SDK error object; the HTTP status is sniffed off it when present. */\nexport interface HttpThrowable {\n readonly status?: number;\n readonly message?: string;\n}\n\nexport function isRequestTooLargeError(err: HttpThrowable): boolean {\n try {\n const status = httpStatusFromError(err);\n if (status === 413) return true;\n if (status !== 400 || !(err instanceof Error)) return false;\n const message = err.message;\n if (CONTEXT_LIMIT_MESSAGE.test(message)) return true;\n if (REQUEST_TOO_LARGE_EXCLUDE.test(message)) return false;\n return SIZE_LIMIT_PHRASE.test(message) && INPUT_SUBJECT_TERM.test(message);\n } catch {\n return false;\n }\n}\n\n/**\n * Result when the provider refused the window as too large (#3531). Retryable\n * on purpose: the retained turns are never parked or dropped, and\n * `remnic buffer drain` can still extract them in budget-sized chunks.\n */\nexport function directInputTooLargeResult(): ExtractionResult {\n return {\n facts: [],\n profileUpdates: [],\n entities: [],\n questions: [],\n extractionFailure: \"direct_input_too_large\",\n extractionFailureClass: \"provider_retryable\",\n };\n}\n\nexport function formatDirectInputTooLargeLog(chars: number): string {\n return (\n `extraction: direct client refused a ${chars}-char request as too large; an atomic flush is never ` +\n \"split, so any turns the gateway fallback does not extract stay buffered for `remnic buffer drain`\"\n );\n}\n\n/**\n * Map the gateway fallback's discriminated parse-failure reason to a coarse\n * extraction failure class. \"no models configured\" is an auth/config problem;\n * an HTTP/transport failure backs off; an unparseable-but-present response is a\n * genuine empty-parse.\n */\nexport function classifyFallbackParseFailure(\n reason: \"no_models\" | \"empty\" | \"http_error\" | \"schema_rejection\" | \"timeout\",\n): ExtractionFailureClass {\n switch (reason) {\n case \"no_models\":\n return \"auth_config\";\n case \"http_error\":\n case \"timeout\":\n return \"provider_retryable\";\n case \"empty\":\n case \"schema_rejection\":\n return \"parse_empty\";\n }\n}\n\n/**\n * Operator-visible extraction parse-failure line. Keeps the historical\n * greppable prefix and appends the fields that used to live only at debug.\n */\nexport function formatExtractionParseFailureLog(input: {\n failureReason: string;\n attemptedModel?: string;\n httpStatus?: number;\n errorClass?: string;\n traceId: string;\n}): string {\n const modelUsed =\n typeof input.attemptedModel === \"string\" && input.attemptedModel.length > 0\n ? input.attemptedModel\n : \"unknown\";\n const errorClass =\n typeof input.errorClass === \"string\" && input.errorClass.length > 0\n ? input.errorClass\n : \"none\";\n const httpStatus =\n typeof input.httpStatus === \"number\" && Number.isFinite(input.httpStatus)\n ? String(input.httpStatus)\n : \"none\";\n return [\n \"extraction fallback returned no parsed output\",\n `failureReason=${input.failureReason}`,\n `modelUsed=${modelUsed}`,\n `errorClass=${errorClass}`,\n `httpStatus=${httpStatus}`,\n `traceId=${input.traceId}`,\n ].join(\" \");\n}\n\n/**\n * The local endpoint answered, and what it said rejects this input (unusable content, or a client error that is not\n * auth, timeout or rate limiting): the chunk's problem, not an outage. A `finish_reason=length` reply classifies as\n * `output_truncated` (#3521); every other rejection retries like an empty parse, and a trigger-drain\n * chunk that keeps drawing it is dropped after its recovery copy is saved.\n */\nexport class LocalLlmRejectedError extends Error {\n constructor(readonly httpStatus?: number, readonly finishReason?: string) {\n super(httpStatus === undefined ? \"local LLM answered with unusable content\" : `local LLM rejected the input (HTTP ${httpStatus})`);\n this.name = \"LocalLlmRejectedError\";\n }\n}\n\n/**\n * Map a local-endpoint rejection to its failure class: a reply cut off at the\n * output ceiling (`finish_reason=length`) is `output_truncated` — retries at\n * the same `maxOutputTokens` can never complete (#3521). Every other unusable\n * or refused reply stays `parse_empty`.\n */\nexport function classifyLocalLlmRejected(err: LocalLlmRejectedError): ExtractionFailureClass {\n return err.finishReason === \"length\" ? \"output_truncated\" : \"parse_empty\";\n}\n\n/** What the local client recorded about a failed call (`failureDiag`). */\nexport interface LocalFailureDiag {\n lastError?: unknown;\n /** The completion's `finish_reason` as the client received it (validated before it is logged). */\n finishReason?: string;\n}\n\n/** The HTTP status when the local endpoint answered and refuses this input (400, 413, 422); else undefined. A wrong model name or route (404, 405, 410), auth, timeout and rate limiting are the setup's problem, not the chunk's. */\nexport function localRejectionStatus(diag: LocalFailureDiag): number | undefined {\n const status = httpStatusFromError(diag.lastError);\n return status !== undefined && [400, 413, 422].includes(status) ? status : undefined;\n}\n"],"mappings":";;;;;AAOA,SAAS,oBAAoB,KAAkC;AAC7D,MAAI,CAAC,OAAO,OAAO,QAAQ,SAAU,QAAO;AAC5C,MAAI,YAAY,OAAO,OAAO,IAAI,WAAW,YAAY,OAAO,SAAS,IAAI,MAAM,EAAG,QAAO,IAAI;AACjG,MAAI,gBAAgB,OAAO,OAAO,IAAI,eAAe,YAAY,OAAO,SAAS,IAAI,UAAU,GAAG;AAChG,WAAO,IAAI;AAAA,EACb;AACA,SAAO;AACT;AASO,SAAS,8BAA8B,KAAsC;AAClF,MAAI;AACF,UAAM,SAAS,oBAAoB,GAAG;AACtC,QAAI,WAAW,OAAO,WAAW,IAAK,QAAO;AAC7C,QAAI,qBAAqB,GAAG,EAAG,QAAO;AACtC,WAAO;AAAA,EACT,QAAQ;AACN,WAAO;AAAA,EACT;AACF;AAEA,IAAM,wBAAwB;AAC9B,IAAM,oBAAoB;AAC1B,IAAM,qBACJ;AACF,IAAM,4BACJ;AAkBK,SAAS,uBAAuB,KAA6B;AAClE,MAAI;AACF,UAAM,SAAS,oBAAoB,GAAG;AACtC,QAAI,WAAW,IAAK,QAAO;AAC3B,QAAI,WAAW,OAAO,EAAE,eAAe,OAAQ,QAAO;AACtD,UAAM,UAAU,IAAI;AACpB,QAAI,sBAAsB,KAAK,OAAO,EAAG,QAAO;AAChD,QAAI,0BAA0B,KAAK,OAAO,EAAG,QAAO;AACpD,WAAO,kBAAkB,KAAK,OAAO,KAAK,mBAAmB,KAAK,OAAO;AAAA,EAC3E,QAAQ;AACN,WAAO;AAAA,EACT;AACF;AAOO,SAAS,4BAA8C;AAC5D,SAAO;AAAA,IACL,OAAO,CAAC;AAAA,IACR,gBAAgB,CAAC;AAAA,IACjB,UAAU,CAAC;AAAA,IACX,WAAW,CAAC;AAAA,IACZ,mBAAmB;AAAA,IACnB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAAS,6BAA6B,OAAuB;AAClE,SACE,uCAAuC,KAAK;AAGhD;AAQO,SAAS,6BACd,QACwB;AACxB,UAAQ,QAAQ;AAAA,IACd,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AAAA,IACL,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AAAA,IACL,KAAK;AACH,aAAO;AAAA,EACX;AACF;AAMO,SAAS,gCAAgC,OAMrC;AACT,QAAM,YACJ,OAAO,MAAM,mBAAmB,YAAY,MAAM,eAAe,SAAS,IACtE,MAAM,iBACN;AACN,QAAM,aACJ,OAAO,MAAM,eAAe,YAAY,MAAM,WAAW,SAAS,IAC9D,MAAM,aACN;AACN,QAAM,aACJ,OAAO,MAAM,eAAe,YAAY,OAAO,SAAS,MAAM,UAAU,IACpE,OAAO,MAAM,UAAU,IACvB;AACN,SAAO;AAAA,IACL;AAAA,IACA,iBAAiB,MAAM,aAAa;AAAA,IACpC,aAAa,SAAS;AAAA,IACtB,cAAc,UAAU;AAAA,IACxB,cAAc,UAAU;AAAA,IACxB,WAAW,MAAM,OAAO;AAAA,EAC1B,EAAE,KAAK,GAAG;AACZ;AAQO,IAAM,wBAAN,cAAoC,MAAM;AAAA,EAC/C,YAAqB,YAA8B,cAAuB;AACxE,UAAM,eAAe,SAAY,6CAA6C,sCAAsC,UAAU,GAAG;AAD9G;AAA8B;AAEjD,SAAK,OAAO;AAAA,EACd;AAAA,EAHqB;AAAA,EAA8B;AAIrD;AAQO,SAAS,yBAAyB,KAAoD;AAC3F,SAAO,IAAI,iBAAiB,WAAW,qBAAqB;AAC9D;AAUO,SAAS,qBAAqB,MAA4C;AAC/E,QAAM,SAAS,oBAAoB,KAAK,SAAS;AACjD,SAAO,WAAW,UAAa,CAAC,KAAK,KAAK,GAAG,EAAE,SAAS,MAAM,IAAI,SAAS;AAC7E;","names":[]}
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-KJTKLXTH.js";
|
|
4
4
|
import {
|
|
5
5
|
StorageManager
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YMC4AYJK.js";
|
|
7
7
|
import {
|
|
8
8
|
assertInjectedStorageRooted
|
|
9
9
|
} from "./chunk-BNZAR6PO.js";
|
|
@@ -260,4 +260,4 @@ export {
|
|
|
260
260
|
backupExistingLedger,
|
|
261
261
|
rebuildMemoryLifecycleLedger
|
|
262
262
|
};
|
|
263
|
-
//# sourceMappingURL=chunk-
|
|
263
|
+
//# sourceMappingURL=chunk-OAGTKS73.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
rebuildMemoryProjection
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WAJL65KW.js";
|
|
4
4
|
|
|
5
5
|
// src/convergence-refresh.ts
|
|
6
6
|
async function refreshConvergedNamespaces(namespaces, namespaceSearchRouter, getStorage, searchEnabled) {
|
|
@@ -32,4 +32,4 @@ async function refreshConvergedNamespaces(namespaces, namespaceSearchRouter, get
|
|
|
32
32
|
export {
|
|
33
33
|
refreshConvergedNamespaces
|
|
34
34
|
};
|
|
35
|
-
//# sourceMappingURL=chunk-
|
|
35
|
+
//# sourceMappingURL=chunk-PCUDFWX5.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
StorageManager
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YMC4AYJK.js";
|
|
4
4
|
import {
|
|
5
5
|
countRecallTokenOverlap,
|
|
6
6
|
normalizeRecallTokens
|
|
@@ -119,4 +119,4 @@ export {
|
|
|
119
119
|
compareVerifiedSemanticRuleResults,
|
|
120
120
|
searchVerifiedSemanticRules
|
|
121
121
|
};
|
|
122
|
-
//# sourceMappingURL=chunk-
|
|
122
|
+
//# sourceMappingURL=chunk-QBREZ4QL.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-TBBDFYXW.js";
|
|
4
4
|
import {
|
|
5
5
|
StorageManager
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YMC4AYJK.js";
|
|
7
7
|
import {
|
|
8
8
|
requestEntityCanonicalIdReconcile
|
|
9
9
|
} from "./chunk-KM4QO4LN.js";
|
|
@@ -769,4 +769,4 @@ export {
|
|
|
769
769
|
listMemoryGovernanceRuns,
|
|
770
770
|
readMemoryGovernanceRunArtifact
|
|
771
771
|
};
|
|
772
|
-
//# sourceMappingURL=chunk-
|
|
772
|
+
//# sourceMappingURL=chunk-RDO6AMDL.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseXrayFormat
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-V6M6N3EE.js";
|
|
4
4
|
import {
|
|
5
5
|
RECALL_DISCLOSURE_LEVELS,
|
|
6
6
|
isRecallDisclosure
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SOGOHLWN.js";
|
|
8
8
|
|
|
9
9
|
// src/recall-xray-cli.ts
|
|
10
10
|
function parseXrayDisclosureFlag(value) {
|
|
@@ -50,4 +50,4 @@ export {
|
|
|
50
50
|
parseXrayBudgetFlag,
|
|
51
51
|
parseXrayCliOptions
|
|
52
52
|
};
|
|
53
|
-
//# sourceMappingURL=chunk-
|
|
53
|
+
//# sourceMappingURL=chunk-RH6XWXMA.js.map
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
} from "./chunk-5CO5G4MN.js";
|
|
9
9
|
import {
|
|
10
10
|
resolveDefaultNamespaceRoot
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-Z3SXC3MP.js";
|
|
12
12
|
import {
|
|
13
13
|
StorageManager,
|
|
14
14
|
readRawMemoryDocument
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-YMC4AYJK.js";
|
|
16
16
|
import {
|
|
17
17
|
parseContinuityImprovementLoops
|
|
18
18
|
} from "./chunk-LDXUBPMO.js";
|
|
@@ -1869,4 +1869,4 @@ export {
|
|
|
1869
1869
|
defaultTierMigrationCycleBudget,
|
|
1870
1870
|
CompoundingEngine
|
|
1871
1871
|
};
|
|
1872
|
-
//# sourceMappingURL=chunk-
|
|
1872
|
+
//# sourceMappingURL=chunk-SBU5GDOT.js.map
|