@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.cjs
CHANGED
|
@@ -144,7 +144,7 @@ var import_zod2 = require("zod");
|
|
|
144
144
|
var import_zod = require("zod");
|
|
145
145
|
var import_uuid = require("@ai-matrx/kit/uuid");
|
|
146
146
|
var PROTOCOL_MAJOR = 1;
|
|
147
|
-
var PROTOCOL_MINOR =
|
|
147
|
+
var PROTOCOL_MINOR = 69;
|
|
148
148
|
var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
|
|
149
149
|
var ProtocolVersion = import_zod.z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
|
|
150
150
|
var RequestId = import_zod.z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
|
|
@@ -862,7 +862,21 @@ var TextModelInfo = import_zod9.z.strictObject({
|
|
|
862
862
|
id: TextModelId,
|
|
863
863
|
/** Download size of the weights. */
|
|
864
864
|
size_bytes: nonNegInt,
|
|
865
|
-
installed: import_zod9.z.boolean()
|
|
865
|
+
installed: import_zod9.z.boolean(),
|
|
866
|
+
/** (1.69) The name to show, for a model on this computer no catalog names (one that cannot run here). */
|
|
867
|
+
title: import_zod9.z.string().min(1).max(200).optional(),
|
|
868
|
+
/**
|
|
869
|
+
* (1.69) Absent: it runs here. Else it is on this computer but cannot run, said in one plain
|
|
870
|
+
* line with its fix ("It needs about 39 GB of memory and this computer lets models use 24 GB.",
|
|
871
|
+
* "Part 2 of 3 is incomplete: …"). Listed so no model the person has ever vanishes; never startable.
|
|
872
|
+
*/
|
|
873
|
+
problem: import_zod9.z.string().min(1).max(300).optional()
|
|
874
|
+
});
|
|
875
|
+
var UnusableTextModel = import_zod9.z.strictObject({
|
|
876
|
+
key: TextModelId,
|
|
877
|
+
title: import_zod9.z.string().min(1).max(200),
|
|
878
|
+
size_bytes: nonNegInt,
|
|
879
|
+
problem: import_zod9.z.string().min(1).max(300)
|
|
866
880
|
});
|
|
867
881
|
var LlmServerState = import_zod9.z.enum(["stopped", "starting", "running", "failed"]);
|
|
868
882
|
var LlmRunning = import_zod9.z.strictObject({
|
|
@@ -876,8 +890,11 @@ var LlmRunning = import_zod9.z.strictObject({
|
|
|
876
890
|
var ModelsLlmStatusParams = import_zod9.z.strictObject({});
|
|
877
891
|
var ModelsLlmStatusResult = import_zod9.z.strictObject({
|
|
878
892
|
state: LlmServerState,
|
|
879
|
-
/**
|
|
880
|
-
|
|
893
|
+
/**
|
|
894
|
+
* Every language model: (1.69) the ones on this computer first (installed, then those that cannot run
|
|
895
|
+
* here, each with its `problem`), then the rest of the catalog. Bounded at 1024 (64 until 1.69).
|
|
896
|
+
*/
|
|
897
|
+
models: import_zod9.z.array(TextModelInfo).max(1024),
|
|
881
898
|
running: LlmRunning.nullable(),
|
|
882
899
|
/** The model being loaded while `state` is "starting". */
|
|
883
900
|
starting: TextModelId.nullable(),
|
|
@@ -951,7 +968,9 @@ var MlCatalogSetParams = import_zod9.z.strictObject({
|
|
|
951
968
|
/** The knob desktop.models/default_transcription_model; null when the knob could not be read (a transcribe naming no model then says so). */
|
|
952
969
|
default_transcription: TranscriptionModelId.nullable(),
|
|
953
970
|
/** When the catalog was last changed (catalog_updated_at), for the service's log. */
|
|
954
|
-
catalog_updated_at: import_zod9.z.string().max(40)
|
|
971
|
+
catalog_updated_at: import_zod9.z.string().max(40),
|
|
972
|
+
/** (1.69) Language models on this computer that cannot run here, each with its one-line reason: models.llm.status lists them. */
|
|
973
|
+
unusable: import_zod9.z.array(UnusableTextModel).max(512).optional()
|
|
955
974
|
});
|
|
956
975
|
var MlCatalogSetResult = import_zod9.z.strictObject({ text: nonNegInt, transcription: nonNegInt });
|
|
957
976
|
var DownloadKind = import_zod9.z.enum(["speech_model", "text_model", "runtime"]);
|