@tritard/waterbrother 0.15.7 → 0.15.9

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 +20 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tritard/waterbrother",
3
- "version": "0.15.7",
3
+ "version": "0.15.9",
4
4
  "description": "Waterbrother: bring-your-own-model coding CLI with local tools, sessions, operator modes, and approval controls",
5
5
  "type": "module",
6
6
  "bin": {
package/src/cli.js CHANGED
@@ -6264,6 +6264,21 @@ Be concrete about surfaces — name actual pages/flows. Choose the best stack fo
6264
6264
  }
6265
6265
 
6266
6266
  const lowerLine = line.toLowerCase();
6267
+ if (/^gateway\b/.test(lowerLine)) {
6268
+ console.log("That looks like a shell subcommand. Run it in your terminal, not at the you> prompt.");
6269
+ console.log(dim("inside Waterbrother use /gateway; from your shell use `waterbrother gateway ...`"));
6270
+ continue;
6271
+ }
6272
+ if (/^channels\b/.test(lowerLine)) {
6273
+ console.log("That looks like a shell subcommand. Run it in your terminal, not at the you> prompt.");
6274
+ console.log(dim("inside Waterbrother use /channels; from your shell use `waterbrother channels ...`"));
6275
+ continue;
6276
+ }
6277
+ if (/^onboarding\b/.test(lowerLine)) {
6278
+ console.log("That looks like a shell subcommand. Run it in your terminal, not at the you> prompt.");
6279
+ console.log(dim("inside Waterbrother use `/onboarding <service>`; from your shell use `waterbrother onboarding <service>`"));
6280
+ continue;
6281
+ }
6267
6282
  if (lowerLine === "/exit" || lowerLine === "/quit" || lowerLine.startsWith("/exit ") || lowerLine.startsWith("/quit ")) {
6268
6283
  break;
6269
6284
  }
@@ -8352,6 +8367,11 @@ Be concrete about surfaces — name actual pages/flows. Choose the best stack fo
8352
8367
 
8353
8368
  // Fallback: no active task = CC mode (tools on), active task = chat (tools off for safety)
8354
8369
  const hasTask = Boolean(context.runtime.activeTask);
8370
+ const trivialAck = /^(k|kk|ok|okay|cool|nice|sure|yep|yeah|yup|thx|thanks|thank you|got it|sounds good)$/i.test(line.trim());
8371
+ if (trivialAck) {
8372
+ console.log(dim("acknowledged"));
8373
+ continue;
8374
+ }
8355
8375
  const isCasual = /^(hey|hi|hello|sup|yo|what'?s ?up|thanks|thank you|thx|bye|goodbye|lol|haha|ok|okay|sure|nah|nope|yep|cool|nice|bruh|dude|how are you|good morning|good night|i feel|i think|i like|i love|i hate|i want|i need|i wish|that'?s? (great|cool|nice|interesting|funny|weird|sad|good|bad|awesome))\b/i.test(line.trim());
8356
8376
  if (isCasual) {
8357
8377
  const prevTools = agent.enableTools;