惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 【当耐特】
云风的 BLOG
云风的 BLOG
罗磊的独立博客
C
Check Point Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Blog — PlanetScale
Blog — PlanetScale
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
月光博客
月光博客
大猫的无限游戏
大猫的无限游戏
Google DeepMind News
Google DeepMind News
Engineering at Meta
Engineering at Meta
N
Netflix TechBlog - Medium
宝玉的分享
宝玉的分享
Recent Announcements
Recent Announcements
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园_首页
J
Java Code Geeks
Apple Machine Learning Research
Apple Machine Learning Research
人人都是产品经理
人人都是产品经理
爱范儿
爱范儿
I
InfoQ
Hugging Face - Blog
Hugging Face - Blog
T
Tailwind CSS Blog
B
Blog RSS Feed

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
test: use narrow config sdk imports · openclaw/openclaw@2...
steipete · 2026-04-28 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -1,6 +1,6 @@

11

import { readFileSync } from "node:fs";

22

import { resolve } from "node:path";

3-

import type { OpenClawConfig } from "openclaw/plugin-sdk/config-runtime";

3+

import type { OpenClawConfig } from "openclaw/plugin-sdk/config-types";

44

import type { PluginRuntime } from "openclaw/plugin-sdk/core";

55

import { buildPluginApi } from "openclaw/plugin-sdk/testing";

66

import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";

Original file line numberDiff line numberDiff line change

@@ -1,7 +1,10 @@

11

import fs from "node:fs/promises";

22

import net from "node:net";

33

import path from "node:path";

4-

import { clearConfigCache, clearRuntimeConfigSnapshot } from "openclaw/plugin-sdk/config-runtime";

4+

import {

5+

clearConfigCache,

6+

clearRuntimeConfigSnapshot,

7+

} from "openclaw/plugin-sdk/runtime-config-snapshot";

58

import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";

69

import { createTempHomeEnv } from "../../test-support.js";

710

import { stopBrowserControlService } from "../control-service.js";

Original file line numberDiff line numberDiff line change

@@ -1,5 +1,6 @@

11

import { resolveOpenClawAgentDir } from "openclaw/plugin-sdk/agent-runtime";

2-

import { loadConfig } from "openclaw/plugin-sdk/config-runtime";

2+

import type { OpenClawConfig } from "openclaw/plugin-sdk/config-types";

3+

import { getRuntimeConfig } from "openclaw/plugin-sdk/runtime-config-snapshot";

34

import { isLiveTestEnabled } from "openclaw/plugin-sdk/testing";

45

import { beforeAll, describe, expect, it } from "vitest";

56

import { createTestPluginApi } from "../../test/helpers/plugins/plugin-api.js";

@@ -31,7 +32,7 @@ function withPluginsEnabled<T>(cfg: T): T {

3132

}

3233
3334

describeLive("comfy live", () => {

34-

let cfg = {} as ReturnType<typeof loadConfig>;

35+

let cfg = {} as OpenClawConfig;

3536

let agentDir = "";

3637

const imageProviders: Array<{ id: string; generateImage: Function; isConfigured?: Function }> =

3738

[];

@@ -40,7 +41,7 @@ describeLive("comfy live", () => {

4041

[];

4142
4243

beforeAll(async () => {

43-

cfg = withPluginsEnabled(loadConfig());

44+

cfg = withPluginsEnabled(getRuntimeConfig());

4445

agentDir = resolveOpenClawAgentDir();

4546

plugin.register(

4647

createTestPluginApi({

Original file line numberDiff line numberDiff line change

@@ -1,5 +1,5 @@

11

import http from "node:http";

2-

import type { OpenClawConfig } from "openclaw/plugin-sdk/config-runtime";

2+

import type { OpenClawConfig } from "openclaw/plugin-sdk/config-types";

33

import { fetch as undiciFetch } from "undici";

44

import { beforeEach, describe, expect, it, vi } from "vitest";

55

import { createDiscordRestClient } from "./client.js";

Original file line numberDiff line numberDiff line change

@@ -1,4 +1,4 @@

1-

import type { OpenClawConfig } from "openclaw/plugin-sdk/config-runtime";

1+

import type { OpenClawConfig } from "openclaw/plugin-sdk/config-types";

22

import { beforeEach, describe, expect, it, vi } from "vitest";

33

import { sendWebhookMessageDiscord } from "./send.outbound.js";

44
Original file line numberDiff line numberDiff line change

@@ -1,4 +1,4 @@

1-

import type { OpenClawConfig } from "openclaw/plugin-sdk/config-runtime";

1+

import type { OpenClawConfig } from "openclaw/plugin-sdk/config-types";

22

import { withEnv } from "openclaw/plugin-sdk/testing";

33

import { describe, expect, it } from "vitest";

44

import { __testing, createGeminiWebSearchProvider } from "./src/gemini-web-search-provider.js";

Original file line numberDiff line numberDiff line change

@@ -3,18 +3,10 @@ import { beforeEach, describe, expect, it, vi } from "vitest";

33

import { createTestPluginApi } from "../../test/helpers/plugins/plugin-api.js";

44
55

const mocks = vi.hoisted(() => ({

6-

loadConfig: vi.fn(() => {

7-

throw new Error("loadConfig should not be called during CLI metadata registration");

8-

}),

96

registerWikiCli: vi.fn(),

107

resolveMemoryWikiConfig: vi.fn(),

118

}));

129
13-

vi.mock("openclaw/plugin-sdk/config-runtime", () => ({

14-

getRuntimeConfig: mocks.loadConfig,

15-

loadConfig: mocks.loadConfig,

16-

}));

17-
1810

vi.mock("./src/cli.js", () => ({

1911

registerWikiCli: mocks.registerWikiCli,

2012

}));

@@ -66,7 +58,6 @@ describe("memory-wiki cli metadata entry", () => {

6658

logger: api.logger,

6759

});

6860
69-

expect(mocks.loadConfig).not.toHaveBeenCalled();

7061

expect(mocks.resolveMemoryWikiConfig).toHaveBeenCalledWith(

7162

appConfig.plugins.entries["memory-wiki"].config,

7263

);

Original file line numberDiff line numberDiff line change

@@ -2,7 +2,8 @@ import {

22

resolveApiKeyForProvider,

33

resolveOpenClawAgentDir,

44

} from "openclaw/plugin-sdk/agent-runtime";

5-

import { loadConfig, type OpenClawConfig } from "openclaw/plugin-sdk/config-runtime";

5+

import type { OpenClawConfig } from "openclaw/plugin-sdk/config-types";

6+

import { getRuntimeConfig } from "openclaw/plugin-sdk/runtime-config-snapshot";

67

import {

78

DEFAULT_LIVE_MUSIC_MODELS,

89

collectProviderApiKeys,

@@ -132,7 +133,7 @@ describeLive("music generation provider live", () => {

132133

it(

133134

"covers generate plus declared edit paths with shell/profile auth",

134135

async () => {

135-

const cfg = withPluginsEnabled(loadConfig());

136+

const cfg = withPluginsEnabled(getRuntimeConfig());

136137

const configuredModels = resolveConfiguredLiveMusicModels(cfg);

137138

const agentDir = resolveOpenClawAgentDir();

138139

const attempted: string[] = [];

Original file line numberDiff line numberDiff line change

@@ -2,7 +2,8 @@ import {

22

resolveApiKeyForProvider,

33

resolveOpenClawAgentDir,

44

} from "openclaw/plugin-sdk/agent-runtime";

5-

import { loadConfig, type OpenClawConfig } from "openclaw/plugin-sdk/config-runtime";

5+

import type { OpenClawConfig } from "openclaw/plugin-sdk/config-types";

6+

import { getRuntimeConfig } from "openclaw/plugin-sdk/runtime-config-snapshot";

67

import {

78

DEFAULT_LIVE_VIDEO_MODELS,

89

canRunBufferBackedImageToVideoLiveLane,

@@ -326,7 +327,7 @@ function resolveLiveSmokeDurationSeconds(params: {

326327

}

327328
328329

async function runLiveVideoProviderCase(testCase: LiveProviderCase): Promise<void> {

329-

const cfg = withPluginsEnabled(loadConfig());

330+

const cfg = withPluginsEnabled(getRuntimeConfig());

330331

const configuredModels = resolveConfiguredLiveVideoModels(cfg);

331332

const agentDir = resolveOpenClawAgentDir();

332333

const attempted: string[] = [];

Original file line numberDiff line numberDiff line change

@@ -3,5 +3,9 @@ export {

33

getRuntimeConfigSnapshot,

44

setRuntimeConfigSnapshot,

55

} from "../config/runtime-snapshot.js";

6-

export { getRuntimeConfig, getRuntimeConfigSourceSnapshot } from "../config/io.js";

6+

export {

7+

clearConfigCache,

8+

getRuntimeConfig,

9+

getRuntimeConfigSourceSnapshot,

10+

} from "../config/io.js";

711

export type { OpenClawConfig } from "../config/types.js";