@remnic/core 10.0.82 → 10.0.84
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 +22 -22
- package/dist/access-authorization-probe.js +23 -23
- package/dist/access-boundary.js +22 -22
- package/dist/access-cli.js +66 -66
- package/dist/access-extraction-force-flush.js +22 -22
- package/dist/access-http-briefing.js +23 -23
- package/dist/access-http-query.js +24 -24
- package/dist/access-http.js +38 -38
- package/dist/access-identity-continuity-surface.js +22 -22
- package/dist/access-lcm-surface.js +22 -22
- package/dist/access-mcp.js +31 -31
- package/dist/access-namespace-preflight.js +22 -22
- package/dist/access-observe-write-surface.js +22 -22
- package/dist/access-operations-batch.js +23 -23
- package/dist/access-operations.d.ts +1 -1
- package/dist/access-operations.js +30 -30
- package/dist/access-recall-concurrency.js +22 -22
- package/dist/access-recall-response.js +22 -22
- package/dist/access-recall-surface.js +22 -22
- package/dist/access-service.js +22 -22
- package/dist/access-surface-catalog.js +24 -24
- package/dist/active-recall.js +4 -4
- package/dist/{auto-sync-XHSS3XPL.js → auto-sync-C7E6G7Y2.js} +5 -5
- package/dist/briefing.js +5 -5
- package/dist/buffer.js +3 -3
- package/dist/calibration.js +3 -3
- package/dist/causal-consolidation.js +6 -6
- package/dist/{chunk-XBNO56HC.js → chunk-2IW5PT7U.js} +2 -2
- package/dist/{chunk-USMMLI6W.js → chunk-2XJZLSXE.js} +10 -10
- package/dist/{chunk-E2ROXLW7.js → chunk-3JPTUCD7.js} +5 -5
- package/dist/{chunk-6OGFQ5GH.js → chunk-3T3VHXUH.js} +2 -2
- package/dist/{chunk-HK3CUTAG.js → chunk-4EACCIPO.js} +2 -2
- package/dist/{chunk-NVYY2TJG.js → chunk-54FDG7K7.js} +2 -2
- package/dist/{chunk-YH5AF3BU.js → chunk-6LCWKS62.js} +17 -17
- package/dist/{chunk-2XG7QECM.js → chunk-6QYPL6NI.js} +3 -3
- package/dist/{chunk-JHJP2IAU.js → chunk-B4ZU34JQ.js} +3 -3
- package/dist/{chunk-P44DNJC5.js → chunk-B74NPUHT.js} +17 -17
- package/dist/{chunk-SW6OAWK7.js → chunk-BDN3TDGV.js} +2 -2
- package/dist/{chunk-TSITK6QK.js → chunk-BK4FBHZ3.js} +2 -2
- package/dist/{chunk-ROEAEZPX.js → chunk-BK7AJUWB.js} +5 -5
- package/dist/{chunk-S57QBPTA.js → chunk-DPPLNZ3A.js} +4 -6
- package/dist/chunk-DPPLNZ3A.js.map +1 -0
- package/dist/{chunk-RIBCP4DJ.js → chunk-EBOHFZI4.js} +2 -2
- package/dist/{chunk-YSA4CYTK.js → chunk-FUOAIJKQ.js} +2 -2
- package/dist/{chunk-SPYFXSFZ.js → chunk-FVRTCYZ3.js} +2 -2
- package/dist/{chunk-YGECOOTF.js → chunk-GCAQ3VUJ.js} +2 -2
- package/dist/{chunk-MNVIZDHU.js → chunk-GGJFRVRD.js} +2 -2
- package/dist/{chunk-4MTJ2PZ6.js → chunk-GQZSGXR6.js} +2 -2
- package/dist/{chunk-IG2ZBW4R.js → chunk-HLKUZW42.js} +32 -32
- package/dist/{chunk-35RSL5B4.js → chunk-HPFVZPRH.js} +2 -2
- package/dist/{chunk-IDGCL5OP.js → chunk-HQGATKG2.js} +2 -2
- package/dist/{chunk-LNHBYT3F.js → chunk-IN4OFAHX.js} +2 -2
- package/dist/{chunk-Y5HZFIQO.js → chunk-IR4C3DP2.js} +1 -1
- package/dist/{chunk-PCSQRQPJ.js → chunk-K3B72DKJ.js} +3 -3
- package/dist/{chunk-UKTUWCAN.js → chunk-K6RTQZA4.js} +2 -2
- package/dist/{chunk-B7PLF3HW.js → chunk-KESJ5XX3.js} +2 -2
- package/dist/{chunk-B36ACJG7.js → chunk-KFLD7ZZG.js} +2 -2
- package/dist/{chunk-SMSJOWVE.js → chunk-KJCL2FZO.js} +2 -2
- package/dist/{chunk-BK6JG2SF.js → chunk-KO3YBHOV.js} +2 -2
- package/dist/{chunk-UFXST7UZ.js → chunk-LECSS7EE.js} +2 -2
- package/dist/{chunk-ROZA6YVV.js → chunk-LTDLJCMQ.js} +2 -2
- package/dist/{chunk-TA5ALUX2.js → chunk-MPGLM2VU.js} +2 -2
- package/dist/{chunk-BSBGI4BD.js → chunk-MSIRVXQ3.js} +2 -2
- package/dist/{chunk-7IQ5HYBJ.js → chunk-NUSAAN75.js} +2 -2
- package/dist/{chunk-QOP7PR7O.js → chunk-OQSSQOKQ.js} +2 -2
- package/dist/{chunk-36B5VPRU.js → chunk-PCQWKMOL.js} +2 -2
- package/dist/{chunk-X3KFSJLQ.js → chunk-PJYK7HH2.js} +4 -4
- package/dist/{chunk-JDQEQE2R.js → chunk-QFEDITXM.js} +2 -2
- package/dist/{chunk-5XS4CYJ4.js → chunk-QZBTIYKD.js} +2 -2
- package/dist/{chunk-TWN75QO6.js → chunk-QZSIDSB2.js} +2 -2
- package/dist/{chunk-EFRMEOZQ.js → chunk-T77AX6DG.js} +3 -3
- package/dist/{chunk-VBNXDC7P.js → chunk-TFLPDNQV.js} +2 -2
- package/dist/{chunk-K4SVTZWP.js → chunk-TLHF75OR.js} +7 -7
- package/dist/{chunk-FR3CAR2P.js → chunk-VLMBSGQF.js} +5 -5
- package/dist/{chunk-3M7YP42P.js → chunk-VZELUMKK.js} +2 -2
- package/dist/{chunk-D4WBMLPD.js → chunk-WAD32CZG.js} +2 -2
- package/dist/{chunk-FOQ7TW2T.js → chunk-WBDIZWJQ.js} +2 -2
- package/dist/{chunk-GMZUF3GN.js → chunk-WC475JOG.js} +3 -3
- package/dist/{chunk-LE4MQ2WF.js → chunk-WHQXWFH7.js} +2 -2
- package/dist/{chunk-SLORPQZT.js → chunk-WV254W4V.js} +2 -2
- package/dist/{chunk-ORVPS4ZW.js → chunk-WYPCJK6K.js} +2 -2
- package/dist/{chunk-YXUNSOHD.js → chunk-XHGYZRVW.js} +3 -3
- package/dist/{chunk-NBFHOQIO.js → chunk-XRBHIR7Q.js} +2 -2
- package/dist/{chunk-D3WNJF7D.js → chunk-XT45WCKX.js} +10 -10
- package/dist/{chunk-NBFXHX6E.js → chunk-XYP5WBDO.js} +2 -2
- package/dist/{chunk-GXVK754R.js → chunk-XYTQJD7F.js} +2 -2
- package/dist/{chunk-L7BOS7KV.js → chunk-YAUHSNPB.js} +2 -2
- package/dist/{chunk-JNW5N6FZ.js → chunk-YOEYL6CH.js} +2 -2
- package/dist/{chunk-HUF4S4MY.js → chunk-YUTG35M4.js} +2 -2
- package/dist/{chunk-UO4YPMZG.js → chunk-Z3DDQXM4.js} +3 -3
- package/dist/{chunk-TLTBACYX.js → chunk-ZGFLIK5H.js} +2 -2
- package/dist/{chunk-6WULHFNJ.js → chunk-ZJJFUEPO.js} +2 -2
- package/dist/{chunk-DJDJBMFX.js → chunk-ZU3NJNO7.js} +5 -2
- package/dist/chunk-ZU3NJNO7.js.map +1 -0
- package/dist/{chunk-UCPH56YX.js → chunk-ZU5JDLOH.js} +2 -2
- package/dist/cli.js +48 -48
- package/dist/coding/export-okf-codegraph.js +4 -4
- package/dist/compounding/engine.js +6 -6
- package/dist/config.js +4 -4
- package/dist/connectors/codex-materialize-runner.js +5 -5
- package/dist/connectors/index.js +5 -5
- package/dist/convergence-refresh.js +7 -7
- package/dist/corpus-watermark.js +7 -7
- package/dist/deep-recall-policy-llm.js +3 -3
- package/dist/entity-mention-index-cache.d.ts.map +1 -1
- package/dist/entity-mention-index-cache.js +2 -1
- package/dist/entity-retrieval.js +7 -6
- package/dist/external-wiki-access.js +23 -23
- package/dist/extraction-faithfulness.js +3 -3
- package/dist/extraction-judge.js +3 -3
- package/dist/extraction.js +10 -10
- package/dist/fallback-llm-codex-subscription.d.ts.map +1 -1
- package/dist/fallback-llm-codex-subscription.js +1 -1
- package/dist/fallback-llm.js +2 -2
- package/dist/harmonic-retrieval.js +5 -5
- package/dist/index.js +77 -77
- package/dist/local-llm.js +2 -2
- package/dist/location/index.js +7 -7
- package/dist/maintenance/memory-governance.js +5 -5
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +5 -5
- package/dist/maintenance/rebuild-memory-projection-runner.js +7 -7
- package/dist/maintenance/rebuild-memory-projection.js +6 -6
- package/dist/memory-browse-operations.js +23 -23
- package/dist/memory-browse.js +3 -3
- package/dist/namespaces/migrate.js +6 -6
- package/dist/namespaces/storage.js +5 -5
- package/dist/operator-doctor-corpus.js +8 -8
- package/dist/operator-toolkit.js +13 -13
- package/dist/orchestration/backlog-scheduler.js +67 -67
- package/dist/orchestration/buffer-drain-runner.js +67 -67
- package/dist/orchestration/maintenance.js +16 -16
- package/dist/orchestrator.js +66 -66
- package/dist/recall-navigation-operations.js +23 -23
- package/dist/recall-navigation.js +22 -22
- package/dist/recall-planner-llm.js +2 -2
- package/dist/recall-state-view-admission.js +3 -3
- package/dist/recall-why-service.js +3 -3
- package/dist/resume-bundles.js +4 -4
- package/dist/semantic-consolidation.js +6 -6
- package/dist/semantic-rule-promotion.js +5 -5
- package/dist/semantic-rule-verifier.js +5 -5
- package/dist/source-agent-qualifier.js +8 -8
- package/dist/standup/build.js +5 -5
- package/dist/storage.js +4 -4
- package/dist/summarizer.js +4 -4
- package/dist/support-passport/index.js +25 -25
- package/dist/transfer/export-okf.js +5 -5
- package/dist/verified-recall.js +5 -5
- package/dist/who-knows-cli.js +6 -6
- package/dist/who-knows.js +5 -5
- package/package.json +2 -2
- package/src/access-mcp-correction-tools.test.ts +45 -0
- package/src/compounding/weekly-evidence.test.ts +237 -0
- package/src/entity-mention-index-cache.ts +1 -6
- package/src/fallback-llm-codex-subscription.ts +4 -0
- package/src/local-llm-json-schema-fallback.test.ts +33 -0
- package/src/maintenance/rebuild-memory-projection-runner.test.ts +90 -0
- package/src/orchestration/full-corpus-heap-guard.test.ts +52 -0
- package/src/projection-rebuild-config.test.ts +79 -0
- package/src/storage/entity-store-symlink.test.ts +44 -0
- package/src/utils/malformed-entity-record.test.ts +69 -0
- package/dist/chunk-DJDJBMFX.js.map +0 -1
- package/dist/chunk-S57QBPTA.js.map +0 -1
- /package/dist/{auto-sync-XHSS3XPL.js.map → auto-sync-C7E6G7Y2.js.map} +0 -0
- /package/dist/{chunk-XBNO56HC.js.map → chunk-2IW5PT7U.js.map} +0 -0
- /package/dist/{chunk-USMMLI6W.js.map → chunk-2XJZLSXE.js.map} +0 -0
- /package/dist/{chunk-E2ROXLW7.js.map → chunk-3JPTUCD7.js.map} +0 -0
- /package/dist/{chunk-6OGFQ5GH.js.map → chunk-3T3VHXUH.js.map} +0 -0
- /package/dist/{chunk-HK3CUTAG.js.map → chunk-4EACCIPO.js.map} +0 -0
- /package/dist/{chunk-NVYY2TJG.js.map → chunk-54FDG7K7.js.map} +0 -0
- /package/dist/{chunk-YH5AF3BU.js.map → chunk-6LCWKS62.js.map} +0 -0
- /package/dist/{chunk-2XG7QECM.js.map → chunk-6QYPL6NI.js.map} +0 -0
- /package/dist/{chunk-JHJP2IAU.js.map → chunk-B4ZU34JQ.js.map} +0 -0
- /package/dist/{chunk-P44DNJC5.js.map → chunk-B74NPUHT.js.map} +0 -0
- /package/dist/{chunk-SW6OAWK7.js.map → chunk-BDN3TDGV.js.map} +0 -0
- /package/dist/{chunk-TSITK6QK.js.map → chunk-BK4FBHZ3.js.map} +0 -0
- /package/dist/{chunk-ROEAEZPX.js.map → chunk-BK7AJUWB.js.map} +0 -0
- /package/dist/{chunk-RIBCP4DJ.js.map → chunk-EBOHFZI4.js.map} +0 -0
- /package/dist/{chunk-YSA4CYTK.js.map → chunk-FUOAIJKQ.js.map} +0 -0
- /package/dist/{chunk-SPYFXSFZ.js.map → chunk-FVRTCYZ3.js.map} +0 -0
- /package/dist/{chunk-YGECOOTF.js.map → chunk-GCAQ3VUJ.js.map} +0 -0
- /package/dist/{chunk-MNVIZDHU.js.map → chunk-GGJFRVRD.js.map} +0 -0
- /package/dist/{chunk-4MTJ2PZ6.js.map → chunk-GQZSGXR6.js.map} +0 -0
- /package/dist/{chunk-IG2ZBW4R.js.map → chunk-HLKUZW42.js.map} +0 -0
- /package/dist/{chunk-35RSL5B4.js.map → chunk-HPFVZPRH.js.map} +0 -0
- /package/dist/{chunk-IDGCL5OP.js.map → chunk-HQGATKG2.js.map} +0 -0
- /package/dist/{chunk-LNHBYT3F.js.map → chunk-IN4OFAHX.js.map} +0 -0
- /package/dist/{chunk-Y5HZFIQO.js.map → chunk-IR4C3DP2.js.map} +0 -0
- /package/dist/{chunk-PCSQRQPJ.js.map → chunk-K3B72DKJ.js.map} +0 -0
- /package/dist/{chunk-UKTUWCAN.js.map → chunk-K6RTQZA4.js.map} +0 -0
- /package/dist/{chunk-B7PLF3HW.js.map → chunk-KESJ5XX3.js.map} +0 -0
- /package/dist/{chunk-B36ACJG7.js.map → chunk-KFLD7ZZG.js.map} +0 -0
- /package/dist/{chunk-SMSJOWVE.js.map → chunk-KJCL2FZO.js.map} +0 -0
- /package/dist/{chunk-BK6JG2SF.js.map → chunk-KO3YBHOV.js.map} +0 -0
- /package/dist/{chunk-UFXST7UZ.js.map → chunk-LECSS7EE.js.map} +0 -0
- /package/dist/{chunk-ROZA6YVV.js.map → chunk-LTDLJCMQ.js.map} +0 -0
- /package/dist/{chunk-TA5ALUX2.js.map → chunk-MPGLM2VU.js.map} +0 -0
- /package/dist/{chunk-BSBGI4BD.js.map → chunk-MSIRVXQ3.js.map} +0 -0
- /package/dist/{chunk-7IQ5HYBJ.js.map → chunk-NUSAAN75.js.map} +0 -0
- /package/dist/{chunk-QOP7PR7O.js.map → chunk-OQSSQOKQ.js.map} +0 -0
- /package/dist/{chunk-36B5VPRU.js.map → chunk-PCQWKMOL.js.map} +0 -0
- /package/dist/{chunk-X3KFSJLQ.js.map → chunk-PJYK7HH2.js.map} +0 -0
- /package/dist/{chunk-JDQEQE2R.js.map → chunk-QFEDITXM.js.map} +0 -0
- /package/dist/{chunk-5XS4CYJ4.js.map → chunk-QZBTIYKD.js.map} +0 -0
- /package/dist/{chunk-TWN75QO6.js.map → chunk-QZSIDSB2.js.map} +0 -0
- /package/dist/{chunk-EFRMEOZQ.js.map → chunk-T77AX6DG.js.map} +0 -0
- /package/dist/{chunk-VBNXDC7P.js.map → chunk-TFLPDNQV.js.map} +0 -0
- /package/dist/{chunk-K4SVTZWP.js.map → chunk-TLHF75OR.js.map} +0 -0
- /package/dist/{chunk-FR3CAR2P.js.map → chunk-VLMBSGQF.js.map} +0 -0
- /package/dist/{chunk-3M7YP42P.js.map → chunk-VZELUMKK.js.map} +0 -0
- /package/dist/{chunk-D4WBMLPD.js.map → chunk-WAD32CZG.js.map} +0 -0
- /package/dist/{chunk-FOQ7TW2T.js.map → chunk-WBDIZWJQ.js.map} +0 -0
- /package/dist/{chunk-GMZUF3GN.js.map → chunk-WC475JOG.js.map} +0 -0
- /package/dist/{chunk-LE4MQ2WF.js.map → chunk-WHQXWFH7.js.map} +0 -0
- /package/dist/{chunk-SLORPQZT.js.map → chunk-WV254W4V.js.map} +0 -0
- /package/dist/{chunk-ORVPS4ZW.js.map → chunk-WYPCJK6K.js.map} +0 -0
- /package/dist/{chunk-YXUNSOHD.js.map → chunk-XHGYZRVW.js.map} +0 -0
- /package/dist/{chunk-NBFHOQIO.js.map → chunk-XRBHIR7Q.js.map} +0 -0
- /package/dist/{chunk-D3WNJF7D.js.map → chunk-XT45WCKX.js.map} +0 -0
- /package/dist/{chunk-NBFXHX6E.js.map → chunk-XYP5WBDO.js.map} +0 -0
- /package/dist/{chunk-GXVK754R.js.map → chunk-XYTQJD7F.js.map} +0 -0
- /package/dist/{chunk-L7BOS7KV.js.map → chunk-YAUHSNPB.js.map} +0 -0
- /package/dist/{chunk-JNW5N6FZ.js.map → chunk-YOEYL6CH.js.map} +0 -0
- /package/dist/{chunk-HUF4S4MY.js.map → chunk-YUTG35M4.js.map} +0 -0
- /package/dist/{chunk-UO4YPMZG.js.map → chunk-Z3DDQXM4.js.map} +0 -0
- /package/dist/{chunk-TLTBACYX.js.map → chunk-ZGFLIK5H.js.map} +0 -0
- /package/dist/{chunk-6WULHFNJ.js.map → chunk-ZJJFUEPO.js.map} +0 -0
- /package/dist/{chunk-UCPH56YX.js.map → chunk-ZU5JDLOH.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
defineOperation
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6LCWKS62.js";
|
|
4
4
|
import {
|
|
5
5
|
EngramAccessInputError
|
|
6
6
|
} from "./chunk-LGEH473S.js";
|
|
@@ -71,4 +71,4 @@ defineOperation({
|
|
|
71
71
|
})
|
|
72
72
|
})
|
|
73
73
|
});
|
|
74
|
-
//# sourceMappingURL=chunk-
|
|
74
|
+
//# sourceMappingURL=chunk-YOEYL6CH.js.map
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./chunk-EKUI7I2X.js";
|
|
11
11
|
import {
|
|
12
12
|
StorageManager
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-WAD32CZG.js";
|
|
14
14
|
import {
|
|
15
15
|
normalizeEntityName
|
|
16
16
|
} from "./chunk-YXZG5TVN.js";
|
|
@@ -974,4 +974,4 @@ export {
|
|
|
974
974
|
resolveBriefingSaveDir,
|
|
975
975
|
briefingFilename
|
|
976
976
|
};
|
|
977
|
-
//# sourceMappingURL=chunk-
|
|
977
|
+
//# sourceMappingURL=chunk-YUTG35M4.js.map
|
|
@@ -49,10 +49,10 @@ import {
|
|
|
49
49
|
} from "./chunk-KIUVEMBI.js";
|
|
50
50
|
import {
|
|
51
51
|
getOperation
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-6LCWKS62.js";
|
|
53
53
|
import {
|
|
54
54
|
WHO_KNOWS_MCP_TOOLS
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-FUOAIJKQ.js";
|
|
56
56
|
import {
|
|
57
57
|
PROMOTION_CANDIDATES_MCP_TOOLS
|
|
58
58
|
} from "./chunk-IZJQNDGI.js";
|
|
@@ -3986,4 +3986,4 @@ export {
|
|
|
3986
3986
|
MCP_MIGRATED_OPERATIONS,
|
|
3987
3987
|
EngramMcpServer
|
|
3988
3988
|
};
|
|
3989
|
-
//# sourceMappingURL=chunk-
|
|
3989
|
+
//# sourceMappingURL=chunk-Z3DDQXM4.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
gatewayTaskChainOptions
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZU5JDLOH.js";
|
|
4
4
|
import {
|
|
5
5
|
isAbortError,
|
|
6
6
|
throwIfAborted
|
|
@@ -70,4 +70,4 @@ export {
|
|
|
70
70
|
DEEP_RECALL_POLICY_SYSTEM_PROMPT,
|
|
71
71
|
callDeepRecallPolicyLlm
|
|
72
72
|
};
|
|
73
|
-
//# sourceMappingURL=chunk-
|
|
73
|
+
//# sourceMappingURL=chunk-ZGFLIK5H.js.map
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "./chunk-LXATZLSC.js";
|
|
12
12
|
import {
|
|
13
13
|
StorageManager
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-WAD32CZG.js";
|
|
15
15
|
import {
|
|
16
16
|
isValidityExpiredNow
|
|
17
17
|
} from "./chunk-6CIAGZ6X.js";
|
|
@@ -416,4 +416,4 @@ export {
|
|
|
416
416
|
readProjectedHarmonicGraph,
|
|
417
417
|
searchHarmonicRetrieval
|
|
418
418
|
};
|
|
419
|
-
//# sourceMappingURL=chunk-
|
|
419
|
+
//# sourceMappingURL=chunk-ZJJFUEPO.js.map
|
|
@@ -892,7 +892,10 @@ function isUnsupportedJsonSchemaError(error) {
|
|
|
892
892
|
if (!/\b(?:400|404|422)\b/.test(message)) {
|
|
893
893
|
return false;
|
|
894
894
|
}
|
|
895
|
-
return /(?:response[_ ]?format|json[_ ]?schema|structured[_ ]?output)\b[^;,\n]{0,60}\b(?:unsupported|not supported|not implemented|not available)\b/i.test(message) ||
|
|
895
|
+
return /(?:response[_ ]?format|json[_ ]?schema|structured[_ ]?output)\b[^;,\n]{0,60}\b(?:unsupported|not supported|not implemented|not available)\b/i.test(message) || // "unavailable" counts only when it directly describes the format (DeepSeek:
|
|
896
|
+
// "This response_format type is unavailable now"). A wider window would also
|
|
897
|
+
// match an outage message that merely echoes the format.
|
|
898
|
+
/(?:response[_ ]?format|json[_ ]?schema|structured[_ ]?output)(?:\s{1,8}(?:type|mode|parameter|option|feature))?\s{1,8}(?:is\s{1,8})?unavailable\b/i.test(message) || /\b(?:unsupported|unknown|unrecognized)(?:[\s:"'=]|parameter|argument|request|supplied|field|type|value){1,40}\b(?:response[_ ]?format|json[_ ]?schema|structured[_ ]?output|schema|format)\b/i.test(message) || /\b(?:does not|doesn't|cannot|can't) support(?:[\s:"'=]|the|native|type){1,20}\b(?:response[_ ]?format|json[_ ]?schema|structured[_ ]?output|schema|format)\b/i.test(message) || // A strict provider parser rejecting the SCHEMA CONTENT itself (2026-11-05
|
|
896
899
|
// MiniMax-M3.1-Flash: "invalid params, Mismatch type string with value
|
|
897
900
|
// array ... \"episodeTitle\": {\"type\": [\"string\",\"null\"]}"). The
|
|
898
901
|
// provider never names response_format here; it dies parsing our payload.
|
|
@@ -1020,4 +1023,4 @@ export {
|
|
|
1020
1023
|
readGatewayWorkspaceDir,
|
|
1021
1024
|
defaultOpenClawWorkspaceDir
|
|
1022
1025
|
};
|
|
1023
|
-
//# sourceMappingURL=chunk-
|
|
1026
|
+
//# sourceMappingURL=chunk-ZU3NJNO7.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/fallback-llm-codex-subscription.ts","../src/providers/codex-subscription.ts"],"sourcesContent":["/**\n * Helpers extracted from FallbackLlmClient so fallback-llm.ts stays under\n * the 1200-line cap: Codex-subscription lifecycle (issue #2833) plus\n * generic chain helpers used by the same client.\n */\n\nimport path from \"node:path\";\nimport { raceAbort } from \"./abort-error.js\";\nimport { callCodexCliFallback, isCodexCliFallbackRunnerRegistered } from \"./cli-fallback.js\";\nimport type { CodexCliFallbackRunner } from \"./cli-fallback.js\";\nimport {\n CODEX_SUBSCRIPTION_PROVIDER_ID,\n CodexSubscriptionAuthError,\n CodexSubscriptionConfigError,\n CodexSubscriptionTimeoutError,\n assertNoApiKeyConfig,\n ensureCodexSubscriptionRunnerRegistered,\n getCodexSubscriptionRunnerForOwner,\n getCodexSubscriptionShutdownSignal,\n isDefaultRegisteredCodexSubscriptionRunner,\n} from \"./providers/codex-subscription.js\";\nimport type { GetRuntimeAuthForModelFn, ResolveApiKeyFn } from \"./resolve-provider-secret.js\";\nimport { resolveHomeDir } from \"./runtime/env.js\";\nimport type { GatewayConfig, ModelProviderConfig } from \"./types.js\";\nimport { expandTildePath } from \"./utils/path.js\";\n\ntype CodexSubscriptionAttemptResult = {\n content: string;\n usage?: {\n inputTokens?: number;\n outputTokens?: number;\n totalTokens?: number;\n };\n};\n\n/**\n * Terminal codex-subscription failures (timeout, auth, config contract).\n * These carry documented caller guidance (`TimeoutError` name, `codex login`\n * steps), so they must survive the chain instead of collapsing into a\n * generic empty/http_error result (issue #2833).\n */\nexport function isTerminalCodexSubscriptionError(error: unknown): boolean {\n return (\n error instanceof CodexSubscriptionTimeoutError ||\n error instanceof CodexSubscriptionAuthError ||\n error instanceof CodexSubscriptionConfigError\n );\n}\n\n/**\n * Single bounded headroom shared by both sides of the Codex deadline\n * (issue #2890): the provider gets it as SIGTERM lead time\n * (`timeoutMs - headroom`) and the outer race as settle grace, so the hard\n * outer bound stays `timeoutMs + headroom` (<= 25 ms past the deadline).\n */\nexport function codexDeadlineHeadroomMs(timeoutMs: number): number {\n return Math.min(25, Math.max(1, Math.floor(timeoutMs / 10)));\n}\n\n/**\n * Settle a fallback-LLM chain at the caller deadline. Abort the in-flight\n * work, then wait a bounded settle grace for the chain to surface a typed\n * provider timeout (default: one event-loop turn). A chain that settles\n * within the grace wins with its own result or error; one that never\n * settles still cannot exceed `timeoutMs + settleGraceMs`. The abandoned\n * promise is observed so a late rejection cannot become unhandled.\n */\nexport async function raceFallbackLlmDeadline<T>(\n work: Promise<T>,\n timeoutMs: number,\n abortOnTimeout: () => void,\n settleGraceMs = 0,\n): Promise<{ timedOut: true } | { timedOut: false; value: T }> {\n const deadline = new AbortController();\n const timer = setTimeout(() => deadline.abort(), timeoutMs);\n deadline.signal.addEventListener(\"abort\", abortOnTimeout, { once: true });\n try {\n const value = await raceAbort(\n work,\n deadline.signal,\n `fallback LLM timed out after ${timeoutMs}ms`,\n );\n return { timedOut: false, value };\n } catch (error) {\n if (!deadline.signal.aborted) throw error;\n let graceTimer: NodeJS.Timeout | undefined;\n const afterAbort = await Promise.race([\n work.then(\n (value) => ({ state: \"value\" as const, value }),\n (lateError) => ({ state: \"error\" as const, error: lateError }),\n ),\n new Promise<{ state: \"pending\" }>((resolve) => {\n if (settleGraceMs > 0) {\n graceTimer = setTimeout(() => resolve({ state: \"pending\" }), settleGraceMs);\n } else {\n setImmediate(() => resolve({ state: \"pending\" }));\n }\n }),\n ]);\n clearTimeout(graceTimer);\n if (afterAbort.state === \"value\") return { timedOut: false, value: afterAbort.value };\n if (afterAbort.state === \"error\") throw afterAbort.error;\n void work.then(\n () => undefined,\n () => undefined,\n );\n return { timedOut: true };\n } finally {\n clearTimeout(timer);\n deadline.signal.removeEventListener(\"abort\", abortOnTimeout);\n }\n}\n\n/**\n * Attempt the Codex CLI / subscription provider. Returns `undefined` when the\n * model is not `api: \"codex-cli\"` so the generic FallbackLlmClient path runs.\n *\n * Subscription ids reject a configured apiKey before generic secret resolution\n * — otherwise an unresolvable ref throws a generic error and the provider's\n * `codex login` guidance never surfaces (issue #2833). Other `codex-cli`\n * providers still resolve a configured key. Runtime auth is skipped: the CLI\n * login is the credential.\n */\nexport async function tryCodexSubscriptionProvider(\n model: {\n providerId: string;\n modelId: string;\n providerConfig: ModelProviderConfig;\n },\n messages: Array<{ role: \"system\" | \"user\" | \"assistant\"; content: string }>,\n options: { timeoutMs?: number; signal?: AbortSignal },\n resolveFallbackApiKey: () => Promise<string | undefined>,\n runner?: CodexCliFallbackRunner,\n): Promise<CodexSubscriptionAttemptResult | undefined> {\n if (model.providerConfig.api !== \"codex-cli\") return undefined;\n\n if (model.providerId === CODEX_SUBSCRIPTION_PROVIDER_ID) {\n assertNoApiKeyConfig(model.providerConfig);\n }\n\n const resolvedApiKey =\n model.providerConfig.apiKey === undefined ? undefined : await resolveFallbackApiKey();\n const rawKey = model.providerConfig.apiKey;\n const needsResolution =\n rawKey === \"secretref-managed\" || (typeof rawKey === \"object\" && rawKey !== null);\n if (needsResolution && !resolvedApiKey) {\n throw new Error(`API key for provider \"${model.providerId}\" could not be resolved from secret ref`);\n }\n\n const effectiveConfig: ModelProviderConfig = {\n ...model.providerConfig,\n ...(resolvedApiKey ? { apiKey: resolvedApiKey } : {}),\n };\n\n // Let the provider surface its typed timeout before the generic outer\n // deadline: the shared bounded headroom is SIGTERM lead time here and\n // settle grace in raceFallbackLlmDeadline (issue #2890).\n const callOptions = {\n timeoutMs: options.timeoutMs === undefined\n ? undefined\n : Math.max(1, options.timeoutMs - codexDeadlineHeadroomMs(options.timeoutMs)),\n signal: options.signal,\n };\n // A host/benchmark runner on the process seam still wins. The core\n // default runner does not: prefer the owning runtime so shutdown\n // terminates the request that runtime started.\n if (isCodexCliFallbackRunnerRegistered() && !(runner && isDefaultRegisteredCodexSubscriptionRunner())) {\n return await callCodexCliFallback(effectiveConfig, model.modelId, messages, callOptions);\n }\n if (runner) {\n return await callCodexCliFallback(effectiveConfig, model.modelId, messages, callOptions, runner);\n }\n ensureCodexSubscriptionRunnerRegistered();\n return await callCodexCliFallback(effectiveConfig, model.modelId, messages, callOptions);\n}\n\nexport function abortReason(signal: AbortSignal | undefined): Error {\n const reason = signal?.reason;\n return reason instanceof Error ? reason : new Error(\"task LLM request aborted\");\n}\n\nexport function withCodexRuntimeShutdown<T extends { signal?: AbortSignal }>(\n options: T,\n runner: CodexCliFallbackRunner | undefined,\n): T {\n if (!runner) return options;\n const shutdown = getCodexSubscriptionShutdownSignal(runner);\n if (!shutdown) return options;\n return {\n ...options,\n signal: options.signal ? AbortSignal.any([options.signal, shutdown]) : shutdown,\n };\n}\n\nexport function isUnsupportedJsonSchemaError(error: unknown): boolean {\n const message = error instanceof Error ? error.message : String(error);\n // An echoed request format is not a capability rejection.\n if (!/\\b(?:400|404|422)\\b/.test(message)) {\n return false;\n }\n return (\n /(?:response[_ ]?format|json[_ ]?schema|structured[_ ]?output)\\b[^;,\\n]{0,60}\\b(?:unsupported|not supported|not implemented|not available)\\b/i.test(message) ||\n // \"unavailable\" counts only when it directly describes the format (DeepSeek:\n // \"This response_format type is unavailable now\"). A wider window would also\n // match an outage message that merely echoes the format.\n /(?:response[_ ]?format|json[_ ]?schema|structured[_ ]?output)(?:\\s{1,8}(?:type|mode|parameter|option|feature))?\\s{1,8}(?:is\\s{1,8})?unavailable\\b/i.test(message) ||\n /\\b(?:unsupported|unknown|unrecognized)(?:[\\s:\"'=]|parameter|argument|request|supplied|field|type|value){1,40}\\b(?:response[_ ]?format|json[_ ]?schema|structured[_ ]?output|schema|format)\\b/i.test(message) ||\n /\\b(?:does not|doesn't|cannot|can't) support(?:[\\s:\"'=]|the|native|type){1,20}\\b(?:response[_ ]?format|json[_ ]?schema|structured[_ ]?output|schema|format)\\b/i.test(message) ||\n // A strict provider parser rejecting the SCHEMA CONTENT itself (2026-11-05\n // MiniMax-M3.1-Flash: \"invalid params, Mismatch type string with value\n // array ... \\\"episodeTitle\\\": {\\\"type\\\": [\\\"string\\\",\\\"null\\\"]}\"). The\n // provider never names response_format here; it dies parsing our payload.\n // Evidence is the observed signature only — a quoted (JSON-escaped)\n // type-array fragment. A generic \"mismatch type\" naming an unrelated\n // parameter, or a bare echo of the format name, is not enough to degrade.\n (/invalid\\s+(?:params|parameters)/i.test(message) &&\n /\\\\{0,4}\"\\s{0,8}type\\s{0,8}\\\\{0,4}\"\\s{0,8}:\\s{0,8}\\[/.test(message))\n );\n}\n\nexport function extractResponsesOutputText(data: {\n output_text?: string;\n output?: Array<{\n type?: string;\n text?: string;\n content?: Array<{\n type?: string;\n text?: string;\n }>;\n }>;\n}): string | null {\n if (typeof data.output_text === \"string\" && data.output_text.trim().length > 0) {\n return data.output_text;\n }\n\n const chunks: string[] = [];\n for (const item of data.output ?? []) {\n if (typeof item.text === \"string\" && item.text.trim().length > 0) {\n chunks.push(item.text);\n }\n for (const part of item.content ?? []) {\n if (\n (part.type === \"output_text\" || part.type === \"text\") &&\n typeof part.text === \"string\" &&\n part.text.trim().length > 0\n ) {\n chunks.push(part.text);\n }\n }\n }\n\n const joined = chunks.join(\"\\n\").trim();\n return joined.length > 0 ? joined : null;\n}\n\nexport type StructuredParseFailureReason =\n | \"no_models\"\n | \"empty\"\n | \"http_error\"\n | \"schema_rejection\"\n | \"timeout\";\n\nexport interface StructuredParseFailure {\n result: null;\n failureReason: StructuredParseFailureReason;\n /** Model string of the last attempt, when one was selected. Not `modelUsed`. */\n attemptedModel?: string;\n /** HTTP status when known. Never a response body. */\n httpStatus?: number;\n /** Coarse class: http_4xx / http_5xx / timeout / network / empty / schema_rejection / no_models. */\n errorClass?: string;\n}\n\nexport type StructuredParseResult<T> =\n | { result: T; modelUsed: string }\n | StructuredParseFailure;\n\nexport interface FallbackLlmRuntimeContext {\n agentDir?: string;\n getRuntimeAuthForModel?: GetRuntimeAuthForModelFn | null;\n resolveApiKeyForProvider?: ResolveApiKeyFn | null;\n workspaceDir?: string;\n /** Per-runtime Codex child owner. Shutdown must terminate only this runner. */\n codexSubscriptionRunner?: CodexCliFallbackRunner;\n}\n\ntype GatewayBackedRuntimeConfig = {\n providerApiKeyResolver?: ResolveApiKeyFn | null;\n runtimeAuthForModelResolver?: GetRuntimeAuthForModelFn | null;\n workspaceDir?: string;\n};\n\nexport function fallbackLlmRuntimeContextFromConfig(\n config: Pick<\n GatewayBackedRuntimeConfig,\n \"providerApiKeyResolver\" | \"runtimeAuthForModelResolver\" | \"workspaceDir\"\n >,\n overrides: FallbackLlmRuntimeContext = {},\n): FallbackLlmRuntimeContext {\n return {\n workspaceDir: config.workspaceDir,\n resolveApiKeyForProvider: config.providerApiKeyResolver,\n getRuntimeAuthForModel: config.runtimeAuthForModelResolver,\n codexSubscriptionRunner: getCodexSubscriptionRunnerForOwner(config),\n ...overrides,\n };\n}\n\nconst HTTP_STATUS_IN_MESSAGE = /\\b([1-5]\\d{2})\\b/;\n\nexport function isTimeoutError(err: unknown): boolean {\n const msg = err instanceof Error ? err.message : String(err);\n return /timed out after \\d+ms/i.test(msg) || /timed out before request started/i.test(msg);\n}\n\nfunction isEmptyProviderResponse(err: unknown): boolean {\n const msg = err instanceof Error ? err.message : String(err);\n return /^Empty response from /i.test(msg);\n}\n\nfunction finiteHttpStatus(value: unknown): number | undefined {\n if (typeof value !== \"number\" || !Number.isFinite(value) || !Number.isInteger(value)) return undefined;\n if (value < 100 || value > 599) return undefined;\n return value;\n}\n\nfunction httpStatusFromProviderError(err: unknown): number | undefined {\n if (err && typeof err === \"object\") {\n if (\"status\" in err) {\n const status = finiteHttpStatus(err.status);\n if (status !== undefined) return status;\n }\n if (\"statusCode\" in err) {\n const status = finiteHttpStatus(err.statusCode);\n if (status !== undefined) return status;\n }\n }\n const msg = err instanceof Error ? err.message : String(err);\n const match = HTTP_STATUS_IN_MESSAGE.exec(msg);\n if (!match) return undefined;\n return finiteHttpStatus(Number(match[1]));\n}\n\nfunction errorClassForHttpStatus(status: number): string {\n if (status >= 500) return \"http_5xx\";\n if (status >= 400) return \"http_4xx\";\n return `http_${status}`;\n}\n\nexport function classifyThrownProviderError(err: unknown): Omit<StructuredParseFailure, \"result\"> {\n if (isTimeoutError(err)) {\n return { failureReason: \"timeout\", errorClass: \"timeout\" };\n }\n if (isEmptyProviderResponse(err)) {\n return { failureReason: \"empty\", errorClass: \"empty\" };\n }\n const httpStatus = httpStatusFromProviderError(err);\n if (httpStatus !== undefined) {\n return {\n failureReason: \"http_error\",\n httpStatus,\n errorClass: errorClassForHttpStatus(httpStatus),\n };\n }\n return { failureReason: \"http_error\", errorClass: \"network\" };\n}\n\nexport function normalizeRuntimePath(value: unknown): string | undefined {\n if (typeof value !== \"string\") return undefined;\n const trimmed = value.trim();\n return trimmed.length > 0 ? expandTildePath(trimmed) : undefined;\n}\n\nexport function readGatewayWorkspaceDir(gatewayConfig: GatewayConfig | undefined): string | undefined {\n if (!gatewayConfig || typeof gatewayConfig !== \"object\") return undefined;\n const raw = gatewayConfig as Record<string, unknown>;\n return (\n normalizeRuntimePath(raw.workspaceDir) ??\n normalizeRuntimePath(raw.workspacePath) ??\n normalizeRuntimePath(raw.workspace)\n );\n}\n\nexport function defaultOpenClawWorkspaceDir(): string {\n return path.join(resolveHomeDir(), \".openclaw\", \"workspace\");\n}\n","/**\n * Codex subscription extraction provider (issue #2784).\n *\n * Routes extraction/consolidation LLM calls through the `codex` CLI so the\n * operator's Codex subscription (ChatGPT OAuth login) authenticates the\n * request — no OpenAI API key and no codex-openai-proxy. Credentials stay in\n * the CLI's own auth store; this module never reads, accepts, or logs tokens.\n *\n * Transport contract mirrors `packages/bench/src/providers/codex-cli.ts`\n * (`codex exec --json --output-last-message`, env allowlist, login-status\n * precheck) but lives in core so the standalone daemon and host plugins get\n * a working `api: \"codex-cli\"` transport without importing the optional\n * bench package. Registered through the existing\n * `setCodexCliFallbackRunnerForProcess` seam, and only when no host or\n * benchmark runner has claimed it first.\n */\n\nimport { mkdir, mkdtemp, readFile, rm, stat } from \"node:fs/promises\";\nimport os from \"node:os\";\nimport path from \"node:path\";\n\nimport type {\n CodexCliFallbackConfig,\n CodexCliFallbackMessage,\n CodexCliFallbackRequest,\n CodexCliFallbackResult,\n CodexCliFallbackRunner,\n} from \"../cli-fallback.js\";\nimport { getCodexCliFallbackRunnerForProcess, isCodexCliFallbackRunnerRegistered, normalizeCodexCliTimeoutMs, setCodexCliFallbackRunnerForProcess } from \"../cli-fallback.js\";\nimport { log } from \"../logger.js\";\nimport { launchProcess } from \"../runtime/child-process.js\";\nimport type { CodexCliReasoningEffort, ModelProviderConfig } from \"../types.js\";\nimport { expandTildePath } from \"../utils/path.js\";\n\nexport const CODEX_SUBSCRIPTION_PROVIDER_ID = \"codex-subscription\";\n\n/** Env var overriding the codex executable (mirrors the bench provider). */\nconst CODEX_EXECUTABLE_ENV = \"REMNIC_CODEX_EXECUTABLE\";\n\nconst DEFAULT_REASONING_EFFORT: CodexCliReasoningEffort = \"medium\";\nconst DEFAULT_TIMEOUT_MS = 120_000;\nconst LOGIN_STATUS_TIMEOUT_MS = 10_000;\nconst LOGIN_STATUS_CACHE_TTL_MS = 10 * 60_000;\nconst STDIO_LIMIT = 64_000;\nconst OUTPUT_SUMMARY_LIMIT = 500;\n/**\n * Env keys whose value is a filesystem path. Relative values resolve against\n * the original process cwd before either child launches, because the exec\n * child runs with cwd = the ephemeral workspace (same rule as executables).\n */\nconst PATH_BEARING_ENV_KEYS: Readonly<Record<string, true>> = Object.freeze({ CODEX_HOME: true, HOME: true, USERPROFILE: true });\n\n/**\n * Environment keys forwarded to the codex child. Everything else — including\n * ambient `OPENAI_API_KEY` / `OPENAI_BASE_URL` — is stripped so the CLI cannot\n * silently fall back to metered API-key auth instead of the subscription\n * login. Mirrors the bench provider's allowlist.\n */\nconst CODEX_RUNTIME_ENV_ALLOWLIST: Readonly<Record<string, true>> = Object.freeze({\n ALL_PROXY: true,\n APPDATA: true,\n CODEX_HOME: true,\n COLORTERM: true,\n COMSPEC: true,\n FORCE_COLOR: true,\n HOME: true,\n HOMEDRIVE: true,\n HOMEPATH: true,\n LANG: true,\n LOCALAPPDATA: true,\n LOGNAME: true,\n NO_COLOR: true,\n NODE_EXTRA_CA_CERTS: true,\n NO_PROXY: true,\n NUMBER_OF_PROCESSORS: true,\n OS: true,\n PATH: true,\n PATHEXT: true,\n PROGRAMDATA: true,\n PROCESSOR_ARCHITECTURE: true,\n HTTP_PROXY: true,\n HTTPS_PROXY: true,\n SHELL: true,\n SSL_CERT_DIR: true,\n SSL_CERT_FILE: true,\n SYSTEMDRIVE: true,\n SYSTEMROOT: true,\n TEMP: true,\n TERM: true,\n TMP: true,\n TMPDIR: true,\n USER: true,\n USERNAME: true,\n USERPROFILE: true,\n WINDIR: true,\n XDG_CACHE_HOME: true,\n XDG_CONFIG_HOME: true,\n XDG_DATA_HOME: true,\n XDG_RUNTIME_DIR: true,\n});\n\nconst LOGIN_OK_PATTERN = /logged in using chatgpt/i;\nconst LOGIN_API_KEY_PATTERN = /api key/i;\n/** CLI output shapes that mean the subscription session was rejected. */\nconst AUTH_FAILURE_PATTERN =\n /\\b401\\b|\\b403\\b|unauthorized|forbidden|not logged in|no active|re-?authenticat|token expired|session expired|please log ?in/i;\nconst TIMEOUT_PATTERN = /timed out after \\d+ms/i;\n/** Secret shapes a codex CLI could echo into errors; replaced before surfacing. */\nconst SECRET_ECHO_PATTERNS: readonly RegExp[] = [\n /sk-[A-Za-z0-9_-]{8,}/g,\n /Bearer\\s+[A-Za-z0-9._-]{8,}/g,\n /eyJ[A-Za-z0-9._-]{10,}/g,\n];\n\n/**\n * Built-in provider entry so `\"codex-subscription/<model>\"` chains resolve\n * with no models.json and no apiKey — the transport owns authentication.\n */\nexport function codexSubscriptionBuiltinProviderConfig(): ModelProviderConfig {\n return {\n baseUrl: \"codex-cli://subscription\",\n api: \"codex-cli\",\n models: [],\n };\n}\n\nexport type CodexSubscriptionAuthReason = \"unauthenticated\" | \"expired_or_revoked\";\n\n/** Login/authorization failure with actionable re-auth guidance. */\nexport class CodexSubscriptionAuthError extends Error {\n readonly reason: CodexSubscriptionAuthReason;\n\n constructor(reason: CodexSubscriptionAuthReason, message: string) {\n super(message);\n this.name = \"CodexSubscriptionAuthError\";\n this.reason = reason;\n }\n}\n\n/** Provider config violated the no-raw-credentials contract. */\nexport class CodexSubscriptionConfigError extends Error {\n constructor(message: string) {\n super(message);\n this.name = \"CodexSubscriptionConfigError\";\n }\n}\n\n/** Request exceeded its deadline. Abort-driven cancellations rethrow the\n * caller's own abort reason instead, preserving the AbortError contract. */\nexport class CodexSubscriptionTimeoutError extends Error {\n constructor(timeoutMs: number) {\n super(`codex-subscription request timed out after ${timeoutMs}ms`);\n this.name = \"TimeoutError\";\n }\n}\n\nexport interface CodexSubscriptionExecRequest {\n executable: string;\n args: string[];\n input: string;\n env: NodeJS.ProcessEnv;\n outputPath: string;\n workspacePath: string;\n timeoutMs?: number;\n signal?: AbortSignal;\n}\n\nexport interface CodexSubscriptionExecResult {\n status: number | null;\n signal?: NodeJS.Signals | null;\n stdout: string;\n stderr: string;\n outputText: string;\n}\n\nexport interface CodexSubscriptionRunnerDeps {\n /** Runs `codex exec`. Default: isolated subprocess via launchProcess. */\n runCodexExec?: (request: CodexSubscriptionExecRequest) => Promise<CodexSubscriptionExecResult>;\n /** Runs `codex login status`. Default: isolated subprocess. Receives the\n * shared login-status ceiling (not any one caller's deadline) and the\n * shared-check abort signal (fires when the last waiter leaves). */\n runLoginStatus?: (\n executable: string,\n env: NodeJS.ProcessEnv,\n timeoutMs: number,\n signal?: AbortSignal\n ) => Promise<{ status: number | null; stdout: string; stderr: string }>;\n /** Environment the isolated child env is filtered from. Tests inject fakes. */\n env?: NodeJS.ProcessEnv;\n tmpdir?: () => string;\n now?: () => number;\n}\n\ninterface CommandOutput {\n status: number | null;\n signal?: NodeJS.Signals | null;\n stdout: string;\n stderr: string;\n}\n\ninterface LoginStatusCacheEntry {\n at: number;\n promise: Promise<void>;\n /** Auth-store fingerprint at check time; a mismatch invalidates the entry. */\n fingerprint: string | null;\n /** Live waiters. The in-flight check aborts when the last waiter leaves. */\n waiters: number;\n settled: boolean;\n controller: AbortController;\n}\n\nconst loginStatusCache = new Map<string, LoginStatusCacheEntry>();\nconst inFlightLoginByRunner = new WeakMap<CodexCliFallbackRunner, Map<string, LoginStatusCacheEntry>>();\nconst childrenByRunner = new WeakMap<CodexCliFallbackRunner, Set<number>>();\nconst runnerByOwner = new WeakMap<object, CodexCliFallbackRunner>();\nconst shutdownByRunner = new WeakMap<CodexCliFallbackRunner, AbortController>();\nlet defaultRegisteredRunner: CodexCliFallbackRunner | undefined;\nlet coreRunnerRegistered = false;\n\nexport function createCodexSubscriptionRunner(deps: CodexSubscriptionRunnerDeps = {}): CodexCliFallbackRunner {\n const envSource = deps.env ?? process.env;\n const children = new Set<number>();\n const shutdown = new AbortController();\n const runnerDeps: CodexSubscriptionRunnerDeps = {\n ...deps,\n runCodexExec: deps.runCodexExec ?? ((request) => runCodexExecSubprocess(request, children)),\n runLoginStatus:\n deps.runLoginStatus ??\n ((executable, env, timeoutMs, signal) =>\n runLoginStatusSubprocess(executable, env, timeoutMs, signal, children)),\n };\n const runner: CodexCliFallbackRunner = (request) => {\n const signal = request.options.signal\n ? AbortSignal.any([request.options.signal, shutdown.signal])\n : shutdown.signal;\n if (signal.aborted) {\n return Promise.reject(abortErrorOf(signal));\n }\n return runCodexSubscriptionRequest(\n { ...request, options: { ...request.options, signal } },\n runnerDeps,\n envSource,\n runner,\n );\n };\n childrenByRunner.set(runner, children);\n shutdownByRunner.set(runner, shutdown);\n return runner;\n}\n\n/** One runner per owning runtime/config object so teardown cannot cross instances. */\nexport function getCodexSubscriptionRunnerForOwner(owner: object): CodexCliFallbackRunner {\n let runner = runnerByOwner.get(owner);\n const shutdown = runner ? shutdownByRunner.get(runner) : undefined;\n if (!runner || shutdown?.signal.aborted) {\n runner = createCodexSubscriptionRunner();\n runnerByOwner.set(owner, runner);\n }\n return runner;\n}\n\n/** Shutdown signal for the owning runner, if this function is a core runner. */\nexport function getCodexSubscriptionShutdownSignal(\n runner: CodexCliFallbackRunner,\n): AbortSignal | undefined {\n return shutdownByRunner.get(runner)?.signal;\n}\n\n/**\n * Registers the core subprocess transport on the codex-cli seam, but only\n * when no runner is registered yet — a host or benchmark runner that claimed\n * the seam first always wins. If the seam was cleared afterwards\n * (setCodexCliFallbackRunnerForProcess(undefined)), the core runner is\n * re-registered so the next call still routes. Idempotent.\n */\nexport function ensureCodexSubscriptionRunnerRegistered(deps: CodexSubscriptionRunnerDeps = {}): boolean {\n if (isCodexCliFallbackRunnerRegistered()) return false;\n defaultRegisteredRunner = createCodexSubscriptionRunner(deps);\n setCodexCliFallbackRunnerForProcess(defaultRegisteredRunner);\n coreRunnerRegistered = true;\n return true;\n}\n\n/** True when the process seam still holds the core default runner. */\nexport function isDefaultRegisteredCodexSubscriptionRunner(): boolean {\n return defaultRegisteredRunner !== undefined\n && getCodexCliFallbackRunnerForProcess() === defaultRegisteredRunner;\n}\n/** Host shutdown hook: terminate this runtime's detached Codex children. Does not exit. */\nexport function terminateActiveCodexSubscriptionChildren(\n signal: NodeJS.Signals = \"SIGTERM\",\n runner?: CodexCliFallbackRunner,\n): void {\n const target = runner ?? defaultRegisteredRunner;\n if (!target) return;\n const shutdown = shutdownByRunner.get(target);\n if (shutdown && !shutdown.signal.aborted) {\n shutdown.abort(new DOMException(\"The operation was aborted.\", \"AbortError\"));\n }\n const pids = childrenByRunner.get(target);\n if (!pids) return;\n for (const pid of pids) {\n terminateCodexChildPid(pid, signal);\n }\n}\n\n/** SIGTERM now, SIGKILL after a bound, even if the caller later awaits drain. */\nexport function beginCodexSubscriptionShutdown(\n runner?: CodexCliFallbackRunner,\n forceKillAfterMs = 1_000,\n): () => void {\n terminateActiveCodexSubscriptionChildren(\"SIGTERM\", runner);\n const timer = setTimeout(() => {\n terminateActiveCodexSubscriptionChildren(\"SIGKILL\", runner);\n }, forceKillAfterMs);\n timer.unref();\n return () => {\n clearTimeout(timer);\n terminateActiveCodexSubscriptionChildren(\"SIGKILL\", runner);\n };\n}\nasync function runCodexSubscriptionRequest(\n request: CodexCliFallbackRequest,\n deps: CodexSubscriptionRunnerDeps,\n envSource: NodeJS.ProcessEnv,\n runner: CodexCliFallbackRunner,\n): Promise<CodexCliFallbackResult> {\n const { config } = request;\n assertNoApiKeyConfig(config);\n const executable = resolveExecutable(config, envSource);\n const env = buildIsolatedEnv(envSource);\n\n const providerTimeoutMs = config.retryOptions?.timeoutMs !== undefined\n ? normalizeCodexCliTimeoutMs(config.retryOptions.timeoutMs)\n : undefined;\n const timeoutMs = request.options.timeoutMs ?? providerTimeoutMs ?? DEFAULT_TIMEOUT_MS;\n // The effective deadline starts BEFORE the login-status precheck: login\n // consumes the same call/provider timeout budget, it is not additive.\n const now = deps.now ?? Date.now;\n const deadlineStartedAt = now();\n if (request.options.signal?.aborted) {\n throw abortErrorOf(request.options.signal);\n }\n await assertSubscriptionLogin(executable, env, deps, {\n runner,\n callerTimeoutMs: timeoutMs,\n deadlineStartedAt,\n signal: request.options.signal,\n });\n\n if (request.options.signal?.aborted) {\n throw abortErrorOf(request.options.signal);\n }\n\n const remainingTimeoutMs = timeoutMs - (now() - deadlineStartedAt);\n if (remainingTimeoutMs <= 0) {\n throw new CodexSubscriptionTimeoutError(timeoutMs);\n }\n let tempDir: string | undefined;\n try {\n tempDir = await mkdtemp(path.join(deps.tmpdir?.() ?? os.tmpdir(), \"remnic-codex-sub-\"));\n const workspacePath = path.join(tempDir, \"workspace\");\n const outputPath = path.join(tempDir, \"last-message.txt\");\n await mkdir(workspacePath, { recursive: true });\n\n const runCodexExec = deps.runCodexExec!;\n const result = await runCodexExec({\n executable,\n args: buildExecArgs(request.modelId, config, workspacePath, outputPath),\n input: buildPrompt(request.messages),\n env,\n outputPath,\n workspacePath,\n timeoutMs: remainingTimeoutMs,\n signal: request.options.signal,\n });\n\n if (result.status !== 0) {\n const failure = execFailureError(result, remainingTimeoutMs, executable, env);\n if (failure instanceof CodexSubscriptionTimeoutError) {\n throw failure;\n }\n if (request.options.signal?.aborted) {\n throw abortErrorOf(request.options.signal);\n }\n throw failure;\n }\n if (request.options.signal?.aborted) {\n throw abortErrorOf(request.options.signal);\n }\n\n const content = result.outputText.trim();\n if (content.length === 0) {\n throw new Error(\n `codex-subscription: codex exec returned no final message (${summarizeOutput(result.stderr, result.stdout)})`\n );\n }\n return { content, ...usageFrom(result) };\n } finally {\n if (tempDir) {\n await rm(tempDir, { force: true, recursive: true }).catch(() => {});\n }\n }\n}\n\n/**\n * This provider authenticates exclusively through the codex CLI login, so a\n * configured apiKey is a configuration mistake — reject it without echoing\n * the value.\n */\nexport function assertNoApiKeyConfig(config: CodexCliFallbackConfig): void {\n if (config.apiKey !== undefined && config.apiKey !== \"\") {\n throw new CodexSubscriptionConfigError(\n `${CODEX_SUBSCRIPTION_PROVIDER_ID} does not accept apiKey configuration: it authenticates through the Codex CLI login. Remove the apiKey field and run \\`codex login\\` with a ChatGPT account instead.`\n );\n }\n}\n\nfunction resolveExecutable(config: CodexCliFallbackConfig, env: NodeJS.ProcessEnv): string {\n const configured = config.codexCliExecutable ?? config.executable ?? env[CODEX_EXECUTABLE_ENV] ?? \"codex\";\n const expanded = expandTildePath(String(configured).trim());\n if (expanded.trim().length === 0) {\n throw new CodexSubscriptionConfigError(`${CODEX_EXECUTABLE_ENV} / executable must not be empty`);\n }\n // The exec child runs with cwd = the temp workspace, and spawn resolves a\n // relative executable against the CHILD cwd. Resolve relative paths against\n // the original process cwd now so `./codex` stays valid; bare names keep\n // PATH lookup.\n if (expanded.includes(\"/\") || expanded.includes(\"\\\\\")) {\n return path.resolve(expanded);\n }\n return expanded;\n}\n\nfunction buildIsolatedEnv(source: NodeJS.ProcessEnv): NodeJS.ProcessEnv {\n const env: NodeJS.ProcessEnv = {};\n for (const [key, value] of Object.entries(source)) {\n if (value !== undefined && isAllowedEnvKey(key)) {\n env[key] = PATH_BEARING_ENV_KEYS[key.toUpperCase()] === true\n ? normalizePathEnvValue(value)\n : value;\n }\n }\n return env;\n}\n\n/**\n * The exec child runs with cwd = the ephemeral workspace while the login\n * child runs with cwd = this process, so a relative HOME/CODEX_HOME would\n * resolve differently per child. Anchor both to the original process cwd.\n */\nfunction normalizePathEnvValue(value: string): string {\n const trimmed = value.trim();\n if (trimmed.length === 0) {\n return value;\n }\n const expanded = expandTildePath(trimmed);\n return path.isAbsolute(expanded) ? expanded : path.resolve(expanded);\n}\nfunction isAllowedEnvKey(key: string): boolean {\n const normalized = key.toUpperCase();\n return CODEX_RUNTIME_ENV_ALLOWLIST[normalized] === true || normalized.startsWith(\"LC_\");\n}\n\ninterface LoginCheckContext {\n runner: CodexCliFallbackRunner;\n /** The caller's overall effective deadline (login + exec). */\n callerTimeoutMs: number;\n deadlineStartedAt: number;\n signal?: AbortSignal;\n}\n\n/**\n * Verifies the operator's Codex subscription login via `codex login status`.\n * Success is cached briefly; failures are never cached so a re-login takes\n * effect on the next request. A cached success is also invalidated when the\n * auth store changes on disk (e.g. another process switches the same Codex\n * home from a ChatGPT login to an API key), so the cache can never mask a\n * later non-subscription login mode.\n */\nasync function assertSubscriptionLogin(\n executable: string,\n env: NodeJS.ProcessEnv,\n deps: CodexSubscriptionRunnerDeps,\n ctx: LoginCheckContext\n): Promise<void> {\n const now = deps.now ?? Date.now;\n const cacheKey = loginCacheKey(executable, env);\n const inflight = inFlightLoginsFor(ctx.runner).get(cacheKey);\n if (inflight && now() - inflight.at < LOGIN_STATUS_CACHE_TTL_MS) {\n await waitForLoginEntry(inflight, cacheKey, ctx, now);\n return;\n }\n const cached = loginStatusCache.get(cacheKey);\n if (cached && now() - cached.at < LOGIN_STATUS_CACHE_TTL_MS) {\n if (!cached.settled || (await authStoreFingerprint(env)) === cached.fingerprint) {\n await waitForLoginEntry(cached, cacheKey, ctx, now);\n return;\n }\n if (loginStatusCache.get(cacheKey) === cached) {\n loginStatusCache.delete(cacheKey);\n }\n }\n const raced = inFlightLoginsFor(ctx.runner).get(cacheKey);\n if (raced && now() - raced.at < LOGIN_STATUS_CACHE_TTL_MS) {\n await waitForLoginEntry(raced, cacheKey, ctx, now);\n return;\n }\n const published = loginStatusCache.get(cacheKey);\n if (published && now() - published.at < LOGIN_STATUS_CACHE_TTL_MS) {\n await waitForLoginEntry(published, cacheKey, ctx, now);\n return;\n }\n if (ctx.signal?.aborted) {\n throw abortErrorOf(ctx.signal);\n }\n const entry: LoginStatusCacheEntry = {\n at: now(),\n fingerprint: null,\n waiters: 0,\n settled: false,\n controller: new AbortController(),\n promise: Promise.resolve(undefined),\n };\n entry.promise = runLoginStatusCheck(executable, env, deps, entry);\n entry.promise.then(\n () => {\n entry.settled = true;\n loginStatusCache.set(cacheKey, entry);\n dropInFlightLogin(ctx.runner, cacheKey, entry);\n },\n () => {\n entry.settled = true;\n dropInFlightLogin(ctx.runner, cacheKey, entry);\n }\n );\n inFlightLoginsFor(ctx.runner).set(cacheKey, entry);\n await waitForLoginEntry(entry, cacheKey, ctx, now);\n}\n\nasync function runLoginStatusCheck(\n executable: string,\n env: NodeJS.ProcessEnv,\n deps: CodexSubscriptionRunnerDeps,\n entry: LoginStatusCacheEntry\n): Promise<void> {\n const runLoginStatus = deps.runLoginStatus!;\n const result = await runLoginStatus(executable, env, LOGIN_STATUS_TIMEOUT_MS, entry.controller.signal);\n const output = `${result.stdout}\\n${result.stderr}`.trim();\n if (TIMEOUT_PATTERN.test(output)) {\n // A login-status subprocess timeout is a deadline expiry, not an auth\n // failure — never report it as \"unauthenticated\".\n throw new CodexSubscriptionTimeoutError(LOGIN_STATUS_TIMEOUT_MS);\n }\n if (result.status === 0 && LOGIN_OK_PATTERN.test(output)) {\n entry.fingerprint = await authStoreFingerprint(env);\n return;\n }\n const apiKeyNote = LOGIN_API_KEY_PATTERN.test(output)\n ? \" The CLI currently reports an API-key login; subscription extraction needs a ChatGPT login.\"\n : \"\";\n throw new CodexSubscriptionAuthError(\n \"unauthenticated\",\n `codex-subscription: no ChatGPT-backed Codex login found. Run \\`codex login\\` and choose the ChatGPT account option, then retry.${apiKeyNote}`\n );\n}\n\n/**\n * Waits on a shared login check with this caller's own budget. A deadline or\n * caller abort rejects immediately — without cancelling the shared check\n * while other callers still wait on it. When the LAST waiter leaves an\n * in-flight check, the subprocess is aborted and the entry dropped so a later\n * caller starts a fresh check.\n */\nasync function waitForLoginEntry(\n entry: LoginStatusCacheEntry,\n cacheKey: string,\n ctx: LoginCheckContext,\n now: () => number\n): Promise<void> {\n const remainingMs = ctx.callerTimeoutMs - (now() - ctx.deadlineStartedAt);\n if (remainingMs <= 0) {\n throw new CodexSubscriptionTimeoutError(ctx.callerTimeoutMs);\n }\n const signal = ctx.signal;\n let rejectOnAbort!: (reason?: unknown) => void;\n const abortWait = new Promise<never>((_resolve, reject) => {\n rejectOnAbort = reject;\n });\n // Identity matters: the same reference is removed in the finally below.\n const onAbort = (): void => {\n if (signal === undefined) return;\n rejectOnAbort(abortErrorOf(signal));\n };\n signal?.addEventListener(\"abort\", onAbort, { once: true });\n entry.waiters++;\n // The deadline timer intentionally holds the event loop: this caller's\n // await is backed by nothing else while the shared check is in flight.\n let deadlineTimer: ReturnType<typeof setTimeout> | undefined;\n try {\n await Promise.race([\n entry.promise,\n abortWait,\n new Promise<never>((_resolve, reject) => {\n deadlineTimer = setTimeout(\n () => reject(new CodexSubscriptionTimeoutError(ctx.callerTimeoutMs)),\n remainingMs\n );\n }),\n ]);\n } catch (err) {\n if (signal?.aborted) {\n throw abortErrorOf(signal);\n }\n throw err;\n } finally {\n clearTimeout(deadlineTimer);\n signal?.removeEventListener(\"abort\", onAbort);\n entry.waiters--;\n if (entry.waiters <= 0 && !entry.settled) {\n entry.controller.abort();\n dropInFlightLogin(ctx.runner, cacheKey, entry);\n if (loginStatusCache.get(cacheKey) === entry) {\n loginStatusCache.delete(cacheKey);\n }\n }\n }\n}\n\n/**\n * `mtimeMs:size` of the Codex auth store, read as metadata only — the\n * provider never reads the store's contents. A change between the cached\n * check and now invalidates the cached login mode.\n */\nasync function authStoreFingerprint(env: NodeJS.ProcessEnv): Promise<string | null> {\n const home = resolveCodexAuthHome(env);\n if (!home) {\n return null;\n }\n try {\n const stats = await stat(path.join(home, \"auth.json\"));\n return `${stats.mtimeMs}:${stats.size}`;\n } catch {\n return null;\n }\n}\n\nfunction resolveCodexAuthHome(env: NodeJS.ProcessEnv): string | undefined {\n if (env.CODEX_HOME) return env.CODEX_HOME;\n const profile = env.HOME ?? env.USERPROFILE;\n return profile ? path.join(profile, \".codex\") : undefined;\n}\n\nfunction loginCacheKey(executable: string, env: NodeJS.ProcessEnv): string {\n return `${executable}\\0${resolveCodexAuthHome(env) ?? \"\"}`;\n}\n\nfunction inFlightLoginsFor(runner: CodexCliFallbackRunner): Map<string, LoginStatusCacheEntry> {\n let map = inFlightLoginByRunner.get(runner);\n if (!map) {\n map = new Map();\n inFlightLoginByRunner.set(runner, map);\n }\n return map;\n}\n\nfunction dropInFlightLogin(\n runner: CodexCliFallbackRunner,\n cacheKey: string,\n entry: LoginStatusCacheEntry,\n): void {\n const map = inFlightLoginByRunner.get(runner);\n if (map?.get(cacheKey) === entry) map.delete(cacheKey);\n}\n\n/**\n * Args mirror the bench provider: fully sandboxed, ephemeral, no tools/hooks/\n * plugins/memories — extraction must behave as a plain completion endpoint.\n */\nfunction buildExecArgs(\n modelId: string,\n config: CodexCliFallbackConfig,\n workspacePath: string,\n outputPath: string\n): string[] {\n const reasoningEffort = readReasoningEffort(config) ?? DEFAULT_REASONING_EFFORT;\n return [\n \"exec\",\n \"--strict-config\",\n \"--model\",\n modelId,\n \"--config\",\n `model_reasoning_effort=${JSON.stringify(reasoningEffort)}`,\n \"--config\",\n 'approval_policy=\"never\"',\n \"--config\",\n 'web_search=\"disabled\"',\n \"--disable\",\n \"hooks\",\n \"--disable\",\n \"shell_tool\",\n \"--disable\",\n \"unified_exec\",\n \"--disable\",\n \"apps\",\n \"--disable\",\n \"plugins\",\n \"--disable\",\n \"remote_plugin\",\n \"--disable\",\n \"multi_agent\",\n \"--disable\",\n \"browser_use\",\n \"--disable\",\n \"browser_use_external\",\n \"--disable\",\n \"computer_use\",\n \"--disable\",\n \"image_generation\",\n \"--disable\",\n \"in_app_browser\",\n \"--disable\",\n \"goals\",\n \"--disable\",\n \"memories\",\n \"--disable\",\n \"chronicle\",\n \"--disable\",\n \"tool_suggest\",\n \"--disable\",\n \"workspace_dependencies\",\n \"--disable\",\n \"shell_snapshot\",\n \"--ephemeral\",\n \"--ignore-user-config\",\n \"--ignore-rules\",\n \"--sandbox\",\n \"read-only\",\n \"--cd\",\n workspacePath,\n \"--skip-git-repo-check\",\n \"--json\",\n \"--output-last-message\",\n outputPath,\n \"-\",\n ];\n}\n\nfunction readReasoningEffort(config: CodexCliFallbackConfig): CodexCliReasoningEffort | undefined {\n for (const value of [config.codexCliReasoningEffort, config.reasoningEffort]) {\n if (typeof value === \"string\") {\n const normalized = value.trim().toLowerCase();\n if (normalized === \"low\" || normalized === \"medium\" || normalized === \"high\" || normalized === \"xhigh\") {\n return normalized;\n }\n throw new CodexSubscriptionConfigError(\n \"codex-subscription reasoningEffort must be one of low, medium, high, xhigh (got unrecognized value)\"\n );\n }\n }\n return undefined;\n}\n\n/**\n * One JSON object per message: role boundaries are structural (JSON string\n * escaping), so literal `[system]`/role-marker text inside message content\n * can never forge another role's turn. Content stays model-visible verbatim.\n */\nfunction buildPrompt(messages: readonly CodexCliFallbackMessage[]): string {\n const transcript = messages\n .map((message) => JSON.stringify({ role: message.role, content: message.content }))\n .join(\"\\n\");\n return [\n \"You are acting as an LLM completion endpoint for a memory-extraction pipeline, not as a coding agent.\",\n \"Answer the request in the transcript below. Do not inspect files, run commands, browse, or use tools.\",\n \"Return only the final answer text. If the request asks for JSON, return raw JSON only.\",\n \"\",\n 'TRANSCRIPT (JSON Lines: one {\"role\":\"...\",\"content\":\"...\"} object per message; newlines inside content are escaped):',\n transcript,\n ].join(\"\\n\");\n}\n\nfunction execFailureError(\n result: CodexSubscriptionExecResult,\n timeoutMs: number,\n executable: string,\n env: NodeJS.ProcessEnv\n): Error {\n const combined = `${result.stderr}\\n${result.stdout}`;\n // The authoritative timeout marker wins over auth-pattern text: a timed-out\n // exec may have already printed model/diagnostic output containing 401/403\n // before the deadline fired (issue #2833).\n if (TIMEOUT_PATTERN.test(combined)) {\n return new CodexSubscriptionTimeoutError(timeoutMs);\n }\n if (AUTH_FAILURE_PATTERN.test(combined)) {\n // Re-check login on the next request; the cached status is now stale.\n loginStatusCache.delete(loginCacheKey(executable, env));\n return new CodexSubscriptionAuthError(\n \"expired_or_revoked\",\n \"codex-subscription: the Codex CLI rejected the request as unauthenticated \" +\n \"(session expired or revoked). Run `codex login` again to re-authenticate, then retry.\"\n );\n }\n\n const exitLabel = result.signal ? `signal ${result.signal}` : `exit ${result.status ?? \"unknown\"}`;\n return new Error(\n `codex-subscription: codex exec failed (${exitLabel}): ${summarizeOutput(result.stderr, result.stdout)}`\n );\n}\n\n/** Secret-redacted, then bounded tail of child output — the only child text\n * that ever reaches a thrown error. Redaction runs BEFORE bounding so a\n * secret straddling the cutoff cannot survive as an unmatchable fragment. */\nfunction summarizeOutput(stderr: string, stdout: string): string {\n const summary = [stderr.trim(), stdout.trim()].filter((part) => part.length > 0).join(\"\\n\");\n if (summary.length === 0) {\n return \"no process output\";\n }\n return redactSecretEchoes(summary).slice(-OUTPUT_SUMMARY_LIMIT);\n}\n\nexport function redactSecretEchoes(value: string): string {\n let redacted = value;\n for (const pattern of SECRET_ECHO_PATTERNS) {\n redacted = redacted.replace(pattern, \"[redacted]\");\n }\n return redacted;\n}\ntype CodexSubscriptionUsage = Pick<CodexCliFallbackResult, \"usage\">;\n\nfunction usageFrom(result: CodexSubscriptionExecResult): CodexSubscriptionUsage {\n const usage = parseCodexJsonlUsage(`${result.stdout}\\n${result.stderr}`);\n if (!usage) {\n return {};\n }\n return {\n usage: {\n inputTokens: usage.inputTokens,\n outputTokens: usage.outputTokens,\n totalTokens: usage.inputTokens + usage.outputTokens,\n },\n };\n}\n\nexport function parseCodexJsonlUsage(output: string): { inputTokens: number; outputTokens: number } | undefined {\n let usage: { inputTokens: number; outputTokens: number } | undefined;\n for (const line of output.split(/\\r?\\n/)) {\n const trimmed = line.trim();\n if (!trimmed.startsWith(\"{\")) continue;\n try {\n const event = JSON.parse(trimmed) as {\n type?: unknown;\n usage?: Record<string, unknown>;\n };\n if (event.type !== \"turn.completed\" || !event.usage) continue;\n const inputTokens = readCounter(event.usage.input_tokens);\n const outputTokens = readCounter(event.usage.output_tokens);\n if (inputTokens !== undefined && outputTokens !== undefined) {\n usage = { inputTokens, outputTokens };\n }\n } catch {\n // codex exec prints non-JSON status text alongside JSONL; ignore it\n }\n }\n return usage;\n}\n\nfunction readCounter(value: unknown): number | undefined {\n if (typeof value !== \"number\" || !Number.isFinite(value) || value < 0) {\n return undefined;\n }\n return value;\n}\n\nfunction abortErrorOf(signal: AbortSignal): Error {\n if (signal.reason instanceof CodexSubscriptionTimeoutError) return signal.reason;\n const reason =\n signal.reason instanceof Error\n ? signal.reason\n : signal.reason !== undefined\n ? new Error(String(signal.reason))\n : new DOMException(\"The operation was aborted.\", \"AbortError\");\n const match = /fallback LLM timed out after (\\d+)ms/i.exec(reason.message);\n if (match) {\n return new CodexSubscriptionTimeoutError(Number(match[1]));\n }\n return reason;\n}\n\n/** Bounds streamed child output to STDIO_LIMIT, keeping the TAIL — codex\n * prints its final error or turn.completed result last. Secrets are redacted\n * BEFORE bounding so one straddling the cutoff cannot leak a fragment. */\nfunction appendBounded(existing: string, next: string): string {\n const redacted = redactSecretEchoes(existing + next);\n return redacted.length > STDIO_LIMIT ? redacted.slice(-STDIO_LIMIT) : redacted;\n}\n\nasync function runLoginStatusSubprocess(\n executable: string,\n env: NodeJS.ProcessEnv,\n timeoutMs: number,\n signal: AbortSignal | undefined,\n children: Set<number>,\n): Promise<{ status: number | null; stdout: string; stderr: string }> {\n return await runSubprocess(executable, [\"login\", \"status\"], {\n env,\n stdin: undefined,\n timeoutMs,\n timeoutLabel: \"login status\",\n signal,\n children,\n });\n}\n\nasync function runCodexExecSubprocess(\n request: CodexSubscriptionExecRequest,\n children: Set<number>,\n): Promise<CodexSubscriptionExecResult> {\n const result = await runSubprocess(request.executable, request.args, {\n env: request.env,\n stdin: request.input,\n timeoutMs: request.timeoutMs,\n timeoutLabel: \"exec\",\n signal: request.signal,\n cwd: request.workspacePath,\n children,\n });\n if (result.status === 124) return { ...result, outputText: \"\" };\n let outputText = \"\";\n try {\n outputText = (await readFile(request.outputPath, \"utf8\")).trim();\n } catch {\n // Missing output file surfaces as the no-final-message error path.\n }\n return { ...result, outputText };\n}\n\ninterface SubprocessOptions {\n env: NodeJS.ProcessEnv;\n stdin?: string;\n timeoutMs?: number;\n timeoutLabel: string;\n signal?: AbortSignal;\n cwd?: string;\n children: Set<number>;\n}\n\nasync function runSubprocess(executable: string, args: string[], options: SubprocessOptions): Promise<CommandOutput> {\n return await new Promise<CommandOutput>((resolve, reject) => {\n if (options.signal?.aborted) {\n reject(abortErrorOf(options.signal));\n return;\n }\n const child = launchProcess(executable, args, {\n ...(options.cwd ? { cwd: options.cwd } : {}),\n env: options.env,\n stdio: [options.stdin === undefined ? \"ignore\" : \"pipe\", \"pipe\", \"pipe\"],\n detached: process.platform !== \"win32\",\n windowsHide: true,\n });\n registerActiveCodexChild(child.pid, options.children);\n let stdout = \"\";\n let stderr = \"\";\n let timedOut = false;\n let settled = false;\n let killTimeout: ReturnType<typeof setTimeout> | undefined;\n const clearKillTimeout = (): void => {\n if (killTimeout) {\n clearTimeout(killTimeout);\n killTimeout = undefined;\n }\n };\n const terminate = (signal: NodeJS.Signals): void => {\n if (child.pid && process.platform !== \"win32\") {\n try {\n process.kill(-child.pid, signal);\n return;\n } catch {\n // fall through to killing the direct child\n }\n }\n child.kill(signal);\n };\n const scheduleForcedKill = (): void => {\n clearKillTimeout();\n killTimeout = setTimeout(() => terminate(\"SIGKILL\"), 1_000);\n killTimeout.unref();\n };\n const finish = (fn: () => void): void => {\n if (settled) return;\n settled = true;\n clearTimeout(timeout);\n options.signal?.removeEventListener(\"abort\", onAbort);\n fn();\n };\n const settleTimeout = (): void => {\n timedOut = true;\n stderr = appendBounded(\n stderr,\n `\\ncodex-subscription: ${options.timeoutLabel} timed out after ${options.timeoutMs}ms.`\n );\n finish(() => {\n resolve({\n status: 124,\n signal: \"SIGTERM\",\n stdout,\n stderr,\n });\n });\n };\n const onAbort = (): void => {\n const reasonText =\n options.signal?.reason instanceof Error\n ? options.signal.reason.message\n : String(options.signal?.reason ?? \"\");\n terminate(\"SIGTERM\");\n scheduleForcedKill();\n if (/fallback LLM timed out after \\d+ms/i.test(reasonText)) {\n settleTimeout();\n return;\n }\n finish(() => reject(abortErrorOf(options.signal!)));\n };\n options.signal?.addEventListener(\"abort\", onAbort, { once: true });\n const timeout = options.timeoutMs\n ? setTimeout(() => {\n terminate(\"SIGTERM\");\n scheduleForcedKill();\n settleTimeout();\n }, options.timeoutMs)\n : undefined;\n timeout?.unref();\n child.stdout?.setEncoding(\"utf8\");\n child.stderr?.setEncoding(\"utf8\");\n child.stdout?.on(\"data\", (chunk: string) => {\n stdout = appendBounded(stdout, chunk);\n });\n child.stderr?.on(\"data\", (chunk: string) => {\n stderr = appendBounded(stderr, chunk);\n });\n child.stdin?.on(\"error\", (error: NodeJS.ErrnoException) => {\n stderr = appendBounded(stderr, `\\ncodex-subscription: stdin error: ${error.code ?? error.message}`);\n });\n child.on(\"error\", (error) => {\n unregisterActiveCodexChild(child.pid, options.children);\n finish(() => {\n reject(\n child.pid\n ? new Error(`codex-subscription: codex CLI failed after start: ${safeMessage(error)}`, { cause: error })\n : new CodexSubscriptionAuthError(\n \"unauthenticated\",\n `codex-subscription: codex CLI not found at \\`${executable}\\` — install the Codex CLI and run \\`codex login\\` with a ChatGPT account, then retry.`\n )\n );\n });\n });\n child.on(\"close\", (status, signal) => {\n clearKillTimeout();\n unregisterActiveCodexChild(child.pid, options.children);\n finish(() => {\n resolve({\n status: timedOut ? (status === null || status === 0 ? 124 : status) : status,\n signal: timedOut ? (signal ?? \"SIGTERM\") : signal,\n stdout,\n stderr,\n });\n });\n });\n if (options.stdin !== undefined) {\n try {\n child.stdin?.end(options.stdin);\n } catch (error) {\n log.debug(`codex-subscription: failed writing prompt to stdin: ${safeMessage(error)}`);\n }\n }\n });\n}\n\nfunction safeMessage(error: unknown): string {\n return error instanceof Error ? error.message : String(error);\n}\n\nexport const __codexSubscriptionTestHooks = {\n activeCodexChildCount: (runner?: CodexCliFallbackRunner): number => {\n const target = runner ?? defaultRegisteredRunner;\n return target ? (childrenByRunner.get(target)?.size ?? 0) : 0;\n },\n appendBounded,\n resetLoginStatusCache: (): void => {\n loginStatusCache.clear();\n },\n isCoreRunnerRegistered: (): boolean => coreRunnerRegistered,\n resetCoreRunnerRegistered: (): void => {\n coreRunnerRegistered = false;\n defaultRegisteredRunner = undefined;\n },\n};\n\nfunction registerActiveCodexChild(pid: number | undefined, children: Set<number>): void {\n if (pid === undefined) return;\n children.add(pid);\n}\n\nfunction unregisterActiveCodexChild(pid: number | undefined, children: Set<number>): void {\n if (pid === undefined) return;\n children.delete(pid);\n}\n\nfunction terminateCodexChildPid(pid: number, signal: NodeJS.Signals): void {\n if (process.platform !== \"win32\") {\n try {\n process.kill(-pid, signal);\n return;\n } catch {\n // Fall back to killing the direct child below.\n }\n }\n\n try {\n process.kill(pid, signal);\n } catch {\n // The child may already have exited.\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAMA,OAAOA,WAAU;;;ACWjB,SAAS,OAAO,SAAS,UAAU,IAAI,YAAY;AACnD,OAAO,QAAQ;AACf,OAAO,UAAU;AAeV,IAAM,iCAAiC;AAG9C,IAAM,uBAAuB;AAE7B,IAAM,2BAAoD;AAC1D,IAAM,qBAAqB;AAC3B,IAAM,0BAA0B;AAChC,IAAM,4BAA4B,KAAK;AACvC,IAAM,cAAc;AACpB,IAAM,uBAAuB;AAM7B,IAAM,wBAAwD,OAAO,OAAO,EAAE,YAAY,MAAM,MAAM,MAAM,aAAa,KAAK,CAAC;AAQ/H,IAAM,8BAA8D,OAAO,OAAO;AAAA,EAChF,WAAW;AAAA,EACX,SAAS;AAAA,EACT,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,SAAS;AAAA,EACT,aAAa;AAAA,EACb,MAAM;AAAA,EACN,WAAW;AAAA,EACX,UAAU;AAAA,EACV,MAAM;AAAA,EACN,cAAc;AAAA,EACd,SAAS;AAAA,EACT,UAAU;AAAA,EACV,qBAAqB;AAAA,EACrB,UAAU;AAAA,EACV,sBAAsB;AAAA,EACtB,IAAI;AAAA,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AAY,UAAU;AAAA,EAC3D;AACA,MAAI,wBAAwB,GAAG,GAAG;AAChC,WAAO,EAAE,eAAe,SAAS,YAAY,QAAQ;AAAA,EACvD;AACA,QAAM,aAAa,4BAA4B,GAAG;AAClD,MAAI,eAAe,QAAW;AAC5B,WAAO;AAAA,MACL,eAAe;AAAA,MACf;AAAA,MACA,YAAY,wBAAwB,UAAU;AAAA,IAChD;AAAA,EACF;AACA,SAAO,EAAE,eAAe,cAAc,YAAY,UAAU;AAC9D;AAEO,SAAS,qBAAqB,OAAoC;AACvE,MAAI,OAAO,UAAU,SAAU,QAAO;AACtC,QAAM,UAAU,MAAM,KAAK;AAC3B,SAAO,QAAQ,SAAS,IAAI,gBAAgB,OAAO,IAAI;AACzD;AAEO,SAAS,wBAAwB,eAA8D;AACpG,MAAI,CAAC,iBAAiB,OAAO,kBAAkB,SAAU,QAAO;AAChE,QAAM,MAAM;AACZ,SACE,qBAAqB,IAAI,YAAY,KACrC,qBAAqB,IAAI,aAAa,KACtC,qBAAqB,IAAI,SAAS;AAEtC;AAEO,SAAS,8BAAsC;AACpD,SAAOC,MAAK,KAAK,eAAe,GAAG,aAAa,WAAW;AAC7D;","names":["path","path"]}
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
readGatewayWorkspaceDir,
|
|
27
27
|
tryCodexSubscriptionProvider,
|
|
28
28
|
withCodexRuntimeShutdown
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-ZU3NJNO7.js";
|
|
30
30
|
import {
|
|
31
31
|
extractJsonCandidates
|
|
32
32
|
} from "./chunk-YBA52OKG.js";
|
|
@@ -843,4 +843,4 @@ export {
|
|
|
843
843
|
gatewayTaskChainOptions,
|
|
844
844
|
FallbackLlmClient
|
|
845
845
|
};
|
|
846
|
-
//# sourceMappingURL=chunk-
|
|
846
|
+
//# sourceMappingURL=chunk-ZU5JDLOH.js.map
|
package/dist/cli.js
CHANGED
|
@@ -91,14 +91,14 @@ import {
|
|
|
91
91
|
runWorkProductStatusCliCommand,
|
|
92
92
|
runWorkProjectCliCommand,
|
|
93
93
|
runWorkTaskCliCommand
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-B74NPUHT.js";
|
|
95
95
|
import "./chunk-MMACM5G2.js";
|
|
96
96
|
import "./chunk-54BGIBCR.js";
|
|
97
97
|
import "./chunk-H4CKS5B2.js";
|
|
98
98
|
import "./chunk-FXZTL7F7.js";
|
|
99
99
|
import "./chunk-PYHOAXTI.js";
|
|
100
100
|
import "./chunk-UP6MOYCB.js";
|
|
101
|
-
import "./chunk-
|
|
101
|
+
import "./chunk-IN4OFAHX.js";
|
|
102
102
|
import "./chunk-BV2TIZ4F.js";
|
|
103
103
|
import "./chunk-Z734BLO3.js";
|
|
104
104
|
import "./chunk-HDDRVXX4.js";
|
|
@@ -113,7 +113,7 @@ import "./chunk-TBUEE7XF.js";
|
|
|
113
113
|
import "./chunk-SZDLX763.js";
|
|
114
114
|
import "./chunk-PYIFUBRK.js";
|
|
115
115
|
import "./chunk-EDR6CVWZ.js";
|
|
116
|
-
import "./chunk-
|
|
116
|
+
import "./chunk-WHQXWFH7.js";
|
|
117
117
|
import "./chunk-WHCD4Z3D.js";
|
|
118
118
|
import "./chunk-YQJCWR4R.js";
|
|
119
119
|
import "./chunk-7IGMKQWK.js";
|
|
@@ -121,13 +121,13 @@ import "./chunk-2524MOWK.js";
|
|
|
121
121
|
import "./chunk-HSSERO3E.js";
|
|
122
122
|
import "./chunk-NOUJNHWG.js";
|
|
123
123
|
import "./chunk-I7TR2OCU.js";
|
|
124
|
-
import "./chunk-
|
|
124
|
+
import "./chunk-2IW5PT7U.js";
|
|
125
125
|
import "./chunk-HL4DB7TO.js";
|
|
126
126
|
import "./chunk-WLT6LTQP.js";
|
|
127
127
|
import "./chunk-EOU6V4IN.js";
|
|
128
128
|
import "./chunk-VHSQU3RO.js";
|
|
129
|
-
import "./chunk-
|
|
130
|
-
import "./chunk-
|
|
129
|
+
import "./chunk-BK4FBHZ3.js";
|
|
130
|
+
import "./chunk-FVRTCYZ3.js";
|
|
131
131
|
import "./chunk-VUROWXFL.js";
|
|
132
132
|
import "./chunk-B2NXOVZN.js";
|
|
133
133
|
import "./chunk-RIZ5NUNN.js";
|
|
@@ -135,11 +135,11 @@ import "./chunk-ADJXJKU6.js";
|
|
|
135
135
|
import "./chunk-ADYP7HXE.js";
|
|
136
136
|
import "./chunk-3T74IZB3.js";
|
|
137
137
|
import "./chunk-2LA3H54D.js";
|
|
138
|
-
import "./chunk-
|
|
139
|
-
import "./chunk-
|
|
138
|
+
import "./chunk-TLHF75OR.js";
|
|
139
|
+
import "./chunk-6QYPL6NI.js";
|
|
140
140
|
import "./chunk-KFY3SGN7.js";
|
|
141
141
|
import "./chunk-CMTINOFS.js";
|
|
142
|
-
import "./chunk-
|
|
142
|
+
import "./chunk-4EACCIPO.js";
|
|
143
143
|
import "./chunk-I6ORDT54.js";
|
|
144
144
|
import "./chunk-BCCG7VWM.js";
|
|
145
145
|
import "./chunk-GGRRF4PZ.js";
|
|
@@ -152,7 +152,7 @@ import "./chunk-YNDLCWXS.js";
|
|
|
152
152
|
import "./chunk-AUDJPF4N.js";
|
|
153
153
|
import "./chunk-44442YCH.js";
|
|
154
154
|
import "./chunk-Y4Z4I6WK.js";
|
|
155
|
-
import "./chunk-
|
|
155
|
+
import "./chunk-B4ZU34JQ.js";
|
|
156
156
|
import "./chunk-KJTKLXTH.js";
|
|
157
157
|
import "./chunk-2DQ2XREU.js";
|
|
158
158
|
import "./chunk-OKTXM5H4.js";
|
|
@@ -191,7 +191,7 @@ import "./chunk-KFZY2OFH.js";
|
|
|
191
191
|
import "./chunk-27NO2KVB.js";
|
|
192
192
|
import "./chunk-C6WMSXCJ.js";
|
|
193
193
|
import "./chunk-B32WYRXX.js";
|
|
194
|
-
import "./chunk-
|
|
194
|
+
import "./chunk-2XJZLSXE.js";
|
|
195
195
|
import "./chunk-V7IZKJI3.js";
|
|
196
196
|
import "./chunk-TB6CBZ5V.js";
|
|
197
197
|
import "./chunk-XW2T4QAW.js";
|
|
@@ -205,27 +205,27 @@ import "./chunk-2TGIKMMZ.js";
|
|
|
205
205
|
import "./chunk-SDESKFKT.js";
|
|
206
206
|
import "./chunk-3HSRWJTC.js";
|
|
207
207
|
import "./chunk-E33UJHY3.js";
|
|
208
|
-
import "./chunk-
|
|
209
|
-
import "./chunk-
|
|
208
|
+
import "./chunk-GGJFRVRD.js";
|
|
209
|
+
import "./chunk-GQZSGXR6.js";
|
|
210
210
|
import "./chunk-SRT6SHVZ.js";
|
|
211
|
-
import "./chunk-
|
|
211
|
+
import "./chunk-Z3DDQXM4.js";
|
|
212
212
|
import "./chunk-TE6S7KDF.js";
|
|
213
213
|
import "./chunk-EIB4FJVR.js";
|
|
214
214
|
import "./chunk-MZUQVWVC.js";
|
|
215
215
|
import "./chunk-A5KNZSNA.js";
|
|
216
216
|
import "./chunk-HUSTM6PU.js";
|
|
217
217
|
import "./chunk-D24OXEPB.js";
|
|
218
|
-
import "./chunk-
|
|
219
|
-
import "./chunk-
|
|
220
|
-
import "./chunk-
|
|
221
|
-
import "./chunk-
|
|
222
|
-
import "./chunk-
|
|
223
|
-
import "./chunk-
|
|
224
|
-
import "./chunk-
|
|
218
|
+
import "./chunk-BK7AJUWB.js";
|
|
219
|
+
import "./chunk-OQSSQOKQ.js";
|
|
220
|
+
import "./chunk-HQGATKG2.js";
|
|
221
|
+
import "./chunk-XHGYZRVW.js";
|
|
222
|
+
import "./chunk-MPGLM2VU.js";
|
|
223
|
+
import "./chunk-YOEYL6CH.js";
|
|
224
|
+
import "./chunk-K6RTQZA4.js";
|
|
225
225
|
import "./chunk-7T4TOGMS.js";
|
|
226
226
|
import "./chunk-7YQ6ESEA.js";
|
|
227
227
|
import "./chunk-ZXF3O7P4.js";
|
|
228
|
-
import "./chunk-
|
|
228
|
+
import "./chunk-WC475JOG.js";
|
|
229
229
|
import "./chunk-K36RMINQ.js";
|
|
230
230
|
import "./chunk-PQM3B54K.js";
|
|
231
231
|
import "./chunk-2RUTN7PR.js";
|
|
@@ -236,15 +236,15 @@ import "./chunk-2FLFJTCI.js";
|
|
|
236
236
|
import "./chunk-JATHBCAV.js";
|
|
237
237
|
import "./chunk-ZQUVBZI4.js";
|
|
238
238
|
import "./chunk-5R627MYY.js";
|
|
239
|
-
import "./chunk-
|
|
240
|
-
import "./chunk-
|
|
239
|
+
import "./chunk-54FDG7K7.js";
|
|
240
|
+
import "./chunk-WV254W4V.js";
|
|
241
241
|
import "./chunk-AB3A7EFH.js";
|
|
242
242
|
import "./chunk-KIUVEMBI.js";
|
|
243
|
-
import "./chunk-
|
|
243
|
+
import "./chunk-LECSS7EE.js";
|
|
244
244
|
import "./chunk-2BPPGNAQ.js";
|
|
245
245
|
import "./chunk-DJSJ4ULL.js";
|
|
246
|
-
import "./chunk-
|
|
247
|
-
import "./chunk-
|
|
246
|
+
import "./chunk-LTDLJCMQ.js";
|
|
247
|
+
import "./chunk-6LCWKS62.js";
|
|
248
248
|
import "./chunk-W4F3C7N7.js";
|
|
249
249
|
import "./chunk-MPC7TYTZ.js";
|
|
250
250
|
import "./chunk-YK7GOPIE.js";
|
|
@@ -253,16 +253,16 @@ import "./chunk-OGXXGHW6.js";
|
|
|
253
253
|
import "./chunk-RJWL3RHB.js";
|
|
254
254
|
import "./chunk-VQ7B2Q6M.js";
|
|
255
255
|
import "./chunk-BANSBRNX.js";
|
|
256
|
-
import "./chunk-
|
|
256
|
+
import "./chunk-FUOAIJKQ.js";
|
|
257
257
|
import "./chunk-GNVZQ5JN.js";
|
|
258
258
|
import "./chunk-YN2UN7N3.js";
|
|
259
259
|
import "./chunk-JWX2Q6HS.js";
|
|
260
|
-
import "./chunk-
|
|
260
|
+
import "./chunk-PJYK7HH2.js";
|
|
261
261
|
import "./chunk-HNOSWPKG.js";
|
|
262
262
|
import "./chunk-WWDO7ZWM.js";
|
|
263
263
|
import "./chunk-5Y43VGYB.js";
|
|
264
264
|
import "./chunk-YUTT4ZTI.js";
|
|
265
|
-
import "./chunk-
|
|
265
|
+
import "./chunk-VZELUMKK.js";
|
|
266
266
|
import "./chunk-5HFVWYHL.js";
|
|
267
267
|
import "./chunk-MUHGYV2V.js";
|
|
268
268
|
import "./chunk-5KVT6G5U.js";
|
|
@@ -275,15 +275,15 @@ import "./chunk-SOBJ6NEY.js";
|
|
|
275
275
|
import "./chunk-7O2MC42R.js";
|
|
276
276
|
import "./chunk-VYDGHJIN.js";
|
|
277
277
|
import "./chunk-H7XKCNR6.js";
|
|
278
|
-
import "./chunk-
|
|
278
|
+
import "./chunk-EBOHFZI4.js";
|
|
279
279
|
import "./chunk-B6SPPYGJ.js";
|
|
280
280
|
import "./chunk-FMFCQRDM.js";
|
|
281
281
|
import "./chunk-UD7UNYRD.js";
|
|
282
282
|
import "./chunk-IISBCCWR.js";
|
|
283
|
-
import "./chunk-
|
|
284
|
-
import "./chunk-
|
|
283
|
+
import "./chunk-WBDIZWJQ.js";
|
|
284
|
+
import "./chunk-WYPCJK6K.js";
|
|
285
285
|
import "./chunk-2YA5N2BY.js";
|
|
286
|
-
import "./chunk-
|
|
286
|
+
import "./chunk-ZJJFUEPO.js";
|
|
287
287
|
import "./chunk-HUDPXTXW.js";
|
|
288
288
|
import "./chunk-AZEZSQ5R.js";
|
|
289
289
|
import "./chunk-VPEIWMUT.js";
|
|
@@ -303,12 +303,12 @@ import "./chunk-WTWQA7BB.js";
|
|
|
303
303
|
import "./chunk-VZIAVM72.js";
|
|
304
304
|
import "./chunk-HRATODNO.js";
|
|
305
305
|
import "./chunk-LXATZLSC.js";
|
|
306
|
-
import "./chunk-
|
|
306
|
+
import "./chunk-ZGFLIK5H.js";
|
|
307
307
|
import "./chunk-RF2SMMPP.js";
|
|
308
|
-
import "./chunk-
|
|
309
|
-
import "./chunk-
|
|
310
|
-
import "./chunk-
|
|
311
|
-
import "./chunk-
|
|
308
|
+
import "./chunk-GCAQ3VUJ.js";
|
|
309
|
+
import "./chunk-TFLPDNQV.js";
|
|
310
|
+
import "./chunk-HPFVZPRH.js";
|
|
311
|
+
import "./chunk-KESJ5XX3.js";
|
|
312
312
|
import "./chunk-UFGFMWAD.js";
|
|
313
313
|
import "./chunk-BFBS7OFQ.js";
|
|
314
314
|
import "./chunk-QGJSBU4R.js";
|
|
@@ -317,21 +317,21 @@ import "./chunk-LXY5VVGM.js";
|
|
|
317
317
|
import "./chunk-GKCXTSFF.js";
|
|
318
318
|
import "./chunk-2LSZVONP.js";
|
|
319
319
|
import "./chunk-ZY2MNJR6.js";
|
|
320
|
-
import "./chunk-
|
|
320
|
+
import "./chunk-NUSAAN75.js";
|
|
321
321
|
import "./chunk-3UXOZBHV.js";
|
|
322
322
|
import "./chunk-J6GZ2254.js";
|
|
323
|
-
import "./chunk-
|
|
324
|
-
import "./chunk-
|
|
323
|
+
import "./chunk-KO3YBHOV.js";
|
|
324
|
+
import "./chunk-IR4C3DP2.js";
|
|
325
325
|
import "./chunk-CSAKJVXW.js";
|
|
326
326
|
import "./chunk-K2XUWZBM.js";
|
|
327
327
|
import "./chunk-OD4FM2U7.js";
|
|
328
|
-
import "./chunk-
|
|
328
|
+
import "./chunk-MSIRVXQ3.js";
|
|
329
329
|
import "./chunk-QEDLJDHP.js";
|
|
330
330
|
import "./chunk-U4LUIE6Y.js";
|
|
331
331
|
import "./chunk-T6OZW2WR.js";
|
|
332
332
|
import "./chunk-5YQXWVCP.js";
|
|
333
333
|
import "./chunk-MJFL75J6.js";
|
|
334
|
-
import "./chunk-
|
|
334
|
+
import "./chunk-YUTG35M4.js";
|
|
335
335
|
import "./chunk-X2KO4FK5.js";
|
|
336
336
|
import "./chunk-GZFKCLRC.js";
|
|
337
337
|
import "./chunk-EKUI7I2X.js";
|
|
@@ -351,7 +351,7 @@ import "./chunk-ZCUTSMR2.js";
|
|
|
351
351
|
import "./chunk-QDW3E4RD.js";
|
|
352
352
|
import "./chunk-6L63IN3M.js";
|
|
353
353
|
import "./chunk-ZJP66Q4I.js";
|
|
354
|
-
import "./chunk-
|
|
354
|
+
import "./chunk-WAD32CZG.js";
|
|
355
355
|
import "./chunk-UHVXE24Y.js";
|
|
356
356
|
import "./chunk-QGVCFVX6.js";
|
|
357
357
|
import "./chunk-IGOW4TJE.js";
|
|
@@ -379,7 +379,7 @@ import "./chunk-S2HLHAZ4.js";
|
|
|
379
379
|
import "./chunk-DM2T26WE.js";
|
|
380
380
|
import "./chunk-LDXUBPMO.js";
|
|
381
381
|
import "./chunk-FF6N7BXC.js";
|
|
382
|
-
import "./chunk-
|
|
382
|
+
import "./chunk-QFEDITXM.js";
|
|
383
383
|
import "./chunk-AAD2ZS6P.js";
|
|
384
384
|
import "./chunk-BV2BRHD4.js";
|
|
385
385
|
import "./chunk-ZIKENA2C.js";
|
|
@@ -411,11 +411,11 @@ import "./chunk-C64XATK7.js";
|
|
|
411
411
|
import "./chunk-42JKGUFJ.js";
|
|
412
412
|
import "./chunk-23G5P7TA.js";
|
|
413
413
|
import "./chunk-4KLQI3L2.js";
|
|
414
|
-
import "./chunk-
|
|
414
|
+
import "./chunk-ZU5JDLOH.js";
|
|
415
415
|
import "./chunk-I55KAVET.js";
|
|
416
416
|
import "./chunk-L2EXJQJP.js";
|
|
417
417
|
import "./chunk-45GF7Y3V.js";
|
|
418
|
-
import "./chunk-
|
|
418
|
+
import "./chunk-ZU3NJNO7.js";
|
|
419
419
|
import "./chunk-E2AWJ7KQ.js";
|
|
420
420
|
import "./chunk-W5BIQOAJ.js";
|
|
421
421
|
import "./chunk-HADD45AR.js";
|
|
@@ -24,7 +24,7 @@ import "../chunk-FEHIOYML.js";
|
|
|
24
24
|
import "../chunk-P32IDSHD.js";
|
|
25
25
|
import {
|
|
26
26
|
StorageManager
|
|
27
|
-
} from "../chunk-
|
|
27
|
+
} from "../chunk-WAD32CZG.js";
|
|
28
28
|
import "../chunk-UHVXE24Y.js";
|
|
29
29
|
import "../chunk-QGVCFVX6.js";
|
|
30
30
|
import "../chunk-IGOW4TJE.js";
|
|
@@ -52,7 +52,7 @@ import "../chunk-S2HLHAZ4.js";
|
|
|
52
52
|
import "../chunk-DM2T26WE.js";
|
|
53
53
|
import "../chunk-LDXUBPMO.js";
|
|
54
54
|
import "../chunk-FF6N7BXC.js";
|
|
55
|
-
import "../chunk-
|
|
55
|
+
import "../chunk-QFEDITXM.js";
|
|
56
56
|
import "../chunk-AAD2ZS6P.js";
|
|
57
57
|
import "../chunk-BV2BRHD4.js";
|
|
58
58
|
import "../chunk-ZIKENA2C.js";
|
|
@@ -88,11 +88,11 @@ import "../chunk-C64XATK7.js";
|
|
|
88
88
|
import "../chunk-42JKGUFJ.js";
|
|
89
89
|
import "../chunk-23G5P7TA.js";
|
|
90
90
|
import "../chunk-4KLQI3L2.js";
|
|
91
|
-
import "../chunk-
|
|
91
|
+
import "../chunk-ZU5JDLOH.js";
|
|
92
92
|
import "../chunk-I55KAVET.js";
|
|
93
93
|
import "../chunk-L2EXJQJP.js";
|
|
94
94
|
import "../chunk-45GF7Y3V.js";
|
|
95
|
-
import "../chunk-
|
|
95
|
+
import "../chunk-ZU3NJNO7.js";
|
|
96
96
|
import "../chunk-E2AWJ7KQ.js";
|
|
97
97
|
import "../chunk-W5BIQOAJ.js";
|
|
98
98
|
import "../chunk-HADD45AR.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CompoundingEngine,
|
|
3
3
|
defaultTierMigrationCycleBudget
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-T77AX6DG.js";
|
|
5
5
|
import "../chunk-5KBIOI4G.js";
|
|
6
6
|
import "../chunk-OGXXGHW6.js";
|
|
7
7
|
import "../chunk-YUTT4ZTI.js";
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-KESJ5XX3.js";
|
|
9
|
+
import "../chunk-WAD32CZG.js";
|
|
10
10
|
import "../chunk-UHVXE24Y.js";
|
|
11
11
|
import "../chunk-QGVCFVX6.js";
|
|
12
12
|
import "../chunk-IGOW4TJE.js";
|
|
@@ -34,7 +34,7 @@ import "../chunk-S2HLHAZ4.js";
|
|
|
34
34
|
import "../chunk-DM2T26WE.js";
|
|
35
35
|
import "../chunk-LDXUBPMO.js";
|
|
36
36
|
import "../chunk-FF6N7BXC.js";
|
|
37
|
-
import "../chunk-
|
|
37
|
+
import "../chunk-QFEDITXM.js";
|
|
38
38
|
import "../chunk-AAD2ZS6P.js";
|
|
39
39
|
import "../chunk-BV2BRHD4.js";
|
|
40
40
|
import "../chunk-ZIKENA2C.js";
|
|
@@ -66,11 +66,11 @@ import "../chunk-C64XATK7.js";
|
|
|
66
66
|
import "../chunk-42JKGUFJ.js";
|
|
67
67
|
import "../chunk-23G5P7TA.js";
|
|
68
68
|
import "../chunk-4KLQI3L2.js";
|
|
69
|
-
import "../chunk-
|
|
69
|
+
import "../chunk-ZU5JDLOH.js";
|
|
70
70
|
import "../chunk-I55KAVET.js";
|
|
71
71
|
import "../chunk-L2EXJQJP.js";
|
|
72
72
|
import "../chunk-45GF7Y3V.js";
|
|
73
|
-
import "../chunk-
|
|
73
|
+
import "../chunk-ZU3NJNO7.js";
|
|
74
74
|
import "../chunk-E2AWJ7KQ.js";
|
|
75
75
|
import "../chunk-W5BIQOAJ.js";
|
|
76
76
|
import "../chunk-HADD45AR.js";
|