mirror of
https://github.com/instructkr/claude-code.git
synced 2026-05-28 16:36:45 +00:00
fix(#712): add missing action fields to doctor/status/bootstrap-plan/dump-manifests json responses
This commit is contained in:
@@ -2139,6 +2139,7 @@ impl DoctorReport {
|
||||
let (ok_count, warn_count, fail_count) = self.counts();
|
||||
json!({
|
||||
"kind": "doctor",
|
||||
"action": "doctor",
|
||||
"status": self.status(),
|
||||
"message": report,
|
||||
"report": report,
|
||||
@@ -2890,6 +2891,7 @@ fn dump_manifests_at_path(
|
||||
"{}",
|
||||
serde_json::to_string_pretty(&json!({
|
||||
"kind": "dump-manifests",
|
||||
"action": "dump",
|
||||
"commands": manifest.commands.entries().len(),
|
||||
"tools": manifest.tools.entries().len(),
|
||||
"bootstrap_phases": manifest.bootstrap.phases().len(),
|
||||
@@ -2922,6 +2924,7 @@ fn print_bootstrap_plan(output_format: CliOutputFormat) -> Result<(), Box<dyn st
|
||||
"{}",
|
||||
serde_json::to_string_pretty(&json!({
|
||||
"kind": "bootstrap-plan",
|
||||
"action": "show",
|
||||
"status": "ok",
|
||||
"phases": phases,
|
||||
}))?
|
||||
@@ -6748,6 +6751,7 @@ fn status_json_value(
|
||||
let allowed_tool_entries = allowed_tools.map(|tools| tools.iter().cloned().collect::<Vec<_>>());
|
||||
json!({
|
||||
"kind": "status",
|
||||
"action": "show",
|
||||
"status": if degraded { "degraded" } else { "ok" },
|
||||
"config_load_error": context.config_load_error,
|
||||
"config_load_error_kind": context.config_load_error_kind,
|
||||
|
||||
Reference in New Issue
Block a user