@ai-matrx/desktop-protocol 0.21.19 → 0.21.21

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/client.d.cts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { BackoffOptions } from '@ai-matrx/realtime';
2
2
  export { RECONNECT_ALARM_ATTEMPTS } from '@ai-matrx/realtime';
3
3
  import { z } from 'zod';
4
- import { W as Welcome, D as DesktopProtocolError, C as CloseOutcome, O as OpName, a as OpParams, b as OpResult, c as OPS, S as StreamMeta, E as EndReason, d as EVENTS, e as ClientType, M as ModelsTranscribeResult, T as TranscriptionModelId, f as MlProgress } from './models-d2qfjJr7.cjs';
5
- export { i as isDesktopProtocolError } from './models-d2qfjJr7.cjs';
4
+ import { W as Welcome, D as DesktopProtocolError, C as CloseOutcome, O as OpName, a as OpParams, b as OpResult, c as OPS, S as StreamMeta, E as EndReason, d as EVENTS, e as ClientType, M as ModelsTranscribeResult, T as TranscriptionModelId, f as MlProgress } from './models-ZQtKshfc.cjs';
5
+ export { i as isDesktopProtocolError } from './models-ZQtKshfc.cjs';
6
6
  import { FrameHeader } from './frame.cjs';
7
7
 
8
8
  /** The subset of the WHATWG WebSocket the client uses — browser, React Native, `ws` and Workers all fit. */
package/dist/client.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { BackoffOptions } from '@ai-matrx/realtime';
2
2
  export { RECONNECT_ALARM_ATTEMPTS } from '@ai-matrx/realtime';
3
3
  import { z } from 'zod';
4
- import { W as Welcome, D as DesktopProtocolError, C as CloseOutcome, O as OpName, a as OpParams, b as OpResult, c as OPS, S as StreamMeta, E as EndReason, d as EVENTS, e as ClientType, M as ModelsTranscribeResult, T as TranscriptionModelId, f as MlProgress } from './models-d2qfjJr7.js';
5
- export { i as isDesktopProtocolError } from './models-d2qfjJr7.js';
4
+ import { W as Welcome, D as DesktopProtocolError, C as CloseOutcome, O as OpName, a as OpParams, b as OpResult, c as OPS, S as StreamMeta, E as EndReason, d as EVENTS, e as ClientType, M as ModelsTranscribeResult, T as TranscriptionModelId, f as MlProgress } from './models-ZQtKshfc.js';
5
+ export { i as isDesktopProtocolError } from './models-ZQtKshfc.js';
6
6
  import { FrameHeader } from './frame.js';
7
7
 
8
8
  /** The subset of the WHATWG WebSocket the client uses — browser, React Native, `ws` and Workers all fit. */
package/dist/client.js CHANGED
@@ -112,7 +112,7 @@ import { z as z2 } from "zod";
112
112
  import { z } from "zod";
113
113
  import { UUID_SHAPE_PATTERN } from "@ai-matrx/kit/uuid";
114
114
  var PROTOCOL_MAJOR = 1;
115
- var PROTOCOL_MINOR = 25;
115
+ var PROTOCOL_MINOR = 27;
116
116
  var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
117
117
  var ProtocolVersion = z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
118
118
  var RequestId = z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
@@ -2417,6 +2417,34 @@ var AppsWindowsProcessesParams = z30.strictObject({ app_key: AppKey });
2417
2417
  var AppsWindowsProcessesResult = z30.strictObject({ processes: z30.array(z30.string().max(2e3)).max(2e3) });
2418
2418
  var AppsWindowsAddParams = z30.strictObject({ app_key: AppKey, window: ChatPlace, email: z30.string().min(3).max(320) });
2419
2419
  var AppsWindowsSaveNamesParams = z30.strictObject({ app_key: AppKey });
2420
+ var AppsWindowsUpdateStateParams = z30.strictObject({ app_key: AppKey });
2421
+ var AppsWindowsUpdateStateResult = z30.strictObject({
2422
+ app_key: AppKey,
2423
+ pending: z30.boolean(),
2424
+ /** The downloaded release's name (Claude: "Claude 2.31226.1"), when the app's log names it. */
2425
+ version: z30.string().max(120).nullable(),
2426
+ /** When the update became pending (the download's time), when known. */
2427
+ since_ms: epochMs.nullable(),
2428
+ /** Windows open when the update became pending (or last seen open) that are closed now. */
2429
+ closed: z30.array(ChatPlace).max(200),
2430
+ /**
2431
+ * Since 1.27: the windows in `closed` that the update itself quit (the app's log records a quit for
2432
+ * the update within a minute of when each was last seen running). Absent: not known.
2433
+ */
2434
+ closed_by_update: z30.array(ChatPlace).max(200).optional()
2435
+ });
2436
+ var AppsWindowsReopenParams = z30.strictObject({ app_key: AppKey, windows: z30.array(ChatPlace).min(1).max(200) });
2437
+ var AppsWindowsReopenResult = z30.strictObject({ message: z30.string().max(400), opened: z30.array(ChatPlace).max(200) });
2438
+ var AppsWindowsUpdateAndReopenParams = z30.strictObject({ app_key: AppKey, force: z30.boolean().default(false), dry_run: z30.boolean().default(false) });
2439
+ var AppsWindowsUpdateAndReopenResult = z30.strictObject({
2440
+ message: z30.string().max(400),
2441
+ /** Windows quit (with dry_run: to be quit). */
2442
+ quit: z30.array(ChatPlace).max(200),
2443
+ /** Windows reopened (with dry_run: to be reopened), main first. */
2444
+ reopened: z30.array(ChatPlace).max(200),
2445
+ /** The version installed, null when the install did not happen (or dry_run). */
2446
+ installed_version: z30.string().max(64).nullable()
2447
+ });
2420
2448
 
2421
2449
  // src/schema/registry.ts
2422
2450
  var FS_ERR = ["NOT_FOUND", "PERMISSION_DENIED_OS", "INVALID_PARAMS", "RESOURCE_BUSY", "INTERNAL"];
@@ -2559,7 +2587,11 @@ var OPS = {
2559
2587
  // 1.23: the signed-in person's own agents and Vault, read as them (the desktop's Agents library and Vault).
2560
2588
  "account.agents.list": { params: AccountAgentsListParams, result: AccountAgentsListResult, kind: "unary", since: "1.23", errors: ["INTERNAL"] },
2561
2589
  "account.vault.list": { params: AccountVaultListParams, result: AccountVaultListResult, kind: "unary", since: "1.23", errors: ["INTERNAL"] },
2562
- "account.vault.copy": { params: AccountVaultCopyParams, result: AccountVaultCopyResult, kind: "unary", since: "1.23", errors: ["AUTH_REQUIRED", "AUTH_FORBIDDEN", "NOT_FOUND", "INVALID_PARAMS", "DEVICE_OFFLINE", "INTERNAL"] }
2590
+ "account.vault.copy": { params: AccountVaultCopyParams, result: AccountVaultCopyResult, kind: "unary", since: "1.23", errors: ["AUTH_REQUIRED", "AUTH_FORBIDDEN", "NOT_FOUND", "INVALID_PARAMS", "DEVICE_OFFLINE", "INTERNAL"] },
2591
+ // 1.26: the app's own update (it installs only once every window quit) and bringing the windows back.
2592
+ "apps.windows.update_state": { params: AppsWindowsUpdateStateParams, result: AppsWindowsUpdateStateResult, kind: "unary", since: "1.26", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
2593
+ "apps.windows.reopen": { params: AppsWindowsReopenParams, result: AppsWindowsReopenResult, kind: "unary", since: "1.26", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
2594
+ "apps.windows.update_and_reopen": { params: AppsWindowsUpdateAndReopenParams, result: AppsWindowsUpdateAndReopenResult, kind: "unary", since: "1.26", errors: ["NOT_FOUND", "CONFLICT", "TIMEOUT", "PLATFORM_UNSUPPORTED", "INTERNAL"] }
2563
2595
  };
2564
2596
  var EVENTS = {
2565
2597
  "fs.changed": FsChangedEvent,