pi-gsd 2.1.2 → 2.1.4
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/pi-gsd-hooks.js +10 -4
- package/dist/pi-gsd-tools.js +52 -52
- package/package.json +1 -1
package/dist/pi-gsd-hooks.js
CHANGED
|
@@ -1368,7 +1368,7 @@ Run: pi-gsd-tools harness update [y|n|pick|diff]`,
|
|
|
1368
1368
|
);
|
|
1369
1369
|
if (!data)
|
|
1370
1370
|
return "\u274C No GSD project found. Run /gsd-new-project to initialise.";
|
|
1371
|
-
const icon = data.status === "
|
|
1371
|
+
const icon = data.status === "healthy" ? "\u2705" : data.status === "broken" ? "\u274C" : "\u26A0\uFE0F";
|
|
1372
1372
|
const lines = [
|
|
1373
1373
|
`\u2501\u2501 GSD Health \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501`,
|
|
1374
1374
|
`${icon} Status: ${data.status.toUpperCase()}`
|
|
@@ -1377,7 +1377,7 @@ Run: pi-gsd-tools harness update [y|n|pick|diff]`,
|
|
|
1377
1377
|
lines.push(``, `Errors (${data.errors.length}):`);
|
|
1378
1378
|
for (const e of data.errors) {
|
|
1379
1379
|
lines.push(` \u2717 [${e.code}] ${e.message}`);
|
|
1380
|
-
if (e.
|
|
1380
|
+
if (e.fix) lines.push(` fix: ${e.fix}`);
|
|
1381
1381
|
}
|
|
1382
1382
|
}
|
|
1383
1383
|
if (data.warnings?.length) {
|
|
@@ -1386,8 +1386,14 @@ Run: pi-gsd-tools harness update [y|n|pick|diff]`,
|
|
|
1386
1386
|
lines.push(` \u26A0 [${w.code}] ${w.message}`);
|
|
1387
1387
|
}
|
|
1388
1388
|
}
|
|
1389
|
-
if (data.
|
|
1390
|
-
lines.push(``, `
|
|
1389
|
+
if (data.repairs_performed?.length) {
|
|
1390
|
+
lines.push(``, `Repairs performed (${data.repairs_performed.length}):`);
|
|
1391
|
+
for (const r of data.repairs_performed) {
|
|
1392
|
+
lines.push(` ${r.success ? "\u2713" : "\u2717"} ${r.action}${r.path ? ` \u2192 ${r.path}` : ""}${r.error ? `: ${r.error}` : ""}`);
|
|
1393
|
+
}
|
|
1394
|
+
}
|
|
1395
|
+
if (data.status !== "healthy" && !repair && (data.repairable_count ?? 0) > 0) {
|
|
1396
|
+
lines.push(``, ` \u2192 /gsd-health --repair Auto-fix ${data.repairable_count} issue(s)`);
|
|
1391
1397
|
}
|
|
1392
1398
|
lines.push(``, `\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501`);
|
|
1393
1399
|
return lines.join("\n");
|