issue-flow 0.11.1 → 0.13.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.
Files changed (180) hide show
  1. package/README.md +79 -274
  2. package/dist/agent-BXRIEKVM.js +238 -0
  3. package/dist/agent-BXRIEKVM.js.map +1 -0
  4. package/dist/{analyze-XV3K25K3.js → analyze-WS47UYGN.js} +32 -15
  5. package/dist/analyze-WS47UYGN.js.map +1 -0
  6. package/dist/{apply-WUJHDD7A.js → apply-OS62UWRN.js} +15 -5
  7. package/dist/{apply-WUJHDD7A.js.map → apply-OS62UWRN.js.map} +1 -1
  8. package/dist/bench-SA3BOME5.js +906 -0
  9. package/dist/bench-SA3BOME5.js.map +1 -0
  10. package/dist/chunk-37N2RJW2.js +120 -0
  11. package/dist/chunk-37N2RJW2.js.map +1 -0
  12. package/dist/chunk-3XLCNVMD.js +180 -0
  13. package/dist/chunk-3XLCNVMD.js.map +1 -0
  14. package/dist/chunk-5TB6KLC2.js +72 -0
  15. package/dist/chunk-5TB6KLC2.js.map +1 -0
  16. package/dist/{chunk-OBLVLIUS.js → chunk-664Y3NDX.js} +25 -13
  17. package/dist/chunk-664Y3NDX.js.map +1 -0
  18. package/dist/chunk-6FDFRNXZ.js +357 -0
  19. package/dist/chunk-6FDFRNXZ.js.map +1 -0
  20. package/dist/chunk-7KD66LIM.js +658 -0
  21. package/dist/chunk-7KD66LIM.js.map +1 -0
  22. package/dist/chunk-7Z4Y3VKM.js +26 -0
  23. package/dist/chunk-7Z4Y3VKM.js.map +1 -0
  24. package/dist/chunk-ARFVHC2F.js +1111 -0
  25. package/dist/chunk-ARFVHC2F.js.map +1 -0
  26. package/dist/{chunk-RKTEV6EG.js → chunk-BHJCGWQX.js} +141 -12
  27. package/dist/chunk-BHJCGWQX.js.map +1 -0
  28. package/dist/chunk-BQDQTIM7.js +74 -0
  29. package/dist/chunk-BQDQTIM7.js.map +1 -0
  30. package/dist/chunk-CNBYCMSU.js +2709 -0
  31. package/dist/chunk-CNBYCMSU.js.map +1 -0
  32. package/dist/chunk-CRGIQFUQ.js +83 -0
  33. package/dist/chunk-CRGIQFUQ.js.map +1 -0
  34. package/dist/chunk-DIG5XKQQ.js +298 -0
  35. package/dist/chunk-DIG5XKQQ.js.map +1 -0
  36. package/dist/chunk-FZDR7CGH.js +71 -0
  37. package/dist/chunk-FZDR7CGH.js.map +1 -0
  38. package/dist/chunk-HEF2RMKN.js +413 -0
  39. package/dist/chunk-HEF2RMKN.js.map +1 -0
  40. package/dist/{chunk-IVHZEYAX.js → chunk-HJGGNLWI.js} +25 -19
  41. package/dist/chunk-HJGGNLWI.js.map +1 -0
  42. package/dist/chunk-HQAHNIAR.js +283 -0
  43. package/dist/chunk-HQAHNIAR.js.map +1 -0
  44. package/dist/{chunk-GANSDJV7.js → chunk-IHIEXUTC.js} +46 -24
  45. package/dist/chunk-IHIEXUTC.js.map +1 -0
  46. package/dist/chunk-IV5SS4JN.js +84 -0
  47. package/dist/chunk-IV5SS4JN.js.map +1 -0
  48. package/dist/{chunk-HC2MT7BX.js → chunk-IYV6KNVF.js} +158 -592
  49. package/dist/chunk-IYV6KNVF.js.map +1 -0
  50. package/dist/{chunk-LVKQ2AKT.js → chunk-J62QSVP6.js} +10 -8
  51. package/dist/chunk-J62QSVP6.js.map +1 -0
  52. package/dist/chunk-KMMASOA6.js +134 -0
  53. package/dist/chunk-KMMASOA6.js.map +1 -0
  54. package/dist/chunk-KQHB7ZT3.js +559 -0
  55. package/dist/chunk-KQHB7ZT3.js.map +1 -0
  56. package/dist/chunk-L6HSKTQE.js +77 -0
  57. package/dist/chunk-L6HSKTQE.js.map +1 -0
  58. package/dist/{chunk-6N7LZZ5U.js → chunk-LZ6GFQAG.js} +474 -160
  59. package/dist/chunk-LZ6GFQAG.js.map +1 -0
  60. package/dist/{chunk-HQYXVIH6.js → chunk-MIVHK5YI.js} +5 -5
  61. package/dist/chunk-NEZZ6KDR.js +1217 -0
  62. package/dist/chunk-NEZZ6KDR.js.map +1 -0
  63. package/dist/{run-DBF2VWUN.js → chunk-OPNGPUKJ.js} +747 -594
  64. package/dist/chunk-OPNGPUKJ.js.map +1 -0
  65. package/dist/chunk-P3LRUNC6.js +16 -0
  66. package/dist/chunk-P3LRUNC6.js.map +1 -0
  67. package/dist/{chunk-BXCPXRBR.js → chunk-PIVGJM6K.js} +129 -32
  68. package/dist/chunk-PIVGJM6K.js.map +1 -0
  69. package/dist/{chunk-AAY6KM7N.js → chunk-PV4OX5TC.js} +167 -196
  70. package/dist/chunk-PV4OX5TC.js.map +1 -0
  71. package/dist/chunk-QCXPNSEL.js +141 -0
  72. package/dist/chunk-QCXPNSEL.js.map +1 -0
  73. package/dist/{chunk-34WNTK3K.js → chunk-QXDNBYQF.js} +53 -13
  74. package/dist/chunk-QXDNBYQF.js.map +1 -0
  75. package/dist/chunk-SNTTOQAD.js +30 -0
  76. package/dist/chunk-SNTTOQAD.js.map +1 -0
  77. package/dist/{chunk-EY6WMHV2.js → chunk-TM67EHSV.js} +67 -23
  78. package/dist/chunk-TM67EHSV.js.map +1 -0
  79. package/dist/chunk-TVN2JVOF.js +77 -0
  80. package/dist/chunk-TVN2JVOF.js.map +1 -0
  81. package/dist/chunk-TX5WIVYP.js +129 -0
  82. package/dist/chunk-TX5WIVYP.js.map +1 -0
  83. package/dist/{chunk-KQ4JQN7T.js → chunk-UJ7XWK7J.js} +83 -21
  84. package/dist/chunk-UJ7XWK7J.js.map +1 -0
  85. package/dist/{chunk-47VIN33V.js → chunk-UOCPC2Y2.js} +596 -17
  86. package/dist/chunk-UOCPC2Y2.js.map +1 -0
  87. package/dist/chunk-XEYH6ZZI.js +289 -0
  88. package/dist/chunk-XEYH6ZZI.js.map +1 -0
  89. package/dist/cli.js +390 -40
  90. package/dist/cli.js.map +1 -1
  91. package/dist/config-MEM2IWWN.js +76 -0
  92. package/dist/contract-JH2WBIO6.js +8 -0
  93. package/dist/conventions-WV4NDXGH.js +143 -0
  94. package/dist/conventions-WV4NDXGH.js.map +1 -0
  95. package/dist/execute-NITIHHCK.js +31 -0
  96. package/dist/{generate-TBVTLMOP.js → generate-MVQI7A45.js} +39 -19
  97. package/dist/{generate-TBVTLMOP.js.map → generate-MVQI7A45.js.map} +1 -1
  98. package/dist/git-YRVRUN3C.js +31 -0
  99. package/dist/init-OKWEC3EV.js +21 -0
  100. package/dist/operations-LU6JA3BX.js +374 -0
  101. package/dist/operations-LU6JA3BX.js.map +1 -0
  102. package/dist/permissions-7NMDFU27.js +18 -0
  103. package/dist/plan-LEJJF3DE.js +31 -0
  104. package/dist/{policy-XQW5NUIE.js → policy-JSYEK5B2.js} +17 -4
  105. package/dist/policy-JSYEK5B2.js.map +1 -0
  106. package/dist/pr-HPVUZ7S3.js +36 -0
  107. package/dist/pr-review-R2QZBT3F.js +29 -0
  108. package/dist/pr-review-R2QZBT3F.js.map +1 -0
  109. package/dist/prd-5O6GYCC6.js +30 -0
  110. package/dist/prd-5O6GYCC6.js.map +1 -0
  111. package/dist/ps-TNE44R5V.js +90 -0
  112. package/dist/ps-TNE44R5V.js.map +1 -0
  113. package/dist/recorder-XGF55WXI.js +31 -0
  114. package/dist/recorder-XGF55WXI.js.map +1 -0
  115. package/dist/registry-LGPE53QD.js +15 -0
  116. package/dist/registry-LGPE53QD.js.map +1 -0
  117. package/dist/resume-QMEPMSZW.js +238 -0
  118. package/dist/resume-QMEPMSZW.js.map +1 -0
  119. package/dist/review-YKWD6SNN.js +32 -0
  120. package/dist/review-YKWD6SNN.js.map +1 -0
  121. package/dist/routing-2ZUMZPJB.js +91 -0
  122. package/dist/routing-2ZUMZPJB.js.map +1 -0
  123. package/dist/run-YU4TR62R.js +50 -0
  124. package/dist/run-YU4TR62R.js.map +1 -0
  125. package/dist/state-manager-X3PT3FGT.js +36 -0
  126. package/dist/state-manager-X3PT3FGT.js.map +1 -0
  127. package/dist/usage-VCFLDA5Y.js +174 -0
  128. package/dist/usage-VCFLDA5Y.js.map +1 -0
  129. package/dist/{web-ANQQTTRD.js → web-XVHLX62B.js} +43 -27
  130. package/dist/web-XVHLX62B.js.map +1 -0
  131. package/package.json +6 -2
  132. package/prompts/execute.md +7 -8
  133. package/prompts/plan.md +4 -5
  134. package/prompts/pr.md +13 -6
  135. package/web/AGENTS.md +3 -3
  136. package/web/public/app.css +38 -0
  137. package/web/public/app.js +132 -10
  138. package/web/public/index.html +24 -0
  139. package/dist/analyze-XV3K25K3.js.map +0 -1
  140. package/dist/chunk-34WNTK3K.js.map +0 -1
  141. package/dist/chunk-3BOHTH4V.js +0 -58
  142. package/dist/chunk-3BOHTH4V.js.map +0 -1
  143. package/dist/chunk-47VIN33V.js.map +0 -1
  144. package/dist/chunk-6N7LZZ5U.js.map +0 -1
  145. package/dist/chunk-AAY6KM7N.js.map +0 -1
  146. package/dist/chunk-BXCPXRBR.js.map +0 -1
  147. package/dist/chunk-EWDJENFW.js +0 -303
  148. package/dist/chunk-EWDJENFW.js.map +0 -1
  149. package/dist/chunk-EY6WMHV2.js.map +0 -1
  150. package/dist/chunk-GANSDJV7.js.map +0 -1
  151. package/dist/chunk-HC2MT7BX.js.map +0 -1
  152. package/dist/chunk-HDV3YDTG.js +0 -52
  153. package/dist/chunk-HDV3YDTG.js.map +0 -1
  154. package/dist/chunk-IVHZEYAX.js.map +0 -1
  155. package/dist/chunk-KQ4JQN7T.js.map +0 -1
  156. package/dist/chunk-LVKQ2AKT.js.map +0 -1
  157. package/dist/chunk-OBLVLIUS.js.map +0 -1
  158. package/dist/chunk-RKTEV6EG.js.map +0 -1
  159. package/dist/chunk-VQ5VN7DF.js +0 -1018
  160. package/dist/chunk-VQ5VN7DF.js.map +0 -1
  161. package/dist/config-4THHOXNN.js +0 -41
  162. package/dist/execute-5OEKLM5X.js +0 -15
  163. package/dist/init-PRMOTQ7N.js +0 -9
  164. package/dist/plan-Y2BYZD24.js +0 -17
  165. package/dist/policy-XQW5NUIE.js.map +0 -1
  166. package/dist/pr-H6GLOSXF.js +0 -21
  167. package/dist/pr-review-CK5FR6WX.js +0 -17
  168. package/dist/prd-4PWLCGH5.js +0 -17
  169. package/dist/review-QGVAHEZF.js +0 -15
  170. package/dist/run-DBF2VWUN.js.map +0 -1
  171. package/dist/web-ANQQTTRD.js.map +0 -1
  172. /package/dist/{chunk-HQYXVIH6.js.map → chunk-MIVHK5YI.js.map} +0 -0
  173. /package/dist/{config-4THHOXNN.js.map → config-MEM2IWWN.js.map} +0 -0
  174. /package/dist/{execute-5OEKLM5X.js.map → contract-JH2WBIO6.js.map} +0 -0
  175. /package/dist/{init-PRMOTQ7N.js.map → execute-NITIHHCK.js.map} +0 -0
  176. /package/dist/{plan-Y2BYZD24.js.map → git-YRVRUN3C.js.map} +0 -0
  177. /package/dist/{pr-H6GLOSXF.js.map → init-OKWEC3EV.js.map} +0 -0
  178. /package/dist/{pr-review-CK5FR6WX.js.map → permissions-7NMDFU27.js.map} +0 -0
  179. /package/dist/{prd-4PWLCGH5.js.map → plan-LEJJF3DE.js.map} +0 -0
  180. /package/dist/{review-QGVAHEZF.js.map → pr-HPVUZ7S3.js.map} +0 -0
@@ -2,13 +2,22 @@
2
2
  import "./chunk-3D4A4B46.js";
3
3
  import {
4
4
  loadRepositoryPolicy
5
- } from "./chunk-47VIN33V.js";
6
- import "./chunk-VQ5VN7DF.js";
5
+ } from "./chunk-UOCPC2Y2.js";
6
+ import "./chunk-CNBYCMSU.js";
7
+ import "./chunk-HQAHNIAR.js";
7
8
  import {
8
9
  printError,
9
10
  printInfo,
10
11
  printWarning
11
- } from "./chunk-HC2MT7BX.js";
12
+ } from "./chunk-IYV6KNVF.js";
13
+ import "./chunk-6FDFRNXZ.js";
14
+ import "./chunk-P3LRUNC6.js";
15
+ import "./chunk-DIG5XKQQ.js";
16
+ import "./chunk-NEZZ6KDR.js";
17
+ import "./chunk-TX5WIVYP.js";
18
+ import "./chunk-KQHB7ZT3.js";
19
+ import "./chunk-7Z4Y3VKM.js";
20
+ import "./chunk-XEYH6ZZI.js";
12
21
 
13
22
  // src/commands/policy.ts
14
23
  function groupSources(sources) {
@@ -67,6 +76,10 @@ function render(policy) {
67
76
  push("Git");
68
77
  push(` branchConvention: ${policy.git.branchConvention ?? "(none)"}`);
69
78
  push(` commitConvention: ${policy.git.commitConvention ?? "(none)"}`);
79
+ push(` pullRequestTitleConvention: ${policy.git.pullRequestTitleConvention ?? "(none)"}`);
80
+ push(` issueReference: ${policy.git.issueReference ?? "(none)"}`);
81
+ push(` allowedTypes: ${policy.git.allowedTypes?.join(", ") ?? "(none)"}`);
82
+ push(` scopes: ${policy.git.scopes?.join(", ") ?? "(none)"}`);
70
83
  push();
71
84
  push(`Documents: ${policy.docs.length}`);
72
85
  for (const doc of policy.docs) {
@@ -114,4 +127,4 @@ async function runPolicy(options = {}) {
114
127
  export {
115
128
  runPolicy
116
129
  };
117
- //# sourceMappingURL=policy-XQW5NUIE.js.map
130
+ //# sourceMappingURL=policy-JSYEK5B2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/commands/policy.ts"],"sourcesContent":["import type { PolicySource, RepositoryPolicy } from '../policy/index.js';\nimport { loadRepositoryPolicy } from '../policy/index.js';\nimport { printError, printInfo, printWarning } from '../ui/logger.js';\n\n/**\n * `issue-flow policy [--scope <dir>] [--json]`.\n *\n * The inspection surface of the policy layer, and the only one for now: this\n * issue delivers the foundation, so no prompt and no skill consumes\n * `loadRepositoryPolicy()` yet.\n *\n * It exists for two audiences. A human debugging a wrong discovery reads the\n * default output, where every section names the files it came from. The Agent\n * Skills read `--json`: they are markdown and cannot import TypeScript, so a\n * versioned JSON document on stdout is the only bridge available to them —\n * which is why `schemaVersion` is part of the payload rather than of the CLI.\n *\n * That makes `--json` a **published contract**, not a debugging convenience.\n * `skills/_shared/repository-policy.md` documents the payload, and\n * `policy-parity.test.ts` pins the fields the skills read: renaming or dropping\n * one silently makes every skill fall back to its defaults, and nothing would\n * fail — the two paths would simply start deciding differently. Adding a field\n * is safe (readers ignore what they do not know); removing or renaming one\n * bumps `schemaVersion`.\n */\n\nexport interface PolicyCommandOptions {\n scope?: string;\n json?: boolean;\n}\n\n/** Group the provenance entries by kind, preserving discovery order. */\nfunction groupSources(sources: PolicySource[]): Map<PolicySource['kind'], PolicySource[]> {\n const grouped = new Map<PolicySource['kind'], PolicySource[]>();\n for (const source of sources) {\n const bucket = grouped.get(source.kind);\n if (bucket === undefined) {\n grouped.set(source.kind, [source]);\n } else {\n bucket.push(source);\n }\n }\n return grouped;\n}\n\nfunction describeSource(source: PolicySource): string {\n const where = source.path ?? source.origin;\n const detail = source.detail === null ? '' : ` — ${source.detail}`;\n return `${source.status === 'found' ? '' : `[${source.status}] `}${where}${detail}`;\n}\n\n/**\n * Human-readable rendering.\n *\n * Content is deliberately never printed: a resolved policy carries whole\n * `AGENTS.md` and template bodies, and dumping them would bury the one thing\n * this view is for — which file each value came from. `--json` is where the\n * content lives.\n */\nfunction render(policy: RepositoryPolicy): void {\n const lines: string[] = [];\n const push = (line = ''): void => {\n lines.push(line);\n };\n\n push(`Repository: ${policy.root}`);\n push(`Scope: ${policy.scope ?? '(root)'}`);\n if (!policy.enabled) {\n push();\n push('Policy discovery is disabled (policy.enabled = false).');\n console.log(lines.join('\\n'));\n return;\n }\n\n push();\n push('Issues');\n push(` templates: ${policy.issues.templates.length}`);\n for (const template of policy.issues.templates) {\n const labels = template.labels.length > 0 ? ` labels=[${template.labels.join(', ')}]` : '';\n const type = template.type === null ? '' : ` type=${template.type}`;\n push(` - ${template.path} (${template.format}, ${template.origin})${type}${labels}`);\n }\n push(` types: ${policy.issues.types.length > 0 ? policy.issues.types.join(', ') : '(none)'}`);\n push(` labels: ${policy.issues.labels.length}`);\n for (const label of policy.issues.labels) {\n push(` - ${label.name}${label.description === null ? '' : ` — ${label.description}`}`);\n }\n push(` titleConvention: ${policy.issues.titleConvention ?? '(none)'}`);\n\n push();\n push('Pull Requests');\n push(` template: ${policy.pullRequests.templates[0]?.path ?? '(none)'}`);\n for (const template of policy.pullRequests.templates.slice(1)) {\n push(` - ${template.path}`);\n }\n push(` baseBranch: ${policy.pullRequests.baseBranch ?? '(none)'}`);\n push(` titleConvention: ${policy.pullRequests.titleConvention ?? '(none)'}`);\n\n push();\n push('Git');\n push(` branchConvention: ${policy.git.branchConvention ?? '(none)'}`);\n push(` commitConvention: ${policy.git.commitConvention ?? '(none)'}`);\n push(` pullRequestTitleConvention: ${policy.git.pullRequestTitleConvention ?? '(none)'}`);\n push(` issueReference: ${policy.git.issueReference ?? '(none)'}`);\n push(` allowedTypes: ${policy.git.allowedTypes?.join(', ') ?? '(none)'}`);\n push(` scopes: ${policy.git.scopes?.join(', ') ?? '(none)'}`);\n\n push();\n push(`Documents: ${policy.docs.length}`);\n for (const doc of policy.docs) {\n const scope = doc.scope === '' ? 'root' : doc.scope;\n const from = doc.referencedFrom === null ? '' : ` ← ${doc.referencedFrom}`;\n push(` - ${doc.path} (${doc.kind}, scope=${scope})${from}`);\n }\n\n push();\n push(`CODEOWNERS: ${policy.codeowners === null ? '(none)' : 'found'}`);\n\n push();\n push('Sources');\n for (const [kind, entries] of groupSources(policy.sources)) {\n push(` ${kind}`);\n for (const entry of entries) {\n push(` - ${describeSource(entry)}`);\n }\n }\n\n console.log(lines.join('\\n'));\n}\n\n/**\n * Resolve and print the repository policy. Returns the process exit code.\n *\n * Only a repository that cannot be located at all is a failure: an empty policy\n * is a legitimate — and common — answer, printed like any other.\n */\nexport async function runPolicy(options: PolicyCommandOptions = {}): Promise<number> {\n let policy: RepositoryPolicy;\n try {\n policy = await loadRepositoryPolicy({ scope: options.scope ?? null });\n } catch (err) {\n printError(err instanceof Error ? err.message : String(err));\n return 1;\n }\n\n if (options.json === true) {\n console.log(JSON.stringify(policy, null, 2));\n return 0;\n }\n\n render(policy);\n\n const unavailable = policy.sources.filter((source) => source.status === 'unavailable');\n if (unavailable.length > 0) {\n console.log('');\n printWarning(\n `${unavailable.length} source(s) could not be consulted; the policy above is incomplete.`,\n );\n } else if (policy.sources.length === 0) {\n console.log('');\n printInfo('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M6K.js";
7
+ import "./chunk-J62QSVP6.js";
8
+ import "./chunk-IV5SS4JN.js";
9
+ import "./chunk-FZDR7CGH.js";
10
+ import "./chunk-PV4OX5TC.js";
11
+ import "./chunk-KMMASOA6.js";
12
+ import "./chunk-664Y3NDX.js";
13
+ import "./chunk-MIVHK5YI.js";
14
+ import "./chunk-ARFVHC2F.js";
15
+ import "./chunk-3XLCNVMD.js";
16
+ import "./chunk-QCXPNSEL.js";
17
+ import "./chunk-3D4A4B46.js";
18
+ import "./chunk-UOCPC2Y2.js";
19
+ import "./chunk-CNBYCMSU.js";
20
+ import "./chunk-HQAHNIAR.js";
21
+ import "./chunk-IYV6KNVF.js";
22
+ import "./chunk-6FDFRNXZ.js";
23
+ import "./chunk-P3LRUNC6.js";
24
+ import "./chunk-DIG5XKQQ.js";
25
+ import "./chunk-NEZZ6KDR.js";
26
+ import "./chunk-TVN2JVOF.js";
27
+ import "./chunk-TX5WIVYP.js";
28
+ import "./chunk-KQHB7ZT3.js";
29
+ import "./chunk-7Z4Y3VKM.js";
30
+ import "./chunk-XEYH6ZZI.js";
31
+ export {
32
+ issueClosesLines,
33
+ multiIssueContext,
34
+ runPr
35
+ };
36
+ //# sourceMappingURL=pr-HPVUZ7S3.js.map
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ exitCodeFor,
4
+ runPrReview
5
+ } from "./chunk-UJ7XWK7J.js";
6
+ import "./chunk-J62QSVP6.js";
7
+ import "./chunk-664Y3NDX.js";
8
+ import "./chunk-MIVHK5YI.js";
9
+ import "./chunk-ARFVHC2F.js";
10
+ import "./chunk-3XLCNVMD.js";
11
+ import "./chunk-QCXPNSEL.js";
12
+ import "./chunk-UOCPC2Y2.js";
13
+ import "./chunk-CNBYCMSU.js";
14
+ import "./chunk-HQAHNIAR.js";
15
+ import "./chunk-IYV6KNVF.js";
16
+ import "./chunk-6FDFRNXZ.js";
17
+ import "./chunk-P3LRUNC6.js";
18
+ import "./chunk-DIG5XKQQ.js";
19
+ import "./chunk-NEZZ6KDR.js";
20
+ import "./chunk-TVN2JVOF.js";
21
+ import "./chunk-TX5WIVYP.js";
22
+ import "./chunk-KQHB7ZT3.js";
23
+ import "./chunk-7Z4Y3VKM.js";
24
+ import "./chunk-XEYH6ZZI.js";
25
+ export {
26
+ exitCodeFor,
27
+ runPrReview
28
+ };
29
+ //# sourceMappingURL=pr-review-R2QZBT3F.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,30 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ runPrd
4
+ } from "./chunk-HJGGNLWI.js";
5
+ import "./chunk-IV5SS4JN.js";
6
+ import "./chunk-FZDR7CGH.js";
7
+ import "./chunk-PV4OX5TC.js";
8
+ import "./chunk-KMMASOA6.js";
9
+ import "./chunk-664Y3NDX.js";
10
+ import "./chunk-MIVHK5YI.js";
11
+ import "./chunk-ARFVHC2F.js";
12
+ import "./chunk-3XLCNVMD.js";
13
+ import "./chunk-QCXPNSEL.js";
14
+ import "./chunk-UOCPC2Y2.js";
15
+ import "./chunk-CNBYCMSU.js";
16
+ import "./chunk-HQAHNIAR.js";
17
+ import "./chunk-IYV6KNVF.js";
18
+ import "./chunk-6FDFRNXZ.js";
19
+ import "./chunk-P3LRUNC6.js";
20
+ import "./chunk-DIG5XKQQ.js";
21
+ import "./chunk-NEZZ6KDR.js";
22
+ import "./chunk-TVN2JVOF.js";
23
+ import "./chunk-TX5WIVYP.js";
24
+ import "./chunk-KQHB7ZT3.js";
25
+ import "./chunk-7Z4Y3VKM.js";
26
+ import "./chunk-XEYH6ZZI.js";
27
+ export {
28
+ runPrd
29
+ };
30
+ //# sourceMappingURL=prd-5O6GYCC6.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,90 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ listLiveRuns
4
+ } from "./chunk-5TB6KLC2.js";
5
+ import "./chunk-SNTTOQAD.js";
6
+ import {
7
+ formatDuration,
8
+ printInfo
9
+ } from "./chunk-IYV6KNVF.js";
10
+ import "./chunk-P3LRUNC6.js";
11
+ import "./chunk-DIG5XKQQ.js";
12
+ import "./chunk-NEZZ6KDR.js";
13
+ import "./chunk-TX5WIVYP.js";
14
+ import "./chunk-KQHB7ZT3.js";
15
+ import "./chunk-7Z4Y3VKM.js";
16
+ import "./chunk-XEYH6ZZI.js";
17
+
18
+ // src/commands/ps.ts
19
+ import { z } from "zod";
20
+ var liveRunJsonSchema = z.object({
21
+ schemaVersion: z.literal(1),
22
+ runs: z.array(
23
+ z.object({
24
+ projectId: z.string(),
25
+ target: z.string(),
26
+ pid: z.number(),
27
+ host: z.string(),
28
+ detached: z.boolean(),
29
+ status: z.enum(["running", "unsignaled", "orphan"]),
30
+ startedAt: z.string(),
31
+ lastHeartbeatAt: z.string(),
32
+ issue: z.number().nullable(),
33
+ phase: z.string().nullable(),
34
+ storiesCompleted: z.number().nullable(),
35
+ storiesTotal: z.number().nullable(),
36
+ elapsedSeconds: z.number().nullable()
37
+ })
38
+ )
39
+ });
40
+ function formatPsTable(runs) {
41
+ if (runs.length === 0) return ["No issue-flow run is active on this machine."];
42
+ const header = pad(["STATUS", "ISSUE", "PHASE", "PROGRESS", "ELAPSED", "PID", "PROJECT"]);
43
+ const rows = runs.map(
44
+ (run) => pad([
45
+ run.status,
46
+ run.issue !== null ? `#${run.issue}` : run.target,
47
+ run.phase ?? "\u2014",
48
+ run.storiesTotal !== null ? `${run.storiesCompleted ?? 0}/${run.storiesTotal}` : "\u2014",
49
+ run.elapsedSeconds !== null ? formatDuration(run.elapsedSeconds) : "\u2014",
50
+ String(run.pid),
51
+ `${run.projectId}${run.detached ? " (bg)" : ""}`
52
+ ])
53
+ );
54
+ return [header, ...rows];
55
+ }
56
+ function pad(cells) {
57
+ const widths = [12, 10, 12, 10, 10, 8, 24];
58
+ return cells.map((cell, i) => cell.padEnd(widths[i] ?? 12)).join(" ");
59
+ }
60
+ async function runPs(options = {}) {
61
+ const render = async () => {
62
+ const runs = await listLiveRuns();
63
+ if (options.json === true) {
64
+ const payload = liveRunJsonSchema.parse({
65
+ schemaVersion: 1,
66
+ runs: runs.map(({ lockFile: _lockFile, ...rest }) => rest)
67
+ });
68
+ printInfo(JSON.stringify(payload, null, 2));
69
+ return runs.length;
70
+ }
71
+ for (const line of formatPsTable(runs)) {
72
+ printInfo(line);
73
+ }
74
+ return runs.length;
75
+ };
76
+ if (options.watch === true) {
77
+ for (; ; ) {
78
+ await render();
79
+ await new Promise((resolve) => setTimeout(resolve, 2e3));
80
+ }
81
+ }
82
+ await render();
83
+ return 0;
84
+ }
85
+ export {
86
+ formatPsTable,
87
+ liveRunJsonSchema,
88
+ runPs
89
+ };
90
+ //# sourceMappingURL=ps-TNE44R5V.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/commands/ps.ts"],"sourcesContent":["import { z } from 'zod';\nimport { type LiveRun, listLiveRuns } from '../execution/registry.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 const render = async () => {\n const runs = await listLiveRuns();\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;AAIX,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;A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AAS,MAAM,CAAC,CAAC;AAC1C,aAAO,KAAK;AAAA,IACd;AACA,eAAW,QAAQ,cAAc,IAAI,GAAG;AACtC,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":[]}
@@ -0,0 +1,31 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ attachVerdict,
4
+ beginExecution,
5
+ bindTelemetry,
6
+ discardedExecutionCount,
7
+ endExecution,
8
+ getTelemetryContext,
9
+ recordInvocation,
10
+ resetTelemetryState,
11
+ timingFromUsage,
12
+ usageFromClaude
13
+ } from "./chunk-6FDFRNXZ.js";
14
+ import "./chunk-P3LRUNC6.js";
15
+ import "./chunk-DIG5XKQQ.js";
16
+ import "./chunk-NEZZ6KDR.js";
17
+ import "./chunk-7Z4Y3VKM.js";
18
+ import "./chunk-XEYH6ZZI.js";
19
+ export {
20
+ attachVerdict,
21
+ beginExecution,
22
+ bindTelemetry,
23
+ discardedExecutionCount,
24
+ endExecution,
25
+ getTelemetryContext,
26
+ recordInvocation,
27
+ resetTelemetryState,
28
+ timingFromUsage,
29
+ usageFromClaude
30
+ };
31
+ //# sourceMappingURL=recorder-XGF55WXI.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ classifyRunLock,
4
+ listLiveRuns
5
+ } from "./chunk-5TB6KLC2.js";
6
+ import "./chunk-SNTTOQAD.js";
7
+ import "./chunk-NEZZ6KDR.js";
8
+ import "./chunk-TX5WIVYP.js";
9
+ import "./chunk-KQHB7ZT3.js";
10
+ import "./chunk-XEYH6ZZI.js";
11
+ export {
12
+ classifyRunLock,
13
+ listLiveRuns
14
+ };
15
+ //# sourceMappingURL=registry-LGPE53QD.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,238 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ runPipeline
4
+ } from "./chunk-OPNGPUKJ.js";
5
+ import "./chunk-37N2RJW2.js";
6
+ import "./chunk-QXDNBYQF.js";
7
+ import {
8
+ PIPELINE_PHASES,
9
+ PipelineManager,
10
+ loadExecutionPlan,
11
+ nextQueueIssue
12
+ } from "./chunk-7KD66LIM.js";
13
+ import "./chunk-BHJCGWQX.js";
14
+ import "./chunk-LZ6GFQAG.js";
15
+ import "./chunk-IHIEXUTC.js";
16
+ import "./chunk-BQDQTIM7.js";
17
+ import "./chunk-HEF2RMKN.js";
18
+ import "./chunk-CRGIQFUQ.js";
19
+ import "./chunk-TM67EHSV.js";
20
+ import "./chunk-PIVGJM6K.js";
21
+ import "./chunk-UJ7XWK7J.js";
22
+ import "./chunk-J62QSVP6.js";
23
+ import "./chunk-HJGGNLWI.js";
24
+ import "./chunk-IV5SS4JN.js";
25
+ import "./chunk-FZDR7CGH.js";
26
+ import "./chunk-PV4OX5TC.js";
27
+ import "./chunk-KMMASOA6.js";
28
+ import "./chunk-664Y3NDX.js";
29
+ import "./chunk-MIVHK5YI.js";
30
+ import "./chunk-ARFVHC2F.js";
31
+ import "./chunk-3XLCNVMD.js";
32
+ import {
33
+ parseJournal
34
+ } from "./chunk-QCXPNSEL.js";
35
+ import "./chunk-3D4A4B46.js";
36
+ import "./chunk-UOCPC2Y2.js";
37
+ import "./chunk-CNBYCMSU.js";
38
+ import {
39
+ resolveProjectPaths
40
+ } from "./chunk-HQAHNIAR.js";
41
+ import {
42
+ printError,
43
+ printInfo,
44
+ printWarning
45
+ } from "./chunk-IYV6KNVF.js";
46
+ import "./chunk-6FDFRNXZ.js";
47
+ import "./chunk-P3LRUNC6.js";
48
+ import {
49
+ loadTaskPlan
50
+ } from "./chunk-DIG5XKQQ.js";
51
+ import {
52
+ acquireRunLock,
53
+ describeRunLockOwner
54
+ } from "./chunk-NEZZ6KDR.js";
55
+ import "./chunk-L6HSKTQE.js";
56
+ import "./chunk-TVN2JVOF.js";
57
+ import {
58
+ QUEUES_DIR_NAME,
59
+ getIssuePaths
60
+ } from "./chunk-TX5WIVYP.js";
61
+ import {
62
+ describePreflight,
63
+ preflightRepository
64
+ } from "./chunk-KQHB7ZT3.js";
65
+ import "./chunk-7Z4Y3VKM.js";
66
+ import "./chunk-XEYH6ZZI.js";
67
+
68
+ // src/commands/resume.ts
69
+ import { readdir, readFile } from "fs/promises";
70
+ import { join } from "path";
71
+ async function runResume(issue, options = {}) {
72
+ const mode = options.mode ?? "auto";
73
+ let project;
74
+ try {
75
+ project = await resolveProjectPaths();
76
+ } catch (err) {
77
+ printError(`Cannot resume: ${err instanceof Error ? err.message : String(err)}`);
78
+ return 1;
79
+ }
80
+ const acquisition = await acquireRunLock(project.runLockFile, { target: issue ?? "resume" });
81
+ if (!acquisition.ok) {
82
+ printError(
83
+ `Another issue-flow run owns this project: ${describeRunLockOwner(acquisition.owner)}.`
84
+ );
85
+ printInfo("Wait for it to finish, or stop that process before resuming.");
86
+ return 1;
87
+ }
88
+ const handle = acquisition.handle;
89
+ if (handle.reclaimedFrom !== null) {
90
+ printWarning(
91
+ `Taking over an interrupted run: ${describeRunLockOwner(handle.reclaimedFrom)}. Its lock was stale.`
92
+ );
93
+ }
94
+ try {
95
+ const targets = await findTargets(project, issue, options.all === true);
96
+ if (targets.length === 0) {
97
+ printInfo(
98
+ 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.`
99
+ );
100
+ return 0;
101
+ }
102
+ for (const target of targets) {
103
+ const code = await resumeOne(target, mode);
104
+ if (code !== 0) return code;
105
+ }
106
+ return 0;
107
+ } finally {
108
+ await handle.release();
109
+ }
110
+ }
111
+ async function resumeOne(target, mode) {
112
+ const phases = activePhases(target.plan);
113
+ const manager = new PipelineManager(target.plan, target.tasksFile, phases);
114
+ const next = manager.getNextPhase();
115
+ if (next === null) {
116
+ printInfo(`Issue #${target.issue} has every phase complete; nothing to resume.`);
117
+ return 0;
118
+ }
119
+ const interrupted = await lastUnfinishedPhase(target);
120
+ if (interrupted !== null) {
121
+ printInfo(`Issue #${target.issue} was interrupted during the '${interrupted}' phase.`);
122
+ }
123
+ const sameWork = interrupted === next;
124
+ const preflight = await preflightRepository({
125
+ expectedBranch: target.plan.noBranch === true ? null : target.plan.branchName,
126
+ intent: sameWork ? "resume-same-phase" : "new-phase"
127
+ });
128
+ if (!preflight.ok) {
129
+ printError(`Cannot resume issue #${target.issue}: the repository needs attention first.`);
130
+ for (const line of describePreflight(preflight)) {
131
+ printError(line);
132
+ }
133
+ return 1;
134
+ }
135
+ printInfo(`Resuming issue #${target.issue} from the '${next}' phase.`);
136
+ return runPipeline(target.issue, mode, next, void 0, void 0, { only: true });
137
+ }
138
+ function activePhases(plan) {
139
+ const base = plan.noBranch === true ? PIPELINE_PHASES.filter((phase) => phase !== "pr") : [...PIPELINE_PHASES];
140
+ return plan.prReview?.enabled === true ? [...base, "pr-review"] : base;
141
+ }
142
+ async function lastUnfinishedPhase(target) {
143
+ const content = `${await readIfPresent(target.rotatedEventsFile)}${await readIfPresent(target.eventsFile)}`;
144
+ if (content === "") return null;
145
+ const open = [];
146
+ for (const entry of parseJournal(content)) {
147
+ const event = entry.event;
148
+ if (event.type === "phase:start") {
149
+ open.push(event.phase);
150
+ } else if (event.type === "phase:end") {
151
+ const index = open.lastIndexOf(event.phase);
152
+ if (index >= 0) open.splice(index, 1);
153
+ }
154
+ }
155
+ return open.at(-1) ?? null;
156
+ }
157
+ async function readIfPresent(path) {
158
+ try {
159
+ return await readFile(path, "utf-8");
160
+ } catch {
161
+ return "";
162
+ }
163
+ }
164
+ async function findTargets(project, issue, all) {
165
+ if (issue !== void 0) {
166
+ const target = await loadTarget(project.projectId, issue);
167
+ return target === null ? [] : [target];
168
+ }
169
+ const queued = await queueTarget(project);
170
+ if (queued !== null && !all) return [queued];
171
+ const unfinished = await unfinishedTargets(project);
172
+ if (all) return unfinished;
173
+ return unfinished.slice(0, 1);
174
+ }
175
+ async function queueTarget(project) {
176
+ const queuesDir = join(project.projectDir, QUEUES_DIR_NAME);
177
+ let entries;
178
+ try {
179
+ entries = await readdir(queuesDir);
180
+ } catch {
181
+ return null;
182
+ }
183
+ for (const entry of entries) {
184
+ const plan = await loadExecutionPlan(join(queuesDir, entry, "execution-plan.json"));
185
+ if (plan === null) continue;
186
+ const next = nextQueueIssue(plan);
187
+ if (next === null) continue;
188
+ const target = await loadTarget(project.projectId, next.id);
189
+ if (target !== null) return target;
190
+ }
191
+ return null;
192
+ }
193
+ async function unfinishedTargets(project) {
194
+ let ids;
195
+ try {
196
+ ids = await readdir(project.issuesDir);
197
+ } catch {
198
+ return [];
199
+ }
200
+ const targets = [];
201
+ for (const id of ids) {
202
+ const target = await loadTarget(project.projectId, id);
203
+ if (target === null) continue;
204
+ if (target.plan.issueStatus === "completed") continue;
205
+ const manager = new PipelineManager(target.plan, target.tasksFile, activePhases(target.plan));
206
+ if (manager.getNextPhase() === null) continue;
207
+ targets.push(target);
208
+ }
209
+ return targets.sort((a, b) => attemptedAt(b.plan) - attemptedAt(a.plan));
210
+ }
211
+ function attemptedAt(plan) {
212
+ const at = Date.parse(plan.lastAttemptAt ?? "");
213
+ return Number.isNaN(at) ? 0 : at;
214
+ }
215
+ async function loadTarget(projectId, issue) {
216
+ let paths;
217
+ try {
218
+ paths = getIssuePaths(projectId, issue);
219
+ } catch {
220
+ return null;
221
+ }
222
+ try {
223
+ const plan = await loadTaskPlan(paths.tasksFile);
224
+ return {
225
+ issue,
226
+ plan,
227
+ tasksFile: paths.tasksFile,
228
+ eventsFile: paths.eventsFile,
229
+ rotatedEventsFile: paths.rotatedEventsFile
230
+ };
231
+ } catch {
232
+ return null;
233
+ }
234
+ }
235
+ export {
236
+ runResume
237
+ };
238
+ //# sourceMappingURL=resume-QMEPMSZW.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 } 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;AAAA,EACtC,SAAS,KAAK;AACZ,eAAW,kBAAkB,eAAe,QAAQ,IAAI,UAAU,OAAO,GAAG,CAAC,EAAE;AAC/E,WAAO;AAAA,EACT;AAIA,QAAM,cAAc,MAAM,eAAe,QAAQ,aAAa,EAAE,QAAQ,SAAS,SAAS,CAAC;AAC3F,MAAI,CAAC,YAAY,IAAI;AACnB;AAAA,MACE,6CAA6C,qBAAqB,YAAY,KAAK,CAAC;AAAA,IACtF;AACA,cAAU,8DAA8D;AACxE,WAAO;AAAA,EACT;AACA,QAAM,SAAwB,YAAY;AAC1C,MAAI,OAAO,kBAAkB,MAAM;AACjC;AAAA,MACE,mCAAmC,qBAAqB,OAAO,aAAa,CAAC;AAAA,IAC/E;AAAA,EACF;AAEA,MAAI;AAEF,UAAM,UAAU,MAAM,YAAY,SAAS,OAAO,QAAQ,QAAQ,IAAI;AACtE,QAAI,QAAQ,WAAW,GAAG;AACxB;AAAA,QACE,UAAU,SACN,4EACA,6BAA6B,KAAK;AAAA,MACxC;AACA,aAAO;AAAA,IACT;AAEA,eAAW,UAAU,SAAS;AAC5B,Y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
3
+ runReview
4
+ } from "./chunk-QXDNBYQF.js";
5
+ import "./chunk-BQDQTIM7.js";
6
+ import "./chunk-HEF2RMKN.js";
7
+ import "./chunk-FZDR7CGH.js";
8
+ import "./chunk-PV4OX5TC.js";
9
+ import "./chunk-KMMASOA6.js";
10
+ import "./chunk-664Y3NDX.js";
11
+ import "./chunk-MIVHK5YI.js";
12
+ import "./chunk-ARFVHC2F.js";
13
+ import "./chunk-3XLCNVMD.js";
14
+ import "./chunk-QCXPNSEL.js";
15
+ import "./chunk-UOCPC2Y2.js";
16
+ import "./chunk-CNBYCMSU.js";
17
+ import "./chunk-HQAHNIAR.js";
18
+ import "./chunk-IYV6KNVF.js";
19
+ import "./chunk-6FDFRNXZ.js";
20
+ import "./chunk-P3LRUNC6.js";
21
+ import "./chunk-DIG5XKQQ.js";
22
+ import "./chunk-NEZZ6KDR.js";
23
+ import "./chunk-L6HSKTQE.js";
24
+ import "./chunk-TVN2JVOF.js";
25
+ import "./chunk-TX5WIVYP.js";
26
+ import "./chunk-KQHB7ZT3.js";
27
+ import "./chunk-7Z4Y3VKM.js";
28
+ import "./chunk-XEYH6ZZI.js";
29
+ export {
30
+ runReview
31
+ };
32
+ //# sourceMappingURL=review-YKWD6SNN.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}