@ckcloudai.com/clawrouter 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -89,7 +89,7 @@ function mapCkcloudModel(raw) {
89
89
  const outputPrice = Number(raw.outputPrice ?? 0);
90
90
  return {
91
91
  id,
92
- name: typeof raw.displayName === "string" && raw.displayName.trim() ? raw.displayName.trim() : id,
92
+ name: id,
93
93
  inputPrice: Number.isFinite(inputPrice) ? inputPrice : 0,
94
94
  outputPrice: Number.isFinite(outputPrice) ? outputPrice : 0,
95
95
  contextWindow: normalizedContext,
@@ -6490,7 +6490,8 @@ function injectModelsConfig(logger2) {
6490
6490
  }
6491
6491
  for (const m of OPENCLAW_MODELS) {
6492
6492
  if (!allowlist[m.name]) {
6493
- allowlist[m.name] = {};
6493
+ const key = `ckcloud/${m.name}`;
6494
+ allowlist[key] = {};
6494
6495
  addedCount++;
6495
6496
  }
6496
6497
  }