Commit Graph
17 Commits
Author SHA1 Message Date
RRFZ 2a5032c877 fix(setup): keep read errors' own advice and show uninstall blockers' fixes
A folder at the config path gets folder advice instead of permissions, other I/O errors keep their text, and malformed or non-UTF-8 configs are fixed where they are. The CLI prints each uninstall blocker's reason and remediation.
2026-11-18 04:48:02 -05:00
RRFZ 18b931b6b9 Report dedicated uninstall blocking diagnostics and UTF-8 remediations in setup (R2.2)
- Build dedicated `ActionKind::Invalid` blocking records in `plan::uninstall` when a client config cannot be read, fails syntax parsing, or refuses in-place entry removal instead of calling `inspect_client(c, &[])` and reporting `"Can't add our entry..."` / `"run setup again."`.
- Share `plan::read_text` (`ReadFail::InvalidUtf8` vs `ReadFail::Io`) across `plan`, `doctor`, and `uninstall` so non-UTF-8 configs advise saving as UTF-8 rather than checking file permissions.
- Add `uninstall_blocking_diagnostics` integration regressions and update `docs/ROADMAP.md` and `docs/STATUS.md`.
2026-11-18 03:04:07 -05:00
RRFZ 2db47e2022 Keep colon-containing Windows tilde tails rooted under home 2026-11-18 01:02:07 -05:00
RRFZ 2e59d6ebf6 Normalize repeated slashes before checking Windows tilde absoluteness 2026-11-18 00:52:02 -05:00
RRFZ 13947d37ec Follow QODER_CONFIG_DIR for Qoder skills and expand Windows ~\ paths in setup (R2.2) 2026-11-18 00:33:40 -05:00
RRFZ c1048d2a6a Allow sibling YAML block scalars starting with { or [ (R2.2) 2026-11-17 22:27:43 -05:00
RRFZ 6ac0a8563f Keep YAML anchor context for one-line flow checks and refuse next-line flow blocks 2026-11-17 22:03:46 -05:00
RRFZ 013e97b10b Accept complete one-line YAML flow entries and siblings under mcp_servers 2026-11-17 21:23:24 -05:00
RRFZ db092830ca Refuse inline flow entries under mcp_servers instead of heuristic brace scanning 2026-11-17 20:45:01 -05:00
RRFZ c583736789 Accept empty YAML flow braces, null case variants, and multi-line flow child blocks in setup (R2.2) 2026-11-17 20:02:18 -05:00
RRFZ 3fb4c05f24 Support inline mcp_servers TOML tables in setup edits (R2.2) 2026-11-17 18:52:20 -05:00
RRFZ 637ebd5875 Respect YAML mapping key boundaries in setup edits (R2.2) 2026-11-17 16:42:13 -05:00
RRFZ 225a5c06a4 Keep a TOML config's Windows line endings when setup edits it (R2.2) (#1308)
A TOML config saved with Windows line endings, such as Codex's, keeps them when setup adds or removes our entry, as the JSONC and YAML configs already do. A file that mixes line endings, or whose values the change would alter, is written as before.
2026-11-09 18:59:26 +08:00
RRFZ b919dc72b8 Treat a null YAML table as empty when adding our entry (R2.2) (#1307)
`mcp_servers: null` or `~`, with or without a comment, is now an empty table like `{}`, so our entry goes into it and the comment is kept. A flow table with members, or a value that carries on onto the next line, is still left to the person.
2026-11-09 18:54:13 +08:00
RRFZ 32e7c9b6d4 Find app configs under the user profile on Windows, not HOME (R2.2) (#1306)
On Windows the coding apps keep their settings under the user profile and ignore HOME, which a shell such as MSYS2 or Cygwin points elsewhere. Setup now takes USERPROFILE first there and HOME first elsewhere, and an empty value counts as not set.
2026-11-09 18:43:54 +08:00
RRFZ fbdbedbc61 Look a bare registration command up on PATH in doctor (R2.2) (#1305)
A registration may name the CLI by its bare name (`craft-anything-cli mcp`), as `claude mcp add` writes it. The app starts such a name from PATH, and doctor now looks for it there and in the usual install folders too, instead of calling it missing.
2026-11-09 18:43:45 +08:00
RRFZ 7eead65cf8 Edit a YAML config that starts with a byte-order mark in place (R2.2) (#1304)
A byte-order mark that some Windows editors put at the start of a YAML config was read as part of its first key, so setup added a second table of the same name that hid the first. The mark is now set aside while the file is read and edited and put back as it was, so our entry goes into the existing table and removing it gives the file back byte for byte.
2026-11-09 18:36:17 +08:00