mirror of
https://github.com/instructkr/claude-code.git
synced 2026-05-28 08:26:45 +00: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:
@@ -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(),
|
||||||
|
|||||||
Reference in New Issue
Block a user