@ai-matrx/desktop-protocol 0.21.59 → 0.21.60
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 +20 -1
- package/dist/{chunk-server-4RNDE5ZL.js → chunk-server-SQA64KFX.js} +9 -4
- package/dist/chunk-server-SQA64KFX.js.map +1 -0
- package/dist/client.cjs +5 -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 +9 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +87 -6
- package/dist/index.d.ts +87 -6
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/{models-pTklrHwM.d.cts → models-0lF6-r6a.d.cts} +128 -0
- package/dist/{models-pTklrHwM.d.ts → models-0lF6-r6a.d.ts} +128 -0
- package/dist/react.d.cts +56 -0
- package/dist/react.d.ts +56 -0
- package/generated/desktop-protocol.schema.json +28 -2
- package/package.json +2 -2
- package/dist/chunk-server-4RNDE5ZL.js.map +0 -1
package/dist/client.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BackoffOptions } from '@ai-matrx/data/realtime';
|
|
2
2
|
export { RECONNECT_ALARM_ATTEMPTS } from '@ai-matrx/data/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-0lF6-r6a.cjs';
|
|
5
|
+
export { i as isDesktopProtocolError } from './models-0lF6-r6a.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/data/realtime';
|
|
2
2
|
export { RECONNECT_ALARM_ATTEMPTS } from '@ai-matrx/data/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-0lF6-r6a.js';
|
|
5
|
+
export { i as isDesktopProtocolError } from './models-0lF6-r6a.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
package/dist/index.cjs
CHANGED
|
@@ -217,6 +217,7 @@ __export(src_exports, {
|
|
|
217
217
|
ChatProjectId: () => ChatProjectId,
|
|
218
218
|
ChatRow: () => ChatRow,
|
|
219
219
|
ChatRunning: () => ChatRunning,
|
|
220
|
+
ChatTitleSync: () => ChatTitleSync,
|
|
220
221
|
ChatWindow: () => ChatWindow,
|
|
221
222
|
ClientToCoreMsg: () => ClientToCoreMsg,
|
|
222
223
|
ClientType: () => ClientType,
|
|
@@ -904,7 +905,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
904
905
|
var import_zod = require("zod");
|
|
905
906
|
var import_uuid = require("@ai-matrx/kit/uuid");
|
|
906
907
|
var PROTOCOL_MAJOR = 1;
|
|
907
|
-
var PROTOCOL_MINOR =
|
|
908
|
+
var PROTOCOL_MINOR = 61;
|
|
908
909
|
var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
|
|
909
910
|
var ProtocolVersion = import_zod.z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
|
|
910
911
|
var RequestId = import_zod.z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
|
|
@@ -2215,6 +2216,7 @@ var ChatAppProject = import_zod13.z.strictObject({
|
|
|
2215
2216
|
var ChatTitleSource = import_zod13.z.enum(["app", "app-remembered", "custom-title", "ai-title", "agent-name", "summary", "first-prompt", "last-prompt"]);
|
|
2216
2217
|
var ChatAppGroup = import_zod13.z.strictObject({ window: ChatPlace, group_id: import_zod13.z.string().max(120), name: import_zod13.z.string().max(200) });
|
|
2217
2218
|
var ChatParent = import_zod13.z.strictObject({ id: ChatId, how: import_zod13.z.enum(["spawned", "dispatched", "forked"]), title: import_zod13.z.string().max(1e3).nullable() });
|
|
2219
|
+
var ChatTitleSync = import_zod13.z.strictObject({ state: import_zod13.z.enum(["synced", "not_synced", "unsupported"]), note: import_zod13.z.string().max(200) });
|
|
2218
2220
|
var ChatRow = import_zod13.z.strictObject({
|
|
2219
2221
|
id: ChatId,
|
|
2220
2222
|
/** The short id people see (the listing's first 8 characters). */
|
|
@@ -2264,7 +2266,9 @@ var ChatRow = import_zod13.z.strictObject({
|
|
|
2264
2266
|
/** 1.59: the chat it came from (nesting): an agent's chat that spawned it, dispatched it, or that it was forked from. */
|
|
2265
2267
|
parent: ChatParent.optional(),
|
|
2266
2268
|
/** 1.59: earlier sessions of this same chat (the app continued it under new session ids). */
|
|
2267
|
-
prior_sessions: import_zod13.z.array(ChatId).max(50).optional()
|
|
2269
|
+
prior_sessions: import_zod13.z.array(ChatId).max(50).optional(),
|
|
2270
|
+
/** 1.61: where the title shows (the title facet's sync state for this chat's app). */
|
|
2271
|
+
title_sync: ChatTitleSync.optional()
|
|
2268
2272
|
});
|
|
2269
2273
|
var ChatFamily = import_zod13.z.strictObject({
|
|
2270
2274
|
id: ChatId,
|
|
@@ -5753,6 +5757,7 @@ var SERVICES = {
|
|
|
5753
5757
|
var NAMED_SCHEMAS = {
|
|
5754
5758
|
ChatAppGroup,
|
|
5755
5759
|
ChatParent,
|
|
5760
|
+
ChatTitleSync,
|
|
5756
5761
|
AppsWindowsSetAccountParams,
|
|
5757
5762
|
AppsWindowsForgetParams,
|
|
5758
5763
|
ProbeFact,
|
|
@@ -6578,7 +6583,7 @@ var FIELDS_SINCE = {
|
|
|
6578
6583
|
AppsChatsListResult: { updating: "1.9", live: "1.9", families: "1.10" },
|
|
6579
6584
|
AppsAccountsUsageResult: { problem: "1.12" },
|
|
6580
6585
|
AppsAccountsResetsResult: { problem: "1.12" },
|
|
6581
|
-
ChatRow: { app_project: "1.13", tokens: "1.13", original_title: "1.14", title_source: "1.14", title_override: "1.14", archived: "1.15", session_id: "1.59", app_groups: "1.59", parent: "1.59", prior_sessions: "1.59" },
|
|
6586
|
+
ChatRow: { app_project: "1.13", tokens: "1.13", original_title: "1.14", title_source: "1.14", title_override: "1.14", archived: "1.15", session_id: "1.59", app_groups: "1.59", parent: "1.59", prior_sessions: "1.59", title_sync: "1.61" },
|
|
6582
6587
|
AccountUsage: { plan: "1.13", credits: "1.13", five_hour_resets_by_ms: "1.25" },
|
|
6583
6588
|
ResourcesDisk: { name: "1.17" },
|
|
6584
6589
|
StackServer: { cpu_percent: "1.18", memory_bytes: "1.18" },
|
|
@@ -6818,7 +6823,7 @@ function forPeer(op, part, value, version) {
|
|
|
6818
6823
|
var VERSIONED_RESULT_OPS = [.../* @__PURE__ */ new Set([...RESULT_PATH.keys(), ...WINDOW_RESULTS.keys(), ...NESTED_RESULTS.keys()])];
|
|
6819
6824
|
|
|
6820
6825
|
// src/contract.ts
|
|
6821
|
-
var CONTRACT_SHA256 = "
|
|
6826
|
+
var CONTRACT_SHA256 = "b12da3bf85ebca986deb5c6b855ba6d00d4faaf03861537a7130b8af8bc79992";
|
|
6822
6827
|
|
|
6823
6828
|
// src/close-policy.ts
|
|
6824
6829
|
var CLOSE_RULES = {
|