diff options
Diffstat (limited to 'makima/src')
| -rw-r--r-- | makima/src/llm/mod.rs | 5 | ||||
| -rw-r--r-- | makima/src/server/handlers/mesh_red_team.rs | 10 |
2 files changed, 13 insertions, 2 deletions
diff --git a/makima/src/llm/mod.rs b/makima/src/llm/mod.rs index 212876a..3880177 100644 --- a/makima/src/llm/mod.rs +++ b/makima/src/llm/mod.rs @@ -6,6 +6,7 @@ pub mod groq; pub mod markdown; pub mod mesh_tools; pub mod phase_guidance; +pub mod red_team_prompt; pub mod task_output; pub mod templates; pub mod tools; @@ -40,6 +41,10 @@ pub use transcript_analyzer::{ ExtractedActionItem, SpeakerStats, format_transcript_for_analysis, calculate_speaker_stats, build_analysis_prompt, parse_analysis_response, }; +pub use red_team_prompt::{ + generate_red_team_system_prompt, generate_red_team_task_plan, + RedTeamPromptContext, +}; /// Available LLM providers and models #[derive(Debug, Clone, Copy, PartialEq, Eq, Default)] diff --git a/makima/src/server/handlers/mesh_red_team.rs b/makima/src/server/handlers/mesh_red_team.rs index c5af60e..6031c2c 100644 --- a/makima/src/server/handlers/mesh_red_team.rs +++ b/makima/src/server/handlers/mesh_red_team.rs @@ -2,9 +2,15 @@ //! //! These endpoints are used by red team tasks (via the makima CLI) to notify //! supervisors of potential issues and query their own status. +//! +//! ## Phase 2 Additions +//! +//! - Task output subscription for monitoring work tasks +//! - Diff access with read-only validation +//! - Enhanced notification delivery to supervisor use axum::{ - extract::State, + extract::{Path, State}, http::{HeaderMap, StatusCode}, response::IntoResponse, Json, @@ -16,7 +22,7 @@ use uuid::Uuid; use crate::db::repository; use crate::server::handlers::mesh::{extract_auth, AuthSource}; use crate::server::messages::ApiError; -use crate::server::state::{DaemonCommand, SharedState}; +use crate::server::state::{DaemonCommand, SharedState, TaskOutputNotification}; // ============================================================================= // Request/Response Types |
