mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-23 10:45:33 -04:00
14 lines
344 B
TypeScript
14 lines
344 B
TypeScript
export * as Plugin from "./plugin"
|
|
|
|
import { Schema } from "effect"
|
|
import { define, inventory } from "./event"
|
|
|
|
export const ID = Schema.String.pipe(Schema.brand("Plugin.ID"))
|
|
export type ID = typeof ID.Type
|
|
|
|
const Added = define({
|
|
type: "plugin.added",
|
|
schema: { id: ID },
|
|
})
|
|
export const Event = { Added, Definitions: inventory(Added) }
|