@nikcli-ai/sdk 1.283.0 → 1.285.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
|
@@ -351,6 +351,14 @@ export declare function compat(raw: Raw, defaults?: CompatDefaults): {
|
|
|
351
351
|
postConfigProfilesActivateName: (input: WithDirectory<import("./client.js").ConfigManagementProfileActivateInput>, options?: CallOptions) => Promise<Result<import("./client.js").SuccessFlag>>;
|
|
352
352
|
postUserLogin: (input: WithDirectory<import("./client.js").UsersLoginInput>, options?: CallOptions) => Promise<Result<import("./client.js").UserSession>>;
|
|
353
353
|
postUserRegister: (input: WithDirectory<import("./client.js").UsersRegisterInput>, options?: CallOptions) => Promise<Result<import("./client.js").UserSession>>;
|
|
354
|
+
profile: {
|
|
355
|
+
clear: (options?: CallOptions, overrides?: CallOptions) => Promise<Result<import("./client.js").ProfileDeleted>>;
|
|
356
|
+
clearHabits: (input?: (import("./client.js").ProfileClearHabitsInput & Selector) | undefined, options?: CallOptions) => Promise<Result<import("./client.js").ProfileDeleted>>;
|
|
357
|
+
get: (options?: CallOptions, overrides?: CallOptions) => Promise<Result<import("./client.js").ProfileInfoOrNull>>;
|
|
358
|
+
habits: (input?: (import("./client.js").ProfileHabitsInput & Selector) | undefined, options?: CallOptions) => Promise<Result<import("./client.js").ProfileHabits>>;
|
|
359
|
+
patch: (input: WithDirectory<import("./client.js").ProfilePatchInput>, options?: CallOptions) => Promise<Result<import("./client.js").ProfileInfo>>;
|
|
360
|
+
preview: (input?: (import("./client.js").ProfilePreviewInput & Selector) | undefined, options?: CallOptions) => Promise<Result<import("./client.js").ProfilePreview>>;
|
|
361
|
+
};
|
|
354
362
|
project: {
|
|
355
363
|
current: (options?: CallOptions, overrides?: CallOptions) => Promise<Result<import("./client.js").Project>>;
|
|
356
364
|
list: (options?: CallOptions, overrides?: CallOptions) => Promise<Result<import("./client.js").ProjectListOutput>>;
|
|
@@ -407,6 +415,8 @@ export declare function compat(raw: Raw, defaults?: CompatDefaults): {
|
|
|
407
415
|
monitor: (input: WithDirectory<import("./client.js").SessionMonitorInput>, options?: CallOptions) => Promise<Result<import("./client.js").SessionMonitorOutput2>>;
|
|
408
416
|
monitorCancel: (input: WithDirectory<import("./client.js").SessionMonitorCancelInput>, options?: CallOptions) => Promise<Result<import("./client.js").SessionMonitorOutput2>>;
|
|
409
417
|
monitorLog: (input: WithDirectory<import("./client.js").SessionMonitorLogInput>, options?: CallOptions) => Promise<Result<import("./client.js").SessionMonitorLogOutput2>>;
|
|
418
|
+
pending: (input: WithDirectory<import("./client.js").SessionPendingInput>, options?: CallOptions) => Promise<Result<import("./client.js").SessionPendingInputList>>;
|
|
419
|
+
pendingSteer: (input: WithDirectory<import("./client.js").SessionPendingSteerInput>, options?: CallOptions) => Promise<Result<import("./client.js").SessionPendingInput2>>;
|
|
410
420
|
prompt: (input: WithDirectory<import("./client.js").SessionPromptPromptInput>, options?: CallOptions) => Promise<Result<import("./client.js").SessionPromptResponse>>;
|
|
411
421
|
promptAsync: (input: WithDirectory<import("./client.js").SessionPromptPromptAsyncInput>, options?: CallOptions) => Promise<Result<void>>;
|
|
412
422
|
revert: (input: WithDirectory<import("./client.js").SessionRevertInput>, options?: CallOptions) => Promise<Result<import("./client.js").Session>>;
|
|
@@ -452,6 +462,7 @@ export declare function compat(raw: Raw, defaults?: CompatDefaults): {
|
|
|
452
462
|
tui: {
|
|
453
463
|
appendPrompt: (input: WithDirectory<import("./client.js").TuiAppendPromptInput>, options?: CallOptions) => Promise<Result<boolean>>;
|
|
454
464
|
clearPrompt: (options?: CallOptions, overrides?: CallOptions) => Promise<Result<boolean>>;
|
|
465
|
+
config: (options?: CallOptions, overrides?: CallOptions) => Promise<Result<import("./client.js").TuiConfig>>;
|
|
455
466
|
control: {
|
|
456
467
|
next: (options?: CallOptions, overrides?: CallOptions) => Promise<Result<import("./client.js").TuiControlRequest>>;
|
|
457
468
|
response: (input: WithDirectory<import("./client.js").TuiControlResponseInput>, options?: CallOptions) => Promise<Result<boolean>>;
|
package/dist/httpapi/compat.js
CHANGED
|
@@ -376,6 +376,14 @@ export function compat(raw, defaults = {}) {
|
|
|
376
376
|
postConfigProfilesActivateName: result(raw["config-management"].profileActivate),
|
|
377
377
|
postUserLogin: result(raw.users.login),
|
|
378
378
|
postUserRegister: result(raw.users.register),
|
|
379
|
+
profile: {
|
|
380
|
+
clear: result0(raw.profile.clear),
|
|
381
|
+
clearHabits: result(raw.profile.clearHabits),
|
|
382
|
+
get: result0(raw.profile.get),
|
|
383
|
+
habits: result(raw.profile.habits),
|
|
384
|
+
patch: result(raw.profile.patch),
|
|
385
|
+
preview: result(raw.profile.preview),
|
|
386
|
+
},
|
|
379
387
|
project: {
|
|
380
388
|
current: result0(raw.project.current),
|
|
381
389
|
list: result0(raw.project.list),
|
|
@@ -432,6 +440,8 @@ export function compat(raw, defaults = {}) {
|
|
|
432
440
|
monitor: result(raw.session.monitor),
|
|
433
441
|
monitorCancel: result(raw.session.monitorCancel),
|
|
434
442
|
monitorLog: result(raw.session.monitorLog),
|
|
443
|
+
pending: result(raw.session.pending),
|
|
444
|
+
pendingSteer: result(raw.session.pendingSteer),
|
|
435
445
|
prompt: result(raw["session-prompt"].prompt),
|
|
436
446
|
promptAsync: result(raw["session-prompt"].promptAsync),
|
|
437
447
|
revert: result(raw.session.revert),
|
|
@@ -475,6 +485,7 @@ export function compat(raw, defaults = {}) {
|
|
|
475
485
|
tui: {
|
|
476
486
|
appendPrompt: result(raw.tui.appendPrompt),
|
|
477
487
|
clearPrompt: result0(raw.tui.clearPrompt),
|
|
488
|
+
config: result0(raw.tui.config),
|
|
478
489
|
control: {
|
|
479
490
|
next: result0(raw.tui.controlNext),
|
|
480
491
|
response: result(raw.tui.controlResponse),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TopLevelVcsStatusOutput, TopLevelVcsApplyInput, TopLevelCommandOutput, TopLevelAgentOutput, TopLevelSkillOutput, TopLevelLspOutput, TopLevelFormatterOutput, AnalyticsDailyInput, AnalyticsDailyOutput, AnalyticsSessionInput, AnalyticsSessionsOutput, AnalyticsDataInput, AppLogInput, AppSkillCreateInput, AppSkillDeleteInput, BrainTriggerInput, 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, MobileSessionMessageOutput, MobileSessionAbortInput, MobilePermissionRespondInput, MobileQuestionRespondInput, MobileQuestionRejectInput, MobileSessionPublishInput, MobileSessionCleanupInput, MobileSessionStreamInput, MobileSessionStreamOutput, MobileSessionRenameInput, 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, 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, SessionMessageInput, SessionMessageRemoveInput, SessionPartRemoveInput, SessionPartUpdateInput, SessionV2EntriesInput, SessionV2StateInput, SessionV2EventsInput, SessionInstructionsInput, SessionContextBreakdownInput, SessionContextToggleInput, SessionGoalInput, SessionBackgroundInput, SessionBackgroundInspectInput, SessionBackgroundReadInput, SessionBackgroundCancelInput, SessionMonitorInput, SessionMonitorLogInput, SessionMonitorCancelInput, 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";
|
|
1
|
+
import type { TopLevelVcsStatusOutput, TopLevelVcsApplyInput, TopLevelCommandOutput, TopLevelAgentOutput, TopLevelSkillOutput, TopLevelLspOutput, TopLevelFormatterOutput, AnalyticsDailyInput, AnalyticsDailyOutput, AnalyticsSessionInput, AnalyticsSessionsOutput, AnalyticsDataInput, AppLogInput, AppSkillCreateInput, AppSkillDeleteInput, BrainTriggerInput, 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, MobileSessionMessageOutput, MobileSessionAbortInput, MobilePermissionRespondInput, MobileQuestionRespondInput, MobileQuestionRejectInput, MobileSessionPublishInput, MobileSessionCleanupInput, MobileSessionStreamInput, MobileSessionStreamOutput, MobileSessionRenameInput, 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, 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, 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;
|
|
@@ -39,6 +39,14 @@ export declare function make(options: ClientOptions): {
|
|
|
39
39
|
status: (requestOptions?: RequestOptions) => Promise<import("./types.js").BrainStatus>;
|
|
40
40
|
trigger: (input?: BrainTriggerInput, requestOptions?: RequestOptions) => Promise<import("./types.js").BrainResult>;
|
|
41
41
|
};
|
|
42
|
+
profile: {
|
|
43
|
+
get: (requestOptions?: RequestOptions) => Promise<import("./types.js").ProfileInfoOrNull>;
|
|
44
|
+
patch: (input: ProfilePatchInput, requestOptions?: RequestOptions) => Promise<import("./types.js").ProfileInfo>;
|
|
45
|
+
clear: (requestOptions?: RequestOptions) => Promise<import("./types.js").ProfileDeleted>;
|
|
46
|
+
habits: (input?: ProfileHabitsInput, requestOptions?: RequestOptions) => Promise<import("./types.js").ProfileHabits>;
|
|
47
|
+
preview: (input?: ProfilePreviewInput, requestOptions?: RequestOptions) => Promise<import("./types.js").ProfilePreview>;
|
|
48
|
+
clearHabits: (input?: ProfileClearHabitsInput, requestOptions?: RequestOptions) => Promise<import("./types.js").ProfileDeleted>;
|
|
49
|
+
};
|
|
42
50
|
config: {
|
|
43
51
|
get: (requestOptions?: RequestOptions) => Promise<import("./types.js").Config>;
|
|
44
52
|
update: (input: ConfigUpdateInput, requestOptions?: RequestOptions) => Promise<import("./types.js").Config>;
|
|
@@ -262,6 +270,8 @@ export declare function make(options: ClientOptions): {
|
|
|
262
270
|
todo: (input: SessionTodoInput, requestOptions?: RequestOptions) => Promise<import("./types.js").TodoList>;
|
|
263
271
|
diff: (input: SessionDiffInput, requestOptions?: RequestOptions) => Promise<import("./types.js").FileDiffList>;
|
|
264
272
|
messages: (input: SessionMessagesInput, requestOptions?: RequestOptions) => Promise<import("./types.js").MessageList>;
|
|
273
|
+
pending: (input: SessionPendingInput, requestOptions?: RequestOptions) => Promise<import("./types.js").SessionPendingInputList>;
|
|
274
|
+
pendingSteer: (input: SessionPendingSteerInput, requestOptions?: RequestOptions) => Promise<import("./types.js").SessionPendingInput2>;
|
|
265
275
|
message: (input: SessionMessageInput, requestOptions?: RequestOptions) => Promise<import("./types.js").MessageWithParts>;
|
|
266
276
|
messageRemove: (input: SessionMessageRemoveInput, requestOptions?: RequestOptions) => Promise<boolean>;
|
|
267
277
|
partRemove: (input: SessionPartRemoveInput, requestOptions?: RequestOptions) => Promise<boolean>;
|
|
@@ -304,6 +314,7 @@ export declare function make(options: ClientOptions): {
|
|
|
304
314
|
showToast: (input: TuiShowToastInput, requestOptions?: RequestOptions) => Promise<boolean>;
|
|
305
315
|
publish: (input: TuiPublishInput, requestOptions?: RequestOptions) => Promise<boolean>;
|
|
306
316
|
selectSession: (input: TuiSelectSessionInput, requestOptions?: RequestOptions) => Promise<boolean>;
|
|
317
|
+
config: (requestOptions?: RequestOptions) => Promise<import("./types.js").TuiConfig>;
|
|
307
318
|
controlNext: (requestOptions?: RequestOptions) => Promise<import("./types.js").TuiControlRequest>;
|
|
308
319
|
controlResponse: (input: TuiControlResponseInput, requestOptions?: RequestOptions) => Promise<boolean>;
|
|
309
320
|
};
|
|
@@ -223,6 +223,42 @@ export function make(options) {
|
|
|
223
223
|
empty: false,
|
|
224
224
|
}, requestOptions),
|
|
225
225
|
},
|
|
226
|
+
profile: {
|
|
227
|
+
get: (requestOptions) => request({ method: "GET", path: `/profile`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
228
|
+
patch: (input, requestOptions) => request({
|
|
229
|
+
method: "PATCH",
|
|
230
|
+
path: `/profile`,
|
|
231
|
+
body: input["payload"],
|
|
232
|
+
successStatus: 200,
|
|
233
|
+
declaredStatuses: [],
|
|
234
|
+
empty: false,
|
|
235
|
+
}, requestOptions),
|
|
236
|
+
clear: (requestOptions) => request({ method: "DELETE", path: `/profile`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
237
|
+
habits: (input, requestOptions) => request({
|
|
238
|
+
method: "GET",
|
|
239
|
+
path: `/profile/habits`,
|
|
240
|
+
query: { worktree: input?.["worktree"] },
|
|
241
|
+
successStatus: 200,
|
|
242
|
+
declaredStatuses: [],
|
|
243
|
+
empty: false,
|
|
244
|
+
}, requestOptions),
|
|
245
|
+
preview: (input, requestOptions) => request({
|
|
246
|
+
method: "GET",
|
|
247
|
+
path: `/profile/preview`,
|
|
248
|
+
query: { worktree: input?.["worktree"] },
|
|
249
|
+
successStatus: 200,
|
|
250
|
+
declaredStatuses: [],
|
|
251
|
+
empty: false,
|
|
252
|
+
}, requestOptions),
|
|
253
|
+
clearHabits: (input, requestOptions) => request({
|
|
254
|
+
method: "DELETE",
|
|
255
|
+
path: `/profile/habits`,
|
|
256
|
+
query: { worktree: input?.["worktree"] },
|
|
257
|
+
successStatus: 200,
|
|
258
|
+
declaredStatuses: [],
|
|
259
|
+
empty: false,
|
|
260
|
+
}, requestOptions),
|
|
261
|
+
},
|
|
226
262
|
config: {
|
|
227
263
|
get: (requestOptions) => request({ method: "GET", path: `/config`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
228
264
|
update: (input, requestOptions) => request({
|
|
@@ -1485,6 +1521,7 @@ export function make(options) {
|
|
|
1485
1521
|
path: `/session/${encodeURIComponent(input.sessionID)}/command`,
|
|
1486
1522
|
body: {
|
|
1487
1523
|
messageID: input["messageID"],
|
|
1524
|
+
delivery: input["delivery"],
|
|
1488
1525
|
agent: input["agent"],
|
|
1489
1526
|
model: input["model"],
|
|
1490
1527
|
arguments: input["arguments"],
|
|
@@ -1542,6 +1579,20 @@ export function make(options) {
|
|
|
1542
1579
|
declaredStatuses: [404, 409],
|
|
1543
1580
|
empty: false,
|
|
1544
1581
|
}, requestOptions),
|
|
1582
|
+
pending: (input, requestOptions) => request({
|
|
1583
|
+
method: "GET",
|
|
1584
|
+
path: `/session/${encodeURIComponent(input.sessionID)}/pending`,
|
|
1585
|
+
successStatus: 200,
|
|
1586
|
+
declaredStatuses: [404, 409],
|
|
1587
|
+
empty: false,
|
|
1588
|
+
}, requestOptions),
|
|
1589
|
+
pendingSteer: (input, requestOptions) => request({
|
|
1590
|
+
method: "POST",
|
|
1591
|
+
path: `/session/${encodeURIComponent(input.sessionID)}/pending/${encodeURIComponent(input.pendingID)}/steer`,
|
|
1592
|
+
successStatus: 200,
|
|
1593
|
+
declaredStatuses: [404, 409],
|
|
1594
|
+
empty: false,
|
|
1595
|
+
}, requestOptions),
|
|
1545
1596
|
message: (input, requestOptions) => request({
|
|
1546
1597
|
method: "GET",
|
|
1547
1598
|
path: `/session/${encodeURIComponent(input.sessionID)}/message/${encodeURIComponent(input.messageID)}`,
|
|
@@ -1772,6 +1823,7 @@ export function make(options) {
|
|
|
1772
1823
|
declaredStatuses: [400, 404],
|
|
1773
1824
|
empty: false,
|
|
1774
1825
|
}, requestOptions),
|
|
1826
|
+
config: (requestOptions) => request({ method: "GET", path: `/tui/config`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
1775
1827
|
controlNext: (requestOptions) => request({ method: "GET", path: `/tui/control/next`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
1776
1828
|
controlResponse: (input, requestOptions) => request({
|
|
1777
1829
|
method: "POST",
|
|
@@ -1914,6 +1966,7 @@ export function make(options) {
|
|
|
1914
1966
|
path: `/session/${encodeURIComponent(input.sessionID)}/message`,
|
|
1915
1967
|
body: {
|
|
1916
1968
|
messageID: input["messageID"],
|
|
1969
|
+
delivery: input["delivery"],
|
|
1917
1970
|
model: input["model"],
|
|
1918
1971
|
agent: input["agent"],
|
|
1919
1972
|
noReply: input["noReply"],
|
|
@@ -1932,6 +1985,7 @@ export function make(options) {
|
|
|
1932
1985
|
path: `/session/${encodeURIComponent(input.sessionID)}/prompt_async`,
|
|
1933
1986
|
body: {
|
|
1934
1987
|
messageID: input["messageID"],
|
|
1988
|
+
delivery: input["delivery"],
|
|
1935
1989
|
model: input["model"],
|
|
1936
1990
|
agent: input["agent"],
|
|
1937
1991
|
noReply: input["noReply"],
|
|
@@ -168,6 +168,40 @@ export type BrainResult = {
|
|
|
168
168
|
error?: string | undefined;
|
|
169
169
|
sessionID?: string | undefined;
|
|
170
170
|
};
|
|
171
|
+
export type ProfileInfo = {
|
|
172
|
+
version: number;
|
|
173
|
+
key: string;
|
|
174
|
+
name?: string | undefined;
|
|
175
|
+
role?: string | undefined;
|
|
176
|
+
about?: string | undefined;
|
|
177
|
+
stack?: Array<string> | undefined;
|
|
178
|
+
expertise?: Array<string> | undefined;
|
|
179
|
+
learning?: Array<string> | undefined;
|
|
180
|
+
skills?: Array<string> | undefined;
|
|
181
|
+
tools?: {
|
|
182
|
+
preferred?: Array<string> | undefined;
|
|
183
|
+
avoid?: Array<string> | undefined;
|
|
184
|
+
} | undefined;
|
|
185
|
+
conventions?: Array<string> | undefined;
|
|
186
|
+
communication?: {
|
|
187
|
+
verbosity?: "concise" | "balanced" | "detailed" | undefined;
|
|
188
|
+
language?: string | undefined;
|
|
189
|
+
explain?: boolean | undefined;
|
|
190
|
+
} | undefined;
|
|
191
|
+
custom?: string | undefined;
|
|
192
|
+
habits?: boolean | undefined;
|
|
193
|
+
updatedAt: number;
|
|
194
|
+
};
|
|
195
|
+
export type ProfileDeleted = {
|
|
196
|
+
deleted: boolean;
|
|
197
|
+
};
|
|
198
|
+
export type ProfileHabits = {
|
|
199
|
+
content: string;
|
|
200
|
+
};
|
|
201
|
+
export type ProfilePreview = {
|
|
202
|
+
lines: Array<string>;
|
|
203
|
+
habitsFile: string;
|
|
204
|
+
};
|
|
171
205
|
export type KeybindsConfig = {
|
|
172
206
|
leader?: string | undefined;
|
|
173
207
|
app_exit?: string | undefined;
|
|
@@ -757,10 +791,11 @@ export type MissionExec = {
|
|
|
757
791
|
export type MissionBooleanResult = boolean;
|
|
758
792
|
export type MobileAuthTokenPublic = {
|
|
759
793
|
id: string;
|
|
760
|
-
name
|
|
761
|
-
|
|
762
|
-
|
|
794
|
+
name: string;
|
|
795
|
+
createdAt: number;
|
|
796
|
+
lastUsedAt?: number | undefined;
|
|
763
797
|
expiresAt?: number | undefined;
|
|
798
|
+
scope?: string | undefined;
|
|
764
799
|
};
|
|
765
800
|
export type MobileProject = any;
|
|
766
801
|
export type MobileCommand = {
|
|
@@ -1354,6 +1389,43 @@ export type Todo = {
|
|
|
1354
1389
|
priority: string;
|
|
1355
1390
|
id: string;
|
|
1356
1391
|
};
|
|
1392
|
+
export type TextPartInput = {
|
|
1393
|
+
type: "text";
|
|
1394
|
+
text: string;
|
|
1395
|
+
synthetic?: boolean | undefined;
|
|
1396
|
+
ignored?: boolean | undefined;
|
|
1397
|
+
time?: {
|
|
1398
|
+
start: number;
|
|
1399
|
+
end?: number | undefined;
|
|
1400
|
+
} | undefined;
|
|
1401
|
+
metadata?: {
|
|
1402
|
+
[x: string]: any;
|
|
1403
|
+
} | undefined;
|
|
1404
|
+
id?: string | undefined;
|
|
1405
|
+
};
|
|
1406
|
+
export type AgentPartInput = {
|
|
1407
|
+
type: "agent";
|
|
1408
|
+
name: string;
|
|
1409
|
+
source?: {
|
|
1410
|
+
value: string;
|
|
1411
|
+
start: number;
|
|
1412
|
+
end: number;
|
|
1413
|
+
} | undefined;
|
|
1414
|
+
id?: string | undefined;
|
|
1415
|
+
};
|
|
1416
|
+
export type SubtaskPartInput = {
|
|
1417
|
+
type: "subtask";
|
|
1418
|
+
prompt: string;
|
|
1419
|
+
description: string;
|
|
1420
|
+
agent: string;
|
|
1421
|
+
model?: {
|
|
1422
|
+
providerID: string;
|
|
1423
|
+
modelID: string;
|
|
1424
|
+
} | undefined;
|
|
1425
|
+
command?: string | undefined;
|
|
1426
|
+
background?: boolean | undefined;
|
|
1427
|
+
id?: string | undefined;
|
|
1428
|
+
};
|
|
1357
1429
|
export type SessionV2EntryList = Array<any>;
|
|
1358
1430
|
export type SessionV2State = any;
|
|
1359
1431
|
export type SessionV2EventList = Array<any>;
|
|
@@ -1491,6 +1563,9 @@ export type SyncConfigSetResponse = {
|
|
|
1491
1563
|
error?: string | undefined;
|
|
1492
1564
|
};
|
|
1493
1565
|
export type TuiBooleanResult = boolean;
|
|
1566
|
+
export type PluginOptionsConfig = {
|
|
1567
|
+
[x: string]: any;
|
|
1568
|
+
};
|
|
1494
1569
|
export type TuiControlRequest = {
|
|
1495
1570
|
path: string;
|
|
1496
1571
|
body: any;
|
|
@@ -1651,6 +1726,23 @@ export type EventMessagePartRemoved = {
|
|
|
1651
1726
|
partID: string;
|
|
1652
1727
|
};
|
|
1653
1728
|
};
|
|
1729
|
+
export type EventSessionPendingPromoted = {
|
|
1730
|
+
type: "session.pending.promoted";
|
|
1731
|
+
properties: {
|
|
1732
|
+
sessionID: string;
|
|
1733
|
+
pendingIDs: Array<string>;
|
|
1734
|
+
messageIDs: Array<string>;
|
|
1735
|
+
};
|
|
1736
|
+
};
|
|
1737
|
+
export type EventSessionInstructionsUpdated = {
|
|
1738
|
+
type: "session.instructions.updated";
|
|
1739
|
+
properties: {
|
|
1740
|
+
sessionID: string;
|
|
1741
|
+
delta: {
|
|
1742
|
+
[x: string]: string | "removed";
|
|
1743
|
+
};
|
|
1744
|
+
};
|
|
1745
|
+
};
|
|
1654
1746
|
export type EventTuiPromptAppend = {
|
|
1655
1747
|
type: "tui.prompt.append";
|
|
1656
1748
|
properties: {
|
|
@@ -2152,6 +2244,7 @@ export type AnalyticsData = {
|
|
|
2152
2244
|
to: string;
|
|
2153
2245
|
generatedAt: number;
|
|
2154
2246
|
} | null;
|
|
2247
|
+
export type ProfileInfoOrNull = ProfileInfo | null;
|
|
2155
2248
|
export type AdsConfig = {
|
|
2156
2249
|
enabled?: boolean | undefined;
|
|
2157
2250
|
ratio?: number | undefined;
|
|
@@ -2497,6 +2590,7 @@ export type SyncStatsOutput2 = {
|
|
|
2497
2590
|
lastChange: number;
|
|
2498
2591
|
events: Array<SyncStatsEvent>;
|
|
2499
2592
|
};
|
|
2593
|
+
export type PluginSpecConfig = string | [string, PluginOptionsConfig];
|
|
2500
2594
|
export type Workspace1 = {
|
|
2501
2595
|
id: string;
|
|
2502
2596
|
name: string;
|
|
@@ -2618,6 +2712,146 @@ export type QuestionRequest = {
|
|
|
2618
2712
|
callID: string;
|
|
2619
2713
|
} | undefined;
|
|
2620
2714
|
};
|
|
2715
|
+
export type TuiConfig = {
|
|
2716
|
+
$schema?: string | undefined;
|
|
2717
|
+
theme?: string | undefined;
|
|
2718
|
+
keybinds?: {
|
|
2719
|
+
leader?: string | undefined;
|
|
2720
|
+
app_exit?: string | undefined;
|
|
2721
|
+
editor_open?: string | undefined;
|
|
2722
|
+
theme_list?: string | undefined;
|
|
2723
|
+
sidebar_toggle?: string | undefined;
|
|
2724
|
+
scrollbar_toggle?: string | undefined;
|
|
2725
|
+
username_toggle?: string | undefined;
|
|
2726
|
+
status_view?: string | undefined;
|
|
2727
|
+
sync_view?: string | undefined;
|
|
2728
|
+
session_export?: string | undefined;
|
|
2729
|
+
session_new?: string | undefined;
|
|
2730
|
+
session_list?: string | undefined;
|
|
2731
|
+
session_timeline?: string | undefined;
|
|
2732
|
+
session_fork?: string | undefined;
|
|
2733
|
+
session_rename?: string | undefined;
|
|
2734
|
+
session_delete?: string | undefined;
|
|
2735
|
+
session_pin_toggle?: string | undefined;
|
|
2736
|
+
session_scope_toggle?: string | undefined;
|
|
2737
|
+
session_tab_back?: string | undefined;
|
|
2738
|
+
session_tab_forward?: string | undefined;
|
|
2739
|
+
session_quick_switch_1?: string | undefined;
|
|
2740
|
+
session_quick_switch_2?: string | undefined;
|
|
2741
|
+
session_quick_switch_3?: string | undefined;
|
|
2742
|
+
session_quick_switch_4?: string | undefined;
|
|
2743
|
+
session_quick_switch_5?: string | undefined;
|
|
2744
|
+
session_quick_switch_6?: string | undefined;
|
|
2745
|
+
session_quick_switch_7?: string | undefined;
|
|
2746
|
+
session_quick_switch_8?: string | undefined;
|
|
2747
|
+
session_quick_switch_9?: string | undefined;
|
|
2748
|
+
stash_delete?: string | undefined;
|
|
2749
|
+
model_provider_list?: string | undefined;
|
|
2750
|
+
model_favorite_toggle?: string | undefined;
|
|
2751
|
+
session_share?: string | undefined;
|
|
2752
|
+
session_unshare?: string | undefined;
|
|
2753
|
+
session_interrupt?: string | undefined;
|
|
2754
|
+
session_codebro_open?: string | undefined;
|
|
2755
|
+
subtask_background?: string | undefined;
|
|
2756
|
+
subtask_picker?: string | undefined;
|
|
2757
|
+
session_compact?: string | undefined;
|
|
2758
|
+
messages_page_up?: string | undefined;
|
|
2759
|
+
messages_page_down?: string | undefined;
|
|
2760
|
+
messages_line_up?: string | undefined;
|
|
2761
|
+
messages_line_down?: string | undefined;
|
|
2762
|
+
messages_half_page_up?: string | undefined;
|
|
2763
|
+
messages_half_page_down?: string | undefined;
|
|
2764
|
+
messages_first?: string | undefined;
|
|
2765
|
+
messages_last?: string | undefined;
|
|
2766
|
+
messages_next?: string | undefined;
|
|
2767
|
+
messages_previous?: string | undefined;
|
|
2768
|
+
messages_last_user?: string | undefined;
|
|
2769
|
+
messages_copy?: string | undefined;
|
|
2770
|
+
messages_undo?: string | undefined;
|
|
2771
|
+
messages_redo?: string | undefined;
|
|
2772
|
+
messages_toggle_conceal?: string | undefined;
|
|
2773
|
+
tool_details?: string | undefined;
|
|
2774
|
+
model_list?: string | undefined;
|
|
2775
|
+
model_cycle_recent?: string | undefined;
|
|
2776
|
+
model_cycle_recent_reverse?: string | undefined;
|
|
2777
|
+
model_cycle_favorite?: string | undefined;
|
|
2778
|
+
model_cycle_favorite_reverse?: string | undefined;
|
|
2779
|
+
command_list?: string | undefined;
|
|
2780
|
+
agent_list?: string | undefined;
|
|
2781
|
+
agent_cycle?: string | undefined;
|
|
2782
|
+
agent_cycle_reverse?: string | undefined;
|
|
2783
|
+
permission_mode?: string | undefined;
|
|
2784
|
+
variant_cycle?: string | undefined;
|
|
2785
|
+
input_clear?: string | undefined;
|
|
2786
|
+
input_paste?: string | undefined;
|
|
2787
|
+
input_submit?: string | undefined;
|
|
2788
|
+
input_newline?: string | undefined;
|
|
2789
|
+
input_move_left?: string | undefined;
|
|
2790
|
+
input_move_right?: string | undefined;
|
|
2791
|
+
input_move_up?: string | undefined;
|
|
2792
|
+
input_move_down?: string | undefined;
|
|
2793
|
+
input_select_left?: string | undefined;
|
|
2794
|
+
input_select_right?: string | undefined;
|
|
2795
|
+
input_select_up?: string | undefined;
|
|
2796
|
+
input_select_down?: string | undefined;
|
|
2797
|
+
input_line_home?: string | undefined;
|
|
2798
|
+
input_line_end?: string | undefined;
|
|
2799
|
+
input_select_line_home?: string | undefined;
|
|
2800
|
+
input_select_line_end?: string | undefined;
|
|
2801
|
+
input_visual_line_home?: string | undefined;
|
|
2802
|
+
input_visual_line_end?: string | undefined;
|
|
2803
|
+
input_select_visual_line_home?: string | undefined;
|
|
2804
|
+
input_select_visual_line_end?: string | undefined;
|
|
2805
|
+
input_buffer_home?: string | undefined;
|
|
2806
|
+
input_buffer_end?: string | undefined;
|
|
2807
|
+
input_select_buffer_home?: string | undefined;
|
|
2808
|
+
input_select_buffer_end?: string | undefined;
|
|
2809
|
+
input_delete_line?: string | undefined;
|
|
2810
|
+
input_delete_to_line_end?: string | undefined;
|
|
2811
|
+
input_delete_to_line_start?: string | undefined;
|
|
2812
|
+
input_backspace?: string | undefined;
|
|
2813
|
+
input_delete?: string | undefined;
|
|
2814
|
+
input_undo?: string | undefined;
|
|
2815
|
+
input_redo?: string | undefined;
|
|
2816
|
+
input_word_forward?: string | undefined;
|
|
2817
|
+
input_word_backward?: string | undefined;
|
|
2818
|
+
input_select_word_forward?: string | undefined;
|
|
2819
|
+
input_select_word_backward?: string | undefined;
|
|
2820
|
+
input_delete_word_forward?: string | undefined;
|
|
2821
|
+
input_delete_word_backward?: string | undefined;
|
|
2822
|
+
history_previous?: string | undefined;
|
|
2823
|
+
history_next?: string | undefined;
|
|
2824
|
+
session_child_cycle?: string | undefined;
|
|
2825
|
+
session_child_cycle_reverse?: string | undefined;
|
|
2826
|
+
session_parent?: string | undefined;
|
|
2827
|
+
session_child_close?: string | undefined;
|
|
2828
|
+
terminal_suspend?: string | undefined;
|
|
2829
|
+
terminal_title_toggle?: string | undefined;
|
|
2830
|
+
tips_toggle?: string | undefined;
|
|
2831
|
+
voice_record?: string | undefined;
|
|
2832
|
+
app_support?: string | undefined;
|
|
2833
|
+
} | undefined;
|
|
2834
|
+
plugin?: Array<PluginSpecConfig> | undefined;
|
|
2835
|
+
plugin_enabled?: {
|
|
2836
|
+
[x: string]: boolean;
|
|
2837
|
+
} | undefined;
|
|
2838
|
+
scroll_speed?: number | undefined;
|
|
2839
|
+
scroll_acceleration?: {
|
|
2840
|
+
enabled: boolean;
|
|
2841
|
+
} | undefined;
|
|
2842
|
+
diff_style?: "auto" | "stacked" | undefined;
|
|
2843
|
+
mouse?: boolean | undefined;
|
|
2844
|
+
sound?: boolean | undefined;
|
|
2845
|
+
bg_pulse?: boolean | undefined;
|
|
2846
|
+
turn_tokens?: boolean | undefined;
|
|
2847
|
+
plugin_meta?: {
|
|
2848
|
+
[x: string]: {
|
|
2849
|
+
scope: "global" | "local";
|
|
2850
|
+
source: string;
|
|
2851
|
+
};
|
|
2852
|
+
} | undefined;
|
|
2853
|
+
[x: string]: any;
|
|
2854
|
+
};
|
|
2621
2855
|
export type OptionalWorkspace = Workspace1 | null;
|
|
2622
2856
|
export type QuestionRequest1 = {
|
|
2623
2857
|
id: string;
|
|
@@ -2714,6 +2948,14 @@ export type FilePart = {
|
|
|
2714
2948
|
url: string;
|
|
2715
2949
|
source?: FilePartSource | undefined;
|
|
2716
2950
|
};
|
|
2951
|
+
export type FilePartInput = {
|
|
2952
|
+
type: "file";
|
|
2953
|
+
mime: string;
|
|
2954
|
+
filename?: string | undefined;
|
|
2955
|
+
url: string;
|
|
2956
|
+
source?: FilePartSource | undefined;
|
|
2957
|
+
id?: string | undefined;
|
|
2958
|
+
};
|
|
2717
2959
|
export type EventQuestionAsked = {
|
|
2718
2960
|
type: "question.asked";
|
|
2719
2961
|
properties: QuestionRequest1;
|
|
@@ -2790,6 +3032,7 @@ export type ToolStateCompleted = {
|
|
|
2790
3032
|
};
|
|
2791
3033
|
attachments?: Array<FilePart> | undefined;
|
|
2792
3034
|
};
|
|
3035
|
+
export type PromptPartInput = TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput;
|
|
2793
3036
|
export type Config = {
|
|
2794
3037
|
$schema?: string | undefined;
|
|
2795
3038
|
theme?: string | undefined;
|
|
@@ -3069,6 +3312,24 @@ export type EventMessageUpdated = {
|
|
|
3069
3312
|
};
|
|
3070
3313
|
};
|
|
3071
3314
|
export type ToolState = ToolStatePending | ToolStateRunning | ToolStateCompleted | ToolStateError;
|
|
3315
|
+
export type SessionPendingPromptInput = {
|
|
3316
|
+
sessionID: string;
|
|
3317
|
+
messageID?: string | undefined;
|
|
3318
|
+
delivery?: "steer" | "queue" | undefined;
|
|
3319
|
+
model?: {
|
|
3320
|
+
providerID: string;
|
|
3321
|
+
modelID: string;
|
|
3322
|
+
} | undefined;
|
|
3323
|
+
agent?: string | undefined;
|
|
3324
|
+
noReply?: boolean | undefined;
|
|
3325
|
+
tools?: {
|
|
3326
|
+
[x: string]: boolean;
|
|
3327
|
+
} | undefined;
|
|
3328
|
+
format?: OutputFormat | undefined;
|
|
3329
|
+
system?: string | undefined;
|
|
3330
|
+
variant?: string | undefined;
|
|
3331
|
+
parts: Array<PromptPartInput>;
|
|
3332
|
+
};
|
|
3072
3333
|
export type ToolPart = {
|
|
3073
3334
|
id: string;
|
|
3074
3335
|
sessionID: string;
|
|
@@ -3081,7 +3342,16 @@ export type ToolPart = {
|
|
|
3081
3342
|
[x: string]: any;
|
|
3082
3343
|
} | undefined;
|
|
3083
3344
|
};
|
|
3345
|
+
export type SessionPendingInput2 = {
|
|
3346
|
+
id: string;
|
|
3347
|
+
sessionID: string;
|
|
3348
|
+
delivery: "steer" | "queue";
|
|
3349
|
+
messageID: string;
|
|
3350
|
+
data: SessionPendingPromptInput;
|
|
3351
|
+
createdAt: number;
|
|
3352
|
+
};
|
|
3084
3353
|
export type Part = TextPart | SubtaskPart | ReasoningPart | FilePart | ToolPart | StepStartPart | StepFinishPart | SnapshotPart | PatchPart | AgentPart | RetryPart | CompactionPart;
|
|
3354
|
+
export type SessionPendingInputList = Array<SessionPendingInput2>;
|
|
3085
3355
|
export type MobileSessionDetail = {
|
|
3086
3356
|
info: Session;
|
|
3087
3357
|
status?: any | undefined;
|
|
@@ -3128,7 +3398,7 @@ export type EventMessagePartUpdated = {
|
|
|
3128
3398
|
delta?: string | undefined;
|
|
3129
3399
|
};
|
|
3130
3400
|
};
|
|
3131
|
-
export type Event = EventProjectUpdated | EventProjectDirectoriesUpdated | EventTelemetryRecord | EventServerInstanceDisposed | EventPermissionAsked | EventPermissionReplied | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventInstallationUpdated | EventInstallationUpdateAvailable | EventServerConnected | EventGlobalDisposed | EventLspClientDiagnostics | EventLspUpdated | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionDiff | EventSessionError | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventFileWatcherUpdated | EventInstanceReloadStarted | EventInstanceReloaded | EventVcsBranchUpdated | EventTodoUpdated | EventSessionStatus | EventSessionIdle | EventSessionCompacted | EventSessionGoal | EventIdeInstalled | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventSessionV2Updated | EventSessionEntryUpdated | EventSessionEntryRemoved | EventFileEdited | EventMonitorCreated | EventMonitorUpdated | EventMonitorOutput | EventMonitorCompleted | EventLoopUpserted | EventLoopRemoved | EventLoopRunStarted | EventLoopRunFinished | EventLoopRuntimeChanged | EventLoopAborted | EventMissionUpserted | EventMissionRemoved | EventMissionStarted | EventMissionFinished | EventMissionExecStarted | EventMissionExecFinished | EventMissionRuntimeChanged | EventMissionAborted | EventWorkspaceStatus | EventWorkspaceReady | EventWorkspaceFailed | EventDelegationCompleted;
|
|
3401
|
+
export type Event = EventProjectUpdated | EventProjectDirectoriesUpdated | EventTelemetryRecord | EventServerInstanceDisposed | EventPermissionAsked | EventPermissionReplied | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventInstallationUpdated | EventInstallationUpdateAvailable | EventServerConnected | EventGlobalDisposed | EventLspClientDiagnostics | EventLspUpdated | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionDiff | EventSessionError | EventSessionPendingPromoted | EventSessionInstructionsUpdated | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventFileWatcherUpdated | EventInstanceReloadStarted | EventInstanceReloaded | EventVcsBranchUpdated | EventTodoUpdated | EventSessionStatus | EventSessionIdle | EventSessionCompacted | EventSessionGoal | EventIdeInstalled | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventSessionV2Updated | EventSessionEntryUpdated | EventSessionEntryRemoved | EventFileEdited | EventMonitorCreated | EventMonitorUpdated | EventMonitorOutput | EventMonitorCompleted | EventLoopUpserted | EventLoopRemoved | EventLoopRunStarted | EventLoopRunFinished | EventLoopRuntimeChanged | EventLoopAborted | EventMissionUpserted | EventMissionRemoved | EventMissionStarted | EventMissionFinished | EventMissionExecStarted | EventMissionExecFinished | EventMissionRuntimeChanged | EventMissionAborted | EventWorkspaceStatus | EventWorkspaceReady | EventWorkspaceFailed | EventDelegationCompleted;
|
|
3132
3402
|
export type GlobalEvent = {
|
|
3133
3403
|
directory: string;
|
|
3134
3404
|
payload: Event;
|
|
@@ -3373,6 +3643,32 @@ export type BrainTriggerInput = {
|
|
|
3373
3643
|
}["force"];
|
|
3374
3644
|
};
|
|
3375
3645
|
export type BrainTriggerOutput = BrainResult;
|
|
3646
|
+
export type ProfileGetOutput = ProfileInfoOrNull;
|
|
3647
|
+
export type ProfilePatchInput = {
|
|
3648
|
+
readonly payload: {
|
|
3649
|
+
readonly [x: string]: unknown;
|
|
3650
|
+
};
|
|
3651
|
+
};
|
|
3652
|
+
export type ProfilePatchOutput = ProfileInfo;
|
|
3653
|
+
export type ProfileClearOutput = ProfileDeleted;
|
|
3654
|
+
export type ProfileHabitsInput = {
|
|
3655
|
+
readonly worktree?: {
|
|
3656
|
+
readonly worktree?: string | undefined;
|
|
3657
|
+
}["worktree"];
|
|
3658
|
+
};
|
|
3659
|
+
export type ProfileHabitsOutput = ProfileHabits;
|
|
3660
|
+
export type ProfilePreviewInput = {
|
|
3661
|
+
readonly worktree?: {
|
|
3662
|
+
readonly worktree?: string | undefined;
|
|
3663
|
+
}["worktree"];
|
|
3664
|
+
};
|
|
3665
|
+
export type ProfilePreviewOutput = ProfilePreview;
|
|
3666
|
+
export type ProfileClearHabitsInput = {
|
|
3667
|
+
readonly worktree?: {
|
|
3668
|
+
readonly worktree?: string | undefined;
|
|
3669
|
+
}["worktree"];
|
|
3670
|
+
};
|
|
3671
|
+
export type ProfileClearHabitsOutput = ProfileDeleted;
|
|
3376
3672
|
export type ConfigGetOutput = Config;
|
|
3377
3673
|
export type ConfigUpdateInput = {
|
|
3378
3674
|
readonly payload: {
|
|
@@ -8764,6 +9060,7 @@ export type SessionCommandInput = {
|
|
|
8764
9060
|
}["sessionID"];
|
|
8765
9061
|
readonly messageID?: {
|
|
8766
9062
|
readonly messageID?: string | undefined;
|
|
9063
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
8767
9064
|
readonly agent?: string | undefined;
|
|
8768
9065
|
readonly model?: string | undefined;
|
|
8769
9066
|
readonly arguments: string;
|
|
@@ -8771,8 +9068,19 @@ export type SessionCommandInput = {
|
|
|
8771
9068
|
readonly variant?: string | undefined;
|
|
8772
9069
|
readonly parts?: ReadonlyArray<unknown> | undefined;
|
|
8773
9070
|
}["messageID"];
|
|
9071
|
+
readonly delivery?: {
|
|
9072
|
+
readonly messageID?: string | undefined;
|
|
9073
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
9074
|
+
readonly agent?: string | undefined;
|
|
9075
|
+
readonly model?: string | undefined;
|
|
9076
|
+
readonly arguments: string;
|
|
9077
|
+
readonly command: string;
|
|
9078
|
+
readonly variant?: string | undefined;
|
|
9079
|
+
readonly parts?: ReadonlyArray<unknown> | undefined;
|
|
9080
|
+
}["delivery"];
|
|
8774
9081
|
readonly agent?: {
|
|
8775
9082
|
readonly messageID?: string | undefined;
|
|
9083
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
8776
9084
|
readonly agent?: string | undefined;
|
|
8777
9085
|
readonly model?: string | undefined;
|
|
8778
9086
|
readonly arguments: string;
|
|
@@ -8782,6 +9090,7 @@ export type SessionCommandInput = {
|
|
|
8782
9090
|
}["agent"];
|
|
8783
9091
|
readonly model?: {
|
|
8784
9092
|
readonly messageID?: string | undefined;
|
|
9093
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
8785
9094
|
readonly agent?: string | undefined;
|
|
8786
9095
|
readonly model?: string | undefined;
|
|
8787
9096
|
readonly arguments: string;
|
|
@@ -8791,6 +9100,7 @@ export type SessionCommandInput = {
|
|
|
8791
9100
|
}["model"];
|
|
8792
9101
|
readonly arguments: {
|
|
8793
9102
|
readonly messageID?: string | undefined;
|
|
9103
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
8794
9104
|
readonly agent?: string | undefined;
|
|
8795
9105
|
readonly model?: string | undefined;
|
|
8796
9106
|
readonly arguments: string;
|
|
@@ -8800,6 +9110,7 @@ export type SessionCommandInput = {
|
|
|
8800
9110
|
}["arguments"];
|
|
8801
9111
|
readonly command: {
|
|
8802
9112
|
readonly messageID?: string | undefined;
|
|
9113
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
8803
9114
|
readonly agent?: string | undefined;
|
|
8804
9115
|
readonly model?: string | undefined;
|
|
8805
9116
|
readonly arguments: string;
|
|
@@ -8809,6 +9120,7 @@ export type SessionCommandInput = {
|
|
|
8809
9120
|
}["command"];
|
|
8810
9121
|
readonly variant?: {
|
|
8811
9122
|
readonly messageID?: string | undefined;
|
|
9123
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
8812
9124
|
readonly agent?: string | undefined;
|
|
8813
9125
|
readonly model?: string | undefined;
|
|
8814
9126
|
readonly arguments: string;
|
|
@@ -8818,6 +9130,7 @@ export type SessionCommandInput = {
|
|
|
8818
9130
|
}["variant"];
|
|
8819
9131
|
readonly parts?: {
|
|
8820
9132
|
readonly messageID?: string | undefined;
|
|
9133
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
8821
9134
|
readonly agent?: string | undefined;
|
|
8822
9135
|
readonly model?: string | undefined;
|
|
8823
9136
|
readonly arguments: string;
|
|
@@ -8901,6 +9214,23 @@ export type SessionMessagesInput = {
|
|
|
8901
9214
|
}["limit"];
|
|
8902
9215
|
};
|
|
8903
9216
|
export type SessionMessagesOutput = MessageList;
|
|
9217
|
+
export type SessionPendingInput = {
|
|
9218
|
+
readonly sessionID: {
|
|
9219
|
+
readonly sessionID: string;
|
|
9220
|
+
}["sessionID"];
|
|
9221
|
+
};
|
|
9222
|
+
export type SessionPendingOutput = SessionPendingInputList;
|
|
9223
|
+
export type SessionPendingSteerInput = {
|
|
9224
|
+
readonly sessionID: {
|
|
9225
|
+
readonly sessionID: string;
|
|
9226
|
+
readonly pendingID: string;
|
|
9227
|
+
}["sessionID"];
|
|
9228
|
+
readonly pendingID: {
|
|
9229
|
+
readonly sessionID: string;
|
|
9230
|
+
readonly pendingID: string;
|
|
9231
|
+
}["pendingID"];
|
|
9232
|
+
};
|
|
9233
|
+
export type SessionPendingSteerOutput = SessionPendingInput2;
|
|
8904
9234
|
export type SessionMessageInput = {
|
|
8905
9235
|
readonly sessionID: {
|
|
8906
9236
|
readonly sessionID: string;
|
|
@@ -9492,6 +9822,7 @@ export type TuiSelectSessionInput = {
|
|
|
9492
9822
|
readonly payload: unknown;
|
|
9493
9823
|
};
|
|
9494
9824
|
export type TuiSelectSessionOutput = TuiBooleanResult;
|
|
9825
|
+
export type TuiConfigOutput = TuiConfig;
|
|
9495
9826
|
export type TuiControlNextOutput = TuiControlRequest;
|
|
9496
9827
|
export type TuiControlResponseInput = {
|
|
9497
9828
|
readonly payload: unknown;
|
|
@@ -9681,6 +10012,7 @@ export type SessionPromptPromptInput = {
|
|
|
9681
10012
|
}["sessionID"];
|
|
9682
10013
|
readonly messageID?: {
|
|
9683
10014
|
readonly messageID?: string | undefined;
|
|
10015
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
9684
10016
|
readonly model?: {
|
|
9685
10017
|
readonly providerID: string;
|
|
9686
10018
|
readonly modelID: string;
|
|
@@ -9781,8 +10113,112 @@ export type SessionPromptPromptInput = {
|
|
|
9781
10113
|
readonly id?: string | undefined;
|
|
9782
10114
|
}>;
|
|
9783
10115
|
}["messageID"];
|
|
10116
|
+
readonly delivery?: {
|
|
10117
|
+
readonly messageID?: string | undefined;
|
|
10118
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
10119
|
+
readonly model?: {
|
|
10120
|
+
readonly providerID: string;
|
|
10121
|
+
readonly modelID: string;
|
|
10122
|
+
} | undefined;
|
|
10123
|
+
readonly agent?: string | undefined;
|
|
10124
|
+
readonly noReply?: boolean | undefined;
|
|
10125
|
+
readonly tools?: {
|
|
10126
|
+
readonly [x: string]: boolean;
|
|
10127
|
+
} | undefined;
|
|
10128
|
+
readonly format?: ({
|
|
10129
|
+
readonly type: "text";
|
|
10130
|
+
} | {
|
|
10131
|
+
readonly type: "json_schema";
|
|
10132
|
+
readonly schema: {
|
|
10133
|
+
readonly [x: string]: any;
|
|
10134
|
+
};
|
|
10135
|
+
readonly retryCount: number;
|
|
10136
|
+
}) | undefined;
|
|
10137
|
+
readonly system?: string | undefined;
|
|
10138
|
+
readonly variant?: string | undefined;
|
|
10139
|
+
readonly parts: ReadonlyArray<{
|
|
10140
|
+
readonly type: "text";
|
|
10141
|
+
readonly text: string;
|
|
10142
|
+
readonly synthetic?: boolean | undefined;
|
|
10143
|
+
readonly ignored?: boolean | undefined;
|
|
10144
|
+
readonly time?: {
|
|
10145
|
+
readonly start: number;
|
|
10146
|
+
readonly end?: number | undefined;
|
|
10147
|
+
} | undefined;
|
|
10148
|
+
readonly metadata?: {
|
|
10149
|
+
readonly [x: string]: any;
|
|
10150
|
+
} | undefined;
|
|
10151
|
+
readonly id?: string | undefined;
|
|
10152
|
+
} | {
|
|
10153
|
+
readonly type: "file";
|
|
10154
|
+
readonly mime: string;
|
|
10155
|
+
readonly filename?: string | undefined;
|
|
10156
|
+
readonly url: string;
|
|
10157
|
+
readonly source?: ({
|
|
10158
|
+
readonly text: {
|
|
10159
|
+
readonly value: string;
|
|
10160
|
+
readonly start: number;
|
|
10161
|
+
readonly end: number;
|
|
10162
|
+
};
|
|
10163
|
+
readonly type: "file";
|
|
10164
|
+
readonly path: string;
|
|
10165
|
+
} | {
|
|
10166
|
+
readonly text: {
|
|
10167
|
+
readonly value: string;
|
|
10168
|
+
readonly start: number;
|
|
10169
|
+
readonly end: number;
|
|
10170
|
+
};
|
|
10171
|
+
readonly type: "symbol";
|
|
10172
|
+
readonly path: string;
|
|
10173
|
+
readonly range: {
|
|
10174
|
+
readonly start: {
|
|
10175
|
+
readonly line: number;
|
|
10176
|
+
readonly character: number;
|
|
10177
|
+
};
|
|
10178
|
+
readonly end: {
|
|
10179
|
+
readonly line: number;
|
|
10180
|
+
readonly character: number;
|
|
10181
|
+
};
|
|
10182
|
+
};
|
|
10183
|
+
readonly name: string;
|
|
10184
|
+
readonly kind: number;
|
|
10185
|
+
} | {
|
|
10186
|
+
readonly text: {
|
|
10187
|
+
readonly value: string;
|
|
10188
|
+
readonly start: number;
|
|
10189
|
+
readonly end: number;
|
|
10190
|
+
};
|
|
10191
|
+
readonly type: "resource";
|
|
10192
|
+
readonly clientName: string;
|
|
10193
|
+
readonly uri: string;
|
|
10194
|
+
}) | undefined;
|
|
10195
|
+
readonly id?: string | undefined;
|
|
10196
|
+
} | {
|
|
10197
|
+
readonly type: "agent";
|
|
10198
|
+
readonly name: string;
|
|
10199
|
+
readonly source?: {
|
|
10200
|
+
readonly value: string;
|
|
10201
|
+
readonly start: number;
|
|
10202
|
+
readonly end: number;
|
|
10203
|
+
} | undefined;
|
|
10204
|
+
readonly id?: string | undefined;
|
|
10205
|
+
} | {
|
|
10206
|
+
readonly type: "subtask";
|
|
10207
|
+
readonly prompt: string;
|
|
10208
|
+
readonly description: string;
|
|
10209
|
+
readonly agent: string;
|
|
10210
|
+
readonly model?: {
|
|
10211
|
+
readonly providerID: string;
|
|
10212
|
+
readonly modelID: string;
|
|
10213
|
+
} | undefined;
|
|
10214
|
+
readonly command?: string | undefined;
|
|
10215
|
+
readonly background?: boolean | undefined;
|
|
10216
|
+
readonly id?: string | undefined;
|
|
10217
|
+
}>;
|
|
10218
|
+
}["delivery"];
|
|
9784
10219
|
readonly model?: {
|
|
9785
10220
|
readonly messageID?: string | undefined;
|
|
10221
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
9786
10222
|
readonly model?: {
|
|
9787
10223
|
readonly providerID: string;
|
|
9788
10224
|
readonly modelID: string;
|
|
@@ -9885,6 +10321,7 @@ export type SessionPromptPromptInput = {
|
|
|
9885
10321
|
}["model"];
|
|
9886
10322
|
readonly agent?: {
|
|
9887
10323
|
readonly messageID?: string | undefined;
|
|
10324
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
9888
10325
|
readonly model?: {
|
|
9889
10326
|
readonly providerID: string;
|
|
9890
10327
|
readonly modelID: string;
|
|
@@ -9987,6 +10424,7 @@ export type SessionPromptPromptInput = {
|
|
|
9987
10424
|
}["agent"];
|
|
9988
10425
|
readonly noReply?: {
|
|
9989
10426
|
readonly messageID?: string | undefined;
|
|
10427
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
9990
10428
|
readonly model?: {
|
|
9991
10429
|
readonly providerID: string;
|
|
9992
10430
|
readonly modelID: string;
|
|
@@ -10089,6 +10527,7 @@ export type SessionPromptPromptInput = {
|
|
|
10089
10527
|
}["noReply"];
|
|
10090
10528
|
readonly tools?: {
|
|
10091
10529
|
readonly messageID?: string | undefined;
|
|
10530
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
10092
10531
|
readonly model?: {
|
|
10093
10532
|
readonly providerID: string;
|
|
10094
10533
|
readonly modelID: string;
|
|
@@ -10191,6 +10630,7 @@ export type SessionPromptPromptInput = {
|
|
|
10191
10630
|
}["tools"];
|
|
10192
10631
|
readonly format?: {
|
|
10193
10632
|
readonly messageID?: string | undefined;
|
|
10633
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
10194
10634
|
readonly model?: {
|
|
10195
10635
|
readonly providerID: string;
|
|
10196
10636
|
readonly modelID: string;
|
|
@@ -10293,6 +10733,7 @@ export type SessionPromptPromptInput = {
|
|
|
10293
10733
|
}["format"];
|
|
10294
10734
|
readonly system?: {
|
|
10295
10735
|
readonly messageID?: string | undefined;
|
|
10736
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
10296
10737
|
readonly model?: {
|
|
10297
10738
|
readonly providerID: string;
|
|
10298
10739
|
readonly modelID: string;
|
|
@@ -10395,6 +10836,7 @@ export type SessionPromptPromptInput = {
|
|
|
10395
10836
|
}["system"];
|
|
10396
10837
|
readonly variant?: {
|
|
10397
10838
|
readonly messageID?: string | undefined;
|
|
10839
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
10398
10840
|
readonly model?: {
|
|
10399
10841
|
readonly providerID: string;
|
|
10400
10842
|
readonly modelID: string;
|
|
@@ -10497,6 +10939,7 @@ export type SessionPromptPromptInput = {
|
|
|
10497
10939
|
}["variant"];
|
|
10498
10940
|
readonly parts: {
|
|
10499
10941
|
readonly messageID?: string | undefined;
|
|
10942
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
10500
10943
|
readonly model?: {
|
|
10501
10944
|
readonly providerID: string;
|
|
10502
10945
|
readonly modelID: string;
|
|
@@ -10605,6 +11048,7 @@ export type SessionPromptPromptAsyncInput = {
|
|
|
10605
11048
|
}["sessionID"];
|
|
10606
11049
|
readonly messageID?: {
|
|
10607
11050
|
readonly messageID?: string | undefined;
|
|
11051
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
10608
11052
|
readonly model?: {
|
|
10609
11053
|
readonly providerID: string;
|
|
10610
11054
|
readonly modelID: string;
|
|
@@ -10705,8 +11149,112 @@ export type SessionPromptPromptAsyncInput = {
|
|
|
10705
11149
|
readonly id?: string | undefined;
|
|
10706
11150
|
}>;
|
|
10707
11151
|
}["messageID"];
|
|
11152
|
+
readonly delivery?: {
|
|
11153
|
+
readonly messageID?: string | undefined;
|
|
11154
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
11155
|
+
readonly model?: {
|
|
11156
|
+
readonly providerID: string;
|
|
11157
|
+
readonly modelID: string;
|
|
11158
|
+
} | undefined;
|
|
11159
|
+
readonly agent?: string | undefined;
|
|
11160
|
+
readonly noReply?: boolean | undefined;
|
|
11161
|
+
readonly tools?: {
|
|
11162
|
+
readonly [x: string]: boolean;
|
|
11163
|
+
} | undefined;
|
|
11164
|
+
readonly format?: ({
|
|
11165
|
+
readonly type: "text";
|
|
11166
|
+
} | {
|
|
11167
|
+
readonly type: "json_schema";
|
|
11168
|
+
readonly schema: {
|
|
11169
|
+
readonly [x: string]: any;
|
|
11170
|
+
};
|
|
11171
|
+
readonly retryCount: number;
|
|
11172
|
+
}) | undefined;
|
|
11173
|
+
readonly system?: string | undefined;
|
|
11174
|
+
readonly variant?: string | undefined;
|
|
11175
|
+
readonly parts: ReadonlyArray<{
|
|
11176
|
+
readonly type: "text";
|
|
11177
|
+
readonly text: string;
|
|
11178
|
+
readonly synthetic?: boolean | undefined;
|
|
11179
|
+
readonly ignored?: boolean | undefined;
|
|
11180
|
+
readonly time?: {
|
|
11181
|
+
readonly start: number;
|
|
11182
|
+
readonly end?: number | undefined;
|
|
11183
|
+
} | undefined;
|
|
11184
|
+
readonly metadata?: {
|
|
11185
|
+
readonly [x: string]: any;
|
|
11186
|
+
} | undefined;
|
|
11187
|
+
readonly id?: string | undefined;
|
|
11188
|
+
} | {
|
|
11189
|
+
readonly type: "file";
|
|
11190
|
+
readonly mime: string;
|
|
11191
|
+
readonly filename?: string | undefined;
|
|
11192
|
+
readonly url: string;
|
|
11193
|
+
readonly source?: ({
|
|
11194
|
+
readonly text: {
|
|
11195
|
+
readonly value: string;
|
|
11196
|
+
readonly start: number;
|
|
11197
|
+
readonly end: number;
|
|
11198
|
+
};
|
|
11199
|
+
readonly type: "file";
|
|
11200
|
+
readonly path: string;
|
|
11201
|
+
} | {
|
|
11202
|
+
readonly text: {
|
|
11203
|
+
readonly value: string;
|
|
11204
|
+
readonly start: number;
|
|
11205
|
+
readonly end: number;
|
|
11206
|
+
};
|
|
11207
|
+
readonly type: "symbol";
|
|
11208
|
+
readonly path: string;
|
|
11209
|
+
readonly range: {
|
|
11210
|
+
readonly start: {
|
|
11211
|
+
readonly line: number;
|
|
11212
|
+
readonly character: number;
|
|
11213
|
+
};
|
|
11214
|
+
readonly end: {
|
|
11215
|
+
readonly line: number;
|
|
11216
|
+
readonly character: number;
|
|
11217
|
+
};
|
|
11218
|
+
};
|
|
11219
|
+
readonly name: string;
|
|
11220
|
+
readonly kind: number;
|
|
11221
|
+
} | {
|
|
11222
|
+
readonly text: {
|
|
11223
|
+
readonly value: string;
|
|
11224
|
+
readonly start: number;
|
|
11225
|
+
readonly end: number;
|
|
11226
|
+
};
|
|
11227
|
+
readonly type: "resource";
|
|
11228
|
+
readonly clientName: string;
|
|
11229
|
+
readonly uri: string;
|
|
11230
|
+
}) | undefined;
|
|
11231
|
+
readonly id?: string | undefined;
|
|
11232
|
+
} | {
|
|
11233
|
+
readonly type: "agent";
|
|
11234
|
+
readonly name: string;
|
|
11235
|
+
readonly source?: {
|
|
11236
|
+
readonly value: string;
|
|
11237
|
+
readonly start: number;
|
|
11238
|
+
readonly end: number;
|
|
11239
|
+
} | undefined;
|
|
11240
|
+
readonly id?: string | undefined;
|
|
11241
|
+
} | {
|
|
11242
|
+
readonly type: "subtask";
|
|
11243
|
+
readonly prompt: string;
|
|
11244
|
+
readonly description: string;
|
|
11245
|
+
readonly agent: string;
|
|
11246
|
+
readonly model?: {
|
|
11247
|
+
readonly providerID: string;
|
|
11248
|
+
readonly modelID: string;
|
|
11249
|
+
} | undefined;
|
|
11250
|
+
readonly command?: string | undefined;
|
|
11251
|
+
readonly background?: boolean | undefined;
|
|
11252
|
+
readonly id?: string | undefined;
|
|
11253
|
+
}>;
|
|
11254
|
+
}["delivery"];
|
|
10708
11255
|
readonly model?: {
|
|
10709
11256
|
readonly messageID?: string | undefined;
|
|
11257
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
10710
11258
|
readonly model?: {
|
|
10711
11259
|
readonly providerID: string;
|
|
10712
11260
|
readonly modelID: string;
|
|
@@ -10809,6 +11357,7 @@ export type SessionPromptPromptAsyncInput = {
|
|
|
10809
11357
|
}["model"];
|
|
10810
11358
|
readonly agent?: {
|
|
10811
11359
|
readonly messageID?: string | undefined;
|
|
11360
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
10812
11361
|
readonly model?: {
|
|
10813
11362
|
readonly providerID: string;
|
|
10814
11363
|
readonly modelID: string;
|
|
@@ -10911,6 +11460,7 @@ export type SessionPromptPromptAsyncInput = {
|
|
|
10911
11460
|
}["agent"];
|
|
10912
11461
|
readonly noReply?: {
|
|
10913
11462
|
readonly messageID?: string | undefined;
|
|
11463
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
10914
11464
|
readonly model?: {
|
|
10915
11465
|
readonly providerID: string;
|
|
10916
11466
|
readonly modelID: string;
|
|
@@ -11013,6 +11563,7 @@ export type SessionPromptPromptAsyncInput = {
|
|
|
11013
11563
|
}["noReply"];
|
|
11014
11564
|
readonly tools?: {
|
|
11015
11565
|
readonly messageID?: string | undefined;
|
|
11566
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
11016
11567
|
readonly model?: {
|
|
11017
11568
|
readonly providerID: string;
|
|
11018
11569
|
readonly modelID: string;
|
|
@@ -11115,6 +11666,7 @@ export type SessionPromptPromptAsyncInput = {
|
|
|
11115
11666
|
}["tools"];
|
|
11116
11667
|
readonly format?: {
|
|
11117
11668
|
readonly messageID?: string | undefined;
|
|
11669
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
11118
11670
|
readonly model?: {
|
|
11119
11671
|
readonly providerID: string;
|
|
11120
11672
|
readonly modelID: string;
|
|
@@ -11217,6 +11769,7 @@ export type SessionPromptPromptAsyncInput = {
|
|
|
11217
11769
|
}["format"];
|
|
11218
11770
|
readonly system?: {
|
|
11219
11771
|
readonly messageID?: string | undefined;
|
|
11772
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
11220
11773
|
readonly model?: {
|
|
11221
11774
|
readonly providerID: string;
|
|
11222
11775
|
readonly modelID: string;
|
|
@@ -11319,6 +11872,7 @@ export type SessionPromptPromptAsyncInput = {
|
|
|
11319
11872
|
}["system"];
|
|
11320
11873
|
readonly variant?: {
|
|
11321
11874
|
readonly messageID?: string | undefined;
|
|
11875
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
11322
11876
|
readonly model?: {
|
|
11323
11877
|
readonly providerID: string;
|
|
11324
11878
|
readonly modelID: string;
|
|
@@ -11421,6 +11975,7 @@ export type SessionPromptPromptAsyncInput = {
|
|
|
11421
11975
|
}["variant"];
|
|
11422
11976
|
readonly parts: {
|
|
11423
11977
|
readonly messageID?: string | undefined;
|
|
11978
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
11424
11979
|
readonly model?: {
|
|
11425
11980
|
readonly providerID: string;
|
|
11426
11981
|
readonly modelID: string;
|
package/dist/server.d.ts
CHANGED
|
@@ -762,6 +762,26 @@ export declare function createNikcli(options?: ServerOptions): Promise<{
|
|
|
762
762
|
readonly directory?: string;
|
|
763
763
|
readonly workspace?: string;
|
|
764
764
|
}, options?: import("./httpapi/compat.js").CallOptions) => Promise<import("./httpapi/compat.js").Result<import("./httpapi/client.js").UserSession>>;
|
|
765
|
+
profile: {
|
|
766
|
+
clear: (options?: import("./httpapi/compat.js").CallOptions, overrides?: import("./httpapi/compat.js").CallOptions) => Promise<import("./httpapi/compat.js").Result<import("./httpapi/client.js").ProfileDeleted>>;
|
|
767
|
+
clearHabits: (input?: (import("./httpapi/client.js").ProfileClearHabitsInput & {
|
|
768
|
+
readonly directory?: string;
|
|
769
|
+
readonly workspace?: string;
|
|
770
|
+
}) | undefined, options?: import("./httpapi/compat.js").CallOptions) => Promise<import("./httpapi/compat.js").Result<import("./httpapi/client.js").ProfileDeleted>>;
|
|
771
|
+
get: (options?: import("./httpapi/compat.js").CallOptions, overrides?: import("./httpapi/compat.js").CallOptions) => Promise<import("./httpapi/compat.js").Result<import("./httpapi/client.js").ProfileInfoOrNull>>;
|
|
772
|
+
habits: (input?: (import("./httpapi/client.js").ProfileHabitsInput & {
|
|
773
|
+
readonly directory?: string;
|
|
774
|
+
readonly workspace?: string;
|
|
775
|
+
}) | undefined, options?: import("./httpapi/compat.js").CallOptions) => Promise<import("./httpapi/compat.js").Result<import("./httpapi/client.js").ProfileHabits>>;
|
|
776
|
+
patch: (input: import("./httpapi/client.js").ProfilePatchInput & {
|
|
777
|
+
readonly directory?: string;
|
|
778
|
+
readonly workspace?: string;
|
|
779
|
+
}, options?: import("./httpapi/compat.js").CallOptions) => Promise<import("./httpapi/compat.js").Result<import("./httpapi/client.js").ProfileInfo>>;
|
|
780
|
+
preview: (input?: (import("./httpapi/client.js").ProfilePreviewInput & {
|
|
781
|
+
readonly directory?: string;
|
|
782
|
+
readonly workspace?: string;
|
|
783
|
+
}) | undefined, options?: import("./httpapi/compat.js").CallOptions) => Promise<import("./httpapi/compat.js").Result<import("./httpapi/client.js").ProfilePreview>>;
|
|
784
|
+
};
|
|
765
785
|
project: {
|
|
766
786
|
current: (options?: import("./httpapi/compat.js").CallOptions, overrides?: import("./httpapi/compat.js").CallOptions) => Promise<import("./httpapi/compat.js").Result<import("./httpapi/client.js").Project>>;
|
|
767
787
|
list: (options?: import("./httpapi/compat.js").CallOptions, overrides?: import("./httpapi/compat.js").CallOptions) => Promise<import("./httpapi/compat.js").Result<import("./httpapi/client.js").ProjectListOutput>>;
|
|
@@ -914,6 +934,14 @@ export declare function createNikcli(options?: ServerOptions): Promise<{
|
|
|
914
934
|
readonly directory?: string;
|
|
915
935
|
readonly workspace?: string;
|
|
916
936
|
}, options?: import("./httpapi/compat.js").CallOptions) => Promise<import("./httpapi/compat.js").Result<import("./httpapi/client.js").SessionMonitorLogOutput2>>;
|
|
937
|
+
pending: (input: import("./httpapi/client.js").SessionPendingInput & {
|
|
938
|
+
readonly directory?: string;
|
|
939
|
+
readonly workspace?: string;
|
|
940
|
+
}, options?: import("./httpapi/compat.js").CallOptions) => Promise<import("./httpapi/compat.js").Result<import("./httpapi/client.js").SessionPendingInputList>>;
|
|
941
|
+
pendingSteer: (input: import("./httpapi/client.js").SessionPendingSteerInput & {
|
|
942
|
+
readonly directory?: string;
|
|
943
|
+
readonly workspace?: string;
|
|
944
|
+
}, options?: import("./httpapi/compat.js").CallOptions) => Promise<import("./httpapi/compat.js").Result<import("./httpapi/client.js").SessionPendingInput2>>;
|
|
917
945
|
prompt: (input: import("./httpapi/client.js").SessionPromptPromptInput & {
|
|
918
946
|
readonly directory?: string;
|
|
919
947
|
readonly workspace?: string;
|
|
@@ -1022,6 +1050,7 @@ export declare function createNikcli(options?: ServerOptions): Promise<{
|
|
|
1022
1050
|
readonly workspace?: string;
|
|
1023
1051
|
}, options?: import("./httpapi/compat.js").CallOptions) => Promise<import("./httpapi/compat.js").Result<boolean>>;
|
|
1024
1052
|
clearPrompt: (options?: import("./httpapi/compat.js").CallOptions, overrides?: import("./httpapi/compat.js").CallOptions) => Promise<import("./httpapi/compat.js").Result<boolean>>;
|
|
1053
|
+
config: (options?: import("./httpapi/compat.js").CallOptions, overrides?: import("./httpapi/compat.js").CallOptions) => Promise<import("./httpapi/compat.js").Result<import("./httpapi/client.js").TuiConfig>>;
|
|
1025
1054
|
control: {
|
|
1026
1055
|
next: (options?: import("./httpapi/compat.js").CallOptions, overrides?: import("./httpapi/compat.js").CallOptions) => Promise<import("./httpapi/compat.js").Result<import("./httpapi/client.js").TuiControlRequest>>;
|
|
1027
1056
|
response: (input: import("./httpapi/client.js").TuiControlResponseInput & {
|