Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
test(legal): normalize Windows newlines in license assertions
Chris2ef2132c4a1e
diff --git a/scripts/__tests__/third-party-notices.test.mjs b/scripts/__tests__/third-party-notices.test.mjsindex 63c2f16311..87823320fe 100644--- a/scripts/__tests__/third-party-notices.test.mjs+++ b/scripts/__tests__/third-party-notices.test.mjs@@ -268,7 +268,7 @@ test("all shipped desktop notices contain the complete pinned OpenCodex license"const upstream = JSON.parse(read("packages/model-compat/UPSTREAM.json"));const license = read("packages/model-compat/LICENSE.opencodex").replace(/\r\n/g, "\n").trim();for (const artifact of ["desktop-win", "desktop-macos", "desktop-linux"]) {- const notice = read(`docs/legal/notices/${artifact}.txt`);+ const notice = read(`docs/legal/notices/${artifact}.txt`).replace(/\r\n/g, "\n");assert.ok(notice.includes(license), `${artifact} includes the full MIT text`);const sbom = JSON.parse(read(`docs/legal/notices/sbom/${artifact}.spdx.json`));const component = sbom.packages.find(pkg => pkg.name === "OpenCodex compatibility sources (vendored)");@@ -277,7 +277,7 @@ test("all shipped desktop notices contain the complete pinned OpenCodex license"assert.equal(component.licenseDeclared, "MIT");}for (const file of ["apps/desktop/resources/THIRD-PARTY-NOTICES.txt", "docs/legal/notices/THIRD-PARTY-NOTICES.txt"]) {- const notice = read(file);+ const notice = read(file).replace(/\r\n/g, "\n");assert.ok(notice.includes(license), `${file} includes the full MIT text`);assert.ok(notice.includes(`${upstream.repository}/tree/${upstream.commit}`));}