@sealant/mend 0.33.0 → 0.34.4

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 (80) hide show
  1. package/README.md +74 -13
  2. package/dist/{chunk-GJFMD7XF.js → chunk-AAAXHRWL.js} +457 -87
  3. package/dist/{dashboard-NWHR7I5W.js → dashboard-DWXXYFPE.js} +41 -13
  4. package/dist/main.js +916 -322
  5. package/man/mend-accounts.1 +1 -1
  6. package/man/mend-adopt.1 +1 -1
  7. package/man/mend-attach.1 +1 -1
  8. package/man/mend-codex.1 +1 -1
  9. package/man/mend-completions.1 +1 -1
  10. package/man/mend-connect.1 +1 -1
  11. package/man/mend-continue.1 +1 -1
  12. package/man/mend-doctor.1 +2 -2
  13. package/man/mend-dotfiles-repo.1 +1 -1
  14. package/man/mend-dotfiles-sync.1 +1 -1
  15. package/man/mend-dotfiles.1 +1 -1
  16. package/man/mend-env-cluster.1 +1 -1
  17. package/man/mend-env-load.1 +1 -1
  18. package/man/mend-env-show.1 +1 -1
  19. package/man/mend-folder-create.1 +1 -1
  20. package/man/mend-folder-list.1 +1 -1
  21. package/man/mend-folder-push.1 +1 -1
  22. package/man/mend-folder-rm.1 +1 -1
  23. package/man/mend-git-author.1 +1 -1
  24. package/man/mend-help.1 +1 -1
  25. package/man/mend-invite.1 +1 -1
  26. package/man/mend-keys-init.1 +1 -1
  27. package/man/mend-keys-mode.1 +1 -1
  28. package/man/mend-keys-share.1 +1 -1
  29. package/man/mend-keys-show.1 +1 -1
  30. package/man/mend-land.1 +1 -1
  31. package/man/mend-login.1 +1 -1
  32. package/man/mend-logout.1 +1 -1
  33. package/man/mend-man.1 +1 -1
  34. package/man/mend-members.1 +1 -1
  35. package/man/mend-operator-exposure.1 +1 -1
  36. package/man/mend-operator-gate.1 +1 -1
  37. package/man/mend-operator-grant-owner.1 +1 -1
  38. package/man/mend-operator-org-create.1 +1 -1
  39. package/man/mend-operator-org-invite-owner.1 +1 -1
  40. package/man/mend-operator-org-list.1 +1 -1
  41. package/man/mend-operator-org-rename.1 +1 -1
  42. package/man/mend-operator-reset-link.1 +1 -1
  43. package/man/mend-pair.1 +1 -1
  44. package/man/mend-projects.1 +1 -1
  45. package/man/mend-pull.1 +1 -1
  46. package/man/mend-refresh.1 +1 -1
  47. package/man/mend-rejoin.1 +1 -1
  48. package/man/mend-resume.1 +1 -1
  49. package/man/mend-run.1 +1 -1
  50. package/man/mend-server-logs.1 +1 -1
  51. package/man/mend-server-restart.1 +1 -1
  52. package/man/mend-server-setup.1 +1 -1
  53. package/man/mend-server-start.1 +1 -1
  54. package/man/mend-server-status.1 +1 -1
  55. package/man/mend-server-stop.1 +1 -1
  56. package/man/mend-server-upgrade.1 +1 -1
  57. package/man/mend-server.1 +1 -1
  58. package/man/mend-service-add.1 +1 -1
  59. package/man/mend-service-connect.1 +1 -1
  60. package/man/mend-service-init.1 +1 -1
  61. package/man/mend-service-list.1 +1 -1
  62. package/man/mend-service-logs.1 +1 -1
  63. package/man/mend-service-restart.1 +1 -1
  64. package/man/mend-service-run.1 +1 -1
  65. package/man/mend-service-stop.1 +1 -1
  66. package/man/mend-session-share.1 +1 -1
  67. package/man/mend-sessions.1 +1 -1
  68. package/man/mend-shell.1 +1 -1
  69. package/man/mend-skills-push.1 +1 -1
  70. package/man/mend-skills.1 +1 -1
  71. package/man/mend-snake.1 +1 -1
  72. package/man/mend-ssh-setup.1 +1 -1
  73. package/man/mend-ssh.1 +1 -1
  74. package/man/mend-stop.1 +1 -1
  75. package/man/mend-ui.1 +1 -1
  76. package/man/mend-uninstall.1 +1 -1
  77. package/man/mend-version.1 +1 -1
  78. package/man/mend-worktrees.1 +1 -1
  79. package/man/mend.1 +1 -1
  80. package/package.json +3 -3
package/README.md CHANGED
@@ -54,8 +54,8 @@ pin rather than automatically downgrading or restoring the database.
54
54
  For local release assets and preloaded images:
55
55
 
56
56
  ```sh
57
- mend server setup --version 0.23.0 --assets-dir ./release-0.23.0 --offline
58
- mend server upgrade --version 0.24.0 --assets-dir ./release-0.24.0 --offline
57
+ mend server setup --version <version> --assets-dir ./release-<version> --offline
58
+ mend server upgrade --version <target> --assets-dir ./release-<target> --offline
59
59
  ```
60
60
 
61
61
  Each asset directory must contain `compose.v2.yaml` and `postgres-init.sh`. Mend copies them into an
@@ -124,35 +124,96 @@ line that needs an action ends with the one command that takes it:
124
124
 
125
125
  It exits 1 when a `✗` is printed, so a setup script can gate on it. No request waits longer than 3s.
126
126
 
127
+ ```sh
128
+ mend doctor --bundle [--out <path>] [--tail <n>]
129
+ ```
130
+
131
+ `--bundle` writes one `tar.gz` for a bug report instead of printing the checklist: this CLI and its
132
+ environment, the doctor lines, the server's health, the local server's compose file and the names of
133
+ its `.env` keys (never their values), Docker facts, the Mend and workspace containers' inspect facts
134
+ and logs, every session with its processes and recorded terminal output, the connected accounts, and
135
+ the versions of `claude`, `codex`, `gh`, `git` and `docker`. A part that fails leaves a
136
+ `<name>.error.txt` in the bundle. A redactor removes token, password and secret values from every
137
+ file before it is written, and the archive is mode 0600. It still holds logs and configuration, so
138
+ read it before you share it. The default path is `~/.config/mend/bundles/mend-bundle-<time>.tgz`;
139
+ `--tail` sets lines per log, 1 to 2000, default 500.
140
+
127
141
  ## Commands
128
142
 
129
143
  ```text
130
- mend adopt [git-url] [--name <name>] clone a network Git repository into the store
144
+ start
145
+ mend login [--url <server>] sign this terminal in through the browser
146
+ mend connect <claude|codex|github> [--use-my-login] [--from-stdin] [--remove]
147
+ send this machine's provider credential to the server
148
+ mend adopt [git-url] [--name <name>] [--auth ambient|mend-key|bridge] [--private|--shared]
149
+ clone a network Git repository into the store
131
150
  (default: the current checkout's origin URL)
132
- mend codex|claude|opencode new session worktree + launch the harness in it
133
- mend run -- <command...> same, with an arbitrary command
134
- mend attach <session-id-prefix> reattach this terminal to a running session
151
+ mend codex|claude|opencode ["prompt"] new session worktree + launch the harness in it
152
+ mend pair [--url <base url>] pair a phone or a second machine: QR + code + URL
153
+ mend doctor [--bundle] read-only checklist, or a redacted archive for a bug report
154
+
155
+ sessions
156
+ mend ui [--no-tunnel] the dashboard (same as bare mend)
157
+ mend attach [session-id-prefix] reattach this terminal to a running session
158
+ mend stop [session] | --all | --services [session]
159
+ stop the agent; the record and the review remain
160
+ mend shell [session-id-prefix] open a shell in a live session's workspace
161
+ mend run [--project p] -- <command...>
162
+ run any command as a session
135
163
  mend continue [session-id] resume a session with its pending review follow-up
136
164
  mend resume [session-id] [--with h] rejoin a settled session (state restored; --with switches harness)
137
165
  mend rejoin [session-id] [--harness h] attach if live, otherwise resume; newest live wins
138
- mend sessions [--all] [--project p] [--json]
139
- mend status active sessions (alias of mend sessions)
140
- mend land <session> [--branch b] [--no-pr] [--title t]
166
+ mend sessions [--all] [--project p] [--json | --json=v2]
167
+ mend status alias of mend sessions
168
+ mend worktrees [--project p] [--json] every worktree and the sessions inside it
169
+ mend projects adopted projects and their live sessions
170
+ mend refresh [project] fetch origin's branches into the store
171
+ mend land <session> [--branch b] [--no-pr] [--title t] | --check
141
172
  push the change to origin, open or update its pull request
142
173
  mend pull <session> [--force] fetch the change into this clone as mend/<name>
143
- mend pair [--url <base url>] pair a phone or a second machine: QR + code + URL
144
- mend doctor read-only checklist of this machine's setup
174
+
175
+ services
176
+ mend service run|add|connect|list|logs|restart|stop|init
177
+ supervise servers in a session's workspace and bring
178
+ them to this machine's loopback
179
+
180
+ project setup
181
+ mend env show|load|cluster the project's environment: names, .env files, Kubernetes bindings
145
182
  mend skills [--project [p]] your skill library on the server (or a project's)
146
183
  mend skills push [--project [p]] [--prune] [--dir <path>]
147
184
  upload ~/.agents/skills bundles; sessions receive
148
185
  them at launch (--prune removes what's gone)
186
+ mend dotfiles [show] | repo | sync your dotfiles on the server: repository and synced files
187
+ mend git-author [<name> <email>] | --clear
188
+ the name and email your workspaces commit as
149
189
  mend keys init|show|mode|share your Mend git key, default access mode, agent bridge
150
- mend ssh [setup] workspace SSH status; register a key + Host block
190
+
191
+ organization
192
+ mend members who belongs to your organization, and their roles
193
+ mend invite [--role member|owner] [--email <address>] [--days <n>]
194
+ print a one-time invitation link
195
+ mend folder list|create|push|rm your organization's folders
196
+ mend session share <session> on|off shared control: let everyone who can see a session steer it
197
+
198
+ this machine
199
+ mend operator org list|create|rename|invite-owner
200
+ mend operator exposure how this instance is exposed, as declared and as observed
201
+ mend operator gate what MEND_TENANCY=multi still needs on this instance
202
+ mend operator grant-owner|reset-link owner grants and one-time password reset links
151
203
  mend server <command> this machine's Docker server: setup, status, logs,
152
204
  start, stop, restart, upgrade
205
+ mend ssh [setup] workspace SSH status; register a key + Host block
206
+ mend accounts your connected accounts on the server
207
+ mend logout revoke this terminal's device token and forget it
208
+ mend uninstall [--all | --server | --home] [--yes]
209
+ remove the server, this machine's Mend files, or both
210
+ mend completions zsh|bash print the TAB-completion hook
153
211
  mend version this CLI's version, and the server's when it answers
212
+ mend help|man [command...] one command's page with usage, options and examples
154
213
  ```
155
214
 
215
+ The sections follow `mend help`. `mend help <command>` prints each command's full usage.
216
+
156
217
  ## Signing in
157
218
 
158
219
  ```sh
@@ -178,7 +239,7 @@ dev instance with `MEND_STATIC_TOKEN` set, `MEND_TOKEN=<that value>` also works.
178
239
  mend ssh # inspect config and this client's key registration
179
240
  mend ssh setup # register a key and reconcile this server's Host block
180
241
  mend ssh setup --key ./my-key # explicitly select private key or its .pub file
181
- mend ssh setup --host mini.tailnet.ts.net
242
+ mend ssh setup --host mend.example.com
182
243
  ```
183
244
 
184
245
  Setup puts the managed block before wildcard defaults and restores all-host scope before your