issue-flow 0.17.0 → 0.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -100
- package/dist/agent-EWKA7357.js +32 -0
- package/dist/{analyze-6M3KEOX7.js → analyze-Z7ODC27F.js} +42 -41
- package/dist/analyze-Z7ODC27F.js.map +1 -0
- package/dist/{apply-ADB3ZK7W.js → apply-VNSWQS6O.js} +22 -24
- package/dist/apply-VNSWQS6O.js.map +1 -0
- package/dist/artifacts-AMJQJFFV.js +82 -0
- package/dist/artifacts-AMJQJFFV.js.map +1 -0
- package/dist/{bench-FM7I7EIV.js → bench-ZJEIACUK.js} +42 -42
- package/dist/{chunk-RYOUZ6EK.js → chunk-23VHVVKW.js} +3 -3
- package/dist/chunk-2EYLOS5I.js +99 -0
- package/dist/chunk-2EYLOS5I.js.map +1 -0
- package/dist/{chunk-ANI2NTR4.js → chunk-2EZW4X57.js} +28 -25
- package/dist/chunk-2EZW4X57.js.map +1 -0
- package/dist/{chunk-E6KXCV3T.js → chunk-2Q6PG3MT.js} +15 -15
- package/dist/chunk-2Q6PG3MT.js.map +1 -0
- package/dist/{chunk-C5TL7T4V.js → chunk-2YM2VH6R.js} +2 -2
- package/dist/{chunk-LPWPFIIB.js → chunk-2YYP7AE6.js} +14 -16
- package/dist/{chunk-LPWPFIIB.js.map → chunk-2YYP7AE6.js.map} +1 -1
- package/dist/chunk-3JD25HHJ.js +278 -0
- package/dist/chunk-3JD25HHJ.js.map +1 -0
- package/dist/{chunk-ISZ54SVE.js → chunk-46S7APLQ.js} +41 -17
- package/dist/chunk-46S7APLQ.js.map +1 -0
- package/dist/chunk-6AOZCWN2.js +21 -0
- package/dist/chunk-6AOZCWN2.js.map +1 -0
- package/dist/{chunk-QPGEFLMY.js → chunk-7CMVL4X6.js} +7 -7
- package/dist/chunk-7MJGYPHF.js +1571 -0
- package/dist/chunk-7MJGYPHF.js.map +1 -0
- package/dist/chunk-7ZZUSMBJ.js +35 -0
- package/dist/chunk-7ZZUSMBJ.js.map +1 -0
- package/dist/{chunk-DUS5ZNKL.js → chunk-DIMDAYZS.js} +7 -6
- package/dist/{chunk-DGRTJD5R.js → chunk-DXH4TQRB.js} +7 -7
- package/dist/{chunk-CRGIQFUQ.js → chunk-E2H3JV2E.js} +3 -1
- package/dist/chunk-E2H3JV2E.js.map +1 -0
- package/dist/{chunk-YUNBOUQH.js → chunk-ERAG5IQB.js} +8 -8
- package/dist/{chunk-D6ZBGJ3L.js → chunk-F2NFJ27Z.js} +130 -36
- package/dist/chunk-F2NFJ27Z.js.map +1 -0
- package/dist/{chunk-SOM4QA6C.js → chunk-GD7JZMSJ.js} +93 -18
- package/dist/chunk-GD7JZMSJ.js.map +1 -0
- package/dist/{chunk-YII4U7ZD.js → chunk-HEHHQU4G.js} +70 -81
- package/dist/chunk-HEHHQU4G.js.map +1 -0
- package/dist/{chunk-KZ5EY5XX.js → chunk-HHXWAWU6.js} +159 -114
- package/dist/chunk-HHXWAWU6.js.map +1 -0
- package/dist/{chunk-SGTTR4XW.js → chunk-HWWB22HC.js} +152 -100
- package/dist/chunk-HWWB22HC.js.map +1 -0
- package/dist/chunk-IMB6FA2F.js +673 -0
- package/dist/chunk-IMB6FA2F.js.map +1 -0
- package/dist/{chunk-6YQT3SSM.js → chunk-IQYXXFRC.js} +22 -6
- package/dist/chunk-IQYXXFRC.js.map +1 -0
- package/dist/chunk-J6VJ5M2U.js +1201 -0
- package/dist/chunk-J6VJ5M2U.js.map +1 -0
- package/dist/{chunk-B3TSS7BT.js → chunk-KDQRNVBZ.js} +3 -3
- package/dist/{chunk-A4H7P7T7.js → chunk-LRWIP7QS.js} +41 -26
- package/dist/chunk-LRWIP7QS.js.map +1 -0
- package/dist/{chunk-DV7HUC4Z.js → chunk-LYC57OXF.js} +20 -117
- package/dist/chunk-LYC57OXF.js.map +1 -0
- package/dist/{chunk-HAKDLR6N.js → chunk-MAJ6QDRL.js} +65 -78
- package/dist/chunk-MAJ6QDRL.js.map +1 -0
- package/dist/{chunk-HJBF4WD2.js → chunk-MHA7Q3KU.js} +288 -108
- package/dist/chunk-MHA7Q3KU.js.map +1 -0
- package/dist/{chunk-UK4E2FUA.js → chunk-MQTVMB7W.js} +103 -76
- package/dist/chunk-MQTVMB7W.js.map +1 -0
- package/dist/chunk-NP47HRX2.js +136 -0
- package/dist/chunk-NP47HRX2.js.map +1 -0
- package/dist/{chunk-MI5TREN3.js → chunk-NYDAHE3Y.js} +52 -46
- package/dist/chunk-NYDAHE3Y.js.map +1 -0
- package/dist/{chunk-UWDCIFTP.js → chunk-P7ZYOC23.js} +41 -57
- package/dist/chunk-P7ZYOC23.js.map +1 -0
- package/dist/{chunk-3R27MJ5R.js → chunk-PFWHHYEO.js} +3 -3
- package/dist/{chunk-2SUFAE6X.js → chunk-PHPAK2L6.js} +44 -33
- package/dist/{chunk-2SUFAE6X.js.map → chunk-PHPAK2L6.js.map} +1 -1
- package/dist/{chunk-PPZ3K4YM.js → chunk-PRGPSNGA.js} +2 -2
- package/dist/{chunk-32JSYXEK.js → chunk-RGFMQFX7.js} +9 -23
- package/dist/{chunk-32JSYXEK.js.map → chunk-RGFMQFX7.js.map} +1 -1
- package/dist/{chunk-YVPZUN6X.js → chunk-TJVX42KY.js} +335 -38
- package/dist/chunk-TJVX42KY.js.map +1 -0
- package/dist/{chunk-RCZJQUTC.js → chunk-UDRAD7MF.js} +60 -27
- package/dist/chunk-UDRAD7MF.js.map +1 -0
- package/dist/{chunk-HY5HLFDU.js → chunk-UHDXXLYH.js} +148 -135
- package/dist/chunk-UHDXXLYH.js.map +1 -0
- package/dist/{chunk-RNFUVKC3.js → chunk-UPAAZU4W.js} +30 -13
- package/dist/chunk-UPAAZU4W.js.map +1 -0
- package/dist/{chunk-L6HSKTQE.js → chunk-W7LZLJAF.js} +4 -4
- package/dist/{chunk-HLAPOUEM.js → chunk-WB2FVIUS.js} +44 -12
- package/dist/chunk-WB2FVIUS.js.map +1 -0
- package/dist/{chunk-VE3IYNDN.js → chunk-WPHC6JBR.js} +9 -9
- package/dist/chunk-WPHC6JBR.js.map +1 -0
- package/dist/{chunk-KZXQWC7U.js → chunk-XHCP6ZNO.js} +201 -64
- package/dist/chunk-XHCP6ZNO.js.map +1 -0
- package/dist/{chunk-7F7LGMVO.js → chunk-XKR3VD2Z.js} +12 -12
- package/dist/{chunk-7F7LGMVO.js.map → chunk-XKR3VD2Z.js.map} +1 -1
- package/dist/{chunk-ICM463EO.js → chunk-XNK5UN2D.js} +5 -649
- package/dist/chunk-XNK5UN2D.js.map +1 -0
- package/dist/{chunk-Z5O2XBWA.js → chunk-XQLNZW7I.js} +40 -30
- package/dist/chunk-XQLNZW7I.js.map +1 -0
- package/dist/{chunk-QMIQR7EE.js → chunk-ZAYATXJD.js} +32 -316
- package/dist/chunk-ZAYATXJD.js.map +1 -0
- package/dist/cli.js +128 -60
- package/dist/cli.js.map +1 -1
- package/dist/compat-YPDZB34U.js +24 -0
- package/dist/{config-KGZUPAUP.js → config-56B4OHZE.js} +20 -17
- package/dist/{contract-JH2WBIO6.js → contract-HWLFFL3F.js} +2 -2
- package/dist/{conventions-RYN7OXJN.js → conventions-DW2CM5I3.js} +20 -16
- package/dist/{conventions-RYN7OXJN.js.map → conventions-DW2CM5I3.js.map} +1 -1
- package/dist/db-5NU77PJA.js +264 -0
- package/dist/db-5NU77PJA.js.map +1 -0
- package/dist/diagnostics-UCTS2VUF.js +25 -0
- package/dist/execute-R7AVOLNG.js +38 -0
- package/dist/{generate-CX6KNHZS.js → generate-O7GUXLN4.js} +46 -43
- package/dist/generate-O7GUXLN4.js.map +1 -0
- package/dist/{git-A2IP32PQ.js → git-LCG45YXD.js} +2 -3
- package/dist/history-6GSURU3H.js +101 -0
- package/dist/history-6GSURU3H.js.map +1 -0
- package/dist/init-DD6DBRC5.js +28 -0
- package/dist/{operations-CAKIT2BO.js → operations-HU5ZFEBA.js} +78 -52
- package/dist/operations-HU5ZFEBA.js.map +1 -0
- package/dist/{permissions-G4XCAESF.js → permissions-NNNSRC4P.js} +5 -6
- package/dist/plan-XR6B7EM3.js +38 -0
- package/dist/{policy-WX6O2JID.js → policy-RFJOJQL6.js} +17 -15
- package/dist/{policy-WX6O2JID.js.map → policy-RFJOJQL6.js.map} +1 -1
- package/dist/pr-OSCNJCOO.js +42 -0
- package/dist/pr-review-IKIYHFBO.js +33 -0
- package/dist/prd-HFDZJJQR.js +37 -0
- package/dist/{ps-76L6ZAZL.js → ps-AKRHGPSR.js} +26 -15
- package/dist/ps-AKRHGPSR.js.map +1 -0
- package/dist/{recorder-N7U66HCO.js → recorder-T7426CKV.js} +11 -7
- package/dist/registry-DWRKD65A.js +17 -0
- package/dist/repository-TABBRW2C.js +80 -0
- package/dist/resume-GDXKK5XP.js +278 -0
- package/dist/resume-GDXKK5XP.js.map +1 -0
- package/dist/review-JJHMQA2O.js +38 -0
- package/dist/routing-FPNUVE7T.js +35 -0
- package/dist/run-RLCURLLL.js +61 -0
- package/dist/{session-publisher-KAJQRHNZ.js → session-publisher-Q5TNEZPX.js} +3 -3
- package/dist/session-publisher-Q5TNEZPX.js.map +1 -0
- package/dist/{state-manager-UPHO2EA2.js → state-manager-IGNTD4AB.js} +9 -4
- package/dist/state-manager-IGNTD4AB.js.map +1 -0
- package/dist/{usage-U7QNGCPK.js → usage-XW27AL5K.js} +69 -63
- package/dist/usage-XW27AL5K.js.map +1 -0
- package/dist/web-NCDBVZ5Y.js +205 -0
- package/dist/web-NCDBVZ5Y.js.map +1 -0
- package/package.json +20 -7
- package/prompts/analyze.md +16 -19
- package/prompts/execute.md +73 -144
- package/prompts/generate.md +23 -10
- package/prompts/plan.md +32 -60
- package/prompts/pr-review.md +58 -40
- package/prompts/pr.md +50 -16
- package/prompts/prd.md +26 -19
- package/prompts/review.md +41 -18
- package/web/AGENTS.md +115 -7
- package/web/public/app.css +393 -245
- package/web/public/app.js +212 -143
- package/web/public/index.html +106 -78
- package/dist/agent-TB6W7PT7.js +0 -30
- package/dist/analyze-6M3KEOX7.js.map +0 -1
- package/dist/apply-ADB3ZK7W.js.map +0 -1
- package/dist/chunk-6YQT3SSM.js.map +0 -1
- package/dist/chunk-A4H7P7T7.js.map +0 -1
- package/dist/chunk-ANI2NTR4.js.map +0 -1
- package/dist/chunk-CRGIQFUQ.js.map +0 -1
- package/dist/chunk-D6ZBGJ3L.js.map +0 -1
- package/dist/chunk-DV7HUC4Z.js.map +0 -1
- package/dist/chunk-E6KXCV3T.js.map +0 -1
- package/dist/chunk-HAKDLR6N.js.map +0 -1
- package/dist/chunk-HJBF4WD2.js.map +0 -1
- package/dist/chunk-HLAPOUEM.js.map +0 -1
- package/dist/chunk-HY5HLFDU.js.map +0 -1
- package/dist/chunk-ICM463EO.js.map +0 -1
- package/dist/chunk-ISZ54SVE.js.map +0 -1
- package/dist/chunk-KZ5EY5XX.js.map +0 -1
- package/dist/chunk-KZXQWC7U.js.map +0 -1
- package/dist/chunk-MI5TREN3.js.map +0 -1
- package/dist/chunk-QMIQR7EE.js.map +0 -1
- package/dist/chunk-RCZJQUTC.js.map +0 -1
- package/dist/chunk-RNFUVKC3.js.map +0 -1
- package/dist/chunk-SGTTR4XW.js.map +0 -1
- package/dist/chunk-SOM4QA6C.js.map +0 -1
- package/dist/chunk-UK4E2FUA.js.map +0 -1
- package/dist/chunk-UWDCIFTP.js.map +0 -1
- package/dist/chunk-VE3IYNDN.js.map +0 -1
- package/dist/chunk-WCCZJL7W.js +0 -141
- package/dist/chunk-WCCZJL7W.js.map +0 -1
- package/dist/chunk-XEYH6ZZI.js +0 -289
- package/dist/chunk-XEYH6ZZI.js.map +0 -1
- package/dist/chunk-XZUEFTUP.js +0 -243
- package/dist/chunk-XZUEFTUP.js.map +0 -1
- package/dist/chunk-YII4U7ZD.js.map +0 -1
- package/dist/chunk-YVPZUN6X.js.map +0 -1
- package/dist/chunk-Z5O2XBWA.js.map +0 -1
- package/dist/diagnostics-HTCWF7F4.js +0 -23
- package/dist/execute-QL3ZQIAP.js +0 -37
- package/dist/generate-CX6KNHZS.js.map +0 -1
- package/dist/init-PDVQDRS6.js +0 -24
- package/dist/operations-CAKIT2BO.js.map +0 -1
- package/dist/plan-PRORGS3L.js +0 -34
- package/dist/pr-27RMQI5F.js +0 -39
- package/dist/pr-review-VNESMAMT.js +0 -32
- package/dist/prd-ZNC4T5BS.js +0 -33
- package/dist/ps-76L6ZAZL.js.map +0 -1
- package/dist/registry-XLHHYLTR.js +0 -15
- package/dist/resume-VLWIE264.js +0 -244
- package/dist/resume-VLWIE264.js.map +0 -1
- package/dist/review-7CREJDKB.js +0 -35
- package/dist/routing-VCDYHSXA.js +0 -33
- package/dist/run-3MPORLF5.js +0 -56
- package/dist/usage-U7QNGCPK.js.map +0 -1
- package/dist/web-HUNDHCJ4.js +0 -172
- package/dist/web-HUNDHCJ4.js.map +0 -1
- /package/dist/{agent-TB6W7PT7.js.map → agent-EWKA7357.js.map} +0 -0
- /package/dist/{bench-FM7I7EIV.js.map → bench-ZJEIACUK.js.map} +0 -0
- /package/dist/{chunk-RYOUZ6EK.js.map → chunk-23VHVVKW.js.map} +0 -0
- /package/dist/{chunk-C5TL7T4V.js.map → chunk-2YM2VH6R.js.map} +0 -0
- /package/dist/{chunk-QPGEFLMY.js.map → chunk-7CMVL4X6.js.map} +0 -0
- /package/dist/{chunk-DUS5ZNKL.js.map → chunk-DIMDAYZS.js.map} +0 -0
- /package/dist/{chunk-DGRTJD5R.js.map → chunk-DXH4TQRB.js.map} +0 -0
- /package/dist/{chunk-YUNBOUQH.js.map → chunk-ERAG5IQB.js.map} +0 -0
- /package/dist/{chunk-B3TSS7BT.js.map → chunk-KDQRNVBZ.js.map} +0 -0
- /package/dist/{chunk-3R27MJ5R.js.map → chunk-PFWHHYEO.js.map} +0 -0
- /package/dist/{chunk-PPZ3K4YM.js.map → chunk-PRGPSNGA.js.map} +0 -0
- /package/dist/{chunk-L6HSKTQE.js.map → chunk-W7LZLJAF.js.map} +0 -0
- /package/dist/{config-KGZUPAUP.js.map → compat-YPDZB34U.js.map} +0 -0
- /package/dist/{contract-JH2WBIO6.js.map → config-56B4OHZE.js.map} +0 -0
- /package/dist/{diagnostics-HTCWF7F4.js.map → contract-HWLFFL3F.js.map} +0 -0
- /package/dist/{execute-QL3ZQIAP.js.map → diagnostics-UCTS2VUF.js.map} +0 -0
- /package/dist/{git-A2IP32PQ.js.map → execute-R7AVOLNG.js.map} +0 -0
- /package/dist/{init-PDVQDRS6.js.map → git-LCG45YXD.js.map} +0 -0
- /package/dist/{permissions-G4XCAESF.js.map → init-DD6DBRC5.js.map} +0 -0
- /package/dist/{plan-PRORGS3L.js.map → permissions-NNNSRC4P.js.map} +0 -0
- /package/dist/{pr-27RMQI5F.js.map → plan-XR6B7EM3.js.map} +0 -0
- /package/dist/{pr-review-VNESMAMT.js.map → pr-OSCNJCOO.js.map} +0 -0
- /package/dist/{prd-ZNC4T5BS.js.map → pr-review-IKIYHFBO.js.map} +0 -0
- /package/dist/{recorder-N7U66HCO.js.map → prd-HFDZJJQR.js.map} +0 -0
- /package/dist/{registry-XLHHYLTR.js.map → recorder-T7426CKV.js.map} +0 -0
- /package/dist/{review-7CREJDKB.js.map → registry-DWRKD65A.js.map} +0 -0
- /package/dist/{routing-VCDYHSXA.js.map → repository-TABBRW2C.js.map} +0 -0
- /package/dist/{run-3MPORLF5.js.map → review-JJHMQA2O.js.map} +0 -0
- /package/dist/{session-publisher-KAJQRHNZ.js.map → routing-FPNUVE7T.js.map} +0 -0
- /package/dist/{state-manager-UPHO2EA2.js.map → run-RLCURLLL.js.map} +0 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
exitCodeFor,
|
|
4
|
+
runPrReview
|
|
5
|
+
} from "./chunk-XQLNZW7I.js";
|
|
6
|
+
import "./chunk-ERAG5IQB.js";
|
|
7
|
+
import "./chunk-WB2FVIUS.js";
|
|
8
|
+
import "./chunk-XKR3VD2Z.js";
|
|
9
|
+
import "./chunk-MQTVMB7W.js";
|
|
10
|
+
import "./chunk-2Q6PG3MT.js";
|
|
11
|
+
import "./chunk-DXH4TQRB.js";
|
|
12
|
+
import "./chunk-F2NFJ27Z.js";
|
|
13
|
+
import "./chunk-UHDXXLYH.js";
|
|
14
|
+
import "./chunk-J6VJ5M2U.js";
|
|
15
|
+
import "./chunk-7CMVL4X6.js";
|
|
16
|
+
import "./chunk-DIMDAYZS.js";
|
|
17
|
+
import "./chunk-HEHHQU4G.js";
|
|
18
|
+
import "./chunk-PRGPSNGA.js";
|
|
19
|
+
import "./chunk-P3LRUNC6.js";
|
|
20
|
+
import "./chunk-LYC57OXF.js";
|
|
21
|
+
import "./chunk-GD7JZMSJ.js";
|
|
22
|
+
import "./chunk-NP47HRX2.js";
|
|
23
|
+
import "./chunk-IMB6FA2F.js";
|
|
24
|
+
import "./chunk-7MJGYPHF.js";
|
|
25
|
+
import "./chunk-XNK5UN2D.js";
|
|
26
|
+
import "./chunk-MAJ6QDRL.js";
|
|
27
|
+
import "./chunk-TJVX42KY.js";
|
|
28
|
+
import "./chunk-PFWHHYEO.js";
|
|
29
|
+
export {
|
|
30
|
+
exitCodeFor,
|
|
31
|
+
runPrReview
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=pr-review-IKIYHFBO.js.map
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
runPrd
|
|
4
|
+
} from "./chunk-2EZW4X57.js";
|
|
5
|
+
import "./chunk-6AOZCWN2.js";
|
|
6
|
+
import "./chunk-RGFMQFX7.js";
|
|
7
|
+
import "./chunk-WPHC6JBR.js";
|
|
8
|
+
import "./chunk-3JD25HHJ.js";
|
|
9
|
+
import "./chunk-ZAYATXJD.js";
|
|
10
|
+
import "./chunk-7ZZUSMBJ.js";
|
|
11
|
+
import "./chunk-KMMASOA6.js";
|
|
12
|
+
import "./chunk-WB2FVIUS.js";
|
|
13
|
+
import "./chunk-XKR3VD2Z.js";
|
|
14
|
+
import "./chunk-MQTVMB7W.js";
|
|
15
|
+
import "./chunk-2Q6PG3MT.js";
|
|
16
|
+
import "./chunk-DXH4TQRB.js";
|
|
17
|
+
import "./chunk-F2NFJ27Z.js";
|
|
18
|
+
import "./chunk-UHDXXLYH.js";
|
|
19
|
+
import "./chunk-J6VJ5M2U.js";
|
|
20
|
+
import "./chunk-7CMVL4X6.js";
|
|
21
|
+
import "./chunk-DIMDAYZS.js";
|
|
22
|
+
import "./chunk-HEHHQU4G.js";
|
|
23
|
+
import "./chunk-PRGPSNGA.js";
|
|
24
|
+
import "./chunk-P3LRUNC6.js";
|
|
25
|
+
import "./chunk-LYC57OXF.js";
|
|
26
|
+
import "./chunk-GD7JZMSJ.js";
|
|
27
|
+
import "./chunk-NP47HRX2.js";
|
|
28
|
+
import "./chunk-IMB6FA2F.js";
|
|
29
|
+
import "./chunk-7MJGYPHF.js";
|
|
30
|
+
import "./chunk-XNK5UN2D.js";
|
|
31
|
+
import "./chunk-MAJ6QDRL.js";
|
|
32
|
+
import "./chunk-TJVX42KY.js";
|
|
33
|
+
import "./chunk-PFWHHYEO.js";
|
|
34
|
+
export {
|
|
35
|
+
runPrd
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=prd-HFDZJJQR.js.map
|
|
@@ -1,22 +1,28 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
listLiveRuns
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-UPAAZU4W.js";
|
|
5
|
+
import "./chunk-23VHVVKW.js";
|
|
6
6
|
import {
|
|
7
7
|
formatDuration,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-ICM463EO.js";
|
|
17
|
-
import "./chunk-XEYH6ZZI.js";
|
|
8
|
+
loadGlobalConfig,
|
|
9
|
+
printInfo,
|
|
10
|
+
resolveProjectPaths
|
|
11
|
+
} from "./chunk-J6VJ5M2U.js";
|
|
12
|
+
import "./chunk-7CMVL4X6.js";
|
|
13
|
+
import "./chunk-DIMDAYZS.js";
|
|
14
|
+
import "./chunk-HEHHQU4G.js";
|
|
15
|
+
import "./chunk-PRGPSNGA.js";
|
|
18
16
|
import "./chunk-P3LRUNC6.js";
|
|
19
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-LYC57OXF.js";
|
|
18
|
+
import "./chunk-GD7JZMSJ.js";
|
|
19
|
+
import "./chunk-NP47HRX2.js";
|
|
20
|
+
import "./chunk-IMB6FA2F.js";
|
|
21
|
+
import "./chunk-7MJGYPHF.js";
|
|
22
|
+
import "./chunk-XNK5UN2D.js";
|
|
23
|
+
import "./chunk-MAJ6QDRL.js";
|
|
24
|
+
import "./chunk-TJVX42KY.js";
|
|
25
|
+
import "./chunk-PFWHHYEO.js";
|
|
20
26
|
|
|
21
27
|
// src/commands/ps.ts
|
|
22
28
|
import { z } from "zod";
|
|
@@ -61,8 +67,13 @@ function pad(cells) {
|
|
|
61
67
|
return cells.map((cell, i) => cell.padEnd(widths[i] ?? 12)).join(" ");
|
|
62
68
|
}
|
|
63
69
|
async function runPs(options = {}) {
|
|
70
|
+
let storageDriver = (await loadGlobalConfig()).storage?.driver ?? "sqlite";
|
|
71
|
+
try {
|
|
72
|
+
storageDriver = (await resolveProjectPaths()).storageDriver;
|
|
73
|
+
} catch {
|
|
74
|
+
}
|
|
64
75
|
const render = async () => {
|
|
65
|
-
const runs = await listLiveRuns();
|
|
76
|
+
const runs = await listLiveRuns({ storageDriver });
|
|
66
77
|
if (options.json === true) {
|
|
67
78
|
const payload = liveRunJsonSchema.parse({
|
|
68
79
|
schemaVersion: 1,
|
|
@@ -90,4 +101,4 @@ export {
|
|
|
90
101
|
liveRunJsonSchema,
|
|
91
102
|
runPs
|
|
92
103
|
};
|
|
93
|
-
//# sourceMappingURL=ps-
|
|
104
|
+
//# sourceMappingURL=ps-AKRHGPSR.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/commands/ps.ts"],"sourcesContent":["import { z } from 'zod';\nimport { loadGlobalConfig } from '../config/sources.js';\nimport { type LiveRun, listLiveRuns } from '../execution/registry.js';\nimport { resolveProjectPaths } from '../storage/resolve.js';\nimport { formatDuration, printInfo } from '../ui/logger.js';\n\nexport const liveRunJsonSchema = z.object({\n schemaVersion: z.literal(1),\n runs: z.array(\n z.object({\n projectId: z.string(),\n target: z.string(),\n pid: z.number(),\n host: z.string(),\n detached: z.boolean(),\n status: z.enum(['running', 'unsignaled', 'orphan']),\n startedAt: z.string(),\n lastHeartbeatAt: z.string(),\n issue: z.number().nullable(),\n phase: z.string().nullable(),\n storiesCompleted: z.number().nullable(),\n storiesTotal: z.number().nullable(),\n elapsedSeconds: z.number().nullable(),\n }),\n ),\n});\n\nexport interface PsOptions {\n json?: boolean;\n watch?: boolean;\n}\n\nexport function formatPsTable(runs: readonly LiveRun[]): string[] {\n if (runs.length === 0) return ['No issue-flow run is active on this machine.'];\n\n const header = pad(['STATUS', 'ISSUE', 'PHASE', 'PROGRESS', 'ELAPSED', 'PID', 'PROJECT']);\n const rows = runs.map((run) =>\n pad([\n run.status,\n run.issue !== null ? `#${run.issue}` : run.target,\n run.phase ?? '—',\n run.storiesTotal !== null ? `${run.storiesCompleted ?? 0}/${run.storiesTotal}` : '—',\n run.elapsedSeconds !== null ? formatDuration(run.elapsedSeconds) : '—',\n String(run.pid),\n `${run.projectId}${run.detached ? ' (bg)' : ''}`,\n ]),\n );\n return [header, ...rows];\n}\n\nfunction pad(cells: string[]): string {\n const widths = [12, 10, 12, 10, 10, 8, 24];\n return cells.map((cell, i) => cell.padEnd(widths[i] ?? 12)).join(' ');\n}\n\nexport async function runPs(options: PsOptions = {}): Promise<number> {\n let storageDriver = (await loadGlobalConfig()).storage?.driver ?? 'sqlite';\n try {\n storageDriver = (await resolveProjectPaths()).storageDriver;\n } catch {\n // `ps` is machine-wide and remains usable outside a repository.\n }\n const render = async () => {\n const runs = await listLiveRuns({ storageDriver });\n if (options.json === true) {\n const payload = liveRunJsonSchema.parse({\n schemaVersion: 1,\n runs: runs.map(({ lockFile: _lockFile, ...rest }) => rest),\n });\n printInfo(JSON.stringify(payload, null, 2));\n return runs.length;\n }\n for (const line of formatPsTable(runs)) {\n printInfo(line);\n }\n return runs.length;\n };\n\n if (options.watch === true) {\n for (;;) {\n await render();\n await new Promise((resolve) => setTimeout(resolve, 2000));\n }\n }\n\n await render();\n return 0;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAS,SAAS;AAMX,IAAM,oBAAoB,EAAE,OAAO;AAAA,EACxC,eAAe,EAAE,QAAQ,CAAC;AAAA,EAC1B,MAAM,EAAE;AAAA,IACN,EAAE,OAAO;AAAA,MACP,WAAW,EAAE,OAAO;AAAA,MACpB,QAAQ,EAAE,OAAO;AAAA,MACjB,KAAK,EAAE,OAAO;AAAA,MACd,MAAM,EAAE,OAAO;AAAA,MACf,UAAU,EAAE,QAAQ;AAAA,MACpB,QAAQ,EAAE,KAAK,CAAC,WAAW,cAAc,QAAQ,CAAC;AAAA,MAClD,WAAW,EAAE,OAAO;AAAA,MACpB,iBAAiB,EAAE,OAAO;AAAA,MAC1B,OAAO,EAAE,OAAO,EAAE,SAAS;AAAA,MAC3B,OAAO,EAAE,OAAO,EAAE,SAAS;AAAA,MAC3B,kBAAkB,EAAE,OAAO,EAAE,SAAS;AAAA,MACtC,cAAc,EAAE,OAAO,EAAE,SAAS;AAAA,MAClC,gBAAgB,EAAE,OAAO,EAAE,SAAS;AAAA,IACtC,CAAC;AAAA,EACH;AACF,CAAC;AAOM,SAAS,cAAc,MAAoC;AAChE,MAAI,KAAK,WAAW,EAAG,QAAO,CAAC,8CAA8C;AAE7E,QAAM,SAAS,IAAI,CAAC,UAAU,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C,gBAAU,IAAI;AAAA,IAChB;AACA,WAAO,KAAK;AAAA,EACd;AAEA,MAAI,QAAQ,UAAU,MAAM;AAC1B,eAAS;AACP,YAAM,OAAO;AACb,YAAM,IAAI,QAAQ,CAAC,YAAY,WAAW,SAAS,GAAI,CAAC;AAAA,IAC1D;AAAA,EACF;AAEA,QAAM,OAAO;AACb,SAAO;AACT;","names":[]}
|
|
@@ -10,13 +10,17 @@ import {
|
|
|
10
10
|
resetTelemetryState,
|
|
11
11
|
timingFromUsage,
|
|
12
12
|
usageFromClaude
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-SOM4QA6C.js";
|
|
16
|
-
import "./chunk-ICM463EO.js";
|
|
17
|
-
import "./chunk-XEYH6ZZI.js";
|
|
13
|
+
} from "./chunk-HEHHQU4G.js";
|
|
14
|
+
import "./chunk-PRGPSNGA.js";
|
|
18
15
|
import "./chunk-P3LRUNC6.js";
|
|
19
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-GD7JZMSJ.js";
|
|
17
|
+
import "./chunk-NP47HRX2.js";
|
|
18
|
+
import "./chunk-IMB6FA2F.js";
|
|
19
|
+
import "./chunk-7MJGYPHF.js";
|
|
20
|
+
import "./chunk-XNK5UN2D.js";
|
|
21
|
+
import "./chunk-MAJ6QDRL.js";
|
|
22
|
+
import "./chunk-TJVX42KY.js";
|
|
23
|
+
import "./chunk-PFWHHYEO.js";
|
|
20
24
|
export {
|
|
21
25
|
attachVerdict,
|
|
22
26
|
beginExecution,
|
|
@@ -29,4 +33,4 @@ export {
|
|
|
29
33
|
timingFromUsage,
|
|
30
34
|
usageFromClaude
|
|
31
35
|
};
|
|
32
|
-
//# sourceMappingURL=recorder-
|
|
36
|
+
//# sourceMappingURL=recorder-T7426CKV.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
classifyRunLock,
|
|
4
|
+
listLiveRuns
|
|
5
|
+
} from "./chunk-UPAAZU4W.js";
|
|
6
|
+
import "./chunk-23VHVVKW.js";
|
|
7
|
+
import "./chunk-IMB6FA2F.js";
|
|
8
|
+
import "./chunk-7MJGYPHF.js";
|
|
9
|
+
import "./chunk-XNK5UN2D.js";
|
|
10
|
+
import "./chunk-MAJ6QDRL.js";
|
|
11
|
+
import "./chunk-TJVX42KY.js";
|
|
12
|
+
import "./chunk-PFWHHYEO.js";
|
|
13
|
+
export {
|
|
14
|
+
classifyRunLock,
|
|
15
|
+
listLiveRuns
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=registry-DWRKD65A.js.map
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
ensurePlanRepository,
|
|
4
|
+
exportStoredState,
|
|
5
|
+
findHighestStoredUserStoryNumber,
|
|
6
|
+
getLastBranchRepository,
|
|
7
|
+
getPlanRepository,
|
|
8
|
+
getProviderHealthRepository,
|
|
9
|
+
getQueueRepository,
|
|
10
|
+
getVerificationRepository,
|
|
11
|
+
ingestAgentPlan,
|
|
12
|
+
ingestGeneratedPlan,
|
|
13
|
+
listStoredExecutions,
|
|
14
|
+
listStoredRunSnapshots,
|
|
15
|
+
listStoredSessionEvents,
|
|
16
|
+
listStoredSessions,
|
|
17
|
+
loadExecution,
|
|
18
|
+
loadStoredLastBranch,
|
|
19
|
+
loadStoredPlan,
|
|
20
|
+
loadStoredQueue,
|
|
21
|
+
materializePlan,
|
|
22
|
+
readStoredProvidersHealth,
|
|
23
|
+
registerPlanRepository,
|
|
24
|
+
registerQueueRepository,
|
|
25
|
+
registerStorageProjections,
|
|
26
|
+
resetPlanRepositories,
|
|
27
|
+
saveExecution,
|
|
28
|
+
saveSessionEvent,
|
|
29
|
+
saveStoredLastBranch,
|
|
30
|
+
saveStoredPlan,
|
|
31
|
+
saveStoredQueue,
|
|
32
|
+
saveStoredUserStoryNumbering,
|
|
33
|
+
saveStoredVerification,
|
|
34
|
+
setAgentProjectionWindow,
|
|
35
|
+
touchStoredSession,
|
|
36
|
+
updateStoredProviderHealth,
|
|
37
|
+
writePlanRows
|
|
38
|
+
} from "./chunk-7MJGYPHF.js";
|
|
39
|
+
import "./chunk-XNK5UN2D.js";
|
|
40
|
+
import "./chunk-MAJ6QDRL.js";
|
|
41
|
+
import "./chunk-TJVX42KY.js";
|
|
42
|
+
import "./chunk-PFWHHYEO.js";
|
|
43
|
+
export {
|
|
44
|
+
ensurePlanRepository,
|
|
45
|
+
exportStoredState,
|
|
46
|
+
findHighestStoredUserStoryNumber,
|
|
47
|
+
getLastBranchRepository,
|
|
48
|
+
getPlanRepository,
|
|
49
|
+
getProviderHealthRepository,
|
|
50
|
+
getQueueRepository,
|
|
51
|
+
getVerificationRepository,
|
|
52
|
+
ingestAgentPlan,
|
|
53
|
+
ingestGeneratedPlan,
|
|
54
|
+
listStoredExecutions,
|
|
55
|
+
listStoredRunSnapshots,
|
|
56
|
+
listStoredSessionEvents,
|
|
57
|
+
listStoredSessions,
|
|
58
|
+
loadExecution,
|
|
59
|
+
loadStoredLastBranch,
|
|
60
|
+
loadStoredPlan,
|
|
61
|
+
loadStoredQueue,
|
|
62
|
+
materializePlan,
|
|
63
|
+
readStoredProvidersHealth,
|
|
64
|
+
registerPlanRepository,
|
|
65
|
+
registerQueueRepository,
|
|
66
|
+
registerStorageProjections,
|
|
67
|
+
resetPlanRepositories,
|
|
68
|
+
saveExecution,
|
|
69
|
+
saveSessionEvent,
|
|
70
|
+
saveStoredLastBranch,
|
|
71
|
+
saveStoredPlan,
|
|
72
|
+
saveStoredQueue,
|
|
73
|
+
saveStoredUserStoryNumbering,
|
|
74
|
+
saveStoredVerification,
|
|
75
|
+
setAgentProjectionWindow,
|
|
76
|
+
touchStoredSession,
|
|
77
|
+
updateStoredProviderHealth,
|
|
78
|
+
writePlanRows
|
|
79
|
+
};
|
|
80
|
+
//# sourceMappingURL=repository-TABBRW2C.js.map
|
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
finishIssueClosure,
|
|
4
|
+
persistClosureChoice,
|
|
5
|
+
runPipeline
|
|
6
|
+
} from "./chunk-MHA7Q3KU.js";
|
|
7
|
+
import "./chunk-KDQRNVBZ.js";
|
|
8
|
+
import {
|
|
9
|
+
PIPELINE_PHASES,
|
|
10
|
+
PipelineManager,
|
|
11
|
+
loadExecutionPlan,
|
|
12
|
+
nextQueueIssue,
|
|
13
|
+
queueNeedsFinalization
|
|
14
|
+
} from "./chunk-LRWIP7QS.js";
|
|
15
|
+
import {
|
|
16
|
+
listStoredIssueEvents,
|
|
17
|
+
listStoredIssueIds,
|
|
18
|
+
listStoredQueues
|
|
19
|
+
} from "./chunk-2EYLOS5I.js";
|
|
20
|
+
import "./chunk-XHCP6ZNO.js";
|
|
21
|
+
import "./chunk-PHPAK2L6.js";
|
|
22
|
+
import "./chunk-E2H3JV2E.js";
|
|
23
|
+
import "./chunk-HHXWAWU6.js";
|
|
24
|
+
import "./chunk-2YYP7AE6.js";
|
|
25
|
+
import "./chunk-XQLNZW7I.js";
|
|
26
|
+
import "./chunk-ERAG5IQB.js";
|
|
27
|
+
import "./chunk-2EZW4X57.js";
|
|
28
|
+
import "./chunk-6AOZCWN2.js";
|
|
29
|
+
import "./chunk-RGFMQFX7.js";
|
|
30
|
+
import "./chunk-NYDAHE3Y.js";
|
|
31
|
+
import "./chunk-IQYXXFRC.js";
|
|
32
|
+
import "./chunk-HWWB22HC.js";
|
|
33
|
+
import {
|
|
34
|
+
resolveCommandIssue
|
|
35
|
+
} from "./chunk-WPHC6JBR.js";
|
|
36
|
+
import "./chunk-3JD25HHJ.js";
|
|
37
|
+
import "./chunk-W7LZLJAF.js";
|
|
38
|
+
import "./chunk-P7ZYOC23.js";
|
|
39
|
+
import "./chunk-46S7APLQ.js";
|
|
40
|
+
import "./chunk-ZAYATXJD.js";
|
|
41
|
+
import "./chunk-7ZZUSMBJ.js";
|
|
42
|
+
import "./chunk-KMMASOA6.js";
|
|
43
|
+
import "./chunk-WB2FVIUS.js";
|
|
44
|
+
import "./chunk-XKR3VD2Z.js";
|
|
45
|
+
import "./chunk-MQTVMB7W.js";
|
|
46
|
+
import "./chunk-3D4A4B46.js";
|
|
47
|
+
import "./chunk-2Q6PG3MT.js";
|
|
48
|
+
import "./chunk-DXH4TQRB.js";
|
|
49
|
+
import "./chunk-UDRAD7MF.js";
|
|
50
|
+
import "./chunk-F2NFJ27Z.js";
|
|
51
|
+
import "./chunk-2YM2VH6R.js";
|
|
52
|
+
import "./chunk-UHDXXLYH.js";
|
|
53
|
+
import {
|
|
54
|
+
parseJournal,
|
|
55
|
+
printError,
|
|
56
|
+
printInfo,
|
|
57
|
+
printWarning,
|
|
58
|
+
resolveIssuePaths,
|
|
59
|
+
resolveProjectPaths
|
|
60
|
+
} from "./chunk-J6VJ5M2U.js";
|
|
61
|
+
import "./chunk-7CMVL4X6.js";
|
|
62
|
+
import "./chunk-DIMDAYZS.js";
|
|
63
|
+
import "./chunk-HEHHQU4G.js";
|
|
64
|
+
import "./chunk-PRGPSNGA.js";
|
|
65
|
+
import "./chunk-P3LRUNC6.js";
|
|
66
|
+
import "./chunk-LYC57OXF.js";
|
|
67
|
+
import {
|
|
68
|
+
loadTaskPlan
|
|
69
|
+
} from "./chunk-GD7JZMSJ.js";
|
|
70
|
+
import "./chunk-NP47HRX2.js";
|
|
71
|
+
import {
|
|
72
|
+
acquireRunLock,
|
|
73
|
+
describeRunLockOwner
|
|
74
|
+
} from "./chunk-IMB6FA2F.js";
|
|
75
|
+
import "./chunk-7MJGYPHF.js";
|
|
76
|
+
import "./chunk-XNK5UN2D.js";
|
|
77
|
+
import {
|
|
78
|
+
QUEUES_DIR_NAME,
|
|
79
|
+
getIssuePaths
|
|
80
|
+
} from "./chunk-MAJ6QDRL.js";
|
|
81
|
+
import {
|
|
82
|
+
describePreflight,
|
|
83
|
+
preflightRepository
|
|
84
|
+
} from "./chunk-TJVX42KY.js";
|
|
85
|
+
import "./chunk-PFWHHYEO.js";
|
|
86
|
+
|
|
87
|
+
// src/commands/resume.ts
|
|
88
|
+
import { readdir, readFile } from "node:fs/promises";
|
|
89
|
+
import { join } from "node:path";
|
|
90
|
+
async function runResume(issue, options = {}) {
|
|
91
|
+
const mode = options.mode ?? "auto";
|
|
92
|
+
let project;
|
|
93
|
+
try {
|
|
94
|
+
project = await resolveProjectPaths();
|
|
95
|
+
} catch (err) {
|
|
96
|
+
printError(`Cannot resume: ${err instanceof Error ? err.message : String(err)}`);
|
|
97
|
+
return 1;
|
|
98
|
+
}
|
|
99
|
+
const acquisition = await acquireRunLock(project.runLockFile, { target: issue ?? "resume" });
|
|
100
|
+
if (!acquisition.ok) {
|
|
101
|
+
printError(
|
|
102
|
+
`Another issue-flow run owns this project: ${describeRunLockOwner(acquisition.owner)}.`
|
|
103
|
+
);
|
|
104
|
+
printInfo("Wait for it to finish, or stop that process before resuming.");
|
|
105
|
+
return 1;
|
|
106
|
+
}
|
|
107
|
+
const handle = acquisition.handle;
|
|
108
|
+
if (handle.reclaimedFrom !== null) {
|
|
109
|
+
printWarning(
|
|
110
|
+
`Taking over an interrupted run: ${describeRunLockOwner(handle.reclaimedFrom)}. Its lock was stale.`
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
try {
|
|
114
|
+
const queues = project.storageDriver === "sqlite" ? await listStoredQueues({ projectId: project.projectId }) : await Promise.all(
|
|
115
|
+
(await readdir(join(project.projectDir, QUEUES_DIR_NAME)).catch(() => [])).map(
|
|
116
|
+
(id) => loadExecutionPlan(
|
|
117
|
+
join(project.projectDir, QUEUES_DIR_NAME, id, "execution-plan.json")
|
|
118
|
+
)
|
|
119
|
+
)
|
|
120
|
+
);
|
|
121
|
+
const pendingQueues = queues.filter(
|
|
122
|
+
(candidate) => candidate && (issue ? candidate.id === issue.replace(/^#/, "") || candidate.issues.some((entry) => entry.id === issue.replace(/^#/, "")) : queueNeedsFinalization(candidate) || nextQueueIssue(candidate) !== null)
|
|
123
|
+
);
|
|
124
|
+
const queueMembers = /* @__PURE__ */ new Set();
|
|
125
|
+
for (const queue of pendingQueues) {
|
|
126
|
+
if (!queue) continue;
|
|
127
|
+
const code = await runPipeline(queue.requested, mode, void 0, void 0, void 0, {
|
|
128
|
+
...options.closeIssue === void 0 ? {} : { closeIssue: options.closeIssue }
|
|
129
|
+
});
|
|
130
|
+
if (code !== 0 || !options.all || issue) return code;
|
|
131
|
+
for (const member of queue.issues) queueMembers.add(member.id);
|
|
132
|
+
}
|
|
133
|
+
const targets = await findTargets(project, issue, options.all === true);
|
|
134
|
+
if (targets.length === 0) {
|
|
135
|
+
printInfo(
|
|
136
|
+
issue === void 0 ? "Nothing to resume: no issue in this project has an unfinished pipeline." : `Nothing to resume: issue #${issue} has no task plan in this project.`
|
|
137
|
+
);
|
|
138
|
+
return 0;
|
|
139
|
+
}
|
|
140
|
+
for (const target of targets) {
|
|
141
|
+
if (queueMembers.has(target.issue)) continue;
|
|
142
|
+
const code = await resumeOne(target, mode, options.closeIssue);
|
|
143
|
+
if (code !== 0) return code;
|
|
144
|
+
}
|
|
145
|
+
return 0;
|
|
146
|
+
} finally {
|
|
147
|
+
await handle.release();
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
async function resumeOne(target, mode, closeIssue) {
|
|
151
|
+
const phases = activePhases(target.plan);
|
|
152
|
+
const manager = new PipelineManager(target.plan, target.tasksFile, phases);
|
|
153
|
+
const next = manager.getNextPhase();
|
|
154
|
+
if (closeIssue !== void 0) {
|
|
155
|
+
await persistClosureChoice(target.tasksFile, closeIssue);
|
|
156
|
+
target.plan.closeIssue = closeIssue;
|
|
157
|
+
}
|
|
158
|
+
if (next === null) {
|
|
159
|
+
if (mode === "manual") return 0;
|
|
160
|
+
if (target.plan.closeIssue || target.plan.lastError?.category === "issue_closure") {
|
|
161
|
+
const resolution = await resolveCommandIssue(target.issue);
|
|
162
|
+
if (!resolution.ok) return resolution.code;
|
|
163
|
+
return finishIssueClosure(target.tasksFile, target.issue, resolution.resolved.source);
|
|
164
|
+
}
|
|
165
|
+
printInfo(`Issue #${target.issue} has every phase complete; nothing to resume.`);
|
|
166
|
+
return 0;
|
|
167
|
+
}
|
|
168
|
+
const interrupted = await lastUnfinishedPhase(target);
|
|
169
|
+
if (interrupted !== null) {
|
|
170
|
+
printInfo(`Issue #${target.issue} was interrupted during the '${interrupted}' phase.`);
|
|
171
|
+
}
|
|
172
|
+
const sameWork = interrupted === next;
|
|
173
|
+
const preflight = await preflightRepository({
|
|
174
|
+
expectedBranch: target.plan.noBranch === true ? null : target.plan.branchName,
|
|
175
|
+
intent: sameWork ? "resume-same-phase" : "new-phase"
|
|
176
|
+
});
|
|
177
|
+
if (!preflight.ok) {
|
|
178
|
+
printError(`Cannot resume issue #${target.issue}: the repository needs attention first.`);
|
|
179
|
+
for (const line of describePreflight(preflight)) {
|
|
180
|
+
printError(line);
|
|
181
|
+
}
|
|
182
|
+
return 1;
|
|
183
|
+
}
|
|
184
|
+
printInfo(`Resuming issue #${target.issue} from the '${next}' phase.`);
|
|
185
|
+
return runPipeline(target.issue, mode, next, void 0, void 0, {
|
|
186
|
+
only: true,
|
|
187
|
+
...closeIssue === void 0 ? {} : { closeIssue }
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
function activePhases(plan) {
|
|
191
|
+
const base = plan.noBranch === true ? PIPELINE_PHASES.filter((phase) => phase !== "pr") : [...PIPELINE_PHASES];
|
|
192
|
+
return plan.prReview?.enabled === true ? [...base, "pr-review"] : base;
|
|
193
|
+
}
|
|
194
|
+
async function lastUnfinishedPhase(target) {
|
|
195
|
+
const entries = target.storageDriver === "sqlite" ? await listStoredIssueEvents({ projectId: target.projectId, issueId: target.issue }) : parseJournal(
|
|
196
|
+
`${await readIfPresent(target.rotatedEventsFile)}${await readIfPresent(target.eventsFile)}`
|
|
197
|
+
);
|
|
198
|
+
if (entries.length === 0) return null;
|
|
199
|
+
const open = [];
|
|
200
|
+
for (const entry of entries) {
|
|
201
|
+
const event = entry.event;
|
|
202
|
+
const phaseValue = event.phase;
|
|
203
|
+
const phase = typeof phaseValue === "string" ? phaseValue : null;
|
|
204
|
+
if (event.type === "phase:start" && phase !== null) {
|
|
205
|
+
open.push(phase);
|
|
206
|
+
} else if (event.type === "phase:end" && phase !== null) {
|
|
207
|
+
const index = open.lastIndexOf(phase);
|
|
208
|
+
if (index >= 0) open.splice(index, 1);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
return open.at(-1) ?? null;
|
|
212
|
+
}
|
|
213
|
+
async function readIfPresent(path) {
|
|
214
|
+
try {
|
|
215
|
+
return await readFile(path, "utf-8");
|
|
216
|
+
} catch {
|
|
217
|
+
return "";
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
async function findTargets(project, issue, all) {
|
|
221
|
+
if (issue !== void 0) {
|
|
222
|
+
const target = await loadTarget(project, issue);
|
|
223
|
+
return target === null ? [] : [target];
|
|
224
|
+
}
|
|
225
|
+
const unfinished = await unfinishedTargets(project);
|
|
226
|
+
if (all) return unfinished;
|
|
227
|
+
return unfinished.slice(0, 1);
|
|
228
|
+
}
|
|
229
|
+
async function unfinishedTargets(project) {
|
|
230
|
+
let ids;
|
|
231
|
+
try {
|
|
232
|
+
ids = project.storageDriver === "sqlite" ? await listStoredIssueIds({ projectId: project.projectId }) : await readdir(project.issuesDir);
|
|
233
|
+
} catch {
|
|
234
|
+
return [];
|
|
235
|
+
}
|
|
236
|
+
const targets = [];
|
|
237
|
+
for (const id of ids) {
|
|
238
|
+
const target = await loadTarget(project, id);
|
|
239
|
+
if (target === null) continue;
|
|
240
|
+
const pendingClosure = target.plan.closeIssue === true && !target.plan.issueClosedAt;
|
|
241
|
+
if (target.plan.issueStatus === "completed" && !pendingClosure) continue;
|
|
242
|
+
const manager = new PipelineManager(target.plan, target.tasksFile, activePhases(target.plan));
|
|
243
|
+
if (manager.getNextPhase() === null && !pendingClosure && target.plan.lastError?.category !== "issue_closure")
|
|
244
|
+
continue;
|
|
245
|
+
targets.push(target);
|
|
246
|
+
}
|
|
247
|
+
return targets.sort((a, b) => attemptedAt(b.plan) - attemptedAt(a.plan));
|
|
248
|
+
}
|
|
249
|
+
function attemptedAt(plan) {
|
|
250
|
+
const at = Date.parse(plan.lastAttemptAt ?? "");
|
|
251
|
+
return Number.isNaN(at) ? 0 : at;
|
|
252
|
+
}
|
|
253
|
+
async function loadTarget(project, issue) {
|
|
254
|
+
let paths;
|
|
255
|
+
try {
|
|
256
|
+
paths = project.storageDriver === "sqlite" ? await resolveIssuePaths(issue) : getIssuePaths(project.projectId, issue);
|
|
257
|
+
} catch {
|
|
258
|
+
return null;
|
|
259
|
+
}
|
|
260
|
+
try {
|
|
261
|
+
const plan = await loadTaskPlan(paths.tasksFile);
|
|
262
|
+
return {
|
|
263
|
+
issue,
|
|
264
|
+
projectId: project.projectId,
|
|
265
|
+
storageDriver: project.storageDriver,
|
|
266
|
+
plan,
|
|
267
|
+
tasksFile: paths.tasksFile,
|
|
268
|
+
eventsFile: paths.eventsFile,
|
|
269
|
+
rotatedEventsFile: paths.rotatedEventsFile
|
|
270
|
+
};
|
|
271
|
+
} catch {
|
|
272
|
+
return null;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
export {
|
|
276
|
+
runResume
|
|
277
|
+
};
|
|
278
|
+
//# sourceMappingURL=resume-GDXKK5XP.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/commands/resume.ts"],"sourcesContent":["import { readdir, readFile } from 'node:fs/promises';\nimport { join } from 'node:path';\nimport { parseJournal } from '../core/journal.js';\nimport { PIPELINE_PHASES, PipelineManager, type PipelinePhase } from '../core/pipeline.js';\nimport { loadTaskPlan } from '../core/state-manager.js';\nimport { loadExecutionPlan, nextQueueIssue, queueNeedsFinalization } from '../execution/plan.js';\nimport { resolveCommandIssue } from '../issues/context.js';\nimport {\n listStoredIssueEvents,\n listStoredIssueIds,\n listStoredQueues,\n} from '../storage/db/queries.js';\nimport { acquireRunLock, describeRunLockOwner, type RunLockHandle } from '../storage/lock.js';\nimport { getIssuePaths, QUEUES_DIR_NAME } from '../storage/paths.js';\nimport { resolveIssuePaths, resolveProjectPaths } from '../storage/resolve.js';\nimport type { TaskPlan } from '../types.js';\nimport { printError, printInfo, printWarning } from '../ui/logger.js';\nimport { describePreflight, preflightRepository } from '../utils/git.js';\nimport { finishIssueClosure, persistClosureChoice } from './run/closure.js';\nimport { runPipeline } from './run.js';\n\n/**\n * `issue-flow resume` — explicit recovery.\n *\n * Resumption already worked before this command existed, but only *implicitly*:\n * the user re-ran the same `run` and the pipeline happened to pick up where it\n * left off, because `PipelineManager` skips the phases already marked complete\n * and `nextQueueIssue()` treats a stale `in_progress` as \"do this one first\".\n * That is a coincidence of two mechanisms, not a contract — nothing said what\n * had been interrupted, nothing checked whether the repository was still in a\n * state to continue, and nothing distinguished \"carry on\" from \"start over\".\n *\n * This command makes each of those steps explicit, in this order:\n *\n * 1. **ownership** — a live owner refuses, a dead one is taken over;\n * 2. **plans** — `execution-plan.json` for a queue, `tasks.json` for an issue;\n * 3. **the journal** — the last `phase:start` with no `phase:end` is what was\n * running when the process died, which is the one fact no snapshot keeps;\n * 4. **the preflight** — the repository is described, and a state a human has to\n * settle stops the resume instead of being repaired;\n * 5. **the phase** — `PipelineManager.getNextPhase()`, the same answer `run`\n * has always used, now stated out loud before anything runs.\n *\n * `run` is untouched: its auto-resume still works exactly as it did.\n */\n\nexport interface ResumeOptions {\n closeIssue?: boolean;\n /** Resume every unfinished issue of the project, not just one. */\n all?: boolean;\n /** Execution mode handed to the pipeline. Same values as `run`. */\n mode?: string;\n}\n\ninterface ResumeTarget {\n issue: string;\n projectId: string;\n storageDriver: 'sqlite' | 'json';\n plan: TaskPlan;\n tasksFile: string;\n eventsFile: string;\n rotatedEventsFile: string;\n}\n\nexport async function runResume(issue?: string, options: ResumeOptions = {}): Promise<number> {\n const mode = options.mode ?? 'auto';\n\n let project: Awaited<ReturnType<typeof resolveProjectPaths>>;\n try {\n project = await resolveProjectPaths();\n } catch (err) {\n printError(`Cannot resume: ${err instanceof Error ? err.message : String(err)}`);\n return 1;\n }\n\n // 1. Ownership, before reading anything else: a resume that runs beside a\n // live owner is the collision this whole layer exists to prevent.\n const acquisition = await acquireRunLock(project.runLockFile, { target: issue ?? 'resume' });\n if (!acquisition.ok) {\n printError(\n `Another issue-flow run owns this project: ${describeRunLockOwner(acquisition.owner)}.`,\n );\n printInfo('Wait for it to finish, or stop that process before resuming.');\n return 1;\n }\n const handle: RunLockHandle = acquisition.handle;\n if (handle.reclaimedFrom !== null) {\n printWarning(\n `Taking over an interrupted run: ${describeRunLockOwner(handle.reclaimedFrom)}. Its lock was stale.`,\n );\n }\n\n try {\n // Resume queue-owned delivery/closure as a queue, not as an isolated member.\n const queues =\n project.storageDriver === 'sqlite'\n ? await listStoredQueues({ projectId: project.projectId })\n : await Promise.all(\n (await readdir(join(project.projectDir, QUEUES_DIR_NAME)).catch(() => [])).map((id) =>\n loadExecutionPlan(\n join(project.projectDir, QUEUES_DIR_NAME, id, 'execution-plan.json'),\n ),\n ),\n );\n const pendingQueues = queues.filter(\n (candidate) =>\n candidate &&\n (issue\n ? candidate.id === issue.replace(/^#/, '') ||\n candidate.issues.some((entry) => entry.id === issue.replace(/^#/, ''))\n : queueNeedsFinalization(candidate) || nextQueueIssue(candidate) !== null),\n );\n const queueMembers = new Set<string>();\n for (const queue of pendingQueues) {\n if (!queue) continue;\n const code = await runPipeline(queue.requested, mode, undefined, undefined, undefined, {\n ...(options.closeIssue === undefined ? {} : { closeIssue: options.closeIssue }),\n });\n if (code !== 0 || !options.all || issue) return code;\n for (const member of queue.issues) queueMembers.add(member.id);\n }\n // 2. What is there to resume.\n const targets = await findTargets(project, issue, options.all === true);\n if (targets.length === 0) {\n printInfo(\n issue === undefined\n ? 'Nothing to resume: no issue in this project has an unfinished pipeline.'\n : `Nothing to resume: issue #${issue} has no task plan in this project.`,\n );\n return 0;\n }\n\n for (const target of targets) {\n if (queueMembers.has(target.issue)) continue;\n const code = await resumeOne(target, mode, options.closeIssue);\n if (code !== 0) return code;\n }\n return 0;\n } finally {\n await handle.release();\n }\n}\n\nasync function resumeOne(\n target: ResumeTarget,\n mode: string,\n closeIssue?: boolean,\n): Promise<number> {\n const phases = activePhases(target.plan);\n const manager = new PipelineManager(target.plan, target.tasksFile, phases);\n const next = manager.getNextPhase();\n\n if (closeIssue !== undefined) {\n await persistClosureChoice(target.tasksFile, closeIssue);\n target.plan.closeIssue = closeIssue;\n }\n if (next === null) {\n if (mode === 'manual') return 0;\n if (target.plan.closeIssue || target.plan.lastError?.category === 'issue_closure') {\n const resolution = await resolveCommandIssue(target.issue);\n if (!resolution.ok) return resolution.code;\n return finishIssueClosure(target.tasksFile, target.issue, resolution.resolved.source);\n }\n printInfo(`Issue #${target.issue} has every phase complete; nothing to resume.`);\n return 0;\n }\n\n // 3. What was running when the process died. The snapshot cannot answer this\n // — it only knows the phase failed or never ended — so the journal does.\n const interrupted = await lastUnfinishedPhase(target);\n if (interrupted !== null) {\n printInfo(`Issue #${target.issue} was interrupted during the '${interrupted}' phase.`);\n }\n\n // 4. The repository, described and never repaired. Continuing the very phase\n // that was interrupted is the one case where uncommitted work is expected;\n // anything else would be carrying changes into work they do not belong to.\n const sameWork = interrupted === next;\n const preflight = await preflightRepository({\n expectedBranch: target.plan.noBranch === true ? null : target.plan.branchName,\n intent: sameWork ? 'resume-same-phase' : 'new-phase',\n });\n if (!preflight.ok) {\n printError(`Cannot resume issue #${target.issue}: the repository needs attention first.`);\n for (const line of describePreflight(preflight)) {\n printError(line);\n }\n return 1;\n }\n\n // 5. The phase, stated before anything runs.\n printInfo(`Resuming issue #${target.issue} from the '${next}' phase.`);\n return runPipeline(target.issue, mode, next, undefined, undefined, {\n only: true,\n ...(closeIssue === undefined ? {} : { closeIssue }),\n });\n}\n\n/** The phase set this plan's pipeline actually has, so `pr-review` is honoured. */\nfunction activePhases(plan: TaskPlan): readonly PipelinePhase[] {\n const base =\n plan.noBranch === true\n ? PIPELINE_PHASES.filter((phase) => phase !== 'pr')\n : [...PIPELINE_PHASES];\n return plan.prReview?.enabled === true ? [...base, 'pr-review'] : base;\n}\n\n/**\n * The phase the journal shows as started and never ended.\n *\n * Both generations are read, oldest first, because a run long enough to rotate\n * its journal is exactly the kind that gets interrupted. A missing or\n * unreadable journal answers `null`: the resume continues from the plan, which\n * is what it did before a journal existed.\n */\nasync function lastUnfinishedPhase(target: ResumeTarget): Promise<string | null> {\n const entries =\n target.storageDriver === 'sqlite'\n ? await listStoredIssueEvents({ projectId: target.projectId, issueId: target.issue })\n : parseJournal(\n `${await readIfPresent(target.rotatedEventsFile)}${await readIfPresent(target.eventsFile)}`,\n );\n if (entries.length === 0) return null;\n\n const open: string[] = [];\n for (const entry of entries) {\n const event = entry.event;\n const phaseValue = (event as unknown as Record<string, unknown>).phase;\n const phase = typeof phaseValue === 'string' ? phaseValue : null;\n if (event.type === 'phase:start' && phase !== null) {\n open.push(phase);\n } else if (event.type === 'phase:end' && phase !== null) {\n const index = open.lastIndexOf(phase);\n if (index >= 0) open.splice(index, 1);\n }\n }\n return open.at(-1) ?? null;\n}\n\nasync function readIfPresent(path: string): Promise<string> {\n try {\n return await readFile(path, 'utf-8');\n } catch {\n return '';\n }\n}\n\n/**\n * Which issues to resume.\n *\n * A named issue is taken at its word. Without one, the queue decides when there\n * is a queue — `nextQueueIssue()` is already the project's answer to \"which one\n * first\" — and otherwise the unfinished issues are ordered by when they were\n * last attempted, so `resume` alone picks up the most recent work.\n */\nasync function findTargets(\n project: Awaited<ReturnType<typeof resolveProjectPaths>>,\n issue: string | undefined,\n all: boolean,\n): Promise<ResumeTarget[]> {\n if (issue !== undefined) {\n const target = await loadTarget(project, issue);\n return target === null ? [] : [target];\n }\n\n const unfinished = await unfinishedTargets(project);\n if (all) return unfinished;\n return unfinished.slice(0, 1);\n}\n\n/** Every issue whose plan is not finished, most recently attempted first. */\nasync function unfinishedTargets(\n project: Awaited<ReturnType<typeof resolveProjectPaths>>,\n): Promise<ResumeTarget[]> {\n let ids: string[];\n try {\n ids =\n project.storageDriver === 'sqlite'\n ? await listStoredIssueIds({ projectId: project.projectId })\n : await readdir(project.issuesDir);\n } catch {\n return [];\n }\n\n const targets: ResumeTarget[] = [];\n for (const id of ids) {\n const target = await loadTarget(project, id);\n if (target === null) continue;\n const pendingClosure = target.plan.closeIssue === true && !target.plan.issueClosedAt;\n if (target.plan.issueStatus === 'completed' && !pendingClosure) continue;\n const manager = new PipelineManager(target.plan, target.tasksFile, activePhases(target.plan));\n if (\n manager.getNextPhase() === null &&\n !pendingClosure &&\n target.plan.lastError?.category !== 'issue_closure'\n )\n continue;\n targets.push(target);\n }\n\n return targets.sort((a, b) => attemptedAt(b.plan) - attemptedAt(a.plan));\n}\n\nfunction attemptedAt(plan: TaskPlan): number {\n const at = Date.parse(plan.lastAttemptAt ?? '');\n return Number.isNaN(at) ? 0 : at;\n}\n\nasync function loadTarget(\n project: Awaited<ReturnType<typeof resolveProjectPaths>>,\n issue: string,\n): Promise<ResumeTarget | null> {\n let paths: ReturnType<typeof getIssuePaths>;\n try {\n paths =\n project.storageDriver === 'sqlite'\n ? await resolveIssuePaths(issue)\n : getIssuePaths(project.projectId, issue);\n } catch {\n // Not a usable issue identifier — a stray file in `issues/`, for instance.\n return null;\n }\n\n try {\n const plan = await loadTaskPlan(paths.tasksFile);\n return {\n issue,\n projectId: project.projectId,\n storageDriver: project.storageDriver,\n plan,\n tasksFile: paths.tasksFile,\n eventsFile: paths.eventsFile,\n rotatedEventsFile: paths.rotatedEventsFile,\n };\n } catch {\n return null;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAS,SAAS,gBAAgB;AAClC,SAAS,YAAY;AA+DrB,eAAsB,UAAU,OAAgB,UAAyB,C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I,CAAC;AAC5F,QACE,QAAQ,aAAa,MAAM,QAC3B,CAAC,kBACD,OAAO,KAAK,WAAW,aAAa;AAEpC;AACF,YAAQ,KAAK,MAAM;AAAA,EACrB;AAEA,SAAO,QAAQ,KAAK,CAAC,GAAG,MAAM,YAAY,EAAE,IAAI,IAAI,YAAY,EAAE,IAAI,CAAC;AACzE;AAEA,SAAS,YAAY,MAAwB;AAC3C,QAAM,KAAK,KAAK,MAAM,KAAK,iBAAiB,EAAE;AAC9C,SAAO,OAAO,MAAM,EAAE,IAAI,IAAI;AAChC;AAEA,eAAe,WACb,SACA,OAC8B;AAC9B,MAAI;AACJ,MAAI;AACF,YACE,QAAQ,kBAAkB,WACtB,MAAM,kBAAkB,KAAK,IAC7B,cAAc,QAAQ,WAAW,KAAK;AAAA,EAC9C,QAAQ;AAEN,WAAO;AAAA,EACT;AAEA,MAAI;AACF,UAAM,OAAO,MAAM,aAAa,MAAM,SAAS;AAC/C,WAAO;AAAA,MACL;AAAA,MACA,WAAW,QAAQ;AAAA,MACnB,eAAe,QAAQ;AAAA,MACvB;AAAA,MACA,WAAW,MAAM;AAAA,MACjB,YAAY,MAAM;AAAA,MAClB,mBAAmB,MAAM;AAAA,IAC3B;AAAA,EACF,QAAQ;AACN,WAAO;AAAA,EACT;AACF;","names":[]}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
runReview
|
|
4
|
+
} from "./chunk-NYDAHE3Y.js";
|
|
5
|
+
import "./chunk-IQYXXFRC.js";
|
|
6
|
+
import "./chunk-HWWB22HC.js";
|
|
7
|
+
import "./chunk-WPHC6JBR.js";
|
|
8
|
+
import "./chunk-3JD25HHJ.js";
|
|
9
|
+
import "./chunk-W7LZLJAF.js";
|
|
10
|
+
import "./chunk-ZAYATXJD.js";
|
|
11
|
+
import "./chunk-7ZZUSMBJ.js";
|
|
12
|
+
import "./chunk-KMMASOA6.js";
|
|
13
|
+
import "./chunk-WB2FVIUS.js";
|
|
14
|
+
import "./chunk-XKR3VD2Z.js";
|
|
15
|
+
import "./chunk-MQTVMB7W.js";
|
|
16
|
+
import "./chunk-2Q6PG3MT.js";
|
|
17
|
+
import "./chunk-DXH4TQRB.js";
|
|
18
|
+
import "./chunk-F2NFJ27Z.js";
|
|
19
|
+
import "./chunk-UHDXXLYH.js";
|
|
20
|
+
import "./chunk-J6VJ5M2U.js";
|
|
21
|
+
import "./chunk-7CMVL4X6.js";
|
|
22
|
+
import "./chunk-DIMDAYZS.js";
|
|
23
|
+
import "./chunk-HEHHQU4G.js";
|
|
24
|
+
import "./chunk-PRGPSNGA.js";
|
|
25
|
+
import "./chunk-P3LRUNC6.js";
|
|
26
|
+
import "./chunk-LYC57OXF.js";
|
|
27
|
+
import "./chunk-GD7JZMSJ.js";
|
|
28
|
+
import "./chunk-NP47HRX2.js";
|
|
29
|
+
import "./chunk-IMB6FA2F.js";
|
|
30
|
+
import "./chunk-7MJGYPHF.js";
|
|
31
|
+
import "./chunk-XNK5UN2D.js";
|
|
32
|
+
import "./chunk-MAJ6QDRL.js";
|
|
33
|
+
import "./chunk-TJVX42KY.js";
|
|
34
|
+
import "./chunk-PFWHHYEO.js";
|
|
35
|
+
export {
|
|
36
|
+
runReview
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=review-JJHMQA2O.js.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
ROUTING_COMMAND_SCHEMA_VERSION,
|
|
4
|
+
runRoutingExplain,
|
|
5
|
+
runRoutingInspect,
|
|
6
|
+
runRoutingReport,
|
|
7
|
+
runRoutingUse,
|
|
8
|
+
writeRoutingPreference
|
|
9
|
+
} from "./chunk-UDRAD7MF.js";
|
|
10
|
+
import "./chunk-F2NFJ27Z.js";
|
|
11
|
+
import "./chunk-UHDXXLYH.js";
|
|
12
|
+
import "./chunk-J6VJ5M2U.js";
|
|
13
|
+
import "./chunk-7CMVL4X6.js";
|
|
14
|
+
import "./chunk-DIMDAYZS.js";
|
|
15
|
+
import "./chunk-HEHHQU4G.js";
|
|
16
|
+
import "./chunk-PRGPSNGA.js";
|
|
17
|
+
import "./chunk-P3LRUNC6.js";
|
|
18
|
+
import "./chunk-LYC57OXF.js";
|
|
19
|
+
import "./chunk-GD7JZMSJ.js";
|
|
20
|
+
import "./chunk-NP47HRX2.js";
|
|
21
|
+
import "./chunk-IMB6FA2F.js";
|
|
22
|
+
import "./chunk-7MJGYPHF.js";
|
|
23
|
+
import "./chunk-XNK5UN2D.js";
|
|
24
|
+
import "./chunk-MAJ6QDRL.js";
|
|
25
|
+
import "./chunk-TJVX42KY.js";
|
|
26
|
+
import "./chunk-PFWHHYEO.js";
|
|
27
|
+
export {
|
|
28
|
+
ROUTING_COMMAND_SCHEMA_VERSION,
|
|
29
|
+
runRoutingExplain,
|
|
30
|
+
runRoutingInspect,
|
|
31
|
+
runRoutingReport,
|
|
32
|
+
runRoutingUse,
|
|
33
|
+
writeRoutingPreference
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=routing-FPNUVE7T.js.map
|