@nikcli-ai/sdk 1.282.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"],
|
|
@@ -462,6 +462,11 @@ export type ConnectorLinear = {
|
|
|
462
462
|
enabled?: boolean | undefined;
|
|
463
463
|
};
|
|
464
464
|
export type LayoutConfig = "auto" | "stretch";
|
|
465
|
+
export type PolicyStatementConfig = {
|
|
466
|
+
effect: "allow" | "deny";
|
|
467
|
+
action: string;
|
|
468
|
+
resource: string;
|
|
469
|
+
};
|
|
465
470
|
export type RagConfig = {
|
|
466
471
|
model?: string | undefined;
|
|
467
472
|
provider?: string | undefined;
|
|
@@ -1349,6 +1354,43 @@ export type Todo = {
|
|
|
1349
1354
|
priority: string;
|
|
1350
1355
|
id: string;
|
|
1351
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
|
+
};
|
|
1352
1394
|
export type SessionV2EntryList = Array<any>;
|
|
1353
1395
|
export type SessionV2State = any;
|
|
1354
1396
|
export type SessionV2EventList = Array<any>;
|
|
@@ -1646,6 +1688,14 @@ export type EventMessagePartRemoved = {
|
|
|
1646
1688
|
partID: string;
|
|
1647
1689
|
};
|
|
1648
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
|
+
};
|
|
1649
1699
|
export type EventTuiPromptAppend = {
|
|
1650
1700
|
type: "tui.prompt.append";
|
|
1651
1701
|
properties: {
|
|
@@ -2709,6 +2759,14 @@ export type FilePart = {
|
|
|
2709
2759
|
url: string;
|
|
2710
2760
|
source?: FilePartSource | undefined;
|
|
2711
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
|
+
};
|
|
2712
2770
|
export type EventQuestionAsked = {
|
|
2713
2771
|
type: "question.asked";
|
|
2714
2772
|
properties: QuestionRequest1;
|
|
@@ -2785,6 +2843,7 @@ export type ToolStateCompleted = {
|
|
|
2785
2843
|
};
|
|
2786
2844
|
attachments?: Array<FilePart> | undefined;
|
|
2787
2845
|
};
|
|
2846
|
+
export type PromptPartInput = TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput;
|
|
2788
2847
|
export type Config = {
|
|
2789
2848
|
$schema?: string | undefined;
|
|
2790
2849
|
theme?: string | undefined;
|
|
@@ -2932,6 +2991,7 @@ export type Config = {
|
|
|
2932
2991
|
reserved?: number | undefined;
|
|
2933
2992
|
} | undefined;
|
|
2934
2993
|
experimental?: {
|
|
2994
|
+
policies?: Array<PolicyStatementConfig> | undefined;
|
|
2935
2995
|
hook?: {
|
|
2936
2996
|
file_edited?: {
|
|
2937
2997
|
[x: string]: Array<{
|
|
@@ -3063,6 +3123,24 @@ export type EventMessageUpdated = {
|
|
|
3063
3123
|
};
|
|
3064
3124
|
};
|
|
3065
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
|
+
};
|
|
3066
3144
|
export type ToolPart = {
|
|
3067
3145
|
id: string;
|
|
3068
3146
|
sessionID: string;
|
|
@@ -3075,7 +3153,16 @@ export type ToolPart = {
|
|
|
3075
3153
|
[x: string]: any;
|
|
3076
3154
|
} | undefined;
|
|
3077
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
|
+
};
|
|
3078
3164
|
export type Part = TextPart | SubtaskPart | ReasoningPart | FilePart | ToolPart | StepStartPart | StepFinishPart | SnapshotPart | PatchPart | AgentPart | RetryPart | CompactionPart;
|
|
3165
|
+
export type SessionPendingInputList = Array<SessionPendingInput2>;
|
|
3079
3166
|
export type MobileSessionDetail = {
|
|
3080
3167
|
info: Session;
|
|
3081
3168
|
status?: any | undefined;
|
|
@@ -3122,7 +3209,7 @@ export type EventMessagePartUpdated = {
|
|
|
3122
3209
|
delta?: string | undefined;
|
|
3123
3210
|
};
|
|
3124
3211
|
};
|
|
3125
|
-
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;
|
|
3126
3213
|
export type GlobalEvent = {
|
|
3127
3214
|
directory: string;
|
|
3128
3215
|
payload: Event;
|
|
@@ -4143,6 +4230,11 @@ export type ConfigUpdateInput = {
|
|
|
4143
4230
|
readonly reserved?: number | undefined;
|
|
4144
4231
|
} | undefined;
|
|
4145
4232
|
readonly experimental?: {
|
|
4233
|
+
readonly policies?: ReadonlyArray<{
|
|
4234
|
+
readonly effect: "allow" | "deny";
|
|
4235
|
+
readonly action: string;
|
|
4236
|
+
readonly resource: string;
|
|
4237
|
+
}> | undefined;
|
|
4146
4238
|
readonly hook?: {
|
|
4147
4239
|
readonly file_edited?: {
|
|
4148
4240
|
readonly [x: string]: ReadonlyArray<{
|
|
@@ -8753,6 +8845,7 @@ export type SessionCommandInput = {
|
|
|
8753
8845
|
}["sessionID"];
|
|
8754
8846
|
readonly messageID?: {
|
|
8755
8847
|
readonly messageID?: string | undefined;
|
|
8848
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
8756
8849
|
readonly agent?: string | undefined;
|
|
8757
8850
|
readonly model?: string | undefined;
|
|
8758
8851
|
readonly arguments: string;
|
|
@@ -8760,8 +8853,19 @@ export type SessionCommandInput = {
|
|
|
8760
8853
|
readonly variant?: string | undefined;
|
|
8761
8854
|
readonly parts?: ReadonlyArray<unknown> | undefined;
|
|
8762
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"];
|
|
8763
8866
|
readonly agent?: {
|
|
8764
8867
|
readonly messageID?: string | undefined;
|
|
8868
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
8765
8869
|
readonly agent?: string | undefined;
|
|
8766
8870
|
readonly model?: string | undefined;
|
|
8767
8871
|
readonly arguments: string;
|
|
@@ -8771,6 +8875,7 @@ export type SessionCommandInput = {
|
|
|
8771
8875
|
}["agent"];
|
|
8772
8876
|
readonly model?: {
|
|
8773
8877
|
readonly messageID?: string | undefined;
|
|
8878
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
8774
8879
|
readonly agent?: string | undefined;
|
|
8775
8880
|
readonly model?: string | undefined;
|
|
8776
8881
|
readonly arguments: string;
|
|
@@ -8780,6 +8885,7 @@ export type SessionCommandInput = {
|
|
|
8780
8885
|
}["model"];
|
|
8781
8886
|
readonly arguments: {
|
|
8782
8887
|
readonly messageID?: string | undefined;
|
|
8888
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
8783
8889
|
readonly agent?: string | undefined;
|
|
8784
8890
|
readonly model?: string | undefined;
|
|
8785
8891
|
readonly arguments: string;
|
|
@@ -8789,6 +8895,7 @@ export type SessionCommandInput = {
|
|
|
8789
8895
|
}["arguments"];
|
|
8790
8896
|
readonly command: {
|
|
8791
8897
|
readonly messageID?: string | undefined;
|
|
8898
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
8792
8899
|
readonly agent?: string | undefined;
|
|
8793
8900
|
readonly model?: string | undefined;
|
|
8794
8901
|
readonly arguments: string;
|
|
@@ -8798,6 +8905,7 @@ export type SessionCommandInput = {
|
|
|
8798
8905
|
}["command"];
|
|
8799
8906
|
readonly variant?: {
|
|
8800
8907
|
readonly messageID?: string | undefined;
|
|
8908
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
8801
8909
|
readonly agent?: string | undefined;
|
|
8802
8910
|
readonly model?: string | undefined;
|
|
8803
8911
|
readonly arguments: string;
|
|
@@ -8807,6 +8915,7 @@ export type SessionCommandInput = {
|
|
|
8807
8915
|
}["variant"];
|
|
8808
8916
|
readonly parts?: {
|
|
8809
8917
|
readonly messageID?: string | undefined;
|
|
8918
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
8810
8919
|
readonly agent?: string | undefined;
|
|
8811
8920
|
readonly model?: string | undefined;
|
|
8812
8921
|
readonly arguments: string;
|
|
@@ -8890,6 +8999,23 @@ export type SessionMessagesInput = {
|
|
|
8890
8999
|
}["limit"];
|
|
8891
9000
|
};
|
|
8892
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;
|
|
8893
9019
|
export type SessionMessageInput = {
|
|
8894
9020
|
readonly sessionID: {
|
|
8895
9021
|
readonly sessionID: string;
|
|
@@ -9670,6 +9796,7 @@ export type SessionPromptPromptInput = {
|
|
|
9670
9796
|
}["sessionID"];
|
|
9671
9797
|
readonly messageID?: {
|
|
9672
9798
|
readonly messageID?: string | undefined;
|
|
9799
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
9673
9800
|
readonly model?: {
|
|
9674
9801
|
readonly providerID: string;
|
|
9675
9802
|
readonly modelID: string;
|
|
@@ -9770,8 +9897,112 @@ export type SessionPromptPromptInput = {
|
|
|
9770
9897
|
readonly id?: string | undefined;
|
|
9771
9898
|
}>;
|
|
9772
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"];
|
|
9773
10003
|
readonly model?: {
|
|
9774
10004
|
readonly messageID?: string | undefined;
|
|
10005
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
9775
10006
|
readonly model?: {
|
|
9776
10007
|
readonly providerID: string;
|
|
9777
10008
|
readonly modelID: string;
|
|
@@ -9874,6 +10105,7 @@ export type SessionPromptPromptInput = {
|
|
|
9874
10105
|
}["model"];
|
|
9875
10106
|
readonly agent?: {
|
|
9876
10107
|
readonly messageID?: string | undefined;
|
|
10108
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
9877
10109
|
readonly model?: {
|
|
9878
10110
|
readonly providerID: string;
|
|
9879
10111
|
readonly modelID: string;
|
|
@@ -9976,6 +10208,7 @@ export type SessionPromptPromptInput = {
|
|
|
9976
10208
|
}["agent"];
|
|
9977
10209
|
readonly noReply?: {
|
|
9978
10210
|
readonly messageID?: string | undefined;
|
|
10211
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
9979
10212
|
readonly model?: {
|
|
9980
10213
|
readonly providerID: string;
|
|
9981
10214
|
readonly modelID: string;
|
|
@@ -10078,6 +10311,7 @@ export type SessionPromptPromptInput = {
|
|
|
10078
10311
|
}["noReply"];
|
|
10079
10312
|
readonly tools?: {
|
|
10080
10313
|
readonly messageID?: string | undefined;
|
|
10314
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
10081
10315
|
readonly model?: {
|
|
10082
10316
|
readonly providerID: string;
|
|
10083
10317
|
readonly modelID: string;
|
|
@@ -10180,6 +10414,7 @@ export type SessionPromptPromptInput = {
|
|
|
10180
10414
|
}["tools"];
|
|
10181
10415
|
readonly format?: {
|
|
10182
10416
|
readonly messageID?: string | undefined;
|
|
10417
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
10183
10418
|
readonly model?: {
|
|
10184
10419
|
readonly providerID: string;
|
|
10185
10420
|
readonly modelID: string;
|
|
@@ -10282,6 +10517,7 @@ export type SessionPromptPromptInput = {
|
|
|
10282
10517
|
}["format"];
|
|
10283
10518
|
readonly system?: {
|
|
10284
10519
|
readonly messageID?: string | undefined;
|
|
10520
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
10285
10521
|
readonly model?: {
|
|
10286
10522
|
readonly providerID: string;
|
|
10287
10523
|
readonly modelID: string;
|
|
@@ -10384,6 +10620,7 @@ export type SessionPromptPromptInput = {
|
|
|
10384
10620
|
}["system"];
|
|
10385
10621
|
readonly variant?: {
|
|
10386
10622
|
readonly messageID?: string | undefined;
|
|
10623
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
10387
10624
|
readonly model?: {
|
|
10388
10625
|
readonly providerID: string;
|
|
10389
10626
|
readonly modelID: string;
|
|
@@ -10486,6 +10723,7 @@ export type SessionPromptPromptInput = {
|
|
|
10486
10723
|
}["variant"];
|
|
10487
10724
|
readonly parts: {
|
|
10488
10725
|
readonly messageID?: string | undefined;
|
|
10726
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
10489
10727
|
readonly model?: {
|
|
10490
10728
|
readonly providerID: string;
|
|
10491
10729
|
readonly modelID: string;
|
|
@@ -10594,6 +10832,7 @@ export type SessionPromptPromptAsyncInput = {
|
|
|
10594
10832
|
}["sessionID"];
|
|
10595
10833
|
readonly messageID?: {
|
|
10596
10834
|
readonly messageID?: string | undefined;
|
|
10835
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
10597
10836
|
readonly model?: {
|
|
10598
10837
|
readonly providerID: string;
|
|
10599
10838
|
readonly modelID: string;
|
|
@@ -10694,8 +10933,112 @@ export type SessionPromptPromptAsyncInput = {
|
|
|
10694
10933
|
readonly id?: string | undefined;
|
|
10695
10934
|
}>;
|
|
10696
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"];
|
|
10697
11039
|
readonly model?: {
|
|
10698
11040
|
readonly messageID?: string | undefined;
|
|
11041
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
10699
11042
|
readonly model?: {
|
|
10700
11043
|
readonly providerID: string;
|
|
10701
11044
|
readonly modelID: string;
|
|
@@ -10798,6 +11141,7 @@ export type SessionPromptPromptAsyncInput = {
|
|
|
10798
11141
|
}["model"];
|
|
10799
11142
|
readonly agent?: {
|
|
10800
11143
|
readonly messageID?: string | undefined;
|
|
11144
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
10801
11145
|
readonly model?: {
|
|
10802
11146
|
readonly providerID: string;
|
|
10803
11147
|
readonly modelID: string;
|
|
@@ -10900,6 +11244,7 @@ export type SessionPromptPromptAsyncInput = {
|
|
|
10900
11244
|
}["agent"];
|
|
10901
11245
|
readonly noReply?: {
|
|
10902
11246
|
readonly messageID?: string | undefined;
|
|
11247
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
10903
11248
|
readonly model?: {
|
|
10904
11249
|
readonly providerID: string;
|
|
10905
11250
|
readonly modelID: string;
|
|
@@ -11002,6 +11347,7 @@ export type SessionPromptPromptAsyncInput = {
|
|
|
11002
11347
|
}["noReply"];
|
|
11003
11348
|
readonly tools?: {
|
|
11004
11349
|
readonly messageID?: string | undefined;
|
|
11350
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
11005
11351
|
readonly model?: {
|
|
11006
11352
|
readonly providerID: string;
|
|
11007
11353
|
readonly modelID: string;
|
|
@@ -11104,6 +11450,7 @@ export type SessionPromptPromptAsyncInput = {
|
|
|
11104
11450
|
}["tools"];
|
|
11105
11451
|
readonly format?: {
|
|
11106
11452
|
readonly messageID?: string | undefined;
|
|
11453
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
11107
11454
|
readonly model?: {
|
|
11108
11455
|
readonly providerID: string;
|
|
11109
11456
|
readonly modelID: string;
|
|
@@ -11206,6 +11553,7 @@ export type SessionPromptPromptAsyncInput = {
|
|
|
11206
11553
|
}["format"];
|
|
11207
11554
|
readonly system?: {
|
|
11208
11555
|
readonly messageID?: string | undefined;
|
|
11556
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
11209
11557
|
readonly model?: {
|
|
11210
11558
|
readonly providerID: string;
|
|
11211
11559
|
readonly modelID: string;
|
|
@@ -11308,6 +11656,7 @@ export type SessionPromptPromptAsyncInput = {
|
|
|
11308
11656
|
}["system"];
|
|
11309
11657
|
readonly variant?: {
|
|
11310
11658
|
readonly messageID?: string | undefined;
|
|
11659
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
11311
11660
|
readonly model?: {
|
|
11312
11661
|
readonly providerID: string;
|
|
11313
11662
|
readonly modelID: string;
|
|
@@ -11410,6 +11759,7 @@ export type SessionPromptPromptAsyncInput = {
|
|
|
11410
11759
|
}["variant"];
|
|
11411
11760
|
readonly parts: {
|
|
11412
11761
|
readonly messageID?: string | undefined;
|
|
11762
|
+
readonly delivery?: "steer" | "queue" | undefined;
|
|
11413
11763
|
readonly model?: {
|
|
11414
11764
|
readonly providerID: string;
|
|
11415
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;
|