Files
anomalyco_opencode/packages/opencode/src/project/schema.ts
T
2026-05-11 13:22:59 -04:00

14 lines
357 B
TypeScript

import { Schema } from "effect"
import { withStatics } from "@opencode-ai/core/schema"
const projectIdSchema = Schema.String.pipe(Schema.brand("ProjectID"))
export type ProjectID = typeof projectIdSchema.Type
export const ProjectID = projectIdSchema.pipe(
withStatics((schema: typeof projectIdSchema) => ({
global: schema.make("global"),
})),
)