Adding doc comments.
This commit is contained in:
@@ -99,6 +99,7 @@ pub(crate) async fn tool_get_agent_output(
|
|||||||
Ok(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> {
|
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 project_root = ctx.services.agents.get_project_root(&ctx.state)?;
|
||||||
let config = ProjectConfig::load(&project_root)?;
|
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> {
|
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 project_root = ctx.services.agents.get_project_root(&ctx.state).ok();
|
||||||
let agents = ctx.services.agents.list_agents().await?;
|
let agents = ctx.services.agents.list_agents().await?;
|
||||||
|
|||||||
@@ -171,6 +171,7 @@ pub(super) async fn tool_move_story_to_merge(
|
|||||||
.map_err(|e| format!("Serialization error: {e}"))
|
.map_err(|e| format!("Serialization error: {e}"))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Record a merge failure reported by the mergemaster agent.
|
||||||
pub(super) async fn tool_report_merge_failure(
|
pub(super) async fn tool_report_merge_failure(
|
||||||
args: &Value,
|
args: &Value,
|
||||||
ctx: &AppContext,
|
ctx: &AppContext,
|
||||||
|
|||||||
@@ -66,6 +66,7 @@ pub(crate) fn tool_list_bugs(ctx: &AppContext) -> Result<String, String> {
|
|||||||
.map_err(|e| format!("Serialization error: {e}"))
|
.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> {
|
pub(crate) async fn tool_close_bug(args: &Value, ctx: &AppContext) -> Result<String, String> {
|
||||||
let bug_id = args
|
let bug_id = args
|
||||||
.get("bug_id")
|
.get("bug_id")
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ use crate::http::context::AppContext;
|
|||||||
use crate::pipeline_state::{Stage, read_typed};
|
use crate::pipeline_state::{Stage, read_typed};
|
||||||
use serde_json::Value;
|
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> {
|
pub(crate) async fn tool_accept_story(args: &Value, ctx: &AppContext) -> Result<String, String> {
|
||||||
let story_id = args
|
let story_id = args
|
||||||
.get("story_id")
|
.get("story_id")
|
||||||
|
|||||||
Reference in New Issue
Block a user