@opencode/schema 0.0.0-dev-1328 → 0.0.0-dev-1330
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.
|
@@ -41,7 +41,6 @@ declare const Info_base: Schema.Class<Info, Schema.Struct<{
|
|
|
41
41
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
42
42
|
}>]>, never, never>>, never, never>;
|
|
43
43
|
}>]>>, never, never>;
|
|
44
|
-
readonly schedules: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
45
44
|
readonly part_rows: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
46
45
|
readonly image_generate: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
47
46
|
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.Struct<{
|
|
@@ -100,7 +99,6 @@ declare const Info_base: Schema.Class<Info, Schema.Struct<{
|
|
|
100
99
|
readonly effect: Schema.Literals<readonly ["allow", "deny"]>;
|
|
101
100
|
}>, never, never>>>, never, never>;
|
|
102
101
|
readonly artifacts: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
103
|
-
readonly automations: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
104
102
|
readonly console_watches: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
105
103
|
readonly full_codemode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
106
104
|
readonly home_memory: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
@@ -32,9 +32,6 @@ export class Info extends Schema.Class("ConfigExperimental.Info")({
|
|
|
32
32
|
.annotate({
|
|
33
33
|
description: `${ConfigFlag.registry.video_generate} Defaults to on in local and dev builds and off in releases. An object turns it on and sets the tool's options.`,
|
|
34
34
|
}),
|
|
35
|
-
schedules: Schema.Boolean.pipe(optional).annotate({
|
|
36
|
-
description: "Deprecated: use experimental.automations.",
|
|
37
|
-
}),
|
|
38
35
|
part_rows: Schema.Boolean.pipe(optional).annotate({
|
|
39
36
|
description: "Write each assistant part as its own session_part row instead of rewriting the whole message on every event. Defaults to true; set false to fall back to whole-message writes.",
|
|
40
37
|
}),
|
package/dist/config/flag.d.ts
CHANGED
|
@@ -8,7 +8,6 @@ export declare const wildcard = "all";
|
|
|
8
8
|
export declare const registry: {
|
|
9
9
|
readonly todo: "Enable the experimental todowrite tool. Off by default in every build, including local and dev; opt in with OPENCODE_FLAGS=todo or experimental.todo: true.";
|
|
10
10
|
readonly media_blob: "Store new session media once in a deduplicated blob table instead of inline in every message row.";
|
|
11
|
-
readonly automations: "Run a prompt or Code Mode action on a timer, or on a connected MCP server's push event when mcp_events is enabled.";
|
|
12
11
|
readonly artifacts: "Enable experimental artifacts backed by pluggable providers.";
|
|
13
12
|
readonly video_generate: "Enable experimental video generation: the HTTP API that starts a video job and stores the result, and the agent tool that saves the videos into the workspace.";
|
|
14
13
|
readonly console_watches: "Watch Slack threads, GitHub pull requests, issues, commits and Actions runs, and the workspace's MCP servers' events through OpenCode Console, and wake sessions when they change.";
|
|
@@ -18,11 +17,7 @@ export declare const registry: {
|
|
|
18
17
|
readonly machines: "Let a tool path name a machine, as in gpu:/work/train.py, and act on that machine's files and processes.";
|
|
19
18
|
readonly home_memory: "Give sessions in the home folder a persistent memory/, docs/ and scripts/ workspace the agent can use freely, tidied by a daily maintenance session that reads the day's home-folder conversations.";
|
|
20
19
|
readonly project_overlay: "Load a personal config dir for each project from ~/.config/opencode/project/<project-id>/, read like an extra .opencode dir that ranks above the repo's own, and let home memory keep the skills it builds for the user there.";
|
|
21
|
-
readonly sqlite_fts: "Build an SQLite full-text index of session titles and message text in the background, and enable the opencode.session.search and opencode.session.read tools. The index covers every session in the database and starts while any loaded location enables it; SQLite keeps it current from then on, also after this is turned off.
|
|
20
|
+
readonly sqlite_fts: "Build an SQLite full-text index of session titles and message text in the background, and enable the opencode.session.search and opencode.session.read tools. The index covers every session in the database and starts while any loaded location enables it; SQLite keeps it current from then on, also after this is turned off.";
|
|
22
21
|
};
|
|
23
22
|
export type Key = keyof typeof registry;
|
|
24
23
|
export declare const optInOnly: ReadonlySet<Key>;
|
|
25
|
-
/** Earlier names of a flag, still read from `experimental.<name>` and `OPENCODE_FLAGS` when the new key is unset. */
|
|
26
|
-
export declare const aliases: {
|
|
27
|
-
readonly schedules: "automations";
|
|
28
|
-
};
|
package/dist/config/flag.js
CHANGED
|
@@ -8,7 +8,6 @@ export const wildcard = "all";
|
|
|
8
8
|
export const registry = {
|
|
9
9
|
todo: "Enable the experimental todowrite tool. Off by default in every build, including local and dev; opt in with OPENCODE_FLAGS=todo or experimental.todo: true.",
|
|
10
10
|
media_blob: "Store new session media once in a deduplicated blob table instead of inline in every message row.",
|
|
11
|
-
automations: "Run a prompt or Code Mode action on a timer, or on a connected MCP server's push event when mcp_events is enabled.",
|
|
12
11
|
artifacts: "Enable experimental artifacts backed by pluggable providers.",
|
|
13
12
|
video_generate: "Enable experimental video generation: the HTTP API that starts a video job and stores the result, and the agent tool that saves the videos into the workspace.",
|
|
14
13
|
console_watches: "Watch Slack threads, GitHub pull requests, issues, commits and Actions runs, and the workspace's MCP servers' events through OpenCode Console, and wake sessions when they change.",
|
|
@@ -18,10 +17,6 @@ export const registry = {
|
|
|
18
17
|
machines: "Let a tool path name a machine, as in gpu:/work/train.py, and act on that machine's files and processes.",
|
|
19
18
|
home_memory: "Give sessions in the home folder a persistent memory/, docs/ and scripts/ workspace the agent can use freely, tidied by a daily maintenance session that reads the day's home-folder conversations.",
|
|
20
19
|
project_overlay: "Load a personal config dir for each project from ~/.config/opencode/project/<project-id>/, read like an extra .opencode dir that ranks above the repo's own, and let home memory keep the skills it builds for the user there.",
|
|
21
|
-
sqlite_fts: "Build an SQLite full-text index of session titles and message text in the background, and enable the opencode.session.search and opencode.session.read tools. The index covers every session in the database and starts while any loaded location enables it; SQLite keeps it current from then on, also after this is turned off.
|
|
22
|
-
};
|
|
23
|
-
export const optInOnly = new Set(["todo", "sqlite_fts"]);
|
|
24
|
-
/** Earlier names of a flag, still read from `experimental.<name>` and `OPENCODE_FLAGS` when the new key is unset. */
|
|
25
|
-
export const aliases = {
|
|
26
|
-
schedules: "automations",
|
|
20
|
+
sqlite_fts: "Build an SQLite full-text index of session titles and message text in the background, and enable the opencode.session.search and opencode.session.read tools. The index covers every session in the database and starts while any loaded location enables it; SQLite keeps it current from then on, also after this is turned off.",
|
|
27
21
|
};
|
|
22
|
+
export const optInOnly = new Set(["todo"]);
|
package/dist/config.d.ts
CHANGED
|
@@ -45,6 +45,7 @@ declare const Info_base: Schema.Class<Info, Schema.Struct<{
|
|
|
45
45
|
}>>, never, never>;
|
|
46
46
|
readonly username: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
47
47
|
readonly timezone: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
48
|
+
readonly automations: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
48
49
|
readonly permissions: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
49
50
|
readonly action: Schema.String;
|
|
50
51
|
readonly resource: Schema.String;
|
package/dist/config.js
CHANGED
|
@@ -53,6 +53,9 @@ export class Info extends Schema.Class("Config.Info")({
|
|
|
53
53
|
timezone: Schema.String.pipe(optional).annotate({
|
|
54
54
|
description: "IANA time zone for schedules, e.g. America/Los_Angeles. Defaults to the server's local zone",
|
|
55
55
|
}),
|
|
56
|
+
automations: Schema.Boolean.pipe(optional).annotate({
|
|
57
|
+
description: "Run prompts, shell commands or Code Mode actions on a timer, on a cron schedule, or on push events from connected MCP servers. Defaults to true; set false to disable. MCP events still require experimental.mcp_events.",
|
|
58
|
+
}),
|
|
56
59
|
permissions: Permission.Ruleset.pipe(optional).annotate({
|
|
57
60
|
description: "Ordered tool permission rules applied to agent tool use",
|
|
58
61
|
}),
|