sequenceDiagram
    participant FE as Frontend (TerminalController)
    participant API as FastAPI Backend
    autonumber
    FE->>+API: POST /api/analyze (api_analyze_api_analyze_post)
    API-->>-FE: Zod Validated Response
    FE->>+API: GET /api/capabilities (get_capabilities_api_capabilities_get)
    API-->>-FE: Zod Validated Response
    FE->>+API: POST /api/compile (api_compile_api_compile_post)
    API-->>-FE: Zod Validated Response
    FE->>+API: POST /api/dataset/start (start_dataset_api_dataset_start_post)
    API-->>-FE: Zod Validated Response
    FE->>+API: GET /api/dataset/status (get_dataset_status_api_dataset_status_get)
    API-->>-FE: Zod Validated Response
    FE->>+API: POST /api/dataset/stop (stop_dataset_api_dataset_stop_post)
    API-->>-FE: Zod Validated Response
    FE->>+API: POST /api/dispatch (dispatch_command_api_dispatch_post)
    API-->>-FE: Zod Validated Response
    FE->>+API: GET /api/logs (get_system_logs_api_logs_get)
    API-->>-FE: Zod Validated Response
    FE->>+API: GET /api/metadata (get_metadata_api_metadata_get)
    API-->>-FE: Zod Validated Response
    FE->>+API: POST /api/mutate (mutate_logic_api_mutate_post)
    API-->>-FE: Zod Validated Response
    FE->>+API: GET /api/script/:name (get_script_content_api_script__name__get)
    API-->>-FE: Zod Validated Response
    FE->>+API: GET /api/scripts (get_scripts_api_scripts_get)
    API-->>-FE: Zod Validated Response
    FE->>+API: GET /api/servers (get_servers_api_servers_get)
    API-->>-FE: Zod Validated Response
    FE->>+API: GET /api/state (get_master_state_api_state_get)
    API-->>-FE: Zod Validated Response
    FE->>+API: PATCH /api/state/patch (patch_state_api_state_patch_patch)
    API-->>-FE: Zod Validated Response
    FE->>+API: GET /api/status (get_system_status_api_status_get)
    API-->>-FE: Zod Validated Response
    FE->>+API: GET /api/task/:task_id (get_task_status_api_task__task_id__get)
    API-->>-FE: Zod Validated Response
    FE->>+API: GET /capabilities (get_capabilities_capabilities_get)
    API-->>-FE: Zod Validated Response
    FE->>+API: GET /dev (dev_root_dev_get)
    API-->>-FE: Zod Validated Response
    FE->>+API: GET /dev/:path (proxy_frontend_dev__path__get)
    API-->>-FE: Zod Validated Response
    FE->>+API: GET /llm-models/ (getLLMModelDatas)
    API-->>-FE: Zod Validated Response
    FE->>+API: POST /llm-models/ (createLLMModelData)
    API-->>-FE: Zod Validated Response
    FE->>+API: GET /llm-models/:record_id (getLLMModelData)
    API-->>-FE: Zod Validated Response
    FE->>+API: DELETE /llm-models/:record_id (deleteLLMModelData)
    API-->>-FE: Zod Validated Response
    FE->>+API: PATCH /llm-models/:record_id (updateLLMModelData)
    API-->>-FE: Zod Validated Response
    FE->>+API: GET /llm-models/typescript-schema (getLLMModelDataSchema)
    API-->>-FE: Zod Validated Response
    FE->>+API: GET /llm-servers/ (getLLMServers)
    API-->>-FE: Zod Validated Response
    FE->>+API: POST /llm-servers/ (createLLMServer)
    API-->>-FE: Zod Validated Response
    FE->>+API: GET /llm-servers/:record_id (getLLMServer)
    API-->>-FE: Zod Validated Response
    FE->>+API: DELETE /llm-servers/:record_id (deleteLLMServer)
    API-->>-FE: Zod Validated Response
    FE->>+API: PATCH /llm-servers/:record_id (updateLLMServer)
    API-->>-FE: Zod Validated Response
    FE->>+API: GET /llm-servers/typescript-schema (getLLMServerSchema)
    API-->>-FE: Zod Validated Response
    FE->>+API: GET /manifests/ (getManifests)
    API-->>-FE: Zod Validated Response
    FE->>+API: POST /manifests/ (createManifest)
    API-->>-FE: Zod Validated Response
    FE->>+API: GET /manifests/:record_id (getManifest)
    API-->>-FE: Zod Validated Response
    FE->>+API: DELETE /manifests/:record_id (deleteManifest)
    API-->>-FE: Zod Validated Response
    FE->>+API: PATCH /manifests/:record_id (updateManifest)
    API-->>-FE: Zod Validated Response
    FE->>+API: POST /manifests/run (run_compiler_manifests_run_post)
    API-->>-FE: Zod Validated Response
    FE->>+API: GET /manifests/typescript-schema (getManifestSchema)
    API-->>-FE: Zod Validated Response
    FE->>+API: GET /prompt-config/ (getPromptConfigs)
    API-->>-FE: Zod Validated Response
    FE->>+API: POST /prompt-config/ (createPromptConfig)
    API-->>-FE: Zod Validated Response
    FE->>+API: GET /prompt-config/:record_id (getPromptConfig)
    API-->>-FE: Zod Validated Response
    FE->>+API: DELETE /prompt-config/:record_id (deletePromptConfig)
    API-->>-FE: Zod Validated Response
    FE->>+API: PATCH /prompt-config/:record_id (updatePromptConfig)
    API-->>-FE: Zod Validated Response
    FE->>+API: GET /prompt-config/typescript-schema (getPromptConfigSchema)
    API-->>-FE: Zod Validated Response
    FE->>+API: GET /prompt-pairs/ (getPromptPairs)
    API-->>-FE: Zod Validated Response
    FE->>+API: POST /prompt-pairs/ (createPromptPair)
    API-->>-FE: Zod Validated Response
    FE->>+API: GET /prompt-pairs/:record_id (getPromptPair)
    API-->>-FE: Zod Validated Response
    FE->>+API: DELETE /prompt-pairs/:record_id (deletePromptPair)
    API-->>-FE: Zod Validated Response
    FE->>+API: PATCH /prompt-pairs/:record_id (updatePromptPair)
    API-->>-FE: Zod Validated Response
    FE->>+API: GET /prompt-pairs/typescript-schema (getPromptPairSchema)
    API-->>-FE: Zod Validated Response
    FE->>+API: GET /prompts/ (getPrompts)
    API-->>-FE: Zod Validated Response
    FE->>+API: POST /prompts/ (createPrompt)
    API-->>-FE: Zod Validated Response
    FE->>+API: GET /prompts/:record_id (getPrompt)
    API-->>-FE: Zod Validated Response
    FE->>+API: DELETE /prompts/:record_id (deletePrompt)
    API-->>-FE: Zod Validated Response
    FE->>+API: PATCH /prompts/:record_id (updatePrompt)
    API-->>-FE: Zod Validated Response
    FE->>+API: GET /prompts/typescript-schema (getPromptSchema)
    API-->>-FE: Zod Validated Response
    FE->>+API: GET /research-tiers/ (getResearchTiers)
    API-->>-FE: Zod Validated Response
    FE->>+API: POST /research-tiers/ (createResearchTier)
    API-->>-FE: Zod Validated Response
    FE->>+API: GET /research-tiers/:record_id (getResearchTier)
    API-->>-FE: Zod Validated Response
    FE->>+API: DELETE /research-tiers/:record_id (deleteResearchTier)
    API-->>-FE: Zod Validated Response
    FE->>+API: PATCH /research-tiers/:record_id (updateResearchTier)
    API-->>-FE: Zod Validated Response
    FE->>+API: GET /research-tiers/typescript-schema (getResearchTierSchema)
    API-->>-FE: Zod Validated Response
    FE->>+API: GET /wbs-phases/ (getWBSPhases)
    API-->>-FE: Zod Validated Response
    FE->>+API: POST /wbs-phases/ (createWBSPhase)
    API-->>-FE: Zod Validated Response
    FE->>+API: GET /wbs-phases/:record_id (getWBSPhase)
    API-->>-FE: Zod Validated Response
    FE->>+API: DELETE /wbs-phases/:record_id (deleteWBSPhase)
    API-->>-FE: Zod Validated Response
    FE->>+API: PATCH /wbs-phases/:record_id (updateWBSPhase)
    API-->>-FE: Zod Validated Response
    FE->>+API: GET /wbs-phases/typescript-schema (getWBSPhaseSchema)
    API-->>-FE: Zod Validated Response
    FE->>+API: GET /wbs-tasks/ (getWBSTasks)
    API-->>-FE: Zod Validated Response
    FE->>+API: POST /wbs-tasks/ (createWBSTask)
    API-->>-FE: Zod Validated Response
    FE->>+API: GET /wbs-tasks/:record_id (getWBSTask)
    API-->>-FE: Zod Validated Response
    FE->>+API: DELETE /wbs-tasks/:record_id (deleteWBSTask)
    API-->>-FE: Zod Validated Response
    FE->>+API: PATCH /wbs-tasks/:record_id (updateWBSTask)
    API-->>-FE: Zod Validated Response
    FE->>+API: GET /wbs-tasks/typescript-schema (getWBSTaskSchema)
    API-->>-FE: Zod Validated Response
