@ai-matrx/desktop-protocol 0.21.82 → 0.21.83
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 +7 -1
- package/dist/{chunk-server-3QKXTKK4.js → chunk-server-EKAFTH72.js} +26 -3
- package/dist/chunk-server-EKAFTH72.js.map +1 -0
- package/dist/client.cjs +2 -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 +26 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +21 -7
- package/dist/index.d.ts +21 -7
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/{models-D5O1othS.d.cts → models-DMJ4I-2x.d.cts} +5 -0
- package/dist/{models-D5O1othS.d.ts → models-DMJ4I-2x.d.ts} +5 -0
- package/dist/react.d.cts +1 -0
- package/dist/react.d.ts +1 -0
- package/generated/desktop-protocol.schema.json +3 -2
- package/package.json +2 -2
- package/dist/chunk-server-3QKXTKK4.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 0.21.
|
|
3
|
+
## 0.21.83
|
|
4
|
+
### Protocol 1.80 — skills in the Setup table
|
|
5
|
+
|
|
6
|
+
- `SetupItemKind` (apps.setup.list `setups[].items[].kind`): new value `"skill"` (a Claude Code skill
|
|
7
|
+
installed). In SETUP_KINDS_SINCE; `forPeer` leaves skill items out for an older peer, whose strict
|
|
8
|
+
enum would refuse the whole answer. Consumer action: none.
|
|
9
|
+
|
|
4
10
|
### Protocol 1.79 — the usage readings Matrx keeps
|
|
5
11
|
|
|
6
12
|
- `AppAccount` (apps.accounts.list `accounts`): optional `readings` (`AccountReadingsKept`: `kept`,
|
|
@@ -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 = 80;
|
|
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_-]+$/);
|
|
@@ -2114,7 +2114,7 @@ var McpServerRow = z15.strictObject({
|
|
|
2114
2114
|
where: z15.string().max(400)
|
|
2115
2115
|
});
|
|
2116
2116
|
var SetupFact = z15.strictObject({ name: z15.string().max(80), value: z15.string().max(300) });
|
|
2117
|
-
var SetupItemKind = z15.enum(["extension", "plugin", "marketplace", "model"]);
|
|
2117
|
+
var SetupItemKind = z15.enum(["extension", "plugin", "marketplace", "model", "skill"]);
|
|
2118
2118
|
var SetupItem = z15.strictObject({
|
|
2119
2119
|
kind: SetupItemKind,
|
|
2120
2120
|
name: z15.string().max(200),
|
|
@@ -6052,6 +6052,27 @@ var PERMISSIONS_SINCE = {
|
|
|
6052
6052
|
mail: "1.41",
|
|
6053
6053
|
wifi: "1.41"
|
|
6054
6054
|
};
|
|
6055
|
+
var SETUP_KINDS_SINCE = {
|
|
6056
|
+
skill: "1.80"
|
|
6057
|
+
};
|
|
6058
|
+
function setupItemsForPeer(value, version) {
|
|
6059
|
+
if (value === null || typeof value !== "object" || Array.isArray(value)) return value;
|
|
6060
|
+
const body = value;
|
|
6061
|
+
if (!Array.isArray(body.setups)) return value;
|
|
6062
|
+
const since = SETUP_KINDS_SINCE;
|
|
6063
|
+
const setups = body.setups;
|
|
6064
|
+
const next = setups.map((s) => {
|
|
6065
|
+
const items = s?.items;
|
|
6066
|
+
if (!Array.isArray(items)) return s;
|
|
6067
|
+
const kept = items.filter((i) => {
|
|
6068
|
+
const kind = i?.kind;
|
|
6069
|
+
const added = typeof kind === "string" ? since[kind] : void 0;
|
|
6070
|
+
return !added || knows(version, added);
|
|
6071
|
+
});
|
|
6072
|
+
return kept.length === items.length ? s : { ...s, items: kept };
|
|
6073
|
+
});
|
|
6074
|
+
return next.some((s, i) => s !== setups[i]) ? { ...body, setups: next } : value;
|
|
6075
|
+
}
|
|
6055
6076
|
function permissionsForPeer(value, version) {
|
|
6056
6077
|
if (value === null || typeof value !== "object" || Array.isArray(value)) return value;
|
|
6057
6078
|
const body = value;
|
|
@@ -6257,6 +6278,7 @@ function forPeer(op, part, value, version) {
|
|
|
6257
6278
|
const stripped = nested ? stripNested(top, nested, version) : top;
|
|
6258
6279
|
if (op === "coding.providers") return providersForPeer(stripped, version);
|
|
6259
6280
|
if (op === "coding.history" || op === "coding.transcript.read") return transcriptItemsForPeer(stripped, version);
|
|
6281
|
+
if (op === "apps.setup.list") return setupItemsForPeer(stripped, version);
|
|
6260
6282
|
return op === "apps.windows.list" ? windowListRemoteControlForPeer(stripped, version) : stripped;
|
|
6261
6283
|
}
|
|
6262
6284
|
if (value === null || typeof value !== "object") return value;
|
|
@@ -7176,6 +7198,7 @@ export {
|
|
|
7176
7198
|
NULL_SINCE,
|
|
7177
7199
|
REASONS_SINCE,
|
|
7178
7200
|
PERMISSIONS_SINCE,
|
|
7201
|
+
SETUP_KINDS_SINCE,
|
|
7179
7202
|
statusForPeer,
|
|
7180
7203
|
versionSubprotocol,
|
|
7181
7204
|
announcedVersion,
|
|
@@ -7187,4 +7210,4 @@ export {
|
|
|
7187
7210
|
closeRule,
|
|
7188
7211
|
isTerminalClose
|
|
7189
7212
|
};
|
|
7190
|
-
//# sourceMappingURL=chunk-server-
|
|
7213
|
+
//# sourceMappingURL=chunk-server-EKAFTH72.js.map
|