huskies: merge 1127 story Migrate all LLM-invoking transports onto assemble_prompt_context; delete legacy Vec
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
//! with `[project-name]` prefixes. The actual I/O (HTTP polling, spawning
|
||||
//! tasks, sending messages) lives in `io.rs`.
|
||||
|
||||
use crate::pipeline_state::{Stage, stage_label};
|
||||
use crate::pipeline_state::Stage;
|
||||
use crate::service::events::StoredEvent;
|
||||
use crate::service::notifications::{
|
||||
format_blocked_notification, format_error_notification, format_stage_notification,
|
||||
@@ -56,7 +56,9 @@ pub fn format_gateway_event(project_name: &str, event: &StoredEvent) -> (String,
|
||||
///
|
||||
/// Produces a structured one-line entry with stable `key=value` fields, including
|
||||
/// the project name, mirroring the sled-side `format_audit_entry` format.
|
||||
#[cfg(test)]
|
||||
pub fn format_gateway_audit_line(project: &str, event: &StoredEvent) -> String {
|
||||
use crate::pipeline_state::stage_label;
|
||||
let ts_ms = event.timestamp_ms();
|
||||
let ts = chrono::DateTime::from_timestamp_millis(ts_ms as i64)
|
||||
.unwrap_or_else(chrono::Utc::now)
|
||||
|
||||
Reference in New Issue
Block a user