@ai-matrx/desktop-protocol 0.21.32 → 0.21.33
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 +6 -0
- package/dist/client.cjs +34 -5
- 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 +34 -5
- package/dist/client.js.map +1 -1
- package/dist/index.cjs +46 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +108 -9
- package/dist/index.d.ts +108 -9
- package/dist/index.js +46 -8
- package/dist/index.js.map +1 -1
- package/dist/{models-BNbWn8EL.d.cts → models-BcHaOevq.d.cts} +126 -5
- package/dist/{models-BNbWn8EL.d.ts → models-BcHaOevq.d.ts} +126 -5
- package/dist/react.d.cts +50 -3
- package/dist/react.d.ts +50 -3
- package/generated/desktop-protocol.schema.json +192 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.21.33
|
|
4
|
+
|
|
5
|
+
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
6
|
+
`git diff npm/desktop-protocol/v0.21.32..npm/desktop-protocol/v0.21.33 -- apps/shared/desktop-protocol`).
|
|
7
|
+
No source changes intended and no consumer action required.
|
|
8
|
+
|
|
3
9
|
## 0.21.32
|
|
4
10
|
|
|
5
11
|
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
package/dist/client.cjs
CHANGED
|
@@ -144,7 +144,7 @@ var import_zod2 = require("zod");
|
|
|
144
144
|
var import_zod = require("zod");
|
|
145
145
|
var import_uuid = require("@ai-matrx/kit/uuid");
|
|
146
146
|
var PROTOCOL_MAJOR = 1;
|
|
147
|
-
var PROTOCOL_MINOR =
|
|
147
|
+
var PROTOCOL_MINOR = 43;
|
|
148
148
|
var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
|
|
149
149
|
var ProtocolVersion = import_zod.z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
|
|
150
150
|
var RequestId = import_zod.z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
|
|
@@ -3087,7 +3087,27 @@ var ProjectMoveGroup = import_zod31.z.strictObject({
|
|
|
3087
3087
|
already: nonNegInt.optional(),
|
|
3088
3088
|
from_other_groups: nonNegInt.optional(),
|
|
3089
3089
|
/** A group of that name was already there (reused, never doubled). */
|
|
3090
|
-
group_exists: import_zod31.z.boolean().optional()
|
|
3090
|
+
group_exists: import_zod31.z.boolean().optional(),
|
|
3091
|
+
/** 1.43: "now" = written into the closed window; "next_close" = queued until that window closes. */
|
|
3092
|
+
when: import_zod31.z.enum(["now", "next_close"]).optional(),
|
|
3093
|
+
/** 1.43: the window's own id of the group used (absent while a new one waits to be made). */
|
|
3094
|
+
group_id: import_zod31.z.string().max(200).optional()
|
|
3095
|
+
});
|
|
3096
|
+
var ProjectMoveOutcome = import_zod31.z.strictObject({
|
|
3097
|
+
chat_id: ChatId,
|
|
3098
|
+
title: import_zod31.z.string().max(300),
|
|
3099
|
+
outcome: import_zod31.z.enum(["copied", "moved", "already", "skipped"]),
|
|
3100
|
+
off: import_zod31.z.array(ChatPlace).max(50),
|
|
3101
|
+
reason: import_zod31.z.string().max(400).nullable(),
|
|
3102
|
+
pin: import_zod31.z.enum(["now", "next_close", "failed"]).nullable(),
|
|
3103
|
+
group: import_zod31.z.enum(["now", "next_close", "failed"]).nullable()
|
|
3104
|
+
});
|
|
3105
|
+
var WindowGroup = import_zod31.z.strictObject({ id: import_zod31.z.string().max(200), name: import_zod31.z.string().max(200), count: nonNegInt });
|
|
3106
|
+
var AppsWindowsGroupsParams = import_zod31.z.strictObject({ app_key: AppKey, window: ChatPlace });
|
|
3107
|
+
var AppsWindowsGroupsResult = import_zod31.z.strictObject({
|
|
3108
|
+
window: ChatPlace,
|
|
3109
|
+
open: import_zod31.z.boolean(),
|
|
3110
|
+
groups: import_zod31.z.array(WindowGroup).max(1e3)
|
|
3091
3111
|
});
|
|
3092
3112
|
var ProjectMovePin = import_zod31.z.strictObject({
|
|
3093
3113
|
ok: import_zod31.z.boolean(),
|
|
@@ -3108,8 +3128,12 @@ var AppsProjectsToWindowParams = import_zod31.z.strictObject({
|
|
|
3108
3128
|
window: ChatPlace,
|
|
3109
3129
|
/** Also take each chat off its other side windows where safe (never main, the holder, an open window). */
|
|
3110
3130
|
take_off: import_zod31.z.boolean().default(false),
|
|
3111
|
-
/** Also group them under the project's name in that window's sidebar (
|
|
3131
|
+
/** Also group them under the project's name in that window's sidebar (1.43: an open window's is queued for its next close). */
|
|
3112
3132
|
group: import_zod31.z.boolean().default(false),
|
|
3133
|
+
/** 1.43: group them into this existing group of the window (apps.windows.groups); implies group. */
|
|
3134
|
+
group_id: import_zod31.z.string().min(1).max(200).optional(),
|
|
3135
|
+
/** 1.43: group them under this name (an existing group of that name is reused, else made); implies group. */
|
|
3136
|
+
group_name: import_zod31.z.string().trim().min(1).max(200).optional(),
|
|
3113
3137
|
/** 1.32: also pin them in that window (now if closed, else when it next closes). */
|
|
3114
3138
|
pin: import_zod31.z.boolean().optional(),
|
|
3115
3139
|
/** 1.36: a batch: exactly these chats of the project and no other (a reused marker is a label, never a sweep). */
|
|
@@ -3131,6 +3155,8 @@ var AppsProjectsToWindowResult = import_zod31.z.strictObject({
|
|
|
3131
3155
|
group: ProjectMoveGroup.nullable(),
|
|
3132
3156
|
/** 1.32: the pin in the target window (absent: not asked). */
|
|
3133
3157
|
pin: ProjectMovePin.optional(),
|
|
3158
|
+
/** 1.43: one row per chat, what happened to it (absent from an older core). */
|
|
3159
|
+
chats: import_zod31.z.array(ProjectMoveOutcome).max(5e3).optional(),
|
|
3134
3160
|
message: import_zod31.z.string().max(400)
|
|
3135
3161
|
});
|
|
3136
3162
|
var ColdChat = import_zod31.z.strictObject({
|
|
@@ -4151,6 +4177,7 @@ var OPS = {
|
|
|
4151
4177
|
"diag.errors.list": { params: DiagErrorsListParams, result: DiagErrorsListResult, kind: "unary", since: "1.20", errors: ["INTERNAL"] },
|
|
4152
4178
|
"diag.errors.report": { params: DiagErrorsReportParams, result: DiagErrorsReportResult, kind: "unary", since: "1.20", errors: ["INTERNAL"] },
|
|
4153
4179
|
// 1.21: what a window's sidebar draws (the Move-all grouping check).
|
|
4180
|
+
"apps.windows.groups": { params: AppsWindowsGroupsParams, result: AppsWindowsGroupsResult, kind: "unary", since: "1.43", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4154
4181
|
"apps.windows.shown": { params: AppsWindowsShownParams, result: AppsWindowsShownResult, kind: "unary", since: "1.21", errors: ["NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4155
4182
|
// Claude Code history (SPEC §6 coding): served by the `coding` Python service through SERVICES below.
|
|
4156
4183
|
"coding.history.import_missing": { params: CodingHistoryImportMissingParams, result: CodingHistoryImportMissingResult, kind: "unary", since: "1.5", errors: ["RESOURCE_BUSY", "RESOURCE_GONE", "CANCELLED", "INTERNAL"] },
|
|
@@ -4321,7 +4348,8 @@ var RESULT_PATH = /* @__PURE__ */ new Map([
|
|
|
4321
4348
|
["apps.accounts.resets", "AppsAccountsResetsResult"],
|
|
4322
4349
|
["apps.windows.update_state", "AppsWindowsUpdateStateResult"],
|
|
4323
4350
|
["web.fetch_with_browser", "WebBrowserFetchResult"],
|
|
4324
|
-
["sysinfo.get", "SysinfoGetResult"]
|
|
4351
|
+
["sysinfo.get", "SysinfoGetResult"],
|
|
4352
|
+
["apps.projects.to_window", "AppsProjectsToWindowResult"]
|
|
4325
4353
|
]);
|
|
4326
4354
|
var NESTED_RESULTS = /* @__PURE__ */ new Map([
|
|
4327
4355
|
["apps.chats.list", [["chats", "ChatRow"]]],
|
|
@@ -4336,7 +4364,8 @@ var NESTED_RESULTS = /* @__PURE__ */ new Map([
|
|
|
4336
4364
|
["stack.state", [["servers", "StackServer"]]],
|
|
4337
4365
|
["account.agents.list", [["agents", "AccountAgent"]]],
|
|
4338
4366
|
["web.scrape", [["pages", "WebScrapePage"]]],
|
|
4339
|
-
["sysinfo.get", [["permissions", "SysinfoGetResult.permissions[]"]]]
|
|
4367
|
+
["sysinfo.get", [["permissions", "SysinfoGetResult.permissions[]"]]],
|
|
4368
|
+
["apps.projects.to_window", [["group", "ProjectMoveGroup"]]]
|
|
4340
4369
|
]);
|
|
4341
4370
|
var WINDOW_RESULTS = /* @__PURE__ */ new Map([
|
|
4342
4371
|
["window.list", "windows"],
|