@remnic/core 10.0.160 → 10.0.162
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-VGCK2RV3.js → chunk-23ODHEVS.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-HKOGDSNS.js → chunk-4NBUHYUV.js} +2 -2
- package/dist/{chunk-O7CHKXSF.js → chunk-6CXSNIEP.js} +2 -2
- package/dist/{chunk-VVVFT435.js → chunk-6HGN4OEA.js} +4 -4
- package/dist/{chunk-XTAGZXOM.js → chunk-6POF4N2J.js} +2 -2
- package/dist/{chunk-BDFOBNLX.js → chunk-6RW6I6X4.js} +2 -2
- package/dist/{chunk-773QSFFN.js → chunk-6TPWIPE3.js} +2 -2
- package/dist/{chunk-TGH7AU5U.js → chunk-A6E54ILI.js} +8 -8
- package/dist/{chunk-R45L4TV6.js → chunk-BUKK5SWA.js} +6 -6
- package/dist/{chunk-JUYTXFDV.js → chunk-CGOPDXLK.js} +2 -2
- package/dist/{chunk-HIPHLFIQ.js → chunk-D2EJNBZS.js} +2 -2
- package/dist/{chunk-B7F2G57I.js → chunk-D67DA4DI.js} +2 -2
- package/dist/{chunk-MWEJL436.js → chunk-DQATNC34.js} +2 -2
- package/dist/{chunk-TLJV42SZ.js → chunk-EDA6CDBT.js} +2 -2
- package/dist/{chunk-K3KSTSGM.js → chunk-FDR5YW6B.js} +2 -2
- package/dist/{chunk-CA7XVRHZ.js → chunk-FEHCP2ZN.js} +2 -2
- package/dist/{chunk-V24YLFJW.js → chunk-FNV6ZPCY.js} +6 -4
- package/dist/chunk-FNV6ZPCY.js.map +1 -0
- package/dist/{chunk-6NPLVV6M.js → chunk-HG4OCRKD.js} +2 -2
- package/dist/{chunk-DFK6AQWM.js → chunk-IC35ZYLM.js} +2 -2
- package/dist/{chunk-3RHD5TF5.js → chunk-IF5YAXBY.js} +264 -160
- package/dist/chunk-IF5YAXBY.js.map +1 -0
- package/dist/{chunk-BTCZVBV3.js → chunk-IVZNNRBF.js} +3 -3
- package/dist/{chunk-NBHMEYM4.js → chunk-JAPUF4X7.js} +2 -2
- package/dist/{chunk-YAFMWQRL.js → chunk-JGIRGWS6.js} +4 -4
- package/dist/chunk-JGIRGWS6.js.map +1 -0
- package/dist/{chunk-BNQJKWWZ.js → chunk-K3FH3LAQ.js} +4 -4
- package/dist/{chunk-6PVS6JET.js → chunk-LW5MFJBC.js} +2 -2
- package/dist/{chunk-PJFSSXXY.js → chunk-MATBXHXU.js} +2 -2
- package/dist/{chunk-DS24H6M4.js → chunk-NFL4LC22.js} +2 -2
- package/dist/{chunk-BXLOS5AJ.js → chunk-OWHERGF2.js} +2 -2
- package/dist/{chunk-I6IKSDUO.js → chunk-PRE7R3RQ.js} +2 -2
- package/dist/{chunk-3UKPFFMS.js → chunk-PZSVAVQW.js} +2 -2
- package/dist/{chunk-UADAXWUJ.js → chunk-Q2WMKMMX.js} +7 -7
- package/dist/{chunk-TFA6HPOA.js → chunk-QCP75JGO.js} +5 -5
- package/dist/{chunk-MZETCZJF.js → chunk-QFPNWSVH.js} +5 -5
- package/dist/{chunk-AQ6GV5MU.js → chunk-QQPXWVRX.js} +2 -2
- package/dist/{chunk-BT5TAOXG.js → chunk-QRGJLMH7.js} +3 -3
- package/dist/{chunk-52EM4UQU.js → chunk-QUC4S2D2.js} +10 -9
- package/dist/chunk-QUC4S2D2.js.map +1 -0
- package/dist/{chunk-YKAQKIPR.js → chunk-R4HZOXUY.js} +2 -2
- package/dist/{chunk-ZWSSUWKO.js → chunk-S3QTZMSD.js} +2 -2
- package/dist/{chunk-XC5BRK7J.js → chunk-SC7GUUGO.js} +5 -5
- package/dist/{chunk-5UE45DLK.js → chunk-SHFN2RW5.js} +2 -2
- package/dist/{chunk-TBOCVPXL.js → chunk-SHLEP3HN.js} +3 -3
- package/dist/{chunk-UR6COSJN.js → chunk-SMAXKFKS.js} +3 -3
- package/dist/{chunk-V3D2OOVE.js → chunk-SOO75MET.js} +2 -2
- package/dist/{chunk-2YJYBAR3.js → chunk-T4V3GVX3.js} +2 -2
- package/dist/{chunk-QDY4TSKK.js → chunk-UGTLRFN4.js} +3 -3
- package/dist/{chunk-NFTFMMKT.js → chunk-UVEHXFSC.js} +2 -2
- package/dist/{chunk-DQEMWVMT.js → chunk-UVYI6VIX.js} +1 -1
- package/dist/{chunk-H6OTEBPK.js → chunk-VEPXXXTO.js} +2 -2
- package/dist/{chunk-PCCNK3RX.js → chunk-VXUO5JZC.js} +11 -13
- package/dist/chunk-VXUO5JZC.js.map +1 -0
- package/dist/{chunk-7PCWJZXG.js → chunk-WE7WPSUA.js} +2 -2
- package/dist/{chunk-VXKPZ6BO.js → chunk-Y7HLGKKU.js} +2 -2
- package/dist/{chunk-KJ3Z7JHF.js → chunk-YCOHRQWO.js} +1 -1
- package/dist/chunk-YCOHRQWO.js.map +1 -0
- package/dist/{chunk-L2DACC2T.js → chunk-ZVK6TWGF.js} +2 -2
- package/dist/{chunk-KTZNXQWL.js → chunk-ZZZT6OR2.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-queue-coordinator.d.ts +11 -2
- package/dist/orchestration/extraction-queue-coordinator.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 +2 -8
- 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/extraction-error-classification.ts +13 -2
- 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 +29 -5
- package/src/orchestration/extraction-queue-drain-budget.test.ts +74 -0
- 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-flush.test.ts +31 -22
- 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 +2 -8
- package/dist/chunk-3RHD5TF5.js.map +0 -1
- package/dist/chunk-52EM4UQU.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-VGCK2RV3.js.map → chunk-23ODHEVS.js.map} +0 -0
- /package/dist/{chunk-HKOGDSNS.js.map → chunk-4NBUHYUV.js.map} +0 -0
- /package/dist/{chunk-O7CHKXSF.js.map → chunk-6CXSNIEP.js.map} +0 -0
- /package/dist/{chunk-VVVFT435.js.map → chunk-6HGN4OEA.js.map} +0 -0
- /package/dist/{chunk-XTAGZXOM.js.map → chunk-6POF4N2J.js.map} +0 -0
- /package/dist/{chunk-BDFOBNLX.js.map → chunk-6RW6I6X4.js.map} +0 -0
- /package/dist/{chunk-773QSFFN.js.map → chunk-6TPWIPE3.js.map} +0 -0
- /package/dist/{chunk-TGH7AU5U.js.map → chunk-A6E54ILI.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-HIPHLFIQ.js.map → chunk-D2EJNBZS.js.map} +0 -0
- /package/dist/{chunk-B7F2G57I.js.map → chunk-D67DA4DI.js.map} +0 -0
- /package/dist/{chunk-MWEJL436.js.map → chunk-DQATNC34.js.map} +0 -0
- /package/dist/{chunk-TLJV42SZ.js.map → chunk-EDA6CDBT.js.map} +0 -0
- /package/dist/{chunk-K3KSTSGM.js.map → chunk-FDR5YW6B.js.map} +0 -0
- /package/dist/{chunk-CA7XVRHZ.js.map → chunk-FEHCP2ZN.js.map} +0 -0
- /package/dist/{chunk-6NPLVV6M.js.map → chunk-HG4OCRKD.js.map} +0 -0
- /package/dist/{chunk-DFK6AQWM.js.map → chunk-IC35ZYLM.js.map} +0 -0
- /package/dist/{chunk-BTCZVBV3.js.map → chunk-IVZNNRBF.js.map} +0 -0
- /package/dist/{chunk-NBHMEYM4.js.map → chunk-JAPUF4X7.js.map} +0 -0
- /package/dist/{chunk-BNQJKWWZ.js.map → chunk-K3FH3LAQ.js.map} +0 -0
- /package/dist/{chunk-6PVS6JET.js.map → chunk-LW5MFJBC.js.map} +0 -0
- /package/dist/{chunk-PJFSSXXY.js.map → chunk-MATBXHXU.js.map} +0 -0
- /package/dist/{chunk-DS24H6M4.js.map → chunk-NFL4LC22.js.map} +0 -0
- /package/dist/{chunk-BXLOS5AJ.js.map → chunk-OWHERGF2.js.map} +0 -0
- /package/dist/{chunk-I6IKSDUO.js.map → chunk-PRE7R3RQ.js.map} +0 -0
- /package/dist/{chunk-3UKPFFMS.js.map → chunk-PZSVAVQW.js.map} +0 -0
- /package/dist/{chunk-UADAXWUJ.js.map → chunk-Q2WMKMMX.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-AQ6GV5MU.js.map → chunk-QQPXWVRX.js.map} +0 -0
- /package/dist/{chunk-BT5TAOXG.js.map → chunk-QRGJLMH7.js.map} +0 -0
- /package/dist/{chunk-YKAQKIPR.js.map → chunk-R4HZOXUY.js.map} +0 -0
- /package/dist/{chunk-ZWSSUWKO.js.map → chunk-S3QTZMSD.js.map} +0 -0
- /package/dist/{chunk-XC5BRK7J.js.map → chunk-SC7GUUGO.js.map} +0 -0
- /package/dist/{chunk-5UE45DLK.js.map → chunk-SHFN2RW5.js.map} +0 -0
- /package/dist/{chunk-TBOCVPXL.js.map → chunk-SHLEP3HN.js.map} +0 -0
- /package/dist/{chunk-UR6COSJN.js.map → chunk-SMAXKFKS.js.map} +0 -0
- /package/dist/{chunk-V3D2OOVE.js.map → chunk-SOO75MET.js.map} +0 -0
- /package/dist/{chunk-2YJYBAR3.js.map → chunk-T4V3GVX3.js.map} +0 -0
- /package/dist/{chunk-QDY4TSKK.js.map → chunk-UGTLRFN4.js.map} +0 -0
- /package/dist/{chunk-NFTFMMKT.js.map → chunk-UVEHXFSC.js.map} +0 -0
- /package/dist/{chunk-DQEMWVMT.js.map → chunk-UVYI6VIX.js.map} +0 -0
- /package/dist/{chunk-H6OTEBPK.js.map → chunk-VEPXXXTO.js.map} +0 -0
- /package/dist/{chunk-7PCWJZXG.js.map → chunk-WE7WPSUA.js.map} +0 -0
- /package/dist/{chunk-VXKPZ6BO.js.map → chunk-Y7HLGKKU.js.map} +0 -0
- /package/dist/{chunk-L2DACC2T.js.map → chunk-ZVK6TWGF.js.map} +0 -0
- /package/dist/{chunk-KTZNXQWL.js.map → chunk-ZZZT6OR2.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-FDR5YW6B.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-SHFN2RW5.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-Q2WMKMMX.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-T4V3GVX3.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-SHLEP3HN.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-QRGJLMH7.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-6POF4N2J.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-S3QTZMSD.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-LW5MFJBC.js";
|
|
287
287
|
import {
|
|
288
288
|
compareVerifiedSemanticRuleResults,
|
|
289
289
|
searchVerifiedSemanticRules
|
|
290
|
-
} from "./chunk-
|
|
290
|
+
} from "./chunk-DQATNC34.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-D2EJNBZS.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-UGTLRFN4.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-HG4OCRKD.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-VEPXXXTO.js";
|
|
409
409
|
import {
|
|
410
410
|
buildXraySnapshot,
|
|
411
411
|
estimateRecallTokens,
|
|
412
412
|
summarizeDisclosureTokens
|
|
413
|
-
} from "./chunk-
|
|
413
|
+
} from "./chunk-6CXSNIEP.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-A6E54ILI.js";
|
|
468
468
|
import {
|
|
469
469
|
NamespaceCatalog,
|
|
470
470
|
isNamespaceKind,
|
|
471
471
|
planNamespaceMaintenance
|
|
472
|
-
} from "./chunk-
|
|
472
|
+
} from "./chunk-D67DA4DI.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-JAPUF4X7.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-QQPXWVRX.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-23ODHEVS.js";
|
|
711
711
|
import {
|
|
712
712
|
listNamespaces,
|
|
713
713
|
runNamespaceMigration,
|
|
714
714
|
verifyNamespaces
|
|
715
|
-
} from "./chunk-
|
|
715
|
+
} from "./chunk-IVZNNRBF.js";
|
|
716
716
|
import {
|
|
717
717
|
NamespaceStorageRouter
|
|
718
|
-
} from "./chunk-
|
|
718
|
+
} from "./chunk-UVEHXFSC.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-FEHCP2ZN.js";
|
|
736
736
|
import {
|
|
737
737
|
rebuildMemoryProjection,
|
|
738
738
|
repairMemoryProjection,
|
|
739
739
|
verifyMemoryProjection
|
|
740
|
-
} from "./chunk-
|
|
740
|
+
} from "./chunk-SMAXKFKS.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-WE7WPSUA.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-MATBXHXU.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-ZZZT6OR2.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-6HGN4OEA.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-JGIRGWS6.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-SOO75MET.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-YCOHRQWO.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";
|
|
@@ -4974,13 +4974,34 @@ var ExtractionQueueCoordinator = class {
|
|
|
4974
4974
|
resumeAccepting() {
|
|
4975
4975
|
this.accepting = true;
|
|
4976
4976
|
}
|
|
4977
|
-
/**
|
|
4978
|
-
|
|
4977
|
+
/**
|
|
4978
|
+
* Stop new producers and wait for all accepted work to finish. `timeoutMs`
|
|
4979
|
+
* is the nominal budget; `tailBudgetMs` bounds the grace wait past it so a
|
|
4980
|
+
* task that never settles cannot stall shutdown indefinitely. The flag is
|
|
4981
|
+
* honest: false when the tail expired with work outstanding, so the
|
|
4982
|
+
* caller's "did not drain" path is live. Callers persist buffered turns
|
|
4983
|
+
* before this drain runs, so an abandoned tail loses nothing durable.
|
|
4984
|
+
*/
|
|
4985
|
+
async pauseAndDrain(timeoutMs = 6e4, tailBudgetMs = 15e3) {
|
|
4979
4986
|
this.stopAccepting();
|
|
4987
|
+
const startedMs = Date.now();
|
|
4980
4988
|
if (await this.waitForIdle(timeoutMs)) return true;
|
|
4981
|
-
log.warn(
|
|
4982
|
-
|
|
4983
|
-
|
|
4989
|
+
log.warn(
|
|
4990
|
+
`extraction queue drain exceeded ${timeoutMs}ms; waiting up to ${tailBudgetMs}ms more for accepted work to settle (${this.describeOutstanding()})`
|
|
4991
|
+
);
|
|
4992
|
+
if (await this.waitForIdle(tailBudgetMs)) return true;
|
|
4993
|
+
log.warn(
|
|
4994
|
+
`extraction queue drain abandoned after ${Date.now() - startedMs}ms; ${this.describeOutstanding()} still outstanding`
|
|
4995
|
+
);
|
|
4996
|
+
return false;
|
|
4997
|
+
}
|
|
4998
|
+
/** Name what the drain is still waiting on, for timeout diagnostics. */
|
|
4999
|
+
describeOutstanding() {
|
|
5000
|
+
const names = [
|
|
5001
|
+
...[...this.preemptSlots.values()].map((s) => `in-flight '${s.key ?? "(unkeyed)"}'`),
|
|
5002
|
+
...this.queue.map((e) => `queued '${e.key ?? "(unkeyed)"}'`)
|
|
5003
|
+
];
|
|
5004
|
+
return names.length > 0 ? `outstanding: ${names.join(", ")}` : "outstanding: (none)";
|
|
4984
5005
|
}
|
|
4985
5006
|
/**
|
|
4986
5007
|
* Background queue processor. Runs up to `concurrency` tasks at a time,
|
|
@@ -21112,7 +21133,7 @@ var ExtractionDrain = class {
|
|
|
21112
21133
|
return { action: "continue", result: mergeDrainResults(aggregate, result), aggregate };
|
|
21113
21134
|
}
|
|
21114
21135
|
if (verdict === "deferred") return { action: "return", result: mergeDrainResults(aggregate, result), aggregate };
|
|
21115
|
-
if (result.failureClass === "provider_retryable" || result.failureClass === "auth_config") {
|
|
21136
|
+
if (result.failureClass === "provider_retryable" || result.failureClass === "auth_config" || result.failureClass === "output_truncated") {
|
|
21116
21137
|
return { action: "return", result: mergeDrainResults(aggregate, result), aggregate };
|
|
21117
21138
|
}
|
|
21118
21139
|
return { action: "failed", result, aggregate };
|
|
@@ -22847,12 +22868,16 @@ var OrchestratorInitCoordinator = class {
|
|
|
22847
22868
|
activeStartupEpoch = null;
|
|
22848
22869
|
startupClosed = false;
|
|
22849
22870
|
maintenanceNamespacesFlight;
|
|
22871
|
+
startupBackendEnsureFlight;
|
|
22850
22872
|
correctionCatalogFlight;
|
|
22851
22873
|
recoveredCorrectionNamespaces = /* @__PURE__ */ new Set();
|
|
22852
22874
|
correctionRecoveryChain = Promise.resolve();
|
|
22853
22875
|
startupEpochAbort;
|
|
22854
22876
|
startupStorageWrites = /* @__PURE__ */ new Set();
|
|
22855
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;
|
|
22856
22881
|
/** Retire the current lifecycle without constructing a lazy coordinator. */
|
|
22857
22882
|
retireStartupEpoch() {
|
|
22858
22883
|
this.startupEpochAbort?.controller.abort();
|
|
@@ -22893,6 +22918,7 @@ var OrchestratorInitCoordinator = class {
|
|
|
22893
22918
|
this.startupClosed = false;
|
|
22894
22919
|
this.maintenanceNamespacesFlight = void 0;
|
|
22895
22920
|
this.correctionCatalogFlight = void 0;
|
|
22921
|
+
this.startupDefaultCollection = void 0;
|
|
22896
22922
|
this.recoveredCorrectionNamespaces = /* @__PURE__ */ new Set();
|
|
22897
22923
|
this.correctionRecoveryChain = Promise.resolve();
|
|
22898
22924
|
return epoch;
|
|
@@ -23175,6 +23201,7 @@ var OrchestratorInitCoordinator = class {
|
|
|
23175
23201
|
const defaultState = states.find(
|
|
23176
23202
|
(entry) => entry.namespace === this.deps.config.defaultNamespace
|
|
23177
23203
|
)?.state ?? "unknown";
|
|
23204
|
+
this.startupDefaultCollection = { epoch, state: defaultState };
|
|
23178
23205
|
if (defaultState === "missing") {
|
|
23179
23206
|
await this.deps.disposeSearchBackendIfNeeded();
|
|
23180
23207
|
if (!this.isCurrentStartupEpoch(epoch)) {
|
|
@@ -23241,33 +23268,11 @@ var OrchestratorInitCoordinator = class {
|
|
|
23241
23268
|
const epoch = this.currentOrNewStartupEpoch();
|
|
23242
23269
|
if (epoch === null) return;
|
|
23243
23270
|
const lifecycleCaps = resolveMemoryLifecycleCapabilities(this.deps.config);
|
|
23244
|
-
if (this.deps.qmd.isAvailable() && resolveQmdCapabilities(this.deps.config).qmdMaintenance) {
|
|
23245
|
-
|
|
23246
|
-
|
|
23247
|
-
|
|
23248
|
-
if (signal.aborted || !this.isCurrentStartupEpoch(epoch)) return;
|
|
23249
|
-
if (resolveNamespaceCapabilities(this.deps.config).namespaces) {
|
|
23250
|
-
await this.deps.namespaceSearchRouter.updateNamespaces(
|
|
23251
|
-
discovery.namespaces,
|
|
23252
|
-
{ signal }
|
|
23253
|
-
);
|
|
23254
|
-
} else {
|
|
23255
|
-
await this.deps.qmd.update({ signal });
|
|
23256
|
-
}
|
|
23257
|
-
if (signal.aborted || !this.isCurrentStartupEpoch(epoch)) return;
|
|
23258
|
-
log.info("QMD startup sync: complete");
|
|
23259
|
-
if (discovery.complete) {
|
|
23260
|
-
this.deps.deferredSyncSucceeded = true;
|
|
23261
|
-
} else {
|
|
23262
|
-
this.deps.deferredSyncSucceeded = false;
|
|
23263
|
-
log.warn("QMD startup sync used configured namespace fallback; retry remains armed");
|
|
23264
|
-
}
|
|
23265
|
-
} catch (err) {
|
|
23266
|
-
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;
|
|
23267
23275
|
}
|
|
23268
|
-
} else if (!this.deps.qmd.isAvailable()) {
|
|
23269
|
-
} else {
|
|
23270
|
-
this.deps.deferredSyncSucceeded = true;
|
|
23271
23276
|
}
|
|
23272
23277
|
if (signal.aborted || !this.isCurrentStartupEpoch(epoch)) return;
|
|
23273
23278
|
const factHashWarm = (async () => {
|
|
@@ -23414,11 +23419,25 @@ var OrchestratorInitCoordinator = class {
|
|
|
23414
23419
|
}
|
|
23415
23420
|
log.info("orchestrator initialized (full \u2014 deferred steps complete)");
|
|
23416
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
|
+
}
|
|
23417
23435
|
/**
|
|
23418
23436
|
* Namespace-aware startup search sync. Re-probes QMD, ensures collections
|
|
23419
23437
|
* (namespace-aware when namespacesEnabled), runs update, and warms up search.
|
|
23420
23438
|
* Designed for server retry paths that run after the deferred init completes
|
|
23421
|
-
* 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.
|
|
23422
23441
|
*
|
|
23423
23442
|
* Accepts an optional AbortSignal so callers can interrupt the sync during
|
|
23424
23443
|
* shutdown. The signal is checked between phases and forwarded into the QMD
|
|
@@ -23428,63 +23447,14 @@ var OrchestratorInitCoordinator = class {
|
|
|
23428
23447
|
* Returns true if the sync succeeded (QMD now available), false otherwise.
|
|
23429
23448
|
*/
|
|
23430
23449
|
async startupSearchSync(signal) {
|
|
23431
|
-
|
|
23432
|
-
|
|
23433
|
-
|
|
23434
|
-
const available = await this.probeForStartupEpoch(epoch, signal);
|
|
23435
|
-
if (!available) return false;
|
|
23450
|
+
const ensured = await this.ensureStartupSearchBackend(signal);
|
|
23451
|
+
if (ensured.state !== "ready") return false;
|
|
23452
|
+
const { epoch, discovery } = ensured;
|
|
23436
23453
|
if (signal?.aborted || !this.isCurrentStartupEpoch(epoch)) {
|
|
23437
|
-
log.debug("startupSearchSync: aborted or retired after
|
|
23438
|
-
return false;
|
|
23439
|
-
}
|
|
23440
|
-
log.info(`startupSearchSync: backend now available ${this.deps.qmd.debugStatus()}`);
|
|
23441
|
-
if (resolveNamespaceCapabilities(this.deps.config).namespaces) {
|
|
23442
|
-
this.deps.namespaceSearchRouter.clearCache();
|
|
23443
|
-
}
|
|
23444
|
-
const discovery = await this.startupNamespaces(epoch);
|
|
23445
|
-
if (signal?.aborted || !this.isCurrentStartupEpoch(epoch)) {
|
|
23446
|
-
log.debug("startupSearchSync: aborted or retired after namespace discovery");
|
|
23454
|
+
log.debug("startupSearchSync: aborted or retired after the shared backend ensure");
|
|
23447
23455
|
return false;
|
|
23448
23456
|
}
|
|
23449
23457
|
const namespaces = discovery.namespaces;
|
|
23450
|
-
const states = await Promise.all(
|
|
23451
|
-
namespaces.map(async (namespace) => {
|
|
23452
|
-
const epochAbort = this.linkedEpochAbortController(epoch, signal);
|
|
23453
|
-
try {
|
|
23454
|
-
return {
|
|
23455
|
-
namespace,
|
|
23456
|
-
state: resolveNamespaceCapabilities(this.deps.config).namespaces ? await this.deps.namespaceSearchRouter.ensureNamespaceCollection(
|
|
23457
|
-
namespace,
|
|
23458
|
-
{ signal: epochAbort.controller.signal }
|
|
23459
|
-
) : await this.deps.qmd.ensureCollection(
|
|
23460
|
-
this.deps.config.memoryDir,
|
|
23461
|
-
this.deps.config.qmdCollection,
|
|
23462
|
-
{ signal: epochAbort.controller.signal }
|
|
23463
|
-
)
|
|
23464
|
-
};
|
|
23465
|
-
} finally {
|
|
23466
|
-
epochAbort.dispose();
|
|
23467
|
-
}
|
|
23468
|
-
})
|
|
23469
|
-
);
|
|
23470
|
-
if (signal?.aborted || !this.isCurrentStartupEpoch(epoch)) {
|
|
23471
|
-
log.debug("startupSearchSync: aborted or retired after ensureCollection");
|
|
23472
|
-
return false;
|
|
23473
|
-
}
|
|
23474
|
-
const defaultState = states.find((e) => e.namespace === this.deps.config.defaultNamespace)?.state ?? "unknown";
|
|
23475
|
-
if (defaultState === "missing") {
|
|
23476
|
-
await this.deps.disposeSearchBackendIfNeeded();
|
|
23477
|
-
if (signal?.aborted || !this.isCurrentStartupEpoch(epoch)) {
|
|
23478
|
-
log.debug("startupSearchSync: aborted or retired while disposing a missing backend");
|
|
23479
|
-
return false;
|
|
23480
|
-
}
|
|
23481
|
-
if ("available" in this.deps.qmd) {
|
|
23482
|
-
this.deps.qmd.available = false;
|
|
23483
|
-
}
|
|
23484
|
-
this.deps.qmd = new NoopSearchBackend();
|
|
23485
|
-
log.warn("startupSearchSync: search collection missing; disabling search (fallback retrieval remains enabled)");
|
|
23486
|
-
return false;
|
|
23487
|
-
}
|
|
23488
23458
|
if (resolveQmdCapabilities(this.deps.config).qmdMaintenance) {
|
|
23489
23459
|
try {
|
|
23490
23460
|
const failTsBefore = "lastUpdateFailedAtMs" in this.deps.qmd ? this.deps.qmd.lastUpdateFailedAtMs : null;
|
|
@@ -23552,6 +23522,132 @@ var OrchestratorInitCoordinator = class {
|
|
|
23552
23522
|
}
|
|
23553
23523
|
return discovery.complete;
|
|
23554
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
|
+
}
|
|
23555
23651
|
};
|
|
23556
23652
|
|
|
23557
23653
|
// src/orchestration/persistence-index.ts
|
|
@@ -28295,11 +28391,13 @@ var Orchestrator = class {
|
|
|
28295
28391
|
initPromise = null;
|
|
28296
28392
|
resolveInit = null;
|
|
28297
28393
|
/**
|
|
28298
|
-
* Resolves when deferred initialization (
|
|
28299
|
-
*
|
|
28300
|
-
*
|
|
28301
|
-
*
|
|
28302
|
-
*
|
|
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.
|
|
28303
28401
|
*
|
|
28304
28402
|
* Also resolves (without error) when `initialize()` throws before reaching
|
|
28305
28403
|
* the deferred-init phase, so callers never hang on a permanently-pending
|
|
@@ -28313,10 +28411,11 @@ var Orchestrator = class {
|
|
|
28313
28411
|
resolveDeferredReady = null;
|
|
28314
28412
|
deferredInitAbort = null;
|
|
28315
28413
|
/**
|
|
28316
|
-
* Whether the
|
|
28317
|
-
*
|
|
28318
|
-
*
|
|
28319
|
-
*
|
|
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.
|
|
28320
28419
|
*/
|
|
28321
28420
|
deferredSyncSucceeded = false;
|
|
28322
28421
|
/**
|
|
@@ -29104,6 +29203,11 @@ var Orchestrator = class {
|
|
|
29104
29203
|
signal
|
|
29105
29204
|
);
|
|
29106
29205
|
}
|
|
29206
|
+
async startupSearchReadySync(signal) {
|
|
29207
|
+
return this.orchestratorInitCoordinator.startupSearchReadySync(
|
|
29208
|
+
signal
|
|
29209
|
+
);
|
|
29210
|
+
}
|
|
29107
29211
|
async runPatternReinforcement(options = {}) {
|
|
29108
29212
|
return this.workspaceOpsCoordinator.runPatternReinforcement(
|
|
29109
29213
|
options
|
|
@@ -51129,7 +51233,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
|
|
|
51129
51233
|
}
|
|
51130
51234
|
}
|
|
51131
51235
|
if (sourceArchive.endsWith(".enc")) {
|
|
51132
|
-
const { isEncryptedCapsuleFile } = await import("./capsule-crypto-
|
|
51236
|
+
const { isEncryptedCapsuleFile } = await import("./capsule-crypto-GWVG7LGC.js");
|
|
51133
51237
|
const encDetected = await isEncryptedCapsuleFile(sourceArchive).catch(() => true);
|
|
51134
51238
|
if (encDetected) {
|
|
51135
51239
|
throw new Error(
|
|
@@ -51292,7 +51396,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
|
|
|
51292
51396
|
const { parseExportBundle } = await import("./transfer/types.js");
|
|
51293
51397
|
let decryptedBuf;
|
|
51294
51398
|
try {
|
|
51295
|
-
const { decryptCapsuleFileInMemory } = await import("./capsule-crypto-
|
|
51399
|
+
const { decryptCapsuleFileInMemory } = await import("./capsule-crypto-GWVG7LGC.js");
|
|
51296
51400
|
decryptedBuf = await decryptCapsuleFileInMemory(archivePath, memoryDir);
|
|
51297
51401
|
} catch (decErr) {
|
|
51298
51402
|
const msg = decErr instanceof Error ? decErr.message : String(decErr);
|
|
@@ -67539,4 +67643,4 @@ export {
|
|
|
67539
67643
|
EngramAccessService,
|
|
67540
67644
|
AccessAdminOpsSurface
|
|
67541
67645
|
};
|
|
67542
|
-
//# sourceMappingURL=chunk-
|
|
67646
|
+
//# sourceMappingURL=chunk-IF5YAXBY.js.map
|