mirror of
https://github.com/Tencent/BrowserSkill.git
synced 2026-09-10 13:01:23 +08:00
style(dsh-plugin-browserskill): wrap lines to satisfy biome
CI's frontend job failed on formatter-only diffs in the overlay and the skill-content assertion.
This commit is contained in:
@@ -282,7 +282,8 @@ function OverlayBody(props: {
|
||||
// Paint the last good frame while the next attachment decodes — swapping
|
||||
// to a placeholder (and remounting <img> with a fade) is what made the
|
||||
// card flash on every breath / action-end capture.
|
||||
const thumb = focus !== undefined ? store.getSnapshot().displayFrames[focus.sessionId] : undefined;
|
||||
const thumb =
|
||||
focus !== undefined ? store.getSnapshot().displayFrames[focus.sessionId] : undefined;
|
||||
const displayUrl = thumb?.url;
|
||||
|
||||
const canInterrupt =
|
||||
@@ -595,8 +596,7 @@ export function ObservationOverlay({ store }: { store: ObservationClientStore })
|
||||
const step = 16;
|
||||
const dx =
|
||||
event.key === "ArrowRight" ? step : event.key === "ArrowLeft" ? -step : 0;
|
||||
const dy =
|
||||
event.key === "ArrowDown" ? step : event.key === "ArrowUp" ? -step : 0;
|
||||
const dy = event.key === "ArrowDown" ? step : event.key === "ArrowUp" ? -step : 0;
|
||||
if (dx === 0 && dy === 0) return;
|
||||
event.preventDefault();
|
||||
const next = applyResize(cardOrigin(), "se", dx, dy, viewport());
|
||||
|
||||
@@ -33,7 +33,9 @@ describe("registerBskSkill", () => {
|
||||
expect(content).toContain("Always call those injected `browser_*` tools");
|
||||
expect(content).toContain("Never use `bash`, `shell`, `exec`");
|
||||
expect(content).toContain("## DSH routing reminder");
|
||||
expect(content.trimEnd()).toMatch(/always begin with[\s\S]*`browser_session_start`[\s\S]*`browser_session_stop`\.$/);
|
||||
expect(content.trimEnd()).toMatch(
|
||||
/always begin with[\s\S]*`browser_session_start`[\s\S]*`browser_session_stop`\.$/,
|
||||
);
|
||||
expect(content).toContain("Owned sessions only");
|
||||
expect(content).toContain("Mandatory workflow");
|
||||
expect(content).toContain("Refs invalidate after navigation");
|
||||
|
||||
Reference in New Issue
Block a user