@sealant/mend 0.35.1 → 0.36.0-next.1006

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 (96) hide show
  1. package/README.md +39 -7
  2. package/dist/{chunk-SMH65F6Z.js → chunk-5VCZGIDO.js} +1179 -11
  3. package/dist/{dashboard-MGR4YUFD.js → dashboard-6LXBWCM5.js} +1345 -348
  4. package/dist/main.js +11069 -1959
  5. package/man/mend-accounts.1 +1 -1
  6. package/man/mend-adopt.1 +4 -4
  7. package/man/mend-agent-logins.1 +20 -0
  8. package/man/mend-attach.1 +1 -1
  9. package/man/mend-codex.1 +9 -7
  10. package/man/mend-completions.1 +1 -1
  11. package/man/mend-connect-pi.1 +28 -0
  12. package/man/mend-connect.1 +6 -2
  13. package/man/mend-continue.1 +1 -1
  14. package/man/mend-doctor.1 +2 -2
  15. package/man/mend-dotfiles-repo.1 +1 -1
  16. package/man/mend-dotfiles-sync.1 +1 -1
  17. package/man/mend-dotfiles.1 +1 -1
  18. package/man/mend-env-cluster.1 +1 -1
  19. package/man/mend-env-load.1 +1 -1
  20. package/man/mend-env-show.1 +1 -1
  21. package/man/mend-folder-create.1 +1 -1
  22. package/man/mend-folder-list.1 +1 -1
  23. package/man/mend-folder-push.1 +1 -1
  24. package/man/mend-folder-rm.1 +1 -1
  25. package/man/mend-git-author.1 +1 -1
  26. package/man/mend-help.1 +1 -1
  27. package/man/mend-invite.1 +1 -1
  28. package/man/mend-keys-init.1 +1 -1
  29. package/man/mend-keys-mode.1 +1 -1
  30. package/man/mend-keys-share.1 +1 -1
  31. package/man/mend-keys-show.1 +1 -1
  32. package/man/mend-land.1 +1 -1
  33. package/man/mend-login.1 +10 -2
  34. package/man/mend-logout.1 +1 -1
  35. package/man/mend-logs.1 +37 -0
  36. package/man/mend-man.1 +1 -1
  37. package/man/mend-members.1 +1 -1
  38. package/man/mend-memory-import.1 +23 -0
  39. package/man/mend-memory-rm.1 +15 -0
  40. package/man/mend-memory-show.1 +15 -0
  41. package/man/mend-memory.1 +32 -0
  42. package/man/mend-models.1 +22 -0
  43. package/man/mend-operator-exposure.1 +2 -2
  44. package/man/mend-operator-gate.1 +1 -1
  45. package/man/mend-operator-grant-owner.1 +1 -1
  46. package/man/mend-operator-org-create.1 +1 -1
  47. package/man/mend-operator-org-invite-owner.1 +1 -1
  48. package/man/mend-operator-org-list.1 +1 -1
  49. package/man/mend-operator-org-rename.1 +1 -1
  50. package/man/mend-operator-reset-link.1 +1 -1
  51. package/man/mend-pair.1 +3 -1
  52. package/man/mend-projects.1 +10 -2
  53. package/man/mend-pull.1 +6 -3
  54. package/man/mend-refresh.1 +1 -1
  55. package/man/mend-rejoin.1 +1 -1
  56. package/man/mend-resume.1 +1 -1
  57. package/man/mend-run.1 +37 -4
  58. package/man/mend-secrets-add.1 +24 -0
  59. package/man/mend-secrets-rm.1 +14 -0
  60. package/man/mend-secrets.1 +18 -0
  61. package/man/mend-server-logs.1 +1 -1
  62. package/man/mend-server-restart.1 +1 -1
  63. package/man/mend-server-setup.1 +125 -8
  64. package/man/mend-server-start.1 +1 -1
  65. package/man/mend-server-status.1 +7 -3
  66. package/man/mend-server-stop.1 +3 -3
  67. package/man/mend-server-upgrade.1 +14 -2
  68. package/man/mend-server.1 +1 -1
  69. package/man/mend-service-add.1 +1 -1
  70. package/man/mend-service-connect.1 +1 -1
  71. package/man/mend-service-init.1 +1 -1
  72. package/man/mend-service-list.1 +10 -4
  73. package/man/mend-service-logs.1 +3 -1
  74. package/man/mend-service-restart.1 +1 -1
  75. package/man/mend-service-run.1 +16 -4
  76. package/man/mend-service-stop.1 +1 -1
  77. package/man/mend-session-share.1 +13 -3
  78. package/man/mend-sessions.1 +3 -1
  79. package/man/mend-shell.1 +1 -1
  80. package/man/mend-skills-push.1 +1 -1
  81. package/man/mend-skills.1 +1 -1
  82. package/man/mend-snake.1 +2 -2
  83. package/man/mend-ssh-keys-remove.1 +18 -0
  84. package/man/mend-ssh-keys.1 +15 -0
  85. package/man/mend-ssh-setup.1 +2 -2
  86. package/man/mend-ssh.1 +13 -4
  87. package/man/mend-stop.1 +1 -1
  88. package/man/mend-ui.1 +4 -2
  89. package/man/mend-uninstall.1 +9 -3
  90. package/man/mend-version.1 +1 -1
  91. package/man/mend-wait.1 +28 -0
  92. package/man/mend-workspace-replace.1 +24 -0
  93. package/man/mend-worktrees-rm.1 +29 -0
  94. package/man/mend-worktrees.1 +2 -2
  95. package/man/mend.1 +61 -7
  96. package/package.json +21 -40
package/README.md CHANGED
@@ -9,7 +9,7 @@ terminal.
9
9
  npm install -g @sealant/mend
10
10
  ```
11
11
 
12
- Requires Node 22+ and a running Mend server.
12
+ Requires Node 22.13+ and a running Mend server.
13
13
 
14
14
  Run bare `mend` for the interactive dashboard. The session pane takes three quarters of the screen
15
15
  and previews the recorded conversation without taking terminal control. The remaining quarter is a
@@ -145,7 +145,7 @@ start
145
145
  mend login [--url <server>] sign this terminal in through the browser
146
146
  mend connect <claude|codex|github> [--use-my-login] [--from-stdin] [--remove]
147
147
  send this machine's provider credential to the server
148
- mend adopt [git-url] [--name <name>] [--auth ambient|mend-key|bridge] [--private|--shared]
148
+ mend adopt [git-url] [--name <name>] [--auth mend-key|bridge] [--private|--shared]
149
149
  clone a network Git repository into the store
150
150
  (default: the current checkout's origin URL)
151
151
  mend codex|claude|opencode ["prompt"] new session worktree + launch the harness in it
@@ -170,7 +170,10 @@ mend projects adopted projects and their live sessions
170
170
  mend refresh [project] fetch origin's branches into the store
171
171
  mend land <session> [--branch b] [--no-pr] [--title t] | --check
172
172
  push the change to origin, open or update its pull request
173
- mend pull <session> [--force] fetch the change into this clone as mend/<name>
173
+ mend pull <session> [--branch b] [--force]
174
+ fetch the change into this clone as mend/<name>
175
+ mend workspace replace <session> [--yes]
176
+ replace a workspace that started before Mend 0.36
174
177
 
175
178
  services
176
179
  mend service run|add|connect|list|logs|restart|stop|init
@@ -193,7 +196,8 @@ mend members who belongs to your organization, and thei
193
196
  mend invite [--role member|owner] [--email <address>] [--days <n>]
194
197
  print a one-time invitation link
195
198
  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
199
+ mend session share <session> on|off [--yes]
200
+ shared control: each turn runs on its sender's login
197
201
 
198
202
  this machine
199
203
  mend operator org list|create|rename|invite-owner
@@ -238,14 +242,23 @@ dev instance with `MEND_STATIC_TOKEN` set, `MEND_TOKEN=<that value>` also works.
238
242
  ```sh
239
243
  mend ssh # inspect config and this client's key registration
240
244
  mend ssh setup # register a key and reconcile this server's Host block
245
+ mend ssh 3f2a9c1e # print the exact ssh command for one session's workspace
241
246
  mend ssh setup --key ./my-key # explicitly select private key or its .pub file
242
247
  mend ssh setup --host mend.example.com
248
+ mend ssh keys # your registered keys, from every machine; this one is marked
249
+ mend ssh keys remove SHA256:… # stop the gateway accepting one of them
243
250
  ```
244
251
 
245
252
  Setup puts the managed block before wildcard defaults and restores all-host scope before your
246
- original configuration. It preserves other servers and hand-written Host/Match rules. If moving an
247
- older block would change the scope of trailing directives, it refuses the write; put those
248
- directives in an explicit Host or Match block and rerun setup.
253
+ original configuration. It preserves other servers and hand-written Host/Match rules. An older
254
+ release's unscoped `Host mend-ws` block is migrated only when it points at this server's gateway
255
+ (the same HostName and Port); one for another server stays.
256
+
257
+ The gateway's user names the workspace, `ws-<workspace id>`, and no other output shows that id: the
258
+ Docker container's name is a different one, and the gateway closes such a connection after its
259
+ banner. `mend ssh <session>` prints the exact command, on stdout alone. If moving an older block
260
+ would change the scope of trailing directives, it refuses the write; put those directives in an
261
+ explicit Host or Match block and rerun setup.
249
262
 
250
263
  Relative `--key` paths resolve against the invoking directory; `~/` resolves against your home.
251
264
  Identity paths with spaces, quotes, backslashes and literal `%` are escaped for OpenSSH. Control
@@ -260,6 +273,25 @@ Status and setup report config and client-key registration, not a successful SSH
260
273
  verified host trust. The public Sealant SDK's gateway info supplies host, port and username prefix,
261
274
  not a host-key fingerprint. Mend cannot authenticate a rotated host key from that metadata.
262
275
 
276
+ ### Removing a key
277
+
278
+ `mend ssh keys` lists every key your account registered, with its fingerprint, name, algorithm and
279
+ the day it was registered; `--json` prints the same with `thisMachine` on each. The platform does
280
+ not record when a key was last used. `mend ssh keys remove <fingerprint>` removes one of your own
281
+ keys; another person's fingerprint answers as an unknown one. The gateway looks a key up on every
282
+ new connection, so the next connection offering it is refused. A connection already open stays open
283
+ until it ends. The key file and this server's `~/.ssh/config` block stay on the machine that
284
+ registered it; `mend ssh setup` there registers it again.
285
+
286
+ `mend uninstall --home` removes the key this machine registered before it revokes the terminal's
287
+ device token, then deletes the key file and the signed-in server's managed block. Other servers'
288
+ blocks and an older release's unscoped `Host mend-ws` block stay (uninstall says how to delete the
289
+ latter by hand), and so does the key file while a block that stays signs with it. The key is found
290
+ by its public half, so an encrypted private key or a stopped agent does not hide it. When the server
291
+ refuses the removal, or this machine's public key cannot be read, the uninstall still finishes and
292
+ exits 1, naming the fingerprint that may still be registered and `mend ssh keys remove` to run from
293
+ another signed-in machine.
294
+
263
295
  ### Gateway host-key rotation
264
296
 
265
297
  Mend uses a stable per-server `HostKeyAlias`. OpenSSH's `accept-new` policy accepts an unknown key