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

@@ -10,6 +10,7 @@ import type { ToolContract } from "../toolContractTypes.js";
export const JAVASCRIPT_RECOVERY_TOOL_CONTRACTS = [
{
name: "recover_javascript_sources",
availability: { host: "javascriptRecovery" },
...toolContractMetadata("recover_javascript_sources"),
kind: "application",
description: