@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/CHANGELOG.md +12 -0
- package/dist/{chunk-server-FBLTGJJA.js → chunk-server-HOQE4M4I.js} +13 -10
- package/dist/chunk-server-HOQE4M4I.js.map +1 -0
- package/dist/client.cjs +12 -9
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +2 -2
- package/dist/client.d.ts +2 -2
- package/dist/client.js +1 -1
- package/dist/index.cjs +13 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -5
- package/dist/index.d.ts +10 -5
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/{models-GpUhHLRw.d.cts → models-Bz88NHi0.d.cts} +1 -0
- package/dist/{models-GpUhHLRw.d.ts → models-Bz88NHi0.d.ts} +1 -0
- package/generated/desktop-protocol.schema.json +1 -8
- package/package.json +2 -2
- package/dist/chunk-server-FBLTGJJA.js.map +0 -1
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-
|
|
5
|
-
export { i as isDesktopProtocolError } from './models-
|
|
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-
|
|
5
|
-
export { i as isDesktopProtocolError } from './models-
|
|
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
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 =
|
|
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
|
-
|
|
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.
|
|
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)
|
|
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
|
-
|
|
1923
|
-
|
|
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).
|
|
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)
|
|
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)
|
|
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 = "
|
|
7278
|
+
var CONTRACT_SHA256 = "2896ee158ca6330cf3cbca88431d15776fb40f53deb0b132bea12ad8d7986757";
|
|
7276
7279
|
|
|
7277
7280
|
// src/close-policy.ts
|
|
7278
7281
|
var CLOSE_RULES = {
|