huskies: merge 615_story_extract_timer_service
This commit is contained in:
@@ -74,7 +74,7 @@ pub(super) async fn call_rebuild(project_root: &Path, agents: &Arc<AgentPool>) -
|
||||
/// Returns `Err` with a usage string if the timer arguments cannot be parsed.
|
||||
pub(super) async fn call_timer(args: &str, project_root: &Path) -> Result<String, String> {
|
||||
let synthetic = format!("__web_ui__ timer {args}");
|
||||
let timer_cmd = match crate::chat::timer::extract_timer_command(
|
||||
let timer_cmd = match crate::service::timer::extract_timer_command(
|
||||
&synthetic,
|
||||
"__web_ui__",
|
||||
"@__web_ui__:localhost",
|
||||
@@ -88,8 +88,8 @@ pub(super) async fn call_timer(args: &str, project_root: &Path) -> Result<String
|
||||
}
|
||||
};
|
||||
let store =
|
||||
crate::chat::timer::TimerStore::load(project_root.join(".huskies").join("timers.json"));
|
||||
Ok(crate::chat::timer::handle_timer_command(timer_cmd, &store, project_root).await)
|
||||
crate::service::timer::TimerStore::load(project_root.join(".huskies").join("timers.json"));
|
||||
Ok(crate::service::timer::handle_timer_command(timer_cmd, &store, project_root).await)
|
||||
}
|
||||
|
||||
/// Build an `htop` snapshot for the web UI.
|
||||
|
||||
Reference in New Issue
Block a user