mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-19 06:57:26 +00:00
fix(tsgo): unblock baseline type errors (#31873)
This commit is contained in:
@@ -136,6 +136,7 @@ async function processMessage(
|
|||||||
}
|
}
|
||||||
|
|
||||||
const isGroup = message.isGroup;
|
const isGroup = message.isGroup;
|
||||||
|
const chatId = message.threadId;
|
||||||
const senderId = message.senderId?.trim();
|
const senderId = message.senderId?.trim();
|
||||||
if (!senderId) {
|
if (!senderId) {
|
||||||
logVerbose(core, runtime, `zalouser: drop message ${chatId} (missing senderId)`);
|
logVerbose(core, runtime, `zalouser: drop message ${chatId} (missing senderId)`);
|
||||||
@@ -143,7 +144,6 @@ async function processMessage(
|
|||||||
}
|
}
|
||||||
const senderName = message.senderName ?? "";
|
const senderName = message.senderName ?? "";
|
||||||
const groupName = message.groupName ?? "";
|
const groupName = message.groupName ?? "";
|
||||||
const chatId = message.threadId;
|
|
||||||
|
|
||||||
const defaultGroupPolicy = resolveDefaultGroupPolicy(config);
|
const defaultGroupPolicy = resolveDefaultGroupPolicy(config);
|
||||||
const { groupPolicy, providerMissingFallbackApplied } = resolveOpenProviderRuntimeGroupPolicy({
|
const { groupPolicy, providerMissingFallbackApplied } = resolveOpenProviderRuntimeGroupPolicy({
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import { beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
|
import { beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
|
||||||
|
import type { RuntimeEnv } from "../../runtime.js";
|
||||||
|
|
||||||
const loadAndMaybeMigrateDoctorConfigMock = vi.hoisted(() => vi.fn());
|
const loadAndMaybeMigrateDoctorConfigMock = vi.hoisted(() => vi.fn());
|
||||||
const readConfigFileSnapshotMock = vi.hoisted(() => vi.fn());
|
const readConfigFileSnapshotMock = vi.hoisted(() => vi.fn());
|
||||||
@@ -44,8 +45,8 @@ async function withCapturedStdout(run: () => Promise<void>): Promise<string> {
|
|||||||
|
|
||||||
describe("ensureConfigReady", () => {
|
describe("ensureConfigReady", () => {
|
||||||
let ensureConfigReady: (params: {
|
let ensureConfigReady: (params: {
|
||||||
runtime: unknown;
|
runtime: RuntimeEnv;
|
||||||
commandPath: string[];
|
commandPath?: string[];
|
||||||
suppressDoctorStdout?: boolean;
|
suppressDoctorStdout?: boolean;
|
||||||
}) => Promise<void>;
|
}) => Promise<void>;
|
||||||
let resetConfigGuardStateForTests: () => void;
|
let resetConfigGuardStateForTests: () => void;
|
||||||
|
|||||||
Reference in New Issue
Block a user