@ai-matrx/desktop-protocol 0.21.77 → 0.21.79

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,10 +1,34 @@
1
1
  # Changelog
2
2
 
3
- ## 0.21.77
3
+ ## 0.21.79
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.78
9
+
10
+ SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
11
+ so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
12
+ Diff: `git diff 03e482c3bf dc95f05a68 -- apps/shared/desktop-protocol/src`
13
+
14
+ Changed shipped source files (7):
15
+ - `apps/shared/desktop-protocol/src/contract.ts`
16
+ - `apps/shared/desktop-protocol/src/schema/errors.ts`
17
+ - `apps/shared/desktop-protocol/src/schema/models.ts`
18
+ - `apps/shared/desktop-protocol/src/schema/primitives.ts`
19
+ - `apps/shared/desktop-protocol/src/schema/registry.ts`
20
+ - `apps/shared/desktop-protocol/src/types.ts`
21
+ - `apps/shared/desktop-protocol/src/versioning.ts`
22
+
23
+ ## 0.21.77
24
+
25
+ SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
26
+ so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
27
+ Diff: `git diff 7938caf350 03e482c3bf -- apps/shared/desktop-protocol/src`
28
+
29
+ Changed shipped source files (1):
30
+ - `apps/shared/desktop-protocol/src/tools/catalog.ts`
31
+
8
32
  ## 0.21.76
9
33
 
10
34
  SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
@@ -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 = 75;
9
+ var PROTOCOL_MINOR = 77;
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_-]+$/);
@@ -93,8 +93,13 @@ var ErrorReason = z2.enum([
93
93
  "awaiting_confirmation",
94
94
  // TIMEOUT: the person did not answer the browser's confirmation in time
95
95
  // 1.34 (REASONS_SINCE): the per-device tool policy (src/tools/policy.ts)
96
- "tool_disabled_on_device"
96
+ "tool_disabled_on_device",
97
97
  // AUTH_FORBIDDEN: the person turned this tool off for agents on this computer (Agents › Tools)
98
+ // 1.76 (REASONS_SINCE): models.llm.chat
99
+ "model_not_running",
100
+ // NOT_FOUND (nothing runs) or RESOURCE_BUSY (another model runs): start this model first
101
+ "model_server_unreachable"
102
+ // RESOURCE_GONE (retryable): llama-server did not answer on this computer
98
103
  ]);
99
104
  var FsPatchEditFailure = z2.strictObject({ edit_index: nonNegInt, reason: z2.string().max(300) });
100
105
  var ProtocolErrorBody = z2.strictObject({
@@ -826,6 +831,14 @@ var ModelsLlmStartParams = z10.strictObject({
826
831
  var ModelsLlmStartResult = z10.strictObject({ running: LlmRunning, elapsed_ms: nonNegInt });
827
832
  var ModelsLlmStopParams = z10.strictObject({});
828
833
  var ModelsLlmStopResult = z10.strictObject({ stopped: z10.boolean() });
834
+ var ModelsLlmChatParams = z10.strictObject({
835
+ model: TextModelId,
836
+ body: z10.record(z10.string().max(200), z10.unknown()),
837
+ /** Start the model first when nothing runs (a `models` progress event says so); a different model running is never stopped. */
838
+ start_if_stopped: z10.boolean().optional(),
839
+ window_bytes: z10.int().min(4096).max(16777216).optional()
840
+ });
841
+ var ModelsLlmChatResult = z10.strictObject({ model: TextModelId, content_type: z10.string().max(128) });
829
842
  var Sha256Hex = z10.string().regex(/^[0-9a-f]{64}$/);
830
843
  var CatalogFile = z10.strictObject({
831
844
  /** Path inside the model's folder (the artifact's path_in_repo). */
@@ -3359,7 +3372,13 @@ var CodingServiceCredentials = z33.strictObject({
3359
3372
  access_token: z33.string().min(16).max(16384),
3360
3373
  user_id: z33.string().regex(UUID_SHAPE_PATTERN5),
3361
3374
  /** The AI Matrx server this app talks to (production, or a local server on the nightly copy). */
3362
- server_url: z33.string().min(1).max(2048).regex(/^https?:\/\/[^\s/?#]+(\/[^\s?#]*)?$/)
3375
+ server_url: z33.string().min(1).max(2048).regex(/^https?:\/\/[^\s/?#]+(\/[^\s?#]*)?$/),
3376
+ /**
3377
+ * The organization the person works in (the core's active organization): the service sends it as
3378
+ * X-Organization-Id on every AI Matrx request, as the app's own calls do. Absent: the
3379
+ * service sends nothing and says an organization is needed (1.77).
3380
+ */
3381
+ organization_id: z33.string().regex(UUID_SHAPE_PATTERN5).optional()
3363
3382
  });
3364
3383
  var CodingHistoryBlocked = z33.enum([
3365
3384
  "signed_out",
@@ -4743,6 +4762,7 @@ var OPS = {
4743
4762
  "models.llm.install": { params: ModelsLlmInstallParams, result: ModelsLlmInstallResult, kind: "unary", since: "1.31", errors: ["RESOURCE_BUSY", "RESOURCE_GONE", "TIMEOUT", "CANCELLED", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
4744
4763
  "models.llm.start": { params: ModelsLlmStartParams, result: ModelsLlmStartResult, kind: "unary", since: "1.31", errors: ["NOT_FOUND", "RESOURCE_BUSY", "RESOURCE_GONE", "TIMEOUT", "CANCELLED", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
4745
4764
  "models.llm.stop": { params: ModelsLlmStopParams, result: ModelsLlmStopResult, kind: "unary", since: "1.31", errors: ["INTERNAL"] },
4765
+ "models.llm.chat": { params: ModelsLlmChatParams, result: ModelsLlmChatResult, kind: "stream", since: "1.76", errors: ["NOT_FOUND", "RESOURCE_BUSY", "RESOURCE_GONE", "INVALID_PARAMS", "TIMEOUT", "CANCELLED", "RATE_LIMITED", "INTERNAL"] },
4746
4766
  "models.downloads.list": { params: ModelsDownloadsListParams, result: ModelsDownloadsListResult, kind: "unary", since: "1.45", errors: ["INTERNAL"] },
4747
4767
  "models.downloads.cancel": { params: ModelsDownloadsCancelParams, result: ModelsDownloadsCancelResult, kind: "unary", since: "1.45", errors: ["NOT_FOUND", "INTERNAL"] },
4748
4768
  "models.local.list": { params: ModelsLocalListParams, result: ModelsLocalListResult, kind: "unary", since: "1.74", errors: ["INTERNAL"] },
@@ -5221,6 +5241,8 @@ var NAMED_SCHEMAS = {
5221
5241
  ModelsLlmStartResult,
5222
5242
  ModelsLlmStopParams,
5223
5243
  ModelsLlmStopResult,
5244
+ ModelsLlmChatParams,
5245
+ ModelsLlmChatResult,
5224
5246
  DownloadKind,
5225
5247
  DownloadRow,
5226
5248
  ModelsDownloadsListParams,
@@ -5987,7 +6009,9 @@ var REASONS_SINCE = {
5987
6009
  browser_account_mismatch: "1.28",
5988
6010
  browser_connection_off: "1.28",
5989
6011
  awaiting_confirmation: "1.28",
5990
- tool_disabled_on_device: "1.34"
6012
+ tool_disabled_on_device: "1.34",
6013
+ model_not_running: "1.76",
6014
+ model_server_unreachable: "1.76"
5991
6015
  };
5992
6016
  var PERMISSIONS_SINCE = {
5993
6017
  reminders: "1.41",
@@ -6394,6 +6418,8 @@ export {
6394
6418
  ModelsLlmStartResult,
6395
6419
  ModelsLlmStopParams,
6396
6420
  ModelsLlmStopResult,
6421
+ ModelsLlmChatParams,
6422
+ ModelsLlmChatResult,
6397
6423
  Sha256Hex,
6398
6424
  CatalogFile,
6399
6425
  CatalogModelEntry,
@@ -7123,4 +7149,4 @@ export {
7123
7149
  closeRule,
7124
7150
  isTerminalClose
7125
7151
  };
7126
- //# sourceMappingURL=chunk-server-HOQE4M4I.js.map
7152
+ //# sourceMappingURL=chunk-server-XQQUJENM.js.map