@agentrix/shared 2.23.0 → 2.26.0

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.
@@ -47,6 +47,11 @@ declare const TaskUsageSummarySchema: z.ZodObject<{
47
47
  models: z.ZodArray<z.ZodString>;
48
48
  }, z.core.$strip>;
49
49
  type TaskUsageSummary = z.infer<typeof TaskUsageSummarySchema>;
50
+ declare const TaskPreviewUrlSchema: z.ZodString;
51
+ declare const UpdateTaskPreviewUrlRequestSchema: z.ZodObject<{
52
+ previewUrl: z.ZodString;
53
+ }, z.core.$strip>;
54
+ type UpdateTaskPreviewUrlRequest = z.infer<typeof UpdateTaskPreviewUrlRequestSchema>;
50
55
  /**
51
56
  * POST /v1/tasks/start - Request schema
52
57
  */
@@ -202,6 +207,7 @@ declare const TaskItemSchema: z.ZodObject<{
202
207
  directory: "directory";
203
208
  "git-server": "git-server";
204
209
  }>>;
210
+ previewUrl: z.ZodNullable<z.ZodString>;
205
211
  pullRequestNumber: z.ZodNullable<z.ZodNumber>;
206
212
  pullRequestUrl: z.ZodNullable<z.ZodString>;
207
213
  pullRequestState: z.ZodNullable<z.ZodEnum<{
@@ -279,6 +285,7 @@ declare const EnsureIssueRootTaskResponseSchema: z.ZodObject<{
279
285
  directory: "directory";
280
286
  "git-server": "git-server";
281
287
  }>>;
288
+ previewUrl: z.ZodNullable<z.ZodString>;
282
289
  pullRequestNumber: z.ZodNullable<z.ZodNumber>;
283
290
  pullRequestUrl: z.ZodNullable<z.ZodString>;
284
291
  pullRequestState: z.ZodNullable<z.ZodEnum<{
@@ -370,6 +377,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
370
377
  directory: "directory";
371
378
  "git-server": "git-server";
372
379
  }>>;
380
+ previewUrl: z.ZodNullable<z.ZodString>;
373
381
  pullRequestNumber: z.ZodNullable<z.ZodNumber>;
374
382
  pullRequestUrl: z.ZodNullable<z.ZodString>;
375
383
  pullRequestState: z.ZodNullable<z.ZodEnum<{
@@ -688,6 +696,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
688
696
  directory: "directory";
689
697
  "git-server": "git-server";
690
698
  }>>;
699
+ previewUrl: z.ZodNullable<z.ZodString>;
691
700
  pullRequestNumber: z.ZodNullable<z.ZodNumber>;
692
701
  pullRequestUrl: z.ZodNullable<z.ZodString>;
693
702
  pullRequestState: z.ZodNullable<z.ZodEnum<{
@@ -775,6 +784,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
775
784
  directory: "directory";
776
785
  "git-server": "git-server";
777
786
  }>>;
787
+ previewUrl: z.ZodNullable<z.ZodString>;
778
788
  pullRequestNumber: z.ZodNullable<z.ZodNumber>;
779
789
  pullRequestUrl: z.ZodNullable<z.ZodString>;
780
790
  pullRequestState: z.ZodNullable<z.ZodEnum<{
@@ -864,6 +874,7 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
864
874
  directory: "directory";
865
875
  "git-server": "git-server";
866
876
  }>>;
877
+ previewUrl: z.ZodNullable<z.ZodString>;
867
878
  pullRequestNumber: z.ZodNullable<z.ZodNumber>;
868
879
  pullRequestUrl: z.ZodNullable<z.ZodString>;
869
880
  pullRequestState: z.ZodNullable<z.ZodEnum<{
@@ -902,6 +913,86 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
902
913
  }, z.core.$strip>;
903
914
  }, z.core.$strip>;
904
915
  type UpdateTaskTitleResponse = z.infer<typeof UpdateTaskTitleResponseSchema>;
916
+ declare const UpdateTaskPreviewUrlResponseSchema: z.ZodObject<{
917
+ success: z.ZodBoolean;
918
+ task: z.ZodObject<{
919
+ id: z.ZodString;
920
+ type: z.ZodDefault<z.ZodEnum<{
921
+ chat: "chat";
922
+ work: "work";
923
+ shadow: "shadow";
924
+ }>>;
925
+ chatId: z.ZodString;
926
+ userId: z.ZodString;
927
+ state: z.ZodString;
928
+ workerStatus: z.ZodNullable<z.ZodEnum<{
929
+ initializing: "initializing";
930
+ ready: "ready";
931
+ running: "running";
932
+ }>>;
933
+ agentId: z.ZodString;
934
+ machineId: z.ZodNullable<z.ZodString>;
935
+ cloudId: z.ZodNullable<z.ZodString>;
936
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
937
+ repositoryId: z.ZodNullable<z.ZodString>;
938
+ baseBranch: z.ZodNullable<z.ZodString>;
939
+ branchName: z.ZodNullable<z.ZodString>;
940
+ workerExecutionMode: z.ZodEnum<{
941
+ loop: "loop";
942
+ oneshot: "oneshot";
943
+ }>;
944
+ title: z.ZodNullable<z.ZodString>;
945
+ customTitle: z.ZodNullable<z.ZodString>;
946
+ agentSessionId: z.ZodNullable<z.ZodString>;
947
+ dataEncryptionKey: z.ZodNullable<z.ZodString>;
948
+ ownerEncryptedDataKey: z.ZodNullable<z.ZodString>;
949
+ cwd: z.ZodNullable<z.ZodString>;
950
+ userCwd: z.ZodNullable<z.ZodString>;
951
+ forceUserCwd: z.ZodNullable<z.ZodBoolean>;
952
+ repositorySourceType: z.ZodNullable<z.ZodEnum<{
953
+ temporary: "temporary";
954
+ directory: "directory";
955
+ "git-server": "git-server";
956
+ }>>;
957
+ previewUrl: z.ZodNullable<z.ZodString>;
958
+ pullRequestNumber: z.ZodNullable<z.ZodNumber>;
959
+ pullRequestUrl: z.ZodNullable<z.ZodString>;
960
+ pullRequestState: z.ZodNullable<z.ZodEnum<{
961
+ open: "open";
962
+ closed: "closed";
963
+ merged: "merged";
964
+ }>>;
965
+ pullRequestStateChangedAt: z.ZodNullable<z.ZodString>;
966
+ issueNumber: z.ZodNullable<z.ZodNumber>;
967
+ gitStats: z.ZodNullable<z.ZodObject<{
968
+ totalInsertions: z.ZodNumber;
969
+ totalDeletions: z.ZodNumber;
970
+ files: z.ZodArray<z.ZodObject<{
971
+ path: z.ZodString;
972
+ insertions: z.ZodNumber;
973
+ deletions: z.ZodNumber;
974
+ }, z.core.$strip>>;
975
+ }, z.core.$strip>>;
976
+ usageSummary: z.ZodNullable<z.ZodObject<{
977
+ inputTokens: z.ZodNumber;
978
+ outputTokens: z.ZodNumber;
979
+ cacheReadInputTokens: z.ZodNumber;
980
+ cacheCreationInputTokens: z.ZodNumber;
981
+ webSearchRequests: z.ZodNumber;
982
+ totalTokens: z.ZodNumber;
983
+ models: z.ZodArray<z.ZodString>;
984
+ }, z.core.$strip>>;
985
+ totalDuration: z.ZodNullable<z.ZodNumber>;
986
+ rootTaskId: z.ZodNullable<z.ZodString>;
987
+ parentTaskId: z.ZodNullable<z.ZodString>;
988
+ taskAgentIds: z.ZodArray<z.ZodString>;
989
+ supportedFeatures: z.ZodArray<z.ZodString>;
990
+ autoNavigate: z.ZodOptional<z.ZodBoolean>;
991
+ createdAt: z.ZodString;
992
+ updatedAt: z.ZodString;
993
+ }, z.core.$strip>;
994
+ }, z.core.$strip>;
995
+ type UpdateTaskPreviewUrlResponse = z.infer<typeof UpdateTaskPreviewUrlResponseSchema>;
905
996
  /**
906
997
  * Message target type
907
998
  * - 'agent': Send to task's agent worker (injects as user message)
@@ -1534,6 +1625,40 @@ declare const HiveMyListingsResponseSchema: z.ZodObject<{
1534
1625
  }, z.core.$strip>;
1535
1626
  type HiveMyListingsResponse = z.infer<typeof HiveMyListingsResponseSchema>;
1536
1627
 
1628
+ declare const SyncStreamTypeSchema: z.ZodEnum<{
1629
+ repo_issues: "repo_issues";
1630
+ repo_merge_requests: "repo_merge_requests";
1631
+ }>;
1632
+ type SyncStreamType = z.infer<typeof SyncStreamTypeSchema>;
1633
+ declare const GetStreamVersionQuerySchema: z.ZodObject<{
1634
+ streamType: z.ZodEnum<{
1635
+ repo_issues: "repo_issues";
1636
+ repo_merge_requests: "repo_merge_requests";
1637
+ }>;
1638
+ streamId: z.ZodString;
1639
+ }, z.core.$strip>;
1640
+ type GetStreamVersionQuery = z.infer<typeof GetStreamVersionQuerySchema>;
1641
+ declare const StreamVersionResponseSchema: z.ZodObject<{
1642
+ streamType: z.ZodEnum<{
1643
+ repo_issues: "repo_issues";
1644
+ repo_merge_requests: "repo_merge_requests";
1645
+ }>;
1646
+ streamId: z.ZodString;
1647
+ version: z.ZodString;
1648
+ }, z.core.$strip>;
1649
+ type StreamVersionResponse = z.infer<typeof StreamVersionResponseSchema>;
1650
+ declare const SyncAvailableEventSchema: z.ZodObject<{
1651
+ eventId: z.ZodString;
1652
+ streamType: z.ZodEnum<{
1653
+ repo_issues: "repo_issues";
1654
+ repo_merge_requests: "repo_merge_requests";
1655
+ }>;
1656
+ streamId: z.ZodString;
1657
+ version: z.ZodString;
1658
+ timestamp: z.ZodString;
1659
+ }, z.core.$strip>;
1660
+ type SyncAvailableEvent = z.infer<typeof SyncAvailableEventSchema>;
1661
+
1537
1662
  /**
1538
1663
  * RPC (Remote Procedure Call) types and schemas for AgentrixContext
1539
1664
  *
@@ -1692,6 +1817,9 @@ interface CompanionHeartbeatMessage {
1692
1817
  timestamp: string;
1693
1818
  triggerTime?: string;
1694
1819
  triggerReasons?: string[];
1820
+ heartbeatTriggerCount?: number;
1821
+ maintenanceMode?: boolean;
1822
+ maintenanceModeType?: 'memory_organization';
1695
1823
  }
1696
1824
  /**
1697
1825
  * Companion reminder message payload (Shadow → Main)
@@ -1984,6 +2112,8 @@ declare const baseTaskSchema: z.ZodObject<{
1984
2112
  chatId: z.ZodString;
1985
2113
  agentId: z.ZodString;
1986
2114
  agentType: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2115
+ machineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2116
+ cloudId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1987
2117
  agentDir: z.ZodOptional<z.ZodString>;
1988
2118
  gitUrl: z.ZodOptional<z.ZodString>;
1989
2119
  baseBranch: z.ZodOptional<z.ZodString>;
@@ -2050,6 +2180,8 @@ declare const createTaskSchema: z.ZodObject<{
2050
2180
  chatId: z.ZodString;
2051
2181
  agentId: z.ZodString;
2052
2182
  agentType: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2183
+ machineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2184
+ cloudId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2053
2185
  agentDir: z.ZodOptional<z.ZodString>;
2054
2186
  gitUrl: z.ZodOptional<z.ZodString>;
2055
2187
  baseBranch: z.ZodOptional<z.ZodString>;
@@ -2119,6 +2251,8 @@ declare const resumeTaskSchema: z.ZodObject<{
2119
2251
  chatId: z.ZodString;
2120
2252
  agentId: z.ZodString;
2121
2253
  agentType: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2254
+ machineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2255
+ cloudId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2122
2256
  agentDir: z.ZodOptional<z.ZodString>;
2123
2257
  gitUrl: z.ZodOptional<z.ZodString>;
2124
2258
  baseBranch: z.ZodOptional<z.ZodString>;
@@ -3053,6 +3187,7 @@ declare const SystemMessageSchema: z.ZodObject<{
3053
3187
  directory: "directory";
3054
3188
  "git-server": "git-server";
3055
3189
  }>>;
3190
+ previewUrl: z.ZodNullable<z.ZodString>;
3056
3191
  pullRequestNumber: z.ZodNullable<z.ZodNumber>;
3057
3192
  pullRequestUrl: z.ZodNullable<z.ZodString>;
3058
3193
  pullRequestState: z.ZodNullable<z.ZodEnum<{
@@ -3171,6 +3306,9 @@ declare const CompanionHeartbeatRequestSchema: z.ZodObject<{
3171
3306
  timestamp: z.ZodString;
3172
3307
  triggerTime: z.ZodOptional<z.ZodString>;
3173
3308
  triggerReasons: z.ZodOptional<z.ZodArray<z.ZodString>>;
3309
+ heartbeatTriggerCount: z.ZodOptional<z.ZodNumber>;
3310
+ maintenanceMode: z.ZodOptional<z.ZodBoolean>;
3311
+ maintenanceModeType: z.ZodOptional<z.ZodLiteral<"memory_organization">>;
3174
3312
  }, z.core.$strip>;
3175
3313
  type CompanionHeartbeatRequestData = z.infer<typeof CompanionHeartbeatRequestSchema>;
3176
3314
  declare const CompanionHeartbeatResponseSchema: z.ZodObject<{
@@ -3255,6 +3393,7 @@ type EventMap = {
3255
3393
  "associate-repo": AssociateRepoEventData;
3256
3394
  "update-agent-info": UpdateAgentInfoEventData;
3257
3395
  "system-message": SystemMessageEventData;
3396
+ "sync-available": SyncAvailableEvent;
3258
3397
  "credit-exhausted": CreditExhaustedEventData;
3259
3398
  "rtc-ice-servers-request": RtcIceServersRequestEventData;
3260
3399
  "rtc-ice-servers-response": RtcIceServersResponseEventData;
@@ -3764,5 +3903,5 @@ declare class MissingAgentFileError extends AgentError {
3764
3903
  constructor(filePath: string);
3765
3904
  }
3766
3905
 
3767
- export { ProjectEntrySchema as $, resumeTaskRequestSchema as B, ResumeTaskResponseSchema as C, DEFAULT_WORKER_EXECUTION_MODE as D, EnsureIssueRootTaskRequestSchema as E, CancelTaskRequestSchema as G, cancelTaskRequestSchema as I, CancelTaskResponseSchema as J, ListTasksRequestSchema as L, StopTaskRequestSchema as M, stopTaskRequestSchema as O, StopTaskResponseSchema as Q, ResumeTaskRequestSchema as R, StartTaskRequestSchema as S, PermissionResponseRequestSchema as V, permissionResponseRequestSchema as Y, PermissionResponseResponseSchema as Z, WorkerExecutionModeSchema as a, ProjectDirectoryResponseSchema as a1, QueryEventsRequestSchema as a3, FillEventsRequestSchema as a7, SendTaskMessageRequestSchema as aA, SendTaskMessageResponseSchema as aC, ShowModalRequestSchema as aE, ShowModalResponseSchema as aG, GetTaskSessionResponseSchema as aI, ListSubTasksRequestSchema as aK, SubTaskSummarySchema as aM, ListSubTasksResponseSchema as aO, ListRecentTasksRequestSchema as aQ, RecentTaskSummarySchema as aS, ListRecentTasksResponseSchema as aU, FindTaskByAgentRequestSchema as aW, FindTaskByAgentResponseSchema as aY, HiveListingTypeSchema as a_, CreateMergeRequestSchema as aa, createMergeRequestSchema as ac, CreateMergeRequestResponseSchema as ad, ApprovePrRequestSchema as af, ApprovePrResponseSchema as ah, CreateTaskShareSchema as aj, CreateTaskShareResponseSchema as al, ArchiveTaskRequestSchema as an, ArchiveTaskResponseSchema as ap, UnarchiveTaskRequestSchema as ar, UnarchiveTaskResponseSchema as at, UpdateTaskTitleRequestSchema as av, UpdateTaskTitleResponseSchema as ax, HiveAuthorTypeSchema as b0, HiveListingStatusSchema as b2, HiveSortSchema as b4, HiveListingSchema as b6, PublishToHiveRequestSchema as b8, HiveReviewListResponseSchema as bA, HiveCommentSchema as bC, CreateHiveCommentRequestSchema as bE, UpdateHiveCommentRequestSchema as bG, HiveCommentListResponseSchema as bI, HiveInstalledItemSchema as bK, HiveInstalledResponseSchema as bM, HiveMyListingsResponseSchema as bO, AskUserOptionSchema as bQ, AskUserQuestionSchema as bS, AskUserMessageSchema as bU, AskUserResponseStatusSchema as bW, AskUserResponseReasonSchema as bX, AskUserResponseMessageSchema as b_, PublishToHiveResponseSchema as ba, HiveListQuerySchema as bc, HiveListResponseSchema as be, UpdateHiveListingRequestSchema as bg, UpdateHiveVersionRequestSchema as bi, HiveInstallRequestSchema as bk, HiveInstallSchema as bm, HiveInstallResponseSchema as bo, RecordHiveInstallRequestSchema as bq, RecordHiveInstallResponseSchema as bs, HiveReviewSchema as bu, CreateHiveReviewRequestSchema as bw, UpdateHiveReviewRequestSchema as by, isLocalTaskExecution as c, TaskArtifactsStatsSchema as c$, TaskAgentInfoSchema as c4, isAskUserMessage as c6, isAskUserResponseMessage as c7, isCompanionHeartbeatMessage as c8, isCompanionReminderMessage as c9, WorkerExitSchema as cA, WorkerRunningSchema as cC, WorkerPermissionModeSchema as cE, WorkerStatusRequestSchema as cG, WorkerStatusValueSchema as cI, WorkerStatusSnapshotSchema as cK, ChatWorkersStatusRequestSchema as cM, ChatWorkersStatusResponseSchema as cO, ListModelsEventSchema as cQ, baseTaskSchema as cS, createTaskSchema as cT, resumeTaskSchema as cV, cancelTaskSchema as cX, StopTaskSchema as cZ, isSubTaskAskUserMessage as ca, isSDKMessage as cb, isSDKUserMessage as cc, createEventId as cd, EventAckSchema as ce, AppAliveEventSchema as cg, ApiServerAliveEventSchema as ci, MachineAliveEventSchema as ck, ShutdownMachineSchema as cm, WorkerInitializingSchema as co, WorkerInitializedSchema as cq, WorkerPermissionModeValueSchema as cs, WorkerReadySchema as cu, ActiveAgentSchema as cw, WorkerAliveEventSchema as cy, getTaskExecutionMachineRouteId as d, HivePublishEventSchema as d$, PreviewProjectTypeSchema as d1, PreviewMethodSchema as d3, PreviewMetadataSchema as d5, TaskArtifactsSummarySchema as d6, TaskMessageSchema as d8, WorkspaceFileRequestSchema as dA, WorkspaceFileResponseSchema as dC, UpdateTaskAgentSessionIdEventSchema as dE, TaskInfoUpdateEventDataSchema as dG, TaskSlashCommandSchema as dI, TaskSlashCommandsUpdateEventDataSchema as dK, MergeRequestEventSchema as dM, TaskStoppedEventSchema as dO, SubTaskResultUpdatedEventSchema as dQ, SubTaskAskUserEventSchema as dS, MergePullRequestEventSchema as dU, DeployAgentEventSchema as dX, DeployAgentCompleteEventSchema as dZ, TaskModelUsageSchema as da, TaskUsageReportEventSchema as dc, ShowModalEventDataSchema as df, ChangeTaskTitleEventSchema as dh, TaskStateChangeEventSchema as dj, CreditExhaustedEventSchema as dl, RtcIceServerSchema as dn, RtcIceServersRequestSchema as dq, RtcIceServersResponseSchema as ds, MachineRtcRequestSchema as du, MachineRtcResponseSchema as dw, RtcSignalSchema as dy, TaskTodoSchema as e, AgentMetadataSchema as e$, HivePublishCompleteEventSchema as e1, HiveInstallEventSchema as e3, HiveInstallCompleteEventSchema as e5, AssociateRepoEventDataSchema as e7, UpdateAgentInfoEventSchema as e8, SeqSyncResponseEventDataSchema as eB, EventSchemaMap as eF, workerTaskEvents as eH, RpcCallEventSchema as eI, MachineRpcCallEventSchema as eK, RpcResponseSchema as eM, setAgentContext as eQ, getAgentContext as eR, FRAMEWORK_TYPES as e_, SystemMessageSchema as ed, DaemonGitlabOperationSchema as ef, DaemonGitlabRequestSchema as eh, DaemonGitlabResponseSchema as ej, RepositoryInboxProviderSchema as el, RepositoryInboxWebhookSchema as em, CompanionHeartbeatRequestSchema as eo, CompanionHeartbeatResponseSchema as eq, CompanionInitRequestSchema as es, CompanionInitResponseSchema as eu, ResetTaskSessionSchema as ew, SeqSyncRequestEventDataSchema as ez, ClaudeConfigSchema as f0, AgentError as f1, AgentNotFoundError as f2, AgentConfigValidationError as f3, FrameworkNotSupportedError as f4, AgentLoadError as f5, MissingAgentFileError as f6, getTaskExecutionMode as g, TaskUsageSummarySchema as h, isCloudTaskExecution as i, startTaskSchema as l, StartTaskResponseSchema as m, normalizeWorkerExecutionMode as n, TaskItemSchema as q, supportsTaskUserCwd as s, taskExecutionModes as t, EnsureIssueRootTaskResponseSchema as u, workerExecutionModes as w, ListTasksResponseSchema as y };
3768
- export type { ResumeTaskRequest as A, ResumeTaskResponse as F, CancelTaskRequest as H, CancelTaskResponse as K, StopTaskRequest as N, PreviewMetadata as P, TaskExecutionMode as T, StopTaskResponse as U, WorkerExecutionMode as W, PermissionResponseRequest as X, PermissionResponseResponse as _, HiveListingType as a$, ProjectEntry as a0, ProjectDirectoryResponse as a2, QueryEventsRequest as a4, TaskEvent as a5, QueryEventsResponse as a6, FillEventsRequest as a8, FillEventsResponse as a9, SendTaskMessageRequest as aB, SendTaskMessageResponse as aD, ShowModalRequest as aF, ShowModalResponse as aH, GetTaskSessionResponse as aJ, ListSubTasksRequest as aL, SubTaskSummary as aN, ListSubTasksResponse as aP, ListRecentTasksRequest as aR, RecentTaskSummary as aT, ListRecentTasksResponse as aV, FindTaskByAgentRequest as aX, FindTaskByAgentResponse as aZ, CreateMergeRequestRequest as ab, CreateMergeRequestResponse as ae, ApprovePrRequest as ag, ApprovePrResponse as ai, CreateTaskShareRequest as ak, CreateTaskShareResponse as am, ArchiveTaskRequest as ao, ArchiveTaskResponse as aq, UnarchiveTaskRequest as as, UnarchiveTaskResponse as au, UpdateTaskTitleRequest as aw, UpdateTaskTitleResponse as ay, SendMessageTarget as az, TaskExecutionTarget as b, AskUserResponseMessage as b$, HiveAuthorType as b1, HiveListingStatus as b3, HiveSort as b5, HiveListing as b7, PublishToHiveRequest as b9, HiveReviewListResponse as bB, HiveComment as bD, CreateHiveCommentRequest as bF, UpdateHiveCommentRequest as bH, HiveCommentListResponse as bJ, HiveInstalledItem as bL, HiveInstalledResponse as bN, HiveMyListingsResponse as bP, AskUserOption as bR, AskUserQuestion as bT, AskUserMessage as bV, AskUserResponseStatus as bY, AskUserResponseReason as bZ, PublishToHiveResponse as bb, HiveListQuery as bd, HiveListResponse as bf, UpdateHiveListingRequest as bh, UpdateHiveVersionRequest as bj, HiveInstallRequest as bl, HiveInstall as bn, HiveInstallResponse as bp, RecordHiveInstallRequest as br, RecordHiveInstallResponse as bt, HiveReview as bv, CreateHiveReviewRequest as bx, UpdateHiveReviewRequest as bz, CompanionHeartbeatMessage as c0, CompanionReminderMessage as c1, SubTaskAskUserMessage as c2, TaskMessagePayload as c3, TaskAgentInfo as c5, WorkerExitEventData as cB, WorkerRunningEventData as cD, WorkerPermissionModeEventData as cF, WorkerStatusRequestEventData as cH, WorkerStatusValue as cJ, WorkerStatusSnapshot as cL, ChatWorkersStatusRequestEventData as cN, ChatWorkersStatusResponseEventData as cP, ListModelsEventData as cR, CreateTaskEventData as cU, ResumeTaskEventData as cW, CancelTaskEventData as cY, StopTaskEventData as c_, EventAckData as cf, AppAliveEventData as ch, ApiServerAliveEventData as cj, MachineAliveEventData as cl, ShutdownMachineData as cn, WorkerInitializingEventData as cp, WorkerInitializedEventData as cr, WorkerPermissionModeValue as ct, WorkerReadyEventData as cv, ActiveAgent as cx, WorkerAliveEventData as cz, TaskArtifactsStats as d0, PreviewProjectType as d2, PreviewMethod as d4, TaskArtifactsSummary as d7, TaskMessageEventData as d9, WorkspaceFileRequestEventData as dB, WorkspaceFileResponseEventData as dD, UpdateTaskAgentSessionIdEventData as dF, TaskInfoUpdateEventData as dH, TaskSlashCommand as dJ, TaskSlashCommandsUpdateEventData as dL, MergeRequestEventData as dN, TaskStoppedEventData as dP, SubTaskResultUpdatedEventData as dR, SubTaskAskUserEventData as dT, MergePullRequestEventData as dV, MergePullRequestAck as dW, DeployAgentEventData as dY, DeployAgentCompleteEventData as d_, TaskModelUsage as db, TaskUsageReportEventData as dd, TaskState as de, ShowModalEventData as dg, ChangeTaskTitleEventData as di, TaskStateChangeEventData as dk, CreditExhaustedEventData as dm, RtcIceServer as dp, RtcIceServersRequestEventData as dr, RtcIceServersResponseEventData as dt, MachineRtcRequestEventData as dv, MachineRtcResponseEventData as dx, RtcSignalEventData as dz, HivePublishEventData as e0, HivePublishCompleteEventData as e2, HiveInstallEventData as e4, HiveInstallCompleteEventData as e6, UpdateAgentInfoEventData as e9, SeqSyncRequestEventData as eA, SeqSyncResponseEventData as eC, EventMap as eD, EventName as eE, WorkerTaskEvent as eG, RpcCallEventData as eJ, MachineRpcCallEventData as eL, RpcResponseData as eN, AgentContext as eO, AgentrixContext as eP, FrameworkType as eS, AgentMetadata as eT, ClaudeAgentConfig as eU, AgentConfig as eV, ValidationResult as eW, LoadAgentOptions as eX, RepositoryInitHookInput as eY, HookFactory as eZ, AssociateRepoEventData as ea, SystemMessageType as eb, PrStateChangedData as ec, SystemMessageEventData as ee, DaemonGitlabOperation as eg, DaemonGitlabRequestEventData as ei, DaemonGitlabResponseEventData as ek, RepositoryInboxWebhookEventData as en, CompanionHeartbeatRequestData as ep, CompanionHeartbeatResponseData as er, CompanionInitRequestData as et, CompanionInitResponseData as ev, ResetTaskSessionEventData as ex, EventData as ey, TaskTodo as f, TaskUsageSummary as j, StartTaskRequest as k, StartTaskResponse as o, EnsureIssueRootTaskRequest as p, TaskItem as r, EnsureIssueRootTaskResponse as v, ListTasksRequest as x, ListTasksResponse as z };
3906
+ export { permissionResponseRequestSchema as $, ListTasksResponseSchema as A, DEFAULT_WORKER_EXECUTION_MODE as D, EnsureIssueRootTaskRequestSchema as E, resumeTaskRequestSchema as F, ResumeTaskResponseSchema as G, CancelTaskRequestSchema as I, cancelTaskRequestSchema as K, ListTasksRequestSchema as L, CancelTaskResponseSchema as M, StopTaskRequestSchema as O, ResumeTaskRequestSchema as R, StartTaskRequestSchema as S, UpdateTaskPreviewUrlRequestSchema as U, stopTaskRequestSchema as V, StopTaskResponseSchema as X, PermissionResponseRequestSchema as Z, WorkerExecutionModeSchema as a, FindTaskByAgentRequestSchema as a$, PermissionResponseResponseSchema as a0, ProjectEntrySchema as a2, ProjectDirectoryResponseSchema as a4, QueryEventsRequestSchema as a6, UpdateTaskTitleResponseSchema as aA, UpdateTaskPreviewUrlResponseSchema as aC, SendTaskMessageRequestSchema as aF, SendTaskMessageResponseSchema as aH, ShowModalRequestSchema as aJ, ShowModalResponseSchema as aL, GetTaskSessionResponseSchema as aN, ListSubTasksRequestSchema as aP, SubTaskSummarySchema as aR, ListSubTasksResponseSchema as aT, ListRecentTasksRequestSchema as aV, RecentTaskSummarySchema as aX, ListRecentTasksResponseSchema as aZ, FillEventsRequestSchema as aa, CreateMergeRequestSchema as ad, createMergeRequestSchema as af, CreateMergeRequestResponseSchema as ag, ApprovePrRequestSchema as ai, ApprovePrResponseSchema as ak, CreateTaskShareSchema as am, CreateTaskShareResponseSchema as ao, ArchiveTaskRequestSchema as aq, ArchiveTaskResponseSchema as as, UnarchiveTaskRequestSchema as au, UnarchiveTaskResponseSchema as aw, UpdateTaskTitleRequestSchema as ay, SyncAvailableEventSchema as b$, FindTaskByAgentResponseSchema as b1, HiveListingTypeSchema as b3, HiveAuthorTypeSchema as b5, HiveListingStatusSchema as b7, HiveSortSchema as b9, CreateHiveReviewRequestSchema as bB, UpdateHiveReviewRequestSchema as bD, HiveReviewListResponseSchema as bF, HiveCommentSchema as bH, CreateHiveCommentRequestSchema as bJ, UpdateHiveCommentRequestSchema as bL, HiveCommentListResponseSchema as bN, HiveInstalledItemSchema as bP, HiveInstalledResponseSchema as bR, HiveMyListingsResponseSchema as bT, SyncStreamTypeSchema as bV, GetStreamVersionQuerySchema as bX, StreamVersionResponseSchema as bZ, HiveListingSchema as bb, PublishToHiveRequestSchema as bd, PublishToHiveResponseSchema as bf, HiveListQuerySchema as bh, HiveListResponseSchema as bj, UpdateHiveListingRequestSchema as bl, UpdateHiveVersionRequestSchema as bn, HiveInstallRequestSchema as bp, HiveInstallSchema as br, HiveInstallResponseSchema as bt, RecordHiveInstallRequestSchema as bv, RecordHiveInstallResponseSchema as bx, HiveReviewSchema as bz, isLocalTaskExecution as c, ChatWorkersStatusResponseSchema as c$, AskUserOptionSchema as c1, AskUserQuestionSchema as c3, AskUserMessageSchema as c5, AskUserResponseStatusSchema as c7, AskUserResponseReasonSchema as c8, WorkerInitializingSchema as cB, WorkerInitializedSchema as cD, WorkerPermissionModeValueSchema as cF, WorkerReadySchema as cH, ActiveAgentSchema as cJ, WorkerAliveEventSchema as cL, WorkerExitSchema as cN, WorkerRunningSchema as cP, WorkerPermissionModeSchema as cR, WorkerStatusRequestSchema as cT, WorkerStatusValueSchema as cV, WorkerStatusSnapshotSchema as cX, ChatWorkersStatusRequestSchema as cZ, AskUserResponseMessageSchema as cb, TaskAgentInfoSchema as ch, isAskUserMessage as cj, isAskUserResponseMessage as ck, isCompanionHeartbeatMessage as cl, isCompanionReminderMessage as cm, isSubTaskAskUserMessage as cn, isSDKMessage as co, isSDKUserMessage as cp, createEventId as cq, EventAckSchema as cr, AppAliveEventSchema as ct, ApiServerAliveEventSchema as cv, MachineAliveEventSchema as cx, ShutdownMachineSchema as cz, getTaskExecutionMachineRouteId as d, TaskStoppedEventSchema as d$, ListModelsEventSchema as d1, baseTaskSchema as d3, createTaskSchema as d4, resumeTaskSchema as d6, cancelTaskSchema as d8, RtcIceServerSchema as dB, RtcIceServersRequestSchema as dD, RtcIceServersResponseSchema as dF, MachineRtcRequestSchema as dH, MachineRtcResponseSchema as dJ, RtcSignalSchema as dL, WorkspaceFileRequestSchema as dN, WorkspaceFileResponseSchema as dP, UpdateTaskAgentSessionIdEventSchema as dR, TaskInfoUpdateEventDataSchema as dT, TaskSlashCommandSchema as dV, TaskSlashCommandsUpdateEventDataSchema as dX, MergeRequestEventSchema as dZ, StopTaskSchema as da, TaskArtifactsStatsSchema as dc, PreviewProjectTypeSchema as de, PreviewMethodSchema as dg, PreviewMetadataSchema as di, TaskArtifactsSummarySchema as dj, TaskMessageSchema as dl, TaskModelUsageSchema as dn, TaskUsageReportEventSchema as dq, ShowModalEventDataSchema as dt, ChangeTaskTitleEventSchema as dv, TaskStateChangeEventSchema as dx, CreditExhaustedEventSchema as dz, TaskTodoSchema as e, SubTaskResultUpdatedEventSchema as e1, SubTaskAskUserEventSchema as e3, MergePullRequestEventSchema as e5, DeployAgentEventSchema as e8, CompanionHeartbeatRequestSchema as eB, CompanionHeartbeatResponseSchema as eD, CompanionInitRequestSchema as eF, CompanionInitResponseSchema as eH, ResetTaskSessionSchema as eJ, SeqSyncRequestEventDataSchema as eM, SeqSyncResponseEventDataSchema as eO, EventSchemaMap as eS, workerTaskEvents as eU, RpcCallEventSchema as eV, MachineRpcCallEventSchema as eX, RpcResponseSchema as eZ, DeployAgentCompleteEventSchema as ea, HivePublishEventSchema as ec, HivePublishCompleteEventSchema as ee, HiveInstallEventSchema as eg, HiveInstallCompleteEventSchema as ei, AssociateRepoEventDataSchema as ek, UpdateAgentInfoEventSchema as el, SystemMessageSchema as eq, DaemonGitlabOperationSchema as es, DaemonGitlabRequestSchema as eu, DaemonGitlabResponseSchema as ew, RepositoryInboxProviderSchema as ey, RepositoryInboxWebhookSchema as ez, setAgentContext as f1, getAgentContext as f2, FRAMEWORK_TYPES as fb, AgentMetadataSchema as fc, ClaudeConfigSchema as fd, AgentError as fe, AgentNotFoundError as ff, AgentConfigValidationError as fg, FrameworkNotSupportedError as fh, AgentLoadError as fi, MissingAgentFileError as fj, getTaskExecutionMode as g, TaskUsageSummarySchema as h, isCloudTaskExecution as i, TaskPreviewUrlSchema as k, normalizeWorkerExecutionMode as n, startTaskSchema as o, StartTaskResponseSchema as p, supportsTaskUserCwd as s, taskExecutionModes as t, TaskItemSchema as u, workerExecutionModes as w, EnsureIssueRootTaskResponseSchema as x };
3907
+ export type { ListTasksResponse as B, ResumeTaskRequest as C, ResumeTaskResponse as H, CancelTaskRequest as J, CancelTaskResponse as N, PreviewMetadata as P, StopTaskRequest as Q, TaskExecutionMode as T, WorkerExecutionMode as W, StopTaskResponse as Y, PermissionResponseRequest as _, PermissionResponseResponse as a1, ProjectEntry as a3, ProjectDirectoryResponse as a5, QueryEventsRequest as a7, TaskEvent as a8, QueryEventsResponse as a9, UpdateTaskTitleResponse as aB, UpdateTaskPreviewUrlResponse as aD, SendMessageTarget as aE, SendTaskMessageRequest as aG, SendTaskMessageResponse as aI, ShowModalRequest as aK, ShowModalResponse as aM, GetTaskSessionResponse as aO, ListSubTasksRequest as aQ, SubTaskSummary as aS, ListSubTasksResponse as aU, ListRecentTasksRequest as aW, RecentTaskSummary as aY, ListRecentTasksResponse as a_, FillEventsRequest as ab, FillEventsResponse as ac, CreateMergeRequestRequest as ae, CreateMergeRequestResponse as ah, ApprovePrRequest as aj, ApprovePrResponse as al, CreateTaskShareRequest as an, CreateTaskShareResponse as ap, ArchiveTaskRequest as ar, ArchiveTaskResponse as at, UnarchiveTaskRequest as av, UnarchiveTaskResponse as ax, UpdateTaskTitleRequest as az, TaskExecutionTarget as b, FindTaskByAgentRequest as b0, FindTaskByAgentResponse as b2, HiveListingType as b4, HiveAuthorType as b6, HiveListingStatus as b8, HiveReview as bA, CreateHiveReviewRequest as bC, UpdateHiveReviewRequest as bE, HiveReviewListResponse as bG, HiveComment as bI, CreateHiveCommentRequest as bK, UpdateHiveCommentRequest as bM, HiveCommentListResponse as bO, HiveInstalledItem as bQ, HiveInstalledResponse as bS, HiveMyListingsResponse as bU, SyncStreamType as bW, GetStreamVersionQuery as bY, StreamVersionResponse as b_, HiveSort as ba, HiveListing as bc, PublishToHiveRequest as be, PublishToHiveResponse as bg, HiveListQuery as bi, HiveListResponse as bk, UpdateHiveListingRequest as bm, UpdateHiveVersionRequest as bo, HiveInstallRequest as bq, HiveInstall as bs, HiveInstallResponse as bu, RecordHiveInstallRequest as bw, RecordHiveInstallResponse as by, SyncAvailableEvent as c0, AskUserOption as c2, AskUserQuestion as c4, AskUserMessage as c6, AskUserResponseStatus as c9, ShutdownMachineData as cA, WorkerInitializingEventData as cC, WorkerInitializedEventData as cE, WorkerPermissionModeValue as cG, WorkerReadyEventData as cI, ActiveAgent as cK, WorkerAliveEventData as cM, WorkerExitEventData as cO, WorkerRunningEventData as cQ, WorkerPermissionModeEventData as cS, WorkerStatusRequestEventData as cU, WorkerStatusValue as cW, WorkerStatusSnapshot as cY, ChatWorkersStatusRequestEventData as c_, AskUserResponseReason as ca, AskUserResponseMessage as cc, CompanionHeartbeatMessage as cd, CompanionReminderMessage as ce, SubTaskAskUserMessage as cf, TaskMessagePayload as cg, TaskAgentInfo as ci, EventAckData as cs, AppAliveEventData as cu, ApiServerAliveEventData as cw, MachineAliveEventData as cy, ChatWorkersStatusResponseEventData as d0, ListModelsEventData as d2, CreateTaskEventData as d5, ResumeTaskEventData as d7, CancelTaskEventData as d9, CreditExhaustedEventData as dA, RtcIceServer as dC, RtcIceServersRequestEventData as dE, RtcIceServersResponseEventData as dG, MachineRtcRequestEventData as dI, MachineRtcResponseEventData as dK, RtcSignalEventData as dM, WorkspaceFileRequestEventData as dO, WorkspaceFileResponseEventData as dQ, UpdateTaskAgentSessionIdEventData as dS, TaskInfoUpdateEventData as dU, TaskSlashCommand as dW, TaskSlashCommandsUpdateEventData as dY, MergeRequestEventData as d_, StopTaskEventData as db, TaskArtifactsStats as dd, PreviewProjectType as df, PreviewMethod as dh, TaskArtifactsSummary as dk, TaskMessageEventData as dm, TaskModelUsage as dp, TaskUsageReportEventData as dr, TaskState as ds, ShowModalEventData as du, ChangeTaskTitleEventData as dw, TaskStateChangeEventData as dy, AgentContext as e$, TaskStoppedEventData as e0, SubTaskResultUpdatedEventData as e2, SubTaskAskUserEventData as e4, MergePullRequestEventData as e6, MergePullRequestAck as e7, DeployAgentEventData as e9, RepositoryInboxWebhookEventData as eA, CompanionHeartbeatRequestData as eC, CompanionHeartbeatResponseData as eE, CompanionInitRequestData as eG, CompanionInitResponseData as eI, ResetTaskSessionEventData as eK, EventData as eL, SeqSyncRequestEventData as eN, SeqSyncResponseEventData as eP, EventMap as eQ, EventName as eR, WorkerTaskEvent as eT, RpcCallEventData as eW, MachineRpcCallEventData as eY, RpcResponseData as e_, DeployAgentCompleteEventData as eb, HivePublishEventData as ed, HivePublishCompleteEventData as ef, HiveInstallEventData as eh, HiveInstallCompleteEventData as ej, UpdateAgentInfoEventData as em, AssociateRepoEventData as en, SystemMessageType as eo, PrStateChangedData as ep, SystemMessageEventData as er, DaemonGitlabOperation as et, DaemonGitlabRequestEventData as ev, DaemonGitlabResponseEventData as ex, TaskTodo as f, AgentrixContext as f0, FrameworkType as f3, AgentMetadata as f4, ClaudeAgentConfig as f5, AgentConfig as f6, ValidationResult as f7, LoadAgentOptions as f8, RepositoryInitHookInput as f9, HookFactory as fa, TaskUsageSummary as j, UpdateTaskPreviewUrlRequest as l, StartTaskRequest as m, StartTaskResponse as q, EnsureIssueRootTaskRequest as r, TaskItem as v, EnsureIssueRootTaskResponse as y, ListTasksRequest as z };
package/dist/index.cjs CHANGED
@@ -296,6 +296,39 @@ const TaskUsageSummarySchema = zod.z.object({
296
296
  totalTokens: zod.z.number().int().nonnegative(),
297
297
  models: zod.z.array(zod.z.string())
298
298
  });
299
+ const TaskPreviewUrlSchema = zod.z.string().trim().min(1).max(2048).superRefine((value, ctx) => {
300
+ let url;
301
+ try {
302
+ url = new URL(value);
303
+ } catch {
304
+ ctx.addIssue({
305
+ code: zod.z.ZodIssueCode.custom,
306
+ message: "Preview URL must be a valid absolute URL"
307
+ });
308
+ return;
309
+ }
310
+ if (url.protocol !== "http:" && url.protocol !== "https:") {
311
+ ctx.addIssue({
312
+ code: zod.z.ZodIssueCode.custom,
313
+ message: "Preview URL must use http or https"
314
+ });
315
+ }
316
+ if (!url.hostname) {
317
+ ctx.addIssue({
318
+ code: zod.z.ZodIssueCode.custom,
319
+ message: "Preview URL must include a host"
320
+ });
321
+ }
322
+ if (url.username || url.password) {
323
+ ctx.addIssue({
324
+ code: zod.z.ZodIssueCode.custom,
325
+ message: "Preview URL must not include credentials"
326
+ });
327
+ }
328
+ });
329
+ const UpdateTaskPreviewUrlRequestSchema = zod.z.object({
330
+ previewUrl: TaskPreviewUrlSchema
331
+ });
299
332
  const StartTaskRequestSchema = zod.z.object({
300
333
  chatId: zod.z.string(),
301
334
  customTitle: zod.z.string().min(1).max(200).optional(),
@@ -431,6 +464,7 @@ const TaskItemSchema = zod.z.object({
431
464
  // Force using user-provided cwd (no worktree)
432
465
  repositorySourceType: zod.z.enum(["temporary", "directory", "git-server"]).nullable(),
433
466
  // Repository source type
467
+ previewUrl: zod.z.string().nullable(),
434
468
  pullRequestNumber: zod.z.number().nullable(),
435
469
  pullRequestUrl: zod.z.string().nullable(),
436
470
  pullRequestState: zod.z.enum(["open", "closed", "merged"]).nullable(),
@@ -626,6 +660,10 @@ const UpdateTaskTitleResponseSchema = zod.z.object({
626
660
  success: zod.z.boolean(),
627
661
  task: TaskItemSchema
628
662
  });
663
+ const UpdateTaskPreviewUrlResponseSchema = zod.z.object({
664
+ success: zod.z.boolean(),
665
+ task: TaskItemSchema
666
+ });
629
667
  const SendTaskMessageRequestSchema = zod.z.object({
630
668
  message: zod.z.custom(
631
669
  (data) => {
@@ -1467,12 +1505,13 @@ const GitServerSchema = zod.z.object({
1467
1505
  const ListGitServersResponseSchema = zod.z.array(GitServerSchema);
1468
1506
  const GetGitServerResponseSchema = GitServerSchema;
1469
1507
 
1508
+ const CurrentSubscriptionPlanTypeSchema = zod.z.enum(["free", "plus", "pro", "enterprise"]);
1509
+ const SubscriptionPlanTypeSchema = zod.z.enum(["free", "plus", "pro", "enterprise", "lite", "max"]);
1470
1510
  const SubscriptionPlanSchema = zod.z.object({
1471
1511
  id: IdSchema,
1472
1512
  name: zod.z.string(),
1473
- type: zod.z.string(),
1474
- // "lite", "pro", "max", "enterprise"
1475
- stripePriceId: zod.z.string(),
1513
+ type: SubscriptionPlanTypeSchema,
1514
+ stripePriceId: zod.z.string().nullable(),
1476
1515
  price: zod.z.number(),
1477
1516
  credits: zod.z.number(),
1478
1517
  features: zod.z.array(zod.z.string()),
@@ -1482,6 +1521,18 @@ const SubscriptionPlanSchema = zod.z.object({
1482
1521
  maxPrivateClouds: zod.z.number().int().nonnegative(),
1483
1522
  maxMachinesPerPrivateCloud: zod.z.number().int().nonnegative(),
1484
1523
  maxPrivateCloudMembers: zod.z.number().int().nonnegative(),
1524
+ maxOnlineLocalMachines: zod.z.number().int().nonnegative(),
1525
+ createdAt: DateSchema,
1526
+ updatedAt: DateSchema
1527
+ });
1528
+ const UserEntitlementSourceSchema = zod.z.enum(["free_plan", "subscription", "manual"]);
1529
+ const UserEntitlementSchema = zod.z.object({
1530
+ id: IdSchema,
1531
+ userId: IdSchema,
1532
+ source: UserEntitlementSourceSchema,
1533
+ subscriptionId: IdSchema.nullable(),
1534
+ planId: IdSchema.nullable(),
1535
+ maxOnlineLocalMachines: zod.z.number().int().nonnegative(),
1485
1536
  createdAt: DateSchema,
1486
1537
  updatedAt: DateSchema
1487
1538
  });
@@ -1503,7 +1554,9 @@ const SubscriptionSchema = zod.z.object({
1503
1554
  // Associated plan info
1504
1555
  });
1505
1556
  const GetSubscriptionResponseSchema = zod.z.object({
1506
- subscription: SubscriptionSchema.nullable()
1557
+ subscription: SubscriptionSchema.nullable(),
1558
+ effectivePlan: SubscriptionPlanSchema.nullable().optional(),
1559
+ effectiveEntitlement: UserEntitlementSchema.nullable().optional()
1507
1560
  });
1508
1561
  const CreateCheckoutRequestSchema = zod.z.object({
1509
1562
  priceId: zod.z.string(),
@@ -1532,7 +1585,7 @@ const UpdateSubscriptionResponseSchema = zod.z.object({
1532
1585
  const SubscriptionTierSchema = zod.z.object({
1533
1586
  id: zod.z.string(),
1534
1587
  name: zod.z.string(),
1535
- priceId: zod.z.string(),
1588
+ priceId: zod.z.string().nullable(),
1536
1589
  price: zod.z.number(),
1537
1590
  credits: zod.z.number(),
1538
1591
  popular: zod.z.boolean().optional(),
@@ -1544,15 +1597,34 @@ const GetSubscriptionTiersResponseSchema = zod.z.object({
1544
1597
  });
1545
1598
  const CreateSubscriptionPlanRequestSchema = zod.z.object({
1546
1599
  name: zod.z.string(),
1547
- type: zod.z.enum(["lite", "pro", "max", "enterprise"]),
1548
- price: zod.z.number().positive(),
1549
- credits: zod.z.number().positive(),
1600
+ type: CurrentSubscriptionPlanTypeSchema,
1601
+ price: zod.z.number().nonnegative(),
1602
+ credits: zod.z.number().nonnegative(),
1550
1603
  features: zod.z.array(zod.z.string()),
1551
1604
  popular: zod.z.boolean().optional(),
1552
1605
  privateCloudEnabled: zod.z.boolean().optional(),
1553
1606
  maxPrivateClouds: zod.z.number().int().nonnegative().optional(),
1554
1607
  maxMachinesPerPrivateCloud: zod.z.number().int().nonnegative().optional(),
1555
- maxPrivateCloudMembers: zod.z.number().int().nonnegative().optional()
1608
+ maxPrivateCloudMembers: zod.z.number().int().nonnegative().optional(),
1609
+ maxOnlineLocalMachines: zod.z.number().int().nonnegative().optional()
1610
+ }).superRefine((data, ctx) => {
1611
+ if (data.type === "free") {
1612
+ if (data.price !== 0) {
1613
+ ctx.addIssue({
1614
+ code: "custom",
1615
+ path: ["price"],
1616
+ message: "Free plans must have a price of 0"
1617
+ });
1618
+ }
1619
+ return;
1620
+ }
1621
+ if (data.price <= 0) {
1622
+ ctx.addIssue({
1623
+ code: "custom",
1624
+ path: ["price"],
1625
+ message: "Paid plans must have a price greater than 0"
1626
+ });
1627
+ }
1556
1628
  });
1557
1629
  const UpdateSubscriptionPlanRequestSchema = zod.z.object({
1558
1630
  name: zod.z.string().optional(),
@@ -1562,7 +1634,8 @@ const UpdateSubscriptionPlanRequestSchema = zod.z.object({
1562
1634
  privateCloudEnabled: zod.z.boolean().optional(),
1563
1635
  maxPrivateClouds: zod.z.number().int().nonnegative().optional(),
1564
1636
  maxMachinesPerPrivateCloud: zod.z.number().int().nonnegative().optional(),
1565
- maxPrivateCloudMembers: zod.z.number().int().nonnegative().optional()
1637
+ maxPrivateCloudMembers: zod.z.number().int().nonnegative().optional(),
1638
+ maxOnlineLocalMachines: zod.z.number().int().nonnegative().optional()
1566
1639
  });
1567
1640
  const ListSubscriptionPlansResponseSchema = zod.z.object({
1568
1641
  plans: zod.z.array(SubscriptionPlanSchema)
@@ -1708,6 +1781,7 @@ const CiRunStatusSchema = zod.z.enum([
1708
1781
  "canceled",
1709
1782
  "timeout"
1710
1783
  ]);
1784
+ const CiRunResponseModeSchema = zod.z.enum(["stream", "async"]);
1711
1785
  const CiRunRepoSchema = zod.z.object({
1712
1786
  gitServerId: zod.z.string().min(1),
1713
1787
  serverRepoId: zod.z.string().min(1).optional(),
@@ -1742,6 +1816,7 @@ const CiRunContextSchema = zod.z.object({
1742
1816
  });
1743
1817
  const CreateCiRunRequestSchema = zod.z.object({
1744
1818
  agent: zod.z.string().min(1),
1819
+ responseMode: CiRunResponseModeSchema.optional(),
1745
1820
  title: zod.z.string().min(1).max(200).optional(),
1746
1821
  prompt: zod.z.string().min(1),
1747
1822
  outputSchema: JsonSchemaDocumentSchema.optional(),
@@ -2069,6 +2144,27 @@ const HiveMyListingsResponseSchema = zod.z.object({
2069
2144
  listings: zod.z.array(HiveListingSchema)
2070
2145
  });
2071
2146
 
2147
+ const SyncStreamTypeSchema = zod.z.enum([
2148
+ "repo_issues",
2149
+ "repo_merge_requests"
2150
+ ]);
2151
+ const GetStreamVersionQuerySchema = zod.z.object({
2152
+ streamType: SyncStreamTypeSchema,
2153
+ streamId: zod.z.string().min(1)
2154
+ });
2155
+ const StreamVersionResponseSchema = zod.z.object({
2156
+ streamType: SyncStreamTypeSchema,
2157
+ streamId: zod.z.string(),
2158
+ version: zod.z.string()
2159
+ });
2160
+ const SyncAvailableEventSchema = zod.z.object({
2161
+ eventId: zod.z.string(),
2162
+ streamType: SyncStreamTypeSchema,
2163
+ streamId: zod.z.string(),
2164
+ version: zod.z.string(),
2165
+ timestamp: zod.z.string()
2166
+ });
2167
+
2072
2168
  const RpcCallEventSchema = zod.z.object({
2073
2169
  eventId: zod.z.string(),
2074
2170
  taskId: zod.z.string(),
@@ -2522,6 +2618,10 @@ const baseTaskSchema = EventBaseSchema.extend({
2522
2618
  chatId: zod.z.string(),
2523
2619
  agentId: zod.z.string(),
2524
2620
  agentType: zod.z.string().optional().default("claude"),
2621
+ machineId: zod.z.string().nullable().optional(),
2622
+ // Task execution target; local tasks have machineId
2623
+ cloudId: zod.z.string().nullable().optional(),
2624
+ // Task execution target; cloud tasks have cloudId
2525
2625
  agentDir: zod.z.string().optional(),
2526
2626
  // Absolute path to agent directory (only for draft agents)
2527
2627
  gitUrl: zod.z.string().optional(),
@@ -3100,7 +3200,10 @@ const CompanionHeartbeatRequestSchema = EventBaseSchema.extend({
3100
3200
  userId: zod.z.string(),
3101
3201
  timestamp: zod.z.string(),
3102
3202
  triggerTime: zod.z.string().optional(),
3103
- triggerReasons: zod.z.array(zod.z.string()).optional()
3203
+ triggerReasons: zod.z.array(zod.z.string()).optional(),
3204
+ heartbeatTriggerCount: zod.z.number().int().nonnegative().optional(),
3205
+ maintenanceMode: zod.z.boolean().optional(),
3206
+ maintenanceModeType: zod.z.literal("memory_organization").optional()
3104
3207
  });
3105
3208
  const CompanionHeartbeatResponseSchema = EventBaseSchema.extend({
3106
3209
  taskId: zod.z.string(),
@@ -3181,6 +3284,7 @@ const EventSchemaMap = {
3181
3284
  "update-agent-info": UpdateAgentInfoEventSchema,
3182
3285
  // System message events
3183
3286
  "system-message": SystemMessageSchema,
3287
+ "sync-available": SyncAvailableEventSchema,
3184
3288
  // Billing events
3185
3289
  "credit-exhausted": CreditExhaustedEventSchema,
3186
3290
  // RTC signaling events
@@ -3752,6 +3856,7 @@ exports.CiRunContextSchema = CiRunContextSchema;
3752
3856
  exports.CiRunExecutionSchema = CiRunExecutionSchema;
3753
3857
  exports.CiRunGitSchema = CiRunGitSchema;
3754
3858
  exports.CiRunRepoSchema = CiRunRepoSchema;
3859
+ exports.CiRunResponseModeSchema = CiRunResponseModeSchema;
3755
3860
  exports.CiRunStatusResponseSchema = CiRunStatusResponseSchema;
3756
3861
  exports.CiRunStatusSchema = CiRunStatusSchema;
3757
3862
  exports.CloudJoinApprovalRequestSchema = CloudJoinApprovalRequestSchema;
@@ -3808,6 +3913,7 @@ exports.CreateTaskShareSchema = CreateTaskShareSchema;
3808
3913
  exports.CreditExhaustedEventSchema = CreditExhaustedEventSchema;
3809
3914
  exports.CreditsBucketSchema = CreditsBucketSchema;
3810
3915
  exports.CreditsPackageSchema = CreditsPackageSchema;
3916
+ exports.CurrentSubscriptionPlanTypeSchema = CurrentSubscriptionPlanTypeSchema;
3811
3917
  exports.DEFAULT_WORKER_EXECUTION_MODE = DEFAULT_WORKER_EXECUTION_MODE;
3812
3918
  exports.DaemonGitlabOperationSchema = DaemonGitlabOperationSchema;
3813
3919
  exports.DaemonGitlabRequestSchema = DaemonGitlabRequestSchema;
@@ -3857,6 +3963,7 @@ exports.GetOAuthServerResponseSchema = GetOAuthServerResponseSchema;
3857
3963
  exports.GetPrivateCloudRunnerSecretResponseSchema = GetPrivateCloudRunnerSecretResponseSchema;
3858
3964
  exports.GetReferenceQuerySchema = GetReferenceQuerySchema;
3859
3965
  exports.GetRepositoryResponseSchema = GetRepositoryResponseSchema;
3966
+ exports.GetStreamVersionQuerySchema = GetStreamVersionQuerySchema;
3860
3967
  exports.GetSubscriptionResponseSchema = GetSubscriptionResponseSchema;
3861
3968
  exports.GetSubscriptionTiersResponseSchema = GetSubscriptionTiersResponseSchema;
3862
3969
  exports.GetTaskSessionResponseSchema = GetTaskSessionResponseSchema;
@@ -4033,18 +4140,22 @@ exports.StopSubscriptionResponseSchema = StopSubscriptionResponseSchema;
4033
4140
  exports.StopTaskRequestSchema = StopTaskRequestSchema;
4034
4141
  exports.StopTaskResponseSchema = StopTaskResponseSchema;
4035
4142
  exports.StopTaskSchema = StopTaskSchema;
4143
+ exports.StreamVersionResponseSchema = StreamVersionResponseSchema;
4036
4144
  exports.StripeCheckoutClientSchema = StripeCheckoutClientSchema;
4037
4145
  exports.SubTaskAskUserEventSchema = SubTaskAskUserEventSchema;
4038
4146
  exports.SubTaskResultUpdatedEventSchema = SubTaskResultUpdatedEventSchema;
4039
4147
  exports.SubTaskSummarySchema = SubTaskSummarySchema;
4040
4148
  exports.SubscriptionPlanSchema = SubscriptionPlanSchema;
4149
+ exports.SubscriptionPlanTypeSchema = SubscriptionPlanTypeSchema;
4041
4150
  exports.SubscriptionSchema = SubscriptionSchema;
4042
4151
  exports.SubscriptionTierSchema = SubscriptionTierSchema;
4152
+ exports.SyncAvailableEventSchema = SyncAvailableEventSchema;
4043
4153
  exports.SyncCloudMachineResponseSchema = SyncCloudMachineResponseSchema;
4044
4154
  exports.SyncLocalMachineResponseSchema = SyncLocalMachineResponseSchema;
4045
4155
  exports.SyncMachineModelsRequestSchema = SyncMachineModelsRequestSchema;
4046
4156
  exports.SyncMachineModelsResponseSchema = SyncMachineModelsResponseSchema;
4047
4157
  exports.SyncMachineRequestSchema = SyncMachineRequestSchema;
4158
+ exports.SyncStreamTypeSchema = SyncStreamTypeSchema;
4048
4159
  exports.SystemMessageSchema = SystemMessageSchema;
4049
4160
  exports.TaskAgentInfoSchema = TaskAgentInfoSchema;
4050
4161
  exports.TaskArtifactsStatsSchema = TaskArtifactsStatsSchema;
@@ -4053,6 +4164,7 @@ exports.TaskInfoUpdateEventDataSchema = TaskInfoUpdateEventDataSchema;
4053
4164
  exports.TaskItemSchema = TaskItemSchema;
4054
4165
  exports.TaskMessageSchema = TaskMessageSchema;
4055
4166
  exports.TaskModelUsageSchema = TaskModelUsageSchema;
4167
+ exports.TaskPreviewUrlSchema = TaskPreviewUrlSchema;
4056
4168
  exports.TaskSharePermissionsSchema = TaskSharePermissionsSchema;
4057
4169
  exports.TaskSlashCommandSchema = TaskSlashCommandSchema;
4058
4170
  exports.TaskSlashCommandsUpdateEventDataSchema = TaskSlashCommandsUpdateEventDataSchema;
@@ -4087,6 +4199,8 @@ exports.UpdateSubscriptionPlanRequestSchema = UpdateSubscriptionPlanRequestSchem
4087
4199
  exports.UpdateSubscriptionRequestSchema = UpdateSubscriptionRequestSchema;
4088
4200
  exports.UpdateSubscriptionResponseSchema = UpdateSubscriptionResponseSchema;
4089
4201
  exports.UpdateTaskAgentSessionIdEventSchema = UpdateTaskAgentSessionIdEventSchema;
4202
+ exports.UpdateTaskPreviewUrlRequestSchema = UpdateTaskPreviewUrlRequestSchema;
4203
+ exports.UpdateTaskPreviewUrlResponseSchema = UpdateTaskPreviewUrlResponseSchema;
4090
4204
  exports.UpdateTaskTitleRequestSchema = UpdateTaskTitleRequestSchema;
4091
4205
  exports.UpdateTaskTitleResponseSchema = UpdateTaskTitleResponseSchema;
4092
4206
  exports.UpdateUserProfileRequestSchema = UpdateUserProfileRequestSchema;
@@ -4094,6 +4208,8 @@ exports.UpdateUserProfileResponseSchema = UpdateUserProfileResponseSchema;
4094
4208
  exports.UploadUrlResultSchema = UploadUrlResultSchema;
4095
4209
  exports.UserBalanceResponseSchema = UserBalanceResponseSchema;
4096
4210
  exports.UserBasicInfoSchema = UserBasicInfoSchema;
4211
+ exports.UserEntitlementSchema = UserEntitlementSchema;
4212
+ exports.UserEntitlementSourceSchema = UserEntitlementSourceSchema;
4097
4213
  exports.UserInboxItemSchema = UserInboxItemSchema;
4098
4214
  exports.UserInboxStatusSchema = UserInboxStatusSchema;
4099
4215
  exports.UserInboxSubjectTypeSchema = UserInboxSubjectTypeSchema;
package/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { P as PreviewMetadata } from './errors-BQihmdbe.cjs';
3
- export { cx as ActiveAgent, cw as ActiveAgentSchema, eV as AgentConfig, f3 as AgentConfigValidationError, eO as AgentContext, f1 as AgentError, f5 as AgentLoadError, eT as AgentMetadata, e$ as AgentMetadataSchema, f2 as AgentNotFoundError, eP as AgentrixContext, cj as ApiServerAliveEventData, ci as ApiServerAliveEventSchema, ch as AppAliveEventData, cg as AppAliveEventSchema, ag as ApprovePrRequest, af as ApprovePrRequestSchema, ai as ApprovePrResponse, ah as ApprovePrResponseSchema, ao as ArchiveTaskRequest, an as ArchiveTaskRequestSchema, aq as ArchiveTaskResponse, ap as ArchiveTaskResponseSchema, bV as AskUserMessage, bU as AskUserMessageSchema, bR as AskUserOption, bQ as AskUserOptionSchema, bT as AskUserQuestion, bS as AskUserQuestionSchema, b$ as AskUserResponseMessage, b_ as AskUserResponseMessageSchema, bZ as AskUserResponseReason, bX as AskUserResponseReasonSchema, bY as AskUserResponseStatus, bW as AskUserResponseStatusSchema, ea as AssociateRepoEventData, e7 as AssociateRepoEventDataSchema, cY as CancelTaskEventData, H as CancelTaskRequest, G as CancelTaskRequestSchema, K as CancelTaskResponse, J as CancelTaskResponseSchema, di as ChangeTaskTitleEventData, dh as ChangeTaskTitleEventSchema, cN as ChatWorkersStatusRequestEventData, cM as ChatWorkersStatusRequestSchema, cP as ChatWorkersStatusResponseEventData, cO as ChatWorkersStatusResponseSchema, eU as ClaudeAgentConfig, f0 as ClaudeConfigSchema, c0 as CompanionHeartbeatMessage, ep as CompanionHeartbeatRequestData, eo as CompanionHeartbeatRequestSchema, er as CompanionHeartbeatResponseData, eq as CompanionHeartbeatResponseSchema, et as CompanionInitRequestData, es as CompanionInitRequestSchema, ev as CompanionInitResponseData, eu as CompanionInitResponseSchema, c1 as CompanionReminderMessage, bF as CreateHiveCommentRequest, bE as CreateHiveCommentRequestSchema, bx as CreateHiveReviewRequest, bw as CreateHiveReviewRequestSchema, ab as CreateMergeRequestRequest, ae as CreateMergeRequestResponse, ad as CreateMergeRequestResponseSchema, aa as CreateMergeRequestSchema, cU as CreateTaskEventData, ak as CreateTaskShareRequest, am as CreateTaskShareResponse, al as CreateTaskShareResponseSchema, aj as CreateTaskShareSchema, dm as CreditExhaustedEventData, dl as CreditExhaustedEventSchema, D as DEFAULT_WORKER_EXECUTION_MODE, eg as DaemonGitlabOperation, ef as DaemonGitlabOperationSchema, ei as DaemonGitlabRequestEventData, eh as DaemonGitlabRequestSchema, ek as DaemonGitlabResponseEventData, ej as DaemonGitlabResponseSchema, d_ as DeployAgentCompleteEventData, dZ as DeployAgentCompleteEventSchema, dY as DeployAgentEventData, dX as DeployAgentEventSchema, p as EnsureIssueRootTaskRequest, E as EnsureIssueRootTaskRequestSchema, v as EnsureIssueRootTaskResponse, u as EnsureIssueRootTaskResponseSchema, cf as EventAckData, ce as EventAckSchema, ey as EventData, eD as EventMap, eE as EventName, eF as EventSchemaMap, e_ as FRAMEWORK_TYPES, a8 as FillEventsRequest, a7 as FillEventsRequestSchema, a9 as FillEventsResponse, aX as FindTaskByAgentRequest, aW as FindTaskByAgentRequestSchema, aZ as FindTaskByAgentResponse, aY as FindTaskByAgentResponseSchema, f4 as FrameworkNotSupportedError, eS as FrameworkType, aJ as GetTaskSessionResponse, aI as GetTaskSessionResponseSchema, b1 as HiveAuthorType, b0 as HiveAuthorTypeSchema, bD as HiveComment, bJ as HiveCommentListResponse, bI as HiveCommentListResponseSchema, bC as HiveCommentSchema, bn as HiveInstall, e6 as HiveInstallCompleteEventData, e5 as HiveInstallCompleteEventSchema, e4 as HiveInstallEventData, e3 as HiveInstallEventSchema, bl as HiveInstallRequest, bk as HiveInstallRequestSchema, bp as HiveInstallResponse, bo as HiveInstallResponseSchema, bm as HiveInstallSchema, bL as HiveInstalledItem, bK as HiveInstalledItemSchema, bN as HiveInstalledResponse, bM as HiveInstalledResponseSchema, bd as HiveListQuery, bc as HiveListQuerySchema, bf as HiveListResponse, be as HiveListResponseSchema, b7 as HiveListing, b6 as HiveListingSchema, b3 as HiveListingStatus, b2 as HiveListingStatusSchema, a$ as HiveListingType, a_ as HiveListingTypeSchema, bP as HiveMyListingsResponse, bO as HiveMyListingsResponseSchema, e2 as HivePublishCompleteEventData, e1 as HivePublishCompleteEventSchema, e0 as HivePublishEventData, d$ as HivePublishEventSchema, bv as HiveReview, bB as HiveReviewListResponse, bA as HiveReviewListResponseSchema, bu as HiveReviewSchema, b5 as HiveSort, b4 as HiveSortSchema, eZ as HookFactory, cR as ListModelsEventData, cQ as ListModelsEventSchema, aR as ListRecentTasksRequest, aQ as ListRecentTasksRequestSchema, aV as ListRecentTasksResponse, aU as ListRecentTasksResponseSchema, aL as ListSubTasksRequest, aK as ListSubTasksRequestSchema, aP as ListSubTasksResponse, aO as ListSubTasksResponseSchema, x as ListTasksRequest, L as ListTasksRequestSchema, z as ListTasksResponse, y as ListTasksResponseSchema, eX as LoadAgentOptions, cl as MachineAliveEventData, ck as MachineAliveEventSchema, eL as MachineRpcCallEventData, eK as MachineRpcCallEventSchema, dv as MachineRtcRequestEventData, du as MachineRtcRequestSchema, dx as MachineRtcResponseEventData, dw as MachineRtcResponseSchema, dW as MergePullRequestAck, dV as MergePullRequestEventData, dU as MergePullRequestEventSchema, dN as MergeRequestEventData, dM as MergeRequestEventSchema, f6 as MissingAgentFileError, X as PermissionResponseRequest, V as PermissionResponseRequestSchema, _ as PermissionResponseResponse, Z as PermissionResponseResponseSchema, ec as PrStateChangedData, d5 as PreviewMetadataSchema, d4 as PreviewMethod, d3 as PreviewMethodSchema, d2 as PreviewProjectType, d1 as PreviewProjectTypeSchema, a2 as ProjectDirectoryResponse, a1 as ProjectDirectoryResponseSchema, a0 as ProjectEntry, $ as ProjectEntrySchema, b9 as PublishToHiveRequest, b8 as PublishToHiveRequestSchema, bb as PublishToHiveResponse, ba as PublishToHiveResponseSchema, a4 as QueryEventsRequest, a3 as QueryEventsRequestSchema, a6 as QueryEventsResponse, aT as RecentTaskSummary, aS as RecentTaskSummarySchema, br as RecordHiveInstallRequest, bq as RecordHiveInstallRequestSchema, bt as RecordHiveInstallResponse, bs as RecordHiveInstallResponseSchema, el as RepositoryInboxProviderSchema, en as RepositoryInboxWebhookEventData, em as RepositoryInboxWebhookSchema, eY as RepositoryInitHookInput, ex as ResetTaskSessionEventData, ew as ResetTaskSessionSchema, cW as ResumeTaskEventData, A as ResumeTaskRequest, R as ResumeTaskRequestSchema, F as ResumeTaskResponse, C as ResumeTaskResponseSchema, eJ as RpcCallEventData, eI as RpcCallEventSchema, eN as RpcResponseData, eM as RpcResponseSchema, dp as RtcIceServer, dn as RtcIceServerSchema, dr as RtcIceServersRequestEventData, dq as RtcIceServersRequestSchema, dt as RtcIceServersResponseEventData, ds as RtcIceServersResponseSchema, dz as RtcSignalEventData, dy as RtcSignalSchema, az as SendMessageTarget, aB as SendTaskMessageRequest, aA as SendTaskMessageRequestSchema, aD as SendTaskMessageResponse, aC as SendTaskMessageResponseSchema, eA as SeqSyncRequestEventData, ez as SeqSyncRequestEventDataSchema, eC as SeqSyncResponseEventData, eB as SeqSyncResponseEventDataSchema, dg as ShowModalEventData, df as ShowModalEventDataSchema, aF as ShowModalRequest, aE as ShowModalRequestSchema, aH as ShowModalResponse, aG as ShowModalResponseSchema, cn as ShutdownMachineData, cm as ShutdownMachineSchema, k as StartTaskRequest, S as StartTaskRequestSchema, o as StartTaskResponse, m as StartTaskResponseSchema, c_ as StopTaskEventData, N as StopTaskRequest, M as StopTaskRequestSchema, U as StopTaskResponse, Q as StopTaskResponseSchema, cZ as StopTaskSchema, dT as SubTaskAskUserEventData, dS as SubTaskAskUserEventSchema, c2 as SubTaskAskUserMessage, dR as SubTaskResultUpdatedEventData, dQ as SubTaskResultUpdatedEventSchema, aN as SubTaskSummary, aM as SubTaskSummarySchema, ee as SystemMessageEventData, ed as SystemMessageSchema, eb as SystemMessageType, c5 as TaskAgentInfo, c4 as TaskAgentInfoSchema, d0 as TaskArtifactsStats, c$ as TaskArtifactsStatsSchema, d7 as TaskArtifactsSummary, d6 as TaskArtifactsSummarySchema, a5 as TaskEvent, T as TaskExecutionMode, b as TaskExecutionTarget, dH as TaskInfoUpdateEventData, dG as TaskInfoUpdateEventDataSchema, r as TaskItem, q as TaskItemSchema, d9 as TaskMessageEventData, c3 as TaskMessagePayload, d8 as TaskMessageSchema, db as TaskModelUsage, da as TaskModelUsageSchema, dJ as TaskSlashCommand, dI as TaskSlashCommandSchema, dL as TaskSlashCommandsUpdateEventData, dK as TaskSlashCommandsUpdateEventDataSchema, de as TaskState, dk as TaskStateChangeEventData, dj as TaskStateChangeEventSchema, dP as TaskStoppedEventData, dO as TaskStoppedEventSchema, f as TaskTodo, e as TaskTodoSchema, dd as TaskUsageReportEventData, dc as TaskUsageReportEventSchema, j as TaskUsageSummary, h as TaskUsageSummarySchema, as as UnarchiveTaskRequest, ar as UnarchiveTaskRequestSchema, au as UnarchiveTaskResponse, at as UnarchiveTaskResponseSchema, e9 as UpdateAgentInfoEventData, e8 as UpdateAgentInfoEventSchema, bH as UpdateHiveCommentRequest, bG as UpdateHiveCommentRequestSchema, bh as UpdateHiveListingRequest, bg as UpdateHiveListingRequestSchema, bz as UpdateHiveReviewRequest, by as UpdateHiveReviewRequestSchema, bj as UpdateHiveVersionRequest, bi as UpdateHiveVersionRequestSchema, dF as UpdateTaskAgentSessionIdEventData, dE as UpdateTaskAgentSessionIdEventSchema, aw as UpdateTaskTitleRequest, av as UpdateTaskTitleRequestSchema, ay as UpdateTaskTitleResponse, ax as UpdateTaskTitleResponseSchema, eW as ValidationResult, cz as WorkerAliveEventData, cy as WorkerAliveEventSchema, W as WorkerExecutionMode, a as WorkerExecutionModeSchema, cB as WorkerExitEventData, cA as WorkerExitSchema, cr as WorkerInitializedEventData, cq as WorkerInitializedSchema, cp as WorkerInitializingEventData, co as WorkerInitializingSchema, cF as WorkerPermissionModeEventData, cE as WorkerPermissionModeSchema, ct as WorkerPermissionModeValue, cs as WorkerPermissionModeValueSchema, cv as WorkerReadyEventData, cu as WorkerReadySchema, cD as WorkerRunningEventData, cC as WorkerRunningSchema, cH as WorkerStatusRequestEventData, cG as WorkerStatusRequestSchema, cL as WorkerStatusSnapshot, cK as WorkerStatusSnapshotSchema, cJ as WorkerStatusValue, cI as WorkerStatusValueSchema, eG as WorkerTaskEvent, dB as WorkspaceFileRequestEventData, dA as WorkspaceFileRequestSchema, dD as WorkspaceFileResponseEventData, dC as WorkspaceFileResponseSchema, cS as baseTaskSchema, I as cancelTaskRequestSchema, cX as cancelTaskSchema, cd as createEventId, ac as createMergeRequestSchema, cT as createTaskSchema, eR as getAgentContext, d as getTaskExecutionMachineRouteId, g as getTaskExecutionMode, c6 as isAskUserMessage, c7 as isAskUserResponseMessage, i as isCloudTaskExecution, c8 as isCompanionHeartbeatMessage, c9 as isCompanionReminderMessage, c as isLocalTaskExecution, cb as isSDKMessage, cc as isSDKUserMessage, ca as isSubTaskAskUserMessage, n as normalizeWorkerExecutionMode, Y as permissionResponseRequestSchema, B as resumeTaskRequestSchema, cV as resumeTaskSchema, eQ as setAgentContext, l as startTaskSchema, O as stopTaskRequestSchema, s as supportsTaskUserCwd, t as taskExecutionModes, w as workerExecutionModes, eH as workerTaskEvents } from './errors-BQihmdbe.cjs';
2
+ import { P as PreviewMetadata } from './errors-Dh7ZWjDu.cjs';
3
+ export { cK as ActiveAgent, cJ as ActiveAgentSchema, f6 as AgentConfig, fg as AgentConfigValidationError, e$ as AgentContext, fe as AgentError, fi as AgentLoadError, f4 as AgentMetadata, fc as AgentMetadataSchema, ff as AgentNotFoundError, f0 as AgentrixContext, cw as ApiServerAliveEventData, cv as ApiServerAliveEventSchema, cu as AppAliveEventData, ct as AppAliveEventSchema, aj as ApprovePrRequest, ai as ApprovePrRequestSchema, al as ApprovePrResponse, ak as ApprovePrResponseSchema, ar as ArchiveTaskRequest, aq as ArchiveTaskRequestSchema, at as ArchiveTaskResponse, as as ArchiveTaskResponseSchema, c6 as AskUserMessage, c5 as AskUserMessageSchema, c2 as AskUserOption, c1 as AskUserOptionSchema, c4 as AskUserQuestion, c3 as AskUserQuestionSchema, cc as AskUserResponseMessage, cb as AskUserResponseMessageSchema, ca as AskUserResponseReason, c8 as AskUserResponseReasonSchema, c9 as AskUserResponseStatus, c7 as AskUserResponseStatusSchema, en as AssociateRepoEventData, ek as AssociateRepoEventDataSchema, d9 as CancelTaskEventData, J as CancelTaskRequest, I as CancelTaskRequestSchema, N as CancelTaskResponse, M as CancelTaskResponseSchema, dw as ChangeTaskTitleEventData, dv as ChangeTaskTitleEventSchema, c_ as ChatWorkersStatusRequestEventData, cZ as ChatWorkersStatusRequestSchema, d0 as ChatWorkersStatusResponseEventData, c$ as ChatWorkersStatusResponseSchema, f5 as ClaudeAgentConfig, fd as ClaudeConfigSchema, cd as CompanionHeartbeatMessage, eC as CompanionHeartbeatRequestData, eB as CompanionHeartbeatRequestSchema, eE as CompanionHeartbeatResponseData, eD as CompanionHeartbeatResponseSchema, eG as CompanionInitRequestData, eF as CompanionInitRequestSchema, eI as CompanionInitResponseData, eH as CompanionInitResponseSchema, ce as CompanionReminderMessage, bK as CreateHiveCommentRequest, bJ as CreateHiveCommentRequestSchema, bC as CreateHiveReviewRequest, bB as CreateHiveReviewRequestSchema, ae as CreateMergeRequestRequest, ah as CreateMergeRequestResponse, ag as CreateMergeRequestResponseSchema, ad as CreateMergeRequestSchema, d5 as CreateTaskEventData, an as CreateTaskShareRequest, ap as CreateTaskShareResponse, ao as CreateTaskShareResponseSchema, am as CreateTaskShareSchema, dA as CreditExhaustedEventData, dz as CreditExhaustedEventSchema, D as DEFAULT_WORKER_EXECUTION_MODE, et as DaemonGitlabOperation, es as DaemonGitlabOperationSchema, ev as DaemonGitlabRequestEventData, eu as DaemonGitlabRequestSchema, ex as DaemonGitlabResponseEventData, ew as DaemonGitlabResponseSchema, eb as DeployAgentCompleteEventData, ea as DeployAgentCompleteEventSchema, e9 as DeployAgentEventData, e8 as DeployAgentEventSchema, r as EnsureIssueRootTaskRequest, E as EnsureIssueRootTaskRequestSchema, y as EnsureIssueRootTaskResponse, x as EnsureIssueRootTaskResponseSchema, cs as EventAckData, cr as EventAckSchema, eL as EventData, eQ as EventMap, eR as EventName, eS as EventSchemaMap, fb as FRAMEWORK_TYPES, ab as FillEventsRequest, aa as FillEventsRequestSchema, ac as FillEventsResponse, b0 as FindTaskByAgentRequest, a$ as FindTaskByAgentRequestSchema, b2 as FindTaskByAgentResponse, b1 as FindTaskByAgentResponseSchema, fh as FrameworkNotSupportedError, f3 as FrameworkType, bY as GetStreamVersionQuery, bX as GetStreamVersionQuerySchema, aO as GetTaskSessionResponse, aN as GetTaskSessionResponseSchema, b6 as HiveAuthorType, b5 as HiveAuthorTypeSchema, bI as HiveComment, bO as HiveCommentListResponse, bN as HiveCommentListResponseSchema, bH as HiveCommentSchema, bs as HiveInstall, ej as HiveInstallCompleteEventData, ei as HiveInstallCompleteEventSchema, eh as HiveInstallEventData, eg as HiveInstallEventSchema, bq as HiveInstallRequest, bp as HiveInstallRequestSchema, bu as HiveInstallResponse, bt as HiveInstallResponseSchema, br as HiveInstallSchema, bQ as HiveInstalledItem, bP as HiveInstalledItemSchema, bS as HiveInstalledResponse, bR as HiveInstalledResponseSchema, bi as HiveListQuery, bh as HiveListQuerySchema, bk as HiveListResponse, bj as HiveListResponseSchema, bc as HiveListing, bb as HiveListingSchema, b8 as HiveListingStatus, b7 as HiveListingStatusSchema, b4 as HiveListingType, b3 as HiveListingTypeSchema, bU as HiveMyListingsResponse, bT as HiveMyListingsResponseSchema, ef as HivePublishCompleteEventData, ee as HivePublishCompleteEventSchema, ed as HivePublishEventData, ec as HivePublishEventSchema, bA as HiveReview, bG as HiveReviewListResponse, bF as HiveReviewListResponseSchema, bz as HiveReviewSchema, ba as HiveSort, b9 as HiveSortSchema, fa as HookFactory, d2 as ListModelsEventData, d1 as ListModelsEventSchema, aW as ListRecentTasksRequest, aV as ListRecentTasksRequestSchema, a_ as ListRecentTasksResponse, aZ as ListRecentTasksResponseSchema, aQ as ListSubTasksRequest, aP as ListSubTasksRequestSchema, aU as ListSubTasksResponse, aT as ListSubTasksResponseSchema, z as ListTasksRequest, L as ListTasksRequestSchema, B as ListTasksResponse, A as ListTasksResponseSchema, f8 as LoadAgentOptions, cy as MachineAliveEventData, cx as MachineAliveEventSchema, eY as MachineRpcCallEventData, eX as MachineRpcCallEventSchema, dI as MachineRtcRequestEventData, dH as MachineRtcRequestSchema, dK as MachineRtcResponseEventData, dJ as MachineRtcResponseSchema, e7 as MergePullRequestAck, e6 as MergePullRequestEventData, e5 as MergePullRequestEventSchema, d_ as MergeRequestEventData, dZ as MergeRequestEventSchema, fj as MissingAgentFileError, _ as PermissionResponseRequest, Z as PermissionResponseRequestSchema, a1 as PermissionResponseResponse, a0 as PermissionResponseResponseSchema, ep as PrStateChangedData, di as PreviewMetadataSchema, dh as PreviewMethod, dg as PreviewMethodSchema, df as PreviewProjectType, de as PreviewProjectTypeSchema, a5 as ProjectDirectoryResponse, a4 as ProjectDirectoryResponseSchema, a3 as ProjectEntry, a2 as ProjectEntrySchema, be as PublishToHiveRequest, bd as PublishToHiveRequestSchema, bg as PublishToHiveResponse, bf as PublishToHiveResponseSchema, a7 as QueryEventsRequest, a6 as QueryEventsRequestSchema, a9 as QueryEventsResponse, aY as RecentTaskSummary, aX as RecentTaskSummarySchema, bw as RecordHiveInstallRequest, bv as RecordHiveInstallRequestSchema, by as RecordHiveInstallResponse, bx as RecordHiveInstallResponseSchema, ey as RepositoryInboxProviderSchema, eA as RepositoryInboxWebhookEventData, ez as RepositoryInboxWebhookSchema, f9 as RepositoryInitHookInput, eK as ResetTaskSessionEventData, eJ as ResetTaskSessionSchema, d7 as ResumeTaskEventData, C as ResumeTaskRequest, R as ResumeTaskRequestSchema, H as ResumeTaskResponse, G as ResumeTaskResponseSchema, eW as RpcCallEventData, eV as RpcCallEventSchema, e_ as RpcResponseData, eZ as RpcResponseSchema, dC as RtcIceServer, dB as RtcIceServerSchema, dE as RtcIceServersRequestEventData, dD as RtcIceServersRequestSchema, dG as RtcIceServersResponseEventData, dF as RtcIceServersResponseSchema, dM as RtcSignalEventData, dL as RtcSignalSchema, aE as SendMessageTarget, aG as SendTaskMessageRequest, aF as SendTaskMessageRequestSchema, aI as SendTaskMessageResponse, aH as SendTaskMessageResponseSchema, eN as SeqSyncRequestEventData, eM as SeqSyncRequestEventDataSchema, eP as SeqSyncResponseEventData, eO as SeqSyncResponseEventDataSchema, du as ShowModalEventData, dt as ShowModalEventDataSchema, aK as ShowModalRequest, aJ as ShowModalRequestSchema, aM as ShowModalResponse, aL as ShowModalResponseSchema, cA as ShutdownMachineData, cz as ShutdownMachineSchema, m as StartTaskRequest, S as StartTaskRequestSchema, q as StartTaskResponse, p as StartTaskResponseSchema, db as StopTaskEventData, Q as StopTaskRequest, O as StopTaskRequestSchema, Y as StopTaskResponse, X as StopTaskResponseSchema, da as StopTaskSchema, b_ as StreamVersionResponse, bZ as StreamVersionResponseSchema, e4 as SubTaskAskUserEventData, e3 as SubTaskAskUserEventSchema, cf as SubTaskAskUserMessage, e2 as SubTaskResultUpdatedEventData, e1 as SubTaskResultUpdatedEventSchema, aS as SubTaskSummary, aR as SubTaskSummarySchema, c0 as SyncAvailableEvent, b$ as SyncAvailableEventSchema, bW as SyncStreamType, bV as SyncStreamTypeSchema, er as SystemMessageEventData, eq as SystemMessageSchema, eo as SystemMessageType, ci as TaskAgentInfo, ch as TaskAgentInfoSchema, dd as TaskArtifactsStats, dc as TaskArtifactsStatsSchema, dk as TaskArtifactsSummary, dj as TaskArtifactsSummarySchema, a8 as TaskEvent, T as TaskExecutionMode, b as TaskExecutionTarget, dU as TaskInfoUpdateEventData, dT as TaskInfoUpdateEventDataSchema, v as TaskItem, u as TaskItemSchema, dm as TaskMessageEventData, cg as TaskMessagePayload, dl as TaskMessageSchema, dp as TaskModelUsage, dn as TaskModelUsageSchema, k as TaskPreviewUrlSchema, dW as TaskSlashCommand, dV as TaskSlashCommandSchema, dY as TaskSlashCommandsUpdateEventData, dX as TaskSlashCommandsUpdateEventDataSchema, ds as TaskState, dy as TaskStateChangeEventData, dx as TaskStateChangeEventSchema, e0 as TaskStoppedEventData, d$ as TaskStoppedEventSchema, f as TaskTodo, e as TaskTodoSchema, dr as TaskUsageReportEventData, dq as TaskUsageReportEventSchema, j as TaskUsageSummary, h as TaskUsageSummarySchema, av as UnarchiveTaskRequest, au as UnarchiveTaskRequestSchema, ax as UnarchiveTaskResponse, aw as UnarchiveTaskResponseSchema, em as UpdateAgentInfoEventData, el as UpdateAgentInfoEventSchema, bM as UpdateHiveCommentRequest, bL as UpdateHiveCommentRequestSchema, bm as UpdateHiveListingRequest, bl as UpdateHiveListingRequestSchema, bE as UpdateHiveReviewRequest, bD as UpdateHiveReviewRequestSchema, bo as UpdateHiveVersionRequest, bn as UpdateHiveVersionRequestSchema, dS as UpdateTaskAgentSessionIdEventData, dR as UpdateTaskAgentSessionIdEventSchema, l as UpdateTaskPreviewUrlRequest, U as UpdateTaskPreviewUrlRequestSchema, aD as UpdateTaskPreviewUrlResponse, aC as UpdateTaskPreviewUrlResponseSchema, az as UpdateTaskTitleRequest, ay as UpdateTaskTitleRequestSchema, aB as UpdateTaskTitleResponse, aA as UpdateTaskTitleResponseSchema, f7 as ValidationResult, cM as WorkerAliveEventData, cL as WorkerAliveEventSchema, W as WorkerExecutionMode, a as WorkerExecutionModeSchema, cO as WorkerExitEventData, cN as WorkerExitSchema, cE as WorkerInitializedEventData, cD as WorkerInitializedSchema, cC as WorkerInitializingEventData, cB as WorkerInitializingSchema, cS as WorkerPermissionModeEventData, cR as WorkerPermissionModeSchema, cG as WorkerPermissionModeValue, cF as WorkerPermissionModeValueSchema, cI as WorkerReadyEventData, cH as WorkerReadySchema, cQ as WorkerRunningEventData, cP as WorkerRunningSchema, cU as WorkerStatusRequestEventData, cT as WorkerStatusRequestSchema, cY as WorkerStatusSnapshot, cX as WorkerStatusSnapshotSchema, cW as WorkerStatusValue, cV as WorkerStatusValueSchema, eT as WorkerTaskEvent, dO as WorkspaceFileRequestEventData, dN as WorkspaceFileRequestSchema, dQ as WorkspaceFileResponseEventData, dP as WorkspaceFileResponseSchema, d3 as baseTaskSchema, K as cancelTaskRequestSchema, d8 as cancelTaskSchema, cq as createEventId, af as createMergeRequestSchema, d4 as createTaskSchema, f2 as getAgentContext, d as getTaskExecutionMachineRouteId, g as getTaskExecutionMode, cj as isAskUserMessage, ck as isAskUserResponseMessage, i as isCloudTaskExecution, cl as isCompanionHeartbeatMessage, cm as isCompanionReminderMessage, c as isLocalTaskExecution, co as isSDKMessage, cp as isSDKUserMessage, cn as isSubTaskAskUserMessage, n as normalizeWorkerExecutionMode, $ as permissionResponseRequestSchema, F as resumeTaskRequestSchema, d6 as resumeTaskSchema, f1 as setAgentContext, o as startTaskSchema, V as stopTaskRequestSchema, s as supportsTaskUserCwd, t as taskExecutionModes, w as workerExecutionModes, eU as workerTaskEvents } from './errors-Dh7ZWjDu.cjs';
4
4
  import tweetnacl from 'tweetnacl';
5
5
  import { SDKMessage } from '@anthropic-ai/claude-agent-sdk';
6
6
  export { buildGitLabWebhookEndpointPath, buildGitLabWebhookUrl } from './gitlabWebhook.cjs';
@@ -910,6 +910,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
910
910
  directory: "directory";
911
911
  "git-server": "git-server";
912
912
  }>>;
913
+ previewUrl: z.ZodNullable<z.ZodString>;
913
914
  pullRequestNumber: z.ZodNullable<z.ZodNumber>;
914
915
  pullRequestUrl: z.ZodNullable<z.ZodString>;
915
916
  pullRequestState: z.ZodNullable<z.ZodEnum<{
@@ -3154,11 +3155,34 @@ type GetGitServerResponse = z.infer<typeof GetGitServerResponseSchema>;
3154
3155
  /**
3155
3156
  * Subscription Plan schema (defined first, used by SubscriptionSchema)
3156
3157
  */
3158
+ declare const CurrentSubscriptionPlanTypeSchema: z.ZodEnum<{
3159
+ free: "free";
3160
+ plus: "plus";
3161
+ pro: "pro";
3162
+ enterprise: "enterprise";
3163
+ }>;
3164
+ declare const SubscriptionPlanTypeSchema: z.ZodEnum<{
3165
+ free: "free";
3166
+ plus: "plus";
3167
+ pro: "pro";
3168
+ enterprise: "enterprise";
3169
+ lite: "lite";
3170
+ max: "max";
3171
+ }>;
3172
+ type CurrentSubscriptionPlanType = z.infer<typeof CurrentSubscriptionPlanTypeSchema>;
3173
+ type SubscriptionPlanType = z.infer<typeof SubscriptionPlanTypeSchema>;
3157
3174
  declare const SubscriptionPlanSchema: z.ZodObject<{
3158
3175
  id: z.ZodString;
3159
3176
  name: z.ZodString;
3160
- type: z.ZodString;
3161
- stripePriceId: z.ZodString;
3177
+ type: z.ZodEnum<{
3178
+ free: "free";
3179
+ plus: "plus";
3180
+ pro: "pro";
3181
+ enterprise: "enterprise";
3182
+ lite: "lite";
3183
+ max: "max";
3184
+ }>;
3185
+ stripePriceId: z.ZodNullable<z.ZodString>;
3162
3186
  price: z.ZodNumber;
3163
3187
  credits: z.ZodNumber;
3164
3188
  features: z.ZodArray<z.ZodString>;
@@ -3168,10 +3192,31 @@ declare const SubscriptionPlanSchema: z.ZodObject<{
3168
3192
  maxPrivateClouds: z.ZodNumber;
3169
3193
  maxMachinesPerPrivateCloud: z.ZodNumber;
3170
3194
  maxPrivateCloudMembers: z.ZodNumber;
3195
+ maxOnlineLocalMachines: z.ZodNumber;
3171
3196
  createdAt: z.ZodString;
3172
3197
  updatedAt: z.ZodString;
3173
3198
  }, z.core.$strip>;
3174
3199
  type SubscriptionPlan = z.infer<typeof SubscriptionPlanSchema>;
3200
+ declare const UserEntitlementSourceSchema: z.ZodEnum<{
3201
+ free_plan: "free_plan";
3202
+ subscription: "subscription";
3203
+ manual: "manual";
3204
+ }>;
3205
+ declare const UserEntitlementSchema: z.ZodObject<{
3206
+ id: z.ZodString;
3207
+ userId: z.ZodString;
3208
+ source: z.ZodEnum<{
3209
+ free_plan: "free_plan";
3210
+ subscription: "subscription";
3211
+ manual: "manual";
3212
+ }>;
3213
+ subscriptionId: z.ZodNullable<z.ZodString>;
3214
+ planId: z.ZodNullable<z.ZodString>;
3215
+ maxOnlineLocalMachines: z.ZodNumber;
3216
+ createdAt: z.ZodString;
3217
+ updatedAt: z.ZodString;
3218
+ }, z.core.$strip>;
3219
+ type UserEntitlement = z.infer<typeof UserEntitlementSchema>;
3175
3220
  /**
3176
3221
  * Subscription model schema
3177
3222
  */
@@ -3191,8 +3236,15 @@ declare const SubscriptionSchema: z.ZodObject<{
3191
3236
  plan: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3192
3237
  id: z.ZodString;
3193
3238
  name: z.ZodString;
3194
- type: z.ZodString;
3195
- stripePriceId: z.ZodString;
3239
+ type: z.ZodEnum<{
3240
+ free: "free";
3241
+ plus: "plus";
3242
+ pro: "pro";
3243
+ enterprise: "enterprise";
3244
+ lite: "lite";
3245
+ max: "max";
3246
+ }>;
3247
+ stripePriceId: z.ZodNullable<z.ZodString>;
3196
3248
  price: z.ZodNumber;
3197
3249
  credits: z.ZodNumber;
3198
3250
  features: z.ZodArray<z.ZodString>;
@@ -3202,6 +3254,7 @@ declare const SubscriptionSchema: z.ZodObject<{
3202
3254
  maxPrivateClouds: z.ZodNumber;
3203
3255
  maxMachinesPerPrivateCloud: z.ZodNumber;
3204
3256
  maxPrivateCloudMembers: z.ZodNumber;
3257
+ maxOnlineLocalMachines: z.ZodNumber;
3205
3258
  createdAt: z.ZodString;
3206
3259
  updatedAt: z.ZodString;
3207
3260
  }, z.core.$strip>>>;
@@ -3227,8 +3280,15 @@ declare const GetSubscriptionResponseSchema: z.ZodObject<{
3227
3280
  plan: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3228
3281
  id: z.ZodString;
3229
3282
  name: z.ZodString;
3230
- type: z.ZodString;
3231
- stripePriceId: z.ZodString;
3283
+ type: z.ZodEnum<{
3284
+ free: "free";
3285
+ plus: "plus";
3286
+ pro: "pro";
3287
+ enterprise: "enterprise";
3288
+ lite: "lite";
3289
+ max: "max";
3290
+ }>;
3291
+ stripePriceId: z.ZodNullable<z.ZodString>;
3232
3292
  price: z.ZodNumber;
3233
3293
  credits: z.ZodNumber;
3234
3294
  features: z.ZodArray<z.ZodString>;
@@ -3238,10 +3298,50 @@ declare const GetSubscriptionResponseSchema: z.ZodObject<{
3238
3298
  maxPrivateClouds: z.ZodNumber;
3239
3299
  maxMachinesPerPrivateCloud: z.ZodNumber;
3240
3300
  maxPrivateCloudMembers: z.ZodNumber;
3301
+ maxOnlineLocalMachines: z.ZodNumber;
3241
3302
  createdAt: z.ZodString;
3242
3303
  updatedAt: z.ZodString;
3243
3304
  }, z.core.$strip>>>;
3244
3305
  }, z.core.$strip>>;
3306
+ effectivePlan: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3307
+ id: z.ZodString;
3308
+ name: z.ZodString;
3309
+ type: z.ZodEnum<{
3310
+ free: "free";
3311
+ plus: "plus";
3312
+ pro: "pro";
3313
+ enterprise: "enterprise";
3314
+ lite: "lite";
3315
+ max: "max";
3316
+ }>;
3317
+ stripePriceId: z.ZodNullable<z.ZodString>;
3318
+ price: z.ZodNumber;
3319
+ credits: z.ZodNumber;
3320
+ features: z.ZodArray<z.ZodString>;
3321
+ popular: z.ZodBoolean;
3322
+ enabled: z.ZodBoolean;
3323
+ privateCloudEnabled: z.ZodBoolean;
3324
+ maxPrivateClouds: z.ZodNumber;
3325
+ maxMachinesPerPrivateCloud: z.ZodNumber;
3326
+ maxPrivateCloudMembers: z.ZodNumber;
3327
+ maxOnlineLocalMachines: z.ZodNumber;
3328
+ createdAt: z.ZodString;
3329
+ updatedAt: z.ZodString;
3330
+ }, z.core.$strip>>>;
3331
+ effectiveEntitlement: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3332
+ id: z.ZodString;
3333
+ userId: z.ZodString;
3334
+ source: z.ZodEnum<{
3335
+ free_plan: "free_plan";
3336
+ subscription: "subscription";
3337
+ manual: "manual";
3338
+ }>;
3339
+ subscriptionId: z.ZodNullable<z.ZodString>;
3340
+ planId: z.ZodNullable<z.ZodString>;
3341
+ maxOnlineLocalMachines: z.ZodNumber;
3342
+ createdAt: z.ZodString;
3343
+ updatedAt: z.ZodString;
3344
+ }, z.core.$strip>>>;
3245
3345
  }, z.core.$strip>;
3246
3346
  type GetSubscriptionResponse = z.infer<typeof GetSubscriptionResponseSchema>;
3247
3347
  /**
@@ -3299,8 +3399,15 @@ declare const StopSubscriptionResponseSchema: z.ZodObject<{
3299
3399
  plan: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3300
3400
  id: z.ZodString;
3301
3401
  name: z.ZodString;
3302
- type: z.ZodString;
3303
- stripePriceId: z.ZodString;
3402
+ type: z.ZodEnum<{
3403
+ free: "free";
3404
+ plus: "plus";
3405
+ pro: "pro";
3406
+ enterprise: "enterprise";
3407
+ lite: "lite";
3408
+ max: "max";
3409
+ }>;
3410
+ stripePriceId: z.ZodNullable<z.ZodString>;
3304
3411
  price: z.ZodNumber;
3305
3412
  credits: z.ZodNumber;
3306
3413
  features: z.ZodArray<z.ZodString>;
@@ -3310,6 +3417,7 @@ declare const StopSubscriptionResponseSchema: z.ZodObject<{
3310
3417
  maxPrivateClouds: z.ZodNumber;
3311
3418
  maxMachinesPerPrivateCloud: z.ZodNumber;
3312
3419
  maxPrivateCloudMembers: z.ZodNumber;
3420
+ maxOnlineLocalMachines: z.ZodNumber;
3313
3421
  createdAt: z.ZodString;
3314
3422
  updatedAt: z.ZodString;
3315
3423
  }, z.core.$strip>>>;
@@ -3336,7 +3444,7 @@ type UpdateSubscriptionResponse = z.infer<typeof UpdateSubscriptionResponseSchem
3336
3444
  declare const SubscriptionTierSchema: z.ZodObject<{
3337
3445
  id: z.ZodString;
3338
3446
  name: z.ZodString;
3339
- priceId: z.ZodString;
3447
+ priceId: z.ZodNullable<z.ZodString>;
3340
3448
  price: z.ZodNumber;
3341
3449
  credits: z.ZodNumber;
3342
3450
  popular: z.ZodOptional<z.ZodBoolean>;
@@ -3351,7 +3459,7 @@ declare const GetSubscriptionTiersResponseSchema: z.ZodObject<{
3351
3459
  tiers: z.ZodArray<z.ZodObject<{
3352
3460
  id: z.ZodString;
3353
3461
  name: z.ZodString;
3354
- priceId: z.ZodString;
3462
+ priceId: z.ZodNullable<z.ZodString>;
3355
3463
  price: z.ZodNumber;
3356
3464
  credits: z.ZodNumber;
3357
3465
  popular: z.ZodOptional<z.ZodBoolean>;
@@ -3365,9 +3473,9 @@ type GetSubscriptionTiersResponse = z.infer<typeof GetSubscriptionTiersResponseS
3365
3473
  declare const CreateSubscriptionPlanRequestSchema: z.ZodObject<{
3366
3474
  name: z.ZodString;
3367
3475
  type: z.ZodEnum<{
3368
- lite: "lite";
3476
+ free: "free";
3477
+ plus: "plus";
3369
3478
  pro: "pro";
3370
- max: "max";
3371
3479
  enterprise: "enterprise";
3372
3480
  }>;
3373
3481
  price: z.ZodNumber;
@@ -3378,6 +3486,7 @@ declare const CreateSubscriptionPlanRequestSchema: z.ZodObject<{
3378
3486
  maxPrivateClouds: z.ZodOptional<z.ZodNumber>;
3379
3487
  maxMachinesPerPrivateCloud: z.ZodOptional<z.ZodNumber>;
3380
3488
  maxPrivateCloudMembers: z.ZodOptional<z.ZodNumber>;
3489
+ maxOnlineLocalMachines: z.ZodOptional<z.ZodNumber>;
3381
3490
  }, z.core.$strip>;
3382
3491
  type CreateSubscriptionPlanRequest = z.infer<typeof CreateSubscriptionPlanRequestSchema>;
3383
3492
  /**
@@ -3392,6 +3501,7 @@ declare const UpdateSubscriptionPlanRequestSchema: z.ZodObject<{
3392
3501
  maxPrivateClouds: z.ZodOptional<z.ZodNumber>;
3393
3502
  maxMachinesPerPrivateCloud: z.ZodOptional<z.ZodNumber>;
3394
3503
  maxPrivateCloudMembers: z.ZodOptional<z.ZodNumber>;
3504
+ maxOnlineLocalMachines: z.ZodOptional<z.ZodNumber>;
3395
3505
  }, z.core.$strip>;
3396
3506
  type UpdateSubscriptionPlanRequest = z.infer<typeof UpdateSubscriptionPlanRequestSchema>;
3397
3507
  /**
@@ -3401,8 +3511,15 @@ declare const ListSubscriptionPlansResponseSchema: z.ZodObject<{
3401
3511
  plans: z.ZodArray<z.ZodObject<{
3402
3512
  id: z.ZodString;
3403
3513
  name: z.ZodString;
3404
- type: z.ZodString;
3405
- stripePriceId: z.ZodString;
3514
+ type: z.ZodEnum<{
3515
+ free: "free";
3516
+ plus: "plus";
3517
+ pro: "pro";
3518
+ enterprise: "enterprise";
3519
+ lite: "lite";
3520
+ max: "max";
3521
+ }>;
3522
+ stripePriceId: z.ZodNullable<z.ZodString>;
3406
3523
  price: z.ZodNumber;
3407
3524
  credits: z.ZodNumber;
3408
3525
  features: z.ZodArray<z.ZodString>;
@@ -3412,6 +3529,7 @@ declare const ListSubscriptionPlansResponseSchema: z.ZodObject<{
3412
3529
  maxPrivateClouds: z.ZodNumber;
3413
3530
  maxMachinesPerPrivateCloud: z.ZodNumber;
3414
3531
  maxPrivateCloudMembers: z.ZodNumber;
3532
+ maxOnlineLocalMachines: z.ZodNumber;
3415
3533
  createdAt: z.ZodString;
3416
3534
  updatedAt: z.ZodString;
3417
3535
  }, z.core.$strip>>;
@@ -3935,6 +4053,11 @@ declare const CiRunStatusSchema: z.ZodEnum<{
3935
4053
  timeout: "timeout";
3936
4054
  }>;
3937
4055
  type CiRunStatus = z.infer<typeof CiRunStatusSchema>;
4056
+ declare const CiRunResponseModeSchema: z.ZodEnum<{
4057
+ stream: "stream";
4058
+ async: "async";
4059
+ }>;
4060
+ type CiRunResponseMode = z.infer<typeof CiRunResponseModeSchema>;
3938
4061
  declare const CiRunRepoSchema: z.ZodObject<{
3939
4062
  gitServerId: z.ZodString;
3940
4063
  serverRepoId: z.ZodOptional<z.ZodString>;
@@ -3971,6 +4094,10 @@ declare const CiRunContextSchema: z.ZodObject<{
3971
4094
  type CiRunContext = z.infer<typeof CiRunContextSchema>;
3972
4095
  declare const CreateCiRunRequestSchema: z.ZodObject<{
3973
4096
  agent: z.ZodString;
4097
+ responseMode: z.ZodOptional<z.ZodEnum<{
4098
+ stream: "stream";
4099
+ async: "async";
4100
+ }>>;
3974
4101
  title: z.ZodOptional<z.ZodString>;
3975
4102
  prompt: z.ZodString;
3976
4103
  outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -4525,5 +4652,5 @@ declare function detectPreview(fs: FileSystemAdapter): Promise<PreviewMetadata |
4525
4652
  */
4526
4653
  declare function decodeGitPath(rawPath: string): string;
4527
4654
 
4528
- export { AcceptPrivateCloudInviteRequestSchema, AcceptPrivateCloudInviteResponseSchema, AddChatMemberRequestSchema, AddChatMemberResponseSchema, AdminResourceItemSchema, AgentCustomConfigSchema, AgentPermissionsSchema, AgentSchema, AgentTypeSchema, ApiErrorSchema, ApiKeySchema, ApprovalStatusResponseSchema, BillingStatsResponseSchema, BranchSchema, CONFIG_FILES, CancelCiRunResponseSchema, ChargeTransactionSchema, ChatMemberInputSchema, ChatMemberSchema, ChatSchema, ChatTypeSchema, ChatWithMembersSchema, CiProviderSchema, CiRunContextSchema, CiRunExecutionSchema, CiRunGitSchema, CiRunRepoSchema, CiRunStatusResponseSchema, CiRunStatusSchema, CloudJoinApprovalRequestSchema, CloudJoinRequestSchema, CloudJoinResultQuerySchema, CloudJoinStatusQuerySchema, CloudMachineSchema, CloudSchema, CompanionEnsureResponseSchema, CompanionWorkspaceFileSchema, ConfirmUploadRequestSchema, ConfirmUploadResponseSchema, ConsumeTransactionSchema, ContactCandidateSchema, ContactSchema, ContactTargetTypeSchema, CreateAgentRequestSchema, CreateAgentResponseSchema, CreateApiKeyRequestSchema, CreateApiKeyResponseSchema, CreateChatRequestSchema, CreateChatResponseSchema, CreateCheckoutRequestSchema, CreateCheckoutResponseSchema, CreateCiRunRequestSchema, CreateCiRunResponseSchema, CreateCloudRequestSchema, CreateCloudResponseSchema, CreateContactRequestSchema, CreateContactResponseSchema, CreateDirectRechargeCheckoutRequestSchema, CreateDirectRechargeCheckoutResponseSchema, CreateDraftAgentRequestSchema, CreateOAuthServerRequestSchema, CreateOAuthServerResponseSchema, CreatePortalRequestSchema, CreatePortalResponseSchema, CreatePrivateCloudInviteRequestSchema, CreatePrivateCloudInviteResponseSchema, CreatePrivateCloudRequestSchema, CreatePrivateCloudResponseSchema, CreateResourceRequestSchema, CreateSubscriptionPlanRequestSchema, CreditsBucketSchema, CreditsPackageSchema, DateSchema, DeleteAgentResponseSchema, DeleteApiKeyResponseSchema, DeleteContactResponseSchema, DeleteOAuthServerResponseSchema, DevCreateUserRequestSchema, DevCreateUserResponseSchema, DisplayConfigKeysSchema, DisplayConfigSchema, DraftAgentConfigSchema, DraftAgentSchema, ENTRY_FILE_PATTERNS, EmailLoginCodeRequestSchema, EmailLoginCodeResponseSchema, EmailLoginVerifyRequestSchema, EmailLoginVerifyResponseSchema, EmailPasswordLoginRequestSchema, EmailPasswordLoginResponseSchema, EnsureRepoChatRequestSchema, EnsureRepoChatResponseSchema, EnvironmentVariableSchema, FileItemSchema, FileStatsSchema, FileVisibilitySchema, GetAgentGitUrlResponseSchema, GetAgentResponseSchema, GetChatResponseSchema, GetEnvironmentVariablesResponseSchema, GetGitServerResponseSchema, GetGitUrlQuerySchema, GetGitUrlResponseSchema, GetInstallUrlResponseSchema, GetOAuthServerResponseSchema, GetPrivateCloudRunnerSecretResponseSchema, GetReferenceQuerySchema, GetRepositoryResponseSchema, GetSubscriptionResponseSchema, GetSubscriptionTiersResponseSchema, GetUploadUrlsRequestSchema, GetUploadUrlsResponseSchema, GetUserAgentsResponseSchema, GitHubIssueListItemSchema, GitHubIssueSchema, GitServerAccountInfoSchema, GitServerSchema, IGNORED_DIRECTORIES, IdSchema, JsonSchemaDocumentSchema, ListAdminResourcesResponseSchema, ListAgentsResponseSchema, ListApiKeysQuerySchema, ListApiKeysResponseSchema, ListBranchesResponseSchema, ListChatMembersResponseSchema, ListChatTasksResponseSchema, ListChatsQuerySchema, ListChatsResponseSchema, ListContactsResponseSchema, ListFilesQuerySchema, ListFilesResponseSchema, ListGitServersResponseSchema, ListIssuesQuerySchema, ListIssuesResponseSchema, ListMachineModelsResponseSchema, ListMachinesResponseSchema, ListOAuthServersPublicResponseSchema, ListOAuthServersQuerySchema, ListOAuthServersResponseSchema, ListPackagesQuerySchema, ListPackagesResponseSchema, ListPrivateCloudMembersResponseSchema, ListPrivateCloudsResponseSchema, ListPublicResourcesQuerySchema, ListPublicResourcesResponseSchema, ListReferencesQuerySchema, ListReferencesResponseSchema, ListRepositoriesResponseSchema, ListSubscriptionPlansResponseSchema, ListTransactionsQuerySchema, ListTransactionsResponseSchema, ListUserInboxResponseSchema, LocalMachineSchema, LogoutResponseSchema, MachineApprovalRequestSchema, MachineApprovalStatusQuerySchema, MachineAuthAuthorizedResponseSchema, MachineAuthRequestSchema, MachineAuthResultQuerySchema, MachineUnbindRequestSchema, MachineUnbindResponseSchema, OAuthAccountInfoSchema, OAuthBindCallbackResponseSchema, OAuthBindQuerySchema, OAuthBindResponseSchema, OAuthCallbackQuerySchema, OAuthCallbackResponseSchema, OAuthLoginQuerySchema, OAuthServerPublicSchema, OAuthServerSchema, OAuthUnbindResponseSchema, PaginatedResponseSchema, PreviewMetadata, PrivateCloudEntitlementSchema, PrivateCloudInviteSchema, PrivateCloudMemberSchema, PrivateCloudSummarySchema, ProfileEmailCodeRequestSchema, ProfileEmailCodeResponseSchema, PublicResourceItemSchema, PublishDraftAgentRequestSchema, PublishDraftAgentResponseSchema, RELEVANT_DEPENDENCIES, RTC_CHUNK_HEADER_SIZE, RechargeResponseSchema, RegisterCompanionRequestSchema, RegisterCompanionResponseSchema, RemoveChatMemberRequestSchema, RemovePrivateCloudMemberResponseSchema, RepositoryActorIdentitySchema, RepositoryReferenceCommentSchema, RepositoryReferenceCommentsResponseSchema, RepositoryReferenceDiffSchema, RepositoryReferenceKindSchema, RepositoryReferenceListItemSchema, RepositoryReferenceSchema, RepositorySchema, ResetSecretRequestSchema, ResetSecretResponseSchema, ResolveUserInboxItemResponseSchema, ResourceMetadataSchema, RtcChunkFlags, STATIC_FILE_EXTENSIONS, SearchContactCandidatesQuerySchema, SearchContactCandidatesResponseSchema, SenderTypeSchema, SetEnvironmentVariablesRequestSchema, ShareAuthQuerySchema, ShareAuthResponseSchema, SimpleSuccessSchema, StatsQuerySchema, StopSubscriptionResponseSchema, StripeCheckoutClientSchema, SubscriptionPlanSchema, SubscriptionSchema, SubscriptionTierSchema, SyncCloudMachineResponseSchema, SyncLocalMachineResponseSchema, SyncMachineModelsRequestSchema, SyncMachineModelsResponseSchema, SyncMachineRequestSchema, TaskSharePermissionsSchema, TaskTransactionsResponseSchema, ToggleApiKeyRequestSchema, ToggleOAuthServerRequestSchema, ToggleOAuthServerResponseSchema, TransactionSchema, UpdateAgentRequestSchema, UpdateAgentResponseSchema, UpdateApiKeyRequestSchema, UpdateDraftAgentRequestSchema, UpdateDraftAgentResponseSchema, UpdateOAuthServerRequestSchema, UpdateOAuthServerResponseSchema, UpdateResourceRequestSchema, UpdateSecretRequestSchema, UpdateSecretResponseSchema, UpdateSubscriptionPlanRequestSchema, UpdateSubscriptionRequestSchema, UpdateSubscriptionResponseSchema, UpdateUserProfileRequestSchema, UpdateUserProfileResponseSchema, UploadUrlResultSchema, UserBalanceResponseSchema, UserBasicInfoSchema, UserInboxItemSchema, UserInboxStatusSchema, UserInboxSubjectTypeSchema, UserProfileResponseSchema, UserWithOAuthAccountsSchema, ValidateMachineResponseSchema, 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 };
4529
- export type { AcceptPrivateCloudInviteRequest, AcceptPrivateCloudInviteResponse, AddChatMemberRequest, AddChatMemberResponse, AdminResourceItem, Agent, AgentCustomConfig, AgentPermissions, AgentType, ApiError, ApiKey, ApprovalStatusResponse, AuthPayload, BillingStatsResponse, Branch, CancelCiRunResponse, ChargeTransaction, Chat, ChatMember, ChatMemberInput, ChatType, ChatWithMembers, CiProvider, CiRunContext, CiRunExecution, CiRunGit, CiRunRepo, CiRunStatus, CiRunStatusResponse, ClientType, Cloud, CloudJoinApprovalRequest, CloudJoinRequest, CloudJoinResultQuery, CloudJoinStatusQuery, CloudMachine, CompanionEnsureResponse, CompanionWorkspaceFile, ConfirmUploadRequest, ConfirmUploadResponse, ConsumeTransaction, Contact, ContactCandidate, ContactTargetType, CreateAgentRequest, CreateAgentResponse, CreateApiKeyRequest, CreateApiKeyResponse, CreateChatRequest, CreateChatResponse, CreateCheckoutRequest, CreateCheckoutResponse, CreateCiRunRequest, CreateCiRunResponse, CreateCloudRequest, CreateCloudResponse, CreateContactRequest, CreateContactResponse, CreateDirectRechargeCheckoutRequest, CreateDirectRechargeCheckoutResponse, CreateDraftAgentRequest, CreateOAuthServerRequest, CreateOAuthServerResponse, CreatePortalRequest, CreatePortalResponse, CreatePrivateCloudInviteRequest, CreatePrivateCloudInviteResponse, CreatePrivateCloudRequest, CreatePrivateCloudResponse, CreateResourceRequest, CreateSubscriptionPlanRequest, CreditsBucket, CreditsPackage, DeleteAgentResponse, DeleteApiKeyResponse, DeleteContactResponse, DeleteOAuthServerResponse, DevCreateUserRequest, DevCreateUserResponse, DisplayConfig, DisplayConfigKeys, DraftAgent, DraftAgentConfig, EmailLoginCodeRequest, EmailLoginCodeResponse, EmailLoginVerifyRequest, EmailLoginVerifyResponse, EmailPasswordLoginRequest, EmailPasswordLoginResponse, EnsureRepoChatRequest, EnsureRepoChatResponse, EnvironmentVariable, FileItem, FileStats, FileSystemAdapter, FileVisibility, GetAgentGitUrlResponse, GetAgentResponse, GetChatResponse, GetEnvironmentVariablesResponse, GetGitServerResponse, GetGitUrlQuery, GetGitUrlResponse, GetInstallUrlResponse, GetOAuthServerResponse, GetPrivateCloudRunnerSecretResponse, GetReferenceQuery, GetRepositoryResponse, GetSubscriptionResponse, GetSubscriptionTiersResponse, GetUploadUrlsRequest, GetUploadUrlsResponse, GetUserAgentsResponse, GitHubIssue, GitHubIssueListItem, GitServer, GitServerAccountInfo, JsonSchemaDocument, ListAdminResourcesResponse, ListAgentsResponse, ListApiKeysQuery, ListApiKeysResponse, ListBranchesResponse, ListChatMembersResponse, ListChatTasksResponse, ListChatsQuery, ListChatsResponse, ListContactsResponse, ListFilesQuery, ListFilesResponse, ListGitServersResponse, ListIssuesQuery, ListIssuesResponse, ListMachineModelsResponse, ListMachinesResponse, ListOAuthServersPublicResponse, ListOAuthServersQuery, ListOAuthServersResponse, ListPackagesQuery, ListPackagesResponse, ListPrivateCloudMembersResponse, ListPrivateCloudsResponse, ListPublicResourcesQuery, ListPublicResourcesResponse, ListReferencesQuery, ListReferencesResponse, ListRepositoriesResponse, ListSubscriptionPlansResponse, ListTransactionsQuery, ListTransactionsResponse, ListUserInboxResponse, LocalMachine, LogoutResponse, MachineApprovalRequest, MachineApprovalStatusQuery, MachineAuthAuthorizedResponse, MachineAuthRequest, MachineAuthResultQuery, MachineEncryptionKey, MachineUnbindRequest, MachineUnbindResponse, OAuthAccountInfo, OAuthBindCallbackResponse, OAuthBindQuery, OAuthBindResponse, OAuthCallbackQuery, OAuthCallbackResponse, OAuthLoginQuery, OAuthServer, OAuthServerPublic, OAuthUnbindResponse, PrivateCloudEntitlement, PrivateCloudInvite, PrivateCloudMember, PrivateCloudSummary, ProfileEmailCodeRequest, ProfileEmailCodeResponse, PublicResourceItem, PublishDraftAgentRequest, PublishDraftAgentResponse, RechargeResponse, RegisterCompanionRequest, RegisterCompanionResponse, RemoveChatMemberRequest, RemovePrivateCloudMemberResponse, Repository, RepositoryActorIdentity, RepositoryReference, RepositoryReferenceComment, RepositoryReferenceCommentsResponse, RepositoryReferenceDiff, RepositoryReferenceKind, RepositoryReferenceListItem, ResetSecretRequest, ResetSecretResponse, ResolveUserInboxItemResponse, ResourceMetadata, RtcChunkFrame, RtcChunkHeader, RtcControlChannel, RtcControlMessage, SearchContactCandidatesQuery, SearchContactCandidatesResponse, SenderType, SetEnvironmentVariablesRequest, ShareAuthQuery, ShareAuthResponse, SimpleSuccess, StatsQuery, StopSubscriptionResponse, StripeCheckoutClient, Subscription, SubscriptionPlan, SubscriptionTier, SyncCloudMachineResponse, SyncLocalMachineResponse, SyncMachineModelsRequest, SyncMachineModelsResponse, SyncMachineRequest, TaskEncryptionPayload, TaskSharePermissions, TaskTransactionsResponse, ToggleApiKeyRequest, ToggleOAuthServerRequest, ToggleOAuthServerResponse, Transaction, UpdateAgentRequest, UpdateAgentResponse, UpdateApiKeyRequest, UpdateDraftAgentRequest, UpdateDraftAgentResponse, UpdateOAuthServerRequest, UpdateOAuthServerResponse, UpdateResourceRequest, UpdateSecretRequest, UpdateSecretResponse, UpdateSubscriptionPlanRequest, UpdateSubscriptionRequest, UpdateSubscriptionResponse, UpdateUserProfileRequest, UpdateUserProfileResponse, UploadUrlResult, UserBalanceResponse, UserBasicInfo, UserInboxItem, UserInboxStatus, UserInboxSubjectType, UserProfileResponse, UserWithOAuthAccounts, ValidateMachineResponse };
4655
+ export { AcceptPrivateCloudInviteRequestSchema, AcceptPrivateCloudInviteResponseSchema, AddChatMemberRequestSchema, AddChatMemberResponseSchema, AdminResourceItemSchema, AgentCustomConfigSchema, AgentPermissionsSchema, AgentSchema, AgentTypeSchema, ApiErrorSchema, ApiKeySchema, ApprovalStatusResponseSchema, BillingStatsResponseSchema, BranchSchema, CONFIG_FILES, CancelCiRunResponseSchema, ChargeTransactionSchema, ChatMemberInputSchema, ChatMemberSchema, ChatSchema, ChatTypeSchema, ChatWithMembersSchema, CiProviderSchema, CiRunContextSchema, CiRunExecutionSchema, CiRunGitSchema, CiRunRepoSchema, CiRunResponseModeSchema, CiRunStatusResponseSchema, CiRunStatusSchema, CloudJoinApprovalRequestSchema, CloudJoinRequestSchema, CloudJoinResultQuerySchema, CloudJoinStatusQuerySchema, CloudMachineSchema, CloudSchema, CompanionEnsureResponseSchema, CompanionWorkspaceFileSchema, ConfirmUploadRequestSchema, ConfirmUploadResponseSchema, ConsumeTransactionSchema, ContactCandidateSchema, ContactSchema, ContactTargetTypeSchema, CreateAgentRequestSchema, CreateAgentResponseSchema, CreateApiKeyRequestSchema, CreateApiKeyResponseSchema, CreateChatRequestSchema, CreateChatResponseSchema, CreateCheckoutRequestSchema, CreateCheckoutResponseSchema, CreateCiRunRequestSchema, CreateCiRunResponseSchema, CreateCloudRequestSchema, CreateCloudResponseSchema, CreateContactRequestSchema, CreateContactResponseSchema, CreateDirectRechargeCheckoutRequestSchema, CreateDirectRechargeCheckoutResponseSchema, CreateDraftAgentRequestSchema, CreateOAuthServerRequestSchema, CreateOAuthServerResponseSchema, CreatePortalRequestSchema, CreatePortalResponseSchema, CreatePrivateCloudInviteRequestSchema, CreatePrivateCloudInviteResponseSchema, CreatePrivateCloudRequestSchema, CreatePrivateCloudResponseSchema, CreateResourceRequestSchema, CreateSubscriptionPlanRequestSchema, CreditsBucketSchema, CreditsPackageSchema, CurrentSubscriptionPlanTypeSchema, DateSchema, DeleteAgentResponseSchema, DeleteApiKeyResponseSchema, DeleteContactResponseSchema, DeleteOAuthServerResponseSchema, DevCreateUserRequestSchema, DevCreateUserResponseSchema, DisplayConfigKeysSchema, DisplayConfigSchema, DraftAgentConfigSchema, DraftAgentSchema, ENTRY_FILE_PATTERNS, EmailLoginCodeRequestSchema, EmailLoginCodeResponseSchema, EmailLoginVerifyRequestSchema, EmailLoginVerifyResponseSchema, EmailPasswordLoginRequestSchema, EmailPasswordLoginResponseSchema, EnsureRepoChatRequestSchema, EnsureRepoChatResponseSchema, EnvironmentVariableSchema, FileItemSchema, FileStatsSchema, FileVisibilitySchema, GetAgentGitUrlResponseSchema, GetAgentResponseSchema, GetChatResponseSchema, GetEnvironmentVariablesResponseSchema, GetGitServerResponseSchema, GetGitUrlQuerySchema, GetGitUrlResponseSchema, GetInstallUrlResponseSchema, GetOAuthServerResponseSchema, GetPrivateCloudRunnerSecretResponseSchema, GetReferenceQuerySchema, GetRepositoryResponseSchema, GetSubscriptionResponseSchema, GetSubscriptionTiersResponseSchema, GetUploadUrlsRequestSchema, GetUploadUrlsResponseSchema, GetUserAgentsResponseSchema, GitHubIssueListItemSchema, GitHubIssueSchema, GitServerAccountInfoSchema, GitServerSchema, IGNORED_DIRECTORIES, IdSchema, JsonSchemaDocumentSchema, ListAdminResourcesResponseSchema, ListAgentsResponseSchema, ListApiKeysQuerySchema, ListApiKeysResponseSchema, ListBranchesResponseSchema, ListChatMembersResponseSchema, ListChatTasksResponseSchema, ListChatsQuerySchema, ListChatsResponseSchema, ListContactsResponseSchema, ListFilesQuerySchema, ListFilesResponseSchema, ListGitServersResponseSchema, ListIssuesQuerySchema, ListIssuesResponseSchema, ListMachineModelsResponseSchema, ListMachinesResponseSchema, ListOAuthServersPublicResponseSchema, ListOAuthServersQuerySchema, ListOAuthServersResponseSchema, ListPackagesQuerySchema, ListPackagesResponseSchema, ListPrivateCloudMembersResponseSchema, ListPrivateCloudsResponseSchema, ListPublicResourcesQuerySchema, ListPublicResourcesResponseSchema, ListReferencesQuerySchema, ListReferencesResponseSchema, ListRepositoriesResponseSchema, ListSubscriptionPlansResponseSchema, ListTransactionsQuerySchema, ListTransactionsResponseSchema, ListUserInboxResponseSchema, LocalMachineSchema, LogoutResponseSchema, MachineApprovalRequestSchema, MachineApprovalStatusQuerySchema, MachineAuthAuthorizedResponseSchema, MachineAuthRequestSchema, MachineAuthResultQuerySchema, MachineUnbindRequestSchema, MachineUnbindResponseSchema, OAuthAccountInfoSchema, OAuthBindCallbackResponseSchema, OAuthBindQuerySchema, OAuthBindResponseSchema, OAuthCallbackQuerySchema, OAuthCallbackResponseSchema, OAuthLoginQuerySchema, OAuthServerPublicSchema, OAuthServerSchema, OAuthUnbindResponseSchema, PaginatedResponseSchema, PreviewMetadata, PrivateCloudEntitlementSchema, PrivateCloudInviteSchema, PrivateCloudMemberSchema, PrivateCloudSummarySchema, ProfileEmailCodeRequestSchema, ProfileEmailCodeResponseSchema, PublicResourceItemSchema, PublishDraftAgentRequestSchema, PublishDraftAgentResponseSchema, RELEVANT_DEPENDENCIES, RTC_CHUNK_HEADER_SIZE, RechargeResponseSchema, RegisterCompanionRequestSchema, RegisterCompanionResponseSchema, RemoveChatMemberRequestSchema, RemovePrivateCloudMemberResponseSchema, RepositoryActorIdentitySchema, RepositoryReferenceCommentSchema, RepositoryReferenceCommentsResponseSchema, RepositoryReferenceDiffSchema, RepositoryReferenceKindSchema, RepositoryReferenceListItemSchema, RepositoryReferenceSchema, RepositorySchema, ResetSecretRequestSchema, ResetSecretResponseSchema, ResolveUserInboxItemResponseSchema, ResourceMetadataSchema, RtcChunkFlags, STATIC_FILE_EXTENSIONS, SearchContactCandidatesQuerySchema, SearchContactCandidatesResponseSchema, SenderTypeSchema, SetEnvironmentVariablesRequestSchema, ShareAuthQuerySchema, ShareAuthResponseSchema, SimpleSuccessSchema, StatsQuerySchema, StopSubscriptionResponseSchema, StripeCheckoutClientSchema, SubscriptionPlanSchema, SubscriptionPlanTypeSchema, SubscriptionSchema, SubscriptionTierSchema, SyncCloudMachineResponseSchema, SyncLocalMachineResponseSchema, SyncMachineModelsRequestSchema, SyncMachineModelsResponseSchema, SyncMachineRequestSchema, TaskSharePermissionsSchema, TaskTransactionsResponseSchema, ToggleApiKeyRequestSchema, ToggleOAuthServerRequestSchema, ToggleOAuthServerResponseSchema, TransactionSchema, UpdateAgentRequestSchema, UpdateAgentResponseSchema, UpdateApiKeyRequestSchema, UpdateDraftAgentRequestSchema, UpdateDraftAgentResponseSchema, UpdateOAuthServerRequestSchema, UpdateOAuthServerResponseSchema, UpdateResourceRequestSchema, UpdateSecretRequestSchema, UpdateSecretResponseSchema, UpdateSubscriptionPlanRequestSchema, UpdateSubscriptionRequestSchema, UpdateSubscriptionResponseSchema, UpdateUserProfileRequestSchema, UpdateUserProfileResponseSchema, UploadUrlResultSchema, UserBalanceResponseSchema, UserBasicInfoSchema, UserEntitlementSchema, UserEntitlementSourceSchema, UserInboxItemSchema, UserInboxStatusSchema, UserInboxSubjectTypeSchema, UserProfileResponseSchema, UserWithOAuthAccountsSchema, ValidateMachineResponseSchema, 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 };
4656
+ export type { AcceptPrivateCloudInviteRequest, AcceptPrivateCloudInviteResponse, AddChatMemberRequest, AddChatMemberResponse, AdminResourceItem, Agent, AgentCustomConfig, AgentPermissions, AgentType, ApiError, ApiKey, ApprovalStatusResponse, AuthPayload, BillingStatsResponse, Branch, CancelCiRunResponse, ChargeTransaction, Chat, ChatMember, ChatMemberInput, ChatType, ChatWithMembers, CiProvider, CiRunContext, CiRunExecution, CiRunGit, CiRunRepo, CiRunResponseMode, CiRunStatus, CiRunStatusResponse, ClientType, Cloud, CloudJoinApprovalRequest, CloudJoinRequest, CloudJoinResultQuery, CloudJoinStatusQuery, CloudMachine, CompanionEnsureResponse, CompanionWorkspaceFile, ConfirmUploadRequest, ConfirmUploadResponse, ConsumeTransaction, Contact, ContactCandidate, ContactTargetType, CreateAgentRequest, CreateAgentResponse, CreateApiKeyRequest, CreateApiKeyResponse, CreateChatRequest, CreateChatResponse, CreateCheckoutRequest, CreateCheckoutResponse, CreateCiRunRequest, CreateCiRunResponse, CreateCloudRequest, CreateCloudResponse, CreateContactRequest, CreateContactResponse, CreateDirectRechargeCheckoutRequest, CreateDirectRechargeCheckoutResponse, CreateDraftAgentRequest, CreateOAuthServerRequest, CreateOAuthServerResponse, CreatePortalRequest, CreatePortalResponse, CreatePrivateCloudInviteRequest, CreatePrivateCloudInviteResponse, CreatePrivateCloudRequest, CreatePrivateCloudResponse, CreateResourceRequest, CreateSubscriptionPlanRequest, CreditsBucket, CreditsPackage, CurrentSubscriptionPlanType, DeleteAgentResponse, DeleteApiKeyResponse, DeleteContactResponse, DeleteOAuthServerResponse, DevCreateUserRequest, DevCreateUserResponse, DisplayConfig, DisplayConfigKeys, DraftAgent, DraftAgentConfig, EmailLoginCodeRequest, EmailLoginCodeResponse, EmailLoginVerifyRequest, EmailLoginVerifyResponse, EmailPasswordLoginRequest, EmailPasswordLoginResponse, EnsureRepoChatRequest, EnsureRepoChatResponse, EnvironmentVariable, FileItem, FileStats, FileSystemAdapter, FileVisibility, GetAgentGitUrlResponse, GetAgentResponse, GetChatResponse, GetEnvironmentVariablesResponse, GetGitServerResponse, GetGitUrlQuery, GetGitUrlResponse, GetInstallUrlResponse, GetOAuthServerResponse, GetPrivateCloudRunnerSecretResponse, GetReferenceQuery, GetRepositoryResponse, GetSubscriptionResponse, GetSubscriptionTiersResponse, GetUploadUrlsRequest, GetUploadUrlsResponse, GetUserAgentsResponse, GitHubIssue, GitHubIssueListItem, GitServer, GitServerAccountInfo, JsonSchemaDocument, ListAdminResourcesResponse, ListAgentsResponse, ListApiKeysQuery, ListApiKeysResponse, ListBranchesResponse, ListChatMembersResponse, ListChatTasksResponse, ListChatsQuery, ListChatsResponse, ListContactsResponse, ListFilesQuery, ListFilesResponse, ListGitServersResponse, ListIssuesQuery, ListIssuesResponse, ListMachineModelsResponse, ListMachinesResponse, ListOAuthServersPublicResponse, ListOAuthServersQuery, ListOAuthServersResponse, ListPackagesQuery, ListPackagesResponse, ListPrivateCloudMembersResponse, ListPrivateCloudsResponse, ListPublicResourcesQuery, ListPublicResourcesResponse, ListReferencesQuery, ListReferencesResponse, ListRepositoriesResponse, ListSubscriptionPlansResponse, ListTransactionsQuery, ListTransactionsResponse, ListUserInboxResponse, LocalMachine, LogoutResponse, MachineApprovalRequest, MachineApprovalStatusQuery, MachineAuthAuthorizedResponse, MachineAuthRequest, MachineAuthResultQuery, MachineEncryptionKey, MachineUnbindRequest, MachineUnbindResponse, OAuthAccountInfo, OAuthBindCallbackResponse, OAuthBindQuery, OAuthBindResponse, OAuthCallbackQuery, OAuthCallbackResponse, OAuthLoginQuery, OAuthServer, OAuthServerPublic, OAuthUnbindResponse, PrivateCloudEntitlement, PrivateCloudInvite, PrivateCloudMember, PrivateCloudSummary, ProfileEmailCodeRequest, ProfileEmailCodeResponse, PublicResourceItem, PublishDraftAgentRequest, PublishDraftAgentResponse, RechargeResponse, RegisterCompanionRequest, RegisterCompanionResponse, RemoveChatMemberRequest, RemovePrivateCloudMemberResponse, Repository, RepositoryActorIdentity, RepositoryReference, RepositoryReferenceComment, RepositoryReferenceCommentsResponse, RepositoryReferenceDiff, RepositoryReferenceKind, RepositoryReferenceListItem, ResetSecretRequest, ResetSecretResponse, ResolveUserInboxItemResponse, ResourceMetadata, RtcChunkFrame, RtcChunkHeader, RtcControlChannel, RtcControlMessage, SearchContactCandidatesQuery, SearchContactCandidatesResponse, SenderType, SetEnvironmentVariablesRequest, ShareAuthQuery, ShareAuthResponse, SimpleSuccess, StatsQuery, StopSubscriptionResponse, StripeCheckoutClient, Subscription, SubscriptionPlan, SubscriptionPlanType, SubscriptionTier, SyncCloudMachineResponse, SyncLocalMachineResponse, SyncMachineModelsRequest, SyncMachineModelsResponse, SyncMachineRequest, TaskEncryptionPayload, TaskSharePermissions, TaskTransactionsResponse, ToggleApiKeyRequest, ToggleOAuthServerRequest, ToggleOAuthServerResponse, Transaction, UpdateAgentRequest, UpdateAgentResponse, UpdateApiKeyRequest, UpdateDraftAgentRequest, UpdateDraftAgentResponse, UpdateOAuthServerRequest, UpdateOAuthServerResponse, UpdateResourceRequest, UpdateSecretRequest, UpdateSecretResponse, UpdateSubscriptionPlanRequest, UpdateSubscriptionRequest, UpdateSubscriptionResponse, UpdateUserProfileRequest, UpdateUserProfileResponse, UploadUrlResult, UserBalanceResponse, UserBasicInfo, UserEntitlement, UserInboxItem, UserInboxStatus, UserInboxSubjectType, UserProfileResponse, UserWithOAuthAccounts, ValidateMachineResponse };
package/dist/node.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { eX as LoadAgentOptions, eV as AgentConfig, eW as ValidationResult, eS as FrameworkType } from './errors-BQihmdbe.cjs';
2
- export { f3 as AgentConfigValidationError, eO as AgentContext, f1 as AgentError, f5 as AgentLoadError, eT as AgentMetadata, e$ as AgentMetadataSchema, f2 as AgentNotFoundError, eP as AgentrixContext, eU as ClaudeAgentConfig, f0 as ClaudeConfigSchema, e_ as FRAMEWORK_TYPES, f4 as FrameworkNotSupportedError, eZ as HookFactory, f6 as MissingAgentFileError, eY as RepositoryInitHookInput, eR as getAgentContext, eQ as setAgentContext } from './errors-BQihmdbe.cjs';
1
+ import { f8 as LoadAgentOptions, f6 as AgentConfig, f7 as ValidationResult, f3 as FrameworkType } from './errors-Dh7ZWjDu.cjs';
2
+ export { fg as AgentConfigValidationError, e$ as AgentContext, fe as AgentError, fi as AgentLoadError, f4 as AgentMetadata, fc as AgentMetadataSchema, ff as AgentNotFoundError, f0 as AgentrixContext, f5 as ClaudeAgentConfig, fd as ClaudeConfigSchema, fb as FRAMEWORK_TYPES, fh as FrameworkNotSupportedError, fa as HookFactory, fj as MissingAgentFileError, f9 as RepositoryInitHookInput, f2 as getAgentContext, f1 as setAgentContext } from './errors-Dh7ZWjDu.cjs';
3
3
  export { buildGitLabWebhookEndpointPath, buildGitLabWebhookUrl } from './gitlabWebhook.cjs';
4
4
  import '@anthropic-ai/claude-agent-sdk';
5
5
  import 'zod';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentrix/shared",
3
- "version": "2.23.0",
3
+ "version": "2.26.0",
4
4
  "description": "Shared types and schemas for Agentrix projects",
5
5
  "main": "./dist/index.cjs",
6
6
  "types": "./dist/index.d.cts",