@staff0rd/assist 0.141.0 → 0.141.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.
Files changed (2) hide show
  1. package/dist/index.js +4 -3
  2. 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.141.0",
9
+ version: "0.141.1",
10
10
  type: "module",
11
11
  main: "dist/index.js",
12
12
  bin: {
@@ -2817,16 +2817,16 @@ async function run2(id) {
2817
2817
  const { item } = result;
2818
2818
  const plan2 = validatePlan(item);
2819
2819
  if (!plan2) return;
2820
- setStatus(id, "in-progress");
2821
2820
  const startPhase = item.currentPhase ?? 0;
2822
2821
  if (startPhase >= plan2.length) {
2823
- setStatus(id, "done");
2822
+ if (item.status !== "done") setStatus(id, "done");
2824
2823
  console.log(
2825
2824
  chalk35.green(`All phases already complete for #${id}: ${item.name}`)
2826
2825
  );
2827
2826
  console.log(chalk35.dim("Review the changes, then use /commit when ready."));
2828
2827
  return;
2829
2828
  }
2829
+ setStatus(id, "in-progress");
2830
2830
  console.log(chalk35.bold(`Running plan for #${id}: ${item.name}`));
2831
2831
  if (startPhase > 0) {
2832
2832
  console.log(
@@ -2842,6 +2842,7 @@ async function run2(id) {
2842
2842
  phaseIndex = await executePhase(item, phaseIndex, plan2);
2843
2843
  if (phaseIndex < 0) return;
2844
2844
  }
2845
+ setStatus(id, "done");
2845
2846
  console.log(chalk35.green(`
2846
2847
  All phases complete for #${id}: ${item.name}`));
2847
2848
  console.log(chalk35.dim("Review the changes, then use /commit when ready."));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staff0rd/assist",
3
- "version": "0.141.0",
3
+ "version": "0.141.1",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {