mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 07:50:43 +00:00
fix: align latest main type drift
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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", () => ({
|
||||
|
||||
@@ -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(() =>
|
||||
|
||||
Reference in New Issue
Block a user