@ai-matrx/desktop-protocol 0.13.0 → 0.14.0
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 +10 -0
- package/dist/client.cjs +106 -38
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +2 -2
- package/dist/client.d.ts +2 -2
- package/dist/client.js +106 -38
- package/dist/client.js.map +1 -1
- package/dist/index.cjs +103 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +117 -6
- package/dist/index.d.ts +117 -6
- package/dist/index.js +103 -8
- package/dist/index.js.map +1 -1
- package/dist/{models-CxAHZMAM.d.cts → models-DqFPqtNS.d.cts} +173 -1
- package/dist/{models-CxAHZMAM.d.ts → models-DqFPqtNS.d.ts} +173 -1
- package/dist/react.d.cts +86 -0
- package/dist/react.d.ts +86 -0
- package/generated/desktop-protocol.schema.json +360 -1
- package/package.json +1 -1
|
@@ -3573,6 +3573,308 @@
|
|
|
3573
3573
|
4426
|
|
3574
3574
|
]
|
|
3575
3575
|
},
|
|
3576
|
+
"ProcSort": {
|
|
3577
|
+
"type": "string",
|
|
3578
|
+
"enum": [
|
|
3579
|
+
"cpu",
|
|
3580
|
+
"memory",
|
|
3581
|
+
"pid",
|
|
3582
|
+
"name"
|
|
3583
|
+
]
|
|
3584
|
+
},
|
|
3585
|
+
"ProcListParams": {
|
|
3586
|
+
"type": "object",
|
|
3587
|
+
"properties": {
|
|
3588
|
+
"name": {
|
|
3589
|
+
"type": "string",
|
|
3590
|
+
"minLength": 1,
|
|
3591
|
+
"maxLength": 128
|
|
3592
|
+
},
|
|
3593
|
+
"sort": {
|
|
3594
|
+
"default": "cpu",
|
|
3595
|
+
"$ref": "#/$defs/ProcSort"
|
|
3596
|
+
},
|
|
3597
|
+
"limit": {
|
|
3598
|
+
"default": 50,
|
|
3599
|
+
"type": "integer",
|
|
3600
|
+
"minimum": 1,
|
|
3601
|
+
"maximum": 500
|
|
3602
|
+
}
|
|
3603
|
+
},
|
|
3604
|
+
"additionalProperties": false
|
|
3605
|
+
},
|
|
3606
|
+
"ProcInfo": {
|
|
3607
|
+
"type": "object",
|
|
3608
|
+
"properties": {
|
|
3609
|
+
"pid": {
|
|
3610
|
+
"type": "integer",
|
|
3611
|
+
"minimum": 0,
|
|
3612
|
+
"maximum": 9007199254740991
|
|
3613
|
+
},
|
|
3614
|
+
"ppid": {
|
|
3615
|
+
"anyOf": [
|
|
3616
|
+
{
|
|
3617
|
+
"type": "integer",
|
|
3618
|
+
"minimum": 0,
|
|
3619
|
+
"maximum": 9007199254740991
|
|
3620
|
+
},
|
|
3621
|
+
{
|
|
3622
|
+
"type": "null"
|
|
3623
|
+
}
|
|
3624
|
+
]
|
|
3625
|
+
},
|
|
3626
|
+
"name": {
|
|
3627
|
+
"type": "string",
|
|
3628
|
+
"maxLength": 256
|
|
3629
|
+
},
|
|
3630
|
+
"command": {
|
|
3631
|
+
"type": "string",
|
|
3632
|
+
"maxLength": 1024
|
|
3633
|
+
},
|
|
3634
|
+
"cpu_percent": {
|
|
3635
|
+
"anyOf": [
|
|
3636
|
+
{
|
|
3637
|
+
"type": "number",
|
|
3638
|
+
"minimum": 0
|
|
3639
|
+
},
|
|
3640
|
+
{
|
|
3641
|
+
"type": "null"
|
|
3642
|
+
}
|
|
3643
|
+
]
|
|
3644
|
+
},
|
|
3645
|
+
"memory_bytes": {
|
|
3646
|
+
"anyOf": [
|
|
3647
|
+
{
|
|
3648
|
+
"type": "integer",
|
|
3649
|
+
"minimum": 0,
|
|
3650
|
+
"maximum": 9007199254740991
|
|
3651
|
+
},
|
|
3652
|
+
{
|
|
3653
|
+
"type": "null"
|
|
3654
|
+
}
|
|
3655
|
+
]
|
|
3656
|
+
},
|
|
3657
|
+
"user": {
|
|
3658
|
+
"anyOf": [
|
|
3659
|
+
{
|
|
3660
|
+
"type": "string",
|
|
3661
|
+
"maxLength": 128
|
|
3662
|
+
},
|
|
3663
|
+
{
|
|
3664
|
+
"type": "null"
|
|
3665
|
+
}
|
|
3666
|
+
]
|
|
3667
|
+
}
|
|
3668
|
+
},
|
|
3669
|
+
"required": [
|
|
3670
|
+
"pid",
|
|
3671
|
+
"ppid",
|
|
3672
|
+
"name",
|
|
3673
|
+
"command",
|
|
3674
|
+
"cpu_percent",
|
|
3675
|
+
"memory_bytes",
|
|
3676
|
+
"user"
|
|
3677
|
+
],
|
|
3678
|
+
"additionalProperties": false
|
|
3679
|
+
},
|
|
3680
|
+
"ProcListResult": {
|
|
3681
|
+
"type": "object",
|
|
3682
|
+
"properties": {
|
|
3683
|
+
"processes": {
|
|
3684
|
+
"maxItems": 500,
|
|
3685
|
+
"type": "array",
|
|
3686
|
+
"items": {
|
|
3687
|
+
"$ref": "#/$defs/ProcInfo"
|
|
3688
|
+
}
|
|
3689
|
+
},
|
|
3690
|
+
"total": {
|
|
3691
|
+
"type": "integer",
|
|
3692
|
+
"minimum": 0,
|
|
3693
|
+
"maximum": 9007199254740991
|
|
3694
|
+
},
|
|
3695
|
+
"truncated": {
|
|
3696
|
+
"type": "boolean"
|
|
3697
|
+
}
|
|
3698
|
+
},
|
|
3699
|
+
"required": [
|
|
3700
|
+
"processes",
|
|
3701
|
+
"total",
|
|
3702
|
+
"truncated"
|
|
3703
|
+
],
|
|
3704
|
+
"additionalProperties": false
|
|
3705
|
+
},
|
|
3706
|
+
"ProcPortsParams": {
|
|
3707
|
+
"type": "object",
|
|
3708
|
+
"properties": {
|
|
3709
|
+
"port": {
|
|
3710
|
+
"type": "integer",
|
|
3711
|
+
"minimum": 1,
|
|
3712
|
+
"maximum": 65535
|
|
3713
|
+
}
|
|
3714
|
+
},
|
|
3715
|
+
"additionalProperties": false
|
|
3716
|
+
},
|
|
3717
|
+
"ProcPort": {
|
|
3718
|
+
"type": "object",
|
|
3719
|
+
"properties": {
|
|
3720
|
+
"port": {
|
|
3721
|
+
"type": "integer",
|
|
3722
|
+
"minimum": 1,
|
|
3723
|
+
"maximum": 65535
|
|
3724
|
+
},
|
|
3725
|
+
"protocol": {
|
|
3726
|
+
"type": "string",
|
|
3727
|
+
"enum": [
|
|
3728
|
+
"tcp",
|
|
3729
|
+
"udp"
|
|
3730
|
+
]
|
|
3731
|
+
},
|
|
3732
|
+
"address": {
|
|
3733
|
+
"type": "string",
|
|
3734
|
+
"maxLength": 64
|
|
3735
|
+
},
|
|
3736
|
+
"pid": {
|
|
3737
|
+
"anyOf": [
|
|
3738
|
+
{
|
|
3739
|
+
"type": "integer",
|
|
3740
|
+
"minimum": 0,
|
|
3741
|
+
"maximum": 9007199254740991
|
|
3742
|
+
},
|
|
3743
|
+
{
|
|
3744
|
+
"type": "null"
|
|
3745
|
+
}
|
|
3746
|
+
]
|
|
3747
|
+
},
|
|
3748
|
+
"process": {
|
|
3749
|
+
"anyOf": [
|
|
3750
|
+
{
|
|
3751
|
+
"type": "string",
|
|
3752
|
+
"maxLength": 256
|
|
3753
|
+
},
|
|
3754
|
+
{
|
|
3755
|
+
"type": "null"
|
|
3756
|
+
}
|
|
3757
|
+
]
|
|
3758
|
+
}
|
|
3759
|
+
},
|
|
3760
|
+
"required": [
|
|
3761
|
+
"port",
|
|
3762
|
+
"protocol",
|
|
3763
|
+
"address",
|
|
3764
|
+
"pid",
|
|
3765
|
+
"process"
|
|
3766
|
+
],
|
|
3767
|
+
"additionalProperties": false
|
|
3768
|
+
},
|
|
3769
|
+
"ProcPortsResult": {
|
|
3770
|
+
"type": "object",
|
|
3771
|
+
"properties": {
|
|
3772
|
+
"ports": {
|
|
3773
|
+
"maxItems": 4000,
|
|
3774
|
+
"type": "array",
|
|
3775
|
+
"items": {
|
|
3776
|
+
"$ref": "#/$defs/ProcPort"
|
|
3777
|
+
}
|
|
3778
|
+
}
|
|
3779
|
+
},
|
|
3780
|
+
"required": [
|
|
3781
|
+
"ports"
|
|
3782
|
+
],
|
|
3783
|
+
"additionalProperties": false
|
|
3784
|
+
},
|
|
3785
|
+
"ProcKillParams": {
|
|
3786
|
+
"type": "object",
|
|
3787
|
+
"properties": {
|
|
3788
|
+
"pid": {
|
|
3789
|
+
"type": "integer",
|
|
3790
|
+
"minimum": 1,
|
|
3791
|
+
"maximum": 9007199254740991
|
|
3792
|
+
},
|
|
3793
|
+
"force": {
|
|
3794
|
+
"default": false,
|
|
3795
|
+
"type": "boolean"
|
|
3796
|
+
}
|
|
3797
|
+
},
|
|
3798
|
+
"required": [
|
|
3799
|
+
"pid"
|
|
3800
|
+
],
|
|
3801
|
+
"additionalProperties": false
|
|
3802
|
+
},
|
|
3803
|
+
"ProcKillResult": {
|
|
3804
|
+
"type": "object",
|
|
3805
|
+
"properties": {
|
|
3806
|
+
"pid": {
|
|
3807
|
+
"type": "integer",
|
|
3808
|
+
"minimum": 1,
|
|
3809
|
+
"maximum": 9007199254740991
|
|
3810
|
+
},
|
|
3811
|
+
"signal": {
|
|
3812
|
+
"type": "string",
|
|
3813
|
+
"enum": [
|
|
3814
|
+
"SIGTERM",
|
|
3815
|
+
"SIGKILL"
|
|
3816
|
+
]
|
|
3817
|
+
},
|
|
3818
|
+
"exited": {
|
|
3819
|
+
"type": "boolean"
|
|
3820
|
+
}
|
|
3821
|
+
},
|
|
3822
|
+
"required": [
|
|
3823
|
+
"pid",
|
|
3824
|
+
"signal",
|
|
3825
|
+
"exited"
|
|
3826
|
+
],
|
|
3827
|
+
"additionalProperties": false
|
|
3828
|
+
},
|
|
3829
|
+
"ClipboardReadParams": {
|
|
3830
|
+
"type": "object",
|
|
3831
|
+
"properties": {},
|
|
3832
|
+
"additionalProperties": false
|
|
3833
|
+
},
|
|
3834
|
+
"ClipboardReadResult": {
|
|
3835
|
+
"type": "object",
|
|
3836
|
+
"properties": {
|
|
3837
|
+
"text": {
|
|
3838
|
+
"type": "string",
|
|
3839
|
+
"maxLength": 1048576
|
|
3840
|
+
},
|
|
3841
|
+
"truncated": {
|
|
3842
|
+
"type": "boolean"
|
|
3843
|
+
}
|
|
3844
|
+
},
|
|
3845
|
+
"required": [
|
|
3846
|
+
"text",
|
|
3847
|
+
"truncated"
|
|
3848
|
+
],
|
|
3849
|
+
"additionalProperties": false
|
|
3850
|
+
},
|
|
3851
|
+
"ClipboardWriteParams": {
|
|
3852
|
+
"type": "object",
|
|
3853
|
+
"properties": {
|
|
3854
|
+
"text": {
|
|
3855
|
+
"type": "string",
|
|
3856
|
+
"maxLength": 1048576
|
|
3857
|
+
}
|
|
3858
|
+
},
|
|
3859
|
+
"required": [
|
|
3860
|
+
"text"
|
|
3861
|
+
],
|
|
3862
|
+
"additionalProperties": false
|
|
3863
|
+
},
|
|
3864
|
+
"ClipboardWriteResult": {
|
|
3865
|
+
"type": "object",
|
|
3866
|
+
"properties": {
|
|
3867
|
+
"bytes": {
|
|
3868
|
+
"type": "integer",
|
|
3869
|
+
"minimum": 0,
|
|
3870
|
+
"maximum": 9007199254740991
|
|
3871
|
+
}
|
|
3872
|
+
},
|
|
3873
|
+
"required": [
|
|
3874
|
+
"bytes"
|
|
3875
|
+
],
|
|
3876
|
+
"additionalProperties": false
|
|
3877
|
+
},
|
|
3576
3878
|
"ToolLevel": {
|
|
3577
3879
|
"type": "string",
|
|
3578
3880
|
"enum": [
|
|
@@ -4498,6 +4800,63 @@
|
|
|
4498
4800
|
"DEVICE_OFFLINE",
|
|
4499
4801
|
"INTERNAL"
|
|
4500
4802
|
]
|
|
4803
|
+
},
|
|
4804
|
+
"proc.list": {
|
|
4805
|
+
"params": "ProcListParams",
|
|
4806
|
+
"result": "ProcListResult",
|
|
4807
|
+
"kind": "unary",
|
|
4808
|
+
"since": "1.3",
|
|
4809
|
+
"errors": [
|
|
4810
|
+
"INVALID_PARAMS",
|
|
4811
|
+
"PLATFORM_UNSUPPORTED",
|
|
4812
|
+
"INTERNAL"
|
|
4813
|
+
]
|
|
4814
|
+
},
|
|
4815
|
+
"proc.ports": {
|
|
4816
|
+
"params": "ProcPortsParams",
|
|
4817
|
+
"result": "ProcPortsResult",
|
|
4818
|
+
"kind": "unary",
|
|
4819
|
+
"since": "1.3",
|
|
4820
|
+
"errors": [
|
|
4821
|
+
"INVALID_PARAMS",
|
|
4822
|
+
"PERMISSION_DENIED_OS",
|
|
4823
|
+
"PLATFORM_UNSUPPORTED",
|
|
4824
|
+
"INTERNAL"
|
|
4825
|
+
]
|
|
4826
|
+
},
|
|
4827
|
+
"proc.kill": {
|
|
4828
|
+
"params": "ProcKillParams",
|
|
4829
|
+
"result": "ProcKillResult",
|
|
4830
|
+
"kind": "unary",
|
|
4831
|
+
"since": "1.3",
|
|
4832
|
+
"errors": [
|
|
4833
|
+
"NOT_FOUND",
|
|
4834
|
+
"AUTH_FORBIDDEN",
|
|
4835
|
+
"PERMISSION_DENIED_OS",
|
|
4836
|
+
"INVALID_PARAMS",
|
|
4837
|
+
"INTERNAL"
|
|
4838
|
+
]
|
|
4839
|
+
},
|
|
4840
|
+
"clipboard.read": {
|
|
4841
|
+
"params": "ClipboardReadParams",
|
|
4842
|
+
"result": "ClipboardReadResult",
|
|
4843
|
+
"kind": "unary",
|
|
4844
|
+
"since": "1.3",
|
|
4845
|
+
"errors": [
|
|
4846
|
+
"PLATFORM_UNSUPPORTED",
|
|
4847
|
+
"INTERNAL"
|
|
4848
|
+
]
|
|
4849
|
+
},
|
|
4850
|
+
"clipboard.write": {
|
|
4851
|
+
"params": "ClipboardWriteParams",
|
|
4852
|
+
"result": "ClipboardWriteResult",
|
|
4853
|
+
"kind": "unary",
|
|
4854
|
+
"since": "1.3",
|
|
4855
|
+
"errors": [
|
|
4856
|
+
"PLATFORM_UNSUPPORTED",
|
|
4857
|
+
"PAYLOAD_TOO_LARGE",
|
|
4858
|
+
"INTERNAL"
|
|
4859
|
+
]
|
|
4501
4860
|
}
|
|
4502
4861
|
},
|
|
4503
4862
|
"x-events": {
|
|
@@ -4550,5 +4909,5 @@
|
|
|
4550
4909
|
"olderPeersGet": 0
|
|
4551
4910
|
}
|
|
4552
4911
|
},
|
|
4553
|
-
"x-protocol-version": "1.
|
|
4912
|
+
"x-protocol-version": "1.3"
|
|
4554
4913
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-matrx/desktop-protocol",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
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",
|