@opencode-ai/sdk 1.0.209 → 1.0.210
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
CHANGED
|
@@ -396,6 +396,7 @@ export declare class Session extends HeyApiClient {
|
|
|
396
396
|
[key: string]: boolean;
|
|
397
397
|
};
|
|
398
398
|
system?: string;
|
|
399
|
+
variant?: string;
|
|
399
400
|
parts?: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput>;
|
|
400
401
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionPromptResponses, SessionPromptErrors, ThrowOnError, "fields">;
|
|
401
402
|
/**
|
|
@@ -427,6 +428,7 @@ export declare class Session extends HeyApiClient {
|
|
|
427
428
|
[key: string]: boolean;
|
|
428
429
|
};
|
|
429
430
|
system?: string;
|
|
431
|
+
variant?: string;
|
|
430
432
|
parts?: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput>;
|
|
431
433
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionPromptAsyncResponses, SessionPromptAsyncErrors, ThrowOnError, "fields">;
|
|
432
434
|
/**
|
|
@@ -442,6 +444,7 @@ export declare class Session extends HeyApiClient {
|
|
|
442
444
|
model?: string;
|
|
443
445
|
arguments?: string;
|
|
444
446
|
command?: string;
|
|
447
|
+
variant?: string;
|
|
445
448
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionCommandResponses, SessionCommandErrors, ThrowOnError, "fields">;
|
|
446
449
|
/**
|
|
447
450
|
* Run shell command
|
|
@@ -586,12 +589,14 @@ export declare class Find extends HeyApiClient {
|
|
|
586
589
|
/**
|
|
587
590
|
* Find files
|
|
588
591
|
*
|
|
589
|
-
* Search for files by name or pattern in the project directory.
|
|
592
|
+
* Search for files or directories by name or pattern in the project directory.
|
|
590
593
|
*/
|
|
591
594
|
files<ThrowOnError extends boolean = false>(parameters: {
|
|
592
595
|
directory?: string;
|
|
593
596
|
query: string;
|
|
594
597
|
dirs?: "true" | "false";
|
|
598
|
+
type?: "file" | "directory";
|
|
599
|
+
limit?: number;
|
|
595
600
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FindFilesResponses, unknown, ThrowOnError, "fields">;
|
|
596
601
|
/**
|
|
597
602
|
* Find symbols
|
package/dist/v2/gen/sdk.gen.js
CHANGED
|
@@ -737,6 +737,7 @@ export class Session extends HeyApiClient {
|
|
|
737
737
|
{ in: "body", key: "noReply" },
|
|
738
738
|
{ in: "body", key: "tools" },
|
|
739
739
|
{ in: "body", key: "system" },
|
|
740
|
+
{ in: "body", key: "variant" },
|
|
740
741
|
{ in: "body", key: "parts" },
|
|
741
742
|
],
|
|
742
743
|
},
|
|
@@ -790,6 +791,7 @@ export class Session extends HeyApiClient {
|
|
|
790
791
|
{ in: "body", key: "noReply" },
|
|
791
792
|
{ in: "body", key: "tools" },
|
|
792
793
|
{ in: "body", key: "system" },
|
|
794
|
+
{ in: "body", key: "variant" },
|
|
793
795
|
{ in: "body", key: "parts" },
|
|
794
796
|
],
|
|
795
797
|
},
|
|
@@ -821,6 +823,7 @@ export class Session extends HeyApiClient {
|
|
|
821
823
|
{ in: "body", key: "model" },
|
|
822
824
|
{ in: "body", key: "arguments" },
|
|
823
825
|
{ in: "body", key: "command" },
|
|
826
|
+
{ in: "body", key: "variant" },
|
|
824
827
|
],
|
|
825
828
|
},
|
|
826
829
|
]);
|
|
@@ -1124,7 +1127,7 @@ export class Find extends HeyApiClient {
|
|
|
1124
1127
|
/**
|
|
1125
1128
|
* Find files
|
|
1126
1129
|
*
|
|
1127
|
-
* Search for files by name or pattern in the project directory.
|
|
1130
|
+
* Search for files or directories by name or pattern in the project directory.
|
|
1128
1131
|
*/
|
|
1129
1132
|
files(parameters, options) {
|
|
1130
1133
|
const params = buildClientParams([parameters], [
|
|
@@ -1133,6 +1136,8 @@ export class Find extends HeyApiClient {
|
|
|
1133
1136
|
{ in: "query", key: "directory" },
|
|
1134
1137
|
{ in: "query", key: "query" },
|
|
1135
1138
|
{ in: "query", key: "dirs" },
|
|
1139
|
+
{ in: "query", key: "type" },
|
|
1140
|
+
{ in: "query", key: "limit" },
|
|
1136
1141
|
],
|
|
1137
1142
|
},
|
|
1138
1143
|
]);
|
|
@@ -79,6 +79,7 @@ export type UserMessage = {
|
|
|
79
79
|
tools?: {
|
|
80
80
|
[key: string]: boolean;
|
|
81
81
|
};
|
|
82
|
+
variant?: string;
|
|
82
83
|
};
|
|
83
84
|
export type ProviderAuthError = {
|
|
84
85
|
name: "ProviderAuthError";
|
|
@@ -825,6 +826,10 @@ export type KeybindsConfig = {
|
|
|
825
826
|
* Previous agent
|
|
826
827
|
*/
|
|
827
828
|
agent_cycle_reverse?: string;
|
|
829
|
+
/**
|
|
830
|
+
* Cycle model variants
|
|
831
|
+
*/
|
|
832
|
+
variant_cycle?: string;
|
|
828
833
|
/**
|
|
829
834
|
* Clear input field
|
|
830
835
|
*/
|
|
@@ -1504,6 +1509,10 @@ export type Command = {
|
|
|
1504
1509
|
template: string;
|
|
1505
1510
|
subtask?: boolean;
|
|
1506
1511
|
};
|
|
1512
|
+
export type Variant = {
|
|
1513
|
+
disabled: boolean;
|
|
1514
|
+
[key: string]: unknown | boolean;
|
|
1515
|
+
};
|
|
1507
1516
|
export type Model = {
|
|
1508
1517
|
id: string;
|
|
1509
1518
|
providerID: string;
|
|
@@ -1565,6 +1574,9 @@ export type Model = {
|
|
|
1565
1574
|
[key: string]: string;
|
|
1566
1575
|
};
|
|
1567
1576
|
release_date: string;
|
|
1577
|
+
variants?: {
|
|
1578
|
+
[key: string]: Variant;
|
|
1579
|
+
};
|
|
1568
1580
|
};
|
|
1569
1581
|
export type Provider = {
|
|
1570
1582
|
id: string;
|
|
@@ -2557,6 +2569,7 @@ export type SessionPromptData = {
|
|
|
2557
2569
|
[key: string]: boolean;
|
|
2558
2570
|
};
|
|
2559
2571
|
system?: string;
|
|
2572
|
+
variant?: string;
|
|
2560
2573
|
parts: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput>;
|
|
2561
2574
|
};
|
|
2562
2575
|
path: {
|
|
@@ -2720,6 +2733,7 @@ export type SessionPromptAsyncData = {
|
|
|
2720
2733
|
[key: string]: boolean;
|
|
2721
2734
|
};
|
|
2722
2735
|
system?: string;
|
|
2736
|
+
variant?: string;
|
|
2723
2737
|
parts: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput>;
|
|
2724
2738
|
};
|
|
2725
2739
|
path: {
|
|
@@ -2758,6 +2772,7 @@ export type SessionCommandData = {
|
|
|
2758
2772
|
model?: string;
|
|
2759
2773
|
arguments: string;
|
|
2760
2774
|
command: string;
|
|
2775
|
+
variant?: string;
|
|
2761
2776
|
};
|
|
2762
2777
|
path: {
|
|
2763
2778
|
/**
|
|
@@ -3166,6 +3181,8 @@ export type FindFilesData = {
|
|
|
3166
3181
|
directory?: string;
|
|
3167
3182
|
query: string;
|
|
3168
3183
|
dirs?: "true" | "false";
|
|
3184
|
+
type?: "file" | "directory";
|
|
3185
|
+
limit?: number;
|
|
3169
3186
|
};
|
|
3170
3187
|
url: "/find/file";
|
|
3171
3188
|
};
|