@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/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,37 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.21.70
|
|
4
|
+
### Protocol 1.69 — every local language model is listed, with why one cannot run
|
|
5
|
+
|
|
6
|
+
- `TextModelInfo` (models.llm.status `models`): optional `title` and `problem`. `problem` set = the
|
|
7
|
+
model is on this computer but cannot run here, in one plain line with its fix; it is never startable.
|
|
8
|
+
- `ModelsLlmStatusResult.models`: the models on this computer come first; bounded at 1024 (was 64),
|
|
9
|
+
so a long catalog never cuts off a model the person has.
|
|
10
|
+
- `MlCatalogSetParams`: optional `unusable` (new named `UnusableTextModel`: key, title, size_bytes,
|
|
11
|
+
problem), the app's judged list the service echoes in models.llm.status.
|
|
12
|
+
- All optional, in FIELDS_SINCE. Consumer action: none for an older client; a 1.69 client can show
|
|
13
|
+
the reason line beside a model.
|
|
14
|
+
|
|
15
|
+
## 0.21.69
|
|
16
|
+
|
|
17
|
+
SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
|
|
18
|
+
so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
|
|
19
|
+
Diff: `git diff a8b863ca17 65685f41ac -- apps/shared/desktop-protocol/src`
|
|
20
|
+
|
|
21
|
+
Changed shipped source files (4):
|
|
22
|
+
- `apps/shared/desktop-protocol/src/contract.ts`
|
|
23
|
+
- `apps/shared/desktop-protocol/src/schema/account.ts`
|
|
24
|
+
- `apps/shared/desktop-protocol/src/schema/primitives.ts`
|
|
25
|
+
- `apps/shared/desktop-protocol/src/versioning.ts`
|
|
26
|
+
|
|
3
27
|
## 0.21.68
|
|
4
28
|
|
|
5
|
-
|
|
6
|
-
|
|
29
|
+
SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
|
|
30
|
+
so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
|
|
31
|
+
Diff: `git diff 8cbdd93fc9 a8b863ca17 -- apps/shared/desktop-protocol/src`
|
|
32
|
+
|
|
33
|
+
Changed shipped source files (1):
|
|
34
|
+
- `apps/shared/desktop-protocol/src/client/client.ts`
|
|
7
35
|
|
|
8
36
|
## 0.21.67
|
|
9
37
|
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
import { UUID_SHAPE_PATTERN } from "@ai-matrx/kit/uuid";
|
|
8
8
|
var PROTOCOL_MAJOR = 1;
|
|
9
|
-
var PROTOCOL_MINOR =
|
|
9
|
+
var PROTOCOL_MINOR = 69;
|
|
10
10
|
var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
|
|
11
11
|
var ProtocolVersion = z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
|
|
12
12
|
var RequestId = z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
|
|
@@ -758,7 +758,21 @@ var TextModelInfo = z10.strictObject({
|
|
|
758
758
|
id: TextModelId,
|
|
759
759
|
/** Download size of the weights. */
|
|
760
760
|
size_bytes: nonNegInt,
|
|
761
|
-
installed: z10.boolean()
|
|
761
|
+
installed: z10.boolean(),
|
|
762
|
+
/** (1.69) The name to show, for a model on this computer no catalog names (one that cannot run here). */
|
|
763
|
+
title: z10.string().min(1).max(200).optional(),
|
|
764
|
+
/**
|
|
765
|
+
* (1.69) Absent: it runs here. Else it is on this computer but cannot run, said in one plain
|
|
766
|
+
* line with its fix ("It needs about 39 GB of memory and this computer lets models use 24 GB.",
|
|
767
|
+
* "Part 2 of 3 is incomplete: …"). Listed so no model the person has ever vanishes; never startable.
|
|
768
|
+
*/
|
|
769
|
+
problem: z10.string().min(1).max(300).optional()
|
|
770
|
+
});
|
|
771
|
+
var UnusableTextModel = z10.strictObject({
|
|
772
|
+
key: TextModelId,
|
|
773
|
+
title: z10.string().min(1).max(200),
|
|
774
|
+
size_bytes: nonNegInt,
|
|
775
|
+
problem: z10.string().min(1).max(300)
|
|
762
776
|
});
|
|
763
777
|
var LlmServerState = z10.enum(["stopped", "starting", "running", "failed"]);
|
|
764
778
|
var LlmRunning = z10.strictObject({
|
|
@@ -772,8 +786,11 @@ var LlmRunning = z10.strictObject({
|
|
|
772
786
|
var ModelsLlmStatusParams = z10.strictObject({});
|
|
773
787
|
var ModelsLlmStatusResult = z10.strictObject({
|
|
774
788
|
state: LlmServerState,
|
|
775
|
-
/**
|
|
776
|
-
|
|
789
|
+
/**
|
|
790
|
+
* Every language model: (1.69) the ones on this computer first (installed, then those that cannot run
|
|
791
|
+
* here, each with its `problem`), then the rest of the catalog. Bounded at 1024 (64 until 1.69).
|
|
792
|
+
*/
|
|
793
|
+
models: z10.array(TextModelInfo).max(1024),
|
|
777
794
|
running: LlmRunning.nullable(),
|
|
778
795
|
/** The model being loaded while `state` is "starting". */
|
|
779
796
|
starting: TextModelId.nullable(),
|
|
@@ -847,7 +864,9 @@ var MlCatalogSetParams = z10.strictObject({
|
|
|
847
864
|
/** The knob desktop.models/default_transcription_model; null when the knob could not be read (a transcribe naming no model then says so). */
|
|
848
865
|
default_transcription: TranscriptionModelId.nullable(),
|
|
849
866
|
/** When the catalog was last changed (catalog_updated_at), for the service's log. */
|
|
850
|
-
catalog_updated_at: z10.string().max(40)
|
|
867
|
+
catalog_updated_at: z10.string().max(40),
|
|
868
|
+
/** (1.69) Language models on this computer that cannot run here, each with its one-line reason: models.llm.status lists them. */
|
|
869
|
+
unusable: z10.array(UnusableTextModel).max(512).optional()
|
|
851
870
|
});
|
|
852
871
|
var MlCatalogSetResult = z10.strictObject({ text: nonNegInt, transcription: nonNegInt });
|
|
853
872
|
var DownloadKind = z10.enum(["speech_model", "text_model", "runtime"]);
|
|
@@ -1031,7 +1050,13 @@ var AccountAgentsVersionDiffResult = z11.strictObject({
|
|
|
1031
1050
|
current: z11.record(z11.string().max(200), z11.unknown()).nullable()
|
|
1032
1051
|
});
|
|
1033
1052
|
var AccountAgentsRestoreVersionParams = z11.strictObject({ agent_id: AccountRowId, version_number: z11.int().min(1) });
|
|
1034
|
-
var AccountAgentsRestoreVersionResult = z11.strictObject({
|
|
1053
|
+
var AccountAgentsRestoreVersionResult = z11.strictObject({
|
|
1054
|
+
restored_version: z11.int().min(1),
|
|
1055
|
+
/** (1.68) The version row the restore saved ("Restored from v<N>"), now the agent's current version. */
|
|
1056
|
+
new_version: z11.int().min(1).optional(),
|
|
1057
|
+
/** (1.68) True when the agent already matched the restored version: nothing was saved. */
|
|
1058
|
+
unchanged: z11.boolean().optional()
|
|
1059
|
+
});
|
|
1035
1060
|
var VaultItemKind = z11.enum(["login", "passkey", "key", "other"]);
|
|
1036
1061
|
var VaultFieldSummary = z11.strictObject({
|
|
1037
1062
|
key: z11.string().min(1).max(120),
|
|
@@ -5000,6 +5025,7 @@ var NAMED_SCHEMAS = {
|
|
|
5000
5025
|
ModelsProgressEvent,
|
|
5001
5026
|
TextModelId,
|
|
5002
5027
|
TextModelInfo,
|
|
5028
|
+
UnusableTextModel,
|
|
5003
5029
|
ModelKey,
|
|
5004
5030
|
Sha256Hex,
|
|
5005
5031
|
CatalogFile,
|
|
@@ -5678,6 +5704,8 @@ var NAMED_SCHEMAS = {
|
|
|
5678
5704
|
import { compareVersions } from "@ai-matrx/kit/versions";
|
|
5679
5705
|
var FIELDS_SINCE = {
|
|
5680
5706
|
LlmRunning: { context_length: "1.48", gpu_layers: "1.48", threads: "1.48" },
|
|
5707
|
+
TextModelInfo: { title: "1.69", problem: "1.69" },
|
|
5708
|
+
MlCatalogSetParams: { unusable: "1.69" },
|
|
5681
5709
|
ModelsLlmStartParams: { gpu_layers: "1.48", threads: "1.48", load_timeout_s: "1.48" },
|
|
5682
5710
|
FsPatchResult: { edits_applied: "1.1", edits_failed: "1.1" },
|
|
5683
5711
|
"ProtocolErrorBody.data": { edits_failed: "1.1" },
|
|
@@ -5747,7 +5775,8 @@ var FIELDS_SINCE = {
|
|
|
5747
5775
|
WindowsFeaturesParams: { installed_only: "1.67" },
|
|
5748
5776
|
SysinfoHardwareResult: { graphics: "1.45" },
|
|
5749
5777
|
DownloadRow: { error: "1.46" },
|
|
5750
|
-
CopyRestart: { reopened: "1.60" }
|
|
5778
|
+
CopyRestart: { reopened: "1.60" },
|
|
5779
|
+
AccountAgentsRestoreVersionResult: { new_version: "1.68", unchanged: "1.68" }
|
|
5751
5780
|
};
|
|
5752
5781
|
var NULL_SINCE = {
|
|
5753
5782
|
"RelayDeviceStatusEvent.since_ms": { since: "1.1", olderPeersGet: 0 }
|
|
@@ -5832,7 +5861,8 @@ var RESULT_PATH = /* @__PURE__ */ new Map([
|
|
|
5832
5861
|
["apps.projects.to_window", "AppsProjectsToWindowResult"],
|
|
5833
5862
|
// 1.67: Matrx Local's local_mac_apps result fields.
|
|
5834
5863
|
["photos.get", "PhotosGetResult"],
|
|
5835
|
-
["location.get", "LocationGetResult"]
|
|
5864
|
+
["location.get", "LocationGetResult"],
|
|
5865
|
+
["account.agents.restore_version", "AccountAgentsRestoreVersionResult"]
|
|
5836
5866
|
]);
|
|
5837
5867
|
var NESTED_RESULTS = /* @__PURE__ */ new Map([
|
|
5838
5868
|
["apps.chats.list", [["chats", "ChatRow"]]],
|
|
@@ -6160,6 +6190,7 @@ export {
|
|
|
6160
6190
|
MlProgress,
|
|
6161
6191
|
TextModelId,
|
|
6162
6192
|
TextModelInfo,
|
|
6193
|
+
UnusableTextModel,
|
|
6163
6194
|
LlmServerState,
|
|
6164
6195
|
LlmRunning,
|
|
6165
6196
|
ModelsLlmStatusParams,
|
|
@@ -6874,4 +6905,4 @@ export {
|
|
|
6874
6905
|
closeRule,
|
|
6875
6906
|
isTerminalClose
|
|
6876
6907
|
};
|
|
6877
|
-
//# sourceMappingURL=chunk-server-
|
|
6908
|
+
//# sourceMappingURL=chunk-server-I6R2ZKMX.js.map
|