@opencode-ai/schema 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.
@@ -13,6 +13,7 @@ export interface AgentSelected extends Schema.Schema.Type<typeof AgentSelected>
13
13
  export declare const AgentSelected: Schema.Struct<{
14
14
  readonly type: Schema.tag<"agent-switched">;
15
15
  readonly agent: Schema.brand<Schema.String, "Agent.ID">;
16
+ readonly previous: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Agent.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Agent.ID">>, never, never>;
16
17
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
17
18
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
18
19
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -872,6 +873,7 @@ export type Compaction = CompactionRunning | CompactionCompleted | CompactionFai
872
873
  export declare const Info: Schema.Union<readonly [Schema.Struct<{
873
874
  readonly type: Schema.tag<"agent-switched">;
874
875
  readonly agent: Schema.brand<Schema.String, "Agent.ID">;
876
+ readonly previous: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Agent.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Agent.ID">>, never, never>;
875
877
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
876
878
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
877
879
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -31,6 +31,7 @@ export const AgentSelected = Schema.Struct({
31
31
  ...Base,
32
32
  type: Schema.tag("agent-switched"),
33
33
  agent: Agent.ID,
34
+ previous: Agent.ID.pipe(optional),
34
35
  }).annotate({ identifier: "Session.Message.AgentSelected" });
35
36
  export const ModelSelected = Schema.Struct({
36
37
  ...Base,
@@ -175,6 +175,7 @@ export declare const Data: Schema.Struct<{
175
175
  readonly messages: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
176
176
  readonly type: Schema.tag<"agent-switched">;
177
177
  readonly agent: Schema.brand<Schema.String, "Agent.ID">;
178
+ readonly previous: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Agent.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Agent.ID">>, never, never>;
178
179
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
179
180
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
180
181
  fromEvent: (eventID: import("./event.js").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/schema",
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": {