Commit Graph
14 Commits
Author SHA1 Message Date
Alexander KiselevandClaude Opus 4.6 57dbf62fd4 fix: handle batch commands locally and require Java 21 in CI
Batch was broken because it sent a single "batch" command to the Java
bridge, which rejected it. Now the Rust CLI parses each line of the
batch file as a sub-command and dispatches them individually through
execute_via_bridge, collecting results into a JSON response.

Also updated CI to install Java 21 (required by Ghidra 12.0.1).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-05 13:28:08 -08:00
Alexander Kiselev 2447137ffc fixes 2026-02-04 21:38:09 -08:00
Alexander Kiselev 8aadc35e0d refactor: update CLI commands and remove deprecated quick analysis feature 2026-02-04 19:36:16 -08:00
Alexander Kiselev 9ce351575b cleanup 2026-02-04 18:54:58 -08:00
Alexander Kiselev 3d20a3104f fixes 2026-02-04 14:26:33 -08:00
Alexander Kiselev a550ad1d35 more work on v2 java bridge 2026-02-04 14:14:15 -08:00
Alexander Kiselev ac1fb7b931 v2 wip 2026-02-04 14:04:32 -08:00
Alexander Kiselev 1f4f6ca883 work workity work 2026-02-01 09:21:59 -08:00
Alexander Kiselev 76fde9c3f7 Getting ready for v0.1.0 2026-01-26 16:04:00 -08:00
Alexander Kiselev 3cb63d1953 create a socket for each project 2026-01-26 14:43:22 -08:00
Alexander Kiselev f7b5049625 changes to daemon mode 2026-01-26 06:58:39 -08:00
Alexander KiselevandClaude Opus 4.5 a1cf872189 feat: Implement all analysis commands with daemon routing
Add complete implementation for all stub commands:
- Symbol operations (list, get, create, rename, delete)
- Type operations (list, get, create, apply)
- Comment operations (list, get, set, delete)
- Graph operations (calls, callers, callees, export)
- Find operations (string, bytes, function, calls, crypto, interesting)
- Diff operations (programs, functions)
- Patch operations (bytes, nop, export)
- Script operations (list, run, python inline)
- Disasm command (disassembly at address)
- Batch operations (execute commands from file)
- Stats command (program statistics)

Fix critical routing bug where new commands fell through to
"Command not yet implemented" instead of being routed to daemon.

Add ExecuteCli IPC command for forwarding CLI commands through daemon.
Add comprehensive integration tests for all new commands.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 07:08:59 -08:00
Alexander KiselevandClaude Opus 4.5 33dc10dcca feat: Implement daemon-only architecture for query operations
This commit implements the daemon-only architecture where all query
operations (functions, strings, decompile, memory, summary, xrefs)
must go through the persistent daemon instead of spawning new Ghidra
processes per command.

Key changes:
- Wire IPC client in main.rs to route queries through daemon
- Add requires_daemon() to determine which commands need daemon
- Add execute_via_daemon() to translate CLI commands to IPC calls
- Deprecate HeadlessExecutor with migration notice
- Fix filter.pest hex number parsing order (hex before number)
- Add #[allow(dead_code)] to infrastructure modules for future use
- Mark E2E tests requiring daemon as #[ignore]

Architecture benefits:
- Faster queries: Ghidra stays loaded, no 5-30s startup per command
- Simpler code: One execution path instead of two
- Better UX: Clear daemon requirement with helpful error messages

When daemon is not running, users see:
  Error: This command requires the daemon to be running.
  Start the daemon with: ghidra daemon start --project <name>

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 03:06:08 -08:00
Alexander Kiselev 35a864bd2f refactoring to use python bridge and a persistent ghidra 2026-01-20 16:15:02 -08:00