From 791705ae7acf4294b193648468e94d0578f24670 Mon Sep 17 00:00:00 2001 From: Janu Yoga Date: Sun, 21 Jun 2026 16:00:39 +0700 Subject: [PATCH] feat(codebuddy-cn): add short model prefix alias "cbcn" codebuddy-cn shipped without a short alias, making its model prefix the longest of any provider (codebuddy-cn/glm-5.2). Add alias + uiAlias "cbcn" so the prefix becomes cbcn/glm-5.2, consistent with qoder (qd), kiro (kr), codex (cx). "cbcn" = CodeBuddy CN; reserves "cbai" for a future codebuddy-ai (intl) provider. Backward-compatible: full id codebuddy-cn/... still resolves (resolver matches both id and alias). Also regenerate tests/__baseline__/alias-baseline.json: idToAlias entry codebuddy-cn now maps to cbcn, and cbcn joins the sorted modelKeys list. Co-authored-by: Cursor --- open-sse/providers/registry/codebuddy-cn.js | 4 ++++ tests/__baseline__/alias-baseline.json | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/open-sse/providers/registry/codebuddy-cn.js b/open-sse/providers/registry/codebuddy-cn.js index 8b12a1a7..57d3c090 100644 --- a/open-sse/providers/registry/codebuddy-cn.js +++ b/open-sse/providers/registry/codebuddy-cn.js @@ -1,5 +1,9 @@ export default { id: "codebuddy-cn", + // Short model prefix (cbcn/glm-5.2). "cbcn" = CodeBuddy CN; reserve "cbai" + // for a future codebuddy-ai (intl) provider. The full id still resolves. + alias: "cbcn", + uiAlias: "cbcn", hidden: false, priority: 90, display: { diff --git a/tests/__baseline__/alias-baseline.json b/tests/__baseline__/alias-baseline.json index 7c6c8baa..43864392 100644 --- a/tests/__baseline__/alias-baseline.json +++ b/tests/__baseline__/alias-baseline.json @@ -105,7 +105,7 @@ "claude": "cc", "cline": "cl", "cloudflare-ai": "cloudflare-ai", - "codebuddy-cn": "codebuddy-cn", + "codebuddy-cn": "cbcn", "codex": "cx", "cohere": "cohere", "commandcode": "commandcode", @@ -164,6 +164,7 @@ "black-forest-labs", "blackbox", "byteplus", + "cbcn", "cc", "cerebras", "cl", @@ -231,4 +232,4 @@ "xiaomi-mimo", "xiaomi-tokenplan" ] -} +} \ No newline at end of file