@agentrix/shared 2.8.2 → 2.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{errors-VhyN-E3X.d.cts → errors-B6LhjViV.d.cts} +72 -9
- package/dist/index.cjs +273 -4
- package/dist/index.d.cts +574 -7
- package/dist/node.d.cts +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -92,6 +92,7 @@ const UserProfileResponseSchema = zod.z.object({
|
|
|
92
92
|
});
|
|
93
93
|
const UpdateUserProfileRequestSchema = zod.z.object({
|
|
94
94
|
username: zod.z.string().min(1).optional(),
|
|
95
|
+
email: zod.z.string().trim().email().optional(),
|
|
95
96
|
avatar: zod.z.string().nullable().optional()
|
|
96
97
|
});
|
|
97
98
|
const UpdateUserProfileResponseSchema = UserProfileResponseSchema;
|
|
@@ -206,6 +207,13 @@ const ShareAuthResponseSchema = zod.z.object({
|
|
|
206
207
|
permissions: TaskSharePermissionsSchema
|
|
207
208
|
});
|
|
208
209
|
|
|
210
|
+
const workerExecutionModes = ["loop", "oneshot"];
|
|
211
|
+
const DEFAULT_WORKER_EXECUTION_MODE = "loop";
|
|
212
|
+
const WorkerExecutionModeSchema = zod.z.enum(workerExecutionModes);
|
|
213
|
+
function normalizeWorkerExecutionMode(value) {
|
|
214
|
+
const parsed = WorkerExecutionModeSchema.safeParse(value);
|
|
215
|
+
return parsed.success ? parsed.data : DEFAULT_WORKER_EXECUTION_MODE;
|
|
216
|
+
}
|
|
209
217
|
const TaskTodoSchema = zod.z.object({
|
|
210
218
|
agentId: zod.z.string(),
|
|
211
219
|
title: zod.z.string().min(1).max(200),
|
|
@@ -235,6 +243,7 @@ const StartTaskRequestSchema = zod.z.object({
|
|
|
235
243
|
repositoryId: zod.z.string().optional(),
|
|
236
244
|
baseBranch: zod.z.string().optional(),
|
|
237
245
|
// Base branch for the repository
|
|
246
|
+
workerExecutionMode: WorkerExecutionModeSchema.optional(),
|
|
238
247
|
repositorySourceType: zod.z.enum(["temporary", "directory", "git-server"]).optional(),
|
|
239
248
|
// Repository source type
|
|
240
249
|
dataEncryptionKey: zod.z.string().optional(),
|
|
@@ -288,6 +297,7 @@ const StartTaskResponseSchema = zod.z.object({
|
|
|
288
297
|
cloudId: zod.z.string().nullable(),
|
|
289
298
|
repositoryId: zod.z.string().nullable(),
|
|
290
299
|
baseBranch: zod.z.string().nullable(),
|
|
300
|
+
workerExecutionMode: WorkerExecutionModeSchema,
|
|
291
301
|
title: zod.z.string().nullable(),
|
|
292
302
|
customTitle: zod.z.string().nullable(),
|
|
293
303
|
userCwd: zod.z.string().nullable(),
|
|
@@ -320,6 +330,7 @@ const TaskItemSchema = zod.z.object({
|
|
|
320
330
|
baseBranch: zod.z.string().nullable(),
|
|
321
331
|
branchName: zod.z.string().nullable(),
|
|
322
332
|
// Explicit branch name override (e.g. issue/42/code)
|
|
333
|
+
workerExecutionMode: WorkerExecutionModeSchema,
|
|
323
334
|
title: zod.z.string().nullable(),
|
|
324
335
|
// Task title (can be set by worker)
|
|
325
336
|
customTitle: zod.z.string().nullable(),
|
|
@@ -900,6 +911,14 @@ const CloudSchema = zod.z.object({
|
|
|
900
911
|
owner: IdSchema,
|
|
901
912
|
name: zod.z.string(),
|
|
902
913
|
type: zod.z.enum(["public", "private"]),
|
|
914
|
+
status: zod.z.enum(["active", "suspended"]),
|
|
915
|
+
role: zod.z.enum(["owner", "member"]).optional(),
|
|
916
|
+
userStatus: zod.z.enum(["active", "pending", "revoked"]).optional(),
|
|
917
|
+
maxMachineCount: zod.z.number().int().nonnegative().nullable().optional(),
|
|
918
|
+
maxMemberCount: zod.z.number().int().nonnegative().nullable().optional(),
|
|
919
|
+
machineCount: zod.z.number().int().nonnegative().optional(),
|
|
920
|
+
onlineMachineCount: zod.z.number().int().nonnegative().optional(),
|
|
921
|
+
memberCount: zod.z.number().int().nonnegative().optional(),
|
|
903
922
|
createdAt: zod.z.string(),
|
|
904
923
|
// ISO 8601 string
|
|
905
924
|
updatedAt: zod.z.string(),
|
|
@@ -1145,9 +1164,14 @@ const CreateCloudResponseSchema = zod.z.object({
|
|
|
1145
1164
|
id: IdSchema,
|
|
1146
1165
|
owner: zod.z.string(),
|
|
1147
1166
|
name: zod.z.string(),
|
|
1167
|
+
type: zod.z.enum(["public", "private"]),
|
|
1168
|
+
status: zod.z.enum(["active", "suspended"]),
|
|
1148
1169
|
secret: zod.z.string(),
|
|
1149
1170
|
// JWT token for cloud authentication
|
|
1150
|
-
|
|
1171
|
+
maxMachineCount: zod.z.number().int().nullable().optional(),
|
|
1172
|
+
maxMemberCount: zod.z.number().int().nullable().optional(),
|
|
1173
|
+
createdAt: DateSchema,
|
|
1174
|
+
updatedAt: DateSchema
|
|
1151
1175
|
});
|
|
1152
1176
|
|
|
1153
1177
|
const OAuthServerSchema = zod.z.object({
|
|
@@ -1206,11 +1230,21 @@ const ToggleOAuthServerRequestSchema = zod.z.object({
|
|
|
1206
1230
|
const ToggleOAuthServerResponseSchema = OAuthServerSchema;
|
|
1207
1231
|
const ListOAuthServersPublicResponseSchema = zod.z.array(OAuthServerPublicSchema);
|
|
1208
1232
|
|
|
1233
|
+
const StripeCheckoutClientSchema = zod.z.enum(["android", "ios", "web"]);
|
|
1209
1234
|
const RechargeResponseSchema = zod.z.object({
|
|
1210
1235
|
success: zod.z.literal(true),
|
|
1211
1236
|
packageId: zod.z.string(),
|
|
1212
1237
|
newBalance: zod.z.number().nonnegative()
|
|
1213
1238
|
});
|
|
1239
|
+
const CreateDirectRechargeCheckoutRequestSchema = zod.z.object({
|
|
1240
|
+
successUrl: zod.z.string().url(),
|
|
1241
|
+
cancelUrl: zod.z.string().url(),
|
|
1242
|
+
amount: zod.z.number().int().positive(),
|
|
1243
|
+
client: StripeCheckoutClientSchema
|
|
1244
|
+
});
|
|
1245
|
+
const CreateDirectRechargeCheckoutResponseSchema = zod.z.object({
|
|
1246
|
+
url: zod.z.string().url()
|
|
1247
|
+
});
|
|
1214
1248
|
const UserBalanceResponseSchema = zod.z.object({
|
|
1215
1249
|
userId: zod.z.string(),
|
|
1216
1250
|
balance: zod.z.number().nonnegative(),
|
|
@@ -1339,6 +1373,10 @@ const SubscriptionPlanSchema = zod.z.object({
|
|
|
1339
1373
|
features: zod.z.array(zod.z.string()),
|
|
1340
1374
|
popular: zod.z.boolean(),
|
|
1341
1375
|
enabled: zod.z.boolean(),
|
|
1376
|
+
privateCloudEnabled: zod.z.boolean(),
|
|
1377
|
+
maxPrivateClouds: zod.z.number().int().nonnegative(),
|
|
1378
|
+
maxMachinesPerPrivateCloud: zod.z.number().int().nonnegative(),
|
|
1379
|
+
maxPrivateCloudMembers: zod.z.number().int().nonnegative(),
|
|
1342
1380
|
createdAt: DateSchema,
|
|
1343
1381
|
updatedAt: DateSchema
|
|
1344
1382
|
});
|
|
@@ -1365,7 +1403,8 @@ const GetSubscriptionResponseSchema = zod.z.object({
|
|
|
1365
1403
|
const CreateCheckoutRequestSchema = zod.z.object({
|
|
1366
1404
|
priceId: zod.z.string(),
|
|
1367
1405
|
successUrl: zod.z.string().url(),
|
|
1368
|
-
cancelUrl: zod.z.string().url()
|
|
1406
|
+
cancelUrl: zod.z.string().url(),
|
|
1407
|
+
client: StripeCheckoutClientSchema
|
|
1369
1408
|
});
|
|
1370
1409
|
const CreateCheckoutResponseSchema = zod.z.object({
|
|
1371
1410
|
url: zod.z.string().url()
|
|
@@ -1404,18 +1443,90 @@ const CreateSubscriptionPlanRequestSchema = zod.z.object({
|
|
|
1404
1443
|
price: zod.z.number().positive(),
|
|
1405
1444
|
credits: zod.z.number().positive(),
|
|
1406
1445
|
features: zod.z.array(zod.z.string()),
|
|
1407
|
-
popular: zod.z.boolean().optional()
|
|
1446
|
+
popular: zod.z.boolean().optional(),
|
|
1447
|
+
privateCloudEnabled: zod.z.boolean().optional(),
|
|
1448
|
+
maxPrivateClouds: zod.z.number().int().nonnegative().optional(),
|
|
1449
|
+
maxMachinesPerPrivateCloud: zod.z.number().int().nonnegative().optional(),
|
|
1450
|
+
maxPrivateCloudMembers: zod.z.number().int().nonnegative().optional()
|
|
1408
1451
|
});
|
|
1409
1452
|
const UpdateSubscriptionPlanRequestSchema = zod.z.object({
|
|
1410
1453
|
name: zod.z.string().optional(),
|
|
1411
1454
|
features: zod.z.array(zod.z.string()).optional(),
|
|
1412
1455
|
popular: zod.z.boolean().optional(),
|
|
1413
|
-
enabled: zod.z.boolean().optional()
|
|
1456
|
+
enabled: zod.z.boolean().optional(),
|
|
1457
|
+
privateCloudEnabled: zod.z.boolean().optional(),
|
|
1458
|
+
maxPrivateClouds: zod.z.number().int().nonnegative().optional(),
|
|
1459
|
+
maxMachinesPerPrivateCloud: zod.z.number().int().nonnegative().optional(),
|
|
1460
|
+
maxPrivateCloudMembers: zod.z.number().int().nonnegative().optional()
|
|
1414
1461
|
});
|
|
1415
1462
|
const ListSubscriptionPlansResponseSchema = zod.z.object({
|
|
1416
1463
|
plans: zod.z.array(SubscriptionPlanSchema)
|
|
1417
1464
|
});
|
|
1418
1465
|
|
|
1466
|
+
const PrivateCloudEntitlementSchema = zod.z.object({
|
|
1467
|
+
enabled: zod.z.boolean(),
|
|
1468
|
+
maxPrivateClouds: zod.z.number().int().nonnegative(),
|
|
1469
|
+
maxMachinesPerPrivateCloud: zod.z.number().int().nonnegative(),
|
|
1470
|
+
maxPrivateCloudMembers: zod.z.number().int().nonnegative(),
|
|
1471
|
+
currentPrivateCloudCount: zod.z.number().int().nonnegative()
|
|
1472
|
+
});
|
|
1473
|
+
const PrivateCloudSummarySchema = CloudSchema.refine(
|
|
1474
|
+
(cloud) => cloud.type === "private",
|
|
1475
|
+
{ message: "Private cloud summary must have type=private" }
|
|
1476
|
+
);
|
|
1477
|
+
const ListPrivateCloudsResponseSchema = zod.z.object({
|
|
1478
|
+
clouds: zod.z.array(PrivateCloudSummarySchema),
|
|
1479
|
+
entitlement: PrivateCloudEntitlementSchema
|
|
1480
|
+
});
|
|
1481
|
+
const CreatePrivateCloudRequestSchema = zod.z.object({
|
|
1482
|
+
name: zod.z.string().trim().min(1).max(64)
|
|
1483
|
+
});
|
|
1484
|
+
const CreatePrivateCloudResponseSchema = zod.z.object({
|
|
1485
|
+
cloud: PrivateCloudSummarySchema,
|
|
1486
|
+
secret: zod.z.string()
|
|
1487
|
+
});
|
|
1488
|
+
const PrivateCloudInviteSchema = zod.z.object({
|
|
1489
|
+
id: IdSchema,
|
|
1490
|
+
cloudId: IdSchema,
|
|
1491
|
+
createdBy: IdSchema,
|
|
1492
|
+
role: zod.z.enum(["member"]),
|
|
1493
|
+
token: zod.z.string(),
|
|
1494
|
+
expiresAt: DateSchema,
|
|
1495
|
+
maxUses: zod.z.number().int().positive(),
|
|
1496
|
+
usedCount: zod.z.number().int().nonnegative(),
|
|
1497
|
+
status: zod.z.enum(["active", "expired", "consumed", "revoked"]),
|
|
1498
|
+
createdAt: DateSchema,
|
|
1499
|
+
updatedAt: DateSchema
|
|
1500
|
+
});
|
|
1501
|
+
const CreatePrivateCloudInviteRequestSchema = zod.z.object({
|
|
1502
|
+
expiresInDays: zod.z.number().int().positive().max(30).optional(),
|
|
1503
|
+
maxUses: zod.z.number().int().positive().max(100).optional()
|
|
1504
|
+
});
|
|
1505
|
+
const CreatePrivateCloudInviteResponseSchema = zod.z.object({
|
|
1506
|
+
invite: PrivateCloudInviteSchema
|
|
1507
|
+
});
|
|
1508
|
+
const AcceptPrivateCloudInviteRequestSchema = zod.z.object({
|
|
1509
|
+
token: zod.z.string().trim().min(1)
|
|
1510
|
+
});
|
|
1511
|
+
const AcceptPrivateCloudInviteResponseSchema = zod.z.object({
|
|
1512
|
+
cloud: PrivateCloudSummarySchema
|
|
1513
|
+
});
|
|
1514
|
+
const PrivateCloudMemberSchema = zod.z.object({
|
|
1515
|
+
userId: IdSchema,
|
|
1516
|
+
username: zod.z.string().nullable(),
|
|
1517
|
+
avatar: zod.z.string().nullable(),
|
|
1518
|
+
role: zod.z.enum(["owner", "member"]),
|
|
1519
|
+
status: zod.z.enum(["active", "pending", "revoked"]),
|
|
1520
|
+
createdAt: DateSchema
|
|
1521
|
+
});
|
|
1522
|
+
const ListPrivateCloudMembersResponseSchema = zod.z.object({
|
|
1523
|
+
members: zod.z.array(PrivateCloudMemberSchema)
|
|
1524
|
+
});
|
|
1525
|
+
const RemovePrivateCloudMemberResponseSchema = SimpleSuccessSchema;
|
|
1526
|
+
const GetPrivateCloudRunnerSecretResponseSchema = zod.z.object({
|
|
1527
|
+
secret: zod.z.string()
|
|
1528
|
+
});
|
|
1529
|
+
|
|
1419
1530
|
const ContactTargetTypeSchema = zod.z.enum(["human", "agent"]);
|
|
1420
1531
|
const ContactSchema = zod.z.object({
|
|
1421
1532
|
id: IdSchema,
|
|
@@ -1482,6 +1593,120 @@ const ResolveUserInboxItemResponseSchema = zod.z.object({
|
|
|
1482
1593
|
item: UserInboxItemSchema
|
|
1483
1594
|
});
|
|
1484
1595
|
|
|
1596
|
+
const CiProviderSchema = zod.z.enum(["github_actions", "gitlab_ci"]);
|
|
1597
|
+
const JsonSchemaDocumentSchema = zod.z.record(zod.z.string(), zod.z.unknown());
|
|
1598
|
+
const CiRunStatusSchema = zod.z.enum([
|
|
1599
|
+
"queued",
|
|
1600
|
+
"running",
|
|
1601
|
+
"completed",
|
|
1602
|
+
"failed",
|
|
1603
|
+
"canceled",
|
|
1604
|
+
"timeout"
|
|
1605
|
+
]);
|
|
1606
|
+
const CiRunRepoSchema = zod.z.object({
|
|
1607
|
+
gitServerId: zod.z.string().min(1),
|
|
1608
|
+
serverRepoId: zod.z.string().min(1).optional(),
|
|
1609
|
+
owner: zod.z.string().optional(),
|
|
1610
|
+
name: zod.z.string().optional()
|
|
1611
|
+
}).refine(
|
|
1612
|
+
(value) => Boolean(value.serverRepoId) || Boolean(value.owner) && Boolean(value.name),
|
|
1613
|
+
{
|
|
1614
|
+
message: "repo.gitServerId plus repo.serverRepoId or repo.owner+repo.name is required"
|
|
1615
|
+
}
|
|
1616
|
+
);
|
|
1617
|
+
const CiRunGitSchema = zod.z.object({
|
|
1618
|
+
ref: zod.z.string().optional(),
|
|
1619
|
+
sha: zod.z.string().optional(),
|
|
1620
|
+
baseRef: zod.z.string().optional(),
|
|
1621
|
+
headRef: zod.z.string().optional(),
|
|
1622
|
+
prNumber: zod.z.number().int().positive().optional(),
|
|
1623
|
+
issueNumber: zod.z.number().int().positive().optional()
|
|
1624
|
+
});
|
|
1625
|
+
const CiRunExecutionSchema = zod.z.object({
|
|
1626
|
+
capabilityProfile: zod.z.string().optional(),
|
|
1627
|
+
runnerId: zod.z.string().optional()
|
|
1628
|
+
});
|
|
1629
|
+
const CiRunContextSchema = zod.z.object({
|
|
1630
|
+
ciProvider: CiProviderSchema,
|
|
1631
|
+
eventName: zod.z.string().optional(),
|
|
1632
|
+
eventAction: zod.z.string().optional(),
|
|
1633
|
+
jobUrl: zod.z.string().url().optional(),
|
|
1634
|
+
runUrl: zod.z.string().url().optional(),
|
|
1635
|
+
payload: zod.z.record(zod.z.string(), zod.z.unknown()).optional()
|
|
1636
|
+
});
|
|
1637
|
+
const CreateCiRunRequestSchema = zod.z.object({
|
|
1638
|
+
agent: zod.z.string().min(1),
|
|
1639
|
+
title: zod.z.string().min(1).max(200).optional(),
|
|
1640
|
+
prompt: zod.z.string().min(1),
|
|
1641
|
+
outputSchema: JsonSchemaDocumentSchema.optional(),
|
|
1642
|
+
repo: CiRunRepoSchema,
|
|
1643
|
+
git: CiRunGitSchema,
|
|
1644
|
+
execution: CiRunExecutionSchema,
|
|
1645
|
+
context: CiRunContextSchema.optional(),
|
|
1646
|
+
metadata: zod.z.record(zod.z.string(), zod.z.string()).optional()
|
|
1647
|
+
});
|
|
1648
|
+
const CreateCiRunResponseSchema = zod.z.object({
|
|
1649
|
+
runId: zod.z.string().min(1),
|
|
1650
|
+
status: zod.z.enum(["queued", "running", "completed", "failed"]),
|
|
1651
|
+
detailUrl: zod.z.string().url()
|
|
1652
|
+
});
|
|
1653
|
+
const CiRunStatusResponseSchema = zod.z.object({
|
|
1654
|
+
runId: zod.z.string().min(1),
|
|
1655
|
+
status: CiRunStatusSchema,
|
|
1656
|
+
result: zod.z.string(),
|
|
1657
|
+
structuredOutput: zod.z.unknown().optional(),
|
|
1658
|
+
detailUrl: zod.z.string().url()
|
|
1659
|
+
});
|
|
1660
|
+
const CancelCiRunResponseSchema = zod.z.object({
|
|
1661
|
+
message: zod.z.string(),
|
|
1662
|
+
runId: zod.z.string().min(1)
|
|
1663
|
+
});
|
|
1664
|
+
|
|
1665
|
+
const ApiKeySchema = zod.z.object({
|
|
1666
|
+
id: zod.z.string().min(1),
|
|
1667
|
+
name: zod.z.string().min(1).max(100),
|
|
1668
|
+
keyPrefix: zod.z.string().min(1),
|
|
1669
|
+
enabled: zod.z.boolean(),
|
|
1670
|
+
quota: zod.z.number().nullable(),
|
|
1671
|
+
lastUsedAt: zod.z.string().datetime().nullable(),
|
|
1672
|
+
expiresAt: zod.z.string().datetime().nullable(),
|
|
1673
|
+
createdAt: zod.z.string().datetime()
|
|
1674
|
+
});
|
|
1675
|
+
const CreateApiKeyRequestSchema = zod.z.object({
|
|
1676
|
+
name: zod.z.string().min(1).max(100),
|
|
1677
|
+
expiresInDays: zod.z.number().int().positive().optional()
|
|
1678
|
+
});
|
|
1679
|
+
const CreateApiKeyResponseSchema = zod.z.object({
|
|
1680
|
+
apiKey: zod.z.string().min(1),
|
|
1681
|
+
id: zod.z.string().min(1),
|
|
1682
|
+
name: zod.z.string().min(1).max(100),
|
|
1683
|
+
keyPrefix: zod.z.string().min(1),
|
|
1684
|
+
expiresAt: zod.z.string().datetime().nullable(),
|
|
1685
|
+
createdAt: zod.z.string().datetime()
|
|
1686
|
+
});
|
|
1687
|
+
const ListApiKeysQuerySchema = zod.z.object({
|
|
1688
|
+
includeDisabled: zod.z.string().optional().transform((val) => val === "true"),
|
|
1689
|
+
page: zod.z.string().optional().transform((val) => val ? parseInt(val, 10) : 1).refine((val) => val > 0, "Page must be positive"),
|
|
1690
|
+
limit: zod.z.string().optional().transform((val) => val ? parseInt(val, 10) : 10).refine((val) => val > 0 && val <= 100, "Limit must be between 1 and 100")
|
|
1691
|
+
});
|
|
1692
|
+
const ListApiKeysResponseSchema = zod.z.object({
|
|
1693
|
+
items: zod.z.array(ApiKeySchema),
|
|
1694
|
+
total: zod.z.number().int().nonnegative(),
|
|
1695
|
+
page: zod.z.number().int().positive(),
|
|
1696
|
+
limit: zod.z.number().int().positive(),
|
|
1697
|
+
totalPages: zod.z.number().int().nonnegative()
|
|
1698
|
+
});
|
|
1699
|
+
const UpdateApiKeyRequestSchema = zod.z.object({
|
|
1700
|
+
name: zod.z.string().min(1).max(100).optional(),
|
|
1701
|
+
expiresInDays: zod.z.number().int().positive().optional()
|
|
1702
|
+
});
|
|
1703
|
+
const ToggleApiKeyRequestSchema = zod.z.object({
|
|
1704
|
+
enabled: zod.z.boolean()
|
|
1705
|
+
});
|
|
1706
|
+
const DeleteApiKeyResponseSchema = zod.z.object({
|
|
1707
|
+
success: zod.z.literal(true)
|
|
1708
|
+
});
|
|
1709
|
+
|
|
1485
1710
|
const RpcCallEventSchema = zod.z.object({
|
|
1486
1711
|
eventId: zod.z.string(),
|
|
1487
1712
|
taskId: zod.z.string(),
|
|
@@ -1950,6 +2175,8 @@ const baseTaskSchema = EventBaseSchema.extend({
|
|
|
1950
2175
|
// Custom API key
|
|
1951
2176
|
maxTurns: zod.z.number().optional(),
|
|
1952
2177
|
// Maximum number of turns for the agent (default: 50)
|
|
2178
|
+
workerExecutionMode: WorkerExecutionModeSchema.optional().default(DEFAULT_WORKER_EXECUTION_MODE),
|
|
2179
|
+
// Worker lifecycle mode: loop (default) or oneshot
|
|
1953
2180
|
repositoryId: zod.z.string().optional(),
|
|
1954
2181
|
// Existing repository ID (used to skip auto-association)
|
|
1955
2182
|
repositorySourceType: zod.z.enum(["temporary", "directory", "git-server"]).optional().default("temporary"),
|
|
@@ -1971,6 +2198,8 @@ const baseTaskSchema = EventBaseSchema.extend({
|
|
|
1971
2198
|
// Task type: 'chat' for main chat, 'work' for task execution, 'shadow' for companion shadow
|
|
1972
2199
|
customTitle: zod.z.string().min(1).max(200).optional(),
|
|
1973
2200
|
// Custom task title (set by user/tool)
|
|
2201
|
+
outputSchema: JsonSchemaDocumentSchema.optional(),
|
|
2202
|
+
// Optional structured output schema for the runner
|
|
1974
2203
|
agentGitUrl: zod.z.string().optional(),
|
|
1975
2204
|
// Agent git clone URL for auto-install on first run
|
|
1976
2205
|
agentGitSubDir: zod.z.string().nullable().optional()
|
|
@@ -2978,6 +3207,8 @@ exports.FrameworkNotSupportedError = errors.FrameworkNotSupportedError;
|
|
|
2978
3207
|
exports.MissingAgentFileError = errors.MissingAgentFileError;
|
|
2979
3208
|
exports.getAgentContext = errors.getAgentContext;
|
|
2980
3209
|
exports.setAgentContext = errors.setAgentContext;
|
|
3210
|
+
exports.AcceptPrivateCloudInviteRequestSchema = AcceptPrivateCloudInviteRequestSchema;
|
|
3211
|
+
exports.AcceptPrivateCloudInviteResponseSchema = AcceptPrivateCloudInviteResponseSchema;
|
|
2981
3212
|
exports.ActiveAgentSchema = ActiveAgentSchema;
|
|
2982
3213
|
exports.AddChatMemberRequestSchema = AddChatMemberRequestSchema;
|
|
2983
3214
|
exports.AddChatMemberResponseSchema = AddChatMemberResponseSchema;
|
|
@@ -2986,6 +3217,7 @@ exports.AgentPermissionsSchema = AgentPermissionsSchema;
|
|
|
2986
3217
|
exports.AgentSchema = AgentSchema;
|
|
2987
3218
|
exports.AgentTypeSchema = AgentTypeSchema;
|
|
2988
3219
|
exports.ApiErrorSchema = ApiErrorSchema;
|
|
3220
|
+
exports.ApiKeySchema = ApiKeySchema;
|
|
2989
3221
|
exports.ApiServerAliveEventSchema = ApiServerAliveEventSchema;
|
|
2990
3222
|
exports.AppAliveEventSchema = AppAliveEventSchema;
|
|
2991
3223
|
exports.ApprovalStatusResponseSchema = ApprovalStatusResponseSchema;
|
|
@@ -3003,6 +3235,7 @@ exports.AssociateRepoEventDataSchema = AssociateRepoEventDataSchema;
|
|
|
3003
3235
|
exports.BillingStatsResponseSchema = BillingStatsResponseSchema;
|
|
3004
3236
|
exports.BranchSchema = BranchSchema;
|
|
3005
3237
|
exports.CONFIG_FILES = CONFIG_FILES;
|
|
3238
|
+
exports.CancelCiRunResponseSchema = CancelCiRunResponseSchema;
|
|
3006
3239
|
exports.CancelSubscriptionResponseSchema = CancelSubscriptionResponseSchema;
|
|
3007
3240
|
exports.CancelTaskRequestSchema = CancelTaskRequestSchema;
|
|
3008
3241
|
exports.CancelTaskResponseSchema = CancelTaskResponseSchema;
|
|
@@ -3015,6 +3248,13 @@ exports.ChatTypeSchema = ChatTypeSchema;
|
|
|
3015
3248
|
exports.ChatWithMembersSchema = ChatWithMembersSchema;
|
|
3016
3249
|
exports.ChatWorkersStatusRequestSchema = ChatWorkersStatusRequestSchema;
|
|
3017
3250
|
exports.ChatWorkersStatusResponseSchema = ChatWorkersStatusResponseSchema;
|
|
3251
|
+
exports.CiProviderSchema = CiProviderSchema;
|
|
3252
|
+
exports.CiRunContextSchema = CiRunContextSchema;
|
|
3253
|
+
exports.CiRunExecutionSchema = CiRunExecutionSchema;
|
|
3254
|
+
exports.CiRunGitSchema = CiRunGitSchema;
|
|
3255
|
+
exports.CiRunRepoSchema = CiRunRepoSchema;
|
|
3256
|
+
exports.CiRunStatusResponseSchema = CiRunStatusResponseSchema;
|
|
3257
|
+
exports.CiRunStatusSchema = CiRunStatusSchema;
|
|
3018
3258
|
exports.CloudJoinApprovalRequestSchema = CloudJoinApprovalRequestSchema;
|
|
3019
3259
|
exports.CloudJoinRequestSchema = CloudJoinRequestSchema;
|
|
3020
3260
|
exports.CloudJoinResultQuerySchema = CloudJoinResultQuerySchema;
|
|
@@ -3035,14 +3275,20 @@ exports.ContactSchema = ContactSchema;
|
|
|
3035
3275
|
exports.ContactTargetTypeSchema = ContactTargetTypeSchema;
|
|
3036
3276
|
exports.CreateAgentRequestSchema = CreateAgentRequestSchema;
|
|
3037
3277
|
exports.CreateAgentResponseSchema = CreateAgentResponseSchema;
|
|
3278
|
+
exports.CreateApiKeyRequestSchema = CreateApiKeyRequestSchema;
|
|
3279
|
+
exports.CreateApiKeyResponseSchema = CreateApiKeyResponseSchema;
|
|
3038
3280
|
exports.CreateChatRequestSchema = CreateChatRequestSchema;
|
|
3039
3281
|
exports.CreateChatResponseSchema = CreateChatResponseSchema;
|
|
3040
3282
|
exports.CreateCheckoutRequestSchema = CreateCheckoutRequestSchema;
|
|
3041
3283
|
exports.CreateCheckoutResponseSchema = CreateCheckoutResponseSchema;
|
|
3284
|
+
exports.CreateCiRunRequestSchema = CreateCiRunRequestSchema;
|
|
3285
|
+
exports.CreateCiRunResponseSchema = CreateCiRunResponseSchema;
|
|
3042
3286
|
exports.CreateCloudRequestSchema = CreateCloudRequestSchema;
|
|
3043
3287
|
exports.CreateCloudResponseSchema = CreateCloudResponseSchema;
|
|
3044
3288
|
exports.CreateContactRequestSchema = CreateContactRequestSchema;
|
|
3045
3289
|
exports.CreateContactResponseSchema = CreateContactResponseSchema;
|
|
3290
|
+
exports.CreateDirectRechargeCheckoutRequestSchema = CreateDirectRechargeCheckoutRequestSchema;
|
|
3291
|
+
exports.CreateDirectRechargeCheckoutResponseSchema = CreateDirectRechargeCheckoutResponseSchema;
|
|
3046
3292
|
exports.CreateDraftAgentRequestSchema = CreateDraftAgentRequestSchema;
|
|
3047
3293
|
exports.CreateMergeRequestResponseSchema = CreateMergeRequestResponseSchema;
|
|
3048
3294
|
exports.CreateMergeRequestSchema = CreateMergeRequestSchema;
|
|
@@ -3050,17 +3296,23 @@ exports.CreateOAuthServerRequestSchema = CreateOAuthServerRequestSchema;
|
|
|
3050
3296
|
exports.CreateOAuthServerResponseSchema = CreateOAuthServerResponseSchema;
|
|
3051
3297
|
exports.CreatePortalRequestSchema = CreatePortalRequestSchema;
|
|
3052
3298
|
exports.CreatePortalResponseSchema = CreatePortalResponseSchema;
|
|
3299
|
+
exports.CreatePrivateCloudInviteRequestSchema = CreatePrivateCloudInviteRequestSchema;
|
|
3300
|
+
exports.CreatePrivateCloudInviteResponseSchema = CreatePrivateCloudInviteResponseSchema;
|
|
3301
|
+
exports.CreatePrivateCloudRequestSchema = CreatePrivateCloudRequestSchema;
|
|
3302
|
+
exports.CreatePrivateCloudResponseSchema = CreatePrivateCloudResponseSchema;
|
|
3053
3303
|
exports.CreateSubscriptionPlanRequestSchema = CreateSubscriptionPlanRequestSchema;
|
|
3054
3304
|
exports.CreateTaskShareResponseSchema = CreateTaskShareResponseSchema;
|
|
3055
3305
|
exports.CreateTaskShareSchema = CreateTaskShareSchema;
|
|
3056
3306
|
exports.CreditExhaustedEventSchema = CreditExhaustedEventSchema;
|
|
3057
3307
|
exports.CreditsBucketSchema = CreditsBucketSchema;
|
|
3058
3308
|
exports.CreditsPackageSchema = CreditsPackageSchema;
|
|
3309
|
+
exports.DEFAULT_WORKER_EXECUTION_MODE = DEFAULT_WORKER_EXECUTION_MODE;
|
|
3059
3310
|
exports.DaemonGitlabOperationSchema = DaemonGitlabOperationSchema;
|
|
3060
3311
|
exports.DaemonGitlabRequestSchema = DaemonGitlabRequestSchema;
|
|
3061
3312
|
exports.DaemonGitlabResponseSchema = DaemonGitlabResponseSchema;
|
|
3062
3313
|
exports.DateSchema = DateSchema;
|
|
3063
3314
|
exports.DeleteAgentResponseSchema = DeleteAgentResponseSchema;
|
|
3315
|
+
exports.DeleteApiKeyResponseSchema = DeleteApiKeyResponseSchema;
|
|
3064
3316
|
exports.DeleteContactResponseSchema = DeleteContactResponseSchema;
|
|
3065
3317
|
exports.DeleteOAuthServerResponseSchema = DeleteOAuthServerResponseSchema;
|
|
3066
3318
|
exports.DeployAgentCompleteEventSchema = DeployAgentCompleteEventSchema;
|
|
@@ -3094,6 +3346,7 @@ exports.GetGitUrlQuerySchema = GetGitUrlQuerySchema;
|
|
|
3094
3346
|
exports.GetGitUrlResponseSchema = GetGitUrlResponseSchema;
|
|
3095
3347
|
exports.GetInstallUrlResponseSchema = GetInstallUrlResponseSchema;
|
|
3096
3348
|
exports.GetOAuthServerResponseSchema = GetOAuthServerResponseSchema;
|
|
3349
|
+
exports.GetPrivateCloudRunnerSecretResponseSchema = GetPrivateCloudRunnerSecretResponseSchema;
|
|
3097
3350
|
exports.GetReferenceQuerySchema = GetReferenceQuerySchema;
|
|
3098
3351
|
exports.GetRepositoryResponseSchema = GetRepositoryResponseSchema;
|
|
3099
3352
|
exports.GetSubscriptionResponseSchema = GetSubscriptionResponseSchema;
|
|
@@ -3107,7 +3360,10 @@ exports.GitHubIssueSchema = GitHubIssueSchema;
|
|
|
3107
3360
|
exports.GitServerSchema = GitServerSchema;
|
|
3108
3361
|
exports.IGNORED_DIRECTORIES = IGNORED_DIRECTORIES;
|
|
3109
3362
|
exports.IdSchema = IdSchema;
|
|
3363
|
+
exports.JsonSchemaDocumentSchema = JsonSchemaDocumentSchema;
|
|
3110
3364
|
exports.ListAgentsResponseSchema = ListAgentsResponseSchema;
|
|
3365
|
+
exports.ListApiKeysQuerySchema = ListApiKeysQuerySchema;
|
|
3366
|
+
exports.ListApiKeysResponseSchema = ListApiKeysResponseSchema;
|
|
3111
3367
|
exports.ListBranchesResponseSchema = ListBranchesResponseSchema;
|
|
3112
3368
|
exports.ListChatMembersResponseSchema = ListChatMembersResponseSchema;
|
|
3113
3369
|
exports.ListChatTasksResponseSchema = ListChatTasksResponseSchema;
|
|
@@ -3125,6 +3381,8 @@ exports.ListOAuthServersQuerySchema = ListOAuthServersQuerySchema;
|
|
|
3125
3381
|
exports.ListOAuthServersResponseSchema = ListOAuthServersResponseSchema;
|
|
3126
3382
|
exports.ListPackagesQuerySchema = ListPackagesQuerySchema;
|
|
3127
3383
|
exports.ListPackagesResponseSchema = ListPackagesResponseSchema;
|
|
3384
|
+
exports.ListPrivateCloudMembersResponseSchema = ListPrivateCloudMembersResponseSchema;
|
|
3385
|
+
exports.ListPrivateCloudsResponseSchema = ListPrivateCloudsResponseSchema;
|
|
3128
3386
|
exports.ListRecentTasksRequestSchema = ListRecentTasksRequestSchema;
|
|
3129
3387
|
exports.ListRecentTasksResponseSchema = ListRecentTasksResponseSchema;
|
|
3130
3388
|
exports.ListReferencesQuerySchema = ListReferencesQuerySchema;
|
|
@@ -3168,6 +3426,10 @@ exports.PermissionResponseResponseSchema = PermissionResponseResponseSchema;
|
|
|
3168
3426
|
exports.PreviewMetadataSchema = PreviewMetadataSchema;
|
|
3169
3427
|
exports.PreviewMethodSchema = PreviewMethodSchema;
|
|
3170
3428
|
exports.PreviewProjectTypeSchema = PreviewProjectTypeSchema;
|
|
3429
|
+
exports.PrivateCloudEntitlementSchema = PrivateCloudEntitlementSchema;
|
|
3430
|
+
exports.PrivateCloudInviteSchema = PrivateCloudInviteSchema;
|
|
3431
|
+
exports.PrivateCloudMemberSchema = PrivateCloudMemberSchema;
|
|
3432
|
+
exports.PrivateCloudSummarySchema = PrivateCloudSummarySchema;
|
|
3171
3433
|
exports.ProjectDirectoryResponseSchema = ProjectDirectoryResponseSchema;
|
|
3172
3434
|
exports.ProjectEntrySchema = ProjectEntrySchema;
|
|
3173
3435
|
exports.PublishDraftAgentRequestSchema = PublishDraftAgentRequestSchema;
|
|
@@ -3180,6 +3442,7 @@ exports.RechargeResponseSchema = RechargeResponseSchema;
|
|
|
3180
3442
|
exports.RegisterCompanionRequestSchema = RegisterCompanionRequestSchema;
|
|
3181
3443
|
exports.RegisterCompanionResponseSchema = RegisterCompanionResponseSchema;
|
|
3182
3444
|
exports.RemoveChatMemberRequestSchema = RemoveChatMemberRequestSchema;
|
|
3445
|
+
exports.RemovePrivateCloudMemberResponseSchema = RemovePrivateCloudMemberResponseSchema;
|
|
3183
3446
|
exports.RepositoryActorIdentitySchema = RepositoryActorIdentitySchema;
|
|
3184
3447
|
exports.RepositoryReferenceCommentSchema = RepositoryReferenceCommentSchema;
|
|
3185
3448
|
exports.RepositoryReferenceCommentsResponseSchema = RepositoryReferenceCommentsResponseSchema;
|
|
@@ -3223,6 +3486,7 @@ exports.StatsQuerySchema = StatsQuerySchema;
|
|
|
3223
3486
|
exports.StopTaskRequestSchema = StopTaskRequestSchema;
|
|
3224
3487
|
exports.StopTaskResponseSchema = StopTaskResponseSchema;
|
|
3225
3488
|
exports.StopTaskSchema = StopTaskSchema;
|
|
3489
|
+
exports.StripeCheckoutClientSchema = StripeCheckoutClientSchema;
|
|
3226
3490
|
exports.SubTaskResultUpdatedEventSchema = SubTaskResultUpdatedEventSchema;
|
|
3227
3491
|
exports.SubTaskSummarySchema = SubTaskSummarySchema;
|
|
3228
3492
|
exports.SubscriptionPlanSchema = SubscriptionPlanSchema;
|
|
@@ -3247,6 +3511,7 @@ exports.TaskStateChangeEventSchema = TaskStateChangeEventSchema;
|
|
|
3247
3511
|
exports.TaskStoppedEventSchema = TaskStoppedEventSchema;
|
|
3248
3512
|
exports.TaskTodoSchema = TaskTodoSchema;
|
|
3249
3513
|
exports.TaskTransactionsResponseSchema = TaskTransactionsResponseSchema;
|
|
3514
|
+
exports.ToggleApiKeyRequestSchema = ToggleApiKeyRequestSchema;
|
|
3250
3515
|
exports.ToggleOAuthServerRequestSchema = ToggleOAuthServerRequestSchema;
|
|
3251
3516
|
exports.ToggleOAuthServerResponseSchema = ToggleOAuthServerResponseSchema;
|
|
3252
3517
|
exports.TransactionSchema = TransactionSchema;
|
|
@@ -3255,6 +3520,7 @@ exports.UnarchiveTaskResponseSchema = UnarchiveTaskResponseSchema;
|
|
|
3255
3520
|
exports.UpdateAgentInfoEventSchema = UpdateAgentInfoEventSchema;
|
|
3256
3521
|
exports.UpdateAgentRequestSchema = UpdateAgentRequestSchema;
|
|
3257
3522
|
exports.UpdateAgentResponseSchema = UpdateAgentResponseSchema;
|
|
3523
|
+
exports.UpdateApiKeyRequestSchema = UpdateApiKeyRequestSchema;
|
|
3258
3524
|
exports.UpdateDraftAgentRequestSchema = UpdateDraftAgentRequestSchema;
|
|
3259
3525
|
exports.UpdateDraftAgentResponseSchema = UpdateDraftAgentResponseSchema;
|
|
3260
3526
|
exports.UpdateOAuthServerRequestSchema = UpdateOAuthServerRequestSchema;
|
|
@@ -3279,6 +3545,7 @@ exports.UserProfileResponseSchema = UserProfileResponseSchema;
|
|
|
3279
3545
|
exports.UserWithOAuthAccountsSchema = UserWithOAuthAccountsSchema;
|
|
3280
3546
|
exports.ValidateMachineResponseSchema = ValidateMachineResponseSchema;
|
|
3281
3547
|
exports.WorkerAliveEventSchema = WorkerAliveEventSchema;
|
|
3548
|
+
exports.WorkerExecutionModeSchema = WorkerExecutionModeSchema;
|
|
3282
3549
|
exports.WorkerExitSchema = WorkerExitSchema;
|
|
3283
3550
|
exports.WorkerInitializedSchema = WorkerInitializedSchema;
|
|
3284
3551
|
exports.WorkerInitializingSchema = WorkerInitializingSchema;
|
|
@@ -3329,6 +3596,7 @@ exports.isSDKMessage = isSDKMessage;
|
|
|
3329
3596
|
exports.isSDKUserMessage = isSDKUserMessage;
|
|
3330
3597
|
exports.isSubTaskAskUserMessage = isSubTaskAskUserMessage;
|
|
3331
3598
|
exports.machineAuth = machineAuth;
|
|
3599
|
+
exports.normalizeWorkerExecutionMode = normalizeWorkerExecutionMode;
|
|
3332
3600
|
exports.permissionResponseRequestSchema = permissionResponseRequestSchema;
|
|
3333
3601
|
exports.resumeTaskRequestSchema = resumeTaskRequestSchema;
|
|
3334
3602
|
exports.resumeTaskSchema = resumeTaskSchema;
|
|
@@ -3337,4 +3605,5 @@ exports.startTaskSchema = startTaskSchema;
|
|
|
3337
3605
|
exports.stopTaskRequestSchema = stopTaskRequestSchema;
|
|
3338
3606
|
exports.userAuth = userAuth;
|
|
3339
3607
|
exports.workerAuth = workerAuth;
|
|
3608
|
+
exports.workerExecutionModes = workerExecutionModes;
|
|
3340
3609
|
exports.workerTaskEvents = workerTaskEvents;
|