(command: string, device: DeviceInfo)
| 109 | } |
| 110 | |
| 111 | export function unsupportedHintForDevice(command: string, device: DeviceInfo): string | undefined { |
| 112 | // Counterpart of the `supports()` relocation (Phase 3 step b.2): the hint closure is |
| 113 | // owned by the family that owns `device.platform`, keyed by command. |
| 114 | return tryGetPlugin(device.platform)?.capability.unsupportedHintByDefault?.[command]?.(device); |
| 115 | } |
| 116 | |
| 117 | export function listCapabilityCommands(): string[] { |
| 118 | return Object.keys(COMMAND_CAPABILITY_MATRIX).sort(); |
no test coverage detected