|
6 | 6 | // properties (array items, object fields) as well as top-level ones. |
7 | 7 |
|
8 | 8 | import { afterEach, describe, expect, it } from "vitest"; |
9 | | -import { ALL_CAPABILITIES, connect, type Session } from "./harness.js"; |
| 9 | +import { |
| 10 | + ALL_CAPABILITIES, |
| 11 | + connect, |
| 12 | + connectModern, |
| 13 | + MODERN_CAPABILITIES, |
| 14 | + type Session, |
| 15 | +} from "./harness.js"; |
10 | 16 |
|
11 | 17 | /** A JSON Schema node, as much of it as the walk reads. */ |
12 | 18 | type SchemaNode = { |
@@ -56,10 +62,21 @@ afterEach(async () => { |
56 | 62 | session = undefined; |
57 | 63 | }); |
58 | 64 |
|
59 | | -describe("tool input descriptions (#3669)", () => { |
| 65 | +// Each era lists some tools the other does not (the task tools only on |
| 66 | +// 2026-07-28, the toggle-* tools only on the 2025 era), so both are checked. |
| 67 | +// Every capability is declared, so the tools gated on one are listed too. |
| 68 | +describe.each([ |
| 69 | + { |
| 70 | + era: "2025-era", |
| 71 | + open: () => connect({ capabilities: ALL_CAPABILITIES }), |
| 72 | + }, |
| 73 | + { |
| 74 | + era: "2026-07-28", |
| 75 | + open: () => connectModern({ capabilities: MODERN_CAPABILITIES }), |
| 76 | + }, |
| 77 | +])("tool input descriptions on the $era surface (#3669)", ({ open }) => { |
60 | 78 | it("describes every input property of every tool", async () => { |
61 | | - // Every capability, so the tools gated on one are listed too. |
62 | | - session = await connect({ capabilities: ALL_CAPABILITIES }); |
| 79 | + session = await open(); |
63 | 80 | const { tools } = await session.client.listTools(); |
64 | 81 | expect(tools.length).toBeGreaterThan(0); |
65 | 82 | const missing = tools.flatMap((tool) => |
|
0 commit comments