@staff0rd/assist 0.153.0 → 0.154.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/dist/index.js +14 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { Command } from "commander";
|
|
|
6
6
|
// package.json
|
|
7
7
|
var package_default = {
|
|
8
8
|
name: "@staff0rd/assist",
|
|
9
|
-
version: "0.
|
|
9
|
+
version: "0.154.1",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -269,7 +269,7 @@ function buildAuthoredPhasePrompt(item, phaseIndex, phase) {
|
|
|
269
269
|
...buildManualCheckLines(manualChecks),
|
|
270
270
|
"",
|
|
271
271
|
`You can run \`assist backlog comments ${item.id}\` to read prior phase notes and comments.`,
|
|
272
|
-
`
|
|
272
|
+
`Post concise comments for any notable findings or changes using \`assist backlog comment ${item.id} "<text>"\`.`,
|
|
273
273
|
"",
|
|
274
274
|
`Once verify passes${confirmSuffix}, run: assist backlog phase-done ${item.id} ${phaseIndex} "<summary>"`,
|
|
275
275
|
"Replace <summary> with a concise summary of what was done in this phase."
|
|
@@ -326,7 +326,7 @@ function buildReviewPrompt(item, phaseIndex) {
|
|
|
326
326
|
"If any criterion fails, fix the issue and re-verify before proceeding.",
|
|
327
327
|
"",
|
|
328
328
|
`You can run \`assist backlog comments ${item.id}\` to read prior phase notes and comments.`,
|
|
329
|
-
`
|
|
329
|
+
`Post concise comments for any notable findings or changes using \`assist backlog comment ${item.id} "<text>"\`.`,
|
|
330
330
|
"",
|
|
331
331
|
"After all criteria pass, ask the user to confirm any manual checks",
|
|
332
332
|
"(e.g. end-to-end behaviour they need to verify themselves).",
|
|
@@ -425,14 +425,14 @@ function phaseDone(id, phase, summary) {
|
|
|
425
425
|
})
|
|
426
426
|
);
|
|
427
427
|
const result = loadAndFindItem(id);
|
|
428
|
-
if (result?.item.status === "done") {
|
|
429
|
-
console.log(chalk5.dim(`Item #${id} already done, skipping phase advance.`));
|
|
430
|
-
return;
|
|
431
|
-
}
|
|
432
428
|
if (result) {
|
|
433
429
|
addPhaseSummary(result.item, summary, phaseIndex);
|
|
434
430
|
saveBacklog(result.items);
|
|
435
431
|
}
|
|
432
|
+
if (result?.item.status === "done") {
|
|
433
|
+
console.log(chalk5.dim(`Item #${id} already done, skipping phase advance.`));
|
|
434
|
+
return;
|
|
435
|
+
}
|
|
436
436
|
setCurrentPhase(id, phaseIndex + 1);
|
|
437
437
|
console.log(chalk5.green(`Phase ${phase} of item #${id} marked as complete.`));
|
|
438
438
|
}
|
|
@@ -555,7 +555,7 @@ async function run(id, spawnOptions) {
|
|
|
555
555
|
logProgress(id, item.name, startPhase, plan2.length);
|
|
556
556
|
if (!await runPhases(item, startPhase, plan2, spawnOptions)) return;
|
|
557
557
|
if (!await runReview(item, plan2, spawnOptions)) return;
|
|
558
|
-
|
|
558
|
+
ensureDone(id);
|
|
559
559
|
console.log(chalk9.green(`
|
|
560
560
|
All phases complete for #${id}: ${item.name}`));
|
|
561
561
|
}
|
|
@@ -569,6 +569,12 @@ function logProgress(id, name, startPhase, total) {
|
|
|
569
569
|
`));
|
|
570
570
|
}
|
|
571
571
|
}
|
|
572
|
+
function ensureDone(id) {
|
|
573
|
+
try {
|
|
574
|
+
setStatus(id, "done");
|
|
575
|
+
} catch {
|
|
576
|
+
}
|
|
577
|
+
}
|
|
572
578
|
async function runPhases(item, startPhase, plan2, spawnOptions) {
|
|
573
579
|
let phaseIndex = startPhase;
|
|
574
580
|
while (phaseIndex < plan2.length) {
|