@agentrix/shared 2.0.12 → 2.0.13
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/index.cjs +66 -37
- package/dist/index.d.cts +185 -23
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -49,6 +49,7 @@ const FileStatsSchema = zod.z.object({
|
|
|
49
49
|
insertions: zod.z.number(),
|
|
50
50
|
deletions: zod.z.number()
|
|
51
51
|
});
|
|
52
|
+
const SenderTypeSchema = zod.z.enum(["human", "system", "agent"]);
|
|
52
53
|
|
|
53
54
|
const UserBasicInfoSchema = zod.z.object({
|
|
54
55
|
id: IdSchema,
|
|
@@ -200,6 +201,11 @@ const ShareAuthResponseSchema = zod.z.object({
|
|
|
200
201
|
permissions: TaskSharePermissionsSchema
|
|
201
202
|
});
|
|
202
203
|
|
|
204
|
+
const TaskTodoSchema = zod.z.object({
|
|
205
|
+
agentId: zod.z.string(),
|
|
206
|
+
title: zod.z.string().min(1).max(200),
|
|
207
|
+
instructions: zod.z.string()
|
|
208
|
+
});
|
|
203
209
|
const StartTaskRequestSchema = zod.z.object({
|
|
204
210
|
chatId: zod.z.string(),
|
|
205
211
|
customTitle: zod.z.string().min(1).max(200).optional(),
|
|
@@ -231,8 +237,10 @@ const StartTaskRequestSchema = zod.z.object({
|
|
|
231
237
|
// Multi-agent collaboration fields
|
|
232
238
|
agentId: zod.z.string().optional(),
|
|
233
239
|
// Agent ID to execute the task (overrides chat's first agent)
|
|
234
|
-
parentTaskId: zod.z.string().optional()
|
|
240
|
+
parentTaskId: zod.z.string().optional(),
|
|
235
241
|
// Parent task ID (for creating child tasks, machineId/cloudId inherited from parent)
|
|
242
|
+
todos: zod.z.array(TaskTodoSchema).optional()
|
|
243
|
+
// Structured todos for group tasks
|
|
236
244
|
}).refine((data) => data.machineId || data.cloudId || data.parentTaskId, {
|
|
237
245
|
message: "Must provide either machineId, cloudId, or parentTaskId (for sub-tasks)"
|
|
238
246
|
}).refine(
|
|
@@ -257,6 +265,7 @@ const StartTaskResponseSchema = zod.z.object({
|
|
|
257
265
|
taskId: IdSchema,
|
|
258
266
|
chatId: IdSchema,
|
|
259
267
|
agentId: zod.z.string(),
|
|
268
|
+
taskAgentIds: zod.z.array(zod.z.string()),
|
|
260
269
|
userId: zod.z.string(),
|
|
261
270
|
state: zod.z.string(),
|
|
262
271
|
machineId: zod.z.string().nullable(),
|
|
@@ -316,6 +325,8 @@ const TaskItemSchema = zod.z.object({
|
|
|
316
325
|
// Root task ID. If rootTaskId = id, this is a root task
|
|
317
326
|
parentTaskId: zod.z.string().nullable(),
|
|
318
327
|
// Direct parent task ID. Root task has parentTaskId = null
|
|
328
|
+
taskAgentIds: zod.z.array(zod.z.string()),
|
|
329
|
+
// Persisted agent IDs for this task
|
|
319
330
|
createdAt: zod.z.string(),
|
|
320
331
|
// ISO 8601 string
|
|
321
332
|
updatedAt: zod.z.string()
|
|
@@ -493,8 +504,11 @@ const SendTaskMessageRequestSchema = zod.z.object({
|
|
|
493
504
|
),
|
|
494
505
|
target: zod.z.enum(["agent", "user"]),
|
|
495
506
|
// Target: 'agent' or 'user' (required)
|
|
496
|
-
fromTaskId: zod.z.string().optional()
|
|
507
|
+
fromTaskId: zod.z.string().optional(),
|
|
497
508
|
// Source task ID (for inter-task messaging)
|
|
509
|
+
senderType: SenderTypeSchema,
|
|
510
|
+
senderId: zod.z.string(),
|
|
511
|
+
senderName: zod.z.string()
|
|
498
512
|
});
|
|
499
513
|
const SendTaskMessageResponseSchema = zod.z.object({
|
|
500
514
|
success: zod.z.boolean()
|
|
@@ -512,6 +526,17 @@ const GetTaskSessionResponseSchema = zod.z.object({
|
|
|
512
526
|
sessionPath: zod.z.string(),
|
|
513
527
|
state: zod.z.string()
|
|
514
528
|
});
|
|
529
|
+
const ListSubTasksRequestSchema = zod.z.object({
|
|
530
|
+
parentTaskId: IdSchema
|
|
531
|
+
});
|
|
532
|
+
const SubTaskSummarySchema = zod.z.object({
|
|
533
|
+
taskId: IdSchema,
|
|
534
|
+
title: zod.z.string().nullable(),
|
|
535
|
+
cwd: zod.z.string().nullable()
|
|
536
|
+
});
|
|
537
|
+
const ListSubTasksResponseSchema = zod.z.object({
|
|
538
|
+
tasks: zod.z.array(SubTaskSummarySchema)
|
|
539
|
+
});
|
|
515
540
|
const FindTaskByAgentRequestSchema = zod.z.object({
|
|
516
541
|
parentTaskId: zod.z.string(),
|
|
517
542
|
agentId: zod.z.string()
|
|
@@ -1188,6 +1213,12 @@ const AskUserResponseMessageSchema = zod.z.object({
|
|
|
1188
1213
|
status: AskUserResponseStatusSchema.optional(),
|
|
1189
1214
|
reason: AskUserResponseReasonSchema.optional()
|
|
1190
1215
|
});
|
|
1216
|
+
const TaskAgentInfoSchema = zod.z.object({
|
|
1217
|
+
id: zod.z.string(),
|
|
1218
|
+
name: zod.z.string(),
|
|
1219
|
+
type: zod.z.enum(["claude", "codex"]).optional().default("claude"),
|
|
1220
|
+
description: zod.z.string().optional()
|
|
1221
|
+
});
|
|
1191
1222
|
function isAskUserMessage(message) {
|
|
1192
1223
|
return typeof message === "object" && message !== null && "type" in message && message.type === "ask_user";
|
|
1193
1224
|
}
|
|
@@ -1197,6 +1228,9 @@ function isAskUserResponseMessage(message) {
|
|
|
1197
1228
|
function isSDKMessage(message) {
|
|
1198
1229
|
return typeof message === "object" && message !== null && "type" in message && message.type !== "ask_user" && message.type !== "ask_user_response";
|
|
1199
1230
|
}
|
|
1231
|
+
function isSDKUserMessage(message) {
|
|
1232
|
+
return isSDKMessage(message) && message.type === "user";
|
|
1233
|
+
}
|
|
1200
1234
|
const EventBaseSchema = zod.z.object({
|
|
1201
1235
|
eventId: zod.z.string()
|
|
1202
1236
|
});
|
|
@@ -1243,12 +1277,17 @@ const WorkerReadySchema = EventBaseSchema.extend({
|
|
|
1243
1277
|
duration: zod.z.number().optional()
|
|
1244
1278
|
// Duration of this execution round (milliseconds)
|
|
1245
1279
|
});
|
|
1280
|
+
const ActiveAgentSchema = zod.z.object({
|
|
1281
|
+
agentId: zod.z.string(),
|
|
1282
|
+
agentName: zod.z.string()
|
|
1283
|
+
});
|
|
1246
1284
|
const WorkerAliveEventSchema = EventBaseSchema.extend({
|
|
1247
1285
|
taskId: zod.z.string(),
|
|
1248
1286
|
machineId: zod.z.string(),
|
|
1249
1287
|
status: zod.z.string(),
|
|
1250
1288
|
// running, ready
|
|
1251
|
-
timestamp: zod.z.string()
|
|
1289
|
+
timestamp: zod.z.string(),
|
|
1290
|
+
activeAgents: zod.z.array(ActiveAgentSchema).optional()
|
|
1252
1291
|
});
|
|
1253
1292
|
const WorkerExitSchema = EventBaseSchema.extend({
|
|
1254
1293
|
taskId: zod.z.string(),
|
|
@@ -1259,7 +1298,8 @@ const WorkerExitSchema = EventBaseSchema.extend({
|
|
|
1259
1298
|
const WorkerRunningSchema = EventBaseSchema.extend({
|
|
1260
1299
|
taskId: zod.z.string(),
|
|
1261
1300
|
machineId: zod.z.string(),
|
|
1262
|
-
timestamp: zod.z.string()
|
|
1301
|
+
timestamp: zod.z.string(),
|
|
1302
|
+
activeAgents: zod.z.array(ActiveAgentSchema).optional()
|
|
1263
1303
|
});
|
|
1264
1304
|
const WorkerStatusRequestSchema = EventBaseSchema.extend({
|
|
1265
1305
|
taskId: zod.z.string(),
|
|
@@ -1308,7 +1348,7 @@ const baseTaskSchema = EventBaseSchema.extend({
|
|
|
1308
1348
|
// Maximum number of turns for the agent (default: 50)
|
|
1309
1349
|
repositoryId: zod.z.string().optional(),
|
|
1310
1350
|
// Existing repository ID (used to skip auto-association)
|
|
1311
|
-
repositorySourceType: zod.z.enum(["temporary", "directory", "git-server"]).optional(),
|
|
1351
|
+
repositorySourceType: zod.z.enum(["temporary", "directory", "git-server"]).optional().default("temporary"),
|
|
1312
1352
|
// Repository source type (determines workspace mode)
|
|
1313
1353
|
environmentVariables: zod.z.record(zod.z.string(), zod.z.string()).optional(),
|
|
1314
1354
|
// Environment variables for task execution
|
|
@@ -1317,46 +1357,23 @@ const baseTaskSchema = EventBaseSchema.extend({
|
|
|
1317
1357
|
// Root task ID of the task tree
|
|
1318
1358
|
parentTaskId: zod.z.string().optional(),
|
|
1319
1359
|
// Parent task ID (for sub tasks)
|
|
1320
|
-
|
|
1321
|
-
//
|
|
1360
|
+
taskAgents: zod.z.array(TaskAgentInfoSchema).optional(),
|
|
1361
|
+
// Agents available for this task
|
|
1362
|
+
todos: zod.z.array(TaskTodoSchema).optional(),
|
|
1363
|
+
// Structured todos for group tasks
|
|
1322
1364
|
taskType: zod.z.enum(["chat", "work"]).optional().default("work"),
|
|
1323
1365
|
// Task type: 'chat' for main chat, 'work' for task execution
|
|
1324
1366
|
customTitle: zod.z.string().min(1).max(200).optional()
|
|
1325
1367
|
// Custom task title (set by user/tool)
|
|
1326
1368
|
});
|
|
1327
1369
|
const createTaskSchema = baseTaskSchema.extend({
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
},
|
|
1332
|
-
{
|
|
1333
|
-
message: "Invalid SDKMessage format"
|
|
1334
|
-
}
|
|
1335
|
-
).optional(),
|
|
1336
|
-
encryptedMessage: zod.z.string().optional()
|
|
1337
|
-
// base64 sealed-box payload for local machines
|
|
1338
|
-
}).refine(
|
|
1339
|
-
(data) => {
|
|
1340
|
-
return !!data.message !== !!data.encryptedMessage;
|
|
1341
|
-
},
|
|
1342
|
-
{
|
|
1343
|
-
message: "Exactly one of message or encryptedMessage must be provided"
|
|
1344
|
-
}
|
|
1345
|
-
);
|
|
1370
|
+
event: zod.z.string(),
|
|
1371
|
+
eventData: zod.z.any()
|
|
1372
|
+
});
|
|
1346
1373
|
const resumeTaskSchema = baseTaskSchema.extend({
|
|
1347
1374
|
agentSessionId: zod.z.string(),
|
|
1348
|
-
event: zod.z.string()
|
|
1349
|
-
eventData: zod.z.any()
|
|
1350
|
-
message: zod.z.custom(
|
|
1351
|
-
(data) => {
|
|
1352
|
-
return typeof data === "object" && data !== null && "type" in data;
|
|
1353
|
-
},
|
|
1354
|
-
{
|
|
1355
|
-
message: "Invalid SDKMessage format"
|
|
1356
|
-
}
|
|
1357
|
-
).optional(),
|
|
1358
|
-
encryptedMessage: zod.z.string().optional()
|
|
1359
|
-
// base64 sealed-box for local tasks
|
|
1375
|
+
event: zod.z.string(),
|
|
1376
|
+
eventData: zod.z.any()
|
|
1360
1377
|
});
|
|
1361
1378
|
const cancelTaskSchema = EventBaseSchema.extend({
|
|
1362
1379
|
taskId: zod.z.string(),
|
|
@@ -1410,6 +1427,7 @@ const TaskMessageSchema = EventBaseSchema.extend({
|
|
|
1410
1427
|
from: zod.z.enum(["app", "api-server", "machine", "worker"]),
|
|
1411
1428
|
opCode: zod.z.string().optional(),
|
|
1412
1429
|
// eventId of the message this is responding to (e.g., ask_user_response → ask_user)
|
|
1430
|
+
groupId: zod.z.string().optional(),
|
|
1413
1431
|
sequence: zod.z.number().int().min(0).optional(),
|
|
1414
1432
|
message: zod.z.custom(
|
|
1415
1433
|
(data) => {
|
|
@@ -1424,6 +1442,9 @@ const TaskMessageSchema = EventBaseSchema.extend({
|
|
|
1424
1442
|
// Multi-agent collaboration fields
|
|
1425
1443
|
agentId: zod.z.string().optional(),
|
|
1426
1444
|
// Agent ID for message attribution
|
|
1445
|
+
senderType: SenderTypeSchema,
|
|
1446
|
+
senderId: zod.z.string(),
|
|
1447
|
+
senderName: zod.z.string(),
|
|
1427
1448
|
rootTaskId: zod.z.string().optional(),
|
|
1428
1449
|
// Root task ID for event routing
|
|
1429
1450
|
// Artifacts summary - attached to result messages for task completion
|
|
@@ -2637,6 +2658,7 @@ function getFileExtension(filePath) {
|
|
|
2637
2658
|
return filePath.substring(lastDot).toLowerCase();
|
|
2638
2659
|
}
|
|
2639
2660
|
|
|
2661
|
+
exports.ActiveAgentSchema = ActiveAgentSchema;
|
|
2640
2662
|
exports.AddChatMemberRequestSchema = AddChatMemberRequestSchema;
|
|
2641
2663
|
exports.AddChatMemberResponseSchema = AddChatMemberResponseSchema;
|
|
2642
2664
|
exports.AgentConfigValidationError = AgentConfigValidationError;
|
|
@@ -2759,6 +2781,8 @@ exports.ListOAuthServersResponseSchema = ListOAuthServersResponseSchema;
|
|
|
2759
2781
|
exports.ListPackagesQuerySchema = ListPackagesQuerySchema;
|
|
2760
2782
|
exports.ListPackagesResponseSchema = ListPackagesResponseSchema;
|
|
2761
2783
|
exports.ListRepositoriesResponseSchema = ListRepositoriesResponseSchema;
|
|
2784
|
+
exports.ListSubTasksRequestSchema = ListSubTasksRequestSchema;
|
|
2785
|
+
exports.ListSubTasksResponseSchema = ListSubTasksResponseSchema;
|
|
2762
2786
|
exports.ListTasksRequestSchema = ListTasksRequestSchema;
|
|
2763
2787
|
exports.ListTasksResponseSchema = ListTasksResponseSchema;
|
|
2764
2788
|
exports.ListTransactionsQuerySchema = ListTransactionsQuerySchema;
|
|
@@ -2816,6 +2840,7 @@ exports.RtcSignalSchema = RtcSignalSchema;
|
|
|
2816
2840
|
exports.STATIC_FILE_EXTENSIONS = STATIC_FILE_EXTENSIONS;
|
|
2817
2841
|
exports.SendTaskMessageRequestSchema = SendTaskMessageRequestSchema;
|
|
2818
2842
|
exports.SendTaskMessageResponseSchema = SendTaskMessageResponseSchema;
|
|
2843
|
+
exports.SenderTypeSchema = SenderTypeSchema;
|
|
2819
2844
|
exports.SetEnvironmentVariablesRequestSchema = SetEnvironmentVariablesRequestSchema;
|
|
2820
2845
|
exports.ShareAuthQuerySchema = ShareAuthQuerySchema;
|
|
2821
2846
|
exports.ShareAuthResponseSchema = ShareAuthResponseSchema;
|
|
@@ -2833,10 +2858,12 @@ exports.StopTaskRequestSchema = StopTaskRequestSchema;
|
|
|
2833
2858
|
exports.StopTaskResponseSchema = StopTaskResponseSchema;
|
|
2834
2859
|
exports.StopTaskSchema = StopTaskSchema;
|
|
2835
2860
|
exports.SubTaskResultUpdatedEventSchema = SubTaskResultUpdatedEventSchema;
|
|
2861
|
+
exports.SubTaskSummarySchema = SubTaskSummarySchema;
|
|
2836
2862
|
exports.SyncCloudMachineResponseSchema = SyncCloudMachineResponseSchema;
|
|
2837
2863
|
exports.SyncLocalMachineResponseSchema = SyncLocalMachineResponseSchema;
|
|
2838
2864
|
exports.SyncMachineRequestSchema = SyncMachineRequestSchema;
|
|
2839
2865
|
exports.SystemMessageSchema = SystemMessageSchema;
|
|
2866
|
+
exports.TaskAgentInfoSchema = TaskAgentInfoSchema;
|
|
2840
2867
|
exports.TaskArtifactsStatsSchema = TaskArtifactsStatsSchema;
|
|
2841
2868
|
exports.TaskArtifactsSummarySchema = TaskArtifactsSummarySchema;
|
|
2842
2869
|
exports.TaskInfoUpdateEventDataSchema = TaskInfoUpdateEventDataSchema;
|
|
@@ -2845,6 +2872,7 @@ exports.TaskMessageSchema = TaskMessageSchema;
|
|
|
2845
2872
|
exports.TaskSharePermissionsSchema = TaskSharePermissionsSchema;
|
|
2846
2873
|
exports.TaskStateChangeEventSchema = TaskStateChangeEventSchema;
|
|
2847
2874
|
exports.TaskStoppedEventSchema = TaskStoppedEventSchema;
|
|
2875
|
+
exports.TaskTodoSchema = TaskTodoSchema;
|
|
2848
2876
|
exports.TaskTransactionsResponseSchema = TaskTransactionsResponseSchema;
|
|
2849
2877
|
exports.ToggleOAuthServerRequestSchema = ToggleOAuthServerRequestSchema;
|
|
2850
2878
|
exports.ToggleOAuthServerResponseSchema = ToggleOAuthServerResponseSchema;
|
|
@@ -2914,6 +2942,7 @@ exports.getRandomBytes = getRandomBytes;
|
|
|
2914
2942
|
exports.isAskUserMessage = isAskUserMessage;
|
|
2915
2943
|
exports.isAskUserResponseMessage = isAskUserResponseMessage;
|
|
2916
2944
|
exports.isSDKMessage = isSDKMessage;
|
|
2945
|
+
exports.isSDKUserMessage = isSDKUserMessage;
|
|
2917
2946
|
exports.loadAgentConfig = loadAgentConfig;
|
|
2918
2947
|
exports.machineAuth = machineAuth;
|
|
2919
2948
|
exports.permissionResponseRequestSchema = permissionResponseRequestSchema;
|
package/dist/index.d.cts
CHANGED
|
@@ -52,6 +52,12 @@ declare const FileStatsSchema: z.ZodObject<{
|
|
|
52
52
|
deletions: z.ZodNumber;
|
|
53
53
|
}, z.core.$strip>;
|
|
54
54
|
type FileStats = z.infer<typeof FileStatsSchema>;
|
|
55
|
+
declare const SenderTypeSchema: z.ZodEnum<{
|
|
56
|
+
human: "human";
|
|
57
|
+
system: "system";
|
|
58
|
+
agent: "agent";
|
|
59
|
+
}>;
|
|
60
|
+
type SenderType = z.infer<typeof SenderTypeSchema>;
|
|
55
61
|
|
|
56
62
|
/**
|
|
57
63
|
* User HTTP schemas
|
|
@@ -395,6 +401,12 @@ type ShareAuthResponse = z.infer<typeof ShareAuthResponseSchema>;
|
|
|
395
401
|
* Extended with multi-agent collaboration support and custom task titles
|
|
396
402
|
*/
|
|
397
403
|
|
|
404
|
+
declare const TaskTodoSchema: z.ZodObject<{
|
|
405
|
+
agentId: z.ZodString;
|
|
406
|
+
title: z.ZodString;
|
|
407
|
+
instructions: z.ZodString;
|
|
408
|
+
}, z.core.$strip>;
|
|
409
|
+
type TaskTodo = z.infer<typeof TaskTodoSchema>;
|
|
398
410
|
/**
|
|
399
411
|
* POST /v1/tasks/start - Request schema
|
|
400
412
|
*/
|
|
@@ -417,6 +429,11 @@ declare const StartTaskRequestSchema: z.ZodObject<{
|
|
|
417
429
|
dataEncryptionKey: z.ZodOptional<z.ZodString>;
|
|
418
430
|
agentId: z.ZodOptional<z.ZodString>;
|
|
419
431
|
parentTaskId: z.ZodOptional<z.ZodString>;
|
|
432
|
+
todos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
433
|
+
agentId: z.ZodString;
|
|
434
|
+
title: z.ZodString;
|
|
435
|
+
instructions: z.ZodString;
|
|
436
|
+
}, z.core.$strip>>>;
|
|
420
437
|
}, z.core.$strip>;
|
|
421
438
|
type StartTaskRequest = z.infer<typeof StartTaskRequestSchema>;
|
|
422
439
|
declare const startTaskSchema: z.ZodObject<{
|
|
@@ -438,6 +455,11 @@ declare const startTaskSchema: z.ZodObject<{
|
|
|
438
455
|
dataEncryptionKey: z.ZodOptional<z.ZodString>;
|
|
439
456
|
agentId: z.ZodOptional<z.ZodString>;
|
|
440
457
|
parentTaskId: z.ZodOptional<z.ZodString>;
|
|
458
|
+
todos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
459
|
+
agentId: z.ZodString;
|
|
460
|
+
title: z.ZodString;
|
|
461
|
+
instructions: z.ZodString;
|
|
462
|
+
}, z.core.$strip>>>;
|
|
441
463
|
}, z.core.$strip>;
|
|
442
464
|
/**
|
|
443
465
|
* POST /v1/tasks/start - Response schema (201 Created)
|
|
@@ -446,6 +468,7 @@ declare const StartTaskResponseSchema: z.ZodObject<{
|
|
|
446
468
|
taskId: z.ZodString;
|
|
447
469
|
chatId: z.ZodString;
|
|
448
470
|
agentId: z.ZodString;
|
|
471
|
+
taskAgentIds: z.ZodArray<z.ZodString>;
|
|
449
472
|
userId: z.ZodString;
|
|
450
473
|
state: z.ZodString;
|
|
451
474
|
machineId: z.ZodNullable<z.ZodString>;
|
|
@@ -514,6 +537,7 @@ declare const TaskItemSchema: z.ZodObject<{
|
|
|
514
537
|
totalDuration: z.ZodNullable<z.ZodNumber>;
|
|
515
538
|
rootTaskId: z.ZodNullable<z.ZodString>;
|
|
516
539
|
parentTaskId: z.ZodNullable<z.ZodString>;
|
|
540
|
+
taskAgentIds: z.ZodArray<z.ZodString>;
|
|
517
541
|
createdAt: z.ZodString;
|
|
518
542
|
updatedAt: z.ZodString;
|
|
519
543
|
}, z.core.$strip>;
|
|
@@ -583,6 +607,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
583
607
|
totalDuration: z.ZodNullable<z.ZodNumber>;
|
|
584
608
|
rootTaskId: z.ZodNullable<z.ZodString>;
|
|
585
609
|
parentTaskId: z.ZodNullable<z.ZodString>;
|
|
610
|
+
taskAgentIds: z.ZodArray<z.ZodString>;
|
|
586
611
|
createdAt: z.ZodString;
|
|
587
612
|
updatedAt: z.ZodString;
|
|
588
613
|
}, z.core.$strip>>;
|
|
@@ -880,6 +905,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
880
905
|
totalDuration: z.ZodNullable<z.ZodNumber>;
|
|
881
906
|
rootTaskId: z.ZodNullable<z.ZodString>;
|
|
882
907
|
parentTaskId: z.ZodNullable<z.ZodString>;
|
|
908
|
+
taskAgentIds: z.ZodArray<z.ZodString>;
|
|
883
909
|
createdAt: z.ZodString;
|
|
884
910
|
updatedAt: z.ZodString;
|
|
885
911
|
}, z.core.$strip>;
|
|
@@ -946,6 +972,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
946
972
|
totalDuration: z.ZodNullable<z.ZodNumber>;
|
|
947
973
|
rootTaskId: z.ZodNullable<z.ZodString>;
|
|
948
974
|
parentTaskId: z.ZodNullable<z.ZodString>;
|
|
975
|
+
taskAgentIds: z.ZodArray<z.ZodString>;
|
|
949
976
|
createdAt: z.ZodString;
|
|
950
977
|
updatedAt: z.ZodString;
|
|
951
978
|
}, z.core.$strip>;
|
|
@@ -1014,6 +1041,7 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
|
|
|
1014
1041
|
totalDuration: z.ZodNullable<z.ZodNumber>;
|
|
1015
1042
|
rootTaskId: z.ZodNullable<z.ZodString>;
|
|
1016
1043
|
parentTaskId: z.ZodNullable<z.ZodString>;
|
|
1044
|
+
taskAgentIds: z.ZodArray<z.ZodString>;
|
|
1017
1045
|
createdAt: z.ZodString;
|
|
1018
1046
|
updatedAt: z.ZodString;
|
|
1019
1047
|
}, z.core.$strip>;
|
|
@@ -1036,10 +1064,17 @@ type SendMessageTarget = 'agent' | 'user';
|
|
|
1036
1064
|
declare const SendTaskMessageRequestSchema: z.ZodObject<{
|
|
1037
1065
|
message: z.ZodCustom<SDKUserMessage | SDKAssistantMessage, SDKUserMessage | SDKAssistantMessage>;
|
|
1038
1066
|
target: z.ZodEnum<{
|
|
1039
|
-
user: "user";
|
|
1040
1067
|
agent: "agent";
|
|
1068
|
+
user: "user";
|
|
1041
1069
|
}>;
|
|
1042
1070
|
fromTaskId: z.ZodOptional<z.ZodString>;
|
|
1071
|
+
senderType: z.ZodEnum<{
|
|
1072
|
+
human: "human";
|
|
1073
|
+
system: "system";
|
|
1074
|
+
agent: "agent";
|
|
1075
|
+
}>;
|
|
1076
|
+
senderId: z.ZodString;
|
|
1077
|
+
senderName: z.ZodString;
|
|
1043
1078
|
}, z.core.$strip>;
|
|
1044
1079
|
type SendTaskMessageRequest = z.infer<typeof SendTaskMessageRequestSchema>;
|
|
1045
1080
|
/**
|
|
@@ -1074,6 +1109,34 @@ declare const GetTaskSessionResponseSchema: z.ZodObject<{
|
|
|
1074
1109
|
state: z.ZodString;
|
|
1075
1110
|
}, z.core.$strip>;
|
|
1076
1111
|
type GetTaskSessionResponse = z.infer<typeof GetTaskSessionResponseSchema>;
|
|
1112
|
+
/**
|
|
1113
|
+
* GET /v1/tasks/sub-tasks - Query parameters schema
|
|
1114
|
+
* Lists direct child tasks by parentTaskId
|
|
1115
|
+
*/
|
|
1116
|
+
declare const ListSubTasksRequestSchema: z.ZodObject<{
|
|
1117
|
+
parentTaskId: z.ZodString;
|
|
1118
|
+
}, z.core.$strip>;
|
|
1119
|
+
type ListSubTasksRequest = z.infer<typeof ListSubTasksRequestSchema>;
|
|
1120
|
+
/**
|
|
1121
|
+
* Sub-task summary schema
|
|
1122
|
+
*/
|
|
1123
|
+
declare const SubTaskSummarySchema: z.ZodObject<{
|
|
1124
|
+
taskId: z.ZodString;
|
|
1125
|
+
title: z.ZodNullable<z.ZodString>;
|
|
1126
|
+
cwd: z.ZodNullable<z.ZodString>;
|
|
1127
|
+
}, z.core.$strip>;
|
|
1128
|
+
type SubTaskSummary = z.infer<typeof SubTaskSummarySchema>;
|
|
1129
|
+
/**
|
|
1130
|
+
* GET /v1/tasks/sub-tasks - Response schema
|
|
1131
|
+
*/
|
|
1132
|
+
declare const ListSubTasksResponseSchema: z.ZodObject<{
|
|
1133
|
+
tasks: z.ZodArray<z.ZodObject<{
|
|
1134
|
+
taskId: z.ZodString;
|
|
1135
|
+
title: z.ZodNullable<z.ZodString>;
|
|
1136
|
+
cwd: z.ZodNullable<z.ZodString>;
|
|
1137
|
+
}, z.core.$strip>>;
|
|
1138
|
+
}, z.core.$strip>;
|
|
1139
|
+
type ListSubTasksResponse = z.infer<typeof ListSubTasksResponseSchema>;
|
|
1077
1140
|
/**
|
|
1078
1141
|
* GET /v1/tasks/find-by-agent - Query parameters schema
|
|
1079
1142
|
* Finds a task by parentTaskId and agentId
|
|
@@ -1425,6 +1488,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
1425
1488
|
totalDuration: z.ZodNullable<z.ZodNumber>;
|
|
1426
1489
|
rootTaskId: z.ZodNullable<z.ZodString>;
|
|
1427
1490
|
parentTaskId: z.ZodNullable<z.ZodString>;
|
|
1491
|
+
taskAgentIds: z.ZodArray<z.ZodString>;
|
|
1428
1492
|
createdAt: z.ZodString;
|
|
1429
1493
|
updatedAt: z.ZodString;
|
|
1430
1494
|
}, z.core.$strip>>;
|
|
@@ -3273,9 +3337,9 @@ declare const AskUserResponseStatusSchema: z.ZodEnum<{
|
|
|
3273
3337
|
timeout: "timeout";
|
|
3274
3338
|
}>;
|
|
3275
3339
|
declare const AskUserResponseReasonSchema: z.ZodEnum<{
|
|
3340
|
+
system: "system";
|
|
3276
3341
|
user: "user";
|
|
3277
3342
|
timeout: "timeout";
|
|
3278
|
-
system: "system";
|
|
3279
3343
|
}>;
|
|
3280
3344
|
type AskUserResponseStatus = z.infer<typeof AskUserResponseStatusSchema>;
|
|
3281
3345
|
type AskUserResponseReason = z.infer<typeof AskUserResponseReasonSchema>;
|
|
@@ -3294,9 +3358,9 @@ declare const AskUserResponseMessageSchema: z.ZodObject<{
|
|
|
3294
3358
|
timeout: "timeout";
|
|
3295
3359
|
}>>;
|
|
3296
3360
|
reason: z.ZodOptional<z.ZodEnum<{
|
|
3361
|
+
system: "system";
|
|
3297
3362
|
user: "user";
|
|
3298
3363
|
timeout: "timeout";
|
|
3299
|
-
system: "system";
|
|
3300
3364
|
}>>;
|
|
3301
3365
|
}, z.core.$strip>;
|
|
3302
3366
|
type AskUserResponseMessage = z.infer<typeof AskUserResponseMessageSchema>;
|
|
@@ -3307,6 +3371,17 @@ type AskUserResponseMessage = z.infer<typeof AskUserResponseMessageSchema>;
|
|
|
3307
3371
|
* - AskUserResponseMessage: User responding to questions
|
|
3308
3372
|
*/
|
|
3309
3373
|
type TaskMessagePayload = SDKMessage | AskUserMessage | AskUserResponseMessage;
|
|
3374
|
+
|
|
3375
|
+
declare const TaskAgentInfoSchema: z.ZodObject<{
|
|
3376
|
+
id: z.ZodString;
|
|
3377
|
+
name: z.ZodString;
|
|
3378
|
+
type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
3379
|
+
claude: "claude";
|
|
3380
|
+
codex: "codex";
|
|
3381
|
+
}>>>;
|
|
3382
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3383
|
+
}, z.core.$strip>;
|
|
3384
|
+
type TaskAgentInfo = z.infer<typeof TaskAgentInfoSchema>;
|
|
3310
3385
|
/**
|
|
3311
3386
|
* Type guard to check if message is AskUserMessage
|
|
3312
3387
|
*/
|
|
@@ -3319,6 +3394,10 @@ declare function isAskUserResponseMessage(message: TaskMessagePayload): message
|
|
|
3319
3394
|
* Type guard to check if message is SDKMessage (not ask_user related)
|
|
3320
3395
|
*/
|
|
3321
3396
|
declare function isSDKMessage(message: TaskMessagePayload): message is SDKMessage;
|
|
3397
|
+
/**
|
|
3398
|
+
* Type guard to check if message is SDKUserMessage
|
|
3399
|
+
*/
|
|
3400
|
+
declare function isSDKUserMessage(message: TaskMessagePayload): message is SDKUserMessage;
|
|
3322
3401
|
/**
|
|
3323
3402
|
* Generate a unique event ID
|
|
3324
3403
|
* Uses crypto.randomUUID() if available (Node.js), otherwise falls back to a custom implementation
|
|
@@ -3382,12 +3461,24 @@ declare const WorkerReadySchema: z.ZodObject<{
|
|
|
3382
3461
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
3383
3462
|
}, z.core.$strip>;
|
|
3384
3463
|
type WorkerReadyEventData = z.infer<typeof WorkerReadySchema>;
|
|
3464
|
+
/**
|
|
3465
|
+
* Active agent info for typing indicator
|
|
3466
|
+
*/
|
|
3467
|
+
declare const ActiveAgentSchema: z.ZodObject<{
|
|
3468
|
+
agentId: z.ZodString;
|
|
3469
|
+
agentName: z.ZodString;
|
|
3470
|
+
}, z.core.$strip>;
|
|
3471
|
+
type ActiveAgent = z.infer<typeof ActiveAgentSchema>;
|
|
3385
3472
|
declare const WorkerAliveEventSchema: z.ZodObject<{
|
|
3386
3473
|
eventId: z.ZodString;
|
|
3387
3474
|
taskId: z.ZodString;
|
|
3388
3475
|
machineId: z.ZodString;
|
|
3389
3476
|
status: z.ZodString;
|
|
3390
3477
|
timestamp: z.ZodString;
|
|
3478
|
+
activeAgents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3479
|
+
agentId: z.ZodString;
|
|
3480
|
+
agentName: z.ZodString;
|
|
3481
|
+
}, z.core.$strip>>>;
|
|
3391
3482
|
}, z.core.$strip>;
|
|
3392
3483
|
type WorkerAliveEventData = z.infer<typeof WorkerAliveEventSchema>;
|
|
3393
3484
|
declare const WorkerExitSchema: z.ZodObject<{
|
|
@@ -3403,6 +3494,10 @@ declare const WorkerRunningSchema: z.ZodObject<{
|
|
|
3403
3494
|
taskId: z.ZodString;
|
|
3404
3495
|
machineId: z.ZodString;
|
|
3405
3496
|
timestamp: z.ZodString;
|
|
3497
|
+
activeAgents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3498
|
+
agentId: z.ZodString;
|
|
3499
|
+
agentName: z.ZodString;
|
|
3500
|
+
}, z.core.$strip>>>;
|
|
3406
3501
|
}, z.core.$strip>;
|
|
3407
3502
|
type WorkerRunningEventData = z.infer<typeof WorkerRunningSchema>;
|
|
3408
3503
|
declare const WorkerStatusRequestSchema: z.ZodObject<{
|
|
@@ -3452,15 +3547,28 @@ declare const baseTaskSchema: z.ZodObject<{
|
|
|
3452
3547
|
api_key: z.ZodOptional<z.ZodString>;
|
|
3453
3548
|
maxTurns: z.ZodOptional<z.ZodNumber>;
|
|
3454
3549
|
repositoryId: z.ZodOptional<z.ZodString>;
|
|
3455
|
-
repositorySourceType: z.ZodOptional<z.ZodEnum<{
|
|
3550
|
+
repositorySourceType: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
3456
3551
|
temporary: "temporary";
|
|
3457
3552
|
directory: "directory";
|
|
3458
3553
|
"git-server": "git-server";
|
|
3459
|
-
}
|
|
3554
|
+
}>>>;
|
|
3460
3555
|
environmentVariables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3461
3556
|
rootTaskId: z.ZodOptional<z.ZodString>;
|
|
3462
3557
|
parentTaskId: z.ZodOptional<z.ZodString>;
|
|
3463
|
-
|
|
3558
|
+
taskAgents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3559
|
+
id: z.ZodString;
|
|
3560
|
+
name: z.ZodString;
|
|
3561
|
+
type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
3562
|
+
claude: "claude";
|
|
3563
|
+
codex: "codex";
|
|
3564
|
+
}>>>;
|
|
3565
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3566
|
+
}, z.core.$strip>>>;
|
|
3567
|
+
todos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3568
|
+
agentId: z.ZodString;
|
|
3569
|
+
title: z.ZodString;
|
|
3570
|
+
instructions: z.ZodString;
|
|
3571
|
+
}, z.core.$strip>>>;
|
|
3464
3572
|
taskType: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
3465
3573
|
chat: "chat";
|
|
3466
3574
|
work: "work";
|
|
@@ -3487,22 +3595,35 @@ declare const createTaskSchema: z.ZodObject<{
|
|
|
3487
3595
|
api_key: z.ZodOptional<z.ZodString>;
|
|
3488
3596
|
maxTurns: z.ZodOptional<z.ZodNumber>;
|
|
3489
3597
|
repositoryId: z.ZodOptional<z.ZodString>;
|
|
3490
|
-
repositorySourceType: z.ZodOptional<z.ZodEnum<{
|
|
3598
|
+
repositorySourceType: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
3491
3599
|
temporary: "temporary";
|
|
3492
3600
|
directory: "directory";
|
|
3493
3601
|
"git-server": "git-server";
|
|
3494
|
-
}
|
|
3602
|
+
}>>>;
|
|
3495
3603
|
environmentVariables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3496
3604
|
rootTaskId: z.ZodOptional<z.ZodString>;
|
|
3497
3605
|
parentTaskId: z.ZodOptional<z.ZodString>;
|
|
3498
|
-
|
|
3606
|
+
taskAgents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3607
|
+
id: z.ZodString;
|
|
3608
|
+
name: z.ZodString;
|
|
3609
|
+
type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
3610
|
+
claude: "claude";
|
|
3611
|
+
codex: "codex";
|
|
3612
|
+
}>>>;
|
|
3613
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3614
|
+
}, z.core.$strip>>>;
|
|
3615
|
+
todos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3616
|
+
agentId: z.ZodString;
|
|
3617
|
+
title: z.ZodString;
|
|
3618
|
+
instructions: z.ZodString;
|
|
3619
|
+
}, z.core.$strip>>>;
|
|
3499
3620
|
taskType: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
3500
3621
|
chat: "chat";
|
|
3501
3622
|
work: "work";
|
|
3502
3623
|
}>>>;
|
|
3503
3624
|
customTitle: z.ZodOptional<z.ZodString>;
|
|
3504
|
-
|
|
3505
|
-
|
|
3625
|
+
event: z.ZodString;
|
|
3626
|
+
eventData: z.ZodAny;
|
|
3506
3627
|
}, z.core.$strip>;
|
|
3507
3628
|
type CreateTaskEventData = z.infer<typeof createTaskSchema>;
|
|
3508
3629
|
declare const resumeTaskSchema: z.ZodObject<{
|
|
@@ -3525,25 +3646,36 @@ declare const resumeTaskSchema: z.ZodObject<{
|
|
|
3525
3646
|
api_key: z.ZodOptional<z.ZodString>;
|
|
3526
3647
|
maxTurns: z.ZodOptional<z.ZodNumber>;
|
|
3527
3648
|
repositoryId: z.ZodOptional<z.ZodString>;
|
|
3528
|
-
repositorySourceType: z.ZodOptional<z.ZodEnum<{
|
|
3649
|
+
repositorySourceType: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
3529
3650
|
temporary: "temporary";
|
|
3530
3651
|
directory: "directory";
|
|
3531
3652
|
"git-server": "git-server";
|
|
3532
|
-
}
|
|
3653
|
+
}>>>;
|
|
3533
3654
|
environmentVariables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3534
3655
|
rootTaskId: z.ZodOptional<z.ZodString>;
|
|
3535
3656
|
parentTaskId: z.ZodOptional<z.ZodString>;
|
|
3536
|
-
|
|
3657
|
+
taskAgents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3658
|
+
id: z.ZodString;
|
|
3659
|
+
name: z.ZodString;
|
|
3660
|
+
type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
3661
|
+
claude: "claude";
|
|
3662
|
+
codex: "codex";
|
|
3663
|
+
}>>>;
|
|
3664
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3665
|
+
}, z.core.$strip>>>;
|
|
3666
|
+
todos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3667
|
+
agentId: z.ZodString;
|
|
3668
|
+
title: z.ZodString;
|
|
3669
|
+
instructions: z.ZodString;
|
|
3670
|
+
}, z.core.$strip>>>;
|
|
3537
3671
|
taskType: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
3538
3672
|
chat: "chat";
|
|
3539
3673
|
work: "work";
|
|
3540
3674
|
}>>>;
|
|
3541
3675
|
customTitle: z.ZodOptional<z.ZodString>;
|
|
3542
3676
|
agentSessionId: z.ZodString;
|
|
3543
|
-
event: z.
|
|
3544
|
-
eventData: z.
|
|
3545
|
-
message: z.ZodOptional<z.ZodCustom<SDKUserMessage, SDKUserMessage>>;
|
|
3546
|
-
encryptedMessage: z.ZodOptional<z.ZodString>;
|
|
3677
|
+
event: z.ZodString;
|
|
3678
|
+
eventData: z.ZodAny;
|
|
3547
3679
|
}, z.core.$strip>;
|
|
3548
3680
|
type ResumeTaskEventData = z.infer<typeof resumeTaskSchema>;
|
|
3549
3681
|
declare const cancelTaskSchema: z.ZodObject<{
|
|
@@ -3671,10 +3803,18 @@ declare const TaskMessageSchema: z.ZodObject<{
|
|
|
3671
3803
|
worker: "worker";
|
|
3672
3804
|
}>;
|
|
3673
3805
|
opCode: z.ZodOptional<z.ZodString>;
|
|
3806
|
+
groupId: z.ZodOptional<z.ZodString>;
|
|
3674
3807
|
sequence: z.ZodOptional<z.ZodNumber>;
|
|
3675
3808
|
message: z.ZodOptional<z.ZodCustom<TaskMessagePayload, TaskMessagePayload>>;
|
|
3676
3809
|
encryptedMessage: z.ZodOptional<z.ZodString>;
|
|
3677
3810
|
agentId: z.ZodOptional<z.ZodString>;
|
|
3811
|
+
senderType: z.ZodEnum<{
|
|
3812
|
+
human: "human";
|
|
3813
|
+
system: "system";
|
|
3814
|
+
agent: "agent";
|
|
3815
|
+
}>;
|
|
3816
|
+
senderId: z.ZodString;
|
|
3817
|
+
senderName: z.ZodString;
|
|
3678
3818
|
rootTaskId: z.ZodOptional<z.ZodString>;
|
|
3679
3819
|
artifacts: z.ZodOptional<z.ZodObject<{
|
|
3680
3820
|
commitHash: z.ZodString;
|
|
@@ -4198,6 +4338,7 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
4198
4338
|
totalDuration: z.ZodNullable<z.ZodNumber>;
|
|
4199
4339
|
rootTaskId: z.ZodNullable<z.ZodString>;
|
|
4200
4340
|
parentTaskId: z.ZodNullable<z.ZodString>;
|
|
4341
|
+
taskAgentIds: z.ZodArray<z.ZodString>;
|
|
4201
4342
|
createdAt: z.ZodString;
|
|
4202
4343
|
updatedAt: z.ZodString;
|
|
4203
4344
|
}, z.core.$strip>]>;
|
|
@@ -4321,10 +4462,9 @@ interface AgentrixContext {
|
|
|
4321
4462
|
*/
|
|
4322
4463
|
getParentTaskId(): string | null;
|
|
4323
4464
|
/**
|
|
4324
|
-
* Get all agents
|
|
4325
|
-
* Returns a map of { displayName: agentId }
|
|
4465
|
+
* Get all agents available for the current task
|
|
4326
4466
|
*/
|
|
4327
|
-
|
|
4467
|
+
getTaskAgents(): TaskAgentInfo[];
|
|
4328
4468
|
/**
|
|
4329
4469
|
* Create a new draft agent in the database
|
|
4330
4470
|
*/
|
|
@@ -4376,6 +4516,24 @@ interface AgentrixContext {
|
|
|
4376
4516
|
startSubTask(params: {
|
|
4377
4517
|
agentId: string;
|
|
4378
4518
|
message: SDKUserMessage;
|
|
4519
|
+
title: string;
|
|
4520
|
+
}): Promise<{
|
|
4521
|
+
taskId: string;
|
|
4522
|
+
}>;
|
|
4523
|
+
/**
|
|
4524
|
+
* Create a group task with structured todos
|
|
4525
|
+
* Automatically inherits chatId, rootTaskId, machineId/cloudId from current task
|
|
4526
|
+
* Sets parentTaskId to current taskId
|
|
4527
|
+
*/
|
|
4528
|
+
startGroupTask(params: {
|
|
4529
|
+
agentId: string;
|
|
4530
|
+
message: SDKUserMessage;
|
|
4531
|
+
title: string;
|
|
4532
|
+
todos: Array<{
|
|
4533
|
+
agentId: string;
|
|
4534
|
+
title: string;
|
|
4535
|
+
instructions: string;
|
|
4536
|
+
}>;
|
|
4379
4537
|
}): Promise<{
|
|
4380
4538
|
taskId: string;
|
|
4381
4539
|
}>;
|
|
@@ -4415,6 +4573,10 @@ interface AgentrixContext {
|
|
|
4415
4573
|
findSubTaskByAgent(agentId: string): Promise<{
|
|
4416
4574
|
taskId: string;
|
|
4417
4575
|
} | null>;
|
|
4576
|
+
/**
|
|
4577
|
+
* List direct sub tasks under the current task
|
|
4578
|
+
*/
|
|
4579
|
+
listSubTasks(): Promise<SubTaskSummary[]>;
|
|
4418
4580
|
/**
|
|
4419
4581
|
* Upload a file to the agent's storage
|
|
4420
4582
|
*/
|
|
@@ -4877,5 +5039,5 @@ declare const RELEVANT_DEPENDENCIES: readonly ["react", "react-dom", "vue", "vit
|
|
|
4877
5039
|
*/
|
|
4878
5040
|
declare function detectPreview(fs: FileSystemAdapter): Promise<PreviewMetadata | null>;
|
|
4879
5041
|
|
|
4880
|
-
export { AddChatMemberRequestSchema, AddChatMemberResponseSchema, AgentConfigValidationError, AgentCustomConfigSchema, AgentError, AgentLoadError, AgentMetadataSchema, AgentNotFoundError, AgentPermissionsSchema, AgentSchema, AgentTypeSchema, ApiErrorSchema, ApiServerAliveEventSchema, AppAliveEventSchema, ApprovalStatusResponseSchema, ApprovePrRequestSchema, ApprovePrResponseSchema, ArchiveTaskRequestSchema, ArchiveTaskResponseSchema, AskUserMessageSchema, AskUserOptionSchema, AskUserQuestionSchema, AskUserResponseMessageSchema, AskUserResponseReasonSchema, AskUserResponseStatusSchema, AssociateRepoEventDataSchema, BillingStatsResponseSchema, BranchSchema, CONFIG_FILES, CancelTaskRequestSchema, CancelTaskResponseSchema, ChangeTaskTitleEventSchema, ChargeTransactionSchema, ChatMemberInputSchema, ChatMemberSchema, ChatSchema, ChatTypeSchema, ChatWithMembersSchema, ChatWorkersStatusRequestSchema, ChatWorkersStatusResponseSchema, ClaudeConfigSchema, CloudJoinApprovalRequestSchema, CloudJoinRequestSchema, CloudJoinResultQuerySchema, CloudJoinStatusQuerySchema, CloudMachineSchema, CloudSchema, ConfirmUploadRequestSchema, ConfirmUploadResponseSchema, ConsumeTransactionSchema, CreateAgentRequestSchema, CreateAgentResponseSchema, CreateChatRequestSchema, CreateChatResponseSchema, CreateCloudRequestSchema, CreateCloudResponseSchema, CreateDraftAgentRequestSchema, CreateMergeRequestResponseSchema, CreateMergeRequestSchema, CreateOAuthServerRequestSchema, CreateOAuthServerResponseSchema, CreateTaskShareResponseSchema, CreateTaskShareSchema, CreditExhaustedEventSchema, CreditsPackageSchema, DateSchema, DeleteAgentResponseSchema, DeleteOAuthServerResponseSchema, DeployAgentCompleteEventSchema, DeployAgentEventSchema, DisplayConfigKeysSchema, DisplayConfigSchema, DraftAgentConfigSchema, DraftAgentSchema, ENTRY_FILE_PATTERNS, EnvironmentVariableSchema, EventAckSchema, EventSchemaMap, FRAMEWORK_TYPES, FileItemSchema, FileStatsSchema, FileVisibilitySchema, FillEventsRequestSchema, FindTaskByAgentRequestSchema, FindTaskByAgentResponseSchema, FrameworkNotSupportedError, GetAgentResponseSchema, GetChatResponseSchema, GetEnvironmentVariablesResponseSchema, GetGitServerResponseSchema, GetGitUrlQuerySchema, GetGitUrlResponseSchema, GetInstallUrlResponseSchema, GetOAuthServerResponseSchema, GetRepositoryResponseSchema, GetTaskSessionResponseSchema, GetUploadUrlsRequestSchema, GetUploadUrlsResponseSchema, GetUserAgentsResponseSchema, GitHubIssueListItemSchema, GitHubIssueSchema, GitServerSchema, IGNORED_DIRECTORIES, IdSchema, ListAgentsResponseSchema, ListBranchesResponseSchema, ListChatMembersResponseSchema, ListChatTasksResponseSchema, ListChatsQuerySchema, ListChatsResponseSchema, ListFilesQuerySchema, ListFilesResponseSchema, ListGitServersResponseSchema, ListIssuesQuerySchema, ListIssuesResponseSchema, ListMachinesResponseSchema, ListOAuthServersPublicResponseSchema, ListOAuthServersQuerySchema, ListOAuthServersResponseSchema, ListPackagesQuerySchema, ListPackagesResponseSchema, ListRepositoriesResponseSchema, ListTasksRequestSchema, ListTasksResponseSchema, ListTransactionsQuerySchema, ListTransactionsResponseSchema, LocalMachineSchema, LogoutResponseSchema, MachineAliveEventSchema, MachineApprovalRequestSchema, MachineApprovalStatusQuerySchema, MachineAuthAuthorizedResponseSchema, MachineAuthRequestSchema, MachineAuthResultQuerySchema, MachineRtcRequestSchema, MachineRtcResponseSchema, MergePullRequestEventSchema, MergeRequestEventSchema, MissingAgentFileError, OAuthAccountInfoSchema, OAuthBindCallbackResponseSchema, OAuthBindQuerySchema, OAuthBindResponseSchema, OAuthCallbackQuerySchema, OAuthCallbackResponseSchema, OAuthLoginQuerySchema, OAuthServerPublicSchema, OAuthServerSchema, OAuthUnbindResponseSchema, PaginatedResponseSchema, PermissionResponseRequestSchema, PermissionResponseResponseSchema, PreviewMetadataSchema, PreviewMethodSchema, PreviewProjectTypeSchema, ProjectDirectoryResponseSchema, ProjectEntrySchema, PublishDraftAgentRequestSchema, PublishDraftAgentResponseSchema, QueryEventsRequestSchema, RELEVANT_DEPENDENCIES, RTC_CHUNK_HEADER_SIZE, RechargeResponseSchema, RemoveChatMemberRequestSchema, RepositorySchema, ResetSecretRequestSchema, ResetSecretResponseSchema, ResumeTaskRequestSchema, ResumeTaskResponseSchema, RpcCallEventSchema, RpcResponseSchema, RtcChunkFlags, RtcIceServerSchema, RtcIceServersRequestSchema, RtcIceServersResponseSchema, RtcSignalSchema, STATIC_FILE_EXTENSIONS, SendTaskMessageRequestSchema, SendTaskMessageResponseSchema, SetEnvironmentVariablesRequestSchema, ShareAuthQuerySchema, ShareAuthResponseSchema, ShowModalEventDataSchema, ShowModalRequestSchema, ShowModalResponseSchema, ShutdownMachineSchema, SignatureAuthRequestSchema, SignatureAuthResponseSchema, SimpleSuccessSchema, StartTaskRequestSchema, StartTaskResponseSchema, StatsQuerySchema, StopTaskRequestSchema, StopTaskResponseSchema, StopTaskSchema, SubTaskResultUpdatedEventSchema, SyncCloudMachineResponseSchema, SyncLocalMachineResponseSchema, SyncMachineRequestSchema, SystemMessageSchema, TaskArtifactsStatsSchema, TaskArtifactsSummarySchema, TaskInfoUpdateEventDataSchema, TaskItemSchema, TaskMessageSchema, TaskSharePermissionsSchema, TaskStateChangeEventSchema, TaskStoppedEventSchema, TaskTransactionsResponseSchema, ToggleOAuthServerRequestSchema, ToggleOAuthServerResponseSchema, TransactionSchema, UnarchiveTaskRequestSchema, UnarchiveTaskResponseSchema, UpdateAgentRequestSchema, UpdateAgentResponseSchema, UpdateChatContextRequestSchema, UpdateChatContextResponseSchema, UpdateDraftAgentRequestSchema, UpdateDraftAgentResponseSchema, UpdateOAuthServerRequestSchema, UpdateOAuthServerResponseSchema, UpdateTaskAgentSessionIdEventSchema, UpdateTaskTitleRequestSchema, UpdateTaskTitleResponseSchema, UpdateUserProfileRequestSchema, UpdateUserProfileResponseSchema, UploadUrlResultSchema, UserBalanceResponseSchema, UserBasicInfoSchema, UserProfileResponseSchema, UserWithOAuthAccountsSchema, WorkerAliveEventSchema, WorkerExitSchema, WorkerInitializedSchema, WorkerInitializingSchema, WorkerReadySchema, WorkerRunningSchema, WorkerStatusRequestSchema, WorkerStatusValueSchema, WorkspaceFileRequestSchema, WorkspaceFileResponseSchema, assertAgentExists, assertFileExists, baseTaskSchema, buildRtcChunkFrame, cancelTaskRequestSchema, cancelTaskSchema, createEventId, createKeyPair, createKeyPairWithUit8Array, createMergeRequestSchema, createTaskSchema, decodeBase64, decodeRtcChunkHeader, decryptAES, decryptFileContent, decryptMachineEncryptionKey, decryptSdkMessage, decryptWithEphemeralKey, detectPreview, discoverPlugins, encodeBase64, encodeBase64Url, encodeRtcChunkHeader, encryptAES, encryptFileContent, encryptMachineEncryptionKey, encryptSdkMessage, encryptWithEphemeralKey, generateAESKey, generateAESKeyBase64, getAgentContext, getRandomBytes, isAskUserMessage, isAskUserResponseMessage, isSDKMessage, loadAgentConfig, machineAuth, permissionResponseRequestSchema, replacePromptPlaceholders, resumeTaskRequestSchema, resumeTaskSchema, setAgentContext, splitRtcChunkFrame, startTaskSchema, stopTaskRequestSchema, userAuth, validateAgentDirectory, validateFrameworkDirectory, workerAuth, workerTaskEvents };
|
|
4881
|
-
export type { AddChatMemberRequest, AddChatMemberResponse, Agent, AgentConfig, AgentContext, AgentCustomConfig, AgentMetadata, AgentPermissions, AgentType, AgentrixContext, ApiError, ApiServerAliveEventData, AppAliveEventData, ApprovalStatusResponse, ApprovePrRequest, ApprovePrResponse, ArchiveTaskRequest, ArchiveTaskResponse, AskUserMessage, AskUserOption, AskUserQuestion, AskUserResponseMessage, AskUserResponseReason, AskUserResponseStatus, AssociateRepoEventData, AuthPayload, BillingStatsResponse, Branch, CancelTaskEventData, CancelTaskRequest, CancelTaskResponse, ChangeTaskTitleEventData, ChargeTransaction, Chat, ChatMember, ChatMemberInput, ChatType, ChatWithMembers, ChatWorkersStatusRequestEventData, ChatWorkersStatusResponseEventData, ClaudeAgentConfig, ClientType, Cloud, CloudJoinApprovalRequest, CloudJoinRequest, CloudJoinResultQuery, CloudJoinStatusQuery, CloudMachine, ConfirmUploadRequest, ConfirmUploadResponse, ConsumeTransaction, CreateAgentRequest, CreateAgentResponse, CreateChatRequest, CreateChatResponse, CreateCloudRequest, CreateCloudResponse, CreateDraftAgentRequest, CreateMergeRequestRequest, CreateMergeRequestResponse, CreateOAuthServerRequest, CreateOAuthServerResponse, CreateTaskEventData, CreateTaskShareRequest, CreateTaskShareResponse, CreditExhaustedEventData, CreditsPackage, DeleteAgentResponse, DeleteOAuthServerResponse, DeployAgentCompleteEventData, DeployAgentEventData, DisplayConfig, DisplayConfigKeys, DraftAgent, DraftAgentConfig, EnvironmentVariable, EventAckData, EventData, EventMap, EventName, FileItem, FileStats, FileSystemAdapter, FileVisibility, FillEventsRequest, FillEventsResponse, FindTaskByAgentRequest, FindTaskByAgentResponse, FrameworkType, GetAgentResponse, GetChatResponse, GetEnvironmentVariablesResponse, GetGitServerResponse, GetGitUrlQuery, GetGitUrlResponse, GetInstallUrlResponse, GetOAuthServerResponse, GetRepositoryResponse, GetTaskSessionResponse, GetUploadUrlsRequest, GetUploadUrlsResponse, GetUserAgentsResponse, GitHubIssue, GitHubIssueListItem, GitServer, HookFactory, ListAgentsResponse, ListBranchesResponse, ListChatMembersResponse, ListChatTasksResponse, ListChatsQuery, ListChatsResponse, ListFilesQuery, ListFilesResponse, ListGitServersResponse, ListIssuesQuery, ListIssuesResponse, ListMachinesResponse, ListOAuthServersPublicResponse, ListOAuthServersQuery, ListOAuthServersResponse, ListPackagesQuery, ListPackagesResponse, ListRepositoriesResponse, ListTasksRequest, ListTasksResponse, ListTransactionsQuery, ListTransactionsResponse, LoadAgentOptions, LocalMachine, LogoutResponse, MachineAliveEventData, MachineApprovalRequest, MachineApprovalStatusQuery, MachineAuthAuthorizedResponse, MachineAuthRequest, MachineAuthResultQuery, MachineEncryptionKey, MachineRtcRequestEventData, MachineRtcResponseEventData, MergePullRequestAck, MergePullRequestEventData, MergeRequestEventData, OAuthAccountInfo, OAuthBindCallbackResponse, OAuthBindQuery, OAuthBindResponse, OAuthCallbackQuery, OAuthCallbackResponse, OAuthLoginQuery, OAuthServer, OAuthServerPublic, OAuthUnbindResponse, PermissionResponseRequest, PermissionResponseResponse, PrStateChangedData, PreviewMetadata, PreviewMethod, PreviewProjectType, ProjectDirectoryResponse, ProjectEntry, PublishDraftAgentRequest, PublishDraftAgentResponse, QueryEventsRequest, QueryEventsResponse, RechargeResponse, RemoveChatMemberRequest, Repository, RepositoryInitHookInput, ResetSecretRequest, ResetSecretResponse, ResumeTaskEventData, ResumeTaskRequest, ResumeTaskResponse, RpcCallEventData, RpcResponseData, RtcChunkFrame, RtcChunkHeader, RtcControlChannel, RtcControlMessage, RtcIceServer, RtcIceServersRequestEventData, RtcIceServersResponseEventData, RtcSignalEventData, SendMessageTarget, SendTaskMessageRequest, SendTaskMessageResponse, SetEnvironmentVariablesRequest, ShareAuthQuery, ShareAuthResponse, ShowModalEventData, ShowModalRequest, ShowModalResponse, ShutdownMachineData, SignatureAuthRequest, SignatureAuthResponse, SimpleSuccess, StartTaskRequest, StartTaskResponse, StatsQuery, StopTaskEventData, StopTaskRequest, StopTaskResponse, SubTaskResultUpdatedEventData, SyncCloudMachineResponse, SyncLocalMachineResponse, SyncMachineRequest, SystemMessageEventData, SystemMessageType, TaskArtifactsStats, TaskArtifactsSummary, TaskEvent, TaskInfoUpdateEventData, TaskItem, TaskMessageEventData, TaskMessagePayload, TaskSharePermissions, TaskState, TaskStateChangeEventData, TaskStoppedEventData, TaskTransactionsResponse, ToggleOAuthServerRequest, ToggleOAuthServerResponse, Transaction, UnarchiveTaskRequest, UnarchiveTaskResponse, UpdateAgentRequest, UpdateAgentResponse, UpdateChatContextRequest, UpdateChatContextResponse, UpdateDraftAgentRequest, UpdateDraftAgentResponse, UpdateOAuthServerRequest, UpdateOAuthServerResponse, UpdateTaskAgentSessionIdEventData, UpdateTaskTitleRequest, UpdateTaskTitleResponse, UpdateUserProfileRequest, UpdateUserProfileResponse, UploadUrlResult, UserBalanceResponse, UserBasicInfo, UserProfileResponse, UserWithOAuthAccounts, ValidationResult, WorkerAliveEventData, WorkerExitEventData, WorkerInitializedEventData, WorkerInitializingEventData, WorkerReadyEventData, WorkerRunningEventData, WorkerStatusRequestEventData, WorkerStatusValue, WorkerTaskEvent, WorkspaceFileRequestEventData, WorkspaceFileResponseEventData };
|
|
5042
|
+
export { ActiveAgentSchema, AddChatMemberRequestSchema, AddChatMemberResponseSchema, AgentConfigValidationError, AgentCustomConfigSchema, AgentError, AgentLoadError, AgentMetadataSchema, AgentNotFoundError, AgentPermissionsSchema, AgentSchema, AgentTypeSchema, ApiErrorSchema, ApiServerAliveEventSchema, AppAliveEventSchema, ApprovalStatusResponseSchema, ApprovePrRequestSchema, ApprovePrResponseSchema, ArchiveTaskRequestSchema, ArchiveTaskResponseSchema, AskUserMessageSchema, AskUserOptionSchema, AskUserQuestionSchema, AskUserResponseMessageSchema, AskUserResponseReasonSchema, AskUserResponseStatusSchema, AssociateRepoEventDataSchema, BillingStatsResponseSchema, BranchSchema, CONFIG_FILES, CancelTaskRequestSchema, CancelTaskResponseSchema, ChangeTaskTitleEventSchema, ChargeTransactionSchema, ChatMemberInputSchema, ChatMemberSchema, ChatSchema, ChatTypeSchema, ChatWithMembersSchema, ChatWorkersStatusRequestSchema, ChatWorkersStatusResponseSchema, ClaudeConfigSchema, CloudJoinApprovalRequestSchema, CloudJoinRequestSchema, CloudJoinResultQuerySchema, CloudJoinStatusQuerySchema, CloudMachineSchema, CloudSchema, ConfirmUploadRequestSchema, ConfirmUploadResponseSchema, ConsumeTransactionSchema, CreateAgentRequestSchema, CreateAgentResponseSchema, CreateChatRequestSchema, CreateChatResponseSchema, CreateCloudRequestSchema, CreateCloudResponseSchema, CreateDraftAgentRequestSchema, CreateMergeRequestResponseSchema, CreateMergeRequestSchema, CreateOAuthServerRequestSchema, CreateOAuthServerResponseSchema, CreateTaskShareResponseSchema, CreateTaskShareSchema, CreditExhaustedEventSchema, CreditsPackageSchema, DateSchema, DeleteAgentResponseSchema, DeleteOAuthServerResponseSchema, DeployAgentCompleteEventSchema, DeployAgentEventSchema, DisplayConfigKeysSchema, DisplayConfigSchema, DraftAgentConfigSchema, DraftAgentSchema, ENTRY_FILE_PATTERNS, EnvironmentVariableSchema, EventAckSchema, EventSchemaMap, FRAMEWORK_TYPES, FileItemSchema, FileStatsSchema, FileVisibilitySchema, FillEventsRequestSchema, FindTaskByAgentRequestSchema, FindTaskByAgentResponseSchema, FrameworkNotSupportedError, GetAgentResponseSchema, GetChatResponseSchema, GetEnvironmentVariablesResponseSchema, GetGitServerResponseSchema, GetGitUrlQuerySchema, GetGitUrlResponseSchema, GetInstallUrlResponseSchema, GetOAuthServerResponseSchema, GetRepositoryResponseSchema, GetTaskSessionResponseSchema, GetUploadUrlsRequestSchema, GetUploadUrlsResponseSchema, GetUserAgentsResponseSchema, GitHubIssueListItemSchema, GitHubIssueSchema, GitServerSchema, IGNORED_DIRECTORIES, IdSchema, ListAgentsResponseSchema, ListBranchesResponseSchema, ListChatMembersResponseSchema, ListChatTasksResponseSchema, ListChatsQuerySchema, ListChatsResponseSchema, ListFilesQuerySchema, ListFilesResponseSchema, ListGitServersResponseSchema, ListIssuesQuerySchema, ListIssuesResponseSchema, ListMachinesResponseSchema, ListOAuthServersPublicResponseSchema, ListOAuthServersQuerySchema, ListOAuthServersResponseSchema, ListPackagesQuerySchema, ListPackagesResponseSchema, ListRepositoriesResponseSchema, ListSubTasksRequestSchema, ListSubTasksResponseSchema, ListTasksRequestSchema, ListTasksResponseSchema, ListTransactionsQuerySchema, ListTransactionsResponseSchema, LocalMachineSchema, LogoutResponseSchema, MachineAliveEventSchema, MachineApprovalRequestSchema, MachineApprovalStatusQuerySchema, MachineAuthAuthorizedResponseSchema, MachineAuthRequestSchema, MachineAuthResultQuerySchema, MachineRtcRequestSchema, MachineRtcResponseSchema, MergePullRequestEventSchema, MergeRequestEventSchema, MissingAgentFileError, OAuthAccountInfoSchema, OAuthBindCallbackResponseSchema, OAuthBindQuerySchema, OAuthBindResponseSchema, OAuthCallbackQuerySchema, OAuthCallbackResponseSchema, OAuthLoginQuerySchema, OAuthServerPublicSchema, OAuthServerSchema, OAuthUnbindResponseSchema, PaginatedResponseSchema, PermissionResponseRequestSchema, PermissionResponseResponseSchema, PreviewMetadataSchema, PreviewMethodSchema, PreviewProjectTypeSchema, ProjectDirectoryResponseSchema, ProjectEntrySchema, PublishDraftAgentRequestSchema, PublishDraftAgentResponseSchema, QueryEventsRequestSchema, RELEVANT_DEPENDENCIES, RTC_CHUNK_HEADER_SIZE, RechargeResponseSchema, RemoveChatMemberRequestSchema, RepositorySchema, ResetSecretRequestSchema, ResetSecretResponseSchema, ResumeTaskRequestSchema, ResumeTaskResponseSchema, RpcCallEventSchema, RpcResponseSchema, RtcChunkFlags, RtcIceServerSchema, RtcIceServersRequestSchema, RtcIceServersResponseSchema, RtcSignalSchema, STATIC_FILE_EXTENSIONS, SendTaskMessageRequestSchema, SendTaskMessageResponseSchema, SenderTypeSchema, SetEnvironmentVariablesRequestSchema, ShareAuthQuerySchema, ShareAuthResponseSchema, ShowModalEventDataSchema, ShowModalRequestSchema, ShowModalResponseSchema, ShutdownMachineSchema, SignatureAuthRequestSchema, SignatureAuthResponseSchema, SimpleSuccessSchema, StartTaskRequestSchema, StartTaskResponseSchema, StatsQuerySchema, StopTaskRequestSchema, StopTaskResponseSchema, StopTaskSchema, SubTaskResultUpdatedEventSchema, SubTaskSummarySchema, SyncCloudMachineResponseSchema, SyncLocalMachineResponseSchema, SyncMachineRequestSchema, SystemMessageSchema, TaskAgentInfoSchema, TaskArtifactsStatsSchema, TaskArtifactsSummarySchema, TaskInfoUpdateEventDataSchema, TaskItemSchema, TaskMessageSchema, TaskSharePermissionsSchema, TaskStateChangeEventSchema, TaskStoppedEventSchema, TaskTodoSchema, TaskTransactionsResponseSchema, ToggleOAuthServerRequestSchema, ToggleOAuthServerResponseSchema, TransactionSchema, UnarchiveTaskRequestSchema, UnarchiveTaskResponseSchema, UpdateAgentRequestSchema, UpdateAgentResponseSchema, UpdateChatContextRequestSchema, UpdateChatContextResponseSchema, UpdateDraftAgentRequestSchema, UpdateDraftAgentResponseSchema, UpdateOAuthServerRequestSchema, UpdateOAuthServerResponseSchema, UpdateTaskAgentSessionIdEventSchema, UpdateTaskTitleRequestSchema, UpdateTaskTitleResponseSchema, UpdateUserProfileRequestSchema, UpdateUserProfileResponseSchema, UploadUrlResultSchema, UserBalanceResponseSchema, UserBasicInfoSchema, UserProfileResponseSchema, UserWithOAuthAccountsSchema, WorkerAliveEventSchema, WorkerExitSchema, WorkerInitializedSchema, WorkerInitializingSchema, WorkerReadySchema, WorkerRunningSchema, WorkerStatusRequestSchema, WorkerStatusValueSchema, WorkspaceFileRequestSchema, WorkspaceFileResponseSchema, assertAgentExists, assertFileExists, baseTaskSchema, buildRtcChunkFrame, cancelTaskRequestSchema, cancelTaskSchema, createEventId, createKeyPair, createKeyPairWithUit8Array, createMergeRequestSchema, createTaskSchema, decodeBase64, decodeRtcChunkHeader, decryptAES, decryptFileContent, decryptMachineEncryptionKey, decryptSdkMessage, decryptWithEphemeralKey, detectPreview, discoverPlugins, encodeBase64, encodeBase64Url, encodeRtcChunkHeader, encryptAES, encryptFileContent, encryptMachineEncryptionKey, encryptSdkMessage, encryptWithEphemeralKey, generateAESKey, generateAESKeyBase64, getAgentContext, getRandomBytes, isAskUserMessage, isAskUserResponseMessage, isSDKMessage, isSDKUserMessage, loadAgentConfig, machineAuth, permissionResponseRequestSchema, replacePromptPlaceholders, resumeTaskRequestSchema, resumeTaskSchema, setAgentContext, splitRtcChunkFrame, startTaskSchema, stopTaskRequestSchema, userAuth, validateAgentDirectory, validateFrameworkDirectory, workerAuth, workerTaskEvents };
|
|
5043
|
+
export type { ActiveAgent, AddChatMemberRequest, AddChatMemberResponse, Agent, AgentConfig, AgentContext, AgentCustomConfig, AgentMetadata, AgentPermissions, AgentType, AgentrixContext, ApiError, ApiServerAliveEventData, AppAliveEventData, ApprovalStatusResponse, ApprovePrRequest, ApprovePrResponse, ArchiveTaskRequest, ArchiveTaskResponse, AskUserMessage, AskUserOption, AskUserQuestion, AskUserResponseMessage, AskUserResponseReason, AskUserResponseStatus, AssociateRepoEventData, AuthPayload, BillingStatsResponse, Branch, CancelTaskEventData, CancelTaskRequest, CancelTaskResponse, ChangeTaskTitleEventData, ChargeTransaction, Chat, ChatMember, ChatMemberInput, ChatType, ChatWithMembers, ChatWorkersStatusRequestEventData, ChatWorkersStatusResponseEventData, ClaudeAgentConfig, ClientType, Cloud, CloudJoinApprovalRequest, CloudJoinRequest, CloudJoinResultQuery, CloudJoinStatusQuery, CloudMachine, ConfirmUploadRequest, ConfirmUploadResponse, ConsumeTransaction, CreateAgentRequest, CreateAgentResponse, CreateChatRequest, CreateChatResponse, CreateCloudRequest, CreateCloudResponse, CreateDraftAgentRequest, CreateMergeRequestRequest, CreateMergeRequestResponse, CreateOAuthServerRequest, CreateOAuthServerResponse, CreateTaskEventData, CreateTaskShareRequest, CreateTaskShareResponse, CreditExhaustedEventData, CreditsPackage, DeleteAgentResponse, DeleteOAuthServerResponse, DeployAgentCompleteEventData, DeployAgentEventData, DisplayConfig, DisplayConfigKeys, DraftAgent, DraftAgentConfig, EnvironmentVariable, EventAckData, EventData, EventMap, EventName, FileItem, FileStats, FileSystemAdapter, FileVisibility, FillEventsRequest, FillEventsResponse, FindTaskByAgentRequest, FindTaskByAgentResponse, FrameworkType, GetAgentResponse, GetChatResponse, GetEnvironmentVariablesResponse, GetGitServerResponse, GetGitUrlQuery, GetGitUrlResponse, GetInstallUrlResponse, GetOAuthServerResponse, GetRepositoryResponse, GetTaskSessionResponse, GetUploadUrlsRequest, GetUploadUrlsResponse, GetUserAgentsResponse, GitHubIssue, GitHubIssueListItem, GitServer, HookFactory, ListAgentsResponse, ListBranchesResponse, ListChatMembersResponse, ListChatTasksResponse, ListChatsQuery, ListChatsResponse, ListFilesQuery, ListFilesResponse, ListGitServersResponse, ListIssuesQuery, ListIssuesResponse, ListMachinesResponse, ListOAuthServersPublicResponse, ListOAuthServersQuery, ListOAuthServersResponse, ListPackagesQuery, ListPackagesResponse, ListRepositoriesResponse, ListSubTasksRequest, ListSubTasksResponse, ListTasksRequest, ListTasksResponse, ListTransactionsQuery, ListTransactionsResponse, LoadAgentOptions, LocalMachine, LogoutResponse, MachineAliveEventData, MachineApprovalRequest, MachineApprovalStatusQuery, MachineAuthAuthorizedResponse, MachineAuthRequest, MachineAuthResultQuery, MachineEncryptionKey, MachineRtcRequestEventData, MachineRtcResponseEventData, MergePullRequestAck, MergePullRequestEventData, MergeRequestEventData, OAuthAccountInfo, OAuthBindCallbackResponse, OAuthBindQuery, OAuthBindResponse, OAuthCallbackQuery, OAuthCallbackResponse, OAuthLoginQuery, OAuthServer, OAuthServerPublic, OAuthUnbindResponse, PermissionResponseRequest, PermissionResponseResponse, PrStateChangedData, PreviewMetadata, PreviewMethod, PreviewProjectType, ProjectDirectoryResponse, ProjectEntry, PublishDraftAgentRequest, PublishDraftAgentResponse, QueryEventsRequest, QueryEventsResponse, RechargeResponse, RemoveChatMemberRequest, Repository, RepositoryInitHookInput, ResetSecretRequest, ResetSecretResponse, ResumeTaskEventData, ResumeTaskRequest, ResumeTaskResponse, RpcCallEventData, RpcResponseData, RtcChunkFrame, RtcChunkHeader, RtcControlChannel, RtcControlMessage, RtcIceServer, RtcIceServersRequestEventData, RtcIceServersResponseEventData, RtcSignalEventData, SendMessageTarget, SendTaskMessageRequest, SendTaskMessageResponse, SenderType, SetEnvironmentVariablesRequest, ShareAuthQuery, ShareAuthResponse, ShowModalEventData, ShowModalRequest, ShowModalResponse, ShutdownMachineData, SignatureAuthRequest, SignatureAuthResponse, SimpleSuccess, StartTaskRequest, StartTaskResponse, StatsQuery, StopTaskEventData, StopTaskRequest, StopTaskResponse, SubTaskResultUpdatedEventData, SubTaskSummary, SyncCloudMachineResponse, SyncLocalMachineResponse, SyncMachineRequest, SystemMessageEventData, SystemMessageType, TaskAgentInfo, TaskArtifactsStats, TaskArtifactsSummary, TaskEvent, TaskInfoUpdateEventData, TaskItem, TaskMessageEventData, TaskMessagePayload, TaskSharePermissions, TaskState, TaskStateChangeEventData, TaskStoppedEventData, TaskTodo, TaskTransactionsResponse, ToggleOAuthServerRequest, ToggleOAuthServerResponse, Transaction, UnarchiveTaskRequest, UnarchiveTaskResponse, UpdateAgentRequest, UpdateAgentResponse, UpdateChatContextRequest, UpdateChatContextResponse, UpdateDraftAgentRequest, UpdateDraftAgentResponse, UpdateOAuthServerRequest, UpdateOAuthServerResponse, UpdateTaskAgentSessionIdEventData, UpdateTaskTitleRequest, UpdateTaskTitleResponse, UpdateUserProfileRequest, UpdateUserProfileResponse, UploadUrlResult, UserBalanceResponse, UserBasicInfo, UserProfileResponse, UserWithOAuthAccounts, ValidationResult, WorkerAliveEventData, WorkerExitEventData, WorkerInitializedEventData, WorkerInitializingEventData, WorkerReadyEventData, WorkerRunningEventData, WorkerStatusRequestEventData, WorkerStatusValue, WorkerTaskEvent, WorkspaceFileRequestEventData, WorkspaceFileResponseEventData };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentrix/shared",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.13",
|
|
4
4
|
"description": "Shared types and schemas for Agentrix projects",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"types": "./dist/index.d.cts",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"build": "shx rm -rf dist && tsc --noEmit && pkgroll"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@anthropic-ai/claude-agent-sdk": "^0.2.
|
|
18
|
+
"@anthropic-ai/claude-agent-sdk": "^0.2.31",
|
|
19
19
|
"@anthropic-ai/sdk": "^0.71.2",
|
|
20
20
|
"base64-js": "^1.5.1",
|
|
21
21
|
"tweetnacl": "^1.0.3",
|