@opencode-ai/protocol 0.0.0-next-17134 → 0.0.0-next-17137

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.
@@ -19,6 +19,7 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
19
19
  readonly data: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
20
20
  readonly type: Schema.tag<"agent-switched">;
21
21
  readonly agent: Schema.brand<Schema.String, "Agent.ID">;
22
+ readonly previous: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Agent.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Agent.ID">>, never, never>;
22
23
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
23
24
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
24
25
  fromEvent: (eventID: import("@opencode-ai/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -782,6 +782,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
782
782
  readonly messages: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
783
783
  readonly type: Schema.tag<"agent-switched">;
784
784
  readonly agent: Schema.brand<Schema.String, "Agent.ID">;
785
+ readonly previous: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Agent.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Agent.ID">>, never, never>;
785
786
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
786
787
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
787
788
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -1636,6 +1637,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
1636
1637
  readonly messages: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
1637
1638
  readonly type: Schema.tag<"agent-switched">;
1638
1639
  readonly agent: Schema.brand<Schema.String, "Agent.ID">;
1640
+ readonly previous: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Agent.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Agent.ID">>, never, never>;
1639
1641
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
1640
1642
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1641
1643
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -3237,6 +3239,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
3237
3239
  readonly data: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
3238
3240
  readonly type: Schema.tag<"agent-switched">;
3239
3241
  readonly agent: Schema.brand<Schema.String, "Agent.ID">;
3242
+ readonly previous: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Agent.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Agent.ID">>, never, never>;
3240
3243
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
3241
3244
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3242
3245
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -8450,6 +8453,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
8450
8453
  readonly data: Schema.Union<readonly [Schema.Struct<{
8451
8454
  readonly type: Schema.tag<"agent-switched">;
8452
8455
  readonly agent: Schema.brand<Schema.String, "Agent.ID">;
8456
+ readonly previous: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Agent.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Agent.ID">>, never, never>;
8453
8457
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
8454
8458
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
8455
8459
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
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-17134",
4
+ "version": "0.0.0-next-17137",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -28,7 +28,7 @@
28
28
  "typecheck": "tsgo --noEmit"
29
29
  },
30
30
  "dependencies": {
31
- "@opencode-ai/schema": "0.0.0-next-17134",
31
+ "@opencode-ai/schema": "0.0.0-next-17137",
32
32
  "effect": "4.0.0-beta.101"
33
33
  },
34
34
  "devDependencies": {