issue-flow 0.10.0 → 0.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/{analyze-UZYJAWAP.js → analyze-XV3K25K3.js} +15 -9
- package/dist/analyze-XV3K25K3.js.map +1 -0
- package/dist/apply-WUJHDD7A.js +788 -0
- package/dist/apply-WUJHDD7A.js.map +1 -0
- package/dist/{chunk-2Z7OEZZT.js → chunk-34WNTK3K.js} +14 -9
- package/dist/chunk-34WNTK3K.js.map +1 -0
- package/dist/{chunk-UUY4PCWW.js → chunk-3BOHTH4V.js} +2 -2
- package/dist/chunk-3D4A4B46.js +2 -0
- package/dist/{policy-NP4ZAVF6.js → chunk-47VIN33V.js} +82 -112
- package/dist/chunk-47VIN33V.js.map +1 -0
- package/dist/{chunk-67ZO5ROQ.js → chunk-6N7LZZ5U.js} +19 -13
- package/dist/chunk-6N7LZZ5U.js.map +1 -0
- package/dist/{chunk-S67Q4I2O.js → chunk-AAY6KM7N.js} +6 -3
- package/dist/chunk-AAY6KM7N.js.map +1 -0
- package/dist/{chunk-2LNQL4XH.js → chunk-BXCPXRBR.js} +17 -12
- package/dist/chunk-BXCPXRBR.js.map +1 -0
- package/dist/{chunk-MXTGCD5C.js → chunk-EWDJENFW.js} +30 -9
- package/dist/chunk-EWDJENFW.js.map +1 -0
- package/dist/{chunk-SP7DD4ID.js → chunk-EY6WMHV2.js} +17 -12
- package/dist/chunk-EY6WMHV2.js.map +1 -0
- package/dist/{chunk-652DJBCN.js → chunk-GANSDJV7.js} +4 -4
- package/dist/{chunk-V5OHFSW4.js → chunk-HC2MT7BX.js} +23 -3
- package/dist/chunk-HC2MT7BX.js.map +1 -0
- package/dist/chunk-HQYXVIH6.js +110 -0
- package/dist/chunk-HQYXVIH6.js.map +1 -0
- package/dist/{chunk-UH4KAJBJ.js → chunk-IVHZEYAX.js} +17 -12
- package/dist/chunk-IVHZEYAX.js.map +1 -0
- package/dist/{chunk-EWA3OGCM.js → chunk-KQ4JQN7T.js} +14 -9
- package/dist/chunk-KQ4JQN7T.js.map +1 -0
- package/dist/{chunk-VOKNTBOO.js → chunk-LVKQ2AKT.js} +3 -3
- package/dist/chunk-OBLVLIUS.js +285 -0
- package/dist/chunk-OBLVLIUS.js.map +1 -0
- package/dist/chunk-RKTEV6EG.js +246 -0
- package/dist/chunk-RKTEV6EG.js.map +1 -0
- package/dist/{chunk-VYFKOUUR.js → chunk-VQ5VN7DF.js} +9 -5
- package/dist/chunk-VQ5VN7DF.js.map +1 -0
- package/dist/cli.js +26 -22
- package/dist/cli.js.map +1 -1
- package/dist/{config-YCF3HIKR.js → config-4THHOXNN.js} +3 -3
- package/dist/execute-5OEKLM5X.js +15 -0
- package/dist/{generate-TW6QKSW5.js → generate-TBVTLMOP.js} +101 -13
- package/dist/generate-TBVTLMOP.js.map +1 -0
- package/dist/init-PRMOTQ7N.js +9 -0
- package/dist/plan-Y2BYZD24.js +17 -0
- package/dist/policy-XQW5NUIE.js +117 -0
- package/dist/policy-XQW5NUIE.js.map +1 -0
- package/dist/pr-H6GLOSXF.js +21 -0
- package/dist/pr-review-CK5FR6WX.js +17 -0
- package/dist/prd-4PWLCGH5.js +17 -0
- package/dist/review-QGVAHEZF.js +15 -0
- package/dist/review-QGVAHEZF.js.map +1 -0
- package/dist/{run-DIBC3YKX.js → run-DBF2VWUN.js} +26 -25
- package/dist/{run-DIBC3YKX.js.map → run-DBF2VWUN.js.map} +1 -1
- package/dist/{web-O2FVOYZW.js → web-ANQQTTRD.js} +5 -5
- package/package.json +1 -1
- package/prompts/analyze.md +24 -0
- package/prompts/execute.md +29 -1
- package/prompts/generate.md +61 -7
- package/prompts/plan.md +24 -1
- package/prompts/pr-review.md +65 -4
- package/prompts/pr.md +37 -3
- package/prompts/prd.md +17 -0
- package/prompts/review.md +40 -0
- package/dist/analyze-UZYJAWAP.js.map +0 -1
- package/dist/chunk-2LNQL4XH.js.map +0 -1
- package/dist/chunk-2Z7OEZZT.js.map +0 -1
- package/dist/chunk-67ZO5ROQ.js.map +0 -1
- package/dist/chunk-EWA3OGCM.js.map +0 -1
- package/dist/chunk-EZMOEBLU.js +0 -135
- package/dist/chunk-EZMOEBLU.js.map +0 -1
- package/dist/chunk-MXTGCD5C.js.map +0 -1
- package/dist/chunk-PPLIXZI5.js +0 -101
- package/dist/chunk-PPLIXZI5.js.map +0 -1
- package/dist/chunk-S67Q4I2O.js.map +0 -1
- package/dist/chunk-SLHZPB3C.js +0 -50
- package/dist/chunk-SLHZPB3C.js.map +0 -1
- package/dist/chunk-SP7DD4ID.js.map +0 -1
- package/dist/chunk-UH4KAJBJ.js.map +0 -1
- package/dist/chunk-V5OHFSW4.js.map +0 -1
- package/dist/chunk-VYFKOUUR.js.map +0 -1
- package/dist/execute-QYXA225W.js +0 -14
- package/dist/generate-TW6QKSW5.js.map +0 -1
- package/dist/init-G57UXKDG.js +0 -9
- package/dist/plan-YJLGBYBQ.js +0 -16
- package/dist/policy-NP4ZAVF6.js.map +0 -1
- package/dist/pr-V5H65MRW.js +0 -20
- package/dist/pr-review-RCMXKXVP.js +0 -16
- package/dist/prd-3XR5KYJS.js +0 -16
- package/dist/review-ZZG3CSUO.js +0 -14
- /package/dist/{chunk-UUY4PCWW.js.map → chunk-3BOHTH4V.js.map} +0 -0
- /package/dist/{config-YCF3HIKR.js.map → chunk-3D4A4B46.js.map} +0 -0
- /package/dist/{chunk-652DJBCN.js.map → chunk-GANSDJV7.js.map} +0 -0
- /package/dist/{chunk-VOKNTBOO.js.map → chunk-LVKQ2AKT.js.map} +0 -0
- /package/dist/{execute-QYXA225W.js.map → config-4THHOXNN.js.map} +0 -0
- /package/dist/{init-G57UXKDG.js.map → execute-5OEKLM5X.js.map} +0 -0
- /package/dist/{plan-YJLGBYBQ.js.map → init-PRMOTQ7N.js.map} +0 -0
- /package/dist/{pr-V5H65MRW.js.map → plan-Y2BYZD24.js.map} +0 -0
- /package/dist/{pr-review-RCMXKXVP.js.map → pr-H6GLOSXF.js.map} +0 -0
- /package/dist/{prd-3XR5KYJS.js.map → pr-review-CK5FR6WX.js.map} +0 -0
- /package/dist/{review-ZZG3CSUO.js.map → prd-4PWLCGH5.js.map} +0 -0
- /package/dist/{web-O2FVOYZW.js.map → web-ANQQTTRD.js.map} +0 -0
- /package/web/{CLAUDE.md → AGENTS.md} +0 -0
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import "./chunk-3D4A4B46.js";
|
|
3
|
+
import {
|
|
4
|
+
loadRepositoryPolicy
|
|
5
|
+
} from "./chunk-47VIN33V.js";
|
|
6
|
+
import "./chunk-VQ5VN7DF.js";
|
|
7
|
+
import {
|
|
8
|
+
printError,
|
|
9
|
+
printInfo,
|
|
10
|
+
printWarning
|
|
11
|
+
} from "./chunk-HC2MT7BX.js";
|
|
12
|
+
|
|
13
|
+
// src/commands/policy.ts
|
|
14
|
+
function groupSources(sources) {
|
|
15
|
+
const grouped = /* @__PURE__ */ new Map();
|
|
16
|
+
for (const source of sources) {
|
|
17
|
+
const bucket = grouped.get(source.kind);
|
|
18
|
+
if (bucket === void 0) {
|
|
19
|
+
grouped.set(source.kind, [source]);
|
|
20
|
+
} else {
|
|
21
|
+
bucket.push(source);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return grouped;
|
|
25
|
+
}
|
|
26
|
+
function describeSource(source) {
|
|
27
|
+
const where = source.path ?? source.origin;
|
|
28
|
+
const detail = source.detail === null ? "" : ` \u2014 ${source.detail}`;
|
|
29
|
+
return `${source.status === "found" ? "" : `[${source.status}] `}${where}${detail}`;
|
|
30
|
+
}
|
|
31
|
+
function render(policy) {
|
|
32
|
+
const lines = [];
|
|
33
|
+
const push = (line = "") => {
|
|
34
|
+
lines.push(line);
|
|
35
|
+
};
|
|
36
|
+
push(`Repository: ${policy.root}`);
|
|
37
|
+
push(`Scope: ${policy.scope ?? "(root)"}`);
|
|
38
|
+
if (!policy.enabled) {
|
|
39
|
+
push();
|
|
40
|
+
push("Policy discovery is disabled (policy.enabled = false).");
|
|
41
|
+
console.log(lines.join("\n"));
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
push();
|
|
45
|
+
push("Issues");
|
|
46
|
+
push(` templates: ${policy.issues.templates.length}`);
|
|
47
|
+
for (const template of policy.issues.templates) {
|
|
48
|
+
const labels = template.labels.length > 0 ? ` labels=[${template.labels.join(", ")}]` : "";
|
|
49
|
+
const type = template.type === null ? "" : ` type=${template.type}`;
|
|
50
|
+
push(` - ${template.path} (${template.format}, ${template.origin})${type}${labels}`);
|
|
51
|
+
}
|
|
52
|
+
push(` types: ${policy.issues.types.length > 0 ? policy.issues.types.join(", ") : "(none)"}`);
|
|
53
|
+
push(` labels: ${policy.issues.labels.length}`);
|
|
54
|
+
for (const label of policy.issues.labels) {
|
|
55
|
+
push(` - ${label.name}${label.description === null ? "" : ` \u2014 ${label.description}`}`);
|
|
56
|
+
}
|
|
57
|
+
push(` titleConvention: ${policy.issues.titleConvention ?? "(none)"}`);
|
|
58
|
+
push();
|
|
59
|
+
push("Pull Requests");
|
|
60
|
+
push(` template: ${policy.pullRequests.templates[0]?.path ?? "(none)"}`);
|
|
61
|
+
for (const template of policy.pullRequests.templates.slice(1)) {
|
|
62
|
+
push(` - ${template.path}`);
|
|
63
|
+
}
|
|
64
|
+
push(` baseBranch: ${policy.pullRequests.baseBranch ?? "(none)"}`);
|
|
65
|
+
push(` titleConvention: ${policy.pullRequests.titleConvention ?? "(none)"}`);
|
|
66
|
+
push();
|
|
67
|
+
push("Git");
|
|
68
|
+
push(` branchConvention: ${policy.git.branchConvention ?? "(none)"}`);
|
|
69
|
+
push(` commitConvention: ${policy.git.commitConvention ?? "(none)"}`);
|
|
70
|
+
push();
|
|
71
|
+
push(`Documents: ${policy.docs.length}`);
|
|
72
|
+
for (const doc of policy.docs) {
|
|
73
|
+
const scope = doc.scope === "" ? "root" : doc.scope;
|
|
74
|
+
const from = doc.referencedFrom === null ? "" : ` \u2190 ${doc.referencedFrom}`;
|
|
75
|
+
push(` - ${doc.path} (${doc.kind}, scope=${scope})${from}`);
|
|
76
|
+
}
|
|
77
|
+
push();
|
|
78
|
+
push(`CODEOWNERS: ${policy.codeowners === null ? "(none)" : "found"}`);
|
|
79
|
+
push();
|
|
80
|
+
push("Sources");
|
|
81
|
+
for (const [kind, entries] of groupSources(policy.sources)) {
|
|
82
|
+
push(` ${kind}`);
|
|
83
|
+
for (const entry of entries) {
|
|
84
|
+
push(` - ${describeSource(entry)}`);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
console.log(lines.join("\n"));
|
|
88
|
+
}
|
|
89
|
+
async function runPolicy(options = {}) {
|
|
90
|
+
let policy;
|
|
91
|
+
try {
|
|
92
|
+
policy = await loadRepositoryPolicy({ scope: options.scope ?? null });
|
|
93
|
+
} catch (err) {
|
|
94
|
+
printError(err instanceof Error ? err.message : String(err));
|
|
95
|
+
return 1;
|
|
96
|
+
}
|
|
97
|
+
if (options.json === true) {
|
|
98
|
+
console.log(JSON.stringify(policy, null, 2));
|
|
99
|
+
return 0;
|
|
100
|
+
}
|
|
101
|
+
render(policy);
|
|
102
|
+
const unavailable = policy.sources.filter((source) => source.status === "unavailable");
|
|
103
|
+
if (unavailable.length > 0) {
|
|
104
|
+
console.log("");
|
|
105
|
+
printWarning(
|
|
106
|
+
`${unavailable.length} source(s) could not be consulted; the policy above is incomplete.`
|
|
107
|
+
);
|
|
108
|
+
} else if (policy.sources.length === 0) {
|
|
109
|
+
console.log("");
|
|
110
|
+
printInfo("This repository declares no policy sources; Issue Flow defaults apply.");
|
|
111
|
+
}
|
|
112
|
+
return 0;
|
|
113
|
+
}
|
|
114
|
+
export {
|
|
115
|
+
runPolicy
|
|
116
|
+
};
|
|
117
|
+
//# sourceMappingURL=policy-XQW5NUIE.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\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('This repository declares no policy sources; Issue Flow defaults apply.');\n }\n\n return 0;\n}\n"],"mappings":";;;;;;;;;;;;;AAgCA,SAAS,aAAa,SAAoE;AACxF,QAAM,UAAU,oBAAI,IAA0C;AAC9D,aAAW,UAAU,SAAS;AAC5B,UAAM,SAAS,QAAQ,IAAI,OAAO,IAAI;AACtC,QAAI,WAAW,QAAW;AACxB,cAAQ,IAAI,OAAO,MAAM,CAAC,MAAM,CAAC;AAAA,IACnC,OAAO;AACL,aAAO,KAAK,MAAM;AAAA,IACpB;AAAA,EACF;AACA,SAAO;AACT;AAEA,SAAS,eAAe,QAA8B;AACpD,QAAM,QAAQ,OAAO,QAAQ,OAAO;AACpC,QAAM,SAAS,OAAO,WAAW,OAAO,KAAK,WAAM,OAAO,MAAM;AAChE,SAAO,GAAG,OAAO,WAAW,UAAU,KAAK,IAAI,OAAO,MAAM,IAAI,GAAG,KAAK,GAAG,MAAM;AACnF;AAUA,SAAS,OAAO,QAAgC;AAC9C,QAAM,QAAkB,CAAC;AACzB,QAAM,OAAO,CAAC,OAAO,OAAa;AAChC,UAAM,KAAK,IAAI;AAAA,EACjB;AAEA,OAAK,eAAe,OAAO,IAAI,EAAE;AACjC,OAAK,eAAe,OAAO,SAAS,QAAQ,EAAE;AAC9C,MAAI,CAAC,OAAO,SAAS;AACnB,SAAK;AACL,SAAK,wDAAw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F;AAEA,SAAO;AACT;","names":[]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
issueClosesLines,
|
|
4
|
+
multiIssueContext,
|
|
5
|
+
runPr
|
|
6
|
+
} from "./chunk-BXCPXRBR.js";
|
|
7
|
+
import "./chunk-3BOHTH4V.js";
|
|
8
|
+
import "./chunk-AAY6KM7N.js";
|
|
9
|
+
import "./chunk-EWDJENFW.js";
|
|
10
|
+
import "./chunk-HDV3YDTG.js";
|
|
11
|
+
import "./chunk-OBLVLIUS.js";
|
|
12
|
+
import "./chunk-HQYXVIH6.js";
|
|
13
|
+
import "./chunk-47VIN33V.js";
|
|
14
|
+
import "./chunk-VQ5VN7DF.js";
|
|
15
|
+
import "./chunk-HC2MT7BX.js";
|
|
16
|
+
export {
|
|
17
|
+
issueClosesLines,
|
|
18
|
+
multiIssueContext,
|
|
19
|
+
runPr
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=pr-H6GLOSXF.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
exitCodeFor,
|
|
4
|
+
runPrReview
|
|
5
|
+
} from "./chunk-KQ4JQN7T.js";
|
|
6
|
+
import "./chunk-LVKQ2AKT.js";
|
|
7
|
+
import "./chunk-EWDJENFW.js";
|
|
8
|
+
import "./chunk-OBLVLIUS.js";
|
|
9
|
+
import "./chunk-HQYXVIH6.js";
|
|
10
|
+
import "./chunk-47VIN33V.js";
|
|
11
|
+
import "./chunk-VQ5VN7DF.js";
|
|
12
|
+
import "./chunk-HC2MT7BX.js";
|
|
13
|
+
export {
|
|
14
|
+
exitCodeFor,
|
|
15
|
+
runPrReview
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=pr-review-CK5FR6WX.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
runPrd
|
|
4
|
+
} from "./chunk-IVHZEYAX.js";
|
|
5
|
+
import "./chunk-3BOHTH4V.js";
|
|
6
|
+
import "./chunk-AAY6KM7N.js";
|
|
7
|
+
import "./chunk-EWDJENFW.js";
|
|
8
|
+
import "./chunk-HDV3YDTG.js";
|
|
9
|
+
import "./chunk-OBLVLIUS.js";
|
|
10
|
+
import "./chunk-HQYXVIH6.js";
|
|
11
|
+
import "./chunk-47VIN33V.js";
|
|
12
|
+
import "./chunk-VQ5VN7DF.js";
|
|
13
|
+
import "./chunk-HC2MT7BX.js";
|
|
14
|
+
export {
|
|
15
|
+
runPrd
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=prd-4PWLCGH5.js.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
runReview
|
|
4
|
+
} from "./chunk-34WNTK3K.js";
|
|
5
|
+
import "./chunk-AAY6KM7N.js";
|
|
6
|
+
import "./chunk-EWDJENFW.js";
|
|
7
|
+
import "./chunk-OBLVLIUS.js";
|
|
8
|
+
import "./chunk-HQYXVIH6.js";
|
|
9
|
+
import "./chunk-47VIN33V.js";
|
|
10
|
+
import "./chunk-VQ5VN7DF.js";
|
|
11
|
+
import "./chunk-HC2MT7BX.js";
|
|
12
|
+
export {
|
|
13
|
+
runReview
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=review-QGVAHEZF.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,51 +1,52 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
mostRecent,
|
|
4
|
+
prReviewDir,
|
|
5
|
+
readPrReviewIndex,
|
|
6
|
+
runPrReview
|
|
7
|
+
} from "./chunk-KQ4JQN7T.js";
|
|
2
8
|
import {
|
|
3
9
|
runPrd
|
|
4
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-IVHZEYAX.js";
|
|
5
11
|
import {
|
|
6
12
|
runReview
|
|
7
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-34WNTK3K.js";
|
|
8
14
|
import {
|
|
9
15
|
ensureWebMonitor
|
|
10
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-GANSDJV7.js";
|
|
11
17
|
import {
|
|
12
18
|
runInit
|
|
13
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-RKTEV6EG.js";
|
|
14
20
|
import {
|
|
15
21
|
printQueueSummary,
|
|
16
22
|
printRunSummary,
|
|
17
23
|
runExecute
|
|
18
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-6N7LZZ5U.js";
|
|
25
|
+
import {
|
|
26
|
+
listPullRequests,
|
|
27
|
+
publishGitState
|
|
28
|
+
} from "./chunk-LVKQ2AKT.js";
|
|
19
29
|
import {
|
|
20
30
|
runPlan
|
|
21
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-EY6WMHV2.js";
|
|
22
32
|
import {
|
|
23
33
|
runPr
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import "./chunk-
|
|
34
|
+
} from "./chunk-BXCPXRBR.js";
|
|
35
|
+
import "./chunk-3BOHTH4V.js";
|
|
26
36
|
import {
|
|
27
37
|
emptyRelations,
|
|
28
38
|
getProvider,
|
|
29
39
|
resolveCommandIssue,
|
|
30
40
|
uniqueIds
|
|
31
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-AAY6KM7N.js";
|
|
42
|
+
import "./chunk-EWDJENFW.js";
|
|
32
43
|
import "./chunk-HDV3YDTG.js";
|
|
33
|
-
import {
|
|
34
|
-
mostRecent,
|
|
35
|
-
prReviewDir,
|
|
36
|
-
readPrReviewIndex,
|
|
37
|
-
runPrReview
|
|
38
|
-
} from "./chunk-EWA3OGCM.js";
|
|
39
|
-
import {
|
|
40
|
-
listPullRequests,
|
|
41
|
-
publishGitState
|
|
42
|
-
} from "./chunk-VOKNTBOO.js";
|
|
43
|
-
import "./chunk-MXTGCD5C.js";
|
|
44
44
|
import {
|
|
45
45
|
beginUsageScope,
|
|
46
46
|
getRunUsageTotals
|
|
47
|
-
} from "./chunk-
|
|
48
|
-
import "./chunk-
|
|
47
|
+
} from "./chunk-OBLVLIUS.js";
|
|
48
|
+
import "./chunk-HQYXVIH6.js";
|
|
49
|
+
import "./chunk-47VIN33V.js";
|
|
49
50
|
import {
|
|
50
51
|
executionPlanSchema,
|
|
51
52
|
loadIssuesConfig,
|
|
@@ -53,7 +54,7 @@ import {
|
|
|
53
54
|
resolveIssuePaths,
|
|
54
55
|
resolveProjectPaths,
|
|
55
56
|
resolveQueuePaths
|
|
56
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-VQ5VN7DF.js";
|
|
57
58
|
import {
|
|
58
59
|
FilePublisher,
|
|
59
60
|
NullPublisher,
|
|
@@ -70,7 +71,7 @@ import {
|
|
|
70
71
|
setStoryStageCallback,
|
|
71
72
|
setStoryUpdateCallback,
|
|
72
73
|
writeFileAtomic
|
|
73
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-HC2MT7BX.js";
|
|
74
75
|
|
|
75
76
|
// src/commands/run.ts
|
|
76
77
|
import { randomUUID } from "crypto";
|
|
@@ -1857,4 +1858,4 @@ export {
|
|
|
1857
1858
|
publishStorySeed,
|
|
1858
1859
|
runPipeline
|
|
1859
1860
|
};
|
|
1860
|
-
//# sourceMappingURL=run-
|
|
1861
|
+
//# sourceMappingURL=run-DBF2VWUN.js.map
|