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