@agentrix/shared 2.0.14 → 2.2.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/index.cjs +189 -14
- package/dist/index.d.cts +363 -27
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -53,9 +53,9 @@ declare const FileStatsSchema: z.ZodObject<{
|
|
|
53
53
|
}, z.core.$strip>;
|
|
54
54
|
type FileStats = z.infer<typeof FileStatsSchema>;
|
|
55
55
|
declare const SenderTypeSchema: z.ZodEnum<{
|
|
56
|
+
agent: "agent";
|
|
56
57
|
human: "human";
|
|
57
58
|
system: "system";
|
|
58
|
-
agent: "agent";
|
|
59
59
|
}>;
|
|
60
60
|
type SenderType = z.infer<typeof SenderTypeSchema>;
|
|
61
61
|
|
|
@@ -427,6 +427,7 @@ declare const StartTaskRequestSchema: z.ZodObject<{
|
|
|
427
427
|
"git-server": "git-server";
|
|
428
428
|
}>>;
|
|
429
429
|
dataEncryptionKey: z.ZodOptional<z.ZodString>;
|
|
430
|
+
ownerEncryptedDataKey: z.ZodOptional<z.ZodString>;
|
|
430
431
|
agentId: z.ZodOptional<z.ZodString>;
|
|
431
432
|
parentTaskId: z.ZodOptional<z.ZodString>;
|
|
432
433
|
todos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -453,6 +454,7 @@ declare const startTaskSchema: z.ZodObject<{
|
|
|
453
454
|
"git-server": "git-server";
|
|
454
455
|
}>>;
|
|
455
456
|
dataEncryptionKey: z.ZodOptional<z.ZodString>;
|
|
457
|
+
ownerEncryptedDataKey: z.ZodOptional<z.ZodString>;
|
|
456
458
|
agentId: z.ZodOptional<z.ZodString>;
|
|
457
459
|
parentTaskId: z.ZodOptional<z.ZodString>;
|
|
458
460
|
todos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -491,6 +493,7 @@ declare const TaskItemSchema: z.ZodObject<{
|
|
|
491
493
|
type: z.ZodDefault<z.ZodEnum<{
|
|
492
494
|
chat: "chat";
|
|
493
495
|
work: "work";
|
|
496
|
+
shadow: "shadow";
|
|
494
497
|
}>>;
|
|
495
498
|
chatId: z.ZodString;
|
|
496
499
|
userId: z.ZodString;
|
|
@@ -509,6 +512,7 @@ declare const TaskItemSchema: z.ZodObject<{
|
|
|
509
512
|
customTitle: z.ZodNullable<z.ZodString>;
|
|
510
513
|
agentSessionId: z.ZodNullable<z.ZodString>;
|
|
511
514
|
dataEncryptionKey: z.ZodNullable<z.ZodString>;
|
|
515
|
+
ownerEncryptedDataKey: z.ZodNullable<z.ZodString>;
|
|
512
516
|
cwd: z.ZodNullable<z.ZodString>;
|
|
513
517
|
userCwd: z.ZodNullable<z.ZodString>;
|
|
514
518
|
forceUserCwd: z.ZodNullable<z.ZodBoolean>;
|
|
@@ -561,6 +565,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
561
565
|
type: z.ZodDefault<z.ZodEnum<{
|
|
562
566
|
chat: "chat";
|
|
563
567
|
work: "work";
|
|
568
|
+
shadow: "shadow";
|
|
564
569
|
}>>;
|
|
565
570
|
chatId: z.ZodString;
|
|
566
571
|
userId: z.ZodString;
|
|
@@ -579,6 +584,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
579
584
|
customTitle: z.ZodNullable<z.ZodString>;
|
|
580
585
|
agentSessionId: z.ZodNullable<z.ZodString>;
|
|
581
586
|
dataEncryptionKey: z.ZodNullable<z.ZodString>;
|
|
587
|
+
ownerEncryptedDataKey: z.ZodNullable<z.ZodString>;
|
|
582
588
|
cwd: z.ZodNullable<z.ZodString>;
|
|
583
589
|
userCwd: z.ZodNullable<z.ZodString>;
|
|
584
590
|
forceUserCwd: z.ZodNullable<z.ZodBoolean>;
|
|
@@ -859,6 +865,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
859
865
|
type: z.ZodDefault<z.ZodEnum<{
|
|
860
866
|
chat: "chat";
|
|
861
867
|
work: "work";
|
|
868
|
+
shadow: "shadow";
|
|
862
869
|
}>>;
|
|
863
870
|
chatId: z.ZodString;
|
|
864
871
|
userId: z.ZodString;
|
|
@@ -877,6 +884,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
877
884
|
customTitle: z.ZodNullable<z.ZodString>;
|
|
878
885
|
agentSessionId: z.ZodNullable<z.ZodString>;
|
|
879
886
|
dataEncryptionKey: z.ZodNullable<z.ZodString>;
|
|
887
|
+
ownerEncryptedDataKey: z.ZodNullable<z.ZodString>;
|
|
880
888
|
cwd: z.ZodNullable<z.ZodString>;
|
|
881
889
|
userCwd: z.ZodNullable<z.ZodString>;
|
|
882
890
|
forceUserCwd: z.ZodNullable<z.ZodBoolean>;
|
|
@@ -926,6 +934,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
926
934
|
type: z.ZodDefault<z.ZodEnum<{
|
|
927
935
|
chat: "chat";
|
|
928
936
|
work: "work";
|
|
937
|
+
shadow: "shadow";
|
|
929
938
|
}>>;
|
|
930
939
|
chatId: z.ZodString;
|
|
931
940
|
userId: z.ZodString;
|
|
@@ -944,6 +953,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
944
953
|
customTitle: z.ZodNullable<z.ZodString>;
|
|
945
954
|
agentSessionId: z.ZodNullable<z.ZodString>;
|
|
946
955
|
dataEncryptionKey: z.ZodNullable<z.ZodString>;
|
|
956
|
+
ownerEncryptedDataKey: z.ZodNullable<z.ZodString>;
|
|
947
957
|
cwd: z.ZodNullable<z.ZodString>;
|
|
948
958
|
userCwd: z.ZodNullable<z.ZodString>;
|
|
949
959
|
forceUserCwd: z.ZodNullable<z.ZodBoolean>;
|
|
@@ -995,6 +1005,7 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
|
|
|
995
1005
|
type: z.ZodDefault<z.ZodEnum<{
|
|
996
1006
|
chat: "chat";
|
|
997
1007
|
work: "work";
|
|
1008
|
+
shadow: "shadow";
|
|
998
1009
|
}>>;
|
|
999
1010
|
chatId: z.ZodString;
|
|
1000
1011
|
userId: z.ZodString;
|
|
@@ -1013,6 +1024,7 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
|
|
|
1013
1024
|
customTitle: z.ZodNullable<z.ZodString>;
|
|
1014
1025
|
agentSessionId: z.ZodNullable<z.ZodString>;
|
|
1015
1026
|
dataEncryptionKey: z.ZodNullable<z.ZodString>;
|
|
1027
|
+
ownerEncryptedDataKey: z.ZodNullable<z.ZodString>;
|
|
1016
1028
|
cwd: z.ZodNullable<z.ZodString>;
|
|
1017
1029
|
userCwd: z.ZodNullable<z.ZodString>;
|
|
1018
1030
|
forceUserCwd: z.ZodNullable<z.ZodBoolean>;
|
|
@@ -1064,14 +1076,14 @@ type SendMessageTarget = 'agent' | 'user';
|
|
|
1064
1076
|
declare const SendTaskMessageRequestSchema: z.ZodObject<{
|
|
1065
1077
|
message: z.ZodCustom<SDKUserMessage | SDKAssistantMessage, SDKUserMessage | SDKAssistantMessage>;
|
|
1066
1078
|
target: z.ZodEnum<{
|
|
1067
|
-
agent: "agent";
|
|
1068
1079
|
user: "user";
|
|
1080
|
+
agent: "agent";
|
|
1069
1081
|
}>;
|
|
1070
1082
|
fromTaskId: z.ZodOptional<z.ZodString>;
|
|
1071
1083
|
senderType: z.ZodEnum<{
|
|
1084
|
+
agent: "agent";
|
|
1072
1085
|
human: "human";
|
|
1073
1086
|
system: "system";
|
|
1074
|
-
agent: "agent";
|
|
1075
1087
|
}>;
|
|
1076
1088
|
senderId: z.ZodString;
|
|
1077
1089
|
senderName: z.ZodString;
|
|
@@ -1137,6 +1149,59 @@ declare const ListSubTasksResponseSchema: z.ZodObject<{
|
|
|
1137
1149
|
}, z.core.$strip>>;
|
|
1138
1150
|
}, z.core.$strip>;
|
|
1139
1151
|
type ListSubTasksResponse = z.infer<typeof ListSubTasksResponseSchema>;
|
|
1152
|
+
/**
|
|
1153
|
+
* GET /v1/tasks/recent - Query parameters schema
|
|
1154
|
+
* Lists recent tasks in a chat for agent consumption (lightweight summary)
|
|
1155
|
+
*/
|
|
1156
|
+
declare const ListRecentTasksRequestSchema: z.ZodObject<{
|
|
1157
|
+
chatId: z.ZodString;
|
|
1158
|
+
limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
1159
|
+
status: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1160
|
+
all: "all";
|
|
1161
|
+
active: "active";
|
|
1162
|
+
completed: "completed";
|
|
1163
|
+
}>>>;
|
|
1164
|
+
}, z.core.$strip>;
|
|
1165
|
+
type ListRecentTasksRequest = z.infer<typeof ListRecentTasksRequestSchema>;
|
|
1166
|
+
/**
|
|
1167
|
+
* Recent task summary schema (lightweight, for agent review)
|
|
1168
|
+
*/
|
|
1169
|
+
declare const RecentTaskSummarySchema: z.ZodObject<{
|
|
1170
|
+
taskId: z.ZodString;
|
|
1171
|
+
type: z.ZodEnum<{
|
|
1172
|
+
chat: "chat";
|
|
1173
|
+
work: "work";
|
|
1174
|
+
shadow: "shadow";
|
|
1175
|
+
}>;
|
|
1176
|
+
state: z.ZodString;
|
|
1177
|
+
agentId: z.ZodString;
|
|
1178
|
+
title: z.ZodNullable<z.ZodString>;
|
|
1179
|
+
totalDuration: z.ZodNullable<z.ZodNumber>;
|
|
1180
|
+
createdAt: z.ZodString;
|
|
1181
|
+
updatedAt: z.ZodString;
|
|
1182
|
+
}, z.core.$strip>;
|
|
1183
|
+
type RecentTaskSummary = z.infer<typeof RecentTaskSummarySchema>;
|
|
1184
|
+
/**
|
|
1185
|
+
* GET /v1/tasks/recent - Response schema
|
|
1186
|
+
*/
|
|
1187
|
+
declare const ListRecentTasksResponseSchema: z.ZodObject<{
|
|
1188
|
+
tasks: z.ZodArray<z.ZodObject<{
|
|
1189
|
+
taskId: z.ZodString;
|
|
1190
|
+
type: z.ZodEnum<{
|
|
1191
|
+
chat: "chat";
|
|
1192
|
+
work: "work";
|
|
1193
|
+
shadow: "shadow";
|
|
1194
|
+
}>;
|
|
1195
|
+
state: z.ZodString;
|
|
1196
|
+
agentId: z.ZodString;
|
|
1197
|
+
title: z.ZodNullable<z.ZodString>;
|
|
1198
|
+
totalDuration: z.ZodNullable<z.ZodNumber>;
|
|
1199
|
+
createdAt: z.ZodString;
|
|
1200
|
+
updatedAt: z.ZodString;
|
|
1201
|
+
}, z.core.$strip>>;
|
|
1202
|
+
hasMore: z.ZodBoolean;
|
|
1203
|
+
}, z.core.$strip>;
|
|
1204
|
+
type ListRecentTasksResponse = z.infer<typeof ListRecentTasksResponseSchema>;
|
|
1140
1205
|
/**
|
|
1141
1206
|
* GET /v1/tasks/find-by-agent - Query parameters schema
|
|
1142
1207
|
* Finds a task by parentTaskId and agentId
|
|
@@ -1167,8 +1232,8 @@ declare const ChatMemberSchema: z.ZodObject<{
|
|
|
1167
1232
|
chatId: z.ZodString;
|
|
1168
1233
|
memberCode: z.ZodString;
|
|
1169
1234
|
type: z.ZodEnum<{
|
|
1170
|
-
human: "human";
|
|
1171
1235
|
agent: "agent";
|
|
1236
|
+
human: "human";
|
|
1172
1237
|
}>;
|
|
1173
1238
|
role: z.ZodString;
|
|
1174
1239
|
createdAt: z.ZodString;
|
|
@@ -1224,8 +1289,8 @@ declare const ChatWithMembersSchema: z.ZodObject<{
|
|
|
1224
1289
|
chatId: z.ZodString;
|
|
1225
1290
|
memberCode: z.ZodString;
|
|
1226
1291
|
type: z.ZodEnum<{
|
|
1227
|
-
human: "human";
|
|
1228
1292
|
agent: "agent";
|
|
1293
|
+
human: "human";
|
|
1229
1294
|
}>;
|
|
1230
1295
|
role: z.ZodString;
|
|
1231
1296
|
createdAt: z.ZodString;
|
|
@@ -1239,8 +1304,8 @@ type ChatWithMembers = z.infer<typeof ChatWithMembersSchema>;
|
|
|
1239
1304
|
declare const ChatMemberInputSchema: z.ZodObject<{
|
|
1240
1305
|
memberCode: z.ZodString;
|
|
1241
1306
|
type: z.ZodEnum<{
|
|
1242
|
-
human: "human";
|
|
1243
1307
|
agent: "agent";
|
|
1308
|
+
human: "human";
|
|
1244
1309
|
}>;
|
|
1245
1310
|
}, z.core.$strip>;
|
|
1246
1311
|
type ChatMemberInput = z.infer<typeof ChatMemberInputSchema>;
|
|
@@ -1255,10 +1320,12 @@ declare const CreateChatRequestSchema: z.ZodObject<{
|
|
|
1255
1320
|
members: z.ZodArray<z.ZodObject<{
|
|
1256
1321
|
memberCode: z.ZodString;
|
|
1257
1322
|
type: z.ZodEnum<{
|
|
1258
|
-
human: "human";
|
|
1259
1323
|
agent: "agent";
|
|
1324
|
+
human: "human";
|
|
1260
1325
|
}>;
|
|
1261
1326
|
}, z.core.$strip>>;
|
|
1327
|
+
dataEncryptionKey: z.ZodOptional<z.ZodString>;
|
|
1328
|
+
ownerEncryptedDataKey: z.ZodOptional<z.ZodString>;
|
|
1262
1329
|
}, z.core.$strip>;
|
|
1263
1330
|
type CreateChatRequest = z.infer<typeof CreateChatRequestSchema>;
|
|
1264
1331
|
/**
|
|
@@ -1283,8 +1350,8 @@ declare const CreateChatResponseSchema: z.ZodObject<{
|
|
|
1283
1350
|
chatId: z.ZodString;
|
|
1284
1351
|
memberCode: z.ZodString;
|
|
1285
1352
|
type: z.ZodEnum<{
|
|
1286
|
-
human: "human";
|
|
1287
1353
|
agent: "agent";
|
|
1354
|
+
human: "human";
|
|
1288
1355
|
}>;
|
|
1289
1356
|
role: z.ZodString;
|
|
1290
1357
|
createdAt: z.ZodString;
|
|
@@ -1324,8 +1391,8 @@ declare const ListChatsResponseSchema: z.ZodObject<{
|
|
|
1324
1391
|
chatId: z.ZodString;
|
|
1325
1392
|
memberCode: z.ZodString;
|
|
1326
1393
|
type: z.ZodEnum<{
|
|
1327
|
-
human: "human";
|
|
1328
1394
|
agent: "agent";
|
|
1395
|
+
human: "human";
|
|
1329
1396
|
}>;
|
|
1330
1397
|
role: z.ZodString;
|
|
1331
1398
|
createdAt: z.ZodString;
|
|
@@ -1357,8 +1424,8 @@ declare const GetChatResponseSchema: z.ZodObject<{
|
|
|
1357
1424
|
chatId: z.ZodString;
|
|
1358
1425
|
memberCode: z.ZodString;
|
|
1359
1426
|
type: z.ZodEnum<{
|
|
1360
|
-
human: "human";
|
|
1361
1427
|
agent: "agent";
|
|
1428
|
+
human: "human";
|
|
1362
1429
|
}>;
|
|
1363
1430
|
role: z.ZodString;
|
|
1364
1431
|
createdAt: z.ZodString;
|
|
@@ -1375,8 +1442,8 @@ declare const ListChatMembersResponseSchema: z.ZodObject<{
|
|
|
1375
1442
|
chatId: z.ZodString;
|
|
1376
1443
|
memberCode: z.ZodString;
|
|
1377
1444
|
type: z.ZodEnum<{
|
|
1378
|
-
human: "human";
|
|
1379
1445
|
agent: "agent";
|
|
1446
|
+
human: "human";
|
|
1380
1447
|
}>;
|
|
1381
1448
|
role: z.ZodString;
|
|
1382
1449
|
createdAt: z.ZodString;
|
|
@@ -1392,8 +1459,8 @@ declare const AddChatMemberRequestSchema: z.ZodObject<{
|
|
|
1392
1459
|
members: z.ZodArray<z.ZodObject<{
|
|
1393
1460
|
memberCode: z.ZodString;
|
|
1394
1461
|
type: z.ZodEnum<{
|
|
1395
|
-
human: "human";
|
|
1396
1462
|
agent: "agent";
|
|
1463
|
+
human: "human";
|
|
1397
1464
|
}>;
|
|
1398
1465
|
}, z.core.$strip>>;
|
|
1399
1466
|
}, z.core.$strip>;
|
|
@@ -1407,8 +1474,8 @@ declare const AddChatMemberResponseSchema: z.ZodObject<{
|
|
|
1407
1474
|
chatId: z.ZodString;
|
|
1408
1475
|
memberCode: z.ZodString;
|
|
1409
1476
|
type: z.ZodEnum<{
|
|
1410
|
-
human: "human";
|
|
1411
1477
|
agent: "agent";
|
|
1478
|
+
human: "human";
|
|
1412
1479
|
}>;
|
|
1413
1480
|
role: z.ZodString;
|
|
1414
1481
|
createdAt: z.ZodString;
|
|
@@ -1424,8 +1491,8 @@ declare const RemoveChatMemberRequestSchema: z.ZodObject<{
|
|
|
1424
1491
|
members: z.ZodArray<z.ZodObject<{
|
|
1425
1492
|
memberCode: z.ZodString;
|
|
1426
1493
|
type: z.ZodEnum<{
|
|
1427
|
-
human: "human";
|
|
1428
1494
|
agent: "agent";
|
|
1495
|
+
human: "human";
|
|
1429
1496
|
}>;
|
|
1430
1497
|
}, z.core.$strip>>;
|
|
1431
1498
|
}, z.core.$strip>;
|
|
@@ -1442,6 +1509,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
1442
1509
|
type: z.ZodDefault<z.ZodEnum<{
|
|
1443
1510
|
chat: "chat";
|
|
1444
1511
|
work: "work";
|
|
1512
|
+
shadow: "shadow";
|
|
1445
1513
|
}>>;
|
|
1446
1514
|
chatId: z.ZodString;
|
|
1447
1515
|
userId: z.ZodString;
|
|
@@ -1460,6 +1528,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
1460
1528
|
customTitle: z.ZodNullable<z.ZodString>;
|
|
1461
1529
|
agentSessionId: z.ZodNullable<z.ZodString>;
|
|
1462
1530
|
dataEncryptionKey: z.ZodNullable<z.ZodString>;
|
|
1531
|
+
ownerEncryptedDataKey: z.ZodNullable<z.ZodString>;
|
|
1463
1532
|
cwd: z.ZodNullable<z.ZodString>;
|
|
1464
1533
|
userCwd: z.ZodNullable<z.ZodString>;
|
|
1465
1534
|
forceUserCwd: z.ZodNullable<z.ZodBoolean>;
|
|
@@ -1536,6 +1605,7 @@ type UpdateChatContextResponse = z.infer<typeof UpdateChatContextResponseSchema>
|
|
|
1536
1605
|
declare const AgentTypeSchema: z.ZodEnum<{
|
|
1537
1606
|
claude: "claude";
|
|
1538
1607
|
codex: "codex";
|
|
1608
|
+
companion: "companion";
|
|
1539
1609
|
}>;
|
|
1540
1610
|
type AgentType = z.infer<typeof AgentTypeSchema>;
|
|
1541
1611
|
/**
|
|
@@ -1610,6 +1680,8 @@ declare const AgentCustomConfigSchema: z.ZodObject<{
|
|
|
1610
1680
|
permissionCanMergePr: z.ZodOptional<z.ZodString>;
|
|
1611
1681
|
permissionCanMergePrDesc: z.ZodOptional<z.ZodString>;
|
|
1612
1682
|
}, z.core.$strip>>>;
|
|
1683
|
+
machineId: z.ZodOptional<z.ZodString>;
|
|
1684
|
+
heartbeatTaskId: z.ZodOptional<z.ZodString>;
|
|
1613
1685
|
}, z.core.$strip>;
|
|
1614
1686
|
type AgentCustomConfig = z.infer<typeof AgentCustomConfigSchema>;
|
|
1615
1687
|
/**
|
|
@@ -1623,9 +1695,11 @@ type AgentPermissions = z.infer<typeof AgentPermissionsSchema>;
|
|
|
1623
1695
|
declare const AgentSchema: z.ZodObject<{
|
|
1624
1696
|
id: z.ZodString;
|
|
1625
1697
|
name: z.ZodString;
|
|
1698
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
1626
1699
|
type: z.ZodEnum<{
|
|
1627
1700
|
claude: "claude";
|
|
1628
1701
|
codex: "codex";
|
|
1702
|
+
companion: "companion";
|
|
1629
1703
|
}>;
|
|
1630
1704
|
avatar: z.ZodNullable<z.ZodString>;
|
|
1631
1705
|
userId: z.ZodString;
|
|
@@ -1658,6 +1732,8 @@ declare const AgentSchema: z.ZodObject<{
|
|
|
1658
1732
|
permissionCanMergePr: z.ZodOptional<z.ZodString>;
|
|
1659
1733
|
permissionCanMergePrDesc: z.ZodOptional<z.ZodString>;
|
|
1660
1734
|
}, z.core.$strip>>>;
|
|
1735
|
+
machineId: z.ZodOptional<z.ZodString>;
|
|
1736
|
+
heartbeatTaskId: z.ZodOptional<z.ZodString>;
|
|
1661
1737
|
}, z.core.$strip>>;
|
|
1662
1738
|
permissions: z.ZodNullable<z.ZodObject<{
|
|
1663
1739
|
role: z.ZodString;
|
|
@@ -1672,9 +1748,11 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
|
|
|
1672
1748
|
agents: z.ZodArray<z.ZodObject<{
|
|
1673
1749
|
id: z.ZodString;
|
|
1674
1750
|
name: z.ZodString;
|
|
1751
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
1675
1752
|
type: z.ZodEnum<{
|
|
1676
1753
|
claude: "claude";
|
|
1677
1754
|
codex: "codex";
|
|
1755
|
+
companion: "companion";
|
|
1678
1756
|
}>;
|
|
1679
1757
|
avatar: z.ZodNullable<z.ZodString>;
|
|
1680
1758
|
userId: z.ZodString;
|
|
@@ -1707,6 +1785,8 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
|
|
|
1707
1785
|
permissionCanMergePr: z.ZodOptional<z.ZodString>;
|
|
1708
1786
|
permissionCanMergePrDesc: z.ZodOptional<z.ZodString>;
|
|
1709
1787
|
}, z.core.$strip>>>;
|
|
1788
|
+
machineId: z.ZodOptional<z.ZodString>;
|
|
1789
|
+
heartbeatTaskId: z.ZodOptional<z.ZodString>;
|
|
1710
1790
|
}, z.core.$strip>>;
|
|
1711
1791
|
permissions: z.ZodNullable<z.ZodObject<{
|
|
1712
1792
|
role: z.ZodString;
|
|
@@ -1721,9 +1801,11 @@ type ListAgentsResponse = z.infer<typeof ListAgentsResponseSchema>;
|
|
|
1721
1801
|
declare const GetAgentResponseSchema: z.ZodObject<{
|
|
1722
1802
|
id: z.ZodString;
|
|
1723
1803
|
name: z.ZodString;
|
|
1804
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
1724
1805
|
type: z.ZodEnum<{
|
|
1725
1806
|
claude: "claude";
|
|
1726
1807
|
codex: "codex";
|
|
1808
|
+
companion: "companion";
|
|
1727
1809
|
}>;
|
|
1728
1810
|
avatar: z.ZodNullable<z.ZodString>;
|
|
1729
1811
|
userId: z.ZodString;
|
|
@@ -1756,6 +1838,8 @@ declare const GetAgentResponseSchema: z.ZodObject<{
|
|
|
1756
1838
|
permissionCanMergePr: z.ZodOptional<z.ZodString>;
|
|
1757
1839
|
permissionCanMergePrDesc: z.ZodOptional<z.ZodString>;
|
|
1758
1840
|
}, z.core.$strip>>>;
|
|
1841
|
+
machineId: z.ZodOptional<z.ZodString>;
|
|
1842
|
+
heartbeatTaskId: z.ZodOptional<z.ZodString>;
|
|
1759
1843
|
}, z.core.$strip>>;
|
|
1760
1844
|
permissions: z.ZodNullable<z.ZodObject<{
|
|
1761
1845
|
role: z.ZodString;
|
|
@@ -1771,6 +1855,7 @@ declare const CreateAgentRequestSchema: z.ZodObject<{
|
|
|
1771
1855
|
type: z.ZodEnum<{
|
|
1772
1856
|
claude: "claude";
|
|
1773
1857
|
codex: "codex";
|
|
1858
|
+
companion: "companion";
|
|
1774
1859
|
}>;
|
|
1775
1860
|
avatar: z.ZodOptional<z.ZodString>;
|
|
1776
1861
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1799,6 +1884,8 @@ declare const CreateAgentRequestSchema: z.ZodObject<{
|
|
|
1799
1884
|
permissionCanMergePr: z.ZodOptional<z.ZodString>;
|
|
1800
1885
|
permissionCanMergePrDesc: z.ZodOptional<z.ZodString>;
|
|
1801
1886
|
}, z.core.$strip>>>;
|
|
1887
|
+
machineId: z.ZodOptional<z.ZodString>;
|
|
1888
|
+
heartbeatTaskId: z.ZodOptional<z.ZodString>;
|
|
1802
1889
|
}, z.core.$strip>>>;
|
|
1803
1890
|
isSystem: z.ZodOptional<z.ZodBoolean>;
|
|
1804
1891
|
}, z.core.$strip>;
|
|
@@ -1809,9 +1896,11 @@ type CreateAgentRequest = z.infer<typeof CreateAgentRequestSchema>;
|
|
|
1809
1896
|
declare const CreateAgentResponseSchema: z.ZodObject<{
|
|
1810
1897
|
id: z.ZodString;
|
|
1811
1898
|
name: z.ZodString;
|
|
1899
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
1812
1900
|
type: z.ZodEnum<{
|
|
1813
1901
|
claude: "claude";
|
|
1814
1902
|
codex: "codex";
|
|
1903
|
+
companion: "companion";
|
|
1815
1904
|
}>;
|
|
1816
1905
|
avatar: z.ZodNullable<z.ZodString>;
|
|
1817
1906
|
userId: z.ZodString;
|
|
@@ -1844,6 +1933,8 @@ declare const CreateAgentResponseSchema: z.ZodObject<{
|
|
|
1844
1933
|
permissionCanMergePr: z.ZodOptional<z.ZodString>;
|
|
1845
1934
|
permissionCanMergePrDesc: z.ZodOptional<z.ZodString>;
|
|
1846
1935
|
}, z.core.$strip>>>;
|
|
1936
|
+
machineId: z.ZodOptional<z.ZodString>;
|
|
1937
|
+
heartbeatTaskId: z.ZodOptional<z.ZodString>;
|
|
1847
1938
|
}, z.core.$strip>>;
|
|
1848
1939
|
permissions: z.ZodNullable<z.ZodObject<{
|
|
1849
1940
|
role: z.ZodString;
|
|
@@ -1856,9 +1947,11 @@ type CreateAgentResponse = z.infer<typeof CreateAgentResponseSchema>;
|
|
|
1856
1947
|
*/
|
|
1857
1948
|
declare const UpdateAgentRequestSchema: z.ZodObject<{
|
|
1858
1949
|
name: z.ZodOptional<z.ZodString>;
|
|
1950
|
+
displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1859
1951
|
type: z.ZodOptional<z.ZodEnum<{
|
|
1860
1952
|
claude: "claude";
|
|
1861
1953
|
codex: "codex";
|
|
1954
|
+
companion: "companion";
|
|
1862
1955
|
}>>;
|
|
1863
1956
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1864
1957
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1887,6 +1980,8 @@ declare const UpdateAgentRequestSchema: z.ZodObject<{
|
|
|
1887
1980
|
permissionCanMergePr: z.ZodOptional<z.ZodString>;
|
|
1888
1981
|
permissionCanMergePrDesc: z.ZodOptional<z.ZodString>;
|
|
1889
1982
|
}, z.core.$strip>>>;
|
|
1983
|
+
machineId: z.ZodOptional<z.ZodString>;
|
|
1984
|
+
heartbeatTaskId: z.ZodOptional<z.ZodString>;
|
|
1890
1985
|
}, z.core.$strip>>>;
|
|
1891
1986
|
}, z.core.$strip>;
|
|
1892
1987
|
type UpdateAgentRequest = z.infer<typeof UpdateAgentRequestSchema>;
|
|
@@ -1896,9 +1991,11 @@ type UpdateAgentRequest = z.infer<typeof UpdateAgentRequestSchema>;
|
|
|
1896
1991
|
declare const UpdateAgentResponseSchema: z.ZodObject<{
|
|
1897
1992
|
id: z.ZodString;
|
|
1898
1993
|
name: z.ZodString;
|
|
1994
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
1899
1995
|
type: z.ZodEnum<{
|
|
1900
1996
|
claude: "claude";
|
|
1901
1997
|
codex: "codex";
|
|
1998
|
+
companion: "companion";
|
|
1902
1999
|
}>;
|
|
1903
2000
|
avatar: z.ZodNullable<z.ZodString>;
|
|
1904
2001
|
userId: z.ZodString;
|
|
@@ -1931,6 +2028,8 @@ declare const UpdateAgentResponseSchema: z.ZodObject<{
|
|
|
1931
2028
|
permissionCanMergePr: z.ZodOptional<z.ZodString>;
|
|
1932
2029
|
permissionCanMergePrDesc: z.ZodOptional<z.ZodString>;
|
|
1933
2030
|
}, z.core.$strip>>>;
|
|
2031
|
+
machineId: z.ZodOptional<z.ZodString>;
|
|
2032
|
+
heartbeatTaskId: z.ZodOptional<z.ZodString>;
|
|
1934
2033
|
}, z.core.$strip>>;
|
|
1935
2034
|
permissions: z.ZodNullable<z.ZodObject<{
|
|
1936
2035
|
role: z.ZodString;
|
|
@@ -2013,6 +2112,7 @@ declare const CreateDraftAgentRequestSchema: z.ZodObject<{
|
|
|
2013
2112
|
type: z.ZodDefault<z.ZodEnum<{
|
|
2014
2113
|
claude: "claude";
|
|
2015
2114
|
codex: "codex";
|
|
2115
|
+
companion: "companion";
|
|
2016
2116
|
}>>;
|
|
2017
2117
|
avatar: z.ZodOptional<z.ZodString>;
|
|
2018
2118
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -2067,6 +2167,7 @@ declare const DraftAgentSchema: z.ZodObject<{
|
|
|
2067
2167
|
type: z.ZodEnum<{
|
|
2068
2168
|
claude: "claude";
|
|
2069
2169
|
codex: "codex";
|
|
2170
|
+
companion: "companion";
|
|
2070
2171
|
}>;
|
|
2071
2172
|
avatar: z.ZodNullable<z.ZodString>;
|
|
2072
2173
|
userId: z.ZodString;
|
|
@@ -2173,6 +2274,7 @@ declare const UpdateDraftAgentResponseSchema: z.ZodObject<{
|
|
|
2173
2274
|
type: z.ZodEnum<{
|
|
2174
2275
|
claude: "claude";
|
|
2175
2276
|
codex: "codex";
|
|
2277
|
+
companion: "companion";
|
|
2176
2278
|
}>;
|
|
2177
2279
|
avatar: z.ZodNullable<z.ZodString>;
|
|
2178
2280
|
userId: z.ZodString;
|
|
@@ -2231,9 +2333,11 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
2231
2333
|
agents: z.ZodArray<z.ZodObject<{
|
|
2232
2334
|
id: z.ZodString;
|
|
2233
2335
|
name: z.ZodString;
|
|
2336
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
2234
2337
|
type: z.ZodEnum<{
|
|
2235
2338
|
claude: "claude";
|
|
2236
2339
|
codex: "codex";
|
|
2340
|
+
companion: "companion";
|
|
2237
2341
|
}>;
|
|
2238
2342
|
avatar: z.ZodNullable<z.ZodString>;
|
|
2239
2343
|
userId: z.ZodString;
|
|
@@ -2266,6 +2370,8 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
2266
2370
|
permissionCanMergePr: z.ZodOptional<z.ZodString>;
|
|
2267
2371
|
permissionCanMergePrDesc: z.ZodOptional<z.ZodString>;
|
|
2268
2372
|
}, z.core.$strip>>>;
|
|
2373
|
+
machineId: z.ZodOptional<z.ZodString>;
|
|
2374
|
+
heartbeatTaskId: z.ZodOptional<z.ZodString>;
|
|
2269
2375
|
}, z.core.$strip>>;
|
|
2270
2376
|
permissions: z.ZodNullable<z.ZodObject<{
|
|
2271
2377
|
role: z.ZodString;
|
|
@@ -2280,6 +2386,7 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
2280
2386
|
type: z.ZodEnum<{
|
|
2281
2387
|
claude: "claude";
|
|
2282
2388
|
codex: "codex";
|
|
2389
|
+
companion: "companion";
|
|
2283
2390
|
}>;
|
|
2284
2391
|
avatar: z.ZodNullable<z.ZodString>;
|
|
2285
2392
|
userId: z.ZodString;
|
|
@@ -3221,6 +3328,11 @@ declare const GitServerSchema: z.ZodObject<{
|
|
|
3221
3328
|
baseUrl: z.ZodString;
|
|
3222
3329
|
apiUrl: z.ZodString;
|
|
3223
3330
|
oauthServerId: z.ZodNullable<z.ZodString>;
|
|
3331
|
+
ownerId: z.ZodNullable<z.ZodString>;
|
|
3332
|
+
authModeDefault: z.ZodDefault<z.ZodString>;
|
|
3333
|
+
executionMode: z.ZodDefault<z.ZodString>;
|
|
3334
|
+
syncMode: z.ZodDefault<z.ZodString>;
|
|
3335
|
+
networkMode: z.ZodDefault<z.ZodString>;
|
|
3224
3336
|
enabled: z.ZodBoolean;
|
|
3225
3337
|
createdAt: z.ZodUnion<readonly [z.ZodString, z.ZodPipe<z.ZodDate, z.ZodTransform<string, Date>>]>;
|
|
3226
3338
|
updatedAt: z.ZodUnion<readonly [z.ZodString, z.ZodPipe<z.ZodDate, z.ZodTransform<string, Date>>]>;
|
|
@@ -3236,6 +3348,11 @@ declare const ListGitServersResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
3236
3348
|
baseUrl: z.ZodString;
|
|
3237
3349
|
apiUrl: z.ZodString;
|
|
3238
3350
|
oauthServerId: z.ZodNullable<z.ZodString>;
|
|
3351
|
+
ownerId: z.ZodNullable<z.ZodString>;
|
|
3352
|
+
authModeDefault: z.ZodDefault<z.ZodString>;
|
|
3353
|
+
executionMode: z.ZodDefault<z.ZodString>;
|
|
3354
|
+
syncMode: z.ZodDefault<z.ZodString>;
|
|
3355
|
+
networkMode: z.ZodDefault<z.ZodString>;
|
|
3239
3356
|
enabled: z.ZodBoolean;
|
|
3240
3357
|
createdAt: z.ZodUnion<readonly [z.ZodString, z.ZodPipe<z.ZodDate, z.ZodTransform<string, Date>>]>;
|
|
3241
3358
|
updatedAt: z.ZodUnion<readonly [z.ZodString, z.ZodPipe<z.ZodDate, z.ZodTransform<string, Date>>]>;
|
|
@@ -3251,6 +3368,11 @@ declare const GetGitServerResponseSchema: z.ZodObject<{
|
|
|
3251
3368
|
baseUrl: z.ZodString;
|
|
3252
3369
|
apiUrl: z.ZodString;
|
|
3253
3370
|
oauthServerId: z.ZodNullable<z.ZodString>;
|
|
3371
|
+
ownerId: z.ZodNullable<z.ZodString>;
|
|
3372
|
+
authModeDefault: z.ZodDefault<z.ZodString>;
|
|
3373
|
+
executionMode: z.ZodDefault<z.ZodString>;
|
|
3374
|
+
syncMode: z.ZodDefault<z.ZodString>;
|
|
3375
|
+
networkMode: z.ZodDefault<z.ZodString>;
|
|
3254
3376
|
enabled: z.ZodBoolean;
|
|
3255
3377
|
createdAt: z.ZodUnion<readonly [z.ZodString, z.ZodPipe<z.ZodDate, z.ZodTransform<string, Date>>]>;
|
|
3256
3378
|
updatedAt: z.ZodUnion<readonly [z.ZodString, z.ZodPipe<z.ZodDate, z.ZodTransform<string, Date>>]>;
|
|
@@ -3337,8 +3459,8 @@ declare const AskUserResponseStatusSchema: z.ZodEnum<{
|
|
|
3337
3459
|
timeout: "timeout";
|
|
3338
3460
|
}>;
|
|
3339
3461
|
declare const AskUserResponseReasonSchema: z.ZodEnum<{
|
|
3340
|
-
system: "system";
|
|
3341
3462
|
user: "user";
|
|
3463
|
+
system: "system";
|
|
3342
3464
|
timeout: "timeout";
|
|
3343
3465
|
}>;
|
|
3344
3466
|
type AskUserResponseStatus = z.infer<typeof AskUserResponseStatusSchema>;
|
|
@@ -3358,19 +3480,41 @@ declare const AskUserResponseMessageSchema: z.ZodObject<{
|
|
|
3358
3480
|
timeout: "timeout";
|
|
3359
3481
|
}>>;
|
|
3360
3482
|
reason: z.ZodOptional<z.ZodEnum<{
|
|
3361
|
-
system: "system";
|
|
3362
3483
|
user: "user";
|
|
3484
|
+
system: "system";
|
|
3363
3485
|
timeout: "timeout";
|
|
3364
3486
|
}>>;
|
|
3365
3487
|
}, z.core.$strip>;
|
|
3366
3488
|
type AskUserResponseMessage = z.infer<typeof AskUserResponseMessageSchema>;
|
|
3489
|
+
/**
|
|
3490
|
+
* Companion heartbeat message payload (System → Worker)
|
|
3491
|
+
* Sent by the platform scheduler to wake up companion for autonomous work
|
|
3492
|
+
*/
|
|
3493
|
+
interface CompanionHeartbeatMessage {
|
|
3494
|
+
type: 'companion_heartbeat';
|
|
3495
|
+
timestamp: string;
|
|
3496
|
+
}
|
|
3497
|
+
/**
|
|
3498
|
+
* Companion reminder message payload (Shadow → Main)
|
|
3499
|
+
* Sent by the heartbeat task (shadow) to remind the main companion worker.
|
|
3500
|
+
* Invisible to the user — only wakes up the main worker to act.
|
|
3501
|
+
* Keep content concise; use filePath for detailed analysis.
|
|
3502
|
+
*/
|
|
3503
|
+
interface CompanionReminderMessage {
|
|
3504
|
+
type: 'companion_reminder';
|
|
3505
|
+
content: string;
|
|
3506
|
+
filePath?: string;
|
|
3507
|
+
timestamp: string;
|
|
3508
|
+
}
|
|
3367
3509
|
/**
|
|
3368
3510
|
* Union type for task message payload
|
|
3369
3511
|
* - SDKMessage: Normal agent messages
|
|
3370
3512
|
* - AskUserMessage: Worker asking user questions
|
|
3371
3513
|
* - AskUserResponseMessage: User responding to questions
|
|
3514
|
+
* - CompanionHeartbeatMessage: Scheduled heartbeat to wake up companion
|
|
3515
|
+
* - CompanionReminderMessage: Shadow companion reminding main companion
|
|
3372
3516
|
*/
|
|
3373
|
-
type TaskMessagePayload = SDKMessage | AskUserMessage | AskUserResponseMessage;
|
|
3517
|
+
type TaskMessagePayload = SDKMessage | AskUserMessage | AskUserResponseMessage | CompanionHeartbeatMessage | CompanionReminderMessage;
|
|
3374
3518
|
|
|
3375
3519
|
declare const TaskAgentInfoSchema: z.ZodObject<{
|
|
3376
3520
|
id: z.ZodString;
|
|
@@ -3378,6 +3522,7 @@ declare const TaskAgentInfoSchema: z.ZodObject<{
|
|
|
3378
3522
|
type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
3379
3523
|
claude: "claude";
|
|
3380
3524
|
codex: "codex";
|
|
3525
|
+
companion: "companion";
|
|
3381
3526
|
}>>>;
|
|
3382
3527
|
description: z.ZodOptional<z.ZodString>;
|
|
3383
3528
|
}, z.core.$strip>;
|
|
@@ -3391,7 +3536,15 @@ declare function isAskUserMessage(message: TaskMessagePayload): message is AskUs
|
|
|
3391
3536
|
*/
|
|
3392
3537
|
declare function isAskUserResponseMessage(message: TaskMessagePayload): message is AskUserResponseMessage;
|
|
3393
3538
|
/**
|
|
3394
|
-
* Type guard to check if message is
|
|
3539
|
+
* Type guard to check if message is CompanionHeartbeatMessage
|
|
3540
|
+
*/
|
|
3541
|
+
declare function isCompanionHeartbeatMessage(message: TaskMessagePayload): message is CompanionHeartbeatMessage;
|
|
3542
|
+
/**
|
|
3543
|
+
* Type guard to check if message is CompanionReminderMessage
|
|
3544
|
+
*/
|
|
3545
|
+
declare function isCompanionReminderMessage(message: TaskMessagePayload): message is CompanionReminderMessage;
|
|
3546
|
+
/**
|
|
3547
|
+
* Type guard to check if message is SDKMessage (not ask_user related, not companion_heartbeat, not companion_reminder)
|
|
3395
3548
|
*/
|
|
3396
3549
|
declare function isSDKMessage(message: TaskMessagePayload): message is SDKMessage;
|
|
3397
3550
|
/**
|
|
@@ -3552,6 +3705,7 @@ declare const baseTaskSchema: z.ZodObject<{
|
|
|
3552
3705
|
directory: "directory";
|
|
3553
3706
|
"git-server": "git-server";
|
|
3554
3707
|
}>>>;
|
|
3708
|
+
gitServerId: z.ZodOptional<z.ZodString>;
|
|
3555
3709
|
environmentVariables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3556
3710
|
rootTaskId: z.ZodOptional<z.ZodString>;
|
|
3557
3711
|
parentTaskId: z.ZodOptional<z.ZodString>;
|
|
@@ -3561,6 +3715,7 @@ declare const baseTaskSchema: z.ZodObject<{
|
|
|
3561
3715
|
type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
3562
3716
|
claude: "claude";
|
|
3563
3717
|
codex: "codex";
|
|
3718
|
+
companion: "companion";
|
|
3564
3719
|
}>>>;
|
|
3565
3720
|
description: z.ZodOptional<z.ZodString>;
|
|
3566
3721
|
}, z.core.$strip>>>;
|
|
@@ -3572,6 +3727,7 @@ declare const baseTaskSchema: z.ZodObject<{
|
|
|
3572
3727
|
taskType: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
3573
3728
|
chat: "chat";
|
|
3574
3729
|
work: "work";
|
|
3730
|
+
shadow: "shadow";
|
|
3575
3731
|
}>>>;
|
|
3576
3732
|
customTitle: z.ZodOptional<z.ZodString>;
|
|
3577
3733
|
}, z.core.$strip>;
|
|
@@ -3600,6 +3756,7 @@ declare const createTaskSchema: z.ZodObject<{
|
|
|
3600
3756
|
directory: "directory";
|
|
3601
3757
|
"git-server": "git-server";
|
|
3602
3758
|
}>>>;
|
|
3759
|
+
gitServerId: z.ZodOptional<z.ZodString>;
|
|
3603
3760
|
environmentVariables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3604
3761
|
rootTaskId: z.ZodOptional<z.ZodString>;
|
|
3605
3762
|
parentTaskId: z.ZodOptional<z.ZodString>;
|
|
@@ -3609,6 +3766,7 @@ declare const createTaskSchema: z.ZodObject<{
|
|
|
3609
3766
|
type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
3610
3767
|
claude: "claude";
|
|
3611
3768
|
codex: "codex";
|
|
3769
|
+
companion: "companion";
|
|
3612
3770
|
}>>>;
|
|
3613
3771
|
description: z.ZodOptional<z.ZodString>;
|
|
3614
3772
|
}, z.core.$strip>>>;
|
|
@@ -3620,6 +3778,7 @@ declare const createTaskSchema: z.ZodObject<{
|
|
|
3620
3778
|
taskType: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
3621
3779
|
chat: "chat";
|
|
3622
3780
|
work: "work";
|
|
3781
|
+
shadow: "shadow";
|
|
3623
3782
|
}>>>;
|
|
3624
3783
|
customTitle: z.ZodOptional<z.ZodString>;
|
|
3625
3784
|
event: z.ZodString;
|
|
@@ -3651,6 +3810,7 @@ declare const resumeTaskSchema: z.ZodObject<{
|
|
|
3651
3810
|
directory: "directory";
|
|
3652
3811
|
"git-server": "git-server";
|
|
3653
3812
|
}>>>;
|
|
3813
|
+
gitServerId: z.ZodOptional<z.ZodString>;
|
|
3654
3814
|
environmentVariables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3655
3815
|
rootTaskId: z.ZodOptional<z.ZodString>;
|
|
3656
3816
|
parentTaskId: z.ZodOptional<z.ZodString>;
|
|
@@ -3660,6 +3820,7 @@ declare const resumeTaskSchema: z.ZodObject<{
|
|
|
3660
3820
|
type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
3661
3821
|
claude: "claude";
|
|
3662
3822
|
codex: "codex";
|
|
3823
|
+
companion: "companion";
|
|
3663
3824
|
}>>>;
|
|
3664
3825
|
description: z.ZodOptional<z.ZodString>;
|
|
3665
3826
|
}, z.core.$strip>>>;
|
|
@@ -3671,6 +3832,7 @@ declare const resumeTaskSchema: z.ZodObject<{
|
|
|
3671
3832
|
taskType: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
3672
3833
|
chat: "chat";
|
|
3673
3834
|
work: "work";
|
|
3835
|
+
shadow: "shadow";
|
|
3674
3836
|
}>>>;
|
|
3675
3837
|
customTitle: z.ZodOptional<z.ZodString>;
|
|
3676
3838
|
agentSessionId: z.ZodString;
|
|
@@ -3805,13 +3967,14 @@ declare const TaskMessageSchema: z.ZodObject<{
|
|
|
3805
3967
|
opCode: z.ZodOptional<z.ZodString>;
|
|
3806
3968
|
groupId: z.ZodOptional<z.ZodString>;
|
|
3807
3969
|
sequence: z.ZodOptional<z.ZodNumber>;
|
|
3808
|
-
message: z.ZodOptional<z.ZodCustom<
|
|
3970
|
+
message: z.ZodOptional<z.ZodCustom<any, any>>;
|
|
3971
|
+
messageType: z.ZodOptional<z.ZodString>;
|
|
3809
3972
|
encryptedMessage: z.ZodOptional<z.ZodString>;
|
|
3810
3973
|
agentId: z.ZodOptional<z.ZodString>;
|
|
3811
3974
|
senderType: z.ZodEnum<{
|
|
3975
|
+
agent: "agent";
|
|
3812
3976
|
human: "human";
|
|
3813
3977
|
system: "system";
|
|
3814
|
-
agent: "agent";
|
|
3815
3978
|
}>;
|
|
3816
3979
|
senderId: z.ZodString;
|
|
3817
3980
|
senderName: z.ZodString;
|
|
@@ -3907,7 +4070,9 @@ declare const MachineRtcRequestSchema: z.ZodObject<{
|
|
|
3907
4070
|
machineId: z.ZodString;
|
|
3908
4071
|
sessionId: z.ZodString;
|
|
3909
4072
|
role: z.ZodLiteral<"app">;
|
|
4073
|
+
taskId: z.ZodOptional<z.ZodString>;
|
|
3910
4074
|
userId: z.ZodOptional<z.ZodString>;
|
|
4075
|
+
workspaceUserId: z.ZodOptional<z.ZodString>;
|
|
3911
4076
|
}, z.core.$strip>;
|
|
3912
4077
|
type MachineRtcRequestEventData = z.infer<typeof MachineRtcRequestSchema>;
|
|
3913
4078
|
declare const MachineRtcResponseSchema: z.ZodObject<{
|
|
@@ -3933,6 +4098,8 @@ declare const RtcSignalSchema: z.ZodObject<{
|
|
|
3933
4098
|
}>;
|
|
3934
4099
|
signal: z.ZodAny;
|
|
3935
4100
|
userId: z.ZodOptional<z.ZodString>;
|
|
4101
|
+
taskId: z.ZodOptional<z.ZodString>;
|
|
4102
|
+
workspaceUserId: z.ZodOptional<z.ZodString>;
|
|
3936
4103
|
}, z.core.$strip>;
|
|
3937
4104
|
type RtcSignalEventData = z.infer<typeof RtcSignalSchema>;
|
|
3938
4105
|
declare const WorkspaceFileRequestSchema: z.ZodObject<{
|
|
@@ -4031,6 +4198,7 @@ declare const SubTaskResultUpdatedEventSchema: z.ZodObject<{
|
|
|
4031
4198
|
result: z.ZodString;
|
|
4032
4199
|
is_error: z.ZodOptional<z.ZodBoolean>;
|
|
4033
4200
|
}, z.core.$strip>;
|
|
4201
|
+
encryptedResultMessage: z.ZodOptional<z.ZodString>;
|
|
4034
4202
|
artifacts: z.ZodOptional<z.ZodObject<{
|
|
4035
4203
|
commitHash: z.ZodString;
|
|
4036
4204
|
stats: z.ZodObject<{
|
|
@@ -4128,11 +4296,20 @@ declare const AssociateRepoEventDataSchema: z.ZodObject<{
|
|
|
4128
4296
|
repo: z.ZodString;
|
|
4129
4297
|
remoteUrl: z.ZodString;
|
|
4130
4298
|
}, z.core.$strip>;
|
|
4299
|
+
declare const UpdateAgentInfoEventSchema: z.ZodObject<{
|
|
4300
|
+
eventId: z.ZodString;
|
|
4301
|
+
taskId: z.ZodString;
|
|
4302
|
+
agentId: z.ZodString;
|
|
4303
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
4304
|
+
avatar: z.ZodOptional<z.ZodString>;
|
|
4305
|
+
signature: z.ZodOptional<z.ZodString>;
|
|
4306
|
+
}, z.core.$strip>;
|
|
4307
|
+
type UpdateAgentInfoEventData = z.infer<typeof UpdateAgentInfoEventSchema>;
|
|
4131
4308
|
type AssociateRepoEventData = z.infer<typeof AssociateRepoEventDataSchema>;
|
|
4132
4309
|
/**
|
|
4133
4310
|
* System message type
|
|
4134
4311
|
*/
|
|
4135
|
-
type SystemMessageType = "machine-online" | "machine-offline" | "chat-added" | "chat-removed" | "chat-member-added" | "chat-member-removed" | "repo-added" | "repo-removed" | "pr-state-changed" | "draft-agent-added";
|
|
4312
|
+
type SystemMessageType = "machine-online" | "machine-offline" | "chat-added" | "chat-removed" | "chat-member-added" | "chat-member-removed" | "repo-added" | "repo-removed" | "pr-state-changed" | "draft-agent-added" | "agent-updated";
|
|
4136
4313
|
/**
|
|
4137
4314
|
* PR state changed schema
|
|
4138
4315
|
*/
|
|
@@ -4172,6 +4349,7 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
4172
4349
|
"repo-removed": "repo-removed";
|
|
4173
4350
|
"pr-state-changed": "pr-state-changed";
|
|
4174
4351
|
"draft-agent-added": "draft-agent-added";
|
|
4352
|
+
"agent-updated": "agent-updated";
|
|
4175
4353
|
"task-added": "task-added";
|
|
4176
4354
|
}>;
|
|
4177
4355
|
data: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -4195,8 +4373,8 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
4195
4373
|
chatId: z.ZodString;
|
|
4196
4374
|
memberCode: z.ZodString;
|
|
4197
4375
|
type: z.ZodEnum<{
|
|
4198
|
-
human: "human";
|
|
4199
4376
|
agent: "agent";
|
|
4377
|
+
human: "human";
|
|
4200
4378
|
}>;
|
|
4201
4379
|
role: z.ZodString;
|
|
4202
4380
|
createdAt: z.ZodString;
|
|
@@ -4238,6 +4416,7 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
4238
4416
|
type: z.ZodEnum<{
|
|
4239
4417
|
claude: "claude";
|
|
4240
4418
|
codex: "codex";
|
|
4419
|
+
companion: "companion";
|
|
4241
4420
|
}>;
|
|
4242
4421
|
avatar: z.ZodNullable<z.ZodString>;
|
|
4243
4422
|
userId: z.ZodString;
|
|
@@ -4287,11 +4466,59 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
4287
4466
|
sourceTaskId: z.ZodNullable<z.ZodString>;
|
|
4288
4467
|
createdAt: z.ZodString;
|
|
4289
4468
|
updatedAt: z.ZodString;
|
|
4469
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4470
|
+
id: z.ZodString;
|
|
4471
|
+
name: z.ZodString;
|
|
4472
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
4473
|
+
type: z.ZodEnum<{
|
|
4474
|
+
claude: "claude";
|
|
4475
|
+
codex: "codex";
|
|
4476
|
+
companion: "companion";
|
|
4477
|
+
}>;
|
|
4478
|
+
avatar: z.ZodNullable<z.ZodString>;
|
|
4479
|
+
userId: z.ZodString;
|
|
4480
|
+
description: z.ZodNullable<z.ZodString>;
|
|
4481
|
+
signature: z.ZodNullable<z.ZodString>;
|
|
4482
|
+
guildMsg: z.ZodString;
|
|
4483
|
+
placeholderMsg: z.ZodString;
|
|
4484
|
+
developerName: z.ZodString;
|
|
4485
|
+
developerEmail: z.ZodNullable<z.ZodString>;
|
|
4486
|
+
gitRepoId: z.ZodNullable<z.ZodString>;
|
|
4487
|
+
supportLocal: z.ZodBoolean;
|
|
4488
|
+
enable: z.ZodBoolean;
|
|
4489
|
+
config: z.ZodNullable<z.ZodObject<{
|
|
4490
|
+
displayConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4491
|
+
createPR: z.ZodOptional<z.ZodString>;
|
|
4492
|
+
viewPR: z.ZodOptional<z.ZodString>;
|
|
4493
|
+
mergePR: z.ZodOptional<z.ZodString>;
|
|
4494
|
+
approvePR: z.ZodOptional<z.ZodString>;
|
|
4495
|
+
merged: z.ZodOptional<z.ZodString>;
|
|
4496
|
+
closed: z.ZodOptional<z.ZodString>;
|
|
4497
|
+
recreatePR: z.ZodOptional<z.ZodString>;
|
|
4498
|
+
permissionCanSendMessage: z.ZodOptional<z.ZodString>;
|
|
4499
|
+
permissionCanSendMessageDesc: z.ZodOptional<z.ZodString>;
|
|
4500
|
+
permissionCanCreatePr: z.ZodOptional<z.ZodString>;
|
|
4501
|
+
permissionCanCreatePrDesc: z.ZodOptional<z.ZodString>;
|
|
4502
|
+
permissionCanApprovePr: z.ZodOptional<z.ZodString>;
|
|
4503
|
+
permissionCanApprovePrDesc: z.ZodOptional<z.ZodString>;
|
|
4504
|
+
permissionCanViewPr: z.ZodOptional<z.ZodString>;
|
|
4505
|
+
permissionCanViewPrDesc: z.ZodOptional<z.ZodString>;
|
|
4506
|
+
permissionCanMergePr: z.ZodOptional<z.ZodString>;
|
|
4507
|
+
permissionCanMergePrDesc: z.ZodOptional<z.ZodString>;
|
|
4508
|
+
}, z.core.$strip>>>;
|
|
4509
|
+
machineId: z.ZodOptional<z.ZodString>;
|
|
4510
|
+
heartbeatTaskId: z.ZodOptional<z.ZodString>;
|
|
4511
|
+
}, z.core.$strip>>;
|
|
4512
|
+
permissions: z.ZodNullable<z.ZodObject<{
|
|
4513
|
+
role: z.ZodString;
|
|
4514
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4515
|
+
}, z.core.$strip>>;
|
|
4290
4516
|
}, z.core.$strip>, z.ZodObject<{
|
|
4291
4517
|
id: z.ZodString;
|
|
4292
4518
|
type: z.ZodDefault<z.ZodEnum<{
|
|
4293
4519
|
chat: "chat";
|
|
4294
4520
|
work: "work";
|
|
4521
|
+
shadow: "shadow";
|
|
4295
4522
|
}>>;
|
|
4296
4523
|
chatId: z.ZodString;
|
|
4297
4524
|
userId: z.ZodString;
|
|
@@ -4310,6 +4537,7 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
4310
4537
|
customTitle: z.ZodNullable<z.ZodString>;
|
|
4311
4538
|
agentSessionId: z.ZodNullable<z.ZodString>;
|
|
4312
4539
|
dataEncryptionKey: z.ZodNullable<z.ZodString>;
|
|
4540
|
+
ownerEncryptedDataKey: z.ZodNullable<z.ZodString>;
|
|
4313
4541
|
cwd: z.ZodNullable<z.ZodString>;
|
|
4314
4542
|
userCwd: z.ZodNullable<z.ZodString>;
|
|
4315
4543
|
forceUserCwd: z.ZodNullable<z.ZodBoolean>;
|
|
@@ -4345,7 +4573,71 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
4345
4573
|
timestamp: z.ZodString;
|
|
4346
4574
|
}, z.core.$strip>;
|
|
4347
4575
|
type SystemMessageEventData = z.infer<typeof SystemMessageSchema>;
|
|
4348
|
-
|
|
4576
|
+
declare const DaemonGitlabOperationSchema: z.ZodEnum<{
|
|
4577
|
+
listRepos: "listRepos";
|
|
4578
|
+
listBranches: "listBranches";
|
|
4579
|
+
createMergeRequest: "createMergeRequest";
|
|
4580
|
+
getMergeRequest: "getMergeRequest";
|
|
4581
|
+
listMergeRequests: "listMergeRequests";
|
|
4582
|
+
resolveGitAuthContext: "resolveGitAuthContext";
|
|
4583
|
+
}>;
|
|
4584
|
+
type DaemonGitlabOperation = z.infer<typeof DaemonGitlabOperationSchema>;
|
|
4585
|
+
/**
|
|
4586
|
+
* API → Daemon: Request to execute a GitLab operation via local PAT
|
|
4587
|
+
*/
|
|
4588
|
+
declare const DaemonGitlabRequestSchema: z.ZodObject<{
|
|
4589
|
+
eventId: z.ZodString;
|
|
4590
|
+
requestId: z.ZodString;
|
|
4591
|
+
userId: z.ZodString;
|
|
4592
|
+
gitServerId: z.ZodString;
|
|
4593
|
+
operation: z.ZodEnum<{
|
|
4594
|
+
listRepos: "listRepos";
|
|
4595
|
+
listBranches: "listBranches";
|
|
4596
|
+
createMergeRequest: "createMergeRequest";
|
|
4597
|
+
getMergeRequest: "getMergeRequest";
|
|
4598
|
+
listMergeRequests: "listMergeRequests";
|
|
4599
|
+
resolveGitAuthContext: "resolveGitAuthContext";
|
|
4600
|
+
}>;
|
|
4601
|
+
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4602
|
+
ttlMs: z.ZodNumber;
|
|
4603
|
+
nonce: z.ZodString;
|
|
4604
|
+
}, z.core.$strip>;
|
|
4605
|
+
type DaemonGitlabRequestEventData = z.infer<typeof DaemonGitlabRequestSchema>;
|
|
4606
|
+
/**
|
|
4607
|
+
* Daemon → API: Response from GitLab operation execution
|
|
4608
|
+
*/
|
|
4609
|
+
declare const DaemonGitlabResponseSchema: z.ZodObject<{
|
|
4610
|
+
eventId: z.ZodString;
|
|
4611
|
+
requestId: z.ZodString;
|
|
4612
|
+
success: z.ZodBoolean;
|
|
4613
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
4614
|
+
errorCode: z.ZodOptional<z.ZodString>;
|
|
4615
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
4616
|
+
machineId: z.ZodString;
|
|
4617
|
+
executionTimeMs: z.ZodNumber;
|
|
4618
|
+
}, z.core.$strip>;
|
|
4619
|
+
type DaemonGitlabResponseEventData = z.infer<typeof DaemonGitlabResponseSchema>;
|
|
4620
|
+
declare const CompanionHeartbeatRequestSchema: z.ZodObject<{
|
|
4621
|
+
eventId: z.ZodString;
|
|
4622
|
+
machineId: z.ZodString;
|
|
4623
|
+
agentId: z.ZodString;
|
|
4624
|
+
chatId: z.ZodString;
|
|
4625
|
+
userId: z.ZodString;
|
|
4626
|
+
timestamp: z.ZodString;
|
|
4627
|
+
}, z.core.$strip>;
|
|
4628
|
+
type CompanionHeartbeatRequestData = z.infer<typeof CompanionHeartbeatRequestSchema>;
|
|
4629
|
+
declare const CompanionHeartbeatResponseSchema: z.ZodObject<{
|
|
4630
|
+
eventId: z.ZodString;
|
|
4631
|
+
taskId: z.ZodString;
|
|
4632
|
+
chatId: z.ZodString;
|
|
4633
|
+
}, z.core.$strip>;
|
|
4634
|
+
type CompanionHeartbeatResponseData = z.infer<typeof CompanionHeartbeatResponseSchema>;
|
|
4635
|
+
declare const ResetTaskSessionSchema: z.ZodObject<{
|
|
4636
|
+
eventId: z.ZodString;
|
|
4637
|
+
taskId: z.ZodString;
|
|
4638
|
+
}, z.core.$strip>;
|
|
4639
|
+
type ResetTaskSessionEventData = z.infer<typeof ResetTaskSessionSchema>;
|
|
4640
|
+
type EventData = AppAliveEventData | ApiServerAliveEventData | MachineAliveEventData | ShutdownMachineData | WorkerInitializingEventData | WorkerInitializedEventData | WorkerReadyEventData | WorkerAliveEventData | WorkerExitEventData | WorkerRunningEventData | WorkerStatusRequestEventData | ChatWorkersStatusRequestEventData | ChatWorkersStatusResponseEventData | CreateTaskEventData | ResumeTaskEventData | CancelTaskEventData | StopTaskEventData | TaskMessageEventData | ChangeTaskTitleEventData | TaskStateChangeEventData | UpdateTaskAgentSessionIdEventData | TaskInfoUpdateEventData | MergeRequestEventData | TaskStoppedEventData | SubTaskResultUpdatedEventData | SystemMessageEventData | CreditExhaustedEventData | RtcIceServersRequestEventData | RtcIceServersResponseEventData | MachineRtcRequestEventData | MachineRtcResponseEventData | RtcSignalEventData | WorkspaceFileRequestEventData | WorkspaceFileResponseEventData | UpdateAgentInfoEventData | DaemonGitlabRequestEventData | DaemonGitlabResponseEventData | CompanionHeartbeatRequestData | CompanionHeartbeatResponseData | ResetTaskSessionEventData;
|
|
4349
4641
|
type EventMap = {
|
|
4350
4642
|
"app-alive": AppAliveEventData;
|
|
4351
4643
|
"api-server-alive": ApiServerAliveEventData;
|
|
@@ -4376,6 +4668,7 @@ type EventMap = {
|
|
|
4376
4668
|
"task-stopped": TaskStoppedEventData;
|
|
4377
4669
|
"sub-task-result-updated": SubTaskResultUpdatedEventData;
|
|
4378
4670
|
"associate-repo": AssociateRepoEventData;
|
|
4671
|
+
"update-agent-info": UpdateAgentInfoEventData;
|
|
4379
4672
|
"system-message": SystemMessageEventData;
|
|
4380
4673
|
"credit-exhausted": CreditExhaustedEventData;
|
|
4381
4674
|
"rtc-ice-servers-request": RtcIceServersRequestEventData;
|
|
@@ -4386,6 +4679,11 @@ type EventMap = {
|
|
|
4386
4679
|
"workspace-file-request": WorkspaceFileRequestEventData;
|
|
4387
4680
|
"workspace-file-response": WorkspaceFileResponseEventData;
|
|
4388
4681
|
"rpc-call": RpcCallEventData;
|
|
4682
|
+
"daemon-gitlab-request": DaemonGitlabRequestEventData;
|
|
4683
|
+
"daemon-gitlab-response": DaemonGitlabResponseEventData;
|
|
4684
|
+
"request-companion-heartbeat": CompanionHeartbeatRequestData;
|
|
4685
|
+
"companion-heartbeat-response": CompanionHeartbeatResponseData;
|
|
4686
|
+
"reset-task-session": ResetTaskSessionEventData;
|
|
4389
4687
|
"event-ack": EventAckData;
|
|
4390
4688
|
};
|
|
4391
4689
|
type EventName = keyof EventMap;
|
|
@@ -4393,7 +4691,7 @@ declare const EventSchemaMap: Record<EventName, z.ZodType<any>>;
|
|
|
4393
4691
|
/**
|
|
4394
4692
|
* only sent by worker and which need to send to human in chat room
|
|
4395
4693
|
*/
|
|
4396
|
-
type WorkerTaskEvent = "worker-initializing" | "worker-initialized" | "worker-ready" | "worker-exit" | "worker-running" | "change-task-title" | "update-task-agent-session-id" | "merge-request" | "merge-pr" | "associate-repo";
|
|
4694
|
+
type WorkerTaskEvent = "worker-initializing" | "worker-initialized" | "worker-ready" | "worker-exit" | "worker-running" | "change-task-title" | "update-task-agent-session-id" | "reset-task-session" | "merge-request" | "merge-pr" | "associate-repo" | "update-agent-info";
|
|
4397
4695
|
declare const workerTaskEvents: WorkerTaskEvent[];
|
|
4398
4696
|
|
|
4399
4697
|
type ClientType = 'user' | 'worker' | 'machine';
|
|
@@ -4577,6 +4875,14 @@ interface AgentrixContext {
|
|
|
4577
4875
|
* List direct sub tasks under the current task
|
|
4578
4876
|
*/
|
|
4579
4877
|
listSubTasks(): Promise<SubTaskSummary[]>;
|
|
4878
|
+
/**
|
|
4879
|
+
* List recent tasks in the current chat
|
|
4880
|
+
* Used by companion to review recent task activity
|
|
4881
|
+
*/
|
|
4882
|
+
listTasks(params?: {
|
|
4883
|
+
limit?: number;
|
|
4884
|
+
status?: 'all' | 'active' | 'completed';
|
|
4885
|
+
}): Promise<RecentTaskSummary[]>;
|
|
4580
4886
|
/**
|
|
4581
4887
|
* Upload a file to the agent's storage
|
|
4582
4888
|
*/
|
|
@@ -4808,7 +5114,7 @@ declare class MissingAgentFileError extends AgentError {
|
|
|
4808
5114
|
*/
|
|
4809
5115
|
|
|
4810
5116
|
declare function loadAgentConfig(options: LoadAgentOptions): Promise<AgentConfig>;
|
|
4811
|
-
declare function replacePromptPlaceholders(template: string, cwd: string): string;
|
|
5117
|
+
declare function replacePromptPlaceholders(template: string, cwd: string, extra?: Record<string, string>): string;
|
|
4812
5118
|
|
|
4813
5119
|
/**
|
|
4814
5120
|
* Agent directory structure and configuration validation
|
|
@@ -4849,6 +5155,36 @@ declare function assertAgentExists(agentDir: string, agentId: string): void;
|
|
|
4849
5155
|
*/
|
|
4850
5156
|
declare function discoverPlugins(pluginsDir: string): string[];
|
|
4851
5157
|
|
|
5158
|
+
/**
|
|
5159
|
+
* Companion agent types
|
|
5160
|
+
* Types for the self-evolving companion agent system
|
|
5161
|
+
*/
|
|
5162
|
+
|
|
5163
|
+
declare const CompanionWorkspaceFileSchema: z.ZodObject<{
|
|
5164
|
+
name: z.ZodString;
|
|
5165
|
+
path: z.ZodString;
|
|
5166
|
+
size: z.ZodNumber;
|
|
5167
|
+
modifiedAt: z.ZodNumber;
|
|
5168
|
+
isDirectory: z.ZodBoolean;
|
|
5169
|
+
}, z.core.$strip>;
|
|
5170
|
+
type CompanionWorkspaceFile = z.infer<typeof CompanionWorkspaceFileSchema>;
|
|
5171
|
+
declare const RegisterCompanionRequestSchema: z.ZodObject<{
|
|
5172
|
+
machineId: z.ZodString;
|
|
5173
|
+
}, z.core.$strip>;
|
|
5174
|
+
type RegisterCompanionRequest = z.infer<typeof RegisterCompanionRequestSchema>;
|
|
5175
|
+
declare const RegisterCompanionResponseSchema: z.ZodObject<{
|
|
5176
|
+
agentId: z.ZodString;
|
|
5177
|
+
userId: z.ZodString;
|
|
5178
|
+
chatId: z.ZodString;
|
|
5179
|
+
created: z.ZodBoolean;
|
|
5180
|
+
}, z.core.$strip>;
|
|
5181
|
+
type RegisterCompanionResponse = z.infer<typeof RegisterCompanionResponseSchema>;
|
|
5182
|
+
declare const CompanionEnsureResponseSchema: z.ZodObject<{
|
|
5183
|
+
agentDir: z.ZodString;
|
|
5184
|
+
workspaceDir: z.ZodString;
|
|
5185
|
+
}, z.core.$strip>;
|
|
5186
|
+
type CompanionEnsureResponse = z.infer<typeof CompanionEnsureResponseSchema>;
|
|
5187
|
+
|
|
4852
5188
|
declare function encodeBase64(buffer: Uint8Array, variant?: 'base64' | 'base64url'): string;
|
|
4853
5189
|
declare function encodeBase64Url(buffer: Uint8Array): string;
|
|
4854
5190
|
declare function decodeBase64(base64: string, variant?: 'base64' | 'base64url'): Uint8Array;
|
|
@@ -5039,5 +5375,5 @@ declare const RELEVANT_DEPENDENCIES: readonly ["react", "react-dom", "vue", "vit
|
|
|
5039
5375
|
*/
|
|
5040
5376
|
declare function detectPreview(fs: FileSystemAdapter): Promise<PreviewMetadata | null>;
|
|
5041
5377
|
|
|
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 };
|
|
5378
|
+
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, CompanionEnsureResponseSchema, CompanionHeartbeatRequestSchema, CompanionHeartbeatResponseSchema, CompanionWorkspaceFileSchema, ConfirmUploadRequestSchema, ConfirmUploadResponseSchema, ConsumeTransactionSchema, CreateAgentRequestSchema, CreateAgentResponseSchema, CreateChatRequestSchema, CreateChatResponseSchema, CreateCloudRequestSchema, CreateCloudResponseSchema, CreateDraftAgentRequestSchema, CreateMergeRequestResponseSchema, CreateMergeRequestSchema, CreateOAuthServerRequestSchema, CreateOAuthServerResponseSchema, CreateTaskShareResponseSchema, CreateTaskShareSchema, CreditExhaustedEventSchema, CreditsPackageSchema, DaemonGitlabOperationSchema, DaemonGitlabRequestSchema, DaemonGitlabResponseSchema, 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, ListRecentTasksRequestSchema, ListRecentTasksResponseSchema, 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, RecentTaskSummarySchema, RechargeResponseSchema, RegisterCompanionRequestSchema, RegisterCompanionResponseSchema, RemoveChatMemberRequestSchema, RepositorySchema, ResetSecretRequestSchema, ResetSecretResponseSchema, ResetTaskSessionSchema, 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, UpdateAgentInfoEventSchema, 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, isCompanionHeartbeatMessage, isCompanionReminderMessage, isSDKMessage, isSDKUserMessage, loadAgentConfig, machineAuth, permissionResponseRequestSchema, replacePromptPlaceholders, resumeTaskRequestSchema, resumeTaskSchema, setAgentContext, splitRtcChunkFrame, startTaskSchema, stopTaskRequestSchema, userAuth, validateAgentDirectory, validateFrameworkDirectory, workerAuth, workerTaskEvents };
|
|
5379
|
+
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, CompanionEnsureResponse, CompanionHeartbeatMessage, CompanionHeartbeatRequestData, CompanionHeartbeatResponseData, CompanionReminderMessage, CompanionWorkspaceFile, ConfirmUploadRequest, ConfirmUploadResponse, ConsumeTransaction, CreateAgentRequest, CreateAgentResponse, CreateChatRequest, CreateChatResponse, CreateCloudRequest, CreateCloudResponse, CreateDraftAgentRequest, CreateMergeRequestRequest, CreateMergeRequestResponse, CreateOAuthServerRequest, CreateOAuthServerResponse, CreateTaskEventData, CreateTaskShareRequest, CreateTaskShareResponse, CreditExhaustedEventData, CreditsPackage, DaemonGitlabOperation, DaemonGitlabRequestEventData, DaemonGitlabResponseEventData, 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, ListRecentTasksRequest, ListRecentTasksResponse, 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, RecentTaskSummary, RechargeResponse, RegisterCompanionRequest, RegisterCompanionResponse, RemoveChatMemberRequest, Repository, RepositoryInitHookInput, ResetSecretRequest, ResetSecretResponse, ResetTaskSessionEventData, 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, UpdateAgentInfoEventData, 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 };
|