@opencode/schema 0.0.0-dev-457 → 0.0.0-dev-463
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/warming.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export * as ConfigWarming from "./warming.js";
|
|
|
2
2
|
import { Schema } from "effect";
|
|
3
3
|
declare const Info_base: Schema.Class<Info, Schema.Struct<{
|
|
4
4
|
readonly prompt: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
5
|
-
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.DurationFromString
|
|
5
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.DurationFromString]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.DurationFromString]>>, never, never>;
|
|
6
6
|
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.DurationFromString>>, Schema.optionalKey<Schema.DurationFromString>, never, never>;
|
|
7
7
|
}>, {}>;
|
|
8
8
|
export declare class Info extends Info_base {
|
package/dist/config/warming.js
CHANGED
|
@@ -5,8 +5,10 @@ export class Info extends Schema.Class("Config.Warming")({
|
|
|
5
5
|
prompt: Schema.String.pipe(optional).annotate({
|
|
6
6
|
description: "Prompt sent for keep-alive requests",
|
|
7
7
|
}),
|
|
8
|
-
interval: Schema.
|
|
9
|
-
|
|
8
|
+
interval: Schema.Union([Schema.Literal("auto"), Schema.DurationFromString])
|
|
9
|
+
.pipe(optional)
|
|
10
|
+
.annotate({
|
|
11
|
+
description: 'Idle time between keep-alive requests (default: "4 minutes"). "auto" uses 90% of the model\'s cache.ttl and skips models without one.',
|
|
10
12
|
}),
|
|
11
13
|
duration: Schema.DurationFromString.pipe(optional).annotate({
|
|
12
14
|
description: 'Time after the last active request to keep a session warm (default: "30 minutes")',
|