@codeam/shared 2.76.21 → 2.76.22

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/dist/index.d.mts CHANGED
@@ -1538,9 +1538,12 @@ interface MissingService {
1538
1538
  * Who started a preview. `agent` = the session's agent called the
1539
1539
  * `start_preview` MCP tool: the app skips the confirm sheet (the agent already
1540
1540
  * chose), shows the "Initializing Preview…" card in the chat and switches to
1541
- * the preview plane once it is ready. Absent = `user` (the Preview button).
1541
+ * the preview plane once it is ready. `auto` = the CLI brought it back by
1542
+ * itself (the restore after a restart/wake, a build-heal restart) — never a
1543
+ * tap, so the backend must not count it, or refund it, as the user's. Absent =
1544
+ * `user` (the Preview button).
1542
1545
  */
1543
- type PreviewOrigin = 'user' | 'agent';
1546
+ type PreviewOrigin = 'user' | 'agent' | 'auto';
1544
1547
  /**
1545
1548
  * `preview_agent_highlight` — the agent pointing at an element of the running
1546
1549
  * preview. `clear: true` removes every agent mark; otherwise `selector` is a
package/dist/index.d.ts CHANGED
@@ -1538,9 +1538,12 @@ interface MissingService {
1538
1538
  * Who started a preview. `agent` = the session's agent called the
1539
1539
  * `start_preview` MCP tool: the app skips the confirm sheet (the agent already
1540
1540
  * chose), shows the "Initializing Preview…" card in the chat and switches to
1541
- * the preview plane once it is ready. Absent = `user` (the Preview button).
1541
+ * the preview plane once it is ready. `auto` = the CLI brought it back by
1542
+ * itself (the restore after a restart/wake, a build-heal restart) — never a
1543
+ * tap, so the backend must not count it, or refund it, as the user's. Absent =
1544
+ * `user` (the Preview button).
1542
1545
  */
1543
- type PreviewOrigin = 'user' | 'agent';
1546
+ type PreviewOrigin = 'user' | 'agent' | 'auto';
1544
1547
  /**
1545
1548
  * `preview_agent_highlight` — the agent pointing at an element of the running
1546
1549
  * preview. `clear: true` removes every agent mark; otherwise `selector` is a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codeam/shared",
3
- "version": "2.76.21",
3
+ "version": "2.76.22",
4
4
  "description": "CodeAgent Mobile wire-protocol contract: chunk-protocol renderer, RemoteCommand envelope, SSE event names, model pricing tables, and cross-repo wire types shared by codeam-cli, the VS Code extension, and the backend.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",