@agentrix/shared 2.0.2 → 2.0.3
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 +14 -5
- package/dist/index.d.cts +457 -70
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -536,8 +536,8 @@ const AgentCustomConfigSchema = zod.z.object({
|
|
|
536
536
|
const AgentPermissionsSchema = zod.z.object({
|
|
537
537
|
role: zod.z.string(),
|
|
538
538
|
// "all" | "low"
|
|
539
|
-
|
|
540
|
-
// URL/path
|
|
539
|
+
paths: zod.z.array(zod.z.string()).optional()
|
|
540
|
+
// URL/path patterns
|
|
541
541
|
});
|
|
542
542
|
const AgentSchema = zod.z.object({
|
|
543
543
|
id: IdSchema,
|
|
@@ -1042,10 +1042,14 @@ const AskUserMessageSchema = zod.z.object({
|
|
|
1042
1042
|
questions: zod.z.array(AskUserQuestionSchema).min(1).max(4)
|
|
1043
1043
|
// 1-4 questions
|
|
1044
1044
|
});
|
|
1045
|
+
const AskUserResponseStatusSchema = zod.z.enum(["answered", "cancelled", "timeout"]);
|
|
1046
|
+
const AskUserResponseReasonSchema = zod.z.enum(["user", "timeout", "system"]);
|
|
1045
1047
|
const AskUserResponseMessageSchema = zod.z.object({
|
|
1046
1048
|
type: zod.z.literal("ask_user_response"),
|
|
1047
|
-
answers: zod.z.array(zod.z.string())
|
|
1049
|
+
answers: zod.z.array(zod.z.string()),
|
|
1048
1050
|
// Array of answers (labels), one per question
|
|
1051
|
+
status: AskUserResponseStatusSchema.optional(),
|
|
1052
|
+
reason: AskUserResponseReasonSchema.optional()
|
|
1049
1053
|
});
|
|
1050
1054
|
function isAskUserMessage(message) {
|
|
1051
1055
|
return typeof message === "object" && message !== null && "type" in message && message.type === "ask_user";
|
|
@@ -1385,7 +1389,8 @@ const SystemMessageSchema = EventBaseSchema.extend({
|
|
|
1385
1389
|
"chat-member-removed",
|
|
1386
1390
|
"repo-added",
|
|
1387
1391
|
"repo-removed",
|
|
1388
|
-
"pr-state-changed"
|
|
1392
|
+
"pr-state-changed",
|
|
1393
|
+
"agent-builder-added"
|
|
1389
1394
|
]),
|
|
1390
1395
|
data: zod.z.union([
|
|
1391
1396
|
IdOnlySchema,
|
|
@@ -1398,8 +1403,10 @@ const SystemMessageSchema = EventBaseSchema.extend({
|
|
|
1398
1403
|
// chat-member-removed (array)
|
|
1399
1404
|
RepositorySchema,
|
|
1400
1405
|
// repo-added
|
|
1401
|
-
PrStateChangedSchema
|
|
1406
|
+
PrStateChangedSchema,
|
|
1402
1407
|
// pr-state-changed
|
|
1408
|
+
AgentBuilderSchema
|
|
1409
|
+
// agent-builder-added
|
|
1403
1410
|
]),
|
|
1404
1411
|
timestamp: zod.z.string()
|
|
1405
1412
|
});
|
|
@@ -2063,6 +2070,8 @@ exports.AskUserMessageSchema = AskUserMessageSchema;
|
|
|
2063
2070
|
exports.AskUserOptionSchema = AskUserOptionSchema;
|
|
2064
2071
|
exports.AskUserQuestionSchema = AskUserQuestionSchema;
|
|
2065
2072
|
exports.AskUserResponseMessageSchema = AskUserResponseMessageSchema;
|
|
2073
|
+
exports.AskUserResponseReasonSchema = AskUserResponseReasonSchema;
|
|
2074
|
+
exports.AskUserResponseStatusSchema = AskUserResponseStatusSchema;
|
|
2066
2075
|
exports.AssociateRepoEventDataSchema = AssociateRepoEventDataSchema;
|
|
2067
2076
|
exports.BillingStatsResponseSchema = BillingStatsResponseSchema;
|
|
2068
2077
|
exports.BranchSchema = BranchSchema;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { SDKUserMessage, SDKMessage } from '@anthropic-ai/claude-agent-sdk';
|
|
2
|
+
import { SDKUserMessage, SDKMessage, HookCallback } from '@anthropic-ai/claude-agent-sdk';
|
|
3
3
|
import tweetnacl from 'tweetnacl';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -3436,13 +3436,13 @@ type AgentCustomConfig = z.infer<typeof AgentCustomConfigSchema>;
|
|
|
3436
3436
|
*/
|
|
3437
3437
|
declare const AgentPermissionsSchema: z.ZodObject<{
|
|
3438
3438
|
role: z.ZodString;
|
|
3439
|
-
|
|
3439
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3440
3440
|
}, "strip", z.ZodTypeAny, {
|
|
3441
|
-
path: string;
|
|
3442
3441
|
role: string;
|
|
3442
|
+
paths?: string[] | undefined;
|
|
3443
3443
|
}, {
|
|
3444
|
-
path: string;
|
|
3445
3444
|
role: string;
|
|
3445
|
+
paths?: string[] | undefined;
|
|
3446
3446
|
}>;
|
|
3447
3447
|
type AgentPermissions = z.infer<typeof AgentPermissionsSchema>;
|
|
3448
3448
|
declare const AgentSchema: z.ZodObject<{
|
|
@@ -3559,13 +3559,13 @@ declare const AgentSchema: z.ZodObject<{
|
|
|
3559
3559
|
}>>;
|
|
3560
3560
|
permissions: z.ZodNullable<z.ZodObject<{
|
|
3561
3561
|
role: z.ZodString;
|
|
3562
|
-
|
|
3562
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3563
3563
|
}, "strip", z.ZodTypeAny, {
|
|
3564
|
-
path: string;
|
|
3565
3564
|
role: string;
|
|
3565
|
+
paths?: string[] | undefined;
|
|
3566
3566
|
}, {
|
|
3567
|
-
path: string;
|
|
3568
3567
|
role: string;
|
|
3568
|
+
paths?: string[] | undefined;
|
|
3569
3569
|
}>>;
|
|
3570
3570
|
}, "strip", z.ZodTypeAny, {
|
|
3571
3571
|
type: "claude" | "codex";
|
|
@@ -3574,8 +3574,8 @@ declare const AgentSchema: z.ZodObject<{
|
|
|
3574
3574
|
signature: string | null;
|
|
3575
3575
|
userId: string;
|
|
3576
3576
|
permissions: {
|
|
3577
|
-
path: string;
|
|
3578
3577
|
role: string;
|
|
3578
|
+
paths?: string[] | undefined;
|
|
3579
3579
|
} | null;
|
|
3580
3580
|
name: string;
|
|
3581
3581
|
description: string | null;
|
|
@@ -3614,8 +3614,8 @@ declare const AgentSchema: z.ZodObject<{
|
|
|
3614
3614
|
signature: string | null;
|
|
3615
3615
|
userId: string;
|
|
3616
3616
|
permissions: {
|
|
3617
|
-
path: string;
|
|
3618
3617
|
role: string;
|
|
3618
|
+
paths?: string[] | undefined;
|
|
3619
3619
|
} | null;
|
|
3620
3620
|
name: string;
|
|
3621
3621
|
description: string | null;
|
|
@@ -3767,13 +3767,13 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
|
|
|
3767
3767
|
}>>;
|
|
3768
3768
|
permissions: z.ZodNullable<z.ZodObject<{
|
|
3769
3769
|
role: z.ZodString;
|
|
3770
|
-
|
|
3770
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3771
3771
|
}, "strip", z.ZodTypeAny, {
|
|
3772
|
-
path: string;
|
|
3773
3772
|
role: string;
|
|
3773
|
+
paths?: string[] | undefined;
|
|
3774
3774
|
}, {
|
|
3775
|
-
path: string;
|
|
3776
3775
|
role: string;
|
|
3776
|
+
paths?: string[] | undefined;
|
|
3777
3777
|
}>>;
|
|
3778
3778
|
}, "strip", z.ZodTypeAny, {
|
|
3779
3779
|
type: "claude" | "codex";
|
|
@@ -3782,8 +3782,8 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
|
|
|
3782
3782
|
signature: string | null;
|
|
3783
3783
|
userId: string;
|
|
3784
3784
|
permissions: {
|
|
3785
|
-
path: string;
|
|
3786
3785
|
role: string;
|
|
3786
|
+
paths?: string[] | undefined;
|
|
3787
3787
|
} | null;
|
|
3788
3788
|
name: string;
|
|
3789
3789
|
description: string | null;
|
|
@@ -3822,8 +3822,8 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
|
|
|
3822
3822
|
signature: string | null;
|
|
3823
3823
|
userId: string;
|
|
3824
3824
|
permissions: {
|
|
3825
|
-
path: string;
|
|
3826
3825
|
role: string;
|
|
3826
|
+
paths?: string[] | undefined;
|
|
3827
3827
|
} | null;
|
|
3828
3828
|
name: string;
|
|
3829
3829
|
description: string | null;
|
|
@@ -3864,8 +3864,8 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
|
|
|
3864
3864
|
signature: string | null;
|
|
3865
3865
|
userId: string;
|
|
3866
3866
|
permissions: {
|
|
3867
|
-
path: string;
|
|
3868
3867
|
role: string;
|
|
3868
|
+
paths?: string[] | undefined;
|
|
3869
3869
|
} | null;
|
|
3870
3870
|
name: string;
|
|
3871
3871
|
description: string | null;
|
|
@@ -3906,8 +3906,8 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
|
|
|
3906
3906
|
signature: string | null;
|
|
3907
3907
|
userId: string;
|
|
3908
3908
|
permissions: {
|
|
3909
|
-
path: string;
|
|
3910
3909
|
role: string;
|
|
3910
|
+
paths?: string[] | undefined;
|
|
3911
3911
|
} | null;
|
|
3912
3912
|
name: string;
|
|
3913
3913
|
description: string | null;
|
|
@@ -4059,13 +4059,13 @@ declare const GetAgentResponseSchema: z.ZodObject<{
|
|
|
4059
4059
|
}>>;
|
|
4060
4060
|
permissions: z.ZodNullable<z.ZodObject<{
|
|
4061
4061
|
role: z.ZodString;
|
|
4062
|
-
|
|
4062
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4063
4063
|
}, "strip", z.ZodTypeAny, {
|
|
4064
|
-
path: string;
|
|
4065
4064
|
role: string;
|
|
4065
|
+
paths?: string[] | undefined;
|
|
4066
4066
|
}, {
|
|
4067
|
-
path: string;
|
|
4068
4067
|
role: string;
|
|
4068
|
+
paths?: string[] | undefined;
|
|
4069
4069
|
}>>;
|
|
4070
4070
|
}, "strip", z.ZodTypeAny, {
|
|
4071
4071
|
type: "claude" | "codex";
|
|
@@ -4074,8 +4074,8 @@ declare const GetAgentResponseSchema: z.ZodObject<{
|
|
|
4074
4074
|
signature: string | null;
|
|
4075
4075
|
userId: string;
|
|
4076
4076
|
permissions: {
|
|
4077
|
-
path: string;
|
|
4078
4077
|
role: string;
|
|
4078
|
+
paths?: string[] | undefined;
|
|
4079
4079
|
} | null;
|
|
4080
4080
|
name: string;
|
|
4081
4081
|
description: string | null;
|
|
@@ -4114,8 +4114,8 @@ declare const GetAgentResponseSchema: z.ZodObject<{
|
|
|
4114
4114
|
signature: string | null;
|
|
4115
4115
|
userId: string;
|
|
4116
4116
|
permissions: {
|
|
4117
|
-
path: string;
|
|
4118
4117
|
role: string;
|
|
4118
|
+
paths?: string[] | undefined;
|
|
4119
4119
|
} | null;
|
|
4120
4120
|
name: string;
|
|
4121
4121
|
description: string | null;
|
|
@@ -4440,13 +4440,13 @@ declare const CreateAgentResponseSchema: z.ZodObject<{
|
|
|
4440
4440
|
}>>;
|
|
4441
4441
|
permissions: z.ZodNullable<z.ZodObject<{
|
|
4442
4442
|
role: z.ZodString;
|
|
4443
|
-
|
|
4443
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4444
4444
|
}, "strip", z.ZodTypeAny, {
|
|
4445
|
-
path: string;
|
|
4446
4445
|
role: string;
|
|
4446
|
+
paths?: string[] | undefined;
|
|
4447
4447
|
}, {
|
|
4448
|
-
path: string;
|
|
4449
4448
|
role: string;
|
|
4449
|
+
paths?: string[] | undefined;
|
|
4450
4450
|
}>>;
|
|
4451
4451
|
}, "strip", z.ZodTypeAny, {
|
|
4452
4452
|
type: "claude" | "codex";
|
|
@@ -4455,8 +4455,8 @@ declare const CreateAgentResponseSchema: z.ZodObject<{
|
|
|
4455
4455
|
signature: string | null;
|
|
4456
4456
|
userId: string;
|
|
4457
4457
|
permissions: {
|
|
4458
|
-
path: string;
|
|
4459
4458
|
role: string;
|
|
4459
|
+
paths?: string[] | undefined;
|
|
4460
4460
|
} | null;
|
|
4461
4461
|
name: string;
|
|
4462
4462
|
description: string | null;
|
|
@@ -4495,8 +4495,8 @@ declare const CreateAgentResponseSchema: z.ZodObject<{
|
|
|
4495
4495
|
signature: string | null;
|
|
4496
4496
|
userId: string;
|
|
4497
4497
|
permissions: {
|
|
4498
|
-
path: string;
|
|
4499
4498
|
role: string;
|
|
4499
|
+
paths?: string[] | undefined;
|
|
4500
4500
|
} | null;
|
|
4501
4501
|
name: string;
|
|
4502
4502
|
description: string | null;
|
|
@@ -4821,13 +4821,13 @@ declare const UpdateAgentResponseSchema: z.ZodObject<{
|
|
|
4821
4821
|
}>>;
|
|
4822
4822
|
permissions: z.ZodNullable<z.ZodObject<{
|
|
4823
4823
|
role: z.ZodString;
|
|
4824
|
-
|
|
4824
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4825
4825
|
}, "strip", z.ZodTypeAny, {
|
|
4826
|
-
path: string;
|
|
4827
4826
|
role: string;
|
|
4827
|
+
paths?: string[] | undefined;
|
|
4828
4828
|
}, {
|
|
4829
|
-
path: string;
|
|
4830
4829
|
role: string;
|
|
4830
|
+
paths?: string[] | undefined;
|
|
4831
4831
|
}>>;
|
|
4832
4832
|
}, "strip", z.ZodTypeAny, {
|
|
4833
4833
|
type: "claude" | "codex";
|
|
@@ -4836,8 +4836,8 @@ declare const UpdateAgentResponseSchema: z.ZodObject<{
|
|
|
4836
4836
|
signature: string | null;
|
|
4837
4837
|
userId: string;
|
|
4838
4838
|
permissions: {
|
|
4839
|
-
path: string;
|
|
4840
4839
|
role: string;
|
|
4840
|
+
paths?: string[] | undefined;
|
|
4841
4841
|
} | null;
|
|
4842
4842
|
name: string;
|
|
4843
4843
|
description: string | null;
|
|
@@ -4876,8 +4876,8 @@ declare const UpdateAgentResponseSchema: z.ZodObject<{
|
|
|
4876
4876
|
signature: string | null;
|
|
4877
4877
|
userId: string;
|
|
4878
4878
|
permissions: {
|
|
4879
|
-
path: string;
|
|
4880
4879
|
role: string;
|
|
4880
|
+
paths?: string[] | undefined;
|
|
4881
4881
|
} | null;
|
|
4882
4882
|
name: string;
|
|
4883
4883
|
description: string | null;
|
|
@@ -5303,13 +5303,13 @@ declare const AgentBuilderSchema: z.ZodObject<{
|
|
|
5303
5303
|
}>>;
|
|
5304
5304
|
permissions: z.ZodNullable<z.ZodObject<{
|
|
5305
5305
|
role: z.ZodString;
|
|
5306
|
-
|
|
5306
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5307
5307
|
}, "strip", z.ZodTypeAny, {
|
|
5308
|
-
path: string;
|
|
5309
5308
|
role: string;
|
|
5309
|
+
paths?: string[] | undefined;
|
|
5310
5310
|
}, {
|
|
5311
|
-
path: string;
|
|
5312
5311
|
role: string;
|
|
5312
|
+
paths?: string[] | undefined;
|
|
5313
5313
|
}>>;
|
|
5314
5314
|
publishedAgentId: z.ZodNullable<z.ZodString>;
|
|
5315
5315
|
sourceTaskId: z.ZodNullable<z.ZodString>;
|
|
@@ -5322,8 +5322,8 @@ declare const AgentBuilderSchema: z.ZodObject<{
|
|
|
5322
5322
|
createdAt: string;
|
|
5323
5323
|
userId: string;
|
|
5324
5324
|
permissions: {
|
|
5325
|
-
path: string;
|
|
5326
5325
|
role: string;
|
|
5326
|
+
paths?: string[] | undefined;
|
|
5327
5327
|
} | null;
|
|
5328
5328
|
updatedAt: string;
|
|
5329
5329
|
name: string;
|
|
@@ -5370,8 +5370,8 @@ declare const AgentBuilderSchema: z.ZodObject<{
|
|
|
5370
5370
|
createdAt: string;
|
|
5371
5371
|
userId: string;
|
|
5372
5372
|
permissions: {
|
|
5373
|
-
path: string;
|
|
5374
5373
|
role: string;
|
|
5374
|
+
paths?: string[] | undefined;
|
|
5375
5375
|
} | null;
|
|
5376
5376
|
updatedAt: string;
|
|
5377
5377
|
name: string;
|
|
@@ -5531,13 +5531,13 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
5531
5531
|
}>>;
|
|
5532
5532
|
permissions: z.ZodNullable<z.ZodObject<{
|
|
5533
5533
|
role: z.ZodString;
|
|
5534
|
-
|
|
5534
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5535
5535
|
}, "strip", z.ZodTypeAny, {
|
|
5536
|
-
path: string;
|
|
5537
5536
|
role: string;
|
|
5537
|
+
paths?: string[] | undefined;
|
|
5538
5538
|
}, {
|
|
5539
|
-
path: string;
|
|
5540
5539
|
role: string;
|
|
5540
|
+
paths?: string[] | undefined;
|
|
5541
5541
|
}>>;
|
|
5542
5542
|
}, "strip", z.ZodTypeAny, {
|
|
5543
5543
|
type: "claude" | "codex";
|
|
@@ -5546,8 +5546,8 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
5546
5546
|
signature: string | null;
|
|
5547
5547
|
userId: string;
|
|
5548
5548
|
permissions: {
|
|
5549
|
-
path: string;
|
|
5550
5549
|
role: string;
|
|
5550
|
+
paths?: string[] | undefined;
|
|
5551
5551
|
} | null;
|
|
5552
5552
|
name: string;
|
|
5553
5553
|
description: string | null;
|
|
@@ -5586,8 +5586,8 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
5586
5586
|
signature: string | null;
|
|
5587
5587
|
userId: string;
|
|
5588
5588
|
permissions: {
|
|
5589
|
-
path: string;
|
|
5590
5589
|
role: string;
|
|
5590
|
+
paths?: string[] | undefined;
|
|
5591
5591
|
} | null;
|
|
5592
5592
|
name: string;
|
|
5593
5593
|
description: string | null;
|
|
@@ -5768,13 +5768,13 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
5768
5768
|
}>>;
|
|
5769
5769
|
permissions: z.ZodNullable<z.ZodObject<{
|
|
5770
5770
|
role: z.ZodString;
|
|
5771
|
-
|
|
5771
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5772
5772
|
}, "strip", z.ZodTypeAny, {
|
|
5773
|
-
path: string;
|
|
5774
5773
|
role: string;
|
|
5774
|
+
paths?: string[] | undefined;
|
|
5775
5775
|
}, {
|
|
5776
|
-
path: string;
|
|
5777
5776
|
role: string;
|
|
5777
|
+
paths?: string[] | undefined;
|
|
5778
5778
|
}>>;
|
|
5779
5779
|
publishedAgentId: z.ZodNullable<z.ZodString>;
|
|
5780
5780
|
sourceTaskId: z.ZodNullable<z.ZodString>;
|
|
@@ -5787,8 +5787,8 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
5787
5787
|
createdAt: string;
|
|
5788
5788
|
userId: string;
|
|
5789
5789
|
permissions: {
|
|
5790
|
-
path: string;
|
|
5791
5790
|
role: string;
|
|
5791
|
+
paths?: string[] | undefined;
|
|
5792
5792
|
} | null;
|
|
5793
5793
|
updatedAt: string;
|
|
5794
5794
|
name: string;
|
|
@@ -5835,8 +5835,8 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
5835
5835
|
createdAt: string;
|
|
5836
5836
|
userId: string;
|
|
5837
5837
|
permissions: {
|
|
5838
|
-
path: string;
|
|
5839
5838
|
role: string;
|
|
5839
|
+
paths?: string[] | undefined;
|
|
5840
5840
|
} | null;
|
|
5841
5841
|
updatedAt: string;
|
|
5842
5842
|
name: string;
|
|
@@ -5885,8 +5885,8 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
5885
5885
|
signature: string | null;
|
|
5886
5886
|
userId: string;
|
|
5887
5887
|
permissions: {
|
|
5888
|
-
path: string;
|
|
5889
5888
|
role: string;
|
|
5889
|
+
paths?: string[] | undefined;
|
|
5890
5890
|
} | null;
|
|
5891
5891
|
name: string;
|
|
5892
5892
|
description: string | null;
|
|
@@ -5926,8 +5926,8 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
5926
5926
|
createdAt: string;
|
|
5927
5927
|
userId: string;
|
|
5928
5928
|
permissions: {
|
|
5929
|
-
path: string;
|
|
5930
5929
|
role: string;
|
|
5930
|
+
paths?: string[] | undefined;
|
|
5931
5931
|
} | null;
|
|
5932
5932
|
updatedAt: string;
|
|
5933
5933
|
name: string;
|
|
@@ -5976,8 +5976,8 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
5976
5976
|
signature: string | null;
|
|
5977
5977
|
userId: string;
|
|
5978
5978
|
permissions: {
|
|
5979
|
-
path: string;
|
|
5980
5979
|
role: string;
|
|
5980
|
+
paths?: string[] | undefined;
|
|
5981
5981
|
} | null;
|
|
5982
5982
|
name: string;
|
|
5983
5983
|
description: string | null;
|
|
@@ -6017,8 +6017,8 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
6017
6017
|
createdAt: string;
|
|
6018
6018
|
userId: string;
|
|
6019
6019
|
permissions: {
|
|
6020
|
-
path: string;
|
|
6021
6020
|
role: string;
|
|
6021
|
+
paths?: string[] | undefined;
|
|
6022
6022
|
} | null;
|
|
6023
6023
|
updatedAt: string;
|
|
6024
6024
|
name: string;
|
|
@@ -6686,10 +6686,10 @@ declare const RepositorySchema: z.ZodObject<{
|
|
|
6686
6686
|
name: string;
|
|
6687
6687
|
description: string | null;
|
|
6688
6688
|
owner: string;
|
|
6689
|
+
url: string;
|
|
6689
6690
|
fullName: string;
|
|
6690
6691
|
defaultBranch: string;
|
|
6691
6692
|
isPrivate: boolean;
|
|
6692
|
-
url: string;
|
|
6693
6693
|
gitServerId: string;
|
|
6694
6694
|
}, {
|
|
6695
6695
|
id: string;
|
|
@@ -6698,10 +6698,10 @@ declare const RepositorySchema: z.ZodObject<{
|
|
|
6698
6698
|
name: string;
|
|
6699
6699
|
description: string | null;
|
|
6700
6700
|
owner: string;
|
|
6701
|
+
url: string;
|
|
6701
6702
|
fullName: string;
|
|
6702
6703
|
defaultBranch: string;
|
|
6703
6704
|
isPrivate: boolean;
|
|
6704
|
-
url: string;
|
|
6705
6705
|
gitServerId: string;
|
|
6706
6706
|
}>;
|
|
6707
6707
|
type Repository = z.infer<typeof RepositorySchema>;
|
|
@@ -6728,10 +6728,10 @@ declare const ListRepositoriesResponseSchema: z.ZodObject<{
|
|
|
6728
6728
|
name: string;
|
|
6729
6729
|
description: string | null;
|
|
6730
6730
|
owner: string;
|
|
6731
|
+
url: string;
|
|
6731
6732
|
fullName: string;
|
|
6732
6733
|
defaultBranch: string;
|
|
6733
6734
|
isPrivate: boolean;
|
|
6734
|
-
url: string;
|
|
6735
6735
|
gitServerId: string;
|
|
6736
6736
|
}, {
|
|
6737
6737
|
id: string;
|
|
@@ -6740,10 +6740,10 @@ declare const ListRepositoriesResponseSchema: z.ZodObject<{
|
|
|
6740
6740
|
name: string;
|
|
6741
6741
|
description: string | null;
|
|
6742
6742
|
owner: string;
|
|
6743
|
+
url: string;
|
|
6743
6744
|
fullName: string;
|
|
6744
6745
|
defaultBranch: string;
|
|
6745
6746
|
isPrivate: boolean;
|
|
6746
|
-
url: string;
|
|
6747
6747
|
gitServerId: string;
|
|
6748
6748
|
}>, "many">;
|
|
6749
6749
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -6754,10 +6754,10 @@ declare const ListRepositoriesResponseSchema: z.ZodObject<{
|
|
|
6754
6754
|
name: string;
|
|
6755
6755
|
description: string | null;
|
|
6756
6756
|
owner: string;
|
|
6757
|
+
url: string;
|
|
6757
6758
|
fullName: string;
|
|
6758
6759
|
defaultBranch: string;
|
|
6759
6760
|
isPrivate: boolean;
|
|
6760
|
-
url: string;
|
|
6761
6761
|
gitServerId: string;
|
|
6762
6762
|
}[];
|
|
6763
6763
|
}, {
|
|
@@ -6768,10 +6768,10 @@ declare const ListRepositoriesResponseSchema: z.ZodObject<{
|
|
|
6768
6768
|
name: string;
|
|
6769
6769
|
description: string | null;
|
|
6770
6770
|
owner: string;
|
|
6771
|
+
url: string;
|
|
6771
6772
|
fullName: string;
|
|
6772
6773
|
defaultBranch: string;
|
|
6773
6774
|
isPrivate: boolean;
|
|
6774
|
-
url: string;
|
|
6775
6775
|
gitServerId: string;
|
|
6776
6776
|
}[];
|
|
6777
6777
|
}>;
|
|
@@ -6799,10 +6799,10 @@ declare const GetRepositoryResponseSchema: z.ZodObject<{
|
|
|
6799
6799
|
name: string;
|
|
6800
6800
|
description: string | null;
|
|
6801
6801
|
owner: string;
|
|
6802
|
+
url: string;
|
|
6802
6803
|
fullName: string;
|
|
6803
6804
|
defaultBranch: string;
|
|
6804
6805
|
isPrivate: boolean;
|
|
6805
|
-
url: string;
|
|
6806
6806
|
gitServerId: string;
|
|
6807
6807
|
}, {
|
|
6808
6808
|
id: string;
|
|
@@ -6811,10 +6811,10 @@ declare const GetRepositoryResponseSchema: z.ZodObject<{
|
|
|
6811
6811
|
name: string;
|
|
6812
6812
|
description: string | null;
|
|
6813
6813
|
owner: string;
|
|
6814
|
+
url: string;
|
|
6814
6815
|
fullName: string;
|
|
6815
6816
|
defaultBranch: string;
|
|
6816
6817
|
isPrivate: boolean;
|
|
6817
|
-
url: string;
|
|
6818
6818
|
gitServerId: string;
|
|
6819
6819
|
}>;
|
|
6820
6820
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -6825,10 +6825,10 @@ declare const GetRepositoryResponseSchema: z.ZodObject<{
|
|
|
6825
6825
|
name: string;
|
|
6826
6826
|
description: string | null;
|
|
6827
6827
|
owner: string;
|
|
6828
|
+
url: string;
|
|
6828
6829
|
fullName: string;
|
|
6829
6830
|
defaultBranch: string;
|
|
6830
6831
|
isPrivate: boolean;
|
|
6831
|
-
url: string;
|
|
6832
6832
|
gitServerId: string;
|
|
6833
6833
|
};
|
|
6834
6834
|
}, {
|
|
@@ -6839,10 +6839,10 @@ declare const GetRepositoryResponseSchema: z.ZodObject<{
|
|
|
6839
6839
|
name: string;
|
|
6840
6840
|
description: string | null;
|
|
6841
6841
|
owner: string;
|
|
6842
|
+
url: string;
|
|
6842
6843
|
fullName: string;
|
|
6843
6844
|
defaultBranch: string;
|
|
6844
6845
|
isPrivate: boolean;
|
|
6845
|
-
url: string;
|
|
6846
6846
|
gitServerId: string;
|
|
6847
6847
|
};
|
|
6848
6848
|
}>;
|
|
@@ -8529,6 +8529,10 @@ declare const AskUserMessageSchema: z.ZodObject<{
|
|
|
8529
8529
|
}[];
|
|
8530
8530
|
}>;
|
|
8531
8531
|
type AskUserMessage = z.infer<typeof AskUserMessageSchema>;
|
|
8532
|
+
declare const AskUserResponseStatusSchema: z.ZodEnum<["answered", "cancelled", "timeout"]>;
|
|
8533
|
+
declare const AskUserResponseReasonSchema: z.ZodEnum<["user", "timeout", "system"]>;
|
|
8534
|
+
type AskUserResponseStatus = z.infer<typeof AskUserResponseStatusSchema>;
|
|
8535
|
+
type AskUserResponseReason = z.infer<typeof AskUserResponseReasonSchema>;
|
|
8532
8536
|
/**
|
|
8533
8537
|
* Ask user response payload (App → Worker)
|
|
8534
8538
|
* Each answer is:
|
|
@@ -8538,12 +8542,18 @@ type AskUserMessage = z.infer<typeof AskUserMessageSchema>;
|
|
|
8538
8542
|
declare const AskUserResponseMessageSchema: z.ZodObject<{
|
|
8539
8543
|
type: z.ZodLiteral<"ask_user_response">;
|
|
8540
8544
|
answers: z.ZodArray<z.ZodString, "many">;
|
|
8545
|
+
status: z.ZodOptional<z.ZodEnum<["answered", "cancelled", "timeout"]>>;
|
|
8546
|
+
reason: z.ZodOptional<z.ZodEnum<["user", "timeout", "system"]>>;
|
|
8541
8547
|
}, "strip", z.ZodTypeAny, {
|
|
8542
8548
|
type: "ask_user_response";
|
|
8543
8549
|
answers: string[];
|
|
8550
|
+
status?: "answered" | "cancelled" | "timeout" | undefined;
|
|
8551
|
+
reason?: "user" | "timeout" | "system" | undefined;
|
|
8544
8552
|
}, {
|
|
8545
8553
|
type: "ask_user_response";
|
|
8546
8554
|
answers: string[];
|
|
8555
|
+
status?: "answered" | "cancelled" | "timeout" | undefined;
|
|
8556
|
+
reason?: "user" | "timeout" | "system" | undefined;
|
|
8547
8557
|
}>;
|
|
8548
8558
|
type AskUserResponseMessage = z.infer<typeof AskUserResponseMessageSchema>;
|
|
8549
8559
|
/**
|
|
@@ -9663,7 +9673,7 @@ type AssociateRepoEventData = z.infer<typeof AssociateRepoEventDataSchema>;
|
|
|
9663
9673
|
/**
|
|
9664
9674
|
* System message type
|
|
9665
9675
|
*/
|
|
9666
|
-
type SystemMessageType = "machine-online" | "machine-offline" | "chat-added" | "chat-removed" | "chat-member-added" | "chat-member-removed" | "repo-added" | "repo-removed" | "pr-state-changed";
|
|
9676
|
+
type SystemMessageType = "machine-online" | "machine-offline" | "chat-added" | "chat-removed" | "chat-member-added" | "chat-member-removed" | "repo-added" | "repo-removed" | "pr-state-changed" | "agent-builder-added";
|
|
9667
9677
|
/**
|
|
9668
9678
|
* PR state changed schema
|
|
9669
9679
|
*/
|
|
@@ -9699,7 +9709,7 @@ type PrStateChangedData = z.infer<typeof PrStateChangedSchema>;
|
|
|
9699
9709
|
declare const SystemMessageSchema: z.ZodObject<{
|
|
9700
9710
|
eventId: z.ZodString;
|
|
9701
9711
|
} & {
|
|
9702
|
-
type: z.ZodEnum<["machine-online", "machine-offline", "chat-added", "chat-removed", "chat-member-added", "chat-member-removed", "repo-added", "repo-removed", "pr-state-changed"]>;
|
|
9712
|
+
type: z.ZodEnum<["machine-online", "machine-offline", "chat-added", "chat-removed", "chat-member-added", "chat-member-removed", "repo-added", "repo-removed", "pr-state-changed", "agent-builder-added"]>;
|
|
9703
9713
|
data: z.ZodUnion<[z.ZodObject<{
|
|
9704
9714
|
id: z.ZodString;
|
|
9705
9715
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -9773,10 +9783,10 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
9773
9783
|
name: string;
|
|
9774
9784
|
description: string | null;
|
|
9775
9785
|
owner: string;
|
|
9786
|
+
url: string;
|
|
9776
9787
|
fullName: string;
|
|
9777
9788
|
defaultBranch: string;
|
|
9778
9789
|
isPrivate: boolean;
|
|
9779
|
-
url: string;
|
|
9780
9790
|
gitServerId: string;
|
|
9781
9791
|
}, {
|
|
9782
9792
|
id: string;
|
|
@@ -9785,10 +9795,10 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
9785
9795
|
name: string;
|
|
9786
9796
|
description: string | null;
|
|
9787
9797
|
owner: string;
|
|
9798
|
+
url: string;
|
|
9788
9799
|
fullName: string;
|
|
9789
9800
|
defaultBranch: string;
|
|
9790
9801
|
isPrivate: boolean;
|
|
9791
|
-
url: string;
|
|
9792
9802
|
gitServerId: string;
|
|
9793
9803
|
}>, z.ZodObject<{
|
|
9794
9804
|
taskId: z.ZodString;
|
|
@@ -9811,10 +9821,266 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
9811
9821
|
oldState: "open" | "closed" | "merged" | null;
|
|
9812
9822
|
newState: "open" | "closed" | "merged";
|
|
9813
9823
|
changedAt: string;
|
|
9824
|
+
}>, z.ZodObject<{
|
|
9825
|
+
id: z.ZodString;
|
|
9826
|
+
name: z.ZodString;
|
|
9827
|
+
displayName: z.ZodString;
|
|
9828
|
+
agentDir: z.ZodString;
|
|
9829
|
+
type: z.ZodEnum<["claude", "codex"]>;
|
|
9830
|
+
avatar: z.ZodNullable<z.ZodString>;
|
|
9831
|
+
userId: z.ZodString;
|
|
9832
|
+
description: z.ZodNullable<z.ZodString>;
|
|
9833
|
+
enable: z.ZodBoolean;
|
|
9834
|
+
config: z.ZodNullable<z.ZodObject<{
|
|
9835
|
+
guildMsg: z.ZodDefault<z.ZodString>;
|
|
9836
|
+
placeholderMsg: z.ZodDefault<z.ZodString>;
|
|
9837
|
+
deploymentSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9838
|
+
name: z.ZodString;
|
|
9839
|
+
type: z.ZodEnum<["string", "number", "boolean", "secret"]>;
|
|
9840
|
+
description: z.ZodOptional<z.ZodString>;
|
|
9841
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
9842
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
9843
|
+
}, "strip", z.ZodTypeAny, {
|
|
9844
|
+
type: "string" | "number" | "boolean" | "secret";
|
|
9845
|
+
name: string;
|
|
9846
|
+
required: boolean;
|
|
9847
|
+
description?: string | undefined;
|
|
9848
|
+
defaultValue?: string | undefined;
|
|
9849
|
+
}, {
|
|
9850
|
+
type: "string" | "number" | "boolean" | "secret";
|
|
9851
|
+
name: string;
|
|
9852
|
+
description?: string | undefined;
|
|
9853
|
+
required?: boolean | undefined;
|
|
9854
|
+
defaultValue?: string | undefined;
|
|
9855
|
+
}>, "many">>;
|
|
9856
|
+
displayConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
9857
|
+
createPR: z.ZodOptional<z.ZodString>;
|
|
9858
|
+
viewPR: z.ZodOptional<z.ZodString>;
|
|
9859
|
+
mergePR: z.ZodOptional<z.ZodString>;
|
|
9860
|
+
approvePR: z.ZodOptional<z.ZodString>;
|
|
9861
|
+
merged: z.ZodOptional<z.ZodString>;
|
|
9862
|
+
closed: z.ZodOptional<z.ZodString>;
|
|
9863
|
+
recreatePR: z.ZodOptional<z.ZodString>;
|
|
9864
|
+
permissionCanSendMessage: z.ZodOptional<z.ZodString>;
|
|
9865
|
+
permissionCanSendMessageDesc: z.ZodOptional<z.ZodString>;
|
|
9866
|
+
permissionCanCreatePr: z.ZodOptional<z.ZodString>;
|
|
9867
|
+
permissionCanCreatePrDesc: z.ZodOptional<z.ZodString>;
|
|
9868
|
+
permissionCanApprovePr: z.ZodOptional<z.ZodString>;
|
|
9869
|
+
permissionCanApprovePrDesc: z.ZodOptional<z.ZodString>;
|
|
9870
|
+
permissionCanViewPr: z.ZodOptional<z.ZodString>;
|
|
9871
|
+
permissionCanViewPrDesc: z.ZodOptional<z.ZodString>;
|
|
9872
|
+
permissionCanMergePr: z.ZodOptional<z.ZodString>;
|
|
9873
|
+
permissionCanMergePrDesc: z.ZodOptional<z.ZodString>;
|
|
9874
|
+
}, "strip", z.ZodTypeAny, {
|
|
9875
|
+
closed?: string | undefined;
|
|
9876
|
+
merged?: string | undefined;
|
|
9877
|
+
createPR?: string | undefined;
|
|
9878
|
+
viewPR?: string | undefined;
|
|
9879
|
+
mergePR?: string | undefined;
|
|
9880
|
+
approvePR?: string | undefined;
|
|
9881
|
+
recreatePR?: string | undefined;
|
|
9882
|
+
permissionCanSendMessage?: string | undefined;
|
|
9883
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
9884
|
+
permissionCanCreatePr?: string | undefined;
|
|
9885
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
9886
|
+
permissionCanApprovePr?: string | undefined;
|
|
9887
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
9888
|
+
permissionCanViewPr?: string | undefined;
|
|
9889
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
9890
|
+
permissionCanMergePr?: string | undefined;
|
|
9891
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
9892
|
+
}, {
|
|
9893
|
+
closed?: string | undefined;
|
|
9894
|
+
merged?: string | undefined;
|
|
9895
|
+
createPR?: string | undefined;
|
|
9896
|
+
viewPR?: string | undefined;
|
|
9897
|
+
mergePR?: string | undefined;
|
|
9898
|
+
approvePR?: string | undefined;
|
|
9899
|
+
recreatePR?: string | undefined;
|
|
9900
|
+
permissionCanSendMessage?: string | undefined;
|
|
9901
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
9902
|
+
permissionCanCreatePr?: string | undefined;
|
|
9903
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
9904
|
+
permissionCanApprovePr?: string | undefined;
|
|
9905
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
9906
|
+
permissionCanViewPr?: string | undefined;
|
|
9907
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
9908
|
+
permissionCanMergePr?: string | undefined;
|
|
9909
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
9910
|
+
}>>>;
|
|
9911
|
+
}, "strip", z.ZodTypeAny, {
|
|
9912
|
+
guildMsg: string;
|
|
9913
|
+
placeholderMsg: string;
|
|
9914
|
+
displayConfig?: Record<string, {
|
|
9915
|
+
closed?: string | undefined;
|
|
9916
|
+
merged?: string | undefined;
|
|
9917
|
+
createPR?: string | undefined;
|
|
9918
|
+
viewPR?: string | undefined;
|
|
9919
|
+
mergePR?: string | undefined;
|
|
9920
|
+
approvePR?: string | undefined;
|
|
9921
|
+
recreatePR?: string | undefined;
|
|
9922
|
+
permissionCanSendMessage?: string | undefined;
|
|
9923
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
9924
|
+
permissionCanCreatePr?: string | undefined;
|
|
9925
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
9926
|
+
permissionCanApprovePr?: string | undefined;
|
|
9927
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
9928
|
+
permissionCanViewPr?: string | undefined;
|
|
9929
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
9930
|
+
permissionCanMergePr?: string | undefined;
|
|
9931
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
9932
|
+
}> | undefined;
|
|
9933
|
+
deploymentSchema?: {
|
|
9934
|
+
type: "string" | "number" | "boolean" | "secret";
|
|
9935
|
+
name: string;
|
|
9936
|
+
required: boolean;
|
|
9937
|
+
description?: string | undefined;
|
|
9938
|
+
defaultValue?: string | undefined;
|
|
9939
|
+
}[] | undefined;
|
|
9940
|
+
}, {
|
|
9941
|
+
displayConfig?: Record<string, {
|
|
9942
|
+
closed?: string | undefined;
|
|
9943
|
+
merged?: string | undefined;
|
|
9944
|
+
createPR?: string | undefined;
|
|
9945
|
+
viewPR?: string | undefined;
|
|
9946
|
+
mergePR?: string | undefined;
|
|
9947
|
+
approvePR?: string | undefined;
|
|
9948
|
+
recreatePR?: string | undefined;
|
|
9949
|
+
permissionCanSendMessage?: string | undefined;
|
|
9950
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
9951
|
+
permissionCanCreatePr?: string | undefined;
|
|
9952
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
9953
|
+
permissionCanApprovePr?: string | undefined;
|
|
9954
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
9955
|
+
permissionCanViewPr?: string | undefined;
|
|
9956
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
9957
|
+
permissionCanMergePr?: string | undefined;
|
|
9958
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
9959
|
+
}> | undefined;
|
|
9960
|
+
guildMsg?: string | undefined;
|
|
9961
|
+
placeholderMsg?: string | undefined;
|
|
9962
|
+
deploymentSchema?: {
|
|
9963
|
+
type: "string" | "number" | "boolean" | "secret";
|
|
9964
|
+
name: string;
|
|
9965
|
+
description?: string | undefined;
|
|
9966
|
+
required?: boolean | undefined;
|
|
9967
|
+
defaultValue?: string | undefined;
|
|
9968
|
+
}[] | undefined;
|
|
9969
|
+
}>>;
|
|
9970
|
+
permissions: z.ZodNullable<z.ZodObject<{
|
|
9971
|
+
role: z.ZodString;
|
|
9972
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
9973
|
+
}, "strip", z.ZodTypeAny, {
|
|
9974
|
+
role: string;
|
|
9975
|
+
paths?: string[] | undefined;
|
|
9976
|
+
}, {
|
|
9977
|
+
role: string;
|
|
9978
|
+
paths?: string[] | undefined;
|
|
9979
|
+
}>>;
|
|
9980
|
+
publishedAgentId: z.ZodNullable<z.ZodString>;
|
|
9981
|
+
sourceTaskId: z.ZodNullable<z.ZodString>;
|
|
9982
|
+
createdAt: z.ZodString;
|
|
9983
|
+
updatedAt: z.ZodString;
|
|
9984
|
+
}, "strip", z.ZodTypeAny, {
|
|
9985
|
+
type: "claude" | "codex";
|
|
9986
|
+
id: string;
|
|
9987
|
+
avatar: string | null;
|
|
9988
|
+
createdAt: string;
|
|
9989
|
+
userId: string;
|
|
9990
|
+
permissions: {
|
|
9991
|
+
role: string;
|
|
9992
|
+
paths?: string[] | undefined;
|
|
9993
|
+
} | null;
|
|
9994
|
+
updatedAt: string;
|
|
9995
|
+
name: string;
|
|
9996
|
+
description: string | null;
|
|
9997
|
+
enable: boolean;
|
|
9998
|
+
config: {
|
|
9999
|
+
guildMsg: string;
|
|
10000
|
+
placeholderMsg: string;
|
|
10001
|
+
displayConfig?: Record<string, {
|
|
10002
|
+
closed?: string | undefined;
|
|
10003
|
+
merged?: string | undefined;
|
|
10004
|
+
createPR?: string | undefined;
|
|
10005
|
+
viewPR?: string | undefined;
|
|
10006
|
+
mergePR?: string | undefined;
|
|
10007
|
+
approvePR?: string | undefined;
|
|
10008
|
+
recreatePR?: string | undefined;
|
|
10009
|
+
permissionCanSendMessage?: string | undefined;
|
|
10010
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
10011
|
+
permissionCanCreatePr?: string | undefined;
|
|
10012
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
10013
|
+
permissionCanApprovePr?: string | undefined;
|
|
10014
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
10015
|
+
permissionCanViewPr?: string | undefined;
|
|
10016
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
10017
|
+
permissionCanMergePr?: string | undefined;
|
|
10018
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
10019
|
+
}> | undefined;
|
|
10020
|
+
deploymentSchema?: {
|
|
10021
|
+
type: "string" | "number" | "boolean" | "secret";
|
|
10022
|
+
name: string;
|
|
10023
|
+
required: boolean;
|
|
10024
|
+
description?: string | undefined;
|
|
10025
|
+
defaultValue?: string | undefined;
|
|
10026
|
+
}[] | undefined;
|
|
10027
|
+
} | null;
|
|
10028
|
+
agentDir: string;
|
|
10029
|
+
displayName: string;
|
|
10030
|
+
publishedAgentId: string | null;
|
|
10031
|
+
sourceTaskId: string | null;
|
|
10032
|
+
}, {
|
|
10033
|
+
type: "claude" | "codex";
|
|
10034
|
+
id: string;
|
|
10035
|
+
avatar: string | null;
|
|
10036
|
+
createdAt: string;
|
|
10037
|
+
userId: string;
|
|
10038
|
+
permissions: {
|
|
10039
|
+
role: string;
|
|
10040
|
+
paths?: string[] | undefined;
|
|
10041
|
+
} | null;
|
|
10042
|
+
updatedAt: string;
|
|
10043
|
+
name: string;
|
|
10044
|
+
description: string | null;
|
|
10045
|
+
enable: boolean;
|
|
10046
|
+
config: {
|
|
10047
|
+
displayConfig?: Record<string, {
|
|
10048
|
+
closed?: string | undefined;
|
|
10049
|
+
merged?: string | undefined;
|
|
10050
|
+
createPR?: string | undefined;
|
|
10051
|
+
viewPR?: string | undefined;
|
|
10052
|
+
mergePR?: string | undefined;
|
|
10053
|
+
approvePR?: string | undefined;
|
|
10054
|
+
recreatePR?: string | undefined;
|
|
10055
|
+
permissionCanSendMessage?: string | undefined;
|
|
10056
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
10057
|
+
permissionCanCreatePr?: string | undefined;
|
|
10058
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
10059
|
+
permissionCanApprovePr?: string | undefined;
|
|
10060
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
10061
|
+
permissionCanViewPr?: string | undefined;
|
|
10062
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
10063
|
+
permissionCanMergePr?: string | undefined;
|
|
10064
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
10065
|
+
}> | undefined;
|
|
10066
|
+
guildMsg?: string | undefined;
|
|
10067
|
+
placeholderMsg?: string | undefined;
|
|
10068
|
+
deploymentSchema?: {
|
|
10069
|
+
type: "string" | "number" | "boolean" | "secret";
|
|
10070
|
+
name: string;
|
|
10071
|
+
description?: string | undefined;
|
|
10072
|
+
required?: boolean | undefined;
|
|
10073
|
+
defaultValue?: string | undefined;
|
|
10074
|
+
}[] | undefined;
|
|
10075
|
+
} | null;
|
|
10076
|
+
agentDir: string;
|
|
10077
|
+
displayName: string;
|
|
10078
|
+
publishedAgentId: string | null;
|
|
10079
|
+
sourceTaskId: string | null;
|
|
9814
10080
|
}>]>;
|
|
9815
10081
|
timestamp: z.ZodString;
|
|
9816
10082
|
}, "strip", z.ZodTypeAny, {
|
|
9817
|
-
type: "machine-online" | "machine-offline" | "chat-added" | "chat-removed" | "chat-member-added" | "chat-member-removed" | "repo-added" | "repo-removed" | "pr-state-changed";
|
|
10083
|
+
type: "machine-online" | "machine-offline" | "chat-added" | "chat-removed" | "chat-member-added" | "chat-member-removed" | "repo-added" | "repo-removed" | "pr-state-changed" | "agent-builder-added";
|
|
9818
10084
|
data: {
|
|
9819
10085
|
type: "direct" | "group";
|
|
9820
10086
|
id: string;
|
|
@@ -9830,16 +10096,64 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
9830
10096
|
memberCode: string;
|
|
9831
10097
|
role: string;
|
|
9832
10098
|
}[] | {
|
|
10099
|
+
type: "claude" | "codex";
|
|
10100
|
+
id: string;
|
|
10101
|
+
avatar: string | null;
|
|
10102
|
+
createdAt: string;
|
|
10103
|
+
userId: string;
|
|
10104
|
+
permissions: {
|
|
10105
|
+
role: string;
|
|
10106
|
+
paths?: string[] | undefined;
|
|
10107
|
+
} | null;
|
|
10108
|
+
updatedAt: string;
|
|
10109
|
+
name: string;
|
|
10110
|
+
description: string | null;
|
|
10111
|
+
enable: boolean;
|
|
10112
|
+
config: {
|
|
10113
|
+
guildMsg: string;
|
|
10114
|
+
placeholderMsg: string;
|
|
10115
|
+
displayConfig?: Record<string, {
|
|
10116
|
+
closed?: string | undefined;
|
|
10117
|
+
merged?: string | undefined;
|
|
10118
|
+
createPR?: string | undefined;
|
|
10119
|
+
viewPR?: string | undefined;
|
|
10120
|
+
mergePR?: string | undefined;
|
|
10121
|
+
approvePR?: string | undefined;
|
|
10122
|
+
recreatePR?: string | undefined;
|
|
10123
|
+
permissionCanSendMessage?: string | undefined;
|
|
10124
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
10125
|
+
permissionCanCreatePr?: string | undefined;
|
|
10126
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
10127
|
+
permissionCanApprovePr?: string | undefined;
|
|
10128
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
10129
|
+
permissionCanViewPr?: string | undefined;
|
|
10130
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
10131
|
+
permissionCanMergePr?: string | undefined;
|
|
10132
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
10133
|
+
}> | undefined;
|
|
10134
|
+
deploymentSchema?: {
|
|
10135
|
+
type: "string" | "number" | "boolean" | "secret";
|
|
10136
|
+
name: string;
|
|
10137
|
+
required: boolean;
|
|
10138
|
+
description?: string | undefined;
|
|
10139
|
+
defaultValue?: string | undefined;
|
|
10140
|
+
}[] | undefined;
|
|
10141
|
+
} | null;
|
|
10142
|
+
agentDir: string;
|
|
10143
|
+
displayName: string;
|
|
10144
|
+
publishedAgentId: string | null;
|
|
10145
|
+
sourceTaskId: string | null;
|
|
10146
|
+
} | {
|
|
9833
10147
|
id: string;
|
|
9834
10148
|
createdAt: string;
|
|
9835
10149
|
updatedAt: string;
|
|
9836
10150
|
name: string;
|
|
9837
10151
|
description: string | null;
|
|
9838
10152
|
owner: string;
|
|
10153
|
+
url: string;
|
|
9839
10154
|
fullName: string;
|
|
9840
10155
|
defaultBranch: string;
|
|
9841
10156
|
isPrivate: boolean;
|
|
9842
|
-
url: string;
|
|
9843
10157
|
gitServerId: string;
|
|
9844
10158
|
} | {
|
|
9845
10159
|
id: string;
|
|
@@ -9856,7 +10170,7 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
9856
10170
|
eventId: string;
|
|
9857
10171
|
timestamp: string;
|
|
9858
10172
|
}, {
|
|
9859
|
-
type: "machine-online" | "machine-offline" | "chat-added" | "chat-removed" | "chat-member-added" | "chat-member-removed" | "repo-added" | "repo-removed" | "pr-state-changed";
|
|
10173
|
+
type: "machine-online" | "machine-offline" | "chat-added" | "chat-removed" | "chat-member-added" | "chat-member-removed" | "repo-added" | "repo-removed" | "pr-state-changed" | "agent-builder-added";
|
|
9860
10174
|
data: {
|
|
9861
10175
|
type: "direct" | "group";
|
|
9862
10176
|
id: string;
|
|
@@ -9872,16 +10186,64 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
9872
10186
|
memberCode: string;
|
|
9873
10187
|
role: string;
|
|
9874
10188
|
}[] | {
|
|
10189
|
+
type: "claude" | "codex";
|
|
10190
|
+
id: string;
|
|
10191
|
+
avatar: string | null;
|
|
10192
|
+
createdAt: string;
|
|
10193
|
+
userId: string;
|
|
10194
|
+
permissions: {
|
|
10195
|
+
role: string;
|
|
10196
|
+
paths?: string[] | undefined;
|
|
10197
|
+
} | null;
|
|
10198
|
+
updatedAt: string;
|
|
10199
|
+
name: string;
|
|
10200
|
+
description: string | null;
|
|
10201
|
+
enable: boolean;
|
|
10202
|
+
config: {
|
|
10203
|
+
displayConfig?: Record<string, {
|
|
10204
|
+
closed?: string | undefined;
|
|
10205
|
+
merged?: string | undefined;
|
|
10206
|
+
createPR?: string | undefined;
|
|
10207
|
+
viewPR?: string | undefined;
|
|
10208
|
+
mergePR?: string | undefined;
|
|
10209
|
+
approvePR?: string | undefined;
|
|
10210
|
+
recreatePR?: string | undefined;
|
|
10211
|
+
permissionCanSendMessage?: string | undefined;
|
|
10212
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
10213
|
+
permissionCanCreatePr?: string | undefined;
|
|
10214
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
10215
|
+
permissionCanApprovePr?: string | undefined;
|
|
10216
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
10217
|
+
permissionCanViewPr?: string | undefined;
|
|
10218
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
10219
|
+
permissionCanMergePr?: string | undefined;
|
|
10220
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
10221
|
+
}> | undefined;
|
|
10222
|
+
guildMsg?: string | undefined;
|
|
10223
|
+
placeholderMsg?: string | undefined;
|
|
10224
|
+
deploymentSchema?: {
|
|
10225
|
+
type: "string" | "number" | "boolean" | "secret";
|
|
10226
|
+
name: string;
|
|
10227
|
+
description?: string | undefined;
|
|
10228
|
+
required?: boolean | undefined;
|
|
10229
|
+
defaultValue?: string | undefined;
|
|
10230
|
+
}[] | undefined;
|
|
10231
|
+
} | null;
|
|
10232
|
+
agentDir: string;
|
|
10233
|
+
displayName: string;
|
|
10234
|
+
publishedAgentId: string | null;
|
|
10235
|
+
sourceTaskId: string | null;
|
|
10236
|
+
} | {
|
|
9875
10237
|
id: string;
|
|
9876
10238
|
createdAt: string;
|
|
9877
10239
|
updatedAt: string;
|
|
9878
10240
|
name: string;
|
|
9879
10241
|
description: string | null;
|
|
9880
10242
|
owner: string;
|
|
10243
|
+
url: string;
|
|
9881
10244
|
fullName: string;
|
|
9882
10245
|
defaultBranch: string;
|
|
9883
10246
|
isPrivate: boolean;
|
|
9884
|
-
url: string;
|
|
9885
10247
|
gitServerId: string;
|
|
9886
10248
|
} | {
|
|
9887
10249
|
id: string;
|
|
@@ -10020,6 +10382,7 @@ interface AgentrixContext {
|
|
|
10020
10382
|
* - .claude/: Claude Agent SDK specific configuration
|
|
10021
10383
|
* - .codex/: OpenAI Codex specific configuration
|
|
10022
10384
|
*/
|
|
10385
|
+
|
|
10023
10386
|
/**
|
|
10024
10387
|
* Supported agent frameworks
|
|
10025
10388
|
*/
|
|
@@ -10125,6 +10488,30 @@ interface RepositoryInitHookInput {
|
|
|
10125
10488
|
*/
|
|
10126
10489
|
task_id: string;
|
|
10127
10490
|
}
|
|
10491
|
+
/**
|
|
10492
|
+
* Hook factory function type
|
|
10493
|
+
*
|
|
10494
|
+
* When hooks need access to AgentrixContext (workspace, userId, taskId, RPC methods),
|
|
10495
|
+
* export a default function that receives context and returns the hooks object.
|
|
10496
|
+
*
|
|
10497
|
+
* @example
|
|
10498
|
+
* ```typescript
|
|
10499
|
+
* import type { HookFactory, AgentrixContext } from '@agentrix/shared';
|
|
10500
|
+
* import type { PreToolUseHookInput } from '@anthropic-ai/claude-agent-sdk';
|
|
10501
|
+
*
|
|
10502
|
+
* const createHooks: HookFactory = (context: AgentrixContext) => ({
|
|
10503
|
+
* PreToolUse: async (input: PreToolUseHookInput) => {
|
|
10504
|
+
* const workspace = context.getWorkspace();
|
|
10505
|
+
* const taskId = context.getTaskId();
|
|
10506
|
+
* console.log(`[PreToolUse] Task ${taskId} in ${workspace}`);
|
|
10507
|
+
* return { decision: 'approve' as const };
|
|
10508
|
+
* },
|
|
10509
|
+
* });
|
|
10510
|
+
*
|
|
10511
|
+
* export default createHooks;
|
|
10512
|
+
* ```
|
|
10513
|
+
*/
|
|
10514
|
+
type HookFactory = (context: AgentrixContext) => Record<string, HookCallback>;
|
|
10128
10515
|
|
|
10129
10516
|
/**
|
|
10130
10517
|
* Zod schemas for validating agent configuration files
|
|
@@ -10399,5 +10786,5 @@ declare function decodeRtcChunkHeader(data: Uint8Array): RtcChunkHeader;
|
|
|
10399
10786
|
declare function buildRtcChunkFrame(header: RtcChunkHeader, payload: Uint8Array): Uint8Array;
|
|
10400
10787
|
declare function splitRtcChunkFrame(data: Uint8Array): RtcChunkFrame;
|
|
10401
10788
|
|
|
10402
|
-
export { AddChatMemberRequestSchema, AddChatMemberResponseSchema, AgentBuilderConfigSchema, AgentBuilderSchema, AgentConfigValidationError, AgentCustomConfigSchema, AgentError, AgentLoadError, AgentMetadataSchema, AgentNotFoundError, AgentPermissionsSchema, AgentSchema, AgentTypeSchema, ApiErrorSchema, ApiServerAliveEventSchema, AppAliveEventSchema, ApprovalStatusResponseSchema, ApprovePrRequestSchema, ApprovePrResponseSchema, ArchiveTaskRequestSchema, ArchiveTaskResponseSchema, AskUserMessageSchema, AskUserOptionSchema, AskUserQuestionSchema, AskUserResponseMessageSchema, AssociateRepoEventDataSchema, BillingStatsResponseSchema, BranchSchema, CancelTaskRequestSchema, CancelTaskResponseSchema, ChangeTaskTitleEventSchema, ChargeTransactionSchema, ChatMemberInputSchema, ChatMemberSchema, ChatSchema, ChatTypeSchema, ChatWithMembersSchema, ClaudeConfigSchema, CloudJoinApprovalRequestSchema, CloudJoinRequestSchema, CloudJoinResultQuerySchema, CloudJoinStatusQuerySchema, CloudMachineSchema, CloudSchema, ConfirmUploadRequestSchema, ConfirmUploadResponseSchema, ConsumeTransactionSchema, CreateAgentBuilderRequestSchema, CreateAgentRequestSchema, CreateAgentResponseSchema, CreateChatRequestSchema, CreateChatResponseSchema, CreateCloudRequestSchema, CreateCloudResponseSchema, CreateMergeRequestResponseSchema, CreateMergeRequestSchema, CreateOAuthServerRequestSchema, CreateOAuthServerResponseSchema, CreateTaskShareResponseSchema, CreateTaskShareSchema, CreditExhaustedEventSchema, CreditsPackageSchema, DateSchema, DeleteAgentResponseSchema, DeleteOAuthServerResponseSchema, DeploymentVariableSchema, DisplayConfigKeysSchema, DisplayConfigSchema, EventAckSchema, EventSchemaMap, FRAMEWORK_TYPES, FileItemSchema, FileStatsSchema, FileVisibilitySchema, FrameworkNotSupportedError, GetAgentResponseSchema, GetChatResponseSchema, GetGitServerResponseSchema, GetGitUrlQuerySchema, GetGitUrlResponseSchema, GetInstallUrlResponseSchema, GetOAuthServerResponseSchema, GetRepositoryResponseSchema, GetUploadUrlsRequestSchema, GetUploadUrlsResponseSchema, GetUserAgentsResponseSchema, GitHubIssueListItemSchema, GitHubIssueSchema, GitServerSchema, IdSchema, ListAgentsResponseSchema, ListBranchesResponseSchema, ListChatMembersResponseSchema, ListChatTasksResponseSchema, 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, ShareAuthQuerySchema, ShareAuthResponseSchema, ShutdownMachineSchema, SignatureAuthRequestSchema, SignatureAuthResponseSchema, SimpleSuccessSchema, StartTaskRequestSchema, StartTaskResponseSchema, StatsQuerySchema, StopTaskRequestSchema, StopTaskResponseSchema, StopTaskSchema, SyncCloudMachineResponseSchema, SyncLocalMachineResponseSchema, SyncMachineRequestSchema, SystemMessageSchema, TaskArtifactsUpdatedEventSchema, TaskInfoUpdateEventDataSchema, TaskItemSchema, TaskMessageSchema, TaskSharePermissionsSchema, TaskStateChangeEventSchema, 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, loadAgentConfig, machineAuth, permissionResponseRequestSchema, replacePromptPlaceholders, resumeTaskRequestSchema, resumeTaskSchema, setAgentContext, splitRtcChunkFrame, startTaskSchema, stopTaskRequestSchema, userAuth, validateAgentDirectory, validateFrameworkDirectory, workerAuth, workerTaskEvents };
|
|
10403
|
-
export type { AddChatMemberRequest, AddChatMemberResponse, Agent, AgentBuilder, AgentBuilderConfig, AgentConfig, AgentContext, AgentCustomConfig, AgentMetadata, AgentPermissions, AgentType, AgentrixContext, ApiError, ApiServerAliveEventData, AppAliveEventData, ApprovalStatusResponse, ApprovePrRequest, ApprovePrResponse, ArchiveTaskRequest, ArchiveTaskResponse, AskUserMessage, AskUserOption, AskUserQuestion, AskUserResponseMessage, 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, CreateAgentBuilderRequest, CreateAgentRequest, CreateAgentResponse, CreateChatRequest, CreateChatResponse, CreateCloudRequest, CreateCloudResponse, CreateMergeRequestRequest, CreateMergeRequestResponse, CreateOAuthServerRequest, CreateOAuthServerResponse, CreateTaskEventData, CreateTaskShareRequest, CreateTaskShareResponse, CreditExhaustedEventData, CreditsPackage, DeleteAgentResponse, DeleteOAuthServerResponse, DeploymentVariable, DisplayConfig, DisplayConfigKeys, EventAckData, EventData, EventMap, EventName, FileItem, FileStats, FileVisibility, FrameworkType, GetAgentResponse, GetChatResponse, GetGitServerResponse, GetGitUrlQuery, GetGitUrlResponse, GetInstallUrlResponse, GetOAuthServerResponse, GetRepositoryResponse, GetUploadUrlsRequest, GetUploadUrlsResponse, GetUserAgentsResponse, GitHubIssue, GitHubIssueListItem, GitServer, ListAgentsResponse, ListBranchesResponse, ListChatMembersResponse, ListChatTasksResponse, 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, ShareAuthQuery, ShareAuthResponse, ShutdownMachineData, SignatureAuthRequest, SignatureAuthResponse, SimpleSuccess, StartTaskRequest, StartTaskResponse, StatsQuery, StopTaskEventData, StopTaskRequest, StopTaskResponse, SyncCloudMachineResponse, SyncLocalMachineResponse, SyncMachineRequest, SystemMessageEventData, SystemMessageType, TaskArtifactsUpdatedEventData, TaskEvent, TaskInfoUpdateEventData, TaskItem, TaskMessageEventData, TaskMessagePayload, TaskSharePermissions, TaskState, TaskStateChangeEventData, 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 };
|
|
10789
|
+
export { AddChatMemberRequestSchema, AddChatMemberResponseSchema, AgentBuilderConfigSchema, AgentBuilderSchema, 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, CreateAgentBuilderRequestSchema, CreateAgentRequestSchema, CreateAgentResponseSchema, CreateChatRequestSchema, CreateChatResponseSchema, CreateCloudRequestSchema, CreateCloudResponseSchema, CreateMergeRequestResponseSchema, CreateMergeRequestSchema, CreateOAuthServerRequestSchema, CreateOAuthServerResponseSchema, CreateTaskShareResponseSchema, CreateTaskShareSchema, CreditExhaustedEventSchema, CreditsPackageSchema, DateSchema, DeleteAgentResponseSchema, DeleteOAuthServerResponseSchema, DeploymentVariableSchema, DisplayConfigKeysSchema, DisplayConfigSchema, EventAckSchema, EventSchemaMap, FRAMEWORK_TYPES, FileItemSchema, FileStatsSchema, FileVisibilitySchema, FrameworkNotSupportedError, GetAgentResponseSchema, GetChatResponseSchema, GetGitServerResponseSchema, GetGitUrlQuerySchema, GetGitUrlResponseSchema, GetInstallUrlResponseSchema, GetOAuthServerResponseSchema, GetRepositoryResponseSchema, GetUploadUrlsRequestSchema, GetUploadUrlsResponseSchema, GetUserAgentsResponseSchema, GitHubIssueListItemSchema, GitHubIssueSchema, GitServerSchema, IdSchema, ListAgentsResponseSchema, ListBranchesResponseSchema, ListChatMembersResponseSchema, ListChatTasksResponseSchema, 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, ShareAuthQuerySchema, ShareAuthResponseSchema, ShutdownMachineSchema, SignatureAuthRequestSchema, SignatureAuthResponseSchema, SimpleSuccessSchema, StartTaskRequestSchema, StartTaskResponseSchema, StatsQuerySchema, StopTaskRequestSchema, StopTaskResponseSchema, StopTaskSchema, SyncCloudMachineResponseSchema, SyncLocalMachineResponseSchema, SyncMachineRequestSchema, SystemMessageSchema, TaskArtifactsUpdatedEventSchema, TaskInfoUpdateEventDataSchema, TaskItemSchema, TaskMessageSchema, TaskSharePermissionsSchema, TaskStateChangeEventSchema, 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, loadAgentConfig, machineAuth, permissionResponseRequestSchema, replacePromptPlaceholders, resumeTaskRequestSchema, resumeTaskSchema, setAgentContext, splitRtcChunkFrame, startTaskSchema, stopTaskRequestSchema, userAuth, validateAgentDirectory, validateFrameworkDirectory, workerAuth, workerTaskEvents };
|
|
10790
|
+
export type { AddChatMemberRequest, AddChatMemberResponse, Agent, AgentBuilder, AgentBuilderConfig, 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, CreateAgentBuilderRequest, CreateAgentRequest, CreateAgentResponse, CreateChatRequest, CreateChatResponse, CreateCloudRequest, CreateCloudResponse, CreateMergeRequestRequest, CreateMergeRequestResponse, CreateOAuthServerRequest, CreateOAuthServerResponse, CreateTaskEventData, CreateTaskShareRequest, CreateTaskShareResponse, CreditExhaustedEventData, CreditsPackage, DeleteAgentResponse, DeleteOAuthServerResponse, DeploymentVariable, DisplayConfig, DisplayConfigKeys, EventAckData, EventData, EventMap, EventName, FileItem, FileStats, FileVisibility, FrameworkType, GetAgentResponse, GetChatResponse, GetGitServerResponse, GetGitUrlQuery, GetGitUrlResponse, GetInstallUrlResponse, GetOAuthServerResponse, GetRepositoryResponse, GetUploadUrlsRequest, GetUploadUrlsResponse, GetUserAgentsResponse, GitHubIssue, GitHubIssueListItem, GitServer, HookFactory, ListAgentsResponse, ListBranchesResponse, ListChatMembersResponse, ListChatTasksResponse, 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, ShareAuthQuery, ShareAuthResponse, ShutdownMachineData, SignatureAuthRequest, SignatureAuthResponse, SimpleSuccess, StartTaskRequest, StartTaskResponse, StatsQuery, StopTaskEventData, StopTaskRequest, StopTaskResponse, SyncCloudMachineResponse, SyncLocalMachineResponse, SyncMachineRequest, SystemMessageEventData, SystemMessageType, TaskArtifactsUpdatedEventData, TaskEvent, TaskInfoUpdateEventData, TaskItem, TaskMessageEventData, TaskMessagePayload, TaskSharePermissions, TaskState, TaskStateChangeEventData, 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 };
|