Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

orchestrationProject.ts

23 lines1.1 KB

1import * as Schema from "effect/Schema";
2​
3import { IsoDateTime, ProjectId, TrimmedNonEmptyString } from "./baseSchemas.ts";
4import { RepositoryIdentity, ThreadEnvMode } from "./environment.ts";
5import { ModelSelection } from "./modelSelection.ts";
6import { ProjectScript, ReceivedProjectIcon } from "./project.ts";
7​
8export const OrchestrationProjectShell = Schema.Struct({
9 id: ProjectId,
10 title: TrimmedNonEmptyString,
11 workspaceRoot: TrimmedNonEmptyString,
12 repositoryIdentity: Schema.optional(Schema.NullOr(RepositoryIdentity)),
13 defaultModelSelection: Schema.NullOr(ModelSelection),
14 defaultThreadEnvMode: Schema.optional(Schema.NullOr(ThreadEnvMode)),
15 // Opt-in because background sync performs network I/O and may move the checkout.
16 autoPull: Schema.optional(Schema.Boolean),
17 faviconPath: Schema.optional(Schema.NullOr(TrimmedNonEmptyString)),
18 projectIcon: Schema.optional(Schema.NullOr(ReceivedProjectIcon)),
19 scripts: Schema.Array(ProjectScript),
20 createdAt: IsoDateTime,
21 updatedAt: IsoDateTime,
22});
23export type OrchestrationProjectShell = typeof OrchestrationProjectShell.Type;