Skip to content

armgit / rea

Public Imported from GitHub
0

Reverse engineer anything with agents, from app behavior down to native binaries.

test(artifacts): assert asset-catalog target refusal only on macOS

Kaoru082244d5b4b25e08
diff --git a/tests/boundary/mcp/dylibResolutionMcp.test.ts b/tests/boundary/mcp/dylibResolutionMcp.test.ts
index 02d75c45d..e07f9dde0 100644
--- a/tests/boundary/mcp/dylibResolutionMcp.test.ts
+++ b/tests/boundary/mcp/dylibResolutionMcp.test.ts
@@ -141,7 +141,13 @@ it("reports target kinds that artifact operations cannot inspect as unsupported"
await withClient(async (client) => {
for (const [path, operation, requirement] of [
[plist, "decode_interface_builder", "requires an active .app bundle"],
- [plist, "inspect_asset_catalog", "requires an active .app bundle"],
+ // Elsewhere the session reports asset catalogs as unavailable on the
+ // host before the provider checks the target kind.
+ ...(process.platform === "darwin"
+ ? ([
+ [plist, "inspect_asset_catalog", "requires an active .app bundle"],
+ ] as const)
+ : []),
[tool, "inspect_keyed_archive", "requires an active plist or .app"],
] as const) {
const open = { name: "open_binary", arguments: { path } };