mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-06 15:18:58 +00:00
fix: restore main ci and speed tests
This commit is contained in:
@@ -3185,7 +3185,19 @@ public struct ModelChoice: Codable, Sendable {
|
||||
}
|
||||
}
|
||||
|
||||
public struct ModelsListParams: Codable, Sendable {}
|
||||
public struct ModelsListParams: Codable, Sendable {
|
||||
public let view: AnyCodable?
|
||||
|
||||
public init(
|
||||
view: AnyCodable?)
|
||||
{
|
||||
self.view = view
|
||||
}
|
||||
|
||||
private enum CodingKeys: String, CodingKey {
|
||||
case view
|
||||
}
|
||||
}
|
||||
|
||||
public struct ModelsListResult: Codable, Sendable {
|
||||
public let models: [ModelChoice]
|
||||
|
||||
@@ -3185,7 +3185,19 @@ public struct ModelChoice: Codable, Sendable {
|
||||
}
|
||||
}
|
||||
|
||||
public struct ModelsListParams: Codable, Sendable {}
|
||||
public struct ModelsListParams: Codable, Sendable {
|
||||
public let view: AnyCodable?
|
||||
|
||||
public init(
|
||||
view: AnyCodable?)
|
||||
{
|
||||
self.view = view
|
||||
}
|
||||
|
||||
private enum CodingKeys: String, CodingKey {
|
||||
case view
|
||||
}
|
||||
}
|
||||
|
||||
public struct ModelsListResult: Codable, Sendable {
|
||||
public let models: [ModelChoice]
|
||||
|
||||
@@ -5,7 +5,7 @@ import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import { type WebSocket, WebSocketServer } from "ws";
|
||||
import { SsrFBlockedError } from "../infra/net/ssrf.js";
|
||||
import { rawDataToString } from "../infra/ws.js";
|
||||
import "../../test-support/browser-security.mock.js";
|
||||
import "../test-support/browser-security.mock.js";
|
||||
import {
|
||||
isDirectCdpWebSocketEndpoint,
|
||||
isWebSocketUrl,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import "../../test-support/browser-security.mock.js";
|
||||
import "../test-support/browser-security.mock.js";
|
||||
import type { OpenClawConfig } from "../config/config.js";
|
||||
import type { BrowserDispatchResponse } from "./routes/dispatcher.js";
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { chromium } from "playwright-core";
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import { SsrFBlockedError } from "../infra/net/ssrf.js";
|
||||
import "../../test-support/browser-security.mock.js";
|
||||
import "../test-support/browser-security.mock.js";
|
||||
import * as chromeModule from "./chrome.js";
|
||||
import { BrowserTabNotFoundError } from "./errors.js";
|
||||
import { InvalidBrowserNavigationUrlError } from "./navigation-guard.js";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import { SsrFBlockedError } from "../infra/net/ssrf.js";
|
||||
import "../../test-support/browser-security.mock.js";
|
||||
import "../test-support/browser-security.mock.js";
|
||||
import { InvalidBrowserNavigationUrlError } from "./navigation-guard.js";
|
||||
import {
|
||||
getPwToolsCoreSessionMocks,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import fs from "node:fs";
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import "../../test-support/browser-security.mock.js";
|
||||
import "../test-support/browser-security.mock.js";
|
||||
import type { BrowserServerState } from "./server-context.js";
|
||||
|
||||
const chromeMcpMock = vi.hoisted(() => ({
|
||||
|
||||
@@ -3,12 +3,12 @@ import { normalizeOptionalLowercaseString } from "openclaw/plugin-sdk/text-runti
|
||||
export {
|
||||
getRuntimeConfig,
|
||||
getRuntimeConfigSnapshot,
|
||||
replaceConfigFile,
|
||||
} from "openclaw/plugin-sdk/config-runtime";
|
||||
export type {
|
||||
BrowserConfig,
|
||||
BrowserProfileConfig,
|
||||
OpenClawConfig,
|
||||
} from "openclaw/plugin-sdk/runtime-config-snapshot";
|
||||
export { replaceConfigFile } from "openclaw/plugin-sdk/config-mutation";
|
||||
export {
|
||||
type BrowserConfig,
|
||||
type BrowserProfileConfig,
|
||||
type OpenClawConfig,
|
||||
} from "openclaw/plugin-sdk/config-types";
|
||||
export {
|
||||
normalizePluginsConfig,
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { vi } from "vitest";
|
||||
|
||||
vi.mock("../src/sdk-security-runtime.js", async () => {
|
||||
const actual = await vi.importActual<typeof import("../src/sdk-security-runtime.js")>(
|
||||
"../src/sdk-security-runtime.js",
|
||||
vi.mock("../sdk-security-runtime.js", async () => {
|
||||
const actual = await vi.importActual<typeof import("../sdk-security-runtime.js")>(
|
||||
"../sdk-security-runtime.js",
|
||||
);
|
||||
const lookupFn = async (_hostname: string, options?: { all?: boolean }) => {
|
||||
const result = { address: "93.184.216.34", family: 4 };
|
||||
@@ -599,6 +599,9 @@ function recordDiagnosticEvent(
|
||||
},
|
||||
);
|
||||
return;
|
||||
case "diagnostic.heartbeat":
|
||||
case "diagnostic.liveness.warning":
|
||||
return;
|
||||
case "telemetry.exporter":
|
||||
store.counter("openclaw_telemetry_exporter_total", "Telemetry exporter lifecycle events.", {
|
||||
exporter: lowCardinalityLabel(evt.exporter),
|
||||
|
||||
@@ -79,6 +79,8 @@ export const forcedUnitFastTestFiles = [
|
||||
"src/crestodian/rescue-message.test.ts",
|
||||
"src/crestodian/tui-backend.test.ts",
|
||||
"src/flows/channel-setup.test.ts",
|
||||
"src/flows/channel-setup.status.test.ts",
|
||||
"src/flows/provider-flow.test.ts",
|
||||
"src/context-engine/context-engine.test.ts",
|
||||
"src/canvas-host/server.state-dir.test.ts",
|
||||
"src/docs/clawhub-plugin-docs.test.ts",
|
||||
@@ -89,6 +91,7 @@ export const forcedUnitFastTestFiles = [
|
||||
"src/entry.compile-cache.test.ts",
|
||||
"src/entry.test.ts",
|
||||
"src/i18n/registry.test.ts",
|
||||
"src/image-generation/openai-compatible-image-provider.test.ts",
|
||||
"src/install-sh-version.test.ts",
|
||||
"src/logger.test.ts",
|
||||
"src/library.test.ts",
|
||||
@@ -101,8 +104,10 @@ export const forcedUnitFastTestFiles = [
|
||||
"src/memory-host-sdk/host/session-files.test.ts",
|
||||
"src/music-generation/runtime.test.ts",
|
||||
"src/mcp/channel-server.shutdown-unhandled-rejection.test.ts",
|
||||
"src/node-host/runner.credentials.test.ts",
|
||||
"src/node-host/invoke-system-run-plan.test.ts",
|
||||
"src/node-host/invoke-system-run.test.ts",
|
||||
"src/pairing/pairing-challenge.test.ts",
|
||||
"src/pairing/allow-from-store-read.test.ts",
|
||||
"src/pairing/pairing-store.test.ts",
|
||||
"src/pairing/setup-code.test.ts",
|
||||
@@ -110,7 +115,12 @@ export const forcedUnitFastTestFiles = [
|
||||
"src/plugin-sdk/memory-host-events.test.ts",
|
||||
"src/proxy-capture/runtime.test.ts",
|
||||
"src/proxy-capture/store.sqlite.test.ts",
|
||||
"src/realtime-voice/agent-consult-runtime.test.ts",
|
||||
"src/realtime-voice/session-runtime.test.ts",
|
||||
"src/security/audit-channel-dm-policy.test.ts",
|
||||
"src/security/audit-exec-surface.test.ts",
|
||||
"src/security/audit-extra.sync.test.ts",
|
||||
"src/security/audit-gateway-exposure.test.ts",
|
||||
"src/security/audit-extra.async.test.ts",
|
||||
"src/security/audit-trust-model.test.ts",
|
||||
"src/security/dm-policy-shared.test.ts",
|
||||
|
||||
Reference in New Issue
Block a user