@ai-matrx/desktop-protocol 0.21.69 → 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/CHANGELOG.md +21 -2
- package/dist/{chunk-server-TH6RJ5S5.js → chunk-server-I6R2ZKMX.js} +29 -6
- package/dist/chunk-server-I6R2ZKMX.js.map +1 -0
- package/dist/client.cjs +24 -5
- 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 +29 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -5
- package/dist/index.d.ts +16 -5
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/{models-BaCCJM1M.d.cts → models-_17aNpEC.d.cts} +45 -1
- package/dist/{models-BaCCJM1M.d.ts → models-_17aNpEC.d.ts} +45 -1
- package/dist/react.d.cts +2 -0
- package/dist/react.d.ts +2 -0
- package/generated/desktop-protocol.schema.json +56 -2
- package/package.json +2 -2
- package/dist/chunk-server-TH6RJ5S5.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-_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-
|
|
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-_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
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 =
|
|
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
|
-
/**
|
|
1812
|
-
|
|
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"]);
|
|
@@ -6042,6 +6062,7 @@ var NAMED_SCHEMAS = {
|
|
|
6042
6062
|
ModelsProgressEvent,
|
|
6043
6063
|
TextModelId,
|
|
6044
6064
|
TextModelInfo,
|
|
6065
|
+
UnusableTextModel,
|
|
6045
6066
|
ModelKey,
|
|
6046
6067
|
Sha256Hex,
|
|
6047
6068
|
CatalogFile,
|
|
@@ -6720,6 +6741,8 @@ var NAMED_SCHEMAS = {
|
|
|
6720
6741
|
var import_versions = require("@ai-matrx/kit/versions");
|
|
6721
6742
|
var FIELDS_SINCE = {
|
|
6722
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" },
|
|
6723
6746
|
ModelsLlmStartParams: { gpu_layers: "1.48", threads: "1.48", load_timeout_s: "1.48" },
|
|
6724
6747
|
FsPatchResult: { edits_applied: "1.1", edits_failed: "1.1" },
|
|
6725
6748
|
"ProtocolErrorBody.data": { edits_failed: "1.1" },
|
|
@@ -7034,7 +7057,7 @@ function forPeer(op, part, value, version) {
|
|
|
7034
7057
|
var VERSIONED_RESULT_OPS = [.../* @__PURE__ */ new Set([...RESULT_PATH.keys(), ...WINDOW_RESULTS.keys(), ...NESTED_RESULTS.keys()])];
|
|
7035
7058
|
|
|
7036
7059
|
// src/contract.ts
|
|
7037
|
-
var CONTRACT_SHA256 = "
|
|
7060
|
+
var CONTRACT_SHA256 = "6395bc1bd368ea907614881ce0921792316b2c56872074b11cc9b9b5c6c42b1f";
|
|
7038
7061
|
|
|
7039
7062
|
// src/close-policy.ts
|
|
7040
7063
|
var CLOSE_RULES = {
|