mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-15 13:14:35 +00:00
- Rename packages/opencode → packages/tfcode (directory only) - Rename bin/opencode → bin/tfcode (CLI binary) - Rename .opencode → .tfcode (config directory) - Update package.json name and bin field - Update config directory path references (.tfcode) - Keep internal code references as 'opencode' for easy upstream sync - Keep @opencode-ai/* workspace package names This minimal branding approach allows clean merges from upstream opencode repository while providing tfcode branding for users.
18 lines
532 B
TypeScript
18 lines
532 B
TypeScript
import { Schema } from "effect"
|
|
import z from "zod"
|
|
|
|
import { Identifier } from "@/id/id"
|
|
import { withStatics } from "@/util/schema"
|
|
|
|
const ptyIdSchema = Schema.String.pipe(Schema.brand("PtyID"))
|
|
|
|
export type PtyID = typeof ptyIdSchema.Type
|
|
|
|
export const PtyID = ptyIdSchema.pipe(
|
|
withStatics((schema: typeof ptyIdSchema) => ({
|
|
make: (id: string) => schema.makeUnsafe(id),
|
|
ascending: (id?: string) => schema.makeUnsafe(Identifier.ascending("pty", id)),
|
|
zod: Identifier.schema("pty").pipe(z.custom<PtyID>()),
|
|
})),
|
|
)
|