@opencode/schema 0.0.0-dev-19346 → 0.0.0-dev-19349
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/event-manifest.d.ts +0 -416
- package/dist/session-event.d.ts +805 -1013
- package/dist/session-event.js +4 -3
- package/package.json +1 -1
package/dist/session-event.js
CHANGED
|
@@ -102,6 +102,7 @@ export const Viewed = Event.durable({
|
|
|
102
102
|
idle: Schema.Finite,
|
|
103
103
|
},
|
|
104
104
|
});
|
|
105
|
+
// Replay-only: older releases allowed replacing completed assistant content.
|
|
105
106
|
export const MessageContentUpdated = Event.durable({
|
|
106
107
|
type: "session.message.content.updated",
|
|
107
108
|
...options,
|
|
@@ -530,9 +531,9 @@ export var RevertEvent;
|
|
|
530
531
|
schema: { ...Base, to: SessionMessage.ID },
|
|
531
532
|
});
|
|
532
533
|
})(RevertEvent || (RevertEvent = {}));
|
|
533
|
-
export const Definitions = Event.inventory(Created, AgentSelected, ModelSelected, Moved, Renamed, Viewed, UsageUpdated, Deleted, Forked, InboxDelivered, InboxEnqueued, InboxCancelled, InboxDeliveryChanged, Execution.Started, Execution.Succeeded, Execution.Failed, Execution.Interrupted, InstructionsUpdated, Synthetic, Skill.Activated, Shell.Started, Shell.Ended, Step.Started, Step.Streamed, 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.Started, Compaction.Delta, Compaction.Ended, Compaction.Failed, RevertEvent.Staged, RevertEvent.Cleared, RevertEvent.Committed
|
|
534
|
-
//
|
|
535
|
-
export const DurableDefinitions = Event.inventory(...Definitions.filter((definition) => definition.durability === "durable"), UsageRecorded);
|
|
534
|
+
export const Definitions = Event.inventory(Created, AgentSelected, ModelSelected, Moved, Renamed, Viewed, UsageUpdated, Deleted, Forked, InboxDelivered, InboxEnqueued, InboxCancelled, InboxDeliveryChanged, Execution.Started, Execution.Succeeded, Execution.Failed, Execution.Interrupted, InstructionsUpdated, Synthetic, Skill.Activated, Shell.Started, Shell.Ended, Step.Started, Step.Streamed, 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.Started, Compaction.Delta, Compaction.Ended, Compaction.Failed, RevertEvent.Staged, RevertEvent.Cleared, RevertEvent.Committed);
|
|
535
|
+
// Internal and replay-only events are excluded from the public manifest.
|
|
536
|
+
export const DurableDefinitions = Event.inventory(...Definitions.filter((definition) => definition.durability === "durable"), UsageRecorded, MessageContentUpdated);
|
|
536
537
|
export const EphemeralDefinitions = Event.inventory(...Definitions.filter((definition) => definition.durability === "ephemeral"));
|
|
537
538
|
export const Durable = Schema.Union(DurableDefinitions, { mode: "oneOf" })
|
|
538
539
|
.pipe(Schema.toTaggedUnion("type"))
|