@ai-matrx/desktop-protocol 0.21.69 → 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 CHANGED
@@ -1,9 +1,28 @@
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
+
3
15
  ## 0.21.69
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 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`
7
26
 
8
27
  ## 0.21.68
9
28
 
@@ -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 = 68;
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
- /** Every model in the catalog, with whether its weights are on this computer. */
776
- models: z10.array(TextModelInfo).max(64),
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"]);
@@ -5006,6 +5025,7 @@ var NAMED_SCHEMAS = {
5006
5025
  ModelsProgressEvent,
5007
5026
  TextModelId,
5008
5027
  TextModelInfo,
5028
+ UnusableTextModel,
5009
5029
  ModelKey,
5010
5030
  Sha256Hex,
5011
5031
  CatalogFile,
@@ -5684,6 +5704,8 @@ var NAMED_SCHEMAS = {
5684
5704
  import { compareVersions } from "@ai-matrx/kit/versions";
5685
5705
  var FIELDS_SINCE = {
5686
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" },
5687
5709
  ModelsLlmStartParams: { gpu_layers: "1.48", threads: "1.48", load_timeout_s: "1.48" },
5688
5710
  FsPatchResult: { edits_applied: "1.1", edits_failed: "1.1" },
5689
5711
  "ProtocolErrorBody.data": { edits_failed: "1.1" },
@@ -6168,6 +6190,7 @@ export {
6168
6190
  MlProgress,
6169
6191
  TextModelId,
6170
6192
  TextModelInfo,
6193
+ UnusableTextModel,
6171
6194
  LlmServerState,
6172
6195
  LlmRunning,
6173
6196
  ModelsLlmStatusParams,
@@ -6882,4 +6905,4 @@ export {
6882
6905
  closeRule,
6883
6906
  isTerminalClose
6884
6907
  };
6885
- //# sourceMappingURL=chunk-server-TH6RJ5S5.js.map
6908
+ //# sourceMappingURL=chunk-server-I6R2ZKMX.js.map