@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.
- package/package.json +1 -1
- package/src/cli.js +13 -8
package/package.json
CHANGED
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
|
|
5802
|
-
|
|
5803
|
-
|
|
5804
|
-
|
|
5805
|
-
await
|
|
5806
|
-
|
|
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
|
-
|
|
5809
|
-
return false;
|
|
5814
|
+
return true;
|
|
5810
5815
|
}
|
|
5811
5816
|
|
|
5812
5817
|
const intent = parseProductIntent(line);
|