@nikcli-ai/sdk 1.298.0 → 1.301.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/httpapi/compat.d.ts
CHANGED
|
@@ -326,7 +326,7 @@ export declare function compat(raw: Raw, defaults?: CompatDefaults): {
|
|
|
326
326
|
detail: (input: WithDirectory<import("./client.js").MobileSessionDetailInput>, options?: CallOptions) => Promise<Result<import("./client.js").MobileSessionDetail>>;
|
|
327
327
|
diff: (input: WithDirectory<import("./client.js").MobileSessionDiffInput>, options?: CallOptions) => Promise<Result<import("./client.js").MobileSessionDiffOutput>>;
|
|
328
328
|
list: (input?: (import("./client.js").MobileSessionListInput & Selector) | undefined, options?: CallOptions) => Promise<Result<import("./client.js").MobileSessionListOutput>>;
|
|
329
|
-
message: (input: WithDirectory<import("./client.js").MobileSessionMessageInput>, options?: CallOptions) => Promise<Result<import("./client.js").
|
|
329
|
+
message: (input: WithDirectory<import("./client.js").MobileSessionMessageInput>, options?: CallOptions) => Promise<Result<import("./client.js").MobileAccepted>>;
|
|
330
330
|
rename: (input: WithDirectory<import("./client.js").MobileSessionRenameInput>, options?: CallOptions) => Promise<Result<import("./client.js").MobileSuccess>>;
|
|
331
331
|
stream: (input: WithDirectory<import("./client.js").MobileSessionStreamInput>, options?: CallOptions) => Promise<{
|
|
332
332
|
stream: AsyncIterable<unknown>;
|
|
@@ -341,7 +341,7 @@ export declare function compat(raw: Raw, defaults?: CompatDefaults): {
|
|
|
341
341
|
};
|
|
342
342
|
};
|
|
343
343
|
worktree: {
|
|
344
|
-
create: (input?: (import("./client.js").MobileWorktreeCreateInput & Selector) | undefined, options?: CallOptions) => Promise<Result<import("./client.js").
|
|
344
|
+
create: (input?: (import("./client.js").MobileWorktreeCreateInput & Selector) | undefined, options?: CallOptions) => Promise<Result<import("./client.js").Worktree>>;
|
|
345
345
|
remove: (input: WithDirectory<import("./client.js").MobileWorktreeRemoveInput>, options?: CallOptions) => Promise<Result<import("./client.js").MobileSuccess>>;
|
|
346
346
|
reset: (input: WithDirectory<import("./client.js").MobileWorktreeResetInput>, options?: CallOptions) => Promise<Result<import("./client.js").MobileSuccess>>;
|
|
347
347
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TopLevelVcsStatusOutput, TopLevelVcsApplyInput, TopLevelCommandOutput, TopLevelAgentOutput, TopLevelSkillOutput, TopLevelLspOutput, TopLevelFormatterOutput, AnalyticsDailyInput, AnalyticsDailyOutput, AnalyticsSessionInput, AnalyticsSessionsOutput, AnalyticsDataInput, AppLogInput, AppSkillCreateInput, AppSkillDeleteInput, BrainTriggerInput, ChatbotBotsOutput, ChatbotStartInput, ChatbotStopInput, DiscordSetupInput, VoiceTranscribeInput, ProfilePatchInput, ProfileHabitsInput, ProfilePreviewInput, ProfileClearHabitsInput, ConfigUpdateInput, ConnectorsAuthSetInput, ConnectorsAuthRemoveInput, ConnectorsInvalidateInput, ExperimentalToolsInput, ExperimentalWorktreeCreateInput, ExperimentalWorktreeRemoveInput, ExperimentalWorktreeResetInput, ExperimentalManagedWorktreeCreateInput, ExperimentalManagedWorktreeRemoveInput, ExperimentalManagedWorktreeLinkInput, ExperimentalManagedWorktreeChildrenInput, ExperimentalManagedWorktreeAncestorsInput, FileFindTextInput, FileFindTextOutput, FileFindFileInput, FileFindFileOutput, FileFindSymbolInput, FileFindSymbolOutput, FileListInput, FileListOutput, FileContentInput, FileWriteInput, FileStatusOutput, McpAddInput, McpStartAuthInput, McpAuthCallbackInput, McpAuthenticateInput, McpRemoveAuthInput, McpConnectInput, McpDisconnectInput, McpToggleInput, MissionGenerateInput, MissionRecentExecsInput, MissionGetInput, MissionUpsertInput, MissionUpdateInput, MissionRemoveInput, MissionStartInput, MissionPauseInput, MissionCancelInput, MissionFeatureMutateInput, MissionExecsInput, MobileAuthTokenListOutput, MobileAuthTokenCreateInput, MobileAuthTokenCreateOutput, MobileAuthTokenRevokeInput, MobileAuthTokenRevokeOutput, MobileCommandListOutput, MobileProjectListOutput, MobileMemoryHistoryOutput, MobileMemorySearchInput, MobileMemorySearchOutput, MobileMemoryStashListOutput, MobileMemoryStashCreateInput, MobileMemoryStashDeleteInput, MobileGithubReposOutput, MobileGithubBranchesInput, MobileGithubBranchesOutput, MobileGithubImportsOutput, MobileGithubOauthClientInput, MobileGithubOauthDevicePollInput, MobileGithubAuthSetInput, MobileGithubImportInput, MobileGithubImportOutput, MobileGithubSessionCreateInput, MobileSessionListInput, MobileSessionListOutput, MobileSessionCreateInput, MobileSessionDetailInput, MobileSessionDeleteInput, MobileSessionDiffInput, MobileSessionDiffOutput, MobileSessionCommandListInput, MobileSessionCommandListOutput, MobileSessionCommandInput, MobileSessionCommandOutput, MobileSessionMessageInput,
|
|
1
|
+
import type { TopLevelVcsStatusOutput, TopLevelVcsApplyInput, TopLevelCommandOutput, TopLevelAgentOutput, TopLevelSkillOutput, TopLevelLspOutput, TopLevelFormatterOutput, AnalyticsDailyInput, AnalyticsDailyOutput, AnalyticsSessionInput, AnalyticsSessionsOutput, AnalyticsDataInput, AppLogInput, AppSkillCreateInput, AppSkillDeleteInput, BrainTriggerInput, ChatbotBotsOutput, ChatbotStartInput, ChatbotStopInput, DiscordSetupInput, VoiceTranscribeInput, ProfilePatchInput, ProfileHabitsInput, ProfilePreviewInput, ProfileClearHabitsInput, ConfigUpdateInput, ConnectorsAuthSetInput, ConnectorsAuthRemoveInput, ConnectorsInvalidateInput, ExperimentalToolsInput, ExperimentalWorktreeCreateInput, ExperimentalWorktreeRemoveInput, ExperimentalWorktreeResetInput, ExperimentalManagedWorktreeCreateInput, ExperimentalManagedWorktreeRemoveInput, ExperimentalManagedWorktreeLinkInput, ExperimentalManagedWorktreeChildrenInput, ExperimentalManagedWorktreeAncestorsInput, FileFindTextInput, FileFindTextOutput, FileFindFileInput, FileFindFileOutput, FileFindSymbolInput, FileFindSymbolOutput, FileListInput, FileListOutput, FileContentInput, FileWriteInput, FileStatusOutput, McpAddInput, McpStartAuthInput, McpAuthCallbackInput, McpAuthenticateInput, McpRemoveAuthInput, McpConnectInput, McpDisconnectInput, McpToggleInput, MissionGenerateInput, MissionRecentExecsInput, MissionGetInput, MissionUpsertInput, MissionUpdateInput, MissionRemoveInput, MissionStartInput, MissionPauseInput, MissionCancelInput, MissionFeatureMutateInput, MissionExecsInput, MobileAuthTokenListOutput, MobileAuthTokenCreateInput, MobileAuthTokenCreateOutput, MobileAuthTokenRevokeInput, MobileAuthTokenRevokeOutput, MobileCommandListOutput, MobileProjectListOutput, MobileMemoryHistoryOutput, MobileMemorySearchInput, MobileMemorySearchOutput, MobileMemoryStashListOutput, MobileMemoryStashCreateInput, MobileMemoryStashDeleteInput, MobileGithubReposOutput, MobileGithubBranchesInput, MobileGithubBranchesOutput, MobileGithubImportsOutput, MobileGithubOauthClientInput, MobileGithubOauthDevicePollInput, MobileGithubAuthSetInput, MobileGithubImportInput, MobileGithubImportOutput, MobileGithubSessionCreateInput, MobileSessionListInput, MobileSessionListOutput, MobileSessionCreateInput, MobileSessionDetailInput, MobileSessionDeleteInput, MobileSessionDiffInput, MobileSessionDiffOutput, MobileSessionCommandListInput, MobileSessionCommandListOutput, MobileSessionCommandInput, MobileSessionCommandOutput, MobileSessionMessageInput, MobileSessionAbortInput, MobilePermissionRespondInput, MobileQuestionRespondInput, MobileQuestionRejectInput, MobileSessionPublishInput, MobileSessionCleanupInput, MobileSessionStreamInput, MobileSessionStreamOutput, MobileSessionRenameInput, MobileSessionTodoInput, MobileSessionTodoOutput, MobileTeleportUploadBeginOutput, MobileTeleportUploadChunkInput, MobileTeleportUploadChunkOutput, MobileTeleportInInput, MobileTeleportOutInput, MobileWorktreeCreateInput, MobileWorktreeRemoveInput, MobileWorktreeResetInput, MobileGitDiffInput, MobileGitDiffOutput, MobileGitCommitsInput, MobileGitCommitsOutput, MobileGitBranchesOutput, MobileGitCommitInput, MobileGitCommitOutput, MobileGitCheckoutInput, MobileGitStageInput, MobileGitUnstageInput, MobileGitDiscardInput, MobileGitPushInput, MobileGitPushOutput, MobileGitPullOutput, MobileLoopListOutput, MobileLoopCreateInput, MobileLoopTemplatesOutput, MobileLoopGenerateInput, MobileLoopRunsRecentInput, MobileLoopRunsRecentOutput, MobileLoopGetInput, MobileLoopGetOutput, MobileLoopDeleteInput, MobileLoopUpdateInput, MobileLoopRunsInput, MobileLoopRunsOutput, MobileLoopRunInput, MobileLoopAbortInput, MobileLoopToggleInput, MobileLoopPauseInput, MobileLoopResumeInput, MobileRoutineListOutput, MobileRoutineCreateInput, MobileRoutineGetInput, MobileRoutineDeleteInput, MobileRoutineUpdateInput, MobileRoutineRunInput, MobileRoutinePauseInput, MobileRoutineResumeInput, MobileRoutineTriggerInput, MobilePtyListOutput, MobilePtyCreateInput, MobilePtyGetInput, MobilePtyUpdateInput, MobilePtyRemoveInput, MobileMissionListOutput, MobileMissionCreateInput, MobileMissionTemplatesOutput, MobileMissionGenerateInput, MobileMissionExecsRecentInput, MobileMissionExecsRecentOutput, MobileMissionGetInput, MobileMissionGetOutput, MobileMissionUpdateInput, MobileMissionDeleteInput, MobileMissionExecsInput, MobileMissionExecsOutput, MobileMissionStartInput, MobileMissionPauseInput, MobileMissionCancelInput, MobileMissionFeatureMutateInput, MobileEventsOutput, MobileBrainStatusOutput, MobileBrainTriggerInput, MobileBrainTriggerOutput, MobileChatBotListOutput, MobileChatBotStartInput, MobileChatBotStartOutput, MobileChatBotStopInput, MobileChatBotStopOutput, MobileObservabilityGetOutput, MobileObservabilitySetInput, MobileObservabilitySetOutput, MobileLspStatusOutput, MobileFusionListOutput, MobileFusionSetInput, MobileFusionSetOutput, MobileHostBrowserOutput, MobileHostComputerOutput, MobileHostHerdrGetOutput, MobileHostHerdrSetInput, MobileHostHerdrSetOutput, MobileHostIslandOutput, MobileHostDevtoolsOutput, ProjectListOutput, ProjectUpdateInput, ProjectDirectoryListInput, ProjectDirectoryListOutput, ProjectCopyCreateInput, ProjectCopyRemoveInput, ProjectCopyRefreshInput, ProviderApiInput, ProviderRemoveAuthInput, ProviderOauthAuthorizeInput, ProviderOauthAuthorizeOutput, ProviderOauthCallbackInput, QuestionListOutput, QuestionReplyInput, QuestionRejectInput, PermissionListOutput, PermissionReplyInput, PtyCreateInput, PtyGetInput, PtyUpdateInput, PtyRemoveInput, LoopGenerateInput, LoopRecentRunsInput, LoopGetInput, LoopUpsertInput, LoopUpdateInput, LoopRemoveInput, LoopToggleInput, LoopRunInput, LoopAbortInput, LoopPauseInput, LoopResumeInput, LoopRunsInput, SessionListInput, SessionCreateInput, SessionGetInput, SessionRemoveInput, SessionUpdateInput, SessionForkInput, SessionAbortInput, SessionRevertInput, SessionUnrevertInput, SessionShareInput, SessionUnshareInput, SessionSummarizeInput, SessionCommandInput, SessionShellInput, SessionPermissionRespondInput, SessionChildrenInput, SessionTodoInput, SessionDiffInput, SessionMessagesInput, SessionPendingInput, SessionPendingSteerInput, SessionMessageInput, SessionMessageRemoveInput, SessionPartRemoveInput, SessionPartUpdateInput, SessionV2EntriesInput, SessionV2StateInput, SessionV2EventsInput, SessionInstructionsInput, SessionContextBreakdownInput, SessionContextToggleInput, SessionGoalInput, SessionBackgroundInput, SessionBackgroundInspectInput, SessionBackgroundReadInput, SessionBackgroundCancelInput, SessionMonitorInput, SessionMonitorLogInput, SessionMonitorCancelInput, AccountCompleteInput, SyncEventInput, SyncOutboxInput, SyncSnapshotInput, SyncStreamInput, SyncStreamOutput, SyncStatsInput, SyncConfigInput, TuiAppendPromptInput, TuiExecuteCommandInput, TuiShowToastInput, TuiPublishInput, TuiSelectSessionInput, TuiControlResponseInput, WorkspaceAdaptorsOutput, WorkspaceStatusOutput, WorkspaceCreateInput, WorkspaceListOutput, WorkspaceRemoveInput, WorkspaceRestoreInput, WorkspaceSessionRestoreInput, WorkspaceWarpInput, AuthSetInput, AuthRemoveInput, ConfigManagementMcpAddInput, ConfigManagementMcpUpdateInput, ConfigManagementMcpRemoveInput, ConfigManagementProfileCreateInput, ConfigManagementProfileActivateInput, SessionPromptPromptInput, SessionPromptPromptAsyncInput, ShareShortInput, SharePageInput, ShareApiInput, ShareDataInput, EventsSubscribeOutput, EventsGlobalOutput, WorkspaceExtraEventsInput, WorkspaceExtraEventsOutput, WorkspaceExtraSessionWarpInput, UsersRegisterInput, UsersLoginInput, UsersUpdateInput } from "./types.js";
|
|
2
2
|
export interface ClientOptions {
|
|
3
3
|
readonly baseUrl: string;
|
|
4
4
|
readonly fetch?: typeof globalThis.fetch;
|
|
@@ -158,7 +158,7 @@ export declare function make(options: ClientOptions): {
|
|
|
158
158
|
sessionDiff: (input: MobileSessionDiffInput, requestOptions?: RequestOptions) => Promise<MobileSessionDiffOutput>;
|
|
159
159
|
sessionCommandList: (input: MobileSessionCommandListInput, requestOptions?: RequestOptions) => Promise<MobileSessionCommandListOutput>;
|
|
160
160
|
sessionCommand: (input: MobileSessionCommandInput, requestOptions?: RequestOptions) => Promise<MobileSessionCommandOutput>;
|
|
161
|
-
sessionMessage: (input: MobileSessionMessageInput, requestOptions?: RequestOptions) => Promise<
|
|
161
|
+
sessionMessage: (input: MobileSessionMessageInput, requestOptions?: RequestOptions) => Promise<import("./types.js").MobileAccepted>;
|
|
162
162
|
sessionAbort: (input: MobileSessionAbortInput, requestOptions?: RequestOptions) => Promise<import("./types.js").MobileSuccess>;
|
|
163
163
|
permissionRespond: (input: MobilePermissionRespondInput, requestOptions?: RequestOptions) => Promise<import("./types.js").MobileSuccess>;
|
|
164
164
|
questionRespond: (input: MobileQuestionRespondInput, requestOptions?: RequestOptions) => Promise<import("./types.js").MobileSuccess>;
|
|
@@ -172,7 +172,7 @@ export declare function make(options: ClientOptions): {
|
|
|
172
172
|
teleportUploadChunk: (input: MobileTeleportUploadChunkInput, requestOptions?: RequestOptions) => Promise<MobileTeleportUploadChunkOutput>;
|
|
173
173
|
teleportIn: (input: MobileTeleportInInput, requestOptions?: RequestOptions) => Promise<import("./types.js").MobileTeleportResult>;
|
|
174
174
|
teleportOut: (input: MobileTeleportOutInput, requestOptions?: RequestOptions) => Promise<import("./types.js").MobileTeleportResult>;
|
|
175
|
-
worktreeCreate: (input?: MobileWorktreeCreateInput, requestOptions?: RequestOptions) => Promise<import("./types.js").
|
|
175
|
+
worktreeCreate: (input?: MobileWorktreeCreateInput, requestOptions?: RequestOptions) => Promise<import("./types.js").Worktree>;
|
|
176
176
|
worktreeRemove: (input: MobileWorktreeRemoveInput, requestOptions?: RequestOptions) => Promise<import("./types.js").MobileSuccess>;
|
|
177
177
|
worktreeReset: (input: MobileWorktreeResetInput, requestOptions?: RequestOptions) => Promise<import("./types.js").MobileSuccess>;
|
|
178
178
|
gitStatus: (requestOptions?: RequestOptions) => Promise<import("./types.js").MobileGitStatus>;
|
|
@@ -722,15 +722,15 @@ export function make(options) {
|
|
|
722
722
|
method: "DELETE",
|
|
723
723
|
path: `/mobile/memory/stash/${encodeURIComponent(input.id)}`,
|
|
724
724
|
successStatus: 200,
|
|
725
|
-
declaredStatuses: [],
|
|
725
|
+
declaredStatuses: [404],
|
|
726
726
|
empty: false,
|
|
727
727
|
}, requestOptions),
|
|
728
|
-
githubRepos: (requestOptions) => request({ method: "GET", path: `/mobile/github/repos`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
728
|
+
githubRepos: (requestOptions) => request({ method: "GET", path: `/mobile/github/repos`, successStatus: 200, declaredStatuses: [401], empty: false }, requestOptions),
|
|
729
729
|
githubBranches: (input, requestOptions) => request({
|
|
730
730
|
method: "GET",
|
|
731
731
|
path: `/mobile/github/repos/${encodeURIComponent(input.owner)}/${encodeURIComponent(input.repo)}/branches`,
|
|
732
732
|
successStatus: 200,
|
|
733
|
-
declaredStatuses: [],
|
|
733
|
+
declaredStatuses: [401],
|
|
734
734
|
empty: false,
|
|
735
735
|
}, requestOptions),
|
|
736
736
|
githubImports: (requestOptions) => request({ method: "GET", path: `/mobile/github/imports`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
@@ -746,7 +746,7 @@ export function make(options) {
|
|
|
746
746
|
method: "POST",
|
|
747
747
|
path: `/mobile/github/oauth/device`,
|
|
748
748
|
successStatus: 200,
|
|
749
|
-
declaredStatuses: [],
|
|
749
|
+
declaredStatuses: [400],
|
|
750
750
|
empty: false,
|
|
751
751
|
}, requestOptions),
|
|
752
752
|
githubOauthDevicePoll: (input, requestOptions) => request({
|
|
@@ -754,7 +754,7 @@ export function make(options) {
|
|
|
754
754
|
path: `/mobile/github/oauth/device/poll`,
|
|
755
755
|
body: { deviceCode: input["deviceCode"] },
|
|
756
756
|
successStatus: 200,
|
|
757
|
-
declaredStatuses: [],
|
|
757
|
+
declaredStatuses: [400],
|
|
758
758
|
empty: false,
|
|
759
759
|
}, requestOptions),
|
|
760
760
|
githubAuthSet: (input, requestOptions) => request({
|
|
@@ -777,7 +777,7 @@ export function make(options) {
|
|
|
777
777
|
private: input["private"],
|
|
778
778
|
},
|
|
779
779
|
successStatus: 200,
|
|
780
|
-
declaredStatuses: [],
|
|
780
|
+
declaredStatuses: [401],
|
|
781
781
|
empty: false,
|
|
782
782
|
}, requestOptions),
|
|
783
783
|
githubSessionCreate: (input, requestOptions) => request({
|
|
@@ -795,7 +795,7 @@ export function make(options) {
|
|
|
795
795
|
executionTarget: input["executionTarget"],
|
|
796
796
|
},
|
|
797
797
|
successStatus: 200,
|
|
798
|
-
declaredStatuses: [],
|
|
798
|
+
declaredStatuses: [401],
|
|
799
799
|
empty: false,
|
|
800
800
|
}, requestOptions),
|
|
801
801
|
sessionList: (input, requestOptions) => request({
|
|
@@ -859,7 +859,7 @@ export function make(options) {
|
|
|
859
859
|
variant: input["variant"],
|
|
860
860
|
},
|
|
861
861
|
successStatus: 200,
|
|
862
|
-
declaredStatuses: [],
|
|
862
|
+
declaredStatuses: [400],
|
|
863
863
|
empty: false,
|
|
864
864
|
}, requestOptions),
|
|
865
865
|
sessionMessage: (input, requestOptions) => request({
|
|
@@ -867,6 +867,7 @@ export function make(options) {
|
|
|
867
867
|
path: `/mobile/session/${encodeURIComponent(input.sessionID)}/message`,
|
|
868
868
|
body: {
|
|
869
869
|
messageID: input["messageID"],
|
|
870
|
+
delivery: input["delivery"],
|
|
870
871
|
model: input["model"],
|
|
871
872
|
agent: input["agent"],
|
|
872
873
|
noReply: input["noReply"],
|
|
@@ -875,9 +876,10 @@ export function make(options) {
|
|
|
875
876
|
system: input["system"],
|
|
876
877
|
variant: input["variant"],
|
|
877
878
|
parts: input["parts"],
|
|
879
|
+
parentSessionID: input["parentSessionID"],
|
|
878
880
|
},
|
|
879
|
-
successStatus:
|
|
880
|
-
declaredStatuses: [],
|
|
881
|
+
successStatus: 202,
|
|
882
|
+
declaredStatuses: [400],
|
|
881
883
|
empty: false,
|
|
882
884
|
}, requestOptions),
|
|
883
885
|
sessionAbort: (input, requestOptions) => request({
|
|
@@ -915,14 +917,14 @@ export function make(options) {
|
|
|
915
917
|
path: `/mobile/session/${encodeURIComponent(input.sessionID)}/publish`,
|
|
916
918
|
body: { title: input["title"], body: input["body"], commitMessage: input["commitMessage"] },
|
|
917
919
|
successStatus: 200,
|
|
918
|
-
declaredStatuses: [],
|
|
920
|
+
declaredStatuses: [401, 400],
|
|
919
921
|
empty: false,
|
|
920
922
|
}, requestOptions),
|
|
921
923
|
sessionCleanup: (input, requestOptions) => request({
|
|
922
924
|
method: "POST",
|
|
923
925
|
path: `/mobile/session/${encodeURIComponent(input.sessionID)}/cleanup`,
|
|
924
926
|
successStatus: 200,
|
|
925
|
-
declaredStatuses: [],
|
|
927
|
+
declaredStatuses: [400],
|
|
926
928
|
empty: false,
|
|
927
929
|
}, requestOptions),
|
|
928
930
|
sessionStream: (input, requestOptions) => sse({
|
|
@@ -937,7 +939,7 @@ export function make(options) {
|
|
|
937
939
|
path: `/mobile/session/${encodeURIComponent(input.sessionID)}/rename`,
|
|
938
940
|
body: { title: input["title"] },
|
|
939
941
|
successStatus: 200,
|
|
940
|
-
declaredStatuses: [],
|
|
942
|
+
declaredStatuses: [404],
|
|
941
943
|
empty: false,
|
|
942
944
|
}, requestOptions),
|
|
943
945
|
sessionTodo: (input, requestOptions) => request({
|
|
@@ -967,7 +969,7 @@ export function make(options) {
|
|
|
967
969
|
uploadID: input["uploadID"],
|
|
968
970
|
},
|
|
969
971
|
successStatus: 200,
|
|
970
|
-
declaredStatuses: [],
|
|
972
|
+
declaredStatuses: [400],
|
|
971
973
|
empty: false,
|
|
972
974
|
}, requestOptions),
|
|
973
975
|
teleportOut: (input, requestOptions) => request({
|
|
@@ -980,7 +982,7 @@ export function make(options) {
|
|
|
980
982
|
includeGit: input["includeGit"],
|
|
981
983
|
},
|
|
982
984
|
successStatus: 200,
|
|
983
|
-
declaredStatuses: [],
|
|
985
|
+
declaredStatuses: [400, 404],
|
|
984
986
|
empty: false,
|
|
985
987
|
}, requestOptions),
|
|
986
988
|
worktreeCreate: (input, requestOptions) => request({
|
|
@@ -1045,7 +1047,7 @@ export function make(options) {
|
|
|
1045
1047
|
stagedOnly: input["stagedOnly"],
|
|
1046
1048
|
},
|
|
1047
1049
|
successStatus: 200,
|
|
1048
|
-
declaredStatuses: [],
|
|
1050
|
+
declaredStatuses: [400],
|
|
1049
1051
|
empty: false,
|
|
1050
1052
|
}, requestOptions),
|
|
1051
1053
|
gitCheckout: (input, requestOptions) => request({
|
|
@@ -1106,7 +1108,7 @@ export function make(options) {
|
|
|
1106
1108
|
enabled: input["enabled"],
|
|
1107
1109
|
},
|
|
1108
1110
|
successStatus: 200,
|
|
1109
|
-
declaredStatuses: [],
|
|
1111
|
+
declaredStatuses: [400],
|
|
1110
1112
|
empty: false,
|
|
1111
1113
|
}, requestOptions),
|
|
1112
1114
|
loopTemplates: (requestOptions) => request({ method: "GET", path: `/mobile/loops/templates`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
@@ -1135,14 +1137,14 @@ export function make(options) {
|
|
|
1135
1137
|
method: "GET",
|
|
1136
1138
|
path: `/mobile/loops/${encodeURIComponent(input.id)}`,
|
|
1137
1139
|
successStatus: 200,
|
|
1138
|
-
declaredStatuses: [],
|
|
1140
|
+
declaredStatuses: [404],
|
|
1139
1141
|
empty: false,
|
|
1140
1142
|
}, requestOptions),
|
|
1141
1143
|
loopDelete: (input, requestOptions) => request({
|
|
1142
1144
|
method: "DELETE",
|
|
1143
1145
|
path: `/mobile/loops/${encodeURIComponent(input.id)}`,
|
|
1144
1146
|
successStatus: 200,
|
|
1145
|
-
declaredStatuses: [],
|
|
1147
|
+
declaredStatuses: [404],
|
|
1146
1148
|
empty: false,
|
|
1147
1149
|
}, requestOptions),
|
|
1148
1150
|
loopUpdate: (input, requestOptions) => request({
|
|
@@ -1161,7 +1163,7 @@ export function make(options) {
|
|
|
1161
1163
|
enabled: input["enabled"],
|
|
1162
1164
|
},
|
|
1163
1165
|
successStatus: 200,
|
|
1164
|
-
declaredStatuses: [],
|
|
1166
|
+
declaredStatuses: [400, 404],
|
|
1165
1167
|
empty: false,
|
|
1166
1168
|
}, requestOptions),
|
|
1167
1169
|
loopRuns: (input, requestOptions) => request({
|
|
@@ -1169,21 +1171,21 @@ export function make(options) {
|
|
|
1169
1171
|
path: `/mobile/loops/${encodeURIComponent(input.id)}/runs`,
|
|
1170
1172
|
query: { limit: input["limit"] },
|
|
1171
1173
|
successStatus: 200,
|
|
1172
|
-
declaredStatuses: [],
|
|
1174
|
+
declaredStatuses: [404],
|
|
1173
1175
|
empty: false,
|
|
1174
1176
|
}, requestOptions),
|
|
1175
1177
|
loopRun: (input, requestOptions) => request({
|
|
1176
1178
|
method: "POST",
|
|
1177
1179
|
path: `/mobile/loops/${encodeURIComponent(input.id)}/run`,
|
|
1178
1180
|
successStatus: 200,
|
|
1179
|
-
declaredStatuses: [],
|
|
1181
|
+
declaredStatuses: [404],
|
|
1180
1182
|
empty: false,
|
|
1181
1183
|
}, requestOptions),
|
|
1182
1184
|
loopAbort: (input, requestOptions) => request({
|
|
1183
1185
|
method: "POST",
|
|
1184
1186
|
path: `/mobile/loops/${encodeURIComponent(input.id)}/abort`,
|
|
1185
1187
|
successStatus: 200,
|
|
1186
|
-
declaredStatuses: [],
|
|
1188
|
+
declaredStatuses: [404],
|
|
1187
1189
|
empty: false,
|
|
1188
1190
|
}, requestOptions),
|
|
1189
1191
|
loopToggle: (input, requestOptions) => request({
|
|
@@ -1191,21 +1193,21 @@ export function make(options) {
|
|
|
1191
1193
|
path: `/mobile/loops/${encodeURIComponent(input.id)}/toggle`,
|
|
1192
1194
|
body: { enabled: input["enabled"] },
|
|
1193
1195
|
successStatus: 200,
|
|
1194
|
-
declaredStatuses: [],
|
|
1196
|
+
declaredStatuses: [404],
|
|
1195
1197
|
empty: false,
|
|
1196
1198
|
}, requestOptions),
|
|
1197
1199
|
loopPause: (input, requestOptions) => request({
|
|
1198
1200
|
method: "POST",
|
|
1199
1201
|
path: `/mobile/loops/${encodeURIComponent(input.id)}/pause`,
|
|
1200
1202
|
successStatus: 200,
|
|
1201
|
-
declaredStatuses: [],
|
|
1203
|
+
declaredStatuses: [404],
|
|
1202
1204
|
empty: false,
|
|
1203
1205
|
}, requestOptions),
|
|
1204
1206
|
loopResume: (input, requestOptions) => request({
|
|
1205
1207
|
method: "POST",
|
|
1206
1208
|
path: `/mobile/loops/${encodeURIComponent(input.id)}/resume`,
|
|
1207
1209
|
successStatus: 200,
|
|
1208
|
-
declaredStatuses: [],
|
|
1210
|
+
declaredStatuses: [404],
|
|
1209
1211
|
empty: false,
|
|
1210
1212
|
}, requestOptions),
|
|
1211
1213
|
routineList: (requestOptions) => request({ method: "GET", path: `/mobile/routines`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
@@ -1221,14 +1223,14 @@ export function make(options) {
|
|
|
1221
1223
|
method: "GET",
|
|
1222
1224
|
path: `/mobile/routines/${encodeURIComponent(input.id)}`,
|
|
1223
1225
|
successStatus: 200,
|
|
1224
|
-
declaredStatuses: [],
|
|
1226
|
+
declaredStatuses: [404],
|
|
1225
1227
|
empty: false,
|
|
1226
1228
|
}, requestOptions),
|
|
1227
1229
|
routineDelete: (input, requestOptions) => request({
|
|
1228
1230
|
method: "DELETE",
|
|
1229
1231
|
path: `/mobile/routines/${encodeURIComponent(input.id)}`,
|
|
1230
1232
|
successStatus: 200,
|
|
1231
|
-
declaredStatuses: [],
|
|
1233
|
+
declaredStatuses: [404],
|
|
1232
1234
|
empty: false,
|
|
1233
1235
|
}, requestOptions),
|
|
1234
1236
|
routineUpdate: (input, requestOptions) => request({
|
|
@@ -1242,7 +1244,7 @@ export function make(options) {
|
|
|
1242
1244
|
paused: input["paused"],
|
|
1243
1245
|
},
|
|
1244
1246
|
successStatus: 200,
|
|
1245
|
-
declaredStatuses: [],
|
|
1247
|
+
declaredStatuses: [404],
|
|
1246
1248
|
empty: false,
|
|
1247
1249
|
}, requestOptions),
|
|
1248
1250
|
routineRun: (input, requestOptions) => request({
|
|
@@ -1250,21 +1252,21 @@ export function make(options) {
|
|
|
1250
1252
|
path: `/mobile/routines/${encodeURIComponent(input.id)}/run`,
|
|
1251
1253
|
body: { text: input["text"] },
|
|
1252
1254
|
successStatus: 200,
|
|
1253
|
-
declaredStatuses: [],
|
|
1255
|
+
declaredStatuses: [404],
|
|
1254
1256
|
empty: false,
|
|
1255
1257
|
}, requestOptions),
|
|
1256
1258
|
routinePause: (input, requestOptions) => request({
|
|
1257
1259
|
method: "POST",
|
|
1258
1260
|
path: `/mobile/routines/${encodeURIComponent(input.id)}/pause`,
|
|
1259
1261
|
successStatus: 200,
|
|
1260
|
-
declaredStatuses: [],
|
|
1262
|
+
declaredStatuses: [404],
|
|
1261
1263
|
empty: false,
|
|
1262
1264
|
}, requestOptions),
|
|
1263
1265
|
routineResume: (input, requestOptions) => request({
|
|
1264
1266
|
method: "POST",
|
|
1265
1267
|
path: `/mobile/routines/${encodeURIComponent(input.id)}/resume`,
|
|
1266
1268
|
successStatus: 200,
|
|
1267
|
-
declaredStatuses: [],
|
|
1269
|
+
declaredStatuses: [404],
|
|
1268
1270
|
empty: false,
|
|
1269
1271
|
}, requestOptions),
|
|
1270
1272
|
routineTrigger: (input, requestOptions) => request({
|
|
@@ -1272,7 +1274,7 @@ export function make(options) {
|
|
|
1272
1274
|
path: `/mobile/routines/trigger/${encodeURIComponent(input.token)}`,
|
|
1273
1275
|
body: { text: input["text"] },
|
|
1274
1276
|
successStatus: 200,
|
|
1275
|
-
declaredStatuses: [],
|
|
1277
|
+
declaredStatuses: [404],
|
|
1276
1278
|
empty: false,
|
|
1277
1279
|
}, requestOptions),
|
|
1278
1280
|
ptyList: (requestOptions) => request({ method: "GET", path: `/mobile/pty`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
@@ -1326,7 +1328,7 @@ export function make(options) {
|
|
|
1326
1328
|
worktree: input["worktree"],
|
|
1327
1329
|
},
|
|
1328
1330
|
successStatus: 200,
|
|
1329
|
-
declaredStatuses: [],
|
|
1331
|
+
declaredStatuses: [400],
|
|
1330
1332
|
empty: false,
|
|
1331
1333
|
}, requestOptions),
|
|
1332
1334
|
missionTemplates: (requestOptions) => request({ method: "GET", path: `/mobile/missions/templates`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
@@ -1340,7 +1342,7 @@ export function make(options) {
|
|
|
1340
1342
|
sessionID: input["sessionID"],
|
|
1341
1343
|
},
|
|
1342
1344
|
successStatus: 200,
|
|
1343
|
-
declaredStatuses: [],
|
|
1345
|
+
declaredStatuses: [400],
|
|
1344
1346
|
empty: false,
|
|
1345
1347
|
}, requestOptions),
|
|
1346
1348
|
missionExecsRecent: (input, requestOptions) => request({
|
|
@@ -1355,7 +1357,7 @@ export function make(options) {
|
|
|
1355
1357
|
method: "GET",
|
|
1356
1358
|
path: `/mobile/missions/${encodeURIComponent(input.id)}`,
|
|
1357
1359
|
successStatus: 200,
|
|
1358
|
-
declaredStatuses: [],
|
|
1360
|
+
declaredStatuses: [404],
|
|
1359
1361
|
empty: false,
|
|
1360
1362
|
}, requestOptions),
|
|
1361
1363
|
missionUpdate: (input, requestOptions) => request({
|
|
@@ -1373,14 +1375,14 @@ export function make(options) {
|
|
|
1373
1375
|
createdAt: input["createdAt"],
|
|
1374
1376
|
},
|
|
1375
1377
|
successStatus: 200,
|
|
1376
|
-
declaredStatuses: [],
|
|
1378
|
+
declaredStatuses: [404, 400],
|
|
1377
1379
|
empty: false,
|
|
1378
1380
|
}, requestOptions),
|
|
1379
1381
|
missionDelete: (input, requestOptions) => request({
|
|
1380
1382
|
method: "DELETE",
|
|
1381
1383
|
path: `/mobile/missions/${encodeURIComponent(input.id)}`,
|
|
1382
1384
|
successStatus: 200,
|
|
1383
|
-
declaredStatuses: [],
|
|
1385
|
+
declaredStatuses: [404],
|
|
1384
1386
|
empty: false,
|
|
1385
1387
|
}, requestOptions),
|
|
1386
1388
|
missionExecs: (input, requestOptions) => request({
|
|
@@ -1388,28 +1390,28 @@ export function make(options) {
|
|
|
1388
1390
|
path: `/mobile/missions/${encodeURIComponent(input.id)}/execs`,
|
|
1389
1391
|
query: { limit: input["limit"] },
|
|
1390
1392
|
successStatus: 200,
|
|
1391
|
-
declaredStatuses: [],
|
|
1393
|
+
declaredStatuses: [404],
|
|
1392
1394
|
empty: false,
|
|
1393
1395
|
}, requestOptions),
|
|
1394
1396
|
missionStart: (input, requestOptions) => request({
|
|
1395
1397
|
method: "POST",
|
|
1396
1398
|
path: `/mobile/missions/${encodeURIComponent(input.id)}/start`,
|
|
1397
1399
|
successStatus: 200,
|
|
1398
|
-
declaredStatuses: [],
|
|
1400
|
+
declaredStatuses: [404],
|
|
1399
1401
|
empty: false,
|
|
1400
1402
|
}, requestOptions),
|
|
1401
1403
|
missionPause: (input, requestOptions) => request({
|
|
1402
1404
|
method: "POST",
|
|
1403
1405
|
path: `/mobile/missions/${encodeURIComponent(input.id)}/pause`,
|
|
1404
1406
|
successStatus: 200,
|
|
1405
|
-
declaredStatuses: [],
|
|
1407
|
+
declaredStatuses: [404],
|
|
1406
1408
|
empty: false,
|
|
1407
1409
|
}, requestOptions),
|
|
1408
1410
|
missionCancel: (input, requestOptions) => request({
|
|
1409
1411
|
method: "POST",
|
|
1410
1412
|
path: `/mobile/missions/${encodeURIComponent(input.id)}/cancel`,
|
|
1411
1413
|
successStatus: 200,
|
|
1412
|
-
declaredStatuses: [],
|
|
1414
|
+
declaredStatuses: [404],
|
|
1413
1415
|
empty: false,
|
|
1414
1416
|
}, requestOptions),
|
|
1415
1417
|
missionFeatureMutate: (input, requestOptions) => request({
|
|
@@ -1417,7 +1419,7 @@ export function make(options) {
|
|
|
1417
1419
|
path: `/mobile/missions/${encodeURIComponent(input.id)}/feature/${encodeURIComponent(input.featureID)}`,
|
|
1418
1420
|
body: { status: input["status"], error: input["error"], appendDependsOn: input["appendDependsOn"] },
|
|
1419
1421
|
successStatus: 200,
|
|
1420
|
-
declaredStatuses: [],
|
|
1422
|
+
declaredStatuses: [404, 400],
|
|
1421
1423
|
empty: false,
|
|
1422
1424
|
}, requestOptions),
|
|
1423
1425
|
events: (requestOptions) => sse({ method: "GET", path: `/mobile/events`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
@@ -1470,6 +1470,9 @@ export type AgentPart1 = {
|
|
|
1470
1470
|
end: number;
|
|
1471
1471
|
};
|
|
1472
1472
|
};
|
|
1473
|
+
export type MobileAccepted = {
|
|
1474
|
+
accepted: true;
|
|
1475
|
+
};
|
|
1473
1476
|
export type MobileGithubPublishResult = {
|
|
1474
1477
|
commitSha: string;
|
|
1475
1478
|
branch: string;
|
|
@@ -4571,6 +4574,18 @@ export type MissionNotFound = {
|
|
|
4571
4574
|
readonly [x: string]: any;
|
|
4572
4575
|
};
|
|
4573
4576
|
};
|
|
4577
|
+
export type MobileNotFound = {
|
|
4578
|
+
readonly name: "NotFoundError";
|
|
4579
|
+
readonly error: string;
|
|
4580
|
+
};
|
|
4581
|
+
export type MobileUnauthorized = {
|
|
4582
|
+
readonly name: "Unauthorized";
|
|
4583
|
+
readonly error: string;
|
|
4584
|
+
};
|
|
4585
|
+
export type MobileBadRequest = {
|
|
4586
|
+
readonly name: "BadRequest";
|
|
4587
|
+
readonly error: string;
|
|
4588
|
+
};
|
|
4574
4589
|
export type PtyCreateErrorBody = {
|
|
4575
4590
|
readonly name: "PtyCreateError";
|
|
4576
4591
|
readonly data: {
|
|
@@ -4831,8 +4846,8 @@ export type MissionFeatureMutatePayload = {
|
|
|
4831
4846
|
readonly appendDependsOn?: ReadonlyArray<string> | undefined;
|
|
4832
4847
|
};
|
|
4833
4848
|
export type MobileAuthTokenCreatePayload = {
|
|
4834
|
-
readonly name?: string
|
|
4835
|
-
readonly expiresInDays?: number
|
|
4849
|
+
readonly name?: string;
|
|
4850
|
+
readonly expiresInDays?: number;
|
|
4836
4851
|
};
|
|
4837
4852
|
export type MobileMemoryStashCreatePayload = {
|
|
4838
4853
|
readonly input: string;
|
|
@@ -4912,6 +4927,7 @@ export type MobileSessionCommandPayload = {
|
|
|
4912
4927
|
};
|
|
4913
4928
|
export type MobileSessionMessagePayload = {
|
|
4914
4929
|
readonly messageID?: string | undefined;
|
|
4930
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
4915
4931
|
readonly model?: {
|
|
4916
4932
|
readonly providerID: string;
|
|
4917
4933
|
readonly modelID: string;
|
|
@@ -4921,13 +4937,19 @@ export type MobileSessionMessagePayload = {
|
|
|
4921
4937
|
readonly tools?: {
|
|
4922
4938
|
readonly [x: string]: boolean;
|
|
4923
4939
|
} | undefined;
|
|
4924
|
-
readonly format?:
|
|
4940
|
+
readonly format?: ({
|
|
4941
|
+
readonly type: "text";
|
|
4942
|
+
} | {
|
|
4943
|
+
readonly type: "json_schema";
|
|
4944
|
+
readonly schema: {
|
|
4945
|
+
readonly [x: string]: any;
|
|
4946
|
+
};
|
|
4947
|
+
readonly retryCount?: number | undefined;
|
|
4948
|
+
}) | undefined;
|
|
4925
4949
|
readonly system?: string | undefined;
|
|
4926
4950
|
readonly variant?: string | undefined;
|
|
4927
4951
|
readonly parts: ReadonlyArray<{
|
|
4928
|
-
readonly id
|
|
4929
|
-
readonly sessionID: string;
|
|
4930
|
-
readonly messageID: string;
|
|
4952
|
+
readonly id?: string | undefined;
|
|
4931
4953
|
readonly type: "text";
|
|
4932
4954
|
readonly text: string;
|
|
4933
4955
|
readonly synthetic?: boolean | undefined;
|
|
@@ -4940,36 +4962,7 @@ export type MobileSessionMessagePayload = {
|
|
|
4940
4962
|
readonly [x: string]: any;
|
|
4941
4963
|
} | undefined;
|
|
4942
4964
|
} | {
|
|
4943
|
-
readonly id
|
|
4944
|
-
readonly sessionID: string;
|
|
4945
|
-
readonly messageID: string;
|
|
4946
|
-
readonly type: "subtask";
|
|
4947
|
-
readonly prompt: string;
|
|
4948
|
-
readonly description: string;
|
|
4949
|
-
readonly agent: string;
|
|
4950
|
-
readonly model?: {
|
|
4951
|
-
readonly providerID: string;
|
|
4952
|
-
readonly modelID: string;
|
|
4953
|
-
} | undefined;
|
|
4954
|
-
readonly command?: string | undefined;
|
|
4955
|
-
readonly background?: boolean | undefined;
|
|
4956
|
-
} | {
|
|
4957
|
-
readonly id: string;
|
|
4958
|
-
readonly sessionID: string;
|
|
4959
|
-
readonly messageID: string;
|
|
4960
|
-
readonly type: "reasoning";
|
|
4961
|
-
readonly text: string;
|
|
4962
|
-
readonly metadata?: {
|
|
4963
|
-
readonly [x: string]: any;
|
|
4964
|
-
} | undefined;
|
|
4965
|
-
readonly time: {
|
|
4966
|
-
readonly start: number;
|
|
4967
|
-
readonly end?: number | undefined;
|
|
4968
|
-
};
|
|
4969
|
-
} | {
|
|
4970
|
-
readonly id: string;
|
|
4971
|
-
readonly sessionID: string;
|
|
4972
|
-
readonly messageID: string;
|
|
4965
|
+
readonly id?: string | undefined;
|
|
4973
4966
|
readonly type: "file";
|
|
4974
4967
|
readonly mime: string;
|
|
4975
4968
|
readonly filename?: string | undefined;
|
|
@@ -5013,162 +5006,7 @@ export type MobileSessionMessagePayload = {
|
|
|
5013
5006
|
readonly uri: string;
|
|
5014
5007
|
}) | undefined;
|
|
5015
5008
|
} | {
|
|
5016
|
-
readonly id
|
|
5017
|
-
readonly sessionID: string;
|
|
5018
|
-
readonly messageID: string;
|
|
5019
|
-
readonly type: "tool";
|
|
5020
|
-
readonly callID: string;
|
|
5021
|
-
readonly tool: string;
|
|
5022
|
-
readonly state: {
|
|
5023
|
-
readonly status: "pending";
|
|
5024
|
-
readonly input: {
|
|
5025
|
-
readonly [x: string]: any;
|
|
5026
|
-
};
|
|
5027
|
-
readonly raw: string;
|
|
5028
|
-
} | {
|
|
5029
|
-
readonly status: "running";
|
|
5030
|
-
readonly input: {
|
|
5031
|
-
readonly [x: string]: any;
|
|
5032
|
-
};
|
|
5033
|
-
readonly title?: string | undefined;
|
|
5034
|
-
readonly metadata?: {
|
|
5035
|
-
readonly [x: string]: any;
|
|
5036
|
-
} | undefined;
|
|
5037
|
-
readonly structured?: {
|
|
5038
|
-
readonly [x: string]: any;
|
|
5039
|
-
} | undefined;
|
|
5040
|
-
readonly content?: ReadonlyArray<{
|
|
5041
|
-
readonly type: "text";
|
|
5042
|
-
readonly text: string;
|
|
5043
|
-
} | {
|
|
5044
|
-
readonly type: "file";
|
|
5045
|
-
readonly data: string;
|
|
5046
|
-
readonly mime: string;
|
|
5047
|
-
readonly name?: string | undefined;
|
|
5048
|
-
}> | undefined;
|
|
5049
|
-
readonly time: {
|
|
5050
|
-
readonly start: number;
|
|
5051
|
-
};
|
|
5052
|
-
} | {
|
|
5053
|
-
readonly status: "completed";
|
|
5054
|
-
readonly input: {
|
|
5055
|
-
readonly [x: string]: any;
|
|
5056
|
-
};
|
|
5057
|
-
readonly output: string;
|
|
5058
|
-
readonly title: string;
|
|
5059
|
-
readonly metadata: {
|
|
5060
|
-
readonly [x: string]: any;
|
|
5061
|
-
};
|
|
5062
|
-
readonly time: {
|
|
5063
|
-
readonly start: number;
|
|
5064
|
-
readonly end: number;
|
|
5065
|
-
readonly compacted?: number | undefined;
|
|
5066
|
-
};
|
|
5067
|
-
readonly attachments?: ReadonlyArray<{
|
|
5068
|
-
readonly id: string;
|
|
5069
|
-
readonly sessionID: string;
|
|
5070
|
-
readonly messageID: string;
|
|
5071
|
-
readonly type: "file";
|
|
5072
|
-
readonly mime: string;
|
|
5073
|
-
readonly filename?: string | undefined;
|
|
5074
|
-
readonly url: string;
|
|
5075
|
-
readonly source?: ({
|
|
5076
|
-
readonly text: {
|
|
5077
|
-
readonly value: string;
|
|
5078
|
-
readonly start: number;
|
|
5079
|
-
readonly end: number;
|
|
5080
|
-
};
|
|
5081
|
-
readonly type: "file";
|
|
5082
|
-
readonly path: string;
|
|
5083
|
-
} | {
|
|
5084
|
-
readonly text: {
|
|
5085
|
-
readonly value: string;
|
|
5086
|
-
readonly start: number;
|
|
5087
|
-
readonly end: number;
|
|
5088
|
-
};
|
|
5089
|
-
readonly type: "symbol";
|
|
5090
|
-
readonly path: string;
|
|
5091
|
-
readonly range: {
|
|
5092
|
-
readonly start: {
|
|
5093
|
-
readonly line: number;
|
|
5094
|
-
readonly character: number;
|
|
5095
|
-
};
|
|
5096
|
-
readonly end: {
|
|
5097
|
-
readonly line: number;
|
|
5098
|
-
readonly character: number;
|
|
5099
|
-
};
|
|
5100
|
-
};
|
|
5101
|
-
readonly name: string;
|
|
5102
|
-
readonly kind: number;
|
|
5103
|
-
} | {
|
|
5104
|
-
readonly text: {
|
|
5105
|
-
readonly value: string;
|
|
5106
|
-
readonly start: number;
|
|
5107
|
-
readonly end: number;
|
|
5108
|
-
};
|
|
5109
|
-
readonly type: "resource";
|
|
5110
|
-
readonly clientName: string;
|
|
5111
|
-
readonly uri: string;
|
|
5112
|
-
}) | undefined;
|
|
5113
|
-
}> | undefined;
|
|
5114
|
-
} | {
|
|
5115
|
-
readonly status: "error";
|
|
5116
|
-
readonly input: {
|
|
5117
|
-
readonly [x: string]: any;
|
|
5118
|
-
};
|
|
5119
|
-
readonly error: string;
|
|
5120
|
-
readonly metadata?: {
|
|
5121
|
-
readonly [x: string]: any;
|
|
5122
|
-
} | undefined;
|
|
5123
|
-
readonly time: {
|
|
5124
|
-
readonly start: number;
|
|
5125
|
-
readonly end: number;
|
|
5126
|
-
};
|
|
5127
|
-
};
|
|
5128
|
-
readonly metadata?: {
|
|
5129
|
-
readonly [x: string]: any;
|
|
5130
|
-
} | undefined;
|
|
5131
|
-
} | {
|
|
5132
|
-
readonly id: string;
|
|
5133
|
-
readonly sessionID: string;
|
|
5134
|
-
readonly messageID: string;
|
|
5135
|
-
readonly type: "step-start";
|
|
5136
|
-
readonly snapshot?: string | undefined;
|
|
5137
|
-
} | {
|
|
5138
|
-
readonly id: string;
|
|
5139
|
-
readonly sessionID: string;
|
|
5140
|
-
readonly messageID: string;
|
|
5141
|
-
readonly type: "step-finish";
|
|
5142
|
-
readonly reason: string;
|
|
5143
|
-
readonly snapshot?: string | undefined;
|
|
5144
|
-
readonly cost: number;
|
|
5145
|
-
readonly tokens: {
|
|
5146
|
-
readonly total?: number | undefined;
|
|
5147
|
-
readonly input: number;
|
|
5148
|
-
readonly output: number;
|
|
5149
|
-
readonly reasoning: number;
|
|
5150
|
-
readonly cache: {
|
|
5151
|
-
readonly read: number;
|
|
5152
|
-
readonly write: number;
|
|
5153
|
-
};
|
|
5154
|
-
};
|
|
5155
|
-
} | {
|
|
5156
|
-
readonly id: string;
|
|
5157
|
-
readonly sessionID: string;
|
|
5158
|
-
readonly messageID: string;
|
|
5159
|
-
readonly type: "snapshot";
|
|
5160
|
-
readonly snapshot: string;
|
|
5161
|
-
} | {
|
|
5162
|
-
readonly id: string;
|
|
5163
|
-
readonly sessionID: string;
|
|
5164
|
-
readonly messageID: string;
|
|
5165
|
-
readonly type: "patch";
|
|
5166
|
-
readonly hash: string;
|
|
5167
|
-
readonly files: ReadonlyArray<string>;
|
|
5168
|
-
} | {
|
|
5169
|
-
readonly id: string;
|
|
5170
|
-
readonly sessionID: string;
|
|
5171
|
-
readonly messageID: string;
|
|
5009
|
+
readonly id?: string | undefined;
|
|
5172
5010
|
readonly type: "agent";
|
|
5173
5011
|
readonly name: string;
|
|
5174
5012
|
readonly source?: {
|
|
@@ -5177,40 +5015,22 @@ export type MobileSessionMessagePayload = {
|
|
|
5177
5015
|
readonly end: number;
|
|
5178
5016
|
} | undefined;
|
|
5179
5017
|
} | {
|
|
5180
|
-
readonly id
|
|
5181
|
-
readonly
|
|
5182
|
-
readonly
|
|
5183
|
-
readonly
|
|
5184
|
-
readonly
|
|
5185
|
-
readonly
|
|
5186
|
-
readonly
|
|
5187
|
-
readonly
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
|
|
5191
|
-
readonly responseHeaders?: {
|
|
5192
|
-
readonly [x: string]: string;
|
|
5193
|
-
} | undefined;
|
|
5194
|
-
readonly responseBody?: string | undefined;
|
|
5195
|
-
readonly metadata?: {
|
|
5196
|
-
readonly [x: string]: string;
|
|
5197
|
-
} | undefined;
|
|
5198
|
-
readonly classification?: "payload-too-large" | undefined;
|
|
5199
|
-
};
|
|
5200
|
-
};
|
|
5201
|
-
readonly time: {
|
|
5202
|
-
readonly created: number;
|
|
5203
|
-
};
|
|
5204
|
-
} | {
|
|
5205
|
-
readonly id: string;
|
|
5206
|
-
readonly sessionID: string;
|
|
5207
|
-
readonly messageID: string;
|
|
5208
|
-
readonly type: "compaction";
|
|
5209
|
-
readonly auto: boolean;
|
|
5018
|
+
readonly id?: string | undefined;
|
|
5019
|
+
readonly type: "subtask";
|
|
5020
|
+
readonly prompt: string;
|
|
5021
|
+
readonly description: string;
|
|
5022
|
+
readonly agent: string;
|
|
5023
|
+
readonly model?: {
|
|
5024
|
+
readonly providerID: string;
|
|
5025
|
+
readonly modelID: string;
|
|
5026
|
+
} | undefined;
|
|
5027
|
+
readonly command?: string | undefined;
|
|
5028
|
+
readonly background?: boolean | undefined;
|
|
5210
5029
|
}>;
|
|
5030
|
+
readonly parentSessionID?: string | undefined;
|
|
5211
5031
|
};
|
|
5212
5032
|
export type MobilePermissionRespondPayload = {
|
|
5213
|
-
readonly response:
|
|
5033
|
+
readonly response: "once" | "always" | "reject";
|
|
5214
5034
|
};
|
|
5215
5035
|
export type MobileQuestionRespondPayload = {
|
|
5216
5036
|
readonly answers: ReadonlyArray<ReadonlyArray<string>>;
|
|
@@ -7881,6 +7701,7 @@ export type MobileSessionMessageInput = {
|
|
|
7881
7701
|
readonly sessionID: string;
|
|
7882
7702
|
}["sessionID"];
|
|
7883
7703
|
readonly messageID?: MobileSessionMessagePayload["messageID"];
|
|
7704
|
+
readonly delivery?: MobileSessionMessagePayload["delivery"];
|
|
7884
7705
|
readonly model?: MobileSessionMessagePayload["model"];
|
|
7885
7706
|
readonly agent?: MobileSessionMessagePayload["agent"];
|
|
7886
7707
|
readonly noReply?: MobileSessionMessagePayload["noReply"];
|
|
@@ -7889,10 +7710,9 @@ export type MobileSessionMessageInput = {
|
|
|
7889
7710
|
readonly system?: MobileSessionMessagePayload["system"];
|
|
7890
7711
|
readonly variant?: MobileSessionMessagePayload["variant"];
|
|
7891
7712
|
readonly parts: MobileSessionMessagePayload["parts"];
|
|
7713
|
+
readonly parentSessionID?: MobileSessionMessagePayload["parentSessionID"];
|
|
7892
7714
|
};
|
|
7893
|
-
export type MobileSessionMessageOutput =
|
|
7894
|
-
accepted: true;
|
|
7895
|
-
};
|
|
7715
|
+
export type MobileSessionMessageOutput = MobileAccepted;
|
|
7896
7716
|
export type MobileSessionAbortInput = {
|
|
7897
7717
|
readonly sessionID: {
|
|
7898
7718
|
readonly sessionID: string;
|
|
@@ -8011,7 +7831,7 @@ export type MobileWorktreeCreateInput = {
|
|
|
8011
7831
|
readonly sourceDirectory?: MobileWorktreeCreatePayload["sourceDirectory"];
|
|
8012
7832
|
readonly root?: MobileWorktreeCreatePayload["root"];
|
|
8013
7833
|
};
|
|
8014
|
-
export type MobileWorktreeCreateOutput =
|
|
7834
|
+
export type MobileWorktreeCreateOutput = Worktree;
|
|
8015
7835
|
export type MobileWorktreeRemoveInput = {
|
|
8016
7836
|
readonly directory: MobileWorktreeRemovePayload["directory"];
|
|
8017
7837
|
readonly force?: MobileWorktreeRemovePayload["force"];
|
package/dist/server.d.ts
CHANGED
|
@@ -692,7 +692,7 @@ export declare function createNikcli(options?: ServerOptions): Promise<{
|
|
|
692
692
|
message: (input: import("./httpapi/client.js").MobileSessionMessageInput & {
|
|
693
693
|
readonly directory?: string;
|
|
694
694
|
readonly workspace?: string;
|
|
695
|
-
}, options?: import("./httpapi/compat.js").CallOptions) => Promise<import("./httpapi/compat.js").Result<import("./httpapi/client.js").
|
|
695
|
+
}, options?: import("./httpapi/compat.js").CallOptions) => Promise<import("./httpapi/compat.js").Result<import("./httpapi/client.js").MobileAccepted>>;
|
|
696
696
|
rename: (input: import("./httpapi/client.js").MobileSessionRenameInput & {
|
|
697
697
|
readonly directory?: string;
|
|
698
698
|
readonly workspace?: string;
|
|
@@ -725,7 +725,7 @@ export declare function createNikcli(options?: ServerOptions): Promise<{
|
|
|
725
725
|
create: (input?: (import("./httpapi/client.js").MobileWorktreeCreateInput & {
|
|
726
726
|
readonly directory?: string;
|
|
727
727
|
readonly workspace?: string;
|
|
728
|
-
}) | undefined, options?: import("./httpapi/compat.js").CallOptions) => Promise<import("./httpapi/compat.js").Result<import("./httpapi/client.js").
|
|
728
|
+
}) | undefined, options?: import("./httpapi/compat.js").CallOptions) => Promise<import("./httpapi/compat.js").Result<import("./httpapi/client.js").Worktree>>;
|
|
729
729
|
remove: (input: import("./httpapi/client.js").MobileWorktreeRemoveInput & {
|
|
730
730
|
readonly directory?: string;
|
|
731
731
|
readonly workspace?: string;
|