@tritard/waterbrother 0.15.16 → 0.15.18

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 +8 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tritard/waterbrother",
3
- "version": "0.15.16",
3
+ "version": "0.15.18",
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
@@ -5527,7 +5527,10 @@ async function promptLoop(agent, session, context) {
5527
5527
  context.costTracker = createCostTracker();
5528
5528
  }
5529
5529
  if (!("traceMode" in context.runtime)) {
5530
- context.runtime.traceMode = "on";
5530
+ // Standard/guide: traces off by default (clean CC-like output)
5531
+ // Expert/auditor: traces on by default (SWE visibility)
5532
+ const mode = agent.getExperienceMode();
5533
+ context.runtime.traceMode = (mode === "expert" || mode === "auditor") ? "on" : "off";
5531
5534
  }
5532
5535
  if (!("receiptMode" in context.runtime)) {
5533
5536
  context.runtime.receiptMode = "auto";
@@ -5781,8 +5784,11 @@ async function promptLoop(agent, session, context) {
5781
5784
 
5782
5785
  async function handleNaturalInput(line) {
5783
5786
  // Product builder intake: detect creation intent, ask permission before oneshotting
5787
+ // Guard: don't allow product building in home directory
5784
5788
  const currentMode = agent.getExperienceMode();
5785
- if (detectProductRequest(line)) {
5789
+ const homeDir = process.env.HOME || process.env.USERPROFILE || "";
5790
+ const isHomeDir = homeDir && (context.cwd === homeDir || context.cwd === homeDir.replace(/\\/g, "/"));
5791
+ if (detectProductRequest(line) && !isHomeDir) {
5786
5792
  // Ask permission conversationally — model asks, not system
5787
5793
  const prevTools = agent.enableTools;
5788
5794
  agent.enableTools = false;