@opencode-ai/schema 0.0.0-next-16953 → 0.0.0-next-16977

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.
@@ -128,23 +128,38 @@ export const Forked = Event.durable({
128
128
  instructions: Instruction.Values.pipe(optional),
129
129
  },
130
130
  });
131
+ const InputRef = {
132
+ ...Base,
133
+ inputID: SessionMessage.ID,
134
+ };
131
135
  export const InputPromoted = Event.durable({
132
136
  type: "session.input.promoted",
133
137
  ...options,
134
- schema: {
135
- sessionID: SessionID,
136
- inputID: SessionMessage.ID,
137
- },
138
+ schema: InputRef,
138
139
  });
139
140
  export const InputAdmitted = Event.durable({
140
141
  type: "session.input.admitted",
141
142
  ...options,
142
143
  schema: {
143
- ...Base,
144
- inputID: SessionMessage.ID,
144
+ ...InputRef,
145
145
  input: SessionPending.Message,
146
146
  },
147
147
  });
148
+ export const InputCancelled = Event.durable({
149
+ type: "session.input.cancelled",
150
+ ...options,
151
+ schema: InputRef,
152
+ });
153
+ export const InputSteered = Event.durable({
154
+ type: "session.input.steered",
155
+ ...options,
156
+ schema: InputRef,
157
+ });
158
+ export const InputQueued = Event.durable({
159
+ type: "session.input.queued",
160
+ ...options,
161
+ schema: InputRef,
162
+ });
148
163
  export var Execution;
149
164
  (function (Execution) {
150
165
  Execution.Started = Event.durable({ type: "session.execution.started", ...options, schema: Base });
@@ -487,10 +502,11 @@ export var RevertEvent;
487
502
  schema: { ...Base, to: SessionMessage.ID },
488
503
  });
489
504
  })(RevertEvent || (RevertEvent = {}));
490
- export const Definitions = Event.inventory(Created, AgentSelected, ModelSelected, Moved, Renamed, UsageUpdated, Deleted, Forked, InputPromoted, InputAdmitted, Execution.Started, Execution.Succeeded, Execution.Failed, Execution.Interrupted, InstructionsUpdated, Synthetic, Skill.Activated, Shell.Started, Shell.Ended, Step.Started, Step.Ended, Step.Failed, Text.Started, Text.Delta, Text.Ended, Reasoning.Started, Reasoning.Delta, Reasoning.Ended, Tool.Input.Started, Tool.Input.Delta, Tool.Input.Ended, Tool.Called, Tool.Progress, Tool.Success, Tool.Failed, RetryScheduled, Compaction.Admitted, Compaction.Started, Compaction.Delta, Compaction.Ended, Compaction.Failed, RevertEvent.Staged, RevertEvent.Cleared, RevertEvent.Committed);
505
+ export const Definitions = Event.inventory(Created, AgentSelected, ModelSelected, Moved, Renamed, UsageUpdated, Deleted, Forked, InputPromoted, InputAdmitted, InputCancelled, InputSteered, InputQueued, Execution.Started, Execution.Succeeded, Execution.Failed, Execution.Interrupted, InstructionsUpdated, Synthetic, Skill.Activated, Shell.Started, Shell.Ended, Step.Started, Step.Ended, Step.Failed, Text.Started, Text.Delta, Text.Ended, Reasoning.Started, Reasoning.Delta, Reasoning.Ended, Tool.Input.Started, Tool.Input.Delta, Tool.Input.Ended, Tool.Called, Tool.Progress, Tool.Success, Tool.Failed, RetryScheduled, Compaction.Admitted, Compaction.Started, Compaction.Delta, Compaction.Ended, Compaction.Failed, RevertEvent.Staged, RevertEvent.Cleared, RevertEvent.Committed);
491
506
  // UsageRecorded is durable but internal: excluded from Definitions so it never reaches the public manifest.
492
507
  export const DurableDefinitions = Event.inventory(...Definitions.filter((definition) => definition.durability === "durable"), UsageRecorded);
508
+ export const EphemeralDefinitions = Event.inventory(...Definitions.filter((definition) => definition.durability === "ephemeral"));
493
509
  export const Durable = Schema.Union(DurableDefinitions, { mode: "oneOf" })
494
510
  .pipe(Schema.toTaggedUnion("type"))
495
511
  .annotate({ identifier: "Session.Event.Durable" });
496
- export const All = Schema.Union(Event.inventory(...Definitions, UsageRecorded), { mode: "oneOf" }).pipe(Schema.toTaggedUnion("type"));
512
+ 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-ai/schema",
4
- "version": "0.0.0-next-16953",
4
+ "version": "0.0.0-next-16977",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {