@nikcli-ai/sdk 1.61.0 → 1.63.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/v2/gen/sdk.gen.d.ts +25 -1
- package/dist/v2/gen/sdk.gen.js +48 -0
- package/dist/v2/gen/types.gen.d.ts +208 -1
- package/package.json +1 -1
package/dist/v2/gen/sdk.gen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Client, type Options as Options2, type TDataShape } from "./client/index.js";
|
|
2
|
-
import type { 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, ExperimentalWorkspaceStatusResponses, ExperimentalWorkspaceSyncListResponses, ExperimentalWorkspaceWarpErrors, ExperimentalWorkspaceWarpResponses, FileListResponses, FilePartInput, FilePartSource, FileReadResponses, FileStatusResponses, FileWriteResponses, FindFilesResponses, FindSymbolsResponses, FindTextResponses, FormatterStatusResponses, GetApiShareShareIdDataResponses, GetApiShareShareIdResponses, GetShareShareIdResponses, GetSShareIdResponses, GlobalDisposeResponses, GlobalEventResponses, GlobalHealthResponses, InstanceDisposeResponses, LoopDeleteErrors, LoopDeleteResponses, LoopGenerateErrors, LoopGenerateResponses, LoopGetErrors, LoopGetResponses, LoopListErrors, LoopListResponses, LoopPauseResponses, LoopRecentRunsResponses, LoopResumeErrors, LoopResumeResponses, LoopRunErrors, LoopRunResponses, LoopRunsResponses, LoopTemplatesResponses, LoopToggleErrors, LoopToggleResponses, LoopUpdateErrors, LoopUpdateResponses, LoopUpsertErrors, LoopUpsertResponses, 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, MobileLoopAbortErrors, MobileLoopAbortResponses, MobileLoopCreateErrors, MobileLoopCreateResponses, MobileLoopDeleteErrors, MobileLoopDeleteResponses, MobileLoopGenerateErrors, MobileLoopGenerateInput, MobileLoopGenerateResponses, MobileLoopGetErrors, MobileLoopGetResponses, MobileLoopListErrors, MobileLoopListResponses, MobileLoopPauseErrors, MobileLoopPauseResponses, MobileLoopResumeErrors, MobileLoopResumeResponses, MobileLoopRunErrors, MobileLoopRunResponses, MobileLoopRunsErrors, MobileLoopRunsRecentErrors, MobileLoopRunsRecentResponses, MobileLoopRunsResponses, MobileLoopTemplatesResponses, MobileLoopToggleErrors, MobileLoopToggleResponses, MobileLoopUpdateErrors, MobileLoopUpdateResponses, MobileLoopWriteInput, 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, SessionContextErrors, SessionContextResponses, SessionContextToggleErrors, SessionContextToggleResponses, 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";
|
|
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, ExperimentalWorkspaceStatusResponses, ExperimentalWorkspaceSyncListResponses, ExperimentalWorkspaceWarpErrors, ExperimentalWorkspaceWarpResponses, FileListResponses, FilePartInput, FilePartSource, FileReadResponses, FileStatusResponses, FileWriteResponses, FindFilesResponses, FindSymbolsResponses, FindTextResponses, FormatterStatusResponses, GetApiShareShareIdDataResponses, GetApiShareShareIdResponses, GetShareShareIdResponses, GetSShareIdResponses, GlobalDisposeResponses, GlobalEventResponses, GlobalHealthResponses, InstanceDisposeResponses, LoopDeleteErrors, LoopDeleteResponses, LoopGenerateErrors, LoopGenerateResponses, LoopGetErrors, LoopGetResponses, LoopListErrors, LoopListResponses, LoopPauseResponses, LoopRecentRunsResponses, LoopResumeErrors, LoopResumeResponses, LoopRunErrors, LoopRunResponses, LoopRunsResponses, LoopTemplatesResponses, LoopToggleErrors, LoopToggleResponses, LoopUpdateErrors, LoopUpdateResponses, LoopUpsertErrors, LoopUpsertResponses, 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, MobileLoopAbortErrors, MobileLoopAbortResponses, MobileLoopCreateErrors, MobileLoopCreateResponses, MobileLoopDeleteErrors, MobileLoopDeleteResponses, MobileLoopGenerateErrors, MobileLoopGenerateInput, MobileLoopGenerateResponses, MobileLoopGetErrors, MobileLoopGetResponses, MobileLoopListErrors, MobileLoopListResponses, MobileLoopPauseErrors, MobileLoopPauseResponses, MobileLoopResumeErrors, MobileLoopResumeResponses, MobileLoopRunErrors, MobileLoopRunResponses, MobileLoopRunsErrors, MobileLoopRunsRecentErrors, MobileLoopRunsRecentResponses, MobileLoopRunsResponses, MobileLoopTemplatesResponses, MobileLoopToggleErrors, MobileLoopToggleResponses, MobileLoopUpdateErrors, MobileLoopUpdateResponses, MobileLoopWriteInput, 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, SessionContextErrors, SessionContextResponses, SessionContextToggleErrors, SessionContextToggleResponses, 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, SessionV2EntriesErrors, SessionV2EntriesResponses, SessionV2StateErrors, SessionV2StateResponses, 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
|
|
@@ -657,6 +657,28 @@ export declare class Background extends HeyApiClient {
|
|
|
657
657
|
workspace?: string;
|
|
658
658
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionBackgroundCancelResponses, SessionBackgroundCancelErrors, ThrowOnError, "fields">;
|
|
659
659
|
}
|
|
660
|
+
export declare class V2 extends HeyApiClient {
|
|
661
|
+
/**
|
|
662
|
+
* Get session v2 entries
|
|
663
|
+
*
|
|
664
|
+
* Retrieve the session as v2 entries: committed messages converted from storage plus the live in-flight assistant tail. Experimental — the v2 read model is documented in specs/v2/message-shape.md.
|
|
665
|
+
*/
|
|
666
|
+
entries<ThrowOnError extends boolean = false>(parameters: {
|
|
667
|
+
sessionID: string;
|
|
668
|
+
directory?: string;
|
|
669
|
+
workspace?: string;
|
|
670
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionV2EntriesResponses, SessionV2EntriesErrors, ThrowOnError, "fields">;
|
|
671
|
+
/**
|
|
672
|
+
* Get live session v2 state
|
|
673
|
+
*
|
|
674
|
+
* Retrieve the live v2 state for a session: `pending` holds the in-flight assistant work reduced by the v2 stepper. Entry-grade changes are announced on the bus as `session.v2.updated`. Experimental.
|
|
675
|
+
*/
|
|
676
|
+
state<ThrowOnError extends boolean = false>(parameters: {
|
|
677
|
+
sessionID: string;
|
|
678
|
+
directory?: string;
|
|
679
|
+
workspace?: string;
|
|
680
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionV2StateResponses, SessionV2StateErrors, ThrowOnError, "fields">;
|
|
681
|
+
}
|
|
660
682
|
export declare class Session2 extends HeyApiClient {
|
|
661
683
|
/**
|
|
662
684
|
* List sessions
|
|
@@ -1042,6 +1064,8 @@ export declare class Session2 extends HeyApiClient {
|
|
|
1042
1064
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionMonitorCancelResponses, SessionMonitorCancelErrors, ThrowOnError, "fields">;
|
|
1043
1065
|
private _background?;
|
|
1044
1066
|
get background2(): Background;
|
|
1067
|
+
private _v2?;
|
|
1068
|
+
get v2(): V2;
|
|
1045
1069
|
}
|
|
1046
1070
|
export declare class Part extends HeyApiClient {
|
|
1047
1071
|
/**
|
package/dist/v2/gen/sdk.gen.js
CHANGED
|
@@ -1285,6 +1285,50 @@ export class Background extends HeyApiClient {
|
|
|
1285
1285
|
});
|
|
1286
1286
|
}
|
|
1287
1287
|
}
|
|
1288
|
+
export class V2 extends HeyApiClient {
|
|
1289
|
+
/**
|
|
1290
|
+
* Get session v2 entries
|
|
1291
|
+
*
|
|
1292
|
+
* Retrieve the session as v2 entries: committed messages converted from storage plus the live in-flight assistant tail. Experimental — the v2 read model is documented in specs/v2/message-shape.md.
|
|
1293
|
+
*/
|
|
1294
|
+
entries(parameters, options) {
|
|
1295
|
+
const params = buildClientParams([parameters], [
|
|
1296
|
+
{
|
|
1297
|
+
args: [
|
|
1298
|
+
{ in: "path", key: "sessionID" },
|
|
1299
|
+
{ in: "query", key: "directory" },
|
|
1300
|
+
{ in: "query", key: "workspace" },
|
|
1301
|
+
],
|
|
1302
|
+
},
|
|
1303
|
+
]);
|
|
1304
|
+
return (options?.client ?? this.client).get({
|
|
1305
|
+
url: "/session/{sessionID}/v2/entries",
|
|
1306
|
+
...options,
|
|
1307
|
+
...params,
|
|
1308
|
+
});
|
|
1309
|
+
}
|
|
1310
|
+
/**
|
|
1311
|
+
* Get live session v2 state
|
|
1312
|
+
*
|
|
1313
|
+
* Retrieve the live v2 state for a session: `pending` holds the in-flight assistant work reduced by the v2 stepper. Entry-grade changes are announced on the bus as `session.v2.updated`. Experimental.
|
|
1314
|
+
*/
|
|
1315
|
+
state(parameters, options) {
|
|
1316
|
+
const params = buildClientParams([parameters], [
|
|
1317
|
+
{
|
|
1318
|
+
args: [
|
|
1319
|
+
{ in: "path", key: "sessionID" },
|
|
1320
|
+
{ in: "query", key: "directory" },
|
|
1321
|
+
{ in: "query", key: "workspace" },
|
|
1322
|
+
],
|
|
1323
|
+
},
|
|
1324
|
+
]);
|
|
1325
|
+
return (options?.client ?? this.client).get({
|
|
1326
|
+
url: "/session/{sessionID}/v2/state",
|
|
1327
|
+
...options,
|
|
1328
|
+
...params,
|
|
1329
|
+
});
|
|
1330
|
+
}
|
|
1331
|
+
}
|
|
1288
1332
|
export class Session2 extends HeyApiClient {
|
|
1289
1333
|
/**
|
|
1290
1334
|
* List sessions
|
|
@@ -2033,6 +2077,10 @@ export class Session2 extends HeyApiClient {
|
|
|
2033
2077
|
get background2() {
|
|
2034
2078
|
return (this._background ??= new Background({ client: this.client }));
|
|
2035
2079
|
}
|
|
2080
|
+
_v2;
|
|
2081
|
+
get v2() {
|
|
2082
|
+
return (this._v2 ??= new V2({ client: this.client }));
|
|
2083
|
+
}
|
|
2036
2084
|
}
|
|
2037
2085
|
export class Part extends HeyApiClient {
|
|
2038
2086
|
/**
|
|
@@ -957,6 +957,12 @@ export type EventLoopAborted = {
|
|
|
957
957
|
reason: string;
|
|
958
958
|
};
|
|
959
959
|
};
|
|
960
|
+
export type EventSessionV2Updated = {
|
|
961
|
+
type: "session.v2.updated";
|
|
962
|
+
properties: {
|
|
963
|
+
sessionID: string;
|
|
964
|
+
};
|
|
965
|
+
};
|
|
960
966
|
export type Pty = {
|
|
961
967
|
id: string;
|
|
962
968
|
title: string;
|
|
@@ -991,7 +997,7 @@ export type EventPtyDeleted = {
|
|
|
991
997
|
id: string;
|
|
992
998
|
};
|
|
993
999
|
};
|
|
994
|
-
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 | EventLoopUpserted | EventLoopRemoved | EventLoopRunStarted | EventLoopRunFinished | EventLoopRuntimeChanged | EventLoopAborted | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted;
|
|
1000
|
+
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 | EventLoopUpserted | EventLoopRemoved | EventLoopRunStarted | EventLoopRunFinished | EventLoopRuntimeChanged | EventLoopAborted | EventSessionV2Updated | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted;
|
|
995
1001
|
export type GlobalEvent = {
|
|
996
1002
|
directory: string;
|
|
997
1003
|
payload: Event;
|
|
@@ -2671,6 +2677,140 @@ export type ManagedWorktreeLinkInput = {
|
|
|
2671
2677
|
at: string;
|
|
2672
2678
|
to?: string;
|
|
2673
2679
|
};
|
|
2680
|
+
export type SessionEntryUser = {
|
|
2681
|
+
id: string;
|
|
2682
|
+
sessionID: string;
|
|
2683
|
+
timestamp: number;
|
|
2684
|
+
metadata?: {
|
|
2685
|
+
[key: string]: unknown;
|
|
2686
|
+
};
|
|
2687
|
+
role: "user";
|
|
2688
|
+
text: string;
|
|
2689
|
+
files?: Array<FilePart>;
|
|
2690
|
+
agents?: Array<AgentPart>;
|
|
2691
|
+
};
|
|
2692
|
+
export type SessionEntrySynthetic = {
|
|
2693
|
+
id: string;
|
|
2694
|
+
sessionID: string;
|
|
2695
|
+
timestamp: number;
|
|
2696
|
+
metadata?: {
|
|
2697
|
+
[key: string]: unknown;
|
|
2698
|
+
};
|
|
2699
|
+
role: "synthetic";
|
|
2700
|
+
text: string;
|
|
2701
|
+
roleType?: "system" | "user" | "assistant";
|
|
2702
|
+
};
|
|
2703
|
+
export type SessionEntryAssistantText = {
|
|
2704
|
+
id: string;
|
|
2705
|
+
sessionID: string;
|
|
2706
|
+
timestamp: number;
|
|
2707
|
+
metadata?: {
|
|
2708
|
+
[key: string]: unknown;
|
|
2709
|
+
};
|
|
2710
|
+
role: "assistant";
|
|
2711
|
+
sub: "text";
|
|
2712
|
+
modelID: string;
|
|
2713
|
+
providerID: string;
|
|
2714
|
+
agent: string;
|
|
2715
|
+
finish?: string;
|
|
2716
|
+
parts: Array<{
|
|
2717
|
+
type: "text";
|
|
2718
|
+
text: string;
|
|
2719
|
+
ignored?: boolean;
|
|
2720
|
+
metadata?: {
|
|
2721
|
+
[key: string]: unknown;
|
|
2722
|
+
};
|
|
2723
|
+
ref?: string;
|
|
2724
|
+
} | {
|
|
2725
|
+
type: "reasoning";
|
|
2726
|
+
text: string;
|
|
2727
|
+
metadata?: {
|
|
2728
|
+
[key: string]: unknown;
|
|
2729
|
+
};
|
|
2730
|
+
ref?: string;
|
|
2731
|
+
} | {
|
|
2732
|
+
type: "tool-call";
|
|
2733
|
+
toolCallId: string;
|
|
2734
|
+
toolName: string;
|
|
2735
|
+
args: {
|
|
2736
|
+
[key: string]: unknown;
|
|
2737
|
+
};
|
|
2738
|
+
argsText?: string;
|
|
2739
|
+
ref?: string;
|
|
2740
|
+
} | {
|
|
2741
|
+
type: "tool-result";
|
|
2742
|
+
toolCallId: string;
|
|
2743
|
+
toolName: string;
|
|
2744
|
+
result: string;
|
|
2745
|
+
error?: boolean;
|
|
2746
|
+
attachments?: Array<FilePart>;
|
|
2747
|
+
ref?: string;
|
|
2748
|
+
}>;
|
|
2749
|
+
};
|
|
2750
|
+
export type SessionEntryAssistantReasoning = {
|
|
2751
|
+
id: string;
|
|
2752
|
+
sessionID: string;
|
|
2753
|
+
timestamp: number;
|
|
2754
|
+
metadata?: {
|
|
2755
|
+
[key: string]: unknown;
|
|
2756
|
+
};
|
|
2757
|
+
role: "assistant";
|
|
2758
|
+
sub: "reasoning";
|
|
2759
|
+
modelID: string;
|
|
2760
|
+
providerID: string;
|
|
2761
|
+
agent: string;
|
|
2762
|
+
parts: Array<{
|
|
2763
|
+
type: "reasoning";
|
|
2764
|
+
text: string;
|
|
2765
|
+
metadata?: {
|
|
2766
|
+
[key: string]: unknown;
|
|
2767
|
+
};
|
|
2768
|
+
ref?: string;
|
|
2769
|
+
}>;
|
|
2770
|
+
};
|
|
2771
|
+
export type SessionEntryAssistantTool = {
|
|
2772
|
+
id: string;
|
|
2773
|
+
sessionID: string;
|
|
2774
|
+
timestamp: number;
|
|
2775
|
+
metadata?: {
|
|
2776
|
+
[key: string]: unknown;
|
|
2777
|
+
};
|
|
2778
|
+
role: "assistant";
|
|
2779
|
+
sub: "tool";
|
|
2780
|
+
modelID: string;
|
|
2781
|
+
providerID: string;
|
|
2782
|
+
agent: string;
|
|
2783
|
+
parts: Array<{
|
|
2784
|
+
type: "tool-call";
|
|
2785
|
+
toolCallId: string;
|
|
2786
|
+
toolName: string;
|
|
2787
|
+
args: {
|
|
2788
|
+
[key: string]: unknown;
|
|
2789
|
+
};
|
|
2790
|
+
argsText?: string;
|
|
2791
|
+
ref?: string;
|
|
2792
|
+
} | {
|
|
2793
|
+
type: "tool-result";
|
|
2794
|
+
toolCallId: string;
|
|
2795
|
+
toolName: string;
|
|
2796
|
+
result: string;
|
|
2797
|
+
error?: boolean;
|
|
2798
|
+
attachments?: Array<FilePart>;
|
|
2799
|
+
ref?: string;
|
|
2800
|
+
}>;
|
|
2801
|
+
};
|
|
2802
|
+
export type SessionEntryAssistantRetry = {
|
|
2803
|
+
id: string;
|
|
2804
|
+
sessionID: string;
|
|
2805
|
+
timestamp: number;
|
|
2806
|
+
metadata?: {
|
|
2807
|
+
[key: string]: unknown;
|
|
2808
|
+
};
|
|
2809
|
+
role: "assistant";
|
|
2810
|
+
sub: "retry";
|
|
2811
|
+
attempt: number;
|
|
2812
|
+
error: ApiError;
|
|
2813
|
+
};
|
|
2674
2814
|
export type TextPartInput = {
|
|
2675
2815
|
id?: string;
|
|
2676
2816
|
type: "text";
|
|
@@ -5462,6 +5602,73 @@ export type SessionMessageResponses = {
|
|
|
5462
5602
|
};
|
|
5463
5603
|
};
|
|
5464
5604
|
export type SessionMessageResponse = SessionMessageResponses[keyof SessionMessageResponses];
|
|
5605
|
+
export type SessionV2EntriesData = {
|
|
5606
|
+
body?: never;
|
|
5607
|
+
path: {
|
|
5608
|
+
/**
|
|
5609
|
+
* Session ID
|
|
5610
|
+
*/
|
|
5611
|
+
sessionID: string;
|
|
5612
|
+
};
|
|
5613
|
+
query?: {
|
|
5614
|
+
directory?: string;
|
|
5615
|
+
workspace?: string;
|
|
5616
|
+
};
|
|
5617
|
+
url: "/session/{sessionID}/v2/entries";
|
|
5618
|
+
};
|
|
5619
|
+
export type SessionV2EntriesErrors = {
|
|
5620
|
+
/**
|
|
5621
|
+
* Bad request
|
|
5622
|
+
*/
|
|
5623
|
+
400: BadRequestError;
|
|
5624
|
+
/**
|
|
5625
|
+
* Not found
|
|
5626
|
+
*/
|
|
5627
|
+
404: NotFoundError;
|
|
5628
|
+
};
|
|
5629
|
+
export type SessionV2EntriesError = SessionV2EntriesErrors[keyof SessionV2EntriesErrors];
|
|
5630
|
+
export type SessionV2EntriesResponses = {
|
|
5631
|
+
/**
|
|
5632
|
+
* List of v2 entries
|
|
5633
|
+
*/
|
|
5634
|
+
200: Array<SessionEntryUser | SessionEntrySynthetic | SessionEntryAssistantText | SessionEntryAssistantReasoning | SessionEntryAssistantTool | SessionEntryAssistantRetry>;
|
|
5635
|
+
};
|
|
5636
|
+
export type SessionV2EntriesResponse = SessionV2EntriesResponses[keyof SessionV2EntriesResponses];
|
|
5637
|
+
export type SessionV2StateData = {
|
|
5638
|
+
body?: never;
|
|
5639
|
+
path: {
|
|
5640
|
+
/**
|
|
5641
|
+
* Session ID
|
|
5642
|
+
*/
|
|
5643
|
+
sessionID: string;
|
|
5644
|
+
};
|
|
5645
|
+
query?: {
|
|
5646
|
+
directory?: string;
|
|
5647
|
+
workspace?: string;
|
|
5648
|
+
};
|
|
5649
|
+
url: "/session/{sessionID}/v2/state";
|
|
5650
|
+
};
|
|
5651
|
+
export type SessionV2StateErrors = {
|
|
5652
|
+
/**
|
|
5653
|
+
* Bad request
|
|
5654
|
+
*/
|
|
5655
|
+
400: BadRequestError;
|
|
5656
|
+
/**
|
|
5657
|
+
* Not found
|
|
5658
|
+
*/
|
|
5659
|
+
404: NotFoundError;
|
|
5660
|
+
};
|
|
5661
|
+
export type SessionV2StateError = SessionV2StateErrors[keyof SessionV2StateErrors];
|
|
5662
|
+
export type SessionV2StateResponses = {
|
|
5663
|
+
/**
|
|
5664
|
+
* Live v2 state
|
|
5665
|
+
*/
|
|
5666
|
+
200: {
|
|
5667
|
+
entries: Array<SessionEntryUser | SessionEntrySynthetic | SessionEntryAssistantText | SessionEntryAssistantReasoning | SessionEntryAssistantTool | SessionEntryAssistantRetry>;
|
|
5668
|
+
pending: Array<SessionEntryUser | SessionEntrySynthetic | SessionEntryAssistantText | SessionEntryAssistantReasoning | SessionEntryAssistantTool | SessionEntryAssistantRetry>;
|
|
5669
|
+
};
|
|
5670
|
+
};
|
|
5671
|
+
export type SessionV2StateResponse = SessionV2StateResponses[keyof SessionV2StateResponses];
|
|
5465
5672
|
export type PartDeleteData = {
|
|
5466
5673
|
body?: never;
|
|
5467
5674
|
path: {
|