@ai-matrx/desktop-protocol 0.17.10 → 0.17.12

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.
@@ -5279,6 +5279,454 @@
5279
5279
  ],
5280
5280
  "additionalProperties": false
5281
5281
  },
5282
+ "StackServerName": {
5283
+ "type": "string",
5284
+ "pattern": "^[a-z0-9_-]{1,64}$"
5285
+ },
5286
+ "StackTone": {
5287
+ "type": "string",
5288
+ "enum": [
5289
+ "good",
5290
+ "wait",
5291
+ "bad",
5292
+ "off"
5293
+ ]
5294
+ },
5295
+ "StackServer": {
5296
+ "type": "object",
5297
+ "properties": {
5298
+ "name": {
5299
+ "$ref": "#/$defs/StackServerName"
5300
+ },
5301
+ "label": {
5302
+ "type": "string",
5303
+ "maxLength": 32
5304
+ },
5305
+ "tone": {
5306
+ "$ref": "#/$defs/StackTone"
5307
+ },
5308
+ "sentence": {
5309
+ "type": "string",
5310
+ "maxLength": 2000
5311
+ },
5312
+ "description": {
5313
+ "type": "string",
5314
+ "maxLength": 512
5315
+ },
5316
+ "open_url": {
5317
+ "anyOf": [
5318
+ {
5319
+ "type": "string",
5320
+ "maxLength": 2048
5321
+ },
5322
+ {
5323
+ "type": "null"
5324
+ }
5325
+ ]
5326
+ },
5327
+ "log_file": {
5328
+ "type": "string",
5329
+ "maxLength": 4096
5330
+ },
5331
+ "last_output_at_ms": {
5332
+ "anyOf": [
5333
+ {
5334
+ "type": "integer",
5335
+ "minimum": 0,
5336
+ "maximum": 9007199254740991
5337
+ },
5338
+ {
5339
+ "type": "null"
5340
+ }
5341
+ ]
5342
+ },
5343
+ "started_at_ms": {
5344
+ "anyOf": [
5345
+ {
5346
+ "type": "integer",
5347
+ "minimum": 0,
5348
+ "maximum": 9007199254740991
5349
+ },
5350
+ {
5351
+ "type": "null"
5352
+ }
5353
+ ]
5354
+ },
5355
+ "restarts": {
5356
+ "type": "integer",
5357
+ "minimum": 0,
5358
+ "maximum": 9007199254740991
5359
+ },
5360
+ "exit_code": {
5361
+ "anyOf": [
5362
+ {
5363
+ "type": "integer",
5364
+ "minimum": -9007199254740991,
5365
+ "maximum": 9007199254740991
5366
+ },
5367
+ {
5368
+ "type": "null"
5369
+ }
5370
+ ]
5371
+ },
5372
+ "pid": {
5373
+ "anyOf": [
5374
+ {
5375
+ "type": "integer",
5376
+ "minimum": -9007199254740991,
5377
+ "maximum": 9007199254740991
5378
+ },
5379
+ {
5380
+ "type": "null"
5381
+ }
5382
+ ]
5383
+ }
5384
+ },
5385
+ "required": [
5386
+ "name",
5387
+ "label",
5388
+ "tone",
5389
+ "sentence",
5390
+ "description",
5391
+ "open_url",
5392
+ "log_file",
5393
+ "last_output_at_ms",
5394
+ "started_at_ms",
5395
+ "restarts",
5396
+ "exit_code",
5397
+ "pid"
5398
+ ],
5399
+ "additionalProperties": false
5400
+ },
5401
+ "StackEvent": {
5402
+ "type": "object",
5403
+ "properties": {
5404
+ "at_ms": {
5405
+ "type": "integer",
5406
+ "minimum": 0,
5407
+ "maximum": 9007199254740991
5408
+ },
5409
+ "server": {
5410
+ "type": "string",
5411
+ "maxLength": 64
5412
+ },
5413
+ "kind": {
5414
+ "type": "string",
5415
+ "maxLength": 32
5416
+ },
5417
+ "text": {
5418
+ "type": "string",
5419
+ "maxLength": 4000
5420
+ }
5421
+ },
5422
+ "required": [
5423
+ "at_ms",
5424
+ "server",
5425
+ "kind",
5426
+ "text"
5427
+ ],
5428
+ "additionalProperties": false
5429
+ },
5430
+ "StackStateParams": {
5431
+ "type": "object",
5432
+ "properties": {},
5433
+ "additionalProperties": false
5434
+ },
5435
+ "StackStateResult": {
5436
+ "type": "object",
5437
+ "properties": {
5438
+ "config_path": {
5439
+ "anyOf": [
5440
+ {
5441
+ "type": "string",
5442
+ "maxLength": 4096
5443
+ },
5444
+ {
5445
+ "type": "null"
5446
+ }
5447
+ ]
5448
+ },
5449
+ "problem": {
5450
+ "anyOf": [
5451
+ {
5452
+ "type": "string",
5453
+ "maxLength": 1000
5454
+ },
5455
+ {
5456
+ "type": "null"
5457
+ }
5458
+ ]
5459
+ },
5460
+ "stack_up": {
5461
+ "type": "boolean"
5462
+ },
5463
+ "stack_started_at_ms": {
5464
+ "anyOf": [
5465
+ {
5466
+ "type": "integer",
5467
+ "minimum": 0,
5468
+ "maximum": 9007199254740991
5469
+ },
5470
+ {
5471
+ "type": "null"
5472
+ }
5473
+ ]
5474
+ },
5475
+ "servers": {
5476
+ "maxItems": 64,
5477
+ "type": "array",
5478
+ "items": {
5479
+ "$ref": "#/$defs/StackServer"
5480
+ }
5481
+ },
5482
+ "setup_note": {
5483
+ "anyOf": [
5484
+ {
5485
+ "type": "string",
5486
+ "maxLength": 500
5487
+ },
5488
+ {
5489
+ "type": "null"
5490
+ }
5491
+ ]
5492
+ },
5493
+ "pending": {
5494
+ "anyOf": [
5495
+ {
5496
+ "type": "object",
5497
+ "properties": {
5498
+ "verb": {
5499
+ "type": "string",
5500
+ "enum": [
5501
+ "start",
5502
+ "stop"
5503
+ ]
5504
+ },
5505
+ "label": {
5506
+ "type": "string",
5507
+ "maxLength": 64
5508
+ },
5509
+ "since_ms": {
5510
+ "type": "integer",
5511
+ "minimum": 0,
5512
+ "maximum": 9007199254740991
5513
+ }
5514
+ },
5515
+ "required": [
5516
+ "verb",
5517
+ "label",
5518
+ "since_ms"
5519
+ ],
5520
+ "additionalProperties": false
5521
+ },
5522
+ {
5523
+ "type": "null"
5524
+ }
5525
+ ]
5526
+ },
5527
+ "events": {
5528
+ "maxItems": 300,
5529
+ "type": "array",
5530
+ "items": {
5531
+ "$ref": "#/$defs/StackEvent"
5532
+ }
5533
+ }
5534
+ },
5535
+ "required": [
5536
+ "config_path",
5537
+ "problem",
5538
+ "stack_up",
5539
+ "stack_started_at_ms",
5540
+ "servers",
5541
+ "setup_note",
5542
+ "pending",
5543
+ "events"
5544
+ ],
5545
+ "additionalProperties": false
5546
+ },
5547
+ "StackStartParams": {
5548
+ "type": "object",
5549
+ "properties": {},
5550
+ "additionalProperties": false
5551
+ },
5552
+ "StackStopParams": {
5553
+ "type": "object",
5554
+ "properties": {},
5555
+ "additionalProperties": false
5556
+ },
5557
+ "StackRunResult": {
5558
+ "type": "object",
5559
+ "properties": {
5560
+ "accepted": {
5561
+ "type": "boolean"
5562
+ }
5563
+ },
5564
+ "required": [
5565
+ "accepted"
5566
+ ],
5567
+ "additionalProperties": false
5568
+ },
5569
+ "StackServerActionParams": {
5570
+ "type": "object",
5571
+ "properties": {
5572
+ "name": {
5573
+ "$ref": "#/$defs/StackServerName"
5574
+ },
5575
+ "verb": {
5576
+ "type": "string",
5577
+ "enum": [
5578
+ "start",
5579
+ "stop",
5580
+ "restart"
5581
+ ]
5582
+ }
5583
+ },
5584
+ "required": [
5585
+ "name",
5586
+ "verb"
5587
+ ],
5588
+ "additionalProperties": false
5589
+ },
5590
+ "StackServerActionResult": {
5591
+ "type": "object",
5592
+ "properties": {
5593
+ "message": {
5594
+ "type": "string",
5595
+ "maxLength": 1000
5596
+ }
5597
+ },
5598
+ "required": [
5599
+ "message"
5600
+ ],
5601
+ "additionalProperties": false
5602
+ },
5603
+ "StackLogsParams": {
5604
+ "type": "object",
5605
+ "properties": {
5606
+ "name": {
5607
+ "$ref": "#/$defs/StackServerName"
5608
+ },
5609
+ "lines": {
5610
+ "default": 2000,
5611
+ "type": "integer",
5612
+ "minimum": 1,
5613
+ "maximum": 200000
5614
+ },
5615
+ "offset": {
5616
+ "type": "integer",
5617
+ "minimum": 0,
5618
+ "maximum": 9007199254740991
5619
+ },
5620
+ "since": {
5621
+ "type": "integer",
5622
+ "minimum": 0,
5623
+ "maximum": 9007199254740991
5624
+ },
5625
+ "wait_ms": {
5626
+ "default": 0,
5627
+ "type": "integer",
5628
+ "minimum": 0,
5629
+ "maximum": 25000
5630
+ }
5631
+ },
5632
+ "required": [
5633
+ "name"
5634
+ ],
5635
+ "additionalProperties": false
5636
+ },
5637
+ "StackLogsResult": {
5638
+ "type": "object",
5639
+ "properties": {
5640
+ "lines": {
5641
+ "maxItems": 200000,
5642
+ "type": "array",
5643
+ "items": {
5644
+ "type": "string",
5645
+ "maxLength": 65536
5646
+ }
5647
+ },
5648
+ "offset": {
5649
+ "type": "integer",
5650
+ "minimum": 0,
5651
+ "maximum": 9007199254740991
5652
+ },
5653
+ "since_valid": {
5654
+ "type": "boolean"
5655
+ },
5656
+ "reset": {
5657
+ "type": "boolean"
5658
+ },
5659
+ "log_file": {
5660
+ "type": "string",
5661
+ "maxLength": 4096
5662
+ }
5663
+ },
5664
+ "required": [
5665
+ "lines",
5666
+ "offset",
5667
+ "since_valid",
5668
+ "reset",
5669
+ "log_file"
5670
+ ],
5671
+ "additionalProperties": false
5672
+ },
5673
+ "StackErrorsParams": {
5674
+ "type": "object",
5675
+ "properties": {
5676
+ "window_minutes": {
5677
+ "default": 60,
5678
+ "type": "integer",
5679
+ "minimum": 1,
5680
+ "maximum": 1440
5681
+ }
5682
+ },
5683
+ "additionalProperties": false
5684
+ },
5685
+ "StackErrorsResult": {
5686
+ "type": "object",
5687
+ "properties": {
5688
+ "sections": {
5689
+ "maxItems": 64,
5690
+ "type": "array",
5691
+ "items": {
5692
+ "type": "object",
5693
+ "properties": {
5694
+ "name": {
5695
+ "$ref": "#/$defs/StackServerName"
5696
+ },
5697
+ "heading": {
5698
+ "type": "string",
5699
+ "maxLength": 4096
5700
+ },
5701
+ "lines": {
5702
+ "maxItems": 5000,
5703
+ "type": "array",
5704
+ "items": {
5705
+ "type": "string",
5706
+ "maxLength": 65536
5707
+ }
5708
+ }
5709
+ },
5710
+ "required": [
5711
+ "name",
5712
+ "heading",
5713
+ "lines"
5714
+ ],
5715
+ "additionalProperties": false
5716
+ }
5717
+ },
5718
+ "window_minutes": {
5719
+ "type": "integer",
5720
+ "minimum": 1,
5721
+ "maximum": 1440
5722
+ }
5723
+ },
5724
+ "required": [
5725
+ "sections",
5726
+ "window_minutes"
5727
+ ],
5728
+ "additionalProperties": false
5729
+ },
5282
5730
  "FsWatchId": {
5283
5731
  "type": "string",
5284
5732
  "pattern": "^fw_[A-Za-z0-9]{12,40}$"
@@ -6531,13 +6979,24 @@
6531
6979
  },
6532
6980
  "title_source": {
6533
6981
  "type": "string",
6534
- "minLength": 1,
6535
- "maxLength": 40
6982
+ "enum": [
6983
+ "app",
6984
+ "app-remembered",
6985
+ "custom-title",
6986
+ "ai-title",
6987
+ "agent-name",
6988
+ "summary",
6989
+ "first-prompt",
6990
+ "last-prompt"
6991
+ ]
6536
6992
  },
6537
6993
  "title_override": {
6538
6994
  "type": "string",
6539
6995
  "minLength": 1,
6540
6996
  "maxLength": 300
6997
+ },
6998
+ "archived": {
6999
+ "type": "boolean"
6541
7000
  }
6542
7001
  },
6543
7002
  "required": [
@@ -9444,6 +9903,67 @@
9444
9903
  "INTERNAL"
9445
9904
  ]
9446
9905
  },
9906
+ "stack.state": {
9907
+ "params": "StackStateParams",
9908
+ "result": "StackStateResult",
9909
+ "kind": "unary",
9910
+ "since": "1.16",
9911
+ "errors": [
9912
+ "INTERNAL"
9913
+ ]
9914
+ },
9915
+ "stack.start": {
9916
+ "params": "StackStartParams",
9917
+ "result": "StackRunResult",
9918
+ "kind": "unary",
9919
+ "since": "1.16",
9920
+ "errors": [
9921
+ "RESOURCE_BUSY",
9922
+ "PLATFORM_UNSUPPORTED",
9923
+ "INTERNAL"
9924
+ ]
9925
+ },
9926
+ "stack.stop": {
9927
+ "params": "StackStopParams",
9928
+ "result": "StackRunResult",
9929
+ "kind": "unary",
9930
+ "since": "1.16",
9931
+ "errors": [
9932
+ "RESOURCE_BUSY",
9933
+ "PLATFORM_UNSUPPORTED",
9934
+ "INTERNAL"
9935
+ ]
9936
+ },
9937
+ "stack.server.action": {
9938
+ "params": "StackServerActionParams",
9939
+ "result": "StackServerActionResult",
9940
+ "kind": "unary",
9941
+ "since": "1.16",
9942
+ "errors": [
9943
+ "NOT_FOUND",
9944
+ "CONFLICT",
9945
+ "INTERNAL"
9946
+ ]
9947
+ },
9948
+ "stack.logs": {
9949
+ "params": "StackLogsParams",
9950
+ "result": "StackLogsResult",
9951
+ "kind": "unary",
9952
+ "since": "1.16",
9953
+ "errors": [
9954
+ "NOT_FOUND",
9955
+ "INTERNAL"
9956
+ ]
9957
+ },
9958
+ "stack.errors": {
9959
+ "params": "StackErrorsParams",
9960
+ "result": "StackErrorsResult",
9961
+ "kind": "unary",
9962
+ "since": "1.16",
9963
+ "errors": [
9964
+ "INTERNAL"
9965
+ ]
9966
+ },
9447
9967
  "coding.history.import_missing": {
9448
9968
  "params": "CodingHistoryImportMissingParams",
9449
9969
  "result": "CodingHistoryImportMissingResult",
@@ -9536,7 +10056,8 @@
9536
10056
  "tokens": "1.13",
9537
10057
  "original_title": "1.14",
9538
10058
  "title_source": "1.14",
9539
- "title_override": "1.14"
10059
+ "title_override": "1.14",
10060
+ "archived": "1.15"
9540
10061
  },
9541
10062
  "AccountUsage": {
9542
10063
  "plan": "1.13",
@@ -9549,5 +10070,5 @@
9549
10070
  "olderPeersGet": 0
9550
10071
  }
9551
10072
  },
9552
- "x-protocol-version": "1.14"
10073
+ "x-protocol-version": "1.16"
9553
10074
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-matrx/desktop-protocol",
3
- "version": "0.17.10",
3
+ "version": "0.17.12",
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",