fix(native): report dispatch target applicability (#8400)

* fix(native): report dispatch target applicability

* fix(native): clarify unavailable mode recovery

* test(kuna): avoid overlapping verifier imports

* docs(native): explain mode-specific discovery

* fix(native): preserve unbound provider recovery
This commit is contained in:
morluto authored and GitHub committed 2026-11-01 21:17:55 +08:00
1 parent d684125eed
commit bafe3784cd
9 files changed
+246 -7

No files matched your search

@@ -1,6 +1,7 @@
import { z } from "zod";
import type { InvestigationStatistics } from "../../domain/investigationLifecycle.js";
import { artifactTargetRefusal } from "../../domain/apple/artifactTargetApplicability.js";
import { targetApplicabilityRefusal } from "../../domain/targetApplicability.js";
import type { BinaryTarget } from "../../domain/binaryTargetTypes.js";
import type { ResolvedAppBundleResourceRoot } from "../AppBundleExecutable.js";
import { binaryTargetSummary } from "./BinaryTargetSummary.js";
@@ -76,7 +77,12 @@ export const binarySessionStatus = async ({
const targetRefusal =
target === undefined
? undefined
: artifactTargetRefusal(descriptor.operation, target);
: descriptor.targetApplicability === undefined
? artifactTargetRefusal(descriptor.operation, target)
: targetApplicabilityRefusal(
descriptor.targetApplicability,
target,
);
if (targetRefusal !== undefined && descriptor.available)
return {
...descriptor,