@ai-matrx/desktop-protocol 0.21.68 → 0.21.70

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-_17aNpEC.cjs';
5
+ export { i as isDesktopProtocolError } from './models-_17aNpEC.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-_17aNpEC.js';
5
+ export { i as isDesktopProtocolError } from './models-_17aNpEC.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-I6R2ZKMX.js";
16
16
  import {
17
17
  DesktopProtocolError,
18
18
  FRAME_VERSION,
package/dist/index.cjs CHANGED
@@ -806,6 +806,7 @@ __export(src_exports, {
806
806
  TranscriptSegment: () => TranscriptSegment,
807
807
  TranscriptionModelId: () => TranscriptionModelId,
808
808
  TranscriptionModelInfo: () => TranscriptionModelInfo,
809
+ UnusableTextModel: () => UnusableTextModel,
809
810
  VERSIONED_RESULT_OPS: () => VERSIONED_RESULT_OPS,
810
811
  VaultFieldSummary: () => VaultFieldSummary,
811
812
  VaultItemKind: () => VaultItemKind,
@@ -915,7 +916,7 @@ module.exports = __toCommonJS(src_exports);
915
916
  var import_zod = require("zod");
916
917
  var import_uuid = require("@ai-matrx/kit/uuid");
917
918
  var PROTOCOL_MAJOR = 1;
918
- var PROTOCOL_MINOR = 67;
919
+ var PROTOCOL_MINOR = 69;
919
920
  var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
920
921
  var ProtocolVersion = import_zod.z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
921
922
  var RequestId = import_zod.z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
@@ -1794,7 +1795,21 @@ var TextModelInfo = import_zod10.z.strictObject({
1794
1795
  id: TextModelId,
1795
1796
  /** Download size of the weights. */
1796
1797
  size_bytes: nonNegInt,
1797
- installed: import_zod10.z.boolean()
1798
+ installed: import_zod10.z.boolean(),
1799
+ /** (1.69) The name to show, for a model on this computer no catalog names (one that cannot run here). */
1800
+ title: import_zod10.z.string().min(1).max(200).optional(),
1801
+ /**
1802
+ * (1.69) Absent: it runs here. Else it is on this computer but cannot run, said in one plain
1803
+ * line with its fix ("It needs about 39 GB of memory and this computer lets models use 24 GB.",
1804
+ * "Part 2 of 3 is incomplete: …"). Listed so no model the person has ever vanishes; never startable.
1805
+ */
1806
+ problem: import_zod10.z.string().min(1).max(300).optional()
1807
+ });
1808
+ var UnusableTextModel = import_zod10.z.strictObject({
1809
+ key: TextModelId,
1810
+ title: import_zod10.z.string().min(1).max(200),
1811
+ size_bytes: nonNegInt,
1812
+ problem: import_zod10.z.string().min(1).max(300)
1798
1813
  });
1799
1814
  var LlmServerState = import_zod10.z.enum(["stopped", "starting", "running", "failed"]);
1800
1815
  var LlmRunning = import_zod10.z.strictObject({
@@ -1808,8 +1823,11 @@ var LlmRunning = import_zod10.z.strictObject({
1808
1823
  var ModelsLlmStatusParams = import_zod10.z.strictObject({});
1809
1824
  var ModelsLlmStatusResult = import_zod10.z.strictObject({
1810
1825
  state: LlmServerState,
1811
- /** Every model in the catalog, with whether its weights are on this computer. */
1812
- models: import_zod10.z.array(TextModelInfo).max(64),
1826
+ /**
1827
+ * Every language model: (1.69) the ones on this computer first (installed, then those that cannot run
1828
+ * here, each with its `problem`), then the rest of the catalog. Bounded at 1024 (64 until 1.69).
1829
+ */
1830
+ models: import_zod10.z.array(TextModelInfo).max(1024),
1813
1831
  running: LlmRunning.nullable(),
1814
1832
  /** The model being loaded while `state` is "starting". */
1815
1833
  starting: TextModelId.nullable(),
@@ -1883,7 +1901,9 @@ var MlCatalogSetParams = import_zod10.z.strictObject({
1883
1901
  /** The knob desktop.models/default_transcription_model; null when the knob could not be read (a transcribe naming no model then says so). */
1884
1902
  default_transcription: TranscriptionModelId.nullable(),
1885
1903
  /** When the catalog was last changed (catalog_updated_at), for the service's log. */
1886
- catalog_updated_at: import_zod10.z.string().max(40)
1904
+ catalog_updated_at: import_zod10.z.string().max(40),
1905
+ /** (1.69) Language models on this computer that cannot run here, each with its one-line reason: models.llm.status lists them. */
1906
+ unusable: import_zod10.z.array(UnusableTextModel).max(512).optional()
1887
1907
  });
1888
1908
  var MlCatalogSetResult = import_zod10.z.strictObject({ text: nonNegInt, transcription: nonNegInt });
1889
1909
  var DownloadKind = import_zod10.z.enum(["speech_model", "text_model", "runtime"]);
@@ -2067,7 +2087,13 @@ var AccountAgentsVersionDiffResult = import_zod11.z.strictObject({
2067
2087
  current: import_zod11.z.record(import_zod11.z.string().max(200), import_zod11.z.unknown()).nullable()
2068
2088
  });
2069
2089
  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) });
2090
+ var AccountAgentsRestoreVersionResult = import_zod11.z.strictObject({
2091
+ restored_version: import_zod11.z.int().min(1),
2092
+ /** (1.68) The version row the restore saved ("Restored from v<N>"), now the agent's current version. */
2093
+ new_version: import_zod11.z.int().min(1).optional(),
2094
+ /** (1.68) True when the agent already matched the restored version: nothing was saved. */
2095
+ unchanged: import_zod11.z.boolean().optional()
2096
+ });
2071
2097
  var VaultItemKind = import_zod11.z.enum(["login", "passkey", "key", "other"]);
2072
2098
  var VaultFieldSummary = import_zod11.z.strictObject({
2073
2099
  key: import_zod11.z.string().min(1).max(120),
@@ -6036,6 +6062,7 @@ var NAMED_SCHEMAS = {
6036
6062
  ModelsProgressEvent,
6037
6063
  TextModelId,
6038
6064
  TextModelInfo,
6065
+ UnusableTextModel,
6039
6066
  ModelKey,
6040
6067
  Sha256Hex,
6041
6068
  CatalogFile,
@@ -6714,6 +6741,8 @@ var NAMED_SCHEMAS = {
6714
6741
  var import_versions = require("@ai-matrx/kit/versions");
6715
6742
  var FIELDS_SINCE = {
6716
6743
  LlmRunning: { context_length: "1.48", gpu_layers: "1.48", threads: "1.48" },
6744
+ TextModelInfo: { title: "1.69", problem: "1.69" },
6745
+ MlCatalogSetParams: { unusable: "1.69" },
6717
6746
  ModelsLlmStartParams: { gpu_layers: "1.48", threads: "1.48", load_timeout_s: "1.48" },
6718
6747
  FsPatchResult: { edits_applied: "1.1", edits_failed: "1.1" },
6719
6748
  "ProtocolErrorBody.data": { edits_failed: "1.1" },
@@ -6783,7 +6812,8 @@ var FIELDS_SINCE = {
6783
6812
  WindowsFeaturesParams: { installed_only: "1.67" },
6784
6813
  SysinfoHardwareResult: { graphics: "1.45" },
6785
6814
  DownloadRow: { error: "1.46" },
6786
- CopyRestart: { reopened: "1.60" }
6815
+ CopyRestart: { reopened: "1.60" },
6816
+ AccountAgentsRestoreVersionResult: { new_version: "1.68", unchanged: "1.68" }
6787
6817
  };
6788
6818
  var NULL_SINCE = {
6789
6819
  "RelayDeviceStatusEvent.since_ms": { since: "1.1", olderPeersGet: 0 }
@@ -6868,7 +6898,8 @@ var RESULT_PATH = /* @__PURE__ */ new Map([
6868
6898
  ["apps.projects.to_window", "AppsProjectsToWindowResult"],
6869
6899
  // 1.67: Matrx Local's local_mac_apps result fields.
6870
6900
  ["photos.get", "PhotosGetResult"],
6871
- ["location.get", "LocationGetResult"]
6901
+ ["location.get", "LocationGetResult"],
6902
+ ["account.agents.restore_version", "AccountAgentsRestoreVersionResult"]
6872
6903
  ]);
6873
6904
  var NESTED_RESULTS = /* @__PURE__ */ new Map([
6874
6905
  ["apps.chats.list", [["chats", "ChatRow"]]],
@@ -7026,7 +7057,7 @@ function forPeer(op, part, value, version) {
7026
7057
  var VERSIONED_RESULT_OPS = [.../* @__PURE__ */ new Set([...RESULT_PATH.keys(), ...WINDOW_RESULTS.keys(), ...NESTED_RESULTS.keys()])];
7027
7058
 
7028
7059
  // src/contract.ts
7029
- var CONTRACT_SHA256 = "256927253d8ef5d1d79a347a7cefe6198ca2364b582a0b74b9ceb0fb53d4e183";
7060
+ var CONTRACT_SHA256 = "6395bc1bd368ea907614881ce0921792316b2c56872074b11cc9b9b5c6c42b1f";
7030
7061
 
7031
7062
  // src/close-policy.ts
7032
7063
  var CLOSE_RULES = {