@ai-matrx/desktop-protocol 0.17.7 → 0.17.8
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 +7 -0
- package/dist/client.cjs +13 -3
- 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 +13 -3
- package/dist/client.js.map +1 -1
- package/dist/index.cjs +20 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -5
- package/dist/index.d.ts +13 -5
- package/dist/index.js +20 -6
- package/dist/index.js.map +1 -1
- package/dist/{models-Os6toG3X.d.cts → models-B2PuTc6a.d.cts} +4 -0
- package/dist/{models-Os6toG3X.d.ts → models-B2PuTc6a.d.ts} +4 -0
- package/dist/react.d.cts +2 -0
- package/dist/react.d.ts +2 -0
- package/generated/desktop-protocol.schema.json +15 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { O as OpName } from './models-
|
|
3
|
-
export { B as BEARER_PREFIX, g as CLOSE_RULES, h as CancelMsg, j as ClientToCoreMsg, e as ClientType, k as CloseAction, l as CloseCode, m as CloseCodeValue, C as CloseOutcome, n as CloseRule, o as CoreToClientMsg, p as CreditMsg, D as DesktopProtocolError, d as EVENTS, q as EndMsg, E as EndReason, r as ErrorCode, s as ErrorCodeName, t as ErrorData, u as ErrorMsg, v as ErrorReason, w as ErrorReasonName, x as EventMsg, y as EventName, F as FsPatchEditFailure, H as HelloMsg, L as Limits, z as MlInstallPhase, A as MlInstallProgress, f as MlProgress, G as MlRuntimeState, I as MlServiceState, J as MlServiceStatus, K as MlStatusParams, N as MlStatusResult, P as ModelsInstallParams, Q as ModelsInstallResult, R as ModelsProgressEvent, U as ModelsStatusParams, V as ModelsStatusResult, X as ModelsTranscribeParams, M as ModelsTranscribeResult, Y as NAMED_SCHEMAS, Z as NamedSchemaId, c as OPS, _ as OpDescriptor, a as OpParams, b as OpResult, $ as OpSpec, a0 as PING_TEXT, a1 as PONG_TEXT, a2 as ProtocolErrorBody, a3 as RelayMsg, a4 as RequestMsg, a5 as ResponseMsg, a6 as SERVICES, a7 as SUBPROTOCOL, a8 as ServiceId, a9 as ServiceOpName, aa as ServiceOpSpec, ab as ServiceSpec, S as StreamMeta, ac as StreamMsg, ad as TranscriptSegment, T as TranscriptionModelId, ae as TranscriptionModelInfo, W as Welcome, af as closeRule, i as isDesktopProtocolError, ag as isTerminalClose } from './models-
|
|
2
|
+
import { O as OpName } from './models-B2PuTc6a.cjs';
|
|
3
|
+
export { B as BEARER_PREFIX, g as CLOSE_RULES, h as CancelMsg, j as ClientToCoreMsg, e as ClientType, k as CloseAction, l as CloseCode, m as CloseCodeValue, C as CloseOutcome, n as CloseRule, o as CoreToClientMsg, p as CreditMsg, D as DesktopProtocolError, d as EVENTS, q as EndMsg, E as EndReason, r as ErrorCode, s as ErrorCodeName, t as ErrorData, u as ErrorMsg, v as ErrorReason, w as ErrorReasonName, x as EventMsg, y as EventName, F as FsPatchEditFailure, H as HelloMsg, L as Limits, z as MlInstallPhase, A as MlInstallProgress, f as MlProgress, G as MlRuntimeState, I as MlServiceState, J as MlServiceStatus, K as MlStatusParams, N as MlStatusResult, P as ModelsInstallParams, Q as ModelsInstallResult, R as ModelsProgressEvent, U as ModelsStatusParams, V as ModelsStatusResult, X as ModelsTranscribeParams, M as ModelsTranscribeResult, Y as NAMED_SCHEMAS, Z as NamedSchemaId, c as OPS, _ as OpDescriptor, a as OpParams, b as OpResult, $ as OpSpec, a0 as PING_TEXT, a1 as PONG_TEXT, a2 as ProtocolErrorBody, a3 as RelayMsg, a4 as RequestMsg, a5 as ResponseMsg, a6 as SERVICES, a7 as SUBPROTOCOL, a8 as ServiceId, a9 as ServiceOpName, aa as ServiceOpSpec, ab as ServiceSpec, S as StreamMeta, ac as StreamMsg, ad as TranscriptSegment, T as TranscriptionModelId, ae as TranscriptionModelInfo, W as Welcome, af as closeRule, i as isDesktopProtocolError, ag as isTerminalClose } from './models-B2PuTc6a.cjs';
|
|
4
4
|
export { BROADCAST_CID, DecodedFrame, FRAME_HEADER_BYTES, FRAME_STRUCT_FORMAT, FRAME_VERSION, FrameChannel, FrameChannelValue, FrameFlag, assertFrameHeader, connectionEndFrame, decodeFrame, encodeFrame, hasFlag, isConnectionEnd, readCid, stampCid } from './frame.cjs';
|
|
5
5
|
|
|
6
6
|
/** @ai-matrx/desktop-protocol — version and primitive schemas. Schema source: lint-enforced rules in scripts/check-schema-source.mjs. */
|
|
@@ -24,9 +24,9 @@ declare const PROTOCOL_MAJOR: 1;
|
|
|
24
24
|
* 1.9 — chats placed in windows / held, several filed at once, projects renamed / archived / copied;
|
|
25
25
|
* the list says when it is a saved copy being re-read (`updating`) and when it is not live.
|
|
26
26
|
*/
|
|
27
|
-
declare const PROTOCOL_MINOR:
|
|
27
|
+
declare const PROTOCOL_MINOR: 12;
|
|
28
28
|
/** This package's version as the wire spells it ("major.minor"): hello, welcome, relay status. */
|
|
29
|
-
declare const PROTOCOL_VERSION: "1.
|
|
29
|
+
declare const PROTOCOL_VERSION: "1.12";
|
|
30
30
|
/** Internal building blocks — deliberately unnamed in $defs (inlined wherever used). */
|
|
31
31
|
declare const u32: z.ZodInt;
|
|
32
32
|
declare const nonNegInt: z.ZodInt;
|
|
@@ -1886,6 +1886,7 @@ declare const AppsAccountsUsageResult: z.ZodObject<{
|
|
|
1886
1886
|
weekly_resets_at_ms: z.ZodNullable<z.ZodInt>;
|
|
1887
1887
|
weekly_reset_official: z.ZodNullable<z.ZodBoolean>;
|
|
1888
1888
|
}, z.core.$strict>>;
|
|
1889
|
+
problem: z.ZodOptional<z.ZodString>;
|
|
1889
1890
|
}, z.core.$strict>;
|
|
1890
1891
|
type AppsAccountsUsageResult = z.output<typeof AppsAccountsUsageResult>;
|
|
1891
1892
|
declare const AppsAccountsResetsParams: z.ZodObject<{
|
|
@@ -1906,6 +1907,7 @@ declare const AppsAccountsResetsResult: z.ZodObject<{
|
|
|
1906
1907
|
official: z.ZodBoolean;
|
|
1907
1908
|
note: z.ZodNullable<z.ZodString>;
|
|
1908
1909
|
}, z.core.$strict>>;
|
|
1910
|
+
problem: z.ZodOptional<z.ZodString>;
|
|
1909
1911
|
}, z.core.$strict>;
|
|
1910
1912
|
type AppsAccountsResetsResult = z.output<typeof AppsAccountsResetsResult>;
|
|
1911
1913
|
/** A window action's answer: what happened, in one line. */
|
|
@@ -3769,6 +3771,12 @@ declare const FIELDS_SINCE: {
|
|
|
3769
3771
|
readonly live: "1.9";
|
|
3770
3772
|
readonly families: "1.10";
|
|
3771
3773
|
};
|
|
3774
|
+
readonly AppsAccountsUsageResult: {
|
|
3775
|
+
readonly problem: "1.12";
|
|
3776
|
+
};
|
|
3777
|
+
readonly AppsAccountsResetsResult: {
|
|
3778
|
+
readonly problem: "1.12";
|
|
3779
|
+
};
|
|
3772
3780
|
};
|
|
3773
3781
|
type FieldsSincePath = keyof typeof FIELDS_SINCE;
|
|
3774
3782
|
/**
|
|
@@ -3823,7 +3831,7 @@ declare function forPeer(op: OpName | null, part: "error", value: unknown, versi
|
|
|
3823
3831
|
declare const VERSIONED_RESULT_OPS: readonly OpName[];
|
|
3824
3832
|
|
|
3825
3833
|
/** SHA-256 of generated/desktop-protocol.schema.json: the contract both sides of a service connection were built from. */
|
|
3826
|
-
declare const CONTRACT_SHA256: "
|
|
3834
|
+
declare const CONTRACT_SHA256: "179024ee4b3dc7123af1db44f8ce0fb9da7b392eed30a2a2b5bb312da3522bb0";
|
|
3827
3835
|
|
|
3828
3836
|
/**
|
|
3829
3837
|
* The local tool catalog (SPEC §10): every tool a platform agent calls on a person's computer, the
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { O as OpName } from './models-
|
|
3
|
-
export { B as BEARER_PREFIX, g as CLOSE_RULES, h as CancelMsg, j as ClientToCoreMsg, e as ClientType, k as CloseAction, l as CloseCode, m as CloseCodeValue, C as CloseOutcome, n as CloseRule, o as CoreToClientMsg, p as CreditMsg, D as DesktopProtocolError, d as EVENTS, q as EndMsg, E as EndReason, r as ErrorCode, s as ErrorCodeName, t as ErrorData, u as ErrorMsg, v as ErrorReason, w as ErrorReasonName, x as EventMsg, y as EventName, F as FsPatchEditFailure, H as HelloMsg, L as Limits, z as MlInstallPhase, A as MlInstallProgress, f as MlProgress, G as MlRuntimeState, I as MlServiceState, J as MlServiceStatus, K as MlStatusParams, N as MlStatusResult, P as ModelsInstallParams, Q as ModelsInstallResult, R as ModelsProgressEvent, U as ModelsStatusParams, V as ModelsStatusResult, X as ModelsTranscribeParams, M as ModelsTranscribeResult, Y as NAMED_SCHEMAS, Z as NamedSchemaId, c as OPS, _ as OpDescriptor, a as OpParams, b as OpResult, $ as OpSpec, a0 as PING_TEXT, a1 as PONG_TEXT, a2 as ProtocolErrorBody, a3 as RelayMsg, a4 as RequestMsg, a5 as ResponseMsg, a6 as SERVICES, a7 as SUBPROTOCOL, a8 as ServiceId, a9 as ServiceOpName, aa as ServiceOpSpec, ab as ServiceSpec, S as StreamMeta, ac as StreamMsg, ad as TranscriptSegment, T as TranscriptionModelId, ae as TranscriptionModelInfo, W as Welcome, af as closeRule, i as isDesktopProtocolError, ag as isTerminalClose } from './models-
|
|
2
|
+
import { O as OpName } from './models-B2PuTc6a.js';
|
|
3
|
+
export { B as BEARER_PREFIX, g as CLOSE_RULES, h as CancelMsg, j as ClientToCoreMsg, e as ClientType, k as CloseAction, l as CloseCode, m as CloseCodeValue, C as CloseOutcome, n as CloseRule, o as CoreToClientMsg, p as CreditMsg, D as DesktopProtocolError, d as EVENTS, q as EndMsg, E as EndReason, r as ErrorCode, s as ErrorCodeName, t as ErrorData, u as ErrorMsg, v as ErrorReason, w as ErrorReasonName, x as EventMsg, y as EventName, F as FsPatchEditFailure, H as HelloMsg, L as Limits, z as MlInstallPhase, A as MlInstallProgress, f as MlProgress, G as MlRuntimeState, I as MlServiceState, J as MlServiceStatus, K as MlStatusParams, N as MlStatusResult, P as ModelsInstallParams, Q as ModelsInstallResult, R as ModelsProgressEvent, U as ModelsStatusParams, V as ModelsStatusResult, X as ModelsTranscribeParams, M as ModelsTranscribeResult, Y as NAMED_SCHEMAS, Z as NamedSchemaId, c as OPS, _ as OpDescriptor, a as OpParams, b as OpResult, $ as OpSpec, a0 as PING_TEXT, a1 as PONG_TEXT, a2 as ProtocolErrorBody, a3 as RelayMsg, a4 as RequestMsg, a5 as ResponseMsg, a6 as SERVICES, a7 as SUBPROTOCOL, a8 as ServiceId, a9 as ServiceOpName, aa as ServiceOpSpec, ab as ServiceSpec, S as StreamMeta, ac as StreamMsg, ad as TranscriptSegment, T as TranscriptionModelId, ae as TranscriptionModelInfo, W as Welcome, af as closeRule, i as isDesktopProtocolError, ag as isTerminalClose } from './models-B2PuTc6a.js';
|
|
4
4
|
export { BROADCAST_CID, DecodedFrame, FRAME_HEADER_BYTES, FRAME_STRUCT_FORMAT, FRAME_VERSION, FrameChannel, FrameChannelValue, FrameFlag, assertFrameHeader, connectionEndFrame, decodeFrame, encodeFrame, hasFlag, isConnectionEnd, readCid, stampCid } from './frame.js';
|
|
5
5
|
|
|
6
6
|
/** @ai-matrx/desktop-protocol — version and primitive schemas. Schema source: lint-enforced rules in scripts/check-schema-source.mjs. */
|
|
@@ -24,9 +24,9 @@ declare const PROTOCOL_MAJOR: 1;
|
|
|
24
24
|
* 1.9 — chats placed in windows / held, several filed at once, projects renamed / archived / copied;
|
|
25
25
|
* the list says when it is a saved copy being re-read (`updating`) and when it is not live.
|
|
26
26
|
*/
|
|
27
|
-
declare const PROTOCOL_MINOR:
|
|
27
|
+
declare const PROTOCOL_MINOR: 12;
|
|
28
28
|
/** This package's version as the wire spells it ("major.minor"): hello, welcome, relay status. */
|
|
29
|
-
declare const PROTOCOL_VERSION: "1.
|
|
29
|
+
declare const PROTOCOL_VERSION: "1.12";
|
|
30
30
|
/** Internal building blocks — deliberately unnamed in $defs (inlined wherever used). */
|
|
31
31
|
declare const u32: z.ZodInt;
|
|
32
32
|
declare const nonNegInt: z.ZodInt;
|
|
@@ -1886,6 +1886,7 @@ declare const AppsAccountsUsageResult: z.ZodObject<{
|
|
|
1886
1886
|
weekly_resets_at_ms: z.ZodNullable<z.ZodInt>;
|
|
1887
1887
|
weekly_reset_official: z.ZodNullable<z.ZodBoolean>;
|
|
1888
1888
|
}, z.core.$strict>>;
|
|
1889
|
+
problem: z.ZodOptional<z.ZodString>;
|
|
1889
1890
|
}, z.core.$strict>;
|
|
1890
1891
|
type AppsAccountsUsageResult = z.output<typeof AppsAccountsUsageResult>;
|
|
1891
1892
|
declare const AppsAccountsResetsParams: z.ZodObject<{
|
|
@@ -1906,6 +1907,7 @@ declare const AppsAccountsResetsResult: z.ZodObject<{
|
|
|
1906
1907
|
official: z.ZodBoolean;
|
|
1907
1908
|
note: z.ZodNullable<z.ZodString>;
|
|
1908
1909
|
}, z.core.$strict>>;
|
|
1910
|
+
problem: z.ZodOptional<z.ZodString>;
|
|
1909
1911
|
}, z.core.$strict>;
|
|
1910
1912
|
type AppsAccountsResetsResult = z.output<typeof AppsAccountsResetsResult>;
|
|
1911
1913
|
/** A window action's answer: what happened, in one line. */
|
|
@@ -3769,6 +3771,12 @@ declare const FIELDS_SINCE: {
|
|
|
3769
3771
|
readonly live: "1.9";
|
|
3770
3772
|
readonly families: "1.10";
|
|
3771
3773
|
};
|
|
3774
|
+
readonly AppsAccountsUsageResult: {
|
|
3775
|
+
readonly problem: "1.12";
|
|
3776
|
+
};
|
|
3777
|
+
readonly AppsAccountsResetsResult: {
|
|
3778
|
+
readonly problem: "1.12";
|
|
3779
|
+
};
|
|
3772
3780
|
};
|
|
3773
3781
|
type FieldsSincePath = keyof typeof FIELDS_SINCE;
|
|
3774
3782
|
/**
|
|
@@ -3823,7 +3831,7 @@ declare function forPeer(op: OpName | null, part: "error", value: unknown, versi
|
|
|
3823
3831
|
declare const VERSIONED_RESULT_OPS: readonly OpName[];
|
|
3824
3832
|
|
|
3825
3833
|
/** SHA-256 of generated/desktop-protocol.schema.json: the contract both sides of a service connection were built from. */
|
|
3826
|
-
declare const CONTRACT_SHA256: "
|
|
3834
|
+
declare const CONTRACT_SHA256: "179024ee4b3dc7123af1db44f8ce0fb9da7b392eed30a2a2b5bb312da3522bb0";
|
|
3827
3835
|
|
|
3828
3836
|
/**
|
|
3829
3837
|
* The local tool catalog (SPEC §10): every tool a platform agent calls on a person's computer, the
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// src/schema/primitives.ts
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
var PROTOCOL_MAJOR = 1;
|
|
4
|
-
var PROTOCOL_MINOR =
|
|
4
|
+
var PROTOCOL_MINOR = 12;
|
|
5
5
|
var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
|
|
6
6
|
var ProtocolVersion = z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
|
|
7
7
|
var RequestId = z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
|
|
@@ -1101,9 +1101,19 @@ var AccountReset = z13.strictObject({
|
|
|
1101
1101
|
var AppsWindowsListParams = z13.strictObject({ app_key: AppKey });
|
|
1102
1102
|
var AppsWindowsListResult = z13.strictObject({ app_key: AppKey, windows: z13.array(AppWindowInfo).max(200) });
|
|
1103
1103
|
var AppsAccountsUsageParams = z13.strictObject({ app_key: AppKey });
|
|
1104
|
-
var AppsAccountsUsageResult = z13.strictObject({
|
|
1104
|
+
var AppsAccountsUsageResult = z13.strictObject({
|
|
1105
|
+
app_key: AppKey,
|
|
1106
|
+
accounts: z13.array(AccountUsage).max(500),
|
|
1107
|
+
/** 1.12: the rows are right but something around them failed (a newly read reset time could not be saved); shown, never hidden. */
|
|
1108
|
+
problem: z13.string().max(400).optional()
|
|
1109
|
+
});
|
|
1105
1110
|
var AppsAccountsResetsParams = z13.strictObject({ app_key: AppKey });
|
|
1106
|
-
var AppsAccountsResetsResult = z13.strictObject({
|
|
1111
|
+
var AppsAccountsResetsResult = z13.strictObject({
|
|
1112
|
+
app_key: AppKey,
|
|
1113
|
+
resets: z13.array(AccountReset).max(200),
|
|
1114
|
+
/** 1.12: as on `apps.accounts.usage`. */
|
|
1115
|
+
problem: z13.string().max(400).optional()
|
|
1116
|
+
});
|
|
1107
1117
|
var AppsWindowActionResult = z13.strictObject({ message: z13.string().max(400) });
|
|
1108
1118
|
var AppsWindowsOpenParams = z13.strictObject({ app_key: AppKey, window: ChatPlace });
|
|
1109
1119
|
var AppsWindowsReloadParams = z13.strictObject({ app_key: AppKey, window: ChatPlace });
|
|
@@ -2260,7 +2270,9 @@ var FIELDS_SINCE = {
|
|
|
2260
2270
|
"RelayCallResponse|0": { protocol_version: "1.1" },
|
|
2261
2271
|
"RelayCallResponse|1": { protocol_version: "1.1" },
|
|
2262
2272
|
WindowInfo: { app: "1.7", pid: "1.7" },
|
|
2263
|
-
AppsChatsListResult: { updating: "1.9", live: "1.9", families: "1.10" }
|
|
2273
|
+
AppsChatsListResult: { updating: "1.9", live: "1.9", families: "1.10" },
|
|
2274
|
+
AppsAccountsUsageResult: { problem: "1.12" },
|
|
2275
|
+
AppsAccountsResetsResult: { problem: "1.12" }
|
|
2264
2276
|
};
|
|
2265
2277
|
var NULL_SINCE = {
|
|
2266
2278
|
"RelayDeviceStatusEvent.since_ms": { since: "1.1", olderPeersGet: 0 }
|
|
@@ -2315,7 +2327,9 @@ function strip(value, fields, version) {
|
|
|
2315
2327
|
}
|
|
2316
2328
|
var RESULT_PATH = /* @__PURE__ */ new Map([
|
|
2317
2329
|
["fs.patch", "FsPatchResult"],
|
|
2318
|
-
["apps.chats.list", "AppsChatsListResult"]
|
|
2330
|
+
["apps.chats.list", "AppsChatsListResult"],
|
|
2331
|
+
["apps.accounts.usage", "AppsAccountsUsageResult"],
|
|
2332
|
+
["apps.accounts.resets", "AppsAccountsResetsResult"]
|
|
2319
2333
|
]);
|
|
2320
2334
|
var WINDOW_RESULTS = /* @__PURE__ */ new Map([
|
|
2321
2335
|
["window.list", "windows"],
|
|
@@ -2357,7 +2371,7 @@ function forPeer(op, part, value, version) {
|
|
|
2357
2371
|
var VERSIONED_RESULT_OPS = [...RESULT_PATH.keys(), ...WINDOW_RESULTS.keys()];
|
|
2358
2372
|
|
|
2359
2373
|
// src/contract.ts
|
|
2360
|
-
var CONTRACT_SHA256 = "
|
|
2374
|
+
var CONTRACT_SHA256 = "179024ee4b3dc7123af1db44f8ce0fb9da7b392eed30a2a2b5bb312da3522bb0";
|
|
2361
2375
|
|
|
2362
2376
|
// src/close-policy.ts
|
|
2363
2377
|
var CLOSE_RULES = {
|