@sealant/mend 0.16.0 → 0.18.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 (51) hide show
  1. package/dist/dashboard-model.js +8 -0
  2. package/dist/dashboard.js +12 -3
  3. package/dist/help.js +824 -0
  4. package/dist/main.js +129 -127
  5. package/dist/version.js +48 -0
  6. package/man/mend-accounts.1 +11 -0
  7. package/man/mend-adopt.1 +27 -0
  8. package/man/mend-attach.1 +13 -0
  9. package/man/mend-codex.1 +60 -0
  10. package/man/mend-completions.1 +14 -0
  11. package/man/mend-connect.1 +25 -0
  12. package/man/mend-continue.1 +11 -0
  13. package/man/mend-doctor.1 +11 -0
  14. package/man/mend-dotfiles-sync.1 +15 -0
  15. package/man/mend-dotfiles.1 +11 -0
  16. package/man/mend-env-cluster.1 +26 -0
  17. package/man/mend-env-load.1 +21 -0
  18. package/man/mend-env-show.1 +15 -0
  19. package/man/mend-help.1 +11 -0
  20. package/man/mend-keys-init.1 +11 -0
  21. package/man/mend-keys-share.1 +11 -0
  22. package/man/mend-keys-show.1 +11 -0
  23. package/man/mend-login.1 +20 -0
  24. package/man/mend-logout.1 +11 -0
  25. package/man/mend-man.1 +11 -0
  26. package/man/mend-pair.1 +15 -0
  27. package/man/mend-projects.1 +11 -0
  28. package/man/mend-refresh.1 +11 -0
  29. package/man/mend-rejoin.1 +15 -0
  30. package/man/mend-resume.1 +15 -0
  31. package/man/mend-run.1 +18 -0
  32. package/man/mend-service-add.1 +21 -0
  33. package/man/mend-service-connect.1 +15 -0
  34. package/man/mend-service-init.1 +15 -0
  35. package/man/mend-service-list.1 +11 -0
  36. package/man/mend-service-logs.1 +15 -0
  37. package/man/mend-service-restart.1 +11 -0
  38. package/man/mend-service-run.1 +38 -0
  39. package/man/mend-service-stop.1 +11 -0
  40. package/man/mend-sessions.1 +27 -0
  41. package/man/mend-shell.1 +13 -0
  42. package/man/mend-skills-push.1 +21 -0
  43. package/man/mend-skills.1 +15 -0
  44. package/man/mend-ssh-setup.1 +15 -0
  45. package/man/mend-ssh.1 +11 -0
  46. package/man/mend-stop.1 +22 -0
  47. package/man/mend-ui.1 +13 -0
  48. package/man/mend-version.1 +11 -0
  49. package/man/mend-worktrees.1 +18 -0
  50. package/man/mend.1 +165 -0
  51. package/package.json +8 -3
package/man/mend-ssh.1 ADDED
@@ -0,0 +1,11 @@
1
+ .TH MEND-SSH 1 "" "mend 0.18.0" "mend manual"
2
+ .SH NAME
3
+ mend\-ssh \- workspace SSH status: gateway, registered keys, ssh config
4
+ .SH SYNOPSIS
5
+ .B mend ssh [status]
6
+ .br
7
+ .SH DESCRIPTION
8
+ .PP
9
+ Whether this machine can ssh into workspaces, and what is missing if not.
10
+ .SH SEE ALSO
11
+ mend(1), mend\-ssh\-setup(1)
@@ -0,0 +1,22 @@
1
+ .TH MEND-STOP 1 "" "mend 0.18.0" "mend manual"
2
+ .SH NAME
3
+ mend\-stop \- stop the agent; the record and the review remain
4
+ .SH SYNOPSIS
5
+ .B mend stop [session\-id\-prefix]
6
+ .br
7
+ .B mend stop \-\-all [\-\-project <p>]
8
+ .br
9
+ .SH DESCRIPTION
10
+ .PP
11
+ Ends the agent process. The workspace harvests the harness state and closes. The worktree, the record, and the review stay, and mend resume brings the conversation back.
12
+ .PP
13
+ With no id, the one live session is taken; with several, a picker opens. A prefix of the id is enough.
14
+ .SH OPTIONS
15
+ .TP
16
+ .B \-\-all
17
+ every live session
18
+ .TP
19
+ .B \-\-project <p>
20
+ limit \-\-all to one project by name, when the current directory is not inside it
21
+ .SH SEE ALSO
22
+ mend(1), mend\-resume(1), mend\-attach(1)
package/man/mend-ui.1 ADDED
@@ -0,0 +1,13 @@
1
+ .TH MEND-UI 1 "" "mend 0.18.0" "mend manual"
2
+ .SH NAME
3
+ mend\-ui \- the dashboard: every project and session, live
4
+ .SH SYNOPSIS
5
+ .B mend ui
6
+ .br
7
+ .SH DESCRIPTION
8
+ .PP
9
+ A full\-screen view of every project and session, updating live. Pick a session to attach, stop, or take over. Bare mend with no command opens the same thing.
10
+ .PP
11
+ The dashboard needs Node 26 or newer for its terminal. Every other command works on Node 22.
12
+ .SH SEE ALSO
13
+ mend(1), mend\-sessions(1), mend\-attach(1)
@@ -0,0 +1,11 @@
1
+ .TH MEND-VERSION 1 "" "mend 0.18.0" "mend manual"
2
+ .SH NAME
3
+ mend\-version \- this CLI's version, and the server's when it answers
4
+ .SH SYNOPSIS
5
+ .B mend version
6
+ .br
7
+ .SH DESCRIPTION
8
+ .PP
9
+ Two lines: the version of this CLI, then the server's from its health route. A server that does not answer within two seconds prints as unreachable. \-\-version and \-v do the same.
10
+ .SH SEE ALSO
11
+ mend(1), mend\-doctor(1)
@@ -0,0 +1,18 @@
1
+ .TH MEND-WORKTREES 1 "" "mend 0.18.0" "mend manual"
2
+ .SH NAME
3
+ mend\-worktrees \- every worktree and the sessions inside it
4
+ .SH SYNOPSIS
5
+ .B mend worktrees [\-\-project <p>] [\-\-json]
6
+ .br
7
+ .SH DESCRIPTION
8
+ .PP
9
+ A worktree can hold several sessions over time; this shows them together.
10
+ .SH OPTIONS
11
+ .TP
12
+ .B \-\-project <p>
13
+ the project by name, when the current directory is not inside it
14
+ .TP
15
+ .B \-\-json
16
+ the v2 grouped shape
17
+ .SH SEE ALSO
18
+ mend(1), mend\-sessions(1)
package/man/mend.1 ADDED
@@ -0,0 +1,165 @@
1
+ .TH MEND 1 "" "mend 0.18.0" "mend manual"
2
+ .SH NAME
3
+ mend \- the agent workbench
4
+ .SH SYNOPSIS
5
+ .B mend
6
+ [\fIcommand\fR] [\fIoptions\fR]
7
+ .SH DESCRIPTION
8
+ .PP
9
+ Mend adopts a repository into a central store, runs your coding agent (codex, claude, opencode, or any command) in a recorded git worktree on the platform, and lets you attach, review, and steer from any terminal or device. Each command has its own page: mend\-<command>(1).
10
+ .SH START
11
+ .TP
12
+ .B mend login
13
+ sign this terminal in through the browser
14
+ .TP
15
+ .B mend connect
16
+ send this machine's provider credential to the platform
17
+ .TP
18
+ .B mend adopt
19
+ adopt a repository into the store
20
+ .TP
21
+ .B mend codex
22
+ launch codex, claude, or opencode in a recorded worktree
23
+ .TP
24
+ .B mend pair
25
+ pair a phone or a second machine
26
+ .TP
27
+ .B mend doctor
28
+ check this machine's setup
29
+ .SH SESSIONS
30
+ .TP
31
+ .B mend ui
32
+ the dashboard: every project and session, live
33
+ .TP
34
+ .B mend attach
35
+ reattach this terminal to a running session
36
+ .TP
37
+ .B mend stop
38
+ stop the agent; the record and the review remain
39
+ .TP
40
+ .B mend shell
41
+ open a shell in a live session's workspace
42
+ .TP
43
+ .B mend run
44
+ run any command as a session
45
+ .TP
46
+ .B mend continue
47
+ resume a session with its pending review follow\-up
48
+ .TP
49
+ .B mend resume
50
+ rejoin a settled session with its state restored
51
+ .TP
52
+ .B mend rejoin
53
+ attach if live, otherwise resume
54
+ .TP
55
+ .B mend sessions
56
+ sessions with their review facts
57
+ .TP
58
+ .B mend worktrees
59
+ every worktree and the sessions inside it
60
+ .TP
61
+ .B mend projects
62
+ adopted projects and their live sessions
63
+ .TP
64
+ .B mend refresh
65
+ fetch origin's branches into the store
66
+ .SH SERVICES
67
+ .TP
68
+ .B mend service run
69
+ start and supervise a server in the session's workspace
70
+ .TP
71
+ .B mend service add
72
+ adopt a port something in the workspace already listens on
73
+ .TP
74
+ .B mend service connect
75
+ bring live Services to this machine's loopback
76
+ .TP
77
+ .B mend service list
78
+ every live service and its observed state
79
+ .TP
80
+ .B mend service logs
81
+ follow a supervised service's output
82
+ .TP
83
+ .B mend service restart
84
+ re\-run a service's recorded command, same URL
85
+ .TP
86
+ .B mend service stop
87
+ stop a service and close its host port
88
+ .TP
89
+ .B mend service init
90
+ scaffold mend.toml from package.json and compose ports
91
+ .SH PROJECT SETUP
92
+ .TP
93
+ .B mend env show
94
+ what the project store holds: names only, never values
95
+ .TP
96
+ .B mend env load
97
+ load a .env into the project
98
+ .TP
99
+ .B mend env cluster
100
+ bind Kubernetes secrets and configmaps to the workspaces
101
+ .TP
102
+ .B mend skills
103
+ your skill library on the server, or a project's
104
+ .TP
105
+ .B mend skills push
106
+ upload ~/.agents/skills into the library
107
+ .TP
108
+ .B mend dotfiles
109
+ your dotfiles on the server: repo and synced files
110
+ .TP
111
+ .B mend dotfiles sync
112
+ capture config files from this machine into your store
113
+ .TP
114
+ .B mend keys init
115
+ generate this machine's Mend deploy key (ed25519)
116
+ .TP
117
+ .B mend keys show
118
+ print the public key
119
+ .TP
120
+ .B mend keys share
121
+ relay this machine's ssh\-agent to the server
122
+ .SH THIS MACHINE
123
+ .TP
124
+ .B mend ssh
125
+ workspace SSH status: gateway, registered keys, ssh config
126
+ .TP
127
+ .B mend ssh setup
128
+ make this machine ready to ssh into workspaces, once
129
+ .TP
130
+ .B mend accounts
131
+ your connected accounts on the platform
132
+ .TP
133
+ .B mend logout
134
+ revoke this terminal's device token and forget it
135
+ .TP
136
+ .B mend completions
137
+ print the TAB\-completion hook
138
+ .TP
139
+ .B mend version
140
+ this CLI's version, and the server's when it answers
141
+ .TP
142
+ .B mend help
143
+ this index, or one command's page
144
+ .TP
145
+ .B mend man
146
+ one command's page, or the whole manual, in man
147
+ .SH ENVIRONMENT
148
+ .TP
149
+ .B MEND_URL
150
+ the server. Default http://localhost:3105
151
+ .TP
152
+ .B MEND_TOKEN
153
+ a token in place of the saved login
154
+ .TP
155
+ .B MEND_DETACH_KEY
156
+ the detach chord; default Ctrl+]. none when an outer multiplexer owns detaching
157
+ .SH FILES
158
+ .TP
159
+ .B ~/.config/mend/cli.json
160
+ url, token, and device id from mend login
161
+ .TP
162
+ .B ~/.config/mend/keys/
163
+ the deploy key from mend keys init
164
+ .SH SEE ALSO
165
+ mend\-login(1), mend\-connect(1), mend\-adopt(1), mend\-codex(1), mend\-pair(1), mend\-doctor(1), mend\-ui(1), mend\-attach(1), mend\-stop(1), mend\-shell(1), mend\-run(1), mend\-continue(1), mend\-resume(1), mend\-rejoin(1), mend\-sessions(1), mend\-worktrees(1), mend\-projects(1), mend\-refresh(1), mend\-service\-run(1), mend\-service\-add(1), mend\-service\-connect(1), mend\-service\-list(1), mend\-service\-logs(1), mend\-service\-restart(1), mend\-service\-stop(1), mend\-service\-init(1), mend\-env\-show(1), mend\-env\-load(1), mend\-env\-cluster(1), mend\-skills(1), mend\-skills\-push(1), mend\-dotfiles(1), mend\-dotfiles\-sync(1), mend\-keys\-init(1), mend\-keys\-show(1), mend\-keys\-share(1), mend\-ssh(1), mend\-ssh\-setup(1), mend\-accounts(1), mend\-logout(1), mend\-completions(1), mend\-version(1), mend\-help(1), mend\-man(1)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sealant/mend",
3
- "version": "0.16.0",
3
+ "version": "0.18.0",
4
4
  "description": "The mend CLI: adopt a repository into Mend's store, launch your coding agent in a recorded session worktree, detach and reattach from any terminal",
5
5
  "keywords": [
6
6
  "claude-code",
@@ -21,8 +21,12 @@
21
21
  "bin": {
22
22
  "mend": "./dist/main.js"
23
23
  },
24
+ "directories": {
25
+ "man": "./man"
26
+ },
24
27
  "files": [
25
- "dist"
28
+ "dist",
29
+ "man"
26
30
  ],
27
31
  "type": "module",
28
32
  "publishConfig": {
@@ -48,8 +52,9 @@
48
52
  "node": ">=22"
49
53
  },
50
54
  "scripts": {
51
- "build": "tsc src/main.ts src/dashboard.tsx --outDir dist --module nodenext --target es2023 --types node --skipLibCheck --allowImportingTsExtensions --rewriteRelativeImportExtensions --jsx react-jsx --jsxImportSource @opentui/react",
55
+ "build": "tsc src/main.ts src/dashboard.tsx --outDir dist --module nodenext --target es2023 --types node --skipLibCheck --allowImportingTsExtensions --rewriteRelativeImportExtensions --jsx react-jsx --jsxImportSource @opentui/react && pnpm run man",
52
56
  "lint": "oxlint . --no-error-on-unmatched-pattern",
57
+ "man": "node --experimental-strip-types scripts/man.ts",
53
58
  "test": "vitest run --passWithNoTests",
54
59
  "typecheck": "tsgo -p tsconfig.json --noEmit"
55
60
  }