@ai-matrx/desktop-protocol 0.21.46 → 0.21.47

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/data/realtime';
2
2
  export { RECONNECT_ALARM_ATTEMPTS } from '@ai-matrx/data/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-DIsQe_Ef.cjs';
5
- export { i as isDesktopProtocolError } from './models-DIsQe_Ef.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-Di-SL_jw.cjs';
5
+ export { i as isDesktopProtocolError } from './models-Di-SL_jw.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/data/realtime';
2
2
  export { RECONNECT_ALARM_ATTEMPTS } from '@ai-matrx/data/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-DIsQe_Ef.js';
5
- export { i as isDesktopProtocolError } from './models-DIsQe_Ef.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-Di-SL_jw.js';
5
+ export { i as isDesktopProtocolError } from './models-Di-SL_jw.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 = 51;
115
+ var PROTOCOL_MINOR = 52;
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_-]+$/);
@@ -3012,12 +3012,21 @@ var AppsChatsStarResult = z30.strictObject({ chat: ChatRow });
3012
3012
  // src/schema/apps-accounts.ts
3013
3013
  import { z as z31 } from "zod";
3014
3014
  var WindowRemoteControl = z31.strictObject({
3015
- /** As the window's settings file holds it: on, off, or never set (the app's default). */
3016
- setting: z31.enum(["on", "off", "default"]),
3015
+ /**
3016
+ * As the window's settings file holds it: on, off, or never set (the app's default). 1.52:
3017
+ * "unreadable" = the file is there but damaged, so the setting is not known (`problem` says why).
3018
+ */
3019
+ setting: z31.enum(["on", "off", "default", "unreadable"]),
3017
3020
  /** The window serves Remote Control now (its live state says "on"); null: not known (closed, or no state file). */
3018
3021
  serving: z31.boolean().nullable(),
3019
3022
  /** A change queued until the window next closes (or restarts); null: none. */
3020
- pending: z31.enum(["on", "off"]).nullable()
3023
+ pending: z31.enum(["on", "off"]).nullable(),
3024
+ /**
3025
+ * 1.52: why the setting cannot be trusted, as a plain sentence for the person: the settings file is
3026
+ * damaged ("unreadable"), or a queued change failed to land (it stays queued; asking again retries).
3027
+ * Absent: nothing wrong. An older core omits it.
3028
+ */
3029
+ problem: z31.string().max(300).optional()
3021
3030
  });
3022
3031
  var AppWindowInfo = z31.strictObject({
3023
3032
  key: ChatPlace,
@@ -4591,7 +4600,9 @@ var NESTED_RESULTS = /* @__PURE__ */ new Map([
4591
4600
  ["web.scrape", [["pages", "WebScrapePage"]]],
4592
4601
  ["sysinfo.get", [["permissions", "SysinfoGetResult.permissions[]"]]],
4593
4602
  ["models.downloads.list", [["downloads", "DownloadRow"]]],
4594
- ["apps.projects.to_window", [["group", "ProjectMoveGroup"]]]
4603
+ ["apps.projects.to_window", [["group", "ProjectMoveGroup"]]],
4604
+ ["apps.windows.list", [["windows", "AppWindowInfo"]]],
4605
+ ["apps.windows.set_remote_control", [["remote_control", "WindowRemoteControl"]]]
4595
4606
  ]);
4596
4607
  var WINDOW_RESULTS = /* @__PURE__ */ new Map([
4597
4608
  ["window.list", "windows"],