@agentrix/shared 2.0.7 → 2.0.9
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/index.cjs +89 -2
- package/dist/index.d.cts +760 -14
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -663,7 +663,11 @@ const DraftAgentConfigSchema = zod.z.object({
|
|
|
663
663
|
// environment configuration (from CLI envVars)
|
|
664
664
|
environmentSchema: zod.z.array(EnvironmentVariableSchema).optional(),
|
|
665
665
|
// Display configuration (same as AgentCustomConfig)
|
|
666
|
-
displayConfig: DisplayConfigSchema.optional()
|
|
666
|
+
displayConfig: DisplayConfigSchema.optional(),
|
|
667
|
+
// Agent UI fields (stored in config for DraftAgent, but as top-level fields in Agent)
|
|
668
|
+
signature: zod.z.string().optional(),
|
|
669
|
+
guildMsg: zod.z.string().optional(),
|
|
670
|
+
placeholderMsg: zod.z.string().optional()
|
|
667
671
|
});
|
|
668
672
|
const CreateDraftAgentRequestSchema = zod.z.object({
|
|
669
673
|
name: zod.z.string().min(1, "Name is required"),
|
|
@@ -675,7 +679,9 @@ const CreateDraftAgentRequestSchema = zod.z.object({
|
|
|
675
679
|
taskId: zod.z.string(),
|
|
676
680
|
envVars: zod.z.array(EnvironmentVariableSchema).optional(),
|
|
677
681
|
// From CLI tool
|
|
678
|
-
|
|
682
|
+
signature: zod.z.string().optional(),
|
|
683
|
+
guildMsg: zod.z.string().optional(),
|
|
684
|
+
placeholderMsg: zod.z.string().optional()
|
|
679
685
|
});
|
|
680
686
|
const SetEnvironmentVariablesRequestSchema = zod.z.object({
|
|
681
687
|
ownerType: zod.z.enum(["draft-agent", "agent", "machine", "cloud"]),
|
|
@@ -704,12 +710,44 @@ const DraftAgentSchema = zod.z.object({
|
|
|
704
710
|
createdAt: zod.z.string(),
|
|
705
711
|
updatedAt: zod.z.string()
|
|
706
712
|
});
|
|
713
|
+
const UpdateDraftAgentRequestSchema = zod.z.object({
|
|
714
|
+
avatar: zod.z.string().nullable().optional(),
|
|
715
|
+
description: zod.z.string().nullable().optional(),
|
|
716
|
+
config: DraftAgentConfigSchema.partial().optional()
|
|
717
|
+
});
|
|
718
|
+
const UpdateDraftAgentResponseSchema = DraftAgentSchema;
|
|
707
719
|
const GetUserAgentsResponseSchema = zod.z.object({
|
|
708
720
|
agents: zod.z.array(AgentSchema),
|
|
709
721
|
// Published agents
|
|
710
722
|
draftAgents: zod.z.array(DraftAgentSchema)
|
|
711
723
|
// Draft agents
|
|
712
724
|
});
|
|
725
|
+
const PublishDraftAgentRequestSchema = zod.z.object({
|
|
726
|
+
draftAgentId: zod.z.string(),
|
|
727
|
+
machineId: zod.z.string().optional(),
|
|
728
|
+
cloudId: zod.z.string().optional(),
|
|
729
|
+
name: zod.z.string().optional(),
|
|
730
|
+
// Optional custom agent name (defaults to draft agent's displayName)
|
|
731
|
+
avatar: zod.z.string().optional(),
|
|
732
|
+
// Optional custom avatar (defaults to draft agent's avatar)
|
|
733
|
+
isSystemAgent: zod.z.boolean().optional(),
|
|
734
|
+
// If true, userId will be set to 'system'
|
|
735
|
+
supportLocal: zod.z.boolean().optional()
|
|
736
|
+
// Support local mode (defaults to false)
|
|
737
|
+
}).refine(
|
|
738
|
+
(data) => {
|
|
739
|
+
return !!data.machineId !== !!data.cloudId;
|
|
740
|
+
},
|
|
741
|
+
{
|
|
742
|
+
message: "Exactly one of machineId or cloudId must be provided"
|
|
743
|
+
}
|
|
744
|
+
);
|
|
745
|
+
const PublishDraftAgentResponseSchema = zod.z.object({
|
|
746
|
+
agentId: zod.z.string(),
|
|
747
|
+
// Generated agent ID (Agent record created after deployment)
|
|
748
|
+
taskId: zod.z.string()
|
|
749
|
+
// Deployment task ID
|
|
750
|
+
});
|
|
713
751
|
|
|
714
752
|
const LocalMachineSchema = zod.z.object({
|
|
715
753
|
id: IdSchema,
|
|
@@ -1482,6 +1520,46 @@ const MergePullRequestEventSchema = EventBaseSchema.extend({
|
|
|
1482
1520
|
taskId: zod.z.string(),
|
|
1483
1521
|
mergeMethod: zod.z.enum(["merge", "squash", "rebase"]).optional().default("squash")
|
|
1484
1522
|
});
|
|
1523
|
+
const DeployAgentEventSchema = EventBaseSchema.extend({
|
|
1524
|
+
taskId: zod.z.string(),
|
|
1525
|
+
draftAgentId: zod.z.string(),
|
|
1526
|
+
userId: zod.z.string(),
|
|
1527
|
+
machineId: zod.z.string().optional(),
|
|
1528
|
+
cloudId: zod.z.string().optional(),
|
|
1529
|
+
sourcePath: zod.z.string(),
|
|
1530
|
+
// Draft agent directory path
|
|
1531
|
+
targetAgentId: zod.z.string(),
|
|
1532
|
+
// New agent ID to deploy to
|
|
1533
|
+
name: zod.z.string().optional(),
|
|
1534
|
+
// Optional custom agent name
|
|
1535
|
+
avatar: zod.z.string().optional(),
|
|
1536
|
+
// Optional custom avatar
|
|
1537
|
+
isSystemAgent: zod.z.boolean().optional(),
|
|
1538
|
+
// If true, use 'system' as userId
|
|
1539
|
+
supportLocal: zod.z.boolean().optional()
|
|
1540
|
+
// Support local mode
|
|
1541
|
+
}).refine(
|
|
1542
|
+
(data) => {
|
|
1543
|
+
return !!data.machineId !== !!data.cloudId;
|
|
1544
|
+
},
|
|
1545
|
+
{
|
|
1546
|
+
message: "Exactly one of machineId or cloudId must be provided"
|
|
1547
|
+
}
|
|
1548
|
+
);
|
|
1549
|
+
const DeployAgentCompleteEventSchema = EventBaseSchema.extend({
|
|
1550
|
+
taskId: zod.z.string(),
|
|
1551
|
+
targetAgentId: zod.z.string(),
|
|
1552
|
+
success: zod.z.boolean(),
|
|
1553
|
+
error: zod.z.string().optional(),
|
|
1554
|
+
name: zod.z.string().optional(),
|
|
1555
|
+
// Optional custom agent name
|
|
1556
|
+
avatar: zod.z.string().optional(),
|
|
1557
|
+
// Optional custom avatar
|
|
1558
|
+
isSystemAgent: zod.z.boolean().optional(),
|
|
1559
|
+
// If true, use 'system' as userId
|
|
1560
|
+
supportLocal: zod.z.boolean().optional()
|
|
1561
|
+
// Support local mode
|
|
1562
|
+
});
|
|
1485
1563
|
const AssociateRepoEventDataSchema = EventBaseSchema.extend({
|
|
1486
1564
|
taskId: zod.z.string(),
|
|
1487
1565
|
gitServerHost: zod.z.string(),
|
|
@@ -1567,6 +1645,9 @@ const EventSchemaMap = {
|
|
|
1567
1645
|
// Merge request events
|
|
1568
1646
|
"merge-request": MergeRequestEventSchema,
|
|
1569
1647
|
"merge-pr": MergePullRequestEventSchema,
|
|
1648
|
+
// Deploy agent events
|
|
1649
|
+
"deploy-agent": DeployAgentEventSchema,
|
|
1650
|
+
"deploy-agent-complete": DeployAgentCompleteEventSchema,
|
|
1570
1651
|
// Multi-agent collaboration events
|
|
1571
1652
|
"task-stopped": TaskStoppedEventSchema,
|
|
1572
1653
|
"sub-task-completed": SubTaskCompletedEventSchema,
|
|
@@ -2241,6 +2322,8 @@ exports.CreditsPackageSchema = CreditsPackageSchema;
|
|
|
2241
2322
|
exports.DateSchema = DateSchema;
|
|
2242
2323
|
exports.DeleteAgentResponseSchema = DeleteAgentResponseSchema;
|
|
2243
2324
|
exports.DeleteOAuthServerResponseSchema = DeleteOAuthServerResponseSchema;
|
|
2325
|
+
exports.DeployAgentCompleteEventSchema = DeployAgentCompleteEventSchema;
|
|
2326
|
+
exports.DeployAgentEventSchema = DeployAgentEventSchema;
|
|
2244
2327
|
exports.DisplayConfigKeysSchema = DisplayConfigKeysSchema;
|
|
2245
2328
|
exports.DisplayConfigSchema = DisplayConfigSchema;
|
|
2246
2329
|
exports.DraftAgentConfigSchema = DraftAgentConfigSchema;
|
|
@@ -2323,6 +2406,8 @@ exports.PermissionResponseRequestSchema = PermissionResponseRequestSchema;
|
|
|
2323
2406
|
exports.PermissionResponseResponseSchema = PermissionResponseResponseSchema;
|
|
2324
2407
|
exports.ProjectDirectoryResponseSchema = ProjectDirectoryResponseSchema;
|
|
2325
2408
|
exports.ProjectEntrySchema = ProjectEntrySchema;
|
|
2409
|
+
exports.PublishDraftAgentRequestSchema = PublishDraftAgentRequestSchema;
|
|
2410
|
+
exports.PublishDraftAgentResponseSchema = PublishDraftAgentResponseSchema;
|
|
2326
2411
|
exports.QueryEventsRequestSchema = QueryEventsRequestSchema;
|
|
2327
2412
|
exports.RTC_CHUNK_HEADER_SIZE = RTC_CHUNK_HEADER_SIZE;
|
|
2328
2413
|
exports.RechargeResponseSchema = RechargeResponseSchema;
|
|
@@ -2378,6 +2463,8 @@ exports.UnarchiveTaskRequestSchema = UnarchiveTaskRequestSchema;
|
|
|
2378
2463
|
exports.UnarchiveTaskResponseSchema = UnarchiveTaskResponseSchema;
|
|
2379
2464
|
exports.UpdateAgentRequestSchema = UpdateAgentRequestSchema;
|
|
2380
2465
|
exports.UpdateAgentResponseSchema = UpdateAgentResponseSchema;
|
|
2466
|
+
exports.UpdateDraftAgentRequestSchema = UpdateDraftAgentRequestSchema;
|
|
2467
|
+
exports.UpdateDraftAgentResponseSchema = UpdateDraftAgentResponseSchema;
|
|
2381
2468
|
exports.UpdateOAuthServerRequestSchema = UpdateOAuthServerRequestSchema;
|
|
2382
2469
|
exports.UpdateOAuthServerResponseSchema = UpdateOAuthServerResponseSchema;
|
|
2383
2470
|
exports.UpdateTaskAgentSessionIdEventSchema = UpdateTaskAgentSessionIdEventSchema;
|
package/dist/index.d.cts
CHANGED
|
@@ -5302,7 +5302,11 @@ declare const DraftAgentConfigSchema: z.ZodObject<{
|
|
|
5302
5302
|
permissionCanMergePr?: string | undefined;
|
|
5303
5303
|
permissionCanMergePrDesc?: string | undefined;
|
|
5304
5304
|
}>>>;
|
|
5305
|
+
signature: z.ZodOptional<z.ZodString>;
|
|
5306
|
+
guildMsg: z.ZodOptional<z.ZodString>;
|
|
5307
|
+
placeholderMsg: z.ZodOptional<z.ZodString>;
|
|
5305
5308
|
}, "strip", z.ZodTypeAny, {
|
|
5309
|
+
signature?: string | undefined;
|
|
5306
5310
|
displayConfig?: Record<string, {
|
|
5307
5311
|
closed?: string | undefined;
|
|
5308
5312
|
merged?: string | undefined;
|
|
@@ -5322,6 +5326,8 @@ declare const DraftAgentConfigSchema: z.ZodObject<{
|
|
|
5322
5326
|
permissionCanMergePr?: string | undefined;
|
|
5323
5327
|
permissionCanMergePrDesc?: string | undefined;
|
|
5324
5328
|
}> | undefined;
|
|
5329
|
+
guildMsg?: string | undefined;
|
|
5330
|
+
placeholderMsg?: string | undefined;
|
|
5325
5331
|
environmentSchema?: {
|
|
5326
5332
|
type: "string" | "number" | "boolean" | "secret";
|
|
5327
5333
|
name: string;
|
|
@@ -5330,6 +5336,7 @@ declare const DraftAgentConfigSchema: z.ZodObject<{
|
|
|
5330
5336
|
defaultValue?: string | undefined;
|
|
5331
5337
|
}[] | undefined;
|
|
5332
5338
|
}, {
|
|
5339
|
+
signature?: string | undefined;
|
|
5333
5340
|
displayConfig?: Record<string, {
|
|
5334
5341
|
closed?: string | undefined;
|
|
5335
5342
|
merged?: string | undefined;
|
|
@@ -5349,6 +5356,8 @@ declare const DraftAgentConfigSchema: z.ZodObject<{
|
|
|
5349
5356
|
permissionCanMergePr?: string | undefined;
|
|
5350
5357
|
permissionCanMergePrDesc?: string | undefined;
|
|
5351
5358
|
}> | undefined;
|
|
5359
|
+
guildMsg?: string | undefined;
|
|
5360
|
+
placeholderMsg?: string | undefined;
|
|
5352
5361
|
environmentSchema?: {
|
|
5353
5362
|
type: "string" | "number" | "boolean" | "secret";
|
|
5354
5363
|
name: string;
|
|
@@ -5389,16 +5398,20 @@ declare const CreateDraftAgentRequestSchema: z.ZodObject<{
|
|
|
5389
5398
|
required?: boolean | undefined;
|
|
5390
5399
|
defaultValue?: string | undefined;
|
|
5391
5400
|
}>, "many">>;
|
|
5392
|
-
|
|
5401
|
+
signature: z.ZodOptional<z.ZodString>;
|
|
5402
|
+
guildMsg: z.ZodOptional<z.ZodString>;
|
|
5403
|
+
placeholderMsg: z.ZodOptional<z.ZodString>;
|
|
5393
5404
|
}, "strip", z.ZodTypeAny, {
|
|
5394
5405
|
type: "claude" | "codex";
|
|
5395
5406
|
userId: string;
|
|
5396
5407
|
taskId: string;
|
|
5397
5408
|
name: string;
|
|
5398
5409
|
agentDir: string;
|
|
5399
|
-
isUpdate: boolean;
|
|
5400
5410
|
avatar?: string | undefined;
|
|
5411
|
+
signature?: string | undefined;
|
|
5401
5412
|
description?: string | undefined;
|
|
5413
|
+
guildMsg?: string | undefined;
|
|
5414
|
+
placeholderMsg?: string | undefined;
|
|
5402
5415
|
envVars?: {
|
|
5403
5416
|
type: "string" | "number" | "boolean" | "secret";
|
|
5404
5417
|
name: string;
|
|
@@ -5413,7 +5426,10 @@ declare const CreateDraftAgentRequestSchema: z.ZodObject<{
|
|
|
5413
5426
|
agentDir: string;
|
|
5414
5427
|
type?: "claude" | "codex" | undefined;
|
|
5415
5428
|
avatar?: string | undefined;
|
|
5429
|
+
signature?: string | undefined;
|
|
5416
5430
|
description?: string | undefined;
|
|
5431
|
+
guildMsg?: string | undefined;
|
|
5432
|
+
placeholderMsg?: string | undefined;
|
|
5417
5433
|
envVars?: {
|
|
5418
5434
|
type: "string" | "number" | "boolean" | "secret";
|
|
5419
5435
|
name: string;
|
|
@@ -5421,7 +5437,6 @@ declare const CreateDraftAgentRequestSchema: z.ZodObject<{
|
|
|
5421
5437
|
required?: boolean | undefined;
|
|
5422
5438
|
defaultValue?: string | undefined;
|
|
5423
5439
|
}[] | undefined;
|
|
5424
|
-
isUpdate?: boolean | undefined;
|
|
5425
5440
|
}>;
|
|
5426
5441
|
type CreateDraftAgentRequest = z.infer<typeof CreateDraftAgentRequestSchema>;
|
|
5427
5442
|
/**
|
|
@@ -5447,15 +5462,496 @@ type SetEnvironmentVariablesRequest = z.infer<typeof SetEnvironmentVariablesRequ
|
|
|
5447
5462
|
declare const GetEnvironmentVariablesResponseSchema: z.ZodObject<{
|
|
5448
5463
|
variables: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
5449
5464
|
}, "strip", z.ZodTypeAny, {
|
|
5450
|
-
variables: Record<string, string>;
|
|
5465
|
+
variables: Record<string, string>;
|
|
5466
|
+
}, {
|
|
5467
|
+
variables: Record<string, string>;
|
|
5468
|
+
}>;
|
|
5469
|
+
type GetEnvironmentVariablesResponse = z.infer<typeof GetEnvironmentVariablesResponseSchema>;
|
|
5470
|
+
/**
|
|
5471
|
+
* Draft Agent API response schema
|
|
5472
|
+
*/
|
|
5473
|
+
declare const DraftAgentSchema: z.ZodObject<{
|
|
5474
|
+
id: z.ZodString;
|
|
5475
|
+
name: z.ZodString;
|
|
5476
|
+
displayName: z.ZodString;
|
|
5477
|
+
agentDir: z.ZodString;
|
|
5478
|
+
type: z.ZodEnum<["claude", "codex"]>;
|
|
5479
|
+
avatar: z.ZodNullable<z.ZodString>;
|
|
5480
|
+
userId: z.ZodString;
|
|
5481
|
+
description: z.ZodNullable<z.ZodString>;
|
|
5482
|
+
enable: z.ZodBoolean;
|
|
5483
|
+
config: z.ZodNullable<z.ZodObject<{
|
|
5484
|
+
environmentSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5485
|
+
name: z.ZodString;
|
|
5486
|
+
type: z.ZodEnum<["string", "number", "boolean", "secret"]>;
|
|
5487
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5488
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
5489
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
5490
|
+
}, "strip", z.ZodTypeAny, {
|
|
5491
|
+
type: "string" | "number" | "boolean" | "secret";
|
|
5492
|
+
name: string;
|
|
5493
|
+
required: boolean;
|
|
5494
|
+
description?: string | undefined;
|
|
5495
|
+
defaultValue?: string | undefined;
|
|
5496
|
+
}, {
|
|
5497
|
+
type: "string" | "number" | "boolean" | "secret";
|
|
5498
|
+
name: string;
|
|
5499
|
+
description?: string | undefined;
|
|
5500
|
+
required?: boolean | undefined;
|
|
5501
|
+
defaultValue?: string | undefined;
|
|
5502
|
+
}>, "many">>;
|
|
5503
|
+
displayConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5504
|
+
createPR: z.ZodOptional<z.ZodString>;
|
|
5505
|
+
viewPR: z.ZodOptional<z.ZodString>;
|
|
5506
|
+
mergePR: z.ZodOptional<z.ZodString>;
|
|
5507
|
+
approvePR: z.ZodOptional<z.ZodString>;
|
|
5508
|
+
merged: z.ZodOptional<z.ZodString>;
|
|
5509
|
+
closed: z.ZodOptional<z.ZodString>;
|
|
5510
|
+
recreatePR: z.ZodOptional<z.ZodString>;
|
|
5511
|
+
permissionCanSendMessage: z.ZodOptional<z.ZodString>;
|
|
5512
|
+
permissionCanSendMessageDesc: z.ZodOptional<z.ZodString>;
|
|
5513
|
+
permissionCanCreatePr: z.ZodOptional<z.ZodString>;
|
|
5514
|
+
permissionCanCreatePrDesc: z.ZodOptional<z.ZodString>;
|
|
5515
|
+
permissionCanApprovePr: z.ZodOptional<z.ZodString>;
|
|
5516
|
+
permissionCanApprovePrDesc: z.ZodOptional<z.ZodString>;
|
|
5517
|
+
permissionCanViewPr: z.ZodOptional<z.ZodString>;
|
|
5518
|
+
permissionCanViewPrDesc: z.ZodOptional<z.ZodString>;
|
|
5519
|
+
permissionCanMergePr: z.ZodOptional<z.ZodString>;
|
|
5520
|
+
permissionCanMergePrDesc: z.ZodOptional<z.ZodString>;
|
|
5521
|
+
}, "strip", z.ZodTypeAny, {
|
|
5522
|
+
closed?: string | undefined;
|
|
5523
|
+
merged?: string | undefined;
|
|
5524
|
+
createPR?: string | undefined;
|
|
5525
|
+
viewPR?: string | undefined;
|
|
5526
|
+
mergePR?: string | undefined;
|
|
5527
|
+
approvePR?: string | undefined;
|
|
5528
|
+
recreatePR?: string | undefined;
|
|
5529
|
+
permissionCanSendMessage?: string | undefined;
|
|
5530
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
5531
|
+
permissionCanCreatePr?: string | undefined;
|
|
5532
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
5533
|
+
permissionCanApprovePr?: string | undefined;
|
|
5534
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
5535
|
+
permissionCanViewPr?: string | undefined;
|
|
5536
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
5537
|
+
permissionCanMergePr?: string | undefined;
|
|
5538
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
5539
|
+
}, {
|
|
5540
|
+
closed?: string | undefined;
|
|
5541
|
+
merged?: string | undefined;
|
|
5542
|
+
createPR?: string | undefined;
|
|
5543
|
+
viewPR?: string | undefined;
|
|
5544
|
+
mergePR?: string | undefined;
|
|
5545
|
+
approvePR?: string | undefined;
|
|
5546
|
+
recreatePR?: string | undefined;
|
|
5547
|
+
permissionCanSendMessage?: string | undefined;
|
|
5548
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
5549
|
+
permissionCanCreatePr?: string | undefined;
|
|
5550
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
5551
|
+
permissionCanApprovePr?: string | undefined;
|
|
5552
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
5553
|
+
permissionCanViewPr?: string | undefined;
|
|
5554
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
5555
|
+
permissionCanMergePr?: string | undefined;
|
|
5556
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
5557
|
+
}>>>;
|
|
5558
|
+
signature: z.ZodOptional<z.ZodString>;
|
|
5559
|
+
guildMsg: z.ZodOptional<z.ZodString>;
|
|
5560
|
+
placeholderMsg: z.ZodOptional<z.ZodString>;
|
|
5561
|
+
}, "strip", z.ZodTypeAny, {
|
|
5562
|
+
signature?: string | undefined;
|
|
5563
|
+
displayConfig?: Record<string, {
|
|
5564
|
+
closed?: string | undefined;
|
|
5565
|
+
merged?: string | undefined;
|
|
5566
|
+
createPR?: string | undefined;
|
|
5567
|
+
viewPR?: string | undefined;
|
|
5568
|
+
mergePR?: string | undefined;
|
|
5569
|
+
approvePR?: string | undefined;
|
|
5570
|
+
recreatePR?: string | undefined;
|
|
5571
|
+
permissionCanSendMessage?: string | undefined;
|
|
5572
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
5573
|
+
permissionCanCreatePr?: string | undefined;
|
|
5574
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
5575
|
+
permissionCanApprovePr?: string | undefined;
|
|
5576
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
5577
|
+
permissionCanViewPr?: string | undefined;
|
|
5578
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
5579
|
+
permissionCanMergePr?: string | undefined;
|
|
5580
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
5581
|
+
}> | undefined;
|
|
5582
|
+
guildMsg?: string | undefined;
|
|
5583
|
+
placeholderMsg?: string | undefined;
|
|
5584
|
+
environmentSchema?: {
|
|
5585
|
+
type: "string" | "number" | "boolean" | "secret";
|
|
5586
|
+
name: string;
|
|
5587
|
+
required: boolean;
|
|
5588
|
+
description?: string | undefined;
|
|
5589
|
+
defaultValue?: string | undefined;
|
|
5590
|
+
}[] | undefined;
|
|
5591
|
+
}, {
|
|
5592
|
+
signature?: string | undefined;
|
|
5593
|
+
displayConfig?: Record<string, {
|
|
5594
|
+
closed?: string | undefined;
|
|
5595
|
+
merged?: string | undefined;
|
|
5596
|
+
createPR?: string | undefined;
|
|
5597
|
+
viewPR?: string | undefined;
|
|
5598
|
+
mergePR?: string | undefined;
|
|
5599
|
+
approvePR?: string | undefined;
|
|
5600
|
+
recreatePR?: string | undefined;
|
|
5601
|
+
permissionCanSendMessage?: string | undefined;
|
|
5602
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
5603
|
+
permissionCanCreatePr?: string | undefined;
|
|
5604
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
5605
|
+
permissionCanApprovePr?: string | undefined;
|
|
5606
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
5607
|
+
permissionCanViewPr?: string | undefined;
|
|
5608
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
5609
|
+
permissionCanMergePr?: string | undefined;
|
|
5610
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
5611
|
+
}> | undefined;
|
|
5612
|
+
guildMsg?: string | undefined;
|
|
5613
|
+
placeholderMsg?: string | undefined;
|
|
5614
|
+
environmentSchema?: {
|
|
5615
|
+
type: "string" | "number" | "boolean" | "secret";
|
|
5616
|
+
name: string;
|
|
5617
|
+
description?: string | undefined;
|
|
5618
|
+
required?: boolean | undefined;
|
|
5619
|
+
defaultValue?: string | undefined;
|
|
5620
|
+
}[] | undefined;
|
|
5621
|
+
}>>;
|
|
5622
|
+
permissions: z.ZodNullable<z.ZodObject<{
|
|
5623
|
+
role: z.ZodString;
|
|
5624
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5625
|
+
}, "strip", z.ZodTypeAny, {
|
|
5626
|
+
role: string;
|
|
5627
|
+
paths?: string[] | undefined;
|
|
5628
|
+
}, {
|
|
5629
|
+
role: string;
|
|
5630
|
+
paths?: string[] | undefined;
|
|
5631
|
+
}>>;
|
|
5632
|
+
publishedAgentId: z.ZodNullable<z.ZodString>;
|
|
5633
|
+
sourceTaskId: z.ZodNullable<z.ZodString>;
|
|
5634
|
+
createdAt: z.ZodString;
|
|
5635
|
+
updatedAt: z.ZodString;
|
|
5636
|
+
}, "strip", z.ZodTypeAny, {
|
|
5637
|
+
type: "claude" | "codex";
|
|
5638
|
+
id: string;
|
|
5639
|
+
avatar: string | null;
|
|
5640
|
+
createdAt: string;
|
|
5641
|
+
userId: string;
|
|
5642
|
+
permissions: {
|
|
5643
|
+
role: string;
|
|
5644
|
+
paths?: string[] | undefined;
|
|
5645
|
+
} | null;
|
|
5646
|
+
updatedAt: string;
|
|
5647
|
+
name: string;
|
|
5648
|
+
description: string | null;
|
|
5649
|
+
enable: boolean;
|
|
5650
|
+
config: {
|
|
5651
|
+
signature?: string | undefined;
|
|
5652
|
+
displayConfig?: Record<string, {
|
|
5653
|
+
closed?: string | undefined;
|
|
5654
|
+
merged?: string | undefined;
|
|
5655
|
+
createPR?: string | undefined;
|
|
5656
|
+
viewPR?: string | undefined;
|
|
5657
|
+
mergePR?: string | undefined;
|
|
5658
|
+
approvePR?: string | undefined;
|
|
5659
|
+
recreatePR?: string | undefined;
|
|
5660
|
+
permissionCanSendMessage?: string | undefined;
|
|
5661
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
5662
|
+
permissionCanCreatePr?: string | undefined;
|
|
5663
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
5664
|
+
permissionCanApprovePr?: string | undefined;
|
|
5665
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
5666
|
+
permissionCanViewPr?: string | undefined;
|
|
5667
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
5668
|
+
permissionCanMergePr?: string | undefined;
|
|
5669
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
5670
|
+
}> | undefined;
|
|
5671
|
+
guildMsg?: string | undefined;
|
|
5672
|
+
placeholderMsg?: string | undefined;
|
|
5673
|
+
environmentSchema?: {
|
|
5674
|
+
type: "string" | "number" | "boolean" | "secret";
|
|
5675
|
+
name: string;
|
|
5676
|
+
required: boolean;
|
|
5677
|
+
description?: string | undefined;
|
|
5678
|
+
defaultValue?: string | undefined;
|
|
5679
|
+
}[] | undefined;
|
|
5680
|
+
} | null;
|
|
5681
|
+
agentDir: string;
|
|
5682
|
+
displayName: string;
|
|
5683
|
+
publishedAgentId: string | null;
|
|
5684
|
+
sourceTaskId: string | null;
|
|
5685
|
+
}, {
|
|
5686
|
+
type: "claude" | "codex";
|
|
5687
|
+
id: string;
|
|
5688
|
+
avatar: string | null;
|
|
5689
|
+
createdAt: string;
|
|
5690
|
+
userId: string;
|
|
5691
|
+
permissions: {
|
|
5692
|
+
role: string;
|
|
5693
|
+
paths?: string[] | undefined;
|
|
5694
|
+
} | null;
|
|
5695
|
+
updatedAt: string;
|
|
5696
|
+
name: string;
|
|
5697
|
+
description: string | null;
|
|
5698
|
+
enable: boolean;
|
|
5699
|
+
config: {
|
|
5700
|
+
signature?: string | undefined;
|
|
5701
|
+
displayConfig?: Record<string, {
|
|
5702
|
+
closed?: string | undefined;
|
|
5703
|
+
merged?: string | undefined;
|
|
5704
|
+
createPR?: string | undefined;
|
|
5705
|
+
viewPR?: string | undefined;
|
|
5706
|
+
mergePR?: string | undefined;
|
|
5707
|
+
approvePR?: string | undefined;
|
|
5708
|
+
recreatePR?: string | undefined;
|
|
5709
|
+
permissionCanSendMessage?: string | undefined;
|
|
5710
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
5711
|
+
permissionCanCreatePr?: string | undefined;
|
|
5712
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
5713
|
+
permissionCanApprovePr?: string | undefined;
|
|
5714
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
5715
|
+
permissionCanViewPr?: string | undefined;
|
|
5716
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
5717
|
+
permissionCanMergePr?: string | undefined;
|
|
5718
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
5719
|
+
}> | undefined;
|
|
5720
|
+
guildMsg?: string | undefined;
|
|
5721
|
+
placeholderMsg?: string | undefined;
|
|
5722
|
+
environmentSchema?: {
|
|
5723
|
+
type: "string" | "number" | "boolean" | "secret";
|
|
5724
|
+
name: string;
|
|
5725
|
+
description?: string | undefined;
|
|
5726
|
+
required?: boolean | undefined;
|
|
5727
|
+
defaultValue?: string | undefined;
|
|
5728
|
+
}[] | undefined;
|
|
5729
|
+
} | null;
|
|
5730
|
+
agentDir: string;
|
|
5731
|
+
displayName: string;
|
|
5732
|
+
publishedAgentId: string | null;
|
|
5733
|
+
sourceTaskId: string | null;
|
|
5734
|
+
}>;
|
|
5735
|
+
type DraftAgent = z.infer<typeof DraftAgentSchema>;
|
|
5736
|
+
/**
|
|
5737
|
+
* Request schema for updating draft-agent
|
|
5738
|
+
*/
|
|
5739
|
+
declare const UpdateDraftAgentRequestSchema: z.ZodObject<{
|
|
5740
|
+
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5741
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5742
|
+
config: z.ZodOptional<z.ZodObject<{
|
|
5743
|
+
environmentSchema: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5744
|
+
name: z.ZodString;
|
|
5745
|
+
type: z.ZodEnum<["string", "number", "boolean", "secret"]>;
|
|
5746
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5747
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
5748
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
5749
|
+
}, "strip", z.ZodTypeAny, {
|
|
5750
|
+
type: "string" | "number" | "boolean" | "secret";
|
|
5751
|
+
name: string;
|
|
5752
|
+
required: boolean;
|
|
5753
|
+
description?: string | undefined;
|
|
5754
|
+
defaultValue?: string | undefined;
|
|
5755
|
+
}, {
|
|
5756
|
+
type: "string" | "number" | "boolean" | "secret";
|
|
5757
|
+
name: string;
|
|
5758
|
+
description?: string | undefined;
|
|
5759
|
+
required?: boolean | undefined;
|
|
5760
|
+
defaultValue?: string | undefined;
|
|
5761
|
+
}>, "many">>>;
|
|
5762
|
+
displayConfig: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5763
|
+
createPR: z.ZodOptional<z.ZodString>;
|
|
5764
|
+
viewPR: z.ZodOptional<z.ZodString>;
|
|
5765
|
+
mergePR: z.ZodOptional<z.ZodString>;
|
|
5766
|
+
approvePR: z.ZodOptional<z.ZodString>;
|
|
5767
|
+
merged: z.ZodOptional<z.ZodString>;
|
|
5768
|
+
closed: z.ZodOptional<z.ZodString>;
|
|
5769
|
+
recreatePR: z.ZodOptional<z.ZodString>;
|
|
5770
|
+
permissionCanSendMessage: z.ZodOptional<z.ZodString>;
|
|
5771
|
+
permissionCanSendMessageDesc: z.ZodOptional<z.ZodString>;
|
|
5772
|
+
permissionCanCreatePr: z.ZodOptional<z.ZodString>;
|
|
5773
|
+
permissionCanCreatePrDesc: z.ZodOptional<z.ZodString>;
|
|
5774
|
+
permissionCanApprovePr: z.ZodOptional<z.ZodString>;
|
|
5775
|
+
permissionCanApprovePrDesc: z.ZodOptional<z.ZodString>;
|
|
5776
|
+
permissionCanViewPr: z.ZodOptional<z.ZodString>;
|
|
5777
|
+
permissionCanViewPrDesc: z.ZodOptional<z.ZodString>;
|
|
5778
|
+
permissionCanMergePr: z.ZodOptional<z.ZodString>;
|
|
5779
|
+
permissionCanMergePrDesc: z.ZodOptional<z.ZodString>;
|
|
5780
|
+
}, "strip", z.ZodTypeAny, {
|
|
5781
|
+
closed?: string | undefined;
|
|
5782
|
+
merged?: string | undefined;
|
|
5783
|
+
createPR?: string | undefined;
|
|
5784
|
+
viewPR?: string | undefined;
|
|
5785
|
+
mergePR?: string | undefined;
|
|
5786
|
+
approvePR?: string | undefined;
|
|
5787
|
+
recreatePR?: string | undefined;
|
|
5788
|
+
permissionCanSendMessage?: string | undefined;
|
|
5789
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
5790
|
+
permissionCanCreatePr?: string | undefined;
|
|
5791
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
5792
|
+
permissionCanApprovePr?: string | undefined;
|
|
5793
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
5794
|
+
permissionCanViewPr?: string | undefined;
|
|
5795
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
5796
|
+
permissionCanMergePr?: string | undefined;
|
|
5797
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
5798
|
+
}, {
|
|
5799
|
+
closed?: string | undefined;
|
|
5800
|
+
merged?: string | undefined;
|
|
5801
|
+
createPR?: string | undefined;
|
|
5802
|
+
viewPR?: string | undefined;
|
|
5803
|
+
mergePR?: string | undefined;
|
|
5804
|
+
approvePR?: string | undefined;
|
|
5805
|
+
recreatePR?: string | undefined;
|
|
5806
|
+
permissionCanSendMessage?: string | undefined;
|
|
5807
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
5808
|
+
permissionCanCreatePr?: string | undefined;
|
|
5809
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
5810
|
+
permissionCanApprovePr?: string | undefined;
|
|
5811
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
5812
|
+
permissionCanViewPr?: string | undefined;
|
|
5813
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
5814
|
+
permissionCanMergePr?: string | undefined;
|
|
5815
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
5816
|
+
}>>>>;
|
|
5817
|
+
signature: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
5818
|
+
guildMsg: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
5819
|
+
placeholderMsg: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
5820
|
+
}, "strip", z.ZodTypeAny, {
|
|
5821
|
+
signature?: string | undefined;
|
|
5822
|
+
displayConfig?: Record<string, {
|
|
5823
|
+
closed?: string | undefined;
|
|
5824
|
+
merged?: string | undefined;
|
|
5825
|
+
createPR?: string | undefined;
|
|
5826
|
+
viewPR?: string | undefined;
|
|
5827
|
+
mergePR?: string | undefined;
|
|
5828
|
+
approvePR?: string | undefined;
|
|
5829
|
+
recreatePR?: string | undefined;
|
|
5830
|
+
permissionCanSendMessage?: string | undefined;
|
|
5831
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
5832
|
+
permissionCanCreatePr?: string | undefined;
|
|
5833
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
5834
|
+
permissionCanApprovePr?: string | undefined;
|
|
5835
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
5836
|
+
permissionCanViewPr?: string | undefined;
|
|
5837
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
5838
|
+
permissionCanMergePr?: string | undefined;
|
|
5839
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
5840
|
+
}> | undefined;
|
|
5841
|
+
guildMsg?: string | undefined;
|
|
5842
|
+
placeholderMsg?: string | undefined;
|
|
5843
|
+
environmentSchema?: {
|
|
5844
|
+
type: "string" | "number" | "boolean" | "secret";
|
|
5845
|
+
name: string;
|
|
5846
|
+
required: boolean;
|
|
5847
|
+
description?: string | undefined;
|
|
5848
|
+
defaultValue?: string | undefined;
|
|
5849
|
+
}[] | undefined;
|
|
5850
|
+
}, {
|
|
5851
|
+
signature?: string | undefined;
|
|
5852
|
+
displayConfig?: Record<string, {
|
|
5853
|
+
closed?: string | undefined;
|
|
5854
|
+
merged?: string | undefined;
|
|
5855
|
+
createPR?: string | undefined;
|
|
5856
|
+
viewPR?: string | undefined;
|
|
5857
|
+
mergePR?: string | undefined;
|
|
5858
|
+
approvePR?: string | undefined;
|
|
5859
|
+
recreatePR?: string | undefined;
|
|
5860
|
+
permissionCanSendMessage?: string | undefined;
|
|
5861
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
5862
|
+
permissionCanCreatePr?: string | undefined;
|
|
5863
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
5864
|
+
permissionCanApprovePr?: string | undefined;
|
|
5865
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
5866
|
+
permissionCanViewPr?: string | undefined;
|
|
5867
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
5868
|
+
permissionCanMergePr?: string | undefined;
|
|
5869
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
5870
|
+
}> | undefined;
|
|
5871
|
+
guildMsg?: string | undefined;
|
|
5872
|
+
placeholderMsg?: string | undefined;
|
|
5873
|
+
environmentSchema?: {
|
|
5874
|
+
type: "string" | "number" | "boolean" | "secret";
|
|
5875
|
+
name: string;
|
|
5876
|
+
description?: string | undefined;
|
|
5877
|
+
required?: boolean | undefined;
|
|
5878
|
+
defaultValue?: string | undefined;
|
|
5879
|
+
}[] | undefined;
|
|
5880
|
+
}>>;
|
|
5881
|
+
}, "strip", z.ZodTypeAny, {
|
|
5882
|
+
avatar?: string | null | undefined;
|
|
5883
|
+
description?: string | null | undefined;
|
|
5884
|
+
config?: {
|
|
5885
|
+
signature?: string | undefined;
|
|
5886
|
+
displayConfig?: Record<string, {
|
|
5887
|
+
closed?: string | undefined;
|
|
5888
|
+
merged?: string | undefined;
|
|
5889
|
+
createPR?: string | undefined;
|
|
5890
|
+
viewPR?: string | undefined;
|
|
5891
|
+
mergePR?: string | undefined;
|
|
5892
|
+
approvePR?: string | undefined;
|
|
5893
|
+
recreatePR?: string | undefined;
|
|
5894
|
+
permissionCanSendMessage?: string | undefined;
|
|
5895
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
5896
|
+
permissionCanCreatePr?: string | undefined;
|
|
5897
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
5898
|
+
permissionCanApprovePr?: string | undefined;
|
|
5899
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
5900
|
+
permissionCanViewPr?: string | undefined;
|
|
5901
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
5902
|
+
permissionCanMergePr?: string | undefined;
|
|
5903
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
5904
|
+
}> | undefined;
|
|
5905
|
+
guildMsg?: string | undefined;
|
|
5906
|
+
placeholderMsg?: string | undefined;
|
|
5907
|
+
environmentSchema?: {
|
|
5908
|
+
type: "string" | "number" | "boolean" | "secret";
|
|
5909
|
+
name: string;
|
|
5910
|
+
required: boolean;
|
|
5911
|
+
description?: string | undefined;
|
|
5912
|
+
defaultValue?: string | undefined;
|
|
5913
|
+
}[] | undefined;
|
|
5914
|
+
} | undefined;
|
|
5451
5915
|
}, {
|
|
5452
|
-
|
|
5916
|
+
avatar?: string | null | undefined;
|
|
5917
|
+
description?: string | null | undefined;
|
|
5918
|
+
config?: {
|
|
5919
|
+
signature?: string | undefined;
|
|
5920
|
+
displayConfig?: Record<string, {
|
|
5921
|
+
closed?: string | undefined;
|
|
5922
|
+
merged?: string | undefined;
|
|
5923
|
+
createPR?: string | undefined;
|
|
5924
|
+
viewPR?: string | undefined;
|
|
5925
|
+
mergePR?: string | undefined;
|
|
5926
|
+
approvePR?: string | undefined;
|
|
5927
|
+
recreatePR?: string | undefined;
|
|
5928
|
+
permissionCanSendMessage?: string | undefined;
|
|
5929
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
5930
|
+
permissionCanCreatePr?: string | undefined;
|
|
5931
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
5932
|
+
permissionCanApprovePr?: string | undefined;
|
|
5933
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
5934
|
+
permissionCanViewPr?: string | undefined;
|
|
5935
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
5936
|
+
permissionCanMergePr?: string | undefined;
|
|
5937
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
5938
|
+
}> | undefined;
|
|
5939
|
+
guildMsg?: string | undefined;
|
|
5940
|
+
placeholderMsg?: string | undefined;
|
|
5941
|
+
environmentSchema?: {
|
|
5942
|
+
type: "string" | "number" | "boolean" | "secret";
|
|
5943
|
+
name: string;
|
|
5944
|
+
description?: string | undefined;
|
|
5945
|
+
required?: boolean | undefined;
|
|
5946
|
+
defaultValue?: string | undefined;
|
|
5947
|
+
}[] | undefined;
|
|
5948
|
+
} | undefined;
|
|
5453
5949
|
}>;
|
|
5454
|
-
type
|
|
5950
|
+
type UpdateDraftAgentRequest = z.infer<typeof UpdateDraftAgentRequestSchema>;
|
|
5455
5951
|
/**
|
|
5456
|
-
*
|
|
5952
|
+
* Response schema for updating draft-agent
|
|
5457
5953
|
*/
|
|
5458
|
-
declare const
|
|
5954
|
+
declare const UpdateDraftAgentResponseSchema: z.ZodObject<{
|
|
5459
5955
|
id: z.ZodString;
|
|
5460
5956
|
name: z.ZodString;
|
|
5461
5957
|
displayName: z.ZodString;
|
|
@@ -5540,7 +6036,11 @@ declare const DraftAgentSchema: z.ZodObject<{
|
|
|
5540
6036
|
permissionCanMergePr?: string | undefined;
|
|
5541
6037
|
permissionCanMergePrDesc?: string | undefined;
|
|
5542
6038
|
}>>>;
|
|
6039
|
+
signature: z.ZodOptional<z.ZodString>;
|
|
6040
|
+
guildMsg: z.ZodOptional<z.ZodString>;
|
|
6041
|
+
placeholderMsg: z.ZodOptional<z.ZodString>;
|
|
5543
6042
|
}, "strip", z.ZodTypeAny, {
|
|
6043
|
+
signature?: string | undefined;
|
|
5544
6044
|
displayConfig?: Record<string, {
|
|
5545
6045
|
closed?: string | undefined;
|
|
5546
6046
|
merged?: string | undefined;
|
|
@@ -5560,6 +6060,8 @@ declare const DraftAgentSchema: z.ZodObject<{
|
|
|
5560
6060
|
permissionCanMergePr?: string | undefined;
|
|
5561
6061
|
permissionCanMergePrDesc?: string | undefined;
|
|
5562
6062
|
}> | undefined;
|
|
6063
|
+
guildMsg?: string | undefined;
|
|
6064
|
+
placeholderMsg?: string | undefined;
|
|
5563
6065
|
environmentSchema?: {
|
|
5564
6066
|
type: "string" | "number" | "boolean" | "secret";
|
|
5565
6067
|
name: string;
|
|
@@ -5568,6 +6070,7 @@ declare const DraftAgentSchema: z.ZodObject<{
|
|
|
5568
6070
|
defaultValue?: string | undefined;
|
|
5569
6071
|
}[] | undefined;
|
|
5570
6072
|
}, {
|
|
6073
|
+
signature?: string | undefined;
|
|
5571
6074
|
displayConfig?: Record<string, {
|
|
5572
6075
|
closed?: string | undefined;
|
|
5573
6076
|
merged?: string | undefined;
|
|
@@ -5587,6 +6090,8 @@ declare const DraftAgentSchema: z.ZodObject<{
|
|
|
5587
6090
|
permissionCanMergePr?: string | undefined;
|
|
5588
6091
|
permissionCanMergePrDesc?: string | undefined;
|
|
5589
6092
|
}> | undefined;
|
|
6093
|
+
guildMsg?: string | undefined;
|
|
6094
|
+
placeholderMsg?: string | undefined;
|
|
5590
6095
|
environmentSchema?: {
|
|
5591
6096
|
type: "string" | "number" | "boolean" | "secret";
|
|
5592
6097
|
name: string;
|
|
@@ -5624,6 +6129,7 @@ declare const DraftAgentSchema: z.ZodObject<{
|
|
|
5624
6129
|
description: string | null;
|
|
5625
6130
|
enable: boolean;
|
|
5626
6131
|
config: {
|
|
6132
|
+
signature?: string | undefined;
|
|
5627
6133
|
displayConfig?: Record<string, {
|
|
5628
6134
|
closed?: string | undefined;
|
|
5629
6135
|
merged?: string | undefined;
|
|
@@ -5643,6 +6149,8 @@ declare const DraftAgentSchema: z.ZodObject<{
|
|
|
5643
6149
|
permissionCanMergePr?: string | undefined;
|
|
5644
6150
|
permissionCanMergePrDesc?: string | undefined;
|
|
5645
6151
|
}> | undefined;
|
|
6152
|
+
guildMsg?: string | undefined;
|
|
6153
|
+
placeholderMsg?: string | undefined;
|
|
5646
6154
|
environmentSchema?: {
|
|
5647
6155
|
type: "string" | "number" | "boolean" | "secret";
|
|
5648
6156
|
name: string;
|
|
@@ -5670,6 +6178,7 @@ declare const DraftAgentSchema: z.ZodObject<{
|
|
|
5670
6178
|
description: string | null;
|
|
5671
6179
|
enable: boolean;
|
|
5672
6180
|
config: {
|
|
6181
|
+
signature?: string | undefined;
|
|
5673
6182
|
displayConfig?: Record<string, {
|
|
5674
6183
|
closed?: string | undefined;
|
|
5675
6184
|
merged?: string | undefined;
|
|
@@ -5689,6 +6198,8 @@ declare const DraftAgentSchema: z.ZodObject<{
|
|
|
5689
6198
|
permissionCanMergePr?: string | undefined;
|
|
5690
6199
|
permissionCanMergePrDesc?: string | undefined;
|
|
5691
6200
|
}> | undefined;
|
|
6201
|
+
guildMsg?: string | undefined;
|
|
6202
|
+
placeholderMsg?: string | undefined;
|
|
5692
6203
|
environmentSchema?: {
|
|
5693
6204
|
type: "string" | "number" | "boolean" | "secret";
|
|
5694
6205
|
name: string;
|
|
@@ -5702,7 +6213,7 @@ declare const DraftAgentSchema: z.ZodObject<{
|
|
|
5702
6213
|
publishedAgentId: string | null;
|
|
5703
6214
|
sourceTaskId: string | null;
|
|
5704
6215
|
}>;
|
|
5705
|
-
type
|
|
6216
|
+
type UpdateDraftAgentResponse = z.infer<typeof UpdateDraftAgentResponseSchema>;
|
|
5706
6217
|
/**
|
|
5707
6218
|
* Response for user agents endpoint (agents + draft agents)
|
|
5708
6219
|
*/
|
|
@@ -5995,7 +6506,11 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
5995
6506
|
permissionCanMergePr?: string | undefined;
|
|
5996
6507
|
permissionCanMergePrDesc?: string | undefined;
|
|
5997
6508
|
}>>>;
|
|
6509
|
+
signature: z.ZodOptional<z.ZodString>;
|
|
6510
|
+
guildMsg: z.ZodOptional<z.ZodString>;
|
|
6511
|
+
placeholderMsg: z.ZodOptional<z.ZodString>;
|
|
5998
6512
|
}, "strip", z.ZodTypeAny, {
|
|
6513
|
+
signature?: string | undefined;
|
|
5999
6514
|
displayConfig?: Record<string, {
|
|
6000
6515
|
closed?: string | undefined;
|
|
6001
6516
|
merged?: string | undefined;
|
|
@@ -6015,6 +6530,8 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
6015
6530
|
permissionCanMergePr?: string | undefined;
|
|
6016
6531
|
permissionCanMergePrDesc?: string | undefined;
|
|
6017
6532
|
}> | undefined;
|
|
6533
|
+
guildMsg?: string | undefined;
|
|
6534
|
+
placeholderMsg?: string | undefined;
|
|
6018
6535
|
environmentSchema?: {
|
|
6019
6536
|
type: "string" | "number" | "boolean" | "secret";
|
|
6020
6537
|
name: string;
|
|
@@ -6023,6 +6540,7 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
6023
6540
|
defaultValue?: string | undefined;
|
|
6024
6541
|
}[] | undefined;
|
|
6025
6542
|
}, {
|
|
6543
|
+
signature?: string | undefined;
|
|
6026
6544
|
displayConfig?: Record<string, {
|
|
6027
6545
|
closed?: string | undefined;
|
|
6028
6546
|
merged?: string | undefined;
|
|
@@ -6042,6 +6560,8 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
6042
6560
|
permissionCanMergePr?: string | undefined;
|
|
6043
6561
|
permissionCanMergePrDesc?: string | undefined;
|
|
6044
6562
|
}> | undefined;
|
|
6563
|
+
guildMsg?: string | undefined;
|
|
6564
|
+
placeholderMsg?: string | undefined;
|
|
6045
6565
|
environmentSchema?: {
|
|
6046
6566
|
type: "string" | "number" | "boolean" | "secret";
|
|
6047
6567
|
name: string;
|
|
@@ -6079,6 +6599,7 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
6079
6599
|
description: string | null;
|
|
6080
6600
|
enable: boolean;
|
|
6081
6601
|
config: {
|
|
6602
|
+
signature?: string | undefined;
|
|
6082
6603
|
displayConfig?: Record<string, {
|
|
6083
6604
|
closed?: string | undefined;
|
|
6084
6605
|
merged?: string | undefined;
|
|
@@ -6098,6 +6619,8 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
6098
6619
|
permissionCanMergePr?: string | undefined;
|
|
6099
6620
|
permissionCanMergePrDesc?: string | undefined;
|
|
6100
6621
|
}> | undefined;
|
|
6622
|
+
guildMsg?: string | undefined;
|
|
6623
|
+
placeholderMsg?: string | undefined;
|
|
6101
6624
|
environmentSchema?: {
|
|
6102
6625
|
type: "string" | "number" | "boolean" | "secret";
|
|
6103
6626
|
name: string;
|
|
@@ -6125,6 +6648,7 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
6125
6648
|
description: string | null;
|
|
6126
6649
|
enable: boolean;
|
|
6127
6650
|
config: {
|
|
6651
|
+
signature?: string | undefined;
|
|
6128
6652
|
displayConfig?: Record<string, {
|
|
6129
6653
|
closed?: string | undefined;
|
|
6130
6654
|
merged?: string | undefined;
|
|
@@ -6144,6 +6668,8 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
6144
6668
|
permissionCanMergePr?: string | undefined;
|
|
6145
6669
|
permissionCanMergePrDesc?: string | undefined;
|
|
6146
6670
|
}> | undefined;
|
|
6671
|
+
guildMsg?: string | undefined;
|
|
6672
|
+
placeholderMsg?: string | undefined;
|
|
6147
6673
|
environmentSchema?: {
|
|
6148
6674
|
type: "string" | "number" | "boolean" | "secret";
|
|
6149
6675
|
name: string;
|
|
@@ -6214,6 +6740,7 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
6214
6740
|
description: string | null;
|
|
6215
6741
|
enable: boolean;
|
|
6216
6742
|
config: {
|
|
6743
|
+
signature?: string | undefined;
|
|
6217
6744
|
displayConfig?: Record<string, {
|
|
6218
6745
|
closed?: string | undefined;
|
|
6219
6746
|
merged?: string | undefined;
|
|
@@ -6233,6 +6760,8 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
6233
6760
|
permissionCanMergePr?: string | undefined;
|
|
6234
6761
|
permissionCanMergePrDesc?: string | undefined;
|
|
6235
6762
|
}> | undefined;
|
|
6763
|
+
guildMsg?: string | undefined;
|
|
6764
|
+
placeholderMsg?: string | undefined;
|
|
6236
6765
|
environmentSchema?: {
|
|
6237
6766
|
type: "string" | "number" | "boolean" | "secret";
|
|
6238
6767
|
name: string;
|
|
@@ -6303,6 +6832,7 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
6303
6832
|
description: string | null;
|
|
6304
6833
|
enable: boolean;
|
|
6305
6834
|
config: {
|
|
6835
|
+
signature?: string | undefined;
|
|
6306
6836
|
displayConfig?: Record<string, {
|
|
6307
6837
|
closed?: string | undefined;
|
|
6308
6838
|
merged?: string | undefined;
|
|
@@ -6322,6 +6852,8 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
6322
6852
|
permissionCanMergePr?: string | undefined;
|
|
6323
6853
|
permissionCanMergePrDesc?: string | undefined;
|
|
6324
6854
|
}> | undefined;
|
|
6855
|
+
guildMsg?: string | undefined;
|
|
6856
|
+
placeholderMsg?: string | undefined;
|
|
6325
6857
|
environmentSchema?: {
|
|
6326
6858
|
type: "string" | "number" | "boolean" | "secret";
|
|
6327
6859
|
name: string;
|
|
@@ -6337,6 +6869,66 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
6337
6869
|
}[];
|
|
6338
6870
|
}>;
|
|
6339
6871
|
type GetUserAgentsResponse = z.infer<typeof GetUserAgentsResponseSchema>;
|
|
6872
|
+
/**
|
|
6873
|
+
* POST /v1/agents/publish - Request schema
|
|
6874
|
+
* Publish a draft agent to production
|
|
6875
|
+
*/
|
|
6876
|
+
declare const PublishDraftAgentRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
6877
|
+
draftAgentId: z.ZodString;
|
|
6878
|
+
machineId: z.ZodOptional<z.ZodString>;
|
|
6879
|
+
cloudId: z.ZodOptional<z.ZodString>;
|
|
6880
|
+
name: z.ZodOptional<z.ZodString>;
|
|
6881
|
+
avatar: z.ZodOptional<z.ZodString>;
|
|
6882
|
+
isSystemAgent: z.ZodOptional<z.ZodBoolean>;
|
|
6883
|
+
supportLocal: z.ZodOptional<z.ZodBoolean>;
|
|
6884
|
+
}, "strip", z.ZodTypeAny, {
|
|
6885
|
+
draftAgentId: string;
|
|
6886
|
+
avatar?: string | undefined;
|
|
6887
|
+
machineId?: string | undefined;
|
|
6888
|
+
cloudId?: string | undefined;
|
|
6889
|
+
name?: string | undefined;
|
|
6890
|
+
supportLocal?: boolean | undefined;
|
|
6891
|
+
isSystemAgent?: boolean | undefined;
|
|
6892
|
+
}, {
|
|
6893
|
+
draftAgentId: string;
|
|
6894
|
+
avatar?: string | undefined;
|
|
6895
|
+
machineId?: string | undefined;
|
|
6896
|
+
cloudId?: string | undefined;
|
|
6897
|
+
name?: string | undefined;
|
|
6898
|
+
supportLocal?: boolean | undefined;
|
|
6899
|
+
isSystemAgent?: boolean | undefined;
|
|
6900
|
+
}>, {
|
|
6901
|
+
draftAgentId: string;
|
|
6902
|
+
avatar?: string | undefined;
|
|
6903
|
+
machineId?: string | undefined;
|
|
6904
|
+
cloudId?: string | undefined;
|
|
6905
|
+
name?: string | undefined;
|
|
6906
|
+
supportLocal?: boolean | undefined;
|
|
6907
|
+
isSystemAgent?: boolean | undefined;
|
|
6908
|
+
}, {
|
|
6909
|
+
draftAgentId: string;
|
|
6910
|
+
avatar?: string | undefined;
|
|
6911
|
+
machineId?: string | undefined;
|
|
6912
|
+
cloudId?: string | undefined;
|
|
6913
|
+
name?: string | undefined;
|
|
6914
|
+
supportLocal?: boolean | undefined;
|
|
6915
|
+
isSystemAgent?: boolean | undefined;
|
|
6916
|
+
}>;
|
|
6917
|
+
type PublishDraftAgentRequest = z.infer<typeof PublishDraftAgentRequestSchema>;
|
|
6918
|
+
/**
|
|
6919
|
+
* POST /v1/agents/publish - Response schema
|
|
6920
|
+
*/
|
|
6921
|
+
declare const PublishDraftAgentResponseSchema: z.ZodObject<{
|
|
6922
|
+
agentId: z.ZodString;
|
|
6923
|
+
taskId: z.ZodString;
|
|
6924
|
+
}, "strip", z.ZodTypeAny, {
|
|
6925
|
+
taskId: string;
|
|
6926
|
+
agentId: string;
|
|
6927
|
+
}, {
|
|
6928
|
+
taskId: string;
|
|
6929
|
+
agentId: string;
|
|
6930
|
+
}>;
|
|
6931
|
+
type PublishDraftAgentResponse = z.infer<typeof PublishDraftAgentResponseSchema>;
|
|
6340
6932
|
|
|
6341
6933
|
/**
|
|
6342
6934
|
* Machine HTTP request/response schemas
|
|
@@ -10108,6 +10700,115 @@ interface MergePullRequestAck {
|
|
|
10108
10700
|
error?: string;
|
|
10109
10701
|
errorType?: 'github_conflict' | 'pr_not_open' | 'permission_denied' | 'merge_failed' | 'unknown';
|
|
10110
10702
|
}
|
|
10703
|
+
/**
|
|
10704
|
+
* Deploy agent event (API → CLI)
|
|
10705
|
+
* Triggers agent deployment from draft to production
|
|
10706
|
+
*/
|
|
10707
|
+
declare const DeployAgentEventSchema: z.ZodEffects<z.ZodObject<{
|
|
10708
|
+
eventId: z.ZodString;
|
|
10709
|
+
} & {
|
|
10710
|
+
taskId: z.ZodString;
|
|
10711
|
+
draftAgentId: z.ZodString;
|
|
10712
|
+
userId: z.ZodString;
|
|
10713
|
+
machineId: z.ZodOptional<z.ZodString>;
|
|
10714
|
+
cloudId: z.ZodOptional<z.ZodString>;
|
|
10715
|
+
sourcePath: z.ZodString;
|
|
10716
|
+
targetAgentId: z.ZodString;
|
|
10717
|
+
name: z.ZodOptional<z.ZodString>;
|
|
10718
|
+
avatar: z.ZodOptional<z.ZodString>;
|
|
10719
|
+
isSystemAgent: z.ZodOptional<z.ZodBoolean>;
|
|
10720
|
+
supportLocal: z.ZodOptional<z.ZodBoolean>;
|
|
10721
|
+
}, "strip", z.ZodTypeAny, {
|
|
10722
|
+
userId: string;
|
|
10723
|
+
taskId: string;
|
|
10724
|
+
draftAgentId: string;
|
|
10725
|
+
eventId: string;
|
|
10726
|
+
sourcePath: string;
|
|
10727
|
+
targetAgentId: string;
|
|
10728
|
+
avatar?: string | undefined;
|
|
10729
|
+
machineId?: string | undefined;
|
|
10730
|
+
cloudId?: string | undefined;
|
|
10731
|
+
name?: string | undefined;
|
|
10732
|
+
supportLocal?: boolean | undefined;
|
|
10733
|
+
isSystemAgent?: boolean | undefined;
|
|
10734
|
+
}, {
|
|
10735
|
+
userId: string;
|
|
10736
|
+
taskId: string;
|
|
10737
|
+
draftAgentId: string;
|
|
10738
|
+
eventId: string;
|
|
10739
|
+
sourcePath: string;
|
|
10740
|
+
targetAgentId: string;
|
|
10741
|
+
avatar?: string | undefined;
|
|
10742
|
+
machineId?: string | undefined;
|
|
10743
|
+
cloudId?: string | undefined;
|
|
10744
|
+
name?: string | undefined;
|
|
10745
|
+
supportLocal?: boolean | undefined;
|
|
10746
|
+
isSystemAgent?: boolean | undefined;
|
|
10747
|
+
}>, {
|
|
10748
|
+
userId: string;
|
|
10749
|
+
taskId: string;
|
|
10750
|
+
draftAgentId: string;
|
|
10751
|
+
eventId: string;
|
|
10752
|
+
sourcePath: string;
|
|
10753
|
+
targetAgentId: string;
|
|
10754
|
+
avatar?: string | undefined;
|
|
10755
|
+
machineId?: string | undefined;
|
|
10756
|
+
cloudId?: string | undefined;
|
|
10757
|
+
name?: string | undefined;
|
|
10758
|
+
supportLocal?: boolean | undefined;
|
|
10759
|
+
isSystemAgent?: boolean | undefined;
|
|
10760
|
+
}, {
|
|
10761
|
+
userId: string;
|
|
10762
|
+
taskId: string;
|
|
10763
|
+
draftAgentId: string;
|
|
10764
|
+
eventId: string;
|
|
10765
|
+
sourcePath: string;
|
|
10766
|
+
targetAgentId: string;
|
|
10767
|
+
avatar?: string | undefined;
|
|
10768
|
+
machineId?: string | undefined;
|
|
10769
|
+
cloudId?: string | undefined;
|
|
10770
|
+
name?: string | undefined;
|
|
10771
|
+
supportLocal?: boolean | undefined;
|
|
10772
|
+
isSystemAgent?: boolean | undefined;
|
|
10773
|
+
}>;
|
|
10774
|
+
type DeployAgentEventData = z.infer<typeof DeployAgentEventSchema>;
|
|
10775
|
+
/**
|
|
10776
|
+
* Deploy agent complete event (CLI → API)
|
|
10777
|
+
* Sent when agent deployment completes (success or failure)
|
|
10778
|
+
*/
|
|
10779
|
+
declare const DeployAgentCompleteEventSchema: z.ZodObject<{
|
|
10780
|
+
eventId: z.ZodString;
|
|
10781
|
+
} & {
|
|
10782
|
+
taskId: z.ZodString;
|
|
10783
|
+
targetAgentId: z.ZodString;
|
|
10784
|
+
success: z.ZodBoolean;
|
|
10785
|
+
error: z.ZodOptional<z.ZodString>;
|
|
10786
|
+
name: z.ZodOptional<z.ZodString>;
|
|
10787
|
+
avatar: z.ZodOptional<z.ZodString>;
|
|
10788
|
+
isSystemAgent: z.ZodOptional<z.ZodBoolean>;
|
|
10789
|
+
supportLocal: z.ZodOptional<z.ZodBoolean>;
|
|
10790
|
+
}, "strip", z.ZodTypeAny, {
|
|
10791
|
+
success: boolean;
|
|
10792
|
+
taskId: string;
|
|
10793
|
+
eventId: string;
|
|
10794
|
+
targetAgentId: string;
|
|
10795
|
+
error?: string | undefined;
|
|
10796
|
+
avatar?: string | undefined;
|
|
10797
|
+
name?: string | undefined;
|
|
10798
|
+
supportLocal?: boolean | undefined;
|
|
10799
|
+
isSystemAgent?: boolean | undefined;
|
|
10800
|
+
}, {
|
|
10801
|
+
success: boolean;
|
|
10802
|
+
taskId: string;
|
|
10803
|
+
eventId: string;
|
|
10804
|
+
targetAgentId: string;
|
|
10805
|
+
error?: string | undefined;
|
|
10806
|
+
avatar?: string | undefined;
|
|
10807
|
+
name?: string | undefined;
|
|
10808
|
+
supportLocal?: boolean | undefined;
|
|
10809
|
+
isSystemAgent?: boolean | undefined;
|
|
10810
|
+
}>;
|
|
10811
|
+
type DeployAgentCompleteEventData = z.infer<typeof DeployAgentCompleteEventSchema>;
|
|
10111
10812
|
declare const AssociateRepoEventDataSchema: z.ZodObject<{
|
|
10112
10813
|
eventId: z.ZodString;
|
|
10113
10814
|
} & {
|
|
@@ -10371,7 +11072,11 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
10371
11072
|
permissionCanMergePr?: string | undefined;
|
|
10372
11073
|
permissionCanMergePrDesc?: string | undefined;
|
|
10373
11074
|
}>>>;
|
|
11075
|
+
signature: z.ZodOptional<z.ZodString>;
|
|
11076
|
+
guildMsg: z.ZodOptional<z.ZodString>;
|
|
11077
|
+
placeholderMsg: z.ZodOptional<z.ZodString>;
|
|
10374
11078
|
}, "strip", z.ZodTypeAny, {
|
|
11079
|
+
signature?: string | undefined;
|
|
10375
11080
|
displayConfig?: Record<string, {
|
|
10376
11081
|
closed?: string | undefined;
|
|
10377
11082
|
merged?: string | undefined;
|
|
@@ -10391,6 +11096,8 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
10391
11096
|
permissionCanMergePr?: string | undefined;
|
|
10392
11097
|
permissionCanMergePrDesc?: string | undefined;
|
|
10393
11098
|
}> | undefined;
|
|
11099
|
+
guildMsg?: string | undefined;
|
|
11100
|
+
placeholderMsg?: string | undefined;
|
|
10394
11101
|
environmentSchema?: {
|
|
10395
11102
|
type: "string" | "number" | "boolean" | "secret";
|
|
10396
11103
|
name: string;
|
|
@@ -10399,6 +11106,7 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
10399
11106
|
defaultValue?: string | undefined;
|
|
10400
11107
|
}[] | undefined;
|
|
10401
11108
|
}, {
|
|
11109
|
+
signature?: string | undefined;
|
|
10402
11110
|
displayConfig?: Record<string, {
|
|
10403
11111
|
closed?: string | undefined;
|
|
10404
11112
|
merged?: string | undefined;
|
|
@@ -10418,6 +11126,8 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
10418
11126
|
permissionCanMergePr?: string | undefined;
|
|
10419
11127
|
permissionCanMergePrDesc?: string | undefined;
|
|
10420
11128
|
}> | undefined;
|
|
11129
|
+
guildMsg?: string | undefined;
|
|
11130
|
+
placeholderMsg?: string | undefined;
|
|
10421
11131
|
environmentSchema?: {
|
|
10422
11132
|
type: "string" | "number" | "boolean" | "secret";
|
|
10423
11133
|
name: string;
|
|
@@ -10455,6 +11165,7 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
10455
11165
|
description: string | null;
|
|
10456
11166
|
enable: boolean;
|
|
10457
11167
|
config: {
|
|
11168
|
+
signature?: string | undefined;
|
|
10458
11169
|
displayConfig?: Record<string, {
|
|
10459
11170
|
closed?: string | undefined;
|
|
10460
11171
|
merged?: string | undefined;
|
|
@@ -10474,6 +11185,8 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
10474
11185
|
permissionCanMergePr?: string | undefined;
|
|
10475
11186
|
permissionCanMergePrDesc?: string | undefined;
|
|
10476
11187
|
}> | undefined;
|
|
11188
|
+
guildMsg?: string | undefined;
|
|
11189
|
+
placeholderMsg?: string | undefined;
|
|
10477
11190
|
environmentSchema?: {
|
|
10478
11191
|
type: "string" | "number" | "boolean" | "secret";
|
|
10479
11192
|
name: string;
|
|
@@ -10501,6 +11214,7 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
10501
11214
|
description: string | null;
|
|
10502
11215
|
enable: boolean;
|
|
10503
11216
|
config: {
|
|
11217
|
+
signature?: string | undefined;
|
|
10504
11218
|
displayConfig?: Record<string, {
|
|
10505
11219
|
closed?: string | undefined;
|
|
10506
11220
|
merged?: string | undefined;
|
|
@@ -10520,6 +11234,8 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
10520
11234
|
permissionCanMergePr?: string | undefined;
|
|
10521
11235
|
permissionCanMergePrDesc?: string | undefined;
|
|
10522
11236
|
}> | undefined;
|
|
11237
|
+
guildMsg?: string | undefined;
|
|
11238
|
+
placeholderMsg?: string | undefined;
|
|
10523
11239
|
environmentSchema?: {
|
|
10524
11240
|
type: "string" | "number" | "boolean" | "secret";
|
|
10525
11241
|
name: string;
|
|
@@ -10566,6 +11282,7 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
10566
11282
|
description: string | null;
|
|
10567
11283
|
enable: boolean;
|
|
10568
11284
|
config: {
|
|
11285
|
+
signature?: string | undefined;
|
|
10569
11286
|
displayConfig?: Record<string, {
|
|
10570
11287
|
closed?: string | undefined;
|
|
10571
11288
|
merged?: string | undefined;
|
|
@@ -10585,6 +11302,8 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
10585
11302
|
permissionCanMergePr?: string | undefined;
|
|
10586
11303
|
permissionCanMergePrDesc?: string | undefined;
|
|
10587
11304
|
}> | undefined;
|
|
11305
|
+
guildMsg?: string | undefined;
|
|
11306
|
+
placeholderMsg?: string | undefined;
|
|
10588
11307
|
environmentSchema?: {
|
|
10589
11308
|
type: "string" | "number" | "boolean" | "secret";
|
|
10590
11309
|
name: string;
|
|
@@ -10655,6 +11374,7 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
10655
11374
|
description: string | null;
|
|
10656
11375
|
enable: boolean;
|
|
10657
11376
|
config: {
|
|
11377
|
+
signature?: string | undefined;
|
|
10658
11378
|
displayConfig?: Record<string, {
|
|
10659
11379
|
closed?: string | undefined;
|
|
10660
11380
|
merged?: string | undefined;
|
|
@@ -10674,6 +11394,8 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
10674
11394
|
permissionCanMergePr?: string | undefined;
|
|
10675
11395
|
permissionCanMergePrDesc?: string | undefined;
|
|
10676
11396
|
}> | undefined;
|
|
11397
|
+
guildMsg?: string | undefined;
|
|
11398
|
+
placeholderMsg?: string | undefined;
|
|
10677
11399
|
environmentSchema?: {
|
|
10678
11400
|
type: "string" | "number" | "boolean" | "secret";
|
|
10679
11401
|
name: string;
|
|
@@ -10739,6 +11461,8 @@ type EventMap = {
|
|
|
10739
11461
|
"show-modal": ShowModalEventData;
|
|
10740
11462
|
"merge-request": MergeRequestEventData;
|
|
10741
11463
|
"merge-pr": MergePullRequestEventData;
|
|
11464
|
+
"deploy-agent": DeployAgentEventData;
|
|
11465
|
+
"deploy-agent-complete": DeployAgentCompleteEventData;
|
|
10742
11466
|
"task-stopped": TaskStoppedEventData;
|
|
10743
11467
|
"sub-task-completed": SubTaskCompletedEventData;
|
|
10744
11468
|
"associate-repo": AssociateRepoEventData;
|
|
@@ -10829,9 +11553,9 @@ interface AgentrixContext {
|
|
|
10829
11553
|
*/
|
|
10830
11554
|
getChatAgents(): Record<string, string>;
|
|
10831
11555
|
/**
|
|
10832
|
-
*
|
|
11556
|
+
* Create a new draft agent in the database
|
|
10833
11557
|
*/
|
|
10834
|
-
|
|
11558
|
+
createDraftAgent(params: {
|
|
10835
11559
|
name: string;
|
|
10836
11560
|
agentDir: string;
|
|
10837
11561
|
type?: 'claude' | 'codex';
|
|
@@ -10844,11 +11568,33 @@ interface AgentrixContext {
|
|
|
10844
11568
|
required: boolean;
|
|
10845
11569
|
defaultValue?: string;
|
|
10846
11570
|
}>;
|
|
10847
|
-
|
|
11571
|
+
signature?: string;
|
|
11572
|
+
guildMsg?: string;
|
|
11573
|
+
placeholderMsg?: string;
|
|
10848
11574
|
}): Promise<{
|
|
10849
11575
|
agentId: string;
|
|
10850
11576
|
displayName: string;
|
|
10851
11577
|
}>;
|
|
11578
|
+
/**
|
|
11579
|
+
* Update an existing draft agent in the database
|
|
11580
|
+
*/
|
|
11581
|
+
updateDraftAgent(id: string, updates: {
|
|
11582
|
+
avatar?: string | null;
|
|
11583
|
+
description?: string | null;
|
|
11584
|
+
config?: {
|
|
11585
|
+
environmentSchema?: Array<{
|
|
11586
|
+
name: string;
|
|
11587
|
+
type: 'string' | 'number' | 'boolean' | 'secret';
|
|
11588
|
+
description?: string;
|
|
11589
|
+
required: boolean;
|
|
11590
|
+
defaultValue?: string;
|
|
11591
|
+
}>;
|
|
11592
|
+
displayConfig?: Record<string, any>;
|
|
11593
|
+
signature?: string;
|
|
11594
|
+
guildMsg?: string;
|
|
11595
|
+
placeholderMsg?: string;
|
|
11596
|
+
};
|
|
11597
|
+
}): Promise<any>;
|
|
10852
11598
|
/**
|
|
10853
11599
|
* Create a sub task for multi-agent collaboration
|
|
10854
11600
|
* Automatically inherits chatId, rootTaskId, machineId/cloudId from current task
|
|
@@ -11310,5 +12056,5 @@ declare function decodeRtcChunkHeader(data: Uint8Array): RtcChunkHeader;
|
|
|
11310
12056
|
declare function buildRtcChunkFrame(header: RtcChunkHeader, payload: Uint8Array): Uint8Array;
|
|
11311
12057
|
declare function splitRtcChunkFrame(data: Uint8Array): RtcChunkFrame;
|
|
11312
12058
|
|
|
11313
|
-
export { AddChatMemberRequestSchema, AddChatMemberResponseSchema, AgentConfigValidationError, AgentCustomConfigSchema, AgentError, AgentLoadError, AgentMetadataSchema, AgentNotFoundError, AgentPermissionsSchema, AgentSchema, AgentTypeSchema, ApiErrorSchema, ApiServerAliveEventSchema, AppAliveEventSchema, ApprovalStatusResponseSchema, ApprovePrRequestSchema, ApprovePrResponseSchema, ArchiveTaskRequestSchema, ArchiveTaskResponseSchema, AskUserMessageSchema, AskUserOptionSchema, AskUserQuestionSchema, AskUserResponseMessageSchema, AskUserResponseReasonSchema, AskUserResponseStatusSchema, AssociateRepoEventDataSchema, BillingStatsResponseSchema, BranchSchema, CancelTaskRequestSchema, CancelTaskResponseSchema, ChangeTaskTitleEventSchema, ChargeTransactionSchema, ChatMemberInputSchema, ChatMemberSchema, ChatSchema, ChatTypeSchema, ChatWithMembersSchema, ClaudeConfigSchema, CloudJoinApprovalRequestSchema, CloudJoinRequestSchema, CloudJoinResultQuerySchema, CloudJoinStatusQuerySchema, CloudMachineSchema, CloudSchema, ConfirmUploadRequestSchema, ConfirmUploadResponseSchema, ConsumeTransactionSchema, CreateAgentRequestSchema, CreateAgentResponseSchema, CreateChatRequestSchema, CreateChatResponseSchema, CreateCloudRequestSchema, CreateCloudResponseSchema, CreateDraftAgentRequestSchema, CreateMergeRequestResponseSchema, CreateMergeRequestSchema, CreateOAuthServerRequestSchema, CreateOAuthServerResponseSchema, CreateTaskShareResponseSchema, CreateTaskShareSchema, CreditExhaustedEventSchema, CreditsPackageSchema, DateSchema, DeleteAgentResponseSchema, DeleteOAuthServerResponseSchema, DisplayConfigKeysSchema, DisplayConfigSchema, DraftAgentConfigSchema, DraftAgentSchema, EnvironmentVariableSchema, EventAckSchema, EventSchemaMap, FRAMEWORK_TYPES, FileItemSchema, FileStatsSchema, FileVisibilitySchema, FillEventsRequestSchema, FindTaskByAgentRequestSchema, FindTaskByAgentResponseSchema, FrameworkNotSupportedError, GetAgentResponseSchema, GetChatResponseSchema, GetEnvironmentVariablesResponseSchema, GetGitServerResponseSchema, GetGitUrlQuerySchema, GetGitUrlResponseSchema, GetInstallUrlResponseSchema, GetOAuthServerResponseSchema, GetRepositoryResponseSchema, GetTaskSessionResponseSchema, GetUploadUrlsRequestSchema, GetUploadUrlsResponseSchema, GetUserAgentsResponseSchema, GitHubIssueListItemSchema, GitHubIssueSchema, GitServerSchema, IdSchema, ListAgentsResponseSchema, ListBranchesResponseSchema, ListChatMembersResponseSchema, ListChatTasksResponseSchema, ListChatsQuerySchema, ListChatsResponseSchema, ListFilesQuerySchema, ListFilesResponseSchema, ListGitServersResponseSchema, ListIssuesQuerySchema, ListIssuesResponseSchema, ListMachinesResponseSchema, ListOAuthServersPublicResponseSchema, ListOAuthServersQuerySchema, ListOAuthServersResponseSchema, ListPackagesQuerySchema, ListPackagesResponseSchema, ListRepositoriesResponseSchema, ListTasksRequestSchema, ListTasksResponseSchema, ListTransactionsQuerySchema, ListTransactionsResponseSchema, LocalMachineSchema, LogoutResponseSchema, MachineAliveEventSchema, MachineApprovalRequestSchema, MachineApprovalStatusQuerySchema, MachineAuthAuthorizedResponseSchema, MachineAuthRequestSchema, MachineAuthResultQuerySchema, MachineRtcRequestSchema, MachineRtcResponseSchema, MergePullRequestEventSchema, MergeRequestEventSchema, MissingAgentFileError, OAuthAccountInfoSchema, OAuthBindCallbackResponseSchema, OAuthBindQuerySchema, OAuthBindResponseSchema, OAuthCallbackQuerySchema, OAuthCallbackResponseSchema, OAuthLoginQuerySchema, OAuthServerPublicSchema, OAuthServerSchema, OAuthUnbindResponseSchema, PaginatedResponseSchema, PermissionResponseRequestSchema, PermissionResponseResponseSchema, ProjectDirectoryResponseSchema, ProjectEntrySchema, QueryEventsRequestSchema, RTC_CHUNK_HEADER_SIZE, RechargeResponseSchema, RemoveChatMemberRequestSchema, RepositorySchema, ResetSecretRequestSchema, ResetSecretResponseSchema, ResumeTaskRequestSchema, ResumeTaskResponseSchema, RpcCallEventSchema, RpcResponseSchema, RtcChunkFlags, RtcIceServerSchema, RtcIceServersRequestSchema, RtcIceServersResponseSchema, RtcSignalSchema, SendTaskMessageRequestSchema, SendTaskMessageResponseSchema, SetEnvironmentVariablesRequestSchema, ShareAuthQuerySchema, ShareAuthResponseSchema, ShowModalEventDataSchema, ShowModalRequestSchema, ShowModalResponseSchema, ShutdownMachineSchema, SignatureAuthRequestSchema, SignatureAuthResponseSchema, SimpleSuccessSchema, StartTaskRequestSchema, StartTaskResponseSchema, StatsQuerySchema, StopTaskRequestSchema, StopTaskResponseSchema, StopTaskSchema, SubTaskCompletedEventSchema, SyncCloudMachineResponseSchema, SyncLocalMachineResponseSchema, SyncMachineRequestSchema, SystemMessageSchema, TaskArtifactsMessageSchema, TaskArtifactsUpdatedEventSchema, TaskInfoUpdateEventDataSchema, TaskItemSchema, TaskMessageSchema, TaskSharePermissionsSchema, TaskStateChangeEventSchema, TaskStoppedEventSchema, TaskTransactionsResponseSchema, ToggleOAuthServerRequestSchema, ToggleOAuthServerResponseSchema, TransactionSchema, UnarchiveTaskRequestSchema, UnarchiveTaskResponseSchema, UpdateAgentRequestSchema, UpdateAgentResponseSchema, UpdateOAuthServerRequestSchema, UpdateOAuthServerResponseSchema, UpdateTaskAgentSessionIdEventSchema, UpdateTaskTitleRequestSchema, UpdateTaskTitleResponseSchema, UploadUrlResultSchema, UserBalanceResponseSchema, UserBasicInfoSchema, UserProfileResponseSchema, UserWithOAuthAccountsSchema, WorkerAliveEventSchema, WorkerExitSchema, WorkerInitializedSchema, WorkerInitializingSchema, WorkerReadySchema, WorkerRunningSchema, WorkerStatusRequestSchema, WorkspaceFileRequestSchema, WorkspaceFileResponseSchema, assertAgentExists, assertFileExists, baseTaskSchema, buildRtcChunkFrame, cancelTaskRequestSchema, cancelTaskSchema, createEventId, createKeyPair, createKeyPairWithUit8Array, createMergeRequestSchema, createTaskSchema, decodeBase64, decodeRtcChunkHeader, decryptAES, decryptFileContent, decryptMachineEncryptionKey, decryptSdkMessage, decryptWithEphemeralKey, discoverPlugins, encodeBase64, encodeBase64Url, encodeRtcChunkHeader, encryptAES, encryptFileContent, encryptMachineEncryptionKey, encryptSdkMessage, encryptWithEphemeralKey, generateAESKey, generateAESKeyBase64, getAgentContext, getRandomBytes, isAskUserMessage, isAskUserResponseMessage, isSDKMessage, isTaskArtifactsMessage, loadAgentConfig, machineAuth, permissionResponseRequestSchema, replacePromptPlaceholders, resumeTaskRequestSchema, resumeTaskSchema, setAgentContext, splitRtcChunkFrame, startTaskSchema, stopTaskRequestSchema, userAuth, validateAgentDirectory, validateFrameworkDirectory, workerAuth, workerTaskEvents };
|
|
11314
|
-
export type { AddChatMemberRequest, AddChatMemberResponse, Agent, AgentConfig, AgentContext, AgentCustomConfig, AgentMetadata, AgentPermissions, AgentType, AgentrixContext, ApiError, ApiServerAliveEventData, AppAliveEventData, ApprovalStatusResponse, ApprovePrRequest, ApprovePrResponse, ArchiveTaskRequest, ArchiveTaskResponse, AskUserMessage, AskUserOption, AskUserQuestion, AskUserResponseMessage, AskUserResponseReason, AskUserResponseStatus, AssociateRepoEventData, AuthPayload, BillingStatsResponse, Branch, CancelTaskEventData, CancelTaskRequest, CancelTaskResponse, ChangeTaskTitleEventData, ChargeTransaction, Chat, ChatMember, ChatMemberInput, ChatType, ChatWithMembers, ClaudeAgentConfig, ClientType, Cloud, CloudJoinApprovalRequest, CloudJoinRequest, CloudJoinResultQuery, CloudJoinStatusQuery, CloudMachine, ConfirmUploadRequest, ConfirmUploadResponse, ConsumeTransaction, CreateAgentRequest, CreateAgentResponse, CreateChatRequest, CreateChatResponse, CreateCloudRequest, CreateCloudResponse, CreateDraftAgentRequest, CreateMergeRequestRequest, CreateMergeRequestResponse, CreateOAuthServerRequest, CreateOAuthServerResponse, CreateTaskEventData, CreateTaskShareRequest, CreateTaskShareResponse, CreditExhaustedEventData, CreditsPackage, DeleteAgentResponse, DeleteOAuthServerResponse, DisplayConfig, DisplayConfigKeys, DraftAgent, DraftAgentConfig, EnvironmentVariable, EventAckData, EventData, EventMap, EventName, FileItem, FileStats, FileVisibility, FillEventsRequest, FillEventsResponse, FindTaskByAgentRequest, FindTaskByAgentResponse, FrameworkType, GetAgentResponse, GetChatResponse, GetEnvironmentVariablesResponse, GetGitServerResponse, GetGitUrlQuery, GetGitUrlResponse, GetInstallUrlResponse, GetOAuthServerResponse, GetRepositoryResponse, GetTaskSessionResponse, GetUploadUrlsRequest, GetUploadUrlsResponse, GetUserAgentsResponse, GitHubIssue, GitHubIssueListItem, GitServer, HookFactory, ListAgentsResponse, ListBranchesResponse, ListChatMembersResponse, ListChatTasksResponse, ListChatsQuery, ListChatsResponse, ListFilesQuery, ListFilesResponse, ListGitServersResponse, ListIssuesQuery, ListIssuesResponse, ListMachinesResponse, ListOAuthServersPublicResponse, ListOAuthServersQuery, ListOAuthServersResponse, ListPackagesQuery, ListPackagesResponse, ListRepositoriesResponse, ListTasksRequest, ListTasksResponse, ListTransactionsQuery, ListTransactionsResponse, LoadAgentOptions, LocalMachine, LogoutResponse, MachineAliveEventData, MachineApprovalRequest, MachineApprovalStatusQuery, MachineAuthAuthorizedResponse, MachineAuthRequest, MachineAuthResultQuery, MachineEncryptionKey, MachineRtcRequestEventData, MachineRtcResponseEventData, MergePullRequestAck, MergePullRequestEventData, MergeRequestEventData, OAuthAccountInfo, OAuthBindCallbackResponse, OAuthBindQuery, OAuthBindResponse, OAuthCallbackQuery, OAuthCallbackResponse, OAuthLoginQuery, OAuthServer, OAuthServerPublic, OAuthUnbindResponse, PermissionResponseRequest, PermissionResponseResponse, PrStateChangedData, ProjectDirectoryResponse, ProjectEntry, QueryEventsRequest, QueryEventsResponse, RechargeResponse, RemoveChatMemberRequest, Repository, RepositoryInitHookInput, ResetSecretRequest, ResetSecretResponse, ResumeTaskEventData, ResumeTaskRequest, ResumeTaskResponse, RpcCallEventData, RpcResponseData, RtcChunkFrame, RtcChunkHeader, RtcControlChannel, RtcControlMessage, RtcIceServer, RtcIceServersRequestEventData, RtcIceServersResponseEventData, RtcSignalEventData, SendMessageTarget, SendTaskMessageRequest, SendTaskMessageResponse, SetEnvironmentVariablesRequest, ShareAuthQuery, ShareAuthResponse, ShowModalEventData, ShowModalRequest, ShowModalResponse, ShutdownMachineData, SignatureAuthRequest, SignatureAuthResponse, SimpleSuccess, StartTaskRequest, StartTaskResponse, StatsQuery, StopTaskEventData, StopTaskRequest, StopTaskResponse, SubTaskCompletedEventData, SyncCloudMachineResponse, SyncLocalMachineResponse, SyncMachineRequest, SystemMessageEventData, SystemMessageType, TaskArtifactsMessage, TaskArtifactsUpdatedEventData, TaskEvent, TaskInfoUpdateEventData, TaskItem, TaskMessageEventData, TaskMessagePayload, TaskSharePermissions, TaskState, TaskStateChangeEventData, TaskStoppedEventData, TaskTransactionsResponse, ToggleOAuthServerRequest, ToggleOAuthServerResponse, Transaction, UnarchiveTaskRequest, UnarchiveTaskResponse, UpdateAgentRequest, UpdateAgentResponse, UpdateOAuthServerRequest, UpdateOAuthServerResponse, UpdateTaskAgentSessionIdEventData, UpdateTaskTitleRequest, UpdateTaskTitleResponse, UploadUrlResult, UserBalanceResponse, UserBasicInfo, UserProfileResponse, UserWithOAuthAccounts, ValidationResult, WorkerAliveEventData, WorkerExitEventData, WorkerInitializedEventData, WorkerInitializingEventData, WorkerReadyEventData, WorkerRunningEventData, WorkerStatusRequestEventData, WorkerTaskEvent, WorkspaceFileRequestEventData, WorkspaceFileResponseEventData };
|
|
12059
|
+
export { AddChatMemberRequestSchema, AddChatMemberResponseSchema, AgentConfigValidationError, AgentCustomConfigSchema, AgentError, AgentLoadError, AgentMetadataSchema, AgentNotFoundError, AgentPermissionsSchema, AgentSchema, AgentTypeSchema, ApiErrorSchema, ApiServerAliveEventSchema, AppAliveEventSchema, ApprovalStatusResponseSchema, ApprovePrRequestSchema, ApprovePrResponseSchema, ArchiveTaskRequestSchema, ArchiveTaskResponseSchema, AskUserMessageSchema, AskUserOptionSchema, AskUserQuestionSchema, AskUserResponseMessageSchema, AskUserResponseReasonSchema, AskUserResponseStatusSchema, AssociateRepoEventDataSchema, BillingStatsResponseSchema, BranchSchema, CancelTaskRequestSchema, CancelTaskResponseSchema, ChangeTaskTitleEventSchema, ChargeTransactionSchema, ChatMemberInputSchema, ChatMemberSchema, ChatSchema, ChatTypeSchema, ChatWithMembersSchema, ClaudeConfigSchema, CloudJoinApprovalRequestSchema, CloudJoinRequestSchema, CloudJoinResultQuerySchema, CloudJoinStatusQuerySchema, CloudMachineSchema, CloudSchema, ConfirmUploadRequestSchema, ConfirmUploadResponseSchema, ConsumeTransactionSchema, CreateAgentRequestSchema, CreateAgentResponseSchema, CreateChatRequestSchema, CreateChatResponseSchema, CreateCloudRequestSchema, CreateCloudResponseSchema, CreateDraftAgentRequestSchema, CreateMergeRequestResponseSchema, CreateMergeRequestSchema, CreateOAuthServerRequestSchema, CreateOAuthServerResponseSchema, CreateTaskShareResponseSchema, CreateTaskShareSchema, CreditExhaustedEventSchema, CreditsPackageSchema, DateSchema, DeleteAgentResponseSchema, DeleteOAuthServerResponseSchema, DeployAgentCompleteEventSchema, DeployAgentEventSchema, DisplayConfigKeysSchema, DisplayConfigSchema, DraftAgentConfigSchema, DraftAgentSchema, EnvironmentVariableSchema, EventAckSchema, EventSchemaMap, FRAMEWORK_TYPES, FileItemSchema, FileStatsSchema, FileVisibilitySchema, FillEventsRequestSchema, FindTaskByAgentRequestSchema, FindTaskByAgentResponseSchema, FrameworkNotSupportedError, GetAgentResponseSchema, GetChatResponseSchema, GetEnvironmentVariablesResponseSchema, GetGitServerResponseSchema, GetGitUrlQuerySchema, GetGitUrlResponseSchema, GetInstallUrlResponseSchema, GetOAuthServerResponseSchema, GetRepositoryResponseSchema, GetTaskSessionResponseSchema, GetUploadUrlsRequestSchema, GetUploadUrlsResponseSchema, GetUserAgentsResponseSchema, GitHubIssueListItemSchema, GitHubIssueSchema, GitServerSchema, IdSchema, ListAgentsResponseSchema, ListBranchesResponseSchema, ListChatMembersResponseSchema, ListChatTasksResponseSchema, ListChatsQuerySchema, ListChatsResponseSchema, ListFilesQuerySchema, ListFilesResponseSchema, ListGitServersResponseSchema, ListIssuesQuerySchema, ListIssuesResponseSchema, ListMachinesResponseSchema, ListOAuthServersPublicResponseSchema, ListOAuthServersQuerySchema, ListOAuthServersResponseSchema, ListPackagesQuerySchema, ListPackagesResponseSchema, ListRepositoriesResponseSchema, ListTasksRequestSchema, ListTasksResponseSchema, ListTransactionsQuerySchema, ListTransactionsResponseSchema, LocalMachineSchema, LogoutResponseSchema, MachineAliveEventSchema, MachineApprovalRequestSchema, MachineApprovalStatusQuerySchema, MachineAuthAuthorizedResponseSchema, MachineAuthRequestSchema, MachineAuthResultQuerySchema, MachineRtcRequestSchema, MachineRtcResponseSchema, MergePullRequestEventSchema, MergeRequestEventSchema, MissingAgentFileError, OAuthAccountInfoSchema, OAuthBindCallbackResponseSchema, OAuthBindQuerySchema, OAuthBindResponseSchema, OAuthCallbackQuerySchema, OAuthCallbackResponseSchema, OAuthLoginQuerySchema, OAuthServerPublicSchema, OAuthServerSchema, OAuthUnbindResponseSchema, PaginatedResponseSchema, PermissionResponseRequestSchema, PermissionResponseResponseSchema, ProjectDirectoryResponseSchema, ProjectEntrySchema, PublishDraftAgentRequestSchema, PublishDraftAgentResponseSchema, QueryEventsRequestSchema, RTC_CHUNK_HEADER_SIZE, RechargeResponseSchema, RemoveChatMemberRequestSchema, RepositorySchema, ResetSecretRequestSchema, ResetSecretResponseSchema, ResumeTaskRequestSchema, ResumeTaskResponseSchema, RpcCallEventSchema, RpcResponseSchema, RtcChunkFlags, RtcIceServerSchema, RtcIceServersRequestSchema, RtcIceServersResponseSchema, RtcSignalSchema, SendTaskMessageRequestSchema, SendTaskMessageResponseSchema, SetEnvironmentVariablesRequestSchema, ShareAuthQuerySchema, ShareAuthResponseSchema, ShowModalEventDataSchema, ShowModalRequestSchema, ShowModalResponseSchema, ShutdownMachineSchema, SignatureAuthRequestSchema, SignatureAuthResponseSchema, SimpleSuccessSchema, StartTaskRequestSchema, StartTaskResponseSchema, StatsQuerySchema, StopTaskRequestSchema, StopTaskResponseSchema, StopTaskSchema, SubTaskCompletedEventSchema, SyncCloudMachineResponseSchema, SyncLocalMachineResponseSchema, SyncMachineRequestSchema, SystemMessageSchema, TaskArtifactsMessageSchema, TaskArtifactsUpdatedEventSchema, TaskInfoUpdateEventDataSchema, TaskItemSchema, TaskMessageSchema, TaskSharePermissionsSchema, TaskStateChangeEventSchema, TaskStoppedEventSchema, TaskTransactionsResponseSchema, ToggleOAuthServerRequestSchema, ToggleOAuthServerResponseSchema, TransactionSchema, UnarchiveTaskRequestSchema, UnarchiveTaskResponseSchema, UpdateAgentRequestSchema, UpdateAgentResponseSchema, UpdateDraftAgentRequestSchema, UpdateDraftAgentResponseSchema, UpdateOAuthServerRequestSchema, UpdateOAuthServerResponseSchema, UpdateTaskAgentSessionIdEventSchema, UpdateTaskTitleRequestSchema, UpdateTaskTitleResponseSchema, UploadUrlResultSchema, UserBalanceResponseSchema, UserBasicInfoSchema, UserProfileResponseSchema, UserWithOAuthAccountsSchema, WorkerAliveEventSchema, WorkerExitSchema, WorkerInitializedSchema, WorkerInitializingSchema, WorkerReadySchema, WorkerRunningSchema, WorkerStatusRequestSchema, WorkspaceFileRequestSchema, WorkspaceFileResponseSchema, assertAgentExists, assertFileExists, baseTaskSchema, buildRtcChunkFrame, cancelTaskRequestSchema, cancelTaskSchema, createEventId, createKeyPair, createKeyPairWithUit8Array, createMergeRequestSchema, createTaskSchema, decodeBase64, decodeRtcChunkHeader, decryptAES, decryptFileContent, decryptMachineEncryptionKey, decryptSdkMessage, decryptWithEphemeralKey, discoverPlugins, encodeBase64, encodeBase64Url, encodeRtcChunkHeader, encryptAES, encryptFileContent, encryptMachineEncryptionKey, encryptSdkMessage, encryptWithEphemeralKey, generateAESKey, generateAESKeyBase64, getAgentContext, getRandomBytes, isAskUserMessage, isAskUserResponseMessage, isSDKMessage, isTaskArtifactsMessage, loadAgentConfig, machineAuth, permissionResponseRequestSchema, replacePromptPlaceholders, resumeTaskRequestSchema, resumeTaskSchema, setAgentContext, splitRtcChunkFrame, startTaskSchema, stopTaskRequestSchema, userAuth, validateAgentDirectory, validateFrameworkDirectory, workerAuth, workerTaskEvents };
|
|
12060
|
+
export type { AddChatMemberRequest, AddChatMemberResponse, Agent, AgentConfig, AgentContext, AgentCustomConfig, AgentMetadata, AgentPermissions, AgentType, AgentrixContext, ApiError, ApiServerAliveEventData, AppAliveEventData, ApprovalStatusResponse, ApprovePrRequest, ApprovePrResponse, ArchiveTaskRequest, ArchiveTaskResponse, AskUserMessage, AskUserOption, AskUserQuestion, AskUserResponseMessage, AskUserResponseReason, AskUserResponseStatus, AssociateRepoEventData, AuthPayload, BillingStatsResponse, Branch, CancelTaskEventData, CancelTaskRequest, CancelTaskResponse, ChangeTaskTitleEventData, ChargeTransaction, Chat, ChatMember, ChatMemberInput, ChatType, ChatWithMembers, ClaudeAgentConfig, ClientType, Cloud, CloudJoinApprovalRequest, CloudJoinRequest, CloudJoinResultQuery, CloudJoinStatusQuery, CloudMachine, ConfirmUploadRequest, ConfirmUploadResponse, ConsumeTransaction, CreateAgentRequest, CreateAgentResponse, CreateChatRequest, CreateChatResponse, CreateCloudRequest, CreateCloudResponse, CreateDraftAgentRequest, CreateMergeRequestRequest, CreateMergeRequestResponse, CreateOAuthServerRequest, CreateOAuthServerResponse, CreateTaskEventData, CreateTaskShareRequest, CreateTaskShareResponse, CreditExhaustedEventData, CreditsPackage, DeleteAgentResponse, DeleteOAuthServerResponse, DeployAgentCompleteEventData, DeployAgentEventData, DisplayConfig, DisplayConfigKeys, DraftAgent, DraftAgentConfig, EnvironmentVariable, EventAckData, EventData, EventMap, EventName, FileItem, FileStats, FileVisibility, FillEventsRequest, FillEventsResponse, FindTaskByAgentRequest, FindTaskByAgentResponse, FrameworkType, GetAgentResponse, GetChatResponse, GetEnvironmentVariablesResponse, GetGitServerResponse, GetGitUrlQuery, GetGitUrlResponse, GetInstallUrlResponse, GetOAuthServerResponse, GetRepositoryResponse, GetTaskSessionResponse, GetUploadUrlsRequest, GetUploadUrlsResponse, GetUserAgentsResponse, GitHubIssue, GitHubIssueListItem, GitServer, HookFactory, ListAgentsResponse, ListBranchesResponse, ListChatMembersResponse, ListChatTasksResponse, ListChatsQuery, ListChatsResponse, ListFilesQuery, ListFilesResponse, ListGitServersResponse, ListIssuesQuery, ListIssuesResponse, ListMachinesResponse, ListOAuthServersPublicResponse, ListOAuthServersQuery, ListOAuthServersResponse, ListPackagesQuery, ListPackagesResponse, ListRepositoriesResponse, ListTasksRequest, ListTasksResponse, ListTransactionsQuery, ListTransactionsResponse, LoadAgentOptions, LocalMachine, LogoutResponse, MachineAliveEventData, MachineApprovalRequest, MachineApprovalStatusQuery, MachineAuthAuthorizedResponse, MachineAuthRequest, MachineAuthResultQuery, MachineEncryptionKey, MachineRtcRequestEventData, MachineRtcResponseEventData, MergePullRequestAck, MergePullRequestEventData, MergeRequestEventData, OAuthAccountInfo, OAuthBindCallbackResponse, OAuthBindQuery, OAuthBindResponse, OAuthCallbackQuery, OAuthCallbackResponse, OAuthLoginQuery, OAuthServer, OAuthServerPublic, OAuthUnbindResponse, PermissionResponseRequest, PermissionResponseResponse, PrStateChangedData, ProjectDirectoryResponse, ProjectEntry, PublishDraftAgentRequest, PublishDraftAgentResponse, QueryEventsRequest, QueryEventsResponse, RechargeResponse, RemoveChatMemberRequest, Repository, RepositoryInitHookInput, ResetSecretRequest, ResetSecretResponse, ResumeTaskEventData, ResumeTaskRequest, ResumeTaskResponse, RpcCallEventData, RpcResponseData, RtcChunkFrame, RtcChunkHeader, RtcControlChannel, RtcControlMessage, RtcIceServer, RtcIceServersRequestEventData, RtcIceServersResponseEventData, RtcSignalEventData, SendMessageTarget, SendTaskMessageRequest, SendTaskMessageResponse, SetEnvironmentVariablesRequest, ShareAuthQuery, ShareAuthResponse, ShowModalEventData, ShowModalRequest, ShowModalResponse, ShutdownMachineData, SignatureAuthRequest, SignatureAuthResponse, SimpleSuccess, StartTaskRequest, StartTaskResponse, StatsQuery, StopTaskEventData, StopTaskRequest, StopTaskResponse, SubTaskCompletedEventData, SyncCloudMachineResponse, SyncLocalMachineResponse, SyncMachineRequest, SystemMessageEventData, SystemMessageType, TaskArtifactsMessage, TaskArtifactsUpdatedEventData, TaskEvent, TaskInfoUpdateEventData, TaskItem, TaskMessageEventData, TaskMessagePayload, TaskSharePermissions, TaskState, TaskStateChangeEventData, TaskStoppedEventData, TaskTransactionsResponse, ToggleOAuthServerRequest, ToggleOAuthServerResponse, Transaction, UnarchiveTaskRequest, UnarchiveTaskResponse, UpdateAgentRequest, UpdateAgentResponse, UpdateDraftAgentRequest, UpdateDraftAgentResponse, UpdateOAuthServerRequest, UpdateOAuthServerResponse, UpdateTaskAgentSessionIdEventData, UpdateTaskTitleRequest, UpdateTaskTitleResponse, UploadUrlResult, UserBalanceResponse, UserBasicInfo, UserProfileResponse, UserWithOAuthAccounts, ValidationResult, WorkerAliveEventData, WorkerExitEventData, WorkerInitializedEventData, WorkerInitializingEventData, WorkerReadyEventData, WorkerRunningEventData, WorkerStatusRequestEventData, WorkerTaskEvent, WorkspaceFileRequestEventData, WorkspaceFileResponseEventData };
|