@opencode-ai/schema 0.0.0-next-16884 → 0.0.0-next-16892

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.
@@ -39,6 +39,22 @@ const options = {
39
39
  version: 1,
40
40
  },
41
41
  };
42
+ export const Created = Event.durable({
43
+ type: "session.created",
44
+ ...options,
45
+ schema: {
46
+ ...Base,
47
+ projectID: Project.ID,
48
+ location: Location.Ref,
49
+ subpath: RelativePath.pipe(optional),
50
+ parentID: SessionID.pipe(optional),
51
+ slug: Schema.String,
52
+ title: Schema.String.pipe(optional),
53
+ agent: Agent.ID.pipe(optional),
54
+ model: Model.Ref.pipe(optional),
55
+ version: Schema.String,
56
+ },
57
+ });
42
58
  export const AgentSelected = Event.durable({
43
59
  type: "session.agent.selected",
44
60
  ...options,
@@ -471,7 +487,7 @@ export var RevertEvent;
471
487
  schema: { ...Base, to: SessionMessage.ID },
472
488
  });
473
489
  })(RevertEvent || (RevertEvent = {}));
474
- export const Definitions = Event.inventory(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);
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);
475
491
  // UsageRecorded is durable but internal: excluded from Definitions so it never reaches the public manifest.
476
492
  export const DurableDefinitions = Event.inventory(...Definitions.filter((definition) => definition.durability === "durable"), UsageRecorded);
477
493
  export const Durable = Schema.Union(DurableDefinitions, { mode: "oneOf" })
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-16884",
4
+ "version": "0.0.0-next-16892",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {