@agentrix/shared 2.4.0 → 2.4.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 CHANGED
@@ -67,19 +67,14 @@ const UserWithOAuthAccountsSchema = UserBasicInfoSchema.extend({
67
67
  oauthAccounts: zod.z.array(OAuthAccountInfoSchema).optional()
68
68
  });
69
69
 
70
- const SignatureAuthRequestSchema = zod.z.object({
71
- publicKey: zod.z.string(),
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 SignatureAuthResponseSchema = zod.z.object({
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(),
@@ -1016,6 +1014,32 @@ const ListIssuesResponseSchema = zod.z.object({
1016
1014
  issues: zod.z.array(GitHubIssueListItemSchema),
1017
1015
  total_count: zod.z.number()
1018
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
+ });
1019
1043
 
1020
1044
  const CreateCloudRequestSchema = zod.z.discriminatedUnion("type", [
1021
1045
  zod.z.object({
@@ -2676,6 +2700,67 @@ function getFileExtension(filePath) {
2676
2700
  return filePath.substring(lastDot).toLowerCase();
2677
2701
  }
2678
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
+
2679
2764
  exports.AgentConfigValidationError = errors.AgentConfigValidationError;
2680
2765
  exports.AgentError = errors.AgentError;
2681
2766
  exports.AgentLoadError = errors.AgentLoadError;
@@ -2771,6 +2856,8 @@ exports.DeleteContactResponseSchema = DeleteContactResponseSchema;
2771
2856
  exports.DeleteOAuthServerResponseSchema = DeleteOAuthServerResponseSchema;
2772
2857
  exports.DeployAgentCompleteEventSchema = DeployAgentCompleteEventSchema;
2773
2858
  exports.DeployAgentEventSchema = DeployAgentEventSchema;
2859
+ exports.DevCreateUserRequestSchema = DevCreateUserRequestSchema;
2860
+ exports.DevCreateUserResponseSchema = DevCreateUserResponseSchema;
2774
2861
  exports.DisplayConfigKeysSchema = DisplayConfigKeysSchema;
2775
2862
  exports.DisplayConfigSchema = DisplayConfigSchema;
2776
2863
  exports.DraftAgentConfigSchema = DraftAgentConfigSchema;
@@ -2793,6 +2880,7 @@ exports.GetGitUrlQuerySchema = GetGitUrlQuerySchema;
2793
2880
  exports.GetGitUrlResponseSchema = GetGitUrlResponseSchema;
2794
2881
  exports.GetInstallUrlResponseSchema = GetInstallUrlResponseSchema;
2795
2882
  exports.GetOAuthServerResponseSchema = GetOAuthServerResponseSchema;
2883
+ exports.GetReferenceQuerySchema = GetReferenceQuerySchema;
2796
2884
  exports.GetRepositoryResponseSchema = GetRepositoryResponseSchema;
2797
2885
  exports.GetSubscriptionResponseSchema = GetSubscriptionResponseSchema;
2798
2886
  exports.GetSubscriptionTiersResponseSchema = GetSubscriptionTiersResponseSchema;
@@ -2825,6 +2913,8 @@ exports.ListPackagesQuerySchema = ListPackagesQuerySchema;
2825
2913
  exports.ListPackagesResponseSchema = ListPackagesResponseSchema;
2826
2914
  exports.ListRecentTasksRequestSchema = ListRecentTasksRequestSchema;
2827
2915
  exports.ListRecentTasksResponseSchema = ListRecentTasksResponseSchema;
2916
+ exports.ListReferencesQuerySchema = ListReferencesQuerySchema;
2917
+ exports.ListReferencesResponseSchema = ListReferencesResponseSchema;
2828
2918
  exports.ListRepositoriesResponseSchema = ListRepositoriesResponseSchema;
2829
2919
  exports.ListSubTasksRequestSchema = ListSubTasksRequestSchema;
2830
2920
  exports.ListSubTasksResponseSchema = ListSubTasksResponseSchema;
@@ -2873,6 +2963,9 @@ exports.RechargeResponseSchema = RechargeResponseSchema;
2873
2963
  exports.RegisterCompanionRequestSchema = RegisterCompanionRequestSchema;
2874
2964
  exports.RegisterCompanionResponseSchema = RegisterCompanionResponseSchema;
2875
2965
  exports.RemoveChatMemberRequestSchema = RemoveChatMemberRequestSchema;
2966
+ exports.RepositoryReferenceKindSchema = RepositoryReferenceKindSchema;
2967
+ exports.RepositoryReferenceListItemSchema = RepositoryReferenceListItemSchema;
2968
+ exports.RepositoryReferenceSchema = RepositoryReferenceSchema;
2876
2969
  exports.RepositorySchema = RepositorySchema;
2877
2970
  exports.ResetSecretRequestSchema = ResetSecretRequestSchema;
2878
2971
  exports.ResetSecretResponseSchema = ResetSecretResponseSchema;
@@ -2899,8 +2992,6 @@ exports.ShowModalEventDataSchema = ShowModalEventDataSchema;
2899
2992
  exports.ShowModalRequestSchema = ShowModalRequestSchema;
2900
2993
  exports.ShowModalResponseSchema = ShowModalResponseSchema;
2901
2994
  exports.ShutdownMachineSchema = ShutdownMachineSchema;
2902
- exports.SignatureAuthRequestSchema = SignatureAuthRequestSchema;
2903
- exports.SignatureAuthResponseSchema = SignatureAuthResponseSchema;
2904
2995
  exports.SimpleSuccessSchema = SimpleSuccessSchema;
2905
2996
  exports.StartTaskRequestSchema = StartTaskRequestSchema;
2906
2997
  exports.StartTaskResponseSchema = StartTaskResponseSchema;
@@ -2942,6 +3033,8 @@ exports.UpdateDraftAgentRequestSchema = UpdateDraftAgentRequestSchema;
2942
3033
  exports.UpdateDraftAgentResponseSchema = UpdateDraftAgentResponseSchema;
2943
3034
  exports.UpdateOAuthServerRequestSchema = UpdateOAuthServerRequestSchema;
2944
3035
  exports.UpdateOAuthServerResponseSchema = UpdateOAuthServerResponseSchema;
3036
+ exports.UpdateSecretRequestSchema = UpdateSecretRequestSchema;
3037
+ exports.UpdateSecretResponseSchema = UpdateSecretResponseSchema;
2945
3038
  exports.UpdateSubscriptionPlanRequestSchema = UpdateSubscriptionPlanRequestSchema;
2946
3039
  exports.UpdateSubscriptionRequestSchema = UpdateSubscriptionRequestSchema;
2947
3040
  exports.UpdateSubscriptionResponseSchema = UpdateSubscriptionResponseSchema;
@@ -2976,6 +3069,7 @@ exports.createMergeRequestSchema = createMergeRequestSchema;
2976
3069
  exports.createTaskEncryptionPayload = createTaskEncryptionPayload;
2977
3070
  exports.createTaskSchema = createTaskSchema;
2978
3071
  exports.decodeBase64 = decodeBase64;
3072
+ exports.decodeGitPath = decodeGitPath;
2979
3073
  exports.decodeRtcChunkHeader = decodeRtcChunkHeader;
2980
3074
  exports.decryptAES = decryptAES;
2981
3075
  exports.decryptFileContent = decryptFileContent;
package/dist/index.d.cts CHANGED
@@ -107,24 +107,22 @@ type UserWithOAuthAccounts = z.infer<typeof UserWithOAuthAccountsSchema>;
107
107
 
108
108
  /**
109
109
  * Authentication HTTP request/response schemas
110
- * Includes signature auth, GitHub OAuth, machine auth, and cloud join flows
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 SignatureAuthRequestSchema: z.ZodObject<{
117
- publicKey: z.ZodString;
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 SignatureAuthRequest = z.infer<typeof SignatureAuthRequestSchema>;
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 SignatureAuthResponseSchema: z.ZodObject<{
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 SignatureAuthResponse = z.infer<typeof SignatureAuthResponseSchema>;
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/reset-secret - Request schema
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
  /**
@@ -2031,6 +2041,63 @@ declare const ListIssuesResponseSchema: z.ZodObject<{
2031
2041
  total_count: z.ZodNumber;
2032
2042
  }, z.core.$strip>;
2033
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>;
2034
2101
 
2035
2102
  /**
2036
2103
  * Console/Admin HTTP request/response schemas
@@ -2735,7 +2802,7 @@ declare const GetSubscriptionTiersResponseSchema: z.ZodObject<{
2735
2802
  }, z.core.$strip>;
2736
2803
  type GetSubscriptionTiersResponse = z.infer<typeof GetSubscriptionTiersResponseSchema>;
2737
2804
  /**
2738
- * POST /v1/console/subscription-plans - Request schema
2805
+ * POST /console/subscription-plans - Request schema
2739
2806
  */
2740
2807
  declare const CreateSubscriptionPlanRequestSchema: z.ZodObject<{
2741
2808
  name: z.ZodString;
@@ -2752,7 +2819,7 @@ declare const CreateSubscriptionPlanRequestSchema: z.ZodObject<{
2752
2819
  }, z.core.$strip>;
2753
2820
  type CreateSubscriptionPlanRequest = z.infer<typeof CreateSubscriptionPlanRequestSchema>;
2754
2821
  /**
2755
- * PATCH /v1/console/subscription-plans/:id - Request schema
2822
+ * PATCH /console/subscription-plans/:id - Request schema
2756
2823
  */
2757
2824
  declare const UpdateSubscriptionPlanRequestSchema: z.ZodObject<{
2758
2825
  name: z.ZodOptional<z.ZodString>;
@@ -2762,7 +2829,7 @@ declare const UpdateSubscriptionPlanRequestSchema: z.ZodObject<{
2762
2829
  }, z.core.$strip>;
2763
2830
  type UpdateSubscriptionPlanRequest = z.infer<typeof UpdateSubscriptionPlanRequestSchema>;
2764
2831
  /**
2765
- * GET /v1/console/subscription-plans - Response schema
2832
+ * GET /console/subscription-plans - Response schema
2766
2833
  */
2767
2834
  declare const ListSubscriptionPlansResponseSchema: z.ZodObject<{
2768
2835
  plans: z.ZodArray<z.ZodObject<{
@@ -3159,5 +3226,14 @@ declare const RELEVANT_DEPENDENCIES: readonly ["react", "react-dom", "vue", "vit
3159
3226
  */
3160
3227
  declare function detectPreview(fs: FileSystemAdapter): Promise<PreviewMetadata | null>;
3161
3228
 
3162
- 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, DisplayConfigKeysSchema, DisplayConfigSchema, DraftAgentConfigSchema, DraftAgentSchema, ENTRY_FILE_PATTERNS, EnvironmentVariableSchema, FileItemSchema, FileStatsSchema, FileVisibilitySchema, GetAgentResponseSchema, GetChatResponseSchema, GetEnvironmentVariablesResponseSchema, GetGitServerResponseSchema, GetGitUrlQuerySchema, GetGitUrlResponseSchema, GetInstallUrlResponseSchema, GetOAuthServerResponseSchema, 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, 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, RepositorySchema, ResetSecretRequestSchema, ResetSecretResponseSchema, RtcChunkFlags, STATIC_FILE_EXTENSIONS, SearchContactCandidatesQuerySchema, SearchContactCandidatesResponseSchema, SenderTypeSchema, SetEnvironmentVariablesRequestSchema, ShareAuthQuerySchema, ShareAuthResponseSchema, SignatureAuthRequestSchema, SignatureAuthResponseSchema, SimpleSuccessSchema, StatsQuerySchema, SubscriptionPlanSchema, SubscriptionSchema, SubscriptionTierSchema, SyncCloudMachineResponseSchema, SyncLocalMachineResponseSchema, SyncMachineRequestSchema, TaskSharePermissionsSchema, TaskTransactionsResponseSchema, ToggleOAuthServerRequestSchema, ToggleOAuthServerResponseSchema, TransactionSchema, UpdateAgentRequestSchema, UpdateAgentResponseSchema, UpdateChatContextRequestSchema, UpdateChatContextResponseSchema, UpdateDraftAgentRequestSchema, UpdateDraftAgentResponseSchema, UpdateOAuthServerRequestSchema, UpdateOAuthServerResponseSchema, UpdateSubscriptionPlanRequestSchema, UpdateSubscriptionRequestSchema, UpdateSubscriptionResponseSchema, UpdateUserProfileRequestSchema, UpdateUserProfileResponseSchema, UploadUrlResultSchema, UserBalanceResponseSchema, UserBasicInfoSchema, UserProfileResponseSchema, UserWithOAuthAccountsSchema, buildRtcChunkFrame, createKeyPair, createKeyPairWithUit8Array, createTaskEncryptionPayload, decodeBase64, decodeRtcChunkHeader, decryptAES, decryptFileContent, decryptMachineEncryptionKey, decryptSdkMessage, decryptWithEphemeralKey, detectPreview, encodeBase64, encodeBase64Url, encodeRtcChunkHeader, encryptAES, encryptFileContent, encryptMachineEncryptionKey, encryptSdkMessage, encryptWithEphemeralKey, generateAESKey, generateAESKeyBase64, getRandomBytes, machineAuth, splitRtcChunkFrame, userAuth, workerAuth };
3163
- 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, DisplayConfig, DisplayConfigKeys, DraftAgent, DraftAgentConfig, EnvironmentVariable, FileItem, FileStats, FileSystemAdapter, FileVisibility, GetAgentResponse, GetChatResponse, GetEnvironmentVariablesResponse, GetGitServerResponse, GetGitUrlQuery, GetGitUrlResponse, GetInstallUrlResponse, GetOAuthServerResponse, 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, 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, ResetSecretRequest, ResetSecretResponse, RtcChunkFrame, RtcChunkHeader, RtcControlChannel, RtcControlMessage, SearchContactCandidatesQuery, SearchContactCandidatesResponse, SenderType, SetEnvironmentVariablesRequest, ShareAuthQuery, ShareAuthResponse, SignatureAuthRequest, SignatureAuthResponse, SimpleSuccess, StatsQuery, Subscription, SubscriptionPlan, SubscriptionTier, SyncCloudMachineResponse, SyncLocalMachineResponse, SyncMachineRequest, TaskEncryptionPayload, TaskSharePermissions, TaskTransactionsResponse, ToggleOAuthServerRequest, ToggleOAuthServerResponse, Transaction, UpdateAgentRequest, UpdateAgentResponse, UpdateChatContextRequest, UpdateChatContextResponse, UpdateDraftAgentRequest, UpdateDraftAgentResponse, UpdateOAuthServerRequest, UpdateOAuthServerResponse, UpdateSubscriptionPlanRequest, UpdateSubscriptionRequest, UpdateSubscriptionResponse, UpdateUserProfileRequest, UpdateUserProfileResponse, UploadUrlResult, UserBalanceResponse, UserBasicInfo, UserProfileResponse, UserWithOAuthAccounts };
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentrix/shared",
3
- "version": "2.4.0",
3
+ "version": "2.4.3",
4
4
  "description": "Shared types and schemas for Agentrix projects",
5
5
  "main": "./dist/index.cjs",
6
6
  "types": "./dist/index.d.cts",