@tritard/waterbrother 0.14.11 → 0.14.12

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/cli.js +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tritard/waterbrother",
3
- "version": "0.14.11",
3
+ "version": "0.14.12",
4
4
  "description": "Waterbrother: Grok-powered coding CLI with local tools, sessions, operator modes, and approval controls",
5
5
  "type": "module",
6
6
  "bin": {
package/src/cli.js CHANGED
@@ -5158,6 +5158,7 @@ Be concrete about surfaces — name actual pages/flows. Choose the best stack fo
5158
5158
  if (product) {
5159
5159
  context.runtime.product = product;
5160
5160
  const lower = line.trim().toLowerCase();
5161
+ const lowerClean = lower.replace(/[.!?,;:]+$/, "");
5161
5162
 
5162
5163
  const plannedSurfaceCount = product.surfaces.filter((s) => s.status === "planned").length;
5163
5164
  if (isBuilderExecutionRequest(line, { hasPlannedSurfaces: plannedSurfaceCount > 0 })) {
@@ -5307,7 +5308,7 @@ Be concrete about surfaces — name actual pages/flows. Choose the best stack fo
5307
5308
  }
5308
5309
 
5309
5310
  // Refine: natural language changes to a built product
5310
- if (/^(fix these|fix quality|fix initiatives|fix product|fix issues|fix the issues|fix it|fix everything|fix all)$/.test(lower) && !context.runtime.activeTask) {
5311
+ if (/^(fix these|fix quality|fix initiatives|fix product|fix issues|fix the issues|fix it|fix everything|fix all)$/.test(lowerClean) && !context.runtime.activeTask) {
5311
5312
  // Only handle product fixes when no task is active — otherwise let router handle "fix these" for task reviews
5312
5313
  if (context.runtime.pendingInitiatives?.length > 0) {
5313
5314
  const spinner = createProgressSpinner("fixing product gaps...");
@@ -5333,7 +5334,7 @@ Be concrete about surfaces — name actual pages/flows. Choose the best stack fo
5333
5334
  }
5334
5335
  }
5335
5336
 
5336
- if (/^(fix these|fix quality|fix issues|fix the issues|fix it|fix everything|fix all)$/.test(lower) && !context.runtime.activeTask) {
5337
+ if (/^(fix these|fix quality|fix issues|fix the issues|fix it|fix everything|fix all)$/.test(lowerClean) && !context.runtime.activeTask) {
5337
5338
  const spinner = createProgressSpinner("fixing quality issues...");
5338
5339
  const prevAutonomy = agent.toolRuntime.getAutonomyMode();
5339
5340
  try {