@opencode/schema 2.2.7 → 2.3.0

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 CHANGED
@@ -93,6 +93,15 @@ export declare const Info: Schema.Struct<{
93
93
  }>>, never, never>;
94
94
  readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
95
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>;
96
+ readonly tls: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
97
+ readonly cert: Schema.String;
98
+ readonly key: Schema.String;
99
+ readonly passphrase: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
100
+ }>>>, Schema.optionalKey<Schema.Struct<{
101
+ readonly cert: Schema.String;
102
+ readonly key: Schema.String;
103
+ readonly passphrase: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
104
+ }>>, never, never>;
96
105
  }>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>;
97
106
  readonly headers: Schema.$Record<Schema.String, Schema.String>;
98
107
  readonly body: Schema.$Record<Schema.String, Schema.Any>;
@@ -2,6 +2,7 @@ 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 codemode_vm: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
5
6
  readonly all_flags: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
6
7
  readonly part_rows: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
7
8
  readonly image_generate: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
@@ -62,10 +63,11 @@ declare const Info_base: Schema.Class<Info, Schema.Struct<{
62
63
  }>, never, never>>>, never, never>;
63
64
  readonly artifacts: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
64
65
  readonly background_compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
65
- readonly codemode_vm: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
66
66
  readonly console_watches: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
67
+ readonly mcp_events: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
67
68
  readonly media_blob: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
68
69
  readonly schedules: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
70
+ readonly shell_timeout_background: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
69
71
  readonly todo: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
70
72
  }>, {}>;
71
73
  export declare class Info extends Info_base {
@@ -8,6 +8,9 @@ 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
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.",
13
16
  }),
@@ -12,7 +12,8 @@ export declare const registry: {
12
12
  readonly media_blob: "Store new session media once in a deduplicated blob table instead of inline in every message row.";
13
13
  readonly schedules: "Enable experimental scheduled tasks that wake a session with a prompt.";
14
14
  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.";
15
+ readonly shell_timeout_background: "Move foreground shell commands to the background when their timeout expires.";
16
16
  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.";
17
+ 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.";
17
18
  };
18
19
  export type Key = keyof typeof registry;
@@ -12,6 +12,7 @@ export const registry = {
12
12
  media_blob: "Store new session media once in a deduplicated blob table instead of inline in every message row.",
13
13
  schedules: "Enable experimental scheduled tasks that wake a session with a prompt.",
14
14
  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.",
15
+ shell_timeout_background: "Move foreground shell commands to the background when their timeout expires.",
16
16
  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.",
17
+ mcp_events: "Enable experimental MCP Events, a draft MCP extension: declare support to MCP servers and read the events of servers that offer them.",
17
18
  };
@@ -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);