Skip to content

Commit f29ebcc

Browse files
committed
Fix task-tool test fixtures to match the current provider and inference-spec shapes
ProviderSettings now requires a models array and InferenceSpec now takes an order of legs rather than a flat provider/model pair; two task-tool tests still used the old fixture shapes, which tsc rejected and blocked every commit through the typecheck pre-commit hook. Claude-Session: https://claude.ai/code/session_01PiLfSXwRgDgMp5wC3SVAZn
1 parent 4f82ae6 commit f29ebcc

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/subagent/index.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -451,8 +451,8 @@ describe("createTaskTool", () => {
451451
let captured: RunSubAgentParams | undefined;
452452
const settings = {
453453
providers: {
454-
"clever-p": { baseURL: "http://clever", apiKey: "k" },
455-
"profile-p": { baseURL: "http://profile", apiKey: "k" },
454+
"clever-p": { baseURL: "http://clever", apiKey: "k", models: ["clever-model"] },
455+
"profile-p": { baseURL: "http://profile", apiKey: "k", models: ["profile-model", "pinned-model"] },
456456
},
457457
tiers: {
458458
clever: { provider: "clever-p", model: "clever-model" },
@@ -469,7 +469,7 @@ describe("createTaskTool", () => {
469469
{
470470
id: "deep",
471471
tier: "standard",
472-
inference: { provider: "profile-p", model: "pinned-model" },
472+
inference: { order: [{ provider: "profile-p", model: "pinned-model" }] },
473473
},
474474
],
475475
run: async (params) => {
@@ -492,7 +492,7 @@ describe("createTaskTool", () => {
492492
let captured: RunSubAgentParams | undefined;
493493
const settings = {
494494
providers: {
495-
"profile-p": { baseURL: "http://profile", apiKey: "k" },
495+
"profile-p": { baseURL: "http://profile", apiKey: "k", models: ["profile-model"] },
496496
},
497497
tiers: {
498498
standard: { provider: "profile-p", model: "profile-model" },

0 commit comments

Comments
 (0)