fix: align latest main type drift

This commit is contained in:
Peter Steinberger
2026-04-13 13:50:22 -07:00
parent 5b24009271
commit d4f556a052
3 changed files with 7 additions and 5 deletions

View File

@@ -811,7 +811,10 @@ export const dispatchTelegramMessage = async ({
: undefined,
onToolStart: statusReactionController
? async (payload) => {
await Promise.resolve(statusReactionController.setTool(payload.name ?? "tool"));
const toolName = payload.name?.trim();
if (toolName) {
await statusReactionController.setTool(toolName);
}
}
: undefined,
onCompactionStart: statusReactionController

View File

@@ -1,4 +1,5 @@
import { beforeEach, describe, expect, it, vi } from "vitest";
import type { LegacyConfigRule } from "../../config/legacy.shared.js";
const {
loadBundledChannelDoctorContractApiMock,
@@ -7,9 +8,7 @@ const {
} = vi.hoisted(() => ({
loadBundledChannelDoctorContractApiMock: vi.fn(),
getBootstrapChannelPluginMock: vi.fn(),
listPluginDoctorLegacyConfigRulesMock: vi.fn<() => Array<{ path: string[]; message: string }>>(
() => [],
),
listPluginDoctorLegacyConfigRulesMock: vi.fn((): LegacyConfigRule[] => []),
}));
vi.mock("./doctor-contract-api.js", () => ({

View File

@@ -17,7 +17,7 @@ const hasConfiguredSecretInputMock = vi.hoisted(() =>
if (typeof value === "string" && value.trim()) {
return true;
}
return resolveSecretInputRefMock(value as never)?.ref != null;
return resolveSecretInputRefMock(value)?.ref != null;
}),
);
const resolveGatewayAuthMock = vi.hoisted(() =>