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

orchestrationProject.ts

19 lines807 Bytes

1import * as Schema from "effect/Schema";
2​
3import { IsoDateTime, ProjectId, TrimmedNonEmptyString } from "./baseSchemas.ts";
4import { RepositoryIdentity } from "./environment.ts";
5import { ModelSelection } from "./modelSelection.ts";
6import { ProjectScript } from "./project.ts";
7​
8/** Project summary shared by the V2 shell and application project APIs. */
9export const OrchestrationProjectShell = Schema.Struct({
10 id: ProjectId,
11 title: TrimmedNonEmptyString,
12 workspaceRoot: TrimmedNonEmptyString,
13 repositoryIdentity: Schema.optional(Schema.NullOr(RepositoryIdentity)),
14 defaultModelSelection: Schema.NullOr(ModelSelection),
15 scripts: Schema.Array(ProjectScript),
16 createdAt: IsoDateTime,
17 updatedAt: IsoDateTime,
18});
19export type OrchestrationProjectShell = typeof OrchestrationProjectShell.Type;