@ai-matrx/desktop-protocol 0.21.72 → 0.21.73
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 +21 -0
- package/dist/{chunk-server-FFLYSQUY.js → chunk-server-MK77KDKS.js} +46 -3
- package/dist/chunk-server-MK77KDKS.js.map +1 -0
- package/dist/client.cjs +32 -1
- 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 +46 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +226 -6
- package/dist/index.d.ts +226 -6
- package/dist/index.js +14 -2
- package/dist/index.js.map +1 -1
- package/dist/{models-BSiPIgIc.d.cts → models-ClCrYsEt.d.cts} +371 -1
- package/dist/{models-BSiPIgIc.d.ts → models-ClCrYsEt.d.ts} +371 -1
- package/dist/react.d.cts +175 -0
- package/dist/react.d.ts +175 -0
- package/generated/desktop-protocol.schema.json +300 -2
- package/package.json +2 -2
- package/dist/chunk-server-FFLYSQUY.js.map +0 -1
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 = 72;
|
|
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_-]+$/);
|
|
@@ -3145,6 +3145,11 @@ var ChatRow = import_zod30.z.strictObject({
|
|
|
3145
3145
|
prior_sessions: import_zod30.z.array(ChatId).max(50).optional(),
|
|
3146
3146
|
/** 1.61: where the title shows (the title facet's sync state for this chat's app). */
|
|
3147
3147
|
title_sync: ChatTitleSync.optional(),
|
|
3148
|
+
/**
|
|
3149
|
+
* 1.72: whether our star is the app's pin for this chat (the pin facet's sync state: `synced` only
|
|
3150
|
+
* where a test proved the app takes and keeps the pin Matrx writes; `not_synced` says why).
|
|
3151
|
+
*/
|
|
3152
|
+
pin_sync: ChatTitleSync.optional(),
|
|
3148
3153
|
/** 1.62: every Move and Copy of this chat between instances, newest first (absent = never moved or copied). */
|
|
3149
3154
|
moved: import_zod30.z.array(ChatMove).max(50).optional(),
|
|
3150
3155
|
/**
|
|
@@ -3461,6 +3466,30 @@ var AppsProjectsToWindowResult = import_zod31.z.strictObject({
|
|
|
3461
3466
|
chats: import_zod31.z.array(ProjectMoveOutcome).max(5e3).optional(),
|
|
3462
3467
|
message: import_zod31.z.string().max(400)
|
|
3463
3468
|
});
|
|
3469
|
+
var AppsChatsBringBackParams = import_zod31.z.strictObject({ app_key: AppKey, chat_id: ChatId, dry_run: import_zod31.z.boolean().optional() });
|
|
3470
|
+
var AppsChatsBringBackResult = AppsProjectsToWindowResult.extend({ project_id: ChatProjectId.nullable() });
|
|
3471
|
+
var TidyUpFacet = import_zod31.z.strictObject({
|
|
3472
|
+
app_key: AppKey,
|
|
3473
|
+
facet: import_zod31.z.enum(["title", "pin"]),
|
|
3474
|
+
state: import_zod31.z.enum(["synced", "not_synced", "unsupported"]),
|
|
3475
|
+
note: import_zod31.z.string().max(400),
|
|
3476
|
+
to_push: nonNegInt,
|
|
3477
|
+
pushed: nonNegInt,
|
|
3478
|
+
already: nonNegInt,
|
|
3479
|
+
waiting: nonNegInt,
|
|
3480
|
+
failed: nonNegInt
|
|
3481
|
+
});
|
|
3482
|
+
var TidyUpRestart = import_zod31.z.strictObject({ window: ChatPlace, why: import_zod31.z.string().max(400) });
|
|
3483
|
+
var AppsChatsTidyUpParams = import_zod31.z.strictObject({ dry_run: import_zod31.z.boolean(), restart_windows: import_zod31.z.array(ChatPlace).max(64).optional() });
|
|
3484
|
+
var AppsChatsTidyUpResult = import_zod31.z.strictObject({
|
|
3485
|
+
dry_run: import_zod31.z.boolean(),
|
|
3486
|
+
facets: import_zod31.z.array(TidyUpFacet).max(32),
|
|
3487
|
+
/** Claude windows that would keep an old name until they reopen (the plan lists them; nothing is quit unasked). */
|
|
3488
|
+
restart: import_zod31.z.array(TidyUpRestart).max(64),
|
|
3489
|
+
/** The windows this run quit and reopened. */
|
|
3490
|
+
restarted: import_zod31.z.array(ChatPlace).max(64),
|
|
3491
|
+
message: import_zod31.z.string().max(600)
|
|
3492
|
+
});
|
|
3464
3493
|
var ColdChat = import_zod31.z.strictObject({
|
|
3465
3494
|
id: ChatId,
|
|
3466
3495
|
title: import_zod31.z.string().max(1e3),
|
|
@@ -4727,6 +4756,8 @@ var OPS = {
|
|
|
4727
4756
|
"apps.chats.open": { params: AppsChatsOpenParams, result: AppsWindowActionResult, kind: "unary", since: "1.11", errors: ["NOT_FOUND", "CONFLICT", "TIMEOUT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4728
4757
|
"apps.chats.titles_check": { params: AppsChatsTitlesCheckParams, result: AppsChatsTitlesCheckResult, kind: "unary", since: "1.29", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4729
4758
|
"apps.chats.titles_push": { params: AppsChatsTitlesPushParams, result: AppsChatsTitlesPushResult, kind: "unary", since: "1.29", errors: ["NOT_FOUND", "CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4759
|
+
"apps.chats.bring_back": { params: AppsChatsBringBackParams, result: AppsChatsBringBackResult, kind: "unary", since: "1.72", errors: ["NOT_FOUND", "INVALID_PARAMS", "CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4760
|
+
"apps.chats.tidy_up": { params: AppsChatsTidyUpParams, result: AppsChatsTidyUpResult, kind: "unary", since: "1.72", errors: ["INVALID_PARAMS", "NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4730
4761
|
"apps.spend": { params: AppsSpendParams, result: AppsSpendResult, kind: "unary", since: "1.11", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4731
4762
|
"apps.sync.status": { params: AppsSyncStatusParams, result: AppsSyncStatusResult, kind: "unary", since: "1.11", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4732
4763
|
"apps.sync.run": { params: AppsSyncRunParams, result: AppsWindowActionResult, kind: "unary", since: "1.11", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|