@agentrix/shared 2.14.0 → 2.16.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-DsmsMuMb.d.cts → errors-Cfur_d00.d.cts} +149 -16
- package/dist/index.cjs +53 -1
- package/dist/index.d.cts +42 -22
- package/dist/node.d.cts +2 -2
- package/package.json +2 -2
|
@@ -21,6 +21,16 @@ declare const TaskTodoSchema: z.ZodObject<{
|
|
|
21
21
|
instructions: z.ZodString;
|
|
22
22
|
}, z.core.$strip>;
|
|
23
23
|
type TaskTodo = z.infer<typeof TaskTodoSchema>;
|
|
24
|
+
declare const TaskUsageSummarySchema: z.ZodObject<{
|
|
25
|
+
inputTokens: z.ZodNumber;
|
|
26
|
+
outputTokens: z.ZodNumber;
|
|
27
|
+
cacheReadInputTokens: z.ZodNumber;
|
|
28
|
+
cacheCreationInputTokens: z.ZodNumber;
|
|
29
|
+
webSearchRequests: z.ZodNumber;
|
|
30
|
+
totalTokens: z.ZodNumber;
|
|
31
|
+
models: z.ZodArray<z.ZodString>;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
type TaskUsageSummary = z.infer<typeof TaskUsageSummarySchema>;
|
|
24
34
|
/**
|
|
25
35
|
* POST /v1/tasks/start - Request schema
|
|
26
36
|
*/
|
|
@@ -33,6 +43,7 @@ declare const StartTaskRequestSchema: z.ZodObject<{
|
|
|
33
43
|
forceUserCwd: z.ZodOptional<z.ZodBoolean>;
|
|
34
44
|
machineId: z.ZodOptional<z.ZodString>;
|
|
35
45
|
cloudId: z.ZodOptional<z.ZodString>;
|
|
46
|
+
model: z.ZodOptional<z.ZodString>;
|
|
36
47
|
repositoryId: z.ZodOptional<z.ZodString>;
|
|
37
48
|
baseBranch: z.ZodOptional<z.ZodString>;
|
|
38
49
|
workerExecutionMode: z.ZodOptional<z.ZodEnum<{
|
|
@@ -68,6 +79,7 @@ declare const startTaskSchema: z.ZodObject<{
|
|
|
68
79
|
forceUserCwd: z.ZodOptional<z.ZodBoolean>;
|
|
69
80
|
machineId: z.ZodOptional<z.ZodString>;
|
|
70
81
|
cloudId: z.ZodOptional<z.ZodString>;
|
|
82
|
+
model: z.ZodOptional<z.ZodString>;
|
|
71
83
|
repositoryId: z.ZodOptional<z.ZodString>;
|
|
72
84
|
baseBranch: z.ZodOptional<z.ZodString>;
|
|
73
85
|
workerExecutionMode: z.ZodOptional<z.ZodEnum<{
|
|
@@ -105,6 +117,7 @@ declare const StartTaskResponseSchema: z.ZodObject<{
|
|
|
105
117
|
state: z.ZodString;
|
|
106
118
|
machineId: z.ZodNullable<z.ZodString>;
|
|
107
119
|
cloudId: z.ZodNullable<z.ZodString>;
|
|
120
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
108
121
|
repositoryId: z.ZodNullable<z.ZodString>;
|
|
109
122
|
baseBranch: z.ZodNullable<z.ZodString>;
|
|
110
123
|
workerExecutionMode: z.ZodEnum<{
|
|
@@ -149,6 +162,7 @@ declare const TaskItemSchema: z.ZodObject<{
|
|
|
149
162
|
agentId: z.ZodString;
|
|
150
163
|
machineId: z.ZodNullable<z.ZodString>;
|
|
151
164
|
cloudId: z.ZodNullable<z.ZodString>;
|
|
165
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
152
166
|
repositoryId: z.ZodNullable<z.ZodString>;
|
|
153
167
|
baseBranch: z.ZodNullable<z.ZodString>;
|
|
154
168
|
branchName: z.ZodNullable<z.ZodString>;
|
|
@@ -187,6 +201,15 @@ declare const TaskItemSchema: z.ZodObject<{
|
|
|
187
201
|
deletions: z.ZodNumber;
|
|
188
202
|
}, z.core.$strip>>;
|
|
189
203
|
}, z.core.$strip>>;
|
|
204
|
+
usageSummary: z.ZodNullable<z.ZodObject<{
|
|
205
|
+
inputTokens: z.ZodNumber;
|
|
206
|
+
outputTokens: z.ZodNumber;
|
|
207
|
+
cacheReadInputTokens: z.ZodNumber;
|
|
208
|
+
cacheCreationInputTokens: z.ZodNumber;
|
|
209
|
+
webSearchRequests: z.ZodNumber;
|
|
210
|
+
totalTokens: z.ZodNumber;
|
|
211
|
+
models: z.ZodArray<z.ZodString>;
|
|
212
|
+
}, z.core.$strip>>;
|
|
190
213
|
totalDuration: z.ZodNullable<z.ZodNumber>;
|
|
191
214
|
rootTaskId: z.ZodNullable<z.ZodString>;
|
|
192
215
|
parentTaskId: z.ZodNullable<z.ZodString>;
|
|
@@ -215,6 +238,7 @@ declare const EnsureIssueRootTaskResponseSchema: z.ZodObject<{
|
|
|
215
238
|
agentId: z.ZodString;
|
|
216
239
|
machineId: z.ZodNullable<z.ZodString>;
|
|
217
240
|
cloudId: z.ZodNullable<z.ZodString>;
|
|
241
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
218
242
|
repositoryId: z.ZodNullable<z.ZodString>;
|
|
219
243
|
baseBranch: z.ZodNullable<z.ZodString>;
|
|
220
244
|
branchName: z.ZodNullable<z.ZodString>;
|
|
@@ -253,6 +277,15 @@ declare const EnsureIssueRootTaskResponseSchema: z.ZodObject<{
|
|
|
253
277
|
deletions: z.ZodNumber;
|
|
254
278
|
}, z.core.$strip>>;
|
|
255
279
|
}, z.core.$strip>>;
|
|
280
|
+
usageSummary: z.ZodNullable<z.ZodObject<{
|
|
281
|
+
inputTokens: z.ZodNumber;
|
|
282
|
+
outputTokens: z.ZodNumber;
|
|
283
|
+
cacheReadInputTokens: z.ZodNumber;
|
|
284
|
+
cacheCreationInputTokens: z.ZodNumber;
|
|
285
|
+
webSearchRequests: z.ZodNumber;
|
|
286
|
+
totalTokens: z.ZodNumber;
|
|
287
|
+
models: z.ZodArray<z.ZodString>;
|
|
288
|
+
}, z.core.$strip>>;
|
|
256
289
|
totalDuration: z.ZodNullable<z.ZodNumber>;
|
|
257
290
|
rootTaskId: z.ZodNullable<z.ZodString>;
|
|
258
291
|
parentTaskId: z.ZodNullable<z.ZodString>;
|
|
@@ -295,6 +328,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
295
328
|
agentId: z.ZodString;
|
|
296
329
|
machineId: z.ZodNullable<z.ZodString>;
|
|
297
330
|
cloudId: z.ZodNullable<z.ZodString>;
|
|
331
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
298
332
|
repositoryId: z.ZodNullable<z.ZodString>;
|
|
299
333
|
baseBranch: z.ZodNullable<z.ZodString>;
|
|
300
334
|
branchName: z.ZodNullable<z.ZodString>;
|
|
@@ -333,6 +367,15 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
333
367
|
deletions: z.ZodNumber;
|
|
334
368
|
}, z.core.$strip>>;
|
|
335
369
|
}, z.core.$strip>>;
|
|
370
|
+
usageSummary: z.ZodNullable<z.ZodObject<{
|
|
371
|
+
inputTokens: z.ZodNumber;
|
|
372
|
+
outputTokens: z.ZodNumber;
|
|
373
|
+
cacheReadInputTokens: z.ZodNumber;
|
|
374
|
+
cacheCreationInputTokens: z.ZodNumber;
|
|
375
|
+
webSearchRequests: z.ZodNumber;
|
|
376
|
+
totalTokens: z.ZodNumber;
|
|
377
|
+
models: z.ZodArray<z.ZodString>;
|
|
378
|
+
}, z.core.$strip>>;
|
|
336
379
|
totalDuration: z.ZodNullable<z.ZodNumber>;
|
|
337
380
|
rootTaskId: z.ZodNullable<z.ZodString>;
|
|
338
381
|
parentTaskId: z.ZodNullable<z.ZodString>;
|
|
@@ -602,6 +645,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
602
645
|
agentId: z.ZodString;
|
|
603
646
|
machineId: z.ZodNullable<z.ZodString>;
|
|
604
647
|
cloudId: z.ZodNullable<z.ZodString>;
|
|
648
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
605
649
|
repositoryId: z.ZodNullable<z.ZodString>;
|
|
606
650
|
baseBranch: z.ZodNullable<z.ZodString>;
|
|
607
651
|
branchName: z.ZodNullable<z.ZodString>;
|
|
@@ -640,6 +684,15 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
640
684
|
deletions: z.ZodNumber;
|
|
641
685
|
}, z.core.$strip>>;
|
|
642
686
|
}, z.core.$strip>>;
|
|
687
|
+
usageSummary: z.ZodNullable<z.ZodObject<{
|
|
688
|
+
inputTokens: z.ZodNumber;
|
|
689
|
+
outputTokens: z.ZodNumber;
|
|
690
|
+
cacheReadInputTokens: z.ZodNumber;
|
|
691
|
+
cacheCreationInputTokens: z.ZodNumber;
|
|
692
|
+
webSearchRequests: z.ZodNumber;
|
|
693
|
+
totalTokens: z.ZodNumber;
|
|
694
|
+
models: z.ZodArray<z.ZodString>;
|
|
695
|
+
}, z.core.$strip>>;
|
|
643
696
|
totalDuration: z.ZodNullable<z.ZodNumber>;
|
|
644
697
|
rootTaskId: z.ZodNullable<z.ZodString>;
|
|
645
698
|
parentTaskId: z.ZodNullable<z.ZodString>;
|
|
@@ -678,6 +731,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
678
731
|
agentId: z.ZodString;
|
|
679
732
|
machineId: z.ZodNullable<z.ZodString>;
|
|
680
733
|
cloudId: z.ZodNullable<z.ZodString>;
|
|
734
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
681
735
|
repositoryId: z.ZodNullable<z.ZodString>;
|
|
682
736
|
baseBranch: z.ZodNullable<z.ZodString>;
|
|
683
737
|
branchName: z.ZodNullable<z.ZodString>;
|
|
@@ -716,6 +770,15 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
716
770
|
deletions: z.ZodNumber;
|
|
717
771
|
}, z.core.$strip>>;
|
|
718
772
|
}, z.core.$strip>>;
|
|
773
|
+
usageSummary: z.ZodNullable<z.ZodObject<{
|
|
774
|
+
inputTokens: z.ZodNumber;
|
|
775
|
+
outputTokens: z.ZodNumber;
|
|
776
|
+
cacheReadInputTokens: z.ZodNumber;
|
|
777
|
+
cacheCreationInputTokens: z.ZodNumber;
|
|
778
|
+
webSearchRequests: z.ZodNumber;
|
|
779
|
+
totalTokens: z.ZodNumber;
|
|
780
|
+
models: z.ZodArray<z.ZodString>;
|
|
781
|
+
}, z.core.$strip>>;
|
|
719
782
|
totalDuration: z.ZodNullable<z.ZodNumber>;
|
|
720
783
|
rootTaskId: z.ZodNullable<z.ZodString>;
|
|
721
784
|
parentTaskId: z.ZodNullable<z.ZodString>;
|
|
@@ -756,6 +819,7 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
|
|
|
756
819
|
agentId: z.ZodString;
|
|
757
820
|
machineId: z.ZodNullable<z.ZodString>;
|
|
758
821
|
cloudId: z.ZodNullable<z.ZodString>;
|
|
822
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
759
823
|
repositoryId: z.ZodNullable<z.ZodString>;
|
|
760
824
|
baseBranch: z.ZodNullable<z.ZodString>;
|
|
761
825
|
branchName: z.ZodNullable<z.ZodString>;
|
|
@@ -794,6 +858,15 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
|
|
|
794
858
|
deletions: z.ZodNumber;
|
|
795
859
|
}, z.core.$strip>>;
|
|
796
860
|
}, z.core.$strip>>;
|
|
861
|
+
usageSummary: z.ZodNullable<z.ZodObject<{
|
|
862
|
+
inputTokens: z.ZodNumber;
|
|
863
|
+
outputTokens: z.ZodNumber;
|
|
864
|
+
cacheReadInputTokens: z.ZodNumber;
|
|
865
|
+
cacheCreationInputTokens: z.ZodNumber;
|
|
866
|
+
webSearchRequests: z.ZodNumber;
|
|
867
|
+
totalTokens: z.ZodNumber;
|
|
868
|
+
models: z.ZodArray<z.ZodString>;
|
|
869
|
+
}, z.core.$strip>>;
|
|
797
870
|
totalDuration: z.ZodNullable<z.ZodNumber>;
|
|
798
871
|
rootTaskId: z.ZodNullable<z.ZodString>;
|
|
799
872
|
parentTaskId: z.ZodNullable<z.ZodString>;
|
|
@@ -819,15 +892,15 @@ type SendMessageTarget = 'agent' | 'user';
|
|
|
819
892
|
* - 'user': Broadcasts SDKAssistantMessage to users viewing the task
|
|
820
893
|
*/
|
|
821
894
|
declare const SendTaskMessageRequestSchema: z.ZodObject<{
|
|
822
|
-
message: z.ZodCustom<
|
|
895
|
+
message: z.ZodCustom<SDKUserMessage | SDKAssistantMessage, SDKUserMessage | SDKAssistantMessage>;
|
|
823
896
|
target: z.ZodEnum<{
|
|
824
|
-
user: "user";
|
|
825
897
|
agent: "agent";
|
|
898
|
+
user: "user";
|
|
826
899
|
}>;
|
|
827
900
|
fromTaskId: z.ZodOptional<z.ZodString>;
|
|
828
901
|
senderType: z.ZodEnum<{
|
|
829
|
-
system: "system";
|
|
830
902
|
human: "human";
|
|
903
|
+
system: "system";
|
|
831
904
|
agent: "agent";
|
|
832
905
|
}>;
|
|
833
906
|
senderId: z.ZodString;
|
|
@@ -985,6 +1058,19 @@ declare const RpcCallEventSchema: z.ZodObject<{
|
|
|
985
1058
|
body: z.ZodOptional<z.ZodAny>;
|
|
986
1059
|
}, z.core.$strip>;
|
|
987
1060
|
type RpcCallEventData = z.infer<typeof RpcCallEventSchema>;
|
|
1061
|
+
declare const MachineRpcCallEventSchema: z.ZodObject<{
|
|
1062
|
+
eventId: z.ZodString;
|
|
1063
|
+
method: z.ZodEnum<{
|
|
1064
|
+
GET: "GET";
|
|
1065
|
+
POST: "POST";
|
|
1066
|
+
PATCH: "PATCH";
|
|
1067
|
+
DELETE: "DELETE";
|
|
1068
|
+
}>;
|
|
1069
|
+
path: z.ZodString;
|
|
1070
|
+
query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1071
|
+
body: z.ZodOptional<z.ZodAny>;
|
|
1072
|
+
}, z.core.$strip>;
|
|
1073
|
+
type MachineRpcCallEventData = z.infer<typeof MachineRpcCallEventSchema>;
|
|
988
1074
|
declare const RpcResponseSchema: z.ZodObject<{
|
|
989
1075
|
success: z.ZodBoolean;
|
|
990
1076
|
status: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1066,14 +1152,14 @@ declare const AskUserMessageSchema: z.ZodObject<{
|
|
|
1066
1152
|
}, z.core.$strip>;
|
|
1067
1153
|
type AskUserMessage = z.infer<typeof AskUserMessageSchema>;
|
|
1068
1154
|
declare const AskUserResponseStatusSchema: z.ZodEnum<{
|
|
1155
|
+
timeout: "timeout";
|
|
1069
1156
|
answered: "answered";
|
|
1070
1157
|
cancelled: "cancelled";
|
|
1071
|
-
timeout: "timeout";
|
|
1072
1158
|
}>;
|
|
1073
1159
|
declare const AskUserResponseReasonSchema: z.ZodEnum<{
|
|
1074
|
-
timeout: "timeout";
|
|
1075
|
-
user: "user";
|
|
1076
1160
|
system: "system";
|
|
1161
|
+
user: "user";
|
|
1162
|
+
timeout: "timeout";
|
|
1077
1163
|
}>;
|
|
1078
1164
|
type AskUserResponseStatus = z.infer<typeof AskUserResponseStatusSchema>;
|
|
1079
1165
|
type AskUserResponseReason = z.infer<typeof AskUserResponseReasonSchema>;
|
|
@@ -1089,14 +1175,14 @@ declare const AskUserResponseMessageSchema: z.ZodObject<{
|
|
|
1089
1175
|
details: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1090
1176
|
rememberAnswers: z.ZodOptional<z.ZodArray<z.ZodBoolean>>;
|
|
1091
1177
|
status: z.ZodOptional<z.ZodEnum<{
|
|
1178
|
+
timeout: "timeout";
|
|
1092
1179
|
answered: "answered";
|
|
1093
1180
|
cancelled: "cancelled";
|
|
1094
|
-
timeout: "timeout";
|
|
1095
1181
|
}>>;
|
|
1096
1182
|
reason: z.ZodOptional<z.ZodEnum<{
|
|
1097
|
-
timeout: "timeout";
|
|
1098
|
-
user: "user";
|
|
1099
1183
|
system: "system";
|
|
1184
|
+
user: "user";
|
|
1185
|
+
timeout: "timeout";
|
|
1100
1186
|
}>>;
|
|
1101
1187
|
}, z.core.$strip>;
|
|
1102
1188
|
type AskUserResponseMessage = z.infer<typeof AskUserResponseMessageSchema>;
|
|
@@ -1385,6 +1471,15 @@ declare const ChatWorkersStatusResponseSchema: z.ZodObject<{
|
|
|
1385
1471
|
}, z.core.$strip>>;
|
|
1386
1472
|
}, z.core.$strip>;
|
|
1387
1473
|
type ChatWorkersStatusResponseEventData = z.infer<typeof ChatWorkersStatusResponseSchema>;
|
|
1474
|
+
declare const ListModelsEventSchema: z.ZodObject<{
|
|
1475
|
+
eventId: z.ZodString;
|
|
1476
|
+
machineId: z.ZodString;
|
|
1477
|
+
agentType: z.ZodOptional<z.ZodEnum<{
|
|
1478
|
+
claude: "claude";
|
|
1479
|
+
codex: "codex";
|
|
1480
|
+
}>>;
|
|
1481
|
+
}, z.core.$strip>;
|
|
1482
|
+
type ListModelsEventData = z.infer<typeof ListModelsEventSchema>;
|
|
1388
1483
|
declare const baseTaskSchema: z.ZodObject<{
|
|
1389
1484
|
eventId: z.ZodString;
|
|
1390
1485
|
taskId: z.ZodString;
|
|
@@ -1694,9 +1789,9 @@ declare const TaskMessageSchema: z.ZodObject<{
|
|
|
1694
1789
|
taskId: z.ZodString;
|
|
1695
1790
|
chatId: z.ZodOptional<z.ZodString>;
|
|
1696
1791
|
from: z.ZodEnum<{
|
|
1792
|
+
machine: "machine";
|
|
1697
1793
|
app: "app";
|
|
1698
1794
|
"api-server": "api-server";
|
|
1699
|
-
machine: "machine";
|
|
1700
1795
|
worker: "worker";
|
|
1701
1796
|
}>;
|
|
1702
1797
|
opCode: z.ZodOptional<z.ZodString>;
|
|
@@ -1707,8 +1802,8 @@ declare const TaskMessageSchema: z.ZodObject<{
|
|
|
1707
1802
|
encryptedMessage: z.ZodOptional<z.ZodString>;
|
|
1708
1803
|
agentId: z.ZodOptional<z.ZodString>;
|
|
1709
1804
|
senderType: z.ZodEnum<{
|
|
1710
|
-
system: "system";
|
|
1711
1805
|
human: "human";
|
|
1806
|
+
system: "system";
|
|
1712
1807
|
agent: "agent";
|
|
1713
1808
|
}>;
|
|
1714
1809
|
senderId: z.ZodString;
|
|
@@ -1750,6 +1845,31 @@ declare const TaskMessageSchema: z.ZodObject<{
|
|
|
1750
1845
|
navigateToTaskId: z.ZodOptional<z.ZodString>;
|
|
1751
1846
|
}, z.core.$strip>;
|
|
1752
1847
|
type TaskMessageEventData = z.infer<typeof TaskMessageSchema>;
|
|
1848
|
+
declare const TaskModelUsageSchema: z.ZodObject<{
|
|
1849
|
+
inputTokens: z.ZodDefault<z.ZodNumber>;
|
|
1850
|
+
outputTokens: z.ZodDefault<z.ZodNumber>;
|
|
1851
|
+
cacheReadInputTokens: z.ZodDefault<z.ZodNumber>;
|
|
1852
|
+
cacheCreationInputTokens: z.ZodDefault<z.ZodNumber>;
|
|
1853
|
+
webSearchRequests: z.ZodDefault<z.ZodNumber>;
|
|
1854
|
+
}, z.core.$strip>;
|
|
1855
|
+
type TaskModelUsage = z.infer<typeof TaskModelUsageSchema>;
|
|
1856
|
+
/**
|
|
1857
|
+
* Worker -> API usage report.
|
|
1858
|
+
* Sent separately from result messages so encrypted task results can remain opaque.
|
|
1859
|
+
*/
|
|
1860
|
+
declare const TaskUsageReportEventSchema: z.ZodObject<{
|
|
1861
|
+
eventId: z.ZodString;
|
|
1862
|
+
taskId: z.ZodString;
|
|
1863
|
+
resultEventId: z.ZodString;
|
|
1864
|
+
modelUsage: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1865
|
+
inputTokens: z.ZodDefault<z.ZodNumber>;
|
|
1866
|
+
outputTokens: z.ZodDefault<z.ZodNumber>;
|
|
1867
|
+
cacheReadInputTokens: z.ZodDefault<z.ZodNumber>;
|
|
1868
|
+
cacheCreationInputTokens: z.ZodDefault<z.ZodNumber>;
|
|
1869
|
+
webSearchRequests: z.ZodDefault<z.ZodNumber>;
|
|
1870
|
+
}, z.core.$strip>>;
|
|
1871
|
+
}, z.core.$strip>;
|
|
1872
|
+
type TaskUsageReportEventData = z.infer<typeof TaskUsageReportEventSchema>;
|
|
1753
1873
|
/**
|
|
1754
1874
|
* Task state type
|
|
1755
1875
|
*/
|
|
@@ -1829,8 +1949,8 @@ declare const RtcSignalSchema: z.ZodObject<{
|
|
|
1829
1949
|
machineId: z.ZodString;
|
|
1830
1950
|
sessionId: z.ZodString;
|
|
1831
1951
|
from: z.ZodEnum<{
|
|
1832
|
-
app: "app";
|
|
1833
1952
|
machine: "machine";
|
|
1953
|
+
app: "app";
|
|
1834
1954
|
}>;
|
|
1835
1955
|
signal: z.ZodAny;
|
|
1836
1956
|
userId: z.ZodOptional<z.ZodString>;
|
|
@@ -2393,6 +2513,7 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
2393
2513
|
agentId: z.ZodString;
|
|
2394
2514
|
machineId: z.ZodNullable<z.ZodString>;
|
|
2395
2515
|
cloudId: z.ZodNullable<z.ZodString>;
|
|
2516
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2396
2517
|
repositoryId: z.ZodNullable<z.ZodString>;
|
|
2397
2518
|
baseBranch: z.ZodNullable<z.ZodString>;
|
|
2398
2519
|
branchName: z.ZodNullable<z.ZodString>;
|
|
@@ -2431,6 +2552,15 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
2431
2552
|
deletions: z.ZodNumber;
|
|
2432
2553
|
}, z.core.$strip>>;
|
|
2433
2554
|
}, z.core.$strip>>;
|
|
2555
|
+
usageSummary: z.ZodNullable<z.ZodObject<{
|
|
2556
|
+
inputTokens: z.ZodNumber;
|
|
2557
|
+
outputTokens: z.ZodNumber;
|
|
2558
|
+
cacheReadInputTokens: z.ZodNumber;
|
|
2559
|
+
cacheCreationInputTokens: z.ZodNumber;
|
|
2560
|
+
webSearchRequests: z.ZodNumber;
|
|
2561
|
+
totalTokens: z.ZodNumber;
|
|
2562
|
+
models: z.ZodArray<z.ZodString>;
|
|
2563
|
+
}, z.core.$strip>>;
|
|
2434
2564
|
totalDuration: z.ZodNullable<z.ZodNumber>;
|
|
2435
2565
|
rootTaskId: z.ZodNullable<z.ZodString>;
|
|
2436
2566
|
parentTaskId: z.ZodNullable<z.ZodString>;
|
|
@@ -2547,7 +2677,7 @@ declare const ResetTaskSessionSchema: z.ZodObject<{
|
|
|
2547
2677
|
taskId: z.ZodString;
|
|
2548
2678
|
}, z.core.$strip>;
|
|
2549
2679
|
type ResetTaskSessionEventData = z.infer<typeof ResetTaskSessionSchema>;
|
|
2550
|
-
type EventData = AppAliveEventData | ApiServerAliveEventData | MachineAliveEventData | ShutdownMachineData | WorkerInitializingEventData | WorkerInitializedEventData | WorkerReadyEventData | WorkerAliveEventData | WorkerExitEventData | WorkerRunningEventData | WorkerPermissionModeEventData | WorkerStatusRequestEventData | ChatWorkersStatusRequestEventData | ChatWorkersStatusResponseEventData | CreateTaskEventData | ResumeTaskEventData | CancelTaskEventData | StopTaskEventData | TaskMessageEventData | ChangeTaskTitleEventData | TaskStateChangeEventData | UpdateTaskAgentSessionIdEventData | TaskInfoUpdateEventData | TaskSlashCommandsUpdateEventData | MergeRequestEventData | TaskStoppedEventData | SubTaskResultUpdatedEventData | SubTaskAskUserEventData | SystemMessageEventData | CreditExhaustedEventData | RtcIceServersRequestEventData | RtcIceServersResponseEventData | MachineRtcRequestEventData | MachineRtcResponseEventData | RtcSignalEventData | WorkspaceFileRequestEventData | WorkspaceFileResponseEventData | UpdateAgentInfoEventData | DaemonGitlabRequestEventData | DaemonGitlabResponseEventData | CompanionHeartbeatRequestData | CompanionHeartbeatResponseData | CompanionInitRequestData | CompanionInitResponseData | ResetTaskSessionEventData | HiveInstallEventData | HiveInstallCompleteEventData | SeqSyncRequestEventData | SeqSyncResponseEventData;
|
|
2680
|
+
type EventData = AppAliveEventData | ApiServerAliveEventData | MachineAliveEventData | ShutdownMachineData | WorkerInitializingEventData | WorkerInitializedEventData | WorkerReadyEventData | WorkerAliveEventData | WorkerExitEventData | WorkerRunningEventData | WorkerPermissionModeEventData | WorkerStatusRequestEventData | ChatWorkersStatusRequestEventData | ChatWorkersStatusResponseEventData | CreateTaskEventData | ResumeTaskEventData | CancelTaskEventData | StopTaskEventData | TaskMessageEventData | ChangeTaskTitleEventData | TaskStateChangeEventData | UpdateTaskAgentSessionIdEventData | TaskInfoUpdateEventData | TaskSlashCommandsUpdateEventData | MergeRequestEventData | TaskStoppedEventData | SubTaskResultUpdatedEventData | SubTaskAskUserEventData | SystemMessageEventData | CreditExhaustedEventData | RtcIceServersRequestEventData | RtcIceServersResponseEventData | MachineRtcRequestEventData | MachineRtcResponseEventData | RtcSignalEventData | WorkspaceFileRequestEventData | WorkspaceFileResponseEventData | UpdateAgentInfoEventData | MachineRpcCallEventData | DaemonGitlabRequestEventData | DaemonGitlabResponseEventData | CompanionHeartbeatRequestData | CompanionHeartbeatResponseData | CompanionInitRequestData | CompanionInitResponseData | ResetTaskSessionEventData | HiveInstallEventData | HiveInstallCompleteEventData | SeqSyncRequestEventData | SeqSyncResponseEventData;
|
|
2551
2681
|
declare const SeqSyncRequestEventDataSchema: z.ZodObject<{
|
|
2552
2682
|
eventId: z.ZodString;
|
|
2553
2683
|
tasks: z.ZodArray<z.ZodObject<{
|
|
@@ -2568,6 +2698,7 @@ type EventMap = {
|
|
|
2568
2698
|
"app-alive": AppAliveEventData;
|
|
2569
2699
|
"api-server-alive": ApiServerAliveEventData;
|
|
2570
2700
|
"machine-alive": MachineAliveEventData;
|
|
2701
|
+
"list-models": ListModelsEventData;
|
|
2571
2702
|
"worker-initializing": WorkerInitializingEventData;
|
|
2572
2703
|
"worker-initialized": WorkerInitializedEventData;
|
|
2573
2704
|
"worker-ready": WorkerReadyEventData;
|
|
@@ -2583,6 +2714,7 @@ type EventMap = {
|
|
|
2583
2714
|
"cancel-task": CancelTaskEventData;
|
|
2584
2715
|
"stop-task": StopTaskEventData;
|
|
2585
2716
|
"task-message": TaskMessageEventData;
|
|
2717
|
+
"task-usage-report": TaskUsageReportEventData;
|
|
2586
2718
|
"change-task-title": ChangeTaskTitleEventData;
|
|
2587
2719
|
"task-state-change": TaskStateChangeEventData;
|
|
2588
2720
|
"update-task-agent-session-id": UpdateTaskAgentSessionIdEventData;
|
|
@@ -2612,6 +2744,7 @@ type EventMap = {
|
|
|
2612
2744
|
"workspace-file-request": WorkspaceFileRequestEventData;
|
|
2613
2745
|
"workspace-file-response": WorkspaceFileResponseEventData;
|
|
2614
2746
|
"rpc-call": RpcCallEventData;
|
|
2747
|
+
"machine-rpc-call": MachineRpcCallEventData;
|
|
2615
2748
|
"daemon-gitlab-request": DaemonGitlabRequestEventData;
|
|
2616
2749
|
"daemon-gitlab-response": DaemonGitlabResponseEventData;
|
|
2617
2750
|
"repository-inbox-webhook": RepositoryInboxWebhookEventData;
|
|
@@ -2629,7 +2762,7 @@ declare const EventSchemaMap: Record<EventName, z.ZodType<any>>;
|
|
|
2629
2762
|
/**
|
|
2630
2763
|
* only sent by worker and which need to send to human in chat room
|
|
2631
2764
|
*/
|
|
2632
|
-
type WorkerTaskEvent = "worker-initializing" | "worker-initialized" | "worker-ready" | "worker-exit" | "worker-running" | "worker-permission-mode" | "change-task-title" | "update-task-agent-session-id" | "task-slash-commands-update" | "reset-task-session" | "merge-request" | "merge-pr" | "associate-repo" | "update-agent-info";
|
|
2765
|
+
type WorkerTaskEvent = "worker-initializing" | "worker-initialized" | "worker-ready" | "worker-exit" | "worker-running" | "worker-permission-mode" | "change-task-title" | "update-task-agent-session-id" | "task-slash-commands-update" | "task-usage-report" | "reset-task-session" | "merge-request" | "merge-pr" | "associate-repo" | "update-agent-info";
|
|
2633
2766
|
declare const workerTaskEvents: WorkerTaskEvent[];
|
|
2634
2767
|
|
|
2635
2768
|
/**
|
|
@@ -3075,5 +3208,5 @@ declare class MissingAgentFileError extends AgentError {
|
|
|
3075
3208
|
constructor(filePath: string);
|
|
3076
3209
|
}
|
|
3077
3210
|
|
|
3078
|
-
export {
|
|
3079
|
-
export type {
|
|
3211
|
+
export { FillEventsRequestSchema as $, StopTaskRequestSchema as A, CancelTaskRequestSchema as C, DEFAULT_WORKER_EXECUTION_MODE as D, EnsureIssueRootTaskRequestSchema as E, stopTaskRequestSchema as F, StopTaskResponseSchema as G, PermissionResponseRequestSchema as I, permissionResponseRequestSchema as K, ListTasksRequestSchema as L, PermissionResponseResponseSchema as M, ProjectEntrySchema as O, ResumeTaskRequestSchema as R, StartTaskRequestSchema as S, TaskTodoSchema as T, ProjectDirectoryResponseSchema as U, QueryEventsRequestSchema as X, WorkerExecutionModeSchema as a, CreateMergeRequestSchema as a2, createMergeRequestSchema as a4, CreateMergeRequestResponseSchema as a5, ApprovePrRequestSchema as a7, ApprovePrResponseSchema as a9, GetTaskSessionResponseSchema as aA, ListSubTasksRequestSchema as aC, SubTaskSummarySchema as aE, ListSubTasksResponseSchema as aG, ListRecentTasksRequestSchema as aI, RecentTaskSummarySchema as aK, ListRecentTasksResponseSchema as aM, FindTaskByAgentRequestSchema as aO, FindTaskByAgentResponseSchema as aQ, AskUserOptionSchema as aS, AskUserQuestionSchema as aU, AskUserMessageSchema as aW, AskUserResponseStatusSchema as aY, AskUserResponseReasonSchema as aZ, CreateTaskShareSchema as ab, CreateTaskShareResponseSchema as ad, ArchiveTaskRequestSchema as af, ArchiveTaskResponseSchema as ah, UnarchiveTaskRequestSchema as aj, UnarchiveTaskResponseSchema as al, UpdateTaskTitleRequestSchema as an, UpdateTaskTitleResponseSchema as ap, SendTaskMessageRequestSchema as as, SendTaskMessageResponseSchema as au, ShowModalRequestSchema as aw, ShowModalResponseSchema as ay, StopTaskSchema as b$, AskUserResponseMessageSchema as b0, TaskAgentInfoSchema as b6, isAskUserMessage as b8, isAskUserResponseMessage as b9, WorkerAliveEventSchema as bA, WorkerExitSchema as bC, WorkerRunningSchema as bE, WorkerPermissionModeSchema as bG, WorkerStatusRequestSchema as bI, WorkerStatusValueSchema as bK, WorkerStatusSnapshotSchema as bM, ChatWorkersStatusRequestSchema as bO, ChatWorkersStatusResponseSchema as bQ, ListModelsEventSchema as bS, baseTaskSchema as bU, createTaskSchema as bV, resumeTaskSchema as bX, cancelTaskSchema as bZ, isCompanionHeartbeatMessage as ba, isCompanionReminderMessage as bb, isSubTaskAskUserMessage as bc, isSDKMessage as bd, isSDKUserMessage as be, createEventId as bf, EventAckSchema as bg, AppAliveEventSchema as bi, ApiServerAliveEventSchema as bk, MachineAliveEventSchema as bm, ShutdownMachineSchema as bo, WorkerInitializingSchema as bq, WorkerInitializedSchema as bs, WorkerPermissionModeValueSchema as bu, WorkerReadySchema as bw, ActiveAgentSchema as by, TaskUsageSummarySchema as c, TaskArtifactsStatsSchema as c1, PreviewProjectTypeSchema as c3, PreviewMethodSchema as c5, PreviewMetadataSchema as c7, TaskArtifactsSummarySchema as c8, WorkspaceFileRequestSchema as cB, WorkspaceFileResponseSchema as cD, UpdateTaskAgentSessionIdEventSchema as cF, TaskInfoUpdateEventDataSchema as cH, TaskSlashCommandSchema as cJ, TaskSlashCommandsUpdateEventDataSchema as cL, MergeRequestEventSchema as cN, TaskStoppedEventSchema as cP, SubTaskResultUpdatedEventSchema as cR, SubTaskAskUserEventSchema as cT, MergePullRequestEventSchema as cV, DeployAgentEventSchema as cY, DeployAgentCompleteEventSchema as c_, TaskMessageSchema as ca, TaskModelUsageSchema as cc, TaskUsageReportEventSchema as ce, ShowModalEventDataSchema as ch, ChangeTaskTitleEventSchema as cj, TaskStateChangeEventSchema as cl, CreditExhaustedEventSchema as cn, RtcIceServerSchema as cp, RtcIceServersRequestSchema as cr, RtcIceServersResponseSchema as ct, MachineRtcRequestSchema as cv, MachineRtcResponseSchema as cx, RtcSignalSchema as cz, HivePublishEventSchema as d0, HivePublishCompleteEventSchema as d2, HiveInstallEventSchema as d4, HiveInstallCompleteEventSchema as d6, AssociateRepoEventDataSchema as d8, UpdateAgentInfoEventSchema as d9, SeqSyncRequestEventDataSchema as dB, SeqSyncResponseEventDataSchema as dD, EventSchemaMap as dH, workerTaskEvents as dJ, RpcCallEventSchema as dK, MachineRpcCallEventSchema as dM, RpcResponseSchema as dO, setAgentContext as dS, getAgentContext as dT, SystemMessageSchema as de, DaemonGitlabOperationSchema as dg, DaemonGitlabRequestSchema as di, DaemonGitlabResponseSchema as dk, RepositoryInboxProviderSchema as dm, RepositoryInboxWebhookSchema as dn, CompanionHeartbeatRequestSchema as dq, CompanionHeartbeatResponseSchema as ds, CompanionInitRequestSchema as du, CompanionInitResponseSchema as dw, ResetTaskSessionSchema as dy, FRAMEWORK_TYPES as e0, AgentMetadataSchema as e1, ClaudeConfigSchema as e2, AgentError as e3, AgentNotFoundError as e4, AgentConfigValidationError as e5, FrameworkNotSupportedError as e6, AgentLoadError as e7, MissingAgentFileError as e8, StartTaskResponseSchema as f, TaskItemSchema as i, EnsureIssueRootTaskResponseSchema as k, normalizeWorkerExecutionMode as n, ListTasksResponseSchema as o, resumeTaskRequestSchema as r, startTaskSchema as s, ResumeTaskResponseSchema as t, workerExecutionModes as w, cancelTaskRequestSchema as x, CancelTaskResponseSchema as y };
|
|
3212
|
+
export type { StopTaskRequest as B, StopTaskResponse as H, PermissionResponseRequest as J, PermissionResponseResponse as N, PreviewMetadata as P, ProjectEntry as Q, ProjectDirectoryResponse as V, WorkerExecutionMode as W, QueryEventsRequest as Y, TaskEvent as Z, QueryEventsResponse as _, AskUserResponseReason as a$, FillEventsRequest as a0, FillEventsResponse as a1, CreateMergeRequestRequest as a3, CreateMergeRequestResponse as a6, ApprovePrRequest as a8, GetTaskSessionResponse as aB, ListSubTasksRequest as aD, SubTaskSummary as aF, ListSubTasksResponse as aH, ListRecentTasksRequest as aJ, RecentTaskSummary as aL, ListRecentTasksResponse as aN, FindTaskByAgentRequest as aP, FindTaskByAgentResponse as aR, AskUserOption as aT, AskUserQuestion as aV, AskUserMessage as aX, AskUserResponseStatus as a_, ApprovePrResponse as aa, CreateTaskShareRequest as ac, CreateTaskShareResponse as ae, ArchiveTaskRequest as ag, ArchiveTaskResponse as ai, UnarchiveTaskRequest as ak, UnarchiveTaskResponse as am, UpdateTaskTitleRequest as ao, UpdateTaskTitleResponse as aq, SendMessageTarget as ar, SendTaskMessageRequest as at, SendTaskMessageResponse as av, ShowModalRequest as ax, ShowModalResponse as az, TaskTodo as b, AskUserResponseMessage as b1, CompanionHeartbeatMessage as b2, CompanionReminderMessage as b3, SubTaskAskUserMessage as b4, TaskMessagePayload as b5, TaskAgentInfo as b7, WorkerAliveEventData as bB, WorkerExitEventData as bD, WorkerRunningEventData as bF, WorkerPermissionModeEventData as bH, WorkerStatusRequestEventData as bJ, WorkerStatusValue as bL, WorkerStatusSnapshot as bN, ChatWorkersStatusRequestEventData as bP, ChatWorkersStatusResponseEventData as bR, ListModelsEventData as bT, CreateTaskEventData as bW, ResumeTaskEventData as bY, CancelTaskEventData as b_, EventAckData as bh, AppAliveEventData as bj, ApiServerAliveEventData as bl, MachineAliveEventData as bn, ShutdownMachineData as bp, WorkerInitializingEventData as br, WorkerInitializedEventData as bt, WorkerPermissionModeValue as bv, WorkerReadyEventData as bx, ActiveAgent as bz, DeployAgentCompleteEventData as c$, StopTaskEventData as c0, TaskArtifactsStats as c2, PreviewProjectType as c4, PreviewMethod as c6, TaskArtifactsSummary as c9, RtcSignalEventData as cA, WorkspaceFileRequestEventData as cC, WorkspaceFileResponseEventData as cE, UpdateTaskAgentSessionIdEventData as cG, TaskInfoUpdateEventData as cI, TaskSlashCommand as cK, TaskSlashCommandsUpdateEventData as cM, MergeRequestEventData as cO, TaskStoppedEventData as cQ, SubTaskResultUpdatedEventData as cS, SubTaskAskUserEventData as cU, MergePullRequestEventData as cW, MergePullRequestAck as cX, DeployAgentEventData as cZ, TaskMessageEventData as cb, TaskModelUsage as cd, TaskUsageReportEventData as cf, TaskState as cg, ShowModalEventData as ci, ChangeTaskTitleEventData as ck, TaskStateChangeEventData as cm, CreditExhaustedEventData as co, RtcIceServer as cq, RtcIceServersRequestEventData as cs, RtcIceServersResponseEventData as cu, MachineRtcRequestEventData as cw, MachineRtcResponseEventData as cy, TaskUsageSummary as d, HookFactory as d$, HivePublishEventData as d1, HivePublishCompleteEventData as d3, HiveInstallEventData as d5, HiveInstallCompleteEventData as d7, EventData as dA, SeqSyncRequestEventData as dC, SeqSyncResponseEventData as dE, EventMap as dF, EventName as dG, WorkerTaskEvent as dI, RpcCallEventData as dL, MachineRpcCallEventData as dN, RpcResponseData as dP, AgentContext as dQ, AgentrixContext as dR, FrameworkType as dU, AgentMetadata as dV, ClaudeAgentConfig as dW, AgentConfig as dX, ValidationResult as dY, LoadAgentOptions as dZ, RepositoryInitHookInput as d_, UpdateAgentInfoEventData as da, AssociateRepoEventData as db, SystemMessageType as dc, PrStateChangedData as dd, SystemMessageEventData as df, DaemonGitlabOperation as dh, DaemonGitlabRequestEventData as dj, DaemonGitlabResponseEventData as dl, RepositoryInboxWebhookEventData as dp, CompanionHeartbeatRequestData as dr, CompanionHeartbeatResponseData as dt, CompanionInitRequestData as dv, CompanionInitResponseData as dx, ResetTaskSessionEventData as dz, StartTaskRequest as e, StartTaskResponse as g, EnsureIssueRootTaskRequest as h, TaskItem as j, EnsureIssueRootTaskResponse as l, ListTasksRequest as m, ListTasksResponse as p, ResumeTaskRequest as q, ResumeTaskResponse as u, CancelTaskRequest as v, CancelTaskResponse as z };
|
package/dist/index.cjs
CHANGED
|
@@ -220,6 +220,15 @@ const TaskTodoSchema = zod.z.object({
|
|
|
220
220
|
title: zod.z.string().min(1).max(200),
|
|
221
221
|
instructions: zod.z.string()
|
|
222
222
|
});
|
|
223
|
+
const TaskUsageSummarySchema = zod.z.object({
|
|
224
|
+
inputTokens: zod.z.number().int().nonnegative(),
|
|
225
|
+
outputTokens: zod.z.number().int().nonnegative(),
|
|
226
|
+
cacheReadInputTokens: zod.z.number().int().nonnegative(),
|
|
227
|
+
cacheCreationInputTokens: zod.z.number().int().nonnegative(),
|
|
228
|
+
webSearchRequests: zod.z.number().int().nonnegative(),
|
|
229
|
+
totalTokens: zod.z.number().int().nonnegative(),
|
|
230
|
+
models: zod.z.array(zod.z.string())
|
|
231
|
+
});
|
|
223
232
|
const StartTaskRequestSchema = zod.z.object({
|
|
224
233
|
chatId: zod.z.string(),
|
|
225
234
|
customTitle: zod.z.string().min(1).max(200).optional(),
|
|
@@ -241,6 +250,8 @@ const StartTaskRequestSchema = zod.z.object({
|
|
|
241
250
|
// For local mode: specific machine
|
|
242
251
|
cloudId: zod.z.string().optional(),
|
|
243
252
|
// For cloud mode: cloud ID
|
|
253
|
+
model: zod.z.string().min(1).optional(),
|
|
254
|
+
// Optional model selected for this task
|
|
244
255
|
repositoryId: zod.z.string().optional(),
|
|
245
256
|
baseBranch: zod.z.string().optional(),
|
|
246
257
|
// Base branch for the repository
|
|
@@ -296,6 +307,7 @@ const StartTaskResponseSchema = zod.z.object({
|
|
|
296
307
|
state: zod.z.string(),
|
|
297
308
|
machineId: zod.z.string().nullable(),
|
|
298
309
|
cloudId: zod.z.string().nullable(),
|
|
310
|
+
model: zod.z.string().nullable().optional(),
|
|
299
311
|
repositoryId: zod.z.string().nullable(),
|
|
300
312
|
baseBranch: zod.z.string().nullable(),
|
|
301
313
|
workerExecutionMode: WorkerExecutionModeSchema,
|
|
@@ -327,6 +339,7 @@ const TaskItemSchema = zod.z.object({
|
|
|
327
339
|
agentId: zod.z.string(),
|
|
328
340
|
machineId: zod.z.string().nullable(),
|
|
329
341
|
cloudId: zod.z.string().nullable(),
|
|
342
|
+
model: zod.z.string().nullable().optional(),
|
|
330
343
|
repositoryId: zod.z.string().nullable(),
|
|
331
344
|
baseBranch: zod.z.string().nullable(),
|
|
332
345
|
branchName: zod.z.string().nullable(),
|
|
@@ -360,6 +373,7 @@ const TaskItemSchema = zod.z.object({
|
|
|
360
373
|
totalDeletions: zod.z.number(),
|
|
361
374
|
files: zod.z.array(FileStatsSchema)
|
|
362
375
|
}).nullable(),
|
|
376
|
+
usageSummary: TaskUsageSummarySchema.nullable(),
|
|
363
377
|
totalDuration: zod.z.number().nullable(),
|
|
364
378
|
// Cumulative execution time (milliseconds)
|
|
365
379
|
// Multi-agent collaboration fields
|
|
@@ -973,6 +987,10 @@ const SyncMachineModelsRequestSchema = zod.z.object({
|
|
|
973
987
|
const SyncMachineModelsResponseSchema = zod.z.object({
|
|
974
988
|
success: zod.z.literal(true)
|
|
975
989
|
});
|
|
990
|
+
const ListMachineModelsResponseSchema = zod.z.object({
|
|
991
|
+
models: zod.z.array(zod.z.string()),
|
|
992
|
+
defaultModel: zod.z.string().nullable().optional()
|
|
993
|
+
});
|
|
976
994
|
const ValidateMachineResponseSchema = zod.z.object({
|
|
977
995
|
success: zod.z.literal(true),
|
|
978
996
|
machineId: zod.z.string().optional(),
|
|
@@ -1357,7 +1375,7 @@ const GitServerSchema = zod.z.object({
|
|
|
1357
1375
|
apiUrl: zod.z.string().url(),
|
|
1358
1376
|
oauthServerId: zod.z.string().nullable(),
|
|
1359
1377
|
ownerId: zod.z.string().nullable(),
|
|
1360
|
-
// null = public
|
|
1378
|
+
// null = shared/public Git server config, userId = private config
|
|
1361
1379
|
authModeDefault: zod.z.string().default("oauth"),
|
|
1362
1380
|
// "oauth" | "local_pat"
|
|
1363
1381
|
executionMode: zod.z.string().default("server"),
|
|
@@ -1631,6 +1649,7 @@ const CiRunGitSchema = zod.z.object({
|
|
|
1631
1649
|
sha: zod.z.string().optional(),
|
|
1632
1650
|
baseRef: zod.z.string().optional(),
|
|
1633
1651
|
headRef: zod.z.string().optional(),
|
|
1652
|
+
branchName: zod.z.string().optional(),
|
|
1634
1653
|
prNumber: zod.z.number().int().positive().optional(),
|
|
1635
1654
|
issueNumber: zod.z.number().int().positive().optional()
|
|
1636
1655
|
});
|
|
@@ -1972,6 +1991,13 @@ const RpcCallEventSchema = zod.z.object({
|
|
|
1972
1991
|
body: zod.z.any().optional()
|
|
1973
1992
|
// Request body for POST/PATCH/DELETE
|
|
1974
1993
|
});
|
|
1994
|
+
const MachineRpcCallEventSchema = zod.z.object({
|
|
1995
|
+
eventId: zod.z.string(),
|
|
1996
|
+
method: zod.z.enum(["GET", "POST", "PATCH", "DELETE"]),
|
|
1997
|
+
path: zod.z.string(),
|
|
1998
|
+
query: zod.z.record(zod.z.string(), zod.z.any()).optional(),
|
|
1999
|
+
body: zod.z.any().optional()
|
|
2000
|
+
});
|
|
1975
2001
|
const RpcResponseSchema = zod.z.object({
|
|
1976
2002
|
success: zod.z.boolean(),
|
|
1977
2003
|
status: zod.z.number().optional(),
|
|
@@ -2397,6 +2423,10 @@ const ChatWorkersStatusResponseSchema = EventBaseSchema.extend({
|
|
|
2397
2423
|
workers: zod.z.record(zod.z.string(), WorkerStatusSnapshotSchema)
|
|
2398
2424
|
// { taskId: { status, permissionMode } }
|
|
2399
2425
|
});
|
|
2426
|
+
const ListModelsEventSchema = EventBaseSchema.extend({
|
|
2427
|
+
machineId: zod.z.string(),
|
|
2428
|
+
agentType: zod.z.enum(["claude", "codex"]).optional()
|
|
2429
|
+
});
|
|
2400
2430
|
const baseTaskSchema = EventBaseSchema.extend({
|
|
2401
2431
|
taskId: zod.z.string(),
|
|
2402
2432
|
userId: zod.z.string(),
|
|
@@ -2557,6 +2587,18 @@ const TaskMessageSchema = EventBaseSchema.extend({
|
|
|
2557
2587
|
message: "Exactly one of message or encryptedMessage must be provided"
|
|
2558
2588
|
}
|
|
2559
2589
|
);
|
|
2590
|
+
const TaskModelUsageSchema = zod.z.object({
|
|
2591
|
+
inputTokens: zod.z.number().int().nonnegative().default(0),
|
|
2592
|
+
outputTokens: zod.z.number().int().nonnegative().default(0),
|
|
2593
|
+
cacheReadInputTokens: zod.z.number().int().nonnegative().default(0),
|
|
2594
|
+
cacheCreationInputTokens: zod.z.number().int().nonnegative().default(0),
|
|
2595
|
+
webSearchRequests: zod.z.number().int().nonnegative().default(0)
|
|
2596
|
+
});
|
|
2597
|
+
const TaskUsageReportEventSchema = EventBaseSchema.extend({
|
|
2598
|
+
taskId: zod.z.string(),
|
|
2599
|
+
resultEventId: zod.z.string(),
|
|
2600
|
+
modelUsage: zod.z.record(zod.z.string().min(1), TaskModelUsageSchema)
|
|
2601
|
+
});
|
|
2560
2602
|
const ShowModalEventDataSchema = EventBaseSchema.extend({
|
|
2561
2603
|
taskId: zod.z.string(),
|
|
2562
2604
|
chatId: zod.z.string().optional(),
|
|
@@ -2987,6 +3029,7 @@ const EventSchemaMap = {
|
|
|
2987
3029
|
"api-server-alive": ApiServerAliveEventSchema,
|
|
2988
3030
|
// Machine events
|
|
2989
3031
|
"machine-alive": MachineAliveEventSchema,
|
|
3032
|
+
"list-models": ListModelsEventSchema,
|
|
2990
3033
|
// Worker events
|
|
2991
3034
|
"worker-initializing": WorkerInitializingSchema,
|
|
2992
3035
|
"worker-initialized": WorkerInitializedSchema,
|
|
@@ -3005,6 +3048,7 @@ const EventSchemaMap = {
|
|
|
3005
3048
|
"cancel-task": cancelTaskSchema,
|
|
3006
3049
|
"stop-task": StopTaskSchema,
|
|
3007
3050
|
"task-message": TaskMessageSchema,
|
|
3051
|
+
"task-usage-report": TaskUsageReportEventSchema,
|
|
3008
3052
|
"change-task-title": ChangeTaskTitleEventSchema,
|
|
3009
3053
|
"task-state-change": TaskStateChangeEventSchema,
|
|
3010
3054
|
"update-task-agent-session-id": UpdateTaskAgentSessionIdEventSchema,
|
|
@@ -3047,6 +3091,7 @@ const EventSchemaMap = {
|
|
|
3047
3091
|
"workspace-file-response": WorkspaceFileResponseSchema,
|
|
3048
3092
|
// RPC events
|
|
3049
3093
|
"rpc-call": RpcCallEventSchema,
|
|
3094
|
+
"machine-rpc-call": MachineRpcCallEventSchema,
|
|
3050
3095
|
// Daemon Git provider events
|
|
3051
3096
|
"daemon-gitlab-request": DaemonGitlabRequestSchema,
|
|
3052
3097
|
"daemon-gitlab-response": DaemonGitlabResponseSchema,
|
|
@@ -3074,6 +3119,7 @@ const workerTaskEvents = [
|
|
|
3074
3119
|
"change-task-title",
|
|
3075
3120
|
"update-task-agent-session-id",
|
|
3076
3121
|
"task-slash-commands-update",
|
|
3122
|
+
"task-usage-report",
|
|
3077
3123
|
"reset-task-session",
|
|
3078
3124
|
"merge-request",
|
|
3079
3125
|
"merge-pr",
|
|
@@ -3751,7 +3797,9 @@ exports.ListFilesResponseSchema = ListFilesResponseSchema;
|
|
|
3751
3797
|
exports.ListGitServersResponseSchema = ListGitServersResponseSchema;
|
|
3752
3798
|
exports.ListIssuesQuerySchema = ListIssuesQuerySchema;
|
|
3753
3799
|
exports.ListIssuesResponseSchema = ListIssuesResponseSchema;
|
|
3800
|
+
exports.ListMachineModelsResponseSchema = ListMachineModelsResponseSchema;
|
|
3754
3801
|
exports.ListMachinesResponseSchema = ListMachinesResponseSchema;
|
|
3802
|
+
exports.ListModelsEventSchema = ListModelsEventSchema;
|
|
3755
3803
|
exports.ListOAuthServersPublicResponseSchema = ListOAuthServersPublicResponseSchema;
|
|
3756
3804
|
exports.ListOAuthServersQuerySchema = ListOAuthServersQuerySchema;
|
|
3757
3805
|
exports.ListOAuthServersResponseSchema = ListOAuthServersResponseSchema;
|
|
@@ -3782,6 +3830,7 @@ exports.MachineApprovalStatusQuerySchema = MachineApprovalStatusQuerySchema;
|
|
|
3782
3830
|
exports.MachineAuthAuthorizedResponseSchema = MachineAuthAuthorizedResponseSchema;
|
|
3783
3831
|
exports.MachineAuthRequestSchema = MachineAuthRequestSchema;
|
|
3784
3832
|
exports.MachineAuthResultQuerySchema = MachineAuthResultQuerySchema;
|
|
3833
|
+
exports.MachineRpcCallEventSchema = MachineRpcCallEventSchema;
|
|
3785
3834
|
exports.MachineRtcRequestSchema = MachineRtcRequestSchema;
|
|
3786
3835
|
exports.MachineRtcResponseSchema = MachineRtcResponseSchema;
|
|
3787
3836
|
exports.MachineUnbindRequestSchema = MachineUnbindRequestSchema;
|
|
@@ -3889,6 +3938,7 @@ exports.TaskArtifactsSummarySchema = TaskArtifactsSummarySchema;
|
|
|
3889
3938
|
exports.TaskInfoUpdateEventDataSchema = TaskInfoUpdateEventDataSchema;
|
|
3890
3939
|
exports.TaskItemSchema = TaskItemSchema;
|
|
3891
3940
|
exports.TaskMessageSchema = TaskMessageSchema;
|
|
3941
|
+
exports.TaskModelUsageSchema = TaskModelUsageSchema;
|
|
3892
3942
|
exports.TaskSharePermissionsSchema = TaskSharePermissionsSchema;
|
|
3893
3943
|
exports.TaskSlashCommandSchema = TaskSlashCommandSchema;
|
|
3894
3944
|
exports.TaskSlashCommandsUpdateEventDataSchema = TaskSlashCommandsUpdateEventDataSchema;
|
|
@@ -3896,6 +3946,8 @@ exports.TaskStateChangeEventSchema = TaskStateChangeEventSchema;
|
|
|
3896
3946
|
exports.TaskStoppedEventSchema = TaskStoppedEventSchema;
|
|
3897
3947
|
exports.TaskTodoSchema = TaskTodoSchema;
|
|
3898
3948
|
exports.TaskTransactionsResponseSchema = TaskTransactionsResponseSchema;
|
|
3949
|
+
exports.TaskUsageReportEventSchema = TaskUsageReportEventSchema;
|
|
3950
|
+
exports.TaskUsageSummarySchema = TaskUsageSummarySchema;
|
|
3899
3951
|
exports.ToggleApiKeyRequestSchema = ToggleApiKeyRequestSchema;
|
|
3900
3952
|
exports.ToggleOAuthServerRequestSchema = ToggleOAuthServerRequestSchema;
|
|
3901
3953
|
exports.ToggleOAuthServerResponseSchema = ToggleOAuthServerResponseSchema;
|
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 {
|
|
2
|
+
import { P as PreviewMetadata } from './errors-Cfur_d00.cjs';
|
|
3
|
+
export { bz as ActiveAgent, by as ActiveAgentSchema, dX as AgentConfig, e5 as AgentConfigValidationError, dQ as AgentContext, e3 as AgentError, e7 as AgentLoadError, dV as AgentMetadata, e1 as AgentMetadataSchema, e4 as AgentNotFoundError, dR as AgentrixContext, bl as ApiServerAliveEventData, bk as ApiServerAliveEventSchema, bj as AppAliveEventData, bi as AppAliveEventSchema, a8 as ApprovePrRequest, a7 as ApprovePrRequestSchema, aa as ApprovePrResponse, a9 as ApprovePrResponseSchema, ag as ArchiveTaskRequest, af as ArchiveTaskRequestSchema, ai as ArchiveTaskResponse, ah as ArchiveTaskResponseSchema, aX as AskUserMessage, aW as AskUserMessageSchema, aT as AskUserOption, aS as AskUserOptionSchema, aV as AskUserQuestion, aU as AskUserQuestionSchema, b1 as AskUserResponseMessage, b0 as AskUserResponseMessageSchema, a$ as AskUserResponseReason, aZ as AskUserResponseReasonSchema, a_ as AskUserResponseStatus, aY as AskUserResponseStatusSchema, db as AssociateRepoEventData, d8 as AssociateRepoEventDataSchema, b_ as CancelTaskEventData, v as CancelTaskRequest, C as CancelTaskRequestSchema, z as CancelTaskResponse, y as CancelTaskResponseSchema, ck as ChangeTaskTitleEventData, cj as ChangeTaskTitleEventSchema, bP as ChatWorkersStatusRequestEventData, bO as ChatWorkersStatusRequestSchema, bR as ChatWorkersStatusResponseEventData, bQ as ChatWorkersStatusResponseSchema, dW as ClaudeAgentConfig, e2 as ClaudeConfigSchema, b2 as CompanionHeartbeatMessage, dr as CompanionHeartbeatRequestData, dq as CompanionHeartbeatRequestSchema, dt as CompanionHeartbeatResponseData, ds as CompanionHeartbeatResponseSchema, dv as CompanionInitRequestData, du as CompanionInitRequestSchema, dx as CompanionInitResponseData, dw as CompanionInitResponseSchema, b3 as CompanionReminderMessage, a3 as CreateMergeRequestRequest, a6 as CreateMergeRequestResponse, a5 as CreateMergeRequestResponseSchema, a2 as CreateMergeRequestSchema, bW as CreateTaskEventData, ac as CreateTaskShareRequest, ae as CreateTaskShareResponse, ad as CreateTaskShareResponseSchema, ab as CreateTaskShareSchema, co as CreditExhaustedEventData, cn as CreditExhaustedEventSchema, D as DEFAULT_WORKER_EXECUTION_MODE, dh as DaemonGitlabOperation, dg as DaemonGitlabOperationSchema, dj as DaemonGitlabRequestEventData, di as DaemonGitlabRequestSchema, dl as DaemonGitlabResponseEventData, dk as DaemonGitlabResponseSchema, c$ as DeployAgentCompleteEventData, c_ as DeployAgentCompleteEventSchema, cZ as DeployAgentEventData, cY as DeployAgentEventSchema, h as EnsureIssueRootTaskRequest, E as EnsureIssueRootTaskRequestSchema, l as EnsureIssueRootTaskResponse, k as EnsureIssueRootTaskResponseSchema, bh as EventAckData, bg as EventAckSchema, dA as EventData, dF as EventMap, dG as EventName, dH as EventSchemaMap, e0 as FRAMEWORK_TYPES, a0 as FillEventsRequest, $ as FillEventsRequestSchema, a1 as FillEventsResponse, aP as FindTaskByAgentRequest, aO as FindTaskByAgentRequestSchema, aR as FindTaskByAgentResponse, aQ as FindTaskByAgentResponseSchema, e6 as FrameworkNotSupportedError, dU as FrameworkType, aB as GetTaskSessionResponse, aA as GetTaskSessionResponseSchema, d7 as HiveInstallCompleteEventData, d6 as HiveInstallCompleteEventSchema, d5 as HiveInstallEventData, d4 as HiveInstallEventSchema, d3 as HivePublishCompleteEventData, d2 as HivePublishCompleteEventSchema, d1 as HivePublishEventData, d0 as HivePublishEventSchema, d$ as HookFactory, bT as ListModelsEventData, bS as ListModelsEventSchema, aJ as ListRecentTasksRequest, aI as ListRecentTasksRequestSchema, aN as ListRecentTasksResponse, aM as ListRecentTasksResponseSchema, aD as ListSubTasksRequest, aC as ListSubTasksRequestSchema, aH as ListSubTasksResponse, aG as ListSubTasksResponseSchema, m as ListTasksRequest, L as ListTasksRequestSchema, p as ListTasksResponse, o as ListTasksResponseSchema, dZ as LoadAgentOptions, bn as MachineAliveEventData, bm as MachineAliveEventSchema, dN as MachineRpcCallEventData, dM as MachineRpcCallEventSchema, cw as MachineRtcRequestEventData, cv as MachineRtcRequestSchema, cy as MachineRtcResponseEventData, cx as MachineRtcResponseSchema, cX as MergePullRequestAck, cW as MergePullRequestEventData, cV as MergePullRequestEventSchema, cO as MergeRequestEventData, cN as MergeRequestEventSchema, e8 as MissingAgentFileError, J as PermissionResponseRequest, I as PermissionResponseRequestSchema, N as PermissionResponseResponse, M as PermissionResponseResponseSchema, dd as PrStateChangedData, c7 as PreviewMetadataSchema, c6 as PreviewMethod, c5 as PreviewMethodSchema, c4 as PreviewProjectType, c3 as PreviewProjectTypeSchema, V as ProjectDirectoryResponse, U as ProjectDirectoryResponseSchema, Q as ProjectEntry, O as ProjectEntrySchema, Y as QueryEventsRequest, X as QueryEventsRequestSchema, _ as QueryEventsResponse, aL as RecentTaskSummary, aK as RecentTaskSummarySchema, dm as RepositoryInboxProviderSchema, dp as RepositoryInboxWebhookEventData, dn as RepositoryInboxWebhookSchema, d_ as RepositoryInitHookInput, dz as ResetTaskSessionEventData, dy as ResetTaskSessionSchema, bY as ResumeTaskEventData, q as ResumeTaskRequest, R as ResumeTaskRequestSchema, u as ResumeTaskResponse, t as ResumeTaskResponseSchema, dL as RpcCallEventData, dK as RpcCallEventSchema, dP as RpcResponseData, dO as RpcResponseSchema, cq as RtcIceServer, cp as RtcIceServerSchema, cs as RtcIceServersRequestEventData, cr as RtcIceServersRequestSchema, cu as RtcIceServersResponseEventData, ct as RtcIceServersResponseSchema, cA as RtcSignalEventData, cz as RtcSignalSchema, ar as SendMessageTarget, at as SendTaskMessageRequest, as as SendTaskMessageRequestSchema, av as SendTaskMessageResponse, au as SendTaskMessageResponseSchema, dC as SeqSyncRequestEventData, dB as SeqSyncRequestEventDataSchema, dE as SeqSyncResponseEventData, dD as SeqSyncResponseEventDataSchema, ci as ShowModalEventData, ch as ShowModalEventDataSchema, ax as ShowModalRequest, aw as ShowModalRequestSchema, az as ShowModalResponse, ay as ShowModalResponseSchema, bp as ShutdownMachineData, bo as ShutdownMachineSchema, e as StartTaskRequest, S as StartTaskRequestSchema, g as StartTaskResponse, f as StartTaskResponseSchema, c0 as StopTaskEventData, B as StopTaskRequest, A as StopTaskRequestSchema, H as StopTaskResponse, G as StopTaskResponseSchema, b$ as StopTaskSchema, cU as SubTaskAskUserEventData, cT as SubTaskAskUserEventSchema, b4 as SubTaskAskUserMessage, cS as SubTaskResultUpdatedEventData, cR as SubTaskResultUpdatedEventSchema, aF as SubTaskSummary, aE as SubTaskSummarySchema, df as SystemMessageEventData, de as SystemMessageSchema, dc as SystemMessageType, b7 as TaskAgentInfo, b6 as TaskAgentInfoSchema, c2 as TaskArtifactsStats, c1 as TaskArtifactsStatsSchema, c9 as TaskArtifactsSummary, c8 as TaskArtifactsSummarySchema, Z as TaskEvent, cI as TaskInfoUpdateEventData, cH as TaskInfoUpdateEventDataSchema, j as TaskItem, i as TaskItemSchema, cb as TaskMessageEventData, b5 as TaskMessagePayload, ca as TaskMessageSchema, cd as TaskModelUsage, cc as TaskModelUsageSchema, cK as TaskSlashCommand, cJ as TaskSlashCommandSchema, cM as TaskSlashCommandsUpdateEventData, cL as TaskSlashCommandsUpdateEventDataSchema, cg as TaskState, cm as TaskStateChangeEventData, cl as TaskStateChangeEventSchema, cQ as TaskStoppedEventData, cP as TaskStoppedEventSchema, b as TaskTodo, T as TaskTodoSchema, cf as TaskUsageReportEventData, ce as TaskUsageReportEventSchema, d as TaskUsageSummary, c as TaskUsageSummarySchema, ak as UnarchiveTaskRequest, aj as UnarchiveTaskRequestSchema, am as UnarchiveTaskResponse, al as UnarchiveTaskResponseSchema, da as UpdateAgentInfoEventData, d9 as UpdateAgentInfoEventSchema, cG as UpdateTaskAgentSessionIdEventData, cF as UpdateTaskAgentSessionIdEventSchema, ao as UpdateTaskTitleRequest, an as UpdateTaskTitleRequestSchema, aq as UpdateTaskTitleResponse, ap as UpdateTaskTitleResponseSchema, dY as ValidationResult, bB as WorkerAliveEventData, bA as WorkerAliveEventSchema, W as WorkerExecutionMode, a as WorkerExecutionModeSchema, bD as WorkerExitEventData, bC as WorkerExitSchema, bt as WorkerInitializedEventData, bs as WorkerInitializedSchema, br as WorkerInitializingEventData, bq as WorkerInitializingSchema, bH as WorkerPermissionModeEventData, bG as WorkerPermissionModeSchema, bv as WorkerPermissionModeValue, bu as WorkerPermissionModeValueSchema, bx as WorkerReadyEventData, bw as WorkerReadySchema, bF as WorkerRunningEventData, bE as WorkerRunningSchema, bJ as WorkerStatusRequestEventData, bI as WorkerStatusRequestSchema, bN as WorkerStatusSnapshot, bM as WorkerStatusSnapshotSchema, bL as WorkerStatusValue, bK as WorkerStatusValueSchema, dI as WorkerTaskEvent, cC as WorkspaceFileRequestEventData, cB as WorkspaceFileRequestSchema, cE as WorkspaceFileResponseEventData, cD as WorkspaceFileResponseSchema, bU as baseTaskSchema, x as cancelTaskRequestSchema, bZ as cancelTaskSchema, bf as createEventId, a4 as createMergeRequestSchema, bV as createTaskSchema, dT as getAgentContext, b8 as isAskUserMessage, b9 as isAskUserResponseMessage, ba as isCompanionHeartbeatMessage, bb as isCompanionReminderMessage, bd as isSDKMessage, be as isSDKUserMessage, bc as isSubTaskAskUserMessage, n as normalizeWorkerExecutionMode, K as permissionResponseRequestSchema, r as resumeTaskRequestSchema, bX as resumeTaskSchema, dS as setAgentContext, s as startTaskSchema, F as stopTaskRequestSchema, w as workerExecutionModes, dJ as workerTaskEvents } from './errors-Cfur_d00.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,8 +56,8 @@ 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
59
|
human: "human";
|
|
60
|
+
system: "system";
|
|
61
61
|
agent: "agent";
|
|
62
62
|
}>;
|
|
63
63
|
type SenderType = z.infer<typeof SenderTypeSchema>;
|
|
@@ -715,6 +715,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
715
715
|
agentId: z.ZodString;
|
|
716
716
|
machineId: z.ZodNullable<z.ZodString>;
|
|
717
717
|
cloudId: z.ZodNullable<z.ZodString>;
|
|
718
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
718
719
|
repositoryId: z.ZodNullable<z.ZodString>;
|
|
719
720
|
baseBranch: z.ZodNullable<z.ZodString>;
|
|
720
721
|
branchName: z.ZodNullable<z.ZodString>;
|
|
@@ -753,6 +754,15 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
753
754
|
deletions: z.ZodNumber;
|
|
754
755
|
}, z.core.$strip>>;
|
|
755
756
|
}, z.core.$strip>>;
|
|
757
|
+
usageSummary: z.ZodNullable<z.ZodObject<{
|
|
758
|
+
inputTokens: z.ZodNumber;
|
|
759
|
+
outputTokens: z.ZodNumber;
|
|
760
|
+
cacheReadInputTokens: z.ZodNumber;
|
|
761
|
+
cacheCreationInputTokens: z.ZodNumber;
|
|
762
|
+
webSearchRequests: z.ZodNumber;
|
|
763
|
+
totalTokens: z.ZodNumber;
|
|
764
|
+
models: z.ZodArray<z.ZodString>;
|
|
765
|
+
}, z.core.$strip>>;
|
|
756
766
|
totalDuration: z.ZodNullable<z.ZodNumber>;
|
|
757
767
|
rootTaskId: z.ZodNullable<z.ZodString>;
|
|
758
768
|
parentTaskId: z.ZodNullable<z.ZodString>;
|
|
@@ -1358,9 +1368,9 @@ type CreateDraftAgentRequest = z.infer<typeof CreateDraftAgentRequestSchema>;
|
|
|
1358
1368
|
*/
|
|
1359
1369
|
declare const SetEnvironmentVariablesRequestSchema: z.ZodObject<{
|
|
1360
1370
|
ownerType: z.ZodEnum<{
|
|
1361
|
-
machine: "machine";
|
|
1362
1371
|
agent: "agent";
|
|
1363
1372
|
"draft-agent": "draft-agent";
|
|
1373
|
+
machine: "machine";
|
|
1364
1374
|
cloud: "cloud";
|
|
1365
1375
|
}>;
|
|
1366
1376
|
ownerId: z.ZodString;
|
|
@@ -1878,6 +1888,14 @@ declare const SyncMachineModelsResponseSchema: z.ZodObject<{
|
|
|
1878
1888
|
success: z.ZodLiteral<true>;
|
|
1879
1889
|
}, z.core.$strip>;
|
|
1880
1890
|
type SyncMachineModelsResponse = z.infer<typeof SyncMachineModelsResponseSchema>;
|
|
1891
|
+
/**
|
|
1892
|
+
* GET /v1/machines/:machineId/models - Response schema
|
|
1893
|
+
*/
|
|
1894
|
+
declare const ListMachineModelsResponseSchema: z.ZodObject<{
|
|
1895
|
+
models: z.ZodArray<z.ZodString>;
|
|
1896
|
+
defaultModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1897
|
+
}, z.core.$strip>;
|
|
1898
|
+
type ListMachineModelsResponse = z.infer<typeof ListMachineModelsResponseSchema>;
|
|
1881
1899
|
/**
|
|
1882
1900
|
* GET /v1/machines/validate - Response schema
|
|
1883
1901
|
*/
|
|
@@ -3683,12 +3701,12 @@ type CiProvider = z.infer<typeof CiProviderSchema>;
|
|
|
3683
3701
|
declare const JsonSchemaDocumentSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3684
3702
|
type JsonSchemaDocument = z.infer<typeof JsonSchemaDocumentSchema>;
|
|
3685
3703
|
declare const CiRunStatusSchema: z.ZodEnum<{
|
|
3686
|
-
timeout: "timeout";
|
|
3687
|
-
failed: "failed";
|
|
3688
3704
|
running: "running";
|
|
3705
|
+
failed: "failed";
|
|
3689
3706
|
completed: "completed";
|
|
3690
3707
|
queued: "queued";
|
|
3691
3708
|
canceled: "canceled";
|
|
3709
|
+
timeout: "timeout";
|
|
3692
3710
|
}>;
|
|
3693
3711
|
type CiRunStatus = z.infer<typeof CiRunStatusSchema>;
|
|
3694
3712
|
declare const CiRunRepoSchema: z.ZodObject<{
|
|
@@ -3703,6 +3721,7 @@ declare const CiRunGitSchema: z.ZodObject<{
|
|
|
3703
3721
|
sha: z.ZodOptional<z.ZodString>;
|
|
3704
3722
|
baseRef: z.ZodOptional<z.ZodString>;
|
|
3705
3723
|
headRef: z.ZodOptional<z.ZodString>;
|
|
3724
|
+
branchName: z.ZodOptional<z.ZodString>;
|
|
3706
3725
|
prNumber: z.ZodOptional<z.ZodNumber>;
|
|
3707
3726
|
issueNumber: z.ZodOptional<z.ZodNumber>;
|
|
3708
3727
|
}, z.core.$strip>;
|
|
@@ -3740,6 +3759,7 @@ declare const CreateCiRunRequestSchema: z.ZodObject<{
|
|
|
3740
3759
|
sha: z.ZodOptional<z.ZodString>;
|
|
3741
3760
|
baseRef: z.ZodOptional<z.ZodString>;
|
|
3742
3761
|
headRef: z.ZodOptional<z.ZodString>;
|
|
3762
|
+
branchName: z.ZodOptional<z.ZodString>;
|
|
3743
3763
|
prNumber: z.ZodOptional<z.ZodNumber>;
|
|
3744
3764
|
issueNumber: z.ZodOptional<z.ZodNumber>;
|
|
3745
3765
|
}, z.core.$strip>;
|
|
@@ -3764,8 +3784,8 @@ type CreateCiRunRequest = z.infer<typeof CreateCiRunRequestSchema>;
|
|
|
3764
3784
|
declare const CreateCiRunResponseSchema: z.ZodObject<{
|
|
3765
3785
|
runId: z.ZodString;
|
|
3766
3786
|
status: z.ZodEnum<{
|
|
3767
|
-
failed: "failed";
|
|
3768
3787
|
running: "running";
|
|
3788
|
+
failed: "failed";
|
|
3769
3789
|
completed: "completed";
|
|
3770
3790
|
queued: "queued";
|
|
3771
3791
|
}>;
|
|
@@ -3775,12 +3795,12 @@ type CreateCiRunResponse = z.infer<typeof CreateCiRunResponseSchema>;
|
|
|
3775
3795
|
declare const CiRunStatusResponseSchema: z.ZodObject<{
|
|
3776
3796
|
runId: z.ZodString;
|
|
3777
3797
|
status: z.ZodEnum<{
|
|
3778
|
-
timeout: "timeout";
|
|
3779
|
-
failed: "failed";
|
|
3780
3798
|
running: "running";
|
|
3799
|
+
failed: "failed";
|
|
3781
3800
|
completed: "completed";
|
|
3782
3801
|
queued: "queued";
|
|
3783
3802
|
canceled: "canceled";
|
|
3803
|
+
timeout: "timeout";
|
|
3784
3804
|
}>;
|
|
3785
3805
|
result: z.ZodString;
|
|
3786
3806
|
structuredOutput: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -4027,8 +4047,8 @@ declare const HiveListingTypeSchema: z.ZodEnum<{
|
|
|
4027
4047
|
}>;
|
|
4028
4048
|
type HiveListingType = z.infer<typeof HiveListingTypeSchema>;
|
|
4029
4049
|
declare const HiveAuthorTypeSchema: z.ZodEnum<{
|
|
4030
|
-
user: "user";
|
|
4031
4050
|
agent: "agent";
|
|
4051
|
+
user: "user";
|
|
4032
4052
|
}>;
|
|
4033
4053
|
type HiveAuthorType = z.infer<typeof HiveAuthorTypeSchema>;
|
|
4034
4054
|
declare const HiveListingStatusSchema: z.ZodEnum<{
|
|
@@ -4058,8 +4078,8 @@ declare const HiveListingSchema: z.ZodObject<{
|
|
|
4058
4078
|
version: z.ZodString;
|
|
4059
4079
|
avatar: z.ZodNullable<z.ZodString>;
|
|
4060
4080
|
authorType: z.ZodEnum<{
|
|
4061
|
-
user: "user";
|
|
4062
4081
|
agent: "agent";
|
|
4082
|
+
user: "user";
|
|
4063
4083
|
}>;
|
|
4064
4084
|
authorId: z.ZodString;
|
|
4065
4085
|
authorName: z.ZodString;
|
|
@@ -4099,8 +4119,8 @@ declare const PublishToHiveRequestSchema: z.ZodObject<{
|
|
|
4099
4119
|
category: z.ZodOptional<z.ZodString>;
|
|
4100
4120
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4101
4121
|
authorType: z.ZodEnum<{
|
|
4102
|
-
user: "user";
|
|
4103
4122
|
agent: "agent";
|
|
4123
|
+
user: "user";
|
|
4104
4124
|
}>;
|
|
4105
4125
|
authorId: z.ZodString;
|
|
4106
4126
|
machineId: z.ZodOptional<z.ZodString>;
|
|
@@ -4145,8 +4165,8 @@ declare const HiveListResponseSchema: z.ZodObject<{
|
|
|
4145
4165
|
version: z.ZodString;
|
|
4146
4166
|
avatar: z.ZodNullable<z.ZodString>;
|
|
4147
4167
|
authorType: z.ZodEnum<{
|
|
4148
|
-
user: "user";
|
|
4149
4168
|
agent: "agent";
|
|
4169
|
+
user: "user";
|
|
4150
4170
|
}>;
|
|
4151
4171
|
authorId: z.ZodString;
|
|
4152
4172
|
authorName: z.ZodString;
|
|
@@ -4226,8 +4246,8 @@ declare const HiveReviewSchema: z.ZodObject<{
|
|
|
4226
4246
|
id: z.ZodString;
|
|
4227
4247
|
hiveListingId: z.ZodString;
|
|
4228
4248
|
authorType: z.ZodEnum<{
|
|
4229
|
-
user: "user";
|
|
4230
4249
|
agent: "agent";
|
|
4250
|
+
user: "user";
|
|
4231
4251
|
}>;
|
|
4232
4252
|
authorId: z.ZodString;
|
|
4233
4253
|
authorName: z.ZodString;
|
|
@@ -4253,8 +4273,8 @@ declare const HiveReviewListResponseSchema: z.ZodObject<{
|
|
|
4253
4273
|
id: z.ZodString;
|
|
4254
4274
|
hiveListingId: z.ZodString;
|
|
4255
4275
|
authorType: z.ZodEnum<{
|
|
4256
|
-
user: "user";
|
|
4257
4276
|
agent: "agent";
|
|
4277
|
+
user: "user";
|
|
4258
4278
|
}>;
|
|
4259
4279
|
authorId: z.ZodString;
|
|
4260
4280
|
authorName: z.ZodString;
|
|
@@ -4274,8 +4294,8 @@ declare const HiveCommentSchema: z.ZodObject<{
|
|
|
4274
4294
|
hiveListingId: z.ZodString;
|
|
4275
4295
|
parentId: z.ZodNullable<z.ZodString>;
|
|
4276
4296
|
authorType: z.ZodEnum<{
|
|
4277
|
-
user: "user";
|
|
4278
4297
|
agent: "agent";
|
|
4298
|
+
user: "user";
|
|
4279
4299
|
}>;
|
|
4280
4300
|
authorId: z.ZodString;
|
|
4281
4301
|
authorName: z.ZodString;
|
|
@@ -4300,8 +4320,8 @@ declare const HiveCommentListResponseSchema: z.ZodObject<{
|
|
|
4300
4320
|
hiveListingId: z.ZodString;
|
|
4301
4321
|
parentId: z.ZodNullable<z.ZodString>;
|
|
4302
4322
|
authorType: z.ZodEnum<{
|
|
4303
|
-
user: "user";
|
|
4304
4323
|
agent: "agent";
|
|
4324
|
+
user: "user";
|
|
4305
4325
|
}>;
|
|
4306
4326
|
authorId: z.ZodString;
|
|
4307
4327
|
authorName: z.ZodString;
|
|
@@ -4341,8 +4361,8 @@ declare const HiveInstalledItemSchema: z.ZodObject<{
|
|
|
4341
4361
|
version: z.ZodString;
|
|
4342
4362
|
avatar: z.ZodNullable<z.ZodString>;
|
|
4343
4363
|
authorType: z.ZodEnum<{
|
|
4344
|
-
user: "user";
|
|
4345
4364
|
agent: "agent";
|
|
4365
|
+
user: "user";
|
|
4346
4366
|
}>;
|
|
4347
4367
|
authorId: z.ZodString;
|
|
4348
4368
|
authorName: z.ZodString;
|
|
@@ -4396,8 +4416,8 @@ declare const HiveInstalledResponseSchema: z.ZodObject<{
|
|
|
4396
4416
|
version: z.ZodString;
|
|
4397
4417
|
avatar: z.ZodNullable<z.ZodString>;
|
|
4398
4418
|
authorType: z.ZodEnum<{
|
|
4399
|
-
user: "user";
|
|
4400
4419
|
agent: "agent";
|
|
4420
|
+
user: "user";
|
|
4401
4421
|
}>;
|
|
4402
4422
|
authorId: z.ZodString;
|
|
4403
4423
|
authorName: z.ZodString;
|
|
@@ -4439,8 +4459,8 @@ declare const HiveMyListingsResponseSchema: z.ZodObject<{
|
|
|
4439
4459
|
version: z.ZodString;
|
|
4440
4460
|
avatar: z.ZodNullable<z.ZodString>;
|
|
4441
4461
|
authorType: z.ZodEnum<{
|
|
4442
|
-
user: "user";
|
|
4443
4462
|
agent: "agent";
|
|
4463
|
+
user: "user";
|
|
4444
4464
|
}>;
|
|
4445
4465
|
authorId: z.ZodString;
|
|
4446
4466
|
authorName: z.ZodString;
|
|
@@ -4726,5 +4746,5 @@ declare function detectPreview(fs: FileSystemAdapter): Promise<PreviewMetadata |
|
|
|
4726
4746
|
*/
|
|
4727
4747
|
declare function decodeGitPath(rawPath: string): string;
|
|
4728
4748
|
|
|
4729
|
-
export { AcceptPrivateCloudInviteRequestSchema, AcceptPrivateCloudInviteResponseSchema, AddChatMemberRequestSchema, AddChatMemberResponseSchema, AdminResourceItemSchema, AgentCustomConfigSchema, AgentPermissionsSchema, AgentSchema, AgentTypeSchema, ApiErrorSchema, ApiKeySchema, ApprovalStatusResponseSchema, BillingStatsResponseSchema, BranchSchema, CONFIG_FILES, CancelCiRunResponseSchema, CancelSubscriptionResponseSchema, ChargeTransactionSchema, ChatMemberInputSchema, ChatMemberSchema, ChatSchema, ChatTypeSchema, ChatWithMembersSchema, CiProviderSchema, CiRunContextSchema, CiRunExecutionSchema, CiRunGitSchema, CiRunRepoSchema, CiRunStatusResponseSchema, CiRunStatusSchema, CloudJoinApprovalRequestSchema, CloudJoinRequestSchema, CloudJoinResultQuerySchema, CloudJoinStatusQuerySchema, CloudMachineSchema, CloudSchema, CompanionEnsureResponseSchema, CompanionWorkspaceFileSchema, ConfirmUploadRequestSchema, ConfirmUploadResponseSchema, ConsumeTransactionSchema, ContactCandidateSchema, ContactSchema, ContactTargetTypeSchema, CreateAgentRequestSchema, CreateAgentResponseSchema, CreateApiKeyRequestSchema, CreateApiKeyResponseSchema, CreateChatRequestSchema, CreateChatResponseSchema, CreateCheckoutRequestSchema, CreateCheckoutResponseSchema, CreateCiRunRequestSchema, CreateCiRunResponseSchema, CreateCloudRequestSchema, CreateCloudResponseSchema, CreateContactRequestSchema, CreateContactResponseSchema, CreateDirectRechargeCheckoutRequestSchema, CreateDirectRechargeCheckoutResponseSchema, CreateDraftAgentRequestSchema, CreateHiveCommentRequestSchema, CreateHiveReviewRequestSchema, CreateOAuthServerRequestSchema, CreateOAuthServerResponseSchema, CreatePortalRequestSchema, CreatePortalResponseSchema, CreatePrivateCloudInviteRequestSchema, CreatePrivateCloudInviteResponseSchema, CreatePrivateCloudRequestSchema, CreatePrivateCloudResponseSchema, CreateResourceRequestSchema, CreateSubscriptionPlanRequestSchema, CreditsBucketSchema, CreditsPackageSchema, DateSchema, DeleteAgentResponseSchema, DeleteApiKeyResponseSchema, DeleteContactResponseSchema, DeleteOAuthServerResponseSchema, DevCreateUserRequestSchema, DevCreateUserResponseSchema, DisplayConfigKeysSchema, DisplayConfigSchema, DraftAgentConfigSchema, DraftAgentSchema, ENTRY_FILE_PATTERNS, EnsureRepoChatRequestSchema, EnsureRepoChatResponseSchema, EnvironmentVariableSchema, FileItemSchema, FileStatsSchema, FileVisibilitySchema, GetAgentGitUrlResponseSchema, GetAgentResponseSchema, GetChatResponseSchema, GetEnvironmentVariablesResponseSchema, GetGitServerResponseSchema, GetGitUrlQuerySchema, GetGitUrlResponseSchema, GetInstallUrlResponseSchema, GetOAuthServerResponseSchema, GetPrivateCloudRunnerSecretResponseSchema, GetReferenceQuerySchema, GetRepositoryResponseSchema, GetSubscriptionResponseSchema, GetSubscriptionTiersResponseSchema, GetUploadUrlsRequestSchema, GetUploadUrlsResponseSchema, GetUserAgentsResponseSchema, GitHubIssueListItemSchema, GitHubIssueSchema, GitServerSchema, HiveAuthorTypeSchema, HiveCommentListResponseSchema, HiveCommentSchema, HiveInstallRequestSchema, HiveInstallResponseSchema, HiveInstallSchema, HiveInstalledItemSchema, HiveInstalledResponseSchema, HiveListQuerySchema, HiveListResponseSchema, HiveListingSchema, HiveListingStatusSchema, HiveListingTypeSchema, HiveMyListingsResponseSchema, HiveReviewListResponseSchema, HiveReviewSchema, HiveSortSchema, IGNORED_DIRECTORIES, IdSchema, JsonSchemaDocumentSchema, ListAdminResourcesResponseSchema, ListAgentsResponseSchema, ListApiKeysQuerySchema, ListApiKeysResponseSchema, ListBranchesResponseSchema, ListChatMembersResponseSchema, ListChatTasksResponseSchema, ListChatsQuerySchema, ListChatsResponseSchema, ListContactsResponseSchema, ListFilesQuerySchema, ListFilesResponseSchema, ListGitServersResponseSchema, ListIssuesQuerySchema, ListIssuesResponseSchema, ListMachinesResponseSchema, ListOAuthServersPublicResponseSchema, ListOAuthServersQuerySchema, ListOAuthServersResponseSchema, ListPackagesQuerySchema, ListPackagesResponseSchema, ListPrivateCloudMembersResponseSchema, ListPrivateCloudsResponseSchema, ListPublicResourcesQuerySchema, ListPublicResourcesResponseSchema, ListReferencesQuerySchema, ListReferencesResponseSchema, ListRepositoriesResponseSchema, ListSubscriptionPlansResponseSchema, ListTransactionsQuerySchema, ListTransactionsResponseSchema, ListUserInboxResponseSchema, LocalMachineSchema, LogoutResponseSchema, MachineApprovalRequestSchema, MachineApprovalStatusQuerySchema, MachineAuthAuthorizedResponseSchema, MachineAuthRequestSchema, MachineAuthResultQuerySchema, MachineUnbindRequestSchema, MachineUnbindResponseSchema, OAuthAccountInfoSchema, OAuthBindCallbackResponseSchema, OAuthBindQuerySchema, OAuthBindResponseSchema, OAuthCallbackQuerySchema, OAuthCallbackResponseSchema, OAuthLoginQuerySchema, OAuthServerPublicSchema, OAuthServerSchema, OAuthUnbindResponseSchema, PaginatedResponseSchema, PreviewMetadata, PrivateCloudEntitlementSchema, PrivateCloudInviteSchema, PrivateCloudMemberSchema, PrivateCloudSummarySchema, PublicResourceItemSchema, PublishDraftAgentRequestSchema, PublishDraftAgentResponseSchema, PublishToHiveRequestSchema, PublishToHiveResponseSchema, RELEVANT_DEPENDENCIES, RTC_CHUNK_HEADER_SIZE, RechargeResponseSchema, RegisterCompanionRequestSchema, RegisterCompanionResponseSchema, RemoveChatMemberRequestSchema, RemovePrivateCloudMemberResponseSchema, RepositoryActorIdentitySchema, RepositoryReferenceCommentSchema, RepositoryReferenceCommentsResponseSchema, RepositoryReferenceDiffSchema, RepositoryReferenceKindSchema, RepositoryReferenceListItemSchema, RepositoryReferenceSchema, RepositorySchema, ResetSecretRequestSchema, ResetSecretResponseSchema, ResolveUserInboxItemResponseSchema, ResourceMetadataSchema, RtcChunkFlags, STATIC_FILE_EXTENSIONS, SearchContactCandidatesQuerySchema, SearchContactCandidatesResponseSchema, SenderTypeSchema, SetEnvironmentVariablesRequestSchema, ShareAuthQuerySchema, ShareAuthResponseSchema, SimpleSuccessSchema, StatsQuerySchema, StripeCheckoutClientSchema, SubscriptionPlanSchema, SubscriptionSchema, SubscriptionTierSchema, SyncCloudMachineResponseSchema, SyncLocalMachineResponseSchema, SyncMachineModelsRequestSchema, SyncMachineModelsResponseSchema, SyncMachineRequestSchema, TaskSharePermissionsSchema, TaskTransactionsResponseSchema, ToggleApiKeyRequestSchema, ToggleOAuthServerRequestSchema, ToggleOAuthServerResponseSchema, TransactionSchema, UpdateAgentRequestSchema, UpdateAgentResponseSchema, UpdateApiKeyRequestSchema, UpdateDraftAgentRequestSchema, UpdateDraftAgentResponseSchema, UpdateHiveCommentRequestSchema, UpdateHiveListingRequestSchema, UpdateHiveReviewRequestSchema, UpdateHiveVersionRequestSchema, UpdateOAuthServerRequestSchema, UpdateOAuthServerResponseSchema, UpdateResourceRequestSchema, UpdateSecretRequestSchema, UpdateSecretResponseSchema, UpdateSubscriptionPlanRequestSchema, UpdateSubscriptionRequestSchema, UpdateSubscriptionResponseSchema, UpdateUserProfileRequestSchema, UpdateUserProfileResponseSchema, UploadUrlResultSchema, UserBalanceResponseSchema, UserBasicInfoSchema, UserInboxItemSchema, UserInboxStatusSchema, UserInboxSubjectTypeSchema, UserProfileResponseSchema, UserWithOAuthAccountsSchema, ValidateMachineResponseSchema, buildRtcChunkFrame, createKeyPair, createKeyPairWithUit8Array, createTaskEncryptionPayload, decodeBase64, decodeGitPath, decodeRtcChunkHeader, decryptAES, decryptFileContent, decryptMachineEncryptionKey, decryptSdkMessage, decryptWithEphemeralKey, detectPreview, encodeBase64, encodeBase64Url, encodeRtcChunkHeader, encryptAES, encryptFileContent, encryptMachineEncryptionKey, encryptSdkMessage, encryptWithEphemeralKey, generateAESKey, generateAESKeyBase64, getRandomBytes, machineAuth, splitRtcChunkFrame, userAuth, workerAuth };
|
|
4730
|
-
export type { AcceptPrivateCloudInviteRequest, AcceptPrivateCloudInviteResponse, AddChatMemberRequest, AddChatMemberResponse, AdminResourceItem, Agent, AgentCustomConfig, AgentPermissions, AgentType, ApiError, ApiKey, ApprovalStatusResponse, AuthPayload, BillingStatsResponse, Branch, CancelCiRunResponse, CancelSubscriptionResponse, ChargeTransaction, Chat, ChatMember, ChatMemberInput, ChatType, ChatWithMembers, CiProvider, CiRunContext, CiRunExecution, CiRunGit, CiRunRepo, CiRunStatus, CiRunStatusResponse, ClientType, Cloud, CloudJoinApprovalRequest, CloudJoinRequest, CloudJoinResultQuery, CloudJoinStatusQuery, CloudMachine, CompanionEnsureResponse, CompanionWorkspaceFile, ConfirmUploadRequest, ConfirmUploadResponse, ConsumeTransaction, Contact, ContactCandidate, ContactTargetType, CreateAgentRequest, CreateAgentResponse, CreateApiKeyRequest, CreateApiKeyResponse, CreateChatRequest, CreateChatResponse, CreateCheckoutRequest, CreateCheckoutResponse, CreateCiRunRequest, CreateCiRunResponse, CreateCloudRequest, CreateCloudResponse, CreateContactRequest, CreateContactResponse, CreateDirectRechargeCheckoutRequest, CreateDirectRechargeCheckoutResponse, CreateDraftAgentRequest, CreateHiveCommentRequest, CreateHiveReviewRequest, CreateOAuthServerRequest, CreateOAuthServerResponse, CreatePortalRequest, CreatePortalResponse, CreatePrivateCloudInviteRequest, CreatePrivateCloudInviteResponse, CreatePrivateCloudRequest, CreatePrivateCloudResponse, CreateResourceRequest, CreateSubscriptionPlanRequest, CreditsBucket, CreditsPackage, DeleteAgentResponse, DeleteApiKeyResponse, DeleteContactResponse, DeleteOAuthServerResponse, DevCreateUserRequest, DevCreateUserResponse, DisplayConfig, DisplayConfigKeys, DraftAgent, DraftAgentConfig, EnsureRepoChatRequest, EnsureRepoChatResponse, EnvironmentVariable, FileItem, FileStats, FileSystemAdapter, FileVisibility, GetAgentGitUrlResponse, GetAgentResponse, GetChatResponse, GetEnvironmentVariablesResponse, GetGitServerResponse, GetGitUrlQuery, GetGitUrlResponse, GetInstallUrlResponse, GetOAuthServerResponse, GetPrivateCloudRunnerSecretResponse, GetReferenceQuery, GetRepositoryResponse, GetSubscriptionResponse, GetSubscriptionTiersResponse, GetUploadUrlsRequest, GetUploadUrlsResponse, GetUserAgentsResponse, GitHubIssue, GitHubIssueListItem, GitServer, HiveAuthorType, HiveComment, HiveCommentListResponse, HiveInstall, HiveInstallRequest, HiveInstallResponse, HiveInstalledItem, HiveInstalledResponse, HiveListQuery, HiveListResponse, HiveListing, HiveListingStatus, HiveListingType, HiveMyListingsResponse, HiveReview, HiveReviewListResponse, HiveSort, JsonSchemaDocument, ListAdminResourcesResponse, ListAgentsResponse, ListApiKeysQuery, ListApiKeysResponse, ListBranchesResponse, ListChatMembersResponse, ListChatTasksResponse, ListChatsQuery, ListChatsResponse, ListContactsResponse, ListFilesQuery, ListFilesResponse, ListGitServersResponse, ListIssuesQuery, ListIssuesResponse, ListMachinesResponse, ListOAuthServersPublicResponse, ListOAuthServersQuery, ListOAuthServersResponse, ListPackagesQuery, ListPackagesResponse, ListPrivateCloudMembersResponse, ListPrivateCloudsResponse, ListPublicResourcesQuery, ListPublicResourcesResponse, ListReferencesQuery, ListReferencesResponse, ListRepositoriesResponse, ListSubscriptionPlansResponse, ListTransactionsQuery, ListTransactionsResponse, ListUserInboxResponse, LocalMachine, LogoutResponse, MachineApprovalRequest, MachineApprovalStatusQuery, MachineAuthAuthorizedResponse, MachineAuthRequest, MachineAuthResultQuery, MachineEncryptionKey, MachineUnbindRequest, MachineUnbindResponse, OAuthAccountInfo, OAuthBindCallbackResponse, OAuthBindQuery, OAuthBindResponse, OAuthCallbackQuery, OAuthCallbackResponse, OAuthLoginQuery, OAuthServer, OAuthServerPublic, OAuthUnbindResponse, PrivateCloudEntitlement, PrivateCloudInvite, PrivateCloudMember, PrivateCloudSummary, PublicResourceItem, PublishDraftAgentRequest, PublishDraftAgentResponse, PublishToHiveRequest, PublishToHiveResponse, RechargeResponse, RegisterCompanionRequest, RegisterCompanionResponse, RemoveChatMemberRequest, RemovePrivateCloudMemberResponse, Repository, RepositoryActorIdentity, RepositoryReference, RepositoryReferenceComment, RepositoryReferenceCommentsResponse, RepositoryReferenceDiff, RepositoryReferenceKind, RepositoryReferenceListItem, ResetSecretRequest, ResetSecretResponse, ResolveUserInboxItemResponse, ResourceMetadata, RtcChunkFrame, RtcChunkHeader, RtcControlChannel, RtcControlMessage, SearchContactCandidatesQuery, SearchContactCandidatesResponse, SenderType, SetEnvironmentVariablesRequest, ShareAuthQuery, ShareAuthResponse, SimpleSuccess, StatsQuery, StripeCheckoutClient, Subscription, SubscriptionPlan, SubscriptionTier, SyncCloudMachineResponse, SyncLocalMachineResponse, SyncMachineModelsRequest, SyncMachineModelsResponse, SyncMachineRequest, TaskEncryptionPayload, TaskSharePermissions, TaskTransactionsResponse, ToggleApiKeyRequest, ToggleOAuthServerRequest, ToggleOAuthServerResponse, Transaction, UpdateAgentRequest, UpdateAgentResponse, UpdateApiKeyRequest, UpdateDraftAgentRequest, UpdateDraftAgentResponse, UpdateHiveCommentRequest, UpdateHiveListingRequest, UpdateHiveReviewRequest, UpdateHiveVersionRequest, UpdateOAuthServerRequest, UpdateOAuthServerResponse, UpdateResourceRequest, UpdateSecretRequest, UpdateSecretResponse, UpdateSubscriptionPlanRequest, UpdateSubscriptionRequest, UpdateSubscriptionResponse, UpdateUserProfileRequest, UpdateUserProfileResponse, UploadUrlResult, UserBalanceResponse, UserBasicInfo, UserInboxItem, UserInboxStatus, UserInboxSubjectType, UserProfileResponse, UserWithOAuthAccounts, ValidateMachineResponse };
|
|
4749
|
+
export { AcceptPrivateCloudInviteRequestSchema, AcceptPrivateCloudInviteResponseSchema, AddChatMemberRequestSchema, AddChatMemberResponseSchema, AdminResourceItemSchema, AgentCustomConfigSchema, AgentPermissionsSchema, AgentSchema, AgentTypeSchema, ApiErrorSchema, ApiKeySchema, ApprovalStatusResponseSchema, BillingStatsResponseSchema, BranchSchema, CONFIG_FILES, CancelCiRunResponseSchema, CancelSubscriptionResponseSchema, ChargeTransactionSchema, ChatMemberInputSchema, ChatMemberSchema, ChatSchema, ChatTypeSchema, ChatWithMembersSchema, CiProviderSchema, CiRunContextSchema, CiRunExecutionSchema, CiRunGitSchema, CiRunRepoSchema, CiRunStatusResponseSchema, CiRunStatusSchema, CloudJoinApprovalRequestSchema, CloudJoinRequestSchema, CloudJoinResultQuerySchema, CloudJoinStatusQuerySchema, CloudMachineSchema, CloudSchema, CompanionEnsureResponseSchema, CompanionWorkspaceFileSchema, ConfirmUploadRequestSchema, ConfirmUploadResponseSchema, ConsumeTransactionSchema, ContactCandidateSchema, ContactSchema, ContactTargetTypeSchema, CreateAgentRequestSchema, CreateAgentResponseSchema, CreateApiKeyRequestSchema, CreateApiKeyResponseSchema, CreateChatRequestSchema, CreateChatResponseSchema, CreateCheckoutRequestSchema, CreateCheckoutResponseSchema, CreateCiRunRequestSchema, CreateCiRunResponseSchema, CreateCloudRequestSchema, CreateCloudResponseSchema, CreateContactRequestSchema, CreateContactResponseSchema, CreateDirectRechargeCheckoutRequestSchema, CreateDirectRechargeCheckoutResponseSchema, CreateDraftAgentRequestSchema, CreateHiveCommentRequestSchema, CreateHiveReviewRequestSchema, CreateOAuthServerRequestSchema, CreateOAuthServerResponseSchema, CreatePortalRequestSchema, CreatePortalResponseSchema, CreatePrivateCloudInviteRequestSchema, CreatePrivateCloudInviteResponseSchema, CreatePrivateCloudRequestSchema, CreatePrivateCloudResponseSchema, CreateResourceRequestSchema, CreateSubscriptionPlanRequestSchema, CreditsBucketSchema, CreditsPackageSchema, DateSchema, DeleteAgentResponseSchema, DeleteApiKeyResponseSchema, DeleteContactResponseSchema, DeleteOAuthServerResponseSchema, DevCreateUserRequestSchema, DevCreateUserResponseSchema, DisplayConfigKeysSchema, DisplayConfigSchema, DraftAgentConfigSchema, DraftAgentSchema, ENTRY_FILE_PATTERNS, EnsureRepoChatRequestSchema, EnsureRepoChatResponseSchema, EnvironmentVariableSchema, FileItemSchema, FileStatsSchema, FileVisibilitySchema, GetAgentGitUrlResponseSchema, GetAgentResponseSchema, GetChatResponseSchema, GetEnvironmentVariablesResponseSchema, GetGitServerResponseSchema, GetGitUrlQuerySchema, GetGitUrlResponseSchema, GetInstallUrlResponseSchema, GetOAuthServerResponseSchema, GetPrivateCloudRunnerSecretResponseSchema, GetReferenceQuerySchema, GetRepositoryResponseSchema, GetSubscriptionResponseSchema, GetSubscriptionTiersResponseSchema, GetUploadUrlsRequestSchema, GetUploadUrlsResponseSchema, GetUserAgentsResponseSchema, GitHubIssueListItemSchema, GitHubIssueSchema, GitServerSchema, HiveAuthorTypeSchema, HiveCommentListResponseSchema, HiveCommentSchema, HiveInstallRequestSchema, HiveInstallResponseSchema, HiveInstallSchema, HiveInstalledItemSchema, HiveInstalledResponseSchema, HiveListQuerySchema, HiveListResponseSchema, HiveListingSchema, HiveListingStatusSchema, HiveListingTypeSchema, HiveMyListingsResponseSchema, HiveReviewListResponseSchema, HiveReviewSchema, HiveSortSchema, IGNORED_DIRECTORIES, IdSchema, JsonSchemaDocumentSchema, ListAdminResourcesResponseSchema, ListAgentsResponseSchema, ListApiKeysQuerySchema, ListApiKeysResponseSchema, ListBranchesResponseSchema, ListChatMembersResponseSchema, ListChatTasksResponseSchema, ListChatsQuerySchema, ListChatsResponseSchema, ListContactsResponseSchema, ListFilesQuerySchema, ListFilesResponseSchema, ListGitServersResponseSchema, ListIssuesQuerySchema, ListIssuesResponseSchema, ListMachineModelsResponseSchema, ListMachinesResponseSchema, ListOAuthServersPublicResponseSchema, ListOAuthServersQuerySchema, ListOAuthServersResponseSchema, ListPackagesQuerySchema, ListPackagesResponseSchema, ListPrivateCloudMembersResponseSchema, ListPrivateCloudsResponseSchema, ListPublicResourcesQuerySchema, ListPublicResourcesResponseSchema, ListReferencesQuerySchema, ListReferencesResponseSchema, ListRepositoriesResponseSchema, ListSubscriptionPlansResponseSchema, ListTransactionsQuerySchema, ListTransactionsResponseSchema, ListUserInboxResponseSchema, LocalMachineSchema, LogoutResponseSchema, MachineApprovalRequestSchema, MachineApprovalStatusQuerySchema, MachineAuthAuthorizedResponseSchema, MachineAuthRequestSchema, MachineAuthResultQuerySchema, MachineUnbindRequestSchema, MachineUnbindResponseSchema, OAuthAccountInfoSchema, OAuthBindCallbackResponseSchema, OAuthBindQuerySchema, OAuthBindResponseSchema, OAuthCallbackQuerySchema, OAuthCallbackResponseSchema, OAuthLoginQuerySchema, OAuthServerPublicSchema, OAuthServerSchema, OAuthUnbindResponseSchema, PaginatedResponseSchema, PreviewMetadata, PrivateCloudEntitlementSchema, PrivateCloudInviteSchema, PrivateCloudMemberSchema, PrivateCloudSummarySchema, PublicResourceItemSchema, PublishDraftAgentRequestSchema, PublishDraftAgentResponseSchema, PublishToHiveRequestSchema, PublishToHiveResponseSchema, RELEVANT_DEPENDENCIES, RTC_CHUNK_HEADER_SIZE, RechargeResponseSchema, RegisterCompanionRequestSchema, RegisterCompanionResponseSchema, RemoveChatMemberRequestSchema, RemovePrivateCloudMemberResponseSchema, RepositoryActorIdentitySchema, RepositoryReferenceCommentSchema, RepositoryReferenceCommentsResponseSchema, RepositoryReferenceDiffSchema, RepositoryReferenceKindSchema, RepositoryReferenceListItemSchema, RepositoryReferenceSchema, RepositorySchema, ResetSecretRequestSchema, ResetSecretResponseSchema, ResolveUserInboxItemResponseSchema, ResourceMetadataSchema, RtcChunkFlags, STATIC_FILE_EXTENSIONS, SearchContactCandidatesQuerySchema, SearchContactCandidatesResponseSchema, SenderTypeSchema, SetEnvironmentVariablesRequestSchema, ShareAuthQuerySchema, ShareAuthResponseSchema, SimpleSuccessSchema, StatsQuerySchema, StripeCheckoutClientSchema, SubscriptionPlanSchema, SubscriptionSchema, SubscriptionTierSchema, SyncCloudMachineResponseSchema, SyncLocalMachineResponseSchema, SyncMachineModelsRequestSchema, SyncMachineModelsResponseSchema, SyncMachineRequestSchema, TaskSharePermissionsSchema, TaskTransactionsResponseSchema, ToggleApiKeyRequestSchema, ToggleOAuthServerRequestSchema, ToggleOAuthServerResponseSchema, TransactionSchema, UpdateAgentRequestSchema, UpdateAgentResponseSchema, UpdateApiKeyRequestSchema, UpdateDraftAgentRequestSchema, UpdateDraftAgentResponseSchema, UpdateHiveCommentRequestSchema, UpdateHiveListingRequestSchema, UpdateHiveReviewRequestSchema, UpdateHiveVersionRequestSchema, UpdateOAuthServerRequestSchema, UpdateOAuthServerResponseSchema, UpdateResourceRequestSchema, UpdateSecretRequestSchema, UpdateSecretResponseSchema, UpdateSubscriptionPlanRequestSchema, UpdateSubscriptionRequestSchema, UpdateSubscriptionResponseSchema, UpdateUserProfileRequestSchema, UpdateUserProfileResponseSchema, UploadUrlResultSchema, UserBalanceResponseSchema, UserBasicInfoSchema, UserInboxItemSchema, UserInboxStatusSchema, UserInboxSubjectTypeSchema, UserProfileResponseSchema, UserWithOAuthAccountsSchema, ValidateMachineResponseSchema, buildRtcChunkFrame, createKeyPair, createKeyPairWithUit8Array, createTaskEncryptionPayload, decodeBase64, decodeGitPath, decodeRtcChunkHeader, decryptAES, decryptFileContent, decryptMachineEncryptionKey, decryptSdkMessage, decryptWithEphemeralKey, detectPreview, encodeBase64, encodeBase64Url, encodeRtcChunkHeader, encryptAES, encryptFileContent, encryptMachineEncryptionKey, encryptSdkMessage, encryptWithEphemeralKey, generateAESKey, generateAESKeyBase64, getRandomBytes, machineAuth, splitRtcChunkFrame, userAuth, workerAuth };
|
|
4750
|
+
export type { AcceptPrivateCloudInviteRequest, AcceptPrivateCloudInviteResponse, AddChatMemberRequest, AddChatMemberResponse, AdminResourceItem, Agent, AgentCustomConfig, AgentPermissions, AgentType, ApiError, ApiKey, ApprovalStatusResponse, AuthPayload, BillingStatsResponse, Branch, CancelCiRunResponse, CancelSubscriptionResponse, ChargeTransaction, Chat, ChatMember, ChatMemberInput, ChatType, ChatWithMembers, CiProvider, CiRunContext, CiRunExecution, CiRunGit, CiRunRepo, CiRunStatus, CiRunStatusResponse, ClientType, Cloud, CloudJoinApprovalRequest, CloudJoinRequest, CloudJoinResultQuery, CloudJoinStatusQuery, CloudMachine, CompanionEnsureResponse, CompanionWorkspaceFile, ConfirmUploadRequest, ConfirmUploadResponse, ConsumeTransaction, Contact, ContactCandidate, ContactTargetType, CreateAgentRequest, CreateAgentResponse, CreateApiKeyRequest, CreateApiKeyResponse, CreateChatRequest, CreateChatResponse, CreateCheckoutRequest, CreateCheckoutResponse, CreateCiRunRequest, CreateCiRunResponse, CreateCloudRequest, CreateCloudResponse, CreateContactRequest, CreateContactResponse, CreateDirectRechargeCheckoutRequest, CreateDirectRechargeCheckoutResponse, CreateDraftAgentRequest, CreateHiveCommentRequest, CreateHiveReviewRequest, CreateOAuthServerRequest, CreateOAuthServerResponse, CreatePortalRequest, CreatePortalResponse, CreatePrivateCloudInviteRequest, CreatePrivateCloudInviteResponse, CreatePrivateCloudRequest, CreatePrivateCloudResponse, CreateResourceRequest, CreateSubscriptionPlanRequest, CreditsBucket, CreditsPackage, DeleteAgentResponse, DeleteApiKeyResponse, DeleteContactResponse, DeleteOAuthServerResponse, DevCreateUserRequest, DevCreateUserResponse, DisplayConfig, DisplayConfigKeys, DraftAgent, DraftAgentConfig, EnsureRepoChatRequest, EnsureRepoChatResponse, EnvironmentVariable, FileItem, FileStats, FileSystemAdapter, FileVisibility, GetAgentGitUrlResponse, GetAgentResponse, GetChatResponse, GetEnvironmentVariablesResponse, GetGitServerResponse, GetGitUrlQuery, GetGitUrlResponse, GetInstallUrlResponse, GetOAuthServerResponse, GetPrivateCloudRunnerSecretResponse, GetReferenceQuery, GetRepositoryResponse, GetSubscriptionResponse, GetSubscriptionTiersResponse, GetUploadUrlsRequest, GetUploadUrlsResponse, GetUserAgentsResponse, GitHubIssue, GitHubIssueListItem, GitServer, HiveAuthorType, HiveComment, HiveCommentListResponse, HiveInstall, HiveInstallRequest, HiveInstallResponse, HiveInstalledItem, HiveInstalledResponse, HiveListQuery, HiveListResponse, HiveListing, HiveListingStatus, HiveListingType, HiveMyListingsResponse, HiveReview, HiveReviewListResponse, HiveSort, JsonSchemaDocument, ListAdminResourcesResponse, ListAgentsResponse, ListApiKeysQuery, ListApiKeysResponse, ListBranchesResponse, ListChatMembersResponse, ListChatTasksResponse, ListChatsQuery, ListChatsResponse, ListContactsResponse, ListFilesQuery, ListFilesResponse, ListGitServersResponse, ListIssuesQuery, ListIssuesResponse, ListMachineModelsResponse, ListMachinesResponse, ListOAuthServersPublicResponse, ListOAuthServersQuery, ListOAuthServersResponse, ListPackagesQuery, ListPackagesResponse, ListPrivateCloudMembersResponse, ListPrivateCloudsResponse, ListPublicResourcesQuery, ListPublicResourcesResponse, ListReferencesQuery, ListReferencesResponse, ListRepositoriesResponse, ListSubscriptionPlansResponse, ListTransactionsQuery, ListTransactionsResponse, ListUserInboxResponse, LocalMachine, LogoutResponse, MachineApprovalRequest, MachineApprovalStatusQuery, MachineAuthAuthorizedResponse, MachineAuthRequest, MachineAuthResultQuery, MachineEncryptionKey, MachineUnbindRequest, MachineUnbindResponse, OAuthAccountInfo, OAuthBindCallbackResponse, OAuthBindQuery, OAuthBindResponse, OAuthCallbackQuery, OAuthCallbackResponse, OAuthLoginQuery, OAuthServer, OAuthServerPublic, OAuthUnbindResponse, PrivateCloudEntitlement, PrivateCloudInvite, PrivateCloudMember, PrivateCloudSummary, PublicResourceItem, PublishDraftAgentRequest, PublishDraftAgentResponse, PublishToHiveRequest, PublishToHiveResponse, RechargeResponse, RegisterCompanionRequest, RegisterCompanionResponse, RemoveChatMemberRequest, RemovePrivateCloudMemberResponse, Repository, RepositoryActorIdentity, RepositoryReference, RepositoryReferenceComment, RepositoryReferenceCommentsResponse, RepositoryReferenceDiff, RepositoryReferenceKind, RepositoryReferenceListItem, ResetSecretRequest, ResetSecretResponse, ResolveUserInboxItemResponse, ResourceMetadata, RtcChunkFrame, RtcChunkHeader, RtcControlChannel, RtcControlMessage, SearchContactCandidatesQuery, SearchContactCandidatesResponse, SenderType, SetEnvironmentVariablesRequest, ShareAuthQuery, ShareAuthResponse, SimpleSuccess, StatsQuery, StripeCheckoutClient, Subscription, SubscriptionPlan, SubscriptionTier, SyncCloudMachineResponse, SyncLocalMachineResponse, SyncMachineModelsRequest, SyncMachineModelsResponse, SyncMachineRequest, TaskEncryptionPayload, TaskSharePermissions, TaskTransactionsResponse, ToggleApiKeyRequest, ToggleOAuthServerRequest, ToggleOAuthServerResponse, Transaction, UpdateAgentRequest, UpdateAgentResponse, UpdateApiKeyRequest, UpdateDraftAgentRequest, UpdateDraftAgentResponse, UpdateHiveCommentRequest, UpdateHiveListingRequest, UpdateHiveReviewRequest, UpdateHiveVersionRequest, UpdateOAuthServerRequest, UpdateOAuthServerResponse, UpdateResourceRequest, UpdateSecretRequest, UpdateSecretResponse, UpdateSubscriptionPlanRequest, UpdateSubscriptionRequest, UpdateSubscriptionResponse, UpdateUserProfileRequest, UpdateUserProfileResponse, UploadUrlResult, UserBalanceResponse, UserBasicInfo, UserInboxItem, UserInboxStatus, UserInboxSubjectType, UserProfileResponse, UserWithOAuthAccounts, ValidateMachineResponse };
|
package/dist/node.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { dZ as LoadAgentOptions, dX as AgentConfig, dY as ValidationResult, dU as FrameworkType } from './errors-Cfur_d00.cjs';
|
|
2
|
+
export { e5 as AgentConfigValidationError, dQ as AgentContext, e3 as AgentError, e7 as AgentLoadError, dV as AgentMetadata, e1 as AgentMetadataSchema, e4 as AgentNotFoundError, dR as AgentrixContext, dW as ClaudeAgentConfig, e2 as ClaudeConfigSchema, e0 as FRAMEWORK_TYPES, e6 as FrameworkNotSupportedError, d$ as HookFactory, e8 as MissingAgentFileError, d_ as RepositoryInitHookInput, dT as getAgentContext, dS as setAgentContext } from './errors-Cfur_d00.cjs';
|
|
3
3
|
export { buildGitLabWebhookEndpointPath, buildGitLabWebhookUrl } from './gitlabWebhook.cjs';
|
|
4
4
|
import '@anthropic-ai/claude-agent-sdk';
|
|
5
5
|
import 'zod';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentrix/shared",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.16.0",
|
|
4
4
|
"description": "Shared types and schemas for Agentrix projects",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"types": "./dist/index.d.cts",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"build": "shx rm -rf dist && tsc --noEmit && pkgroll"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@anthropic-ai/claude-agent-sdk": "^0.2.
|
|
31
|
+
"@anthropic-ai/claude-agent-sdk": "^0.2.133",
|
|
32
32
|
"@anthropic-ai/sdk": "^0.71.2",
|
|
33
33
|
"@types/crypto-js": "^4.2.2",
|
|
34
34
|
"base64-js": "^1.5.1",
|