huskies: merge 1085
This commit is contained in:
@@ -51,6 +51,8 @@ pub(crate) fn tool_get_pipeline_status(ctx: &AppContext) -> Result<String, Strin
|
||||
"story_id": s.story_id,
|
||||
"name": slim_name(&s.name),
|
||||
"stage": stage,
|
||||
"pipeline": s.pipeline.as_str(),
|
||||
"status": s.status.as_str(),
|
||||
"agent": s.agent.as_ref().map(|a| json!({
|
||||
"agent_name": a.agent_name,
|
||||
"model": a.model,
|
||||
@@ -83,7 +85,15 @@ pub(crate) fn tool_get_pipeline_status(ctx: &AppContext) -> Result<String, Strin
|
||||
let archived: Vec<Value> = state
|
||||
.archived
|
||||
.iter()
|
||||
.map(|s| json!({ "story_id": s.story_id, "name": slim_name(&s.name), "stage": "archived" }))
|
||||
.map(|s| {
|
||||
json!({
|
||||
"story_id": s.story_id,
|
||||
"name": slim_name(&s.name),
|
||||
"stage": "archived",
|
||||
"pipeline": s.pipeline.as_str(),
|
||||
"status": s.status.as_str(),
|
||||
})
|
||||
})
|
||||
.collect();
|
||||
|
||||
serde_json::to_string_pretty(&json!({
|
||||
|
||||
Reference in New Issue
Block a user