@ai-matrx/desktop-protocol 0.21.16 → 0.21.17

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.
@@ -982,6 +982,115 @@
982
982
  ],
983
983
  "additionalProperties": false
984
984
  },
985
+ "SysinfoHardwareParams": {
986
+ "type": "object",
987
+ "properties": {},
988
+ "additionalProperties": false
989
+ },
990
+ "SysinfoHardwareResult": {
991
+ "type": "object",
992
+ "properties": {
993
+ "model_name": {
994
+ "anyOf": [
995
+ {
996
+ "type": "string",
997
+ "maxLength": 128
998
+ },
999
+ {
1000
+ "type": "null"
1001
+ }
1002
+ ]
1003
+ },
1004
+ "model_detail": {
1005
+ "anyOf": [
1006
+ {
1007
+ "type": "string",
1008
+ "maxLength": 128
1009
+ },
1010
+ {
1011
+ "type": "null"
1012
+ }
1013
+ ]
1014
+ },
1015
+ "model_identifier": {
1016
+ "anyOf": [
1017
+ {
1018
+ "type": "string",
1019
+ "maxLength": 128
1020
+ },
1021
+ {
1022
+ "type": "null"
1023
+ }
1024
+ ]
1025
+ },
1026
+ "chip": {
1027
+ "anyOf": [
1028
+ {
1029
+ "type": "string",
1030
+ "maxLength": 128
1031
+ },
1032
+ {
1033
+ "type": "null"
1034
+ }
1035
+ ]
1036
+ },
1037
+ "serial_number": {
1038
+ "anyOf": [
1039
+ {
1040
+ "type": "string",
1041
+ "maxLength": 128
1042
+ },
1043
+ {
1044
+ "type": "null"
1045
+ }
1046
+ ]
1047
+ },
1048
+ "os_name": {
1049
+ "anyOf": [
1050
+ {
1051
+ "type": "string",
1052
+ "maxLength": 64
1053
+ },
1054
+ {
1055
+ "type": "null"
1056
+ }
1057
+ ]
1058
+ },
1059
+ "os_version": {
1060
+ "anyOf": [
1061
+ {
1062
+ "type": "string",
1063
+ "maxLength": 64
1064
+ },
1065
+ {
1066
+ "type": "null"
1067
+ }
1068
+ ]
1069
+ },
1070
+ "os_build": {
1071
+ "anyOf": [
1072
+ {
1073
+ "type": "string",
1074
+ "maxLength": 64
1075
+ },
1076
+ {
1077
+ "type": "null"
1078
+ }
1079
+ ]
1080
+ }
1081
+ },
1082
+ "required": [
1083
+ "model_name",
1084
+ "model_detail",
1085
+ "model_identifier",
1086
+ "chip",
1087
+ "serial_number",
1088
+ "os_name",
1089
+ "os_version",
1090
+ "os_build"
1091
+ ],
1092
+ "additionalProperties": false
1093
+ },
985
1094
  "FsKind": {
986
1095
  "type": "string",
987
1096
  "enum": [
@@ -4263,6 +4372,46 @@
4263
4372
  ],
4264
4373
  "additionalProperties": false
4265
4374
  },
4375
+ "SystemSettingsPane": {
4376
+ "type": "string",
4377
+ "enum": [
4378
+ "displays",
4379
+ "night_shift",
4380
+ "sound",
4381
+ "keyboard",
4382
+ "keyboard_shortcuts",
4383
+ "text_input",
4384
+ "dictation",
4385
+ "energy",
4386
+ "about",
4387
+ "storage",
4388
+ "system_report"
4389
+ ]
4390
+ },
4391
+ "SystemOpenSettingsParams": {
4392
+ "type": "object",
4393
+ "properties": {
4394
+ "pane": {
4395
+ "$ref": "#/$defs/SystemSettingsPane"
4396
+ }
4397
+ },
4398
+ "required": [
4399
+ "pane"
4400
+ ],
4401
+ "additionalProperties": false
4402
+ },
4403
+ "SystemOpenSettingsResult": {
4404
+ "type": "object",
4405
+ "properties": {
4406
+ "pane": {
4407
+ "$ref": "#/$defs/SystemSettingsPane"
4408
+ }
4409
+ },
4410
+ "required": [
4411
+ "pane"
4412
+ ],
4413
+ "additionalProperties": false
4414
+ },
4266
4415
  "SystemNotifyParams": {
4267
4416
  "type": "object",
4268
4417
  "properties": {
@@ -4333,6 +4482,19 @@
4333
4482
  },
4334
4483
  "primary": {
4335
4484
  "type": "boolean"
4485
+ },
4486
+ "rotation": {
4487
+ "type": "integer",
4488
+ "minimum": 0,
4489
+ "maximum": 359
4490
+ },
4491
+ "refresh_hz": {
4492
+ "type": "number",
4493
+ "minimum": 0,
4494
+ "maximum": 1000
4495
+ },
4496
+ "builtin": {
4497
+ "type": "boolean"
4336
4498
  }
4337
4499
  },
4338
4500
  "required": [
@@ -4722,6 +4884,111 @@
4722
4884
  "grave"
4723
4885
  ]
4724
4886
  },
4887
+ "InputKeyboardSettingsParams": {
4888
+ "type": "object",
4889
+ "properties": {},
4890
+ "additionalProperties": false
4891
+ },
4892
+ "InputKeyboardSettingsResult": {
4893
+ "type": "object",
4894
+ "properties": {
4895
+ "repeat_off": {
4896
+ "type": [
4897
+ "boolean",
4898
+ "null"
4899
+ ]
4900
+ },
4901
+ "repeat_interval_ms": {
4902
+ "anyOf": [
4903
+ {
4904
+ "type": "integer",
4905
+ "minimum": 0,
4906
+ "maximum": 9007199254740991
4907
+ },
4908
+ {
4909
+ "type": "null"
4910
+ }
4911
+ ]
4912
+ },
4913
+ "repeat_delay_ms": {
4914
+ "anyOf": [
4915
+ {
4916
+ "type": "integer",
4917
+ "minimum": 0,
4918
+ "maximum": 9007199254740991
4919
+ },
4920
+ {
4921
+ "type": "null"
4922
+ }
4923
+ ]
4924
+ },
4925
+ "fn_key": {
4926
+ "anyOf": [
4927
+ {
4928
+ "type": "string",
4929
+ "enum": [
4930
+ "nothing",
4931
+ "input_source",
4932
+ "emoji",
4933
+ "dictation"
4934
+ ]
4935
+ },
4936
+ {
4937
+ "type": "null"
4938
+ }
4939
+ ]
4940
+ },
4941
+ "keyboard_navigation": {
4942
+ "type": [
4943
+ "boolean",
4944
+ "null"
4945
+ ]
4946
+ },
4947
+ "input_sources": {
4948
+ "maxItems": 64,
4949
+ "type": "array",
4950
+ "items": {
4951
+ "type": "string",
4952
+ "maxLength": 128
4953
+ }
4954
+ },
4955
+ "applies_after_login": {
4956
+ "type": "boolean"
4957
+ }
4958
+ },
4959
+ "required": [
4960
+ "repeat_off",
4961
+ "repeat_interval_ms",
4962
+ "repeat_delay_ms",
4963
+ "fn_key",
4964
+ "keyboard_navigation",
4965
+ "input_sources",
4966
+ "applies_after_login"
4967
+ ],
4968
+ "additionalProperties": false
4969
+ },
4970
+ "InputSetKeyboardSettingsParams": {
4971
+ "type": "object",
4972
+ "properties": {
4973
+ "repeat_off": {
4974
+ "type": "boolean"
4975
+ },
4976
+ "repeat_interval_ms": {
4977
+ "type": "integer",
4978
+ "minimum": 15,
4979
+ "maximum": 2000
4980
+ },
4981
+ "repeat_delay_ms": {
4982
+ "type": "integer",
4983
+ "minimum": 150,
4984
+ "maximum": 2000
4985
+ },
4986
+ "keyboard_navigation": {
4987
+ "type": "boolean"
4988
+ }
4989
+ },
4990
+ "additionalProperties": false
4991
+ },
4725
4992
  "InputPoint": {
4726
4993
  "type": "object",
4727
4994
  "properties": {
@@ -4946,6 +5213,9 @@
4946
5213
  "type": "null"
4947
5214
  }
4948
5215
  ]
5216
+ },
5217
+ "energy": {
5218
+ "$ref": "#/$defs/PowerEnergy"
4949
5219
  }
4950
5220
  },
4951
5221
  "required": [
@@ -4999,6 +5269,119 @@
4999
5269
  ],
5000
5270
  "additionalProperties": false
5001
5271
  },
5272
+ "PowerEnergy": {
5273
+ "type": "object",
5274
+ "properties": {
5275
+ "display_sleep_minutes": {
5276
+ "anyOf": [
5277
+ {
5278
+ "type": "integer",
5279
+ "minimum": 0,
5280
+ "maximum": 9007199254740991
5281
+ },
5282
+ {
5283
+ "type": "null"
5284
+ }
5285
+ ]
5286
+ },
5287
+ "sleep_minutes": {
5288
+ "anyOf": [
5289
+ {
5290
+ "type": "integer",
5291
+ "minimum": 0,
5292
+ "maximum": 9007199254740991
5293
+ },
5294
+ {
5295
+ "type": "null"
5296
+ }
5297
+ ]
5298
+ },
5299
+ "disk_sleep_minutes": {
5300
+ "anyOf": [
5301
+ {
5302
+ "type": "integer",
5303
+ "minimum": 0,
5304
+ "maximum": 9007199254740991
5305
+ },
5306
+ {
5307
+ "type": "null"
5308
+ }
5309
+ ]
5310
+ },
5311
+ "wake_for_network": {
5312
+ "type": [
5313
+ "boolean",
5314
+ "null"
5315
+ ]
5316
+ },
5317
+ "restart_after_power_failure": {
5318
+ "type": [
5319
+ "boolean",
5320
+ "null"
5321
+ ]
5322
+ },
5323
+ "low_power_mode": {
5324
+ "type": [
5325
+ "boolean",
5326
+ "null"
5327
+ ]
5328
+ }
5329
+ },
5330
+ "required": [
5331
+ "display_sleep_minutes",
5332
+ "sleep_minutes",
5333
+ "disk_sleep_minutes",
5334
+ "wake_for_network",
5335
+ "restart_after_power_failure",
5336
+ "low_power_mode"
5337
+ ],
5338
+ "additionalProperties": false
5339
+ },
5340
+ "PowerHistoryParams": {
5341
+ "type": "object",
5342
+ "properties": {},
5343
+ "additionalProperties": false
5344
+ },
5345
+ "PowerHistoryPoint": {
5346
+ "type": "object",
5347
+ "properties": {
5348
+ "at_ms": {
5349
+ "type": "integer",
5350
+ "minimum": 0,
5351
+ "maximum": 9007199254740991
5352
+ },
5353
+ "percent": {
5354
+ "type": "number",
5355
+ "minimum": 0,
5356
+ "maximum": 100
5357
+ },
5358
+ "plugged_in": {
5359
+ "type": "boolean"
5360
+ }
5361
+ },
5362
+ "required": [
5363
+ "at_ms",
5364
+ "percent",
5365
+ "plugged_in"
5366
+ ],
5367
+ "additionalProperties": false
5368
+ },
5369
+ "PowerHistoryResult": {
5370
+ "type": "object",
5371
+ "properties": {
5372
+ "points": {
5373
+ "maxItems": 5000,
5374
+ "type": "array",
5375
+ "items": {
5376
+ "$ref": "#/$defs/PowerHistoryPoint"
5377
+ }
5378
+ }
5379
+ },
5380
+ "required": [
5381
+ "points"
5382
+ ],
5383
+ "additionalProperties": false
5384
+ },
5002
5385
  "ResourcesDisk": {
5003
5386
  "type": "object",
5004
5387
  "properties": {
@@ -5736,6 +6119,10 @@
5736
6119
  },
5737
6120
  "default": {
5738
6121
  "type": "boolean"
6122
+ },
6123
+ "kind": {
6124
+ "type": "string",
6125
+ "maxLength": 64
5739
6126
  }
5740
6127
  },
5741
6128
  "required": [
@@ -5854,6 +6241,89 @@
5854
6241
  ],
5855
6242
  "additionalProperties": false
5856
6243
  },
6244
+ "AudioLevelsParams": {
6245
+ "type": "object",
6246
+ "properties": {},
6247
+ "additionalProperties": false
6248
+ },
6249
+ "AudioLevelsResult": {
6250
+ "type": "object",
6251
+ "properties": {
6252
+ "output_volume": {
6253
+ "anyOf": [
6254
+ {
6255
+ "type": "number",
6256
+ "minimum": 0,
6257
+ "maximum": 100
6258
+ },
6259
+ {
6260
+ "type": "null"
6261
+ }
6262
+ ]
6263
+ },
6264
+ "output_muted": {
6265
+ "type": [
6266
+ "boolean",
6267
+ "null"
6268
+ ]
6269
+ },
6270
+ "input_volume": {
6271
+ "anyOf": [
6272
+ {
6273
+ "type": "number",
6274
+ "minimum": 0,
6275
+ "maximum": 100
6276
+ },
6277
+ {
6278
+ "type": "null"
6279
+ }
6280
+ ]
6281
+ },
6282
+ "alert_volume": {
6283
+ "anyOf": [
6284
+ {
6285
+ "type": "number",
6286
+ "minimum": 0,
6287
+ "maximum": 100
6288
+ },
6289
+ {
6290
+ "type": "null"
6291
+ }
6292
+ ]
6293
+ }
6294
+ },
6295
+ "required": [
6296
+ "output_volume",
6297
+ "output_muted",
6298
+ "input_volume",
6299
+ "alert_volume"
6300
+ ],
6301
+ "additionalProperties": false
6302
+ },
6303
+ "AudioSetLevelsParams": {
6304
+ "type": "object",
6305
+ "properties": {
6306
+ "output_volume": {
6307
+ "type": "number",
6308
+ "minimum": 0,
6309
+ "maximum": 100
6310
+ },
6311
+ "output_muted": {
6312
+ "type": "boolean"
6313
+ },
6314
+ "input_volume": {
6315
+ "type": "number",
6316
+ "minimum": 0,
6317
+ "maximum": 100
6318
+ },
6319
+ "alert_volume": {
6320
+ "type": "number",
6321
+ "minimum": 0,
6322
+ "maximum": 100
6323
+ }
6324
+ },
6325
+ "additionalProperties": false
6326
+ },
5857
6327
  "StackServerName": {
5858
6328
  "type": "string",
5859
6329
  "pattern": "^[a-z0-9_-]{1,64}$"
@@ -9743,6 +10213,27 @@
9743
10213
  ],
9744
10214
  "additionalProperties": false
9745
10215
  },
10216
+ "SpendDay": {
10217
+ "type": "object",
10218
+ "properties": {
10219
+ "date": {
10220
+ "type": "string",
10221
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
10222
+ },
10223
+ "main": {
10224
+ "type": "number"
10225
+ },
10226
+ "helpers": {
10227
+ "type": "number"
10228
+ }
10229
+ },
10230
+ "required": [
10231
+ "date",
10232
+ "main",
10233
+ "helpers"
10234
+ ],
10235
+ "additionalProperties": false
10236
+ },
9746
10237
  "AppsSpendParams": {
9747
10238
  "type": "object",
9748
10239
  "properties": {
@@ -9813,6 +10304,13 @@
9813
10304
  "$ref": "#/$defs/SpendModel"
9814
10305
  }
9815
10306
  },
10307
+ "days": {
10308
+ "maxItems": 14,
10309
+ "type": "array",
10310
+ "items": {
10311
+ "$ref": "#/$defs/SpendDay"
10312
+ }
10313
+ },
9816
10314
  "chats": {
9817
10315
  "maxItems": 500,
9818
10316
  "type": "array",
@@ -11258,6 +11756,15 @@
11258
11756
  "INTERNAL"
11259
11757
  ]
11260
11758
  },
11759
+ "sysinfo.hardware": {
11760
+ "params": "SysinfoHardwareParams",
11761
+ "result": "SysinfoHardwareResult",
11762
+ "kind": "unary",
11763
+ "since": "1.24",
11764
+ "errors": [
11765
+ "INTERNAL"
11766
+ ]
11767
+ },
11261
11768
  "fs.list": {
11262
11769
  "params": "FsListParams",
11263
11770
  "result": "FsListResult",
@@ -12119,6 +12626,16 @@
12119
12626
  "INTERNAL"
12120
12627
  ]
12121
12628
  },
12629
+ "system.open_settings": {
12630
+ "params": "SystemOpenSettingsParams",
12631
+ "result": "SystemOpenSettingsResult",
12632
+ "kind": "unary",
12633
+ "since": "1.24",
12634
+ "errors": [
12635
+ "PLATFORM_UNSUPPORTED",
12636
+ "INTERNAL"
12637
+ ]
12638
+ },
12122
12639
  "system.open_path": {
12123
12640
  "params": "SystemOpenPathParams",
12124
12641
  "result": "SystemOpenPathResult",
@@ -12224,6 +12741,27 @@
12224
12741
  "INTERNAL"
12225
12742
  ]
12226
12743
  },
12744
+ "input.keyboard_settings": {
12745
+ "params": "InputKeyboardSettingsParams",
12746
+ "result": "InputKeyboardSettingsResult",
12747
+ "kind": "unary",
12748
+ "since": "1.24",
12749
+ "errors": [
12750
+ "PLATFORM_UNSUPPORTED",
12751
+ "INTERNAL"
12752
+ ]
12753
+ },
12754
+ "input.set_keyboard_settings": {
12755
+ "params": "InputSetKeyboardSettingsParams",
12756
+ "result": "InputKeyboardSettingsResult",
12757
+ "kind": "unary",
12758
+ "since": "1.24",
12759
+ "errors": [
12760
+ "INVALID_PARAMS",
12761
+ "PLATFORM_UNSUPPORTED",
12762
+ "INTERNAL"
12763
+ ]
12764
+ },
12227
12765
  "input.hotkey": {
12228
12766
  "params": "InputHotkeyParams",
12229
12767
  "result": "InputHotkeyResult",
@@ -12268,6 +12806,15 @@
12268
12806
  "INTERNAL"
12269
12807
  ]
12270
12808
  },
12809
+ "power.history": {
12810
+ "params": "PowerHistoryParams",
12811
+ "result": "PowerHistoryResult",
12812
+ "kind": "unary",
12813
+ "since": "1.24",
12814
+ "errors": [
12815
+ "INTERNAL"
12816
+ ]
12817
+ },
12271
12818
  "power.prevent_sleep": {
12272
12819
  "params": "PowerPreventSleepParams",
12273
12820
  "result": "PowerPreventSleepResult",
@@ -12330,6 +12877,27 @@
12330
12877
  "INTERNAL"
12331
12878
  ]
12332
12879
  },
12880
+ "audio.levels": {
12881
+ "params": "AudioLevelsParams",
12882
+ "result": "AudioLevelsResult",
12883
+ "kind": "unary",
12884
+ "since": "1.24",
12885
+ "errors": [
12886
+ "PLATFORM_UNSUPPORTED",
12887
+ "INTERNAL"
12888
+ ]
12889
+ },
12890
+ "audio.set_levels": {
12891
+ "params": "AudioSetLevelsParams",
12892
+ "result": "AudioLevelsResult",
12893
+ "kind": "unary",
12894
+ "since": "1.24",
12895
+ "errors": [
12896
+ "INVALID_PARAMS",
12897
+ "PLATFORM_UNSUPPORTED",
12898
+ "INTERNAL"
12899
+ ]
12900
+ },
12333
12901
  "audio.record": {
12334
12902
  "params": "AudioRecordParams",
12335
12903
  "result": "AudioRecordResult",
@@ -12797,6 +13365,20 @@
12797
13365
  "StackServer": {
12798
13366
  "cpu_percent": "1.18",
12799
13367
  "memory_bytes": "1.18"
13368
+ },
13369
+ "AudioDevice": {
13370
+ "kind": "1.24"
13371
+ },
13372
+ "ScreenDisplay": {
13373
+ "rotation": "1.24",
13374
+ "refresh_hz": "1.24",
13375
+ "builtin": "1.24"
13376
+ },
13377
+ "PowerStatusResult": {
13378
+ "energy": "1.24"
13379
+ },
13380
+ "AppsSpendResult": {
13381
+ "days": "1.24"
12800
13382
  }
12801
13383
  },
12802
13384
  "x-null-since": {
@@ -12805,5 +13387,5 @@
12805
13387
  "olderPeersGet": 0
12806
13388
  }
12807
13389
  },
12808
- "x-protocol-version": "1.23"
13390
+ "x-protocol-version": "1.24"
12809
13391
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-matrx/desktop-protocol",
3
- "version": "0.21.16",
3
+ "version": "0.21.17",
4
4
  "description": "The one wire contract between Matrx 2 (the desktop app) and every client that drives it — phone, web app, extension, server: zod schemas for the envelope and every cap.op, the 16-byte binary frame codec, a reconnecting request/stream/credit/reattach client, React hooks, and a generated JSON Schema + Pydantic twin that CI keeps byte-identical.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -79,8 +79,8 @@
79
79
  },
80
80
  "dependencies": {
81
81
  "zod": "^4.6.5",
82
- "@ai-matrx/realtime": "latest",
83
- "@ai-matrx/kit": "latest"
82
+ "@ai-matrx/kit": "latest",
83
+ "@ai-matrx/realtime": "latest"
84
84
  },
85
85
  "devDependencies": {
86
86
  "@arethetypeswrong/cli": "^0.18.5",
@@ -137,5 +137,5 @@
137
137
  "test:watch": "vitest",
138
138
  "verify:tarball": "node ./scripts/verify-tarball.mjs"
139
139
  },
140
- "gitHead": "8a5ed609fd00c178b05b74512e3fdda97de498b1"
140
+ "gitHead": "18fdbaf713c5f2525433f92c52d183c6b27bd8b4"
141
141
  }