@kilocode/sdk 7.4.22 → 7.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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, 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, 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, GlobalEventResponses, GlobalHealthErrors, GlobalHealthResponses, GlobalUpgradeErrors, GlobalUpgradeResponses, IndexingConsentErrors, IndexingConsentResponses, IndexingModelsErrors, IndexingModelsResponses, IndexingStatusErrors, IndexingStatusResponses, IndexingWarningsErrors, IndexingWarningsResponses, InstanceDisposeErrors, InstanceDisposeResponses, InstanceReloadErrors, InstanceReloadResponses, InteractiveTerminalCloseErrors, InteractiveTerminalCloseResponses, InteractiveTerminalGetErrors, InteractiveTerminalGetResponses, InteractiveTerminalListErrors, InteractiveTerminalListResponses, InteractiveTerminalResizeErrors, InteractiveTerminalResizeInput, InteractiveTerminalResizeResponses, InteractiveTerminalWriteErrors, InteractiveTerminalWriteInput, InteractiveTerminalWriteResponses, KiloAudioTranscriptionsErrors, KiloAudioTranscriptionsResponses, KiloAuthStatusErrors, KiloAuthStatusResponses, KiloClawChatCredentialsErrors, KiloClawChatCredentialsResponses, KiloClawStatusErrors, KiloClawStatusResponses, KiloCloudSessionGetErrors, KiloCloudSessionGetResponses, KiloCloudSessionImportErrors, KiloCloudSessionImportResponses, KiloCloudSessionsErrors, KiloCloudSessionsResponses, KilocodeAgentManagerListErrors, KilocodeAgentManagerListResponses, KilocodeAgentManagerRejectErrors, KilocodeAgentManagerRejectResponses, KilocodeAgentManagerReplyErrors, KilocodeAgentManagerReplyResponses, KilocodeAgentRequirementsErrors, KilocodeAgentRequirementsResponses, KilocodeCommandFilesErrors, KilocodeCommandFilesResponses, KilocodeHeapSnapshotErrors, KilocodeHeapSnapshotResponses, KilocodeNotebookListErrors, KilocodeNotebookListResponses, KilocodeNotebookRejectErrors, KilocodeNotebookRejectResponses, KilocodeNotebookReplyErrors, KilocodeNotebookReplyResponses, KilocodeRemoveAgentErrors, KilocodeRemoveAgentResponses, KilocodeRemoveCommandErrors, KilocodeRemoveCommandResponses, KilocodeRemoveSkillErrors, KilocodeRemoveSkillResponses, KilocodeSessionImportMessageErrors, KilocodeSessionImportMessageResponses, KilocodeSessionImportPartErrors, KilocodeSessionImportPartResponses, KilocodeSessionImportProjectErrors, KilocodeSessionImportProjectResponses, KilocodeSessionImportSessionErrors, KilocodeSessionImportSessionResponses, KilocodeSessionModelUsageErrors, KilocodeSessionModelUsageResponses, KiloEditErrors, KiloEditResponses, KiloFimResponses, KiloModelsImagesErrors, KiloModelsImagesResponses, KiloModelsTranscriptionsErrors, KiloModelsTranscriptionsResponses, KiloModesErrors, KiloModesResponses, KiloNotificationsErrors, KiloNotificationsResponses, KiloOrganizationSetErrors, KiloOrganizationSetResponses, KiloProfileErrors, KiloProfileResponses, LocationRef, LspStatusErrors, LspStatusResponses, McpAddErrors, McpAddResponses, McpAuthAuthenticateErrors, McpAuthAuthenticateResponses, McpAuthCallbackErrors, McpAuthCallbackResponses, McpAuthRemoveErrors, McpAuthRemoveResponses, McpAuthStartErrors, McpAuthStartResponses, McpConnectErrors, McpConnectResponses, McpDisconnectErrors, McpDisconnectResponses, McpLocalConfig, 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, 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, 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, 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, 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, GlobalEventResponses, GlobalHealthErrors, GlobalHealthResponses, GlobalUpgradeErrors, GlobalUpgradeResponses, IndexingConsentErrors, IndexingConsentResponses, IndexingModelsErrors, IndexingModelsResponses, IndexingStatusErrors, IndexingStatusResponses, IndexingWarningsErrors, IndexingWarningsResponses, InstanceDisposeErrors, InstanceDisposeResponses, InstanceReloadErrors, InstanceReloadResponses, InteractiveTerminalCloseErrors, InteractiveTerminalCloseResponses, InteractiveTerminalGetErrors, InteractiveTerminalGetResponses, InteractiveTerminalListErrors, InteractiveTerminalListResponses, InteractiveTerminalResizeErrors, InteractiveTerminalResizeInput, InteractiveTerminalResizeResponses, InteractiveTerminalWriteErrors, InteractiveTerminalWriteInput, InteractiveTerminalWriteResponses, KiloAudioTranscriptionsErrors, KiloAudioTranscriptionsResponses, KiloAuthStatusErrors, KiloAuthStatusResponses, KiloClawChatCredentialsErrors, KiloClawChatCredentialsResponses, KiloClawStatusErrors, KiloClawStatusResponses, KiloCloudSessionGetErrors, KiloCloudSessionGetResponses, KiloCloudSessionImportErrors, KiloCloudSessionImportResponses, KiloCloudSessionsErrors, KiloCloudSessionsResponses, KilocodeAgentManagerListErrors, KilocodeAgentManagerListResponses, KilocodeAgentManagerRejectErrors, KilocodeAgentManagerRejectResponses, KilocodeAgentManagerReplyErrors, KilocodeAgentManagerReplyResponses, KilocodeBackgroundJobCancelErrors, KilocodeBackgroundJobCancelResponses, KilocodeBackgroundJobPromoteErrors, KilocodeBackgroundJobPromoteResponses, KilocodeBackgroundJobsErrors, KilocodeBackgroundJobsResponses, KilocodeCommandFilesErrors, KilocodeCommandFilesResponses, KilocodeHeapSnapshotErrors, KilocodeHeapSnapshotResponses, KilocodeNotebookListErrors, KilocodeNotebookListResponses, KilocodeNotebookRejectErrors, KilocodeNotebookRejectResponses, KilocodeNotebookReplyErrors, KilocodeNotebookReplyResponses, KilocodeProviderUsageGetErrors, KilocodeProviderUsageGetResponses, KilocodeProviderUsageRefreshErrors, KilocodeProviderUsageRefreshResponses, KilocodeRemoveAgentErrors, KilocodeRemoveAgentResponses, KilocodeRemoveCommandErrors, KilocodeRemoveCommandResponses, KilocodeRemoveSkillErrors, KilocodeRemoveSkillResponses, KilocodeSessionImportMessageErrors, KilocodeSessionImportMessageResponses, KilocodeSessionImportPartErrors, KilocodeSessionImportPartResponses, KilocodeSessionImportProjectErrors, KilocodeSessionImportProjectResponses, KilocodeSessionImportSessionErrors, KilocodeSessionImportSessionResponses, KilocodeSessionModelUsageErrors, KilocodeSessionModelUsageResponses, KiloEditErrors, KiloEditResponses, KiloFimResponses, KiloModelsImagesErrors, KiloModelsImagesResponses, KiloModelsTranscriptionsErrors, KiloModelsTranscriptionsResponses, KiloModesErrors, KiloModesResponses, KiloNotificationsErrors, KiloNotificationsResponses, KiloOrganizationSetErrors, KiloOrganizationSetResponses, KiloProfileErrors, KiloProfileResponses, LocationRef, LspStatusErrors, LspStatusResponses, McpAddErrors, McpAddResponses, McpAuthAuthenticateErrors, McpAuthAuthenticateResponses, McpAuthCallbackErrors, McpAuthCallbackResponses, 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, 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, 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> = Options2<TData, ThrowOnError> & {
4
4
  /**
5
5
  * You can provide a client instance returned by `createClient()` instead of
@@ -823,6 +823,31 @@ export declare class Mcp extends HeyApiClient {
823
823
  directory?: string;
824
824
  workspace?: string;
825
825
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<McpDisconnectResponses, McpDisconnectErrors, ThrowOnError, "fields">;
826
+ /**
827
+ * Read MCP resource
828
+ *
829
+ * Read a resource from a connected MCP server by URI. Used by MCP Apps to load UI resources.
830
+ */
831
+ readResource<ThrowOnError extends boolean = false>(parameters?: {
832
+ directory?: string;
833
+ workspace?: string;
834
+ uri?: string;
835
+ server?: string;
836
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<McpReadResourceResponses, McpReadResourceErrors, ThrowOnError, "fields">;
837
+ /**
838
+ * Call MCP tool
839
+ *
840
+ * Call a tool on a connected MCP server. Used by MCP Apps for widget-initiated tool calls.
841
+ */
842
+ callTool<ThrowOnError extends boolean = false>(parameters?: {
843
+ directory?: string;
844
+ workspace?: string;
845
+ server?: string;
846
+ name?: string;
847
+ arguments?: {
848
+ [key: string]: unknown;
849
+ };
850
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<McpCallToolResponses, McpCallToolErrors, ThrowOnError, "fields">;
826
851
  private _auth?;
827
852
  get auth(): Auth2;
828
853
  }
@@ -2207,6 +2232,26 @@ export declare class Heap extends HeyApiClient {
2207
2232
  workspace?: string;
2208
2233
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<KilocodeHeapSnapshotResponses, KilocodeHeapSnapshotErrors, ThrowOnError, "fields">;
2209
2234
  }
2235
+ export declare class ProviderUsage extends HeyApiClient {
2236
+ /**
2237
+ * Get provider usage
2238
+ *
2239
+ * Get cache-aware, secret-free provider plan usage and personal billing status.
2240
+ */
2241
+ get<ThrowOnError extends boolean = false>(parameters?: {
2242
+ directory?: string;
2243
+ workspace?: string;
2244
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<KilocodeProviderUsageGetResponses, KilocodeProviderUsageGetErrors, ThrowOnError, "fields">;
2245
+ /**
2246
+ * Refresh provider usage
2247
+ *
2248
+ * Refresh provider plan usage while coalescing concurrent source requests.
2249
+ */
2250
+ refresh<ThrowOnError extends boolean = false>(parameters?: {
2251
+ directory?: string;
2252
+ workspace?: string;
2253
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<KilocodeProviderUsageRefreshResponses, KilocodeProviderUsageRefreshErrors, ThrowOnError, "fields">;
2254
+ }
2210
2255
  export declare class Notebook extends HeyApiClient {
2211
2256
  /**
2212
2257
  * List pending notebook requests
@@ -2273,6 +2318,28 @@ export declare class AgentManager extends HeyApiClient {
2273
2318
  error?: AgentManagerFailure;
2274
2319
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<KilocodeAgentManagerRejectResponses, KilocodeAgentManagerRejectErrors, ThrowOnError, "fields">;
2275
2320
  }
2321
+ export declare class BackgroundJob extends HeyApiClient {
2322
+ /**
2323
+ * Cancel background job
2324
+ *
2325
+ * Cancel one background subagent job and its session tree.
2326
+ */
2327
+ cancel<ThrowOnError extends boolean = false>(parameters: {
2328
+ jobID: string;
2329
+ directory?: string;
2330
+ workspace?: string;
2331
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<KilocodeBackgroundJobCancelResponses, KilocodeBackgroundJobCancelErrors, ThrowOnError, "fields">;
2332
+ /**
2333
+ * Promote background job
2334
+ *
2335
+ * Continue one foreground subagent in the background.
2336
+ */
2337
+ promote<ThrowOnError extends boolean = false>(parameters: {
2338
+ jobID: string;
2339
+ directory?: string;
2340
+ workspace?: string;
2341
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<KilocodeBackgroundJobPromoteResponses, KilocodeBackgroundJobPromoteErrors, ThrowOnError, "fields">;
2342
+ }
2276
2343
  export declare class SessionImport extends HeyApiClient {
2277
2344
  /**
2278
2345
  * Insert project for session import
@@ -2485,16 +2552,6 @@ export declare class SessionImport extends HeyApiClient {
2485
2552
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<KilocodeSessionImportPartResponses, KilocodeSessionImportPartErrors, ThrowOnError, "fields">;
2486
2553
  }
2487
2554
  export declare class Kilocode extends HeyApiClient {
2488
- /**
2489
- * Check agent requirements
2490
- *
2491
- * Check whether the selected agent's requirements are available in the request directory.
2492
- */
2493
- agentRequirements<ThrowOnError extends boolean = false>(parameters: {
2494
- directory?: string;
2495
- workspace?: string;
2496
- agent: string;
2497
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<KilocodeAgentRequirementsResponses, KilocodeAgentRequirementsErrors, ThrowOnError, "fields">;
2498
2555
  /**
2499
2556
  * List command files
2500
2557
  *
@@ -2527,12 +2584,13 @@ export declare class Kilocode extends HeyApiClient {
2527
2584
  /**
2528
2585
  * Remove a custom agent
2529
2586
  *
2530
- * Remove a custom (non-native) agent by deleting its markdown file from disk and refreshing state.
2587
+ * Remove a custom (non-native) agent from one writable configuration scope, or every writable scope when omitted, and dispose cached instance state.
2531
2588
  */
2532
2589
  removeAgent<ThrowOnError extends boolean = false>(parameters?: {
2533
2590
  directory?: string;
2534
2591
  workspace?: string;
2535
2592
  name?: string;
2593
+ scope?: "global" | "project";
2536
2594
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<KilocodeRemoveAgentResponses, KilocodeRemoveAgentErrors, ThrowOnError, "fields">;
2537
2595
  /**
2538
2596
  * Get session model usage
@@ -2544,12 +2602,26 @@ export declare class Kilocode extends HeyApiClient {
2544
2602
  directory?: string;
2545
2603
  workspace?: string;
2546
2604
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<KilocodeSessionModelUsageResponses, KilocodeSessionModelUsageErrors, ThrowOnError, "fields">;
2605
+ /**
2606
+ * List background jobs
2607
+ *
2608
+ * List background subagent jobs owned by one parent session.
2609
+ */
2610
+ backgroundJobs<ThrowOnError extends boolean = false>(parameters: {
2611
+ directory?: string;
2612
+ workspace?: string;
2613
+ sessionID: string;
2614
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<KilocodeBackgroundJobsResponses, KilocodeBackgroundJobsErrors, ThrowOnError, "fields">;
2547
2615
  private _heap?;
2548
2616
  get heap(): Heap;
2617
+ private _providerUsage?;
2618
+ get providerUsage(): ProviderUsage;
2549
2619
  private _notebook?;
2550
2620
  get notebook(): Notebook;
2551
2621
  private _agentManager?;
2552
2622
  get agentManager(): AgentManager;
2623
+ private _backgroundJob?;
2624
+ get backgroundJob(): BackgroundJob;
2553
2625
  private _sessionImport?;
2554
2626
  get sessionImport(): SessionImport;
2555
2627
  }
@@ -1696,6 +1696,61 @@ export class Mcp extends HeyApiClient {
1696
1696
  ...params,
1697
1697
  });
1698
1698
  }
1699
+ /**
1700
+ * Read MCP resource
1701
+ *
1702
+ * Read a resource from a connected MCP server by URI. Used by MCP Apps to load UI resources.
1703
+ */
1704
+ readResource(parameters, options) {
1705
+ const params = buildClientParams([parameters], [
1706
+ {
1707
+ args: [
1708
+ { in: "query", key: "directory" },
1709
+ { in: "query", key: "workspace" },
1710
+ { in: "body", key: "uri" },
1711
+ { in: "body", key: "server" },
1712
+ ],
1713
+ },
1714
+ ]);
1715
+ return (options?.client ?? this.client).post({
1716
+ url: "/experimental/resource/read",
1717
+ ...options,
1718
+ ...params,
1719
+ headers: {
1720
+ "Content-Type": "application/json",
1721
+ ...options?.headers,
1722
+ ...params.headers,
1723
+ },
1724
+ });
1725
+ }
1726
+ /**
1727
+ * Call MCP tool
1728
+ *
1729
+ * Call a tool on a connected MCP server. Used by MCP Apps for widget-initiated tool calls.
1730
+ */
1731
+ callTool(parameters, options) {
1732
+ const params = buildClientParams([parameters], [
1733
+ {
1734
+ args: [
1735
+ { in: "query", key: "directory" },
1736
+ { in: "query", key: "workspace" },
1737
+ { in: "body", key: "server" },
1738
+ { in: "body", key: "name" },
1739
+ { in: "body", key: "arguments" },
1740
+ ],
1741
+ },
1742
+ ]);
1743
+ return (options?.client ?? this.client).post({
1744
+ url: "/experimental/mcp/call-tool",
1745
+ ...options,
1746
+ ...params,
1747
+ headers: {
1748
+ "Content-Type": "application/json",
1749
+ ...options?.headers,
1750
+ ...params.headers,
1751
+ },
1752
+ });
1753
+ }
1699
1754
  _auth;
1700
1755
  get auth() {
1701
1756
  return (this._auth ??= new Auth2({ client: this.client }));
@@ -4440,6 +4495,48 @@ export class Heap extends HeyApiClient {
4440
4495
  });
4441
4496
  }
4442
4497
  }
4498
+ export class ProviderUsage extends HeyApiClient {
4499
+ /**
4500
+ * Get provider usage
4501
+ *
4502
+ * Get cache-aware, secret-free provider plan usage and personal billing status.
4503
+ */
4504
+ get(parameters, options) {
4505
+ const params = buildClientParams([parameters], [
4506
+ {
4507
+ args: [
4508
+ { in: "query", key: "directory" },
4509
+ { in: "query", key: "workspace" },
4510
+ ],
4511
+ },
4512
+ ]);
4513
+ return (options?.client ?? this.client).get({
4514
+ url: "/kilocode/provider-usage",
4515
+ ...options,
4516
+ ...params,
4517
+ });
4518
+ }
4519
+ /**
4520
+ * Refresh provider usage
4521
+ *
4522
+ * Refresh provider plan usage while coalescing concurrent source requests.
4523
+ */
4524
+ refresh(parameters, options) {
4525
+ const params = buildClientParams([parameters], [
4526
+ {
4527
+ args: [
4528
+ { in: "query", key: "directory" },
4529
+ { in: "query", key: "workspace" },
4530
+ ],
4531
+ },
4532
+ ]);
4533
+ return (options?.client ?? this.client).post({
4534
+ url: "/kilocode/provider-usage/refresh",
4535
+ ...options,
4536
+ ...params,
4537
+ });
4538
+ }
4539
+ }
4443
4540
  export class Notebook extends HeyApiClient {
4444
4541
  /**
4445
4542
  * List pending notebook requests
@@ -4592,6 +4689,50 @@ export class AgentManager extends HeyApiClient {
4592
4689
  });
4593
4690
  }
4594
4691
  }
4692
+ export class BackgroundJob extends HeyApiClient {
4693
+ /**
4694
+ * Cancel background job
4695
+ *
4696
+ * Cancel one background subagent job and its session tree.
4697
+ */
4698
+ cancel(parameters, options) {
4699
+ const params = buildClientParams([parameters], [
4700
+ {
4701
+ args: [
4702
+ { in: "path", key: "jobID" },
4703
+ { in: "query", key: "directory" },
4704
+ { in: "query", key: "workspace" },
4705
+ ],
4706
+ },
4707
+ ]);
4708
+ return (options?.client ?? this.client).post({
4709
+ url: "/kilocode/background-jobs/{jobID}/cancel",
4710
+ ...options,
4711
+ ...params,
4712
+ });
4713
+ }
4714
+ /**
4715
+ * Promote background job
4716
+ *
4717
+ * Continue one foreground subagent in the background.
4718
+ */
4719
+ promote(parameters, options) {
4720
+ const params = buildClientParams([parameters], [
4721
+ {
4722
+ args: [
4723
+ { in: "path", key: "jobID" },
4724
+ { in: "query", key: "directory" },
4725
+ { in: "query", key: "workspace" },
4726
+ ],
4727
+ },
4728
+ ]);
4729
+ return (options?.client ?? this.client).post({
4730
+ url: "/kilocode/background-jobs/{jobID}/promote",
4731
+ ...options,
4732
+ ...params,
4733
+ });
4734
+ }
4735
+ }
4595
4736
  export class SessionImport extends HeyApiClient {
4596
4737
  /**
4597
4738
  * Insert project for session import
@@ -4740,27 +4881,6 @@ export class SessionImport extends HeyApiClient {
4740
4881
  }
4741
4882
  }
4742
4883
  export class Kilocode extends HeyApiClient {
4743
- /**
4744
- * Check agent requirements
4745
- *
4746
- * Check whether the selected agent's requirements are available in the request directory.
4747
- */
4748
- agentRequirements(parameters, options) {
4749
- const params = buildClientParams([parameters], [
4750
- {
4751
- args: [
4752
- { in: "query", key: "directory" },
4753
- { in: "query", key: "workspace" },
4754
- { in: "query", key: "agent" },
4755
- ],
4756
- },
4757
- ]);
4758
- return (options?.client ?? this.client).get({
4759
- url: "/kilocode/agent/requirements",
4760
- ...options,
4761
- ...params,
4762
- });
4763
- }
4764
4884
  /**
4765
4885
  * List command files
4766
4886
  *
@@ -4836,7 +4956,7 @@ export class Kilocode extends HeyApiClient {
4836
4956
  /**
4837
4957
  * Remove a custom agent
4838
4958
  *
4839
- * Remove a custom (non-native) agent by deleting its markdown file from disk and refreshing state.
4959
+ * Remove a custom (non-native) agent from one writable configuration scope, or every writable scope when omitted, and dispose cached instance state.
4840
4960
  */
4841
4961
  removeAgent(parameters, options) {
4842
4962
  const params = buildClientParams([parameters], [
@@ -4845,6 +4965,7 @@ export class Kilocode extends HeyApiClient {
4845
4965
  { in: "query", key: "directory" },
4846
4966
  { in: "query", key: "workspace" },
4847
4967
  { in: "body", key: "name" },
4968
+ { in: "body", key: "scope" },
4848
4969
  ],
4849
4970
  },
4850
4971
  ]);
@@ -4880,10 +5001,35 @@ export class Kilocode extends HeyApiClient {
4880
5001
  ...params,
4881
5002
  });
4882
5003
  }
5004
+ /**
5005
+ * List background jobs
5006
+ *
5007
+ * List background subagent jobs owned by one parent session.
5008
+ */
5009
+ backgroundJobs(parameters, options) {
5010
+ const params = buildClientParams([parameters], [
5011
+ {
5012
+ args: [
5013
+ { in: "query", key: "directory" },
5014
+ { in: "query", key: "workspace" },
5015
+ { in: "query", key: "sessionID" },
5016
+ ],
5017
+ },
5018
+ ]);
5019
+ return (options?.client ?? this.client).get({
5020
+ url: "/kilocode/background-jobs",
5021
+ ...options,
5022
+ ...params,
5023
+ });
5024
+ }
4883
5025
  _heap;
4884
5026
  get heap() {
4885
5027
  return (this._heap ??= new Heap({ client: this.client }));
4886
5028
  }
5029
+ _providerUsage;
5030
+ get providerUsage() {
5031
+ return (this._providerUsage ??= new ProviderUsage({ client: this.client }));
5032
+ }
4887
5033
  _notebook;
4888
5034
  get notebook() {
4889
5035
  return (this._notebook ??= new Notebook({ client: this.client }));
@@ -4892,6 +5038,10 @@ export class Kilocode extends HeyApiClient {
4892
5038
  get agentManager() {
4893
5039
  return (this._agentManager ??= new AgentManager({ client: this.client }));
4894
5040
  }
5041
+ _backgroundJob;
5042
+ get backgroundJob() {
5043
+ return (this._backgroundJob ??= new BackgroundJob({ client: this.client }));
5044
+ }
4895
5045
  _sessionImport;
4896
5046
  get sessionImport() {
4897
5047
  return (this._sessionImport ??= new SessionImport({ 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 | EventCommandExecuted1 | EventProjectUpdated1 | EventSessionStatus1 | EventSessionIdle1 | EventQuestionAsked1 | EventQuestionReplied1 | EventQuestionRejected1 | EventSessionCompacted1 | EventVcsBranchUpdated1 | EventWorkspaceReady1 | EventWorkspaceFailed1 | EventWorkspaceStatus1 | EventWorktreeReady1 | EventWorktreeFailed1 | EventWorktreeSetupReady1 | EventServerConnected1 | EventGlobalDisposed1 | EventGlobalConfigUpdated1 | EventServerInstanceDisposed | EventSessionTurnOpen | EventSessionTurnClose | EventSessionQueueChanged | EventSessionNetworkAsked | EventSessionNetworkReplied | EventSessionNetworkRejected | EventSessionNetworkRestored | EventBackgroundProcessUpdated | EventBackgroundProcessDeleted | EventInteractiveTerminalUpdated | EventInteractiveTerminalData | EventInteractiveTerminalDeleted | EventSandboxStatusChanged | EventLspClientDiagnostics | EventSuggestionShown | EventSuggestionAccepted | EventSuggestionDismissed | EventKilocodeAgentManagerStart | EventKilocodeAgentManagerRequested | EventKilocodeAgentManagerCancelled | EventKilocodeNotebookRequested | EventKilocodeNotebookCancelled | EventKiloSessionsRemoteStatusChanged | 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 | EventCommandExecuted | EventProjectUpdated | EventSessionStatus | EventSessionIdle | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionCompacted | EventVcsBranchUpdated | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceStatus | EventWorktreeReady | EventWorktreeFailed | EventWorktreeSetupReady | EventServerConnected | EventGlobalDisposed | EventGlobalConfigUpdated;
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 | EventCommandExecuted1 | EventProjectUpdated1 | EventSessionStatus1 | EventSessionIdle1 | EventQuestionAsked1 | EventQuestionReplied1 | EventQuestionRejected1 | EventSessionCompacted1 | EventVcsBranchUpdated1 | EventWorkspaceReady1 | EventWorkspaceFailed1 | EventWorkspaceStatus1 | EventWorktreeReady1 | EventWorktreeFailed1 | EventWorktreeSetupReady1 | EventServerConnected1 | EventGlobalDisposed1 | EventGlobalConfigUpdated1 | EventServerInstanceDisposed | EventSessionTurnOpen | EventSessionTurnClose | EventSessionQueueChanged | EventSessionNetworkAsked | EventSessionNetworkReplied | EventSessionNetworkRejected | EventSessionNetworkRestored | EventBackgroundProcessUpdated | EventBackgroundProcessDeleted | EventInteractiveTerminalUpdated | EventInteractiveTerminalData | EventInteractiveTerminalDeleted | 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 | EventCommandExecuted | EventProjectUpdated | EventSessionStatus | EventSessionIdle | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionCompacted | EventVcsBranchUpdated | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceStatus | EventWorktreeReady | EventWorktreeFailed | EventWorktreeSetupReady | EventServerConnected | EventGlobalDisposed | EventGlobalConfigUpdated;
5
5
  export type QuestionReplied = {
6
6
  sessionID: string;
7
7
  requestID: string;
@@ -149,7 +149,16 @@ export type AgentManagerMoveRequest = {
149
149
  targetSessionID: string;
150
150
  sectionID: string | null;
151
151
  };
152
- export type AgentManagerRequest = AgentManagerOverviewRequest | AgentManagerPromptRequest | AgentManagerStopRequest | AgentManagerMoveRequest;
152
+ export type AgentManagerAnswers = Array<Array<string>>;
153
+ export type AgentManagerAnswerRequest = {
154
+ id: AgentManagerRequestId;
155
+ sessionID: string;
156
+ operation: "answer";
157
+ targetSessionID: string;
158
+ questionID?: string;
159
+ answers: AgentManagerAnswers;
160
+ };
161
+ export type AgentManagerRequest = AgentManagerOverviewRequest | AgentManagerPromptRequest | AgentManagerStopRequest | AgentManagerMoveRequest | AgentManagerAnswerRequest;
153
162
  export type NotebookRequestId = string;
154
163
  export type NotebookReadRequest = {
155
164
  id: NotebookRequestId;
@@ -793,7 +802,7 @@ export type GlobalEvent = {
793
802
  directory: string;
794
803
  project?: string;
795
804
  workspace?: string;
796
- payload: EventServerInstanceDisposed | EventSessionTurnOpen | EventSessionTurnClose | EventSessionQueueChanged | EventSessionNetworkAsked | EventSessionNetworkReplied | EventSessionNetworkRejected | EventSessionNetworkRestored | EventBackgroundProcessUpdated | EventBackgroundProcessDeleted | EventInteractiveTerminalUpdated | EventInteractiveTerminalData | EventInteractiveTerminalDeleted | EventSandboxStatusChanged | EventLspClientDiagnostics | EventSuggestionShown | EventSuggestionAccepted | EventSuggestionDismissed | EventKilocodeAgentManagerStart | EventKilocodeAgentManagerRequested | EventKilocodeAgentManagerCancelled | EventKilocodeNotebookRequested | EventKilocodeNotebookCancelled | EventKiloSessionsRemoteStatusChanged | 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 | EventCommandExecuted | EventProjectUpdated | EventSessionStatus | EventSessionIdle | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionCompacted | EventVcsBranchUpdated | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceStatus | EventWorktreeReady | EventWorktreeFailed | EventWorktreeSetupReady | EventServerConnected | EventGlobalDisposed | EventGlobalConfigUpdated | {
805
+ payload: EventServerInstanceDisposed | EventSessionTurnOpen | EventSessionTurnClose | EventSessionQueueChanged | EventSessionNetworkAsked | EventSessionNetworkReplied | EventSessionNetworkRejected | EventSessionNetworkRestored | EventBackgroundProcessUpdated | EventBackgroundProcessDeleted | EventInteractiveTerminalUpdated | EventInteractiveTerminalData | EventInteractiveTerminalDeleted | 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 | EventCommandExecuted | EventProjectUpdated | EventSessionStatus | EventSessionIdle | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionCompacted | EventVcsBranchUpdated | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceStatus | EventWorktreeReady | EventWorktreeFailed | EventWorktreeSetupReady | EventServerConnected | EventGlobalDisposed | EventGlobalConfigUpdated | {
797
806
  id: string;
798
807
  type: "models-dev.refreshed";
799
808
  properties: {
@@ -1686,26 +1695,11 @@ export type AgentConfig = {
1686
1695
  steps?: number;
1687
1696
  maxSteps?: number;
1688
1697
  permission?: PermissionConfig;
1689
- requirements?: {
1690
- skills?: Array<string>;
1691
- mcps?: Array<string>;
1692
- vscode_extensions?: Array<{
1693
- name: string;
1694
- id: string;
1695
- }>;
1696
- };
1697
1698
  [key: string]: unknown | string | number | {
1698
1699
  [key: string]: boolean;
1699
1700
  } | boolean | "subagent" | "primary" | "all" | {
1700
1701
  [key: string]: unknown;
1701
- } | string | "primary" | "secondary" | "accent" | "success" | "warning" | "error" | "info" | number | PermissionConfig | {
1702
- skills?: Array<string>;
1703
- mcps?: Array<string>;
1704
- vscode_extensions?: Array<{
1705
- name: string;
1706
- id: string;
1707
- }>;
1708
- } | undefined;
1702
+ } | string | "primary" | "secondary" | "accent" | "success" | "warning" | "error" | "info" | number | PermissionConfig | undefined;
1709
1703
  };
1710
1704
  export type ProviderConfig = {
1711
1705
  api?: string;
@@ -1738,7 +1732,7 @@ export type ProviderConfig = {
1738
1732
  family?: string;
1739
1733
  prompt?: "codex" | "gemini" | "beast" | "anthropic" | "trinity" | "anthropic_without_todo" | "ling" | "gpt55";
1740
1734
  isFree?: boolean;
1741
- ai_sdk_provider?: "alibaba" | "anthropic" | "mistral" | "openai" | "openai-compatible" | "openrouter";
1735
+ ai_sdk_provider?: "anthropic" | "openai" | "openai-compatible" | "openrouter";
1742
1736
  release_date?: string;
1743
1737
  attachment?: boolean;
1744
1738
  reasoning?: boolean;
@@ -1898,6 +1892,7 @@ export type Config = {
1898
1892
  };
1899
1893
  terminal_command_display?: "expanded" | "collapsed";
1900
1894
  code_edit_display?: "expanded" | "collapsed";
1895
+ mcp_tool_display?: "expanded" | "collapsed";
1901
1896
  hide_prompt_training_models?: boolean;
1902
1897
  privacy_mode?: boolean;
1903
1898
  /**
@@ -2023,7 +2018,6 @@ export type Config = {
2023
2018
  batch_tool?: boolean;
2024
2019
  image_generation?: boolean;
2025
2020
  image_generation_model?: string;
2026
- agent_requirements?: boolean;
2027
2021
  native_notebook_tools?: boolean;
2028
2022
  speech_to_text_model?: string;
2029
2023
  openTelemetry?: boolean;
@@ -2032,8 +2026,6 @@ export type Config = {
2032
2026
  sandbox?: boolean;
2033
2027
  sandbox_restrict_network?: boolean;
2034
2028
  sandbox_writable_paths?: Array<string>;
2035
- swe_pruner?: boolean;
2036
- swe_pruner_model?: string;
2037
2029
  mcp_timeout?: number;
2038
2030
  policies?: Array<ConfigV2ExperimentalPolicy>;
2039
2031
  };
@@ -2129,7 +2121,7 @@ export type Model = {
2129
2121
  autoRouting?: {
2130
2122
  models: Array<string>;
2131
2123
  };
2132
- ai_sdk_provider?: "alibaba" | "anthropic" | "mistral" | "openai" | "openai-compatible" | "openrouter";
2124
+ ai_sdk_provider?: "anthropic" | "openai" | "openai-compatible" | "openrouter";
2133
2125
  };
2134
2126
  export type Provider = {
2135
2127
  id: string;
@@ -2389,14 +2381,6 @@ export type Agent = {
2389
2381
  options: {
2390
2382
  [key: string]: unknown;
2391
2383
  };
2392
- requirements?: {
2393
- skills?: Array<string>;
2394
- mcps?: Array<string>;
2395
- vscode_extensions?: Array<{
2396
- name: string;
2397
- id: string;
2398
- }>;
2399
- };
2400
2384
  steps?: number;
2401
2385
  };
2402
2386
  export type LspStatus = {
@@ -3348,30 +3332,6 @@ export type EffectHttpApiErrorServiceUnavailable = {
3348
3332
  export type CloudSessionImportError = {
3349
3333
  error: string;
3350
3334
  };
3351
- export type AgentRequirementResult = {
3352
- agent: string;
3353
- directory: string;
3354
- enabled: boolean;
3355
- state: "disabled" | "ready" | "blocked" | "error";
3356
- skills: Array<{
3357
- name: string;
3358
- status: "ready" | "missing" | "error";
3359
- message?: string;
3360
- }>;
3361
- mcps: Array<{
3362
- name: string;
3363
- status: "ready" | "missing" | "error";
3364
- message?: string;
3365
- }>;
3366
- vscode_extensions: Array<{
3367
- name: string;
3368
- id: string;
3369
- }>;
3370
- error?: {
3371
- code: "unknown_agent" | "malformed_declaration" | "discovery_failed" | "mcp_status_failed";
3372
- message: string;
3373
- };
3374
- };
3375
3335
  export type CommandFile = {
3376
3336
  name: string;
3377
3337
  description?: string;
@@ -3386,6 +3346,47 @@ export type CommandFile = {
3386
3346
  subtask?: boolean;
3387
3347
  hints: Array<string>;
3388
3348
  };
3349
+ export type ProviderUsagePeriod = {
3350
+ unit: "hour" | "day" | "week" | "month";
3351
+ value: number;
3352
+ };
3353
+ export type ProviderUsageWindow = {
3354
+ id: string;
3355
+ resource: string;
3356
+ unit: string;
3357
+ orientation: "used_percent" | "remaining_percent" | "amount" | "count";
3358
+ used?: number;
3359
+ remaining?: number;
3360
+ limit?: number;
3361
+ period?: ProviderUsagePeriod;
3362
+ durationMs?: number;
3363
+ resetAt?: string;
3364
+ state: "active" | "exhausted" | "unlimited" | "not_in_plan" | "unknown";
3365
+ };
3366
+ export type ProviderUsageError = {
3367
+ code: string;
3368
+ message: string;
3369
+ retryable: boolean;
3370
+ };
3371
+ export type ProviderUsageSnapshot = {
3372
+ id: string;
3373
+ providerID: string;
3374
+ sourceKind: "kilo_managed" | "direct";
3375
+ providerLabel: string;
3376
+ planLabel: string;
3377
+ sourceLabel: string;
3378
+ fetchState: "ready" | "stale" | "unavailable" | "error";
3379
+ planState: "active" | "past_due" | "canceling" | "unknown";
3380
+ routingState: "active" | "disabled" | "missing" | "replaced" | "not_applicable" | "unknown";
3381
+ fetchedAt?: string;
3382
+ managementUrl?: string;
3383
+ windows: Array<ProviderUsageWindow>;
3384
+ error?: ProviderUsageError;
3385
+ };
3386
+ export type ProviderUsage = {
3387
+ items: Array<ProviderUsageSnapshot>;
3388
+ generatedAt: string;
3389
+ };
3389
3390
  export type NotebookOutput = {
3390
3391
  mime: string;
3391
3392
  text?: string;
@@ -3532,7 +3533,13 @@ export type AgentManagerMoveResult = {
3532
3533
  sectionID: string | null;
3533
3534
  moved: true;
3534
3535
  };
3535
- export type AgentManagerResult = AgentManagerOverviewResult | AgentManagerPromptResult | AgentManagerStopResult | AgentManagerMoveResult;
3536
+ export type AgentManagerAnswerResult = {
3537
+ operation: "answer";
3538
+ sessionID: string;
3539
+ questionID: string;
3540
+ resolved: true;
3541
+ };
3542
+ export type AgentManagerResult = AgentManagerOverviewResult | AgentManagerPromptResult | AgentManagerStopResult | AgentManagerMoveResult | AgentManagerAnswerResult;
3536
3543
  export type AgentManagerFailure = {
3537
3544
  code: "cancelled" | "cross_workspace" | "disconnected" | "host_error" | "stale_session" | "timeout" | "unavailable_session" | "unknown_section" | "unknown_session" | "workspace_unavailable";
3538
3545
  message: string;
@@ -3886,14 +3893,6 @@ export type EventSandboxStatusChanged = {
3886
3893
  version: number;
3887
3894
  };
3888
3895
  };
3889
- export type EventLspClientDiagnostics = {
3890
- id: string;
3891
- type: "lsp.client.diagnostics";
3892
- properties: {
3893
- serverID: string;
3894
- path: string;
3895
- };
3896
- };
3897
3896
  export type EventSuggestionShown = {
3898
3897
  id: string;
3899
3898
  type: "suggestion.shown";
@@ -3984,6 +3983,14 @@ export type EventKiloSessionsRemoteStatusChanged = {
3984
3983
  connected: boolean;
3985
3984
  };
3986
3985
  };
3986
+ export type EventLspClientDiagnostics = {
3987
+ id: string;
3988
+ type: "lsp.client.diagnostics";
3989
+ properties: {
3990
+ serverID: string;
3991
+ path: string;
3992
+ };
3993
+ };
3987
3994
  export type EventMemoryStatus = {
3988
3995
  id: string;
3989
3996
  type: "memory.status";
@@ -10298,6 +10305,80 @@ export type McpDisconnectResponses = {
10298
10305
  200: boolean;
10299
10306
  };
10300
10307
  export type McpDisconnectResponse = McpDisconnectResponses[keyof McpDisconnectResponses];
10308
+ export type McpReadResourceData = {
10309
+ body?: {
10310
+ uri: string;
10311
+ server: string;
10312
+ };
10313
+ path?: never;
10314
+ query?: {
10315
+ directory?: string;
10316
+ workspace?: string;
10317
+ };
10318
+ url: "/experimental/resource/read";
10319
+ };
10320
+ export type McpReadResourceErrors = {
10321
+ /**
10322
+ * BadRequest | InvalidRequestError
10323
+ */
10324
+ 400: EffectHttpApiErrorBadRequest | InvalidRequestError;
10325
+ /**
10326
+ * Not found
10327
+ */
10328
+ 404: NotFoundError;
10329
+ };
10330
+ export type McpReadResourceError = McpReadResourceErrors[keyof McpReadResourceErrors];
10331
+ export type McpReadResourceResponses = {
10332
+ /**
10333
+ * Resource content
10334
+ */
10335
+ 200: {
10336
+ uri: string;
10337
+ mimeType?: string;
10338
+ text?: string;
10339
+ blob?: string;
10340
+ };
10341
+ };
10342
+ export type McpReadResourceResponse = McpReadResourceResponses[keyof McpReadResourceResponses];
10343
+ export type McpCallToolData = {
10344
+ body?: {
10345
+ server: string;
10346
+ name: string;
10347
+ arguments?: {
10348
+ [key: string]: unknown;
10349
+ };
10350
+ };
10351
+ path?: never;
10352
+ query?: {
10353
+ directory?: string;
10354
+ workspace?: string;
10355
+ };
10356
+ url: "/experimental/mcp/call-tool";
10357
+ };
10358
+ export type McpCallToolErrors = {
10359
+ /**
10360
+ * BadRequest | InvalidRequestError
10361
+ */
10362
+ 400: EffectHttpApiErrorBadRequest | InvalidRequestError;
10363
+ /**
10364
+ * Not found
10365
+ */
10366
+ 404: NotFoundError;
10367
+ };
10368
+ export type McpCallToolError = McpCallToolErrors[keyof McpCallToolErrors];
10369
+ export type McpCallToolResponses = {
10370
+ /**
10371
+ * Tool call result
10372
+ */
10373
+ 200: {
10374
+ content: Array<unknown>;
10375
+ isError?: boolean;
10376
+ structuredContent?: {
10377
+ [key: string]: unknown;
10378
+ };
10379
+ };
10380
+ };
10381
+ export type McpCallToolResponse = McpCallToolResponses[keyof McpCallToolResponses];
10301
10382
  export type ProjectListData = {
10302
10383
  body?: never;
10303
10384
  path?: never;
@@ -14054,30 +14135,6 @@ export type KilocodeHeapSnapshotResponses = {
14054
14135
  200: string;
14055
14136
  };
14056
14137
  export type KilocodeHeapSnapshotResponse = KilocodeHeapSnapshotResponses[keyof KilocodeHeapSnapshotResponses];
14057
- export type KilocodeAgentRequirementsData = {
14058
- body?: never;
14059
- path?: never;
14060
- query: {
14061
- directory?: string;
14062
- workspace?: string;
14063
- agent: string;
14064
- };
14065
- url: "/kilocode/agent/requirements";
14066
- };
14067
- export type KilocodeAgentRequirementsErrors = {
14068
- /**
14069
- * Bad request
14070
- */
14071
- 400: BadRequestError;
14072
- };
14073
- export type KilocodeAgentRequirementsError = KilocodeAgentRequirementsErrors[keyof KilocodeAgentRequirementsErrors];
14074
- export type KilocodeAgentRequirementsResponses = {
14075
- /**
14076
- * Agent requirement status
14077
- */
14078
- 200: AgentRequirementResult;
14079
- };
14080
- export type KilocodeAgentRequirementsResponse = KilocodeAgentRequirementsResponses[keyof KilocodeAgentRequirementsResponses];
14081
14138
  export type KilocodeCommandFilesData = {
14082
14139
  body?: never;
14083
14140
  path?: never;
@@ -14154,6 +14211,7 @@ export type KilocodeRemoveSkillResponse = KilocodeRemoveSkillResponses[keyof Kil
14154
14211
  export type KilocodeRemoveAgentData = {
14155
14212
  body?: {
14156
14213
  name: string;
14214
+ scope?: "global" | "project";
14157
14215
  };
14158
14216
  path?: never;
14159
14217
  query?: {
@@ -14176,6 +14234,60 @@ export type KilocodeRemoveAgentResponses = {
14176
14234
  200: boolean;
14177
14235
  };
14178
14236
  export type KilocodeRemoveAgentResponse = KilocodeRemoveAgentResponses[keyof KilocodeRemoveAgentResponses];
14237
+ export type KilocodeProviderUsageGetData = {
14238
+ body?: never;
14239
+ path?: never;
14240
+ query?: {
14241
+ directory?: string;
14242
+ workspace?: string;
14243
+ };
14244
+ url: "/kilocode/provider-usage";
14245
+ };
14246
+ export type KilocodeProviderUsageGetErrors = {
14247
+ /**
14248
+ * Bad request
14249
+ */
14250
+ 400: BadRequestError;
14251
+ /**
14252
+ * ServiceUnavailable
14253
+ */
14254
+ 503: EffectHttpApiErrorServiceUnavailable;
14255
+ };
14256
+ export type KilocodeProviderUsageGetError = KilocodeProviderUsageGetErrors[keyof KilocodeProviderUsageGetErrors];
14257
+ export type KilocodeProviderUsageGetResponses = {
14258
+ /**
14259
+ * Current provider usage
14260
+ */
14261
+ 200: ProviderUsage;
14262
+ };
14263
+ export type KilocodeProviderUsageGetResponse = KilocodeProviderUsageGetResponses[keyof KilocodeProviderUsageGetResponses];
14264
+ export type KilocodeProviderUsageRefreshData = {
14265
+ body?: never;
14266
+ path?: never;
14267
+ query?: {
14268
+ directory?: string;
14269
+ workspace?: string;
14270
+ };
14271
+ url: "/kilocode/provider-usage/refresh";
14272
+ };
14273
+ export type KilocodeProviderUsageRefreshErrors = {
14274
+ /**
14275
+ * Bad request
14276
+ */
14277
+ 400: BadRequestError;
14278
+ /**
14279
+ * ServiceUnavailable
14280
+ */
14281
+ 503: EffectHttpApiErrorServiceUnavailable;
14282
+ };
14283
+ export type KilocodeProviderUsageRefreshError = KilocodeProviderUsageRefreshErrors[keyof KilocodeProviderUsageRefreshErrors];
14284
+ export type KilocodeProviderUsageRefreshResponses = {
14285
+ /**
14286
+ * Refreshed provider usage
14287
+ */
14288
+ 200: ProviderUsage;
14289
+ };
14290
+ export type KilocodeProviderUsageRefreshResponse = KilocodeProviderUsageRefreshResponses[keyof KilocodeProviderUsageRefreshResponses];
14179
14291
  export type KilocodeNotebookListData = {
14180
14292
  body?: never;
14181
14293
  path?: never;
@@ -14405,6 +14517,99 @@ export type KilocodeSessionModelUsageResponses = {
14405
14517
  };
14406
14518
  };
14407
14519
  export type KilocodeSessionModelUsageResponse = KilocodeSessionModelUsageResponses[keyof KilocodeSessionModelUsageResponses];
14520
+ export type KilocodeBackgroundJobsData = {
14521
+ body?: never;
14522
+ path?: never;
14523
+ query: {
14524
+ directory?: string;
14525
+ workspace?: string;
14526
+ sessionID: string;
14527
+ };
14528
+ url: "/kilocode/background-jobs";
14529
+ };
14530
+ export type KilocodeBackgroundJobsErrors = {
14531
+ /**
14532
+ * Bad request
14533
+ */
14534
+ 400: BadRequestError;
14535
+ };
14536
+ export type KilocodeBackgroundJobsError = KilocodeBackgroundJobsErrors[keyof KilocodeBackgroundJobsErrors];
14537
+ export type KilocodeBackgroundJobsResponses = {
14538
+ /**
14539
+ * Background jobs
14540
+ */
14541
+ 200: Array<{
14542
+ id: string;
14543
+ type: string;
14544
+ title?: string;
14545
+ status: "running" | "completed" | "error" | "cancelled";
14546
+ started_at: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
14547
+ completed_at?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
14548
+ error?: string;
14549
+ metadata?: {
14550
+ [key: string]: unknown;
14551
+ };
14552
+ }>;
14553
+ };
14554
+ export type KilocodeBackgroundJobsResponse = KilocodeBackgroundJobsResponses[keyof KilocodeBackgroundJobsResponses];
14555
+ export type KilocodeBackgroundJobCancelData = {
14556
+ body?: never;
14557
+ path: {
14558
+ jobID: string;
14559
+ };
14560
+ query?: {
14561
+ directory?: string;
14562
+ workspace?: string;
14563
+ };
14564
+ url: "/kilocode/background-jobs/{jobID}/cancel";
14565
+ };
14566
+ export type KilocodeBackgroundJobCancelErrors = {
14567
+ /**
14568
+ * Bad request
14569
+ */
14570
+ 400: BadRequestError;
14571
+ /**
14572
+ * Not found
14573
+ */
14574
+ 404: NotFoundError;
14575
+ };
14576
+ export type KilocodeBackgroundJobCancelError = KilocodeBackgroundJobCancelErrors[keyof KilocodeBackgroundJobCancelErrors];
14577
+ export type KilocodeBackgroundJobCancelResponses = {
14578
+ /**
14579
+ * Background job cancelled
14580
+ */
14581
+ 200: boolean;
14582
+ };
14583
+ export type KilocodeBackgroundJobCancelResponse = KilocodeBackgroundJobCancelResponses[keyof KilocodeBackgroundJobCancelResponses];
14584
+ export type KilocodeBackgroundJobPromoteData = {
14585
+ body?: never;
14586
+ path: {
14587
+ jobID: string;
14588
+ };
14589
+ query?: {
14590
+ directory?: string;
14591
+ workspace?: string;
14592
+ };
14593
+ url: "/kilocode/background-jobs/{jobID}/promote";
14594
+ };
14595
+ export type KilocodeBackgroundJobPromoteErrors = {
14596
+ /**
14597
+ * Bad request
14598
+ */
14599
+ 400: BadRequestError;
14600
+ /**
14601
+ * Not found
14602
+ */
14603
+ 404: NotFoundError;
14604
+ };
14605
+ export type KilocodeBackgroundJobPromoteError = KilocodeBackgroundJobPromoteErrors[keyof KilocodeBackgroundJobPromoteErrors];
14606
+ export type KilocodeBackgroundJobPromoteResponses = {
14607
+ /**
14608
+ * Background job promoted
14609
+ */
14610
+ 200: boolean;
14611
+ };
14612
+ export type KilocodeBackgroundJobPromoteResponse = KilocodeBackgroundJobPromoteResponses[keyof KilocodeBackgroundJobPromoteResponses];
14408
14613
  export type AnacondaDesktopStatusData = {
14409
14614
  body?: never;
14410
14615
  path?: never;
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.4.22",
4
+ "version": "7.5.0",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {