@agentrix/shared 2.30.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-B5fHpdTT.d.cts → errors-Br-r7N--.d.cts} +161 -61
- package/dist/index.cjs +89 -4
- package/dist/index.d.cts +13 -11
- 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;
|
|
@@ -221,6 +224,7 @@ declare const TaskItemSchema: z.ZodObject<{
|
|
|
221
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>>;
|
|
@@ -305,6 +309,7 @@ declare const EnsureIssueRootTaskResponseSchema: z.ZodObject<{
|
|
|
305
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>>;
|
|
@@ -403,6 +408,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
403
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>>;
|
|
@@ -728,6 +734,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
728
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>>;
|
|
@@ -822,6 +829,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
822
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>>;
|
|
@@ -918,6 +926,7 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
|
|
|
918
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>>;
|
|
@@ -1004,6 +1013,7 @@ declare const UpdateTaskPreviewUrlResponseSchema: z.ZodObject<{
|
|
|
1004
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
1102
|
user: "user";
|
|
1093
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
|
}>;
|
|
@@ -1904,8 +1914,8 @@ declare const MachineControlCommandSchema: z.ZodObject<{
|
|
|
1904
1914
|
}, z.core.$strip>;
|
|
1905
1915
|
type MachineControlCommandEventData = z.infer<typeof MachineControlCommandSchema>;
|
|
1906
1916
|
declare const MachineControlProgressStatusSchema: z.ZodEnum<{
|
|
1907
|
-
running: "running";
|
|
1908
1917
|
failed: "failed";
|
|
1918
|
+
running: "running";
|
|
1909
1919
|
succeeded: "succeeded";
|
|
1910
1920
|
}>;
|
|
1911
1921
|
type MachineControlProgressStatus = z.infer<typeof MachineControlProgressStatusSchema>;
|
|
@@ -1913,8 +1923,8 @@ declare const MachineControlProgressSchema: z.ZodObject<{
|
|
|
1913
1923
|
eventId: z.ZodString;
|
|
1914
1924
|
opCode: z.ZodString;
|
|
1915
1925
|
status: z.ZodEnum<{
|
|
1916
|
-
running: "running";
|
|
1917
1926
|
failed: "failed";
|
|
1927
|
+
running: "running";
|
|
1918
1928
|
succeeded: "succeeded";
|
|
1919
1929
|
}>;
|
|
1920
1930
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -1939,10 +1949,10 @@ declare const MachineControlProgressSchema: z.ZodObject<{
|
|
|
1939
1949
|
}, z.core.$strip>;
|
|
1940
1950
|
type MachineControlProgressEventData = z.infer<typeof MachineControlProgressSchema>;
|
|
1941
1951
|
declare const MachineControlUpdatedStatusSchema: z.ZodEnum<{
|
|
1942
|
-
running: "running";
|
|
1943
1952
|
failed: "failed";
|
|
1944
|
-
|
|
1953
|
+
running: "running";
|
|
1945
1954
|
succeeded: "succeeded";
|
|
1955
|
+
expired: "expired";
|
|
1946
1956
|
}>;
|
|
1947
1957
|
type MachineControlUpdatedStatus = z.infer<typeof MachineControlUpdatedStatusSchema>;
|
|
1948
1958
|
declare const MachineControlUpdatedSchema: z.ZodObject<{
|
|
@@ -1954,10 +1964,10 @@ declare const MachineControlUpdatedSchema: z.ZodObject<{
|
|
|
1954
1964
|
}, z.core.$strip>;
|
|
1955
1965
|
action: z.ZodLiteral<"upgrade-cli">;
|
|
1956
1966
|
status: z.ZodEnum<{
|
|
1957
|
-
running: "running";
|
|
1958
1967
|
failed: "failed";
|
|
1959
|
-
|
|
1968
|
+
running: "running";
|
|
1960
1969
|
succeeded: "succeeded";
|
|
1970
|
+
expired: "expired";
|
|
1961
1971
|
}>;
|
|
1962
1972
|
message: z.ZodOptional<z.ZodString>;
|
|
1963
1973
|
result: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -2058,14 +2068,14 @@ declare const AskUserMessageSchema: z.ZodObject<{
|
|
|
2058
2068
|
}, z.core.$strip>;
|
|
2059
2069
|
type AskUserMessage = z.infer<typeof AskUserMessageSchema>;
|
|
2060
2070
|
declare const AskUserResponseStatusSchema: z.ZodEnum<{
|
|
2061
|
-
timeout: "timeout";
|
|
2062
2071
|
answered: "answered";
|
|
2063
2072
|
cancelled: "cancelled";
|
|
2073
|
+
timeout: "timeout";
|
|
2064
2074
|
}>;
|
|
2065
2075
|
declare const AskUserResponseReasonSchema: z.ZodEnum<{
|
|
2076
|
+
timeout: "timeout";
|
|
2066
2077
|
user: "user";
|
|
2067
2078
|
system: "system";
|
|
2068
|
-
timeout: "timeout";
|
|
2069
2079
|
}>;
|
|
2070
2080
|
type AskUserResponseStatus = z.infer<typeof AskUserResponseStatusSchema>;
|
|
2071
2081
|
type AskUserResponseReason = z.infer<typeof AskUserResponseReasonSchema>;
|
|
@@ -2081,14 +2091,14 @@ declare const AskUserResponseMessageSchema: z.ZodObject<{
|
|
|
2081
2091
|
details: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2082
2092
|
rememberAnswers: z.ZodOptional<z.ZodArray<z.ZodBoolean>>;
|
|
2083
2093
|
status: z.ZodOptional<z.ZodEnum<{
|
|
2084
|
-
timeout: "timeout";
|
|
2085
2094
|
answered: "answered";
|
|
2086
2095
|
cancelled: "cancelled";
|
|
2096
|
+
timeout: "timeout";
|
|
2087
2097
|
}>>;
|
|
2088
2098
|
reason: z.ZodOptional<z.ZodEnum<{
|
|
2099
|
+
timeout: "timeout";
|
|
2089
2100
|
user: "user";
|
|
2090
2101
|
system: "system";
|
|
2091
|
-
timeout: "timeout";
|
|
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
|
/**
|
|
@@ -2219,6 +2243,74 @@ declare const EventAckSchema: z.ZodObject<{
|
|
|
2219
2243
|
data: z.ZodOptional<z.ZodAny>;
|
|
2220
2244
|
}, z.core.$strip>;
|
|
2221
2245
|
type EventAckData = z.infer<typeof EventAckSchema>;
|
|
2246
|
+
declare const VisionPlanCardEventSchema: z.ZodObject<{
|
|
2247
|
+
eventId: z.ZodString;
|
|
2248
|
+
taskId: z.ZodString;
|
|
2249
|
+
chatId: z.ZodOptional<z.ZodString>;
|
|
2250
|
+
sequence: z.ZodOptional<z.ZodNumber>;
|
|
2251
|
+
issueId: z.ZodString;
|
|
2252
|
+
repoRoot: z.ZodString;
|
|
2253
|
+
createdAt: z.ZodString;
|
|
2254
|
+
}, z.core.$strip>;
|
|
2255
|
+
type VisionPlanCardEventData = z.infer<typeof VisionPlanCardEventSchema>;
|
|
2256
|
+
declare const VisionPlanActionEventSchema: z.ZodObject<{
|
|
2257
|
+
eventId: z.ZodString;
|
|
2258
|
+
cardEventId: z.ZodString;
|
|
2259
|
+
issueId: z.ZodString;
|
|
2260
|
+
action: z.ZodEnum<{
|
|
2261
|
+
approve: "approve";
|
|
2262
|
+
submit_review: "submit_review";
|
|
2263
|
+
}>;
|
|
2264
|
+
reviewMarkdown: z.ZodOptional<z.ZodString>;
|
|
2265
|
+
reviewPath: z.ZodOptional<z.ZodString>;
|
|
2266
|
+
}, z.core.$strip>;
|
|
2267
|
+
type VisionPlanActionEventData = z.infer<typeof VisionPlanActionEventSchema>;
|
|
2268
|
+
declare const VisionPlanReviewWriteEventSchema: z.ZodObject<{
|
|
2269
|
+
eventId: z.ZodString;
|
|
2270
|
+
taskId: z.ZodString;
|
|
2271
|
+
userId: z.ZodString;
|
|
2272
|
+
issueId: z.ZodString;
|
|
2273
|
+
reviewDirRelativePath: z.ZodString;
|
|
2274
|
+
content: z.ZodString;
|
|
2275
|
+
}, z.core.$strip>;
|
|
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>;
|
|
2222
2314
|
declare const AppAliveEventSchema: z.ZodObject<{
|
|
2223
2315
|
eventId: z.ZodString;
|
|
2224
2316
|
timestamp: z.ZodString;
|
|
@@ -2410,6 +2502,12 @@ declare const baseTaskSchema: z.ZodObject<{
|
|
|
2410
2502
|
chatId: z.ZodString;
|
|
2411
2503
|
agentId: z.ZodString;
|
|
2412
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
|
+
}>>;
|
|
2413
2511
|
machineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2414
2512
|
cloudId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2415
2513
|
agentDir: z.ZodOptional<z.ZodString>;
|
|
@@ -2499,6 +2597,12 @@ declare const createTaskSchema: z.ZodObject<{
|
|
|
2499
2597
|
chatId: z.ZodString;
|
|
2500
2598
|
agentId: z.ZodString;
|
|
2501
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
|
+
}>>;
|
|
2502
2606
|
machineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2503
2607
|
cloudId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2504
2608
|
agentDir: z.ZodOptional<z.ZodString>;
|
|
@@ -2591,6 +2695,12 @@ declare const resumeTaskSchema: z.ZodObject<{
|
|
|
2591
2695
|
chatId: z.ZodString;
|
|
2592
2696
|
agentId: z.ZodString;
|
|
2593
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
|
+
}>>;
|
|
2594
2704
|
machineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2595
2705
|
cloudId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2596
2706
|
agentDir: z.ZodOptional<z.ZodString>;
|
|
@@ -2796,9 +2906,9 @@ declare const TaskMessageSchema: z.ZodObject<{
|
|
|
2796
2906
|
taskId: z.ZodString;
|
|
2797
2907
|
chatId: z.ZodOptional<z.ZodString>;
|
|
2798
2908
|
from: z.ZodEnum<{
|
|
2799
|
-
machine: "machine";
|
|
2800
2909
|
app: "app";
|
|
2801
2910
|
"api-server": "api-server";
|
|
2911
|
+
machine: "machine";
|
|
2802
2912
|
worker: "worker";
|
|
2803
2913
|
}>;
|
|
2804
2914
|
opCode: z.ZodOptional<z.ZodString>;
|
|
@@ -2809,8 +2919,8 @@ declare const TaskMessageSchema: z.ZodObject<{
|
|
|
2809
2919
|
encryptedMessage: z.ZodOptional<z.ZodString>;
|
|
2810
2920
|
agentId: z.ZodOptional<z.ZodString>;
|
|
2811
2921
|
senderType: z.ZodEnum<{
|
|
2812
|
-
human: "human";
|
|
2813
2922
|
system: "system";
|
|
2923
|
+
human: "human";
|
|
2814
2924
|
agent: "agent";
|
|
2815
2925
|
channel: "channel";
|
|
2816
2926
|
}>;
|
|
@@ -2961,8 +3071,8 @@ declare const RtcSignalSchema: z.ZodObject<{
|
|
|
2961
3071
|
machineId: z.ZodString;
|
|
2962
3072
|
sessionId: z.ZodString;
|
|
2963
3073
|
from: z.ZodEnum<{
|
|
2964
|
-
machine: "machine";
|
|
2965
3074
|
app: "app";
|
|
3075
|
+
machine: "machine";
|
|
2966
3076
|
}>;
|
|
2967
3077
|
signal: z.ZodAny;
|
|
2968
3078
|
userId: z.ZodOptional<z.ZodString>;
|
|
@@ -3526,6 +3636,7 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
3526
3636
|
running: "running";
|
|
3527
3637
|
}>>;
|
|
3528
3638
|
agentId: z.ZodString;
|
|
3639
|
+
allowFilesystemAgent: z.ZodBoolean;
|
|
3529
3640
|
machineId: z.ZodNullable<z.ZodString>;
|
|
3530
3641
|
cloudId: z.ZodNullable<z.ZodString>;
|
|
3531
3642
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -3675,8 +3786,6 @@ declare const CompanionHeartbeatRequestSchema: z.ZodObject<{
|
|
|
3675
3786
|
triggerTime: z.ZodOptional<z.ZodString>;
|
|
3676
3787
|
triggerReasons: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3677
3788
|
heartbeatTriggerCount: z.ZodOptional<z.ZodNumber>;
|
|
3678
|
-
maintenanceMode: z.ZodOptional<z.ZodBoolean>;
|
|
3679
|
-
maintenanceModeType: z.ZodOptional<z.ZodLiteral<"memory_organization">>;
|
|
3680
3789
|
}, z.core.$strip>;
|
|
3681
3790
|
type CompanionHeartbeatRequestData = z.infer<typeof CompanionHeartbeatRequestSchema>;
|
|
3682
3791
|
declare const CompanionHeartbeatResponseSchema: z.ZodObject<{
|
|
@@ -3685,6 +3794,27 @@ declare const CompanionHeartbeatResponseSchema: z.ZodObject<{
|
|
|
3685
3794
|
chatId: z.ZodString;
|
|
3686
3795
|
}, z.core.$strip>;
|
|
3687
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>;
|
|
3688
3818
|
declare const CompanionInitRequestSchema: z.ZodObject<{
|
|
3689
3819
|
eventId: z.ZodString;
|
|
3690
3820
|
machineId: z.ZodString;
|
|
@@ -3704,7 +3834,7 @@ declare const ResetTaskSessionSchema: z.ZodObject<{
|
|
|
3704
3834
|
taskId: z.ZodString;
|
|
3705
3835
|
}, z.core.$strip>;
|
|
3706
3836
|
type ResetTaskSessionEventData = z.infer<typeof ResetTaskSessionSchema>;
|
|
3707
|
-
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;
|
|
3708
3838
|
declare const SeqSyncRequestEventDataSchema: z.ZodObject<{
|
|
3709
3839
|
eventId: z.ZodString;
|
|
3710
3840
|
tasks: z.ZodArray<z.ZodObject<{
|
|
@@ -3763,6 +3893,11 @@ type EventMap = {
|
|
|
3763
3893
|
"task-stopped": TaskStoppedEventData;
|
|
3764
3894
|
"sub-task-result-updated": SubTaskResultUpdatedEventData;
|
|
3765
3895
|
"sub-task-ask-user": SubTaskAskUserEventData;
|
|
3896
|
+
"vision-plan-card": VisionPlanCardEventData;
|
|
3897
|
+
"vision-plan-action": VisionPlanActionEventData;
|
|
3898
|
+
"vision-plan-review-write": VisionPlanReviewWriteEventData;
|
|
3899
|
+
"workspace-file-mutation-request": WorkspaceFileMutationRequestEventData;
|
|
3900
|
+
"workspace-file-mutation-response": WorkspaceFileMutationResponseEventData;
|
|
3766
3901
|
"associate-repo": AssociateRepoEventData;
|
|
3767
3902
|
"update-agent-info": UpdateAgentInfoEventData;
|
|
3768
3903
|
"system-message": SystemMessageEventData;
|
|
@@ -3782,6 +3917,8 @@ type EventMap = {
|
|
|
3782
3917
|
"repository-inbox-webhook": RepositoryInboxWebhookEventData;
|
|
3783
3918
|
"request-companion-heartbeat": CompanionHeartbeatRequestData;
|
|
3784
3919
|
"companion-heartbeat-response": CompanionHeartbeatResponseData;
|
|
3920
|
+
"request-companion-memory-organization": CompanionMemoryOrganizationRequestData;
|
|
3921
|
+
"companion-memory-organization-response": CompanionMemoryOrganizationResponseData;
|
|
3785
3922
|
"request-companion-init": CompanionInitRequestData;
|
|
3786
3923
|
"companion-init-response": CompanionInitResponseData;
|
|
3787
3924
|
"reset-task-session": ResetTaskSessionEventData;
|
|
@@ -4144,43 +4281,6 @@ interface LoadAgentOptions {
|
|
|
4144
4281
|
validateOnly?: boolean;
|
|
4145
4282
|
agentDir?: string;
|
|
4146
4283
|
}
|
|
4147
|
-
/**
|
|
4148
|
-
* Input for RepositoryInit hook (Agentrix custom hook)
|
|
4149
|
-
*
|
|
4150
|
-
* Called once when initializing a new git repository.
|
|
4151
|
-
* Allows agent to set up initial files (.gitignore, README, etc.) before
|
|
4152
|
-
* the first commit.
|
|
4153
|
-
*
|
|
4154
|
-
* @example
|
|
4155
|
-
* ```typescript
|
|
4156
|
-
* import type { RepositoryInitHookInput } from '@agentrix/shared';
|
|
4157
|
-
*
|
|
4158
|
-
* export async function RepositoryInit(
|
|
4159
|
-
* input: RepositoryInitHookInput,
|
|
4160
|
-
* toolUseID: string,
|
|
4161
|
-
* options: { signal: AbortSignal }
|
|
4162
|
-
* ) {
|
|
4163
|
-
* // Set up initial files
|
|
4164
|
-
* const gitignorePath = join(input.workspace_path, '.gitignore');
|
|
4165
|
-
* appendFileSync(gitignorePath, '\n.env.local\ntmp/\n');
|
|
4166
|
-
* return {};
|
|
4167
|
-
* }
|
|
4168
|
-
* ```
|
|
4169
|
-
*/
|
|
4170
|
-
interface RepositoryInitHookInput {
|
|
4171
|
-
/**
|
|
4172
|
-
* Hook event name (always 'RepositoryInit' for this hook type)
|
|
4173
|
-
*/
|
|
4174
|
-
hook_event_name: 'RepositoryInit';
|
|
4175
|
-
/**
|
|
4176
|
-
* Absolute path to the workspace directory
|
|
4177
|
-
*/
|
|
4178
|
-
workspace_path: string;
|
|
4179
|
-
/**
|
|
4180
|
-
* Task ID for this workspace
|
|
4181
|
-
*/
|
|
4182
|
-
task_id: string;
|
|
4183
|
-
}
|
|
4184
4284
|
/**
|
|
4185
4285
|
* Hook factory function type
|
|
4186
4286
|
*
|
|
@@ -4276,5 +4376,5 @@ declare class MissingAgentFileError extends AgentError {
|
|
|
4276
4376
|
constructor(filePath: string);
|
|
4277
4377
|
}
|
|
4278
4378
|
|
|
4279
|
-
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,
|
|
4280
|
-
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";
|
|
@@ -2620,6 +2628,52 @@ const EventAckSchema = EventBaseSchema.extend({
|
|
|
2620
2628
|
opCode: zod.z.string().optional(),
|
|
2621
2629
|
data: zod.z.any().optional()
|
|
2622
2630
|
});
|
|
2631
|
+
const VisionPlanCardEventSchema = EventBaseSchema.extend({
|
|
2632
|
+
taskId: zod.z.string(),
|
|
2633
|
+
chatId: zod.z.string().optional(),
|
|
2634
|
+
sequence: zod.z.number().int().min(0).optional(),
|
|
2635
|
+
issueId: zod.z.string().min(1).max(160).regex(/^[A-Za-z0-9._-]+$/),
|
|
2636
|
+
repoRoot: zod.z.string().min(1).max(1e3),
|
|
2637
|
+
createdAt: zod.z.string().datetime()
|
|
2638
|
+
});
|
|
2639
|
+
const VisionPlanActionEventSchema = EventBaseSchema.extend({
|
|
2640
|
+
cardEventId: zod.z.string().min(1),
|
|
2641
|
+
issueId: zod.z.string().min(1).max(160).regex(/^[A-Za-z0-9._-]+$/),
|
|
2642
|
+
action: zod.z.enum(["approve", "submit_review"]),
|
|
2643
|
+
reviewMarkdown: zod.z.string().min(1).max(1e5).optional(),
|
|
2644
|
+
reviewPath: zod.z.string().min(1).max(500).optional()
|
|
2645
|
+
});
|
|
2646
|
+
const VisionPlanReviewWriteEventSchema = EventBaseSchema.extend({
|
|
2647
|
+
taskId: zod.z.string(),
|
|
2648
|
+
userId: zod.z.string(),
|
|
2649
|
+
issueId: zod.z.string().min(1).max(160).regex(/^[A-Za-z0-9._-]+$/),
|
|
2650
|
+
reviewDirRelativePath: zod.z.string().min(1).max(500),
|
|
2651
|
+
content: zod.z.string().min(1).max(1e5)
|
|
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
|
+
});
|
|
2623
2677
|
const AppAliveEventSchema = EventBaseSchema.extend({
|
|
2624
2678
|
timestamp: zod.z.string()
|
|
2625
2679
|
});
|
|
@@ -2726,6 +2780,8 @@ const baseTaskSchema = EventBaseSchema.extend({
|
|
|
2726
2780
|
chatId: zod.z.string(),
|
|
2727
2781
|
agentId: zod.z.string(),
|
|
2728
2782
|
agentType: zod.z.string().optional().default("claude"),
|
|
2783
|
+
allowFilesystemAgent: zod.z.boolean().optional(),
|
|
2784
|
+
agentSource: zod.z.enum(["registered", "draft", "filesystem"]).optional(),
|
|
2729
2785
|
machineId: zod.z.string().nullable().optional(),
|
|
2730
2786
|
// Task execution target; local tasks have machineId
|
|
2731
2787
|
cloudId: zod.z.string().nullable().optional(),
|
|
@@ -3318,14 +3374,26 @@ const CompanionHeartbeatRequestSchema = EventBaseSchema.extend({
|
|
|
3318
3374
|
timestamp: zod.z.string(),
|
|
3319
3375
|
triggerTime: zod.z.string().optional(),
|
|
3320
3376
|
triggerReasons: zod.z.array(zod.z.string()).optional(),
|
|
3321
|
-
heartbeatTriggerCount: zod.z.number().int().nonnegative().optional()
|
|
3322
|
-
maintenanceMode: zod.z.boolean().optional(),
|
|
3323
|
-
maintenanceModeType: zod.z.literal("memory_organization").optional()
|
|
3377
|
+
heartbeatTriggerCount: zod.z.number().int().nonnegative().optional()
|
|
3324
3378
|
});
|
|
3325
3379
|
const CompanionHeartbeatResponseSchema = EventBaseSchema.extend({
|
|
3326
3380
|
taskId: zod.z.string(),
|
|
3327
3381
|
chatId: zod.z.string()
|
|
3328
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
|
+
});
|
|
3329
3397
|
const CompanionInitRequestSchema = EventBaseSchema.extend({
|
|
3330
3398
|
machineId: zod.z.string(),
|
|
3331
3399
|
agentId: zod.z.string(),
|
|
@@ -3400,6 +3468,11 @@ const EventSchemaMap = {
|
|
|
3400
3468
|
"task-stopped": TaskStoppedEventSchema,
|
|
3401
3469
|
"sub-task-result-updated": SubTaskResultUpdatedEventSchema,
|
|
3402
3470
|
"sub-task-ask-user": SubTaskAskUserEventSchema,
|
|
3471
|
+
"vision-plan-card": VisionPlanCardEventSchema,
|
|
3472
|
+
"vision-plan-action": VisionPlanActionEventSchema,
|
|
3473
|
+
"vision-plan-review-write": VisionPlanReviewWriteEventSchema,
|
|
3474
|
+
"workspace-file-mutation-request": WorkspaceFileMutationRequestSchema,
|
|
3475
|
+
"workspace-file-mutation-response": WorkspaceFileMutationResponseSchema,
|
|
3403
3476
|
// Repository association events
|
|
3404
3477
|
"associate-repo": AssociateRepoEventDataSchema,
|
|
3405
3478
|
// Agent info update events
|
|
@@ -3428,6 +3501,9 @@ const EventSchemaMap = {
|
|
|
3428
3501
|
// Companion heartbeat events
|
|
3429
3502
|
"request-companion-heartbeat": CompanionHeartbeatRequestSchema,
|
|
3430
3503
|
"companion-heartbeat-response": CompanionHeartbeatResponseSchema,
|
|
3504
|
+
// Companion memory organization events
|
|
3505
|
+
"request-companion-memory-organization": CompanionMemoryOrganizationRequestSchema,
|
|
3506
|
+
"companion-memory-organization-response": CompanionMemoryOrganizationResponseSchema,
|
|
3431
3507
|
// Companion init events
|
|
3432
3508
|
"request-companion-init": CompanionInitRequestSchema,
|
|
3433
3509
|
"companion-init-response": CompanionInitResponseSchema,
|
|
@@ -3999,6 +4075,8 @@ exports.CompanionHeartbeatRequestSchema = CompanionHeartbeatRequestSchema;
|
|
|
3999
4075
|
exports.CompanionHeartbeatResponseSchema = CompanionHeartbeatResponseSchema;
|
|
4000
4076
|
exports.CompanionInitRequestSchema = CompanionInitRequestSchema;
|
|
4001
4077
|
exports.CompanionInitResponseSchema = CompanionInitResponseSchema;
|
|
4078
|
+
exports.CompanionMemoryOrganizationRequestSchema = CompanionMemoryOrganizationRequestSchema;
|
|
4079
|
+
exports.CompanionMemoryOrganizationResponseSchema = CompanionMemoryOrganizationResponseSchema;
|
|
4002
4080
|
exports.CompanionWorkspaceFileSchema = CompanionWorkspaceFileSchema;
|
|
4003
4081
|
exports.ConfirmUploadRequestSchema = ConfirmUploadRequestSchema;
|
|
4004
4082
|
exports.ConfirmUploadResponseSchema = ConfirmUploadResponseSchema;
|
|
@@ -4361,6 +4439,9 @@ exports.UserInboxSubjectTypeSchema = UserInboxSubjectTypeSchema;
|
|
|
4361
4439
|
exports.UserProfileResponseSchema = UserProfileResponseSchema;
|
|
4362
4440
|
exports.UserWithOAuthAccountsSchema = UserWithOAuthAccountsSchema;
|
|
4363
4441
|
exports.ValidateMachineResponseSchema = ValidateMachineResponseSchema;
|
|
4442
|
+
exports.VisionPlanActionEventSchema = VisionPlanActionEventSchema;
|
|
4443
|
+
exports.VisionPlanCardEventSchema = VisionPlanCardEventSchema;
|
|
4444
|
+
exports.VisionPlanReviewWriteEventSchema = VisionPlanReviewWriteEventSchema;
|
|
4364
4445
|
exports.WorkerAliveEventSchema = WorkerAliveEventSchema;
|
|
4365
4446
|
exports.WorkerExecutionModeSchema = WorkerExecutionModeSchema;
|
|
4366
4447
|
exports.WorkerExitSchema = WorkerExitSchema;
|
|
@@ -4373,6 +4454,9 @@ exports.WorkerRunningSchema = WorkerRunningSchema;
|
|
|
4373
4454
|
exports.WorkerStatusRequestSchema = WorkerStatusRequestSchema;
|
|
4374
4455
|
exports.WorkerStatusSnapshotSchema = WorkerStatusSnapshotSchema;
|
|
4375
4456
|
exports.WorkerStatusValueSchema = WorkerStatusValueSchema;
|
|
4457
|
+
exports.WorkspaceFileMutationOperationSchema = WorkspaceFileMutationOperationSchema;
|
|
4458
|
+
exports.WorkspaceFileMutationRequestSchema = WorkspaceFileMutationRequestSchema;
|
|
4459
|
+
exports.WorkspaceFileMutationResponseSchema = WorkspaceFileMutationResponseSchema;
|
|
4376
4460
|
exports.WorkspaceFileRequestSchema = WorkspaceFileRequestSchema;
|
|
4377
4461
|
exports.WorkspaceFileResponseSchema = WorkspaceFileResponseSchema;
|
|
4378
4462
|
exports.baseTaskSchema = baseTaskSchema;
|
|
@@ -4411,6 +4495,7 @@ exports.isAskUserMessage = isAskUserMessage;
|
|
|
4411
4495
|
exports.isAskUserResponseMessage = isAskUserResponseMessage;
|
|
4412
4496
|
exports.isCloudTaskExecution = isCloudTaskExecution;
|
|
4413
4497
|
exports.isCompanionHeartbeatMessage = isCompanionHeartbeatMessage;
|
|
4498
|
+
exports.isCompanionMemoryOrganizationMessage = isCompanionMemoryOrganizationMessage;
|
|
4414
4499
|
exports.isCompanionReminderMessage = isCompanionReminderMessage;
|
|
4415
4500
|
exports.isLocalTaskExecution = isLocalTaskExecution;
|
|
4416
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 { cM as ActiveAgent, cL as ActiveAgentSchema, fx as AgentConfig, fH as AgentConfigValidationError, fq as AgentContext, fF as AgentError, fJ as AgentLoadError, fv as AgentMetadata, fD as AgentMetadataSchema, fG as AgentNotFoundError, fr as AgentrixContext, cy as ApiServerAliveEventData, cx as ApiServerAliveEventSchema, cw as AppAliveEventData, cv 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, ep as AssociateRepoEventData, em as AssociateRepoEventDataSchema, db as CancelTaskEventData, J as CancelTaskRequest, I as CancelTaskRequestSchema, N as CancelTaskResponse, M as CancelTaskResponseSchema, dy as ChangeTaskTitleEventData, dx as ChangeTaskTitleEventSchema, d0 as ChatWorkersStatusRequestEventData, c$ as ChatWorkersStatusRequestSchema, d2 as ChatWorkersStatusResponseEventData, d1 as ChatWorkersStatusResponseSchema, fw as ClaudeAgentConfig, fE as ClaudeConfigSchema, cd as CompanionHeartbeatMessage, eE as CompanionHeartbeatRequestData, eD as CompanionHeartbeatRequestSchema, eG as CompanionHeartbeatResponseData, eF as CompanionHeartbeatResponseSchema, eI as CompanionInitRequestData, eH as CompanionInitRequestSchema, eK as CompanionInitResponseData, eJ 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, d7 as CreateTaskEventData, an as CreateTaskShareRequest, ap as CreateTaskShareResponse, ao as CreateTaskShareResponseSchema, am as CreateTaskShareSchema, dC as CreditExhaustedEventData, dB as CreditExhaustedEventSchema, D as DEFAULT_WORKER_EXECUTION_MODE, ev as DaemonGitlabOperation, eu as DaemonGitlabOperationSchema, ex as DaemonGitlabRequestEventData, ew as DaemonGitlabRequestSchema, ez as DaemonGitlabResponseEventData, ey as DaemonGitlabResponseSchema, ed as DeployAgentCompleteEventData, ec as DeployAgentCompleteEventSchema, eb as DeployAgentEventData, ea as DeployAgentEventSchema, r as EnsureIssueRootTaskRequest, E as EnsureIssueRootTaskRequestSchema, y as EnsureIssueRootTaskResponse, x as EnsureIssueRootTaskResponseSchema, cu as EventAckData, ct as EventAckSchema, eN as EventData, eS as EventMap, eT as EventName, eU as EventSchemaMap, f8 as ExecuteMachineActionResponse, f7 as ExecuteMachineActionResponseSchema, fC as FRAMEWORK_TYPES, ab as FillEventsRequest, aa as FillEventsRequestSchema, ac as FillEventsResponse, b0 as FindTaskByAgentRequest, a$ as FindTaskByAgentRequestSchema, b2 as FindTaskByAgentResponse, b1 as FindTaskByAgentResponseSchema, fI as FrameworkNotSupportedError, fu 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, el as HiveInstallCompleteEventData, ek as HiveInstallCompleteEventSchema, ej as HiveInstallEventData, ei 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, eh as HivePublishCompleteEventData, eg as HivePublishCompleteEventSchema, ef as HivePublishEventData, ee as HivePublishEventSchema, bA as HiveReview, bG as HiveReviewListResponse, bF as HiveReviewListResponseSchema, bz as HiveReviewSchema, ba as HiveSort, b9 as HiveSortSchema, fB as HookFactory, d4 as ListModelsEventData, d3 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, fz as LoadAgentOptions, f6 as MachineActionPending, f5 as MachineActionPendingSchema, f4 as MachineActionRequestEventData, f3 as MachineActionRequestSchema, cA as MachineAliveEventData, cz as MachineAliveEventSchema, eY as MachineControlAction, eX as MachineControlActionSchema, fa as MachineControlCommandEventData, f9 as MachineControlCommandSchema, f0 as MachineControlErrorCode, e$ as MachineControlErrorCodeSchema, f2 as MachineControlPingResult, f1 as MachineControlPingResultSchema, fe as MachineControlProgressEventData, fd as MachineControlProgressSchema, fc as MachineControlProgressStatus, fb as MachineControlProgressStatusSchema, fj as MachineControlRelayContext, e_ as MachineControlTarget, eZ as MachineControlTargetSchema, fi as MachineControlUpdatedEventData, fh as MachineControlUpdatedSchema, fg as MachineControlUpdatedStatus, ff as MachineControlUpdatedStatusSchema, fn as MachineRpcCallEventData, fm as MachineRpcCallEventSchema, dK as MachineRtcRequestEventData, dJ as MachineRtcRequestSchema, dM as MachineRtcResponseEventData, dL as MachineRtcResponseSchema, e9 as MergePullRequestAck, e8 as MergePullRequestEventData, e7 as MergePullRequestEventSchema, e0 as MergeRequestEventData, d$ as MergeRequestEventSchema, fK as MissingAgentFileError, _ as PermissionResponseRequest, Z as PermissionResponseRequestSchema, a1 as PermissionResponseResponse, a0 as PermissionResponseResponseSchema, er as PrStateChangedData, dk as PreviewMetadataSchema, dj as PreviewMethod, di as PreviewMethodSchema, dh as PreviewProjectType, dg 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, eA as RepositoryInboxProviderSchema, eC as RepositoryInboxWebhookEventData, eB as RepositoryInboxWebhookSchema, fA as RepositoryInitHookInput, eM as ResetTaskSessionEventData, eL as ResetTaskSessionSchema, d9 as ResumeTaskEventData, C as ResumeTaskRequest, R as ResumeTaskRequestSchema, H as ResumeTaskResponse, G as ResumeTaskResponseSchema, fl as RpcCallEventData, fk as RpcCallEventSchema, fp as RpcResponseData, fo as RpcResponseSchema, dE as RtcIceServer, dD as RtcIceServerSchema, dG as RtcIceServersRequestEventData, dF as RtcIceServersRequestSchema, dI as RtcIceServersResponseEventData, dH as RtcIceServersResponseSchema, dO as RtcSignalEventData, dN as RtcSignalSchema, aE as SendMessageTarget, aG as SendTaskMessageRequest, aF as SendTaskMessageRequestSchema, aI as SendTaskMessageResponse, aH as SendTaskMessageResponseSchema, eP as SeqSyncRequestEventData, eO as SeqSyncRequestEventDataSchema, eR as SeqSyncResponseEventData, eQ as SeqSyncResponseEventDataSchema, dw as ShowModalEventData, dv as ShowModalEventDataSchema, aK as ShowModalRequest, aJ as ShowModalRequestSchema, aM as ShowModalResponse, aL as ShowModalResponseSchema, cC as ShutdownMachineData, cB as ShutdownMachineSchema, m as StartTaskRequest, S as StartTaskRequestSchema, q as StartTaskResponse, p as StartTaskResponseSchema, dd as StopTaskEventData, Q as StopTaskRequest, O as StopTaskRequestSchema, Y as StopTaskResponse, X as StopTaskResponseSchema, dc as StopTaskSchema, b_ as StreamVersionResponse, bZ as StreamVersionResponseSchema, e6 as SubTaskAskUserEventData, e5 as SubTaskAskUserEventSchema, cf as SubTaskAskUserMessage, e4 as SubTaskResultUpdatedEventData, e3 as SubTaskResultUpdatedEventSchema, aS as SubTaskSummary, aR as SubTaskSummarySchema, c0 as SyncAvailableEvent, b$ as SyncAvailableEventSchema, bW as SyncStreamType, bV as SyncStreamTypeSchema, et as SystemMessageEventData, es as SystemMessageSchema, eq as SystemMessageType, cj as TaskAgentInfo, ci as TaskAgentInfoSchema, df as TaskArtifactsStats, de as TaskArtifactsStatsSchema, dm as TaskArtifactsSummary, dl as TaskArtifactsSummarySchema, a8 as TaskEvent, T as TaskExecutionMode, b as TaskExecutionTarget, dW as TaskInfoUpdateEventData, dV as TaskInfoUpdateEventDataSchema, v as TaskItem, u as TaskItemSchema, dp as TaskMessageEventData, ch as TaskMessagePayload, dn as TaskMessageSchema, dr as TaskModelUsage, dq as TaskModelUsageSchema, k as TaskPreviewUrlSchema, dY as TaskSlashCommand, dX as TaskSlashCommandSchema, d_ as TaskSlashCommandsUpdateEventData, dZ as TaskSlashCommandsUpdateEventDataSchema, du as TaskState, dA as TaskStateChangeEventData, dz as TaskStateChangeEventSchema, e2 as TaskStoppedEventData, e1 as TaskStoppedEventSchema, cg as TaskSystemMessage, f as TaskTodo, e as TaskTodoSchema, dt as TaskUsageReportEventData, ds as TaskUsageReportEventSchema, j as TaskUsageSummary, h as TaskUsageSummarySchema, av as UnarchiveTaskRequest, au as UnarchiveTaskRequestSchema, ax as UnarchiveTaskResponse, aw as UnarchiveTaskResponseSchema, eo as UpdateAgentInfoEventData, en 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, dU as UpdateTaskAgentSessionIdEventData, dT 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, fy as ValidationResult, cO as WorkerAliveEventData, cN as WorkerAliveEventSchema, W as WorkerExecutionMode, a as WorkerExecutionModeSchema, cQ as WorkerExitEventData, cP as WorkerExitSchema, cG as WorkerInitializedEventData, cF as WorkerInitializedSchema, cE as WorkerInitializingEventData, cD as WorkerInitializingSchema, cU as WorkerPermissionModeEventData, cT as WorkerPermissionModeSchema, cI as WorkerPermissionModeValue, cH as WorkerPermissionModeValueSchema, cK as WorkerReadyEventData, cJ as WorkerReadySchema, cS as WorkerRunningEventData, cR as WorkerRunningSchema, cW as WorkerStatusRequestEventData, cV as WorkerStatusRequestSchema, c_ as WorkerStatusSnapshot, cZ as WorkerStatusSnapshotSchema, cY as WorkerStatusValue, cX as WorkerStatusValueSchema, eV as WorkerTaskEvent, dQ as WorkspaceFileRequestEventData, dP as WorkspaceFileRequestSchema, dS as WorkspaceFileResponseEventData, dR as WorkspaceFileResponseSchema, d5 as baseTaskSchema, K as cancelTaskRequestSchema, da as cancelTaskSchema, cs as createEventId, af as createMergeRequestSchema, d6 as createTaskSchema, ft 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, d8 as resumeTaskSchema, fs as setAgentContext, o as startTaskSchema, V as stopTaskRequestSchema, s as supportsTaskUserCwd, t as taskExecutionModes, w as workerExecutionModes, eW as workerTaskEvents } from './errors-B5fHpdTT.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
|
}>;
|
|
@@ -894,6 +894,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
894
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>;
|
|
@@ -3713,9 +3714,9 @@ declare const PrivateCloudInviteSchema: z.ZodObject<{
|
|
|
3713
3714
|
maxUses: z.ZodNumber;
|
|
3714
3715
|
usedCount: z.ZodNumber;
|
|
3715
3716
|
status: z.ZodEnum<{
|
|
3717
|
+
expired: "expired";
|
|
3716
3718
|
active: "active";
|
|
3717
3719
|
revoked: "revoked";
|
|
3718
|
-
expired: "expired";
|
|
3719
3720
|
consumed: "consumed";
|
|
3720
3721
|
}>;
|
|
3721
3722
|
createdAt: z.ZodString;
|
|
@@ -3740,9 +3741,9 @@ declare const CreatePrivateCloudInviteResponseSchema: z.ZodObject<{
|
|
|
3740
3741
|
maxUses: z.ZodNumber;
|
|
3741
3742
|
usedCount: z.ZodNumber;
|
|
3742
3743
|
status: z.ZodEnum<{
|
|
3744
|
+
expired: "expired";
|
|
3743
3745
|
active: "active";
|
|
3744
3746
|
revoked: "revoked";
|
|
3745
|
-
expired: "expired";
|
|
3746
3747
|
consumed: "consumed";
|
|
3747
3748
|
}>;
|
|
3748
3749
|
createdAt: z.ZodString;
|
|
@@ -4110,12 +4111,12 @@ 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<{
|
|
4113
|
-
|
|
4114
|
+
timeout: "timeout";
|
|
4114
4115
|
failed: "failed";
|
|
4116
|
+
running: "running";
|
|
4115
4117
|
completed: "completed";
|
|
4116
4118
|
queued: "queued";
|
|
4117
4119
|
canceled: "canceled";
|
|
4118
|
-
timeout: "timeout";
|
|
4119
4120
|
}>;
|
|
4120
4121
|
type CiRunStatus = z.infer<typeof CiRunStatusSchema>;
|
|
4121
4122
|
declare const CiRunResponseModeSchema: z.ZodEnum<{
|
|
@@ -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";
|
|
@@ -4202,8 +4204,8 @@ type CreateCiRunRequest = z.infer<typeof CreateCiRunRequestSchema>;
|
|
|
4202
4204
|
declare const CreateCiRunResponseSchema: z.ZodObject<{
|
|
4203
4205
|
runId: z.ZodString;
|
|
4204
4206
|
status: z.ZodEnum<{
|
|
4205
|
-
running: "running";
|
|
4206
4207
|
failed: "failed";
|
|
4208
|
+
running: "running";
|
|
4207
4209
|
completed: "completed";
|
|
4208
4210
|
queued: "queued";
|
|
4209
4211
|
}>;
|
|
@@ -4213,12 +4215,12 @@ type CreateCiRunResponse = z.infer<typeof CreateCiRunResponseSchema>;
|
|
|
4213
4215
|
declare const CiRunStatusResponseSchema: z.ZodObject<{
|
|
4214
4216
|
runId: z.ZodString;
|
|
4215
4217
|
status: z.ZodEnum<{
|
|
4216
|
-
|
|
4218
|
+
timeout: "timeout";
|
|
4217
4219
|
failed: "failed";
|
|
4220
|
+
running: "running";
|
|
4218
4221
|
completed: "completed";
|
|
4219
4222
|
queued: "queued";
|
|
4220
4223
|
canceled: "canceled";
|
|
4221
|
-
timeout: "timeout";
|
|
4222
4224
|
}>;
|
|
4223
4225
|
result: z.ZodString;
|
|
4224
4226
|
structuredOutput: z.ZodOptional<z.ZodUnknown>;
|
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';
|