Skip to content

Commit f89726d

Browse files
committed
Fix checks
1 parent 298ad10 commit f89726d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

scripts/generate/generateToolDocumentation.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { readFileSync, writeFileSync } from "fs";
99
import { join, dirname } from "path";
1010
import { fileURLToPath } from "url";
1111
import { AllTools } from "../../src/tools/index.js";
12+
import { UIRegistry } from "../../src/ui/registry/index.js";
1213

1314
const __filename = fileURLToPath(import.meta.url);
1415
const __dirname = dirname(__filename);
@@ -53,6 +54,7 @@ function extractToolInformation(): ToolInfo[] {
5354
elicitation: {
5455
requestConfirmation: () => Promise.resolve(false),
5556
} as never,
57+
uiRegistry: new UIRegistry(),
5658
};
5759

5860
try {

tests/unit/toolBase.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import type { Server } from "../../src/server.js";
1515
import type { TelemetryToolMetadata, ToolEvent } from "../../src/telemetry/types.js";
1616
import { expectDefined } from "../integration/helpers.js";
1717
import type { PreviewFeature } from "../../src/common/schemas.js";
18+
import { UIRegistry } from "../../src/ui/registry/index.js";
1819

1920
describe("ToolBase", () => {
2021
let mockSession: Session;
@@ -60,6 +61,7 @@ describe("ToolBase", () => {
6061
config: mockConfig,
6162
telemetry: mockTelemetry,
6263
elicitation: mockElicitation,
64+
uiRegistry: new UIRegistry(),
6365
};
6466

6567
testTool = new TestTool(constructorParams);

0 commit comments

Comments
 (0)