Skip to content

Commit edd3b2f

Browse files
committed
fix lint errors
1 parent 43c60f9 commit edd3b2f

File tree

5 files changed

+10
-11
lines changed

5 files changed

+10
-11
lines changed

packages/cli/src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,9 @@ program
544544
await rm(lanceDbOldPath, { recursive: true, force: true });
545545
try {
546546
await rename(lanceDbPath, lanceDbOldPath);
547-
} catch {}
547+
} catch {
548+
// lanceDbPath may not exist on first run; safe to ignore
549+
}
548550
await rename(lanceDbTmpPath, lanceDbPath);
549551
await rm(lanceDbOldPath, { recursive: true, force: true }).catch(() => {});
550552

packages/core/src/manifest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ export function parseManifest(input: unknown): Manifest {
7777
} catch (err) {
7878
throw new Error(
7979
`Invalid taxonomy config: ${err instanceof Error ? err.message : String(err)}`,
80+
{ cause: err },
8081
);
8182
}
8283
}

packages/core/test/embedding.test.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ describe("embedding providers", () => {
6262
);
6363

6464
// Verify the text was actually truncated in the request
65-
const requestBody = JSON.parse((fetchMock.mock.calls[0]![1] as RequestInit).body as string) as {
65+
const requestBody = JSON.parse(
66+
(fetchMock.mock.calls[0]![1] as globalThis.RequestInit).body as string,
67+
) as {
6668
input: string[];
6769
};
6870
expect(requestBody.input[0]).toHaveLength(24_000);
@@ -294,11 +296,6 @@ describe("embedding providers", () => {
294296
// so two providers with the same config and inputs produce the same SHA.
295297
// We'll build the expected SHA by constructing a second provider.
296298
const { sha256hex } = await import("../src/embedding.js");
297-
const refProvider = new OpenAIEmbeddingProvider({
298-
apiKey: "test-key",
299-
dimensions: 2,
300-
batchApiThreshold: 2,
301-
});
302299
// Build the JSONL the provider would create (access via same logic)
303300
const expectedJsonl = [
304301
JSON.stringify({

packages/eval/src/agent/assertions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ async function evaluateFileContains(
108108
: `File "${assertion.path}" does not contain "${assertion.value}"`,
109109
};
110110
} catch (err) {
111-
const code = (err as NodeJS.ErrnoException).code;
111+
const code = (err as globalThis.NodeJS.ErrnoException).code;
112112
return {
113113
assertion,
114114
passed: false,
@@ -137,7 +137,7 @@ async function evaluateFileMatches(
137137
: `File "${assertion.path}" does not match /${assertion.pattern}/${assertion.flags ?? ""}`,
138138
};
139139
} catch (err) {
140-
const code = (err as NodeJS.ErrnoException).code;
140+
const code = (err as globalThis.NodeJS.ErrnoException).code;
141141
return {
142142
assertion,
143143
passed: false,

packages/eval/src/bin.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { fileURLToPath } from "node:url";
88
import { Command } from "commander";
99
import { ensureIndex } from "./agent/build-cache.js";
1010
import { loadPreviousResult, saveResult, generateTrendSummary } from "./agent/history.js";
11-
import { ConsoleObserver, NoopObserver } from "./agent/observer.js";
11+
import { ConsoleObserver } from "./agent/observer.js";
1212
import { ensureRepo } from "./agent/repo-cache.js";
1313
import { defaultModelForProvider, resolveAgentProvider } from "./agent/provider.js";
1414
import { runAgentEval } from "./agent/runner.js";
@@ -26,7 +26,6 @@ const __dirname = path.dirname(__filename);
2626
const EVAL_PKG_ROOT = path.resolve(__dirname, "..");
2727
const FIXTURES_DIR = path.join(EVAL_PKG_ROOT, "fixtures", "agent-scenarios");
2828
const CLI_BIN_PATH = path.resolve(EVAL_PKG_ROOT, "..", "cli", "dist", "index.js");
29-
const SERVER_BIN_PATH = path.resolve(EVAL_PKG_ROOT, "..", "server", "dist", "bin.js");
3029

3130
const program = new Command();
3231

0 commit comments

Comments
 (0)