shapewall 0.8.0 → 0.9.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 (76) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/README.md +5 -2
  3. package/bin/shapewall.js +2 -1
  4. package/dist/agent/package-lock.json +2 -2
  5. package/dist/client/assets/BoardChat-BawjlTc7.js +27 -0
  6. package/dist/client/assets/ChecksPanel-DRFcFhCj.js +1 -0
  7. package/dist/client/assets/{History-C_NAxaRl.js → History-FzpzGmXZ.js} +1 -1
  8. package/dist/client/assets/{LocalSettings-W5Ze9ks7.js → LocalSettings-BGFl4VKr.js} +1 -1
  9. package/dist/client/assets/{Management-CXGSi6gI.js → Management-BGdmGtby.js} +1 -1
  10. package/dist/client/assets/QuickConnect-CiVmxi0l.js +1 -0
  11. package/dist/client/assets/{app-update-dialog-DNL0kP9U.js → app-update-dialog-BQxVHa5e.js} +1 -1
  12. package/dist/client/assets/index-B_m65HWT.css +2 -0
  13. package/dist/client/assets/{index-DTXjDgcg.js → index-C1ZwriJU.js} +19 -19
  14. package/dist/client/build-info.json +1 -1
  15. package/dist/client/index.html +2 -2
  16. package/dist/client/sw.js +2 -2
  17. package/dist/console/assets/{LocalAccountsApp-Z0gEJ74C.js → LocalAccountsApp-ntQzkgTS.js} +1 -1
  18. package/dist/console/assets/{LocalConsole-DzHNISE9.js → LocalConsole-Rg-MTvSJ.js} +1 -1
  19. package/dist/console/assets/{app-update-dialog-CQsUPrMX.js → app-update-dialog-CEhV7th4.js} +1 -1
  20. package/dist/console/assets/app-version-BiMzvHaD.js +1 -0
  21. package/dist/console/assets/console-BD5_Gha1.js +11 -0
  22. package/dist/console/assets/console-PWt8SxrJ.css +2 -0
  23. package/dist/console/assets/local-agents-UprGVyLj.js +6 -0
  24. package/dist/console/assets/{tailnet-C2QPbIIC.js → tailnet-Cqtbptzq.js} +2 -2
  25. package/dist/console/assets/{usage-BDt6IQh1.js → usage-BCIwgDP9.js} +2 -2
  26. package/dist/console/build-info.json +1 -1
  27. package/dist/console/console.html +5 -5
  28. package/docs/README.md +64 -0
  29. package/docs/agent-hardening.md +3 -3
  30. package/docs/agent-recipes.md +3 -3
  31. package/docs/agent-workflow.md +6 -4
  32. package/docs/agents.md +25 -16
  33. package/docs/architecture.md +6 -1
  34. package/docs/config.md +53 -25
  35. package/docs/deployment.md +2 -2
  36. package/docs/github.md +1 -1
  37. package/docs/hosted.md +265 -70
  38. package/docs/local-accounts.md +1 -1
  39. package/docs/performance.md +3 -2
  40. package/docs/pull-requests.md +1 -1
  41. package/docs/starter-agent.md +4 -4
  42. package/docs/where-to-run.md +1 -1
  43. package/package.json +3 -2
  44. package/src/agent/backends/acp.js +39 -9
  45. package/src/capture/capture.js +35 -5
  46. package/src/capture/destination.js +67 -0
  47. package/src/capture/load-errors.js +82 -0
  48. package/src/checks/cli.js +41 -5
  49. package/src/cli/args.js +1 -0
  50. package/src/cli/capture.js +5 -0
  51. package/src/cli/comments.js +41 -3
  52. package/src/cli/help.js +4 -1
  53. package/src/cli/init.js +8 -4
  54. package/src/cli/misc.js +3 -3
  55. package/src/cli/serve.js +34 -6
  56. package/src/comment-fields.js +5 -0
  57. package/src/comments-cli.js +26 -5
  58. package/src/config-keys.js +191 -0
  59. package/src/config-reload.js +4 -1
  60. package/src/config.js +33 -2
  61. package/src/doctor.js +188 -39
  62. package/src/hosted/auth.js +14 -8
  63. package/src/hosted/db.js +50 -0
  64. package/src/hosted/pages.js +5 -1
  65. package/src/missing-package.js +11 -0
  66. package/src/ports.js +35 -0
  67. package/src/serve-state.js +16 -0
  68. package/src/watch.js +6 -0
  69. package/dist/client/assets/BoardChat-DG08cvD0.js +0 -27
  70. package/dist/client/assets/ChecksPanel-BD7GniTp.js +0 -1
  71. package/dist/client/assets/QuickConnect-Cta4dT3n.js +0 -1
  72. package/dist/client/assets/index-CBrmVq4n.css +0 -2
  73. package/dist/console/assets/app-version-CP0o1L1_.js +0 -1
  74. package/dist/console/assets/console-DIWY1goy.css +0 -2
  75. package/dist/console/assets/console-DYqhjwPS.js +0 -11
  76. package/dist/console/assets/local-agents-D7Jd9P7A.js +0 -6
package/CHANGELOG.md CHANGED
@@ -3,6 +3,63 @@
3
3
  All notable changes to this project are documented here. The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
4
4
  and the project uses [Semantic Versioning](https://semver.org/).
5
5
 
6
+ ## 0.9.0 - 2026-11-16
7
+
8
+ - **Dictate a comment.** A microphone button under a new comment, a reply and an edit, on the desktop popover, the phone sheets,
9
+ hosted boards and the demo. Press it and talk: the words appear live at the caret (or replace the selection), with a space and
10
+ a capital where they join the text, and you can keep typing. Press again or Esc to stop; posting, Cancel, closing the thread
11
+ or sheet, another thread and a hidden tab stop it as well, and nothing is ever posted by itself. A blocked microphone, no
12
+ microphone, no speech, a network failure and recognition ending by itself each get a plain line under the field. It uses the
13
+ browser's own speech recognition (no new dependency) and is not shown where the browser has none (Firefox). Privacy: the
14
+ browser's speech service turns the audio into text, and in Chrome that service is Google's, so the audio goes to Google;
15
+ Shapewall's server is not involved and never receives or stores it.
16
+ Dictation only starts from a press, and the first press says this once before anything listens. A hosted board's comment
17
+ share links now allow the microphone for the board page itself (`Permissions-Policy: microphone=(self)`); view-only links,
18
+ public boards and live HTML snapshots keep `microphone=()`. See [Dictation](website/src/docs/getting-started.md#dictation).
19
+ - **The minimum Node version is now 22.19**, stated in `engines`: Shapewall's Lighthouse dependency needs it. The docs said
20
+ 22.13.
21
+ - **The agent panel no longer says a local agent asks before it acts.** It said "It asks before changing files or running
22
+ commands", but a local agent runs under its own permission settings, and Claude Code's adapter (0.106.0) starts new sessions in
23
+ its `auto` mode, which acts without asking. The panel now says the agent may change files or run commands without asking, names
24
+ the mode its session is in once there is one ("Its mode now is Auto, which acts without asking"), and links to how to restrict
25
+ it. The Connect dialog, the "Allow this?" dialog for a command, the agent settings and the docs say the same.
26
+ - **A capture that was redirected to a sign-in page is no longer a silent "ok".** Each shot keeps the URL it landed on, the line
27
+ says "landed on /login/, not /app/", the run ends with a warning that points to Auth in docs/config.md, the board marks the card
28
+ "Redirected", and `capture --json` has `finalUrl` per shot and `redirectedShots`. `shapewall checks` now prints its warnings in
29
+ the terminal, not only in `--json`.
30
+ - **`serve` on a port that is taken** says so in a sentence and suggests a port that is actually free (or that this project's own
31
+ server is already running there), instead of `listen EADDRINUSE`, and exits cleanly.
32
+ - **`doctor` no longer says "Ready." for setups that cannot work.** It checks that the site in `baseUrl` answers (a warning with
33
+ the next step when it does not), that Shapewall's own dependencies are installed (a FAIL naming the missing ones), checks the
34
+ port `serve` last used for this project, and suggests only a free port. With warnings it ends "Ready, with N warnings above."
35
+ - **Unknown config keys are warned about** by `doctor`, `capture` and `serve`, with the key that was most likely meant. A
36
+ required key under the wrong case (`"baseURL"`) says to rename it rather than "got undefined".
37
+ - **A page that did not load says why in plain words**: "connection refused at http://127.0.0.1:4799 (is the site running?)" or
38
+ "host not found: … (check baseUrl)" instead of Playwright's `net::ERR_*` line, and a run where every shot failed the same way
39
+ ends with what to do next.
40
+ - **`comments add --selector` that matches nothing** says where the pin sits until the board finds the element, and the board
41
+ no longer names an element from the selector's words for such a comment.
42
+ - **`doctor --install-browser` on Fedora and other unlisted Linux distributions** prints one calm note instead of Playwright's
43
+ capitalised "BEWARE" three times, and leaves out the npx warning box that does not apply.
44
+ - **`shapewall comments delete ID`** deletes a comment and its replies from the terminal. It asks first; `--yes` skips the
45
+ question and is required when there is no terminal to ask in.
46
+ - **`init` lists every page** when only a line or two would have been hidden behind "and 1 more".
47
+ - **`watch` without `--exec`** says that every comment it prints is marked queued and how to set its status, in its output,
48
+ its help and the docs.
49
+ - **A board, console or demo tab left open across an upgrade** reloads itself once to pick up the new build when it asks for
50
+ a file the new build no longer has, showing "Updating to the latest version…" meanwhile. If that does not fix it, it shows a
51
+ plain failure with a Reload button instead of a blank page. At most one automatic reload per page per release in ten minutes,
52
+ and none when the browser keeps no session storage. Error reports stay off unless `SHAPEWALL_ERROR_DSN` is set.
53
+ - **Account activity called every tailnet sign-in a passkey sign-in.** On a server started with `--tailscale --tailnet-sign-in`,
54
+ passkeys off, each sign-in read "Signed in with a passkey" while the device list beside it said "Signed in by tailnet". The
55
+ audit entry was right (`via: tailnet`); the page's label fell back to "passkey" for any method it did not name. It now says
56
+ "Signed in by tailnet" (with the login), the person's Activity page says "by tailnet" on their devices, and a sign-in method the
57
+ page does not know reads "Signed in". The session row now says so too: migration 18 lets `sessions.via` be `tailnet` and marks
58
+ existing tailnet sessions, which were stored as `passkey` with their login beside them. No permission ever depended on the
59
+ stored value (how a session came in is read from its tailnet login), so this is a record fix, not a security one. The
60
+ migration rebuilds the `sessions` table in one transaction and keeps every session signed in; rollback is in
61
+ [Migration 18 and rollback](docs/hosted.md#migration-18-and-rollback).
62
+
6
63
  ## 0.8.0 - 2026-11-16
7
64
 
8
65
  - **Opt-in error reports for your own server.** Set `SHAPEWALL_ERROR_DSN` (any Sentry-compatible DSN: Sentry, GlitchTip) and
package/README.md CHANGED
@@ -73,7 +73,7 @@ feedback, fix the code, and you recapture to check.
73
73
 
74
74
  ### Requirements
75
75
 
76
- - Runs on Linux, macOS and Windows with Node.js **22.13 or newer**. Linux is the primary tested platform.
76
+ - Runs on Linux, macOS and Windows with Node.js **22.19 or newer**. Linux is the primary tested platform.
77
77
  - Chromium for captures: `shapewall doctor --install-browser` downloads Playwright's build, or use a Chrome you already have.
78
78
  On a bare Linux server, a container or WSL, Chromium also needs system libraries: run
79
79
  `sudo npx playwright install-deps chromium` once.
@@ -489,6 +489,8 @@ Commands
489
489
  comments reopen ID reopen a comment [--author NAME] [--json]
490
490
  comments reply ID add a reply --body TEXT [--author NAME (default agent)] [--json]
491
491
  comments status ID S agent status: queued, working, done, needs-human or clear [--note TEXT] [--author NAME] [--json]
492
+ comments delete ID delete a comment, its replies and its images for good; asks first
493
+ [--yes (do not ask; needed without a terminal)] [--json]
492
494
  --board ID board (default: the first); --remote URL for a hosted board (see push)
493
495
  events comment events from every process (the shared log); never claims anything
494
496
  --follow keep printing new events until Ctrl+C
@@ -502,7 +504,8 @@ Commands
502
504
  --board ID | --env ID | --json
503
505
  watch hand each new open comment to an agent (runs until Ctrl+C)
504
506
  --exec "CMD ARGS" run this command per comment (comment JSON on stdin; no shell)
505
- without --exec, print one JSON line per comment
507
+ without --exec, print one JSON line per comment and mark it queued
508
+ (the reader sets its status with "comments status"; --no-claim marks none)
506
509
  --concurrency N commands at once, 1 to 4 (default 1)
507
510
  --recapture recapture the comment page after a successful --exec (local only)
508
511
  --new-only skip comments that exist when the watch starts
package/bin/shapewall.js CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { main } from '../src/cli.js'
3
3
  import { terminalSafe } from '../src/remote/terminal.js'
4
+ import { missingPackageMessage } from '../src/missing-package.js'
4
5
  import { spawn } from 'node:child_process'
5
6
  import { BUZZ_CREDENTIAL_NAMES, withoutBuzzCredentials } from '../src/buzz/environment.js'
6
7
 
@@ -23,7 +24,7 @@ if (BUZZ_CREDENTIAL_NAMES.some((name) => process.env[name] !== undefined)) {
23
24
  if (code !== null) process.exitCode = code
24
25
  },
25
26
  (error) => {
26
- console.error(`shapewall: ${terminalSafe(error.message)}`)
27
+ console.error(`shapewall: ${terminalSafe(missingPackageMessage(error) || error.message)}`)
27
28
  process.exitCode = 1
28
29
  },
29
30
  )
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "shapewall",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "shapewall",
9
- "version": "0.8.0",
9
+ "version": "0.9.0",
10
10
  "license": "Apache-2.0 AND FSL-1.1-ALv2",
11
11
  "dependencies": {
12
12
  "@agentclientprotocol/sdk": "2.4.0",