@ai-matrx/desktop-protocol 0.21.91 → 0.21.93

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.
@@ -3,6 +3,139 @@
3
3
  "$id": "https://aimatrx.com/schemas/desktop-protocol/1.0",
4
4
  "title": "DesktopProtocol",
5
5
  "$defs": {
6
+ "AgentServiceStateName": {
7
+ "type": "string",
8
+ "enum": [
9
+ "not_installed",
10
+ "installing",
11
+ "installed",
12
+ "listening",
13
+ "failed"
14
+ ]
15
+ },
16
+ "AgentStatusParams": {
17
+ "type": "object",
18
+ "properties": {},
19
+ "additionalProperties": false
20
+ },
21
+ "AgentInstallParams": {
22
+ "type": "object",
23
+ "properties": {},
24
+ "additionalProperties": false
25
+ },
26
+ "AgentStartParams": {
27
+ "type": "object",
28
+ "properties": {
29
+ "model": {
30
+ "type": "string",
31
+ "minLength": 1,
32
+ "maxLength": 256
33
+ },
34
+ "listener_port": {
35
+ "type": "integer",
36
+ "minimum": 1,
37
+ "maximum": 65535
38
+ },
39
+ "key": {
40
+ "type": "string",
41
+ "minLength": 16,
42
+ "maxLength": 256
43
+ },
44
+ "allow_origins": {
45
+ "maxItems": 16,
46
+ "type": "array",
47
+ "items": {
48
+ "type": "string",
49
+ "minLength": 1,
50
+ "maxLength": 512
51
+ }
52
+ }
53
+ },
54
+ "required": [
55
+ "model",
56
+ "listener_port",
57
+ "key",
58
+ "allow_origins"
59
+ ],
60
+ "additionalProperties": false
61
+ },
62
+ "AgentServiceState": {
63
+ "type": "object",
64
+ "properties": {
65
+ "state": {
66
+ "$ref": "#/$defs/AgentServiceStateName"
67
+ },
68
+ "error": {
69
+ "anyOf": [
70
+ {
71
+ "type": "string",
72
+ "maxLength": 2000
73
+ },
74
+ {
75
+ "type": "null"
76
+ }
77
+ ]
78
+ },
79
+ "port": {
80
+ "anyOf": [
81
+ {
82
+ "type": "integer",
83
+ "minimum": 1,
84
+ "maximum": 65535
85
+ },
86
+ {
87
+ "type": "null"
88
+ }
89
+ ]
90
+ },
91
+ "model": {
92
+ "anyOf": [
93
+ {
94
+ "type": "string",
95
+ "maxLength": 256
96
+ },
97
+ {
98
+ "type": "null"
99
+ }
100
+ ]
101
+ }
102
+ },
103
+ "required": [
104
+ "state",
105
+ "error",
106
+ "port",
107
+ "model"
108
+ ],
109
+ "additionalProperties": false
110
+ },
111
+ "AgentServiceProgress": {
112
+ "type": "object",
113
+ "properties": {
114
+ "phase": {
115
+ "type": "string",
116
+ "enum": [
117
+ "installing",
118
+ "compiling"
119
+ ]
120
+ },
121
+ "done": {
122
+ "type": "integer",
123
+ "minimum": 0,
124
+ "maximum": 9007199254740991
125
+ },
126
+ "total": {
127
+ "type": "integer",
128
+ "minimum": 0,
129
+ "maximum": 9007199254740991
130
+ }
131
+ },
132
+ "required": [
133
+ "phase",
134
+ "done",
135
+ "total"
136
+ ],
137
+ "additionalProperties": false
138
+ },
6
139
  "AgentAssetTool": {
7
140
  "type": "string",
8
141
  "enum": [
@@ -4089,40 +4222,401 @@
4089
4222
  "entry": {
4090
4223
  "$ref": "#/$defs/FsEntry"
4091
4224
  },
4092
- "created": {
4093
- "anyOf": [
4094
- {
4095
- "type": "number",
4096
- "minimum": 0
4097
- },
4098
- {
4099
- "type": "null"
4100
- }
4225
+ "created": {
4226
+ "anyOf": [
4227
+ {
4228
+ "type": "number",
4229
+ "minimum": 0
4230
+ },
4231
+ {
4232
+ "type": "null"
4233
+ }
4234
+ ]
4235
+ },
4236
+ "owner": {
4237
+ "anyOf": [
4238
+ {
4239
+ "type": "string",
4240
+ "maxLength": 256
4241
+ },
4242
+ {
4243
+ "type": "null"
4244
+ }
4245
+ ]
4246
+ },
4247
+ "group": {
4248
+ "anyOf": [
4249
+ {
4250
+ "type": "string",
4251
+ "maxLength": 256
4252
+ },
4253
+ {
4254
+ "type": "null"
4255
+ }
4256
+ ]
4257
+ },
4258
+ "total_size": {
4259
+ "anyOf": [
4260
+ {
4261
+ "type": "integer",
4262
+ "minimum": 0,
4263
+ "maximum": 9007199254740991
4264
+ },
4265
+ {
4266
+ "type": "null"
4267
+ }
4268
+ ]
4269
+ },
4270
+ "size_on_disk": {
4271
+ "anyOf": [
4272
+ {
4273
+ "type": "integer",
4274
+ "minimum": 0,
4275
+ "maximum": 9007199254740991
4276
+ },
4277
+ {
4278
+ "type": "null"
4279
+ }
4280
+ ]
4281
+ },
4282
+ "items": {
4283
+ "anyOf": [
4284
+ {
4285
+ "type": "integer",
4286
+ "minimum": 0,
4287
+ "maximum": 9007199254740991
4288
+ },
4289
+ {
4290
+ "type": "null"
4291
+ }
4292
+ ]
4293
+ },
4294
+ "hidden": {
4295
+ "type": "boolean"
4296
+ },
4297
+ "locked": {
4298
+ "type": [
4299
+ "boolean",
4300
+ "null"
4301
+ ]
4302
+ },
4303
+ "read_only": {
4304
+ "type": "boolean"
4305
+ }
4306
+ },
4307
+ "required": [
4308
+ "entry",
4309
+ "created",
4310
+ "owner",
4311
+ "group",
4312
+ "total_size",
4313
+ "size_on_disk",
4314
+ "items",
4315
+ "hidden",
4316
+ "locked",
4317
+ "read_only"
4318
+ ],
4319
+ "additionalProperties": false
4320
+ },
4321
+ "FsSearchIndexParams": {
4322
+ "type": "object",
4323
+ "properties": {
4324
+ "query": {
4325
+ "type": "string",
4326
+ "minLength": 1,
4327
+ "maxLength": 256
4328
+ },
4329
+ "scope": {
4330
+ "$ref": "#/$defs/AbsPath"
4331
+ },
4332
+ "max_results": {
4333
+ "default": 200,
4334
+ "type": "integer",
4335
+ "minimum": 1,
4336
+ "maximum": 1000
4337
+ }
4338
+ },
4339
+ "required": [
4340
+ "query"
4341
+ ],
4342
+ "additionalProperties": false
4343
+ },
4344
+ "FsSearchIndexResult": {
4345
+ "type": "object",
4346
+ "properties": {
4347
+ "entries": {
4348
+ "maxItems": 1000,
4349
+ "type": "array",
4350
+ "items": {
4351
+ "$ref": "#/$defs/FsEntry"
4352
+ }
4353
+ },
4354
+ "truncated": {
4355
+ "type": "boolean"
4356
+ },
4357
+ "source": {
4358
+ "type": "string",
4359
+ "enum": [
4360
+ "index",
4361
+ "walk"
4362
+ ]
4363
+ }
4364
+ },
4365
+ "required": [
4366
+ "entries",
4367
+ "truncated",
4368
+ "source"
4369
+ ],
4370
+ "additionalProperties": false
4371
+ },
4372
+ "FsSemanticStatusParams": {
4373
+ "type": "object",
4374
+ "properties": {},
4375
+ "additionalProperties": false
4376
+ },
4377
+ "FsSemanticStatusResult": {
4378
+ "type": "object",
4379
+ "properties": {
4380
+ "state": {
4381
+ "$ref": "#/$defs/SemanticIndexState"
4382
+ },
4383
+ "indexed": {
4384
+ "type": "integer",
4385
+ "minimum": 0,
4386
+ "maximum": 9007199254740991
4387
+ },
4388
+ "total": {
4389
+ "type": "integer",
4390
+ "minimum": 0,
4391
+ "maximum": 9007199254740991
4392
+ },
4393
+ "queued": {
4394
+ "type": "integer",
4395
+ "minimum": 0,
4396
+ "maximum": 9007199254740991
4397
+ },
4398
+ "over_cap": {
4399
+ "type": "integer",
4400
+ "minimum": 0,
4401
+ "maximum": 9007199254740991
4402
+ },
4403
+ "max_files": {
4404
+ "type": "integer",
4405
+ "minimum": 0,
4406
+ "maximum": 9007199254740991
4407
+ },
4408
+ "folders": {
4409
+ "maxItems": 50,
4410
+ "type": "array",
4411
+ "items": {
4412
+ "$ref": "#/$defs/AbsPath"
4413
+ }
4414
+ },
4415
+ "folders_source": {
4416
+ "type": "string",
4417
+ "enum": [
4418
+ "default",
4419
+ "chosen"
4420
+ ]
4421
+ },
4422
+ "model": {
4423
+ "anyOf": [
4424
+ {
4425
+ "type": "string",
4426
+ "maxLength": 200
4427
+ },
4428
+ {
4429
+ "type": "null"
4430
+ }
4431
+ ]
4432
+ },
4433
+ "load_per_cpu": {
4434
+ "type": "number",
4435
+ "minimum": 0
4436
+ },
4437
+ "load_limit": {
4438
+ "type": "number",
4439
+ "minimum": 0
4440
+ },
4441
+ "reason": {
4442
+ "anyOf": [
4443
+ {
4444
+ "type": "string",
4445
+ "maxLength": 300
4446
+ },
4447
+ {
4448
+ "type": "null"
4449
+ }
4450
+ ]
4451
+ },
4452
+ "updated_at_ms": {
4453
+ "anyOf": [
4454
+ {
4455
+ "type": "integer",
4456
+ "minimum": 0,
4457
+ "maximum": 9007199254740991
4458
+ },
4459
+ {
4460
+ "type": "null"
4461
+ }
4462
+ ]
4463
+ }
4464
+ },
4465
+ "required": [
4466
+ "state",
4467
+ "indexed",
4468
+ "total",
4469
+ "queued",
4470
+ "over_cap",
4471
+ "max_files",
4472
+ "folders",
4473
+ "folders_source",
4474
+ "model",
4475
+ "load_per_cpu",
4476
+ "load_limit",
4477
+ "reason",
4478
+ "updated_at_ms"
4479
+ ],
4480
+ "additionalProperties": false
4481
+ },
4482
+ "FsSearchSemanticParams": {
4483
+ "type": "object",
4484
+ "properties": {
4485
+ "query": {
4486
+ "type": "string",
4487
+ "minLength": 1,
4488
+ "maxLength": 2000
4489
+ },
4490
+ "scope": {
4491
+ "$ref": "#/$defs/AbsPath"
4492
+ },
4493
+ "max_results": {
4494
+ "default": 10,
4495
+ "type": "integer",
4496
+ "minimum": 1,
4497
+ "maximum": 100
4498
+ }
4499
+ },
4500
+ "required": [
4501
+ "query"
4502
+ ],
4503
+ "additionalProperties": false
4504
+ },
4505
+ "FsSearchSemanticResult": {
4506
+ "type": "object",
4507
+ "properties": {
4508
+ "hits": {
4509
+ "maxItems": 100,
4510
+ "type": "array",
4511
+ "items": {
4512
+ "$ref": "#/$defs/FsSemanticHit"
4513
+ }
4514
+ },
4515
+ "status": {
4516
+ "$ref": "#/$defs/SemanticIndexStatus"
4517
+ }
4518
+ },
4519
+ "required": [
4520
+ "hits",
4521
+ "status"
4522
+ ],
4523
+ "additionalProperties": false
4524
+ },
4525
+ "FsSemanticConfigureParams": {
4526
+ "type": "object",
4527
+ "properties": {
4528
+ "folders": {
4529
+ "maxItems": 50,
4530
+ "type": "array",
4531
+ "items": {
4532
+ "$ref": "#/$defs/AbsPath"
4533
+ }
4534
+ },
4535
+ "use_default_folders": {
4536
+ "type": "boolean"
4537
+ },
4538
+ "paused": {
4539
+ "type": "boolean"
4540
+ }
4541
+ },
4542
+ "additionalProperties": false
4543
+ },
4544
+ "FsSemanticConfigureResult": {
4545
+ "type": "object",
4546
+ "properties": {
4547
+ "state": {
4548
+ "$ref": "#/$defs/SemanticIndexState"
4549
+ },
4550
+ "indexed": {
4551
+ "type": "integer",
4552
+ "minimum": 0,
4553
+ "maximum": 9007199254740991
4554
+ },
4555
+ "total": {
4556
+ "type": "integer",
4557
+ "minimum": 0,
4558
+ "maximum": 9007199254740991
4559
+ },
4560
+ "queued": {
4561
+ "type": "integer",
4562
+ "minimum": 0,
4563
+ "maximum": 9007199254740991
4564
+ },
4565
+ "over_cap": {
4566
+ "type": "integer",
4567
+ "minimum": 0,
4568
+ "maximum": 9007199254740991
4569
+ },
4570
+ "max_files": {
4571
+ "type": "integer",
4572
+ "minimum": 0,
4573
+ "maximum": 9007199254740991
4574
+ },
4575
+ "folders": {
4576
+ "maxItems": 50,
4577
+ "type": "array",
4578
+ "items": {
4579
+ "$ref": "#/$defs/AbsPath"
4580
+ }
4581
+ },
4582
+ "folders_source": {
4583
+ "type": "string",
4584
+ "enum": [
4585
+ "default",
4586
+ "chosen"
4101
4587
  ]
4102
4588
  },
4103
- "owner": {
4589
+ "model": {
4104
4590
  "anyOf": [
4105
4591
  {
4106
4592
  "type": "string",
4107
- "maxLength": 256
4593
+ "maxLength": 200
4108
4594
  },
4109
4595
  {
4110
4596
  "type": "null"
4111
4597
  }
4112
4598
  ]
4113
4599
  },
4114
- "group": {
4600
+ "load_per_cpu": {
4601
+ "type": "number",
4602
+ "minimum": 0
4603
+ },
4604
+ "load_limit": {
4605
+ "type": "number",
4606
+ "minimum": 0
4607
+ },
4608
+ "reason": {
4115
4609
  "anyOf": [
4116
4610
  {
4117
4611
  "type": "string",
4118
- "maxLength": 256
4612
+ "maxLength": 300
4119
4613
  },
4120
4614
  {
4121
4615
  "type": "null"
4122
4616
  }
4123
4617
  ]
4124
4618
  },
4125
- "total_size": {
4619
+ "updated_at_ms": {
4126
4620
  "anyOf": [
4127
4621
  {
4128
4622
  "type": "integer",
@@ -4133,20 +4627,41 @@
4133
4627
  "type": "null"
4134
4628
  }
4135
4629
  ]
4630
+ }
4631
+ },
4632
+ "required": [
4633
+ "state",
4634
+ "indexed",
4635
+ "total",
4636
+ "queued",
4637
+ "over_cap",
4638
+ "max_files",
4639
+ "folders",
4640
+ "folders_source",
4641
+ "model",
4642
+ "load_per_cpu",
4643
+ "load_limit",
4644
+ "reason",
4645
+ "updated_at_ms"
4646
+ ],
4647
+ "additionalProperties": false
4648
+ },
4649
+ "FsSemanticHit": {
4650
+ "type": "object",
4651
+ "properties": {
4652
+ "path": {
4653
+ "$ref": "#/$defs/AbsPath"
4136
4654
  },
4137
- "size_on_disk": {
4138
- "anyOf": [
4139
- {
4140
- "type": "integer",
4141
- "minimum": 0,
4142
- "maximum": 9007199254740991
4143
- },
4144
- {
4145
- "type": "null"
4146
- }
4147
- ]
4655
+ "score": {
4656
+ "type": "number",
4657
+ "minimum": -1,
4658
+ "maximum": 1
4148
4659
  },
4149
- "items": {
4660
+ "snippet": {
4661
+ "type": "string",
4662
+ "maxLength": 400
4663
+ },
4664
+ "modified_at_ms": {
4150
4665
  "anyOf": [
4151
4666
  {
4152
4667
  "type": "integer",
@@ -4157,85 +4672,133 @@
4157
4672
  "type": "null"
4158
4673
  }
4159
4674
  ]
4160
- },
4161
- "hidden": {
4162
- "type": "boolean"
4163
- },
4164
- "locked": {
4165
- "type": [
4166
- "boolean",
4167
- "null"
4168
- ]
4169
- },
4170
- "read_only": {
4171
- "type": "boolean"
4172
4675
  }
4173
4676
  },
4174
4677
  "required": [
4175
- "entry",
4176
- "created",
4177
- "owner",
4178
- "group",
4179
- "total_size",
4180
- "size_on_disk",
4181
- "items",
4182
- "hidden",
4183
- "locked",
4184
- "read_only"
4678
+ "path",
4679
+ "score",
4680
+ "snippet",
4681
+ "modified_at_ms"
4185
4682
  ],
4186
4683
  "additionalProperties": false
4187
4684
  },
4188
- "FsSearchIndexParams": {
4685
+ "SemanticIndexStatus": {
4189
4686
  "type": "object",
4190
4687
  "properties": {
4191
- "query": {
4192
- "type": "string",
4193
- "minLength": 1,
4194
- "maxLength": 256
4688
+ "state": {
4689
+ "$ref": "#/$defs/SemanticIndexState"
4195
4690
  },
4196
- "scope": {
4197
- "$ref": "#/$defs/AbsPath"
4691
+ "indexed": {
4692
+ "type": "integer",
4693
+ "minimum": 0,
4694
+ "maximum": 9007199254740991
4198
4695
  },
4199
- "max_results": {
4200
- "default": 200,
4696
+ "total": {
4201
4697
  "type": "integer",
4202
- "minimum": 1,
4203
- "maximum": 1000
4204
- }
4205
- },
4206
- "required": [
4207
- "query"
4208
- ],
4209
- "additionalProperties": false
4210
- },
4211
- "FsSearchIndexResult": {
4212
- "type": "object",
4213
- "properties": {
4214
- "entries": {
4215
- "maxItems": 1000,
4698
+ "minimum": 0,
4699
+ "maximum": 9007199254740991
4700
+ },
4701
+ "queued": {
4702
+ "type": "integer",
4703
+ "minimum": 0,
4704
+ "maximum": 9007199254740991
4705
+ },
4706
+ "over_cap": {
4707
+ "type": "integer",
4708
+ "minimum": 0,
4709
+ "maximum": 9007199254740991
4710
+ },
4711
+ "max_files": {
4712
+ "type": "integer",
4713
+ "minimum": 0,
4714
+ "maximum": 9007199254740991
4715
+ },
4716
+ "folders": {
4717
+ "maxItems": 50,
4216
4718
  "type": "array",
4217
4719
  "items": {
4218
- "$ref": "#/$defs/FsEntry"
4720
+ "$ref": "#/$defs/AbsPath"
4219
4721
  }
4220
4722
  },
4221
- "truncated": {
4222
- "type": "boolean"
4223
- },
4224
- "source": {
4723
+ "folders_source": {
4225
4724
  "type": "string",
4226
4725
  "enum": [
4227
- "index",
4228
- "walk"
4726
+ "default",
4727
+ "chosen"
4728
+ ]
4729
+ },
4730
+ "model": {
4731
+ "anyOf": [
4732
+ {
4733
+ "type": "string",
4734
+ "maxLength": 200
4735
+ },
4736
+ {
4737
+ "type": "null"
4738
+ }
4739
+ ]
4740
+ },
4741
+ "load_per_cpu": {
4742
+ "type": "number",
4743
+ "minimum": 0
4744
+ },
4745
+ "load_limit": {
4746
+ "type": "number",
4747
+ "minimum": 0
4748
+ },
4749
+ "reason": {
4750
+ "anyOf": [
4751
+ {
4752
+ "type": "string",
4753
+ "maxLength": 300
4754
+ },
4755
+ {
4756
+ "type": "null"
4757
+ }
4758
+ ]
4759
+ },
4760
+ "updated_at_ms": {
4761
+ "anyOf": [
4762
+ {
4763
+ "type": "integer",
4764
+ "minimum": 0,
4765
+ "maximum": 9007199254740991
4766
+ },
4767
+ {
4768
+ "type": "null"
4769
+ }
4229
4770
  ]
4230
4771
  }
4231
4772
  },
4232
4773
  "required": [
4233
- "entries",
4234
- "truncated",
4235
- "source"
4774
+ "state",
4775
+ "indexed",
4776
+ "total",
4777
+ "queued",
4778
+ "over_cap",
4779
+ "max_files",
4780
+ "folders",
4781
+ "folders_source",
4782
+ "model",
4783
+ "load_per_cpu",
4784
+ "load_limit",
4785
+ "reason",
4786
+ "updated_at_ms"
4236
4787
  ],
4237
4788
  "additionalProperties": false
4238
4789
  },
4790
+ "SemanticIndexState": {
4791
+ "type": "string",
4792
+ "enum": [
4793
+ "model_missing",
4794
+ "indexing",
4795
+ "paused_load",
4796
+ "paused",
4797
+ "idle",
4798
+ "off",
4799
+ "failed"
4800
+ ]
4801
+ },
4239
4802
  "FsDeleteParams": {
4240
4803
  "type": "object",
4241
4804
  "properties": {
@@ -10520,7 +11083,8 @@
10520
11083
  "enum": [
10521
11084
  "ml",
10522
11085
  "coding",
10523
- "tools"
11086
+ "tools",
11087
+ "agent"
10524
11088
  ]
10525
11089
  },
10526
11090
  "ContractHash": {
@@ -27377,6 +27941,42 @@
27377
27941
  "TIMEOUT"
27378
27942
  ]
27379
27943
  },
27944
+ "fs.search_semantic": {
27945
+ "params": "FsSearchSemanticParams",
27946
+ "result": "FsSearchSemanticResult",
27947
+ "kind": "unary",
27948
+ "since": "1.87",
27949
+ "errors": [
27950
+ "NOT_FOUND",
27951
+ "PERMISSION_DENIED_OS",
27952
+ "INVALID_PARAMS",
27953
+ "RESOURCE_BUSY",
27954
+ "INTERNAL",
27955
+ "TIMEOUT"
27956
+ ]
27957
+ },
27958
+ "fs.semantic_status": {
27959
+ "params": "FsSemanticStatusParams",
27960
+ "result": "SemanticIndexStatus",
27961
+ "kind": "unary",
27962
+ "since": "1.87",
27963
+ "errors": [
27964
+ "INTERNAL"
27965
+ ]
27966
+ },
27967
+ "fs.semantic_configure": {
27968
+ "params": "FsSemanticConfigureParams",
27969
+ "result": "SemanticIndexStatus",
27970
+ "kind": "unary",
27971
+ "since": "1.87",
27972
+ "errors": [
27973
+ "NOT_FOUND",
27974
+ "PERMISSION_DENIED_OS",
27975
+ "INVALID_PARAMS",
27976
+ "RESOURCE_BUSY",
27977
+ "INTERNAL"
27978
+ ]
27979
+ },
27380
27980
  "fs.delete": {
27381
27981
  "params": "FsDeleteParams",
27382
27982
  "result": "FsDeleteResult",
@@ -30620,6 +31220,23 @@
30620
31220
  "result": "WebRuntimeState"
30621
31221
  }
30622
31222
  }
31223
+ },
31224
+ "agent": {
31225
+ "progress": "AgentServiceProgress",
31226
+ "ops": {
31227
+ "agent.status": {
31228
+ "params": "AgentStatusParams",
31229
+ "result": "AgentServiceState"
31230
+ },
31231
+ "agent.install": {
31232
+ "params": "AgentInstallParams",
31233
+ "result": "AgentServiceState"
31234
+ },
31235
+ "agent.start": {
31236
+ "params": "AgentStartParams",
31237
+ "result": "AgentServiceState"
31238
+ }
31239
+ }
30623
31240
  }
30624
31241
  },
30625
31242
  "x-fields-since": {
@@ -30938,5 +31555,5 @@
30938
31555
  "olderPeersGet": 0
30939
31556
  }
30940
31557
  },
30941
- "x-protocol-version": "1.85"
31558
+ "x-protocol-version": "1.87"
30942
31559
  }