feat(target): explain static WASM inspection after native rejection

Explain recognized WASM v1 native-admission rejection with an exact call to the existing static inspection tool and its caller-supplied WABT prerequisites. Preserve selected paths, explicit raw-binary choices, typed missing-tool outcomes and connection usability.

Refs #1852

Co-authored-by: SII-YDD <38822679+SII-YDD@users.noreply.github.com>
Co-authored-by: Ysopwnable <161784452+N0zoM1z0@users.noreply.github.com>
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Co-authored-by: Kaoru0822 <208281322+kaoru0822-kitauji@users.noreply.github.com>
This commit is contained in:
SII-YDD
2026-10-12 07:00:30 +08:00
committed by GitHub
co-authored by Ysopwnable factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com> Kaoru0822
parent 89f5e489ad
commit 1f17ac8228
9 changed files with 238 additions and 47 deletions
+3 -1
View File
@@ -38,7 +38,9 @@ export class NoBinaryOpenError extends AnalysisError {
/** Additional constraints identified while admitting a filesystem target. */
export interface BinaryTargetErrorOptions extends AnalysisErrorOptions {
readonly constraint?: "directory_requires_file";
readonly constraint?:
| "directory_requires_file"
| "wasm_requires_static_inspection";
}
/** A supplied target path could not be safely opened as a supported app or binary. */