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

推荐订阅源

B
Blog
Hugging Face - Blog
Hugging Face - Blog
月光博客
月光博客
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
人人都是产品经理
人人都是产品经理
博客园 - Franky
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
P
Proofpoint News Feed
F
Fortinet All Blogs
H
Help Net Security
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
Visual Studio Blog
Jina AI
Jina AI
J
Java Code Geeks
Blog — PlanetScale
Blog — PlanetScale
S
SegmentFault 最新的问题
D
DataBreaches.Net
T
The Blog of Author Tim Ferriss
美团技术团队
博客园 - 司徒正美
宝玉的分享
宝玉的分享
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Apple Machine Learning Research
Apple Machine Learning Research

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
refactor(plugins): remove extension jiti test hooks · ope...
steipete · 2026-05-02 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -21,7 +21,7 @@ describe("thread binding manager state", () => {

2121

});

2222
2323

it("shares managers between ESM and alternate-loaded module instances", async () => {

24-

const viaJiti = await loadThreadBindingsViaAlternateLoader();

24+

const viaAlternateLoader = await loadThreadBindingsViaAlternateLoader();

2525
2626

createThreadBindingManager({

2727

cfg: EMPTY_DISCORD_TEST_CONFIG,

@@ -31,6 +31,6 @@ describe("thread binding manager state", () => {

3131

});

3232
3333

expect(getThreadBindingManager("work")).not.toBeNull();

34-

expect(viaJiti.getThreadBindingManager("work")).not.toBeNull();

34+

expect(viaAlternateLoader.getThreadBindingManager("work")).not.toBeNull();

3535

});

3636

});

Original file line numberDiff line numberDiff line change

@@ -32,8 +32,9 @@ type ThreadBindingsGlobalState = {

3232

lastPersistedAtMs: number;

3333

};

3434
35-

// Plugin hooks can load this module via Jiti while core imports it via ESM.

36-

// Store mutable state on globalThis so both loader paths share one registry.

35+

// Plugin hooks can load this module through a separate runtime path while core

36+

// imports it via ESM. Store mutable state on globalThis so both paths share one

37+

// registry.

3738

const THREAD_BINDINGS_STATE_KEY = Symbol.for("openclaw.discordThreadBindingsState");

3839

let threadBindingsState: ThreadBindingsGlobalState | undefined;

3940
Original file line numberDiff line numberDiff line change

@@ -192,7 +192,7 @@ collapsed here.

192192

### Fixes

193193
194194

- Plugins/bundled runtimes: ship bundled plugin runtime sidecars like WhatsApp `light-runtime-api.js`, Matrix `runtime-api.js`, and other plugin runtime entry files in the npm package again, so global installs stop failing on missing bundled plugin runtime surfaces.

195-

- Plugins/Matrix: avoid duplicate `resolveMatrixAccountStringValues` runtime-api exports under Jiti so bundled Matrix installs no longer crash at startup with `Cannot redefine property: resolveMatrixAccountStringValues`. Fixes #52909 and #52891. Thanks @vincentkoc.

195+

- Plugins/Matrix: avoid duplicate `resolveMatrixAccountStringValues` runtime-api exports under source loaders so bundled Matrix installs no longer crash at startup with `Cannot redefine property: resolveMatrixAccountStringValues`. Fixes #52909 and #52891. Thanks @vincentkoc.

196196
197197

## 2026.3.22

198198
Original file line numberDiff line numberDiff line change

@@ -123,16 +123,11 @@ it("loads the packaged runtime wrapper without recursing through the stable root

123123

);

124124

}, 240_000);

125125
126-

it("does not use Jiti when only a TypeScript Matrix runtime shim exists", async () => {

126+

it("does not load when only a TypeScript Matrix runtime shim exists", async () => {

127127

const fixtureRoot = makeFixtureRoot(".tmp-matrix-runtime-ts-only-");

128128
129129

writeOpenClawPackageFixture(fixtureRoot);

130130

writeSourceRuntimeWrapperFixture(fixtureRoot, { runtimeExtension: ".ts" });

131-

writeFixtureFile(

132-

fixtureRoot,

133-

"node_modules/jiti/index.js",

134-

"throw new Error('matrix wrapper must not require jiti');\n",

135-

);

136131
137132

await expect(

138133

importFixtureModule(fixtureRoot, "extensions/matrix/src/plugin-entry.runtime.js"),

Original file line numberDiff line numberDiff line change

@@ -1,19 +1,17 @@

1-

import path from "node:path";

2-

import { loadRuntimeApiExportTypesViaJiti } from "openclaw/plugin-sdk/plugin-test-contracts";

1+

import { runDirectImportSmoke } from "openclaw/plugin-sdk/plugin-test-contracts";

32

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

43
54

describe("zalo runtime api", () => {

6-

it("loads the narrow runtime api without reentering setup surfaces", () => {

7-

const runtimeApiPath = path.join(process.cwd(), "extensions", "zalo", "runtime-api.ts");

5+

it("loads the narrow runtime api without reentering setup surfaces", async () => {

6+

const stdout = await runDirectImportSmoke(

7+

`const runtime = await import("./extensions/zalo/runtime-api.ts");

8+

process.stdout.write(JSON.stringify({

9+

hasZaloPlugin: Object.hasOwn(runtime, "zaloPlugin"),

10+

hasZaloSetupWizard: Object.hasOwn(runtime, "zaloSetupWizard"),

11+

type: typeof runtime.setZaloRuntime,

12+

}));`,

13+

);

814
9-

expect(

10-

loadRuntimeApiExportTypesViaJiti({

11-

modulePath: runtimeApiPath,

12-

exportNames: ["setZaloRuntime"],

13-

realPluginSdkSpecifiers: ["openclaw/plugin-sdk/runtime-store"],

14-

}),

15-

).toEqual({

16-

setZaloRuntime: "function",

17-

});

18-

});

15+

expect(stdout).toBe('{"hasZaloPlugin":false,"hasZaloSetupWizard":false,"type":"function"}');

16+

}, 45_000);

1917

});

Original file line numberDiff line numberDiff line change

@@ -100,7 +100,6 @@ const RETIRED_EXTENSION_TEST_HELPER_BRIDGE_FILES = [

100100

"test/helpers/plugins/contracts-testkit.ts",

101101

"test/helpers/plugins/direct-smoke.ts",

102102

"test/helpers/plugins/directory.ts",

103-

"test/helpers/plugins/jiti-runtime-api.ts",

104103

"test/helpers/plugins/onboard-config.ts",

105104

"test/helpers/plugins/outbound-delivery.ts",

106105

"test/helpers/plugins/package-manifest-contract.ts",

Original file line numberDiff line numberDiff line change

@@ -8,7 +8,6 @@ export {

88

uniqueSortedStrings,

99

} from "./test-helpers/contracts-testkit.js";

1010

export { runDirectImportSmoke } from "./test-helpers/direct-smoke.js";

11-

export { loadRuntimeApiExportTypesViaJiti } from "./test-helpers/jiti-runtime-api.js";

1211

export { describePackageManifestContract } from "./test-helpers/package-manifest-contract.js";

1312

export { pluginRegistrationContractCases } from "./test-helpers/plugin-registration-contract-cases.js";

1413

export { describePluginRegistrationContract } from "./test-helpers/plugin-registration-contract.js";