@staff0rd/assist 0.149.4 → 0.149.5

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 +6 -1
  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.149.4",
9
+ version: "0.149.5",
10
10
  type: "module",
11
11
  main: "dist/index.js",
12
12
  bin: {
@@ -2593,6 +2593,11 @@ function phaseDone(id, phase) {
2593
2593
  completedAt: (/* @__PURE__ */ new Date()).toISOString()
2594
2594
  })
2595
2595
  );
2596
+ const result = loadAndFindItem(id);
2597
+ if (result?.item.status === "done") {
2598
+ console.log(chalk29.dim(`Item #${id} already done, skipping phase advance.`));
2599
+ return;
2600
+ }
2596
2601
  setCurrentPhase(id, phaseIndex + 1);
2597
2602
  console.log(chalk29.green(`Phase ${phase} of item #${id} marked as complete.`));
2598
2603
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staff0rd/assist",
3
- "version": "0.149.4",
3
+ "version": "0.149.5",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {