@ai-matrx/desktop-protocol 0.21.60 → 0.21.61
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 +15 -1
- package/dist/{chunk-server-SQA64KFX.js → chunk-server-OQM4XFUL.js} +15 -4
- package/dist/chunk-server-OQM4XFUL.js.map +1 -0
- package/dist/client.cjs +11 -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 +15 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +107 -8
- package/dist/index.d.ts +107 -8
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/{models-0lF6-r6a.d.cts → models-DbcCVlya.d.cts} +164 -4
- package/dist/{models-0lF6-r6a.d.ts → models-DbcCVlya.d.ts} +164 -4
- package/dist/react.d.cts +75 -5
- package/dist/react.d.ts +75 -5
- package/generated/desktop-protocol.schema.json +74 -2
- package/package.json +2 -2
- package/dist/chunk-server-SQA64KFX.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 = 62;
|
|
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_-]+$/);
|
|
@@ -3007,6 +3007,13 @@ var ChatTitleSource = import_zod30.z.enum(["app", "app-remembered", "custom-titl
|
|
|
3007
3007
|
var ChatAppGroup = import_zod30.z.strictObject({ window: ChatPlace, group_id: import_zod30.z.string().max(120), name: import_zod30.z.string().max(200) });
|
|
3008
3008
|
var ChatParent = import_zod30.z.strictObject({ id: ChatId, how: import_zod30.z.enum(["spawned", "dispatched", "forked"]), title: import_zod30.z.string().max(1e3).nullable() });
|
|
3009
3009
|
var ChatTitleSync = import_zod30.z.strictObject({ state: import_zod30.z.enum(["synced", "not_synced", "unsupported"]), note: import_zod30.z.string().max(200) });
|
|
3010
|
+
var ChatMove = import_zod30.z.strictObject({
|
|
3011
|
+
kind: import_zod30.z.enum(["move", "copy"]),
|
|
3012
|
+
from: ChatPlace.nullable(),
|
|
3013
|
+
to: ChatPlace.nullable(),
|
|
3014
|
+
at_ms: epochMs.nullable(),
|
|
3015
|
+
back_at_ms: epochMs.nullable()
|
|
3016
|
+
});
|
|
3010
3017
|
var ChatRow = import_zod30.z.strictObject({
|
|
3011
3018
|
id: ChatId,
|
|
3012
3019
|
/** The short id people see (the listing's first 8 characters). */
|
|
@@ -3058,7 +3065,9 @@ var ChatRow = import_zod30.z.strictObject({
|
|
|
3058
3065
|
/** 1.59: earlier sessions of this same chat (the app continued it under new session ids). */
|
|
3059
3066
|
prior_sessions: import_zod30.z.array(ChatId).max(50).optional(),
|
|
3060
3067
|
/** 1.61: where the title shows (the title facet's sync state for this chat's app). */
|
|
3061
|
-
title_sync: ChatTitleSync.optional()
|
|
3068
|
+
title_sync: ChatTitleSync.optional(),
|
|
3069
|
+
/** 1.62: every Move and Copy of this chat between instances, newest first (absent = never moved or copied). */
|
|
3070
|
+
moved: import_zod30.z.array(ChatMove).max(50).optional()
|
|
3062
3071
|
});
|
|
3063
3072
|
var ChatFamily = import_zod30.z.strictObject({
|
|
3064
3073
|
id: ChatId,
|