@kilocode/sdk 7.3.17 → 7.3.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { type Client, type Options as Options2, type TDataShape } from "./client/index.js";
2
- import type { AgentPartInput, AppAgentsResponses, AppLogErrors, AppLogResponses, AppSkillsResponses, Auth as Auth3, AuthRemoveErrors, AuthRemoveResponses, AuthSetErrors, AuthSetResponses, BackgroundProcessGetErrors, BackgroundProcessGetResponses, BackgroundProcessListResponses, BackgroundProcessLogsErrors, BackgroundProcessLogsResponses, BackgroundProcessRestartErrors, BackgroundProcessRestartResponses, BackgroundProcessStopErrors, BackgroundProcessStopResponses, BackgroundProcessStopSessionResponses, CommandListResponses, CommitMessageGenerateErrors, CommitMessageGenerateResponses, Config as Config3, ConfigGetResponses, ConfigProvidersResponses, ConfigUpdateErrors, ConfigUpdateResponses, ConfigWarningsResponses, EnhancePromptEnhanceErrors, EnhancePromptEnhanceResponses, EventSubscribeResponses, EventTuiCommandExecute2, EventTuiPromptAppend2, EventTuiSessionSelect2, EventTuiToastShow2, ExperimentalConsoleGetResponses, ExperimentalConsoleListOrgsResponses, ExperimentalConsoleSwitchOrgResponses, ExperimentalResourceListResponses, ExperimentalSessionListResponses, ExperimentalWorkspaceAdapterListResponses, ExperimentalWorkspaceCreateErrors, ExperimentalWorkspaceCreateResponses, ExperimentalWorkspaceListResponses, ExperimentalWorkspaceRemoveErrors, ExperimentalWorkspaceRemoveResponses, ExperimentalWorkspaceStatusResponses, ExperimentalWorkspaceWarpErrors, ExperimentalWorkspaceWarpResponses, FileListResponses, FilePartInput, FilePartSource, FileReadResponses, FileStatusResponses, FindFilesResponses, FindSymbolsResponses, FindTextResponses, FormatterStatusResponses, GlobalConfigGetResponses, GlobalConfigUpdateErrors, GlobalConfigUpdateResponses, GlobalDisposeResponses, GlobalEventResponses, GlobalHealthResponses, GlobalUpgradeErrors, GlobalUpgradeResponses, IndexingStatusResponses, InstanceDisposeResponses, KiloAudioTranscriptionsErrors, KiloAudioTranscriptionsResponses, KiloClawChatCredentialsResponses, KiloClawStatusErrors, KiloClawStatusResponses, KiloCloudSessionGetErrors, KiloCloudSessionGetResponses, KiloCloudSessionImportErrors, KiloCloudSessionImportResponses, KiloCloudSessionsErrors, KiloCloudSessionsResponses, KilocodeHeapSnapshotErrors, KilocodeHeapSnapshotResponses, KilocodeRemoveAgentErrors, KilocodeRemoveAgentResponses, KilocodeRemoveSkillErrors, KilocodeRemoveSkillResponses, KilocodeSessionImportMessageErrors, KilocodeSessionImportMessageResponses, KilocodeSessionImportPartErrors, KilocodeSessionImportPartResponses, KilocodeSessionImportProjectErrors, KilocodeSessionImportProjectResponses, KilocodeSessionImportSessionErrors, KilocodeSessionImportSessionResponses, KiloEditErrors, KiloEditResponses, KiloFimErrors, KiloFimResponses, KiloModesResponses, KiloNotificationsErrors, KiloNotificationsResponses, KiloOrganizationSetErrors, KiloOrganizationSetResponses, KiloProfileErrors, KiloProfileResponses, LspStatusResponses, McpAddErrors, McpAddResponses, McpAuthAuthenticateErrors, McpAuthAuthenticateResponses, McpAuthCallbackErrors, McpAuthCallbackResponses, McpAuthRemoveErrors, McpAuthRemoveResponses, McpAuthStartErrors, McpAuthStartResponses, McpConnectResponses, McpDisconnectResponses, McpLocalConfig, McpRemoteConfig, McpStatusResponses, NetworkListResponses, NetworkRejectErrors, NetworkRejectResponses, NetworkReplyErrors, NetworkReplyResponses, OutputFormat, Part as Part2, PartDeleteErrors, PartDeleteResponses, PartUpdateErrors, PartUpdateResponses, PathGetResponses, PermissionAllowEverythingErrors, PermissionAllowEverythingResponses, PermissionListResponses, PermissionReplyErrors, PermissionReplyResponses, PermissionRespondErrors, PermissionRespondResponses, PermissionRuleset, PermissionSaveAlwaysRulesErrors, PermissionSaveAlwaysRulesResponses, ProjectCurrentResponses, ProjectInitGitResponses, ProjectListResponses, ProjectUpdateErrors, ProjectUpdateResponses, Prompt, ProviderAuthResponses, ProviderListResponses, ProviderOauthAuthorizeErrors, ProviderOauthAuthorizeResponses, ProviderOauthCallbackErrors, ProviderOauthCallbackResponses, PtyConnectErrors, PtyConnectResponses, PtyConnectTokenErrors, PtyConnectTokenResponses, PtyCreateErrors, PtyCreateResponses, PtyGetErrors, PtyGetResponses, PtyListResponses, PtyRemoveErrors, PtyRemoveResponses, PtyShellsResponses, PtyUpdateErrors, PtyUpdateResponses, QuestionAnswer, QuestionListResponses, QuestionRejectErrors, QuestionRejectResponses, QuestionReplyErrors, QuestionReplyResponses, RemoteDisableResponses, RemoteEnableResponses, RemoteStatusResponses, SessionAbortErrors, SessionAbortResponses, SessionChildrenErrors, SessionChildrenResponses, SessionCommandErrors, SessionCommandResponses, SessionCreateErrors, SessionCreateResponses, SessionDeleteErrors, SessionDeleteMessageErrors, SessionDeleteMessageResponses, SessionDeleteResponses, SessionDelivery, SessionDiffResponses, SessionForkErrors, SessionForkResponses, SessionGetErrors, SessionGetResponses, SessionInitErrors, SessionInitResponses, 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, SessionViewedResponses, SubtaskPartInput, SuggestionAcceptErrors, SuggestionAcceptResponses, SuggestionDismissErrors, SuggestionDismissResponses, SuggestionListResponses, SyncHistoryListErrors, SyncHistoryListResponses, SyncReplayErrors, SyncReplayResponses, SyncStartResponses, SyncStealErrors, SyncStealResponses, TelemetryCaptureErrors, TelemetryCaptureResponses, TelemetrySetEnabledErrors, TelemetrySetEnabledResponses, TextPartInput, ToolIdsErrors, ToolIdsResponses, ToolListErrors, ToolListResponses, TuiAppendPromptErrors, TuiAppendPromptResponses, TuiClearPromptResponses, TuiControlNextResponses, TuiControlResponseResponses, TuiExecuteCommandErrors, TuiExecuteCommandResponses, TuiOpenHelpResponses, TuiOpenModelsResponses, TuiOpenSessionsResponses, TuiOpenThemesResponses, TuiPublishErrors, TuiPublishResponses, TuiSelectSessionErrors, TuiSelectSessionResponses, TuiShowToastResponses, TuiSubmitPromptResponses, V2SessionCompactResponses, V2SessionContextResponses, V2SessionListErrors, V2SessionListResponses, V2SessionMessagesErrors, V2SessionMessagesResponses, V2SessionPromptResponses, V2SessionWaitResponses, VcsApplyErrors, VcsApplyResponses, VcsDiffRawResponses, VcsDiffResponses, VcsGetResponses, VcsStatusResponses, WorktreeCreateErrors, WorktreeCreateInput, WorktreeCreateResponses, WorktreeDiffErrors, WorktreeDiffFileErrors, WorktreeDiffFileResponses, WorktreeDiffResponses, WorktreeDiffSummaryErrors, WorktreeDiffSummaryResponses, WorktreeListResponses, WorktreeRemoveErrors, WorktreeRemoveInput, WorktreeRemoveResponses, WorktreeResetErrors, WorktreeResetInput, WorktreeResetResponses } from "./types.gen.js";
2
+ import type { AgentBuilderPreviewErrors, AgentBuilderPreviewResponses, AgentBuilderSaveErrors, AgentBuilderSaveResponses, AgentPartInput, AppAgentsResponses, AppLogErrors, AppLogResponses, AppSkillsResponses, Auth as Auth3, AuthRemoveErrors, AuthRemoveResponses, AuthSetErrors, AuthSetResponses, BackgroundProcessGetErrors, BackgroundProcessGetResponses, BackgroundProcessListResponses, BackgroundProcessLogsErrors, BackgroundProcessLogsResponses, BackgroundProcessRestartErrors, BackgroundProcessRestartResponses, BackgroundProcessStopErrors, BackgroundProcessStopResponses, BackgroundProcessStopSessionResponses, CommandListResponses, CommitMessageGenerateErrors, CommitMessageGenerateResponses, Config as Config4, ConfigEffectiveResponses, ConfigGetResponses, ConfigModelStateResponses, ConfigModelStateUpdateResponses, ConfigOverlayResponses, ConfigOverlayUpdateResponses, ConfigProvidersResponses, ConfigRulesResponses, ConfigRulesUpdateResponses, ConfigSourcesResponses, ConfigUpdateErrors, ConfigUpdateResponses, ConfigWarningsResponses, EnhancePromptEnhanceErrors, EnhancePromptEnhanceResponses, EventSubscribeResponses, EventTuiCommandExecute2, EventTuiPromptAppend2, EventTuiSessionSelect2, EventTuiToastShow2, ExperimentalConsoleGetResponses, ExperimentalConsoleListOrgsResponses, ExperimentalConsoleSwitchOrgResponses, ExperimentalResourceListResponses, ExperimentalSessionListResponses, ExperimentalWorkspaceAdapterListResponses, ExperimentalWorkspaceCreateErrors, ExperimentalWorkspaceCreateResponses, ExperimentalWorkspaceListResponses, ExperimentalWorkspaceRemoveErrors, ExperimentalWorkspaceRemoveResponses, ExperimentalWorkspaceStatusResponses, ExperimentalWorkspaceWarpErrors, ExperimentalWorkspaceWarpResponses, FileListResponses, FilePartInput, FilePartSource, FileReadResponses, FileStatusResponses, FindFilesResponses, FindSymbolsResponses, FindTextResponses, FormatterStatusResponses, GlobalConfigGetResponses, GlobalConfigUpdateErrors, GlobalConfigUpdateResponses, GlobalDisposeResponses, GlobalEventResponses, GlobalHealthResponses, GlobalUpgradeErrors, GlobalUpgradeResponses, IndexingStatusResponses, InstanceDisposeResponses, KiloAudioTranscriptionsErrors, KiloAudioTranscriptionsResponses, KiloClawChatCredentialsResponses, KiloClawStatusErrors, KiloClawStatusResponses, KiloCloudSessionGetErrors, KiloCloudSessionGetResponses, KiloCloudSessionImportErrors, KiloCloudSessionImportResponses, KiloCloudSessionsErrors, KiloCloudSessionsResponses, KilocodeHeapSnapshotErrors, KilocodeHeapSnapshotResponses, KilocodeRemoveAgentErrors, KilocodeRemoveAgentResponses, KilocodeRemoveSkillErrors, KilocodeRemoveSkillResponses, KilocodeSessionImportMessageErrors, KilocodeSessionImportMessageResponses, KilocodeSessionImportPartErrors, KilocodeSessionImportPartResponses, KilocodeSessionImportProjectErrors, KilocodeSessionImportProjectResponses, KilocodeSessionImportSessionErrors, KilocodeSessionImportSessionResponses, KiloEditErrors, KiloEditResponses, KiloFimErrors, KiloFimResponses, KiloModesResponses, KiloNotificationsErrors, KiloNotificationsResponses, KiloOrganizationSetErrors, KiloOrganizationSetResponses, KiloProfileErrors, KiloProfileResponses, LspStatusResponses, McpAddErrors, McpAddResponses, McpAuthAuthenticateErrors, McpAuthAuthenticateResponses, McpAuthCallbackErrors, McpAuthCallbackResponses, McpAuthRemoveErrors, McpAuthRemoveResponses, McpAuthStartErrors, McpAuthStartResponses, McpConnectResponses, McpDisconnectResponses, McpLocalConfig, McpRemoteConfig, McpStatusResponses, NetworkListResponses, NetworkRejectErrors, NetworkRejectResponses, NetworkReplyErrors, NetworkReplyResponses, OutputFormat, Part as Part2, PartDeleteErrors, PartDeleteResponses, PartUpdateErrors, PartUpdateResponses, PathGetResponses, PermissionAllowEverythingErrors, PermissionAllowEverythingResponses, PermissionListResponses, PermissionReplyErrors, PermissionReplyResponses, PermissionRespondErrors, PermissionRespondResponses, PermissionRuleset, PermissionSaveAlwaysRulesErrors, PermissionSaveAlwaysRulesResponses, ProjectCurrentResponses, ProjectInitGitResponses, ProjectListResponses, ProjectUpdateErrors, ProjectUpdateResponses, Prompt, ProviderAuthResponses, ProviderListResponses, ProviderOauthAuthorizeErrors, ProviderOauthAuthorizeResponses, ProviderOauthCallbackErrors, ProviderOauthCallbackResponses, PtyConnectErrors, PtyConnectResponses, PtyConnectTokenErrors, PtyConnectTokenResponses, PtyCreateErrors, PtyCreateResponses, PtyGetErrors, PtyGetResponses, PtyListResponses, PtyRemoveErrors, PtyRemoveResponses, PtyShellsResponses, PtyUpdateErrors, PtyUpdateResponses, QuestionAnswer, QuestionListResponses, QuestionRejectErrors, QuestionRejectResponses, QuestionReplyErrors, QuestionReplyResponses, RemoteDisableResponses, RemoteEnableResponses, RemoteStatusResponses, SessionAbortErrors, SessionAbortResponses, SessionChildrenErrors, SessionChildrenResponses, SessionCommandErrors, SessionCommandResponses, SessionCreateErrors, SessionCreateResponses, SessionDeleteErrors, SessionDeleteMessageErrors, SessionDeleteMessageResponses, SessionDeleteResponses, SessionDelivery, SessionDiffResponses, SessionForkErrors, SessionForkResponses, SessionGetErrors, SessionGetResponses, SessionInitErrors, SessionInitResponses, 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, SessionViewedResponses, SubtaskPartInput, SuggestionAcceptErrors, SuggestionAcceptResponses, SuggestionDismissErrors, SuggestionDismissResponses, SuggestionListResponses, SyncHistoryListErrors, SyncHistoryListResponses, SyncReplayErrors, SyncReplayResponses, SyncStartResponses, SyncStealErrors, SyncStealResponses, TelemetryCaptureErrors, TelemetryCaptureResponses, TelemetrySetEnabledErrors, TelemetrySetEnabledResponses, TextPartInput, ToolIdsErrors, ToolIdsResponses, ToolListErrors, ToolListResponses, TuiAppendPromptErrors, TuiAppendPromptResponses, TuiClearPromptResponses, TuiConfigGetResponses, TuiConfigUpdateErrors, TuiConfigUpdateResponses, TuiControlNextResponses, TuiControlResponseResponses, TuiExecuteCommandErrors, TuiExecuteCommandResponses, TuiKeybindListResponses, TuiOpenHelpResponses, TuiOpenModelsResponses, TuiOpenSessionsResponses, TuiOpenThemesResponses, TuiPublishErrors, TuiPublishResponses, TuiSelectSessionErrors, TuiSelectSessionResponses, TuiShowToastResponses, TuiSubmitPromptResponses, V2SessionCompactResponses, V2SessionContextResponses, V2SessionListErrors, V2SessionListResponses, V2SessionMessagesErrors, V2SessionMessagesResponses, V2SessionPromptResponses, V2SessionWaitResponses, VcsApplyErrors, VcsApplyResponses, VcsDiffRawResponses, VcsDiffResponses, VcsGetResponses, VcsStatusResponses, WorktreeCreateErrors, WorktreeCreateInput, WorktreeCreateResponses, WorktreeDiffErrors, WorktreeDiffFileErrors, WorktreeDiffFileResponses, WorktreeDiffResponses, WorktreeDiffSummaryErrors, WorktreeDiffSummaryResponses, 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
@@ -92,7 +92,7 @@ export declare class Config extends HeyApiClient {
92
92
  * Update global Kilo configuration settings and preferences.
93
93
  */
94
94
  update<ThrowOnError extends boolean = false>(parameters?: {
95
- config?: Config3;
95
+ config?: Config4;
96
96
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<GlobalConfigUpdateResponses, GlobalConfigUpdateErrors, ThrowOnError, "fields">;
97
97
  }
98
98
  export declare class Global extends HeyApiClient {
@@ -154,7 +154,7 @@ export declare class Config2 extends HeyApiClient {
154
154
  update<ThrowOnError extends boolean = false>(parameters?: {
155
155
  directory?: string;
156
156
  workspace?: string;
157
- config?: Config3;
157
+ config?: Config4;
158
158
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ConfigUpdateResponses, ConfigUpdateErrors, ThrowOnError, "fields">;
159
159
  /**
160
160
  * Get config warnings
@@ -174,6 +174,91 @@ export declare class Config2 extends HeyApiClient {
174
174
  directory?: string;
175
175
  workspace?: string;
176
176
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ConfigProvidersResponses, unknown, ThrowOnError, "fields">;
177
+ /**
178
+ * Get config overlay
179
+ *
180
+ * Resolve global, project, and effective config values with source metadata for inheritance-aware settings UI.
181
+ */
182
+ overlay<ThrowOnError extends boolean = false>(parameters?: {
183
+ directory?: string;
184
+ workspace?: string;
185
+ scope?: "global" | "project";
186
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ConfigOverlayResponses, unknown, ThrowOnError, "fields">;
187
+ /**
188
+ * Patch config overlay
189
+ *
190
+ * Apply a minimal global or project config patch, including unset paths for reverting local overrides.
191
+ */
192
+ overlayUpdate<ThrowOnError extends boolean = false>(parameters?: {
193
+ directory?: string;
194
+ workspace?: string;
195
+ scope?: "global" | "project";
196
+ set?: {
197
+ [key: string]: unknown;
198
+ };
199
+ unset?: Array<Array<string>>;
200
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ConfigOverlayUpdateResponses, unknown, ThrowOnError, "fields">;
201
+ /**
202
+ * List config sources
203
+ *
204
+ * List config source metadata in load order without exposing config contents or secrets.
205
+ */
206
+ sources<ThrowOnError extends boolean = false>(parameters?: {
207
+ directory?: string;
208
+ workspace?: string;
209
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ConfigSourcesResponses, unknown, ThrowOnError, "fields">;
210
+ /**
211
+ * Get effective configuration
212
+ *
213
+ * Retrieve effective config for the current instance directory.
214
+ */
215
+ effective<ThrowOnError extends boolean = false>(parameters?: {
216
+ directory?: string;
217
+ workspace?: string;
218
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ConfigEffectiveResponses, unknown, ThrowOnError, "fields">;
219
+ /**
220
+ * Get project rules
221
+ *
222
+ * List project instruction files used by Kilo and return their current contents.
223
+ */
224
+ rules<ThrowOnError extends boolean = false>(parameters?: {
225
+ directory?: string;
226
+ workspace?: string;
227
+ scope?: "project";
228
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ConfigRulesResponses, unknown, ThrowOnError, "fields">;
229
+ /**
230
+ * Update project rules
231
+ *
232
+ * Create or update the project AGENTS.md rules file.
233
+ */
234
+ rulesUpdate<ThrowOnError extends boolean = false>(parameters?: {
235
+ directory?: string;
236
+ workspace?: string;
237
+ scope?: "project";
238
+ content?: string;
239
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ConfigRulesUpdateResponses, unknown, ThrowOnError, "fields">;
240
+ /**
241
+ * Get model state
242
+ *
243
+ * Retrieve TUI-compatible recent and favorite model selections.
244
+ */
245
+ modelState<ThrowOnError extends boolean = false>(parameters?: {
246
+ directory?: string;
247
+ workspace?: string;
248
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ConfigModelStateResponses, unknown, ThrowOnError, "fields">;
249
+ /**
250
+ * Update model state
251
+ *
252
+ * Patch TUI-compatible model selections shared with Kilo Console.
253
+ */
254
+ modelStateUpdate<ThrowOnError extends boolean = false>(parameters?: {
255
+ directory?: string;
256
+ workspace?: string;
257
+ favorite?: Array<{
258
+ providerID: string;
259
+ modelID: string;
260
+ }>;
261
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ConfigModelStateUpdateResponses, unknown, ThrowOnError, "fields">;
177
262
  }
178
263
  export declare class Console extends HeyApiClient {
179
264
  /**
@@ -781,6 +866,7 @@ export declare class Pty extends HeyApiClient {
781
866
  directory?: string;
782
867
  workspace?: string;
783
868
  title?: string;
869
+ sessionID?: string | null;
784
870
  size?: {
785
871
  rows: number;
786
872
  cols: number;
@@ -1467,6 +1553,64 @@ export declare class Control extends HeyApiClient {
1467
1553
  body?: unknown;
1468
1554
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiControlResponseResponses, unknown, ThrowOnError, "fields">;
1469
1555
  }
1556
+ export declare class Config3 extends HeyApiClient {
1557
+ /**
1558
+ * Get TUI configuration
1559
+ *
1560
+ * Retrieve the effective TUI configuration for the current instance directory.
1561
+ */
1562
+ get<ThrowOnError extends boolean = false>(parameters?: {
1563
+ directory?: string;
1564
+ workspace?: string;
1565
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiConfigGetResponses, unknown, ThrowOnError, "fields">;
1566
+ /**
1567
+ * Update TUI configuration
1568
+ *
1569
+ * Patch global or project TUI configuration and return the effective TUI configuration.
1570
+ */
1571
+ update<ThrowOnError extends boolean = false>(parameters?: {
1572
+ directory?: string;
1573
+ workspace?: string;
1574
+ scope?: "project" | "global";
1575
+ $schema?: string;
1576
+ theme?: string;
1577
+ keybinds?: {
1578
+ [key: string]: string;
1579
+ };
1580
+ plugin?: Array<string | [
1581
+ string,
1582
+ {
1583
+ [key: string]: unknown;
1584
+ }
1585
+ ]>;
1586
+ plugin_enabled?: {
1587
+ [key: string]: boolean;
1588
+ };
1589
+ scroll_speed?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
1590
+ scroll_acceleration?: {
1591
+ enabled: boolean;
1592
+ };
1593
+ diff_style?: "auto" | "stacked";
1594
+ mouse?: boolean;
1595
+ attention?: {
1596
+ enabled?: boolean;
1597
+ notifications?: boolean;
1598
+ sound?: boolean;
1599
+ volume?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
1600
+ };
1601
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiConfigUpdateResponses, TuiConfigUpdateErrors, ThrowOnError, "fields">;
1602
+ }
1603
+ export declare class Keybind extends HeyApiClient {
1604
+ /**
1605
+ * List TUI keybinds
1606
+ *
1607
+ * List valid TUI keybind commands, descriptions, groups, and default bindings from the CLI schema.
1608
+ */
1609
+ list<ThrowOnError extends boolean = false>(parameters?: {
1610
+ directory?: string;
1611
+ workspace?: string;
1612
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiKeybindListResponses, unknown, ThrowOnError, "fields">;
1613
+ }
1470
1614
  export declare class Tui extends HeyApiClient {
1471
1615
  /**
1472
1616
  * Append TUI prompt
@@ -1577,6 +1721,55 @@ export declare class Tui extends HeyApiClient {
1577
1721
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiSelectSessionResponses, TuiSelectSessionErrors, ThrowOnError, "fields">;
1578
1722
  private _control?;
1579
1723
  get control(): Control;
1724
+ private _config?;
1725
+ get config(): Config3;
1726
+ private _keybind?;
1727
+ get keybind(): Keybind;
1728
+ }
1729
+ export declare class AgentBuilder extends HeyApiClient {
1730
+ /**
1731
+ * Preview agent markdown
1732
+ *
1733
+ * Validate an agent builder payload and return the canonical agent markdown without writing it.
1734
+ */
1735
+ preview<ThrowOnError extends boolean = false>(parameters?: {
1736
+ directory?: string;
1737
+ workspace?: string;
1738
+ id?: string;
1739
+ scope?: "global" | "project";
1740
+ description?: string;
1741
+ mode?: "primary" | "subagent" | "all";
1742
+ model?: string;
1743
+ color?: string;
1744
+ steps?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
1745
+ tools?: Array<string>;
1746
+ permission?: {
1747
+ [key: string]: unknown;
1748
+ };
1749
+ prompt?: string;
1750
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<AgentBuilderPreviewResponses, AgentBuilderPreviewErrors, ThrowOnError, "fields">;
1751
+ /**
1752
+ * Save agent markdown
1753
+ *
1754
+ * Save an agent builder payload as a canonical agent markdown file.
1755
+ */
1756
+ save<ThrowOnError extends boolean = false>(parameters: {
1757
+ path_id: string;
1758
+ directory?: string;
1759
+ workspace?: string;
1760
+ body_id?: string;
1761
+ scope?: "global" | "project";
1762
+ description?: string;
1763
+ mode?: "primary" | "subagent" | "all";
1764
+ model?: string;
1765
+ color?: string;
1766
+ steps?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
1767
+ tools?: Array<string>;
1768
+ permission?: {
1769
+ [key: string]: unknown;
1770
+ };
1771
+ prompt?: string;
1772
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<AgentBuilderSaveResponses, AgentBuilderSaveErrors, ThrowOnError, "fields">;
1580
1773
  }
1581
1774
  export declare class BackgroundProcess extends HeyApiClient {
1582
1775
  /**
@@ -2263,6 +2456,8 @@ export declare class KiloClient extends HeyApiClient {
2263
2456
  get v2(): V2;
2264
2457
  private _tui?;
2265
2458
  get tui(): Tui;
2459
+ private _agentBuilder?;
2460
+ get agentBuilder(): AgentBuilder;
2266
2461
  private _backgroundProcess?;
2267
2462
  get backgroundProcess(): BackgroundProcess;
2268
2463
  private _commitMessage?;
@@ -329,6 +329,189 @@ export class Config2 extends HeyApiClient {
329
329
  ...params,
330
330
  });
331
331
  }
332
+ /**
333
+ * Get config overlay
334
+ *
335
+ * Resolve global, project, and effective config values with source metadata for inheritance-aware settings UI.
336
+ */
337
+ overlay(parameters, options) {
338
+ const params = buildClientParams([parameters], [
339
+ {
340
+ args: [
341
+ { in: "query", key: "directory" },
342
+ { in: "query", key: "workspace" },
343
+ { in: "query", key: "scope" },
344
+ ],
345
+ },
346
+ ]);
347
+ return (options?.client ?? this.client).get({
348
+ url: "/config/overlay",
349
+ ...options,
350
+ ...params,
351
+ });
352
+ }
353
+ /**
354
+ * Patch config overlay
355
+ *
356
+ * Apply a minimal global or project config patch, including unset paths for reverting local overrides.
357
+ */
358
+ overlayUpdate(parameters, options) {
359
+ const params = buildClientParams([parameters], [
360
+ {
361
+ args: [
362
+ { in: "query", key: "directory" },
363
+ { in: "query", key: "workspace" },
364
+ { in: "body", key: "scope" },
365
+ { in: "body", key: "set" },
366
+ { in: "body", key: "unset" },
367
+ ],
368
+ },
369
+ ]);
370
+ return (options?.client ?? this.client).patch({
371
+ url: "/config/overlay",
372
+ ...options,
373
+ ...params,
374
+ headers: {
375
+ "Content-Type": "application/json",
376
+ ...options?.headers,
377
+ ...params.headers,
378
+ },
379
+ });
380
+ }
381
+ /**
382
+ * List config sources
383
+ *
384
+ * List config source metadata in load order without exposing config contents or secrets.
385
+ */
386
+ sources(parameters, options) {
387
+ const params = buildClientParams([parameters], [
388
+ {
389
+ args: [
390
+ { in: "query", key: "directory" },
391
+ { in: "query", key: "workspace" },
392
+ ],
393
+ },
394
+ ]);
395
+ return (options?.client ?? this.client).get({
396
+ url: "/config/sources",
397
+ ...options,
398
+ ...params,
399
+ });
400
+ }
401
+ /**
402
+ * Get effective configuration
403
+ *
404
+ * Retrieve effective config for the current instance directory.
405
+ */
406
+ effective(parameters, options) {
407
+ const params = buildClientParams([parameters], [
408
+ {
409
+ args: [
410
+ { in: "query", key: "directory" },
411
+ { in: "query", key: "workspace" },
412
+ ],
413
+ },
414
+ ]);
415
+ return (options?.client ?? this.client).get({
416
+ url: "/config/effective",
417
+ ...options,
418
+ ...params,
419
+ });
420
+ }
421
+ /**
422
+ * Get project rules
423
+ *
424
+ * List project instruction files used by Kilo and return their current contents.
425
+ */
426
+ rules(parameters, options) {
427
+ const params = buildClientParams([parameters], [
428
+ {
429
+ args: [
430
+ { in: "query", key: "directory" },
431
+ { in: "query", key: "workspace" },
432
+ { in: "query", key: "scope" },
433
+ ],
434
+ },
435
+ ]);
436
+ return (options?.client ?? this.client).get({
437
+ url: "/config/rules",
438
+ ...options,
439
+ ...params,
440
+ });
441
+ }
442
+ /**
443
+ * Update project rules
444
+ *
445
+ * Create or update the project AGENTS.md rules file.
446
+ */
447
+ rulesUpdate(parameters, options) {
448
+ const params = buildClientParams([parameters], [
449
+ {
450
+ args: [
451
+ { in: "query", key: "directory" },
452
+ { in: "query", key: "workspace" },
453
+ { in: "body", key: "scope" },
454
+ { in: "body", key: "content" },
455
+ ],
456
+ },
457
+ ]);
458
+ return (options?.client ?? this.client).put({
459
+ url: "/config/rules",
460
+ ...options,
461
+ ...params,
462
+ headers: {
463
+ "Content-Type": "application/json",
464
+ ...options?.headers,
465
+ ...params.headers,
466
+ },
467
+ });
468
+ }
469
+ /**
470
+ * Get model state
471
+ *
472
+ * Retrieve TUI-compatible recent and favorite model selections.
473
+ */
474
+ modelState(parameters, options) {
475
+ const params = buildClientParams([parameters], [
476
+ {
477
+ args: [
478
+ { in: "query", key: "directory" },
479
+ { in: "query", key: "workspace" },
480
+ ],
481
+ },
482
+ ]);
483
+ return (options?.client ?? this.client).get({
484
+ url: "/config/model-state",
485
+ ...options,
486
+ ...params,
487
+ });
488
+ }
489
+ /**
490
+ * Update model state
491
+ *
492
+ * Patch TUI-compatible model selections shared with Kilo Console.
493
+ */
494
+ modelStateUpdate(parameters, options) {
495
+ const params = buildClientParams([parameters], [
496
+ {
497
+ args: [
498
+ { in: "query", key: "directory" },
499
+ { in: "query", key: "workspace" },
500
+ { in: "body", key: "favorite" },
501
+ ],
502
+ },
503
+ ]);
504
+ return (options?.client ?? this.client).patch({
505
+ url: "/config/model-state",
506
+ ...options,
507
+ ...params,
508
+ headers: {
509
+ "Content-Type": "application/json",
510
+ ...options?.headers,
511
+ ...params.headers,
512
+ },
513
+ });
514
+ }
332
515
  }
333
516
  export class Console extends HeyApiClient {
334
517
  /**
@@ -1580,6 +1763,7 @@ export class Pty extends HeyApiClient {
1580
1763
  { in: "query", key: "directory" },
1581
1764
  { in: "query", key: "workspace" },
1582
1765
  { in: "body", key: "title" },
1766
+ { in: "body", key: "sessionID" },
1583
1767
  { in: "body", key: "size" },
1584
1768
  ],
1585
1769
  },
@@ -2945,6 +3129,86 @@ export class Control extends HeyApiClient {
2945
3129
  });
2946
3130
  }
2947
3131
  }
3132
+ export class Config3 extends HeyApiClient {
3133
+ /**
3134
+ * Get TUI configuration
3135
+ *
3136
+ * Retrieve the effective TUI configuration for the current instance directory.
3137
+ */
3138
+ get(parameters, options) {
3139
+ const params = buildClientParams([parameters], [
3140
+ {
3141
+ args: [
3142
+ { in: "query", key: "directory" },
3143
+ { in: "query", key: "workspace" },
3144
+ ],
3145
+ },
3146
+ ]);
3147
+ return (options?.client ?? this.client).get({
3148
+ url: "/tui/config",
3149
+ ...options,
3150
+ ...params,
3151
+ });
3152
+ }
3153
+ /**
3154
+ * Update TUI configuration
3155
+ *
3156
+ * Patch global or project TUI configuration and return the effective TUI configuration.
3157
+ */
3158
+ update(parameters, options) {
3159
+ const params = buildClientParams([parameters], [
3160
+ {
3161
+ args: [
3162
+ { in: "query", key: "directory" },
3163
+ { in: "query", key: "workspace" },
3164
+ { in: "query", key: "scope" },
3165
+ { in: "body", key: "$schema" },
3166
+ { in: "body", key: "theme" },
3167
+ { in: "body", key: "keybinds" },
3168
+ { in: "body", key: "plugin" },
3169
+ { in: "body", key: "plugin_enabled" },
3170
+ { in: "body", key: "scroll_speed" },
3171
+ { in: "body", key: "scroll_acceleration" },
3172
+ { in: "body", key: "diff_style" },
3173
+ { in: "body", key: "mouse" },
3174
+ { in: "body", key: "attention" },
3175
+ ],
3176
+ },
3177
+ ]);
3178
+ return (options?.client ?? this.client).patch({
3179
+ url: "/tui/config",
3180
+ ...options,
3181
+ ...params,
3182
+ headers: {
3183
+ "Content-Type": "application/json",
3184
+ ...options?.headers,
3185
+ ...params.headers,
3186
+ },
3187
+ });
3188
+ }
3189
+ }
3190
+ export class Keybind extends HeyApiClient {
3191
+ /**
3192
+ * List TUI keybinds
3193
+ *
3194
+ * List valid TUI keybind commands, descriptions, groups, and default bindings from the CLI schema.
3195
+ */
3196
+ list(parameters, options) {
3197
+ const params = buildClientParams([parameters], [
3198
+ {
3199
+ args: [
3200
+ { in: "query", key: "directory" },
3201
+ { in: "query", key: "workspace" },
3202
+ ],
3203
+ },
3204
+ ]);
3205
+ return (options?.client ?? this.client).get({
3206
+ url: "/tui/keybinds",
3207
+ ...options,
3208
+ ...params,
3209
+ });
3210
+ }
3211
+ }
2948
3212
  export class Tui extends HeyApiClient {
2949
3213
  /**
2950
3214
  * Append TUI prompt
@@ -3203,6 +3467,95 @@ export class Tui extends HeyApiClient {
3203
3467
  get control() {
3204
3468
  return (this._control ??= new Control({ client: this.client }));
3205
3469
  }
3470
+ _config;
3471
+ get config() {
3472
+ return (this._config ??= new Config3({ client: this.client }));
3473
+ }
3474
+ _keybind;
3475
+ get keybind() {
3476
+ return (this._keybind ??= new Keybind({ client: this.client }));
3477
+ }
3478
+ }
3479
+ export class AgentBuilder extends HeyApiClient {
3480
+ /**
3481
+ * Preview agent markdown
3482
+ *
3483
+ * Validate an agent builder payload and return the canonical agent markdown without writing it.
3484
+ */
3485
+ preview(parameters, options) {
3486
+ const params = buildClientParams([parameters], [
3487
+ {
3488
+ args: [
3489
+ { in: "query", key: "directory" },
3490
+ { in: "query", key: "workspace" },
3491
+ { in: "body", key: "id" },
3492
+ { in: "body", key: "scope" },
3493
+ { in: "body", key: "description" },
3494
+ { in: "body", key: "mode" },
3495
+ { in: "body", key: "model" },
3496
+ { in: "body", key: "color" },
3497
+ { in: "body", key: "steps" },
3498
+ { in: "body", key: "tools" },
3499
+ { in: "body", key: "permission" },
3500
+ { in: "body", key: "prompt" },
3501
+ ],
3502
+ },
3503
+ ]);
3504
+ return (options?.client ?? this.client).post({
3505
+ url: "/agent-builder/preview",
3506
+ ...options,
3507
+ ...params,
3508
+ headers: {
3509
+ "Content-Type": "application/json",
3510
+ ...options?.headers,
3511
+ ...params.headers,
3512
+ },
3513
+ });
3514
+ }
3515
+ /**
3516
+ * Save agent markdown
3517
+ *
3518
+ * Save an agent builder payload as a canonical agent markdown file.
3519
+ */
3520
+ save(parameters, options) {
3521
+ const params = buildClientParams([parameters], [
3522
+ {
3523
+ args: [
3524
+ {
3525
+ in: "path",
3526
+ key: "path_id",
3527
+ map: "id",
3528
+ },
3529
+ { in: "query", key: "directory" },
3530
+ { in: "query", key: "workspace" },
3531
+ {
3532
+ in: "body",
3533
+ key: "body_id",
3534
+ map: "id",
3535
+ },
3536
+ { in: "body", key: "scope" },
3537
+ { in: "body", key: "description" },
3538
+ { in: "body", key: "mode" },
3539
+ { in: "body", key: "model" },
3540
+ { in: "body", key: "color" },
3541
+ { in: "body", key: "steps" },
3542
+ { in: "body", key: "tools" },
3543
+ { in: "body", key: "permission" },
3544
+ { in: "body", key: "prompt" },
3545
+ ],
3546
+ },
3547
+ ]);
3548
+ return (options?.client ?? this.client).put({
3549
+ url: "/agent-builder/{id}",
3550
+ ...options,
3551
+ ...params,
3552
+ headers: {
3553
+ "Content-Type": "application/json",
3554
+ ...options?.headers,
3555
+ ...params.headers,
3556
+ },
3557
+ });
3558
+ }
3206
3559
  }
3207
3560
  export class BackgroundProcess extends HeyApiClient {
3208
3561
  /**
@@ -4331,6 +4684,10 @@ export class KiloClient extends HeyApiClient {
4331
4684
  get tui() {
4332
4685
  return (this._tui ??= new Tui({ client: this.client }));
4333
4686
  }
4687
+ _agentBuilder;
4688
+ get agentBuilder() {
4689
+ return (this._agentBuilder ??= new AgentBuilder({ client: this.client }));
4690
+ }
4334
4691
  _backgroundProcess;
4335
4692
  get backgroundProcess() {
4336
4693
  return (this._backgroundProcess ??= new BackgroundProcess({ client: this.client }));
@@ -296,6 +296,7 @@ export type Pty = {
296
296
  cwd: string;
297
297
  status: "running" | "exited";
298
298
  pid: number;
299
+ sessionID?: string | null;
299
300
  };
300
301
  export type OutputFormatText = {
301
302
  type: "text";
@@ -1523,6 +1524,137 @@ export type BackgroundProcessLogs = {
1523
1524
  sessionID: string;
1524
1525
  output: string;
1525
1526
  };
1527
+ export type ConfigOverlayResponse = {
1528
+ scope: "global" | "project";
1529
+ effective: Config;
1530
+ global: Config;
1531
+ project: Config;
1532
+ sources: Array<{
1533
+ order: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
1534
+ kind: string;
1535
+ scope: string;
1536
+ label: string;
1537
+ source: string;
1538
+ path?: string;
1539
+ exists: boolean;
1540
+ editable: boolean;
1541
+ reason?: string;
1542
+ }>;
1543
+ targets: {
1544
+ global?: string;
1545
+ project?: string;
1546
+ active?: string;
1547
+ };
1548
+ fields: {
1549
+ [key: string]: {
1550
+ key: string;
1551
+ path: Array<string>;
1552
+ value?: unknown;
1553
+ global?: unknown;
1554
+ local?: unknown;
1555
+ source: "project" | "global" | "system" | "default";
1556
+ inherited: boolean;
1557
+ overridden: boolean;
1558
+ editable: boolean;
1559
+ reason?: string;
1560
+ };
1561
+ };
1562
+ collections: {
1563
+ [key: string]: Array<{
1564
+ key: string;
1565
+ path: Array<string>;
1566
+ value?: unknown;
1567
+ global?: unknown;
1568
+ local?: unknown;
1569
+ source: "project" | "global" | "system" | "default";
1570
+ inherited: boolean;
1571
+ overridden: boolean;
1572
+ editable: boolean;
1573
+ reason?: string;
1574
+ }>;
1575
+ };
1576
+ };
1577
+ export type ConfigSourcesResponse = {
1578
+ sources: Array<{
1579
+ order: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
1580
+ kind: string;
1581
+ scope: string;
1582
+ label: string;
1583
+ source: string;
1584
+ path?: string;
1585
+ exists: boolean;
1586
+ editable: boolean;
1587
+ reason?: string;
1588
+ }>;
1589
+ };
1590
+ export type ConfigRulesResponse = {
1591
+ scope: "project";
1592
+ target: string;
1593
+ files: Array<{
1594
+ name: string;
1595
+ path: string;
1596
+ exists: boolean;
1597
+ editable: boolean;
1598
+ content: string;
1599
+ }>;
1600
+ };
1601
+ export type ConfigModelStateResponse = {
1602
+ model: {
1603
+ [key: string]: {
1604
+ providerID: string;
1605
+ modelID: string;
1606
+ };
1607
+ };
1608
+ recent: Array<{
1609
+ providerID: string;
1610
+ modelID: string;
1611
+ }>;
1612
+ favorite: Array<{
1613
+ providerID: string;
1614
+ modelID: string;
1615
+ }>;
1616
+ variant: {
1617
+ [key: string]: string;
1618
+ };
1619
+ };
1620
+ export type TuiConfigGetResponse = {
1621
+ $schema?: string;
1622
+ theme?: string;
1623
+ keybinds?: {
1624
+ [key: string]: string;
1625
+ };
1626
+ plugin?: Array<string | [
1627
+ string,
1628
+ {
1629
+ [key: string]: unknown;
1630
+ }
1631
+ ]>;
1632
+ plugin_enabled?: {
1633
+ [key: string]: boolean;
1634
+ };
1635
+ scroll_speed?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
1636
+ scroll_acceleration?: {
1637
+ enabled: boolean;
1638
+ };
1639
+ diff_style?: "auto" | "stacked";
1640
+ mouse?: boolean;
1641
+ attention?: {
1642
+ enabled?: boolean;
1643
+ notifications?: boolean;
1644
+ sound?: boolean;
1645
+ volume?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
1646
+ };
1647
+ };
1648
+ export type TuiKeybindInfo = {
1649
+ id: string;
1650
+ label: string;
1651
+ group: string;
1652
+ default: string;
1653
+ description: string;
1654
+ };
1655
+ export type TuiKeybindListResponse = {
1656
+ keybinds: Array<TuiKeybindInfo>;
1657
+ };
1526
1658
  export type EffectHttpApiErrorUnauthorized = {
1527
1659
  _tag: "Unauthorized";
1528
1660
  };
@@ -4344,6 +4476,7 @@ export type PtyGetResponse = PtyGetResponses[keyof PtyGetResponses];
4344
4476
  export type PtyUpdateData = {
4345
4477
  body?: {
4346
4478
  title?: string;
4479
+ sessionID?: string | null;
4347
4480
  size?: {
4348
4481
  rows: number;
4349
4482
  cols: number;
@@ -6218,6 +6351,90 @@ export type ExperimentalWorkspaceWarpResponses = {
6218
6351
  204: void;
6219
6352
  };
6220
6353
  export type ExperimentalWorkspaceWarpResponse = ExperimentalWorkspaceWarpResponses[keyof ExperimentalWorkspaceWarpResponses];
6354
+ export type AgentBuilderPreviewData = {
6355
+ body?: {
6356
+ id: string;
6357
+ scope?: "global" | "project";
6358
+ description?: string;
6359
+ mode?: "primary" | "subagent" | "all";
6360
+ model?: string;
6361
+ color?: string;
6362
+ steps?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
6363
+ tools?: Array<string>;
6364
+ permission?: {
6365
+ [key: string]: unknown;
6366
+ };
6367
+ prompt: string;
6368
+ };
6369
+ path?: never;
6370
+ query?: {
6371
+ directory?: string;
6372
+ workspace?: string;
6373
+ };
6374
+ url: "/agent-builder/preview";
6375
+ };
6376
+ export type AgentBuilderPreviewErrors = {
6377
+ /**
6378
+ * Bad request
6379
+ */
6380
+ 400: BadRequestError;
6381
+ };
6382
+ export type AgentBuilderPreviewError = AgentBuilderPreviewErrors[keyof AgentBuilderPreviewErrors];
6383
+ export type AgentBuilderPreviewResponses = {
6384
+ /**
6385
+ * Agent markdown preview
6386
+ */
6387
+ 200: {
6388
+ id: string;
6389
+ scope: "global" | "project";
6390
+ path: string;
6391
+ markdown: string;
6392
+ };
6393
+ };
6394
+ export type AgentBuilderPreviewResponse = AgentBuilderPreviewResponses[keyof AgentBuilderPreviewResponses];
6395
+ export type AgentBuilderSaveData = {
6396
+ body?: {
6397
+ id?: string;
6398
+ scope?: "global" | "project";
6399
+ description?: string;
6400
+ mode?: "primary" | "subagent" | "all";
6401
+ model?: string;
6402
+ color?: string;
6403
+ steps?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
6404
+ tools?: Array<string>;
6405
+ permission?: {
6406
+ [key: string]: unknown;
6407
+ };
6408
+ prompt: string;
6409
+ };
6410
+ path: {
6411
+ id: string;
6412
+ };
6413
+ query?: {
6414
+ directory?: string;
6415
+ workspace?: string;
6416
+ };
6417
+ url: "/agent-builder/{id}";
6418
+ };
6419
+ export type AgentBuilderSaveErrors = {
6420
+ /**
6421
+ * Bad request
6422
+ */
6423
+ 400: BadRequestError;
6424
+ };
6425
+ export type AgentBuilderSaveError = AgentBuilderSaveErrors[keyof AgentBuilderSaveErrors];
6426
+ export type AgentBuilderSaveResponses = {
6427
+ /**
6428
+ * Saved agent markdown
6429
+ */
6430
+ 200: {
6431
+ id: string;
6432
+ scope: "global" | "project";
6433
+ path: string;
6434
+ markdown: string;
6435
+ };
6436
+ };
6437
+ export type AgentBuilderSaveResponse = AgentBuilderSaveResponses[keyof AgentBuilderSaveResponses];
6221
6438
  export type BackgroundProcessListData = {
6222
6439
  body?: never;
6223
6440
  path?: never;
@@ -6384,6 +6601,233 @@ export type CommitMessageGenerateResponses = {
6384
6601
  };
6385
6602
  };
6386
6603
  export type CommitMessageGenerateResponse = CommitMessageGenerateResponses[keyof CommitMessageGenerateResponses];
6604
+ export type ConfigOverlayData = {
6605
+ body?: never;
6606
+ path?: never;
6607
+ query?: {
6608
+ directory?: string;
6609
+ workspace?: string;
6610
+ scope?: "global" | "project";
6611
+ };
6612
+ url: "/config/overlay";
6613
+ };
6614
+ export type ConfigOverlayResponses = {
6615
+ /**
6616
+ * Resolved config overlay
6617
+ */
6618
+ 200: ConfigOverlayResponse;
6619
+ };
6620
+ export type ConfigOverlayResponse2 = ConfigOverlayResponses[keyof ConfigOverlayResponses];
6621
+ export type ConfigOverlayUpdateData = {
6622
+ body?: {
6623
+ scope?: "global" | "project";
6624
+ set?: {
6625
+ [key: string]: unknown;
6626
+ };
6627
+ unset?: Array<Array<string>>;
6628
+ };
6629
+ path?: never;
6630
+ query?: {
6631
+ directory?: string;
6632
+ workspace?: string;
6633
+ };
6634
+ url: "/config/overlay";
6635
+ };
6636
+ export type ConfigOverlayUpdateResponses = {
6637
+ /**
6638
+ * Effective configuration after patch
6639
+ */
6640
+ 200: Config;
6641
+ };
6642
+ export type ConfigOverlayUpdateResponse = ConfigOverlayUpdateResponses[keyof ConfigOverlayUpdateResponses];
6643
+ export type ConfigSourcesData = {
6644
+ body?: never;
6645
+ path?: never;
6646
+ query?: {
6647
+ directory?: string;
6648
+ workspace?: string;
6649
+ };
6650
+ url: "/config/sources";
6651
+ };
6652
+ export type ConfigSourcesResponses = {
6653
+ /**
6654
+ * Config source inventory
6655
+ */
6656
+ 200: ConfigSourcesResponse;
6657
+ };
6658
+ export type ConfigSourcesResponse2 = ConfigSourcesResponses[keyof ConfigSourcesResponses];
6659
+ export type ConfigEffectiveData = {
6660
+ body?: never;
6661
+ path?: never;
6662
+ query?: {
6663
+ directory?: string;
6664
+ workspace?: string;
6665
+ };
6666
+ url: "/config/effective";
6667
+ };
6668
+ export type ConfigEffectiveResponses = {
6669
+ /**
6670
+ * Effective config info
6671
+ */
6672
+ 200: Config;
6673
+ };
6674
+ export type ConfigEffectiveResponse = ConfigEffectiveResponses[keyof ConfigEffectiveResponses];
6675
+ export type ConfigRulesData = {
6676
+ body?: never;
6677
+ path?: never;
6678
+ query?: {
6679
+ directory?: string;
6680
+ workspace?: string;
6681
+ scope?: "project";
6682
+ };
6683
+ url: "/config/rules";
6684
+ };
6685
+ export type ConfigRulesResponses = {
6686
+ /**
6687
+ * Project rules
6688
+ */
6689
+ 200: ConfigRulesResponse;
6690
+ };
6691
+ export type ConfigRulesResponse2 = ConfigRulesResponses[keyof ConfigRulesResponses];
6692
+ export type ConfigRulesUpdateData = {
6693
+ body?: {
6694
+ scope?: "project";
6695
+ content: string;
6696
+ };
6697
+ path?: never;
6698
+ query?: {
6699
+ directory?: string;
6700
+ workspace?: string;
6701
+ };
6702
+ url: "/config/rules";
6703
+ };
6704
+ export type ConfigRulesUpdateResponses = {
6705
+ /**
6706
+ * Project rules after update
6707
+ */
6708
+ 200: ConfigRulesResponse;
6709
+ };
6710
+ export type ConfigRulesUpdateResponse = ConfigRulesUpdateResponses[keyof ConfigRulesUpdateResponses];
6711
+ export type ConfigModelStateData = {
6712
+ body?: never;
6713
+ path?: never;
6714
+ query?: {
6715
+ directory?: string;
6716
+ workspace?: string;
6717
+ };
6718
+ url: "/config/model-state";
6719
+ };
6720
+ export type ConfigModelStateResponses = {
6721
+ /**
6722
+ * Model state
6723
+ */
6724
+ 200: ConfigModelStateResponse;
6725
+ };
6726
+ export type ConfigModelStateResponse2 = ConfigModelStateResponses[keyof ConfigModelStateResponses];
6727
+ export type ConfigModelStateUpdateData = {
6728
+ body?: {
6729
+ favorite?: Array<{
6730
+ providerID: string;
6731
+ modelID: string;
6732
+ }>;
6733
+ };
6734
+ path?: never;
6735
+ query?: {
6736
+ directory?: string;
6737
+ workspace?: string;
6738
+ };
6739
+ url: "/config/model-state";
6740
+ };
6741
+ export type ConfigModelStateUpdateResponses = {
6742
+ /**
6743
+ * Updated model state
6744
+ */
6745
+ 200: ConfigModelStateResponse;
6746
+ };
6747
+ export type ConfigModelStateUpdateResponse = ConfigModelStateUpdateResponses[keyof ConfigModelStateUpdateResponses];
6748
+ export type TuiConfigGetData = {
6749
+ body?: never;
6750
+ path?: never;
6751
+ query?: {
6752
+ directory?: string;
6753
+ workspace?: string;
6754
+ };
6755
+ url: "/tui/config";
6756
+ };
6757
+ export type TuiConfigGetResponses = {
6758
+ /**
6759
+ * Effective TUI configuration
6760
+ */
6761
+ 200: TuiConfigGetResponse;
6762
+ };
6763
+ export type TuiConfigGetResponse2 = TuiConfigGetResponses[keyof TuiConfigGetResponses];
6764
+ export type TuiConfigUpdateData = {
6765
+ body?: {
6766
+ $schema?: string;
6767
+ theme?: string;
6768
+ keybinds?: {
6769
+ [key: string]: string;
6770
+ };
6771
+ plugin?: Array<string | [
6772
+ string,
6773
+ {
6774
+ [key: string]: unknown;
6775
+ }
6776
+ ]>;
6777
+ plugin_enabled?: {
6778
+ [key: string]: boolean;
6779
+ };
6780
+ scroll_speed?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
6781
+ scroll_acceleration?: {
6782
+ enabled: boolean;
6783
+ };
6784
+ diff_style?: "auto" | "stacked";
6785
+ mouse?: boolean;
6786
+ attention?: {
6787
+ enabled?: boolean;
6788
+ notifications?: boolean;
6789
+ sound?: boolean;
6790
+ volume?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
6791
+ };
6792
+ };
6793
+ path?: never;
6794
+ query?: {
6795
+ directory?: string;
6796
+ workspace?: string;
6797
+ scope?: "project" | "global";
6798
+ };
6799
+ url: "/tui/config";
6800
+ };
6801
+ export type TuiConfigUpdateErrors = {
6802
+ /**
6803
+ * Bad request
6804
+ */
6805
+ 400: BadRequestError;
6806
+ };
6807
+ export type TuiConfigUpdateError = TuiConfigUpdateErrors[keyof TuiConfigUpdateErrors];
6808
+ export type TuiConfigUpdateResponses = {
6809
+ /**
6810
+ * Effective TUI configuration after the update
6811
+ */
6812
+ 200: TuiConfigGetResponse;
6813
+ };
6814
+ export type TuiConfigUpdateResponse = TuiConfigUpdateResponses[keyof TuiConfigUpdateResponses];
6815
+ export type TuiKeybindListData = {
6816
+ body?: never;
6817
+ path?: never;
6818
+ query?: {
6819
+ directory?: string;
6820
+ workspace?: string;
6821
+ };
6822
+ url: "/tui/keybinds";
6823
+ };
6824
+ export type TuiKeybindListResponses = {
6825
+ /**
6826
+ * TUI keybind metadata
6827
+ */
6828
+ 200: TuiKeybindListResponse;
6829
+ };
6830
+ export type TuiKeybindListResponse2 = TuiKeybindListResponses[keyof TuiKeybindListResponses];
6387
6831
  export type EnhancePromptEnhanceData = {
6388
6832
  body?: {
6389
6833
  /**
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.3.17",
4
+ "version": "7.3.20",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {