@tritard/waterbrother 0.8.24 → 0.8.26

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 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tritard/waterbrother",
3
- "version": "0.8.24",
3
+ "version": "0.8.26",
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
@@ -1760,6 +1760,14 @@ function extractExplicitWriteRoots(line, cwd) {
1760
1760
  roots.push(path.join(home, "Desktop", relative));
1761
1761
  }
1762
1762
  }
1763
+ const desktopFolderMatch = text.match(/\b(?:a\s+)?new\s+([a-z0-9._-]+)\s+(?:folder|directory)\s+on\s+desktop\b/i);
1764
+ if (desktopFolderMatch) {
1765
+ const home = process.env.HOME || process.env.USERPROFILE || "";
1766
+ const relative = String(desktopFolderMatch[1] || "").trim();
1767
+ if (home && relative) {
1768
+ roots.push(path.join(home, "Desktop", relative));
1769
+ }
1770
+ }
1763
1771
  return [...new Set(roots)];
1764
1772
  }
1765
1773