@nikcli-ai/sdk 1.264.0 → 1.266.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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TopLevelVcsStatusOutput, TopLevelVcsApplyInput, TopLevelCommandOutput, TopLevelAgentOutput, TopLevelSkillOutput, TopLevelLspOutput, TopLevelFormatterOutput, AnalyticsDailyInput, AnalyticsSessionInput, 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, ProjectListOutput, ProjectUpdateInput, 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, SessionV2EntriesInput, SessionV2StateInput, SessionV2EventsInput, SessionInstructionsInput, SessionContextBreakdownInput, SessionContextToggleInput, SessionGoalInput, SessionBackgroundInput, SessionBackgroundInspectInput, SessionBackgroundReadInput, SessionBackgroundCancelInput, SessionMonitorInput, SessionMonitorLogInput, SessionMonitorCancelInput, TuiAppendPromptInput, TuiExecuteCommandInput, TuiShowToastInput, TuiPublishInput, TuiSelectSessionInput, TuiControlResponseInput, WorkspaceAdaptorsOutput, WorkspaceStatusOutput, WorkspaceCreateInput, WorkspaceListOutput, WorkspaceRemoveInput, WorkspaceRestoreInput, WorkspaceSessionRestoreInput, WorkspaceWarpInput, SyncEventInput, SyncOutboxInput, SyncSnapshotInput, SyncStreamInput, SyncStreamOutput, SyncStatsInput, SyncConfigInput, AuthRemoveInput, ConfigManagementMcpAddInput, ConfigManagementMcpUpdateInput, ConfigManagementMcpRemoveInput, ConfigManagementProfileCreateInput, ConfigManagementProfileActivateInput, SessionPromptPromptInput, SessionPromptPromptAsyncInput, ShareShortInput, SharePageInput, ShareApiInput, ShareDataInput, EventsSubscribeOutput, EventsGlobalOutput, WorkspaceExtraEventsInput, WorkspaceExtraEventsOutput, WorkspaceExtraSessionWarpInput, UsersRegisterInput, UsersLoginInput, UsersUpdateInput, MobileAuthTokenListOutput, MobileAuthTokenCreateInput, MobileAuthTokenCreateOutput, MobileAuthTokenRevokeInput, MobileAuthTokenRevokeOutput, MobileCommandListOutput, MobileProjectListOutput, MobileMemoryHistoryOutput, MobileMemorySearchInput, MobileMemorySearchOutput, MobileMemoryStashListOutput, MobileMemoryStashCreateInput, MobileMemoryStashDeleteInput, MobileGithubReposOutput, MobileGithubBranchesInput, MobileGithubBranchesOutput, MobileGithubImportsOutput, MobileGithubOauthClientInput, MobileGithubOauthDevicePollInput, MobileGithubAuthSetInput, MobileGithubImportInput, MobileGithubImportOutput, MobileGithubSessionCreateInput, MobileSessionListInput, MobileSessionListOutput, MobileSessionCreateInput, MobileSessionDetailInput, MobileSessionDeleteInput, MobileSessionDiffInput, MobileSessionDiffOutput, MobileSessionCommandListInput, MobileSessionCommandListOutput, MobileSessionCommandInput, MobileSessionCommandOutput, MobileSessionMessageInput, MobileSessionAbortInput, MobilePermissionRespondInput, MobileQuestionRespondInput, MobileQuestionRejectInput, MobileSessionPublishInput, MobileSessionCleanupInput, MobileSessionStreamInput, MobileSessionStreamOutput, MobileSessionRenameInput, 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 } from "./types.js";
|
|
1
|
+
import type { TopLevelVcsStatusOutput, TopLevelVcsApplyInput, TopLevelCommandOutput, TopLevelAgentOutput, TopLevelSkillOutput, TopLevelLspOutput, TopLevelFormatterOutput, AnalyticsDailyInput, AnalyticsSessionInput, 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, 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, SessionV2EntriesInput, SessionV2StateInput, SessionV2EventsInput, SessionInstructionsInput, SessionContextBreakdownInput, SessionContextToggleInput, SessionGoalInput, SessionBackgroundInput, SessionBackgroundInspectInput, SessionBackgroundReadInput, SessionBackgroundCancelInput, SessionMonitorInput, SessionMonitorLogInput, SessionMonitorCancelInput, TuiAppendPromptInput, TuiExecuteCommandInput, TuiShowToastInput, TuiPublishInput, TuiSelectSessionInput, TuiControlResponseInput, WorkspaceAdaptorsOutput, WorkspaceStatusOutput, WorkspaceCreateInput, WorkspaceListOutput, WorkspaceRemoveInput, WorkspaceRestoreInput, WorkspaceSessionRestoreInput, WorkspaceWarpInput, SyncEventInput, SyncOutboxInput, SyncSnapshotInput, SyncStreamInput, SyncStreamOutput, SyncStatsInput, SyncConfigInput, AuthRemoveInput, ConfigManagementMcpAddInput, ConfigManagementMcpUpdateInput, ConfigManagementMcpRemoveInput, ConfigManagementProfileCreateInput, ConfigManagementProfileActivateInput, SessionPromptPromptInput, SessionPromptPromptAsyncInput, ShareShortInput, SharePageInput, ShareApiInput, ShareDataInput, EventsSubscribeOutput, EventsGlobalOutput, WorkspaceExtraEventsInput, WorkspaceExtraEventsOutput, WorkspaceExtraSessionWarpInput, UsersRegisterInput, UsersLoginInput, UsersUpdateInput, MobileAuthTokenListOutput, MobileAuthTokenCreateInput, MobileAuthTokenCreateOutput, MobileAuthTokenRevokeInput, MobileAuthTokenRevokeOutput, MobileCommandListOutput, MobileProjectListOutput, MobileMemoryHistoryOutput, MobileMemorySearchInput, MobileMemorySearchOutput, MobileMemoryStashListOutput, MobileMemoryStashCreateInput, MobileMemoryStashDeleteInput, MobileGithubReposOutput, MobileGithubBranchesInput, MobileGithubBranchesOutput, MobileGithubImportsOutput, MobileGithubOauthClientInput, MobileGithubOauthDevicePollInput, MobileGithubAuthSetInput, MobileGithubImportInput, MobileGithubImportOutput, MobileGithubSessionCreateInput, MobileSessionListInput, MobileSessionListOutput, MobileSessionCreateInput, MobileSessionDetailInput, MobileSessionDeleteInput, MobileSessionDiffInput, MobileSessionDiffOutput, MobileSessionCommandListInput, MobileSessionCommandListOutput, MobileSessionCommandInput, MobileSessionCommandOutput, MobileSessionMessageInput, MobileSessionAbortInput, MobilePermissionRespondInput, MobileQuestionRespondInput, MobileQuestionRejectInput, MobileSessionPublishInput, MobileSessionCleanupInput, MobileSessionStreamInput, MobileSessionStreamOutput, MobileSessionRenameInput, 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 } from "./types.js";
|
|
2
2
|
export interface ClientOptions {
|
|
3
3
|
readonly baseUrl: string;
|
|
4
4
|
readonly fetch?: typeof globalThis.fetch;
|
|
@@ -110,6 +110,10 @@ export declare function make(options: ClientOptions): {
|
|
|
110
110
|
list: (requestOptions?: RequestOptions) => Promise<ProjectListOutput>;
|
|
111
111
|
current: (requestOptions?: RequestOptions) => Promise<import("./types.js").Project>;
|
|
112
112
|
update: (input: ProjectUpdateInput, requestOptions?: RequestOptions) => Promise<import("./types.js").Project>;
|
|
113
|
+
directoryList: (input: ProjectDirectoryListInput, requestOptions?: RequestOptions) => Promise<ProjectDirectoryListOutput>;
|
|
114
|
+
copyCreate: (input: ProjectCopyCreateInput, requestOptions?: RequestOptions) => Promise<import("./types.js").ProjectCopy>;
|
|
115
|
+
copyRemove: (input: ProjectCopyRemoveInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
116
|
+
copyRefresh: (input: ProjectCopyRefreshInput, requestOptions?: RequestOptions) => Promise<import("./types.js").ProjectCopyRefresh>;
|
|
113
117
|
};
|
|
114
118
|
provider: {
|
|
115
119
|
list: (requestOptions?: RequestOptions) => Promise<import("./types.js").ProviderList>;
|
|
@@ -562,6 +562,36 @@ export function make(options) {
|
|
|
562
562
|
declaredStatuses: [],
|
|
563
563
|
empty: false,
|
|
564
564
|
}, requestOptions),
|
|
565
|
+
directoryList: (input, requestOptions) => request({
|
|
566
|
+
method: "GET",
|
|
567
|
+
path: `/project/${encodeURIComponent(input.projectID)}/directory`,
|
|
568
|
+
successStatus: 200,
|
|
569
|
+
declaredStatuses: [],
|
|
570
|
+
empty: false,
|
|
571
|
+
}, requestOptions),
|
|
572
|
+
copyCreate: (input, requestOptions) => request({
|
|
573
|
+
method: "POST",
|
|
574
|
+
path: `/project/${encodeURIComponent(input.projectID)}/copy`,
|
|
575
|
+
body: { strategy: input["strategy"], directory: input["directory"], name: input["name"] },
|
|
576
|
+
successStatus: 200,
|
|
577
|
+
declaredStatuses: [],
|
|
578
|
+
empty: false,
|
|
579
|
+
}, requestOptions),
|
|
580
|
+
copyRemove: (input, requestOptions) => request({
|
|
581
|
+
method: "DELETE",
|
|
582
|
+
path: `/project/${encodeURIComponent(input.projectID)}/copy`,
|
|
583
|
+
body: { directory: input["directory"], force: input["force"] },
|
|
584
|
+
successStatus: 204,
|
|
585
|
+
declaredStatuses: [],
|
|
586
|
+
empty: true,
|
|
587
|
+
}, requestOptions),
|
|
588
|
+
copyRefresh: (input, requestOptions) => request({
|
|
589
|
+
method: "POST",
|
|
590
|
+
path: `/project/${encodeURIComponent(input.projectID)}/copy/refresh`,
|
|
591
|
+
successStatus: 200,
|
|
592
|
+
declaredStatuses: [],
|
|
593
|
+
empty: false,
|
|
594
|
+
}, requestOptions),
|
|
565
595
|
},
|
|
566
596
|
provider: {
|
|
567
597
|
list: (requestOptions) => request({ method: "GET", path: `/provider`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
@@ -112,37 +112,73 @@ export type BrainResult = {
|
|
|
112
112
|
export type Config = {
|
|
113
113
|
[x: string]: any;
|
|
114
114
|
};
|
|
115
|
-
export type
|
|
115
|
+
export type Model = {
|
|
116
116
|
id: string;
|
|
117
|
+
providerID: string;
|
|
118
|
+
api: {
|
|
119
|
+
id: string;
|
|
120
|
+
url?: string | undefined;
|
|
121
|
+
npm: string;
|
|
122
|
+
};
|
|
117
123
|
name: string;
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
124
|
+
family?: string | undefined;
|
|
125
|
+
capabilities: {
|
|
126
|
+
temperature: boolean;
|
|
127
|
+
reasoning: boolean;
|
|
128
|
+
attachment: boolean;
|
|
129
|
+
toolcall: boolean;
|
|
130
|
+
input: {
|
|
131
|
+
text: boolean;
|
|
132
|
+
audio: boolean;
|
|
133
|
+
image: boolean;
|
|
134
|
+
video: boolean;
|
|
135
|
+
pdf: boolean;
|
|
136
|
+
};
|
|
137
|
+
output: {
|
|
138
|
+
text: boolean;
|
|
139
|
+
audio: boolean;
|
|
140
|
+
image: boolean;
|
|
141
|
+
video: boolean;
|
|
142
|
+
pdf: boolean;
|
|
143
|
+
};
|
|
144
|
+
interleaved: boolean | {
|
|
145
|
+
field: "reasoning_content" | "reasoning_details";
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
cost: {
|
|
149
|
+
input: number;
|
|
150
|
+
output: number;
|
|
151
|
+
cache: {
|
|
152
|
+
read: number;
|
|
153
|
+
write: number;
|
|
154
|
+
};
|
|
155
|
+
experimentalOver200K?: {
|
|
156
|
+
input: number;
|
|
157
|
+
output: number;
|
|
158
|
+
cache: {
|
|
159
|
+
read: number;
|
|
160
|
+
write: number;
|
|
161
|
+
};
|
|
162
|
+
} | undefined;
|
|
163
|
+
};
|
|
164
|
+
limit: {
|
|
165
|
+
context: number;
|
|
166
|
+
input?: number | undefined;
|
|
167
|
+
output: number;
|
|
168
|
+
};
|
|
169
|
+
status: "alpha" | "beta" | "deprecated" | "active";
|
|
121
170
|
options: {
|
|
122
171
|
[x: string]: any;
|
|
123
172
|
};
|
|
124
|
-
|
|
173
|
+
headers: {
|
|
174
|
+
[x: string]: string;
|
|
175
|
+
};
|
|
176
|
+
release_date: string;
|
|
177
|
+
variants?: {
|
|
125
178
|
[x: string]: {
|
|
126
|
-
|
|
127
|
-
providerID?: string | undefined;
|
|
128
|
-
name: string;
|
|
129
|
-
family?: string | undefined;
|
|
130
|
-
cost?: any | undefined;
|
|
131
|
-
limit?: any | undefined;
|
|
132
|
-
api?: any | undefined;
|
|
133
|
-
status?: string | undefined;
|
|
134
|
-
options: {
|
|
135
|
-
[x: string]: any;
|
|
136
|
-
};
|
|
137
|
-
headers: {
|
|
138
|
-
[x: string]: string;
|
|
139
|
-
};
|
|
140
|
-
release_date: string;
|
|
141
|
-
variants?: {
|
|
142
|
-
[x: string]: any;
|
|
143
|
-
} | undefined;
|
|
179
|
+
[x: string]: any;
|
|
144
180
|
};
|
|
145
|
-
};
|
|
181
|
+
} | undefined;
|
|
146
182
|
};
|
|
147
183
|
export type ConnectorsSuccess = {
|
|
148
184
|
success: true;
|
|
@@ -278,6 +314,7 @@ export type MissionBooleanResult = boolean;
|
|
|
278
314
|
export type Project = {
|
|
279
315
|
id: string;
|
|
280
316
|
worktree: string;
|
|
317
|
+
canonical: string;
|
|
281
318
|
vcs?: "git" | undefined;
|
|
282
319
|
name?: string | undefined;
|
|
283
320
|
icon?: {
|
|
@@ -285,6 +322,9 @@ export type Project = {
|
|
|
285
322
|
override?: string | undefined;
|
|
286
323
|
color?: string | undefined;
|
|
287
324
|
} | undefined;
|
|
325
|
+
commands?: {
|
|
326
|
+
start?: string | undefined;
|
|
327
|
+
} | undefined;
|
|
288
328
|
time: {
|
|
289
329
|
created: number;
|
|
290
330
|
updated: number;
|
|
@@ -292,6 +332,17 @@ export type Project = {
|
|
|
292
332
|
};
|
|
293
333
|
sandboxes: Array<string>;
|
|
294
334
|
};
|
|
335
|
+
export type ProjectDirectory = {
|
|
336
|
+
directory: string;
|
|
337
|
+
strategy?: string | undefined;
|
|
338
|
+
};
|
|
339
|
+
export type ProjectCopy = {
|
|
340
|
+
directory: string;
|
|
341
|
+
};
|
|
342
|
+
export type ProjectCopyRefresh = {
|
|
343
|
+
updated: Array<string>;
|
|
344
|
+
removed: Array<string>;
|
|
345
|
+
};
|
|
295
346
|
export type ProviderAuthMethod = {
|
|
296
347
|
type: "oauth" | "api";
|
|
297
348
|
label: string;
|
|
@@ -341,30 +392,12 @@ export type FileDiff = {
|
|
|
341
392
|
before: string;
|
|
342
393
|
after: string;
|
|
343
394
|
};
|
|
344
|
-
export type
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
baseBranch: string;
|
|
349
|
-
headBranch: string;
|
|
395
|
+
export type SessionWorktree = {
|
|
396
|
+
name: string;
|
|
397
|
+
branch: string;
|
|
398
|
+
directory: string;
|
|
350
399
|
repositoryDirectory?: string | undefined;
|
|
351
|
-
|
|
352
|
-
htmlUrl?: string | undefined;
|
|
353
|
-
private?: boolean | undefined;
|
|
354
|
-
worktree: {
|
|
355
|
-
name: string;
|
|
356
|
-
branch: string;
|
|
357
|
-
directory: string;
|
|
358
|
-
cleanedAt?: number | undefined;
|
|
359
|
-
};
|
|
360
|
-
pullRequest?: {
|
|
361
|
-
number: number;
|
|
362
|
-
url: string;
|
|
363
|
-
title: string;
|
|
364
|
-
} | undefined;
|
|
365
|
-
lastCommitSha?: string | undefined;
|
|
366
|
-
publishedAt?: number | undefined;
|
|
367
|
-
publishError?: string | undefined;
|
|
400
|
+
cleanedAt?: number | undefined;
|
|
368
401
|
};
|
|
369
402
|
export type SessionMobile = {
|
|
370
403
|
platforms: Array<"ios" | "android" | "expo" | "flutter" | "react-native">;
|
|
@@ -422,6 +455,7 @@ export type MessageContextOverflowError = {
|
|
|
422
455
|
name: "MessageContextOverflowError";
|
|
423
456
|
data: {
|
|
424
457
|
message: string;
|
|
458
|
+
statusCode?: number | undefined;
|
|
425
459
|
responseBody?: string | undefined;
|
|
426
460
|
};
|
|
427
461
|
};
|
|
@@ -451,6 +485,7 @@ export type APIError = {
|
|
|
451
485
|
metadata?: {
|
|
452
486
|
[x: string]: string;
|
|
453
487
|
} | undefined;
|
|
488
|
+
classification?: "payload-too-large" | undefined;
|
|
454
489
|
};
|
|
455
490
|
};
|
|
456
491
|
export type TextPart = {
|
|
@@ -700,6 +735,9 @@ export type ConfigReloadResponse = {
|
|
|
700
735
|
export type SuccessFlag = {
|
|
701
736
|
success: boolean;
|
|
702
737
|
};
|
|
738
|
+
export type ProjectDirectoriesUpdated = {
|
|
739
|
+
projectID: string;
|
|
740
|
+
};
|
|
703
741
|
export type EventTelemetryRecord = {
|
|
704
742
|
type: "telemetry.record";
|
|
705
743
|
properties: {
|
|
@@ -940,6 +978,20 @@ export type EventSessionV2Updated = {
|
|
|
940
978
|
sessionID: string;
|
|
941
979
|
};
|
|
942
980
|
};
|
|
981
|
+
export type EventSessionEntryUpdated = {
|
|
982
|
+
type: "session.entry.updated";
|
|
983
|
+
properties: {
|
|
984
|
+
sessionID: string;
|
|
985
|
+
entry: any;
|
|
986
|
+
};
|
|
987
|
+
};
|
|
988
|
+
export type EventSessionEntryRemoved = {
|
|
989
|
+
type: "session.entry.removed";
|
|
990
|
+
properties: {
|
|
991
|
+
sessionID: string;
|
|
992
|
+
entryID: string;
|
|
993
|
+
};
|
|
994
|
+
};
|
|
943
995
|
export type EventFileEdited = {
|
|
944
996
|
type: "file.edited";
|
|
945
997
|
properties: {
|
|
@@ -1324,18 +1376,18 @@ export type MobileLoopRuntime = {
|
|
|
1324
1376
|
export type MobileLoopRun = any;
|
|
1325
1377
|
export type MobileRoutine = any;
|
|
1326
1378
|
export type MobilePtyInfo = any;
|
|
1327
|
-
export type
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1379
|
+
export type Provider = {
|
|
1380
|
+
id: string;
|
|
1381
|
+
name: string;
|
|
1382
|
+
source: "env" | "config" | "custom" | "api";
|
|
1383
|
+
env: Array<string>;
|
|
1384
|
+
key?: string | undefined;
|
|
1385
|
+
options: {
|
|
1386
|
+
[x: string]: any;
|
|
1331
1387
|
};
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
all: Array<Provider>;
|
|
1335
|
-
default: {
|
|
1336
|
-
[x: string]: string;
|
|
1388
|
+
models: {
|
|
1389
|
+
[x: string]: Model;
|
|
1337
1390
|
};
|
|
1338
|
-
connected: Array<string>;
|
|
1339
1391
|
};
|
|
1340
1392
|
export type DoctorReport = {
|
|
1341
1393
|
ok: boolean;
|
|
@@ -1375,6 +1427,26 @@ export type EventSessionDiff = {
|
|
|
1375
1427
|
diff: Array<FileDiff>;
|
|
1376
1428
|
};
|
|
1377
1429
|
};
|
|
1430
|
+
export type SessionGithub = {
|
|
1431
|
+
owner: string;
|
|
1432
|
+
repo: string;
|
|
1433
|
+
fullName: string;
|
|
1434
|
+
baseBranch: string;
|
|
1435
|
+
headBranch: string;
|
|
1436
|
+
repositoryDirectory?: string | undefined;
|
|
1437
|
+
cloneUrl?: string | undefined;
|
|
1438
|
+
htmlUrl?: string | undefined;
|
|
1439
|
+
private?: boolean | undefined;
|
|
1440
|
+
worktree: SessionWorktree;
|
|
1441
|
+
pullRequest?: {
|
|
1442
|
+
number: number;
|
|
1443
|
+
url: string;
|
|
1444
|
+
title: string;
|
|
1445
|
+
} | undefined;
|
|
1446
|
+
lastCommitSha?: string | undefined;
|
|
1447
|
+
publishedAt?: number | undefined;
|
|
1448
|
+
publishError?: string | undefined;
|
|
1449
|
+
};
|
|
1378
1450
|
export type PermissionRule = {
|
|
1379
1451
|
permission: string;
|
|
1380
1452
|
pattern: string;
|
|
@@ -1485,6 +1557,10 @@ export type Workspace = {
|
|
|
1485
1557
|
projectID: string;
|
|
1486
1558
|
config: WorkspaceConfig;
|
|
1487
1559
|
};
|
|
1560
|
+
export type EventProjectDirectoriesUpdated = {
|
|
1561
|
+
type: "project.directories.updated";
|
|
1562
|
+
properties: ProjectDirectoriesUpdated;
|
|
1563
|
+
};
|
|
1488
1564
|
export type EventPermissionAsked = {
|
|
1489
1565
|
type: "permission.asked";
|
|
1490
1566
|
properties: PermissionRequest1;
|
|
@@ -1596,6 +1672,19 @@ export type MobileGitStatus = {
|
|
|
1596
1672
|
timestamp: number;
|
|
1597
1673
|
} | undefined;
|
|
1598
1674
|
};
|
|
1675
|
+
export type ConfigProviders = {
|
|
1676
|
+
providers: Array<Provider>;
|
|
1677
|
+
default: {
|
|
1678
|
+
[x: string]: string;
|
|
1679
|
+
};
|
|
1680
|
+
};
|
|
1681
|
+
export type ProviderList = {
|
|
1682
|
+
all: Array<Provider>;
|
|
1683
|
+
default: {
|
|
1684
|
+
[x: string]: string;
|
|
1685
|
+
};
|
|
1686
|
+
connected: Array<string>;
|
|
1687
|
+
};
|
|
1599
1688
|
export type QuestionRequest = {
|
|
1600
1689
|
id: string;
|
|
1601
1690
|
sessionID: string;
|
|
@@ -1635,6 +1724,7 @@ export type Session = {
|
|
|
1635
1724
|
url: string;
|
|
1636
1725
|
} | undefined;
|
|
1637
1726
|
github?: SessionGithub | undefined;
|
|
1727
|
+
worktree?: SessionWorktree | undefined;
|
|
1638
1728
|
mobile?: SessionMobile | undefined;
|
|
1639
1729
|
title: string;
|
|
1640
1730
|
activeCommand?: string | undefined;
|
|
@@ -1772,7 +1862,7 @@ export type EventMessagePartUpdated = {
|
|
|
1772
1862
|
delta?: string | undefined;
|
|
1773
1863
|
};
|
|
1774
1864
|
};
|
|
1775
|
-
export type Event = EventProjectUpdated | 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 | EventFileEdited | EventMonitorCreated | EventMonitorUpdated | EventMonitorOutput | EventMonitorCompleted | EventLoopUpserted | EventLoopRemoved | EventLoopRunStarted | EventLoopRunFinished | EventLoopRuntimeChanged | EventLoopAborted | EventMissionUpserted | EventMissionRemoved | EventMissionStarted | EventMissionFinished | EventMissionExecStarted | EventMissionExecFinished | EventMissionRuntimeChanged | EventMissionAborted | EventWorkspaceStatus | EventWorkspaceReady | EventWorkspaceFailed | EventDelegationCompleted;
|
|
1865
|
+
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;
|
|
1776
1866
|
export type GlobalEvent = {
|
|
1777
1867
|
directory: string;
|
|
1778
1868
|
payload: Event;
|
|
@@ -2453,6 +2543,53 @@ export type ProjectUpdateInput = {
|
|
|
2453
2543
|
}["icon"];
|
|
2454
2544
|
};
|
|
2455
2545
|
export type ProjectUpdateOutput = Project;
|
|
2546
|
+
export type ProjectDirectoryListInput = {
|
|
2547
|
+
readonly projectID: {
|
|
2548
|
+
readonly projectID: string;
|
|
2549
|
+
}["projectID"];
|
|
2550
|
+
};
|
|
2551
|
+
export type ProjectDirectoryListOutput = Array<ProjectDirectory>;
|
|
2552
|
+
export type ProjectCopyCreateInput = {
|
|
2553
|
+
readonly projectID: {
|
|
2554
|
+
readonly projectID: string;
|
|
2555
|
+
}["projectID"];
|
|
2556
|
+
readonly strategy: {
|
|
2557
|
+
readonly strategy: "git_worktree";
|
|
2558
|
+
readonly directory: string;
|
|
2559
|
+
readonly name?: string | undefined;
|
|
2560
|
+
}["strategy"];
|
|
2561
|
+
readonly directory: {
|
|
2562
|
+
readonly strategy: "git_worktree";
|
|
2563
|
+
readonly directory: string;
|
|
2564
|
+
readonly name?: string | undefined;
|
|
2565
|
+
}["directory"];
|
|
2566
|
+
readonly name?: {
|
|
2567
|
+
readonly strategy: "git_worktree";
|
|
2568
|
+
readonly directory: string;
|
|
2569
|
+
readonly name?: string | undefined;
|
|
2570
|
+
}["name"];
|
|
2571
|
+
};
|
|
2572
|
+
export type ProjectCopyCreateOutput = ProjectCopy;
|
|
2573
|
+
export type ProjectCopyRemoveInput = {
|
|
2574
|
+
readonly projectID: {
|
|
2575
|
+
readonly projectID: string;
|
|
2576
|
+
}["projectID"];
|
|
2577
|
+
readonly directory: {
|
|
2578
|
+
readonly directory: string;
|
|
2579
|
+
readonly force: boolean;
|
|
2580
|
+
}["directory"];
|
|
2581
|
+
readonly force: {
|
|
2582
|
+
readonly directory: string;
|
|
2583
|
+
readonly force: boolean;
|
|
2584
|
+
}["force"];
|
|
2585
|
+
};
|
|
2586
|
+
export type ProjectCopyRemoveOutput = void;
|
|
2587
|
+
export type ProjectCopyRefreshInput = {
|
|
2588
|
+
readonly projectID: {
|
|
2589
|
+
readonly projectID: string;
|
|
2590
|
+
}["projectID"];
|
|
2591
|
+
};
|
|
2592
|
+
export type ProjectCopyRefreshOutput = ProjectCopyRefresh;
|
|
2456
2593
|
export type ProviderListOutput = ProviderList;
|
|
2457
2594
|
export type ProviderAuthOutput = ProviderAuthMethods;
|
|
2458
2595
|
export type ProviderApiInput = {
|
|
@@ -1894,23 +1894,10 @@ export type PermissionConfig = {
|
|
|
1894
1894
|
bash?: PermissionRuleConfig;
|
|
1895
1895
|
task?: PermissionRuleConfig;
|
|
1896
1896
|
subagents?: PermissionRuleConfig;
|
|
1897
|
-
docs_add?: PermissionRuleConfig;
|
|
1898
|
-
docs_search?: PermissionRuleConfig;
|
|
1899
|
-
docs_load?: PermissionRuleConfig;
|
|
1900
|
-
docs_unload?: PermissionRuleConfig;
|
|
1901
|
-
docs_context?: PermissionRuleConfig;
|
|
1902
|
-
docs_request?: PermissionRuleConfig;
|
|
1903
|
-
docs_gap_report?: PermissionRuleConfig;
|
|
1904
|
-
smart_docs?: PermissionRuleConfig;
|
|
1905
1897
|
context_collect?: PermissionRuleConfig;
|
|
1906
|
-
context_search?: PermissionRuleConfig;
|
|
1907
1898
|
context_related?: PermissionRuleConfig;
|
|
1908
1899
|
context_diagnostics?: PermissionRuleConfig;
|
|
1909
1900
|
memory_search?: PermissionRuleConfig;
|
|
1910
|
-
rag_index?: PermissionRuleConfig;
|
|
1911
|
-
rag_search?: PermissionRuleConfig;
|
|
1912
|
-
rag_status?: PermissionRuleConfig;
|
|
1913
|
-
rag_reset?: PermissionRuleConfig;
|
|
1914
1901
|
generate_image?: PermissionRuleConfig;
|
|
1915
1902
|
external_directory?: PermissionRuleConfig;
|
|
1916
1903
|
todowrite?: PermissionActionConfig;
|
|
@@ -1922,6 +1909,7 @@ export type PermissionConfig = {
|
|
|
1922
1909
|
repo_clone?: PermissionActionConfig;
|
|
1923
1910
|
repo_overview?: PermissionActionConfig;
|
|
1924
1911
|
speak?: PermissionRuleConfig;
|
|
1912
|
+
voice?: PermissionRuleConfig;
|
|
1925
1913
|
lsp?: PermissionRuleConfig;
|
|
1926
1914
|
doom_loop?: PermissionActionConfig;
|
|
1927
1915
|
[key: string]: PermissionRuleConfig | Array<string> | PermissionActionConfig | undefined;
|