@opencode-ai/sdk 1.14.51 → 1.15.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/v2/gen/sdk.gen.d.ts +3 -3
- package/dist/v2/gen/sdk.gen.js +3 -3
- package/dist/v2/gen/types.gen.d.ts +609 -160
- package/package.json +1 -1
package/dist/v2/gen/sdk.gen.d.ts
CHANGED
|
@@ -1375,7 +1375,7 @@ export declare class Model extends HeyApiClient {
|
|
|
1375
1375
|
* Retrieve available v2 models ordered by release date.
|
|
1376
1376
|
*/
|
|
1377
1377
|
list<ThrowOnError extends boolean = false>(parameters?: {
|
|
1378
|
-
|
|
1378
|
+
location?: {
|
|
1379
1379
|
directory?: string;
|
|
1380
1380
|
workspace?: string;
|
|
1381
1381
|
};
|
|
@@ -1388,7 +1388,7 @@ export declare class Provider2 extends HeyApiClient {
|
|
|
1388
1388
|
* Retrieve active v2 AI providers so clients can show provider availability and configuration.
|
|
1389
1389
|
*/
|
|
1390
1390
|
list<ThrowOnError extends boolean = false>(parameters?: {
|
|
1391
|
-
|
|
1391
|
+
location?: {
|
|
1392
1392
|
directory?: string;
|
|
1393
1393
|
workspace?: string;
|
|
1394
1394
|
};
|
|
@@ -1400,7 +1400,7 @@ export declare class Provider2 extends HeyApiClient {
|
|
|
1400
1400
|
*/
|
|
1401
1401
|
get<ThrowOnError extends boolean = false>(parameters: {
|
|
1402
1402
|
providerID: string;
|
|
1403
|
-
|
|
1403
|
+
location?: {
|
|
1404
1404
|
directory?: string;
|
|
1405
1405
|
workspace?: string;
|
|
1406
1406
|
};
|
package/dist/v2/gen/sdk.gen.js
CHANGED
|
@@ -2753,7 +2753,7 @@ export class Model extends HeyApiClient {
|
|
|
2753
2753
|
* Retrieve available v2 models ordered by release date.
|
|
2754
2754
|
*/
|
|
2755
2755
|
list(parameters, options) {
|
|
2756
|
-
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "
|
|
2756
|
+
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }]);
|
|
2757
2757
|
return (options?.client ?? this.client).get({
|
|
2758
2758
|
url: "/api/model",
|
|
2759
2759
|
...options,
|
|
@@ -2768,7 +2768,7 @@ export class Provider2 extends HeyApiClient {
|
|
|
2768
2768
|
* Retrieve active v2 AI providers so clients can show provider availability and configuration.
|
|
2769
2769
|
*/
|
|
2770
2770
|
list(parameters, options) {
|
|
2771
|
-
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "
|
|
2771
|
+
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }]);
|
|
2772
2772
|
return (options?.client ?? this.client).get({
|
|
2773
2773
|
url: "/api/provider",
|
|
2774
2774
|
...options,
|
|
@@ -2785,7 +2785,7 @@ export class Provider2 extends HeyApiClient {
|
|
|
2785
2785
|
{
|
|
2786
2786
|
args: [
|
|
2787
2787
|
{ in: "path", key: "providerID" },
|
|
2788
|
-
{ in: "query", key: "
|
|
2788
|
+
{ in: "query", key: "location" },
|
|
2789
2789
|
],
|
|
2790
2790
|
},
|
|
2791
2791
|
]);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type ClientOptions = {
|
|
2
2
|
baseUrl: `${string}://${string}` | (string & {});
|
|
3
3
|
};
|
|
4
|
-
export type Event = EventServerInstanceDisposed | EventFileEdited | EventFileWatcherUpdated | EventLspClientDiagnostics | EventLspUpdated | EventMessagePartDelta | EventPermissionAsked | EventPermissionReplied | EventSessionDiff | EventSessionError | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventTodoUpdated | EventSessionStatus | EventSessionIdle |
|
|
4
|
+
export type Event = EventServerInstanceDisposed | EventFileEdited | EventFileWatcherUpdated | EventLspClientDiagnostics | EventLspUpdated | EventMessagePartDelta | EventPermissionAsked | EventPermissionReplied | EventSessionDiff | EventSessionError | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventTodoUpdated | EventSessionStatus | EventSessionIdle | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow1 | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventProjectUpdated | EventSessionCompacted | EventVcsBranchUpdated | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceStatus | EventWorktreeReady | EventWorktreeFailed | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventInstallationUpdated | EventInstallationUpdateAvailable | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionNextAgentSwitched | EventSessionNextModelSwitched | EventSessionNextPrompted | EventSessionNextSynthetic | EventSessionNextShellStarted | EventSessionNextShellEnded | EventSessionNextStepStarted | EventSessionNextStepEnded | EventSessionNextStepFailed | EventSessionNextTextStarted | EventSessionNextTextDelta | EventSessionNextTextEnded | EventSessionNextReasoningStarted | EventSessionNextReasoningDelta | EventSessionNextReasoningEnded | EventSessionNextToolInputStarted | EventSessionNextToolInputDelta | EventSessionNextToolInputEnded | EventSessionNextToolCalled | EventSessionNextToolProgress | EventSessionNextToolSuccess | EventSessionNextToolFailed | EventSessionNextRetried | EventSessionNextCompactionStarted | EventSessionNextCompactionDelta | EventSessionNextCompactionEnded | EventServerConnected | EventGlobalDisposed | EventCatalogModelUpdated;
|
|
5
5
|
export type OAuth = {
|
|
6
6
|
type: "oauth";
|
|
7
7
|
refresh: string;
|
|
@@ -609,7 +609,7 @@ export type GlobalEvent = {
|
|
|
609
609
|
directory: string;
|
|
610
610
|
project?: string;
|
|
611
611
|
workspace?: string;
|
|
612
|
-
payload: EventServerInstanceDisposed | EventFileEdited | EventFileWatcherUpdated | EventLspClientDiagnostics | EventLspUpdated | EventMessagePartDelta | EventPermissionAsked | EventPermissionReplied | EventSessionDiff | EventSessionError | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventTodoUpdated | EventSessionStatus | EventSessionIdle |
|
|
612
|
+
payload: EventServerInstanceDisposed | EventFileEdited | EventFileWatcherUpdated | EventLspClientDiagnostics | EventLspUpdated | EventMessagePartDelta | EventPermissionAsked | EventPermissionReplied | EventSessionDiff | EventSessionError | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventTodoUpdated | EventSessionStatus | EventSessionIdle | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventProjectUpdated | EventSessionCompacted | EventVcsBranchUpdated | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceStatus | EventWorktreeReady | EventWorktreeFailed | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventInstallationUpdated | EventInstallationUpdateAvailable | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionNextAgentSwitched | EventSessionNextModelSwitched | EventSessionNextPrompted | EventSessionNextSynthetic | EventSessionNextShellStarted | EventSessionNextShellEnded | EventSessionNextStepStarted | EventSessionNextStepEnded | EventSessionNextStepFailed | EventSessionNextTextStarted | EventSessionNextTextDelta | EventSessionNextTextEnded | EventSessionNextReasoningStarted | EventSessionNextReasoningDelta | EventSessionNextReasoningEnded | EventSessionNextToolInputStarted | EventSessionNextToolInputDelta | EventSessionNextToolInputEnded | EventSessionNextToolCalled | EventSessionNextToolProgress | EventSessionNextToolSuccess | EventSessionNextToolFailed | EventSessionNextRetried | EventSessionNextCompactionStarted | EventSessionNextCompactionDelta | EventSessionNextCompactionEnded | EventServerConnected | EventGlobalDisposed | EventCatalogModelUpdated | 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;
|
|
613
613
|
};
|
|
614
614
|
/**
|
|
615
615
|
* Log level
|
|
@@ -2052,13 +2052,6 @@ export type EventSessionIdle = {
|
|
|
2052
2052
|
sessionID: string;
|
|
2053
2053
|
};
|
|
2054
2054
|
};
|
|
2055
|
-
export type EventSessionCompacted = {
|
|
2056
|
-
id: string;
|
|
2057
|
-
type: "session.compacted";
|
|
2058
|
-
properties: {
|
|
2059
|
-
sessionID: string;
|
|
2060
|
-
};
|
|
2061
|
-
};
|
|
2062
2055
|
export type EventMcpToolsChanged = {
|
|
2063
2056
|
id: string;
|
|
2064
2057
|
type: "mcp.tools.changed";
|
|
@@ -2089,6 +2082,13 @@ export type EventProjectUpdated = {
|
|
|
2089
2082
|
type: "project.updated";
|
|
2090
2083
|
properties: Project;
|
|
2091
2084
|
};
|
|
2085
|
+
export type EventSessionCompacted = {
|
|
2086
|
+
id: string;
|
|
2087
|
+
type: "session.compacted";
|
|
2088
|
+
properties: {
|
|
2089
|
+
sessionID: string;
|
|
2090
|
+
};
|
|
2091
|
+
};
|
|
2092
2092
|
export type EventVcsBranchUpdated = {
|
|
2093
2093
|
id: string;
|
|
2094
2094
|
type: "vcs.branch.updated";
|
|
@@ -2154,93 +2154,542 @@ export type EventPtyExited = {
|
|
|
2154
2154
|
id: string;
|
|
2155
2155
|
exitCode: number;
|
|
2156
2156
|
};
|
|
2157
|
-
};
|
|
2158
|
-
export type EventPtyDeleted = {
|
|
2159
|
-
id: string;
|
|
2160
|
-
type: "pty.deleted";
|
|
2161
|
-
properties: {
|
|
2157
|
+
};
|
|
2158
|
+
export type EventPtyDeleted = {
|
|
2159
|
+
id: string;
|
|
2160
|
+
type: "pty.deleted";
|
|
2161
|
+
properties: {
|
|
2162
|
+
id: string;
|
|
2163
|
+
};
|
|
2164
|
+
};
|
|
2165
|
+
export type EventInstallationUpdated = {
|
|
2166
|
+
id: string;
|
|
2167
|
+
type: "installation.updated";
|
|
2168
|
+
properties: {
|
|
2169
|
+
version: string;
|
|
2170
|
+
};
|
|
2171
|
+
};
|
|
2172
|
+
export type EventInstallationUpdateAvailable = {
|
|
2173
|
+
id: string;
|
|
2174
|
+
type: "installation.update-available";
|
|
2175
|
+
properties: {
|
|
2176
|
+
version: string;
|
|
2177
|
+
};
|
|
2178
|
+
};
|
|
2179
|
+
export type EventMessageUpdated = {
|
|
2180
|
+
id: string;
|
|
2181
|
+
type: "message.updated";
|
|
2182
|
+
properties: {
|
|
2183
|
+
sessionID: string;
|
|
2184
|
+
info: Message;
|
|
2185
|
+
};
|
|
2186
|
+
};
|
|
2187
|
+
export type EventMessageRemoved = {
|
|
2188
|
+
id: string;
|
|
2189
|
+
type: "message.removed";
|
|
2190
|
+
properties: {
|
|
2191
|
+
sessionID: string;
|
|
2192
|
+
messageID: string;
|
|
2193
|
+
};
|
|
2194
|
+
};
|
|
2195
|
+
export type EventMessagePartUpdated = {
|
|
2196
|
+
id: string;
|
|
2197
|
+
type: "message.part.updated";
|
|
2198
|
+
properties: {
|
|
2199
|
+
sessionID: string;
|
|
2200
|
+
part: Part;
|
|
2201
|
+
time: number;
|
|
2202
|
+
};
|
|
2203
|
+
};
|
|
2204
|
+
export type EventMessagePartRemoved = {
|
|
2205
|
+
id: string;
|
|
2206
|
+
type: "message.part.removed";
|
|
2207
|
+
properties: {
|
|
2208
|
+
sessionID: string;
|
|
2209
|
+
messageID: string;
|
|
2210
|
+
partID: string;
|
|
2211
|
+
};
|
|
2212
|
+
};
|
|
2213
|
+
export type EventSessionCreated = {
|
|
2214
|
+
id: string;
|
|
2215
|
+
type: "session.created";
|
|
2216
|
+
properties: {
|
|
2217
|
+
sessionID: string;
|
|
2218
|
+
info: Session;
|
|
2219
|
+
};
|
|
2220
|
+
};
|
|
2221
|
+
export type EventSessionUpdated = {
|
|
2222
|
+
id: string;
|
|
2223
|
+
type: "session.updated";
|
|
2224
|
+
properties: {
|
|
2225
|
+
sessionID: string;
|
|
2226
|
+
info: Session;
|
|
2227
|
+
};
|
|
2228
|
+
};
|
|
2229
|
+
export type EventSessionDeleted = {
|
|
2230
|
+
id: string;
|
|
2231
|
+
type: "session.deleted";
|
|
2232
|
+
properties: {
|
|
2233
|
+
sessionID: string;
|
|
2234
|
+
info: Session;
|
|
2235
|
+
};
|
|
2236
|
+
};
|
|
2237
|
+
export type EventSessionNextAgentSwitched = {
|
|
2238
|
+
id: string;
|
|
2239
|
+
type: "session.next.agent.switched";
|
|
2240
|
+
properties: {
|
|
2241
|
+
timestamp: number;
|
|
2242
|
+
sessionID: string;
|
|
2243
|
+
agent: string;
|
|
2244
|
+
};
|
|
2245
|
+
};
|
|
2246
|
+
export type EventSessionNextModelSwitched = {
|
|
2247
|
+
id: string;
|
|
2248
|
+
type: "session.next.model.switched";
|
|
2249
|
+
properties: {
|
|
2250
|
+
timestamp: number;
|
|
2251
|
+
sessionID: string;
|
|
2252
|
+
model: {
|
|
2253
|
+
id: string;
|
|
2254
|
+
providerID: string;
|
|
2255
|
+
variant: string;
|
|
2256
|
+
};
|
|
2257
|
+
};
|
|
2258
|
+
};
|
|
2259
|
+
export type PromptSource = {
|
|
2260
|
+
start: number;
|
|
2261
|
+
end: number;
|
|
2262
|
+
text: string;
|
|
2263
|
+
};
|
|
2264
|
+
export type PromptFileAttachment = {
|
|
2265
|
+
uri: string;
|
|
2266
|
+
mime: string;
|
|
2267
|
+
name?: string;
|
|
2268
|
+
description?: string;
|
|
2269
|
+
source?: PromptSource;
|
|
2270
|
+
};
|
|
2271
|
+
export type PromptAgentAttachment = {
|
|
2272
|
+
name: string;
|
|
2273
|
+
source?: PromptSource;
|
|
2274
|
+
};
|
|
2275
|
+
export type PromptReferenceAttachment = {
|
|
2276
|
+
name: string;
|
|
2277
|
+
kind: "local" | "git" | "invalid";
|
|
2278
|
+
uri?: string;
|
|
2279
|
+
repository?: string;
|
|
2280
|
+
branch?: string;
|
|
2281
|
+
target?: string;
|
|
2282
|
+
targetUri?: string;
|
|
2283
|
+
problem?: string;
|
|
2284
|
+
source?: PromptSource;
|
|
2285
|
+
};
|
|
2286
|
+
export type EventSessionNextPrompted = {
|
|
2287
|
+
id: string;
|
|
2288
|
+
type: "session.next.prompted";
|
|
2289
|
+
properties: {
|
|
2290
|
+
timestamp: number;
|
|
2291
|
+
sessionID: string;
|
|
2292
|
+
prompt: Prompt;
|
|
2293
|
+
};
|
|
2294
|
+
};
|
|
2295
|
+
export type EventSessionNextSynthetic = {
|
|
2296
|
+
id: string;
|
|
2297
|
+
type: "session.next.synthetic";
|
|
2298
|
+
properties: {
|
|
2299
|
+
timestamp: number;
|
|
2300
|
+
sessionID: string;
|
|
2301
|
+
text: string;
|
|
2302
|
+
};
|
|
2303
|
+
};
|
|
2304
|
+
export type EventSessionNextShellStarted = {
|
|
2305
|
+
id: string;
|
|
2306
|
+
type: "session.next.shell.started";
|
|
2307
|
+
properties: {
|
|
2308
|
+
timestamp: number;
|
|
2309
|
+
sessionID: string;
|
|
2310
|
+
callID: string;
|
|
2311
|
+
command: string;
|
|
2312
|
+
};
|
|
2313
|
+
};
|
|
2314
|
+
export type EventSessionNextShellEnded = {
|
|
2315
|
+
id: string;
|
|
2316
|
+
type: "session.next.shell.ended";
|
|
2317
|
+
properties: {
|
|
2318
|
+
timestamp: number;
|
|
2319
|
+
sessionID: string;
|
|
2320
|
+
callID: string;
|
|
2321
|
+
output: string;
|
|
2322
|
+
};
|
|
2323
|
+
};
|
|
2324
|
+
export type EventSessionNextStepStarted = {
|
|
2325
|
+
id: string;
|
|
2326
|
+
type: "session.next.step.started";
|
|
2327
|
+
properties: {
|
|
2328
|
+
timestamp: number;
|
|
2329
|
+
sessionID: string;
|
|
2330
|
+
agent: string;
|
|
2331
|
+
model: {
|
|
2332
|
+
id: string;
|
|
2333
|
+
providerID: string;
|
|
2334
|
+
variant: string;
|
|
2335
|
+
};
|
|
2336
|
+
snapshot?: string;
|
|
2337
|
+
};
|
|
2338
|
+
};
|
|
2339
|
+
export type EventSessionNextStepEnded = {
|
|
2340
|
+
id: string;
|
|
2341
|
+
type: "session.next.step.ended";
|
|
2342
|
+
properties: {
|
|
2343
|
+
timestamp: number;
|
|
2344
|
+
sessionID: string;
|
|
2345
|
+
finish: string;
|
|
2346
|
+
cost: number;
|
|
2347
|
+
tokens: {
|
|
2348
|
+
input: number;
|
|
2349
|
+
output: number;
|
|
2350
|
+
reasoning: number;
|
|
2351
|
+
cache: {
|
|
2352
|
+
read: number;
|
|
2353
|
+
write: number;
|
|
2354
|
+
};
|
|
2355
|
+
};
|
|
2356
|
+
snapshot?: string;
|
|
2357
|
+
};
|
|
2358
|
+
};
|
|
2359
|
+
export type SessionErrorUnknown = {
|
|
2360
|
+
type: "unknown";
|
|
2361
|
+
message: string;
|
|
2362
|
+
};
|
|
2363
|
+
export type EventSessionNextStepFailed = {
|
|
2364
|
+
id: string;
|
|
2365
|
+
type: "session.next.step.failed";
|
|
2366
|
+
properties: {
|
|
2367
|
+
timestamp: number;
|
|
2368
|
+
sessionID: string;
|
|
2369
|
+
error: SessionErrorUnknown;
|
|
2370
|
+
};
|
|
2371
|
+
};
|
|
2372
|
+
export type EventSessionNextTextStarted = {
|
|
2373
|
+
id: string;
|
|
2374
|
+
type: "session.next.text.started";
|
|
2375
|
+
properties: {
|
|
2376
|
+
timestamp: number;
|
|
2377
|
+
sessionID: string;
|
|
2378
|
+
};
|
|
2379
|
+
};
|
|
2380
|
+
export type EventSessionNextTextDelta = {
|
|
2381
|
+
id: string;
|
|
2382
|
+
type: "session.next.text.delta";
|
|
2383
|
+
properties: {
|
|
2384
|
+
timestamp: number;
|
|
2385
|
+
sessionID: string;
|
|
2386
|
+
delta: string;
|
|
2387
|
+
};
|
|
2388
|
+
};
|
|
2389
|
+
export type EventSessionNextTextEnded = {
|
|
2390
|
+
id: string;
|
|
2391
|
+
type: "session.next.text.ended";
|
|
2392
|
+
properties: {
|
|
2393
|
+
timestamp: number;
|
|
2394
|
+
sessionID: string;
|
|
2395
|
+
text: string;
|
|
2396
|
+
};
|
|
2397
|
+
};
|
|
2398
|
+
export type EventSessionNextReasoningStarted = {
|
|
2399
|
+
id: string;
|
|
2400
|
+
type: "session.next.reasoning.started";
|
|
2401
|
+
properties: {
|
|
2402
|
+
timestamp: number;
|
|
2403
|
+
sessionID: string;
|
|
2404
|
+
reasoningID: string;
|
|
2405
|
+
};
|
|
2406
|
+
};
|
|
2407
|
+
export type EventSessionNextReasoningDelta = {
|
|
2408
|
+
id: string;
|
|
2409
|
+
type: "session.next.reasoning.delta";
|
|
2410
|
+
properties: {
|
|
2411
|
+
timestamp: number;
|
|
2412
|
+
sessionID: string;
|
|
2413
|
+
reasoningID: string;
|
|
2414
|
+
delta: string;
|
|
2415
|
+
};
|
|
2416
|
+
};
|
|
2417
|
+
export type EventSessionNextReasoningEnded = {
|
|
2418
|
+
id: string;
|
|
2419
|
+
type: "session.next.reasoning.ended";
|
|
2420
|
+
properties: {
|
|
2421
|
+
timestamp: number;
|
|
2422
|
+
sessionID: string;
|
|
2423
|
+
reasoningID: string;
|
|
2424
|
+
text: string;
|
|
2425
|
+
};
|
|
2426
|
+
};
|
|
2427
|
+
export type EventSessionNextToolInputStarted = {
|
|
2428
|
+
id: string;
|
|
2429
|
+
type: "session.next.tool.input.started";
|
|
2430
|
+
properties: {
|
|
2431
|
+
timestamp: number;
|
|
2432
|
+
sessionID: string;
|
|
2433
|
+
callID: string;
|
|
2434
|
+
name: string;
|
|
2435
|
+
};
|
|
2436
|
+
};
|
|
2437
|
+
export type EventSessionNextToolInputDelta = {
|
|
2438
|
+
id: string;
|
|
2439
|
+
type: "session.next.tool.input.delta";
|
|
2440
|
+
properties: {
|
|
2441
|
+
timestamp: number;
|
|
2442
|
+
sessionID: string;
|
|
2443
|
+
callID: string;
|
|
2444
|
+
delta: string;
|
|
2445
|
+
};
|
|
2446
|
+
};
|
|
2447
|
+
export type EventSessionNextToolInputEnded = {
|
|
2448
|
+
id: string;
|
|
2449
|
+
type: "session.next.tool.input.ended";
|
|
2450
|
+
properties: {
|
|
2451
|
+
timestamp: number;
|
|
2452
|
+
sessionID: string;
|
|
2453
|
+
callID: string;
|
|
2454
|
+
text: string;
|
|
2455
|
+
};
|
|
2456
|
+
};
|
|
2457
|
+
export type EventSessionNextToolCalled = {
|
|
2458
|
+
id: string;
|
|
2459
|
+
type: "session.next.tool.called";
|
|
2460
|
+
properties: {
|
|
2461
|
+
timestamp: number;
|
|
2462
|
+
sessionID: string;
|
|
2463
|
+
callID: string;
|
|
2464
|
+
tool: string;
|
|
2465
|
+
input: {
|
|
2466
|
+
[key: string]: unknown;
|
|
2467
|
+
};
|
|
2468
|
+
provider: {
|
|
2469
|
+
executed: boolean;
|
|
2470
|
+
metadata?: {
|
|
2471
|
+
[key: string]: unknown;
|
|
2472
|
+
};
|
|
2473
|
+
};
|
|
2474
|
+
};
|
|
2475
|
+
};
|
|
2476
|
+
export type ToolTextContent = {
|
|
2477
|
+
type: "text";
|
|
2478
|
+
text: string;
|
|
2479
|
+
};
|
|
2480
|
+
export type ToolFileContent = {
|
|
2481
|
+
type: "file";
|
|
2482
|
+
uri: string;
|
|
2483
|
+
mime: string;
|
|
2484
|
+
name?: string;
|
|
2485
|
+
};
|
|
2486
|
+
export type EventSessionNextToolProgress = {
|
|
2487
|
+
id: string;
|
|
2488
|
+
type: "session.next.tool.progress";
|
|
2489
|
+
properties: {
|
|
2490
|
+
timestamp: number;
|
|
2491
|
+
sessionID: string;
|
|
2492
|
+
callID: string;
|
|
2493
|
+
structured: {
|
|
2494
|
+
[key: string]: unknown;
|
|
2495
|
+
};
|
|
2496
|
+
content: Array<ToolTextContent | ToolFileContent>;
|
|
2497
|
+
};
|
|
2498
|
+
};
|
|
2499
|
+
export type EventSessionNextToolSuccess = {
|
|
2500
|
+
id: string;
|
|
2501
|
+
type: "session.next.tool.success";
|
|
2502
|
+
properties: {
|
|
2503
|
+
timestamp: number;
|
|
2504
|
+
sessionID: string;
|
|
2505
|
+
callID: string;
|
|
2506
|
+
structured: {
|
|
2507
|
+
[key: string]: unknown;
|
|
2508
|
+
};
|
|
2509
|
+
content: Array<ToolTextContent | ToolFileContent>;
|
|
2510
|
+
provider: {
|
|
2511
|
+
executed: boolean;
|
|
2512
|
+
metadata?: {
|
|
2513
|
+
[key: string]: unknown;
|
|
2514
|
+
};
|
|
2515
|
+
};
|
|
2516
|
+
};
|
|
2517
|
+
};
|
|
2518
|
+
export type EventSessionNextToolFailed = {
|
|
2519
|
+
id: string;
|
|
2520
|
+
type: "session.next.tool.failed";
|
|
2521
|
+
properties: {
|
|
2522
|
+
timestamp: number;
|
|
2523
|
+
sessionID: string;
|
|
2524
|
+
callID: string;
|
|
2525
|
+
error: SessionErrorUnknown;
|
|
2526
|
+
provider: {
|
|
2527
|
+
executed: boolean;
|
|
2528
|
+
metadata?: {
|
|
2529
|
+
[key: string]: unknown;
|
|
2530
|
+
};
|
|
2531
|
+
};
|
|
2532
|
+
};
|
|
2533
|
+
};
|
|
2534
|
+
export type SessionNextRetryError = {
|
|
2535
|
+
message: string;
|
|
2536
|
+
statusCode?: number;
|
|
2537
|
+
isRetryable: boolean;
|
|
2538
|
+
responseHeaders?: {
|
|
2539
|
+
[key: string]: string;
|
|
2540
|
+
};
|
|
2541
|
+
responseBody?: string;
|
|
2542
|
+
metadata?: {
|
|
2543
|
+
[key: string]: string;
|
|
2544
|
+
};
|
|
2545
|
+
};
|
|
2546
|
+
export type EventSessionNextRetried = {
|
|
2547
|
+
id: string;
|
|
2548
|
+
type: "session.next.retried";
|
|
2549
|
+
properties: {
|
|
2550
|
+
timestamp: number;
|
|
2551
|
+
sessionID: string;
|
|
2552
|
+
attempt: number;
|
|
2553
|
+
error: SessionNextRetryError;
|
|
2554
|
+
};
|
|
2555
|
+
};
|
|
2556
|
+
export type EventSessionNextCompactionStarted = {
|
|
2557
|
+
id: string;
|
|
2558
|
+
type: "session.next.compaction.started";
|
|
2559
|
+
properties: {
|
|
2560
|
+
timestamp: number;
|
|
2561
|
+
sessionID: string;
|
|
2562
|
+
reason: "auto" | "manual";
|
|
2563
|
+
};
|
|
2564
|
+
};
|
|
2565
|
+
export type EventSessionNextCompactionDelta = {
|
|
2566
|
+
id: string;
|
|
2567
|
+
type: "session.next.compaction.delta";
|
|
2568
|
+
properties: {
|
|
2569
|
+
timestamp: number;
|
|
2570
|
+
sessionID: string;
|
|
2571
|
+
text: string;
|
|
2572
|
+
};
|
|
2573
|
+
};
|
|
2574
|
+
export type EventSessionNextCompactionEnded = {
|
|
2575
|
+
id: string;
|
|
2576
|
+
type: "session.next.compaction.ended";
|
|
2577
|
+
properties: {
|
|
2578
|
+
timestamp: number;
|
|
2579
|
+
sessionID: string;
|
|
2580
|
+
text: string;
|
|
2581
|
+
include?: string;
|
|
2582
|
+
};
|
|
2583
|
+
};
|
|
2584
|
+
export type EventServerConnected = {
|
|
2585
|
+
id: string;
|
|
2586
|
+
type: "server.connected";
|
|
2587
|
+
properties: {
|
|
2588
|
+
[key: string]: unknown;
|
|
2589
|
+
};
|
|
2590
|
+
};
|
|
2591
|
+
export type EventGlobalDisposed = {
|
|
2592
|
+
id: string;
|
|
2593
|
+
type: "global.disposed";
|
|
2594
|
+
properties: {
|
|
2595
|
+
[key: string]: unknown;
|
|
2596
|
+
};
|
|
2597
|
+
};
|
|
2598
|
+
export type ModelV2Info = {
|
|
2599
|
+
id: string;
|
|
2600
|
+
apiID: string;
|
|
2601
|
+
providerID: string;
|
|
2602
|
+
family?: string;
|
|
2603
|
+
name: string;
|
|
2604
|
+
endpoint: {
|
|
2605
|
+
type: "unknown";
|
|
2606
|
+
} | {
|
|
2607
|
+
type: "openai/responses";
|
|
2608
|
+
url: string;
|
|
2609
|
+
websocket?: boolean;
|
|
2610
|
+
} | {
|
|
2611
|
+
type: "openai/completions";
|
|
2612
|
+
url: string;
|
|
2613
|
+
reasoning?: {
|
|
2614
|
+
type: "reasoning_content";
|
|
2615
|
+
} | {
|
|
2616
|
+
type: "reasoning_details";
|
|
2617
|
+
};
|
|
2618
|
+
} | {
|
|
2619
|
+
type: "anthropic/messages";
|
|
2620
|
+
url: string;
|
|
2621
|
+
} | {
|
|
2622
|
+
type: "aisdk";
|
|
2623
|
+
package: string;
|
|
2624
|
+
url?: string;
|
|
2625
|
+
};
|
|
2626
|
+
capabilities: {
|
|
2627
|
+
tools: boolean;
|
|
2628
|
+
input: Array<string>;
|
|
2629
|
+
output: Array<string>;
|
|
2630
|
+
};
|
|
2631
|
+
options: {
|
|
2632
|
+
headers: {
|
|
2633
|
+
[key: string]: string;
|
|
2634
|
+
};
|
|
2635
|
+
body: {
|
|
2636
|
+
[key: string]: unknown;
|
|
2637
|
+
};
|
|
2638
|
+
aisdk: {
|
|
2639
|
+
provider: {
|
|
2640
|
+
[key: string]: unknown;
|
|
2641
|
+
};
|
|
2642
|
+
request: {
|
|
2643
|
+
[key: string]: unknown;
|
|
2644
|
+
};
|
|
2645
|
+
};
|
|
2646
|
+
variant?: string;
|
|
2647
|
+
};
|
|
2648
|
+
variants: Array<{
|
|
2162
2649
|
id: string;
|
|
2650
|
+
headers: {
|
|
2651
|
+
[key: string]: string;
|
|
2652
|
+
};
|
|
2653
|
+
body: {
|
|
2654
|
+
[key: string]: unknown;
|
|
2655
|
+
};
|
|
2656
|
+
aisdk: {
|
|
2657
|
+
provider: {
|
|
2658
|
+
[key: string]: unknown;
|
|
2659
|
+
};
|
|
2660
|
+
request: {
|
|
2661
|
+
[key: string]: unknown;
|
|
2662
|
+
};
|
|
2663
|
+
};
|
|
2664
|
+
}>;
|
|
2665
|
+
time: {
|
|
2666
|
+
released: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
2163
2667
|
};
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
properties: {
|
|
2183
|
-
[key: string]: unknown;
|
|
2668
|
+
cost: Array<{
|
|
2669
|
+
tier?: {
|
|
2670
|
+
type: "context";
|
|
2671
|
+
size: number;
|
|
2672
|
+
};
|
|
2673
|
+
input: number;
|
|
2674
|
+
output: number;
|
|
2675
|
+
cache: {
|
|
2676
|
+
read: number;
|
|
2677
|
+
write: number;
|
|
2678
|
+
};
|
|
2679
|
+
}>;
|
|
2680
|
+
status: "alpha" | "beta" | "deprecated" | "active";
|
|
2681
|
+
enabled: boolean;
|
|
2682
|
+
limit: {
|
|
2683
|
+
context: number;
|
|
2684
|
+
input?: number;
|
|
2685
|
+
output: number;
|
|
2184
2686
|
};
|
|
2185
2687
|
};
|
|
2186
|
-
export type
|
|
2688
|
+
export type EventCatalogModelUpdated = {
|
|
2187
2689
|
id: string;
|
|
2188
|
-
type: "
|
|
2690
|
+
type: "catalog.model.updated";
|
|
2189
2691
|
properties: {
|
|
2190
|
-
|
|
2191
|
-
};
|
|
2192
|
-
};
|
|
2193
|
-
export type PromptSource = {
|
|
2194
|
-
start: number;
|
|
2195
|
-
end: number;
|
|
2196
|
-
text: string;
|
|
2197
|
-
};
|
|
2198
|
-
export type PromptFileAttachment = {
|
|
2199
|
-
uri: string;
|
|
2200
|
-
mime: string;
|
|
2201
|
-
name?: string;
|
|
2202
|
-
description?: string;
|
|
2203
|
-
source?: PromptSource;
|
|
2204
|
-
};
|
|
2205
|
-
export type PromptAgentAttachment = {
|
|
2206
|
-
name: string;
|
|
2207
|
-
source?: PromptSource;
|
|
2208
|
-
};
|
|
2209
|
-
export type PromptReferenceAttachment = {
|
|
2210
|
-
name: string;
|
|
2211
|
-
kind: "local" | "git" | "invalid";
|
|
2212
|
-
uri?: string;
|
|
2213
|
-
repository?: string;
|
|
2214
|
-
branch?: string;
|
|
2215
|
-
target?: string;
|
|
2216
|
-
targetUri?: string;
|
|
2217
|
-
problem?: string;
|
|
2218
|
-
source?: PromptSource;
|
|
2219
|
-
};
|
|
2220
|
-
export type SessionErrorUnknown = {
|
|
2221
|
-
type: "unknown";
|
|
2222
|
-
message: string;
|
|
2223
|
-
};
|
|
2224
|
-
export type ToolTextContent = {
|
|
2225
|
-
type: "text";
|
|
2226
|
-
text: string;
|
|
2227
|
-
};
|
|
2228
|
-
export type ToolFileContent = {
|
|
2229
|
-
type: "file";
|
|
2230
|
-
uri: string;
|
|
2231
|
-
mime: string;
|
|
2232
|
-
name?: string;
|
|
2233
|
-
};
|
|
2234
|
-
export type SessionNextRetryError = {
|
|
2235
|
-
message: string;
|
|
2236
|
-
statusCode?: number;
|
|
2237
|
-
isRetryable: boolean;
|
|
2238
|
-
responseHeaders?: {
|
|
2239
|
-
[key: string]: string;
|
|
2240
|
-
};
|
|
2241
|
-
responseBody?: string;
|
|
2242
|
-
metadata?: {
|
|
2243
|
-
[key: string]: string;
|
|
2692
|
+
model: ModelV2Info;
|
|
2244
2693
|
};
|
|
2245
2694
|
};
|
|
2246
2695
|
export type SessionInfo = {
|
|
@@ -2450,7 +2899,72 @@ export type SessionMessageCompaction = {
|
|
|
2450
2899
|
};
|
|
2451
2900
|
};
|
|
2452
2901
|
export type SessionMessage = SessionMessageAgentSwitched | SessionMessageModelSwitched | SessionMessageUser | SessionMessageSynthetic | SessionMessageShell | SessionMessageAssistant | SessionMessageCompaction;
|
|
2453
|
-
export type
|
|
2902
|
+
export type ProviderV2Info = {
|
|
2903
|
+
id: string;
|
|
2904
|
+
name: string;
|
|
2905
|
+
enabled: false | {
|
|
2906
|
+
via: "env";
|
|
2907
|
+
name: string;
|
|
2908
|
+
} | {
|
|
2909
|
+
via: "auth";
|
|
2910
|
+
service: string;
|
|
2911
|
+
} | {
|
|
2912
|
+
via: "custom";
|
|
2913
|
+
data: {
|
|
2914
|
+
[key: string]: unknown;
|
|
2915
|
+
};
|
|
2916
|
+
};
|
|
2917
|
+
env: Array<string>;
|
|
2918
|
+
endpoint: {
|
|
2919
|
+
type: "unknown";
|
|
2920
|
+
} | {
|
|
2921
|
+
type: "openai/responses";
|
|
2922
|
+
url: string;
|
|
2923
|
+
websocket?: boolean;
|
|
2924
|
+
} | {
|
|
2925
|
+
type: "openai/completions";
|
|
2926
|
+
url: string;
|
|
2927
|
+
reasoning?: {
|
|
2928
|
+
type: "reasoning_content";
|
|
2929
|
+
} | {
|
|
2930
|
+
type: "reasoning_details";
|
|
2931
|
+
};
|
|
2932
|
+
} | {
|
|
2933
|
+
type: "anthropic/messages";
|
|
2934
|
+
url: string;
|
|
2935
|
+
} | {
|
|
2936
|
+
type: "aisdk";
|
|
2937
|
+
package: string;
|
|
2938
|
+
url?: string;
|
|
2939
|
+
};
|
|
2940
|
+
options: {
|
|
2941
|
+
headers: {
|
|
2942
|
+
[key: string]: string;
|
|
2943
|
+
};
|
|
2944
|
+
body: {
|
|
2945
|
+
[key: string]: unknown;
|
|
2946
|
+
};
|
|
2947
|
+
aisdk: {
|
|
2948
|
+
provider: {
|
|
2949
|
+
[key: string]: unknown;
|
|
2950
|
+
};
|
|
2951
|
+
request: {
|
|
2952
|
+
[key: string]: unknown;
|
|
2953
|
+
};
|
|
2954
|
+
};
|
|
2955
|
+
};
|
|
2956
|
+
};
|
|
2957
|
+
export type EventTuiToastShow1 = {
|
|
2958
|
+
id: string;
|
|
2959
|
+
type: "tui.toast.show";
|
|
2960
|
+
properties: {
|
|
2961
|
+
title?: string;
|
|
2962
|
+
message: string;
|
|
2963
|
+
variant: "info" | "success" | "warning" | "error";
|
|
2964
|
+
duration?: number;
|
|
2965
|
+
};
|
|
2966
|
+
};
|
|
2967
|
+
export type ModelV2Info1 = {
|
|
2454
2968
|
id: string;
|
|
2455
2969
|
apiID: string;
|
|
2456
2970
|
providerID: string;
|
|
@@ -2518,7 +3032,7 @@ export type ModelV2Info = {
|
|
|
2518
3032
|
};
|
|
2519
3033
|
}>;
|
|
2520
3034
|
time: {
|
|
2521
|
-
released: number | "NaN" | "Infinity" | "-Infinity"
|
|
3035
|
+
released: number | "NaN" | "Infinity" | "-Infinity";
|
|
2522
3036
|
};
|
|
2523
3037
|
cost: Array<{
|
|
2524
3038
|
tier?: {
|
|
@@ -2540,71 +3054,6 @@ export type ModelV2Info = {
|
|
|
2540
3054
|
output: number;
|
|
2541
3055
|
};
|
|
2542
3056
|
};
|
|
2543
|
-
export type ProviderV2Info = {
|
|
2544
|
-
id: string;
|
|
2545
|
-
name: string;
|
|
2546
|
-
enabled: false | {
|
|
2547
|
-
via: "env";
|
|
2548
|
-
name: string;
|
|
2549
|
-
} | {
|
|
2550
|
-
via: "auth";
|
|
2551
|
-
service: string;
|
|
2552
|
-
} | {
|
|
2553
|
-
via: "custom";
|
|
2554
|
-
data: {
|
|
2555
|
-
[key: string]: unknown;
|
|
2556
|
-
};
|
|
2557
|
-
};
|
|
2558
|
-
env: Array<string>;
|
|
2559
|
-
endpoint: {
|
|
2560
|
-
type: "unknown";
|
|
2561
|
-
} | {
|
|
2562
|
-
type: "openai/responses";
|
|
2563
|
-
url: string;
|
|
2564
|
-
websocket?: boolean;
|
|
2565
|
-
} | {
|
|
2566
|
-
type: "openai/completions";
|
|
2567
|
-
url: string;
|
|
2568
|
-
reasoning?: {
|
|
2569
|
-
type: "reasoning_content";
|
|
2570
|
-
} | {
|
|
2571
|
-
type: "reasoning_details";
|
|
2572
|
-
};
|
|
2573
|
-
} | {
|
|
2574
|
-
type: "anthropic/messages";
|
|
2575
|
-
url: string;
|
|
2576
|
-
} | {
|
|
2577
|
-
type: "aisdk";
|
|
2578
|
-
package: string;
|
|
2579
|
-
url?: string;
|
|
2580
|
-
};
|
|
2581
|
-
options: {
|
|
2582
|
-
headers: {
|
|
2583
|
-
[key: string]: string;
|
|
2584
|
-
};
|
|
2585
|
-
body: {
|
|
2586
|
-
[key: string]: unknown;
|
|
2587
|
-
};
|
|
2588
|
-
aisdk: {
|
|
2589
|
-
provider: {
|
|
2590
|
-
[key: string]: unknown;
|
|
2591
|
-
};
|
|
2592
|
-
request: {
|
|
2593
|
-
[key: string]: unknown;
|
|
2594
|
-
};
|
|
2595
|
-
};
|
|
2596
|
-
};
|
|
2597
|
-
};
|
|
2598
|
-
export type EventTuiToastShow1 = {
|
|
2599
|
-
id: string;
|
|
2600
|
-
type: "tui.toast.show";
|
|
2601
|
-
properties: {
|
|
2602
|
-
title?: string;
|
|
2603
|
-
message: string;
|
|
2604
|
-
variant: "info" | "success" | "warning" | "error";
|
|
2605
|
-
duration?: number;
|
|
2606
|
-
};
|
|
2607
|
-
};
|
|
2608
3057
|
export type BadRequestError = {
|
|
2609
3058
|
name: "BadRequest";
|
|
2610
3059
|
data: {
|
|
@@ -5275,7 +5724,7 @@ export type V2ModelListData = {
|
|
|
5275
5724
|
body?: never;
|
|
5276
5725
|
path?: never;
|
|
5277
5726
|
query?: {
|
|
5278
|
-
|
|
5727
|
+
location?: {
|
|
5279
5728
|
directory?: string;
|
|
5280
5729
|
workspace?: string;
|
|
5281
5730
|
};
|
|
@@ -5293,7 +5742,7 @@ export type V2ProviderListData = {
|
|
|
5293
5742
|
body?: never;
|
|
5294
5743
|
path?: never;
|
|
5295
5744
|
query?: {
|
|
5296
|
-
|
|
5745
|
+
location?: {
|
|
5297
5746
|
directory?: string;
|
|
5298
5747
|
workspace?: string;
|
|
5299
5748
|
};
|
|
@@ -5313,7 +5762,7 @@ export type V2ProviderGetData = {
|
|
|
5313
5762
|
providerID: string;
|
|
5314
5763
|
};
|
|
5315
5764
|
query?: {
|
|
5316
|
-
|
|
5765
|
+
location?: {
|
|
5317
5766
|
directory?: string;
|
|
5318
5767
|
workspace?: string;
|
|
5319
5768
|
};
|