mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 12:30:44 +00:00
fix(ci): repair main typecheck after merges
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import type { NormalizedModelCatalogRow } from "../model-catalog/index.js";
|
||||
import type { RuntimeEnv } from "../runtime.js";
|
||||
import type { WizardPrompter } from "../wizard/prompts.js";
|
||||
|
||||
@@ -10,7 +11,7 @@ const mocks = vi.hoisted(() => ({
|
||||
promptCustomApiConfig: vi.fn(),
|
||||
resolvePluginProviders: vi.fn(() => []),
|
||||
resolveProviderPluginChoice: vi.fn<() => unknown>(() => null),
|
||||
loadStaticManifestCatalogRowsForList: vi.fn(() => []),
|
||||
loadStaticManifestCatalogRowsForList: vi.fn<() => readonly NormalizedModelCatalogRow[]>(() => []),
|
||||
resolvePreferredProviderForAuthChoice: vi.fn<() => Promise<string | undefined>>(
|
||||
async () => undefined,
|
||||
),
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import type { OpenClawConfig } from "../config/config.js";
|
||||
import type { NormalizedModelCatalogRow } from "../model-catalog/index.js";
|
||||
import {
|
||||
applyModelAllowlist,
|
||||
applyModelFallbacksFromSelection,
|
||||
@@ -13,7 +14,9 @@ vi.mock("../agents/model-catalog.js", () => ({
|
||||
loadModelCatalog,
|
||||
}));
|
||||
|
||||
const loadStaticManifestCatalogRowsForList = vi.hoisted(() => vi.fn(() => []));
|
||||
const loadStaticManifestCatalogRowsForList = vi.hoisted(() =>
|
||||
vi.fn<() => readonly NormalizedModelCatalogRow[]>(() => []),
|
||||
);
|
||||
vi.mock("./models/list.manifest-catalog.js", () => ({
|
||||
loadStaticManifestCatalogRowsForList,
|
||||
}));
|
||||
|
||||
@@ -228,7 +228,7 @@ export function createEventHandlers(context: EventHandlerContext) {
|
||||
const activeRunId = state.activeChatRunId;
|
||||
if (!activeRunId) {
|
||||
reconnectPendingRunId = null;
|
||||
clearStaleStreamingRunIfNoTrackedRunRemains();
|
||||
clearStaleStreamingIfNoTrackedRunRemains();
|
||||
return;
|
||||
}
|
||||
if (!sessionRuns.has(activeRunId)) {
|
||||
|
||||
Reference in New Issue
Block a user