@tritard/waterbrother 0.14.7 → 0.14.8
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 +5 -5
package/package.json
CHANGED
package/src/cli.js
CHANGED
|
@@ -5164,8 +5164,8 @@ Be concrete about surfaces — name actual pages/flows. Choose the best stack fo
|
|
|
5164
5164
|
const planned = product.surfaces.filter((s) => s.status === "planned").map((s) => s.name);
|
|
5165
5165
|
|
|
5166
5166
|
const spinner = createProgressSpinner("building product...");
|
|
5167
|
+
const prevAutonomy = agent.toolRuntime.getAutonomyMode();
|
|
5167
5168
|
try {
|
|
5168
|
-
const prevAutonomy = agent.toolRuntime.getAutonomyMode();
|
|
5169
5169
|
agent.toolRuntime.setAutonomyMode("auto");
|
|
5170
5170
|
|
|
5171
5171
|
// Phase 1: Scaffold foundation (package.json, config, shared components)
|
|
@@ -5284,8 +5284,8 @@ Be concrete about surfaces — name actual pages/flows. Choose the best stack fo
|
|
|
5284
5284
|
}
|
|
5285
5285
|
|
|
5286
5286
|
const spinner = createProgressSpinner(`deploying to ${deployTarget}...`);
|
|
5287
|
+
const prevAutonomy = agent.toolRuntime.getAutonomyMode();
|
|
5287
5288
|
try {
|
|
5288
|
-
const prevAutonomy = agent.toolRuntime.getAutonomyMode();
|
|
5289
5289
|
agent.toolRuntime.setAutonomyMode("auto");
|
|
5290
5290
|
await agent.runTurn(
|
|
5291
5291
|
`Deploy this project to ${deployTarget}. Run the necessary CLI commands (e.g. vercel, netlify deploy, gh-pages). If not set up, initialize it first.`,
|
|
@@ -5310,9 +5310,9 @@ Be concrete about surfaces — name actual pages/flows. Choose the best stack fo
|
|
|
5310
5310
|
// Only handle product fixes when no task is active — otherwise let router handle "fix these" for task reviews
|
|
5311
5311
|
if (context.runtime.pendingInitiatives?.length > 0) {
|
|
5312
5312
|
const spinner = createProgressSpinner("fixing product gaps...");
|
|
5313
|
+
const prevAutonomy = agent.toolRuntime.getAutonomyMode();
|
|
5313
5314
|
try {
|
|
5314
5315
|
const fixPrompt = buildInitiativeFixPrompt(context.runtime.pendingInitiatives);
|
|
5315
|
-
const prevAutonomy = agent.toolRuntime.getAutonomyMode();
|
|
5316
5316
|
agent.toolRuntime.setAutonomyMode("auto");
|
|
5317
5317
|
const productCtx = buildProductContext(product);
|
|
5318
5318
|
await agent.runTurn(`${productCtx}\n\n${fixPrompt}`, {
|
|
@@ -5334,11 +5334,11 @@ Be concrete about surfaces — name actual pages/flows. Choose the best stack fo
|
|
|
5334
5334
|
|
|
5335
5335
|
if (/^(fix these|fix quality|fix issues|fix the issues|fix it|fix everything|fix all)$/.test(lower) && !context.runtime.activeTask) {
|
|
5336
5336
|
const spinner = createProgressSpinner("fixing quality issues...");
|
|
5337
|
+
const prevAutonomy = agent.toolRuntime.getAutonomyMode();
|
|
5337
5338
|
try {
|
|
5338
5339
|
const findings = await runQualityChecks({ cwd: context.cwd });
|
|
5339
5340
|
const fixPrompt = buildQualityFixPrompt(findings);
|
|
5340
5341
|
if (!fixPrompt) { spinner.stop(); console.log("no quality issues to fix"); return true; }
|
|
5341
|
-
const prevAutonomy = agent.toolRuntime.getAutonomyMode();
|
|
5342
5342
|
agent.toolRuntime.setAutonomyMode("auto");
|
|
5343
5343
|
const productCtx = buildProductContext(product);
|
|
5344
5344
|
await agent.runTurn(`${productCtx}\n\n${fixPrompt}`, {
|
|
@@ -5366,6 +5366,7 @@ Be concrete about surfaces — name actual pages/flows. Choose the best stack fo
|
|
|
5366
5366
|
const isRefinement = !isNewProduct && !isWorkRequest && /\b(make|change|update|prettier|simpler|bigger|smaller|darker|lighter|color|font|style|dark\s*mode|light\s*mode|resize|move|header|footer|nav|button|logo|image|background|padding|margin|spacing|border|rounded|shadow|gradient|animation|hover|responsive|mobile|desktop|center|align|layout)\b/i.test(lower);
|
|
5367
5367
|
if (isRefinement) {
|
|
5368
5368
|
const spinner = createProgressSpinner("refining...");
|
|
5369
|
+
const prevAutonomy = agent.toolRuntime.getAutonomyMode();
|
|
5369
5370
|
try {
|
|
5370
5371
|
const productCtx = buildProductContext(product);
|
|
5371
5372
|
|
|
@@ -5377,7 +5378,6 @@ Be concrete about surfaces — name actual pages/flows. Choose the best stack fo
|
|
|
5377
5378
|
await saveProduct(context.cwd, product);
|
|
5378
5379
|
}
|
|
5379
5380
|
|
|
5380
|
-
const prevAutonomy = agent.toolRuntime.getAutonomyMode();
|
|
5381
5381
|
agent.toolRuntime.setAutonomyMode("auto");
|
|
5382
5382
|
await agent.runTurn(
|
|
5383
5383
|
`${productCtx}\n\nRefine the product: ${line}\n\nMake the change while keeping the existing product quality and style consistent.`,
|