turno-cli 0.5.2 → 0.5.3

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # turno-cli
2
2
 
3
+ ## 0.5.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 298c744: The agent cursor follows the pointer path with humanize on, counts the other busy sessions on the badge with shared tabs, keeps the typing bubble up long enough to see, and keeps its label inside the page. Each session's cursor is named after its own agent ("Claude Code", "Codex", "Cursor", "Copilot", "Gemini CLI") instead of the raw client name or the name of the first one: mcpd sends the client's name with each call (`io.turno/client` in `_meta`), and a shared host uses each connection's own.
8
+ - ce785fd: A password or one-time code never reaches the agent, whoever typed it: every page snapshot (also the snapshot files an action writes to the workspace) shows its value as `[sensitive field]`, and the value is hidden from every later result. `browser_type`, `browser_fill_form` and key presses into a password or one-time code field are refused with an error that says to ask the person (`browser_request_human`) or to use `browser_login`; a flow replay types one only from the secret store (`keychain:<item>`) or from the hidden prompt of `turno browser replay`, which names those parameters for the server it starts in `TURNO_BROWSER_PROMPTED_PARAMS` (listed in `turno help environment`). `browser_network_requests` and `browser_network_request` keep the names of credentials and show `[redacted]` for their values (Authorization, Cookie and Set-Cookie headers, token, code, session, key, secret and password fields), also in a file saved with `filename`. A tool result that ends on a captcha, "verify it's you" or block page says so and suggests that the person handles it.
9
+
3
10
  ## 0.5.2
4
11
 
5
12
  ### Patch Changes
package/README.md CHANGED
@@ -379,6 +379,7 @@ languages and locale fixed (`turno browser show|set <id>`).
379
379
  - **Sign-ins the agent never sees.** `turno browser vault add` keeps a username, a password and
380
380
  an optional TOTP secret per site in the OS secret store, and the `browser_login` tool fills
381
381
  them into that site's sign-in page; results are redacted and values are bound to the site.
382
+ A password or a one-time code never comes back to the agent, whoever typed it.
382
383
  - **Sessions you can move.** `turno browser export <id> --out <file>` writes an identity's
383
384
  cookies and storage as one file encrypted with a passphrase, with an expiry, and
384
385
  `turno browser import <file>` reads it on another machine. The vault never leaves.
@@ -72,6 +72,10 @@ const ENVIRONMENT = [
72
72
  ["TURNO_SESSION_CWD_B64", "the agent's folder (base64url), sent to the gateway"],
73
73
  ["TURNO_MCPD_TOKEN", "the profile's gateway token, for agents that read headers from the environment"],
74
74
  ["TURNO_MCPD_SERVICE", "set by the mcpd service file (LaunchAgent or systemd unit)"],
75
+ [
76
+ "TURNO_BROWSER_PROMPTED_PARAMS",
77
+ "set by turno browser replay for the server it starts: the parameters typed at its hidden prompt",
78
+ ],
75
79
  ],
76
80
  },
77
81
  {
@@ -14,7 +14,8 @@ import { ErrorCode, rpcError } from "./jsonrpc.js";
14
14
  * meter) are off by default: each is a `CallStage` that something turns on explicitly. They
15
15
  * see the call as the client sent it, and the outcome the client gets.
16
16
  * - `calllog` times the call and hands one event to the call log when it is on.
17
- * - `session` puts the client session id in the forwarded `_meta` (`io.turno/session`).
17
+ * - `session` puts the client session id in the forwarded `_meta` (`io.turno/session`), and the
18
+ * client's name (`io.turno/client`) when it gave one in initialize.
18
19
  *
19
20
  * Stage names are unique, lowercase, and never a built-in name.
20
21
  */
@@ -23,6 +24,11 @@ import { ErrorCode, rpcError } from "./jsonrpc.js";
23
24
  * import, erased at build): if the two ever differ, the typecheck fails.
24
25
  */
25
26
  export const SESSION_META = "io.turno/session";
27
+ /**
28
+ * The `_meta` key of the client's own name (`clientInfo.name` from its initialize), sent next to
29
+ * the session id when mcpd knows it, so turno-browser's agent cursor names the agent, not mcpd.
30
+ */
31
+ export const CLIENT_META = "io.turno/client";
26
32
  /**
27
33
  * A server that declares this experimental capability in `initialize` hears, with
28
34
  * `SESSION_ENDED`, when a client session that made a call to it ends (`InstanceManager.detach`).
@@ -94,7 +100,8 @@ function callLogStage(sink) {
94
100
  * `session`: the client session id in `_meta[SESSION_META]`. A random UUID per client handle
95
101
  * (one 2025-11-25 session, or one stateless client: profile, server, PID and folder), kept for
96
102
  * the life of the handle. It is not the Mcp-Session-Id, so a server learns nothing it could use
97
- * against mcpd. A value the client sent under the same key is replaced.
103
+ * against mcpd. With it goes the client's name (`_meta[CLIENT_META]`) when initialize gave one. Values
104
+ * the client sent under either key are replaced.
98
105
  */
99
106
  function sessionStage() {
100
107
  return {
@@ -108,7 +115,12 @@ function sessionStage() {
108
115
  const meta = typeof call.params._meta === "object" && call.params._meta !== null
109
116
  ? call.params._meta
110
117
  : {};
111
- call.params = { ...call.params, _meta: { ...meta, [SESSION_META]: id } };
118
+ const { [CLIENT_META]: _sent, ...rest } = meta;
119
+ const name = call.client.ctx.clientName;
120
+ call.params = {
121
+ ...call.params,
122
+ _meta: { ...rest, [SESSION_META]: id, ...(name ? { [CLIENT_META]: name } : {}) },
123
+ };
112
124
  return next(call);
113
125
  },
114
126
  };
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "turno-cli",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "turno-cli",
9
- "version": "0.5.2",
9
+ "version": "0.5.3",
10
10
  "license": "Apache-2.0",
11
11
  "dependencies": {
12
12
  "@modelcontextprotocol/sdk": "1.32.2",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "turno-cli",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "description": "Switch accounts in your coding agents and keep the conversation, the MCP sign-ins and the browser session.",
5
5
  "keywords": [
6
6
  "claude-code",
@@ -51,7 +51,7 @@
51
51
  },
52
52
  "devDependencies": {
53
53
  "@types/node": "^26.6.6",
54
- "turno-browser": "0.7.0",
54
+ "turno-browser": "0.8.0",
55
55
  "turno-fonts": "0.1.2",
56
56
  "typescript": "^7.0.2",
57
57
  "vitest": "^5.1.0"