@ai-matrx/desktop-protocol 0.21.75 → 0.21.76

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-GpUhHLRw.cjs';
5
- export { i as isDesktopProtocolError } from './models-GpUhHLRw.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-Bz88NHi0.cjs';
5
+ export { i as isDesktopProtocolError } from './models-Bz88NHi0.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-GpUhHLRw.js';
5
- export { i as isDesktopProtocolError } from './models-GpUhHLRw.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-Bz88NHi0.js';
5
+ export { i as isDesktopProtocolError } from './models-Bz88NHi0.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-FBLTGJJA.js";
15
+ } from "./chunk-server-HOQE4M4I.js";
16
16
  import {
17
17
  DesktopProtocolError,
18
18
  FRAME_VERSION,
package/dist/index.cjs CHANGED
@@ -941,7 +941,7 @@ module.exports = __toCommonJS(src_exports);
941
941
  var import_zod = require("zod");
942
942
  var import_uuid = require("@ai-matrx/kit/uuid");
943
943
  var PROTOCOL_MAJOR = 1;
944
- var PROTOCOL_MINOR = 74;
944
+ var PROTOCOL_MINOR = 75;
945
945
  var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
946
946
  var ProtocolVersion = import_zod.z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
947
947
  var RequestId = import_zod.z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
@@ -1787,7 +1787,8 @@ var MlStatusResult = import_zod10.z.strictObject({
1787
1787
  error: import_zod10.z.string().max(300).nullable(),
1788
1788
  /** Where inference runs once the runtime is installed: `cuda` only when a usable GPU is present. */
1789
1789
  accelerator: import_zod10.z.enum(["cpu", "cuda"]),
1790
- models: import_zod10.z.array(TranscriptionModelInfo).max(16),
1790
+ /** Every transcription model in the catalog (1.74: unbounded; a bound here silently dropped models past 16). */
1791
+ models: import_zod10.z.array(TranscriptionModelInfo),
1791
1792
  default_model: TranscriptionModelId
1792
1793
  });
1793
1794
  var ModelsInstallParams = import_zod10.z.strictObject({ model: TranscriptionModelId.optional() });
@@ -1850,9 +1851,10 @@ var ModelsLlmStatusResult = import_zod10.z.strictObject({
1850
1851
  state: LlmServerState,
1851
1852
  /**
1852
1853
  * Every language model: (1.69) the ones on this computer first (installed, then those that cannot run
1853
- * here, each with its `problem`), then the rest of the catalog. Bounded at 1024 (64 until 1.69).
1854
+ * here, each with its `problem`), then the rest of the catalog. Every one: unbounded since 1.74
1855
+ * (64 until 1.69, 1024 until 1.74; a bound silently cut off models).
1854
1856
  */
1855
- models: import_zod10.z.array(TextModelInfo).max(1024),
1857
+ models: import_zod10.z.array(TextModelInfo),
1856
1858
  running: LlmRunning.nullable(),
1857
1859
  /** The model being loaded while `state` is "starting". */
1858
1860
  starting: TextModelId.nullable(),
@@ -1919,8 +1921,9 @@ var LlamaServerBuild = import_zod10.z.strictObject({
1919
1921
  sha256: Sha256Hex
1920
1922
  });
1921
1923
  var MlCatalogSetParams = import_zod10.z.strictObject({
1922
- text: import_zod10.z.array(CatalogModelEntry).max(512),
1923
- transcription: import_zod10.z.array(CatalogModelEntry).max(64),
1924
+ /** (1.74) Unbounded, like every models list: a catalog or a person's own models are never cut off. */
1925
+ text: import_zod10.z.array(CatalogModelEntry),
1926
+ transcription: import_zod10.z.array(CatalogModelEntry),
1924
1927
  /** Null where the catalog has no build for this os/arch (installs then say so). */
1925
1928
  llama_server: LlamaServerBuild.nullable(),
1926
1929
  /** The knob desktop.models/default_transcription_model; null when the knob could not be read (a transcribe naming no model then says so). */
@@ -1928,7 +1931,7 @@ var MlCatalogSetParams = import_zod10.z.strictObject({
1928
1931
  /** When the catalog was last changed (catalog_updated_at), for the service's log. */
1929
1932
  catalog_updated_at: import_zod10.z.string().max(40),
1930
1933
  /** (1.69) Language models on this computer that cannot run here, each with its one-line reason: models.llm.status lists them. */
1931
- unusable: import_zod10.z.array(UnusableTextModel).max(512).optional()
1934
+ unusable: import_zod10.z.array(UnusableTextModel).optional()
1932
1935
  });
1933
1936
  var MlCatalogSetResult = import_zod10.z.strictObject({ text: nonNegInt, transcription: nonNegInt });
1934
1937
  var DownloadKind = import_zod10.z.enum(["speech_model", "text_model", "runtime"]);
@@ -1953,7 +1956,7 @@ var DownloadRow = import_zod10.z.strictObject({
1953
1956
  error: import_zod10.z.string().max(300).optional()
1954
1957
  });
1955
1958
  var ModelsDownloadsListParams = import_zod10.z.strictObject({});
1956
- var ModelsDownloadsListResult = import_zod10.z.strictObject({ downloads: import_zod10.z.array(DownloadRow).max(64) });
1959
+ var ModelsDownloadsListResult = import_zod10.z.strictObject({ downloads: import_zod10.z.array(DownloadRow) });
1957
1960
  var ModelsDownloadsCancelParams = import_zod10.z.strictObject({ key: import_zod10.z.string().max(64) });
1958
1961
  var ModelsDownloadsCancelResult = import_zod10.z.strictObject({ cancelled: import_zod10.z.boolean() });
1959
1962
  var LocalModelKind = import_zod10.z.enum(["text", "speech"]);
@@ -1974,7 +1977,7 @@ var LocalModelRow = import_zod10.z.strictObject({
1974
1977
  running: import_zod10.z.boolean()
1975
1978
  });
1976
1979
  var ModelsLocalListParams = import_zod10.z.strictObject({});
1977
- var ModelsLocalListResult = import_zod10.z.strictObject({ models: import_zod10.z.array(LocalModelRow).max(1024) });
1980
+ var ModelsLocalListResult = import_zod10.z.strictObject({ models: import_zod10.z.array(LocalModelRow) });
1978
1981
  var ModelsLocalRemoveParams = import_zod10.z.strictObject({ kind: LocalModelKind, model: ModelKey });
1979
1982
  var ModelsLocalRemoveResult = import_zod10.z.strictObject({
1980
1983
  kind: LocalModelKind,
@@ -7272,7 +7275,7 @@ function forPeer(op, part, value, version) {
7272
7275
  var VERSIONED_RESULT_OPS = [.../* @__PURE__ */ new Set([...RESULT_PATH.keys(), ...WINDOW_RESULTS.keys(), ...NESTED_RESULTS.keys()])];
7273
7276
 
7274
7277
  // src/contract.ts
7275
- var CONTRACT_SHA256 = "37ce31c865512882841181ce3e174f89fcc134f5aab983df8ededdab363b08bd";
7278
+ var CONTRACT_SHA256 = "2896ee158ca6330cf3cbca88431d15776fb40f53deb0b132bea12ad8d7986757";
7276
7279
 
7277
7280
  // src/close-policy.ts
7278
7281
  var CLOSE_RULES = {