pi-gsd 2.0.11 → 2.0.13
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 +9 -0
- package/dist/pi-gsd-tools.js +84 -82
- package/package.json +1 -1
package/dist/pi-gsd-hooks.js
CHANGED
|
@@ -1263,7 +1263,14 @@ Run: pi-gsd-tools harness update [y|n|pick|diff]`,
|
|
|
1263
1263
|
}
|
|
1264
1264
|
return lines;
|
|
1265
1265
|
};
|
|
1266
|
+
const reconcile = (cwd) => {
|
|
1267
|
+
try {
|
|
1268
|
+
runJson("state reconcile", cwd);
|
|
1269
|
+
} catch {
|
|
1270
|
+
}
|
|
1271
|
+
};
|
|
1266
1272
|
const formatProgress = (cwd) => {
|
|
1273
|
+
reconcile(cwd);
|
|
1267
1274
|
const data = runJson("progress json", cwd);
|
|
1268
1275
|
if (!data)
|
|
1269
1276
|
return {
|
|
@@ -1289,6 +1296,7 @@ Run: pi-gsd-tools harness update [y|n|pick|diff]`,
|
|
|
1289
1296
|
return { text: lines.join("\n"), data };
|
|
1290
1297
|
};
|
|
1291
1298
|
const formatStats = (cwd) => {
|
|
1299
|
+
reconcile(cwd);
|
|
1292
1300
|
const data = runJson("stats json", cwd);
|
|
1293
1301
|
if (!data)
|
|
1294
1302
|
return {
|
|
@@ -1397,6 +1405,7 @@ Run: pi-gsd-tools harness update [y|n|pick|diff]`,
|
|
|
1397
1405
|
pi.registerCommand("gsd-next", {
|
|
1398
1406
|
description: "Auto-advance to the next GSD action (instant, no LLM)",
|
|
1399
1407
|
handler: async (_args, ctx) => {
|
|
1408
|
+
reconcile(ctx.cwd);
|
|
1400
1409
|
const data = runJson("progress json", ctx.cwd);
|
|
1401
1410
|
if (!data) {
|
|
1402
1411
|
ctx.ui.notify(
|