MCPcopy
hub / github.com/callstack/agent-device / unsupportedHintForDevice

Function unsupportedHintForDevice

src/core/capabilities.ts:111–115  ·  view source on GitHub ↗
(command: string, device: DeviceInfo)

Source from the content-addressed store, hash-verified

109}
110
111export 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
117export function listCapabilityCommands(): string[] {
118 return Object.keys(COMMAND_CAPABILITY_MATRIX).sort();

Calls 1

tryGetPluginFunction · 0.90

Tested by

no test coverage detected