@ai-matrx/desktop-protocol 0.21.77 → 0.21.78
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 +10 -1
- package/dist/{chunk-server-HOQE4M4I.js → chunk-server-2NXFL3HJ.js} +24 -4
- package/dist/chunk-server-2NXFL3HJ.js.map +1 -0
- package/dist/client.cjs +16 -2
- 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 +24 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -5
- package/dist/index.d.ts +16 -5
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/{models-Bz88NHi0.d.cts → models-DzJnHq8i.d.cts} +71 -3
- package/dist/{models-Bz88NHi0.d.ts → models-DzJnHq8i.d.ts} +71 -3
- package/dist/react.d.cts +16 -1
- package/dist/react.d.ts +16 -1
- package/generated/desktop-protocol.schema.json +66 -2
- package/package.json +2 -2
- package/dist/chunk-server-HOQE4M4I.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 0.21.
|
|
3
|
+
## 0.21.78
|
|
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.77
|
|
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 7938caf350 03e482c3bf -- apps/shared/desktop-protocol/src`
|
|
13
|
+
|
|
14
|
+
Changed shipped source files (1):
|
|
15
|
+
- `apps/shared/desktop-protocol/src/tools/catalog.ts`
|
|
16
|
+
|
|
8
17
|
## 0.21.76
|
|
9
18
|
|
|
10
19
|
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 =
|
|
9
|
+
var PROTOCOL_MINOR = 76;
|
|
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). */
|
|
@@ -4743,6 +4756,7 @@ var OPS = {
|
|
|
4743
4756
|
"models.llm.install": { params: ModelsLlmInstallParams, result: ModelsLlmInstallResult, kind: "unary", since: "1.31", errors: ["RESOURCE_BUSY", "RESOURCE_GONE", "TIMEOUT", "CANCELLED", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4744
4757
|
"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
4758
|
"models.llm.stop": { params: ModelsLlmStopParams, result: ModelsLlmStopResult, kind: "unary", since: "1.31", errors: ["INTERNAL"] },
|
|
4759
|
+
"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
4760
|
"models.downloads.list": { params: ModelsDownloadsListParams, result: ModelsDownloadsListResult, kind: "unary", since: "1.45", errors: ["INTERNAL"] },
|
|
4747
4761
|
"models.downloads.cancel": { params: ModelsDownloadsCancelParams, result: ModelsDownloadsCancelResult, kind: "unary", since: "1.45", errors: ["NOT_FOUND", "INTERNAL"] },
|
|
4748
4762
|
"models.local.list": { params: ModelsLocalListParams, result: ModelsLocalListResult, kind: "unary", since: "1.74", errors: ["INTERNAL"] },
|
|
@@ -5221,6 +5235,8 @@ var NAMED_SCHEMAS = {
|
|
|
5221
5235
|
ModelsLlmStartResult,
|
|
5222
5236
|
ModelsLlmStopParams,
|
|
5223
5237
|
ModelsLlmStopResult,
|
|
5238
|
+
ModelsLlmChatParams,
|
|
5239
|
+
ModelsLlmChatResult,
|
|
5224
5240
|
DownloadKind,
|
|
5225
5241
|
DownloadRow,
|
|
5226
5242
|
ModelsDownloadsListParams,
|
|
@@ -5987,7 +6003,9 @@ var REASONS_SINCE = {
|
|
|
5987
6003
|
browser_account_mismatch: "1.28",
|
|
5988
6004
|
browser_connection_off: "1.28",
|
|
5989
6005
|
awaiting_confirmation: "1.28",
|
|
5990
|
-
tool_disabled_on_device: "1.34"
|
|
6006
|
+
tool_disabled_on_device: "1.34",
|
|
6007
|
+
model_not_running: "1.76",
|
|
6008
|
+
model_server_unreachable: "1.76"
|
|
5991
6009
|
};
|
|
5992
6010
|
var PERMISSIONS_SINCE = {
|
|
5993
6011
|
reminders: "1.41",
|
|
@@ -6394,6 +6412,8 @@ export {
|
|
|
6394
6412
|
ModelsLlmStartResult,
|
|
6395
6413
|
ModelsLlmStopParams,
|
|
6396
6414
|
ModelsLlmStopResult,
|
|
6415
|
+
ModelsLlmChatParams,
|
|
6416
|
+
ModelsLlmChatResult,
|
|
6397
6417
|
Sha256Hex,
|
|
6398
6418
|
CatalogFile,
|
|
6399
6419
|
CatalogModelEntry,
|
|
@@ -7123,4 +7143,4 @@ export {
|
|
|
7123
7143
|
closeRule,
|
|
7124
7144
|
isTerminalClose
|
|
7125
7145
|
};
|
|
7126
|
-
//# sourceMappingURL=chunk-server-
|
|
7146
|
+
//# sourceMappingURL=chunk-server-2NXFL3HJ.js.map
|