style: lint cleanup

This commit is contained in:
Peter Steinberger
2026-01-08 08:40:02 +01:00
parent 9a11325cc9
commit 1b2957d050
6 changed files with 35 additions and 31 deletions

View File

@@ -73,9 +73,11 @@ describe("agents_list", () => {
if (!tool) throw new Error("missing agents_list tool");
const result = await tool.execute("call2", {});
const agents = (result.details as {
agents?: Array<{ id: string }>;
}).agents;
const agents = (
result.details as {
agents?: Array<{ id: string }>;
}
).agents;
expect(agents?.map((agent) => agent.id)).toEqual(["main", "research"]);
});
@@ -111,9 +113,11 @@ describe("agents_list", () => {
expect(result.details).toMatchObject({
allowAny: true,
});
const agents = (result.details as {
agents?: Array<{ id: string }>;
}).agents;
const agents = (
result.details as {
agents?: Array<{ id: string }>;
}
).agents;
expect(agents?.map((agent) => agent.id)).toEqual([
"main",
"coder",
@@ -144,9 +148,11 @@ describe("agents_list", () => {
if (!tool) throw new Error("missing agents_list tool");
const result = await tool.execute("call4", {});
const agents = (result.details as {
agents?: Array<{ id: string; configured: boolean }>;
}).agents;
const agents = (
result.details as {
agents?: Array<{ id: string; configured: boolean }>;
}
).agents;
expect(agents?.map((agent) => agent.id)).toEqual(["main", "research"]);
const research = agents?.find((agent) => agent.id === "research");
expect(research?.configured).toBe(false);