@agentrix/shared 2.7.0 → 2.8.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-BuPmuIkQ.d.cts → errors-BjRlOFVZ.d.cts} +120 -18
- package/dist/index.cjs +80 -20
- package/dist/index.d.cts +164 -47
- package/dist/node.d.cts +2 -2
- package/package.json +1 -1
|
@@ -43,6 +43,8 @@ declare const StartTaskRequestSchema: z.ZodObject<{
|
|
|
43
43
|
instructions: z.ZodString;
|
|
44
44
|
}, z.core.$strip>>>;
|
|
45
45
|
autoNavigate: z.ZodOptional<z.ZodBoolean>;
|
|
46
|
+
issueNumber: z.ZodOptional<z.ZodNumber>;
|
|
47
|
+
branchName: z.ZodOptional<z.ZodString>;
|
|
46
48
|
}, z.core.$strip>;
|
|
47
49
|
type StartTaskRequest = z.infer<typeof StartTaskRequestSchema>;
|
|
48
50
|
declare const startTaskSchema: z.ZodObject<{
|
|
@@ -72,6 +74,8 @@ declare const startTaskSchema: z.ZodObject<{
|
|
|
72
74
|
instructions: z.ZodString;
|
|
73
75
|
}, z.core.$strip>>>;
|
|
74
76
|
autoNavigate: z.ZodOptional<z.ZodBoolean>;
|
|
77
|
+
issueNumber: z.ZodOptional<z.ZodNumber>;
|
|
78
|
+
branchName: z.ZodOptional<z.ZodString>;
|
|
75
79
|
}, z.core.$strip>;
|
|
76
80
|
/**
|
|
77
81
|
* POST /v1/tasks/start - Response schema (201 Created)
|
|
@@ -91,10 +95,19 @@ declare const StartTaskResponseSchema: z.ZodObject<{
|
|
|
91
95
|
customTitle: z.ZodNullable<z.ZodString>;
|
|
92
96
|
userCwd: z.ZodNullable<z.ZodString>;
|
|
93
97
|
forceUserCwd: z.ZodNullable<z.ZodBoolean>;
|
|
98
|
+
issueNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
94
99
|
createdAt: z.ZodString;
|
|
95
100
|
updatedAt: z.ZodString;
|
|
96
101
|
}, z.core.$strip>;
|
|
97
102
|
type StartTaskResponse = z.infer<typeof StartTaskResponseSchema>;
|
|
103
|
+
declare const EnsureIssueRootTaskRequestSchema: z.ZodObject<{
|
|
104
|
+
chatId: z.ZodString;
|
|
105
|
+
repositoryId: z.ZodString;
|
|
106
|
+
issueNumber: z.ZodNumber;
|
|
107
|
+
customTitle: z.ZodOptional<z.ZodString>;
|
|
108
|
+
branchName: z.ZodOptional<z.ZodString>;
|
|
109
|
+
}, z.core.$strip>;
|
|
110
|
+
type EnsureIssueRootTaskRequest = z.infer<typeof EnsureIssueRootTaskRequestSchema>;
|
|
98
111
|
/**
|
|
99
112
|
* Task item schema (used in list response)
|
|
100
113
|
*/
|
|
@@ -118,6 +131,7 @@ declare const TaskItemSchema: z.ZodObject<{
|
|
|
118
131
|
cloudId: z.ZodNullable<z.ZodString>;
|
|
119
132
|
repositoryId: z.ZodNullable<z.ZodString>;
|
|
120
133
|
baseBranch: z.ZodNullable<z.ZodString>;
|
|
134
|
+
branchName: z.ZodNullable<z.ZodString>;
|
|
121
135
|
title: z.ZodNullable<z.ZodString>;
|
|
122
136
|
customTitle: z.ZodNullable<z.ZodString>;
|
|
123
137
|
agentSessionId: z.ZodNullable<z.ZodString>;
|
|
@@ -139,6 +153,7 @@ declare const TaskItemSchema: z.ZodObject<{
|
|
|
139
153
|
merged: "merged";
|
|
140
154
|
}>>;
|
|
141
155
|
pullRequestStateChangedAt: z.ZodNullable<z.ZodString>;
|
|
156
|
+
issueNumber: z.ZodNullable<z.ZodNumber>;
|
|
142
157
|
gitStats: z.ZodNullable<z.ZodObject<{
|
|
143
158
|
totalInsertions: z.ZodNumber;
|
|
144
159
|
totalDeletions: z.ZodNumber;
|
|
@@ -157,6 +172,69 @@ declare const TaskItemSchema: z.ZodObject<{
|
|
|
157
172
|
updatedAt: z.ZodString;
|
|
158
173
|
}, z.core.$strip>;
|
|
159
174
|
type TaskItem = z.infer<typeof TaskItemSchema>;
|
|
175
|
+
declare const EnsureIssueRootTaskResponseSchema: z.ZodObject<{
|
|
176
|
+
task: z.ZodObject<{
|
|
177
|
+
id: z.ZodString;
|
|
178
|
+
type: z.ZodDefault<z.ZodEnum<{
|
|
179
|
+
chat: "chat";
|
|
180
|
+
work: "work";
|
|
181
|
+
shadow: "shadow";
|
|
182
|
+
}>>;
|
|
183
|
+
chatId: z.ZodString;
|
|
184
|
+
userId: z.ZodString;
|
|
185
|
+
state: z.ZodString;
|
|
186
|
+
workerStatus: z.ZodNullable<z.ZodEnum<{
|
|
187
|
+
initializing: "initializing";
|
|
188
|
+
ready: "ready";
|
|
189
|
+
running: "running";
|
|
190
|
+
}>>;
|
|
191
|
+
agentId: z.ZodString;
|
|
192
|
+
machineId: z.ZodNullable<z.ZodString>;
|
|
193
|
+
cloudId: z.ZodNullable<z.ZodString>;
|
|
194
|
+
repositoryId: z.ZodNullable<z.ZodString>;
|
|
195
|
+
baseBranch: z.ZodNullable<z.ZodString>;
|
|
196
|
+
branchName: z.ZodNullable<z.ZodString>;
|
|
197
|
+
title: z.ZodNullable<z.ZodString>;
|
|
198
|
+
customTitle: z.ZodNullable<z.ZodString>;
|
|
199
|
+
agentSessionId: z.ZodNullable<z.ZodString>;
|
|
200
|
+
dataEncryptionKey: z.ZodNullable<z.ZodString>;
|
|
201
|
+
ownerEncryptedDataKey: z.ZodNullable<z.ZodString>;
|
|
202
|
+
cwd: z.ZodNullable<z.ZodString>;
|
|
203
|
+
userCwd: z.ZodNullable<z.ZodString>;
|
|
204
|
+
forceUserCwd: z.ZodNullable<z.ZodBoolean>;
|
|
205
|
+
repositorySourceType: z.ZodNullable<z.ZodEnum<{
|
|
206
|
+
temporary: "temporary";
|
|
207
|
+
directory: "directory";
|
|
208
|
+
"git-server": "git-server";
|
|
209
|
+
}>>;
|
|
210
|
+
pullRequestNumber: z.ZodNullable<z.ZodNumber>;
|
|
211
|
+
pullRequestUrl: z.ZodNullable<z.ZodString>;
|
|
212
|
+
pullRequestState: z.ZodNullable<z.ZodEnum<{
|
|
213
|
+
open: "open";
|
|
214
|
+
closed: "closed";
|
|
215
|
+
merged: "merged";
|
|
216
|
+
}>>;
|
|
217
|
+
pullRequestStateChangedAt: z.ZodNullable<z.ZodString>;
|
|
218
|
+
issueNumber: z.ZodNullable<z.ZodNumber>;
|
|
219
|
+
gitStats: z.ZodNullable<z.ZodObject<{
|
|
220
|
+
totalInsertions: z.ZodNumber;
|
|
221
|
+
totalDeletions: z.ZodNumber;
|
|
222
|
+
files: z.ZodArray<z.ZodObject<{
|
|
223
|
+
path: z.ZodString;
|
|
224
|
+
insertions: z.ZodNumber;
|
|
225
|
+
deletions: z.ZodNumber;
|
|
226
|
+
}, z.core.$strip>>;
|
|
227
|
+
}, z.core.$strip>>;
|
|
228
|
+
totalDuration: z.ZodNullable<z.ZodNumber>;
|
|
229
|
+
rootTaskId: z.ZodNullable<z.ZodString>;
|
|
230
|
+
parentTaskId: z.ZodNullable<z.ZodString>;
|
|
231
|
+
taskAgentIds: z.ZodArray<z.ZodString>;
|
|
232
|
+
autoNavigate: z.ZodOptional<z.ZodBoolean>;
|
|
233
|
+
createdAt: z.ZodString;
|
|
234
|
+
updatedAt: z.ZodString;
|
|
235
|
+
}, z.core.$strip>;
|
|
236
|
+
}, z.core.$strip>;
|
|
237
|
+
type EnsureIssueRootTaskResponse = z.infer<typeof EnsureIssueRootTaskResponseSchema>;
|
|
160
238
|
/**
|
|
161
239
|
* GET /v1/tasks - Query parameters schema
|
|
162
240
|
*/
|
|
@@ -191,6 +269,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
191
269
|
cloudId: z.ZodNullable<z.ZodString>;
|
|
192
270
|
repositoryId: z.ZodNullable<z.ZodString>;
|
|
193
271
|
baseBranch: z.ZodNullable<z.ZodString>;
|
|
272
|
+
branchName: z.ZodNullable<z.ZodString>;
|
|
194
273
|
title: z.ZodNullable<z.ZodString>;
|
|
195
274
|
customTitle: z.ZodNullable<z.ZodString>;
|
|
196
275
|
agentSessionId: z.ZodNullable<z.ZodString>;
|
|
@@ -212,6 +291,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
212
291
|
merged: "merged";
|
|
213
292
|
}>>;
|
|
214
293
|
pullRequestStateChangedAt: z.ZodNullable<z.ZodString>;
|
|
294
|
+
issueNumber: z.ZodNullable<z.ZodNumber>;
|
|
215
295
|
gitStats: z.ZodNullable<z.ZodObject<{
|
|
216
296
|
totalInsertions: z.ZodNumber;
|
|
217
297
|
totalDeletions: z.ZodNumber;
|
|
@@ -492,6 +572,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
492
572
|
cloudId: z.ZodNullable<z.ZodString>;
|
|
493
573
|
repositoryId: z.ZodNullable<z.ZodString>;
|
|
494
574
|
baseBranch: z.ZodNullable<z.ZodString>;
|
|
575
|
+
branchName: z.ZodNullable<z.ZodString>;
|
|
495
576
|
title: z.ZodNullable<z.ZodString>;
|
|
496
577
|
customTitle: z.ZodNullable<z.ZodString>;
|
|
497
578
|
agentSessionId: z.ZodNullable<z.ZodString>;
|
|
@@ -513,6 +594,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
513
594
|
merged: "merged";
|
|
514
595
|
}>>;
|
|
515
596
|
pullRequestStateChangedAt: z.ZodNullable<z.ZodString>;
|
|
597
|
+
issueNumber: z.ZodNullable<z.ZodNumber>;
|
|
516
598
|
gitStats: z.ZodNullable<z.ZodObject<{
|
|
517
599
|
totalInsertions: z.ZodNumber;
|
|
518
600
|
totalDeletions: z.ZodNumber;
|
|
@@ -562,6 +644,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
562
644
|
cloudId: z.ZodNullable<z.ZodString>;
|
|
563
645
|
repositoryId: z.ZodNullable<z.ZodString>;
|
|
564
646
|
baseBranch: z.ZodNullable<z.ZodString>;
|
|
647
|
+
branchName: z.ZodNullable<z.ZodString>;
|
|
565
648
|
title: z.ZodNullable<z.ZodString>;
|
|
566
649
|
customTitle: z.ZodNullable<z.ZodString>;
|
|
567
650
|
agentSessionId: z.ZodNullable<z.ZodString>;
|
|
@@ -583,6 +666,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
583
666
|
merged: "merged";
|
|
584
667
|
}>>;
|
|
585
668
|
pullRequestStateChangedAt: z.ZodNullable<z.ZodString>;
|
|
669
|
+
issueNumber: z.ZodNullable<z.ZodNumber>;
|
|
586
670
|
gitStats: z.ZodNullable<z.ZodObject<{
|
|
587
671
|
totalInsertions: z.ZodNumber;
|
|
588
672
|
totalDeletions: z.ZodNumber;
|
|
@@ -634,6 +718,7 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
|
|
|
634
718
|
cloudId: z.ZodNullable<z.ZodString>;
|
|
635
719
|
repositoryId: z.ZodNullable<z.ZodString>;
|
|
636
720
|
baseBranch: z.ZodNullable<z.ZodString>;
|
|
721
|
+
branchName: z.ZodNullable<z.ZodString>;
|
|
637
722
|
title: z.ZodNullable<z.ZodString>;
|
|
638
723
|
customTitle: z.ZodNullable<z.ZodString>;
|
|
639
724
|
agentSessionId: z.ZodNullable<z.ZodString>;
|
|
@@ -655,6 +740,7 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
|
|
|
655
740
|
merged: "merged";
|
|
656
741
|
}>>;
|
|
657
742
|
pullRequestStateChangedAt: z.ZodNullable<z.ZodString>;
|
|
743
|
+
issueNumber: z.ZodNullable<z.ZodNumber>;
|
|
658
744
|
gitStats: z.ZodNullable<z.ZodObject<{
|
|
659
745
|
totalInsertions: z.ZodNumber;
|
|
660
746
|
totalDeletions: z.ZodNumber;
|
|
@@ -689,15 +775,15 @@ type SendMessageTarget = 'agent' | 'user';
|
|
|
689
775
|
* - 'user': Broadcasts SDKAssistantMessage to users viewing the task
|
|
690
776
|
*/
|
|
691
777
|
declare const SendTaskMessageRequestSchema: z.ZodObject<{
|
|
692
|
-
message: z.ZodCustom<
|
|
778
|
+
message: z.ZodCustom<SDKAssistantMessage | SDKUserMessage, SDKAssistantMessage | SDKUserMessage>;
|
|
693
779
|
target: z.ZodEnum<{
|
|
694
|
-
agent: "agent";
|
|
695
780
|
user: "user";
|
|
781
|
+
agent: "agent";
|
|
696
782
|
}>;
|
|
697
783
|
fromTaskId: z.ZodOptional<z.ZodString>;
|
|
698
784
|
senderType: z.ZodEnum<{
|
|
699
|
-
human: "human";
|
|
700
785
|
system: "system";
|
|
786
|
+
human: "human";
|
|
701
787
|
agent: "agent";
|
|
702
788
|
}>;
|
|
703
789
|
senderId: z.ZodString;
|
|
@@ -941,9 +1027,9 @@ declare const AskUserResponseStatusSchema: z.ZodEnum<{
|
|
|
941
1027
|
timeout: "timeout";
|
|
942
1028
|
}>;
|
|
943
1029
|
declare const AskUserResponseReasonSchema: z.ZodEnum<{
|
|
944
|
-
system: "system";
|
|
945
|
-
user: "user";
|
|
946
1030
|
timeout: "timeout";
|
|
1031
|
+
user: "user";
|
|
1032
|
+
system: "system";
|
|
947
1033
|
}>;
|
|
948
1034
|
type AskUserResponseStatus = z.infer<typeof AskUserResponseStatusSchema>;
|
|
949
1035
|
type AskUserResponseReason = z.infer<typeof AskUserResponseReasonSchema>;
|
|
@@ -964,9 +1050,9 @@ declare const AskUserResponseMessageSchema: z.ZodObject<{
|
|
|
964
1050
|
timeout: "timeout";
|
|
965
1051
|
}>>;
|
|
966
1052
|
reason: z.ZodOptional<z.ZodEnum<{
|
|
967
|
-
system: "system";
|
|
968
|
-
user: "user";
|
|
969
1053
|
timeout: "timeout";
|
|
1054
|
+
user: "user";
|
|
1055
|
+
system: "system";
|
|
970
1056
|
}>>;
|
|
971
1057
|
}, z.core.$strip>;
|
|
972
1058
|
type AskUserResponseMessage = z.infer<typeof AskUserResponseMessageSchema>;
|
|
@@ -1263,6 +1349,7 @@ declare const baseTaskSchema: z.ZodObject<{
|
|
|
1263
1349
|
agentDir: z.ZodOptional<z.ZodString>;
|
|
1264
1350
|
gitUrl: z.ZodOptional<z.ZodString>;
|
|
1265
1351
|
baseBranch: z.ZodOptional<z.ZodString>;
|
|
1352
|
+
branchName: z.ZodOptional<z.ZodString>;
|
|
1266
1353
|
cwd: z.ZodOptional<z.ZodString>;
|
|
1267
1354
|
userCwd: z.ZodOptional<z.ZodString>;
|
|
1268
1355
|
forceUserCwd: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1316,6 +1403,7 @@ declare const createTaskSchema: z.ZodObject<{
|
|
|
1316
1403
|
agentDir: z.ZodOptional<z.ZodString>;
|
|
1317
1404
|
gitUrl: z.ZodOptional<z.ZodString>;
|
|
1318
1405
|
baseBranch: z.ZodOptional<z.ZodString>;
|
|
1406
|
+
branchName: z.ZodOptional<z.ZodString>;
|
|
1319
1407
|
cwd: z.ZodOptional<z.ZodString>;
|
|
1320
1408
|
userCwd: z.ZodOptional<z.ZodString>;
|
|
1321
1409
|
forceUserCwd: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1372,6 +1460,7 @@ declare const resumeTaskSchema: z.ZodObject<{
|
|
|
1372
1460
|
agentDir: z.ZodOptional<z.ZodString>;
|
|
1373
1461
|
gitUrl: z.ZodOptional<z.ZodString>;
|
|
1374
1462
|
baseBranch: z.ZodOptional<z.ZodString>;
|
|
1463
|
+
branchName: z.ZodOptional<z.ZodString>;
|
|
1375
1464
|
cwd: z.ZodOptional<z.ZodString>;
|
|
1376
1465
|
userCwd: z.ZodOptional<z.ZodString>;
|
|
1377
1466
|
forceUserCwd: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1538,9 +1627,9 @@ declare const TaskMessageSchema: z.ZodObject<{
|
|
|
1538
1627
|
taskId: z.ZodString;
|
|
1539
1628
|
chatId: z.ZodOptional<z.ZodString>;
|
|
1540
1629
|
from: z.ZodEnum<{
|
|
1541
|
-
machine: "machine";
|
|
1542
1630
|
app: "app";
|
|
1543
1631
|
"api-server": "api-server";
|
|
1632
|
+
machine: "machine";
|
|
1544
1633
|
worker: "worker";
|
|
1545
1634
|
}>;
|
|
1546
1635
|
opCode: z.ZodOptional<z.ZodString>;
|
|
@@ -1551,8 +1640,8 @@ declare const TaskMessageSchema: z.ZodObject<{
|
|
|
1551
1640
|
encryptedMessage: z.ZodOptional<z.ZodString>;
|
|
1552
1641
|
agentId: z.ZodOptional<z.ZodString>;
|
|
1553
1642
|
senderType: z.ZodEnum<{
|
|
1554
|
-
human: "human";
|
|
1555
1643
|
system: "system";
|
|
1644
|
+
human: "human";
|
|
1556
1645
|
agent: "agent";
|
|
1557
1646
|
}>;
|
|
1558
1647
|
senderId: z.ZodString;
|
|
@@ -1673,8 +1762,8 @@ declare const RtcSignalSchema: z.ZodObject<{
|
|
|
1673
1762
|
machineId: z.ZodString;
|
|
1674
1763
|
sessionId: z.ZodString;
|
|
1675
1764
|
from: z.ZodEnum<{
|
|
1676
|
-
machine: "machine";
|
|
1677
1765
|
app: "app";
|
|
1766
|
+
machine: "machine";
|
|
1678
1767
|
}>;
|
|
1679
1768
|
signal: z.ZodAny;
|
|
1680
1769
|
userId: z.ZodOptional<z.ZodString>;
|
|
@@ -1970,12 +2059,9 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
1970
2059
|
group: "group";
|
|
1971
2060
|
}>;
|
|
1972
2061
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2062
|
+
bindRepoId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1973
2063
|
createdAt: z.ZodString;
|
|
1974
2064
|
updatedAt: z.ZodString;
|
|
1975
|
-
defaultMachineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1976
|
-
defaultCloudId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1977
|
-
defaultRepositoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1978
|
-
defaultBaseBranch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1979
2065
|
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
1980
2066
|
id: z.ZodString;
|
|
1981
2067
|
chatId: z.ZodString;
|
|
@@ -2142,6 +2228,7 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
2142
2228
|
cloudId: z.ZodNullable<z.ZodString>;
|
|
2143
2229
|
repositoryId: z.ZodNullable<z.ZodString>;
|
|
2144
2230
|
baseBranch: z.ZodNullable<z.ZodString>;
|
|
2231
|
+
branchName: z.ZodNullable<z.ZodString>;
|
|
2145
2232
|
title: z.ZodNullable<z.ZodString>;
|
|
2146
2233
|
customTitle: z.ZodNullable<z.ZodString>;
|
|
2147
2234
|
agentSessionId: z.ZodNullable<z.ZodString>;
|
|
@@ -2163,6 +2250,7 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
2163
2250
|
merged: "merged";
|
|
2164
2251
|
}>>;
|
|
2165
2252
|
pullRequestStateChangedAt: z.ZodNullable<z.ZodString>;
|
|
2253
|
+
issueNumber: z.ZodNullable<z.ZodNumber>;
|
|
2166
2254
|
gitStats: z.ZodNullable<z.ZodObject<{
|
|
2167
2255
|
totalInsertions: z.ZodNumber;
|
|
2168
2256
|
totalDeletions: z.ZodNumber;
|
|
@@ -2358,6 +2446,11 @@ interface AgentrixContext {
|
|
|
2358
2446
|
* Get the current workspace directory
|
|
2359
2447
|
*/
|
|
2360
2448
|
getWorkspace(): string;
|
|
2449
|
+
/**
|
|
2450
|
+
* Get the Agentrix agents home directory (e.g., ~/.agentrix/agents/)
|
|
2451
|
+
* Used for cross-task persistent storage shared across all agent sessions
|
|
2452
|
+
*/
|
|
2453
|
+
getAgentHomeDir(): string;
|
|
2361
2454
|
/**
|
|
2362
2455
|
* Get the current user ID
|
|
2363
2456
|
*/
|
|
@@ -2441,11 +2534,13 @@ interface AgentrixContext {
|
|
|
2441
2534
|
}>;
|
|
2442
2535
|
/**
|
|
2443
2536
|
* Create a group task with structured todos
|
|
2444
|
-
* Automatically inherits
|
|
2537
|
+
* Automatically inherits rootTaskId, machineId/cloudId from current task
|
|
2445
2538
|
* Sets parentTaskId to current taskId
|
|
2539
|
+
* @param chatId - Optional. If provided, the group task runs in this chat instead of the current chat
|
|
2446
2540
|
*/
|
|
2447
2541
|
startGroupTask(params: {
|
|
2448
|
-
agentId
|
|
2542
|
+
agentId?: string;
|
|
2543
|
+
chatId?: string;
|
|
2449
2544
|
message: SDKUserMessage;
|
|
2450
2545
|
title: string;
|
|
2451
2546
|
todos: Array<{
|
|
@@ -2456,6 +2551,13 @@ interface AgentrixContext {
|
|
|
2456
2551
|
}): Promise<{
|
|
2457
2552
|
taskId: string;
|
|
2458
2553
|
}>;
|
|
2554
|
+
/**
|
|
2555
|
+
* Create a new group chat with the current user as owner and specified agents as members
|
|
2556
|
+
* Returns the chatId of the created group chat
|
|
2557
|
+
*/
|
|
2558
|
+
createGroupChat(agentIds: string[]): Promise<{
|
|
2559
|
+
chatId: string;
|
|
2560
|
+
}>;
|
|
2459
2561
|
/**
|
|
2460
2562
|
* Send a message to a task
|
|
2461
2563
|
*
|
|
@@ -2755,5 +2857,5 @@ declare class MissingAgentFileError extends AgentError {
|
|
|
2755
2857
|
constructor(filePath: string);
|
|
2756
2858
|
}
|
|
2757
2859
|
|
|
2758
|
-
export { CompanionHeartbeatRequestSchema as $, AskUserQuestionSchema as C, AskUserResponseMessageSchema as E, AskUserResponseReasonSchema as G, AskUserResponseStatusSchema as I, AssociateRepoEventDataSchema as K, CancelTaskRequestSchema as N, CancelTaskResponseSchema as Q, ChangeTaskTitleEventSchema as S, ChatWorkersStatusRequestSchema as U, ChatWorkersStatusResponseSchema as W, ClaudeConfigSchema as Y, ActiveAgentSchema as a, CompanionHeartbeatResponseSchema as a1, CreateMergeRequestResponseSchema as a5, CreateMergeRequestSchema as a6,
|
|
2759
|
-
export type { ActiveAgent as A, AskUserQuestion as B, AskUserResponseMessage as D, AskUserResponseReason as F, AskUserResponseStatus as H, AssociateRepoEventData as J, CancelTaskEventData as L, CancelTaskRequest as M, CancelTaskResponse as O, PreviewMetadata as P, ChangeTaskTitleEventData as R, ChatWorkersStatusRequestEventData as T, ChatWorkersStatusResponseEventData as V, ClaudeAgentConfig as X, CompanionHeartbeatMessage as Z, CompanionHeartbeatRequestData as _,
|
|
2860
|
+
export { CompanionHeartbeatRequestSchema as $, AskUserQuestionSchema as C, AskUserResponseMessageSchema as E, AskUserResponseReasonSchema as G, AskUserResponseStatusSchema as I, AssociateRepoEventDataSchema as K, CancelTaskRequestSchema as N, CancelTaskResponseSchema as Q, ChangeTaskTitleEventSchema as S, ChatWorkersStatusRequestSchema as U, ChatWorkersStatusResponseSchema as W, ClaudeConfigSchema as Y, ActiveAgentSchema as a, MachineRtcRequestSchema as a$, CompanionHeartbeatResponseSchema as a1, CreateMergeRequestResponseSchema as a5, CreateMergeRequestSchema as a6, FillEventsRequestSchema as aA, FindTaskByAgentRequestSchema as aD, FindTaskByAgentResponseSchema as aF, FrameworkNotSupportedError as aG, GetTaskSessionResponseSchema as aJ, ListRecentTasksRequestSchema as aM, ListRecentTasksResponseSchema as aO, ListSubTasksRequestSchema as aQ, ListSubTasksResponseSchema as aS, ListTasksRequestSchema as aU, ListTasksResponseSchema as aW, MachineAliveEventSchema as aZ, CreateTaskShareResponseSchema as aa, CreateTaskShareSchema as ab, CreditExhaustedEventSchema as ad, DaemonGitlabOperationSchema as af, DaemonGitlabRequestSchema as ah, DaemonGitlabResponseSchema as aj, DeployAgentCompleteEventSchema as al, DeployAgentEventSchema as an, EnsureIssueRootTaskRequestSchema as ap, EnsureIssueRootTaskResponseSchema as ar, EventAckSchema as at, EventSchemaMap as ax, FRAMEWORK_TYPES as ay, ShutdownMachineSchema as b$, MachineRtcResponseSchema as b1, MergePullRequestEventSchema as b4, MergeRequestEventSchema as b6, MissingAgentFileError as b7, PermissionResponseRequestSchema as b9, RpcCallEventSchema as bA, RpcResponseSchema as bC, RtcIceServerSchema as bE, RtcIceServersRequestSchema as bG, RtcIceServersResponseSchema as bI, RtcSignalSchema as bK, SendTaskMessageRequestSchema as bN, SendTaskMessageResponseSchema as bP, SeqSyncRequestEventDataSchema as bR, SeqSyncResponseEventDataSchema as bT, ShowModalEventDataSchema as bV, ShowModalRequestSchema as bX, ShowModalResponseSchema as bZ, PermissionResponseResponseSchema as bb, PreviewMetadataSchema as bd, PreviewMethodSchema as bf, PreviewProjectTypeSchema as bh, ProjectDirectoryResponseSchema as bj, ProjectEntrySchema as bl, QueryEventsRequestSchema as bn, RecentTaskSummarySchema as bq, ResetTaskSessionSchema as bt, ResumeTaskRequestSchema as bw, ResumeTaskResponseSchema as by, AgentConfigValidationError as c, WorkerInitializingSchema as c$, StartTaskRequestSchema as c1, StartTaskResponseSchema as c3, StopTaskRequestSchema as c6, StopTaskResponseSchema as c8, StopTaskSchema as c9, TaskStateChangeEventSchema as cC, TaskStoppedEventSchema as cE, TaskTodoSchema as cG, UnarchiveTaskRequestSchema as cI, UnarchiveTaskResponseSchema as cK, UpdateAgentInfoEventSchema as cM, UpdateTaskAgentSessionIdEventSchema as cO, UpdateTaskTitleRequestSchema as cQ, UpdateTaskTitleResponseSchema as cS, WorkerAliveEventSchema as cV, WorkerExitSchema as cX, WorkerInitializedSchema as cZ, SubTaskResultUpdatedEventSchema as cc, SubTaskSummarySchema as ce, SystemMessageSchema as cg, TaskAgentInfoSchema as cj, TaskArtifactsStatsSchema as cl, TaskArtifactsSummarySchema as cn, TaskInfoUpdateEventDataSchema as cq, TaskItemSchema as cs, TaskMessageSchema as cv, TaskSlashCommandSchema as cx, TaskSlashCommandsUpdateEventDataSchema as cz, WorkerPermissionModeSchema as d1, WorkerPermissionModeValueSchema as d3, WorkerReadySchema as d5, WorkerRunningSchema as d7, WorkerStatusRequestSchema as d9, resumeTaskSchema as dA, setAgentContext as dB, startTaskSchema as dC, stopTaskRequestSchema as dD, workerTaskEvents as dE, WorkerStatusSnapshotSchema as db, WorkerStatusValueSchema as dd, WorkspaceFileRequestSchema as dg, WorkspaceFileResponseSchema as di, baseTaskSchema as dj, cancelTaskRequestSchema as dk, cancelTaskSchema as dl, createEventId as dm, createMergeRequestSchema as dn, createTaskSchema as dp, getAgentContext as dq, isAskUserMessage as dr, isAskUserResponseMessage as ds, isCompanionHeartbeatMessage as dt, isCompanionReminderMessage as du, isSDKMessage as dv, isSDKUserMessage as dw, isSubTaskAskUserMessage as dx, permissionResponseRequestSchema as dy, resumeTaskRequestSchema as dz, AgentError as e, AgentLoadError as f, AgentMetadataSchema as h, AgentNotFoundError as i, ApiServerAliveEventSchema as l, AppAliveEventSchema as n, ApprovePrRequestSchema as p, ApprovePrResponseSchema as r, ArchiveTaskRequestSchema as t, ArchiveTaskResponseSchema as v, AskUserMessageSchema as x, AskUserOptionSchema as z };
|
|
2861
|
+
export type { ActiveAgent as A, AskUserQuestion as B, AskUserResponseMessage as D, AskUserResponseReason as F, AskUserResponseStatus as H, AssociateRepoEventData as J, CancelTaskEventData as L, CancelTaskRequest as M, CancelTaskResponse as O, PreviewMetadata as P, ChangeTaskTitleEventData as R, ChatWorkersStatusRequestEventData as T, ChatWorkersStatusResponseEventData as V, ClaudeAgentConfig as X, CompanionHeartbeatMessage as Z, CompanionHeartbeatRequestData as _, CompanionHeartbeatResponseData as a0, CompanionReminderMessage as a2, CreateMergeRequestRequest as a3, CreateMergeRequestResponse as a4, CreateTaskEventData as a7, CreateTaskShareRequest as a8, CreateTaskShareResponse as a9, FillEventsResponse as aB, FindTaskByAgentRequest as aC, FindTaskByAgentResponse as aE, FrameworkType as aH, GetTaskSessionResponse as aI, HookFactory as aK, ListRecentTasksRequest as aL, ListRecentTasksResponse as aN, ListSubTasksRequest as aP, ListSubTasksResponse as aR, ListTasksRequest as aT, ListTasksResponse as aV, LoadAgentOptions as aX, MachineAliveEventData as aY, MachineRtcRequestEventData as a_, CreditExhaustedEventData as ac, DaemonGitlabOperation as ae, DaemonGitlabRequestEventData as ag, DaemonGitlabResponseEventData as ai, DeployAgentCompleteEventData as ak, DeployAgentEventData as am, EnsureIssueRootTaskRequest as ao, EnsureIssueRootTaskResponse as aq, EventAckData as as, EventData as au, EventMap as av, EventName as aw, FillEventsRequest as az, AgentConfig as b, MachineRtcResponseEventData as b0, MergePullRequestAck as b2, MergePullRequestEventData as b3, MergeRequestEventData as b5, PermissionResponseRequest as b8, RpcResponseData as bB, RtcIceServer as bD, RtcIceServersRequestEventData as bF, RtcIceServersResponseEventData as bH, RtcSignalEventData as bJ, SendMessageTarget as bL, SendTaskMessageRequest as bM, SendTaskMessageResponse as bO, SeqSyncRequestEventData as bQ, SeqSyncResponseEventData as bS, ShowModalEventData as bU, ShowModalRequest as bW, ShowModalResponse as bY, ShutdownMachineData as b_, PermissionResponseResponse as ba, PrStateChangedData as bc, PreviewMethod as be, PreviewProjectType as bg, ProjectDirectoryResponse as bi, ProjectEntry as bk, QueryEventsRequest as bm, QueryEventsResponse as bo, RecentTaskSummary as bp, RepositoryInitHookInput as br, ResetTaskSessionEventData as bs, ResumeTaskEventData as bu, ResumeTaskRequest as bv, ResumeTaskResponse as bx, RpcCallEventData as bz, StartTaskRequest as c0, StartTaskResponse as c2, StopTaskEventData as c4, StopTaskRequest as c5, StopTaskResponse as c7, TaskState as cA, TaskStateChangeEventData as cB, TaskStoppedEventData as cD, TaskTodo as cF, UnarchiveTaskRequest as cH, UnarchiveTaskResponse as cJ, UpdateAgentInfoEventData as cL, UpdateTaskAgentSessionIdEventData as cN, UpdateTaskTitleRequest as cP, UpdateTaskTitleResponse as cR, ValidationResult as cT, WorkerAliveEventData as cU, WorkerExitEventData as cW, WorkerInitializedEventData as cY, WorkerInitializingEventData as c_, SubTaskAskUserMessage as ca, SubTaskResultUpdatedEventData as cb, SubTaskSummary as cd, SystemMessageEventData as cf, SystemMessageType as ch, TaskAgentInfo as ci, TaskArtifactsStats as ck, TaskArtifactsSummary as cm, TaskEvent as co, TaskInfoUpdateEventData as cp, TaskItem as cr, TaskMessageEventData as ct, TaskMessagePayload as cu, TaskSlashCommand as cw, TaskSlashCommandsUpdateEventData as cy, AgentContext as d, WorkerPermissionModeEventData as d0, WorkerPermissionModeValue as d2, WorkerReadyEventData as d4, WorkerRunningEventData as d6, WorkerStatusRequestEventData as d8, WorkerStatusSnapshot as da, WorkerStatusValue as dc, WorkerTaskEvent as de, WorkspaceFileRequestEventData as df, WorkspaceFileResponseEventData as dh, AgentMetadata as g, AgentrixContext as j, ApiServerAliveEventData as k, AppAliveEventData as m, ApprovePrRequest as o, ApprovePrResponse as q, ArchiveTaskRequest as s, ArchiveTaskResponse as u, AskUserMessage as w, AskUserOption as y };
|
package/dist/index.cjs
CHANGED
|
@@ -251,8 +251,12 @@ const StartTaskRequestSchema = zod.z.object({
|
|
|
251
251
|
todos: zod.z.array(TaskTodoSchema).optional(),
|
|
252
252
|
// Structured todos for group tasks
|
|
253
253
|
// Independent task mode (agent-initiated, no parent binding)
|
|
254
|
-
autoNavigate: zod.z.boolean().optional()
|
|
254
|
+
autoNavigate: zod.z.boolean().optional(),
|
|
255
255
|
// Auto-navigate App UI to this task after creation
|
|
256
|
+
issueNumber: zod.z.number().int().positive().optional(),
|
|
257
|
+
// Link task to a git issue on creation
|
|
258
|
+
branchName: zod.z.string().optional()
|
|
259
|
+
// Explicit branch name override (e.g. issue/42/code)
|
|
256
260
|
}).refine((data) => data.machineId || data.cloudId || data.parentTaskId || data.sourceTaskId, {
|
|
257
261
|
message: "Must provide either machineId, cloudId, parentTaskId, or sourceTaskId"
|
|
258
262
|
}).refine(
|
|
@@ -288,9 +292,18 @@ const StartTaskResponseSchema = zod.z.object({
|
|
|
288
292
|
customTitle: zod.z.string().nullable(),
|
|
289
293
|
userCwd: zod.z.string().nullable(),
|
|
290
294
|
forceUserCwd: zod.z.boolean().nullable(),
|
|
295
|
+
issueNumber: zod.z.number().nullable().optional(),
|
|
291
296
|
createdAt: DateSchema,
|
|
292
297
|
updatedAt: DateSchema
|
|
293
298
|
});
|
|
299
|
+
const EnsureIssueRootTaskRequestSchema = zod.z.object({
|
|
300
|
+
chatId: zod.z.string(),
|
|
301
|
+
repositoryId: zod.z.string(),
|
|
302
|
+
issueNumber: zod.z.number().int().positive(),
|
|
303
|
+
customTitle: zod.z.string().min(1).max(200).optional(),
|
|
304
|
+
branchName: zod.z.string().optional()
|
|
305
|
+
// Explicit branch name override; defaults to issue/<issueNumber>/root
|
|
306
|
+
});
|
|
294
307
|
const TaskItemSchema = zod.z.object({
|
|
295
308
|
id: IdSchema,
|
|
296
309
|
type: zod.z.enum(["chat", "work", "shadow"]).default("work"),
|
|
@@ -305,6 +318,8 @@ const TaskItemSchema = zod.z.object({
|
|
|
305
318
|
cloudId: zod.z.string().nullable(),
|
|
306
319
|
repositoryId: zod.z.string().nullable(),
|
|
307
320
|
baseBranch: zod.z.string().nullable(),
|
|
321
|
+
branchName: zod.z.string().nullable(),
|
|
322
|
+
// Explicit branch name override (e.g. issue/42/code)
|
|
308
323
|
title: zod.z.string().nullable(),
|
|
309
324
|
// Task title (can be set by worker)
|
|
310
325
|
customTitle: zod.z.string().nullable(),
|
|
@@ -326,6 +341,8 @@ const TaskItemSchema = zod.z.object({
|
|
|
326
341
|
// PR state
|
|
327
342
|
pullRequestStateChangedAt: zod.z.string().nullable(),
|
|
328
343
|
// ISO 8601 string
|
|
344
|
+
issueNumber: zod.z.number().nullable(),
|
|
345
|
+
// Linked issue number (GitLab IID or GitHub issue number)
|
|
329
346
|
gitStats: zod.z.object({
|
|
330
347
|
totalInsertions: zod.z.number(),
|
|
331
348
|
totalDeletions: zod.z.number(),
|
|
@@ -347,6 +364,9 @@ const TaskItemSchema = zod.z.object({
|
|
|
347
364
|
updatedAt: zod.z.string()
|
|
348
365
|
// ISO 8601 string
|
|
349
366
|
});
|
|
367
|
+
const EnsureIssueRootTaskResponseSchema = zod.z.object({
|
|
368
|
+
task: TaskItemSchema
|
|
369
|
+
});
|
|
350
370
|
const ListTasksRequestSchema = zod.z.object({
|
|
351
371
|
chatId: zod.z.string(),
|
|
352
372
|
archived: zod.z.preprocess(
|
|
@@ -597,15 +617,11 @@ const ChatSchema = zod.z.object({
|
|
|
597
617
|
// Group: userId of owner; Direct: "memberCode1:memberCode2" (sorted)
|
|
598
618
|
type: ChatTypeSchema,
|
|
599
619
|
title: zod.z.string().nullable().optional(),
|
|
620
|
+
bindRepoId: zod.z.string().nullable().optional(),
|
|
600
621
|
createdAt: zod.z.string(),
|
|
601
622
|
// ISO 8601 string
|
|
602
|
-
updatedAt: zod.z.string()
|
|
623
|
+
updatedAt: zod.z.string()
|
|
603
624
|
// ISO 8601 string
|
|
604
|
-
// Default context for creating sub-tasks
|
|
605
|
-
defaultMachineId: zod.z.string().nullable().optional(),
|
|
606
|
-
defaultCloudId: zod.z.string().nullable().optional(),
|
|
607
|
-
defaultRepositoryId: zod.z.string().nullable().optional(),
|
|
608
|
-
defaultBaseBranch: zod.z.string().nullable().optional()
|
|
609
625
|
});
|
|
610
626
|
const ChatWithMembersSchema = ChatSchema.extend({
|
|
611
627
|
members: zod.z.array(ChatMemberSchema)
|
|
@@ -620,7 +636,8 @@ const CreateChatRequestSchema = zod.z.object({
|
|
|
620
636
|
members: zod.z.array(ChatMemberInputSchema),
|
|
621
637
|
// Encryption keys for companion chat tasks (generated by App, stored on virtual task)
|
|
622
638
|
dataEncryptionKey: zod.z.string().optional(),
|
|
623
|
-
ownerEncryptedDataKey: zod.z.string().optional()
|
|
639
|
+
ownerEncryptedDataKey: zod.z.string().optional(),
|
|
640
|
+
title: zod.z.string().optional()
|
|
624
641
|
});
|
|
625
642
|
const CreateChatResponseSchema = ChatWithMembersSchema;
|
|
626
643
|
const ListChatsQuerySchema = zod.z.object({
|
|
@@ -650,13 +667,10 @@ const RemoveChatMemberRequestSchema = zod.z.object({
|
|
|
650
667
|
const ListChatTasksResponseSchema = zod.z.object({
|
|
651
668
|
tasks: zod.z.array(TaskItemSchema)
|
|
652
669
|
});
|
|
653
|
-
const
|
|
654
|
-
|
|
655
|
-
defaultCloudId: zod.z.string().nullable().optional(),
|
|
656
|
-
defaultRepositoryId: zod.z.string().nullable().optional(),
|
|
657
|
-
defaultBaseBranch: zod.z.string().nullable().optional()
|
|
670
|
+
const EnsureRepoChatRequestSchema = zod.z.object({
|
|
671
|
+
repositoryId: zod.z.string().min(1)
|
|
658
672
|
});
|
|
659
|
-
const
|
|
673
|
+
const EnsureRepoChatResponseSchema = ChatWithMembersSchema;
|
|
660
674
|
|
|
661
675
|
const AgentTypeSchema = zod.z.enum(["claude", "codex", "companion"]);
|
|
662
676
|
const DisplayConfigKeysSchema = zod.z.object({
|
|
@@ -730,11 +744,13 @@ const CreateAgentRequestSchema = zod.z.object({
|
|
|
730
744
|
guildMsg: zod.z.string().default("what can I do for you today?"),
|
|
731
745
|
placeholderMsg: zod.z.string().default("Ask me anything..."),
|
|
732
746
|
gitRepoId: zod.z.string().optional(),
|
|
733
|
-
repoSubDir: zod.z.string().optional(),
|
|
747
|
+
repoSubDir: zod.z.string().nullable().optional(),
|
|
734
748
|
supportLocal: zod.z.boolean().default(false),
|
|
735
749
|
config: AgentCustomConfigSchema.nullable().optional(),
|
|
736
|
-
isSystem: zod.z.boolean().optional()
|
|
750
|
+
isSystem: zod.z.boolean().optional(),
|
|
737
751
|
// If true, userId will be set to 'system' (admin only)
|
|
752
|
+
isTemplate: zod.z.boolean().optional()
|
|
753
|
+
// If true, userId will be set to 'agentrix' (admin only)
|
|
738
754
|
});
|
|
739
755
|
const CreateAgentResponseSchema = AgentSchema;
|
|
740
756
|
const UpdateAgentRequestSchema = zod.z.object({
|
|
@@ -747,7 +763,7 @@ const UpdateAgentRequestSchema = zod.z.object({
|
|
|
747
763
|
guildMsg: zod.z.string().optional(),
|
|
748
764
|
placeholderMsg: zod.z.string().optional(),
|
|
749
765
|
gitRepoId: zod.z.string().nullable().optional(),
|
|
750
|
-
repoSubDir: zod.z.string().optional(),
|
|
766
|
+
repoSubDir: zod.z.string().nullable().optional(),
|
|
751
767
|
supportLocal: zod.z.boolean().optional(),
|
|
752
768
|
config: AgentCustomConfigSchema.nullable().optional()
|
|
753
769
|
});
|
|
@@ -1021,7 +1037,10 @@ const GitHubIssueSchema = zod.z.object({
|
|
|
1021
1037
|
number: zod.z.number(),
|
|
1022
1038
|
title: zod.z.string(),
|
|
1023
1039
|
body: zod.z.string().nullable(),
|
|
1024
|
-
html_url: zod.z.string().url()
|
|
1040
|
+
html_url: zod.z.string().url(),
|
|
1041
|
+
author: zod.z.string().optional(),
|
|
1042
|
+
authorIdentity: zod.z.lazy(() => RepositoryActorIdentitySchema).optional(),
|
|
1043
|
+
assigneeIdentities: zod.z.array(zod.z.lazy(() => RepositoryActorIdentitySchema)).optional()
|
|
1025
1044
|
});
|
|
1026
1045
|
const ListIssuesQuerySchema = zod.z.object({
|
|
1027
1046
|
q: zod.z.string().optional()
|
|
@@ -1038,15 +1057,48 @@ const RepositoryReferenceListItemSchema = zod.z.object({
|
|
|
1038
1057
|
title: zod.z.string(),
|
|
1039
1058
|
html_url: zod.z.string().url()
|
|
1040
1059
|
});
|
|
1060
|
+
const RepositoryActorIdentitySchema = zod.z.object({
|
|
1061
|
+
providerUserId: zod.z.string().optional(),
|
|
1062
|
+
username: zod.z.string().optional(),
|
|
1063
|
+
displayName: zod.z.string().nullable().optional(),
|
|
1064
|
+
email: zod.z.string().nullable().optional(),
|
|
1065
|
+
avatarUrl: zod.z.string().nullable().optional(),
|
|
1066
|
+
platformUser: zod.z.object({
|
|
1067
|
+
id: IdSchema,
|
|
1068
|
+
username: zod.z.string(),
|
|
1069
|
+
avatar: zod.z.string().nullable()
|
|
1070
|
+
}).nullable().optional()
|
|
1071
|
+
});
|
|
1041
1072
|
const RepositoryReferenceSchema = zod.z.object({
|
|
1042
1073
|
kind: RepositoryReferenceKindSchema,
|
|
1043
1074
|
number: zod.z.number(),
|
|
1044
1075
|
title: zod.z.string(),
|
|
1045
1076
|
body: zod.z.string().nullable(),
|
|
1046
1077
|
html_url: zod.z.string().url(),
|
|
1078
|
+
state: zod.z.enum(["open", "closed", "merged"]).optional(),
|
|
1079
|
+
author: zod.z.string().optional(),
|
|
1080
|
+
authorIdentity: RepositoryActorIdentitySchema.optional(),
|
|
1081
|
+
reviewers: zod.z.array(zod.z.string()).optional(),
|
|
1082
|
+
reviewerIdentities: zod.z.array(RepositoryActorIdentitySchema).optional(),
|
|
1083
|
+
assigneeIdentities: zod.z.array(RepositoryActorIdentitySchema).optional(),
|
|
1047
1084
|
head_branch: zod.z.string().optional(),
|
|
1048
1085
|
base_branch: zod.z.string().optional()
|
|
1049
1086
|
});
|
|
1087
|
+
const RepositoryReferenceDiffSchema = zod.z.object({
|
|
1088
|
+
diff: zod.z.string()
|
|
1089
|
+
});
|
|
1090
|
+
const RepositoryReferenceCommentSchema = zod.z.object({
|
|
1091
|
+
id: zod.z.string(),
|
|
1092
|
+
body: zod.z.string(),
|
|
1093
|
+
author: zod.z.string(),
|
|
1094
|
+
authorIdentity: RepositoryActorIdentitySchema.optional(),
|
|
1095
|
+
html_url: zod.z.string().url().nullable(),
|
|
1096
|
+
created_at: DateSchema,
|
|
1097
|
+
updated_at: DateSchema
|
|
1098
|
+
});
|
|
1099
|
+
const RepositoryReferenceCommentsResponseSchema = zod.z.object({
|
|
1100
|
+
comments: zod.z.array(RepositoryReferenceCommentSchema)
|
|
1101
|
+
});
|
|
1050
1102
|
const ListReferencesQuerySchema = zod.z.object({
|
|
1051
1103
|
q: zod.z.string().optional()
|
|
1052
1104
|
});
|
|
@@ -1830,6 +1882,8 @@ const baseTaskSchema = EventBaseSchema.extend({
|
|
|
1830
1882
|
// Absolute path to agent directory (only for draft agents)
|
|
1831
1883
|
gitUrl: zod.z.string().optional(),
|
|
1832
1884
|
baseBranch: zod.z.string().optional(),
|
|
1885
|
+
branchName: zod.z.string().optional(),
|
|
1886
|
+
// Explicit branch name override; when set, CLI uses this instead of auto-generated agentrix/<taskId>
|
|
1833
1887
|
cwd: zod.z.string().optional(),
|
|
1834
1888
|
// Current working directory for the task, only used under 'local' mode
|
|
1835
1889
|
userCwd: zod.z.string().optional(),
|
|
@@ -2956,6 +3010,10 @@ exports.DisplayConfigSchema = DisplayConfigSchema;
|
|
|
2956
3010
|
exports.DraftAgentConfigSchema = DraftAgentConfigSchema;
|
|
2957
3011
|
exports.DraftAgentSchema = DraftAgentSchema;
|
|
2958
3012
|
exports.ENTRY_FILE_PATTERNS = ENTRY_FILE_PATTERNS;
|
|
3013
|
+
exports.EnsureIssueRootTaskRequestSchema = EnsureIssueRootTaskRequestSchema;
|
|
3014
|
+
exports.EnsureIssueRootTaskResponseSchema = EnsureIssueRootTaskResponseSchema;
|
|
3015
|
+
exports.EnsureRepoChatRequestSchema = EnsureRepoChatRequestSchema;
|
|
3016
|
+
exports.EnsureRepoChatResponseSchema = EnsureRepoChatResponseSchema;
|
|
2959
3017
|
exports.EnvironmentVariableSchema = EnvironmentVariableSchema;
|
|
2960
3018
|
exports.EventAckSchema = EventAckSchema;
|
|
2961
3019
|
exports.EventSchemaMap = EventSchemaMap;
|
|
@@ -3059,6 +3117,10 @@ exports.RechargeResponseSchema = RechargeResponseSchema;
|
|
|
3059
3117
|
exports.RegisterCompanionRequestSchema = RegisterCompanionRequestSchema;
|
|
3060
3118
|
exports.RegisterCompanionResponseSchema = RegisterCompanionResponseSchema;
|
|
3061
3119
|
exports.RemoveChatMemberRequestSchema = RemoveChatMemberRequestSchema;
|
|
3120
|
+
exports.RepositoryActorIdentitySchema = RepositoryActorIdentitySchema;
|
|
3121
|
+
exports.RepositoryReferenceCommentSchema = RepositoryReferenceCommentSchema;
|
|
3122
|
+
exports.RepositoryReferenceCommentsResponseSchema = RepositoryReferenceCommentsResponseSchema;
|
|
3123
|
+
exports.RepositoryReferenceDiffSchema = RepositoryReferenceDiffSchema;
|
|
3062
3124
|
exports.RepositoryReferenceKindSchema = RepositoryReferenceKindSchema;
|
|
3063
3125
|
exports.RepositoryReferenceListItemSchema = RepositoryReferenceListItemSchema;
|
|
3064
3126
|
exports.RepositoryReferenceSchema = RepositoryReferenceSchema;
|
|
@@ -3127,8 +3189,6 @@ exports.UnarchiveTaskResponseSchema = UnarchiveTaskResponseSchema;
|
|
|
3127
3189
|
exports.UpdateAgentInfoEventSchema = UpdateAgentInfoEventSchema;
|
|
3128
3190
|
exports.UpdateAgentRequestSchema = UpdateAgentRequestSchema;
|
|
3129
3191
|
exports.UpdateAgentResponseSchema = UpdateAgentResponseSchema;
|
|
3130
|
-
exports.UpdateChatContextRequestSchema = UpdateChatContextRequestSchema;
|
|
3131
|
-
exports.UpdateChatContextResponseSchema = UpdateChatContextResponseSchema;
|
|
3132
3192
|
exports.UpdateDraftAgentRequestSchema = UpdateDraftAgentRequestSchema;
|
|
3133
3193
|
exports.UpdateDraftAgentResponseSchema = UpdateDraftAgentResponseSchema;
|
|
3134
3194
|
exports.UpdateOAuthServerRequestSchema = UpdateOAuthServerRequestSchema;
|
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
|
|
2
|
+
import { P as PreviewMetadata } from './errors-BjRlOFVZ.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 EnsureIssueRootTaskRequest, ap as EnsureIssueRootTaskRequestSchema, aq as EnsureIssueRootTaskResponse, ar as EnsureIssueRootTaskResponseSchema, as as EventAckData, at as EventAckSchema, au as EventData, av as EventMap, aw as EventName, ax as EventSchemaMap, ay as FRAMEWORK_TYPES, az as FillEventsRequest, aA as FillEventsRequestSchema, aB as FillEventsResponse, aC as FindTaskByAgentRequest, aD as FindTaskByAgentRequestSchema, aE as FindTaskByAgentResponse, aF as FindTaskByAgentResponseSchema, aG as FrameworkNotSupportedError, aH as FrameworkType, aI as GetTaskSessionResponse, aJ as GetTaskSessionResponseSchema, aK as HookFactory, aL as ListRecentTasksRequest, aM as ListRecentTasksRequestSchema, aN as ListRecentTasksResponse, aO as ListRecentTasksResponseSchema, aP as ListSubTasksRequest, aQ as ListSubTasksRequestSchema, aR as ListSubTasksResponse, aS as ListSubTasksResponseSchema, aT as ListTasksRequest, aU as ListTasksRequestSchema, aV as ListTasksResponse, aW as ListTasksResponseSchema, aX as LoadAgentOptions, aY as MachineAliveEventData, aZ as MachineAliveEventSchema, a_ as MachineRtcRequestEventData, a$ as MachineRtcRequestSchema, b0 as MachineRtcResponseEventData, b1 as MachineRtcResponseSchema, b2 as MergePullRequestAck, b3 as MergePullRequestEventData, b4 as MergePullRequestEventSchema, b5 as MergeRequestEventData, b6 as MergeRequestEventSchema, b7 as MissingAgentFileError, b8 as PermissionResponseRequest, b9 as PermissionResponseRequestSchema, ba as PermissionResponseResponse, bb as PermissionResponseResponseSchema, bc as PrStateChangedData, bd as PreviewMetadataSchema, be as PreviewMethod, bf as PreviewMethodSchema, bg as PreviewProjectType, bh as PreviewProjectTypeSchema, bi as ProjectDirectoryResponse, bj as ProjectDirectoryResponseSchema, bk as ProjectEntry, bl as ProjectEntrySchema, bm as QueryEventsRequest, bn as QueryEventsRequestSchema, bo as QueryEventsResponse, bp as RecentTaskSummary, bq as RecentTaskSummarySchema, br as RepositoryInitHookInput, bs as ResetTaskSessionEventData, bt as ResetTaskSessionSchema, bu as ResumeTaskEventData, bv as ResumeTaskRequest, bw as ResumeTaskRequestSchema, bx as ResumeTaskResponse, by as ResumeTaskResponseSchema, bz as RpcCallEventData, bA as RpcCallEventSchema, bB as RpcResponseData, bC as RpcResponseSchema, bD as RtcIceServer, bE as RtcIceServerSchema, bF as RtcIceServersRequestEventData, bG as RtcIceServersRequestSchema, bH as RtcIceServersResponseEventData, bI as RtcIceServersResponseSchema, bJ as RtcSignalEventData, bK as RtcSignalSchema, bL as SendMessageTarget, bM as SendTaskMessageRequest, bN as SendTaskMessageRequestSchema, bO as SendTaskMessageResponse, bP as SendTaskMessageResponseSchema, bQ as SeqSyncRequestEventData, bR as SeqSyncRequestEventDataSchema, bS as SeqSyncResponseEventData, bT as SeqSyncResponseEventDataSchema, bU as ShowModalEventData, bV as ShowModalEventDataSchema, bW as ShowModalRequest, bX as ShowModalRequestSchema, bY as ShowModalResponse, bZ as ShowModalResponseSchema, b_ as ShutdownMachineData, b$ as ShutdownMachineSchema, c0 as StartTaskRequest, c1 as StartTaskRequestSchema, c2 as StartTaskResponse, c3 as StartTaskResponseSchema, c4 as StopTaskEventData, c5 as StopTaskRequest, c6 as StopTaskRequestSchema, c7 as StopTaskResponse, c8 as StopTaskResponseSchema, c9 as StopTaskSchema, ca as SubTaskAskUserMessage, cb as SubTaskResultUpdatedEventData, cc as SubTaskResultUpdatedEventSchema, cd as SubTaskSummary, ce as SubTaskSummarySchema, cf as SystemMessageEventData, cg as SystemMessageSchema, ch as SystemMessageType, ci as TaskAgentInfo, cj as TaskAgentInfoSchema, ck as TaskArtifactsStats, cl as TaskArtifactsStatsSchema, cm as TaskArtifactsSummary, cn as TaskArtifactsSummarySchema, co as TaskEvent, cp as TaskInfoUpdateEventData, cq as TaskInfoUpdateEventDataSchema, cr as TaskItem, cs as TaskItemSchema, ct as TaskMessageEventData, cu as TaskMessagePayload, cv as TaskMessageSchema, cw as TaskSlashCommand, cx as TaskSlashCommandSchema, cy as TaskSlashCommandsUpdateEventData, cz as TaskSlashCommandsUpdateEventDataSchema, cA as TaskState, cB as TaskStateChangeEventData, cC as TaskStateChangeEventSchema, cD as TaskStoppedEventData, cE as TaskStoppedEventSchema, cF as TaskTodo, cG as TaskTodoSchema, cH as UnarchiveTaskRequest, cI as UnarchiveTaskRequestSchema, cJ as UnarchiveTaskResponse, cK as UnarchiveTaskResponseSchema, cL as UpdateAgentInfoEventData, cM as UpdateAgentInfoEventSchema, cN as UpdateTaskAgentSessionIdEventData, cO as UpdateTaskAgentSessionIdEventSchema, cP as UpdateTaskTitleRequest, cQ as UpdateTaskTitleRequestSchema, cR as UpdateTaskTitleResponse, cS as UpdateTaskTitleResponseSchema, cT as ValidationResult, cU as WorkerAliveEventData, cV as WorkerAliveEventSchema, cW as WorkerExitEventData, cX as WorkerExitSchema, cY as WorkerInitializedEventData, cZ as WorkerInitializedSchema, c_ as WorkerInitializingEventData, c$ as WorkerInitializingSchema, d0 as WorkerPermissionModeEventData, d1 as WorkerPermissionModeSchema, d2 as WorkerPermissionModeValue, d3 as WorkerPermissionModeValueSchema, d4 as WorkerReadyEventData, d5 as WorkerReadySchema, d6 as WorkerRunningEventData, d7 as WorkerRunningSchema, d8 as WorkerStatusRequestEventData, d9 as WorkerStatusRequestSchema, da as WorkerStatusSnapshot, db as WorkerStatusSnapshotSchema, dc as WorkerStatusValue, dd as WorkerStatusValueSchema, de as WorkerTaskEvent, df as WorkspaceFileRequestEventData, dg as WorkspaceFileRequestSchema, dh as WorkspaceFileResponseEventData, di as WorkspaceFileResponseSchema, dj as baseTaskSchema, dk as cancelTaskRequestSchema, dl as cancelTaskSchema, dm as createEventId, dn as createMergeRequestSchema, dp as createTaskSchema, dq as getAgentContext, dr as isAskUserMessage, ds as isAskUserResponseMessage, dt as isCompanionHeartbeatMessage, du as isCompanionReminderMessage, dv as isSDKMessage, dw as isSDKUserMessage, dx as isSubTaskAskUserMessage, dy as permissionResponseRequestSchema, dz as resumeTaskRequestSchema, dA as resumeTaskSchema, dB as setAgentContext, dC as startTaskSchema, dD as stopTaskRequestSchema, dE as workerTaskEvents } from './errors-BjRlOFVZ.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
|
-
human: "human";
|
|
59
58
|
system: "system";
|
|
59
|
+
human: "human";
|
|
60
60
|
agent: "agent";
|
|
61
61
|
}>;
|
|
62
62
|
type SenderType = z.infer<typeof SenderTypeSchema>;
|
|
@@ -464,12 +464,9 @@ declare const ChatSchema: z.ZodObject<{
|
|
|
464
464
|
group: "group";
|
|
465
465
|
}>;
|
|
466
466
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
467
|
+
bindRepoId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
467
468
|
createdAt: z.ZodString;
|
|
468
469
|
updatedAt: z.ZodString;
|
|
469
|
-
defaultMachineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
470
|
-
defaultCloudId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
471
|
-
defaultRepositoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
472
|
-
defaultBaseBranch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
473
470
|
}, z.core.$strip>;
|
|
474
471
|
type Chat = z.infer<typeof ChatSchema>;
|
|
475
472
|
/**
|
|
@@ -483,12 +480,9 @@ declare const ChatWithMembersSchema: z.ZodObject<{
|
|
|
483
480
|
group: "group";
|
|
484
481
|
}>;
|
|
485
482
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
483
|
+
bindRepoId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
486
484
|
createdAt: z.ZodString;
|
|
487
485
|
updatedAt: z.ZodString;
|
|
488
|
-
defaultMachineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
489
|
-
defaultCloudId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
490
|
-
defaultRepositoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
491
|
-
defaultBaseBranch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
492
486
|
members: z.ZodArray<z.ZodObject<{
|
|
493
487
|
id: z.ZodString;
|
|
494
488
|
chatId: z.ZodString;
|
|
@@ -531,6 +525,7 @@ declare const CreateChatRequestSchema: z.ZodObject<{
|
|
|
531
525
|
}, z.core.$strip>>;
|
|
532
526
|
dataEncryptionKey: z.ZodOptional<z.ZodString>;
|
|
533
527
|
ownerEncryptedDataKey: z.ZodOptional<z.ZodString>;
|
|
528
|
+
title: z.ZodOptional<z.ZodString>;
|
|
534
529
|
}, z.core.$strip>;
|
|
535
530
|
type CreateChatRequest = z.infer<typeof CreateChatRequestSchema>;
|
|
536
531
|
/**
|
|
@@ -544,12 +539,9 @@ declare const CreateChatResponseSchema: z.ZodObject<{
|
|
|
544
539
|
group: "group";
|
|
545
540
|
}>;
|
|
546
541
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
542
|
+
bindRepoId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
547
543
|
createdAt: z.ZodString;
|
|
548
544
|
updatedAt: z.ZodString;
|
|
549
|
-
defaultMachineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
550
|
-
defaultCloudId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
551
|
-
defaultRepositoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
552
|
-
defaultBaseBranch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
553
545
|
members: z.ZodArray<z.ZodObject<{
|
|
554
546
|
id: z.ZodString;
|
|
555
547
|
chatId: z.ZodString;
|
|
@@ -585,12 +577,9 @@ declare const ListChatsResponseSchema: z.ZodObject<{
|
|
|
585
577
|
group: "group";
|
|
586
578
|
}>;
|
|
587
579
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
580
|
+
bindRepoId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
588
581
|
createdAt: z.ZodString;
|
|
589
582
|
updatedAt: z.ZodString;
|
|
590
|
-
defaultMachineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
591
|
-
defaultCloudId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
592
|
-
defaultRepositoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
593
|
-
defaultBaseBranch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
594
583
|
members: z.ZodArray<z.ZodObject<{
|
|
595
584
|
id: z.ZodString;
|
|
596
585
|
chatId: z.ZodString;
|
|
@@ -618,12 +607,9 @@ declare const GetChatResponseSchema: z.ZodObject<{
|
|
|
618
607
|
group: "group";
|
|
619
608
|
}>;
|
|
620
609
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
610
|
+
bindRepoId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
621
611
|
createdAt: z.ZodString;
|
|
622
612
|
updatedAt: z.ZodString;
|
|
623
|
-
defaultMachineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
624
|
-
defaultCloudId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
625
|
-
defaultRepositoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
626
|
-
defaultBaseBranch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
627
613
|
members: z.ZodArray<z.ZodObject<{
|
|
628
614
|
id: z.ZodString;
|
|
629
615
|
chatId: z.ZodString;
|
|
@@ -729,6 +715,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
729
715
|
cloudId: z.ZodNullable<z.ZodString>;
|
|
730
716
|
repositoryId: z.ZodNullable<z.ZodString>;
|
|
731
717
|
baseBranch: z.ZodNullable<z.ZodString>;
|
|
718
|
+
branchName: z.ZodNullable<z.ZodString>;
|
|
732
719
|
title: z.ZodNullable<z.ZodString>;
|
|
733
720
|
customTitle: z.ZodNullable<z.ZodString>;
|
|
734
721
|
agentSessionId: z.ZodNullable<z.ZodString>;
|
|
@@ -750,6 +737,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
750
737
|
merged: "merged";
|
|
751
738
|
}>>;
|
|
752
739
|
pullRequestStateChangedAt: z.ZodNullable<z.ZodString>;
|
|
740
|
+
issueNumber: z.ZodNullable<z.ZodNumber>;
|
|
753
741
|
gitStats: z.ZodNullable<z.ZodObject<{
|
|
754
742
|
totalInsertions: z.ZodNumber;
|
|
755
743
|
totalDeletions: z.ZodNumber;
|
|
@@ -769,21 +757,11 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
769
757
|
}, z.core.$strip>>;
|
|
770
758
|
}, z.core.$strip>;
|
|
771
759
|
type ListChatTasksResponse = z.infer<typeof ListChatTasksResponseSchema>;
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
* Update default context for creating sub-tasks
|
|
775
|
-
*/
|
|
776
|
-
declare const UpdateChatContextRequestSchema: z.ZodObject<{
|
|
777
|
-
defaultMachineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
778
|
-
defaultCloudId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
779
|
-
defaultRepositoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
780
|
-
defaultBaseBranch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
760
|
+
declare const EnsureRepoChatRequestSchema: z.ZodObject<{
|
|
761
|
+
repositoryId: z.ZodString;
|
|
781
762
|
}, z.core.$strip>;
|
|
782
|
-
type
|
|
783
|
-
|
|
784
|
-
* PATCH /v1/chats/:chatId/context - Response schema
|
|
785
|
-
*/
|
|
786
|
-
declare const UpdateChatContextResponseSchema: z.ZodObject<{
|
|
763
|
+
type EnsureRepoChatRequest = z.infer<typeof EnsureRepoChatRequestSchema>;
|
|
764
|
+
declare const EnsureRepoChatResponseSchema: z.ZodObject<{
|
|
787
765
|
id: z.ZodString;
|
|
788
766
|
owner: z.ZodString;
|
|
789
767
|
type: z.ZodEnum<{
|
|
@@ -791,14 +769,23 @@ declare const UpdateChatContextResponseSchema: z.ZodObject<{
|
|
|
791
769
|
group: "group";
|
|
792
770
|
}>;
|
|
793
771
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
772
|
+
bindRepoId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
794
773
|
createdAt: z.ZodString;
|
|
795
774
|
updatedAt: z.ZodString;
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
775
|
+
members: z.ZodArray<z.ZodObject<{
|
|
776
|
+
id: z.ZodString;
|
|
777
|
+
chatId: z.ZodString;
|
|
778
|
+
memberCode: z.ZodString;
|
|
779
|
+
type: z.ZodEnum<{
|
|
780
|
+
human: "human";
|
|
781
|
+
agent: "agent";
|
|
782
|
+
}>;
|
|
783
|
+
role: z.ZodString;
|
|
784
|
+
createdAt: z.ZodString;
|
|
785
|
+
updatedAt: z.ZodString;
|
|
786
|
+
}, z.core.$strip>>;
|
|
800
787
|
}, z.core.$strip>;
|
|
801
|
-
type
|
|
788
|
+
type EnsureRepoChatResponse = z.infer<typeof EnsureRepoChatResponseSchema>;
|
|
802
789
|
|
|
803
790
|
/**
|
|
804
791
|
* Agent HTTP request/response schemas
|
|
@@ -1083,7 +1070,7 @@ declare const CreateAgentRequestSchema: z.ZodObject<{
|
|
|
1083
1070
|
guildMsg: z.ZodDefault<z.ZodString>;
|
|
1084
1071
|
placeholderMsg: z.ZodDefault<z.ZodString>;
|
|
1085
1072
|
gitRepoId: z.ZodOptional<z.ZodString>;
|
|
1086
|
-
repoSubDir: z.ZodOptional<z.ZodString
|
|
1073
|
+
repoSubDir: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1087
1074
|
supportLocal: z.ZodDefault<z.ZodBoolean>;
|
|
1088
1075
|
config: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1089
1076
|
displayConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -1109,6 +1096,7 @@ declare const CreateAgentRequestSchema: z.ZodObject<{
|
|
|
1109
1096
|
heartbeatTaskId: z.ZodOptional<z.ZodString>;
|
|
1110
1097
|
}, z.core.$strip>>>;
|
|
1111
1098
|
isSystem: z.ZodOptional<z.ZodBoolean>;
|
|
1099
|
+
isTemplate: z.ZodOptional<z.ZodBoolean>;
|
|
1112
1100
|
}, z.core.$strip>;
|
|
1113
1101
|
type CreateAgentRequest = z.infer<typeof CreateAgentRequestSchema>;
|
|
1114
1102
|
/**
|
|
@@ -1181,7 +1169,7 @@ declare const UpdateAgentRequestSchema: z.ZodObject<{
|
|
|
1181
1169
|
guildMsg: z.ZodOptional<z.ZodString>;
|
|
1182
1170
|
placeholderMsg: z.ZodOptional<z.ZodString>;
|
|
1183
1171
|
gitRepoId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1184
|
-
repoSubDir: z.ZodOptional<z.ZodString
|
|
1172
|
+
repoSubDir: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1185
1173
|
supportLocal: z.ZodOptional<z.ZodBoolean>;
|
|
1186
1174
|
config: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1187
1175
|
displayConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -1364,9 +1352,9 @@ type CreateDraftAgentRequest = z.infer<typeof CreateDraftAgentRequestSchema>;
|
|
|
1364
1352
|
*/
|
|
1365
1353
|
declare const SetEnvironmentVariablesRequestSchema: z.ZodObject<{
|
|
1366
1354
|
ownerType: z.ZodEnum<{
|
|
1355
|
+
machine: "machine";
|
|
1367
1356
|
agent: "agent";
|
|
1368
1357
|
"draft-agent": "draft-agent";
|
|
1369
|
-
machine: "machine";
|
|
1370
1358
|
cloud: "cloud";
|
|
1371
1359
|
}>;
|
|
1372
1360
|
ownerId: z.ZodString;
|
|
@@ -2055,6 +2043,31 @@ declare const GitHubIssueSchema: z.ZodObject<{
|
|
|
2055
2043
|
title: z.ZodString;
|
|
2056
2044
|
body: z.ZodNullable<z.ZodString>;
|
|
2057
2045
|
html_url: z.ZodString;
|
|
2046
|
+
author: z.ZodOptional<z.ZodString>;
|
|
2047
|
+
authorIdentity: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
2048
|
+
providerUserId: z.ZodOptional<z.ZodString>;
|
|
2049
|
+
username: z.ZodOptional<z.ZodString>;
|
|
2050
|
+
displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2051
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2052
|
+
avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2053
|
+
platformUser: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2054
|
+
id: z.ZodString;
|
|
2055
|
+
username: z.ZodString;
|
|
2056
|
+
avatar: z.ZodNullable<z.ZodString>;
|
|
2057
|
+
}, z.core.$strip>>>;
|
|
2058
|
+
}, z.core.$strip>>>;
|
|
2059
|
+
assigneeIdentities: z.ZodOptional<z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
2060
|
+
providerUserId: z.ZodOptional<z.ZodString>;
|
|
2061
|
+
username: z.ZodOptional<z.ZodString>;
|
|
2062
|
+
displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2063
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2064
|
+
avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2065
|
+
platformUser: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2066
|
+
id: z.ZodString;
|
|
2067
|
+
username: z.ZodString;
|
|
2068
|
+
avatar: z.ZodNullable<z.ZodString>;
|
|
2069
|
+
}, z.core.$strip>>>;
|
|
2070
|
+
}, z.core.$strip>>>>;
|
|
2058
2071
|
}, z.core.$strip>;
|
|
2059
2072
|
type GitHubIssue = z.infer<typeof GitHubIssueSchema>;
|
|
2060
2073
|
/**
|
|
@@ -2093,6 +2106,19 @@ declare const RepositoryReferenceListItemSchema: z.ZodObject<{
|
|
|
2093
2106
|
html_url: z.ZodString;
|
|
2094
2107
|
}, z.core.$strip>;
|
|
2095
2108
|
type RepositoryReferenceListItem = z.infer<typeof RepositoryReferenceListItemSchema>;
|
|
2109
|
+
declare const RepositoryActorIdentitySchema: z.ZodObject<{
|
|
2110
|
+
providerUserId: z.ZodOptional<z.ZodString>;
|
|
2111
|
+
username: z.ZodOptional<z.ZodString>;
|
|
2112
|
+
displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2113
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2114
|
+
avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2115
|
+
platformUser: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2116
|
+
id: z.ZodString;
|
|
2117
|
+
username: z.ZodString;
|
|
2118
|
+
avatar: z.ZodNullable<z.ZodString>;
|
|
2119
|
+
}, z.core.$strip>>>;
|
|
2120
|
+
}, z.core.$strip>;
|
|
2121
|
+
type RepositoryActorIdentity = z.infer<typeof RepositoryActorIdentitySchema>;
|
|
2096
2122
|
declare const RepositoryReferenceSchema: z.ZodObject<{
|
|
2097
2123
|
kind: z.ZodEnum<{
|
|
2098
2124
|
issue: "issue";
|
|
@@ -2103,10 +2129,101 @@ declare const RepositoryReferenceSchema: z.ZodObject<{
|
|
|
2103
2129
|
title: z.ZodString;
|
|
2104
2130
|
body: z.ZodNullable<z.ZodString>;
|
|
2105
2131
|
html_url: z.ZodString;
|
|
2132
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
2133
|
+
open: "open";
|
|
2134
|
+
closed: "closed";
|
|
2135
|
+
merged: "merged";
|
|
2136
|
+
}>>;
|
|
2137
|
+
author: z.ZodOptional<z.ZodString>;
|
|
2138
|
+
authorIdentity: z.ZodOptional<z.ZodObject<{
|
|
2139
|
+
providerUserId: z.ZodOptional<z.ZodString>;
|
|
2140
|
+
username: z.ZodOptional<z.ZodString>;
|
|
2141
|
+
displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2142
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2143
|
+
avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2144
|
+
platformUser: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2145
|
+
id: z.ZodString;
|
|
2146
|
+
username: z.ZodString;
|
|
2147
|
+
avatar: z.ZodNullable<z.ZodString>;
|
|
2148
|
+
}, z.core.$strip>>>;
|
|
2149
|
+
}, z.core.$strip>>;
|
|
2150
|
+
reviewers: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2151
|
+
reviewerIdentities: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2152
|
+
providerUserId: z.ZodOptional<z.ZodString>;
|
|
2153
|
+
username: z.ZodOptional<z.ZodString>;
|
|
2154
|
+
displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2155
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2156
|
+
avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2157
|
+
platformUser: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2158
|
+
id: z.ZodString;
|
|
2159
|
+
username: z.ZodString;
|
|
2160
|
+
avatar: z.ZodNullable<z.ZodString>;
|
|
2161
|
+
}, z.core.$strip>>>;
|
|
2162
|
+
}, z.core.$strip>>>;
|
|
2163
|
+
assigneeIdentities: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2164
|
+
providerUserId: z.ZodOptional<z.ZodString>;
|
|
2165
|
+
username: z.ZodOptional<z.ZodString>;
|
|
2166
|
+
displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2167
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2168
|
+
avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2169
|
+
platformUser: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2170
|
+
id: z.ZodString;
|
|
2171
|
+
username: z.ZodString;
|
|
2172
|
+
avatar: z.ZodNullable<z.ZodString>;
|
|
2173
|
+
}, z.core.$strip>>>;
|
|
2174
|
+
}, z.core.$strip>>>;
|
|
2106
2175
|
head_branch: z.ZodOptional<z.ZodString>;
|
|
2107
2176
|
base_branch: z.ZodOptional<z.ZodString>;
|
|
2108
2177
|
}, z.core.$strip>;
|
|
2109
2178
|
type RepositoryReference = z.infer<typeof RepositoryReferenceSchema>;
|
|
2179
|
+
declare const RepositoryReferenceDiffSchema: z.ZodObject<{
|
|
2180
|
+
diff: z.ZodString;
|
|
2181
|
+
}, z.core.$strip>;
|
|
2182
|
+
type RepositoryReferenceDiff = z.infer<typeof RepositoryReferenceDiffSchema>;
|
|
2183
|
+
declare const RepositoryReferenceCommentSchema: z.ZodObject<{
|
|
2184
|
+
id: z.ZodString;
|
|
2185
|
+
body: z.ZodString;
|
|
2186
|
+
author: z.ZodString;
|
|
2187
|
+
authorIdentity: z.ZodOptional<z.ZodObject<{
|
|
2188
|
+
providerUserId: z.ZodOptional<z.ZodString>;
|
|
2189
|
+
username: z.ZodOptional<z.ZodString>;
|
|
2190
|
+
displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2191
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2192
|
+
avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2193
|
+
platformUser: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2194
|
+
id: z.ZodString;
|
|
2195
|
+
username: z.ZodString;
|
|
2196
|
+
avatar: z.ZodNullable<z.ZodString>;
|
|
2197
|
+
}, z.core.$strip>>>;
|
|
2198
|
+
}, z.core.$strip>>;
|
|
2199
|
+
html_url: z.ZodNullable<z.ZodString>;
|
|
2200
|
+
created_at: z.ZodString;
|
|
2201
|
+
updated_at: z.ZodString;
|
|
2202
|
+
}, z.core.$strip>;
|
|
2203
|
+
type RepositoryReferenceComment = z.infer<typeof RepositoryReferenceCommentSchema>;
|
|
2204
|
+
declare const RepositoryReferenceCommentsResponseSchema: z.ZodObject<{
|
|
2205
|
+
comments: z.ZodArray<z.ZodObject<{
|
|
2206
|
+
id: z.ZodString;
|
|
2207
|
+
body: z.ZodString;
|
|
2208
|
+
author: z.ZodString;
|
|
2209
|
+
authorIdentity: z.ZodOptional<z.ZodObject<{
|
|
2210
|
+
providerUserId: z.ZodOptional<z.ZodString>;
|
|
2211
|
+
username: z.ZodOptional<z.ZodString>;
|
|
2212
|
+
displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2213
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2214
|
+
avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2215
|
+
platformUser: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2216
|
+
id: z.ZodString;
|
|
2217
|
+
username: z.ZodString;
|
|
2218
|
+
avatar: z.ZodNullable<z.ZodString>;
|
|
2219
|
+
}, z.core.$strip>>>;
|
|
2220
|
+
}, z.core.$strip>>;
|
|
2221
|
+
html_url: z.ZodNullable<z.ZodString>;
|
|
2222
|
+
created_at: z.ZodString;
|
|
2223
|
+
updated_at: z.ZodString;
|
|
2224
|
+
}, z.core.$strip>>;
|
|
2225
|
+
}, z.core.$strip>;
|
|
2226
|
+
type RepositoryReferenceCommentsResponse = z.infer<typeof RepositoryReferenceCommentsResponseSchema>;
|
|
2110
2227
|
declare const ListReferencesQuerySchema: z.ZodObject<{
|
|
2111
2228
|
q: z.ZodOptional<z.ZodString>;
|
|
2112
2229
|
}, z.core.$strip>;
|
|
@@ -3274,5 +3391,5 @@ declare function detectPreview(fs: FileSystemAdapter): Promise<PreviewMetadata |
|
|
|
3274
3391
|
*/
|
|
3275
3392
|
declare function decodeGitPath(rawPath: string): string;
|
|
3276
3393
|
|
|
3277
|
-
export { AddChatMemberRequestSchema, AddChatMemberResponseSchema, AgentCustomConfigSchema, AgentPermissionsSchema, AgentSchema, AgentTypeSchema, ApiErrorSchema, ApprovalStatusResponseSchema, BillingStatsResponseSchema, BranchSchema, CONFIG_FILES, CancelSubscriptionResponseSchema, ChargeTransactionSchema, ChatMemberInputSchema, ChatMemberSchema, ChatSchema, ChatTypeSchema, ChatWithMembersSchema, CloudJoinApprovalRequestSchema, CloudJoinRequestSchema, CloudJoinResultQuerySchema, CloudJoinStatusQuerySchema, CloudMachineSchema, CloudSchema, CompanionEnsureResponseSchema, CompanionWorkspaceFileSchema, ConfirmUploadRequestSchema, ConfirmUploadResponseSchema, ConsumeTransactionSchema, ContactCandidateSchema, ContactSchema, ContactTargetTypeSchema, CreateAgentRequestSchema, CreateAgentResponseSchema, CreateChatRequestSchema, CreateChatResponseSchema, CreateCheckoutRequestSchema, CreateCheckoutResponseSchema, CreateCloudRequestSchema, CreateCloudResponseSchema, CreateContactRequestSchema, CreateContactResponseSchema, CreateDraftAgentRequestSchema, CreateOAuthServerRequestSchema, CreateOAuthServerResponseSchema, CreatePortalRequestSchema, CreatePortalResponseSchema, CreateSubscriptionPlanRequestSchema, CreditsBucketSchema, CreditsPackageSchema, DateSchema, DeleteAgentResponseSchema, DeleteContactResponseSchema, DeleteOAuthServerResponseSchema, DevCreateUserRequestSchema, DevCreateUserResponseSchema, DisplayConfigKeysSchema, DisplayConfigSchema, DraftAgentConfigSchema, DraftAgentSchema, ENTRY_FILE_PATTERNS, EnvironmentVariableSchema, FileItemSchema, FileStatsSchema, FileVisibilitySchema, GetAgentGitUrlResponseSchema, GetAgentResponseSchema, GetChatResponseSchema, GetEnvironmentVariablesResponseSchema, GetGitServerResponseSchema, GetGitUrlQuerySchema, GetGitUrlResponseSchema, GetInstallUrlResponseSchema, GetOAuthServerResponseSchema, GetReferenceQuerySchema, GetRepositoryResponseSchema, GetSubscriptionResponseSchema, GetSubscriptionTiersResponseSchema, GetUploadUrlsRequestSchema, GetUploadUrlsResponseSchema, GetUserAgentsResponseSchema, GitHubIssueListItemSchema, GitHubIssueSchema, GitServerSchema, IGNORED_DIRECTORIES, IdSchema, ListAgentsResponseSchema, ListBranchesResponseSchema, ListChatMembersResponseSchema, ListChatTasksResponseSchema, ListChatsQuerySchema, ListChatsResponseSchema, ListContactsResponseSchema, ListFilesQuerySchema, ListFilesResponseSchema, ListGitServersResponseSchema, ListIssuesQuerySchema, ListIssuesResponseSchema, ListMachinesResponseSchema, ListOAuthServersPublicResponseSchema, ListOAuthServersQuerySchema, ListOAuthServersResponseSchema, ListPackagesQuerySchema, ListPackagesResponseSchema, ListReferencesQuerySchema, ListReferencesResponseSchema, ListRepositoriesResponseSchema, ListSubscriptionPlansResponseSchema, ListTransactionsQuerySchema, ListTransactionsResponseSchema, LocalMachineSchema, LogoutResponseSchema, MachineApprovalRequestSchema, MachineApprovalStatusQuerySchema, MachineAuthAuthorizedResponseSchema, MachineAuthRequestSchema, MachineAuthResultQuerySchema, MachineUnbindRequestSchema, MachineUnbindResponseSchema, OAuthAccountInfoSchema, OAuthBindCallbackResponseSchema, OAuthBindQuerySchema, OAuthBindResponseSchema, OAuthCallbackQuerySchema, OAuthCallbackResponseSchema, OAuthLoginQuerySchema, OAuthServerPublicSchema, OAuthServerSchema, OAuthUnbindResponseSchema, PaginatedResponseSchema, PreviewMetadata, PublishDraftAgentRequestSchema, PublishDraftAgentResponseSchema, RELEVANT_DEPENDENCIES, RTC_CHUNK_HEADER_SIZE, RechargeResponseSchema, RegisterCompanionRequestSchema, RegisterCompanionResponseSchema, RemoveChatMemberRequestSchema, RepositoryReferenceKindSchema, RepositoryReferenceListItemSchema, RepositoryReferenceSchema, RepositorySchema, ResetSecretRequestSchema, ResetSecretResponseSchema, RtcChunkFlags, STATIC_FILE_EXTENSIONS, SearchContactCandidatesQuerySchema, SearchContactCandidatesResponseSchema, SenderTypeSchema, SetEnvironmentVariablesRequestSchema, ShareAuthQuerySchema, ShareAuthResponseSchema, SimpleSuccessSchema, StatsQuerySchema, SubscriptionPlanSchema, SubscriptionSchema, SubscriptionTierSchema, SyncCloudMachineResponseSchema, SyncLocalMachineResponseSchema, SyncMachineRequestSchema, TaskSharePermissionsSchema, TaskTransactionsResponseSchema, ToggleOAuthServerRequestSchema, ToggleOAuthServerResponseSchema, TransactionSchema, UpdateAgentRequestSchema, UpdateAgentResponseSchema,
|
|
3278
|
-
export type { AddChatMemberRequest, AddChatMemberResponse, Agent, AgentCustomConfig, AgentPermissions, AgentType, ApiError, ApprovalStatusResponse, AuthPayload, BillingStatsResponse, Branch, CancelSubscriptionResponse, ChargeTransaction, Chat, ChatMember, ChatMemberInput, ChatType, ChatWithMembers, ClientType, Cloud, CloudJoinApprovalRequest, CloudJoinRequest, CloudJoinResultQuery, CloudJoinStatusQuery, CloudMachine, CompanionEnsureResponse, CompanionWorkspaceFile, ConfirmUploadRequest, ConfirmUploadResponse, ConsumeTransaction, Contact, ContactCandidate, ContactTargetType, CreateAgentRequest, CreateAgentResponse, CreateChatRequest, CreateChatResponse, CreateCheckoutRequest, CreateCheckoutResponse, CreateCloudRequest, CreateCloudResponse, CreateContactRequest, CreateContactResponse, CreateDraftAgentRequest, CreateOAuthServerRequest, CreateOAuthServerResponse, CreatePortalRequest, CreatePortalResponse, CreateSubscriptionPlanRequest, CreditsBucket, CreditsPackage, DeleteAgentResponse, DeleteContactResponse, DeleteOAuthServerResponse, DevCreateUserRequest, DevCreateUserResponse, DisplayConfig, DisplayConfigKeys, DraftAgent, DraftAgentConfig, EnvironmentVariable, FileItem, FileStats, FileSystemAdapter, FileVisibility, GetAgentGitUrlResponse, GetAgentResponse, GetChatResponse, GetEnvironmentVariablesResponse, GetGitServerResponse, GetGitUrlQuery, GetGitUrlResponse, GetInstallUrlResponse, GetOAuthServerResponse, GetReferenceQuery, GetRepositoryResponse, GetSubscriptionResponse, GetSubscriptionTiersResponse, GetUploadUrlsRequest, GetUploadUrlsResponse, GetUserAgentsResponse, GitHubIssue, GitHubIssueListItem, GitServer, ListAgentsResponse, ListBranchesResponse, ListChatMembersResponse, ListChatTasksResponse, ListChatsQuery, ListChatsResponse, ListContactsResponse, ListFilesQuery, ListFilesResponse, ListGitServersResponse, ListIssuesQuery, ListIssuesResponse, ListMachinesResponse, ListOAuthServersPublicResponse, ListOAuthServersQuery, ListOAuthServersResponse, ListPackagesQuery, ListPackagesResponse, ListReferencesQuery, ListReferencesResponse, ListRepositoriesResponse, ListSubscriptionPlansResponse, ListTransactionsQuery, ListTransactionsResponse, LocalMachine, LogoutResponse, MachineApprovalRequest, MachineApprovalStatusQuery, MachineAuthAuthorizedResponse, MachineAuthRequest, MachineAuthResultQuery, MachineEncryptionKey, MachineUnbindRequest, MachineUnbindResponse, OAuthAccountInfo, OAuthBindCallbackResponse, OAuthBindQuery, OAuthBindResponse, OAuthCallbackQuery, OAuthCallbackResponse, OAuthLoginQuery, OAuthServer, OAuthServerPublic, OAuthUnbindResponse, PublishDraftAgentRequest, PublishDraftAgentResponse, RechargeResponse, RegisterCompanionRequest, RegisterCompanionResponse, RemoveChatMemberRequest, Repository, RepositoryReference, RepositoryReferenceKind, RepositoryReferenceListItem, ResetSecretRequest, ResetSecretResponse, RtcChunkFrame, RtcChunkHeader, RtcControlChannel, RtcControlMessage, SearchContactCandidatesQuery, SearchContactCandidatesResponse, SenderType, SetEnvironmentVariablesRequest, ShareAuthQuery, ShareAuthResponse, SimpleSuccess, StatsQuery, Subscription, SubscriptionPlan, SubscriptionTier, SyncCloudMachineResponse, SyncLocalMachineResponse, SyncMachineRequest, TaskEncryptionPayload, TaskSharePermissions, TaskTransactionsResponse, ToggleOAuthServerRequest, ToggleOAuthServerResponse, Transaction, UpdateAgentRequest, UpdateAgentResponse,
|
|
3394
|
+
export { AddChatMemberRequestSchema, AddChatMemberResponseSchema, AgentCustomConfigSchema, AgentPermissionsSchema, AgentSchema, AgentTypeSchema, ApiErrorSchema, ApprovalStatusResponseSchema, BillingStatsResponseSchema, BranchSchema, CONFIG_FILES, CancelSubscriptionResponseSchema, ChargeTransactionSchema, ChatMemberInputSchema, ChatMemberSchema, ChatSchema, ChatTypeSchema, ChatWithMembersSchema, CloudJoinApprovalRequestSchema, CloudJoinRequestSchema, CloudJoinResultQuerySchema, CloudJoinStatusQuerySchema, CloudMachineSchema, CloudSchema, CompanionEnsureResponseSchema, CompanionWorkspaceFileSchema, ConfirmUploadRequestSchema, ConfirmUploadResponseSchema, ConsumeTransactionSchema, ContactCandidateSchema, ContactSchema, ContactTargetTypeSchema, CreateAgentRequestSchema, CreateAgentResponseSchema, CreateChatRequestSchema, CreateChatResponseSchema, CreateCheckoutRequestSchema, CreateCheckoutResponseSchema, CreateCloudRequestSchema, CreateCloudResponseSchema, CreateContactRequestSchema, CreateContactResponseSchema, CreateDraftAgentRequestSchema, CreateOAuthServerRequestSchema, CreateOAuthServerResponseSchema, CreatePortalRequestSchema, CreatePortalResponseSchema, CreateSubscriptionPlanRequestSchema, CreditsBucketSchema, CreditsPackageSchema, DateSchema, DeleteAgentResponseSchema, DeleteContactResponseSchema, DeleteOAuthServerResponseSchema, DevCreateUserRequestSchema, DevCreateUserResponseSchema, DisplayConfigKeysSchema, DisplayConfigSchema, DraftAgentConfigSchema, DraftAgentSchema, ENTRY_FILE_PATTERNS, EnsureRepoChatRequestSchema, EnsureRepoChatResponseSchema, EnvironmentVariableSchema, FileItemSchema, FileStatsSchema, FileVisibilitySchema, GetAgentGitUrlResponseSchema, GetAgentResponseSchema, GetChatResponseSchema, GetEnvironmentVariablesResponseSchema, GetGitServerResponseSchema, GetGitUrlQuerySchema, GetGitUrlResponseSchema, GetInstallUrlResponseSchema, GetOAuthServerResponseSchema, GetReferenceQuerySchema, GetRepositoryResponseSchema, GetSubscriptionResponseSchema, GetSubscriptionTiersResponseSchema, GetUploadUrlsRequestSchema, GetUploadUrlsResponseSchema, GetUserAgentsResponseSchema, GitHubIssueListItemSchema, GitHubIssueSchema, GitServerSchema, IGNORED_DIRECTORIES, IdSchema, ListAgentsResponseSchema, ListBranchesResponseSchema, ListChatMembersResponseSchema, ListChatTasksResponseSchema, ListChatsQuerySchema, ListChatsResponseSchema, ListContactsResponseSchema, ListFilesQuerySchema, ListFilesResponseSchema, ListGitServersResponseSchema, ListIssuesQuerySchema, ListIssuesResponseSchema, ListMachinesResponseSchema, ListOAuthServersPublicResponseSchema, ListOAuthServersQuerySchema, ListOAuthServersResponseSchema, ListPackagesQuerySchema, ListPackagesResponseSchema, ListReferencesQuerySchema, ListReferencesResponseSchema, ListRepositoriesResponseSchema, ListSubscriptionPlansResponseSchema, ListTransactionsQuerySchema, ListTransactionsResponseSchema, LocalMachineSchema, LogoutResponseSchema, MachineApprovalRequestSchema, MachineApprovalStatusQuerySchema, MachineAuthAuthorizedResponseSchema, MachineAuthRequestSchema, MachineAuthResultQuerySchema, MachineUnbindRequestSchema, MachineUnbindResponseSchema, OAuthAccountInfoSchema, OAuthBindCallbackResponseSchema, OAuthBindQuerySchema, OAuthBindResponseSchema, OAuthCallbackQuerySchema, OAuthCallbackResponseSchema, OAuthLoginQuerySchema, OAuthServerPublicSchema, OAuthServerSchema, OAuthUnbindResponseSchema, PaginatedResponseSchema, PreviewMetadata, PublishDraftAgentRequestSchema, PublishDraftAgentResponseSchema, RELEVANT_DEPENDENCIES, RTC_CHUNK_HEADER_SIZE, RechargeResponseSchema, RegisterCompanionRequestSchema, RegisterCompanionResponseSchema, RemoveChatMemberRequestSchema, RepositoryActorIdentitySchema, RepositoryReferenceCommentSchema, RepositoryReferenceCommentsResponseSchema, RepositoryReferenceDiffSchema, RepositoryReferenceKindSchema, RepositoryReferenceListItemSchema, RepositoryReferenceSchema, RepositorySchema, ResetSecretRequestSchema, ResetSecretResponseSchema, RtcChunkFlags, STATIC_FILE_EXTENSIONS, SearchContactCandidatesQuerySchema, SearchContactCandidatesResponseSchema, SenderTypeSchema, SetEnvironmentVariablesRequestSchema, ShareAuthQuerySchema, ShareAuthResponseSchema, SimpleSuccessSchema, StatsQuerySchema, SubscriptionPlanSchema, SubscriptionSchema, SubscriptionTierSchema, SyncCloudMachineResponseSchema, SyncLocalMachineResponseSchema, SyncMachineRequestSchema, TaskSharePermissionsSchema, TaskTransactionsResponseSchema, ToggleOAuthServerRequestSchema, ToggleOAuthServerResponseSchema, TransactionSchema, UpdateAgentRequestSchema, UpdateAgentResponseSchema, UpdateDraftAgentRequestSchema, UpdateDraftAgentResponseSchema, UpdateOAuthServerRequestSchema, UpdateOAuthServerResponseSchema, UpdateSecretRequestSchema, UpdateSecretResponseSchema, UpdateSubscriptionPlanRequestSchema, UpdateSubscriptionRequestSchema, UpdateSubscriptionResponseSchema, UpdateUserProfileRequestSchema, UpdateUserProfileResponseSchema, UploadUrlResultSchema, UserBalanceResponseSchema, UserBasicInfoSchema, UserProfileResponseSchema, UserWithOAuthAccountsSchema, ValidateMachineResponseSchema, buildRtcChunkFrame, createKeyPair, createKeyPairWithUit8Array, createTaskEncryptionPayload, decodeBase64, decodeGitPath, decodeRtcChunkHeader, decryptAES, decryptFileContent, decryptMachineEncryptionKey, decryptSdkMessage, decryptWithEphemeralKey, detectPreview, encodeBase64, encodeBase64Url, encodeRtcChunkHeader, encryptAES, encryptFileContent, encryptMachineEncryptionKey, encryptSdkMessage, encryptWithEphemeralKey, generateAESKey, generateAESKeyBase64, getRandomBytes, machineAuth, splitRtcChunkFrame, userAuth, workerAuth };
|
|
3395
|
+
export type { AddChatMemberRequest, AddChatMemberResponse, Agent, AgentCustomConfig, AgentPermissions, AgentType, ApiError, ApprovalStatusResponse, AuthPayload, BillingStatsResponse, Branch, CancelSubscriptionResponse, ChargeTransaction, Chat, ChatMember, ChatMemberInput, ChatType, ChatWithMembers, ClientType, Cloud, CloudJoinApprovalRequest, CloudJoinRequest, CloudJoinResultQuery, CloudJoinStatusQuery, CloudMachine, CompanionEnsureResponse, CompanionWorkspaceFile, ConfirmUploadRequest, ConfirmUploadResponse, ConsumeTransaction, Contact, ContactCandidate, ContactTargetType, CreateAgentRequest, CreateAgentResponse, CreateChatRequest, CreateChatResponse, CreateCheckoutRequest, CreateCheckoutResponse, CreateCloudRequest, CreateCloudResponse, CreateContactRequest, CreateContactResponse, CreateDraftAgentRequest, CreateOAuthServerRequest, CreateOAuthServerResponse, CreatePortalRequest, CreatePortalResponse, CreateSubscriptionPlanRequest, CreditsBucket, CreditsPackage, DeleteAgentResponse, DeleteContactResponse, DeleteOAuthServerResponse, DevCreateUserRequest, DevCreateUserResponse, DisplayConfig, DisplayConfigKeys, DraftAgent, DraftAgentConfig, EnsureRepoChatRequest, EnsureRepoChatResponse, EnvironmentVariable, FileItem, FileStats, FileSystemAdapter, FileVisibility, GetAgentGitUrlResponse, GetAgentResponse, GetChatResponse, GetEnvironmentVariablesResponse, GetGitServerResponse, GetGitUrlQuery, GetGitUrlResponse, GetInstallUrlResponse, GetOAuthServerResponse, GetReferenceQuery, GetRepositoryResponse, GetSubscriptionResponse, GetSubscriptionTiersResponse, GetUploadUrlsRequest, GetUploadUrlsResponse, GetUserAgentsResponse, GitHubIssue, GitHubIssueListItem, GitServer, ListAgentsResponse, ListBranchesResponse, ListChatMembersResponse, ListChatTasksResponse, ListChatsQuery, ListChatsResponse, ListContactsResponse, ListFilesQuery, ListFilesResponse, ListGitServersResponse, ListIssuesQuery, ListIssuesResponse, ListMachinesResponse, ListOAuthServersPublicResponse, ListOAuthServersQuery, ListOAuthServersResponse, ListPackagesQuery, ListPackagesResponse, ListReferencesQuery, ListReferencesResponse, ListRepositoriesResponse, ListSubscriptionPlansResponse, ListTransactionsQuery, ListTransactionsResponse, LocalMachine, LogoutResponse, MachineApprovalRequest, MachineApprovalStatusQuery, MachineAuthAuthorizedResponse, MachineAuthRequest, MachineAuthResultQuery, MachineEncryptionKey, MachineUnbindRequest, MachineUnbindResponse, OAuthAccountInfo, OAuthBindCallbackResponse, OAuthBindQuery, OAuthBindResponse, OAuthCallbackQuery, OAuthCallbackResponse, OAuthLoginQuery, OAuthServer, OAuthServerPublic, OAuthUnbindResponse, PublishDraftAgentRequest, PublishDraftAgentResponse, RechargeResponse, RegisterCompanionRequest, RegisterCompanionResponse, RemoveChatMemberRequest, Repository, RepositoryActorIdentity, RepositoryReference, RepositoryReferenceComment, RepositoryReferenceCommentsResponse, RepositoryReferenceDiff, RepositoryReferenceKind, RepositoryReferenceListItem, ResetSecretRequest, ResetSecretResponse, RtcChunkFrame, RtcChunkHeader, RtcControlChannel, RtcControlMessage, SearchContactCandidatesQuery, SearchContactCandidatesResponse, SenderType, SetEnvironmentVariablesRequest, ShareAuthQuery, ShareAuthResponse, SimpleSuccess, StatsQuery, Subscription, SubscriptionPlan, SubscriptionTier, SyncCloudMachineResponse, SyncLocalMachineResponse, SyncMachineRequest, TaskEncryptionPayload, TaskSharePermissions, TaskTransactionsResponse, ToggleOAuthServerRequest, ToggleOAuthServerResponse, Transaction, UpdateAgentRequest, UpdateAgentResponse, UpdateDraftAgentRequest, UpdateDraftAgentResponse, UpdateOAuthServerRequest, UpdateOAuthServerResponse, UpdateSecretRequest, UpdateSecretResponse, UpdateSubscriptionPlanRequest, UpdateSubscriptionRequest, UpdateSubscriptionResponse, UpdateUserProfileRequest, UpdateUserProfileResponse, UploadUrlResult, UserBalanceResponse, UserBasicInfo, UserProfileResponse, UserWithOAuthAccounts, ValidateMachineResponse };
|
package/dist/node.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
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,
|
|
1
|
+
import { aX as LoadAgentOptions, b as AgentConfig, cT as ValidationResult, aH as FrameworkType } from './errors-BjRlOFVZ.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, ay as FRAMEWORK_TYPES, aG as FrameworkNotSupportedError, aK as HookFactory, b7 as MissingAgentFileError, br as RepositoryInitHookInput, dq as getAgentContext, dB as setAgentContext } from './errors-BjRlOFVZ.cjs';
|
|
3
3
|
import '@anthropic-ai/claude-agent-sdk';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|