@kilocode/sdk 7.4.23 → 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.
- package/dist/v2/gen/sdk.gen.d.ts +82 -1
- package/dist/v2/gen/sdk.gen.js +170 -0
- package/dist/v2/gen/types.gen.d.ts +289 -12
- package/package.json +1 -1
package/dist/v2/gen/sdk.gen.d.ts
CHANGED
|
@@ -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, 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
|
|
@@ -2535,12 +2602,26 @@ export declare class Kilocode extends HeyApiClient {
|
|
|
2535
2602
|
directory?: string;
|
|
2536
2603
|
workspace?: string;
|
|
2537
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">;
|
|
2538
2615
|
private _heap?;
|
|
2539
2616
|
get heap(): Heap;
|
|
2617
|
+
private _providerUsage?;
|
|
2618
|
+
get providerUsage(): ProviderUsage;
|
|
2540
2619
|
private _notebook?;
|
|
2541
2620
|
get notebook(): Notebook;
|
|
2542
2621
|
private _agentManager?;
|
|
2543
2622
|
get agentManager(): AgentManager;
|
|
2623
|
+
private _backgroundJob?;
|
|
2624
|
+
get backgroundJob(): BackgroundJob;
|
|
2544
2625
|
private _sessionImport?;
|
|
2545
2626
|
get sessionImport(): SessionImport;
|
|
2546
2627
|
}
|
package/dist/v2/gen/sdk.gen.js
CHANGED
|
@@ -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
|
|
@@ -4860,10 +5001,35 @@ export class Kilocode extends HeyApiClient {
|
|
|
4860
5001
|
...params,
|
|
4861
5002
|
});
|
|
4862
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
|
+
}
|
|
4863
5025
|
_heap;
|
|
4864
5026
|
get heap() {
|
|
4865
5027
|
return (this._heap ??= new Heap({ client: this.client }));
|
|
4866
5028
|
}
|
|
5029
|
+
_providerUsage;
|
|
5030
|
+
get providerUsage() {
|
|
5031
|
+
return (this._providerUsage ??= new ProviderUsage({ client: this.client }));
|
|
5032
|
+
}
|
|
4867
5033
|
_notebook;
|
|
4868
5034
|
get notebook() {
|
|
4869
5035
|
return (this._notebook ??= new Notebook({ client: this.client }));
|
|
@@ -4872,6 +5038,10 @@ export class Kilocode extends HeyApiClient {
|
|
|
4872
5038
|
get agentManager() {
|
|
4873
5039
|
return (this._agentManager ??= new AgentManager({ client: this.client }));
|
|
4874
5040
|
}
|
|
5041
|
+
_backgroundJob;
|
|
5042
|
+
get backgroundJob() {
|
|
5043
|
+
return (this._backgroundJob ??= new BackgroundJob({ client: this.client }));
|
|
5044
|
+
}
|
|
4875
5045
|
_sessionImport;
|
|
4876
5046
|
get sessionImport() {
|
|
4877
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 |
|
|
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
|
|
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 |
|
|
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: {
|
|
@@ -3337,6 +3346,47 @@ export type CommandFile = {
|
|
|
3337
3346
|
subtask?: boolean;
|
|
3338
3347
|
hints: Array<string>;
|
|
3339
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
|
+
};
|
|
3340
3390
|
export type NotebookOutput = {
|
|
3341
3391
|
mime: string;
|
|
3342
3392
|
text?: string;
|
|
@@ -3483,7 +3533,13 @@ export type AgentManagerMoveResult = {
|
|
|
3483
3533
|
sectionID: string | null;
|
|
3484
3534
|
moved: true;
|
|
3485
3535
|
};
|
|
3486
|
-
export type
|
|
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;
|
|
3487
3543
|
export type AgentManagerFailure = {
|
|
3488
3544
|
code: "cancelled" | "cross_workspace" | "disconnected" | "host_error" | "stale_session" | "timeout" | "unavailable_session" | "unknown_section" | "unknown_session" | "workspace_unavailable";
|
|
3489
3545
|
message: string;
|
|
@@ -3837,14 +3893,6 @@ export type EventSandboxStatusChanged = {
|
|
|
3837
3893
|
version: number;
|
|
3838
3894
|
};
|
|
3839
3895
|
};
|
|
3840
|
-
export type EventLspClientDiagnostics = {
|
|
3841
|
-
id: string;
|
|
3842
|
-
type: "lsp.client.diagnostics";
|
|
3843
|
-
properties: {
|
|
3844
|
-
serverID: string;
|
|
3845
|
-
path: string;
|
|
3846
|
-
};
|
|
3847
|
-
};
|
|
3848
3896
|
export type EventSuggestionShown = {
|
|
3849
3897
|
id: string;
|
|
3850
3898
|
type: "suggestion.shown";
|
|
@@ -3935,6 +3983,14 @@ export type EventKiloSessionsRemoteStatusChanged = {
|
|
|
3935
3983
|
connected: boolean;
|
|
3936
3984
|
};
|
|
3937
3985
|
};
|
|
3986
|
+
export type EventLspClientDiagnostics = {
|
|
3987
|
+
id: string;
|
|
3988
|
+
type: "lsp.client.diagnostics";
|
|
3989
|
+
properties: {
|
|
3990
|
+
serverID: string;
|
|
3991
|
+
path: string;
|
|
3992
|
+
};
|
|
3993
|
+
};
|
|
3938
3994
|
export type EventMemoryStatus = {
|
|
3939
3995
|
id: string;
|
|
3940
3996
|
type: "memory.status";
|
|
@@ -10249,6 +10305,80 @@ export type McpDisconnectResponses = {
|
|
|
10249
10305
|
200: boolean;
|
|
10250
10306
|
};
|
|
10251
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];
|
|
10252
10382
|
export type ProjectListData = {
|
|
10253
10383
|
body?: never;
|
|
10254
10384
|
path?: never;
|
|
@@ -14104,6 +14234,60 @@ export type KilocodeRemoveAgentResponses = {
|
|
|
14104
14234
|
200: boolean;
|
|
14105
14235
|
};
|
|
14106
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];
|
|
14107
14291
|
export type KilocodeNotebookListData = {
|
|
14108
14292
|
body?: never;
|
|
14109
14293
|
path?: never;
|
|
@@ -14333,6 +14517,99 @@ export type KilocodeSessionModelUsageResponses = {
|
|
|
14333
14517
|
};
|
|
14334
14518
|
};
|
|
14335
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];
|
|
14336
14613
|
export type AnacondaDesktopStatusData = {
|
|
14337
14614
|
body?: never;
|
|
14338
14615
|
path?: never;
|