@opencode/schema 0.0.0-dev-201 → 0.0.0-dev-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.
|
@@ -5,6 +5,23 @@ declare const Info_base: Schema.Class<Info, Schema.Struct<{
|
|
|
5
5
|
readonly todo: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
6
6
|
readonly background_compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
7
7
|
readonly media_blob: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
8
|
+
readonly image_model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.Struct<{
|
|
9
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID">;
|
|
10
|
+
readonly model: Schema.brand<Schema.String, "Model.ID">;
|
|
11
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
12
|
+
}>, Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
13
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID">;
|
|
14
|
+
readonly model: Schema.brand<Schema.String, "Model.ID">;
|
|
15
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
16
|
+
}>]>, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.Struct<{
|
|
17
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID">;
|
|
18
|
+
readonly model: Schema.brand<Schema.String, "Model.ID">;
|
|
19
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
20
|
+
}>, Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
21
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID">;
|
|
22
|
+
readonly model: Schema.brand<Schema.String, "Model.ID">;
|
|
23
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
24
|
+
}>]>, never, never>>, never, never>;
|
|
8
25
|
readonly schedules: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
9
26
|
readonly subagent_depth: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
10
27
|
readonly location_idle_timeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.DurationFromString, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.DurationFromString, Schema.Literal<false>]>>, never, never>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * as ConfigExperimental from "./experimental.js";
|
|
2
2
|
import { Schema } from "effect";
|
|
3
3
|
import { NonNegativeInt, optional } from "../schema.js";
|
|
4
|
+
import { ConfigModel } from "./model.js";
|
|
4
5
|
import { ConfigPolicy } from "./policy.js";
|
|
5
6
|
export class Info extends Schema.Class("ConfigExperimental.Info")({
|
|
6
7
|
portable_shell_scanner: Schema.Boolean.pipe(optional).annotate({
|
|
@@ -15,6 +16,9 @@ export class Info extends Schema.Class("ConfigExperimental.Info")({
|
|
|
15
16
|
media_blob: Schema.Boolean.pipe(optional).annotate({
|
|
16
17
|
description: "Store new session media once in a deduplicated blob table instead of inline in every message row. Defaults to false.",
|
|
17
18
|
}),
|
|
19
|
+
image_model: ConfigModel.Selection.pipe(optional).annotate({
|
|
20
|
+
description: "Default model for the image_generate tool when the agent doesn't choose one, as providerID/modelID. Falls back to automatic selection when it isn't available.",
|
|
21
|
+
}),
|
|
18
22
|
schedules: Schema.Boolean.pipe(optional).annotate({
|
|
19
23
|
description: "Enable experimental scheduled tasks that wake a session with a prompt. Defaults to false.",
|
|
20
24
|
}),
|