mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-25 06:39:30 +00:00
19 lines
557 B
TypeScript
19 lines
557 B
TypeScript
// Android node capability required-command helper.
|
|
|
|
export const ANDROID_NODE_REQUIRED_NON_INTERACTIVE_COMMANDS = [
|
|
"device.health",
|
|
"device.info",
|
|
"device.permissions",
|
|
"device.status",
|
|
] as const;
|
|
|
|
export function findMissingRequiredAndroidNodeCommands(params: {
|
|
commandsToRun: readonly string[];
|
|
requiredCommands: readonly string[];
|
|
}): string[] {
|
|
const runnable = new Set(params.commandsToRun);
|
|
return params.requiredCommands
|
|
.filter((command) => !runnable.has(command))
|
|
.toSorted((left, right) => left.localeCompare(right));
|
|
}
|