Skip to content

Commit 0e5ee25

Browse files
committed
fix(ci): drop unused 'capture' bind so biome's noUnusedVariables passes
Local biome was lenient on a destructured const that the test didn't read; CI's biome flagged it. Removed the bind and let biome reorder the imports it wanted reordered. Tests still 741/741.
1 parent 9e8f207 commit 0e5ee25

5 files changed

Lines changed: 8 additions & 11 deletions

File tree

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codebase-cli",
3-
"version": "2.0.0-pre.56",
3+
"version": "2.0.0-pre.57",
44
"description": "Codebase CLI — a TypeScript coding agent on the pi-mono runtime. OAuth-aware, any LLM provider, single install.",
55
"keywords": [
66
"ai",

src/app-server/server.test.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { PassThrough } from "node:stream";
2-
import { fauxAssistantMessage, registerFauxProvider } from "@earendil-works/pi-ai";
32
import type { Model } from "@earendil-works/pi-ai";
3+
import { fauxAssistantMessage, registerFauxProvider } from "@earendil-works/pi-ai";
44
import { afterEach, beforeEach, describe, expect, it } from "vitest";
55
import { runAppServer } from "./server.js";
66

@@ -149,10 +149,7 @@ describe("runAppServer", () => {
149149
const ack = await h.waitFor((m) => m.type === "response" && m.id === "p1");
150150
expect(ack.success).toBe(true);
151151
// Wait for agent_end on the event stream.
152-
await h.waitFor(
153-
(m) => m.type === "event" && (m.event as { type: string }).type === "agent_end",
154-
5000,
155-
);
152+
await h.waitFor((m) => m.type === "event" && (m.event as { type: string }).type === "agent_end", 5000);
156153
// Some message_end events should have fired with our faux content.
157154
const messageEnds = h.messages.filter(
158155
(m) => m.type === "event" && (m.event as { type: string }).type === "message_end",

src/headless/run.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { fauxAssistantMessage, registerFauxProvider } from "@earendil-works/pi-ai";
21
import type { Model } from "@earendil-works/pi-ai";
2+
import { fauxAssistantMessage, registerFauxProvider } from "@earendil-works/pi-ai";
33
import { afterEach, beforeEach, describe, expect, it } from "vitest";
44
import { buildJsonResult, runHeadless } from "./run.js";
55

@@ -148,7 +148,7 @@ describe("runHeadless", () => {
148148
// test confirms the headless wiring respects the returned result by
149149
// asserting the error pathway plumbing.
150150
faux.setResponses([fauxAssistantMessage("never runs")]);
151-
const { capture, write } = makeCapture();
151+
const { write } = makeCapture();
152152
const exitCode = await runHeadless({
153153
prompt: "hi",
154154
outputFormat: "text",

src/skills/local-loader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { readFileSync, readdirSync, statSync } from "node:fs";
1+
import { readdirSync, readFileSync, statSync } from "node:fs";
22
import { homedir } from "node:os";
33
import { join } from "node:path";
44
import type { AssetLoader } from "./loader.js";

0 commit comments

Comments
 (0)