@opencode/schema 2.2.7 → 2.3.1

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.
@@ -8,12 +8,20 @@ export class Info extends Schema.Class("ConfigExperimental.Info")({
8
8
  portable_shell_scanner: Schema.Boolean.pipe(optional).annotate({
9
9
  description: "Deprecated: the built-in shell permission scanner is now always enabled.",
10
10
  }),
11
+ codemode_vm: Schema.Boolean.pipe(optional).annotate({
12
+ description: "Deprecated: ignored because Code Mode always runs on the VM.",
13
+ }),
11
14
  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.",
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.",
13
16
  }),
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.`,
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.`,
16
21
  })),
22
+ schedules: Schema.Boolean.pipe(optional).annotate({
23
+ description: "Deprecated: use experimental.automations.",
24
+ }),
17
25
  part_rows: Schema.Boolean.pipe(optional).annotate({
18
26
  description: "Write each assistant part as its own session_part row instead of rewriting the whole message on every event. Defaults to false.",
19
27
  }),
@@ -1,18 +1,23 @@
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. 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>")`.
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: {
10
9
  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
10
  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.";
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.";
14
12
  readonly artifacts: "Enable experimental artifacts backed by pluggable providers.";
15
- readonly codemode_vm: "Run the Code Mode execute tool on the experimental bytecode VM instead of the legacy interpreter.";
13
+ readonly video_generate: "Enable the experimental video generation API.";
16
14
  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.";
15
+ readonly 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
+ readonly full_codemode: "Enable the full Code Mode work in progress. Off by default in every build, including local and dev; opt in with OPENCODE_FLAGS=full_codemode or experimental.full_codemode: true.";
17
17
  };
18
18
  export type Key = keyof typeof registry;
19
+ export declare const optInOnly: ReadonlySet<Key>;
20
+ /** Earlier names of a flag, still read from `experimental.<name>` and `OPENCODE_FLAGS` when the new key is unset. */
21
+ export declare const aliases: {
22
+ readonly schedules: "automations";
23
+ };
@@ -1,17 +1,22 @@
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. 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>")`.
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 = {
10
9
  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
10
  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.",
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.",
14
12
  artifacts: "Enable experimental artifacts backed by pluggable providers.",
15
- codemode_vm: "Run the Code Mode execute tool on the experimental bytecode VM instead of the legacy interpreter.",
13
+ video_generate: "Enable the experimental video generation API.",
16
14
  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.",
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
+ full_codemode: "Enable the full Code Mode work in progress. Off by default in every build, including local and dev; opt in with OPENCODE_FLAGS=full_codemode or experimental.full_codemode: true.",
17
+ };
18
+ export const optInOnly = new Set(["full_codemode"]);
19
+ /** Earlier names of a flag, still read from `experimental.<name>` and `OPENCODE_FLAGS` when the new key is unset. */
20
+ export const aliases = {
21
+ schedules: "automations",
17
22
  };
@@ -35,6 +35,15 @@ export declare const Settings: Schema.StructWithRest<Schema.Struct<{
35
35
  }>>, never, never>;
36
36
  readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
37
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>;
38
+ readonly tls: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
39
+ readonly cert: Schema.String;
40
+ readonly key: Schema.String;
41
+ readonly passphrase: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
42
+ }>>>, Schema.optionalKey<Schema.Struct<{
43
+ readonly cert: Schema.String;
44
+ readonly key: Schema.String;
45
+ readonly passphrase: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
46
+ }>>, never, never>;
38
47
  }>, readonly [Schema.$Record<Schema.String, Schema.UndefinedOr<Schema.Codec<Schema.Json, Schema.Json, never, never>>>]>;
39
48
  export type Settings = typeof Settings.Type;
40
49
  export declare const ModelSettings: Schema.StructWithRest<Schema.Struct<{
@@ -104,6 +113,15 @@ export declare const Overlays: {
104
113
  }>>, never, never>;
105
114
  readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
106
115
  readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
116
+ readonly tls: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
117
+ readonly cert: Schema.String;
118
+ readonly key: Schema.String;
119
+ readonly passphrase: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
120
+ }>>>, Schema.optionalKey<Schema.Struct<{
121
+ readonly cert: Schema.String;
122
+ readonly key: Schema.String;
123
+ readonly passphrase: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
124
+ }>>, never, never>;
107
125
  }>, readonly [Schema.$Record<Schema.String, Schema.UndefinedOr<Schema.Codec<Schema.Json, Schema.Json, never, never>>>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
108
126
  readonly timeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
109
127
  readonly headerTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
@@ -138,6 +156,15 @@ export declare const Overlays: {
138
156
  }>>, never, never>;
139
157
  readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
140
158
  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
+ readonly tls: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
160
+ readonly cert: Schema.String;
161
+ readonly key: Schema.String;
162
+ readonly passphrase: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
163
+ }>>>, Schema.optionalKey<Schema.Struct<{
164
+ readonly cert: Schema.String;
165
+ readonly key: Schema.String;
166
+ readonly passphrase: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
167
+ }>>, never, never>;
141
168
  }>, readonly [Schema.$Record<Schema.String, Schema.UndefinedOr<Schema.Codec<Schema.Json, Schema.Json, never, never>>>]>>, never, never>;
142
169
  headers: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
143
170
  body: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
@@ -299,6 +326,7 @@ declare const ModelConfig_base: Schema.Class<ModelConfig, Schema.Struct<{
299
326
  readonly package: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
300
327
  readonly capabilities: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
301
328
  readonly tools: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
329
+ readonly freeform: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Literals<("lark" | "regex" | "text")[]>>>>, Schema.optionalKey<Schema.$Array<Schema.Literals<("lark" | "regex" | "text")[]>>>, never, never>;
302
330
  readonly input: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
303
331
  readonly output: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
304
332
  readonly temperature: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
@@ -331,6 +359,7 @@ declare const ModelConfig_base: Schema.Class<ModelConfig, Schema.Struct<{
331
359
  }>]>>, never, never>;
332
360
  }>>>, Schema.optionalKey<Schema.Struct<{
333
361
  readonly tools: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
362
+ readonly freeform: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Literals<("lark" | "regex" | "text")[]>>>>, Schema.optionalKey<Schema.$Array<Schema.Literals<("lark" | "regex" | "text")[]>>>, never, never>;
334
363
  readonly input: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
335
364
  readonly output: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
336
365
  readonly temperature: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
@@ -458,6 +487,15 @@ declare const Info_base: Schema.Class<Info, Schema.Struct<{
458
487
  }>>, never, never>;
459
488
  readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
460
489
  readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
490
+ readonly tls: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
491
+ readonly cert: Schema.String;
492
+ readonly key: Schema.String;
493
+ readonly passphrase: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
494
+ }>>>, Schema.optionalKey<Schema.Struct<{
495
+ readonly cert: Schema.String;
496
+ readonly key: Schema.String;
497
+ readonly passphrase: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
498
+ }>>, never, never>;
461
499
  }>, readonly [Schema.$Record<Schema.String, Schema.UndefinedOr<Schema.Codec<Schema.Json, Schema.Json, never, never>>>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
462
500
  readonly timeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
463
501
  readonly headerTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
@@ -492,6 +530,15 @@ declare const Info_base: Schema.Class<Info, Schema.Struct<{
492
530
  }>>, never, never>;
493
531
  readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
494
532
  readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
533
+ readonly tls: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
534
+ readonly cert: Schema.String;
535
+ readonly key: Schema.String;
536
+ readonly passphrase: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
537
+ }>>>, Schema.optionalKey<Schema.Struct<{
538
+ readonly cert: Schema.String;
539
+ readonly key: Schema.String;
540
+ readonly passphrase: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
541
+ }>>, never, never>;
495
542
  }>, readonly [Schema.$Record<Schema.String, Schema.UndefinedOr<Schema.Codec<Schema.Json, Schema.Json, never, never>>>]>>, never, never>;
496
543
  readonly headers: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
497
544
  readonly body: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
@@ -75,6 +75,7 @@ class ModelConfig extends Schema.Class("Config.Model")({
75
75
  // Partial: unset fields fall back to the base model's capabilities, then the defaults.
76
76
  capabilities: Capabilities.mapFields((fields) => ({
77
77
  tools: optional(fields.tools),
78
+ freeform: fields.freeform,
78
79
  input: optional(fields.input),
79
80
  output: optional(fields.output),
80
81
  temperature: fields.temperature,
@@ -2548,6 +2548,62 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
2548
2548
  readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
2549
2549
  readonly started: Schema.Int;
2550
2550
  }>;
2551
+ }, Schema.Struct<{
2552
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
2553
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
2554
+ };
2555
+ readonly created: Schema.Finite;
2556
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
2557
+ readonly type: Schema.Literal<"session.step.first-token">;
2558
+ readonly durable: Schema.Struct<{
2559
+ readonly aggregateID: Schema.String;
2560
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2561
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
2562
+ }>;
2563
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2564
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
2565
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
2566
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
2567
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
2568
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
2569
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
2570
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
2571
+ }>, never, never>;
2572
+ }>>>, Schema.optionalKey<Schema.Struct<{
2573
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
2574
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
2575
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
2576
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
2577
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
2578
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
2579
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
2580
+ }>, never, never>;
2581
+ }>>, never, never>;
2582
+ readonly data: Schema.Struct<{
2583
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
2584
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
2585
+ };
2586
+ readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
2587
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2588
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2589
+ };
2590
+ }>;
2591
+ }> & {
2592
+ type: "session.step.first-token";
2593
+ durability: "durable";
2594
+ durable: {
2595
+ readonly version: number;
2596
+ readonly aggregate: string;
2597
+ };
2598
+ data: Schema.Struct<{
2599
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
2600
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
2601
+ };
2602
+ readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
2603
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2604
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2605
+ };
2606
+ }>;
2551
2607
  }, Schema.Struct<{
2552
2608
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
2553
2609
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
@@ -6380,6 +6436,56 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
6380
6436
  data: Schema.Struct<{
6381
6437
  readonly server: Schema.String;
6382
6438
  }>;
6439
+ }, Schema.Struct<{
6440
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
6441
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
6442
+ };
6443
+ readonly created: Schema.Finite;
6444
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
6445
+ readonly type: Schema.Literal<"experimental.mcp.event">;
6446
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
6447
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
6448
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
6449
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
6450
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
6451
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
6452
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
6453
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
6454
+ }>, never, never>;
6455
+ }>>>, Schema.optionalKey<Schema.Struct<{
6456
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
6457
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
6458
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
6459
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
6460
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
6461
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
6462
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
6463
+ }>, never, never>;
6464
+ }>>, never, never>;
6465
+ readonly data: Schema.Struct<{
6466
+ readonly id: Schema.String;
6467
+ readonly server: Schema.String;
6468
+ readonly name: Schema.String;
6469
+ readonly eventId: Schema.String;
6470
+ readonly timestamp: Schema.String;
6471
+ readonly data: Schema.Codec<Schema.Json, Schema.Json, never, never>;
6472
+ readonly cursor: Schema.NullOr<Schema.String>;
6473
+ readonly truncated: Schema.optional<Schema.Boolean>;
6474
+ }>;
6475
+ }> & {
6476
+ type: "experimental.mcp.event";
6477
+ durability: "ephemeral";
6478
+ durable: undefined;
6479
+ data: Schema.Struct<{
6480
+ readonly id: Schema.String;
6481
+ readonly server: Schema.String;
6482
+ readonly name: Schema.String;
6483
+ readonly eventId: Schema.String;
6484
+ readonly timestamp: Schema.String;
6485
+ readonly data: Schema.Codec<Schema.Json, Schema.Json, never, never>;
6486
+ readonly cursor: Schema.NullOr<Schema.String>;
6487
+ readonly truncated: Schema.optional<Schema.Boolean>;
6488
+ }>;
6383
6489
  }];
6384
6490
  export declare const Server: ReadonlyMap<string, Event.Definition<string, Schema.Codec<unknown, unknown, never, never>>>;
6385
6491
  export type ServerEvent = Schema.Schema.Type<(typeof ServerDefinitions)[number]>;
@@ -8932,6 +9038,62 @@ export declare const Definitions: readonly [Schema.Struct<{
8932
9038
  readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
8933
9039
  readonly started: Schema.Int;
8934
9040
  }>;
9041
+ }, Schema.Struct<{
9042
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
9043
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
9044
+ };
9045
+ readonly created: Schema.Finite;
9046
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
9047
+ readonly type: Schema.Literal<"session.step.first-token">;
9048
+ readonly durable: Schema.Struct<{
9049
+ readonly aggregateID: Schema.String;
9050
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
9051
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
9052
+ }>;
9053
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
9054
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
9055
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
9056
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
9057
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
9058
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
9059
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
9060
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
9061
+ }>, never, never>;
9062
+ }>>>, Schema.optionalKey<Schema.Struct<{
9063
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
9064
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
9065
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
9066
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
9067
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
9068
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
9069
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
9070
+ }>, never, never>;
9071
+ }>>, never, never>;
9072
+ readonly data: Schema.Struct<{
9073
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
9074
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
9075
+ };
9076
+ readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
9077
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
9078
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
9079
+ };
9080
+ }>;
9081
+ }> & {
9082
+ type: "session.step.first-token";
9083
+ durability: "durable";
9084
+ durable: {
9085
+ readonly version: number;
9086
+ readonly aggregate: string;
9087
+ };
9088
+ data: Schema.Struct<{
9089
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
9090
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
9091
+ };
9092
+ readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
9093
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
9094
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
9095
+ };
9096
+ }>;
8935
9097
  }, Schema.Struct<{
8936
9098
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
8937
9099
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
@@ -12666,6 +12828,92 @@ export declare const Definitions: readonly [Schema.Struct<{
12666
12828
  data: Schema.Struct<{
12667
12829
  readonly server: Schema.String;
12668
12830
  }>;
12831
+ }, Schema.Struct<{
12832
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
12833
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
12834
+ };
12835
+ readonly created: Schema.Finite;
12836
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
12837
+ readonly type: Schema.Literal<"experimental.mcp.event">;
12838
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12839
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
12840
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
12841
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
12842
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
12843
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
12844
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
12845
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
12846
+ }>, never, never>;
12847
+ }>>>, Schema.optionalKey<Schema.Struct<{
12848
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
12849
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
12850
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
12851
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
12852
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
12853
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
12854
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
12855
+ }>, never, never>;
12856
+ }>>, never, never>;
12857
+ readonly data: Schema.Struct<{
12858
+ readonly id: Schema.String;
12859
+ readonly server: Schema.String;
12860
+ readonly name: Schema.String;
12861
+ readonly eventId: Schema.String;
12862
+ readonly timestamp: Schema.String;
12863
+ readonly data: Schema.Codec<Schema.Json, Schema.Json, never, never>;
12864
+ readonly cursor: Schema.NullOr<Schema.String>;
12865
+ readonly truncated: Schema.optional<Schema.Boolean>;
12866
+ }>;
12867
+ }> & {
12868
+ type: "experimental.mcp.event";
12869
+ durability: "ephemeral";
12870
+ durable: undefined;
12871
+ data: Schema.Struct<{
12872
+ readonly id: Schema.String;
12873
+ readonly server: Schema.String;
12874
+ readonly name: Schema.String;
12875
+ readonly eventId: Schema.String;
12876
+ readonly timestamp: Schema.String;
12877
+ readonly data: Schema.Codec<Schema.Json, Schema.Json, never, never>;
12878
+ readonly cursor: Schema.NullOr<Schema.String>;
12879
+ readonly truncated: Schema.optional<Schema.Boolean>;
12880
+ }>;
12881
+ }, Schema.Struct<{
12882
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
12883
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
12884
+ };
12885
+ readonly created: Schema.Finite;
12886
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
12887
+ readonly type: Schema.Literal<"experimental.mcp.subscription.changed">;
12888
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12889
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
12890
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
12891
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
12892
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
12893
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
12894
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
12895
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
12896
+ }>, never, never>;
12897
+ }>>>, Schema.optionalKey<Schema.Struct<{
12898
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
12899
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
12900
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
12901
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
12902
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
12903
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
12904
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
12905
+ }>, never, never>;
12906
+ }>>, never, never>;
12907
+ readonly data: Schema.Struct<{
12908
+ readonly id: Schema.String;
12909
+ }>;
12910
+ }> & {
12911
+ type: "experimental.mcp.subscription.changed";
12912
+ durability: "ephemeral";
12913
+ durable: undefined;
12914
+ data: Schema.Struct<{
12915
+ readonly id: Schema.String;
12916
+ }>;
12669
12917
  }, Schema.Struct<{
12670
12918
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
12671
12919
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
@@ -41,7 +41,7 @@ const foundationDefinitions = Event.inventory(...LocationEvent.Definitions, ...M
41
41
  const featureDefinitions = Event.inventory(...FileSystem.Event.Definitions, ...Reference.Event.Definitions, ...Permission.Event.Definitions, ...Plugin.Event.Definitions, ...Project.Event.Definitions, ...Worktree.Event.Definitions, ...Command.Event.Definitions, ...Config.Event.Definitions, ...Skill.Event.Definitions, ...Pty.Event.Definitions, ...PersistentPty.Event.Definitions, ...Shell.Event.Definitions, ...Form.Event.Definitions, ...WebSearch.Event.Definitions, ...Artifact.Event.Definitions);
42
42
  export const ServerDefinitions = Event.inventory(...foundationDefinitions, ...featureDefinitions,
43
43
  // Current events the TUI consumes from the public stream.
44
- ...SessionStatusEvent.Definitions, ...TuiEvent.Definitions, ...InstallationEvent.Definitions, ...VcsEvent.Definitions, McpEvent.StatusChanged, McpEvent.ResourcesChanged);
44
+ ...SessionStatusEvent.Definitions, ...TuiEvent.Definitions, ...InstallationEvent.Definitions, ...VcsEvent.Definitions, McpEvent.StatusChanged, McpEvent.ResourcesChanged, McpEvent.ExperimentalEvent);
45
45
  export const Server = Event.latest(ServerDefinitions);
46
46
  export const isServer = (event) => Server.has(event.type);
47
47
  export const Definitions = Event.inventory(...foundationDefinitions, ...InstallationEvent.Definitions, ...featureDefinitions, ...LspEvent.Definitions, ...TuiEvent.Definitions, ...McpEvent.Definitions, ...LegacyEventV1.Definitions, ...FileSystemV1.Event.Definitions, ...SessionStatusEvent.Definitions, ...VcsEvent.Definitions, ...WorkspaceEvent.Definitions, ...WorktreeEvent.Definitions, ...ServerEvent.Definitions);