diff options
| author | soryu <soryu@soryu.co> | 2026-01-29 01:20:09 +0000 |
|---|---|---|
| committer | soryu <soryu@soryu.co> | 2026-01-29 01:20:09 +0000 |
| commit | 8974ec96d0c487c2e84e225f165cbd9ae4dc47f1 (patch) | |
| tree | b358b7d8b02a3db86a1129141da00eb8f8cd27e0 /makima/frontend/src/lib/api.ts | |
| parent | 3118b241ccb3fb2d89948726b2f83a82de998cf2 (diff) | |
| download | soryu-makima/red-team-cli-and-frontend.tar.gz soryu-makima/red-team-cli-and-frontend.zip | |
Add Red Team fields to makima/frontend contract creationmakima/red-team-cli-and-frontend
- 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 <noreply@anthropic.com>
Diffstat (limited to 'makima/frontend/src/lib/api.ts')
| -rw-r--r-- | makima/frontend/src/lib/api.ts | 6 |
1 files changed, 6 insertions, 0 deletions
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 { |
