chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 13:39:12 +08:00
commit d8dcd5f6d1
8604 changed files with 2479390 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
import { test } from "node:test";
import assert from "node:assert/strict";
import { getClaudeCodeDefaultModels } from "../../open-sse/config/providerRegistry.ts";
test("getClaudeCodeDefaultModels returns expected default models", () => {
const models = getClaudeCodeDefaultModels();
// They should be non-empty strings because providerRegistry is populated statically
assert.ok(typeof models.opus === "string");
assert.ok(typeof models.sonnet === "string");
assert.ok(typeof models.haiku === "string");
// Check that the returned IDs match the expected patterns
if (models.opus) {
assert.match(models.opus, /opus/i);
}
if (models.sonnet) {
assert.match(models.sonnet, /sonnet/i);
}
if (models.haiku) {
assert.match(models.haiku, /haiku/i);
}
});