@scenerok/cli 2.10.0 → 2.12.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scenerok/cli",
3
- "version": "2.10.0",
3
+ "version": "2.12.0",
4
4
  "description": "SceneRok CLI - Create videos from your terminal and agent workflows",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schema": "https://scenerok.com/catalog-index/v1",
3
- "generatedAt": "2026-10-23T04:21:13.537Z",
3
+ "generatedAt": "2026-10-25T05:36:57.302Z",
4
4
  "cdnBase": "https://assets-public.scenerok.com/catalog",
5
5
  "categories": [
6
6
  {
@@ -23,7 +23,8 @@ match, and prefer a plugin whenever the user pasted structured source data.
23
23
  4. **Draft** — for anything a person will look at before it renders:
24
24
  `scenerok_draft_plugin` with the **pinned integer ref**
25
25
  (`scenerok://plugin/<slug>@<int>`), the inputs object, `maxTokens` and an
26
- `idempotencyKey`. It runs the plugin, fills the template, charges the
26
+ `idempotencyKey` (one per attempt — the tool generates one when you omit it
27
+ and echoes it back, so reuse that value on a retry). It runs the plugin, fills the template, charges the
27
28
  provider calls plus the plugin fee, and returns `{ draftId, vidscript,
28
29
  preview, estimate }` with **no render**. Show the user the preview and the
29
30
  script; then `scenerok_render_draft` (`{ draftId }`, or `{ draftId,
@@ -75,7 +76,9 @@ estimate → draft (providers + plugin fee) → preview + edit → render (rende
75
76
 
76
77
  **MCP**
77
78
 
78
- 1. `scenerok_draft_plugin` — `{ ref, inputs, maxTokens, idempotencyKey }`.
79
+ 1. `scenerok_draft_plugin` — `{ ref, inputs, maxTokens, idempotencyKey }`
80
+ (`idempotencyKey` is generated per call when omitted and returned, so a retry
81
+ can replay the same draft instead of paying again).
79
82
  Returns `vidscript`, `preview` (the compiled timeline the web player uses,
80
83
  plus a summary) and an `estimate` that splits **what was just charged**
81
84
  (`estimate.draft`) from **what a render will cost** (`estimate.render`).