@nikcli-ai/sdk 1.283.0 → 1.284.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
|
@@ -407,6 +407,8 @@ export declare function compat(raw: Raw, defaults?: CompatDefaults): {
|
|
|
407
407
|
monitor: (input: WithDirectory<import("./client.js").SessionMonitorInput>, options?: CallOptions) => Promise<Result<import("./client.js").SessionMonitorOutput2>>;
|
|
408
408
|
monitorCancel: (input: WithDirectory<import("./client.js").SessionMonitorCancelInput>, options?: CallOptions) => Promise<Result<import("./client.js").SessionMonitorOutput2>>;
|
|
409
409
|
monitorLog: (input: WithDirectory<import("./client.js").SessionMonitorLogInput>, options?: CallOptions) => Promise<Result<import("./client.js").SessionMonitorLogOutput2>>;
|
|
410
|
+
pending: (input: WithDirectory<import("./client.js").SessionPendingInput>, options?: CallOptions) => Promise<Result<import("./client.js").SessionPendingInputList>>;
|
|
411
|
+
pendingSteer: (input: WithDirectory<import("./client.js").SessionPendingSteerInput>, options?: CallOptions) => Promise<Result<import("./client.js").SessionPendingInput2>>;
|
|
410
412
|
prompt: (input: WithDirectory<import("./client.js").SessionPromptPromptInput>, options?: CallOptions) => Promise<Result<import("./client.js").SessionPromptResponse>>;
|
|
411
413
|
promptAsync: (input: WithDirectory<import("./client.js").SessionPromptPromptAsyncInput>, options?: CallOptions) => Promise<Result<void>>;
|
|
412
414
|
revert: (input: WithDirectory<import("./client.js").SessionRevertInput>, options?: CallOptions) => Promise<Result<import("./client.js").Session>>;
|
package/dist/httpapi/compat.js
CHANGED
|
@@ -432,6 +432,8 @@ export function compat(raw, defaults = {}) {
|
|
|
432
432
|
monitor: result(raw.session.monitor),
|
|
433
433
|
monitorCancel: result(raw.session.monitorCancel),
|
|
434
434
|
monitorLog: result(raw.session.monitorLog),
|
|
435
|
+
pending: result(raw.session.pending),
|
|
436
|
+
pendingSteer: result(raw.session.pendingSteer),
|
|
435
437
|
prompt: result(raw["session-prompt"].prompt),
|
|
436
438
|
promptAsync: result(raw["session-prompt"].promptAsync),
|
|
437
439
|
revert: result(raw.session.revert),
|
|
@@ -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, 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;
|
|
@@ -262,6 +262,8 @@ export declare function make(options: ClientOptions): {
|
|
|
262
262
|
todo: (input: SessionTodoInput, requestOptions?: RequestOptions) => Promise<import("./types.js").TodoList>;
|
|
263
263
|
diff: (input: SessionDiffInput, requestOptions?: RequestOptions) => Promise<import("./types.js").FileDiffList>;
|
|
264
264
|
messages: (input: SessionMessagesInput, requestOptions?: RequestOptions) => Promise<import("./types.js").MessageList>;
|
|
265
|
+
pending: (input: SessionPendingInput, requestOptions?: RequestOptions) => Promise<import("./types.js").SessionPendingInputList>;
|
|
266
|
+
pendingSteer: (input: SessionPendingSteerInput, requestOptions?: RequestOptions) => Promise<import("./types.js").SessionPendingInput2>;
|
|
265
267
|
message: (input: SessionMessageInput, requestOptions?: RequestOptions) => Promise<import("./types.js").MessageWithParts>;
|
|
266
268
|
messageRemove: (input: SessionMessageRemoveInput, requestOptions?: RequestOptions) => Promise<boolean>;
|
|
267
269
|
partRemove: (input: SessionPartRemoveInput, requestOptions?: RequestOptions) => Promise<boolean>;
|
|
@@ -1485,6 +1485,7 @@ export function make(options) {
|
|
|
1485
1485
|
path: `/session/${encodeURIComponent(input.sessionID)}/command`,
|
|
1486
1486
|
body: {
|
|
1487
1487
|
messageID: input["messageID"],
|
|
1488
|
+
delivery: input["delivery"],
|
|
1488
1489
|
agent: input["agent"],
|
|
1489
1490
|
model: input["model"],
|
|
1490
1491
|
arguments: input["arguments"],
|
|
@@ -1542,6 +1543,20 @@ export function make(options) {
|
|
|
1542
1543
|
declaredStatuses: [404, 409],
|
|
1543
1544
|
empty: false,
|
|
1544
1545
|
}, requestOptions),
|
|
1546
|
+
pending: (input, requestOptions) => request({
|
|
1547
|
+
method: "GET",
|
|
1548
|
+
path: `/session/${encodeURIComponent(input.sessionID)}/pending`,
|
|
1549
|
+
successStatus: 200,
|
|
1550
|
+
declaredStatuses: [404, 409],
|
|
1551
|
+
empty: false,
|
|
1552
|
+
}, requestOptions),
|
|
1553
|
+
pendingSteer: (input, requestOptions) => request({
|
|
1554
|
+
method: "POST",
|
|
1555
|
+
path: `/session/${encodeURIComponent(input.sessionID)}/pending/${encodeURIComponent(input.pendingID)}/steer`,
|
|
1556
|
+
successStatus: 200,
|
|
1557
|
+
declaredStatuses: [404, 409],
|
|
1558
|
+
empty: false,
|
|
1559
|
+
}, requestOptions),
|
|
1545
1560
|
message: (input, requestOptions) => request({
|
|
1546
1561
|
method: "GET",
|
|
1547
1562
|
path: `/session/${encodeURIComponent(input.sessionID)}/message/${encodeURIComponent(input.messageID)}`,
|
|
@@ -1914,6 +1929,7 @@ export function make(options) {
|
|
|
1914
1929
|
path: `/session/${encodeURIComponent(input.sessionID)}/message`,
|
|
1915
1930
|
body: {
|
|
1916
1931
|
messageID: input["messageID"],
|
|
1932
|
+
delivery: input["delivery"],
|
|
1917
1933
|
model: input["model"],
|
|
1918
1934
|
agent: input["agent"],
|
|
1919
1935
|
noReply: input["noReply"],
|
|
@@ -1932,6 +1948,7 @@ export function make(options) {
|
|
|
1932
1948
|
path: `/session/${encodeURIComponent(input.sessionID)}/prompt_async`,
|
|
1933
1949
|
body: {
|
|
1934
1950
|
messageID: input["messageID"],
|
|
1951
|
+
delivery: input["delivery"],
|
|
1935
1952
|
model: input["model"],
|
|
1936
1953
|
agent: input["agent"],
|
|
1937
1954
|
noReply: input["noReply"],
|
|
@@ -1354,6 +1354,43 @@ export type Todo = {
|
|
|
1354
1354
|
priority: string;
|
|
1355
1355
|
id: string;
|
|
1356
1356
|
};
|
|
1357
|
+
export type TextPartInput = {
|
|
1358
|
+
type: "text";
|
|
1359
|
+
text: string;
|
|
1360
|
+
synthetic?: boolean | undefined;
|
|
1361
|
+
ignored?: boolean | undefined;
|
|
1362
|
+
time?: {
|
|
1363
|
+
start: number;
|
|
1364
|
+
end?: number | undefined;
|
|
1365
|
+
} | undefined;
|
|
1366
|
+
metadata?: {
|
|
1367
|
+
[x: string]: any;
|
|
1368
|
+
} | undefined;
|
|
1369
|
+
id?: string | undefined;
|
|
1370
|
+
};
|
|
1371
|
+
export type AgentPartInput = {
|
|
1372
|
+
type: "agent";
|
|
1373
|
+
name: string;
|
|
1374
|
+
source?: {
|
|
1375
|
+
value: string;
|
|
1376
|
+
start: number;
|
|
1377
|
+
end: number;
|
|
1378
|
+
} | undefined;
|
|
1379
|
+
id?: string | undefined;
|
|
1380
|
+
};
|
|
1381
|
+
export type SubtaskPartInput = {
|
|
1382
|
+
type: "subtask";
|
|
1383
|
+
prompt: string;
|
|
1384
|
+
description: string;
|
|
1385
|
+
agent: string;
|
|
1386
|
+
model?: {
|
|
1387
|
+
providerID: string;
|
|
1388
|
+
modelID: string;
|
|
1389
|
+
} | undefined;
|
|
1390
|
+
command?: string | undefined;
|
|
1391
|
+
background?: boolean | undefined;
|
|
1392
|
+
id?: string | undefined;
|
|
1393
|
+
};
|
|
1357
1394
|
export type SessionV2EntryList = Array<any>;
|
|
1358
1395
|
export type SessionV2State = any;
|
|
1359
1396
|
export type SessionV2EventList = Array<any>;
|
|
@@ -1651,6 +1688,14 @@ export type EventMessagePartRemoved = {
|
|
|
1651
1688
|
partID: string;
|
|
1652
1689
|
};
|
|
1653
1690
|
};
|
|
1691
|
+
export type EventSessionPendingPromoted = {
|
|
1692
|
+
type: "session.pending.promoted";
|
|
1693
|
+
properties: {
|
|
1694
|
+
sessionID: string;
|
|
1695
|
+
pendingIDs: Array<string>;
|
|
1696
|
+
messageIDs: Array<string>;
|
|
1697
|
+
};
|
|
1698
|
+
};
|
|
1654
1699
|
export type EventTuiPromptAppend = {
|
|
1655
1700
|
type: "tui.prompt.append";
|
|
1656
1701
|
properties: {
|
|
@@ -2714,6 +2759,14 @@ export type FilePart = {
|
|
|
2714
2759
|
url: string;
|
|
2715
2760
|
source?: FilePartSource | undefined;
|
|
2716
2761
|
};
|
|
2762
|
+
export type FilePartInput = {
|
|
2763
|
+
type: "file";
|
|
2764
|
+
mime: string;
|
|
2765
|
+
filename?: string | undefined;
|
|
2766
|
+
url: string;
|
|
2767
|
+
source?: FilePartSource | undefined;
|
|
2768
|
+
id?: string | undefined;
|
|
2769
|
+
};
|
|
2717
2770
|
export type EventQuestionAsked = {
|
|
2718
2771
|
type: "question.asked";
|
|
2719
2772
|
properties: QuestionRequest1;
|
|
@@ -2790,6 +2843,7 @@ export type ToolStateCompleted = {
|
|
|
2790
2843
|
};
|
|
2791
2844
|
attachments?: Array<FilePart> | undefined;
|
|
2792
2845
|
};
|
|
2846
|
+
export type PromptPartInput = TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput;
|
|
2793
2847
|
export type Config = {
|
|
2794
2848
|
$schema?: string | undefined;
|
|
2795
2849
|
theme?: string | undefined;
|
|
@@ -3069,6 +3123,24 @@ export type EventMessageUpdated = {
|
|
|
3069
3123
|
};
|
|
3070
3124
|
};
|
|
3071
3125
|
export type ToolState = ToolStatePending | ToolStateRunning | ToolStateCompleted | ToolStateError;
|
|
3126
|
+
export type SessionPendingPromptInput = {
|
|
3127
|
+
sessionID: string;
|
|
3128
|
+
messageID?: string | undefined;
|
|
3129
|
+
delivery?: "steer" | "queue" | undefined;
|
|
3130
|
+
model?: {
|
|
3131
|
+
providerID: string;
|
|
3132
|
+
modelID: string;
|
|
3133
|
+
} | undefined;
|
|
3134
|
+
agent?: string | undefined;
|
|
3135
|
+
noReply?: boolean | undefined;
|
|
3136
|
+
tools?: {
|
|
3137
|
+
[x: string]: boolean;
|
|
3138
|
+
} | undefined;
|
|
3139
|
+
format?: OutputFormat | undefined;
|
|
3140
|
+
system?: string | undefined;
|
|
3141
|
+
variant?: string | undefined;
|
|
3142
|
+
parts: Array<PromptPartInput>;
|
|
3143
|
+
};
|
|
3072
3144
|
export type ToolPart = {
|
|
3073
3145
|
id: string;
|
|
3074
3146
|
sessionID: string;
|
|
@@ -3081,7 +3153,16 @@ export type ToolPart = {
|
|
|
3081
3153
|
[x: string]: any;
|
|
3082
3154
|
} | undefined;
|
|
3083
3155
|
};
|
|
3156
|
+
export type SessionPendingInput2 = {
|
|
3157
|
+
id: string;
|
|
3158
|
+
sessionID: string;
|
|
3159
|
+
delivery: "steer" | "queue";
|
|
3160
|
+
messageID: string;
|
|
3161
|
+
data: SessionPendingPromptInput;
|
|
3162
|
+
createdAt: number;
|
|
3163
|
+
};
|
|
3084
3164
|
export type Part = TextPart | SubtaskPart | ReasoningPart | FilePart | ToolPart | StepStartPart | StepFinishPart | SnapshotPart | PatchPart | AgentPart | RetryPart | CompactionPart;
|
|
3165
|
+
export type SessionPendingInputList = Array<SessionPendingInput2>;
|
|
3085
3166
|
export type MobileSessionDetail = {
|
|
3086
3167
|
info: Session;
|
|
3087
3168
|
status?: any | undefined;
|
|
@@ -3128,7 +3209,7 @@ export type EventMessagePartUpdated = {
|
|
|
3128
3209
|
delta?: string | undefined;
|
|
3129
3210
|
};
|
|
3130
3211
|
};
|
|
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;
|
|
3212
|
+
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 | 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
3213
|
export type GlobalEvent = {
|
|
3133
3214
|
directory: string;
|
|
3134
3215
|
payload: Event;
|
|
@@ -8764,6 +8845,7 @@ export type SessionCommandInput = {
|
|
|
8764
8845
|
}["sessionID"];
|
|
8765
8846
|
readonly messageID?: {
|
|
8766
8847
|
readonly messageID?: string | undefined;
|
|
8848
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
8767
8849
|
readonly agent?: string | undefined;
|
|
8768
8850
|
readonly model?: string | undefined;
|
|
8769
8851
|
readonly arguments: string;
|
|
@@ -8771,8 +8853,19 @@ export type SessionCommandInput = {
|
|
|
8771
8853
|
readonly variant?: string | undefined;
|
|
8772
8854
|
readonly parts?: ReadonlyArray<unknown> | undefined;
|
|
8773
8855
|
}["messageID"];
|
|
8856
|
+
readonly delivery?: {
|
|
8857
|
+
readonly messageID?: string | undefined;
|
|
8858
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
8859
|
+
readonly agent?: string | undefined;
|
|
8860
|
+
readonly model?: string | undefined;
|
|
8861
|
+
readonly arguments: string;
|
|
8862
|
+
readonly command: string;
|
|
8863
|
+
readonly variant?: string | undefined;
|
|
8864
|
+
readonly parts?: ReadonlyArray<unknown> | undefined;
|
|
8865
|
+
}["delivery"];
|
|
8774
8866
|
readonly agent?: {
|
|
8775
8867
|
readonly messageID?: string | undefined;
|
|
8868
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
8776
8869
|
readonly agent?: string | undefined;
|
|
8777
8870
|
readonly model?: string | undefined;
|
|
8778
8871
|
readonly arguments: string;
|
|
@@ -8782,6 +8875,7 @@ export type SessionCommandInput = {
|
|
|
8782
8875
|
}["agent"];
|
|
8783
8876
|
readonly model?: {
|
|
8784
8877
|
readonly messageID?: string | undefined;
|
|
8878
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
8785
8879
|
readonly agent?: string | undefined;
|
|
8786
8880
|
readonly model?: string | undefined;
|
|
8787
8881
|
readonly arguments: string;
|
|
@@ -8791,6 +8885,7 @@ export type SessionCommandInput = {
|
|
|
8791
8885
|
}["model"];
|
|
8792
8886
|
readonly arguments: {
|
|
8793
8887
|
readonly messageID?: string | undefined;
|
|
8888
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
8794
8889
|
readonly agent?: string | undefined;
|
|
8795
8890
|
readonly model?: string | undefined;
|
|
8796
8891
|
readonly arguments: string;
|
|
@@ -8800,6 +8895,7 @@ export type SessionCommandInput = {
|
|
|
8800
8895
|
}["arguments"];
|
|
8801
8896
|
readonly command: {
|
|
8802
8897
|
readonly messageID?: string | undefined;
|
|
8898
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
8803
8899
|
readonly agent?: string | undefined;
|
|
8804
8900
|
readonly model?: string | undefined;
|
|
8805
8901
|
readonly arguments: string;
|
|
@@ -8809,6 +8905,7 @@ export type SessionCommandInput = {
|
|
|
8809
8905
|
}["command"];
|
|
8810
8906
|
readonly variant?: {
|
|
8811
8907
|
readonly messageID?: string | undefined;
|
|
8908
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
8812
8909
|
readonly agent?: string | undefined;
|
|
8813
8910
|
readonly model?: string | undefined;
|
|
8814
8911
|
readonly arguments: string;
|
|
@@ -8818,6 +8915,7 @@ export type SessionCommandInput = {
|
|
|
8818
8915
|
}["variant"];
|
|
8819
8916
|
readonly parts?: {
|
|
8820
8917
|
readonly messageID?: string | undefined;
|
|
8918
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
8821
8919
|
readonly agent?: string | undefined;
|
|
8822
8920
|
readonly model?: string | undefined;
|
|
8823
8921
|
readonly arguments: string;
|
|
@@ -8901,6 +8999,23 @@ export type SessionMessagesInput = {
|
|
|
8901
8999
|
}["limit"];
|
|
8902
9000
|
};
|
|
8903
9001
|
export type SessionMessagesOutput = MessageList;
|
|
9002
|
+
export type SessionPendingInput = {
|
|
9003
|
+
readonly sessionID: {
|
|
9004
|
+
readonly sessionID: string;
|
|
9005
|
+
}["sessionID"];
|
|
9006
|
+
};
|
|
9007
|
+
export type SessionPendingOutput = SessionPendingInputList;
|
|
9008
|
+
export type SessionPendingSteerInput = {
|
|
9009
|
+
readonly sessionID: {
|
|
9010
|
+
readonly sessionID: string;
|
|
9011
|
+
readonly pendingID: string;
|
|
9012
|
+
}["sessionID"];
|
|
9013
|
+
readonly pendingID: {
|
|
9014
|
+
readonly sessionID: string;
|
|
9015
|
+
readonly pendingID: string;
|
|
9016
|
+
}["pendingID"];
|
|
9017
|
+
};
|
|
9018
|
+
export type SessionPendingSteerOutput = SessionPendingInput2;
|
|
8904
9019
|
export type SessionMessageInput = {
|
|
8905
9020
|
readonly sessionID: {
|
|
8906
9021
|
readonly sessionID: string;
|
|
@@ -9681,6 +9796,7 @@ export type SessionPromptPromptInput = {
|
|
|
9681
9796
|
}["sessionID"];
|
|
9682
9797
|
readonly messageID?: {
|
|
9683
9798
|
readonly messageID?: string | undefined;
|
|
9799
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
9684
9800
|
readonly model?: {
|
|
9685
9801
|
readonly providerID: string;
|
|
9686
9802
|
readonly modelID: string;
|
|
@@ -9781,8 +9897,112 @@ export type SessionPromptPromptInput = {
|
|
|
9781
9897
|
readonly id?: string | undefined;
|
|
9782
9898
|
}>;
|
|
9783
9899
|
}["messageID"];
|
|
9900
|
+
readonly delivery?: {
|
|
9901
|
+
readonly messageID?: string | undefined;
|
|
9902
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
9903
|
+
readonly model?: {
|
|
9904
|
+
readonly providerID: string;
|
|
9905
|
+
readonly modelID: string;
|
|
9906
|
+
} | undefined;
|
|
9907
|
+
readonly agent?: string | undefined;
|
|
9908
|
+
readonly noReply?: boolean | undefined;
|
|
9909
|
+
readonly tools?: {
|
|
9910
|
+
readonly [x: string]: boolean;
|
|
9911
|
+
} | undefined;
|
|
9912
|
+
readonly format?: ({
|
|
9913
|
+
readonly type: "text";
|
|
9914
|
+
} | {
|
|
9915
|
+
readonly type: "json_schema";
|
|
9916
|
+
readonly schema: {
|
|
9917
|
+
readonly [x: string]: any;
|
|
9918
|
+
};
|
|
9919
|
+
readonly retryCount: number;
|
|
9920
|
+
}) | undefined;
|
|
9921
|
+
readonly system?: string | undefined;
|
|
9922
|
+
readonly variant?: string | undefined;
|
|
9923
|
+
readonly parts: ReadonlyArray<{
|
|
9924
|
+
readonly type: "text";
|
|
9925
|
+
readonly text: string;
|
|
9926
|
+
readonly synthetic?: boolean | undefined;
|
|
9927
|
+
readonly ignored?: boolean | undefined;
|
|
9928
|
+
readonly time?: {
|
|
9929
|
+
readonly start: number;
|
|
9930
|
+
readonly end?: number | undefined;
|
|
9931
|
+
} | undefined;
|
|
9932
|
+
readonly metadata?: {
|
|
9933
|
+
readonly [x: string]: any;
|
|
9934
|
+
} | undefined;
|
|
9935
|
+
readonly id?: string | undefined;
|
|
9936
|
+
} | {
|
|
9937
|
+
readonly type: "file";
|
|
9938
|
+
readonly mime: string;
|
|
9939
|
+
readonly filename?: string | undefined;
|
|
9940
|
+
readonly url: string;
|
|
9941
|
+
readonly source?: ({
|
|
9942
|
+
readonly text: {
|
|
9943
|
+
readonly value: string;
|
|
9944
|
+
readonly start: number;
|
|
9945
|
+
readonly end: number;
|
|
9946
|
+
};
|
|
9947
|
+
readonly type: "file";
|
|
9948
|
+
readonly path: string;
|
|
9949
|
+
} | {
|
|
9950
|
+
readonly text: {
|
|
9951
|
+
readonly value: string;
|
|
9952
|
+
readonly start: number;
|
|
9953
|
+
readonly end: number;
|
|
9954
|
+
};
|
|
9955
|
+
readonly type: "symbol";
|
|
9956
|
+
readonly path: string;
|
|
9957
|
+
readonly range: {
|
|
9958
|
+
readonly start: {
|
|
9959
|
+
readonly line: number;
|
|
9960
|
+
readonly character: number;
|
|
9961
|
+
};
|
|
9962
|
+
readonly end: {
|
|
9963
|
+
readonly line: number;
|
|
9964
|
+
readonly character: number;
|
|
9965
|
+
};
|
|
9966
|
+
};
|
|
9967
|
+
readonly name: string;
|
|
9968
|
+
readonly kind: number;
|
|
9969
|
+
} | {
|
|
9970
|
+
readonly text: {
|
|
9971
|
+
readonly value: string;
|
|
9972
|
+
readonly start: number;
|
|
9973
|
+
readonly end: number;
|
|
9974
|
+
};
|
|
9975
|
+
readonly type: "resource";
|
|
9976
|
+
readonly clientName: string;
|
|
9977
|
+
readonly uri: string;
|
|
9978
|
+
}) | undefined;
|
|
9979
|
+
readonly id?: string | undefined;
|
|
9980
|
+
} | {
|
|
9981
|
+
readonly type: "agent";
|
|
9982
|
+
readonly name: string;
|
|
9983
|
+
readonly source?: {
|
|
9984
|
+
readonly value: string;
|
|
9985
|
+
readonly start: number;
|
|
9986
|
+
readonly end: number;
|
|
9987
|
+
} | undefined;
|
|
9988
|
+
readonly id?: string | undefined;
|
|
9989
|
+
} | {
|
|
9990
|
+
readonly type: "subtask";
|
|
9991
|
+
readonly prompt: string;
|
|
9992
|
+
readonly description: string;
|
|
9993
|
+
readonly agent: string;
|
|
9994
|
+
readonly model?: {
|
|
9995
|
+
readonly providerID: string;
|
|
9996
|
+
readonly modelID: string;
|
|
9997
|
+
} | undefined;
|
|
9998
|
+
readonly command?: string | undefined;
|
|
9999
|
+
readonly background?: boolean | undefined;
|
|
10000
|
+
readonly id?: string | undefined;
|
|
10001
|
+
}>;
|
|
10002
|
+
}["delivery"];
|
|
9784
10003
|
readonly model?: {
|
|
9785
10004
|
readonly messageID?: string | undefined;
|
|
10005
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
9786
10006
|
readonly model?: {
|
|
9787
10007
|
readonly providerID: string;
|
|
9788
10008
|
readonly modelID: string;
|
|
@@ -9885,6 +10105,7 @@ export type SessionPromptPromptInput = {
|
|
|
9885
10105
|
}["model"];
|
|
9886
10106
|
readonly agent?: {
|
|
9887
10107
|
readonly messageID?: string | undefined;
|
|
10108
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
9888
10109
|
readonly model?: {
|
|
9889
10110
|
readonly providerID: string;
|
|
9890
10111
|
readonly modelID: string;
|
|
@@ -9987,6 +10208,7 @@ export type SessionPromptPromptInput = {
|
|
|
9987
10208
|
}["agent"];
|
|
9988
10209
|
readonly noReply?: {
|
|
9989
10210
|
readonly messageID?: string | undefined;
|
|
10211
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
9990
10212
|
readonly model?: {
|
|
9991
10213
|
readonly providerID: string;
|
|
9992
10214
|
readonly modelID: string;
|
|
@@ -10089,6 +10311,7 @@ export type SessionPromptPromptInput = {
|
|
|
10089
10311
|
}["noReply"];
|
|
10090
10312
|
readonly tools?: {
|
|
10091
10313
|
readonly messageID?: string | undefined;
|
|
10314
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
10092
10315
|
readonly model?: {
|
|
10093
10316
|
readonly providerID: string;
|
|
10094
10317
|
readonly modelID: string;
|
|
@@ -10191,6 +10414,7 @@ export type SessionPromptPromptInput = {
|
|
|
10191
10414
|
}["tools"];
|
|
10192
10415
|
readonly format?: {
|
|
10193
10416
|
readonly messageID?: string | undefined;
|
|
10417
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
10194
10418
|
readonly model?: {
|
|
10195
10419
|
readonly providerID: string;
|
|
10196
10420
|
readonly modelID: string;
|
|
@@ -10293,6 +10517,7 @@ export type SessionPromptPromptInput = {
|
|
|
10293
10517
|
}["format"];
|
|
10294
10518
|
readonly system?: {
|
|
10295
10519
|
readonly messageID?: string | undefined;
|
|
10520
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
10296
10521
|
readonly model?: {
|
|
10297
10522
|
readonly providerID: string;
|
|
10298
10523
|
readonly modelID: string;
|
|
@@ -10395,6 +10620,7 @@ export type SessionPromptPromptInput = {
|
|
|
10395
10620
|
}["system"];
|
|
10396
10621
|
readonly variant?: {
|
|
10397
10622
|
readonly messageID?: string | undefined;
|
|
10623
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
10398
10624
|
readonly model?: {
|
|
10399
10625
|
readonly providerID: string;
|
|
10400
10626
|
readonly modelID: string;
|
|
@@ -10497,6 +10723,7 @@ export type SessionPromptPromptInput = {
|
|
|
10497
10723
|
}["variant"];
|
|
10498
10724
|
readonly parts: {
|
|
10499
10725
|
readonly messageID?: string | undefined;
|
|
10726
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
10500
10727
|
readonly model?: {
|
|
10501
10728
|
readonly providerID: string;
|
|
10502
10729
|
readonly modelID: string;
|
|
@@ -10605,6 +10832,7 @@ export type SessionPromptPromptAsyncInput = {
|
|
|
10605
10832
|
}["sessionID"];
|
|
10606
10833
|
readonly messageID?: {
|
|
10607
10834
|
readonly messageID?: string | undefined;
|
|
10835
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
10608
10836
|
readonly model?: {
|
|
10609
10837
|
readonly providerID: string;
|
|
10610
10838
|
readonly modelID: string;
|
|
@@ -10705,8 +10933,112 @@ export type SessionPromptPromptAsyncInput = {
|
|
|
10705
10933
|
readonly id?: string | undefined;
|
|
10706
10934
|
}>;
|
|
10707
10935
|
}["messageID"];
|
|
10936
|
+
readonly delivery?: {
|
|
10937
|
+
readonly messageID?: string | undefined;
|
|
10938
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
10939
|
+
readonly model?: {
|
|
10940
|
+
readonly providerID: string;
|
|
10941
|
+
readonly modelID: string;
|
|
10942
|
+
} | undefined;
|
|
10943
|
+
readonly agent?: string | undefined;
|
|
10944
|
+
readonly noReply?: boolean | undefined;
|
|
10945
|
+
readonly tools?: {
|
|
10946
|
+
readonly [x: string]: boolean;
|
|
10947
|
+
} | undefined;
|
|
10948
|
+
readonly format?: ({
|
|
10949
|
+
readonly type: "text";
|
|
10950
|
+
} | {
|
|
10951
|
+
readonly type: "json_schema";
|
|
10952
|
+
readonly schema: {
|
|
10953
|
+
readonly [x: string]: any;
|
|
10954
|
+
};
|
|
10955
|
+
readonly retryCount: number;
|
|
10956
|
+
}) | undefined;
|
|
10957
|
+
readonly system?: string | undefined;
|
|
10958
|
+
readonly variant?: string | undefined;
|
|
10959
|
+
readonly parts: ReadonlyArray<{
|
|
10960
|
+
readonly type: "text";
|
|
10961
|
+
readonly text: string;
|
|
10962
|
+
readonly synthetic?: boolean | undefined;
|
|
10963
|
+
readonly ignored?: boolean | undefined;
|
|
10964
|
+
readonly time?: {
|
|
10965
|
+
readonly start: number;
|
|
10966
|
+
readonly end?: number | undefined;
|
|
10967
|
+
} | undefined;
|
|
10968
|
+
readonly metadata?: {
|
|
10969
|
+
readonly [x: string]: any;
|
|
10970
|
+
} | undefined;
|
|
10971
|
+
readonly id?: string | undefined;
|
|
10972
|
+
} | {
|
|
10973
|
+
readonly type: "file";
|
|
10974
|
+
readonly mime: string;
|
|
10975
|
+
readonly filename?: string | undefined;
|
|
10976
|
+
readonly url: string;
|
|
10977
|
+
readonly source?: ({
|
|
10978
|
+
readonly text: {
|
|
10979
|
+
readonly value: string;
|
|
10980
|
+
readonly start: number;
|
|
10981
|
+
readonly end: number;
|
|
10982
|
+
};
|
|
10983
|
+
readonly type: "file";
|
|
10984
|
+
readonly path: string;
|
|
10985
|
+
} | {
|
|
10986
|
+
readonly text: {
|
|
10987
|
+
readonly value: string;
|
|
10988
|
+
readonly start: number;
|
|
10989
|
+
readonly end: number;
|
|
10990
|
+
};
|
|
10991
|
+
readonly type: "symbol";
|
|
10992
|
+
readonly path: string;
|
|
10993
|
+
readonly range: {
|
|
10994
|
+
readonly start: {
|
|
10995
|
+
readonly line: number;
|
|
10996
|
+
readonly character: number;
|
|
10997
|
+
};
|
|
10998
|
+
readonly end: {
|
|
10999
|
+
readonly line: number;
|
|
11000
|
+
readonly character: number;
|
|
11001
|
+
};
|
|
11002
|
+
};
|
|
11003
|
+
readonly name: string;
|
|
11004
|
+
readonly kind: number;
|
|
11005
|
+
} | {
|
|
11006
|
+
readonly text: {
|
|
11007
|
+
readonly value: string;
|
|
11008
|
+
readonly start: number;
|
|
11009
|
+
readonly end: number;
|
|
11010
|
+
};
|
|
11011
|
+
readonly type: "resource";
|
|
11012
|
+
readonly clientName: string;
|
|
11013
|
+
readonly uri: string;
|
|
11014
|
+
}) | undefined;
|
|
11015
|
+
readonly id?: string | undefined;
|
|
11016
|
+
} | {
|
|
11017
|
+
readonly type: "agent";
|
|
11018
|
+
readonly name: string;
|
|
11019
|
+
readonly source?: {
|
|
11020
|
+
readonly value: string;
|
|
11021
|
+
readonly start: number;
|
|
11022
|
+
readonly end: number;
|
|
11023
|
+
} | undefined;
|
|
11024
|
+
readonly id?: string | undefined;
|
|
11025
|
+
} | {
|
|
11026
|
+
readonly type: "subtask";
|
|
11027
|
+
readonly prompt: string;
|
|
11028
|
+
readonly description: string;
|
|
11029
|
+
readonly agent: string;
|
|
11030
|
+
readonly model?: {
|
|
11031
|
+
readonly providerID: string;
|
|
11032
|
+
readonly modelID: string;
|
|
11033
|
+
} | undefined;
|
|
11034
|
+
readonly command?: string | undefined;
|
|
11035
|
+
readonly background?: boolean | undefined;
|
|
11036
|
+
readonly id?: string | undefined;
|
|
11037
|
+
}>;
|
|
11038
|
+
}["delivery"];
|
|
10708
11039
|
readonly model?: {
|
|
10709
11040
|
readonly messageID?: string | undefined;
|
|
11041
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
10710
11042
|
readonly model?: {
|
|
10711
11043
|
readonly providerID: string;
|
|
10712
11044
|
readonly modelID: string;
|
|
@@ -10809,6 +11141,7 @@ export type SessionPromptPromptAsyncInput = {
|
|
|
10809
11141
|
}["model"];
|
|
10810
11142
|
readonly agent?: {
|
|
10811
11143
|
readonly messageID?: string | undefined;
|
|
11144
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
10812
11145
|
readonly model?: {
|
|
10813
11146
|
readonly providerID: string;
|
|
10814
11147
|
readonly modelID: string;
|
|
@@ -10911,6 +11244,7 @@ export type SessionPromptPromptAsyncInput = {
|
|
|
10911
11244
|
}["agent"];
|
|
10912
11245
|
readonly noReply?: {
|
|
10913
11246
|
readonly messageID?: string | undefined;
|
|
11247
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
10914
11248
|
readonly model?: {
|
|
10915
11249
|
readonly providerID: string;
|
|
10916
11250
|
readonly modelID: string;
|
|
@@ -11013,6 +11347,7 @@ export type SessionPromptPromptAsyncInput = {
|
|
|
11013
11347
|
}["noReply"];
|
|
11014
11348
|
readonly tools?: {
|
|
11015
11349
|
readonly messageID?: string | undefined;
|
|
11350
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
11016
11351
|
readonly model?: {
|
|
11017
11352
|
readonly providerID: string;
|
|
11018
11353
|
readonly modelID: string;
|
|
@@ -11115,6 +11450,7 @@ export type SessionPromptPromptAsyncInput = {
|
|
|
11115
11450
|
}["tools"];
|
|
11116
11451
|
readonly format?: {
|
|
11117
11452
|
readonly messageID?: string | undefined;
|
|
11453
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
11118
11454
|
readonly model?: {
|
|
11119
11455
|
readonly providerID: string;
|
|
11120
11456
|
readonly modelID: string;
|
|
@@ -11217,6 +11553,7 @@ export type SessionPromptPromptAsyncInput = {
|
|
|
11217
11553
|
}["format"];
|
|
11218
11554
|
readonly system?: {
|
|
11219
11555
|
readonly messageID?: string | undefined;
|
|
11556
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
11220
11557
|
readonly model?: {
|
|
11221
11558
|
readonly providerID: string;
|
|
11222
11559
|
readonly modelID: string;
|
|
@@ -11319,6 +11656,7 @@ export type SessionPromptPromptAsyncInput = {
|
|
|
11319
11656
|
}["system"];
|
|
11320
11657
|
readonly variant?: {
|
|
11321
11658
|
readonly messageID?: string | undefined;
|
|
11659
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
11322
11660
|
readonly model?: {
|
|
11323
11661
|
readonly providerID: string;
|
|
11324
11662
|
readonly modelID: string;
|
|
@@ -11421,6 +11759,7 @@ export type SessionPromptPromptAsyncInput = {
|
|
|
11421
11759
|
}["variant"];
|
|
11422
11760
|
readonly parts: {
|
|
11423
11761
|
readonly messageID?: string | undefined;
|
|
11762
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
11424
11763
|
readonly model?: {
|
|
11425
11764
|
readonly providerID: string;
|
|
11426
11765
|
readonly modelID: string;
|
package/dist/server.d.ts
CHANGED
|
@@ -914,6 +914,14 @@ export declare function createNikcli(options?: ServerOptions): Promise<{
|
|
|
914
914
|
readonly directory?: string;
|
|
915
915
|
readonly workspace?: string;
|
|
916
916
|
}, options?: import("./httpapi/compat.js").CallOptions) => Promise<import("./httpapi/compat.js").Result<import("./httpapi/client.js").SessionMonitorLogOutput2>>;
|
|
917
|
+
pending: (input: import("./httpapi/client.js").SessionPendingInput & {
|
|
918
|
+
readonly directory?: string;
|
|
919
|
+
readonly workspace?: string;
|
|
920
|
+
}, options?: import("./httpapi/compat.js").CallOptions) => Promise<import("./httpapi/compat.js").Result<import("./httpapi/client.js").SessionPendingInputList>>;
|
|
921
|
+
pendingSteer: (input: import("./httpapi/client.js").SessionPendingSteerInput & {
|
|
922
|
+
readonly directory?: string;
|
|
923
|
+
readonly workspace?: string;
|
|
924
|
+
}, options?: import("./httpapi/compat.js").CallOptions) => Promise<import("./httpapi/compat.js").Result<import("./httpapi/client.js").SessionPendingInput2>>;
|
|
917
925
|
prompt: (input: import("./httpapi/client.js").SessionPromptPromptInput & {
|
|
918
926
|
readonly directory?: string;
|
|
919
927
|
readonly workspace?: string;
|