@opencode-ai/sdk 0.4.2 → 0.4.4
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 +23 -0
- package/package.json +1 -1
package/dist/gen/types.gen.d.ts
CHANGED
|
@@ -143,6 +143,8 @@ export type EventMessagePartUpdated = {
|
|
|
143
143
|
export type Part = ({
|
|
144
144
|
type: "text";
|
|
145
145
|
} & TextPart) | ({
|
|
146
|
+
type: "reasoning";
|
|
147
|
+
} & ReasoningPart) | ({
|
|
146
148
|
type: "file";
|
|
147
149
|
} & FilePart) | ({
|
|
148
150
|
type: "tool";
|
|
@@ -169,6 +171,20 @@ export type TextPart = {
|
|
|
169
171
|
end?: number;
|
|
170
172
|
};
|
|
171
173
|
};
|
|
174
|
+
export type ReasoningPart = {
|
|
175
|
+
id: string;
|
|
176
|
+
sessionID: string;
|
|
177
|
+
messageID: string;
|
|
178
|
+
type: string;
|
|
179
|
+
text: string;
|
|
180
|
+
metadata?: {
|
|
181
|
+
[key: string]: unknown;
|
|
182
|
+
};
|
|
183
|
+
time: {
|
|
184
|
+
start: number;
|
|
185
|
+
end?: number;
|
|
186
|
+
};
|
|
187
|
+
};
|
|
172
188
|
export type FilePart = {
|
|
173
189
|
id: string;
|
|
174
190
|
sessionID: string;
|
|
@@ -595,6 +611,7 @@ export type Config = {
|
|
|
595
611
|
bash?: string | {
|
|
596
612
|
[key: string]: string;
|
|
597
613
|
};
|
|
614
|
+
webfetch?: string;
|
|
598
615
|
};
|
|
599
616
|
experimental?: {
|
|
600
617
|
hook?: {
|
|
@@ -791,6 +808,9 @@ export type AgentConfig = {
|
|
|
791
808
|
*/
|
|
792
809
|
description?: string;
|
|
793
810
|
mode?: string;
|
|
811
|
+
[key: string]: unknown | string | number | {
|
|
812
|
+
[key: string]: boolean;
|
|
813
|
+
} | boolean | string | undefined;
|
|
794
814
|
};
|
|
795
815
|
export type Provider = {
|
|
796
816
|
api?: string;
|
|
@@ -926,6 +946,9 @@ export type Agent = {
|
|
|
926
946
|
tools: {
|
|
927
947
|
[key: string]: boolean;
|
|
928
948
|
};
|
|
949
|
+
options: {
|
|
950
|
+
[key: string]: unknown;
|
|
951
|
+
};
|
|
929
952
|
};
|
|
930
953
|
export type EventSubscribeData = {
|
|
931
954
|
body?: never;
|