@staff0rd/assist 0.149.3 → 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.
- package/dist/index.js +8 -1
- 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.
|
|
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
|
}
|
|
@@ -3456,6 +3461,8 @@ function groupByOperator(tokens) {
|
|
|
3456
3461
|
if (op === void 0) {
|
|
3457
3462
|
if (typeof token !== "string") return void 0;
|
|
3458
3463
|
groups[groups.length - 1].push(token);
|
|
3464
|
+
} else if (op === "glob") {
|
|
3465
|
+
groups[groups.length - 1].push(token.pattern);
|
|
3459
3466
|
} else if (SEPARATOR_OPS.has(op)) {
|
|
3460
3467
|
groups.push([]);
|
|
3461
3468
|
} else if (UNSAFE_OPS.has(op)) {
|