@opencode-ai/schema 0.0.0-next-16005 → 0.0.0-next-16008
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/model.d.ts +12 -0
- package/dist/model.js +8 -0
- package/package.json +1 -1
package/dist/model.d.ts
CHANGED
|
@@ -32,6 +32,13 @@ export interface Ref extends Schema.Schema.Type<typeof Ref> {
|
|
|
32
32
|
}
|
|
33
33
|
export declare const Family: Schema.brand<Schema.String, "Model.Family">;
|
|
34
34
|
export type Family = typeof Family.Type;
|
|
35
|
+
export type ReasoningField = "reasoning" | "reasoning_content" | "reasoning_text" | (string & {});
|
|
36
|
+
export declare const ReasoningField: Schema.Codec<ReasoningField>;
|
|
37
|
+
export interface Compatibility extends Schema.Schema.Type<typeof Compatibility> {
|
|
38
|
+
}
|
|
39
|
+
export declare const Compatibility: Schema.Struct<{
|
|
40
|
+
readonly reasoningField: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Codec<ReasoningField, ReasoningField, never, never>>>, Schema.optionalKey<Schema.Codec<ReasoningField, ReasoningField, never, never>>, never, never>;
|
|
41
|
+
}>;
|
|
35
42
|
export interface Capabilities extends Schema.Schema.Type<typeof Capabilities> {
|
|
36
43
|
}
|
|
37
44
|
export declare const Capabilities: Schema.Struct<{
|
|
@@ -139,6 +146,11 @@ export declare const Info: Schema.Struct<{
|
|
|
139
146
|
};
|
|
140
147
|
readonly family: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.Family">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.Family">>, never, never>;
|
|
141
148
|
readonly name: Schema.String;
|
|
149
|
+
readonly compatibility: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
150
|
+
readonly reasoningField: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Codec<ReasoningField, ReasoningField, never, never>>>, Schema.optionalKey<Schema.Codec<ReasoningField, ReasoningField, never, never>>, never, never>;
|
|
151
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
152
|
+
readonly reasoningField: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Codec<ReasoningField, ReasoningField, never, never>>>, Schema.optionalKey<Schema.Codec<ReasoningField, ReasoningField, never, never>>, never, never>;
|
|
153
|
+
}>>, never, never>;
|
|
142
154
|
readonly package: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
143
155
|
}> & {
|
|
144
156
|
empty: (providerID: Provider.ID, id: ID) => {
|
package/dist/model.js
CHANGED
|
@@ -30,6 +30,13 @@ export const Ref = Schema.Struct({
|
|
|
30
30
|
},
|
|
31
31
|
})));
|
|
32
32
|
export const Family = Schema.String.pipe(Schema.brand("Model.Family"));
|
|
33
|
+
export const ReasoningField = Schema.Union([
|
|
34
|
+
Schema.Literals(["reasoning", "reasoning_content", "reasoning_text"]),
|
|
35
|
+
Schema.String,
|
|
36
|
+
]).annotate({ identifier: "Model.ReasoningField" });
|
|
37
|
+
export const Compatibility = Schema.Struct({
|
|
38
|
+
reasoningField: ReasoningField.pipe(optional),
|
|
39
|
+
}).annotate({ identifier: "Model.Compatibility" });
|
|
33
40
|
export const Capabilities = Schema.Struct({
|
|
34
41
|
tools: Schema.Boolean,
|
|
35
42
|
input: Schema.Array(Schema.String),
|
|
@@ -57,6 +64,7 @@ export const Info = Schema.Struct({
|
|
|
57
64
|
providerID: Provider.ID,
|
|
58
65
|
family: Family.pipe(optional),
|
|
59
66
|
name: Schema.String,
|
|
67
|
+
compatibility: Compatibility.pipe(optional),
|
|
60
68
|
package: Provider.Package.pipe(optional),
|
|
61
69
|
...Provider.Overlays,
|
|
62
70
|
capabilities: Capabilities,
|