mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-06 05:51:15 +08:00
fix(release): stabilize beta validation after rebase
This commit is contained in:
@@ -6808,6 +6808,7 @@ describe("runCodexAppServerAttempt", () => {
|
||||
} as never;
|
||||
const run = runCodexAppServerAttempt(params);
|
||||
await harness.waitForMethod("turn/start");
|
||||
await new Promise<void>((resolve) => setImmediate(resolve));
|
||||
await harness.notify({
|
||||
method: "item/agentMessage/delta",
|
||||
params: {
|
||||
|
||||
@@ -71,6 +71,9 @@ const OPTIONAL_OR_EXTERNALIZED_RUNTIME_IMPORTS = new Set([
|
||||
// lazy chunks from the plugin build even though dist/extensions/feishu is
|
||||
// externalized from the root package scan.
|
||||
"@larksuiteoapi/node-sdk",
|
||||
// Discord remains an official external plugin. The root package can retain
|
||||
// orphaned lazy chunks from the plugin build, but the plugin owns prism-media.
|
||||
"prism-media",
|
||||
"@matrix-org/matrix-sdk-crypto-nodejs",
|
||||
"link-preview-js",
|
||||
"matrix-js-sdk",
|
||||
|
||||
@@ -1478,11 +1478,10 @@ describe("sanitizeAuthProfileStoreForLiveGateway", () => {
|
||||
try {
|
||||
const sanitized = sanitizeAuthProfileStoreForLiveGateway(store);
|
||||
expect(sanitized.profiles.openaiProfile).toBeUndefined();
|
||||
expect(sanitized.profiles.codexProfile?.type).toBe("oauth");
|
||||
expect(sanitized.profiles.codexProfile?.provider).toBe("openai-codex");
|
||||
expect(sanitized.order).toEqual({ "openai-codex": ["codexProfile"] });
|
||||
expect(sanitized.lastGood).toEqual({ "openai-codex": "codexProfile" });
|
||||
expect(sanitized.usageStats).toEqual({ codexProfile: { lastUsed: 2 } });
|
||||
expect(sanitized.profiles.codexProfile).toBeUndefined();
|
||||
expect(sanitized.order).toBeUndefined();
|
||||
expect(sanitized.lastGood).toBeUndefined();
|
||||
expect(sanitized.usageStats).toBeUndefined();
|
||||
} finally {
|
||||
if (previousOpenAiKey === undefined) {
|
||||
delete process.env.OPENAI_API_KEY;
|
||||
|
||||
@@ -353,7 +353,12 @@ describe("collectInstalledRootDependencyManifestErrors", () => {
|
||||
);
|
||||
writeFileSync(
|
||||
join(packageRoot, "dist", "externalized-plugin-runtime.js"),
|
||||
'import * as lark from "@larksuiteoapi/node-sdk";\nexport { lark };\n',
|
||||
[
|
||||
'import * as lark from "@larksuiteoapi/node-sdk";',
|
||||
'import prism from "prism-media";',
|
||||
"export { lark, prism };",
|
||||
"",
|
||||
].join("\n"),
|
||||
"utf8",
|
||||
);
|
||||
mkdirSync(join(packageRoot, "dist", "plugin-sdk"), { recursive: true });
|
||||
|
||||
Reference in New Issue
Block a user