@blockrun/clawrouter 0.5.1 → 0.5.3

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.d.ts CHANGED
@@ -570,7 +570,7 @@ type BlockRunModel = {
570
570
  };
571
571
  declare const BLOCKRUN_MODELS: BlockRunModel[];
572
572
  /**
573
- * All BlockRun models in OpenClaw format.
573
+ * All BlockRun models in OpenClaw format (including aliases).
574
574
  */
575
575
  declare const OPENCLAW_MODELS: ModelDefinitionConfig[];
576
576
  /**
package/dist/index.js CHANGED
@@ -23,8 +23,10 @@ var MODEL_ALIASES = {
23
23
  grok: "xai/grok-3",
24
24
  "grok-fast": "xai/grok-4-fast-reasoning",
25
25
  "grok-code": "xai/grok-code-fast-1",
26
- // NVIDIA
27
- nvidia: "nvidia/gpt-oss-120b"
26
+ // NVIDIA (free)
27
+ nvidia: "nvidia/gpt-oss-120b",
28
+ "gpt-120b": "nvidia/gpt-oss-120b",
29
+ free: "nvidia/gpt-oss-120b"
28
30
  };
29
31
  function resolveModelAlias(model) {
30
32
  const normalized = model.trim().toLowerCase();
@@ -391,7 +393,15 @@ function toOpenClawModel(m) {
391
393
  maxTokens: m.maxOutput
392
394
  };
393
395
  }
394
- var OPENCLAW_MODELS = BLOCKRUN_MODELS.map(toOpenClawModel);
396
+ var ALIAS_MODELS = Object.entries(MODEL_ALIASES).map(([alias, targetId]) => {
397
+ const target = BLOCKRUN_MODELS.find((m) => m.id === targetId);
398
+ if (!target) return null;
399
+ return toOpenClawModel({ ...target, id: alias, name: `${alias} \u2192 ${target.name}` });
400
+ }).filter((m) => m !== null);
401
+ var OPENCLAW_MODELS = [
402
+ ...BLOCKRUN_MODELS.map(toOpenClawModel),
403
+ ...ALIAS_MODELS
404
+ ];
395
405
  function buildProviderModels(baseUrl) {
396
406
  return {
397
407
  baseUrl: `${baseUrl}/v1`,