Skip to content

armgit / cogit

Public Imported from GitHub
0

Git for the intent behind agent-written code. Records what your coding agent decided and why, and links every commit to it.

354 B
Raw Blame
import { z } from "zod";

export const PROJECT_SCHEMA = 1;

/**
 * The project file. Older ones also list `epochs`; the parse drops them, since
 * sessions are no longer grouped into epochs.
 */
export const Project = z.object({
  schema: z.literal(PROJECT_SCHEMA),
  name: z.string().min(1).max(200),
});

export type Project = z.infer<typeof Project>;