mirror of
https://github.com/ultraworkers/claw-code.git
synced 2026-05-30 20:04:17 +08:00
fix(#458): add status:ok to agents and skills list JSON envelopes; all 9 subcommands now pass uniform status check
This commit is contained in:
parent
5b79413e87
commit
0581894b7e
@ -3625,6 +3625,7 @@ fn render_agents_report_json(cwd: &Path, agents: &[AgentSummary]) -> Value {
|
|||||||
.count();
|
.count();
|
||||||
json!({
|
json!({
|
||||||
"kind": "agents",
|
"kind": "agents",
|
||||||
|
"status": "ok",
|
||||||
"action": "list",
|
"action": "list",
|
||||||
"working_directory": cwd.display().to_string(),
|
"working_directory": cwd.display().to_string(),
|
||||||
"count": agents.len(),
|
"count": agents.len(),
|
||||||
@ -3707,6 +3708,7 @@ fn render_skills_report_json(skills: &[SkillSummary]) -> Value {
|
|||||||
.count();
|
.count();
|
||||||
json!({
|
json!({
|
||||||
"kind": "skills",
|
"kind": "skills",
|
||||||
|
"status": "ok",
|
||||||
"action": "list",
|
"action": "list",
|
||||||
"summary": {
|
"summary": {
|
||||||
"total": skills.len(),
|
"total": skills.len(),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user