@melius-ai/cli 0.15.3 → 0.16.0

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/README.md CHANGED
@@ -106,6 +106,7 @@ All node mutations write directly to the CRDT document. Changes are synced to co
106
106
  --prompt <text> Text prompt (maps to textPrompt)
107
107
  --model <m> Model name (requires --variant)
108
108
  --variant <v> Model variant (requires --model)
109
+ --tier <t> Speed tier of that model+variant (fast, pro, turbo; requires --model and --variant). Omit for standard speed
109
110
  --aspect-ratio <r> 21:9, 16:9, 4:3, 3:2, 1:1, 2:3, 3:4, 9:16, 9:21
110
111
  --duration <n> Output duration in seconds (video only)
111
112
  --x, --y, --w, --h Geometry (defaults per type: text 380x200, image 520x293)
@@ -141,6 +142,8 @@ Edge type determines data flow: `text` passes text output, `image` passes image
141
142
 
142
143
  **Node tools:** `mel run tool` post-processes a node's finished asset in place and creates a new active version. The currently supported tool is `remove-background` for image and image-backed file nodes. Pass the returned run ID to `mel run wait` before inspecting the result with `mel canvas content <canvasId> --node-id <nodeId> --include-all-versions`.
143
144
 
145
+ **Speed tiers:** a model can serve the same variant at more than one speed, and a speed word attached to a model names a tier rather than a separate model — "Wan 3.0 Fast" is `--model wan-3.0 --variant text-to-video --tier fast`. Each variant's `tier` comes from `mel model list`, and tiers can be priced differently from the standard speed.
146
+
144
147
  **Auto-model resolution:** when `--model`/`--variant` are omitted, `mel run start` automatically resolves the correct model from the platform defaults. `--canvas-id` is required so the CLI can verify the node is on the canvas and the backend can do edge-aware detection (picks `image-to-image` when the node has incoming image edges). Always source the node ID from the latest `mel canvas content` output or the current-turn `idMap` returned by `mel node bulk-create`.
145
148
 
146
149
  ```bash
@@ -150,6 +153,9 @@ mel run start <nodeId> --canvas-id <canvasId>
150
153
  # Explicit model
151
154
  mel run start <nodeId> --canvas-id <canvasId> --model flux-pro --variant text-to-image
152
155
 
156
+ # Explicit model at a non-standard speed tier
157
+ mel run start <nodeId> --canvas-id <canvasId> --model wan-3.0 --variant text-to-video --tier fast
158
+
153
159
  # With overrides
154
160
  mel run start <nodeId> --canvas-id <canvasId> --prompt "Override prompt" --variations 3
155
161
 
package/dist/bin/mel.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  printUpgradeNoticeIfNeeded,
8
8
  withDefaultHelp,
9
9
  writeError
10
- } from "../chunk-SEXDTRY5.js";
10
+ } from "../chunk-CIN7LTNL.js";
11
11
 
12
12
  // bin/mel.ts
13
13
  var program = createProgram();