@agentrix/shared 2.7.1 → 2.8.1
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-Bbtav64H.d.cts → errors-bwLB4nUC.d.cts} +131 -27
- package/dist/index.cjs +126 -20
- package/dist/index.d.cts +268 -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>;
|
|
@@ -134,11 +148,12 @@ declare const TaskItemSchema: z.ZodObject<{
|
|
|
134
148
|
pullRequestNumber: z.ZodNullable<z.ZodNumber>;
|
|
135
149
|
pullRequestUrl: z.ZodNullable<z.ZodString>;
|
|
136
150
|
pullRequestState: z.ZodNullable<z.ZodEnum<{
|
|
137
|
-
merged: "merged";
|
|
138
|
-
closed: "closed";
|
|
139
151
|
open: "open";
|
|
152
|
+
closed: "closed";
|
|
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>;
|
|
@@ -207,11 +286,12 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
207
286
|
pullRequestNumber: z.ZodNullable<z.ZodNumber>;
|
|
208
287
|
pullRequestUrl: z.ZodNullable<z.ZodString>;
|
|
209
288
|
pullRequestState: z.ZodNullable<z.ZodEnum<{
|
|
210
|
-
merged: "merged";
|
|
211
|
-
closed: "closed";
|
|
212
289
|
open: "open";
|
|
290
|
+
closed: "closed";
|
|
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>;
|
|
@@ -508,11 +589,12 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
508
589
|
pullRequestNumber: z.ZodNullable<z.ZodNumber>;
|
|
509
590
|
pullRequestUrl: z.ZodNullable<z.ZodString>;
|
|
510
591
|
pullRequestState: z.ZodNullable<z.ZodEnum<{
|
|
511
|
-
merged: "merged";
|
|
512
|
-
closed: "closed";
|
|
513
592
|
open: "open";
|
|
593
|
+
closed: "closed";
|
|
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>;
|
|
@@ -578,11 +661,12 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
578
661
|
pullRequestNumber: z.ZodNullable<z.ZodNumber>;
|
|
579
662
|
pullRequestUrl: z.ZodNullable<z.ZodString>;
|
|
580
663
|
pullRequestState: z.ZodNullable<z.ZodEnum<{
|
|
581
|
-
merged: "merged";
|
|
582
|
-
closed: "closed";
|
|
583
664
|
open: "open";
|
|
665
|
+
closed: "closed";
|
|
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>;
|
|
@@ -650,11 +735,12 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
|
|
|
650
735
|
pullRequestNumber: z.ZodNullable<z.ZodNumber>;
|
|
651
736
|
pullRequestUrl: z.ZodNullable<z.ZodString>;
|
|
652
737
|
pullRequestState: z.ZodNullable<z.ZodEnum<{
|
|
653
|
-
merged: "merged";
|
|
654
|
-
closed: "closed";
|
|
655
738
|
open: "open";
|
|
739
|
+
closed: "closed";
|
|
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;
|
|
@@ -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>;
|
|
@@ -1926,14 +2015,14 @@ declare const PrStateChangedSchema: z.ZodObject<{
|
|
|
1926
2015
|
pullRequestNumber: z.ZodNumber;
|
|
1927
2016
|
pullRequestUrl: z.ZodString;
|
|
1928
2017
|
oldState: z.ZodNullable<z.ZodEnum<{
|
|
1929
|
-
merged: "merged";
|
|
1930
|
-
closed: "closed";
|
|
1931
2018
|
open: "open";
|
|
2019
|
+
closed: "closed";
|
|
2020
|
+
merged: "merged";
|
|
1932
2021
|
}>>;
|
|
1933
2022
|
newState: z.ZodEnum<{
|
|
1934
|
-
merged: "merged";
|
|
1935
|
-
closed: "closed";
|
|
1936
2023
|
open: "open";
|
|
2024
|
+
closed: "closed";
|
|
2025
|
+
merged: "merged";
|
|
1937
2026
|
}>;
|
|
1938
2027
|
changedAt: z.ZodString;
|
|
1939
2028
|
}, z.core.$strip>;
|
|
@@ -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;
|
|
@@ -1991,6 +2077,7 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
1991
2077
|
id: z.ZodString;
|
|
1992
2078
|
}, z.core.$strip>>, z.ZodObject<{
|
|
1993
2079
|
id: z.ZodString;
|
|
2080
|
+
serverRepoId: z.ZodString;
|
|
1994
2081
|
owner: z.ZodString;
|
|
1995
2082
|
name: z.ZodString;
|
|
1996
2083
|
fullName: z.ZodString;
|
|
@@ -2006,14 +2093,14 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
2006
2093
|
pullRequestNumber: z.ZodNumber;
|
|
2007
2094
|
pullRequestUrl: z.ZodString;
|
|
2008
2095
|
oldState: z.ZodNullable<z.ZodEnum<{
|
|
2009
|
-
merged: "merged";
|
|
2010
|
-
closed: "closed";
|
|
2011
2096
|
open: "open";
|
|
2097
|
+
closed: "closed";
|
|
2098
|
+
merged: "merged";
|
|
2012
2099
|
}>>;
|
|
2013
2100
|
newState: z.ZodEnum<{
|
|
2014
|
-
merged: "merged";
|
|
2015
|
-
closed: "closed";
|
|
2016
2101
|
open: "open";
|
|
2102
|
+
closed: "closed";
|
|
2103
|
+
merged: "merged";
|
|
2017
2104
|
}>;
|
|
2018
2105
|
changedAt: z.ZodString;
|
|
2019
2106
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -2142,6 +2229,7 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
2142
2229
|
cloudId: z.ZodNullable<z.ZodString>;
|
|
2143
2230
|
repositoryId: z.ZodNullable<z.ZodString>;
|
|
2144
2231
|
baseBranch: z.ZodNullable<z.ZodString>;
|
|
2232
|
+
branchName: z.ZodNullable<z.ZodString>;
|
|
2145
2233
|
title: z.ZodNullable<z.ZodString>;
|
|
2146
2234
|
customTitle: z.ZodNullable<z.ZodString>;
|
|
2147
2235
|
agentSessionId: z.ZodNullable<z.ZodString>;
|
|
@@ -2158,11 +2246,12 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
2158
2246
|
pullRequestNumber: z.ZodNullable<z.ZodNumber>;
|
|
2159
2247
|
pullRequestUrl: z.ZodNullable<z.ZodString>;
|
|
2160
2248
|
pullRequestState: z.ZodNullable<z.ZodEnum<{
|
|
2161
|
-
merged: "merged";
|
|
2162
|
-
closed: "closed";
|
|
2163
2249
|
open: "open";
|
|
2250
|
+
closed: "closed";
|
|
2251
|
+
merged: "merged";
|
|
2164
2252
|
}>>;
|
|
2165
2253
|
pullRequestStateChangedAt: z.ZodNullable<z.ZodString>;
|
|
2254
|
+
issueNumber: z.ZodNullable<z.ZodNumber>;
|
|
2166
2255
|
gitStats: z.ZodNullable<z.ZodObject<{
|
|
2167
2256
|
totalInsertions: z.ZodNumber;
|
|
2168
2257
|
totalDeletions: z.ZodNumber;
|
|
@@ -2244,12 +2333,25 @@ declare const CompanionHeartbeatResponseSchema: z.ZodObject<{
|
|
|
2244
2333
|
chatId: z.ZodString;
|
|
2245
2334
|
}, z.core.$strip>;
|
|
2246
2335
|
type CompanionHeartbeatResponseData = z.infer<typeof CompanionHeartbeatResponseSchema>;
|
|
2336
|
+
declare const CompanionInitRequestSchema: z.ZodObject<{
|
|
2337
|
+
eventId: z.ZodString;
|
|
2338
|
+
machineId: z.ZodString;
|
|
2339
|
+
agentId: z.ZodString;
|
|
2340
|
+
chatId: z.ZodString;
|
|
2341
|
+
userId: z.ZodString;
|
|
2342
|
+
}, z.core.$strip>;
|
|
2343
|
+
type CompanionInitRequestData = z.infer<typeof CompanionInitRequestSchema>;
|
|
2344
|
+
declare const CompanionInitResponseSchema: z.ZodObject<{
|
|
2345
|
+
eventId: z.ZodString;
|
|
2346
|
+
success: z.ZodBoolean;
|
|
2347
|
+
}, z.core.$strip>;
|
|
2348
|
+
type CompanionInitResponseData = z.infer<typeof CompanionInitResponseSchema>;
|
|
2247
2349
|
declare const ResetTaskSessionSchema: z.ZodObject<{
|
|
2248
2350
|
eventId: z.ZodString;
|
|
2249
2351
|
taskId: z.ZodString;
|
|
2250
2352
|
}, z.core.$strip>;
|
|
2251
2353
|
type ResetTaskSessionEventData = z.infer<typeof ResetTaskSessionSchema>;
|
|
2252
|
-
type EventData = AppAliveEventData | ApiServerAliveEventData | MachineAliveEventData | ShutdownMachineData | WorkerInitializingEventData | WorkerInitializedEventData | WorkerReadyEventData | WorkerAliveEventData | WorkerExitEventData | WorkerRunningEventData | WorkerPermissionModeEventData | WorkerStatusRequestEventData | ChatWorkersStatusRequestEventData | ChatWorkersStatusResponseEventData | CreateTaskEventData | ResumeTaskEventData | CancelTaskEventData | StopTaskEventData | TaskMessageEventData | ChangeTaskTitleEventData | TaskStateChangeEventData | UpdateTaskAgentSessionIdEventData | TaskInfoUpdateEventData | TaskSlashCommandsUpdateEventData | MergeRequestEventData | TaskStoppedEventData | SubTaskResultUpdatedEventData | SystemMessageEventData | CreditExhaustedEventData | RtcIceServersRequestEventData | RtcIceServersResponseEventData | MachineRtcRequestEventData | MachineRtcResponseEventData | RtcSignalEventData | WorkspaceFileRequestEventData | WorkspaceFileResponseEventData | UpdateAgentInfoEventData | DaemonGitlabRequestEventData | DaemonGitlabResponseEventData | CompanionHeartbeatRequestData | CompanionHeartbeatResponseData | ResetTaskSessionEventData | SeqSyncRequestEventData | SeqSyncResponseEventData;
|
|
2354
|
+
type EventData = AppAliveEventData | ApiServerAliveEventData | MachineAliveEventData | ShutdownMachineData | WorkerInitializingEventData | WorkerInitializedEventData | WorkerReadyEventData | WorkerAliveEventData | WorkerExitEventData | WorkerRunningEventData | WorkerPermissionModeEventData | WorkerStatusRequestEventData | ChatWorkersStatusRequestEventData | ChatWorkersStatusResponseEventData | CreateTaskEventData | ResumeTaskEventData | CancelTaskEventData | StopTaskEventData | TaskMessageEventData | ChangeTaskTitleEventData | TaskStateChangeEventData | UpdateTaskAgentSessionIdEventData | TaskInfoUpdateEventData | TaskSlashCommandsUpdateEventData | MergeRequestEventData | TaskStoppedEventData | SubTaskResultUpdatedEventData | SystemMessageEventData | CreditExhaustedEventData | RtcIceServersRequestEventData | RtcIceServersResponseEventData | MachineRtcRequestEventData | MachineRtcResponseEventData | RtcSignalEventData | WorkspaceFileRequestEventData | WorkspaceFileResponseEventData | UpdateAgentInfoEventData | DaemonGitlabRequestEventData | DaemonGitlabResponseEventData | CompanionHeartbeatRequestData | CompanionHeartbeatResponseData | CompanionInitRequestData | CompanionInitResponseData | ResetTaskSessionEventData | SeqSyncRequestEventData | SeqSyncResponseEventData;
|
|
2253
2355
|
declare const SeqSyncRequestEventDataSchema: z.ZodObject<{
|
|
2254
2356
|
eventId: z.ZodString;
|
|
2255
2357
|
tasks: z.ZodArray<z.ZodObject<{
|
|
@@ -2313,6 +2415,8 @@ type EventMap = {
|
|
|
2313
2415
|
"daemon-gitlab-response": DaemonGitlabResponseEventData;
|
|
2314
2416
|
"request-companion-heartbeat": CompanionHeartbeatRequestData;
|
|
2315
2417
|
"companion-heartbeat-response": CompanionHeartbeatResponseData;
|
|
2418
|
+
"request-companion-init": CompanionInitRequestData;
|
|
2419
|
+
"companion-init-response": CompanionInitResponseData;
|
|
2316
2420
|
"reset-task-session": ResetTaskSessionEventData;
|
|
2317
2421
|
"event-ack": EventAckData;
|
|
2318
2422
|
"seq-sync-request": SeqSyncRequestEventData;
|
|
@@ -2769,5 +2873,5 @@ declare class MissingAgentFileError extends AgentError {
|
|
|
2769
2873
|
constructor(filePath: string);
|
|
2770
2874
|
}
|
|
2771
2875
|
|
|
2772
|
-
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,
|
|
2773
|
-
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 _,
|
|
2876
|
+
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, CompanionInitRequestSchema as a3, CompanionInitResponseSchema as a5, CreateMergeRequestResponseSchema as a9, EventSchemaMap as aB, FRAMEWORK_TYPES as aC, FillEventsRequestSchema as aE, FindTaskByAgentRequestSchema as aH, FindTaskByAgentResponseSchema as aJ, FrameworkNotSupportedError as aK, GetTaskSessionResponseSchema as aN, ListRecentTasksRequestSchema as aQ, ListRecentTasksResponseSchema as aS, ListSubTasksRequestSchema as aU, ListSubTasksResponseSchema as aW, ListTasksRequestSchema as aY, ListTasksResponseSchema as a_, CreateMergeRequestSchema as aa, CreateTaskShareResponseSchema as ae, CreateTaskShareSchema as af, CreditExhaustedEventSchema as ah, DaemonGitlabOperationSchema as aj, DaemonGitlabRequestSchema as al, DaemonGitlabResponseSchema as an, DeployAgentCompleteEventSchema as ap, DeployAgentEventSchema as ar, EnsureIssueRootTaskRequestSchema as at, EnsureIssueRootTaskResponseSchema as av, EventAckSchema as ax, ShowModalRequestSchema as b$, MachineAliveEventSchema as b1, MachineRtcRequestSchema as b3, MachineRtcResponseSchema as b5, MergePullRequestEventSchema as b8, ResumeTaskRequestSchema as bA, ResumeTaskResponseSchema as bC, RpcCallEventSchema as bE, RpcResponseSchema as bG, RtcIceServerSchema as bI, RtcIceServersRequestSchema as bK, RtcIceServersResponseSchema as bM, RtcSignalSchema as bO, SendTaskMessageRequestSchema as bR, SendTaskMessageResponseSchema as bT, SeqSyncRequestEventDataSchema as bV, SeqSyncResponseEventDataSchema as bX, ShowModalEventDataSchema as bZ, MergeRequestEventSchema as ba, MissingAgentFileError as bb, PermissionResponseRequestSchema as bd, PermissionResponseResponseSchema as bf, PreviewMetadataSchema as bh, PreviewMethodSchema as bj, PreviewProjectTypeSchema as bl, ProjectDirectoryResponseSchema as bn, ProjectEntrySchema as bp, QueryEventsRequestSchema as br, RecentTaskSummarySchema as bu, ResetTaskSessionSchema as bx, AgentConfigValidationError as c, WorkerExitSchema as c$, ShowModalResponseSchema as c1, ShutdownMachineSchema as c3, StartTaskRequestSchema as c5, StartTaskResponseSchema as c7, TaskSlashCommandSchema as cB, TaskSlashCommandsUpdateEventDataSchema as cD, TaskStateChangeEventSchema as cG, TaskStoppedEventSchema as cI, TaskTodoSchema as cK, UnarchiveTaskRequestSchema as cM, UnarchiveTaskResponseSchema as cO, UpdateAgentInfoEventSchema as cQ, UpdateTaskAgentSessionIdEventSchema as cS, UpdateTaskTitleRequestSchema as cU, UpdateTaskTitleResponseSchema as cW, WorkerAliveEventSchema as cZ, StopTaskRequestSchema as ca, StopTaskResponseSchema as cc, StopTaskSchema as cd, SubTaskResultUpdatedEventSchema as cg, SubTaskSummarySchema as ci, SystemMessageSchema as ck, TaskAgentInfoSchema as cn, TaskArtifactsStatsSchema as cp, TaskArtifactsSummarySchema as cr, TaskInfoUpdateEventDataSchema as cu, TaskItemSchema as cw, TaskMessageSchema as cz, WorkerInitializedSchema as d1, WorkerInitializingSchema as d3, WorkerPermissionModeSchema as d5, WorkerPermissionModeValueSchema as d7, WorkerReadySchema as d9, isSDKUserMessage as dA, isSubTaskAskUserMessage as dB, permissionResponseRequestSchema as dC, resumeTaskRequestSchema as dD, resumeTaskSchema as dE, setAgentContext as dF, startTaskSchema as dG, stopTaskRequestSchema as dH, workerTaskEvents as dI, WorkerRunningSchema as db, WorkerStatusRequestSchema as dd, WorkerStatusSnapshotSchema as df, WorkerStatusValueSchema as dh, WorkspaceFileRequestSchema as dk, WorkspaceFileResponseSchema as dm, baseTaskSchema as dn, cancelTaskRequestSchema as dp, cancelTaskSchema as dq, createEventId as dr, createMergeRequestSchema as ds, createTaskSchema as dt, getAgentContext as du, isAskUserMessage as dv, isAskUserResponseMessage as dw, isCompanionHeartbeatMessage as dx, isCompanionReminderMessage as dy, isSDKMessage 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 };
|
|
2877
|
+
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 _, LoadAgentOptions as a$, CompanionHeartbeatResponseData as a0, CompanionInitRequestData as a2, CompanionInitResponseData as a4, CompanionReminderMessage as a6, CreateMergeRequestRequest as a7, CreateMergeRequestResponse as a8, EventName as aA, FillEventsRequest as aD, FillEventsResponse as aF, FindTaskByAgentRequest as aG, FindTaskByAgentResponse as aI, FrameworkType as aL, GetTaskSessionResponse as aM, HookFactory as aO, ListRecentTasksRequest as aP, ListRecentTasksResponse as aR, ListSubTasksRequest as aT, ListSubTasksResponse as aV, ListTasksRequest as aX, ListTasksResponse as aZ, CreateTaskEventData as ab, CreateTaskShareRequest as ac, CreateTaskShareResponse as ad, CreditExhaustedEventData as ag, DaemonGitlabOperation as ai, DaemonGitlabRequestEventData as ak, DaemonGitlabResponseEventData as am, DeployAgentCompleteEventData as ao, DeployAgentEventData as aq, EnsureIssueRootTaskRequest as as, EnsureIssueRootTaskResponse as au, EventAckData as aw, EventData as ay, EventMap as az, AgentConfig as b, MachineAliveEventData as b0, MachineRtcRequestEventData as b2, MachineRtcResponseEventData as b4, MergePullRequestAck as b6, MergePullRequestEventData as b7, MergeRequestEventData as b9, ResumeTaskResponse as bB, RpcCallEventData as bD, RpcResponseData as bF, RtcIceServer as bH, RtcIceServersRequestEventData as bJ, RtcIceServersResponseEventData as bL, RtcSignalEventData as bN, SendMessageTarget as bP, SendTaskMessageRequest as bQ, SendTaskMessageResponse as bS, SeqSyncRequestEventData as bU, SeqSyncResponseEventData as bW, ShowModalEventData as bY, ShowModalRequest as b_, PermissionResponseRequest as bc, PermissionResponseResponse as be, PrStateChangedData as bg, PreviewMethod as bi, PreviewProjectType as bk, ProjectDirectoryResponse as bm, ProjectEntry as bo, QueryEventsRequest as bq, QueryEventsResponse as bs, RecentTaskSummary as bt, RepositoryInitHookInput as bv, ResetTaskSessionEventData as bw, ResumeTaskEventData as by, ResumeTaskRequest as bz, ShowModalResponse as c0, ShutdownMachineData as c2, StartTaskRequest as c4, StartTaskResponse as c6, StopTaskEventData as c8, StopTaskRequest as c9, TaskSlashCommand as cA, TaskSlashCommandsUpdateEventData as cC, TaskState as cE, TaskStateChangeEventData as cF, TaskStoppedEventData as cH, TaskTodo as cJ, UnarchiveTaskRequest as cL, UnarchiveTaskResponse as cN, UpdateAgentInfoEventData as cP, UpdateTaskAgentSessionIdEventData as cR, UpdateTaskTitleRequest as cT, UpdateTaskTitleResponse as cV, ValidationResult as cX, WorkerAliveEventData as cY, WorkerExitEventData as c_, StopTaskResponse as cb, SubTaskAskUserMessage as ce, SubTaskResultUpdatedEventData as cf, SubTaskSummary as ch, SystemMessageEventData as cj, SystemMessageType as cl, TaskAgentInfo as cm, TaskArtifactsStats as co, TaskArtifactsSummary as cq, TaskEvent as cs, TaskInfoUpdateEventData as ct, TaskItem as cv, TaskMessageEventData as cx, TaskMessagePayload as cy, AgentContext as d, WorkerInitializedEventData as d0, WorkerInitializingEventData as d2, WorkerPermissionModeEventData as d4, WorkerPermissionModeValue as d6, WorkerReadyEventData as d8, WorkerRunningEventData as da, WorkerStatusRequestEventData as dc, WorkerStatusSnapshot as de, WorkerStatusValue as dg, WorkerTaskEvent as di, WorkspaceFileRequestEventData as dj, WorkspaceFileResponseEventData as dl, 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
|
});
|
|
@@ -968,6 +984,7 @@ const ListFilesResponseSchema = zod.z.object({
|
|
|
968
984
|
|
|
969
985
|
const RepositorySchema = zod.z.object({
|
|
970
986
|
id: IdSchema,
|
|
987
|
+
serverRepoId: zod.z.string(),
|
|
971
988
|
owner: zod.z.string(),
|
|
972
989
|
name: zod.z.string(),
|
|
973
990
|
fullName: zod.z.string(),
|
|
@@ -1021,7 +1038,10 @@ const GitHubIssueSchema = zod.z.object({
|
|
|
1021
1038
|
number: zod.z.number(),
|
|
1022
1039
|
title: zod.z.string(),
|
|
1023
1040
|
body: zod.z.string().nullable(),
|
|
1024
|
-
html_url: zod.z.string().url()
|
|
1041
|
+
html_url: zod.z.string().url(),
|
|
1042
|
+
author: zod.z.string().optional(),
|
|
1043
|
+
authorIdentity: zod.z.lazy(() => RepositoryActorIdentitySchema).optional(),
|
|
1044
|
+
assigneeIdentities: zod.z.array(zod.z.lazy(() => RepositoryActorIdentitySchema)).optional()
|
|
1025
1045
|
});
|
|
1026
1046
|
const ListIssuesQuerySchema = zod.z.object({
|
|
1027
1047
|
q: zod.z.string().optional()
|
|
@@ -1038,15 +1058,48 @@ const RepositoryReferenceListItemSchema = zod.z.object({
|
|
|
1038
1058
|
title: zod.z.string(),
|
|
1039
1059
|
html_url: zod.z.string().url()
|
|
1040
1060
|
});
|
|
1061
|
+
const RepositoryActorIdentitySchema = zod.z.object({
|
|
1062
|
+
providerUserId: zod.z.string().optional(),
|
|
1063
|
+
username: zod.z.string().optional(),
|
|
1064
|
+
displayName: zod.z.string().nullable().optional(),
|
|
1065
|
+
email: zod.z.string().nullable().optional(),
|
|
1066
|
+
avatarUrl: zod.z.string().nullable().optional(),
|
|
1067
|
+
platformUser: zod.z.object({
|
|
1068
|
+
id: IdSchema,
|
|
1069
|
+
username: zod.z.string(),
|
|
1070
|
+
avatar: zod.z.string().nullable()
|
|
1071
|
+
}).nullable().optional()
|
|
1072
|
+
});
|
|
1041
1073
|
const RepositoryReferenceSchema = zod.z.object({
|
|
1042
1074
|
kind: RepositoryReferenceKindSchema,
|
|
1043
1075
|
number: zod.z.number(),
|
|
1044
1076
|
title: zod.z.string(),
|
|
1045
1077
|
body: zod.z.string().nullable(),
|
|
1046
1078
|
html_url: zod.z.string().url(),
|
|
1079
|
+
state: zod.z.enum(["open", "closed", "merged"]).optional(),
|
|
1080
|
+
author: zod.z.string().optional(),
|
|
1081
|
+
authorIdentity: RepositoryActorIdentitySchema.optional(),
|
|
1082
|
+
reviewers: zod.z.array(zod.z.string()).optional(),
|
|
1083
|
+
reviewerIdentities: zod.z.array(RepositoryActorIdentitySchema).optional(),
|
|
1084
|
+
assigneeIdentities: zod.z.array(RepositoryActorIdentitySchema).optional(),
|
|
1047
1085
|
head_branch: zod.z.string().optional(),
|
|
1048
1086
|
base_branch: zod.z.string().optional()
|
|
1049
1087
|
});
|
|
1088
|
+
const RepositoryReferenceDiffSchema = zod.z.object({
|
|
1089
|
+
diff: zod.z.string()
|
|
1090
|
+
});
|
|
1091
|
+
const RepositoryReferenceCommentSchema = zod.z.object({
|
|
1092
|
+
id: zod.z.string(),
|
|
1093
|
+
body: zod.z.string(),
|
|
1094
|
+
author: zod.z.string(),
|
|
1095
|
+
authorIdentity: RepositoryActorIdentitySchema.optional(),
|
|
1096
|
+
html_url: zod.z.string().url().nullable(),
|
|
1097
|
+
created_at: DateSchema,
|
|
1098
|
+
updated_at: DateSchema
|
|
1099
|
+
});
|
|
1100
|
+
const RepositoryReferenceCommentsResponseSchema = zod.z.object({
|
|
1101
|
+
comments: zod.z.array(RepositoryReferenceCommentSchema)
|
|
1102
|
+
});
|
|
1050
1103
|
const ListReferencesQuerySchema = zod.z.object({
|
|
1051
1104
|
q: zod.z.string().optional()
|
|
1052
1105
|
});
|
|
@@ -1384,6 +1437,32 @@ const SearchContactCandidatesResponseSchema = zod.z.object({
|
|
|
1384
1437
|
candidates: zod.z.array(ContactCandidateSchema)
|
|
1385
1438
|
});
|
|
1386
1439
|
|
|
1440
|
+
const UserInboxSubjectTypeSchema = zod.z.enum(["issue", "reference", "task"]);
|
|
1441
|
+
const UserInboxStatusSchema = zod.z.enum(["needs_reply", "needs_review"]);
|
|
1442
|
+
const UserInboxItemSchema = zod.z.object({
|
|
1443
|
+
id: IdSchema,
|
|
1444
|
+
userId: IdSchema,
|
|
1445
|
+
repositoryId: IdSchema,
|
|
1446
|
+
subjectType: UserInboxSubjectTypeSchema,
|
|
1447
|
+
subjectId: zod.z.string().min(1),
|
|
1448
|
+
targetSubjectType: UserInboxSubjectTypeSchema.nullable().optional(),
|
|
1449
|
+
targetSubjectId: zod.z.string().min(1).nullable().optional(),
|
|
1450
|
+
status: UserInboxStatusSchema,
|
|
1451
|
+
title: zod.z.string(),
|
|
1452
|
+
body: zod.z.string().nullable().optional(),
|
|
1453
|
+
isResolved: zod.z.boolean(),
|
|
1454
|
+
openedAt: DateSchema,
|
|
1455
|
+
resolvedAt: DateSchema.nullable(),
|
|
1456
|
+
metadataJson: zod.z.record(zod.z.string(), zod.z.unknown()).nullable().optional()
|
|
1457
|
+
});
|
|
1458
|
+
const ListUserInboxResponseSchema = zod.z.object({
|
|
1459
|
+
items: zod.z.array(UserInboxItemSchema)
|
|
1460
|
+
});
|
|
1461
|
+
const ResolveUserInboxItemResponseSchema = zod.z.object({
|
|
1462
|
+
success: zod.z.boolean(),
|
|
1463
|
+
item: UserInboxItemSchema
|
|
1464
|
+
});
|
|
1465
|
+
|
|
1387
1466
|
const RpcCallEventSchema = zod.z.object({
|
|
1388
1467
|
eventId: zod.z.string(),
|
|
1389
1468
|
taskId: zod.z.string(),
|
|
@@ -1830,6 +1909,8 @@ const baseTaskSchema = EventBaseSchema.extend({
|
|
|
1830
1909
|
// Absolute path to agent directory (only for draft agents)
|
|
1831
1910
|
gitUrl: zod.z.string().optional(),
|
|
1832
1911
|
baseBranch: zod.z.string().optional(),
|
|
1912
|
+
branchName: zod.z.string().optional(),
|
|
1913
|
+
// Explicit branch name override; when set, CLI uses this instead of auto-generated agentrix/<taskId>
|
|
1833
1914
|
cwd: zod.z.string().optional(),
|
|
1834
1915
|
// Current working directory for the task, only used under 'local' mode
|
|
1835
1916
|
userCwd: zod.z.string().optional(),
|
|
@@ -2290,6 +2371,15 @@ const CompanionHeartbeatResponseSchema = EventBaseSchema.extend({
|
|
|
2290
2371
|
taskId: zod.z.string(),
|
|
2291
2372
|
chatId: zod.z.string()
|
|
2292
2373
|
});
|
|
2374
|
+
const CompanionInitRequestSchema = EventBaseSchema.extend({
|
|
2375
|
+
machineId: zod.z.string(),
|
|
2376
|
+
agentId: zod.z.string(),
|
|
2377
|
+
chatId: zod.z.string(),
|
|
2378
|
+
userId: zod.z.string()
|
|
2379
|
+
});
|
|
2380
|
+
const CompanionInitResponseSchema = EventBaseSchema.extend({
|
|
2381
|
+
success: zod.z.boolean()
|
|
2382
|
+
});
|
|
2293
2383
|
const ResetTaskSessionSchema = EventBaseSchema.extend({
|
|
2294
2384
|
taskId: zod.z.string()
|
|
2295
2385
|
});
|
|
@@ -2366,6 +2456,9 @@ const EventSchemaMap = {
|
|
|
2366
2456
|
// Companion heartbeat events
|
|
2367
2457
|
"request-companion-heartbeat": CompanionHeartbeatRequestSchema,
|
|
2368
2458
|
"companion-heartbeat-response": CompanionHeartbeatResponseSchema,
|
|
2459
|
+
// Companion init events
|
|
2460
|
+
"request-companion-init": CompanionInitRequestSchema,
|
|
2461
|
+
"companion-init-response": CompanionInitResponseSchema,
|
|
2369
2462
|
"reset-task-session": ResetTaskSessionSchema,
|
|
2370
2463
|
// Ack events
|
|
2371
2464
|
"event-ack": EventAckSchema,
|
|
@@ -2910,6 +3003,8 @@ exports.CloudSchema = CloudSchema;
|
|
|
2910
3003
|
exports.CompanionEnsureResponseSchema = CompanionEnsureResponseSchema;
|
|
2911
3004
|
exports.CompanionHeartbeatRequestSchema = CompanionHeartbeatRequestSchema;
|
|
2912
3005
|
exports.CompanionHeartbeatResponseSchema = CompanionHeartbeatResponseSchema;
|
|
3006
|
+
exports.CompanionInitRequestSchema = CompanionInitRequestSchema;
|
|
3007
|
+
exports.CompanionInitResponseSchema = CompanionInitResponseSchema;
|
|
2913
3008
|
exports.CompanionWorkspaceFileSchema = CompanionWorkspaceFileSchema;
|
|
2914
3009
|
exports.ConfirmUploadRequestSchema = ConfirmUploadRequestSchema;
|
|
2915
3010
|
exports.ConfirmUploadResponseSchema = ConfirmUploadResponseSchema;
|
|
@@ -2956,6 +3051,10 @@ exports.DisplayConfigSchema = DisplayConfigSchema;
|
|
|
2956
3051
|
exports.DraftAgentConfigSchema = DraftAgentConfigSchema;
|
|
2957
3052
|
exports.DraftAgentSchema = DraftAgentSchema;
|
|
2958
3053
|
exports.ENTRY_FILE_PATTERNS = ENTRY_FILE_PATTERNS;
|
|
3054
|
+
exports.EnsureIssueRootTaskRequestSchema = EnsureIssueRootTaskRequestSchema;
|
|
3055
|
+
exports.EnsureIssueRootTaskResponseSchema = EnsureIssueRootTaskResponseSchema;
|
|
3056
|
+
exports.EnsureRepoChatRequestSchema = EnsureRepoChatRequestSchema;
|
|
3057
|
+
exports.EnsureRepoChatResponseSchema = EnsureRepoChatResponseSchema;
|
|
2959
3058
|
exports.EnvironmentVariableSchema = EnvironmentVariableSchema;
|
|
2960
3059
|
exports.EventAckSchema = EventAckSchema;
|
|
2961
3060
|
exports.EventSchemaMap = EventSchemaMap;
|
|
@@ -3017,6 +3116,7 @@ exports.ListTasksRequestSchema = ListTasksRequestSchema;
|
|
|
3017
3116
|
exports.ListTasksResponseSchema = ListTasksResponseSchema;
|
|
3018
3117
|
exports.ListTransactionsQuerySchema = ListTransactionsQuerySchema;
|
|
3019
3118
|
exports.ListTransactionsResponseSchema = ListTransactionsResponseSchema;
|
|
3119
|
+
exports.ListUserInboxResponseSchema = ListUserInboxResponseSchema;
|
|
3020
3120
|
exports.LocalMachineSchema = LocalMachineSchema;
|
|
3021
3121
|
exports.LogoutResponseSchema = LogoutResponseSchema;
|
|
3022
3122
|
exports.MachineAliveEventSchema = MachineAliveEventSchema;
|
|
@@ -3059,6 +3159,10 @@ exports.RechargeResponseSchema = RechargeResponseSchema;
|
|
|
3059
3159
|
exports.RegisterCompanionRequestSchema = RegisterCompanionRequestSchema;
|
|
3060
3160
|
exports.RegisterCompanionResponseSchema = RegisterCompanionResponseSchema;
|
|
3061
3161
|
exports.RemoveChatMemberRequestSchema = RemoveChatMemberRequestSchema;
|
|
3162
|
+
exports.RepositoryActorIdentitySchema = RepositoryActorIdentitySchema;
|
|
3163
|
+
exports.RepositoryReferenceCommentSchema = RepositoryReferenceCommentSchema;
|
|
3164
|
+
exports.RepositoryReferenceCommentsResponseSchema = RepositoryReferenceCommentsResponseSchema;
|
|
3165
|
+
exports.RepositoryReferenceDiffSchema = RepositoryReferenceDiffSchema;
|
|
3062
3166
|
exports.RepositoryReferenceKindSchema = RepositoryReferenceKindSchema;
|
|
3063
3167
|
exports.RepositoryReferenceListItemSchema = RepositoryReferenceListItemSchema;
|
|
3064
3168
|
exports.RepositoryReferenceSchema = RepositoryReferenceSchema;
|
|
@@ -3066,6 +3170,7 @@ exports.RepositorySchema = RepositorySchema;
|
|
|
3066
3170
|
exports.ResetSecretRequestSchema = ResetSecretRequestSchema;
|
|
3067
3171
|
exports.ResetSecretResponseSchema = ResetSecretResponseSchema;
|
|
3068
3172
|
exports.ResetTaskSessionSchema = ResetTaskSessionSchema;
|
|
3173
|
+
exports.ResolveUserInboxItemResponseSchema = ResolveUserInboxItemResponseSchema;
|
|
3069
3174
|
exports.ResumeTaskRequestSchema = ResumeTaskRequestSchema;
|
|
3070
3175
|
exports.ResumeTaskResponseSchema = ResumeTaskResponseSchema;
|
|
3071
3176
|
exports.RpcCallEventSchema = RpcCallEventSchema;
|
|
@@ -3127,8 +3232,6 @@ exports.UnarchiveTaskResponseSchema = UnarchiveTaskResponseSchema;
|
|
|
3127
3232
|
exports.UpdateAgentInfoEventSchema = UpdateAgentInfoEventSchema;
|
|
3128
3233
|
exports.UpdateAgentRequestSchema = UpdateAgentRequestSchema;
|
|
3129
3234
|
exports.UpdateAgentResponseSchema = UpdateAgentResponseSchema;
|
|
3130
|
-
exports.UpdateChatContextRequestSchema = UpdateChatContextRequestSchema;
|
|
3131
|
-
exports.UpdateChatContextResponseSchema = UpdateChatContextResponseSchema;
|
|
3132
3235
|
exports.UpdateDraftAgentRequestSchema = UpdateDraftAgentRequestSchema;
|
|
3133
3236
|
exports.UpdateDraftAgentResponseSchema = UpdateDraftAgentResponseSchema;
|
|
3134
3237
|
exports.UpdateOAuthServerRequestSchema = UpdateOAuthServerRequestSchema;
|
|
@@ -3146,6 +3249,9 @@ exports.UpdateUserProfileResponseSchema = UpdateUserProfileResponseSchema;
|
|
|
3146
3249
|
exports.UploadUrlResultSchema = UploadUrlResultSchema;
|
|
3147
3250
|
exports.UserBalanceResponseSchema = UserBalanceResponseSchema;
|
|
3148
3251
|
exports.UserBasicInfoSchema = UserBasicInfoSchema;
|
|
3252
|
+
exports.UserInboxItemSchema = UserInboxItemSchema;
|
|
3253
|
+
exports.UserInboxStatusSchema = UserInboxStatusSchema;
|
|
3254
|
+
exports.UserInboxSubjectTypeSchema = UserInboxSubjectTypeSchema;
|
|
3149
3255
|
exports.UserProfileResponseSchema = UserProfileResponseSchema;
|
|
3150
3256
|
exports.UserWithOAuthAccountsSchema = UserWithOAuthAccountsSchema;
|
|
3151
3257
|
exports.ValidateMachineResponseSchema = ValidateMachineResponseSchema;
|
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
|
|
2
|
+
import { P as PreviewMetadata } from './errors-bwLB4nUC.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 CompanionInitRequestData, a3 as CompanionInitRequestSchema, a4 as CompanionInitResponseData, a5 as CompanionInitResponseSchema, a6 as CompanionReminderMessage, a7 as CreateMergeRequestRequest, a8 as CreateMergeRequestResponse, a9 as CreateMergeRequestResponseSchema, aa as CreateMergeRequestSchema, ab as CreateTaskEventData, ac as CreateTaskShareRequest, ad as CreateTaskShareResponse, ae as CreateTaskShareResponseSchema, af as CreateTaskShareSchema, ag as CreditExhaustedEventData, ah as CreditExhaustedEventSchema, ai as DaemonGitlabOperation, aj as DaemonGitlabOperationSchema, ak as DaemonGitlabRequestEventData, al as DaemonGitlabRequestSchema, am as DaemonGitlabResponseEventData, an as DaemonGitlabResponseSchema, ao as DeployAgentCompleteEventData, ap as DeployAgentCompleteEventSchema, aq as DeployAgentEventData, ar as DeployAgentEventSchema, as as EnsureIssueRootTaskRequest, at as EnsureIssueRootTaskRequestSchema, au as EnsureIssueRootTaskResponse, av as EnsureIssueRootTaskResponseSchema, aw as EventAckData, ax as EventAckSchema, ay as EventData, az as EventMap, aA as EventName, aB as EventSchemaMap, aC as FRAMEWORK_TYPES, aD as FillEventsRequest, aE as FillEventsRequestSchema, aF as FillEventsResponse, aG as FindTaskByAgentRequest, aH as FindTaskByAgentRequestSchema, aI as FindTaskByAgentResponse, aJ as FindTaskByAgentResponseSchema, aK as FrameworkNotSupportedError, aL as FrameworkType, aM as GetTaskSessionResponse, aN as GetTaskSessionResponseSchema, aO as HookFactory, aP as ListRecentTasksRequest, aQ as ListRecentTasksRequestSchema, aR as ListRecentTasksResponse, aS as ListRecentTasksResponseSchema, aT as ListSubTasksRequest, aU as ListSubTasksRequestSchema, aV as ListSubTasksResponse, aW as ListSubTasksResponseSchema, aX as ListTasksRequest, aY as ListTasksRequestSchema, aZ as ListTasksResponse, a_ as ListTasksResponseSchema, a$ as LoadAgentOptions, b0 as MachineAliveEventData, b1 as MachineAliveEventSchema, b2 as MachineRtcRequestEventData, b3 as MachineRtcRequestSchema, b4 as MachineRtcResponseEventData, b5 as MachineRtcResponseSchema, b6 as MergePullRequestAck, b7 as MergePullRequestEventData, b8 as MergePullRequestEventSchema, b9 as MergeRequestEventData, ba as MergeRequestEventSchema, bb as MissingAgentFileError, bc as PermissionResponseRequest, bd as PermissionResponseRequestSchema, be as PermissionResponseResponse, bf as PermissionResponseResponseSchema, bg as PrStateChangedData, bh as PreviewMetadataSchema, bi as PreviewMethod, bj as PreviewMethodSchema, bk as PreviewProjectType, bl as PreviewProjectTypeSchema, bm as ProjectDirectoryResponse, bn as ProjectDirectoryResponseSchema, bo as ProjectEntry, bp as ProjectEntrySchema, bq as QueryEventsRequest, br as QueryEventsRequestSchema, bs as QueryEventsResponse, bt as RecentTaskSummary, bu as RecentTaskSummarySchema, bv as RepositoryInitHookInput, bw as ResetTaskSessionEventData, bx as ResetTaskSessionSchema, by as ResumeTaskEventData, bz as ResumeTaskRequest, bA as ResumeTaskRequestSchema, bB as ResumeTaskResponse, bC as ResumeTaskResponseSchema, bD as RpcCallEventData, bE as RpcCallEventSchema, bF as RpcResponseData, bG as RpcResponseSchema, bH as RtcIceServer, bI as RtcIceServerSchema, bJ as RtcIceServersRequestEventData, bK as RtcIceServersRequestSchema, bL as RtcIceServersResponseEventData, bM as RtcIceServersResponseSchema, bN as RtcSignalEventData, bO as RtcSignalSchema, bP as SendMessageTarget, bQ as SendTaskMessageRequest, bR as SendTaskMessageRequestSchema, bS as SendTaskMessageResponse, bT as SendTaskMessageResponseSchema, bU as SeqSyncRequestEventData, bV as SeqSyncRequestEventDataSchema, bW as SeqSyncResponseEventData, bX as SeqSyncResponseEventDataSchema, bY as ShowModalEventData, bZ as ShowModalEventDataSchema, b_ as ShowModalRequest, b$ as ShowModalRequestSchema, c0 as ShowModalResponse, c1 as ShowModalResponseSchema, c2 as ShutdownMachineData, c3 as ShutdownMachineSchema, c4 as StartTaskRequest, c5 as StartTaskRequestSchema, c6 as StartTaskResponse, c7 as StartTaskResponseSchema, c8 as StopTaskEventData, c9 as StopTaskRequest, ca as StopTaskRequestSchema, cb as StopTaskResponse, cc as StopTaskResponseSchema, cd as StopTaskSchema, ce as SubTaskAskUserMessage, cf as SubTaskResultUpdatedEventData, cg as SubTaskResultUpdatedEventSchema, ch as SubTaskSummary, ci as SubTaskSummarySchema, cj as SystemMessageEventData, ck as SystemMessageSchema, cl as SystemMessageType, cm as TaskAgentInfo, cn as TaskAgentInfoSchema, co as TaskArtifactsStats, cp as TaskArtifactsStatsSchema, cq as TaskArtifactsSummary, cr as TaskArtifactsSummarySchema, cs as TaskEvent, ct as TaskInfoUpdateEventData, cu as TaskInfoUpdateEventDataSchema, cv as TaskItem, cw as TaskItemSchema, cx as TaskMessageEventData, cy as TaskMessagePayload, cz as TaskMessageSchema, cA as TaskSlashCommand, cB as TaskSlashCommandSchema, cC as TaskSlashCommandsUpdateEventData, cD as TaskSlashCommandsUpdateEventDataSchema, cE as TaskState, cF as TaskStateChangeEventData, cG as TaskStateChangeEventSchema, cH as TaskStoppedEventData, cI as TaskStoppedEventSchema, cJ as TaskTodo, cK as TaskTodoSchema, cL as UnarchiveTaskRequest, cM as UnarchiveTaskRequestSchema, cN as UnarchiveTaskResponse, cO as UnarchiveTaskResponseSchema, cP as UpdateAgentInfoEventData, cQ as UpdateAgentInfoEventSchema, cR as UpdateTaskAgentSessionIdEventData, cS as UpdateTaskAgentSessionIdEventSchema, cT as UpdateTaskTitleRequest, cU as UpdateTaskTitleRequestSchema, cV as UpdateTaskTitleResponse, cW as UpdateTaskTitleResponseSchema, cX as ValidationResult, cY as WorkerAliveEventData, cZ as WorkerAliveEventSchema, c_ as WorkerExitEventData, c$ as WorkerExitSchema, d0 as WorkerInitializedEventData, d1 as WorkerInitializedSchema, d2 as WorkerInitializingEventData, d3 as WorkerInitializingSchema, d4 as WorkerPermissionModeEventData, d5 as WorkerPermissionModeSchema, d6 as WorkerPermissionModeValue, d7 as WorkerPermissionModeValueSchema, d8 as WorkerReadyEventData, d9 as WorkerReadySchema, da as WorkerRunningEventData, db as WorkerRunningSchema, dc as WorkerStatusRequestEventData, dd as WorkerStatusRequestSchema, de as WorkerStatusSnapshot, df as WorkerStatusSnapshotSchema, dg as WorkerStatusValue, dh as WorkerStatusValueSchema, di as WorkerTaskEvent, dj as WorkspaceFileRequestEventData, dk as WorkspaceFileRequestSchema, dl as WorkspaceFileResponseEventData, dm as WorkspaceFileResponseSchema, dn as baseTaskSchema, dp as cancelTaskRequestSchema, dq as cancelTaskSchema, dr as createEventId, ds as createMergeRequestSchema, dt as createTaskSchema, du as getAgentContext, dv as isAskUserMessage, dw as isAskUserResponseMessage, dx as isCompanionHeartbeatMessage, dy as isCompanionReminderMessage, dz as isSDKMessage, dA as isSDKUserMessage, dB as isSubTaskAskUserMessage, dC as permissionResponseRequestSchema, dD as resumeTaskRequestSchema, dE as resumeTaskSchema, dF as setAgentContext, dG as startTaskSchema, dH as stopTaskRequestSchema, dI as workerTaskEvents } from './errors-bwLB4nUC.cjs';
|
|
4
4
|
import tweetnacl from 'tweetnacl';
|
|
5
5
|
import { SDKMessage } from '@anthropic-ai/claude-agent-sdk';
|
|
6
6
|
|
|
@@ -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>;
|
|
@@ -745,11 +732,12 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
745
732
|
pullRequestNumber: z.ZodNullable<z.ZodNumber>;
|
|
746
733
|
pullRequestUrl: z.ZodNullable<z.ZodString>;
|
|
747
734
|
pullRequestState: z.ZodNullable<z.ZodEnum<{
|
|
748
|
-
merged: "merged";
|
|
749
|
-
closed: "closed";
|
|
750
735
|
open: "open";
|
|
736
|
+
closed: "closed";
|
|
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<{
|
|
@@ -1935,6 +1923,7 @@ type ListFilesResponse = z.infer<typeof ListFilesResponseSchema>;
|
|
|
1935
1923
|
*/
|
|
1936
1924
|
declare const RepositorySchema: z.ZodObject<{
|
|
1937
1925
|
id: z.ZodString;
|
|
1926
|
+
serverRepoId: z.ZodString;
|
|
1938
1927
|
owner: z.ZodString;
|
|
1939
1928
|
name: z.ZodString;
|
|
1940
1929
|
fullName: z.ZodString;
|
|
@@ -1953,6 +1942,7 @@ type Repository = z.infer<typeof RepositorySchema>;
|
|
|
1953
1942
|
declare const ListRepositoriesResponseSchema: z.ZodObject<{
|
|
1954
1943
|
repositories: z.ZodArray<z.ZodObject<{
|
|
1955
1944
|
id: z.ZodString;
|
|
1945
|
+
serverRepoId: z.ZodString;
|
|
1956
1946
|
owner: z.ZodString;
|
|
1957
1947
|
name: z.ZodString;
|
|
1958
1948
|
fullName: z.ZodString;
|
|
@@ -1972,6 +1962,7 @@ type ListRepositoriesResponse = z.infer<typeof ListRepositoriesResponseSchema>;
|
|
|
1972
1962
|
declare const GetRepositoryResponseSchema: z.ZodObject<{
|
|
1973
1963
|
repository: z.ZodObject<{
|
|
1974
1964
|
id: z.ZodString;
|
|
1965
|
+
serverRepoId: z.ZodString;
|
|
1975
1966
|
owner: z.ZodString;
|
|
1976
1967
|
name: z.ZodString;
|
|
1977
1968
|
fullName: z.ZodString;
|
|
@@ -2055,6 +2046,31 @@ declare const GitHubIssueSchema: z.ZodObject<{
|
|
|
2055
2046
|
title: z.ZodString;
|
|
2056
2047
|
body: z.ZodNullable<z.ZodString>;
|
|
2057
2048
|
html_url: z.ZodString;
|
|
2049
|
+
author: z.ZodOptional<z.ZodString>;
|
|
2050
|
+
authorIdentity: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
2051
|
+
providerUserId: z.ZodOptional<z.ZodString>;
|
|
2052
|
+
username: z.ZodOptional<z.ZodString>;
|
|
2053
|
+
displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2054
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2055
|
+
avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2056
|
+
platformUser: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2057
|
+
id: z.ZodString;
|
|
2058
|
+
username: z.ZodString;
|
|
2059
|
+
avatar: z.ZodNullable<z.ZodString>;
|
|
2060
|
+
}, z.core.$strip>>>;
|
|
2061
|
+
}, z.core.$strip>>>;
|
|
2062
|
+
assigneeIdentities: z.ZodOptional<z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
2063
|
+
providerUserId: z.ZodOptional<z.ZodString>;
|
|
2064
|
+
username: z.ZodOptional<z.ZodString>;
|
|
2065
|
+
displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2066
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2067
|
+
avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2068
|
+
platformUser: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2069
|
+
id: z.ZodString;
|
|
2070
|
+
username: z.ZodString;
|
|
2071
|
+
avatar: z.ZodNullable<z.ZodString>;
|
|
2072
|
+
}, z.core.$strip>>>;
|
|
2073
|
+
}, z.core.$strip>>>>;
|
|
2058
2074
|
}, z.core.$strip>;
|
|
2059
2075
|
type GitHubIssue = z.infer<typeof GitHubIssueSchema>;
|
|
2060
2076
|
/**
|
|
@@ -2093,6 +2109,19 @@ declare const RepositoryReferenceListItemSchema: z.ZodObject<{
|
|
|
2093
2109
|
html_url: z.ZodString;
|
|
2094
2110
|
}, z.core.$strip>;
|
|
2095
2111
|
type RepositoryReferenceListItem = z.infer<typeof RepositoryReferenceListItemSchema>;
|
|
2112
|
+
declare const RepositoryActorIdentitySchema: z.ZodObject<{
|
|
2113
|
+
providerUserId: z.ZodOptional<z.ZodString>;
|
|
2114
|
+
username: z.ZodOptional<z.ZodString>;
|
|
2115
|
+
displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2116
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2117
|
+
avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2118
|
+
platformUser: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2119
|
+
id: z.ZodString;
|
|
2120
|
+
username: z.ZodString;
|
|
2121
|
+
avatar: z.ZodNullable<z.ZodString>;
|
|
2122
|
+
}, z.core.$strip>>>;
|
|
2123
|
+
}, z.core.$strip>;
|
|
2124
|
+
type RepositoryActorIdentity = z.infer<typeof RepositoryActorIdentitySchema>;
|
|
2096
2125
|
declare const RepositoryReferenceSchema: z.ZodObject<{
|
|
2097
2126
|
kind: z.ZodEnum<{
|
|
2098
2127
|
issue: "issue";
|
|
@@ -2103,10 +2132,101 @@ declare const RepositoryReferenceSchema: z.ZodObject<{
|
|
|
2103
2132
|
title: z.ZodString;
|
|
2104
2133
|
body: z.ZodNullable<z.ZodString>;
|
|
2105
2134
|
html_url: z.ZodString;
|
|
2135
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
2136
|
+
open: "open";
|
|
2137
|
+
closed: "closed";
|
|
2138
|
+
merged: "merged";
|
|
2139
|
+
}>>;
|
|
2140
|
+
author: z.ZodOptional<z.ZodString>;
|
|
2141
|
+
authorIdentity: z.ZodOptional<z.ZodObject<{
|
|
2142
|
+
providerUserId: z.ZodOptional<z.ZodString>;
|
|
2143
|
+
username: z.ZodOptional<z.ZodString>;
|
|
2144
|
+
displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2145
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2146
|
+
avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2147
|
+
platformUser: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2148
|
+
id: z.ZodString;
|
|
2149
|
+
username: z.ZodString;
|
|
2150
|
+
avatar: z.ZodNullable<z.ZodString>;
|
|
2151
|
+
}, z.core.$strip>>>;
|
|
2152
|
+
}, z.core.$strip>>;
|
|
2153
|
+
reviewers: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2154
|
+
reviewerIdentities: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2155
|
+
providerUserId: z.ZodOptional<z.ZodString>;
|
|
2156
|
+
username: z.ZodOptional<z.ZodString>;
|
|
2157
|
+
displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2158
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2159
|
+
avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2160
|
+
platformUser: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2161
|
+
id: z.ZodString;
|
|
2162
|
+
username: z.ZodString;
|
|
2163
|
+
avatar: z.ZodNullable<z.ZodString>;
|
|
2164
|
+
}, z.core.$strip>>>;
|
|
2165
|
+
}, z.core.$strip>>>;
|
|
2166
|
+
assigneeIdentities: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2167
|
+
providerUserId: z.ZodOptional<z.ZodString>;
|
|
2168
|
+
username: z.ZodOptional<z.ZodString>;
|
|
2169
|
+
displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2170
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2171
|
+
avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2172
|
+
platformUser: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2173
|
+
id: z.ZodString;
|
|
2174
|
+
username: z.ZodString;
|
|
2175
|
+
avatar: z.ZodNullable<z.ZodString>;
|
|
2176
|
+
}, z.core.$strip>>>;
|
|
2177
|
+
}, z.core.$strip>>>;
|
|
2106
2178
|
head_branch: z.ZodOptional<z.ZodString>;
|
|
2107
2179
|
base_branch: z.ZodOptional<z.ZodString>;
|
|
2108
2180
|
}, z.core.$strip>;
|
|
2109
2181
|
type RepositoryReference = z.infer<typeof RepositoryReferenceSchema>;
|
|
2182
|
+
declare const RepositoryReferenceDiffSchema: z.ZodObject<{
|
|
2183
|
+
diff: z.ZodString;
|
|
2184
|
+
}, z.core.$strip>;
|
|
2185
|
+
type RepositoryReferenceDiff = z.infer<typeof RepositoryReferenceDiffSchema>;
|
|
2186
|
+
declare const RepositoryReferenceCommentSchema: z.ZodObject<{
|
|
2187
|
+
id: z.ZodString;
|
|
2188
|
+
body: z.ZodString;
|
|
2189
|
+
author: z.ZodString;
|
|
2190
|
+
authorIdentity: z.ZodOptional<z.ZodObject<{
|
|
2191
|
+
providerUserId: z.ZodOptional<z.ZodString>;
|
|
2192
|
+
username: z.ZodOptional<z.ZodString>;
|
|
2193
|
+
displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2194
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2195
|
+
avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2196
|
+
platformUser: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2197
|
+
id: z.ZodString;
|
|
2198
|
+
username: z.ZodString;
|
|
2199
|
+
avatar: z.ZodNullable<z.ZodString>;
|
|
2200
|
+
}, z.core.$strip>>>;
|
|
2201
|
+
}, z.core.$strip>>;
|
|
2202
|
+
html_url: z.ZodNullable<z.ZodString>;
|
|
2203
|
+
created_at: z.ZodString;
|
|
2204
|
+
updated_at: z.ZodString;
|
|
2205
|
+
}, z.core.$strip>;
|
|
2206
|
+
type RepositoryReferenceComment = z.infer<typeof RepositoryReferenceCommentSchema>;
|
|
2207
|
+
declare const RepositoryReferenceCommentsResponseSchema: z.ZodObject<{
|
|
2208
|
+
comments: z.ZodArray<z.ZodObject<{
|
|
2209
|
+
id: z.ZodString;
|
|
2210
|
+
body: z.ZodString;
|
|
2211
|
+
author: z.ZodString;
|
|
2212
|
+
authorIdentity: z.ZodOptional<z.ZodObject<{
|
|
2213
|
+
providerUserId: z.ZodOptional<z.ZodString>;
|
|
2214
|
+
username: z.ZodOptional<z.ZodString>;
|
|
2215
|
+
displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2216
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2217
|
+
avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2218
|
+
platformUser: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2219
|
+
id: z.ZodString;
|
|
2220
|
+
username: z.ZodString;
|
|
2221
|
+
avatar: z.ZodNullable<z.ZodString>;
|
|
2222
|
+
}, z.core.$strip>>>;
|
|
2223
|
+
}, z.core.$strip>>;
|
|
2224
|
+
html_url: z.ZodNullable<z.ZodString>;
|
|
2225
|
+
created_at: z.ZodString;
|
|
2226
|
+
updated_at: z.ZodString;
|
|
2227
|
+
}, z.core.$strip>>;
|
|
2228
|
+
}, z.core.$strip>;
|
|
2229
|
+
type RepositoryReferenceCommentsResponse = z.infer<typeof RepositoryReferenceCommentsResponseSchema>;
|
|
2110
2230
|
declare const ListReferencesQuerySchema: z.ZodObject<{
|
|
2111
2231
|
q: z.ZodOptional<z.ZodString>;
|
|
2112
2232
|
}, z.core.$strip>;
|
|
@@ -3016,6 +3136,107 @@ declare const SearchContactCandidatesResponseSchema: z.ZodObject<{
|
|
|
3016
3136
|
}, z.core.$strip>;
|
|
3017
3137
|
type SearchContactCandidatesResponse = z.infer<typeof SearchContactCandidatesResponseSchema>;
|
|
3018
3138
|
|
|
3139
|
+
declare const UserInboxSubjectTypeSchema: z.ZodEnum<{
|
|
3140
|
+
task: "task";
|
|
3141
|
+
issue: "issue";
|
|
3142
|
+
reference: "reference";
|
|
3143
|
+
}>;
|
|
3144
|
+
type UserInboxSubjectType = z.infer<typeof UserInboxSubjectTypeSchema>;
|
|
3145
|
+
declare const UserInboxStatusSchema: z.ZodEnum<{
|
|
3146
|
+
needs_reply: "needs_reply";
|
|
3147
|
+
needs_review: "needs_review";
|
|
3148
|
+
}>;
|
|
3149
|
+
type UserInboxStatus = z.infer<typeof UserInboxStatusSchema>;
|
|
3150
|
+
declare const UserInboxItemSchema: z.ZodObject<{
|
|
3151
|
+
id: z.ZodString;
|
|
3152
|
+
userId: z.ZodString;
|
|
3153
|
+
repositoryId: z.ZodString;
|
|
3154
|
+
subjectType: z.ZodEnum<{
|
|
3155
|
+
task: "task";
|
|
3156
|
+
issue: "issue";
|
|
3157
|
+
reference: "reference";
|
|
3158
|
+
}>;
|
|
3159
|
+
subjectId: z.ZodString;
|
|
3160
|
+
targetSubjectType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
3161
|
+
task: "task";
|
|
3162
|
+
issue: "issue";
|
|
3163
|
+
reference: "reference";
|
|
3164
|
+
}>>>;
|
|
3165
|
+
targetSubjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3166
|
+
status: z.ZodEnum<{
|
|
3167
|
+
needs_reply: "needs_reply";
|
|
3168
|
+
needs_review: "needs_review";
|
|
3169
|
+
}>;
|
|
3170
|
+
title: z.ZodString;
|
|
3171
|
+
body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3172
|
+
isResolved: z.ZodBoolean;
|
|
3173
|
+
openedAt: z.ZodString;
|
|
3174
|
+
resolvedAt: z.ZodNullable<z.ZodString>;
|
|
3175
|
+
metadataJson: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
3176
|
+
}, z.core.$strip>;
|
|
3177
|
+
type UserInboxItem = z.infer<typeof UserInboxItemSchema>;
|
|
3178
|
+
declare const ListUserInboxResponseSchema: z.ZodObject<{
|
|
3179
|
+
items: z.ZodArray<z.ZodObject<{
|
|
3180
|
+
id: z.ZodString;
|
|
3181
|
+
userId: z.ZodString;
|
|
3182
|
+
repositoryId: z.ZodString;
|
|
3183
|
+
subjectType: z.ZodEnum<{
|
|
3184
|
+
task: "task";
|
|
3185
|
+
issue: "issue";
|
|
3186
|
+
reference: "reference";
|
|
3187
|
+
}>;
|
|
3188
|
+
subjectId: z.ZodString;
|
|
3189
|
+
targetSubjectType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
3190
|
+
task: "task";
|
|
3191
|
+
issue: "issue";
|
|
3192
|
+
reference: "reference";
|
|
3193
|
+
}>>>;
|
|
3194
|
+
targetSubjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3195
|
+
status: z.ZodEnum<{
|
|
3196
|
+
needs_reply: "needs_reply";
|
|
3197
|
+
needs_review: "needs_review";
|
|
3198
|
+
}>;
|
|
3199
|
+
title: z.ZodString;
|
|
3200
|
+
body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3201
|
+
isResolved: z.ZodBoolean;
|
|
3202
|
+
openedAt: z.ZodString;
|
|
3203
|
+
resolvedAt: z.ZodNullable<z.ZodString>;
|
|
3204
|
+
metadataJson: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
3205
|
+
}, z.core.$strip>>;
|
|
3206
|
+
}, z.core.$strip>;
|
|
3207
|
+
type ListUserInboxResponse = z.infer<typeof ListUserInboxResponseSchema>;
|
|
3208
|
+
declare const ResolveUserInboxItemResponseSchema: z.ZodObject<{
|
|
3209
|
+
success: z.ZodBoolean;
|
|
3210
|
+
item: z.ZodObject<{
|
|
3211
|
+
id: z.ZodString;
|
|
3212
|
+
userId: z.ZodString;
|
|
3213
|
+
repositoryId: z.ZodString;
|
|
3214
|
+
subjectType: z.ZodEnum<{
|
|
3215
|
+
task: "task";
|
|
3216
|
+
issue: "issue";
|
|
3217
|
+
reference: "reference";
|
|
3218
|
+
}>;
|
|
3219
|
+
subjectId: z.ZodString;
|
|
3220
|
+
targetSubjectType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
3221
|
+
task: "task";
|
|
3222
|
+
issue: "issue";
|
|
3223
|
+
reference: "reference";
|
|
3224
|
+
}>>>;
|
|
3225
|
+
targetSubjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3226
|
+
status: z.ZodEnum<{
|
|
3227
|
+
needs_reply: "needs_reply";
|
|
3228
|
+
needs_review: "needs_review";
|
|
3229
|
+
}>;
|
|
3230
|
+
title: z.ZodString;
|
|
3231
|
+
body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3232
|
+
isResolved: z.ZodBoolean;
|
|
3233
|
+
openedAt: z.ZodString;
|
|
3234
|
+
resolvedAt: z.ZodNullable<z.ZodString>;
|
|
3235
|
+
metadataJson: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
3236
|
+
}, z.core.$strip>;
|
|
3237
|
+
}, z.core.$strip>;
|
|
3238
|
+
type ResolveUserInboxItemResponse = z.infer<typeof ResolveUserInboxItemResponseSchema>;
|
|
3239
|
+
|
|
3019
3240
|
type ClientType = 'user' | 'worker' | 'machine';
|
|
3020
3241
|
interface AuthPayload {
|
|
3021
3242
|
token: string;
|
|
@@ -3274,5 +3495,5 @@ declare function detectPreview(fs: FileSystemAdapter): Promise<PreviewMetadata |
|
|
|
3274
3495
|
*/
|
|
3275
3496
|
declare function decodeGitPath(rawPath: string): string;
|
|
3276
3497
|
|
|
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,
|
|
3498
|
+
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, ListUserInboxResponseSchema, 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, ResolveUserInboxItemResponseSchema, 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, UserInboxItemSchema, UserInboxStatusSchema, UserInboxSubjectTypeSchema, 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 };
|
|
3499
|
+
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, ListUserInboxResponse, 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, ResolveUserInboxItemResponse, 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, UserInboxItem, UserInboxStatus, UserInboxSubjectType, 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 { a$ as LoadAgentOptions, b as AgentConfig, cX as ValidationResult, aL as FrameworkType } from './errors-bwLB4nUC.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, aC as FRAMEWORK_TYPES, aK as FrameworkNotSupportedError, aO as HookFactory, bb as MissingAgentFileError, bv as RepositoryInitHookInput, du as getAgentContext, dF as setAgentContext } from './errors-bwLB4nUC.cjs';
|
|
3
3
|
import '@anthropic-ai/claude-agent-sdk';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|