mirror of
https://github.com/morluto/rea.git
synced 2026-11-20 05:32:44 +00:00
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:
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:
|
||||
|
||||
Reference in new issue
Block a user