issue-flow 0.15.0 → 0.16.0
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/{agent-AT64RXTA.js → agent-PMWCDWOW.js} +12 -12
- package/dist/{analyze-O2PYDIFK.js → analyze-556KCJKZ.js} +20 -20
- package/dist/{apply-SSU6QCD4.js → apply-WVV7G7WN.js} +12 -12
- package/dist/{bench-ODFPAGW6.js → bench-UBFGKUHR.js} +18 -18
- package/dist/{chunk-KAHQ6F5C.js → chunk-2H43OVTU.js} +11 -11
- package/dist/{chunk-PCN7ZQND.js → chunk-4FUWWBTP.js} +6 -6
- package/dist/{chunk-5ZKBIXET.js → chunk-73TS2H42.js} +14 -14
- package/dist/{chunk-XLVGPXNL.js → chunk-AOAQU7PD.js} +2 -2
- package/dist/{chunk-6E2PEBFT.js → chunk-BSBJXPLC.js} +8 -8
- package/dist/chunk-C5TL7T4V.js +27 -0
- package/dist/chunk-C5TL7T4V.js.map +1 -0
- package/dist/{chunk-QRCGW2ZO.js → chunk-DBEMD34J.js} +6 -6
- package/dist/{chunk-FK4IDY6P.js → chunk-EPFC4LHT.js} +9 -9
- package/dist/{chunk-AYYMW33T.js → chunk-FKWYD44M.js} +2 -2
- package/dist/{chunk-RWEXK55D.js → chunk-G5LACAXO.js} +2 -2
- package/dist/{chunk-TBDP6QPJ.js → chunk-GPLP7EPL.js} +6 -6
- package/dist/{chunk-ARWNYXFL.js → chunk-GV2DABNZ.js} +12 -12
- package/dist/{chunk-XQHFC62U.js → chunk-GVOZ6NDO.js} +2 -2
- package/dist/{chunk-F4OK7KEP.js → chunk-H3EYBJZU.js} +7 -7
- package/dist/{chunk-3BWZO4YI.js → chunk-IAMIBZRF.js} +2 -2
- package/dist/{chunk-WM3Y7Q4A.js → chunk-J2LJB2OH.js} +10 -10
- package/dist/{chunk-MEFY4B7T.js → chunk-KV2K7MK2.js} +9 -9
- package/dist/{chunk-XG2NYDRA.js → chunk-MCLPSL6B.js} +3 -3
- package/dist/{chunk-ZXPASFHG.js → chunk-MXCOSPLJ.js} +2 -2
- package/dist/{chunk-MROS3SKL.js → chunk-NQCR3HSU.js} +3 -3
- package/dist/{chunk-2ZAM45PZ.js → chunk-OGN2NX57.js} +9 -9
- package/dist/{chunk-A35HE4V7.js → chunk-OGVWJO4S.js} +3 -3
- package/dist/{chunk-HGSYD57B.js → chunk-OLUOZLU5.js} +32 -28
- package/dist/chunk-OLUOZLU5.js.map +1 -0
- package/dist/{chunk-6SRE4KD7.js → chunk-OOX3RMD3.js} +4 -4
- package/dist/{chunk-6FXOU2KR.js → chunk-PGN2VX4Y.js} +6 -6
- package/dist/{chunk-XRLRKTQA.js → chunk-Q2TZA6AC.js} +11 -11
- package/dist/{chunk-XDKGA6UX.js → chunk-QVLIIGBU.js} +5 -2
- package/dist/chunk-QVLIIGBU.js.map +1 -0
- package/dist/{chunk-MGCOQU6N.js → chunk-QZOBR6YF.js} +4 -4
- package/dist/{chunk-UNQYMR3H.js → chunk-R42YHLDV.js} +2 -2
- package/dist/{chunk-6QYMSNVA.js → chunk-ROIIEVZH.js} +3 -2
- package/dist/chunk-ROIIEVZH.js.map +1 -0
- package/dist/{chunk-NVZMBXTE.js → chunk-SVDEWOUD.js} +4 -4
- package/dist/{chunk-ZFIXEYUJ.js → chunk-SW2MF47D.js} +26 -14
- package/dist/chunk-SW2MF47D.js.map +1 -0
- package/dist/{chunk-ZPIVCM7Q.js → chunk-VK65RNFA.js} +3 -3
- package/dist/{chunk-VR34TXHF.js → chunk-VTF4RWS5.js} +6 -6
- package/dist/{chunk-4RXYFWP7.js → chunk-WLJVL25O.js} +4 -4
- package/dist/{chunk-GSZCQUCY.js → chunk-WNROH2YE.js} +2 -2
- package/dist/{chunk-RPXDBX6R.js → chunk-X6GY3CM2.js} +3 -3
- package/dist/{chunk-BMHGRYL6.js → chunk-YA6FWFYW.js} +22 -21
- package/dist/chunk-YA6FWFYW.js.map +1 -0
- package/dist/cli.js +46 -45
- package/dist/cli.js.map +1 -1
- package/dist/{config-UMP6DBJB.js → config-UE7IP36J.js} +11 -11
- package/dist/{conventions-DKH7AE4T.js → conventions-Z3QC2NSG.js} +13 -13
- package/dist/{diagnostics-GOGCLTRS.js → diagnostics-2Z5HFQOO.js} +6 -6
- package/dist/execute-QYLJ5L4T.js +36 -0
- package/dist/{generate-AGBT7EHX.js → generate-PB4L7V5N.js} +20 -20
- package/dist/{git-AC542GU2.js → git-7MUOGVRG.js} +2 -2
- package/dist/init-XBERAZ4O.js +24 -0
- package/dist/{operations-JQYK2EMT.js → operations-QDJAFZUN.js} +13 -13
- package/dist/{permissions-6HL52K54.js → permissions-XVXXENVP.js} +3 -3
- package/dist/plan-RXOW32KY.js +34 -0
- package/dist/{policy-IMRXGG7X.js → policy-6WQZB6B2.js} +12 -12
- package/dist/pr-3WFYAVA7.js +39 -0
- package/dist/pr-review-RK63ZEMM.js +32 -0
- package/dist/prd-LRV6IW3E.js +33 -0
- package/dist/{ps-KUUZ6TUL.js → ps-CX7756QG.js} +10 -10
- package/dist/{recorder-BJ2KIAWT.js → recorder-RK6XZYF3.js} +5 -5
- package/dist/{registry-SB7XTMGE.js → registry-POSB35Q4.js} +5 -5
- package/dist/{resume-QNLQSCR5.js → resume-OQJZV3JH.js} +37 -36
- package/dist/{resume-QNLQSCR5.js.map → resume-OQJZV3JH.js.map} +1 -1
- package/dist/review-AEFISJZD.js +35 -0
- package/dist/{routing-TN7GLMGU.js → routing-EA5NJGNU.js} +12 -12
- package/dist/run-HSC7R33Y.js +55 -0
- package/dist/{session-publisher-T7EI3CIP.js → session-publisher-VVXOCJ2S.js} +2 -2
- package/dist/{state-manager-ZEPWTCA6.js → state-manager-TIC73GQY.js} +3 -3
- package/dist/{usage-QL563I7F.js → usage-WDDNSIHP.js} +10 -10
- package/dist/{web-PPSMNTQ6.js → web-IPGY52AK.js} +17 -16
- package/dist/{web-PPSMNTQ6.js.map → web-IPGY52AK.js.map} +1 -1
- package/package.json +1 -1
- package/web/AGENTS.md +5 -0
- package/web/public/app.css +13 -0
- package/web/public/app.js +48 -0
- package/web/public/index.html +6 -2
- package/dist/chunk-6QYMSNVA.js.map +0 -1
- package/dist/chunk-BMHGRYL6.js.map +0 -1
- package/dist/chunk-HGSYD57B.js.map +0 -1
- package/dist/chunk-XDKGA6UX.js.map +0 -1
- package/dist/chunk-ZFIXEYUJ.js.map +0 -1
- package/dist/execute-E3BRMDAQ.js +0 -35
- package/dist/init-LLBVJNPE.js +0 -24
- package/dist/plan-HSLWDJEZ.js +0 -34
- package/dist/pr-6TCZXG6K.js +0 -39
- package/dist/pr-review-6MWJO2NP.js +0 -32
- package/dist/prd-D6YDYAFX.js +0 -33
- package/dist/review-3KJ4BH2V.js +0 -35
- package/dist/run-5EHIFF2V.js +0 -54
- /package/dist/{agent-AT64RXTA.js.map → agent-PMWCDWOW.js.map} +0 -0
- /package/dist/{analyze-O2PYDIFK.js.map → analyze-556KCJKZ.js.map} +0 -0
- /package/dist/{apply-SSU6QCD4.js.map → apply-WVV7G7WN.js.map} +0 -0
- /package/dist/{bench-ODFPAGW6.js.map → bench-UBFGKUHR.js.map} +0 -0
- /package/dist/{chunk-KAHQ6F5C.js.map → chunk-2H43OVTU.js.map} +0 -0
- /package/dist/{chunk-PCN7ZQND.js.map → chunk-4FUWWBTP.js.map} +0 -0
- /package/dist/{chunk-5ZKBIXET.js.map → chunk-73TS2H42.js.map} +0 -0
- /package/dist/{chunk-XLVGPXNL.js.map → chunk-AOAQU7PD.js.map} +0 -0
- /package/dist/{chunk-6E2PEBFT.js.map → chunk-BSBJXPLC.js.map} +0 -0
- /package/dist/{chunk-QRCGW2ZO.js.map → chunk-DBEMD34J.js.map} +0 -0
- /package/dist/{chunk-FK4IDY6P.js.map → chunk-EPFC4LHT.js.map} +0 -0
- /package/dist/{chunk-AYYMW33T.js.map → chunk-FKWYD44M.js.map} +0 -0
- /package/dist/{chunk-RWEXK55D.js.map → chunk-G5LACAXO.js.map} +0 -0
- /package/dist/{chunk-TBDP6QPJ.js.map → chunk-GPLP7EPL.js.map} +0 -0
- /package/dist/{chunk-ARWNYXFL.js.map → chunk-GV2DABNZ.js.map} +0 -0
- /package/dist/{chunk-XQHFC62U.js.map → chunk-GVOZ6NDO.js.map} +0 -0
- /package/dist/{chunk-F4OK7KEP.js.map → chunk-H3EYBJZU.js.map} +0 -0
- /package/dist/{chunk-3BWZO4YI.js.map → chunk-IAMIBZRF.js.map} +0 -0
- /package/dist/{chunk-WM3Y7Q4A.js.map → chunk-J2LJB2OH.js.map} +0 -0
- /package/dist/{chunk-MEFY4B7T.js.map → chunk-KV2K7MK2.js.map} +0 -0
- /package/dist/{chunk-XG2NYDRA.js.map → chunk-MCLPSL6B.js.map} +0 -0
- /package/dist/{chunk-ZXPASFHG.js.map → chunk-MXCOSPLJ.js.map} +0 -0
- /package/dist/{chunk-MROS3SKL.js.map → chunk-NQCR3HSU.js.map} +0 -0
- /package/dist/{chunk-2ZAM45PZ.js.map → chunk-OGN2NX57.js.map} +0 -0
- /package/dist/{chunk-A35HE4V7.js.map → chunk-OGVWJO4S.js.map} +0 -0
- /package/dist/{chunk-6SRE4KD7.js.map → chunk-OOX3RMD3.js.map} +0 -0
- /package/dist/{chunk-6FXOU2KR.js.map → chunk-PGN2VX4Y.js.map} +0 -0
- /package/dist/{chunk-XRLRKTQA.js.map → chunk-Q2TZA6AC.js.map} +0 -0
- /package/dist/{chunk-MGCOQU6N.js.map → chunk-QZOBR6YF.js.map} +0 -0
- /package/dist/{chunk-UNQYMR3H.js.map → chunk-R42YHLDV.js.map} +0 -0
- /package/dist/{chunk-NVZMBXTE.js.map → chunk-SVDEWOUD.js.map} +0 -0
- /package/dist/{chunk-ZPIVCM7Q.js.map → chunk-VK65RNFA.js.map} +0 -0
- /package/dist/{chunk-VR34TXHF.js.map → chunk-VTF4RWS5.js.map} +0 -0
- /package/dist/{chunk-4RXYFWP7.js.map → chunk-WLJVL25O.js.map} +0 -0
- /package/dist/{chunk-GSZCQUCY.js.map → chunk-WNROH2YE.js.map} +0 -0
- /package/dist/{chunk-RPXDBX6R.js.map → chunk-X6GY3CM2.js.map} +0 -0
- /package/dist/{config-UMP6DBJB.js.map → config-UE7IP36J.js.map} +0 -0
- /package/dist/{conventions-DKH7AE4T.js.map → conventions-Z3QC2NSG.js.map} +0 -0
- /package/dist/{diagnostics-GOGCLTRS.js.map → diagnostics-2Z5HFQOO.js.map} +0 -0
- /package/dist/{execute-E3BRMDAQ.js.map → execute-QYLJ5L4T.js.map} +0 -0
- /package/dist/{generate-AGBT7EHX.js.map → generate-PB4L7V5N.js.map} +0 -0
- /package/dist/{git-AC542GU2.js.map → git-7MUOGVRG.js.map} +0 -0
- /package/dist/{init-LLBVJNPE.js.map → init-XBERAZ4O.js.map} +0 -0
- /package/dist/{operations-JQYK2EMT.js.map → operations-QDJAFZUN.js.map} +0 -0
- /package/dist/{permissions-6HL52K54.js.map → permissions-XVXXENVP.js.map} +0 -0
- /package/dist/{plan-HSLWDJEZ.js.map → plan-RXOW32KY.js.map} +0 -0
- /package/dist/{policy-IMRXGG7X.js.map → policy-6WQZB6B2.js.map} +0 -0
- /package/dist/{pr-6TCZXG6K.js.map → pr-3WFYAVA7.js.map} +0 -0
- /package/dist/{pr-review-6MWJO2NP.js.map → pr-review-RK63ZEMM.js.map} +0 -0
- /package/dist/{prd-D6YDYAFX.js.map → prd-LRV6IW3E.js.map} +0 -0
- /package/dist/{ps-KUUZ6TUL.js.map → ps-CX7756QG.js.map} +0 -0
- /package/dist/{recorder-BJ2KIAWT.js.map → recorder-RK6XZYF3.js.map} +0 -0
- /package/dist/{registry-SB7XTMGE.js.map → registry-POSB35Q4.js.map} +0 -0
- /package/dist/{review-3KJ4BH2V.js.map → review-AEFISJZD.js.map} +0 -0
- /package/dist/{routing-TN7GLMGU.js.map → routing-EA5NJGNU.js.map} +0 -0
- /package/dist/{run-5EHIFF2V.js.map → run-HSC7R33Y.js.map} +0 -0
- /package/dist/{session-publisher-T7EI3CIP.js.map → session-publisher-VVXOCJ2S.js.map} +0 -0
- /package/dist/{state-manager-ZEPWTCA6.js.map → state-manager-TIC73GQY.js.map} +0 -0
- /package/dist/{usage-QL563I7F.js.map → usage-WDDNSIHP.js.map} +0 -0
|
@@ -3,37 +3,37 @@ import {
|
|
|
3
3
|
PIPELINE_PHASES,
|
|
4
4
|
PipelineManager,
|
|
5
5
|
loadExecutionPlan
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-X6GY3CM2.js";
|
|
7
7
|
import "./chunk-KMMASOA6.js";
|
|
8
8
|
import {
|
|
9
9
|
parseJournal
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-IAMIBZRF.js";
|
|
11
11
|
import {
|
|
12
12
|
resolveProjectPaths
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-VTF4RWS5.js";
|
|
14
14
|
import {
|
|
15
15
|
printError,
|
|
16
16
|
printInfo,
|
|
17
17
|
printWarning
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-SVDEWOUD.js";
|
|
19
|
+
import "./chunk-ROIIEVZH.js";
|
|
20
|
+
import "./chunk-FKWYD44M.js";
|
|
21
21
|
import {
|
|
22
22
|
QUEUES_DIR_NAME,
|
|
23
23
|
getIssuePaths
|
|
24
24
|
} from "./chunk-HAKDLR6N.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-WNROH2YE.js";
|
|
26
|
+
import "./chunk-GPLP7EPL.js";
|
|
27
27
|
import "./chunk-P3LRUNC6.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-R42YHLDV.js";
|
|
29
29
|
import {
|
|
30
30
|
loadTaskPlan
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-GVOZ6NDO.js";
|
|
32
32
|
import {
|
|
33
33
|
describeRunLockOwner,
|
|
34
34
|
isRunLockStale,
|
|
35
35
|
readRunLock
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-QVLIIGBU.js";
|
|
37
37
|
import "./chunk-7Z4Y3VKM.js";
|
|
38
38
|
import "./chunk-XEYH6ZZI.js";
|
|
39
39
|
|
|
@@ -326,7 +326,7 @@ async function runCancel(issue, options = {}) {
|
|
|
326
326
|
if (target === void 0) return 0;
|
|
327
327
|
const state = await loadIssueState(paths.projectId, target);
|
|
328
328
|
if (state === null || state.plan === null) return 0;
|
|
329
|
-
const { saveTaskPlan, isoNow } = await import("./state-manager-
|
|
329
|
+
const { saveTaskPlan, isoNow } = await import("./state-manager-TIC73GQY.js");
|
|
330
330
|
await saveTaskPlan(state.paths.tasksFile, {
|
|
331
331
|
...state.plan,
|
|
332
332
|
runState: {
|
|
@@ -374,4 +374,4 @@ export {
|
|
|
374
374
|
runRuns,
|
|
375
375
|
runStatus
|
|
376
376
|
};
|
|
377
|
-
//# sourceMappingURL=operations-
|
|
377
|
+
//# sourceMappingURL=operations-QDJAFZUN.js.map
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
cursorPermissionsPath,
|
|
5
5
|
cursorStorageGranted,
|
|
6
6
|
ensureCursorStorageGrant
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-MXCOSPLJ.js";
|
|
8
8
|
import "./chunk-HAKDLR6N.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-WNROH2YE.js";
|
|
10
10
|
import "./chunk-7Z4Y3VKM.js";
|
|
11
11
|
import "./chunk-XEYH6ZZI.js";
|
|
12
12
|
export {
|
|
@@ -15,4 +15,4 @@ export {
|
|
|
15
15
|
cursorStorageGranted,
|
|
16
16
|
ensureCursorStorageGrant
|
|
17
17
|
};
|
|
18
|
-
//# sourceMappingURL=permissions-
|
|
18
|
+
//# sourceMappingURL=permissions-XVXXENVP.js.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
runPlan
|
|
4
|
+
} from "./chunk-GV2DABNZ.js";
|
|
5
|
+
import "./chunk-DBEMD34J.js";
|
|
6
|
+
import "./chunk-MCLPSL6B.js";
|
|
7
|
+
import "./chunk-H3EYBJZU.js";
|
|
8
|
+
import "./chunk-KMMASOA6.js";
|
|
9
|
+
import "./chunk-4FUWWBTP.js";
|
|
10
|
+
import "./chunk-OGVWJO4S.js";
|
|
11
|
+
import "./chunk-73TS2H42.js";
|
|
12
|
+
import "./chunk-AOAQU7PD.js";
|
|
13
|
+
import "./chunk-IAMIBZRF.js";
|
|
14
|
+
import "./chunk-MXCOSPLJ.js";
|
|
15
|
+
import "./chunk-3D4A4B46.js";
|
|
16
|
+
import "./chunk-OOX3RMD3.js";
|
|
17
|
+
import "./chunk-J2LJB2OH.js";
|
|
18
|
+
import "./chunk-VTF4RWS5.js";
|
|
19
|
+
import "./chunk-SVDEWOUD.js";
|
|
20
|
+
import "./chunk-ROIIEVZH.js";
|
|
21
|
+
import "./chunk-FKWYD44M.js";
|
|
22
|
+
import "./chunk-HAKDLR6N.js";
|
|
23
|
+
import "./chunk-WNROH2YE.js";
|
|
24
|
+
import "./chunk-GPLP7EPL.js";
|
|
25
|
+
import "./chunk-P3LRUNC6.js";
|
|
26
|
+
import "./chunk-R42YHLDV.js";
|
|
27
|
+
import "./chunk-GVOZ6NDO.js";
|
|
28
|
+
import "./chunk-QVLIIGBU.js";
|
|
29
|
+
import "./chunk-7Z4Y3VKM.js";
|
|
30
|
+
import "./chunk-XEYH6ZZI.js";
|
|
31
|
+
export {
|
|
32
|
+
runPlan
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=plan-RXOW32KY.js.map
|
|
@@ -2,23 +2,23 @@
|
|
|
2
2
|
import "./chunk-3D4A4B46.js";
|
|
3
3
|
import {
|
|
4
4
|
loadRepositoryPolicy
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-OOX3RMD3.js";
|
|
6
|
+
import "./chunk-J2LJB2OH.js";
|
|
7
|
+
import "./chunk-VTF4RWS5.js";
|
|
8
8
|
import {
|
|
9
9
|
printError,
|
|
10
10
|
printInfo,
|
|
11
11
|
printWarning
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-SVDEWOUD.js";
|
|
13
|
+
import "./chunk-ROIIEVZH.js";
|
|
14
|
+
import "./chunk-FKWYD44M.js";
|
|
15
15
|
import "./chunk-HAKDLR6N.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-WNROH2YE.js";
|
|
17
|
+
import "./chunk-GPLP7EPL.js";
|
|
18
18
|
import "./chunk-P3LRUNC6.js";
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-R42YHLDV.js";
|
|
20
|
+
import "./chunk-GVOZ6NDO.js";
|
|
21
|
+
import "./chunk-QVLIIGBU.js";
|
|
22
22
|
import "./chunk-7Z4Y3VKM.js";
|
|
23
23
|
import "./chunk-XEYH6ZZI.js";
|
|
24
24
|
|
|
@@ -130,4 +130,4 @@ async function runPolicy(options = {}) {
|
|
|
130
130
|
export {
|
|
131
131
|
runPolicy
|
|
132
132
|
};
|
|
133
|
-
//# sourceMappingURL=policy-
|
|
133
|
+
//# sourceMappingURL=policy-6WQZB6B2.js.map
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
issueClosesLines,
|
|
4
|
+
multiIssueContext,
|
|
5
|
+
runPr
|
|
6
|
+
} from "./chunk-2H43OVTU.js";
|
|
7
|
+
import "./chunk-WLJVL25O.js";
|
|
8
|
+
import "./chunk-DBEMD34J.js";
|
|
9
|
+
import "./chunk-MCLPSL6B.js";
|
|
10
|
+
import "./chunk-H3EYBJZU.js";
|
|
11
|
+
import "./chunk-KMMASOA6.js";
|
|
12
|
+
import "./chunk-4FUWWBTP.js";
|
|
13
|
+
import "./chunk-OGVWJO4S.js";
|
|
14
|
+
import "./chunk-73TS2H42.js";
|
|
15
|
+
import "./chunk-AOAQU7PD.js";
|
|
16
|
+
import "./chunk-IAMIBZRF.js";
|
|
17
|
+
import "./chunk-MXCOSPLJ.js";
|
|
18
|
+
import "./chunk-3D4A4B46.js";
|
|
19
|
+
import "./chunk-OOX3RMD3.js";
|
|
20
|
+
import "./chunk-J2LJB2OH.js";
|
|
21
|
+
import "./chunk-VTF4RWS5.js";
|
|
22
|
+
import "./chunk-SVDEWOUD.js";
|
|
23
|
+
import "./chunk-ROIIEVZH.js";
|
|
24
|
+
import "./chunk-FKWYD44M.js";
|
|
25
|
+
import "./chunk-HAKDLR6N.js";
|
|
26
|
+
import "./chunk-WNROH2YE.js";
|
|
27
|
+
import "./chunk-GPLP7EPL.js";
|
|
28
|
+
import "./chunk-P3LRUNC6.js";
|
|
29
|
+
import "./chunk-R42YHLDV.js";
|
|
30
|
+
import "./chunk-GVOZ6NDO.js";
|
|
31
|
+
import "./chunk-QVLIIGBU.js";
|
|
32
|
+
import "./chunk-7Z4Y3VKM.js";
|
|
33
|
+
import "./chunk-XEYH6ZZI.js";
|
|
34
|
+
export {
|
|
35
|
+
issueClosesLines,
|
|
36
|
+
multiIssueContext,
|
|
37
|
+
runPr
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=pr-3WFYAVA7.js.map
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
exitCodeFor,
|
|
4
|
+
runPrReview
|
|
5
|
+
} from "./chunk-Q2TZA6AC.js";
|
|
6
|
+
import "./chunk-WLJVL25O.js";
|
|
7
|
+
import "./chunk-4FUWWBTP.js";
|
|
8
|
+
import "./chunk-OGVWJO4S.js";
|
|
9
|
+
import "./chunk-73TS2H42.js";
|
|
10
|
+
import "./chunk-AOAQU7PD.js";
|
|
11
|
+
import "./chunk-IAMIBZRF.js";
|
|
12
|
+
import "./chunk-MXCOSPLJ.js";
|
|
13
|
+
import "./chunk-OOX3RMD3.js";
|
|
14
|
+
import "./chunk-J2LJB2OH.js";
|
|
15
|
+
import "./chunk-VTF4RWS5.js";
|
|
16
|
+
import "./chunk-SVDEWOUD.js";
|
|
17
|
+
import "./chunk-ROIIEVZH.js";
|
|
18
|
+
import "./chunk-FKWYD44M.js";
|
|
19
|
+
import "./chunk-HAKDLR6N.js";
|
|
20
|
+
import "./chunk-WNROH2YE.js";
|
|
21
|
+
import "./chunk-GPLP7EPL.js";
|
|
22
|
+
import "./chunk-P3LRUNC6.js";
|
|
23
|
+
import "./chunk-R42YHLDV.js";
|
|
24
|
+
import "./chunk-GVOZ6NDO.js";
|
|
25
|
+
import "./chunk-QVLIIGBU.js";
|
|
26
|
+
import "./chunk-7Z4Y3VKM.js";
|
|
27
|
+
import "./chunk-XEYH6ZZI.js";
|
|
28
|
+
export {
|
|
29
|
+
exitCodeFor,
|
|
30
|
+
runPrReview
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=pr-review-RK63ZEMM.js.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
runPrd
|
|
4
|
+
} from "./chunk-OGN2NX57.js";
|
|
5
|
+
import "./chunk-DBEMD34J.js";
|
|
6
|
+
import "./chunk-MCLPSL6B.js";
|
|
7
|
+
import "./chunk-H3EYBJZU.js";
|
|
8
|
+
import "./chunk-KMMASOA6.js";
|
|
9
|
+
import "./chunk-4FUWWBTP.js";
|
|
10
|
+
import "./chunk-OGVWJO4S.js";
|
|
11
|
+
import "./chunk-73TS2H42.js";
|
|
12
|
+
import "./chunk-AOAQU7PD.js";
|
|
13
|
+
import "./chunk-IAMIBZRF.js";
|
|
14
|
+
import "./chunk-MXCOSPLJ.js";
|
|
15
|
+
import "./chunk-OOX3RMD3.js";
|
|
16
|
+
import "./chunk-J2LJB2OH.js";
|
|
17
|
+
import "./chunk-VTF4RWS5.js";
|
|
18
|
+
import "./chunk-SVDEWOUD.js";
|
|
19
|
+
import "./chunk-ROIIEVZH.js";
|
|
20
|
+
import "./chunk-FKWYD44M.js";
|
|
21
|
+
import "./chunk-HAKDLR6N.js";
|
|
22
|
+
import "./chunk-WNROH2YE.js";
|
|
23
|
+
import "./chunk-GPLP7EPL.js";
|
|
24
|
+
import "./chunk-P3LRUNC6.js";
|
|
25
|
+
import "./chunk-R42YHLDV.js";
|
|
26
|
+
import "./chunk-GVOZ6NDO.js";
|
|
27
|
+
import "./chunk-QVLIIGBU.js";
|
|
28
|
+
import "./chunk-7Z4Y3VKM.js";
|
|
29
|
+
import "./chunk-XEYH6ZZI.js";
|
|
30
|
+
export {
|
|
31
|
+
runPrd
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=prd-LRV6IW3E.js.map
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
listLiveRuns
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-NQCR3HSU.js";
|
|
5
|
+
import "./chunk-G5LACAXO.js";
|
|
6
6
|
import {
|
|
7
7
|
formatDuration,
|
|
8
8
|
printInfo
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-SVDEWOUD.js";
|
|
10
|
+
import "./chunk-ROIIEVZH.js";
|
|
11
|
+
import "./chunk-FKWYD44M.js";
|
|
12
12
|
import "./chunk-HAKDLR6N.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-WNROH2YE.js";
|
|
14
14
|
import "./chunk-P3LRUNC6.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-R42YHLDV.js";
|
|
16
|
+
import "./chunk-GVOZ6NDO.js";
|
|
17
|
+
import "./chunk-QVLIIGBU.js";
|
|
18
18
|
import "./chunk-7Z4Y3VKM.js";
|
|
19
19
|
import "./chunk-XEYH6ZZI.js";
|
|
20
20
|
|
|
@@ -90,4 +90,4 @@ export {
|
|
|
90
90
|
liveRunJsonSchema,
|
|
91
91
|
runPs
|
|
92
92
|
};
|
|
93
|
-
//# sourceMappingURL=ps-
|
|
93
|
+
//# sourceMappingURL=ps-CX7756QG.js.map
|
|
@@ -10,11 +10,11 @@ import {
|
|
|
10
10
|
resetTelemetryState,
|
|
11
11
|
timingFromUsage,
|
|
12
12
|
usageFromClaude
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-GPLP7EPL.js";
|
|
14
14
|
import "./chunk-P3LRUNC6.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-R42YHLDV.js";
|
|
16
|
+
import "./chunk-GVOZ6NDO.js";
|
|
17
|
+
import "./chunk-QVLIIGBU.js";
|
|
18
18
|
import "./chunk-7Z4Y3VKM.js";
|
|
19
19
|
import "./chunk-XEYH6ZZI.js";
|
|
20
20
|
export {
|
|
@@ -29,4 +29,4 @@ export {
|
|
|
29
29
|
timingFromUsage,
|
|
30
30
|
usageFromClaude
|
|
31
31
|
};
|
|
32
|
-
//# sourceMappingURL=recorder-
|
|
32
|
+
//# sourceMappingURL=recorder-RK6XZYF3.js.map
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import {
|
|
3
3
|
classifyRunLock,
|
|
4
4
|
listLiveRuns
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-NQCR3HSU.js";
|
|
6
|
+
import "./chunk-G5LACAXO.js";
|
|
7
7
|
import "./chunk-HAKDLR6N.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-WNROH2YE.js";
|
|
9
|
+
import "./chunk-QVLIIGBU.js";
|
|
10
10
|
import "./chunk-XEYH6ZZI.js";
|
|
11
11
|
export {
|
|
12
12
|
classifyRunLock,
|
|
13
13
|
listLiveRuns
|
|
14
14
|
};
|
|
15
|
-
//# sourceMappingURL=registry-
|
|
15
|
+
//# sourceMappingURL=registry-POSB35Q4.js.map
|
|
@@ -1,53 +1,54 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
runPipeline
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-OLUOZLU5.js";
|
|
5
|
+
import "./chunk-VK65RNFA.js";
|
|
6
|
+
import "./chunk-Q2TZA6AC.js";
|
|
7
|
+
import "./chunk-OGN2NX57.js";
|
|
8
|
+
import "./chunk-EPFC4LHT.js";
|
|
9
9
|
import {
|
|
10
10
|
PIPELINE_PHASES,
|
|
11
11
|
PipelineManager,
|
|
12
12
|
loadExecutionPlan,
|
|
13
13
|
nextQueueIssue
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-X6GY3CM2.js";
|
|
15
|
+
import "./chunk-KV2K7MK2.js";
|
|
16
|
+
import "./chunk-SW2MF47D.js";
|
|
17
|
+
import "./chunk-YA6FWFYW.js";
|
|
18
|
+
import "./chunk-QZOBR6YF.js";
|
|
19
|
+
import "./chunk-BSBJXPLC.js";
|
|
20
20
|
import "./chunk-CRGIQFUQ.js";
|
|
21
21
|
import "./chunk-L6HSKTQE.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-PGN2VX4Y.js";
|
|
23
|
+
import "./chunk-GV2DABNZ.js";
|
|
24
|
+
import "./chunk-2H43OVTU.js";
|
|
25
|
+
import "./chunk-WLJVL25O.js";
|
|
26
|
+
import "./chunk-DBEMD34J.js";
|
|
27
|
+
import "./chunk-MCLPSL6B.js";
|
|
28
|
+
import "./chunk-H3EYBJZU.js";
|
|
29
29
|
import "./chunk-KMMASOA6.js";
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-4FUWWBTP.js";
|
|
31
|
+
import "./chunk-OGVWJO4S.js";
|
|
32
|
+
import "./chunk-73TS2H42.js";
|
|
33
|
+
import "./chunk-AOAQU7PD.js";
|
|
34
34
|
import {
|
|
35
35
|
parseJournal
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import "./chunk-
|
|
36
|
+
} from "./chunk-IAMIBZRF.js";
|
|
37
|
+
import "./chunk-MXCOSPLJ.js";
|
|
38
|
+
import "./chunk-C5TL7T4V.js";
|
|
38
39
|
import "./chunk-3D4A4B46.js";
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-OOX3RMD3.js";
|
|
41
|
+
import "./chunk-J2LJB2OH.js";
|
|
41
42
|
import {
|
|
42
43
|
resolveProjectPaths
|
|
43
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-VTF4RWS5.js";
|
|
44
45
|
import {
|
|
45
46
|
printError,
|
|
46
47
|
printInfo,
|
|
47
48
|
printWarning
|
|
48
|
-
} from "./chunk-
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
49
|
+
} from "./chunk-SVDEWOUD.js";
|
|
50
|
+
import "./chunk-ROIIEVZH.js";
|
|
51
|
+
import "./chunk-FKWYD44M.js";
|
|
51
52
|
import {
|
|
52
53
|
QUEUES_DIR_NAME,
|
|
53
54
|
getIssuePaths
|
|
@@ -55,17 +56,17 @@ import {
|
|
|
55
56
|
import {
|
|
56
57
|
describePreflight,
|
|
57
58
|
preflightRepository
|
|
58
|
-
} from "./chunk-
|
|
59
|
-
import "./chunk-
|
|
59
|
+
} from "./chunk-WNROH2YE.js";
|
|
60
|
+
import "./chunk-GPLP7EPL.js";
|
|
60
61
|
import "./chunk-P3LRUNC6.js";
|
|
61
|
-
import "./chunk-
|
|
62
|
+
import "./chunk-R42YHLDV.js";
|
|
62
63
|
import {
|
|
63
64
|
loadTaskPlan
|
|
64
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-GVOZ6NDO.js";
|
|
65
66
|
import {
|
|
66
67
|
acquireRunLock,
|
|
67
68
|
describeRunLockOwner
|
|
68
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-QVLIIGBU.js";
|
|
69
70
|
import "./chunk-7Z4Y3VKM.js";
|
|
70
71
|
import "./chunk-XEYH6ZZI.js";
|
|
71
72
|
|
|
@@ -239,4 +240,4 @@ async function loadTarget(projectId, issue) {
|
|
|
239
240
|
export {
|
|
240
241
|
runResume
|
|
241
242
|
};
|
|
242
|
-
//# sourceMappingURL=resume-
|
|
243
|
+
//# sourceMappingURL=resume-OQJZV3JH.js.map
|
|
@@ -1 +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 } from '../execution/plan.js';\nimport { acquireRunLock, describeRunLockOwner, type RunLockHandle } from '../storage/lock.js';\nimport { getIssuePaths, QUEUES_DIR_NAME } from '../storage/paths.js';\nimport { 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 { 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 /** 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 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 // 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 const code = await resumeOne(target, mode);\n if (code !== 0) return code;\n }\n return 0;\n } finally {\n await handle.release();\n }\n}\n\nasync function resumeOne(target: ResumeTarget, mode: string): 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 (next === null) {\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, { only: true });\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 content = `${await readIfPresent(target.rotatedEventsFile)}${await readIfPresent(target.eventsFile)}`;\n if (content === '') return null;\n\n const open: string[] = [];\n for (const entry of parseJournal(content)) {\n const event = entry.event;\n if (event.type === 'phase:start') {\n open.push(event.phase);\n } else if (event.type === 'phase:end') {\n const index = open.lastIndexOf(event.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.projectId, issue);\n return target === null ? [] : [target];\n }\n\n const queued = await queueTarget(project);\n if (queued !== null && !all) return [queued];\n\n const unfinished = await unfinishedTargets(project);\n if (all) return unfinished;\n return unfinished.slice(0, 1);\n}\n\n/** The issue a queue would hand out next, when this project has a queue. */\nasync function queueTarget(\n project: Awaited<ReturnType<typeof resolveProjectPaths>>,\n): Promise<ResumeTarget | null> {\n const queuesDir = join(project.projectDir, QUEUES_DIR_NAME);\n let entries: string[];\n try {\n entries = await readdir(queuesDir);\n } catch {\n return null;\n }\n\n for (const entry of entries) {\n const plan = await loadExecutionPlan(join(queuesDir, entry, 'execution-plan.json'));\n if (plan === null) continue;\n const next = nextQueueIssue(plan);\n if (next === null) continue;\n const target = await loadTarget(project.projectId, next.id);\n if (target !== null) return target;\n }\n return null;\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 = 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.projectId, id);\n if (target === null) continue;\n if (target.plan.issueStatus === 'completed') continue;\n const manager = new PipelineManager(target.plan, target.tasksFile, activePhases(target.plan));\n if (manager.getNextPhase() === null) 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(projectId: string, issue: string): Promise<ResumeTarget | null> {\n let paths: ReturnType<typeof getIssuePaths>;\n try {\n paths = getIssuePaths(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 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;AAqDrB,eAAsB,U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K,gBAAgB,YAAa;AAC7C,UAAM,UAAU,IAAI,gBAAgB,OAAO,MAAM,OAAO,WAAW,aAAa,OAAO,IAAI,CAAC;AAC5F,QAAI,QAAQ,aAAa,MAAM,KAAM;AACrC,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,WAAW,WAAmB,OAA6C;AACxF,MAAI;AACJ,MAAI;AACF,YAAQ,cAAc,WAAW,KAAK;AAAA,EACxC,QAAQ;AAEN,WAAO;AAAA,EACT;AAEA,MAAI;AACF,UAAM,OAAO,MAAM,aAAa,MAAM,SAAS;AAC/C,WAAO;AAAA,MACL;AAAA,MACA;AAAA,MACA,WAAW,MAAM;AAAA,MACjB,YAAY,MAAM;AAAA,MAClB,mBAAmB,MAAM;AAAA,IAC3B;AAAA,EACF,QAAQ;AACN,WAAO;AAAA,EACT;AACF;","names":[]}
|
|
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 } from '../execution/plan.js';\nimport { acquireRunLock, describeRunLockOwner, type RunLockHandle } from '../storage/lock.js';\nimport { getIssuePaths, QUEUES_DIR_NAME } from '../storage/paths.js';\nimport { 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 { 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 /** 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 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 // 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 const code = await resumeOne(target, mode);\n if (code !== 0) return code;\n }\n return 0;\n } finally {\n await handle.release();\n }\n}\n\nasync function resumeOne(target: ResumeTarget, mode: string): 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 (next === null) {\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, { only: true });\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 content = `${await readIfPresent(target.rotatedEventsFile)}${await readIfPresent(target.eventsFile)}`;\n if (content === '') return null;\n\n const open: string[] = [];\n for (const entry of parseJournal(content)) {\n const event = entry.event;\n if (event.type === 'phase:start') {\n open.push(event.phase);\n } else if (event.type === 'phase:end') {\n const index = open.lastIndexOf(event.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.projectId, issue);\n return target === null ? [] : [target];\n }\n\n const queued = await queueTarget(project);\n if (queued !== null && !all) return [queued];\n\n const unfinished = await unfinishedTargets(project);\n if (all) return unfinished;\n return unfinished.slice(0, 1);\n}\n\n/** The issue a queue would hand out next, when this project has a queue. */\nasync function queueTarget(\n project: Awaited<ReturnType<typeof resolveProjectPaths>>,\n): Promise<ResumeTarget | null> {\n const queuesDir = join(project.projectDir, QUEUES_DIR_NAME);\n let entries: string[];\n try {\n entries = await readdir(queuesDir);\n } catch {\n return null;\n }\n\n for (const entry of entries) {\n const plan = await loadExecutionPlan(join(queuesDir, entry, 'execution-plan.json'));\n if (plan === null) continue;\n const next = nextQueueIssue(plan);\n if (next === null) continue;\n const target = await loadTarget(project.projectId, next.id);\n if (target !== null) return target;\n }\n return null;\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 = 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.projectId, id);\n if (target === null) continue;\n if (target.plan.issueStatus === 'completed') continue;\n const manager = new PipelineManager(target.plan, target.tasksFile, activePhases(target.plan));\n if (manager.getNextPhase() === null) 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(projectId: string, issue: string): Promise<ResumeTarget | null> {\n let paths: ReturnType<typeof getIssuePaths>;\n try {\n paths = getIssuePaths(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 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;AAqDrB,eAAsB,UAAU,OAAgB,UAAyB,CAAC,GAAoB;AAC5F,QAAM,OAAO,QAAQ,QAAQ;AAE7B,MAAI;AACJ,MAAI;AACF,cAAU,MAAM,oBAAoB;AAA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AAa,MAAM,KAAM;AACrC,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,WAAW,WAAmB,OAA6C;AACxF,MAAI;AACJ,MAAI;AACF,YAAQ,cAAc,WAAW,KAAK;AAAA,EACxC,QAAQ;AAEN,WAAO;AAAA,EACT;AAEA,MAAI;AACF,UAAM,OAAO,MAAM,aAAa,MAAM,SAAS;AAC/C,WAAO;AAAA,MACL;AAAA,MACA;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,35 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
runReview
|
|
4
|
+
} from "./chunk-EPFC4LHT.js";
|
|
5
|
+
import "./chunk-QZOBR6YF.js";
|
|
6
|
+
import "./chunk-BSBJXPLC.js";
|
|
7
|
+
import "./chunk-L6HSKTQE.js";
|
|
8
|
+
import "./chunk-MCLPSL6B.js";
|
|
9
|
+
import "./chunk-H3EYBJZU.js";
|
|
10
|
+
import "./chunk-KMMASOA6.js";
|
|
11
|
+
import "./chunk-4FUWWBTP.js";
|
|
12
|
+
import "./chunk-OGVWJO4S.js";
|
|
13
|
+
import "./chunk-73TS2H42.js";
|
|
14
|
+
import "./chunk-AOAQU7PD.js";
|
|
15
|
+
import "./chunk-IAMIBZRF.js";
|
|
16
|
+
import "./chunk-MXCOSPLJ.js";
|
|
17
|
+
import "./chunk-OOX3RMD3.js";
|
|
18
|
+
import "./chunk-J2LJB2OH.js";
|
|
19
|
+
import "./chunk-VTF4RWS5.js";
|
|
20
|
+
import "./chunk-SVDEWOUD.js";
|
|
21
|
+
import "./chunk-ROIIEVZH.js";
|
|
22
|
+
import "./chunk-FKWYD44M.js";
|
|
23
|
+
import "./chunk-HAKDLR6N.js";
|
|
24
|
+
import "./chunk-WNROH2YE.js";
|
|
25
|
+
import "./chunk-GPLP7EPL.js";
|
|
26
|
+
import "./chunk-P3LRUNC6.js";
|
|
27
|
+
import "./chunk-R42YHLDV.js";
|
|
28
|
+
import "./chunk-GVOZ6NDO.js";
|
|
29
|
+
import "./chunk-QVLIIGBU.js";
|
|
30
|
+
import "./chunk-7Z4Y3VKM.js";
|
|
31
|
+
import "./chunk-XEYH6ZZI.js";
|
|
32
|
+
export {
|
|
33
|
+
runReview
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=review-AEFISJZD.js.map
|
|
@@ -2,27 +2,27 @@
|
|
|
2
2
|
import {
|
|
3
3
|
PRIORS_VERSION,
|
|
4
4
|
decideRouting
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-AOAQU7PD.js";
|
|
6
6
|
import {
|
|
7
7
|
loadRoutingConfig
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-J2LJB2OH.js";
|
|
9
9
|
import {
|
|
10
10
|
resolveIssuePaths
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-VTF4RWS5.js";
|
|
12
12
|
import {
|
|
13
13
|
printInfo
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-SVDEWOUD.js";
|
|
15
|
+
import "./chunk-ROIIEVZH.js";
|
|
16
|
+
import "./chunk-FKWYD44M.js";
|
|
17
17
|
import "./chunk-HAKDLR6N.js";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-WNROH2YE.js";
|
|
19
|
+
import "./chunk-GPLP7EPL.js";
|
|
20
20
|
import "./chunk-P3LRUNC6.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-R42YHLDV.js";
|
|
22
22
|
import {
|
|
23
23
|
loadTaskPlan
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
} from "./chunk-GVOZ6NDO.js";
|
|
25
|
+
import "./chunk-QVLIIGBU.js";
|
|
26
26
|
import "./chunk-7Z4Y3VKM.js";
|
|
27
27
|
import "./chunk-XEYH6ZZI.js";
|
|
28
28
|
|
|
@@ -91,4 +91,4 @@ export {
|
|
|
91
91
|
runRoutingInspect,
|
|
92
92
|
runRoutingReport
|
|
93
93
|
};
|
|
94
|
-
//# sourceMappingURL=routing-
|
|
94
|
+
//# sourceMappingURL=routing-EA5NJGNU.js.map
|