@tritard/waterbrother 0.12.3 → 0.12.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/package.json +1 -1
- package/src/cli.js +21 -1
package/package.json
CHANGED
package/src/cli.js
CHANGED
|
@@ -5462,7 +5462,27 @@ Be concrete about surfaces — name actual pages/flows. Choose the best stack fo
|
|
|
5462
5462
|
} : null
|
|
5463
5463
|
})
|
|
5464
5464
|
);
|
|
5465
|
-
if (!line)
|
|
5465
|
+
if (!line) {
|
|
5466
|
+
// Empty Enter — show current state
|
|
5467
|
+
const product = context.runtime.product;
|
|
5468
|
+
const task = context.runtime.activeTask;
|
|
5469
|
+
if (product) {
|
|
5470
|
+
const built = product.surfaces.filter((s) => s.status === "built");
|
|
5471
|
+
const planned = product.surfaces.filter((s) => s.status === "planned");
|
|
5472
|
+
if (built.length > 0) {
|
|
5473
|
+
console.log(dim(`${product.name} — ${built.length} built, ${planned.length} planned`));
|
|
5474
|
+
console.log(dim(" refine · add feature · deploy · show surfaces"));
|
|
5475
|
+
} else if (planned.length > 0) {
|
|
5476
|
+
console.log(dim(`${product.name} — ${planned.length} surfaces planned`));
|
|
5477
|
+
console.log(dim(" build · adjust · show surfaces"));
|
|
5478
|
+
}
|
|
5479
|
+
} else if (task) {
|
|
5480
|
+
updatePanel();
|
|
5481
|
+
} else {
|
|
5482
|
+
console.log(dim("type what you want to build, or /help for commands"));
|
|
5483
|
+
}
|
|
5484
|
+
continue;
|
|
5485
|
+
}
|
|
5466
5486
|
|
|
5467
5487
|
const lowerLine = line.toLowerCase();
|
|
5468
5488
|
if (lowerLine === "/exit" || lowerLine === "/quit" || lowerLine.startsWith("/exit ") || lowerLine.startsWith("/quit ")) {
|