@ai-matrx/desktop-protocol 0.21.68 → 0.21.69

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-C0Jgv2ev.cjs';
5
- export { i as isDesktopProtocolError } from './models-C0Jgv2ev.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-BaCCJM1M.cjs';
5
+ export { i as isDesktopProtocolError } from './models-BaCCJM1M.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-C0Jgv2ev.js';
5
- export { i as isDesktopProtocolError } from './models-C0Jgv2ev.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-BaCCJM1M.js';
5
+ export { i as isDesktopProtocolError } from './models-BaCCJM1M.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-AHS5QIQV.js";
15
+ } from "./chunk-server-TH6RJ5S5.js";
16
16
  import {
17
17
  DesktopProtocolError,
18
18
  FRAME_VERSION,
package/dist/index.cjs CHANGED
@@ -915,7 +915,7 @@ module.exports = __toCommonJS(src_exports);
915
915
  var import_zod = require("zod");
916
916
  var import_uuid = require("@ai-matrx/kit/uuid");
917
917
  var PROTOCOL_MAJOR = 1;
918
- var PROTOCOL_MINOR = 67;
918
+ var PROTOCOL_MINOR = 68;
919
919
  var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
920
920
  var ProtocolVersion = import_zod.z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
921
921
  var RequestId = import_zod.z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
@@ -2067,7 +2067,13 @@ var AccountAgentsVersionDiffResult = import_zod11.z.strictObject({
2067
2067
  current: import_zod11.z.record(import_zod11.z.string().max(200), import_zod11.z.unknown()).nullable()
2068
2068
  });
2069
2069
  var AccountAgentsRestoreVersionParams = import_zod11.z.strictObject({ agent_id: AccountRowId, version_number: import_zod11.z.int().min(1) });
2070
- var AccountAgentsRestoreVersionResult = import_zod11.z.strictObject({ restored_version: import_zod11.z.int().min(1) });
2070
+ var AccountAgentsRestoreVersionResult = import_zod11.z.strictObject({
2071
+ restored_version: import_zod11.z.int().min(1),
2072
+ /** (1.68) The version row the restore saved ("Restored from v<N>"), now the agent's current version. */
2073
+ new_version: import_zod11.z.int().min(1).optional(),
2074
+ /** (1.68) True when the agent already matched the restored version: nothing was saved. */
2075
+ unchanged: import_zod11.z.boolean().optional()
2076
+ });
2071
2077
  var VaultItemKind = import_zod11.z.enum(["login", "passkey", "key", "other"]);
2072
2078
  var VaultFieldSummary = import_zod11.z.strictObject({
2073
2079
  key: import_zod11.z.string().min(1).max(120),
@@ -6783,7 +6789,8 @@ var FIELDS_SINCE = {
6783
6789
  WindowsFeaturesParams: { installed_only: "1.67" },
6784
6790
  SysinfoHardwareResult: { graphics: "1.45" },
6785
6791
  DownloadRow: { error: "1.46" },
6786
- CopyRestart: { reopened: "1.60" }
6792
+ CopyRestart: { reopened: "1.60" },
6793
+ AccountAgentsRestoreVersionResult: { new_version: "1.68", unchanged: "1.68" }
6787
6794
  };
6788
6795
  var NULL_SINCE = {
6789
6796
  "RelayDeviceStatusEvent.since_ms": { since: "1.1", olderPeersGet: 0 }
@@ -6868,7 +6875,8 @@ var RESULT_PATH = /* @__PURE__ */ new Map([
6868
6875
  ["apps.projects.to_window", "AppsProjectsToWindowResult"],
6869
6876
  // 1.67: Matrx Local's local_mac_apps result fields.
6870
6877
  ["photos.get", "PhotosGetResult"],
6871
- ["location.get", "LocationGetResult"]
6878
+ ["location.get", "LocationGetResult"],
6879
+ ["account.agents.restore_version", "AccountAgentsRestoreVersionResult"]
6872
6880
  ]);
6873
6881
  var NESTED_RESULTS = /* @__PURE__ */ new Map([
6874
6882
  ["apps.chats.list", [["chats", "ChatRow"]]],
@@ -7026,7 +7034,7 @@ function forPeer(op, part, value, version) {
7026
7034
  var VERSIONED_RESULT_OPS = [.../* @__PURE__ */ new Set([...RESULT_PATH.keys(), ...WINDOW_RESULTS.keys(), ...NESTED_RESULTS.keys()])];
7027
7035
 
7028
7036
  // src/contract.ts
7029
- var CONTRACT_SHA256 = "256927253d8ef5d1d79a347a7cefe6198ca2364b582a0b74b9ceb0fb53d4e183";
7037
+ var CONTRACT_SHA256 = "700c5295bf34b56cc46a8804292b88b06fcefd8c7b39e3929a6957b13c4fdfbb";
7030
7038
 
7031
7039
  // src/close-policy.ts
7032
7040
  var CLOSE_RULES = {