@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 CHANGED
@@ -1,9 +1,37 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.21.71
4
+ ### Protocol 1.70 — our Hide for chats
5
+
6
+ - `ChatRow`: optional `hidden` — the person hid the chat from Matrx's lists. Kept by Matrx, never
7
+ written into the app; the app's own hidden facts stay `hidden_in`, `archived`, `hidden_from_main`.
8
+ - New op `apps.chats.hide` (`app_key`, `chat_ids` 1–500, `hidden`) answers `changed`: the chats whose
9
+ hidden state the call changed.
10
+ - Optional field in FIELDS_SINCE, new op since 1.70. Consumer action: none for an older client.
11
+
12
+ ## 0.21.70
13
+ ### Protocol 1.69 — every local language model is listed, with why one cannot run
14
+
15
+ - `TextModelInfo` (models.llm.status `models`): optional `title` and `problem`. `problem` set = the
16
+ model is on this computer but cannot run here, in one plain line with its fix; it is never startable.
17
+ - `ModelsLlmStatusResult.models`: the models on this computer come first; bounded at 1024 (was 64),
18
+ so a long catalog never cuts off a model the person has.
19
+ - `MlCatalogSetParams`: optional `unusable` (new named `UnusableTextModel`: key, title, size_bytes,
20
+ problem), the app's judged list the service echoes in models.llm.status.
21
+ - All optional, in FIELDS_SINCE. Consumer action: none for an older client; a 1.69 client can show
22
+ the reason line beside a model.
23
+
3
24
  ## 0.21.69
4
25
 
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`.
26
+ SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
27
+ so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
28
+ Diff: `git diff a8b863ca17 65685f41ac -- apps/shared/desktop-protocol/src`
29
+
30
+ Changed shipped source files (4):
31
+ - `apps/shared/desktop-protocol/src/contract.ts`
32
+ - `apps/shared/desktop-protocol/src/schema/account.ts`
33
+ - `apps/shared/desktop-protocol/src/schema/primitives.ts`
34
+ - `apps/shared/desktop-protocol/src/versioning.ts`
7
35
 
8
36
  ## 0.21.68
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 = 68;
9
+ var PROTOCOL_MINOR = 70;
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"]);
@@ -1293,7 +1312,12 @@ var ChatRow = z13.strictObject({
1293
1312
  * moved). Claude: the side window holding its newest record copy (main mirrors every window), else
1294
1313
  * main; Codex: the home whose database holds it. Absent = only Matrx's holder keeps it.
1295
1314
  */
1296
- home: ChatPlace.optional()
1315
+ home: ChatPlace.optional(),
1316
+ /**
1317
+ * 1.70: the person hid it from Matrx's lists (ours, kept by Matrx, never written into the app;
1318
+ * absent = shown). The app's own hidden facts stay apart: `hidden_in`, `archived`, `hidden_from_main`.
1319
+ */
1320
+ hidden: z13.boolean().optional()
1297
1321
  });
1298
1322
  var ChatFamily = z13.strictObject({
1299
1323
  id: ChatId,
@@ -1372,6 +1396,8 @@ var AppsProjectsUnfileParams = z13.strictObject({ app_key: AppKey, chat_id: Chat
1372
1396
  var AppsProjectsUnfileResult = z13.strictObject({ chat: ChatRow });
1373
1397
  var AppsChatsStarParams = z13.strictObject({ app_key: AppKey, chat_id: ChatId, starred: z13.boolean() });
1374
1398
  var AppsChatsStarResult = z13.strictObject({ chat: ChatRow });
1399
+ var AppsChatsHideParams = z13.strictObject({ app_key: AppKey, chat_ids: z13.array(ChatId).min(1).max(500), hidden: z13.boolean() });
1400
+ var AppsChatsHideResult = z13.strictObject({ app_key: AppKey, hidden: z13.boolean(), changed: z13.array(ChatId).max(500) });
1375
1401
 
1376
1402
  // src/schema/apps-accounts.ts
1377
1403
  import { z as z14 } from "zod";
@@ -4576,6 +4602,7 @@ var OPS = {
4576
4602
  "apps.chats.list": { params: AppsChatsListParams, result: AppsChatsListResult, kind: "unary", since: "1.8", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
4577
4603
  "apps.chats.watch": { params: AppsChatsWatchParams, result: AppsChatsWatchResult, kind: "resource", since: "1.8", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "RESOURCE_BUSY", "INTERNAL"] },
4578
4604
  "apps.chats.star": { params: AppsChatsStarParams, result: AppsChatsStarResult, kind: "unary", since: "1.8", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
4605
+ "apps.chats.hide": { params: AppsChatsHideParams, result: AppsChatsHideResult, kind: "unary", since: "1.70", errors: ["INVALID_PARAMS", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
4579
4606
  "apps.projects.file": { params: AppsProjectsFileParams, result: AppsProjectsFileResult, kind: "unary", since: "1.8", errors: ["NOT_FOUND", "INVALID_PARAMS", "CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
4580
4607
  "apps.chats.place": { params: AppsChatsPlaceParams, result: AppsChatsPlaceResult, kind: "unary", since: "1.9", errors: ["NOT_FOUND", "INVALID_PARAMS", "CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
4581
4608
  "apps.projects.file_many": { params: AppsProjectsFileManyParams, result: AppsProjectsFileManyResult, kind: "unary", since: "1.9", errors: ["NOT_FOUND", "INVALID_PARAMS", "CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
@@ -5006,6 +5033,7 @@ var NAMED_SCHEMAS = {
5006
5033
  ModelsProgressEvent,
5007
5034
  TextModelId,
5008
5035
  TextModelInfo,
5036
+ UnusableTextModel,
5009
5037
  ModelKey,
5010
5038
  Sha256Hex,
5011
5039
  CatalogFile,
@@ -5323,6 +5351,8 @@ var NAMED_SCHEMAS = {
5323
5351
  AppsChatsChangedEvent,
5324
5352
  AppsChatsStarParams,
5325
5353
  AppsChatsStarResult,
5354
+ AppsChatsHideParams,
5355
+ AppsChatsHideResult,
5326
5356
  AppsProjectsFileParams,
5327
5357
  AppsProjectsFileResult,
5328
5358
  AppsProjectsUnfileParams,
@@ -5684,6 +5714,8 @@ var NAMED_SCHEMAS = {
5684
5714
  import { compareVersions } from "@ai-matrx/kit/versions";
5685
5715
  var FIELDS_SINCE = {
5686
5716
  LlmRunning: { context_length: "1.48", gpu_layers: "1.48", threads: "1.48" },
5717
+ TextModelInfo: { title: "1.69", problem: "1.69" },
5718
+ MlCatalogSetParams: { unusable: "1.69" },
5687
5719
  ModelsLlmStartParams: { gpu_layers: "1.48", threads: "1.48", load_timeout_s: "1.48" },
5688
5720
  FsPatchResult: { edits_applied: "1.1", edits_failed: "1.1" },
5689
5721
  "ProtocolErrorBody.data": { edits_failed: "1.1" },
@@ -5706,7 +5738,7 @@ var FIELDS_SINCE = {
5706
5738
  AppsChatsListResult: { updating: "1.9", live: "1.9", families: "1.10" },
5707
5739
  AppsAccountsUsageResult: { problem: "1.12" },
5708
5740
  AppsAccountsResetsResult: { problem: "1.12" },
5709
- ChatRow: { app_project: "1.13", tokens: "1.13", original_title: "1.14", title_source: "1.14", title_override: "1.14", archived: "1.15", session_id: "1.59", app_groups: "1.59", parent: "1.59", prior_sessions: "1.59", title_sync: "1.61", moved: "1.62", home: "1.63" },
5741
+ ChatRow: { app_project: "1.13", tokens: "1.13", original_title: "1.14", title_source: "1.14", title_override: "1.14", archived: "1.15", session_id: "1.59", app_groups: "1.59", parent: "1.59", prior_sessions: "1.59", title_sync: "1.61", moved: "1.62", home: "1.63", hidden: "1.70" },
5710
5742
  AccountUsage: { plan: "1.13", credits: "1.13", five_hour_resets_by_ms: "1.25" },
5711
5743
  ResourcesDisk: { name: "1.17" },
5712
5744
  StackServer: { cpu_percent: "1.18", memory_bytes: "1.18" },
@@ -6168,6 +6200,7 @@ export {
6168
6200
  MlProgress,
6169
6201
  TextModelId,
6170
6202
  TextModelInfo,
6203
+ UnusableTextModel,
6171
6204
  LlmServerState,
6172
6205
  LlmRunning,
6173
6206
  ModelsLlmStatusParams,
@@ -6279,6 +6312,8 @@ export {
6279
6312
  AppsProjectsUnfileResult,
6280
6313
  AppsChatsStarParams,
6281
6314
  AppsChatsStarResult,
6315
+ AppsChatsHideParams,
6316
+ AppsChatsHideResult,
6282
6317
  WindowRemoteControl,
6283
6318
  AppWindowInfo,
6284
6319
  AccountUsage,
@@ -6882,4 +6917,4 @@ export {
6882
6917
  closeRule,
6883
6918
  isTerminalClose
6884
6919
  };
6885
- //# sourceMappingURL=chunk-server-TH6RJ5S5.js.map
6920
+ //# sourceMappingURL=chunk-server-TKQNS7QK.js.map