Commit Graph
21 Commits
Author SHA1 Message Date
Justin John db8b9777e2 Run Vineflower and JADX on the Java folder set for Ghidra (R5.7) (#2023)
A Java folder set for Ghidra in Settings → Engines was used only to run Ghidra, so with no system Java, Vineflower said Java wasn't installed and JADX could not start. The Java runtime lookup now returns that folder's bin/java when no path is set for Java itself, so Vineflower, JADX, the engine list and doctor all find it. A path set for Java itself still wins, and a folder with no bin/java is ignored.
2026-11-17 17:05:37 +07:00
muraa-p 66da5c38e6 Count a program reached through a symlinked PATH folder once in doctor (#1866)
doctor compared the paths of craft-anything-cli on PATH as text, so a PATH folder that links to another (/bin -> /usr/bin) looked like a second installed copy. It now compares where the paths really lead and keeps the first spelling for the message. Helps with #1550.
2026-11-14 23:30:30 +07:00
RRFZ d56d03c36e Refuse multi-document YAML configs before editing them (R2.2) (#1534)
The YAML reader looked only at the first document while edits could land anywhere in the file, so a coding agent's config with several documents was edited or diagnosed against an incomplete view. A config with more than one document is now refused, with a plain message, before an edit is planned or an entry removed. A single document with explicit start and end markers is still accepted.
2026-11-11 00:35:25 +07:00
RRFZ 25e43008c0 Apply repeated setup client selections only once (R2.2) (#1539)
Choosing the same coding agent twice in one setup, for example by claude_code and claude-code, planned two writes to one config file. The second write saw the first as an outside edit and rolled the installation back. Aliases are now resolved first, and each client is kept once, in the order chosen. A test applies the plan in a temporary home and checks that running it again changes nothing.
2026-11-11 00:15:30 +07:00
RRFZ 097bcbc369 Insert YAML server tables before the document ends (R2.2) (#1527)
Connecting to a coding agent whose YAML config ends with a document-end marker (...) appended the new server table after it, so it became a second document. Reading the config back saw only the first, and setup failed and rolled back. A missing table now goes in before the document end, keeping comments and line endings. Tests cover LF and mixed CRLF, a comment on the end marker, repeated edits, removal, and a key that starts with ....
2026-11-10 23:57:33 +07: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
Books 17048341ff Keep one line ending on a CRLF YAML line cut off after its CR (#1190)
Setup keeps each YAML line's own ending, gives a last line cut off after its CR its LF back instead of a second ending, and a second run leaves the file unchanged.

Fixes #1168
2026-11-09 01:52:59 +08:00
istars d784d0a609 Warn an agent before setup drops a client's --all-tools (#1064)
The installed skill says that `setup --yes` writes the plain `mcp` command and so drops an `--all-tools` already in an entry; keeping the person's arguments is on the roadmap.
2026-11-07 10:54:07 +08:00
Fábio Soares 086ef3ba63 Approve Craft Anything's tools for Codex and explain a refused call instead of showing null (#553)
Fixes #540. Codex's codex exec can't ask for approval, so setup and the builder approve rebuild_start (which asks the person itself) on Codex's side, keeping the person's other settings in the entry; a refused call explains the fix instead of showing null.
2026-11-03 15:04:55 +07:00
Bently 473f187c5d doctor says which Java Ghidra runs on as well as the Java on PATH (#489)
doctor reports which Java Ghidra runs on (JAVA_HOME_OVERRIDE in its launch.properties, the Java set for it in Settings, JAVA_HOME, then PATH), and warns when the set folder has no Java or an override wins over it.
2026-11-03 14:50:48 +07:00
BFlat 8071522b3d Setup creates Pi's mcp.json when it doesn't exist yet (#268)
Pi rejects an empty `mcp.json`, so setup marks Pi as "empty is invalid". The check also ran when the file didn't exist yet: its absent text read as empty, the plan was blocked ("the file is empty, and this app requires valid JSON"), and `setup --all-detected --yes` stopped with it.

A missing file now starts from `{}` and is created with our `mcpServers` entry. An existing empty file is still refused. The preview of a new file shows only the added lines.

**Verified:** a new setup test where Pi's folder exists without `mcp.json`: the plan isn't blocked, apply writes a valid file with our entry, and an empty file is still blocked. `cargo test -p craft-anything-setup` (24), clippy, fmt.

Fixes #238
2026-11-02 14:00:39 +07:00
BFlat 2022642554 Setup and the doctor read a client's other names from one table (#184)
agy as another name for antigravity was written out by hand in both; Client::is now matches an id with dashes or underscores, or an alias.
2026-11-02 06:10:56 +07:00
X-EON d0c341739b Antigravity (agy) works as an agent program, in setup and the doctor (#89)
Adds an Antigravity adapter (stream-json output, resume by conversation, builder permissions) and lets setup and the doctor connect and check it under `antigravity` or `agy`.
2026-11-02 05:59:23 +07:00
BFlat ca706dc980 Look for AI offers local servers already set up in OpenCode (#111)
Look for AI reads provider baseURLs from OpenCode's settings and probes those on this computer or its network, so LM Studio on another port or a server on another machine is offered. The JSONC reader moves from setup to formats so ai can use it. Fixes #83.
2026-11-01 23:56:28 +07:00
Tommy Leonhardsen 63aaaeeb08 Every engine listing finds a Ghidra installed in a versioned folder or set through its folder setting (#55)
engines_list, doctor, capabilities and Requires::Engine share Settings::engine_path, which honours the Ghidra folder setting, and locate() finds an engine unpacked into a versioned sub-folder.
2026-11-01 18:40:51 +07:00
Brandon ThomasandClaude Opus 5.5 6a120011a1 Explain failed agent runs, keep a log to open, and stop offering git servers as computers (#3)
* Explain failed agent runs, keep a log to open, and stop offering git servers as computers

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Fix a lock-up: the build's agent setup took the session lock twice in one statement

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 20:27:44 -04:00
Brandon ThomasandClaude Opus 5.5 f64ae3bf3c Craft Anything
A native, pure-Rust app that shows anyone how a piece of software works, with
evidence-backed answers, then helps them rebuild it. It ships a desktop app, a
CLI and an MCP server, all driven by one engine.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 10:52:14 -04:00