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:
BB-fat
2026-08-17 09:48:27 +00:00
parent 3fb9e9f581
commit e7aad9bc16
2 changed files with 6 additions and 4 deletions
@@ -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");