@ai-matrx/desktop-protocol 0.21.69 → 0.21.71
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-TH6RJ5S5.js → chunk-server-TKQNS7QK.js} +43 -8
- package/dist/chunk-server-TKQNS7QK.js.map +1 -0
- package/dist/client.cjs +33 -6
- 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 +43 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +43 -6
- package/dist/index.d.ts +43 -6
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/dist/{models-BaCCJM1M.d.cts → models-lURX04tj.d.cts} +86 -2
- package/dist/{models-BaCCJM1M.d.ts → models-lURX04tj.d.ts} +86 -2
- package/dist/react.d.cts +24 -0
- package/dist/react.d.ts +24 -0
- package/generated/desktop-protocol.schema.json +121 -3
- 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 = 70;
|
|
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"]);
|
|
@@ -3133,7 +3152,12 @@ var ChatRow = import_zod30.z.strictObject({
|
|
|
3133
3152
|
* moved). Claude: the side window holding its newest record copy (main mirrors every window), else
|
|
3134
3153
|
* main; Codex: the home whose database holds it. Absent = only Matrx's holder keeps it.
|
|
3135
3154
|
*/
|
|
3136
|
-
home: ChatPlace.optional()
|
|
3155
|
+
home: ChatPlace.optional(),
|
|
3156
|
+
/**
|
|
3157
|
+
* 1.70: the person hid it from Matrx's lists (ours, kept by Matrx, never written into the app;
|
|
3158
|
+
* absent = shown). The app's own hidden facts stay apart: `hidden_in`, `archived`, `hidden_from_main`.
|
|
3159
|
+
*/
|
|
3160
|
+
hidden: import_zod30.z.boolean().optional()
|
|
3137
3161
|
});
|
|
3138
3162
|
var ChatFamily = import_zod30.z.strictObject({
|
|
3139
3163
|
id: ChatId,
|
|
@@ -3212,6 +3236,8 @@ var AppsProjectsUnfileParams = import_zod30.z.strictObject({ app_key: AppKey, ch
|
|
|
3212
3236
|
var AppsProjectsUnfileResult = import_zod30.z.strictObject({ chat: ChatRow });
|
|
3213
3237
|
var AppsChatsStarParams = import_zod30.z.strictObject({ app_key: AppKey, chat_id: ChatId, starred: import_zod30.z.boolean() });
|
|
3214
3238
|
var AppsChatsStarResult = import_zod30.z.strictObject({ chat: ChatRow });
|
|
3239
|
+
var AppsChatsHideParams = import_zod30.z.strictObject({ app_key: AppKey, chat_ids: import_zod30.z.array(ChatId).min(1).max(500), hidden: import_zod30.z.boolean() });
|
|
3240
|
+
var AppsChatsHideResult = import_zod30.z.strictObject({ app_key: AppKey, hidden: import_zod30.z.boolean(), changed: import_zod30.z.array(ChatId).max(500) });
|
|
3215
3241
|
|
|
3216
3242
|
// src/schema/apps-accounts.ts
|
|
3217
3243
|
var import_zod31 = require("zod");
|
|
@@ -4644,6 +4670,7 @@ var OPS = {
|
|
|
4644
4670
|
"apps.chats.list": { params: AppsChatsListParams, result: AppsChatsListResult, kind: "unary", since: "1.8", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4645
4671
|
"apps.chats.watch": { params: AppsChatsWatchParams, result: AppsChatsWatchResult, kind: "resource", since: "1.8", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "RESOURCE_BUSY", "INTERNAL"] },
|
|
4646
4672
|
"apps.chats.star": { params: AppsChatsStarParams, result: AppsChatsStarResult, kind: "unary", since: "1.8", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4673
|
+
"apps.chats.hide": { params: AppsChatsHideParams, result: AppsChatsHideResult, kind: "unary", since: "1.70", errors: ["INVALID_PARAMS", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4647
4674
|
"apps.projects.file": { params: AppsProjectsFileParams, result: AppsProjectsFileResult, kind: "unary", since: "1.8", errors: ["NOT_FOUND", "INVALID_PARAMS", "CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4648
4675
|
"apps.chats.place": { params: AppsChatsPlaceParams, result: AppsChatsPlaceResult, kind: "unary", since: "1.9", errors: ["NOT_FOUND", "INVALID_PARAMS", "CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4649
4676
|
"apps.projects.file_many": { params: AppsProjectsFileManyParams, result: AppsProjectsFileManyResult, kind: "unary", since: "1.9", errors: ["NOT_FOUND", "INVALID_PARAMS", "CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|