@opencode-ai/client 0.0.0-next-16234 → 0.0.0-next-16273
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/effect/api/api.d.ts +1548 -485
- package/dist/effect/generated/client.d.ts +1704 -7954
- package/dist/effect/generated/client.js +153 -150
- package/dist/promise/generated/client.d.ts +6 -5
- package/dist/promise/generated/client.js +8 -0
- package/dist/promise/generated/types.d.ts +123 -190
- package/dist/promise/generated/types.js +1 -0
- package/package.json +7 -7
|
@@ -15,10 +15,10 @@ export type ModelRef = {
|
|
|
15
15
|
variant?: string;
|
|
16
16
|
};
|
|
17
17
|
export type ProviderSettings = {
|
|
18
|
-
[x: string]:
|
|
18
|
+
[x: string]: any;
|
|
19
19
|
};
|
|
20
20
|
export type AgentColor = string;
|
|
21
|
-
export type
|
|
21
|
+
export type PermissionEffect = "allow" | "deny" | "ask";
|
|
22
22
|
export type PluginInfo = {
|
|
23
23
|
id: string;
|
|
24
24
|
};
|
|
@@ -260,13 +260,13 @@ export type ModelCapabilities = {
|
|
|
260
260
|
export type ModelVariant = {
|
|
261
261
|
id: string;
|
|
262
262
|
settings?: {
|
|
263
|
-
[x: string]:
|
|
263
|
+
[x: string]: any;
|
|
264
264
|
};
|
|
265
265
|
headers?: {
|
|
266
266
|
[x: string]: string;
|
|
267
267
|
};
|
|
268
268
|
body?: {
|
|
269
|
-
[x: string]:
|
|
269
|
+
[x: string]: any;
|
|
270
270
|
};
|
|
271
271
|
};
|
|
272
272
|
export type MoneyUSDPerMillionTokens = number;
|
|
@@ -275,20 +275,20 @@ export type GenerateTextResponse = {
|
|
|
275
275
|
text: string;
|
|
276
276
|
};
|
|
277
277
|
};
|
|
278
|
-
export type
|
|
278
|
+
export type ProviderInfo = {
|
|
279
279
|
id: string;
|
|
280
280
|
integrationID?: string;
|
|
281
281
|
name: string;
|
|
282
282
|
disabled?: boolean;
|
|
283
283
|
package: string;
|
|
284
284
|
settings?: {
|
|
285
|
-
[x: string]:
|
|
285
|
+
[x: string]: any;
|
|
286
286
|
};
|
|
287
287
|
headers?: {
|
|
288
288
|
[x: string]: string;
|
|
289
289
|
};
|
|
290
290
|
body?: {
|
|
291
|
-
[x: string]:
|
|
291
|
+
[x: string]: any;
|
|
292
292
|
};
|
|
293
293
|
};
|
|
294
294
|
export type IntegrationWhen = {
|
|
@@ -456,7 +456,7 @@ export type FormExternalField = {
|
|
|
456
456
|
description?: string;
|
|
457
457
|
};
|
|
458
458
|
export type FormValue = string | number | boolean | Array<string>;
|
|
459
|
-
export type
|
|
459
|
+
export type PermissionSource = {
|
|
460
460
|
type: "tool";
|
|
461
461
|
messageID: string;
|
|
462
462
|
callID: string;
|
|
@@ -487,8 +487,8 @@ export type FileDiffLegacyInfo = {
|
|
|
487
487
|
deletions: number;
|
|
488
488
|
status?: "added" | "deleted" | "modified";
|
|
489
489
|
};
|
|
490
|
-
export type
|
|
491
|
-
export type
|
|
490
|
+
export type PermissionV1Action = "allow" | "deny" | "ask";
|
|
491
|
+
export type SessionV1JSONSchema = {
|
|
492
492
|
[x: string]: any;
|
|
493
493
|
};
|
|
494
494
|
export type ProviderAuthError = {
|
|
@@ -550,7 +550,7 @@ export type APIError = {
|
|
|
550
550
|
} | undefined;
|
|
551
551
|
};
|
|
552
552
|
};
|
|
553
|
-
export type
|
|
553
|
+
export type SessionV1TextPart = {
|
|
554
554
|
id: string;
|
|
555
555
|
sessionID: string;
|
|
556
556
|
messageID: string;
|
|
@@ -566,7 +566,7 @@ export type TextPart = {
|
|
|
566
566
|
[x: string]: any;
|
|
567
567
|
} | undefined;
|
|
568
568
|
};
|
|
569
|
-
export type
|
|
569
|
+
export type SessionV1SubtaskPart = {
|
|
570
570
|
id: string;
|
|
571
571
|
sessionID: string;
|
|
572
572
|
messageID: string;
|
|
@@ -580,7 +580,7 @@ export type SubtaskPart = {
|
|
|
580
580
|
} | undefined;
|
|
581
581
|
command?: string | undefined;
|
|
582
582
|
};
|
|
583
|
-
export type
|
|
583
|
+
export type SessionV1ReasoningPart = {
|
|
584
584
|
id: string;
|
|
585
585
|
sessionID: string;
|
|
586
586
|
messageID: string;
|
|
@@ -594,12 +594,12 @@ export type ReasoningPart = {
|
|
|
594
594
|
end?: number | undefined;
|
|
595
595
|
};
|
|
596
596
|
};
|
|
597
|
-
export type
|
|
597
|
+
export type SessionV1FilePartSourceText = {
|
|
598
598
|
value: string;
|
|
599
599
|
start: number;
|
|
600
600
|
end: number;
|
|
601
601
|
};
|
|
602
|
-
export type
|
|
602
|
+
export type SessionV1Range = {
|
|
603
603
|
start: {
|
|
604
604
|
line: number;
|
|
605
605
|
character: number;
|
|
@@ -609,14 +609,14 @@ export type Range = {
|
|
|
609
609
|
character: number;
|
|
610
610
|
};
|
|
611
611
|
};
|
|
612
|
-
export type
|
|
612
|
+
export type SessionV1ToolStatePending = {
|
|
613
613
|
status: "pending";
|
|
614
614
|
input: {
|
|
615
615
|
[x: string]: any;
|
|
616
616
|
};
|
|
617
617
|
raw: string;
|
|
618
618
|
};
|
|
619
|
-
export type
|
|
619
|
+
export type SessionV1ToolStateRunning = {
|
|
620
620
|
status: "running";
|
|
621
621
|
input: {
|
|
622
622
|
[x: string]: any;
|
|
@@ -629,7 +629,7 @@ export type ToolStateRunning = {
|
|
|
629
629
|
start: number;
|
|
630
630
|
};
|
|
631
631
|
};
|
|
632
|
-
export type
|
|
632
|
+
export type SessionV1ToolStateError = {
|
|
633
633
|
status: "error";
|
|
634
634
|
input: {
|
|
635
635
|
[x: string]: any;
|
|
@@ -643,14 +643,14 @@ export type ToolStateError = {
|
|
|
643
643
|
end: number;
|
|
644
644
|
};
|
|
645
645
|
};
|
|
646
|
-
export type
|
|
646
|
+
export type SessionV1StepStartPart = {
|
|
647
647
|
id: string;
|
|
648
648
|
sessionID: string;
|
|
649
649
|
messageID: string;
|
|
650
650
|
type: "step-start";
|
|
651
651
|
snapshot?: string | undefined;
|
|
652
652
|
};
|
|
653
|
-
export type
|
|
653
|
+
export type SessionV1StepFinishPart = {
|
|
654
654
|
id: string;
|
|
655
655
|
sessionID: string;
|
|
656
656
|
messageID: string;
|
|
@@ -669,14 +669,14 @@ export type StepFinishPart = {
|
|
|
669
669
|
};
|
|
670
670
|
};
|
|
671
671
|
};
|
|
672
|
-
export type
|
|
672
|
+
export type SessionV1SnapshotPart = {
|
|
673
673
|
id: string;
|
|
674
674
|
sessionID: string;
|
|
675
675
|
messageID: string;
|
|
676
676
|
type: "snapshot";
|
|
677
677
|
snapshot: string;
|
|
678
678
|
};
|
|
679
|
-
export type
|
|
679
|
+
export type SessionV1PatchPart = {
|
|
680
680
|
id: string;
|
|
681
681
|
sessionID: string;
|
|
682
682
|
messageID: string;
|
|
@@ -684,7 +684,7 @@ export type PatchPart = {
|
|
|
684
684
|
hash: string;
|
|
685
685
|
files: Array<string>;
|
|
686
686
|
};
|
|
687
|
-
export type
|
|
687
|
+
export type SessionV1AgentPart = {
|
|
688
688
|
id: string;
|
|
689
689
|
sessionID: string;
|
|
690
690
|
messageID: string;
|
|
@@ -696,7 +696,7 @@ export type AgentPart = {
|
|
|
696
696
|
end: number;
|
|
697
697
|
} | undefined;
|
|
698
698
|
};
|
|
699
|
-
export type
|
|
699
|
+
export type SessionV1CompactionPart = {
|
|
700
700
|
id: string;
|
|
701
701
|
sessionID: string;
|
|
702
702
|
messageID: string;
|
|
@@ -705,7 +705,7 @@ export type CompactionPart = {
|
|
|
705
705
|
overflow?: boolean | undefined;
|
|
706
706
|
tail_start_id?: string | undefined;
|
|
707
707
|
};
|
|
708
|
-
export type
|
|
708
|
+
export type PermissionReply = "once" | "always" | "reject";
|
|
709
709
|
export type Pty = {
|
|
710
710
|
id: string;
|
|
711
711
|
title: string;
|
|
@@ -716,15 +716,15 @@ export type Pty = {
|
|
|
716
716
|
pid: number;
|
|
717
717
|
exitCode?: number;
|
|
718
718
|
};
|
|
719
|
-
export type
|
|
719
|
+
export type QuestionOption = {
|
|
720
720
|
label: string;
|
|
721
721
|
description: string;
|
|
722
722
|
};
|
|
723
|
-
export type
|
|
723
|
+
export type QuestionTool = {
|
|
724
724
|
messageID: string;
|
|
725
725
|
callID: string;
|
|
726
726
|
};
|
|
727
|
-
export type
|
|
727
|
+
export type QuestionAnswer = Array<string>;
|
|
728
728
|
export type FormMetadata1 = {
|
|
729
729
|
[x: string]: any;
|
|
730
730
|
};
|
|
@@ -751,15 +751,6 @@ export type SessionStatus = {
|
|
|
751
751
|
} | {
|
|
752
752
|
type: "busy";
|
|
753
753
|
};
|
|
754
|
-
export type QuestionOption = {
|
|
755
|
-
label: string;
|
|
756
|
-
description: string;
|
|
757
|
-
};
|
|
758
|
-
export type QuestionTool = {
|
|
759
|
-
messageID: string;
|
|
760
|
-
callID: string;
|
|
761
|
-
};
|
|
762
|
-
export type QuestionAnswer = Array<string>;
|
|
763
754
|
export type ShellInfo1 = {
|
|
764
755
|
id: string;
|
|
765
756
|
status: "running" | "exited" | "timeout" | "killed";
|
|
@@ -837,13 +828,13 @@ export type ProviderRequest = {
|
|
|
837
828
|
[x: string]: string;
|
|
838
829
|
};
|
|
839
830
|
body: {
|
|
840
|
-
[x: string]:
|
|
831
|
+
[x: string]: any;
|
|
841
832
|
};
|
|
842
833
|
};
|
|
843
|
-
export type
|
|
834
|
+
export type PermissionRule = {
|
|
844
835
|
action: string;
|
|
845
836
|
resource: string;
|
|
846
|
-
effect:
|
|
837
|
+
effect: PermissionEffect;
|
|
847
838
|
};
|
|
848
839
|
export type SessionAgentSelected = {
|
|
849
840
|
id: string;
|
|
@@ -1620,13 +1611,13 @@ export type ShellDeleted = {
|
|
|
1620
1611
|
id: string;
|
|
1621
1612
|
};
|
|
1622
1613
|
};
|
|
1623
|
-
export type
|
|
1614
|
+
export type QuestionRejected = {
|
|
1624
1615
|
id: string;
|
|
1625
1616
|
created: number;
|
|
1626
1617
|
metadata?: {
|
|
1627
1618
|
[x: string]: any;
|
|
1628
1619
|
};
|
|
1629
|
-
type: "question.
|
|
1620
|
+
type: "question.rejected";
|
|
1630
1621
|
location?: LocationRef;
|
|
1631
1622
|
data: {
|
|
1632
1623
|
sessionID: string;
|
|
@@ -1779,56 +1770,6 @@ export type McpResourcesChanged = {
|
|
|
1779
1770
|
server: string;
|
|
1780
1771
|
};
|
|
1781
1772
|
};
|
|
1782
|
-
export type PermissionAsked = {
|
|
1783
|
-
id: string;
|
|
1784
|
-
created: number;
|
|
1785
|
-
metadata?: {
|
|
1786
|
-
[x: string]: any;
|
|
1787
|
-
};
|
|
1788
|
-
type: "permission.asked";
|
|
1789
|
-
location?: LocationRef;
|
|
1790
|
-
data: {
|
|
1791
|
-
id: string;
|
|
1792
|
-
sessionID: string;
|
|
1793
|
-
permission: string;
|
|
1794
|
-
patterns: Array<string>;
|
|
1795
|
-
metadata: {
|
|
1796
|
-
[x: string]: any;
|
|
1797
|
-
};
|
|
1798
|
-
always: Array<string>;
|
|
1799
|
-
tool?: {
|
|
1800
|
-
messageID: string;
|
|
1801
|
-
callID: string;
|
|
1802
|
-
} | undefined;
|
|
1803
|
-
};
|
|
1804
|
-
};
|
|
1805
|
-
export type PermissionReplied = {
|
|
1806
|
-
id: string;
|
|
1807
|
-
created: number;
|
|
1808
|
-
metadata?: {
|
|
1809
|
-
[x: string]: any;
|
|
1810
|
-
};
|
|
1811
|
-
type: "permission.replied";
|
|
1812
|
-
location?: LocationRef;
|
|
1813
|
-
data: {
|
|
1814
|
-
sessionID: string;
|
|
1815
|
-
requestID: string;
|
|
1816
|
-
reply: "once" | "always" | "reject";
|
|
1817
|
-
};
|
|
1818
|
-
};
|
|
1819
|
-
export type QuestionRejected = {
|
|
1820
|
-
id: string;
|
|
1821
|
-
created: number;
|
|
1822
|
-
metadata?: {
|
|
1823
|
-
[x: string]: any;
|
|
1824
|
-
};
|
|
1825
|
-
type: "question.rejected";
|
|
1826
|
-
location?: LocationRef;
|
|
1827
|
-
data: {
|
|
1828
|
-
sessionID: string;
|
|
1829
|
-
requestID: string;
|
|
1830
|
-
};
|
|
1831
|
-
};
|
|
1832
1773
|
export type V2EventServerConnected = {
|
|
1833
1774
|
id: string;
|
|
1834
1775
|
metadata?: {
|
|
@@ -2246,7 +2187,7 @@ export type FormMultiselectField = {
|
|
|
2246
2187
|
export type FormAnswer = {
|
|
2247
2188
|
[x: string]: FormValue;
|
|
2248
2189
|
};
|
|
2249
|
-
export type
|
|
2190
|
+
export type PermissionRequest = {
|
|
2250
2191
|
id: string;
|
|
2251
2192
|
sessionID: string;
|
|
2252
2193
|
action: string;
|
|
@@ -2255,15 +2196,15 @@ export type PermissionV2Request = {
|
|
|
2255
2196
|
metadata?: {
|
|
2256
2197
|
[x: string]: JsonValue;
|
|
2257
2198
|
};
|
|
2258
|
-
source?:
|
|
2199
|
+
source?: PermissionSource;
|
|
2259
2200
|
};
|
|
2260
|
-
export type
|
|
2201
|
+
export type PermissionAsked = {
|
|
2261
2202
|
id: string;
|
|
2262
2203
|
created: number;
|
|
2263
2204
|
metadata?: {
|
|
2264
2205
|
[x: string]: any;
|
|
2265
2206
|
};
|
|
2266
|
-
type: "permission.
|
|
2207
|
+
type: "permission.asked";
|
|
2267
2208
|
location?: LocationRef;
|
|
2268
2209
|
data: {
|
|
2269
2210
|
id: string;
|
|
@@ -2274,22 +2215,22 @@ export type PermissionV2Asked = {
|
|
|
2274
2215
|
metadata?: {
|
|
2275
2216
|
[x: string]: any;
|
|
2276
2217
|
};
|
|
2277
|
-
source?:
|
|
2218
|
+
source?: PermissionSource;
|
|
2278
2219
|
};
|
|
2279
2220
|
};
|
|
2280
|
-
export type
|
|
2221
|
+
export type PermissionV1Rule = {
|
|
2281
2222
|
permission: string;
|
|
2282
2223
|
pattern: string;
|
|
2283
|
-
action:
|
|
2224
|
+
action: PermissionV1Action;
|
|
2284
2225
|
};
|
|
2285
|
-
export type
|
|
2226
|
+
export type SessionV1OutputFormat = {
|
|
2286
2227
|
type: "text";
|
|
2287
2228
|
} | {
|
|
2288
2229
|
type: "json_schema";
|
|
2289
|
-
schema:
|
|
2230
|
+
schema: SessionV1JSONSchema;
|
|
2290
2231
|
retryCount?: number | undefined | undefined;
|
|
2291
2232
|
};
|
|
2292
|
-
export type
|
|
2233
|
+
export type SessionV1AssistantMessage = {
|
|
2293
2234
|
id: string;
|
|
2294
2235
|
sessionID: string;
|
|
2295
2236
|
role: "assistant";
|
|
@@ -2323,7 +2264,7 @@ export type AssistantMessage = {
|
|
|
2323
2264
|
variant?: string | undefined;
|
|
2324
2265
|
finish?: string | undefined;
|
|
2325
2266
|
};
|
|
2326
|
-
export type
|
|
2267
|
+
export type SessionV1RetryPart = {
|
|
2327
2268
|
id: string;
|
|
2328
2269
|
sessionID: string;
|
|
2329
2270
|
messageID: string;
|
|
@@ -2347,37 +2288,37 @@ export type SessionError = {
|
|
|
2347
2288
|
error?: ProviderAuthError | UnknownError2 | MessageOutputLengthError | MessageAbortedError | StructuredOutputError | ContextOverflowError | ContentFilterError | APIError | undefined;
|
|
2348
2289
|
};
|
|
2349
2290
|
};
|
|
2350
|
-
export type
|
|
2351
|
-
text:
|
|
2291
|
+
export type SessionV1FileSource = {
|
|
2292
|
+
text: SessionV1FilePartSourceText;
|
|
2352
2293
|
type: "file";
|
|
2353
2294
|
path: string;
|
|
2354
2295
|
};
|
|
2355
|
-
export type
|
|
2356
|
-
text:
|
|
2296
|
+
export type SessionV1ResourceSource = {
|
|
2297
|
+
text: SessionV1FilePartSourceText;
|
|
2357
2298
|
type: "resource";
|
|
2358
2299
|
clientName: string;
|
|
2359
2300
|
uri: string;
|
|
2360
2301
|
};
|
|
2361
|
-
export type
|
|
2362
|
-
text:
|
|
2302
|
+
export type SessionV1SymbolSource = {
|
|
2303
|
+
text: SessionV1FilePartSourceText;
|
|
2363
2304
|
type: "symbol";
|
|
2364
2305
|
path: string;
|
|
2365
|
-
range:
|
|
2306
|
+
range: SessionV1Range;
|
|
2366
2307
|
name: string;
|
|
2367
2308
|
kind: number;
|
|
2368
2309
|
};
|
|
2369
|
-
export type
|
|
2310
|
+
export type PermissionReplied = {
|
|
2370
2311
|
id: string;
|
|
2371
2312
|
created: number;
|
|
2372
2313
|
metadata?: {
|
|
2373
2314
|
[x: string]: any;
|
|
2374
2315
|
};
|
|
2375
|
-
type: "permission.
|
|
2316
|
+
type: "permission.replied";
|
|
2376
2317
|
location?: LocationRef;
|
|
2377
2318
|
data: {
|
|
2378
2319
|
sessionID: string;
|
|
2379
2320
|
requestID: string;
|
|
2380
|
-
reply:
|
|
2321
|
+
reply: PermissionReply;
|
|
2381
2322
|
};
|
|
2382
2323
|
};
|
|
2383
2324
|
export type PtyCreated = {
|
|
@@ -2404,25 +2345,25 @@ export type PtyUpdated = {
|
|
|
2404
2345
|
info: Pty;
|
|
2405
2346
|
};
|
|
2406
2347
|
};
|
|
2407
|
-
export type
|
|
2348
|
+
export type QuestionInfo = {
|
|
2408
2349
|
question: string;
|
|
2409
2350
|
header: string;
|
|
2410
|
-
options: Array<
|
|
2351
|
+
options: Array<QuestionOption>;
|
|
2411
2352
|
multiple?: boolean;
|
|
2412
2353
|
custom?: boolean;
|
|
2413
2354
|
};
|
|
2414
|
-
export type
|
|
2355
|
+
export type QuestionReplied = {
|
|
2415
2356
|
id: string;
|
|
2416
2357
|
created: number;
|
|
2417
2358
|
metadata?: {
|
|
2418
2359
|
[x: string]: any;
|
|
2419
2360
|
};
|
|
2420
|
-
type: "question.
|
|
2361
|
+
type: "question.replied";
|
|
2421
2362
|
location?: LocationRef;
|
|
2422
2363
|
data: {
|
|
2423
2364
|
sessionID: string;
|
|
2424
2365
|
requestID: string;
|
|
2425
|
-
answers: Array<
|
|
2366
|
+
answers: Array<QuestionAnswer>;
|
|
2426
2367
|
};
|
|
2427
2368
|
};
|
|
2428
2369
|
export type FormStringField1 = {
|
|
@@ -2498,29 +2439,8 @@ export type SessionStatus2 = {
|
|
|
2498
2439
|
status: SessionStatus;
|
|
2499
2440
|
};
|
|
2500
2441
|
};
|
|
2501
|
-
export type QuestionInfo = {
|
|
2502
|
-
question: string;
|
|
2503
|
-
header: string;
|
|
2504
|
-
options: Array<QuestionOption>;
|
|
2505
|
-
multiple?: boolean | undefined;
|
|
2506
|
-
custom?: boolean | undefined;
|
|
2507
|
-
};
|
|
2508
|
-
export type QuestionReplied = {
|
|
2509
|
-
id: string;
|
|
2510
|
-
created: number;
|
|
2511
|
-
metadata?: {
|
|
2512
|
-
[x: string]: any;
|
|
2513
|
-
};
|
|
2514
|
-
type: "question.replied";
|
|
2515
|
-
location?: LocationRef;
|
|
2516
|
-
data: {
|
|
2517
|
-
sessionID: string;
|
|
2518
|
-
requestID: string;
|
|
2519
|
-
answers: Array<QuestionAnswer>;
|
|
2520
|
-
};
|
|
2521
|
-
};
|
|
2522
2442
|
export type ReferenceSource = ReferenceLocalSource | ReferenceGitSource;
|
|
2523
|
-
export type
|
|
2443
|
+
export type PermissionRuleset = Array<PermissionRule>;
|
|
2524
2444
|
export type SessionInfo = {
|
|
2525
2445
|
id: string;
|
|
2526
2446
|
parentID?: string;
|
|
@@ -2672,13 +2592,13 @@ export type ModelInfo = {
|
|
|
2672
2592
|
compatibility?: ModelCompatibility;
|
|
2673
2593
|
package?: string;
|
|
2674
2594
|
settings?: {
|
|
2675
|
-
[x: string]:
|
|
2595
|
+
[x: string]: any;
|
|
2676
2596
|
};
|
|
2677
2597
|
headers?: {
|
|
2678
2598
|
[x: string]: string;
|
|
2679
2599
|
};
|
|
2680
2600
|
body?: {
|
|
2681
|
-
[x: string]:
|
|
2601
|
+
[x: string]: any;
|
|
2682
2602
|
};
|
|
2683
2603
|
capabilities: ModelCapabilities;
|
|
2684
2604
|
variants: Array<ModelVariant>;
|
|
@@ -2723,15 +2643,15 @@ export type FormReplied = {
|
|
|
2723
2643
|
answer: FormAnswer;
|
|
2724
2644
|
};
|
|
2725
2645
|
};
|
|
2726
|
-
export type
|
|
2727
|
-
export type
|
|
2646
|
+
export type PermissionV1Ruleset = Array<PermissionV1Rule>;
|
|
2647
|
+
export type SessionV1UserMessage = {
|
|
2728
2648
|
id: string;
|
|
2729
2649
|
sessionID: string;
|
|
2730
2650
|
role: "user";
|
|
2731
2651
|
time: {
|
|
2732
2652
|
created: number;
|
|
2733
2653
|
};
|
|
2734
|
-
format?:
|
|
2654
|
+
format?: SessionV1OutputFormat | undefined;
|
|
2735
2655
|
summary?: {
|
|
2736
2656
|
title?: string | undefined;
|
|
2737
2657
|
body?: string | undefined;
|
|
@@ -2748,44 +2668,29 @@ export type UserMessage = {
|
|
|
2748
2668
|
[x: string]: boolean;
|
|
2749
2669
|
} | undefined;
|
|
2750
2670
|
};
|
|
2751
|
-
export type
|
|
2752
|
-
export type
|
|
2671
|
+
export type SessionV1FilePartSource = SessionV1FileSource | SessionV1SymbolSource | SessionV1ResourceSource;
|
|
2672
|
+
export type QuestionAsked = {
|
|
2753
2673
|
id: string;
|
|
2754
2674
|
created: number;
|
|
2755
2675
|
metadata?: {
|
|
2756
2676
|
[x: string]: any;
|
|
2757
2677
|
};
|
|
2758
|
-
type: "question.
|
|
2678
|
+
type: "question.asked";
|
|
2759
2679
|
location?: LocationRef;
|
|
2760
2680
|
data: {
|
|
2761
2681
|
id: string;
|
|
2762
2682
|
sessionID: string;
|
|
2763
|
-
questions: Array<
|
|
2764
|
-
tool?:
|
|
2683
|
+
questions: Array<QuestionInfo>;
|
|
2684
|
+
tool?: QuestionTool;
|
|
2765
2685
|
};
|
|
2766
2686
|
};
|
|
2767
|
-
export type
|
|
2687
|
+
export type QuestionRequest = {
|
|
2768
2688
|
id: string;
|
|
2769
2689
|
sessionID: string;
|
|
2770
|
-
questions: Array<
|
|
2771
|
-
tool?:
|
|
2690
|
+
questions: Array<QuestionInfo>;
|
|
2691
|
+
tool?: QuestionTool;
|
|
2772
2692
|
};
|
|
2773
2693
|
export type FormField1 = FormStringField1 | FormNumberField1 | FormIntegerField1 | FormBooleanField1 | FormMultiselectField1 | FormExternalField;
|
|
2774
|
-
export type QuestionAsked = {
|
|
2775
|
-
id: string;
|
|
2776
|
-
created: number;
|
|
2777
|
-
metadata?: {
|
|
2778
|
-
[x: string]: any;
|
|
2779
|
-
};
|
|
2780
|
-
type: "question.asked";
|
|
2781
|
-
location?: LocationRef;
|
|
2782
|
-
data: {
|
|
2783
|
-
id: string;
|
|
2784
|
-
sessionID: string;
|
|
2785
|
-
questions: Array<QuestionInfo>;
|
|
2786
|
-
tool?: QuestionTool | undefined;
|
|
2787
|
-
};
|
|
2788
|
-
};
|
|
2789
2694
|
export type ReferenceInfo = {
|
|
2790
2695
|
name: string;
|
|
2791
2696
|
path: string;
|
|
@@ -2804,7 +2709,7 @@ export type AgentInfo = {
|
|
|
2804
2709
|
hidden: boolean;
|
|
2805
2710
|
color?: AgentColor;
|
|
2806
2711
|
steps?: number;
|
|
2807
|
-
permissions:
|
|
2712
|
+
permissions: PermissionRuleset;
|
|
2808
2713
|
};
|
|
2809
2714
|
export type SessionsResponse = {
|
|
2810
2715
|
data: Array<SessionInfo>;
|
|
@@ -2887,7 +2792,7 @@ export type SessionV1Info = {
|
|
|
2887
2792
|
compacting?: number;
|
|
2888
2793
|
archived?: number;
|
|
2889
2794
|
};
|
|
2890
|
-
permission?:
|
|
2795
|
+
permission?: PermissionV1Ruleset;
|
|
2891
2796
|
revert?: {
|
|
2892
2797
|
messageID: string;
|
|
2893
2798
|
partID?: string;
|
|
@@ -2895,8 +2800,8 @@ export type SessionV1Info = {
|
|
|
2895
2800
|
diff?: string;
|
|
2896
2801
|
};
|
|
2897
2802
|
};
|
|
2898
|
-
export type
|
|
2899
|
-
export type
|
|
2803
|
+
export type SessionV1Message = SessionV1UserMessage | SessionV1AssistantMessage;
|
|
2804
|
+
export type SessionV1FilePart = {
|
|
2900
2805
|
id: string;
|
|
2901
2806
|
sessionID: string;
|
|
2902
2807
|
messageID: string;
|
|
@@ -2904,7 +2809,7 @@ export type FilePart = {
|
|
|
2904
2809
|
mime: string;
|
|
2905
2810
|
filename?: string | undefined;
|
|
2906
2811
|
url: string;
|
|
2907
|
-
source?:
|
|
2812
|
+
source?: SessionV1FilePartSource | undefined;
|
|
2908
2813
|
};
|
|
2909
2814
|
export type FormFields1 = [FormField1, ...Array<FormField1>];
|
|
2910
2815
|
export type SessionPendingInfo = SessionPendingUser | SessionPendingSynthetic | SessionPendingCompaction;
|
|
@@ -3015,10 +2920,10 @@ export type MessageUpdated = {
|
|
|
3015
2920
|
location?: LocationRef;
|
|
3016
2921
|
data: {
|
|
3017
2922
|
sessionID: string;
|
|
3018
|
-
info:
|
|
2923
|
+
info: SessionV1Message;
|
|
3019
2924
|
};
|
|
3020
2925
|
};
|
|
3021
|
-
export type
|
|
2926
|
+
export type SessionV1ToolStateCompleted = {
|
|
3022
2927
|
status: "completed";
|
|
3023
2928
|
input: {
|
|
3024
2929
|
[x: string]: any;
|
|
@@ -3033,7 +2938,7 @@ export type ToolStateCompleted = {
|
|
|
3033
2938
|
end: number;
|
|
3034
2939
|
compacted?: number | undefined;
|
|
3035
2940
|
};
|
|
3036
|
-
attachments?: Array<
|
|
2941
|
+
attachments?: Array<SessionV1FilePart> | undefined;
|
|
3037
2942
|
};
|
|
3038
2943
|
export type FormInfo1 = {
|
|
3039
2944
|
id: string;
|
|
@@ -3062,7 +2967,7 @@ export type SessionInputAdmitted = {
|
|
|
3062
2967
|
};
|
|
3063
2968
|
};
|
|
3064
2969
|
export type SessionMessageInfo = SessionMessageAgentSelected | SessionMessageModelSelected | SessionMessageUser | SessionMessageSynthetic | SessionMessageSystem | SessionMessageSkill | SessionMessageShell | SessionMessageAssistant | SessionMessageCompaction;
|
|
3065
|
-
export type
|
|
2970
|
+
export type SessionV1ToolState = SessionV1ToolStatePending | SessionV1ToolStateRunning | SessionV1ToolStateCompleted | SessionV1ToolStateError;
|
|
3066
2971
|
export type FormCreated = {
|
|
3067
2972
|
id: string;
|
|
3068
2973
|
created: number;
|
|
@@ -3083,20 +2988,20 @@ export type SessionMessagesResponse = {
|
|
|
3083
2988
|
next?: string | null;
|
|
3084
2989
|
};
|
|
3085
2990
|
};
|
|
3086
|
-
export type
|
|
2991
|
+
export type SessionV1ToolPart = {
|
|
3087
2992
|
id: string;
|
|
3088
2993
|
sessionID: string;
|
|
3089
2994
|
messageID: string;
|
|
3090
2995
|
type: "tool";
|
|
3091
2996
|
callID: string;
|
|
3092
2997
|
tool: string;
|
|
3093
|
-
state:
|
|
2998
|
+
state: SessionV1ToolState;
|
|
3094
2999
|
metadata?: {
|
|
3095
3000
|
[x: string]: any;
|
|
3096
3001
|
} | undefined;
|
|
3097
3002
|
};
|
|
3098
3003
|
export type SessionLogItem = SessionEventDurable | EventLogSynced;
|
|
3099
|
-
export type
|
|
3004
|
+
export type SessionV1Part = SessionV1TextPart | SessionV1SubtaskPart | SessionV1ReasoningPart | SessionV1FilePart | SessionV1ToolPart | SessionV1StepStartPart | SessionV1StepFinishPart | SessionV1SnapshotPart | SessionV1PatchPart | SessionV1AgentPart | SessionV1RetryPart | SessionV1CompactionPart;
|
|
3100
3005
|
export type MessagePartUpdated = {
|
|
3101
3006
|
id: string;
|
|
3102
3007
|
created: number;
|
|
@@ -3112,11 +3017,11 @@ export type MessagePartUpdated = {
|
|
|
3112
3017
|
location?: LocationRef;
|
|
3113
3018
|
data: {
|
|
3114
3019
|
sessionID: string;
|
|
3115
|
-
part:
|
|
3020
|
+
part: SessionV1Part;
|
|
3116
3021
|
time: number;
|
|
3117
3022
|
};
|
|
3118
3023
|
};
|
|
3119
|
-
export type V2Event = ModelsDevRefreshed | IntegrationUpdated | IntegrationConnectionUpdated | CatalogUpdated | AgentUpdated | SessionCreated | SessionUpdated | SessionDeleted1 | MessageUpdated | MessageRemoved | MessagePartUpdated | MessagePartRemoved | SessionAgentSelected | SessionModelSelected | SessionMoved | SessionRenamed | SessionUsageUpdated | SessionDeleted | SessionForked | SessionInputPromoted | SessionInputAdmitted | SessionExecutionStarted | SessionExecutionSucceeded | SessionExecutionFailed | SessionExecutionInterrupted | SessionInstructionsUpdated | SessionSynthetic | SessionSkillActivated | SessionShellStarted | SessionShellEnded | SessionStepStarted | SessionStepEnded | SessionStepFailed | SessionTextStarted | SessionTextDelta | SessionTextEnded | SessionReasoningStarted | SessionReasoningDelta | SessionReasoningEnded | SessionToolInputStarted | SessionToolInputDelta | SessionToolInputEnded | SessionToolCalled | SessionToolProgress | SessionToolSuccess | SessionToolFailed | SessionRetryScheduled | SessionCompactionAdmitted | SessionCompactionStarted | SessionCompactionDelta | SessionCompactionEnded | SessionCompactionFailed | SessionRevertStaged | SessionRevertCleared | SessionRevertCommitted | FilesystemChanged | ReferenceUpdated |
|
|
3024
|
+
export type V2Event = ModelsDevRefreshed | IntegrationUpdated | IntegrationConnectionUpdated | CatalogUpdated | AgentUpdated | SessionCreated | SessionUpdated | SessionDeleted1 | MessageUpdated | MessageRemoved | MessagePartUpdated | MessagePartRemoved | SessionAgentSelected | SessionModelSelected | SessionMoved | SessionRenamed | SessionUsageUpdated | SessionDeleted | SessionForked | SessionInputPromoted | SessionInputAdmitted | SessionExecutionStarted | SessionExecutionSucceeded | SessionExecutionFailed | SessionExecutionInterrupted | SessionInstructionsUpdated | SessionSynthetic | SessionSkillActivated | SessionShellStarted | SessionShellEnded | SessionStepStarted | SessionStepEnded | SessionStepFailed | SessionTextStarted | SessionTextDelta | SessionTextEnded | SessionReasoningStarted | SessionReasoningDelta | SessionReasoningEnded | SessionToolInputStarted | SessionToolInputDelta | SessionToolInputEnded | SessionToolCalled | SessionToolProgress | SessionToolSuccess | SessionToolFailed | SessionRetryScheduled | SessionCompactionAdmitted | SessionCompactionStarted | SessionCompactionDelta | SessionCompactionEnded | SessionCompactionFailed | SessionRevertStaged | SessionRevertCleared | SessionRevertCommitted | FilesystemChanged | ReferenceUpdated | PermissionAsked | PermissionReplied | PluginAdded | PluginUpdated | ProjectDirectoriesUpdated | CommandUpdated | ConfigUpdated | SkillUpdated | PtyCreated | PtyUpdated | PtyExited | PtyDeleted | ShellCreated | ShellExited | ShellDeleted | QuestionAsked | QuestionReplied | QuestionRejected | FormCreated | FormReplied | FormCancelled | WebsearchUpdated | SessionStatus2 | SessionIdle | TuiPromptAppend | TuiCommandExecute | TuiToastShow | TuiSessionSelect | InstallationUpdated | InstallationUpdateAvailable | VcsBranchUpdated | McpStatusChanged | McpResourcesChanged | SessionError | V2EventServerConnected;
|
|
3120
3025
|
export type UnauthorizedError = {
|
|
3121
3026
|
readonly _tag: "UnauthorizedError";
|
|
3122
3027
|
readonly message: string;
|
|
@@ -3129,6 +3034,12 @@ export type InvalidRequestError = {
|
|
|
3129
3034
|
readonly field?: string | undefined;
|
|
3130
3035
|
};
|
|
3131
3036
|
export declare const isInvalidRequestError: (value: unknown) => value is InvalidRequestError;
|
|
3037
|
+
export type AgentNotFoundError = {
|
|
3038
|
+
readonly _tag: "AgentNotFoundError";
|
|
3039
|
+
readonly agentID: string;
|
|
3040
|
+
readonly message: string;
|
|
3041
|
+
};
|
|
3042
|
+
export declare const isAgentNotFoundError: (value: unknown) => value is AgentNotFoundError;
|
|
3132
3043
|
export type InvalidCursorError = {
|
|
3133
3044
|
readonly _tag: "InvalidCursorError";
|
|
3134
3045
|
readonly message: string;
|
|
@@ -3303,6 +3214,28 @@ export type AgentListOutput = {
|
|
|
3303
3214
|
};
|
|
3304
3215
|
data: Array<AgentInfo>;
|
|
3305
3216
|
};
|
|
3217
|
+
export type AgentGetInput = {
|
|
3218
|
+
readonly agentID: {
|
|
3219
|
+
readonly agentID: string;
|
|
3220
|
+
}["agentID"];
|
|
3221
|
+
readonly location?: {
|
|
3222
|
+
readonly location?: {
|
|
3223
|
+
readonly directory?: string | undefined;
|
|
3224
|
+
readonly workspace?: string | undefined;
|
|
3225
|
+
} | undefined;
|
|
3226
|
+
}["location"];
|
|
3227
|
+
};
|
|
3228
|
+
export type AgentGetOutput = {
|
|
3229
|
+
location: {
|
|
3230
|
+
directory: string;
|
|
3231
|
+
workspaceID?: string;
|
|
3232
|
+
project: {
|
|
3233
|
+
id: string;
|
|
3234
|
+
directory: string;
|
|
3235
|
+
};
|
|
3236
|
+
};
|
|
3237
|
+
data: AgentInfo;
|
|
3238
|
+
};
|
|
3306
3239
|
export type PluginListInput = {
|
|
3307
3240
|
readonly location?: {
|
|
3308
3241
|
readonly location?: {
|
|
@@ -4386,7 +4319,7 @@ export type ProviderListOutput = {
|
|
|
4386
4319
|
directory: string;
|
|
4387
4320
|
};
|
|
4388
4321
|
};
|
|
4389
|
-
data: Array<
|
|
4322
|
+
data: Array<ProviderInfo>;
|
|
4390
4323
|
};
|
|
4391
4324
|
export type ProviderGetInput = {
|
|
4392
4325
|
readonly providerID: {
|
|
@@ -4408,7 +4341,7 @@ export type ProviderGetOutput = {
|
|
|
4408
4341
|
directory: string;
|
|
4409
4342
|
};
|
|
4410
4343
|
};
|
|
4411
|
-
data:
|
|
4344
|
+
data: ProviderInfo;
|
|
4412
4345
|
};
|
|
4413
4346
|
export type IntegrationListInput = {
|
|
4414
4347
|
readonly location?: {
|
|
@@ -5706,7 +5639,7 @@ export type PermissionRequestListOutput = {
|
|
|
5706
5639
|
directory: string;
|
|
5707
5640
|
};
|
|
5708
5641
|
};
|
|
5709
|
-
data: Array<
|
|
5642
|
+
data: Array<PermissionRequest>;
|
|
5710
5643
|
};
|
|
5711
5644
|
export type PermissionSavedListInput = {
|
|
5712
5645
|
readonly projectID?: {
|
|
@@ -5835,7 +5768,7 @@ export type PermissionCreateInput = {
|
|
|
5835
5768
|
export type PermissionCreateOutput = {
|
|
5836
5769
|
data: {
|
|
5837
5770
|
id: string;
|
|
5838
|
-
effect:
|
|
5771
|
+
effect: PermissionEffect;
|
|
5839
5772
|
};
|
|
5840
5773
|
}["data"];
|
|
5841
5774
|
export type PermissionListInput = {
|
|
@@ -5844,7 +5777,7 @@ export type PermissionListInput = {
|
|
|
5844
5777
|
}["sessionID"];
|
|
5845
5778
|
};
|
|
5846
5779
|
export type PermissionListOutput = {
|
|
5847
|
-
data: Array<
|
|
5780
|
+
data: Array<PermissionRequest>;
|
|
5848
5781
|
}["data"];
|
|
5849
5782
|
export type PermissionGetInput = {
|
|
5850
5783
|
readonly sessionID: {
|
|
@@ -5857,7 +5790,7 @@ export type PermissionGetInput = {
|
|
|
5857
5790
|
}["requestID"];
|
|
5858
5791
|
};
|
|
5859
5792
|
export type PermissionGetOutput = {
|
|
5860
|
-
data:
|
|
5793
|
+
data: PermissionRequest;
|
|
5861
5794
|
}["data"];
|
|
5862
5795
|
export type PermissionReplyInput = {
|
|
5863
5796
|
readonly sessionID: {
|
|
@@ -6347,7 +6280,7 @@ export type QuestionRequestListOutput = {
|
|
|
6347
6280
|
directory: string;
|
|
6348
6281
|
};
|
|
6349
6282
|
};
|
|
6350
|
-
data: Array<
|
|
6283
|
+
data: Array<QuestionRequest>;
|
|
6351
6284
|
};
|
|
6352
6285
|
export type QuestionListInput = {
|
|
6353
6286
|
readonly sessionID: {
|
|
@@ -6355,7 +6288,7 @@ export type QuestionListInput = {
|
|
|
6355
6288
|
}["sessionID"];
|
|
6356
6289
|
};
|
|
6357
6290
|
export type QuestionListOutput = {
|
|
6358
|
-
data: Array<
|
|
6291
|
+
data: Array<QuestionRequest>;
|
|
6359
6292
|
}["data"];
|
|
6360
6293
|
export type QuestionReplyInput = {
|
|
6361
6294
|
readonly sessionID: {
|