@opencode-ai/sdk 0.0.0-dev-202606051751 → 0.0.0-dev-202606051841
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 +56 -0
- package/package.json +1 -1
|
@@ -910,6 +910,7 @@ export type GlobalEvent = {
|
|
|
910
910
|
[key: string]: unknown;
|
|
911
911
|
};
|
|
912
912
|
content: Array<ToolTextContent | ToolFileContent>;
|
|
913
|
+
outputPaths?: Array<string>;
|
|
913
914
|
result?: unknown;
|
|
914
915
|
provider: {
|
|
915
916
|
executed: boolean;
|
|
@@ -2368,6 +2369,19 @@ export type ModelV2Info = {
|
|
|
2368
2369
|
body: {
|
|
2369
2370
|
[key: string]: unknown;
|
|
2370
2371
|
};
|
|
2372
|
+
generation?: {
|
|
2373
|
+
maxTokens?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
2374
|
+
temperature?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
2375
|
+
topP?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
2376
|
+
topK?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
2377
|
+
frequencyPenalty?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
2378
|
+
presencePenalty?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
2379
|
+
seed?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
2380
|
+
stop?: Array<string>;
|
|
2381
|
+
};
|
|
2382
|
+
options?: {
|
|
2383
|
+
[key: string]: unknown;
|
|
2384
|
+
};
|
|
2371
2385
|
variant?: string;
|
|
2372
2386
|
};
|
|
2373
2387
|
variants: Array<{
|
|
@@ -2378,6 +2392,19 @@ export type ModelV2Info = {
|
|
|
2378
2392
|
body: {
|
|
2379
2393
|
[key: string]: unknown;
|
|
2380
2394
|
};
|
|
2395
|
+
generation?: {
|
|
2396
|
+
maxTokens?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
2397
|
+
temperature?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
2398
|
+
topP?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
2399
|
+
topK?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
2400
|
+
frequencyPenalty?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
2401
|
+
presencePenalty?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
2402
|
+
seed?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
2403
|
+
stop?: Array<string>;
|
|
2404
|
+
};
|
|
2405
|
+
options?: {
|
|
2406
|
+
[key: string]: unknown;
|
|
2407
|
+
};
|
|
2381
2408
|
}>;
|
|
2382
2409
|
time: {
|
|
2383
2410
|
released: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
@@ -3054,6 +3081,7 @@ export type SyncEventSessionNextToolSuccess = {
|
|
|
3054
3081
|
[key: string]: unknown;
|
|
3055
3082
|
};
|
|
3056
3083
|
content: Array<ToolTextContent | ToolFileContent>;
|
|
3084
|
+
outputPaths?: Array<string>;
|
|
3057
3085
|
result?: unknown;
|
|
3058
3086
|
provider: {
|
|
3059
3087
|
executed: boolean;
|
|
@@ -3341,6 +3369,7 @@ export type SessionMessageToolStateCompleted = {
|
|
|
3341
3369
|
};
|
|
3342
3370
|
attachments?: Array<PromptFileAttachment>;
|
|
3343
3371
|
content: Array<ToolTextContent | ToolFileContent>;
|
|
3372
|
+
outputPaths?: Array<string>;
|
|
3344
3373
|
structured: {
|
|
3345
3374
|
[key: string]: unknown;
|
|
3346
3375
|
};
|
|
@@ -3585,6 +3614,19 @@ export type ModelV2Info1 = {
|
|
|
3585
3614
|
body: {
|
|
3586
3615
|
[key: string]: unknown;
|
|
3587
3616
|
};
|
|
3617
|
+
generation?: {
|
|
3618
|
+
maxTokens?: number | "NaN" | "Infinity" | "-Infinity";
|
|
3619
|
+
temperature?: number | "NaN" | "Infinity" | "-Infinity";
|
|
3620
|
+
topP?: number | "NaN" | "Infinity" | "-Infinity";
|
|
3621
|
+
topK?: number | "NaN" | "Infinity" | "-Infinity";
|
|
3622
|
+
frequencyPenalty?: number | "NaN" | "Infinity" | "-Infinity";
|
|
3623
|
+
presencePenalty?: number | "NaN" | "Infinity" | "-Infinity";
|
|
3624
|
+
seed?: number | "NaN" | "Infinity" | "-Infinity";
|
|
3625
|
+
stop?: Array<string>;
|
|
3626
|
+
};
|
|
3627
|
+
options?: {
|
|
3628
|
+
[key: string]: unknown;
|
|
3629
|
+
};
|
|
3588
3630
|
variant?: string;
|
|
3589
3631
|
};
|
|
3590
3632
|
variants: Array<{
|
|
@@ -3595,6 +3637,19 @@ export type ModelV2Info1 = {
|
|
|
3595
3637
|
body: {
|
|
3596
3638
|
[key: string]: unknown;
|
|
3597
3639
|
};
|
|
3640
|
+
generation?: {
|
|
3641
|
+
maxTokens?: number | "NaN" | "Infinity" | "-Infinity";
|
|
3642
|
+
temperature?: number | "NaN" | "Infinity" | "-Infinity";
|
|
3643
|
+
topP?: number | "NaN" | "Infinity" | "-Infinity";
|
|
3644
|
+
topK?: number | "NaN" | "Infinity" | "-Infinity";
|
|
3645
|
+
frequencyPenalty?: number | "NaN" | "Infinity" | "-Infinity";
|
|
3646
|
+
presencePenalty?: number | "NaN" | "Infinity" | "-Infinity";
|
|
3647
|
+
seed?: number | "NaN" | "Infinity" | "-Infinity";
|
|
3648
|
+
stop?: Array<string>;
|
|
3649
|
+
};
|
|
3650
|
+
options?: {
|
|
3651
|
+
[key: string]: unknown;
|
|
3652
|
+
};
|
|
3598
3653
|
}>;
|
|
3599
3654
|
time: {
|
|
3600
3655
|
released: number | "NaN" | "Infinity" | "-Infinity";
|
|
@@ -4002,6 +4057,7 @@ export type EventSessionNextToolSuccess = {
|
|
|
4002
4057
|
[key: string]: unknown;
|
|
4003
4058
|
};
|
|
4004
4059
|
content: Array<ToolTextContent | ToolFileContent>;
|
|
4060
|
+
outputPaths?: Array<string>;
|
|
4005
4061
|
result?: unknown;
|
|
4006
4062
|
provider: {
|
|
4007
4063
|
executed: boolean;
|