@nikcli-ai/sdk 1.36.0 → 1.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { type Client, type Options as Options2, type TDataShape } from "./client/index.js";
2
- import type { AgentPartInput, AnalyticsDailyResponses, AnalyticsGlobalResponses, AnalyticsLeaderboardResponses, AnalyticsSessionErrors, AnalyticsSessionResponses, AnalyticsSessionsResponses, AppAgentsResponses, AppLogErrors, AppLogResponses, AppSkillCreateErrors, AppSkillCreateResponses, AppSkillDeleteErrors, AppSkillDeleteResponses, AppSkillsResponses, Auth as Auth7, AuthRemoveErrors, AuthRemoveResponses, AuthSetErrors, AuthSetResponses, CommandListResponses, Config as Config2, ConfigGetResponses, ConfigProvidersResponses, ConfigUpdateErrors, ConfigUpdateResponses, ConnectorsAuthRemoveErrors, ConnectorsAuthRemoveResponses, ConnectorsAuthSetErrors, ConnectorsAuthSetResponses, ConnectorsInvalidateResponses, ConnectorsStatusResponses, DeleteConfigMcpNameResponses, EventSubscribeResponses, EventTuiCommandExecute, EventTuiPromptAppend, EventTuiSessionSelect, EventTuiToastShow, ExperimentalResourceListResponses, ExperimentalWorkspaceAdaptorListResponses, ExperimentalWorkspaceCreateErrors, ExperimentalWorkspaceCreateResponses, ExperimentalWorkspaceListResponses, ExperimentalWorkspaceRemoveErrors, ExperimentalWorkspaceRemoveResponses, ExperimentalWorkspaceRestoreErrors, ExperimentalWorkspaceRestoreResponses, ExperimentalWorkspaceSessionRestoreErrors, ExperimentalWorkspaceSessionRestoreResponses, ExperimentalWorkspaceSessionWarpErrors, ExperimentalWorkspaceSessionWarpResponses, ExperimentalWorkspaceWarpErrors, ExperimentalWorkspaceWarpResponses, FileListResponses, FilePartInput, FilePartSource, FileReadResponses, FileStatusResponses, FileWriteResponses, FindFilesResponses, FindSymbolsResponses, FindTextResponses, FormatterStatusResponses, GetApiShareShareIdDataResponses, GetApiShareShareIdResponses, GetShareShareIdResponses, GetSShareIdResponses, GlobalDisposeResponses, GlobalEventResponses, GlobalHealthResponses, InstanceDisposeResponses, LspStatusResponses, McpAddErrors, McpAddResponses, McpAuthAuthenticateErrors, McpAuthAuthenticateResponses, McpAuthCallbackErrors, McpAuthCallbackResponses, McpAuthRemoveErrors, McpAuthRemoveResponses, McpAuthStartErrors, McpAuthStartResponses, McpConnectResponses, McpDisconnectResponses, McpLocalConfig, McpRemoteConfig, McpStatusResponses, McpToggleErrors, McpToggleResponses, MobileAuthTokenCreateResponses, MobileAuthTokenListResponses, MobileAuthTokenRevokeResponses, MobileBootstrapResponses, MobileCommandListResponses, MobileGitBranchesResponses, MobileGitCheckoutErrors, MobileGitCheckoutResponses, MobileGitCommitErrors, MobileGitCommitResponses, MobileGitCommitsResponses, MobileGitDiffResponses, MobileGitDiscardResponses, MobileGithubAuthRemoveResponses, MobileGithubAuthSetErrors, MobileGithubAuthSetResponses, MobileGithubBranchesResponses, MobileGithubDeviceAuthPollInput, MobileGithubImportErrors, MobileGithubImportRequest, MobileGithubImportResponses, MobileGithubImportsResponses, MobileGithubOauthClientIdSetErrors, MobileGithubOauthClientIdSetResponses, MobileGithubOauthDevicePollErrors, MobileGithubOauthDevicePollResponses, MobileGithubOauthDeviceStartErrors, MobileGithubOauthDeviceStartResponses, MobileGithubPublishInput, MobileGithubReposResponses, MobileGithubSessionCleanupErrors, MobileGithubSessionCleanupResponses, MobileGithubSessionCreateErrors, MobileGithubSessionCreateInput, MobileGithubSessionCreateResponses, MobileGithubSessionPublishErrors, MobileGithubSessionPublishResponses, MobileGitPullErrors, MobileGitPullResponses, MobileGitPushErrors, MobileGitPushResponses, MobileGitStageResponses, MobileGitStatusResponses, MobileGitUnstageResponses, MobileMemoryHistoryResponses, MobileMemorySearchResponses, MobileMemoryStashCreateErrors, MobileMemoryStashCreateResponses, MobileMemoryStashDeleteErrors, MobileMemoryStashDeleteResponses, MobileMemoryStashListResponses, MobilePermissionRespondResponses, MobileProjectListResponses, MobilePromptStashCreateInput, MobileQuestionRejectResponses, MobileQuestionRespondResponses, MobileRoutineCreateErrors, MobileRoutineCreateInput, MobileRoutineCreateResponses, MobileRoutineDeleteErrors, MobileRoutineDeleteResponses, MobileRoutineGetErrors, MobileRoutineGetResponses, MobileRoutineListErrors, MobileRoutineListResponses, MobileRoutinePauseErrors, MobileRoutinePauseResponses, MobileRoutineResumeErrors, MobileRoutineResumeResponses, MobileRoutineRunErrors, MobileRoutineRunInput, MobileRoutineRunResponses, MobileRoutineTriggerErrors, MobileRoutineTriggerInput, MobileRoutineTriggerResponses, MobileRoutineUpdateErrors, MobileRoutineUpdateInput, MobileRoutineUpdateResponses, MobileSessionAbortResponses, MobileSessionCommandErrors, MobileSessionCommandInput, MobileSessionCommandListErrors, MobileSessionCommandListResponses, MobileSessionCommandResponses, MobileSessionCreateErrors, MobileSessionCreateInput, MobileSessionCreateResponses, MobileSessionDeleteErrors, MobileSessionDeleteResponses, MobileSessionDetailErrors, MobileSessionDetailResponses, MobileSessionDiffResponses, MobileSessionListResponses, MobileSessionMessageErrors, MobileSessionMessageResponses, MobileSessionRenameResponses, MobileSessionStreamResponses, MobileWorktreeCreateErrors, MobileWorktreeCreateResponses, MobileWorktreeRemoveResponses, MobileWorktreeResetResponses, OutputFormat, Part as Part2, PartDeleteErrors, PartDeleteResponses, PartUpdateErrors, PartUpdateResponses, PatchConfigMcpNameResponses, PatchUserIdResponses, PathGetResponses, PermissionListResponses, PermissionReplyErrors, PermissionReplyResponses, PermissionRespondErrors, PermissionRespondResponses, PermissionRuleset, PostConfigMcpResponses, PostConfigProfilesActivateNameResponses, PostConfigProfilesResponses, PostUserLoginResponses, PostUserRegisterResponses, ProjectCurrentResponses, ProjectListResponses, ProjectUpdateErrors, ProjectUpdateResponses, ProviderApiSetErrors, ProviderApiSetResponses, ProviderAuthRemoveResponses, ProviderAuthResponses, ProviderListResponses, ProviderOauthAuthorizeErrors, ProviderOauthAuthorizeResponses, ProviderOauthCallbackErrors, ProviderOauthCallbackResponses, PtyConnectErrors, PtyConnectResponses, PtyCreateErrors, PtyCreateResponses, PtyGetErrors, PtyGetResponses, PtyListResponses, PtyRemoveErrors, PtyRemoveResponses, PtyUpdateErrors, PtyUpdateResponses, QuestionAnswer, QuestionListResponses, QuestionRejectErrors, QuestionRejectResponses, QuestionReplyErrors, QuestionReplyResponses, SessionAbortErrors, SessionAbortResponses, SessionBackgroundCancelErrors, SessionBackgroundCancelResponses, SessionBackgroundErrors, SessionBackgroundInspectErrors, SessionBackgroundInspectResponses, SessionBackgroundReadErrors, SessionBackgroundReadResponses, SessionBackgroundResponses, SessionChildrenErrors, SessionChildrenResponses, SessionCommandErrors, SessionCommandResponses, SessionCreateErrors, SessionCreateResponses, SessionDeleteErrors, SessionDeleteResponses, SessionDiffResponses, SessionForkResponses, SessionGetErrors, SessionGetResponses, SessionGithub, SessionInitErrors, SessionInitResponses, SessionInstructionsErrors, SessionInstructionsResponses, SessionListResponses, SessionMessageErrors, SessionMessageResponses, SessionMessagesErrors, SessionMessagesResponses, SessionMonitorCancelErrors, SessionMonitorCancelResponses, SessionMonitorErrors, SessionMonitorLogErrors, SessionMonitorLogResponses, SessionMonitorResponses, SessionPromptAsyncErrors, SessionPromptAsyncResponses, SessionPromptErrors, SessionPromptResponses, SessionRevertErrors, SessionRevertResponses, SessionShareErrors, SessionShareResponses, SessionShellErrors, SessionShellResponses, SessionStatusErrors, SessionStatusResponses, SessionSummarizeErrors, SessionSummarizeResponses, SessionTodoErrors, SessionTodoResponses, SessionUnrevertErrors, SessionUnrevertResponses, SessionUnshareErrors, SessionUnshareResponses, SessionUpdateErrors, SessionUpdateResponses, SubtaskPartInput, TextPartInput, ToolIdsErrors, ToolIdsResponses, ToolListErrors, ToolListResponses, TuiAppendPromptErrors, TuiAppendPromptResponses, TuiClearPromptResponses, TuiControlNextResponses, TuiControlResponseResponses, TuiExecuteCommandErrors, TuiExecuteCommandResponses, TuiOpenHelpResponses, TuiOpenModelsResponses, TuiOpenSessionsResponses, TuiOpenThemesResponses, TuiPublishErrors, TuiPublishResponses, TuiSelectSessionErrors, TuiSelectSessionResponses, TuiShowToastResponses, TuiSubmitPromptResponses, VcsGetResponses, WorktreeCreateErrors, WorktreeCreateInput, WorktreeCreateResponses, WorktreeListResponses, WorktreeRemoveErrors, WorktreeRemoveInput, WorktreeRemoveResponses, WorktreeResetErrors, WorktreeResetInput, WorktreeResetResponses } from "./types.gen.js";
2
+ import type { AgentPartInput, AnalyticsDailyResponses, AnalyticsGlobalResponses, AnalyticsLeaderboardResponses, AnalyticsSessionErrors, AnalyticsSessionResponses, AnalyticsSessionsResponses, AppAgentsResponses, AppLogErrors, AppLogResponses, AppSkillCreateErrors, AppSkillCreateResponses, AppSkillDeleteErrors, AppSkillDeleteResponses, AppSkillsResponses, Auth as Auth7, AuthRemoveErrors, AuthRemoveResponses, AuthSetErrors, AuthSetResponses, CommandListResponses, Config as Config2, ConfigGetResponses, ConfigProvidersResponses, ConfigUpdateErrors, ConfigUpdateResponses, ConnectorsAuthRemoveErrors, ConnectorsAuthRemoveResponses, ConnectorsAuthSetErrors, ConnectorsAuthSetResponses, ConnectorsInvalidateResponses, ConnectorsStatusResponses, DeleteConfigMcpNameResponses, EventSubscribeResponses, EventTuiCommandExecute, EventTuiPromptAppend, EventTuiSessionSelect, EventTuiToastShow, ExperimentalResourceListResponses, ExperimentalWorkspaceAdaptorListResponses, ExperimentalWorkspaceCreateErrors, ExperimentalWorkspaceCreateResponses, ExperimentalWorkspaceListResponses, ExperimentalWorkspaceRemoveErrors, ExperimentalWorkspaceRemoveResponses, ExperimentalWorkspaceRestoreErrors, ExperimentalWorkspaceRestoreResponses, ExperimentalWorkspaceSessionRestoreErrors, ExperimentalWorkspaceSessionRestoreResponses, ExperimentalWorkspaceSessionWarpErrors, ExperimentalWorkspaceSessionWarpResponses, ExperimentalWorkspaceWarpErrors, ExperimentalWorkspaceWarpResponses, FileListResponses, FilePartInput, FilePartSource, FileReadResponses, FileStatusResponses, FileWriteResponses, FindFilesResponses, FindSymbolsResponses, FindTextResponses, FormatterStatusResponses, GetApiShareShareIdDataResponses, GetApiShareShareIdResponses, GetShareShareIdResponses, GetSShareIdResponses, GlobalDisposeResponses, GlobalEventResponses, GlobalHealthResponses, InstanceDisposeResponses, LspStatusResponses, ManagedWorktreeAncestorsErrors, ManagedWorktreeAncestorsResponses, ManagedWorktreeChildrenErrors, ManagedWorktreeChildrenResponses, ManagedWorktreeCreateErrors, ManagedWorktreeCreateInput, ManagedWorktreeCreateResponses, ManagedWorktreeLinkErrors, ManagedWorktreeLinkInput, ManagedWorktreeLinkResponses, ManagedWorktreeListErrors, ManagedWorktreeListResponses, ManagedWorktreeRemoveErrors, ManagedWorktreeRemoveInput, ManagedWorktreeRemoveResponses, McpAddErrors, McpAddResponses, McpAuthAuthenticateErrors, McpAuthAuthenticateResponses, McpAuthCallbackErrors, McpAuthCallbackResponses, McpAuthRemoveErrors, McpAuthRemoveResponses, McpAuthStartErrors, McpAuthStartResponses, McpConnectResponses, McpDisconnectResponses, McpLocalConfig, McpRemoteConfig, McpStatusResponses, McpToggleErrors, McpToggleResponses, MobileAuthTokenCreateResponses, MobileAuthTokenListResponses, MobileAuthTokenRevokeResponses, MobileBootstrapResponses, MobileCommandListResponses, MobileGitBranchesResponses, MobileGitCheckoutErrors, MobileGitCheckoutResponses, MobileGitCommitErrors, MobileGitCommitResponses, MobileGitCommitsResponses, MobileGitDiffResponses, MobileGitDiscardResponses, MobileGithubAuthRemoveResponses, MobileGithubAuthSetErrors, MobileGithubAuthSetResponses, MobileGithubBranchesResponses, MobileGithubDeviceAuthPollInput, MobileGithubImportErrors, MobileGithubImportRequest, MobileGithubImportResponses, MobileGithubImportsResponses, MobileGithubOauthClientIdSetErrors, MobileGithubOauthClientIdSetResponses, MobileGithubOauthDevicePollErrors, MobileGithubOauthDevicePollResponses, MobileGithubOauthDeviceStartErrors, MobileGithubOauthDeviceStartResponses, MobileGithubPublishInput, MobileGithubReposResponses, MobileGithubSessionCleanupErrors, MobileGithubSessionCleanupResponses, MobileGithubSessionCreateErrors, MobileGithubSessionCreateInput, MobileGithubSessionCreateResponses, MobileGithubSessionPublishErrors, MobileGithubSessionPublishResponses, MobileGitPullErrors, MobileGitPullResponses, MobileGitPushErrors, MobileGitPushResponses, MobileGitStageResponses, MobileGitStatusResponses, MobileGitUnstageResponses, MobileMemoryHistoryResponses, MobileMemorySearchResponses, MobileMemoryStashCreateErrors, MobileMemoryStashCreateResponses, MobileMemoryStashDeleteErrors, MobileMemoryStashDeleteResponses, MobileMemoryStashListResponses, MobilePermissionRespondResponses, MobileProjectListResponses, MobilePromptStashCreateInput, MobileQuestionRejectResponses, MobileQuestionRespondResponses, MobileRoutineCreateErrors, MobileRoutineCreateInput, MobileRoutineCreateResponses, MobileRoutineDeleteErrors, MobileRoutineDeleteResponses, MobileRoutineGetErrors, MobileRoutineGetResponses, MobileRoutineListErrors, MobileRoutineListResponses, MobileRoutinePauseErrors, MobileRoutinePauseResponses, MobileRoutineResumeErrors, MobileRoutineResumeResponses, MobileRoutineRunErrors, MobileRoutineRunInput, MobileRoutineRunResponses, MobileRoutineTriggerErrors, MobileRoutineTriggerInput, MobileRoutineTriggerResponses, MobileRoutineUpdateErrors, MobileRoutineUpdateInput, MobileRoutineUpdateResponses, MobileSessionAbortResponses, MobileSessionCommandErrors, MobileSessionCommandInput, MobileSessionCommandListErrors, MobileSessionCommandListResponses, MobileSessionCommandResponses, MobileSessionCreateErrors, MobileSessionCreateInput, MobileSessionCreateResponses, MobileSessionDeleteErrors, MobileSessionDeleteResponses, MobileSessionDetailErrors, MobileSessionDetailResponses, MobileSessionDiffResponses, MobileSessionListResponses, MobileSessionMessageErrors, MobileSessionMessageResponses, MobileSessionRenameResponses, MobileSessionStreamResponses, MobileWorktreeCreateErrors, MobileWorktreeCreateResponses, MobileWorktreeRemoveResponses, MobileWorktreeResetResponses, OutputFormat, Part as Part2, PartDeleteErrors, PartDeleteResponses, PartUpdateErrors, PartUpdateResponses, PatchConfigMcpNameResponses, PatchUserIdResponses, PathGetResponses, PermissionListResponses, PermissionReplyErrors, PermissionReplyResponses, PermissionRespondErrors, PermissionRespondResponses, PermissionRuleset, PostConfigMcpResponses, PostConfigProfilesActivateNameResponses, PostConfigProfilesResponses, PostUserLoginResponses, PostUserRegisterResponses, ProjectCurrentResponses, ProjectListResponses, ProjectUpdateErrors, ProjectUpdateResponses, ProviderApiSetErrors, ProviderApiSetResponses, ProviderAuthRemoveResponses, ProviderAuthResponses, ProviderListResponses, ProviderOauthAuthorizeErrors, ProviderOauthAuthorizeResponses, ProviderOauthCallbackErrors, ProviderOauthCallbackResponses, PtyConnectErrors, PtyConnectResponses, PtyCreateErrors, PtyCreateResponses, PtyGetErrors, PtyGetResponses, PtyListResponses, PtyRemoveErrors, PtyRemoveResponses, PtyUpdateErrors, PtyUpdateResponses, QuestionAnswer, QuestionListResponses, QuestionRejectErrors, QuestionRejectResponses, QuestionReplyErrors, QuestionReplyResponses, SessionAbortErrors, SessionAbortResponses, SessionBackgroundCancelErrors, SessionBackgroundCancelResponses, SessionBackgroundErrors, SessionBackgroundInspectErrors, SessionBackgroundInspectResponses, SessionBackgroundReadErrors, SessionBackgroundReadResponses, SessionBackgroundResponses, SessionChildrenErrors, SessionChildrenResponses, SessionCommandErrors, SessionCommandResponses, SessionCreateErrors, SessionCreateResponses, SessionDeleteErrors, SessionDeleteResponses, SessionDiffResponses, SessionForkResponses, SessionGetErrors, SessionGetResponses, SessionGithub, SessionInitErrors, SessionInitResponses, SessionInstructionsErrors, SessionInstructionsResponses, SessionListResponses, SessionMessageErrors, SessionMessageResponses, SessionMessagesErrors, SessionMessagesResponses, SessionMonitorCancelErrors, SessionMonitorCancelResponses, SessionMonitorErrors, SessionMonitorLogErrors, SessionMonitorLogResponses, SessionMonitorResponses, SessionPromptAsyncErrors, SessionPromptAsyncResponses, SessionPromptErrors, SessionPromptResponses, SessionRevertErrors, SessionRevertResponses, SessionShareErrors, SessionShareResponses, SessionShellErrors, SessionShellResponses, SessionStatusErrors, SessionStatusResponses, SessionSummarizeErrors, SessionSummarizeResponses, SessionTodoErrors, SessionTodoResponses, SessionUnrevertErrors, SessionUnrevertResponses, SessionUnshareErrors, SessionUnshareResponses, SessionUpdateErrors, SessionUpdateResponses, SubtaskPartInput, TextPartInput, ToolIdsErrors, ToolIdsResponses, ToolListErrors, ToolListResponses, TuiAppendPromptErrors, TuiAppendPromptResponses, TuiClearPromptResponses, TuiControlNextResponses, TuiControlResponseResponses, TuiExecuteCommandErrors, TuiExecuteCommandResponses, TuiOpenHelpResponses, TuiOpenModelsResponses, TuiOpenSessionsResponses, TuiOpenThemesResponses, TuiPublishErrors, TuiPublishResponses, TuiSelectSessionErrors, TuiSelectSessionResponses, TuiShowToastResponses, TuiSubmitPromptResponses, VcsApplyErrors, VcsApplyInput, VcsApplyResponses, VcsDiffRawResponses, VcsGetResponses, VcsStatusResponses, WorktreeCreateErrors, WorktreeCreateInput, WorktreeCreateResponses, 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
@@ -280,6 +280,7 @@ export declare class Session extends HeyApiClient {
280
280
  directory?: string;
281
281
  workspace?: string;
282
282
  workspaceID?: string | null;
283
+ copyChanges?: boolean;
283
284
  timeoutMs?: number;
284
285
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ExperimentalWorkspaceSessionWarpResponses, ExperimentalWorkspaceSessionWarpErrors, ThrowOnError, "fields">;
285
286
  }
@@ -307,6 +308,7 @@ export declare class Workspace extends HeyApiClient {
307
308
  config?: {
308
309
  directory: string;
309
310
  type: "worktree";
311
+ strategy?: "git" | "cow";
310
312
  eventLimit?: number;
311
313
  } | {
312
314
  directory: string;
@@ -340,6 +342,7 @@ export declare class Workspace extends HeyApiClient {
340
342
  workspace?: string;
341
343
  id?: string | null;
342
344
  sessionID?: string;
345
+ copyChanges?: boolean;
343
346
  timeoutMs?: number;
344
347
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ExperimentalWorkspaceWarpResponses, ExperimentalWorkspaceWarpErrors, ThrowOnError, "fields">;
345
348
  /**
@@ -373,6 +376,67 @@ export declare class Experimental extends HeyApiClient {
373
376
  private _resource?;
374
377
  get resource(): Resource;
375
378
  }
379
+ export declare class ManagedWorktree extends HeyApiClient {
380
+ /**
381
+ * Remove managed worktree
382
+ *
383
+ * Remove a managed worktree and its descendant subtree.
384
+ */
385
+ remove<ThrowOnError extends boolean = false>(parameters?: {
386
+ directory?: string;
387
+ workspace?: string;
388
+ managedWorktreeRemoveInput?: ManagedWorktreeRemoveInput;
389
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ManagedWorktreeRemoveResponses, ManagedWorktreeRemoveErrors, ThrowOnError, "fields">;
390
+ /**
391
+ * List all managed worktrees
392
+ *
393
+ * Get all registered managed worktrees.
394
+ */
395
+ list<ThrowOnError extends boolean = false>(parameters?: {
396
+ directory?: string;
397
+ workspace?: string;
398
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ManagedWorktreeListResponses, ManagedWorktreeListErrors, ThrowOnError, "fields">;
399
+ /**
400
+ * Create managed worktree
401
+ *
402
+ * Clone a workspace with copy-on-write support.
403
+ */
404
+ create<ThrowOnError extends boolean = false>(parameters?: {
405
+ directory?: string;
406
+ workspace?: string;
407
+ managedWorktreeCreateInput?: ManagedWorktreeCreateInput;
408
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ManagedWorktreeCreateResponses, ManagedWorktreeCreateErrors, ThrowOnError, "fields">;
409
+ /**
410
+ * Link managed worktree
411
+ *
412
+ * Reconnect a moved managed worktree to its registry record.
413
+ */
414
+ link<ThrowOnError extends boolean = false>(parameters?: {
415
+ directory?: string;
416
+ workspace?: string;
417
+ managedWorktreeLinkInput?: ManagedWorktreeLinkInput;
418
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ManagedWorktreeLinkResponses, ManagedWorktreeLinkErrors, ThrowOnError, "fields">;
419
+ /**
420
+ * List managed worktree children
421
+ *
422
+ * Get direct managed children of a worktree.
423
+ */
424
+ children<ThrowOnError extends boolean = false>(parameters: {
425
+ directory?: string;
426
+ workspace?: string;
427
+ of: string;
428
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ManagedWorktreeChildrenResponses, ManagedWorktreeChildrenErrors, ThrowOnError, "fields">;
429
+ /**
430
+ * List managed worktree ancestors
431
+ *
432
+ * Get the managed ancestry of a worktree.
433
+ */
434
+ ancestors<ThrowOnError extends boolean = false>(parameters: {
435
+ directory?: string;
436
+ workspace?: string;
437
+ of: string;
438
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ManagedWorktreeAncestorsResponses, ManagedWorktreeAncestorsErrors, ThrowOnError, "fields">;
439
+ }
376
440
  export declare class Background extends HeyApiClient {
377
441
  /**
378
442
  * Inspect background job
@@ -2057,6 +2121,17 @@ export declare class Path extends HeyApiClient {
2057
2121
  workspace?: string;
2058
2122
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PathGetResponses, unknown, ThrowOnError, "fields">;
2059
2123
  }
2124
+ export declare class Diff extends HeyApiClient {
2125
+ /**
2126
+ * Get raw VCS diff
2127
+ *
2128
+ * Retrieve a raw patch for current uncommitted changes.
2129
+ */
2130
+ raw<ThrowOnError extends boolean = false>(parameters?: {
2131
+ directory?: string;
2132
+ workspace?: string;
2133
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<VcsDiffRawResponses, unknown, ThrowOnError, "fields">;
2134
+ }
2060
2135
  export declare class Vcs extends HeyApiClient {
2061
2136
  /**
2062
2137
  * Get VCS info
@@ -2067,6 +2142,27 @@ export declare class Vcs extends HeyApiClient {
2067
2142
  directory?: string;
2068
2143
  workspace?: string;
2069
2144
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<VcsGetResponses, unknown, ThrowOnError, "fields">;
2145
+ /**
2146
+ * Get VCS status
2147
+ *
2148
+ * Retrieve changed files in the current working tree without patches.
2149
+ */
2150
+ status<ThrowOnError extends boolean = false>(parameters?: {
2151
+ directory?: string;
2152
+ workspace?: string;
2153
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<VcsStatusResponses, unknown, ThrowOnError, "fields">;
2154
+ /**
2155
+ * Apply VCS patch
2156
+ *
2157
+ * Apply a raw patch to the current working tree.
2158
+ */
2159
+ apply<ThrowOnError extends boolean = false>(parameters?: {
2160
+ directory?: string;
2161
+ workspace?: string;
2162
+ vcsApplyInput?: VcsApplyInput;
2163
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<VcsApplyResponses, VcsApplyErrors, ThrowOnError, "fields">;
2164
+ private _diff?;
2165
+ get diff(): Diff;
2070
2166
  }
2071
2167
  export declare class Command3 extends HeyApiClient {
2072
2168
  /**
@@ -2282,6 +2378,8 @@ export declare class NikcliClient extends HeyApiClient {
2282
2378
  get worktree(): Worktree;
2283
2379
  private _experimental?;
2284
2380
  get experimental(): Experimental;
2381
+ private _managedWorktree?;
2382
+ get managedWorktree(): ManagedWorktree;
2285
2383
  private _session?;
2286
2384
  get session(): Session2;
2287
2385
  private _part?;
@@ -540,6 +540,7 @@ export class Session extends HeyApiClient {
540
540
  { in: "query", key: "directory" },
541
541
  { in: "query", key: "workspace" },
542
542
  { in: "body", key: "workspaceID" },
543
+ { in: "body", key: "copyChanges" },
543
544
  { in: "body", key: "timeoutMs" },
544
545
  ],
545
546
  },
@@ -641,6 +642,7 @@ export class Workspace extends HeyApiClient {
641
642
  { in: "query", key: "workspace" },
642
643
  { in: "body", key: "id" },
643
644
  { in: "body", key: "sessionID" },
645
+ { in: "body", key: "copyChanges" },
644
646
  { in: "body", key: "timeoutMs" },
645
647
  ],
646
648
  },
@@ -717,6 +719,148 @@ export class Experimental extends HeyApiClient {
717
719
  return (this._resource ??= new Resource({ client: this.client }));
718
720
  }
719
721
  }
722
+ export class ManagedWorktree extends HeyApiClient {
723
+ /**
724
+ * Remove managed worktree
725
+ *
726
+ * Remove a managed worktree and its descendant subtree.
727
+ */
728
+ remove(parameters, options) {
729
+ const params = buildClientParams([parameters], [
730
+ {
731
+ args: [
732
+ { in: "query", key: "directory" },
733
+ { in: "query", key: "workspace" },
734
+ { key: "managedWorktreeRemoveInput", map: "body" },
735
+ ],
736
+ },
737
+ ]);
738
+ return (options?.client ?? this.client).delete({
739
+ url: "/experimental/managed-worktree",
740
+ ...options,
741
+ ...params,
742
+ headers: {
743
+ "Content-Type": "application/json",
744
+ ...options?.headers,
745
+ ...params.headers,
746
+ },
747
+ });
748
+ }
749
+ /**
750
+ * List all managed worktrees
751
+ *
752
+ * Get all registered managed worktrees.
753
+ */
754
+ list(parameters, options) {
755
+ const params = buildClientParams([parameters], [
756
+ {
757
+ args: [
758
+ { in: "query", key: "directory" },
759
+ { in: "query", key: "workspace" },
760
+ ],
761
+ },
762
+ ]);
763
+ return (options?.client ?? this.client).get({
764
+ url: "/experimental/managed-worktree",
765
+ ...options,
766
+ ...params,
767
+ });
768
+ }
769
+ /**
770
+ * Create managed worktree
771
+ *
772
+ * Clone a workspace with copy-on-write support.
773
+ */
774
+ create(parameters, options) {
775
+ const params = buildClientParams([parameters], [
776
+ {
777
+ args: [
778
+ { in: "query", key: "directory" },
779
+ { in: "query", key: "workspace" },
780
+ { key: "managedWorktreeCreateInput", map: "body" },
781
+ ],
782
+ },
783
+ ]);
784
+ return (options?.client ?? this.client).post({
785
+ url: "/experimental/managed-worktree",
786
+ ...options,
787
+ ...params,
788
+ headers: {
789
+ "Content-Type": "application/json",
790
+ ...options?.headers,
791
+ ...params.headers,
792
+ },
793
+ });
794
+ }
795
+ /**
796
+ * Link managed worktree
797
+ *
798
+ * Reconnect a moved managed worktree to its registry record.
799
+ */
800
+ link(parameters, options) {
801
+ const params = buildClientParams([parameters], [
802
+ {
803
+ args: [
804
+ { in: "query", key: "directory" },
805
+ { in: "query", key: "workspace" },
806
+ { key: "managedWorktreeLinkInput", map: "body" },
807
+ ],
808
+ },
809
+ ]);
810
+ return (options?.client ?? this.client).post({
811
+ url: "/experimental/managed-worktree/link",
812
+ ...options,
813
+ ...params,
814
+ headers: {
815
+ "Content-Type": "application/json",
816
+ ...options?.headers,
817
+ ...params.headers,
818
+ },
819
+ });
820
+ }
821
+ /**
822
+ * List managed worktree children
823
+ *
824
+ * Get direct managed children of a worktree.
825
+ */
826
+ children(parameters, options) {
827
+ const params = buildClientParams([parameters], [
828
+ {
829
+ args: [
830
+ { in: "query", key: "directory" },
831
+ { in: "query", key: "workspace" },
832
+ { in: "query", key: "of" },
833
+ ],
834
+ },
835
+ ]);
836
+ return (options?.client ?? this.client).get({
837
+ url: "/experimental/managed-worktree/children",
838
+ ...options,
839
+ ...params,
840
+ });
841
+ }
842
+ /**
843
+ * List managed worktree ancestors
844
+ *
845
+ * Get the managed ancestry of a worktree.
846
+ */
847
+ ancestors(parameters, options) {
848
+ const params = buildClientParams([parameters], [
849
+ {
850
+ args: [
851
+ { in: "query", key: "directory" },
852
+ { in: "query", key: "workspace" },
853
+ { in: "query", key: "of" },
854
+ ],
855
+ },
856
+ ]);
857
+ return (options?.client ?? this.client).get({
858
+ url: "/experimental/managed-worktree/ancestors",
859
+ ...options,
860
+ ...params,
861
+ });
862
+ }
863
+ }
720
864
  export class Background extends HeyApiClient {
721
865
  /**
722
866
  * Inspect background job
@@ -4280,6 +4424,28 @@ export class Path extends HeyApiClient {
4280
4424
  });
4281
4425
  }
4282
4426
  }
4427
+ export class Diff extends HeyApiClient {
4428
+ /**
4429
+ * Get raw VCS diff
4430
+ *
4431
+ * Retrieve a raw patch for current uncommitted changes.
4432
+ */
4433
+ raw(parameters, options) {
4434
+ const params = buildClientParams([parameters], [
4435
+ {
4436
+ args: [
4437
+ { in: "query", key: "directory" },
4438
+ { in: "query", key: "workspace" },
4439
+ ],
4440
+ },
4441
+ ]);
4442
+ return (options?.client ?? this.client).get({
4443
+ url: "/vcs/diff/raw",
4444
+ ...options,
4445
+ ...params,
4446
+ });
4447
+ }
4448
+ }
4283
4449
  export class Vcs extends HeyApiClient {
4284
4450
  /**
4285
4451
  * Get VCS info
@@ -4301,6 +4467,56 @@ export class Vcs extends HeyApiClient {
4301
4467
  ...params,
4302
4468
  });
4303
4469
  }
4470
+ /**
4471
+ * Get VCS status
4472
+ *
4473
+ * Retrieve changed files in the current working tree without patches.
4474
+ */
4475
+ status(parameters, options) {
4476
+ const params = buildClientParams([parameters], [
4477
+ {
4478
+ args: [
4479
+ { in: "query", key: "directory" },
4480
+ { in: "query", key: "workspace" },
4481
+ ],
4482
+ },
4483
+ ]);
4484
+ return (options?.client ?? this.client).get({
4485
+ url: "/vcs/status",
4486
+ ...options,
4487
+ ...params,
4488
+ });
4489
+ }
4490
+ /**
4491
+ * Apply VCS patch
4492
+ *
4493
+ * Apply a raw patch to the current working tree.
4494
+ */
4495
+ apply(parameters, options) {
4496
+ const params = buildClientParams([parameters], [
4497
+ {
4498
+ args: [
4499
+ { in: "query", key: "directory" },
4500
+ { in: "query", key: "workspace" },
4501
+ { key: "vcsApplyInput", map: "body" },
4502
+ ],
4503
+ },
4504
+ ]);
4505
+ return (options?.client ?? this.client).post({
4506
+ url: "/vcs/apply",
4507
+ ...options,
4508
+ ...params,
4509
+ headers: {
4510
+ "Content-Type": "application/json",
4511
+ ...options?.headers,
4512
+ ...params.headers,
4513
+ },
4514
+ });
4515
+ }
4516
+ _diff;
4517
+ get diff() {
4518
+ return (this._diff ??= new Diff({ client: this.client }));
4519
+ }
4304
4520
  }
4305
4521
  export class Command3 extends HeyApiClient {
4306
4522
  /**
@@ -4802,6 +5018,10 @@ export class NikcliClient extends HeyApiClient {
4802
5018
  get experimental() {
4803
5019
  return (this._experimental ??= new Experimental({ client: this.client }));
4804
5020
  }
5021
+ _managedWorktree;
5022
+ get managedWorktree() {
5023
+ return (this._managedWorktree ??= new ManagedWorktree({ client: this.client }));
5024
+ }
4805
5025
  _session;
4806
5026
  get session() {
4807
5027
  return (this._session ??= new Session2({ client: this.client }));
@@ -624,6 +624,19 @@ export type EventCommandExecuted = {
624
624
  messageID: string;
625
625
  };
626
626
  };
627
+ export type EventFileWatcherUpdated = {
628
+ type: "file.watcher.updated";
629
+ properties: {
630
+ file: string;
631
+ event: "add" | "change" | "unlink";
632
+ };
633
+ };
634
+ export type EventVcsBranchUpdated = {
635
+ type: "vcs.branch.updated";
636
+ properties: {
637
+ branch?: string;
638
+ };
639
+ };
627
640
  export type EventWorkspaceReady = {
628
641
  type: "workspace.ready";
629
642
  properties: {
@@ -778,13 +791,6 @@ export type EventTodoUpdated = {
778
791
  };
779
792
  };
780
793
  };
781
- export type EventFileWatcherUpdated = {
782
- type: "file.watcher.updated";
783
- properties: {
784
- file: string;
785
- event: "add" | "change" | "unlink";
786
- };
787
- };
788
794
  export type SessionGithub = {
789
795
  owner: string;
790
796
  repo: string;
@@ -899,12 +905,6 @@ export type EventSessionError = {
899
905
  error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageContextOverflowError | MessageAbortedError | StructuredOutputError | ApiError;
900
906
  };
901
907
  };
902
- export type EventVcsBranchUpdated = {
903
- type: "vcs.branch.updated";
904
- properties: {
905
- branch?: string;
906
- };
907
- };
908
908
  export type Pty = {
909
909
  id: string;
910
910
  title: string;
@@ -939,7 +939,7 @@ export type EventPtyDeleted = {
939
939
  id: string;
940
940
  };
941
941
  };
942
- export type Event = EventProjectUpdated | EventServerInstanceDisposed | EventInstallationUpdated | EventInstallationUpdateAvailable | EventServerConnected | EventGlobalDisposed | EventLspClientDiagnostics | EventLspUpdated | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventPermissionAsked | EventPermissionReplied | EventSessionStatus | EventSessionIdle | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionCompacted | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceStatus | EventMonitorCreated | EventMonitorUpdated | EventMonitorOutput | EventMonitorCompleted | EventDelegationCompleted | EventFileEdited | EventTodoUpdated | EventFileWatcherUpdated | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionDiff | EventSessionError | EventVcsBranchUpdated | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted;
942
+ export type Event = EventProjectUpdated | EventServerInstanceDisposed | EventInstallationUpdated | EventInstallationUpdateAvailable | EventServerConnected | EventGlobalDisposed | EventLspClientDiagnostics | EventLspUpdated | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventPermissionAsked | EventPermissionReplied | EventSessionStatus | EventSessionIdle | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionCompacted | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventFileWatcherUpdated | EventVcsBranchUpdated | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceStatus | EventMonitorCreated | EventMonitorUpdated | EventMonitorOutput | EventMonitorCompleted | EventDelegationCompleted | EventFileEdited | EventTodoUpdated | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionDiff | EventSessionError | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted;
943
943
  export type GlobalEvent = {
944
944
  directory: string;
945
945
  payload: Event;
@@ -1671,7 +1671,15 @@ export type ProviderConfig = {
1671
1671
  * Timeout in milliseconds for requests to this provider. Default is 300000 (5 minutes). Set to false to disable timeout.
1672
1672
  */
1673
1673
  timeout?: number | false;
1674
- [key: string]: unknown | string | boolean | number | false | undefined;
1674
+ /**
1675
+ * Timeout in milliseconds to wait for response headers. Provider integrations may set defaults. Set to false to disable timeout.
1676
+ */
1677
+ headerTimeout?: number | false;
1678
+ /**
1679
+ * Timeout in milliseconds between streamed SSE chunks for this provider. If no chunk arrives within this window, the request is aborted.
1680
+ */
1681
+ chunkTimeout?: number;
1682
+ [key: string]: unknown | string | boolean | number | false | number | false | number | undefined;
1675
1683
  };
1676
1684
  };
1677
1685
  export type McpLocalConfig = {
@@ -2455,6 +2463,7 @@ export type Workspace = {
2455
2463
  config: {
2456
2464
  directory: string;
2457
2465
  type: "worktree";
2466
+ strategy?: "git" | "cow";
2458
2467
  eventLimit?: number;
2459
2468
  } | {
2460
2469
  directory: string;
@@ -2491,6 +2500,26 @@ export type McpResource = {
2491
2500
  mimeType?: string;
2492
2501
  client: string;
2493
2502
  };
2503
+ export type ManagedWorktreeInfo = {
2504
+ id: string;
2505
+ parentId?: string | null;
2506
+ name: string;
2507
+ branch: string;
2508
+ directory: string;
2509
+ createdAt: number;
2510
+ };
2511
+ export type ManagedWorktreeCreateInput = {
2512
+ from: string;
2513
+ name?: string;
2514
+ into?: string;
2515
+ };
2516
+ export type ManagedWorktreeRemoveInput = {
2517
+ at: string;
2518
+ };
2519
+ export type ManagedWorktreeLinkInput = {
2520
+ at: string;
2521
+ to?: string;
2522
+ };
2494
2523
  export type TextPartInput = {
2495
2524
  id?: string;
2496
2525
  type: "text";
@@ -2899,6 +2928,18 @@ export type Path = {
2899
2928
  export type VcsInfo = {
2900
2929
  branch: string;
2901
2930
  };
2931
+ export type VcsFileStatus = {
2932
+ file: string;
2933
+ additions: number;
2934
+ deletions: number;
2935
+ status: "added" | "deleted" | "modified";
2936
+ };
2937
+ export type VcsApplyResult = {
2938
+ applied: boolean;
2939
+ };
2940
+ export type VcsApplyInput = {
2941
+ patch: string;
2942
+ };
2902
2943
  export type Command = {
2903
2944
  name: string;
2904
2945
  description?: string;
@@ -2967,6 +3008,8 @@ export type WellKnownAuth = {
2967
3008
  token: string;
2968
3009
  };
2969
3010
  export type Auth = OAuth | ApiAuth | WellKnownAuth;
3011
+ export type ManagedWorktreeChildrenInput = string;
3012
+ export type ManagedWorktreeAncestorsInput = string;
2970
3013
  export type GetSShareIdData = {
2971
3014
  body?: never;
2972
3015
  path: {
@@ -3569,6 +3612,7 @@ export type ExperimentalWorkspaceCreateData = {
3569
3612
  config: {
3570
3613
  directory: string;
3571
3614
  type: "worktree";
3615
+ strategy?: "git" | "cow";
3572
3616
  eventLimit?: number;
3573
3617
  } | {
3574
3618
  directory: string;
@@ -3669,6 +3713,7 @@ export type ExperimentalWorkspaceWarpData = {
3669
3713
  body?: {
3670
3714
  id: string | null;
3671
3715
  sessionID: string;
3716
+ copyChanges?: boolean;
3672
3717
  timeoutMs?: number;
3673
3718
  };
3674
3719
  path?: never;
@@ -3699,6 +3744,7 @@ export type ExperimentalWorkspaceWarpResponse = ExperimentalWorkspaceWarpRespons
3699
3744
  export type ExperimentalWorkspaceSessionWarpData = {
3700
3745
  body?: {
3701
3746
  workspaceID: string | null;
3747
+ copyChanges?: boolean;
3702
3748
  timeoutMs?: number;
3703
3749
  };
3704
3750
  path: {
@@ -3788,6 +3834,146 @@ export type ExperimentalResourceListResponses = {
3788
3834
  };
3789
3835
  };
3790
3836
  export type ExperimentalResourceListResponse = ExperimentalResourceListResponses[keyof ExperimentalResourceListResponses];
3837
+ export type ManagedWorktreeRemoveData = {
3838
+ body?: ManagedWorktreeRemoveInput;
3839
+ path?: never;
3840
+ query?: {
3841
+ directory?: string;
3842
+ workspace?: string;
3843
+ };
3844
+ url: "/experimental/managed-worktree";
3845
+ };
3846
+ export type ManagedWorktreeRemoveErrors = {
3847
+ /**
3848
+ * Bad request
3849
+ */
3850
+ 400: BadRequestError;
3851
+ };
3852
+ export type ManagedWorktreeRemoveError = ManagedWorktreeRemoveErrors[keyof ManagedWorktreeRemoveErrors];
3853
+ export type ManagedWorktreeRemoveResponses = {
3854
+ /**
3855
+ * Managed worktree removed
3856
+ */
3857
+ 200: null;
3858
+ };
3859
+ export type ManagedWorktreeRemoveResponse = ManagedWorktreeRemoveResponses[keyof ManagedWorktreeRemoveResponses];
3860
+ export type ManagedWorktreeListData = {
3861
+ body?: never;
3862
+ path?: never;
3863
+ query?: {
3864
+ directory?: string;
3865
+ workspace?: string;
3866
+ };
3867
+ url: "/experimental/managed-worktree";
3868
+ };
3869
+ export type ManagedWorktreeListErrors = {
3870
+ /**
3871
+ * Bad request
3872
+ */
3873
+ 400: BadRequestError;
3874
+ };
3875
+ export type ManagedWorktreeListError = ManagedWorktreeListErrors[keyof ManagedWorktreeListErrors];
3876
+ export type ManagedWorktreeListResponses = {
3877
+ /**
3878
+ * Managed worktrees
3879
+ */
3880
+ 200: Array<ManagedWorktreeInfo>;
3881
+ };
3882
+ export type ManagedWorktreeListResponse = ManagedWorktreeListResponses[keyof ManagedWorktreeListResponses];
3883
+ export type ManagedWorktreeCreateData = {
3884
+ body?: ManagedWorktreeCreateInput;
3885
+ path?: never;
3886
+ query?: {
3887
+ directory?: string;
3888
+ workspace?: string;
3889
+ };
3890
+ url: "/experimental/managed-worktree";
3891
+ };
3892
+ export type ManagedWorktreeCreateErrors = {
3893
+ /**
3894
+ * Bad request
3895
+ */
3896
+ 400: BadRequestError;
3897
+ };
3898
+ export type ManagedWorktreeCreateError = ManagedWorktreeCreateErrors[keyof ManagedWorktreeCreateErrors];
3899
+ export type ManagedWorktreeCreateResponses = {
3900
+ /**
3901
+ * Managed worktree created
3902
+ */
3903
+ 200: ManagedWorktreeInfo;
3904
+ };
3905
+ export type ManagedWorktreeCreateResponse = ManagedWorktreeCreateResponses[keyof ManagedWorktreeCreateResponses];
3906
+ export type ManagedWorktreeLinkData = {
3907
+ body?: ManagedWorktreeLinkInput;
3908
+ path?: never;
3909
+ query?: {
3910
+ directory?: string;
3911
+ workspace?: string;
3912
+ };
3913
+ url: "/experimental/managed-worktree/link";
3914
+ };
3915
+ export type ManagedWorktreeLinkErrors = {
3916
+ /**
3917
+ * Bad request
3918
+ */
3919
+ 400: BadRequestError;
3920
+ };
3921
+ export type ManagedWorktreeLinkError = ManagedWorktreeLinkErrors[keyof ManagedWorktreeLinkErrors];
3922
+ export type ManagedWorktreeLinkResponses = {
3923
+ /**
3924
+ * Managed worktree linked
3925
+ */
3926
+ 200: ManagedWorktreeInfo;
3927
+ };
3928
+ export type ManagedWorktreeLinkResponse = ManagedWorktreeLinkResponses[keyof ManagedWorktreeLinkResponses];
3929
+ export type ManagedWorktreeChildrenData = {
3930
+ body?: never;
3931
+ path?: never;
3932
+ query: {
3933
+ directory?: string;
3934
+ workspace?: string;
3935
+ of: string;
3936
+ };
3937
+ url: "/experimental/managed-worktree/children";
3938
+ };
3939
+ export type ManagedWorktreeChildrenErrors = {
3940
+ /**
3941
+ * Bad request
3942
+ */
3943
+ 400: BadRequestError;
3944
+ };
3945
+ export type ManagedWorktreeChildrenError = ManagedWorktreeChildrenErrors[keyof ManagedWorktreeChildrenErrors];
3946
+ export type ManagedWorktreeChildrenResponses = {
3947
+ /**
3948
+ * Managed worktree children
3949
+ */
3950
+ 200: Array<ManagedWorktreeInfo>;
3951
+ };
3952
+ export type ManagedWorktreeChildrenResponse = ManagedWorktreeChildrenResponses[keyof ManagedWorktreeChildrenResponses];
3953
+ export type ManagedWorktreeAncestorsData = {
3954
+ body?: never;
3955
+ path?: never;
3956
+ query: {
3957
+ directory?: string;
3958
+ workspace?: string;
3959
+ of: string;
3960
+ };
3961
+ url: "/experimental/managed-worktree/ancestors";
3962
+ };
3963
+ export type ManagedWorktreeAncestorsErrors = {
3964
+ /**
3965
+ * Bad request
3966
+ */
3967
+ 400: BadRequestError;
3968
+ };
3969
+ export type ManagedWorktreeAncestorsError = ManagedWorktreeAncestorsErrors[keyof ManagedWorktreeAncestorsErrors];
3970
+ export type ManagedWorktreeAncestorsResponses = {
3971
+ /**
3972
+ * Managed worktree ancestors
3973
+ */
3974
+ 200: Array<ManagedWorktreeInfo>;
3975
+ };
3976
+ export type ManagedWorktreeAncestorsResponse = ManagedWorktreeAncestorsResponses[keyof ManagedWorktreeAncestorsResponses];
3791
3977
  export type SessionListData = {
3792
3978
  body?: never;
3793
3979
  path?: never;
@@ -7705,6 +7891,61 @@ export type VcsGetResponses = {
7705
7891
  200: VcsInfo;
7706
7892
  };
7707
7893
  export type VcsGetResponse = VcsGetResponses[keyof VcsGetResponses];
7894
+ export type VcsStatusData = {
7895
+ body?: never;
7896
+ path?: never;
7897
+ query?: {
7898
+ directory?: string;
7899
+ workspace?: string;
7900
+ };
7901
+ url: "/vcs/status";
7902
+ };
7903
+ export type VcsStatusResponses = {
7904
+ /**
7905
+ * VCS status
7906
+ */
7907
+ 200: Array<VcsFileStatus>;
7908
+ };
7909
+ export type VcsStatusResponse = VcsStatusResponses[keyof VcsStatusResponses];
7910
+ export type VcsDiffRawData = {
7911
+ body?: never;
7912
+ path?: never;
7913
+ query?: {
7914
+ directory?: string;
7915
+ workspace?: string;
7916
+ };
7917
+ url: "/vcs/diff/raw";
7918
+ };
7919
+ export type VcsDiffRawResponses = {
7920
+ /**
7921
+ * Raw VCS diff
7922
+ */
7923
+ 200: string;
7924
+ };
7925
+ export type VcsDiffRawResponse = VcsDiffRawResponses[keyof VcsDiffRawResponses];
7926
+ export type VcsApplyData = {
7927
+ body?: VcsApplyInput;
7928
+ path?: never;
7929
+ query?: {
7930
+ directory?: string;
7931
+ workspace?: string;
7932
+ };
7933
+ url: "/vcs/apply";
7934
+ };
7935
+ export type VcsApplyErrors = {
7936
+ /**
7937
+ * Bad request
7938
+ */
7939
+ 400: BadRequestError;
7940
+ };
7941
+ export type VcsApplyError = VcsApplyErrors[keyof VcsApplyErrors];
7942
+ export type VcsApplyResponses = {
7943
+ /**
7944
+ * VCS patch applied
7945
+ */
7946
+ 200: VcsApplyResult;
7947
+ };
7948
+ export type VcsApplyResponse = VcsApplyResponses[keyof VcsApplyResponses];
7708
7949
  export type CommandListData = {
7709
7950
  body?: never;
7710
7951
  path?: never;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@nikcli-ai/sdk",
4
- "version": "1.36.0",
4
+ "version": "1.38.0",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {