@ai-matrx/desktop-protocol 0.21.59 → 0.21.61

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-pTklrHwM.cjs';
5
- export { i as isDesktopProtocolError } from './models-pTklrHwM.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-DbcCVlya.cjs';
5
+ export { i as isDesktopProtocolError } from './models-DbcCVlya.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-pTklrHwM.js';
5
- export { i as isDesktopProtocolError } from './models-pTklrHwM.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-DbcCVlya.js';
5
+ export { i as isDesktopProtocolError } from './models-DbcCVlya.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
@@ -12,7 +12,7 @@ import {
12
12
  Welcome,
13
13
  closeRule,
14
14
  knows
15
- } from "./chunk-server-4RNDE5ZL.js";
15
+ } from "./chunk-server-OQM4XFUL.js";
16
16
  import {
17
17
  DesktopProtocolError,
18
18
  FRAME_VERSION,
package/dist/index.cjs CHANGED
@@ -210,6 +210,7 @@ __export(src_exports, {
210
210
  ChatHidden: () => ChatHidden,
211
211
  ChatId: () => ChatId,
212
212
  ChatLastUse: () => ChatLastUse,
213
+ ChatMove: () => ChatMove,
213
214
  ChatParent: () => ChatParent,
214
215
  ChatPin: () => ChatPin,
215
216
  ChatPlace: () => ChatPlace,
@@ -217,6 +218,7 @@ __export(src_exports, {
217
218
  ChatProjectId: () => ChatProjectId,
218
219
  ChatRow: () => ChatRow,
219
220
  ChatRunning: () => ChatRunning,
221
+ ChatTitleSync: () => ChatTitleSync,
220
222
  ChatWindow: () => ChatWindow,
221
223
  ClientToCoreMsg: () => ClientToCoreMsg,
222
224
  ClientType: () => ClientType,
@@ -904,7 +906,7 @@ module.exports = __toCommonJS(src_exports);
904
906
  var import_zod = require("zod");
905
907
  var import_uuid = require("@ai-matrx/kit/uuid");
906
908
  var PROTOCOL_MAJOR = 1;
907
- var PROTOCOL_MINOR = 60;
909
+ var PROTOCOL_MINOR = 62;
908
910
  var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
909
911
  var ProtocolVersion = import_zod.z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
910
912
  var RequestId = import_zod.z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
@@ -2215,6 +2217,14 @@ var ChatAppProject = import_zod13.z.strictObject({
2215
2217
  var ChatTitleSource = import_zod13.z.enum(["app", "app-remembered", "custom-title", "ai-title", "agent-name", "summary", "first-prompt", "last-prompt"]);
2216
2218
  var ChatAppGroup = import_zod13.z.strictObject({ window: ChatPlace, group_id: import_zod13.z.string().max(120), name: import_zod13.z.string().max(200) });
2217
2219
  var ChatParent = import_zod13.z.strictObject({ id: ChatId, how: import_zod13.z.enum(["spawned", "dispatched", "forked"]), title: import_zod13.z.string().max(1e3).nullable() });
2220
+ var ChatTitleSync = import_zod13.z.strictObject({ state: import_zod13.z.enum(["synced", "not_synced", "unsupported"]), note: import_zod13.z.string().max(200) });
2221
+ var ChatMove = import_zod13.z.strictObject({
2222
+ kind: import_zod13.z.enum(["move", "copy"]),
2223
+ from: ChatPlace.nullable(),
2224
+ to: ChatPlace.nullable(),
2225
+ at_ms: epochMs.nullable(),
2226
+ back_at_ms: epochMs.nullable()
2227
+ });
2218
2228
  var ChatRow = import_zod13.z.strictObject({
2219
2229
  id: ChatId,
2220
2230
  /** The short id people see (the listing's first 8 characters). */
@@ -2264,7 +2274,11 @@ var ChatRow = import_zod13.z.strictObject({
2264
2274
  /** 1.59: the chat it came from (nesting): an agent's chat that spawned it, dispatched it, or that it was forked from. */
2265
2275
  parent: ChatParent.optional(),
2266
2276
  /** 1.59: earlier sessions of this same chat (the app continued it under new session ids). */
2267
- prior_sessions: import_zod13.z.array(ChatId).max(50).optional()
2277
+ prior_sessions: import_zod13.z.array(ChatId).max(50).optional(),
2278
+ /** 1.61: where the title shows (the title facet's sync state for this chat's app). */
2279
+ title_sync: ChatTitleSync.optional(),
2280
+ /** 1.62: every Move and Copy of this chat between instances, newest first (absent = never moved or copied). */
2281
+ moved: import_zod13.z.array(ChatMove).max(50).optional()
2268
2282
  });
2269
2283
  var ChatFamily = import_zod13.z.strictObject({
2270
2284
  id: ChatId,
@@ -5753,6 +5767,8 @@ var SERVICES = {
5753
5767
  var NAMED_SCHEMAS = {
5754
5768
  ChatAppGroup,
5755
5769
  ChatParent,
5770
+ ChatTitleSync,
5771
+ ChatMove,
5756
5772
  AppsWindowsSetAccountParams,
5757
5773
  AppsWindowsForgetParams,
5758
5774
  ProbeFact,
@@ -6578,7 +6594,7 @@ var FIELDS_SINCE = {
6578
6594
  AppsChatsListResult: { updating: "1.9", live: "1.9", families: "1.10" },
6579
6595
  AppsAccountsUsageResult: { problem: "1.12" },
6580
6596
  AppsAccountsResetsResult: { problem: "1.12" },
6581
- ChatRow: { app_project: "1.13", tokens: "1.13", original_title: "1.14", title_source: "1.14", title_override: "1.14", archived: "1.15", session_id: "1.59", app_groups: "1.59", parent: "1.59", prior_sessions: "1.59" },
6597
+ ChatRow: { app_project: "1.13", tokens: "1.13", original_title: "1.14", title_source: "1.14", title_override: "1.14", archived: "1.15", session_id: "1.59", app_groups: "1.59", parent: "1.59", prior_sessions: "1.59", title_sync: "1.61", moved: "1.62" },
6582
6598
  AccountUsage: { plan: "1.13", credits: "1.13", five_hour_resets_by_ms: "1.25" },
6583
6599
  ResourcesDisk: { name: "1.17" },
6584
6600
  StackServer: { cpu_percent: "1.18", memory_bytes: "1.18" },
@@ -6818,7 +6834,7 @@ function forPeer(op, part, value, version) {
6818
6834
  var VERSIONED_RESULT_OPS = [.../* @__PURE__ */ new Set([...RESULT_PATH.keys(), ...WINDOW_RESULTS.keys(), ...NESTED_RESULTS.keys()])];
6819
6835
 
6820
6836
  // src/contract.ts
6821
- var CONTRACT_SHA256 = "36fbca871e9773bc8f5310fb3d258c4b04d73c4fd17f3af8e9555ce3b4e67871";
6837
+ var CONTRACT_SHA256 = "97c41c25ab3b377c9b93f67090e17faf7ce85671b031c93748e8e20504752010";
6822
6838
 
6823
6839
  // src/close-policy.ts
6824
6840
  var CLOSE_RULES = {