@ai-matrx/desktop-protocol 0.21.44 → 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 +20 -0
- package/README.md +1 -1
- package/dist/client.cjs +32 -9
- 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 +32 -9
- package/dist/client.js.map +1 -1
- package/dist/index.cjs +43 -9
- 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 +43 -9
- package/dist/index.js.map +1 -1
- package/dist/{models-CCRnwbz8.d.cts → models-DIsQe_Ef.d.cts} +245 -110
- package/dist/{models-CCRnwbz8.d.ts → models-DIsQe_Ef.d.ts} +245 -110
- 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 +147 -2
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { UUID_SHAPE_PATTERN } from "@ai-matrx/kit/uuid";
|
|
4
4
|
var PROTOCOL_MAJOR = 1;
|
|
5
|
-
var PROTOCOL_MINOR =
|
|
5
|
+
var PROTOCOL_MINOR = 51;
|
|
6
6
|
var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
|
|
7
7
|
var ProtocolVersion = z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
|
|
8
8
|
var RequestId = z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
|
|
@@ -954,8 +954,8 @@ var MlCatalogSetParams = z10.strictObject({
|
|
|
954
954
|
transcription: z10.array(CatalogModelEntry).max(64),
|
|
955
955
|
/** Null where the catalog has no build for this os/arch (installs then say so). */
|
|
956
956
|
llama_server: LlamaServerBuild.nullable(),
|
|
957
|
-
/** The knob desktop.models/default_transcription_model. */
|
|
958
|
-
default_transcription: TranscriptionModelId,
|
|
957
|
+
/** The knob desktop.models/default_transcription_model; null when the knob could not be read (a transcribe naming no model then says so). */
|
|
958
|
+
default_transcription: TranscriptionModelId.nullable(),
|
|
959
959
|
/** When the catalog was last changed (catalog_updated_at), for the service's log. */
|
|
960
960
|
catalog_updated_at: z10.string().max(40)
|
|
961
961
|
});
|
|
@@ -1421,6 +1421,14 @@ var AppsChatsStarResult = z13.strictObject({ chat: ChatRow });
|
|
|
1421
1421
|
|
|
1422
1422
|
// src/schema/apps-accounts.ts
|
|
1423
1423
|
import { z as z14 } from "zod";
|
|
1424
|
+
var WindowRemoteControl = z14.strictObject({
|
|
1425
|
+
/** As the window's settings file holds it: on, off, or never set (the app's default). */
|
|
1426
|
+
setting: z14.enum(["on", "off", "default"]),
|
|
1427
|
+
/** The window serves Remote Control now (its live state says "on"); null: not known (closed, or no state file). */
|
|
1428
|
+
serving: z14.boolean().nullable(),
|
|
1429
|
+
/** A change queued until the window next closes (or restarts); null: none. */
|
|
1430
|
+
pending: z14.enum(["on", "off"]).nullable()
|
|
1431
|
+
});
|
|
1424
1432
|
var AppWindowInfo = z14.strictObject({
|
|
1425
1433
|
key: ChatPlace,
|
|
1426
1434
|
/** The app's default profile (Claude: main, which may sign into any account). */
|
|
@@ -1437,7 +1445,9 @@ var AppWindowInfo = z14.strictObject({
|
|
|
1437
1445
|
/** Open now. */
|
|
1438
1446
|
running: z14.boolean(),
|
|
1439
1447
|
/** Chats open in it now (a process resuming each one). */
|
|
1440
|
-
open_chats: nonNegInt
|
|
1448
|
+
open_chats: nonNegInt,
|
|
1449
|
+
/** 1.50: its Remote Control (phone) setting; absent from an older core, or an app without one. */
|
|
1450
|
+
remote_control: WindowRemoteControl.optional()
|
|
1441
1451
|
});
|
|
1442
1452
|
var AccountUsage = z14.strictObject({
|
|
1443
1453
|
/** The account's email, or "org <8 chars>" when no window has ever sampled that org. */
|
|
@@ -1517,6 +1527,13 @@ var AppsWindowsShownResult = z14.strictObject({
|
|
|
1517
1527
|
sections: z14.array(ShownSection).max(200),
|
|
1518
1528
|
problem: z14.string().max(400).nullable()
|
|
1519
1529
|
});
|
|
1530
|
+
var AppsWindowsSetRemoteControlParams = z14.strictObject({ app_key: AppKey, window: ChatPlace, enabled: z14.boolean() });
|
|
1531
|
+
var AppsWindowsSetRemoteControlResult = z14.strictObject({
|
|
1532
|
+
message: z14.string().max(400),
|
|
1533
|
+
/** "now" = written into the closed window; "next_close" = queued until it closes. */
|
|
1534
|
+
when: z14.enum(["now", "next_close"]),
|
|
1535
|
+
remote_control: WindowRemoteControl
|
|
1536
|
+
});
|
|
1520
1537
|
var AppsWindowsRestartParams = z14.strictObject({ app_key: AppKey, window: ChatPlace, force: z14.boolean().default(false) });
|
|
1521
1538
|
var AppsWindowsRefreshUsageParams = z14.strictObject({ app_key: AppKey, window: ChatPlace });
|
|
1522
1539
|
var AppsProjectsMoveParams = z14.strictObject({
|
|
@@ -1860,19 +1877,23 @@ var AppAccount = z15.strictObject({
|
|
|
1860
1877
|
last_seen_ms: epochMs.nullable(),
|
|
1861
1878
|
missing: z15.array(AccountGap).max(3)
|
|
1862
1879
|
});
|
|
1863
|
-
var AppsInstancesListParams = z15.strictObject({ app_key: AppKey });
|
|
1880
|
+
var AppsInstancesListParams = z15.strictObject({ app_key: AppKey, fresh: z15.boolean().optional() });
|
|
1864
1881
|
var AppsInstancesListResult = z15.strictObject({
|
|
1865
1882
|
app_key: AppKey,
|
|
1866
1883
|
install: AppInstall.nullable(),
|
|
1867
1884
|
instances: z15.array(AppInstance).max(200),
|
|
1868
1885
|
/** The rows are right but something around them failed; shown, never hidden. */
|
|
1869
|
-
problem: z15.string().max(400).optional()
|
|
1886
|
+
problem: z15.string().max(400).optional(),
|
|
1887
|
+
as_of_ms: epochMs.optional(),
|
|
1888
|
+
refreshing: z15.boolean().optional()
|
|
1870
1889
|
});
|
|
1871
|
-
var AppsAccountsListParams = z15.strictObject({ app_key: AppKey });
|
|
1890
|
+
var AppsAccountsListParams = z15.strictObject({ app_key: AppKey, fresh: z15.boolean().optional() });
|
|
1872
1891
|
var AppsAccountsListResult = z15.strictObject({
|
|
1873
1892
|
app_key: AppKey,
|
|
1874
1893
|
accounts: z15.array(AppAccount).max(500),
|
|
1875
|
-
problem: z15.string().max(400).optional()
|
|
1894
|
+
problem: z15.string().max(400).optional(),
|
|
1895
|
+
as_of_ms: epochMs.optional(),
|
|
1896
|
+
refreshing: z15.boolean().optional()
|
|
1876
1897
|
});
|
|
1877
1898
|
|
|
1878
1899
|
// src/schema/service.ts
|
|
@@ -4389,6 +4410,8 @@ var OPS = {
|
|
|
4389
4410
|
"apps.windows.open": { params: AppsWindowsOpenParams, result: AppsWindowActionResult, kind: "unary", since: "1.10", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4390
4411
|
"apps.windows.reload": { params: AppsWindowsReloadParams, result: AppsWindowActionResult, kind: "unary", since: "1.10", errors: ["NOT_FOUND", "CONFLICT", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4391
4412
|
"apps.windows.restart": { params: AppsWindowsRestartParams, result: AppsWindowActionResult, kind: "unary", since: "1.10", errors: ["NOT_FOUND", "CONFLICT", "TIMEOUT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4413
|
+
// 1.50: a window's Remote Control (phone) setting, written while closed or queued for its next close.
|
|
4414
|
+
"apps.windows.set_remote_control": { params: AppsWindowsSetRemoteControlParams, result: AppsWindowsSetRemoteControlResult, kind: "unary", since: "1.50", errors: ["NOT_FOUND", "CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4392
4415
|
"apps.windows.refresh_usage": { params: AppsWindowsRefreshUsageParams, result: AppsWindowActionResult, kind: "unary", since: "1.10", errors: ["NOT_FOUND", "TIMEOUT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4393
4416
|
"apps.accounts.usage": { params: AppsAccountsUsageParams, result: AppsAccountsUsageResult, kind: "unary", since: "1.10", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4394
4417
|
"apps.accounts.resets": { params: AppsAccountsResetsParams, result: AppsAccountsResetsResult, kind: "unary", since: "1.10", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
@@ -5109,6 +5132,9 @@ var NAMED_SCHEMAS = {
|
|
|
5109
5132
|
AppsProjectsCopyResult,
|
|
5110
5133
|
ChatFamily,
|
|
5111
5134
|
AppWindowInfo,
|
|
5135
|
+
WindowRemoteControl,
|
|
5136
|
+
AppsWindowsSetRemoteControlParams,
|
|
5137
|
+
AppsWindowsSetRemoteControlResult,
|
|
5112
5138
|
AccountUsage,
|
|
5113
5139
|
AccountReset,
|
|
5114
5140
|
AppsWindowsListParams,
|
|
@@ -5445,6 +5471,11 @@ var FIELDS_SINCE = {
|
|
|
5445
5471
|
"RelayCallResponse|0": { protocol_version: "1.1" },
|
|
5446
5472
|
"RelayCallResponse|1": { protocol_version: "1.1" },
|
|
5447
5473
|
WindowInfo: { app: "1.7", pid: "1.7" },
|
|
5474
|
+
AppWindowInfo: { remote_control: "1.50" },
|
|
5475
|
+
AppsInstancesListParams: { fresh: "1.51" },
|
|
5476
|
+
AppsInstancesListResult: { as_of_ms: "1.51", refreshing: "1.51" },
|
|
5477
|
+
AppsAccountsListParams: { fresh: "1.51" },
|
|
5478
|
+
AppsAccountsListResult: { as_of_ms: "1.51", refreshing: "1.51" },
|
|
5448
5479
|
AppsChatsListResult: { updating: "1.9", live: "1.9", families: "1.10" },
|
|
5449
5480
|
AppsAccountsUsageResult: { problem: "1.12" },
|
|
5450
5481
|
AppsAccountsResetsResult: { problem: "1.12" },
|
|
@@ -5636,7 +5667,7 @@ function forPeer(op, part, value, version) {
|
|
|
5636
5667
|
var VERSIONED_RESULT_OPS = [.../* @__PURE__ */ new Set([...RESULT_PATH.keys(), ...WINDOW_RESULTS.keys(), ...NESTED_RESULTS.keys()])];
|
|
5637
5668
|
|
|
5638
5669
|
// src/contract.ts
|
|
5639
|
-
var CONTRACT_SHA256 = "
|
|
5670
|
+
var CONTRACT_SHA256 = "17a170d7662db6a201d4787ac19ce9bbd34696faba04cabedb9d26ba14d15ff4";
|
|
5640
5671
|
|
|
5641
5672
|
// src/close-policy.ts
|
|
5642
5673
|
var CLOSE_RULES = {
|
|
@@ -6142,6 +6173,8 @@ export {
|
|
|
6142
6173
|
AppsWindowsReopenResult,
|
|
6143
6174
|
AppsWindowsRestartParams,
|
|
6144
6175
|
AppsWindowsSaveNamesParams,
|
|
6176
|
+
AppsWindowsSetRemoteControlParams,
|
|
6177
|
+
AppsWindowsSetRemoteControlResult,
|
|
6145
6178
|
AppsWindowsShownParams,
|
|
6146
6179
|
AppsWindowsShownResult,
|
|
6147
6180
|
AppsWindowsUpdateAndReopenParams,
|
|
@@ -6845,6 +6878,7 @@ export {
|
|
|
6845
6878
|
WindowMinimizeResult,
|
|
6846
6879
|
WindowMoveParams,
|
|
6847
6880
|
WindowMoveResult,
|
|
6881
|
+
WindowRemoteControl,
|
|
6848
6882
|
WindowsEvent,
|
|
6849
6883
|
WindowsEventLogParams,
|
|
6850
6884
|
WindowsEventLogResult,
|