@agentrix/shared 2.2.6 → 2.4.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-BdwSwKpv.d.cts → errors-CTYWy6fh.d.cts} +22 -10
- package/dist/index.cjs +18 -5
- package/dist/index.d.cts +13 -4
- package/dist/node.d.cts +2 -2
- package/package.json +1 -1
|
@@ -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>;
|
|
@@ -1957,6 +1967,7 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
1957
1967
|
developerName: z.ZodString;
|
|
1958
1968
|
developerEmail: z.ZodNullable<z.ZodString>;
|
|
1959
1969
|
gitRepoId: z.ZodNullable<z.ZodString>;
|
|
1970
|
+
repoSubDir: z.ZodNullable<z.ZodString>;
|
|
1960
1971
|
supportLocal: z.ZodBoolean;
|
|
1961
1972
|
enable: z.ZodBoolean;
|
|
1962
1973
|
config: z.ZodNullable<z.ZodObject<{
|
|
@@ -2040,6 +2051,7 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
2040
2051
|
rootTaskId: z.ZodNullable<z.ZodString>;
|
|
2041
2052
|
parentTaskId: z.ZodNullable<z.ZodString>;
|
|
2042
2053
|
taskAgentIds: z.ZodArray<z.ZodString>;
|
|
2054
|
+
autoNavigate: z.ZodOptional<z.ZodBoolean>;
|
|
2043
2055
|
createdAt: z.ZodString;
|
|
2044
2056
|
updatedAt: z.ZodString;
|
|
2045
2057
|
}, 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()
|
|
@@ -694,6 +701,7 @@ const AgentSchema = zod.z.object({
|
|
|
694
701
|
developerName: zod.z.string(),
|
|
695
702
|
developerEmail: zod.z.string().nullable(),
|
|
696
703
|
gitRepoId: zod.z.string().nullable(),
|
|
704
|
+
repoSubDir: zod.z.string().nullable(),
|
|
697
705
|
supportLocal: zod.z.boolean(),
|
|
698
706
|
enable: zod.z.boolean(),
|
|
699
707
|
config: AgentCustomConfigSchema.nullable(),
|
|
@@ -712,6 +720,7 @@ const CreateAgentRequestSchema = zod.z.object({
|
|
|
712
720
|
guildMsg: zod.z.string().default("what can I do for you today?"),
|
|
713
721
|
placeholderMsg: zod.z.string().default("Ask me anything..."),
|
|
714
722
|
gitRepoId: zod.z.string().optional(),
|
|
723
|
+
repoSubDir: zod.z.string().optional(),
|
|
715
724
|
supportLocal: zod.z.boolean().default(false),
|
|
716
725
|
config: AgentCustomConfigSchema.nullable().optional(),
|
|
717
726
|
isSystem: zod.z.boolean().optional()
|
|
@@ -728,6 +737,7 @@ const UpdateAgentRequestSchema = zod.z.object({
|
|
|
728
737
|
guildMsg: zod.z.string().optional(),
|
|
729
738
|
placeholderMsg: zod.z.string().optional(),
|
|
730
739
|
gitRepoId: zod.z.string().nullable().optional(),
|
|
740
|
+
repoSubDir: zod.z.string().optional(),
|
|
731
741
|
supportLocal: zod.z.boolean().optional(),
|
|
732
742
|
config: AgentCustomConfigSchema.nullable().optional()
|
|
733
743
|
});
|
|
@@ -1860,7 +1870,10 @@ const TaskMessageSchema = EventBaseSchema.extend({
|
|
|
1860
1870
|
rootTaskId: zod.z.string().optional(),
|
|
1861
1871
|
// Root task ID for event routing
|
|
1862
1872
|
// Artifacts summary - attached to result messages for task completion
|
|
1863
|
-
artifacts: TaskArtifactsSummarySchema.optional()
|
|
1873
|
+
artifacts: TaskArtifactsSummarySchema.optional(),
|
|
1874
|
+
// Navigation hint: tells App to navigate to the specified task after rendering this message
|
|
1875
|
+
// Sent in plaintext (outside encryption) so App can act on it before decryption
|
|
1876
|
+
navigateToTaskId: zod.z.string().optional()
|
|
1864
1877
|
}).refine(
|
|
1865
1878
|
(data) => {
|
|
1866
1879
|
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-CTYWy6fh.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-CTYWy6fh.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>>;
|
|
@@ -890,6 +891,7 @@ declare const AgentSchema: z.ZodObject<{
|
|
|
890
891
|
developerName: z.ZodString;
|
|
891
892
|
developerEmail: z.ZodNullable<z.ZodString>;
|
|
892
893
|
gitRepoId: z.ZodNullable<z.ZodString>;
|
|
894
|
+
repoSubDir: z.ZodNullable<z.ZodString>;
|
|
893
895
|
supportLocal: z.ZodBoolean;
|
|
894
896
|
enable: z.ZodBoolean;
|
|
895
897
|
config: z.ZodNullable<z.ZodObject<{
|
|
@@ -943,6 +945,7 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
|
|
|
943
945
|
developerName: z.ZodString;
|
|
944
946
|
developerEmail: z.ZodNullable<z.ZodString>;
|
|
945
947
|
gitRepoId: z.ZodNullable<z.ZodString>;
|
|
948
|
+
repoSubDir: z.ZodNullable<z.ZodString>;
|
|
946
949
|
supportLocal: z.ZodBoolean;
|
|
947
950
|
enable: z.ZodBoolean;
|
|
948
951
|
config: z.ZodNullable<z.ZodObject<{
|
|
@@ -996,6 +999,7 @@ declare const GetAgentResponseSchema: z.ZodObject<{
|
|
|
996
999
|
developerName: z.ZodString;
|
|
997
1000
|
developerEmail: z.ZodNullable<z.ZodString>;
|
|
998
1001
|
gitRepoId: z.ZodNullable<z.ZodString>;
|
|
1002
|
+
repoSubDir: z.ZodNullable<z.ZodString>;
|
|
999
1003
|
supportLocal: z.ZodBoolean;
|
|
1000
1004
|
enable: z.ZodBoolean;
|
|
1001
1005
|
config: z.ZodNullable<z.ZodObject<{
|
|
@@ -1043,6 +1047,7 @@ declare const CreateAgentRequestSchema: z.ZodObject<{
|
|
|
1043
1047
|
guildMsg: z.ZodDefault<z.ZodString>;
|
|
1044
1048
|
placeholderMsg: z.ZodDefault<z.ZodString>;
|
|
1045
1049
|
gitRepoId: z.ZodOptional<z.ZodString>;
|
|
1050
|
+
repoSubDir: z.ZodOptional<z.ZodString>;
|
|
1046
1051
|
supportLocal: z.ZodDefault<z.ZodBoolean>;
|
|
1047
1052
|
config: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1048
1053
|
displayConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -1091,6 +1096,7 @@ declare const CreateAgentResponseSchema: z.ZodObject<{
|
|
|
1091
1096
|
developerName: z.ZodString;
|
|
1092
1097
|
developerEmail: z.ZodNullable<z.ZodString>;
|
|
1093
1098
|
gitRepoId: z.ZodNullable<z.ZodString>;
|
|
1099
|
+
repoSubDir: z.ZodNullable<z.ZodString>;
|
|
1094
1100
|
supportLocal: z.ZodBoolean;
|
|
1095
1101
|
enable: z.ZodBoolean;
|
|
1096
1102
|
config: z.ZodNullable<z.ZodObject<{
|
|
@@ -1139,6 +1145,7 @@ declare const UpdateAgentRequestSchema: z.ZodObject<{
|
|
|
1139
1145
|
guildMsg: z.ZodOptional<z.ZodString>;
|
|
1140
1146
|
placeholderMsg: z.ZodOptional<z.ZodString>;
|
|
1141
1147
|
gitRepoId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1148
|
+
repoSubDir: z.ZodOptional<z.ZodString>;
|
|
1142
1149
|
supportLocal: z.ZodOptional<z.ZodBoolean>;
|
|
1143
1150
|
config: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1144
1151
|
displayConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -1186,6 +1193,7 @@ declare const UpdateAgentResponseSchema: z.ZodObject<{
|
|
|
1186
1193
|
developerName: z.ZodString;
|
|
1187
1194
|
developerEmail: z.ZodNullable<z.ZodString>;
|
|
1188
1195
|
gitRepoId: z.ZodNullable<z.ZodString>;
|
|
1196
|
+
repoSubDir: z.ZodNullable<z.ZodString>;
|
|
1189
1197
|
supportLocal: z.ZodBoolean;
|
|
1190
1198
|
enable: z.ZodBoolean;
|
|
1191
1199
|
config: z.ZodNullable<z.ZodObject<{
|
|
@@ -1320,9 +1328,9 @@ type CreateDraftAgentRequest = z.infer<typeof CreateDraftAgentRequestSchema>;
|
|
|
1320
1328
|
*/
|
|
1321
1329
|
declare const SetEnvironmentVariablesRequestSchema: z.ZodObject<{
|
|
1322
1330
|
ownerType: z.ZodEnum<{
|
|
1323
|
-
machine: "machine";
|
|
1324
1331
|
agent: "agent";
|
|
1325
1332
|
"draft-agent": "draft-agent";
|
|
1333
|
+
machine: "machine";
|
|
1326
1334
|
cloud: "cloud";
|
|
1327
1335
|
}>;
|
|
1328
1336
|
ownerId: z.ZodString;
|
|
@@ -1528,6 +1536,7 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
1528
1536
|
developerName: z.ZodString;
|
|
1529
1537
|
developerEmail: z.ZodNullable<z.ZodString>;
|
|
1530
1538
|
gitRepoId: z.ZodNullable<z.ZodString>;
|
|
1539
|
+
repoSubDir: z.ZodNullable<z.ZodString>;
|
|
1531
1540
|
supportLocal: z.ZodBoolean;
|
|
1532
1541
|
enable: z.ZodBoolean;
|
|
1533
1542
|
config: z.ZodNullable<z.ZodObject<{
|
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-CTYWy6fh.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-CTYWy6fh.cjs';
|
|
3
3
|
import '@anthropic-ai/claude-agent-sdk';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|