@agentrix/shared 2.31.0 → 2.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{errors-DRNVdRR6.d.cts → errors-Br-r7N--.d.cts} +142 -75
- package/dist/index.cjs +63 -5
- package/dist/index.d.cts +9 -7
- package/dist/node.d.cts +2 -2
- package/package.json +1 -1
|
@@ -90,6 +90,7 @@ declare const StartTaskRequestSchema: z.ZodObject<{
|
|
|
90
90
|
dataEncryptionKey: z.ZodOptional<z.ZodString>;
|
|
91
91
|
ownerEncryptedDataKey: z.ZodOptional<z.ZodString>;
|
|
92
92
|
agentId: z.ZodOptional<z.ZodString>;
|
|
93
|
+
allowFilesystemAgent: z.ZodOptional<z.ZodBoolean>;
|
|
93
94
|
parentTaskId: z.ZodOptional<z.ZodString>;
|
|
94
95
|
sourceTaskId: z.ZodOptional<z.ZodString>;
|
|
95
96
|
todos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -142,6 +143,7 @@ declare const startTaskSchema: z.ZodObject<{
|
|
|
142
143
|
dataEncryptionKey: z.ZodOptional<z.ZodString>;
|
|
143
144
|
ownerEncryptedDataKey: z.ZodOptional<z.ZodString>;
|
|
144
145
|
agentId: z.ZodOptional<z.ZodString>;
|
|
146
|
+
allowFilesystemAgent: z.ZodOptional<z.ZodBoolean>;
|
|
145
147
|
parentTaskId: z.ZodOptional<z.ZodString>;
|
|
146
148
|
sourceTaskId: z.ZodOptional<z.ZodString>;
|
|
147
149
|
todos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -165,6 +167,7 @@ declare const StartTaskResponseSchema: z.ZodObject<{
|
|
|
165
167
|
taskId: z.ZodString;
|
|
166
168
|
chatId: z.ZodString;
|
|
167
169
|
agentId: z.ZodString;
|
|
170
|
+
allowFilesystemAgent: z.ZodBoolean;
|
|
168
171
|
taskAgentIds: z.ZodArray<z.ZodString>;
|
|
169
172
|
supportedFeatures: z.ZodArray<z.ZodString>;
|
|
170
173
|
userId: z.ZodString;
|
|
@@ -216,11 +219,12 @@ declare const TaskItemSchema: z.ZodObject<{
|
|
|
216
219
|
userId: z.ZodString;
|
|
217
220
|
state: z.ZodString;
|
|
218
221
|
workerStatus: z.ZodNullable<z.ZodEnum<{
|
|
219
|
-
running: "running";
|
|
220
222
|
initializing: "initializing";
|
|
221
223
|
ready: "ready";
|
|
224
|
+
running: "running";
|
|
222
225
|
}>>;
|
|
223
226
|
agentId: z.ZodString;
|
|
227
|
+
allowFilesystemAgent: z.ZodBoolean;
|
|
224
228
|
machineId: z.ZodNullable<z.ZodString>;
|
|
225
229
|
cloudId: z.ZodNullable<z.ZodString>;
|
|
226
230
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -300,11 +304,12 @@ declare const EnsureIssueRootTaskResponseSchema: z.ZodObject<{
|
|
|
300
304
|
userId: z.ZodString;
|
|
301
305
|
state: z.ZodString;
|
|
302
306
|
workerStatus: z.ZodNullable<z.ZodEnum<{
|
|
303
|
-
running: "running";
|
|
304
307
|
initializing: "initializing";
|
|
305
308
|
ready: "ready";
|
|
309
|
+
running: "running";
|
|
306
310
|
}>>;
|
|
307
311
|
agentId: z.ZodString;
|
|
312
|
+
allowFilesystemAgent: z.ZodBoolean;
|
|
308
313
|
machineId: z.ZodNullable<z.ZodString>;
|
|
309
314
|
cloudId: z.ZodNullable<z.ZodString>;
|
|
310
315
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -398,11 +403,12 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
398
403
|
userId: z.ZodString;
|
|
399
404
|
state: z.ZodString;
|
|
400
405
|
workerStatus: z.ZodNullable<z.ZodEnum<{
|
|
401
|
-
running: "running";
|
|
402
406
|
initializing: "initializing";
|
|
403
407
|
ready: "ready";
|
|
408
|
+
running: "running";
|
|
404
409
|
}>>;
|
|
405
410
|
agentId: z.ZodString;
|
|
411
|
+
allowFilesystemAgent: z.ZodBoolean;
|
|
406
412
|
machineId: z.ZodNullable<z.ZodString>;
|
|
407
413
|
cloudId: z.ZodNullable<z.ZodString>;
|
|
408
414
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -723,11 +729,12 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
723
729
|
userId: z.ZodString;
|
|
724
730
|
state: z.ZodString;
|
|
725
731
|
workerStatus: z.ZodNullable<z.ZodEnum<{
|
|
726
|
-
running: "running";
|
|
727
732
|
initializing: "initializing";
|
|
728
733
|
ready: "ready";
|
|
734
|
+
running: "running";
|
|
729
735
|
}>>;
|
|
730
736
|
agentId: z.ZodString;
|
|
737
|
+
allowFilesystemAgent: z.ZodBoolean;
|
|
731
738
|
machineId: z.ZodNullable<z.ZodString>;
|
|
732
739
|
cloudId: z.ZodNullable<z.ZodString>;
|
|
733
740
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -817,11 +824,12 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
817
824
|
userId: z.ZodString;
|
|
818
825
|
state: z.ZodString;
|
|
819
826
|
workerStatus: z.ZodNullable<z.ZodEnum<{
|
|
820
|
-
running: "running";
|
|
821
827
|
initializing: "initializing";
|
|
822
828
|
ready: "ready";
|
|
829
|
+
running: "running";
|
|
823
830
|
}>>;
|
|
824
831
|
agentId: z.ZodString;
|
|
832
|
+
allowFilesystemAgent: z.ZodBoolean;
|
|
825
833
|
machineId: z.ZodNullable<z.ZodString>;
|
|
826
834
|
cloudId: z.ZodNullable<z.ZodString>;
|
|
827
835
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -913,11 +921,12 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
|
|
|
913
921
|
userId: z.ZodString;
|
|
914
922
|
state: z.ZodString;
|
|
915
923
|
workerStatus: z.ZodNullable<z.ZodEnum<{
|
|
916
|
-
running: "running";
|
|
917
924
|
initializing: "initializing";
|
|
918
925
|
ready: "ready";
|
|
926
|
+
running: "running";
|
|
919
927
|
}>>;
|
|
920
928
|
agentId: z.ZodString;
|
|
929
|
+
allowFilesystemAgent: z.ZodBoolean;
|
|
921
930
|
machineId: z.ZodNullable<z.ZodString>;
|
|
922
931
|
cloudId: z.ZodNullable<z.ZodString>;
|
|
923
932
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -999,11 +1008,12 @@ declare const UpdateTaskPreviewUrlResponseSchema: z.ZodObject<{
|
|
|
999
1008
|
userId: z.ZodString;
|
|
1000
1009
|
state: z.ZodString;
|
|
1001
1010
|
workerStatus: z.ZodNullable<z.ZodEnum<{
|
|
1002
|
-
running: "running";
|
|
1003
1011
|
initializing: "initializing";
|
|
1004
1012
|
ready: "ready";
|
|
1013
|
+
running: "running";
|
|
1005
1014
|
}>>;
|
|
1006
1015
|
agentId: z.ZodString;
|
|
1016
|
+
allowFilesystemAgent: z.ZodBoolean;
|
|
1007
1017
|
machineId: z.ZodNullable<z.ZodString>;
|
|
1008
1018
|
cloudId: z.ZodNullable<z.ZodString>;
|
|
1009
1019
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1087,15 +1097,15 @@ type SendMessageTarget = 'agent' | 'user';
|
|
|
1087
1097
|
* - 'user': Broadcasts SDKAssistantMessage to users viewing the task
|
|
1088
1098
|
*/
|
|
1089
1099
|
declare const SendTaskMessageRequestSchema: z.ZodObject<{
|
|
1090
|
-
message: z.ZodCustom<
|
|
1100
|
+
message: z.ZodCustom<SDKAssistantMessage | SDKUserMessage, SDKAssistantMessage | SDKUserMessage>;
|
|
1091
1101
|
target: z.ZodEnum<{
|
|
1092
|
-
agent: "agent";
|
|
1093
1102
|
user: "user";
|
|
1103
|
+
agent: "agent";
|
|
1094
1104
|
}>;
|
|
1095
1105
|
fromTaskId: z.ZodOptional<z.ZodString>;
|
|
1096
1106
|
senderType: z.ZodEnum<{
|
|
1097
|
-
human: "human";
|
|
1098
1107
|
system: "system";
|
|
1108
|
+
human: "human";
|
|
1099
1109
|
agent: "agent";
|
|
1100
1110
|
channel: "channel";
|
|
1101
1111
|
}>;
|
|
@@ -1239,8 +1249,8 @@ declare const HiveListingTypeSchema: z.ZodEnum<{
|
|
|
1239
1249
|
}>;
|
|
1240
1250
|
type HiveListingType = z.infer<typeof HiveListingTypeSchema>;
|
|
1241
1251
|
declare const HiveAuthorTypeSchema: z.ZodEnum<{
|
|
1242
|
-
agent: "agent";
|
|
1243
1252
|
user: "user";
|
|
1253
|
+
agent: "agent";
|
|
1244
1254
|
}>;
|
|
1245
1255
|
type HiveAuthorType = z.infer<typeof HiveAuthorTypeSchema>;
|
|
1246
1256
|
declare const HiveListingStatusSchema: z.ZodEnum<{
|
|
@@ -1270,8 +1280,8 @@ declare const HiveListingSchema: z.ZodObject<{
|
|
|
1270
1280
|
version: z.ZodString;
|
|
1271
1281
|
avatar: z.ZodNullable<z.ZodString>;
|
|
1272
1282
|
authorType: z.ZodEnum<{
|
|
1273
|
-
agent: "agent";
|
|
1274
1283
|
user: "user";
|
|
1284
|
+
agent: "agent";
|
|
1275
1285
|
}>;
|
|
1276
1286
|
authorId: z.ZodString;
|
|
1277
1287
|
authorName: z.ZodString;
|
|
@@ -1311,8 +1321,8 @@ declare const PublishToHiveRequestSchema: z.ZodObject<{
|
|
|
1311
1321
|
category: z.ZodOptional<z.ZodString>;
|
|
1312
1322
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1313
1323
|
authorType: z.ZodEnum<{
|
|
1314
|
-
agent: "agent";
|
|
1315
1324
|
user: "user";
|
|
1325
|
+
agent: "agent";
|
|
1316
1326
|
}>;
|
|
1317
1327
|
authorId: z.ZodString;
|
|
1318
1328
|
machineId: z.ZodOptional<z.ZodString>;
|
|
@@ -1357,8 +1367,8 @@ declare const HiveListResponseSchema: z.ZodObject<{
|
|
|
1357
1367
|
version: z.ZodString;
|
|
1358
1368
|
avatar: z.ZodNullable<z.ZodString>;
|
|
1359
1369
|
authorType: z.ZodEnum<{
|
|
1360
|
-
agent: "agent";
|
|
1361
1370
|
user: "user";
|
|
1371
|
+
agent: "agent";
|
|
1362
1372
|
}>;
|
|
1363
1373
|
authorId: z.ZodString;
|
|
1364
1374
|
authorName: z.ZodString;
|
|
@@ -1462,8 +1472,8 @@ declare const HiveReviewSchema: z.ZodObject<{
|
|
|
1462
1472
|
id: z.ZodString;
|
|
1463
1473
|
hiveListingId: z.ZodString;
|
|
1464
1474
|
authorType: z.ZodEnum<{
|
|
1465
|
-
agent: "agent";
|
|
1466
1475
|
user: "user";
|
|
1476
|
+
agent: "agent";
|
|
1467
1477
|
}>;
|
|
1468
1478
|
authorId: z.ZodString;
|
|
1469
1479
|
authorName: z.ZodString;
|
|
@@ -1489,8 +1499,8 @@ declare const HiveReviewListResponseSchema: z.ZodObject<{
|
|
|
1489
1499
|
id: z.ZodString;
|
|
1490
1500
|
hiveListingId: z.ZodString;
|
|
1491
1501
|
authorType: z.ZodEnum<{
|
|
1492
|
-
agent: "agent";
|
|
1493
1502
|
user: "user";
|
|
1503
|
+
agent: "agent";
|
|
1494
1504
|
}>;
|
|
1495
1505
|
authorId: z.ZodString;
|
|
1496
1506
|
authorName: z.ZodString;
|
|
@@ -1510,8 +1520,8 @@ declare const HiveCommentSchema: z.ZodObject<{
|
|
|
1510
1520
|
hiveListingId: z.ZodString;
|
|
1511
1521
|
parentId: z.ZodNullable<z.ZodString>;
|
|
1512
1522
|
authorType: z.ZodEnum<{
|
|
1513
|
-
agent: "agent";
|
|
1514
1523
|
user: "user";
|
|
1524
|
+
agent: "agent";
|
|
1515
1525
|
}>;
|
|
1516
1526
|
authorId: z.ZodString;
|
|
1517
1527
|
authorName: z.ZodString;
|
|
@@ -1536,8 +1546,8 @@ declare const HiveCommentListResponseSchema: z.ZodObject<{
|
|
|
1536
1546
|
hiveListingId: z.ZodString;
|
|
1537
1547
|
parentId: z.ZodNullable<z.ZodString>;
|
|
1538
1548
|
authorType: z.ZodEnum<{
|
|
1539
|
-
agent: "agent";
|
|
1540
1549
|
user: "user";
|
|
1550
|
+
agent: "agent";
|
|
1541
1551
|
}>;
|
|
1542
1552
|
authorId: z.ZodString;
|
|
1543
1553
|
authorName: z.ZodString;
|
|
@@ -1577,8 +1587,8 @@ declare const HiveInstalledItemSchema: z.ZodObject<{
|
|
|
1577
1587
|
version: z.ZodString;
|
|
1578
1588
|
avatar: z.ZodNullable<z.ZodString>;
|
|
1579
1589
|
authorType: z.ZodEnum<{
|
|
1580
|
-
agent: "agent";
|
|
1581
1590
|
user: "user";
|
|
1591
|
+
agent: "agent";
|
|
1582
1592
|
}>;
|
|
1583
1593
|
authorId: z.ZodString;
|
|
1584
1594
|
authorName: z.ZodString;
|
|
@@ -1632,8 +1642,8 @@ declare const HiveInstalledResponseSchema: z.ZodObject<{
|
|
|
1632
1642
|
version: z.ZodString;
|
|
1633
1643
|
avatar: z.ZodNullable<z.ZodString>;
|
|
1634
1644
|
authorType: z.ZodEnum<{
|
|
1635
|
-
agent: "agent";
|
|
1636
1645
|
user: "user";
|
|
1646
|
+
agent: "agent";
|
|
1637
1647
|
}>;
|
|
1638
1648
|
authorId: z.ZodString;
|
|
1639
1649
|
authorName: z.ZodString;
|
|
@@ -1675,8 +1685,8 @@ declare const HiveMyListingsResponseSchema: z.ZodObject<{
|
|
|
1675
1685
|
version: z.ZodString;
|
|
1676
1686
|
avatar: z.ZodNullable<z.ZodString>;
|
|
1677
1687
|
authorType: z.ZodEnum<{
|
|
1678
|
-
agent: "agent";
|
|
1679
1688
|
user: "user";
|
|
1689
|
+
agent: "agent";
|
|
1680
1690
|
}>;
|
|
1681
1691
|
authorId: z.ZodString;
|
|
1682
1692
|
authorName: z.ZodString;
|
|
@@ -2063,9 +2073,9 @@ declare const AskUserResponseStatusSchema: z.ZodEnum<{
|
|
|
2063
2073
|
timeout: "timeout";
|
|
2064
2074
|
}>;
|
|
2065
2075
|
declare const AskUserResponseReasonSchema: z.ZodEnum<{
|
|
2066
|
-
system: "system";
|
|
2067
|
-
user: "user";
|
|
2068
2076
|
timeout: "timeout";
|
|
2077
|
+
user: "user";
|
|
2078
|
+
system: "system";
|
|
2069
2079
|
}>;
|
|
2070
2080
|
type AskUserResponseStatus = z.infer<typeof AskUserResponseStatusSchema>;
|
|
2071
2081
|
type AskUserResponseReason = z.infer<typeof AskUserResponseReasonSchema>;
|
|
@@ -2086,9 +2096,9 @@ declare const AskUserResponseMessageSchema: z.ZodObject<{
|
|
|
2086
2096
|
timeout: "timeout";
|
|
2087
2097
|
}>>;
|
|
2088
2098
|
reason: z.ZodOptional<z.ZodEnum<{
|
|
2089
|
-
system: "system";
|
|
2090
|
-
user: "user";
|
|
2091
2099
|
timeout: "timeout";
|
|
2100
|
+
user: "user";
|
|
2101
|
+
system: "system";
|
|
2092
2102
|
}>>;
|
|
2093
2103
|
}, z.core.$strip>;
|
|
2094
2104
|
type AskUserResponseMessage = z.infer<typeof AskUserResponseMessageSchema>;
|
|
@@ -2102,8 +2112,6 @@ interface CompanionHeartbeatMessage {
|
|
|
2102
2112
|
triggerTime?: string;
|
|
2103
2113
|
triggerReasons?: string[];
|
|
2104
2114
|
heartbeatTriggerCount?: number;
|
|
2105
|
-
maintenanceMode?: boolean;
|
|
2106
|
-
maintenanceModeType?: 'memory_organization';
|
|
2107
2115
|
}
|
|
2108
2116
|
/**
|
|
2109
2117
|
* Companion reminder message payload (Shadow → Main)
|
|
@@ -2117,6 +2125,17 @@ interface CompanionReminderMessage {
|
|
|
2117
2125
|
filePath?: string;
|
|
2118
2126
|
timestamp: string;
|
|
2119
2127
|
}
|
|
2128
|
+
/**
|
|
2129
|
+
* Companion memory organization message payload (System → Worker)
|
|
2130
|
+
* Sent by the daemon scheduler to run a focused memory cleanup/review task.
|
|
2131
|
+
*/
|
|
2132
|
+
interface CompanionMemoryOrganizationMessage {
|
|
2133
|
+
type: 'companion_memory_organization';
|
|
2134
|
+
timestamp: string;
|
|
2135
|
+
trigger: 'scheduled' | 'user_request';
|
|
2136
|
+
triggerTime?: string;
|
|
2137
|
+
intervalHours?: number;
|
|
2138
|
+
}
|
|
2120
2139
|
/**
|
|
2121
2140
|
* Sub task ask user card message payload (API → Parent Task Viewers)
|
|
2122
2141
|
* Sent when a subtask uses ask_user tool to request user input
|
|
@@ -2148,10 +2167,11 @@ interface TaskSystemMessage {
|
|
|
2148
2167
|
* - AskUserResponseMessage: User responding to questions
|
|
2149
2168
|
* - CompanionHeartbeatMessage: Scheduled heartbeat to wake up companion
|
|
2150
2169
|
* - CompanionReminderMessage: Shadow companion reminding main companion
|
|
2170
|
+
* - CompanionMemoryOrganizationMessage: Scheduled or user-requested memory organization task
|
|
2151
2171
|
* - SubTaskAskUserMessage: Sub task ask user card message
|
|
2152
2172
|
* - TaskSystemMessage: Worker/system temporary status visible in task history
|
|
2153
2173
|
*/
|
|
2154
|
-
type TaskMessagePayload = SDKMessage | AskUserMessage | AskUserResponseMessage | CompanionHeartbeatMessage | CompanionReminderMessage | SubTaskAskUserMessage | TaskSystemMessage;
|
|
2174
|
+
type TaskMessagePayload = SDKMessage | AskUserMessage | AskUserResponseMessage | CompanionHeartbeatMessage | CompanionReminderMessage | CompanionMemoryOrganizationMessage | SubTaskAskUserMessage | TaskSystemMessage;
|
|
2155
2175
|
|
|
2156
2176
|
declare const TaskAgentInfoSchema: z.ZodObject<{
|
|
2157
2177
|
id: z.ZodString;
|
|
@@ -2180,6 +2200,10 @@ declare function isCompanionHeartbeatMessage(message: TaskMessagePayload): messa
|
|
|
2180
2200
|
* Type guard to check if message is CompanionReminderMessage
|
|
2181
2201
|
*/
|
|
2182
2202
|
declare function isCompanionReminderMessage(message: TaskMessagePayload): message is CompanionReminderMessage;
|
|
2203
|
+
/**
|
|
2204
|
+
* Type guard to check if message is CompanionMemoryOrganizationMessage
|
|
2205
|
+
*/
|
|
2206
|
+
declare function isCompanionMemoryOrganizationMessage(message: TaskMessagePayload): message is CompanionMemoryOrganizationMessage;
|
|
2183
2207
|
/**
|
|
2184
2208
|
* Type guard to check if message is SubTaskAskUserMessage
|
|
2185
2209
|
*/
|
|
@@ -2189,7 +2213,7 @@ declare function isSubTaskAskUserMessage(message: TaskMessagePayload): message i
|
|
|
2189
2213
|
*/
|
|
2190
2214
|
declare function isTaskSystemMessage(message: TaskMessagePayload): message is TaskSystemMessage;
|
|
2191
2215
|
/**
|
|
2192
|
-
* Type guard to check if message is SDKMessage (not ask_user related, not companion_heartbeat, not companion_reminder, not sub_task_ask_user, not task system message)
|
|
2216
|
+
* Type guard to check if message is SDKMessage (not ask_user related, not companion_heartbeat, not companion_reminder, not companion_memory_organization, not sub_task_ask_user, not task system message)
|
|
2193
2217
|
*/
|
|
2194
2218
|
declare function isSDKMessage(message: TaskMessagePayload): message is SDKMessage;
|
|
2195
2219
|
/**
|
|
@@ -2238,6 +2262,7 @@ declare const VisionPlanActionEventSchema: z.ZodObject<{
|
|
|
2238
2262
|
submit_review: "submit_review";
|
|
2239
2263
|
}>;
|
|
2240
2264
|
reviewMarkdown: z.ZodOptional<z.ZodString>;
|
|
2265
|
+
reviewPath: z.ZodOptional<z.ZodString>;
|
|
2241
2266
|
}, z.core.$strip>;
|
|
2242
2267
|
type VisionPlanActionEventData = z.infer<typeof VisionPlanActionEventSchema>;
|
|
2243
2268
|
declare const VisionPlanReviewWriteEventSchema: z.ZodObject<{
|
|
@@ -2249,6 +2274,43 @@ declare const VisionPlanReviewWriteEventSchema: z.ZodObject<{
|
|
|
2249
2274
|
content: z.ZodString;
|
|
2250
2275
|
}, z.core.$strip>;
|
|
2251
2276
|
type VisionPlanReviewWriteEventData = z.infer<typeof VisionPlanReviewWriteEventSchema>;
|
|
2277
|
+
declare const WorkspaceFileMutationOperationSchema: z.ZodEnum<{
|
|
2278
|
+
write: "write";
|
|
2279
|
+
delete: "delete";
|
|
2280
|
+
}>;
|
|
2281
|
+
declare const WorkspaceFileMutationRequestSchema: z.ZodObject<{
|
|
2282
|
+
eventId: z.ZodString;
|
|
2283
|
+
taskId: z.ZodString;
|
|
2284
|
+
userId: z.ZodString;
|
|
2285
|
+
relativePath: z.ZodString;
|
|
2286
|
+
requestId: z.ZodString;
|
|
2287
|
+
operation: z.ZodEnum<{
|
|
2288
|
+
write: "write";
|
|
2289
|
+
delete: "delete";
|
|
2290
|
+
}>;
|
|
2291
|
+
content: z.ZodOptional<z.ZodString>;
|
|
2292
|
+
createOnly: z.ZodOptional<z.ZodBoolean>;
|
|
2293
|
+
}, z.core.$strip>;
|
|
2294
|
+
type WorkspaceFileMutationRequestEventData = z.infer<typeof WorkspaceFileMutationRequestSchema>;
|
|
2295
|
+
declare const WorkspaceFileMutationResponseSchema: z.ZodObject<{
|
|
2296
|
+
eventId: z.ZodString;
|
|
2297
|
+
requestId: z.ZodString;
|
|
2298
|
+
taskId: z.ZodString;
|
|
2299
|
+
success: z.ZodBoolean;
|
|
2300
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
2301
|
+
relativePath: z.ZodString;
|
|
2302
|
+
operation: z.ZodEnum<{
|
|
2303
|
+
write: "write";
|
|
2304
|
+
delete: "delete";
|
|
2305
|
+
}>;
|
|
2306
|
+
modifiedAt: z.ZodOptional<z.ZodString>;
|
|
2307
|
+
}, z.core.$strip>>;
|
|
2308
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
2309
|
+
code: z.ZodString;
|
|
2310
|
+
message: z.ZodString;
|
|
2311
|
+
}, z.core.$strip>>;
|
|
2312
|
+
}, z.core.$strip>;
|
|
2313
|
+
type WorkspaceFileMutationResponseEventData = z.infer<typeof WorkspaceFileMutationResponseSchema>;
|
|
2252
2314
|
declare const AppAliveEventSchema: z.ZodObject<{
|
|
2253
2315
|
eventId: z.ZodString;
|
|
2254
2316
|
timestamp: z.ZodString;
|
|
@@ -2440,6 +2502,12 @@ declare const baseTaskSchema: z.ZodObject<{
|
|
|
2440
2502
|
chatId: z.ZodString;
|
|
2441
2503
|
agentId: z.ZodString;
|
|
2442
2504
|
agentType: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
2505
|
+
allowFilesystemAgent: z.ZodOptional<z.ZodBoolean>;
|
|
2506
|
+
agentSource: z.ZodOptional<z.ZodEnum<{
|
|
2507
|
+
registered: "registered";
|
|
2508
|
+
draft: "draft";
|
|
2509
|
+
filesystem: "filesystem";
|
|
2510
|
+
}>>;
|
|
2443
2511
|
machineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2444
2512
|
cloudId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2445
2513
|
agentDir: z.ZodOptional<z.ZodString>;
|
|
@@ -2529,6 +2597,12 @@ declare const createTaskSchema: z.ZodObject<{
|
|
|
2529
2597
|
chatId: z.ZodString;
|
|
2530
2598
|
agentId: z.ZodString;
|
|
2531
2599
|
agentType: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
2600
|
+
allowFilesystemAgent: z.ZodOptional<z.ZodBoolean>;
|
|
2601
|
+
agentSource: z.ZodOptional<z.ZodEnum<{
|
|
2602
|
+
registered: "registered";
|
|
2603
|
+
draft: "draft";
|
|
2604
|
+
filesystem: "filesystem";
|
|
2605
|
+
}>>;
|
|
2532
2606
|
machineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2533
2607
|
cloudId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2534
2608
|
agentDir: z.ZodOptional<z.ZodString>;
|
|
@@ -2621,6 +2695,12 @@ declare const resumeTaskSchema: z.ZodObject<{
|
|
|
2621
2695
|
chatId: z.ZodString;
|
|
2622
2696
|
agentId: z.ZodString;
|
|
2623
2697
|
agentType: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
2698
|
+
allowFilesystemAgent: z.ZodOptional<z.ZodBoolean>;
|
|
2699
|
+
agentSource: z.ZodOptional<z.ZodEnum<{
|
|
2700
|
+
registered: "registered";
|
|
2701
|
+
draft: "draft";
|
|
2702
|
+
filesystem: "filesystem";
|
|
2703
|
+
}>>;
|
|
2624
2704
|
machineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2625
2705
|
cloudId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2626
2706
|
agentDir: z.ZodOptional<z.ZodString>;
|
|
@@ -2826,9 +2906,9 @@ declare const TaskMessageSchema: z.ZodObject<{
|
|
|
2826
2906
|
taskId: z.ZodString;
|
|
2827
2907
|
chatId: z.ZodOptional<z.ZodString>;
|
|
2828
2908
|
from: z.ZodEnum<{
|
|
2829
|
-
machine: "machine";
|
|
2830
2909
|
app: "app";
|
|
2831
2910
|
"api-server": "api-server";
|
|
2911
|
+
machine: "machine";
|
|
2832
2912
|
worker: "worker";
|
|
2833
2913
|
}>;
|
|
2834
2914
|
opCode: z.ZodOptional<z.ZodString>;
|
|
@@ -2839,8 +2919,8 @@ declare const TaskMessageSchema: z.ZodObject<{
|
|
|
2839
2919
|
encryptedMessage: z.ZodOptional<z.ZodString>;
|
|
2840
2920
|
agentId: z.ZodOptional<z.ZodString>;
|
|
2841
2921
|
senderType: z.ZodEnum<{
|
|
2842
|
-
human: "human";
|
|
2843
2922
|
system: "system";
|
|
2923
|
+
human: "human";
|
|
2844
2924
|
agent: "agent";
|
|
2845
2925
|
channel: "channel";
|
|
2846
2926
|
}>;
|
|
@@ -2991,8 +3071,8 @@ declare const RtcSignalSchema: z.ZodObject<{
|
|
|
2991
3071
|
machineId: z.ZodString;
|
|
2992
3072
|
sessionId: z.ZodString;
|
|
2993
3073
|
from: z.ZodEnum<{
|
|
2994
|
-
machine: "machine";
|
|
2995
3074
|
app: "app";
|
|
3075
|
+
machine: "machine";
|
|
2996
3076
|
}>;
|
|
2997
3077
|
signal: z.ZodAny;
|
|
2998
3078
|
userId: z.ZodOptional<z.ZodString>;
|
|
@@ -3551,11 +3631,12 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
3551
3631
|
userId: z.ZodString;
|
|
3552
3632
|
state: z.ZodString;
|
|
3553
3633
|
workerStatus: z.ZodNullable<z.ZodEnum<{
|
|
3554
|
-
running: "running";
|
|
3555
3634
|
initializing: "initializing";
|
|
3556
3635
|
ready: "ready";
|
|
3636
|
+
running: "running";
|
|
3557
3637
|
}>>;
|
|
3558
3638
|
agentId: z.ZodString;
|
|
3639
|
+
allowFilesystemAgent: z.ZodBoolean;
|
|
3559
3640
|
machineId: z.ZodNullable<z.ZodString>;
|
|
3560
3641
|
cloudId: z.ZodNullable<z.ZodString>;
|
|
3561
3642
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -3705,8 +3786,6 @@ declare const CompanionHeartbeatRequestSchema: z.ZodObject<{
|
|
|
3705
3786
|
triggerTime: z.ZodOptional<z.ZodString>;
|
|
3706
3787
|
triggerReasons: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3707
3788
|
heartbeatTriggerCount: z.ZodOptional<z.ZodNumber>;
|
|
3708
|
-
maintenanceMode: z.ZodOptional<z.ZodBoolean>;
|
|
3709
|
-
maintenanceModeType: z.ZodOptional<z.ZodLiteral<"memory_organization">>;
|
|
3710
3789
|
}, z.core.$strip>;
|
|
3711
3790
|
type CompanionHeartbeatRequestData = z.infer<typeof CompanionHeartbeatRequestSchema>;
|
|
3712
3791
|
declare const CompanionHeartbeatResponseSchema: z.ZodObject<{
|
|
@@ -3715,6 +3794,27 @@ declare const CompanionHeartbeatResponseSchema: z.ZodObject<{
|
|
|
3715
3794
|
chatId: z.ZodString;
|
|
3716
3795
|
}, z.core.$strip>;
|
|
3717
3796
|
type CompanionHeartbeatResponseData = z.infer<typeof CompanionHeartbeatResponseSchema>;
|
|
3797
|
+
declare const CompanionMemoryOrganizationRequestSchema: z.ZodObject<{
|
|
3798
|
+
eventId: z.ZodString;
|
|
3799
|
+
machineId: z.ZodString;
|
|
3800
|
+
agentId: z.ZodString;
|
|
3801
|
+
chatId: z.ZodString;
|
|
3802
|
+
userId: z.ZodString;
|
|
3803
|
+
timestamp: z.ZodString;
|
|
3804
|
+
trigger: z.ZodEnum<{
|
|
3805
|
+
scheduled: "scheduled";
|
|
3806
|
+
user_request: "user_request";
|
|
3807
|
+
}>;
|
|
3808
|
+
triggerTime: z.ZodOptional<z.ZodString>;
|
|
3809
|
+
intervalHours: z.ZodOptional<z.ZodNumber>;
|
|
3810
|
+
}, z.core.$strip>;
|
|
3811
|
+
type CompanionMemoryOrganizationRequestData = z.infer<typeof CompanionMemoryOrganizationRequestSchema>;
|
|
3812
|
+
declare const CompanionMemoryOrganizationResponseSchema: z.ZodObject<{
|
|
3813
|
+
eventId: z.ZodString;
|
|
3814
|
+
taskId: z.ZodString;
|
|
3815
|
+
chatId: z.ZodString;
|
|
3816
|
+
}, z.core.$strip>;
|
|
3817
|
+
type CompanionMemoryOrganizationResponseData = z.infer<typeof CompanionMemoryOrganizationResponseSchema>;
|
|
3718
3818
|
declare const CompanionInitRequestSchema: z.ZodObject<{
|
|
3719
3819
|
eventId: z.ZodString;
|
|
3720
3820
|
machineId: z.ZodString;
|
|
@@ -3734,7 +3834,7 @@ declare const ResetTaskSessionSchema: z.ZodObject<{
|
|
|
3734
3834
|
taskId: z.ZodString;
|
|
3735
3835
|
}, z.core.$strip>;
|
|
3736
3836
|
type ResetTaskSessionEventData = z.infer<typeof ResetTaskSessionSchema>;
|
|
3737
|
-
type EventData = AppAliveEventData | ApiServerAliveEventData | MachineAliveEventData | MachineActionRequestEventData | MachineControlCommandEventData | MachineControlProgressEventData | MachineControlUpdatedEventData | ShutdownMachineData | WorkerInitializingEventData | WorkerInitializedEventData | WorkerReadyEventData | WorkerAliveEventData | WorkerExitEventData | WorkerRunningEventData | WorkerPermissionModeEventData | WorkerStatusRequestEventData | ChatWorkersStatusRequestEventData | ChatWorkersStatusResponseEventData | CreateTaskEventData | ResumeTaskEventData | CancelTaskEventData | StopTaskEventData | TaskMessageEventData | ChangeTaskTitleEventData | TaskStateChangeEventData | UpdateTaskAgentSessionIdEventData | TaskInfoUpdateEventData | TaskSlashCommandsUpdateEventData | MergeRequestEventData | TaskStoppedEventData | SubTaskResultUpdatedEventData | SubTaskAskUserEventData | SystemMessageEventData | CreditExhaustedEventData | RtcIceServersRequestEventData | RtcIceServersResponseEventData | MachineRtcRequestEventData | MachineRtcResponseEventData | RtcSignalEventData | WorkspaceFileRequestEventData | WorkspaceFileResponseEventData | UpdateAgentInfoEventData | MachineRpcCallEventData | DaemonGitlabRequestEventData | DaemonGitlabResponseEventData | CompanionHeartbeatRequestData | CompanionHeartbeatResponseData | CompanionInitRequestData | CompanionInitResponseData | ResetTaskSessionEventData | HiveInstallEventData | HiveInstallCompleteEventData | SeqSyncRequestEventData | SeqSyncResponseEventData;
|
|
3837
|
+
type EventData = AppAliveEventData | ApiServerAliveEventData | MachineAliveEventData | MachineActionRequestEventData | MachineControlCommandEventData | MachineControlProgressEventData | MachineControlUpdatedEventData | ShutdownMachineData | WorkerInitializingEventData | WorkerInitializedEventData | WorkerReadyEventData | WorkerAliveEventData | WorkerExitEventData | WorkerRunningEventData | WorkerPermissionModeEventData | WorkerStatusRequestEventData | ChatWorkersStatusRequestEventData | ChatWorkersStatusResponseEventData | CreateTaskEventData | ResumeTaskEventData | CancelTaskEventData | StopTaskEventData | TaskMessageEventData | ChangeTaskTitleEventData | TaskStateChangeEventData | UpdateTaskAgentSessionIdEventData | TaskInfoUpdateEventData | TaskSlashCommandsUpdateEventData | MergeRequestEventData | TaskStoppedEventData | SubTaskResultUpdatedEventData | SubTaskAskUserEventData | SystemMessageEventData | CreditExhaustedEventData | RtcIceServersRequestEventData | RtcIceServersResponseEventData | MachineRtcRequestEventData | MachineRtcResponseEventData | RtcSignalEventData | WorkspaceFileRequestEventData | WorkspaceFileResponseEventData | UpdateAgentInfoEventData | MachineRpcCallEventData | DaemonGitlabRequestEventData | DaemonGitlabResponseEventData | CompanionHeartbeatRequestData | CompanionHeartbeatResponseData | CompanionMemoryOrganizationRequestData | CompanionMemoryOrganizationResponseData | CompanionInitRequestData | CompanionInitResponseData | ResetTaskSessionEventData | HiveInstallEventData | HiveInstallCompleteEventData | SeqSyncRequestEventData | SeqSyncResponseEventData;
|
|
3738
3838
|
declare const SeqSyncRequestEventDataSchema: z.ZodObject<{
|
|
3739
3839
|
eventId: z.ZodString;
|
|
3740
3840
|
tasks: z.ZodArray<z.ZodObject<{
|
|
@@ -3796,6 +3896,8 @@ type EventMap = {
|
|
|
3796
3896
|
"vision-plan-card": VisionPlanCardEventData;
|
|
3797
3897
|
"vision-plan-action": VisionPlanActionEventData;
|
|
3798
3898
|
"vision-plan-review-write": VisionPlanReviewWriteEventData;
|
|
3899
|
+
"workspace-file-mutation-request": WorkspaceFileMutationRequestEventData;
|
|
3900
|
+
"workspace-file-mutation-response": WorkspaceFileMutationResponseEventData;
|
|
3799
3901
|
"associate-repo": AssociateRepoEventData;
|
|
3800
3902
|
"update-agent-info": UpdateAgentInfoEventData;
|
|
3801
3903
|
"system-message": SystemMessageEventData;
|
|
@@ -3815,6 +3917,8 @@ type EventMap = {
|
|
|
3815
3917
|
"repository-inbox-webhook": RepositoryInboxWebhookEventData;
|
|
3816
3918
|
"request-companion-heartbeat": CompanionHeartbeatRequestData;
|
|
3817
3919
|
"companion-heartbeat-response": CompanionHeartbeatResponseData;
|
|
3920
|
+
"request-companion-memory-organization": CompanionMemoryOrganizationRequestData;
|
|
3921
|
+
"companion-memory-organization-response": CompanionMemoryOrganizationResponseData;
|
|
3818
3922
|
"request-companion-init": CompanionInitRequestData;
|
|
3819
3923
|
"companion-init-response": CompanionInitResponseData;
|
|
3820
3924
|
"reset-task-session": ResetTaskSessionEventData;
|
|
@@ -4177,43 +4281,6 @@ interface LoadAgentOptions {
|
|
|
4177
4281
|
validateOnly?: boolean;
|
|
4178
4282
|
agentDir?: string;
|
|
4179
4283
|
}
|
|
4180
|
-
/**
|
|
4181
|
-
* Input for RepositoryInit hook (Agentrix custom hook)
|
|
4182
|
-
*
|
|
4183
|
-
* Called once when initializing a new git repository.
|
|
4184
|
-
* Allows agent to set up initial files (.gitignore, README, etc.) before
|
|
4185
|
-
* the first commit.
|
|
4186
|
-
*
|
|
4187
|
-
* @example
|
|
4188
|
-
* ```typescript
|
|
4189
|
-
* import type { RepositoryInitHookInput } from '@agentrix/shared';
|
|
4190
|
-
*
|
|
4191
|
-
* export async function RepositoryInit(
|
|
4192
|
-
* input: RepositoryInitHookInput,
|
|
4193
|
-
* toolUseID: string,
|
|
4194
|
-
* options: { signal: AbortSignal }
|
|
4195
|
-
* ) {
|
|
4196
|
-
* // Set up initial files
|
|
4197
|
-
* const gitignorePath = join(input.workspace_path, '.gitignore');
|
|
4198
|
-
* appendFileSync(gitignorePath, '\n.env.local\ntmp/\n');
|
|
4199
|
-
* return {};
|
|
4200
|
-
* }
|
|
4201
|
-
* ```
|
|
4202
|
-
*/
|
|
4203
|
-
interface RepositoryInitHookInput {
|
|
4204
|
-
/**
|
|
4205
|
-
* Hook event name (always 'RepositoryInit' for this hook type)
|
|
4206
|
-
*/
|
|
4207
|
-
hook_event_name: 'RepositoryInit';
|
|
4208
|
-
/**
|
|
4209
|
-
* Absolute path to the workspace directory
|
|
4210
|
-
*/
|
|
4211
|
-
workspace_path: string;
|
|
4212
|
-
/**
|
|
4213
|
-
* Task ID for this workspace
|
|
4214
|
-
*/
|
|
4215
|
-
task_id: string;
|
|
4216
|
-
}
|
|
4217
4284
|
/**
|
|
4218
4285
|
* Hook factory function type
|
|
4219
4286
|
*
|
|
@@ -4309,5 +4376,5 @@ declare class MissingAgentFileError extends AgentError {
|
|
|
4309
4376
|
constructor(filePath: string);
|
|
4310
4377
|
}
|
|
4311
4378
|
|
|
4312
|
-
export { permissionResponseRequestSchema as $, ListTasksResponseSchema as A, DEFAULT_WORKER_EXECUTION_MODE as D, EnsureIssueRootTaskRequestSchema as E, resumeTaskRequestSchema as F, ResumeTaskResponseSchema as G, CancelTaskRequestSchema as I, cancelTaskRequestSchema as K, ListTasksRequestSchema as L, CancelTaskResponseSchema as M, StopTaskRequestSchema as O, ResumeTaskRequestSchema as R, StartTaskRequestSchema as S, UpdateTaskPreviewUrlRequestSchema as U, stopTaskRequestSchema as V, StopTaskResponseSchema as X, PermissionResponseRequestSchema as Z, WorkerExecutionModeSchema as a, FindTaskByAgentRequestSchema as a$, PermissionResponseResponseSchema as a0, ProjectEntrySchema as a2, ProjectDirectoryResponseSchema as a4, QueryEventsRequestSchema as a6, UpdateTaskTitleResponseSchema as aA, UpdateTaskPreviewUrlResponseSchema as aC, SendTaskMessageRequestSchema as aF, SendTaskMessageResponseSchema as aH, ShowModalRequestSchema as aJ, ShowModalResponseSchema as aL, GetTaskSessionResponseSchema as aN, ListSubTasksRequestSchema as aP, SubTaskSummarySchema as aR, ListSubTasksResponseSchema as aT, ListRecentTasksRequestSchema as aV, RecentTaskSummarySchema as aX, ListRecentTasksResponseSchema as aZ, FillEventsRequestSchema as aa, CreateMergeRequestSchema as ad, createMergeRequestSchema as af, CreateMergeRequestResponseSchema as ag, ApprovePrRequestSchema as ai, ApprovePrResponseSchema as ak, CreateTaskShareSchema as am, CreateTaskShareResponseSchema as ao, ArchiveTaskRequestSchema as aq, ArchiveTaskResponseSchema as as, UnarchiveTaskRequestSchema as au, UnarchiveTaskResponseSchema as aw, UpdateTaskTitleRequestSchema as ay, SyncAvailableEventSchema as b$, FindTaskByAgentResponseSchema as b1, HiveListingTypeSchema as b3, HiveAuthorTypeSchema as b5, HiveListingStatusSchema as b7, HiveSortSchema as b9, CreateHiveReviewRequestSchema as bB, UpdateHiveReviewRequestSchema as bD, HiveReviewListResponseSchema as bF, HiveCommentSchema as bH, CreateHiveCommentRequestSchema as bJ, UpdateHiveCommentRequestSchema as bL, HiveCommentListResponseSchema as bN, HiveInstalledItemSchema as bP, HiveInstalledResponseSchema as bR, HiveMyListingsResponseSchema as bT, SyncStreamTypeSchema as bV, GetStreamVersionQuerySchema as bX, StreamVersionResponseSchema as bZ, HiveListingSchema as bb, PublishToHiveRequestSchema as bd, PublishToHiveResponseSchema as bf, HiveListQuerySchema as bh, HiveListResponseSchema as bj, UpdateHiveListingRequestSchema as bl, UpdateHiveVersionRequestSchema as bn, HiveInstallRequestSchema as bp, HiveInstallSchema as br, HiveInstallResponseSchema as bt, RecordHiveInstallRequestSchema as bv, RecordHiveInstallResponseSchema as bx, HiveReviewSchema as bz, isLocalTaskExecution as c,
|
|
4313
|
-
export type { ListTasksResponse as B, ResumeTaskRequest as C, ResumeTaskResponse as H, CancelTaskRequest as J, CancelTaskResponse as N, PreviewMetadata as P, StopTaskRequest as Q, TaskExecutionMode as T, WorkerExecutionMode as W, StopTaskResponse as Y, PermissionResponseRequest as _, PermissionResponseResponse as a1, ProjectEntry as a3, ProjectDirectoryResponse as a5, QueryEventsRequest as a7, TaskEvent as a8, QueryEventsResponse as a9, UpdateTaskTitleResponse as aB, UpdateTaskPreviewUrlResponse as aD, SendMessageTarget as aE, SendTaskMessageRequest as aG, SendTaskMessageResponse as aI, ShowModalRequest as aK, ShowModalResponse as aM, GetTaskSessionResponse as aO, ListSubTasksRequest as aQ, SubTaskSummary as aS, ListSubTasksResponse as aU, ListRecentTasksRequest as aW, RecentTaskSummary as aY, ListRecentTasksResponse as a_, FillEventsRequest as ab, FillEventsResponse as ac, CreateMergeRequestRequest as ae, CreateMergeRequestResponse as ah, ApprovePrRequest as aj, ApprovePrResponse as al, CreateTaskShareRequest as an, CreateTaskShareResponse as ap, ArchiveTaskRequest as ar, ArchiveTaskResponse as at, UnarchiveTaskRequest as av, UnarchiveTaskResponse as ax, UpdateTaskTitleRequest as az, TaskExecutionTarget as b, FindTaskByAgentRequest as b0, FindTaskByAgentResponse as b2, HiveListingType as b4, HiveAuthorType as b6, HiveListingStatus as b8, HiveReview as bA, CreateHiveReviewRequest as bC, UpdateHiveReviewRequest as bE, HiveReviewListResponse as bG, HiveComment as bI, CreateHiveCommentRequest as bK, UpdateHiveCommentRequest as bM, HiveCommentListResponse as bO, HiveInstalledItem as bQ, HiveInstalledResponse as bS, HiveMyListingsResponse as bU, SyncStreamType as bW, GetStreamVersionQuery as bY, StreamVersionResponse as b_, HiveSort as ba, HiveListing as bc, PublishToHiveRequest as be, PublishToHiveResponse as bg, HiveListQuery as bi, HiveListResponse as bk, UpdateHiveListingRequest as bm, UpdateHiveVersionRequest as bo, HiveInstallRequest as bq, HiveInstall as bs, HiveInstallResponse as bu, RecordHiveInstallRequest as bw, RecordHiveInstallResponse as by, SyncAvailableEvent as c0, AskUserOption as c2, AskUserQuestion as c4, AskUserMessage as c6, AskUserResponseStatus as c9,
|
|
4379
|
+
export { permissionResponseRequestSchema as $, ListTasksResponseSchema as A, DEFAULT_WORKER_EXECUTION_MODE as D, EnsureIssueRootTaskRequestSchema as E, resumeTaskRequestSchema as F, ResumeTaskResponseSchema as G, CancelTaskRequestSchema as I, cancelTaskRequestSchema as K, ListTasksRequestSchema as L, CancelTaskResponseSchema as M, StopTaskRequestSchema as O, ResumeTaskRequestSchema as R, StartTaskRequestSchema as S, UpdateTaskPreviewUrlRequestSchema as U, stopTaskRequestSchema as V, StopTaskResponseSchema as X, PermissionResponseRequestSchema as Z, WorkerExecutionModeSchema as a, FindTaskByAgentRequestSchema as a$, PermissionResponseResponseSchema as a0, ProjectEntrySchema as a2, ProjectDirectoryResponseSchema as a4, QueryEventsRequestSchema as a6, UpdateTaskTitleResponseSchema as aA, UpdateTaskPreviewUrlResponseSchema as aC, SendTaskMessageRequestSchema as aF, SendTaskMessageResponseSchema as aH, ShowModalRequestSchema as aJ, ShowModalResponseSchema as aL, GetTaskSessionResponseSchema as aN, ListSubTasksRequestSchema as aP, SubTaskSummarySchema as aR, ListSubTasksResponseSchema as aT, ListRecentTasksRequestSchema as aV, RecentTaskSummarySchema as aX, ListRecentTasksResponseSchema as aZ, FillEventsRequestSchema as aa, CreateMergeRequestSchema as ad, createMergeRequestSchema as af, CreateMergeRequestResponseSchema as ag, ApprovePrRequestSchema as ai, ApprovePrResponseSchema as ak, CreateTaskShareSchema as am, CreateTaskShareResponseSchema as ao, ArchiveTaskRequestSchema as aq, ArchiveTaskResponseSchema as as, UnarchiveTaskRequestSchema as au, UnarchiveTaskResponseSchema as aw, UpdateTaskTitleRequestSchema as ay, SyncAvailableEventSchema as b$, FindTaskByAgentResponseSchema as b1, HiveListingTypeSchema as b3, HiveAuthorTypeSchema as b5, HiveListingStatusSchema as b7, HiveSortSchema as b9, CreateHiveReviewRequestSchema as bB, UpdateHiveReviewRequestSchema as bD, HiveReviewListResponseSchema as bF, HiveCommentSchema as bH, CreateHiveCommentRequestSchema as bJ, UpdateHiveCommentRequestSchema as bL, HiveCommentListResponseSchema as bN, HiveInstalledItemSchema as bP, HiveInstalledResponseSchema as bR, HiveMyListingsResponseSchema as bT, SyncStreamTypeSchema as bV, GetStreamVersionQuerySchema as bX, StreamVersionResponseSchema as bZ, HiveListingSchema as bb, PublishToHiveRequestSchema as bd, PublishToHiveResponseSchema as bf, HiveListQuerySchema as bh, HiveListResponseSchema as bj, UpdateHiveListingRequestSchema as bl, UpdateHiveVersionRequestSchema as bn, HiveInstallRequestSchema as bp, HiveInstallSchema as br, HiveInstallResponseSchema as bt, RecordHiveInstallRequestSchema as bv, RecordHiveInstallResponseSchema as bx, HiveReviewSchema as bz, isLocalTaskExecution as c, AskUserOptionSchema as c1, AskUserQuestionSchema as c3, AskUserMessageSchema as c5, AskUserResponseStatusSchema as c7, AskUserResponseReasonSchema as c8, VisionPlanReviewWriteEventSchema as cB, WorkspaceFileMutationOperationSchema as cD, WorkspaceFileMutationRequestSchema as cE, WorkspaceFileMutationResponseSchema as cG, AppAliveEventSchema as cI, ApiServerAliveEventSchema as cK, MachineAliveEventSchema as cM, ShutdownMachineSchema as cO, WorkerInitializingSchema as cQ, WorkerInitializedSchema as cS, WorkerPermissionModeValueSchema as cU, WorkerReadySchema as cW, ActiveAgentSchema as cY, WorkerAliveEventSchema as c_, AskUserResponseMessageSchema as cb, TaskAgentInfoSchema as cj, isAskUserMessage as cl, isAskUserResponseMessage as cm, isCompanionHeartbeatMessage as cn, isCompanionReminderMessage as co, isCompanionMemoryOrganizationMessage as cp, isSubTaskAskUserMessage as cq, isTaskSystemMessage as cr, isSDKMessage as cs, isSDKUserMessage as ct, createEventId as cu, EventAckSchema as cv, VisionPlanCardEventSchema as cx, VisionPlanActionEventSchema as cz, getTaskExecutionMachineRouteId as d, WorkerExitSchema as d0, WorkerRunningSchema as d2, WorkerPermissionModeSchema as d4, WorkerStatusRequestSchema as d6, WorkerStatusValueSchema as d8, TaskMessageSchema as dB, TaskModelUsageSchema as dD, TaskUsageReportEventSchema as dF, ShowModalEventDataSchema as dI, ChangeTaskTitleEventSchema as dK, TaskStateChangeEventSchema as dM, CreditExhaustedEventSchema as dO, RtcIceServerSchema as dQ, RtcIceServersRequestSchema as dS, RtcIceServersResponseSchema as dU, MachineRtcRequestSchema as dW, MachineRtcResponseSchema as dY, RtcSignalSchema as d_, WorkerStatusSnapshotSchema as da, ChatWorkersStatusRequestSchema as dc, ChatWorkersStatusResponseSchema as de, ListModelsEventSchema as dg, baseTaskSchema as di, createTaskSchema as dj, resumeTaskSchema as dl, cancelTaskSchema as dn, StopTaskSchema as dq, TaskArtifactsStatsSchema as ds, PreviewProjectTypeSchema as du, PreviewMethodSchema as dw, PreviewMetadataSchema as dy, TaskArtifactsSummarySchema as dz, TaskTodoSchema as e, WorkspaceFileRequestSchema as e0, WorkspaceFileResponseSchema as e2, UpdateTaskAgentSessionIdEventSchema as e4, TaskInfoUpdateEventDataSchema as e6, TaskSlashCommandSchema as e8, UpdateAgentInfoEventSchema as eA, SystemMessageSchema as eF, DaemonGitlabOperationSchema as eH, DaemonGitlabRequestSchema as eJ, DaemonGitlabResponseSchema as eL, RepositoryInboxProviderSchema as eN, RepositoryInboxWebhookSchema as eO, CompanionHeartbeatRequestSchema as eQ, CompanionHeartbeatResponseSchema as eS, CompanionMemoryOrganizationRequestSchema as eU, CompanionMemoryOrganizationResponseSchema as eW, CompanionInitRequestSchema as eY, CompanionInitResponseSchema as e_, TaskSlashCommandsUpdateEventDataSchema as ea, MergeRequestEventSchema as ec, TaskStoppedEventSchema as ee, SubTaskResultUpdatedEventSchema as eg, SubTaskAskUserEventSchema as ei, MergePullRequestEventSchema as ek, DeployAgentEventSchema as en, DeployAgentCompleteEventSchema as ep, HivePublishEventSchema as er, HivePublishCompleteEventSchema as et, HiveInstallEventSchema as ev, HiveInstallCompleteEventSchema as ex, AssociateRepoEventDataSchema as ez, ResetTaskSessionSchema as f0, SeqSyncRequestEventDataSchema as f3, SeqSyncResponseEventDataSchema as f5, EventSchemaMap as f9, RpcCallEventSchema as fB, MachineRpcCallEventSchema as fD, RpcResponseSchema as fF, setAgentContext as fJ, getAgentContext as fK, FRAMEWORK_TYPES as fS, AgentMetadataSchema as fT, ClaudeConfigSchema as fU, AgentError as fV, AgentNotFoundError as fW, AgentConfigValidationError as fX, FrameworkNotSupportedError as fY, AgentLoadError as fZ, MissingAgentFileError as f_, workerTaskEvents as fb, MachineControlActionSchema as fc, MachineControlTargetSchema as fe, MachineControlErrorCodeSchema as fg, MachineControlPingResultSchema as fi, MachineActionRequestSchema as fk, MachineActionPendingSchema as fm, ExecuteMachineActionResponseSchema as fo, MachineControlCommandSchema as fq, MachineControlProgressStatusSchema as fs, MachineControlProgressSchema as fu, MachineControlUpdatedStatusSchema as fw, MachineControlUpdatedSchema as fy, getTaskExecutionMode as g, TaskUsageSummarySchema as h, isCloudTaskExecution as i, TaskPreviewUrlSchema as k, normalizeWorkerExecutionMode as n, startTaskSchema as o, StartTaskResponseSchema as p, supportsTaskUserCwd as s, taskExecutionModes as t, TaskItemSchema as u, workerExecutionModes as w, EnsureIssueRootTaskResponseSchema as x };
|
|
4380
|
+
export type { ListTasksResponse as B, ResumeTaskRequest as C, ResumeTaskResponse as H, CancelTaskRequest as J, CancelTaskResponse as N, PreviewMetadata as P, StopTaskRequest as Q, TaskExecutionMode as T, WorkerExecutionMode as W, StopTaskResponse as Y, PermissionResponseRequest as _, PermissionResponseResponse as a1, ProjectEntry as a3, ProjectDirectoryResponse as a5, QueryEventsRequest as a7, TaskEvent as a8, QueryEventsResponse as a9, UpdateTaskTitleResponse as aB, UpdateTaskPreviewUrlResponse as aD, SendMessageTarget as aE, SendTaskMessageRequest as aG, SendTaskMessageResponse as aI, ShowModalRequest as aK, ShowModalResponse as aM, GetTaskSessionResponse as aO, ListSubTasksRequest as aQ, SubTaskSummary as aS, ListSubTasksResponse as aU, ListRecentTasksRequest as aW, RecentTaskSummary as aY, ListRecentTasksResponse as a_, FillEventsRequest as ab, FillEventsResponse as ac, CreateMergeRequestRequest as ae, CreateMergeRequestResponse as ah, ApprovePrRequest as aj, ApprovePrResponse as al, CreateTaskShareRequest as an, CreateTaskShareResponse as ap, ArchiveTaskRequest as ar, ArchiveTaskResponse as at, UnarchiveTaskRequest as av, UnarchiveTaskResponse as ax, UpdateTaskTitleRequest as az, TaskExecutionTarget as b, FindTaskByAgentRequest as b0, FindTaskByAgentResponse as b2, HiveListingType as b4, HiveAuthorType as b6, HiveListingStatus as b8, HiveReview as bA, CreateHiveReviewRequest as bC, UpdateHiveReviewRequest as bE, HiveReviewListResponse as bG, HiveComment as bI, CreateHiveCommentRequest as bK, UpdateHiveCommentRequest as bM, HiveCommentListResponse as bO, HiveInstalledItem as bQ, HiveInstalledResponse as bS, HiveMyListingsResponse as bU, SyncStreamType as bW, GetStreamVersionQuery as bY, StreamVersionResponse as b_, HiveSort as ba, HiveListing as bc, PublishToHiveRequest as be, PublishToHiveResponse as bg, HiveListQuery as bi, HiveListResponse as bk, UpdateHiveListingRequest as bm, UpdateHiveVersionRequest as bo, HiveInstallRequest as bq, HiveInstall as bs, HiveInstallResponse as bu, RecordHiveInstallRequest as bw, RecordHiveInstallResponse as by, WorkerAliveEventData as c$, SyncAvailableEvent as c0, AskUserOption as c2, AskUserQuestion as c4, AskUserMessage as c6, AskUserResponseStatus as c9, VisionPlanActionEventData as cA, VisionPlanReviewWriteEventData as cC, WorkspaceFileMutationRequestEventData as cF, WorkspaceFileMutationResponseEventData as cH, AppAliveEventData as cJ, ApiServerAliveEventData as cL, MachineAliveEventData as cN, ShutdownMachineData as cP, WorkerInitializingEventData as cR, WorkerInitializedEventData as cT, WorkerPermissionModeValue as cV, WorkerReadyEventData as cX, ActiveAgent as cZ, AskUserResponseReason as ca, AskUserResponseMessage as cc, CompanionHeartbeatMessage as cd, CompanionReminderMessage as ce, CompanionMemoryOrganizationMessage as cf, SubTaskAskUserMessage as cg, TaskSystemMessage as ch, TaskMessagePayload as ci, TaskAgentInfo as ck, EventAckData as cw, VisionPlanCardEventData as cy, RtcSignalEventData as d$, WorkerExitEventData as d1, WorkerRunningEventData as d3, WorkerPermissionModeEventData as d5, WorkerStatusRequestEventData as d7, WorkerStatusValue as d9, TaskArtifactsSummary as dA, TaskMessageEventData as dC, TaskModelUsage as dE, TaskUsageReportEventData as dG, TaskState as dH, ShowModalEventData as dJ, ChangeTaskTitleEventData as dL, TaskStateChangeEventData as dN, CreditExhaustedEventData as dP, RtcIceServer as dR, RtcIceServersRequestEventData as dT, RtcIceServersResponseEventData as dV, MachineRtcRequestEventData as dX, MachineRtcResponseEventData as dZ, WorkerStatusSnapshot as db, ChatWorkersStatusRequestEventData as dd, ChatWorkersStatusResponseEventData as df, ListModelsEventData as dh, CreateTaskEventData as dk, ResumeTaskEventData as dm, CancelTaskEventData as dp, StopTaskEventData as dr, TaskArtifactsStats as dt, PreviewProjectType as dv, PreviewMethod as dx, CompanionInitResponseData as e$, WorkspaceFileRequestEventData as e1, WorkspaceFileResponseEventData as e3, UpdateTaskAgentSessionIdEventData as e5, TaskInfoUpdateEventData as e7, TaskSlashCommand as e9, UpdateAgentInfoEventData as eB, AssociateRepoEventData as eC, SystemMessageType as eD, PrStateChangedData as eE, SystemMessageEventData as eG, DaemonGitlabOperation as eI, DaemonGitlabRequestEventData as eK, DaemonGitlabResponseEventData as eM, RepositoryInboxWebhookEventData as eP, CompanionHeartbeatRequestData as eR, CompanionHeartbeatResponseData as eT, CompanionMemoryOrganizationRequestData as eV, CompanionMemoryOrganizationResponseData as eX, CompanionInitRequestData as eZ, TaskSlashCommandsUpdateEventData as eb, MergeRequestEventData as ed, TaskStoppedEventData as ef, SubTaskResultUpdatedEventData as eh, SubTaskAskUserEventData as ej, MergePullRequestEventData as el, MergePullRequestAck as em, DeployAgentEventData as eo, DeployAgentCompleteEventData as eq, HivePublishEventData as es, HivePublishCompleteEventData as eu, HiveInstallEventData as ew, HiveInstallCompleteEventData as ey, TaskTodo as f, ResetTaskSessionEventData as f1, EventData as f2, SeqSyncRequestEventData as f4, SeqSyncResponseEventData as f6, EventMap as f7, EventName as f8, MachineControlRelayContext as fA, RpcCallEventData as fC, MachineRpcCallEventData as fE, RpcResponseData as fG, AgentContext as fH, AgentrixContext as fI, FrameworkType as fL, AgentMetadata as fM, ClaudeAgentConfig as fN, AgentConfig as fO, ValidationResult as fP, LoadAgentOptions as fQ, HookFactory as fR, WorkerTaskEvent as fa, MachineControlAction as fd, MachineControlTarget as ff, MachineControlErrorCode as fh, MachineControlPingResult as fj, MachineActionRequestEventData as fl, MachineActionPending as fn, ExecuteMachineActionResponse as fp, MachineControlCommandEventData as fr, MachineControlProgressStatus as ft, MachineControlProgressEventData as fv, MachineControlUpdatedStatus as fx, MachineControlUpdatedEventData as fz, TaskUsageSummary as j, UpdateTaskPreviewUrlRequest as l, StartTaskRequest as m, StartTaskResponse as q, EnsureIssueRootTaskRequest as r, TaskItem as v, EnsureIssueRootTaskResponse as y, ListTasksRequest as z };
|
package/dist/index.cjs
CHANGED
|
@@ -371,6 +371,8 @@ const StartTaskRequestSchema = zod.z.object({
|
|
|
371
371
|
// Multi-agent collaboration fields
|
|
372
372
|
agentId: zod.z.string().optional(),
|
|
373
373
|
// Agent ID to execute the task (overrides chat's first agent)
|
|
374
|
+
allowFilesystemAgent: zod.z.boolean().optional(),
|
|
375
|
+
// Allow unresolved agentId to be resolved from worker filesystem
|
|
374
376
|
parentTaskId: zod.z.string().optional(),
|
|
375
377
|
// Parent task ID (for creating child tasks, machineId/cloudId inherited from parent)
|
|
376
378
|
sourceTaskId: zod.z.string().optional(),
|
|
@@ -410,6 +412,7 @@ const StartTaskResponseSchema = zod.z.object({
|
|
|
410
412
|
taskId: IdSchema,
|
|
411
413
|
chatId: IdSchema,
|
|
412
414
|
agentId: zod.z.string(),
|
|
415
|
+
allowFilesystemAgent: zod.z.boolean(),
|
|
413
416
|
taskAgentIds: zod.z.array(zod.z.string()),
|
|
414
417
|
supportedFeatures: zod.z.array(zod.z.string()),
|
|
415
418
|
userId: zod.z.string(),
|
|
@@ -449,6 +452,7 @@ const TaskItemSchema = zod.z.object({
|
|
|
449
452
|
workerStatus: zod.z.enum(["initializing", "ready", "running"]).nullable(),
|
|
450
453
|
// Worker execution status (null = disconnected)
|
|
451
454
|
agentId: zod.z.string(),
|
|
455
|
+
allowFilesystemAgent: zod.z.boolean(),
|
|
452
456
|
machineId: zod.z.string().nullable(),
|
|
453
457
|
// LocalMachine ID, or selected cloud deviceId when cloudId is set
|
|
454
458
|
cloudId: zod.z.string().nullable(),
|
|
@@ -1836,6 +1840,7 @@ const CiRunContextSchema = zod.z.object({
|
|
|
1836
1840
|
});
|
|
1837
1841
|
const CreateCiRunRequestSchema = zod.z.object({
|
|
1838
1842
|
agent: zod.z.string().min(1),
|
|
1843
|
+
allowFilesystemAgent: zod.z.boolean().optional(),
|
|
1839
1844
|
responseMode: CiRunResponseModeSchema.optional(),
|
|
1840
1845
|
title: zod.z.string().min(1).max(200).optional(),
|
|
1841
1846
|
prompt: zod.z.string().min(1),
|
|
@@ -2593,6 +2598,9 @@ function isCompanionHeartbeatMessage(message) {
|
|
|
2593
2598
|
function isCompanionReminderMessage(message) {
|
|
2594
2599
|
return typeof message === "object" && message !== null && "type" in message && message.type === "companion_reminder";
|
|
2595
2600
|
}
|
|
2601
|
+
function isCompanionMemoryOrganizationMessage(message) {
|
|
2602
|
+
return typeof message === "object" && message !== null && "type" in message && message.type === "companion_memory_organization";
|
|
2603
|
+
}
|
|
2596
2604
|
function isSubTaskAskUserMessage(message) {
|
|
2597
2605
|
return typeof message === "object" && message !== null && "type" in message && message.type === "sub_task_ask_user";
|
|
2598
2606
|
}
|
|
@@ -2600,7 +2608,7 @@ function isTaskSystemMessage(message) {
|
|
|
2600
2608
|
return typeof message === "object" && message !== null && "type" in message && message.type === "system" && "subtype" in message && message.subtype === "temporary";
|
|
2601
2609
|
}
|
|
2602
2610
|
function isSDKMessage(message) {
|
|
2603
|
-
return typeof message === "object" && message !== null && "type" in message && message.type !== "ask_user" && message.type !== "ask_user_response" && message.type !== "companion_heartbeat" && message.type !== "companion_reminder" && message.type !== "sub_task_ask_user" && !isTaskSystemMessage(message);
|
|
2611
|
+
return typeof message === "object" && message !== null && "type" in message && message.type !== "ask_user" && message.type !== "ask_user_response" && message.type !== "companion_heartbeat" && message.type !== "companion_reminder" && message.type !== "companion_memory_organization" && message.type !== "sub_task_ask_user" && !isTaskSystemMessage(message);
|
|
2604
2612
|
}
|
|
2605
2613
|
function isSDKUserMessage(message) {
|
|
2606
2614
|
return isSDKMessage(message) && message.type === "user";
|
|
@@ -2632,7 +2640,8 @@ const VisionPlanActionEventSchema = EventBaseSchema.extend({
|
|
|
2632
2640
|
cardEventId: zod.z.string().min(1),
|
|
2633
2641
|
issueId: zod.z.string().min(1).max(160).regex(/^[A-Za-z0-9._-]+$/),
|
|
2634
2642
|
action: zod.z.enum(["approve", "submit_review"]),
|
|
2635
|
-
reviewMarkdown: zod.z.string().min(1).max(1e5).optional()
|
|
2643
|
+
reviewMarkdown: zod.z.string().min(1).max(1e5).optional(),
|
|
2644
|
+
reviewPath: zod.z.string().min(1).max(500).optional()
|
|
2636
2645
|
});
|
|
2637
2646
|
const VisionPlanReviewWriteEventSchema = EventBaseSchema.extend({
|
|
2638
2647
|
taskId: zod.z.string(),
|
|
@@ -2641,6 +2650,30 @@ const VisionPlanReviewWriteEventSchema = EventBaseSchema.extend({
|
|
|
2641
2650
|
reviewDirRelativePath: zod.z.string().min(1).max(500),
|
|
2642
2651
|
content: zod.z.string().min(1).max(1e5)
|
|
2643
2652
|
});
|
|
2653
|
+
const WorkspaceFileMutationOperationSchema = zod.z.enum(["write", "delete"]);
|
|
2654
|
+
const WorkspaceFileMutationRequestSchema = EventBaseSchema.extend({
|
|
2655
|
+
taskId: zod.z.string(),
|
|
2656
|
+
userId: zod.z.string(),
|
|
2657
|
+
relativePath: zod.z.string().min(1).max(1e3),
|
|
2658
|
+
requestId: zod.z.string(),
|
|
2659
|
+
operation: WorkspaceFileMutationOperationSchema,
|
|
2660
|
+
content: zod.z.string().max(1e6).optional(),
|
|
2661
|
+
createOnly: zod.z.boolean().optional()
|
|
2662
|
+
});
|
|
2663
|
+
const WorkspaceFileMutationResponseSchema = EventBaseSchema.extend({
|
|
2664
|
+
requestId: zod.z.string(),
|
|
2665
|
+
taskId: zod.z.string(),
|
|
2666
|
+
success: zod.z.boolean(),
|
|
2667
|
+
data: zod.z.object({
|
|
2668
|
+
relativePath: zod.z.string(),
|
|
2669
|
+
operation: WorkspaceFileMutationOperationSchema,
|
|
2670
|
+
modifiedAt: zod.z.string().optional()
|
|
2671
|
+
}).optional(),
|
|
2672
|
+
error: zod.z.object({
|
|
2673
|
+
code: zod.z.string(),
|
|
2674
|
+
message: zod.z.string()
|
|
2675
|
+
}).optional()
|
|
2676
|
+
});
|
|
2644
2677
|
const AppAliveEventSchema = EventBaseSchema.extend({
|
|
2645
2678
|
timestamp: zod.z.string()
|
|
2646
2679
|
});
|
|
@@ -2747,6 +2780,8 @@ const baseTaskSchema = EventBaseSchema.extend({
|
|
|
2747
2780
|
chatId: zod.z.string(),
|
|
2748
2781
|
agentId: zod.z.string(),
|
|
2749
2782
|
agentType: zod.z.string().optional().default("claude"),
|
|
2783
|
+
allowFilesystemAgent: zod.z.boolean().optional(),
|
|
2784
|
+
agentSource: zod.z.enum(["registered", "draft", "filesystem"]).optional(),
|
|
2750
2785
|
machineId: zod.z.string().nullable().optional(),
|
|
2751
2786
|
// Task execution target; local tasks have machineId
|
|
2752
2787
|
cloudId: zod.z.string().nullable().optional(),
|
|
@@ -3339,14 +3374,26 @@ const CompanionHeartbeatRequestSchema = EventBaseSchema.extend({
|
|
|
3339
3374
|
timestamp: zod.z.string(),
|
|
3340
3375
|
triggerTime: zod.z.string().optional(),
|
|
3341
3376
|
triggerReasons: zod.z.array(zod.z.string()).optional(),
|
|
3342
|
-
heartbeatTriggerCount: zod.z.number().int().nonnegative().optional()
|
|
3343
|
-
maintenanceMode: zod.z.boolean().optional(),
|
|
3344
|
-
maintenanceModeType: zod.z.literal("memory_organization").optional()
|
|
3377
|
+
heartbeatTriggerCount: zod.z.number().int().nonnegative().optional()
|
|
3345
3378
|
});
|
|
3346
3379
|
const CompanionHeartbeatResponseSchema = EventBaseSchema.extend({
|
|
3347
3380
|
taskId: zod.z.string(),
|
|
3348
3381
|
chatId: zod.z.string()
|
|
3349
3382
|
});
|
|
3383
|
+
const CompanionMemoryOrganizationRequestSchema = EventBaseSchema.extend({
|
|
3384
|
+
machineId: zod.z.string(),
|
|
3385
|
+
agentId: zod.z.string(),
|
|
3386
|
+
chatId: zod.z.string(),
|
|
3387
|
+
userId: zod.z.string(),
|
|
3388
|
+
timestamp: zod.z.string(),
|
|
3389
|
+
trigger: zod.z.enum(["scheduled", "user_request"]),
|
|
3390
|
+
triggerTime: zod.z.string().optional(),
|
|
3391
|
+
intervalHours: zod.z.number().int().positive().optional()
|
|
3392
|
+
});
|
|
3393
|
+
const CompanionMemoryOrganizationResponseSchema = EventBaseSchema.extend({
|
|
3394
|
+
taskId: zod.z.string(),
|
|
3395
|
+
chatId: zod.z.string()
|
|
3396
|
+
});
|
|
3350
3397
|
const CompanionInitRequestSchema = EventBaseSchema.extend({
|
|
3351
3398
|
machineId: zod.z.string(),
|
|
3352
3399
|
agentId: zod.z.string(),
|
|
@@ -3424,6 +3471,8 @@ const EventSchemaMap = {
|
|
|
3424
3471
|
"vision-plan-card": VisionPlanCardEventSchema,
|
|
3425
3472
|
"vision-plan-action": VisionPlanActionEventSchema,
|
|
3426
3473
|
"vision-plan-review-write": VisionPlanReviewWriteEventSchema,
|
|
3474
|
+
"workspace-file-mutation-request": WorkspaceFileMutationRequestSchema,
|
|
3475
|
+
"workspace-file-mutation-response": WorkspaceFileMutationResponseSchema,
|
|
3427
3476
|
// Repository association events
|
|
3428
3477
|
"associate-repo": AssociateRepoEventDataSchema,
|
|
3429
3478
|
// Agent info update events
|
|
@@ -3452,6 +3501,9 @@ const EventSchemaMap = {
|
|
|
3452
3501
|
// Companion heartbeat events
|
|
3453
3502
|
"request-companion-heartbeat": CompanionHeartbeatRequestSchema,
|
|
3454
3503
|
"companion-heartbeat-response": CompanionHeartbeatResponseSchema,
|
|
3504
|
+
// Companion memory organization events
|
|
3505
|
+
"request-companion-memory-organization": CompanionMemoryOrganizationRequestSchema,
|
|
3506
|
+
"companion-memory-organization-response": CompanionMemoryOrganizationResponseSchema,
|
|
3455
3507
|
// Companion init events
|
|
3456
3508
|
"request-companion-init": CompanionInitRequestSchema,
|
|
3457
3509
|
"companion-init-response": CompanionInitResponseSchema,
|
|
@@ -4023,6 +4075,8 @@ exports.CompanionHeartbeatRequestSchema = CompanionHeartbeatRequestSchema;
|
|
|
4023
4075
|
exports.CompanionHeartbeatResponseSchema = CompanionHeartbeatResponseSchema;
|
|
4024
4076
|
exports.CompanionInitRequestSchema = CompanionInitRequestSchema;
|
|
4025
4077
|
exports.CompanionInitResponseSchema = CompanionInitResponseSchema;
|
|
4078
|
+
exports.CompanionMemoryOrganizationRequestSchema = CompanionMemoryOrganizationRequestSchema;
|
|
4079
|
+
exports.CompanionMemoryOrganizationResponseSchema = CompanionMemoryOrganizationResponseSchema;
|
|
4026
4080
|
exports.CompanionWorkspaceFileSchema = CompanionWorkspaceFileSchema;
|
|
4027
4081
|
exports.ConfirmUploadRequestSchema = ConfirmUploadRequestSchema;
|
|
4028
4082
|
exports.ConfirmUploadResponseSchema = ConfirmUploadResponseSchema;
|
|
@@ -4400,6 +4454,9 @@ exports.WorkerRunningSchema = WorkerRunningSchema;
|
|
|
4400
4454
|
exports.WorkerStatusRequestSchema = WorkerStatusRequestSchema;
|
|
4401
4455
|
exports.WorkerStatusSnapshotSchema = WorkerStatusSnapshotSchema;
|
|
4402
4456
|
exports.WorkerStatusValueSchema = WorkerStatusValueSchema;
|
|
4457
|
+
exports.WorkspaceFileMutationOperationSchema = WorkspaceFileMutationOperationSchema;
|
|
4458
|
+
exports.WorkspaceFileMutationRequestSchema = WorkspaceFileMutationRequestSchema;
|
|
4459
|
+
exports.WorkspaceFileMutationResponseSchema = WorkspaceFileMutationResponseSchema;
|
|
4403
4460
|
exports.WorkspaceFileRequestSchema = WorkspaceFileRequestSchema;
|
|
4404
4461
|
exports.WorkspaceFileResponseSchema = WorkspaceFileResponseSchema;
|
|
4405
4462
|
exports.baseTaskSchema = baseTaskSchema;
|
|
@@ -4438,6 +4495,7 @@ exports.isAskUserMessage = isAskUserMessage;
|
|
|
4438
4495
|
exports.isAskUserResponseMessage = isAskUserResponseMessage;
|
|
4439
4496
|
exports.isCloudTaskExecution = isCloudTaskExecution;
|
|
4440
4497
|
exports.isCompanionHeartbeatMessage = isCompanionHeartbeatMessage;
|
|
4498
|
+
exports.isCompanionMemoryOrganizationMessage = isCompanionMemoryOrganizationMessage;
|
|
4441
4499
|
exports.isCompanionReminderMessage = isCompanionReminderMessage;
|
|
4442
4500
|
exports.isLocalTaskExecution = isLocalTaskExecution;
|
|
4443
4501
|
exports.isSDKMessage = isSDKMessage;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { P as PreviewMetadata } from './errors-
|
|
3
|
-
export { cS as ActiveAgent, cR as ActiveAgentSchema, fD as AgentConfig, fN as AgentConfigValidationError, fw as AgentContext, fL as AgentError, fP as AgentLoadError, fB as AgentMetadata, fJ as AgentMetadataSchema, fM as AgentNotFoundError, fx as AgentrixContext, cE as ApiServerAliveEventData, cD as ApiServerAliveEventSchema, cC as AppAliveEventData, cB as AppAliveEventSchema, aj as ApprovePrRequest, ai as ApprovePrRequestSchema, al as ApprovePrResponse, ak as ApprovePrResponseSchema, ar as ArchiveTaskRequest, aq as ArchiveTaskRequestSchema, at as ArchiveTaskResponse, as as ArchiveTaskResponseSchema, c6 as AskUserMessage, c5 as AskUserMessageSchema, c2 as AskUserOption, c1 as AskUserOptionSchema, c4 as AskUserQuestion, c3 as AskUserQuestionSchema, cc as AskUserResponseMessage, cb as AskUserResponseMessageSchema, ca as AskUserResponseReason, c8 as AskUserResponseReasonSchema, c9 as AskUserResponseStatus, c7 as AskUserResponseStatusSchema, ev as AssociateRepoEventData, es as AssociateRepoEventDataSchema, dh as CancelTaskEventData, J as CancelTaskRequest, I as CancelTaskRequestSchema, N as CancelTaskResponse, M as CancelTaskResponseSchema, dE as ChangeTaskTitleEventData, dD as ChangeTaskTitleEventSchema, d6 as ChatWorkersStatusRequestEventData, d5 as ChatWorkersStatusRequestSchema, d8 as ChatWorkersStatusResponseEventData, d7 as ChatWorkersStatusResponseSchema, fC as ClaudeAgentConfig, fK as ClaudeConfigSchema, cd as CompanionHeartbeatMessage, eK as CompanionHeartbeatRequestData, eJ as CompanionHeartbeatRequestSchema, eM as CompanionHeartbeatResponseData, eL as CompanionHeartbeatResponseSchema, eO as CompanionInitRequestData, eN as CompanionInitRequestSchema, eQ as CompanionInitResponseData, eP as CompanionInitResponseSchema, ce as CompanionReminderMessage, bK as CreateHiveCommentRequest, bJ as CreateHiveCommentRequestSchema, bC as CreateHiveReviewRequest, bB as CreateHiveReviewRequestSchema, ae as CreateMergeRequestRequest, ah as CreateMergeRequestResponse, ag as CreateMergeRequestResponseSchema, ad as CreateMergeRequestSchema, dd as CreateTaskEventData, an as CreateTaskShareRequest, ap as CreateTaskShareResponse, ao as CreateTaskShareResponseSchema, am as CreateTaskShareSchema, dI as CreditExhaustedEventData, dH as CreditExhaustedEventSchema, D as DEFAULT_WORKER_EXECUTION_MODE, eB as DaemonGitlabOperation, eA as DaemonGitlabOperationSchema, eD as DaemonGitlabRequestEventData, eC as DaemonGitlabRequestSchema, eF as DaemonGitlabResponseEventData, eE as DaemonGitlabResponseSchema, ej as DeployAgentCompleteEventData, ei as DeployAgentCompleteEventSchema, eh as DeployAgentEventData, eg as DeployAgentEventSchema, r as EnsureIssueRootTaskRequest, E as EnsureIssueRootTaskRequestSchema, y as EnsureIssueRootTaskResponse, x as EnsureIssueRootTaskResponseSchema, cu as EventAckData, ct as EventAckSchema, eT as EventData, eY as EventMap, eZ as EventName, e_ as EventSchemaMap, fe as ExecuteMachineActionResponse, fd as ExecuteMachineActionResponseSchema, fI as FRAMEWORK_TYPES, ab as FillEventsRequest, aa as FillEventsRequestSchema, ac as FillEventsResponse, b0 as FindTaskByAgentRequest, a$ as FindTaskByAgentRequestSchema, b2 as FindTaskByAgentResponse, b1 as FindTaskByAgentResponseSchema, fO as FrameworkNotSupportedError, fA as FrameworkType, bY as GetStreamVersionQuery, bX as GetStreamVersionQuerySchema, aO as GetTaskSessionResponse, aN as GetTaskSessionResponseSchema, b6 as HiveAuthorType, b5 as HiveAuthorTypeSchema, bI as HiveComment, bO as HiveCommentListResponse, bN as HiveCommentListResponseSchema, bH as HiveCommentSchema, bs as HiveInstall, er as HiveInstallCompleteEventData, eq as HiveInstallCompleteEventSchema, ep as HiveInstallEventData, eo as HiveInstallEventSchema, bq as HiveInstallRequest, bp as HiveInstallRequestSchema, bu as HiveInstallResponse, bt as HiveInstallResponseSchema, br as HiveInstallSchema, bQ as HiveInstalledItem, bP as HiveInstalledItemSchema, bS as HiveInstalledResponse, bR as HiveInstalledResponseSchema, bi as HiveListQuery, bh as HiveListQuerySchema, bk as HiveListResponse, bj as HiveListResponseSchema, bc as HiveListing, bb as HiveListingSchema, b8 as HiveListingStatus, b7 as HiveListingStatusSchema, b4 as HiveListingType, b3 as HiveListingTypeSchema, bU as HiveMyListingsResponse, bT as HiveMyListingsResponseSchema, en as HivePublishCompleteEventData, em as HivePublishCompleteEventSchema, el as HivePublishEventData, ek as HivePublishEventSchema, bA as HiveReview, bG as HiveReviewListResponse, bF as HiveReviewListResponseSchema, bz as HiveReviewSchema, ba as HiveSort, b9 as HiveSortSchema, fH as HookFactory, da as ListModelsEventData, d9 as ListModelsEventSchema, aW as ListRecentTasksRequest, aV as ListRecentTasksRequestSchema, a_ as ListRecentTasksResponse, aZ as ListRecentTasksResponseSchema, aQ as ListSubTasksRequest, aP as ListSubTasksRequestSchema, aU as ListSubTasksResponse, aT as ListSubTasksResponseSchema, z as ListTasksRequest, L as ListTasksRequestSchema, B as ListTasksResponse, A as ListTasksResponseSchema, fF as LoadAgentOptions, fc as MachineActionPending, fb as MachineActionPendingSchema, fa as MachineActionRequestEventData, f9 as MachineActionRequestSchema, cG as MachineAliveEventData, cF as MachineAliveEventSchema, f2 as MachineControlAction, f1 as MachineControlActionSchema, fg as MachineControlCommandEventData, ff as MachineControlCommandSchema, f6 as MachineControlErrorCode, f5 as MachineControlErrorCodeSchema, f8 as MachineControlPingResult, f7 as MachineControlPingResultSchema, fk as MachineControlProgressEventData, fj as MachineControlProgressSchema, fi as MachineControlProgressStatus, fh as MachineControlProgressStatusSchema, fp as MachineControlRelayContext, f4 as MachineControlTarget, f3 as MachineControlTargetSchema, fo as MachineControlUpdatedEventData, fn as MachineControlUpdatedSchema, fm as MachineControlUpdatedStatus, fl as MachineControlUpdatedStatusSchema, ft as MachineRpcCallEventData, fs as MachineRpcCallEventSchema, dQ as MachineRtcRequestEventData, dP as MachineRtcRequestSchema, dS as MachineRtcResponseEventData, dR as MachineRtcResponseSchema, ef as MergePullRequestAck, ee as MergePullRequestEventData, ed as MergePullRequestEventSchema, e6 as MergeRequestEventData, e5 as MergeRequestEventSchema, fQ as MissingAgentFileError, _ as PermissionResponseRequest, Z as PermissionResponseRequestSchema, a1 as PermissionResponseResponse, a0 as PermissionResponseResponseSchema, ex as PrStateChangedData, dr as PreviewMetadataSchema, dq as PreviewMethod, dp as PreviewMethodSchema, dn as PreviewProjectType, dm as PreviewProjectTypeSchema, a5 as ProjectDirectoryResponse, a4 as ProjectDirectoryResponseSchema, a3 as ProjectEntry, a2 as ProjectEntrySchema, be as PublishToHiveRequest, bd as PublishToHiveRequestSchema, bg as PublishToHiveResponse, bf as PublishToHiveResponseSchema, a7 as QueryEventsRequest, a6 as QueryEventsRequestSchema, a9 as QueryEventsResponse, aY as RecentTaskSummary, aX as RecentTaskSummarySchema, bw as RecordHiveInstallRequest, bv as RecordHiveInstallRequestSchema, by as RecordHiveInstallResponse, bx as RecordHiveInstallResponseSchema, eG as RepositoryInboxProviderSchema, eI as RepositoryInboxWebhookEventData, eH as RepositoryInboxWebhookSchema, fG as RepositoryInitHookInput, eS as ResetTaskSessionEventData, eR as ResetTaskSessionSchema, df as ResumeTaskEventData, C as ResumeTaskRequest, R as ResumeTaskRequestSchema, H as ResumeTaskResponse, G as ResumeTaskResponseSchema, fr as RpcCallEventData, fq as RpcCallEventSchema, fv as RpcResponseData, fu as RpcResponseSchema, dK as RtcIceServer, dJ as RtcIceServerSchema, dM as RtcIceServersRequestEventData, dL as RtcIceServersRequestSchema, dO as RtcIceServersResponseEventData, dN as RtcIceServersResponseSchema, dU as RtcSignalEventData, dT as RtcSignalSchema, aE as SendMessageTarget, aG as SendTaskMessageRequest, aF as SendTaskMessageRequestSchema, aI as SendTaskMessageResponse, aH as SendTaskMessageResponseSchema, eV as SeqSyncRequestEventData, eU as SeqSyncRequestEventDataSchema, eX as SeqSyncResponseEventData, eW as SeqSyncResponseEventDataSchema, dC as ShowModalEventData, dB as ShowModalEventDataSchema, aK as ShowModalRequest, aJ as ShowModalRequestSchema, aM as ShowModalResponse, aL as ShowModalResponseSchema, cI as ShutdownMachineData, cH as ShutdownMachineSchema, m as StartTaskRequest, S as StartTaskRequestSchema, q as StartTaskResponse, p as StartTaskResponseSchema, dj as StopTaskEventData, Q as StopTaskRequest, O as StopTaskRequestSchema, Y as StopTaskResponse, X as StopTaskResponseSchema, di as StopTaskSchema, b_ as StreamVersionResponse, bZ as StreamVersionResponseSchema, ec as SubTaskAskUserEventData, eb as SubTaskAskUserEventSchema, cf as SubTaskAskUserMessage, ea as SubTaskResultUpdatedEventData, e9 as SubTaskResultUpdatedEventSchema, aS as SubTaskSummary, aR as SubTaskSummarySchema, c0 as SyncAvailableEvent, b$ as SyncAvailableEventSchema, bW as SyncStreamType, bV as SyncStreamTypeSchema, ez as SystemMessageEventData, ey as SystemMessageSchema, ew as SystemMessageType, cj as TaskAgentInfo, ci as TaskAgentInfoSchema, dl as TaskArtifactsStats, dk as TaskArtifactsStatsSchema, dt as TaskArtifactsSummary, ds as TaskArtifactsSummarySchema, a8 as TaskEvent, T as TaskExecutionMode, b as TaskExecutionTarget, e0 as TaskInfoUpdateEventData, d$ as TaskInfoUpdateEventDataSchema, v as TaskItem, u as TaskItemSchema, dv as TaskMessageEventData, ch as TaskMessagePayload, du as TaskMessageSchema, dx as TaskModelUsage, dw as TaskModelUsageSchema, k as TaskPreviewUrlSchema, e2 as TaskSlashCommand, e1 as TaskSlashCommandSchema, e4 as TaskSlashCommandsUpdateEventData, e3 as TaskSlashCommandsUpdateEventDataSchema, dA as TaskState, dG as TaskStateChangeEventData, dF as TaskStateChangeEventSchema, e8 as TaskStoppedEventData, e7 as TaskStoppedEventSchema, cg as TaskSystemMessage, f as TaskTodo, e as TaskTodoSchema, dz as TaskUsageReportEventData, dy as TaskUsageReportEventSchema, j as TaskUsageSummary, h as TaskUsageSummarySchema, av as UnarchiveTaskRequest, au as UnarchiveTaskRequestSchema, ax as UnarchiveTaskResponse, aw as UnarchiveTaskResponseSchema, eu as UpdateAgentInfoEventData, et as UpdateAgentInfoEventSchema, bM as UpdateHiveCommentRequest, bL as UpdateHiveCommentRequestSchema, bm as UpdateHiveListingRequest, bl as UpdateHiveListingRequestSchema, bE as UpdateHiveReviewRequest, bD as UpdateHiveReviewRequestSchema, bo as UpdateHiveVersionRequest, bn as UpdateHiveVersionRequestSchema, d_ as UpdateTaskAgentSessionIdEventData, dZ as UpdateTaskAgentSessionIdEventSchema, l as UpdateTaskPreviewUrlRequest, U as UpdateTaskPreviewUrlRequestSchema, aD as UpdateTaskPreviewUrlResponse, aC as UpdateTaskPreviewUrlResponseSchema, az as UpdateTaskTitleRequest, ay as UpdateTaskTitleRequestSchema, aB as UpdateTaskTitleResponse, aA as UpdateTaskTitleResponseSchema, fE as ValidationResult, cy as VisionPlanActionEventData, cx as VisionPlanActionEventSchema, cw as VisionPlanCardEventData, cv as VisionPlanCardEventSchema, cA as VisionPlanReviewWriteEventData, cz as VisionPlanReviewWriteEventSchema, cU as WorkerAliveEventData, cT as WorkerAliveEventSchema, W as WorkerExecutionMode, a as WorkerExecutionModeSchema, cW as WorkerExitEventData, cV as WorkerExitSchema, cM as WorkerInitializedEventData, cL as WorkerInitializedSchema, cK as WorkerInitializingEventData, cJ as WorkerInitializingSchema, c_ as WorkerPermissionModeEventData, cZ as WorkerPermissionModeSchema, cO as WorkerPermissionModeValue, cN as WorkerPermissionModeValueSchema, cQ as WorkerReadyEventData, cP as WorkerReadySchema, cY as WorkerRunningEventData, cX as WorkerRunningSchema, d0 as WorkerStatusRequestEventData, c$ as WorkerStatusRequestSchema, d4 as WorkerStatusSnapshot, d3 as WorkerStatusSnapshotSchema, d2 as WorkerStatusValue, d1 as WorkerStatusValueSchema, e$ as WorkerTaskEvent, dW as WorkspaceFileRequestEventData, dV as WorkspaceFileRequestSchema, dY as WorkspaceFileResponseEventData, dX as WorkspaceFileResponseSchema, db as baseTaskSchema, K as cancelTaskRequestSchema, dg as cancelTaskSchema, cs as createEventId, af as createMergeRequestSchema, dc as createTaskSchema, fz as getAgentContext, d as getTaskExecutionMachineRouteId, g as getTaskExecutionMode, ck as isAskUserMessage, cl as isAskUserResponseMessage, i as isCloudTaskExecution, cm as isCompanionHeartbeatMessage, cn as isCompanionReminderMessage, c as isLocalTaskExecution, cq as isSDKMessage, cr as isSDKUserMessage, co as isSubTaskAskUserMessage, cp as isTaskSystemMessage, n as normalizeWorkerExecutionMode, $ as permissionResponseRequestSchema, F as resumeTaskRequestSchema, de as resumeTaskSchema, fy as setAgentContext, o as startTaskSchema, V as stopTaskRequestSchema, s as supportsTaskUserCwd, t as taskExecutionModes, w as workerExecutionModes, f0 as workerTaskEvents } from './errors-DRNVdRR6.cjs';
|
|
2
|
+
import { P as PreviewMetadata } from './errors-Br-r7N--.cjs';
|
|
3
|
+
export { cZ as ActiveAgent, cY as ActiveAgentSchema, fO as AgentConfig, fX as AgentConfigValidationError, fH as AgentContext, fV as AgentError, fZ as AgentLoadError, fM as AgentMetadata, fT as AgentMetadataSchema, fW as AgentNotFoundError, fI as AgentrixContext, cL as ApiServerAliveEventData, cK as ApiServerAliveEventSchema, cJ as AppAliveEventData, cI as AppAliveEventSchema, aj as ApprovePrRequest, ai as ApprovePrRequestSchema, al as ApprovePrResponse, ak as ApprovePrResponseSchema, ar as ArchiveTaskRequest, aq as ArchiveTaskRequestSchema, at as ArchiveTaskResponse, as as ArchiveTaskResponseSchema, c6 as AskUserMessage, c5 as AskUserMessageSchema, c2 as AskUserOption, c1 as AskUserOptionSchema, c4 as AskUserQuestion, c3 as AskUserQuestionSchema, cc as AskUserResponseMessage, cb as AskUserResponseMessageSchema, ca as AskUserResponseReason, c8 as AskUserResponseReasonSchema, c9 as AskUserResponseStatus, c7 as AskUserResponseStatusSchema, eC as AssociateRepoEventData, ez as AssociateRepoEventDataSchema, dp as CancelTaskEventData, J as CancelTaskRequest, I as CancelTaskRequestSchema, N as CancelTaskResponse, M as CancelTaskResponseSchema, dL as ChangeTaskTitleEventData, dK as ChangeTaskTitleEventSchema, dd as ChatWorkersStatusRequestEventData, dc as ChatWorkersStatusRequestSchema, df as ChatWorkersStatusResponseEventData, de as ChatWorkersStatusResponseSchema, fN as ClaudeAgentConfig, fU as ClaudeConfigSchema, cd as CompanionHeartbeatMessage, eR as CompanionHeartbeatRequestData, eQ as CompanionHeartbeatRequestSchema, eT as CompanionHeartbeatResponseData, eS as CompanionHeartbeatResponseSchema, eZ as CompanionInitRequestData, eY as CompanionInitRequestSchema, e$ as CompanionInitResponseData, e_ as CompanionInitResponseSchema, cf as CompanionMemoryOrganizationMessage, eV as CompanionMemoryOrganizationRequestData, eU as CompanionMemoryOrganizationRequestSchema, eX as CompanionMemoryOrganizationResponseData, eW as CompanionMemoryOrganizationResponseSchema, ce as CompanionReminderMessage, bK as CreateHiveCommentRequest, bJ as CreateHiveCommentRequestSchema, bC as CreateHiveReviewRequest, bB as CreateHiveReviewRequestSchema, ae as CreateMergeRequestRequest, ah as CreateMergeRequestResponse, ag as CreateMergeRequestResponseSchema, ad as CreateMergeRequestSchema, dk as CreateTaskEventData, an as CreateTaskShareRequest, ap as CreateTaskShareResponse, ao as CreateTaskShareResponseSchema, am as CreateTaskShareSchema, dP as CreditExhaustedEventData, dO as CreditExhaustedEventSchema, D as DEFAULT_WORKER_EXECUTION_MODE, eI as DaemonGitlabOperation, eH as DaemonGitlabOperationSchema, eK as DaemonGitlabRequestEventData, eJ as DaemonGitlabRequestSchema, eM as DaemonGitlabResponseEventData, eL as DaemonGitlabResponseSchema, eq as DeployAgentCompleteEventData, ep as DeployAgentCompleteEventSchema, eo as DeployAgentEventData, en as DeployAgentEventSchema, r as EnsureIssueRootTaskRequest, E as EnsureIssueRootTaskRequestSchema, y as EnsureIssueRootTaskResponse, x as EnsureIssueRootTaskResponseSchema, cw as EventAckData, cv as EventAckSchema, f2 as EventData, f7 as EventMap, f8 as EventName, f9 as EventSchemaMap, fp as ExecuteMachineActionResponse, fo as ExecuteMachineActionResponseSchema, fS as FRAMEWORK_TYPES, ab as FillEventsRequest, aa as FillEventsRequestSchema, ac as FillEventsResponse, b0 as FindTaskByAgentRequest, a$ as FindTaskByAgentRequestSchema, b2 as FindTaskByAgentResponse, b1 as FindTaskByAgentResponseSchema, fY as FrameworkNotSupportedError, fL as FrameworkType, bY as GetStreamVersionQuery, bX as GetStreamVersionQuerySchema, aO as GetTaskSessionResponse, aN as GetTaskSessionResponseSchema, b6 as HiveAuthorType, b5 as HiveAuthorTypeSchema, bI as HiveComment, bO as HiveCommentListResponse, bN as HiveCommentListResponseSchema, bH as HiveCommentSchema, bs as HiveInstall, ey as HiveInstallCompleteEventData, ex as HiveInstallCompleteEventSchema, ew as HiveInstallEventData, ev as HiveInstallEventSchema, bq as HiveInstallRequest, bp as HiveInstallRequestSchema, bu as HiveInstallResponse, bt as HiveInstallResponseSchema, br as HiveInstallSchema, bQ as HiveInstalledItem, bP as HiveInstalledItemSchema, bS as HiveInstalledResponse, bR as HiveInstalledResponseSchema, bi as HiveListQuery, bh as HiveListQuerySchema, bk as HiveListResponse, bj as HiveListResponseSchema, bc as HiveListing, bb as HiveListingSchema, b8 as HiveListingStatus, b7 as HiveListingStatusSchema, b4 as HiveListingType, b3 as HiveListingTypeSchema, bU as HiveMyListingsResponse, bT as HiveMyListingsResponseSchema, eu as HivePublishCompleteEventData, et as HivePublishCompleteEventSchema, es as HivePublishEventData, er as HivePublishEventSchema, bA as HiveReview, bG as HiveReviewListResponse, bF as HiveReviewListResponseSchema, bz as HiveReviewSchema, ba as HiveSort, b9 as HiveSortSchema, fR as HookFactory, dh as ListModelsEventData, dg as ListModelsEventSchema, aW as ListRecentTasksRequest, aV as ListRecentTasksRequestSchema, a_ as ListRecentTasksResponse, aZ as ListRecentTasksResponseSchema, aQ as ListSubTasksRequest, aP as ListSubTasksRequestSchema, aU as ListSubTasksResponse, aT as ListSubTasksResponseSchema, z as ListTasksRequest, L as ListTasksRequestSchema, B as ListTasksResponse, A as ListTasksResponseSchema, fQ as LoadAgentOptions, fn as MachineActionPending, fm as MachineActionPendingSchema, fl as MachineActionRequestEventData, fk as MachineActionRequestSchema, cN as MachineAliveEventData, cM as MachineAliveEventSchema, fd as MachineControlAction, fc as MachineControlActionSchema, fr as MachineControlCommandEventData, fq as MachineControlCommandSchema, fh as MachineControlErrorCode, fg as MachineControlErrorCodeSchema, fj as MachineControlPingResult, fi as MachineControlPingResultSchema, fv as MachineControlProgressEventData, fu as MachineControlProgressSchema, ft as MachineControlProgressStatus, fs as MachineControlProgressStatusSchema, fA as MachineControlRelayContext, ff as MachineControlTarget, fe as MachineControlTargetSchema, fz as MachineControlUpdatedEventData, fy as MachineControlUpdatedSchema, fx as MachineControlUpdatedStatus, fw as MachineControlUpdatedStatusSchema, fE as MachineRpcCallEventData, fD as MachineRpcCallEventSchema, dX as MachineRtcRequestEventData, dW as MachineRtcRequestSchema, dZ as MachineRtcResponseEventData, dY as MachineRtcResponseSchema, em as MergePullRequestAck, el as MergePullRequestEventData, ek as MergePullRequestEventSchema, ed as MergeRequestEventData, ec as MergeRequestEventSchema, f_ as MissingAgentFileError, _ as PermissionResponseRequest, Z as PermissionResponseRequestSchema, a1 as PermissionResponseResponse, a0 as PermissionResponseResponseSchema, eE as PrStateChangedData, dy as PreviewMetadataSchema, dx as PreviewMethod, dw as PreviewMethodSchema, dv as PreviewProjectType, du as PreviewProjectTypeSchema, a5 as ProjectDirectoryResponse, a4 as ProjectDirectoryResponseSchema, a3 as ProjectEntry, a2 as ProjectEntrySchema, be as PublishToHiveRequest, bd as PublishToHiveRequestSchema, bg as PublishToHiveResponse, bf as PublishToHiveResponseSchema, a7 as QueryEventsRequest, a6 as QueryEventsRequestSchema, a9 as QueryEventsResponse, aY as RecentTaskSummary, aX as RecentTaskSummarySchema, bw as RecordHiveInstallRequest, bv as RecordHiveInstallRequestSchema, by as RecordHiveInstallResponse, bx as RecordHiveInstallResponseSchema, eN as RepositoryInboxProviderSchema, eP as RepositoryInboxWebhookEventData, eO as RepositoryInboxWebhookSchema, f1 as ResetTaskSessionEventData, f0 as ResetTaskSessionSchema, dm as ResumeTaskEventData, C as ResumeTaskRequest, R as ResumeTaskRequestSchema, H as ResumeTaskResponse, G as ResumeTaskResponseSchema, fC as RpcCallEventData, fB as RpcCallEventSchema, fG as RpcResponseData, fF as RpcResponseSchema, dR as RtcIceServer, dQ as RtcIceServerSchema, dT as RtcIceServersRequestEventData, dS as RtcIceServersRequestSchema, dV as RtcIceServersResponseEventData, dU as RtcIceServersResponseSchema, d$ as RtcSignalEventData, d_ as RtcSignalSchema, aE as SendMessageTarget, aG as SendTaskMessageRequest, aF as SendTaskMessageRequestSchema, aI as SendTaskMessageResponse, aH as SendTaskMessageResponseSchema, f4 as SeqSyncRequestEventData, f3 as SeqSyncRequestEventDataSchema, f6 as SeqSyncResponseEventData, f5 as SeqSyncResponseEventDataSchema, dJ as ShowModalEventData, dI as ShowModalEventDataSchema, aK as ShowModalRequest, aJ as ShowModalRequestSchema, aM as ShowModalResponse, aL as ShowModalResponseSchema, cP as ShutdownMachineData, cO as ShutdownMachineSchema, m as StartTaskRequest, S as StartTaskRequestSchema, q as StartTaskResponse, p as StartTaskResponseSchema, dr as StopTaskEventData, Q as StopTaskRequest, O as StopTaskRequestSchema, Y as StopTaskResponse, X as StopTaskResponseSchema, dq as StopTaskSchema, b_ as StreamVersionResponse, bZ as StreamVersionResponseSchema, ej as SubTaskAskUserEventData, ei as SubTaskAskUserEventSchema, cg as SubTaskAskUserMessage, eh as SubTaskResultUpdatedEventData, eg as SubTaskResultUpdatedEventSchema, aS as SubTaskSummary, aR as SubTaskSummarySchema, c0 as SyncAvailableEvent, b$ as SyncAvailableEventSchema, bW as SyncStreamType, bV as SyncStreamTypeSchema, eG as SystemMessageEventData, eF as SystemMessageSchema, eD as SystemMessageType, ck as TaskAgentInfo, cj as TaskAgentInfoSchema, dt as TaskArtifactsStats, ds as TaskArtifactsStatsSchema, dA as TaskArtifactsSummary, dz as TaskArtifactsSummarySchema, a8 as TaskEvent, T as TaskExecutionMode, b as TaskExecutionTarget, e7 as TaskInfoUpdateEventData, e6 as TaskInfoUpdateEventDataSchema, v as TaskItem, u as TaskItemSchema, dC as TaskMessageEventData, ci as TaskMessagePayload, dB as TaskMessageSchema, dE as TaskModelUsage, dD as TaskModelUsageSchema, k as TaskPreviewUrlSchema, e9 as TaskSlashCommand, e8 as TaskSlashCommandSchema, eb as TaskSlashCommandsUpdateEventData, ea as TaskSlashCommandsUpdateEventDataSchema, dH as TaskState, dN as TaskStateChangeEventData, dM as TaskStateChangeEventSchema, ef as TaskStoppedEventData, ee as TaskStoppedEventSchema, ch as TaskSystemMessage, f as TaskTodo, e as TaskTodoSchema, dG as TaskUsageReportEventData, dF as TaskUsageReportEventSchema, j as TaskUsageSummary, h as TaskUsageSummarySchema, av as UnarchiveTaskRequest, au as UnarchiveTaskRequestSchema, ax as UnarchiveTaskResponse, aw as UnarchiveTaskResponseSchema, eB as UpdateAgentInfoEventData, eA as UpdateAgentInfoEventSchema, bM as UpdateHiveCommentRequest, bL as UpdateHiveCommentRequestSchema, bm as UpdateHiveListingRequest, bl as UpdateHiveListingRequestSchema, bE as UpdateHiveReviewRequest, bD as UpdateHiveReviewRequestSchema, bo as UpdateHiveVersionRequest, bn as UpdateHiveVersionRequestSchema, e5 as UpdateTaskAgentSessionIdEventData, e4 as UpdateTaskAgentSessionIdEventSchema, l as UpdateTaskPreviewUrlRequest, U as UpdateTaskPreviewUrlRequestSchema, aD as UpdateTaskPreviewUrlResponse, aC as UpdateTaskPreviewUrlResponseSchema, az as UpdateTaskTitleRequest, ay as UpdateTaskTitleRequestSchema, aB as UpdateTaskTitleResponse, aA as UpdateTaskTitleResponseSchema, fP as ValidationResult, cA as VisionPlanActionEventData, cz as VisionPlanActionEventSchema, cy as VisionPlanCardEventData, cx as VisionPlanCardEventSchema, cC as VisionPlanReviewWriteEventData, cB as VisionPlanReviewWriteEventSchema, c$ as WorkerAliveEventData, c_ as WorkerAliveEventSchema, W as WorkerExecutionMode, a as WorkerExecutionModeSchema, d1 as WorkerExitEventData, d0 as WorkerExitSchema, cT as WorkerInitializedEventData, cS as WorkerInitializedSchema, cR as WorkerInitializingEventData, cQ as WorkerInitializingSchema, d5 as WorkerPermissionModeEventData, d4 as WorkerPermissionModeSchema, cV as WorkerPermissionModeValue, cU as WorkerPermissionModeValueSchema, cX as WorkerReadyEventData, cW as WorkerReadySchema, d3 as WorkerRunningEventData, d2 as WorkerRunningSchema, d7 as WorkerStatusRequestEventData, d6 as WorkerStatusRequestSchema, db as WorkerStatusSnapshot, da as WorkerStatusSnapshotSchema, d9 as WorkerStatusValue, d8 as WorkerStatusValueSchema, fa as WorkerTaskEvent, cD as WorkspaceFileMutationOperationSchema, cF as WorkspaceFileMutationRequestEventData, cE as WorkspaceFileMutationRequestSchema, cH as WorkspaceFileMutationResponseEventData, cG as WorkspaceFileMutationResponseSchema, e1 as WorkspaceFileRequestEventData, e0 as WorkspaceFileRequestSchema, e3 as WorkspaceFileResponseEventData, e2 as WorkspaceFileResponseSchema, di as baseTaskSchema, K as cancelTaskRequestSchema, dn as cancelTaskSchema, cu as createEventId, af as createMergeRequestSchema, dj as createTaskSchema, fK as getAgentContext, d as getTaskExecutionMachineRouteId, g as getTaskExecutionMode, cl as isAskUserMessage, cm as isAskUserResponseMessage, i as isCloudTaskExecution, cn as isCompanionHeartbeatMessage, cp as isCompanionMemoryOrganizationMessage, co as isCompanionReminderMessage, c as isLocalTaskExecution, cs as isSDKMessage, ct as isSDKUserMessage, cq as isSubTaskAskUserMessage, cr as isTaskSystemMessage, n as normalizeWorkerExecutionMode, $ as permissionResponseRequestSchema, F as resumeTaskRequestSchema, dl as resumeTaskSchema, fJ as setAgentContext, o as startTaskSchema, V as stopTaskRequestSchema, s as supportsTaskUserCwd, t as taskExecutionModes, w as workerExecutionModes, fb as workerTaskEvents } from './errors-Br-r7N--.cjs';
|
|
4
4
|
import tweetnacl from 'tweetnacl';
|
|
5
5
|
import { SDKMessage } from '@anthropic-ai/claude-agent-sdk';
|
|
6
6
|
export { buildGitLabWebhookEndpointPath, buildGitLabWebhookUrl } from './gitlabWebhook.cjs';
|
|
@@ -56,8 +56,8 @@ declare const FileStatsSchema: z.ZodObject<{
|
|
|
56
56
|
}, z.core.$strip>;
|
|
57
57
|
type FileStats = z.infer<typeof FileStatsSchema>;
|
|
58
58
|
declare const SenderTypeSchema: z.ZodEnum<{
|
|
59
|
-
human: "human";
|
|
60
59
|
system: "system";
|
|
60
|
+
human: "human";
|
|
61
61
|
agent: "agent";
|
|
62
62
|
channel: "channel";
|
|
63
63
|
}>;
|
|
@@ -889,11 +889,12 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
889
889
|
userId: z.ZodString;
|
|
890
890
|
state: z.ZodString;
|
|
891
891
|
workerStatus: z.ZodNullable<z.ZodEnum<{
|
|
892
|
-
running: "running";
|
|
893
892
|
initializing: "initializing";
|
|
894
893
|
ready: "ready";
|
|
894
|
+
running: "running";
|
|
895
895
|
}>>;
|
|
896
896
|
agentId: z.ZodString;
|
|
897
|
+
allowFilesystemAgent: z.ZodBoolean;
|
|
897
898
|
machineId: z.ZodNullable<z.ZodString>;
|
|
898
899
|
cloudId: z.ZodNullable<z.ZodString>;
|
|
899
900
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1557,10 +1558,10 @@ type CreateDraftAgentRequest = z.infer<typeof CreateDraftAgentRequestSchema>;
|
|
|
1557
1558
|
*/
|
|
1558
1559
|
declare const SetEnvironmentVariablesRequestSchema: z.ZodObject<{
|
|
1559
1560
|
ownerType: z.ZodEnum<{
|
|
1561
|
+
machine: "machine";
|
|
1560
1562
|
agent: "agent";
|
|
1561
1563
|
cloud: "cloud";
|
|
1562
1564
|
"draft-agent": "draft-agent";
|
|
1563
|
-
machine: "machine";
|
|
1564
1565
|
}>;
|
|
1565
1566
|
ownerId: z.ZodString;
|
|
1566
1567
|
variables: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
@@ -4110,10 +4111,10 @@ type CiProvider = z.infer<typeof CiProviderSchema>;
|
|
|
4110
4111
|
declare const JsonSchemaDocumentSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4111
4112
|
type JsonSchemaDocument = z.infer<typeof JsonSchemaDocumentSchema>;
|
|
4112
4113
|
declare const CiRunStatusSchema: z.ZodEnum<{
|
|
4114
|
+
timeout: "timeout";
|
|
4113
4115
|
failed: "failed";
|
|
4114
4116
|
running: "running";
|
|
4115
4117
|
completed: "completed";
|
|
4116
|
-
timeout: "timeout";
|
|
4117
4118
|
queued: "queued";
|
|
4118
4119
|
canceled: "canceled";
|
|
4119
4120
|
}>;
|
|
@@ -4159,6 +4160,7 @@ declare const CiRunContextSchema: z.ZodObject<{
|
|
|
4159
4160
|
type CiRunContext = z.infer<typeof CiRunContextSchema>;
|
|
4160
4161
|
declare const CreateCiRunRequestSchema: z.ZodObject<{
|
|
4161
4162
|
agent: z.ZodString;
|
|
4163
|
+
allowFilesystemAgent: z.ZodOptional<z.ZodBoolean>;
|
|
4162
4164
|
responseMode: z.ZodOptional<z.ZodEnum<{
|
|
4163
4165
|
stream: "stream";
|
|
4164
4166
|
async: "async";
|
|
@@ -4213,10 +4215,10 @@ type CreateCiRunResponse = z.infer<typeof CreateCiRunResponseSchema>;
|
|
|
4213
4215
|
declare const CiRunStatusResponseSchema: z.ZodObject<{
|
|
4214
4216
|
runId: z.ZodString;
|
|
4215
4217
|
status: z.ZodEnum<{
|
|
4218
|
+
timeout: "timeout";
|
|
4216
4219
|
failed: "failed";
|
|
4217
4220
|
running: "running";
|
|
4218
4221
|
completed: "completed";
|
|
4219
|
-
timeout: "timeout";
|
|
4220
4222
|
queued: "queued";
|
|
4221
4223
|
canceled: "canceled";
|
|
4222
4224
|
}>;
|
package/dist/node.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { fQ as LoadAgentOptions, fO as AgentConfig, fP as ValidationResult, fL as FrameworkType } from './errors-Br-r7N--.cjs';
|
|
2
|
+
export { fX as AgentConfigValidationError, fH as AgentContext, fV as AgentError, fZ as AgentLoadError, fM as AgentMetadata, fT as AgentMetadataSchema, fW as AgentNotFoundError, fI as AgentrixContext, fN as ClaudeAgentConfig, fU as ClaudeConfigSchema, fS as FRAMEWORK_TYPES, fY as FrameworkNotSupportedError, fR as HookFactory, f_ as MissingAgentFileError, fK as getAgentContext, fJ as setAgentContext } from './errors-Br-r7N--.cjs';
|
|
3
3
|
export { buildGitLabWebhookEndpointPath, buildGitLabWebhookUrl } from './gitlabWebhook.cjs';
|
|
4
4
|
import '@anthropic-ai/claude-agent-sdk';
|
|
5
5
|
import 'zod';
|