@agentrix/shared 2.38.0 → 2.40.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/{errors-B45Qk4Gg.d.cts → errors-w-U9apaD.d.cts} +143 -31
- package/dist/index.cjs +87 -75
- package/dist/index.d.cts +53 -53
- package/dist/node.d.cts +2 -2
- package/package.json +1 -1
|
@@ -1004,6 +1004,104 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
|
|
|
1004
1004
|
}, z.core.$strip>;
|
|
1005
1005
|
}, z.core.$strip>;
|
|
1006
1006
|
type UpdateTaskTitleResponse = z.infer<typeof UpdateTaskTitleResponseSchema>;
|
|
1007
|
+
/**
|
|
1008
|
+
* PUT /v1/tasks/:taskId/model - Request schema
|
|
1009
|
+
*/
|
|
1010
|
+
declare const UpdateTaskModelRequestSchema: z.ZodObject<{
|
|
1011
|
+
model: z.ZodNullable<z.ZodString>;
|
|
1012
|
+
}, z.core.$strip>;
|
|
1013
|
+
type UpdateTaskModelRequest = z.infer<typeof UpdateTaskModelRequestSchema>;
|
|
1014
|
+
/**
|
|
1015
|
+
* PUT /v1/tasks/:taskId/model - Response schema
|
|
1016
|
+
*/
|
|
1017
|
+
declare const UpdateTaskModelResponseSchema: z.ZodObject<{
|
|
1018
|
+
success: z.ZodBoolean;
|
|
1019
|
+
task: z.ZodObject<{
|
|
1020
|
+
id: z.ZodString;
|
|
1021
|
+
type: z.ZodDefault<z.ZodEnum<{
|
|
1022
|
+
chat: "chat";
|
|
1023
|
+
work: "work";
|
|
1024
|
+
shadow: "shadow";
|
|
1025
|
+
}>>;
|
|
1026
|
+
chatId: z.ZodString;
|
|
1027
|
+
userId: z.ZodString;
|
|
1028
|
+
state: z.ZodString;
|
|
1029
|
+
workerStatus: z.ZodNullable<z.ZodEnum<{
|
|
1030
|
+
initializing: "initializing";
|
|
1031
|
+
ready: "ready";
|
|
1032
|
+
running: "running";
|
|
1033
|
+
}>>;
|
|
1034
|
+
agentId: z.ZodString;
|
|
1035
|
+
allowFilesystemAgent: z.ZodBoolean;
|
|
1036
|
+
machineId: z.ZodNullable<z.ZodString>;
|
|
1037
|
+
cloudId: z.ZodNullable<z.ZodString>;
|
|
1038
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1039
|
+
repositoryId: z.ZodNullable<z.ZodString>;
|
|
1040
|
+
workspaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1041
|
+
baseBranch: z.ZodNullable<z.ZodString>;
|
|
1042
|
+
branchName: z.ZodNullable<z.ZodString>;
|
|
1043
|
+
branchBinding: z.ZodDefault<z.ZodEnum<{
|
|
1044
|
+
none: "none";
|
|
1045
|
+
explicit: "explicit";
|
|
1046
|
+
"platform-managed": "platform-managed";
|
|
1047
|
+
"external-observed": "external-observed";
|
|
1048
|
+
}>>;
|
|
1049
|
+
workerExecutionMode: z.ZodEnum<{
|
|
1050
|
+
loop: "loop";
|
|
1051
|
+
oneshot: "oneshot";
|
|
1052
|
+
}>;
|
|
1053
|
+
title: z.ZodNullable<z.ZodString>;
|
|
1054
|
+
customTitle: z.ZodNullable<z.ZodString>;
|
|
1055
|
+
agentSessionId: z.ZodNullable<z.ZodString>;
|
|
1056
|
+
dataEncryptionKey: z.ZodNullable<z.ZodString>;
|
|
1057
|
+
ownerEncryptedDataKey: z.ZodNullable<z.ZodString>;
|
|
1058
|
+
cwd: z.ZodNullable<z.ZodString>;
|
|
1059
|
+
userCwd: z.ZodNullable<z.ZodString>;
|
|
1060
|
+
forceUserCwd: z.ZodNullable<z.ZodBoolean>;
|
|
1061
|
+
repositorySourceType: z.ZodNullable<z.ZodEnum<{
|
|
1062
|
+
temporary: "temporary";
|
|
1063
|
+
directory: "directory";
|
|
1064
|
+
"git-server": "git-server";
|
|
1065
|
+
}>>;
|
|
1066
|
+
previewUrl: z.ZodNullable<z.ZodString>;
|
|
1067
|
+
pullRequestNumber: z.ZodNullable<z.ZodNumber>;
|
|
1068
|
+
pullRequestUrl: z.ZodNullable<z.ZodString>;
|
|
1069
|
+
pullRequestState: z.ZodNullable<z.ZodEnum<{
|
|
1070
|
+
open: "open";
|
|
1071
|
+
closed: "closed";
|
|
1072
|
+
merged: "merged";
|
|
1073
|
+
}>>;
|
|
1074
|
+
pullRequestStateChangedAt: z.ZodNullable<z.ZodString>;
|
|
1075
|
+
issueNumber: z.ZodNullable<z.ZodNumber>;
|
|
1076
|
+
gitStats: z.ZodNullable<z.ZodObject<{
|
|
1077
|
+
totalInsertions: z.ZodNumber;
|
|
1078
|
+
totalDeletions: z.ZodNumber;
|
|
1079
|
+
files: z.ZodArray<z.ZodObject<{
|
|
1080
|
+
path: z.ZodString;
|
|
1081
|
+
insertions: z.ZodNumber;
|
|
1082
|
+
deletions: z.ZodNumber;
|
|
1083
|
+
}, z.core.$strip>>;
|
|
1084
|
+
}, z.core.$strip>>;
|
|
1085
|
+
usageSummary: z.ZodNullable<z.ZodObject<{
|
|
1086
|
+
inputTokens: z.ZodNumber;
|
|
1087
|
+
outputTokens: z.ZodNumber;
|
|
1088
|
+
cacheReadInputTokens: z.ZodNumber;
|
|
1089
|
+
cacheCreationInputTokens: z.ZodNumber;
|
|
1090
|
+
webSearchRequests: z.ZodNumber;
|
|
1091
|
+
totalTokens: z.ZodNumber;
|
|
1092
|
+
models: z.ZodArray<z.ZodString>;
|
|
1093
|
+
}, z.core.$strip>>;
|
|
1094
|
+
totalDuration: z.ZodNullable<z.ZodNumber>;
|
|
1095
|
+
rootTaskId: z.ZodNullable<z.ZodString>;
|
|
1096
|
+
parentTaskId: z.ZodNullable<z.ZodString>;
|
|
1097
|
+
taskAgentIds: z.ZodArray<z.ZodString>;
|
|
1098
|
+
supportedFeatures: z.ZodArray<z.ZodString>;
|
|
1099
|
+
autoNavigate: z.ZodOptional<z.ZodBoolean>;
|
|
1100
|
+
createdAt: z.ZodString;
|
|
1101
|
+
updatedAt: z.ZodString;
|
|
1102
|
+
}, z.core.$strip>;
|
|
1103
|
+
}, z.core.$strip>;
|
|
1104
|
+
type UpdateTaskModelResponse = z.infer<typeof UpdateTaskModelResponseSchema>;
|
|
1007
1105
|
declare const UpdateTaskPreviewUrlResponseSchema: z.ZodObject<{
|
|
1008
1106
|
success: z.ZodBoolean;
|
|
1009
1107
|
task: z.ZodObject<{
|
|
@@ -1107,20 +1205,24 @@ type SendMessageTarget = 'agent' | 'user';
|
|
|
1107
1205
|
* - 'user': Broadcasts SDKAssistantMessage to users viewing the task
|
|
1108
1206
|
*/
|
|
1109
1207
|
declare const SendTaskMessageRequestSchema: z.ZodObject<{
|
|
1110
|
-
message: z.ZodCustom<
|
|
1208
|
+
message: z.ZodCustom<SDKUserMessage | SDKAssistantMessage, SDKUserMessage | SDKAssistantMessage>;
|
|
1111
1209
|
target: z.ZodEnum<{
|
|
1112
1210
|
user: "user";
|
|
1113
1211
|
agent: "agent";
|
|
1114
1212
|
}>;
|
|
1115
1213
|
fromTaskId: z.ZodOptional<z.ZodString>;
|
|
1116
1214
|
senderType: z.ZodEnum<{
|
|
1117
|
-
system: "system";
|
|
1118
|
-
human: "human";
|
|
1119
1215
|
agent: "agent";
|
|
1216
|
+
human: "human";
|
|
1217
|
+
system: "system";
|
|
1120
1218
|
channel: "channel";
|
|
1121
1219
|
}>;
|
|
1122
1220
|
senderId: z.ZodString;
|
|
1123
1221
|
senderName: z.ZodString;
|
|
1222
|
+
responseMode: z.ZodOptional<z.ZodEnum<{
|
|
1223
|
+
stream: "stream";
|
|
1224
|
+
async: "async";
|
|
1225
|
+
}>>;
|
|
1124
1226
|
}, z.core.$strip>;
|
|
1125
1227
|
type SendTaskMessageRequest = z.infer<typeof SendTaskMessageRequestSchema>;
|
|
1126
1228
|
/**
|
|
@@ -1128,6 +1230,16 @@ type SendTaskMessageRequest = z.infer<typeof SendTaskMessageRequestSchema>;
|
|
|
1128
1230
|
*/
|
|
1129
1231
|
declare const SendTaskMessageResponseSchema: z.ZodObject<{
|
|
1130
1232
|
success: z.ZodBoolean;
|
|
1233
|
+
run: z.ZodOptional<z.ZodObject<{
|
|
1234
|
+
runId: z.ZodString;
|
|
1235
|
+
status: z.ZodEnum<{
|
|
1236
|
+
running: "running";
|
|
1237
|
+
failed: "failed";
|
|
1238
|
+
queued: "queued";
|
|
1239
|
+
completed: "completed";
|
|
1240
|
+
}>;
|
|
1241
|
+
detailUrl: z.ZodString;
|
|
1242
|
+
}, z.core.$strip>>;
|
|
1131
1243
|
}, z.core.$strip>;
|
|
1132
1244
|
type SendTaskMessageResponse = z.infer<typeof SendTaskMessageResponseSchema>;
|
|
1133
1245
|
/**
|
|
@@ -1191,9 +1303,9 @@ declare const ListRecentTasksRequestSchema: z.ZodObject<{
|
|
|
1191
1303
|
chatId: z.ZodString;
|
|
1192
1304
|
limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
1193
1305
|
status: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1194
|
-
active: "active";
|
|
1195
|
-
all: "all";
|
|
1196
1306
|
completed: "completed";
|
|
1307
|
+
all: "all";
|
|
1308
|
+
active: "active";
|
|
1197
1309
|
}>>>;
|
|
1198
1310
|
}, z.core.$strip>;
|
|
1199
1311
|
type ListRecentTasksRequest = z.infer<typeof ListRecentTasksRequestSchema>;
|
|
@@ -1962,8 +2074,8 @@ declare const MachineControlCommandSchema: z.ZodObject<{
|
|
|
1962
2074
|
}, z.core.$strip>;
|
|
1963
2075
|
type MachineControlCommandEventData = z.infer<typeof MachineControlCommandSchema>;
|
|
1964
2076
|
declare const MachineControlProgressStatusSchema: z.ZodEnum<{
|
|
1965
|
-
failed: "failed";
|
|
1966
2077
|
running: "running";
|
|
2078
|
+
failed: "failed";
|
|
1967
2079
|
succeeded: "succeeded";
|
|
1968
2080
|
}>;
|
|
1969
2081
|
type MachineControlProgressStatus = z.infer<typeof MachineControlProgressStatusSchema>;
|
|
@@ -1971,8 +2083,8 @@ declare const MachineControlProgressSchema: z.ZodObject<{
|
|
|
1971
2083
|
eventId: z.ZodString;
|
|
1972
2084
|
opCode: z.ZodString;
|
|
1973
2085
|
status: z.ZodEnum<{
|
|
1974
|
-
failed: "failed";
|
|
1975
2086
|
running: "running";
|
|
2087
|
+
failed: "failed";
|
|
1976
2088
|
succeeded: "succeeded";
|
|
1977
2089
|
}>;
|
|
1978
2090
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -1997,10 +2109,10 @@ declare const MachineControlProgressSchema: z.ZodObject<{
|
|
|
1997
2109
|
}, z.core.$strip>;
|
|
1998
2110
|
type MachineControlProgressEventData = z.infer<typeof MachineControlProgressSchema>;
|
|
1999
2111
|
declare const MachineControlUpdatedStatusSchema: z.ZodEnum<{
|
|
2000
|
-
failed: "failed";
|
|
2001
2112
|
running: "running";
|
|
2002
|
-
|
|
2113
|
+
failed: "failed";
|
|
2003
2114
|
expired: "expired";
|
|
2115
|
+
succeeded: "succeeded";
|
|
2004
2116
|
}>;
|
|
2005
2117
|
type MachineControlUpdatedStatus = z.infer<typeof MachineControlUpdatedStatusSchema>;
|
|
2006
2118
|
declare const MachineControlUpdatedSchema: z.ZodObject<{
|
|
@@ -2016,10 +2128,10 @@ declare const MachineControlUpdatedSchema: z.ZodObject<{
|
|
|
2016
2128
|
"storage-clean": "storage-clean";
|
|
2017
2129
|
}>;
|
|
2018
2130
|
status: z.ZodEnum<{
|
|
2019
|
-
failed: "failed";
|
|
2020
2131
|
running: "running";
|
|
2021
|
-
|
|
2132
|
+
failed: "failed";
|
|
2022
2133
|
expired: "expired";
|
|
2134
|
+
succeeded: "succeeded";
|
|
2023
2135
|
}>;
|
|
2024
2136
|
message: z.ZodOptional<z.ZodString>;
|
|
2025
2137
|
result: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -2050,8 +2162,8 @@ interface MachineControlRelayContext {
|
|
|
2050
2162
|
expiresAt: string;
|
|
2051
2163
|
}
|
|
2052
2164
|
declare const StorageManagementKindSchema: z.ZodEnum<{
|
|
2053
|
-
config: "config";
|
|
2054
2165
|
workspaces: "workspaces";
|
|
2166
|
+
config: "config";
|
|
2055
2167
|
logs: "logs";
|
|
2056
2168
|
tmp: "tmp";
|
|
2057
2169
|
repos: "repos";
|
|
@@ -2061,10 +2173,10 @@ declare const StorageManagementKindSchema: z.ZodEnum<{
|
|
|
2061
2173
|
}>;
|
|
2062
2174
|
type StorageManagementKind = z.infer<typeof StorageManagementKindSchema>;
|
|
2063
2175
|
declare const StorageManagementDeleteModeSchema: z.ZodEnum<{
|
|
2176
|
+
protected: "protected";
|
|
2064
2177
|
rm: "rm";
|
|
2065
2178
|
"remove-worktree": "remove-worktree";
|
|
2066
2179
|
"rm-stale-directory": "rm-stale-directory";
|
|
2067
|
-
protected: "protected";
|
|
2068
2180
|
}>;
|
|
2069
2181
|
type StorageManagementDeleteMode = z.infer<typeof StorageManagementDeleteModeSchema>;
|
|
2070
2182
|
declare const StorageScanItemSchema: z.ZodObject<{
|
|
@@ -2077,10 +2189,10 @@ declare const StorageScanItemSchema: z.ZodObject<{
|
|
|
2077
2189
|
reclaimable: z.ZodBoolean;
|
|
2078
2190
|
defaultSelected: z.ZodOptional<z.ZodBoolean>;
|
|
2079
2191
|
deleteMode: z.ZodEnum<{
|
|
2192
|
+
protected: "protected";
|
|
2080
2193
|
rm: "rm";
|
|
2081
2194
|
"remove-worktree": "remove-worktree";
|
|
2082
2195
|
"rm-stale-directory": "rm-stale-directory";
|
|
2083
|
-
protected: "protected";
|
|
2084
2196
|
}>;
|
|
2085
2197
|
reasonCode: z.ZodOptional<z.ZodString>;
|
|
2086
2198
|
reason: z.ZodOptional<z.ZodString>;
|
|
@@ -2092,8 +2204,8 @@ declare const StorageScanItemSchema: z.ZodObject<{
|
|
|
2092
2204
|
type StorageScanItem = z.infer<typeof StorageScanItemSchema>;
|
|
2093
2205
|
declare const StorageScanCategorySchema: z.ZodObject<{
|
|
2094
2206
|
kind: z.ZodEnum<{
|
|
2095
|
-
config: "config";
|
|
2096
2207
|
workspaces: "workspaces";
|
|
2208
|
+
config: "config";
|
|
2097
2209
|
logs: "logs";
|
|
2098
2210
|
tmp: "tmp";
|
|
2099
2211
|
repos: "repos";
|
|
@@ -2115,8 +2227,8 @@ declare const StorageScanResultSchema: z.ZodObject<{
|
|
|
2115
2227
|
reclaimableBytes: z.ZodNumber;
|
|
2116
2228
|
categories: z.ZodArray<z.ZodObject<{
|
|
2117
2229
|
kind: z.ZodEnum<{
|
|
2118
|
-
config: "config";
|
|
2119
2230
|
workspaces: "workspaces";
|
|
2231
|
+
config: "config";
|
|
2120
2232
|
logs: "logs";
|
|
2121
2233
|
tmp: "tmp";
|
|
2122
2234
|
repos: "repos";
|
|
@@ -2139,10 +2251,10 @@ declare const StorageScanResultSchema: z.ZodObject<{
|
|
|
2139
2251
|
reclaimable: z.ZodBoolean;
|
|
2140
2252
|
defaultSelected: z.ZodOptional<z.ZodBoolean>;
|
|
2141
2253
|
deleteMode: z.ZodEnum<{
|
|
2254
|
+
protected: "protected";
|
|
2142
2255
|
rm: "rm";
|
|
2143
2256
|
"remove-worktree": "remove-worktree";
|
|
2144
2257
|
"rm-stale-directory": "rm-stale-directory";
|
|
2145
|
-
protected: "protected";
|
|
2146
2258
|
}>;
|
|
2147
2259
|
reasonCode: z.ZodOptional<z.ZodString>;
|
|
2148
2260
|
reason: z.ZodOptional<z.ZodString>;
|
|
@@ -2228,14 +2340,14 @@ declare const AskUserMessageSchema: z.ZodObject<{
|
|
|
2228
2340
|
}, z.core.$strip>;
|
|
2229
2341
|
type AskUserMessage = z.infer<typeof AskUserMessageSchema>;
|
|
2230
2342
|
declare const AskUserResponseStatusSchema: z.ZodEnum<{
|
|
2343
|
+
timeout: "timeout";
|
|
2231
2344
|
answered: "answered";
|
|
2232
2345
|
cancelled: "cancelled";
|
|
2233
|
-
timeout: "timeout";
|
|
2234
2346
|
}>;
|
|
2235
2347
|
declare const AskUserResponseReasonSchema: z.ZodEnum<{
|
|
2236
|
-
timeout: "timeout";
|
|
2237
2348
|
user: "user";
|
|
2238
2349
|
system: "system";
|
|
2350
|
+
timeout: "timeout";
|
|
2239
2351
|
}>;
|
|
2240
2352
|
type AskUserResponseStatus = z.infer<typeof AskUserResponseStatusSchema>;
|
|
2241
2353
|
type AskUserResponseReason = z.infer<typeof AskUserResponseReasonSchema>;
|
|
@@ -2251,14 +2363,14 @@ declare const AskUserResponseMessageSchema: z.ZodObject<{
|
|
|
2251
2363
|
details: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2252
2364
|
rememberAnswers: z.ZodOptional<z.ZodArray<z.ZodBoolean>>;
|
|
2253
2365
|
status: z.ZodOptional<z.ZodEnum<{
|
|
2366
|
+
timeout: "timeout";
|
|
2254
2367
|
answered: "answered";
|
|
2255
2368
|
cancelled: "cancelled";
|
|
2256
|
-
timeout: "timeout";
|
|
2257
2369
|
}>>;
|
|
2258
2370
|
reason: z.ZodOptional<z.ZodEnum<{
|
|
2259
|
-
timeout: "timeout";
|
|
2260
2371
|
user: "user";
|
|
2261
2372
|
system: "system";
|
|
2373
|
+
timeout: "timeout";
|
|
2262
2374
|
}>>;
|
|
2263
2375
|
}, z.core.$strip>;
|
|
2264
2376
|
type AskUserResponseMessage = z.infer<typeof AskUserResponseMessageSchema>;
|
|
@@ -2664,8 +2776,8 @@ declare const baseTaskSchema: z.ZodObject<{
|
|
|
2664
2776
|
agentType: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
2665
2777
|
allowFilesystemAgent: z.ZodOptional<z.ZodBoolean>;
|
|
2666
2778
|
agentSource: z.ZodOptional<z.ZodEnum<{
|
|
2667
|
-
registered: "registered";
|
|
2668
2779
|
draft: "draft";
|
|
2780
|
+
registered: "registered";
|
|
2669
2781
|
filesystem: "filesystem";
|
|
2670
2782
|
}>>;
|
|
2671
2783
|
machineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -2760,8 +2872,8 @@ declare const createTaskSchema: z.ZodObject<{
|
|
|
2760
2872
|
agentType: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
2761
2873
|
allowFilesystemAgent: z.ZodOptional<z.ZodBoolean>;
|
|
2762
2874
|
agentSource: z.ZodOptional<z.ZodEnum<{
|
|
2763
|
-
registered: "registered";
|
|
2764
2875
|
draft: "draft";
|
|
2876
|
+
registered: "registered";
|
|
2765
2877
|
filesystem: "filesystem";
|
|
2766
2878
|
}>>;
|
|
2767
2879
|
machineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -2859,8 +2971,8 @@ declare const resumeTaskSchema: z.ZodObject<{
|
|
|
2859
2971
|
agentType: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
2860
2972
|
allowFilesystemAgent: z.ZodOptional<z.ZodBoolean>;
|
|
2861
2973
|
agentSource: z.ZodOptional<z.ZodEnum<{
|
|
2862
|
-
registered: "registered";
|
|
2863
2974
|
draft: "draft";
|
|
2975
|
+
registered: "registered";
|
|
2864
2976
|
filesystem: "filesystem";
|
|
2865
2977
|
}>>;
|
|
2866
2978
|
machineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -3069,9 +3181,9 @@ declare const TaskMessageSchema: z.ZodObject<{
|
|
|
3069
3181
|
taskId: z.ZodString;
|
|
3070
3182
|
chatId: z.ZodOptional<z.ZodString>;
|
|
3071
3183
|
from: z.ZodEnum<{
|
|
3184
|
+
machine: "machine";
|
|
3072
3185
|
app: "app";
|
|
3073
3186
|
"api-server": "api-server";
|
|
3074
|
-
machine: "machine";
|
|
3075
3187
|
worker: "worker";
|
|
3076
3188
|
}>;
|
|
3077
3189
|
opCode: z.ZodOptional<z.ZodString>;
|
|
@@ -3082,9 +3194,9 @@ declare const TaskMessageSchema: z.ZodObject<{
|
|
|
3082
3194
|
encryptedMessage: z.ZodOptional<z.ZodString>;
|
|
3083
3195
|
agentId: z.ZodOptional<z.ZodString>;
|
|
3084
3196
|
senderType: z.ZodEnum<{
|
|
3085
|
-
system: "system";
|
|
3086
|
-
human: "human";
|
|
3087
3197
|
agent: "agent";
|
|
3198
|
+
human: "human";
|
|
3199
|
+
system: "system";
|
|
3088
3200
|
channel: "channel";
|
|
3089
3201
|
}>;
|
|
3090
3202
|
senderId: z.ZodString;
|
|
@@ -3234,8 +3346,8 @@ declare const RtcSignalSchema: z.ZodObject<{
|
|
|
3234
3346
|
machineId: z.ZodString;
|
|
3235
3347
|
sessionId: z.ZodString;
|
|
3236
3348
|
from: z.ZodEnum<{
|
|
3237
|
-
app: "app";
|
|
3238
3349
|
machine: "machine";
|
|
3350
|
+
app: "app";
|
|
3239
3351
|
}>;
|
|
3240
3352
|
signal: z.ZodAny;
|
|
3241
3353
|
userId: z.ZodOptional<z.ZodString>;
|
|
@@ -3660,8 +3772,8 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
3660
3772
|
chatId: z.ZodString;
|
|
3661
3773
|
memberCode: z.ZodString;
|
|
3662
3774
|
type: z.ZodEnum<{
|
|
3663
|
-
human: "human";
|
|
3664
3775
|
agent: "agent";
|
|
3776
|
+
human: "human";
|
|
3665
3777
|
}>;
|
|
3666
3778
|
role: z.ZodString;
|
|
3667
3779
|
createdAt: z.ZodString;
|
|
@@ -4629,5 +4741,5 @@ declare class MissingAgentFileError extends AgentError {
|
|
|
4629
4741
|
constructor(filePath: string);
|
|
4630
4742
|
}
|
|
4631
4743
|
|
|
4632
|
-
export { permissionResponseRequestSchema as $, ListTasksResponseSchema as A, DEFAULT_WORKER_EXECUTION_MODE as D, EnsureIssueRootTaskRequestSchema as E, resumeTaskRequestSchema as F, ResumeTaskResponseSchema as G, CancelTaskRequestSchema as I, cancelTaskRequestSchema as K, ListTasksRequestSchema as L, CancelTaskResponseSchema as M, StopTaskRequestSchema as O, ResumeTaskRequestSchema as R, StartTaskRequestSchema as S, UpdateTaskPreviewUrlRequestSchema as U, stopTaskRequestSchema as V, StopTaskResponseSchema as X, PermissionResponseRequestSchema as Z, WorkerExecutionModeSchema as a,
|
|
4633
|
-
export type { ListTasksResponse as B, ResumeTaskRequest as C, ResumeTaskResponse as H, CancelTaskRequest as J, CancelTaskResponse as N, PreviewMetadata as P, StopTaskRequest as Q, TaskExecutionMode as T, WorkerExecutionMode as W, StopTaskResponse as Y, PermissionResponseRequest as _, PermissionResponseResponse as a1, ProjectEntry as a3, ProjectDirectoryResponse as a5, QueryEventsRequest as a7, TaskEvent as a8, QueryEventsResponse as a9, UpdateTaskTitleResponse as aB,
|
|
4744
|
+
export { permissionResponseRequestSchema as $, ListTasksResponseSchema as A, DEFAULT_WORKER_EXECUTION_MODE as D, EnsureIssueRootTaskRequestSchema as E, resumeTaskRequestSchema as F, ResumeTaskResponseSchema as G, CancelTaskRequestSchema as I, cancelTaskRequestSchema as K, ListTasksRequestSchema as L, CancelTaskResponseSchema as M, StopTaskRequestSchema as O, ResumeTaskRequestSchema as R, StartTaskRequestSchema as S, UpdateTaskPreviewUrlRequestSchema as U, stopTaskRequestSchema as V, StopTaskResponseSchema as X, PermissionResponseRequestSchema as Z, WorkerExecutionModeSchema as a, RecentTaskSummarySchema as a$, PermissionResponseResponseSchema as a0, ProjectEntrySchema as a2, ProjectDirectoryResponseSchema as a4, QueryEventsRequestSchema as a6, UpdateTaskTitleResponseSchema as aA, UpdateTaskModelRequestSchema as aC, UpdateTaskModelResponseSchema as aE, UpdateTaskPreviewUrlResponseSchema as aG, SendTaskMessageRequestSchema as aJ, SendTaskMessageResponseSchema as aL, ShowModalRequestSchema as aN, ShowModalResponseSchema as aP, GetTaskSessionResponseSchema as aR, ListSubTasksRequestSchema as aT, SubTaskSummarySchema as aV, ListSubTasksResponseSchema as aX, ListRecentTasksRequestSchema as aZ, FillEventsRequestSchema as aa, CreateMergeRequestSchema as ad, createMergeRequestSchema as af, CreateMergeRequestResponseSchema as ag, ApprovePrRequestSchema as ai, ApprovePrResponseSchema as ak, CreateTaskShareSchema as am, CreateTaskShareResponseSchema as ao, ArchiveTaskRequestSchema as aq, ArchiveTaskResponseSchema as as, UnarchiveTaskRequestSchema as au, UnarchiveTaskResponseSchema as aw, UpdateTaskTitleRequestSchema as ay, GetStreamVersionQuerySchema as b$, ListRecentTasksResponseSchema as b1, FindTaskByAgentRequestSchema as b3, FindTaskByAgentResponseSchema as b5, HiveListingTypeSchema as b7, HiveAuthorTypeSchema as b9, RecordHiveInstallResponseSchema as bB, HiveReviewSchema as bD, CreateHiveReviewRequestSchema as bF, UpdateHiveReviewRequestSchema as bH, HiveReviewListResponseSchema as bJ, HiveCommentSchema as bL, CreateHiveCommentRequestSchema as bN, UpdateHiveCommentRequestSchema as bP, HiveCommentListResponseSchema as bR, HiveInstalledItemSchema as bT, HiveInstalledResponseSchema as bV, HiveMyListingsResponseSchema as bX, SyncStreamTypeSchema as bZ, HiveListingStatusSchema as bb, HiveSortSchema as bd, HiveListingSchema as bf, PublishToHiveRequestSchema as bh, PublishToHiveResponseSchema as bj, HiveListQuerySchema as bl, HiveListResponseSchema as bn, UpdateHiveListingRequestSchema as bp, UpdateHiveVersionRequestSchema as br, HiveInstallRequestSchema as bt, HiveInstallSchema as bv, HiveInstallResponseSchema as bx, RecordHiveInstallRequestSchema as bz, isLocalTaskExecution as c, StreamVersionResponseSchema as c1, SyncAvailableEventSchema as c3, AskUserOptionSchema as c5, AskUserQuestionSchema as c7, AskUserMessageSchema as c9, VisionPlanCardEventSchema as cB, VisionPlanActionEventSchema as cD, VisionPlanReviewWriteEventSchema as cF, WorkspaceFileMutationOperationSchema as cH, WorkspaceFileMutationRequestSchema as cI, WorkspaceFileMutationResponseSchema as cK, AppAliveEventSchema as cM, ApiServerAliveEventSchema as cO, MachineAliveEventSchema as cQ, ShutdownMachineSchema as cS, WorkerInitializingSchema as cU, WorkerInitializedSchema as cW, WorkerPermissionModeValueSchema as cY, WorkerReadySchema as c_, AskUserResponseStatusSchema as cb, AskUserResponseReasonSchema as cc, AskUserResponseMessageSchema as cf, TaskAgentInfoSchema as cn, isAskUserMessage as cp, isAskUserResponseMessage as cq, isCompanionHeartbeatMessage as cr, isCompanionReminderMessage as cs, isCompanionMemoryOrganizationMessage as ct, isSubTaskAskUserMessage as cu, isTaskSystemMessage as cv, isSDKMessage as cw, isSDKUserMessage as cx, createEventId as cy, EventAckSchema as cz, getTaskExecutionMachineRouteId as d, ActiveAgentSchema as d0, WorkerAliveEventSchema as d2, WorkerExitSchema as d4, WorkerRunningSchema as d6, WorkerPermissionModeSchema as d8, PreviewMethodSchema as dA, PreviewMetadataSchema as dC, TaskArtifactsSummarySchema as dD, TaskMessageSchema as dF, TaskModelUsageSchema as dH, TaskUsageReportEventSchema as dJ, ShowModalEventDataSchema as dM, ChangeTaskTitleEventSchema as dO, TaskStateChangeEventSchema as dQ, CreditExhaustedEventSchema as dS, RtcIceServerSchema as dU, RtcIceServersRequestSchema as dW, RtcIceServersResponseSchema as dY, MachineRtcRequestSchema as d_, WorkerStatusRequestSchema as da, WorkerStatusValueSchema as dc, WorkerStatusSnapshotSchema as de, ChatWorkersStatusRequestSchema as dg, ChatWorkersStatusResponseSchema as di, ListModelsEventSchema as dk, baseTaskSchema as dm, createTaskSchema as dn, resumeTaskSchema as dq, cancelTaskSchema as ds, StopTaskSchema as du, TaskArtifactsStatsSchema as dw, PreviewProjectTypeSchema as dy, TaskTodoSchema as e, MachineRtcResponseSchema as e0, RtcSignalSchema as e2, WorkspaceFileRequestSchema as e4, WorkspaceFileResponseSchema as e6, UpdateTaskAgentSessionIdEventSchema as e8, HiveInstallCompleteEventSchema as eB, AssociateRepoEventDataSchema as eD, UpdateAgentInfoEventSchema as eE, SystemMessageSchema as eL, DaemonGitlabOperationSchema as eN, DaemonGitlabRequestSchema as eP, DaemonGitlabResponseSchema as eR, RepositoryInboxProviderSchema as eT, RepositoryInboxWebhookSchema as eU, CompanionHeartbeatRequestSchema as eW, CompanionHeartbeatResponseSchema as eY, CompanionMemoryOrganizationRequestSchema as e_, TaskInfoUpdateEventDataSchema as ea, TaskSlashCommandSchema as ec, TaskSlashCommandsUpdateEventDataSchema as ee, MergeRequestEventSchema as eg, TaskStoppedEventSchema as ei, SubTaskResultUpdatedEventSchema as ek, SubTaskAskUserEventSchema as em, MergePullRequestEventSchema as eo, DeployAgentEventSchema as er, DeployAgentCompleteEventSchema as et, HivePublishEventSchema as ev, HivePublishCompleteEventSchema as ex, HiveInstallEventSchema as ez, RpcResponseSchema as f$, CompanionMemoryOrganizationResponseSchema as f0, CompanionInitRequestSchema as f2, CompanionInitResponseSchema as f4, ResetTaskSessionSchema as f6, SeqSyncRequestEventDataSchema as f9, MachineControlCommandSchema as fA, MachineControlProgressStatusSchema as fC, MachineControlProgressSchema as fE, MachineControlUpdatedStatusSchema as fG, MachineControlUpdatedSchema as fI, StorageManagementKindSchema as fL, StorageManagementDeleteModeSchema as fN, StorageScanItemSchema as fP, StorageScanCategorySchema as fR, StorageScanResultSchema as fT, StorageCleanRequestItemSchema as fV, RpcCallEventSchema as fX, MachineRpcCallEventSchema as fZ, SeqSyncResponseEventDataSchema as fb, WorkspaceCacheUpdateEventDataSchema as fd, EventSchemaMap as fh, workerTaskEvents as fj, MachineControlActionSchema as fk, MachineControlAsyncActionSchema as fm, MachineControlTargetSchema as fo, MachineControlErrorCodeSchema as fq, MachineControlPingResultSchema as fs, MachineActionRequestSchema as fu, MachineActionPendingSchema as fw, ExecuteMachineActionResponseSchema as fy, getTaskExecutionMode as g, setAgentContext as g3, getAgentContext as g4, FRAMEWORK_TYPES as gc, AgentMetadataSchema as gd, ClaudeConfigSchema as ge, AgentError as gf, AgentNotFoundError as gg, AgentConfigValidationError as gh, FrameworkNotSupportedError as gi, AgentLoadError as gj, MissingAgentFileError as gk, TaskUsageSummarySchema as h, isCloudTaskExecution as i, TaskPreviewUrlSchema as k, normalizeWorkerExecutionMode as n, startTaskSchema as o, StartTaskResponseSchema as p, supportsTaskUserCwd as s, taskExecutionModes as t, TaskItemSchema as u, workerExecutionModes as w, EnsureIssueRootTaskResponseSchema as x };
|
|
4745
|
+
export type { ListTasksResponse as B, ResumeTaskRequest as C, ResumeTaskResponse as H, CancelTaskRequest as J, CancelTaskResponse as N, PreviewMetadata as P, StopTaskRequest as Q, TaskExecutionMode as T, WorkerExecutionMode as W, StopTaskResponse as Y, PermissionResponseRequest as _, PermissionResponseResponse as a1, ProjectEntry as a3, ProjectDirectoryResponse as a5, QueryEventsRequest as a7, TaskEvent as a8, QueryEventsResponse as a9, UpdateTaskTitleResponse as aB, UpdateTaskModelRequest as aD, UpdateTaskModelResponse as aF, UpdateTaskPreviewUrlResponse as aH, SendMessageTarget as aI, SendTaskMessageRequest as aK, SendTaskMessageResponse as aM, ShowModalRequest as aO, ShowModalResponse as aQ, GetTaskSessionResponse as aS, ListSubTasksRequest as aU, SubTaskSummary as aW, ListSubTasksResponse as aY, ListRecentTasksRequest as a_, FillEventsRequest as ab, FillEventsResponse as ac, CreateMergeRequestRequest as ae, CreateMergeRequestResponse as ah, ApprovePrRequest as aj, ApprovePrResponse as al, CreateTaskShareRequest as an, CreateTaskShareResponse as ap, ArchiveTaskRequest as ar, ArchiveTaskResponse as at, UnarchiveTaskRequest as av, UnarchiveTaskResponse as ax, UpdateTaskTitleRequest as az, TaskExecutionTarget as b, RecentTaskSummary as b0, ListRecentTasksResponse as b2, FindTaskByAgentRequest as b4, FindTaskByAgentResponse as b6, HiveListingType as b8, RecordHiveInstallRequest as bA, RecordHiveInstallResponse as bC, HiveReview as bE, CreateHiveReviewRequest as bG, UpdateHiveReviewRequest as bI, HiveReviewListResponse as bK, HiveComment as bM, CreateHiveCommentRequest as bO, UpdateHiveCommentRequest as bQ, HiveCommentListResponse as bS, HiveInstalledItem as bU, HiveInstalledResponse as bW, HiveMyListingsResponse as bY, SyncStreamType as b_, HiveAuthorType as ba, HiveListingStatus as bc, HiveSort as be, HiveListing as bg, PublishToHiveRequest as bi, PublishToHiveResponse as bk, HiveListQuery as bm, HiveListResponse as bo, UpdateHiveListingRequest as bq, UpdateHiveVersionRequest as bs, HiveInstallRequest as bu, HiveInstall as bw, HiveInstallResponse as by, WorkerReadyEventData as c$, GetStreamVersionQuery as c0, StreamVersionResponse as c2, SyncAvailableEvent as c4, AskUserOption as c6, AskUserQuestion as c8, EventAckData as cA, VisionPlanCardEventData as cC, VisionPlanActionEventData as cE, VisionPlanReviewWriteEventData as cG, WorkspaceFileMutationRequestEventData as cJ, WorkspaceFileMutationResponseEventData as cL, AppAliveEventData as cN, ApiServerAliveEventData as cP, MachineAliveEventData as cR, ShutdownMachineData as cT, WorkerInitializingEventData as cV, WorkerInitializedEventData as cX, WorkerPermissionModeValue as cZ, AskUserMessage as ca, AskUserResponseStatus as cd, AskUserResponseReason as ce, AskUserResponseMessage as cg, CompanionHeartbeatMessage as ch, CompanionReminderMessage as ci, CompanionMemoryOrganizationMessage as cj, SubTaskAskUserMessage as ck, TaskSystemMessage as cl, TaskMessagePayload as cm, TaskAgentInfo as co, MachineRtcRequestEventData as d$, ActiveAgent as d1, WorkerAliveEventData as d3, WorkerExitEventData as d5, WorkerRunningEventData as d7, WorkerPermissionModeEventData as d9, PreviewMethod as dB, TaskArtifactsSummary as dE, TaskMessageEventData as dG, TaskModelUsage as dI, TaskUsageReportEventData as dK, TaskState as dL, ShowModalEventData as dN, ChangeTaskTitleEventData as dP, TaskStateChangeEventData as dR, CreditExhaustedEventData as dT, RtcIceServer as dV, RtcIceServersRequestEventData as dX, RtcIceServersResponseEventData as dZ, WorkerStatusRequestEventData as db, WorkerStatusValue as dd, WorkerStatusSnapshot as df, ChatWorkersStatusRequestEventData as dh, ChatWorkersStatusResponseEventData as dj, ListModelsEventData as dl, CreateTaskEventData as dp, ResumeTaskEventData as dr, CancelTaskEventData as dt, StopTaskEventData as dv, TaskArtifactsStats as dx, PreviewProjectType as dz, CompanionMemoryOrganizationRequestData as e$, MachineRtcResponseEventData as e1, RtcSignalEventData as e3, WorkspaceFileRequestEventData as e5, WorkspaceFileResponseEventData as e7, UpdateTaskAgentSessionIdEventData as e9, HiveInstallEventData as eA, HiveInstallCompleteEventData as eC, UpdateAgentInfoEventData as eF, AssociateRepoEventData as eG, SystemMessageType as eH, PrStateChangedData as eI, ResourceLimitsUpdatedData as eJ, GitServerUserUpdatedData as eK, SystemMessageEventData as eM, DaemonGitlabOperation as eO, DaemonGitlabRequestEventData as eQ, DaemonGitlabResponseEventData as eS, RepositoryInboxWebhookEventData as eV, CompanionHeartbeatRequestData as eX, CompanionHeartbeatResponseData as eZ, TaskInfoUpdateEventData as eb, TaskSlashCommand as ed, TaskSlashCommandsUpdateEventData as ef, MergeRequestEventData as eh, TaskStoppedEventData as ej, SubTaskResultUpdatedEventData as el, SubTaskAskUserEventData as en, MergePullRequestEventData as ep, MergePullRequestAck as eq, DeployAgentEventData as es, DeployAgentCompleteEventData as eu, HivePublishEventData as ew, HivePublishCompleteEventData as ey, TaskTodo as f, CompanionMemoryOrganizationResponseData as f1, CompanionInitRequestData as f3, CompanionInitResponseData as f5, ResetTaskSessionEventData as f7, EventData as f8, MachineControlCommandEventData as fB, MachineControlProgressStatus as fD, MachineControlProgressEventData as fF, MachineControlUpdatedStatus as fH, MachineControlUpdatedEventData as fJ, MachineControlRelayContext as fK, StorageManagementKind as fM, StorageManagementDeleteMode as fO, StorageScanItem as fQ, StorageScanCategory as fS, StorageScanResult as fU, StorageCleanRequestItem as fW, RpcCallEventData as fY, MachineRpcCallEventData as f_, SeqSyncRequestEventData as fa, SeqSyncResponseEventData as fc, WorkspaceCacheUpdateEventData as fe, EventMap as ff, EventName as fg, WorkerTaskEvent as fi, MachineControlAction as fl, MachineControlAsyncAction as fn, MachineControlTarget as fp, MachineControlErrorCode as fr, MachineControlPingResult as ft, MachineActionRequestEventData as fv, MachineActionPending as fx, ExecuteMachineActionResponse as fz, RpcResponseData as g0, AgentContext as g1, AgentrixContext as g2, FrameworkType as g5, AgentMetadata as g6, ClaudeAgentConfig as g7, AgentConfig as g8, ValidationResult as g9, LoadAgentOptions as ga, HookFactory as gb, TaskUsageSummary as j, UpdateTaskPreviewUrlRequest as l, StartTaskRequest as m, StartTaskResponse as q, EnsureIssueRootTaskRequest as r, TaskItem as v, EnsureIssueRootTaskResponse as y, ListTasksRequest as z };
|
package/dist/index.cjs
CHANGED
|
@@ -255,6 +255,79 @@ const ShareAuthResponseSchema = zod.z.object({
|
|
|
255
255
|
permissions: TaskSharePermissionsSchema
|
|
256
256
|
});
|
|
257
257
|
|
|
258
|
+
const CiProviderSchema = zod.z.enum(["github_actions", "gitlab_ci"]);
|
|
259
|
+
const JsonSchemaDocumentSchema = zod.z.record(zod.z.string(), zod.z.unknown());
|
|
260
|
+
const CiRunStatusSchema = zod.z.enum([
|
|
261
|
+
"queued",
|
|
262
|
+
"running",
|
|
263
|
+
"completed",
|
|
264
|
+
"failed",
|
|
265
|
+
"canceled",
|
|
266
|
+
"timeout"
|
|
267
|
+
]);
|
|
268
|
+
const CiRunResponseModeSchema = zod.z.enum(["stream", "async"]);
|
|
269
|
+
const CiRunRepoSchema = zod.z.object({
|
|
270
|
+
gitServerId: zod.z.string().min(1),
|
|
271
|
+
serverRepoId: zod.z.string().min(1).optional(),
|
|
272
|
+
owner: zod.z.string().optional(),
|
|
273
|
+
name: zod.z.string().optional()
|
|
274
|
+
}).refine(
|
|
275
|
+
(value) => Boolean(value.serverRepoId) || Boolean(value.owner) && Boolean(value.name),
|
|
276
|
+
{
|
|
277
|
+
message: "repo.gitServerId plus repo.serverRepoId or repo.owner+repo.name is required"
|
|
278
|
+
}
|
|
279
|
+
);
|
|
280
|
+
const CiRunGitSchema = zod.z.object({
|
|
281
|
+
ref: zod.z.string().optional(),
|
|
282
|
+
sha: zod.z.string().optional(),
|
|
283
|
+
baseRef: zod.z.string().optional(),
|
|
284
|
+
headRef: zod.z.string().optional(),
|
|
285
|
+
branchName: zod.z.string().optional(),
|
|
286
|
+
prNumber: zod.z.number().int().positive().optional(),
|
|
287
|
+
issueNumber: zod.z.number().int().positive().optional()
|
|
288
|
+
});
|
|
289
|
+
const CiRunExecutionSchema = zod.z.object({
|
|
290
|
+
capabilityProfile: zod.z.string().optional(),
|
|
291
|
+
runnerId: zod.z.string().optional()
|
|
292
|
+
});
|
|
293
|
+
const CiRunContextSchema = zod.z.object({
|
|
294
|
+
ciProvider: CiProviderSchema,
|
|
295
|
+
eventName: zod.z.string().optional(),
|
|
296
|
+
eventAction: zod.z.string().optional(),
|
|
297
|
+
jobUrl: zod.z.string().url().optional(),
|
|
298
|
+
runUrl: zod.z.string().url().optional(),
|
|
299
|
+
payload: zod.z.record(zod.z.string(), zod.z.unknown()).optional()
|
|
300
|
+
});
|
|
301
|
+
const CreateCiRunRequestSchema = zod.z.object({
|
|
302
|
+
agent: zod.z.string().min(1),
|
|
303
|
+
allowFilesystemAgent: zod.z.boolean().optional(),
|
|
304
|
+
responseMode: CiRunResponseModeSchema.optional(),
|
|
305
|
+
title: zod.z.string().min(1).max(200).optional(),
|
|
306
|
+
prompt: zod.z.string().min(1),
|
|
307
|
+
outputSchema: JsonSchemaDocumentSchema.optional(),
|
|
308
|
+
repo: CiRunRepoSchema,
|
|
309
|
+
git: CiRunGitSchema,
|
|
310
|
+
execution: CiRunExecutionSchema,
|
|
311
|
+
context: CiRunContextSchema.optional(),
|
|
312
|
+
metadata: zod.z.record(zod.z.string(), zod.z.string()).optional()
|
|
313
|
+
});
|
|
314
|
+
const CreateCiRunResponseSchema = zod.z.object({
|
|
315
|
+
runId: zod.z.string().min(1),
|
|
316
|
+
status: zod.z.enum(["queued", "running", "completed", "failed"]),
|
|
317
|
+
detailUrl: zod.z.string().url()
|
|
318
|
+
});
|
|
319
|
+
const CiRunStatusResponseSchema = zod.z.object({
|
|
320
|
+
runId: zod.z.string().min(1),
|
|
321
|
+
status: CiRunStatusSchema,
|
|
322
|
+
result: zod.z.string(),
|
|
323
|
+
structuredOutput: zod.z.unknown().optional(),
|
|
324
|
+
detailUrl: zod.z.string().url()
|
|
325
|
+
});
|
|
326
|
+
const CancelCiRunResponseSchema = zod.z.object({
|
|
327
|
+
message: zod.z.string(),
|
|
328
|
+
runId: zod.z.string().min(1)
|
|
329
|
+
});
|
|
330
|
+
|
|
258
331
|
const workerExecutionModes = ["loop", "oneshot"];
|
|
259
332
|
const DEFAULT_WORKER_EXECUTION_MODE = "loop";
|
|
260
333
|
const WorkerExecutionModeSchema = zod.z.enum(workerExecutionModes);
|
|
@@ -677,6 +750,13 @@ const UpdateTaskTitleResponseSchema = zod.z.object({
|
|
|
677
750
|
success: zod.z.boolean(),
|
|
678
751
|
task: TaskItemSchema
|
|
679
752
|
});
|
|
753
|
+
const UpdateTaskModelRequestSchema = zod.z.object({
|
|
754
|
+
model: zod.z.string().trim().min(1).max(200).nullable()
|
|
755
|
+
});
|
|
756
|
+
const UpdateTaskModelResponseSchema = zod.z.object({
|
|
757
|
+
success: zod.z.boolean(),
|
|
758
|
+
task: TaskItemSchema
|
|
759
|
+
});
|
|
680
760
|
const UpdateTaskPreviewUrlResponseSchema = zod.z.object({
|
|
681
761
|
success: zod.z.boolean(),
|
|
682
762
|
task: TaskItemSchema
|
|
@@ -696,10 +776,13 @@ const SendTaskMessageRequestSchema = zod.z.object({
|
|
|
696
776
|
// Source task ID (for inter-task messaging)
|
|
697
777
|
senderType: SenderTypeSchema,
|
|
698
778
|
senderId: zod.z.string(),
|
|
699
|
-
senderName: zod.z.string()
|
|
779
|
+
senderName: zod.z.string(),
|
|
780
|
+
responseMode: CiRunResponseModeSchema.optional()
|
|
781
|
+
// CI-style response for script/connector callers
|
|
700
782
|
});
|
|
701
783
|
const SendTaskMessageResponseSchema = zod.z.object({
|
|
702
|
-
success: zod.z.boolean()
|
|
784
|
+
success: zod.z.boolean(),
|
|
785
|
+
run: CreateCiRunResponseSchema.optional()
|
|
703
786
|
});
|
|
704
787
|
const ShowModalRequestSchema = zod.z.object({
|
|
705
788
|
modalName: zod.z.string(),
|
|
@@ -2015,79 +2098,6 @@ const ResolveUserInboxItemResponseSchema = zod.z.object({
|
|
|
2015
2098
|
item: UserInboxItemSchema
|
|
2016
2099
|
});
|
|
2017
2100
|
|
|
2018
|
-
const CiProviderSchema = zod.z.enum(["github_actions", "gitlab_ci"]);
|
|
2019
|
-
const JsonSchemaDocumentSchema = zod.z.record(zod.z.string(), zod.z.unknown());
|
|
2020
|
-
const CiRunStatusSchema = zod.z.enum([
|
|
2021
|
-
"queued",
|
|
2022
|
-
"running",
|
|
2023
|
-
"completed",
|
|
2024
|
-
"failed",
|
|
2025
|
-
"canceled",
|
|
2026
|
-
"timeout"
|
|
2027
|
-
]);
|
|
2028
|
-
const CiRunResponseModeSchema = zod.z.enum(["stream", "async"]);
|
|
2029
|
-
const CiRunRepoSchema = zod.z.object({
|
|
2030
|
-
gitServerId: zod.z.string().min(1),
|
|
2031
|
-
serverRepoId: zod.z.string().min(1).optional(),
|
|
2032
|
-
owner: zod.z.string().optional(),
|
|
2033
|
-
name: zod.z.string().optional()
|
|
2034
|
-
}).refine(
|
|
2035
|
-
(value) => Boolean(value.serverRepoId) || Boolean(value.owner) && Boolean(value.name),
|
|
2036
|
-
{
|
|
2037
|
-
message: "repo.gitServerId plus repo.serverRepoId or repo.owner+repo.name is required"
|
|
2038
|
-
}
|
|
2039
|
-
);
|
|
2040
|
-
const CiRunGitSchema = zod.z.object({
|
|
2041
|
-
ref: zod.z.string().optional(),
|
|
2042
|
-
sha: zod.z.string().optional(),
|
|
2043
|
-
baseRef: zod.z.string().optional(),
|
|
2044
|
-
headRef: zod.z.string().optional(),
|
|
2045
|
-
branchName: zod.z.string().optional(),
|
|
2046
|
-
prNumber: zod.z.number().int().positive().optional(),
|
|
2047
|
-
issueNumber: zod.z.number().int().positive().optional()
|
|
2048
|
-
});
|
|
2049
|
-
const CiRunExecutionSchema = zod.z.object({
|
|
2050
|
-
capabilityProfile: zod.z.string().optional(),
|
|
2051
|
-
runnerId: zod.z.string().optional()
|
|
2052
|
-
});
|
|
2053
|
-
const CiRunContextSchema = zod.z.object({
|
|
2054
|
-
ciProvider: CiProviderSchema,
|
|
2055
|
-
eventName: zod.z.string().optional(),
|
|
2056
|
-
eventAction: zod.z.string().optional(),
|
|
2057
|
-
jobUrl: zod.z.string().url().optional(),
|
|
2058
|
-
runUrl: zod.z.string().url().optional(),
|
|
2059
|
-
payload: zod.z.record(zod.z.string(), zod.z.unknown()).optional()
|
|
2060
|
-
});
|
|
2061
|
-
const CreateCiRunRequestSchema = zod.z.object({
|
|
2062
|
-
agent: zod.z.string().min(1),
|
|
2063
|
-
allowFilesystemAgent: zod.z.boolean().optional(),
|
|
2064
|
-
responseMode: CiRunResponseModeSchema.optional(),
|
|
2065
|
-
title: zod.z.string().min(1).max(200).optional(),
|
|
2066
|
-
prompt: zod.z.string().min(1),
|
|
2067
|
-
outputSchema: JsonSchemaDocumentSchema.optional(),
|
|
2068
|
-
repo: CiRunRepoSchema,
|
|
2069
|
-
git: CiRunGitSchema,
|
|
2070
|
-
execution: CiRunExecutionSchema,
|
|
2071
|
-
context: CiRunContextSchema.optional(),
|
|
2072
|
-
metadata: zod.z.record(zod.z.string(), zod.z.string()).optional()
|
|
2073
|
-
});
|
|
2074
|
-
const CreateCiRunResponseSchema = zod.z.object({
|
|
2075
|
-
runId: zod.z.string().min(1),
|
|
2076
|
-
status: zod.z.enum(["queued", "running", "completed", "failed"]),
|
|
2077
|
-
detailUrl: zod.z.string().url()
|
|
2078
|
-
});
|
|
2079
|
-
const CiRunStatusResponseSchema = zod.z.object({
|
|
2080
|
-
runId: zod.z.string().min(1),
|
|
2081
|
-
status: CiRunStatusSchema,
|
|
2082
|
-
result: zod.z.string(),
|
|
2083
|
-
structuredOutput: zod.z.unknown().optional(),
|
|
2084
|
-
detailUrl: zod.z.string().url()
|
|
2085
|
-
});
|
|
2086
|
-
const CancelCiRunResponseSchema = zod.z.object({
|
|
2087
|
-
message: zod.z.string(),
|
|
2088
|
-
runId: zod.z.string().min(1)
|
|
2089
|
-
});
|
|
2090
|
-
|
|
2091
2101
|
const ResourceMetadataSchema = zod.z.object({
|
|
2092
2102
|
platform: zod.z.enum(["mac", "windows", "linux"]).optional(),
|
|
2093
2103
|
arch: zod.z.enum(["arm64", "x64", "universal"]).optional(),
|
|
@@ -4744,6 +4754,8 @@ exports.UpdateSubscriptionPlanRequestSchema = UpdateSubscriptionPlanRequestSchem
|
|
|
4744
4754
|
exports.UpdateSubscriptionRequestSchema = UpdateSubscriptionRequestSchema;
|
|
4745
4755
|
exports.UpdateSubscriptionResponseSchema = UpdateSubscriptionResponseSchema;
|
|
4746
4756
|
exports.UpdateTaskAgentSessionIdEventSchema = UpdateTaskAgentSessionIdEventSchema;
|
|
4757
|
+
exports.UpdateTaskModelRequestSchema = UpdateTaskModelRequestSchema;
|
|
4758
|
+
exports.UpdateTaskModelResponseSchema = UpdateTaskModelResponseSchema;
|
|
4747
4759
|
exports.UpdateTaskPreviewUrlRequestSchema = UpdateTaskPreviewUrlRequestSchema;
|
|
4748
4760
|
exports.UpdateTaskPreviewUrlResponseSchema = UpdateTaskPreviewUrlResponseSchema;
|
|
4749
4761
|
exports.UpdateTaskTitleRequestSchema = UpdateTaskTitleRequestSchema;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { P as PreviewMetadata } from './errors-
|
|
3
|
-
export { cZ as ActiveAgent, cY as ActiveAgentSchema, g4 as AgentConfig, gd as AgentConfigValidationError, fZ as AgentContext, gb as AgentError, gf as AgentLoadError, g2 as AgentMetadata, g9 as AgentMetadataSchema, gc as AgentNotFoundError, f_ as AgentrixContext, cL as ApiServerAliveEventData, cK as ApiServerAliveEventSchema, cJ as AppAliveEventData, cI as AppAliveEventSchema, aj as ApprovePrRequest, ai as ApprovePrRequestSchema, al as ApprovePrResponse, ak as ApprovePrResponseSchema, ar as ArchiveTaskRequest, aq as ArchiveTaskRequestSchema, at as ArchiveTaskResponse, as as ArchiveTaskResponseSchema, c6 as AskUserMessage, c5 as AskUserMessageSchema, c2 as AskUserOption, c1 as AskUserOptionSchema, c4 as AskUserQuestion, c3 as AskUserQuestionSchema, cc as AskUserResponseMessage, cb as AskUserResponseMessageSchema, ca as AskUserResponseReason, c8 as AskUserResponseReasonSchema, c9 as AskUserResponseStatus, c7 as AskUserResponseStatusSchema, eC as AssociateRepoEventData, ez as AssociateRepoEventDataSchema, dp as CancelTaskEventData, J as CancelTaskRequest, I as CancelTaskRequestSchema, N as CancelTaskResponse, M as CancelTaskResponseSchema, dL as ChangeTaskTitleEventData, dK as ChangeTaskTitleEventSchema, dd as ChatWorkersStatusRequestEventData, dc as ChatWorkersStatusRequestSchema, df as ChatWorkersStatusResponseEventData, de as ChatWorkersStatusResponseSchema, g3 as ClaudeAgentConfig, ga as ClaudeConfigSchema, cd as CompanionHeartbeatMessage, eT as CompanionHeartbeatRequestData, eS as CompanionHeartbeatRequestSchema, eV as CompanionHeartbeatResponseData, eU as CompanionHeartbeatResponseSchema, e$ as CompanionInitRequestData, e_ as CompanionInitRequestSchema, f1 as CompanionInitResponseData, f0 as CompanionInitResponseSchema, cf as CompanionMemoryOrganizationMessage, eX as CompanionMemoryOrganizationRequestData, eW as CompanionMemoryOrganizationRequestSchema, eZ as CompanionMemoryOrganizationResponseData, eY as CompanionMemoryOrganizationResponseSchema, ce as CompanionReminderMessage, bK as CreateHiveCommentRequest, bJ as CreateHiveCommentRequestSchema, bC as CreateHiveReviewRequest, bB as CreateHiveReviewRequestSchema, ae as CreateMergeRequestRequest, ah as CreateMergeRequestResponse, ag as CreateMergeRequestResponseSchema, ad as CreateMergeRequestSchema, dk as CreateTaskEventData, an as CreateTaskShareRequest, ap as CreateTaskShareResponse, ao as CreateTaskShareResponseSchema, am as CreateTaskShareSchema, dP as CreditExhaustedEventData, dO as CreditExhaustedEventSchema, D as DEFAULT_WORKER_EXECUTION_MODE, eK as DaemonGitlabOperation, eJ as DaemonGitlabOperationSchema, eM as DaemonGitlabRequestEventData, eL as DaemonGitlabRequestSchema, eO as DaemonGitlabResponseEventData, eN as DaemonGitlabResponseSchema, eq as DeployAgentCompleteEventData, ep as DeployAgentCompleteEventSchema, eo as DeployAgentEventData, en as DeployAgentEventSchema, r as EnsureIssueRootTaskRequest, E as EnsureIssueRootTaskRequestSchema, y as EnsureIssueRootTaskResponse, x as EnsureIssueRootTaskResponseSchema, cw as EventAckData, cv as EventAckSchema, f4 as EventData, fb as EventMap, fc as EventName, fd as EventSchemaMap, fv as ExecuteMachineActionResponse, fu as ExecuteMachineActionResponseSchema, g8 as FRAMEWORK_TYPES, ab as FillEventsRequest, aa as FillEventsRequestSchema, ac as FillEventsResponse, b0 as FindTaskByAgentRequest, a$ as FindTaskByAgentRequestSchema, b2 as FindTaskByAgentResponse, b1 as FindTaskByAgentResponseSchema, ge as FrameworkNotSupportedError, g1 as FrameworkType, bY as GetStreamVersionQuery, bX as GetStreamVersionQuerySchema, aO as GetTaskSessionResponse, aN as GetTaskSessionResponseSchema, eG as GitServerUserUpdatedData, b6 as HiveAuthorType, b5 as HiveAuthorTypeSchema, bI as HiveComment, bO as HiveCommentListResponse, bN as HiveCommentListResponseSchema, bH as HiveCommentSchema, bs as HiveInstall, ey as HiveInstallCompleteEventData, ex as HiveInstallCompleteEventSchema, ew as HiveInstallEventData, ev as HiveInstallEventSchema, bq as HiveInstallRequest, bp as HiveInstallRequestSchema, bu as HiveInstallResponse, bt as HiveInstallResponseSchema, br as HiveInstallSchema, bQ as HiveInstalledItem, bP as HiveInstalledItemSchema, bS as HiveInstalledResponse, bR as HiveInstalledResponseSchema, bi as HiveListQuery, bh as HiveListQuerySchema, bk as HiveListResponse, bj as HiveListResponseSchema, bc as HiveListing, bb as HiveListingSchema, b8 as HiveListingStatus, b7 as HiveListingStatusSchema, b4 as HiveListingType, b3 as HiveListingTypeSchema, bU as HiveMyListingsResponse, bT as HiveMyListingsResponseSchema, eu as HivePublishCompleteEventData, et as HivePublishCompleteEventSchema, es as HivePublishEventData, er as HivePublishEventSchema, bA as HiveReview, bG as HiveReviewListResponse, bF as HiveReviewListResponseSchema, bz as HiveReviewSchema, ba as HiveSort, b9 as HiveSortSchema, g7 as HookFactory, dh as ListModelsEventData, dg as ListModelsEventSchema, aW as ListRecentTasksRequest, aV as ListRecentTasksRequestSchema, a_ as ListRecentTasksResponse, aZ as ListRecentTasksResponseSchema, aQ as ListSubTasksRequest, aP as ListSubTasksRequestSchema, aU as ListSubTasksResponse, aT as ListSubTasksResponseSchema, z as ListTasksRequest, L as ListTasksRequestSchema, B as ListTasksResponse, A as ListTasksResponseSchema, g6 as LoadAgentOptions, ft as MachineActionPending, fs as MachineActionPendingSchema, fr as MachineActionRequestEventData, fq as MachineActionRequestSchema, cN as MachineAliveEventData, cM as MachineAliveEventSchema, fh as MachineControlAction, fg as MachineControlActionSchema, fj as MachineControlAsyncAction, fi as MachineControlAsyncActionSchema, fx as MachineControlCommandEventData, fw as MachineControlCommandSchema, fn as MachineControlErrorCode, fm as MachineControlErrorCodeSchema, fp as MachineControlPingResult, fo as MachineControlPingResultSchema, fB as MachineControlProgressEventData, fA as MachineControlProgressSchema, fz as MachineControlProgressStatus, fy as MachineControlProgressStatusSchema, fG as MachineControlRelayContext, fl as MachineControlTarget, fk as MachineControlTargetSchema, fF as MachineControlUpdatedEventData, fE as MachineControlUpdatedSchema, fD as MachineControlUpdatedStatus, fC as MachineControlUpdatedStatusSchema, fW as MachineRpcCallEventData, fV as MachineRpcCallEventSchema, dX as MachineRtcRequestEventData, dW as MachineRtcRequestSchema, dZ as MachineRtcResponseEventData, dY as MachineRtcResponseSchema, em as MergePullRequestAck, el as MergePullRequestEventData, ek as MergePullRequestEventSchema, ed as MergeRequestEventData, ec as MergeRequestEventSchema, gg as MissingAgentFileError, _ as PermissionResponseRequest, Z as PermissionResponseRequestSchema, a1 as PermissionResponseResponse, a0 as PermissionResponseResponseSchema, eE as PrStateChangedData, dy as PreviewMetadataSchema, dx as PreviewMethod, dw as PreviewMethodSchema, dv as PreviewProjectType, du as PreviewProjectTypeSchema, a5 as ProjectDirectoryResponse, a4 as ProjectDirectoryResponseSchema, a3 as ProjectEntry, a2 as ProjectEntrySchema, be as PublishToHiveRequest, bd as PublishToHiveRequestSchema, bg as PublishToHiveResponse, bf as PublishToHiveResponseSchema, a7 as QueryEventsRequest, a6 as QueryEventsRequestSchema, a9 as QueryEventsResponse, aY as RecentTaskSummary, aX as RecentTaskSummarySchema, bw as RecordHiveInstallRequest, bv as RecordHiveInstallRequestSchema, by as RecordHiveInstallResponse, bx as RecordHiveInstallResponseSchema, eP as RepositoryInboxProviderSchema, eR as RepositoryInboxWebhookEventData, eQ as RepositoryInboxWebhookSchema, f3 as ResetTaskSessionEventData, f2 as ResetTaskSessionSchema, eF as ResourceLimitsUpdatedData, dm as ResumeTaskEventData, C as ResumeTaskRequest, R as ResumeTaskRequestSchema, H as ResumeTaskResponse, G as ResumeTaskResponseSchema, fU as RpcCallEventData, fT as RpcCallEventSchema, fY as RpcResponseData, fX as RpcResponseSchema, dR as RtcIceServer, dQ as RtcIceServerSchema, dT as RtcIceServersRequestEventData, dS as RtcIceServersRequestSchema, dV as RtcIceServersResponseEventData, dU as RtcIceServersResponseSchema, d$ as RtcSignalEventData, d_ as RtcSignalSchema, aE as SendMessageTarget, aG as SendTaskMessageRequest, aF as SendTaskMessageRequestSchema, aI as SendTaskMessageResponse, aH as SendTaskMessageResponseSchema, f6 as SeqSyncRequestEventData, f5 as SeqSyncRequestEventDataSchema, f8 as SeqSyncResponseEventData, f7 as SeqSyncResponseEventDataSchema, dJ as ShowModalEventData, dI as ShowModalEventDataSchema, aK as ShowModalRequest, aJ as ShowModalRequestSchema, aM as ShowModalResponse, aL as ShowModalResponseSchema, cP as ShutdownMachineData, cO as ShutdownMachineSchema, m as StartTaskRequest, S as StartTaskRequestSchema, q as StartTaskResponse, p as StartTaskResponseSchema, dr as StopTaskEventData, Q as StopTaskRequest, O as StopTaskRequestSchema, Y as StopTaskResponse, X as StopTaskResponseSchema, dq as StopTaskSchema, fS as StorageCleanRequestItem, fR as StorageCleanRequestItemSchema, fK as StorageManagementDeleteMode, fJ as StorageManagementDeleteModeSchema, fI as StorageManagementKind, fH as StorageManagementKindSchema, fO as StorageScanCategory, fN as StorageScanCategorySchema, fM as StorageScanItem, fL as StorageScanItemSchema, fQ as StorageScanResult, fP as StorageScanResultSchema, b_ as StreamVersionResponse, bZ as StreamVersionResponseSchema, ej as SubTaskAskUserEventData, ei as SubTaskAskUserEventSchema, cg as SubTaskAskUserMessage, eh as SubTaskResultUpdatedEventData, eg as SubTaskResultUpdatedEventSchema, aS as SubTaskSummary, aR as SubTaskSummarySchema, c0 as SyncAvailableEvent, b$ as SyncAvailableEventSchema, bW as SyncStreamType, bV as SyncStreamTypeSchema, eI as SystemMessageEventData, eH as SystemMessageSchema, eD as SystemMessageType, ck as TaskAgentInfo, cj as TaskAgentInfoSchema, dt as TaskArtifactsStats, ds as TaskArtifactsStatsSchema, dA as TaskArtifactsSummary, dz as TaskArtifactsSummarySchema, a8 as TaskEvent, T as TaskExecutionMode, b as TaskExecutionTarget, e7 as TaskInfoUpdateEventData, e6 as TaskInfoUpdateEventDataSchema, v as TaskItem, u as TaskItemSchema, dC as TaskMessageEventData, ci as TaskMessagePayload, dB as TaskMessageSchema, dE as TaskModelUsage, dD as TaskModelUsageSchema, k as TaskPreviewUrlSchema, e9 as TaskSlashCommand, e8 as TaskSlashCommandSchema, eb as TaskSlashCommandsUpdateEventData, ea as TaskSlashCommandsUpdateEventDataSchema, dH as TaskState, dN as TaskStateChangeEventData, dM as TaskStateChangeEventSchema, ef as TaskStoppedEventData, ee as TaskStoppedEventSchema, ch as TaskSystemMessage, f as TaskTodo, e as TaskTodoSchema, dG as TaskUsageReportEventData, dF as TaskUsageReportEventSchema, j as TaskUsageSummary, h as TaskUsageSummarySchema, av as UnarchiveTaskRequest, au as UnarchiveTaskRequestSchema, ax as UnarchiveTaskResponse, aw as UnarchiveTaskResponseSchema, eB as UpdateAgentInfoEventData, eA as UpdateAgentInfoEventSchema, bM as UpdateHiveCommentRequest, bL as UpdateHiveCommentRequestSchema, bm as UpdateHiveListingRequest, bl as UpdateHiveListingRequestSchema, bE as UpdateHiveReviewRequest, bD as UpdateHiveReviewRequestSchema, bo as UpdateHiveVersionRequest, bn as UpdateHiveVersionRequestSchema, e5 as UpdateTaskAgentSessionIdEventData, e4 as UpdateTaskAgentSessionIdEventSchema, l as UpdateTaskPreviewUrlRequest, U as UpdateTaskPreviewUrlRequestSchema, aD as UpdateTaskPreviewUrlResponse, aC as UpdateTaskPreviewUrlResponseSchema, az as UpdateTaskTitleRequest, ay as UpdateTaskTitleRequestSchema, aB as UpdateTaskTitleResponse, aA as UpdateTaskTitleResponseSchema, g5 as ValidationResult, cA as VisionPlanActionEventData, cz as VisionPlanActionEventSchema, cy as VisionPlanCardEventData, cx as VisionPlanCardEventSchema, cC as VisionPlanReviewWriteEventData, cB as VisionPlanReviewWriteEventSchema, c$ as WorkerAliveEventData, c_ as WorkerAliveEventSchema, W as WorkerExecutionMode, a as WorkerExecutionModeSchema, d1 as WorkerExitEventData, d0 as WorkerExitSchema, cT as WorkerInitializedEventData, cS as WorkerInitializedSchema, cR as WorkerInitializingEventData, cQ as WorkerInitializingSchema, d5 as WorkerPermissionModeEventData, d4 as WorkerPermissionModeSchema, cV as WorkerPermissionModeValue, cU as WorkerPermissionModeValueSchema, cX as WorkerReadyEventData, cW as WorkerReadySchema, d3 as WorkerRunningEventData, d2 as WorkerRunningSchema, d7 as WorkerStatusRequestEventData, d6 as WorkerStatusRequestSchema, db as WorkerStatusSnapshot, da as WorkerStatusSnapshotSchema, d9 as WorkerStatusValue, d8 as WorkerStatusValueSchema, fe as WorkerTaskEvent, fa as WorkspaceCacheUpdateEventData, f9 as WorkspaceCacheUpdateEventDataSchema, cD as WorkspaceFileMutationOperationSchema, cF as WorkspaceFileMutationRequestEventData, cE as WorkspaceFileMutationRequestSchema, cH as WorkspaceFileMutationResponseEventData, cG as WorkspaceFileMutationResponseSchema, e1 as WorkspaceFileRequestEventData, e0 as WorkspaceFileRequestSchema, e3 as WorkspaceFileResponseEventData, e2 as WorkspaceFileResponseSchema, di as baseTaskSchema, K as cancelTaskRequestSchema, dn as cancelTaskSchema, cu as createEventId, af as createMergeRequestSchema, dj as createTaskSchema, g0 as getAgentContext, d as getTaskExecutionMachineRouteId, g as getTaskExecutionMode, cl as isAskUserMessage, cm as isAskUserResponseMessage, i as isCloudTaskExecution, cn as isCompanionHeartbeatMessage, cp as isCompanionMemoryOrganizationMessage, co as isCompanionReminderMessage, c as isLocalTaskExecution, cs as isSDKMessage, ct as isSDKUserMessage, cq as isSubTaskAskUserMessage, cr as isTaskSystemMessage, n as normalizeWorkerExecutionMode, $ as permissionResponseRequestSchema, F as resumeTaskRequestSchema, dl as resumeTaskSchema, f$ as setAgentContext, o as startTaskSchema, V as stopTaskRequestSchema, s as supportsTaskUserCwd, t as taskExecutionModes, w as workerExecutionModes, ff as workerTaskEvents } from './errors-B45Qk4Gg.cjs';
|
|
2
|
+
import { P as PreviewMetadata } from './errors-w-U9apaD.cjs';
|
|
3
|
+
export { d1 as ActiveAgent, d0 as ActiveAgentSchema, g8 as AgentConfig, gh as AgentConfigValidationError, g1 as AgentContext, gf as AgentError, gj as AgentLoadError, g6 as AgentMetadata, gd as AgentMetadataSchema, gg as AgentNotFoundError, g2 as AgentrixContext, cP as ApiServerAliveEventData, cO as ApiServerAliveEventSchema, cN as AppAliveEventData, cM as AppAliveEventSchema, aj as ApprovePrRequest, ai as ApprovePrRequestSchema, al as ApprovePrResponse, ak as ApprovePrResponseSchema, ar as ArchiveTaskRequest, aq as ArchiveTaskRequestSchema, at as ArchiveTaskResponse, as as ArchiveTaskResponseSchema, ca as AskUserMessage, c9 as AskUserMessageSchema, c6 as AskUserOption, c5 as AskUserOptionSchema, c8 as AskUserQuestion, c7 as AskUserQuestionSchema, cg as AskUserResponseMessage, cf as AskUserResponseMessageSchema, ce as AskUserResponseReason, cc as AskUserResponseReasonSchema, cd as AskUserResponseStatus, cb as AskUserResponseStatusSchema, eG as AssociateRepoEventData, eD as AssociateRepoEventDataSchema, dt as CancelTaskEventData, J as CancelTaskRequest, I as CancelTaskRequestSchema, N as CancelTaskResponse, M as CancelTaskResponseSchema, dP as ChangeTaskTitleEventData, dO as ChangeTaskTitleEventSchema, dh as ChatWorkersStatusRequestEventData, dg as ChatWorkersStatusRequestSchema, dj as ChatWorkersStatusResponseEventData, di as ChatWorkersStatusResponseSchema, g7 as ClaudeAgentConfig, ge as ClaudeConfigSchema, ch as CompanionHeartbeatMessage, eX as CompanionHeartbeatRequestData, eW as CompanionHeartbeatRequestSchema, eZ as CompanionHeartbeatResponseData, eY as CompanionHeartbeatResponseSchema, f3 as CompanionInitRequestData, f2 as CompanionInitRequestSchema, f5 as CompanionInitResponseData, f4 as CompanionInitResponseSchema, cj as CompanionMemoryOrganizationMessage, e$ as CompanionMemoryOrganizationRequestData, e_ as CompanionMemoryOrganizationRequestSchema, f1 as CompanionMemoryOrganizationResponseData, f0 as CompanionMemoryOrganizationResponseSchema, ci as CompanionReminderMessage, bO as CreateHiveCommentRequest, bN as CreateHiveCommentRequestSchema, bG as CreateHiveReviewRequest, bF as CreateHiveReviewRequestSchema, ae as CreateMergeRequestRequest, ah as CreateMergeRequestResponse, ag as CreateMergeRequestResponseSchema, ad as CreateMergeRequestSchema, dp as CreateTaskEventData, an as CreateTaskShareRequest, ap as CreateTaskShareResponse, ao as CreateTaskShareResponseSchema, am as CreateTaskShareSchema, dT as CreditExhaustedEventData, dS as CreditExhaustedEventSchema, D as DEFAULT_WORKER_EXECUTION_MODE, eO as DaemonGitlabOperation, eN as DaemonGitlabOperationSchema, eQ as DaemonGitlabRequestEventData, eP as DaemonGitlabRequestSchema, eS as DaemonGitlabResponseEventData, eR as DaemonGitlabResponseSchema, eu as DeployAgentCompleteEventData, et as DeployAgentCompleteEventSchema, es as DeployAgentEventData, er as DeployAgentEventSchema, r as EnsureIssueRootTaskRequest, E as EnsureIssueRootTaskRequestSchema, y as EnsureIssueRootTaskResponse, x as EnsureIssueRootTaskResponseSchema, cA as EventAckData, cz as EventAckSchema, f8 as EventData, ff as EventMap, fg as EventName, fh as EventSchemaMap, fz as ExecuteMachineActionResponse, fy as ExecuteMachineActionResponseSchema, gc as FRAMEWORK_TYPES, ab as FillEventsRequest, aa as FillEventsRequestSchema, ac as FillEventsResponse, b4 as FindTaskByAgentRequest, b3 as FindTaskByAgentRequestSchema, b6 as FindTaskByAgentResponse, b5 as FindTaskByAgentResponseSchema, gi as FrameworkNotSupportedError, g5 as FrameworkType, c0 as GetStreamVersionQuery, b$ as GetStreamVersionQuerySchema, aS as GetTaskSessionResponse, aR as GetTaskSessionResponseSchema, eK as GitServerUserUpdatedData, ba as HiveAuthorType, b9 as HiveAuthorTypeSchema, bM as HiveComment, bS as HiveCommentListResponse, bR as HiveCommentListResponseSchema, bL as HiveCommentSchema, bw as HiveInstall, eC as HiveInstallCompleteEventData, eB as HiveInstallCompleteEventSchema, eA as HiveInstallEventData, ez as HiveInstallEventSchema, bu as HiveInstallRequest, bt as HiveInstallRequestSchema, by as HiveInstallResponse, bx as HiveInstallResponseSchema, bv as HiveInstallSchema, bU as HiveInstalledItem, bT as HiveInstalledItemSchema, bW as HiveInstalledResponse, bV as HiveInstalledResponseSchema, bm as HiveListQuery, bl as HiveListQuerySchema, bo as HiveListResponse, bn as HiveListResponseSchema, bg as HiveListing, bf as HiveListingSchema, bc as HiveListingStatus, bb as HiveListingStatusSchema, b8 as HiveListingType, b7 as HiveListingTypeSchema, bY as HiveMyListingsResponse, bX as HiveMyListingsResponseSchema, ey as HivePublishCompleteEventData, ex as HivePublishCompleteEventSchema, ew as HivePublishEventData, ev as HivePublishEventSchema, bE as HiveReview, bK as HiveReviewListResponse, bJ as HiveReviewListResponseSchema, bD as HiveReviewSchema, be as HiveSort, bd as HiveSortSchema, gb as HookFactory, dl as ListModelsEventData, dk as ListModelsEventSchema, a_ as ListRecentTasksRequest, aZ as ListRecentTasksRequestSchema, b2 as ListRecentTasksResponse, b1 as ListRecentTasksResponseSchema, aU as ListSubTasksRequest, aT as ListSubTasksRequestSchema, aY as ListSubTasksResponse, aX as ListSubTasksResponseSchema, z as ListTasksRequest, L as ListTasksRequestSchema, B as ListTasksResponse, A as ListTasksResponseSchema, ga as LoadAgentOptions, fx as MachineActionPending, fw as MachineActionPendingSchema, fv as MachineActionRequestEventData, fu as MachineActionRequestSchema, cR as MachineAliveEventData, cQ as MachineAliveEventSchema, fl as MachineControlAction, fk as MachineControlActionSchema, fn as MachineControlAsyncAction, fm as MachineControlAsyncActionSchema, fB as MachineControlCommandEventData, fA as MachineControlCommandSchema, fr as MachineControlErrorCode, fq as MachineControlErrorCodeSchema, ft as MachineControlPingResult, fs as MachineControlPingResultSchema, fF as MachineControlProgressEventData, fE as MachineControlProgressSchema, fD as MachineControlProgressStatus, fC as MachineControlProgressStatusSchema, fK as MachineControlRelayContext, fp as MachineControlTarget, fo as MachineControlTargetSchema, fJ as MachineControlUpdatedEventData, fI as MachineControlUpdatedSchema, fH as MachineControlUpdatedStatus, fG as MachineControlUpdatedStatusSchema, f_ as MachineRpcCallEventData, fZ as MachineRpcCallEventSchema, d$ as MachineRtcRequestEventData, d_ as MachineRtcRequestSchema, e1 as MachineRtcResponseEventData, e0 as MachineRtcResponseSchema, eq as MergePullRequestAck, ep as MergePullRequestEventData, eo as MergePullRequestEventSchema, eh as MergeRequestEventData, eg as MergeRequestEventSchema, gk as MissingAgentFileError, _ as PermissionResponseRequest, Z as PermissionResponseRequestSchema, a1 as PermissionResponseResponse, a0 as PermissionResponseResponseSchema, eI as PrStateChangedData, dC as PreviewMetadataSchema, dB as PreviewMethod, dA as PreviewMethodSchema, dz as PreviewProjectType, dy as PreviewProjectTypeSchema, a5 as ProjectDirectoryResponse, a4 as ProjectDirectoryResponseSchema, a3 as ProjectEntry, a2 as ProjectEntrySchema, bi as PublishToHiveRequest, bh as PublishToHiveRequestSchema, bk as PublishToHiveResponse, bj as PublishToHiveResponseSchema, a7 as QueryEventsRequest, a6 as QueryEventsRequestSchema, a9 as QueryEventsResponse, b0 as RecentTaskSummary, a$ as RecentTaskSummarySchema, bA as RecordHiveInstallRequest, bz as RecordHiveInstallRequestSchema, bC as RecordHiveInstallResponse, bB as RecordHiveInstallResponseSchema, eT as RepositoryInboxProviderSchema, eV as RepositoryInboxWebhookEventData, eU as RepositoryInboxWebhookSchema, f7 as ResetTaskSessionEventData, f6 as ResetTaskSessionSchema, eJ as ResourceLimitsUpdatedData, dr as ResumeTaskEventData, C as ResumeTaskRequest, R as ResumeTaskRequestSchema, H as ResumeTaskResponse, G as ResumeTaskResponseSchema, fY as RpcCallEventData, fX as RpcCallEventSchema, g0 as RpcResponseData, f$ as RpcResponseSchema, dV as RtcIceServer, dU as RtcIceServerSchema, dX as RtcIceServersRequestEventData, dW as RtcIceServersRequestSchema, dZ as RtcIceServersResponseEventData, dY as RtcIceServersResponseSchema, e3 as RtcSignalEventData, e2 as RtcSignalSchema, aI as SendMessageTarget, aK as SendTaskMessageRequest, aJ as SendTaskMessageRequestSchema, aM as SendTaskMessageResponse, aL as SendTaskMessageResponseSchema, fa as SeqSyncRequestEventData, f9 as SeqSyncRequestEventDataSchema, fc as SeqSyncResponseEventData, fb as SeqSyncResponseEventDataSchema, dN as ShowModalEventData, dM as ShowModalEventDataSchema, aO as ShowModalRequest, aN as ShowModalRequestSchema, aQ as ShowModalResponse, aP as ShowModalResponseSchema, cT as ShutdownMachineData, cS as ShutdownMachineSchema, m as StartTaskRequest, S as StartTaskRequestSchema, q as StartTaskResponse, p as StartTaskResponseSchema, dv as StopTaskEventData, Q as StopTaskRequest, O as StopTaskRequestSchema, Y as StopTaskResponse, X as StopTaskResponseSchema, du as StopTaskSchema, fW as StorageCleanRequestItem, fV as StorageCleanRequestItemSchema, fO as StorageManagementDeleteMode, fN as StorageManagementDeleteModeSchema, fM as StorageManagementKind, fL as StorageManagementKindSchema, fS as StorageScanCategory, fR as StorageScanCategorySchema, fQ as StorageScanItem, fP as StorageScanItemSchema, fU as StorageScanResult, fT as StorageScanResultSchema, c2 as StreamVersionResponse, c1 as StreamVersionResponseSchema, en as SubTaskAskUserEventData, em as SubTaskAskUserEventSchema, ck as SubTaskAskUserMessage, el as SubTaskResultUpdatedEventData, ek as SubTaskResultUpdatedEventSchema, aW as SubTaskSummary, aV as SubTaskSummarySchema, c4 as SyncAvailableEvent, c3 as SyncAvailableEventSchema, b_ as SyncStreamType, bZ as SyncStreamTypeSchema, eM as SystemMessageEventData, eL as SystemMessageSchema, eH as SystemMessageType, co as TaskAgentInfo, cn as TaskAgentInfoSchema, dx as TaskArtifactsStats, dw as TaskArtifactsStatsSchema, dE as TaskArtifactsSummary, dD as TaskArtifactsSummarySchema, a8 as TaskEvent, T as TaskExecutionMode, b as TaskExecutionTarget, eb as TaskInfoUpdateEventData, ea as TaskInfoUpdateEventDataSchema, v as TaskItem, u as TaskItemSchema, dG as TaskMessageEventData, cm as TaskMessagePayload, dF as TaskMessageSchema, dI as TaskModelUsage, dH as TaskModelUsageSchema, k as TaskPreviewUrlSchema, ed as TaskSlashCommand, ec as TaskSlashCommandSchema, ef as TaskSlashCommandsUpdateEventData, ee as TaskSlashCommandsUpdateEventDataSchema, dL as TaskState, dR as TaskStateChangeEventData, dQ as TaskStateChangeEventSchema, ej as TaskStoppedEventData, ei as TaskStoppedEventSchema, cl as TaskSystemMessage, f as TaskTodo, e as TaskTodoSchema, dK as TaskUsageReportEventData, dJ as TaskUsageReportEventSchema, j as TaskUsageSummary, h as TaskUsageSummarySchema, av as UnarchiveTaskRequest, au as UnarchiveTaskRequestSchema, ax as UnarchiveTaskResponse, aw as UnarchiveTaskResponseSchema, eF as UpdateAgentInfoEventData, eE as UpdateAgentInfoEventSchema, bQ as UpdateHiveCommentRequest, bP as UpdateHiveCommentRequestSchema, bq as UpdateHiveListingRequest, bp as UpdateHiveListingRequestSchema, bI as UpdateHiveReviewRequest, bH as UpdateHiveReviewRequestSchema, bs as UpdateHiveVersionRequest, br as UpdateHiveVersionRequestSchema, e9 as UpdateTaskAgentSessionIdEventData, e8 as UpdateTaskAgentSessionIdEventSchema, aD as UpdateTaskModelRequest, aC as UpdateTaskModelRequestSchema, aF as UpdateTaskModelResponse, aE as UpdateTaskModelResponseSchema, l as UpdateTaskPreviewUrlRequest, U as UpdateTaskPreviewUrlRequestSchema, aH as UpdateTaskPreviewUrlResponse, aG as UpdateTaskPreviewUrlResponseSchema, az as UpdateTaskTitleRequest, ay as UpdateTaskTitleRequestSchema, aB as UpdateTaskTitleResponse, aA as UpdateTaskTitleResponseSchema, g9 as ValidationResult, cE as VisionPlanActionEventData, cD as VisionPlanActionEventSchema, cC as VisionPlanCardEventData, cB as VisionPlanCardEventSchema, cG as VisionPlanReviewWriteEventData, cF as VisionPlanReviewWriteEventSchema, d3 as WorkerAliveEventData, d2 as WorkerAliveEventSchema, W as WorkerExecutionMode, a as WorkerExecutionModeSchema, d5 as WorkerExitEventData, d4 as WorkerExitSchema, cX as WorkerInitializedEventData, cW as WorkerInitializedSchema, cV as WorkerInitializingEventData, cU as WorkerInitializingSchema, d9 as WorkerPermissionModeEventData, d8 as WorkerPermissionModeSchema, cZ as WorkerPermissionModeValue, cY as WorkerPermissionModeValueSchema, c$ as WorkerReadyEventData, c_ as WorkerReadySchema, d7 as WorkerRunningEventData, d6 as WorkerRunningSchema, db as WorkerStatusRequestEventData, da as WorkerStatusRequestSchema, df as WorkerStatusSnapshot, de as WorkerStatusSnapshotSchema, dd as WorkerStatusValue, dc as WorkerStatusValueSchema, fi as WorkerTaskEvent, fe as WorkspaceCacheUpdateEventData, fd as WorkspaceCacheUpdateEventDataSchema, cH as WorkspaceFileMutationOperationSchema, cJ as WorkspaceFileMutationRequestEventData, cI as WorkspaceFileMutationRequestSchema, cL as WorkspaceFileMutationResponseEventData, cK as WorkspaceFileMutationResponseSchema, e5 as WorkspaceFileRequestEventData, e4 as WorkspaceFileRequestSchema, e7 as WorkspaceFileResponseEventData, e6 as WorkspaceFileResponseSchema, dm as baseTaskSchema, K as cancelTaskRequestSchema, ds as cancelTaskSchema, cy as createEventId, af as createMergeRequestSchema, dn as createTaskSchema, g4 as getAgentContext, d as getTaskExecutionMachineRouteId, g as getTaskExecutionMode, cp as isAskUserMessage, cq as isAskUserResponseMessage, i as isCloudTaskExecution, cr as isCompanionHeartbeatMessage, ct as isCompanionMemoryOrganizationMessage, cs as isCompanionReminderMessage, c as isLocalTaskExecution, cw as isSDKMessage, cx as isSDKUserMessage, cu as isSubTaskAskUserMessage, cv as isTaskSystemMessage, n as normalizeWorkerExecutionMode, $ as permissionResponseRequestSchema, F as resumeTaskRequestSchema, dq as resumeTaskSchema, g3 as setAgentContext, o as startTaskSchema, V as stopTaskRequestSchema, s as supportsTaskUserCwd, t as taskExecutionModes, w as workerExecutionModes, fj as workerTaskEvents } from './errors-w-U9apaD.cjs';
|
|
4
4
|
import tweetnacl from 'tweetnacl';
|
|
5
5
|
import { SDKMessage } from '@anthropic-ai/claude-agent-sdk';
|
|
6
6
|
export { buildGitLabWebhookEndpointPath, buildGitLabWebhookUrl } from './gitlabWebhook.cjs';
|
|
@@ -56,9 +56,9 @@ declare const FileStatsSchema: z.ZodObject<{
|
|
|
56
56
|
}, z.core.$strip>;
|
|
57
57
|
type FileStats = z.infer<typeof FileStatsSchema>;
|
|
58
58
|
declare const SenderTypeSchema: z.ZodEnum<{
|
|
59
|
-
system: "system";
|
|
60
|
-
human: "human";
|
|
61
59
|
agent: "agent";
|
|
60
|
+
human: "human";
|
|
61
|
+
system: "system";
|
|
62
62
|
channel: "channel";
|
|
63
63
|
}>;
|
|
64
64
|
type SenderType = z.infer<typeof SenderTypeSchema>;
|
|
@@ -620,8 +620,8 @@ declare const ChatMemberSchema: z.ZodObject<{
|
|
|
620
620
|
chatId: z.ZodString;
|
|
621
621
|
memberCode: z.ZodString;
|
|
622
622
|
type: z.ZodEnum<{
|
|
623
|
-
human: "human";
|
|
624
623
|
agent: "agent";
|
|
624
|
+
human: "human";
|
|
625
625
|
}>;
|
|
626
626
|
role: z.ZodString;
|
|
627
627
|
createdAt: z.ZodString;
|
|
@@ -673,8 +673,8 @@ declare const ChatWithMembersSchema: z.ZodObject<{
|
|
|
673
673
|
chatId: z.ZodString;
|
|
674
674
|
memberCode: z.ZodString;
|
|
675
675
|
type: z.ZodEnum<{
|
|
676
|
-
human: "human";
|
|
677
676
|
agent: "agent";
|
|
677
|
+
human: "human";
|
|
678
678
|
}>;
|
|
679
679
|
role: z.ZodString;
|
|
680
680
|
createdAt: z.ZodString;
|
|
@@ -688,8 +688,8 @@ type ChatWithMembers = z.infer<typeof ChatWithMembersSchema>;
|
|
|
688
688
|
declare const ChatMemberInputSchema: z.ZodObject<{
|
|
689
689
|
memberCode: z.ZodString;
|
|
690
690
|
type: z.ZodEnum<{
|
|
691
|
-
human: "human";
|
|
692
691
|
agent: "agent";
|
|
692
|
+
human: "human";
|
|
693
693
|
}>;
|
|
694
694
|
}, z.core.$strip>;
|
|
695
695
|
type ChatMemberInput = z.infer<typeof ChatMemberInputSchema>;
|
|
@@ -704,8 +704,8 @@ declare const CreateChatRequestSchema: z.ZodObject<{
|
|
|
704
704
|
members: z.ZodArray<z.ZodObject<{
|
|
705
705
|
memberCode: z.ZodString;
|
|
706
706
|
type: z.ZodEnum<{
|
|
707
|
-
human: "human";
|
|
708
707
|
agent: "agent";
|
|
708
|
+
human: "human";
|
|
709
709
|
}>;
|
|
710
710
|
}, z.core.$strip>>;
|
|
711
711
|
dataEncryptionKey: z.ZodOptional<z.ZodString>;
|
|
@@ -733,8 +733,8 @@ declare const CreateChatResponseSchema: z.ZodObject<{
|
|
|
733
733
|
chatId: z.ZodString;
|
|
734
734
|
memberCode: z.ZodString;
|
|
735
735
|
type: z.ZodEnum<{
|
|
736
|
-
human: "human";
|
|
737
736
|
agent: "agent";
|
|
737
|
+
human: "human";
|
|
738
738
|
}>;
|
|
739
739
|
role: z.ZodString;
|
|
740
740
|
createdAt: z.ZodString;
|
|
@@ -772,8 +772,8 @@ declare const ListChatsResponseSchema: z.ZodObject<{
|
|
|
772
772
|
chatId: z.ZodString;
|
|
773
773
|
memberCode: z.ZodString;
|
|
774
774
|
type: z.ZodEnum<{
|
|
775
|
-
human: "human";
|
|
776
775
|
agent: "agent";
|
|
776
|
+
human: "human";
|
|
777
777
|
}>;
|
|
778
778
|
role: z.ZodString;
|
|
779
779
|
createdAt: z.ZodString;
|
|
@@ -803,8 +803,8 @@ declare const GetChatResponseSchema: z.ZodObject<{
|
|
|
803
803
|
chatId: z.ZodString;
|
|
804
804
|
memberCode: z.ZodString;
|
|
805
805
|
type: z.ZodEnum<{
|
|
806
|
-
human: "human";
|
|
807
806
|
agent: "agent";
|
|
807
|
+
human: "human";
|
|
808
808
|
}>;
|
|
809
809
|
role: z.ZodString;
|
|
810
810
|
createdAt: z.ZodString;
|
|
@@ -821,8 +821,8 @@ declare const ListChatMembersResponseSchema: z.ZodObject<{
|
|
|
821
821
|
chatId: z.ZodString;
|
|
822
822
|
memberCode: z.ZodString;
|
|
823
823
|
type: z.ZodEnum<{
|
|
824
|
-
human: "human";
|
|
825
824
|
agent: "agent";
|
|
825
|
+
human: "human";
|
|
826
826
|
}>;
|
|
827
827
|
role: z.ZodString;
|
|
828
828
|
createdAt: z.ZodString;
|
|
@@ -838,8 +838,8 @@ declare const AddChatMemberRequestSchema: z.ZodObject<{
|
|
|
838
838
|
members: z.ZodArray<z.ZodObject<{
|
|
839
839
|
memberCode: z.ZodString;
|
|
840
840
|
type: z.ZodEnum<{
|
|
841
|
-
human: "human";
|
|
842
841
|
agent: "agent";
|
|
842
|
+
human: "human";
|
|
843
843
|
}>;
|
|
844
844
|
}, z.core.$strip>>;
|
|
845
845
|
}, z.core.$strip>;
|
|
@@ -853,8 +853,8 @@ declare const AddChatMemberResponseSchema: z.ZodObject<{
|
|
|
853
853
|
chatId: z.ZodString;
|
|
854
854
|
memberCode: z.ZodString;
|
|
855
855
|
type: z.ZodEnum<{
|
|
856
|
-
human: "human";
|
|
857
856
|
agent: "agent";
|
|
857
|
+
human: "human";
|
|
858
858
|
}>;
|
|
859
859
|
role: z.ZodString;
|
|
860
860
|
createdAt: z.ZodString;
|
|
@@ -870,8 +870,8 @@ declare const RemoveChatMemberRequestSchema: z.ZodObject<{
|
|
|
870
870
|
members: z.ZodArray<z.ZodObject<{
|
|
871
871
|
memberCode: z.ZodString;
|
|
872
872
|
type: z.ZodEnum<{
|
|
873
|
-
human: "human";
|
|
874
873
|
agent: "agent";
|
|
874
|
+
human: "human";
|
|
875
875
|
}>;
|
|
876
876
|
}, z.core.$strip>>;
|
|
877
877
|
}, z.core.$strip>;
|
|
@@ -990,8 +990,8 @@ declare const EnsureRepoChatResponseSchema: z.ZodObject<{
|
|
|
990
990
|
chatId: z.ZodString;
|
|
991
991
|
memberCode: z.ZodString;
|
|
992
992
|
type: z.ZodEnum<{
|
|
993
|
-
human: "human";
|
|
994
993
|
agent: "agent";
|
|
994
|
+
human: "human";
|
|
995
995
|
}>;
|
|
996
996
|
role: z.ZodString;
|
|
997
997
|
createdAt: z.ZodString;
|
|
@@ -1020,8 +1020,8 @@ declare const EnsureWorkspaceChatResponseSchema: z.ZodObject<{
|
|
|
1020
1020
|
chatId: z.ZodString;
|
|
1021
1021
|
memberCode: z.ZodString;
|
|
1022
1022
|
type: z.ZodEnum<{
|
|
1023
|
-
human: "human";
|
|
1024
1023
|
agent: "agent";
|
|
1024
|
+
human: "human";
|
|
1025
1025
|
}>;
|
|
1026
1026
|
role: z.ZodString;
|
|
1027
1027
|
createdAt: z.ZodString;
|
|
@@ -1736,9 +1736,9 @@ type CreateDraftAgentRequest = z.infer<typeof CreateDraftAgentRequestSchema>;
|
|
|
1736
1736
|
*/
|
|
1737
1737
|
declare const SetEnvironmentVariablesRequestSchema: z.ZodObject<{
|
|
1738
1738
|
ownerType: z.ZodEnum<{
|
|
1739
|
-
machine: "machine";
|
|
1740
|
-
agent: "agent";
|
|
1741
1739
|
cloud: "cloud";
|
|
1740
|
+
agent: "agent";
|
|
1741
|
+
machine: "machine";
|
|
1742
1742
|
"draft-agent": "draft-agent";
|
|
1743
1743
|
}>;
|
|
1744
1744
|
ownerId: z.ZodString;
|
|
@@ -2128,8 +2128,8 @@ declare const CloudSchema: z.ZodObject<{
|
|
|
2128
2128
|
member: "member";
|
|
2129
2129
|
}>>;
|
|
2130
2130
|
userStatus: z.ZodOptional<z.ZodEnum<{
|
|
2131
|
-
active: "active";
|
|
2132
2131
|
pending: "pending";
|
|
2132
|
+
active: "active";
|
|
2133
2133
|
suspended: "suspended";
|
|
2134
2134
|
revoked: "revoked";
|
|
2135
2135
|
}>>;
|
|
@@ -2173,8 +2173,8 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
|
|
|
2173
2173
|
member: "member";
|
|
2174
2174
|
}>>;
|
|
2175
2175
|
userStatus: z.ZodOptional<z.ZodEnum<{
|
|
2176
|
-
active: "active";
|
|
2177
2176
|
pending: "pending";
|
|
2177
|
+
active: "active";
|
|
2178
2178
|
suspended: "suspended";
|
|
2179
2179
|
revoked: "revoked";
|
|
2180
2180
|
}>>;
|
|
@@ -3038,10 +3038,10 @@ declare const ConsoleUserBillingResponseSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
3038
3038
|
type ConsoleUserBillingResponse = z.infer<typeof ConsoleUserBillingResponseSchema>;
|
|
3039
3039
|
declare const ConsoleSubscriptionRenewalStatusSchema: z.ZodEnum<{
|
|
3040
3040
|
none: "none";
|
|
3041
|
-
expired: "expired";
|
|
3042
3041
|
renews: "renews";
|
|
3043
3042
|
cancels_at_period_end: "cancels_at_period_end";
|
|
3044
3043
|
canceled: "canceled";
|
|
3044
|
+
expired: "expired";
|
|
3045
3045
|
}>;
|
|
3046
3046
|
type ConsoleSubscriptionRenewalStatus = z.infer<typeof ConsoleSubscriptionRenewalStatusSchema>;
|
|
3047
3047
|
declare const ConsoleUserSubscriptionResponseSchema: z.ZodObject<{
|
|
@@ -3127,31 +3127,31 @@ declare const ConsoleUserSubscriptionResponseSchema: z.ZodObject<{
|
|
|
3127
3127
|
}, z.core.$strip>>;
|
|
3128
3128
|
renewalStatus: z.ZodEnum<{
|
|
3129
3129
|
none: "none";
|
|
3130
|
-
expired: "expired";
|
|
3131
3130
|
renews: "renews";
|
|
3132
3131
|
cancels_at_period_end: "cancels_at_period_end";
|
|
3133
3132
|
canceled: "canceled";
|
|
3133
|
+
expired: "expired";
|
|
3134
3134
|
}>;
|
|
3135
3135
|
}, z.core.$strip>;
|
|
3136
3136
|
type ConsoleUserSubscriptionResponse = z.infer<typeof ConsoleUserSubscriptionResponseSchema>;
|
|
3137
3137
|
declare const ConsoleApiKeyMetadataSchema: z.ZodObject<{
|
|
3138
3138
|
name: z.ZodString;
|
|
3139
|
-
enabled: z.ZodBoolean;
|
|
3140
3139
|
id: z.ZodString;
|
|
3141
3140
|
createdAt: z.ZodString;
|
|
3142
3141
|
lastUsedAt: z.ZodNullable<z.ZodString>;
|
|
3143
3142
|
expiresAt: z.ZodNullable<z.ZodString>;
|
|
3143
|
+
enabled: z.ZodBoolean;
|
|
3144
3144
|
keyPrefix: z.ZodString;
|
|
3145
3145
|
}, z.core.$strip>;
|
|
3146
3146
|
type ConsoleApiKeyMetadata = z.infer<typeof ConsoleApiKeyMetadataSchema>;
|
|
3147
3147
|
declare const ConsoleUserApiKeysResponseSchema: z.ZodObject<{
|
|
3148
3148
|
items: z.ZodArray<z.ZodObject<{
|
|
3149
3149
|
name: z.ZodString;
|
|
3150
|
-
enabled: z.ZodBoolean;
|
|
3151
3150
|
id: z.ZodString;
|
|
3152
3151
|
createdAt: z.ZodString;
|
|
3153
3152
|
lastUsedAt: z.ZodNullable<z.ZodString>;
|
|
3154
3153
|
expiresAt: z.ZodNullable<z.ZodString>;
|
|
3154
|
+
enabled: z.ZodBoolean;
|
|
3155
3155
|
keyPrefix: z.ZodString;
|
|
3156
3156
|
}, z.core.$strip>>;
|
|
3157
3157
|
total: z.ZodNumber;
|
|
@@ -3159,14 +3159,14 @@ declare const ConsoleUserApiKeysResponseSchema: z.ZodObject<{
|
|
|
3159
3159
|
type ConsoleUserApiKeysResponse = z.infer<typeof ConsoleUserApiKeysResponseSchema>;
|
|
3160
3160
|
declare const ConsoleUserMachinesResponseSchema: z.ZodObject<{
|
|
3161
3161
|
localMachines: z.ZodArray<z.ZodObject<{
|
|
3162
|
-
status: z.ZodString;
|
|
3163
3162
|
id: z.ZodString;
|
|
3164
3163
|
createdAt: z.ZodString;
|
|
3165
|
-
|
|
3164
|
+
status: z.ZodString;
|
|
3166
3165
|
updatedAt: z.ZodString;
|
|
3167
|
-
metadata: z.ZodNullable<z.ZodString>;
|
|
3168
3166
|
owner: z.ZodString;
|
|
3167
|
+
metadata: z.ZodNullable<z.ZodString>;
|
|
3169
3168
|
approval: z.ZodString;
|
|
3169
|
+
controlPort: z.ZodNullable<z.ZodNumber>;
|
|
3170
3170
|
}, z.core.$strip>>;
|
|
3171
3171
|
privateClouds: z.ZodArray<z.ZodObject<{
|
|
3172
3172
|
id: z.ZodString;
|
|
@@ -3186,8 +3186,8 @@ declare const ConsoleUserMachinesResponseSchema: z.ZodObject<{
|
|
|
3186
3186
|
member: "member";
|
|
3187
3187
|
}>>;
|
|
3188
3188
|
userStatus: z.ZodOptional<z.ZodEnum<{
|
|
3189
|
-
active: "active";
|
|
3190
3189
|
pending: "pending";
|
|
3190
|
+
active: "active";
|
|
3191
3191
|
suspended: "suspended";
|
|
3192
3192
|
revoked: "revoked";
|
|
3193
3193
|
}>>;
|
|
@@ -4167,8 +4167,8 @@ declare const PrivateCloudSummarySchema: z.ZodObject<{
|
|
|
4167
4167
|
member: "member";
|
|
4168
4168
|
}>>;
|
|
4169
4169
|
userStatus: z.ZodOptional<z.ZodEnum<{
|
|
4170
|
-
active: "active";
|
|
4171
4170
|
pending: "pending";
|
|
4171
|
+
active: "active";
|
|
4172
4172
|
suspended: "suspended";
|
|
4173
4173
|
revoked: "revoked";
|
|
4174
4174
|
}>>;
|
|
@@ -4209,8 +4209,8 @@ declare const ListPrivateCloudsResponseSchema: z.ZodObject<{
|
|
|
4209
4209
|
member: "member";
|
|
4210
4210
|
}>>;
|
|
4211
4211
|
userStatus: z.ZodOptional<z.ZodEnum<{
|
|
4212
|
-
active: "active";
|
|
4213
4212
|
pending: "pending";
|
|
4213
|
+
active: "active";
|
|
4214
4214
|
suspended: "suspended";
|
|
4215
4215
|
revoked: "revoked";
|
|
4216
4216
|
}>>;
|
|
@@ -4263,8 +4263,8 @@ declare const CreatePrivateCloudResponseSchema: z.ZodObject<{
|
|
|
4263
4263
|
member: "member";
|
|
4264
4264
|
}>>;
|
|
4265
4265
|
userStatus: z.ZodOptional<z.ZodEnum<{
|
|
4266
|
-
active: "active";
|
|
4267
4266
|
pending: "pending";
|
|
4267
|
+
active: "active";
|
|
4268
4268
|
suspended: "suspended";
|
|
4269
4269
|
revoked: "revoked";
|
|
4270
4270
|
}>>;
|
|
@@ -4301,8 +4301,8 @@ declare const PrivateCloudInviteSchema: z.ZodObject<{
|
|
|
4301
4301
|
usedCount: z.ZodNumber;
|
|
4302
4302
|
status: z.ZodEnum<{
|
|
4303
4303
|
active: "active";
|
|
4304
|
-
expired: "expired";
|
|
4305
4304
|
revoked: "revoked";
|
|
4305
|
+
expired: "expired";
|
|
4306
4306
|
consumed: "consumed";
|
|
4307
4307
|
}>;
|
|
4308
4308
|
createdAt: z.ZodString;
|
|
@@ -4328,8 +4328,8 @@ declare const CreatePrivateCloudInviteResponseSchema: z.ZodObject<{
|
|
|
4328
4328
|
usedCount: z.ZodNumber;
|
|
4329
4329
|
status: z.ZodEnum<{
|
|
4330
4330
|
active: "active";
|
|
4331
|
-
expired: "expired";
|
|
4332
4331
|
revoked: "revoked";
|
|
4332
|
+
expired: "expired";
|
|
4333
4333
|
consumed: "consumed";
|
|
4334
4334
|
}>;
|
|
4335
4335
|
createdAt: z.ZodString;
|
|
@@ -4360,8 +4360,8 @@ declare const AcceptPrivateCloudInviteResponseSchema: z.ZodObject<{
|
|
|
4360
4360
|
member: "member";
|
|
4361
4361
|
}>>;
|
|
4362
4362
|
userStatus: z.ZodOptional<z.ZodEnum<{
|
|
4363
|
-
active: "active";
|
|
4364
4363
|
pending: "pending";
|
|
4364
|
+
active: "active";
|
|
4365
4365
|
suspended: "suspended";
|
|
4366
4366
|
revoked: "revoked";
|
|
4367
4367
|
}>>;
|
|
@@ -4394,8 +4394,8 @@ declare const PrivateCloudMemberSchema: z.ZodObject<{
|
|
|
4394
4394
|
member: "member";
|
|
4395
4395
|
}>;
|
|
4396
4396
|
status: z.ZodEnum<{
|
|
4397
|
-
active: "active";
|
|
4398
4397
|
pending: "pending";
|
|
4398
|
+
active: "active";
|
|
4399
4399
|
suspended: "suspended";
|
|
4400
4400
|
revoked: "revoked";
|
|
4401
4401
|
}>;
|
|
@@ -4413,8 +4413,8 @@ declare const ListPrivateCloudMembersResponseSchema: z.ZodObject<{
|
|
|
4413
4413
|
member: "member";
|
|
4414
4414
|
}>;
|
|
4415
4415
|
status: z.ZodEnum<{
|
|
4416
|
-
active: "active";
|
|
4417
4416
|
pending: "pending";
|
|
4417
|
+
active: "active";
|
|
4418
4418
|
suspended: "suspended";
|
|
4419
4419
|
revoked: "revoked";
|
|
4420
4420
|
}>;
|
|
@@ -4462,8 +4462,8 @@ declare const UpdatePrivateCloudMemberRoleResponseSchema: z.ZodObject<{
|
|
|
4462
4462
|
member: "member";
|
|
4463
4463
|
}>;
|
|
4464
4464
|
status: z.ZodEnum<{
|
|
4465
|
-
active: "active";
|
|
4466
4465
|
pending: "pending";
|
|
4466
|
+
active: "active";
|
|
4467
4467
|
suspended: "suspended";
|
|
4468
4468
|
revoked: "revoked";
|
|
4469
4469
|
}>;
|
|
@@ -4485,8 +4485,8 @@ type GetPrivateCloudRunnerSecretResponse = z.infer<typeof GetPrivateCloudRunnerS
|
|
|
4485
4485
|
* Contact target type
|
|
4486
4486
|
*/
|
|
4487
4487
|
declare const ContactTargetTypeSchema: z.ZodEnum<{
|
|
4488
|
-
human: "human";
|
|
4489
4488
|
agent: "agent";
|
|
4489
|
+
human: "human";
|
|
4490
4490
|
}>;
|
|
4491
4491
|
type ContactTargetType = z.infer<typeof ContactTargetTypeSchema>;
|
|
4492
4492
|
/**
|
|
@@ -4496,8 +4496,8 @@ declare const ContactSchema: z.ZodObject<{
|
|
|
4496
4496
|
id: z.ZodString;
|
|
4497
4497
|
userId: z.ZodString;
|
|
4498
4498
|
targetType: z.ZodEnum<{
|
|
4499
|
-
human: "human";
|
|
4500
4499
|
agent: "agent";
|
|
4500
|
+
human: "human";
|
|
4501
4501
|
}>;
|
|
4502
4502
|
targetId: z.ZodString;
|
|
4503
4503
|
displayNameSnapshot: z.ZodString;
|
|
@@ -4512,8 +4512,8 @@ type Contact = z.infer<typeof ContactSchema>;
|
|
|
4512
4512
|
*/
|
|
4513
4513
|
declare const ContactCandidateSchema: z.ZodObject<{
|
|
4514
4514
|
targetType: z.ZodEnum<{
|
|
4515
|
-
human: "human";
|
|
4516
4515
|
agent: "agent";
|
|
4516
|
+
human: "human";
|
|
4517
4517
|
}>;
|
|
4518
4518
|
targetId: z.ZodString;
|
|
4519
4519
|
displayName: z.ZodString;
|
|
@@ -4530,8 +4530,8 @@ declare const ListContactsResponseSchema: z.ZodObject<{
|
|
|
4530
4530
|
id: z.ZodString;
|
|
4531
4531
|
userId: z.ZodString;
|
|
4532
4532
|
targetType: z.ZodEnum<{
|
|
4533
|
-
human: "human";
|
|
4534
4533
|
agent: "agent";
|
|
4534
|
+
human: "human";
|
|
4535
4535
|
}>;
|
|
4536
4536
|
targetId: z.ZodString;
|
|
4537
4537
|
displayNameSnapshot: z.ZodString;
|
|
@@ -4547,8 +4547,8 @@ type ListContactsResponse = z.infer<typeof ListContactsResponseSchema>;
|
|
|
4547
4547
|
*/
|
|
4548
4548
|
declare const CreateContactRequestSchema: z.ZodObject<{
|
|
4549
4549
|
targetType: z.ZodEnum<{
|
|
4550
|
-
human: "human";
|
|
4551
4550
|
agent: "agent";
|
|
4551
|
+
human: "human";
|
|
4552
4552
|
}>;
|
|
4553
4553
|
targetId: z.ZodString;
|
|
4554
4554
|
}, z.core.$strip>;
|
|
@@ -4560,8 +4560,8 @@ declare const CreateContactResponseSchema: z.ZodObject<{
|
|
|
4560
4560
|
id: z.ZodString;
|
|
4561
4561
|
userId: z.ZodString;
|
|
4562
4562
|
targetType: z.ZodEnum<{
|
|
4563
|
-
human: "human";
|
|
4564
4563
|
agent: "agent";
|
|
4564
|
+
human: "human";
|
|
4565
4565
|
}>;
|
|
4566
4566
|
targetId: z.ZodString;
|
|
4567
4567
|
displayNameSnapshot: z.ZodString;
|
|
@@ -4593,8 +4593,8 @@ type SearchContactCandidatesQuery = z.infer<typeof SearchContactCandidatesQueryS
|
|
|
4593
4593
|
declare const SearchContactCandidatesResponseSchema: z.ZodObject<{
|
|
4594
4594
|
candidates: z.ZodArray<z.ZodObject<{
|
|
4595
4595
|
targetType: z.ZodEnum<{
|
|
4596
|
-
human: "human";
|
|
4597
4596
|
agent: "agent";
|
|
4597
|
+
human: "human";
|
|
4598
4598
|
}>;
|
|
4599
4599
|
targetId: z.ZodString;
|
|
4600
4600
|
displayName: z.ZodString;
|
|
@@ -4706,12 +4706,12 @@ type CiProvider = z.infer<typeof CiProviderSchema>;
|
|
|
4706
4706
|
declare const JsonSchemaDocumentSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4707
4707
|
type JsonSchemaDocument = z.infer<typeof JsonSchemaDocumentSchema>;
|
|
4708
4708
|
declare const CiRunStatusSchema: z.ZodEnum<{
|
|
4709
|
-
timeout: "timeout";
|
|
4710
|
-
failed: "failed";
|
|
4711
4709
|
running: "running";
|
|
4710
|
+
failed: "failed";
|
|
4711
|
+
queued: "queued";
|
|
4712
4712
|
completed: "completed";
|
|
4713
4713
|
canceled: "canceled";
|
|
4714
|
-
|
|
4714
|
+
timeout: "timeout";
|
|
4715
4715
|
}>;
|
|
4716
4716
|
type CiRunStatus = z.infer<typeof CiRunStatusSchema>;
|
|
4717
4717
|
declare const CiRunResponseModeSchema: z.ZodEnum<{
|
|
@@ -4799,10 +4799,10 @@ type CreateCiRunRequest = z.infer<typeof CreateCiRunRequestSchema>;
|
|
|
4799
4799
|
declare const CreateCiRunResponseSchema: z.ZodObject<{
|
|
4800
4800
|
runId: z.ZodString;
|
|
4801
4801
|
status: z.ZodEnum<{
|
|
4802
|
-
failed: "failed";
|
|
4803
4802
|
running: "running";
|
|
4804
|
-
|
|
4803
|
+
failed: "failed";
|
|
4805
4804
|
queued: "queued";
|
|
4805
|
+
completed: "completed";
|
|
4806
4806
|
}>;
|
|
4807
4807
|
detailUrl: z.ZodString;
|
|
4808
4808
|
}, z.core.$strip>;
|
|
@@ -4810,12 +4810,12 @@ type CreateCiRunResponse = z.infer<typeof CreateCiRunResponseSchema>;
|
|
|
4810
4810
|
declare const CiRunStatusResponseSchema: z.ZodObject<{
|
|
4811
4811
|
runId: z.ZodString;
|
|
4812
4812
|
status: z.ZodEnum<{
|
|
4813
|
-
timeout: "timeout";
|
|
4814
|
-
failed: "failed";
|
|
4815
4813
|
running: "running";
|
|
4814
|
+
failed: "failed";
|
|
4815
|
+
queued: "queued";
|
|
4816
4816
|
completed: "completed";
|
|
4817
4817
|
canceled: "canceled";
|
|
4818
|
-
|
|
4818
|
+
timeout: "timeout";
|
|
4819
4819
|
}>;
|
|
4820
4820
|
result: z.ZodString;
|
|
4821
4821
|
structuredOutput: z.ZodOptional<z.ZodUnknown>;
|
package/dist/node.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { ga as LoadAgentOptions, g8 as AgentConfig, g9 as ValidationResult, g5 as FrameworkType } from './errors-w-U9apaD.cjs';
|
|
2
|
+
export { gh as AgentConfigValidationError, g1 as AgentContext, gf as AgentError, gj as AgentLoadError, g6 as AgentMetadata, gd as AgentMetadataSchema, gg as AgentNotFoundError, g2 as AgentrixContext, g7 as ClaudeAgentConfig, ge as ClaudeConfigSchema, gc as FRAMEWORK_TYPES, gi as FrameworkNotSupportedError, gb as HookFactory, gk as MissingAgentFileError, g4 as getAgentContext, g3 as setAgentContext } from './errors-w-U9apaD.cjs';
|
|
3
3
|
export { buildGitLabWebhookEndpointPath, buildGitLabWebhookUrl } from './gitlabWebhook.cjs';
|
|
4
4
|
import '@anthropic-ai/claude-agent-sdk';
|
|
5
5
|
import 'zod';
|