@agentrix/shared 2.3.0 → 2.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{errors-B5aaLYmJ.d.cts → errors-CKYgswVp.d.cts} +21 -20
- package/dist/index.cjs +114 -17
- package/dist/index.d.cts +106 -22
- package/dist/node.d.cts +2 -2
- package/package.json +1 -1
|
@@ -134,9 +134,9 @@ declare const TaskItemSchema: z.ZodObject<{
|
|
|
134
134
|
pullRequestNumber: z.ZodNullable<z.ZodNumber>;
|
|
135
135
|
pullRequestUrl: z.ZodNullable<z.ZodString>;
|
|
136
136
|
pullRequestState: z.ZodNullable<z.ZodEnum<{
|
|
137
|
-
open: "open";
|
|
138
|
-
closed: "closed";
|
|
139
137
|
merged: "merged";
|
|
138
|
+
closed: "closed";
|
|
139
|
+
open: "open";
|
|
140
140
|
}>>;
|
|
141
141
|
pullRequestStateChangedAt: z.ZodNullable<z.ZodString>;
|
|
142
142
|
gitStats: z.ZodNullable<z.ZodObject<{
|
|
@@ -207,9 +207,9 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
207
207
|
pullRequestNumber: z.ZodNullable<z.ZodNumber>;
|
|
208
208
|
pullRequestUrl: z.ZodNullable<z.ZodString>;
|
|
209
209
|
pullRequestState: z.ZodNullable<z.ZodEnum<{
|
|
210
|
-
open: "open";
|
|
211
|
-
closed: "closed";
|
|
212
210
|
merged: "merged";
|
|
211
|
+
closed: "closed";
|
|
212
|
+
open: "open";
|
|
213
213
|
}>>;
|
|
214
214
|
pullRequestStateChangedAt: z.ZodNullable<z.ZodString>;
|
|
215
215
|
gitStats: z.ZodNullable<z.ZodObject<{
|
|
@@ -508,9 +508,9 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
508
508
|
pullRequestNumber: z.ZodNullable<z.ZodNumber>;
|
|
509
509
|
pullRequestUrl: z.ZodNullable<z.ZodString>;
|
|
510
510
|
pullRequestState: z.ZodNullable<z.ZodEnum<{
|
|
511
|
-
open: "open";
|
|
512
|
-
closed: "closed";
|
|
513
511
|
merged: "merged";
|
|
512
|
+
closed: "closed";
|
|
513
|
+
open: "open";
|
|
514
514
|
}>>;
|
|
515
515
|
pullRequestStateChangedAt: z.ZodNullable<z.ZodString>;
|
|
516
516
|
gitStats: z.ZodNullable<z.ZodObject<{
|
|
@@ -578,9 +578,9 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
578
578
|
pullRequestNumber: z.ZodNullable<z.ZodNumber>;
|
|
579
579
|
pullRequestUrl: z.ZodNullable<z.ZodString>;
|
|
580
580
|
pullRequestState: z.ZodNullable<z.ZodEnum<{
|
|
581
|
-
open: "open";
|
|
582
|
-
closed: "closed";
|
|
583
581
|
merged: "merged";
|
|
582
|
+
closed: "closed";
|
|
583
|
+
open: "open";
|
|
584
584
|
}>>;
|
|
585
585
|
pullRequestStateChangedAt: z.ZodNullable<z.ZodString>;
|
|
586
586
|
gitStats: z.ZodNullable<z.ZodObject<{
|
|
@@ -650,9 +650,9 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
|
|
|
650
650
|
pullRequestNumber: z.ZodNullable<z.ZodNumber>;
|
|
651
651
|
pullRequestUrl: z.ZodNullable<z.ZodString>;
|
|
652
652
|
pullRequestState: z.ZodNullable<z.ZodEnum<{
|
|
653
|
-
open: "open";
|
|
654
|
-
closed: "closed";
|
|
655
653
|
merged: "merged";
|
|
654
|
+
closed: "closed";
|
|
655
|
+
open: "open";
|
|
656
656
|
}>>;
|
|
657
657
|
pullRequestStateChangedAt: z.ZodNullable<z.ZodString>;
|
|
658
658
|
gitStats: z.ZodNullable<z.ZodObject<{
|
|
@@ -1801,14 +1801,14 @@ declare const PrStateChangedSchema: z.ZodObject<{
|
|
|
1801
1801
|
pullRequestNumber: z.ZodNumber;
|
|
1802
1802
|
pullRequestUrl: z.ZodString;
|
|
1803
1803
|
oldState: z.ZodNullable<z.ZodEnum<{
|
|
1804
|
-
open: "open";
|
|
1805
|
-
closed: "closed";
|
|
1806
1804
|
merged: "merged";
|
|
1805
|
+
closed: "closed";
|
|
1806
|
+
open: "open";
|
|
1807
1807
|
}>>;
|
|
1808
1808
|
newState: z.ZodEnum<{
|
|
1809
|
-
open: "open";
|
|
1810
|
-
closed: "closed";
|
|
1811
1809
|
merged: "merged";
|
|
1810
|
+
closed: "closed";
|
|
1811
|
+
open: "open";
|
|
1812
1812
|
}>;
|
|
1813
1813
|
changedAt: z.ZodString;
|
|
1814
1814
|
}, z.core.$strip>;
|
|
@@ -1881,14 +1881,14 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
1881
1881
|
pullRequestNumber: z.ZodNumber;
|
|
1882
1882
|
pullRequestUrl: z.ZodString;
|
|
1883
1883
|
oldState: z.ZodNullable<z.ZodEnum<{
|
|
1884
|
-
open: "open";
|
|
1885
|
-
closed: "closed";
|
|
1886
1884
|
merged: "merged";
|
|
1885
|
+
closed: "closed";
|
|
1886
|
+
open: "open";
|
|
1887
1887
|
}>>;
|
|
1888
1888
|
newState: z.ZodEnum<{
|
|
1889
|
-
open: "open";
|
|
1890
|
-
closed: "closed";
|
|
1891
1889
|
merged: "merged";
|
|
1890
|
+
closed: "closed";
|
|
1891
|
+
open: "open";
|
|
1892
1892
|
}>;
|
|
1893
1893
|
changedAt: z.ZodString;
|
|
1894
1894
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1967,6 +1967,7 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
1967
1967
|
developerName: z.ZodString;
|
|
1968
1968
|
developerEmail: z.ZodNullable<z.ZodString>;
|
|
1969
1969
|
gitRepoId: z.ZodNullable<z.ZodString>;
|
|
1970
|
+
repoSubDir: z.ZodNullable<z.ZodString>;
|
|
1970
1971
|
supportLocal: z.ZodBoolean;
|
|
1971
1972
|
enable: z.ZodBoolean;
|
|
1972
1973
|
config: z.ZodNullable<z.ZodObject<{
|
|
@@ -2032,9 +2033,9 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
2032
2033
|
pullRequestNumber: z.ZodNullable<z.ZodNumber>;
|
|
2033
2034
|
pullRequestUrl: z.ZodNullable<z.ZodString>;
|
|
2034
2035
|
pullRequestState: z.ZodNullable<z.ZodEnum<{
|
|
2035
|
-
open: "open";
|
|
2036
|
-
closed: "closed";
|
|
2037
2036
|
merged: "merged";
|
|
2037
|
+
closed: "closed";
|
|
2038
|
+
open: "open";
|
|
2038
2039
|
}>>;
|
|
2039
2040
|
pullRequestStateChangedAt: z.ZodNullable<z.ZodString>;
|
|
2040
2041
|
gitStats: z.ZodNullable<z.ZodObject<{
|
package/dist/index.cjs
CHANGED
|
@@ -67,19 +67,14 @@ const UserWithOAuthAccountsSchema = UserBasicInfoSchema.extend({
|
|
|
67
67
|
oauthAccounts: zod.z.array(OAuthAccountInfoSchema).optional()
|
|
68
68
|
});
|
|
69
69
|
|
|
70
|
-
const
|
|
71
|
-
|
|
72
|
-
// Base64-encoded Ed25519 public key
|
|
73
|
-
challenge: zod.z.string(),
|
|
74
|
-
// Base64-encoded random challenge
|
|
75
|
-
signature: zod.z.string(),
|
|
76
|
-
// Base64-encoded Ed25519 signature
|
|
70
|
+
const DevCreateUserRequestSchema = zod.z.object({
|
|
71
|
+
username: zod.z.string().min(1).optional(),
|
|
77
72
|
salt: zod.z.string().optional(),
|
|
78
73
|
// Salt for password encryption (base64) - optional, set after login
|
|
79
74
|
encryptedSecret: zod.z.string().optional()
|
|
80
75
|
// Encrypted secret (base64) - optional, set after login
|
|
81
76
|
});
|
|
82
|
-
const
|
|
77
|
+
const DevCreateUserResponseSchema = zod.z.object({
|
|
83
78
|
token: zod.z.string(),
|
|
84
79
|
user: UserBasicInfoSchema
|
|
85
80
|
});
|
|
@@ -103,6 +98,15 @@ const UpdateUserProfileResponseSchema = UserProfileResponseSchema;
|
|
|
103
98
|
const LogoutResponseSchema = zod.z.object({
|
|
104
99
|
success: zod.z.literal(true)
|
|
105
100
|
});
|
|
101
|
+
const UpdateSecretRequestSchema = zod.z.object({
|
|
102
|
+
salt: zod.z.string(),
|
|
103
|
+
// New salt for password encryption
|
|
104
|
+
encryptedSecret: zod.z.string()
|
|
105
|
+
// New encrypted secret
|
|
106
|
+
});
|
|
107
|
+
const UpdateSecretResponseSchema = zod.z.object({
|
|
108
|
+
success: zod.z.literal(true)
|
|
109
|
+
});
|
|
106
110
|
const ResetSecretRequestSchema = zod.z.object({
|
|
107
111
|
salt: zod.z.string(),
|
|
108
112
|
// New salt for PIN code encryption
|
|
@@ -117,14 +121,8 @@ const ResetSecretResponseSchema = zod.z.object({
|
|
|
117
121
|
})
|
|
118
122
|
});
|
|
119
123
|
const OAuthLoginQuerySchema = zod.z.object({
|
|
120
|
-
redirect: zod.z.string().optional()
|
|
124
|
+
redirect: zod.z.string().optional()
|
|
121
125
|
// Optional redirect URL
|
|
122
|
-
signature: zod.z.string(),
|
|
123
|
-
// Base64-encoded Ed25519 public key
|
|
124
|
-
challenge: zod.z.string(),
|
|
125
|
-
// Base64-encoded random challenge
|
|
126
|
-
signatureProof: zod.z.string()
|
|
127
|
-
// Base64-encoded Ed25519 signature
|
|
128
126
|
});
|
|
129
127
|
const OAuthCallbackQuerySchema = zod.z.object({
|
|
130
128
|
code: zod.z.string(),
|
|
@@ -701,6 +699,7 @@ const AgentSchema = zod.z.object({
|
|
|
701
699
|
developerName: zod.z.string(),
|
|
702
700
|
developerEmail: zod.z.string().nullable(),
|
|
703
701
|
gitRepoId: zod.z.string().nullable(),
|
|
702
|
+
repoSubDir: zod.z.string().nullable(),
|
|
704
703
|
supportLocal: zod.z.boolean(),
|
|
705
704
|
enable: zod.z.boolean(),
|
|
706
705
|
config: AgentCustomConfigSchema.nullable(),
|
|
@@ -719,6 +718,7 @@ const CreateAgentRequestSchema = zod.z.object({
|
|
|
719
718
|
guildMsg: zod.z.string().default("what can I do for you today?"),
|
|
720
719
|
placeholderMsg: zod.z.string().default("Ask me anything..."),
|
|
721
720
|
gitRepoId: zod.z.string().optional(),
|
|
721
|
+
repoSubDir: zod.z.string().optional(),
|
|
722
722
|
supportLocal: zod.z.boolean().default(false),
|
|
723
723
|
config: AgentCustomConfigSchema.nullable().optional(),
|
|
724
724
|
isSystem: zod.z.boolean().optional()
|
|
@@ -735,6 +735,7 @@ const UpdateAgentRequestSchema = zod.z.object({
|
|
|
735
735
|
guildMsg: zod.z.string().optional(),
|
|
736
736
|
placeholderMsg: zod.z.string().optional(),
|
|
737
737
|
gitRepoId: zod.z.string().nullable().optional(),
|
|
738
|
+
repoSubDir: zod.z.string().optional(),
|
|
738
739
|
supportLocal: zod.z.boolean().optional(),
|
|
739
740
|
config: AgentCustomConfigSchema.nullable().optional()
|
|
740
741
|
});
|
|
@@ -1013,6 +1014,32 @@ const ListIssuesResponseSchema = zod.z.object({
|
|
|
1013
1014
|
issues: zod.z.array(GitHubIssueListItemSchema),
|
|
1014
1015
|
total_count: zod.z.number()
|
|
1015
1016
|
});
|
|
1017
|
+
const RepositoryReferenceKindSchema = zod.z.enum(["issue", "pull_request", "merge_request"]);
|
|
1018
|
+
const RepositoryReferenceListItemSchema = zod.z.object({
|
|
1019
|
+
kind: RepositoryReferenceKindSchema,
|
|
1020
|
+
number: zod.z.number(),
|
|
1021
|
+
title: zod.z.string(),
|
|
1022
|
+
html_url: zod.z.string().url()
|
|
1023
|
+
});
|
|
1024
|
+
const RepositoryReferenceSchema = zod.z.object({
|
|
1025
|
+
kind: RepositoryReferenceKindSchema,
|
|
1026
|
+
number: zod.z.number(),
|
|
1027
|
+
title: zod.z.string(),
|
|
1028
|
+
body: zod.z.string().nullable(),
|
|
1029
|
+
html_url: zod.z.string().url(),
|
|
1030
|
+
head_branch: zod.z.string().optional(),
|
|
1031
|
+
base_branch: zod.z.string().optional()
|
|
1032
|
+
});
|
|
1033
|
+
const ListReferencesQuerySchema = zod.z.object({
|
|
1034
|
+
q: zod.z.string().optional()
|
|
1035
|
+
});
|
|
1036
|
+
const GetReferenceQuerySchema = zod.z.object({
|
|
1037
|
+
kind: RepositoryReferenceKindSchema
|
|
1038
|
+
});
|
|
1039
|
+
const ListReferencesResponseSchema = zod.z.object({
|
|
1040
|
+
references: zod.z.array(RepositoryReferenceListItemSchema),
|
|
1041
|
+
total_count: zod.z.number()
|
|
1042
|
+
});
|
|
1016
1043
|
|
|
1017
1044
|
const CreateCloudRequestSchema = zod.z.discriminatedUnion("type", [
|
|
1018
1045
|
zod.z.object({
|
|
@@ -2673,6 +2700,67 @@ function getFileExtension(filePath) {
|
|
|
2673
2700
|
return filePath.substring(lastDot).toLowerCase();
|
|
2674
2701
|
}
|
|
2675
2702
|
|
|
2703
|
+
const gitPathTextEncoder = new TextEncoder();
|
|
2704
|
+
const gitPathTextDecoder = new TextDecoder();
|
|
2705
|
+
function appendUtf8Bytes(target, value) {
|
|
2706
|
+
const bytes = gitPathTextEncoder.encode(value);
|
|
2707
|
+
for (const byte of bytes) {
|
|
2708
|
+
target.push(byte);
|
|
2709
|
+
}
|
|
2710
|
+
}
|
|
2711
|
+
function decodeGitPath(rawPath) {
|
|
2712
|
+
let normalized = rawPath.trim();
|
|
2713
|
+
if (normalized.length >= 2 && normalized.startsWith('"') && normalized.endsWith('"')) {
|
|
2714
|
+
normalized = normalized.slice(1, -1);
|
|
2715
|
+
}
|
|
2716
|
+
if (!normalized.includes("\\")) {
|
|
2717
|
+
return normalized;
|
|
2718
|
+
}
|
|
2719
|
+
const bytes = [];
|
|
2720
|
+
for (let i = 0; i < normalized.length; ) {
|
|
2721
|
+
const char = normalized[i];
|
|
2722
|
+
if (char !== "\\") {
|
|
2723
|
+
appendUtf8Bytes(bytes, char);
|
|
2724
|
+
i += 1;
|
|
2725
|
+
continue;
|
|
2726
|
+
}
|
|
2727
|
+
if (i + 1 >= normalized.length) {
|
|
2728
|
+
appendUtf8Bytes(bytes, char);
|
|
2729
|
+
i += 1;
|
|
2730
|
+
continue;
|
|
2731
|
+
}
|
|
2732
|
+
const next = normalized[i + 1];
|
|
2733
|
+
if (/[0-7]/.test(next)) {
|
|
2734
|
+
let end = i + 1;
|
|
2735
|
+
while (end < normalized.length && end < i + 4 && /[0-7]/.test(normalized[end])) {
|
|
2736
|
+
end += 1;
|
|
2737
|
+
}
|
|
2738
|
+
bytes.push(parseInt(normalized.slice(i + 1, end), 8));
|
|
2739
|
+
i = end;
|
|
2740
|
+
continue;
|
|
2741
|
+
}
|
|
2742
|
+
if (next === "n") {
|
|
2743
|
+
bytes.push(10);
|
|
2744
|
+
} else if (next === "r") {
|
|
2745
|
+
bytes.push(13);
|
|
2746
|
+
} else if (next === "t") {
|
|
2747
|
+
bytes.push(9);
|
|
2748
|
+
} else if (next === "b") {
|
|
2749
|
+
bytes.push(8);
|
|
2750
|
+
} else if (next === "f") {
|
|
2751
|
+
bytes.push(12);
|
|
2752
|
+
} else if (next === "v") {
|
|
2753
|
+
bytes.push(11);
|
|
2754
|
+
} else if (next === "a") {
|
|
2755
|
+
bytes.push(7);
|
|
2756
|
+
} else {
|
|
2757
|
+
appendUtf8Bytes(bytes, next);
|
|
2758
|
+
}
|
|
2759
|
+
i += 2;
|
|
2760
|
+
}
|
|
2761
|
+
return gitPathTextDecoder.decode(new Uint8Array(bytes));
|
|
2762
|
+
}
|
|
2763
|
+
|
|
2676
2764
|
exports.AgentConfigValidationError = errors.AgentConfigValidationError;
|
|
2677
2765
|
exports.AgentError = errors.AgentError;
|
|
2678
2766
|
exports.AgentLoadError = errors.AgentLoadError;
|
|
@@ -2768,6 +2856,8 @@ exports.DeleteContactResponseSchema = DeleteContactResponseSchema;
|
|
|
2768
2856
|
exports.DeleteOAuthServerResponseSchema = DeleteOAuthServerResponseSchema;
|
|
2769
2857
|
exports.DeployAgentCompleteEventSchema = DeployAgentCompleteEventSchema;
|
|
2770
2858
|
exports.DeployAgentEventSchema = DeployAgentEventSchema;
|
|
2859
|
+
exports.DevCreateUserRequestSchema = DevCreateUserRequestSchema;
|
|
2860
|
+
exports.DevCreateUserResponseSchema = DevCreateUserResponseSchema;
|
|
2771
2861
|
exports.DisplayConfigKeysSchema = DisplayConfigKeysSchema;
|
|
2772
2862
|
exports.DisplayConfigSchema = DisplayConfigSchema;
|
|
2773
2863
|
exports.DraftAgentConfigSchema = DraftAgentConfigSchema;
|
|
@@ -2790,6 +2880,7 @@ exports.GetGitUrlQuerySchema = GetGitUrlQuerySchema;
|
|
|
2790
2880
|
exports.GetGitUrlResponseSchema = GetGitUrlResponseSchema;
|
|
2791
2881
|
exports.GetInstallUrlResponseSchema = GetInstallUrlResponseSchema;
|
|
2792
2882
|
exports.GetOAuthServerResponseSchema = GetOAuthServerResponseSchema;
|
|
2883
|
+
exports.GetReferenceQuerySchema = GetReferenceQuerySchema;
|
|
2793
2884
|
exports.GetRepositoryResponseSchema = GetRepositoryResponseSchema;
|
|
2794
2885
|
exports.GetSubscriptionResponseSchema = GetSubscriptionResponseSchema;
|
|
2795
2886
|
exports.GetSubscriptionTiersResponseSchema = GetSubscriptionTiersResponseSchema;
|
|
@@ -2822,6 +2913,8 @@ exports.ListPackagesQuerySchema = ListPackagesQuerySchema;
|
|
|
2822
2913
|
exports.ListPackagesResponseSchema = ListPackagesResponseSchema;
|
|
2823
2914
|
exports.ListRecentTasksRequestSchema = ListRecentTasksRequestSchema;
|
|
2824
2915
|
exports.ListRecentTasksResponseSchema = ListRecentTasksResponseSchema;
|
|
2916
|
+
exports.ListReferencesQuerySchema = ListReferencesQuerySchema;
|
|
2917
|
+
exports.ListReferencesResponseSchema = ListReferencesResponseSchema;
|
|
2825
2918
|
exports.ListRepositoriesResponseSchema = ListRepositoriesResponseSchema;
|
|
2826
2919
|
exports.ListSubTasksRequestSchema = ListSubTasksRequestSchema;
|
|
2827
2920
|
exports.ListSubTasksResponseSchema = ListSubTasksResponseSchema;
|
|
@@ -2870,6 +2963,9 @@ exports.RechargeResponseSchema = RechargeResponseSchema;
|
|
|
2870
2963
|
exports.RegisterCompanionRequestSchema = RegisterCompanionRequestSchema;
|
|
2871
2964
|
exports.RegisterCompanionResponseSchema = RegisterCompanionResponseSchema;
|
|
2872
2965
|
exports.RemoveChatMemberRequestSchema = RemoveChatMemberRequestSchema;
|
|
2966
|
+
exports.RepositoryReferenceKindSchema = RepositoryReferenceKindSchema;
|
|
2967
|
+
exports.RepositoryReferenceListItemSchema = RepositoryReferenceListItemSchema;
|
|
2968
|
+
exports.RepositoryReferenceSchema = RepositoryReferenceSchema;
|
|
2873
2969
|
exports.RepositorySchema = RepositorySchema;
|
|
2874
2970
|
exports.ResetSecretRequestSchema = ResetSecretRequestSchema;
|
|
2875
2971
|
exports.ResetSecretResponseSchema = ResetSecretResponseSchema;
|
|
@@ -2896,8 +2992,6 @@ exports.ShowModalEventDataSchema = ShowModalEventDataSchema;
|
|
|
2896
2992
|
exports.ShowModalRequestSchema = ShowModalRequestSchema;
|
|
2897
2993
|
exports.ShowModalResponseSchema = ShowModalResponseSchema;
|
|
2898
2994
|
exports.ShutdownMachineSchema = ShutdownMachineSchema;
|
|
2899
|
-
exports.SignatureAuthRequestSchema = SignatureAuthRequestSchema;
|
|
2900
|
-
exports.SignatureAuthResponseSchema = SignatureAuthResponseSchema;
|
|
2901
2995
|
exports.SimpleSuccessSchema = SimpleSuccessSchema;
|
|
2902
2996
|
exports.StartTaskRequestSchema = StartTaskRequestSchema;
|
|
2903
2997
|
exports.StartTaskResponseSchema = StartTaskResponseSchema;
|
|
@@ -2939,6 +3033,8 @@ exports.UpdateDraftAgentRequestSchema = UpdateDraftAgentRequestSchema;
|
|
|
2939
3033
|
exports.UpdateDraftAgentResponseSchema = UpdateDraftAgentResponseSchema;
|
|
2940
3034
|
exports.UpdateOAuthServerRequestSchema = UpdateOAuthServerRequestSchema;
|
|
2941
3035
|
exports.UpdateOAuthServerResponseSchema = UpdateOAuthServerResponseSchema;
|
|
3036
|
+
exports.UpdateSecretRequestSchema = UpdateSecretRequestSchema;
|
|
3037
|
+
exports.UpdateSecretResponseSchema = UpdateSecretResponseSchema;
|
|
2942
3038
|
exports.UpdateSubscriptionPlanRequestSchema = UpdateSubscriptionPlanRequestSchema;
|
|
2943
3039
|
exports.UpdateSubscriptionRequestSchema = UpdateSubscriptionRequestSchema;
|
|
2944
3040
|
exports.UpdateSubscriptionResponseSchema = UpdateSubscriptionResponseSchema;
|
|
@@ -2973,6 +3069,7 @@ exports.createMergeRequestSchema = createMergeRequestSchema;
|
|
|
2973
3069
|
exports.createTaskEncryptionPayload = createTaskEncryptionPayload;
|
|
2974
3070
|
exports.createTaskSchema = createTaskSchema;
|
|
2975
3071
|
exports.decodeBase64 = decodeBase64;
|
|
3072
|
+
exports.decodeGitPath = decodeGitPath;
|
|
2976
3073
|
exports.decodeRtcChunkHeader = decodeRtcChunkHeader;
|
|
2977
3074
|
exports.decryptAES = decryptAES;
|
|
2978
3075
|
exports.decryptFileContent = decryptFileContent;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { P as PreviewMetadata } from './errors-
|
|
3
|
-
export { A as ActiveAgent, a as ActiveAgentSchema, b as AgentConfig, c as AgentConfigValidationError, d as AgentContext, e as AgentError, f as AgentLoadError, g as AgentMetadata, h as AgentMetadataSchema, i as AgentNotFoundError, j as AgentrixContext, k as ApiServerAliveEventData, l as ApiServerAliveEventSchema, m as AppAliveEventData, n as AppAliveEventSchema, o as ApprovePrRequest, p as ApprovePrRequestSchema, q as ApprovePrResponse, r as ApprovePrResponseSchema, s as ArchiveTaskRequest, t as ArchiveTaskRequestSchema, u as ArchiveTaskResponse, v as ArchiveTaskResponseSchema, w as AskUserMessage, x as AskUserMessageSchema, y as AskUserOption, z as AskUserOptionSchema, B as AskUserQuestion, C as AskUserQuestionSchema, D as AskUserResponseMessage, E as AskUserResponseMessageSchema, F as AskUserResponseReason, G as AskUserResponseReasonSchema, H as AskUserResponseStatus, I as AskUserResponseStatusSchema, J as AssociateRepoEventData, K as AssociateRepoEventDataSchema, L as CancelTaskEventData, M as CancelTaskRequest, N as CancelTaskRequestSchema, O as CancelTaskResponse, Q as CancelTaskResponseSchema, R as ChangeTaskTitleEventData, S as ChangeTaskTitleEventSchema, T as ChatWorkersStatusRequestEventData, U as ChatWorkersStatusRequestSchema, V as ChatWorkersStatusResponseEventData, W as ChatWorkersStatusResponseSchema, X as ClaudeAgentConfig, Y as ClaudeConfigSchema, Z as CompanionHeartbeatMessage, _ as CompanionHeartbeatRequestData, $ as CompanionHeartbeatRequestSchema, a0 as CompanionHeartbeatResponseData, a1 as CompanionHeartbeatResponseSchema, a2 as CompanionReminderMessage, a3 as CreateMergeRequestRequest, a4 as CreateMergeRequestResponse, a5 as CreateMergeRequestResponseSchema, a6 as CreateMergeRequestSchema, a7 as CreateTaskEventData, a8 as CreateTaskShareRequest, a9 as CreateTaskShareResponse, aa as CreateTaskShareResponseSchema, ab as CreateTaskShareSchema, ac as CreditExhaustedEventData, ad as CreditExhaustedEventSchema, ae as DaemonGitlabOperation, af as DaemonGitlabOperationSchema, ag as DaemonGitlabRequestEventData, ah as DaemonGitlabRequestSchema, ai as DaemonGitlabResponseEventData, aj as DaemonGitlabResponseSchema, ak as DeployAgentCompleteEventData, al as DeployAgentCompleteEventSchema, am as DeployAgentEventData, an as DeployAgentEventSchema, ao as EventAckData, ap as EventAckSchema, aq as EventData, ar as EventMap, as as EventName, at as EventSchemaMap, au as FRAMEWORK_TYPES, av as FillEventsRequest, aw as FillEventsRequestSchema, ax as FillEventsResponse, ay as FindTaskByAgentRequest, az as FindTaskByAgentRequestSchema, aA as FindTaskByAgentResponse, aB as FindTaskByAgentResponseSchema, aC as FrameworkNotSupportedError, aD as FrameworkType, aE as GetTaskSessionResponse, aF as GetTaskSessionResponseSchema, aG as HookFactory, aH as ListRecentTasksRequest, aI as ListRecentTasksRequestSchema, aJ as ListRecentTasksResponse, aK as ListRecentTasksResponseSchema, aL as ListSubTasksRequest, aM as ListSubTasksRequestSchema, aN as ListSubTasksResponse, aO as ListSubTasksResponseSchema, aP as ListTasksRequest, aQ as ListTasksRequestSchema, aR as ListTasksResponse, aS as ListTasksResponseSchema, aT as LoadAgentOptions, aU as MachineAliveEventData, aV as MachineAliveEventSchema, aW as MachineRtcRequestEventData, aX as MachineRtcRequestSchema, aY as MachineRtcResponseEventData, aZ as MachineRtcResponseSchema, a_ as MergePullRequestAck, a$ as MergePullRequestEventData, b0 as MergePullRequestEventSchema, b1 as MergeRequestEventData, b2 as MergeRequestEventSchema, b3 as MissingAgentFileError, b4 as PermissionResponseRequest, b5 as PermissionResponseRequestSchema, b6 as PermissionResponseResponse, b7 as PermissionResponseResponseSchema, b8 as PrStateChangedData, b9 as PreviewMetadataSchema, ba as PreviewMethod, bb as PreviewMethodSchema, bc as PreviewProjectType, bd as PreviewProjectTypeSchema, be as ProjectDirectoryResponse, bf as ProjectDirectoryResponseSchema, bg as ProjectEntry, bh as ProjectEntrySchema, bi as QueryEventsRequest, bj as QueryEventsRequestSchema, bk as QueryEventsResponse, bl as RecentTaskSummary, bm as RecentTaskSummarySchema, bn as RepositoryInitHookInput, bo as ResetTaskSessionEventData, bp as ResetTaskSessionSchema, bq as ResumeTaskEventData, br as ResumeTaskRequest, bs as ResumeTaskRequestSchema, bt as ResumeTaskResponse, bu as ResumeTaskResponseSchema, bv as RpcCallEventData, bw as RpcCallEventSchema, bx as RpcResponseData, by as RpcResponseSchema, bz as RtcIceServer, bA as RtcIceServerSchema, bB as RtcIceServersRequestEventData, bC as RtcIceServersRequestSchema, bD as RtcIceServersResponseEventData, bE as RtcIceServersResponseSchema, bF as RtcSignalEventData, bG as RtcSignalSchema, bH as SendMessageTarget, bI as SendTaskMessageRequest, bJ as SendTaskMessageRequestSchema, bK as SendTaskMessageResponse, bL as SendTaskMessageResponseSchema, bM as ShowModalEventData, bN as ShowModalEventDataSchema, bO as ShowModalRequest, bP as ShowModalRequestSchema, bQ as ShowModalResponse, bR as ShowModalResponseSchema, bS as ShutdownMachineData, bT as ShutdownMachineSchema, bU as StartTaskRequest, bV as StartTaskRequestSchema, bW as StartTaskResponse, bX as StartTaskResponseSchema, bY as StopTaskEventData, bZ as StopTaskRequest, b_ as StopTaskRequestSchema, b$ as StopTaskResponse, c0 as StopTaskResponseSchema, c1 as StopTaskSchema, c2 as SubTaskAskUserMessage, c3 as SubTaskResultUpdatedEventData, c4 as SubTaskResultUpdatedEventSchema, c5 as SubTaskSummary, c6 as SubTaskSummarySchema, c7 as SystemMessageEventData, c8 as SystemMessageSchema, c9 as SystemMessageType, ca as TaskAgentInfo, cb as TaskAgentInfoSchema, cc as TaskArtifactsStats, cd as TaskArtifactsStatsSchema, ce as TaskArtifactsSummary, cf as TaskArtifactsSummarySchema, cg as TaskEvent, ch as TaskInfoUpdateEventData, ci as TaskInfoUpdateEventDataSchema, cj as TaskItem, ck as TaskItemSchema, cl as TaskMessageEventData, cm as TaskMessagePayload, cn as TaskMessageSchema, co as TaskState, cp as TaskStateChangeEventData, cq as TaskStateChangeEventSchema, cr as TaskStoppedEventData, cs as TaskStoppedEventSchema, ct as TaskTodo, cu as TaskTodoSchema, cv as UnarchiveTaskRequest, cw as UnarchiveTaskRequestSchema, cx as UnarchiveTaskResponse, cy as UnarchiveTaskResponseSchema, cz as UpdateAgentInfoEventData, cA as UpdateAgentInfoEventSchema, cB as UpdateTaskAgentSessionIdEventData, cC as UpdateTaskAgentSessionIdEventSchema, cD as UpdateTaskTitleRequest, cE as UpdateTaskTitleRequestSchema, cF as UpdateTaskTitleResponse, cG as UpdateTaskTitleResponseSchema, cH as ValidationResult, cI as WorkerAliveEventData, cJ as WorkerAliveEventSchema, cK as WorkerExitEventData, cL as WorkerExitSchema, cM as WorkerInitializedEventData, cN as WorkerInitializedSchema, cO as WorkerInitializingEventData, cP as WorkerInitializingSchema, cQ as WorkerReadyEventData, cR as WorkerReadySchema, cS as WorkerRunningEventData, cT as WorkerRunningSchema, cU as WorkerStatusRequestEventData, cV as WorkerStatusRequestSchema, cW as WorkerStatusValue, cX as WorkerStatusValueSchema, cY as WorkerTaskEvent, cZ as WorkspaceFileRequestEventData, c_ as WorkspaceFileRequestSchema, c$ as WorkspaceFileResponseEventData, d0 as WorkspaceFileResponseSchema, d1 as baseTaskSchema, d2 as cancelTaskRequestSchema, d3 as cancelTaskSchema, d4 as createEventId, d5 as createMergeRequestSchema, d6 as createTaskSchema, d7 as getAgentContext, d8 as isAskUserMessage, d9 as isAskUserResponseMessage, da as isCompanionHeartbeatMessage, db as isCompanionReminderMessage, dc as isSDKMessage, dd as isSDKUserMessage, de as isSubTaskAskUserMessage, df as permissionResponseRequestSchema, dg as resumeTaskRequestSchema, dh as resumeTaskSchema, di as setAgentContext, dj as startTaskSchema, dk as stopTaskRequestSchema, dl as workerTaskEvents } from './errors-
|
|
2
|
+
import { P as PreviewMetadata } from './errors-CKYgswVp.cjs';
|
|
3
|
+
export { A as ActiveAgent, a as ActiveAgentSchema, b as AgentConfig, c as AgentConfigValidationError, d as AgentContext, e as AgentError, f as AgentLoadError, g as AgentMetadata, h as AgentMetadataSchema, i as AgentNotFoundError, j as AgentrixContext, k as ApiServerAliveEventData, l as ApiServerAliveEventSchema, m as AppAliveEventData, n as AppAliveEventSchema, o as ApprovePrRequest, p as ApprovePrRequestSchema, q as ApprovePrResponse, r as ApprovePrResponseSchema, s as ArchiveTaskRequest, t as ArchiveTaskRequestSchema, u as ArchiveTaskResponse, v as ArchiveTaskResponseSchema, w as AskUserMessage, x as AskUserMessageSchema, y as AskUserOption, z as AskUserOptionSchema, B as AskUserQuestion, C as AskUserQuestionSchema, D as AskUserResponseMessage, E as AskUserResponseMessageSchema, F as AskUserResponseReason, G as AskUserResponseReasonSchema, H as AskUserResponseStatus, I as AskUserResponseStatusSchema, J as AssociateRepoEventData, K as AssociateRepoEventDataSchema, L as CancelTaskEventData, M as CancelTaskRequest, N as CancelTaskRequestSchema, O as CancelTaskResponse, Q as CancelTaskResponseSchema, R as ChangeTaskTitleEventData, S as ChangeTaskTitleEventSchema, T as ChatWorkersStatusRequestEventData, U as ChatWorkersStatusRequestSchema, V as ChatWorkersStatusResponseEventData, W as ChatWorkersStatusResponseSchema, X as ClaudeAgentConfig, Y as ClaudeConfigSchema, Z as CompanionHeartbeatMessage, _ as CompanionHeartbeatRequestData, $ as CompanionHeartbeatRequestSchema, a0 as CompanionHeartbeatResponseData, a1 as CompanionHeartbeatResponseSchema, a2 as CompanionReminderMessage, a3 as CreateMergeRequestRequest, a4 as CreateMergeRequestResponse, a5 as CreateMergeRequestResponseSchema, a6 as CreateMergeRequestSchema, a7 as CreateTaskEventData, a8 as CreateTaskShareRequest, a9 as CreateTaskShareResponse, aa as CreateTaskShareResponseSchema, ab as CreateTaskShareSchema, ac as CreditExhaustedEventData, ad as CreditExhaustedEventSchema, ae as DaemonGitlabOperation, af as DaemonGitlabOperationSchema, ag as DaemonGitlabRequestEventData, ah as DaemonGitlabRequestSchema, ai as DaemonGitlabResponseEventData, aj as DaemonGitlabResponseSchema, ak as DeployAgentCompleteEventData, al as DeployAgentCompleteEventSchema, am as DeployAgentEventData, an as DeployAgentEventSchema, ao as EventAckData, ap as EventAckSchema, aq as EventData, ar as EventMap, as as EventName, at as EventSchemaMap, au as FRAMEWORK_TYPES, av as FillEventsRequest, aw as FillEventsRequestSchema, ax as FillEventsResponse, ay as FindTaskByAgentRequest, az as FindTaskByAgentRequestSchema, aA as FindTaskByAgentResponse, aB as FindTaskByAgentResponseSchema, aC as FrameworkNotSupportedError, aD as FrameworkType, aE as GetTaskSessionResponse, aF as GetTaskSessionResponseSchema, aG as HookFactory, aH as ListRecentTasksRequest, aI as ListRecentTasksRequestSchema, aJ as ListRecentTasksResponse, aK as ListRecentTasksResponseSchema, aL as ListSubTasksRequest, aM as ListSubTasksRequestSchema, aN as ListSubTasksResponse, aO as ListSubTasksResponseSchema, aP as ListTasksRequest, aQ as ListTasksRequestSchema, aR as ListTasksResponse, aS as ListTasksResponseSchema, aT as LoadAgentOptions, aU as MachineAliveEventData, aV as MachineAliveEventSchema, aW as MachineRtcRequestEventData, aX as MachineRtcRequestSchema, aY as MachineRtcResponseEventData, aZ as MachineRtcResponseSchema, a_ as MergePullRequestAck, a$ as MergePullRequestEventData, b0 as MergePullRequestEventSchema, b1 as MergeRequestEventData, b2 as MergeRequestEventSchema, b3 as MissingAgentFileError, b4 as PermissionResponseRequest, b5 as PermissionResponseRequestSchema, b6 as PermissionResponseResponse, b7 as PermissionResponseResponseSchema, b8 as PrStateChangedData, b9 as PreviewMetadataSchema, ba as PreviewMethod, bb as PreviewMethodSchema, bc as PreviewProjectType, bd as PreviewProjectTypeSchema, be as ProjectDirectoryResponse, bf as ProjectDirectoryResponseSchema, bg as ProjectEntry, bh as ProjectEntrySchema, bi as QueryEventsRequest, bj as QueryEventsRequestSchema, bk as QueryEventsResponse, bl as RecentTaskSummary, bm as RecentTaskSummarySchema, bn as RepositoryInitHookInput, bo as ResetTaskSessionEventData, bp as ResetTaskSessionSchema, bq as ResumeTaskEventData, br as ResumeTaskRequest, bs as ResumeTaskRequestSchema, bt as ResumeTaskResponse, bu as ResumeTaskResponseSchema, bv as RpcCallEventData, bw as RpcCallEventSchema, bx as RpcResponseData, by as RpcResponseSchema, bz as RtcIceServer, bA as RtcIceServerSchema, bB as RtcIceServersRequestEventData, bC as RtcIceServersRequestSchema, bD as RtcIceServersResponseEventData, bE as RtcIceServersResponseSchema, bF as RtcSignalEventData, bG as RtcSignalSchema, bH as SendMessageTarget, bI as SendTaskMessageRequest, bJ as SendTaskMessageRequestSchema, bK as SendTaskMessageResponse, bL as SendTaskMessageResponseSchema, bM as ShowModalEventData, bN as ShowModalEventDataSchema, bO as ShowModalRequest, bP as ShowModalRequestSchema, bQ as ShowModalResponse, bR as ShowModalResponseSchema, bS as ShutdownMachineData, bT as ShutdownMachineSchema, bU as StartTaskRequest, bV as StartTaskRequestSchema, bW as StartTaskResponse, bX as StartTaskResponseSchema, bY as StopTaskEventData, bZ as StopTaskRequest, b_ as StopTaskRequestSchema, b$ as StopTaskResponse, c0 as StopTaskResponseSchema, c1 as StopTaskSchema, c2 as SubTaskAskUserMessage, c3 as SubTaskResultUpdatedEventData, c4 as SubTaskResultUpdatedEventSchema, c5 as SubTaskSummary, c6 as SubTaskSummarySchema, c7 as SystemMessageEventData, c8 as SystemMessageSchema, c9 as SystemMessageType, ca as TaskAgentInfo, cb as TaskAgentInfoSchema, cc as TaskArtifactsStats, cd as TaskArtifactsStatsSchema, ce as TaskArtifactsSummary, cf as TaskArtifactsSummarySchema, cg as TaskEvent, ch as TaskInfoUpdateEventData, ci as TaskInfoUpdateEventDataSchema, cj as TaskItem, ck as TaskItemSchema, cl as TaskMessageEventData, cm as TaskMessagePayload, cn as TaskMessageSchema, co as TaskState, cp as TaskStateChangeEventData, cq as TaskStateChangeEventSchema, cr as TaskStoppedEventData, cs as TaskStoppedEventSchema, ct as TaskTodo, cu as TaskTodoSchema, cv as UnarchiveTaskRequest, cw as UnarchiveTaskRequestSchema, cx as UnarchiveTaskResponse, cy as UnarchiveTaskResponseSchema, cz as UpdateAgentInfoEventData, cA as UpdateAgentInfoEventSchema, cB as UpdateTaskAgentSessionIdEventData, cC as UpdateTaskAgentSessionIdEventSchema, cD as UpdateTaskTitleRequest, cE as UpdateTaskTitleRequestSchema, cF as UpdateTaskTitleResponse, cG as UpdateTaskTitleResponseSchema, cH as ValidationResult, cI as WorkerAliveEventData, cJ as WorkerAliveEventSchema, cK as WorkerExitEventData, cL as WorkerExitSchema, cM as WorkerInitializedEventData, cN as WorkerInitializedSchema, cO as WorkerInitializingEventData, cP as WorkerInitializingSchema, cQ as WorkerReadyEventData, cR as WorkerReadySchema, cS as WorkerRunningEventData, cT as WorkerRunningSchema, cU as WorkerStatusRequestEventData, cV as WorkerStatusRequestSchema, cW as WorkerStatusValue, cX as WorkerStatusValueSchema, cY as WorkerTaskEvent, cZ as WorkspaceFileRequestEventData, c_ as WorkspaceFileRequestSchema, c$ as WorkspaceFileResponseEventData, d0 as WorkspaceFileResponseSchema, d1 as baseTaskSchema, d2 as cancelTaskRequestSchema, d3 as cancelTaskSchema, d4 as createEventId, d5 as createMergeRequestSchema, d6 as createTaskSchema, d7 as getAgentContext, d8 as isAskUserMessage, d9 as isAskUserResponseMessage, da as isCompanionHeartbeatMessage, db as isCompanionReminderMessage, dc as isSDKMessage, dd as isSDKUserMessage, de as isSubTaskAskUserMessage, df as permissionResponseRequestSchema, dg as resumeTaskRequestSchema, dh as resumeTaskSchema, di as setAgentContext, dj as startTaskSchema, dk as stopTaskRequestSchema, dl as workerTaskEvents } from './errors-CKYgswVp.cjs';
|
|
4
4
|
import tweetnacl from 'tweetnacl';
|
|
5
5
|
import { SDKMessage } from '@anthropic-ai/claude-agent-sdk';
|
|
6
6
|
|
|
@@ -107,24 +107,22 @@ type UserWithOAuthAccounts = z.infer<typeof UserWithOAuthAccountsSchema>;
|
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
109
|
* Authentication HTTP request/response schemas
|
|
110
|
-
* Includes
|
|
110
|
+
* Includes development auth, GitHub OAuth, machine auth, and cloud join flows
|
|
111
111
|
*/
|
|
112
112
|
|
|
113
113
|
/**
|
|
114
|
-
* POST /v1/auth - Request schema
|
|
114
|
+
* POST /v1/auth/dev-create - Request schema (development only)
|
|
115
115
|
*/
|
|
116
|
-
declare const
|
|
117
|
-
|
|
118
|
-
challenge: z.ZodString;
|
|
119
|
-
signature: z.ZodString;
|
|
116
|
+
declare const DevCreateUserRequestSchema: z.ZodObject<{
|
|
117
|
+
username: z.ZodOptional<z.ZodString>;
|
|
120
118
|
salt: z.ZodOptional<z.ZodString>;
|
|
121
119
|
encryptedSecret: z.ZodOptional<z.ZodString>;
|
|
122
120
|
}, z.core.$strip>;
|
|
123
|
-
type
|
|
121
|
+
type DevCreateUserRequest = z.infer<typeof DevCreateUserRequestSchema>;
|
|
124
122
|
/**
|
|
125
|
-
* POST /v1/auth - Response schema
|
|
123
|
+
* POST /v1/auth/dev-create - Response schema
|
|
126
124
|
*/
|
|
127
|
-
declare const
|
|
125
|
+
declare const DevCreateUserResponseSchema: z.ZodObject<{
|
|
128
126
|
token: z.ZodString;
|
|
129
127
|
user: z.ZodObject<{
|
|
130
128
|
id: z.ZodString;
|
|
@@ -134,7 +132,7 @@ declare const SignatureAuthResponseSchema: z.ZodObject<{
|
|
|
134
132
|
role: z.ZodOptional<z.ZodString>;
|
|
135
133
|
}, z.core.$strip>;
|
|
136
134
|
}, z.core.$strip>;
|
|
137
|
-
type
|
|
135
|
+
type DevCreateUserResponse = z.infer<typeof DevCreateUserResponseSchema>;
|
|
138
136
|
/**
|
|
139
137
|
* GET /v1/auth/me - Response schema
|
|
140
138
|
*/
|
|
@@ -198,7 +196,22 @@ declare const LogoutResponseSchema: z.ZodObject<{
|
|
|
198
196
|
}, z.core.$strip>;
|
|
199
197
|
type LogoutResponse = z.infer<typeof LogoutResponseSchema>;
|
|
200
198
|
/**
|
|
201
|
-
* POST /v1/auth/
|
|
199
|
+
* POST /v1/auth/update-secret - Request schema
|
|
200
|
+
*/
|
|
201
|
+
declare const UpdateSecretRequestSchema: z.ZodObject<{
|
|
202
|
+
salt: z.ZodString;
|
|
203
|
+
encryptedSecret: z.ZodString;
|
|
204
|
+
}, z.core.$strip>;
|
|
205
|
+
type UpdateSecretRequest = z.infer<typeof UpdateSecretRequestSchema>;
|
|
206
|
+
/**
|
|
207
|
+
* POST /v1/auth/update-secret - Response schema
|
|
208
|
+
*/
|
|
209
|
+
declare const UpdateSecretResponseSchema: z.ZodObject<{
|
|
210
|
+
success: z.ZodLiteral<true>;
|
|
211
|
+
}, z.core.$strip>;
|
|
212
|
+
type UpdateSecretResponse = z.infer<typeof UpdateSecretResponseSchema>;
|
|
213
|
+
/**
|
|
214
|
+
* POST /v1/auth/reset-secret - Request schema (destructive)
|
|
202
215
|
*/
|
|
203
216
|
declare const ResetSecretRequestSchema: z.ZodObject<{
|
|
204
217
|
salt: z.ZodString;
|
|
@@ -206,7 +219,7 @@ declare const ResetSecretRequestSchema: z.ZodObject<{
|
|
|
206
219
|
}, z.core.$strip>;
|
|
207
220
|
type ResetSecretRequest = z.infer<typeof ResetSecretRequestSchema>;
|
|
208
221
|
/**
|
|
209
|
-
* POST /v1/auth/reset-secret - Response schema
|
|
222
|
+
* POST /v1/auth/reset-secret - Response schema (destructive)
|
|
210
223
|
*/
|
|
211
224
|
declare const ResetSecretResponseSchema: z.ZodObject<{
|
|
212
225
|
deleted: z.ZodObject<{
|
|
@@ -221,9 +234,6 @@ type ResetSecretResponse = z.infer<typeof ResetSecretResponseSchema>;
|
|
|
221
234
|
*/
|
|
222
235
|
declare const OAuthLoginQuerySchema: z.ZodObject<{
|
|
223
236
|
redirect: z.ZodOptional<z.ZodString>;
|
|
224
|
-
signature: z.ZodString;
|
|
225
|
-
challenge: z.ZodString;
|
|
226
|
-
signatureProof: z.ZodString;
|
|
227
237
|
}, z.core.$strip>;
|
|
228
238
|
type OAuthLoginQuery = z.infer<typeof OAuthLoginQuerySchema>;
|
|
229
239
|
/**
|
|
@@ -720,9 +730,9 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
720
730
|
pullRequestNumber: z.ZodNullable<z.ZodNumber>;
|
|
721
731
|
pullRequestUrl: z.ZodNullable<z.ZodString>;
|
|
722
732
|
pullRequestState: z.ZodNullable<z.ZodEnum<{
|
|
723
|
-
open: "open";
|
|
724
|
-
closed: "closed";
|
|
725
733
|
merged: "merged";
|
|
734
|
+
closed: "closed";
|
|
735
|
+
open: "open";
|
|
726
736
|
}>>;
|
|
727
737
|
pullRequestStateChangedAt: z.ZodNullable<z.ZodString>;
|
|
728
738
|
gitStats: z.ZodNullable<z.ZodObject<{
|
|
@@ -891,6 +901,7 @@ declare const AgentSchema: z.ZodObject<{
|
|
|
891
901
|
developerName: z.ZodString;
|
|
892
902
|
developerEmail: z.ZodNullable<z.ZodString>;
|
|
893
903
|
gitRepoId: z.ZodNullable<z.ZodString>;
|
|
904
|
+
repoSubDir: z.ZodNullable<z.ZodString>;
|
|
894
905
|
supportLocal: z.ZodBoolean;
|
|
895
906
|
enable: z.ZodBoolean;
|
|
896
907
|
config: z.ZodNullable<z.ZodObject<{
|
|
@@ -944,6 +955,7 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
|
|
|
944
955
|
developerName: z.ZodString;
|
|
945
956
|
developerEmail: z.ZodNullable<z.ZodString>;
|
|
946
957
|
gitRepoId: z.ZodNullable<z.ZodString>;
|
|
958
|
+
repoSubDir: z.ZodNullable<z.ZodString>;
|
|
947
959
|
supportLocal: z.ZodBoolean;
|
|
948
960
|
enable: z.ZodBoolean;
|
|
949
961
|
config: z.ZodNullable<z.ZodObject<{
|
|
@@ -997,6 +1009,7 @@ declare const GetAgentResponseSchema: z.ZodObject<{
|
|
|
997
1009
|
developerName: z.ZodString;
|
|
998
1010
|
developerEmail: z.ZodNullable<z.ZodString>;
|
|
999
1011
|
gitRepoId: z.ZodNullable<z.ZodString>;
|
|
1012
|
+
repoSubDir: z.ZodNullable<z.ZodString>;
|
|
1000
1013
|
supportLocal: z.ZodBoolean;
|
|
1001
1014
|
enable: z.ZodBoolean;
|
|
1002
1015
|
config: z.ZodNullable<z.ZodObject<{
|
|
@@ -1044,6 +1057,7 @@ declare const CreateAgentRequestSchema: z.ZodObject<{
|
|
|
1044
1057
|
guildMsg: z.ZodDefault<z.ZodString>;
|
|
1045
1058
|
placeholderMsg: z.ZodDefault<z.ZodString>;
|
|
1046
1059
|
gitRepoId: z.ZodOptional<z.ZodString>;
|
|
1060
|
+
repoSubDir: z.ZodOptional<z.ZodString>;
|
|
1047
1061
|
supportLocal: z.ZodDefault<z.ZodBoolean>;
|
|
1048
1062
|
config: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1049
1063
|
displayConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -1092,6 +1106,7 @@ declare const CreateAgentResponseSchema: z.ZodObject<{
|
|
|
1092
1106
|
developerName: z.ZodString;
|
|
1093
1107
|
developerEmail: z.ZodNullable<z.ZodString>;
|
|
1094
1108
|
gitRepoId: z.ZodNullable<z.ZodString>;
|
|
1109
|
+
repoSubDir: z.ZodNullable<z.ZodString>;
|
|
1095
1110
|
supportLocal: z.ZodBoolean;
|
|
1096
1111
|
enable: z.ZodBoolean;
|
|
1097
1112
|
config: z.ZodNullable<z.ZodObject<{
|
|
@@ -1140,6 +1155,7 @@ declare const UpdateAgentRequestSchema: z.ZodObject<{
|
|
|
1140
1155
|
guildMsg: z.ZodOptional<z.ZodString>;
|
|
1141
1156
|
placeholderMsg: z.ZodOptional<z.ZodString>;
|
|
1142
1157
|
gitRepoId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1158
|
+
repoSubDir: z.ZodOptional<z.ZodString>;
|
|
1143
1159
|
supportLocal: z.ZodOptional<z.ZodBoolean>;
|
|
1144
1160
|
config: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1145
1161
|
displayConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -1187,6 +1203,7 @@ declare const UpdateAgentResponseSchema: z.ZodObject<{
|
|
|
1187
1203
|
developerName: z.ZodString;
|
|
1188
1204
|
developerEmail: z.ZodNullable<z.ZodString>;
|
|
1189
1205
|
gitRepoId: z.ZodNullable<z.ZodString>;
|
|
1206
|
+
repoSubDir: z.ZodNullable<z.ZodString>;
|
|
1190
1207
|
supportLocal: z.ZodBoolean;
|
|
1191
1208
|
enable: z.ZodBoolean;
|
|
1192
1209
|
config: z.ZodNullable<z.ZodObject<{
|
|
@@ -1322,8 +1339,8 @@ type CreateDraftAgentRequest = z.infer<typeof CreateDraftAgentRequestSchema>;
|
|
|
1322
1339
|
declare const SetEnvironmentVariablesRequestSchema: z.ZodObject<{
|
|
1323
1340
|
ownerType: z.ZodEnum<{
|
|
1324
1341
|
agent: "agent";
|
|
1325
|
-
machine: "machine";
|
|
1326
1342
|
"draft-agent": "draft-agent";
|
|
1343
|
+
machine: "machine";
|
|
1327
1344
|
cloud: "cloud";
|
|
1328
1345
|
}>;
|
|
1329
1346
|
ownerId: z.ZodString;
|
|
@@ -1529,6 +1546,7 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
1529
1546
|
developerName: z.ZodString;
|
|
1530
1547
|
developerEmail: z.ZodNullable<z.ZodString>;
|
|
1531
1548
|
gitRepoId: z.ZodNullable<z.ZodString>;
|
|
1549
|
+
repoSubDir: z.ZodNullable<z.ZodString>;
|
|
1532
1550
|
supportLocal: z.ZodBoolean;
|
|
1533
1551
|
enable: z.ZodBoolean;
|
|
1534
1552
|
config: z.ZodNullable<z.ZodObject<{
|
|
@@ -2023,6 +2041,63 @@ declare const ListIssuesResponseSchema: z.ZodObject<{
|
|
|
2023
2041
|
total_count: z.ZodNumber;
|
|
2024
2042
|
}, z.core.$strip>;
|
|
2025
2043
|
type ListIssuesResponse = z.infer<typeof ListIssuesResponseSchema>;
|
|
2044
|
+
declare const RepositoryReferenceKindSchema: z.ZodEnum<{
|
|
2045
|
+
issue: "issue";
|
|
2046
|
+
pull_request: "pull_request";
|
|
2047
|
+
merge_request: "merge_request";
|
|
2048
|
+
}>;
|
|
2049
|
+
type RepositoryReferenceKind = z.infer<typeof RepositoryReferenceKindSchema>;
|
|
2050
|
+
declare const RepositoryReferenceListItemSchema: z.ZodObject<{
|
|
2051
|
+
kind: z.ZodEnum<{
|
|
2052
|
+
issue: "issue";
|
|
2053
|
+
pull_request: "pull_request";
|
|
2054
|
+
merge_request: "merge_request";
|
|
2055
|
+
}>;
|
|
2056
|
+
number: z.ZodNumber;
|
|
2057
|
+
title: z.ZodString;
|
|
2058
|
+
html_url: z.ZodString;
|
|
2059
|
+
}, z.core.$strip>;
|
|
2060
|
+
type RepositoryReferenceListItem = z.infer<typeof RepositoryReferenceListItemSchema>;
|
|
2061
|
+
declare const RepositoryReferenceSchema: z.ZodObject<{
|
|
2062
|
+
kind: z.ZodEnum<{
|
|
2063
|
+
issue: "issue";
|
|
2064
|
+
pull_request: "pull_request";
|
|
2065
|
+
merge_request: "merge_request";
|
|
2066
|
+
}>;
|
|
2067
|
+
number: z.ZodNumber;
|
|
2068
|
+
title: z.ZodString;
|
|
2069
|
+
body: z.ZodNullable<z.ZodString>;
|
|
2070
|
+
html_url: z.ZodString;
|
|
2071
|
+
head_branch: z.ZodOptional<z.ZodString>;
|
|
2072
|
+
base_branch: z.ZodOptional<z.ZodString>;
|
|
2073
|
+
}, z.core.$strip>;
|
|
2074
|
+
type RepositoryReference = z.infer<typeof RepositoryReferenceSchema>;
|
|
2075
|
+
declare const ListReferencesQuerySchema: z.ZodObject<{
|
|
2076
|
+
q: z.ZodOptional<z.ZodString>;
|
|
2077
|
+
}, z.core.$strip>;
|
|
2078
|
+
type ListReferencesQuery = z.infer<typeof ListReferencesQuerySchema>;
|
|
2079
|
+
declare const GetReferenceQuerySchema: z.ZodObject<{
|
|
2080
|
+
kind: z.ZodEnum<{
|
|
2081
|
+
issue: "issue";
|
|
2082
|
+
pull_request: "pull_request";
|
|
2083
|
+
merge_request: "merge_request";
|
|
2084
|
+
}>;
|
|
2085
|
+
}, z.core.$strip>;
|
|
2086
|
+
type GetReferenceQuery = z.infer<typeof GetReferenceQuerySchema>;
|
|
2087
|
+
declare const ListReferencesResponseSchema: z.ZodObject<{
|
|
2088
|
+
references: z.ZodArray<z.ZodObject<{
|
|
2089
|
+
kind: z.ZodEnum<{
|
|
2090
|
+
issue: "issue";
|
|
2091
|
+
pull_request: "pull_request";
|
|
2092
|
+
merge_request: "merge_request";
|
|
2093
|
+
}>;
|
|
2094
|
+
number: z.ZodNumber;
|
|
2095
|
+
title: z.ZodString;
|
|
2096
|
+
html_url: z.ZodString;
|
|
2097
|
+
}, z.core.$strip>>;
|
|
2098
|
+
total_count: z.ZodNumber;
|
|
2099
|
+
}, z.core.$strip>;
|
|
2100
|
+
type ListReferencesResponse = z.infer<typeof ListReferencesResponseSchema>;
|
|
2026
2101
|
|
|
2027
2102
|
/**
|
|
2028
2103
|
* Console/Admin HTTP request/response schemas
|
|
@@ -3151,5 +3226,14 @@ declare const RELEVANT_DEPENDENCIES: readonly ["react", "react-dom", "vue", "vit
|
|
|
3151
3226
|
*/
|
|
3152
3227
|
declare function detectPreview(fs: FileSystemAdapter): Promise<PreviewMetadata | null>;
|
|
3153
3228
|
|
|
3154
|
-
|
|
3155
|
-
|
|
3229
|
+
/**
|
|
3230
|
+
* Decode git-quoted path strings.
|
|
3231
|
+
* Example: "\"\\344\\270\\255\\346\\226\\207.txt\"" -> "\u4e2d\u6587.txt"
|
|
3232
|
+
*
|
|
3233
|
+
* Git may emit quoted + octal-escaped paths in diff/stat outputs when
|
|
3234
|
+
* `core.quotePath` is enabled (default).
|
|
3235
|
+
*/
|
|
3236
|
+
declare function decodeGitPath(rawPath: string): string;
|
|
3237
|
+
|
|
3238
|
+
export { AddChatMemberRequestSchema, AddChatMemberResponseSchema, AgentCustomConfigSchema, AgentPermissionsSchema, AgentSchema, AgentTypeSchema, ApiErrorSchema, ApprovalStatusResponseSchema, BillingStatsResponseSchema, BranchSchema, CONFIG_FILES, CancelSubscriptionResponseSchema, ChargeTransactionSchema, ChatMemberInputSchema, ChatMemberSchema, ChatSchema, ChatTypeSchema, ChatWithMembersSchema, CloudJoinApprovalRequestSchema, CloudJoinRequestSchema, CloudJoinResultQuerySchema, CloudJoinStatusQuerySchema, CloudMachineSchema, CloudSchema, CompanionEnsureResponseSchema, CompanionWorkspaceFileSchema, ConfirmUploadRequestSchema, ConfirmUploadResponseSchema, ConsumeTransactionSchema, ContactCandidateSchema, ContactSchema, ContactTargetTypeSchema, CreateAgentRequestSchema, CreateAgentResponseSchema, CreateChatRequestSchema, CreateChatResponseSchema, CreateCheckoutRequestSchema, CreateCheckoutResponseSchema, CreateCloudRequestSchema, CreateCloudResponseSchema, CreateContactRequestSchema, CreateContactResponseSchema, CreateDraftAgentRequestSchema, CreateOAuthServerRequestSchema, CreateOAuthServerResponseSchema, CreatePortalRequestSchema, CreatePortalResponseSchema, CreateSubscriptionPlanRequestSchema, CreditsPackageSchema, DateSchema, DeleteAgentResponseSchema, DeleteContactResponseSchema, DeleteOAuthServerResponseSchema, DevCreateUserRequestSchema, DevCreateUserResponseSchema, DisplayConfigKeysSchema, DisplayConfigSchema, DraftAgentConfigSchema, DraftAgentSchema, ENTRY_FILE_PATTERNS, EnvironmentVariableSchema, FileItemSchema, FileStatsSchema, FileVisibilitySchema, GetAgentResponseSchema, GetChatResponseSchema, GetEnvironmentVariablesResponseSchema, GetGitServerResponseSchema, GetGitUrlQuerySchema, GetGitUrlResponseSchema, GetInstallUrlResponseSchema, GetOAuthServerResponseSchema, GetReferenceQuerySchema, GetRepositoryResponseSchema, GetSubscriptionResponseSchema, GetSubscriptionTiersResponseSchema, GetUploadUrlsRequestSchema, GetUploadUrlsResponseSchema, GetUserAgentsResponseSchema, GitHubIssueListItemSchema, GitHubIssueSchema, GitServerSchema, IGNORED_DIRECTORIES, IdSchema, ListAgentsResponseSchema, ListBranchesResponseSchema, ListChatMembersResponseSchema, ListChatTasksResponseSchema, ListChatsQuerySchema, ListChatsResponseSchema, ListContactsResponseSchema, ListFilesQuerySchema, ListFilesResponseSchema, ListGitServersResponseSchema, ListIssuesQuerySchema, ListIssuesResponseSchema, ListMachinesResponseSchema, ListOAuthServersPublicResponseSchema, ListOAuthServersQuerySchema, ListOAuthServersResponseSchema, ListPackagesQuerySchema, ListPackagesResponseSchema, ListReferencesQuerySchema, ListReferencesResponseSchema, ListRepositoriesResponseSchema, ListSubscriptionPlansResponseSchema, ListTransactionsQuerySchema, ListTransactionsResponseSchema, LocalMachineSchema, LogoutResponseSchema, MachineApprovalRequestSchema, MachineApprovalStatusQuerySchema, MachineAuthAuthorizedResponseSchema, MachineAuthRequestSchema, MachineAuthResultQuerySchema, OAuthAccountInfoSchema, OAuthBindCallbackResponseSchema, OAuthBindQuerySchema, OAuthBindResponseSchema, OAuthCallbackQuerySchema, OAuthCallbackResponseSchema, OAuthLoginQuerySchema, OAuthServerPublicSchema, OAuthServerSchema, OAuthUnbindResponseSchema, PaginatedResponseSchema, PreviewMetadata, PublishDraftAgentRequestSchema, PublishDraftAgentResponseSchema, RELEVANT_DEPENDENCIES, RTC_CHUNK_HEADER_SIZE, RechargeResponseSchema, RegisterCompanionRequestSchema, RegisterCompanionResponseSchema, RemoveChatMemberRequestSchema, RepositoryReferenceKindSchema, RepositoryReferenceListItemSchema, RepositoryReferenceSchema, RepositorySchema, ResetSecretRequestSchema, ResetSecretResponseSchema, RtcChunkFlags, STATIC_FILE_EXTENSIONS, SearchContactCandidatesQuerySchema, SearchContactCandidatesResponseSchema, SenderTypeSchema, SetEnvironmentVariablesRequestSchema, ShareAuthQuerySchema, ShareAuthResponseSchema, SimpleSuccessSchema, StatsQuerySchema, SubscriptionPlanSchema, SubscriptionSchema, SubscriptionTierSchema, SyncCloudMachineResponseSchema, SyncLocalMachineResponseSchema, SyncMachineRequestSchema, TaskSharePermissionsSchema, TaskTransactionsResponseSchema, ToggleOAuthServerRequestSchema, ToggleOAuthServerResponseSchema, TransactionSchema, UpdateAgentRequestSchema, UpdateAgentResponseSchema, UpdateChatContextRequestSchema, UpdateChatContextResponseSchema, UpdateDraftAgentRequestSchema, UpdateDraftAgentResponseSchema, UpdateOAuthServerRequestSchema, UpdateOAuthServerResponseSchema, UpdateSecretRequestSchema, UpdateSecretResponseSchema, UpdateSubscriptionPlanRequestSchema, UpdateSubscriptionRequestSchema, UpdateSubscriptionResponseSchema, UpdateUserProfileRequestSchema, UpdateUserProfileResponseSchema, UploadUrlResultSchema, UserBalanceResponseSchema, UserBasicInfoSchema, UserProfileResponseSchema, UserWithOAuthAccountsSchema, buildRtcChunkFrame, createKeyPair, createKeyPairWithUit8Array, createTaskEncryptionPayload, decodeBase64, decodeGitPath, decodeRtcChunkHeader, decryptAES, decryptFileContent, decryptMachineEncryptionKey, decryptSdkMessage, decryptWithEphemeralKey, detectPreview, encodeBase64, encodeBase64Url, encodeRtcChunkHeader, encryptAES, encryptFileContent, encryptMachineEncryptionKey, encryptSdkMessage, encryptWithEphemeralKey, generateAESKey, generateAESKeyBase64, getRandomBytes, machineAuth, splitRtcChunkFrame, userAuth, workerAuth };
|
|
3239
|
+
export type { AddChatMemberRequest, AddChatMemberResponse, Agent, AgentCustomConfig, AgentPermissions, AgentType, ApiError, ApprovalStatusResponse, AuthPayload, BillingStatsResponse, Branch, CancelSubscriptionResponse, ChargeTransaction, Chat, ChatMember, ChatMemberInput, ChatType, ChatWithMembers, ClientType, Cloud, CloudJoinApprovalRequest, CloudJoinRequest, CloudJoinResultQuery, CloudJoinStatusQuery, CloudMachine, CompanionEnsureResponse, CompanionWorkspaceFile, ConfirmUploadRequest, ConfirmUploadResponse, ConsumeTransaction, Contact, ContactCandidate, ContactTargetType, CreateAgentRequest, CreateAgentResponse, CreateChatRequest, CreateChatResponse, CreateCheckoutRequest, CreateCheckoutResponse, CreateCloudRequest, CreateCloudResponse, CreateContactRequest, CreateContactResponse, CreateDraftAgentRequest, CreateOAuthServerRequest, CreateOAuthServerResponse, CreatePortalRequest, CreatePortalResponse, CreateSubscriptionPlanRequest, CreditsPackage, DeleteAgentResponse, DeleteContactResponse, DeleteOAuthServerResponse, DevCreateUserRequest, DevCreateUserResponse, DisplayConfig, DisplayConfigKeys, DraftAgent, DraftAgentConfig, EnvironmentVariable, FileItem, FileStats, FileSystemAdapter, FileVisibility, GetAgentResponse, GetChatResponse, GetEnvironmentVariablesResponse, GetGitServerResponse, GetGitUrlQuery, GetGitUrlResponse, GetInstallUrlResponse, GetOAuthServerResponse, GetReferenceQuery, GetRepositoryResponse, GetSubscriptionResponse, GetSubscriptionTiersResponse, GetUploadUrlsRequest, GetUploadUrlsResponse, GetUserAgentsResponse, GitHubIssue, GitHubIssueListItem, GitServer, ListAgentsResponse, ListBranchesResponse, ListChatMembersResponse, ListChatTasksResponse, ListChatsQuery, ListChatsResponse, ListContactsResponse, ListFilesQuery, ListFilesResponse, ListGitServersResponse, ListIssuesQuery, ListIssuesResponse, ListMachinesResponse, ListOAuthServersPublicResponse, ListOAuthServersQuery, ListOAuthServersResponse, ListPackagesQuery, ListPackagesResponse, ListReferencesQuery, ListReferencesResponse, ListRepositoriesResponse, ListSubscriptionPlansResponse, ListTransactionsQuery, ListTransactionsResponse, LocalMachine, LogoutResponse, MachineApprovalRequest, MachineApprovalStatusQuery, MachineAuthAuthorizedResponse, MachineAuthRequest, MachineAuthResultQuery, MachineEncryptionKey, OAuthAccountInfo, OAuthBindCallbackResponse, OAuthBindQuery, OAuthBindResponse, OAuthCallbackQuery, OAuthCallbackResponse, OAuthLoginQuery, OAuthServer, OAuthServerPublic, OAuthUnbindResponse, PublishDraftAgentRequest, PublishDraftAgentResponse, RechargeResponse, RegisterCompanionRequest, RegisterCompanionResponse, RemoveChatMemberRequest, Repository, RepositoryReference, RepositoryReferenceKind, RepositoryReferenceListItem, ResetSecretRequest, ResetSecretResponse, RtcChunkFrame, RtcChunkHeader, RtcControlChannel, RtcControlMessage, SearchContactCandidatesQuery, SearchContactCandidatesResponse, SenderType, SetEnvironmentVariablesRequest, ShareAuthQuery, ShareAuthResponse, SimpleSuccess, StatsQuery, Subscription, SubscriptionPlan, SubscriptionTier, SyncCloudMachineResponse, SyncLocalMachineResponse, SyncMachineRequest, TaskEncryptionPayload, TaskSharePermissions, TaskTransactionsResponse, ToggleOAuthServerRequest, ToggleOAuthServerResponse, Transaction, UpdateAgentRequest, UpdateAgentResponse, UpdateChatContextRequest, UpdateChatContextResponse, UpdateDraftAgentRequest, UpdateDraftAgentResponse, UpdateOAuthServerRequest, UpdateOAuthServerResponse, UpdateSecretRequest, UpdateSecretResponse, UpdateSubscriptionPlanRequest, UpdateSubscriptionRequest, UpdateSubscriptionResponse, UpdateUserProfileRequest, UpdateUserProfileResponse, UploadUrlResult, UserBalanceResponse, UserBasicInfo, UserProfileResponse, UserWithOAuthAccounts };
|
package/dist/node.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { aT as LoadAgentOptions, b as AgentConfig, cH as ValidationResult, aD as FrameworkType } from './errors-
|
|
2
|
-
export { c as AgentConfigValidationError, d as AgentContext, e as AgentError, f as AgentLoadError, g as AgentMetadata, h as AgentMetadataSchema, i as AgentNotFoundError, j as AgentrixContext, X as ClaudeAgentConfig, Y as ClaudeConfigSchema, au as FRAMEWORK_TYPES, aC as FrameworkNotSupportedError, aG as HookFactory, b3 as MissingAgentFileError, bn as RepositoryInitHookInput, d7 as getAgentContext, di as setAgentContext } from './errors-
|
|
1
|
+
import { aT as LoadAgentOptions, b as AgentConfig, cH as ValidationResult, aD as FrameworkType } from './errors-CKYgswVp.cjs';
|
|
2
|
+
export { c as AgentConfigValidationError, d as AgentContext, e as AgentError, f as AgentLoadError, g as AgentMetadata, h as AgentMetadataSchema, i as AgentNotFoundError, j as AgentrixContext, X as ClaudeAgentConfig, Y as ClaudeConfigSchema, au as FRAMEWORK_TYPES, aC as FrameworkNotSupportedError, aG as HookFactory, b3 as MissingAgentFileError, bn as RepositoryInitHookInput, d7 as getAgentContext, di as setAgentContext } from './errors-CKYgswVp.cjs';
|
|
3
3
|
import '@anthropic-ai/claude-agent-sdk';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|