The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 03:37 UTC
| 1 | import { |
| 2 | OrchestrationV2SearchThreadError, |
| 3 | OrchestrationV2SearchThreadInput, |
| 4 | OrchestrationV2SearchThreadResult, |
| 5 | OrchestrationV2SearchThreadsInput, |
| 6 | OrchestrationV2SearchThreadsResult, |
| 7 | } from "./orchestrationV2.ts"; |
| 8 | import { OrchestrationDispatchCommandError } from "./orchestrationDispatch.ts"; |
| 9 | import { |
| 10 | McpAppCallToolInput, |
| 11 | McpAppCallToolResult, |
| 12 | McpAppReadResourceInput, |
| 13 | McpAppReadResourceResult, |
| 14 | McpAppRequestError, |
| 15 | McpAppToolInfo, |
| 16 | McpAppToolInfoInput, |
| 17 | McpAppUpdateModelContextInput, |
| 18 | } from "./mcpApps.ts"; |
| 19 | import { |
| 20 | PeerLink, |
| 21 | PeerLinkClientPairingInput, |
| 22 | PeerLinkClientPairingResult, |
| 23 | PeerLinkCreateInput, |
| 24 | PeerLinkError, |
| 25 | PeerLinkName, |
| 26 | PeerLinkRemoveInput, |
| 27 | PeerLinkRemoveResult, |
| 28 | PeerLinkRequestAnswerInput, |
| 29 | PeerLinkRequestError, |
| 30 | PeerLinkSummary, |
| 31 | PeerLinkThreadHistoryInput, |
| 32 | PeerLinkThreadInput, |
| 33 | PeerLinkThreadItemInput, |
| 34 | PeerLinkThreadReadError, |
| 35 | } from "./peerLink.ts"; |
| 36 | import { |
| 37 | ChatGptReconnectProfileInput, |
| 38 | ChatGptReconnectProfile, |
| 39 | ChatGptImportProfileInput, |
| 40 | ChatGptHandoffInput, |
| 41 | ChatGptHandoffState, |
| 42 | } from "./providerSetup.ts"; |
| 43 | import * as Schema from "effect/Schema"; |
| 44 | import * as Rpc from "effect/rpc/Rpc"; |
| 45 | import * as RpcGroup from "effect/rpc/RpcGroup"; |
| 46 | import * as RpcMiddleware from "effect/rpc/RpcMiddleware"; |
| 47 | import { NonNegativeInt, TrimmedNonEmptyString } from "./baseSchemas.ts"; |
| 48 | import { SecretSourceCheckResult } from "./settingsSecretValue.ts"; |
| 49 | import { SecretReference } from "./secretReference.ts"; |
| 50 | import { |
| 51 | ProviderAuthCancelInput, |
| 52 | ProviderAuthCompleteInput, |
| 53 | ProviderAuthState, |
| 54 | ProviderAuthStartInput, |
| 55 | ProviderAuthRemoveMethodInput, |
| 56 | ProviderAuthRespondInput, |
| 57 | ProviderInstallCancelInput, |
| 58 | ProviderInstallState, |
| 59 | ProviderSetupError, |
| 60 | ProviderSetupInput, |
| 61 | } from "./providerSetup.ts"; |
| 62 | |
| 63 | import { |
| 64 | AcpRegistryAcceptUrlAuthInput, |
| 65 | AcpRegistryAcceptUrlAuthResult, |
| 66 | AcpRegistryDeleteSessionInput, |
| 67 | AcpRegistryDeleteSessionResult, |
| 68 | AcpRegistryDisableProviderInput, |
| 69 | AcpRegistryDisableProviderResult, |
| 70 | AcpRegistryImportSessionInput, |
| 71 | AcpRegistryImportSessionResult, |
| 72 | AcpRegistryListSessionsInput, |
| 73 | AcpRegistryListSessionsResult, |
| 74 | AcpRegistryListProvidersInput, |
| 75 | AcpRegistryListProvidersResult, |
| 76 | AcpRegistryLogoutInput, |
| 77 | AcpRegistryLogoutResult, |
| 78 | AcpRegistryManagedBinaryUninstallInput, |
| 79 | AcpRegistryManagedBinaryUninstallResult, |
| 80 | AcpRegistryOperationError, |
| 81 | AcpRegistryPrepareInput, |
| 82 | AcpRegistryPrepareResult, |
| 83 | AcpRegistrySearchInput, |
| 84 | AcpRegistrySearchResult, |
| 85 | AcpRegistrySetProviderInput, |
| 86 | AcpRegistrySetProviderResult, |
| 87 | } from "./acpRegistry.ts"; |
| 88 | import { ExternalLauncherError, LaunchEditorInput } from "./editor.ts"; |
| 89 | import { |
| 90 | AuthAccessStreamError, |
| 91 | AuthAccessStreamEvent, |
| 92 | EnvironmentAuthorizationError, |
| 93 | } from "./auth.ts"; |
| 94 | import { ClientActivityReportInput } from "./background.ts"; |
| 95 | import { |
| 96 | FilesystemGetMetadataInput, |
| 97 | FilesystemGetMetadataResult, |
| 98 | FilesystemBrowseInput, |
| 99 | FilesystemBrowseResult, |
| 100 | FilesystemBrowseError, |
| 101 | } from "./filesystem.ts"; |
| 102 | import { |
| 103 | AgentSessionImportInput, |
| 104 | AgentSessionImportProjectChangedError, |
| 105 | AgentSessionImportProjectNotFoundError, |
| 106 | AgentSessionImportResult, |
| 107 | AgentSessionScanInput, |
| 108 | AgentSessionScanResult, |
| 109 | AgentSessionScanError, |
| 110 | } from "./agentSessions.ts"; |
| 111 | import { |
| 112 | AssetAccessError, |
| 113 | AssetCreateUrlInput, |
| 114 | AssetCreateUrlResult, |
| 115 | AttachmentCreateUploadUrlInput, |
| 116 | AttachmentCreateUploadUrlResult, |
| 117 | AttachmentDeleteInput, |
| 118 | AttachmentUploadSigningKeyError, |
| 119 | } from "./assets.ts"; |
| 120 | import { |
| 121 | PersistChatAttachmentsError, |
| 122 | PersistChatAttachmentsInput, |
| 123 | PersistChatAttachmentsResult, |
| 124 | } from "./chatAttachment.ts"; |
| 125 | import { |
| 126 | OrchestrationGetFullThreadDiffError, |
| 127 | OrchestrationGetTurnDiffError, |
| 128 | } from "./checkpointDiff.ts"; |
| 129 | import { |
| 130 | WorktreeSetupCancelInput, |
| 131 | WorktreeSetupCancelResult, |
| 132 | WorktreeSetupStreamEvent, |
| 133 | WorktreeSetupSubscribeInput, |
| 134 | } from "./worktreeSetup.ts"; |
| 135 | import { |
| 136 | GitActionProgressEvent, |
| 137 | VcsSwitchRefInput, |
| 138 | VcsSwitchRefResult, |
| 139 | GitCommandError, |
| 140 | VcsCreateRefInput, |
| 141 | VcsCreateRefResult, |
| 142 | VcsCreateWorktreeInput, |
| 143 | VcsCreateWorktreeResult, |
| 144 | VcsInitInput, |
| 145 | VcsListRefsInput, |
| 146 | VcsListRefsResult, |
| 147 | GitManagerServiceError, |
| 148 | GitPreparePullRequestThreadInput, |
| 149 | GitPreparePullRequestThreadResult, |
| 150 | VcsPullInput, |
| 151 | GitPullRequestRefInput, |
| 152 | VcsPullResult, |
| 153 | VcsRemoveWorktreeInput, |
| 154 | GitResolvePullRequestResult, |
| 155 | GitRunStackedActionInput, |
| 156 | VcsStatusInput, |
| 157 | VcsBranchStatus, |
| 158 | VcsStatusSubscriptionInput, |
| 159 | VcsStatusResult, |
| 160 | VcsStatusStreamEvent, |
| 161 | } from "./git.ts"; |
| 162 | import { |
| 163 | ReviewBranchCommitsInput, |
| 164 | ReviewBranchCommitsResult, |
| 165 | ReviewDiffFileContentsInput, |
| 166 | ReviewDiffFileContentsResult, |
| 167 | ReviewDiffPreviewError, |
| 168 | ReviewDiffPreviewInput, |
| 169 | ReviewDiffPreviewResult, |
| 170 | } from "./review.ts"; |
| 171 | import { KeybindingsConfigError } from "./keybindings.ts"; |
| 172 | import { OrchestrationSearchThreadsError } from "./threadSearch.ts"; |
| 173 | import { |
| 174 | ProviderMcpSignInCompleteInput, |
| 175 | ProviderMcpSignInCompleteResult, |
| 176 | ProviderMcpSignInError, |
| 177 | ProviderMcpSignInStartInput, |
| 178 | ProviderMcpSignInStartResult, |
| 179 | ProviderUploadFeedbackError, |
| 180 | ProviderUploadFeedbackInput, |
| 181 | ProviderUploadFeedbackResult, |
| 182 | } from "./provider.ts"; |
| 183 | import { ProviderInstanceId, ProviderInstanceMutation } from "./providerInstance.ts"; |
| 184 | import { |
| 185 | IssueCandidates, |
| 186 | IssueCommentInput, |
| 187 | IssueCommentsPage, |
| 188 | IssueCommentsPageInput, |
| 189 | IssueCreateInput, |
| 190 | IssueCreateResult, |
| 191 | IssueDetail, |
| 192 | IssueLinkedThreadsResult, |
| 193 | IssueListInput, |
| 194 | IssueListResult, |
| 195 | IssueOperationError, |
| 196 | IssueReactionInput, |
| 197 | IssueRef, |
| 198 | IssueScopeRef, |
| 199 | IssueSetStateInput, |
| 200 | IssueTemplateList, |
| 201 | IssueTrackerBindProjectInput, |
| 202 | IssueTrackerConnectInput, |
| 203 | IssueTrackerConnection, |
| 204 | IssueTrackerConnectionError, |
| 205 | IssueTrackerConnectionList, |
| 206 | IssueUnavailableError, |
| 207 | IssueUpdateInput, |
| 208 | ThreadIssueKey, |
| 209 | } from "./issue.ts"; |
| 210 | import { |
| 211 | GuestShareCreateError, |
| 212 | GuestShareCreateInput, |
| 213 | GuestShareCreateResult, |
| 214 | } from "./guestShare.ts"; |
| 215 | import { PullRequestReviewGuideResult } from "./pullRequestReviewGuide.ts"; |
| 216 | import { |
| 217 | PullRequestActionInput, |
| 218 | PullRequestActivity, |
| 219 | PullRequestChangeBreakdown, |
| 220 | PullRequestCommentInput, |
| 221 | PullRequestCommentUpdateInput, |
| 222 | PullRequestDetail, |
| 223 | PullRequestPreview, |
| 224 | PullRequestChecks, |
| 225 | PullRequestDiffFileContentsInput, |
| 226 | PullRequestDiffFileContentsResult, |
| 227 | PullRequestFilesViewedResult, |
| 228 | PullRequestInvalidateInput, |
| 229 | PullRequestReportStateInput, |
| 230 | PullRequestListInput, |
| 231 | PullRequestListResult, |
| 232 | PullRequestListStatsInput, |
| 233 | PullRequestListStatsResult, |
| 234 | PullRequestFilterOptions, |
| 235 | PullRequestFilterOptionsInput, |
| 236 | PullRequestOperationError, |
| 237 | PullRequestReactionInput, |
| 238 | PullRequestRef, |
| 239 | PullRequestRoutingResult, |
| 240 | PullRequestRoutingIdentityInput, |
| 241 | PullRequestRoutingIdentityResult, |
| 242 | PullRequestStack, |
| 243 | PullRequestLinkedThreadsResult, |
| 244 | PullRequestSummary, |
| 245 | PullRequestReviewerCandidateList, |
| 246 | PullRequestReviewerCandidatesInput, |
| 247 | PullRequestReviewerRequestInput, |
| 248 | PullRequestLabelCandidateList, |
| 249 | PullRequestLabelChangeInput, |
| 250 | PullRequestSetFilesViewedInput, |
| 251 | PullRequestSubmitReviewInput, |
| 252 | PullRequestThreadCommentsInput, |
| 253 | PullRequestThreadCommentsResult, |
| 254 | PullRequestThreadReplyInput, |
| 255 | PullRequestThreadResolutionInput, |
| 256 | PullRequestUnavailableError, |
| 257 | PullRequestUpdateInput, |
| 258 | } from "./pullRequest.ts"; |
| 259 | import { |
| 260 | RelayClientInstallFailedError, |
| 261 | RelayClientInstallProgressEventSchema, |
| 262 | RelayClientStatusSchema, |
| 263 | } from "./relayClient.ts"; |
| 264 | import { |
| 265 | ORCHESTRATION_V2_WS_METHODS, |
| 266 | OrchestrationGetWorkflowScriptError, |
| 267 | OrchestrationV2GetNativeChildWorkError, |
| 268 | OrchestrationV2StopWorkflowError, |
| 269 | OrchestrationV2ForceStopThreadError, |
| 270 | OrchestrationV2DispatchCommandError, |
| 271 | OrchestrationV2GetShellSnapshotError, |
| 272 | OrchestrationV2CommandOutputError, |
| 273 | OrchestrationV2GetThreadProjectionError, |
| 274 | OrchestrationV2RpcSchemas, |
| 275 | OrchestrationV2ThreadHistoryPage, |
| 276 | OrchestrationV2ThreadLaunchError, |
| 277 | } from "./orchestrationV2.ts"; |
| 278 | import { |
| 279 | ProjectCreateNewInput, |
| 280 | ProjectCreateNewResult, |
| 281 | ProjectCreateFromThreadInput, |
| 282 | ProjectCreateFromThreadResult, |
| 283 | ProjectEnsureScratchResult, |
| 284 | ProjectListEntriesError, |
| 285 | ProjectListEntriesInput, |
| 286 | ProjectListEntriesResult, |
| 287 | ProjectListIgnoredFilesInput, |
| 288 | ProjectListIgnoredFilesResult, |
| 289 | ProjectReadFileError, |
| 290 | ProjectReadFileInput, |
| 291 | ProjectReadFileResult, |
| 292 | ProjectSearchContentsError, |
| 293 | ProjectSearchContentsInput, |
| 294 | ProjectSearchContentsResult, |
| 295 | ProjectSearchEntriesError, |
| 296 | ProjectSearchEntriesInput, |
| 297 | ProjectSearchEntriesResult, |
| 298 | ProjectWriteFileError, |
| 299 | ProjectWriteFileInput, |
| 300 | ProjectWriteFileResult, |
| 301 | } from "./project.ts"; |
| 302 | import { |
| 303 | TerminalAttachInput, |
| 304 | TerminalObserveInput, |
| 305 | TerminalAttachStreamEvent, |
| 306 | TerminalClearInput, |
| 307 | TerminalCloseInput, |
| 308 | TerminalError, |
| 309 | TerminalMetadataStreamEvent, |
| 310 | TerminalOpenInput, |
| 311 | TerminalResizeInput, |
| 312 | TerminalSessionSnapshot, |
| 313 | TerminalWriteInput, |
| 314 | } from "./terminal.ts"; |
| 315 | import { |
| 316 | DiscoveredLocalServerList, |
| 317 | ConfiguredLocalServerUrls, |
| 318 | PreviewCloseInput, |
| 319 | PreviewError, |
| 320 | PreviewEvent, |
| 321 | PreviewListInput, |
| 322 | PreviewListResult, |
| 323 | PreviewClearProfileError, |
| 324 | PreviewClearProfileInput, |
| 325 | PreviewReportProfilesInput, |
| 326 | PreviewStopLocalServerError, |
| 327 | PreviewStopLocalServerInput, |
| 328 | PreviewOpenInput, |
| 329 | PreviewReportStatusInput, |
| 330 | PreviewResizeInput, |
| 331 | PreviewAdjustInput, |
| 332 | PreviewSessionSnapshot, |
| 333 | } from "./preview.ts"; |
| 334 | import { |
| 335 | DeviceActionInput, |
| 336 | DeviceCloseInput, |
| 337 | DeviceConfigureInput, |
| 338 | DeviceDetail, |
| 339 | DeviceDetailInput, |
| 340 | DeviceError, |
| 341 | DeviceListInput, |
| 342 | SshDeviceHostConfig, |
| 343 | DeviceEasAccount, |
| 344 | DeviceEasAccountError, |
| 345 | DeviceEasAccountInput, |
| 346 | DeviceSimlockIdentity, |
| 347 | DeviceSimlockIdentityError, |
| 348 | DeviceSimlockIdentityInput, |
| 349 | DeviceHostSummary, |
| 350 | DeviceOpenInput, |
| 351 | DeviceServiceState, |
| 352 | DeviceSession, |
| 353 | DeviceShutdownInput, |
| 354 | } from "./device.ts"; |
| 355 | import { |
| 356 | ServerConfigStreamEvent, |
| 357 | DesktopUpdateCommitInput, |
| 358 | OtlpEndpointCheckInput, |
| 359 | ServerPrepareTriageError, |
| 360 | ServerPrepareTriageInput, |
| 361 | ServerPrepareTriageResult, |
| 362 | OtlpEndpointCheckResult, |
| 363 | ServerConfig, |
| 364 | ServerProviderUpdateError, |
| 365 | ServerProviderUpdateInput, |
| 366 | ServerLifecycleStreamEvent, |
| 367 | ServerRemoveKeybindingInput, |
| 368 | ServerRemoveKeybindingResult, |
| 369 | ServerProviderUpdatedPayload, |
| 370 | ServerSelfUpdateError, |
| 371 | ServerNpmRelease, |
| 372 | ServerNpmReleaseError, |
| 373 | ServerNpmReleaseInput, |
| 374 | ServerSelfUpdateInput, |
| 375 | ServerSelfUpdateProgressEvent, |
| 376 | ServerSelfUpdateResult, |
| 377 | ServerTraceDiagnosticsResult, |
| 378 | ServerProcessDiagnosticsResult, |
| 379 | ServerProcessResourceHistoryInput, |
| 380 | ServerProcessResourceHistoryResult, |
| 381 | ServerSignalProcessInput, |
| 382 | ServerSignalProcessResult, |
| 383 | ServerUpsertKeybindingInput, |
| 384 | ServerUpsertKeybindingResult, |
| 385 | } from "./server.ts"; |
| 386 | import { |
| 387 | HostResourcesSnapshot, |
| 388 | ResourceTelemetryHistory, |
| 389 | ResourceTelemetryHistoryInput, |
| 390 | ResourceTelemetryRetryResult, |
| 391 | ResourceTelemetrySnapshot, |
| 392 | } from "./resourceTelemetry.ts"; |
| 393 | import { |
| 394 | UsageLimitSourceError, |
| 395 | ProviderConsumeResetCreditInput, |
| 396 | ProviderConsumeResetCreditResult, |
| 397 | } from "./providerUsageLimits.ts"; |
| 398 | import { UsagePricing, UsageReadError, UsageSummary, UsageSummaryInput } from "./usage.ts"; |
| 399 | import { |
| 400 | StorageCleanupReport, |
| 401 | DatabaseReclaimError, |
| 402 | DatabaseStorageStatus, |
| 403 | ServerSettings, |
| 404 | ServerSettingsError, |
| 405 | ClientServerSettingsPatch, |
| 406 | ListTextGeneratorModelsInput, |
| 407 | ListTextGeneratorModelsResult, |
| 408 | TextGeneratorError, |
| 409 | } from "./settings.ts"; |
| 410 | import { |
| 411 | ScheduledTaskDeleteInput, |
| 412 | ScheduledTaskDeleteResult, |
| 413 | ScheduledTaskError, |
| 414 | ScheduledTaskListInput, |
| 415 | ScheduledTaskListResult, |
| 416 | ScheduledTaskRunNowInput, |
| 417 | ScheduledTaskRotateWebhookTokenInput, |
| 418 | ScheduledTaskListWebhookDeliveriesInput, |
| 419 | ScheduledTaskListWebhookDeliveriesResult, |
| 420 | ScheduledTaskGetWebhookDeliveryInput, |
| 421 | ScheduledTaskGetWebhookDeliveryResult, |
| 422 | ScheduledTaskRunNowResult, |
| 423 | ScheduledTaskSetEnabledInput, |
| 424 | ScheduledTaskUpsertInput, |
| 425 | ScheduledTaskMutationResult, |
| 426 | } from "./scheduledTask.ts"; |
| 427 | import { SecretRequestAnswerInput, SecretRequestError } from "./secretRequest.ts"; |
| 428 | import { |
| 429 | ProjectCloneActionInput, |
| 430 | ProjectCloneActionResult, |
| 431 | ProjectCloneListEvent, |
| 432 | ProjectCloneStartInput, |
| 433 | ProjectCloneStartResult, |
| 434 | ProjectCloneSubscribeInput, |
| 435 | } from "./projectClone.ts"; |
| 436 | import { |
| 437 | SourceControlCloneRepositoryInput, |
| 438 | SourceControlCloneRepositoryResult, |
| 439 | SourceControlDiscoveryResult, |
| 440 | SourceControlPublishRepositoryInput, |
| 441 | SourceControlPublishRepositoryResult, |
| 442 | SourceControlRepositoryError, |
| 443 | SourceControlRepositoryInfo, |
| 444 | SourceControlRepositoryLookupInput, |
| 445 | SourceControlAppAccess, |
| 446 | SourceControlAppAccessInput, |
| 447 | SourceControlStarredInput, |
| 448 | SourceControlSignInError, |
| 449 | SourceControlSignInInput, |
| 450 | SourceControlSignInPrompt, |
| 451 | SourceControlSignInResult, |
| 452 | } from "./sourceControl.ts"; |
| 453 | import { VcsError } from "./vcs.ts"; |
| 454 | import { Project, ProjectMutation, ProjectMutationError } from "./project.ts"; |
| 455 | |
| 456 | export const WS_METHODS = { |
| 457 | projectsListEntries: "projects.listEntries", |
| 458 | projectsListIgnoredFiles: "projects.listIgnoredFiles", |
| 459 | projectsReadFile: "projects.readFile", |
| 460 | projectsSearchContents: "projects.searchContents", |
| 461 | projectsSearchEntries: "projects.searchEntries", |
| 462 | projectsWriteFile: "projects.writeFile", |
| 463 | projectsMutate: "projects.mutate", |
| 464 | projectsEnsureScratch: "projects.ensureScratch", |
| 465 | projectsCreateNew: "projects.createNew", |
| 466 | projectsCreateFromThread: "projects.createFromThread", |
| 467 | |
| 468 | shellOpenInEditor: "shell.openInEditor", |
| 469 | |
| 470 | filesystemBrowse: "filesystem.browse", |
| 471 | filesystemGetMetadata: "filesystem.getMetadata", |
| 472 | agentSessionsScan: "agentSessions.scan", |
| 473 | agentSessionsImport: "agentSessions.import", |
| 474 | assetsCreateUrl: "assets.createUrl", |
| 475 | assetsPersistChatAttachments: "assets.persistChatAttachments", |
| 476 | attachmentsCreateUploadUrl: "attachments.createUploadUrl", |
| 477 | attachmentsDelete: "attachments.delete", |
| 478 | |
| 479 | mcpAppsCallTool: "mcpApps.callTool", |
| 480 | mcpAppsToolInfo: "mcpApps.toolInfo", |
| 481 | mcpAppsReadResource: "mcpApps.readResource", |
| 482 | mcpAppsUpdateModelContext: "mcpApps.updateModelContext", |
| 483 | |
| 484 | providerUploadFeedback: "provider.uploadFeedback", |
| 485 | providerMcpSignInStart: "provider.mcpSignIn.start", |
| 486 | providerMcpSignInComplete: "provider.mcpSignIn.complete", |
| 487 | providerAuthStart: "provider.auth.start", |
| 488 | providerConsumeResetCredit: "provider.consumeResetCredit", |
| 489 | providerAuthComplete: "provider.auth.complete", |
| 490 | chatGptReconnectProfile: "provider.chatgpt.reconnect-profile", |
| 491 | chatGptImportProfile: "provider.chatgpt.import-profile", |
| 492 | chatGptHandoffSubscribe: "provider.chatgpt.handoff.subscribe", |
| 493 | providerAuthRespond: "provider.auth.respond", |
| 494 | providerAuthCancel: "provider.auth.cancel", |
| 495 | providerAuthRemoveMethod: "provider.auth.removeMethod", |
| 496 | providerAuthLogout: "provider.auth.logout", |
| 497 | providerAuthSubscribe: "provider.auth.subscribe", |
| 498 | providerInstallStart: "provider.install.start", |
| 499 | providerInstallCancel: "provider.install.cancel", |
| 500 | providerInstallSubscribe: "provider.install.subscribe", |
| 501 | providerInstallRemove: "provider.install.remove", |
| 502 | |
| 503 | vcsPull: "vcs.pull", |
| 504 | vcsRefreshStatus: "vcs.refreshStatus", |
| 505 | vcsListRefs: "vcs.listRefs", |
| 506 | vcsCreateWorktree: "vcs.createWorktree", |
| 507 | vcsRemoveWorktree: "vcs.removeWorktree", |
| 508 | vcsCreateRef: "vcs.createRef", |
| 509 | vcsSwitchRef: "vcs.switchRef", |
| 510 | vcsInit: "vcs.init", |
| 511 | |
| 512 | gitRunStackedAction: "git.runStackedAction", |
| 513 | gitResolvePullRequest: "git.resolvePullRequest", |
| 514 | gitPreparePullRequestThread: "git.preparePullRequestThread", |
| 515 | |
| 516 | reviewGetBranchCommits: "review.getBranchCommits", |
| 517 | reviewGetDiffPreview: "review.getDiffPreview", |
| 518 | reviewGetDiffFileContents: "review.getDiffFileContents", |
| 519 | |
| 520 | terminalOpen: "terminal.open", |
| 521 | terminalAttach: "terminal.attach", |
| 522 | terminalObserve: "terminal.observe", |
| 523 | terminalWrite: "terminal.write", |
| 524 | terminalResize: "terminal.resize", |
| 525 | terminalClear: "terminal.clear", |
| 526 | terminalClose: "terminal.close", |
| 527 | |
| 528 | previewOpen: "preview.open", |
| 529 | previewResize: "preview.resize", |
| 530 | previewAdjust: "preview.adjust", |
| 531 | previewClose: "preview.close", |
| 532 | previewList: "preview.list", |
| 533 | previewClearProfile: "preview.clearProfile", |
| 534 | previewReportProfiles: "preview.reportProfiles", |
| 535 | previewReportStatus: "preview.reportStatus", |
| 536 | previewStopLocalServer: "preview.stopLocalServer", |
| 537 | |
| 538 | deviceConfigure: "device.configure", |
| 539 | deviceList: "device.list", |
| 540 | deviceTestHost: "device.testHost", |
| 541 | deviceEasAccount: "device.easAccount", |
| 542 | deviceSimlockIdentity: "device.simlockIdentity", |
| 543 | deviceOpen: "device.open", |
| 544 | deviceClose: "device.close", |
| 545 | deviceShutdown: "device.shutdown", |
| 546 | deviceDetail: "device.detail", |
| 547 | deviceAction: "device.action", |
| 548 | |
| 549 | serverProbe: "server.probe", |
| 550 | serverGetConfig: "server.getConfig", |
| 551 | serverGetNpmRelease: "server.getNpmRelease", |
| 552 | serverRefreshProviders: "server.refreshProviders", |
| 553 | serverUpdateProvider: "server.updateProvider", |
| 554 | serverUpdateServer: "server.updateServer", |
| 555 | serverUpdateServerWithProgress: "server.updateServerWithProgress", |
| 556 | serverCommitDesktopUpdate: "server.commitDesktopUpdate", |
| 557 | serverUpsertKeybinding: "server.upsertKeybinding", |
| 558 | serverRemoveKeybinding: "server.removeKeybinding", |
| 559 | serverRunStorageCleanup: "server.runStorageCleanup", |
| 560 | serverGetStorageCleanupReport: "server.getStorageCleanupReport", |
| 561 | serverGetDatabaseStorage: "server.getDatabaseStorage", |
| 562 | serverReclaimDatabaseSpace: "server.reclaimDatabaseSpace", |
| 563 | peerLinksList: "peerLinks.list", |
| 564 | peerLinksNames: "peerLinks.names", |
| 565 | peerLinksLink: "peerLinks.link", |
| 566 | peerLinksUnlink: "peerLinks.unlink", |
| 567 | peerLinksAnswerRequest: "peerLinks.answerRequest", |
| 568 | peerLinksSubscribeThread: "peerLinks.subscribeThread", |
| 569 | peerLinksThreadHistoryPage: "peerLinks.threadHistoryPage", |
| 570 | peerLinksThreadItem: "peerLinks.threadItem", |
| 571 | peerLinksPairClient: "peerLinks.pairClient", |
| 572 | serverGetSettings: "server.getSettings", |
| 573 | serverUpdateSettings: "server.updateSettings", |
| 574 | serverDiscoverSourceControl: "server.discoverSourceControl", |
| 575 | serverCheckSecretSource: "server.checkSecretSource", |
| 576 | serverSearchAcpRegistry: "server.searchAcpRegistry", |
| 577 | serverPrepareAcpRegistryAgent: "server.prepareAcpRegistryAgent", |
| 578 | serverUninstallAcpRegistryManagedBinary: "server.uninstallAcpRegistryManagedBinary", |
| 579 | serverAcceptAcpRegistryUrlAuth: "server.acceptAcpRegistryUrlAuth", |
| 580 | serverListAcpRegistrySessions: "server.listAcpRegistrySessions", |
| 581 | serverImportAcpRegistrySession: "server.importAcpRegistrySession", |
| 582 | serverDeleteAcpRegistrySession: "server.deleteAcpRegistrySession", |
| 583 | serverListAcpRegistryProviders: "server.listAcpRegistryProviders", |
| 584 | serverSetAcpRegistryProvider: "server.setAcpRegistryProvider", |
| 585 | serverDisableAcpRegistryProvider: "server.disableAcpRegistryProvider", |
| 586 | serverLogoutAcpRegistry: "server.logoutAcpRegistry", |
| 587 | serverGetTraceDiagnostics: "server.getTraceDiagnostics", |
| 588 | serverGetProcessDiagnostics: "server.getProcessDiagnostics", |
| 589 | serverGetHostResources: "server.getHostResources", |
| 590 | serverGetProcessResourceHistory: "server.getProcessResourceHistory", |
| 591 | serverGetResourceTelemetryHistory: "server.getResourceTelemetryHistory", |
| 592 | serverRetryResourceTelemetry: "server.retryResourceTelemetry", |
| 593 | serverCheckOtlpEndpoint: "server.checkOtlpEndpoint", |
| 594 | serverListTextGeneratorModels: "server.listTextGeneratorModels", |
| 595 | serverPrepareTriage: "server.prepareTriage", |
| 596 | serverSignalProcess: "server.signalProcess", |
| 597 | serverReportClientActivity: "server.reportClientActivity", |
| 598 | serverGetUsageSummary: "server.getUsageSummary", |
| 599 | serverRefreshUsageRates: "server.refreshUsageRates", |
| 600 | |
| 601 | scheduledTasksSubscribe: "scheduledTasks.subscribe", |
| 602 | scheduledTasksUpsert: "scheduledTasks.upsert", |
| 603 | scheduledTasksSetEnabled: "scheduledTasks.setEnabled", |
| 604 | scheduledTasksDelete: "scheduledTasks.delete", |
| 605 | scheduledTasksRunNow: "scheduledTasks.runNow", |
| 606 | scheduledTasksRotateWebhookToken: "scheduledTasks.rotateWebhookToken", |
| 607 | secretsAnswerRequest: "secrets.answerRequest", |
| 608 | guestShareCreate: "guestShare.create", |
| 609 | scheduledTasksListWebhookDeliveries: "scheduledTasks.listWebhookDeliveries", |
| 610 | scheduledTasksGetWebhookDelivery: "scheduledTasks.getWebhookDelivery", |
| 611 | |
| 612 | cloudGetRelayClientStatus: "cloud.getRelayClientStatus", |
| 613 | cloudInstallRelayClient: "cloud.installRelayClient", |
| 614 | |
| 615 | pullRequestsList: "pullRequests.list", |
| 616 | pullRequestsListStats: "pullRequests.listStats", |
| 617 | pullRequestsFilterOptions: "pullRequests.filterOptions", |
| 618 | pullRequestsSummary: "pullRequests.summary", |
| 619 | pullRequestsRouting: "pullRequests.routing", |
| 620 | pullRequestsRoutingIdentity: "pullRequests.routingIdentity", |
| 621 | pullRequestsStack: "pullRequests.stack", |
| 622 | pullRequestsLinkedThreads: "pullRequests.linkedThreads", |
| 623 | pullRequestsDetail: "pullRequests.detail", |
| 624 | pullRequestsPreview: "pullRequests.preview", |
| 625 | pullRequestsChecks: "pullRequests.checks", |
| 626 | pullRequestsActivity: "pullRequests.activity", |
| 627 | pullRequestsReviewGuide: "pullRequests.reviewGuide", |
| 628 | pullRequestsGenerateReviewGuide: "pullRequests.generateReviewGuide", |
| 629 | pullRequestsThreadComments: "pullRequests.threadComments", |
| 630 | pullRequestsDiffFileContents: "pullRequests.diffFileContents", |
| 631 | pullRequestsFilesViewed: "pullRequests.filesViewed", |
| 632 | pullRequestsChangeBreakdown: "pullRequests.changeBreakdown", |
| 633 | pullRequestsSetFilesViewed: "pullRequests.setFilesViewed", |
| 634 | pullRequestsRunAction: "pullRequests.runAction", |
| 635 | pullRequestsUpdate: "pullRequests.update", |
| 636 | pullRequestsComment: "pullRequests.comment", |
| 637 | pullRequestsUpdateComment: "pullRequests.updateComment", |
| 638 | pullRequestsSubmitReview: "pullRequests.submitReview", |
| 639 | pullRequestsReplyToThread: "pullRequests.replyToThread", |
| 640 | pullRequestsSetThreadResolution: "pullRequests.setThreadResolution", |
| 641 | pullRequestsSetReaction: "pullRequests.setReaction", |
| 642 | pullRequestsInvalidate: "pullRequests.invalidate", |
| 643 | pullRequestsReportState: "pullRequests.reportState", |
| 644 | pullRequestsSubscribeRefreshes: "pullRequests.subscribeRefreshes", |
| 645 | pullRequestsSubscribeLinkedThreadRefreshes: "pullRequests.subscribeLinkedThreadRefreshes", |
| 646 | pullRequestsReviewerCandidates: "pullRequests.reviewerCandidates", |
| 647 | pullRequestsRequestReviewers: "pullRequests.requestReviewers", |
| 648 | pullRequestsLabelCandidates: "pullRequests.labelCandidates", |
| 649 | pullRequestsSetLabels: "pullRequests.setLabels", |
| 650 | |
| 651 | // Issue tracking methods |
| 652 | issuesList: "issues.list", |
| 653 | issuesDetail: "issues.detail", |
| 654 | issuesComments: "issues.comments", |
| 655 | issuesTemplates: "issues.templates", |
| 656 | issuesCandidates: "issues.candidates", |
| 657 | issuesCreate: "issues.create", |
| 658 | issuesComment: "issues.comment", |
| 659 | issuesUpdate: "issues.update", |
| 660 | issuesSetState: "issues.setState", |
| 661 | issuesReact: "issues.react", |
| 662 | issuesLinkedThreads: "issues.linkedThreads", |
| 663 | issueTrackersList: "issueTrackers.list", |
| 664 | issueTrackersConnect: "issueTrackers.connect", |
| 665 | issueTrackersBindProject: "issueTrackers.bindProject", |
| 666 | |
| 667 | sourceControlLookupRepository: "sourceControl.lookupRepository", |
| 668 | sourceControlCloneRepository: "sourceControl.cloneRepository", |
| 669 | sourceControlPublishRepository: "sourceControl.publishRepository", |
| 670 | sourceControlSignInStart: "sourceControl.signInStart", |
| 671 | sourceControlSignInWait: "sourceControl.signInWait", |
| 672 | sourceControlSignInCancel: "sourceControl.signInCancel", |
| 673 | sourceControlAppAccess: "sourceControl.appAccess", |
| 674 | sourceControlStarred: "sourceControl.starred", |
| 675 | sourceControlStar: "sourceControl.star", |
| 676 | projectCloneStart: "projectClone.start", |
| 677 | projectCloneCancel: "projectClone.cancel", |
| 678 | projectCloneRetry: "projectClone.retry", |
| 679 | subscribeProjectClones: "subscribeProjectClones", |
| 680 | |
| 681 | subscribeVcsStatus: "subscribeVcsStatus", |
| 682 | subscribeVcsBranch: "subscribeVcsBranch", |
| 683 | vcsRefreshBranch: "vcs.refreshBranch", |
| 684 | subscribeWorktreeSetup: "subscribeWorktreeSetup", |
| 685 | worktreeSetupCancel: "worktreeSetup.cancel", |
| 686 | subscribeTerminalMetadata: "subscribeTerminalMetadata", |
| 687 | subscribePreviewEvents: "subscribePreviewEvents", |
| 688 | subscribeDiscoveredLocalServers: "subscribeDiscoveredLocalServers", |
| 689 | subscribeDeviceState: "subscribeDeviceState", |
| 690 | subscribeServerConfig: "subscribeServerConfig", |
| 691 | subscribeServerLifecycle: "subscribeServerLifecycle", |
| 692 | subscribeAuthAccess: "subscribeAuthAccess", |
| 693 | subscribeResourceTelemetry: "subscribeResourceTelemetry", |
| 694 | } as const; |
| 695 | |
| 696 | const WsServerUpsertKeybindingRpc = Rpc.make(WS_METHODS.serverUpsertKeybinding, { |
| 697 | payload: ServerUpsertKeybindingInput, |
| 698 | success: ServerUpsertKeybindingResult, |
| 699 | error: Schema.Union([KeybindingsConfigError, EnvironmentAuthorizationError]), |
| 700 | }); |
| 701 | |
| 702 | const WsServerRemoveKeybindingRpc = Rpc.make(WS_METHODS.serverRemoveKeybinding, { |
| 703 | payload: ServerRemoveKeybindingInput, |
| 704 | success: ServerRemoveKeybindingResult, |
| 705 | error: Schema.Union([KeybindingsConfigError, EnvironmentAuthorizationError]), |
| 706 | }); |
| 707 | |
| 708 | const WsServerProbeRpc = Rpc.make(WS_METHODS.serverProbe, { |
| 709 | payload: Schema.Struct({}), |
| 710 | success: Schema.Struct({}), |
| 711 | error: EnvironmentAuthorizationError, |
| 712 | }); |
| 713 | |
| 714 | const WsServerGetConfigRpc = Rpc.make(WS_METHODS.serverGetConfig, { |
| 715 | payload: Schema.Struct({}), |
| 716 | success: ServerConfig, |
| 717 | error: Schema.Union([KeybindingsConfigError, ServerSettingsError, EnvironmentAuthorizationError]), |
| 718 | }); |
| 719 | |
| 720 | export const WsServerRefreshProvidersRpc = Rpc.make(WS_METHODS.serverRefreshProviders, { |
| 721 | payload: Schema.Struct({ |
| 722 | instanceId: Schema.optional(ProviderInstanceId), |
| 723 | cwd: Schema.optional(TrimmedNonEmptyString), |
| 724 | fresh: Schema.optional(Schema.Boolean), |
| 725 | /** Bypass model caches; explicit rediscovery may open sessions, background refreshes must not. */ |
| 726 | refreshModels: Schema.optional(Schema.Boolean), |
| 727 | /** |
| 728 | * A model picker opened: refetch a model manifest older than a few minutes and probe providers |
| 729 | * only when it changed. The other fields are ignored and the config stream carries the result. |
| 730 | */ |
| 731 | modelCatalogOnly: Schema.optional(Schema.Boolean), |
| 732 | /** Read secret references again; unlocking a vault can prompt on the host, so only explicit user refreshes ask. */ |
| 733 | reloadSecrets: Schema.optional(Schema.Boolean), |
| 734 | /** |
| 735 | * Reply without snapshots, or with only the requested instance's cwd snapshot. Snapshots then |
| 736 | * reach the client only through these replies, so another client's scan shows on its next |
| 737 | * refresh, at most one TTL later. |
| 738 | */ |
| 739 | workspaceSnapshotsOnDemand: Schema.optional(Schema.Boolean), |
| 740 | /** As on `subscribeServerConfig`: add /usage-limits to the replied snapshot. */ |
| 741 | usageLimitsCommand: Schema.optional(Schema.Boolean), |
| 742 | /** As on `subscribeServerConfig`: a failed cwd scan replies with the machine catalog as a pending snapshot. */ |
| 743 | providerCatalogsOnDemand: Schema.optional(Schema.Boolean), |
| 744 | /** |
| 745 | * Reply with no providers; the config stream carries the result. For callers that only wait |
| 746 | * for the refresh. Ignored with `instanceId` and `cwd`, whose reply is the snapshot. |
| 747 | */ |
| 748 | omitProviders: Schema.optional(Schema.Boolean), |
| 749 | /** |
| 750 | * With `providerCatalogsOnDemand`, a cwd reply also carries the machine slash command names |
| 751 | * and skills with their `catalogDigest`. Sent by a client whose held lists are not current. |
| 752 | */ |
| 753 | machineCatalog: Schema.optional(Schema.Boolean), |
| 754 | }), |
| 755 | success: ServerProviderUpdatedPayload, |
| 756 | error: Schema.Union([EnvironmentAuthorizationError, ProviderSetupError]), |
| 757 | }); |
| 758 | |
| 759 | const WsServerUpdateProviderRpc = Rpc.make(WS_METHODS.serverUpdateProvider, { |
| 760 | payload: ServerProviderUpdateInput, |
| 761 | success: ServerProviderUpdatedPayload, |
| 762 | error: Schema.Union([ServerProviderUpdateError, EnvironmentAuthorizationError]), |
| 763 | }); |
| 764 | |
| 765 | const ProviderSetupRpcError = Schema.Union([ProviderSetupError, EnvironmentAuthorizationError]); |
| 766 | |
| 767 | const WsProviderConsumeResetCreditRpc = Rpc.make(WS_METHODS.providerConsumeResetCredit, { |
| 768 | payload: ProviderConsumeResetCreditInput, |
| 769 | success: ProviderConsumeResetCreditResult, |
| 770 | error: Schema.Union([ProviderSetupError, UsageLimitSourceError, EnvironmentAuthorizationError]), |
| 771 | }); |
| 772 | |
| 773 | const WsProviderAuthStartRpc = Rpc.make(WS_METHODS.providerAuthStart, { |
| 774 | payload: ProviderAuthStartInput, |
| 775 | success: ProviderAuthState, |
| 776 | error: ProviderSetupRpcError, |
| 777 | }); |
| 778 | |
| 779 | const WsProviderAuthRespondRpc = Rpc.make(WS_METHODS.providerAuthRespond, { |
| 780 | payload: ProviderAuthRespondInput, |
| 781 | success: ProviderAuthState, |
| 782 | error: ProviderSetupRpcError, |
| 783 | }); |
| 784 | |
| 785 | const WsProviderAuthCompleteRpc = Rpc.make(WS_METHODS.providerAuthComplete, { |
| 786 | payload: ProviderAuthCompleteInput, |
| 787 | success: ProviderAuthState, |
| 788 | error: ProviderSetupRpcError, |
| 789 | }); |
| 790 | |
| 791 | const WsChatGptReconnectProfileRpc = Rpc.make(WS_METHODS.chatGptReconnectProfile, { |
| 792 | payload: ChatGptReconnectProfileInput, |
| 793 | success: Schema.NullOr(ChatGptReconnectProfile), |
| 794 | error: ProviderSetupRpcError, |
| 795 | }); |
| 796 | const WsChatGptImportProfileRpc = Rpc.make(WS_METHODS.chatGptImportProfile, { |
| 797 | payload: ChatGptImportProfileInput, |
| 798 | success: ProviderAuthState, |
| 799 | error: ProviderSetupRpcError, |
| 800 | }); |
| 801 | const WsChatGptHandoffSubscribeRpc = Rpc.make(WS_METHODS.chatGptHandoffSubscribe, { |
| 802 | payload: ChatGptHandoffInput, |
| 803 | success: ChatGptHandoffState, |
| 804 | error: ProviderSetupRpcError, |
| 805 | stream: true, |
| 806 | }); |
| 807 | |
| 808 | const WsProviderAuthCancelRpc = Rpc.make(WS_METHODS.providerAuthCancel, { |
| 809 | payload: ProviderAuthCancelInput, |
| 810 | success: ProviderAuthState, |
| 811 | error: ProviderSetupRpcError, |
| 812 | }); |
| 813 | |
| 814 | const WsProviderAuthRemoveMethodRpc = Rpc.make(WS_METHODS.providerAuthRemoveMethod, { |
| 815 | payload: ProviderAuthRemoveMethodInput, |
| 816 | success: ProviderAuthState, |
| 817 | error: ProviderSetupRpcError, |
| 818 | }); |
| 819 | |
| 820 | const WsProviderAuthLogoutRpc = Rpc.make(WS_METHODS.providerAuthLogout, { |
| 821 | payload: ProviderSetupInput, |
| 822 | success: ProviderAuthState, |
| 823 | error: ProviderSetupRpcError, |
| 824 | }); |
| 825 | |
| 826 | const WsProviderAuthSubscribeRpc = Rpc.make(WS_METHODS.providerAuthSubscribe, { |
| 827 | payload: ProviderSetupInput, |
| 828 | success: ProviderAuthState, |
| 829 | error: ProviderSetupRpcError, |
| 830 | stream: true, |
| 831 | }); |
| 832 | |
| 833 | const WsProviderInstallStartRpc = Rpc.make(WS_METHODS.providerInstallStart, { |
| 834 | payload: ProviderSetupInput, |
| 835 | success: ProviderInstallState, |
| 836 | error: ProviderSetupRpcError, |
| 837 | }); |
| 838 | |
| 839 | const WsProviderInstallCancelRpc = Rpc.make(WS_METHODS.providerInstallCancel, { |
| 840 | payload: ProviderInstallCancelInput, |
| 841 | success: ProviderInstallState, |
| 842 | error: ProviderSetupRpcError, |
| 843 | }); |
| 844 | |
| 845 | const WsProviderInstallSubscribeRpc = Rpc.make(WS_METHODS.providerInstallSubscribe, { |
| 846 | payload: ProviderSetupInput, |
| 847 | success: ProviderInstallState, |
| 848 | error: ProviderSetupRpcError, |
| 849 | stream: true, |
| 850 | }); |
| 851 | |
| 852 | const WsProviderInstallRemoveRpc = Rpc.make(WS_METHODS.providerInstallRemove, { |
| 853 | payload: ProviderSetupInput, |
| 854 | success: ProviderInstallState, |
| 855 | error: ProviderSetupRpcError, |
| 856 | }); |
| 857 | |
| 858 | const WsServerGetNpmReleaseRpc = Rpc.make(WS_METHODS.serverGetNpmRelease, { |
| 859 | payload: ServerNpmReleaseInput, |
| 860 | success: Schema.NullOr(ServerNpmRelease), |
| 861 | error: Schema.Union([ServerNpmReleaseError, EnvironmentAuthorizationError]), |
| 862 | }); |
| 863 | |
| 864 | const WsServerUpdateServerRpc = Rpc.make(WS_METHODS.serverUpdateServer, { |
| 865 | payload: ServerSelfUpdateInput, |
| 866 | success: ServerSelfUpdateResult, |
| 867 | error: Schema.Union([ServerSelfUpdateError, EnvironmentAuthorizationError]), |
| 868 | }); |
| 869 | |
| 870 | const WsServerUpdateServerWithProgressRpc = Rpc.make(WS_METHODS.serverUpdateServerWithProgress, { |
| 871 | payload: ServerSelfUpdateInput, |
| 872 | success: ServerSelfUpdateProgressEvent, |
| 873 | error: Schema.Union([ServerSelfUpdateError, EnvironmentAuthorizationError]), |
| 874 | stream: true, |
| 875 | }); |
| 876 | |
| 877 | const WsServerCommitDesktopUpdateRpc = Rpc.make(WS_METHODS.serverCommitDesktopUpdate, { |
| 878 | payload: DesktopUpdateCommitInput, |
| 879 | success: ServerSelfUpdateResult, |
| 880 | error: Schema.Union([ServerSelfUpdateError, EnvironmentAuthorizationError]), |
| 881 | }); |
| 882 | |
| 883 | const WsServerRunStorageCleanupRpc = Rpc.make(WS_METHODS.serverRunStorageCleanup, { |
| 884 | payload: Schema.Struct({}), |
| 885 | success: StorageCleanupReport, |
| 886 | error: Schema.Union([ServerSettingsError, EnvironmentAuthorizationError]), |
| 887 | }); |
| 888 | const WsServerGetStorageCleanupReportRpc = Rpc.make(WS_METHODS.serverGetStorageCleanupReport, { |
| 889 | payload: Schema.Struct({}), |
| 890 | success: Schema.NullOr(StorageCleanupReport), |
| 891 | stream: true, |
| 892 | error: EnvironmentAuthorizationError, |
| 893 | }); |
| 894 | |
| 895 | const WsServerGetDatabaseStorageRpc = Rpc.make(WS_METHODS.serverGetDatabaseStorage, { |
| 896 | payload: Schema.Struct({}), |
| 897 | success: Schema.NullOr(DatabaseStorageStatus), |
| 898 | stream: true, |
| 899 | error: EnvironmentAuthorizationError, |
| 900 | }); |
| 901 | |
| 902 | const WsServerReclaimDatabaseSpaceRpc = Rpc.make(WS_METHODS.serverReclaimDatabaseSpace, { |
| 903 | payload: Schema.Struct({}), |
| 904 | error: Schema.Union([DatabaseReclaimError, EnvironmentAuthorizationError]), |
| 905 | }); |
| 906 | |
| 907 | const WsPeerLinksListRpc = Rpc.make(WS_METHODS.peerLinksList, { |
| 908 | payload: Schema.Struct({}), |
| 909 | success: Schema.Struct({ links: Schema.Array(PeerLinkSummary) }), |
| 910 | error: Schema.Union([PeerLinkError, EnvironmentAuthorizationError]), |
| 911 | }); |
| 912 | |
| 913 | /** The unexpired links' names, readable with thread read access. */ |
| 914 | const WsPeerLinksNamesRpc = Rpc.make(WS_METHODS.peerLinksNames, { |
| 915 | payload: Schema.Struct({}), |
| 916 | success: Schema.Struct({ links: Schema.Array(PeerLinkName) }), |
| 917 | error: Schema.Union([PeerLinkError, EnvironmentAuthorizationError]), |
| 918 | }); |
| 919 | |
| 920 | const WsPeerLinksLinkRpc = Rpc.make(WS_METHODS.peerLinksLink, { |
| 921 | payload: PeerLinkCreateInput, |
| 922 | success: PeerLink, |
| 923 | error: Schema.Union([PeerLinkError, EnvironmentAuthorizationError]), |
| 924 | }); |
| 925 | |
| 926 | const WsPeerLinksUnlinkRpc = Rpc.make(WS_METHODS.peerLinksUnlink, { |
| 927 | payload: PeerLinkRemoveInput, |
| 928 | success: PeerLinkRemoveResult, |
| 929 | error: Schema.Union([PeerLinkError, EnvironmentAuthorizationError]), |
| 930 | }); |
| 931 | |
| 932 | /** A linked environment's thread, as its own thread subscription streams it. */ |
| 933 | const WsPeerLinksSubscribeThreadRpc = Rpc.make(WS_METHODS.peerLinksSubscribeThread, { |
| 934 | payload: PeerLinkThreadInput, |
| 935 | success: OrchestrationV2RpcSchemas.subscribeThread.output, |
| 936 | error: Schema.Union([PeerLinkThreadReadError, EnvironmentAuthorizationError]), |
| 937 | stream: true, |
| 938 | }); |
| 939 | |
| 940 | const WsPeerLinksThreadHistoryPageRpc = Rpc.make(WS_METHODS.peerLinksThreadHistoryPage, { |
| 941 | payload: PeerLinkThreadHistoryInput, |
| 942 | success: OrchestrationV2ThreadHistoryPage, |
| 943 | error: Schema.Union([PeerLinkThreadReadError, EnvironmentAuthorizationError]), |
| 944 | }); |
| 945 | |
| 946 | const WsPeerLinksThreadItemRpc = Rpc.make(WS_METHODS.peerLinksThreadItem, { |
| 947 | payload: PeerLinkThreadItemInput, |
| 948 | success: OrchestrationV2RpcSchemas.getTurnItem.output, |
| 949 | error: Schema.Union([PeerLinkThreadReadError, EnvironmentAuthorizationError]), |
| 950 | }); |
| 951 | |
| 952 | const WsPeerLinksPairClientRpc = Rpc.make(WS_METHODS.peerLinksPairClient, { |
| 953 | payload: PeerLinkClientPairingInput, |
| 954 | success: PeerLinkClientPairingResult, |
| 955 | error: Schema.Union([PeerLinkError, EnvironmentAuthorizationError]), |
| 956 | }); |
| 957 | |
| 958 | const WsPeerLinksAnswerRequestRpc = Rpc.make(WS_METHODS.peerLinksAnswerRequest, { |
| 959 | payload: PeerLinkRequestAnswerInput, |
| 960 | error: Schema.Union([PeerLinkRequestError, EnvironmentAuthorizationError]), |
| 961 | }); |
| 962 | |
| 963 | // No in-tree caller; installed Swift TestFlight builds still request it. |
| 964 | const WsServerGetSettingsRpc = Rpc.make(WS_METHODS.serverGetSettings, { |
| 965 | payload: Schema.Struct({}), |
| 966 | success: ServerSettings, |
| 967 | error: Schema.Union([ServerSettingsError, EnvironmentAuthorizationError]), |
| 968 | }); |
| 969 | |
| 970 | const WsServerUpdateSettingsRpc = Rpc.make(WS_METHODS.serverUpdateSettings, { |
| 971 | payload: Schema.Struct({ |
| 972 | patch: ClientServerSettingsPatch, |
| 973 | providerInstanceMutation: Schema.optionalKey(ProviderInstanceMutation), |
| 974 | }), |
| 975 | success: ServerSettings, |
| 976 | error: Schema.Union([ServerSettingsError, EnvironmentAuthorizationError]), |
| 977 | }); |
| 978 | |
| 979 | const WsServerDiscoverSourceControlRpc = Rpc.make(WS_METHODS.serverDiscoverSourceControl, { |
| 980 | payload: Schema.Struct({}), |
| 981 | success: SourceControlDiscoveryResult, |
| 982 | error: EnvironmentAuthorizationError, |
| 983 | }); |
| 984 | |
| 985 | const WsServerCheckSecretSourceRpc = Rpc.make(WS_METHODS.serverCheckSecretSource, { |
| 986 | payload: Schema.Struct({ source: SecretReference }), |
| 987 | success: SecretSourceCheckResult, |
| 988 | error: EnvironmentAuthorizationError, |
| 989 | }); |
| 990 | |
| 991 | const WsServerSearchAcpRegistryRpc = Rpc.make(WS_METHODS.serverSearchAcpRegistry, { |
| 992 | payload: AcpRegistrySearchInput, |
| 993 | success: AcpRegistrySearchResult, |
| 994 | error: Schema.Union([AcpRegistryOperationError, EnvironmentAuthorizationError]), |
| 995 | }); |
| 996 | |
| 997 | const WsServerPrepareAcpRegistryAgentRpc = Rpc.make(WS_METHODS.serverPrepareAcpRegistryAgent, { |
| 998 | payload: AcpRegistryPrepareInput, |
| 999 | success: AcpRegistryPrepareResult, |
| 1000 | error: Schema.Union([AcpRegistryOperationError, EnvironmentAuthorizationError]), |
| 1001 | }); |
| 1002 | |
| 1003 | const WsServerUninstallAcpRegistryManagedBinaryRpc = Rpc.make( |
| 1004 | WS_METHODS.serverUninstallAcpRegistryManagedBinary, |
| 1005 | { |
| 1006 | payload: AcpRegistryManagedBinaryUninstallInput, |
| 1007 | success: AcpRegistryManagedBinaryUninstallResult, |
| 1008 | error: Schema.Union([AcpRegistryOperationError, EnvironmentAuthorizationError]), |
| 1009 | }, |
| 1010 | ); |
| 1011 | |
| 1012 | const WsServerAcceptAcpRegistryUrlAuthRpc = Rpc.make(WS_METHODS.serverAcceptAcpRegistryUrlAuth, { |
| 1013 | payload: AcpRegistryAcceptUrlAuthInput, |
| 1014 | success: AcpRegistryAcceptUrlAuthResult, |
| 1015 | error: EnvironmentAuthorizationError, |
| 1016 | }); |
| 1017 | |
| 1018 | const WsServerListAcpRegistrySessionsRpc = Rpc.make(WS_METHODS.serverListAcpRegistrySessions, { |
| 1019 | payload: AcpRegistryListSessionsInput, |
| 1020 | success: AcpRegistryListSessionsResult, |
| 1021 | error: Schema.Union([AcpRegistryOperationError, EnvironmentAuthorizationError]), |
| 1022 | }); |
| 1023 | |
| 1024 | const WsServerImportAcpRegistrySessionRpc = Rpc.make(WS_METHODS.serverImportAcpRegistrySession, { |
| 1025 | payload: AcpRegistryImportSessionInput, |
| 1026 | success: AcpRegistryImportSessionResult, |
| 1027 | error: Schema.Union([AcpRegistryOperationError, EnvironmentAuthorizationError]), |
| 1028 | }); |
| 1029 | |
| 1030 | const WsServerDeleteAcpRegistrySessionRpc = Rpc.make(WS_METHODS.serverDeleteAcpRegistrySession, { |
| 1031 | payload: AcpRegistryDeleteSessionInput, |
| 1032 | success: AcpRegistryDeleteSessionResult, |
| 1033 | error: Schema.Union([AcpRegistryOperationError, EnvironmentAuthorizationError]), |
| 1034 | }); |
| 1035 | |
| 1036 | const WsServerListAcpRegistryProvidersRpc = Rpc.make(WS_METHODS.serverListAcpRegistryProviders, { |
| 1037 | payload: AcpRegistryListProvidersInput, |
| 1038 | success: AcpRegistryListProvidersResult, |
| 1039 | error: Schema.Union([AcpRegistryOperationError, EnvironmentAuthorizationError]), |
| 1040 | }); |
| 1041 | |
| 1042 | const WsServerSetAcpRegistryProviderRpc = Rpc.make(WS_METHODS.serverSetAcpRegistryProvider, { |
| 1043 | payload: AcpRegistrySetProviderInput, |
| 1044 | success: AcpRegistrySetProviderResult, |
| 1045 | error: Schema.Union([AcpRegistryOperationError, EnvironmentAuthorizationError]), |
| 1046 | }); |
| 1047 | |
| 1048 | const WsServerDisableAcpRegistryProviderRpc = Rpc.make( |
| 1049 | WS_METHODS.serverDisableAcpRegistryProvider, |
| 1050 | { |
| 1051 | payload: AcpRegistryDisableProviderInput, |
| 1052 | success: AcpRegistryDisableProviderResult, |
| 1053 | error: Schema.Union([AcpRegistryOperationError, EnvironmentAuthorizationError]), |
| 1054 | }, |
| 1055 | ); |
| 1056 | |
| 1057 | const WsServerLogoutAcpRegistryRpc = Rpc.make(WS_METHODS.serverLogoutAcpRegistry, { |
| 1058 | payload: AcpRegistryLogoutInput, |
| 1059 | success: AcpRegistryLogoutResult, |
| 1060 | error: Schema.Union([AcpRegistryOperationError, EnvironmentAuthorizationError]), |
| 1061 | }); |
| 1062 | |
| 1063 | const WsServerGetTraceDiagnosticsRpc = Rpc.make(WS_METHODS.serverGetTraceDiagnostics, { |
| 1064 | payload: Schema.Struct({}), |
| 1065 | success: ServerTraceDiagnosticsResult, |
| 1066 | error: EnvironmentAuthorizationError, |
| 1067 | }); |
| 1068 | |
| 1069 | const WsServerGetProcessDiagnosticsRpc = Rpc.make(WS_METHODS.serverGetProcessDiagnostics, { |
| 1070 | payload: Schema.Struct({}), |
| 1071 | success: ServerProcessDiagnosticsResult, |
| 1072 | error: EnvironmentAuthorizationError, |
| 1073 | }); |
| 1074 | |
| 1075 | const WsServerGetHostResourcesRpc = Rpc.make(WS_METHODS.serverGetHostResources, { |
| 1076 | payload: Schema.Struct({}), |
| 1077 | success: HostResourcesSnapshot, |
| 1078 | error: EnvironmentAuthorizationError, |
| 1079 | }); |
| 1080 | |
| 1081 | const WsServerGetProcessResourceHistoryRpc = Rpc.make(WS_METHODS.serverGetProcessResourceHistory, { |
| 1082 | payload: ServerProcessResourceHistoryInput, |
| 1083 | success: ServerProcessResourceHistoryResult, |
| 1084 | error: EnvironmentAuthorizationError, |
| 1085 | }); |
| 1086 | |
| 1087 | const WsServerGetResourceTelemetryHistoryRpc = Rpc.make( |
| 1088 | WS_METHODS.serverGetResourceTelemetryHistory, |
| 1089 | { |
| 1090 | payload: ResourceTelemetryHistoryInput, |
| 1091 | success: ResourceTelemetryHistory, |
| 1092 | error: EnvironmentAuthorizationError, |
| 1093 | }, |
| 1094 | ); |
| 1095 | |
| 1096 | const WsServerRetryResourceTelemetryRpc = Rpc.make(WS_METHODS.serverRetryResourceTelemetry, { |
| 1097 | payload: Schema.Struct({}), |
| 1098 | success: ResourceTelemetryRetryResult, |
| 1099 | error: EnvironmentAuthorizationError, |
| 1100 | }); |
| 1101 | |
| 1102 | const WsServerCheckOtlpEndpointRpc = Rpc.make(WS_METHODS.serverCheckOtlpEndpoint, { |
| 1103 | payload: OtlpEndpointCheckInput, |
| 1104 | success: OtlpEndpointCheckResult, |
| 1105 | error: EnvironmentAuthorizationError, |
| 1106 | }); |
| 1107 | |
| 1108 | const WsServerListTextGeneratorModelsRpc = Rpc.make(WS_METHODS.serverListTextGeneratorModels, { |
| 1109 | payload: ListTextGeneratorModelsInput, |
| 1110 | success: ListTextGeneratorModelsResult, |
| 1111 | error: Schema.Union([TextGeneratorError, EnvironmentAuthorizationError]), |
| 1112 | }); |
| 1113 | |
| 1114 | const WsServerPrepareTriageRpc = Rpc.make(WS_METHODS.serverPrepareTriage, { |
| 1115 | payload: ServerPrepareTriageInput, |
| 1116 | success: ServerPrepareTriageResult, |
| 1117 | error: Schema.Union([ServerPrepareTriageError, EnvironmentAuthorizationError]), |
| 1118 | }); |
| 1119 | |
| 1120 | const WsServerGetUsageSummaryRpc = Rpc.make(WS_METHODS.serverGetUsageSummary, { |
| 1121 | payload: UsageSummaryInput, |
| 1122 | success: UsageSummary, |
| 1123 | error: Schema.Union([EnvironmentAuthorizationError, UsageReadError]), |
| 1124 | }); |
| 1125 | |
| 1126 | const WsServerRefreshUsageRatesRpc = Rpc.make(WS_METHODS.serverRefreshUsageRates, { |
| 1127 | payload: Schema.Struct({}), |
| 1128 | success: UsagePricing, |
| 1129 | error: EnvironmentAuthorizationError, |
| 1130 | }); |
| 1131 | |
| 1132 | const WsServerSignalProcessRpc = Rpc.make(WS_METHODS.serverSignalProcess, { |
| 1133 | payload: ServerSignalProcessInput, |
| 1134 | success: ServerSignalProcessResult, |
| 1135 | error: EnvironmentAuthorizationError, |
| 1136 | }); |
| 1137 | |
| 1138 | const WsCloudGetRelayClientStatusRpc = Rpc.make(WS_METHODS.cloudGetRelayClientStatus, { |
| 1139 | payload: Schema.Struct({}), |
| 1140 | success: RelayClientStatusSchema, |
| 1141 | error: EnvironmentAuthorizationError, |
| 1142 | }); |
| 1143 | |
| 1144 | const WsCloudInstallRelayClientRpc = Rpc.make(WS_METHODS.cloudInstallRelayClient, { |
| 1145 | payload: Schema.Struct({}), |
| 1146 | success: RelayClientInstallProgressEventSchema, |
| 1147 | error: Schema.Union([RelayClientInstallFailedError, EnvironmentAuthorizationError]), |
| 1148 | stream: true, |
| 1149 | }); |
| 1150 | |
| 1151 | const WsServerReportClientActivityRpc = Rpc.make(WS_METHODS.serverReportClientActivity, { |
| 1152 | payload: ClientActivityReportInput, |
| 1153 | error: EnvironmentAuthorizationError, |
| 1154 | }); |
| 1155 | |
| 1156 | const PullRequestRpcError = Schema.Union([ |
| 1157 | PullRequestUnavailableError, |
| 1158 | PullRequestOperationError, |
| 1159 | EnvironmentAuthorizationError, |
| 1160 | ]); |
| 1161 | |
| 1162 | const WsPullRequestsListRpc = Rpc.make(WS_METHODS.pullRequestsList, { |
| 1163 | payload: PullRequestListInput, |
| 1164 | success: PullRequestListResult, |
| 1165 | error: PullRequestRpcError, |
| 1166 | }); |
| 1167 | |
| 1168 | // GitHub line counts cost 40-60% of the listing read; fetch separately so rows arrive first. |
| 1169 | const WsPullRequestsListStatsRpc = Rpc.make(WS_METHODS.pullRequestsListStats, { |
| 1170 | payload: PullRequestListStatsInput, |
| 1171 | success: PullRequestListStatsResult, |
| 1172 | error: PullRequestRpcError, |
| 1173 | }); |
| 1174 | |
| 1175 | const WsPullRequestsFilterOptionsRpc = Rpc.make(WS_METHODS.pullRequestsFilterOptions, { |
| 1176 | payload: PullRequestFilterOptionsInput, |
| 1177 | success: PullRequestFilterOptions, |
| 1178 | error: PullRequestRpcError, |
| 1179 | }); |
| 1180 | |
| 1181 | const WsPullRequestsRoutingRpc = Rpc.make(WS_METHODS.pullRequestsRouting, { |
| 1182 | payload: PullRequestRef, |
| 1183 | success: PullRequestRoutingResult, |
| 1184 | error: PullRequestRpcError, |
| 1185 | }); |
| 1186 | |
| 1187 | const WsPullRequestsRoutingIdentityRpc = Rpc.make(WS_METHODS.pullRequestsRoutingIdentity, { |
| 1188 | payload: PullRequestRoutingIdentityInput, |
| 1189 | success: PullRequestRoutingIdentityResult, |
| 1190 | error: PullRequestRpcError, |
| 1191 | }); |
| 1192 | |
| 1193 | const WsPullRequestsSummaryRpc = Rpc.make(WS_METHODS.pullRequestsSummary, { |
| 1194 | payload: PullRequestRef, |
| 1195 | success: PullRequestSummary, |
| 1196 | error: PullRequestRpcError, |
| 1197 | }); |
| 1198 | |
| 1199 | const WsPullRequestsStackRpc = Rpc.make(WS_METHODS.pullRequestsStack, { |
| 1200 | payload: PullRequestRef, |
| 1201 | success: Schema.NullOr(PullRequestStack), |
| 1202 | error: PullRequestRpcError, |
| 1203 | }); |
| 1204 | |
| 1205 | const WsPullRequestsLinkedThreadsRpc = Rpc.make(WS_METHODS.pullRequestsLinkedThreads, { |
| 1206 | payload: PullRequestRef, |
| 1207 | success: PullRequestLinkedThreadsResult, |
| 1208 | error: PullRequestRpcError, |
| 1209 | }); |
| 1210 | |
| 1211 | const WsPullRequestsDetailRpc = Rpc.make(WS_METHODS.pullRequestsDetail, { |
| 1212 | payload: PullRequestRef, |
| 1213 | success: PullRequestDetail, |
| 1214 | error: PullRequestRpcError, |
| 1215 | }); |
| 1216 | |
| 1217 | const WsPullRequestsPreviewRpc = Rpc.make(WS_METHODS.pullRequestsPreview, { |
| 1218 | payload: PullRequestRef, |
| 1219 | success: PullRequestPreview, |
| 1220 | error: PullRequestRpcError, |
| 1221 | }); |
| 1222 | |
| 1223 | const WsPullRequestsChecksRpc = Rpc.make(WS_METHODS.pullRequestsChecks, { |
| 1224 | payload: PullRequestRef, |
| 1225 | success: Schema.NullOr(PullRequestChecks), |
| 1226 | error: PullRequestRpcError, |
| 1227 | }); |
| 1228 | |
| 1229 | const WsPullRequestsActivityRpc = Rpc.make(WS_METHODS.pullRequestsActivity, { |
| 1230 | payload: PullRequestRef, |
| 1231 | success: PullRequestActivity, |
| 1232 | error: PullRequestRpcError, |
| 1233 | }); |
| 1234 | |
| 1235 | const WsPullRequestsReviewGuideRpc = Rpc.make(WS_METHODS.pullRequestsReviewGuide, { |
| 1236 | payload: PullRequestRef, |
| 1237 | success: PullRequestReviewGuideResult, |
| 1238 | error: PullRequestRpcError, |
| 1239 | }); |
| 1240 | |
| 1241 | const WsPullRequestsGenerateReviewGuideRpc = Rpc.make(WS_METHODS.pullRequestsGenerateReviewGuide, { |
| 1242 | payload: PullRequestRef, |
| 1243 | success: PullRequestReviewGuideResult, |
| 1244 | error: PullRequestRpcError, |
| 1245 | }); |
| 1246 | |
| 1247 | const WsPullRequestsThreadCommentsRpc = Rpc.make(WS_METHODS.pullRequestsThreadComments, { |
| 1248 | payload: PullRequestThreadCommentsInput, |
| 1249 | success: PullRequestThreadCommentsResult, |
| 1250 | error: PullRequestRpcError, |
| 1251 | }); |
| 1252 | |
| 1253 | const WsPullRequestsDiffFileContentsRpc = Rpc.make(WS_METHODS.pullRequestsDiffFileContents, { |
| 1254 | payload: PullRequestDiffFileContentsInput, |
| 1255 | success: PullRequestDiffFileContentsResult, |
| 1256 | error: PullRequestRpcError, |
| 1257 | }); |
| 1258 | |
| 1259 | const WsPullRequestsFilesViewedRpc = Rpc.make(WS_METHODS.pullRequestsFilesViewed, { |
| 1260 | payload: PullRequestRef, |
| 1261 | success: PullRequestFilesViewedResult, |
| 1262 | error: PullRequestRpcError, |
| 1263 | }); |
| 1264 | |
| 1265 | const WsPullRequestsChangeBreakdownRpc = Rpc.make(WS_METHODS.pullRequestsChangeBreakdown, { |
| 1266 | payload: PullRequestRef, |
| 1267 | success: PullRequestChangeBreakdown, |
| 1268 | error: PullRequestRpcError, |
| 1269 | }); |
| 1270 | |
| 1271 | const WsPullRequestsSetFilesViewedRpc = Rpc.make(WS_METHODS.pullRequestsSetFilesViewed, { |
| 1272 | payload: PullRequestSetFilesViewedInput, |
| 1273 | success: Schema.Void, |
| 1274 | error: PullRequestRpcError, |
| 1275 | }); |
| 1276 | |
| 1277 | const WsPullRequestsRunActionRpc = Rpc.make(WS_METHODS.pullRequestsRunAction, { |
| 1278 | payload: PullRequestActionInput, |
| 1279 | // Undefined unless asked for with replyWithSummary, or when the host's reply lacked it. |
| 1280 | success: Schema.UndefinedOr(PullRequestSummary), |
| 1281 | error: PullRequestRpcError, |
| 1282 | }); |
| 1283 | |
| 1284 | const WsPullRequestsUpdateRpc = Rpc.make(WS_METHODS.pullRequestsUpdate, { |
| 1285 | payload: PullRequestUpdateInput, |
| 1286 | success: Schema.Void, |
| 1287 | error: PullRequestRpcError, |
| 1288 | }); |
| 1289 | |
| 1290 | const WsPullRequestsCommentRpc = Rpc.make(WS_METHODS.pullRequestsComment, { |
| 1291 | payload: PullRequestCommentInput, |
| 1292 | success: Schema.Void, |
| 1293 | error: PullRequestRpcError, |
| 1294 | }); |
| 1295 | |
| 1296 | const WsPullRequestsUpdateCommentRpc = Rpc.make(WS_METHODS.pullRequestsUpdateComment, { |
| 1297 | payload: PullRequestCommentUpdateInput, |
| 1298 | success: Schema.Void, |
| 1299 | error: PullRequestRpcError, |
| 1300 | }); |
| 1301 | |
| 1302 | const WsPullRequestsSubmitReviewRpc = Rpc.make(WS_METHODS.pullRequestsSubmitReview, { |
| 1303 | payload: PullRequestSubmitReviewInput, |
| 1304 | success: Schema.Void, |
| 1305 | error: PullRequestRpcError, |
| 1306 | }); |
| 1307 | |
| 1308 | const WsPullRequestsReplyToThreadRpc = Rpc.make(WS_METHODS.pullRequestsReplyToThread, { |
| 1309 | payload: PullRequestThreadReplyInput, |
| 1310 | success: Schema.Void, |
| 1311 | error: PullRequestRpcError, |
| 1312 | }); |
| 1313 | |
| 1314 | const WsPullRequestsSetThreadResolutionRpc = Rpc.make(WS_METHODS.pullRequestsSetThreadResolution, { |
| 1315 | payload: PullRequestThreadResolutionInput, |
| 1316 | success: Schema.Void, |
| 1317 | error: PullRequestRpcError, |
| 1318 | }); |
| 1319 | |
| 1320 | const WsPullRequestsSetReactionRpc = Rpc.make(WS_METHODS.pullRequestsSetReaction, { |
| 1321 | payload: PullRequestReactionInput, |
| 1322 | success: Schema.Void, |
| 1323 | error: PullRequestRpcError, |
| 1324 | }); |
| 1325 | |
| 1326 | const WsPullRequestsInvalidateRpc = Rpc.make(WS_METHODS.pullRequestsInvalidate, { |
| 1327 | payload: PullRequestInvalidateInput, |
| 1328 | success: Schema.Void, |
| 1329 | error: PullRequestRpcError, |
| 1330 | }); |
| 1331 | |
| 1332 | const WsPullRequestsReportStateRpc = Rpc.make(WS_METHODS.pullRequestsReportState, { |
| 1333 | payload: PullRequestReportStateInput, |
| 1334 | success: Schema.Void, |
| 1335 | error: PullRequestRpcError, |
| 1336 | }); |
| 1337 | |
| 1338 | const WsPullRequestsSubscribeRefreshesRpc = Rpc.make(WS_METHODS.pullRequestsSubscribeRefreshes, { |
| 1339 | payload: Schema.Struct({}), |
| 1340 | success: NonNegativeInt, |
| 1341 | error: EnvironmentAuthorizationError, |
| 1342 | stream: true, |
| 1343 | }); |
| 1344 | |
| 1345 | // Separate from the refreshes above so linked-thread changes don't refetch forge-backed reads. |
| 1346 | const WsPullRequestsSubscribeLinkedThreadRefreshesRpc = Rpc.make( |
| 1347 | WS_METHODS.pullRequestsSubscribeLinkedThreadRefreshes, |
| 1348 | { |
| 1349 | payload: Schema.Struct({}), |
| 1350 | success: NonNegativeInt, |
| 1351 | error: EnvironmentAuthorizationError, |
| 1352 | stream: true, |
| 1353 | }, |
| 1354 | ); |
| 1355 | |
| 1356 | // Fetch reviewer candidates only when the menu opens to avoid unused host requests. |
| 1357 | const WsPullRequestsReviewerCandidatesRpc = Rpc.make(WS_METHODS.pullRequestsReviewerCandidates, { |
| 1358 | payload: PullRequestReviewerCandidatesInput, |
| 1359 | success: PullRequestReviewerCandidateList, |
| 1360 | error: PullRequestRpcError, |
| 1361 | }); |
| 1362 | |
| 1363 | const WsPullRequestsRequestReviewersRpc = Rpc.make(WS_METHODS.pullRequestsRequestReviewers, { |
| 1364 | payload: PullRequestReviewerRequestInput, |
| 1365 | success: Schema.Void, |
| 1366 | error: PullRequestRpcError, |
| 1367 | }); |
| 1368 | |
| 1369 | const WsPullRequestsLabelCandidatesRpc = Rpc.make(WS_METHODS.pullRequestsLabelCandidates, { |
| 1370 | payload: PullRequestRef, |
| 1371 | success: PullRequestLabelCandidateList, |
| 1372 | error: PullRequestRpcError, |
| 1373 | }); |
| 1374 | |
| 1375 | const WsPullRequestsSetLabelsRpc = Rpc.make(WS_METHODS.pullRequestsSetLabels, { |
| 1376 | payload: PullRequestLabelChangeInput, |
| 1377 | success: Schema.Void, |
| 1378 | error: PullRequestRpcError, |
| 1379 | }); |
| 1380 | |
| 1381 | const IssueRpcError = Schema.Union([ |
| 1382 | IssueUnavailableError, |
| 1383 | IssueOperationError, |
| 1384 | EnvironmentAuthorizationError, |
| 1385 | ]); |
| 1386 | |
| 1387 | const WsIssuesListRpc = Rpc.make(WS_METHODS.issuesList, { |
| 1388 | payload: IssueListInput, |
| 1389 | success: IssueListResult, |
| 1390 | error: IssueRpcError, |
| 1391 | }); |
| 1392 | |
| 1393 | const WsIssuesDetailRpc = Rpc.make(WS_METHODS.issuesDetail, { |
| 1394 | payload: IssueRef, |
| 1395 | success: IssueDetail, |
| 1396 | error: IssueRpcError, |
| 1397 | }); |
| 1398 | |
| 1399 | /** Older comments, one page at a time, past the cursor the detail handed over. */ |
| 1400 | const WsIssuesLinkedThreadsRpc = Rpc.make(WS_METHODS.issuesLinkedThreads, { |
| 1401 | payload: ThreadIssueKey, |
| 1402 | success: IssueLinkedThreadsResult, |
| 1403 | error: IssueRpcError, |
| 1404 | }); |
| 1405 | |
| 1406 | const WsIssuesCommentsRpc = Rpc.make(WS_METHODS.issuesComments, { |
| 1407 | payload: IssueCommentsPageInput, |
| 1408 | success: IssueCommentsPage, |
| 1409 | error: IssueRpcError, |
| 1410 | }); |
| 1411 | |
| 1412 | const WsIssuesTemplatesRpc = Rpc.make(WS_METHODS.issuesTemplates, { |
| 1413 | payload: IssueScopeRef, |
| 1414 | success: IssueTemplateList, |
| 1415 | error: IssueRpcError, |
| 1416 | }); |
| 1417 | |
| 1418 | /** Read when a label or assignee picker opens, not with every issue. */ |
| 1419 | const WsIssuesCandidatesRpc = Rpc.make(WS_METHODS.issuesCandidates, { |
| 1420 | payload: IssueScopeRef, |
| 1421 | success: IssueCandidates, |
| 1422 | error: IssueRpcError, |
| 1423 | }); |
| 1424 | |
| 1425 | const WsIssuesCreateRpc = Rpc.make(WS_METHODS.issuesCreate, { |
| 1426 | payload: IssueCreateInput, |
| 1427 | success: IssueCreateResult, |
| 1428 | error: IssueRpcError, |
| 1429 | }); |
| 1430 | |
| 1431 | const WsIssuesCommentRpc = Rpc.make(WS_METHODS.issuesComment, { |
| 1432 | payload: IssueCommentInput, |
| 1433 | success: Schema.Void, |
| 1434 | error: IssueRpcError, |
| 1435 | }); |
| 1436 | |
| 1437 | const WsIssuesUpdateRpc = Rpc.make(WS_METHODS.issuesUpdate, { |
| 1438 | payload: IssueUpdateInput, |
| 1439 | success: Schema.Void, |
| 1440 | error: IssueRpcError, |
| 1441 | }); |
| 1442 | |
| 1443 | const WsIssuesSetStateRpc = Rpc.make(WS_METHODS.issuesSetState, { |
| 1444 | payload: IssueSetStateInput, |
| 1445 | success: Schema.Void, |
| 1446 | error: IssueRpcError, |
| 1447 | }); |
| 1448 | |
| 1449 | const WsIssuesReactRpc = Rpc.make(WS_METHODS.issuesReact, { |
| 1450 | payload: IssueReactionInput, |
| 1451 | success: Schema.Void, |
| 1452 | error: IssueRpcError, |
| 1453 | }); |
| 1454 | |
| 1455 | const IssueTrackerRpcError = Schema.Union([ |
| 1456 | IssueTrackerConnectionError, |
| 1457 | EnvironmentAuthorizationError, |
| 1458 | ]); |
| 1459 | |
| 1460 | /** Every standalone tracker this server ships, each with its connection probed afresh. */ |
| 1461 | const WsIssueTrackersListRpc = Rpc.make(WS_METHODS.issueTrackersList, { |
| 1462 | payload: Schema.Struct({}), |
| 1463 | success: IssueTrackerConnectionList, |
| 1464 | error: IssueTrackerRpcError, |
| 1465 | }); |
| 1466 | |
| 1467 | /** |
| 1468 | * Verifies the credential against the tracker before storing it; the result is the new status. |
| 1469 | * A null token disconnects, which also unbinds every project that pointed at the tracker. |
| 1470 | */ |
| 1471 | const WsIssueTrackersConnectRpc = Rpc.make(WS_METHODS.issueTrackersConnect, { |
| 1472 | payload: IssueTrackerConnectInput, |
| 1473 | success: IssueTrackerConnection, |
| 1474 | error: IssueTrackerRpcError, |
| 1475 | }); |
| 1476 | |
| 1477 | const WsIssueTrackersBindProjectRpc = Rpc.make(WS_METHODS.issueTrackersBindProject, { |
| 1478 | payload: IssueTrackerBindProjectInput, |
| 1479 | success: Schema.Void, |
| 1480 | error: IssueTrackerRpcError, |
| 1481 | }); |
| 1482 | |
| 1483 | const WsSourceControlLookupRepositoryRpc = Rpc.make(WS_METHODS.sourceControlLookupRepository, { |
| 1484 | payload: SourceControlRepositoryLookupInput, |
| 1485 | success: SourceControlRepositoryInfo, |
| 1486 | error: Schema.Union([SourceControlRepositoryError, EnvironmentAuthorizationError]), |
| 1487 | }); |
| 1488 | |
| 1489 | const WsSourceControlCloneRepositoryRpc = Rpc.make(WS_METHODS.sourceControlCloneRepository, { |
| 1490 | payload: SourceControlCloneRepositoryInput, |
| 1491 | success: SourceControlCloneRepositoryResult, |
| 1492 | error: Schema.Union([SourceControlRepositoryError, EnvironmentAuthorizationError]), |
| 1493 | }); |
| 1494 | |
| 1495 | // Starts a device-flow sign-in the server finishes on its own, so a client can leave meanwhile. |
| 1496 | const WsSourceControlSignInStartRpc = Rpc.make(WS_METHODS.sourceControlSignInStart, { |
| 1497 | payload: SourceControlSignInInput, |
| 1498 | success: SourceControlSignInPrompt, |
| 1499 | error: Schema.Union([SourceControlSignInError, EnvironmentAuthorizationError]), |
| 1500 | }); |
| 1501 | |
| 1502 | // Resolves when the sign-in `signInStart` began ends, however long the user takes. |
| 1503 | const WsSourceControlSignInWaitRpc = Rpc.make(WS_METHODS.sourceControlSignInWait, { |
| 1504 | payload: SourceControlSignInInput, |
| 1505 | success: SourceControlSignInResult, |
| 1506 | error: Schema.Union([SourceControlSignInError, EnvironmentAuthorizationError]), |
| 1507 | }); |
| 1508 | |
| 1509 | // Ends the sign-in `signInStart` began, so approving the code afterwards signs nothing in. |
| 1510 | const WsSourceControlSignInCancelRpc = Rpc.make(WS_METHODS.sourceControlSignInCancel, { |
| 1511 | payload: SourceControlSignInInput, |
| 1512 | success: Schema.Void, |
| 1513 | error: Schema.Union([SourceControlSignInError, EnvironmentAuthorizationError]), |
| 1514 | }); |
| 1515 | |
| 1516 | const WsSourceControlAppAccessRpc = Rpc.make(WS_METHODS.sourceControlAppAccess, { |
| 1517 | payload: SourceControlAppAccessInput, |
| 1518 | success: SourceControlAppAccess, |
| 1519 | error: EnvironmentAuthorizationError, |
| 1520 | }); |
| 1521 | |
| 1522 | // False when the server's forge account has not starred the repository or the forge cannot say. |
| 1523 | const WsSourceControlStarredRpc = Rpc.make(WS_METHODS.sourceControlStarred, { |
| 1524 | payload: SourceControlStarredInput, |
| 1525 | success: Schema.Boolean, |
| 1526 | error: EnvironmentAuthorizationError, |
| 1527 | }); |
| 1528 | |
| 1529 | // Stars the repository as the server's forge account. False when the forge refused or cannot star. |
| 1530 | const WsSourceControlStarRpc = Rpc.make(WS_METHODS.sourceControlStar, { |
| 1531 | payload: SourceControlStarredInput, |
| 1532 | success: Schema.Boolean, |
| 1533 | error: EnvironmentAuthorizationError, |
| 1534 | }); |
| 1535 | |
| 1536 | // Returns when the project exists and cloning starts; progress uses the subscription. |
| 1537 | const WsProjectCloneStartRpc = Rpc.make(WS_METHODS.projectCloneStart, { |
| 1538 | payload: ProjectCloneStartInput, |
| 1539 | success: ProjectCloneStartResult, |
| 1540 | error: Schema.Union([ |
| 1541 | SourceControlRepositoryError, |
| 1542 | OrchestrationDispatchCommandError, |
| 1543 | EnvironmentAuthorizationError, |
| 1544 | ]), |
| 1545 | }); |
| 1546 | |
| 1547 | const WsProjectCloneCancelRpc = Rpc.make(WS_METHODS.projectCloneCancel, { |
| 1548 | payload: ProjectCloneActionInput, |
| 1549 | success: ProjectCloneActionResult, |
| 1550 | error: EnvironmentAuthorizationError, |
| 1551 | }); |
| 1552 | |
| 1553 | const WsProjectCloneRetryRpc = Rpc.make(WS_METHODS.projectCloneRetry, { |
| 1554 | payload: ProjectCloneActionInput, |
| 1555 | success: ProjectCloneActionResult, |
| 1556 | error: Schema.Union([SourceControlRepositoryError, EnvironmentAuthorizationError]), |
| 1557 | }); |
| 1558 | |
| 1559 | const WsSubscribeProjectClonesRpc = Rpc.make(WS_METHODS.subscribeProjectClones, { |
| 1560 | payload: ProjectCloneSubscribeInput, |
| 1561 | success: ProjectCloneListEvent, |
| 1562 | error: EnvironmentAuthorizationError, |
| 1563 | stream: true, |
| 1564 | }); |
| 1565 | |
| 1566 | const WsSourceControlPublishRepositoryRpc = Rpc.make(WS_METHODS.sourceControlPublishRepository, { |
| 1567 | payload: SourceControlPublishRepositoryInput, |
| 1568 | success: SourceControlPublishRepositoryResult, |
| 1569 | error: Schema.Union([SourceControlRepositoryError, EnvironmentAuthorizationError]), |
| 1570 | }); |
| 1571 | |
| 1572 | const WsProjectsSearchEntriesRpc = Rpc.make(WS_METHODS.projectsSearchEntries, { |
| 1573 | payload: ProjectSearchEntriesInput, |
| 1574 | success: ProjectSearchEntriesResult, |
| 1575 | error: Schema.Union([ProjectSearchEntriesError, EnvironmentAuthorizationError]), |
| 1576 | }); |
| 1577 | |
| 1578 | const WsProjectsSearchContentsRpc = Rpc.make(WS_METHODS.projectsSearchContents, { |
| 1579 | payload: ProjectSearchContentsInput, |
| 1580 | success: ProjectSearchContentsResult, |
| 1581 | error: Schema.Union([ProjectSearchContentsError, EnvironmentAuthorizationError]), |
| 1582 | }); |
| 1583 | |
| 1584 | const WsProjectsListEntriesRpc = Rpc.make(WS_METHODS.projectsListEntries, { |
| 1585 | payload: ProjectListEntriesInput, |
| 1586 | success: ProjectListEntriesResult, |
| 1587 | error: Schema.Union([ProjectListEntriesError, EnvironmentAuthorizationError]), |
| 1588 | }); |
| 1589 | |
| 1590 | const WsProjectsListIgnoredFilesRpc = Rpc.make(WS_METHODS.projectsListIgnoredFiles, { |
| 1591 | payload: ProjectListIgnoredFilesInput, |
| 1592 | success: ProjectListIgnoredFilesResult, |
| 1593 | error: Schema.Union([ProjectListEntriesError, EnvironmentAuthorizationError]), |
| 1594 | }); |
| 1595 | |
| 1596 | const WsProjectsReadFileRpc = Rpc.make(WS_METHODS.projectsReadFile, { |
| 1597 | payload: ProjectReadFileInput, |
| 1598 | success: ProjectReadFileResult, |
| 1599 | error: Schema.Union([ProjectReadFileError, EnvironmentAuthorizationError]), |
| 1600 | }); |
| 1601 | |
| 1602 | const WsProjectsWriteFileRpc = Rpc.make(WS_METHODS.projectsWriteFile, { |
| 1603 | payload: ProjectWriteFileInput, |
| 1604 | success: ProjectWriteFileResult, |
| 1605 | error: Schema.Union([ProjectWriteFileError, EnvironmentAuthorizationError]), |
| 1606 | }); |
| 1607 | |
| 1608 | const WsProjectsMutateRpc = Rpc.make(WS_METHODS.projectsMutate, { |
| 1609 | payload: ProjectMutation, |
| 1610 | success: Project, |
| 1611 | error: Schema.Union([ProjectMutationError, EnvironmentAuthorizationError]), |
| 1612 | }); |
| 1613 | |
| 1614 | const WsProjectsEnsureScratchRpc = Rpc.make(WS_METHODS.projectsEnsureScratch, { |
| 1615 | payload: Schema.Struct({}), |
| 1616 | success: ProjectEnsureScratchResult, |
| 1617 | error: Schema.Union([OrchestrationDispatchCommandError, EnvironmentAuthorizationError]), |
| 1618 | }); |
| 1619 | |
| 1620 | const WsProjectsCreateNewRpc = Rpc.make(WS_METHODS.projectsCreateNew, { |
| 1621 | payload: ProjectCreateNewInput, |
| 1622 | success: ProjectCreateNewResult, |
| 1623 | error: Schema.Union([OrchestrationDispatchCommandError, EnvironmentAuthorizationError]), |
| 1624 | }); |
| 1625 | |
| 1626 | const WsProjectsCreateFromThreadRpc = Rpc.make(WS_METHODS.projectsCreateFromThread, { |
| 1627 | payload: ProjectCreateFromThreadInput, |
| 1628 | success: ProjectCreateFromThreadResult, |
| 1629 | error: Schema.Union([OrchestrationDispatchCommandError, EnvironmentAuthorizationError]), |
| 1630 | }); |
| 1631 | |
| 1632 | const WsShellOpenInEditorRpc = Rpc.make(WS_METHODS.shellOpenInEditor, { |
| 1633 | payload: LaunchEditorInput, |
| 1634 | error: Schema.Union([ExternalLauncherError, EnvironmentAuthorizationError]), |
| 1635 | }); |
| 1636 | |
| 1637 | const WsFilesystemGetMetadataRpc = Rpc.make(WS_METHODS.filesystemGetMetadata, { |
| 1638 | payload: FilesystemGetMetadataInput, |
| 1639 | success: FilesystemGetMetadataResult, |
| 1640 | error: EnvironmentAuthorizationError, |
| 1641 | }); |
| 1642 | |
| 1643 | const WsFilesystemBrowseRpc = Rpc.make(WS_METHODS.filesystemBrowse, { |
| 1644 | payload: FilesystemBrowseInput, |
| 1645 | success: FilesystemBrowseResult, |
| 1646 | error: Schema.Union([FilesystemBrowseError, EnvironmentAuthorizationError]), |
| 1647 | }); |
| 1648 | |
| 1649 | const WsAgentSessionsScanRpc = Rpc.make(WS_METHODS.agentSessionsScan, { |
| 1650 | payload: AgentSessionScanInput, |
| 1651 | success: AgentSessionScanResult, |
| 1652 | error: Schema.Union([AgentSessionScanError, EnvironmentAuthorizationError]), |
| 1653 | }); |
| 1654 | |
| 1655 | const WsAgentSessionsImportRpc = Rpc.make(WS_METHODS.agentSessionsImport, { |
| 1656 | payload: AgentSessionImportInput, |
| 1657 | success: AgentSessionImportResult, |
| 1658 | error: Schema.Union([ |
| 1659 | AgentSessionImportProjectChangedError, |
| 1660 | AgentSessionImportProjectNotFoundError, |
| 1661 | AgentSessionScanError, |
| 1662 | EnvironmentAuthorizationError, |
| 1663 | ]), |
| 1664 | }); |
| 1665 | |
| 1666 | const WsAssetsCreateUrlRpc = Rpc.make(WS_METHODS.assetsCreateUrl, { |
| 1667 | payload: AssetCreateUrlInput, |
| 1668 | success: AssetCreateUrlResult, |
| 1669 | error: Schema.Union([AssetAccessError, EnvironmentAuthorizationError]), |
| 1670 | }); |
| 1671 | |
| 1672 | const WsAssetsPersistChatAttachmentsRpc = Rpc.make(WS_METHODS.assetsPersistChatAttachments, { |
| 1673 | payload: PersistChatAttachmentsInput, |
| 1674 | success: PersistChatAttachmentsResult, |
| 1675 | error: Schema.Union([PersistChatAttachmentsError, EnvironmentAuthorizationError]), |
| 1676 | }); |
| 1677 | |
| 1678 | const WsAttachmentsCreateUploadUrlRpc = Rpc.make(WS_METHODS.attachmentsCreateUploadUrl, { |
| 1679 | payload: AttachmentCreateUploadUrlInput, |
| 1680 | success: AttachmentCreateUploadUrlResult, |
| 1681 | error: Schema.Union([AttachmentUploadSigningKeyError, EnvironmentAuthorizationError]), |
| 1682 | }); |
| 1683 | |
| 1684 | const WsAttachmentsDeleteRpc = Rpc.make(WS_METHODS.attachmentsDelete, { |
| 1685 | payload: AttachmentDeleteInput, |
| 1686 | error: EnvironmentAuthorizationError, |
| 1687 | }); |
| 1688 | |
| 1689 | const WsMcpAppsCallToolRpc = Rpc.make(WS_METHODS.mcpAppsCallTool, { |
| 1690 | payload: McpAppCallToolInput, |
| 1691 | success: McpAppCallToolResult, |
| 1692 | error: Schema.Union([McpAppRequestError, EnvironmentAuthorizationError]), |
| 1693 | }); |
| 1694 | |
| 1695 | const WsMcpAppsToolInfoRpc = Rpc.make(WS_METHODS.mcpAppsToolInfo, { |
| 1696 | payload: McpAppToolInfoInput, |
| 1697 | success: McpAppToolInfo, |
| 1698 | error: Schema.Union([McpAppRequestError, EnvironmentAuthorizationError]), |
| 1699 | }); |
| 1700 | |
| 1701 | const WsMcpAppsUpdateModelContextRpc = Rpc.make(WS_METHODS.mcpAppsUpdateModelContext, { |
| 1702 | payload: McpAppUpdateModelContextInput, |
| 1703 | error: Schema.Union([McpAppRequestError, EnvironmentAuthorizationError]), |
| 1704 | }); |
| 1705 | |
| 1706 | const WsMcpAppsReadResourceRpc = Rpc.make(WS_METHODS.mcpAppsReadResource, { |
| 1707 | payload: McpAppReadResourceInput, |
| 1708 | success: McpAppReadResourceResult, |
| 1709 | error: Schema.Union([McpAppRequestError, EnvironmentAuthorizationError]), |
| 1710 | }); |
| 1711 | |
| 1712 | const WsProviderUploadFeedbackRpc = Rpc.make(WS_METHODS.providerUploadFeedback, { |
| 1713 | payload: ProviderUploadFeedbackInput, |
| 1714 | success: ProviderUploadFeedbackResult, |
| 1715 | error: Schema.Union([ProviderUploadFeedbackError, EnvironmentAuthorizationError]), |
| 1716 | }); |
| 1717 | |
| 1718 | const WsProviderMcpSignInStartRpc = Rpc.make(WS_METHODS.providerMcpSignInStart, { |
| 1719 | payload: ProviderMcpSignInStartInput, |
| 1720 | success: ProviderMcpSignInStartResult, |
| 1721 | error: Schema.Union([ProviderMcpSignInError, EnvironmentAuthorizationError]), |
| 1722 | }); |
| 1723 | |
| 1724 | const WsProviderMcpSignInCompleteRpc = Rpc.make(WS_METHODS.providerMcpSignInComplete, { |
| 1725 | payload: ProviderMcpSignInCompleteInput, |
| 1726 | success: ProviderMcpSignInCompleteResult, |
| 1727 | error: Schema.Union([ProviderMcpSignInError, EnvironmentAuthorizationError]), |
| 1728 | }); |
| 1729 | |
| 1730 | const WsSubscribeVcsBranchRpc = Rpc.make(WS_METHODS.subscribeVcsBranch, { |
| 1731 | payload: VcsStatusInput, |
| 1732 | success: VcsBranchStatus, |
| 1733 | error: Schema.Union([GitManagerServiceError, EnvironmentAuthorizationError]), |
| 1734 | stream: true, |
| 1735 | }); |
| 1736 | |
| 1737 | const WsVcsRefreshBranchRpc = Rpc.make(WS_METHODS.vcsRefreshBranch, { |
| 1738 | payload: VcsStatusInput, |
| 1739 | success: Schema.Void, |
| 1740 | error: Schema.Union([GitManagerServiceError, EnvironmentAuthorizationError]), |
| 1741 | }); |
| 1742 | |
| 1743 | const WsSubscribeVcsStatusRpc = Rpc.make(WS_METHODS.subscribeVcsStatus, { |
| 1744 | payload: VcsStatusSubscriptionInput, |
| 1745 | success: VcsStatusStreamEvent, |
| 1746 | error: Schema.Union([GitManagerServiceError, EnvironmentAuthorizationError]), |
| 1747 | stream: true, |
| 1748 | }); |
| 1749 | |
| 1750 | const WsVcsPullRpc = Rpc.make(WS_METHODS.vcsPull, { |
| 1751 | payload: VcsPullInput, |
| 1752 | success: VcsPullResult, |
| 1753 | error: Schema.Union([GitCommandError, EnvironmentAuthorizationError]), |
| 1754 | }); |
| 1755 | |
| 1756 | const WsVcsRefreshStatusRpc = Rpc.make(WS_METHODS.vcsRefreshStatus, { |
| 1757 | payload: Schema.Struct({ |
| 1758 | ...VcsStatusInput.fields, |
| 1759 | localOnly: Schema.optional(Schema.Boolean), |
| 1760 | }), |
| 1761 | success: VcsStatusResult, |
| 1762 | error: Schema.Union([GitManagerServiceError, EnvironmentAuthorizationError]), |
| 1763 | }); |
| 1764 | |
| 1765 | const WsSubscribeWorktreeSetupRpc = Rpc.make(WS_METHODS.subscribeWorktreeSetup, { |
| 1766 | payload: WorktreeSetupSubscribeInput, |
| 1767 | success: WorktreeSetupStreamEvent, |
| 1768 | error: EnvironmentAuthorizationError, |
| 1769 | stream: true, |
| 1770 | }); |
| 1771 | |
| 1772 | const WsWorktreeSetupCancelRpc = Rpc.make(WS_METHODS.worktreeSetupCancel, { |
| 1773 | payload: WorktreeSetupCancelInput, |
| 1774 | success: WorktreeSetupCancelResult, |
| 1775 | error: EnvironmentAuthorizationError, |
| 1776 | }); |
| 1777 | |
| 1778 | const WsGitRunStackedActionRpc = Rpc.make(WS_METHODS.gitRunStackedAction, { |
| 1779 | payload: GitRunStackedActionInput, |
| 1780 | success: GitActionProgressEvent, |
| 1781 | error: Schema.Union([GitManagerServiceError, EnvironmentAuthorizationError]), |
| 1782 | stream: true, |
| 1783 | }); |
| 1784 | |
| 1785 | const WsGitResolvePullRequestRpc = Rpc.make(WS_METHODS.gitResolvePullRequest, { |
| 1786 | payload: GitPullRequestRefInput, |
| 1787 | success: GitResolvePullRequestResult, |
| 1788 | error: Schema.Union([GitManagerServiceError, EnvironmentAuthorizationError]), |
| 1789 | }); |
| 1790 | |
| 1791 | const WsGitPreparePullRequestThreadRpc = Rpc.make(WS_METHODS.gitPreparePullRequestThread, { |
| 1792 | payload: GitPreparePullRequestThreadInput, |
| 1793 | success: GitPreparePullRequestThreadResult, |
| 1794 | error: Schema.Union([GitManagerServiceError, EnvironmentAuthorizationError]), |
| 1795 | }); |
| 1796 | |
| 1797 | const WsVcsListRefsRpc = Rpc.make(WS_METHODS.vcsListRefs, { |
| 1798 | payload: VcsListRefsInput, |
| 1799 | success: VcsListRefsResult, |
| 1800 | error: Schema.Union([GitCommandError, EnvironmentAuthorizationError]), |
| 1801 | }); |
| 1802 | |
| 1803 | const WsVcsCreateWorktreeRpc = Rpc.make(WS_METHODS.vcsCreateWorktree, { |
| 1804 | // Worktrees use the managed folder; required null path preserves compatibility with older servers. |
| 1805 | payload: Schema.Struct({ ...VcsCreateWorktreeInput.fields, path: Schema.Null }), |
| 1806 | success: VcsCreateWorktreeResult, |
| 1807 | error: Schema.Union([GitCommandError, EnvironmentAuthorizationError]), |
| 1808 | }); |
| 1809 | |
| 1810 | const WsVcsRemoveWorktreeRpc = Rpc.make(WS_METHODS.vcsRemoveWorktree, { |
| 1811 | payload: VcsRemoveWorktreeInput, |
| 1812 | error: Schema.Union([GitCommandError, EnvironmentAuthorizationError]), |
| 1813 | }); |
| 1814 | |
| 1815 | const WsVcsCreateRefRpc = Rpc.make(WS_METHODS.vcsCreateRef, { |
| 1816 | payload: VcsCreateRefInput, |
| 1817 | success: VcsCreateRefResult, |
| 1818 | error: Schema.Union([GitCommandError, EnvironmentAuthorizationError]), |
| 1819 | }); |
| 1820 | |
| 1821 | const WsVcsSwitchRefRpc = Rpc.make(WS_METHODS.vcsSwitchRef, { |
| 1822 | payload: VcsSwitchRefInput, |
| 1823 | success: VcsSwitchRefResult, |
| 1824 | error: Schema.Union([GitCommandError, EnvironmentAuthorizationError]), |
| 1825 | }); |
| 1826 | |
| 1827 | const WsVcsInitRpc = Rpc.make(WS_METHODS.vcsInit, { |
| 1828 | payload: VcsInitInput, |
| 1829 | error: Schema.Union([VcsError, EnvironmentAuthorizationError]), |
| 1830 | }); |
| 1831 | |
| 1832 | const WsReviewGetBranchCommitsRpc = Rpc.make(WS_METHODS.reviewGetBranchCommits, { |
| 1833 | payload: ReviewBranchCommitsInput, |
| 1834 | success: ReviewBranchCommitsResult, |
| 1835 | error: Schema.Union([ReviewDiffPreviewError, EnvironmentAuthorizationError]), |
| 1836 | }); |
| 1837 | |
| 1838 | const WsReviewGetDiffPreviewRpc = Rpc.make(WS_METHODS.reviewGetDiffPreview, { |
| 1839 | payload: ReviewDiffPreviewInput, |
| 1840 | success: ReviewDiffPreviewResult, |
| 1841 | error: Schema.Union([ReviewDiffPreviewError, EnvironmentAuthorizationError]), |
| 1842 | }); |
| 1843 | |
| 1844 | const WsReviewGetDiffFileContentsRpc = Rpc.make(WS_METHODS.reviewGetDiffFileContents, { |
| 1845 | payload: ReviewDiffFileContentsInput, |
| 1846 | success: ReviewDiffFileContentsResult, |
| 1847 | error: Schema.Union([ReviewDiffPreviewError, EnvironmentAuthorizationError]), |
| 1848 | }); |
| 1849 | |
| 1850 | const WsTerminalOpenRpc = Rpc.make(WS_METHODS.terminalOpen, { |
| 1851 | payload: TerminalOpenInput, |
| 1852 | success: TerminalSessionSnapshot, |
| 1853 | error: Schema.Union([TerminalError, EnvironmentAuthorizationError]), |
| 1854 | }); |
| 1855 | |
| 1856 | const WsTerminalAttachRpc = Rpc.make(WS_METHODS.terminalAttach, { |
| 1857 | payload: TerminalAttachInput, |
| 1858 | success: TerminalAttachStreamEvent, |
| 1859 | error: Schema.Union([TerminalError, EnvironmentAuthorizationError]), |
| 1860 | stream: true, |
| 1861 | }); |
| 1862 | |
| 1863 | const WsTerminalObserveRpc = Rpc.make(WS_METHODS.terminalObserve, { |
| 1864 | payload: TerminalObserveInput, |
| 1865 | success: TerminalAttachStreamEvent, |
| 1866 | error: Schema.Union([TerminalError, EnvironmentAuthorizationError]), |
| 1867 | stream: true, |
| 1868 | }); |
| 1869 | |
| 1870 | const WsTerminalWriteRpc = Rpc.make(WS_METHODS.terminalWrite, { |
| 1871 | payload: TerminalWriteInput, |
| 1872 | error: Schema.Union([TerminalError, EnvironmentAuthorizationError]), |
| 1873 | }); |
| 1874 | |
| 1875 | const WsTerminalResizeRpc = Rpc.make(WS_METHODS.terminalResize, { |
| 1876 | payload: TerminalResizeInput, |
| 1877 | error: Schema.Union([TerminalError, EnvironmentAuthorizationError]), |
| 1878 | }); |
| 1879 | |
| 1880 | const WsTerminalClearRpc = Rpc.make(WS_METHODS.terminalClear, { |
| 1881 | payload: TerminalClearInput, |
| 1882 | error: Schema.Union([TerminalError, EnvironmentAuthorizationError]), |
| 1883 | }); |
| 1884 | |
| 1885 | const WsTerminalCloseRpc = Rpc.make(WS_METHODS.terminalClose, { |
| 1886 | payload: TerminalCloseInput, |
| 1887 | error: Schema.Union([TerminalError, EnvironmentAuthorizationError]), |
| 1888 | }); |
| 1889 | |
| 1890 | const WsPreviewOpenRpc = Rpc.make(WS_METHODS.previewOpen, { |
| 1891 | payload: PreviewOpenInput, |
| 1892 | success: PreviewSessionSnapshot, |
| 1893 | error: Schema.Union([PreviewError, EnvironmentAuthorizationError]), |
| 1894 | }); |
| 1895 | |
| 1896 | const WsPreviewResizeRpc = Rpc.make(WS_METHODS.previewResize, { |
| 1897 | payload: PreviewResizeInput, |
| 1898 | success: PreviewSessionSnapshot, |
| 1899 | error: Schema.Union([PreviewError, EnvironmentAuthorizationError]), |
| 1900 | }); |
| 1901 | |
| 1902 | const WsPreviewAdjustRpc = Rpc.make(WS_METHODS.previewAdjust, { |
| 1903 | payload: PreviewAdjustInput, |
| 1904 | success: PreviewSessionSnapshot, |
| 1905 | error: Schema.Union([PreviewError, EnvironmentAuthorizationError]), |
| 1906 | }); |
| 1907 | |
| 1908 | const WsPreviewCloseRpc = Rpc.make(WS_METHODS.previewClose, { |
| 1909 | payload: PreviewCloseInput, |
| 1910 | error: Schema.Union([PreviewError, EnvironmentAuthorizationError]), |
| 1911 | }); |
| 1912 | |
| 1913 | const WsPreviewListRpc = Rpc.make(WS_METHODS.previewList, { |
| 1914 | payload: PreviewListInput, |
| 1915 | success: PreviewListResult, |
| 1916 | error: EnvironmentAuthorizationError, |
| 1917 | }); |
| 1918 | |
| 1919 | const WsPreviewClearProfileRpc = Rpc.make(WS_METHODS.previewClearProfile, { |
| 1920 | payload: PreviewClearProfileInput, |
| 1921 | error: Schema.Union([PreviewClearProfileError, EnvironmentAuthorizationError]), |
| 1922 | }); |
| 1923 | |
| 1924 | const WsPreviewReportProfilesRpc = Rpc.make(WS_METHODS.previewReportProfiles, { |
| 1925 | payload: PreviewReportProfilesInput, |
| 1926 | error: EnvironmentAuthorizationError, |
| 1927 | }); |
| 1928 | |
| 1929 | const WsPreviewReportStatusRpc = Rpc.make(WS_METHODS.previewReportStatus, { |
| 1930 | payload: PreviewReportStatusInput, |
| 1931 | error: Schema.Union([PreviewError, EnvironmentAuthorizationError]), |
| 1932 | }); |
| 1933 | |
| 1934 | const WsSubscribePreviewEventsRpc = Rpc.make(WS_METHODS.subscribePreviewEvents, { |
| 1935 | payload: Schema.Struct({}), |
| 1936 | success: PreviewEvent, |
| 1937 | error: EnvironmentAuthorizationError, |
| 1938 | stream: true, |
| 1939 | }); |
| 1940 | |
| 1941 | const WsPreviewStopLocalServerRpc = Rpc.make(WS_METHODS.previewStopLocalServer, { |
| 1942 | payload: PreviewStopLocalServerInput, |
| 1943 | error: Schema.Union([PreviewStopLocalServerError, EnvironmentAuthorizationError]), |
| 1944 | }); |
| 1945 | |
| 1946 | const WsSubscribeDiscoveredLocalServersRpc = Rpc.make(WS_METHODS.subscribeDiscoveredLocalServers, { |
| 1947 | payload: Schema.Struct({ |
| 1948 | configuredUrls: Schema.optional(ConfiguredLocalServerUrls), |
| 1949 | }), |
| 1950 | success: DiscoveredLocalServerList, |
| 1951 | error: EnvironmentAuthorizationError, |
| 1952 | stream: true, |
| 1953 | }); |
| 1954 | |
| 1955 | const WsDeviceTestHostRpc = Rpc.make(WS_METHODS.deviceTestHost, { |
| 1956 | payload: SshDeviceHostConfig, |
| 1957 | success: DeviceHostSummary, |
| 1958 | error: Schema.Union([DeviceError, EnvironmentAuthorizationError]), |
| 1959 | }); |
| 1960 | |
| 1961 | const WsDeviceEasAccountRpc = Rpc.make(WS_METHODS.deviceEasAccount, { |
| 1962 | payload: DeviceEasAccountInput, |
| 1963 | success: DeviceEasAccount, |
| 1964 | error: Schema.Union([DeviceEasAccountError, EnvironmentAuthorizationError]), |
| 1965 | }); |
| 1966 | |
| 1967 | const WsDeviceSimlockIdentityRpc = Rpc.make(WS_METHODS.deviceSimlockIdentity, { |
| 1968 | payload: DeviceSimlockIdentityInput, |
| 1969 | success: DeviceSimlockIdentity, |
| 1970 | error: Schema.Union([DeviceSimlockIdentityError, EnvironmentAuthorizationError]), |
| 1971 | }); |
| 1972 | |
| 1973 | const WsDeviceListRpc = Rpc.make(WS_METHODS.deviceList, { |
| 1974 | payload: DeviceListInput, |
| 1975 | success: DeviceServiceState, |
| 1976 | error: Schema.Union([DeviceError, EnvironmentAuthorizationError]), |
| 1977 | }); |
| 1978 | |
| 1979 | const WsDeviceConfigureRpc = Rpc.make(WS_METHODS.deviceConfigure, { |
| 1980 | payload: DeviceConfigureInput, |
| 1981 | success: DeviceServiceState, |
| 1982 | error: Schema.Union([DeviceError, EnvironmentAuthorizationError]), |
| 1983 | }); |
| 1984 | |
| 1985 | const WsDeviceOpenRpc = Rpc.make(WS_METHODS.deviceOpen, { |
| 1986 | payload: DeviceOpenInput, |
| 1987 | success: DeviceSession, |
| 1988 | error: Schema.Union([DeviceError, EnvironmentAuthorizationError]), |
| 1989 | }); |
| 1990 | |
| 1991 | const WsDeviceCloseRpc = Rpc.make(WS_METHODS.deviceClose, { |
| 1992 | payload: DeviceCloseInput, |
| 1993 | error: Schema.Union([DeviceError, EnvironmentAuthorizationError]), |
| 1994 | }); |
| 1995 | |
| 1996 | const WsDeviceShutdownRpc = Rpc.make(WS_METHODS.deviceShutdown, { |
| 1997 | payload: DeviceShutdownInput, |
| 1998 | error: Schema.Union([DeviceError, EnvironmentAuthorizationError]), |
| 1999 | }); |
| 2000 | |
| 2001 | const WsDeviceDetailRpc = Rpc.make(WS_METHODS.deviceDetail, { |
| 2002 | payload: DeviceDetailInput, |
| 2003 | success: DeviceDetail, |
| 2004 | error: Schema.Union([DeviceError, EnvironmentAuthorizationError]), |
| 2005 | }); |
| 2006 | |
| 2007 | const WsDeviceActionRpc = Rpc.make(WS_METHODS.deviceAction, { |
| 2008 | payload: DeviceActionInput, |
| 2009 | success: DeviceDetail, |
| 2010 | error: Schema.Union([DeviceError, EnvironmentAuthorizationError]), |
| 2011 | }); |
| 2012 | |
| 2013 | const WsSubscribeDeviceStateRpc = Rpc.make(WS_METHODS.subscribeDeviceState, { |
| 2014 | payload: Schema.Struct({}), |
| 2015 | success: DeviceServiceState, |
| 2016 | error: EnvironmentAuthorizationError, |
| 2017 | stream: true, |
| 2018 | }); |
| 2019 | |
| 2020 | const WsOrchestrationV2DispatchCommandRpc = Rpc.make(ORCHESTRATION_V2_WS_METHODS.dispatchCommand, { |
| 2021 | payload: OrchestrationV2RpcSchemas.dispatchCommand.input, |
| 2022 | success: OrchestrationV2RpcSchemas.dispatchCommand.output, |
| 2023 | error: Schema.Union([OrchestrationV2DispatchCommandError, EnvironmentAuthorizationError]), |
| 2024 | }); |
| 2025 | |
| 2026 | const WsOrchestrationV2GetTurnDiffRpc = Rpc.make(ORCHESTRATION_V2_WS_METHODS.getTurnDiff, { |
| 2027 | payload: OrchestrationV2RpcSchemas.getTurnDiff.input, |
| 2028 | success: OrchestrationV2RpcSchemas.getTurnDiff.output, |
| 2029 | error: Schema.Union([OrchestrationGetTurnDiffError, EnvironmentAuthorizationError]), |
| 2030 | }); |
| 2031 | |
| 2032 | const WsOrchestrationV2GetFullThreadDiffRpc = Rpc.make( |
| 2033 | ORCHESTRATION_V2_WS_METHODS.getFullThreadDiff, |
| 2034 | { |
| 2035 | payload: OrchestrationV2RpcSchemas.getFullThreadDiff.input, |
| 2036 | success: OrchestrationV2RpcSchemas.getFullThreadDiff.output, |
| 2037 | error: Schema.Union([OrchestrationGetFullThreadDiffError, EnvironmentAuthorizationError]), |
| 2038 | }, |
| 2039 | ); |
| 2040 | |
| 2041 | const WsOrchestrationV2SearchThreadRpc = Rpc.make(ORCHESTRATION_V2_WS_METHODS.searchThread, { |
| 2042 | payload: OrchestrationV2SearchThreadInput, |
| 2043 | success: OrchestrationV2SearchThreadResult, |
| 2044 | error: Schema.Union([OrchestrationV2SearchThreadError, EnvironmentAuthorizationError]), |
| 2045 | }); |
| 2046 | |
| 2047 | const WsOrchestrationV2SearchThreadStreamRpc = Rpc.make( |
| 2048 | ORCHESTRATION_V2_WS_METHODS.searchThreadStream, |
| 2049 | { |
| 2050 | payload: OrchestrationV2SearchThreadInput, |
| 2051 | success: OrchestrationV2SearchThreadResult, |
| 2052 | error: Schema.Union([OrchestrationV2SearchThreadError, EnvironmentAuthorizationError]), |
| 2053 | stream: true, |
| 2054 | }, |
| 2055 | ); |
| 2056 | |
| 2057 | const WsOrchestrationV2SearchThreadsRpc = Rpc.make(ORCHESTRATION_V2_WS_METHODS.searchThreads, { |
| 2058 | payload: OrchestrationV2SearchThreadsInput, |
| 2059 | success: OrchestrationV2SearchThreadsResult, |
| 2060 | error: Schema.Union([OrchestrationSearchThreadsError, EnvironmentAuthorizationError]), |
| 2061 | }); |
| 2062 | |
| 2063 | const WsOrchestrationV2GetArchivedShellSnapshotRpc = Rpc.make( |
| 2064 | ORCHESTRATION_V2_WS_METHODS.getArchivedShellSnapshot, |
| 2065 | { |
| 2066 | payload: OrchestrationV2RpcSchemas.getArchivedShellSnapshot.input, |
| 2067 | success: OrchestrationV2RpcSchemas.getArchivedShellSnapshot.output, |
| 2068 | error: Schema.Union([OrchestrationV2GetShellSnapshotError, EnvironmentAuthorizationError]), |
| 2069 | }, |
| 2070 | ); |
| 2071 | |
| 2072 | const WsOrchestrationV2GetThreadFamilyRpc = Rpc.make(ORCHESTRATION_V2_WS_METHODS.getThreadFamily, { |
| 2073 | payload: OrchestrationV2RpcSchemas.getThreadFamily.input, |
| 2074 | success: OrchestrationV2RpcSchemas.getThreadFamily.output, |
| 2075 | error: Schema.Union([OrchestrationV2GetShellSnapshotError, EnvironmentAuthorizationError]), |
| 2076 | }); |
| 2077 | |
| 2078 | const WsOrchestrationV2GetThreadTitlesRpc = Rpc.make(ORCHESTRATION_V2_WS_METHODS.getThreadTitles, { |
| 2079 | payload: OrchestrationV2RpcSchemas.getThreadTitles.input, |
| 2080 | success: OrchestrationV2RpcSchemas.getThreadTitles.output, |
| 2081 | error: Schema.Union([OrchestrationV2GetShellSnapshotError, EnvironmentAuthorizationError]), |
| 2082 | }); |
| 2083 | |
| 2084 | const WsOrchestrationV2GetThreadLinkMetadataRpc = Rpc.make( |
| 2085 | ORCHESTRATION_V2_WS_METHODS.getThreadLinkMetadata, |
| 2086 | { |
| 2087 | payload: OrchestrationV2RpcSchemas.getThreadLinkMetadata.input, |
| 2088 | success: OrchestrationV2RpcSchemas.getThreadLinkMetadata.output, |
| 2089 | error: Schema.Union([OrchestrationV2GetShellSnapshotError, EnvironmentAuthorizationError]), |
| 2090 | }, |
| 2091 | ); |
| 2092 | |
| 2093 | const WsOrchestrationV2GetWorktreeThreadIdsRpc = Rpc.make( |
| 2094 | ORCHESTRATION_V2_WS_METHODS.getWorktreeThreadIds, |
| 2095 | { |
| 2096 | payload: OrchestrationV2RpcSchemas.getWorktreeThreadIds.input, |
| 2097 | success: OrchestrationV2RpcSchemas.getWorktreeThreadIds.output, |
| 2098 | error: Schema.Union([OrchestrationV2GetShellSnapshotError, EnvironmentAuthorizationError]), |
| 2099 | }, |
| 2100 | ); |
| 2101 | |
| 2102 | const WsOrchestrationV2GetOlderSettledThreadsRpc = Rpc.make( |
| 2103 | ORCHESTRATION_V2_WS_METHODS.getOlderSettledThreads, |
| 2104 | { |
| 2105 | payload: OrchestrationV2RpcSchemas.getOlderSettledThreads.input, |
| 2106 | success: OrchestrationV2RpcSchemas.getOlderSettledThreads.output, |
| 2107 | error: Schema.Union([OrchestrationV2GetShellSnapshotError, EnvironmentAuthorizationError]), |
| 2108 | }, |
| 2109 | ); |
| 2110 | |
| 2111 | const WsOrchestrationV2GetThreadProjectionRpc = Rpc.make( |
| 2112 | ORCHESTRATION_V2_WS_METHODS.getThreadProjection, |
| 2113 | { |
| 2114 | payload: OrchestrationV2RpcSchemas.getThreadProjection.input, |
| 2115 | success: OrchestrationV2RpcSchemas.getThreadProjection.output, |
| 2116 | error: Schema.Union([OrchestrationV2GetThreadProjectionError, EnvironmentAuthorizationError]), |
| 2117 | }, |
| 2118 | ); |
| 2119 | |
| 2120 | const WsOrchestrationV2StopWorkflowRpc = Rpc.make(ORCHESTRATION_V2_WS_METHODS.stopWorkflow, { |
| 2121 | payload: OrchestrationV2RpcSchemas.stopWorkflow.input, |
| 2122 | success: OrchestrationV2RpcSchemas.stopWorkflow.output, |
| 2123 | error: Schema.Union([OrchestrationV2StopWorkflowError, EnvironmentAuthorizationError]), |
| 2124 | }); |
| 2125 | |
| 2126 | const WsOrchestrationV2ForceStopThreadRpc = Rpc.make(ORCHESTRATION_V2_WS_METHODS.forceStopThread, { |
| 2127 | payload: OrchestrationV2RpcSchemas.forceStopThread.input, |
| 2128 | success: OrchestrationV2RpcSchemas.forceStopThread.output, |
| 2129 | error: Schema.Union([OrchestrationV2ForceStopThreadError, EnvironmentAuthorizationError]), |
| 2130 | }); |
| 2131 | |
| 2132 | const WsOrchestrationV2GetWorkflowScriptRpc = Rpc.make( |
| 2133 | ORCHESTRATION_V2_WS_METHODS.getWorkflowScript, |
| 2134 | { |
| 2135 | payload: OrchestrationV2RpcSchemas.getWorkflowScript.input, |
| 2136 | success: OrchestrationV2RpcSchemas.getWorkflowScript.output, |
| 2137 | error: Schema.Union([OrchestrationGetWorkflowScriptError, EnvironmentAuthorizationError]), |
| 2138 | }, |
| 2139 | ); |
| 2140 | |
| 2141 | const WsOrchestrationV2GetNativeChildWorkRpc = Rpc.make( |
| 2142 | ORCHESTRATION_V2_WS_METHODS.getNativeChildWork, |
| 2143 | { |
| 2144 | payload: OrchestrationV2RpcSchemas.getNativeChildWork.input, |
| 2145 | success: OrchestrationV2RpcSchemas.getNativeChildWork.output, |
| 2146 | error: Schema.Union([OrchestrationV2GetNativeChildWorkError, EnvironmentAuthorizationError]), |
| 2147 | }, |
| 2148 | ); |
| 2149 | |
| 2150 | const WsOrchestrationV2GetTurnItemRpc = Rpc.make(ORCHESTRATION_V2_WS_METHODS.getTurnItem, { |
| 2151 | payload: OrchestrationV2RpcSchemas.getTurnItem.input, |
| 2152 | success: OrchestrationV2RpcSchemas.getTurnItem.output, |
| 2153 | error: Schema.Union([OrchestrationV2GetThreadProjectionError, EnvironmentAuthorizationError]), |
| 2154 | }); |
| 2155 | |
| 2156 | const WsOrchestrationV2LaunchThreadRpc = Rpc.make(ORCHESTRATION_V2_WS_METHODS.launchThread, { |
| 2157 | payload: OrchestrationV2RpcSchemas.launchThread.input, |
| 2158 | success: OrchestrationV2RpcSchemas.launchThread.output, |
| 2159 | error: Schema.Union([OrchestrationV2ThreadLaunchError, EnvironmentAuthorizationError]), |
| 2160 | }); |
| 2161 | |
| 2162 | const WsOrchestrationV2SubscribeShellRpc = Rpc.make(ORCHESTRATION_V2_WS_METHODS.subscribeShell, { |
| 2163 | payload: OrchestrationV2RpcSchemas.subscribeShell.input, |
| 2164 | success: OrchestrationV2RpcSchemas.subscribeShell.output, |
| 2165 | error: Schema.Union([OrchestrationV2GetShellSnapshotError, EnvironmentAuthorizationError]), |
| 2166 | stream: true, |
| 2167 | }); |
| 2168 | |
| 2169 | const WsOrchestrationV2SubscribeThreadRpc = Rpc.make(ORCHESTRATION_V2_WS_METHODS.subscribeThread, { |
| 2170 | payload: OrchestrationV2RpcSchemas.subscribeThread.input, |
| 2171 | success: OrchestrationV2RpcSchemas.subscribeThread.output, |
| 2172 | error: Schema.Union([OrchestrationV2GetThreadProjectionError, EnvironmentAuthorizationError]), |
| 2173 | stream: true, |
| 2174 | }); |
| 2175 | |
| 2176 | const WsOrchestrationV2SubscribeCommandOutputRpc = Rpc.make( |
| 2177 | ORCHESTRATION_V2_WS_METHODS.subscribeCommandOutput, |
| 2178 | { |
| 2179 | payload: OrchestrationV2RpcSchemas.subscribeCommandOutput.input, |
| 2180 | success: OrchestrationV2RpcSchemas.subscribeCommandOutput.output, |
| 2181 | error: Schema.Union([OrchestrationV2CommandOutputError, EnvironmentAuthorizationError]), |
| 2182 | stream: true, |
| 2183 | }, |
| 2184 | ); |
| 2185 | |
| 2186 | const WsOrchestrationV2SubscribePromptSuggestionRpc = Rpc.make( |
| 2187 | ORCHESTRATION_V2_WS_METHODS.subscribePromptSuggestion, |
| 2188 | { |
| 2189 | payload: OrchestrationV2RpcSchemas.subscribePromptSuggestion.input, |
| 2190 | success: OrchestrationV2RpcSchemas.subscribePromptSuggestion.output, |
| 2191 | error: EnvironmentAuthorizationError, |
| 2192 | stream: true, |
| 2193 | }, |
| 2194 | ); |
| 2195 | |
| 2196 | const WsSubscribeTerminalMetadataRpc = Rpc.make(WS_METHODS.subscribeTerminalMetadata, { |
| 2197 | payload: Schema.Struct({}), |
| 2198 | success: TerminalMetadataStreamEvent, |
| 2199 | error: EnvironmentAuthorizationError, |
| 2200 | stream: true, |
| 2201 | }); |
| 2202 | |
| 2203 | export const WsSubscribeServerConfigRpc = Rpc.make(WS_METHODS.subscribeServerConfig, { |
| 2204 | payload: Schema.Struct({ |
| 2205 | /** Opt-in protects older clients that reject unknown theme event types. */ |
| 2206 | environmentThemes: Schema.optional(Schema.Boolean), |
| 2207 | usageLimitSources: Schema.optional(Schema.Boolean), |
| 2208 | /** Advertise client handling before the server offers /usage-limits, or older clients send it as a prompt. */ |
| 2209 | usageLimitsCommand: Schema.optional(Schema.Boolean), |
| 2210 | /** Omit per-cwd provider snapshots; the client fetches its cwd through `server.refreshProviders`. */ |
| 2211 | workspaceSnapshotsOnDemand: Schema.optional(Schema.Boolean), |
| 2212 | /** With on-demand snapshots, also omit machine slash commands and skills a cwd snapshot replaces. */ |
| 2213 | providerCatalogsOnDemand: Schema.optional(Schema.Boolean), |
| 2214 | /** |
| 2215 | * With on-demand catalogs, send a `catalogDigest` in place of the machine slash command names |
| 2216 | * and skills. The client keeps the lists it holds and loads new ones with a cwd snapshot. |
| 2217 | */ |
| 2218 | providerCatalogDigests: Schema.optional(Schema.Boolean), |
| 2219 | /** Send provider changes as `providerStatusDeltas`; older clients reject the event type. */ |
| 2220 | providerStatusDeltas: Schema.optional(Schema.Boolean), |
| 2221 | }), |
| 2222 | success: ServerConfigStreamEvent, |
| 2223 | error: Schema.Union([KeybindingsConfigError, ServerSettingsError, EnvironmentAuthorizationError]), |
| 2224 | stream: true, |
| 2225 | }); |
| 2226 | |
| 2227 | const WsSubscribeServerLifecycleRpc = Rpc.make(WS_METHODS.subscribeServerLifecycle, { |
| 2228 | payload: Schema.Struct({}), |
| 2229 | success: ServerLifecycleStreamEvent, |
| 2230 | error: EnvironmentAuthorizationError, |
| 2231 | stream: true, |
| 2232 | }); |
| 2233 | |
| 2234 | const WsScheduledTasksSubscribeRpc = Rpc.make(WS_METHODS.scheduledTasksSubscribe, { |
| 2235 | payload: ScheduledTaskListInput, |
| 2236 | success: ScheduledTaskListResult, |
| 2237 | error: Schema.Union([ScheduledTaskError, EnvironmentAuthorizationError]), |
| 2238 | stream: true, |
| 2239 | }); |
| 2240 | |
| 2241 | const WsScheduledTasksUpsertRpc = Rpc.make(WS_METHODS.scheduledTasksUpsert, { |
| 2242 | payload: ScheduledTaskUpsertInput, |
| 2243 | success: ScheduledTaskMutationResult, |
| 2244 | error: Schema.Union([ScheduledTaskError, EnvironmentAuthorizationError]), |
| 2245 | }); |
| 2246 | |
| 2247 | const WsScheduledTasksSetEnabledRpc = Rpc.make(WS_METHODS.scheduledTasksSetEnabled, { |
| 2248 | payload: ScheduledTaskSetEnabledInput, |
| 2249 | success: ScheduledTaskMutationResult, |
| 2250 | error: Schema.Union([ScheduledTaskError, EnvironmentAuthorizationError]), |
| 2251 | }); |
| 2252 | |
| 2253 | const WsScheduledTasksDeleteRpc = Rpc.make(WS_METHODS.scheduledTasksDelete, { |
| 2254 | payload: ScheduledTaskDeleteInput, |
| 2255 | success: ScheduledTaskDeleteResult, |
| 2256 | error: Schema.Union([ScheduledTaskError, EnvironmentAuthorizationError]), |
| 2257 | }); |
| 2258 | |
| 2259 | const WsScheduledTasksRunNowRpc = Rpc.make(WS_METHODS.scheduledTasksRunNow, { |
| 2260 | payload: ScheduledTaskRunNowInput, |
| 2261 | success: ScheduledTaskRunNowResult, |
| 2262 | error: Schema.Union([ScheduledTaskError, EnvironmentAuthorizationError]), |
| 2263 | }); |
| 2264 | |
| 2265 | const WsScheduledTasksRotateWebhookTokenRpc = Rpc.make( |
| 2266 | WS_METHODS.scheduledTasksRotateWebhookToken, |
| 2267 | { |
| 2268 | payload: ScheduledTaskRotateWebhookTokenInput, |
| 2269 | success: ScheduledTaskMutationResult, |
| 2270 | error: Schema.Union([ScheduledTaskError, EnvironmentAuthorizationError]), |
| 2271 | }, |
| 2272 | ); |
| 2273 | |
| 2274 | const WsGuestShareCreateRpc = Rpc.make(WS_METHODS.guestShareCreate, { |
| 2275 | payload: GuestShareCreateInput, |
| 2276 | success: GuestShareCreateResult, |
| 2277 | error: Schema.Union([GuestShareCreateError, EnvironmentAuthorizationError]), |
| 2278 | }); |
| 2279 | |
| 2280 | const WsSecretsAnswerRequestRpc = Rpc.make(WS_METHODS.secretsAnswerRequest, { |
| 2281 | payload: SecretRequestAnswerInput, |
| 2282 | error: Schema.Union([SecretRequestError, EnvironmentAuthorizationError]), |
| 2283 | }); |
| 2284 | |
| 2285 | const WsScheduledTasksListWebhookDeliveriesRpc = Rpc.make( |
| 2286 | WS_METHODS.scheduledTasksListWebhookDeliveries, |
| 2287 | { |
| 2288 | payload: ScheduledTaskListWebhookDeliveriesInput, |
| 2289 | success: ScheduledTaskListWebhookDeliveriesResult, |
| 2290 | error: Schema.Union([ScheduledTaskError, EnvironmentAuthorizationError]), |
| 2291 | }, |
| 2292 | ); |
| 2293 | |
| 2294 | const WsScheduledTasksGetWebhookDeliveryRpc = Rpc.make( |
| 2295 | WS_METHODS.scheduledTasksGetWebhookDelivery, |
| 2296 | { |
| 2297 | payload: ScheduledTaskGetWebhookDeliveryInput, |
| 2298 | success: ScheduledTaskGetWebhookDeliveryResult, |
| 2299 | error: Schema.Union([ScheduledTaskError, EnvironmentAuthorizationError]), |
| 2300 | }, |
| 2301 | ); |
| 2302 | |
| 2303 | const WsSubscribeAuthAccessRpc = Rpc.make(WS_METHODS.subscribeAuthAccess, { |
| 2304 | payload: Schema.Struct({}), |
| 2305 | success: AuthAccessStreamEvent, |
| 2306 | error: Schema.Union([AuthAccessStreamError, EnvironmentAuthorizationError]), |
| 2307 | stream: true, |
| 2308 | }); |
| 2309 | |
| 2310 | const WsSubscribeResourceTelemetryRpc = Rpc.make(WS_METHODS.subscribeResourceTelemetry, { |
| 2311 | payload: Schema.Struct({}), |
| 2312 | success: ResourceTelemetrySnapshot, |
| 2313 | error: EnvironmentAuthorizationError, |
| 2314 | stream: true, |
| 2315 | }); |
| 2316 | |
| 2317 | export class RpcScopeAuthorization extends RpcMiddleware.Service<RpcScopeAuthorization>()( |
| 2318 | "t3/contracts/RpcScopeAuthorization", |
| 2319 | { error: EnvironmentAuthorizationError }, |
| 2320 | ) {} |
| 2321 | |
| 2322 | export const WsRpcGroup = RpcGroup.make( |
| 2323 | WsIssuesListRpc, |
| 2324 | WsIssuesDetailRpc, |
| 2325 | WsIssuesCommentsRpc, |
| 2326 | WsIssuesTemplatesRpc, |
| 2327 | WsIssuesCandidatesRpc, |
| 2328 | WsIssuesLinkedThreadsRpc, |
| 2329 | WsIssuesCreateRpc, |
| 2330 | WsIssuesCommentRpc, |
| 2331 | WsIssuesUpdateRpc, |
| 2332 | WsIssuesSetStateRpc, |
| 2333 | WsIssuesReactRpc, |
| 2334 | WsIssueTrackersListRpc, |
| 2335 | WsIssueTrackersConnectRpc, |
| 2336 | WsIssueTrackersBindProjectRpc, |
| 2337 | WsGuestShareCreateRpc, |
| 2338 | WsServerProbeRpc, |
| 2339 | WsServerGetConfigRpc, |
| 2340 | WsServerRefreshProvidersRpc, |
| 2341 | WsServerUpdateProviderRpc, |
| 2342 | WsProviderConsumeResetCreditRpc, |
| 2343 | WsProviderAuthStartRpc, |
| 2344 | WsProviderAuthCompleteRpc, |
| 2345 | WsChatGptReconnectProfileRpc, |
| 2346 | WsChatGptImportProfileRpc, |
| 2347 | WsChatGptHandoffSubscribeRpc, |
| 2348 | WsProviderAuthRespondRpc, |
| 2349 | WsProviderAuthCancelRpc, |
| 2350 | WsProviderAuthRemoveMethodRpc, |
| 2351 | WsProviderAuthLogoutRpc, |
| 2352 | WsProviderAuthSubscribeRpc, |
| 2353 | WsProviderInstallStartRpc, |
| 2354 | WsProviderInstallCancelRpc, |
| 2355 | WsProviderInstallSubscribeRpc, |
| 2356 | WsProviderInstallRemoveRpc, |
| 2357 | WsServerUpdateServerRpc, |
| 2358 | WsServerGetNpmReleaseRpc, |
| 2359 | WsServerUpdateServerWithProgressRpc, |
| 2360 | WsServerCommitDesktopUpdateRpc, |
| 2361 | WsServerUpsertKeybindingRpc, |
| 2362 | WsServerRemoveKeybindingRpc, |
| 2363 | WsServerRunStorageCleanupRpc, |
| 2364 | WsServerGetStorageCleanupReportRpc, |
| 2365 | WsServerGetDatabaseStorageRpc, |
| 2366 | WsServerGetSettingsRpc, |
| 2367 | WsServerReclaimDatabaseSpaceRpc, |
| 2368 | WsServerUpdateSettingsRpc, |
| 2369 | WsPeerLinksListRpc, |
| 2370 | WsPeerLinksNamesRpc, |
| 2371 | WsPeerLinksLinkRpc, |
| 2372 | WsPeerLinksUnlinkRpc, |
| 2373 | WsPeerLinksAnswerRequestRpc, |
| 2374 | WsPeerLinksSubscribeThreadRpc, |
| 2375 | WsPeerLinksThreadHistoryPageRpc, |
| 2376 | WsPeerLinksThreadItemRpc, |
| 2377 | WsPeerLinksPairClientRpc, |
| 2378 | WsServerDiscoverSourceControlRpc, |
| 2379 | WsServerCheckSecretSourceRpc, |
| 2380 | WsServerSearchAcpRegistryRpc, |
| 2381 | WsServerPrepareAcpRegistryAgentRpc, |
| 2382 | WsServerUninstallAcpRegistryManagedBinaryRpc, |
| 2383 | WsServerAcceptAcpRegistryUrlAuthRpc, |
| 2384 | WsServerListAcpRegistrySessionsRpc, |
| 2385 | WsServerImportAcpRegistrySessionRpc, |
| 2386 | WsServerDeleteAcpRegistrySessionRpc, |
| 2387 | WsServerListAcpRegistryProvidersRpc, |
| 2388 | WsServerSetAcpRegistryProviderRpc, |
| 2389 | WsServerDisableAcpRegistryProviderRpc, |
| 2390 | WsServerLogoutAcpRegistryRpc, |
| 2391 | WsServerGetTraceDiagnosticsRpc, |
| 2392 | WsServerGetProcessDiagnosticsRpc, |
| 2393 | WsServerGetHostResourcesRpc, |
| 2394 | WsServerGetProcessResourceHistoryRpc, |
| 2395 | WsServerGetResourceTelemetryHistoryRpc, |
| 2396 | WsServerRetryResourceTelemetryRpc, |
| 2397 | WsServerCheckOtlpEndpointRpc, |
| 2398 | WsServerListTextGeneratorModelsRpc, |
| 2399 | WsServerPrepareTriageRpc, |
| 2400 | WsServerGetUsageSummaryRpc, |
| 2401 | WsServerRefreshUsageRatesRpc, |
| 2402 | WsServerSignalProcessRpc, |
| 2403 | WsScheduledTasksSubscribeRpc, |
| 2404 | WsScheduledTasksUpsertRpc, |
| 2405 | WsScheduledTasksSetEnabledRpc, |
| 2406 | WsScheduledTasksDeleteRpc, |
| 2407 | WsScheduledTasksRunNowRpc, |
| 2408 | WsScheduledTasksRotateWebhookTokenRpc, |
| 2409 | WsSecretsAnswerRequestRpc, |
| 2410 | WsScheduledTasksListWebhookDeliveriesRpc, |
| 2411 | WsScheduledTasksGetWebhookDeliveryRpc, |
| 2412 | WsServerReportClientActivityRpc, |
| 2413 | WsCloudGetRelayClientStatusRpc, |
| 2414 | WsCloudInstallRelayClientRpc, |
| 2415 | WsPullRequestsListRpc, |
| 2416 | WsPullRequestsListStatsRpc, |
| 2417 | WsPullRequestsFilterOptionsRpc, |
| 2418 | WsPullRequestsSummaryRpc, |
| 2419 | WsPullRequestsRoutingRpc, |
| 2420 | WsPullRequestsRoutingIdentityRpc, |
| 2421 | WsPullRequestsStackRpc, |
| 2422 | WsPullRequestsLinkedThreadsRpc, |
| 2423 | WsPullRequestsDetailRpc, |
| 2424 | WsPullRequestsPreviewRpc, |
| 2425 | WsPullRequestsChecksRpc, |
| 2426 | WsPullRequestsActivityRpc, |
| 2427 | WsPullRequestsReviewGuideRpc, |
| 2428 | WsPullRequestsGenerateReviewGuideRpc, |
| 2429 | WsPullRequestsThreadCommentsRpc, |
| 2430 | WsPullRequestsDiffFileContentsRpc, |
| 2431 | WsPullRequestsFilesViewedRpc, |
| 2432 | WsPullRequestsChangeBreakdownRpc, |
| 2433 | WsPullRequestsSetFilesViewedRpc, |
| 2434 | WsPullRequestsRunActionRpc, |
| 2435 | WsPullRequestsUpdateRpc, |
| 2436 | WsPullRequestsCommentRpc, |
| 2437 | WsPullRequestsUpdateCommentRpc, |
| 2438 | WsPullRequestsSubmitReviewRpc, |
| 2439 | WsPullRequestsReplyToThreadRpc, |
| 2440 | WsPullRequestsSetThreadResolutionRpc, |
| 2441 | WsPullRequestsSetReactionRpc, |
| 2442 | WsPullRequestsInvalidateRpc, |
| 2443 | WsPullRequestsReportStateRpc, |
| 2444 | WsPullRequestsSubscribeRefreshesRpc, |
| 2445 | WsPullRequestsSubscribeLinkedThreadRefreshesRpc, |
| 2446 | WsPullRequestsReviewerCandidatesRpc, |
| 2447 | WsPullRequestsRequestReviewersRpc, |
| 2448 | WsPullRequestsLabelCandidatesRpc, |
| 2449 | WsPullRequestsSetLabelsRpc, |
| 2450 | WsSourceControlLookupRepositoryRpc, |
| 2451 | WsSourceControlCloneRepositoryRpc, |
| 2452 | WsSourceControlPublishRepositoryRpc, |
| 2453 | WsSourceControlSignInStartRpc, |
| 2454 | WsSourceControlSignInWaitRpc, |
| 2455 | WsSourceControlSignInCancelRpc, |
| 2456 | WsSourceControlAppAccessRpc, |
| 2457 | WsSourceControlStarredRpc, |
| 2458 | WsSourceControlStarRpc, |
| 2459 | WsProjectCloneStartRpc, |
| 2460 | WsProjectCloneCancelRpc, |
| 2461 | WsProjectCloneRetryRpc, |
| 2462 | WsSubscribeProjectClonesRpc, |
| 2463 | WsProjectsListEntriesRpc, |
| 2464 | WsProjectsListIgnoredFilesRpc, |
| 2465 | WsProjectsReadFileRpc, |
| 2466 | WsProjectsSearchContentsRpc, |
| 2467 | WsProjectsSearchEntriesRpc, |
| 2468 | WsProjectsEnsureScratchRpc, |
| 2469 | WsProjectsCreateNewRpc, |
| 2470 | WsProjectsCreateFromThreadRpc, |
| 2471 | WsProjectsWriteFileRpc, |
| 2472 | WsProjectsMutateRpc, |
| 2473 | WsShellOpenInEditorRpc, |
| 2474 | WsFilesystemBrowseRpc, |
| 2475 | WsFilesystemGetMetadataRpc, |
| 2476 | WsAgentSessionsScanRpc, |
| 2477 | WsAgentSessionsImportRpc, |
| 2478 | WsAssetsCreateUrlRpc, |
| 2479 | WsAssetsPersistChatAttachmentsRpc, |
| 2480 | WsAttachmentsCreateUploadUrlRpc, |
| 2481 | WsAttachmentsDeleteRpc, |
| 2482 | WsMcpAppsCallToolRpc, |
| 2483 | WsMcpAppsToolInfoRpc, |
| 2484 | WsMcpAppsReadResourceRpc, |
| 2485 | WsMcpAppsUpdateModelContextRpc, |
| 2486 | WsProviderUploadFeedbackRpc, |
| 2487 | WsProviderMcpSignInStartRpc, |
| 2488 | WsProviderMcpSignInCompleteRpc, |
| 2489 | WsSubscribeVcsStatusRpc, |
| 2490 | WsSubscribeVcsBranchRpc, |
| 2491 | WsVcsRefreshBranchRpc, |
| 2492 | WsSubscribeWorktreeSetupRpc, |
| 2493 | WsWorktreeSetupCancelRpc, |
| 2494 | WsVcsPullRpc, |
| 2495 | WsVcsRefreshStatusRpc, |
| 2496 | WsGitRunStackedActionRpc, |
| 2497 | WsGitResolvePullRequestRpc, |
| 2498 | WsGitPreparePullRequestThreadRpc, |
| 2499 | WsVcsListRefsRpc, |
| 2500 | WsVcsCreateWorktreeRpc, |
| 2501 | WsVcsRemoveWorktreeRpc, |
| 2502 | WsVcsCreateRefRpc, |
| 2503 | WsVcsSwitchRefRpc, |
| 2504 | WsVcsInitRpc, |
| 2505 | WsReviewGetBranchCommitsRpc, |
| 2506 | WsReviewGetDiffPreviewRpc, |
| 2507 | WsReviewGetDiffFileContentsRpc, |
| 2508 | WsTerminalOpenRpc, |
| 2509 | WsTerminalAttachRpc, |
| 2510 | WsTerminalObserveRpc, |
| 2511 | WsTerminalWriteRpc, |
| 2512 | WsTerminalResizeRpc, |
| 2513 | WsTerminalClearRpc, |
| 2514 | WsTerminalCloseRpc, |
| 2515 | WsSubscribeTerminalMetadataRpc, |
| 2516 | WsPreviewOpenRpc, |
| 2517 | WsPreviewResizeRpc, |
| 2518 | WsPreviewAdjustRpc, |
| 2519 | WsPreviewCloseRpc, |
| 2520 | WsPreviewListRpc, |
| 2521 | WsPreviewClearProfileRpc, |
| 2522 | WsPreviewReportProfilesRpc, |
| 2523 | WsPreviewReportStatusRpc, |
| 2524 | WsSubscribePreviewEventsRpc, |
| 2525 | WsPreviewStopLocalServerRpc, |
| 2526 | WsSubscribeDiscoveredLocalServersRpc, |
| 2527 | WsDeviceConfigureRpc, |
| 2528 | WsDeviceListRpc, |
| 2529 | WsDeviceTestHostRpc, |
| 2530 | WsDeviceEasAccountRpc, |
| 2531 | WsDeviceSimlockIdentityRpc, |
| 2532 | WsDeviceOpenRpc, |
| 2533 | WsDeviceCloseRpc, |
| 2534 | WsDeviceShutdownRpc, |
| 2535 | WsDeviceDetailRpc, |
| 2536 | WsDeviceActionRpc, |
| 2537 | WsSubscribeDeviceStateRpc, |
| 2538 | WsSubscribeServerConfigRpc, |
| 2539 | WsSubscribeServerLifecycleRpc, |
| 2540 | WsSubscribeAuthAccessRpc, |
| 2541 | WsSubscribeResourceTelemetryRpc, |
| 2542 | WsOrchestrationV2DispatchCommandRpc, |
| 2543 | WsOrchestrationV2GetWorkflowScriptRpc, |
| 2544 | WsOrchestrationV2GetNativeChildWorkRpc, |
| 2545 | WsOrchestrationV2StopWorkflowRpc, |
| 2546 | WsOrchestrationV2ForceStopThreadRpc, |
| 2547 | WsOrchestrationV2GetTurnItemRpc, |
| 2548 | WsOrchestrationV2GetTurnDiffRpc, |
| 2549 | WsOrchestrationV2GetFullThreadDiffRpc, |
| 2550 | WsOrchestrationV2SearchThreadsRpc, |
| 2551 | WsOrchestrationV2SearchThreadRpc, |
| 2552 | WsOrchestrationV2SearchThreadStreamRpc, |
| 2553 | WsOrchestrationV2GetArchivedShellSnapshotRpc, |
| 2554 | WsOrchestrationV2GetThreadFamilyRpc, |
| 2555 | WsOrchestrationV2GetThreadTitlesRpc, |
| 2556 | WsOrchestrationV2GetThreadLinkMetadataRpc, |
| 2557 | WsOrchestrationV2GetWorktreeThreadIdsRpc, |
| 2558 | WsOrchestrationV2GetOlderSettledThreadsRpc, |
| 2559 | WsOrchestrationV2GetThreadProjectionRpc, |
| 2560 | WsOrchestrationV2LaunchThreadRpc, |
| 2561 | WsOrchestrationV2SubscribeShellRpc, |
| 2562 | WsOrchestrationV2SubscribeThreadRpc, |
| 2563 | WsOrchestrationV2SubscribeCommandOutputRpc, |
| 2564 | WsOrchestrationV2SubscribePromptSuggestionRpc, |
| 2565 | ).middleware(RpcScopeAuthorization); |