@agentrix/shared 2.2.6 → 2.3.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.
|
@@ -36,11 +36,13 @@ declare const StartTaskRequestSchema: z.ZodObject<{
|
|
|
36
36
|
ownerEncryptedDataKey: z.ZodOptional<z.ZodString>;
|
|
37
37
|
agentId: z.ZodOptional<z.ZodString>;
|
|
38
38
|
parentTaskId: z.ZodOptional<z.ZodString>;
|
|
39
|
+
sourceTaskId: z.ZodOptional<z.ZodString>;
|
|
39
40
|
todos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
40
41
|
agentId: z.ZodString;
|
|
41
42
|
title: z.ZodString;
|
|
42
43
|
instructions: z.ZodString;
|
|
43
44
|
}, z.core.$strip>>>;
|
|
45
|
+
autoNavigate: z.ZodOptional<z.ZodBoolean>;
|
|
44
46
|
}, z.core.$strip>;
|
|
45
47
|
type StartTaskRequest = z.infer<typeof StartTaskRequestSchema>;
|
|
46
48
|
declare const startTaskSchema: z.ZodObject<{
|
|
@@ -63,11 +65,13 @@ declare const startTaskSchema: z.ZodObject<{
|
|
|
63
65
|
ownerEncryptedDataKey: z.ZodOptional<z.ZodString>;
|
|
64
66
|
agentId: z.ZodOptional<z.ZodString>;
|
|
65
67
|
parentTaskId: z.ZodOptional<z.ZodString>;
|
|
68
|
+
sourceTaskId: z.ZodOptional<z.ZodString>;
|
|
66
69
|
todos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
67
70
|
agentId: z.ZodString;
|
|
68
71
|
title: z.ZodString;
|
|
69
72
|
instructions: z.ZodString;
|
|
70
73
|
}, z.core.$strip>>>;
|
|
74
|
+
autoNavigate: z.ZodOptional<z.ZodBoolean>;
|
|
71
75
|
}, z.core.$strip>;
|
|
72
76
|
/**
|
|
73
77
|
* POST /v1/tasks/start - Response schema (201 Created)
|
|
@@ -148,6 +152,7 @@ declare const TaskItemSchema: z.ZodObject<{
|
|
|
148
152
|
rootTaskId: z.ZodNullable<z.ZodString>;
|
|
149
153
|
parentTaskId: z.ZodNullable<z.ZodString>;
|
|
150
154
|
taskAgentIds: z.ZodArray<z.ZodString>;
|
|
155
|
+
autoNavigate: z.ZodOptional<z.ZodBoolean>;
|
|
151
156
|
createdAt: z.ZodString;
|
|
152
157
|
updatedAt: z.ZodString;
|
|
153
158
|
}, z.core.$strip>;
|
|
@@ -220,6 +225,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
220
225
|
rootTaskId: z.ZodNullable<z.ZodString>;
|
|
221
226
|
parentTaskId: z.ZodNullable<z.ZodString>;
|
|
222
227
|
taskAgentIds: z.ZodArray<z.ZodString>;
|
|
228
|
+
autoNavigate: z.ZodOptional<z.ZodBoolean>;
|
|
223
229
|
createdAt: z.ZodString;
|
|
224
230
|
updatedAt: z.ZodString;
|
|
225
231
|
}, z.core.$strip>>;
|
|
@@ -520,6 +526,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
520
526
|
rootTaskId: z.ZodNullable<z.ZodString>;
|
|
521
527
|
parentTaskId: z.ZodNullable<z.ZodString>;
|
|
522
528
|
taskAgentIds: z.ZodArray<z.ZodString>;
|
|
529
|
+
autoNavigate: z.ZodOptional<z.ZodBoolean>;
|
|
523
530
|
createdAt: z.ZodString;
|
|
524
531
|
updatedAt: z.ZodString;
|
|
525
532
|
}, z.core.$strip>;
|
|
@@ -589,6 +596,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
589
596
|
rootTaskId: z.ZodNullable<z.ZodString>;
|
|
590
597
|
parentTaskId: z.ZodNullable<z.ZodString>;
|
|
591
598
|
taskAgentIds: z.ZodArray<z.ZodString>;
|
|
599
|
+
autoNavigate: z.ZodOptional<z.ZodBoolean>;
|
|
592
600
|
createdAt: z.ZodString;
|
|
593
601
|
updatedAt: z.ZodString;
|
|
594
602
|
}, z.core.$strip>;
|
|
@@ -660,6 +668,7 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
|
|
|
660
668
|
rootTaskId: z.ZodNullable<z.ZodString>;
|
|
661
669
|
parentTaskId: z.ZodNullable<z.ZodString>;
|
|
662
670
|
taskAgentIds: z.ZodArray<z.ZodString>;
|
|
671
|
+
autoNavigate: z.ZodOptional<z.ZodBoolean>;
|
|
663
672
|
createdAt: z.ZodString;
|
|
664
673
|
updatedAt: z.ZodString;
|
|
665
674
|
}, z.core.$strip>;
|
|
@@ -680,15 +689,15 @@ type SendMessageTarget = 'agent' | 'user';
|
|
|
680
689
|
* - 'user': Broadcasts SDKAssistantMessage to users viewing the task
|
|
681
690
|
*/
|
|
682
691
|
declare const SendTaskMessageRequestSchema: z.ZodObject<{
|
|
683
|
-
message: z.ZodCustom<
|
|
692
|
+
message: z.ZodCustom<SDKUserMessage | SDKAssistantMessage, SDKUserMessage | SDKAssistantMessage>;
|
|
684
693
|
target: z.ZodEnum<{
|
|
685
|
-
user: "user";
|
|
686
694
|
agent: "agent";
|
|
695
|
+
user: "user";
|
|
687
696
|
}>;
|
|
688
697
|
fromTaskId: z.ZodOptional<z.ZodString>;
|
|
689
698
|
senderType: z.ZodEnum<{
|
|
690
|
-
system: "system";
|
|
691
699
|
human: "human";
|
|
700
|
+
system: "system";
|
|
692
701
|
agent: "agent";
|
|
693
702
|
}>;
|
|
694
703
|
senderId: z.ZodString;
|
|
@@ -905,9 +914,9 @@ declare const AskUserResponseStatusSchema: z.ZodEnum<{
|
|
|
905
914
|
timeout: "timeout";
|
|
906
915
|
}>;
|
|
907
916
|
declare const AskUserResponseReasonSchema: z.ZodEnum<{
|
|
908
|
-
timeout: "timeout";
|
|
909
|
-
user: "user";
|
|
910
917
|
system: "system";
|
|
918
|
+
user: "user";
|
|
919
|
+
timeout: "timeout";
|
|
911
920
|
}>;
|
|
912
921
|
type AskUserResponseStatus = z.infer<typeof AskUserResponseStatusSchema>;
|
|
913
922
|
type AskUserResponseReason = z.infer<typeof AskUserResponseReasonSchema>;
|
|
@@ -926,9 +935,9 @@ declare const AskUserResponseMessageSchema: z.ZodObject<{
|
|
|
926
935
|
timeout: "timeout";
|
|
927
936
|
}>>;
|
|
928
937
|
reason: z.ZodOptional<z.ZodEnum<{
|
|
929
|
-
timeout: "timeout";
|
|
930
|
-
user: "user";
|
|
931
938
|
system: "system";
|
|
939
|
+
user: "user";
|
|
940
|
+
timeout: "timeout";
|
|
932
941
|
}>>;
|
|
933
942
|
}, z.core.$strip>;
|
|
934
943
|
type AskUserResponseMessage = z.infer<typeof AskUserResponseMessageSchema>;
|
|
@@ -1432,9 +1441,9 @@ declare const TaskMessageSchema: z.ZodObject<{
|
|
|
1432
1441
|
taskId: z.ZodString;
|
|
1433
1442
|
chatId: z.ZodOptional<z.ZodString>;
|
|
1434
1443
|
from: z.ZodEnum<{
|
|
1444
|
+
machine: "machine";
|
|
1435
1445
|
app: "app";
|
|
1436
1446
|
"api-server": "api-server";
|
|
1437
|
-
machine: "machine";
|
|
1438
1447
|
worker: "worker";
|
|
1439
1448
|
}>;
|
|
1440
1449
|
opCode: z.ZodOptional<z.ZodString>;
|
|
@@ -1445,8 +1454,8 @@ declare const TaskMessageSchema: z.ZodObject<{
|
|
|
1445
1454
|
encryptedMessage: z.ZodOptional<z.ZodString>;
|
|
1446
1455
|
agentId: z.ZodOptional<z.ZodString>;
|
|
1447
1456
|
senderType: z.ZodEnum<{
|
|
1448
|
-
system: "system";
|
|
1449
1457
|
human: "human";
|
|
1458
|
+
system: "system";
|
|
1450
1459
|
agent: "agent";
|
|
1451
1460
|
}>;
|
|
1452
1461
|
senderId: z.ZodString;
|
|
@@ -1485,6 +1494,7 @@ declare const TaskMessageSchema: z.ZodObject<{
|
|
|
1485
1494
|
isStaticFileCollection: z.ZodOptional<z.ZodBoolean>;
|
|
1486
1495
|
}, z.core.$strip>>;
|
|
1487
1496
|
}, z.core.$strip>>;
|
|
1497
|
+
navigateToTaskId: z.ZodOptional<z.ZodString>;
|
|
1488
1498
|
}, z.core.$strip>;
|
|
1489
1499
|
type TaskMessageEventData = z.infer<typeof TaskMessageSchema>;
|
|
1490
1500
|
/**
|
|
@@ -1566,8 +1576,8 @@ declare const RtcSignalSchema: z.ZodObject<{
|
|
|
1566
1576
|
machineId: z.ZodString;
|
|
1567
1577
|
sessionId: z.ZodString;
|
|
1568
1578
|
from: z.ZodEnum<{
|
|
1569
|
-
app: "app";
|
|
1570
1579
|
machine: "machine";
|
|
1580
|
+
app: "app";
|
|
1571
1581
|
}>;
|
|
1572
1582
|
signal: z.ZodAny;
|
|
1573
1583
|
userId: z.ZodOptional<z.ZodString>;
|
|
@@ -2040,6 +2050,7 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
2040
2050
|
rootTaskId: z.ZodNullable<z.ZodString>;
|
|
2041
2051
|
parentTaskId: z.ZodNullable<z.ZodString>;
|
|
2042
2052
|
taskAgentIds: z.ZodArray<z.ZodString>;
|
|
2053
|
+
autoNavigate: z.ZodOptional<z.ZodBoolean>;
|
|
2043
2054
|
createdAt: z.ZodString;
|
|
2044
2055
|
updatedAt: z.ZodString;
|
|
2045
2056
|
}, z.core.$strip>]>;
|
package/dist/index.cjs
CHANGED
|
@@ -241,13 +241,18 @@ const StartTaskRequestSchema = zod.z.object({
|
|
|
241
241
|
// Agent ID to execute the task (overrides chat's first agent)
|
|
242
242
|
parentTaskId: zod.z.string().optional(),
|
|
243
243
|
// Parent task ID (for creating child tasks, machineId/cloudId inherited from parent)
|
|
244
|
-
|
|
244
|
+
sourceTaskId: zod.z.string().optional(),
|
|
245
|
+
// Source task ID for independent tasks (inherits encryption keys without parent binding)
|
|
246
|
+
todos: zod.z.array(TaskTodoSchema).optional(),
|
|
245
247
|
// Structured todos for group tasks
|
|
246
|
-
|
|
247
|
-
|
|
248
|
+
// Independent task mode (agent-initiated, no parent binding)
|
|
249
|
+
autoNavigate: zod.z.boolean().optional()
|
|
250
|
+
// Auto-navigate App UI to this task after creation
|
|
251
|
+
}).refine((data) => data.machineId || data.cloudId || data.parentTaskId || data.sourceTaskId, {
|
|
252
|
+
message: "Must provide either machineId, cloudId, parentTaskId, or sourceTaskId"
|
|
248
253
|
}).refine(
|
|
249
254
|
(data) => {
|
|
250
|
-
if (data.parentTaskId) {
|
|
255
|
+
if (data.parentTaskId || data.sourceTaskId) {
|
|
251
256
|
return true;
|
|
252
257
|
}
|
|
253
258
|
if (data.machineId) {
|
|
@@ -330,6 +335,8 @@ const TaskItemSchema = zod.z.object({
|
|
|
330
335
|
// Direct parent task ID. Root task has parentTaskId = null
|
|
331
336
|
taskAgentIds: zod.z.array(zod.z.string()),
|
|
332
337
|
// Persisted agent IDs for this task
|
|
338
|
+
autoNavigate: zod.z.boolean().optional(),
|
|
339
|
+
// Runtime-only: auto-navigate App UI to this task (not persisted)
|
|
333
340
|
createdAt: zod.z.string(),
|
|
334
341
|
// ISO 8601 string
|
|
335
342
|
updatedAt: zod.z.string()
|
|
@@ -1860,7 +1867,10 @@ const TaskMessageSchema = EventBaseSchema.extend({
|
|
|
1860
1867
|
rootTaskId: zod.z.string().optional(),
|
|
1861
1868
|
// Root task ID for event routing
|
|
1862
1869
|
// Artifacts summary - attached to result messages for task completion
|
|
1863
|
-
artifacts: TaskArtifactsSummarySchema.optional()
|
|
1870
|
+
artifacts: TaskArtifactsSummarySchema.optional(),
|
|
1871
|
+
// Navigation hint: tells App to navigate to the specified task after rendering this message
|
|
1872
|
+
// Sent in plaintext (outside encryption) so App can act on it before decryption
|
|
1873
|
+
navigateToTaskId: zod.z.string().optional()
|
|
1864
1874
|
}).refine(
|
|
1865
1875
|
(data) => {
|
|
1866
1876
|
return !!data.message !== !!data.encryptedMessage;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { P as PreviewMetadata } from './errors-
|
|
3
|
-
export { A as ActiveAgent, a as ActiveAgentSchema, b as AgentConfig, c as AgentConfigValidationError, d as AgentContext, e as AgentError, f as AgentLoadError, g as AgentMetadata, h as AgentMetadataSchema, i as AgentNotFoundError, j as AgentrixContext, k as ApiServerAliveEventData, l as ApiServerAliveEventSchema, m as AppAliveEventData, n as AppAliveEventSchema, o as ApprovePrRequest, p as ApprovePrRequestSchema, q as ApprovePrResponse, r as ApprovePrResponseSchema, s as ArchiveTaskRequest, t as ArchiveTaskRequestSchema, u as ArchiveTaskResponse, v as ArchiveTaskResponseSchema, w as AskUserMessage, x as AskUserMessageSchema, y as AskUserOption, z as AskUserOptionSchema, B as AskUserQuestion, C as AskUserQuestionSchema, D as AskUserResponseMessage, E as AskUserResponseMessageSchema, F as AskUserResponseReason, G as AskUserResponseReasonSchema, H as AskUserResponseStatus, I as AskUserResponseStatusSchema, J as AssociateRepoEventData, K as AssociateRepoEventDataSchema, L as CancelTaskEventData, M as CancelTaskRequest, N as CancelTaskRequestSchema, O as CancelTaskResponse, Q as CancelTaskResponseSchema, R as ChangeTaskTitleEventData, S as ChangeTaskTitleEventSchema, T as ChatWorkersStatusRequestEventData, U as ChatWorkersStatusRequestSchema, V as ChatWorkersStatusResponseEventData, W as ChatWorkersStatusResponseSchema, X as ClaudeAgentConfig, Y as ClaudeConfigSchema, Z as CompanionHeartbeatMessage, _ as CompanionHeartbeatRequestData, $ as CompanionHeartbeatRequestSchema, a0 as CompanionHeartbeatResponseData, a1 as CompanionHeartbeatResponseSchema, a2 as CompanionReminderMessage, a3 as CreateMergeRequestRequest, a4 as CreateMergeRequestResponse, a5 as CreateMergeRequestResponseSchema, a6 as CreateMergeRequestSchema, a7 as CreateTaskEventData, a8 as CreateTaskShareRequest, a9 as CreateTaskShareResponse, aa as CreateTaskShareResponseSchema, ab as CreateTaskShareSchema, ac as CreditExhaustedEventData, ad as CreditExhaustedEventSchema, ae as DaemonGitlabOperation, af as DaemonGitlabOperationSchema, ag as DaemonGitlabRequestEventData, ah as DaemonGitlabRequestSchema, ai as DaemonGitlabResponseEventData, aj as DaemonGitlabResponseSchema, ak as DeployAgentCompleteEventData, al as DeployAgentCompleteEventSchema, am as DeployAgentEventData, an as DeployAgentEventSchema, ao as EventAckData, ap as EventAckSchema, aq as EventData, ar as EventMap, as as EventName, at as EventSchemaMap, au as FRAMEWORK_TYPES, av as FillEventsRequest, aw as FillEventsRequestSchema, ax as FillEventsResponse, ay as FindTaskByAgentRequest, az as FindTaskByAgentRequestSchema, aA as FindTaskByAgentResponse, aB as FindTaskByAgentResponseSchema, aC as FrameworkNotSupportedError, aD as FrameworkType, aE as GetTaskSessionResponse, aF as GetTaskSessionResponseSchema, aG as HookFactory, aH as ListRecentTasksRequest, aI as ListRecentTasksRequestSchema, aJ as ListRecentTasksResponse, aK as ListRecentTasksResponseSchema, aL as ListSubTasksRequest, aM as ListSubTasksRequestSchema, aN as ListSubTasksResponse, aO as ListSubTasksResponseSchema, aP as ListTasksRequest, aQ as ListTasksRequestSchema, aR as ListTasksResponse, aS as ListTasksResponseSchema, aT as LoadAgentOptions, aU as MachineAliveEventData, aV as MachineAliveEventSchema, aW as MachineRtcRequestEventData, aX as MachineRtcRequestSchema, aY as MachineRtcResponseEventData, aZ as MachineRtcResponseSchema, a_ as MergePullRequestAck, a$ as MergePullRequestEventData, b0 as MergePullRequestEventSchema, b1 as MergeRequestEventData, b2 as MergeRequestEventSchema, b3 as MissingAgentFileError, b4 as PermissionResponseRequest, b5 as PermissionResponseRequestSchema, b6 as PermissionResponseResponse, b7 as PermissionResponseResponseSchema, b8 as PrStateChangedData, b9 as PreviewMetadataSchema, ba as PreviewMethod, bb as PreviewMethodSchema, bc as PreviewProjectType, bd as PreviewProjectTypeSchema, be as ProjectDirectoryResponse, bf as ProjectDirectoryResponseSchema, bg as ProjectEntry, bh as ProjectEntrySchema, bi as QueryEventsRequest, bj as QueryEventsRequestSchema, bk as QueryEventsResponse, bl as RecentTaskSummary, bm as RecentTaskSummarySchema, bn as RepositoryInitHookInput, bo as ResetTaskSessionEventData, bp as ResetTaskSessionSchema, bq as ResumeTaskEventData, br as ResumeTaskRequest, bs as ResumeTaskRequestSchema, bt as ResumeTaskResponse, bu as ResumeTaskResponseSchema, bv as RpcCallEventData, bw as RpcCallEventSchema, bx as RpcResponseData, by as RpcResponseSchema, bz as RtcIceServer, bA as RtcIceServerSchema, bB as RtcIceServersRequestEventData, bC as RtcIceServersRequestSchema, bD as RtcIceServersResponseEventData, bE as RtcIceServersResponseSchema, bF as RtcSignalEventData, bG as RtcSignalSchema, bH as SendMessageTarget, bI as SendTaskMessageRequest, bJ as SendTaskMessageRequestSchema, bK as SendTaskMessageResponse, bL as SendTaskMessageResponseSchema, bM as ShowModalEventData, bN as ShowModalEventDataSchema, bO as ShowModalRequest, bP as ShowModalRequestSchema, bQ as ShowModalResponse, bR as ShowModalResponseSchema, bS as ShutdownMachineData, bT as ShutdownMachineSchema, bU as StartTaskRequest, bV as StartTaskRequestSchema, bW as StartTaskResponse, bX as StartTaskResponseSchema, bY as StopTaskEventData, bZ as StopTaskRequest, b_ as StopTaskRequestSchema, b$ as StopTaskResponse, c0 as StopTaskResponseSchema, c1 as StopTaskSchema, c2 as SubTaskAskUserMessage, c3 as SubTaskResultUpdatedEventData, c4 as SubTaskResultUpdatedEventSchema, c5 as SubTaskSummary, c6 as SubTaskSummarySchema, c7 as SystemMessageEventData, c8 as SystemMessageSchema, c9 as SystemMessageType, ca as TaskAgentInfo, cb as TaskAgentInfoSchema, cc as TaskArtifactsStats, cd as TaskArtifactsStatsSchema, ce as TaskArtifactsSummary, cf as TaskArtifactsSummarySchema, cg as TaskEvent, ch as TaskInfoUpdateEventData, ci as TaskInfoUpdateEventDataSchema, cj as TaskItem, ck as TaskItemSchema, cl as TaskMessageEventData, cm as TaskMessagePayload, cn as TaskMessageSchema, co as TaskState, cp as TaskStateChangeEventData, cq as TaskStateChangeEventSchema, cr as TaskStoppedEventData, cs as TaskStoppedEventSchema, ct as TaskTodo, cu as TaskTodoSchema, cv as UnarchiveTaskRequest, cw as UnarchiveTaskRequestSchema, cx as UnarchiveTaskResponse, cy as UnarchiveTaskResponseSchema, cz as UpdateAgentInfoEventData, cA as UpdateAgentInfoEventSchema, cB as UpdateTaskAgentSessionIdEventData, cC as UpdateTaskAgentSessionIdEventSchema, cD as UpdateTaskTitleRequest, cE as UpdateTaskTitleRequestSchema, cF as UpdateTaskTitleResponse, cG as UpdateTaskTitleResponseSchema, cH as ValidationResult, cI as WorkerAliveEventData, cJ as WorkerAliveEventSchema, cK as WorkerExitEventData, cL as WorkerExitSchema, cM as WorkerInitializedEventData, cN as WorkerInitializedSchema, cO as WorkerInitializingEventData, cP as WorkerInitializingSchema, cQ as WorkerReadyEventData, cR as WorkerReadySchema, cS as WorkerRunningEventData, cT as WorkerRunningSchema, cU as WorkerStatusRequestEventData, cV as WorkerStatusRequestSchema, cW as WorkerStatusValue, cX as WorkerStatusValueSchema, cY as WorkerTaskEvent, cZ as WorkspaceFileRequestEventData, c_ as WorkspaceFileRequestSchema, c$ as WorkspaceFileResponseEventData, d0 as WorkspaceFileResponseSchema, d1 as baseTaskSchema, d2 as cancelTaskRequestSchema, d3 as cancelTaskSchema, d4 as createEventId, d5 as createMergeRequestSchema, d6 as createTaskSchema, d7 as getAgentContext, d8 as isAskUserMessage, d9 as isAskUserResponseMessage, da as isCompanionHeartbeatMessage, db as isCompanionReminderMessage, dc as isSDKMessage, dd as isSDKUserMessage, de as isSubTaskAskUserMessage, df as permissionResponseRequestSchema, dg as resumeTaskRequestSchema, dh as resumeTaskSchema, di as setAgentContext, dj as startTaskSchema, dk as stopTaskRequestSchema, dl as workerTaskEvents } from './errors-
|
|
2
|
+
import { P as PreviewMetadata } from './errors-B5aaLYmJ.cjs';
|
|
3
|
+
export { A as ActiveAgent, a as ActiveAgentSchema, b as AgentConfig, c as AgentConfigValidationError, d as AgentContext, e as AgentError, f as AgentLoadError, g as AgentMetadata, h as AgentMetadataSchema, i as AgentNotFoundError, j as AgentrixContext, k as ApiServerAliveEventData, l as ApiServerAliveEventSchema, m as AppAliveEventData, n as AppAliveEventSchema, o as ApprovePrRequest, p as ApprovePrRequestSchema, q as ApprovePrResponse, r as ApprovePrResponseSchema, s as ArchiveTaskRequest, t as ArchiveTaskRequestSchema, u as ArchiveTaskResponse, v as ArchiveTaskResponseSchema, w as AskUserMessage, x as AskUserMessageSchema, y as AskUserOption, z as AskUserOptionSchema, B as AskUserQuestion, C as AskUserQuestionSchema, D as AskUserResponseMessage, E as AskUserResponseMessageSchema, F as AskUserResponseReason, G as AskUserResponseReasonSchema, H as AskUserResponseStatus, I as AskUserResponseStatusSchema, J as AssociateRepoEventData, K as AssociateRepoEventDataSchema, L as CancelTaskEventData, M as CancelTaskRequest, N as CancelTaskRequestSchema, O as CancelTaskResponse, Q as CancelTaskResponseSchema, R as ChangeTaskTitleEventData, S as ChangeTaskTitleEventSchema, T as ChatWorkersStatusRequestEventData, U as ChatWorkersStatusRequestSchema, V as ChatWorkersStatusResponseEventData, W as ChatWorkersStatusResponseSchema, X as ClaudeAgentConfig, Y as ClaudeConfigSchema, Z as CompanionHeartbeatMessage, _ as CompanionHeartbeatRequestData, $ as CompanionHeartbeatRequestSchema, a0 as CompanionHeartbeatResponseData, a1 as CompanionHeartbeatResponseSchema, a2 as CompanionReminderMessage, a3 as CreateMergeRequestRequest, a4 as CreateMergeRequestResponse, a5 as CreateMergeRequestResponseSchema, a6 as CreateMergeRequestSchema, a7 as CreateTaskEventData, a8 as CreateTaskShareRequest, a9 as CreateTaskShareResponse, aa as CreateTaskShareResponseSchema, ab as CreateTaskShareSchema, ac as CreditExhaustedEventData, ad as CreditExhaustedEventSchema, ae as DaemonGitlabOperation, af as DaemonGitlabOperationSchema, ag as DaemonGitlabRequestEventData, ah as DaemonGitlabRequestSchema, ai as DaemonGitlabResponseEventData, aj as DaemonGitlabResponseSchema, ak as DeployAgentCompleteEventData, al as DeployAgentCompleteEventSchema, am as DeployAgentEventData, an as DeployAgentEventSchema, ao as EventAckData, ap as EventAckSchema, aq as EventData, ar as EventMap, as as EventName, at as EventSchemaMap, au as FRAMEWORK_TYPES, av as FillEventsRequest, aw as FillEventsRequestSchema, ax as FillEventsResponse, ay as FindTaskByAgentRequest, az as FindTaskByAgentRequestSchema, aA as FindTaskByAgentResponse, aB as FindTaskByAgentResponseSchema, aC as FrameworkNotSupportedError, aD as FrameworkType, aE as GetTaskSessionResponse, aF as GetTaskSessionResponseSchema, aG as HookFactory, aH as ListRecentTasksRequest, aI as ListRecentTasksRequestSchema, aJ as ListRecentTasksResponse, aK as ListRecentTasksResponseSchema, aL as ListSubTasksRequest, aM as ListSubTasksRequestSchema, aN as ListSubTasksResponse, aO as ListSubTasksResponseSchema, aP as ListTasksRequest, aQ as ListTasksRequestSchema, aR as ListTasksResponse, aS as ListTasksResponseSchema, aT as LoadAgentOptions, aU as MachineAliveEventData, aV as MachineAliveEventSchema, aW as MachineRtcRequestEventData, aX as MachineRtcRequestSchema, aY as MachineRtcResponseEventData, aZ as MachineRtcResponseSchema, a_ as MergePullRequestAck, a$ as MergePullRequestEventData, b0 as MergePullRequestEventSchema, b1 as MergeRequestEventData, b2 as MergeRequestEventSchema, b3 as MissingAgentFileError, b4 as PermissionResponseRequest, b5 as PermissionResponseRequestSchema, b6 as PermissionResponseResponse, b7 as PermissionResponseResponseSchema, b8 as PrStateChangedData, b9 as PreviewMetadataSchema, ba as PreviewMethod, bb as PreviewMethodSchema, bc as PreviewProjectType, bd as PreviewProjectTypeSchema, be as ProjectDirectoryResponse, bf as ProjectDirectoryResponseSchema, bg as ProjectEntry, bh as ProjectEntrySchema, bi as QueryEventsRequest, bj as QueryEventsRequestSchema, bk as QueryEventsResponse, bl as RecentTaskSummary, bm as RecentTaskSummarySchema, bn as RepositoryInitHookInput, bo as ResetTaskSessionEventData, bp as ResetTaskSessionSchema, bq as ResumeTaskEventData, br as ResumeTaskRequest, bs as ResumeTaskRequestSchema, bt as ResumeTaskResponse, bu as ResumeTaskResponseSchema, bv as RpcCallEventData, bw as RpcCallEventSchema, bx as RpcResponseData, by as RpcResponseSchema, bz as RtcIceServer, bA as RtcIceServerSchema, bB as RtcIceServersRequestEventData, bC as RtcIceServersRequestSchema, bD as RtcIceServersResponseEventData, bE as RtcIceServersResponseSchema, bF as RtcSignalEventData, bG as RtcSignalSchema, bH as SendMessageTarget, bI as SendTaskMessageRequest, bJ as SendTaskMessageRequestSchema, bK as SendTaskMessageResponse, bL as SendTaskMessageResponseSchema, bM as ShowModalEventData, bN as ShowModalEventDataSchema, bO as ShowModalRequest, bP as ShowModalRequestSchema, bQ as ShowModalResponse, bR as ShowModalResponseSchema, bS as ShutdownMachineData, bT as ShutdownMachineSchema, bU as StartTaskRequest, bV as StartTaskRequestSchema, bW as StartTaskResponse, bX as StartTaskResponseSchema, bY as StopTaskEventData, bZ as StopTaskRequest, b_ as StopTaskRequestSchema, b$ as StopTaskResponse, c0 as StopTaskResponseSchema, c1 as StopTaskSchema, c2 as SubTaskAskUserMessage, c3 as SubTaskResultUpdatedEventData, c4 as SubTaskResultUpdatedEventSchema, c5 as SubTaskSummary, c6 as SubTaskSummarySchema, c7 as SystemMessageEventData, c8 as SystemMessageSchema, c9 as SystemMessageType, ca as TaskAgentInfo, cb as TaskAgentInfoSchema, cc as TaskArtifactsStats, cd as TaskArtifactsStatsSchema, ce as TaskArtifactsSummary, cf as TaskArtifactsSummarySchema, cg as TaskEvent, ch as TaskInfoUpdateEventData, ci as TaskInfoUpdateEventDataSchema, cj as TaskItem, ck as TaskItemSchema, cl as TaskMessageEventData, cm as TaskMessagePayload, cn as TaskMessageSchema, co as TaskState, cp as TaskStateChangeEventData, cq as TaskStateChangeEventSchema, cr as TaskStoppedEventData, cs as TaskStoppedEventSchema, ct as TaskTodo, cu as TaskTodoSchema, cv as UnarchiveTaskRequest, cw as UnarchiveTaskRequestSchema, cx as UnarchiveTaskResponse, cy as UnarchiveTaskResponseSchema, cz as UpdateAgentInfoEventData, cA as UpdateAgentInfoEventSchema, cB as UpdateTaskAgentSessionIdEventData, cC as UpdateTaskAgentSessionIdEventSchema, cD as UpdateTaskTitleRequest, cE as UpdateTaskTitleRequestSchema, cF as UpdateTaskTitleResponse, cG as UpdateTaskTitleResponseSchema, cH as ValidationResult, cI as WorkerAliveEventData, cJ as WorkerAliveEventSchema, cK as WorkerExitEventData, cL as WorkerExitSchema, cM as WorkerInitializedEventData, cN as WorkerInitializedSchema, cO as WorkerInitializingEventData, cP as WorkerInitializingSchema, cQ as WorkerReadyEventData, cR as WorkerReadySchema, cS as WorkerRunningEventData, cT as WorkerRunningSchema, cU as WorkerStatusRequestEventData, cV as WorkerStatusRequestSchema, cW as WorkerStatusValue, cX as WorkerStatusValueSchema, cY as WorkerTaskEvent, cZ as WorkspaceFileRequestEventData, c_ as WorkspaceFileRequestSchema, c$ as WorkspaceFileResponseEventData, d0 as WorkspaceFileResponseSchema, d1 as baseTaskSchema, d2 as cancelTaskRequestSchema, d3 as cancelTaskSchema, d4 as createEventId, d5 as createMergeRequestSchema, d6 as createTaskSchema, d7 as getAgentContext, d8 as isAskUserMessage, d9 as isAskUserResponseMessage, da as isCompanionHeartbeatMessage, db as isCompanionReminderMessage, dc as isSDKMessage, dd as isSDKUserMessage, de as isSubTaskAskUserMessage, df as permissionResponseRequestSchema, dg as resumeTaskRequestSchema, dh as resumeTaskSchema, di as setAgentContext, dj as startTaskSchema, dk as stopTaskRequestSchema, dl as workerTaskEvents } from './errors-B5aaLYmJ.cjs';
|
|
4
4
|
import tweetnacl from 'tweetnacl';
|
|
5
5
|
import { SDKMessage } from '@anthropic-ai/claude-agent-sdk';
|
|
6
6
|
|
|
@@ -55,8 +55,8 @@ declare const FileStatsSchema: z.ZodObject<{
|
|
|
55
55
|
}, z.core.$strip>;
|
|
56
56
|
type FileStats = z.infer<typeof FileStatsSchema>;
|
|
57
57
|
declare const SenderTypeSchema: z.ZodEnum<{
|
|
58
|
-
system: "system";
|
|
59
58
|
human: "human";
|
|
59
|
+
system: "system";
|
|
60
60
|
agent: "agent";
|
|
61
61
|
}>;
|
|
62
62
|
type SenderType = z.infer<typeof SenderTypeSchema>;
|
|
@@ -738,6 +738,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
738
738
|
rootTaskId: z.ZodNullable<z.ZodString>;
|
|
739
739
|
parentTaskId: z.ZodNullable<z.ZodString>;
|
|
740
740
|
taskAgentIds: z.ZodArray<z.ZodString>;
|
|
741
|
+
autoNavigate: z.ZodOptional<z.ZodBoolean>;
|
|
741
742
|
createdAt: z.ZodString;
|
|
742
743
|
updatedAt: z.ZodString;
|
|
743
744
|
}, z.core.$strip>>;
|
|
@@ -1320,8 +1321,8 @@ type CreateDraftAgentRequest = z.infer<typeof CreateDraftAgentRequestSchema>;
|
|
|
1320
1321
|
*/
|
|
1321
1322
|
declare const SetEnvironmentVariablesRequestSchema: z.ZodObject<{
|
|
1322
1323
|
ownerType: z.ZodEnum<{
|
|
1323
|
-
machine: "machine";
|
|
1324
1324
|
agent: "agent";
|
|
1325
|
+
machine: "machine";
|
|
1325
1326
|
"draft-agent": "draft-agent";
|
|
1326
1327
|
cloud: "cloud";
|
|
1327
1328
|
}>;
|
package/dist/node.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { aT as LoadAgentOptions, b as AgentConfig, cH as ValidationResult, aD as FrameworkType } from './errors-
|
|
2
|
-
export { c as AgentConfigValidationError, d as AgentContext, e as AgentError, f as AgentLoadError, g as AgentMetadata, h as AgentMetadataSchema, i as AgentNotFoundError, j as AgentrixContext, X as ClaudeAgentConfig, Y as ClaudeConfigSchema, au as FRAMEWORK_TYPES, aC as FrameworkNotSupportedError, aG as HookFactory, b3 as MissingAgentFileError, bn as RepositoryInitHookInput, d7 as getAgentContext, di as setAgentContext } from './errors-
|
|
1
|
+
import { aT as LoadAgentOptions, b as AgentConfig, cH as ValidationResult, aD as FrameworkType } from './errors-B5aaLYmJ.cjs';
|
|
2
|
+
export { c as AgentConfigValidationError, d as AgentContext, e as AgentError, f as AgentLoadError, g as AgentMetadata, h as AgentMetadataSchema, i as AgentNotFoundError, j as AgentrixContext, X as ClaudeAgentConfig, Y as ClaudeConfigSchema, au as FRAMEWORK_TYPES, aC as FrameworkNotSupportedError, aG as HookFactory, b3 as MissingAgentFileError, bn as RepositoryInitHookInput, d7 as getAgentContext, di as setAgentContext } from './errors-B5aaLYmJ.cjs';
|
|
3
3
|
import '@anthropic-ai/claude-agent-sdk';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|