@ai-matrx/desktop-protocol 0.21.46 → 0.21.48

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.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { O as OpName } from './models-DIsQe_Ef.cjs';
3
- export { B as BEARER_PREFIX, g as CLOSE_RULES, h as CancelMsg, j as CatalogFile, k as CatalogModelEntry, l as ClientToCoreMsg, e as ClientType, m as CloseAction, n as CloseCode, o as CloseCodeValue, C as CloseOutcome, p as CloseRule, q as CoreToClientMsg, r as CreditMsg, D as DesktopProtocolError, s as DownloadKind, t as DownloadRow, d as EVENTS, u as EndMsg, E as EndReason, v as ErrorCode, w as ErrorCodeName, x as ErrorData, y as ErrorMsg, z as ErrorReason, A as ErrorReasonName, F as EventMsg, G as EventName, H as FsPatchEditFailure, I as HelloMsg, L as Limits, J as LlamaServerBuild, K as LlmRunning, N as LlmServerState, P as MlCatalogSetParams, Q as MlCatalogSetResult, R as MlInstallPhase, U as MlInstallProgress, f as MlProgress, V as MlRuntimeState, X as MlServiceState, Y as MlServiceStatus, Z as MlStatusParams, _ as MlStatusResult, $ as ModelKey, a0 as ModelsDownloadsCancelParams, a1 as ModelsDownloadsCancelResult, a2 as ModelsDownloadsListParams, a3 as ModelsDownloadsListResult, a4 as ModelsInstallParams, a5 as ModelsInstallResult, a6 as ModelsLlmInstallParams, a7 as ModelsLlmInstallResult, a8 as ModelsLlmStartParams, a9 as ModelsLlmStartResult, aa as ModelsLlmStatusParams, ab as ModelsLlmStatusResult, ac as ModelsLlmStopParams, ad as ModelsLlmStopResult, ae as ModelsProgressEvent, af as ModelsStatusParams, ag as ModelsStatusResult, ah as ModelsTranscribeParams, M as ModelsTranscribeResult, ai as NAMED_SCHEMAS, aj as NamedSchemaId, c as OPS, ak as OpDescriptor, a as OpParams, b as OpResult, al as OpSpec, am as PING_TEXT, an as PONG_TEXT, ao as ProtocolErrorBody, ap as RelayMsg, aq as RequestMsg, ar as ResponseMsg, as as SERVICES, at as SUBPROTOCOL, au as ServiceId, av as ServiceOpName, aw as ServiceOpSpec, ax as ServiceSpec, ay as Sha256Hex, S as StreamMeta, az as StreamMsg, aA as TextModelId, aB as TextModelInfo, aC as TranscriptSegment, T as TranscriptionModelId, aD as TranscriptionModelInfo, W as Welcome, aE as closeRule, i as isDesktopProtocolError, aF as isTerminalClose } from './models-DIsQe_Ef.cjs';
2
+ import { O as OpName } from './models-78R7DKfg.cjs';
3
+ export { B as BEARER_PREFIX, g as CLOSE_RULES, h as CancelMsg, j as CatalogFile, k as CatalogModelEntry, l as ClientToCoreMsg, e as ClientType, m as CloseAction, n as CloseCode, o as CloseCodeValue, C as CloseOutcome, p as CloseRule, q as CoreToClientMsg, r as CreditMsg, D as DesktopProtocolError, s as DownloadKind, t as DownloadRow, d as EVENTS, u as EndMsg, E as EndReason, v as ErrorCode, w as ErrorCodeName, x as ErrorData, y as ErrorMsg, z as ErrorReason, A as ErrorReasonName, F as EventMsg, G as EventName, H as FsPatchEditFailure, I as HelloMsg, L as Limits, J as LlamaServerBuild, K as LlmRunning, N as LlmServerState, P as MlCatalogSetParams, Q as MlCatalogSetResult, R as MlInstallPhase, U as MlInstallProgress, f as MlProgress, V as MlRuntimeState, X as MlServiceState, Y as MlServiceStatus, Z as MlStatusParams, _ as MlStatusResult, $ as ModelKey, a0 as ModelsDownloadsCancelParams, a1 as ModelsDownloadsCancelResult, a2 as ModelsDownloadsListParams, a3 as ModelsDownloadsListResult, a4 as ModelsInstallParams, a5 as ModelsInstallResult, a6 as ModelsLlmInstallParams, a7 as ModelsLlmInstallResult, a8 as ModelsLlmStartParams, a9 as ModelsLlmStartResult, aa as ModelsLlmStatusParams, ab as ModelsLlmStatusResult, ac as ModelsLlmStopParams, ad as ModelsLlmStopResult, ae as ModelsProgressEvent, af as ModelsStatusParams, ag as ModelsStatusResult, ah as ModelsTranscribeParams, M as ModelsTranscribeResult, ai as NAMED_SCHEMAS, aj as NamedSchemaId, c as OPS, ak as OpDescriptor, a as OpParams, b as OpResult, al as OpSpec, am as PING_TEXT, an as PONG_TEXT, ao as ProtocolErrorBody, ap as RelayMsg, aq as RequestMsg, ar as ResponseMsg, as as SERVICES, at as SUBPROTOCOL, au as ServiceId, av as ServiceOpName, aw as ServiceOpSpec, ax as ServiceSpec, ay as Sha256Hex, S as StreamMeta, az as StreamMsg, aA as TextModelId, aB as TextModelInfo, aC as TranscriptSegment, T as TranscriptionModelId, aD as TranscriptionModelInfo, W as Welcome, aE as closeRule, i as isDesktopProtocolError, aF as isTerminalClose } from './models-78R7DKfg.cjs';
4
4
  export { BROADCAST_CID, DecodedFrame, FRAME_HEADER_BYTES, FRAME_STRUCT_FORMAT, FRAME_VERSION, FrameChannel, FrameChannelValue, FrameFlag, assertFrameHeader, connectionEndFrame, decodeFrame, encodeFrame, hasFlag, isConnectionEnd, readCid, stampCid } from './frame.cjs';
5
5
 
6
6
  /** @ai-matrx/desktop-protocol — version and primitive schemas. Schema source: lint-enforced rules in scripts/check-schema-source.mjs. */
@@ -132,10 +132,18 @@ declare const PROTOCOL_MAJOR: 1;
132
132
  * serving, pending) and apps.windows.set_remote_control (written while the window is
133
133
  * closed, else queued for its next close). A 1.49 core omits the field and answers
134
134
  * UNKNOWN_OPERATION.
135
+ * 1.52 — Remote Control says when it is wrong: WindowRemoteControl `problem` (a damaged settings
136
+ * file, or why a queued change failed to land) and setting "unreadable". A 1.51 peer is
137
+ * never sent `problem`, and a window whose file is damaged simply has no remote_control
138
+ * for it (it would refuse the unknown setting).
139
+ * 1.53 — one account list: CodingProviderStatus `accounts` (the person's saved accounts a run can
140
+ * use, from the computer's engine) and `accountsProblem` (why they could not be listed).
141
+ * A 1.52 peer is never sent either; a 1.52 core omits them (its screen offers the
142
+ * default sign-in alone).
135
143
  */
136
- declare const PROTOCOL_MINOR: 51;
144
+ declare const PROTOCOL_MINOR: 53;
137
145
  /** This package's version as the wire spells it ("major.minor"): hello, welcome, relay status. */
138
- declare const PROTOCOL_VERSION: "1.51";
146
+ declare const PROTOCOL_VERSION: "1.53";
139
147
  /** Internal building blocks — deliberately unnamed in $defs (inlined wherever used). */
140
148
  declare const u32: z.ZodInt;
141
149
  declare const nonNegInt: z.ZodInt;
@@ -2598,12 +2606,14 @@ declare const WindowRemoteControl: z.ZodObject<{
2598
2606
  default: "default";
2599
2607
  on: "on";
2600
2608
  off: "off";
2609
+ unreadable: "unreadable";
2601
2610
  }>;
2602
2611
  serving: z.ZodNullable<z.ZodBoolean>;
2603
2612
  pending: z.ZodNullable<z.ZodEnum<{
2604
2613
  on: "on";
2605
2614
  off: "off";
2606
2615
  }>>;
2616
+ problem: z.ZodOptional<z.ZodString>;
2607
2617
  }, z.core.$strict>;
2608
2618
  type WindowRemoteControl = z.output<typeof WindowRemoteControl>;
2609
2619
  /**
@@ -2627,12 +2637,14 @@ declare const AppsWindowsSetRemoteControlResult: z.ZodObject<{
2627
2637
  default: "default";
2628
2638
  on: "on";
2629
2639
  off: "off";
2640
+ unreadable: "unreadable";
2630
2641
  }>;
2631
2642
  serving: z.ZodNullable<z.ZodBoolean>;
2632
2643
  pending: z.ZodNullable<z.ZodEnum<{
2633
2644
  on: "on";
2634
2645
  off: "off";
2635
2646
  }>>;
2647
+ problem: z.ZodOptional<z.ZodString>;
2636
2648
  }, z.core.$strict>;
2637
2649
  }, z.core.$strict>;
2638
2650
  type AppsWindowsSetRemoteControlResult = z.output<typeof AppsWindowsSetRemoteControlResult>;
@@ -2652,12 +2664,14 @@ declare const AppWindowInfo: z.ZodObject<{
2652
2664
  default: "default";
2653
2665
  on: "on";
2654
2666
  off: "off";
2667
+ unreadable: "unreadable";
2655
2668
  }>;
2656
2669
  serving: z.ZodNullable<z.ZodBoolean>;
2657
2670
  pending: z.ZodNullable<z.ZodEnum<{
2658
2671
  on: "on";
2659
2672
  off: "off";
2660
2673
  }>>;
2674
+ problem: z.ZodOptional<z.ZodString>;
2661
2675
  }, z.core.$strict>>;
2662
2676
  }, z.core.$strict>;
2663
2677
  type AppWindowInfo = z.output<typeof AppWindowInfo>;
@@ -2717,12 +2731,14 @@ declare const AppsWindowsListResult: z.ZodObject<{
2717
2731
  default: "default";
2718
2732
  on: "on";
2719
2733
  off: "off";
2734
+ unreadable: "unreadable";
2720
2735
  }>;
2721
2736
  serving: z.ZodNullable<z.ZodBoolean>;
2722
2737
  pending: z.ZodNullable<z.ZodEnum<{
2723
2738
  on: "on";
2724
2739
  off: "off";
2725
2740
  }>>;
2741
+ problem: z.ZodOptional<z.ZodString>;
2726
2742
  }, z.core.$strict>>;
2727
2743
  }, z.core.$strict>>;
2728
2744
  }, z.core.$strict>;
@@ -7547,6 +7563,11 @@ declare const CodingProviderStatus: z.ZodObject<{
7547
7563
  sourceLabel: z.ZodString;
7548
7564
  }, z.core.$strict>>;
7549
7565
  }, z.core.$strict>>;
7566
+ accounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
7567
+ id: z.ZodString;
7568
+ label: z.ZodString;
7569
+ }, z.core.$strict>>>;
7570
+ accountsProblem: z.ZodOptional<z.ZodString>;
7550
7571
  }, z.core.$strict>;
7551
7572
  type CodingProviderStatus = z.output<typeof CodingProviderStatus>;
7552
7573
  /** The person's rename, pin, hide and "last looked at" for one chat, by the engine's chat key. */
@@ -8267,6 +8288,11 @@ declare const CodingProvidersResult: z.ZodObject<{
8267
8288
  sourceLabel: z.ZodString;
8268
8289
  }, z.core.$strict>>;
8269
8290
  }, z.core.$strict>>;
8291
+ accounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
8292
+ id: z.ZodString;
8293
+ label: z.ZodString;
8294
+ }, z.core.$strict>>>;
8295
+ accountsProblem: z.ZodOptional<z.ZodString>;
8270
8296
  }, z.core.$strict>>;
8271
8297
  }, z.core.$strict>;
8272
8298
  type CodingProvidersResult = z.output<typeof CodingProvidersResult>;
@@ -10554,6 +10580,13 @@ declare const FIELDS_SINCE: {
10554
10580
  readonly AppWindowInfo: {
10555
10581
  readonly remote_control: "1.50";
10556
10582
  };
10583
+ readonly WindowRemoteControl: {
10584
+ readonly problem: "1.52";
10585
+ };
10586
+ readonly CodingProviderStatus: {
10587
+ readonly accounts: "1.53";
10588
+ readonly accountsProblem: "1.53";
10589
+ };
10557
10590
  readonly AppsInstancesListParams: {
10558
10591
  readonly fresh: "1.51";
10559
10592
  };
@@ -10743,7 +10776,7 @@ declare function forPeer(op: OpName | null, part: "error", value: unknown, versi
10743
10776
  declare const VERSIONED_RESULT_OPS: readonly OpName[];
10744
10777
 
10745
10778
  /** SHA-256 of generated/desktop-protocol.schema.json: the contract both sides of a service connection were built from. */
10746
- declare const CONTRACT_SHA256: "17a170d7662db6a201d4787ac19ce9bbd34696faba04cabedb9d26ba14d15ff4";
10779
+ declare const CONTRACT_SHA256: "3a1cc0cf335111a353238b9673b5764e7f3657f2c216f05f0895886f5c0d1db8";
10747
10780
 
10748
10781
  /**
10749
10782
  * The local tool catalog (SPEC §10): every tool a platform agent calls on a person's computer, the
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { O as OpName } from './models-DIsQe_Ef.js';
3
- export { B as BEARER_PREFIX, g as CLOSE_RULES, h as CancelMsg, j as CatalogFile, k as CatalogModelEntry, l as ClientToCoreMsg, e as ClientType, m as CloseAction, n as CloseCode, o as CloseCodeValue, C as CloseOutcome, p as CloseRule, q as CoreToClientMsg, r as CreditMsg, D as DesktopProtocolError, s as DownloadKind, t as DownloadRow, d as EVENTS, u as EndMsg, E as EndReason, v as ErrorCode, w as ErrorCodeName, x as ErrorData, y as ErrorMsg, z as ErrorReason, A as ErrorReasonName, F as EventMsg, G as EventName, H as FsPatchEditFailure, I as HelloMsg, L as Limits, J as LlamaServerBuild, K as LlmRunning, N as LlmServerState, P as MlCatalogSetParams, Q as MlCatalogSetResult, R as MlInstallPhase, U as MlInstallProgress, f as MlProgress, V as MlRuntimeState, X as MlServiceState, Y as MlServiceStatus, Z as MlStatusParams, _ as MlStatusResult, $ as ModelKey, a0 as ModelsDownloadsCancelParams, a1 as ModelsDownloadsCancelResult, a2 as ModelsDownloadsListParams, a3 as ModelsDownloadsListResult, a4 as ModelsInstallParams, a5 as ModelsInstallResult, a6 as ModelsLlmInstallParams, a7 as ModelsLlmInstallResult, a8 as ModelsLlmStartParams, a9 as ModelsLlmStartResult, aa as ModelsLlmStatusParams, ab as ModelsLlmStatusResult, ac as ModelsLlmStopParams, ad as ModelsLlmStopResult, ae as ModelsProgressEvent, af as ModelsStatusParams, ag as ModelsStatusResult, ah as ModelsTranscribeParams, M as ModelsTranscribeResult, ai as NAMED_SCHEMAS, aj as NamedSchemaId, c as OPS, ak as OpDescriptor, a as OpParams, b as OpResult, al as OpSpec, am as PING_TEXT, an as PONG_TEXT, ao as ProtocolErrorBody, ap as RelayMsg, aq as RequestMsg, ar as ResponseMsg, as as SERVICES, at as SUBPROTOCOL, au as ServiceId, av as ServiceOpName, aw as ServiceOpSpec, ax as ServiceSpec, ay as Sha256Hex, S as StreamMeta, az as StreamMsg, aA as TextModelId, aB as TextModelInfo, aC as TranscriptSegment, T as TranscriptionModelId, aD as TranscriptionModelInfo, W as Welcome, aE as closeRule, i as isDesktopProtocolError, aF as isTerminalClose } from './models-DIsQe_Ef.js';
2
+ import { O as OpName } from './models-78R7DKfg.js';
3
+ export { B as BEARER_PREFIX, g as CLOSE_RULES, h as CancelMsg, j as CatalogFile, k as CatalogModelEntry, l as ClientToCoreMsg, e as ClientType, m as CloseAction, n as CloseCode, o as CloseCodeValue, C as CloseOutcome, p as CloseRule, q as CoreToClientMsg, r as CreditMsg, D as DesktopProtocolError, s as DownloadKind, t as DownloadRow, d as EVENTS, u as EndMsg, E as EndReason, v as ErrorCode, w as ErrorCodeName, x as ErrorData, y as ErrorMsg, z as ErrorReason, A as ErrorReasonName, F as EventMsg, G as EventName, H as FsPatchEditFailure, I as HelloMsg, L as Limits, J as LlamaServerBuild, K as LlmRunning, N as LlmServerState, P as MlCatalogSetParams, Q as MlCatalogSetResult, R as MlInstallPhase, U as MlInstallProgress, f as MlProgress, V as MlRuntimeState, X as MlServiceState, Y as MlServiceStatus, Z as MlStatusParams, _ as MlStatusResult, $ as ModelKey, a0 as ModelsDownloadsCancelParams, a1 as ModelsDownloadsCancelResult, a2 as ModelsDownloadsListParams, a3 as ModelsDownloadsListResult, a4 as ModelsInstallParams, a5 as ModelsInstallResult, a6 as ModelsLlmInstallParams, a7 as ModelsLlmInstallResult, a8 as ModelsLlmStartParams, a9 as ModelsLlmStartResult, aa as ModelsLlmStatusParams, ab as ModelsLlmStatusResult, ac as ModelsLlmStopParams, ad as ModelsLlmStopResult, ae as ModelsProgressEvent, af as ModelsStatusParams, ag as ModelsStatusResult, ah as ModelsTranscribeParams, M as ModelsTranscribeResult, ai as NAMED_SCHEMAS, aj as NamedSchemaId, c as OPS, ak as OpDescriptor, a as OpParams, b as OpResult, al as OpSpec, am as PING_TEXT, an as PONG_TEXT, ao as ProtocolErrorBody, ap as RelayMsg, aq as RequestMsg, ar as ResponseMsg, as as SERVICES, at as SUBPROTOCOL, au as ServiceId, av as ServiceOpName, aw as ServiceOpSpec, ax as ServiceSpec, ay as Sha256Hex, S as StreamMeta, az as StreamMsg, aA as TextModelId, aB as TextModelInfo, aC as TranscriptSegment, T as TranscriptionModelId, aD as TranscriptionModelInfo, W as Welcome, aE as closeRule, i as isDesktopProtocolError, aF as isTerminalClose } from './models-78R7DKfg.js';
4
4
  export { BROADCAST_CID, DecodedFrame, FRAME_HEADER_BYTES, FRAME_STRUCT_FORMAT, FRAME_VERSION, FrameChannel, FrameChannelValue, FrameFlag, assertFrameHeader, connectionEndFrame, decodeFrame, encodeFrame, hasFlag, isConnectionEnd, readCid, stampCid } from './frame.js';
5
5
 
6
6
  /** @ai-matrx/desktop-protocol — version and primitive schemas. Schema source: lint-enforced rules in scripts/check-schema-source.mjs. */
@@ -132,10 +132,18 @@ declare const PROTOCOL_MAJOR: 1;
132
132
  * serving, pending) and apps.windows.set_remote_control (written while the window is
133
133
  * closed, else queued for its next close). A 1.49 core omits the field and answers
134
134
  * UNKNOWN_OPERATION.
135
+ * 1.52 — Remote Control says when it is wrong: WindowRemoteControl `problem` (a damaged settings
136
+ * file, or why a queued change failed to land) and setting "unreadable". A 1.51 peer is
137
+ * never sent `problem`, and a window whose file is damaged simply has no remote_control
138
+ * for it (it would refuse the unknown setting).
139
+ * 1.53 — one account list: CodingProviderStatus `accounts` (the person's saved accounts a run can
140
+ * use, from the computer's engine) and `accountsProblem` (why they could not be listed).
141
+ * A 1.52 peer is never sent either; a 1.52 core omits them (its screen offers the
142
+ * default sign-in alone).
135
143
  */
136
- declare const PROTOCOL_MINOR: 51;
144
+ declare const PROTOCOL_MINOR: 53;
137
145
  /** This package's version as the wire spells it ("major.minor"): hello, welcome, relay status. */
138
- declare const PROTOCOL_VERSION: "1.51";
146
+ declare const PROTOCOL_VERSION: "1.53";
139
147
  /** Internal building blocks — deliberately unnamed in $defs (inlined wherever used). */
140
148
  declare const u32: z.ZodInt;
141
149
  declare const nonNegInt: z.ZodInt;
@@ -2598,12 +2606,14 @@ declare const WindowRemoteControl: z.ZodObject<{
2598
2606
  default: "default";
2599
2607
  on: "on";
2600
2608
  off: "off";
2609
+ unreadable: "unreadable";
2601
2610
  }>;
2602
2611
  serving: z.ZodNullable<z.ZodBoolean>;
2603
2612
  pending: z.ZodNullable<z.ZodEnum<{
2604
2613
  on: "on";
2605
2614
  off: "off";
2606
2615
  }>>;
2616
+ problem: z.ZodOptional<z.ZodString>;
2607
2617
  }, z.core.$strict>;
2608
2618
  type WindowRemoteControl = z.output<typeof WindowRemoteControl>;
2609
2619
  /**
@@ -2627,12 +2637,14 @@ declare const AppsWindowsSetRemoteControlResult: z.ZodObject<{
2627
2637
  default: "default";
2628
2638
  on: "on";
2629
2639
  off: "off";
2640
+ unreadable: "unreadable";
2630
2641
  }>;
2631
2642
  serving: z.ZodNullable<z.ZodBoolean>;
2632
2643
  pending: z.ZodNullable<z.ZodEnum<{
2633
2644
  on: "on";
2634
2645
  off: "off";
2635
2646
  }>>;
2647
+ problem: z.ZodOptional<z.ZodString>;
2636
2648
  }, z.core.$strict>;
2637
2649
  }, z.core.$strict>;
2638
2650
  type AppsWindowsSetRemoteControlResult = z.output<typeof AppsWindowsSetRemoteControlResult>;
@@ -2652,12 +2664,14 @@ declare const AppWindowInfo: z.ZodObject<{
2652
2664
  default: "default";
2653
2665
  on: "on";
2654
2666
  off: "off";
2667
+ unreadable: "unreadable";
2655
2668
  }>;
2656
2669
  serving: z.ZodNullable<z.ZodBoolean>;
2657
2670
  pending: z.ZodNullable<z.ZodEnum<{
2658
2671
  on: "on";
2659
2672
  off: "off";
2660
2673
  }>>;
2674
+ problem: z.ZodOptional<z.ZodString>;
2661
2675
  }, z.core.$strict>>;
2662
2676
  }, z.core.$strict>;
2663
2677
  type AppWindowInfo = z.output<typeof AppWindowInfo>;
@@ -2717,12 +2731,14 @@ declare const AppsWindowsListResult: z.ZodObject<{
2717
2731
  default: "default";
2718
2732
  on: "on";
2719
2733
  off: "off";
2734
+ unreadable: "unreadable";
2720
2735
  }>;
2721
2736
  serving: z.ZodNullable<z.ZodBoolean>;
2722
2737
  pending: z.ZodNullable<z.ZodEnum<{
2723
2738
  on: "on";
2724
2739
  off: "off";
2725
2740
  }>>;
2741
+ problem: z.ZodOptional<z.ZodString>;
2726
2742
  }, z.core.$strict>>;
2727
2743
  }, z.core.$strict>>;
2728
2744
  }, z.core.$strict>;
@@ -7547,6 +7563,11 @@ declare const CodingProviderStatus: z.ZodObject<{
7547
7563
  sourceLabel: z.ZodString;
7548
7564
  }, z.core.$strict>>;
7549
7565
  }, z.core.$strict>>;
7566
+ accounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
7567
+ id: z.ZodString;
7568
+ label: z.ZodString;
7569
+ }, z.core.$strict>>>;
7570
+ accountsProblem: z.ZodOptional<z.ZodString>;
7550
7571
  }, z.core.$strict>;
7551
7572
  type CodingProviderStatus = z.output<typeof CodingProviderStatus>;
7552
7573
  /** The person's rename, pin, hide and "last looked at" for one chat, by the engine's chat key. */
@@ -8267,6 +8288,11 @@ declare const CodingProvidersResult: z.ZodObject<{
8267
8288
  sourceLabel: z.ZodString;
8268
8289
  }, z.core.$strict>>;
8269
8290
  }, z.core.$strict>>;
8291
+ accounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
8292
+ id: z.ZodString;
8293
+ label: z.ZodString;
8294
+ }, z.core.$strict>>>;
8295
+ accountsProblem: z.ZodOptional<z.ZodString>;
8270
8296
  }, z.core.$strict>>;
8271
8297
  }, z.core.$strict>;
8272
8298
  type CodingProvidersResult = z.output<typeof CodingProvidersResult>;
@@ -10554,6 +10580,13 @@ declare const FIELDS_SINCE: {
10554
10580
  readonly AppWindowInfo: {
10555
10581
  readonly remote_control: "1.50";
10556
10582
  };
10583
+ readonly WindowRemoteControl: {
10584
+ readonly problem: "1.52";
10585
+ };
10586
+ readonly CodingProviderStatus: {
10587
+ readonly accounts: "1.53";
10588
+ readonly accountsProblem: "1.53";
10589
+ };
10557
10590
  readonly AppsInstancesListParams: {
10558
10591
  readonly fresh: "1.51";
10559
10592
  };
@@ -10743,7 +10776,7 @@ declare function forPeer(op: OpName | null, part: "error", value: unknown, versi
10743
10776
  declare const VERSIONED_RESULT_OPS: readonly OpName[];
10744
10777
 
10745
10778
  /** SHA-256 of generated/desktop-protocol.schema.json: the contract both sides of a service connection were built from. */
10746
- declare const CONTRACT_SHA256: "17a170d7662db6a201d4787ac19ce9bbd34696faba04cabedb9d26ba14d15ff4";
10779
+ declare const CONTRACT_SHA256: "3a1cc0cf335111a353238b9673b5764e7f3657f2c216f05f0895886f5c0d1db8";
10747
10780
 
10748
10781
  /**
10749
10782
  * The local tool catalog (SPEC §10): every tool a platform agent calls on a person's computer, the
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import { z } from "zod";
3
3
  import { UUID_SHAPE_PATTERN } from "@ai-matrx/kit/uuid";
4
4
  var PROTOCOL_MAJOR = 1;
5
- var PROTOCOL_MINOR = 51;
5
+ var PROTOCOL_MINOR = 53;
6
6
  var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
7
7
  var ProtocolVersion = z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
8
8
  var RequestId = z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
@@ -1422,12 +1422,21 @@ var AppsChatsStarResult = z13.strictObject({ chat: ChatRow });
1422
1422
  // src/schema/apps-accounts.ts
1423
1423
  import { z as z14 } from "zod";
1424
1424
  var WindowRemoteControl = z14.strictObject({
1425
- /** As the window's settings file holds it: on, off, or never set (the app's default). */
1426
- setting: z14.enum(["on", "off", "default"]),
1425
+ /**
1426
+ * As the window's settings file holds it: on, off, or never set (the app's default). 1.52:
1427
+ * "unreadable" = the file is there but damaged, so the setting is not known (`problem` says why).
1428
+ */
1429
+ setting: z14.enum(["on", "off", "default", "unreadable"]),
1427
1430
  /** The window serves Remote Control now (its live state says "on"); null: not known (closed, or no state file). */
1428
1431
  serving: z14.boolean().nullable(),
1429
1432
  /** A change queued until the window next closes (or restarts); null: none. */
1430
- pending: z14.enum(["on", "off"]).nullable()
1433
+ pending: z14.enum(["on", "off"]).nullable(),
1434
+ /**
1435
+ * 1.52: why the setting cannot be trusted, as a plain sentence for the person: the settings file is
1436
+ * damaged ("unreadable"), or a queued change failed to land (it stays queued; asking again retries).
1437
+ * Absent: nothing wrong. An older core omits it.
1438
+ */
1439
+ problem: z14.string().max(300).optional()
1431
1440
  });
1432
1441
  var AppWindowInfo = z14.strictObject({
1433
1442
  key: ChatPlace,
@@ -3359,7 +3368,15 @@ var CodingProviderStatus = z34.strictObject({
3359
3368
  efforts: z34.array(z34.string().max(40)).max(20),
3360
3369
  defaultModel: z34.strictObject({ id: z34.string().max(200), source: z34.enum(["settings", "driver"]) }).nullable(),
3361
3370
  defaultEffort: z34.string().max(40).nullable(),
3362
- binary: CodingProviderBinary.nullable()
3371
+ binary: CodingProviderBinary.nullable(),
3372
+ /**
3373
+ * (1.53) The person's other accounts for this app on the computer (Matrx 2's Accounts) that a run
3374
+ * can use, as the computer's engine lists them; New session offers them beside the default sign-in.
3375
+ * Absent: only the default sign-in (or a computer older than 1.53).
3376
+ */
3377
+ accounts: z34.array(z34.strictObject({ id: z34.string().min(1).max(64), label: z34.string().max(200) })).max(100).optional(),
3378
+ /** (1.53) The computer tried to list `accounts` and could not: a short sentence the form shows with a retry. */
3379
+ accountsProblem: ShortText.optional()
3363
3380
  });
3364
3381
  var CodingChatPreference = z34.strictObject({
3365
3382
  title: z34.string().max(500).nullable(),
@@ -5472,6 +5489,8 @@ var FIELDS_SINCE = {
5472
5489
  "RelayCallResponse|1": { protocol_version: "1.1" },
5473
5490
  WindowInfo: { app: "1.7", pid: "1.7" },
5474
5491
  AppWindowInfo: { remote_control: "1.50" },
5492
+ WindowRemoteControl: { problem: "1.52" },
5493
+ CodingProviderStatus: { accounts: "1.53", accountsProblem: "1.53" },
5475
5494
  AppsInstancesListParams: { fresh: "1.51" },
5476
5495
  AppsInstancesListResult: { as_of_ms: "1.51", refreshing: "1.51" },
5477
5496
  AppsAccountsListParams: { fresh: "1.51" },
@@ -5605,7 +5624,10 @@ var NESTED_RESULTS = /* @__PURE__ */ new Map([
5605
5624
  ["web.scrape", [["pages", "WebScrapePage"]]],
5606
5625
  ["sysinfo.get", [["permissions", "SysinfoGetResult.permissions[]"]]],
5607
5626
  ["models.downloads.list", [["downloads", "DownloadRow"]]],
5608
- ["apps.projects.to_window", [["group", "ProjectMoveGroup"]]]
5627
+ ["apps.projects.to_window", [["group", "ProjectMoveGroup"]]],
5628
+ ["apps.windows.list", [["windows", "AppWindowInfo"]]],
5629
+ ["apps.windows.set_remote_control", [["remote_control", "WindowRemoteControl"]]],
5630
+ ["coding.providers", [["providers", "CodingProviderStatus"]]]
5609
5631
  ]);
5610
5632
  function stripNested(value, nested, version) {
5611
5633
  if (value === null || typeof value !== "object" || Array.isArray(value)) return value;
@@ -5624,6 +5646,23 @@ function stripNested(value, nested, version) {
5624
5646
  }
5625
5647
  return body;
5626
5648
  }
5649
+ function windowListRemoteControlForPeer(value, version) {
5650
+ if (knows(version, "1.52") || value === null || typeof value !== "object") return value;
5651
+ const body = value;
5652
+ if (!Array.isArray(body.windows)) return value;
5653
+ const windows = body.windows;
5654
+ const next = windows.map((w) => {
5655
+ const rc = w?.remote_control;
5656
+ if (rc === null || typeof rc !== "object") return w;
5657
+ if (rc.setting === "unreadable") {
5658
+ const { remote_control: _dropped, ...rest } = w;
5659
+ return rest;
5660
+ }
5661
+ const kept = strip(rc, FIELDS_SINCE.WindowRemoteControl, version);
5662
+ return kept === rc ? w : { ...w, remote_control: kept };
5663
+ });
5664
+ return next.some((w, i) => w !== windows[i]) ? { ...body, windows: next } : value;
5665
+ }
5627
5666
  var WINDOW_RESULTS = /* @__PURE__ */ new Map([
5628
5667
  ["window.list", "windows"],
5629
5668
  ["window.focus", "window"],
@@ -5650,7 +5689,8 @@ function forPeer(op, part, value, version) {
5650
5689
  const known = op === "sysinfo.get" ? permissionsForPeer(value, version) : value;
5651
5690
  const top = path ? strip(known, FIELDS_SINCE[path], version) : known;
5652
5691
  const nested = op ? NESTED_RESULTS.get(op) : void 0;
5653
- return nested ? stripNested(top, nested, version) : top;
5692
+ const stripped = nested ? stripNested(top, nested, version) : top;
5693
+ return op === "apps.windows.list" ? windowListRemoteControlForPeer(stripped, version) : stripped;
5654
5694
  }
5655
5695
  if (value === null || typeof value !== "object") return value;
5656
5696
  const body = value;
@@ -5667,7 +5707,7 @@ function forPeer(op, part, value, version) {
5667
5707
  var VERSIONED_RESULT_OPS = [.../* @__PURE__ */ new Set([...RESULT_PATH.keys(), ...WINDOW_RESULTS.keys(), ...NESTED_RESULTS.keys()])];
5668
5708
 
5669
5709
  // src/contract.ts
5670
- var CONTRACT_SHA256 = "17a170d7662db6a201d4787ac19ce9bbd34696faba04cabedb9d26ba14d15ff4";
5710
+ var CONTRACT_SHA256 = "3a1cc0cf335111a353238b9673b5764e7f3657f2c216f05f0895886f5c0d1db8";
5671
5711
 
5672
5712
  // src/close-policy.ts
5673
5713
  var CLOSE_RULES = {