@tritard/waterbrother 0.15.14 → 0.15.15

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 +13 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tritard/waterbrother",
3
- "version": "0.15.14",
3
+ "version": "0.15.15",
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
@@ -5798,15 +5798,20 @@ async function promptLoop(agent, session, context) {
5798
5798
 
5799
5799
  const isOneshot = /^(oneshot|one.?shot|blueprint|yes|go|build|do it|sure|yep|ok|okay|1)$/.test(choice);
5800
5800
  if (!isOneshot) {
5801
- // User chose to work through it
5802
- if (currentMode === "expert") {
5803
- // Expert: route to cockpit (decide → choose → build)
5804
- const task = await ensureTaskFromNaturalInput(line);
5805
- await runNaturalDecision({ task, goal: line, invent: false });
5806
- return true;
5801
+ // User said no don't auto-act. Respond conversationally and ask what they want.
5802
+ const prevTools = agent.enableTools;
5803
+ agent.enableTools = false;
5804
+ try {
5805
+ await runTextTurnInteractive({
5806
+ agent, currentSession, context,
5807
+ promptText: `The user wants to make something: "${line}" — but they want to talk through it first, not jump into building. Ask what kind of app, who it's for, and what features they care about. Be conversational. Do NOT use any tools or create any files.`,
5808
+ pendingInput: line,
5809
+ spinnerLabel: "thinking..."
5810
+ });
5811
+ } finally {
5812
+ agent.enableTools = prevTools;
5807
5813
  }
5808
- // Standard/guide: fall through to CC mode
5809
- return false;
5814
+ return true;
5810
5815
  }
5811
5816
 
5812
5817
  const intent = parseProductIntent(line);