@opencode/schema 0.0.0-dev-1314 → 0.0.0-dev-1315

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.
@@ -4,7 +4,6 @@ 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
5
  readonly codemode_vm: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
6
6
  readonly all_flags: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
7
- readonly todo: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
8
7
  readonly video_generate: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
9
8
  readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.Struct<{
10
9
  readonly providerID: Schema.brand<Schema.String, "Provider.ID">;
@@ -106,6 +105,7 @@ declare const Info_base: Schema.Class<Info, Schema.Struct<{
106
105
  readonly full_codemode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
107
106
  readonly mcp_events: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
108
107
  readonly media_blob: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
108
+ readonly todo: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
109
109
  }>, {}>;
110
110
  export declare class Info extends Info_base {
111
111
  }
@@ -12,13 +12,12 @@ export class Info extends Schema.Class("ConfigExperimental.Info")({
12
12
  description: "Deprecated: ignored because Code Mode always runs on the VM.",
13
13
  }),
14
14
  all_flags: Schema.Boolean.pipe(optional).annotate({
15
- 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.",
15
+ description: "Enable all flags except opt-in-only flags on any build channel, like OPENCODE_FLAGS=all. Per-flag config settings take precedence over all_flags; false leaves the build defaults in effect.",
16
16
  }),
17
- todo: Schema.Boolean.pipe(optional).annotate({
18
- description: "Enable the experimental todowrite tool. Defaults to false.",
19
- }),
20
- ...Record.map(ConfigFlag.registry, (description) => Schema.Boolean.pipe(optional).annotate({
21
- description: `${description} Defaults to on in local and dev builds and off in releases.`,
17
+ ...Record.map(ConfigFlag.registry, (description, key) => Schema.Boolean.pipe(optional).annotate({
18
+ description: ConfigFlag.optInOnly.has(key)
19
+ ? description
20
+ : `${description} Defaults to on in local and dev builds and off in releases.`,
22
21
  })),
23
22
  // The flag also takes settings; an object turns it on.
24
23
  video_generate: Schema.Union([
@@ -1,12 +1,12 @@
1
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. */
2
+ /** The `OPENCODE_FLAGS` entry that enables all flags except opt-in-only flags, as in `all,-media_blob`. */
3
3
  export declare const wildcard = "all";
4
4
  /**
5
- * Every feature flag, by key, with what it turns on. Flags default to on in local and dev builds and off in releases;
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>")`.
5
+ * Flags default to on in local and dev builds and off in releases, except for `optInOnly` flags, which must be
6
+ * named explicitly in `experimental.<key>` or `OPENCODE_FLAGS`. Read a flag with Core's `Flag.enabled("<key>")`.
8
7
  */
9
8
  export declare const registry: {
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
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
12
  readonly artifacts: "Enable experimental artifacts backed by pluggable providers.";
@@ -16,6 +16,7 @@ export declare const registry: {
16
16
  readonly full_codemode: "Enable the full Code Mode work in progress.";
17
17
  };
18
18
  export type Key = keyof typeof registry;
19
+ export declare const optInOnly: ReadonlySet<Key>;
19
20
  /** Earlier names of a flag, still read from `experimental.<name>` and `OPENCODE_FLAGS` when the new key is unset. */
20
21
  export declare const aliases: {
21
22
  readonly schedules: "automations";
@@ -1,12 +1,12 @@
1
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. */
2
+ /** The `OPENCODE_FLAGS` entry that enables all flags except opt-in-only flags, as in `all,-media_blob`. */
3
3
  export const wildcard = "all";
4
4
  /**
5
- * Every feature flag, by key, with what it turns on. Flags default to on in local and dev builds and off in releases;
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>")`.
5
+ * Flags default to on in local and dev builds and off in releases, except for `optInOnly` flags, which must be
6
+ * named explicitly in `experimental.<key>` or `OPENCODE_FLAGS`. Read a flag with Core's `Flag.enabled("<key>")`.
8
7
  */
9
8
  export const registry = {
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
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
12
  artifacts: "Enable experimental artifacts backed by pluggable providers.",
@@ -15,6 +15,7 @@ export const registry = {
15
15
  mcp_events: "Enable experimental MCP Events, a draft MCP extension: declare support to MCP servers and read the events of servers that offer them.",
16
16
  full_codemode: "Enable the full Code Mode work in progress.",
17
17
  };
18
+ export const optInOnly = new Set(["todo"]);
18
19
  /** Earlier names of a flag, still read from `experimental.<name>` and `OPENCODE_FLAGS` when the new key is unset. */
19
20
  export const aliases = {
20
21
  schedules: "automations",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode/schema",
4
- "version": "0.0.0-dev-1314",
4
+ "version": "0.0.0-dev-1315",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {