@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/dist/client.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BackoffOptions } from '@ai-matrx/realtime';
|
|
2
2
|
export { RECONNECT_ALARM_ATTEMPTS } from '@ai-matrx/realtime';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { W as Welcome, D as DesktopProtocolError, C as CloseOutcome, O as OpName, a as OpParams, b as OpResult, c as OPS, S as StreamMeta, E as EndReason, d as EVENTS, e as ClientType, M as ModelsTranscribeResult, T as TranscriptionModelId, f as MlProgress } from './models-
|
|
5
|
-
export { i as isDesktopProtocolError } from './models-
|
|
4
|
+
import { W as Welcome, D as DesktopProtocolError, C as CloseOutcome, O as OpName, a as OpParams, b as OpResult, c as OPS, S as StreamMeta, E as EndReason, d as EVENTS, e as ClientType, M as ModelsTranscribeResult, T as TranscriptionModelId, f as MlProgress } from './models-BcHaOevq.cjs';
|
|
5
|
+
export { i as isDesktopProtocolError } from './models-BcHaOevq.cjs';
|
|
6
6
|
import { FrameHeader } from './frame.cjs';
|
|
7
7
|
|
|
8
8
|
/** The subset of the WHATWG WebSocket the client uses — browser, React Native, `ws` and Workers all fit. */
|
package/dist/client.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BackoffOptions } from '@ai-matrx/realtime';
|
|
2
2
|
export { RECONNECT_ALARM_ATTEMPTS } from '@ai-matrx/realtime';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { W as Welcome, D as DesktopProtocolError, C as CloseOutcome, O as OpName, a as OpParams, b as OpResult, c as OPS, S as StreamMeta, E as EndReason, d as EVENTS, e as ClientType, M as ModelsTranscribeResult, T as TranscriptionModelId, f as MlProgress } from './models-
|
|
5
|
-
export { i as isDesktopProtocolError } from './models-
|
|
4
|
+
import { W as Welcome, D as DesktopProtocolError, C as CloseOutcome, O as OpName, a as OpParams, b as OpResult, c as OPS, S as StreamMeta, E as EndReason, d as EVENTS, e as ClientType, M as ModelsTranscribeResult, T as TranscriptionModelId, f as MlProgress } from './models-BcHaOevq.js';
|
|
5
|
+
export { i as isDesktopProtocolError } from './models-BcHaOevq.js';
|
|
6
6
|
import { FrameHeader } from './frame.js';
|
|
7
7
|
|
|
8
8
|
/** The subset of the WHATWG WebSocket the client uses — browser, React Native, `ws` and Workers all fit. */
|
package/dist/client.js
CHANGED
|
@@ -112,7 +112,7 @@ import { z as z2 } from "zod";
|
|
|
112
112
|
import { z } from "zod";
|
|
113
113
|
import { UUID_SHAPE_PATTERN } from "@ai-matrx/kit/uuid";
|
|
114
114
|
var PROTOCOL_MAJOR = 1;
|
|
115
|
-
var PROTOCOL_MINOR =
|
|
115
|
+
var PROTOCOL_MINOR = 43;
|
|
116
116
|
var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
|
|
117
117
|
var ProtocolVersion = z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
|
|
118
118
|
var RequestId = z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
|
|
@@ -3055,7 +3055,27 @@ var ProjectMoveGroup = z31.strictObject({
|
|
|
3055
3055
|
already: nonNegInt.optional(),
|
|
3056
3056
|
from_other_groups: nonNegInt.optional(),
|
|
3057
3057
|
/** A group of that name was already there (reused, never doubled). */
|
|
3058
|
-
group_exists: z31.boolean().optional()
|
|
3058
|
+
group_exists: z31.boolean().optional(),
|
|
3059
|
+
/** 1.43: "now" = written into the closed window; "next_close" = queued until that window closes. */
|
|
3060
|
+
when: z31.enum(["now", "next_close"]).optional(),
|
|
3061
|
+
/** 1.43: the window's own id of the group used (absent while a new one waits to be made). */
|
|
3062
|
+
group_id: z31.string().max(200).optional()
|
|
3063
|
+
});
|
|
3064
|
+
var ProjectMoveOutcome = z31.strictObject({
|
|
3065
|
+
chat_id: ChatId,
|
|
3066
|
+
title: z31.string().max(300),
|
|
3067
|
+
outcome: z31.enum(["copied", "moved", "already", "skipped"]),
|
|
3068
|
+
off: z31.array(ChatPlace).max(50),
|
|
3069
|
+
reason: z31.string().max(400).nullable(),
|
|
3070
|
+
pin: z31.enum(["now", "next_close", "failed"]).nullable(),
|
|
3071
|
+
group: z31.enum(["now", "next_close", "failed"]).nullable()
|
|
3072
|
+
});
|
|
3073
|
+
var WindowGroup = z31.strictObject({ id: z31.string().max(200), name: z31.string().max(200), count: nonNegInt });
|
|
3074
|
+
var AppsWindowsGroupsParams = z31.strictObject({ app_key: AppKey, window: ChatPlace });
|
|
3075
|
+
var AppsWindowsGroupsResult = z31.strictObject({
|
|
3076
|
+
window: ChatPlace,
|
|
3077
|
+
open: z31.boolean(),
|
|
3078
|
+
groups: z31.array(WindowGroup).max(1e3)
|
|
3059
3079
|
});
|
|
3060
3080
|
var ProjectMovePin = z31.strictObject({
|
|
3061
3081
|
ok: z31.boolean(),
|
|
@@ -3076,8 +3096,12 @@ var AppsProjectsToWindowParams = z31.strictObject({
|
|
|
3076
3096
|
window: ChatPlace,
|
|
3077
3097
|
/** Also take each chat off its other side windows where safe (never main, the holder, an open window). */
|
|
3078
3098
|
take_off: z31.boolean().default(false),
|
|
3079
|
-
/** Also group them under the project's name in that window's sidebar (
|
|
3099
|
+
/** 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). */
|
|
3080
3100
|
group: z31.boolean().default(false),
|
|
3101
|
+
/** 1.43: group them into this existing group of the window (apps.windows.groups); implies group. */
|
|
3102
|
+
group_id: z31.string().min(1).max(200).optional(),
|
|
3103
|
+
/** 1.43: group them under this name (an existing group of that name is reused, else made); implies group. */
|
|
3104
|
+
group_name: z31.string().trim().min(1).max(200).optional(),
|
|
3081
3105
|
/** 1.32: also pin them in that window (now if closed, else when it next closes). */
|
|
3082
3106
|
pin: z31.boolean().optional(),
|
|
3083
3107
|
/** 1.36: a batch: exactly these chats of the project and no other (a reused marker is a label, never a sweep). */
|
|
@@ -3099,6 +3123,8 @@ var AppsProjectsToWindowResult = z31.strictObject({
|
|
|
3099
3123
|
group: ProjectMoveGroup.nullable(),
|
|
3100
3124
|
/** 1.32: the pin in the target window (absent: not asked). */
|
|
3101
3125
|
pin: ProjectMovePin.optional(),
|
|
3126
|
+
/** 1.43: one row per chat, what happened to it (absent from an older core). */
|
|
3127
|
+
chats: z31.array(ProjectMoveOutcome).max(5e3).optional(),
|
|
3102
3128
|
message: z31.string().max(400)
|
|
3103
3129
|
});
|
|
3104
3130
|
var ColdChat = z31.strictObject({
|
|
@@ -4119,6 +4145,7 @@ var OPS = {
|
|
|
4119
4145
|
"diag.errors.list": { params: DiagErrorsListParams, result: DiagErrorsListResult, kind: "unary", since: "1.20", errors: ["INTERNAL"] },
|
|
4120
4146
|
"diag.errors.report": { params: DiagErrorsReportParams, result: DiagErrorsReportResult, kind: "unary", since: "1.20", errors: ["INTERNAL"] },
|
|
4121
4147
|
// 1.21: what a window's sidebar draws (the Move-all grouping check).
|
|
4148
|
+
"apps.windows.groups": { params: AppsWindowsGroupsParams, result: AppsWindowsGroupsResult, kind: "unary", since: "1.43", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4122
4149
|
"apps.windows.shown": { params: AppsWindowsShownParams, result: AppsWindowsShownResult, kind: "unary", since: "1.21", errors: ["NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4123
4150
|
// Claude Code history (SPEC §6 coding): served by the `coding` Python service through SERVICES below.
|
|
4124
4151
|
"coding.history.import_missing": { params: CodingHistoryImportMissingParams, result: CodingHistoryImportMissingResult, kind: "unary", since: "1.5", errors: ["RESOURCE_BUSY", "RESOURCE_GONE", "CANCELLED", "INTERNAL"] },
|
|
@@ -4289,7 +4316,8 @@ var RESULT_PATH = /* @__PURE__ */ new Map([
|
|
|
4289
4316
|
["apps.accounts.resets", "AppsAccountsResetsResult"],
|
|
4290
4317
|
["apps.windows.update_state", "AppsWindowsUpdateStateResult"],
|
|
4291
4318
|
["web.fetch_with_browser", "WebBrowserFetchResult"],
|
|
4292
|
-
["sysinfo.get", "SysinfoGetResult"]
|
|
4319
|
+
["sysinfo.get", "SysinfoGetResult"],
|
|
4320
|
+
["apps.projects.to_window", "AppsProjectsToWindowResult"]
|
|
4293
4321
|
]);
|
|
4294
4322
|
var NESTED_RESULTS = /* @__PURE__ */ new Map([
|
|
4295
4323
|
["apps.chats.list", [["chats", "ChatRow"]]],
|
|
@@ -4304,7 +4332,8 @@ var NESTED_RESULTS = /* @__PURE__ */ new Map([
|
|
|
4304
4332
|
["stack.state", [["servers", "StackServer"]]],
|
|
4305
4333
|
["account.agents.list", [["agents", "AccountAgent"]]],
|
|
4306
4334
|
["web.scrape", [["pages", "WebScrapePage"]]],
|
|
4307
|
-
["sysinfo.get", [["permissions", "SysinfoGetResult.permissions[]"]]]
|
|
4335
|
+
["sysinfo.get", [["permissions", "SysinfoGetResult.permissions[]"]]],
|
|
4336
|
+
["apps.projects.to_window", [["group", "ProjectMoveGroup"]]]
|
|
4308
4337
|
]);
|
|
4309
4338
|
var WINDOW_RESULTS = /* @__PURE__ */ new Map([
|
|
4310
4339
|
["window.list", "windows"],
|