bug(doctor): validate TOML and YAML client configs, not just JSON
Débutant
buggood first issue
4 ★
Poids du clone léger
Mise à jour
Description
## Problem
`pharos doctor` validates client config files for syntax errors, but only handles JSON formats. Now that Pharos supports TOML (Codex CLI, Grok Build) and YAML (Aider) configs, `doctor` will either skip them or crash when trying to parse them as JSON.
## Steps to reproduce
1. Install a server to Codex CLI (writes TOML to `~/.codex/config.toml`)
2. Introduce a syntax error in the TOML
3. Run `pharos doctor`
4. Doctor doesn't report the malformed TOML
## Proposed fix
Update `validateConfig()` in `cmd/doctor.go` to dispatch on `client.Format`:
- `FormatMcpServers`, `FormatArray`, `FormatOpenCode`, `FormatZed` → JSON validation
- `FormatTOML` → TOML validation (parse with BurntSushi/toml)
- `FormatHermes`, `FormatAider` → YAML validation (parse with gopkg.in/yaml.v3)
## Acceptance criteria
- [ ] Doctor reports malformed TOML configs (Codex, Grok)
- [ ] Doctor reports malformed YAML configs (Aider, Hermes)
- [ ] Doctor reports malformed JSON configs (all JSON clients) — existing behavior preserved
- [ ] `--json` output includes format type per config check
Issues similaires
Tout voir
Go
Débutant
v0.8.0 starts a cluster-scoped Secret informer despite namespace-scoped Secret RBAC
## Description While testing Fence Agents Remediation (FAR) v0.8.0, I observed the manager repeatedly attemp…
Mise à jour
Go
Débutant
Check that an issuer's home_domain round-trips to the same stellar.toml
Written to the standard set by #33 — read that issue first for the expected level of detail and the acceptanc…
Mise à jour
Go
Débutant
Report auth_immutable: whether an issuer's flags can still change
> **This issue is the reference standard.** Every other check issue links back here for the expected level of…
Mise à jour