fix(release): stabilize beta validation after rebase · openclaw/openclaw@609d70d
steipete
·
2026-05-26
·
via Recent Commits to openclaw:main
File tree
extensions/codex/src/app-server
| Original file line number | Diff line number | Diff line change |
|---|
@@ -6808,6 +6808,7 @@ describe("runCodexAppServerAttempt", () => {
|
6808 | 6808 | } as never; |
6809 | 6809 | const run = runCodexAppServerAttempt(params); |
6810 | 6810 | await harness.waitForMethod("turn/start"); |
| 6811 | +await new Promise<void>((resolve) => setImmediate(resolve)); |
6811 | 6812 | await harness.notify({ |
6812 | 6813 | method: "item/agentMessage/delta", |
6813 | 6814 | params: { |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -71,6 +71,9 @@ const OPTIONAL_OR_EXTERNALIZED_RUNTIME_IMPORTS = new Set([
|
71 | 71 | // lazy chunks from the plugin build even though dist/extensions/feishu is |
72 | 72 | // externalized from the root package scan. |
73 | 73 | "@larksuiteoapi/node-sdk", |
| 74 | +// Discord remains an official external plugin. The root package can retain |
| 75 | +// orphaned lazy chunks from the plugin build, but the plugin owns prism-media. |
| 76 | +"prism-media", |
74 | 77 | "@matrix-org/matrix-sdk-crypto-nodejs", |
75 | 78 | "link-preview-js", |
76 | 79 | "matrix-js-sdk", |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1478,11 +1478,10 @@ describe("sanitizeAuthProfileStoreForLiveGateway", () => {
|
1478 | 1478 | try { |
1479 | 1479 | const sanitized = sanitizeAuthProfileStoreForLiveGateway(store); |
1480 | 1480 | expect(sanitized.profiles.openaiProfile).toBeUndefined(); |
1481 | | -expect(sanitized.profiles.codexProfile?.type).toBe("oauth"); |
1482 | | -expect(sanitized.profiles.codexProfile?.provider).toBe("openai-codex"); |
1483 | | -expect(sanitized.order).toEqual({ "openai-codex": ["codexProfile"] }); |
1484 | | -expect(sanitized.lastGood).toEqual({ "openai-codex": "codexProfile" }); |
1485 | | -expect(sanitized.usageStats).toEqual({ codexProfile: { lastUsed: 2 } }); |
| 1481 | +expect(sanitized.profiles.codexProfile).toBeUndefined(); |
| 1482 | +expect(sanitized.order).toBeUndefined(); |
| 1483 | +expect(sanitized.lastGood).toBeUndefined(); |
| 1484 | +expect(sanitized.usageStats).toBeUndefined(); |
1486 | 1485 | } finally { |
1487 | 1486 | if (previousOpenAiKey === undefined) { |
1488 | 1487 | delete process.env.OPENAI_API_KEY; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -353,7 +353,12 @@ describe("collectInstalledRootDependencyManifestErrors", () => {
|
353 | 353 | ); |
354 | 354 | writeFileSync( |
355 | 355 | join(packageRoot, "dist", "externalized-plugin-runtime.js"), |
356 | | -'import * as lark from "@larksuiteoapi/node-sdk";\nexport { lark };\n', |
| 356 | +[ |
| 357 | +'import * as lark from "@larksuiteoapi/node-sdk";', |
| 358 | +'import prism from "prism-media";', |
| 359 | +"export { lark, prism };", |
| 360 | +"", |
| 361 | +].join("\n"), |
357 | 362 | "utf8", |
358 | 363 | ); |
359 | 364 | mkdirSync(join(packageRoot, "dist", "plugin-sdk"), { recursive: true }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。