@dreb/coding-agent 2.38.1 → 2.40.0

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 (33) hide show
  1. package/README.md +0 -1
  2. package/dist/config.d.ts +3 -5
  3. package/dist/config.d.ts.map +1 -1
  4. package/dist/config.js +16 -11
  5. package/dist/config.js.map +1 -1
  6. package/dist/core/settings-manager.d.ts +0 -6
  7. package/dist/core/settings-manager.d.ts.map +1 -1
  8. package/dist/core/settings-manager.js +0 -16
  9. package/dist/core/settings-manager.js.map +1 -1
  10. package/dist/core/slash-commands.d.ts.map +1 -1
  11. package/dist/core/slash-commands.js +0 -1
  12. package/dist/core/slash-commands.js.map +1 -1
  13. package/dist/migrations.d.ts.map +1 -1
  14. package/dist/migrations.js +1 -3
  15. package/dist/migrations.js.map +1 -1
  16. package/dist/modes/interactive/components/settings-selector.d.ts +0 -2
  17. package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
  18. package/dist/modes/interactive/components/settings-selector.js +0 -10
  19. package/dist/modes/interactive/components/settings-selector.js.map +1 -1
  20. package/dist/modes/interactive/interactive-mode.d.ts +0 -7
  21. package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
  22. package/dist/modes/interactive/interactive-mode.js +2 -85
  23. package/dist/modes/interactive/interactive-mode.js.map +1 -1
  24. package/docs/dashboard.md +41 -0
  25. package/docs/mach6.md +1 -1
  26. package/docs/settings.md +0 -1
  27. package/docs/version-history.md +9 -0
  28. package/package.json +3 -4
  29. package/CHANGELOG.md +0 -3371
  30. package/dist/utils/changelog.d.ts +0 -21
  31. package/dist/utils/changelog.d.ts.map +0 -1
  32. package/dist/utils/changelog.js +0 -87
  33. package/dist/utils/changelog.js.map +0 -1
package/docs/dashboard.md CHANGED
@@ -74,6 +74,47 @@ agents, running commands through them, browsing the whole host filesystem
74
74
  pairing screen states this before the PIN is entered. Every file operation is
75
75
  logged server-side.
76
76
 
77
+ ## WSL2 gotcha — intermittent "access denied" / pairing screen on localhost
78
+
79
+ <a id="wsl2-gotcha"></a>
80
+
81
+ If you run the dashboard inside **WSL2** and reach it from a Windows browser at
82
+ `http://127.0.0.1:5343`, you may intermittently get an **access-denied /
83
+ pairing screen even in local mode** — typically right after the WSL VM has been
84
+ idle, clearing once WSL is "warm" again (e.g. after you open a WSL terminal,
85
+ which is itself slow to start because the VM is resuming).
86
+
87
+ **Cause.** With WSL's `networkingMode=mirrored`, host→guest loopback traffic can
88
+ reach the server with a source address of `10.255.255.254` — the mirrored
89
+ host-loopback address WSL assigns to `lo` — instead of `127.0.0.1`, during the
90
+ window after a cold boot / resume before the loopback relay settles. Local-mode
91
+ auth only treats `127.x.x.x`/`::1` as loopback, so those requests fail the
92
+ loopback check and are denied; the client renders that denial as the
93
+ access-denied / pairing screen. No actual Tailscale/pairing is involved.
94
+
95
+ **Why it correlates with WSL idling.** WSL tears the VM down when idle, and a
96
+ dashboard running as a background service does **not** keep it alive: WSL's
97
+ instance watchdog only counts processes it launches directly (interactive
98
+ `wsl.exe` sessions or `wsl --exec`), and a `systemd`-managed service lives under
99
+ PID 1 where the watchdog never sees it. So an always-on dashboard still lets the
100
+ VM idle out, and the first request after resume can land in the transitional
101
+ networking window above.
102
+
103
+ **Workarounds** (host-side — no dreb changes needed):
104
+
105
+ - **Keep a WSL terminal open.** Simplest and most reliable: an attached
106
+ interactive session is exactly the signal WSL uses to keep the VM alive, which
107
+ also avoids the post-resume networking window entirely.
108
+ - **Headless keep-alive.** Run `wsl --exec dbus-launch true` (e.g. as a logon
109
+ Scheduled Task): it leaves a lingering background daemon that holds the VM open
110
+ with no terminal window. Re-run after each Windows reboot — it does not
111
+ persist. See [microsoft/WSL#10138](https://github.com/microsoft/WSL/issues/10138).
112
+ A `sleep infinity` session via Task Scheduler works too. (`vmIdleTimeout=-1`
113
+ in `.wslconfig` is Windows-11-only and reported unreliable for keeping the
114
+ *instance* — not just the VM — alive.)
115
+ - **Access via the WSL VM's own IP** instead of localhost, if that path is
116
+ loopback-clean for your setup.
117
+
77
118
  ## Screens
78
119
 
79
120
  | Screen | What it does |
package/docs/mach6.md CHANGED
@@ -105,7 +105,7 @@ Pre-merge checks, version bump, docs update, merge, tag, and release.
105
105
  ```
106
106
 
107
107
  - Verifies CI passing, no merge conflicts, all findings addressed
108
- - Runs pre-merge checklist (version bump, changelog, tests)
108
+ - Runs pre-merge checklist (version bump, tests)
109
109
  - Applies version bump on the feature branch
110
110
  - Proactively reviews and updates ALL documentation affected by the PR's changes
111
111
  - Merges with `--squash --delete-branch`
package/docs/settings.md CHANGED
@@ -85,7 +85,6 @@ current model supports adaptive thinking).
85
85
  |---------|------|---------|-------------|
86
86
  | `theme` | string | `"dark"` | Theme name (`"dark"`, `"light"`, or custom) |
87
87
  | `quietStartup` | boolean | `false` | Hide startup header |
88
- | `collapseChangelog` | boolean | `false` | Show condensed changelog after updates |
89
88
  | `doubleEscapeAction` | string | `"tree"` | Action for double-escape: `"tree"`, `"fork"`, or `"none"` |
90
89
  | `treeFilterMode` | string | `"default"` | Default filter for `/tree`: `"default"`, `"no-tools"`, `"user-only"`, `"labeled-only"`, `"all"` |
91
90
  | `editorPaddingX` | number | `0` | Horizontal padding for input editor (0-3) |
@@ -0,0 +1,9 @@
1
+ # Version History
2
+
3
+ dreb does not maintain `CHANGELOG.md` files. All version history is tracked in git. Use [GitHub Releases](https://github.com/aebrer/dreb/releases) and `git log` for the canonical changelog.
4
+
5
+ ## Finding Changes
6
+
7
+ - **Recent releases**: Browse the [Releases page](https://github.com/aebrer/dreb/releases) for release notes and associated commits
8
+ - **Specific version**: `git log v2.38.0..v2.38.1` shows changes between versions
9
+ - **Detailed history**: `git log --oneline` for a compact view of all changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dreb/coding-agent",
3
- "version": "2.38.1",
3
+ "version": "2.40.0",
4
4
  "description": "Coding agent CLI with read, bash, edit, write tools and session management",
5
5
  "type": "module",
6
6
  "drebConfig": {
@@ -38,8 +38,7 @@
38
38
  "agents",
39
39
  "skills",
40
40
  "docs",
41
- "examples",
42
- "CHANGELOG.md"
41
+ "examples"
43
42
  ],
44
43
  "scripts": {
45
44
  "clean": "shx rm -rf dist",
@@ -47,7 +46,7 @@
47
46
  "build": "tsgo -p tsconfig.build.json && shx chmod +x dist/cli.js && npm run copy-assets",
48
47
  "build:binary": "npm --prefix ../tui run build && npm --prefix ../ai run build && npm --prefix ../agent run build && npm run build && bun build --compile ./dist/bun/cli.js --outfile dist/dreb && npm run copy-binary-assets",
49
48
  "copy-assets": "shx mkdir -p dist/modes/interactive/theme && shx cp src/modes/interactive/theme/*.json dist/modes/interactive/theme/ && shx mkdir -p dist/core/export-html/vendor && shx cp src/core/export-html/template.html src/core/export-html/template.css src/core/export-html/template.js dist/core/export-html/ && shx cp src/core/export-html/vendor/*.js dist/core/export-html/vendor/",
50
- "copy-binary-assets": "shx cp package.json dist/ && shx cp README.md dist/ && shx cp CHANGELOG.md dist/ && shx mkdir -p dist/theme && shx cp src/modes/interactive/theme/*.json dist/theme/ && shx mkdir -p dist/export-html/vendor && shx cp src/core/export-html/template.html dist/export-html/ && shx cp src/core/export-html/vendor/*.js dist/export-html/vendor/ && shx cp -r docs dist/ && shx cp -r examples dist/ && shx cp ../../node_modules/@silvia-odwyer/photon-node/photon_rs_bg.wasm dist/",
49
+ "copy-binary-assets": "shx cp package.json dist/ && shx cp README.md dist/ && shx mkdir -p dist/theme && shx cp src/modes/interactive/theme/*.json dist/theme/ && shx mkdir -p dist/export-html/vendor && shx cp src/core/export-html/template.html dist/export-html/ && shx cp src/core/export-html/vendor/*.js dist/export-html/vendor/ && shx cp -r docs dist/ && shx cp -r examples dist/ && shx cp ../../node_modules/@silvia-odwyer/photon-node/photon_rs_bg.wasm dist/",
51
50
  "test": "vitest --run",
52
51
  "prepublishOnly": "npm run clean && npm run build"
53
52
  },