feat: integrate ghidra-cli v0.1

This commit is contained in:
hermes 2026-07-28 20:20:05 +00:00
52 changed files with 6689 additions and 126 deletions

View file

@ -37,8 +37,6 @@ pub enum ErrorCode {
JavaMissing,
/// The installed Java version is incompatible.
JavaIncompatible,
/// A later integration layer has not connected execution yet.
InternalNotImplemented,
/// Rust/Java request or response validation failed.
ProtocolViolation,
/// The child exceeded a native or watchdog timeout.
@ -157,22 +155,6 @@ impl AppError {
}
}
/// Clear failure used until the store/process/Java execution layer is attached.
#[must_use]
pub fn execution_not_implemented(operation: &str) -> Self {
let mut error = Self::new(
ErrorCode::InternalNotImplemented,
format!("operation '{operation}' is not connected to the Ghidra execution layer"),
false,
);
error
.envelope
.error
.details
.insert("operation".to_owned(), Value::String(operation.to_owned()));
error
}
/// Constructs an invalid-invocation failure from clap context.
#[must_use]
pub fn invalid_arguments(message: impl Into<String>) -> Self {