fix: restore main ci and speed tests · openclaw/openclaw@b8c44bf
steipete
·
2026-04-28
·
via Recent Commits to openclaw:main
File tree
macos/Sources/OpenClawProtocol
shared/OpenClawKit/Sources/OpenClawProtocol
diagnostics-prometheus/src
| Original file line number | Diff line number | Diff line change |
|---|
@@ -3185,7 +3185,19 @@ public struct ModelChoice: Codable, Sendable {
|
3185 | 3185 | } |
3186 | 3186 | } |
3187 | 3187 | |
3188 | | -public struct ModelsListParams: Codable, Sendable {} |
| 3188 | +public struct ModelsListParams: Codable, Sendable { |
| 3189 | +public let view: AnyCodable? |
| 3190 | + |
| 3191 | +public init( |
| 3192 | + view: AnyCodable?) |
| 3193 | +{ |
| 3194 | +self.view = view |
| 3195 | +} |
| 3196 | + |
| 3197 | +private enum CodingKeys: String, CodingKey { |
| 3198 | +case view |
| 3199 | +} |
| 3200 | +} |
3189 | 3201 | |
3190 | 3202 | public struct ModelsListResult: Codable, Sendable { |
3191 | 3203 | public let models: [ModelChoice] |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -3185,7 +3185,19 @@ public struct ModelChoice: Codable, Sendable {
|
3185 | 3185 | } |
3186 | 3186 | } |
3187 | 3187 | |
3188 | | -public struct ModelsListParams: Codable, Sendable {} |
| 3188 | +public struct ModelsListParams: Codable, Sendable { |
| 3189 | +public let view: AnyCodable? |
| 3190 | + |
| 3191 | +public init( |
| 3192 | + view: AnyCodable?) |
| 3193 | +{ |
| 3194 | +self.view = view |
| 3195 | +} |
| 3196 | + |
| 3197 | +private enum CodingKeys: String, CodingKey { |
| 3198 | +case view |
| 3199 | +} |
| 3200 | +} |
3189 | 3201 | |
3190 | 3202 | public struct ModelsListResult: Codable, Sendable { |
3191 | 3203 | public let models: [ModelChoice] |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -5,7 +5,7 @@ import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
|
5 | 5 | import { type WebSocket, WebSocketServer } from "ws"; |
6 | 6 | import { SsrFBlockedError } from "../infra/net/ssrf.js"; |
7 | 7 | import { rawDataToString } from "../infra/ws.js"; |
8 | | -import "../../test-support/browser-security.mock.js"; |
| 8 | +import "../test-support/browser-security.mock.js"; |
9 | 9 | import { |
10 | 10 | isDirectCdpWebSocketEndpoint, |
11 | 11 | isWebSocketUrl, |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; |
2 | | -import "../../test-support/browser-security.mock.js"; |
| 2 | +import "../test-support/browser-security.mock.js"; |
3 | 3 | import type { OpenClawConfig } from "../config/config.js"; |
4 | 4 | import type { BrowserDispatchResponse } from "./routes/dispatcher.js"; |
5 | 5 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import { chromium } from "playwright-core"; |
2 | 2 | import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; |
3 | 3 | import { SsrFBlockedError } from "../infra/net/ssrf.js"; |
4 | | -import "../../test-support/browser-security.mock.js"; |
| 4 | +import "../test-support/browser-security.mock.js"; |
5 | 5 | import * as chromeModule from "./chrome.js"; |
6 | 6 | import { BrowserTabNotFoundError } from "./errors.js"; |
7 | 7 | import { InvalidBrowserNavigationUrlError } from "./navigation-guard.js"; |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; |
2 | 2 | import { SsrFBlockedError } from "../infra/net/ssrf.js"; |
3 | | -import "../../test-support/browser-security.mock.js"; |
| 3 | +import "../test-support/browser-security.mock.js"; |
4 | 4 | import { InvalidBrowserNavigationUrlError } from "./navigation-guard.js"; |
5 | 5 | import { |
6 | 6 | getPwToolsCoreSessionMocks, |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import fs from "node:fs"; |
2 | 2 | import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; |
3 | | -import "../../test-support/browser-security.mock.js"; |
| 3 | +import "../test-support/browser-security.mock.js"; |
4 | 4 | import type { BrowserServerState } from "./server-context.js"; |
5 | 5 | |
6 | 6 | const chromeMcpMock = vi.hoisted(() => ({ |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -3,12 +3,12 @@ import { normalizeOptionalLowercaseString } from "openclaw/plugin-sdk/text-runti
|
3 | 3 | export { |
4 | 4 | getRuntimeConfig, |
5 | 5 | getRuntimeConfigSnapshot, |
6 | | - replaceConfigFile, |
7 | | -} from "openclaw/plugin-sdk/config-runtime"; |
8 | | -export type { |
9 | | -BrowserConfig, |
10 | | -BrowserProfileConfig, |
11 | | -OpenClawConfig, |
| 6 | +} from "openclaw/plugin-sdk/runtime-config-snapshot"; |
| 7 | +export { replaceConfigFile } from "openclaw/plugin-sdk/config-mutation"; |
| 8 | +export { |
| 9 | +type BrowserConfig, |
| 10 | +type BrowserProfileConfig, |
| 11 | +type OpenClawConfig, |
12 | 12 | } from "openclaw/plugin-sdk/config-types"; |
13 | 13 | export { |
14 | 14 | normalizePluginsConfig, |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import { vi } from "vitest"; |
2 | 2 | |
3 | | -vi.mock("../src/sdk-security-runtime.js", async () => { |
4 | | -const actual = await vi.importActual<typeof import("../src/sdk-security-runtime.js")>( |
5 | | -"../src/sdk-security-runtime.js", |
| 3 | +vi.mock("../sdk-security-runtime.js", async () => { |
| 4 | +const actual = await vi.importActual<typeof import("../sdk-security-runtime.js")>( |
| 5 | +"../sdk-security-runtime.js", |
6 | 6 | ); |
7 | 7 | const lookupFn = async (_hostname: string, options?: { all?: boolean }) => { |
8 | 8 | const result = { address: "93.184.216.34", family: 4 }; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -599,6 +599,9 @@ function recordDiagnosticEvent(
|
599 | 599 | }, |
600 | 600 | ); |
601 | 601 | return; |
| 602 | +case "diagnostic.heartbeat": |
| 603 | +case "diagnostic.liveness.warning": |
| 604 | +return; |
602 | 605 | case "telemetry.exporter": |
603 | 606 | store.counter("openclaw_telemetry_exporter_total", "Telemetry exporter lifecycle events.", { |
604 | 607 | exporter: lowCardinalityLabel(evt.exporter), |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。