@remnic/core 10.0.161 → 10.0.163
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 +68 -68
- package/dist/access-cli.js +68 -68
- package/dist/access-extraction-force-flush-preempt.js +68 -68
- package/dist/access-extraction-force-flush.js +68 -68
- package/dist/access-http-briefing.js +68 -68
- package/dist/access-http-query.js +68 -68
- package/dist/access-http.js +68 -68
- package/dist/access-identity-continuity-surface.js +68 -68
- package/dist/access-lcm-surface.js +68 -68
- package/dist/access-mcp.js +68 -68
- package/dist/access-observe-write-category.js +5 -5
- package/dist/access-observe-write-surface.js +68 -68
- package/dist/access-operations-batch.js +68 -68
- package/dist/access-operations.js +68 -68
- package/dist/access-recall-concurrency.js +68 -68
- package/dist/access-recall-diagnostics.js +2 -2
- package/dist/access-recall-response.js +68 -68
- package/dist/access-recall-surface.js +68 -68
- package/dist/access-schema.js +4 -4
- package/dist/access-service.js +68 -68
- package/dist/active-recall.js +10 -10
- package/dist/briefing.js +9 -9
- package/dist/buffer.js +2 -2
- package/dist/{capsule-crypto-YO5QJ6L3.js → capsule-crypto-GWVG7LGC.js} +2 -2
- package/dist/causal-consolidation.js +10 -10
- package/dist/{chunk-HIPHLFIQ.js → chunk-22VXXA67.js} +2 -2
- package/dist/{chunk-IFFCHE3O.js → chunk-2S3M2GLC.js} +8 -2
- package/dist/{chunk-IFFCHE3O.js.map → chunk-2S3M2GLC.js.map} +1 -1
- package/dist/{chunk-VGCK2RV3.js → chunk-3QLAOYBL.js} +2 -2
- package/dist/{chunk-6NPLVV6M.js → chunk-4HKK5HUI.js} +2 -2
- package/dist/{chunk-XTAGZXOM.js → chunk-4LPTSB5V.js} +2 -2
- package/dist/{chunk-HKOGDSNS.js → chunk-4NBUHYUV.js} +2 -2
- package/dist/{chunk-VVVFT435.js → chunk-5D4NBANY.js} +5 -5
- package/dist/{chunk-VVVFT435.js.map → chunk-5D4NBANY.js.map} +1 -1
- package/dist/{chunk-K3KSTSGM.js → chunk-5LTXYM7D.js} +2 -2
- package/dist/{chunk-M7BCA43N.js → chunk-5MXKS25U.js} +5 -5
- package/dist/{chunk-KTZNXQWL.js → chunk-6ARSFTLD.js} +2 -2
- package/dist/{chunk-773QSFFN.js → chunk-6TPWIPE3.js} +2 -2
- package/dist/{chunk-L2DACC2T.js → chunk-ARJ3KCX4.js} +2 -2
- package/dist/{chunk-6PVS6JET.js → chunk-AU6AEUFD.js} +2 -2
- package/dist/{chunk-R45L4TV6.js → chunk-BUKK5SWA.js} +6 -6
- package/dist/{chunk-JUYTXFDV.js → chunk-CGOPDXLK.js} +2 -2
- package/dist/{chunk-TGH7AU5U.js → chunk-DBVSU3HE.js} +8 -8
- package/dist/{chunk-3UKPFFMS.js → chunk-E5RJPLNL.js} +2 -2
- package/dist/{chunk-TLJV42SZ.js → chunk-EDA6CDBT.js} +2 -2
- package/dist/{chunk-ZWSSUWKO.js → chunk-EI2M2CFJ.js} +2 -2
- package/dist/{chunk-V24YLFJW.js → chunk-FNV6ZPCY.js} +6 -4
- package/dist/chunk-FNV6ZPCY.js.map +1 -0
- package/dist/{chunk-BDFOBNLX.js → chunk-FSI45NUK.js} +2 -2
- package/dist/{chunk-BFJQBCDL.js → chunk-GDAFI6HH.js} +239 -156
- package/dist/chunk-GDAFI6HH.js.map +1 -0
- package/dist/{chunk-DFK6AQWM.js → chunk-IC35ZYLM.js} +2 -2
- package/dist/{chunk-PJFSSXXY.js → chunk-JJEQRSYU.js} +2 -2
- package/dist/{chunk-5UE45DLK.js → chunk-JVIWVJ2A.js} +2 -2
- package/dist/{chunk-BNQJKWWZ.js → chunk-K3FH3LAQ.js} +4 -4
- package/dist/{chunk-UADAXWUJ.js → chunk-KR6PEAM4.js} +7 -7
- package/dist/{chunk-YKAQKIPR.js → chunk-L6BLTV4D.js} +2 -2
- package/dist/{chunk-2YJYBAR3.js → chunk-OAGTKS73.js} +2 -2
- package/dist/{chunk-BXLOS5AJ.js → chunk-OWHERGF2.js} +2 -2
- package/dist/{chunk-CA7XVRHZ.js → chunk-PCUDFWX5.js} +2 -2
- package/dist/{chunk-I6IKSDUO.js → chunk-PRE7R3RQ.js} +2 -2
- package/dist/{chunk-MWEJL436.js → chunk-QBREZ4QL.js} +2 -2
- package/dist/{chunk-TFA6HPOA.js → chunk-QCP75JGO.js} +5 -5
- package/dist/{chunk-MZETCZJF.js → chunk-QFPNWSVH.js} +5 -5
- package/dist/{chunk-52EM4UQU.js → chunk-QUC4S2D2.js} +10 -9
- package/dist/chunk-QUC4S2D2.js.map +1 -0
- package/dist/{chunk-7PCWJZXG.js → chunk-RDO6AMDL.js} +2 -2
- package/dist/{chunk-QDY4TSKK.js → chunk-RH6XWXMA.js} +3 -3
- package/dist/{chunk-BT5TAOXG.js → chunk-SBU5GDOT.js} +3 -3
- package/dist/{chunk-KJ3Z7JHF.js → chunk-SOGOHLWN.js} +1 -1
- package/dist/chunk-SOGOHLWN.js.map +1 -0
- package/dist/{chunk-TBOCVPXL.js → chunk-SRN5M4LQ.js} +3 -3
- package/dist/{chunk-NBHMEYM4.js → chunk-TFNZXOXK.js} +2 -2
- package/dist/{chunk-O7CHKXSF.js → chunk-UGQEJWR3.js} +2 -2
- package/dist/{chunk-DQEMWVMT.js → chunk-UVYI6VIX.js} +1 -1
- package/dist/{chunk-H6OTEBPK.js → chunk-V6M6N3EE.js} +2 -2
- package/dist/{chunk-AQ6GV5MU.js → chunk-VXMWTRQX.js} +2 -2
- package/dist/{chunk-PCCNK3RX.js → chunk-VXUO5JZC.js} +11 -13
- package/dist/chunk-VXUO5JZC.js.map +1 -0
- package/dist/{chunk-UR6COSJN.js → chunk-WAJL65KW.js} +3 -3
- package/dist/{chunk-V3D2OOVE.js → chunk-WRAK5LLB.js} +2 -2
- package/dist/{chunk-BTCZVBV3.js → chunk-XE4UYWW3.js} +3 -3
- package/dist/{chunk-VXKPZ6BO.js → chunk-Y7HLGKKU.js} +2 -2
- package/dist/{chunk-YAFMWQRL.js → chunk-YMC4AYJK.js} +4 -4
- package/dist/chunk-YMC4AYJK.js.map +1 -0
- package/dist/{chunk-B7F2G57I.js → chunk-YWPCDR3I.js} +2 -2
- package/dist/{chunk-NFTFMMKT.js → chunk-Z3SXC3MP.js} +2 -2
- package/dist/{chunk-DS24H6M4.js → chunk-ZRLTQ2Y7.js} +2 -2
- package/dist/cli.js +68 -68
- package/dist/coding/export-okf-codegraph.js +8 -8
- package/dist/compounding/engine.js +10 -10
- package/dist/config.js +10 -10
- package/dist/connectors/codex-materialize-runner.js +9 -9
- package/dist/connectors/index.js +9 -9
- package/dist/convergence-refresh.js +11 -11
- package/dist/conversation-index/backend.js +2 -2
- package/dist/corpus-watermark.js +11 -11
- package/dist/deep-recall-http-glue.js +5 -5
- package/dist/entity-retrieval.js +9 -9
- package/dist/explicit-capture.js +68 -68
- package/dist/extraction-error-classification.d.ts +11 -2
- package/dist/extraction-error-classification.d.ts.map +1 -1
- package/dist/extraction-error-classification.js +3 -1
- package/dist/extraction-reply-diagnostic.d.ts +4 -2
- package/dist/extraction-reply-diagnostic.d.ts.map +1 -1
- package/dist/extraction-reply-diagnostic.js +1 -1
- package/dist/extraction.js +14 -14
- package/dist/harmonic-retrieval.js +9 -9
- package/dist/index.js +74 -74
- package/dist/lcm/engine.js +2 -2
- package/dist/lcm/index.js +2 -2
- package/dist/location/index.js +10 -10
- package/dist/maintenance/memory-governance.js +9 -9
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +9 -9
- package/dist/maintenance/rebuild-memory-projection-runner.js +11 -11
- package/dist/maintenance/rebuild-memory-projection.js +10 -10
- package/dist/namespaces/migrate.js +10 -10
- package/dist/namespaces/search.js +6 -6
- package/dist/namespaces/storage.js +9 -9
- package/dist/operator-doctor-corpus.js +12 -12
- package/dist/operator-toolkit.js +17 -17
- package/dist/orchestration/backlog-scheduler.js +69 -69
- package/dist/orchestration/buffer-drain-runner.js +69 -69
- package/dist/orchestration/extraction-drain.d.ts.map +1 -1
- package/dist/orchestration/extraction-run-helpers.d.ts +7 -0
- package/dist/orchestration/extraction-run-helpers.d.ts.map +1 -1
- package/dist/orchestration/extraction-run.d.ts.map +1 -1
- package/dist/orchestration/maintenance.js +17 -17
- package/dist/orchestration/orchestrator-init.d.ts +28 -1
- package/dist/orchestration/orchestrator-init.d.ts.map +1 -1
- package/dist/orchestrator.d.ts +13 -9
- package/dist/orchestrator.d.ts.map +1 -1
- package/dist/orchestrator.js +68 -68
- 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 +68 -68
- 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 +11 -11
- package/dist/search/factory.js +5 -5
- package/dist/search/index.js +9 -9
- package/dist/semantic-consolidation.js +10 -10
- package/dist/semantic-rule-promotion.js +9 -9
- package/dist/semantic-rule-verifier.js +9 -9
- package/dist/source-agent-qualifier.js +11 -11
- package/dist/standup/build.js +9 -9
- package/dist/storage.js +8 -8
- package/dist/transfer/autodetect.js +1 -1
- package/dist/transfer/backup.js +2 -2
- package/dist/transfer/capsule-export.js +3 -3
- package/dist/transfer/capsule-import.js +2 -2
- package/dist/transfer/export-okf.js +9 -9
- package/dist/types-extraction-failure.d.ts +12 -0
- package/dist/types-extraction-failure.d.ts.map +1 -0
- package/dist/types-extraction-failure.js +1 -0
- package/dist/types-extraction-failure.js.map +1 -0
- package/dist/types.d.ts +3 -9
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +1 -1
- package/dist/verified-recall.js +9 -9
- package/dist/who-knows-cli.js +10 -10
- package/dist/who-knows.js +9 -9
- 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-error-classification.ts +13 -2
- package/src/extraction-queue-concurrency-default.test.ts +107 -0
- package/src/extraction-reply-diagnostic-wiring.test.ts +4 -4
- package/src/extraction-reply-diagnostic.test.ts +3 -1
- package/src/extraction-reply-diagnostic.ts +9 -1
- package/src/extraction.ts +6 -6
- package/src/orchestration/extraction-drain-parts.test.ts +33 -0
- package/src/orchestration/extraction-drain.ts +7 -1
- package/src/orchestration/extraction-queue-coordinator.ts +1 -1
- package/src/orchestration/extraction-run-helpers.ts +14 -0
- package/src/orchestration/extraction-run.test.ts +28 -5
- package/src/orchestration/extraction-run.ts +11 -13
- package/src/orchestration/orchestrator-init.ts +259 -111
- package/src/orchestrator-extraction-queue.test.ts +3 -3
- package/src/orchestrator-flush.test.ts +43 -34
- package/src/orchestrator-init.test.ts +66 -3
- package/src/orchestrator-startup-ready-path.test.ts +506 -0
- package/src/orchestrator.ts +18 -9
- package/src/storage.ts +1 -1
- package/src/types-extraction-failure.ts +11 -0
- package/src/types.ts +3 -9
- package/dist/chunk-52EM4UQU.js.map +0 -1
- package/dist/chunk-BFJQBCDL.js.map +0 -1
- package/dist/chunk-KJ3Z7JHF.js.map +0 -1
- package/dist/chunk-PCCNK3RX.js.map +0 -1
- package/dist/chunk-V24YLFJW.js.map +0 -1
- package/dist/chunk-YAFMWQRL.js.map +0 -1
- /package/dist/{capsule-crypto-YO5QJ6L3.js.map → capsule-crypto-GWVG7LGC.js.map} +0 -0
- /package/dist/{chunk-HIPHLFIQ.js.map → chunk-22VXXA67.js.map} +0 -0
- /package/dist/{chunk-VGCK2RV3.js.map → chunk-3QLAOYBL.js.map} +0 -0
- /package/dist/{chunk-6NPLVV6M.js.map → chunk-4HKK5HUI.js.map} +0 -0
- /package/dist/{chunk-XTAGZXOM.js.map → chunk-4LPTSB5V.js.map} +0 -0
- /package/dist/{chunk-HKOGDSNS.js.map → chunk-4NBUHYUV.js.map} +0 -0
- /package/dist/{chunk-K3KSTSGM.js.map → chunk-5LTXYM7D.js.map} +0 -0
- /package/dist/{chunk-M7BCA43N.js.map → chunk-5MXKS25U.js.map} +0 -0
- /package/dist/{chunk-KTZNXQWL.js.map → chunk-6ARSFTLD.js.map} +0 -0
- /package/dist/{chunk-773QSFFN.js.map → chunk-6TPWIPE3.js.map} +0 -0
- /package/dist/{chunk-L2DACC2T.js.map → chunk-ARJ3KCX4.js.map} +0 -0
- /package/dist/{chunk-6PVS6JET.js.map → chunk-AU6AEUFD.js.map} +0 -0
- /package/dist/{chunk-R45L4TV6.js.map → chunk-BUKK5SWA.js.map} +0 -0
- /package/dist/{chunk-JUYTXFDV.js.map → chunk-CGOPDXLK.js.map} +0 -0
- /package/dist/{chunk-TGH7AU5U.js.map → chunk-DBVSU3HE.js.map} +0 -0
- /package/dist/{chunk-3UKPFFMS.js.map → chunk-E5RJPLNL.js.map} +0 -0
- /package/dist/{chunk-TLJV42SZ.js.map → chunk-EDA6CDBT.js.map} +0 -0
- /package/dist/{chunk-ZWSSUWKO.js.map → chunk-EI2M2CFJ.js.map} +0 -0
- /package/dist/{chunk-BDFOBNLX.js.map → chunk-FSI45NUK.js.map} +0 -0
- /package/dist/{chunk-DFK6AQWM.js.map → chunk-IC35ZYLM.js.map} +0 -0
- /package/dist/{chunk-PJFSSXXY.js.map → chunk-JJEQRSYU.js.map} +0 -0
- /package/dist/{chunk-5UE45DLK.js.map → chunk-JVIWVJ2A.js.map} +0 -0
- /package/dist/{chunk-BNQJKWWZ.js.map → chunk-K3FH3LAQ.js.map} +0 -0
- /package/dist/{chunk-UADAXWUJ.js.map → chunk-KR6PEAM4.js.map} +0 -0
- /package/dist/{chunk-YKAQKIPR.js.map → chunk-L6BLTV4D.js.map} +0 -0
- /package/dist/{chunk-2YJYBAR3.js.map → chunk-OAGTKS73.js.map} +0 -0
- /package/dist/{chunk-BXLOS5AJ.js.map → chunk-OWHERGF2.js.map} +0 -0
- /package/dist/{chunk-CA7XVRHZ.js.map → chunk-PCUDFWX5.js.map} +0 -0
- /package/dist/{chunk-I6IKSDUO.js.map → chunk-PRE7R3RQ.js.map} +0 -0
- /package/dist/{chunk-MWEJL436.js.map → chunk-QBREZ4QL.js.map} +0 -0
- /package/dist/{chunk-TFA6HPOA.js.map → chunk-QCP75JGO.js.map} +0 -0
- /package/dist/{chunk-MZETCZJF.js.map → chunk-QFPNWSVH.js.map} +0 -0
- /package/dist/{chunk-7PCWJZXG.js.map → chunk-RDO6AMDL.js.map} +0 -0
- /package/dist/{chunk-QDY4TSKK.js.map → chunk-RH6XWXMA.js.map} +0 -0
- /package/dist/{chunk-BT5TAOXG.js.map → chunk-SBU5GDOT.js.map} +0 -0
- /package/dist/{chunk-TBOCVPXL.js.map → chunk-SRN5M4LQ.js.map} +0 -0
- /package/dist/{chunk-NBHMEYM4.js.map → chunk-TFNZXOXK.js.map} +0 -0
- /package/dist/{chunk-O7CHKXSF.js.map → chunk-UGQEJWR3.js.map} +0 -0
- /package/dist/{chunk-DQEMWVMT.js.map → chunk-UVYI6VIX.js.map} +0 -0
- /package/dist/{chunk-H6OTEBPK.js.map → chunk-V6M6N3EE.js.map} +0 -0
- /package/dist/{chunk-AQ6GV5MU.js.map → chunk-VXMWTRQX.js.map} +0 -0
- /package/dist/{chunk-UR6COSJN.js.map → chunk-WAJL65KW.js.map} +0 -0
- /package/dist/{chunk-V3D2OOVE.js.map → chunk-WRAK5LLB.js.map} +0 -0
- /package/dist/{chunk-BTCZVBV3.js.map → chunk-XE4UYWW3.js.map} +0 -0
- /package/dist/{chunk-VXKPZ6BO.js.map → chunk-Y7HLGKKU.js.map} +0 -0
- /package/dist/{chunk-B7F2G57I.js.map → chunk-YWPCDR3I.js.map} +0 -0
- /package/dist/{chunk-NFTFMMKT.js.map → chunk-Z3SXC3MP.js.map} +0 -0
- /package/dist/{chunk-DS24H6M4.js.map → chunk-ZRLTQ2Y7.js.map} +0 -0
|
@@ -25,6 +25,9 @@ import {
|
|
|
25
25
|
import {
|
|
26
26
|
openclawReplayNormalizer
|
|
27
27
|
} from "./chunk-H4CKS5B2.js";
|
|
28
|
+
import {
|
|
29
|
+
importMarkdownBundle
|
|
30
|
+
} from "./chunk-HDDRVXX4.js";
|
|
28
31
|
import {
|
|
29
32
|
importSqlite
|
|
30
33
|
} from "./chunk-PYHOAXTI.js";
|
|
@@ -36,19 +39,19 @@ import {
|
|
|
36
39
|
import {
|
|
37
40
|
WorkStorage
|
|
38
41
|
} from "./chunk-MPC7TYTZ.js";
|
|
42
|
+
import {
|
|
43
|
+
importCapsule
|
|
44
|
+
} from "./chunk-4NBUHYUV.js";
|
|
39
45
|
import {
|
|
40
46
|
exportJsonBundle
|
|
41
47
|
} from "./chunk-UP6MOYCB.js";
|
|
42
48
|
import {
|
|
43
49
|
exportOkfBundle,
|
|
44
50
|
parseIncludeStatus
|
|
45
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-5LTXYM7D.js";
|
|
46
52
|
import {
|
|
47
53
|
exportSqlite
|
|
48
54
|
} from "./chunk-BV2TIZ4F.js";
|
|
49
|
-
import {
|
|
50
|
-
importMarkdownBundle
|
|
51
|
-
} from "./chunk-HDDRVXX4.js";
|
|
52
55
|
import {
|
|
53
56
|
SupportPassportAccessSurface,
|
|
54
57
|
createSupportPassportModelAdapter,
|
|
@@ -62,13 +65,10 @@ import {
|
|
|
62
65
|
} from "./chunk-2DL3OFLD.js";
|
|
63
66
|
import {
|
|
64
67
|
backupMemoryDir
|
|
65
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-OWHERGF2.js";
|
|
66
69
|
import {
|
|
67
70
|
exportMarkdownBundle
|
|
68
71
|
} from "./chunk-765K3SAT.js";
|
|
69
|
-
import {
|
|
70
|
-
importCapsule
|
|
71
|
-
} from "./chunk-HKOGDSNS.js";
|
|
72
72
|
import {
|
|
73
73
|
isSharedContextWriteInputError,
|
|
74
74
|
parseSharedWriteOutputControls
|
|
@@ -76,7 +76,7 @@ import {
|
|
|
76
76
|
import {
|
|
77
77
|
buildStandup,
|
|
78
78
|
parseStandupDate
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-JVIWVJ2A.js";
|
|
80
80
|
import {
|
|
81
81
|
buildReplayNormalizerRegistry,
|
|
82
82
|
clampBatchSize,
|
|
@@ -89,34 +89,34 @@ import {
|
|
|
89
89
|
import {
|
|
90
90
|
RoutingRulesStore
|
|
91
91
|
} from "./chunk-TBUEE7XF.js";
|
|
92
|
+
import {
|
|
93
|
+
WebDavServer
|
|
94
|
+
} from "./chunk-PYIFUBRK.js";
|
|
92
95
|
import {
|
|
93
96
|
CompressionGuidelineCoordinator
|
|
94
97
|
} from "./chunk-5PHOU5QI.js";
|
|
95
98
|
import {
|
|
96
99
|
ActivityStore,
|
|
97
100
|
MaintenanceScheduler
|
|
98
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-KR6PEAM4.js";
|
|
99
102
|
import {
|
|
100
103
|
runPeerProfileReasoner
|
|
101
104
|
} from "./chunk-I74SUMNI.js";
|
|
105
|
+
import {
|
|
106
|
+
rebuildObservations
|
|
107
|
+
} from "./chunk-2X4WP4GD.js";
|
|
102
108
|
import {
|
|
103
109
|
migrateFromEngram
|
|
104
110
|
} from "./chunk-VZAKYDMJ.js";
|
|
105
111
|
import {
|
|
106
112
|
TailscaleHelper
|
|
107
113
|
} from "./chunk-SZDLX763.js";
|
|
108
|
-
import {
|
|
109
|
-
WebDavServer
|
|
110
|
-
} from "./chunk-PYIFUBRK.js";
|
|
111
114
|
import {
|
|
112
115
|
migrateObservations
|
|
113
116
|
} from "./chunk-6PEEZSGL.js";
|
|
114
117
|
import {
|
|
115
118
|
rebuildMemoryLifecycleLedger
|
|
116
|
-
} from "./chunk-
|
|
117
|
-
import {
|
|
118
|
-
rebuildObservations
|
|
119
|
-
} from "./chunk-2X4WP4GD.js";
|
|
119
|
+
} from "./chunk-OAGTKS73.js";
|
|
120
120
|
import {
|
|
121
121
|
backfillMemoryStorage,
|
|
122
122
|
runLocationBackfill,
|
|
@@ -124,13 +124,13 @@ import {
|
|
|
124
124
|
runLocationDay,
|
|
125
125
|
runLocationStatus,
|
|
126
126
|
runLocationSync
|
|
127
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-SRN5M4LQ.js";
|
|
128
128
|
import {
|
|
129
129
|
archiveObservations
|
|
130
130
|
} from "./chunk-SBQOBY3S.js";
|
|
131
131
|
import {
|
|
132
132
|
LcmEngine
|
|
133
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-K3FH3LAQ.js";
|
|
134
134
|
import {
|
|
135
135
|
executeResolution,
|
|
136
136
|
isValidResolutionVerb,
|
|
@@ -148,11 +148,14 @@ import {
|
|
|
148
148
|
import {
|
|
149
149
|
CompoundingEngine,
|
|
150
150
|
defaultTierMigrationCycleBudget
|
|
151
|
-
} from "./chunk-
|
|
151
|
+
} from "./chunk-SBU5GDOT.js";
|
|
152
152
|
import {
|
|
153
153
|
SharedContextManager,
|
|
154
154
|
UNATTRIBUTED_ACCESS_WRITE_ORIGIN
|
|
155
155
|
} from "./chunk-JVBAPAWZ.js";
|
|
156
|
+
import {
|
|
157
|
+
AdapterRegistry
|
|
158
|
+
} from "./chunk-WWQMZBDI.js";
|
|
156
159
|
import {
|
|
157
160
|
getBulkImportSource,
|
|
158
161
|
listBulkImportSources,
|
|
@@ -190,12 +193,14 @@ import {
|
|
|
190
193
|
WriteRateLimiter
|
|
191
194
|
} from "./chunk-TB6CBZ5V.js";
|
|
192
195
|
import {
|
|
193
|
-
|
|
194
|
-
|
|
196
|
+
applyUtilityPromotionRuntimePolicy,
|
|
197
|
+
applyUtilityRankingRuntimeDelta,
|
|
198
|
+
loadUtilityRuntimeValues
|
|
199
|
+
} from "./chunk-3Q3XD3NO.js";
|
|
195
200
|
import {
|
|
196
201
|
compareVerifiedEpisodeResults,
|
|
197
202
|
searchVerifiedEpisodes
|
|
198
|
-
} from "./chunk-
|
|
203
|
+
} from "./chunk-4LPTSB5V.js";
|
|
199
204
|
import {
|
|
200
205
|
WHO_KNOWS_DEFAULT_LIMIT,
|
|
201
206
|
WHO_KNOWS_MCP_TOOLS,
|
|
@@ -203,7 +208,7 @@ import {
|
|
|
203
208
|
handleWhoKnowsHttpQuery,
|
|
204
209
|
loadWhoKnowsEntities,
|
|
205
210
|
validateWhoKnowsInput
|
|
206
|
-
} from "./chunk-
|
|
211
|
+
} from "./chunk-EI2M2CFJ.js";
|
|
207
212
|
import {
|
|
208
213
|
getTrustZoneStoreStatus,
|
|
209
214
|
isTrustZoneName,
|
|
@@ -217,11 +222,6 @@ import {
|
|
|
217
222
|
import {
|
|
218
223
|
cleanArchivedUserMessage
|
|
219
224
|
} from "./chunk-47DU4SGJ.js";
|
|
220
|
-
import {
|
|
221
|
-
applyUtilityPromotionRuntimePolicy,
|
|
222
|
-
applyUtilityRankingRuntimeDelta,
|
|
223
|
-
loadUtilityRuntimeValues
|
|
224
|
-
} from "./chunk-3Q3XD3NO.js";
|
|
225
225
|
import {
|
|
226
226
|
getUtilityLearningStatus,
|
|
227
227
|
learnUtilityPromotionWeights
|
|
@@ -283,11 +283,11 @@ import {
|
|
|
283
283
|
} from "./chunk-WWDO7ZWM.js";
|
|
284
284
|
import {
|
|
285
285
|
promoteSemanticRuleFromMemory
|
|
286
|
-
} from "./chunk-
|
|
286
|
+
} from "./chunk-AU6AEUFD.js";
|
|
287
287
|
import {
|
|
288
288
|
compareVerifiedSemanticRuleResults,
|
|
289
289
|
searchVerifiedSemanticRules
|
|
290
|
-
} from "./chunk-
|
|
290
|
+
} from "./chunk-QBREZ4QL.js";
|
|
291
291
|
import {
|
|
292
292
|
mergeWithAgentResults,
|
|
293
293
|
runDirectAgent,
|
|
@@ -328,7 +328,7 @@ import {
|
|
|
328
328
|
buildResumeBundleFromState,
|
|
329
329
|
getResumeBundleStatus,
|
|
330
330
|
recordResumeBundle
|
|
331
|
-
} from "./chunk-
|
|
331
|
+
} from "./chunk-22VXXA67.js";
|
|
332
332
|
import {
|
|
333
333
|
getWorkProductLedgerStatus,
|
|
334
334
|
recordWorkProductLedgerEntry,
|
|
@@ -343,7 +343,7 @@ import {
|
|
|
343
343
|
} from "./chunk-VE23DIBH.js";
|
|
344
344
|
import {
|
|
345
345
|
parseXrayCliOptions
|
|
346
|
-
} from "./chunk-
|
|
346
|
+
} from "./chunk-RH6XWXMA.js";
|
|
347
347
|
import {
|
|
348
348
|
findUnresolvedEntityRefs
|
|
349
349
|
} from "./chunk-X7XN6YU4.js";
|
|
@@ -389,7 +389,7 @@ import {
|
|
|
389
389
|
} from "./chunk-VYDGHJIN.js";
|
|
390
390
|
import {
|
|
391
391
|
planDisclosureStep
|
|
392
|
-
} from "./chunk-
|
|
392
|
+
} from "./chunk-4HKK5HUI.js";
|
|
393
393
|
import {
|
|
394
394
|
parseNavigateLinkType
|
|
395
395
|
} from "./chunk-7O5EW7KX.js";
|
|
@@ -405,12 +405,12 @@ import {
|
|
|
405
405
|
renderRecallExplain,
|
|
406
406
|
renderXray,
|
|
407
407
|
toRecallExplainJson
|
|
408
|
-
} from "./chunk-
|
|
408
|
+
} from "./chunk-V6M6N3EE.js";
|
|
409
409
|
import {
|
|
410
410
|
buildXraySnapshot,
|
|
411
411
|
estimateRecallTokens,
|
|
412
412
|
summarizeDisclosureTokens
|
|
413
|
-
} from "./chunk-
|
|
413
|
+
} from "./chunk-UGQEJWR3.js";
|
|
414
414
|
import {
|
|
415
415
|
reorderRecallResultsWithMmr
|
|
416
416
|
} from "./chunk-IIK2PD3F.js";
|
|
@@ -464,12 +464,12 @@ import {
|
|
|
464
464
|
runOperatorRepair,
|
|
465
465
|
runOperatorSetup,
|
|
466
466
|
summarizeNamespaceMaintenanceHealth
|
|
467
|
-
} from "./chunk-
|
|
467
|
+
} from "./chunk-DBVSU3HE.js";
|
|
468
468
|
import {
|
|
469
469
|
NamespaceCatalog,
|
|
470
470
|
isNamespaceKind,
|
|
471
471
|
planNamespaceMaintenance
|
|
472
|
-
} from "./chunk-
|
|
472
|
+
} from "./chunk-YWPCDR3I.js";
|
|
473
473
|
import {
|
|
474
474
|
analyzeSessionIntegrity,
|
|
475
475
|
applySessionRepair,
|
|
@@ -565,7 +565,7 @@ import {
|
|
|
565
565
|
import {
|
|
566
566
|
readProjectedHarmonicGraph,
|
|
567
567
|
searchHarmonicRetrieval
|
|
568
|
-
} from "./chunk-
|
|
568
|
+
} from "./chunk-TFNZXOXK.js";
|
|
569
569
|
import {
|
|
570
570
|
classifyMemoryKind
|
|
571
571
|
} from "./chunk-YAZNBMNF.js";
|
|
@@ -592,13 +592,13 @@ import {
|
|
|
592
592
|
} from "./chunk-LEO4MQ3S.js";
|
|
593
593
|
import {
|
|
594
594
|
ExtractionEngine
|
|
595
|
-
} from "./chunk-
|
|
595
|
+
} from "./chunk-QUC4S2D2.js";
|
|
596
596
|
import {
|
|
597
597
|
wrapWorkLayerContext
|
|
598
598
|
} from "./chunk-EI6V5UXY.js";
|
|
599
599
|
import {
|
|
600
600
|
CONNECTOR_LABEL_MAX_LENGTH
|
|
601
|
-
} from "./chunk-
|
|
601
|
+
} from "./chunk-6TPWIPE3.js";
|
|
602
602
|
import {
|
|
603
603
|
isValidConnectorId
|
|
604
604
|
} from "./chunk-YAVIBVCU.js";
|
|
@@ -657,7 +657,7 @@ import {
|
|
|
657
657
|
buildEntityRecallSection,
|
|
658
658
|
entityRecentTranscriptLookbackHours,
|
|
659
659
|
readRecentEntityTranscriptEntries
|
|
660
|
-
} from "./chunk-
|
|
660
|
+
} from "./chunk-VXMWTRQX.js";
|
|
661
661
|
import {
|
|
662
662
|
boundRecallContextComposition,
|
|
663
663
|
composeMissingMemoryContext,
|
|
@@ -688,7 +688,7 @@ import {
|
|
|
688
688
|
} from "./chunk-SBRUTD5O.js";
|
|
689
689
|
import {
|
|
690
690
|
respondDeepRecall
|
|
691
|
-
} from "./chunk-
|
|
691
|
+
} from "./chunk-IC35ZYLM.js";
|
|
692
692
|
import {
|
|
693
693
|
DEEP_RECALL_MCP_TOOLS
|
|
694
694
|
} from "./chunk-HUSTM6PU.js";
|
|
@@ -707,15 +707,15 @@ import {
|
|
|
707
707
|
import {
|
|
708
708
|
CorpusWatermarkCache,
|
|
709
709
|
computeServiceCorpusCensus
|
|
710
|
-
} from "./chunk-
|
|
710
|
+
} from "./chunk-3QLAOYBL.js";
|
|
711
711
|
import {
|
|
712
712
|
listNamespaces,
|
|
713
713
|
runNamespaceMigration,
|
|
714
714
|
verifyNamespaces
|
|
715
|
-
} from "./chunk-
|
|
715
|
+
} from "./chunk-XE4UYWW3.js";
|
|
716
716
|
import {
|
|
717
717
|
NamespaceStorageRouter
|
|
718
|
-
} from "./chunk-
|
|
718
|
+
} from "./chunk-Z3SXC3MP.js";
|
|
719
719
|
import {
|
|
720
720
|
CrossNamespaceBudget,
|
|
721
721
|
toBudgetWarning
|
|
@@ -732,12 +732,12 @@ import {
|
|
|
732
732
|
} from "./chunk-7G5NTS7F.js";
|
|
733
733
|
import {
|
|
734
734
|
refreshConvergedNamespaces
|
|
735
|
-
} from "./chunk-
|
|
735
|
+
} from "./chunk-PCUDFWX5.js";
|
|
736
736
|
import {
|
|
737
737
|
rebuildMemoryProjection,
|
|
738
738
|
repairMemoryProjection,
|
|
739
739
|
verifyMemoryProjection
|
|
740
|
-
} from "./chunk-
|
|
740
|
+
} from "./chunk-WAJL65KW.js";
|
|
741
741
|
import {
|
|
742
742
|
buildProposedActions,
|
|
743
743
|
buildQualityScore,
|
|
@@ -746,7 +746,7 @@ import {
|
|
|
746
746
|
readMemoryGovernanceRunArtifact,
|
|
747
747
|
restoreMemoryGovernanceRun,
|
|
748
748
|
runMemoryGovernance
|
|
749
|
-
} from "./chunk-
|
|
749
|
+
} from "./chunk-RDO6AMDL.js";
|
|
750
750
|
import {
|
|
751
751
|
collectNativeKnowledgeChunks,
|
|
752
752
|
formatNativeKnowledgeSection,
|
|
@@ -779,7 +779,7 @@ import {
|
|
|
779
779
|
materializeAfterSemanticConsolidation,
|
|
780
780
|
parseConsolidationResponse,
|
|
781
781
|
parseOperatorAwareConsolidationResponse
|
|
782
|
-
} from "./chunk-
|
|
782
|
+
} from "./chunk-JJEQRSYU.js";
|
|
783
783
|
import {
|
|
784
784
|
resolveNamespaceChildRoot
|
|
785
785
|
} from "./chunk-3UXOZBHV.js";
|
|
@@ -795,13 +795,13 @@ import {
|
|
|
795
795
|
} from "./chunk-DEUNUKTD.js";
|
|
796
796
|
import {
|
|
797
797
|
SmartBuffer
|
|
798
|
-
} from "./chunk-
|
|
798
|
+
} from "./chunk-Y7HLGKKU.js";
|
|
799
799
|
import {
|
|
800
800
|
ExtractionDeadlineError,
|
|
801
801
|
ExtractionRunCoordinator,
|
|
802
802
|
ProviderCircuitBreaker,
|
|
803
803
|
classifyExtractionOrigin
|
|
804
|
-
} from "./chunk-
|
|
804
|
+
} from "./chunk-VXUO5JZC.js";
|
|
805
805
|
import {
|
|
806
806
|
ARTIFACT_STATUS_CACHE_TTL_MS,
|
|
807
807
|
BulkImportBatchPartialFailureError,
|
|
@@ -875,7 +875,7 @@ import {
|
|
|
875
875
|
parseBriefingFocus,
|
|
876
876
|
parseBriefingWindow,
|
|
877
877
|
validateBriefingFormat
|
|
878
|
-
} from "./chunk-
|
|
878
|
+
} from "./chunk-6ARSFTLD.js";
|
|
879
879
|
import {
|
|
880
880
|
BriefingTimeoutError,
|
|
881
881
|
withBriefingDeadline
|
|
@@ -940,7 +940,7 @@ import {
|
|
|
940
940
|
validateCorrectionAction,
|
|
941
941
|
validateCorrectionRequest,
|
|
942
942
|
validateRedactionPattern
|
|
943
|
-
} from "./chunk-
|
|
943
|
+
} from "./chunk-5D4NBANY.js";
|
|
944
944
|
import {
|
|
945
945
|
compileCorrectionRule,
|
|
946
946
|
correctionsFilePath,
|
|
@@ -1053,7 +1053,7 @@ import {
|
|
|
1053
1053
|
reconstructFusionInputs,
|
|
1054
1054
|
selfDeps,
|
|
1055
1055
|
serializeFusionDay
|
|
1056
|
-
} from "./chunk-
|
|
1056
|
+
} from "./chunk-YMC4AYJK.js";
|
|
1057
1057
|
import {
|
|
1058
1058
|
buildRetiredFactTombstoneInputs
|
|
1059
1059
|
} from "./chunk-QGVCFVX6.js";
|
|
@@ -1072,12 +1072,12 @@ import {
|
|
|
1072
1072
|
embeddingBacklogExceeds,
|
|
1073
1073
|
isSearchHealthDegraded,
|
|
1074
1074
|
namespaceCollectionName
|
|
1075
|
-
} from "./chunk-
|
|
1075
|
+
} from "./chunk-EDA6CDBT.js";
|
|
1076
1076
|
import {
|
|
1077
1077
|
createConversationIndexRuntime,
|
|
1078
1078
|
createSearchBackend,
|
|
1079
1079
|
isSearchBackendEnabled
|
|
1080
|
-
} from "./chunk-
|
|
1080
|
+
} from "./chunk-QFPNWSVH.js";
|
|
1081
1081
|
import {
|
|
1082
1082
|
NoopSearchBackend
|
|
1083
1083
|
} from "./chunk-CYEPCZN5.js";
|
|
@@ -1204,7 +1204,7 @@ import {
|
|
|
1204
1204
|
RECALL_WHY_MCP_TOOLS,
|
|
1205
1205
|
handleRecallWhyHttpQuery,
|
|
1206
1206
|
handleRecallXrayHttpQuery
|
|
1207
|
-
} from "./chunk-
|
|
1207
|
+
} from "./chunk-WRAK5LLB.js";
|
|
1208
1208
|
import {
|
|
1209
1209
|
runContradictionScan
|
|
1210
1210
|
} from "./chunk-SX4BR26Y.js";
|
|
@@ -1218,7 +1218,7 @@ import {
|
|
|
1218
1218
|
RECALL_DISCLOSURE_LEVELS,
|
|
1219
1219
|
confidenceTier,
|
|
1220
1220
|
isRecallDisclosure
|
|
1221
|
-
} from "./chunk-
|
|
1221
|
+
} from "./chunk-SOGOHLWN.js";
|
|
1222
1222
|
import {
|
|
1223
1223
|
extractJsonCandidates
|
|
1224
1224
|
} from "./chunk-YBA52OKG.js";
|
|
@@ -1241,7 +1241,7 @@ import {
|
|
|
1241
1241
|
} from "./chunk-EAHNSQ7H.js";
|
|
1242
1242
|
import {
|
|
1243
1243
|
splitCanonicalWriteRequest
|
|
1244
|
-
} from "./chunk-
|
|
1244
|
+
} from "./chunk-CGOPDXLK.js";
|
|
1245
1245
|
import {
|
|
1246
1246
|
buildWithBriefingLocation,
|
|
1247
1247
|
daySummaryAutoOptions,
|
|
@@ -1284,10 +1284,10 @@ import {
|
|
|
1284
1284
|
retainedCategoryAlias,
|
|
1285
1285
|
suggestionSubmitRequestSchema,
|
|
1286
1286
|
validateRequest
|
|
1287
|
-
} from "./chunk-
|
|
1287
|
+
} from "./chunk-PRE7R3RQ.js";
|
|
1288
1288
|
import {
|
|
1289
1289
|
exportCapsule
|
|
1290
|
-
} from "./chunk-
|
|
1290
|
+
} from "./chunk-BUKK5SWA.js";
|
|
1291
1291
|
import {
|
|
1292
1292
|
CAPSULE_ID_PATTERN
|
|
1293
1293
|
} from "./chunk-WEHSQBFR.js";
|
|
@@ -4871,7 +4871,7 @@ var ExtractionQueueCoordinator = class {
|
|
|
4871
4871
|
preemptSeq = 0;
|
|
4872
4872
|
/** Resolves the processor's park while a new task arrives mid-drain. */
|
|
4873
4873
|
wake;
|
|
4874
|
-
constructor(concurrency =
|
|
4874
|
+
constructor(concurrency = 2) {
|
|
4875
4875
|
this.concurrency = Number.isInteger(concurrency) && concurrency >= 1 ? concurrency : 1;
|
|
4876
4876
|
}
|
|
4877
4877
|
/** Current queue depth (idle-wait + test seam). */
|
|
@@ -21133,7 +21133,7 @@ var ExtractionDrain = class {
|
|
|
21133
21133
|
return { action: "continue", result: mergeDrainResults(aggregate, result), aggregate };
|
|
21134
21134
|
}
|
|
21135
21135
|
if (verdict === "deferred") return { action: "return", result: mergeDrainResults(aggregate, result), aggregate };
|
|
21136
|
-
if (result.failureClass === "provider_retryable" || result.failureClass === "auth_config") {
|
|
21136
|
+
if (result.failureClass === "provider_retryable" || result.failureClass === "auth_config" || result.failureClass === "output_truncated") {
|
|
21137
21137
|
return { action: "return", result: mergeDrainResults(aggregate, result), aggregate };
|
|
21138
21138
|
}
|
|
21139
21139
|
return { action: "failed", result, aggregate };
|
|
@@ -22868,12 +22868,16 @@ var OrchestratorInitCoordinator = class {
|
|
|
22868
22868
|
activeStartupEpoch = null;
|
|
22869
22869
|
startupClosed = false;
|
|
22870
22870
|
maintenanceNamespacesFlight;
|
|
22871
|
+
startupBackendEnsureFlight;
|
|
22871
22872
|
correctionCatalogFlight;
|
|
22872
22873
|
recoveredCorrectionNamespaces = /* @__PURE__ */ new Set();
|
|
22873
22874
|
correctionRecoveryChain = Promise.resolve();
|
|
22874
22875
|
startupEpochAbort;
|
|
22875
22876
|
startupStorageWrites = /* @__PURE__ */ new Set();
|
|
22876
22877
|
startupWarmups = /* @__PURE__ */ new Set();
|
|
22878
|
+
/** Default-namespace collection state from the initialize() check,
|
|
22879
|
+
* epoch-scoped so a retired lifecycle's outcome cannot leak into the next. */
|
|
22880
|
+
startupDefaultCollection;
|
|
22877
22881
|
/** Retire the current lifecycle without constructing a lazy coordinator. */
|
|
22878
22882
|
retireStartupEpoch() {
|
|
22879
22883
|
this.startupEpochAbort?.controller.abort();
|
|
@@ -22914,6 +22918,7 @@ var OrchestratorInitCoordinator = class {
|
|
|
22914
22918
|
this.startupClosed = false;
|
|
22915
22919
|
this.maintenanceNamespacesFlight = void 0;
|
|
22916
22920
|
this.correctionCatalogFlight = void 0;
|
|
22921
|
+
this.startupDefaultCollection = void 0;
|
|
22917
22922
|
this.recoveredCorrectionNamespaces = /* @__PURE__ */ new Set();
|
|
22918
22923
|
this.correctionRecoveryChain = Promise.resolve();
|
|
22919
22924
|
return epoch;
|
|
@@ -23196,6 +23201,7 @@ var OrchestratorInitCoordinator = class {
|
|
|
23196
23201
|
const defaultState = states.find(
|
|
23197
23202
|
(entry) => entry.namespace === this.deps.config.defaultNamespace
|
|
23198
23203
|
)?.state ?? "unknown";
|
|
23204
|
+
this.startupDefaultCollection = { epoch, state: defaultState };
|
|
23199
23205
|
if (defaultState === "missing") {
|
|
23200
23206
|
await this.deps.disposeSearchBackendIfNeeded();
|
|
23201
23207
|
if (!this.isCurrentStartupEpoch(epoch)) {
|
|
@@ -23262,33 +23268,11 @@ var OrchestratorInitCoordinator = class {
|
|
|
23262
23268
|
const epoch = this.currentOrNewStartupEpoch();
|
|
23263
23269
|
if (epoch === null) return;
|
|
23264
23270
|
const lifecycleCaps = resolveMemoryLifecycleCapabilities(this.deps.config);
|
|
23265
|
-
if (this.deps.qmd.isAvailable() && resolveQmdCapabilities(this.deps.config).qmdMaintenance) {
|
|
23266
|
-
|
|
23267
|
-
|
|
23268
|
-
|
|
23269
|
-
if (signal.aborted || !this.isCurrentStartupEpoch(epoch)) return;
|
|
23270
|
-
if (resolveNamespaceCapabilities(this.deps.config).namespaces) {
|
|
23271
|
-
await this.deps.namespaceSearchRouter.updateNamespaces(
|
|
23272
|
-
discovery.namespaces,
|
|
23273
|
-
{ signal }
|
|
23274
|
-
);
|
|
23275
|
-
} else {
|
|
23276
|
-
await this.deps.qmd.update({ signal });
|
|
23277
|
-
}
|
|
23278
|
-
if (signal.aborted || !this.isCurrentStartupEpoch(epoch)) return;
|
|
23279
|
-
log.info("QMD startup sync: complete");
|
|
23280
|
-
if (discovery.complete) {
|
|
23281
|
-
this.deps.deferredSyncSucceeded = true;
|
|
23282
|
-
} else {
|
|
23283
|
-
this.deps.deferredSyncSucceeded = false;
|
|
23284
|
-
log.warn("QMD startup sync used configured namespace fallback; retry remains armed");
|
|
23285
|
-
}
|
|
23286
|
-
} catch (err) {
|
|
23287
|
-
log.warn(`QMD startup sync failed (non-fatal): ${err}`);
|
|
23271
|
+
if (this.deps.qmd.isAvailable() && !resolveQmdCapabilities(this.deps.config).qmdMaintenance) {
|
|
23272
|
+
const collection = this.startupDefaultCollection;
|
|
23273
|
+
if (collection?.epoch === epoch && (collection.state === "present" || collection.state === "skipped")) {
|
|
23274
|
+
this.deps.deferredSyncSucceeded = true;
|
|
23288
23275
|
}
|
|
23289
|
-
} else if (!this.deps.qmd.isAvailable()) {
|
|
23290
|
-
} else {
|
|
23291
|
-
this.deps.deferredSyncSucceeded = true;
|
|
23292
23276
|
}
|
|
23293
23277
|
if (signal.aborted || !this.isCurrentStartupEpoch(epoch)) return;
|
|
23294
23278
|
const factHashWarm = (async () => {
|
|
@@ -23435,11 +23419,25 @@ var OrchestratorInitCoordinator = class {
|
|
|
23435
23419
|
}
|
|
23436
23420
|
log.info("orchestrator initialized (full \u2014 deferred steps complete)");
|
|
23437
23421
|
}
|
|
23422
|
+
/**
|
|
23423
|
+
* Readiness level of startupSearchSync (#3518): probe, catalog-union
|
|
23424
|
+
* collection ensure, and the missing-collection noop swap — WITHOUT the
|
|
23425
|
+
* corpus-wide index update. The awaited ready path and the warm-up gate use
|
|
23426
|
+
* this so readiness waits only on the probe, the collection and the model
|
|
23427
|
+
* warm-up; the corpus update runs after ready under the server retry loop
|
|
23428
|
+
* via startupSearchSync. Returns true when the backend is usable for
|
|
23429
|
+
* warm-up search, false while unavailable, retired, or noop-disposed.
|
|
23430
|
+
*/
|
|
23431
|
+
async startupSearchReadySync(signal) {
|
|
23432
|
+
const ensured = await this.ensureStartupSearchBackend(signal);
|
|
23433
|
+
return ensured.state === "ready";
|
|
23434
|
+
}
|
|
23438
23435
|
/**
|
|
23439
23436
|
* Namespace-aware startup search sync. Re-probes QMD, ensures collections
|
|
23440
23437
|
* (namespace-aware when namespacesEnabled), runs update, and warms up search.
|
|
23441
23438
|
* Designed for server retry paths that run after the deferred init completes
|
|
23442
|
-
* when QMD was not available during initial startup
|
|
23439
|
+
* when QMD was not available during initial startup — and, since #3518, for
|
|
23440
|
+
* the post-ready corpus update the deferred path no longer awaits.
|
|
23443
23441
|
*
|
|
23444
23442
|
* Accepts an optional AbortSignal so callers can interrupt the sync during
|
|
23445
23443
|
* shutdown. The signal is checked between phases and forwarded into the QMD
|
|
@@ -23449,63 +23447,14 @@ var OrchestratorInitCoordinator = class {
|
|
|
23449
23447
|
* Returns true if the sync succeeded (QMD now available), false otherwise.
|
|
23450
23448
|
*/
|
|
23451
23449
|
async startupSearchSync(signal) {
|
|
23452
|
-
|
|
23453
|
-
|
|
23454
|
-
|
|
23455
|
-
const available = await this.probeForStartupEpoch(epoch, signal);
|
|
23456
|
-
if (!available) return false;
|
|
23450
|
+
const ensured = await this.ensureStartupSearchBackend(signal);
|
|
23451
|
+
if (ensured.state !== "ready") return false;
|
|
23452
|
+
const { epoch, discovery } = ensured;
|
|
23457
23453
|
if (signal?.aborted || !this.isCurrentStartupEpoch(epoch)) {
|
|
23458
|
-
log.debug("startupSearchSync: aborted or retired after
|
|
23459
|
-
return false;
|
|
23460
|
-
}
|
|
23461
|
-
log.info(`startupSearchSync: backend now available ${this.deps.qmd.debugStatus()}`);
|
|
23462
|
-
if (resolveNamespaceCapabilities(this.deps.config).namespaces) {
|
|
23463
|
-
this.deps.namespaceSearchRouter.clearCache();
|
|
23464
|
-
}
|
|
23465
|
-
const discovery = await this.startupNamespaces(epoch);
|
|
23466
|
-
if (signal?.aborted || !this.isCurrentStartupEpoch(epoch)) {
|
|
23467
|
-
log.debug("startupSearchSync: aborted or retired after namespace discovery");
|
|
23454
|
+
log.debug("startupSearchSync: aborted or retired after the shared backend ensure");
|
|
23468
23455
|
return false;
|
|
23469
23456
|
}
|
|
23470
23457
|
const namespaces = discovery.namespaces;
|
|
23471
|
-
const states = await Promise.all(
|
|
23472
|
-
namespaces.map(async (namespace) => {
|
|
23473
|
-
const epochAbort = this.linkedEpochAbortController(epoch, signal);
|
|
23474
|
-
try {
|
|
23475
|
-
return {
|
|
23476
|
-
namespace,
|
|
23477
|
-
state: resolveNamespaceCapabilities(this.deps.config).namespaces ? await this.deps.namespaceSearchRouter.ensureNamespaceCollection(
|
|
23478
|
-
namespace,
|
|
23479
|
-
{ signal: epochAbort.controller.signal }
|
|
23480
|
-
) : await this.deps.qmd.ensureCollection(
|
|
23481
|
-
this.deps.config.memoryDir,
|
|
23482
|
-
this.deps.config.qmdCollection,
|
|
23483
|
-
{ signal: epochAbort.controller.signal }
|
|
23484
|
-
)
|
|
23485
|
-
};
|
|
23486
|
-
} finally {
|
|
23487
|
-
epochAbort.dispose();
|
|
23488
|
-
}
|
|
23489
|
-
})
|
|
23490
|
-
);
|
|
23491
|
-
if (signal?.aborted || !this.isCurrentStartupEpoch(epoch)) {
|
|
23492
|
-
log.debug("startupSearchSync: aborted or retired after ensureCollection");
|
|
23493
|
-
return false;
|
|
23494
|
-
}
|
|
23495
|
-
const defaultState = states.find((e) => e.namespace === this.deps.config.defaultNamespace)?.state ?? "unknown";
|
|
23496
|
-
if (defaultState === "missing") {
|
|
23497
|
-
await this.deps.disposeSearchBackendIfNeeded();
|
|
23498
|
-
if (signal?.aborted || !this.isCurrentStartupEpoch(epoch)) {
|
|
23499
|
-
log.debug("startupSearchSync: aborted or retired while disposing a missing backend");
|
|
23500
|
-
return false;
|
|
23501
|
-
}
|
|
23502
|
-
if ("available" in this.deps.qmd) {
|
|
23503
|
-
this.deps.qmd.available = false;
|
|
23504
|
-
}
|
|
23505
|
-
this.deps.qmd = new NoopSearchBackend();
|
|
23506
|
-
log.warn("startupSearchSync: search collection missing; disabling search (fallback retrieval remains enabled)");
|
|
23507
|
-
return false;
|
|
23508
|
-
}
|
|
23509
23458
|
if (resolveQmdCapabilities(this.deps.config).qmdMaintenance) {
|
|
23510
23459
|
try {
|
|
23511
23460
|
const failTsBefore = "lastUpdateFailedAtMs" in this.deps.qmd ? this.deps.qmd.lastUpdateFailedAtMs : null;
|
|
@@ -23573,6 +23522,132 @@ var OrchestratorInitCoordinator = class {
|
|
|
23573
23522
|
}
|
|
23574
23523
|
return discovery.complete;
|
|
23575
23524
|
}
|
|
23525
|
+
/**
|
|
23526
|
+
* The shared readiness half of the startup sync: probe, catalog-union
|
|
23527
|
+
* namespace discovery, per-namespace collection ensure, and the
|
|
23528
|
+
* missing-collection noop swap. `startupSearchReadySync` exposes this for
|
|
23529
|
+
* the awaited ready path; `startupSearchSync` layers the corpus update and
|
|
23530
|
+
* warm-up search on top for the post-ready retry loop (#3518). Concurrent
|
|
23531
|
+
* callers join one in-flight `runStartupSearchBackend` so nobody observes
|
|
23532
|
+
* the mid-run state where probe() has already flipped isAvailable() (#3518
|
|
23533
|
+
* second read).
|
|
23534
|
+
*/
|
|
23535
|
+
ensureStartupSearchBackend(signal) {
|
|
23536
|
+
if (signal?.aborted) return Promise.resolve({ state: "retired" });
|
|
23537
|
+
let flight = this.startupBackendEnsureFlight;
|
|
23538
|
+
if (!flight || !this.isCurrentStartupEpoch(flight.epoch) || flight.controller.signal.aborted) {
|
|
23539
|
+
const epoch = this.currentOrNewStartupEpoch();
|
|
23540
|
+
if (epoch === null) return Promise.resolve({ state: "retired" });
|
|
23541
|
+
const controller = new AbortController();
|
|
23542
|
+
const run = this.runStartupSearchBackend(epoch, controller.signal);
|
|
23543
|
+
const next = {
|
|
23544
|
+
epoch,
|
|
23545
|
+
promise: run,
|
|
23546
|
+
controller,
|
|
23547
|
+
liveCallers: 0,
|
|
23548
|
+
cleanup: []
|
|
23549
|
+
};
|
|
23550
|
+
this.startupBackendEnsureFlight = next;
|
|
23551
|
+
const settle = () => {
|
|
23552
|
+
if (this.startupBackendEnsureFlight === next) {
|
|
23553
|
+
this.startupBackendEnsureFlight = void 0;
|
|
23554
|
+
}
|
|
23555
|
+
for (const remove of next.cleanup) remove();
|
|
23556
|
+
};
|
|
23557
|
+
run.then(settle, settle);
|
|
23558
|
+
flight = next;
|
|
23559
|
+
}
|
|
23560
|
+
flight.liveCallers += 1;
|
|
23561
|
+
if (signal) {
|
|
23562
|
+
const held = flight;
|
|
23563
|
+
return new Promise((resolve4, reject) => {
|
|
23564
|
+
const onCallerAbort = () => {
|
|
23565
|
+
held.liveCallers -= 1;
|
|
23566
|
+
if (held.liveCallers <= 0) held.controller.abort();
|
|
23567
|
+
resolve4({ state: "retired" });
|
|
23568
|
+
};
|
|
23569
|
+
signal.addEventListener("abort", onCallerAbort, { once: true });
|
|
23570
|
+
held.cleanup.push(() => signal.removeEventListener("abort", onCallerAbort));
|
|
23571
|
+
held.promise.then(
|
|
23572
|
+
(result) => {
|
|
23573
|
+
signal.removeEventListener("abort", onCallerAbort);
|
|
23574
|
+
resolve4(result);
|
|
23575
|
+
},
|
|
23576
|
+
(err) => {
|
|
23577
|
+
signal.removeEventListener("abort", onCallerAbort);
|
|
23578
|
+
reject(err);
|
|
23579
|
+
}
|
|
23580
|
+
);
|
|
23581
|
+
});
|
|
23582
|
+
}
|
|
23583
|
+
return flight.promise;
|
|
23584
|
+
}
|
|
23585
|
+
async runStartupSearchBackend(epoch, signal) {
|
|
23586
|
+
if (signal?.aborted || !this.isCurrentStartupEpoch(epoch)) {
|
|
23587
|
+
return { state: "retired" };
|
|
23588
|
+
}
|
|
23589
|
+
const available = await this.probeForStartupEpoch(epoch, signal);
|
|
23590
|
+
if (!available) return { state: "unavailable" };
|
|
23591
|
+
if (signal?.aborted || !this.isCurrentStartupEpoch(epoch)) {
|
|
23592
|
+
log.debug("startupSearchSync: aborted or retired after probe");
|
|
23593
|
+
return { state: "retired" };
|
|
23594
|
+
}
|
|
23595
|
+
log.info(`startupSearchSync: backend now available ${this.deps.qmd.debugStatus()}`);
|
|
23596
|
+
if (resolveNamespaceCapabilities(this.deps.config).namespaces) {
|
|
23597
|
+
this.deps.namespaceSearchRouter.clearCache();
|
|
23598
|
+
}
|
|
23599
|
+
const discovery = await this.startupNamespaces(epoch);
|
|
23600
|
+
if (signal?.aborted || !this.isCurrentStartupEpoch(epoch)) {
|
|
23601
|
+
log.debug("startupSearchSync: aborted or retired after namespace discovery");
|
|
23602
|
+
return { state: "retired" };
|
|
23603
|
+
}
|
|
23604
|
+
const namespaces = discovery.namespaces;
|
|
23605
|
+
const states = await Promise.all(
|
|
23606
|
+
namespaces.map(async (namespace) => {
|
|
23607
|
+
const epochAbort = this.linkedEpochAbortController(epoch, signal);
|
|
23608
|
+
try {
|
|
23609
|
+
return {
|
|
23610
|
+
namespace,
|
|
23611
|
+
state: resolveNamespaceCapabilities(this.deps.config).namespaces ? await this.deps.namespaceSearchRouter.ensureNamespaceCollection(
|
|
23612
|
+
namespace,
|
|
23613
|
+
{ signal: epochAbort.controller.signal }
|
|
23614
|
+
) : await this.deps.qmd.ensureCollection(
|
|
23615
|
+
this.deps.config.memoryDir,
|
|
23616
|
+
this.deps.config.qmdCollection,
|
|
23617
|
+
{ signal: epochAbort.controller.signal }
|
|
23618
|
+
)
|
|
23619
|
+
};
|
|
23620
|
+
} finally {
|
|
23621
|
+
epochAbort.dispose();
|
|
23622
|
+
}
|
|
23623
|
+
})
|
|
23624
|
+
);
|
|
23625
|
+
if (signal?.aborted || !this.isCurrentStartupEpoch(epoch)) {
|
|
23626
|
+
log.debug("startupSearchSync: aborted or retired after ensureCollection");
|
|
23627
|
+
return { state: "retired" };
|
|
23628
|
+
}
|
|
23629
|
+
const defaultState = states.find((e) => e.namespace === this.deps.config.defaultNamespace)?.state ?? "unknown";
|
|
23630
|
+
if (defaultState === "missing") {
|
|
23631
|
+
await this.deps.disposeSearchBackendIfNeeded();
|
|
23632
|
+
if (signal?.aborted || !this.isCurrentStartupEpoch(epoch)) {
|
|
23633
|
+
log.debug("startupSearchSync: aborted or retired while disposing a missing backend");
|
|
23634
|
+
return { state: "retired" };
|
|
23635
|
+
}
|
|
23636
|
+
if ("available" in this.deps.qmd) {
|
|
23637
|
+
this.deps.qmd.available = false;
|
|
23638
|
+
}
|
|
23639
|
+
this.deps.qmd = new NoopSearchBackend();
|
|
23640
|
+
log.warn("startupSearchSync: search collection missing; disabling search (fallback retrieval remains enabled)");
|
|
23641
|
+
return { state: "missing" };
|
|
23642
|
+
}
|
|
23643
|
+
if (defaultState === "unknown") {
|
|
23644
|
+
log.warn(
|
|
23645
|
+
"startupSearchSync: collection check could not verify the default collection; the sync stays unready until a retry verifies it"
|
|
23646
|
+
);
|
|
23647
|
+
return { state: "degraded" };
|
|
23648
|
+
}
|
|
23649
|
+
return { state: "ready", epoch, discovery };
|
|
23650
|
+
}
|
|
23576
23651
|
};
|
|
23577
23652
|
|
|
23578
23653
|
// src/orchestration/persistence-index.ts
|
|
@@ -28316,11 +28391,13 @@ var Orchestrator = class {
|
|
|
28316
28391
|
initPromise = null;
|
|
28317
28392
|
resolveInit = null;
|
|
28318
28393
|
/**
|
|
28319
|
-
* Resolves when deferred initialization (
|
|
28320
|
-
*
|
|
28321
|
-
*
|
|
28322
|
-
*
|
|
28323
|
-
*
|
|
28394
|
+
* Resolves when deferred initialization (warmup, caches, cron) completes.
|
|
28395
|
+
* CLI and http-serve callers that need `qmd.isAvailable()` to reflect
|
|
28396
|
+
* reality should `await orchestrator.deferredReady` after `initialize()`.
|
|
28397
|
+
* The corpus-wide QMD update is deliberately NOT part of this gate (#3518):
|
|
28398
|
+
* it runs after ready under the server retry loop, so `deferredReady` no
|
|
28399
|
+
* longer implies a synced index. Gateway callers can ignore it — recall()
|
|
28400
|
+
* degrades gracefully when QMD isn't ready yet.
|
|
28324
28401
|
*
|
|
28325
28402
|
* Also resolves (without error) when `initialize()` throws before reaching
|
|
28326
28403
|
* the deferred-init phase, so callers never hang on a permanently-pending
|
|
@@ -28334,10 +28411,11 @@ var Orchestrator = class {
|
|
|
28334
28411
|
resolveDeferredReady = null;
|
|
28335
28412
|
deferredInitAbort = null;
|
|
28336
28413
|
/**
|
|
28337
|
-
* Whether the
|
|
28338
|
-
*
|
|
28339
|
-
*
|
|
28340
|
-
*
|
|
28414
|
+
* Whether the startup corpus update completed successfully. The deferred
|
|
28415
|
+
* init no longer runs it (#3518), so this stays false until the server
|
|
28416
|
+
* retry loop's startupSearchSync() lands — including when
|
|
28417
|
+
* `qmd.isAvailable()` is true, because availability only means the probe
|
|
28418
|
+
* and collection ensure succeeded, not that the index is current.
|
|
28341
28419
|
*/
|
|
28342
28420
|
deferredSyncSucceeded = false;
|
|
28343
28421
|
/**
|
|
@@ -29125,6 +29203,11 @@ var Orchestrator = class {
|
|
|
29125
29203
|
signal
|
|
29126
29204
|
);
|
|
29127
29205
|
}
|
|
29206
|
+
async startupSearchReadySync(signal) {
|
|
29207
|
+
return this.orchestratorInitCoordinator.startupSearchReadySync(
|
|
29208
|
+
signal
|
|
29209
|
+
);
|
|
29210
|
+
}
|
|
29128
29211
|
async runPatternReinforcement(options = {}) {
|
|
29129
29212
|
return this.workspaceOpsCoordinator.runPatternReinforcement(
|
|
29130
29213
|
options
|
|
@@ -51150,7 +51233,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
|
|
|
51150
51233
|
}
|
|
51151
51234
|
}
|
|
51152
51235
|
if (sourceArchive.endsWith(".enc")) {
|
|
51153
|
-
const { isEncryptedCapsuleFile } = await import("./capsule-crypto-
|
|
51236
|
+
const { isEncryptedCapsuleFile } = await import("./capsule-crypto-GWVG7LGC.js");
|
|
51154
51237
|
const encDetected = await isEncryptedCapsuleFile(sourceArchive).catch(() => true);
|
|
51155
51238
|
if (encDetected) {
|
|
51156
51239
|
throw new Error(
|
|
@@ -51313,7 +51396,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
|
|
|
51313
51396
|
const { parseExportBundle } = await import("./transfer/types.js");
|
|
51314
51397
|
let decryptedBuf;
|
|
51315
51398
|
try {
|
|
51316
|
-
const { decryptCapsuleFileInMemory } = await import("./capsule-crypto-
|
|
51399
|
+
const { decryptCapsuleFileInMemory } = await import("./capsule-crypto-GWVG7LGC.js");
|
|
51317
51400
|
decryptedBuf = await decryptCapsuleFileInMemory(archivePath, memoryDir);
|
|
51318
51401
|
} catch (decErr) {
|
|
51319
51402
|
const msg = decErr instanceof Error ? decErr.message : String(decErr);
|
|
@@ -67560,4 +67643,4 @@ export {
|
|
|
67560
67643
|
EngramAccessService,
|
|
67561
67644
|
AccessAdminOpsSurface
|
|
67562
67645
|
};
|
|
67563
|
-
//# sourceMappingURL=chunk-
|
|
67646
|
+
//# sourceMappingURL=chunk-GDAFI6HH.js.map
|