@opencode/schema 0.0.0-dev-21530 → 0.0.0-dev-21541

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.
@@ -13312,7 +13312,7 @@ export declare const EphemeralDefinitions: readonly ((Schema.Struct<{
13312
13312
  }>;
13313
13313
  }>;
13314
13314
  }))[];
13315
- export declare const Durable: Schema.Union<readonly [...((Schema.Struct<{
13315
+ export declare const Durable: Schema.toTaggedUnion<"type", readonly [...((Schema.Struct<{
13316
13316
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
13317
13317
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
13318
13318
  };
@@ -17476,7 +17476,7 @@ export declare const Durable: Schema.Union<readonly [...((Schema.Struct<{
17476
17476
  }>;
17477
17477
  }]>;
17478
17478
  export type DurableEvent = typeof Durable.Type;
17479
- export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Union<readonly [...((Schema.Struct<{
17479
+ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.toTaggedUnion<"type", readonly [...((Schema.Struct<{
17480
17480
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
17481
17481
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
17482
17482
  };
@@ -567,6 +567,6 @@ export const Definitions = Event.inventory(Created, AgentSelected, ModelSelected
567
567
  export const DurableDefinitions = Event.inventory(...Definitions.filter((definition) => definition.durability === "durable"), UsageRecorded, MessageContentUpdated);
568
568
  export const EphemeralDefinitions = Event.inventory(...Definitions.filter((definition) => definition.durability === "ephemeral"));
569
569
  export const Durable = Schema.Union(DurableDefinitions, { mode: "oneOf" })
570
- .pipe(Schema.toTaggedUnion("type"))
571
- .annotate({ identifier: "Session.Event.Durable" });
570
+ .annotate({ identifier: "Session.Event.Durable" })
571
+ .pipe(Schema.toTaggedUnion("type"));
572
572
  export const All = Schema.Union([Durable, ...EphemeralDefinitions], { mode: "oneOf" }).pipe(Schema.toTaggedUnion("type"));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode/schema",
4
- "version": "0.0.0-dev-21530",
4
+ "version": "0.0.0-dev-21541",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {