feat(scanner): complete localized artifact quality checkpoint
This commit is contained in:
@@ -166,6 +166,18 @@ export interface InputHelperService {
|
||||
dispose(): void;
|
||||
}
|
||||
|
||||
export function automationGuardFromHelperResponse(result: HelperOperationResponse): AutomationGuard {
|
||||
return {
|
||||
ok: true,
|
||||
cursorX: typeof result.cursorX === "number" ? result.cursorX : undefined,
|
||||
cursorY: typeof result.cursorY === "number" ? result.cursorY : undefined,
|
||||
escapePressed: Boolean(result.escapePressed),
|
||||
enterPressed: Boolean(result.enterPressed),
|
||||
f9Pressed: Boolean(result.f9Pressed),
|
||||
isElevated: typeof result.isElevated === "boolean" ? result.isElevated : undefined,
|
||||
};
|
||||
}
|
||||
|
||||
export function createInputHelperService(options: { userDataPath: string; exePath?: string | null }): InputHelperService {
|
||||
const inputHelper = new InputHelperClient({ scriptUserDataPath: options.userDataPath, exePath: options.exePath ?? null });
|
||||
|
||||
@@ -273,14 +285,7 @@ export function createInputHelperService(options: { userDataPath: string; exePat
|
||||
|
||||
async function getAutomationGuard() {
|
||||
const result = await request("cursor", {}, 4000);
|
||||
return {
|
||||
ok: true,
|
||||
cursorX: typeof result.cursorX === "number" ? result.cursorX : undefined,
|
||||
cursorY: typeof result.cursorY === "number" ? result.cursorY : undefined,
|
||||
escapePressed: Boolean(result.escapePressed),
|
||||
enterPressed: Boolean(result.enterPressed),
|
||||
f9Pressed: Boolean(result.f9Pressed),
|
||||
};
|
||||
return automationGuardFromHelperResponse(result);
|
||||
}
|
||||
|
||||
async function capturePrimaryScreenViaGdi() {
|
||||
|
||||
Reference in New Issue
Block a user