@opencode-ai/schema 0.0.0-next-15020 → 0.0.0-next-15021

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/session.d.ts CHANGED
@@ -22,6 +22,31 @@ export declare const Info: Schema.Struct<{
22
22
  create: () => string & import("effect/Brand").Brand<"SessionID">;
23
23
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
24
24
  }>, never, never>;
25
+ readonly fork: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
26
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
27
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
28
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
29
+ };
30
+ readonly messageID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
31
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
32
+ fromEvent: (eventID: import("./event.js").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
33
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Session.Message.ID"> & {
34
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
35
+ fromEvent: (eventID: import("./event.js").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
36
+ }>, never, never>;
37
+ }>>>, Schema.optionalKey<Schema.Struct<{
38
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
39
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
40
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
41
+ };
42
+ readonly messageID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
43
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
44
+ fromEvent: (eventID: import("./event.js").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
45
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Session.Message.ID"> & {
46
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
47
+ fromEvent: (eventID: import("./event.js").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
48
+ }>, never, never>;
49
+ }>>, never, never>;
25
50
  readonly projectID: Schema.brand<Schema.String, "Project.ID"> & {
26
51
  global: string & import("effect/Brand").Brand<"Project.ID">;
27
52
  };
package/dist/session.js CHANGED
@@ -7,12 +7,17 @@ import { Project } from "./project.js";
7
7
  import { DateTimeUtcFromMillis, optional, RelativePath } from "./schema.js";
8
8
  import { SessionEvent } from "./session-event.js";
9
9
  import { SessionID } from "./session-id.js";
10
+ import { SessionMessage } from "./session-message.js";
10
11
  import { Revert } from "./revert.js";
11
12
  export const ID = SessionID;
12
13
  export const Event = SessionEvent;
13
14
  export const Info = Schema.Struct({
14
15
  id: ID,
15
16
  parentID: ID.pipe(optional),
17
+ fork: Schema.Struct({
18
+ sessionID: ID,
19
+ messageID: SessionMessage.ID.pipe(optional),
20
+ }).pipe(optional),
16
21
  projectID: Project.ID,
17
22
  agent: Agent.ID.pipe(optional),
18
23
  model: Model.Ref.pipe(optional),
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-15020",
4
+ "version": "0.0.0-next-15021",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {