fix(release): stabilize beta validation after rebase

This commit is contained in:
Peter Steinberger
2026-05-26 03:30:22 +01:00
parent 4738d0a296
commit 609d70d35e
4 changed files with 14 additions and 6 deletions

View File

@@ -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: {

View File

@@ -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",

View File

@@ -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;

View File

@@ -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 });