@ai-matrx/desktop-protocol 0.21.16 → 0.21.18

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/dist/index.cjs CHANGED
@@ -107,10 +107,13 @@ __export(src_exports, {
107
107
  AudioDevice: () => AudioDevice,
108
108
  AudioDevicesParams: () => AudioDevicesParams,
109
109
  AudioDevicesResult: () => AudioDevicesResult,
110
+ AudioLevelsParams: () => AudioLevelsParams,
111
+ AudioLevelsResult: () => AudioLevelsResult,
110
112
  AudioPlayParams: () => AudioPlayParams,
111
113
  AudioPlayResult: () => AudioPlayResult,
112
114
  AudioRecordParams: () => AudioRecordParams,
113
115
  AudioRecordResult: () => AudioRecordResult,
116
+ AudioSetLevelsParams: () => AudioSetLevelsParams,
114
117
  BEARER_PREFIX: () => BEARER_PREFIX,
115
118
  BROADCAST_CID: () => BROADCAST_CID,
116
119
  CLOSE_RULES: () => CLOSE_RULES,
@@ -269,11 +272,14 @@ __export(src_exports, {
269
272
  InputHotkeyParams: () => InputHotkeyParams,
270
273
  InputHotkeyResult: () => InputHotkeyResult,
271
274
  InputKey: () => InputKey,
275
+ InputKeyboardSettingsParams: () => InputKeyboardSettingsParams,
276
+ InputKeyboardSettingsResult: () => InputKeyboardSettingsResult,
272
277
  InputMouseClickParams: () => InputMouseClickParams,
273
278
  InputMouseClickResult: () => InputMouseClickResult,
274
279
  InputMouseMoveParams: () => InputMouseMoveParams,
275
280
  InputMouseMoveResult: () => InputMouseMoveResult,
276
281
  InputPoint: () => InputPoint,
282
+ InputSetKeyboardSettingsParams: () => InputSetKeyboardSettingsParams,
277
283
  InputTypeTextParams: () => InputTypeTextParams,
278
284
  InputTypeTextResult: () => InputTypeTextResult,
279
285
  LEGACY_ACTIONS: () => LEGACY_ACTIONS,
@@ -304,6 +310,10 @@ __export(src_exports, {
304
310
  PROTOCOL_MAJOR: () => PROTOCOL_MAJOR,
305
311
  PROTOCOL_MINOR: () => PROTOCOL_MINOR,
306
312
  PROTOCOL_VERSION: () => PROTOCOL_VERSION,
313
+ PowerEnergy: () => PowerEnergy,
314
+ PowerHistoryParams: () => PowerHistoryParams,
315
+ PowerHistoryPoint: () => PowerHistoryPoint,
316
+ PowerHistoryResult: () => PowerHistoryResult,
307
317
  PowerPreventSleepParams: () => PowerPreventSleepParams,
308
318
  PowerPreventSleepResult: () => PowerPreventSleepResult,
309
319
  PowerStatusParams: () => PowerStatusParams,
@@ -393,6 +403,7 @@ __export(src_exports, {
393
403
  Signal: () => Signal,
394
404
  SpendAccount: () => SpendAccount,
395
405
  SpendChat: () => SpendChat,
406
+ SpendDay: () => SpendDay,
396
407
  SpendHelper: () => SpendHelper,
397
408
  SpendIdle: () => SpendIdle,
398
409
  SpendIdleScope: () => SpendIdleScope,
@@ -420,12 +431,17 @@ __export(src_exports, {
420
431
  StreamMsg: () => StreamMsg,
421
432
  SysinfoGetParams: () => SysinfoGetParams,
422
433
  SysinfoGetResult: () => SysinfoGetResult,
434
+ SysinfoHardwareParams: () => SysinfoHardwareParams,
435
+ SysinfoHardwareResult: () => SysinfoHardwareResult,
423
436
  SystemNotifyParams: () => SystemNotifyParams,
424
437
  SystemNotifyResult: () => SystemNotifyResult,
425
438
  SystemOpenPathParams: () => SystemOpenPathParams,
426
439
  SystemOpenPathResult: () => SystemOpenPathResult,
440
+ SystemOpenSettingsParams: () => SystemOpenSettingsParams,
441
+ SystemOpenSettingsResult: () => SystemOpenSettingsResult,
427
442
  SystemOpenUrlParams: () => SystemOpenUrlParams,
428
443
  SystemOpenUrlResult: () => SystemOpenUrlResult,
444
+ SystemSettingsPane: () => SystemSettingsPane,
429
445
  TOOL_CATALOG: () => TOOL_CATALOG,
430
446
  TOOL_GROUPS: () => TOOL_GROUPS,
431
447
  TOOL_LEVELS: () => TOOL_LEVELS,
@@ -500,7 +516,7 @@ module.exports = __toCommonJS(src_exports);
500
516
  var import_zod = require("zod");
501
517
  var import_uuid = require("@ai-matrx/kit/uuid");
502
518
  var PROTOCOL_MAJOR = 1;
503
- var PROTOCOL_MINOR = 23;
519
+ var PROTOCOL_MINOR = 24;
504
520
  var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
505
521
  var ProtocolVersion = import_zod.z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
506
522
  var RequestId = import_zod.z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
@@ -913,6 +929,23 @@ var SysinfoGetResult = import_zod5.z.strictObject({
913
929
  })
914
930
  )
915
931
  });
932
+ var SysinfoHardwareParams = import_zod5.z.strictObject({});
933
+ var SysinfoHardwareResult = import_zod5.z.strictObject({
934
+ /** "Mac Studio", "MacBook Pro", "ThinkPad X1 Carbon". */
935
+ model_name: import_zod5.z.string().max(128).nullable(),
936
+ /** What tells two of that model apart: "M3 Ultra, 2025", "14-inch, Nov 2023". */
937
+ model_detail: import_zod5.z.string().max(128).nullable(),
938
+ /** "Mac15,14", the vendor's model number. */
939
+ model_identifier: import_zod5.z.string().max(128).nullable(),
940
+ /** "Apple M3 Ultra", "Intel Core i7-1185G7". */
941
+ chip: import_zod5.z.string().max(128).nullable(),
942
+ serial_number: import_zod5.z.string().max(128).nullable(),
943
+ /** The OS's own name with its release name: "macOS Tahoe", "Windows 11 Pro", "Ubuntu". */
944
+ os_name: import_zod5.z.string().max(64).nullable(),
945
+ /** "26.6.2". */
946
+ os_version: import_zod5.z.string().max(64).nullable(),
947
+ os_build: import_zod5.z.string().max(64).nullable()
948
+ });
916
949
 
917
950
  // src/schema/fs.ts
918
951
  var import_zod6 = require("zod");
@@ -1841,6 +1874,7 @@ var SpendLive = import_zod14.z.strictObject({ id: ChatId, title: import_zod14.z.
1841
1874
  var SpendIdleScope = import_zod14.z.strictObject({ count: nonNegInt, tokens: nonNegInt, cost: import_zod14.z.number(), avoidable: import_zod14.z.number() });
1842
1875
  var SpendIdle = import_zod14.z.strictObject({ id: ChatId, chat: import_zod14.z.string().max(1e3), who: import_zod14.z.string().max(400), today: SpendIdleScope, week: SpendIdleScope, last_ms: epochMs });
1843
1876
  var SpendStart = import_zod14.z.strictObject({ repo: import_zod14.z.string().max(200), count: nonNegInt, median: nonNegInt, latest: import_zod14.z.array(nonNegInt).max(20), alarm: import_zod14.z.string().max(400).nullable() });
1877
+ var SpendDay = import_zod14.z.strictObject({ date: import_zod14.z.string().regex(/^\d{4}-\d{2}-\d{2}$/), main: import_zod14.z.number(), helpers: import_zod14.z.number() });
1844
1878
  var AppsSpendParams = import_zod14.z.strictObject({ app_key: AppKey });
1845
1879
  var AppsSpendResult = import_zod14.z.strictObject({
1846
1880
  app_key: AppKey,
@@ -1857,6 +1891,8 @@ var AppsSpendResult = import_zod14.z.strictObject({
1857
1891
  live: import_zod14.z.array(SpendLive).max(200),
1858
1892
  accounts: import_zod14.z.array(SpendAccount).max(200),
1859
1893
  models: import_zod14.z.array(SpendModel).max(100),
1894
+ /** (1.24) The last 7 days, oldest first (today last). */
1895
+ days: import_zod14.z.array(SpendDay).max(14).optional(),
1860
1896
  chats: import_zod14.z.array(SpendChat).max(500),
1861
1897
  idle: import_zod14.z.array(SpendIdle).max(500),
1862
1898
  starts: import_zod14.z.array(SpendStart).max(200)
@@ -2175,6 +2211,21 @@ var SystemNotifyResult = import_zod21.z.strictObject({
2175
2211
  /** False when this computer has no notification service to show it (a bare Linux box). */
2176
2212
  shown: import_zod21.z.boolean()
2177
2213
  });
2214
+ var SystemSettingsPane = import_zod21.z.enum([
2215
+ "displays",
2216
+ "night_shift",
2217
+ "sound",
2218
+ "keyboard",
2219
+ "keyboard_shortcuts",
2220
+ "text_input",
2221
+ "dictation",
2222
+ "energy",
2223
+ "about",
2224
+ "storage",
2225
+ "system_report"
2226
+ ]);
2227
+ var SystemOpenSettingsParams = import_zod21.z.strictObject({ pane: SystemSettingsPane });
2228
+ var SystemOpenSettingsResult = import_zod21.z.strictObject({ pane: SystemSettingsPane });
2178
2229
 
2179
2230
  // src/schema/screen.ts
2180
2231
  var import_zod22 = require("zod");
@@ -2189,7 +2240,13 @@ var ScreenDisplay = import_zod22.z.strictObject({
2189
2240
  height: import_zod22.z.int().min(1),
2190
2241
  /** Pixels per point (2 on a Retina display). */
2191
2242
  scale: import_zod22.z.number().min(0.1).max(8),
2192
- primary: import_zod22.z.boolean()
2243
+ primary: import_zod22.z.boolean(),
2244
+ /** (1.24) Clockwise rotation in degrees (Displays' Rotation: 0 is Standard). */
2245
+ rotation: import_zod22.z.int().min(0).max(359).optional(),
2246
+ /** (1.24) Refresh rate in hertz; absent where the OS does not say. */
2247
+ refresh_hz: import_zod22.z.number().min(0).max(1e3).optional(),
2248
+ /** (1.24) The computer's own screen (a laptop's), not one plugged in. */
2249
+ builtin: import_zod22.z.boolean().optional()
2193
2250
  });
2194
2251
  var ScreenListParams = import_zod22.z.strictObject({});
2195
2252
  var ScreenListResult = import_zod22.z.strictObject({ displays: import_zod22.z.array(ScreenDisplay).max(32) });
@@ -2368,9 +2425,43 @@ var InputMouseClickResult = import_zod24.z.strictObject({
2368
2425
  button: import_zod24.z.enum(["left", "right", "middle"]),
2369
2426
  double: import_zod24.z.boolean()
2370
2427
  });
2428
+ var InputKeyboardSettingsParams = import_zod24.z.strictObject({});
2429
+ var InputKeyboardSettingsResult = import_zod24.z.strictObject({
2430
+ /** Key repeat is off (a held key types once). */
2431
+ repeat_off: import_zod24.z.boolean().nullable(),
2432
+ /** Time between repeats while a key is held (Key repeat rate: shorter is faster). */
2433
+ repeat_interval_ms: nonNegInt.nullable(),
2434
+ /** Time a key is held before it starts repeating (Delay until repeat). */
2435
+ repeat_delay_ms: nonNegInt.nullable(),
2436
+ /** What the fn / globe key does alone. */
2437
+ fn_key: import_zod24.z.enum(["nothing", "input_source", "emoji", "dictation"]).nullable(),
2438
+ /** Tab moves focus between every control. */
2439
+ keyboard_navigation: import_zod24.z.boolean().nullable(),
2440
+ /** The enabled input sources by name ("U.S.", "ABC – Extended"). */
2441
+ input_sources: import_zod24.z.array(import_zod24.z.string().max(128)).max(64),
2442
+ /** A key repeat change takes effect only after the person logs out and in again (macOS). */
2443
+ applies_after_login: import_zod24.z.boolean()
2444
+ });
2445
+ var InputSetKeyboardSettingsParams = import_zod24.z.strictObject({
2446
+ repeat_off: import_zod24.z.boolean().optional(),
2447
+ repeat_interval_ms: import_zod24.z.int().min(15).max(2e3).optional(),
2448
+ repeat_delay_ms: import_zod24.z.int().min(150).max(2e3).optional(),
2449
+ keyboard_navigation: import_zod24.z.boolean().optional()
2450
+ });
2371
2451
 
2372
2452
  // src/schema/power.ts
2373
2453
  var import_zod25 = require("zod");
2454
+ var PowerEnergy = import_zod25.z.strictObject({
2455
+ display_sleep_minutes: nonNegInt.nullable(),
2456
+ /** The computer itself sleeps after this long idle; null = never (Prevent automatic sleeping). */
2457
+ sleep_minutes: nonNegInt.nullable(),
2458
+ /** Hard disks sleep after this long; null = never. */
2459
+ disk_sleep_minutes: nonNegInt.nullable(),
2460
+ wake_for_network: import_zod25.z.boolean().nullable(),
2461
+ restart_after_power_failure: import_zod25.z.boolean().nullable(),
2462
+ /** Low Power Mode (Energy Mode "Low Power"). */
2463
+ low_power_mode: import_zod25.z.boolean().nullable()
2464
+ });
2374
2465
  var PowerStatusParams = import_zod25.z.strictObject({});
2375
2466
  var PowerStatusResult = import_zod25.z.strictObject({
2376
2467
  has_battery: import_zod25.z.boolean(),
@@ -2382,7 +2473,15 @@ var PowerStatusResult = import_zod25.z.strictObject({
2382
2473
  /** Minutes of battery left; null when charging, unknown or without a battery. */
2383
2474
  minutes_left: nonNegInt.nullable(),
2384
2475
  /** Matrx 2 is keeping the computer awake (power.prevent_sleep) until this time; null when it is not. */
2385
- awake_until_ms: epochMs.nullable()
2476
+ awake_until_ms: epochMs.nullable(),
2477
+ /** (1.24) The OS's own energy settings; absent where it keeps none Matrx 2 can read. */
2478
+ energy: PowerEnergy.optional()
2479
+ });
2480
+ var PowerHistoryParams = import_zod25.z.strictObject({});
2481
+ var PowerHistoryPoint = import_zod25.z.strictObject({ at_ms: epochMs, percent: import_zod25.z.number().min(0).max(100), plugged_in: import_zod25.z.boolean() });
2482
+ var PowerHistoryResult = import_zod25.z.strictObject({
2483
+ /** Oldest first; empty without a battery or where the OS keeps no log. */
2484
+ points: import_zod25.z.array(PowerHistoryPoint).max(5e3)
2386
2485
  });
2387
2486
  var PowerPreventSleepParams = import_zod25.z.strictObject({
2388
2487
  /** Keep the computer awake this long; 0 lets it sleep again now. */
@@ -2710,7 +2809,10 @@ var AudioDevice = import_zod29.z.strictObject({
2710
2809
  /** The OS's name for it, as audio.record takes it. */
2711
2810
  id: import_zod29.z.string().min(1).max(256),
2712
2811
  name: import_zod29.z.string().max(256),
2713
- default: import_zod29.z.boolean()
2812
+ default: import_zod29.z.boolean(),
2813
+ /** (1.24) How it is connected, as Sound's Type column says it: "Built-in", "USB", "Bluetooth",
2814
+ * "DisplayPort", "HDMI", "AirPlay", "Virtual". Absent where the OS does not say. */
2815
+ kind: import_zod29.z.string().max(64).optional()
2714
2816
  });
2715
2817
  var AudioDevicesParams = import_zod29.z.strictObject({});
2716
2818
  var AudioDevicesResult = import_zod29.z.strictObject({
@@ -2733,6 +2835,20 @@ var AudioRecordResult = import_zod29.z.strictObject({
2733
2835
  });
2734
2836
  var AudioPlayParams = import_zod29.z.strictObject({ path: AbsPath });
2735
2837
  var AudioPlayResult = import_zod29.z.strictObject({ path: AbsPath, seconds: import_zod29.z.number().min(0) });
2838
+ var AudioLevelsParams = import_zod29.z.strictObject({});
2839
+ var AudioLevelsResult = import_zod29.z.strictObject({
2840
+ output_volume: import_zod29.z.number().min(0).max(100).nullable(),
2841
+ output_muted: import_zod29.z.boolean().nullable(),
2842
+ input_volume: import_zod29.z.number().min(0).max(100).nullable(),
2843
+ /** The alert (beep) volume, a share of the output volume. */
2844
+ alert_volume: import_zod29.z.number().min(0).max(100).nullable()
2845
+ });
2846
+ var AudioSetLevelsParams = import_zod29.z.strictObject({
2847
+ output_volume: import_zod29.z.number().min(0).max(100).optional(),
2848
+ output_muted: import_zod29.z.boolean().optional(),
2849
+ input_volume: import_zod29.z.number().min(0).max(100).optional(),
2850
+ alert_volume: import_zod29.z.number().min(0).max(100).optional()
2851
+ });
2736
2852
 
2737
2853
  // src/schema/fs-watch.ts
2738
2854
  var import_zod30 = require("zod");
@@ -2890,6 +3006,7 @@ var CodingHistoryProgressEvent = import_zod32.z.strictObject({
2890
3006
  var FS_ERR = ["NOT_FOUND", "PERMISSION_DENIED_OS", "INVALID_PARAMS", "RESOURCE_BUSY", "INTERNAL"];
2891
3007
  var OPS = {
2892
3008
  "sysinfo.get": { params: SysinfoGetParams, result: SysinfoGetResult, kind: "unary", since: "1.0", errors: ["INTERNAL"] },
3009
+ "sysinfo.hardware": { params: SysinfoHardwareParams, result: SysinfoHardwareResult, kind: "unary", since: "1.24", errors: ["INTERNAL"] },
2893
3010
  "fs.list": { params: FsListParams, result: FsListResult, kind: "unary", since: "1.0", errors: FS_ERR },
2894
3011
  "fs.stat": { params: FsStatParams, result: FsStatResult, kind: "unary", since: "1.0", errors: FS_ERR },
2895
3012
  "fs.read": { params: FsReadParams, result: FsReadResult, kind: "unary", since: "1.0", errors: [...FS_ERR, "PAYLOAD_TOO_LARGE"] },
@@ -2966,6 +3083,7 @@ var OPS = {
2966
3083
  "exec.job.stop": { params: ExecJobStopParams, result: ExecJobStopResult, kind: "unary", since: "1.4", errors: ["RESOURCE_GONE", "INVALID_PARAMS", "INTERNAL"] },
2967
3084
  "exec.job.list": { params: ExecJobListParams, result: ExecJobListResult, kind: "unary", since: "1.4", errors: ["INTERNAL"] },
2968
3085
  "system.open_url": { params: SystemOpenUrlParams, result: SystemOpenUrlResult, kind: "unary", since: "1.4", errors: ["INVALID_PARAMS", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
3086
+ "system.open_settings": { params: SystemOpenSettingsParams, result: SystemOpenSettingsResult, kind: "unary", since: "1.24", errors: ["PLATFORM_UNSUPPORTED", "INTERNAL"] },
2969
3087
  "system.open_path": { params: SystemOpenPathParams, result: SystemOpenPathResult, kind: "unary", since: "1.4", errors: ["NOT_FOUND", "INVALID_PARAMS", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
2970
3088
  "system.notify": { params: SystemNotifyParams, result: SystemNotifyResult, kind: "unary", since: "1.4", errors: ["PERMISSION_DENIED_OS", "INTERNAL"] },
2971
3089
  "screen.list": { params: ScreenListParams, result: ScreenListResult, kind: "unary", since: "1.4", errors: ["PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
@@ -2975,16 +3093,21 @@ var OPS = {
2975
3093
  "window.move": { params: WindowMoveParams, result: WindowMoveResult, kind: "unary", since: "1.4", errors: ["NOT_FOUND", "INVALID_PARAMS", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
2976
3094
  "window.minimize": { params: WindowMinimizeParams, result: WindowMinimizeResult, kind: "unary", since: "1.4", errors: ["NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
2977
3095
  "input.type_text": { params: InputTypeTextParams, result: InputTypeTextResult, kind: "unary", since: "1.4", errors: ["PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
3096
+ "input.keyboard_settings": { params: InputKeyboardSettingsParams, result: InputKeyboardSettingsResult, kind: "unary", since: "1.24", errors: ["PLATFORM_UNSUPPORTED", "INTERNAL"] },
3097
+ "input.set_keyboard_settings": { params: InputSetKeyboardSettingsParams, result: InputKeyboardSettingsResult, kind: "unary", since: "1.24", errors: ["INVALID_PARAMS", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
2978
3098
  "input.hotkey": { params: InputHotkeyParams, result: InputHotkeyResult, kind: "unary", since: "1.4", errors: ["INVALID_PARAMS", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
2979
3099
  "input.mouse_move": { params: InputMouseMoveParams, result: InputMouseMoveResult, kind: "unary", since: "1.4", errors: ["PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
2980
3100
  "input.mouse_click": { params: InputMouseClickParams, result: InputMouseClickResult, kind: "unary", since: "1.4", errors: ["INVALID_PARAMS", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
2981
3101
  "power.status": { params: PowerStatusParams, result: PowerStatusResult, kind: "unary", since: "1.4", errors: ["INTERNAL"] },
3102
+ "power.history": { params: PowerHistoryParams, result: PowerHistoryResult, kind: "unary", since: "1.24", errors: ["INTERNAL"] },
2982
3103
  "power.prevent_sleep": { params: PowerPreventSleepParams, result: PowerPreventSleepResult, kind: "unary", since: "1.4", errors: ["PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
2983
3104
  "resources.snapshot": { params: ResourcesSnapshotParams, result: ResourcesSnapshotResult, kind: "unary", since: "1.4", errors: ["INTERNAL"] },
2984
3105
  "resources.activity": { params: ResourcesActivityParams, result: ResourcesActivityResult, kind: "unary", since: "1.17", errors: ["PLATFORM_UNSUPPORTED", "INTERNAL"] },
2985
3106
  "resources.stop_job": { params: ResourcesStopJobParams, result: ResourcesStopJobResult, kind: "unary", since: "1.17", errors: ["NOT_FOUND", "CONFLICT", "AUTH_FORBIDDEN", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
2986
3107
  "resources.incidents": { params: ResourcesIncidentsParams, result: ResourcesIncidentsResult, kind: "unary", since: "1.17", errors: ["INTERNAL"] },
2987
3108
  "audio.devices": { params: AudioDevicesParams, result: AudioDevicesResult, kind: "unary", since: "1.6", errors: ["PLATFORM_UNSUPPORTED", "INTERNAL"] },
3109
+ "audio.levels": { params: AudioLevelsParams, result: AudioLevelsResult, kind: "unary", since: "1.24", errors: ["PLATFORM_UNSUPPORTED", "INTERNAL"] },
3110
+ "audio.set_levels": { params: AudioSetLevelsParams, result: AudioLevelsResult, kind: "unary", since: "1.24", errors: ["INVALID_PARAMS", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
2988
3111
  "audio.record": { params: AudioRecordParams, result: AudioRecordResult, kind: "unary", since: "1.6", errors: ["NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "RESOURCE_BUSY", "INTERNAL"] },
2989
3112
  "audio.play": { params: AudioPlayParams, result: AudioPlayResult, kind: "unary", since: "1.6", errors: ["NOT_FOUND", "INVALID_PARAMS", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
2990
3113
  // The local AI Matrx servers (aidream's process-compose stack), supervised from Matrx 2's core.
@@ -3094,6 +3217,8 @@ var NAMED_SCHEMAS = {
3094
3217
  OsPermissionName,
3095
3218
  SysinfoGetParams,
3096
3219
  SysinfoGetResult,
3220
+ SysinfoHardwareParams,
3221
+ SysinfoHardwareResult,
3097
3222
  FsKind,
3098
3223
  FsEntry,
3099
3224
  FsListParams,
@@ -3220,6 +3345,9 @@ var NAMED_SCHEMAS = {
3220
3345
  SystemOpenUrlResult,
3221
3346
  SystemOpenPathParams,
3222
3347
  SystemOpenPathResult,
3348
+ SystemSettingsPane,
3349
+ SystemOpenSettingsParams,
3350
+ SystemOpenSettingsResult,
3223
3351
  SystemNotifyParams,
3224
3352
  SystemNotifyResult,
3225
3353
  ScreenDisplay,
@@ -3237,6 +3365,9 @@ var NAMED_SCHEMAS = {
3237
3365
  WindowMinimizeParams,
3238
3366
  WindowMinimizeResult,
3239
3367
  InputKey,
3368
+ InputKeyboardSettingsParams,
3369
+ InputKeyboardSettingsResult,
3370
+ InputSetKeyboardSettingsParams,
3240
3371
  InputPoint,
3241
3372
  InputTypeTextParams,
3242
3373
  InputTypeTextResult,
@@ -3250,6 +3381,10 @@ var NAMED_SCHEMAS = {
3250
3381
  PowerStatusResult,
3251
3382
  PowerPreventSleepParams,
3252
3383
  PowerPreventSleepResult,
3384
+ PowerEnergy,
3385
+ PowerHistoryParams,
3386
+ PowerHistoryPoint,
3387
+ PowerHistoryResult,
3253
3388
  ResourcesDisk,
3254
3389
  ResourcesSnapshotParams,
3255
3390
  ResourcesSnapshotResult,
@@ -3274,6 +3409,9 @@ var NAMED_SCHEMAS = {
3274
3409
  AudioRecordResult,
3275
3410
  AudioPlayParams,
3276
3411
  AudioPlayResult,
3412
+ AudioLevelsParams,
3413
+ AudioLevelsResult,
3414
+ AudioSetLevelsParams,
3277
3415
  StackServerName,
3278
3416
  StackTone,
3279
3417
  StackServer,
@@ -3413,6 +3551,7 @@ var NAMED_SCHEMAS = {
3413
3551
  SpendIdleScope,
3414
3552
  SpendIdle,
3415
3553
  SpendStart,
3554
+ SpendDay,
3416
3555
  AppsSpendParams,
3417
3556
  AppsSpendResult,
3418
3557
  AppsSyncStatusParams,
@@ -3481,7 +3620,11 @@ var FIELDS_SINCE = {
3481
3620
  ChatRow: { app_project: "1.13", tokens: "1.13", original_title: "1.14", title_source: "1.14", title_override: "1.14", archived: "1.15" },
3482
3621
  AccountUsage: { plan: "1.13", credits: "1.13" },
3483
3622
  ResourcesDisk: { name: "1.17" },
3484
- StackServer: { cpu_percent: "1.18", memory_bytes: "1.18" }
3623
+ StackServer: { cpu_percent: "1.18", memory_bytes: "1.18" },
3624
+ AudioDevice: { kind: "1.24" },
3625
+ ScreenDisplay: { rotation: "1.24", refresh_hz: "1.24", builtin: "1.24" },
3626
+ PowerStatusResult: { energy: "1.24" },
3627
+ AppsSpendResult: { days: "1.24" }
3485
3628
  };
3486
3629
  var NULL_SINCE = {
3487
3630
  "RelayDeviceStatusEvent.since_ms": { since: "1.1", olderPeersGet: 0 }
@@ -3611,7 +3754,7 @@ function forPeer(op, part, value, version) {
3611
3754
  var VERSIONED_RESULT_OPS = [.../* @__PURE__ */ new Set([...RESULT_PATH.keys(), ...WINDOW_RESULTS.keys(), ...NESTED_RESULTS.keys()])];
3612
3755
 
3613
3756
  // src/contract.ts
3614
- var CONTRACT_SHA256 = "764fdad5d8851da877e508f4aad2853aaa8fc3b057291488523ef2dd35615208";
3757
+ var CONTRACT_SHA256 = "89943d5297e89b0ae7433b24c3076be1f65ca39a5edc3f338620597b24009226";
3615
3758
 
3616
3759
  // src/close-policy.ts
3617
3760
  var CLOSE_RULES = {
@@ -3665,13 +3808,13 @@ var TOOL_CATALOG = [
3665
3808
  // ── 2. Computer control (TS owners) ──────────────────────────────────────────────────────────
3666
3809
  { name: "desktop_process", group: "os_control", state: "built", path: "device_op", ops: ["proc.list", "proc.ports", "proc.kill"], platforms: ALL, summary: "Running processes and ports; stop one" },
3667
3810
  { name: "desktop_apps", group: "os_control", state: "built", path: "device_op", ops: ["apps.list", "apps.open"], platforms: ALL, summary: "Installed apps; open or bring one forward" },
3668
- { name: "desktop_system", group: "os_control", state: "built", path: "device_op", ops: ["sysinfo.get", "system.open_url", "system.open_path", "system.notify"], platforms: ALL, summary: "System facts, open, notify" },
3811
+ { name: "desktop_system", group: "os_control", state: "built", path: "device_op", ops: ["sysinfo.get", "sysinfo.hardware", "system.open_url", "system.open_path", "system.open_settings", "system.notify"], platforms: ALL, summary: "System facts, open, notify" },
3669
3812
  { name: "desktop_clipboard", group: "os_control", state: "built", path: "device_op", ops: ["clipboard.read", "clipboard.write"], platforms: ALL, summary: "Read and write the clipboard's text" },
3670
3813
  { name: "desktop_screen", group: "os_control", state: "built", path: "device_op", ops: ["screen.list", "screen.capture"], platforms: ALL, summary: "Displays and screenshots" },
3671
3814
  { name: "desktop_window", group: "os_control", state: "built", path: "device_op", ops: ["window.list", "window.focus", "window.move", "window.minimize"], platforms: ALL, summary: "Find, focus and arrange windows" },
3672
- { name: "desktop_input", group: "os_control", state: "built", path: "device_op", ops: ["input.type_text", "input.hotkey", "input.mouse_click", "input.mouse_move"], platforms: ALL, summary: "Keyboard and mouse" },
3673
- { name: "desktop_audio", group: "os_control", state: "built", path: "device_op", ops: ["audio.devices", "audio.record", "audio.play"], platforms: ALL, summary: "Audio devices, record, play" },
3674
- { name: "desktop_power", group: "os_control", state: "built", path: "device_op", ops: ["power.status", "power.prevent_sleep"], platforms: ALL, summary: "Battery and keep awake" },
3815
+ { name: "desktop_input", group: "os_control", state: "built", path: "device_op", ops: ["input.type_text", "input.hotkey", "input.mouse_click", "input.mouse_move", "input.keyboard_settings", "input.set_keyboard_settings"], platforms: ALL, summary: "Keyboard and mouse" },
3816
+ { name: "desktop_audio", group: "os_control", state: "built", path: "device_op", ops: ["audio.devices", "audio.levels", "audio.set_levels", "audio.record", "audio.play"], platforms: ALL, summary: "Audio devices, record, play" },
3817
+ { name: "desktop_power", group: "os_control", state: "built", path: "device_op", ops: ["power.status", "power.history", "power.prevent_sleep"], platforms: ALL, summary: "Battery and keep awake" },
3675
3818
  { name: "desktop_resources", group: "os_control", state: "built", path: "device_op", ops: ["resources.snapshot", "resources.activity", "resources.stop_job", "resources.incidents"], platforms: ALL, summary: "CPU, memory and disk use; what is using them, grouped into jobs; stop a job; the slowdown log" },
3676
3819
  { name: "fs_watch", group: "os_control", state: "built", path: "device_op", ops: ["fs.watch.start", "fs.watch.events", "fs.watch.stop"], platforms: ALL, summary: "Watch a folder; read what changed" },
3677
3820
  // ── 3. Personal apps and automation ──────────────────────────────────────────────────────────