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

Outside Darwin the session reports inspect_asset_catalog as unavailable
on the host before the provider checks the target kind, so the Linux
test shards would see capability_unavailable rather than
unsupported_target.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Kaoru0822 2026-10-09 02:21:21 +00:00
parent 637bcb5e41
commit 44d5b4b25e
1 changed files with 7 additions and 1 deletions

View File

@ -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 } };