Adding doc comments.

This commit is contained in:
Timmy
2026-06-29 17:02:17 +01:00
parent feb35ddd10
commit 0a0ab65908
5 changed files with 5 additions and 0 deletions
@@ -99,6 +99,7 @@ pub(crate) async fn tool_get_agent_output(
Ok(output)
}
/// Return the agent configuration with availability info for each stage.
pub(crate) async fn tool_get_agent_config(ctx: &AppContext) -> Result<String, String> {
let project_root = ctx.services.agents.get_project_root(&ctx.state)?;
let config = ProjectConfig::load(&project_root)?;
@@ -67,6 +67,7 @@ pub(crate) async fn tool_stop_agent(args: &Value, ctx: &AppContext) -> Result<St
))
}
/// List all agents with their current status, filtered to non-archived stories.
pub(crate) async fn tool_list_agents(ctx: &AppContext) -> Result<String, String> {
let project_root = ctx.services.agents.get_project_root(&ctx.state).ok();
let agents = ctx.services.agents.list_agents().await?;
+1
View File
@@ -171,6 +171,7 @@ pub(super) async fn tool_move_story_to_merge(
.map_err(|e| format!("Serialization error: {e}"))
}
/// Record a merge failure reported by the mergemaster agent.
pub(super) async fn tool_report_merge_failure(
args: &Value,
ctx: &AppContext,
+1
View File
@@ -66,6 +66,7 @@ pub(crate) fn tool_list_bugs(ctx: &AppContext) -> Result<String, String> {
.map_err(|e| format!("Serialization error: {e}"))
}
/// Close a bug: archive it and remove its agent pool entries.
pub(crate) async fn tool_close_bug(args: &Value, ctx: &AppContext) -> Result<String, String> {
let bug_id = args
.get("bug_id")
@@ -5,6 +5,7 @@ use crate::http::context::AppContext;
use crate::pipeline_state::{Stage, read_typed};
use serde_json::Value;
/// Accept a story: move it to Done and clean up its agent pool entries.
pub(crate) async fn tool_accept_story(args: &Value, ctx: &AppContext) -> Result<String, String> {
let story_id = args
.get("story_id")