From 64cc98783d067625d633eea1142d114e324f76bb Mon Sep 17 00:00:00 2001 From: soryu Date: Mon, 26 Jan 2026 23:49:40 +0000 Subject: Use phase deliverables configured in contract types --- makima/frontend/src/lib/api.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'makima/frontend/src/lib/api.ts') diff --git a/makima/frontend/src/lib/api.ts b/makima/frontend/src/lib/api.ts index 7c9fcd6..4390b20 100644 --- a/makima/frontend/src/lib/api.ts +++ b/makima/frontend/src/lib/api.ts @@ -1593,7 +1593,7 @@ export async function deleteAccount( // ============================================================================= /** Contract type determines the workflow and required documents */ -export type ContractType = "simple" | "specification"; +export type ContractType = "simple" | "specification" | "execute"; export type ContractPhase = "research" | "specify" | "plan" | "execute" | "review"; export type ContractStatus = "active" | "completed" | "archived"; export type RepositorySourceType = "remote" | "local" | "managed"; @@ -1604,12 +1604,16 @@ export function getValidPhases(contractType: ContractType): ContractPhase[] { if (contractType === "simple") { return ["plan", "execute"]; } + if (contractType === "execute") { + return ["execute"]; + } return ["research", "specify", "plan", "execute", "review"]; } /** Get default initial phase for a contract type */ export function getDefaultPhase(contractType: ContractType): ContractPhase { if (contractType === "simple") return "plan"; + if (contractType === "execute") return "execute"; return "research"; } -- cgit v1.2.3