turno-cli 0.1.1 → 0.3.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 (121) hide show
  1. package/CHANGELOG.md +432 -0
  2. package/README.md +228 -73
  3. package/dist/accounts/audit.js +154 -12
  4. package/dist/accounts/builtin.js +100 -25
  5. package/dist/accounts/delegate.js +199 -35
  6. package/dist/accounts/policy.js +79 -0
  7. package/dist/accounts/registry.js +39 -21
  8. package/dist/agents/adapter.js +29 -0
  9. package/dist/agents/claude.js +246 -0
  10. package/dist/agents/codex.js +186 -0
  11. package/dist/agents/copilot.js +56 -0
  12. package/dist/agents/cursor.js +58 -0
  13. package/dist/agents/index.js +26 -86
  14. package/dist/agents/snippets.js +43 -13
  15. package/dist/cli/args.js +38 -6
  16. package/dist/cli/commands/accounts.js +119 -52
  17. package/dist/cli/commands/auto.js +121 -33
  18. package/dist/cli/commands/browser-identity.js +514 -0
  19. package/dist/cli/commands/browser-session.js +102 -0
  20. package/dist/cli/commands/browser-vault.js +193 -0
  21. package/dist/cli/commands/browser.js +319 -138
  22. package/dist/cli/commands/complete.js +14 -3
  23. package/dist/cli/commands/completion.js +8 -2
  24. package/dist/cli/commands/config.js +186 -24
  25. package/dist/cli/commands/demo.js +321 -0
  26. package/dist/cli/commands/doctor.js +525 -123
  27. package/dist/cli/commands/handoff.js +33 -22
  28. package/dist/cli/commands/identity.js +192 -54
  29. package/dist/cli/commands/init.js +648 -0
  30. package/dist/cli/commands/limit.js +84 -16
  31. package/dist/cli/commands/mcp-call.js +240 -0
  32. package/dist/cli/commands/mcp-oauth.js +221 -0
  33. package/dist/cli/commands/mcp-observe.js +539 -0
  34. package/dist/cli/commands/mcp-share.js +201 -0
  35. package/dist/cli/commands/mcp.js +816 -187
  36. package/dist/cli/commands/mcpd.js +388 -76
  37. package/dist/cli/commands/migrate.js +6 -4
  38. package/dist/cli/commands/open.js +115 -27
  39. package/dist/cli/commands/profile.js +396 -78
  40. package/dist/cli/commands/resolve.js +14 -3
  41. package/dist/cli/commands/run.js +36 -6
  42. package/dist/cli/commands/secret.js +80 -76
  43. package/dist/cli/commands/session.js +17 -6
  44. package/dist/cli/commands/sessions.js +48 -12
  45. package/dist/cli/commands/setup.js +214 -164
  46. package/dist/cli/commands/status.js +227 -44
  47. package/dist/cli/commands/statusline.js +311 -114
  48. package/dist/cli/commands/ui.js +78 -68
  49. package/dist/cli/commands/undo.js +193 -18
  50. package/dist/cli/commands/uninstall.js +481 -0
  51. package/dist/cli/commands/upgrade.js +172 -79
  52. package/dist/cli/commands/usage.js +125 -51
  53. package/dist/cli/commands/version.js +21 -7
  54. package/dist/cli/commands/which.js +9 -24
  55. package/dist/cli/compile-cache.js +32 -0
  56. package/dist/cli/diagnostics.js +184 -0
  57. package/dist/cli/exit.js +65 -0
  58. package/dist/cli/group.js +24 -12
  59. package/dist/cli/help.js +62 -0
  60. package/dist/cli/highlight.js +236 -0
  61. package/dist/cli/hints.js +30 -0
  62. package/dist/cli/io.js +186 -1
  63. package/dist/cli/launch.js +52 -39
  64. package/dist/cli/launchers.js +161 -95
  65. package/dist/cli/main.js +201 -31
  66. package/dist/cli/optional.js +144 -0
  67. package/dist/cli/output.js +123 -0
  68. package/dist/cli/picker.js +459 -0
  69. package/dist/cli/registry.js +61 -6
  70. package/dist/cli/safe.js +87 -0
  71. package/dist/cli/secret-input.js +63 -0
  72. package/dist/cli/security.js +561 -0
  73. package/dist/cli/style.js +311 -0
  74. package/dist/cli/topics.js +142 -0
  75. package/dist/core/config.js +181 -23
  76. package/dist/core/exhausted.js +6 -8
  77. package/dist/core/fsutil.js +39 -0
  78. package/dist/core/journal.js +294 -16
  79. package/dist/core/manifest.js +153 -6
  80. package/dist/core/paths.js +14 -13
  81. package/dist/core/profiles.js +160 -10
  82. package/dist/core/resolve.js +139 -23
  83. package/dist/core/secrets.js +68 -23
  84. package/dist/core/sessions.js +13 -20
  85. package/dist/core/state-file.js +107 -0
  86. package/dist/core/update.js +31 -18
  87. package/dist/core/version.js +57 -10
  88. package/dist/demo/server.js +42 -0
  89. package/dist/mcpd/cache.js +23 -10
  90. package/dist/mcpd/calllog.js +254 -0
  91. package/dist/mcpd/client-names.js +46 -0
  92. package/dist/mcpd/connectors.js +188 -18
  93. package/dist/mcpd/daemon.js +472 -115
  94. package/dist/mcpd/folder-sets.js +42 -0
  95. package/dist/mcpd/gateway.js +473 -51
  96. package/dist/mcpd/health.js +313 -0
  97. package/dist/mcpd/importer.js +453 -36
  98. package/dist/mcpd/instances.js +453 -65
  99. package/dist/mcpd/jsonrpc.js +11 -1
  100. package/dist/mcpd/launchd.js +65 -48
  101. package/dist/mcpd/middleware.js +144 -0
  102. package/dist/mcpd/modern.js +686 -0
  103. package/dist/mcpd/oauth.js +845 -0
  104. package/dist/mcpd/peerpid.js +134 -6
  105. package/dist/mcpd/pressure.js +88 -0
  106. package/dist/mcpd/rss.js +166 -0
  107. package/dist/mcpd/service.js +191 -0
  108. package/dist/mcpd/share.js +217 -0
  109. package/dist/mcpd/state.js +183 -0
  110. package/dist/mcpd/sync.js +72 -87
  111. package/dist/mcpd/systemd.js +83 -0
  112. package/dist/mcpd/tokens.js +85 -0
  113. package/dist/mcpd/upstream.js +163 -46
  114. package/dist/statusline/cost.js +167 -44
  115. package/dist/statusline/input.js +78 -0
  116. package/dist/statusline/render.js +9 -3
  117. package/dist/ui/fonts.js +8 -3
  118. package/dist/ui/settings.js +33 -16
  119. package/npm-shrinkwrap.json +1102 -0
  120. package/package.json +10 -9
  121. package/dist/cli/commands/available.js +0 -18
package/CHANGELOG.md CHANGED
@@ -1,5 +1,437 @@
1
1
  # turno-cli
2
2
 
3
+ ## 0.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - cc6b5b2: Browser identity module:
8
+
9
+ - `identity.json` next to each identity's profile keeps its time zone, languages, locale and
10
+ region fixed; Chrome gets them at every start (`--accept-lang`, `--lang`, and the time zone
11
+ when it differs from the machine's). `turno identity add browser:<id>` pins a new identity to
12
+ the current time zone and takes `--timezone`, `--locale`, `--languages`, `--region` and a
13
+ health check; `turno identity show` and `turno identity set` read and change it
14
+ (`turno browser show/set <id>` too). Without the file nothing changes.
15
+ - A runtime lock (`{ nodePid, chromePid, pgid, startedAt }`) while an identity's Chrome runs: a
16
+ second session gets a message naming the process and how to stop it instead of "Browser is
17
+ already in use".
18
+ - An optional session health check (a URL and a text or selector) marks a signed-out identity
19
+ NEEDS_AUTH; tool calls then fail with a message that asks for `turno browser login <id>`.
20
+ - Each captcha, "verify it's you" or block page an identity meets is logged per site (host name
21
+ only); `turno browser reputation [<id>] [--json]` shows counts and trend.
22
+ - `turno browser doctor [--fix] [--no-launch] [--json]`: Chrome and its version, a smoke launch,
23
+ the desktop session, and per identity its settings, lock, sign-in and recent challenges, with
24
+ a fix for each problem.
25
+ - mcpd: `stop_grace` per server in `mcp.toml`, the wait between closing stdin and SIGTERM;
26
+ 5 seconds by default for turno-browser-mcp, the SDK's 2 seconds for every other server.
27
+ - 59309b5: `turno browser export <id> --out <file>` and `turno browser import <file> [--as <id>]` move an
28
+ identity's cookies, localStorage and IndexedDB as one file encrypted with a passphrase (scrypt
29
+ and AES-256-GCM), refused after its expiry and never holding vault credentials.
30
+ `"keychain": "system"` in identity.json makes Chrome encrypt an identity's cookies with the OS
31
+ keychain instead of Playwright's fixed mock key; the default is unchanged.
32
+ turno-browser's API is now 1.2, which this turno requires.
33
+ - 50dd77c: Credential vault for browser identities: `turno browser vault add|list|remove|submit`
34
+ stores a username, a password and an optional TOTP secret per site in the OS secret store, and
35
+ the new `browser_login` tool fills them into the site's sign-in page without the agent ever
36
+ seeing them. Results and errors are redacted, values are bound to the site's origins, and the
37
+ form is submitted only when the identity opts in. turno-browser's API is now 1.1, which this
38
+ turno requires.
39
+ - aa7e39e: An output contract for scripts, hooks and agents:
40
+
41
+ - Every `--json` object carries `schemaVersion` (each element, for a list); no existing key
42
+ changed. `--json=fields` lists a command's fields, `--json=a,b` keeps only those, and an
43
+ unknown field is exit 2 with the list. Under `--json`, errors are one JSON line on stderr:
44
+ `{"schemaVersion":1,"error":{"code":"usage","exitCode":2,"message":"..."}}`.
45
+ - `turno limit show --watch --json` and the new `turno mcp top --watch --json` print NDJSON, one
46
+ record per line, like `turno mcp log --follow --json`.
47
+ - Exit codes: 0 ok, 1 failure, 2 usage, 3 no profile for the folder, 4 not signed in, 5 mcpd
48
+ down (`turno help exit-codes`). Changed: `turno auto` exits 3 (was 1) when the folder's
49
+ profile does not exist or there is no rule with `system = ""`; `turno mcp daemon status`,
50
+ `turno mcp top` and `turno mcp savings` exit 5 (was 1) when mcpd is down.
51
+ - `turno profile which --check` answers with that code and prints nothing when the folder has
52
+ a signed-in profile (`--agent` for other agents).
53
+ - turno's own state files are checked before use: a cut or hand-edited file reads as absent
54
+ instead of crashing, and an unreadable `mcp-managed.json` stops `turno mcp sync` and
55
+ `turno uninstall` with a message naming the file (they used to go on as if it were empty).
56
+ `turno identity log --verify` reports a line that is not an audit entry.
57
+ - `turno help environment` lists every variable turno reads and `turno help json` the JSON
58
+ rules; every command help ends with examples. Colors honor `CLICOLOR=0`, `CLICOLOR_FORCE`
59
+ and `TERM=dumb`; `TURNO_NO_UPDATE_NOTIFIER=1` turns the update check off.
60
+ - fa324c0: Cross-package contracts:
61
+
62
+ - turno-browser exports its public API as a typed `api` object with `API_VERSION` (1.0).
63
+ turno-cli checks it when it loads the package: a turno-browser that is too old (0.2 and older
64
+ have no `API_VERSION`) or too new stops `turno browser` and `turno identity browser:<id>`
65
+ with one line naming what to update, instead of failing later.
66
+ - mcpd sends every `tools/call`, from 2025-11-25 sessions and 2026-07-28 requests alike,
67
+ through one call middleware: the profile's tool filter, then the call log, then the session id.
68
+ Refusals and call log records are unchanged.
69
+ - Each relayed `tools/call` carries `_meta["io.turno/session"]`, an opaque id that is stable for
70
+ one agent session and different for every other. turno-browser-mcp hands it to its own tools
71
+ (`session` in their context); the Playwright tools are unaffected.
72
+ - cf4e077: Diagnostics and safe mode:
73
+
74
+ - `turno mcp call <server> [tool] [--args JSON] [--arg k=v|k:=json] [--profile p] [--json]`
75
+ calls a tool through mcpd as a profile's session in this folder would, or lists the tools.
76
+ Exits 1 on `isError` or a refused call, 5 when mcpd is down.
77
+ - `turno doctor --report` prints a Markdown block for an issue: turno, Node, OS, each agent's
78
+ version, mcpd, the findings and every path, with no tokens or secret values.
79
+ `turno config path --all` lists every path turno uses.
80
+ - Safe mode: `turno run <p> --no-gateway`, `turno <p> --no-gateway`, `turno auto --no-gateway`,
81
+ or `TURNO_SAFE=1`, opens the agent with the profile's account but without the gateway entries,
82
+ the gateway token and (Claude Code) the status line and hooks.
83
+ - Copilot CLI and Cursor CLI gateway entries send the session folder (`X-Turno-Cwd-B64`), so
84
+ folder server sets apply to them without the process lookup. Run `turno mcp sync` to rewrite
85
+ existing entries.
86
+ - `system = ""` no longer becomes an empty profile name for the hub's gateway token; `turno
87
+ status` and `turno profile which` say "no profile" for folders without a rule.
88
+ - 5b46749: Browser lifecycle:
89
+
90
+ - `turno-browser-mcp` passes a generated Playwright MCP `--config` that closes Chrome after 15
91
+ minutes without a tool call, headed too; the next call opens it again with the same profile.
92
+ `TURNO_BROWSER_IDLE` changes the limit (`"10m"`, `"0"` keeps Chrome open); `--idle-timeout`
93
+ and a `--config` of your own still win. Flags and tool names are unchanged.
94
+ - On start it closes a Chrome that an earlier, killed run left open on the same profile (only
95
+ a Chrome browser process for exactly that profile whose parent is gone), and on stdin close,
96
+ SIGTERM or SIGHUP it closes Chrome within about 2.5 seconds, forcefully if needed.
97
+ - mcpd stops a quiet `session` server under critical memory pressure even while its session
98
+ lives; the next call starts it again. `turno mcp top` counts the process groups a server's
99
+ children lead, so a browser's helpers always count.
100
+ - Docs: one recommendation for browsers, a `shared` server with `exclusive = true` per identity
101
+ (the block `turno identity add` prints), instead of `scope = "session"`.
102
+ - 57641d4: `turno identity set browser:<id>` and `turno browser set <id>` take flags for every identity.json
103
+ key of the browser host: `--tabs-max`, `--tabs-popups`, `--tabs-park`, `--tabs-close` and
104
+ `--no-tabs` (tab governor), `--background-throttling`, `--settle`, `--block-trackers`,
105
+ `--block-types`, `--block-patterns` and `--no-block`, `--cache`, `--cache-max-size` and
106
+ `--no-cache`. A flag changes only its part of a group, an empty value removes a key, and a bad
107
+ value is refused with the flag's name. `set` takes `--json` (what changed, or with `--dry-run`
108
+ what would, and the resulting file), and `--dry-run` now validates like the real write.
109
+ `turno identity add browser:<id>` takes the same flags, and `show` lists the new settings.
110
+ - 4663312: Move MCP servers between machines, OAuth detection, Codex trust and next-step hints:
111
+
112
+ - `turno mcp export [--profile p] [--json]` prints mcp.toml without secret values: references
113
+ stay, literal secrets become `keychain:turno/<server>/<key>` names, and the top of the file
114
+ lists the `turno secret set` commands the other machine needs.
115
+ - `turno mcp import <file>` merges an export, a JSON file with `mcpServers` or a Codex
116
+ `config.toml` into mcp.toml, keeping its comments and existing servers (`--force` replaces
117
+ them). A preview until `--write`.
118
+ - With `--write`, both import forms mark remote servers that answer with an OAuth challenge as
119
+ `auth = "oauth"`.
120
+ - `turno profile assign` and `turno profile repair` write Codex `[projects."<folder>"]
121
+ trust_level = "trusted"` entries in Codex profiles for their folder rules, never changing an
122
+ existing entry.
123
+ - Commands that write end with a `Next:` line (`profile add`, `profile assign`, `mcp import
124
+ --write`, `mcp export`, `secret set`); `turno config set hints false` turns them off.
125
+
126
+ ### Patch Changes
127
+
128
+ - 2948759: The package homepage is now https://turno.wimo.dev.
129
+ - 7b77664: pnpm, bun and yarn are first-class install paths. `turno upgrade` and `turno version` recognize
130
+ them from their lockfile even under a custom `PNPM_HOME`, `BUN_INSTALL` or yarn global folder,
131
+ and treat `pnpm dlx` and `bunx` like `npx`: a one-off copy has nothing to upgrade, and
132
+ `turno upgrade` says which command runs the newest release instead of installing turno globally.
133
+ Launchers and the status line refuse to point into any of those caches. `turno browser` and
134
+ `turno identity` find a `turno-browser` that pnpm 11 or later installed in its own global group.
135
+ - cf29953: The example time zone in the message for an invalid identity.json and in the help of
136
+ `turno identity` is now `Europe/Madrid`.
137
+ - 5566437: Every package has a README that tells the same story as the site. turno-cli's follows the
138
+ order of turno.wimo.dev and lists what the browser gained; turno-browser's is organized around
139
+ what the package does (identities, the credential vault, session export and import, tab limits,
140
+ `browser_batch`, blocking and cache, health and doctor); turno-core's says what the shared
141
+ package is for; turno-fonts' shows the status line and how `turno ui install` uses the font.
142
+ Each links to its page on turno.wimo.dev and to the releases.
143
+ - a0bfce8: New package `turno-core` with what turno-cli and turno-browser share: turno's paths, the secret
144
+ store (macOS Keychain, Linux Secret Service) and the process helpers. Both packages
145
+ now depend on it instead of keeping their own copies; behavior is unchanged.
146
+ - Updated dependencies [2948759]
147
+ - Updated dependencies [5566437]
148
+ - Updated dependencies [a0bfce8]
149
+ - turno-core@0.1.0
150
+
151
+ ## 0.2.0
152
+
153
+ ### Minor Changes
154
+
155
+ - 8922b9d: `turno doctor` names the fix for every finding. Each warning and failure is followed by the
156
+ command that fixes it (`fix: turno profile repair work`, marked when `turno doctor --fix` runs it)
157
+ or the manual step, in sections (System, Config, Profiles, MCP, Look, Gateway) with icons and a
158
+ summary line (`12 ok, 2 warnings, 1 failure in 340ms`). `--json` adds `status`, `fix`, `auto` and
159
+ `manual` per check and `counts`, `ms` and `next` at the top. `--summary` prints one line for hooks
160
+ and status lines. `turno doctor --security` works the same way.
161
+ - 3dee471: Syntax highlighting in a terminal, with no new dependencies.
162
+
163
+ - `turno init` shows the `config.toml` diff and the new `mcp.toml` with TOML colors: table headers bold, keys cyan, strings green, numbers, booleans and dates magenta, comments dim. The `+` and `-` markers keep their green and red, and removed lines stay plain red.
164
+ - `turno mcp import` colors its preview the same way, and a masked secret (the lines marked `# secret, hidden`) shows in yellow so it stands out. `turno mcp config` colors the JSON snippet and dims the file and note lines. `turno config set` colors the `key = value` it prints.
165
+ - `--json` output is colored when it goes to a terminal: keys cyan, strings green, numbers, booleans and null magenta. Piped into `jq` or a file it stays plain JSON, even with `FORCE_COLOR` set.
166
+ - Colors follow one rule everywhere: only on a terminal, never with `NO_COLOR` set. `FORCE_COLOR=1` now colors output that is not a terminal (for example `turno ... | less -R`), and `FORCE_COLOR=0` turns colors off on a terminal (`--json` is the exception: never colored outside a terminal). Output without colors is unchanged byte for byte.
167
+ - 7d2eea1: Bare `turno` now shows the status screen once turno is set up (the help before that), and `turno status` ends with the one thing to do next (`turno init`, `turno profile repair <p>`, `turno mcp daemon start`, `turno mcp sync`, `turno upgrade` or `turno ui install`); `status --json` has it as `next`. `turno init` also offers to start the gateway and point every profile at it in the same run and the same journal (asked in a terminal; `--start` with `--yes`, `--no-start` to skip), and ends with the command to try.
168
+ - a471bba: turno never waits for an answer nobody can give.
169
+
170
+ - A global `--no-input` flag (before or after the command) and `TURNO_NO_INPUT=1` turn every question off. turno also asks nothing inside a coding agent's session: Claude Code (`CLAUDECODE`, `CLAUDE_CODE_CHILD_SESSION`), Codex (`CODEX_THREAD_ID`, `CODEX_SANDBOX`), Copilot CLI (`COPILOT_CLI`, `COPILOT_AGENT_SESSION_ID`) and Cursor (`CURSOR_AGENT`). `TURNO_NO_INPUT=0` allows questions again, for an editor terminal that sets one of those variables. Without a terminal there were no questions already.
171
+ - A command that needs an answer then exits with code 2 (`init`, `uninstall` and `profile add` used 1) and names the flag that gives it, in one format: `turno: init needs an answer; pass --yes (or run it in a terminal)`. This covers `turno init`, `turno profile add` and `turno profile repair` (moving your own files aside), `turno uninstall`, `turno browser bench`, and `turno secret set`, which no longer shows its hidden prompt and asks for the value on stdin instead. `turno upgrade --finish` does not ask about `turno mcp sync` and names it instead.
172
+ - `turno help` mentions `--no-input`.
173
+ - 0a8f185: Choose a profile from a list when a command needs one and you leave it out: `turno profile assign [dir]`, `turno profile remove` (then a y/N confirmation), `turno run`, `turno session handoff`, `turno limit set` and `clear`, and `turno open <claude.ai link>` outside a profile's session. The list shows each profile as its colored pill with its agent and account, marks the one this folder uses and the exhausted ones, and takes arrow keys or j/k, typing to filter, Enter, and Esc or Ctrl-C to cancel (exit 130, nothing changed). It draws on stderr and always puts the terminal back. Without a terminal, with `--no-input` or inside an agent session, those commands exit with 2 and list the valid values (`pass a profile: personal, work`). `turno profile list` and `turno session list` are restyled: pills in each profile's color, aligned columns, accounts, how many folders use each profile, and each session's age; plain output (a pipe, NO_COLOR) keeps one row per item starting with its name. `--json` output is unchanged.
174
+ - 4dd7d66: The new look reaches more screens, and colors get one switch.
175
+
176
+ - `turno limit show` draws each profile as its colored pill with the account, a usage bar per window colored by level, the reset time, `used up` when a window is full and a red mark while a profile is marked exhausted.
177
+ - `turno mcp list` is a table with server, kind, scope, idle time, profiles (as pills), state (running or stopped in mcpd, or direct), auth (oauth login state, or `secret` when it uses a keychain or env reference) and the details (command or URL, variants, package, tool filters, logins). On a terminal the column titles are muted lowercase, paths are shortened to `~`, the details wrap under their own column and a narrow terminal drops the secondary columns first; nothing runs past the terminal width. It says once when mcpd is not running.
178
+ - `turno mcp top` and `turno mcp log` line up their columns, right-align numbers, show running icons and color the outcome of each call (ok, error, timeout, cancelled), calls in flight, restarts and errors. On a terminal `mcp log` shows only the time when every call is from today, fits each line to the width (long names end in `…`, the agent and then the sizes go first on a narrow terminal) and puts an error on its own line; piped output keeps its columns.
179
+ - On a terminal, a word longer than the line (a long path) is cut at the width instead of running past it.
180
+ - `turno identity list` has sections (service accounts, folder preferences, browser identities) with aligned rows, profile pills and the confirm policy under each account.
181
+ - A global `--color auto|always|never` and `TURNO_COLOR`. Order: `--color`, then `TURNO_COLOR`, then `NO_COLOR`, then `FORCE_COLOR`, then whether output is a terminal. `--json` stays plain outside a terminal whatever the flag says.
182
+ - The status line pill and every other profile pill use one color rule.
183
+ - `turno demo` without a terminal (a pipe, `--no-input`, an agent) prints what it set up and ends instead of waiting for Ctrl-C forever; `--keep` keeps it running until Ctrl-C (also in a terminal, instead of opening a shell).
184
+ - c5b23f5: A visual language for the CLI. `turno` and `turno status` now show sections (Here, Profiles, Machine), each profile as a pill in its own status line color, usage bars colored by level with the time to reset, a gateway icon, and a prominent Next row. `turno help` has section headers, commands in the accent color, an Examples block, and fits the terminal width. `turno init` prints its phases (Found, Plan, Write, Gateway, Sync) with a spinner while the gateway starts, a checklist of synced profiles, the time it took, and a `Try it:` line naming the launcher of the profile the current folder opens. `turno mcp sync` prints one aligned row per config and its timing. `turno undo` sums up each folder in one line (for example `~/.claude-work 23 links removed, settings.json moved back`) and lists every change with `-v`. Tables follow the real terminal width (COLUMNS, then the terminal, 80 otherwise). Without colors (a pipe, NO_COLOR) the same layout prints as plain text with ASCII icons; `--json` output is unchanged. Paths under HOME show as `~` even when HOME has a trailing or doubled slash.
185
+ - f849d28: The Claude Code plugin (0.2.0) adds a third skill, `copy-artifact`: it copies a claude.ai artifact (an HTML page, or one made from a type such as a Design canvas, a deck or a document) from one turno profile's account to another, with its own files and its assets (fonts, images). Export runs in a session of the owning profile and packs everything into `~/.cache/turno/artifacts/`; import runs in a session of the target profile, uploads the assets, rewrites the `/_blob/` references and publishes a new artifact. Two dependency-free Node scripts do the packing and the rewriting, and fail loudly on a missing file, a path outside the source folder, an asset no file cites, a cited asset that was not passed, an unknown id or a count that differs from the manifest. Comments, the artifact's database and its version history do not travel; sharing from the Share menu stays the way to edit one artifact from both accounts.
186
+ - 6d7926a: Pick which MCP servers each folder sees, and a round of follow-ups:
187
+
188
+ - A `[[projects]]` rule in config.toml can carry `mcp = ["issues", "docs"]` (only these
189
+ servers) and `mcp_deny = ["mail"]` (not these), with or without a `profile`. mcpd hides the
190
+ other servers from sessions in that folder: they show no tools, refuse calls and never start.
191
+ A git worktree follows its main repository's rule. mcpd now reloads config.toml when it
192
+ changes or on SIGHUP. `turno config check` warns about server names that are not in mcp.toml
193
+ and about direct remote servers a set cannot hide, `turno profile which` shows a folder's set,
194
+ and `profile assign`, `unassign` and `remove` keep it.
195
+ - `turno upgrade --finish` offers to run `turno mcp sync` when agent configs need a new gateway
196
+ token (it asks in a terminal; `--yes` runs it), and records the launchers it rewrites so
197
+ `turno undo` can put them back.
198
+ - `turno mcp sync` removes the token files it wrote for profiles that no longer exist.
199
+ - `turno mcp list` shows each server's tool filters (allow and deny), also per variant.
200
+ - Changing a server's tool filter no longer restarts its process.
201
+ - `turno doctor` warns about accounts in accounts.toml without `read_tools`, and
202
+ `turno doctor --security` counts the profile tokens next to the token age and warns about
203
+ token files older than the current gateway token.
204
+ - `turno mcp install` keeps `servers/<name>/` private (mode 700).
205
+ - mcpd applies `call_log` changes without a restart, and sessions it rebuilds after a restart
206
+ keep their agent's name in the call log.
207
+ - `turno undo` of `profile add` puts back the previous mode of a profile folder that existed.
208
+ - 48453b4: mcpd can now log in to remote MCP servers that use OAuth, once per account, for every agent and profile.
209
+
210
+ - Declare a remote server with `auth = "oauth"` in `mcp.toml`. mcpd proxies it and adds the access token itself, so no agent logs in on its own. A profile that needs another account gets `[server.<name>.variant.<profile>]`; every other profile shares the default login.
211
+ - New `turno mcp login <server> [--profile p]`: finds the authorization server, registers turno (your own `client_id`, a client ID metadata document you host, or dynamic registration), and runs a PKCE login in the browser with a loopback redirect. `--no-browser` prints the link, `--dry-run` shows the plan, `--scope` asks for more scopes.
212
+ - New `turno mcp logout <server> [--profile p | --all]`: revokes the token at the server when it can and deletes it.
213
+ - Tokens are kept only in the Keychain or Secret Service (`turno/oauth/<server>@<variant>`), never in files or logs. mcpd refreshes them when they expire or the server answers 401, and saves a rotated refresh token before using the new access token; if the Keychain refuses that write, mcpd keeps the token in memory and retries instead of losing it.
214
+ - When a login is missing or was revoked, calls fail with the `turno mcp login` command to run, and `turno mcp list`, `turno mcp doctor` and `turno doctor` show it.
215
+ - cfe036e: See what the gateway does and what it saves:
216
+
217
+ - `turno mcp log [-f] [-n N] [--server S] [--profile P] [--json]` shows the tool calls mcpd
218
+ relayed: time, outcome (ok, error, cancelled, timeout), duration, server and variant, tool,
219
+ profile, agent and request and response sizes. mcpd keeps them in
220
+ `~/.local/state/turno/logs/calls.jsonl` (mode 600, rotated at 5 MiB). Records never hold the
221
+ call's arguments or result, and error texts have tokens redacted. Turn it off with
222
+ `call_log = false` under `[mcpd]` in config.toml.
223
+ - `turno mcp top [--once] [--json]` shows each running server's memory (with its child
224
+ processes), sessions, calls in flight, idle time and restarts, refreshing every 2 seconds in a
225
+ terminal.
226
+ - `turno mcp savings [--json]` compares the memory of mcpd and its servers with an estimate of the
227
+ same agent sessions without the gateway (sessions x per-server memory).
228
+ - The mcpd `/status` endpoint now lists the agent sessions and each instance's restarts.
229
+ - 91b3a76: Set turno up in one step, or try it without touching your setup.
230
+
231
+ - New `turno init [--dry-run] [--yes]`: finds the agents on your PATH, your turno profiles, agent folders you made by hand (`~/.claude-work`, `~/.codex-cx`, ...), the MCP servers in your Claude Code, Codex, Cursor and Copilot CLI configs, and the folders each Claude Code account was used in. It proposes profiles, folder rules, a default profile and `mcp.toml`, prints everything (with the `config.toml` diff, the new `mcp.toml` with secrets masked, and any of your files it would move aside), asks, and writes it all as one change that one `turno undo` reverts. In a terminal it asks before adopting each folder; without one it needs `--yes`. `--profile <name[:agent]>`, `--skip <name>`, `--default <profile>` and `--no-mcp` answer the questions from the command line. It ends with what is left: signing in once per profile, `turno mcp daemon start`, `turno mcp sync` and `turno ui install`.
232
+ - New `turno demo` (also `npx turno-cli demo`, no install needed): builds a throwaway HOME in the temp folder with two Claude Code profiles, a folder rule, two small MCP servers behind a gateway on a free port, and the status line, then opens a shell there (`turno demo -- <command>` runs one command instead). It never reads or changes your own HOME and never signs in. When you leave, or press Ctrl-C while it waits, it stops the gateway and removes the folder.
233
+ - `turno help` starts with `turno init` and `turno demo`; `init` and `demo` can no longer be profile names.
234
+ - d05b5b9: mcpd speaks MCP 2026-07-28 next to 2025-11-25, and stops idle servers sooner when memory is low:
235
+
236
+ - Agents that use the stateless 2026-07-28 revision (no `initialize`, no session id,
237
+ `Mcp-Method` and `Mcp-Name` headers) are served directly instead of falling back to a
238
+ 2025-11-25 session: `server/discover`, cached `tools/list`, `prompts/list` and
239
+ `resources/templates/list` with `ttlMs` and `cacheScope`, relayed calls with progress and
240
+ cancellation, and `subscriptions/listen` for list changes and resource updates. Headers that
241
+ disagree with the body are refused as the revision requires. 2025-11-25 sessions work as
242
+ before. Elicitation and sampling still need a 2025-11-25 session.
243
+ - When the machine is short of memory (macOS memory pressure, Linux PSI, else free memory), idle
244
+ MCP servers stop after `idle_under_pressure` (default 5 minutes, a quarter of it when pressure
245
+ is critical) instead of their usual 20 or 30 minutes. Set it under `[mcpd]` in config.toml or
246
+ with `turno config set mcpd.idle_under_pressure 10m`; `false` turns it off. Session servers
247
+ whose agent still runs are kept.
248
+ - e424894: The accounts bridge no longer trusts the calling model to say what a delegated run may do:
249
+
250
+ - Accounts take `read_tools` (`turno identity add ... --read-tools <patterns>`). A delegated read gets only those tools, so it cannot send, post or delete even if injected text tells it to; Claude Code refuses anything else, and the refused tools are reported.
251
+ - Accounts take `confirm = "always" | "writes" | "never"` (`--confirm`). The default is `always` for mail and messaging services (every call asks the user) and `writes` elsewhere. A read of an account without `read_tools` is now confirmed like a write: add `read_tools` to keep unconfirmed reads.
252
+ - The headless run starts in turno's own empty folder instead of the caller's, loads no settings files (`--setting-sources ""`), gets a minimal environment, and loads only the account's MCP servers (`--strict-mcp-config`) when they go through the turno gateway.
253
+ - The result comes back marked as data from another account and capped at 20,000 characters.
254
+ - Every audit log line records the decision: policy, whether the user was asked and the answer, the allowed tools, the MCP mode and refused tools. `turno identity list` shows each account's policy and `turno identity log` shows the decisions.
255
+ - b8d15ec: `turno doctor` names the fix for config.toml findings: `turno profile add <name>` for a profile that does not exist, else the line of config.toml to edit and what to write there (`turno config check` prints the same advice). A local server in `~/.claude.json` that mcp.toml serves runs outside mcpd until `turno mcp sync` replaces its entry, and `turno doctor --fix` now runs that sync. `turno doctor` reports the `env:NAME` and `${NAME}` references of mcp.toml that mcpd would resolve and that are not set, by name only, and checks the gateway token in every profile's config even without `mcp-managed.json`. `turno run` without a profile lists `auto` first in the picker, named with the profile the folder resolves to (`auto (work)`). `turno uninstall --purge` also removes turno's state, caches and installed MCP servers after the same confirmation (no undo after it); without `--purge` nothing changes. Faster: the status line, `turno auto` and `turno resolve` find a worktree's main repository by reading `.git` files instead of running git, and `turno doctor --summary`, `turno uninstall` and `turno mcp log` no longer load the gateway or the MCP SDK.
256
+ - 7e58586: `turno mcp` commands are safer and clearer:
257
+
258
+ - Every `turno mcp` subcommand rejects unknown flags (`turno: unknown option --dryrun`, exit 2)
259
+ and `--help` only prints usage. `mcp doctor`, `mcp list` and `mcp config` take `--json`;
260
+ `mcp sync`, `mcp install` and `mcp refresh` take `--dry-run`.
261
+ - `mcp sync` no longer rewrites `~/.claude.json` while a plain `claude` session is open (use
262
+ `--force`), reads open sessions only from its own HOME, warns when mcpd is not running, does
263
+ not create the gateway token in a dry run, and prints `undo with:` only when something changed.
264
+ The hub config is labeled "plain claude (~/.claude.json)".
265
+ - `mcp import` previews without side effects and with secrets masked, ends with the command that
266
+ writes it, and accepts `--dry-run`. It also reads project servers in `~/.claude.json`, the
267
+ folder's `.mcp.json`, Codex, Cursor and Copilot CLI configs, and says so when it finds none.
268
+ `${VAR}` and `${VAR:-default}` become `env:VAR` references (the new `env:VAR:-default` form
269
+ is resolved by mcpd); a placeholder is never stored in the Keychain. Secrets in args and URL
270
+ query strings are detected and hidden.
271
+ - `mcp install` pins each package to an exact version in `mcp.toml`, installs without install
272
+ scripts (`--allow-scripts` to allow them) and keeps a lockfile per server for reproducible
273
+ reinstalls.
274
+ - `mcp refresh` asks a running mcpd to relearn a server's tools, and falls back to the restart
275
+ hint with an older daemon.
276
+ - d89904d: First-run fixes for the command line.
277
+
278
+ - `turno auto` never switches accounts in silence: a missing launcher, a rule naming a missing profile or a broken `config.toml` stop it with exit 1 and the command that fixes it (`TURNO_ALLOW_PLAIN=1` runs the plain agent despite a broken config). `system = ""` means "no default account": folders without a rule are an error too. `turno auto --agent codex` says when it runs plain `codex`.
279
+ - `turno profile which` and `turno status` show the folder's profile for every agent with profiles.
280
+ - `turno config set` checks values the way `profile add` does (profiles must exist and run the right agent, colors and enums must be valid; exit 2), and `config set fallback` reminds that the fallback is opt-in. `config.toml` errors show `~` paths and explain an unclosed string. Unknown keys and rules or roles that name missing profiles are listed by `turno doctor` and `turno config check`, with a suggestion for typos. New keys `agents.<agent>.default` and `agents.<agent>.fallback`.
281
+ - Typos: `turno --verison` is an unknown option, `turno stauts` suggests `turno status`, `turno profile lst` suggests `turno profile list`.
282
+ - One help path: `turno <command> --help`, `turno <command> <sub> --help` and `turno help <command> [sub]` print the usage on stdout with exit 0, and `--help` anywhere never runs the command. Help wraps at 80 columns. The main help starts with what turno is and a "Start here" line; `migrate` and the older names are hidden (they still work), and `browser` moved to a "Developer tools" section. `turno ui` is a regular command group (`turno ui install --help` works).
283
+ - Launchers stop with `turno: claude is not installed (...)` when the agent is missing, export `BROWSER` only where `turno-open` can work (macOS, or Linux with `xdg-open`), and point at the `turno` on your PATH when there is one. Running from npx's cache, commands that would write its path (`profile add`, `profile repair`, `ui install`) refuse and ask you to install turno first.
284
+ - `profile add` and `doctor` warn when `~/.local/bin` is not on your PATH, with the line to add, and suggest `turno <name>` meanwhile. `doctor` lists all four agents and fails only for one a profile uses; `profile add --agent X` warns when X is not installed.
285
+ - `profile add` and `profile repair` print one summary line for the shared folders (`-v` lists them) and ask before moving your own files to `.aside-<time>/` (`--yes` for scripts; without a terminal they stop and say so).
286
+ - Strict flags on more commands (`session handoff`, `migrate`, `resolve`, `ui install`, identity subcommands): a mistyped flag is an error instead of being ignored. Completion of these flags comes from the same spec.
287
+ - Empty states and wording: `turno limit` with no profiles says so, profiles without data say `no usage data yet`, plurals are right.
288
+ - 26577d5: The MCP gateway daemon is sturdier and runs on Linux.
289
+
290
+ - `turno mcp daemon start|stop|restart|status` use a `systemd --user` unit on Linux and the LaunchAgent on macOS; without either you get one clear line instead of a stack trace, and `~/Library` is never created on Linux.
291
+ - mcpd runs as a single instance and never moves to another port: if `mcpd.port` is busy it fails and names the process that holds it, in `mcp daemon status` and `doctor` too. `mcpd.port` is removed when mcpd stops.
292
+ - A broken `mcp.toml` no longer keeps mcpd from starting: it serves the last valid copy (or no servers) and shows the error in `mcp daemon status` and `doctor`. A broken `config.toml` falls back to defaults.
293
+ - `mcpd.log` rotates at 5 MiB, and socket or disk errors are logged instead of stopping the daemon.
294
+ - The LaunchAgent runs as `Interactive`, prefers a stable `turno` or node path over a version manager's, restarts only after a failure, and is written through the journal (`turno undo` restores it). `mcp daemon start --dry-run` prints it; `mcp daemon stop` also removes it, so mcpd does not come back at login; `turno upgrade --finish` rewrites it and restarts mcpd.
295
+ - `turno doctor` checks that the port is held by your own mcpd, that the service file points at paths that exist, that synced profiles use mcpd's port, and that the token file is mode 600.
296
+ - New `turno mcp token rotate`. The token file's mode is checked and fixed on every read.
297
+ - `turno mcp daemon logs` shows local time (`--utc` for the raw lines).
298
+ - `turno mcp daemon` rejects unknown flags and `--help` never runs an action.
299
+ - `turno upgrade` accepts only a plain version from the registry or `--to`.
300
+ - On Linux the client of a gateway connection is found from `/proc` when `lsof` is missing.
301
+ - c877e8a: MCP gateway: calls now always finish, and server requests reach the right session.
302
+
303
+ - Pressing Esc on a slow tool, closing a session, or a new optional `call_timeout` per server
304
+ now cancels the call on the server too, so idle servers stop again as they should. Cancelling
305
+ an `accounts_delegate` run stops the other profile's process and records it as `cancelled`.
306
+ - Editing `mcp.toml` applies to sessions that are already open (a rotated token, new args, a
307
+ changed scope or idle time); a removed server says so instead of running the old definition.
308
+ - On a shared server, a confirmation form or sampling request is sent only to the session whose
309
+ call asked for it; when several sessions are mid-call, it is refused instead of guessed.
310
+ Elicitation and sampling are offered to a server only when your client supports them.
311
+ Project and session servers get `roots/list` answered from their folder, even at startup.
312
+ - Folders with accents, CJK characters or emoji no longer break every gateway server: the
313
+ launchers send the folder encoded (`X-Turno-Cwd-B64`; run `turno mcp sync` and `turno profile
314
+ repair` to pick it up), and mcpd falls back to the session process folder.
315
+ - Tool lists refresh by themselves after each server start and clients are told when they
316
+ change; `resources/list` is no longer cached across projects. The gateway has a
317
+ `POST /refresh/<server>` endpoint.
318
+ - Remote proxies reconnect when the remote server forgets the session, and `type = "sse"` works.
319
+ - Browser-like `session` servers stay up while their session lives; exclusive leases hold
320
+ during long calls; request bodies up to 32 MiB; resource updates go only to subscribers;
321
+ server logs rotate while running.
322
+ - A server that keeps failing to start answers at once with the end of its log and is retried
323
+ with backoff. After an mcpd restart, open conversations keep working instead of getting 404.
324
+ - A declared `package` that is not installed still runs through npx, now with a warning that
325
+ suggests `turno mcp install`.
326
+ - a84e56c: Security checks and hardening:
327
+
328
+ - `turno doctor --security` checks who can read or write turno's folders (`--fix` narrows them
329
+ to owner only), who holds the mcpd port, literal secrets left in `mcp.toml`, agent configs
330
+ and backups (it names where, never the value), MCP servers that do not run an exact version,
331
+ the age of the mcpd token and the audit log's hash chain. `turno doctor` shows which secret
332
+ store `keychain:` references use.
333
+ - `turno identity log --verify` (also `turno accounts log --verify`) checks the audit log's hash
334
+ chain and exits 1 when it is broken; `log --json` lists the entries.
335
+ - mcpd expands `${VAR}`, `${VAR:-default}` and `${env:VAR}` inside a stdio server's args and env
336
+ values and a proxied server's headers, as Claude Code does. A missing variable stops that
337
+ server with an error that names it, instead of passing the literal text.
338
+ - `turno config set mcpd.max_request_body 64MiB` changes the largest request mcpd accepts
339
+ (default 32 MiB).
340
+ - Logs, marks, caches and state files turno writes are created 0600 in 0700 folders.
341
+ - A secret store error prints one line instead of a stack trace; `turno mcp import
342
+ --move-secrets` uses the secret store of the environment it runs in.
343
+ - `turno status` says why mcpd is down (its last start error, who holds its port).
344
+ `turno mcp daemon status` says "1 client session" and shows calls in flight per session.
345
+ `turno usage` says why an account is unknown (claude missing, a timeout) instead of `? · ?`.
346
+ - `turno mcp refresh` reports the instances mcpd could not refresh and exits 1.
347
+ - 7da71a8: mcpd follow-ups:
348
+
349
+ - `turno mcp logout` tells a running mcpd, which stops using the old access token at once
350
+ (it used to keep it for up to a minute). New admin endpoint: `POST /logout/<server>`.
351
+ - When mcpd stops, it tries once more to save rotated OAuth tokens the secret store refused
352
+ earlier, and logs the servers whose tokens are still lost.
353
+ - `/status` reports the memory pressure (`memoryPressure`: level, idle cap, setting), and
354
+ `turno mcp top` shows it in its header (and as `memoryPressure` in `--json`). A change to
355
+ `mcpd.idle_under_pressure` in config.toml now applies without a restart.
356
+ - Open sessions get `tools/list_changed` (and prompts and resources when the server is hidden
357
+ or shown) when an `mcp.toml` tool filter or a folder's server set in config.toml changes
358
+ what they see.
359
+ - A call cancelled while its server is still starting is dropped instead of sent once the
360
+ server is up.
361
+ - b3cfa89: A lighter default install and a locked dependency tree.
362
+
363
+ - `npm install --global turno-cli` no longer pulls in `turno-browser` and `turno-fonts`
364
+ (about 52 MB down to 27 MB). `turno ui install` downloads the status line font and checks
365
+ each file against its pinned SHA-256. Install the browser package yourself when you want it:
366
+ `npm install --global turno-browser`; `turno browser` and `turno identity` say so when it is
367
+ missing, and find it in the global npm folder.
368
+ - `turno-cli` and `turno-browser` ship an `npm-shrinkwrap.json`, so an install from npm gets
369
+ exactly the dependency versions that were tested. No package in either tree runs an install
370
+ script, and CI checks it.
371
+ - `turno browser` is a developer diagnostic for browser engine compatibility. `browser bench`
372
+ asks before it opens Chrome on third-party test pages, and without a terminal it needs
373
+ `--yes` (`--json` alone no longer runs it). `--only-urls` replaces `--no-detectors`, which
374
+ still works. `turno browser` and `turno identity` accept `--help` after any subcommand and
375
+ reject unknown flags.
376
+ - `turno-browser-mcp` refuses `--port` or `--host` together with `--identity`, which would
377
+ serve a signed-in browser over HTTP; pass `--allow-http-identity` to accept that, and it then
378
+ listens on 127.0.0.1 only.
379
+ - An empty `turno identity` suggests `turno identity add ...` instead of the old
380
+ `turno accounts add ...`.
381
+ - 43beccc: Each profile now has its own MCP gateway token, and servers can hide tools.
382
+
383
+ - `turno mcp sync` writes each profile's own token into its agent config (derived from the master token), and plain `claude` gets the system profile's. mcpd takes the profile from the token, not from the `X-Turno-Profile` header: a profile cannot open a server limited to other profiles, and a header that names another profile is refused.
384
+ - The master token in `mcpd.token` is no longer written into agent configs and only opens mcpd's own endpoints. **After upgrading, run `turno mcp sync` once**: configs synced by an older turno still send the master token, and mcpd refuses it for MCP sessions with a message that says so. `turno upgrade --finish` and `turno doctor` point it out too.
385
+ - Codex, Copilot and Cursor launchers read their profile's token from `~/.local/state/turno/mcpd-tokens/<profile>.token` (mode 600, written by `turno mcp sync`). `turno mcp config --agent <a> --profile <p>` points other agents at that file.
386
+ - `turno mcp token rotate` invalidates every profile token at once; run `turno mcp sync` afterwards.
387
+ - New `tools = { allow = [...], deny = [...] }` in `mcp.toml`, per server and per profile variant (glob patterns). Filtered tools are not listed and calls to them fail with a clear error. `turno config check` validates them.
388
+ - 3f675f0: Security hardening of secrets, state files and `turno open`:
389
+
390
+ - `turno secret set` and `turno mcp import --move-secrets` no longer pass the value as a command argument: on macOS it goes to `security -i` on stdin, so it never shows in the process list.
391
+ - Linux: `turno secret set|has|rm|list` and `keychain:` references in `mcp.toml` use the Secret Service through libsecret's `secret-tool` (attributes `service=turno`, `account=<name>`). Without a secret store turno prints one line suggesting `env:` references instead of a stack trace.
392
+ - turno's config, state and data folders are created with mode 0700 (existing ones are narrowed on first use), and the files turno writes there (`config.toml`, `mcp.toml`, `accounts.toml`, the audit log, backups) are 0600.
393
+ - Backups made before each change are private (0700 folders, 0600 files) and pruned: writing a new backup deletes those older than 30 days, always keeping the newest 10 and any backup that is still the only way back for a file. `turno undo --prune [--older-than 30d] [--keep 10] [--dry-run]` prunes by hand.
394
+ - The accounts bridge audit log is append-only and hash-chained: each line carries the hash of the line before it, so edits and deletions can be detected.
395
+ - `turno open` accepts only http(s) and mailto links, refuses arguments that start with `-`, treats `--help` as help, and works on Linux (`xdg-open`; claude.ai links open in an isolated Chrome profile when `google-chrome`, `google-chrome-stable` or `chromium` is on PATH).
396
+ - f46b7c6: `turno undo` reverts a whole profile setup, and `turno uninstall` removes what turno set up.
397
+
398
+ - `turno profile add` and `turno profile repair` now record the links, launchers and folders they create, the links and empty folders they replace, and the files they move to `.aside-<time>/`. `turno undo <stamp>` removes those links and launchers, moves your own files back, removes the `.aside-*` folder and the profile folder when it is empty again. A profile folder that holds a login (or anything made since) stays. `profile repair` prints its own `undo with:` line, and a launcher that did not change is no longer rewritten.
399
+ - New `turno uninstall [--dry-run] [--yes] [--keep-config]`: stops mcpd and removes its LaunchAgent or systemd user unit, removes the MCP entries `turno mcp sync` added (your own entries stay), puts back the status line you had before `turno ui install` (or removes turno's), removes the launchers turno wrote, its fish completion file, the gateway token and `~/.config/turno` (kept with `--keep-config`). It prints the full list first, asks in a terminal and refuses without one unless `--yes`. Profile folders, browser profiles, backups and Keychain secrets stay and are listed; shell startup lines that load turno's completion are listed to remove by hand. The run is journaled, so `turno undo <stamp>` puts everything back while turno is still installed. The last line is the command that removes the package (`npm uninstall --global turno-cli`, or `brew uninstall turno`).
400
+
401
+ ### Patch Changes
402
+
403
+ - c0b33e0: Neutral engine ids for `turno browser bench`, and a README demo of the current CLI.
404
+
405
+ - `turno browser bench` names its engines by browser and mode: `chrome-headed`,
406
+ `chrome-headless`, `chrome-baseline` and `firefox`. The old ids (`patchright-chrome-headed`,
407
+ `patchright-chrome-headless`, `playwright-stock`, `camoufox`) are still accepted by `--engine`,
408
+ and the report (table and `--json`) uses the new ones. turno-cli keeps working with an older
409
+ turno-browser.
410
+ - `turno doctor` and the status screen recognize turno's own status line when its path is
411
+ quoted (as `turno demo` writes it), and show any other status line command without quotes,
412
+ with ~ for your home folder and cut to fit the row.
413
+ - The README demo is recorded from `turno demo` in a throwaway HOME and shows the status screen,
414
+ `turno init --dry-run`, profiles, the profile picker, `turno doctor` with its fix lines,
415
+ `turno mcp list` and `turno limit show`.
416
+ - d3c89cd: Faster help and startup, with the same output.
417
+
418
+ - `turno --help` renders from a static table of command summaries and no longer loads every command module (about 3x faster).
419
+ - `turno`, `turno status` and `turno mcp ...` no longer load the MCP SDK just to read the gateway's token, port and lock files, or to list OAuth logins.
420
+ - `claude auth status` answers are kept for five minutes in turno's state folder, keyed by the profile's login files (`.claude.json`, `.credentials.json`), so `turno`, `turno status` and `turno profile list` no longer start one `claude` per profile on every run. Logging in or out asks again; failures are never kept.
421
+ - `turno profile which` and `turno status` ask git for the folder's repository once instead of once per agent.
422
+ - The CLI turns on Node's compile cache in `~/.cache/turno` (or `$XDG_CACHE_HOME/turno`); `NODE_COMPILE_CACHE` and `NODE_DISABLE_COMPILE_CACHE` work as for any Node program. `turno demo` runs without it, and `turno uninstall` lists the folder as one that stays.
423
+ - a53b716: `turno init` and `turno mcp import` now find MCP servers configured inside profile folders (`~/.claude-<name>`, `~/.codex-<name>`, ...), not only in each agent's main config. Previews (`turno init --dry-run`, `turno mcp import` without `--write`) no longer ask npm for command names; that lookup happens only when the manifest is written.
424
+ - ab12f13: `turno secret` refuses unknown flags and extra arguments, and `turno secret set --help` prints the usage instead of waiting for a value for a secret named `--help`.
425
+ - fb2fa3d: The status line no longer shows `$0.00` for models it has no price for: it shows Claude Code's own
426
+ figure or `$?`. Prices were added for Claude Opus 4.5 and 4.1, Sonnet 4.5 and 4, the 3.x models,
427
+ Mythos, and Bedrock or Vertex model ids; Fable 5.2, Sonnet 5.5 and Haiku 5.5 prices were corrected.
428
+ A damaged cache file, an unexpected payload, a full disk or a read-only state folder now leaves one
429
+ part of the line empty instead of replacing the whole line with an error. The plan is asked again
430
+ every 10 minutes until it is known. The branch is read without running git, the status line cache
431
+ is pruned after a week, and the line shows `mcpd down` when the MCP gateway the agents use does not
432
+ answer.
433
+ - 55a2de1: Internal: each agent's differences now live in its adapter (ADR 0032), dead code is gone, and `pnpm check` lints with Biome and knip. No output changes for valid setups; an agent JSON config that is valid JSON but not an object is now reported instead of rewritten by `turno mcp sync`.
434
+
3
435
  ## 0.1.1
4
436
 
5
437
  ### Patch Changes