@ai-matrx/desktop-protocol 0.21.45 → 0.21.46
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 +17 -2
- package/README.md +1 -1
- package/dist/client.cjs +30 -7
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +5 -5
- package/dist/client.d.ts +5 -5
- package/dist/client.js +30 -7
- package/dist/client.js.map +1 -1
- package/dist/index.cjs +41 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1710 -1488
- package/dist/index.d.ts +1710 -1488
- package/dist/index.js +41 -7
- package/dist/index.js.map +1 -1
- package/dist/{models-BFAtNMgx.d.cts → models-DIsQe_Ef.d.cts} +242 -107
- package/dist/{models-BFAtNMgx.d.ts → models-DIsQe_Ef.d.ts} +242 -107
- package/dist/react.cjs +9 -0
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +48 -5
- package/dist/react.d.ts +48 -5
- package/dist/react.js +9 -0
- package/dist/react.js.map +1 -1
- package/generated/desktop-protocol.schema.json +139 -1
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -130,6 +130,8 @@ __export(src_exports, {
|
|
|
130
130
|
AppsWindowsReopenResult: () => AppsWindowsReopenResult,
|
|
131
131
|
AppsWindowsRestartParams: () => AppsWindowsRestartParams,
|
|
132
132
|
AppsWindowsSaveNamesParams: () => AppsWindowsSaveNamesParams,
|
|
133
|
+
AppsWindowsSetRemoteControlParams: () => AppsWindowsSetRemoteControlParams,
|
|
134
|
+
AppsWindowsSetRemoteControlResult: () => AppsWindowsSetRemoteControlResult,
|
|
133
135
|
AppsWindowsShownParams: () => AppsWindowsShownParams,
|
|
134
136
|
AppsWindowsShownResult: () => AppsWindowsShownResult,
|
|
135
137
|
AppsWindowsUpdateAndReopenParams: () => AppsWindowsUpdateAndReopenParams,
|
|
@@ -833,6 +835,7 @@ __export(src_exports, {
|
|
|
833
835
|
WindowMinimizeResult: () => WindowMinimizeResult,
|
|
834
836
|
WindowMoveParams: () => WindowMoveParams,
|
|
835
837
|
WindowMoveResult: () => WindowMoveResult,
|
|
838
|
+
WindowRemoteControl: () => WindowRemoteControl,
|
|
836
839
|
WindowsEvent: () => WindowsEvent,
|
|
837
840
|
WindowsEventLogParams: () => WindowsEventLogParams,
|
|
838
841
|
WindowsEventLogResult: () => WindowsEventLogResult,
|
|
@@ -883,7 +886,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
883
886
|
var import_zod = require("zod");
|
|
884
887
|
var import_uuid = require("@ai-matrx/kit/uuid");
|
|
885
888
|
var PROTOCOL_MAJOR = 1;
|
|
886
|
-
var PROTOCOL_MINOR =
|
|
889
|
+
var PROTOCOL_MINOR = 51;
|
|
887
890
|
var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
|
|
888
891
|
var ProtocolVersion = import_zod.z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
|
|
889
892
|
var RequestId = import_zod.z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
|
|
@@ -2302,6 +2305,14 @@ var AppsChatsStarResult = import_zod13.z.strictObject({ chat: ChatRow });
|
|
|
2302
2305
|
|
|
2303
2306
|
// src/schema/apps-accounts.ts
|
|
2304
2307
|
var import_zod14 = require("zod");
|
|
2308
|
+
var WindowRemoteControl = import_zod14.z.strictObject({
|
|
2309
|
+
/** As the window's settings file holds it: on, off, or never set (the app's default). */
|
|
2310
|
+
setting: import_zod14.z.enum(["on", "off", "default"]),
|
|
2311
|
+
/** The window serves Remote Control now (its live state says "on"); null: not known (closed, or no state file). */
|
|
2312
|
+
serving: import_zod14.z.boolean().nullable(),
|
|
2313
|
+
/** A change queued until the window next closes (or restarts); null: none. */
|
|
2314
|
+
pending: import_zod14.z.enum(["on", "off"]).nullable()
|
|
2315
|
+
});
|
|
2305
2316
|
var AppWindowInfo = import_zod14.z.strictObject({
|
|
2306
2317
|
key: ChatPlace,
|
|
2307
2318
|
/** The app's default profile (Claude: main, which may sign into any account). */
|
|
@@ -2318,7 +2329,9 @@ var AppWindowInfo = import_zod14.z.strictObject({
|
|
|
2318
2329
|
/** Open now. */
|
|
2319
2330
|
running: import_zod14.z.boolean(),
|
|
2320
2331
|
/** Chats open in it now (a process resuming each one). */
|
|
2321
|
-
open_chats: nonNegInt
|
|
2332
|
+
open_chats: nonNegInt,
|
|
2333
|
+
/** 1.50: its Remote Control (phone) setting; absent from an older core, or an app without one. */
|
|
2334
|
+
remote_control: WindowRemoteControl.optional()
|
|
2322
2335
|
});
|
|
2323
2336
|
var AccountUsage = import_zod14.z.strictObject({
|
|
2324
2337
|
/** The account's email, or "org <8 chars>" when no window has ever sampled that org. */
|
|
@@ -2398,6 +2411,13 @@ var AppsWindowsShownResult = import_zod14.z.strictObject({
|
|
|
2398
2411
|
sections: import_zod14.z.array(ShownSection).max(200),
|
|
2399
2412
|
problem: import_zod14.z.string().max(400).nullable()
|
|
2400
2413
|
});
|
|
2414
|
+
var AppsWindowsSetRemoteControlParams = import_zod14.z.strictObject({ app_key: AppKey, window: ChatPlace, enabled: import_zod14.z.boolean() });
|
|
2415
|
+
var AppsWindowsSetRemoteControlResult = import_zod14.z.strictObject({
|
|
2416
|
+
message: import_zod14.z.string().max(400),
|
|
2417
|
+
/** "now" = written into the closed window; "next_close" = queued until it closes. */
|
|
2418
|
+
when: import_zod14.z.enum(["now", "next_close"]),
|
|
2419
|
+
remote_control: WindowRemoteControl
|
|
2420
|
+
});
|
|
2401
2421
|
var AppsWindowsRestartParams = import_zod14.z.strictObject({ app_key: AppKey, window: ChatPlace, force: import_zod14.z.boolean().default(false) });
|
|
2402
2422
|
var AppsWindowsRefreshUsageParams = import_zod14.z.strictObject({ app_key: AppKey, window: ChatPlace });
|
|
2403
2423
|
var AppsProjectsMoveParams = import_zod14.z.strictObject({
|
|
@@ -2741,19 +2761,23 @@ var AppAccount = import_zod15.z.strictObject({
|
|
|
2741
2761
|
last_seen_ms: epochMs.nullable(),
|
|
2742
2762
|
missing: import_zod15.z.array(AccountGap).max(3)
|
|
2743
2763
|
});
|
|
2744
|
-
var AppsInstancesListParams = import_zod15.z.strictObject({ app_key: AppKey });
|
|
2764
|
+
var AppsInstancesListParams = import_zod15.z.strictObject({ app_key: AppKey, fresh: import_zod15.z.boolean().optional() });
|
|
2745
2765
|
var AppsInstancesListResult = import_zod15.z.strictObject({
|
|
2746
2766
|
app_key: AppKey,
|
|
2747
2767
|
install: AppInstall.nullable(),
|
|
2748
2768
|
instances: import_zod15.z.array(AppInstance).max(200),
|
|
2749
2769
|
/** The rows are right but something around them failed; shown, never hidden. */
|
|
2750
|
-
problem: import_zod15.z.string().max(400).optional()
|
|
2770
|
+
problem: import_zod15.z.string().max(400).optional(),
|
|
2771
|
+
as_of_ms: epochMs.optional(),
|
|
2772
|
+
refreshing: import_zod15.z.boolean().optional()
|
|
2751
2773
|
});
|
|
2752
|
-
var AppsAccountsListParams = import_zod15.z.strictObject({ app_key: AppKey });
|
|
2774
|
+
var AppsAccountsListParams = import_zod15.z.strictObject({ app_key: AppKey, fresh: import_zod15.z.boolean().optional() });
|
|
2753
2775
|
var AppsAccountsListResult = import_zod15.z.strictObject({
|
|
2754
2776
|
app_key: AppKey,
|
|
2755
2777
|
accounts: import_zod15.z.array(AppAccount).max(500),
|
|
2756
|
-
problem: import_zod15.z.string().max(400).optional()
|
|
2778
|
+
problem: import_zod15.z.string().max(400).optional(),
|
|
2779
|
+
as_of_ms: epochMs.optional(),
|
|
2780
|
+
refreshing: import_zod15.z.boolean().optional()
|
|
2757
2781
|
});
|
|
2758
2782
|
|
|
2759
2783
|
// src/schema/service.ts
|
|
@@ -5270,6 +5294,8 @@ var OPS = {
|
|
|
5270
5294
|
"apps.windows.open": { params: AppsWindowsOpenParams, result: AppsWindowActionResult, kind: "unary", since: "1.10", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
5271
5295
|
"apps.windows.reload": { params: AppsWindowsReloadParams, result: AppsWindowActionResult, kind: "unary", since: "1.10", errors: ["NOT_FOUND", "CONFLICT", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
5272
5296
|
"apps.windows.restart": { params: AppsWindowsRestartParams, result: AppsWindowActionResult, kind: "unary", since: "1.10", errors: ["NOT_FOUND", "CONFLICT", "TIMEOUT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
5297
|
+
// 1.50: a window's Remote Control (phone) setting, written while closed or queued for its next close.
|
|
5298
|
+
"apps.windows.set_remote_control": { params: AppsWindowsSetRemoteControlParams, result: AppsWindowsSetRemoteControlResult, kind: "unary", since: "1.50", errors: ["NOT_FOUND", "CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
5273
5299
|
"apps.windows.refresh_usage": { params: AppsWindowsRefreshUsageParams, result: AppsWindowActionResult, kind: "unary", since: "1.10", errors: ["NOT_FOUND", "TIMEOUT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
5274
5300
|
"apps.accounts.usage": { params: AppsAccountsUsageParams, result: AppsAccountsUsageResult, kind: "unary", since: "1.10", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
5275
5301
|
"apps.accounts.resets": { params: AppsAccountsResetsParams, result: AppsAccountsResetsResult, kind: "unary", since: "1.10", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
@@ -5990,6 +6016,9 @@ var NAMED_SCHEMAS = {
|
|
|
5990
6016
|
AppsProjectsCopyResult,
|
|
5991
6017
|
ChatFamily,
|
|
5992
6018
|
AppWindowInfo,
|
|
6019
|
+
WindowRemoteControl,
|
|
6020
|
+
AppsWindowsSetRemoteControlParams,
|
|
6021
|
+
AppsWindowsSetRemoteControlResult,
|
|
5993
6022
|
AccountUsage,
|
|
5994
6023
|
AccountReset,
|
|
5995
6024
|
AppsWindowsListParams,
|
|
@@ -6326,6 +6355,11 @@ var FIELDS_SINCE = {
|
|
|
6326
6355
|
"RelayCallResponse|0": { protocol_version: "1.1" },
|
|
6327
6356
|
"RelayCallResponse|1": { protocol_version: "1.1" },
|
|
6328
6357
|
WindowInfo: { app: "1.7", pid: "1.7" },
|
|
6358
|
+
AppWindowInfo: { remote_control: "1.50" },
|
|
6359
|
+
AppsInstancesListParams: { fresh: "1.51" },
|
|
6360
|
+
AppsInstancesListResult: { as_of_ms: "1.51", refreshing: "1.51" },
|
|
6361
|
+
AppsAccountsListParams: { fresh: "1.51" },
|
|
6362
|
+
AppsAccountsListResult: { as_of_ms: "1.51", refreshing: "1.51" },
|
|
6329
6363
|
AppsChatsListResult: { updating: "1.9", live: "1.9", families: "1.10" },
|
|
6330
6364
|
AppsAccountsUsageResult: { problem: "1.12" },
|
|
6331
6365
|
AppsAccountsResetsResult: { problem: "1.12" },
|
|
@@ -6517,7 +6551,7 @@ function forPeer(op, part, value, version) {
|
|
|
6517
6551
|
var VERSIONED_RESULT_OPS = [.../* @__PURE__ */ new Set([...RESULT_PATH.keys(), ...WINDOW_RESULTS.keys(), ...NESTED_RESULTS.keys()])];
|
|
6518
6552
|
|
|
6519
6553
|
// src/contract.ts
|
|
6520
|
-
var CONTRACT_SHA256 = "
|
|
6554
|
+
var CONTRACT_SHA256 = "17a170d7662db6a201d4787ac19ce9bbd34696faba04cabedb9d26ba14d15ff4";
|
|
6521
6555
|
|
|
6522
6556
|
// src/close-policy.ts
|
|
6523
6557
|
var CLOSE_RULES = {
|