@ai-matrx/desktop-protocol 0.21.74 → 0.21.75

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 CHANGED
@@ -1,9 +1,30 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.21.75
4
+ ### Protocol 1.74 — the models on this computer, and Remove
5
+
6
+ - New op `models.local.list` (service op `ml.local_list`): every model the ml service holds — language
7
+ models (the person's own adopted models included) and speech models — as `LocalModelRow`: `kind`
8
+ (`text` | `speech`), `model`, `path`, `size_bytes`, `freed_bytes` (what Remove gives back),
9
+ `in_place`, `source` (the folder the person's files stay in) and `running`.
10
+ - New op `models.local.remove` (service op `ml.local_remove`, `kind` + `model`): deletes only the files
11
+ Matrx 2 holds; a link to the person's own file is unlinked, never the file. The running model is
12
+ stopped first. Answers `freed_bytes`, `stopped` and `kept`.
13
+ - New ops since 1.74. Consumer action: none for an older client.
14
+
3
15
  ## 0.21.74
4
16
 
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
- Check the package's gitHead on npm against this version's gitHead: `git diff <previous gitHead> <this gitHead> -- apps/shared/desktop-protocol/src`.
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 aa4f979a76 3165453310 -- apps/shared/desktop-protocol/src`
20
+
21
+ Changed shipped source files (6):
22
+ - `apps/shared/desktop-protocol/src/contract.ts`
23
+ - `apps/shared/desktop-protocol/src/schema/apps-accounts.ts`
24
+ - `apps/shared/desktop-protocol/src/schema/apps-instances.ts`
25
+ - `apps/shared/desktop-protocol/src/schema/primitives.ts`
26
+ - `apps/shared/desktop-protocol/src/schema/registry.ts`
27
+ - `apps/shared/desktop-protocol/src/versioning.ts`
7
28
 
8
29
  ## 0.21.73
9
30
  ### Protocol 1.72 — ours pushed into the apps
@@ -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 = 73;
9
+ var PROTOCOL_MINOR = 74;
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_-]+$/);
@@ -894,6 +894,36 @@ var ModelsDownloadsListParams = z10.strictObject({});
894
894
  var ModelsDownloadsListResult = z10.strictObject({ downloads: z10.array(DownloadRow).max(64) });
895
895
  var ModelsDownloadsCancelParams = z10.strictObject({ key: z10.string().max(64) });
896
896
  var ModelsDownloadsCancelResult = z10.strictObject({ cancelled: z10.boolean() });
897
+ var LocalModelKind = z10.enum(["text", "speech"]);
898
+ var LocalModelRow = z10.strictObject({
899
+ kind: LocalModelKind,
900
+ model: ModelKey,
901
+ /** Its folder in the service's store. */
902
+ path: z10.string().max(1024),
903
+ /** Every file of the model, as installed. */
904
+ size_bytes: nonNegInt,
905
+ /** What Remove frees: the files only Matrx 2 holds. A file linked from the person's own folder frees nothing. */
906
+ freed_bytes: nonNegInt,
907
+ /** True when any file is a link to a file elsewhere (used in place): Remove then never deletes that file. */
908
+ in_place: z10.boolean(),
909
+ /** The folder the person's files stay in (in place), when the service can tell; null otherwise. */
910
+ source: z10.string().max(1024).nullable(),
911
+ /** The language model the server runs now (Remove stops it first). */
912
+ running: z10.boolean()
913
+ });
914
+ var ModelsLocalListParams = z10.strictObject({});
915
+ var ModelsLocalListResult = z10.strictObject({ models: z10.array(LocalModelRow).max(1024) });
916
+ var ModelsLocalRemoveParams = z10.strictObject({ kind: LocalModelKind, model: ModelKey });
917
+ var ModelsLocalRemoveResult = z10.strictObject({
918
+ kind: LocalModelKind,
919
+ model: ModelKey,
920
+ /** Bytes of disk the removal gave back (0 for a model used in place). */
921
+ freed_bytes: nonNegInt,
922
+ /** True when it was the running model and the server was stopped first. */
923
+ stopped: z10.boolean(),
924
+ /** Where the person's files stay (a model used in place); null when nothing was kept. */
925
+ kept: z10.string().max(1024).nullable()
926
+ });
897
927
  var MlServiceState = z10.enum(["starting", "ready", "restarting", "failed", "stopped"]);
898
928
  var MlServiceStatus = z10.strictObject({
899
929
  state: MlServiceState,
@@ -4712,6 +4742,8 @@ var OPS = {
4712
4742
  "models.llm.stop": { params: ModelsLlmStopParams, result: ModelsLlmStopResult, kind: "unary", since: "1.31", errors: ["INTERNAL"] },
4713
4743
  "models.downloads.list": { params: ModelsDownloadsListParams, result: ModelsDownloadsListResult, kind: "unary", since: "1.45", errors: ["INTERNAL"] },
4714
4744
  "models.downloads.cancel": { params: ModelsDownloadsCancelParams, result: ModelsDownloadsCancelResult, kind: "unary", since: "1.45", errors: ["NOT_FOUND", "INTERNAL"] },
4745
+ "models.local.list": { params: ModelsLocalListParams, result: ModelsLocalListResult, kind: "unary", since: "1.74", errors: ["INTERNAL"] },
4746
+ "models.local.remove": { params: ModelsLocalRemoveParams, result: ModelsLocalRemoveResult, kind: "unary", since: "1.74", errors: ["NOT_FOUND", "INVALID_PARAMS", "RESOURCE_BUSY", "INTERNAL"] },
4715
4747
  // Desktop apps and their profiles (SPEC §6 apps); profiles are rows in users.desktop_app_profile.
4716
4748
  "apps.list": { params: AppsListParams, result: AppsListResult, kind: "unary", since: "1.2", errors: ["INTERNAL"] },
4717
4749
  "apps.profiles.list": { params: AppsProfilesListParams, result: AppsProfilesListResult, kind: "unary", since: "1.2", errors: ["NOT_FOUND", "INVALID_PARAMS", "INTERNAL"] },
@@ -4992,6 +5024,8 @@ var SERVICES = {
4992
5024
  "ml.llm_stop": { params: ModelsLlmStopParams, result: ModelsLlmStopResult },
4993
5025
  "ml.downloads": { params: ModelsDownloadsListParams, result: ModelsDownloadsListResult },
4994
5026
  "ml.download_cancel": { params: ModelsDownloadsCancelParams, result: ModelsDownloadsCancelResult },
5027
+ "ml.local_list": { params: ModelsLocalListParams, result: ModelsLocalListResult },
5028
+ "ml.local_remove": { params: ModelsLocalRemoveParams, result: ModelsLocalRemoveResult },
4995
5029
  "ml.catalog_set": { params: MlCatalogSetParams, result: MlCatalogSetResult }
4996
5030
  }
4997
5031
  },
@@ -5190,6 +5224,12 @@ var NAMED_SCHEMAS = {
5190
5224
  ModelsDownloadsListResult,
5191
5225
  ModelsDownloadsCancelParams,
5192
5226
  ModelsDownloadsCancelResult,
5227
+ LocalModelKind,
5228
+ LocalModelRow,
5229
+ ModelsLocalListParams,
5230
+ ModelsLocalListResult,
5231
+ ModelsLocalRemoveParams,
5232
+ ModelsLocalRemoveResult,
5193
5233
  CodingServiceCredentials,
5194
5234
  CodingHistoryBlocked,
5195
5235
  CodingHistoryFailure,
@@ -6363,6 +6403,12 @@ export {
6363
6403
  ModelsDownloadsListResult,
6364
6404
  ModelsDownloadsCancelParams,
6365
6405
  ModelsDownloadsCancelResult,
6406
+ LocalModelKind,
6407
+ LocalModelRow,
6408
+ ModelsLocalListParams,
6409
+ ModelsLocalListResult,
6410
+ ModelsLocalRemoveParams,
6411
+ ModelsLocalRemoveResult,
6366
6412
  MlServiceState,
6367
6413
  MlServiceStatus,
6368
6414
  ModelsStatusParams,
@@ -7074,4 +7120,4 @@ export {
7074
7120
  closeRule,
7075
7121
  isTerminalClose
7076
7122
  };
7077
- //# sourceMappingURL=chunk-server-3L5JNEHY.js.map
7123
+ //# sourceMappingURL=chunk-server-FBLTGJJA.js.map