@scenerok/cli 2.11.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/dist/commands/plugin.d.ts +8 -1
- package/dist/commands/plugin.d.ts.map +1 -1
- package/dist/commands/plugin.js +15 -4
- package/dist/lib/plugin-checks.bundle.mjs +260 -260
- package/package.json +1 -1
- package/skills/scenerok/references/catalog-index.json +1 -1
- package/skills/scenerok/references/plugins.md +5 -2
package/package.json
CHANGED
|
@@ -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
|
|
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`).
|