From 8974ec96d0c487c2e84e225f165cbd9ae4dc47f1 Mon Sep 17 00:00:00 2001 From: soryu Date: Thu, 29 Jan 2026 01:20:09 +0000 Subject: Add Red Team fields to makima/frontend contract creation - Add redTeamEnabled and redTeamPrompt state to contracts.tsx - Add UI toggle checkbox for 'Enable Red Team monitoring' - Add conditional textarea for 'Custom review criteria' - Include red_team_enabled and red_team_prompt in CreateContractRequest - Reset red team fields on form cancel/success - Add redTeamEnabled to ContractSummary type in api.ts - Add redTeamEnabled/redTeamPrompt to CreateContractRequest type - Add red team badge to ContractList.tsx contract items Co-Authored-By: Claude Opus 4.5 --- makima/frontend/src/lib/api.ts | 6 ++++++ 1 file changed, 6 insertions(+) (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 4390b20..bd172e8 100644 --- a/makima/frontend/src/lib/api.ts +++ b/makima/frontend/src/lib/api.ts @@ -1679,6 +1679,8 @@ export interface ContractSummary { supervisorTaskId: string | null; /** When true, tasks won't auto-push or create PRs - use patch files instead */ localOnly: boolean; + /** Whether red team monitoring is enabled */ + redTeamEnabled?: boolean; fileCount: number; taskCount: number; repositoryCount: number; @@ -1738,6 +1740,10 @@ export interface CreateContractRequest { initialPhase?: ContractPhase; /** When true, tasks won't auto-push or create PRs - use patch files instead */ localOnly?: boolean; + /** Enable red team monitoring for this contract */ + redTeamEnabled?: boolean; + /** Custom review criteria for the red team */ + redTeamPrompt?: string; } export interface UpdateContractRequest { -- cgit v1.2.3