@opencode-ai/protocol 0.0.0-next-14835 → 0.0.0-next-14838

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.
@@ -3133,7 +3133,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
3133
3133
  };
3134
3134
  readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
3135
3135
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3136
- readonly type: Schema.Literal<"file.edited">;
3136
+ readonly type: Schema.Literal<"filesystem.changed">;
3137
3137
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3138
3138
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
3139
3139
  readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
@@ -3155,13 +3155,15 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
3155
3155
  }>>, never, never>;
3156
3156
  readonly data: Schema.Struct<{
3157
3157
  readonly file: Schema.String;
3158
+ readonly event: Schema.Literals<readonly ["add", "change", "unlink"]>;
3158
3159
  }>;
3159
3160
  }> & {
3160
- type: "file.edited";
3161
+ type: "filesystem.changed";
3161
3162
  durability: "ephemeral";
3162
3163
  durable: undefined;
3163
3164
  data: Schema.Struct<{
3164
3165
  readonly file: Schema.String;
3166
+ readonly event: Schema.Literals<readonly ["add", "change", "unlink"]>;
3165
3167
  }>;
3166
3168
  }) | (Schema.Struct<{
3167
3169
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
@@ -3599,6 +3601,38 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
3599
3601
  durability: "ephemeral";
3600
3602
  durable: undefined;
3601
3603
  data: Schema.Struct<{}>;
3604
+ }) | (Schema.Struct<{
3605
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
3606
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
3607
+ };
3608
+ readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
3609
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3610
+ readonly type: Schema.Literal<"config.updated">;
3611
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3612
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
3613
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
3614
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
3615
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
3616
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
3617
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
3618
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
3619
+ }>, never, never>;
3620
+ }>>>, Schema.optionalKey<Schema.Struct<{
3621
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
3622
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
3623
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
3624
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
3625
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
3626
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
3627
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
3628
+ }>, never, never>;
3629
+ }>>, never, never>;
3630
+ readonly data: Schema.Struct<{}>;
3631
+ }> & {
3632
+ type: "config.updated";
3633
+ durability: "ephemeral";
3634
+ durable: undefined;
3635
+ data: Schema.Struct<{}>;
3602
3636
  }) | (Schema.Struct<{
3603
3637
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
3604
3638
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
@@ -6169,44 +6203,6 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
6169
6203
  }>;
6170
6204
  }>]>>;
6171
6205
  }>;
6172
- }) | (Schema.Struct<{
6173
- readonly id: Schema.brand<Schema.String, "Event.ID"> & {
6174
- create: () => string & import("effect/Brand").Brand<"Event.ID">;
6175
- };
6176
- readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
6177
- readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
6178
- readonly type: Schema.Literal<"file.watcher.updated">;
6179
- readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
6180
- readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
6181
- readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
6182
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
6183
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
6184
- }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
6185
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
6186
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
6187
- }>, never, never>;
6188
- }>>>, Schema.optionalKey<Schema.Struct<{
6189
- readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
6190
- readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
6191
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
6192
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
6193
- }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
6194
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
6195
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
6196
- }>, never, never>;
6197
- }>>, never, never>;
6198
- readonly data: Schema.Struct<{
6199
- readonly file: Schema.String;
6200
- readonly event: Schema.Literals<readonly ["add", "change", "unlink"]>;
6201
- }>;
6202
- }> & {
6203
- type: "file.watcher.updated";
6204
- durability: "ephemeral";
6205
- durable: undefined;
6206
- data: Schema.Struct<{
6207
- readonly file: Schema.String;
6208
- readonly event: Schema.Literals<readonly ["add", "change", "unlink"]>;
6209
- }>;
6210
6206
  }) | (Schema.Struct<{
6211
6207
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
6212
6208
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
@@ -8437,9 +8433,10 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
8437
8433
  } | {
8438
8434
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8439
8435
  readonly created: import("effect/DateTime").Utc;
8440
- readonly type: "file.edited";
8436
+ readonly type: "filesystem.changed";
8441
8437
  readonly data: {
8442
8438
  readonly file: string;
8439
+ readonly event: "add" | "change" | "unlink";
8443
8440
  };
8444
8441
  readonly metadata?: {
8445
8442
  readonly [x: string]: unknown;
@@ -8632,6 +8629,18 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
8632
8629
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8633
8630
  readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
8634
8631
  } | undefined;
8632
+ } | {
8633
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8634
+ readonly created: import("effect/DateTime").Utc;
8635
+ readonly type: "config.updated";
8636
+ readonly data: {};
8637
+ readonly metadata?: {
8638
+ readonly [x: string]: unknown;
8639
+ } | undefined;
8640
+ readonly location?: {
8641
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8642
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
8643
+ } | undefined;
8635
8644
  } | {
8636
8645
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8637
8646
  readonly created: import("effect/DateTime").Utc;
@@ -9448,21 +9457,6 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
9448
9457
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
9449
9458
  readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
9450
9459
  } | undefined;
9451
- } | {
9452
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
9453
- readonly created: import("effect/DateTime").Utc;
9454
- readonly type: "file.watcher.updated";
9455
- readonly data: {
9456
- readonly file: string;
9457
- readonly event: "add" | "change" | "unlink";
9458
- };
9459
- readonly metadata?: {
9460
- readonly [x: string]: unknown;
9461
- } | undefined;
9462
- readonly location?: {
9463
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
9464
- readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
9465
- } | undefined;
9466
9460
  } | {
9467
9461
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
9468
9462
  readonly created: import("effect/DateTime").Utc;
@@ -12980,7 +12974,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
12980
12974
  };
12981
12975
  readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
12982
12976
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
12983
- readonly type: Schema.Literal<"file.edited">;
12977
+ readonly type: Schema.Literal<"filesystem.changed">;
12984
12978
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12985
12979
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
12986
12980
  readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
@@ -13002,13 +12996,15 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
13002
12996
  }>>, never, never>;
13003
12997
  readonly data: Schema.Struct<{
13004
12998
  readonly file: Schema.String;
12999
+ readonly event: Schema.Literals<readonly ["add", "change", "unlink"]>;
13005
13000
  }>;
13006
13001
  }> & {
13007
- type: "file.edited";
13002
+ type: "filesystem.changed";
13008
13003
  durability: "ephemeral";
13009
13004
  durable: undefined;
13010
13005
  data: Schema.Struct<{
13011
13006
  readonly file: Schema.String;
13007
+ readonly event: Schema.Literals<readonly ["add", "change", "unlink"]>;
13012
13008
  }>;
13013
13009
  }) | (Schema.Struct<{
13014
13010
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
@@ -13446,6 +13442,38 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
13446
13442
  durability: "ephemeral";
13447
13443
  durable: undefined;
13448
13444
  data: Schema.Struct<{}>;
13445
+ }) | (Schema.Struct<{
13446
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
13447
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
13448
+ };
13449
+ readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
13450
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
13451
+ readonly type: Schema.Literal<"config.updated">;
13452
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13453
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
13454
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
13455
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
13456
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
13457
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
13458
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
13459
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
13460
+ }>, never, never>;
13461
+ }>>>, Schema.optionalKey<Schema.Struct<{
13462
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
13463
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
13464
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
13465
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
13466
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
13467
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
13468
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
13469
+ }>, never, never>;
13470
+ }>>, never, never>;
13471
+ readonly data: Schema.Struct<{}>;
13472
+ }> & {
13473
+ type: "config.updated";
13474
+ durability: "ephemeral";
13475
+ durable: undefined;
13476
+ data: Schema.Struct<{}>;
13449
13477
  }) | (Schema.Struct<{
13450
13478
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
13451
13479
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
@@ -16016,44 +16044,6 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
16016
16044
  }>;
16017
16045
  }>]>>;
16018
16046
  }>;
16019
- }) | (Schema.Struct<{
16020
- readonly id: Schema.brand<Schema.String, "Event.ID"> & {
16021
- create: () => string & import("effect/Brand").Brand<"Event.ID">;
16022
- };
16023
- readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
16024
- readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
16025
- readonly type: Schema.Literal<"file.watcher.updated">;
16026
- readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
16027
- readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
16028
- readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
16029
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
16030
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
16031
- }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
16032
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
16033
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
16034
- }>, never, never>;
16035
- }>>>, Schema.optionalKey<Schema.Struct<{
16036
- readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
16037
- readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
16038
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
16039
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
16040
- }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
16041
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
16042
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
16043
- }>, never, never>;
16044
- }>>, never, never>;
16045
- readonly data: Schema.Struct<{
16046
- readonly file: Schema.String;
16047
- readonly event: Schema.Literals<readonly ["add", "change", "unlink"]>;
16048
- }>;
16049
- }> & {
16050
- type: "file.watcher.updated";
16051
- durability: "ephemeral";
16052
- durable: undefined;
16053
- data: Schema.Struct<{
16054
- readonly file: Schema.String;
16055
- readonly event: Schema.Literals<readonly ["add", "change", "unlink"]>;
16056
- }>;
16057
16047
  }) | (Schema.Struct<{
16058
16048
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
16059
16049
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
@@ -13,7 +13,7 @@ export declare const McpGroup: HttpApiGroup.HttpApiGroup<"server.mcp", HttpApiEn
13
13
  readonly status: Schema.toTaggedUnion<"status", readonly [Schema.Struct<{
14
14
  readonly status: Schema.Literal<"connected">;
15
15
  }>, Schema.Struct<{
16
- readonly status: Schema.Literal<"disconnected">;
16
+ readonly status: Schema.Literal<"pending">;
17
17
  }>, Schema.Struct<{
18
18
  readonly status: Schema.Literal<"disabled">;
19
19
  }>, Schema.Struct<{
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode-ai/protocol",
4
- "version": "0.0.0-next-14835",
4
+ "version": "0.0.0-next-14838",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -26,7 +26,7 @@
26
26
  "typecheck": "tsgo --noEmit"
27
27
  },
28
28
  "dependencies": {
29
- "@opencode-ai/schema": "0.0.0-next-14835",
29
+ "@opencode-ai/schema": "0.0.0-next-14838",
30
30
  "effect": "4.0.0-beta.83"
31
31
  },
32
32
  "devDependencies": {