refactor(capabilities): declare standalone and host-gated availability on the contract (#11270)

Contracts declare availability: "standalone" or { host: <feature> }, and CapabilityInventory interprets the declaration once through one feature table, replacing 39 per-name branches. HOST_RESTRICTED_FEATURES moves to the contracts layer.
This commit is contained in:
morluto authored and GitHub committed 2026-11-15 23:52:56 +08:00
1 parent b6659b70a3
commit d1675822f6
27 files changed
+274 -175

No files matched your search

@@ -12,6 +12,7 @@ import { evidenceResultOf } from "../toolOutputSchemaPrimitives.js";
export const IL2CPP_TOOL_CONTRACTS = [
{
name: "inspect_il2cpp_metadata",
availability: "standalone",
...toolContractMetadata("inspect_il2cpp_metadata"),
kind: "artifact-provider",
requiresActiveTarget: true,