@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/CHANGELOG.md +30 -2
- package/dist/{chunk-server-AHS5QIQV.js → chunk-server-I6R2ZKMX.js} +40 -9
- package/dist/chunk-server-I6R2ZKMX.js.map +1 -0
- package/dist/client.cjs +33 -7
- 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 +40 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +25 -5
- package/dist/index.d.ts +25 -5
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/{models-C0Jgv2ev.d.cts → models-_17aNpEC.d.cts} +49 -1
- package/dist/{models-C0Jgv2ev.d.ts → models-_17aNpEC.d.ts} +49 -1
- package/dist/react.d.cts +4 -0
- package/dist/react.d.ts +4 -0
- package/generated/desktop-protocol.schema.json +68 -2
- package/package.json +2 -2
- package/dist/chunk-server-AHS5QIQV.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"]);
|
|
@@ -1525,7 +1544,13 @@ var AccountAgentsVersionDiffResult = import_zod14.z.strictObject({
|
|
|
1525
1544
|
current: import_zod14.z.record(import_zod14.z.string().max(200), import_zod14.z.unknown()).nullable()
|
|
1526
1545
|
});
|
|
1527
1546
|
var AccountAgentsRestoreVersionParams = import_zod14.z.strictObject({ agent_id: AccountRowId, version_number: import_zod14.z.int().min(1) });
|
|
1528
|
-
var AccountAgentsRestoreVersionResult = import_zod14.z.strictObject({
|
|
1547
|
+
var AccountAgentsRestoreVersionResult = import_zod14.z.strictObject({
|
|
1548
|
+
restored_version: import_zod14.z.int().min(1),
|
|
1549
|
+
/** (1.68) The version row the restore saved ("Restored from v<N>"), now the agent's current version. */
|
|
1550
|
+
new_version: import_zod14.z.int().min(1).optional(),
|
|
1551
|
+
/** (1.68) True when the agent already matched the restored version: nothing was saved. */
|
|
1552
|
+
unchanged: import_zod14.z.boolean().optional()
|
|
1553
|
+
});
|
|
1529
1554
|
var VaultItemKind = import_zod14.z.enum(["login", "passkey", "key", "other"]);
|
|
1530
1555
|
var VaultFieldSummary = import_zod14.z.strictObject({
|
|
1531
1556
|
key: import_zod14.z.string().min(1).max(120),
|
|
@@ -4910,7 +4935,8 @@ var RESULT_PATH = /* @__PURE__ */ new Map([
|
|
|
4910
4935
|
["apps.projects.to_window", "AppsProjectsToWindowResult"],
|
|
4911
4936
|
// 1.67: Matrx Local's local_mac_apps result fields.
|
|
4912
4937
|
["photos.get", "PhotosGetResult"],
|
|
4913
|
-
["location.get", "LocationGetResult"]
|
|
4938
|
+
["location.get", "LocationGetResult"],
|
|
4939
|
+
["account.agents.restore_version", "AccountAgentsRestoreVersionResult"]
|
|
4914
4940
|
]);
|
|
4915
4941
|
var NESTED_RESULTS = /* @__PURE__ */ new Map([
|
|
4916
4942
|
["apps.chats.list", [["chats", "ChatRow"]]],
|