@harness-control/protocol 0.2.0 → 0.4.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/dist/accounts.d.ts +312 -0
- package/dist/accounts.js +132 -0
- package/dist/index.d.ts +186 -156
- package/dist/index.js +14 -10
- package/fixtures/conformance/invalid/accounts-negative-quota.json +35 -0
- package/fixtures/conformance/invalid/accounts-secret.json +36 -0
- package/fixtures/conformance/invalid/local-action-lease-binding-mismatch.json +1 -3
- package/fixtures/conformance/invalid/local-action-missing-turn-id.json +0 -1
- package/fixtures/conformance/invalid/local-action-patch-missing-base-hash.json +1 -3
- package/fixtures/conformance/invalid/local-action-shell-missing-approval.json +4 -4
- package/fixtures/conformance/valid/accounts-read.json +11 -0
- package/fixtures/conformance/valid/accounts-snapshot.json +35 -0
- package/fixtures/conformance/valid/accounts-unavailable.json +21 -0
- package/fixtures/conformance/valid/local-action-dev-server-start.json +5 -4
- package/fixtures/conformance/valid/local-action-dev-server-stop.json +1 -3
- package/fixtures/conformance/valid/local-action-error.json +1 -3
- package/fixtures/conformance/valid/local-action-filesystem-list.json +1 -3
- package/fixtures/conformance/valid/local-action-filesystem-patch.json +1 -3
- package/fixtures/conformance/valid/local-action-filesystem-read.json +1 -3
- package/fixtures/conformance/valid/local-action-filesystem-write.json +1 -3
- package/fixtures/conformance/valid/local-action-git-diff.json +4 -4
- package/fixtures/conformance/valid/local-action-git-status.json +1 -3
- package/fixtures/conformance/valid/local-action-response.json +4 -4
- package/fixtures/conformance/valid/local-action-shell-exec.json +4 -4
- package/fixtures/conformance/valid/session-start-with-leases.json +13 -8
- package/package.json +1 -1
- package/schemas/hcp-message.schema.json +391 -244
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import { type HcpAccountsReadPayload, type HcpAccountsSnapshotPayload } from "./accounts.js";
|
|
2
|
+
export * from "./accounts.js";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
export declare const HCP_VERSION: "hcp.v0";
|
|
3
5
|
export declare const HCP_METADATA_MAX_ENCODED_BYTES: number;
|
|
4
6
|
export declare const HCP_PAYLOAD_MAX_ENCODED_BYTES: number;
|
|
5
7
|
export declare const HCP_MESSAGE_MAX_ENCODED_BYTES: number;
|
|
6
8
|
export type HcpVersion = typeof HCP_VERSION;
|
|
7
|
-
export declare const HOST_LIFECYCLE_MESSAGE_TYPES: readonly ["host.hello", "host.accepted", "host.rejected", "host.heartbeat", "host.capabilities.updated", "host.replay.unavailable", "host.workspaces.request", "host.workspaces.result"];
|
|
9
|
+
export declare const HOST_LIFECYCLE_MESSAGE_TYPES: readonly ["host.accounts.read", "host.accounts.snapshot", "host.hello", "host.accepted", "host.rejected", "host.heartbeat", "host.capabilities.updated", "host.replay.unavailable", "host.workspaces.request", "host.workspaces.result"];
|
|
8
10
|
export declare const CONTROL_PLANE_COMMAND_MESSAGE_TYPES: readonly ["harness.session.start", "harness.session.snapshot.request", "harness.turn.send", "harness.turn.cancel", "harness.session.stop", "harness.approval.respond", "harness.input.respond", "tool_servers.detach"];
|
|
9
11
|
export declare const COMMAND_ACK_MESSAGE_TYPES: readonly ["hcp.command.ack", "hcp.command.nack"];
|
|
10
12
|
export declare const LOCAL_ACTION_MESSAGE_TYPES: readonly ["local.action.request", "local.action.response", "local.action.error"];
|
|
@@ -231,11 +233,7 @@ export type LocalCapabilityGrant = {
|
|
|
231
233
|
};
|
|
232
234
|
export type LocalCapabilityLease = {
|
|
233
235
|
lease_id: string;
|
|
234
|
-
org_id: string;
|
|
235
236
|
actor_id?: string;
|
|
236
|
-
workflow_id: string;
|
|
237
|
-
run_id: string;
|
|
238
|
-
node_id: string;
|
|
239
237
|
hcp_session_id: string;
|
|
240
238
|
execution_host_id: string;
|
|
241
239
|
provider_instance_id: string;
|
|
@@ -331,13 +329,11 @@ export type LocalActionAttribution = {
|
|
|
331
329
|
turn_id: string;
|
|
332
330
|
workspace_id: string;
|
|
333
331
|
provider_instance_id: string;
|
|
334
|
-
run_id: string;
|
|
335
332
|
};
|
|
336
333
|
export type LocalActionLeaseBinding = {
|
|
337
334
|
lease_id: string;
|
|
338
335
|
capability_id: LocalActionProtocolCapabilityId;
|
|
339
336
|
scope: string;
|
|
340
|
-
run_id: string;
|
|
341
337
|
hcp_session_id: string;
|
|
342
338
|
execution_host_id: string;
|
|
343
339
|
provider_instance_id: string;
|
|
@@ -885,10 +881,15 @@ export declare const hcpMcpStdioProfileSnapshotSchema: z.ZodObject<{
|
|
|
885
881
|
export declare const hcpWorkspaceManagementSchema: z.ZodObject<{
|
|
886
882
|
revision: z.ZodString;
|
|
887
883
|
allowed_roots: z.ZodArray<z.ZodString>;
|
|
884
|
+
directory_browsing: z.ZodOptional<z.ZodLiteral<true>>;
|
|
888
885
|
}, z.core.$strict>;
|
|
889
886
|
export type HcpWorkspaceManagement = z.infer<typeof hcpWorkspaceManagementSchema>;
|
|
890
887
|
export declare const hcpWorkspaceOperationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
891
888
|
kind: z.ZodLiteral<"list">;
|
|
889
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
890
|
+
kind: z.ZodLiteral<"browse">;
|
|
891
|
+
path: z.ZodOptional<z.ZodString>;
|
|
892
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
892
893
|
}, z.core.$strict>, z.ZodObject<{
|
|
893
894
|
kind: z.ZodLiteral<"add">;
|
|
894
895
|
path: z.ZodString;
|
|
@@ -907,6 +908,10 @@ export declare const hcpWorkspacesRequestPayloadSchema: z.ZodObject<{
|
|
|
907
908
|
expires_at: z.ZodString;
|
|
908
909
|
operation: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
909
910
|
kind: z.ZodLiteral<"list">;
|
|
911
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
912
|
+
kind: z.ZodLiteral<"browse">;
|
|
913
|
+
path: z.ZodOptional<z.ZodString>;
|
|
914
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
910
915
|
}, z.core.$strict>, z.ZodObject<{
|
|
911
916
|
kind: z.ZodLiteral<"add">;
|
|
912
917
|
path: z.ZodString;
|
|
@@ -925,6 +930,15 @@ export declare const hcpWorkspacesResultPayloadSchema: z.ZodObject<{
|
|
|
925
930
|
request_id: z.ZodString;
|
|
926
931
|
outcome: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
927
932
|
kind: z.ZodLiteral<"success">;
|
|
933
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
934
|
+
kind: z.ZodLiteral<"directory">;
|
|
935
|
+
path: z.ZodString;
|
|
936
|
+
parent: z.ZodOptional<z.ZodString>;
|
|
937
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
938
|
+
name: z.ZodString;
|
|
939
|
+
path: z.ZodString;
|
|
940
|
+
}, z.core.$strict>>;
|
|
941
|
+
next_cursor: z.ZodOptional<z.ZodString>;
|
|
928
942
|
}, z.core.$strict>, z.ZodObject<{
|
|
929
943
|
kind: z.ZodLiteral<"error">;
|
|
930
944
|
message: z.ZodString;
|
|
@@ -932,6 +946,7 @@ export declare const hcpWorkspacesResultPayloadSchema: z.ZodObject<{
|
|
|
932
946
|
management: z.ZodObject<{
|
|
933
947
|
revision: z.ZodString;
|
|
934
948
|
allowed_roots: z.ZodArray<z.ZodString>;
|
|
949
|
+
directory_browsing: z.ZodOptional<z.ZodLiteral<true>>;
|
|
935
950
|
}, z.core.$strict>;
|
|
936
951
|
workspaces: z.ZodArray<z.ZodObject<{
|
|
937
952
|
id: z.ZodString;
|
|
@@ -1053,6 +1068,7 @@ export declare const hcpHostCapabilitiesUpdatedPayloadSchema: z.ZodObject<{
|
|
|
1053
1068
|
workspace_management: z.ZodOptional<z.ZodObject<{
|
|
1054
1069
|
revision: z.ZodString;
|
|
1055
1070
|
allowed_roots: z.ZodArray<z.ZodString>;
|
|
1071
|
+
directory_browsing: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1056
1072
|
}, z.core.$strict>>;
|
|
1057
1073
|
mcp_stdio_profiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1058
1074
|
id: z.ZodString;
|
|
@@ -1153,11 +1169,7 @@ export declare const localCapabilityGrantSchema: z.ZodObject<{
|
|
|
1153
1169
|
}, z.core.$strict>;
|
|
1154
1170
|
export declare const localCapabilityLeaseSchema: z.ZodObject<{
|
|
1155
1171
|
lease_id: z.ZodString;
|
|
1156
|
-
org_id: z.ZodString;
|
|
1157
1172
|
actor_id: z.ZodOptional<z.ZodString>;
|
|
1158
|
-
workflow_id: z.ZodString;
|
|
1159
|
-
run_id: z.ZodString;
|
|
1160
|
-
node_id: z.ZodString;
|
|
1161
1173
|
hcp_session_id: z.ZodString;
|
|
1162
1174
|
execution_host_id: z.ZodString;
|
|
1163
1175
|
provider_instance_id: z.ZodString;
|
|
@@ -1275,11 +1287,7 @@ export declare const hcpSessionStartPayloadSchema: z.ZodObject<{
|
|
|
1275
1287
|
}, z.core.$strict>>;
|
|
1276
1288
|
local_capability_lease: z.ZodOptional<z.ZodObject<{
|
|
1277
1289
|
lease_id: z.ZodString;
|
|
1278
|
-
org_id: z.ZodString;
|
|
1279
1290
|
actor_id: z.ZodOptional<z.ZodString>;
|
|
1280
|
-
workflow_id: z.ZodString;
|
|
1281
|
-
run_id: z.ZodString;
|
|
1282
|
-
node_id: z.ZodString;
|
|
1283
1291
|
hcp_session_id: z.ZodString;
|
|
1284
1292
|
execution_host_id: z.ZodString;
|
|
1285
1293
|
provider_instance_id: z.ZodString;
|
|
@@ -1391,7 +1399,6 @@ export declare const localFilesystemReadRequestPayloadSchema: z.ZodObject<{
|
|
|
1391
1399
|
action: z.ZodLiteral<"local.filesystem.read">;
|
|
1392
1400
|
lease: z.ZodObject<{
|
|
1393
1401
|
lease_id: z.ZodString;
|
|
1394
|
-
run_id: z.ZodString;
|
|
1395
1402
|
hcp_session_id: z.ZodString;
|
|
1396
1403
|
execution_host_id: z.ZodString;
|
|
1397
1404
|
provider_instance_id: z.ZodString;
|
|
@@ -1426,7 +1433,6 @@ export declare const localFilesystemReadRequestPayloadSchema: z.ZodObject<{
|
|
|
1426
1433
|
turn_id: z.ZodString;
|
|
1427
1434
|
workspace_id: z.ZodString;
|
|
1428
1435
|
provider_instance_id: z.ZodString;
|
|
1429
|
-
run_id: z.ZodString;
|
|
1430
1436
|
}, z.core.$strict>;
|
|
1431
1437
|
sandbox: z.ZodObject<{
|
|
1432
1438
|
mode: z.ZodEnum<{
|
|
@@ -1466,7 +1472,6 @@ export declare const localFilesystemListRequestPayloadSchema: z.ZodObject<{
|
|
|
1466
1472
|
action: z.ZodLiteral<"local.filesystem.list">;
|
|
1467
1473
|
lease: z.ZodObject<{
|
|
1468
1474
|
lease_id: z.ZodString;
|
|
1469
|
-
run_id: z.ZodString;
|
|
1470
1475
|
hcp_session_id: z.ZodString;
|
|
1471
1476
|
execution_host_id: z.ZodString;
|
|
1472
1477
|
provider_instance_id: z.ZodString;
|
|
@@ -1496,7 +1501,6 @@ export declare const localFilesystemListRequestPayloadSchema: z.ZodObject<{
|
|
|
1496
1501
|
turn_id: z.ZodString;
|
|
1497
1502
|
workspace_id: z.ZodString;
|
|
1498
1503
|
provider_instance_id: z.ZodString;
|
|
1499
|
-
run_id: z.ZodString;
|
|
1500
1504
|
}, z.core.$strict>;
|
|
1501
1505
|
sandbox: z.ZodObject<{
|
|
1502
1506
|
mode: z.ZodEnum<{
|
|
@@ -1536,7 +1540,6 @@ export declare const localFilesystemWriteRequestPayloadSchema: z.ZodObject<{
|
|
|
1536
1540
|
action: z.ZodLiteral<"local.filesystem.write">;
|
|
1537
1541
|
lease: z.ZodObject<{
|
|
1538
1542
|
lease_id: z.ZodString;
|
|
1539
|
-
run_id: z.ZodString;
|
|
1540
1543
|
hcp_session_id: z.ZodString;
|
|
1541
1544
|
execution_host_id: z.ZodString;
|
|
1542
1545
|
provider_instance_id: z.ZodString;
|
|
@@ -1566,7 +1569,6 @@ export declare const localFilesystemWriteRequestPayloadSchema: z.ZodObject<{
|
|
|
1566
1569
|
turn_id: z.ZodString;
|
|
1567
1570
|
workspace_id: z.ZodString;
|
|
1568
1571
|
provider_instance_id: z.ZodString;
|
|
1569
|
-
run_id: z.ZodString;
|
|
1570
1572
|
}, z.core.$strict>;
|
|
1571
1573
|
sandbox: z.ZodObject<{
|
|
1572
1574
|
mode: z.ZodEnum<{
|
|
@@ -1614,7 +1616,6 @@ export declare const localFilesystemPatchRequestPayloadSchema: z.ZodObject<{
|
|
|
1614
1616
|
action: z.ZodLiteral<"local.filesystem.patch">;
|
|
1615
1617
|
lease: z.ZodObject<{
|
|
1616
1618
|
lease_id: z.ZodString;
|
|
1617
|
-
run_id: z.ZodString;
|
|
1618
1619
|
hcp_session_id: z.ZodString;
|
|
1619
1620
|
execution_host_id: z.ZodString;
|
|
1620
1621
|
provider_instance_id: z.ZodString;
|
|
@@ -1639,7 +1640,6 @@ export declare const localFilesystemPatchRequestPayloadSchema: z.ZodObject<{
|
|
|
1639
1640
|
turn_id: z.ZodString;
|
|
1640
1641
|
workspace_id: z.ZodString;
|
|
1641
1642
|
provider_instance_id: z.ZodString;
|
|
1642
|
-
run_id: z.ZodString;
|
|
1643
1643
|
}, z.core.$strict>;
|
|
1644
1644
|
sandbox: z.ZodObject<{
|
|
1645
1645
|
mode: z.ZodEnum<{
|
|
@@ -1687,7 +1687,6 @@ export declare const localGitStatusRequestPayloadSchema: z.ZodObject<{
|
|
|
1687
1687
|
action: z.ZodLiteral<"local.git.status">;
|
|
1688
1688
|
lease: z.ZodObject<{
|
|
1689
1689
|
lease_id: z.ZodString;
|
|
1690
|
-
run_id: z.ZodString;
|
|
1691
1690
|
hcp_session_id: z.ZodString;
|
|
1692
1691
|
execution_host_id: z.ZodString;
|
|
1693
1692
|
provider_instance_id: z.ZodString;
|
|
@@ -1718,7 +1717,6 @@ export declare const localGitStatusRequestPayloadSchema: z.ZodObject<{
|
|
|
1718
1717
|
turn_id: z.ZodString;
|
|
1719
1718
|
workspace_id: z.ZodString;
|
|
1720
1719
|
provider_instance_id: z.ZodString;
|
|
1721
|
-
run_id: z.ZodString;
|
|
1722
1720
|
}, z.core.$strict>;
|
|
1723
1721
|
sandbox: z.ZodObject<{
|
|
1724
1722
|
mode: z.ZodEnum<{
|
|
@@ -1758,7 +1756,6 @@ export declare const localGitDiffRequestPayloadSchema: z.ZodObject<{
|
|
|
1758
1756
|
action: z.ZodLiteral<"local.git.diff">;
|
|
1759
1757
|
lease: z.ZodObject<{
|
|
1760
1758
|
lease_id: z.ZodString;
|
|
1761
|
-
run_id: z.ZodString;
|
|
1762
1759
|
hcp_session_id: z.ZodString;
|
|
1763
1760
|
execution_host_id: z.ZodString;
|
|
1764
1761
|
provider_instance_id: z.ZodString;
|
|
@@ -1787,7 +1784,6 @@ export declare const localGitDiffRequestPayloadSchema: z.ZodObject<{
|
|
|
1787
1784
|
turn_id: z.ZodString;
|
|
1788
1785
|
workspace_id: z.ZodString;
|
|
1789
1786
|
provider_instance_id: z.ZodString;
|
|
1790
|
-
run_id: z.ZodString;
|
|
1791
1787
|
}, z.core.$strict>;
|
|
1792
1788
|
sandbox: z.ZodObject<{
|
|
1793
1789
|
mode: z.ZodEnum<{
|
|
@@ -1827,7 +1823,6 @@ export declare const localShellExecRequestPayloadSchema: z.ZodObject<{
|
|
|
1827
1823
|
action: z.ZodLiteral<"local.shell.exec">;
|
|
1828
1824
|
lease: z.ZodObject<{
|
|
1829
1825
|
lease_id: z.ZodString;
|
|
1830
|
-
run_id: z.ZodString;
|
|
1831
1826
|
hcp_session_id: z.ZodString;
|
|
1832
1827
|
execution_host_id: z.ZodString;
|
|
1833
1828
|
provider_instance_id: z.ZodString;
|
|
@@ -1870,7 +1865,6 @@ export declare const localShellExecRequestPayloadSchema: z.ZodObject<{
|
|
|
1870
1865
|
turn_id: z.ZodString;
|
|
1871
1866
|
workspace_id: z.ZodString;
|
|
1872
1867
|
provider_instance_id: z.ZodString;
|
|
1873
|
-
run_id: z.ZodString;
|
|
1874
1868
|
}, z.core.$strict>;
|
|
1875
1869
|
sandbox: z.ZodObject<{
|
|
1876
1870
|
mode: z.ZodEnum<{
|
|
@@ -1897,7 +1891,6 @@ export declare const localDevServerStartRequestPayloadSchema: z.ZodObject<{
|
|
|
1897
1891
|
action: z.ZodLiteral<"local.dev_server.start">;
|
|
1898
1892
|
lease: z.ZodObject<{
|
|
1899
1893
|
lease_id: z.ZodString;
|
|
1900
|
-
run_id: z.ZodString;
|
|
1901
1894
|
hcp_session_id: z.ZodString;
|
|
1902
1895
|
execution_host_id: z.ZodString;
|
|
1903
1896
|
provider_instance_id: z.ZodString;
|
|
@@ -1941,7 +1934,6 @@ export declare const localDevServerStartRequestPayloadSchema: z.ZodObject<{
|
|
|
1941
1934
|
turn_id: z.ZodString;
|
|
1942
1935
|
workspace_id: z.ZodString;
|
|
1943
1936
|
provider_instance_id: z.ZodString;
|
|
1944
|
-
run_id: z.ZodString;
|
|
1945
1937
|
}, z.core.$strict>;
|
|
1946
1938
|
sandbox: z.ZodObject<{
|
|
1947
1939
|
mode: z.ZodEnum<{
|
|
@@ -1976,7 +1968,6 @@ export declare const localDevServerStopRequestPayloadSchema: z.ZodObject<{
|
|
|
1976
1968
|
action: z.ZodLiteral<"local.dev_server.stop">;
|
|
1977
1969
|
lease: z.ZodObject<{
|
|
1978
1970
|
lease_id: z.ZodString;
|
|
1979
|
-
run_id: z.ZodString;
|
|
1980
1971
|
hcp_session_id: z.ZodString;
|
|
1981
1972
|
execution_host_id: z.ZodString;
|
|
1982
1973
|
provider_instance_id: z.ZodString;
|
|
@@ -2000,7 +1991,6 @@ export declare const localDevServerStopRequestPayloadSchema: z.ZodObject<{
|
|
|
2000
1991
|
turn_id: z.ZodString;
|
|
2001
1992
|
workspace_id: z.ZodString;
|
|
2002
1993
|
provider_instance_id: z.ZodString;
|
|
2003
|
-
run_id: z.ZodString;
|
|
2004
1994
|
}, z.core.$strict>;
|
|
2005
1995
|
sandbox: z.ZodObject<{
|
|
2006
1996
|
mode: z.ZodEnum<{
|
|
@@ -2048,7 +2038,6 @@ export declare const localActionRequestPayloadSchema: z.ZodDiscriminatedUnion<[z
|
|
|
2048
2038
|
action: z.ZodLiteral<"local.filesystem.read">;
|
|
2049
2039
|
lease: z.ZodObject<{
|
|
2050
2040
|
lease_id: z.ZodString;
|
|
2051
|
-
run_id: z.ZodString;
|
|
2052
2041
|
hcp_session_id: z.ZodString;
|
|
2053
2042
|
execution_host_id: z.ZodString;
|
|
2054
2043
|
provider_instance_id: z.ZodString;
|
|
@@ -2083,7 +2072,6 @@ export declare const localActionRequestPayloadSchema: z.ZodDiscriminatedUnion<[z
|
|
|
2083
2072
|
turn_id: z.ZodString;
|
|
2084
2073
|
workspace_id: z.ZodString;
|
|
2085
2074
|
provider_instance_id: z.ZodString;
|
|
2086
|
-
run_id: z.ZodString;
|
|
2087
2075
|
}, z.core.$strict>;
|
|
2088
2076
|
sandbox: z.ZodObject<{
|
|
2089
2077
|
mode: z.ZodEnum<{
|
|
@@ -2122,7 +2110,6 @@ export declare const localActionRequestPayloadSchema: z.ZodDiscriminatedUnion<[z
|
|
|
2122
2110
|
action: z.ZodLiteral<"local.filesystem.list">;
|
|
2123
2111
|
lease: z.ZodObject<{
|
|
2124
2112
|
lease_id: z.ZodString;
|
|
2125
|
-
run_id: z.ZodString;
|
|
2126
2113
|
hcp_session_id: z.ZodString;
|
|
2127
2114
|
execution_host_id: z.ZodString;
|
|
2128
2115
|
provider_instance_id: z.ZodString;
|
|
@@ -2152,7 +2139,6 @@ export declare const localActionRequestPayloadSchema: z.ZodDiscriminatedUnion<[z
|
|
|
2152
2139
|
turn_id: z.ZodString;
|
|
2153
2140
|
workspace_id: z.ZodString;
|
|
2154
2141
|
provider_instance_id: z.ZodString;
|
|
2155
|
-
run_id: z.ZodString;
|
|
2156
2142
|
}, z.core.$strict>;
|
|
2157
2143
|
sandbox: z.ZodObject<{
|
|
2158
2144
|
mode: z.ZodEnum<{
|
|
@@ -2191,7 +2177,6 @@ export declare const localActionRequestPayloadSchema: z.ZodDiscriminatedUnion<[z
|
|
|
2191
2177
|
action: z.ZodLiteral<"local.filesystem.write">;
|
|
2192
2178
|
lease: z.ZodObject<{
|
|
2193
2179
|
lease_id: z.ZodString;
|
|
2194
|
-
run_id: z.ZodString;
|
|
2195
2180
|
hcp_session_id: z.ZodString;
|
|
2196
2181
|
execution_host_id: z.ZodString;
|
|
2197
2182
|
provider_instance_id: z.ZodString;
|
|
@@ -2221,7 +2206,6 @@ export declare const localActionRequestPayloadSchema: z.ZodDiscriminatedUnion<[z
|
|
|
2221
2206
|
turn_id: z.ZodString;
|
|
2222
2207
|
workspace_id: z.ZodString;
|
|
2223
2208
|
provider_instance_id: z.ZodString;
|
|
2224
|
-
run_id: z.ZodString;
|
|
2225
2209
|
}, z.core.$strict>;
|
|
2226
2210
|
sandbox: z.ZodObject<{
|
|
2227
2211
|
mode: z.ZodEnum<{
|
|
@@ -2268,7 +2252,6 @@ export declare const localActionRequestPayloadSchema: z.ZodDiscriminatedUnion<[z
|
|
|
2268
2252
|
action: z.ZodLiteral<"local.filesystem.patch">;
|
|
2269
2253
|
lease: z.ZodObject<{
|
|
2270
2254
|
lease_id: z.ZodString;
|
|
2271
|
-
run_id: z.ZodString;
|
|
2272
2255
|
hcp_session_id: z.ZodString;
|
|
2273
2256
|
execution_host_id: z.ZodString;
|
|
2274
2257
|
provider_instance_id: z.ZodString;
|
|
@@ -2293,7 +2276,6 @@ export declare const localActionRequestPayloadSchema: z.ZodDiscriminatedUnion<[z
|
|
|
2293
2276
|
turn_id: z.ZodString;
|
|
2294
2277
|
workspace_id: z.ZodString;
|
|
2295
2278
|
provider_instance_id: z.ZodString;
|
|
2296
|
-
run_id: z.ZodString;
|
|
2297
2279
|
}, z.core.$strict>;
|
|
2298
2280
|
sandbox: z.ZodObject<{
|
|
2299
2281
|
mode: z.ZodEnum<{
|
|
@@ -2340,7 +2322,6 @@ export declare const localActionRequestPayloadSchema: z.ZodDiscriminatedUnion<[z
|
|
|
2340
2322
|
action: z.ZodLiteral<"local.git.status">;
|
|
2341
2323
|
lease: z.ZodObject<{
|
|
2342
2324
|
lease_id: z.ZodString;
|
|
2343
|
-
run_id: z.ZodString;
|
|
2344
2325
|
hcp_session_id: z.ZodString;
|
|
2345
2326
|
execution_host_id: z.ZodString;
|
|
2346
2327
|
provider_instance_id: z.ZodString;
|
|
@@ -2371,7 +2352,6 @@ export declare const localActionRequestPayloadSchema: z.ZodDiscriminatedUnion<[z
|
|
|
2371
2352
|
turn_id: z.ZodString;
|
|
2372
2353
|
workspace_id: z.ZodString;
|
|
2373
2354
|
provider_instance_id: z.ZodString;
|
|
2374
|
-
run_id: z.ZodString;
|
|
2375
2355
|
}, z.core.$strict>;
|
|
2376
2356
|
sandbox: z.ZodObject<{
|
|
2377
2357
|
mode: z.ZodEnum<{
|
|
@@ -2410,7 +2390,6 @@ export declare const localActionRequestPayloadSchema: z.ZodDiscriminatedUnion<[z
|
|
|
2410
2390
|
action: z.ZodLiteral<"local.git.diff">;
|
|
2411
2391
|
lease: z.ZodObject<{
|
|
2412
2392
|
lease_id: z.ZodString;
|
|
2413
|
-
run_id: z.ZodString;
|
|
2414
2393
|
hcp_session_id: z.ZodString;
|
|
2415
2394
|
execution_host_id: z.ZodString;
|
|
2416
2395
|
provider_instance_id: z.ZodString;
|
|
@@ -2439,7 +2418,6 @@ export declare const localActionRequestPayloadSchema: z.ZodDiscriminatedUnion<[z
|
|
|
2439
2418
|
turn_id: z.ZodString;
|
|
2440
2419
|
workspace_id: z.ZodString;
|
|
2441
2420
|
provider_instance_id: z.ZodString;
|
|
2442
|
-
run_id: z.ZodString;
|
|
2443
2421
|
}, z.core.$strict>;
|
|
2444
2422
|
sandbox: z.ZodObject<{
|
|
2445
2423
|
mode: z.ZodEnum<{
|
|
@@ -2478,7 +2456,6 @@ export declare const localActionRequestPayloadSchema: z.ZodDiscriminatedUnion<[z
|
|
|
2478
2456
|
action: z.ZodLiteral<"local.shell.exec">;
|
|
2479
2457
|
lease: z.ZodObject<{
|
|
2480
2458
|
lease_id: z.ZodString;
|
|
2481
|
-
run_id: z.ZodString;
|
|
2482
2459
|
hcp_session_id: z.ZodString;
|
|
2483
2460
|
execution_host_id: z.ZodString;
|
|
2484
2461
|
provider_instance_id: z.ZodString;
|
|
@@ -2521,7 +2498,6 @@ export declare const localActionRequestPayloadSchema: z.ZodDiscriminatedUnion<[z
|
|
|
2521
2498
|
turn_id: z.ZodString;
|
|
2522
2499
|
workspace_id: z.ZodString;
|
|
2523
2500
|
provider_instance_id: z.ZodString;
|
|
2524
|
-
run_id: z.ZodString;
|
|
2525
2501
|
}, z.core.$strict>;
|
|
2526
2502
|
sandbox: z.ZodObject<{
|
|
2527
2503
|
mode: z.ZodEnum<{
|
|
@@ -2547,7 +2523,6 @@ export declare const localActionRequestPayloadSchema: z.ZodDiscriminatedUnion<[z
|
|
|
2547
2523
|
action: z.ZodLiteral<"local.dev_server.start">;
|
|
2548
2524
|
lease: z.ZodObject<{
|
|
2549
2525
|
lease_id: z.ZodString;
|
|
2550
|
-
run_id: z.ZodString;
|
|
2551
2526
|
hcp_session_id: z.ZodString;
|
|
2552
2527
|
execution_host_id: z.ZodString;
|
|
2553
2528
|
provider_instance_id: z.ZodString;
|
|
@@ -2591,7 +2566,6 @@ export declare const localActionRequestPayloadSchema: z.ZodDiscriminatedUnion<[z
|
|
|
2591
2566
|
turn_id: z.ZodString;
|
|
2592
2567
|
workspace_id: z.ZodString;
|
|
2593
2568
|
provider_instance_id: z.ZodString;
|
|
2594
|
-
run_id: z.ZodString;
|
|
2595
2569
|
}, z.core.$strict>;
|
|
2596
2570
|
sandbox: z.ZodObject<{
|
|
2597
2571
|
mode: z.ZodEnum<{
|
|
@@ -2625,7 +2599,6 @@ export declare const localActionRequestPayloadSchema: z.ZodDiscriminatedUnion<[z
|
|
|
2625
2599
|
action: z.ZodLiteral<"local.dev_server.stop">;
|
|
2626
2600
|
lease: z.ZodObject<{
|
|
2627
2601
|
lease_id: z.ZodString;
|
|
2628
|
-
run_id: z.ZodString;
|
|
2629
2602
|
hcp_session_id: z.ZodString;
|
|
2630
2603
|
execution_host_id: z.ZodString;
|
|
2631
2604
|
provider_instance_id: z.ZodString;
|
|
@@ -2649,7 +2622,6 @@ export declare const localActionRequestPayloadSchema: z.ZodDiscriminatedUnion<[z
|
|
|
2649
2622
|
turn_id: z.ZodString;
|
|
2650
2623
|
workspace_id: z.ZodString;
|
|
2651
2624
|
provider_instance_id: z.ZodString;
|
|
2652
|
-
run_id: z.ZodString;
|
|
2653
2625
|
}, z.core.$strict>;
|
|
2654
2626
|
sandbox: z.ZodObject<{
|
|
2655
2627
|
mode: z.ZodEnum<{
|
|
@@ -2697,7 +2669,6 @@ export declare const localActionResponsePayloadSchema: z.ZodDiscriminatedUnion<[
|
|
|
2697
2669
|
action: z.ZodLiteral<"local.filesystem.read">;
|
|
2698
2670
|
lease: z.ZodObject<{
|
|
2699
2671
|
lease_id: z.ZodString;
|
|
2700
|
-
run_id: z.ZodString;
|
|
2701
2672
|
hcp_session_id: z.ZodString;
|
|
2702
2673
|
execution_host_id: z.ZodString;
|
|
2703
2674
|
provider_instance_id: z.ZodString;
|
|
@@ -2724,7 +2695,6 @@ export declare const localActionResponsePayloadSchema: z.ZodDiscriminatedUnion<[
|
|
|
2724
2695
|
turn_id: z.ZodString;
|
|
2725
2696
|
workspace_id: z.ZodString;
|
|
2726
2697
|
provider_instance_id: z.ZodString;
|
|
2727
|
-
run_id: z.ZodString;
|
|
2728
2698
|
}, z.core.$strict>;
|
|
2729
2699
|
audit_events: z.ZodObject<{
|
|
2730
2700
|
started: z.ZodOptional<z.ZodObject<{
|
|
@@ -2740,7 +2710,6 @@ export declare const localActionResponsePayloadSchema: z.ZodDiscriminatedUnion<[
|
|
|
2740
2710
|
action: z.ZodLiteral<"local.filesystem.list">;
|
|
2741
2711
|
lease: z.ZodObject<{
|
|
2742
2712
|
lease_id: z.ZodString;
|
|
2743
|
-
run_id: z.ZodString;
|
|
2744
2713
|
hcp_session_id: z.ZodString;
|
|
2745
2714
|
execution_host_id: z.ZodString;
|
|
2746
2715
|
provider_instance_id: z.ZodString;
|
|
@@ -2769,7 +2738,6 @@ export declare const localActionResponsePayloadSchema: z.ZodDiscriminatedUnion<[
|
|
|
2769
2738
|
turn_id: z.ZodString;
|
|
2770
2739
|
workspace_id: z.ZodString;
|
|
2771
2740
|
provider_instance_id: z.ZodString;
|
|
2772
|
-
run_id: z.ZodString;
|
|
2773
2741
|
}, z.core.$strict>;
|
|
2774
2742
|
audit_events: z.ZodObject<{
|
|
2775
2743
|
started: z.ZodOptional<z.ZodObject<{
|
|
@@ -2785,7 +2753,6 @@ export declare const localActionResponsePayloadSchema: z.ZodDiscriminatedUnion<[
|
|
|
2785
2753
|
action: z.ZodLiteral<"local.filesystem.write">;
|
|
2786
2754
|
lease: z.ZodObject<{
|
|
2787
2755
|
lease_id: z.ZodString;
|
|
2788
|
-
run_id: z.ZodString;
|
|
2789
2756
|
hcp_session_id: z.ZodString;
|
|
2790
2757
|
execution_host_id: z.ZodString;
|
|
2791
2758
|
provider_instance_id: z.ZodString;
|
|
@@ -2807,7 +2774,6 @@ export declare const localActionResponsePayloadSchema: z.ZodDiscriminatedUnion<[
|
|
|
2807
2774
|
turn_id: z.ZodString;
|
|
2808
2775
|
workspace_id: z.ZodString;
|
|
2809
2776
|
provider_instance_id: z.ZodString;
|
|
2810
|
-
run_id: z.ZodString;
|
|
2811
2777
|
}, z.core.$strict>;
|
|
2812
2778
|
audit_events: z.ZodObject<{
|
|
2813
2779
|
started: z.ZodOptional<z.ZodObject<{
|
|
@@ -2823,7 +2789,6 @@ export declare const localActionResponsePayloadSchema: z.ZodDiscriminatedUnion<[
|
|
|
2823
2789
|
action: z.ZodLiteral<"local.filesystem.patch">;
|
|
2824
2790
|
lease: z.ZodObject<{
|
|
2825
2791
|
lease_id: z.ZodString;
|
|
2826
|
-
run_id: z.ZodString;
|
|
2827
2792
|
hcp_session_id: z.ZodString;
|
|
2828
2793
|
execution_host_id: z.ZodString;
|
|
2829
2794
|
provider_instance_id: z.ZodString;
|
|
@@ -2845,7 +2810,6 @@ export declare const localActionResponsePayloadSchema: z.ZodDiscriminatedUnion<[
|
|
|
2845
2810
|
turn_id: z.ZodString;
|
|
2846
2811
|
workspace_id: z.ZodString;
|
|
2847
2812
|
provider_instance_id: z.ZodString;
|
|
2848
|
-
run_id: z.ZodString;
|
|
2849
2813
|
}, z.core.$strict>;
|
|
2850
2814
|
audit_events: z.ZodObject<{
|
|
2851
2815
|
started: z.ZodOptional<z.ZodObject<{
|
|
@@ -2861,7 +2825,6 @@ export declare const localActionResponsePayloadSchema: z.ZodDiscriminatedUnion<[
|
|
|
2861
2825
|
action: z.ZodLiteral<"local.git.status">;
|
|
2862
2826
|
lease: z.ZodObject<{
|
|
2863
2827
|
lease_id: z.ZodString;
|
|
2864
|
-
run_id: z.ZodString;
|
|
2865
2828
|
hcp_session_id: z.ZodString;
|
|
2866
2829
|
execution_host_id: z.ZodString;
|
|
2867
2830
|
provider_instance_id: z.ZodString;
|
|
@@ -2883,7 +2846,6 @@ export declare const localActionResponsePayloadSchema: z.ZodDiscriminatedUnion<[
|
|
|
2883
2846
|
turn_id: z.ZodString;
|
|
2884
2847
|
workspace_id: z.ZodString;
|
|
2885
2848
|
provider_instance_id: z.ZodString;
|
|
2886
|
-
run_id: z.ZodString;
|
|
2887
2849
|
}, z.core.$strict>;
|
|
2888
2850
|
audit_events: z.ZodObject<{
|
|
2889
2851
|
started: z.ZodOptional<z.ZodObject<{
|
|
@@ -2899,7 +2861,6 @@ export declare const localActionResponsePayloadSchema: z.ZodDiscriminatedUnion<[
|
|
|
2899
2861
|
action: z.ZodLiteral<"local.git.diff">;
|
|
2900
2862
|
lease: z.ZodObject<{
|
|
2901
2863
|
lease_id: z.ZodString;
|
|
2902
|
-
run_id: z.ZodString;
|
|
2903
2864
|
hcp_session_id: z.ZodString;
|
|
2904
2865
|
execution_host_id: z.ZodString;
|
|
2905
2866
|
provider_instance_id: z.ZodString;
|
|
@@ -2920,7 +2881,6 @@ export declare const localActionResponsePayloadSchema: z.ZodDiscriminatedUnion<[
|
|
|
2920
2881
|
turn_id: z.ZodString;
|
|
2921
2882
|
workspace_id: z.ZodString;
|
|
2922
2883
|
provider_instance_id: z.ZodString;
|
|
2923
|
-
run_id: z.ZodString;
|
|
2924
2884
|
}, z.core.$strict>;
|
|
2925
2885
|
audit_events: z.ZodObject<{
|
|
2926
2886
|
started: z.ZodOptional<z.ZodObject<{
|
|
@@ -2936,7 +2896,6 @@ export declare const localActionResponsePayloadSchema: z.ZodDiscriminatedUnion<[
|
|
|
2936
2896
|
action: z.ZodLiteral<"local.shell.exec">;
|
|
2937
2897
|
lease: z.ZodObject<{
|
|
2938
2898
|
lease_id: z.ZodString;
|
|
2939
|
-
run_id: z.ZodString;
|
|
2940
2899
|
hcp_session_id: z.ZodString;
|
|
2941
2900
|
execution_host_id: z.ZodString;
|
|
2942
2901
|
provider_instance_id: z.ZodString;
|
|
@@ -2965,7 +2924,6 @@ export declare const localActionResponsePayloadSchema: z.ZodDiscriminatedUnion<[
|
|
|
2965
2924
|
turn_id: z.ZodString;
|
|
2966
2925
|
workspace_id: z.ZodString;
|
|
2967
2926
|
provider_instance_id: z.ZodString;
|
|
2968
|
-
run_id: z.ZodString;
|
|
2969
2927
|
}, z.core.$strict>;
|
|
2970
2928
|
audit_events: z.ZodObject<{
|
|
2971
2929
|
started: z.ZodOptional<z.ZodObject<{
|
|
@@ -2981,7 +2939,6 @@ export declare const localActionResponsePayloadSchema: z.ZodDiscriminatedUnion<[
|
|
|
2981
2939
|
action: z.ZodLiteral<"local.dev_server.start">;
|
|
2982
2940
|
lease: z.ZodObject<{
|
|
2983
2941
|
lease_id: z.ZodString;
|
|
2984
|
-
run_id: z.ZodString;
|
|
2985
2942
|
hcp_session_id: z.ZodString;
|
|
2986
2943
|
execution_host_id: z.ZodString;
|
|
2987
2944
|
provider_instance_id: z.ZodString;
|
|
@@ -3007,7 +2964,6 @@ export declare const localActionResponsePayloadSchema: z.ZodDiscriminatedUnion<[
|
|
|
3007
2964
|
turn_id: z.ZodString;
|
|
3008
2965
|
workspace_id: z.ZodString;
|
|
3009
2966
|
provider_instance_id: z.ZodString;
|
|
3010
|
-
run_id: z.ZodString;
|
|
3011
2967
|
}, z.core.$strict>;
|
|
3012
2968
|
audit_events: z.ZodObject<{
|
|
3013
2969
|
started: z.ZodOptional<z.ZodObject<{
|
|
@@ -3023,7 +2979,6 @@ export declare const localActionResponsePayloadSchema: z.ZodDiscriminatedUnion<[
|
|
|
3023
2979
|
action: z.ZodLiteral<"local.dev_server.stop">;
|
|
3024
2980
|
lease: z.ZodObject<{
|
|
3025
2981
|
lease_id: z.ZodString;
|
|
3026
|
-
run_id: z.ZodString;
|
|
3027
2982
|
hcp_session_id: z.ZodString;
|
|
3028
2983
|
execution_host_id: z.ZodString;
|
|
3029
2984
|
provider_instance_id: z.ZodString;
|
|
@@ -3044,7 +2999,6 @@ export declare const localActionResponsePayloadSchema: z.ZodDiscriminatedUnion<[
|
|
|
3044
2999
|
turn_id: z.ZodString;
|
|
3045
3000
|
workspace_id: z.ZodString;
|
|
3046
3001
|
provider_instance_id: z.ZodString;
|
|
3047
|
-
run_id: z.ZodString;
|
|
3048
3002
|
}, z.core.$strict>;
|
|
3049
3003
|
audit_events: z.ZodObject<{
|
|
3050
3004
|
started: z.ZodOptional<z.ZodObject<{
|
|
@@ -3108,7 +3062,6 @@ export declare const localActionErrorPayloadSchema: z.ZodObject<{
|
|
|
3108
3062
|
turn_id: z.ZodString;
|
|
3109
3063
|
workspace_id: z.ZodString;
|
|
3110
3064
|
provider_instance_id: z.ZodString;
|
|
3111
|
-
run_id: z.ZodString;
|
|
3112
3065
|
}, z.core.$strict>;
|
|
3113
3066
|
lease: z.ZodOptional<z.ZodObject<{
|
|
3114
3067
|
lease_id: z.ZodString;
|
|
@@ -3119,7 +3072,6 @@ export declare const localActionErrorPayloadSchema: z.ZodObject<{
|
|
|
3119
3072
|
dev_server: "dev_server";
|
|
3120
3073
|
}>;
|
|
3121
3074
|
scope: z.ZodString;
|
|
3122
|
-
run_id: z.ZodString;
|
|
3123
3075
|
hcp_session_id: z.ZodString;
|
|
3124
3076
|
execution_host_id: z.ZodString;
|
|
3125
3077
|
provider_instance_id: z.ZodString;
|
|
@@ -3551,6 +3503,7 @@ export declare const hcpHostCapabilitiesUpdatedMessageSchema: z.ZodObject<{
|
|
|
3551
3503
|
workspace_management: z.ZodOptional<z.ZodObject<{
|
|
3552
3504
|
revision: z.ZodString;
|
|
3553
3505
|
allowed_roots: z.ZodArray<z.ZodString>;
|
|
3506
|
+
directory_browsing: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3554
3507
|
}, z.core.$strict>>;
|
|
3555
3508
|
mcp_stdio_profiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3556
3509
|
id: z.ZodString;
|
|
@@ -3619,11 +3572,7 @@ export declare const hcpSessionStartMessageSchema: z.ZodObject<{
|
|
|
3619
3572
|
}, z.core.$strict>>;
|
|
3620
3573
|
local_capability_lease: z.ZodOptional<z.ZodObject<{
|
|
3621
3574
|
lease_id: z.ZodString;
|
|
3622
|
-
org_id: z.ZodString;
|
|
3623
3575
|
actor_id: z.ZodOptional<z.ZodString>;
|
|
3624
|
-
workflow_id: z.ZodString;
|
|
3625
|
-
run_id: z.ZodString;
|
|
3626
|
-
node_id: z.ZodString;
|
|
3627
3576
|
hcp_session_id: z.ZodString;
|
|
3628
3577
|
execution_host_id: z.ZodString;
|
|
3629
3578
|
provider_instance_id: z.ZodString;
|
|
@@ -3861,7 +3810,6 @@ export declare const localActionRequestMessageSchema: z.ZodObject<{
|
|
|
3861
3810
|
action: z.ZodLiteral<"local.filesystem.read">;
|
|
3862
3811
|
lease: z.ZodObject<{
|
|
3863
3812
|
lease_id: z.ZodString;
|
|
3864
|
-
run_id: z.ZodString;
|
|
3865
3813
|
hcp_session_id: z.ZodString;
|
|
3866
3814
|
execution_host_id: z.ZodString;
|
|
3867
3815
|
provider_instance_id: z.ZodString;
|
|
@@ -3896,7 +3844,6 @@ export declare const localActionRequestMessageSchema: z.ZodObject<{
|
|
|
3896
3844
|
turn_id: z.ZodString;
|
|
3897
3845
|
workspace_id: z.ZodString;
|
|
3898
3846
|
provider_instance_id: z.ZodString;
|
|
3899
|
-
run_id: z.ZodString;
|
|
3900
3847
|
}, z.core.$strict>;
|
|
3901
3848
|
sandbox: z.ZodObject<{
|
|
3902
3849
|
mode: z.ZodEnum<{
|
|
@@ -3935,7 +3882,6 @@ export declare const localActionRequestMessageSchema: z.ZodObject<{
|
|
|
3935
3882
|
action: z.ZodLiteral<"local.filesystem.list">;
|
|
3936
3883
|
lease: z.ZodObject<{
|
|
3937
3884
|
lease_id: z.ZodString;
|
|
3938
|
-
run_id: z.ZodString;
|
|
3939
3885
|
hcp_session_id: z.ZodString;
|
|
3940
3886
|
execution_host_id: z.ZodString;
|
|
3941
3887
|
provider_instance_id: z.ZodString;
|
|
@@ -3965,7 +3911,6 @@ export declare const localActionRequestMessageSchema: z.ZodObject<{
|
|
|
3965
3911
|
turn_id: z.ZodString;
|
|
3966
3912
|
workspace_id: z.ZodString;
|
|
3967
3913
|
provider_instance_id: z.ZodString;
|
|
3968
|
-
run_id: z.ZodString;
|
|
3969
3914
|
}, z.core.$strict>;
|
|
3970
3915
|
sandbox: z.ZodObject<{
|
|
3971
3916
|
mode: z.ZodEnum<{
|
|
@@ -4004,7 +3949,6 @@ export declare const localActionRequestMessageSchema: z.ZodObject<{
|
|
|
4004
3949
|
action: z.ZodLiteral<"local.filesystem.write">;
|
|
4005
3950
|
lease: z.ZodObject<{
|
|
4006
3951
|
lease_id: z.ZodString;
|
|
4007
|
-
run_id: z.ZodString;
|
|
4008
3952
|
hcp_session_id: z.ZodString;
|
|
4009
3953
|
execution_host_id: z.ZodString;
|
|
4010
3954
|
provider_instance_id: z.ZodString;
|
|
@@ -4034,7 +3978,6 @@ export declare const localActionRequestMessageSchema: z.ZodObject<{
|
|
|
4034
3978
|
turn_id: z.ZodString;
|
|
4035
3979
|
workspace_id: z.ZodString;
|
|
4036
3980
|
provider_instance_id: z.ZodString;
|
|
4037
|
-
run_id: z.ZodString;
|
|
4038
3981
|
}, z.core.$strict>;
|
|
4039
3982
|
sandbox: z.ZodObject<{
|
|
4040
3983
|
mode: z.ZodEnum<{
|
|
@@ -4081,7 +4024,6 @@ export declare const localActionRequestMessageSchema: z.ZodObject<{
|
|
|
4081
4024
|
action: z.ZodLiteral<"local.filesystem.patch">;
|
|
4082
4025
|
lease: z.ZodObject<{
|
|
4083
4026
|
lease_id: z.ZodString;
|
|
4084
|
-
run_id: z.ZodString;
|
|
4085
4027
|
hcp_session_id: z.ZodString;
|
|
4086
4028
|
execution_host_id: z.ZodString;
|
|
4087
4029
|
provider_instance_id: z.ZodString;
|
|
@@ -4106,7 +4048,6 @@ export declare const localActionRequestMessageSchema: z.ZodObject<{
|
|
|
4106
4048
|
turn_id: z.ZodString;
|
|
4107
4049
|
workspace_id: z.ZodString;
|
|
4108
4050
|
provider_instance_id: z.ZodString;
|
|
4109
|
-
run_id: z.ZodString;
|
|
4110
4051
|
}, z.core.$strict>;
|
|
4111
4052
|
sandbox: z.ZodObject<{
|
|
4112
4053
|
mode: z.ZodEnum<{
|
|
@@ -4153,7 +4094,6 @@ export declare const localActionRequestMessageSchema: z.ZodObject<{
|
|
|
4153
4094
|
action: z.ZodLiteral<"local.git.status">;
|
|
4154
4095
|
lease: z.ZodObject<{
|
|
4155
4096
|
lease_id: z.ZodString;
|
|
4156
|
-
run_id: z.ZodString;
|
|
4157
4097
|
hcp_session_id: z.ZodString;
|
|
4158
4098
|
execution_host_id: z.ZodString;
|
|
4159
4099
|
provider_instance_id: z.ZodString;
|
|
@@ -4184,7 +4124,6 @@ export declare const localActionRequestMessageSchema: z.ZodObject<{
|
|
|
4184
4124
|
turn_id: z.ZodString;
|
|
4185
4125
|
workspace_id: z.ZodString;
|
|
4186
4126
|
provider_instance_id: z.ZodString;
|
|
4187
|
-
run_id: z.ZodString;
|
|
4188
4127
|
}, z.core.$strict>;
|
|
4189
4128
|
sandbox: z.ZodObject<{
|
|
4190
4129
|
mode: z.ZodEnum<{
|
|
@@ -4223,7 +4162,6 @@ export declare const localActionRequestMessageSchema: z.ZodObject<{
|
|
|
4223
4162
|
action: z.ZodLiteral<"local.git.diff">;
|
|
4224
4163
|
lease: z.ZodObject<{
|
|
4225
4164
|
lease_id: z.ZodString;
|
|
4226
|
-
run_id: z.ZodString;
|
|
4227
4165
|
hcp_session_id: z.ZodString;
|
|
4228
4166
|
execution_host_id: z.ZodString;
|
|
4229
4167
|
provider_instance_id: z.ZodString;
|
|
@@ -4252,7 +4190,6 @@ export declare const localActionRequestMessageSchema: z.ZodObject<{
|
|
|
4252
4190
|
turn_id: z.ZodString;
|
|
4253
4191
|
workspace_id: z.ZodString;
|
|
4254
4192
|
provider_instance_id: z.ZodString;
|
|
4255
|
-
run_id: z.ZodString;
|
|
4256
4193
|
}, z.core.$strict>;
|
|
4257
4194
|
sandbox: z.ZodObject<{
|
|
4258
4195
|
mode: z.ZodEnum<{
|
|
@@ -4291,7 +4228,6 @@ export declare const localActionRequestMessageSchema: z.ZodObject<{
|
|
|
4291
4228
|
action: z.ZodLiteral<"local.shell.exec">;
|
|
4292
4229
|
lease: z.ZodObject<{
|
|
4293
4230
|
lease_id: z.ZodString;
|
|
4294
|
-
run_id: z.ZodString;
|
|
4295
4231
|
hcp_session_id: z.ZodString;
|
|
4296
4232
|
execution_host_id: z.ZodString;
|
|
4297
4233
|
provider_instance_id: z.ZodString;
|
|
@@ -4334,7 +4270,6 @@ export declare const localActionRequestMessageSchema: z.ZodObject<{
|
|
|
4334
4270
|
turn_id: z.ZodString;
|
|
4335
4271
|
workspace_id: z.ZodString;
|
|
4336
4272
|
provider_instance_id: z.ZodString;
|
|
4337
|
-
run_id: z.ZodString;
|
|
4338
4273
|
}, z.core.$strict>;
|
|
4339
4274
|
sandbox: z.ZodObject<{
|
|
4340
4275
|
mode: z.ZodEnum<{
|
|
@@ -4360,7 +4295,6 @@ export declare const localActionRequestMessageSchema: z.ZodObject<{
|
|
|
4360
4295
|
action: z.ZodLiteral<"local.dev_server.start">;
|
|
4361
4296
|
lease: z.ZodObject<{
|
|
4362
4297
|
lease_id: z.ZodString;
|
|
4363
|
-
run_id: z.ZodString;
|
|
4364
4298
|
hcp_session_id: z.ZodString;
|
|
4365
4299
|
execution_host_id: z.ZodString;
|
|
4366
4300
|
provider_instance_id: z.ZodString;
|
|
@@ -4404,7 +4338,6 @@ export declare const localActionRequestMessageSchema: z.ZodObject<{
|
|
|
4404
4338
|
turn_id: z.ZodString;
|
|
4405
4339
|
workspace_id: z.ZodString;
|
|
4406
4340
|
provider_instance_id: z.ZodString;
|
|
4407
|
-
run_id: z.ZodString;
|
|
4408
4341
|
}, z.core.$strict>;
|
|
4409
4342
|
sandbox: z.ZodObject<{
|
|
4410
4343
|
mode: z.ZodEnum<{
|
|
@@ -4438,7 +4371,6 @@ export declare const localActionRequestMessageSchema: z.ZodObject<{
|
|
|
4438
4371
|
action: z.ZodLiteral<"local.dev_server.stop">;
|
|
4439
4372
|
lease: z.ZodObject<{
|
|
4440
4373
|
lease_id: z.ZodString;
|
|
4441
|
-
run_id: z.ZodString;
|
|
4442
4374
|
hcp_session_id: z.ZodString;
|
|
4443
4375
|
execution_host_id: z.ZodString;
|
|
4444
4376
|
provider_instance_id: z.ZodString;
|
|
@@ -4462,7 +4394,6 @@ export declare const localActionRequestMessageSchema: z.ZodObject<{
|
|
|
4462
4394
|
turn_id: z.ZodString;
|
|
4463
4395
|
workspace_id: z.ZodString;
|
|
4464
4396
|
provider_instance_id: z.ZodString;
|
|
4465
|
-
run_id: z.ZodString;
|
|
4466
4397
|
}, z.core.$strict>;
|
|
4467
4398
|
sandbox: z.ZodObject<{
|
|
4468
4399
|
mode: z.ZodEnum<{
|
|
@@ -4517,7 +4448,6 @@ export declare const localActionResponseMessageSchema: z.ZodObject<{
|
|
|
4517
4448
|
action: z.ZodLiteral<"local.filesystem.read">;
|
|
4518
4449
|
lease: z.ZodObject<{
|
|
4519
4450
|
lease_id: z.ZodString;
|
|
4520
|
-
run_id: z.ZodString;
|
|
4521
4451
|
hcp_session_id: z.ZodString;
|
|
4522
4452
|
execution_host_id: z.ZodString;
|
|
4523
4453
|
provider_instance_id: z.ZodString;
|
|
@@ -4544,7 +4474,6 @@ export declare const localActionResponseMessageSchema: z.ZodObject<{
|
|
|
4544
4474
|
turn_id: z.ZodString;
|
|
4545
4475
|
workspace_id: z.ZodString;
|
|
4546
4476
|
provider_instance_id: z.ZodString;
|
|
4547
|
-
run_id: z.ZodString;
|
|
4548
4477
|
}, z.core.$strict>;
|
|
4549
4478
|
audit_events: z.ZodObject<{
|
|
4550
4479
|
started: z.ZodOptional<z.ZodObject<{
|
|
@@ -4560,7 +4489,6 @@ export declare const localActionResponseMessageSchema: z.ZodObject<{
|
|
|
4560
4489
|
action: z.ZodLiteral<"local.filesystem.list">;
|
|
4561
4490
|
lease: z.ZodObject<{
|
|
4562
4491
|
lease_id: z.ZodString;
|
|
4563
|
-
run_id: z.ZodString;
|
|
4564
4492
|
hcp_session_id: z.ZodString;
|
|
4565
4493
|
execution_host_id: z.ZodString;
|
|
4566
4494
|
provider_instance_id: z.ZodString;
|
|
@@ -4589,7 +4517,6 @@ export declare const localActionResponseMessageSchema: z.ZodObject<{
|
|
|
4589
4517
|
turn_id: z.ZodString;
|
|
4590
4518
|
workspace_id: z.ZodString;
|
|
4591
4519
|
provider_instance_id: z.ZodString;
|
|
4592
|
-
run_id: z.ZodString;
|
|
4593
4520
|
}, z.core.$strict>;
|
|
4594
4521
|
audit_events: z.ZodObject<{
|
|
4595
4522
|
started: z.ZodOptional<z.ZodObject<{
|
|
@@ -4605,7 +4532,6 @@ export declare const localActionResponseMessageSchema: z.ZodObject<{
|
|
|
4605
4532
|
action: z.ZodLiteral<"local.filesystem.write">;
|
|
4606
4533
|
lease: z.ZodObject<{
|
|
4607
4534
|
lease_id: z.ZodString;
|
|
4608
|
-
run_id: z.ZodString;
|
|
4609
4535
|
hcp_session_id: z.ZodString;
|
|
4610
4536
|
execution_host_id: z.ZodString;
|
|
4611
4537
|
provider_instance_id: z.ZodString;
|
|
@@ -4627,7 +4553,6 @@ export declare const localActionResponseMessageSchema: z.ZodObject<{
|
|
|
4627
4553
|
turn_id: z.ZodString;
|
|
4628
4554
|
workspace_id: z.ZodString;
|
|
4629
4555
|
provider_instance_id: z.ZodString;
|
|
4630
|
-
run_id: z.ZodString;
|
|
4631
4556
|
}, z.core.$strict>;
|
|
4632
4557
|
audit_events: z.ZodObject<{
|
|
4633
4558
|
started: z.ZodOptional<z.ZodObject<{
|
|
@@ -4643,7 +4568,6 @@ export declare const localActionResponseMessageSchema: z.ZodObject<{
|
|
|
4643
4568
|
action: z.ZodLiteral<"local.filesystem.patch">;
|
|
4644
4569
|
lease: z.ZodObject<{
|
|
4645
4570
|
lease_id: z.ZodString;
|
|
4646
|
-
run_id: z.ZodString;
|
|
4647
4571
|
hcp_session_id: z.ZodString;
|
|
4648
4572
|
execution_host_id: z.ZodString;
|
|
4649
4573
|
provider_instance_id: z.ZodString;
|
|
@@ -4665,7 +4589,6 @@ export declare const localActionResponseMessageSchema: z.ZodObject<{
|
|
|
4665
4589
|
turn_id: z.ZodString;
|
|
4666
4590
|
workspace_id: z.ZodString;
|
|
4667
4591
|
provider_instance_id: z.ZodString;
|
|
4668
|
-
run_id: z.ZodString;
|
|
4669
4592
|
}, z.core.$strict>;
|
|
4670
4593
|
audit_events: z.ZodObject<{
|
|
4671
4594
|
started: z.ZodOptional<z.ZodObject<{
|
|
@@ -4681,7 +4604,6 @@ export declare const localActionResponseMessageSchema: z.ZodObject<{
|
|
|
4681
4604
|
action: z.ZodLiteral<"local.git.status">;
|
|
4682
4605
|
lease: z.ZodObject<{
|
|
4683
4606
|
lease_id: z.ZodString;
|
|
4684
|
-
run_id: z.ZodString;
|
|
4685
4607
|
hcp_session_id: z.ZodString;
|
|
4686
4608
|
execution_host_id: z.ZodString;
|
|
4687
4609
|
provider_instance_id: z.ZodString;
|
|
@@ -4703,7 +4625,6 @@ export declare const localActionResponseMessageSchema: z.ZodObject<{
|
|
|
4703
4625
|
turn_id: z.ZodString;
|
|
4704
4626
|
workspace_id: z.ZodString;
|
|
4705
4627
|
provider_instance_id: z.ZodString;
|
|
4706
|
-
run_id: z.ZodString;
|
|
4707
4628
|
}, z.core.$strict>;
|
|
4708
4629
|
audit_events: z.ZodObject<{
|
|
4709
4630
|
started: z.ZodOptional<z.ZodObject<{
|
|
@@ -4719,7 +4640,6 @@ export declare const localActionResponseMessageSchema: z.ZodObject<{
|
|
|
4719
4640
|
action: z.ZodLiteral<"local.git.diff">;
|
|
4720
4641
|
lease: z.ZodObject<{
|
|
4721
4642
|
lease_id: z.ZodString;
|
|
4722
|
-
run_id: z.ZodString;
|
|
4723
4643
|
hcp_session_id: z.ZodString;
|
|
4724
4644
|
execution_host_id: z.ZodString;
|
|
4725
4645
|
provider_instance_id: z.ZodString;
|
|
@@ -4740,7 +4660,6 @@ export declare const localActionResponseMessageSchema: z.ZodObject<{
|
|
|
4740
4660
|
turn_id: z.ZodString;
|
|
4741
4661
|
workspace_id: z.ZodString;
|
|
4742
4662
|
provider_instance_id: z.ZodString;
|
|
4743
|
-
run_id: z.ZodString;
|
|
4744
4663
|
}, z.core.$strict>;
|
|
4745
4664
|
audit_events: z.ZodObject<{
|
|
4746
4665
|
started: z.ZodOptional<z.ZodObject<{
|
|
@@ -4756,7 +4675,6 @@ export declare const localActionResponseMessageSchema: z.ZodObject<{
|
|
|
4756
4675
|
action: z.ZodLiteral<"local.shell.exec">;
|
|
4757
4676
|
lease: z.ZodObject<{
|
|
4758
4677
|
lease_id: z.ZodString;
|
|
4759
|
-
run_id: z.ZodString;
|
|
4760
4678
|
hcp_session_id: z.ZodString;
|
|
4761
4679
|
execution_host_id: z.ZodString;
|
|
4762
4680
|
provider_instance_id: z.ZodString;
|
|
@@ -4785,7 +4703,6 @@ export declare const localActionResponseMessageSchema: z.ZodObject<{
|
|
|
4785
4703
|
turn_id: z.ZodString;
|
|
4786
4704
|
workspace_id: z.ZodString;
|
|
4787
4705
|
provider_instance_id: z.ZodString;
|
|
4788
|
-
run_id: z.ZodString;
|
|
4789
4706
|
}, z.core.$strict>;
|
|
4790
4707
|
audit_events: z.ZodObject<{
|
|
4791
4708
|
started: z.ZodOptional<z.ZodObject<{
|
|
@@ -4801,7 +4718,6 @@ export declare const localActionResponseMessageSchema: z.ZodObject<{
|
|
|
4801
4718
|
action: z.ZodLiteral<"local.dev_server.start">;
|
|
4802
4719
|
lease: z.ZodObject<{
|
|
4803
4720
|
lease_id: z.ZodString;
|
|
4804
|
-
run_id: z.ZodString;
|
|
4805
4721
|
hcp_session_id: z.ZodString;
|
|
4806
4722
|
execution_host_id: z.ZodString;
|
|
4807
4723
|
provider_instance_id: z.ZodString;
|
|
@@ -4827,7 +4743,6 @@ export declare const localActionResponseMessageSchema: z.ZodObject<{
|
|
|
4827
4743
|
turn_id: z.ZodString;
|
|
4828
4744
|
workspace_id: z.ZodString;
|
|
4829
4745
|
provider_instance_id: z.ZodString;
|
|
4830
|
-
run_id: z.ZodString;
|
|
4831
4746
|
}, z.core.$strict>;
|
|
4832
4747
|
audit_events: z.ZodObject<{
|
|
4833
4748
|
started: z.ZodOptional<z.ZodObject<{
|
|
@@ -4843,7 +4758,6 @@ export declare const localActionResponseMessageSchema: z.ZodObject<{
|
|
|
4843
4758
|
action: z.ZodLiteral<"local.dev_server.stop">;
|
|
4844
4759
|
lease: z.ZodObject<{
|
|
4845
4760
|
lease_id: z.ZodString;
|
|
4846
|
-
run_id: z.ZodString;
|
|
4847
4761
|
hcp_session_id: z.ZodString;
|
|
4848
4762
|
execution_host_id: z.ZodString;
|
|
4849
4763
|
provider_instance_id: z.ZodString;
|
|
@@ -4864,7 +4778,6 @@ export declare const localActionResponseMessageSchema: z.ZodObject<{
|
|
|
4864
4778
|
turn_id: z.ZodString;
|
|
4865
4779
|
workspace_id: z.ZodString;
|
|
4866
4780
|
provider_instance_id: z.ZodString;
|
|
4867
|
-
run_id: z.ZodString;
|
|
4868
4781
|
}, z.core.$strict>;
|
|
4869
4782
|
audit_events: z.ZodObject<{
|
|
4870
4783
|
started: z.ZodOptional<z.ZodObject<{
|
|
@@ -4908,7 +4821,6 @@ export declare const localActionErrorMessageSchema: z.ZodObject<{
|
|
|
4908
4821
|
turn_id: z.ZodString;
|
|
4909
4822
|
workspace_id: z.ZodString;
|
|
4910
4823
|
provider_instance_id: z.ZodString;
|
|
4911
|
-
run_id: z.ZodString;
|
|
4912
4824
|
}, z.core.$strict>;
|
|
4913
4825
|
lease: z.ZodOptional<z.ZodObject<{
|
|
4914
4826
|
lease_id: z.ZodString;
|
|
@@ -4919,7 +4831,6 @@ export declare const localActionErrorMessageSchema: z.ZodObject<{
|
|
|
4919
4831
|
dev_server: "dev_server";
|
|
4920
4832
|
}>;
|
|
4921
4833
|
scope: z.ZodString;
|
|
4922
|
-
run_id: z.ZodString;
|
|
4923
4834
|
hcp_session_id: z.ZodString;
|
|
4924
4835
|
execution_host_id: z.ZodString;
|
|
4925
4836
|
provider_instance_id: z.ZodString;
|
|
@@ -4995,6 +4906,10 @@ export declare const hcpWorkspacesRequestMessageSchema: z.ZodObject<{
|
|
|
4995
4906
|
expires_at: z.ZodString;
|
|
4996
4907
|
operation: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4997
4908
|
kind: z.ZodLiteral<"list">;
|
|
4909
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4910
|
+
kind: z.ZodLiteral<"browse">;
|
|
4911
|
+
path: z.ZodOptional<z.ZodString>;
|
|
4912
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
4998
4913
|
}, z.core.$strict>, z.ZodObject<{
|
|
4999
4914
|
kind: z.ZodLiteral<"add">;
|
|
5000
4915
|
path: z.ZodString;
|
|
@@ -5019,6 +4934,15 @@ export declare const hcpWorkspacesResultMessageSchema: z.ZodObject<{
|
|
|
5019
4934
|
request_id: z.ZodString;
|
|
5020
4935
|
outcome: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5021
4936
|
kind: z.ZodLiteral<"success">;
|
|
4937
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4938
|
+
kind: z.ZodLiteral<"directory">;
|
|
4939
|
+
path: z.ZodString;
|
|
4940
|
+
parent: z.ZodOptional<z.ZodString>;
|
|
4941
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
4942
|
+
name: z.ZodString;
|
|
4943
|
+
path: z.ZodString;
|
|
4944
|
+
}, z.core.$strict>>;
|
|
4945
|
+
next_cursor: z.ZodOptional<z.ZodString>;
|
|
5022
4946
|
}, z.core.$strict>, z.ZodObject<{
|
|
5023
4947
|
kind: z.ZodLiteral<"error">;
|
|
5024
4948
|
message: z.ZodString;
|
|
@@ -5026,6 +4950,7 @@ export declare const hcpWorkspacesResultMessageSchema: z.ZodObject<{
|
|
|
5026
4950
|
management: z.ZodObject<{
|
|
5027
4951
|
revision: z.ZodString;
|
|
5028
4952
|
allowed_roots: z.ZodArray<z.ZodString>;
|
|
4953
|
+
directory_browsing: z.ZodOptional<z.ZodLiteral<true>>;
|
|
5029
4954
|
}, z.core.$strict>;
|
|
5030
4955
|
workspaces: z.ZodArray<z.ZodObject<{
|
|
5031
4956
|
id: z.ZodString;
|
|
@@ -5036,7 +4961,139 @@ export declare const hcpWorkspacesResultMessageSchema: z.ZodObject<{
|
|
|
5036
4961
|
}, z.core.$strict>;
|
|
5037
4962
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
5038
4963
|
}, z.core.$strict>;
|
|
4964
|
+
export declare const hcpAccountsReadMessageSchema: z.ZodObject<{
|
|
4965
|
+
id: z.ZodString;
|
|
4966
|
+
type: z.ZodLiteral<"host.accounts.read">;
|
|
4967
|
+
version: z.ZodLiteral<"hcp.v0">;
|
|
4968
|
+
sent_at: z.ZodString;
|
|
4969
|
+
payload: z.ZodObject<{
|
|
4970
|
+
provider_instance_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4971
|
+
}, z.core.$strict>;
|
|
4972
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4973
|
+
}, z.core.$strict>;
|
|
4974
|
+
export declare const hcpAccountsSnapshotMessageSchema: z.ZodObject<{
|
|
4975
|
+
id: z.ZodString;
|
|
4976
|
+
type: z.ZodLiteral<"host.accounts.snapshot">;
|
|
4977
|
+
version: z.ZodLiteral<"hcp.v0">;
|
|
4978
|
+
sent_at: z.ZodString;
|
|
4979
|
+
payload: z.ZodObject<{
|
|
4980
|
+
request_id: z.ZodString;
|
|
4981
|
+
host_id: z.ZodString;
|
|
4982
|
+
providers: z.ZodArray<z.ZodObject<{
|
|
4983
|
+
provider_instance_id: z.ZodString;
|
|
4984
|
+
observation: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4985
|
+
status: z.ZodLiteral<"available">;
|
|
4986
|
+
observed_at: z.ZodISODateTime;
|
|
4987
|
+
account: z.ZodObject<{
|
|
4988
|
+
key: z.ZodString;
|
|
4989
|
+
provider: z.ZodString;
|
|
4990
|
+
scope_source: z.ZodEnum<{
|
|
4991
|
+
provider: "provider";
|
|
4992
|
+
operator: "operator";
|
|
4993
|
+
local: "local";
|
|
4994
|
+
}>;
|
|
4995
|
+
label: z.ZodString;
|
|
4996
|
+
}, z.core.$strict>;
|
|
4997
|
+
source: z.ZodEnum<{
|
|
4998
|
+
codex_app_server: "codex_app_server";
|
|
4999
|
+
claude_sdk_experimental: "claude_sdk_experimental";
|
|
5000
|
+
}>;
|
|
5001
|
+
plan: z.ZodOptional<z.ZodString>;
|
|
5002
|
+
limits: z.ZodArray<z.ZodObject<{
|
|
5003
|
+
id: z.ZodString;
|
|
5004
|
+
label: z.ZodString;
|
|
5005
|
+
kind: z.ZodEnum<{
|
|
5006
|
+
quota: "quota";
|
|
5007
|
+
spend: "spend";
|
|
5008
|
+
}>;
|
|
5009
|
+
used_percent: z.ZodOptional<z.ZodNumber>;
|
|
5010
|
+
resets_at: z.ZodOptional<z.ZodISODateTime>;
|
|
5011
|
+
window_minutes: z.ZodOptional<z.ZodNumber>;
|
|
5012
|
+
}, z.core.$strict>>;
|
|
5013
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
5014
|
+
status: z.ZodLiteral<"unavailable">;
|
|
5015
|
+
observed_at: z.ZodISODateTime;
|
|
5016
|
+
reason: z.ZodEnum<{
|
|
5017
|
+
disabled: "disabled";
|
|
5018
|
+
unauthenticated: "unauthenticated";
|
|
5019
|
+
unsupported: "unsupported";
|
|
5020
|
+
not_applicable: "not_applicable";
|
|
5021
|
+
timeout: "timeout";
|
|
5022
|
+
provider_error: "provider_error";
|
|
5023
|
+
invalid_response: "invalid_response";
|
|
5024
|
+
}>;
|
|
5025
|
+
message: z.ZodString;
|
|
5026
|
+
}, z.core.$strict>], "status">;
|
|
5027
|
+
}, z.core.$strict>>;
|
|
5028
|
+
}, z.core.$strict>;
|
|
5029
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
5030
|
+
}, z.core.$strict>;
|
|
5039
5031
|
export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5032
|
+
id: z.ZodString;
|
|
5033
|
+
type: z.ZodLiteral<"host.accounts.read">;
|
|
5034
|
+
version: z.ZodLiteral<"hcp.v0">;
|
|
5035
|
+
sent_at: z.ZodString;
|
|
5036
|
+
payload: z.ZodObject<{
|
|
5037
|
+
provider_instance_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5038
|
+
}, z.core.$strict>;
|
|
5039
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
5040
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
5041
|
+
id: z.ZodString;
|
|
5042
|
+
type: z.ZodLiteral<"host.accounts.snapshot">;
|
|
5043
|
+
version: z.ZodLiteral<"hcp.v0">;
|
|
5044
|
+
sent_at: z.ZodString;
|
|
5045
|
+
payload: z.ZodObject<{
|
|
5046
|
+
request_id: z.ZodString;
|
|
5047
|
+
host_id: z.ZodString;
|
|
5048
|
+
providers: z.ZodArray<z.ZodObject<{
|
|
5049
|
+
provider_instance_id: z.ZodString;
|
|
5050
|
+
observation: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5051
|
+
status: z.ZodLiteral<"available">;
|
|
5052
|
+
observed_at: z.ZodISODateTime;
|
|
5053
|
+
account: z.ZodObject<{
|
|
5054
|
+
key: z.ZodString;
|
|
5055
|
+
provider: z.ZodString;
|
|
5056
|
+
scope_source: z.ZodEnum<{
|
|
5057
|
+
provider: "provider";
|
|
5058
|
+
operator: "operator";
|
|
5059
|
+
local: "local";
|
|
5060
|
+
}>;
|
|
5061
|
+
label: z.ZodString;
|
|
5062
|
+
}, z.core.$strict>;
|
|
5063
|
+
source: z.ZodEnum<{
|
|
5064
|
+
codex_app_server: "codex_app_server";
|
|
5065
|
+
claude_sdk_experimental: "claude_sdk_experimental";
|
|
5066
|
+
}>;
|
|
5067
|
+
plan: z.ZodOptional<z.ZodString>;
|
|
5068
|
+
limits: z.ZodArray<z.ZodObject<{
|
|
5069
|
+
id: z.ZodString;
|
|
5070
|
+
label: z.ZodString;
|
|
5071
|
+
kind: z.ZodEnum<{
|
|
5072
|
+
quota: "quota";
|
|
5073
|
+
spend: "spend";
|
|
5074
|
+
}>;
|
|
5075
|
+
used_percent: z.ZodOptional<z.ZodNumber>;
|
|
5076
|
+
resets_at: z.ZodOptional<z.ZodISODateTime>;
|
|
5077
|
+
window_minutes: z.ZodOptional<z.ZodNumber>;
|
|
5078
|
+
}, z.core.$strict>>;
|
|
5079
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
5080
|
+
status: z.ZodLiteral<"unavailable">;
|
|
5081
|
+
observed_at: z.ZodISODateTime;
|
|
5082
|
+
reason: z.ZodEnum<{
|
|
5083
|
+
disabled: "disabled";
|
|
5084
|
+
unauthenticated: "unauthenticated";
|
|
5085
|
+
unsupported: "unsupported";
|
|
5086
|
+
not_applicable: "not_applicable";
|
|
5087
|
+
timeout: "timeout";
|
|
5088
|
+
provider_error: "provider_error";
|
|
5089
|
+
invalid_response: "invalid_response";
|
|
5090
|
+
}>;
|
|
5091
|
+
message: z.ZodString;
|
|
5092
|
+
}, z.core.$strict>], "status">;
|
|
5093
|
+
}, z.core.$strict>>;
|
|
5094
|
+
}, z.core.$strict>;
|
|
5095
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
5096
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
5040
5097
|
id: z.ZodString;
|
|
5041
5098
|
type: z.ZodLiteral<"host.workspaces.request">;
|
|
5042
5099
|
version: z.ZodLiteral<"hcp.v0">;
|
|
@@ -5046,6 +5103,10 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
5046
5103
|
expires_at: z.ZodString;
|
|
5047
5104
|
operation: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5048
5105
|
kind: z.ZodLiteral<"list">;
|
|
5106
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
5107
|
+
kind: z.ZodLiteral<"browse">;
|
|
5108
|
+
path: z.ZodOptional<z.ZodString>;
|
|
5109
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
5049
5110
|
}, z.core.$strict>, z.ZodObject<{
|
|
5050
5111
|
kind: z.ZodLiteral<"add">;
|
|
5051
5112
|
path: z.ZodString;
|
|
@@ -5069,6 +5130,15 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
5069
5130
|
request_id: z.ZodString;
|
|
5070
5131
|
outcome: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5071
5132
|
kind: z.ZodLiteral<"success">;
|
|
5133
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
5134
|
+
kind: z.ZodLiteral<"directory">;
|
|
5135
|
+
path: z.ZodString;
|
|
5136
|
+
parent: z.ZodOptional<z.ZodString>;
|
|
5137
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
5138
|
+
name: z.ZodString;
|
|
5139
|
+
path: z.ZodString;
|
|
5140
|
+
}, z.core.$strict>>;
|
|
5141
|
+
next_cursor: z.ZodOptional<z.ZodString>;
|
|
5072
5142
|
}, z.core.$strict>, z.ZodObject<{
|
|
5073
5143
|
kind: z.ZodLiteral<"error">;
|
|
5074
5144
|
message: z.ZodString;
|
|
@@ -5076,6 +5146,7 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
5076
5146
|
management: z.ZodObject<{
|
|
5077
5147
|
revision: z.ZodString;
|
|
5078
5148
|
allowed_roots: z.ZodArray<z.ZodString>;
|
|
5149
|
+
directory_browsing: z.ZodOptional<z.ZodLiteral<true>>;
|
|
5079
5150
|
}, z.core.$strict>;
|
|
5080
5151
|
workspaces: z.ZodArray<z.ZodObject<{
|
|
5081
5152
|
id: z.ZodString;
|
|
@@ -5290,6 +5361,7 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
5290
5361
|
workspace_management: z.ZodOptional<z.ZodObject<{
|
|
5291
5362
|
revision: z.ZodString;
|
|
5292
5363
|
allowed_roots: z.ZodArray<z.ZodString>;
|
|
5364
|
+
directory_browsing: z.ZodOptional<z.ZodLiteral<true>>;
|
|
5293
5365
|
}, z.core.$strict>>;
|
|
5294
5366
|
mcp_stdio_profiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5295
5367
|
id: z.ZodString;
|
|
@@ -5356,11 +5428,7 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
5356
5428
|
}, z.core.$strict>>;
|
|
5357
5429
|
local_capability_lease: z.ZodOptional<z.ZodObject<{
|
|
5358
5430
|
lease_id: z.ZodString;
|
|
5359
|
-
org_id: z.ZodString;
|
|
5360
5431
|
actor_id: z.ZodOptional<z.ZodString>;
|
|
5361
|
-
workflow_id: z.ZodString;
|
|
5362
|
-
run_id: z.ZodString;
|
|
5363
|
-
node_id: z.ZodString;
|
|
5364
5432
|
hcp_session_id: z.ZodString;
|
|
5365
5433
|
execution_host_id: z.ZodString;
|
|
5366
5434
|
provider_instance_id: z.ZodString;
|
|
@@ -5589,7 +5657,6 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
5589
5657
|
action: z.ZodLiteral<"local.filesystem.read">;
|
|
5590
5658
|
lease: z.ZodObject<{
|
|
5591
5659
|
lease_id: z.ZodString;
|
|
5592
|
-
run_id: z.ZodString;
|
|
5593
5660
|
hcp_session_id: z.ZodString;
|
|
5594
5661
|
execution_host_id: z.ZodString;
|
|
5595
5662
|
provider_instance_id: z.ZodString;
|
|
@@ -5624,7 +5691,6 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
5624
5691
|
turn_id: z.ZodString;
|
|
5625
5692
|
workspace_id: z.ZodString;
|
|
5626
5693
|
provider_instance_id: z.ZodString;
|
|
5627
|
-
run_id: z.ZodString;
|
|
5628
5694
|
}, z.core.$strict>;
|
|
5629
5695
|
sandbox: z.ZodObject<{
|
|
5630
5696
|
mode: z.ZodEnum<{
|
|
@@ -5663,7 +5729,6 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
5663
5729
|
action: z.ZodLiteral<"local.filesystem.list">;
|
|
5664
5730
|
lease: z.ZodObject<{
|
|
5665
5731
|
lease_id: z.ZodString;
|
|
5666
|
-
run_id: z.ZodString;
|
|
5667
5732
|
hcp_session_id: z.ZodString;
|
|
5668
5733
|
execution_host_id: z.ZodString;
|
|
5669
5734
|
provider_instance_id: z.ZodString;
|
|
@@ -5693,7 +5758,6 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
5693
5758
|
turn_id: z.ZodString;
|
|
5694
5759
|
workspace_id: z.ZodString;
|
|
5695
5760
|
provider_instance_id: z.ZodString;
|
|
5696
|
-
run_id: z.ZodString;
|
|
5697
5761
|
}, z.core.$strict>;
|
|
5698
5762
|
sandbox: z.ZodObject<{
|
|
5699
5763
|
mode: z.ZodEnum<{
|
|
@@ -5732,7 +5796,6 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
5732
5796
|
action: z.ZodLiteral<"local.filesystem.write">;
|
|
5733
5797
|
lease: z.ZodObject<{
|
|
5734
5798
|
lease_id: z.ZodString;
|
|
5735
|
-
run_id: z.ZodString;
|
|
5736
5799
|
hcp_session_id: z.ZodString;
|
|
5737
5800
|
execution_host_id: z.ZodString;
|
|
5738
5801
|
provider_instance_id: z.ZodString;
|
|
@@ -5762,7 +5825,6 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
5762
5825
|
turn_id: z.ZodString;
|
|
5763
5826
|
workspace_id: z.ZodString;
|
|
5764
5827
|
provider_instance_id: z.ZodString;
|
|
5765
|
-
run_id: z.ZodString;
|
|
5766
5828
|
}, z.core.$strict>;
|
|
5767
5829
|
sandbox: z.ZodObject<{
|
|
5768
5830
|
mode: z.ZodEnum<{
|
|
@@ -5809,7 +5871,6 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
5809
5871
|
action: z.ZodLiteral<"local.filesystem.patch">;
|
|
5810
5872
|
lease: z.ZodObject<{
|
|
5811
5873
|
lease_id: z.ZodString;
|
|
5812
|
-
run_id: z.ZodString;
|
|
5813
5874
|
hcp_session_id: z.ZodString;
|
|
5814
5875
|
execution_host_id: z.ZodString;
|
|
5815
5876
|
provider_instance_id: z.ZodString;
|
|
@@ -5834,7 +5895,6 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
5834
5895
|
turn_id: z.ZodString;
|
|
5835
5896
|
workspace_id: z.ZodString;
|
|
5836
5897
|
provider_instance_id: z.ZodString;
|
|
5837
|
-
run_id: z.ZodString;
|
|
5838
5898
|
}, z.core.$strict>;
|
|
5839
5899
|
sandbox: z.ZodObject<{
|
|
5840
5900
|
mode: z.ZodEnum<{
|
|
@@ -5881,7 +5941,6 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
5881
5941
|
action: z.ZodLiteral<"local.git.status">;
|
|
5882
5942
|
lease: z.ZodObject<{
|
|
5883
5943
|
lease_id: z.ZodString;
|
|
5884
|
-
run_id: z.ZodString;
|
|
5885
5944
|
hcp_session_id: z.ZodString;
|
|
5886
5945
|
execution_host_id: z.ZodString;
|
|
5887
5946
|
provider_instance_id: z.ZodString;
|
|
@@ -5912,7 +5971,6 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
5912
5971
|
turn_id: z.ZodString;
|
|
5913
5972
|
workspace_id: z.ZodString;
|
|
5914
5973
|
provider_instance_id: z.ZodString;
|
|
5915
|
-
run_id: z.ZodString;
|
|
5916
5974
|
}, z.core.$strict>;
|
|
5917
5975
|
sandbox: z.ZodObject<{
|
|
5918
5976
|
mode: z.ZodEnum<{
|
|
@@ -5951,7 +6009,6 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
5951
6009
|
action: z.ZodLiteral<"local.git.diff">;
|
|
5952
6010
|
lease: z.ZodObject<{
|
|
5953
6011
|
lease_id: z.ZodString;
|
|
5954
|
-
run_id: z.ZodString;
|
|
5955
6012
|
hcp_session_id: z.ZodString;
|
|
5956
6013
|
execution_host_id: z.ZodString;
|
|
5957
6014
|
provider_instance_id: z.ZodString;
|
|
@@ -5980,7 +6037,6 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
5980
6037
|
turn_id: z.ZodString;
|
|
5981
6038
|
workspace_id: z.ZodString;
|
|
5982
6039
|
provider_instance_id: z.ZodString;
|
|
5983
|
-
run_id: z.ZodString;
|
|
5984
6040
|
}, z.core.$strict>;
|
|
5985
6041
|
sandbox: z.ZodObject<{
|
|
5986
6042
|
mode: z.ZodEnum<{
|
|
@@ -6019,7 +6075,6 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6019
6075
|
action: z.ZodLiteral<"local.shell.exec">;
|
|
6020
6076
|
lease: z.ZodObject<{
|
|
6021
6077
|
lease_id: z.ZodString;
|
|
6022
|
-
run_id: z.ZodString;
|
|
6023
6078
|
hcp_session_id: z.ZodString;
|
|
6024
6079
|
execution_host_id: z.ZodString;
|
|
6025
6080
|
provider_instance_id: z.ZodString;
|
|
@@ -6062,7 +6117,6 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6062
6117
|
turn_id: z.ZodString;
|
|
6063
6118
|
workspace_id: z.ZodString;
|
|
6064
6119
|
provider_instance_id: z.ZodString;
|
|
6065
|
-
run_id: z.ZodString;
|
|
6066
6120
|
}, z.core.$strict>;
|
|
6067
6121
|
sandbox: z.ZodObject<{
|
|
6068
6122
|
mode: z.ZodEnum<{
|
|
@@ -6088,7 +6142,6 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6088
6142
|
action: z.ZodLiteral<"local.dev_server.start">;
|
|
6089
6143
|
lease: z.ZodObject<{
|
|
6090
6144
|
lease_id: z.ZodString;
|
|
6091
|
-
run_id: z.ZodString;
|
|
6092
6145
|
hcp_session_id: z.ZodString;
|
|
6093
6146
|
execution_host_id: z.ZodString;
|
|
6094
6147
|
provider_instance_id: z.ZodString;
|
|
@@ -6132,7 +6185,6 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6132
6185
|
turn_id: z.ZodString;
|
|
6133
6186
|
workspace_id: z.ZodString;
|
|
6134
6187
|
provider_instance_id: z.ZodString;
|
|
6135
|
-
run_id: z.ZodString;
|
|
6136
6188
|
}, z.core.$strict>;
|
|
6137
6189
|
sandbox: z.ZodObject<{
|
|
6138
6190
|
mode: z.ZodEnum<{
|
|
@@ -6166,7 +6218,6 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6166
6218
|
action: z.ZodLiteral<"local.dev_server.stop">;
|
|
6167
6219
|
lease: z.ZodObject<{
|
|
6168
6220
|
lease_id: z.ZodString;
|
|
6169
|
-
run_id: z.ZodString;
|
|
6170
6221
|
hcp_session_id: z.ZodString;
|
|
6171
6222
|
execution_host_id: z.ZodString;
|
|
6172
6223
|
provider_instance_id: z.ZodString;
|
|
@@ -6190,7 +6241,6 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6190
6241
|
turn_id: z.ZodString;
|
|
6191
6242
|
workspace_id: z.ZodString;
|
|
6192
6243
|
provider_instance_id: z.ZodString;
|
|
6193
|
-
run_id: z.ZodString;
|
|
6194
6244
|
}, z.core.$strict>;
|
|
6195
6245
|
sandbox: z.ZodObject<{
|
|
6196
6246
|
mode: z.ZodEnum<{
|
|
@@ -6244,7 +6294,6 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6244
6294
|
action: z.ZodLiteral<"local.filesystem.read">;
|
|
6245
6295
|
lease: z.ZodObject<{
|
|
6246
6296
|
lease_id: z.ZodString;
|
|
6247
|
-
run_id: z.ZodString;
|
|
6248
6297
|
hcp_session_id: z.ZodString;
|
|
6249
6298
|
execution_host_id: z.ZodString;
|
|
6250
6299
|
provider_instance_id: z.ZodString;
|
|
@@ -6271,7 +6320,6 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6271
6320
|
turn_id: z.ZodString;
|
|
6272
6321
|
workspace_id: z.ZodString;
|
|
6273
6322
|
provider_instance_id: z.ZodString;
|
|
6274
|
-
run_id: z.ZodString;
|
|
6275
6323
|
}, z.core.$strict>;
|
|
6276
6324
|
audit_events: z.ZodObject<{
|
|
6277
6325
|
started: z.ZodOptional<z.ZodObject<{
|
|
@@ -6287,7 +6335,6 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6287
6335
|
action: z.ZodLiteral<"local.filesystem.list">;
|
|
6288
6336
|
lease: z.ZodObject<{
|
|
6289
6337
|
lease_id: z.ZodString;
|
|
6290
|
-
run_id: z.ZodString;
|
|
6291
6338
|
hcp_session_id: z.ZodString;
|
|
6292
6339
|
execution_host_id: z.ZodString;
|
|
6293
6340
|
provider_instance_id: z.ZodString;
|
|
@@ -6316,7 +6363,6 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6316
6363
|
turn_id: z.ZodString;
|
|
6317
6364
|
workspace_id: z.ZodString;
|
|
6318
6365
|
provider_instance_id: z.ZodString;
|
|
6319
|
-
run_id: z.ZodString;
|
|
6320
6366
|
}, z.core.$strict>;
|
|
6321
6367
|
audit_events: z.ZodObject<{
|
|
6322
6368
|
started: z.ZodOptional<z.ZodObject<{
|
|
@@ -6332,7 +6378,6 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6332
6378
|
action: z.ZodLiteral<"local.filesystem.write">;
|
|
6333
6379
|
lease: z.ZodObject<{
|
|
6334
6380
|
lease_id: z.ZodString;
|
|
6335
|
-
run_id: z.ZodString;
|
|
6336
6381
|
hcp_session_id: z.ZodString;
|
|
6337
6382
|
execution_host_id: z.ZodString;
|
|
6338
6383
|
provider_instance_id: z.ZodString;
|
|
@@ -6354,7 +6399,6 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6354
6399
|
turn_id: z.ZodString;
|
|
6355
6400
|
workspace_id: z.ZodString;
|
|
6356
6401
|
provider_instance_id: z.ZodString;
|
|
6357
|
-
run_id: z.ZodString;
|
|
6358
6402
|
}, z.core.$strict>;
|
|
6359
6403
|
audit_events: z.ZodObject<{
|
|
6360
6404
|
started: z.ZodOptional<z.ZodObject<{
|
|
@@ -6370,7 +6414,6 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6370
6414
|
action: z.ZodLiteral<"local.filesystem.patch">;
|
|
6371
6415
|
lease: z.ZodObject<{
|
|
6372
6416
|
lease_id: z.ZodString;
|
|
6373
|
-
run_id: z.ZodString;
|
|
6374
6417
|
hcp_session_id: z.ZodString;
|
|
6375
6418
|
execution_host_id: z.ZodString;
|
|
6376
6419
|
provider_instance_id: z.ZodString;
|
|
@@ -6392,7 +6435,6 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6392
6435
|
turn_id: z.ZodString;
|
|
6393
6436
|
workspace_id: z.ZodString;
|
|
6394
6437
|
provider_instance_id: z.ZodString;
|
|
6395
|
-
run_id: z.ZodString;
|
|
6396
6438
|
}, z.core.$strict>;
|
|
6397
6439
|
audit_events: z.ZodObject<{
|
|
6398
6440
|
started: z.ZodOptional<z.ZodObject<{
|
|
@@ -6408,7 +6450,6 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6408
6450
|
action: z.ZodLiteral<"local.git.status">;
|
|
6409
6451
|
lease: z.ZodObject<{
|
|
6410
6452
|
lease_id: z.ZodString;
|
|
6411
|
-
run_id: z.ZodString;
|
|
6412
6453
|
hcp_session_id: z.ZodString;
|
|
6413
6454
|
execution_host_id: z.ZodString;
|
|
6414
6455
|
provider_instance_id: z.ZodString;
|
|
@@ -6430,7 +6471,6 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6430
6471
|
turn_id: z.ZodString;
|
|
6431
6472
|
workspace_id: z.ZodString;
|
|
6432
6473
|
provider_instance_id: z.ZodString;
|
|
6433
|
-
run_id: z.ZodString;
|
|
6434
6474
|
}, z.core.$strict>;
|
|
6435
6475
|
audit_events: z.ZodObject<{
|
|
6436
6476
|
started: z.ZodOptional<z.ZodObject<{
|
|
@@ -6446,7 +6486,6 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6446
6486
|
action: z.ZodLiteral<"local.git.diff">;
|
|
6447
6487
|
lease: z.ZodObject<{
|
|
6448
6488
|
lease_id: z.ZodString;
|
|
6449
|
-
run_id: z.ZodString;
|
|
6450
6489
|
hcp_session_id: z.ZodString;
|
|
6451
6490
|
execution_host_id: z.ZodString;
|
|
6452
6491
|
provider_instance_id: z.ZodString;
|
|
@@ -6467,7 +6506,6 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6467
6506
|
turn_id: z.ZodString;
|
|
6468
6507
|
workspace_id: z.ZodString;
|
|
6469
6508
|
provider_instance_id: z.ZodString;
|
|
6470
|
-
run_id: z.ZodString;
|
|
6471
6509
|
}, z.core.$strict>;
|
|
6472
6510
|
audit_events: z.ZodObject<{
|
|
6473
6511
|
started: z.ZodOptional<z.ZodObject<{
|
|
@@ -6483,7 +6521,6 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6483
6521
|
action: z.ZodLiteral<"local.shell.exec">;
|
|
6484
6522
|
lease: z.ZodObject<{
|
|
6485
6523
|
lease_id: z.ZodString;
|
|
6486
|
-
run_id: z.ZodString;
|
|
6487
6524
|
hcp_session_id: z.ZodString;
|
|
6488
6525
|
execution_host_id: z.ZodString;
|
|
6489
6526
|
provider_instance_id: z.ZodString;
|
|
@@ -6512,7 +6549,6 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6512
6549
|
turn_id: z.ZodString;
|
|
6513
6550
|
workspace_id: z.ZodString;
|
|
6514
6551
|
provider_instance_id: z.ZodString;
|
|
6515
|
-
run_id: z.ZodString;
|
|
6516
6552
|
}, z.core.$strict>;
|
|
6517
6553
|
audit_events: z.ZodObject<{
|
|
6518
6554
|
started: z.ZodOptional<z.ZodObject<{
|
|
@@ -6528,7 +6564,6 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6528
6564
|
action: z.ZodLiteral<"local.dev_server.start">;
|
|
6529
6565
|
lease: z.ZodObject<{
|
|
6530
6566
|
lease_id: z.ZodString;
|
|
6531
|
-
run_id: z.ZodString;
|
|
6532
6567
|
hcp_session_id: z.ZodString;
|
|
6533
6568
|
execution_host_id: z.ZodString;
|
|
6534
6569
|
provider_instance_id: z.ZodString;
|
|
@@ -6554,7 +6589,6 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6554
6589
|
turn_id: z.ZodString;
|
|
6555
6590
|
workspace_id: z.ZodString;
|
|
6556
6591
|
provider_instance_id: z.ZodString;
|
|
6557
|
-
run_id: z.ZodString;
|
|
6558
6592
|
}, z.core.$strict>;
|
|
6559
6593
|
audit_events: z.ZodObject<{
|
|
6560
6594
|
started: z.ZodOptional<z.ZodObject<{
|
|
@@ -6570,7 +6604,6 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6570
6604
|
action: z.ZodLiteral<"local.dev_server.stop">;
|
|
6571
6605
|
lease: z.ZodObject<{
|
|
6572
6606
|
lease_id: z.ZodString;
|
|
6573
|
-
run_id: z.ZodString;
|
|
6574
6607
|
hcp_session_id: z.ZodString;
|
|
6575
6608
|
execution_host_id: z.ZodString;
|
|
6576
6609
|
provider_instance_id: z.ZodString;
|
|
@@ -6591,7 +6624,6 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6591
6624
|
turn_id: z.ZodString;
|
|
6592
6625
|
workspace_id: z.ZodString;
|
|
6593
6626
|
provider_instance_id: z.ZodString;
|
|
6594
|
-
run_id: z.ZodString;
|
|
6595
6627
|
}, z.core.$strict>;
|
|
6596
6628
|
audit_events: z.ZodObject<{
|
|
6597
6629
|
started: z.ZodOptional<z.ZodObject<{
|
|
@@ -6634,7 +6666,6 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6634
6666
|
turn_id: z.ZodString;
|
|
6635
6667
|
workspace_id: z.ZodString;
|
|
6636
6668
|
provider_instance_id: z.ZodString;
|
|
6637
|
-
run_id: z.ZodString;
|
|
6638
6669
|
}, z.core.$strict>;
|
|
6639
6670
|
lease: z.ZodOptional<z.ZodObject<{
|
|
6640
6671
|
lease_id: z.ZodString;
|
|
@@ -6645,7 +6676,6 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6645
6676
|
dev_server: "dev_server";
|
|
6646
6677
|
}>;
|
|
6647
6678
|
scope: z.ZodString;
|
|
6648
|
-
run_id: z.ZodString;
|
|
6649
6679
|
hcp_session_id: z.ZodString;
|
|
6650
6680
|
execution_host_id: z.ZodString;
|
|
6651
6681
|
provider_instance_id: z.ZodString;
|
|
@@ -6733,7 +6763,7 @@ export type LocalActionRequestMessage = HcpEnvelope<"local.action.request", Loca
|
|
|
6733
6763
|
export type LocalActionResponseMessage = HcpEnvelope<"local.action.response", LocalActionResponsePayload>;
|
|
6734
6764
|
export type LocalActionErrorMessage = HcpEnvelope<"local.action.error", LocalActionErrorPayload>;
|
|
6735
6765
|
export type HcpHarnessEventMessage = HcpEnvelope<"harness.event", HcpHarnessEventPayload>;
|
|
6736
|
-
export type HcpMessage = HcpEnvelope<"host.workspaces.request", HcpWorkspacesRequestPayload> | HcpEnvelope<"host.workspaces.result", HcpWorkspacesResultPayload> | HcpCommandAckMessage | HcpCommandNackMessage | HcpHostHelloMessage | HcpHostAcceptedMessage | HcpHostRejectedMessage | HcpHostHeartbeatMessage | HcpHostCapabilitiesUpdatedMessage | HcpHostReplayUnavailableMessage | HcpSessionStartMessage | HcpSessionSnapshotRequestMessage | HcpSessionSnapshotMessage | HcpTurnSendMessage | HcpTurnCancelMessage | HcpSessionStopMessage | HcpApprovalRespondMessage | HcpInputRespondMessage | ToolServersDetachMessage | LocalActionRequestMessage | LocalActionResponseMessage | LocalActionErrorMessage | HcpHarnessEventMessage;
|
|
6766
|
+
export type HcpMessage = HcpEnvelope<"host.accounts.read", HcpAccountsReadPayload> | HcpEnvelope<"host.accounts.snapshot", HcpAccountsSnapshotPayload> | HcpEnvelope<"host.workspaces.request", HcpWorkspacesRequestPayload> | HcpEnvelope<"host.workspaces.result", HcpWorkspacesResultPayload> | HcpCommandAckMessage | HcpCommandNackMessage | HcpHostHelloMessage | HcpHostAcceptedMessage | HcpHostRejectedMessage | HcpHostHeartbeatMessage | HcpHostCapabilitiesUpdatedMessage | HcpHostReplayUnavailableMessage | HcpSessionStartMessage | HcpSessionSnapshotRequestMessage | HcpSessionSnapshotMessage | HcpTurnSendMessage | HcpTurnCancelMessage | HcpSessionStopMessage | HcpApprovalRespondMessage | HcpInputRespondMessage | ToolServersDetachMessage | LocalActionRequestMessage | LocalActionResponseMessage | LocalActionErrorMessage | HcpHarnessEventMessage;
|
|
6737
6767
|
export type HcpKnownMessageType = HcpMessage["type"];
|
|
6738
6768
|
export declare function parseHcpEnvelope(input: unknown): HcpEnvelope<string, unknown>;
|
|
6739
6769
|
export declare function parseHcpMessage(input: unknown): HcpMessage;
|