Skip to content

An agent-managed museum exhibit, built in Rust with Gajae-Code / LazyCodex — developed and maintained with no human intervention.

Rust

fix: standardize list command count fields and resume help field name

bellman1b22ed700a15
diff --git a/rust/crates/commands/src/lib.rs b/rust/crates/commands/src/lib.rs
index 32dbed5b..26f1d97a 100644
--- a/rust/crates/commands/src/lib.rs
+++ b/rust/crates/commands/src/lib.rs
@@ -4492,10 +4492,12 @@ fn render_skills_report_json_with_action(collection: &SkillCollection, action: &
.count();
let has_drift = !metadata_drift.is_empty();
let status = if has_drift { "degraded" } else { "ok" };
+ // #410: add `count` field for polymorphic consumption parity with agents list
json!({
"kind": "skills",
"status": status,
"action": action,
+ "count": skills.len(),
"valid_count": skills.len(),
"metadata_drift_count": metadata_drift.len(),
"summary": {
@@ -4684,6 +4686,7 @@ fn render_mcp_summary_report_json(cwd: &Path, mcp: &McpConfigCollection) -> Valu
json!({
"kind": "mcp",
"action": "list",
+ "count": mcp.valid_count(),
"working_directory": cwd.display().to_string(),
"configured_servers": mcp.valid_count(),
"total_configured": mcp.total_configured(),
diff --git a/rust/crates/rusty-claude-cli/src/main.rs b/rust/crates/rusty-claude-cli/src/main.rs
index 686a6802..24aa383a 100644
--- a/rust/crates/rusty-claude-cli/src/main.rs
+++ b/rust/crates/rusty-claude-cli/src/main.rs
@@ -6249,7 +6249,7 @@ fn run_resume_command(
session: session.clone(),
message: Some(render_repl_help()),
json: Some(
- serde_json::json!({ "kind": "help", "action": "help", "status": "ok", "text": render_repl_help() }),
+ serde_json::json!({ "kind": "help", "action": "help", "status": "ok", "message": render_repl_help() }),
),
}),
SlashCommand::Compact => {