fix(usage): drop duplicated commandcode import and features block

The previous origin/master merges (11089ab1 and earlier) left two
auto-merged artifacts behind because both sides added the same lines in
different places:

- services/usage.js declared `getCommandCodeUsage` twice (import + handler),
  which is an ESM SyntaxError on a clean checkout. The working tree masked
  it, so `next build` passed locally while the committed tree did not parse.
- providers/registry/commandcode.js carried two `features` blocks; the
  second one shadowed the first for `usage`/`usageApikey`.

Verified with `node --check` on the committed blob.
This commit is contained in:
2026-09-25 16:09:04 +07:00
parent 272dbcb9cc
commit 3481058e09
2 changed files with 0 additions and 6 deletions

View File

@@ -38,10 +38,6 @@ export default {
summaryUrl: "/alpha/usage/summary", summaryUrl: "/alpha/usage/summary",
}, },
}, },
features: {
usage: true,
usageApikey: true,
},
models: [ models: [
{ id: "deepseek/deepseek-v4-pro", name: "DeepSeek V4 Pro" }, { id: "deepseek/deepseek-v4-pro", name: "DeepSeek V4 Pro" },
{ id: "deepseek/deepseek-v4-flash", name: "DeepSeek V4 Flash" }, { id: "deepseek/deepseek-v4-flash", name: "DeepSeek V4 Flash" },

View File

@@ -23,7 +23,6 @@ import { getZedUsage } from "./usage/zed.js";
import { getXiaomiMimoUsage } from "./usage/xiaomi-mimo.js"; import { getXiaomiMimoUsage } from "./usage/xiaomi-mimo.js";
import { resolveQoderCredentials } from "./qoderModels.js"; import { resolveQoderCredentials } from "./qoderModels.js";
import { getGlmUsage } from "./usage/glm.js"; import { getGlmUsage } from "./usage/glm.js";
import { getCommandCodeUsage } from "./usage/commandcode.js";
import { import {
getIflowUsage, getIflowUsage,
getOllamaUsage, getOllamaUsage,
@@ -65,7 +64,6 @@ const USAGE_HANDLERS = {
groq: (c) => getGroqUsage(c.apiKey, c.proxyOptions), groq: (c) => getGroqUsage(c.apiKey, c.proxyOptions),
zed: (c) => getZedUsage(c.accessToken, c.providerSpecificData, c.proxyOptions), zed: (c) => getZedUsage(c.accessToken, c.providerSpecificData, c.proxyOptions),
"xiaomi-mimo": (c) => getXiaomiMimoUsage(c.accessToken, c.providerSpecificData, c.proxyOptions), "xiaomi-mimo": (c) => getXiaomiMimoUsage(c.accessToken, c.providerSpecificData, c.proxyOptions),
commandcode: (c) => getCommandCodeUsage(c.apiKey, c.proxyOptions),
}; };
// Qoder intl/CN share one usage path: PATs must be exchanged to a job token // Qoder intl/CN share one usage path: PATs must be exchanged to a job token