@agentrix/shared 2.4.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/index.cjs +111 -17
- package/dist/index.d.cts +97 -21
- package/dist/node.d.cts +2 -2
- package/package.json +1 -1
- package/dist/{errors-CTYWy6fh.d.cts → errors-CKYgswVp.d.cts} +20 -20
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(),
|
|
@@ -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
|
@@ -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<{
|
|
@@ -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
|
|
@@ -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
|
-
|
|
3163
|
-
|
|
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
|
|
package/package.json
CHANGED
|
@@ -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<{
|
|
@@ -2033,9 +2033,9 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
2033
2033
|
pullRequestNumber: z.ZodNullable<z.ZodNumber>;
|
|
2034
2034
|
pullRequestUrl: z.ZodNullable<z.ZodString>;
|
|
2035
2035
|
pullRequestState: z.ZodNullable<z.ZodEnum<{
|
|
2036
|
-
open: "open";
|
|
2037
|
-
closed: "closed";
|
|
2038
2036
|
merged: "merged";
|
|
2037
|
+
closed: "closed";
|
|
2038
|
+
open: "open";
|
|
2039
2039
|
}>>;
|
|
2040
2040
|
pullRequestStateChangedAt: z.ZodNullable<z.ZodString>;
|
|
2041
2041
|
gitStats: z.ZodNullable<z.ZodObject<{
|