@opencode-ai/schema 0.0.0-dev-18474 → 0.0.0-dev-18483
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/config/provider.d.ts +14 -2
- package/dist/model.d.ts +14 -2
- package/dist/model.js +6 -2
- package/package.json +1 -1
|
@@ -56,12 +56,24 @@ declare const Model_base: Schema.Class<Model, Schema.Struct<{
|
|
|
56
56
|
readonly input: Schema.$Array<Schema.String>;
|
|
57
57
|
readonly output: Schema.$Array<Schema.String>;
|
|
58
58
|
readonly responsesWebsockets: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
59
|
-
}
|
|
59
|
+
}> & {
|
|
60
|
+
default: () => {
|
|
61
|
+
tools: true;
|
|
62
|
+
input: string[];
|
|
63
|
+
output: string[];
|
|
64
|
+
};
|
|
65
|
+
}>>, Schema.optionalKey<Schema.Struct<{
|
|
60
66
|
readonly tools: Schema.Boolean;
|
|
61
67
|
readonly input: Schema.$Array<Schema.String>;
|
|
62
68
|
readonly output: Schema.$Array<Schema.String>;
|
|
63
69
|
readonly responsesWebsockets: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
64
|
-
}
|
|
70
|
+
}> & {
|
|
71
|
+
default: () => {
|
|
72
|
+
tools: true;
|
|
73
|
+
input: string[];
|
|
74
|
+
output: string[];
|
|
75
|
+
};
|
|
76
|
+
}>, never, never>;
|
|
65
77
|
readonly variants: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
66
78
|
readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
67
79
|
readonly headers: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
package/dist/model.d.ts
CHANGED
|
@@ -53,7 +53,13 @@ export declare const Capabilities: Schema.Struct<{
|
|
|
53
53
|
readonly input: Schema.$Array<Schema.String>;
|
|
54
54
|
readonly output: Schema.$Array<Schema.String>;
|
|
55
55
|
readonly responsesWebsockets: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
56
|
-
}
|
|
56
|
+
}> & {
|
|
57
|
+
default: () => {
|
|
58
|
+
tools: true;
|
|
59
|
+
input: string[];
|
|
60
|
+
output: string[];
|
|
61
|
+
};
|
|
62
|
+
};
|
|
57
63
|
export interface Cost extends Schema.Schema.Type<typeof Cost> {
|
|
58
64
|
}
|
|
59
65
|
export declare const Cost: Schema.Struct<{
|
|
@@ -95,7 +101,13 @@ export declare const Info: Schema.Struct<{
|
|
|
95
101
|
readonly input: Schema.$Array<Schema.String>;
|
|
96
102
|
readonly output: Schema.$Array<Schema.String>;
|
|
97
103
|
readonly responsesWebsockets: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
98
|
-
}
|
|
104
|
+
}> & {
|
|
105
|
+
default: () => {
|
|
106
|
+
tools: true;
|
|
107
|
+
input: string[];
|
|
108
|
+
output: string[];
|
|
109
|
+
};
|
|
110
|
+
};
|
|
99
111
|
readonly variants: Schema.$Array<Schema.Struct<{
|
|
100
112
|
readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Any>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
|
|
101
113
|
readonly headers: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
package/dist/model.js
CHANGED
|
@@ -50,7 +50,11 @@ export const Capabilities = Schema.Struct({
|
|
|
50
50
|
input: Schema.Array(Schema.String),
|
|
51
51
|
output: Schema.Array(Schema.String),
|
|
52
52
|
responsesWebsockets: Schema.Boolean.pipe(optional),
|
|
53
|
-
})
|
|
53
|
+
})
|
|
54
|
+
.annotate({ identifier: "Model.Capabilities" })
|
|
55
|
+
.pipe(statics(() => ({
|
|
56
|
+
default: () => ({ tools: true, input: ["text", "image"], output: ["text"] }),
|
|
57
|
+
})));
|
|
54
58
|
export const Cost = Schema.Struct({
|
|
55
59
|
tier: Schema.Struct({
|
|
56
60
|
type: Schema.tag("context"),
|
|
@@ -97,7 +101,7 @@ export const Info = Schema.Struct({
|
|
|
97
101
|
modelID: id,
|
|
98
102
|
providerID,
|
|
99
103
|
name: id,
|
|
100
|
-
capabilities:
|
|
104
|
+
capabilities: Capabilities.default(),
|
|
101
105
|
variants: [],
|
|
102
106
|
time: { released: 0 },
|
|
103
107
|
cost: [],
|