From 6cfec951764dc2fb396e58c4eeecae178c41a513 Mon Sep 17 00:00:00 2001 From: soryu Date: Sat, 31 Jan 2026 22:47:42 +0000 Subject: [WIP] Heartbeat checkpoint - 2026-01-31 22:47:42 UTC --- makima/src/llm/mod.rs | 5 +++++ makima/src/server/handlers/mesh_red_team.rs | 10 ++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) (limited to 'makima') 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 -- cgit v1.2.3