Skip to content

Commit 1b22ed7

Browse files
bellmanGajae Code
authored andcommitted
fix: standardize list command count fields and resume help field name
#410: Added field to mcp list and skills list JSON for polymorphic consumption parity with agents list. All three sibling list commands now expose a canonical integer field alongside their command-specific details. #338: Changed resume JSON from to field for consistency with top-level . Generated with https://github.com/Yeachan-Heo/gajae-code Co-authored-by: Gajae Code <dev@gajae-code.com>
1 parent 76f9a13 commit 1b22ed7

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

rust/crates/commands/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4492,10 +4492,12 @@ fn render_skills_report_json_with_action(collection: &SkillCollection, action: &
44924492
.count();
44934493
let has_drift = !metadata_drift.is_empty();
44944494
let status = if has_drift { "degraded" } else { "ok" };
4495+
// #410: add `count` field for polymorphic consumption parity with agents list
44954496
json!({
44964497
"kind": "skills",
44974498
"status": status,
44984499
"action": action,
4500+
"count": skills.len(),
44994501
"valid_count": skills.len(),
45004502
"metadata_drift_count": metadata_drift.len(),
45014503
"summary": {
@@ -4684,6 +4686,7 @@ fn render_mcp_summary_report_json(cwd: &Path, mcp: &McpConfigCollection) -> Valu
46844686
json!({
46854687
"kind": "mcp",
46864688
"action": "list",
4689+
"count": mcp.valid_count(),
46874690
"working_directory": cwd.display().to_string(),
46884691
"configured_servers": mcp.valid_count(),
46894692
"total_configured": mcp.total_configured(),

rust/crates/rusty-claude-cli/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6249,7 +6249,7 @@ fn run_resume_command(
62496249
session: session.clone(),
62506250
message: Some(render_repl_help()),
62516251
json: Some(
6252-
serde_json::json!({ "kind": "help", "action": "help", "status": "ok", "text": render_repl_help() }),
6252+
serde_json::json!({ "kind": "help", "action": "help", "status": "ok", "message": render_repl_help() }),
62536253
),
62546254
}),
62556255
SlashCommand::Compact => {

0 commit comments

Comments
 (0)