@opencode/schema 2.2.5 → 2.2.6
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/agent.d.ts +14 -0
- package/dist/config/experimental.d.ts +12 -9
- package/dist/config/experimental.js +11 -13
- package/dist/config/flag.d.ts +16 -0
- package/dist/config/flag.js +15 -0
- package/dist/config/policy.d.ts +4 -3
- package/dist/config/policy.js +2 -0
- package/dist/config/provider.d.ts +112 -0
- package/dist/config/warming.d.ts +1 -1
- package/dist/config/warming.js +4 -2
- package/dist/config.d.ts +4 -4
- package/dist/integration.d.ts +2 -0
- package/dist/integration.js +2 -0
- package/dist/job.d.ts +113 -0
- package/dist/job.js +41 -0
- package/dist/mcp.d.ts +2 -0
- package/dist/mcp.js +6 -0
- package/dist/model.d.ts +70 -0
- package/dist/provider.d.ts +97 -0
- package/dist/provider.js +12 -0
- package/dist/session-revert.d.ts +194 -302
- package/dist/tui-event.js +1 -1
- package/package.json +2 -2
package/dist/agent.d.ts
CHANGED
|
@@ -74,8 +74,22 @@ export declare const Info: Schema.Struct<{
|
|
|
74
74
|
}>]>>, never, never>;
|
|
75
75
|
readonly cache: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
76
76
|
readonly ttl: Schema.decodeTo<Schema.optional<Schema.toType<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>>, Schema.optionalKey<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>, never, never>;
|
|
77
|
+
readonly warming: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
78
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
79
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
80
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
81
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
82
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
83
|
+
}>]>>, never, never>;
|
|
77
84
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
78
85
|
readonly ttl: Schema.decodeTo<Schema.optional<Schema.toType<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>>, Schema.optionalKey<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>, never, never>;
|
|
86
|
+
readonly warming: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
87
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
88
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
89
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
90
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
91
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
92
|
+
}>]>>, never, never>;
|
|
79
93
|
}>>, never, never>;
|
|
80
94
|
readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
|
|
81
95
|
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
@@ -2,9 +2,9 @@ export * as ConfigExperimental from "./experimental.js";
|
|
|
2
2
|
import { Schema } from "effect";
|
|
3
3
|
declare const Info_base: Schema.Class<Info, Schema.Struct<{
|
|
4
4
|
readonly portable_shell_scanner: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
5
|
-
readonly
|
|
6
|
-
readonly
|
|
7
|
-
readonly
|
|
5
|
+
readonly all_flags: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
6
|
+
readonly part_rows: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
7
|
+
readonly codemode_vm: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
8
8
|
readonly image_generate: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
9
9
|
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.Struct<{
|
|
10
10
|
readonly providerID: Schema.brand<Schema.String, "Provider.ID">;
|
|
@@ -42,27 +42,30 @@ declare const Info_base: Schema.Class<Info, Schema.Struct<{
|
|
|
42
42
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
43
43
|
}>]>, never, never>>, never, never>;
|
|
44
44
|
}>]>>, never, never>;
|
|
45
|
-
readonly schedules: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
46
|
-
readonly artifacts: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
47
45
|
readonly subagent_depth: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
48
46
|
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>;
|
|
49
47
|
readonly policies: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.decodeTo<Schema.toType<Schema.Struct<{
|
|
50
|
-
readonly action: Schema.Literals<readonly ["provider.use", "tool.use", "integration.connect", "integration.use", "mcp.use", "skill.use", "plugin.use"]>;
|
|
48
|
+
readonly action: Schema.Literals<readonly ["provider.use", "tool.use", "integration.connect", "integration.use", "mcp.use", "skill.use", "plugin.use", "websearch.use"]>;
|
|
51
49
|
readonly resource: Schema.String;
|
|
52
50
|
readonly effect: Schema.Literals<readonly ["allow", "deny"]>;
|
|
53
51
|
}>>, Schema.Struct<{
|
|
54
|
-
readonly action: Schema.Literals<readonly ["provider.use", "tool.use", "integration.connect", "integration.use", "mcp.use", "skill.use", "plugin.use"]>;
|
|
52
|
+
readonly action: Schema.Literals<readonly ["provider.use", "tool.use", "integration.connect", "integration.use", "mcp.use", "skill.use", "plugin.use", "websearch.use"]>;
|
|
55
53
|
readonly resource: Schema.String;
|
|
56
54
|
readonly effect: Schema.Literals<readonly ["allow", "deny"]>;
|
|
57
55
|
}>, never, never>>>>, Schema.optionalKey<Schema.$Array<Schema.decodeTo<Schema.toType<Schema.Struct<{
|
|
58
|
-
readonly action: Schema.Literals<readonly ["provider.use", "tool.use", "integration.connect", "integration.use", "mcp.use", "skill.use", "plugin.use"]>;
|
|
56
|
+
readonly action: Schema.Literals<readonly ["provider.use", "tool.use", "integration.connect", "integration.use", "mcp.use", "skill.use", "plugin.use", "websearch.use"]>;
|
|
59
57
|
readonly resource: Schema.String;
|
|
60
58
|
readonly effect: Schema.Literals<readonly ["allow", "deny"]>;
|
|
61
59
|
}>>, Schema.Struct<{
|
|
62
|
-
readonly action: Schema.Literals<readonly ["provider.use", "tool.use", "integration.connect", "integration.use", "mcp.use", "skill.use", "plugin.use"]>;
|
|
60
|
+
readonly action: Schema.Literals<readonly ["provider.use", "tool.use", "integration.connect", "integration.use", "mcp.use", "skill.use", "plugin.use", "websearch.use"]>;
|
|
63
61
|
readonly resource: Schema.String;
|
|
64
62
|
readonly effect: Schema.Literals<readonly ["allow", "deny"]>;
|
|
65
63
|
}>, never, never>>>, never, never>;
|
|
64
|
+
readonly artifacts: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
65
|
+
readonly background_compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
66
|
+
readonly media_blob: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
67
|
+
readonly schedules: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
68
|
+
readonly todo: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
66
69
|
}>, {}>;
|
|
67
70
|
export declare class Info extends Info_base {
|
|
68
71
|
}
|
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
export * as ConfigExperimental from "./experimental.js";
|
|
2
|
-
import { Schema } from "effect";
|
|
2
|
+
import { Record, Schema } from "effect";
|
|
3
3
|
import { NonNegativeInt, optional } from "../schema.js";
|
|
4
|
+
import { ConfigFlag } from "./flag.js";
|
|
4
5
|
import { ConfigModel } from "./model.js";
|
|
5
6
|
import { ConfigPolicy } from "./policy.js";
|
|
6
7
|
export class Info extends Schema.Class("ConfigExperimental.Info")({
|
|
7
8
|
portable_shell_scanner: Schema.Boolean.pipe(optional).annotate({
|
|
8
9
|
description: "Deprecated: the built-in shell permission scanner is now always enabled.",
|
|
9
10
|
}),
|
|
10
|
-
|
|
11
|
-
description: "
|
|
11
|
+
all_flags: Schema.Boolean.pipe(optional).annotate({
|
|
12
|
+
description: "Turn every feature flag on regardless of the build channel, like OPENCODE_FLAGS=all; explicit per-flag settings still win, and false is not a kill switch.",
|
|
12
13
|
}),
|
|
13
|
-
|
|
14
|
-
description:
|
|
14
|
+
...Record.map(ConfigFlag.registry, (description) => Schema.Boolean.pipe(optional).annotate({
|
|
15
|
+
description: `${description} Defaults to on in local and dev builds and off in releases.`,
|
|
16
|
+
})),
|
|
17
|
+
part_rows: Schema.Boolean.pipe(optional).annotate({
|
|
18
|
+
description: "Write each assistant part as its own session_part row instead of rewriting the whole message on every event. Defaults to false.",
|
|
15
19
|
}),
|
|
16
|
-
|
|
17
|
-
description: "
|
|
20
|
+
codemode_vm: Schema.Boolean.pipe(optional).annotate({
|
|
21
|
+
description: "Run the Code Mode execute tool on the experimental bytecode VM instead of the legacy interpreter. Defaults to false.",
|
|
18
22
|
}),
|
|
19
23
|
image_generate: Schema.Union([
|
|
20
24
|
Schema.Boolean,
|
|
@@ -28,12 +32,6 @@ export class Info extends Schema.Class("ConfigExperimental.Info")({
|
|
|
28
32
|
.annotate({
|
|
29
33
|
description: "Settings for the experimental_image_generate tool, which is offered while a connected provider has an image model.",
|
|
30
34
|
}),
|
|
31
|
-
schedules: Schema.Boolean.pipe(optional).annotate({
|
|
32
|
-
description: "Enable experimental scheduled tasks that wake a session with a prompt. Defaults to false.",
|
|
33
|
-
}),
|
|
34
|
-
artifacts: Schema.Boolean.pipe(optional).annotate({
|
|
35
|
-
description: "Enable experimental artifacts backed by pluggable providers. Defaults to false.",
|
|
36
|
-
}),
|
|
37
35
|
subagent_depth: NonNegativeInt.pipe(optional).annotate({
|
|
38
36
|
description: "Maximum subagent nesting depth. Defaults to 1.",
|
|
39
37
|
}),
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export * as ConfigFlag from "./flag.js";
|
|
2
|
+
/** The `OPENCODE_FLAGS` entry that turns every flag on, as in `all,-media_blob`. It is not a flag key. */
|
|
3
|
+
export declare const wildcard = "all";
|
|
4
|
+
/**
|
|
5
|
+
* Every feature flag, by key, with what it turns on. A flag is on in local and dev builds and off in released ones;
|
|
6
|
+
* `experimental.<key>` in config and `OPENCODE_FLAGS` override that, and `OPENCODE_FLAGS=all` or
|
|
7
|
+
* `experimental.all_flags: true` turn every flag on. Read one with Core's `Flag.enabled("<key>")`.
|
|
8
|
+
*/
|
|
9
|
+
export declare const registry: {
|
|
10
|
+
readonly todo: "Enable the experimental todowrite tool.";
|
|
11
|
+
readonly background_compaction: "Enable experimental background compaction: summarize the conversation in the background as it nears the compaction threshold, so automatic compaction does not wait for the summary. Background summaries that are never used still cost tokens.";
|
|
12
|
+
readonly media_blob: "Store new session media once in a deduplicated blob table instead of inline in every message row.";
|
|
13
|
+
readonly schedules: "Enable experimental scheduled tasks that wake a session with a prompt.";
|
|
14
|
+
readonly artifacts: "Enable experimental artifacts backed by pluggable providers.";
|
|
15
|
+
};
|
|
16
|
+
export type Key = keyof typeof registry;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * as ConfigFlag from "./flag.js";
|
|
2
|
+
/** The `OPENCODE_FLAGS` entry that turns every flag on, as in `all,-media_blob`. It is not a flag key. */
|
|
3
|
+
export const wildcard = "all";
|
|
4
|
+
/**
|
|
5
|
+
* Every feature flag, by key, with what it turns on. A flag is on in local and dev builds and off in released ones;
|
|
6
|
+
* `experimental.<key>` in config and `OPENCODE_FLAGS` override that, and `OPENCODE_FLAGS=all` or
|
|
7
|
+
* `experimental.all_flags: true` turn every flag on. Read one with Core's `Flag.enabled("<key>")`.
|
|
8
|
+
*/
|
|
9
|
+
export const registry = {
|
|
10
|
+
todo: "Enable the experimental todowrite tool.",
|
|
11
|
+
background_compaction: "Enable experimental background compaction: summarize the conversation in the background as it nears the compaction threshold, so automatic compaction does not wait for the summary. Background summaries that are never used still cost tokens.",
|
|
12
|
+
media_blob: "Store new session media once in a deduplicated blob table instead of inline in every message row.",
|
|
13
|
+
schedules: "Enable experimental scheduled tasks that wake a session with a prompt.",
|
|
14
|
+
artifacts: "Enable experimental artifacts backed by pluggable providers.",
|
|
15
|
+
};
|
package/dist/config/policy.d.ts
CHANGED
|
@@ -10,15 +10,16 @@ export type Effect = typeof Effect.Type;
|
|
|
10
10
|
* web search, MCP servers, or config an integration supplies come from no account (env keys, local config, the
|
|
11
11
|
* signed-out free tier).
|
|
12
12
|
* - `mcp.use`, `skill.use`, `plugin.use`: resource is an MCP server name, skill ID, or plugin target.
|
|
13
|
+
* - `websearch.use`: resource is a web search provider ID, such as `opencode` or `exa`.
|
|
13
14
|
*/
|
|
14
|
-
export declare const Action: Schema.Literals<readonly ["provider.use", "tool.use", "integration.connect", "integration.use", "mcp.use", "skill.use", "plugin.use"]>;
|
|
15
|
+
export declare const Action: Schema.Literals<readonly ["provider.use", "tool.use", "integration.connect", "integration.use", "mcp.use", "skill.use", "plugin.use", "websearch.use"]>;
|
|
15
16
|
export type Action = typeof Action.Type;
|
|
16
17
|
export declare const Info: Schema.decodeTo<Schema.toType<Schema.Struct<{
|
|
17
|
-
readonly action: Schema.Literals<readonly ["provider.use", "tool.use", "integration.connect", "integration.use", "mcp.use", "skill.use", "plugin.use"]>;
|
|
18
|
+
readonly action: Schema.Literals<readonly ["provider.use", "tool.use", "integration.connect", "integration.use", "mcp.use", "skill.use", "plugin.use", "websearch.use"]>;
|
|
18
19
|
readonly resource: Schema.String;
|
|
19
20
|
readonly effect: Schema.Literals<readonly ["allow", "deny"]>;
|
|
20
21
|
}>>, Schema.Struct<{
|
|
21
|
-
readonly action: Schema.Literals<readonly ["provider.use", "tool.use", "integration.connect", "integration.use", "mcp.use", "skill.use", "plugin.use"]>;
|
|
22
|
+
readonly action: Schema.Literals<readonly ["provider.use", "tool.use", "integration.connect", "integration.use", "mcp.use", "skill.use", "plugin.use", "websearch.use"]>;
|
|
22
23
|
readonly resource: Schema.String;
|
|
23
24
|
readonly effect: Schema.Literals<readonly ["allow", "deny"]>;
|
|
24
25
|
}>, never, never>;
|
package/dist/config/policy.js
CHANGED
|
@@ -9,6 +9,7 @@ export const Effect = Schema.Literals(["allow", "deny"]);
|
|
|
9
9
|
* web search, MCP servers, or config an integration supplies come from no account (env keys, local config, the
|
|
10
10
|
* signed-out free tier).
|
|
11
11
|
* - `mcp.use`, `skill.use`, `plugin.use`: resource is an MCP server name, skill ID, or plugin target.
|
|
12
|
+
* - `websearch.use`: resource is a web search provider ID, such as `opencode` or `exa`.
|
|
12
13
|
*/
|
|
13
14
|
export const Action = Schema.Literals([
|
|
14
15
|
"provider.use",
|
|
@@ -18,6 +19,7 @@ export const Action = Schema.Literals([
|
|
|
18
19
|
"mcp.use",
|
|
19
20
|
"skill.use",
|
|
20
21
|
"plugin.use",
|
|
22
|
+
"websearch.use",
|
|
21
23
|
]);
|
|
22
24
|
const Statement = Schema.Struct({
|
|
23
25
|
action: Action,
|
|
@@ -16,8 +16,22 @@ export declare const Settings: Schema.StructWithRest<Schema.Struct<{
|
|
|
16
16
|
}>]>>, never, never>;
|
|
17
17
|
readonly cache: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
18
18
|
readonly ttl: Schema.decodeTo<Schema.optional<Schema.toType<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>>, Schema.optionalKey<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>, never, never>;
|
|
19
|
+
readonly warming: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
20
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
21
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
22
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
23
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
24
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
25
|
+
}>]>>, never, never>;
|
|
19
26
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
20
27
|
readonly ttl: Schema.decodeTo<Schema.optional<Schema.toType<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>>, Schema.optionalKey<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>, never, never>;
|
|
28
|
+
readonly warming: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
29
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
30
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
31
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
32
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
33
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
34
|
+
}>]>>, never, never>;
|
|
21
35
|
}>>, never, never>;
|
|
22
36
|
readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
|
|
23
37
|
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
@@ -35,8 +49,22 @@ export declare const ModelSettings: Schema.StructWithRest<Schema.Struct<{
|
|
|
35
49
|
}>]>>, never, never>;
|
|
36
50
|
readonly cache: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
37
51
|
readonly ttl: Schema.decodeTo<Schema.optional<Schema.toType<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>>, Schema.optionalKey<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>, never, never>;
|
|
52
|
+
readonly warming: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
53
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
54
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
55
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
56
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
57
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
58
|
+
}>]>>, never, never>;
|
|
38
59
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
39
60
|
readonly ttl: Schema.decodeTo<Schema.optional<Schema.toType<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>>, Schema.optionalKey<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>, never, never>;
|
|
61
|
+
readonly warming: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
62
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
63
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
64
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
65
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
66
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
67
|
+
}>]>>, never, never>;
|
|
40
68
|
}>>, never, never>;
|
|
41
69
|
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
42
70
|
}>, readonly [Schema.$Record<Schema.String, Schema.UndefinedOr<Schema.Codec<Schema.Json, Schema.Json, never, never>>>]>;
|
|
@@ -57,8 +85,22 @@ export declare const Overlays: {
|
|
|
57
85
|
}>]>>, never, never>;
|
|
58
86
|
readonly cache: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
59
87
|
readonly ttl: Schema.decodeTo<Schema.optional<Schema.toType<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>>, Schema.optionalKey<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>, never, never>;
|
|
88
|
+
readonly warming: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
89
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
90
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
91
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
92
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
93
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
94
|
+
}>]>>, never, never>;
|
|
60
95
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
61
96
|
readonly ttl: Schema.decodeTo<Schema.optional<Schema.toType<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>>, Schema.optionalKey<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>, never, never>;
|
|
97
|
+
readonly warming: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
98
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
99
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
100
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
101
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
102
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
103
|
+
}>]>>, never, never>;
|
|
62
104
|
}>>, never, never>;
|
|
63
105
|
readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
|
|
64
106
|
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
@@ -77,8 +119,22 @@ export declare const Overlays: {
|
|
|
77
119
|
}>]>>, never, never>;
|
|
78
120
|
readonly cache: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
79
121
|
readonly ttl: Schema.decodeTo<Schema.optional<Schema.toType<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>>, Schema.optionalKey<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>, never, never>;
|
|
122
|
+
readonly warming: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
123
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
124
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
125
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
126
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
127
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
128
|
+
}>]>>, never, never>;
|
|
80
129
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
81
130
|
readonly ttl: Schema.decodeTo<Schema.optional<Schema.toType<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>>, Schema.optionalKey<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>, never, never>;
|
|
131
|
+
readonly warming: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
132
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
133
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
134
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
135
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
136
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
137
|
+
}>]>>, never, never>;
|
|
82
138
|
}>>, never, never>;
|
|
83
139
|
readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
|
|
84
140
|
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
@@ -159,8 +215,22 @@ declare const ModelConfig_base: Schema.Class<ModelConfig, Schema.Struct<{
|
|
|
159
215
|
}>]>>, never, never>;
|
|
160
216
|
readonly cache: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
161
217
|
readonly ttl: Schema.decodeTo<Schema.optional<Schema.toType<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>>, Schema.optionalKey<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>, never, never>;
|
|
218
|
+
readonly warming: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
219
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
220
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
221
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
222
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
223
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
224
|
+
}>]>>, never, never>;
|
|
162
225
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
163
226
|
readonly ttl: Schema.decodeTo<Schema.optional<Schema.toType<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>>, Schema.optionalKey<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>, never, never>;
|
|
227
|
+
readonly warming: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
228
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
229
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
230
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
231
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
232
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
233
|
+
}>]>>, never, never>;
|
|
164
234
|
}>>, never, never>;
|
|
165
235
|
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
166
236
|
}>, readonly [Schema.$Record<Schema.String, Schema.UndefinedOr<Schema.Codec<Schema.Json, Schema.Json, never, never>>>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
@@ -175,8 +245,22 @@ declare const ModelConfig_base: Schema.Class<ModelConfig, Schema.Struct<{
|
|
|
175
245
|
}>]>>, never, never>;
|
|
176
246
|
readonly cache: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
177
247
|
readonly ttl: Schema.decodeTo<Schema.optional<Schema.toType<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>>, Schema.optionalKey<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>, never, never>;
|
|
248
|
+
readonly warming: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
249
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
250
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
251
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
252
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
253
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
254
|
+
}>]>>, never, never>;
|
|
178
255
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
179
256
|
readonly ttl: Schema.decodeTo<Schema.optional<Schema.toType<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>>, Schema.optionalKey<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>, never, never>;
|
|
257
|
+
readonly warming: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
258
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
259
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
260
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
261
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
262
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
263
|
+
}>]>>, never, never>;
|
|
180
264
|
}>>, never, never>;
|
|
181
265
|
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
182
266
|
}>, readonly [Schema.$Record<Schema.String, Schema.UndefinedOr<Schema.Codec<Schema.Json, Schema.Json, never, never>>>]>>, never, never>;
|
|
@@ -355,8 +439,22 @@ declare const Info_base: Schema.Class<Info, Schema.Struct<{
|
|
|
355
439
|
}>]>>, never, never>;
|
|
356
440
|
readonly cache: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
357
441
|
readonly ttl: Schema.decodeTo<Schema.optional<Schema.toType<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>>, Schema.optionalKey<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>, never, never>;
|
|
442
|
+
readonly warming: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
443
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
444
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
445
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
446
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
447
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
448
|
+
}>]>>, never, never>;
|
|
358
449
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
359
450
|
readonly ttl: Schema.decodeTo<Schema.optional<Schema.toType<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>>, Schema.optionalKey<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>, never, never>;
|
|
451
|
+
readonly warming: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
452
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
453
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
454
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
455
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
456
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
457
|
+
}>]>>, never, never>;
|
|
360
458
|
}>>, never, never>;
|
|
361
459
|
readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
|
|
362
460
|
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
@@ -375,8 +473,22 @@ declare const Info_base: Schema.Class<Info, Schema.Struct<{
|
|
|
375
473
|
}>]>>, never, never>;
|
|
376
474
|
readonly cache: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
377
475
|
readonly ttl: Schema.decodeTo<Schema.optional<Schema.toType<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>>, Schema.optionalKey<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>, never, never>;
|
|
476
|
+
readonly warming: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
477
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
478
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
479
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
480
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
481
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
482
|
+
}>]>>, never, never>;
|
|
378
483
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
379
484
|
readonly ttl: Schema.decodeTo<Schema.optional<Schema.toType<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>>, Schema.optionalKey<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>, never, never>;
|
|
485
|
+
readonly warming: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
486
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
487
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
488
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
489
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
490
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
491
|
+
}>]>>, never, never>;
|
|
380
492
|
}>>, never, never>;
|
|
381
493
|
readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
|
|
382
494
|
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
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")',
|
package/dist/config.d.ts
CHANGED
|
@@ -55,19 +55,19 @@ declare const Info_base: Schema.Class<Info, Schema.Struct<{
|
|
|
55
55
|
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
56
56
|
}>>>, never, never>;
|
|
57
57
|
readonly policies: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.decodeTo<Schema.toType<Schema.Struct<{
|
|
58
|
-
readonly action: Schema.Literals<readonly ["provider.use", "tool.use", "integration.connect", "integration.use", "mcp.use", "skill.use", "plugin.use"]>;
|
|
58
|
+
readonly action: Schema.Literals<readonly ["provider.use", "tool.use", "integration.connect", "integration.use", "mcp.use", "skill.use", "plugin.use", "websearch.use"]>;
|
|
59
59
|
readonly resource: Schema.String;
|
|
60
60
|
readonly effect: Schema.Literals<readonly ["allow", "deny"]>;
|
|
61
61
|
}>>, Schema.Struct<{
|
|
62
|
-
readonly action: Schema.Literals<readonly ["provider.use", "tool.use", "integration.connect", "integration.use", "mcp.use", "skill.use", "plugin.use"]>;
|
|
62
|
+
readonly action: Schema.Literals<readonly ["provider.use", "tool.use", "integration.connect", "integration.use", "mcp.use", "skill.use", "plugin.use", "websearch.use"]>;
|
|
63
63
|
readonly resource: Schema.String;
|
|
64
64
|
readonly effect: Schema.Literals<readonly ["allow", "deny"]>;
|
|
65
65
|
}>, never, never>>>>, Schema.optionalKey<Schema.$Array<Schema.decodeTo<Schema.toType<Schema.Struct<{
|
|
66
|
-
readonly action: Schema.Literals<readonly ["provider.use", "tool.use", "integration.connect", "integration.use", "mcp.use", "skill.use", "plugin.use"]>;
|
|
66
|
+
readonly action: Schema.Literals<readonly ["provider.use", "tool.use", "integration.connect", "integration.use", "mcp.use", "skill.use", "plugin.use", "websearch.use"]>;
|
|
67
67
|
readonly resource: Schema.String;
|
|
68
68
|
readonly effect: Schema.Literals<readonly ["allow", "deny"]>;
|
|
69
69
|
}>>, Schema.Struct<{
|
|
70
|
-
readonly action: Schema.Literals<readonly ["provider.use", "tool.use", "integration.connect", "integration.use", "mcp.use", "skill.use", "plugin.use"]>;
|
|
70
|
+
readonly action: Schema.Literals<readonly ["provider.use", "tool.use", "integration.connect", "integration.use", "mcp.use", "skill.use", "plugin.use", "websearch.use"]>;
|
|
71
71
|
readonly resource: Schema.String;
|
|
72
72
|
readonly effect: Schema.Literals<readonly ["allow", "deny"]>;
|
|
73
73
|
}>, never, never>>>, never, never>;
|
package/dist/integration.d.ts
CHANGED
|
@@ -2335,6 +2335,8 @@ declare const Attempt_base: Schema.Class<Attempt, Schema.Struct<{
|
|
|
2335
2335
|
readonly url: Schema.String;
|
|
2336
2336
|
readonly instructions: Schema.String;
|
|
2337
2337
|
readonly mode: Schema.Literals<readonly ["auto", "code"]>;
|
|
2338
|
+
/** An `auto` attempt also accepts the redirect URL pasted from the browser as its `code`. */
|
|
2339
|
+
readonly paste: Schema.optionalKey<Schema.Literal<true>>;
|
|
2338
2340
|
readonly time: Schema.Struct<{
|
|
2339
2341
|
readonly created: Schema.Number;
|
|
2340
2342
|
readonly expires: Schema.Number;
|
package/dist/integration.js
CHANGED
|
@@ -66,6 +66,8 @@ export class Attempt extends Schema.Class("Integration.Attempt")({
|
|
|
66
66
|
url: Schema.String,
|
|
67
67
|
instructions: Schema.String,
|
|
68
68
|
mode: Schema.Literals(["auto", "code"]),
|
|
69
|
+
/** An `auto` attempt also accepts the redirect URL pasted from the browser as its `code`. */
|
|
70
|
+
paste: Schema.optionalKey(Schema.Literal(true)),
|
|
69
71
|
time: AttemptTime,
|
|
70
72
|
}) {
|
|
71
73
|
}
|
package/dist/job.d.ts
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
export * as Job from "./job.js";
|
|
2
|
+
import { Schema } from "effect";
|
|
3
|
+
export declare const Kind: Schema.Literals<readonly ["shell", "subagent", "image"]>;
|
|
4
|
+
export type Kind = typeof Kind.Type;
|
|
5
|
+
export declare const Status: Schema.Literals<readonly ["running", "completed", "error", "cancelled"]>;
|
|
6
|
+
export type Status = typeof Status.Type;
|
|
7
|
+
export interface Time extends Schema.Schema.Type<typeof Time> {
|
|
8
|
+
}
|
|
9
|
+
export declare const Time: Schema.Struct<{
|
|
10
|
+
readonly started: Schema.Finite;
|
|
11
|
+
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
12
|
+
}>;
|
|
13
|
+
export interface Shell extends Schema.Schema.Type<typeof Shell> {
|
|
14
|
+
}
|
|
15
|
+
export declare const Shell: Schema.Struct<{
|
|
16
|
+
readonly id: Schema.String;
|
|
17
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
18
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
19
|
+
};
|
|
20
|
+
readonly status: Schema.Literals<readonly ["running", "completed", "error", "cancelled"]>;
|
|
21
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
22
|
+
readonly time: Schema.Struct<{
|
|
23
|
+
readonly started: Schema.Finite;
|
|
24
|
+
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
25
|
+
}>;
|
|
26
|
+
readonly kind: Schema.tag<"shell">;
|
|
27
|
+
readonly shellID: Schema.String;
|
|
28
|
+
readonly command: Schema.String;
|
|
29
|
+
}>;
|
|
30
|
+
export interface Subagent extends Schema.Schema.Type<typeof Subagent> {
|
|
31
|
+
}
|
|
32
|
+
export declare const Subagent: Schema.Struct<{
|
|
33
|
+
readonly id: Schema.String;
|
|
34
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
35
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
36
|
+
};
|
|
37
|
+
readonly status: Schema.Literals<readonly ["running", "completed", "error", "cancelled"]>;
|
|
38
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
39
|
+
readonly time: Schema.Struct<{
|
|
40
|
+
readonly started: Schema.Finite;
|
|
41
|
+
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
42
|
+
}>;
|
|
43
|
+
readonly kind: Schema.tag<"subagent">;
|
|
44
|
+
readonly childSessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
45
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
46
|
+
};
|
|
47
|
+
readonly agent: Schema.String;
|
|
48
|
+
readonly description: Schema.String;
|
|
49
|
+
}>;
|
|
50
|
+
export interface Image extends Schema.Schema.Type<typeof Image> {
|
|
51
|
+
}
|
|
52
|
+
export declare const Image: Schema.Struct<{
|
|
53
|
+
readonly id: Schema.String;
|
|
54
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
55
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
56
|
+
};
|
|
57
|
+
readonly status: Schema.Literals<readonly ["running", "completed", "error", "cancelled"]>;
|
|
58
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
59
|
+
readonly time: Schema.Struct<{
|
|
60
|
+
readonly started: Schema.Finite;
|
|
61
|
+
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
62
|
+
}>;
|
|
63
|
+
readonly kind: Schema.tag<"image">;
|
|
64
|
+
readonly path: Schema.String;
|
|
65
|
+
readonly model: Schema.String;
|
|
66
|
+
}>;
|
|
67
|
+
export declare const Info: Schema.Union<readonly [Schema.Struct<{
|
|
68
|
+
readonly id: Schema.String;
|
|
69
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
70
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
71
|
+
};
|
|
72
|
+
readonly status: Schema.Literals<readonly ["running", "completed", "error", "cancelled"]>;
|
|
73
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
74
|
+
readonly time: Schema.Struct<{
|
|
75
|
+
readonly started: Schema.Finite;
|
|
76
|
+
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
77
|
+
}>;
|
|
78
|
+
readonly kind: Schema.tag<"shell">;
|
|
79
|
+
readonly shellID: Schema.String;
|
|
80
|
+
readonly command: Schema.String;
|
|
81
|
+
}>, Schema.Struct<{
|
|
82
|
+
readonly id: Schema.String;
|
|
83
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
84
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
85
|
+
};
|
|
86
|
+
readonly status: Schema.Literals<readonly ["running", "completed", "error", "cancelled"]>;
|
|
87
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
88
|
+
readonly time: Schema.Struct<{
|
|
89
|
+
readonly started: Schema.Finite;
|
|
90
|
+
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
91
|
+
}>;
|
|
92
|
+
readonly kind: Schema.tag<"subagent">;
|
|
93
|
+
readonly childSessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
94
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
95
|
+
};
|
|
96
|
+
readonly agent: Schema.String;
|
|
97
|
+
readonly description: Schema.String;
|
|
98
|
+
}>, Schema.Struct<{
|
|
99
|
+
readonly id: Schema.String;
|
|
100
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
101
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
102
|
+
};
|
|
103
|
+
readonly status: Schema.Literals<readonly ["running", "completed", "error", "cancelled"]>;
|
|
104
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
105
|
+
readonly time: Schema.Struct<{
|
|
106
|
+
readonly started: Schema.Finite;
|
|
107
|
+
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
108
|
+
}>;
|
|
109
|
+
readonly kind: Schema.tag<"image">;
|
|
110
|
+
readonly path: Schema.String;
|
|
111
|
+
readonly model: Schema.String;
|
|
112
|
+
}>]>;
|
|
113
|
+
export type Info = typeof Info.Type;
|