mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-24 04:01:10 -04:00
23 lines
468 B
TypeScript
23 lines
468 B
TypeScript
export * as WorktreeEvent from "./worktree-event"
|
|
|
|
import { Schema } from "effect"
|
|
import { optional } from "./schema"
|
|
import { Event } from "./event"
|
|
|
|
export const Ready = Event.define({
|
|
type: "worktree.ready",
|
|
schema: {
|
|
name: Schema.String,
|
|
branch: optional(Schema.String),
|
|
},
|
|
})
|
|
|
|
export const Failed = Event.define({
|
|
type: "worktree.failed",
|
|
schema: {
|
|
message: Schema.String,
|
|
},
|
|
})
|
|
|
|
export const Definitions = Event.inventory(Ready, Failed)
|