@opencode-ai/sdk 0.0.0-next-15342 → 0.0.0-next-15345
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/types.gen.d.ts +73 -90
- package/package.json +1 -1
|
@@ -413,23 +413,6 @@ export type CompactionPart = {
|
|
|
413
413
|
tail_start_id?: string;
|
|
414
414
|
};
|
|
415
415
|
export type Part = TextPart | SubtaskPart | ReasoningPart | FilePart | ToolPart | StepStartPart | StepFinishPart | SnapshotPart | PatchPart | AgentPart | RetryPart | CompactionPart;
|
|
416
|
-
export type Shell = {
|
|
417
|
-
id: string;
|
|
418
|
-
status: "running" | "exited" | "timeout" | "killed";
|
|
419
|
-
command: string;
|
|
420
|
-
cwd: string;
|
|
421
|
-
shell: string;
|
|
422
|
-
file: string;
|
|
423
|
-
pid?: number;
|
|
424
|
-
exit?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
425
|
-
metadata: {
|
|
426
|
-
[key: string]: unknown;
|
|
427
|
-
};
|
|
428
|
-
time: {
|
|
429
|
-
started: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
430
|
-
completed?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
431
|
-
};
|
|
432
|
-
};
|
|
433
416
|
export type Pty = {
|
|
434
417
|
id: string;
|
|
435
418
|
title: string;
|
|
@@ -694,14 +677,14 @@ export type GlobalEvent = {
|
|
|
694
677
|
type: "session.shell.started";
|
|
695
678
|
properties: {
|
|
696
679
|
sessionID: string;
|
|
697
|
-
shell:
|
|
680
|
+
shell: ShellInfo;
|
|
698
681
|
};
|
|
699
682
|
} | {
|
|
700
683
|
id: string;
|
|
701
684
|
type: "session.shell.ended";
|
|
702
685
|
properties: {
|
|
703
686
|
sessionID: string;
|
|
704
|
-
shell:
|
|
687
|
+
shell: ShellInfo;
|
|
705
688
|
output: {
|
|
706
689
|
output: string;
|
|
707
690
|
cursor: number;
|
|
@@ -1081,14 +1064,14 @@ export type GlobalEvent = {
|
|
|
1081
1064
|
id: string;
|
|
1082
1065
|
type: "shell.created";
|
|
1083
1066
|
properties: {
|
|
1084
|
-
info:
|
|
1067
|
+
info: ShellInfo;
|
|
1085
1068
|
};
|
|
1086
1069
|
} | {
|
|
1087
1070
|
id: string;
|
|
1088
1071
|
type: "shell.exited";
|
|
1089
1072
|
properties: {
|
|
1090
1073
|
id: string;
|
|
1091
|
-
exit?: number
|
|
1074
|
+
exit?: number;
|
|
1092
1075
|
status: "running" | "exited" | "timeout" | "killed";
|
|
1093
1076
|
};
|
|
1094
1077
|
} | {
|
|
@@ -2348,23 +2331,6 @@ export type InstructionEntryValueTooLargeError = {
|
|
|
2348
2331
|
maxBytes: number;
|
|
2349
2332
|
message: string;
|
|
2350
2333
|
};
|
|
2351
|
-
export type Shell1 = {
|
|
2352
|
-
id: string;
|
|
2353
|
-
status: "running" | "exited" | "timeout" | "killed";
|
|
2354
|
-
command: string;
|
|
2355
|
-
cwd: string;
|
|
2356
|
-
shell: string;
|
|
2357
|
-
file: string;
|
|
2358
|
-
pid?: number;
|
|
2359
|
-
exit?: number | "NaN" | "Infinity" | "-Infinity";
|
|
2360
|
-
metadata: {
|
|
2361
|
-
[key: string]: unknown;
|
|
2362
|
-
};
|
|
2363
|
-
time: {
|
|
2364
|
-
started: number | "NaN" | "Infinity" | "-Infinity";
|
|
2365
|
-
completed?: number | "NaN" | "Infinity" | "-Infinity";
|
|
2366
|
-
};
|
|
2367
|
-
};
|
|
2368
2334
|
export type SessionLogItem = SessionEventDurable | EventLogSynced;
|
|
2369
2335
|
export type SessionLogItemStream = string;
|
|
2370
2336
|
export type SessionMessagesResponse = {
|
|
@@ -2480,23 +2446,6 @@ export type VcsFileStatus2 = {
|
|
|
2480
2446
|
export type EffectHttpApiErrorForbidden = {
|
|
2481
2447
|
_tag: "Forbidden";
|
|
2482
2448
|
};
|
|
2483
|
-
export type Shell2 = {
|
|
2484
|
-
id: string;
|
|
2485
|
-
status: "running" | "exited" | "timeout" | "killed";
|
|
2486
|
-
command: string;
|
|
2487
|
-
cwd: string;
|
|
2488
|
-
shell: string;
|
|
2489
|
-
file: string;
|
|
2490
|
-
pid?: number;
|
|
2491
|
-
exit?: number | "NaN" | "Infinity" | "-Infinity";
|
|
2492
|
-
metadata: {
|
|
2493
|
-
[key: string]: unknown;
|
|
2494
|
-
};
|
|
2495
|
-
time: {
|
|
2496
|
-
started: number | "NaN" | "Infinity" | "-Infinity";
|
|
2497
|
-
completed?: number | "NaN" | "Infinity" | "-Infinity";
|
|
2498
|
-
};
|
|
2499
|
-
};
|
|
2500
2449
|
export type EventTuiPromptAppend2 = {
|
|
2501
2450
|
id: string;
|
|
2502
2451
|
type: "tui.prompt.append";
|
|
@@ -2676,6 +2625,23 @@ export type SessionStructuredError = {
|
|
|
2676
2625
|
type: string;
|
|
2677
2626
|
message: string;
|
|
2678
2627
|
};
|
|
2628
|
+
export type ShellInfo = {
|
|
2629
|
+
id: string;
|
|
2630
|
+
status: "running" | "exited" | "timeout" | "killed";
|
|
2631
|
+
command: string;
|
|
2632
|
+
cwd: string;
|
|
2633
|
+
shell: string;
|
|
2634
|
+
file: string;
|
|
2635
|
+
pid?: number;
|
|
2636
|
+
exit?: number;
|
|
2637
|
+
metadata: {
|
|
2638
|
+
[key: string]: unknown;
|
|
2639
|
+
};
|
|
2640
|
+
time: {
|
|
2641
|
+
started: number;
|
|
2642
|
+
completed?: number;
|
|
2643
|
+
};
|
|
2644
|
+
};
|
|
2679
2645
|
export type SessionMessageProviderState = {
|
|
2680
2646
|
[key: string]: unknown;
|
|
2681
2647
|
};
|
|
@@ -3172,7 +3138,7 @@ export type SyncEventSessionShellStarted = {
|
|
|
3172
3138
|
aggregateID: string;
|
|
3173
3139
|
data: {
|
|
3174
3140
|
sessionID: string;
|
|
3175
|
-
shell:
|
|
3141
|
+
shell: ShellInfo;
|
|
3176
3142
|
};
|
|
3177
3143
|
};
|
|
3178
3144
|
};
|
|
@@ -3186,7 +3152,7 @@ export type SyncEventSessionShellEnded = {
|
|
|
3186
3152
|
aggregateID: string;
|
|
3187
3153
|
data: {
|
|
3188
3154
|
sessionID: string;
|
|
3189
|
-
shell:
|
|
3155
|
+
shell: ShellInfo;
|
|
3190
3156
|
output: {
|
|
3191
3157
|
output: string;
|
|
3192
3158
|
cursor: number;
|
|
@@ -4195,7 +4161,7 @@ export type SessionShellStarted = {
|
|
|
4195
4161
|
location?: LocationRef;
|
|
4196
4162
|
data: {
|
|
4197
4163
|
sessionID: string;
|
|
4198
|
-
shell:
|
|
4164
|
+
shell: ShellInfo;
|
|
4199
4165
|
};
|
|
4200
4166
|
};
|
|
4201
4167
|
export type SessionShellEnded = {
|
|
@@ -4213,7 +4179,7 @@ export type SessionShellEnded = {
|
|
|
4213
4179
|
location?: LocationRef;
|
|
4214
4180
|
data: {
|
|
4215
4181
|
sessionID: string;
|
|
4216
|
-
shell:
|
|
4182
|
+
shell: ShellInfo;
|
|
4217
4183
|
output: {
|
|
4218
4184
|
output: string;
|
|
4219
4185
|
cursor: number;
|
|
@@ -5418,7 +5384,7 @@ export type ShellCreated = {
|
|
|
5418
5384
|
type: "shell.created";
|
|
5419
5385
|
location?: LocationRef;
|
|
5420
5386
|
data: {
|
|
5421
|
-
info:
|
|
5387
|
+
info: ShellInfo;
|
|
5422
5388
|
};
|
|
5423
5389
|
};
|
|
5424
5390
|
export type ShellExited = {
|
|
@@ -5431,7 +5397,7 @@ export type ShellExited = {
|
|
|
5431
5397
|
location?: LocationRef;
|
|
5432
5398
|
data: {
|
|
5433
5399
|
id: string;
|
|
5434
|
-
exit?: number
|
|
5400
|
+
exit?: number;
|
|
5435
5401
|
status: "running" | "exited" | "timeout" | "killed";
|
|
5436
5402
|
};
|
|
5437
5403
|
};
|
|
@@ -6152,7 +6118,7 @@ export type EventSessionShellStarted = {
|
|
|
6152
6118
|
type: "session.shell.started";
|
|
6153
6119
|
properties: {
|
|
6154
6120
|
sessionID: string;
|
|
6155
|
-
shell:
|
|
6121
|
+
shell: ShellInfo;
|
|
6156
6122
|
};
|
|
6157
6123
|
};
|
|
6158
6124
|
export type EventSessionShellEnded = {
|
|
@@ -6160,7 +6126,7 @@ export type EventSessionShellEnded = {
|
|
|
6160
6126
|
type: "session.shell.ended";
|
|
6161
6127
|
properties: {
|
|
6162
6128
|
sessionID: string;
|
|
6163
|
-
shell:
|
|
6129
|
+
shell: ShellInfo;
|
|
6164
6130
|
output: {
|
|
6165
6131
|
output: string;
|
|
6166
6132
|
cursor: number;
|
|
@@ -6585,7 +6551,7 @@ export type EventShellCreated = {
|
|
|
6585
6551
|
id: string;
|
|
6586
6552
|
type: "shell.created";
|
|
6587
6553
|
properties: {
|
|
6588
|
-
info:
|
|
6554
|
+
info: ShellInfo;
|
|
6589
6555
|
};
|
|
6590
6556
|
};
|
|
6591
6557
|
export type EventShellExited = {
|
|
@@ -6593,7 +6559,7 @@ export type EventShellExited = {
|
|
|
6593
6559
|
type: "shell.exited";
|
|
6594
6560
|
properties: {
|
|
6595
6561
|
id: string;
|
|
6596
|
-
exit?: number
|
|
6562
|
+
exit?: number;
|
|
6597
6563
|
status: "running" | "exited" | "timeout" | "killed";
|
|
6598
6564
|
};
|
|
6599
6565
|
};
|
|
@@ -6946,23 +6912,6 @@ export type UnknownErrorV2 = {
|
|
|
6946
6912
|
message: string;
|
|
6947
6913
|
ref?: string | null;
|
|
6948
6914
|
};
|
|
6949
|
-
export type ShellV2 = {
|
|
6950
|
-
id: string;
|
|
6951
|
-
status: "running" | "exited" | "timeout" | "killed";
|
|
6952
|
-
command: string;
|
|
6953
|
-
cwd: string;
|
|
6954
|
-
shell: string;
|
|
6955
|
-
file: string;
|
|
6956
|
-
pid?: number;
|
|
6957
|
-
exit?: number | "NaN" | "Infinity" | "-Infinity";
|
|
6958
|
-
metadata: {
|
|
6959
|
-
[key: string]: unknown;
|
|
6960
|
-
};
|
|
6961
|
-
time: {
|
|
6962
|
-
started: number | "NaN" | "Infinity" | "-Infinity";
|
|
6963
|
-
completed?: number | "NaN" | "Infinity" | "-Infinity";
|
|
6964
|
-
};
|
|
6965
|
-
};
|
|
6966
6915
|
export type SessionMessagesResponseV2 = {
|
|
6967
6916
|
data: Array<SessionMessageInfo>;
|
|
6968
6917
|
cursor: {
|
|
@@ -7911,6 +7860,23 @@ export type SessionSkillActivatedV2 = {
|
|
|
7911
7860
|
text: string;
|
|
7912
7861
|
};
|
|
7913
7862
|
};
|
|
7863
|
+
export type ShellInfoV2 = {
|
|
7864
|
+
id: string;
|
|
7865
|
+
status: "running" | "exited" | "timeout" | "killed";
|
|
7866
|
+
command: string;
|
|
7867
|
+
cwd: string;
|
|
7868
|
+
shell: string;
|
|
7869
|
+
file: string;
|
|
7870
|
+
pid?: number;
|
|
7871
|
+
exit?: number;
|
|
7872
|
+
metadata: {
|
|
7873
|
+
[key: string]: unknown;
|
|
7874
|
+
};
|
|
7875
|
+
time: {
|
|
7876
|
+
started: number;
|
|
7877
|
+
completed?: number;
|
|
7878
|
+
};
|
|
7879
|
+
};
|
|
7914
7880
|
export type SessionShellStartedV2 = {
|
|
7915
7881
|
id: string;
|
|
7916
7882
|
created: number;
|
|
@@ -7926,7 +7892,7 @@ export type SessionShellStartedV2 = {
|
|
|
7926
7892
|
location?: LocationRefV2;
|
|
7927
7893
|
data: {
|
|
7928
7894
|
sessionID: string;
|
|
7929
|
-
shell:
|
|
7895
|
+
shell: ShellInfoV2;
|
|
7930
7896
|
};
|
|
7931
7897
|
};
|
|
7932
7898
|
export type SessionShellEndedV2 = {
|
|
@@ -7944,7 +7910,7 @@ export type SessionShellEndedV2 = {
|
|
|
7944
7910
|
location?: LocationRefV2;
|
|
7945
7911
|
data: {
|
|
7946
7912
|
sessionID: string;
|
|
7947
|
-
shell:
|
|
7913
|
+
shell: ShellInfoV2;
|
|
7948
7914
|
output: {
|
|
7949
7915
|
output: string;
|
|
7950
7916
|
cursor: number;
|
|
@@ -8991,7 +8957,7 @@ export type ShellCreatedV2 = {
|
|
|
8991
8957
|
type: "shell.created";
|
|
8992
8958
|
location?: LocationRefV2;
|
|
8993
8959
|
data: {
|
|
8994
|
-
info:
|
|
8960
|
+
info: ShellInfoV2;
|
|
8995
8961
|
};
|
|
8996
8962
|
};
|
|
8997
8963
|
export type ShellExitedV2 = {
|
|
@@ -9004,7 +8970,7 @@ export type ShellExitedV2 = {
|
|
|
9004
8970
|
location?: LocationRefV2;
|
|
9005
8971
|
data: {
|
|
9006
8972
|
id: string;
|
|
9007
|
-
exit?: number
|
|
8973
|
+
exit?: number;
|
|
9008
8974
|
status: "running" | "exited" | "timeout" | "killed";
|
|
9009
8975
|
};
|
|
9010
8976
|
};
|
|
@@ -9393,6 +9359,23 @@ export type PtyTicketConnectTokenV2 = {
|
|
|
9393
9359
|
ticket: string;
|
|
9394
9360
|
expires_in: number;
|
|
9395
9361
|
};
|
|
9362
|
+
export type ShellInfo1 = {
|
|
9363
|
+
id: string;
|
|
9364
|
+
status: "running" | "exited" | "timeout" | "killed";
|
|
9365
|
+
command: string;
|
|
9366
|
+
cwd: string;
|
|
9367
|
+
shell: string;
|
|
9368
|
+
file: string;
|
|
9369
|
+
pid?: number;
|
|
9370
|
+
exit?: number;
|
|
9371
|
+
metadata: {
|
|
9372
|
+
[key: string]: unknown;
|
|
9373
|
+
};
|
|
9374
|
+
time: {
|
|
9375
|
+
started: number;
|
|
9376
|
+
completed?: number;
|
|
9377
|
+
};
|
|
9378
|
+
};
|
|
9396
9379
|
export type QuestionV2RequestV2 = {
|
|
9397
9380
|
id: string;
|
|
9398
9381
|
sessionID: string;
|
|
@@ -15655,7 +15638,7 @@ export type V2ShellListResponses = {
|
|
|
15655
15638
|
*/
|
|
15656
15639
|
200: {
|
|
15657
15640
|
location: LocationInfoV2;
|
|
15658
|
-
data: Array<
|
|
15641
|
+
data: Array<ShellInfo1>;
|
|
15659
15642
|
};
|
|
15660
15643
|
};
|
|
15661
15644
|
export type V2ShellListResponse = V2ShellListResponses[keyof V2ShellListResponses];
|
|
@@ -15694,7 +15677,7 @@ export type V2ShellCreateResponses = {
|
|
|
15694
15677
|
*/
|
|
15695
15678
|
200: {
|
|
15696
15679
|
location: LocationInfoV2;
|
|
15697
|
-
data:
|
|
15680
|
+
data: ShellInfo1;
|
|
15698
15681
|
};
|
|
15699
15682
|
};
|
|
15700
15683
|
export type V2ShellCreateResponse = V2ShellCreateResponses[keyof V2ShellCreateResponses];
|
|
@@ -15767,7 +15750,7 @@ export type V2ShellGetResponses = {
|
|
|
15767
15750
|
*/
|
|
15768
15751
|
200: {
|
|
15769
15752
|
location: LocationInfoV2;
|
|
15770
|
-
data:
|
|
15753
|
+
data: ShellInfo1;
|
|
15771
15754
|
};
|
|
15772
15755
|
};
|
|
15773
15756
|
export type V2ShellGetResponse = V2ShellGetResponses[keyof V2ShellGetResponses];
|
|
@@ -15807,7 +15790,7 @@ export type V2ShellTimeoutResponses = {
|
|
|
15807
15790
|
*/
|
|
15808
15791
|
200: {
|
|
15809
15792
|
location: LocationInfoV2;
|
|
15810
|
-
data:
|
|
15793
|
+
data: ShellInfo1;
|
|
15811
15794
|
};
|
|
15812
15795
|
};
|
|
15813
15796
|
export type V2ShellTimeoutResponse = V2ShellTimeoutResponses[keyof V2ShellTimeoutResponses];
|