@ai-matrx/desktop-protocol 0.12.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 +19 -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 +112 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +122 -6
- package/dist/index.d.ts +122 -6
- package/dist/index.js +112 -19
- 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
|
@@ -681,7 +681,7 @@ type OpSpec = {
|
|
|
681
681
|
readonly params: z.ZodType;
|
|
682
682
|
readonly result: z.ZodType;
|
|
683
683
|
readonly kind: "unary" | "stream" | "resource";
|
|
684
|
-
readonly since: "1.0" | "1.2";
|
|
684
|
+
readonly since: "1.0" | "1.2" | "1.3";
|
|
685
685
|
readonly errors: readonly z.infer<typeof ErrorCode>[];
|
|
686
686
|
};
|
|
687
687
|
declare const OPS: {
|
|
@@ -1567,6 +1567,92 @@ declare const OPS: {
|
|
|
1567
1567
|
readonly since: "1.2";
|
|
1568
1568
|
readonly errors: readonly ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "AUTH_REQUIRED", "DEVICE_OFFLINE", "INTERNAL"];
|
|
1569
1569
|
};
|
|
1570
|
+
readonly "proc.list": {
|
|
1571
|
+
readonly params: z.ZodObject<{
|
|
1572
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1573
|
+
sort: z.ZodDefault<z.ZodEnum<{
|
|
1574
|
+
name: "name";
|
|
1575
|
+
cpu: "cpu";
|
|
1576
|
+
memory: "memory";
|
|
1577
|
+
pid: "pid";
|
|
1578
|
+
}>>;
|
|
1579
|
+
limit: z.ZodDefault<z.ZodInt>;
|
|
1580
|
+
}, z.core.$strict>;
|
|
1581
|
+
readonly result: z.ZodObject<{
|
|
1582
|
+
processes: z.ZodArray<z.ZodObject<{
|
|
1583
|
+
pid: z.ZodInt;
|
|
1584
|
+
ppid: z.ZodNullable<z.ZodInt>;
|
|
1585
|
+
name: z.ZodString;
|
|
1586
|
+
command: z.ZodString;
|
|
1587
|
+
cpu_percent: z.ZodNullable<z.ZodNumber>;
|
|
1588
|
+
memory_bytes: z.ZodNullable<z.ZodInt>;
|
|
1589
|
+
user: z.ZodNullable<z.ZodString>;
|
|
1590
|
+
}, z.core.$strict>>;
|
|
1591
|
+
total: z.ZodInt;
|
|
1592
|
+
truncated: z.ZodBoolean;
|
|
1593
|
+
}, z.core.$strict>;
|
|
1594
|
+
readonly kind: "unary";
|
|
1595
|
+
readonly since: "1.3";
|
|
1596
|
+
readonly errors: readonly ["INVALID_PARAMS", "PLATFORM_UNSUPPORTED", "INTERNAL"];
|
|
1597
|
+
};
|
|
1598
|
+
readonly "proc.ports": {
|
|
1599
|
+
readonly params: z.ZodObject<{
|
|
1600
|
+
port: z.ZodOptional<z.ZodInt>;
|
|
1601
|
+
}, z.core.$strict>;
|
|
1602
|
+
readonly result: z.ZodObject<{
|
|
1603
|
+
ports: z.ZodArray<z.ZodObject<{
|
|
1604
|
+
port: z.ZodInt;
|
|
1605
|
+
protocol: z.ZodEnum<{
|
|
1606
|
+
tcp: "tcp";
|
|
1607
|
+
udp: "udp";
|
|
1608
|
+
}>;
|
|
1609
|
+
address: z.ZodString;
|
|
1610
|
+
pid: z.ZodNullable<z.ZodInt>;
|
|
1611
|
+
process: z.ZodNullable<z.ZodString>;
|
|
1612
|
+
}, z.core.$strict>>;
|
|
1613
|
+
}, z.core.$strict>;
|
|
1614
|
+
readonly kind: "unary";
|
|
1615
|
+
readonly since: "1.3";
|
|
1616
|
+
readonly errors: readonly ["INVALID_PARAMS", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "INTERNAL"];
|
|
1617
|
+
};
|
|
1618
|
+
readonly "proc.kill": {
|
|
1619
|
+
readonly params: z.ZodObject<{
|
|
1620
|
+
pid: z.ZodInt;
|
|
1621
|
+
force: z.ZodDefault<z.ZodBoolean>;
|
|
1622
|
+
}, z.core.$strict>;
|
|
1623
|
+
readonly result: z.ZodObject<{
|
|
1624
|
+
pid: z.ZodInt;
|
|
1625
|
+
signal: z.ZodEnum<{
|
|
1626
|
+
SIGTERM: "SIGTERM";
|
|
1627
|
+
SIGKILL: "SIGKILL";
|
|
1628
|
+
}>;
|
|
1629
|
+
exited: z.ZodBoolean;
|
|
1630
|
+
}, z.core.$strict>;
|
|
1631
|
+
readonly kind: "unary";
|
|
1632
|
+
readonly since: "1.3";
|
|
1633
|
+
readonly errors: readonly ["NOT_FOUND", "AUTH_FORBIDDEN", "PERMISSION_DENIED_OS", "INVALID_PARAMS", "INTERNAL"];
|
|
1634
|
+
};
|
|
1635
|
+
readonly "clipboard.read": {
|
|
1636
|
+
readonly params: z.ZodObject<{}, z.core.$strict>;
|
|
1637
|
+
readonly result: z.ZodObject<{
|
|
1638
|
+
text: z.ZodString;
|
|
1639
|
+
truncated: z.ZodBoolean;
|
|
1640
|
+
}, z.core.$strict>;
|
|
1641
|
+
readonly kind: "unary";
|
|
1642
|
+
readonly since: "1.3";
|
|
1643
|
+
readonly errors: readonly ["PLATFORM_UNSUPPORTED", "INTERNAL"];
|
|
1644
|
+
};
|
|
1645
|
+
readonly "clipboard.write": {
|
|
1646
|
+
readonly params: z.ZodObject<{
|
|
1647
|
+
text: z.ZodString;
|
|
1648
|
+
}, z.core.$strict>;
|
|
1649
|
+
readonly result: z.ZodObject<{
|
|
1650
|
+
bytes: z.ZodInt;
|
|
1651
|
+
}, z.core.$strict>;
|
|
1652
|
+
readonly kind: "unary";
|
|
1653
|
+
readonly since: "1.3";
|
|
1654
|
+
readonly errors: readonly ["PLATFORM_UNSUPPORTED", "PAYLOAD_TOO_LARGE", "INTERNAL"];
|
|
1655
|
+
};
|
|
1570
1656
|
};
|
|
1571
1657
|
type OpName = keyof typeof OPS;
|
|
1572
1658
|
type OpParams<N extends OpName> = z.input<(typeof OPS)[N]["params"]>;
|
|
@@ -3502,6 +3588,92 @@ declare const NAMED_SCHEMAS: {
|
|
|
3502
3588
|
seq: z.ZodLiteral<0>;
|
|
3503
3589
|
}, z.core.$strict>;
|
|
3504
3590
|
readonly CloseCodeValue: z.ZodLiteral<1000 | 1001 | 1006 | 1012 | 1013 | 4001 | 4003 | 4004 | 4008 | 4009 | 4010 | 4400 | 4426>;
|
|
3591
|
+
readonly ProcSort: z.ZodEnum<{
|
|
3592
|
+
name: "name";
|
|
3593
|
+
cpu: "cpu";
|
|
3594
|
+
memory: "memory";
|
|
3595
|
+
pid: "pid";
|
|
3596
|
+
}>;
|
|
3597
|
+
readonly ProcListParams: z.ZodObject<{
|
|
3598
|
+
name: z.ZodOptional<z.ZodString>;
|
|
3599
|
+
sort: z.ZodDefault<z.ZodEnum<{
|
|
3600
|
+
name: "name";
|
|
3601
|
+
cpu: "cpu";
|
|
3602
|
+
memory: "memory";
|
|
3603
|
+
pid: "pid";
|
|
3604
|
+
}>>;
|
|
3605
|
+
limit: z.ZodDefault<z.ZodInt>;
|
|
3606
|
+
}, z.core.$strict>;
|
|
3607
|
+
readonly ProcInfo: z.ZodObject<{
|
|
3608
|
+
pid: z.ZodInt;
|
|
3609
|
+
ppid: z.ZodNullable<z.ZodInt>;
|
|
3610
|
+
name: z.ZodString;
|
|
3611
|
+
command: z.ZodString;
|
|
3612
|
+
cpu_percent: z.ZodNullable<z.ZodNumber>;
|
|
3613
|
+
memory_bytes: z.ZodNullable<z.ZodInt>;
|
|
3614
|
+
user: z.ZodNullable<z.ZodString>;
|
|
3615
|
+
}, z.core.$strict>;
|
|
3616
|
+
readonly ProcListResult: z.ZodObject<{
|
|
3617
|
+
processes: z.ZodArray<z.ZodObject<{
|
|
3618
|
+
pid: z.ZodInt;
|
|
3619
|
+
ppid: z.ZodNullable<z.ZodInt>;
|
|
3620
|
+
name: z.ZodString;
|
|
3621
|
+
command: z.ZodString;
|
|
3622
|
+
cpu_percent: z.ZodNullable<z.ZodNumber>;
|
|
3623
|
+
memory_bytes: z.ZodNullable<z.ZodInt>;
|
|
3624
|
+
user: z.ZodNullable<z.ZodString>;
|
|
3625
|
+
}, z.core.$strict>>;
|
|
3626
|
+
total: z.ZodInt;
|
|
3627
|
+
truncated: z.ZodBoolean;
|
|
3628
|
+
}, z.core.$strict>;
|
|
3629
|
+
readonly ProcPortsParams: z.ZodObject<{
|
|
3630
|
+
port: z.ZodOptional<z.ZodInt>;
|
|
3631
|
+
}, z.core.$strict>;
|
|
3632
|
+
readonly ProcPort: z.ZodObject<{
|
|
3633
|
+
port: z.ZodInt;
|
|
3634
|
+
protocol: z.ZodEnum<{
|
|
3635
|
+
tcp: "tcp";
|
|
3636
|
+
udp: "udp";
|
|
3637
|
+
}>;
|
|
3638
|
+
address: z.ZodString;
|
|
3639
|
+
pid: z.ZodNullable<z.ZodInt>;
|
|
3640
|
+
process: z.ZodNullable<z.ZodString>;
|
|
3641
|
+
}, z.core.$strict>;
|
|
3642
|
+
readonly ProcPortsResult: z.ZodObject<{
|
|
3643
|
+
ports: z.ZodArray<z.ZodObject<{
|
|
3644
|
+
port: z.ZodInt;
|
|
3645
|
+
protocol: z.ZodEnum<{
|
|
3646
|
+
tcp: "tcp";
|
|
3647
|
+
udp: "udp";
|
|
3648
|
+
}>;
|
|
3649
|
+
address: z.ZodString;
|
|
3650
|
+
pid: z.ZodNullable<z.ZodInt>;
|
|
3651
|
+
process: z.ZodNullable<z.ZodString>;
|
|
3652
|
+
}, z.core.$strict>>;
|
|
3653
|
+
}, z.core.$strict>;
|
|
3654
|
+
readonly ProcKillParams: z.ZodObject<{
|
|
3655
|
+
pid: z.ZodInt;
|
|
3656
|
+
force: z.ZodDefault<z.ZodBoolean>;
|
|
3657
|
+
}, z.core.$strict>;
|
|
3658
|
+
readonly ProcKillResult: z.ZodObject<{
|
|
3659
|
+
pid: z.ZodInt;
|
|
3660
|
+
signal: z.ZodEnum<{
|
|
3661
|
+
SIGTERM: "SIGTERM";
|
|
3662
|
+
SIGKILL: "SIGKILL";
|
|
3663
|
+
}>;
|
|
3664
|
+
exited: z.ZodBoolean;
|
|
3665
|
+
}, z.core.$strict>;
|
|
3666
|
+
readonly ClipboardReadParams: z.ZodObject<{}, z.core.$strict>;
|
|
3667
|
+
readonly ClipboardReadResult: z.ZodObject<{
|
|
3668
|
+
text: z.ZodString;
|
|
3669
|
+
truncated: z.ZodBoolean;
|
|
3670
|
+
}, z.core.$strict>;
|
|
3671
|
+
readonly ClipboardWriteParams: z.ZodObject<{
|
|
3672
|
+
text: z.ZodString;
|
|
3673
|
+
}, z.core.$strict>;
|
|
3674
|
+
readonly ClipboardWriteResult: z.ZodObject<{
|
|
3675
|
+
bytes: z.ZodInt;
|
|
3676
|
+
}, z.core.$strict>;
|
|
3505
3677
|
readonly ToolLevel: z.ZodEnum<{
|
|
3506
3678
|
programmatic: "programmatic";
|
|
3507
3679
|
protocol: "protocol";
|
|
@@ -681,7 +681,7 @@ type OpSpec = {
|
|
|
681
681
|
readonly params: z.ZodType;
|
|
682
682
|
readonly result: z.ZodType;
|
|
683
683
|
readonly kind: "unary" | "stream" | "resource";
|
|
684
|
-
readonly since: "1.0" | "1.2";
|
|
684
|
+
readonly since: "1.0" | "1.2" | "1.3";
|
|
685
685
|
readonly errors: readonly z.infer<typeof ErrorCode>[];
|
|
686
686
|
};
|
|
687
687
|
declare const OPS: {
|
|
@@ -1567,6 +1567,92 @@ declare const OPS: {
|
|
|
1567
1567
|
readonly since: "1.2";
|
|
1568
1568
|
readonly errors: readonly ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "AUTH_REQUIRED", "DEVICE_OFFLINE", "INTERNAL"];
|
|
1569
1569
|
};
|
|
1570
|
+
readonly "proc.list": {
|
|
1571
|
+
readonly params: z.ZodObject<{
|
|
1572
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1573
|
+
sort: z.ZodDefault<z.ZodEnum<{
|
|
1574
|
+
name: "name";
|
|
1575
|
+
cpu: "cpu";
|
|
1576
|
+
memory: "memory";
|
|
1577
|
+
pid: "pid";
|
|
1578
|
+
}>>;
|
|
1579
|
+
limit: z.ZodDefault<z.ZodInt>;
|
|
1580
|
+
}, z.core.$strict>;
|
|
1581
|
+
readonly result: z.ZodObject<{
|
|
1582
|
+
processes: z.ZodArray<z.ZodObject<{
|
|
1583
|
+
pid: z.ZodInt;
|
|
1584
|
+
ppid: z.ZodNullable<z.ZodInt>;
|
|
1585
|
+
name: z.ZodString;
|
|
1586
|
+
command: z.ZodString;
|
|
1587
|
+
cpu_percent: z.ZodNullable<z.ZodNumber>;
|
|
1588
|
+
memory_bytes: z.ZodNullable<z.ZodInt>;
|
|
1589
|
+
user: z.ZodNullable<z.ZodString>;
|
|
1590
|
+
}, z.core.$strict>>;
|
|
1591
|
+
total: z.ZodInt;
|
|
1592
|
+
truncated: z.ZodBoolean;
|
|
1593
|
+
}, z.core.$strict>;
|
|
1594
|
+
readonly kind: "unary";
|
|
1595
|
+
readonly since: "1.3";
|
|
1596
|
+
readonly errors: readonly ["INVALID_PARAMS", "PLATFORM_UNSUPPORTED", "INTERNAL"];
|
|
1597
|
+
};
|
|
1598
|
+
readonly "proc.ports": {
|
|
1599
|
+
readonly params: z.ZodObject<{
|
|
1600
|
+
port: z.ZodOptional<z.ZodInt>;
|
|
1601
|
+
}, z.core.$strict>;
|
|
1602
|
+
readonly result: z.ZodObject<{
|
|
1603
|
+
ports: z.ZodArray<z.ZodObject<{
|
|
1604
|
+
port: z.ZodInt;
|
|
1605
|
+
protocol: z.ZodEnum<{
|
|
1606
|
+
tcp: "tcp";
|
|
1607
|
+
udp: "udp";
|
|
1608
|
+
}>;
|
|
1609
|
+
address: z.ZodString;
|
|
1610
|
+
pid: z.ZodNullable<z.ZodInt>;
|
|
1611
|
+
process: z.ZodNullable<z.ZodString>;
|
|
1612
|
+
}, z.core.$strict>>;
|
|
1613
|
+
}, z.core.$strict>;
|
|
1614
|
+
readonly kind: "unary";
|
|
1615
|
+
readonly since: "1.3";
|
|
1616
|
+
readonly errors: readonly ["INVALID_PARAMS", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "INTERNAL"];
|
|
1617
|
+
};
|
|
1618
|
+
readonly "proc.kill": {
|
|
1619
|
+
readonly params: z.ZodObject<{
|
|
1620
|
+
pid: z.ZodInt;
|
|
1621
|
+
force: z.ZodDefault<z.ZodBoolean>;
|
|
1622
|
+
}, z.core.$strict>;
|
|
1623
|
+
readonly result: z.ZodObject<{
|
|
1624
|
+
pid: z.ZodInt;
|
|
1625
|
+
signal: z.ZodEnum<{
|
|
1626
|
+
SIGTERM: "SIGTERM";
|
|
1627
|
+
SIGKILL: "SIGKILL";
|
|
1628
|
+
}>;
|
|
1629
|
+
exited: z.ZodBoolean;
|
|
1630
|
+
}, z.core.$strict>;
|
|
1631
|
+
readonly kind: "unary";
|
|
1632
|
+
readonly since: "1.3";
|
|
1633
|
+
readonly errors: readonly ["NOT_FOUND", "AUTH_FORBIDDEN", "PERMISSION_DENIED_OS", "INVALID_PARAMS", "INTERNAL"];
|
|
1634
|
+
};
|
|
1635
|
+
readonly "clipboard.read": {
|
|
1636
|
+
readonly params: z.ZodObject<{}, z.core.$strict>;
|
|
1637
|
+
readonly result: z.ZodObject<{
|
|
1638
|
+
text: z.ZodString;
|
|
1639
|
+
truncated: z.ZodBoolean;
|
|
1640
|
+
}, z.core.$strict>;
|
|
1641
|
+
readonly kind: "unary";
|
|
1642
|
+
readonly since: "1.3";
|
|
1643
|
+
readonly errors: readonly ["PLATFORM_UNSUPPORTED", "INTERNAL"];
|
|
1644
|
+
};
|
|
1645
|
+
readonly "clipboard.write": {
|
|
1646
|
+
readonly params: z.ZodObject<{
|
|
1647
|
+
text: z.ZodString;
|
|
1648
|
+
}, z.core.$strict>;
|
|
1649
|
+
readonly result: z.ZodObject<{
|
|
1650
|
+
bytes: z.ZodInt;
|
|
1651
|
+
}, z.core.$strict>;
|
|
1652
|
+
readonly kind: "unary";
|
|
1653
|
+
readonly since: "1.3";
|
|
1654
|
+
readonly errors: readonly ["PLATFORM_UNSUPPORTED", "PAYLOAD_TOO_LARGE", "INTERNAL"];
|
|
1655
|
+
};
|
|
1570
1656
|
};
|
|
1571
1657
|
type OpName = keyof typeof OPS;
|
|
1572
1658
|
type OpParams<N extends OpName> = z.input<(typeof OPS)[N]["params"]>;
|
|
@@ -3502,6 +3588,92 @@ declare const NAMED_SCHEMAS: {
|
|
|
3502
3588
|
seq: z.ZodLiteral<0>;
|
|
3503
3589
|
}, z.core.$strict>;
|
|
3504
3590
|
readonly CloseCodeValue: z.ZodLiteral<1000 | 1001 | 1006 | 1012 | 1013 | 4001 | 4003 | 4004 | 4008 | 4009 | 4010 | 4400 | 4426>;
|
|
3591
|
+
readonly ProcSort: z.ZodEnum<{
|
|
3592
|
+
name: "name";
|
|
3593
|
+
cpu: "cpu";
|
|
3594
|
+
memory: "memory";
|
|
3595
|
+
pid: "pid";
|
|
3596
|
+
}>;
|
|
3597
|
+
readonly ProcListParams: z.ZodObject<{
|
|
3598
|
+
name: z.ZodOptional<z.ZodString>;
|
|
3599
|
+
sort: z.ZodDefault<z.ZodEnum<{
|
|
3600
|
+
name: "name";
|
|
3601
|
+
cpu: "cpu";
|
|
3602
|
+
memory: "memory";
|
|
3603
|
+
pid: "pid";
|
|
3604
|
+
}>>;
|
|
3605
|
+
limit: z.ZodDefault<z.ZodInt>;
|
|
3606
|
+
}, z.core.$strict>;
|
|
3607
|
+
readonly ProcInfo: z.ZodObject<{
|
|
3608
|
+
pid: z.ZodInt;
|
|
3609
|
+
ppid: z.ZodNullable<z.ZodInt>;
|
|
3610
|
+
name: z.ZodString;
|
|
3611
|
+
command: z.ZodString;
|
|
3612
|
+
cpu_percent: z.ZodNullable<z.ZodNumber>;
|
|
3613
|
+
memory_bytes: z.ZodNullable<z.ZodInt>;
|
|
3614
|
+
user: z.ZodNullable<z.ZodString>;
|
|
3615
|
+
}, z.core.$strict>;
|
|
3616
|
+
readonly ProcListResult: z.ZodObject<{
|
|
3617
|
+
processes: z.ZodArray<z.ZodObject<{
|
|
3618
|
+
pid: z.ZodInt;
|
|
3619
|
+
ppid: z.ZodNullable<z.ZodInt>;
|
|
3620
|
+
name: z.ZodString;
|
|
3621
|
+
command: z.ZodString;
|
|
3622
|
+
cpu_percent: z.ZodNullable<z.ZodNumber>;
|
|
3623
|
+
memory_bytes: z.ZodNullable<z.ZodInt>;
|
|
3624
|
+
user: z.ZodNullable<z.ZodString>;
|
|
3625
|
+
}, z.core.$strict>>;
|
|
3626
|
+
total: z.ZodInt;
|
|
3627
|
+
truncated: z.ZodBoolean;
|
|
3628
|
+
}, z.core.$strict>;
|
|
3629
|
+
readonly ProcPortsParams: z.ZodObject<{
|
|
3630
|
+
port: z.ZodOptional<z.ZodInt>;
|
|
3631
|
+
}, z.core.$strict>;
|
|
3632
|
+
readonly ProcPort: z.ZodObject<{
|
|
3633
|
+
port: z.ZodInt;
|
|
3634
|
+
protocol: z.ZodEnum<{
|
|
3635
|
+
tcp: "tcp";
|
|
3636
|
+
udp: "udp";
|
|
3637
|
+
}>;
|
|
3638
|
+
address: z.ZodString;
|
|
3639
|
+
pid: z.ZodNullable<z.ZodInt>;
|
|
3640
|
+
process: z.ZodNullable<z.ZodString>;
|
|
3641
|
+
}, z.core.$strict>;
|
|
3642
|
+
readonly ProcPortsResult: z.ZodObject<{
|
|
3643
|
+
ports: z.ZodArray<z.ZodObject<{
|
|
3644
|
+
port: z.ZodInt;
|
|
3645
|
+
protocol: z.ZodEnum<{
|
|
3646
|
+
tcp: "tcp";
|
|
3647
|
+
udp: "udp";
|
|
3648
|
+
}>;
|
|
3649
|
+
address: z.ZodString;
|
|
3650
|
+
pid: z.ZodNullable<z.ZodInt>;
|
|
3651
|
+
process: z.ZodNullable<z.ZodString>;
|
|
3652
|
+
}, z.core.$strict>>;
|
|
3653
|
+
}, z.core.$strict>;
|
|
3654
|
+
readonly ProcKillParams: z.ZodObject<{
|
|
3655
|
+
pid: z.ZodInt;
|
|
3656
|
+
force: z.ZodDefault<z.ZodBoolean>;
|
|
3657
|
+
}, z.core.$strict>;
|
|
3658
|
+
readonly ProcKillResult: z.ZodObject<{
|
|
3659
|
+
pid: z.ZodInt;
|
|
3660
|
+
signal: z.ZodEnum<{
|
|
3661
|
+
SIGTERM: "SIGTERM";
|
|
3662
|
+
SIGKILL: "SIGKILL";
|
|
3663
|
+
}>;
|
|
3664
|
+
exited: z.ZodBoolean;
|
|
3665
|
+
}, z.core.$strict>;
|
|
3666
|
+
readonly ClipboardReadParams: z.ZodObject<{}, z.core.$strict>;
|
|
3667
|
+
readonly ClipboardReadResult: z.ZodObject<{
|
|
3668
|
+
text: z.ZodString;
|
|
3669
|
+
truncated: z.ZodBoolean;
|
|
3670
|
+
}, z.core.$strict>;
|
|
3671
|
+
readonly ClipboardWriteParams: z.ZodObject<{
|
|
3672
|
+
text: z.ZodString;
|
|
3673
|
+
}, z.core.$strict>;
|
|
3674
|
+
readonly ClipboardWriteResult: z.ZodObject<{
|
|
3675
|
+
bytes: z.ZodInt;
|
|
3676
|
+
}, z.core.$strict>;
|
|
3505
3677
|
readonly ToolLevel: z.ZodEnum<{
|
|
3506
3678
|
programmatic: "programmatic";
|
|
3507
3679
|
protocol: "protocol";
|
package/dist/react.d.cts
CHANGED
|
@@ -1027,6 +1027,92 @@ declare const OPS: {
|
|
|
1027
1027
|
readonly since: "1.2";
|
|
1028
1028
|
readonly errors: readonly ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "AUTH_REQUIRED", "DEVICE_OFFLINE", "INTERNAL"];
|
|
1029
1029
|
};
|
|
1030
|
+
readonly "proc.list": {
|
|
1031
|
+
readonly params: z.ZodObject<{
|
|
1032
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1033
|
+
sort: z.ZodDefault<z.ZodEnum<{
|
|
1034
|
+
cpu: "cpu";
|
|
1035
|
+
memory: "memory";
|
|
1036
|
+
name: "name";
|
|
1037
|
+
pid: "pid";
|
|
1038
|
+
}>>;
|
|
1039
|
+
limit: z.ZodDefault<z.ZodInt>;
|
|
1040
|
+
}, z.core.$strict>;
|
|
1041
|
+
readonly result: z.ZodObject<{
|
|
1042
|
+
processes: z.ZodArray<z.ZodObject<{
|
|
1043
|
+
pid: z.ZodInt;
|
|
1044
|
+
ppid: z.ZodNullable<z.ZodInt>;
|
|
1045
|
+
name: z.ZodString;
|
|
1046
|
+
command: z.ZodString;
|
|
1047
|
+
cpu_percent: z.ZodNullable<z.ZodNumber>;
|
|
1048
|
+
memory_bytes: z.ZodNullable<z.ZodInt>;
|
|
1049
|
+
user: z.ZodNullable<z.ZodString>;
|
|
1050
|
+
}, z.core.$strict>>;
|
|
1051
|
+
total: z.ZodInt;
|
|
1052
|
+
truncated: z.ZodBoolean;
|
|
1053
|
+
}, z.core.$strict>;
|
|
1054
|
+
readonly kind: "unary";
|
|
1055
|
+
readonly since: "1.3";
|
|
1056
|
+
readonly errors: readonly ["INVALID_PARAMS", "PLATFORM_UNSUPPORTED", "INTERNAL"];
|
|
1057
|
+
};
|
|
1058
|
+
readonly "proc.ports": {
|
|
1059
|
+
readonly params: z.ZodObject<{
|
|
1060
|
+
port: z.ZodOptional<z.ZodInt>;
|
|
1061
|
+
}, z.core.$strict>;
|
|
1062
|
+
readonly result: z.ZodObject<{
|
|
1063
|
+
ports: z.ZodArray<z.ZodObject<{
|
|
1064
|
+
port: z.ZodInt;
|
|
1065
|
+
protocol: z.ZodEnum<{
|
|
1066
|
+
tcp: "tcp";
|
|
1067
|
+
udp: "udp";
|
|
1068
|
+
}>;
|
|
1069
|
+
address: z.ZodString;
|
|
1070
|
+
pid: z.ZodNullable<z.ZodInt>;
|
|
1071
|
+
process: z.ZodNullable<z.ZodString>;
|
|
1072
|
+
}, z.core.$strict>>;
|
|
1073
|
+
}, z.core.$strict>;
|
|
1074
|
+
readonly kind: "unary";
|
|
1075
|
+
readonly since: "1.3";
|
|
1076
|
+
readonly errors: readonly ["INVALID_PARAMS", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "INTERNAL"];
|
|
1077
|
+
};
|
|
1078
|
+
readonly "proc.kill": {
|
|
1079
|
+
readonly params: z.ZodObject<{
|
|
1080
|
+
pid: z.ZodInt;
|
|
1081
|
+
force: z.ZodDefault<z.ZodBoolean>;
|
|
1082
|
+
}, z.core.$strict>;
|
|
1083
|
+
readonly result: z.ZodObject<{
|
|
1084
|
+
pid: z.ZodInt;
|
|
1085
|
+
signal: z.ZodEnum<{
|
|
1086
|
+
SIGTERM: "SIGTERM";
|
|
1087
|
+
SIGKILL: "SIGKILL";
|
|
1088
|
+
}>;
|
|
1089
|
+
exited: z.ZodBoolean;
|
|
1090
|
+
}, z.core.$strict>;
|
|
1091
|
+
readonly kind: "unary";
|
|
1092
|
+
readonly since: "1.3";
|
|
1093
|
+
readonly errors: readonly ["NOT_FOUND", "AUTH_FORBIDDEN", "PERMISSION_DENIED_OS", "INVALID_PARAMS", "INTERNAL"];
|
|
1094
|
+
};
|
|
1095
|
+
readonly "clipboard.read": {
|
|
1096
|
+
readonly params: z.ZodObject<{}, z.core.$strict>;
|
|
1097
|
+
readonly result: z.ZodObject<{
|
|
1098
|
+
text: z.ZodString;
|
|
1099
|
+
truncated: z.ZodBoolean;
|
|
1100
|
+
}, z.core.$strict>;
|
|
1101
|
+
readonly kind: "unary";
|
|
1102
|
+
readonly since: "1.3";
|
|
1103
|
+
readonly errors: readonly ["PLATFORM_UNSUPPORTED", "INTERNAL"];
|
|
1104
|
+
};
|
|
1105
|
+
readonly "clipboard.write": {
|
|
1106
|
+
readonly params: z.ZodObject<{
|
|
1107
|
+
text: z.ZodString;
|
|
1108
|
+
}, z.core.$strict>;
|
|
1109
|
+
readonly result: z.ZodObject<{
|
|
1110
|
+
bytes: z.ZodInt;
|
|
1111
|
+
}, z.core.$strict>;
|
|
1112
|
+
readonly kind: "unary";
|
|
1113
|
+
readonly since: "1.3";
|
|
1114
|
+
readonly errors: readonly ["PLATFORM_UNSUPPORTED", "PAYLOAD_TOO_LARGE", "INTERNAL"];
|
|
1115
|
+
};
|
|
1030
1116
|
};
|
|
1031
1117
|
type OpName = keyof typeof OPS;
|
|
1032
1118
|
type OpParams<N extends OpName> = z.input<(typeof OPS)[N]["params"]>;
|
package/dist/react.d.ts
CHANGED
|
@@ -1027,6 +1027,92 @@ declare const OPS: {
|
|
|
1027
1027
|
readonly since: "1.2";
|
|
1028
1028
|
readonly errors: readonly ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "AUTH_REQUIRED", "DEVICE_OFFLINE", "INTERNAL"];
|
|
1029
1029
|
};
|
|
1030
|
+
readonly "proc.list": {
|
|
1031
|
+
readonly params: z.ZodObject<{
|
|
1032
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1033
|
+
sort: z.ZodDefault<z.ZodEnum<{
|
|
1034
|
+
cpu: "cpu";
|
|
1035
|
+
memory: "memory";
|
|
1036
|
+
name: "name";
|
|
1037
|
+
pid: "pid";
|
|
1038
|
+
}>>;
|
|
1039
|
+
limit: z.ZodDefault<z.ZodInt>;
|
|
1040
|
+
}, z.core.$strict>;
|
|
1041
|
+
readonly result: z.ZodObject<{
|
|
1042
|
+
processes: z.ZodArray<z.ZodObject<{
|
|
1043
|
+
pid: z.ZodInt;
|
|
1044
|
+
ppid: z.ZodNullable<z.ZodInt>;
|
|
1045
|
+
name: z.ZodString;
|
|
1046
|
+
command: z.ZodString;
|
|
1047
|
+
cpu_percent: z.ZodNullable<z.ZodNumber>;
|
|
1048
|
+
memory_bytes: z.ZodNullable<z.ZodInt>;
|
|
1049
|
+
user: z.ZodNullable<z.ZodString>;
|
|
1050
|
+
}, z.core.$strict>>;
|
|
1051
|
+
total: z.ZodInt;
|
|
1052
|
+
truncated: z.ZodBoolean;
|
|
1053
|
+
}, z.core.$strict>;
|
|
1054
|
+
readonly kind: "unary";
|
|
1055
|
+
readonly since: "1.3";
|
|
1056
|
+
readonly errors: readonly ["INVALID_PARAMS", "PLATFORM_UNSUPPORTED", "INTERNAL"];
|
|
1057
|
+
};
|
|
1058
|
+
readonly "proc.ports": {
|
|
1059
|
+
readonly params: z.ZodObject<{
|
|
1060
|
+
port: z.ZodOptional<z.ZodInt>;
|
|
1061
|
+
}, z.core.$strict>;
|
|
1062
|
+
readonly result: z.ZodObject<{
|
|
1063
|
+
ports: z.ZodArray<z.ZodObject<{
|
|
1064
|
+
port: z.ZodInt;
|
|
1065
|
+
protocol: z.ZodEnum<{
|
|
1066
|
+
tcp: "tcp";
|
|
1067
|
+
udp: "udp";
|
|
1068
|
+
}>;
|
|
1069
|
+
address: z.ZodString;
|
|
1070
|
+
pid: z.ZodNullable<z.ZodInt>;
|
|
1071
|
+
process: z.ZodNullable<z.ZodString>;
|
|
1072
|
+
}, z.core.$strict>>;
|
|
1073
|
+
}, z.core.$strict>;
|
|
1074
|
+
readonly kind: "unary";
|
|
1075
|
+
readonly since: "1.3";
|
|
1076
|
+
readonly errors: readonly ["INVALID_PARAMS", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "INTERNAL"];
|
|
1077
|
+
};
|
|
1078
|
+
readonly "proc.kill": {
|
|
1079
|
+
readonly params: z.ZodObject<{
|
|
1080
|
+
pid: z.ZodInt;
|
|
1081
|
+
force: z.ZodDefault<z.ZodBoolean>;
|
|
1082
|
+
}, z.core.$strict>;
|
|
1083
|
+
readonly result: z.ZodObject<{
|
|
1084
|
+
pid: z.ZodInt;
|
|
1085
|
+
signal: z.ZodEnum<{
|
|
1086
|
+
SIGTERM: "SIGTERM";
|
|
1087
|
+
SIGKILL: "SIGKILL";
|
|
1088
|
+
}>;
|
|
1089
|
+
exited: z.ZodBoolean;
|
|
1090
|
+
}, z.core.$strict>;
|
|
1091
|
+
readonly kind: "unary";
|
|
1092
|
+
readonly since: "1.3";
|
|
1093
|
+
readonly errors: readonly ["NOT_FOUND", "AUTH_FORBIDDEN", "PERMISSION_DENIED_OS", "INVALID_PARAMS", "INTERNAL"];
|
|
1094
|
+
};
|
|
1095
|
+
readonly "clipboard.read": {
|
|
1096
|
+
readonly params: z.ZodObject<{}, z.core.$strict>;
|
|
1097
|
+
readonly result: z.ZodObject<{
|
|
1098
|
+
text: z.ZodString;
|
|
1099
|
+
truncated: z.ZodBoolean;
|
|
1100
|
+
}, z.core.$strict>;
|
|
1101
|
+
readonly kind: "unary";
|
|
1102
|
+
readonly since: "1.3";
|
|
1103
|
+
readonly errors: readonly ["PLATFORM_UNSUPPORTED", "INTERNAL"];
|
|
1104
|
+
};
|
|
1105
|
+
readonly "clipboard.write": {
|
|
1106
|
+
readonly params: z.ZodObject<{
|
|
1107
|
+
text: z.ZodString;
|
|
1108
|
+
}, z.core.$strict>;
|
|
1109
|
+
readonly result: z.ZodObject<{
|
|
1110
|
+
bytes: z.ZodInt;
|
|
1111
|
+
}, z.core.$strict>;
|
|
1112
|
+
readonly kind: "unary";
|
|
1113
|
+
readonly since: "1.3";
|
|
1114
|
+
readonly errors: readonly ["PLATFORM_UNSUPPORTED", "PAYLOAD_TOO_LARGE", "INTERNAL"];
|
|
1115
|
+
};
|
|
1030
1116
|
};
|
|
1031
1117
|
type OpName = keyof typeof OPS;
|
|
1032
1118
|
type OpParams<N extends OpName> = z.input<(typeof OPS)[N]["params"]>;
|