@kilocode/sdk 7.8.17 → 7.8.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { type Client, type Options as Options2, type TDataShape } from "./client/index.js";
2
- import type { AgentBuilderPreviewErrors, AgentBuilderPreviewResponses, AgentBuilderSaveErrors, AgentBuilderSaveResponses, AgentManagerFailure, AgentManagerRequestId, AgentManagerResult, AgentPartInput, AgentUsageRunsErrors, AgentUsageRunsResponses, AgentUsageSummaryErrors, AgentUsageSummaryResponses, AnacondaDesktopOpenErrors, AnacondaDesktopOpenResponses, AnacondaDesktopStatusErrors, AnacondaDesktopStatusResponses, AnacondaDesktopSyncErrors, AnacondaDesktopSyncResponses, AppAgentsErrors, AppAgentsResponses, AppLogErrors, AppLogResponses, AppSkillsErrors, AppSkillsResponses, Auth as Auth3, AuthRemoveErrors, AuthRemoveResponses, AuthSetErrors, AuthSetResponses, BackgroundProcessGetErrors, BackgroundProcessGetResponses, BackgroundProcessListErrors, BackgroundProcessListResponses, BackgroundProcessLogsErrors, BackgroundProcessLogsResponses, BackgroundProcessRestartErrors, BackgroundProcessRestartResponses, BackgroundProcessStopErrors, BackgroundProcessStopResponses, BackgroundProcessStopSessionErrors, BackgroundProcessStopSessionResponses, BranchNameGenerateErrors, BranchNameGenerateResponses, CommandListErrors, CommandListResponses, CommitMessageGenerateErrors, CommitMessageGenerateResponses, Config as Config4, ConfigEffectiveErrors, ConfigEffectiveResponses, ConfigGetErrors, ConfigGetResponses, ConfigModelStateErrors, ConfigModelStateResponses, ConfigModelStateUpdateErrors, ConfigModelStateUpdateResponses, ConfigOverlayErrors, ConfigOverlayResponses, ConfigOverlayUpdateErrors, ConfigOverlayUpdateResponses, ConfigProvidersErrors, ConfigProvidersResponses, ConfigRulesErrors, ConfigRulesResponses, ConfigRulesUpdateErrors, ConfigRulesUpdateResponses, ConfigSourcesErrors, ConfigSourcesResponses, ConfigUpdateErrors, ConfigUpdateResponses, ConfigWarningsErrors, ConfigWarningsResponses, EnhancePromptEnhanceErrors, EnhancePromptEnhanceResponses, EventSubscribeResponse, EventSubscribeResponses, EventTuiCommandExecute2, EventTuiPromptAppend2, EventTuiSessionSelect2, EventTuiToastShow2, ExperimentalCapabilitiesGetErrors, ExperimentalCapabilitiesGetResponses, ExperimentalConsoleGetErrors, ExperimentalConsoleGetResponses, ExperimentalConsoleListOrgsErrors, ExperimentalConsoleListOrgsResponses, ExperimentalConsoleSwitchOrgResponses, ExperimentalControlPlaneMoveSessionErrors, ExperimentalControlPlaneMoveSessionResponses, ExperimentalProjectCopyGenerateNameErrors, ExperimentalProjectCopyGenerateNameResponses, ExperimentalResourceListErrors, ExperimentalResourceListResponses, ExperimentalSessionBackgroundErrors, ExperimentalSessionBackgroundResponses, ExperimentalSessionListErrors, ExperimentalSessionListResponses, ExperimentalWorkspaceAdapterListErrors, ExperimentalWorkspaceAdapterListResponses, ExperimentalWorkspaceCreateErrors, ExperimentalWorkspaceCreateResponses, ExperimentalWorkspaceListErrors, ExperimentalWorkspaceListResponses, ExperimentalWorkspaceRemoveErrors, ExperimentalWorkspaceRemoveResponses, ExperimentalWorkspaceStatusErrors, ExperimentalWorkspaceStatusResponses, ExperimentalWorkspaceSyncListErrors, ExperimentalWorkspaceSyncListResponses, ExperimentalWorkspaceWarpErrors, ExperimentalWorkspaceWarpResponses, FileListErrors, FileListResponses, FilePartInput, FilePartSource, FileReadErrors, FileReadResponses, FileStatusErrors, FileStatusResponses, FindFilesErrors, FindFilesResponses, FindSymbolsErrors, FindSymbolsResponses, FindTextErrors, FindTextResponses, FormatterStatusErrors, FormatterStatusResponses, GlobalConfigGetErrors, GlobalConfigGetResponses, GlobalConfigUpdateErrors, GlobalConfigUpdateResponses, GlobalDisposeErrors, GlobalDisposeResponses, GlobalEventResponse, GlobalEventResponses, GlobalHealthErrors, GlobalHealthResponses, GlobalUpgradeErrors, GlobalUpgradeResponses, IndexingConsentErrors, IndexingConsentResponses, IndexingModelsErrors, IndexingModelsResponses, IndexingStatusErrors, IndexingStatusResponses, IndexingWarningsErrors, IndexingWarningsResponses, InstanceDisposeErrors, InstanceDisposeResponses, InstanceReloadErrors, InstanceReloadResponses, KiloAudioTranscriptionsErrors, KiloAudioTranscriptionsResponses, KiloAuthStatusErrors, KiloAuthStatusResponses, KiloCloudSessionGetErrors, KiloCloudSessionGetResponses, KiloCloudSessionImportErrors, KiloCloudSessionImportResponses, KiloCloudSessionsErrors, KiloCloudSessionsResponses, KilocodeAgentManagerListErrors, KilocodeAgentManagerListResponses, KilocodeAgentManagerRejectErrors, KilocodeAgentManagerRejectResponses, KilocodeAgentManagerReplyErrors, KilocodeAgentManagerReplyResponses, KilocodeBackgroundJobCancelErrors, KilocodeBackgroundJobCancelResponses, KilocodeBackgroundJobPromoteErrors, KilocodeBackgroundJobPromoteResponses, KilocodeBackgroundJobsErrors, KilocodeBackgroundJobsResponses, KilocodeCommandFilesErrors, KilocodeCommandFilesResponses, KilocodeDrainSessionErrors, KilocodeDrainSessionResponses, KilocodeHeapSnapshotErrors, KilocodeHeapSnapshotResponses, KilocodeMarketplaceInstallErrors, KilocodeMarketplaceInstallResponses, KilocodeMarketplaceListErrors, KilocodeMarketplaceListResponses, KilocodeMarketplaceRemoveErrors, KilocodeMarketplaceRemoveResponses, KilocodeMigrateDiscoverErrors, KilocodeMigrateDiscoverResponses, KilocodeMigrateSessionsErrors, KilocodeMigrateSessionsResponses, KilocodeNotebookListErrors, KilocodeNotebookListResponses, KilocodeNotebookRejectErrors, KilocodeNotebookRejectResponses, KilocodeNotebookReplyErrors, KilocodeNotebookReplyResponses, KilocodeProviderUsageGetErrors, KilocodeProviderUsageGetResponses, KilocodeProviderUsageRefreshErrors, KilocodeProviderUsageRefreshResponses, KilocodeRemoveAgentErrors, KilocodeRemoveAgentResponses, KilocodeRemoveCommandErrors, KilocodeRemoveCommandResponses, KilocodeRemoveSkillErrors, KilocodeRemoveSkillResponses, KilocodeRemoveSnapshotErrors, KilocodeRemoveSnapshotResponses, KilocodeResetSessionBoardErrors, KilocodeResetSessionBoardResponses, KilocodeResumeSessionErrors, KilocodeResumeSessionResponses, KilocodeRetentionCancelErrors, KilocodeRetentionCancelResponses, KilocodeRetentionRunErrors, KilocodeRetentionRunResponses, KilocodeRetentionStatusErrors, KilocodeRetentionStatusResponses, KilocodeSessionBoardErrors, KilocodeSessionBoardResponses, KilocodeSessionImportMessageErrors, KilocodeSessionImportMessageResponses, KilocodeSessionImportPartErrors, KilocodeSessionImportPartResponses, KilocodeSessionImportProjectErrors, KilocodeSessionImportProjectResponses, KilocodeSessionImportSessionErrors, KilocodeSessionImportSessionResponses, KilocodeSessionModelUsageErrors, KilocodeSessionModelUsageResponses, KilocodeSnapshotPrepareErrors, KilocodeSnapshotPrepareResponses, KilocodeTeardownWorktreeErrors, KilocodeTeardownWorktreeResponses, KilocodeWakeupsErrors, KilocodeWakeupsResponses, KiloEditErrors, KiloEditResponses, KiloFimResponse, KiloFimResponses, KiloModelsImagesErrors, KiloModelsImagesResponses, KiloModelsTranscriptionsErrors, KiloModelsTranscriptionsResponses, KiloModesErrors, KiloModesResponses, KiloNotificationsErrors, KiloNotificationsResponses, KiloOrganizationSetErrors, KiloOrganizationSetResponses, KiloProfileErrors, KiloProfileResponses, LocationRef, LspStatusErrors, LspStatusResponses, MarketplaceInstallItem, MarketplaceItemRef, McpAddErrors, McpAddResponses, McpAuthAuthenticateErrors, McpAuthAuthenticateResponses, McpAuthCallbackErrors, McpAuthCallbackResponses, McpAuthCancelErrors, McpAuthCancelResponses, McpAuthRemoveErrors, McpAuthRemoveResponses, McpAuthStartErrors, McpAuthStartResponses, McpCallToolErrors, McpCallToolResponses, McpConnectErrors, McpConnectResponses, McpDisconnectErrors, McpDisconnectResponses, McpLocalConfig, McpReadResourceErrors, McpReadResourceResponses, McpRemoteConfig, McpStatusErrors, McpStatusResponses, MemoryConfigureErrors, MemoryConfigureResponses, MemoryCorrectErrors, MemoryCorrectResponses, MemoryDisableErrors, MemoryDisableResponses, MemoryEnableErrors, MemoryEnableResponses, MemoryForgetErrors, MemoryForgetResponses, MemoryPurgeErrors, MemoryPurgeResponses, MemoryRebuildErrors, MemoryRebuildResponses, MemoryRememberErrors, MemoryRememberResponses, MemoryShowErrors, MemoryShowResponses, MemoryStatusErrors, MemoryStatusResponses, ModelRef, MoveSessionDestination, NetworkListErrors, NetworkListResponses, NetworkRejectErrors, NetworkRejectResponses, NetworkReplyErrors, NetworkReplyResponses, NotebookFailure, NotebookRequestId, NotebookResult, OutputFormat, Part as Part2, PartDeleteErrors, PartDeleteResponses, PartUpdateErrors, PartUpdateResponses, PathGetErrors, PathGetResponses, PermissionAllowEverythingErrors, PermissionAllowEverythingResponses, PermissionListErrors, PermissionListResponses, PermissionReplyErrors, PermissionReplyResponses, PermissionRespondErrors, PermissionRespondResponses, PermissionRuleset, PermissionSaveAlwaysRulesErrors, PermissionSaveAlwaysRulesResponses, PermissionV2Reply, PermissionV2Source, ProjectCommands, ProjectCurrentErrors, ProjectCurrentResponses, ProjectDirectoriesErrors, ProjectDirectoriesResponses, ProjectIcon, ProjectInitGitErrors, ProjectInitGitResponses, ProjectListErrors, ProjectListResponses, ProjectUpdateErrors, ProjectUpdateResponses, PromptInput, ProviderAuthErrors, ProviderAuthResponses, ProviderListErrors, ProviderListResponses, ProviderOauthAuthorizeErrors, ProviderOauthAuthorizeResponses, ProviderOauthCallbackErrors, ProviderOauthCallbackResponses, PtyConnectErrors, PtyConnectResponses, PtyConnectTokenErrors, PtyConnectTokenResponses, PtyCreateErrors, PtyCreateResponses, PtyGetErrors, PtyGetResponses, PtyListErrors, PtyListResponses, PtyRemoveErrors, PtyRemoveResponses, PtyShellsErrors, PtyShellsResponses, PtyUpdateErrors, PtyUpdateResponses, QuestionAnswer, QuestionListErrors, QuestionListResponses, QuestionRejectErrors, QuestionRejectResponses, QuestionReplyErrors, QuestionReplyResponses, QuestionV2Reply, RemoteDisableErrors, RemoteDisableResponses, RemoteEnableErrors, RemoteEnableResponses, RemoteStatusErrors, RemoteStatusResponses, SandboxStatusErrors, SandboxStatusResponses, SandboxSupportErrors, SandboxSupportResponses, SandboxToggleErrors, SandboxToggleResponses, SessionAbortErrors, SessionAbortResponses, SessionChildrenErrors, SessionChildrenResponses, SessionCommandErrors, SessionCommandResponses, SessionCreateErrors, SessionCreateResponses, SessionDeleteErrors, SessionDeleteMessageErrors, SessionDeleteMessageResponses, SessionDeleteResponses, SessionDiffErrors, SessionDiffResponses, SessionForkErrors, SessionForkResponses, SessionGetErrors, SessionGetResponses, SessionInitErrors, SessionInitResponses, SessionListErrors, SessionListResponses, SessionMessageErrors, SessionMessageResponses, SessionMessagesErrors, SessionMessagesResponses, SessionPromptAsyncErrors, SessionPromptAsyncResponses, SessionPromptErrors, SessionPromptResponses, SessionRevertErrors, SessionRevertResponses, SessionShareErrors, SessionShareResponses, SessionShellErrors, SessionShellResponses, SessionStatusErrors, SessionStatusResponses, SessionSummarizeErrors, SessionSummarizeResponses, SessionTodoErrors, SessionTodoResponses, SessionUnrevertErrors, SessionUnrevertResponses, SessionUnshareErrors, SessionUnshareResponses, SessionUpdateErrors, SessionUpdateResponses, SessionViewedErrors, SessionViewedResponses, SubtaskPartInput, SuggestionAcceptErrors, SuggestionAcceptResponses, SuggestionDismissErrors, SuggestionDismissResponses, SuggestionListErrors, SuggestionListResponses, SyncHistoryListErrors, SyncHistoryListResponses, SyncReplayErrors, SyncReplayResponses, SyncStartErrors, SyncStartResponses, SyncStealErrors, SyncStealResponses, TelemetryCaptureErrors, TelemetryCaptureResponses, TelemetrySetEnabledErrors, TelemetrySetEnabledResponses, TextPartInput, ToolIdsErrors, ToolIdsResponses, ToolListErrors, ToolListResponses, TuiAppendPromptErrors, TuiAppendPromptResponses, TuiClearPromptErrors, TuiClearPromptResponses, TuiConfigGetErrors, TuiConfigGetResponses, TuiConfigUpdateErrors, TuiConfigUpdateResponses, TuiControlNextErrors, TuiControlNextResponses, TuiControlResponseErrors, TuiControlResponseResponses, TuiExecuteCommandErrors, TuiExecuteCommandResponses, TuiKeybindListErrors, TuiKeybindListResponses, TuiOpenHelpErrors, TuiOpenHelpResponses, TuiOpenModelsErrors, TuiOpenModelsResponses, TuiOpenSessionsErrors, TuiOpenSessionsResponses, TuiOpenThemesErrors, TuiOpenThemesResponses, TuiPublishErrors, TuiPublishResponses, TuiSelectSessionErrors, TuiSelectSessionResponses, TuiShowToastErrors, TuiShowToastResponses, TuiSubmitPromptErrors, TuiSubmitPromptResponses, V2AgentListErrors, V2AgentListResponses, V2CommandListErrors, V2CommandListResponses, V2CredentialRemoveErrors, V2CredentialRemoveResponses, V2CredentialUpdateErrors, V2CredentialUpdateResponses, V2EventSubscribeResponse, V2EventSubscribeResponses, V2FsFindErrors, V2FsFindResponses, V2FsListErrors, V2FsListResponses, V2FsReadErrors, V2FsReadResponses, V2HealthGetErrors, V2HealthGetResponses, V2IntegrationAttemptCancelErrors, V2IntegrationAttemptCancelResponses, V2IntegrationAttemptCompleteErrors, V2IntegrationAttemptCompleteResponses, V2IntegrationAttemptStatusErrors, V2IntegrationAttemptStatusResponses, V2IntegrationConnectKeyErrors, V2IntegrationConnectKeyResponses, V2IntegrationConnectOauthErrors, V2IntegrationConnectOauthResponses, V2IntegrationGetErrors, V2IntegrationGetResponses, V2IntegrationListErrors, V2IntegrationListResponses, V2LocationGetErrors, V2LocationGetResponses, V2ModelListErrors, V2ModelListResponses, V2PermissionRequestListErrors, V2PermissionRequestListResponses, V2PermissionSavedListErrors, V2PermissionSavedListResponses, V2PermissionSavedRemoveErrors, V2PermissionSavedRemoveResponses, V2ProjectCopyCreateErrors, V2ProjectCopyCreateResponses, V2ProjectCopyRefreshErrors, V2ProjectCopyRefreshResponses, V2ProjectCopyRemoveErrors, V2ProjectCopyRemoveResponses, V2ProviderGetErrors, V2ProviderGetResponses, V2ProviderListErrors, V2ProviderListResponses, V2PtyConnectErrors, V2PtyConnectResponses, V2PtyConnectTokenErrors, V2PtyConnectTokenResponses, V2PtyCreateErrors, V2PtyCreateResponses, V2PtyGetErrors, V2PtyGetResponses, V2PtyListErrors, V2PtyListResponses, V2PtyRemoveErrors, V2PtyRemoveResponses, V2PtyUpdateErrors, V2PtyUpdateResponses, V2QuestionRequestListErrors, V2QuestionRequestListResponses, V2ReferenceListErrors, V2ReferenceListResponses, V2SessionActiveErrors, V2SessionActiveResponses, V2SessionCompactErrors, V2SessionCompactResponses, V2SessionContextErrors, V2SessionContextResponses, V2SessionCreateErrors, V2SessionCreateResponses, V2SessionEventsResponse, V2SessionEventsResponses, V2SessionGetErrors, V2SessionGetResponses, V2SessionHistoryErrors, V2SessionHistoryResponses, V2SessionInterruptErrors, V2SessionInterruptResponses, V2SessionListErrors, V2SessionListResponses, V2SessionMessageErrors, V2SessionMessageResponses, V2SessionMessagesErrors, V2SessionMessagesResponses, V2SessionPermissionCreateErrors, V2SessionPermissionCreateResponses, V2SessionPermissionGetErrors, V2SessionPermissionGetResponses, V2SessionPermissionListErrors, V2SessionPermissionListResponses, V2SessionPermissionReplyErrors, V2SessionPermissionReplyResponses, V2SessionPromptErrors, V2SessionPromptResponses, V2SessionQuestionListErrors, V2SessionQuestionListResponses, V2SessionQuestionRejectErrors, V2SessionQuestionRejectResponses, V2SessionQuestionReplyErrors, V2SessionQuestionReplyResponses, V2SessionRevertClearErrors, V2SessionRevertClearResponses, V2SessionRevertCommitErrors, V2SessionRevertCommitResponses, V2SessionRevertStageErrors, V2SessionRevertStageResponses, V2SessionSwitchAgentErrors, V2SessionSwitchAgentResponses, V2SessionSwitchModelErrors, V2SessionSwitchModelResponses, V2SessionWaitErrors, V2SessionWaitResponses, V2SkillListErrors, V2SkillListResponses, VcsApplyErrors, VcsApplyResponses, VcsDiffErrors, VcsDiffRawErrors, VcsDiffRawResponses, VcsDiffResponses, VcsGetErrors, VcsGetResponses, VcsStatusErrors, VcsStatusResponses, WorktreeCreateErrors, WorktreeCreateInput, WorktreeCreateResponses, WorktreeDiffErrors, WorktreeDiffFileErrors, WorktreeDiffFileResponses, WorktreeDiffResponses, WorktreeDiffSummaryErrors, WorktreeDiffSummaryResponses, WorktreeListErrors, WorktreeListResponses, WorktreeRemoveErrors, WorktreeRemoveInput, WorktreeRemoveResponses, WorktreeResetErrors, WorktreeResetInput, WorktreeResetResponses } from "./types.gen.js";
2
+ import type { AgentBuilderPreviewErrors, AgentBuilderPreviewResponses, AgentBuilderSaveErrors, AgentBuilderSaveResponses, AgentManagerFailure, AgentManagerRequestId, AgentManagerResult, AgentPartInput, AgentUsageRunsErrors, AgentUsageRunsResponses, AgentUsageSummaryErrors, AgentUsageSummaryResponses, AnacondaDesktopOpenErrors, AnacondaDesktopOpenResponses, AnacondaDesktopStatusErrors, AnacondaDesktopStatusResponses, AnacondaDesktopSyncErrors, AnacondaDesktopSyncResponses, AppAgentsErrors, AppAgentsResponses, AppLogErrors, AppLogResponses, AppSkillsErrors, AppSkillsResponses, Auth as Auth3, AuthRemoveErrors, AuthRemoveResponses, AuthSetErrors, AuthSetResponses, BackgroundProcessGetErrors, BackgroundProcessGetResponses, BackgroundProcessListErrors, BackgroundProcessListResponses, BackgroundProcessLogsErrors, BackgroundProcessLogsResponses, BackgroundProcessRestartErrors, BackgroundProcessRestartResponses, BackgroundProcessStopErrors, BackgroundProcessStopResponses, BackgroundProcessStopSessionErrors, BackgroundProcessStopSessionResponses, BranchNameGenerateErrors, BranchNameGenerateResponses, CommandListErrors, CommandListResponses, CommitMessageGenerateErrors, CommitMessageGenerateResponses, Config as Config4, ConfigEffectiveErrors, ConfigEffectiveResponses, ConfigGetErrors, ConfigGetResponses, ConfigModelStateErrors, ConfigModelStateResponses, ConfigModelStateUpdateErrors, ConfigModelStateUpdateResponses, ConfigOverlayErrors, ConfigOverlayResponses, ConfigOverlayUpdateErrors, ConfigOverlayUpdateResponses, ConfigProvidersErrors, ConfigProvidersResponses, ConfigRulesErrors, ConfigRulesResponses, ConfigRulesUpdateErrors, ConfigRulesUpdateResponses, ConfigSourcesErrors, ConfigSourcesResponses, ConfigUpdateErrors, ConfigUpdateResponses, ConfigWarningsErrors, ConfigWarningsResponses, EnhancePromptEnhanceErrors, EnhancePromptEnhanceResponses, EventSubscribeResponse, EventSubscribeResponses, EventTuiCommandExecute2, EventTuiPromptAppend2, EventTuiSessionSelect2, EventTuiToastShow2, ExperimentalCapabilitiesGetErrors, ExperimentalCapabilitiesGetResponses, ExperimentalConsoleGetErrors, ExperimentalConsoleGetResponses, ExperimentalConsoleListOrgsErrors, ExperimentalConsoleListOrgsResponses, ExperimentalConsoleSwitchOrgResponses, ExperimentalControlPlaneMoveSessionErrors, ExperimentalControlPlaneMoveSessionResponses, ExperimentalProjectCopyGenerateNameErrors, ExperimentalProjectCopyGenerateNameResponses, ExperimentalResourceListErrors, ExperimentalResourceListResponses, ExperimentalSessionBackgroundErrors, ExperimentalSessionBackgroundResponses, ExperimentalSessionListErrors, ExperimentalSessionListResponses, ExperimentalWorkspaceAdapterListErrors, ExperimentalWorkspaceAdapterListResponses, ExperimentalWorkspaceCreateErrors, ExperimentalWorkspaceCreateResponses, ExperimentalWorkspaceListErrors, ExperimentalWorkspaceListResponses, ExperimentalWorkspaceRemoveErrors, ExperimentalWorkspaceRemoveResponses, ExperimentalWorkspaceStatusErrors, ExperimentalWorkspaceStatusResponses, ExperimentalWorkspaceSyncListErrors, ExperimentalWorkspaceSyncListResponses, ExperimentalWorkspaceWarpErrors, ExperimentalWorkspaceWarpResponses, FileListErrors, FileListResponses, FilePartInput, FilePartSource, FileReadErrors, FileReadResponses, FileStatusErrors, FileStatusResponses, FindFilesErrors, FindFilesResponses, FindSymbolsErrors, FindSymbolsResponses, FindTextErrors, FindTextResponses, FormatterStatusErrors, FormatterStatusResponses, GlobalConfigGetErrors, GlobalConfigGetResponses, GlobalConfigUpdateErrors, GlobalConfigUpdateResponses, GlobalDisposeErrors, GlobalDisposeResponses, GlobalEventResponse, GlobalEventResponses, GlobalHealthErrors, GlobalHealthResponses, GlobalUpgradeErrors, GlobalUpgradeResponses, IndexingConsentErrors, IndexingConsentResponses, IndexingModelsErrors, IndexingModelsResponses, IndexingStatusErrors, IndexingStatusResponses, IndexingWarningsErrors, IndexingWarningsResponses, InstanceDisposeErrors, InstanceDisposeResponses, InstanceReloadErrors, InstanceReloadResponses, KiloAudioTranscriptionsErrors, KiloAudioTranscriptionsResponses, KiloAuthStatusErrors, KiloAuthStatusResponses, KiloCloudSessionGetErrors, KiloCloudSessionGetResponses, KiloCloudSessionImportErrors, KiloCloudSessionImportResponses, KiloCloudSessionsErrors, KiloCloudSessionsResponses, KilocodeAgentManagerListErrors, KilocodeAgentManagerListResponses, KilocodeAgentManagerRejectErrors, KilocodeAgentManagerRejectResponses, KilocodeAgentManagerReplyErrors, KilocodeAgentManagerReplyResponses, KilocodeBackgroundJobCancelErrors, KilocodeBackgroundJobCancelResponses, KilocodeBackgroundJobPromoteErrors, KilocodeBackgroundJobPromoteResponses, KilocodeBackgroundJobsErrors, KilocodeBackgroundJobsResponses, KilocodeCommandFilesErrors, KilocodeCommandFilesResponses, KilocodeDrainSessionErrors, KilocodeDrainSessionResponses, KilocodeHeapSnapshotErrors, KilocodeHeapSnapshotResponses, KilocodeMarketplaceInstallErrors, KilocodeMarketplaceInstallResponses, KilocodeMarketplaceListErrors, KilocodeMarketplaceListResponses, KilocodeMarketplaceRemoveErrors, KilocodeMarketplaceRemoveResponses, KilocodeMigrateDiscoverErrors, KilocodeMigrateDiscoverResponses, KilocodeMigrateSessionsErrors, KilocodeMigrateSessionsResponses, KilocodeNotebookListErrors, KilocodeNotebookListResponses, KilocodeNotebookRejectErrors, KilocodeNotebookRejectResponses, KilocodeNotebookReplyErrors, KilocodeNotebookReplyResponses, KilocodeProviderUsageGetErrors, KilocodeProviderUsageGetResponses, KilocodeProviderUsageRefreshErrors, KilocodeProviderUsageRefreshResponses, KilocodeRemoveAgentErrors, KilocodeRemoveAgentResponses, KilocodeRemoveCommandErrors, KilocodeRemoveCommandResponses, KilocodeRemoveSkillErrors, KilocodeRemoveSkillResponses, KilocodeRemoveSnapshotErrors, KilocodeRemoveSnapshotResponses, KilocodeResetSessionBoardErrors, KilocodeResetSessionBoardResponses, KilocodeResumeSessionErrors, KilocodeResumeSessionResponses, KilocodeRetentionCancelErrors, KilocodeRetentionCancelResponses, KilocodeRetentionRunErrors, KilocodeRetentionRunResponses, KilocodeRetentionStatusErrors, KilocodeRetentionStatusResponses, KilocodeSessionBoardErrors, KilocodeSessionBoardResponses, KilocodeSessionImportMessageErrors, KilocodeSessionImportMessageResponses, KilocodeSessionImportPartErrors, KilocodeSessionImportPartResponses, KilocodeSessionImportProjectErrors, KilocodeSessionImportProjectResponses, KilocodeSessionImportSessionErrors, KilocodeSessionImportSessionResponses, KilocodeSessionModelUsageErrors, KilocodeSessionModelUsageResponses, KilocodeSnapshotPrepareErrors, KilocodeSnapshotPrepareResponses, KilocodeTeardownWorktreeErrors, KilocodeTeardownWorktreeResponses, KilocodeWakeupsErrors, KilocodeWakeupsResponses, KiloEditErrors, KiloEditResponses, KiloFimResponse, KiloFimResponses, KiloModelsImagesErrors, KiloModelsImagesResponses, KiloModelsTranscriptionsErrors, KiloModelsTranscriptionsResponses, KiloModesErrors, KiloModesResponses, KiloNotificationsErrors, KiloNotificationsResponses, KiloOrganizationSetErrors, KiloOrganizationSetResponses, KiloProfileErrors, KiloProfileResponses, LocationRef, LspStatusErrors, LspStatusResponses, MarketplaceInstallItem, MarketplaceItemRef, McpAddErrors, McpAddResponses, McpAuthAuthenticateErrors, McpAuthAuthenticateResponses, McpAuthCallbackErrors, McpAuthCallbackResponses, McpAuthCancelErrors, McpAuthCancelResponses, McpAuthRemoveErrors, McpAuthRemoveResponses, McpAuthStartErrors, McpAuthStartResponses, McpCallToolErrors, McpCallToolResponses, McpConnectErrors, McpConnectResponses, McpDisconnectErrors, McpDisconnectResponses, McpLocalConfig, McpReadResourceErrors, McpReadResourceResponses, McpRemoteConfig, McpStatusErrors, McpStatusResponses, MemoryConfigureErrors, MemoryConfigureResponses, MemoryCorrectErrors, MemoryCorrectResponses, MemoryDisableErrors, MemoryDisableResponses, MemoryEnableErrors, MemoryEnableResponses, MemoryForgetErrors, MemoryForgetResponses, MemoryPurgeErrors, MemoryPurgeResponses, MemoryRebuildErrors, MemoryRebuildResponses, MemoryRememberErrors, MemoryRememberResponses, MemoryShowErrors, MemoryShowResponses, MemoryStatusErrors, MemoryStatusResponses, ModelRef, MoveSessionDestination, NetworkListErrors, NetworkListResponses, NetworkRejectErrors, NetworkRejectResponses, NetworkReplyErrors, NetworkReplyResponses, NotebookFailure, NotebookRequestId, NotebookResult, OutputFormat, Part as Part2, PartDeleteErrors, PartDeleteResponses, PartUpdateErrors, PartUpdateResponses, PathGetErrors, PathGetResponses, PermissionAllowEverythingErrors, PermissionAllowEverythingResponses, PermissionListErrors, PermissionListResponses, PermissionReplyErrors, PermissionReplyResponses, PermissionRespondErrors, PermissionRespondResponses, PermissionRuleset, PermissionSaveAlwaysRulesErrors, PermissionSaveAlwaysRulesResponses, PermissionV2Reply, PermissionV2Source, ProjectCommands, ProjectCurrentErrors, ProjectCurrentResponses, ProjectDirectoriesErrors, ProjectDirectoriesResponses, ProjectIcon, ProjectInitGitErrors, ProjectInitGitResponses, ProjectListErrors, ProjectListResponses, ProjectUpdateErrors, ProjectUpdateResponses, PromptInput, ProviderAuthErrors, ProviderAuthResponses, ProviderListErrors, ProviderListResponses, ProviderOauthAuthorizeErrors, ProviderOauthAuthorizeResponses, ProviderOauthCallbackErrors, ProviderOauthCallbackResponses, PtyConnectErrors, PtyConnectResponses, PtyConnectTokenErrors, PtyConnectTokenResponses, PtyCreateErrors, PtyCreateResponses, PtyGetErrors, PtyGetResponses, PtyListErrors, PtyListResponses, PtyRemoveErrors, PtyRemoveResponses, PtyShellsErrors, PtyShellsResponses, PtyUpdateErrors, PtyUpdateResponses, QuestionAnswer, QuestionListErrors, QuestionListResponses, QuestionRejectErrors, QuestionRejectResponses, QuestionReplyErrors, QuestionReplyResponses, QuestionV2Reply, RemoteDisableErrors, RemoteDisableResponses, RemoteEnableErrors, RemoteEnableResponses, RemoteStatusErrors, RemoteStatusResponses, SandboxStatusErrors, SandboxStatusResponses, SandboxSupportErrors, SandboxSupportResponses, SandboxToggleErrors, SandboxToggleResponses, SessionAbortErrors, SessionAbortResponses, SessionChildrenErrors, SessionChildrenResponses, SessionCommandErrors, SessionCommandResponses, SessionCreateErrors, SessionCreateResponses, SessionDeleteErrors, SessionDeleteMessageErrors, SessionDeleteMessageResponses, SessionDeleteResponses, SessionDiffErrors, SessionDiffResponses, SessionForkErrors, SessionForkResponses, SessionGetErrors, SessionGetResponses, SessionHostAttachErrors, SessionHostAttachResponses, SessionHostDetachErrors, SessionHostDetachResponses, SessionHostGetErrors, SessionHostGetResponses, SessionHostListErrors, SessionHostListResponses, SessionHostOrganizationId, SessionHostProviderId, SessionHostProvidersErrors, SessionHostProvidersResponses, SessionHostStartErrors, SessionHostStartInput, SessionHostStartResponses, SessionHostTranscriptErrors, SessionHostTranscriptResponses, SessionInitErrors, SessionInitResponses, SessionListErrors, SessionListResponses, SessionMessageErrors, SessionMessageResponses, SessionMessagesErrors, SessionMessagesResponses, SessionPromptAsyncErrors, SessionPromptAsyncResponses, SessionPromptErrors, SessionPromptResponses, SessionRevertErrors, SessionRevertResponses, SessionShareErrors, SessionShareResponses, SessionShellErrors, SessionShellResponses, SessionStatusErrors, SessionStatusResponses, SessionSummarizeErrors, SessionSummarizeResponses, SessionTodoErrors, SessionTodoResponses, SessionUnrevertErrors, SessionUnrevertResponses, SessionUnshareErrors, SessionUnshareResponses, SessionUpdateErrors, SessionUpdateResponses, SessionViewedErrors, SessionViewedResponses, SubtaskPartInput, SuggestionAcceptErrors, SuggestionAcceptResponses, SuggestionDismissErrors, SuggestionDismissResponses, SuggestionListErrors, SuggestionListResponses, SyncHistoryListErrors, SyncHistoryListResponses, SyncReplayErrors, SyncReplayResponses, SyncStartErrors, SyncStartResponses, SyncStealErrors, SyncStealResponses, TelemetryCaptureErrors, TelemetryCaptureResponses, TelemetrySetEnabledErrors, TelemetrySetEnabledResponses, TextPartInput, ToolIdsErrors, ToolIdsResponses, ToolListErrors, ToolListResponses, TuiAppendPromptErrors, TuiAppendPromptResponses, TuiClearPromptErrors, TuiClearPromptResponses, TuiConfigGetErrors, TuiConfigGetResponses, TuiConfigUpdateErrors, TuiConfigUpdateResponses, TuiControlNextErrors, TuiControlNextResponses, TuiControlResponseErrors, TuiControlResponseResponses, TuiExecuteCommandErrors, TuiExecuteCommandResponses, TuiKeybindListErrors, TuiKeybindListResponses, TuiOpenHelpErrors, TuiOpenHelpResponses, TuiOpenModelsErrors, TuiOpenModelsResponses, TuiOpenSessionsErrors, TuiOpenSessionsResponses, TuiOpenThemesErrors, TuiOpenThemesResponses, TuiPublishErrors, TuiPublishResponses, TuiSelectSessionErrors, TuiSelectSessionResponses, TuiShowToastErrors, TuiShowToastResponses, TuiSubmitPromptErrors, TuiSubmitPromptResponses, V2AgentListErrors, V2AgentListResponses, V2CommandListErrors, V2CommandListResponses, V2CredentialRemoveErrors, V2CredentialRemoveResponses, V2CredentialUpdateErrors, V2CredentialUpdateResponses, V2EventSubscribeResponse, V2EventSubscribeResponses, V2FsFindErrors, V2FsFindResponses, V2FsListErrors, V2FsListResponses, V2FsReadErrors, V2FsReadResponses, V2HealthGetErrors, V2HealthGetResponses, V2IntegrationAttemptCancelErrors, V2IntegrationAttemptCancelResponses, V2IntegrationAttemptCompleteErrors, V2IntegrationAttemptCompleteResponses, V2IntegrationAttemptStatusErrors, V2IntegrationAttemptStatusResponses, V2IntegrationConnectKeyErrors, V2IntegrationConnectKeyResponses, V2IntegrationConnectOauthErrors, V2IntegrationConnectOauthResponses, V2IntegrationGetErrors, V2IntegrationGetResponses, V2IntegrationListErrors, V2IntegrationListResponses, V2LocationGetErrors, V2LocationGetResponses, V2ModelListErrors, V2ModelListResponses, V2PermissionRequestListErrors, V2PermissionRequestListResponses, V2PermissionSavedListErrors, V2PermissionSavedListResponses, V2PermissionSavedRemoveErrors, V2PermissionSavedRemoveResponses, V2ProjectCopyCreateErrors, V2ProjectCopyCreateResponses, V2ProjectCopyRefreshErrors, V2ProjectCopyRefreshResponses, V2ProjectCopyRemoveErrors, V2ProjectCopyRemoveResponses, V2ProviderGetErrors, V2ProviderGetResponses, V2ProviderListErrors, V2ProviderListResponses, V2PtyConnectErrors, V2PtyConnectResponses, V2PtyConnectTokenErrors, V2PtyConnectTokenResponses, V2PtyCreateErrors, V2PtyCreateResponses, V2PtyGetErrors, V2PtyGetResponses, V2PtyListErrors, V2PtyListResponses, V2PtyRemoveErrors, V2PtyRemoveResponses, V2PtyUpdateErrors, V2PtyUpdateResponses, V2QuestionRequestListErrors, V2QuestionRequestListResponses, V2ReferenceListErrors, V2ReferenceListResponses, V2SessionActiveErrors, V2SessionActiveResponses, V2SessionCompactErrors, V2SessionCompactResponses, V2SessionContextErrors, V2SessionContextResponses, V2SessionCreateErrors, V2SessionCreateResponses, V2SessionEventsResponse, V2SessionEventsResponses, V2SessionGetErrors, V2SessionGetResponses, V2SessionHistoryErrors, V2SessionHistoryResponses, V2SessionInterruptErrors, V2SessionInterruptResponses, V2SessionListErrors, V2SessionListResponses, V2SessionMessageErrors, V2SessionMessageResponses, V2SessionMessagesErrors, V2SessionMessagesResponses, V2SessionPermissionCreateErrors, V2SessionPermissionCreateResponses, V2SessionPermissionGetErrors, V2SessionPermissionGetResponses, V2SessionPermissionListErrors, V2SessionPermissionListResponses, V2SessionPermissionReplyErrors, V2SessionPermissionReplyResponses, V2SessionPromptErrors, V2SessionPromptResponses, V2SessionQuestionListErrors, V2SessionQuestionListResponses, V2SessionQuestionRejectErrors, V2SessionQuestionRejectResponses, V2SessionQuestionReplyErrors, V2SessionQuestionReplyResponses, V2SessionRevertClearErrors, V2SessionRevertClearResponses, V2SessionRevertCommitErrors, V2SessionRevertCommitResponses, V2SessionRevertStageErrors, V2SessionRevertStageResponses, V2SessionSwitchAgentErrors, V2SessionSwitchAgentResponses, V2SessionSwitchModelErrors, V2SessionSwitchModelResponses, V2SessionWaitErrors, V2SessionWaitResponses, V2SkillListErrors, V2SkillListResponses, VcsApplyErrors, VcsApplyResponses, VcsDiffErrors, VcsDiffRawErrors, VcsDiffRawResponses, VcsDiffResponses, VcsGetErrors, VcsGetResponses, VcsStatusErrors, VcsStatusResponses, WorktreeCreateErrors, WorktreeCreateInput, WorktreeCreateResponses, WorktreeDiffErrors, WorktreeDiffFileErrors, WorktreeDiffFileResponses, WorktreeDiffResponses, WorktreeDiffSummaryErrors, WorktreeDiffSummaryResponses, WorktreeListErrors, WorktreeListResponses, WorktreeRemoveErrors, WorktreeRemoveInput, WorktreeRemoveResponses, WorktreeResetErrors, WorktreeResetInput, WorktreeResetResponses } from "./types.gen.js";
3
3
  export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
4
4
  /**
5
5
  * You can provide a client instance returned by `createClient()` instead of
@@ -2900,6 +2900,68 @@ export declare class Sandbox extends HeyApiClient {
2900
2900
  workspace?: string;
2901
2901
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SandboxToggleResponses, SandboxToggleErrors, ThrowOnError, "fields">;
2902
2902
  }
2903
+ export declare class SessionHost extends HeyApiClient {
2904
+ /**
2905
+ * List session host providers
2906
+ *
2907
+ * Report every registered session host provider with its availability and transport state.
2908
+ */
2909
+ providers<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionHostProvidersResponses, SessionHostProvidersErrors, ThrowOnError, "fields">;
2910
+ /**
2911
+ * List hosted sessions
2912
+ *
2913
+ * List sessions from the authenticated default session host provider.
2914
+ */
2915
+ list<ThrowOnError extends boolean = false>(parameters?: {
2916
+ limit?: string;
2917
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionHostListResponses, SessionHostListErrors, ThrowOnError, "fields">;
2918
+ /**
2919
+ * Start a hosted session
2920
+ *
2921
+ * Start a hosted session and deliver the initial message. Reuse the same operation key and message ID to retry safely.
2922
+ */
2923
+ start<ThrowOnError extends boolean = false>(parameters?: {
2924
+ sessionHostStartInput?: SessionHostStartInput;
2925
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionHostStartResponses, SessionHostStartErrors, ThrowOnError, "fields">;
2926
+ /**
2927
+ * Get a hosted session
2928
+ *
2929
+ * Read a hosted session's normalized native detail without waking compute.
2930
+ */
2931
+ get<ThrowOnError extends boolean = false>(parameters: {
2932
+ providerID: SessionHostProviderId;
2933
+ sessionID: string;
2934
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionHostGetResponses, SessionHostGetErrors, ThrowOnError, "fields">;
2935
+ /**
2936
+ * Read a hosted transcript
2937
+ *
2938
+ * Read a bounded page of a hosted session transcript without waking compute.
2939
+ */
2940
+ transcript<ThrowOnError extends boolean = false>(parameters: {
2941
+ providerID: SessionHostProviderId;
2942
+ sessionID: string;
2943
+ limit?: string;
2944
+ before?: string;
2945
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionHostTranscriptResponses, SessionHostTranscriptErrors, ThrowOnError, "fields">;
2946
+ /**
2947
+ * Attach to a hosted session
2948
+ *
2949
+ * Mint an opaque local attachment that routes the proven native API for one hosted session. No provider origin, credential, or selector is exposed.
2950
+ */
2951
+ attach<ThrowOnError extends boolean = false>(parameters: {
2952
+ providerID: SessionHostProviderId;
2953
+ sessionID: string;
2954
+ organizationID?: SessionHostOrganizationId;
2955
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionHostAttachResponses, SessionHostAttachErrors, ThrowOnError, "fields">;
2956
+ /**
2957
+ * Detach a hosted session
2958
+ *
2959
+ * Dispose a local attachment. This never changes Cloud lifecycle.
2960
+ */
2961
+ detach<ThrowOnError extends boolean = false>(parameters: {
2962
+ attachmentID: string;
2963
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionHostDetachResponses, SessionHostDetachErrors, ThrowOnError, "fields">;
2964
+ }
2903
2965
  export declare class Suggestion extends HeyApiClient {
2904
2966
  /**
2905
2967
  * List pending suggestions
@@ -3901,6 +3963,8 @@ export declare class KiloClient extends HeyApiClient {
3901
3963
  get remote(): Remote;
3902
3964
  private _sandbox?;
3903
3965
  get sandbox(): Sandbox;
3966
+ private _sessionHost?;
3967
+ get sessionHost(): SessionHost;
3904
3968
  private _suggestion?;
3905
3969
  get suggestion(): Suggestion;
3906
3970
  private _telemetry?;
@@ -5640,6 +5640,123 @@ export class Sandbox extends HeyApiClient {
5640
5640
  });
5641
5641
  }
5642
5642
  }
5643
+ export class SessionHost extends HeyApiClient {
5644
+ /**
5645
+ * List session host providers
5646
+ *
5647
+ * Report every registered session host provider with its availability and transport state.
5648
+ */
5649
+ providers(options) {
5650
+ return (options?.client ?? this.client).get({ url: "/kilocode/session-host/provider", ...options });
5651
+ }
5652
+ /**
5653
+ * List hosted sessions
5654
+ *
5655
+ * List sessions from the authenticated default session host provider.
5656
+ */
5657
+ list(parameters, options) {
5658
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "limit" }] }]);
5659
+ return (options?.client ?? this.client).get({
5660
+ url: "/kilocode/session-host/session",
5661
+ ...options,
5662
+ ...params,
5663
+ });
5664
+ }
5665
+ /**
5666
+ * Start a hosted session
5667
+ *
5668
+ * Start a hosted session and deliver the initial message. Reuse the same operation key and message ID to retry safely.
5669
+ */
5670
+ start(parameters, options) {
5671
+ const params = buildClientParams([parameters], [{ args: [{ key: "sessionHostStartInput", map: "body" }] }]);
5672
+ return (options?.client ?? this.client).post({
5673
+ url: "/kilocode/session-host/session",
5674
+ ...options,
5675
+ ...params,
5676
+ headers: {
5677
+ "Content-Type": "application/json",
5678
+ ...options?.headers,
5679
+ ...params.headers,
5680
+ },
5681
+ });
5682
+ }
5683
+ /**
5684
+ * Get a hosted session
5685
+ *
5686
+ * Read a hosted session's normalized native detail without waking compute.
5687
+ */
5688
+ get(parameters, options) {
5689
+ const params = buildClientParams([parameters], [
5690
+ {
5691
+ args: [
5692
+ { in: "path", key: "providerID" },
5693
+ { in: "path", key: "sessionID" },
5694
+ ],
5695
+ },
5696
+ ]);
5697
+ return (options?.client ?? this.client).get({
5698
+ url: "/kilocode/session-host/session/{providerID}/{sessionID}",
5699
+ ...options,
5700
+ ...params,
5701
+ });
5702
+ }
5703
+ /**
5704
+ * Read a hosted transcript
5705
+ *
5706
+ * Read a bounded page of a hosted session transcript without waking compute.
5707
+ */
5708
+ transcript(parameters, options) {
5709
+ const params = buildClientParams([parameters], [
5710
+ {
5711
+ args: [
5712
+ { in: "path", key: "providerID" },
5713
+ { in: "path", key: "sessionID" },
5714
+ { in: "query", key: "limit" },
5715
+ { in: "query", key: "before" },
5716
+ ],
5717
+ },
5718
+ ]);
5719
+ return (options?.client ?? this.client).get({
5720
+ url: "/kilocode/session-host/session/{providerID}/{sessionID}/message",
5721
+ ...options,
5722
+ ...params,
5723
+ });
5724
+ }
5725
+ /**
5726
+ * Attach to a hosted session
5727
+ *
5728
+ * Mint an opaque local attachment that routes the proven native API for one hosted session. No provider origin, credential, or selector is exposed.
5729
+ */
5730
+ attach(parameters, options) {
5731
+ const params = buildClientParams([parameters], [
5732
+ {
5733
+ args: [
5734
+ { in: "path", key: "providerID" },
5735
+ { in: "path", key: "sessionID" },
5736
+ { in: "query", key: "organizationID" },
5737
+ ],
5738
+ },
5739
+ ]);
5740
+ return (options?.client ?? this.client).post({
5741
+ url: "/kilocode/session-host/session/{providerID}/{sessionID}/attach",
5742
+ ...options,
5743
+ ...params,
5744
+ });
5745
+ }
5746
+ /**
5747
+ * Detach a hosted session
5748
+ *
5749
+ * Dispose a local attachment. This never changes Cloud lifecycle.
5750
+ */
5751
+ detach(parameters, options) {
5752
+ const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "attachmentID" }] }]);
5753
+ return (options?.client ?? this.client).delete({
5754
+ url: "/kilocode/session-host/attachment/{attachmentID}",
5755
+ ...options,
5756
+ ...params,
5757
+ });
5758
+ }
5759
+ }
5643
5760
  export class Suggestion extends HeyApiClient {
5644
5761
  /**
5645
5762
  * List pending suggestions
@@ -7468,6 +7585,10 @@ export class KiloClient extends HeyApiClient {
7468
7585
  get sandbox() {
7469
7586
  return (this._sandbox ??= new Sandbox({ client: this.client }));
7470
7587
  }
7588
+ _sessionHost;
7589
+ get sessionHost() {
7590
+ return (this._sessionHost ??= new SessionHost({ client: this.client }));
7591
+ }
7471
7592
  _suggestion;
7472
7593
  get suggestion() {
7473
7594
  return (this._suggestion ??= new Suggestion({ client: this.client }));
@@ -1,7 +1,7 @@
1
1
  export type ClientOptions = {
2
2
  baseUrl: `${string}://${string}` | (string & {});
3
3
  };
4
- export type Event = EventModelsDevRefreshed1 | EventIntegrationUpdated1 | EventIntegrationConnectionUpdated1 | EventCatalogUpdated1 | EventSessionCreated1 | EventSessionUpdated1 | EventSessionDeleted1 | EventMessageUpdated1 | EventMessageRemoved1 | EventMessagePartUpdated1 | EventMessagePartRemoved1 | EventSessionNextAgentSwitched1 | EventSessionNextModelSwitched1 | EventSessionNextMoved1 | EventSessionNextPrompted1 | EventSessionNextPromptAdmitted1 | EventSessionNextContextUpdated1 | EventSessionNextSynthetic1 | EventSessionNextShellStarted1 | EventSessionNextShellEnded1 | EventSessionNextStepStarted1 | EventSessionNextStepEnded1 | EventSessionNextStepFailed1 | EventSessionNextTextStarted1 | EventSessionNextTextDelta1 | EventSessionNextTextEnded1 | EventSessionNextReasoningStarted1 | EventSessionNextReasoningDelta1 | EventSessionNextReasoningEnded1 | EventSessionNextToolInputStarted1 | EventSessionNextToolInputDelta1 | EventSessionNextToolInputEnded1 | EventSessionNextToolCalled1 | EventSessionNextToolProgress1 | EventSessionNextToolSuccess1 | EventSessionNextToolFailed1 | EventSessionNextRetried1 | EventSessionNextCompactionStarted1 | EventSessionNextCompactionDelta1 | EventSessionNextCompactionEnded1 | EventSessionNextRevertStaged1 | EventSessionNextRevertCleared1 | EventSessionNextRevertCommitted1 | EventMessagePartDelta1 | EventSessionDiff1 | EventSessionError1 | EventInstallationUpdated1 | EventInstallationUpdateAvailable1 | EventFileEdited1 | EventReferenceUpdated1 | EventPermissionV2Asked1 | EventPermissionV2Replied1 | EventPluginAdded1 | EventProjectDirectoriesUpdated1 | EventFileWatcherUpdated1 | EventPtyCreated1 | EventPtyUpdated1 | EventPtyExited1 | EventPtyDeleted1 | EventQuestionV2Asked1 | EventQuestionV2Replied1 | EventQuestionV2Rejected1 | EventTodoUpdated1 | EventLspUpdated1 | EventPermissionAsked1 | EventPermissionReplied1 | EventTuiPromptAppend1 | EventTuiCommandExecute1 | EventTuiToastShow1 | EventTuiSessionSelect1 | EventMcpToolsChanged1 | EventMcpBrowserOpenFailed1 | EventMcpAuthUrl1 | EventCommandExecuted1 | EventProjectUpdated1 | EventSessionStatus1 | EventSessionIdle1 | EventQuestionAsked1 | EventQuestionReplied1 | EventQuestionRejected1 | EventSessionCompacted1 | EventVcsBranchUpdated1 | EventWorkspaceReady1 | EventWorkspaceFailed1 | EventWorkspaceStatus1 | EventWorktreeReady1 | EventWorktreeFailed1 | EventWorktreeSetupReady1 | EventServerConnected1 | EventGlobalDisposed1 | EventGlobalConfigUpdated1 | EventSessionDrained1 | EventSessionDrainInterrupted1 | EventSessionWakeup1 | EventServerInstanceDisposed | EventSessionTurnOpen | EventSessionTurnClose | EventSessionQueueChanged | EventSessionNetworkAsked | EventSessionNetworkReplied | EventSessionNetworkRejected | EventSessionNetworkRestored | EventBackgroundProcessUpdated | EventBackgroundProcessDeleted | EventSandboxStatusChanged | EventSuggestionShown | EventSuggestionAccepted | EventSuggestionDismissed | EventKilocodeAgentManagerStart | EventKilocodeAgentManagerRequested | EventKilocodeAgentManagerCancelled | EventKilocodeNotebookRequested | EventKilocodeNotebookCancelled | EventKiloSessionsRemoteStatusChanged | EventLspClientDiagnostics | EventMemoryStatus1 | EventMemoryUpdated1 | EventMemoryError1 | EventIndexingStatus | EventIndexingWarning | EventModelsDevRefreshed | EventIntegrationUpdated | EventIntegrationConnectionUpdated | EventCatalogUpdated | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionNextAgentSwitched | EventSessionNextModelSwitched | EventSessionNextMoved | EventSessionNextPrompted | EventSessionNextPromptAdmitted | EventSessionNextContextUpdated | EventSessionNextSynthetic | EventSessionNextShellStarted | EventSessionNextShellEnded | EventSessionNextStepStarted | EventSessionNextStepEnded | EventSessionNextStepFailed | EventSessionNextTextStarted | EventSessionNextTextDelta | EventSessionNextTextEnded | EventSessionNextReasoningStarted | EventSessionNextReasoningDelta | EventSessionNextReasoningEnded | EventSessionNextToolInputStarted | EventSessionNextToolInputDelta | EventSessionNextToolInputEnded | EventSessionNextToolCalled | EventSessionNextToolProgress | EventSessionNextToolSuccess | EventSessionNextToolFailed | EventSessionNextRetried | EventSessionNextCompactionStarted | EventSessionNextCompactionDelta | EventSessionNextCompactionEnded | EventSessionNextRevertStaged | EventSessionNextRevertCleared | EventSessionNextRevertCommitted | EventMessagePartDelta | EventSessionDiff | EventSessionError | EventInstallationUpdated | EventInstallationUpdateAvailable | EventFileEdited | EventReferenceUpdated | EventPermissionV2Asked | EventPermissionV2Replied | EventPluginAdded | EventProjectDirectoriesUpdated | EventFileWatcherUpdated | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventQuestionV2Asked | EventQuestionV2Replied | EventQuestionV2Rejected | EventTodoUpdated | EventLspUpdated | EventPermissionAsked | EventPermissionReplied | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow22 | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventMcpAuthUrl | EventCommandExecuted | EventProjectUpdated | EventSessionStatus | EventSessionIdle | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionCompacted | EventVcsBranchUpdated | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceStatus | EventWorktreeReady | EventWorktreeFailed | EventWorktreeSetupReady | EventServerConnected | EventGlobalDisposed | EventGlobalConfigUpdated | EventSessionDrained | EventSessionDrainInterrupted | EventSessionWakeup;
4
+ export type Event = EventModelsDevRefreshed1 | EventIntegrationUpdated1 | EventIntegrationConnectionUpdated1 | EventCatalogUpdated1 | EventSessionCreated1 | EventSessionUpdated1 | EventSessionDeleted1 | EventMessageUpdated1 | EventMessageRemoved1 | EventMessagePartUpdated1 | EventMessagePartRemoved1 | EventSessionNextAgentSwitched1 | EventSessionNextModelSwitched1 | EventSessionNextMoved1 | EventSessionNextPrompted1 | EventSessionNextPromptAdmitted1 | EventSessionNextContextUpdated1 | EventSessionNextSynthetic1 | EventSessionNextShellStarted1 | EventSessionNextShellEnded1 | EventSessionNextStepStarted1 | EventSessionNextStepEnded1 | EventSessionNextStepFailed1 | EventSessionNextTextStarted1 | EventSessionNextTextDelta1 | EventSessionNextTextEnded1 | EventSessionNextReasoningStarted1 | EventSessionNextReasoningDelta1 | EventSessionNextReasoningEnded1 | EventSessionNextToolInputStarted1 | EventSessionNextToolInputDelta1 | EventSessionNextToolInputEnded1 | EventSessionNextToolCalled1 | EventSessionNextToolProgress1 | EventSessionNextToolSuccess1 | EventSessionNextToolFailed1 | EventSessionNextRetried1 | EventSessionNextCompactionStarted1 | EventSessionNextCompactionDelta1 | EventSessionNextCompactionEnded1 | EventSessionNextRevertStaged1 | EventSessionNextRevertCleared1 | EventSessionNextRevertCommitted1 | EventMessagePartDelta1 | EventSessionDiff1 | EventSessionError1 | EventInstallationUpdated1 | EventInstallationUpdateAvailable1 | EventFileEdited1 | EventReferenceUpdated1 | EventPermissionV2Asked1 | EventPermissionV2Replied1 | EventPluginAdded1 | EventProjectDirectoriesUpdated1 | EventFileWatcherUpdated1 | EventPtyCreated1 | EventPtyUpdated1 | EventPtyExited1 | EventPtyDeleted1 | EventQuestionV2Asked1 | EventQuestionV2Replied1 | EventQuestionV2Rejected1 | EventTodoUpdated1 | EventLspUpdated1 | EventPermissionAsked1 | EventPermissionReplied1 | EventTuiPromptAppend1 | EventTuiCommandExecute1 | EventTuiToastShow1 | EventTuiSessionSelect1 | EventMcpToolsChanged1 | EventMcpBrowserOpenFailed1 | EventMcpAuthUrl1 | EventCommandExecuted1 | EventProjectUpdated1 | EventSessionStatus1 | EventSessionIdle1 | EventQuestionAsked1 | EventQuestionReplied1 | EventQuestionRejected1 | EventSessionCompacted1 | EventVcsBranchUpdated1 | EventWorkspaceReady1 | EventWorkspaceFailed1 | EventWorkspaceStatus1 | EventWorktreeReady1 | EventWorktreeFailed1 | EventWorktreeSetupReady1 | EventServerConnected1 | EventGlobalDisposed1 | EventGlobalConfigUpdated1 | EventSessionDrained1 | EventSessionDrainInterrupted1 | EventSessionWakeup1 | EventSessionHostAvailability1 | EventServerInstanceDisposed | EventSessionTurnOpen | EventSessionTurnClose | EventSessionQueueChanged | EventSessionNetworkAsked | EventSessionNetworkReplied | EventSessionNetworkRejected | EventSessionNetworkRestored | EventBackgroundProcessUpdated | EventBackgroundProcessDeleted | EventSandboxStatusChanged | EventSuggestionShown | EventSuggestionAccepted | EventSuggestionDismissed | EventKilocodeAgentManagerStart | EventKilocodeAgentManagerRequested | EventKilocodeAgentManagerCancelled | EventKilocodeNotebookRequested | EventKilocodeNotebookCancelled | EventKiloSessionsRemoteStatusChanged | EventLspClientDiagnostics | EventMemoryStatus1 | EventMemoryUpdated1 | EventMemoryError1 | EventIndexingStatus | EventIndexingWarning | EventModelsDevRefreshed | EventIntegrationUpdated | EventIntegrationConnectionUpdated | EventCatalogUpdated | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionNextAgentSwitched | EventSessionNextModelSwitched | EventSessionNextMoved | EventSessionNextPrompted | EventSessionNextPromptAdmitted | EventSessionNextContextUpdated | EventSessionNextSynthetic | EventSessionNextShellStarted | EventSessionNextShellEnded | EventSessionNextStepStarted | EventSessionNextStepEnded | EventSessionNextStepFailed | EventSessionNextTextStarted | EventSessionNextTextDelta | EventSessionNextTextEnded | EventSessionNextReasoningStarted | EventSessionNextReasoningDelta | EventSessionNextReasoningEnded | EventSessionNextToolInputStarted | EventSessionNextToolInputDelta | EventSessionNextToolInputEnded | EventSessionNextToolCalled | EventSessionNextToolProgress | EventSessionNextToolSuccess | EventSessionNextToolFailed | EventSessionNextRetried | EventSessionNextCompactionStarted | EventSessionNextCompactionDelta | EventSessionNextCompactionEnded | EventSessionNextRevertStaged | EventSessionNextRevertCleared | EventSessionNextRevertCommitted | EventMessagePartDelta | EventSessionDiff | EventSessionError | EventInstallationUpdated | EventInstallationUpdateAvailable | EventFileEdited | EventReferenceUpdated | EventPermissionV2Asked | EventPermissionV2Replied | EventPluginAdded | EventProjectDirectoriesUpdated | EventFileWatcherUpdated | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventQuestionV2Asked | EventQuestionV2Replied | EventQuestionV2Rejected | EventTodoUpdated | EventLspUpdated | EventPermissionAsked | EventPermissionReplied | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow22 | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventMcpAuthUrl | EventCommandExecuted | EventProjectUpdated | EventSessionStatus | EventSessionIdle | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionCompacted | EventVcsBranchUpdated | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceStatus | EventWorktreeReady | EventWorktreeFailed | EventWorktreeSetupReady | EventServerConnected | EventGlobalDisposed | EventGlobalConfigUpdated | EventSessionDrained | EventSessionDrainInterrupted | EventSessionWakeup | EventSessionHostAvailability;
5
5
  export type QuestionReplied = {
6
6
  sessionID: string;
7
7
  requestID: string;
@@ -793,7 +793,7 @@ export type GlobalEvent = {
793
793
  directory: string;
794
794
  project?: string;
795
795
  workspace?: string;
796
- payload: EventServerInstanceDisposed | EventSessionTurnOpen | EventSessionTurnClose | EventSessionQueueChanged | EventSessionNetworkAsked | EventSessionNetworkReplied | EventSessionNetworkRejected | EventSessionNetworkRestored | EventBackgroundProcessUpdated | EventBackgroundProcessDeleted | EventSandboxStatusChanged | EventSuggestionShown | EventSuggestionAccepted | EventSuggestionDismissed | EventKilocodeAgentManagerStart | EventKilocodeAgentManagerRequested | EventKilocodeAgentManagerCancelled | EventKilocodeNotebookRequested | EventKilocodeNotebookCancelled | EventKiloSessionsRemoteStatusChanged | EventLspClientDiagnostics | EventMemoryStatus | EventMemoryUpdated | EventMemoryError | EventIndexingStatus | EventIndexingWarning | EventModelsDevRefreshed | EventIntegrationUpdated | EventIntegrationConnectionUpdated | EventCatalogUpdated | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionNextAgentSwitched | EventSessionNextModelSwitched | EventSessionNextMoved | EventSessionNextPrompted | EventSessionNextPromptAdmitted | EventSessionNextContextUpdated | EventSessionNextSynthetic | EventSessionNextShellStarted | EventSessionNextShellEnded | EventSessionNextStepStarted | EventSessionNextStepEnded | EventSessionNextStepFailed | EventSessionNextTextStarted | EventSessionNextTextDelta | EventSessionNextTextEnded | EventSessionNextReasoningStarted | EventSessionNextReasoningDelta | EventSessionNextReasoningEnded | EventSessionNextToolInputStarted | EventSessionNextToolInputDelta | EventSessionNextToolInputEnded | EventSessionNextToolCalled | EventSessionNextToolProgress | EventSessionNextToolSuccess | EventSessionNextToolFailed | EventSessionNextRetried | EventSessionNextCompactionStarted | EventSessionNextCompactionDelta | EventSessionNextCompactionEnded | EventSessionNextRevertStaged | EventSessionNextRevertCleared | EventSessionNextRevertCommitted | EventMessagePartDelta | EventSessionDiff | EventSessionError | EventInstallationUpdated | EventInstallationUpdateAvailable | EventFileEdited | EventReferenceUpdated | EventPermissionV2Asked | EventPermissionV2Replied | EventPluginAdded | EventProjectDirectoriesUpdated | EventFileWatcherUpdated | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventQuestionV2Asked | EventQuestionV2Replied | EventQuestionV2Rejected | EventTodoUpdated | EventLspUpdated | EventPermissionAsked | EventPermissionReplied | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventMcpAuthUrl | EventCommandExecuted | EventProjectUpdated | EventSessionStatus | EventSessionIdle | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionCompacted | EventVcsBranchUpdated | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceStatus | EventWorktreeReady | EventWorktreeFailed | EventWorktreeSetupReady | EventServerConnected | EventGlobalDisposed | EventGlobalConfigUpdated | EventSessionDrained | EventSessionDrainInterrupted | EventSessionWakeup | {
796
+ payload: EventServerInstanceDisposed | EventSessionTurnOpen | EventSessionTurnClose | EventSessionQueueChanged | EventSessionNetworkAsked | EventSessionNetworkReplied | EventSessionNetworkRejected | EventSessionNetworkRestored | EventBackgroundProcessUpdated | EventBackgroundProcessDeleted | EventSandboxStatusChanged | EventSuggestionShown | EventSuggestionAccepted | EventSuggestionDismissed | EventKilocodeAgentManagerStart | EventKilocodeAgentManagerRequested | EventKilocodeAgentManagerCancelled | EventKilocodeNotebookRequested | EventKilocodeNotebookCancelled | EventKiloSessionsRemoteStatusChanged | EventLspClientDiagnostics | EventMemoryStatus | EventMemoryUpdated | EventMemoryError | EventIndexingStatus | EventIndexingWarning | EventModelsDevRefreshed | EventIntegrationUpdated | EventIntegrationConnectionUpdated | EventCatalogUpdated | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionNextAgentSwitched | EventSessionNextModelSwitched | EventSessionNextMoved | EventSessionNextPrompted | EventSessionNextPromptAdmitted | EventSessionNextContextUpdated | EventSessionNextSynthetic | EventSessionNextShellStarted | EventSessionNextShellEnded | EventSessionNextStepStarted | EventSessionNextStepEnded | EventSessionNextStepFailed | EventSessionNextTextStarted | EventSessionNextTextDelta | EventSessionNextTextEnded | EventSessionNextReasoningStarted | EventSessionNextReasoningDelta | EventSessionNextReasoningEnded | EventSessionNextToolInputStarted | EventSessionNextToolInputDelta | EventSessionNextToolInputEnded | EventSessionNextToolCalled | EventSessionNextToolProgress | EventSessionNextToolSuccess | EventSessionNextToolFailed | EventSessionNextRetried | EventSessionNextCompactionStarted | EventSessionNextCompactionDelta | EventSessionNextCompactionEnded | EventSessionNextRevertStaged | EventSessionNextRevertCleared | EventSessionNextRevertCommitted | EventMessagePartDelta | EventSessionDiff | EventSessionError | EventInstallationUpdated | EventInstallationUpdateAvailable | EventFileEdited | EventReferenceUpdated | EventPermissionV2Asked | EventPermissionV2Replied | EventPluginAdded | EventProjectDirectoriesUpdated | EventFileWatcherUpdated | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventQuestionV2Asked | EventQuestionV2Replied | EventQuestionV2Rejected | EventTodoUpdated | EventLspUpdated | EventPermissionAsked | EventPermissionReplied | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventMcpAuthUrl | EventCommandExecuted | EventProjectUpdated | EventSessionStatus | EventSessionIdle | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionCompacted | EventVcsBranchUpdated | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceStatus | EventWorktreeReady | EventWorktreeFailed | EventWorktreeSetupReady | EventServerConnected | EventGlobalDisposed | EventGlobalConfigUpdated | EventSessionDrained | EventSessionDrainInterrupted | EventSessionWakeup | EventSessionHostAvailability | {
797
797
  id: string;
798
798
  type: "models-dev.refreshed";
799
799
  properties: {
@@ -1590,6 +1590,15 @@ export type GlobalEvent = {
1590
1590
  sessionID: string;
1591
1591
  pending: number;
1592
1592
  };
1593
+ } | {
1594
+ id: string;
1595
+ type: "session.host.availability";
1596
+ properties: {
1597
+ providerID: string;
1598
+ sessionID?: string;
1599
+ state: "available" | "unavailable";
1600
+ reason?: string;
1601
+ };
1593
1602
  } | SyncEventSessionCreated | SyncEventSessionUpdated | SyncEventSessionDeleted | SyncEventMessageUpdated | SyncEventMessageRemoved | SyncEventMessagePartUpdated | SyncEventMessagePartRemoved | SyncEventSessionNextAgentSwitched | SyncEventSessionNextModelSwitched | SyncEventSessionNextMoved | SyncEventSessionNextPrompted | SyncEventSessionNextPromptAdmitted | SyncEventSessionNextContextUpdated | SyncEventSessionNextSynthetic | SyncEventSessionNextShellStarted | SyncEventSessionNextShellEnded | SyncEventSessionNextStepStarted | SyncEventSessionNextStepEnded | SyncEventSessionNextStepFailed | SyncEventSessionNextTextStarted | SyncEventSessionNextTextEnded | SyncEventSessionNextReasoningStarted | SyncEventSessionNextReasoningEnded | SyncEventSessionNextToolInputStarted | SyncEventSessionNextToolInputEnded | SyncEventSessionNextToolCalled | SyncEventSessionNextToolProgress | SyncEventSessionNextToolSuccess | SyncEventSessionNextToolFailed | SyncEventSessionNextRetried | SyncEventSessionNextCompactionStarted | SyncEventSessionNextCompactionEnded | SyncEventSessionNextRevertStaged | SyncEventSessionNextRevertCleared | SyncEventSessionNextRevertCommitted;
1594
1603
  };
1595
1604
  /**
@@ -3912,6 +3921,118 @@ export type KilocodeMigrateSessionsDiscoverResult = {
3912
3921
  */
3913
3922
  dropped: Array<string>;
3914
3923
  };
3924
+ export type SessionHostProviderId = string;
3925
+ export type SessionHostAvailability = {
3926
+ state: "available";
3927
+ } | {
3928
+ state: "unavailable";
3929
+ reason: "signed_out" | "rejected" | "unreachable";
3930
+ message: string;
3931
+ };
3932
+ export type SessionHostTransport = {
3933
+ state: "unknown";
3934
+ } | {
3935
+ state: "reachable";
3936
+ checkedAt: number;
3937
+ } | {
3938
+ state: "unreachable";
3939
+ checkedAt: number;
3940
+ message: string;
3941
+ };
3942
+ export type SessionHostProviderStatus = {
3943
+ id: SessionHostProviderId;
3944
+ default: boolean;
3945
+ availability: SessionHostAvailability;
3946
+ transport: SessionHostTransport;
3947
+ };
3948
+ export type SessionHostProviders = {
3949
+ providers: Array<SessionHostProviderStatus>;
3950
+ };
3951
+ export type UnauthorizedError = {
3952
+ _tag: "UnauthorizedError";
3953
+ message: string;
3954
+ };
3955
+ export type UpstreamError = {
3956
+ _tag: "UpstreamError";
3957
+ message: string;
3958
+ service?: string;
3959
+ status?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
3960
+ };
3961
+ export type ServiceUnavailableError = {
3962
+ _tag: "ServiceUnavailableError";
3963
+ message: string;
3964
+ service?: string;
3965
+ };
3966
+ export type SessionHostPaymentRequiredError = {
3967
+ code: string;
3968
+ message: string;
3969
+ };
3970
+ export type SessionHostRemoteSessionId = string;
3971
+ export type SessionHostIdentity = {
3972
+ providerID: SessionHostProviderId;
3973
+ sessionID: SessionHostRemoteSessionId;
3974
+ };
3975
+ export type SessionHostSession = {
3976
+ id: SessionHostIdentity;
3977
+ session: Session;
3978
+ };
3979
+ export type SessionHostSessionPage = {
3980
+ items: Array<SessionHostSession>;
3981
+ };
3982
+ export type SessionHostRepository = {
3983
+ type: "github";
3984
+ repo: string;
3985
+ branch?: string;
3986
+ } | {
3987
+ type: "gitlab";
3988
+ url: string;
3989
+ branch?: string;
3990
+ } | {
3991
+ type: "git";
3992
+ url: string;
3993
+ branch?: string;
3994
+ };
3995
+ export type SessionHostOrganizationId = string;
3996
+ export type SessionHostOrigin = "cli" | "desktop";
3997
+ export type SessionHostStartInput = {
3998
+ repository: SessionHostRepository;
3999
+ prompt: string;
4000
+ agent: {
4001
+ mode: string;
4002
+ model: string;
4003
+ };
4004
+ organizationID?: SessionHostOrganizationId;
4005
+ origin?: SessionHostOrigin;
4006
+ operationKey?: string;
4007
+ messageID?: string;
4008
+ };
4009
+ export type SessionHostStartResult = {
4010
+ session: SessionHostIdentity;
4011
+ messageID: string;
4012
+ delivery: "sent" | "queued";
4013
+ replayed: boolean;
4014
+ };
4015
+ export type SessionHostTranscriptPage = {
4016
+ items: Array<{
4017
+ info: Message;
4018
+ parts: Array<Part>;
4019
+ }>;
4020
+ cursor?: string;
4021
+ omitted?: number;
4022
+ };
4023
+ export type SessionHostAttachmentId = string;
4024
+ export type SessionHostAttached = {
4025
+ attachmentID: SessionHostAttachmentId;
4026
+ session: SessionHostIdentity;
4027
+ expiresAt: number;
4028
+ };
4029
+ export type SessionHostDetached = {
4030
+ detached: boolean;
4031
+ };
4032
+ export type SessionHostGoneError = {
4033
+ code: string;
4034
+ message: string;
4035
+ };
3915
4036
  export type KilocodeSessionImportResult = {
3916
4037
  ok: boolean;
3917
4038
  id: string;
@@ -3931,10 +4052,6 @@ export type MemoryApiServerError = {
3931
4052
  message: string;
3932
4053
  };
3933
4054
  };
3934
- export type UnauthorizedError = {
3935
- _tag: "UnauthorizedError";
3936
- message: string;
3937
- };
3938
4055
  export type SessionsResponse = {
3939
4056
  data: Array<SessionV2Info>;
3940
4057
  cursor: {
@@ -3959,11 +4076,6 @@ export type PromptInput = {
3959
4076
  files?: Array<PromptInputFileAttachment>;
3960
4077
  agents?: Array<PromptAgentAttachment>;
3961
4078
  };
3962
- export type ServiceUnavailableError = {
3963
- _tag: "ServiceUnavailableError";
3964
- message: string;
3965
- service?: string;
3966
- };
3967
4079
  export type MessageNotFoundError = {
3968
4080
  _tag: "MessageNotFoundError";
3969
4081
  sessionID: string;
@@ -4052,7 +4164,26 @@ export type QuestionRejected2 = {
4052
4164
  requestID: string;
4053
4165
  };
4054
4166
  };
4055
- export type V2Event = ModelsDevRefreshed | IntegrationUpdated | IntegrationConnectionUpdated | CatalogUpdated | SessionCreated | SessionUpdated | SessionDeleted | MessageUpdated | MessageRemoved | MessagePartUpdated | MessagePartRemoved | SessionNextAgentSwitched | SessionNextModelSwitched | SessionNextMoved | SessionNextPrompted | SessionNextPromptAdmitted | SessionNextContextUpdated | SessionNextSynthetic | SessionNextShellStarted | SessionNextShellEnded | SessionNextStepStarted | SessionNextStepEnded | SessionNextStepFailed | SessionNextTextStarted | SessionNextTextDelta | SessionNextTextEnded | SessionNextReasoningStarted | SessionNextReasoningDelta | SessionNextReasoningEnded | SessionNextToolInputStarted | SessionNextToolInputDelta | SessionNextToolInputEnded | SessionNextToolCalled | SessionNextToolProgress | SessionNextToolSuccess | SessionNextToolFailed | SessionNextRetried | SessionNextCompactionStarted | SessionNextCompactionDelta | SessionNextCompactionEnded | SessionNextRevertStaged | SessionNextRevertCleared | SessionNextRevertCommitted | MessagePartDelta | SessionDiff | SessionError | InstallationUpdated | InstallationUpdateAvailable | FileEdited | ReferenceUpdated | PermissionV2Asked | PermissionV2Replied | PluginAdded | ProjectDirectoriesUpdated | FileWatcherUpdated | PtyCreated | PtyUpdated | PtyExited | PtyDeleted | QuestionV2Asked | QuestionV2Replied | QuestionV2Rejected | TodoUpdated | LspUpdated | PermissionAsked | PermissionReplied | TuiPromptAppend | TuiCommandExecute | TuiToastShow | TuiSessionSelect | McpToolsChanged | McpBrowserOpenFailed | McpAuthUrl | CommandExecuted | ProjectUpdated | SessionStatus2 | SessionIdle | QuestionAsked | QuestionReplied2 | QuestionRejected2 | SessionCompacted | VcsBranchUpdated | WorkspaceReady | WorkspaceFailed | WorkspaceStatus | WorktreeReady | WorktreeFailed | WorktreeSetupReady | ServerConnected | GlobalDisposed | GlobalConfigUpdated | SessionDrained | SessionDrainInterrupted | SessionWakeup;
4167
+ export type SessionHostAvailability2 = {
4168
+ id: string;
4169
+ metadata?: {
4170
+ [key: string]: unknown;
4171
+ };
4172
+ type: "session.host.availability";
4173
+ durable?: {
4174
+ aggregateID: string;
4175
+ seq: number;
4176
+ version: number;
4177
+ };
4178
+ location?: LocationRef;
4179
+ data: {
4180
+ providerID: string;
4181
+ sessionID?: string;
4182
+ state: "available" | "unavailable";
4183
+ reason?: string;
4184
+ };
4185
+ };
4186
+ export type V2Event = ModelsDevRefreshed | IntegrationUpdated | IntegrationConnectionUpdated | CatalogUpdated | SessionCreated | SessionUpdated | SessionDeleted | MessageUpdated | MessageRemoved | MessagePartUpdated | MessagePartRemoved | SessionNextAgentSwitched | SessionNextModelSwitched | SessionNextMoved | SessionNextPrompted | SessionNextPromptAdmitted | SessionNextContextUpdated | SessionNextSynthetic | SessionNextShellStarted | SessionNextShellEnded | SessionNextStepStarted | SessionNextStepEnded | SessionNextStepFailed | SessionNextTextStarted | SessionNextTextDelta | SessionNextTextEnded | SessionNextReasoningStarted | SessionNextReasoningDelta | SessionNextReasoningEnded | SessionNextToolInputStarted | SessionNextToolInputDelta | SessionNextToolInputEnded | SessionNextToolCalled | SessionNextToolProgress | SessionNextToolSuccess | SessionNextToolFailed | SessionNextRetried | SessionNextCompactionStarted | SessionNextCompactionDelta | SessionNextCompactionEnded | SessionNextRevertStaged | SessionNextRevertCleared | SessionNextRevertCommitted | MessagePartDelta | SessionDiff | SessionError | InstallationUpdated | InstallationUpdateAvailable | FileEdited | ReferenceUpdated | PermissionV2Asked | PermissionV2Replied | PluginAdded | ProjectDirectoriesUpdated | FileWatcherUpdated | PtyCreated | PtyUpdated | PtyExited | PtyDeleted | QuestionV2Asked | QuestionV2Replied | QuestionV2Rejected | TodoUpdated | LspUpdated | PermissionAsked | PermissionReplied | TuiPromptAppend | TuiCommandExecute | TuiToastShow | TuiSessionSelect | McpToolsChanged | McpBrowserOpenFailed | McpAuthUrl | CommandExecuted | ProjectUpdated | SessionStatus2 | SessionIdle | QuestionAsked | QuestionReplied2 | QuestionRejected2 | SessionCompacted | VcsBranchUpdated | WorkspaceReady | WorkspaceFailed | WorkspaceStatus | WorktreeReady | WorktreeFailed | WorktreeSetupReady | ServerConnected | GlobalDisposed | GlobalConfigUpdated | SessionDrained | SessionDrainInterrupted | SessionWakeup | SessionHostAvailability2;
4056
4187
  export type V2EventStream = string;
4057
4188
  export type ForbiddenError = {
4058
4189
  _tag: "ForbiddenError";
@@ -4218,6 +4349,7 @@ export type EventKilocodeAgentManagerStart = {
4218
4349
  prompt?: string;
4219
4350
  name?: string;
4220
4351
  branchName?: string;
4352
+ baseBranch?: string;
4221
4353
  agent?: string;
4222
4354
  model?: {
4223
4355
  providerID: string;
@@ -5374,6 +5506,16 @@ export type EventSessionWakeup = {
5374
5506
  pending: number;
5375
5507
  };
5376
5508
  };
5509
+ export type EventSessionHostAvailability = {
5510
+ id: string;
5511
+ type: "session.host.availability";
5512
+ properties: {
5513
+ providerID: string;
5514
+ sessionID?: string;
5515
+ state: "available" | "unavailable";
5516
+ reason?: string;
5517
+ };
5518
+ };
5377
5519
  export type SyncEventSessionCreated = {
5378
5520
  type: "sync";
5379
5521
  id: string;
@@ -9121,6 +9263,16 @@ export type EventSessionWakeup1 = {
9121
9263
  pending: number;
9122
9264
  };
9123
9265
  };
9266
+ export type EventSessionHostAvailability1 = {
9267
+ id: string;
9268
+ type: "session.host.availability";
9269
+ properties: {
9270
+ providerID: string;
9271
+ sessionID?: string;
9272
+ state: "available" | "unavailable";
9273
+ reason?: string;
9274
+ };
9275
+ };
9124
9276
  export type EventMemoryStatus1 = {
9125
9277
  id: string;
9126
9278
  type: "memory.status";
@@ -15809,6 +15961,308 @@ export type SandboxToggleResponses = {
15809
15961
  };
15810
15962
  };
15811
15963
  export type SandboxToggleResponse = SandboxToggleResponses[keyof SandboxToggleResponses];
15964
+ export type SessionHostProvidersData = {
15965
+ body?: never;
15966
+ path?: never;
15967
+ query?: never;
15968
+ url: "/kilocode/session-host/provider";
15969
+ };
15970
+ export type SessionHostProvidersErrors = {
15971
+ /**
15972
+ * InvalidRequestError
15973
+ */
15974
+ 400: InvalidRequestError;
15975
+ /**
15976
+ * SessionHostPaymentRequiredError
15977
+ */
15978
+ 402: SessionHostPaymentRequiredError;
15979
+ /**
15980
+ * NotFoundError
15981
+ */
15982
+ 404: NotFoundError;
15983
+ /**
15984
+ * ConflictError
15985
+ */
15986
+ 409: ConflictError;
15987
+ /**
15988
+ * UpstreamError
15989
+ */
15990
+ 502: UpstreamError;
15991
+ /**
15992
+ * ServiceUnavailableError
15993
+ */
15994
+ 503: ServiceUnavailableError;
15995
+ };
15996
+ export type SessionHostProvidersError = SessionHostProvidersErrors[keyof SessionHostProvidersErrors];
15997
+ export type SessionHostProvidersResponses = {
15998
+ /**
15999
+ * Registered session host providers
16000
+ */
16001
+ 200: SessionHostProviders;
16002
+ };
16003
+ export type SessionHostProvidersResponse = SessionHostProvidersResponses[keyof SessionHostProvidersResponses];
16004
+ export type SessionHostListData = {
16005
+ body?: never;
16006
+ path?: never;
16007
+ query?: {
16008
+ limit?: string;
16009
+ };
16010
+ url: "/kilocode/session-host/session";
16011
+ };
16012
+ export type SessionHostListErrors = {
16013
+ /**
16014
+ * InvalidRequestError
16015
+ */
16016
+ 400: InvalidRequestError;
16017
+ /**
16018
+ * SessionHostPaymentRequiredError
16019
+ */
16020
+ 402: SessionHostPaymentRequiredError;
16021
+ /**
16022
+ * NotFoundError
16023
+ */
16024
+ 404: NotFoundError;
16025
+ /**
16026
+ * ConflictError
16027
+ */
16028
+ 409: ConflictError;
16029
+ /**
16030
+ * UpstreamError
16031
+ */
16032
+ 502: UpstreamError;
16033
+ /**
16034
+ * ServiceUnavailableError
16035
+ */
16036
+ 503: ServiceUnavailableError;
16037
+ };
16038
+ export type SessionHostListError = SessionHostListErrors[keyof SessionHostListErrors];
16039
+ export type SessionHostListResponses = {
16040
+ /**
16041
+ * Hosted sessions
16042
+ */
16043
+ 200: SessionHostSessionPage;
16044
+ };
16045
+ export type SessionHostListResponse = SessionHostListResponses[keyof SessionHostListResponses];
16046
+ export type SessionHostStartData = {
16047
+ body?: SessionHostStartInput;
16048
+ path?: never;
16049
+ query?: never;
16050
+ url: "/kilocode/session-host/session";
16051
+ };
16052
+ export type SessionHostStartErrors = {
16053
+ /**
16054
+ * InvalidRequestError
16055
+ */
16056
+ 400: InvalidRequestError;
16057
+ /**
16058
+ * SessionHostPaymentRequiredError
16059
+ */
16060
+ 402: SessionHostPaymentRequiredError;
16061
+ /**
16062
+ * NotFoundError
16063
+ */
16064
+ 404: NotFoundError;
16065
+ /**
16066
+ * ConflictError
16067
+ */
16068
+ 409: ConflictError;
16069
+ /**
16070
+ * UpstreamError
16071
+ */
16072
+ 502: UpstreamError;
16073
+ /**
16074
+ * ServiceUnavailableError
16075
+ */
16076
+ 503: ServiceUnavailableError;
16077
+ };
16078
+ export type SessionHostStartError = SessionHostStartErrors[keyof SessionHostStartErrors];
16079
+ export type SessionHostStartResponses = {
16080
+ /**
16081
+ * Hosted session started
16082
+ */
16083
+ 200: SessionHostStartResult;
16084
+ };
16085
+ export type SessionHostStartResponse = SessionHostStartResponses[keyof SessionHostStartResponses];
16086
+ export type SessionHostGetData = {
16087
+ body?: never;
16088
+ path: {
16089
+ providerID: SessionHostProviderId;
16090
+ sessionID: string;
16091
+ };
16092
+ query?: never;
16093
+ url: "/kilocode/session-host/session/{providerID}/{sessionID}";
16094
+ };
16095
+ export type SessionHostGetErrors = {
16096
+ /**
16097
+ * InvalidRequestError
16098
+ */
16099
+ 400: InvalidRequestError;
16100
+ /**
16101
+ * SessionHostPaymentRequiredError
16102
+ */
16103
+ 402: SessionHostPaymentRequiredError;
16104
+ /**
16105
+ * NotFoundError
16106
+ */
16107
+ 404: NotFoundError;
16108
+ /**
16109
+ * ConflictError
16110
+ */
16111
+ 409: ConflictError;
16112
+ /**
16113
+ * UpstreamError
16114
+ */
16115
+ 502: UpstreamError;
16116
+ /**
16117
+ * ServiceUnavailableError
16118
+ */
16119
+ 503: ServiceUnavailableError;
16120
+ };
16121
+ export type SessionHostGetError = SessionHostGetErrors[keyof SessionHostGetErrors];
16122
+ export type SessionHostGetResponses = {
16123
+ /**
16124
+ * Hosted session
16125
+ */
16126
+ 200: SessionHostSession;
16127
+ };
16128
+ export type SessionHostGetResponse = SessionHostGetResponses[keyof SessionHostGetResponses];
16129
+ export type SessionHostTranscriptData = {
16130
+ body?: never;
16131
+ path: {
16132
+ providerID: SessionHostProviderId;
16133
+ sessionID: string;
16134
+ };
16135
+ query?: {
16136
+ limit?: string;
16137
+ before?: string;
16138
+ };
16139
+ url: "/kilocode/session-host/session/{providerID}/{sessionID}/message";
16140
+ };
16141
+ export type SessionHostTranscriptErrors = {
16142
+ /**
16143
+ * InvalidRequestError
16144
+ */
16145
+ 400: InvalidRequestError;
16146
+ /**
16147
+ * SessionHostPaymentRequiredError
16148
+ */
16149
+ 402: SessionHostPaymentRequiredError;
16150
+ /**
16151
+ * NotFoundError
16152
+ */
16153
+ 404: NotFoundError;
16154
+ /**
16155
+ * ConflictError
16156
+ */
16157
+ 409: ConflictError;
16158
+ /**
16159
+ * UpstreamError
16160
+ */
16161
+ 502: UpstreamError;
16162
+ /**
16163
+ * ServiceUnavailableError
16164
+ */
16165
+ 503: ServiceUnavailableError;
16166
+ };
16167
+ export type SessionHostTranscriptError = SessionHostTranscriptErrors[keyof SessionHostTranscriptErrors];
16168
+ export type SessionHostTranscriptResponses = {
16169
+ /**
16170
+ * Hosted transcript page
16171
+ */
16172
+ 200: SessionHostTranscriptPage;
16173
+ };
16174
+ export type SessionHostTranscriptResponse = SessionHostTranscriptResponses[keyof SessionHostTranscriptResponses];
16175
+ export type SessionHostAttachData = {
16176
+ body?: never;
16177
+ path: {
16178
+ providerID: SessionHostProviderId;
16179
+ sessionID: string;
16180
+ };
16181
+ query?: {
16182
+ organizationID?: SessionHostOrganizationId;
16183
+ };
16184
+ url: "/kilocode/session-host/session/{providerID}/{sessionID}/attach";
16185
+ };
16186
+ export type SessionHostAttachErrors = {
16187
+ /**
16188
+ * InvalidRequestError
16189
+ */
16190
+ 400: InvalidRequestError;
16191
+ /**
16192
+ * SessionHostPaymentRequiredError
16193
+ */
16194
+ 402: SessionHostPaymentRequiredError;
16195
+ /**
16196
+ * NotFoundError
16197
+ */
16198
+ 404: NotFoundError;
16199
+ /**
16200
+ * ConflictError
16201
+ */
16202
+ 409: ConflictError;
16203
+ /**
16204
+ * UpstreamError
16205
+ */
16206
+ 502: UpstreamError;
16207
+ /**
16208
+ * ServiceUnavailableError
16209
+ */
16210
+ 503: ServiceUnavailableError;
16211
+ };
16212
+ export type SessionHostAttachError = SessionHostAttachErrors[keyof SessionHostAttachErrors];
16213
+ export type SessionHostAttachResponses = {
16214
+ /**
16215
+ * Hosted session attached
16216
+ */
16217
+ 200: SessionHostAttached;
16218
+ };
16219
+ export type SessionHostAttachResponse = SessionHostAttachResponses[keyof SessionHostAttachResponses];
16220
+ export type SessionHostDetachData = {
16221
+ body?: never;
16222
+ path: {
16223
+ attachmentID: string;
16224
+ };
16225
+ query?: never;
16226
+ url: "/kilocode/session-host/attachment/{attachmentID}";
16227
+ };
16228
+ export type SessionHostDetachErrors = {
16229
+ /**
16230
+ * InvalidRequestError
16231
+ */
16232
+ 400: InvalidRequestError;
16233
+ /**
16234
+ * SessionHostPaymentRequiredError
16235
+ */
16236
+ 402: SessionHostPaymentRequiredError;
16237
+ /**
16238
+ * NotFoundError
16239
+ */
16240
+ 404: NotFoundError;
16241
+ /**
16242
+ * ConflictError
16243
+ */
16244
+ 409: ConflictError;
16245
+ /**
16246
+ * SessionHostGoneError
16247
+ */
16248
+ 410: SessionHostGoneError;
16249
+ /**
16250
+ * UpstreamError
16251
+ */
16252
+ 502: UpstreamError;
16253
+ /**
16254
+ * ServiceUnavailableError
16255
+ */
16256
+ 503: ServiceUnavailableError;
16257
+ };
16258
+ export type SessionHostDetachError = SessionHostDetachErrors[keyof SessionHostDetachErrors];
16259
+ export type SessionHostDetachResponses = {
16260
+ /**
16261
+ * Attachment disposed
16262
+ */
16263
+ 200: SessionHostDetached;
16264
+ };
16265
+ export type SessionHostDetachResponse = SessionHostDetachResponses[keyof SessionHostDetachResponses];
15812
16266
  export type KilocodeSessionImportProjectData = {
15813
16267
  body?: {
15814
16268
  id: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@kilocode/sdk",
4
- "version": "7.8.17",
4
+ "version": "7.8.20",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {