feat(P0-A): 整合第一版并冻结最终发布 #1

Open
tuyixuan wants to merge 115 commits from codex/wp7-07 into codex/wp0-09
Showing only changes of commit b8e30ab0b2 - Show all commits
@@ -98,14 +98,16 @@ test("TDD-WP7-EXT-001 remains externally blocked without confirmation, config an
test("TDD-WP7-EXT-001 fixes independent OneAPI routes without embedding credentials", () => {
const manifest = JSON.parse(readFileSync("config/wp7-02-oneapi-test.json", "utf8"));
assert.equal(manifest.config_set_version, 1);
assert.equal(manifest.config_set_version, 2);
assert.equal(manifest.gateway_account_ref, "oneapi-intelligrow-test");
assert.deepEqual(manifest.models.map((entry) => entry.model_id), WP7_02_MODEL_IDS);
assert.deepEqual(manifest.models.map((entry) => entry.route_profile.protocol_version), [
"gemini-native-v1beta",
"gemini-native-v1beta",
"gemini-native-v1",
"gemini-native-v1",
"openai-images-v1",
]);
assert.deepEqual(manifest.models.map((entry) => entry.config_version), [2, 2, 1]);
assert.equal(manifest.models.slice(0, 2).every((entry) => /\/v1\/models\/.+:generateContent$/.test(entry.route_profile.endpoint)), true);
assert.equal(manifest.models.every((entry) => entry.route_profile.endpoint.startsWith("https://oneapi.intelligrow.cn/")), true);
assert.doesNotMatch(JSON.stringify(manifest), /api[_-]?key|authorization|bearer|sk-[A-Za-z0-9]/i);
});