refactor(schema): declare event durability at definition level (#35172)
This commit is contained in:
parent
bd8d858bf7
commit
de476aa51b
53 changed files with 700 additions and 1165 deletions
|
|
@ -4,7 +4,7 @@ import { Schema } from "effect"
|
|||
import { optional } from "./schema.js"
|
||||
import { Event } from "./event.js"
|
||||
|
||||
export const Ready = Event.define({
|
||||
export const Ready = Event.ephemeral({
|
||||
type: "worktree.ready",
|
||||
schema: {
|
||||
name: Schema.String,
|
||||
|
|
@ -12,7 +12,7 @@ export const Ready = Event.define({
|
|||
},
|
||||
})
|
||||
|
||||
export const Failed = Event.define({
|
||||
export const Failed = Event.ephemeral({
|
||||
type: "worktree.failed",
|
||||
schema: {
|
||||
message: Schema.String,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue