style: fix extension lint violations

This commit is contained in:
Peter Steinberger
2026-04-06 14:45:04 +01:00
parent e8141716b4
commit af62a2c2e4
380 changed files with 2067 additions and 1501 deletions

View File

@@ -106,7 +106,7 @@ describe("PlaywrightDiffScreenshotter", () => {
});
it("renders PDF output when format is pdf", async () => {
const { pages, browser, screenshotter } = await createScreenshotterHarness();
const { pages, _browser, screenshotter } = await createScreenshotterHarness();
const pdfPath = path.join(rootDir, "preview.pdf");
await screenshotter.screenshotHtml({

View File

@@ -258,6 +258,7 @@ export class PlaywrightDiffScreenshotter implements DiffScreenshotter {
const reason = error instanceof Error ? error.message : String(error);
throw new Error(
`Diff PNG/PDF rendering requires a Chromium-compatible browser. Set browser.executablePath or install Chrome/Chromium. ${reason}`,
{ cause: error },
);
} finally {
await page?.close().catch(() => {});

View File

@@ -80,7 +80,7 @@ function createApi(): OpenClawPluginApi {
},
},
runtime: {} as OpenClawPluginApi["runtime"],
}) as OpenClawPluginApi;
});
}
function createPngScreenshotter(

View File

@@ -485,7 +485,7 @@ function createApi(pluginConfig?: Record<string, unknown>): OpenClawPluginApi {
},
pluginConfig,
runtime: {} as OpenClawPluginApi["runtime"],
}) as OpenClawPluginApi;
});
}
function createToolWithScreenshotter(