@ai-matrx/desktop-protocol 0.21.53 → 0.21.56

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-qM7u4hzm.cjs';
5
- export { i as isDesktopProtocolError } from './models-qM7u4hzm.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-DbIm7Isi.cjs';
5
+ export { i as isDesktopProtocolError } from './models-DbIm7Isi.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-qM7u4hzm.js';
5
- export { i as isDesktopProtocolError } from './models-qM7u4hzm.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-DbIm7Isi.js';
5
+ export { i as isDesktopProtocolError } from './models-DbIm7Isi.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 = 58;
115
+ var PROTOCOL_MINOR = 60;
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_-]+$/);
@@ -2972,6 +2972,8 @@ var ChatAppProject = z30.strictObject({
2972
2972
  name: z30.string().max(200)
2973
2973
  });
2974
2974
  var ChatTitleSource = z30.enum(["app", "app-remembered", "custom-title", "ai-title", "agent-name", "summary", "first-prompt", "last-prompt"]);
2975
+ var ChatAppGroup = z30.strictObject({ window: ChatPlace, group_id: z30.string().max(120), name: z30.string().max(200) });
2976
+ var ChatParent = z30.strictObject({ id: ChatId, how: z30.enum(["spawned", "dispatched", "forked"]), title: z30.string().max(1e3).nullable() });
2975
2977
  var ChatRow = z30.strictObject({
2976
2978
  id: ChatId,
2977
2979
  /** The short id people see (the listing's first 8 characters). */
@@ -3013,7 +3015,15 @@ var ChatRow = z30.strictObject({
3013
3015
  /** 1.14: the person's rename inside Matrx (Coding Sessions), applied once by the row builder; absent = none. */
3014
3016
  title_override: z30.string().min(1).max(300).optional(),
3015
3017
  /** 1.15: the app itself archived it (hidden_in says where and why, in words for people; this is the typed fact). */
3016
- archived: z30.boolean().optional()
3018
+ archived: z30.boolean().optional(),
3019
+ /** 1.59: the coding session Matrx itself drives this chat in (the one chat, whether it runs in the app or in Matrx); absent = none. */
3020
+ session_id: z30.string().max(80).optional(),
3021
+ /** 1.59: the app's own groups it is filed in, per instance, as the app keeps them (never merged into the person's projects). */
3022
+ app_groups: z30.array(ChatAppGroup).max(200).optional(),
3023
+ /** 1.59: the chat it came from (nesting): an agent's chat that spawned it, dispatched it, or that it was forked from. */
3024
+ parent: ChatParent.optional(),
3025
+ /** 1.59: earlier sessions of this same chat (the app continued it under new session ids). */
3026
+ prior_sessions: z30.array(ChatId).max(50).optional()
3017
3027
  });
3018
3028
  var ChatFamily = z30.strictObject({
3019
3029
  id: ChatId,
@@ -3519,6 +3529,15 @@ var CopiedChat = z31.strictObject({
3519
3529
  state: z31.enum(["verified", "queued", "failed"]),
3520
3530
  reason: z31.string().max(400).nullable()
3521
3531
  });
3532
+ var CopyReopened = z31.strictObject({ window: ChatPlace, ok: z31.boolean(), reason: z31.string().max(400).nullable() });
3533
+ var CopyRestart = z31.strictObject({
3534
+ asked: z31.enum(["queued", "restart_verify"]),
3535
+ done: z31.enum(["queued", "restart_verify"]),
3536
+ windows: z31.array(ChatPlace).max(2),
3537
+ reason: z31.string().max(400).nullable(),
3538
+ /** 1.60: each closed window's reopen outcome (absent from a 1.59 core, and when no window was closed): `ok: false` is a window that did not come back. */
3539
+ reopened: z31.array(CopyReopened).max(2).optional()
3540
+ });
3522
3541
  var AppsChatsCopyToAccountResult = z31.strictObject({
3523
3542
  message: z31.string().max(400),
3524
3543
  origin: ChatPlace,
@@ -3534,7 +3553,7 @@ var AppsChatsCopyToAccountResult = z31.strictObject({
3534
3553
  queued: z31.number().int().nonnegative(),
3535
3554
  failed: z31.number().int().nonnegative(),
3536
3555
  /** What the restart choice did: "restart_verify" closed and reopened `windows`; a fall back to "queued" says why. */
3537
- restart: z31.strictObject({ asked: z31.enum(["queued", "restart_verify"]), done: z31.enum(["queued", "restart_verify"]), windows: z31.array(ChatPlace).max(2), reason: z31.string().max(400).nullable() })
3556
+ restart: CopyRestart
3538
3557
  });
3539
3558
 
3540
3559
  // src/schema/apps-instances.ts
@@ -4743,6 +4762,8 @@ var NESTED_RESULTS = /* @__PURE__ */ new Map([
4743
4762
  ["sysinfo.get", [["permissions", "SysinfoGetResult.permissions[]"]]],
4744
4763
  ["models.downloads.list", [["downloads", "DownloadRow"]]],
4745
4764
  ["apps.projects.to_window", [["group", "ProjectMoveGroup"]]],
4765
+ // 1.60: each closed window's reopen outcome in a restart_verify copy.
4766
+ ["apps.chats.copy_to_account", [["restart", "CopyRestart"]]],
4746
4767
  ["apps.windows.list", [["windows", "AppWindowInfo"]]],
4747
4768
  ["apps.windows.set_remote_control", [["remote_control", "WindowRemoteControl"]]],
4748
4769
  ["coding.providers", [["providers", "CodingProviderStatus"]]],