@kilocode/sdk 7.3.41 → 7.3.44
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/gen/types.gen.d.ts +3 -0
- package/dist/v2/gen/sdk.gen.d.ts +62 -2
- package/dist/v2/gen/sdk.gen.js +98 -0
- package/dist/v2/gen/types.gen.d.ts +405 -405
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type ClientOptions = {
|
|
2
2
|
baseUrl: `${string}://${string}` | (string & {});
|
|
3
3
|
};
|
|
4
|
-
export type Event = EventServerConnected | EventGlobalDisposed | EventGlobalConfigUpdated | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow1 | EventTuiSessionSelect | EventKilocodeAgentManagerStart | EventIndexingStatus | EventServerInstanceDisposed | EventFileEdited | EventFileWatcherUpdated | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventLspClientDiagnostics | EventLspUpdated | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventSessionNetworkAsked | EventSessionNetworkReplied | EventSessionNetworkRejected | EventSessionNetworkRestored | EventMessagePartDelta | EventPermissionAsked | EventPermissionReplied | EventBackgroundProcessUpdated | EventBackgroundProcessDeleted | EventSessionTurnOpen | EventSessionTurnClose | EventSessionDiff | EventSessionError |
|
|
4
|
+
export type Event = EventServerConnected | EventGlobalDisposed | EventGlobalConfigUpdated | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow1 | EventTuiSessionSelect | EventKilocodeAgentManagerStart | EventIndexingStatus | EventIndexingWarning | EventServerInstanceDisposed | EventFileEdited | EventFileWatcherUpdated | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventLspClientDiagnostics | EventLspUpdated | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventSessionNetworkAsked | EventSessionNetworkReplied | EventSessionNetworkRejected | EventSessionNetworkRestored | EventMessagePartDelta | EventPermissionAsked | EventPermissionReplied | EventBackgroundProcessUpdated | EventBackgroundProcessDeleted | EventSessionTurnOpen | EventSessionTurnClose | EventSessionDiff | EventSessionError | EventTodoUpdated | EventSessionStatus | EventSessionIdle | EventSuggestionShown | EventSuggestionAccepted | EventSuggestionDismissed | EventSessionCompacted | EventCommandExecuted | EventProjectUpdated | EventVcsBranchUpdated | EventKiloSessionsRemoteStatusChanged | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceStatus | EventWorktreeReady | EventWorktreeFailed | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventInstallationUpdated | EventInstallationUpdateAvailable;
|
|
5
5
|
export type OAuth = {
|
|
6
6
|
type: "oauth";
|
|
7
7
|
refresh: string;
|
|
@@ -65,6 +65,10 @@ export type IndexingStatus = {
|
|
|
65
65
|
totalFiles: number;
|
|
66
66
|
percent: number;
|
|
67
67
|
};
|
|
68
|
+
export type IndexingWarning = {
|
|
69
|
+
code: "qdrant.version-incompatible" | "qdrant.version-unavailable";
|
|
70
|
+
message: string;
|
|
71
|
+
};
|
|
68
72
|
export type QuestionOption = {
|
|
69
73
|
/**
|
|
70
74
|
* Display text (1-5 words, concise)
|
|
@@ -645,6 +649,16 @@ export type Session = {
|
|
|
645
649
|
files: number;
|
|
646
650
|
diffs?: Array<SnapshotSummaryFileDiff>;
|
|
647
651
|
};
|
|
652
|
+
cost?: number;
|
|
653
|
+
tokens?: {
|
|
654
|
+
input: number;
|
|
655
|
+
output: number;
|
|
656
|
+
reasoning: number;
|
|
657
|
+
cache: {
|
|
658
|
+
read: number;
|
|
659
|
+
write: number;
|
|
660
|
+
};
|
|
661
|
+
};
|
|
648
662
|
share?: {
|
|
649
663
|
url: string;
|
|
650
664
|
};
|
|
@@ -674,12 +688,13 @@ export type Prompt = {
|
|
|
674
688
|
text: string;
|
|
675
689
|
files?: Array<PromptFileAttachment>;
|
|
676
690
|
agents?: Array<PromptAgentAttachment>;
|
|
691
|
+
references?: Array<PromptReferenceAttachment>;
|
|
677
692
|
};
|
|
678
693
|
export type GlobalEvent = {
|
|
679
694
|
directory: string;
|
|
680
695
|
project?: string;
|
|
681
696
|
workspace?: string;
|
|
682
|
-
payload: EventServerConnected | EventGlobalDisposed | EventGlobalConfigUpdated | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventKilocodeAgentManagerStart | EventIndexingStatus | EventServerInstanceDisposed | EventFileEdited | EventFileWatcherUpdated | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventLspClientDiagnostics | EventLspUpdated | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventSessionNetworkAsked | EventSessionNetworkReplied | EventSessionNetworkRejected | EventSessionNetworkRestored | EventMessagePartDelta | EventPermissionAsked | EventPermissionReplied | EventBackgroundProcessUpdated | EventBackgroundProcessDeleted | EventSessionTurnOpen | EventSessionTurnClose | EventSessionDiff | EventSessionError |
|
|
697
|
+
payload: EventServerConnected | EventGlobalDisposed | EventGlobalConfigUpdated | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventKilocodeAgentManagerStart | EventIndexingStatus | EventIndexingWarning | EventServerInstanceDisposed | EventFileEdited | EventFileWatcherUpdated | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventLspClientDiagnostics | EventLspUpdated | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventSessionNetworkAsked | EventSessionNetworkReplied | EventSessionNetworkRejected | EventSessionNetworkRestored | EventMessagePartDelta | EventPermissionAsked | EventPermissionReplied | EventBackgroundProcessUpdated | EventBackgroundProcessDeleted | EventSessionTurnOpen | EventSessionTurnClose | EventSessionDiff | EventSessionError | EventTodoUpdated | EventSessionStatus | EventSessionIdle | EventSuggestionShown | EventSuggestionAccepted | EventSuggestionDismissed | EventSessionCompacted | EventCommandExecuted | EventProjectUpdated | EventVcsBranchUpdated | EventKiloSessionsRemoteStatusChanged | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceStatus | EventWorktreeReady | EventWorktreeFailed | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventInstallationUpdated | EventInstallationUpdateAvailable | SyncEventMessageUpdated | SyncEventMessageRemoved | SyncEventMessagePartUpdated | SyncEventMessagePartRemoved | SyncEventSessionCreated | SyncEventSessionUpdated | SyncEventSessionDeleted | SyncEventSessionNextAgentSwitched | SyncEventSessionNextModelSwitched | SyncEventSessionNextPrompted | SyncEventSessionNextSynthetic | SyncEventSessionNextShellStarted | SyncEventSessionNextShellEnded | SyncEventSessionNextStepStarted | SyncEventSessionNextStepEnded | SyncEventSessionNextStepFailed | SyncEventSessionNextTextStarted | SyncEventSessionNextTextDelta | SyncEventSessionNextTextEnded | SyncEventSessionNextReasoningStarted | SyncEventSessionNextReasoningDelta | SyncEventSessionNextReasoningEnded | SyncEventSessionNextToolInputStarted | SyncEventSessionNextToolInputDelta | SyncEventSessionNextToolInputEnded | SyncEventSessionNextToolCalled | SyncEventSessionNextToolProgress | SyncEventSessionNextToolSuccess | SyncEventSessionNextToolFailed | SyncEventSessionNextRetried | SyncEventSessionNextCompactionStarted | SyncEventSessionNextCompactionDelta | SyncEventSessionNextCompactionEnded;
|
|
683
698
|
};
|
|
684
699
|
/**
|
|
685
700
|
* Log level
|
|
@@ -781,7 +796,6 @@ export type PermissionConfig = PermissionActionConfig | {
|
|
|
781
796
|
question?: PermissionActionConfig;
|
|
782
797
|
webfetch?: PermissionActionConfig;
|
|
783
798
|
websearch?: PermissionActionConfig;
|
|
784
|
-
codesearch?: PermissionActionConfig;
|
|
785
799
|
repo_clone?: PermissionRuleConfig;
|
|
786
800
|
repo_overview?: PermissionRuleConfig;
|
|
787
801
|
lsp?: PermissionRuleConfig;
|
|
@@ -990,6 +1004,13 @@ export type Config = {
|
|
|
990
1004
|
remote_control?: boolean;
|
|
991
1005
|
auto_collapse_reasoning?: boolean;
|
|
992
1006
|
indexing?: IndexingConfig;
|
|
1007
|
+
console?: {
|
|
1008
|
+
/**
|
|
1009
|
+
* Width of the Kilo Console project context sidebar in pixels
|
|
1010
|
+
*/
|
|
1011
|
+
context_sidebar_width?: number;
|
|
1012
|
+
diff_style?: "unified" | "split";
|
|
1013
|
+
};
|
|
993
1014
|
terminal_command_display?: "expanded" | "collapsed";
|
|
994
1015
|
model?: string;
|
|
995
1016
|
small_model?: string;
|
|
@@ -1134,6 +1155,18 @@ export type Model = {
|
|
|
1134
1155
|
read: number;
|
|
1135
1156
|
write: number;
|
|
1136
1157
|
};
|
|
1158
|
+
tiers?: Array<{
|
|
1159
|
+
input: number;
|
|
1160
|
+
output: number;
|
|
1161
|
+
cache: {
|
|
1162
|
+
read: number;
|
|
1163
|
+
write: number;
|
|
1164
|
+
};
|
|
1165
|
+
tier: {
|
|
1166
|
+
type: "context";
|
|
1167
|
+
size: number;
|
|
1168
|
+
};
|
|
1169
|
+
}>;
|
|
1137
1170
|
experimentalOver200K?: {
|
|
1138
1171
|
input: number;
|
|
1139
1172
|
output: number;
|
|
@@ -1164,6 +1197,7 @@ export type Model = {
|
|
|
1164
1197
|
recommendedIndex?: number;
|
|
1165
1198
|
prompt?: "codex" | "gemini" | "beast" | "anthropic" | "trinity" | "anthropic_without_todo" | "ling" | "gpt55";
|
|
1166
1199
|
isFree?: boolean;
|
|
1200
|
+
mayTrainOnYourPrompts?: boolean;
|
|
1167
1201
|
terminalBench?: {
|
|
1168
1202
|
overallScore: number;
|
|
1169
1203
|
avgAttemptCostUsd: number;
|
|
@@ -1198,6 +1232,12 @@ export type ToolListItem = {
|
|
|
1198
1232
|
};
|
|
1199
1233
|
export type ToolList = Array<ToolListItem>;
|
|
1200
1234
|
export type ToolIds = Array<string>;
|
|
1235
|
+
export type WorktreeError = {
|
|
1236
|
+
name: "WorktreeNotGitError" | "WorktreeNameGenerationFailedError" | "WorktreeCreateFailedError" | "WorktreeStartCommandFailedError" | "WorktreeRemoveFailedError" | "WorktreeResetFailedError" | "WorktreeListFailedError";
|
|
1237
|
+
data: {
|
|
1238
|
+
message: string;
|
|
1239
|
+
};
|
|
1240
|
+
};
|
|
1201
1241
|
export type WorktreeCreateInput = {
|
|
1202
1242
|
name?: string;
|
|
1203
1243
|
/**
|
|
@@ -1207,7 +1247,7 @@ export type WorktreeCreateInput = {
|
|
|
1207
1247
|
};
|
|
1208
1248
|
export type Worktree = {
|
|
1209
1249
|
name: string;
|
|
1210
|
-
branch
|
|
1250
|
+
branch?: string;
|
|
1211
1251
|
directory: string;
|
|
1212
1252
|
};
|
|
1213
1253
|
export type WorktreeRemoveInput = {
|
|
@@ -1248,6 +1288,16 @@ export type GlobalSession = {
|
|
|
1248
1288
|
files: number;
|
|
1249
1289
|
diffs?: Array<SnapshotSummaryFileDiff>;
|
|
1250
1290
|
};
|
|
1291
|
+
cost?: number;
|
|
1292
|
+
tokens?: {
|
|
1293
|
+
input: number;
|
|
1294
|
+
output: number;
|
|
1295
|
+
reasoning: number;
|
|
1296
|
+
cache: {
|
|
1297
|
+
read: number;
|
|
1298
|
+
write: number;
|
|
1299
|
+
};
|
|
1300
|
+
};
|
|
1251
1301
|
share?: {
|
|
1252
1302
|
url: string;
|
|
1253
1303
|
};
|
|
@@ -1463,6 +1513,15 @@ export type ProviderAuthAuthorization = {
|
|
|
1463
1513
|
method: "auto" | "code";
|
|
1464
1514
|
instructions: string;
|
|
1465
1515
|
};
|
|
1516
|
+
export type ProviderAuthError1 = {
|
|
1517
|
+
name: "BadRequest" | "ProviderAuthOauthMissing" | "ProviderAuthOauthCodeMissing" | "ProviderAuthOauthCallbackFailed" | "ProviderAuthValidationFailed";
|
|
1518
|
+
data: {
|
|
1519
|
+
providerID?: string;
|
|
1520
|
+
field?: string;
|
|
1521
|
+
message?: string;
|
|
1522
|
+
kind?: string;
|
|
1523
|
+
};
|
|
1524
|
+
};
|
|
1466
1525
|
export type TextPartInput = {
|
|
1467
1526
|
id?: string;
|
|
1468
1527
|
type: "text";
|
|
@@ -1555,9 +1614,9 @@ export type Workspace = {
|
|
|
1555
1614
|
id: string;
|
|
1556
1615
|
type: string;
|
|
1557
1616
|
name: string;
|
|
1558
|
-
branch
|
|
1559
|
-
directory
|
|
1560
|
-
extra
|
|
1617
|
+
branch?: string | null;
|
|
1618
|
+
directory?: string | null;
|
|
1619
|
+
extra?: unknown | null;
|
|
1561
1620
|
projectID: string;
|
|
1562
1621
|
timeUsed: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
1563
1622
|
};
|
|
@@ -1703,6 +1762,19 @@ export type TuiKeybindInfo = {
|
|
|
1703
1762
|
export type TuiKeybindListResponse = {
|
|
1704
1763
|
keybinds: Array<TuiKeybindInfo>;
|
|
1705
1764
|
};
|
|
1765
|
+
export type KiloEmbeddingModelCatalog = {
|
|
1766
|
+
defaultModel: string;
|
|
1767
|
+
models: Array<{
|
|
1768
|
+
id: string;
|
|
1769
|
+
name: string;
|
|
1770
|
+
dimension: number;
|
|
1771
|
+
scoreThreshold: number;
|
|
1772
|
+
note?: string;
|
|
1773
|
+
}>;
|
|
1774
|
+
aliases: {
|
|
1775
|
+
[key: string]: string;
|
|
1776
|
+
};
|
|
1777
|
+
};
|
|
1706
1778
|
export type EffectHttpApiErrorUnauthorized = {
|
|
1707
1779
|
_tag: "Unauthorized";
|
|
1708
1780
|
};
|
|
@@ -1793,6 +1865,16 @@ export type SyncEventSessionUpdated = {
|
|
|
1793
1865
|
files: number;
|
|
1794
1866
|
diffs?: Array<SnapshotSummaryFileDiff>;
|
|
1795
1867
|
} | null;
|
|
1868
|
+
cost?: number | null;
|
|
1869
|
+
tokens?: {
|
|
1870
|
+
input: number;
|
|
1871
|
+
output: number;
|
|
1872
|
+
reasoning: number;
|
|
1873
|
+
cache: {
|
|
1874
|
+
read: number;
|
|
1875
|
+
write: number;
|
|
1876
|
+
};
|
|
1877
|
+
} | null;
|
|
1796
1878
|
share?: {
|
|
1797
1879
|
url?: string | null;
|
|
1798
1880
|
};
|
|
@@ -2246,6 +2328,11 @@ export type EventIndexingStatus = {
|
|
|
2246
2328
|
status: IndexingStatus;
|
|
2247
2329
|
};
|
|
2248
2330
|
};
|
|
2331
|
+
export type EventIndexingWarning = {
|
|
2332
|
+
id: string;
|
|
2333
|
+
type: "indexing.warning";
|
|
2334
|
+
properties: IndexingWarning;
|
|
2335
|
+
};
|
|
2249
2336
|
export type EventServerInstanceDisposed = {
|
|
2250
2337
|
id: string;
|
|
2251
2338
|
type: "server.instance.disposed";
|
|
@@ -2414,20 +2501,6 @@ export type EventSessionError = {
|
|
|
2414
2501
|
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | StructuredOutputError | ContextOverflowError | ApiError;
|
|
2415
2502
|
};
|
|
2416
2503
|
};
|
|
2417
|
-
export type EventInstallationUpdated = {
|
|
2418
|
-
id: string;
|
|
2419
|
-
type: "installation.updated";
|
|
2420
|
-
properties: {
|
|
2421
|
-
version: string;
|
|
2422
|
-
};
|
|
2423
|
-
};
|
|
2424
|
-
export type EventInstallationUpdateAvailable = {
|
|
2425
|
-
id: string;
|
|
2426
|
-
type: "installation.update-available";
|
|
2427
|
-
properties: {
|
|
2428
|
-
version: string;
|
|
2429
|
-
};
|
|
2430
|
-
};
|
|
2431
2504
|
export type EventTodoUpdated = {
|
|
2432
2505
|
id: string;
|
|
2433
2506
|
type: "todo.updated";
|
|
@@ -2548,7 +2621,7 @@ export type EventWorktreeReady = {
|
|
|
2548
2621
|
type: "worktree.ready";
|
|
2549
2622
|
properties: {
|
|
2550
2623
|
name: string;
|
|
2551
|
-
branch
|
|
2624
|
+
branch?: string;
|
|
2552
2625
|
};
|
|
2553
2626
|
};
|
|
2554
2627
|
export type EventWorktreeFailed = {
|
|
@@ -2587,84 +2660,18 @@ export type EventPtyDeleted = {
|
|
|
2587
2660
|
id: string;
|
|
2588
2661
|
};
|
|
2589
2662
|
};
|
|
2590
|
-
export type
|
|
2591
|
-
id: string;
|
|
2592
|
-
type: "message.updated";
|
|
2593
|
-
properties: {
|
|
2594
|
-
sessionID: string;
|
|
2595
|
-
info: Message;
|
|
2596
|
-
};
|
|
2597
|
-
};
|
|
2598
|
-
export type EventMessageRemoved = {
|
|
2599
|
-
id: string;
|
|
2600
|
-
type: "message.removed";
|
|
2601
|
-
properties: {
|
|
2602
|
-
sessionID: string;
|
|
2603
|
-
messageID: string;
|
|
2604
|
-
};
|
|
2605
|
-
};
|
|
2606
|
-
export type EventMessagePartUpdated = {
|
|
2607
|
-
id: string;
|
|
2608
|
-
type: "message.part.updated";
|
|
2609
|
-
properties: {
|
|
2610
|
-
sessionID: string;
|
|
2611
|
-
part: Part;
|
|
2612
|
-
time: number;
|
|
2613
|
-
};
|
|
2614
|
-
};
|
|
2615
|
-
export type EventMessagePartRemoved = {
|
|
2616
|
-
id: string;
|
|
2617
|
-
type: "message.part.removed";
|
|
2618
|
-
properties: {
|
|
2619
|
-
sessionID: string;
|
|
2620
|
-
messageID: string;
|
|
2621
|
-
partID: string;
|
|
2622
|
-
};
|
|
2623
|
-
};
|
|
2624
|
-
export type EventSessionCreated = {
|
|
2625
|
-
id: string;
|
|
2626
|
-
type: "session.created";
|
|
2627
|
-
properties: {
|
|
2628
|
-
sessionID: string;
|
|
2629
|
-
info: Session;
|
|
2630
|
-
};
|
|
2631
|
-
};
|
|
2632
|
-
export type EventSessionUpdated = {
|
|
2633
|
-
id: string;
|
|
2634
|
-
type: "session.updated";
|
|
2635
|
-
properties: {
|
|
2636
|
-
sessionID: string;
|
|
2637
|
-
info: Session;
|
|
2638
|
-
};
|
|
2639
|
-
};
|
|
2640
|
-
export type EventSessionDeleted = {
|
|
2641
|
-
id: string;
|
|
2642
|
-
type: "session.deleted";
|
|
2643
|
-
properties: {
|
|
2644
|
-
sessionID: string;
|
|
2645
|
-
info: Session;
|
|
2646
|
-
};
|
|
2647
|
-
};
|
|
2648
|
-
export type EventSessionNextAgentSwitched = {
|
|
2663
|
+
export type EventInstallationUpdated = {
|
|
2649
2664
|
id: string;
|
|
2650
|
-
type: "
|
|
2665
|
+
type: "installation.updated";
|
|
2651
2666
|
properties: {
|
|
2652
|
-
|
|
2653
|
-
sessionID: string;
|
|
2654
|
-
agent: string;
|
|
2667
|
+
version: string;
|
|
2655
2668
|
};
|
|
2656
2669
|
};
|
|
2657
|
-
export type
|
|
2670
|
+
export type EventInstallationUpdateAvailable = {
|
|
2658
2671
|
id: string;
|
|
2659
|
-
type: "
|
|
2672
|
+
type: "installation.update-available";
|
|
2660
2673
|
properties: {
|
|
2661
|
-
|
|
2662
|
-
sessionID: string;
|
|
2663
|
-
model: {
|
|
2664
|
-
id: string;
|
|
2665
|
-
providerID: string;
|
|
2666
|
-
variant: string;
|
|
2667
|
-
};
|
|
2674
|
+
version: string;
|
|
2668
2675
|
};
|
|
2669
2676
|
};
|
|
2670
2677
|
export type PromptSource = {
|
|
@@ -2683,253 +2690,30 @@ export type PromptAgentAttachment = {
|
|
|
2683
2690
|
name: string;
|
|
2684
2691
|
source?: PromptSource;
|
|
2685
2692
|
};
|
|
2686
|
-
export type
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
id: string;
|
|
2697
|
-
type: "session.next.synthetic";
|
|
2698
|
-
properties: {
|
|
2699
|
-
timestamp: number;
|
|
2700
|
-
sessionID: string;
|
|
2701
|
-
text: string;
|
|
2702
|
-
};
|
|
2703
|
-
};
|
|
2704
|
-
export type EventSessionNextShellStarted = {
|
|
2705
|
-
id: string;
|
|
2706
|
-
type: "session.next.shell.started";
|
|
2707
|
-
properties: {
|
|
2708
|
-
timestamp: number;
|
|
2709
|
-
sessionID: string;
|
|
2710
|
-
callID: string;
|
|
2711
|
-
command: string;
|
|
2712
|
-
};
|
|
2713
|
-
};
|
|
2714
|
-
export type EventSessionNextShellEnded = {
|
|
2715
|
-
id: string;
|
|
2716
|
-
type: "session.next.shell.ended";
|
|
2717
|
-
properties: {
|
|
2718
|
-
timestamp: number;
|
|
2719
|
-
sessionID: string;
|
|
2720
|
-
callID: string;
|
|
2721
|
-
output: string;
|
|
2722
|
-
};
|
|
2723
|
-
};
|
|
2724
|
-
export type EventSessionNextStepStarted = {
|
|
2725
|
-
id: string;
|
|
2726
|
-
type: "session.next.step.started";
|
|
2727
|
-
properties: {
|
|
2728
|
-
timestamp: number;
|
|
2729
|
-
sessionID: string;
|
|
2730
|
-
agent: string;
|
|
2731
|
-
model: {
|
|
2732
|
-
id: string;
|
|
2733
|
-
providerID: string;
|
|
2734
|
-
variant: string;
|
|
2735
|
-
};
|
|
2736
|
-
snapshot?: string;
|
|
2737
|
-
};
|
|
2738
|
-
};
|
|
2739
|
-
export type EventSessionNextStepEnded = {
|
|
2740
|
-
id: string;
|
|
2741
|
-
type: "session.next.step.ended";
|
|
2742
|
-
properties: {
|
|
2743
|
-
timestamp: number;
|
|
2744
|
-
sessionID: string;
|
|
2745
|
-
finish: string;
|
|
2746
|
-
cost: number;
|
|
2747
|
-
tokens: {
|
|
2748
|
-
input: number;
|
|
2749
|
-
output: number;
|
|
2750
|
-
reasoning: number;
|
|
2751
|
-
cache: {
|
|
2752
|
-
read: number;
|
|
2753
|
-
write: number;
|
|
2754
|
-
};
|
|
2755
|
-
};
|
|
2756
|
-
snapshot?: string;
|
|
2757
|
-
};
|
|
2758
|
-
};
|
|
2759
|
-
export type SessionErrorUnknown = {
|
|
2760
|
-
type: "unknown";
|
|
2761
|
-
message: string;
|
|
2762
|
-
};
|
|
2763
|
-
export type EventSessionNextStepFailed = {
|
|
2764
|
-
id: string;
|
|
2765
|
-
type: "session.next.step.failed";
|
|
2766
|
-
properties: {
|
|
2767
|
-
timestamp: number;
|
|
2768
|
-
sessionID: string;
|
|
2769
|
-
error: SessionErrorUnknown;
|
|
2770
|
-
};
|
|
2771
|
-
};
|
|
2772
|
-
export type EventSessionNextTextStarted = {
|
|
2773
|
-
id: string;
|
|
2774
|
-
type: "session.next.text.started";
|
|
2775
|
-
properties: {
|
|
2776
|
-
timestamp: number;
|
|
2777
|
-
sessionID: string;
|
|
2778
|
-
};
|
|
2779
|
-
};
|
|
2780
|
-
export type EventSessionNextTextDelta = {
|
|
2781
|
-
id: string;
|
|
2782
|
-
type: "session.next.text.delta";
|
|
2783
|
-
properties: {
|
|
2784
|
-
timestamp: number;
|
|
2785
|
-
sessionID: string;
|
|
2786
|
-
delta: string;
|
|
2787
|
-
};
|
|
2788
|
-
};
|
|
2789
|
-
export type EventSessionNextTextEnded = {
|
|
2790
|
-
id: string;
|
|
2791
|
-
type: "session.next.text.ended";
|
|
2792
|
-
properties: {
|
|
2793
|
-
timestamp: number;
|
|
2794
|
-
sessionID: string;
|
|
2795
|
-
text: string;
|
|
2796
|
-
};
|
|
2797
|
-
};
|
|
2798
|
-
export type EventSessionNextReasoningStarted = {
|
|
2799
|
-
id: string;
|
|
2800
|
-
type: "session.next.reasoning.started";
|
|
2801
|
-
properties: {
|
|
2802
|
-
timestamp: number;
|
|
2803
|
-
sessionID: string;
|
|
2804
|
-
reasoningID: string;
|
|
2805
|
-
};
|
|
2806
|
-
};
|
|
2807
|
-
export type EventSessionNextReasoningDelta = {
|
|
2808
|
-
id: string;
|
|
2809
|
-
type: "session.next.reasoning.delta";
|
|
2810
|
-
properties: {
|
|
2811
|
-
timestamp: number;
|
|
2812
|
-
sessionID: string;
|
|
2813
|
-
reasoningID: string;
|
|
2814
|
-
delta: string;
|
|
2815
|
-
};
|
|
2816
|
-
};
|
|
2817
|
-
export type EventSessionNextReasoningEnded = {
|
|
2818
|
-
id: string;
|
|
2819
|
-
type: "session.next.reasoning.ended";
|
|
2820
|
-
properties: {
|
|
2821
|
-
timestamp: number;
|
|
2822
|
-
sessionID: string;
|
|
2823
|
-
reasoningID: string;
|
|
2824
|
-
text: string;
|
|
2825
|
-
};
|
|
2826
|
-
};
|
|
2827
|
-
export type EventSessionNextToolInputStarted = {
|
|
2828
|
-
id: string;
|
|
2829
|
-
type: "session.next.tool.input.started";
|
|
2830
|
-
properties: {
|
|
2831
|
-
timestamp: number;
|
|
2832
|
-
sessionID: string;
|
|
2833
|
-
callID: string;
|
|
2834
|
-
name: string;
|
|
2835
|
-
};
|
|
2836
|
-
};
|
|
2837
|
-
export type EventSessionNextToolInputDelta = {
|
|
2838
|
-
id: string;
|
|
2839
|
-
type: "session.next.tool.input.delta";
|
|
2840
|
-
properties: {
|
|
2841
|
-
timestamp: number;
|
|
2842
|
-
sessionID: string;
|
|
2843
|
-
callID: string;
|
|
2844
|
-
delta: string;
|
|
2845
|
-
};
|
|
2846
|
-
};
|
|
2847
|
-
export type EventSessionNextToolInputEnded = {
|
|
2848
|
-
id: string;
|
|
2849
|
-
type: "session.next.tool.input.ended";
|
|
2850
|
-
properties: {
|
|
2851
|
-
timestamp: number;
|
|
2852
|
-
sessionID: string;
|
|
2853
|
-
callID: string;
|
|
2854
|
-
text: string;
|
|
2855
|
-
};
|
|
2856
|
-
};
|
|
2857
|
-
export type EventSessionNextToolCalled = {
|
|
2858
|
-
id: string;
|
|
2859
|
-
type: "session.next.tool.called";
|
|
2860
|
-
properties: {
|
|
2861
|
-
timestamp: number;
|
|
2862
|
-
sessionID: string;
|
|
2863
|
-
callID: string;
|
|
2864
|
-
tool: string;
|
|
2865
|
-
input: {
|
|
2866
|
-
[key: string]: unknown;
|
|
2867
|
-
};
|
|
2868
|
-
provider: {
|
|
2869
|
-
executed: boolean;
|
|
2870
|
-
metadata?: {
|
|
2871
|
-
[key: string]: unknown;
|
|
2872
|
-
};
|
|
2873
|
-
};
|
|
2874
|
-
};
|
|
2875
|
-
};
|
|
2876
|
-
export type ToolTextContent = {
|
|
2877
|
-
type: "text";
|
|
2878
|
-
text: string;
|
|
2879
|
-
};
|
|
2880
|
-
export type ToolFileContent = {
|
|
2881
|
-
type: "file";
|
|
2882
|
-
uri: string;
|
|
2883
|
-
mime: string;
|
|
2884
|
-
name?: string;
|
|
2885
|
-
};
|
|
2886
|
-
export type EventSessionNextToolProgress = {
|
|
2887
|
-
id: string;
|
|
2888
|
-
type: "session.next.tool.progress";
|
|
2889
|
-
properties: {
|
|
2890
|
-
timestamp: number;
|
|
2891
|
-
sessionID: string;
|
|
2892
|
-
callID: string;
|
|
2893
|
-
structured: {
|
|
2894
|
-
[key: string]: unknown;
|
|
2895
|
-
};
|
|
2896
|
-
content: Array<ToolTextContent | ToolFileContent>;
|
|
2897
|
-
};
|
|
2693
|
+
export type PromptReferenceAttachment = {
|
|
2694
|
+
name: string;
|
|
2695
|
+
kind: "local" | "git" | "invalid";
|
|
2696
|
+
uri?: string;
|
|
2697
|
+
repository?: string;
|
|
2698
|
+
branch?: string;
|
|
2699
|
+
target?: string;
|
|
2700
|
+
targetUri?: string;
|
|
2701
|
+
problem?: string;
|
|
2702
|
+
source?: PromptSource;
|
|
2898
2703
|
};
|
|
2899
|
-
export type
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
properties: {
|
|
2903
|
-
timestamp: number;
|
|
2904
|
-
sessionID: string;
|
|
2905
|
-
callID: string;
|
|
2906
|
-
structured: {
|
|
2907
|
-
[key: string]: unknown;
|
|
2908
|
-
};
|
|
2909
|
-
content: Array<ToolTextContent | ToolFileContent>;
|
|
2910
|
-
provider: {
|
|
2911
|
-
executed: boolean;
|
|
2912
|
-
metadata?: {
|
|
2913
|
-
[key: string]: unknown;
|
|
2914
|
-
};
|
|
2915
|
-
};
|
|
2916
|
-
};
|
|
2704
|
+
export type SessionErrorUnknown = {
|
|
2705
|
+
type: "unknown";
|
|
2706
|
+
message: string;
|
|
2917
2707
|
};
|
|
2918
|
-
export type
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
executed: boolean;
|
|
2928
|
-
metadata?: {
|
|
2929
|
-
[key: string]: unknown;
|
|
2930
|
-
};
|
|
2931
|
-
};
|
|
2932
|
-
};
|
|
2708
|
+
export type ToolTextContent = {
|
|
2709
|
+
type: "text";
|
|
2710
|
+
text: string;
|
|
2711
|
+
};
|
|
2712
|
+
export type ToolFileContent = {
|
|
2713
|
+
type: "file";
|
|
2714
|
+
uri: string;
|
|
2715
|
+
mime: string;
|
|
2716
|
+
name?: string;
|
|
2933
2717
|
};
|
|
2934
2718
|
export type SessionNextRetryError = {
|
|
2935
2719
|
message: string;
|
|
@@ -2943,44 +2727,6 @@ export type SessionNextRetryError = {
|
|
|
2943
2727
|
[key: string]: string;
|
|
2944
2728
|
};
|
|
2945
2729
|
};
|
|
2946
|
-
export type EventSessionNextRetried = {
|
|
2947
|
-
id: string;
|
|
2948
|
-
type: "session.next.retried";
|
|
2949
|
-
properties: {
|
|
2950
|
-
timestamp: number;
|
|
2951
|
-
sessionID: string;
|
|
2952
|
-
attempt: number;
|
|
2953
|
-
error: SessionNextRetryError;
|
|
2954
|
-
};
|
|
2955
|
-
};
|
|
2956
|
-
export type EventSessionNextCompactionStarted = {
|
|
2957
|
-
id: string;
|
|
2958
|
-
type: "session.next.compaction.started";
|
|
2959
|
-
properties: {
|
|
2960
|
-
timestamp: number;
|
|
2961
|
-
sessionID: string;
|
|
2962
|
-
reason: "auto" | "manual";
|
|
2963
|
-
};
|
|
2964
|
-
};
|
|
2965
|
-
export type EventSessionNextCompactionDelta = {
|
|
2966
|
-
id: string;
|
|
2967
|
-
type: "session.next.compaction.delta";
|
|
2968
|
-
properties: {
|
|
2969
|
-
timestamp: number;
|
|
2970
|
-
sessionID: string;
|
|
2971
|
-
text: string;
|
|
2972
|
-
};
|
|
2973
|
-
};
|
|
2974
|
-
export type EventSessionNextCompactionEnded = {
|
|
2975
|
-
id: string;
|
|
2976
|
-
type: "session.next.compaction.ended";
|
|
2977
|
-
properties: {
|
|
2978
|
-
timestamp: number;
|
|
2979
|
-
sessionID: string;
|
|
2980
|
-
text: string;
|
|
2981
|
-
include?: string;
|
|
2982
|
-
};
|
|
2983
|
-
};
|
|
2984
2730
|
export type SessionInfo = {
|
|
2985
2731
|
id: string;
|
|
2986
2732
|
parentID?: string;
|
|
@@ -2993,6 +2739,16 @@ export type SessionInfo = {
|
|
|
2993
2739
|
providerID: string;
|
|
2994
2740
|
variant: string;
|
|
2995
2741
|
};
|
|
2742
|
+
cost: number;
|
|
2743
|
+
tokens: {
|
|
2744
|
+
input: number;
|
|
2745
|
+
output: number;
|
|
2746
|
+
reasoning: number;
|
|
2747
|
+
cache: {
|
|
2748
|
+
read: number;
|
|
2749
|
+
write: number;
|
|
2750
|
+
};
|
|
2751
|
+
};
|
|
2996
2752
|
time: {
|
|
2997
2753
|
created: number;
|
|
2998
2754
|
updated: number;
|
|
@@ -3038,6 +2794,7 @@ export type SessionMessageUser = {
|
|
|
3038
2794
|
text: string;
|
|
3039
2795
|
files?: Array<PromptFileAttachment>;
|
|
3040
2796
|
agents?: Array<PromptAgentAttachment>;
|
|
2797
|
+
references?: Array<PromptReferenceAttachment>;
|
|
3041
2798
|
type: "user";
|
|
3042
2799
|
};
|
|
3043
2800
|
export type SessionMessageSynthetic = {
|
|
@@ -3177,6 +2934,151 @@ export type SessionMessageCompaction = {
|
|
|
3177
2934
|
};
|
|
3178
2935
|
};
|
|
3179
2936
|
export type SessionMessage = SessionMessageAgentSwitched | SessionMessageModelSwitched | SessionMessageUser | SessionMessageSynthetic | SessionMessageShell | SessionMessageAssistant | SessionMessageCompaction;
|
|
2937
|
+
export type ModelV2Info = {
|
|
2938
|
+
id: string;
|
|
2939
|
+
apiID: string;
|
|
2940
|
+
providerID: string;
|
|
2941
|
+
family?: string;
|
|
2942
|
+
name: string;
|
|
2943
|
+
endpoint: {
|
|
2944
|
+
type: "unknown";
|
|
2945
|
+
} | {
|
|
2946
|
+
type: "openai/responses";
|
|
2947
|
+
url: string;
|
|
2948
|
+
websocket?: boolean;
|
|
2949
|
+
} | {
|
|
2950
|
+
type: "openai/completions";
|
|
2951
|
+
url: string;
|
|
2952
|
+
reasoning?: {
|
|
2953
|
+
type: "reasoning_content";
|
|
2954
|
+
} | {
|
|
2955
|
+
type: "reasoning_details";
|
|
2956
|
+
};
|
|
2957
|
+
} | {
|
|
2958
|
+
type: "anthropic/messages";
|
|
2959
|
+
url: string;
|
|
2960
|
+
} | {
|
|
2961
|
+
type: "aisdk";
|
|
2962
|
+
package: string;
|
|
2963
|
+
url?: string;
|
|
2964
|
+
};
|
|
2965
|
+
capabilities: {
|
|
2966
|
+
tools: boolean;
|
|
2967
|
+
input: Array<string>;
|
|
2968
|
+
output: Array<string>;
|
|
2969
|
+
};
|
|
2970
|
+
options: {
|
|
2971
|
+
headers: {
|
|
2972
|
+
[key: string]: string;
|
|
2973
|
+
};
|
|
2974
|
+
body: {
|
|
2975
|
+
[key: string]: unknown;
|
|
2976
|
+
};
|
|
2977
|
+
aisdk: {
|
|
2978
|
+
provider: {
|
|
2979
|
+
[key: string]: unknown;
|
|
2980
|
+
};
|
|
2981
|
+
request: {
|
|
2982
|
+
[key: string]: unknown;
|
|
2983
|
+
};
|
|
2984
|
+
};
|
|
2985
|
+
variant?: string;
|
|
2986
|
+
};
|
|
2987
|
+
variants: Array<{
|
|
2988
|
+
id: string;
|
|
2989
|
+
headers: {
|
|
2990
|
+
[key: string]: string;
|
|
2991
|
+
};
|
|
2992
|
+
body: {
|
|
2993
|
+
[key: string]: unknown;
|
|
2994
|
+
};
|
|
2995
|
+
aisdk: {
|
|
2996
|
+
provider: {
|
|
2997
|
+
[key: string]: unknown;
|
|
2998
|
+
};
|
|
2999
|
+
request: {
|
|
3000
|
+
[key: string]: unknown;
|
|
3001
|
+
};
|
|
3002
|
+
};
|
|
3003
|
+
}>;
|
|
3004
|
+
time: {
|
|
3005
|
+
released: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
3006
|
+
};
|
|
3007
|
+
cost: Array<{
|
|
3008
|
+
tier?: {
|
|
3009
|
+
type: "context";
|
|
3010
|
+
size: number;
|
|
3011
|
+
};
|
|
3012
|
+
input: number;
|
|
3013
|
+
output: number;
|
|
3014
|
+
cache: {
|
|
3015
|
+
read: number;
|
|
3016
|
+
write: number;
|
|
3017
|
+
};
|
|
3018
|
+
}>;
|
|
3019
|
+
status: "alpha" | "beta" | "deprecated" | "active";
|
|
3020
|
+
enabled: boolean;
|
|
3021
|
+
limit: {
|
|
3022
|
+
context: number;
|
|
3023
|
+
input?: number;
|
|
3024
|
+
output: number;
|
|
3025
|
+
};
|
|
3026
|
+
};
|
|
3027
|
+
export type ProviderV2Info = {
|
|
3028
|
+
id: string;
|
|
3029
|
+
name: string;
|
|
3030
|
+
enabled: false | {
|
|
3031
|
+
via: "env";
|
|
3032
|
+
name: string;
|
|
3033
|
+
} | {
|
|
3034
|
+
via: "auth";
|
|
3035
|
+
service: string;
|
|
3036
|
+
} | {
|
|
3037
|
+
via: "custom";
|
|
3038
|
+
data: {
|
|
3039
|
+
[key: string]: unknown;
|
|
3040
|
+
};
|
|
3041
|
+
};
|
|
3042
|
+
env: Array<string>;
|
|
3043
|
+
endpoint: {
|
|
3044
|
+
type: "unknown";
|
|
3045
|
+
} | {
|
|
3046
|
+
type: "openai/responses";
|
|
3047
|
+
url: string;
|
|
3048
|
+
websocket?: boolean;
|
|
3049
|
+
} | {
|
|
3050
|
+
type: "openai/completions";
|
|
3051
|
+
url: string;
|
|
3052
|
+
reasoning?: {
|
|
3053
|
+
type: "reasoning_content";
|
|
3054
|
+
} | {
|
|
3055
|
+
type: "reasoning_details";
|
|
3056
|
+
};
|
|
3057
|
+
} | {
|
|
3058
|
+
type: "anthropic/messages";
|
|
3059
|
+
url: string;
|
|
3060
|
+
} | {
|
|
3061
|
+
type: "aisdk";
|
|
3062
|
+
package: string;
|
|
3063
|
+
url?: string;
|
|
3064
|
+
};
|
|
3065
|
+
options: {
|
|
3066
|
+
headers: {
|
|
3067
|
+
[key: string]: string;
|
|
3068
|
+
};
|
|
3069
|
+
body: {
|
|
3070
|
+
[key: string]: unknown;
|
|
3071
|
+
};
|
|
3072
|
+
aisdk: {
|
|
3073
|
+
provider: {
|
|
3074
|
+
[key: string]: unknown;
|
|
3075
|
+
};
|
|
3076
|
+
request: {
|
|
3077
|
+
[key: string]: unknown;
|
|
3078
|
+
};
|
|
3079
|
+
};
|
|
3080
|
+
};
|
|
3081
|
+
};
|
|
3180
3082
|
export type EventTuiToastShow1 = {
|
|
3181
3083
|
id: string;
|
|
3182
3084
|
type: "tui.toast.show";
|
|
@@ -3609,9 +3511,9 @@ export type WorktreeRemoveData = {
|
|
|
3609
3511
|
};
|
|
3610
3512
|
export type WorktreeRemoveErrors = {
|
|
3611
3513
|
/**
|
|
3612
|
-
*
|
|
3514
|
+
* WorktreeError
|
|
3613
3515
|
*/
|
|
3614
|
-
400:
|
|
3516
|
+
400: WorktreeError;
|
|
3615
3517
|
};
|
|
3616
3518
|
export type WorktreeRemoveError = WorktreeRemoveErrors[keyof WorktreeRemoveErrors];
|
|
3617
3519
|
export type WorktreeRemoveResponses = {
|
|
@@ -3630,6 +3532,13 @@ export type WorktreeListData = {
|
|
|
3630
3532
|
};
|
|
3631
3533
|
url: "/experimental/worktree";
|
|
3632
3534
|
};
|
|
3535
|
+
export type WorktreeListErrors = {
|
|
3536
|
+
/**
|
|
3537
|
+
* WorktreeError
|
|
3538
|
+
*/
|
|
3539
|
+
400: WorktreeError;
|
|
3540
|
+
};
|
|
3541
|
+
export type WorktreeListError = WorktreeListErrors[keyof WorktreeListErrors];
|
|
3633
3542
|
export type WorktreeListResponses = {
|
|
3634
3543
|
/**
|
|
3635
3544
|
* List of worktree directories
|
|
@@ -3648,9 +3557,9 @@ export type WorktreeCreateData = {
|
|
|
3648
3557
|
};
|
|
3649
3558
|
export type WorktreeCreateErrors = {
|
|
3650
3559
|
/**
|
|
3651
|
-
*
|
|
3560
|
+
* WorktreeError
|
|
3652
3561
|
*/
|
|
3653
|
-
400:
|
|
3562
|
+
400: WorktreeError;
|
|
3654
3563
|
};
|
|
3655
3564
|
export type WorktreeCreateError = WorktreeCreateErrors[keyof WorktreeCreateErrors];
|
|
3656
3565
|
export type WorktreeCreateResponses = {
|
|
@@ -3671,9 +3580,9 @@ export type WorktreeResetData = {
|
|
|
3671
3580
|
};
|
|
3672
3581
|
export type WorktreeResetErrors = {
|
|
3673
3582
|
/**
|
|
3674
|
-
*
|
|
3583
|
+
* WorktreeError
|
|
3675
3584
|
*/
|
|
3676
|
-
400:
|
|
3585
|
+
400: WorktreeError;
|
|
3677
3586
|
};
|
|
3678
3587
|
export type WorktreeResetError = WorktreeResetErrors[keyof WorktreeResetErrors];
|
|
3679
3588
|
export type WorktreeResetResponses = {
|
|
@@ -4847,9 +4756,9 @@ export type ProviderOauthAuthorizeData = {
|
|
|
4847
4756
|
};
|
|
4848
4757
|
export type ProviderOauthAuthorizeErrors = {
|
|
4849
4758
|
/**
|
|
4850
|
-
*
|
|
4759
|
+
* ProviderAuthError
|
|
4851
4760
|
*/
|
|
4852
|
-
400:
|
|
4761
|
+
400: ProviderAuthError1;
|
|
4853
4762
|
};
|
|
4854
4763
|
export type ProviderOauthAuthorizeError = ProviderOauthAuthorizeErrors[keyof ProviderOauthAuthorizeErrors];
|
|
4855
4764
|
export type ProviderOauthAuthorizeResponses = {
|
|
@@ -4878,9 +4787,9 @@ export type ProviderOauthCallbackData = {
|
|
|
4878
4787
|
};
|
|
4879
4788
|
export type ProviderOauthCallbackErrors = {
|
|
4880
4789
|
/**
|
|
4881
|
-
*
|
|
4790
|
+
* ProviderAuthError
|
|
4882
4791
|
*/
|
|
4883
|
-
400:
|
|
4792
|
+
400: ProviderAuthError1;
|
|
4884
4793
|
};
|
|
4885
4794
|
export type ProviderOauthCallbackError = ProviderOauthCallbackErrors[keyof ProviderOauthCallbackErrors];
|
|
4886
4795
|
export type ProviderOauthCallbackResponses = {
|
|
@@ -5082,7 +4991,7 @@ export type SessionChildrenErrors = {
|
|
|
5082
4991
|
*/
|
|
5083
4992
|
400: BadRequestError;
|
|
5084
4993
|
/**
|
|
5085
|
-
*
|
|
4994
|
+
* NotFoundError
|
|
5086
4995
|
*/
|
|
5087
4996
|
404: NotFoundError;
|
|
5088
4997
|
};
|
|
@@ -5111,7 +5020,7 @@ export type SessionTodoErrors = {
|
|
|
5111
5020
|
*/
|
|
5112
5021
|
400: BadRequestError;
|
|
5113
5022
|
/**
|
|
5114
|
-
*
|
|
5023
|
+
* NotFoundError
|
|
5115
5024
|
*/
|
|
5116
5025
|
404: NotFoundError;
|
|
5117
5026
|
};
|
|
@@ -5215,7 +5124,7 @@ export type SessionPromptErrors = {
|
|
|
5215
5124
|
*/
|
|
5216
5125
|
400: BadRequestError;
|
|
5217
5126
|
/**
|
|
5218
|
-
*
|
|
5127
|
+
* NotFoundError
|
|
5219
5128
|
*/
|
|
5220
5129
|
404: NotFoundError;
|
|
5221
5130
|
};
|
|
@@ -5248,7 +5157,7 @@ export type SessionDeleteMessageErrors = {
|
|
|
5248
5157
|
*/
|
|
5249
5158
|
400: BadRequestError;
|
|
5250
5159
|
/**
|
|
5251
|
-
*
|
|
5160
|
+
* NotFoundError
|
|
5252
5161
|
*/
|
|
5253
5162
|
404: NotFoundError;
|
|
5254
5163
|
};
|
|
@@ -5340,10 +5249,6 @@ export type SessionAbortErrors = {
|
|
|
5340
5249
|
* Bad request
|
|
5341
5250
|
*/
|
|
5342
5251
|
400: BadRequestError;
|
|
5343
|
-
/**
|
|
5344
|
-
* Not found
|
|
5345
|
-
*/
|
|
5346
|
-
404: NotFoundError;
|
|
5347
5252
|
};
|
|
5348
5253
|
export type SessionAbortError = SessionAbortErrors[keyof SessionAbortErrors];
|
|
5349
5254
|
export type SessionAbortResponses = {
|
|
@@ -5374,7 +5279,7 @@ export type SessionInitErrors = {
|
|
|
5374
5279
|
*/
|
|
5375
5280
|
400: BadRequestError;
|
|
5376
5281
|
/**
|
|
5377
|
-
*
|
|
5282
|
+
* NotFoundError
|
|
5378
5283
|
*/
|
|
5379
5284
|
404: NotFoundError;
|
|
5380
5285
|
};
|
|
@@ -5516,7 +5421,7 @@ export type SessionPromptAsyncErrors = {
|
|
|
5516
5421
|
*/
|
|
5517
5422
|
400: BadRequestError;
|
|
5518
5423
|
/**
|
|
5519
|
-
*
|
|
5424
|
+
* NotFoundError
|
|
5520
5425
|
*/
|
|
5521
5426
|
404: NotFoundError;
|
|
5522
5427
|
};
|
|
@@ -5561,7 +5466,7 @@ export type SessionCommandErrors = {
|
|
|
5561
5466
|
*/
|
|
5562
5467
|
400: BadRequestError;
|
|
5563
5468
|
/**
|
|
5564
|
-
*
|
|
5469
|
+
* NotFoundError
|
|
5565
5470
|
*/
|
|
5566
5471
|
404: NotFoundError;
|
|
5567
5472
|
};
|
|
@@ -5601,7 +5506,7 @@ export type SessionShellErrors = {
|
|
|
5601
5506
|
*/
|
|
5602
5507
|
400: BadRequestError;
|
|
5603
5508
|
/**
|
|
5604
|
-
*
|
|
5509
|
+
* NotFoundError
|
|
5605
5510
|
*/
|
|
5606
5511
|
404: NotFoundError;
|
|
5607
5512
|
};
|
|
@@ -5636,7 +5541,7 @@ export type SessionRevertErrors = {
|
|
|
5636
5541
|
*/
|
|
5637
5542
|
400: BadRequestError;
|
|
5638
5543
|
/**
|
|
5639
|
-
*
|
|
5544
|
+
* NotFoundError
|
|
5640
5545
|
*/
|
|
5641
5546
|
404: NotFoundError;
|
|
5642
5547
|
};
|
|
@@ -5665,7 +5570,7 @@ export type SessionUnrevertErrors = {
|
|
|
5665
5570
|
*/
|
|
5666
5571
|
400: BadRequestError;
|
|
5667
5572
|
/**
|
|
5668
|
-
*
|
|
5573
|
+
* NotFoundError
|
|
5669
5574
|
*/
|
|
5670
5575
|
404: NotFoundError;
|
|
5671
5576
|
};
|
|
@@ -5697,7 +5602,7 @@ export type PermissionRespondErrors = {
|
|
|
5697
5602
|
*/
|
|
5698
5603
|
400: BadRequestError;
|
|
5699
5604
|
/**
|
|
5700
|
-
*
|
|
5605
|
+
* NotFoundError
|
|
5701
5606
|
*/
|
|
5702
5607
|
404: NotFoundError;
|
|
5703
5608
|
};
|
|
@@ -5728,7 +5633,7 @@ export type PartDeleteErrors = {
|
|
|
5728
5633
|
*/
|
|
5729
5634
|
400: BadRequestError;
|
|
5730
5635
|
/**
|
|
5731
|
-
*
|
|
5636
|
+
* NotFoundError
|
|
5732
5637
|
*/
|
|
5733
5638
|
404: NotFoundError;
|
|
5734
5639
|
};
|
|
@@ -5759,7 +5664,7 @@ export type PartUpdateErrors = {
|
|
|
5759
5664
|
*/
|
|
5760
5665
|
400: BadRequestError;
|
|
5761
5666
|
/**
|
|
5762
|
-
*
|
|
5667
|
+
* NotFoundError
|
|
5763
5668
|
*/
|
|
5764
5669
|
404: NotFoundError;
|
|
5765
5670
|
};
|
|
@@ -6041,6 +5946,69 @@ export type V2SessionMessagesResponses = {
|
|
|
6041
5946
|
200: V2SessionMessagesResponse;
|
|
6042
5947
|
};
|
|
6043
5948
|
export type V2SessionMessagesResponse2 = V2SessionMessagesResponses[keyof V2SessionMessagesResponses];
|
|
5949
|
+
export type V2ModelListData = {
|
|
5950
|
+
body?: never;
|
|
5951
|
+
path?: never;
|
|
5952
|
+
query?: {
|
|
5953
|
+
instance?: {
|
|
5954
|
+
directory?: string;
|
|
5955
|
+
workspace?: string;
|
|
5956
|
+
};
|
|
5957
|
+
};
|
|
5958
|
+
url: "/api/model";
|
|
5959
|
+
};
|
|
5960
|
+
export type V2ModelListResponses = {
|
|
5961
|
+
/**
|
|
5962
|
+
* Success
|
|
5963
|
+
*/
|
|
5964
|
+
200: Array<ModelV2Info>;
|
|
5965
|
+
};
|
|
5966
|
+
export type V2ModelListResponse = V2ModelListResponses[keyof V2ModelListResponses];
|
|
5967
|
+
export type V2ProviderListData = {
|
|
5968
|
+
body?: never;
|
|
5969
|
+
path?: never;
|
|
5970
|
+
query?: {
|
|
5971
|
+
instance?: {
|
|
5972
|
+
directory?: string;
|
|
5973
|
+
workspace?: string;
|
|
5974
|
+
};
|
|
5975
|
+
};
|
|
5976
|
+
url: "/api/provider";
|
|
5977
|
+
};
|
|
5978
|
+
export type V2ProviderListResponses = {
|
|
5979
|
+
/**
|
|
5980
|
+
* Success
|
|
5981
|
+
*/
|
|
5982
|
+
200: Array<ProviderV2Info>;
|
|
5983
|
+
};
|
|
5984
|
+
export type V2ProviderListResponse = V2ProviderListResponses[keyof V2ProviderListResponses];
|
|
5985
|
+
export type V2ProviderGetData = {
|
|
5986
|
+
body?: never;
|
|
5987
|
+
path: {
|
|
5988
|
+
providerID: string;
|
|
5989
|
+
};
|
|
5990
|
+
query?: {
|
|
5991
|
+
instance?: {
|
|
5992
|
+
directory?: string;
|
|
5993
|
+
workspace?: string;
|
|
5994
|
+
};
|
|
5995
|
+
};
|
|
5996
|
+
url: "/api/provider/{providerID}";
|
|
5997
|
+
};
|
|
5998
|
+
export type V2ProviderGetErrors = {
|
|
5999
|
+
/**
|
|
6000
|
+
* NotFoundError
|
|
6001
|
+
*/
|
|
6002
|
+
404: NotFoundError;
|
|
6003
|
+
};
|
|
6004
|
+
export type V2ProviderGetError = V2ProviderGetErrors[keyof V2ProviderGetErrors];
|
|
6005
|
+
export type V2ProviderGetResponses = {
|
|
6006
|
+
/**
|
|
6007
|
+
* ProviderV2.Info
|
|
6008
|
+
*/
|
|
6009
|
+
200: ProviderV2Info;
|
|
6010
|
+
};
|
|
6011
|
+
export type V2ProviderGetResponse = V2ProviderGetResponses[keyof V2ProviderGetResponses];
|
|
6044
6012
|
export type TuiAppendPromptData = {
|
|
6045
6013
|
body?: {
|
|
6046
6014
|
text: string;
|
|
@@ -6338,7 +6306,7 @@ export type ExperimentalWorkspaceCreateData = {
|
|
|
6338
6306
|
body?: {
|
|
6339
6307
|
id?: string;
|
|
6340
6308
|
type: string;
|
|
6341
|
-
branch
|
|
6309
|
+
branch?: string | null;
|
|
6342
6310
|
extra?: unknown | null;
|
|
6343
6311
|
};
|
|
6344
6312
|
path?: never;
|
|
@@ -6972,6 +6940,38 @@ export type IndexingStatusResponses = {
|
|
|
6972
6940
|
200: IndexingStatus;
|
|
6973
6941
|
};
|
|
6974
6942
|
export type IndexingStatusResponse = IndexingStatusResponses[keyof IndexingStatusResponses];
|
|
6943
|
+
export type IndexingWarningsData = {
|
|
6944
|
+
body?: never;
|
|
6945
|
+
path?: never;
|
|
6946
|
+
query?: {
|
|
6947
|
+
directory?: string;
|
|
6948
|
+
workspace?: string;
|
|
6949
|
+
};
|
|
6950
|
+
url: "/indexing/warnings";
|
|
6951
|
+
};
|
|
6952
|
+
export type IndexingWarningsResponses = {
|
|
6953
|
+
/**
|
|
6954
|
+
* Indexing warnings
|
|
6955
|
+
*/
|
|
6956
|
+
200: Array<IndexingWarning>;
|
|
6957
|
+
};
|
|
6958
|
+
export type IndexingWarningsResponse = IndexingWarningsResponses[keyof IndexingWarningsResponses];
|
|
6959
|
+
export type IndexingModelsData = {
|
|
6960
|
+
body?: never;
|
|
6961
|
+
path?: never;
|
|
6962
|
+
query?: {
|
|
6963
|
+
directory?: string;
|
|
6964
|
+
workspace?: string;
|
|
6965
|
+
};
|
|
6966
|
+
url: "/indexing/models";
|
|
6967
|
+
};
|
|
6968
|
+
export type IndexingModelsResponses = {
|
|
6969
|
+
/**
|
|
6970
|
+
* Kilo embedding model catalog
|
|
6971
|
+
*/
|
|
6972
|
+
200: KiloEmbeddingModelCatalog;
|
|
6973
|
+
};
|
|
6974
|
+
export type IndexingModelsResponse = IndexingModelsResponses[keyof IndexingModelsResponses];
|
|
6975
6975
|
export type KiloProfileData = {
|
|
6976
6976
|
body?: never;
|
|
6977
6977
|
path?: never;
|