@opencode-ai/sdk 1.0.128 → 1.0.130
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 +177 -92
- package/package.json +1 -1
package/dist/gen/types.gen.d.ts
CHANGED
|
@@ -604,6 +604,10 @@ export type KeybindsConfig = {
|
|
|
604
604
|
* Toggle sidebar
|
|
605
605
|
*/
|
|
606
606
|
sidebar_toggle?: string;
|
|
607
|
+
/**
|
|
608
|
+
* Toggle username visibility
|
|
609
|
+
*/
|
|
610
|
+
username_toggle?: string;
|
|
607
611
|
/**
|
|
608
612
|
* View status
|
|
609
613
|
*/
|
|
@@ -664,6 +668,10 @@ export type KeybindsConfig = {
|
|
|
664
668
|
* Navigate to last message
|
|
665
669
|
*/
|
|
666
670
|
messages_last?: string;
|
|
671
|
+
/**
|
|
672
|
+
* Navigate to last user message
|
|
673
|
+
*/
|
|
674
|
+
messages_last_user?: string;
|
|
667
675
|
/**
|
|
668
676
|
* Copy message
|
|
669
677
|
*/
|
|
@@ -680,6 +688,10 @@ export type KeybindsConfig = {
|
|
|
680
688
|
* Toggle code block concealment in messages
|
|
681
689
|
*/
|
|
682
690
|
messages_toggle_conceal?: string;
|
|
691
|
+
/**
|
|
692
|
+
* Toggle tool details visibility
|
|
693
|
+
*/
|
|
694
|
+
tool_details?: string;
|
|
683
695
|
/**
|
|
684
696
|
* List available models
|
|
685
697
|
*/
|
|
@@ -788,6 +800,74 @@ export type AgentConfig = {
|
|
|
788
800
|
external_directory?: "ask" | "allow" | "deny";
|
|
789
801
|
} | undefined;
|
|
790
802
|
};
|
|
803
|
+
export type ProviderConfig = {
|
|
804
|
+
api?: string;
|
|
805
|
+
name?: string;
|
|
806
|
+
env?: Array<string>;
|
|
807
|
+
id?: string;
|
|
808
|
+
npm?: string;
|
|
809
|
+
models?: {
|
|
810
|
+
[key: string]: {
|
|
811
|
+
id?: string;
|
|
812
|
+
name?: string;
|
|
813
|
+
release_date?: string;
|
|
814
|
+
attachment?: boolean;
|
|
815
|
+
reasoning?: boolean;
|
|
816
|
+
temperature?: boolean;
|
|
817
|
+
tool_call?: boolean;
|
|
818
|
+
cost?: {
|
|
819
|
+
input: number;
|
|
820
|
+
output: number;
|
|
821
|
+
cache_read?: number;
|
|
822
|
+
cache_write?: number;
|
|
823
|
+
context_over_200k?: {
|
|
824
|
+
input: number;
|
|
825
|
+
output: number;
|
|
826
|
+
cache_read?: number;
|
|
827
|
+
cache_write?: number;
|
|
828
|
+
};
|
|
829
|
+
};
|
|
830
|
+
limit?: {
|
|
831
|
+
context: number;
|
|
832
|
+
output: number;
|
|
833
|
+
};
|
|
834
|
+
modalities?: {
|
|
835
|
+
input: Array<"text" | "audio" | "image" | "video" | "pdf">;
|
|
836
|
+
output: Array<"text" | "audio" | "image" | "video" | "pdf">;
|
|
837
|
+
};
|
|
838
|
+
experimental?: boolean;
|
|
839
|
+
status?: "alpha" | "beta" | "deprecated";
|
|
840
|
+
options?: {
|
|
841
|
+
[key: string]: unknown;
|
|
842
|
+
};
|
|
843
|
+
headers?: {
|
|
844
|
+
[key: string]: string;
|
|
845
|
+
};
|
|
846
|
+
provider?: {
|
|
847
|
+
npm: string;
|
|
848
|
+
};
|
|
849
|
+
};
|
|
850
|
+
};
|
|
851
|
+
whitelist?: Array<string>;
|
|
852
|
+
blacklist?: Array<string>;
|
|
853
|
+
options?: {
|
|
854
|
+
apiKey?: string;
|
|
855
|
+
baseURL?: string;
|
|
856
|
+
/**
|
|
857
|
+
* GitHub Enterprise URL for copilot authentication
|
|
858
|
+
*/
|
|
859
|
+
enterpriseUrl?: string;
|
|
860
|
+
/**
|
|
861
|
+
* Enable promptCacheKey for this provider (default false)
|
|
862
|
+
*/
|
|
863
|
+
setCacheKey?: boolean;
|
|
864
|
+
/**
|
|
865
|
+
* Timeout in milliseconds for requests to this provider. Default is 300000 (5 minutes). Set to false to disable timeout.
|
|
866
|
+
*/
|
|
867
|
+
timeout?: number | false;
|
|
868
|
+
[key: string]: unknown | string | boolean | (number | false) | undefined;
|
|
869
|
+
};
|
|
870
|
+
};
|
|
791
871
|
export type McpLocalConfig = {
|
|
792
872
|
/**
|
|
793
873
|
* Type of MCP server connection
|
|
@@ -943,74 +1023,7 @@ export type Config = {
|
|
|
943
1023
|
* Custom provider configurations and model overrides
|
|
944
1024
|
*/
|
|
945
1025
|
provider?: {
|
|
946
|
-
[key: string]:
|
|
947
|
-
api?: string;
|
|
948
|
-
name?: string;
|
|
949
|
-
env?: Array<string>;
|
|
950
|
-
id?: string;
|
|
951
|
-
npm?: string;
|
|
952
|
-
models?: {
|
|
953
|
-
[key: string]: {
|
|
954
|
-
id?: string;
|
|
955
|
-
name?: string;
|
|
956
|
-
release_date?: string;
|
|
957
|
-
attachment?: boolean;
|
|
958
|
-
reasoning?: boolean;
|
|
959
|
-
temperature?: boolean;
|
|
960
|
-
tool_call?: boolean;
|
|
961
|
-
cost?: {
|
|
962
|
-
input: number;
|
|
963
|
-
output: number;
|
|
964
|
-
cache_read?: number;
|
|
965
|
-
cache_write?: number;
|
|
966
|
-
context_over_200k?: {
|
|
967
|
-
input: number;
|
|
968
|
-
output: number;
|
|
969
|
-
cache_read?: number;
|
|
970
|
-
cache_write?: number;
|
|
971
|
-
};
|
|
972
|
-
};
|
|
973
|
-
limit?: {
|
|
974
|
-
context: number;
|
|
975
|
-
output: number;
|
|
976
|
-
};
|
|
977
|
-
modalities?: {
|
|
978
|
-
input: Array<"text" | "audio" | "image" | "video" | "pdf">;
|
|
979
|
-
output: Array<"text" | "audio" | "image" | "video" | "pdf">;
|
|
980
|
-
};
|
|
981
|
-
experimental?: boolean;
|
|
982
|
-
status?: "alpha" | "beta" | "deprecated";
|
|
983
|
-
options?: {
|
|
984
|
-
[key: string]: unknown;
|
|
985
|
-
};
|
|
986
|
-
headers?: {
|
|
987
|
-
[key: string]: string;
|
|
988
|
-
};
|
|
989
|
-
provider?: {
|
|
990
|
-
npm: string;
|
|
991
|
-
};
|
|
992
|
-
};
|
|
993
|
-
};
|
|
994
|
-
whitelist?: Array<string>;
|
|
995
|
-
blacklist?: Array<string>;
|
|
996
|
-
options?: {
|
|
997
|
-
apiKey?: string;
|
|
998
|
-
baseURL?: string;
|
|
999
|
-
/**
|
|
1000
|
-
* GitHub Enterprise URL for copilot authentication
|
|
1001
|
-
*/
|
|
1002
|
-
enterpriseUrl?: string;
|
|
1003
|
-
/**
|
|
1004
|
-
* Enable promptCacheKey for this provider (default false)
|
|
1005
|
-
*/
|
|
1006
|
-
setCacheKey?: boolean;
|
|
1007
|
-
/**
|
|
1008
|
-
* Timeout in milliseconds for requests to this provider. Default is 300000 (5 minutes). Set to false to disable timeout.
|
|
1009
|
-
*/
|
|
1010
|
-
timeout?: number | false;
|
|
1011
|
-
[key: string]: unknown | string | boolean | (number | false) | undefined;
|
|
1012
|
-
};
|
|
1013
|
-
};
|
|
1026
|
+
[key: string]: ProviderConfig;
|
|
1014
1027
|
};
|
|
1015
1028
|
/**
|
|
1016
1029
|
* MCP (Model Context Protocol) server configurations
|
|
@@ -1092,6 +1105,10 @@ export type Config = {
|
|
|
1092
1105
|
* Enable the batch tool
|
|
1093
1106
|
*/
|
|
1094
1107
|
batch_tool?: boolean;
|
|
1108
|
+
/**
|
|
1109
|
+
* Tools that should only be available to primary agents.
|
|
1110
|
+
*/
|
|
1111
|
+
primary_tools?: Array<string>;
|
|
1095
1112
|
};
|
|
1096
1113
|
};
|
|
1097
1114
|
export type BadRequestError = {
|
|
@@ -1172,50 +1189,70 @@ export type Command = {
|
|
|
1172
1189
|
};
|
|
1173
1190
|
export type Model = {
|
|
1174
1191
|
id: string;
|
|
1192
|
+
providerID: string;
|
|
1193
|
+
api: {
|
|
1194
|
+
id: string;
|
|
1195
|
+
url: string;
|
|
1196
|
+
npm: string;
|
|
1197
|
+
};
|
|
1175
1198
|
name: string;
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1199
|
+
capabilities: {
|
|
1200
|
+
temperature: boolean;
|
|
1201
|
+
reasoning: boolean;
|
|
1202
|
+
attachment: boolean;
|
|
1203
|
+
toolcall: boolean;
|
|
1204
|
+
input: {
|
|
1205
|
+
text: boolean;
|
|
1206
|
+
audio: boolean;
|
|
1207
|
+
image: boolean;
|
|
1208
|
+
video: boolean;
|
|
1209
|
+
pdf: boolean;
|
|
1210
|
+
};
|
|
1211
|
+
output: {
|
|
1212
|
+
text: boolean;
|
|
1213
|
+
audio: boolean;
|
|
1214
|
+
image: boolean;
|
|
1215
|
+
video: boolean;
|
|
1216
|
+
pdf: boolean;
|
|
1217
|
+
};
|
|
1218
|
+
};
|
|
1181
1219
|
cost: {
|
|
1182
1220
|
input: number;
|
|
1183
1221
|
output: number;
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1222
|
+
cache: {
|
|
1223
|
+
read: number;
|
|
1224
|
+
write: number;
|
|
1225
|
+
};
|
|
1226
|
+
experimentalOver200K?: {
|
|
1187
1227
|
input: number;
|
|
1188
1228
|
output: number;
|
|
1189
|
-
|
|
1190
|
-
|
|
1229
|
+
cache: {
|
|
1230
|
+
read: number;
|
|
1231
|
+
write: number;
|
|
1232
|
+
};
|
|
1191
1233
|
};
|
|
1192
1234
|
};
|
|
1193
1235
|
limit: {
|
|
1194
1236
|
context: number;
|
|
1195
1237
|
output: number;
|
|
1196
1238
|
};
|
|
1197
|
-
|
|
1198
|
-
input: Array<"text" | "audio" | "image" | "video" | "pdf">;
|
|
1199
|
-
output: Array<"text" | "audio" | "image" | "video" | "pdf">;
|
|
1200
|
-
};
|
|
1201
|
-
experimental?: boolean;
|
|
1202
|
-
status?: "alpha" | "beta" | "deprecated";
|
|
1239
|
+
status: "alpha" | "beta" | "deprecated" | "active";
|
|
1203
1240
|
options: {
|
|
1204
1241
|
[key: string]: unknown;
|
|
1205
1242
|
};
|
|
1206
|
-
headers
|
|
1243
|
+
headers: {
|
|
1207
1244
|
[key: string]: string;
|
|
1208
1245
|
};
|
|
1209
|
-
provider?: {
|
|
1210
|
-
npm: string;
|
|
1211
|
-
};
|
|
1212
1246
|
};
|
|
1213
1247
|
export type Provider = {
|
|
1214
|
-
|
|
1248
|
+
id: string;
|
|
1215
1249
|
name: string;
|
|
1250
|
+
source: "env" | "config" | "custom" | "api";
|
|
1216
1251
|
env: Array<string>;
|
|
1217
|
-
|
|
1218
|
-
|
|
1252
|
+
key?: string;
|
|
1253
|
+
options: {
|
|
1254
|
+
[key: string]: unknown;
|
|
1255
|
+
};
|
|
1219
1256
|
models: {
|
|
1220
1257
|
[key: string]: Model;
|
|
1221
1258
|
};
|
|
@@ -2303,7 +2340,55 @@ export type ProviderListResponses = {
|
|
|
2303
2340
|
* List of providers
|
|
2304
2341
|
*/
|
|
2305
2342
|
200: {
|
|
2306
|
-
all: Array<
|
|
2343
|
+
all: Array<{
|
|
2344
|
+
api?: string;
|
|
2345
|
+
name: string;
|
|
2346
|
+
env: Array<string>;
|
|
2347
|
+
id: string;
|
|
2348
|
+
npm?: string;
|
|
2349
|
+
models: {
|
|
2350
|
+
[key: string]: {
|
|
2351
|
+
id: string;
|
|
2352
|
+
name: string;
|
|
2353
|
+
release_date: string;
|
|
2354
|
+
attachment: boolean;
|
|
2355
|
+
reasoning: boolean;
|
|
2356
|
+
temperature: boolean;
|
|
2357
|
+
tool_call: boolean;
|
|
2358
|
+
cost?: {
|
|
2359
|
+
input: number;
|
|
2360
|
+
output: number;
|
|
2361
|
+
cache_read?: number;
|
|
2362
|
+
cache_write?: number;
|
|
2363
|
+
context_over_200k?: {
|
|
2364
|
+
input: number;
|
|
2365
|
+
output: number;
|
|
2366
|
+
cache_read?: number;
|
|
2367
|
+
cache_write?: number;
|
|
2368
|
+
};
|
|
2369
|
+
};
|
|
2370
|
+
limit: {
|
|
2371
|
+
context: number;
|
|
2372
|
+
output: number;
|
|
2373
|
+
};
|
|
2374
|
+
modalities?: {
|
|
2375
|
+
input: Array<"text" | "audio" | "image" | "video" | "pdf">;
|
|
2376
|
+
output: Array<"text" | "audio" | "image" | "video" | "pdf">;
|
|
2377
|
+
};
|
|
2378
|
+
experimental?: boolean;
|
|
2379
|
+
status?: "alpha" | "beta" | "deprecated";
|
|
2380
|
+
options: {
|
|
2381
|
+
[key: string]: unknown;
|
|
2382
|
+
};
|
|
2383
|
+
headers?: {
|
|
2384
|
+
[key: string]: string;
|
|
2385
|
+
};
|
|
2386
|
+
provider?: {
|
|
2387
|
+
npm: string;
|
|
2388
|
+
};
|
|
2389
|
+
};
|
|
2390
|
+
};
|
|
2391
|
+
}>;
|
|
2307
2392
|
default: {
|
|
2308
2393
|
[key: string]: string;
|
|
2309
2394
|
};
|