Source workspace path pattern (#26632)
This commit is contained in:
@@ -4,9 +4,9 @@ import { Identifier } from "@/id/id"
|
||||
import { zod, ZodOverride } from "@opencode-ai/core/effect-zod"
|
||||
import { withStatics } from "@opencode-ai/core/schema"
|
||||
|
||||
const workspaceIdSchema = Schema.String.annotate({ [ZodOverride]: Identifier.schema("workspace") }).pipe(
|
||||
Schema.brand("WorkspaceID"),
|
||||
)
|
||||
const workspaceIdSchema = Schema.String.check(Schema.isStartsWith("wrk"))
|
||||
.annotate({ [ZodOverride]: Identifier.schema("workspace") })
|
||||
.pipe(Schema.brand("WorkspaceID"))
|
||||
|
||||
export type WorkspaceID = typeof workspaceIdSchema.Type
|
||||
|
||||
|
||||
Reference in New Issue
Block a user