From ea10cce8d89827d08c0d92b8c8c7a0dd417b42e9 Mon Sep 17 00:00:00 2001 From: can1357 Date: Thu, 13 Aug 2026 01:23:48 +0200 Subject: [PATCH] style: applied biome formatting to merged pull request sources --- .../src/extensibility/custom-commands/loader.ts | 6 +----- packages/coding-agent/src/extensibility/legacy-typebox.ts | 5 +---- .../test/extensibility/custom-commands/ci-green.test.ts | 6 +----- .../coding-agent/test/extensibility/typebox-shim.test.ts | 5 +---- packages/tui/src/tui.ts | 6 +----- 5 files changed, 5 insertions(+), 23 deletions(-) diff --git a/packages/coding-agent/src/extensibility/custom-commands/loader.ts b/packages/coding-agent/src/extensibility/custom-commands/loader.ts index 3c30150f4..37ed1deea 100644 --- a/packages/coding-agent/src/extensibility/custom-commands/loader.ts +++ b/packages/coding-agent/src/extensibility/custom-commands/loader.ts @@ -26,11 +26,7 @@ import type { LoadedCustomCommand, } from "./types"; -const arktype = Object.assign( - Function.prototype.bind.call(type, undefined) as typeof type, - type, - { type }, -); +const arktype = Object.assign(Function.prototype.bind.call(type, undefined) as typeof type, type, { type }); /** * Load a single command module using native Bun import. diff --git a/packages/coding-agent/src/extensibility/legacy-typebox.ts b/packages/coding-agent/src/extensibility/legacy-typebox.ts index 9ec42d1bf..643bb27fa 100644 --- a/packages/coding-agent/src/extensibility/legacy-typebox.ts +++ b/packages/coding-agent/src/extensibility/legacy-typebox.ts @@ -117,10 +117,7 @@ const object = ((properties: Record, opts?: ObjectOpts) => { const property = properties[key]; normalizedProperties[key] = isRuntimeSchema(property) ? property : unsafe(property as Record); } - if ( - additionalProperties !== undefined && - typeof additionalProperties !== "boolean" - ) { + if (additionalProperties !== undefined && typeof additionalProperties !== "boolean") { // omptype index signatures validate every string key, including declared // properties. JSON Schema `additionalProperties` validates only undeclared // keys, so preserve the whole document on this legacy raw-property path. diff --git a/packages/coding-agent/test/extensibility/custom-commands/ci-green.test.ts b/packages/coding-agent/test/extensibility/custom-commands/ci-green.test.ts index 6f5381191..7fc2e8739 100644 --- a/packages/coding-agent/test/extensibility/custom-commands/ci-green.test.ts +++ b/packages/coding-agent/test/extensibility/custom-commands/ci-green.test.ts @@ -22,11 +22,7 @@ function createApi(): CustomCommandAPI { killed: false, }), typebox: {} as unknown as typeof TypeBox, - arktype: Object.assign( - Function.prototype.bind.call(type, undefined) as typeof type, - type, - { type }, - ), + arktype: Object.assign(Function.prototype.bind.call(type, undefined) as typeof type, type, { type }), zod, pi: piCodingAgent, }; diff --git a/packages/coding-agent/test/extensibility/typebox-shim.test.ts b/packages/coding-agent/test/extensibility/typebox-shim.test.ts index 6b828a1bc..1e27773de 100644 --- a/packages/coding-agent/test/extensibility/typebox-shim.test.ts +++ b/packages/coding-agent/test/extensibility/typebox-shim.test.ts @@ -107,10 +107,7 @@ describe("pi.typebox compatibility shim", () => { }); it("applies schema-valued additionalProperties only to undeclared raw-object keys", () => { - const schema = Type.Object( - { known: { type: "number" } }, - { additionalProperties: { type: "string" } }, - ); + const schema = Type.Object({ known: { type: "number" } }, { additionalProperties: { type: "string" } }); expect(schema.safeParse({ known: 1, extra: "ok" }).success).toBe(true); expect(schema.safeParse({ known: "bad", extra: "ok" }).success).toBe(false); diff --git a/packages/tui/src/tui.ts b/packages/tui/src/tui.ts index aeb39c946..73c0fd98b 100644 --- a/packages/tui/src/tui.ts +++ b/packages/tui/src/tui.ts @@ -4315,11 +4315,7 @@ export class TUI extends Container { #osc66SpacerGlyphWidth(lines: readonly string[], index: number): number { if (index <= 0 || lines[index] !== "") return -1; let gap = 1; - while ( - gap < TUI.#OSC66_MAX_SPACER_ROWS && - index - gap > 0 && - lines[index - gap] === "" - ) { + while (gap < TUI.#OSC66_MAX_SPACER_ROWS && index - gap > 0 && lines[index - gap] === "") { gap++; } const above = lines[index - gap];