mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-29 11:42:17 +00:00
20 lines
685 B
TypeScript
20 lines
685 B
TypeScript
export * as Workspace from "./workspace.js"
|
|
|
|
import { Schema } from "effect"
|
|
import { WorkspaceEvent } from "./workspace-event.js"
|
|
import { WorkspaceID } from "./workspace-id.js"
|
|
|
|
export const ID = WorkspaceID
|
|
export type ID = WorkspaceID
|
|
|
|
export const DestroyResult = Schema.Struct({
|
|
destroyed: Schema.Boolean.annotate({
|
|
description: "True when this request transitioned the workspace from existing to destroyed.",
|
|
}),
|
|
}).annotate({
|
|
identifier: "WorkspaceDestroyResult",
|
|
description: "Reports whether this request destroyed an existing workspace.",
|
|
})
|
|
export interface DestroyResult extends Schema.Schema.Type<typeof DestroyResult> {}
|
|
|
|
export const Event = WorkspaceEvent
|