diff options
| author | soryu <soryu@soryu.co> | 2026-01-29 01:26:17 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-29 01:26:17 +0000 |
| commit | 45a433c0eb63cae1322203ee14292f1c427a09c9 (patch) | |
| tree | d25e9f2734fde266e4cf9e6a1262d3e33f205375 /makima/frontend/src/lib | |
| parent | f6a40e2304585f140ed5766b25fe71a6958f4425 (diff) | |
| download | soryu-45a433c0eb63cae1322203ee14292f1c427a09c9.tar.gz soryu-45a433c0eb63cae1322203ee14292f1c427a09c9.zip | |
feat: Add Red Team UI to makima/frontend contract creation (#45)
- Add redTeamEnabled and redTeamPrompt state to contracts page
- Add "Enable Red Team Monitoring" checkbox with description
- Add conditional "Custom Review Criteria" textarea when enabled
- Include redTeamEnabled/redTeamPrompt in CreateContractRequest
- Reset red team fields when canceling contract creation
- Add redTeamEnabled to ContractSummary and Contract types
- Add redTeamEnabled/redTeamPrompt to CreateContractRequest type
- Add Red Team badge (🔍) to ContractList for enabled contracts
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Diffstat (limited to 'makima/frontend/src/lib')
| -rw-r--r-- | makima/frontend/src/lib/api.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/makima/frontend/src/lib/api.ts b/makima/frontend/src/lib/api.ts index c9648a2..8838dbd 100644 --- a/makima/frontend/src/lib/api.ts +++ b/makima/frontend/src/lib/api.ts @@ -1682,6 +1682,8 @@ export interface ContractSummary { supervisorTaskId: string | null; /** When true, tasks won't auto-push or create PRs - use patch files instead */ localOnly: boolean; + /** When true, a red team task monitors work output for quality */ + redTeamEnabled: boolean; fileCount: number; taskCount: number; repositoryCount: number; @@ -1706,6 +1708,10 @@ export interface Contract { phaseGuard: boolean; /** When true, tasks won't auto-push or create PRs - use patch files instead */ localOnly: boolean; + /** When true, a red team task monitors work output for quality */ + redTeamEnabled: boolean; + /** Custom criteria for the red team to evaluate */ + redTeamPrompt: string | null; version: number; createdAt: string; updatedAt: string; @@ -1741,6 +1747,10 @@ export interface CreateContractRequest { initialPhase?: ContractPhase; /** When true, tasks won't auto-push or create PRs - use patch files instead */ localOnly?: boolean; + /** When true, spawn a red team task to monitor work output */ + redTeamEnabled?: boolean; + /** Custom criteria for the red team to evaluate */ + redTeamPrompt?: string; } export interface UpdateContractRequest { |
