summaryrefslogtreecommitdiff
path: root/frontend/src/types.ts
diff options
context:
space:
mode:
authorsoryu <soryu@soryu.co>2026-01-29 02:24:48 +0000
committerGitHub <noreply@github.com>2026-01-29 02:24:48 +0000
commitcfe3ea0aae878ae8f591acdc33a48332ac875b9e (patch)
tree49a7f2d17f494f6c5f88d7c0692d57c21dea3244 /frontend/src/types.ts
parent764ace78046e78cce36b64cb3682cc5489bcf9d7 (diff)
downloadsoryu-cfe3ea0aae878ae8f591acdc33a48332ac875b9e.tar.gz
soryu-cfe3ea0aae878ae8f591acdc33a48332ac875b9e.zip
fix: Remove mistaken red team UI from VN frontend (#47)
* feat: Add Red Team UI to makima/frontend contract creation - 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> * fix: Remove mistaken red team UI from VN frontend PR #39 accidentally added red team UI code to the wrong frontend directory (frontend/ instead of makima/frontend/). The correct implementation is already in makima/frontend/. This commit removes the mistaken changes: - Delete ContractCreateModal.tsx (was added by mistake) - Revert ContractList.tsx to remove red team badge and create modal - Revert ContractDetail.tsx to remove red team tab and notifications - Revert types.ts to remove contract/task types - Revert pc98.css to remove red team styling Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * [WIP] Heartbeat checkpoint - 2026-01-29 02:18:40 UTC --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Diffstat (limited to 'frontend/src/types.ts')
-rw-r--r--frontend/src/types.ts95
1 files changed, 0 insertions, 95 deletions
diff --git a/frontend/src/types.ts b/frontend/src/types.ts
index ac8d417..c6d1263 100644
--- a/frontend/src/types.ts
+++ b/frontend/src/types.ts
@@ -9,98 +9,3 @@ export type Choice = {
id: string
label: string
}
-
-// Contract types
-export type ContractType = 'simple' | 'specification' | 'execute'
-export type ContractPhase = 'research' | 'specify' | 'plan' | 'execute' | 'review'
-export type ContractStatus = 'active' | 'completed' | 'archived'
-
-export interface ContractSummary {
- id: string
- name: string
- description?: string
- contractType: string
- phase: string
- status: string
- supervisorTaskId?: string
- localOnly: boolean
- fileCount: number
- taskCount: number
- repositoryCount: number
- version: number
- createdAt: string
- // Red team fields
- redTeamEnabled?: boolean
-}
-
-export interface Contract {
- id: string
- ownerId: string
- name: string
- description?: string
- contractType: string
- phase: string
- status: string
- supervisorTaskId?: string
- autonomousLoop: boolean
- phaseGuard: boolean
- completedDeliverables: Record<string, string[]>
- localOnly: boolean
- redTeamEnabled: boolean
- redTeamPrompt?: string
- version: number
- createdAt: string
- updatedAt: string
-}
-
-export interface CreateContractRequest {
- name: string
- description?: string
- contractType?: string
- initialPhase?: string
- autonomousLoop?: boolean
- phaseGuard?: boolean
- localOnly?: boolean
- redTeamEnabled?: boolean
- redTeamPrompt?: string
-}
-
-export interface TaskSummary {
- id: string
- contractId?: string
- contractName?: string
- contractPhase?: string
- contractStatus?: string
- parentTaskId?: string
- depth: number
- name: string
- status: string
- priority: number
- progressSummary?: string
- subtaskCount: number
- version: number
- isSupervisor: boolean
- isRedTeam: boolean
- hidden: boolean
- createdAt: string
- updatedAt: string
-}
-
-// Red team notification types
-export type NotificationSeverity = 'info' | 'warning' | 'critical'
-
-export interface RedTeamNotification {
- id: string
- contractId: string
- redTeamTaskId: string
- relatedTaskId?: string
- message: string
- severity: NotificationSeverity
- filePath?: string
- context?: string
- delivered: boolean
- deliveredAt?: string
- acknowledged: boolean
- acknowledgedAt?: string
- createdAt: string
-}