@agentrix/shared 2.4.5 → 2.6.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-DzuwCwn_.d.cts → errors-DKsxjORj.d.cts} +118 -37
- package/dist/index.cjs +43 -8
- package/dist/index.d.cts +4 -4
- package/dist/node.d.cts +2 -2
- package/package.json +1 -1
|
@@ -134,9 +134,9 @@ declare const TaskItemSchema: z.ZodObject<{
|
|
|
134
134
|
pullRequestNumber: z.ZodNullable<z.ZodNumber>;
|
|
135
135
|
pullRequestUrl: z.ZodNullable<z.ZodString>;
|
|
136
136
|
pullRequestState: z.ZodNullable<z.ZodEnum<{
|
|
137
|
-
open: "open";
|
|
138
|
-
closed: "closed";
|
|
139
137
|
merged: "merged";
|
|
138
|
+
closed: "closed";
|
|
139
|
+
open: "open";
|
|
140
140
|
}>>;
|
|
141
141
|
pullRequestStateChangedAt: z.ZodNullable<z.ZodString>;
|
|
142
142
|
gitStats: z.ZodNullable<z.ZodObject<{
|
|
@@ -207,9 +207,9 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
207
207
|
pullRequestNumber: z.ZodNullable<z.ZodNumber>;
|
|
208
208
|
pullRequestUrl: z.ZodNullable<z.ZodString>;
|
|
209
209
|
pullRequestState: z.ZodNullable<z.ZodEnum<{
|
|
210
|
-
open: "open";
|
|
211
|
-
closed: "closed";
|
|
212
210
|
merged: "merged";
|
|
211
|
+
closed: "closed";
|
|
212
|
+
open: "open";
|
|
213
213
|
}>>;
|
|
214
214
|
pullRequestStateChangedAt: z.ZodNullable<z.ZodString>;
|
|
215
215
|
gitStats: z.ZodNullable<z.ZodObject<{
|
|
@@ -508,9 +508,9 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
508
508
|
pullRequestNumber: z.ZodNullable<z.ZodNumber>;
|
|
509
509
|
pullRequestUrl: z.ZodNullable<z.ZodString>;
|
|
510
510
|
pullRequestState: z.ZodNullable<z.ZodEnum<{
|
|
511
|
-
open: "open";
|
|
512
|
-
closed: "closed";
|
|
513
511
|
merged: "merged";
|
|
512
|
+
closed: "closed";
|
|
513
|
+
open: "open";
|
|
514
514
|
}>>;
|
|
515
515
|
pullRequestStateChangedAt: z.ZodNullable<z.ZodString>;
|
|
516
516
|
gitStats: z.ZodNullable<z.ZodObject<{
|
|
@@ -578,9 +578,9 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
578
578
|
pullRequestNumber: z.ZodNullable<z.ZodNumber>;
|
|
579
579
|
pullRequestUrl: z.ZodNullable<z.ZodString>;
|
|
580
580
|
pullRequestState: z.ZodNullable<z.ZodEnum<{
|
|
581
|
-
open: "open";
|
|
582
|
-
closed: "closed";
|
|
583
581
|
merged: "merged";
|
|
582
|
+
closed: "closed";
|
|
583
|
+
open: "open";
|
|
584
584
|
}>>;
|
|
585
585
|
pullRequestStateChangedAt: z.ZodNullable<z.ZodString>;
|
|
586
586
|
gitStats: z.ZodNullable<z.ZodObject<{
|
|
@@ -650,9 +650,9 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
|
|
|
650
650
|
pullRequestNumber: z.ZodNullable<z.ZodNumber>;
|
|
651
651
|
pullRequestUrl: z.ZodNullable<z.ZodString>;
|
|
652
652
|
pullRequestState: z.ZodNullable<z.ZodEnum<{
|
|
653
|
-
open: "open";
|
|
654
|
-
closed: "closed";
|
|
655
653
|
merged: "merged";
|
|
654
|
+
closed: "closed";
|
|
655
|
+
open: "open";
|
|
656
656
|
}>>;
|
|
657
657
|
pullRequestStateChangedAt: z.ZodNullable<z.ZodString>;
|
|
658
658
|
gitStats: z.ZodNullable<z.ZodObject<{
|
|
@@ -877,6 +877,11 @@ type RpcResponseData = z.infer<typeof RpcResponseSchema>;
|
|
|
877
877
|
declare const AskUserOptionSchema: z.ZodObject<{
|
|
878
878
|
label: z.ZodString;
|
|
879
879
|
description: z.ZodString;
|
|
880
|
+
additionalInput: z.ZodOptional<z.ZodObject<{
|
|
881
|
+
enabled: z.ZodBoolean;
|
|
882
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
883
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
884
|
+
}, z.core.$strip>>;
|
|
880
885
|
}, z.core.$strip>;
|
|
881
886
|
type AskUserOption = z.infer<typeof AskUserOptionSchema>;
|
|
882
887
|
/**
|
|
@@ -889,11 +894,18 @@ declare const AskUserQuestionSchema: z.ZodObject<{
|
|
|
889
894
|
options: z.ZodArray<z.ZodObject<{
|
|
890
895
|
label: z.ZodString;
|
|
891
896
|
description: z.ZodString;
|
|
897
|
+
additionalInput: z.ZodOptional<z.ZodObject<{
|
|
898
|
+
enabled: z.ZodBoolean;
|
|
899
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
900
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
901
|
+
}, z.core.$strip>>;
|
|
892
902
|
}, z.core.$strip>>;
|
|
893
903
|
rememberSelection: z.ZodOptional<z.ZodObject<{
|
|
894
904
|
enabled: z.ZodBoolean;
|
|
895
905
|
defaultValue: z.ZodBoolean;
|
|
896
906
|
}, z.core.$strip>>;
|
|
907
|
+
planFilePath: z.ZodOptional<z.ZodString>;
|
|
908
|
+
planContent: z.ZodOptional<z.ZodString>;
|
|
897
909
|
}, z.core.$strip>;
|
|
898
910
|
type AskUserQuestion = z.infer<typeof AskUserQuestionSchema>;
|
|
899
911
|
/**
|
|
@@ -908,11 +920,18 @@ declare const AskUserMessageSchema: z.ZodObject<{
|
|
|
908
920
|
options: z.ZodArray<z.ZodObject<{
|
|
909
921
|
label: z.ZodString;
|
|
910
922
|
description: z.ZodString;
|
|
923
|
+
additionalInput: z.ZodOptional<z.ZodObject<{
|
|
924
|
+
enabled: z.ZodBoolean;
|
|
925
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
926
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
927
|
+
}, z.core.$strip>>;
|
|
911
928
|
}, z.core.$strip>>;
|
|
912
929
|
rememberSelection: z.ZodOptional<z.ZodObject<{
|
|
913
930
|
enabled: z.ZodBoolean;
|
|
914
931
|
defaultValue: z.ZodBoolean;
|
|
915
932
|
}, z.core.$strip>>;
|
|
933
|
+
planFilePath: z.ZodOptional<z.ZodString>;
|
|
934
|
+
planContent: z.ZodOptional<z.ZodString>;
|
|
916
935
|
}, z.core.$strip>>;
|
|
917
936
|
}, z.core.$strip>;
|
|
918
937
|
type AskUserMessage = z.infer<typeof AskUserMessageSchema>;
|
|
@@ -937,6 +956,7 @@ type AskUserResponseReason = z.infer<typeof AskUserResponseReasonSchema>;
|
|
|
937
956
|
declare const AskUserResponseMessageSchema: z.ZodObject<{
|
|
938
957
|
type: z.ZodLiteral<"ask_user_response">;
|
|
939
958
|
answers: z.ZodArray<z.ZodString>;
|
|
959
|
+
details: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
940
960
|
rememberAnswers: z.ZodOptional<z.ZodArray<z.ZodBoolean>>;
|
|
941
961
|
status: z.ZodOptional<z.ZodEnum<{
|
|
942
962
|
answered: "answered";
|
|
@@ -1097,12 +1117,25 @@ declare const WorkerInitializedSchema: z.ZodObject<{
|
|
|
1097
1117
|
cwd: z.ZodOptional<z.ZodString>;
|
|
1098
1118
|
}, z.core.$strip>;
|
|
1099
1119
|
type WorkerInitializedEventData = z.infer<typeof WorkerInitializedSchema>;
|
|
1120
|
+
declare const WorkerPermissionModeValueSchema: z.ZodEnum<{
|
|
1121
|
+
default: "default";
|
|
1122
|
+
acceptEdits: "acceptEdits";
|
|
1123
|
+
bypassPermissions: "bypassPermissions";
|
|
1124
|
+
plan: "plan";
|
|
1125
|
+
}>;
|
|
1126
|
+
type WorkerPermissionModeValue = z.infer<typeof WorkerPermissionModeValueSchema>;
|
|
1100
1127
|
declare const WorkerReadySchema: z.ZodObject<{
|
|
1101
1128
|
eventId: z.ZodString;
|
|
1102
1129
|
taskId: z.ZodString;
|
|
1103
1130
|
machineId: z.ZodString;
|
|
1104
1131
|
timestamp: z.ZodString;
|
|
1105
1132
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
1133
|
+
permissionMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1134
|
+
default: "default";
|
|
1135
|
+
acceptEdits: "acceptEdits";
|
|
1136
|
+
bypassPermissions: "bypassPermissions";
|
|
1137
|
+
plan: "plan";
|
|
1138
|
+
}>>>;
|
|
1106
1139
|
}, z.core.$strip>;
|
|
1107
1140
|
type WorkerReadyEventData = z.infer<typeof WorkerReadySchema>;
|
|
1108
1141
|
/**
|
|
@@ -1123,6 +1156,12 @@ declare const WorkerAliveEventSchema: z.ZodObject<{
|
|
|
1123
1156
|
agentId: z.ZodString;
|
|
1124
1157
|
agentName: z.ZodString;
|
|
1125
1158
|
}, z.core.$strip>>>;
|
|
1159
|
+
permissionMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1160
|
+
default: "default";
|
|
1161
|
+
acceptEdits: "acceptEdits";
|
|
1162
|
+
bypassPermissions: "bypassPermissions";
|
|
1163
|
+
plan: "plan";
|
|
1164
|
+
}>>>;
|
|
1126
1165
|
}, z.core.$strip>;
|
|
1127
1166
|
type WorkerAliveEventData = z.infer<typeof WorkerAliveEventSchema>;
|
|
1128
1167
|
declare const WorkerExitSchema: z.ZodObject<{
|
|
@@ -1142,8 +1181,27 @@ declare const WorkerRunningSchema: z.ZodObject<{
|
|
|
1142
1181
|
agentId: z.ZodString;
|
|
1143
1182
|
agentName: z.ZodString;
|
|
1144
1183
|
}, z.core.$strip>>>;
|
|
1184
|
+
permissionMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1185
|
+
default: "default";
|
|
1186
|
+
acceptEdits: "acceptEdits";
|
|
1187
|
+
bypassPermissions: "bypassPermissions";
|
|
1188
|
+
plan: "plan";
|
|
1189
|
+
}>>>;
|
|
1145
1190
|
}, z.core.$strip>;
|
|
1146
1191
|
type WorkerRunningEventData = z.infer<typeof WorkerRunningSchema>;
|
|
1192
|
+
declare const WorkerPermissionModeSchema: z.ZodObject<{
|
|
1193
|
+
eventId: z.ZodString;
|
|
1194
|
+
taskId: z.ZodString;
|
|
1195
|
+
machineId: z.ZodString;
|
|
1196
|
+
timestamp: z.ZodString;
|
|
1197
|
+
permissionMode: z.ZodEnum<{
|
|
1198
|
+
default: "default";
|
|
1199
|
+
acceptEdits: "acceptEdits";
|
|
1200
|
+
bypassPermissions: "bypassPermissions";
|
|
1201
|
+
plan: "plan";
|
|
1202
|
+
}>;
|
|
1203
|
+
}, z.core.$strip>;
|
|
1204
|
+
type WorkerPermissionModeEventData = z.infer<typeof WorkerPermissionModeSchema>;
|
|
1147
1205
|
declare const WorkerStatusRequestSchema: z.ZodObject<{
|
|
1148
1206
|
eventId: z.ZodString;
|
|
1149
1207
|
taskId: z.ZodString;
|
|
@@ -1156,6 +1214,20 @@ declare const WorkerStatusValueSchema: z.ZodEnum<{
|
|
|
1156
1214
|
"worker-running": "worker-running";
|
|
1157
1215
|
}>;
|
|
1158
1216
|
type WorkerStatusValue = z.infer<typeof WorkerStatusValueSchema>;
|
|
1217
|
+
declare const WorkerStatusSnapshotSchema: z.ZodObject<{
|
|
1218
|
+
status: z.ZodEnum<{
|
|
1219
|
+
"worker-initializing": "worker-initializing";
|
|
1220
|
+
"worker-ready": "worker-ready";
|
|
1221
|
+
"worker-running": "worker-running";
|
|
1222
|
+
}>;
|
|
1223
|
+
permissionMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1224
|
+
default: "default";
|
|
1225
|
+
acceptEdits: "acceptEdits";
|
|
1226
|
+
bypassPermissions: "bypassPermissions";
|
|
1227
|
+
plan: "plan";
|
|
1228
|
+
}>>>;
|
|
1229
|
+
}, z.core.$strip>;
|
|
1230
|
+
type WorkerStatusSnapshot = z.infer<typeof WorkerStatusSnapshotSchema>;
|
|
1159
1231
|
declare const ChatWorkersStatusRequestSchema: z.ZodObject<{
|
|
1160
1232
|
eventId: z.ZodString;
|
|
1161
1233
|
chatId: z.ZodString;
|
|
@@ -1164,11 +1236,19 @@ type ChatWorkersStatusRequestEventData = z.infer<typeof ChatWorkersStatusRequest
|
|
|
1164
1236
|
declare const ChatWorkersStatusResponseSchema: z.ZodObject<{
|
|
1165
1237
|
eventId: z.ZodString;
|
|
1166
1238
|
chatId: z.ZodString;
|
|
1167
|
-
workers: z.ZodRecord<z.ZodString, z.
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1239
|
+
workers: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1240
|
+
status: z.ZodEnum<{
|
|
1241
|
+
"worker-initializing": "worker-initializing";
|
|
1242
|
+
"worker-ready": "worker-ready";
|
|
1243
|
+
"worker-running": "worker-running";
|
|
1244
|
+
}>;
|
|
1245
|
+
permissionMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1246
|
+
default: "default";
|
|
1247
|
+
acceptEdits: "acceptEdits";
|
|
1248
|
+
bypassPermissions: "bypassPermissions";
|
|
1249
|
+
plan: "plan";
|
|
1250
|
+
}>>>;
|
|
1251
|
+
}, z.core.$strip>>;
|
|
1172
1252
|
}, z.core.$strip>;
|
|
1173
1253
|
type ChatWorkersStatusResponseEventData = z.infer<typeof ChatWorkersStatusResponseSchema>;
|
|
1174
1254
|
declare const baseTaskSchema: z.ZodObject<{
|
|
@@ -1364,10 +1444,10 @@ type TaskArtifactsStats = z.infer<typeof TaskArtifactsStatsSchema>;
|
|
|
1364
1444
|
*/
|
|
1365
1445
|
declare const PreviewProjectTypeSchema: z.ZodEnum<{
|
|
1366
1446
|
unknown: "unknown";
|
|
1367
|
-
html: "html";
|
|
1368
1447
|
react: "react";
|
|
1369
1448
|
vue: "vue";
|
|
1370
1449
|
vite: "vite";
|
|
1450
|
+
html: "html";
|
|
1371
1451
|
nextjs: "nextjs";
|
|
1372
1452
|
}>;
|
|
1373
1453
|
type PreviewProjectType = z.infer<typeof PreviewProjectTypeSchema>;
|
|
@@ -1388,10 +1468,10 @@ type PreviewMethod = z.infer<typeof PreviewMethodSchema>;
|
|
|
1388
1468
|
declare const PreviewMetadataSchema: z.ZodObject<{
|
|
1389
1469
|
projectType: z.ZodEnum<{
|
|
1390
1470
|
unknown: "unknown";
|
|
1391
|
-
html: "html";
|
|
1392
1471
|
react: "react";
|
|
1393
1472
|
vue: "vue";
|
|
1394
1473
|
vite: "vite";
|
|
1474
|
+
html: "html";
|
|
1395
1475
|
nextjs: "nextjs";
|
|
1396
1476
|
}>;
|
|
1397
1477
|
previewMethod: z.ZodEnum<{
|
|
@@ -1412,7 +1492,7 @@ type PreviewMetadata = z.infer<typeof PreviewMetadataSchema>;
|
|
|
1412
1492
|
* Used in both TaskMessageSchema (CLI sends with result) and SubTaskResultUpdatedEventSchema
|
|
1413
1493
|
*/
|
|
1414
1494
|
declare const TaskArtifactsSummarySchema: z.ZodObject<{
|
|
1415
|
-
|
|
1495
|
+
artifactVersion: z.ZodString;
|
|
1416
1496
|
stats: z.ZodObject<{
|
|
1417
1497
|
totalInsertions: z.ZodNumber;
|
|
1418
1498
|
totalDeletions: z.ZodNumber;
|
|
@@ -1425,10 +1505,10 @@ declare const TaskArtifactsSummarySchema: z.ZodObject<{
|
|
|
1425
1505
|
preview: z.ZodNullable<z.ZodObject<{
|
|
1426
1506
|
projectType: z.ZodEnum<{
|
|
1427
1507
|
unknown: "unknown";
|
|
1428
|
-
html: "html";
|
|
1429
1508
|
react: "react";
|
|
1430
1509
|
vue: "vue";
|
|
1431
1510
|
vite: "vite";
|
|
1511
|
+
html: "html";
|
|
1432
1512
|
nextjs: "nextjs";
|
|
1433
1513
|
}>;
|
|
1434
1514
|
previewMethod: z.ZodEnum<{
|
|
@@ -1471,7 +1551,7 @@ declare const TaskMessageSchema: z.ZodObject<{
|
|
|
1471
1551
|
senderName: z.ZodString;
|
|
1472
1552
|
rootTaskId: z.ZodOptional<z.ZodString>;
|
|
1473
1553
|
artifacts: z.ZodOptional<z.ZodObject<{
|
|
1474
|
-
|
|
1554
|
+
artifactVersion: z.ZodString;
|
|
1475
1555
|
stats: z.ZodObject<{
|
|
1476
1556
|
totalInsertions: z.ZodNumber;
|
|
1477
1557
|
totalDeletions: z.ZodNumber;
|
|
@@ -1484,10 +1564,10 @@ declare const TaskMessageSchema: z.ZodObject<{
|
|
|
1484
1564
|
preview: z.ZodNullable<z.ZodObject<{
|
|
1485
1565
|
projectType: z.ZodEnum<{
|
|
1486
1566
|
unknown: "unknown";
|
|
1487
|
-
html: "html";
|
|
1488
1567
|
react: "react";
|
|
1489
1568
|
vue: "vue";
|
|
1490
1569
|
vite: "vite";
|
|
1570
|
+
html: "html";
|
|
1491
1571
|
nextjs: "nextjs";
|
|
1492
1572
|
}>;
|
|
1493
1573
|
previewMethod: z.ZodEnum<{
|
|
@@ -1720,7 +1800,7 @@ declare const SubTaskResultUpdatedEventSchema: z.ZodObject<{
|
|
|
1720
1800
|
}, z.core.$strip>;
|
|
1721
1801
|
encryptedResultMessage: z.ZodOptional<z.ZodString>;
|
|
1722
1802
|
artifacts: z.ZodOptional<z.ZodObject<{
|
|
1723
|
-
|
|
1803
|
+
artifactVersion: z.ZodString;
|
|
1724
1804
|
stats: z.ZodObject<{
|
|
1725
1805
|
totalInsertions: z.ZodNumber;
|
|
1726
1806
|
totalDeletions: z.ZodNumber;
|
|
@@ -1733,10 +1813,10 @@ declare const SubTaskResultUpdatedEventSchema: z.ZodObject<{
|
|
|
1733
1813
|
preview: z.ZodNullable<z.ZodObject<{
|
|
1734
1814
|
projectType: z.ZodEnum<{
|
|
1735
1815
|
unknown: "unknown";
|
|
1736
|
-
html: "html";
|
|
1737
1816
|
react: "react";
|
|
1738
1817
|
vue: "vue";
|
|
1739
1818
|
vite: "vite";
|
|
1819
|
+
html: "html";
|
|
1740
1820
|
nextjs: "nextjs";
|
|
1741
1821
|
}>;
|
|
1742
1822
|
previewMethod: z.ZodEnum<{
|
|
@@ -1838,14 +1918,14 @@ declare const PrStateChangedSchema: z.ZodObject<{
|
|
|
1838
1918
|
pullRequestNumber: z.ZodNumber;
|
|
1839
1919
|
pullRequestUrl: z.ZodString;
|
|
1840
1920
|
oldState: z.ZodNullable<z.ZodEnum<{
|
|
1841
|
-
open: "open";
|
|
1842
|
-
closed: "closed";
|
|
1843
1921
|
merged: "merged";
|
|
1922
|
+
closed: "closed";
|
|
1923
|
+
open: "open";
|
|
1844
1924
|
}>>;
|
|
1845
1925
|
newState: z.ZodEnum<{
|
|
1846
|
-
open: "open";
|
|
1847
|
-
closed: "closed";
|
|
1848
1926
|
merged: "merged";
|
|
1927
|
+
closed: "closed";
|
|
1928
|
+
open: "open";
|
|
1849
1929
|
}>;
|
|
1850
1930
|
changedAt: z.ZodString;
|
|
1851
1931
|
}, z.core.$strip>;
|
|
@@ -1918,14 +1998,14 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
1918
1998
|
pullRequestNumber: z.ZodNumber;
|
|
1919
1999
|
pullRequestUrl: z.ZodString;
|
|
1920
2000
|
oldState: z.ZodNullable<z.ZodEnum<{
|
|
1921
|
-
open: "open";
|
|
1922
|
-
closed: "closed";
|
|
1923
2001
|
merged: "merged";
|
|
2002
|
+
closed: "closed";
|
|
2003
|
+
open: "open";
|
|
1924
2004
|
}>>;
|
|
1925
2005
|
newState: z.ZodEnum<{
|
|
1926
|
-
open: "open";
|
|
1927
|
-
closed: "closed";
|
|
1928
2006
|
merged: "merged";
|
|
2007
|
+
closed: "closed";
|
|
2008
|
+
open: "open";
|
|
1929
2009
|
}>;
|
|
1930
2010
|
changedAt: z.ZodString;
|
|
1931
2011
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -2070,9 +2150,9 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
2070
2150
|
pullRequestNumber: z.ZodNullable<z.ZodNumber>;
|
|
2071
2151
|
pullRequestUrl: z.ZodNullable<z.ZodString>;
|
|
2072
2152
|
pullRequestState: z.ZodNullable<z.ZodEnum<{
|
|
2073
|
-
open: "open";
|
|
2074
|
-
closed: "closed";
|
|
2075
2153
|
merged: "merged";
|
|
2154
|
+
closed: "closed";
|
|
2155
|
+
open: "open";
|
|
2076
2156
|
}>>;
|
|
2077
2157
|
pullRequestStateChangedAt: z.ZodNullable<z.ZodString>;
|
|
2078
2158
|
gitStats: z.ZodNullable<z.ZodObject<{
|
|
@@ -2161,7 +2241,7 @@ declare const ResetTaskSessionSchema: z.ZodObject<{
|
|
|
2161
2241
|
taskId: z.ZodString;
|
|
2162
2242
|
}, z.core.$strip>;
|
|
2163
2243
|
type ResetTaskSessionEventData = z.infer<typeof ResetTaskSessionSchema>;
|
|
2164
|
-
type EventData = AppAliveEventData | ApiServerAliveEventData | MachineAliveEventData | ShutdownMachineData | WorkerInitializingEventData | WorkerInitializedEventData | WorkerReadyEventData | WorkerAliveEventData | WorkerExitEventData | WorkerRunningEventData | WorkerStatusRequestEventData | ChatWorkersStatusRequestEventData | ChatWorkersStatusResponseEventData | CreateTaskEventData | ResumeTaskEventData | CancelTaskEventData | StopTaskEventData | TaskMessageEventData | ChangeTaskTitleEventData | TaskStateChangeEventData | UpdateTaskAgentSessionIdEventData | TaskInfoUpdateEventData | TaskSlashCommandsUpdateEventData | MergeRequestEventData | TaskStoppedEventData | SubTaskResultUpdatedEventData | SystemMessageEventData | CreditExhaustedEventData | RtcIceServersRequestEventData | RtcIceServersResponseEventData | MachineRtcRequestEventData | MachineRtcResponseEventData | RtcSignalEventData | WorkspaceFileRequestEventData | WorkspaceFileResponseEventData | UpdateAgentInfoEventData | DaemonGitlabRequestEventData | DaemonGitlabResponseEventData | CompanionHeartbeatRequestData | CompanionHeartbeatResponseData | ResetTaskSessionEventData;
|
|
2244
|
+
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 | SystemMessageEventData | CreditExhaustedEventData | RtcIceServersRequestEventData | RtcIceServersResponseEventData | MachineRtcRequestEventData | MachineRtcResponseEventData | RtcSignalEventData | WorkspaceFileRequestEventData | WorkspaceFileResponseEventData | UpdateAgentInfoEventData | DaemonGitlabRequestEventData | DaemonGitlabResponseEventData | CompanionHeartbeatRequestData | CompanionHeartbeatResponseData | ResetTaskSessionEventData;
|
|
2165
2245
|
type EventMap = {
|
|
2166
2246
|
"app-alive": AppAliveEventData;
|
|
2167
2247
|
"api-server-alive": ApiServerAliveEventData;
|
|
@@ -2172,6 +2252,7 @@ type EventMap = {
|
|
|
2172
2252
|
"worker-alive": WorkerAliveEventData;
|
|
2173
2253
|
"worker-exit": WorkerExitEventData;
|
|
2174
2254
|
"worker-running": WorkerRunningEventData;
|
|
2255
|
+
"worker-permission-mode": WorkerPermissionModeEventData;
|
|
2175
2256
|
"worker-status-request": WorkerStatusRequestEventData;
|
|
2176
2257
|
"chat-workers-status-request": ChatWorkersStatusRequestEventData;
|
|
2177
2258
|
"chat-workers-status-response": ChatWorkersStatusResponseEventData;
|
|
@@ -2216,7 +2297,7 @@ declare const EventSchemaMap: Record<EventName, z.ZodType<any>>;
|
|
|
2216
2297
|
/**
|
|
2217
2298
|
* only sent by worker and which need to send to human in chat room
|
|
2218
2299
|
*/
|
|
2219
|
-
type WorkerTaskEvent = "worker-initializing" | "worker-initialized" | "worker-ready" | "worker-exit" | "worker-running" | "change-task-title" | "update-task-agent-session-id" | "task-slash-commands-update" | "reset-task-session" | "merge-request" | "merge-pr" | "associate-repo" | "update-agent-info";
|
|
2300
|
+
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";
|
|
2220
2301
|
declare const workerTaskEvents: WorkerTaskEvent[];
|
|
2221
2302
|
|
|
2222
2303
|
/**
|
|
@@ -2648,5 +2729,5 @@ declare class MissingAgentFileError extends AgentError {
|
|
|
2648
2729
|
constructor(filePath: string);
|
|
2649
2730
|
}
|
|
2650
2731
|
|
|
2651
|
-
export { CompanionHeartbeatRequestSchema as $, AskUserQuestionSchema as C, AskUserResponseMessageSchema as E, AskUserResponseReasonSchema as G, AskUserResponseStatusSchema as I, AssociateRepoEventDataSchema as K, CancelTaskRequestSchema as N, CancelTaskResponseSchema as Q, ChangeTaskTitleEventSchema as S, ChatWorkersStatusRequestSchema as U, ChatWorkersStatusResponseSchema as W, ClaudeConfigSchema as Y, ActiveAgentSchema as a, CompanionHeartbeatResponseSchema as a1, CreateMergeRequestResponseSchema as a5, CreateMergeRequestSchema as a6, FindTaskByAgentResponseSchema as aB, FrameworkNotSupportedError as aC, GetTaskSessionResponseSchema as aF, ListRecentTasksRequestSchema as aI, ListRecentTasksResponseSchema as aK, ListSubTasksRequestSchema as aM, ListSubTasksResponseSchema as aO, ListTasksRequestSchema as aQ, ListTasksResponseSchema as aS, MachineAliveEventSchema as aV, MachineRtcRequestSchema as aX, MachineRtcResponseSchema as aZ, CreateTaskShareResponseSchema as aa, CreateTaskShareSchema as ab, CreditExhaustedEventSchema as ad, DaemonGitlabOperationSchema as af, DaemonGitlabRequestSchema as ah, DaemonGitlabResponseSchema as aj, DeployAgentCompleteEventSchema as al, DeployAgentEventSchema as an, EventAckSchema as ap, EventSchemaMap as at, FRAMEWORK_TYPES as au, FillEventsRequestSchema as aw, FindTaskByAgentRequestSchema as az, MergePullRequestEventSchema as b0, MergeRequestEventSchema as b2, MissingAgentFileError as b3, PermissionResponseRequestSchema as b5, PermissionResponseResponseSchema as b7, PreviewMetadataSchema as b9, RtcIceServerSchema as bA, RtcIceServersRequestSchema as bC, RtcIceServersResponseSchema as bE, RtcSignalSchema as bG, SendTaskMessageRequestSchema as bJ, SendTaskMessageResponseSchema as bL, ShowModalEventDataSchema as bN, ShowModalRequestSchema as bP, ShowModalResponseSchema as bR, ShutdownMachineSchema as bT, StartTaskRequestSchema as bV, StartTaskResponseSchema as bX, StopTaskRequestSchema as b_, PreviewMethodSchema as bb, PreviewProjectTypeSchema as bd, ProjectDirectoryResponseSchema as bf, ProjectEntrySchema as bh, QueryEventsRequestSchema as bj, RecentTaskSummarySchema as bm, ResetTaskSessionSchema as bp, ResumeTaskRequestSchema as bs, ResumeTaskResponseSchema as bu, RpcCallEventSchema as bw, RpcResponseSchema as by, AgentConfigValidationError as c,
|
|
2652
|
-
export type { ActiveAgent as A, AskUserQuestion as B, AskUserResponseMessage as D, AskUserResponseReason as F, AskUserResponseStatus as H, AssociateRepoEventData as J, CancelTaskEventData as L, CancelTaskRequest as M, CancelTaskResponse as O, PreviewMetadata as P, ChangeTaskTitleEventData as R, ChatWorkersStatusRequestEventData as T, ChatWorkersStatusResponseEventData as V, ClaudeAgentConfig as X, CompanionHeartbeatMessage as Z, CompanionHeartbeatRequestData as _, MergePullRequestEventData as a$, CompanionHeartbeatResponseData as a0, CompanionReminderMessage as a2, CreateMergeRequestRequest as a3, CreateMergeRequestResponse as a4, CreateTaskEventData as a7, CreateTaskShareRequest as a8, CreateTaskShareResponse as a9, FindTaskByAgentResponse as aA, FrameworkType as aD, GetTaskSessionResponse as aE, HookFactory as aG, ListRecentTasksRequest as aH, ListRecentTasksResponse as aJ, ListSubTasksRequest as aL, ListSubTasksResponse as aN, ListTasksRequest as aP, ListTasksResponse as aR, LoadAgentOptions as aT, MachineAliveEventData as aU, MachineRtcRequestEventData as aW, MachineRtcResponseEventData as aY, MergePullRequestAck as a_, CreditExhaustedEventData as ac, DaemonGitlabOperation as ae, DaemonGitlabRequestEventData as ag, DaemonGitlabResponseEventData as ai, DeployAgentCompleteEventData as ak, DeployAgentEventData as am, EventAckData as ao, EventData as aq, EventMap as ar, EventName as as, FillEventsRequest as av, FillEventsResponse as ax, FindTaskByAgentRequest as ay, AgentConfig as b, StopTaskResponse as b$, MergeRequestEventData as b1, PermissionResponseRequest as b4, PermissionResponseResponse as b6, PrStateChangedData as b8, RtcIceServersRequestEventData as bB, RtcIceServersResponseEventData as bD, RtcSignalEventData as bF, SendMessageTarget as bH, SendTaskMessageRequest as bI, SendTaskMessageResponse as bK, ShowModalEventData as bM, ShowModalRequest as bO, ShowModalResponse as bQ, ShutdownMachineData as bS, StartTaskRequest as bU, StartTaskResponse as bW, StopTaskEventData as bY, StopTaskRequest as bZ, PreviewMethod as ba, PreviewProjectType as bc, ProjectDirectoryResponse as be, ProjectEntry as bg, QueryEventsRequest as bi, QueryEventsResponse as bk, RecentTaskSummary as bl, RepositoryInitHookInput as bn, ResetTaskSessionEventData as bo, ResumeTaskEventData as bq, ResumeTaskRequest as br, ResumeTaskResponse as bt, RpcCallEventData as bv, RpcResponseData as bx, RtcIceServer as bz, SubTaskAskUserMessage as c2, SubTaskResultUpdatedEventData as c3, SubTaskSummary as c5, SystemMessageEventData as c7, SystemMessageType as c9, UnarchiveTaskResponse as cB, UpdateAgentInfoEventData as cD, UpdateTaskAgentSessionIdEventData as cF, UpdateTaskTitleRequest as cH, UpdateTaskTitleResponse as cJ, ValidationResult as cL, WorkerAliveEventData as cM, WorkerExitEventData as cO, WorkerInitializedEventData as cQ, WorkerInitializingEventData as cS,
|
|
2732
|
+
export { CompanionHeartbeatRequestSchema as $, AskUserQuestionSchema as C, AskUserResponseMessageSchema as E, AskUserResponseReasonSchema as G, AskUserResponseStatusSchema as I, AssociateRepoEventDataSchema as K, CancelTaskRequestSchema as N, CancelTaskResponseSchema as Q, ChangeTaskTitleEventSchema as S, ChatWorkersStatusRequestSchema as U, ChatWorkersStatusResponseSchema as W, ClaudeConfigSchema as Y, ActiveAgentSchema as a, CompanionHeartbeatResponseSchema as a1, CreateMergeRequestResponseSchema as a5, CreateMergeRequestSchema as a6, FindTaskByAgentResponseSchema as aB, FrameworkNotSupportedError as aC, GetTaskSessionResponseSchema as aF, ListRecentTasksRequestSchema as aI, ListRecentTasksResponseSchema as aK, ListSubTasksRequestSchema as aM, ListSubTasksResponseSchema as aO, ListTasksRequestSchema as aQ, ListTasksResponseSchema as aS, MachineAliveEventSchema as aV, MachineRtcRequestSchema as aX, MachineRtcResponseSchema as aZ, CreateTaskShareResponseSchema as aa, CreateTaskShareSchema as ab, CreditExhaustedEventSchema as ad, DaemonGitlabOperationSchema as af, DaemonGitlabRequestSchema as ah, DaemonGitlabResponseSchema as aj, DeployAgentCompleteEventSchema as al, DeployAgentEventSchema as an, EventAckSchema as ap, EventSchemaMap as at, FRAMEWORK_TYPES as au, FillEventsRequestSchema as aw, FindTaskByAgentRequestSchema as az, MergePullRequestEventSchema as b0, MergeRequestEventSchema as b2, MissingAgentFileError as b3, PermissionResponseRequestSchema as b5, PermissionResponseResponseSchema as b7, PreviewMetadataSchema as b9, RtcIceServerSchema as bA, RtcIceServersRequestSchema as bC, RtcIceServersResponseSchema as bE, RtcSignalSchema as bG, SendTaskMessageRequestSchema as bJ, SendTaskMessageResponseSchema as bL, ShowModalEventDataSchema as bN, ShowModalRequestSchema as bP, ShowModalResponseSchema as bR, ShutdownMachineSchema as bT, StartTaskRequestSchema as bV, StartTaskResponseSchema as bX, StopTaskRequestSchema as b_, PreviewMethodSchema as bb, PreviewProjectTypeSchema as bd, ProjectDirectoryResponseSchema as bf, ProjectEntrySchema as bh, QueryEventsRequestSchema as bj, RecentTaskSummarySchema as bm, ResetTaskSessionSchema as bp, ResumeTaskRequestSchema as bs, ResumeTaskResponseSchema as bu, RpcCallEventSchema as bw, RpcResponseSchema as by, AgentConfigValidationError as c, WorkerRunningSchema as c$, StopTaskResponseSchema as c0, StopTaskSchema as c1, SubTaskResultUpdatedEventSchema as c4, SubTaskSummarySchema as c6, SystemMessageSchema as c8, UnarchiveTaskRequestSchema as cA, UnarchiveTaskResponseSchema as cC, UpdateAgentInfoEventSchema as cE, UpdateTaskAgentSessionIdEventSchema as cG, UpdateTaskTitleRequestSchema as cI, UpdateTaskTitleResponseSchema as cK, WorkerAliveEventSchema as cN, WorkerExitSchema as cP, WorkerInitializedSchema as cR, WorkerInitializingSchema as cT, WorkerPermissionModeSchema as cV, WorkerPermissionModeValueSchema as cX, WorkerReadySchema as cZ, TaskAgentInfoSchema as cb, TaskArtifactsStatsSchema as cd, TaskArtifactsSummarySchema as cf, TaskInfoUpdateEventDataSchema as ci, TaskItemSchema as ck, TaskMessageSchema as cn, TaskSlashCommandSchema as cp, TaskSlashCommandsUpdateEventDataSchema as cr, TaskStateChangeEventSchema as cu, TaskStoppedEventSchema as cw, TaskTodoSchema as cy, WorkerStatusRequestSchema as d1, WorkerStatusSnapshotSchema as d3, WorkerStatusValueSchema as d5, WorkspaceFileRequestSchema as d8, WorkspaceFileResponseSchema as da, baseTaskSchema as db, cancelTaskRequestSchema as dc, cancelTaskSchema as dd, createEventId as de, createMergeRequestSchema as df, createTaskSchema as dg, getAgentContext as dh, isAskUserMessage as di, isAskUserResponseMessage as dj, isCompanionHeartbeatMessage as dk, isCompanionReminderMessage as dl, isSDKMessage as dm, isSDKUserMessage as dn, isSubTaskAskUserMessage as dp, permissionResponseRequestSchema as dq, resumeTaskRequestSchema as dr, resumeTaskSchema as ds, setAgentContext as dt, startTaskSchema as du, stopTaskRequestSchema as dv, workerTaskEvents as dw, AgentError as e, AgentLoadError as f, AgentMetadataSchema as h, AgentNotFoundError as i, ApiServerAliveEventSchema as l, AppAliveEventSchema as n, ApprovePrRequestSchema as p, ApprovePrResponseSchema as r, ArchiveTaskRequestSchema as t, ArchiveTaskResponseSchema as v, AskUserMessageSchema as x, AskUserOptionSchema as z };
|
|
2733
|
+
export type { ActiveAgent as A, AskUserQuestion as B, AskUserResponseMessage as D, AskUserResponseReason as F, AskUserResponseStatus as H, AssociateRepoEventData as J, CancelTaskEventData as L, CancelTaskRequest as M, CancelTaskResponse as O, PreviewMetadata as P, ChangeTaskTitleEventData as R, ChatWorkersStatusRequestEventData as T, ChatWorkersStatusResponseEventData as V, ClaudeAgentConfig as X, CompanionHeartbeatMessage as Z, CompanionHeartbeatRequestData as _, MergePullRequestEventData as a$, CompanionHeartbeatResponseData as a0, CompanionReminderMessage as a2, CreateMergeRequestRequest as a3, CreateMergeRequestResponse as a4, CreateTaskEventData as a7, CreateTaskShareRequest as a8, CreateTaskShareResponse as a9, FindTaskByAgentResponse as aA, FrameworkType as aD, GetTaskSessionResponse as aE, HookFactory as aG, ListRecentTasksRequest as aH, ListRecentTasksResponse as aJ, ListSubTasksRequest as aL, ListSubTasksResponse as aN, ListTasksRequest as aP, ListTasksResponse as aR, LoadAgentOptions as aT, MachineAliveEventData as aU, MachineRtcRequestEventData as aW, MachineRtcResponseEventData as aY, MergePullRequestAck as a_, CreditExhaustedEventData as ac, DaemonGitlabOperation as ae, DaemonGitlabRequestEventData as ag, DaemonGitlabResponseEventData as ai, DeployAgentCompleteEventData as ak, DeployAgentEventData as am, EventAckData as ao, EventData as aq, EventMap as ar, EventName as as, FillEventsRequest as av, FillEventsResponse as ax, FindTaskByAgentRequest as ay, AgentConfig as b, StopTaskResponse as b$, MergeRequestEventData as b1, PermissionResponseRequest as b4, PermissionResponseResponse as b6, PrStateChangedData as b8, RtcIceServersRequestEventData as bB, RtcIceServersResponseEventData as bD, RtcSignalEventData as bF, SendMessageTarget as bH, SendTaskMessageRequest as bI, SendTaskMessageResponse as bK, ShowModalEventData as bM, ShowModalRequest as bO, ShowModalResponse as bQ, ShutdownMachineData as bS, StartTaskRequest as bU, StartTaskResponse as bW, StopTaskEventData as bY, StopTaskRequest as bZ, PreviewMethod as ba, PreviewProjectType as bc, ProjectDirectoryResponse as be, ProjectEntry as bg, QueryEventsRequest as bi, QueryEventsResponse as bk, RecentTaskSummary as bl, RepositoryInitHookInput as bn, ResetTaskSessionEventData as bo, ResumeTaskEventData as bq, ResumeTaskRequest as br, ResumeTaskResponse as bt, RpcCallEventData as bv, RpcResponseData as bx, RtcIceServer as bz, SubTaskAskUserMessage as c2, SubTaskResultUpdatedEventData as c3, SubTaskSummary as c5, SystemMessageEventData as c7, SystemMessageType as c9, UnarchiveTaskResponse as cB, UpdateAgentInfoEventData as cD, UpdateTaskAgentSessionIdEventData as cF, UpdateTaskTitleRequest as cH, UpdateTaskTitleResponse as cJ, ValidationResult as cL, WorkerAliveEventData as cM, WorkerExitEventData as cO, WorkerInitializedEventData as cQ, WorkerInitializingEventData as cS, WorkerPermissionModeEventData as cU, WorkerPermissionModeValue as cW, WorkerReadyEventData as cY, WorkerRunningEventData as c_, TaskAgentInfo as ca, TaskArtifactsStats as cc, TaskArtifactsSummary as ce, TaskEvent as cg, TaskInfoUpdateEventData as ch, TaskItem as cj, TaskMessageEventData as cl, TaskMessagePayload as cm, TaskSlashCommand as co, TaskSlashCommandsUpdateEventData as cq, TaskState as cs, TaskStateChangeEventData as ct, TaskStoppedEventData as cv, TaskTodo as cx, UnarchiveTaskRequest as cz, AgentContext as d, WorkerStatusRequestEventData as d0, WorkerStatusSnapshot as d2, WorkerStatusValue as d4, WorkerTaskEvent as d6, WorkspaceFileRequestEventData as d7, WorkspaceFileResponseEventData as d9, AgentMetadata as g, AgentrixContext as j, ApiServerAliveEventData as k, AppAliveEventData as m, ApprovePrRequest as o, ApprovePrResponse as q, ArchiveTaskRequest as s, ArchiveTaskResponse as u, AskUserMessage as w, AskUserOption as y };
|
package/dist/index.cjs
CHANGED
|
@@ -1633,8 +1633,13 @@ function decryptFileContent(encryptedContent, dataKey) {
|
|
|
1633
1633
|
const AskUserOptionSchema = zod.z.object({
|
|
1634
1634
|
label: zod.z.string(),
|
|
1635
1635
|
// Option label (1-5 words)
|
|
1636
|
-
description: zod.z.string()
|
|
1636
|
+
description: zod.z.string(),
|
|
1637
1637
|
// Option explanation
|
|
1638
|
+
additionalInput: zod.z.object({
|
|
1639
|
+
enabled: zod.z.boolean(),
|
|
1640
|
+
required: zod.z.boolean().optional(),
|
|
1641
|
+
placeholder: zod.z.string().optional()
|
|
1642
|
+
}).optional()
|
|
1638
1643
|
});
|
|
1639
1644
|
const AskUserQuestionSchema = zod.z.object({
|
|
1640
1645
|
question: zod.z.string(),
|
|
@@ -1648,7 +1653,11 @@ const AskUserQuestionSchema = zod.z.object({
|
|
|
1648
1653
|
rememberSelection: zod.z.object({
|
|
1649
1654
|
enabled: zod.z.boolean(),
|
|
1650
1655
|
defaultValue: zod.z.boolean()
|
|
1651
|
-
}).optional()
|
|
1656
|
+
}).optional(),
|
|
1657
|
+
planFilePath: zod.z.string().optional(),
|
|
1658
|
+
// Relative workspace file path for ExitPlanMode approval (primary)
|
|
1659
|
+
planContent: zod.z.string().optional()
|
|
1660
|
+
// Markdown plan content for ExitPlanMode approval (fallback)
|
|
1652
1661
|
});
|
|
1653
1662
|
const AskUserMessageSchema = zod.z.object({
|
|
1654
1663
|
type: zod.z.literal("ask_user"),
|
|
@@ -1661,6 +1670,8 @@ const AskUserResponseMessageSchema = zod.z.object({
|
|
|
1661
1670
|
type: zod.z.literal("ask_user_response"),
|
|
1662
1671
|
answers: zod.z.array(zod.z.string()),
|
|
1663
1672
|
// Array of answers (labels), one per question
|
|
1673
|
+
details: zod.z.array(zod.z.string()).optional(),
|
|
1674
|
+
// Optional freeform details, one per question
|
|
1664
1675
|
rememberAnswers: zod.z.array(zod.z.boolean()).optional(),
|
|
1665
1676
|
// Array of remember flags, one per question
|
|
1666
1677
|
status: AskUserResponseStatusSchema.optional(),
|
|
@@ -1735,12 +1746,19 @@ const WorkerInitializedSchema = EventBaseSchema.extend({
|
|
|
1735
1746
|
timestamp: zod.z.string(),
|
|
1736
1747
|
cwd: zod.z.string().optional()
|
|
1737
1748
|
});
|
|
1749
|
+
const WorkerPermissionModeValueSchema = zod.z.enum([
|
|
1750
|
+
"default",
|
|
1751
|
+
"acceptEdits",
|
|
1752
|
+
"bypassPermissions",
|
|
1753
|
+
"plan"
|
|
1754
|
+
]);
|
|
1738
1755
|
const WorkerReadySchema = EventBaseSchema.extend({
|
|
1739
1756
|
taskId: zod.z.string(),
|
|
1740
1757
|
machineId: zod.z.string(),
|
|
1741
1758
|
timestamp: zod.z.string(),
|
|
1742
|
-
duration: zod.z.number().optional()
|
|
1759
|
+
duration: zod.z.number().optional(),
|
|
1743
1760
|
// Duration of this execution round (milliseconds)
|
|
1761
|
+
permissionMode: WorkerPermissionModeValueSchema.nullable().optional()
|
|
1744
1762
|
});
|
|
1745
1763
|
const ActiveAgentSchema = zod.z.object({
|
|
1746
1764
|
agentId: zod.z.string(),
|
|
@@ -1752,7 +1770,8 @@ const WorkerAliveEventSchema = EventBaseSchema.extend({
|
|
|
1752
1770
|
status: zod.z.string(),
|
|
1753
1771
|
// running, ready
|
|
1754
1772
|
timestamp: zod.z.string(),
|
|
1755
|
-
activeAgents: zod.z.array(ActiveAgentSchema).optional()
|
|
1773
|
+
activeAgents: zod.z.array(ActiveAgentSchema).optional(),
|
|
1774
|
+
permissionMode: WorkerPermissionModeValueSchema.nullable().optional()
|
|
1756
1775
|
});
|
|
1757
1776
|
const WorkerExitSchema = EventBaseSchema.extend({
|
|
1758
1777
|
taskId: zod.z.string(),
|
|
@@ -1764,7 +1783,14 @@ const WorkerRunningSchema = EventBaseSchema.extend({
|
|
|
1764
1783
|
taskId: zod.z.string(),
|
|
1765
1784
|
machineId: zod.z.string(),
|
|
1766
1785
|
timestamp: zod.z.string(),
|
|
1767
|
-
activeAgents: zod.z.array(ActiveAgentSchema).optional()
|
|
1786
|
+
activeAgents: zod.z.array(ActiveAgentSchema).optional(),
|
|
1787
|
+
permissionMode: WorkerPermissionModeValueSchema.nullable().optional()
|
|
1788
|
+
});
|
|
1789
|
+
const WorkerPermissionModeSchema = EventBaseSchema.extend({
|
|
1790
|
+
taskId: zod.z.string(),
|
|
1791
|
+
machineId: zod.z.string(),
|
|
1792
|
+
timestamp: zod.z.string(),
|
|
1793
|
+
permissionMode: WorkerPermissionModeValueSchema
|
|
1768
1794
|
});
|
|
1769
1795
|
const WorkerStatusRequestSchema = EventBaseSchema.extend({
|
|
1770
1796
|
taskId: zod.z.string(),
|
|
@@ -1775,13 +1801,17 @@ const WorkerStatusValueSchema = zod.z.enum([
|
|
|
1775
1801
|
"worker-ready",
|
|
1776
1802
|
"worker-running"
|
|
1777
1803
|
]);
|
|
1804
|
+
const WorkerStatusSnapshotSchema = zod.z.object({
|
|
1805
|
+
status: WorkerStatusValueSchema,
|
|
1806
|
+
permissionMode: WorkerPermissionModeValueSchema.nullable().optional()
|
|
1807
|
+
});
|
|
1778
1808
|
const ChatWorkersStatusRequestSchema = EventBaseSchema.extend({
|
|
1779
1809
|
chatId: zod.z.string()
|
|
1780
1810
|
});
|
|
1781
1811
|
const ChatWorkersStatusResponseSchema = EventBaseSchema.extend({
|
|
1782
1812
|
chatId: zod.z.string(),
|
|
1783
|
-
workers: zod.z.record(zod.z.string(),
|
|
1784
|
-
// { taskId: status }
|
|
1813
|
+
workers: zod.z.record(zod.z.string(), WorkerStatusSnapshotSchema)
|
|
1814
|
+
// { taskId: { status, permissionMode } }
|
|
1785
1815
|
});
|
|
1786
1816
|
const baseTaskSchema = EventBaseSchema.extend({
|
|
1787
1817
|
taskId: zod.z.string(),
|
|
@@ -1883,7 +1913,7 @@ const PreviewMetadataSchema = zod.z.object({
|
|
|
1883
1913
|
isStaticFileCollection: zod.z.boolean().optional()
|
|
1884
1914
|
});
|
|
1885
1915
|
const TaskArtifactsSummarySchema = zod.z.object({
|
|
1886
|
-
|
|
1916
|
+
artifactVersion: zod.z.string(),
|
|
1887
1917
|
stats: TaskArtifactsStatsSchema,
|
|
1888
1918
|
preview: PreviewMetadataSchema.nullable()
|
|
1889
1919
|
// Preview metadata computed by CLI
|
|
@@ -2265,6 +2295,7 @@ const EventSchemaMap = {
|
|
|
2265
2295
|
"worker-alive": WorkerAliveEventSchema,
|
|
2266
2296
|
"worker-exit": WorkerExitSchema,
|
|
2267
2297
|
"worker-running": WorkerRunningSchema,
|
|
2298
|
+
"worker-permission-mode": WorkerPermissionModeSchema,
|
|
2268
2299
|
"worker-status-request": WorkerStatusRequestSchema,
|
|
2269
2300
|
// Chat workers status events
|
|
2270
2301
|
"chat-workers-status-request": ChatWorkersStatusRequestSchema,
|
|
@@ -2325,6 +2356,7 @@ const workerTaskEvents = [
|
|
|
2325
2356
|
"worker-initialized",
|
|
2326
2357
|
"worker-ready",
|
|
2327
2358
|
"worker-running",
|
|
2359
|
+
"worker-permission-mode",
|
|
2328
2360
|
"worker-exit",
|
|
2329
2361
|
"change-task-title",
|
|
2330
2362
|
"update-task-agent-session-id",
|
|
@@ -3096,9 +3128,12 @@ exports.WorkerAliveEventSchema = WorkerAliveEventSchema;
|
|
|
3096
3128
|
exports.WorkerExitSchema = WorkerExitSchema;
|
|
3097
3129
|
exports.WorkerInitializedSchema = WorkerInitializedSchema;
|
|
3098
3130
|
exports.WorkerInitializingSchema = WorkerInitializingSchema;
|
|
3131
|
+
exports.WorkerPermissionModeSchema = WorkerPermissionModeSchema;
|
|
3132
|
+
exports.WorkerPermissionModeValueSchema = WorkerPermissionModeValueSchema;
|
|
3099
3133
|
exports.WorkerReadySchema = WorkerReadySchema;
|
|
3100
3134
|
exports.WorkerRunningSchema = WorkerRunningSchema;
|
|
3101
3135
|
exports.WorkerStatusRequestSchema = WorkerStatusRequestSchema;
|
|
3136
|
+
exports.WorkerStatusSnapshotSchema = WorkerStatusSnapshotSchema;
|
|
3102
3137
|
exports.WorkerStatusValueSchema = WorkerStatusValueSchema;
|
|
3103
3138
|
exports.WorkspaceFileRequestSchema = WorkspaceFileRequestSchema;
|
|
3104
3139
|
exports.WorkspaceFileResponseSchema = WorkspaceFileResponseSchema;
|
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 { A as ActiveAgent, a as ActiveAgentSchema, b as AgentConfig, c as AgentConfigValidationError, d as AgentContext, e as AgentError, f as AgentLoadError, g as AgentMetadata, h as AgentMetadataSchema, i as AgentNotFoundError, j as AgentrixContext, k as ApiServerAliveEventData, l as ApiServerAliveEventSchema, m as AppAliveEventData, n as AppAliveEventSchema, o as ApprovePrRequest, p as ApprovePrRequestSchema, q as ApprovePrResponse, r as ApprovePrResponseSchema, s as ArchiveTaskRequest, t as ArchiveTaskRequestSchema, u as ArchiveTaskResponse, v as ArchiveTaskResponseSchema, w as AskUserMessage, x as AskUserMessageSchema, y as AskUserOption, z as AskUserOptionSchema, B as AskUserQuestion, C as AskUserQuestionSchema, D as AskUserResponseMessage, E as AskUserResponseMessageSchema, F as AskUserResponseReason, G as AskUserResponseReasonSchema, H as AskUserResponseStatus, I as AskUserResponseStatusSchema, J as AssociateRepoEventData, K as AssociateRepoEventDataSchema, L as CancelTaskEventData, M as CancelTaskRequest, N as CancelTaskRequestSchema, O as CancelTaskResponse, Q as CancelTaskResponseSchema, R as ChangeTaskTitleEventData, S as ChangeTaskTitleEventSchema, T as ChatWorkersStatusRequestEventData, U as ChatWorkersStatusRequestSchema, V as ChatWorkersStatusResponseEventData, W as ChatWorkersStatusResponseSchema, X as ClaudeAgentConfig, Y as ClaudeConfigSchema, Z as CompanionHeartbeatMessage, _ as CompanionHeartbeatRequestData, $ as CompanionHeartbeatRequestSchema, a0 as CompanionHeartbeatResponseData, a1 as CompanionHeartbeatResponseSchema, a2 as CompanionReminderMessage, a3 as CreateMergeRequestRequest, a4 as CreateMergeRequestResponse, a5 as CreateMergeRequestResponseSchema, a6 as CreateMergeRequestSchema, a7 as CreateTaskEventData, a8 as CreateTaskShareRequest, a9 as CreateTaskShareResponse, aa as CreateTaskShareResponseSchema, ab as CreateTaskShareSchema, ac as CreditExhaustedEventData, ad as CreditExhaustedEventSchema, ae as DaemonGitlabOperation, af as DaemonGitlabOperationSchema, ag as DaemonGitlabRequestEventData, ah as DaemonGitlabRequestSchema, ai as DaemonGitlabResponseEventData, aj as DaemonGitlabResponseSchema, ak as DeployAgentCompleteEventData, al as DeployAgentCompleteEventSchema, am as DeployAgentEventData, an as DeployAgentEventSchema, ao as EventAckData, ap as EventAckSchema, aq as EventData, ar as EventMap, as as EventName, at as EventSchemaMap, au as FRAMEWORK_TYPES, av as FillEventsRequest, aw as FillEventsRequestSchema, ax as FillEventsResponse, ay as FindTaskByAgentRequest, az as FindTaskByAgentRequestSchema, aA as FindTaskByAgentResponse, aB as FindTaskByAgentResponseSchema, aC as FrameworkNotSupportedError, aD as FrameworkType, aE as GetTaskSessionResponse, aF as GetTaskSessionResponseSchema, aG as HookFactory, aH as ListRecentTasksRequest, aI as ListRecentTasksRequestSchema, aJ as ListRecentTasksResponse, aK as ListRecentTasksResponseSchema, aL as ListSubTasksRequest, aM as ListSubTasksRequestSchema, aN as ListSubTasksResponse, aO as ListSubTasksResponseSchema, aP as ListTasksRequest, aQ as ListTasksRequestSchema, aR as ListTasksResponse, aS as ListTasksResponseSchema, aT as LoadAgentOptions, aU as MachineAliveEventData, aV as MachineAliveEventSchema, aW as MachineRtcRequestEventData, aX as MachineRtcRequestSchema, aY as MachineRtcResponseEventData, aZ as MachineRtcResponseSchema, a_ as MergePullRequestAck, a$ as MergePullRequestEventData, b0 as MergePullRequestEventSchema, b1 as MergeRequestEventData, b2 as MergeRequestEventSchema, b3 as MissingAgentFileError, b4 as PermissionResponseRequest, b5 as PermissionResponseRequestSchema, b6 as PermissionResponseResponse, b7 as PermissionResponseResponseSchema, b8 as PrStateChangedData, b9 as PreviewMetadataSchema, ba as PreviewMethod, bb as PreviewMethodSchema, bc as PreviewProjectType, bd as PreviewProjectTypeSchema, be as ProjectDirectoryResponse, bf as ProjectDirectoryResponseSchema, bg as ProjectEntry, bh as ProjectEntrySchema, bi as QueryEventsRequest, bj as QueryEventsRequestSchema, bk as QueryEventsResponse, bl as RecentTaskSummary, bm as RecentTaskSummarySchema, bn as RepositoryInitHookInput, bo as ResetTaskSessionEventData, bp as ResetTaskSessionSchema, bq as ResumeTaskEventData, br as ResumeTaskRequest, bs as ResumeTaskRequestSchema, bt as ResumeTaskResponse, bu as ResumeTaskResponseSchema, bv as RpcCallEventData, bw as RpcCallEventSchema, bx as RpcResponseData, by as RpcResponseSchema, bz as RtcIceServer, bA as RtcIceServerSchema, bB as RtcIceServersRequestEventData, bC as RtcIceServersRequestSchema, bD as RtcIceServersResponseEventData, bE as RtcIceServersResponseSchema, bF as RtcSignalEventData, bG as RtcSignalSchema, bH as SendMessageTarget, bI as SendTaskMessageRequest, bJ as SendTaskMessageRequestSchema, bK as SendTaskMessageResponse, bL as SendTaskMessageResponseSchema, bM as ShowModalEventData, bN as ShowModalEventDataSchema, bO as ShowModalRequest, bP as ShowModalRequestSchema, bQ as ShowModalResponse, bR as ShowModalResponseSchema, bS as ShutdownMachineData, bT as ShutdownMachineSchema, bU as StartTaskRequest, bV as StartTaskRequestSchema, bW as StartTaskResponse, bX as StartTaskResponseSchema, bY as StopTaskEventData, bZ as StopTaskRequest, b_ as StopTaskRequestSchema, b$ as StopTaskResponse, c0 as StopTaskResponseSchema, c1 as StopTaskSchema, c2 as SubTaskAskUserMessage, c3 as SubTaskResultUpdatedEventData, c4 as SubTaskResultUpdatedEventSchema, c5 as SubTaskSummary, c6 as SubTaskSummarySchema, c7 as SystemMessageEventData, c8 as SystemMessageSchema, c9 as SystemMessageType, ca as TaskAgentInfo, cb as TaskAgentInfoSchema, cc as TaskArtifactsStats, cd as TaskArtifactsStatsSchema, ce as TaskArtifactsSummary, cf as TaskArtifactsSummarySchema, cg as TaskEvent, ch as TaskInfoUpdateEventData, ci as TaskInfoUpdateEventDataSchema, cj as TaskItem, ck as TaskItemSchema, cl as TaskMessageEventData, cm as TaskMessagePayload, cn as TaskMessageSchema, co as TaskSlashCommand, cp as TaskSlashCommandSchema, cq as TaskSlashCommandsUpdateEventData, cr as TaskSlashCommandsUpdateEventDataSchema, cs as TaskState, ct as TaskStateChangeEventData, cu as TaskStateChangeEventSchema, cv as TaskStoppedEventData, cw as TaskStoppedEventSchema, cx as TaskTodo, cy as TaskTodoSchema, cz as UnarchiveTaskRequest, cA as UnarchiveTaskRequestSchema, cB as UnarchiveTaskResponse, cC as UnarchiveTaskResponseSchema, cD as UpdateAgentInfoEventData, cE as UpdateAgentInfoEventSchema, cF as UpdateTaskAgentSessionIdEventData, cG as UpdateTaskAgentSessionIdEventSchema, cH as UpdateTaskTitleRequest, cI as UpdateTaskTitleRequestSchema, cJ as UpdateTaskTitleResponse, cK as UpdateTaskTitleResponseSchema, cL as ValidationResult, cM as WorkerAliveEventData, cN as WorkerAliveEventSchema, cO as WorkerExitEventData, cP as WorkerExitSchema, cQ as WorkerInitializedEventData, cR as WorkerInitializedSchema, cS as WorkerInitializingEventData, cT as WorkerInitializingSchema, cU as
|
|
2
|
+
import { P as PreviewMetadata } from './errors-DKsxjORj.cjs';
|
|
3
|
+
export { A as ActiveAgent, a as ActiveAgentSchema, b as AgentConfig, c as AgentConfigValidationError, d as AgentContext, e as AgentError, f as AgentLoadError, g as AgentMetadata, h as AgentMetadataSchema, i as AgentNotFoundError, j as AgentrixContext, k as ApiServerAliveEventData, l as ApiServerAliveEventSchema, m as AppAliveEventData, n as AppAliveEventSchema, o as ApprovePrRequest, p as ApprovePrRequestSchema, q as ApprovePrResponse, r as ApprovePrResponseSchema, s as ArchiveTaskRequest, t as ArchiveTaskRequestSchema, u as ArchiveTaskResponse, v as ArchiveTaskResponseSchema, w as AskUserMessage, x as AskUserMessageSchema, y as AskUserOption, z as AskUserOptionSchema, B as AskUserQuestion, C as AskUserQuestionSchema, D as AskUserResponseMessage, E as AskUserResponseMessageSchema, F as AskUserResponseReason, G as AskUserResponseReasonSchema, H as AskUserResponseStatus, I as AskUserResponseStatusSchema, J as AssociateRepoEventData, K as AssociateRepoEventDataSchema, L as CancelTaskEventData, M as CancelTaskRequest, N as CancelTaskRequestSchema, O as CancelTaskResponse, Q as CancelTaskResponseSchema, R as ChangeTaskTitleEventData, S as ChangeTaskTitleEventSchema, T as ChatWorkersStatusRequestEventData, U as ChatWorkersStatusRequestSchema, V as ChatWorkersStatusResponseEventData, W as ChatWorkersStatusResponseSchema, X as ClaudeAgentConfig, Y as ClaudeConfigSchema, Z as CompanionHeartbeatMessage, _ as CompanionHeartbeatRequestData, $ as CompanionHeartbeatRequestSchema, a0 as CompanionHeartbeatResponseData, a1 as CompanionHeartbeatResponseSchema, a2 as CompanionReminderMessage, a3 as CreateMergeRequestRequest, a4 as CreateMergeRequestResponse, a5 as CreateMergeRequestResponseSchema, a6 as CreateMergeRequestSchema, a7 as CreateTaskEventData, a8 as CreateTaskShareRequest, a9 as CreateTaskShareResponse, aa as CreateTaskShareResponseSchema, ab as CreateTaskShareSchema, ac as CreditExhaustedEventData, ad as CreditExhaustedEventSchema, ae as DaemonGitlabOperation, af as DaemonGitlabOperationSchema, ag as DaemonGitlabRequestEventData, ah as DaemonGitlabRequestSchema, ai as DaemonGitlabResponseEventData, aj as DaemonGitlabResponseSchema, ak as DeployAgentCompleteEventData, al as DeployAgentCompleteEventSchema, am as DeployAgentEventData, an as DeployAgentEventSchema, ao as EventAckData, ap as EventAckSchema, aq as EventData, ar as EventMap, as as EventName, at as EventSchemaMap, au as FRAMEWORK_TYPES, av as FillEventsRequest, aw as FillEventsRequestSchema, ax as FillEventsResponse, ay as FindTaskByAgentRequest, az as FindTaskByAgentRequestSchema, aA as FindTaskByAgentResponse, aB as FindTaskByAgentResponseSchema, aC as FrameworkNotSupportedError, aD as FrameworkType, aE as GetTaskSessionResponse, aF as GetTaskSessionResponseSchema, aG as HookFactory, aH as ListRecentTasksRequest, aI as ListRecentTasksRequestSchema, aJ as ListRecentTasksResponse, aK as ListRecentTasksResponseSchema, aL as ListSubTasksRequest, aM as ListSubTasksRequestSchema, aN as ListSubTasksResponse, aO as ListSubTasksResponseSchema, aP as ListTasksRequest, aQ as ListTasksRequestSchema, aR as ListTasksResponse, aS as ListTasksResponseSchema, aT as LoadAgentOptions, aU as MachineAliveEventData, aV as MachineAliveEventSchema, aW as MachineRtcRequestEventData, aX as MachineRtcRequestSchema, aY as MachineRtcResponseEventData, aZ as MachineRtcResponseSchema, a_ as MergePullRequestAck, a$ as MergePullRequestEventData, b0 as MergePullRequestEventSchema, b1 as MergeRequestEventData, b2 as MergeRequestEventSchema, b3 as MissingAgentFileError, b4 as PermissionResponseRequest, b5 as PermissionResponseRequestSchema, b6 as PermissionResponseResponse, b7 as PermissionResponseResponseSchema, b8 as PrStateChangedData, b9 as PreviewMetadataSchema, ba as PreviewMethod, bb as PreviewMethodSchema, bc as PreviewProjectType, bd as PreviewProjectTypeSchema, be as ProjectDirectoryResponse, bf as ProjectDirectoryResponseSchema, bg as ProjectEntry, bh as ProjectEntrySchema, bi as QueryEventsRequest, bj as QueryEventsRequestSchema, bk as QueryEventsResponse, bl as RecentTaskSummary, bm as RecentTaskSummarySchema, bn as RepositoryInitHookInput, bo as ResetTaskSessionEventData, bp as ResetTaskSessionSchema, bq as ResumeTaskEventData, br as ResumeTaskRequest, bs as ResumeTaskRequestSchema, bt as ResumeTaskResponse, bu as ResumeTaskResponseSchema, bv as RpcCallEventData, bw as RpcCallEventSchema, bx as RpcResponseData, by as RpcResponseSchema, bz as RtcIceServer, bA as RtcIceServerSchema, bB as RtcIceServersRequestEventData, bC as RtcIceServersRequestSchema, bD as RtcIceServersResponseEventData, bE as RtcIceServersResponseSchema, bF as RtcSignalEventData, bG as RtcSignalSchema, bH as SendMessageTarget, bI as SendTaskMessageRequest, bJ as SendTaskMessageRequestSchema, bK as SendTaskMessageResponse, bL as SendTaskMessageResponseSchema, bM as ShowModalEventData, bN as ShowModalEventDataSchema, bO as ShowModalRequest, bP as ShowModalRequestSchema, bQ as ShowModalResponse, bR as ShowModalResponseSchema, bS as ShutdownMachineData, bT as ShutdownMachineSchema, bU as StartTaskRequest, bV as StartTaskRequestSchema, bW as StartTaskResponse, bX as StartTaskResponseSchema, bY as StopTaskEventData, bZ as StopTaskRequest, b_ as StopTaskRequestSchema, b$ as StopTaskResponse, c0 as StopTaskResponseSchema, c1 as StopTaskSchema, c2 as SubTaskAskUserMessage, c3 as SubTaskResultUpdatedEventData, c4 as SubTaskResultUpdatedEventSchema, c5 as SubTaskSummary, c6 as SubTaskSummarySchema, c7 as SystemMessageEventData, c8 as SystemMessageSchema, c9 as SystemMessageType, ca as TaskAgentInfo, cb as TaskAgentInfoSchema, cc as TaskArtifactsStats, cd as TaskArtifactsStatsSchema, ce as TaskArtifactsSummary, cf as TaskArtifactsSummarySchema, cg as TaskEvent, ch as TaskInfoUpdateEventData, ci as TaskInfoUpdateEventDataSchema, cj as TaskItem, ck as TaskItemSchema, cl as TaskMessageEventData, cm as TaskMessagePayload, cn as TaskMessageSchema, co as TaskSlashCommand, cp as TaskSlashCommandSchema, cq as TaskSlashCommandsUpdateEventData, cr as TaskSlashCommandsUpdateEventDataSchema, cs as TaskState, ct as TaskStateChangeEventData, cu as TaskStateChangeEventSchema, cv as TaskStoppedEventData, cw as TaskStoppedEventSchema, cx as TaskTodo, cy as TaskTodoSchema, cz as UnarchiveTaskRequest, cA as UnarchiveTaskRequestSchema, cB as UnarchiveTaskResponse, cC as UnarchiveTaskResponseSchema, cD as UpdateAgentInfoEventData, cE as UpdateAgentInfoEventSchema, cF as UpdateTaskAgentSessionIdEventData, cG as UpdateTaskAgentSessionIdEventSchema, cH as UpdateTaskTitleRequest, cI as UpdateTaskTitleRequestSchema, cJ as UpdateTaskTitleResponse, cK as UpdateTaskTitleResponseSchema, cL as ValidationResult, cM as WorkerAliveEventData, cN as WorkerAliveEventSchema, cO as WorkerExitEventData, cP as WorkerExitSchema, cQ as WorkerInitializedEventData, cR as WorkerInitializedSchema, cS as WorkerInitializingEventData, cT as WorkerInitializingSchema, cU as WorkerPermissionModeEventData, cV as WorkerPermissionModeSchema, cW as WorkerPermissionModeValue, cX as WorkerPermissionModeValueSchema, cY as WorkerReadyEventData, cZ as WorkerReadySchema, c_ as WorkerRunningEventData, c$ as WorkerRunningSchema, d0 as WorkerStatusRequestEventData, d1 as WorkerStatusRequestSchema, d2 as WorkerStatusSnapshot, d3 as WorkerStatusSnapshotSchema, d4 as WorkerStatusValue, d5 as WorkerStatusValueSchema, d6 as WorkerTaskEvent, d7 as WorkspaceFileRequestEventData, d8 as WorkspaceFileRequestSchema, d9 as WorkspaceFileResponseEventData, da as WorkspaceFileResponseSchema, db as baseTaskSchema, dc as cancelTaskRequestSchema, dd as cancelTaskSchema, de as createEventId, df as createMergeRequestSchema, dg as createTaskSchema, dh as getAgentContext, di as isAskUserMessage, dj as isAskUserResponseMessage, dk as isCompanionHeartbeatMessage, dl as isCompanionReminderMessage, dm as isSDKMessage, dn as isSDKUserMessage, dp as isSubTaskAskUserMessage, dq as permissionResponseRequestSchema, dr as resumeTaskRequestSchema, ds as resumeTaskSchema, dt as setAgentContext, du as startTaskSchema, dv as stopTaskRequestSchema, dw as workerTaskEvents } from './errors-DKsxjORj.cjs';
|
|
4
4
|
import tweetnacl from 'tweetnacl';
|
|
5
5
|
import { SDKMessage } from '@anthropic-ai/claude-agent-sdk';
|
|
6
6
|
|
|
@@ -745,9 +745,9 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
745
745
|
pullRequestNumber: z.ZodNullable<z.ZodNumber>;
|
|
746
746
|
pullRequestUrl: z.ZodNullable<z.ZodString>;
|
|
747
747
|
pullRequestState: z.ZodNullable<z.ZodEnum<{
|
|
748
|
-
open: "open";
|
|
749
|
-
closed: "closed";
|
|
750
748
|
merged: "merged";
|
|
749
|
+
closed: "closed";
|
|
750
|
+
open: "open";
|
|
751
751
|
}>>;
|
|
752
752
|
pullRequestStateChangedAt: z.ZodNullable<z.ZodString>;
|
|
753
753
|
gitStats: z.ZodNullable<z.ZodObject<{
|
package/dist/node.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { aT as LoadAgentOptions, b as AgentConfig, cL as ValidationResult, aD as FrameworkType } from './errors-
|
|
2
|
-
export { c as AgentConfigValidationError, d as AgentContext, e as AgentError, f as AgentLoadError, g as AgentMetadata, h as AgentMetadataSchema, i as AgentNotFoundError, j as AgentrixContext, X as ClaudeAgentConfig, Y as ClaudeConfigSchema, au as FRAMEWORK_TYPES, aC as FrameworkNotSupportedError, aG as HookFactory, b3 as MissingAgentFileError, bn as RepositoryInitHookInput,
|
|
1
|
+
import { aT as LoadAgentOptions, b as AgentConfig, cL as ValidationResult, aD as FrameworkType } from './errors-DKsxjORj.cjs';
|
|
2
|
+
export { c as AgentConfigValidationError, d as AgentContext, e as AgentError, f as AgentLoadError, g as AgentMetadata, h as AgentMetadataSchema, i as AgentNotFoundError, j as AgentrixContext, X as ClaudeAgentConfig, Y as ClaudeConfigSchema, au as FRAMEWORK_TYPES, aC as FrameworkNotSupportedError, aG as HookFactory, b3 as MissingAgentFileError, bn as RepositoryInitHookInput, dh as getAgentContext, dt as setAgentContext } from './errors-DKsxjORj.cjs';
|
|
3
3
|
import '@anthropic-ai/claude-agent-sdk';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|