@ai-matrx/desktop-protocol 0.21.74 → 0.21.76
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 +34 -1
- package/dist/{chunk-server-3L5JNEHY.js → chunk-server-HOQE4M4I.js} +58 -9
- package/dist/chunk-server-HOQE4M4I.js.map +1 -0
- package/dist/client.cjs +43 -8
- 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 +58 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +15 -5
- package/dist/index.d.ts +15 -5
- package/dist/index.js +14 -2
- package/dist/index.js.map +1 -1
- package/dist/{models-BRm_O6a-.d.cts → models-Bz88NHi0.d.cts} +195 -2
- package/dist/{models-BRm_O6a-.d.ts → models-Bz88NHi0.d.ts} +195 -2
- package/dist/react.d.cts +43 -0
- package/dist/react.d.ts +43 -0
- package/generated/desktop-protocol.schema.json +164 -7
- package/package.json +2 -2
- package/dist/chunk-server-3L5JNEHY.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,36 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 0.21.
|
|
3
|
+
## 0.21.76
|
|
4
4
|
|
|
5
5
|
UNVERIFIED: this release has no Unreleased entry and the source comparison could not be made (the caller supplied no source comparison). Whether source changed is unknown; consumer action is unknown.
|
|
6
6
|
Check the package's gitHead on npm against this version's gitHead: `git diff <previous gitHead> <this gitHead> -- apps/shared/desktop-protocol/src`.
|
|
7
7
|
|
|
8
|
+
## 0.21.75
|
|
9
|
+
### Protocol 1.74 — the models on this computer, and Remove
|
|
10
|
+
|
|
11
|
+
- New op `models.local.list` (service op `ml.local_list`): every model the ml service holds — language
|
|
12
|
+
models (the person's own adopted models included) and speech models — as `LocalModelRow`: `kind`
|
|
13
|
+
(`text` | `speech`), `model`, `path`, `size_bytes`, `freed_bytes` (what Remove gives back),
|
|
14
|
+
`in_place`, `source` (the folder the person's files stay in) and `running`.
|
|
15
|
+
- New op `models.local.remove` (service op `ml.local_remove`, `kind` + `model`): deletes only the files
|
|
16
|
+
Matrx 2 holds; a link to the person's own file is unlinked, never the file. The running model is
|
|
17
|
+
stopped first. Answers `freed_bytes`, `stopped` and `kept`.
|
|
18
|
+
- New ops since 1.74. Consumer action: none for an older client.
|
|
19
|
+
|
|
20
|
+
## 0.21.74
|
|
21
|
+
|
|
22
|
+
SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
|
|
23
|
+
so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
|
|
24
|
+
Diff: `git diff aa4f979a76 3165453310 -- apps/shared/desktop-protocol/src`
|
|
25
|
+
|
|
26
|
+
Changed shipped source files (6):
|
|
27
|
+
- `apps/shared/desktop-protocol/src/contract.ts`
|
|
28
|
+
- `apps/shared/desktop-protocol/src/schema/apps-accounts.ts`
|
|
29
|
+
- `apps/shared/desktop-protocol/src/schema/apps-instances.ts`
|
|
30
|
+
- `apps/shared/desktop-protocol/src/schema/primitives.ts`
|
|
31
|
+
- `apps/shared/desktop-protocol/src/schema/registry.ts`
|
|
32
|
+
- `apps/shared/desktop-protocol/src/versioning.ts`
|
|
33
|
+
|
|
8
34
|
## 0.21.73
|
|
9
35
|
### Protocol 1.72 — ours pushed into the apps
|
|
10
36
|
|
|
@@ -229,6 +255,13 @@ Changed shipped source files (2):
|
|
|
229
255
|
|
|
230
256
|
## 0.21.52
|
|
231
257
|
### Unreleased
|
|
258
|
+
### Protocol 1.75 — every model arrives
|
|
259
|
+
|
|
260
|
+
- No models list carries a bound: `ModelsLlmStatusResult.models` (was 1024), `MlStatusResult.models`
|
|
261
|
+
(16), `MlCatalogSetParams` `text` / `transcription` / `unusable` (512 / 64 / 512) and
|
|
262
|
+
`ModelsDownloadsListResult.downloads` (64), `ModelsLocalListResult.models` (1024). The writers had sliced to the bound, silently cutting
|
|
263
|
+
off a person's models. Constraints loosened only. Consumer action: drop any matching slice.
|
|
264
|
+
|
|
232
265
|
### Protocol 1.73 — what each coding app keeps besides chats
|
|
233
266
|
|
|
234
267
|
- `AppAccount`: optional `profile` (`AccountProfile`: name, organization and role, seat and
|
|
@@ -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 = 75;
|
|
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_-]+$/);
|
|
@@ -725,7 +725,8 @@ var MlStatusResult = z10.strictObject({
|
|
|
725
725
|
error: z10.string().max(300).nullable(),
|
|
726
726
|
/** Where inference runs once the runtime is installed: `cuda` only when a usable GPU is present. */
|
|
727
727
|
accelerator: z10.enum(["cpu", "cuda"]),
|
|
728
|
-
|
|
728
|
+
/** Every transcription model in the catalog (1.74: unbounded; a bound here silently dropped models past 16). */
|
|
729
|
+
models: z10.array(TranscriptionModelInfo),
|
|
729
730
|
default_model: TranscriptionModelId
|
|
730
731
|
});
|
|
731
732
|
var ModelsInstallParams = z10.strictObject({ model: TranscriptionModelId.optional() });
|
|
@@ -788,9 +789,10 @@ var ModelsLlmStatusResult = z10.strictObject({
|
|
|
788
789
|
state: LlmServerState,
|
|
789
790
|
/**
|
|
790
791
|
* 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.
|
|
792
|
+
* here, each with its `problem`), then the rest of the catalog. Every one: unbounded since 1.74
|
|
793
|
+
* (64 until 1.69, 1024 until 1.74; a bound silently cut off models).
|
|
792
794
|
*/
|
|
793
|
-
models: z10.array(TextModelInfo)
|
|
795
|
+
models: z10.array(TextModelInfo),
|
|
794
796
|
running: LlmRunning.nullable(),
|
|
795
797
|
/** The model being loaded while `state` is "starting". */
|
|
796
798
|
starting: TextModelId.nullable(),
|
|
@@ -857,8 +859,9 @@ var LlamaServerBuild = z10.strictObject({
|
|
|
857
859
|
sha256: Sha256Hex
|
|
858
860
|
});
|
|
859
861
|
var MlCatalogSetParams = z10.strictObject({
|
|
860
|
-
|
|
861
|
-
|
|
862
|
+
/** (1.74) Unbounded, like every models list: a catalog or a person's own models are never cut off. */
|
|
863
|
+
text: z10.array(CatalogModelEntry),
|
|
864
|
+
transcription: z10.array(CatalogModelEntry),
|
|
862
865
|
/** Null where the catalog has no build for this os/arch (installs then say so). */
|
|
863
866
|
llama_server: LlamaServerBuild.nullable(),
|
|
864
867
|
/** The knob desktop.models/default_transcription_model; null when the knob could not be read (a transcribe naming no model then says so). */
|
|
@@ -866,7 +869,7 @@ var MlCatalogSetParams = z10.strictObject({
|
|
|
866
869
|
/** When the catalog was last changed (catalog_updated_at), for the service's log. */
|
|
867
870
|
catalog_updated_at: z10.string().max(40),
|
|
868
871
|
/** (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).
|
|
872
|
+
unusable: z10.array(UnusableTextModel).optional()
|
|
870
873
|
});
|
|
871
874
|
var MlCatalogSetResult = z10.strictObject({ text: nonNegInt, transcription: nonNegInt });
|
|
872
875
|
var DownloadKind = z10.enum(["speech_model", "text_model", "runtime"]);
|
|
@@ -891,9 +894,39 @@ var DownloadRow = z10.strictObject({
|
|
|
891
894
|
error: z10.string().max(300).optional()
|
|
892
895
|
});
|
|
893
896
|
var ModelsDownloadsListParams = z10.strictObject({});
|
|
894
|
-
var ModelsDownloadsListResult = z10.strictObject({ downloads: z10.array(DownloadRow)
|
|
897
|
+
var ModelsDownloadsListResult = z10.strictObject({ downloads: z10.array(DownloadRow) });
|
|
895
898
|
var ModelsDownloadsCancelParams = z10.strictObject({ key: z10.string().max(64) });
|
|
896
899
|
var ModelsDownloadsCancelResult = z10.strictObject({ cancelled: z10.boolean() });
|
|
900
|
+
var LocalModelKind = z10.enum(["text", "speech"]);
|
|
901
|
+
var LocalModelRow = z10.strictObject({
|
|
902
|
+
kind: LocalModelKind,
|
|
903
|
+
model: ModelKey,
|
|
904
|
+
/** Its folder in the service's store. */
|
|
905
|
+
path: z10.string().max(1024),
|
|
906
|
+
/** Every file of the model, as installed. */
|
|
907
|
+
size_bytes: nonNegInt,
|
|
908
|
+
/** What Remove frees: the files only Matrx 2 holds. A file linked from the person's own folder frees nothing. */
|
|
909
|
+
freed_bytes: nonNegInt,
|
|
910
|
+
/** True when any file is a link to a file elsewhere (used in place): Remove then never deletes that file. */
|
|
911
|
+
in_place: z10.boolean(),
|
|
912
|
+
/** The folder the person's files stay in (in place), when the service can tell; null otherwise. */
|
|
913
|
+
source: z10.string().max(1024).nullable(),
|
|
914
|
+
/** The language model the server runs now (Remove stops it first). */
|
|
915
|
+
running: z10.boolean()
|
|
916
|
+
});
|
|
917
|
+
var ModelsLocalListParams = z10.strictObject({});
|
|
918
|
+
var ModelsLocalListResult = z10.strictObject({ models: z10.array(LocalModelRow) });
|
|
919
|
+
var ModelsLocalRemoveParams = z10.strictObject({ kind: LocalModelKind, model: ModelKey });
|
|
920
|
+
var ModelsLocalRemoveResult = z10.strictObject({
|
|
921
|
+
kind: LocalModelKind,
|
|
922
|
+
model: ModelKey,
|
|
923
|
+
/** Bytes of disk the removal gave back (0 for a model used in place). */
|
|
924
|
+
freed_bytes: nonNegInt,
|
|
925
|
+
/** True when it was the running model and the server was stopped first. */
|
|
926
|
+
stopped: z10.boolean(),
|
|
927
|
+
/** Where the person's files stay (a model used in place); null when nothing was kept. */
|
|
928
|
+
kept: z10.string().max(1024).nullable()
|
|
929
|
+
});
|
|
897
930
|
var MlServiceState = z10.enum(["starting", "ready", "restarting", "failed", "stopped"]);
|
|
898
931
|
var MlServiceStatus = z10.strictObject({
|
|
899
932
|
state: MlServiceState,
|
|
@@ -4712,6 +4745,8 @@ var OPS = {
|
|
|
4712
4745
|
"models.llm.stop": { params: ModelsLlmStopParams, result: ModelsLlmStopResult, kind: "unary", since: "1.31", errors: ["INTERNAL"] },
|
|
4713
4746
|
"models.downloads.list": { params: ModelsDownloadsListParams, result: ModelsDownloadsListResult, kind: "unary", since: "1.45", errors: ["INTERNAL"] },
|
|
4714
4747
|
"models.downloads.cancel": { params: ModelsDownloadsCancelParams, result: ModelsDownloadsCancelResult, kind: "unary", since: "1.45", errors: ["NOT_FOUND", "INTERNAL"] },
|
|
4748
|
+
"models.local.list": { params: ModelsLocalListParams, result: ModelsLocalListResult, kind: "unary", since: "1.74", errors: ["INTERNAL"] },
|
|
4749
|
+
"models.local.remove": { params: ModelsLocalRemoveParams, result: ModelsLocalRemoveResult, kind: "unary", since: "1.74", errors: ["NOT_FOUND", "INVALID_PARAMS", "RESOURCE_BUSY", "INTERNAL"] },
|
|
4715
4750
|
// Desktop apps and their profiles (SPEC §6 apps); profiles are rows in users.desktop_app_profile.
|
|
4716
4751
|
"apps.list": { params: AppsListParams, result: AppsListResult, kind: "unary", since: "1.2", errors: ["INTERNAL"] },
|
|
4717
4752
|
"apps.profiles.list": { params: AppsProfilesListParams, result: AppsProfilesListResult, kind: "unary", since: "1.2", errors: ["NOT_FOUND", "INVALID_PARAMS", "INTERNAL"] },
|
|
@@ -4992,6 +5027,8 @@ var SERVICES = {
|
|
|
4992
5027
|
"ml.llm_stop": { params: ModelsLlmStopParams, result: ModelsLlmStopResult },
|
|
4993
5028
|
"ml.downloads": { params: ModelsDownloadsListParams, result: ModelsDownloadsListResult },
|
|
4994
5029
|
"ml.download_cancel": { params: ModelsDownloadsCancelParams, result: ModelsDownloadsCancelResult },
|
|
5030
|
+
"ml.local_list": { params: ModelsLocalListParams, result: ModelsLocalListResult },
|
|
5031
|
+
"ml.local_remove": { params: ModelsLocalRemoveParams, result: ModelsLocalRemoveResult },
|
|
4995
5032
|
"ml.catalog_set": { params: MlCatalogSetParams, result: MlCatalogSetResult }
|
|
4996
5033
|
}
|
|
4997
5034
|
},
|
|
@@ -5190,6 +5227,12 @@ var NAMED_SCHEMAS = {
|
|
|
5190
5227
|
ModelsDownloadsListResult,
|
|
5191
5228
|
ModelsDownloadsCancelParams,
|
|
5192
5229
|
ModelsDownloadsCancelResult,
|
|
5230
|
+
LocalModelKind,
|
|
5231
|
+
LocalModelRow,
|
|
5232
|
+
ModelsLocalListParams,
|
|
5233
|
+
ModelsLocalListResult,
|
|
5234
|
+
ModelsLocalRemoveParams,
|
|
5235
|
+
ModelsLocalRemoveResult,
|
|
5193
5236
|
CodingServiceCredentials,
|
|
5194
5237
|
CodingHistoryBlocked,
|
|
5195
5238
|
CodingHistoryFailure,
|
|
@@ -6363,6 +6406,12 @@ export {
|
|
|
6363
6406
|
ModelsDownloadsListResult,
|
|
6364
6407
|
ModelsDownloadsCancelParams,
|
|
6365
6408
|
ModelsDownloadsCancelResult,
|
|
6409
|
+
LocalModelKind,
|
|
6410
|
+
LocalModelRow,
|
|
6411
|
+
ModelsLocalListParams,
|
|
6412
|
+
ModelsLocalListResult,
|
|
6413
|
+
ModelsLocalRemoveParams,
|
|
6414
|
+
ModelsLocalRemoveResult,
|
|
6366
6415
|
MlServiceState,
|
|
6367
6416
|
MlServiceStatus,
|
|
6368
6417
|
ModelsStatusParams,
|
|
@@ -7074,4 +7123,4 @@ export {
|
|
|
7074
7123
|
closeRule,
|
|
7075
7124
|
isTerminalClose
|
|
7076
7125
|
};
|
|
7077
|
-
//# sourceMappingURL=chunk-server-
|
|
7126
|
+
//# sourceMappingURL=chunk-server-HOQE4M4I.js.map
|