blitzreels 0.1.29 → 0.1.31
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 +383 -4
- package/dist/agent-context.d.ts.map +1 -1
- package/dist/agent-context.js +4 -3
- package/dist/agent-context.js.map +1 -1
- package/dist/cli-command-routing.d.ts.map +1 -1
- package/dist/cli-command-routing.js +5 -1
- package/dist/cli-command-routing.js.map +1 -1
- package/dist/command-metadata.d.ts +3 -1
- package/dist/command-metadata.d.ts.map +1 -1
- package/dist/command-metadata.js +3 -2
- package/dist/command-metadata.js.map +1 -1
- package/dist/command-registry.d.ts.map +1 -1
- package/dist/command-registry.js +26 -0
- package/dist/command-registry.js.map +1 -1
- package/dist/commands/carousels.d.ts.map +1 -1
- package/dist/commands/carousels.js +61 -8
- package/dist/commands/carousels.js.map +1 -1
- package/dist/commands/characters.d.ts.map +1 -1
- package/dist/commands/characters.js +137 -2
- package/dist/commands/characters.js.map +1 -1
- package/dist/commands/content-batches.d.ts +19 -0
- package/dist/commands/content-batches.d.ts.map +1 -0
- package/dist/commands/content-batches.js +128 -0
- package/dist/commands/content-batches.js.map +1 -0
- package/dist/commands/content-review.d.ts +18 -0
- package/dist/commands/content-review.d.ts.map +1 -0
- package/dist/commands/content-review.js +66 -0
- package/dist/commands/content-review.js.map +1 -0
- package/dist/commands/creative-learning.d.ts +8 -0
- package/dist/commands/creative-learning.d.ts.map +1 -0
- package/dist/commands/creative-learning.js +111 -0
- package/dist/commands/creative-learning.js.map +1 -0
- package/dist/commands/creative-map.d.ts +8 -0
- package/dist/commands/creative-map.d.ts.map +1 -0
- package/dist/commands/creative-map.js +121 -0
- package/dist/commands/creative-map.js.map +1 -0
- package/dist/commands/creative-source.d.ts +33 -0
- package/dist/commands/creative-source.d.ts.map +1 -0
- package/dist/commands/creative-source.js +267 -0
- package/dist/commands/creative-source.js.map +1 -0
- package/dist/commands/customer-outcomes.d.ts +8 -0
- package/dist/commands/customer-outcomes.d.ts.map +1 -0
- package/dist/commands/customer-outcomes.js +115 -0
- package/dist/commands/customer-outcomes.js.map +1 -0
- package/dist/commands/editor.d.ts +20 -0
- package/dist/commands/editor.d.ts.map +1 -0
- package/dist/commands/editor.js +116 -0
- package/dist/commands/editor.js.map +1 -0
- package/dist/commands/exports.d.ts.map +1 -1
- package/dist/commands/exports.js +57 -0
- package/dist/commands/exports.js.map +1 -1
- package/dist/commands/generation-review.d.ts +18 -0
- package/dist/commands/generation-review.d.ts.map +1 -0
- package/dist/commands/generation-review.js +60 -0
- package/dist/commands/generation-review.js.map +1 -0
- package/dist/commands/generation-wait.d.ts +15 -0
- package/dist/commands/generation-wait.d.ts.map +1 -0
- package/dist/commands/generation-wait.js +98 -0
- package/dist/commands/generation-wait.js.map +1 -0
- package/dist/commands/generation.d.ts +5 -0
- package/dist/commands/generation.d.ts.map +1 -1
- package/dist/commands/generation.js +693 -34
- package/dist/commands/generation.js.map +1 -1
- package/dist/commands/hosted-drafts.d.ts +8 -0
- package/dist/commands/hosted-drafts.d.ts.map +1 -0
- package/dist/commands/hosted-drafts.js +125 -0
- package/dist/commands/hosted-drafts.js.map +1 -0
- package/dist/commands/jobs.d.ts.map +1 -1
- package/dist/commands/jobs.js +156 -1
- package/dist/commands/jobs.js.map +1 -1
- package/dist/commands/knowledge-research.d.ts +10 -0
- package/dist/commands/knowledge-research.d.ts.map +1 -0
- package/dist/commands/knowledge-research.js +147 -0
- package/dist/commands/knowledge-research.js.map +1 -0
- package/dist/commands/knowledge.d.ts +37 -0
- package/dist/commands/knowledge.d.ts.map +1 -0
- package/dist/commands/knowledge.js +164 -0
- package/dist/commands/knowledge.js.map +1 -0
- package/dist/commands/media-assets.d.ts.map +1 -1
- package/dist/commands/media-assets.js +39 -0
- package/dist/commands/media-assets.js.map +1 -1
- package/dist/commands/project-read.d.ts.map +1 -1
- package/dist/commands/project-read.js +25 -4
- package/dist/commands/project-read.js.map +1 -1
- package/dist/commands/projects.d.ts.map +1 -1
- package/dist/commands/projects.js +51 -0
- package/dist/commands/projects.js.map +1 -1
- package/dist/commands/publishing-media.d.ts +15 -0
- package/dist/commands/publishing-media.d.ts.map +1 -0
- package/dist/commands/publishing-media.js +67 -0
- package/dist/commands/publishing-media.js.map +1 -0
- package/dist/commands/publishing-posts.d.ts +19 -0
- package/dist/commands/publishing-posts.d.ts.map +1 -0
- package/dist/commands/publishing-posts.js +537 -0
- package/dist/commands/publishing-posts.js.map +1 -0
- package/dist/commands/publishing.d.ts.map +1 -1
- package/dist/commands/publishing.js +65 -16
- package/dist/commands/publishing.js.map +1 -1
- package/dist/commands/recipes.d.ts +24 -0
- package/dist/commands/recipes.d.ts.map +1 -0
- package/dist/commands/recipes.js +177 -0
- package/dist/commands/recipes.js.map +1 -0
- package/dist/commands/series.d.ts +1 -2
- package/dist/commands/series.d.ts.map +1 -1
- package/dist/commands/series.js +132 -1
- package/dist/commands/series.js.map +1 -1
- package/dist/commands/system.d.ts.map +1 -1
- package/dist/commands/system.js +25 -1
- package/dist/commands/system.js.map +1 -1
- package/dist/commands/text-overlays.d.ts.map +1 -1
- package/dist/commands/text-overlays.js +1 -0
- package/dist/commands/text-overlays.js.map +1 -1
- package/dist/commands/voices.d.ts +16 -0
- package/dist/commands/voices.d.ts.map +1 -0
- package/dist/commands/voices.js +251 -0
- package/dist/commands/voices.js.map +1 -0
- package/dist/commands/web-capture.d.ts +10 -0
- package/dist/commands/web-capture.d.ts.map +1 -0
- package/dist/commands/web-capture.js +149 -0
- package/dist/commands/web-capture.js.map +1 -0
- package/dist/index.js +96 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -85,7 +85,7 @@ Use the same generation idempotency key only with the original request.
|
|
|
85
85
|
Use `blitzreels <command> --help` or the one-command contract below for exact flags.
|
|
86
86
|
The [generated CLI guide](https://blitzreels.com/cli.md) owns the full command catalog.
|
|
87
87
|
|
|
88
|
-
- Inspect/edit: `projects`, `project`, `timeline`, `captions`, `text`, `audio`, `silence` and `mistakes`.
|
|
88
|
+
- Inspect/edit: `projects`, `project`, `editor`, `timeline`, `captions`, `text`, `audio`, `silence` and `mistakes`.
|
|
89
89
|
- Existing YouTube outro palette: `youtube-outro theme --project-id ID --content-item-id ID --theme dark`.
|
|
90
90
|
Read `content_item_id` from `project timeline --project-id ID --json`.
|
|
91
91
|
- Sources and finished clips: `media`, `clips`, `clip-batches` and `exports`.
|
|
@@ -117,6 +117,91 @@ or bulk tooling that explicitly needs every detailed command contract.
|
|
|
117
117
|
Agent workflow strategy lives in BlitzReels skills and docs, not in CLI command
|
|
118
118
|
metadata or normal command output.
|
|
119
119
|
|
|
120
|
+
### Revision-checked editor commands
|
|
121
|
+
|
|
122
|
+
`editor schema --json` returns the canonical edit and undo request schemas without authentication.
|
|
123
|
+
The compact index exposes `editor execute`; group help and detailed schema reads expose preview, undo and schema.
|
|
124
|
+
The existing `text update` helper remains available through detailed discovery for compatibility.
|
|
125
|
+
`editor preview`, `execute` and `undo` accept `--spec-file FILE`, or `--spec-file -` for stdin.
|
|
126
|
+
An edit file contains `projectId`, `expectedRevision` and one typed `command`.
|
|
127
|
+
An undo file contains `projectId`, `expectedRevision` and `actionId` from edit history.
|
|
128
|
+
|
|
129
|
+
```bash
|
|
130
|
+
blitzreels editor schema --json
|
|
131
|
+
blitzreels editor preview --spec-file edit.json --json
|
|
132
|
+
blitzreels editor execute --spec-file edit.json --idempotency-key title-edit-001 --json
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
`editor preview` validates against the current saved Project without saving or rendering.
|
|
136
|
+
`--dry-run` on execute/undo prints an offline request; it does not validate the Project's current state.
|
|
137
|
+
Reuse an execution key only for an identical retry. A stale revision requires a fresh read and a new edit.
|
|
138
|
+
The `editComposition` command addresses elements through `itemId` and `edit.changes[].elementId`.
|
|
139
|
+
Content/style/animation changes preserve placement timing; shared composition edits affect all its placements.
|
|
140
|
+
Omitted properties remain unchanged, null clears a style override, and an animation replaces that property's whole value.
|
|
141
|
+
For source-duration changes, set `edit.duration` to `{ "frames": 240, "placements": "preserve" }`.
|
|
142
|
+
Frames use the saved composition FPS. `preserve` keeps visible windows and synchronizes unused source tails.
|
|
143
|
+
`resizeAll` changes all shared placement lengths while keeping starts, source in-points and unused tails.
|
|
144
|
+
Invalid shortening is rejected; preview returns `durationChange` with affected durations and tails in seconds.
|
|
145
|
+
Use `changes: []` for a duration-only edit. Attached recipes still require explicit detachment.
|
|
146
|
+
|
|
147
|
+
`edit.structure` accepts ordered `insert`, `move` and `remove` operations, applied before `changes`.
|
|
148
|
+
`into` selects `{ "type": "composition" }`, `{ "type": "scene", "sceneId": "intro" }`,
|
|
149
|
+
or `{ "type": "group", "elementId": "card" }`. Composition roots apply only to elements mode.
|
|
150
|
+
`beforeId` is a direct sibling ID; `null` appends. Insert IDs must be new and unique, including descendants.
|
|
151
|
+
Moves require `coordinates: "preserveLocal"`: style and local frame offsets stay unchanged.
|
|
152
|
+
A new parent can change absolute position, inherited styling and playback timing; world-space preservation is unsupported.
|
|
153
|
+
Remove deletes the entire subtree. Invalid operations reject the whole edit without saving.
|
|
154
|
+
Preview returns `elementChange` with affected and removed IDs; subtree removal is marked destructive.
|
|
155
|
+
New `asset:ID` references must belong to the Project workspace and must not be deleted.
|
|
156
|
+
|
|
157
|
+
Group an existing title, add a subtitle and revise both in one command:
|
|
158
|
+
|
|
159
|
+
```json
|
|
160
|
+
{
|
|
161
|
+
"kind": "editComposition",
|
|
162
|
+
"itemId": "PLACEMENT_ID",
|
|
163
|
+
"edit": {
|
|
164
|
+
"ownership": "preserve",
|
|
165
|
+
"structure": [
|
|
166
|
+
{
|
|
167
|
+
"kind": "insert",
|
|
168
|
+
"element": { "id": "card", "type": "group", "children": [] },
|
|
169
|
+
"into": { "type": "composition" },
|
|
170
|
+
"beforeId": "title"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"kind": "move",
|
|
174
|
+
"elementId": "title",
|
|
175
|
+
"into": { "type": "group", "elementId": "card" },
|
|
176
|
+
"beforeId": null,
|
|
177
|
+
"coordinates": "preserveLocal"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"kind": "insert",
|
|
181
|
+
"element": { "id": "subtitle", "type": "text", "content": "Start today" },
|
|
182
|
+
"into": { "type": "group", "elementId": "card" },
|
|
183
|
+
"beforeId": null
|
|
184
|
+
}
|
|
185
|
+
],
|
|
186
|
+
"changes": [
|
|
187
|
+
{ "elementId": "title", "content": "A new chapter" },
|
|
188
|
+
{ "elementId": "subtitle", "style": { "fontSize": 36 } }
|
|
189
|
+
]
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
Wrap the command with `projectId` and the observed `expectedRevision` before preview/execute.
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
Read export credits, eligibility and the maximum workspace spending reservation without starting work:
|
|
198
|
+
|
|
199
|
+
```bash
|
|
200
|
+
blitzreels exports quote --project-id PROJECT_ID --resolution 1080p --render-mode auto --json
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
Unavailable rates return an explicit reason and a null amount. Admission rechecks current limits; reading a quote reserves nothing.
|
|
204
|
+
|
|
120
205
|
Retry project, clip-batch, and export creation safely with a stable key:
|
|
121
206
|
|
|
122
207
|
```bash
|
|
@@ -180,11 +265,13 @@ See `LICENSE` for the package terms.
|
|
|
180
265
|
Discover current models, resolution values/costs and reference limits with:
|
|
181
266
|
|
|
182
267
|
```bash
|
|
183
|
-
blitzreels generate
|
|
184
|
-
blitzreels generate
|
|
185
|
-
blitzreels generate
|
|
268
|
+
blitzreels generate models --kind image --json
|
|
269
|
+
blitzreels generate models --kind video --json
|
|
270
|
+
blitzreels generate models --kind voiceover --json
|
|
186
271
|
```
|
|
187
272
|
|
|
273
|
+
`generate models --kind KIND` returns the same catalog as `generate <kind> --options`.
|
|
274
|
+
|
|
188
275
|
- Video `--duration` is a member of that model's `durations_seconds`. min/max on the row are list bounds, not a range.
|
|
189
276
|
- First/last-frame input interpolates from the source first frame to the last-frame still across the full duration. It requires a source image and cannot mix an end frame with reference arrays.
|
|
190
277
|
- Reference order is preserved. Missing, duplicate, wrong-type or excess assets are rejected.
|
|
@@ -194,6 +281,102 @@ blitzreels generate voiceovers --options --json
|
|
|
194
281
|
- `--enhance-prompt` uses model grammar and bounded image previews, not video/audio content inspection.
|
|
195
282
|
- Choose voice IDs from the options catalog, including its provider and preview fields.
|
|
196
283
|
- Export resolution controls output canvas size; it does not add native detail to generated media.
|
|
284
|
+
- `generate images --size WIDTHxHEIGHT` sets an exact output size on models whose `parameters.size.supported` is true.
|
|
285
|
+
It replaces `--aspect-ratio`; credits scale with pixel count (`credit_cost_examples`). Quote with `generate quote --size`.
|
|
286
|
+
An invalid size fails with the nearest valid size.
|
|
287
|
+
- `generate videos --reference-asset-uri asset://ID` passes a BytePlus ModelArk real-human asset (repeatable).
|
|
288
|
+
It requires `--provider byteplus-modelark` and a model whose `parameters.reference_asset_uris.supported` is true.
|
|
289
|
+
URIs are numbered after `--reference` images (`@ImageN`). Seedance refuses ordinary photos of real people;
|
|
290
|
+
that failure is `content_policy`, non-retryable, and its recovery message names this route.
|
|
291
|
+
- Sound `--duration` is the requested length. Trailing silence is trimmed; `result.durationSeconds` is the delivered length.
|
|
292
|
+
|
|
293
|
+
## Characters and voices
|
|
294
|
+
|
|
295
|
+
The `voices` commands manage workspace clones through `/workspace/voices`.
|
|
296
|
+
The existing `GET /voices` API remains the built-in catalog used by SDK `catalog.voices()`.
|
|
297
|
+
|
|
298
|
+
- `generate images|videos --character-id ID` adds a character's references and description to the request.
|
|
299
|
+
Videos put the character first (`@Image1` is its primary reference, `@Image2` with a source image) and cap
|
|
300
|
+
references to the model limit. `parameters.character_id.supported` in `generate models --kind video` lists models.
|
|
301
|
+
- Character swap: on swap models (`kling-o3-pro-edit`, `wan-2.2-animate-replace`), `--character-id` becomes the
|
|
302
|
+
replacement identity and `--from/--to` swaps only that range of `--reference-video-asset-id`; the server cuts it,
|
|
303
|
+
keeps its audio and bills the range length. Kling O3 needs a character with at least two reference images.
|
|
304
|
+
- `characters describe --character-id ID` writes the description from the primary photo (one prompt-enhancement
|
|
305
|
+
spend); `--overwrite` replaces an existing one. Image and video prompts include it.
|
|
306
|
+
- `characters sheet --character-id ID --kind turnaround|expressions` generates a sheet from the character's
|
|
307
|
+
references and adds the result to them. It is priced like `generate images` at the sheet size.
|
|
308
|
+
- `voices clone` creates a workspace voice from 10s to 10 minutes of a consenting speaker (1 to 2 minutes of clean
|
|
309
|
+
speech works best) plus a 2 to 30 second recording of the speaker saying:
|
|
310
|
+
"I, <name>, agree that this BlitzReels workspace may create and use a synthetic copy of my voice."
|
|
311
|
+
Cloning is free; a workspace keeps at most 5 active voices. Local files are uploaded and processed first.
|
|
312
|
+
|
|
313
|
+
```bash
|
|
314
|
+
blitzreels voices clone --name "Michel" --speaker-name "Michel Rietsch" \
|
|
315
|
+
--sample michel-talking.m4a --consent-recording michel-consent.m4a \
|
|
316
|
+
--character-id CHARACTER_ID --idempotency-key michel-voice-1 --json
|
|
317
|
+
blitzreels generate voiceovers --voice-id VOICE_ID --text "Bonjour à tous !" --output line.mp3
|
|
318
|
+
```
|
|
319
|
+
|
|
320
|
+
- A workspace voice ID works as `--voice-id` and as a character `--default-voice-id`.
|
|
321
|
+
- With `--character-id` on Seedance (models with `max_reference_audio` above 0), the character's voice clip
|
|
322
|
+
(the consent recording when it lasts 2 to 15 seconds) is sent as reference audio unless you pass your own.
|
|
323
|
+
- Other models: generate the video, generate the line with the cloned voice, then lip-sync:
|
|
324
|
+
|
|
325
|
+
```bash
|
|
326
|
+
blitzreels generate videos --model sync-lipsync-2 --prompt "lip sync" \
|
|
327
|
+
--reference-video-asset-id VIDEO_ASSET_ID --reference-audio-asset-id VOICEOVER_ASSET_ID --json
|
|
328
|
+
```
|
|
329
|
+
|
|
330
|
+
`sync-lipsync-2` takes one source video and one audio track (2 to 30 seconds); output keeps the source length.
|
|
331
|
+
|
|
332
|
+
## Comparing models and checking output
|
|
333
|
+
|
|
334
|
+
`generate compare` runs one video request on 2 to 8 models in parallel. Each model gets its nearest supported
|
|
335
|
+
duration; models with sound always on ignore `--generate-audio`. Results are sorted by elapsed seconds.
|
|
336
|
+
|
|
337
|
+
```bash
|
|
338
|
+
blitzreels generate compare --models flux-3-max,heygen-video,wan-3.0,kling-o3-pro \
|
|
339
|
+
--source-image start.png --prompt "..." --duration 5 --aspect-ratio 9:16 --generate-audio \
|
|
340
|
+
--character-id CHARACTER_ID --output-dir ./compare --review --idempotency-key barbecue-v1 --json
|
|
341
|
+
```
|
|
342
|
+
|
|
343
|
+
`--review` (or `jobs review --job-id ID` for one job) adds frames, a contact sheet, the spoken transcript and,
|
|
344
|
+
with a character, a 0 to 1 likeness score against its primary photo. The first review starts a free
|
|
345
|
+
transcription; `--wait-transcript` waits up to 3 minutes for it. Likeness costs one prompt-enhancement spend.
|
|
346
|
+
|
|
347
|
+
## Long and batched generations
|
|
348
|
+
|
|
349
|
+
While a generation waits, status lines (`status progress%, elapsed`) go to stderr; stdout keeps the final result.
|
|
350
|
+
`--output` keeps the requested path when its extension matches the returned bytes.
|
|
351
|
+
Otherwise the CLI swaps the extension (`sheet.jpg` becomes `sheet.png`) and reports the written path in `output_path`.
|
|
352
|
+
|
|
353
|
+
A wait longer than 30 minutes exits with code 7 and a resume command. Submit with `--no-wait`, then resume:
|
|
354
|
+
|
|
355
|
+
```bash
|
|
356
|
+
blitzreels generate videos --model wan-3.0 --duration 25 --source-image start.jpg \
|
|
357
|
+
--prompt "$(cat prompt.txt)" --idempotency-key ep1-v1 --no-wait --json
|
|
358
|
+
blitzreels jobs wait --job-id JOB_ID --output ep1.mp4 --timeout-seconds 1800 --json
|
|
359
|
+
```
|
|
360
|
+
|
|
361
|
+
`generate images|videos|sounds --batch FILE` submits one generation per entry, then waits on all of them.
|
|
362
|
+
Entries use this command's flag names as keys; command-line flags are shared defaults.
|
|
363
|
+
Each entry needs `idempotency-key`, or `--idempotency-key PREFIX` assigns `PREFIX-1`, `PREFIX-2`, and so on.
|
|
364
|
+
Relative paths resolve from the working directory. `--dry-run` previews every request; `--no-wait` returns after submission.
|
|
365
|
+
|
|
366
|
+
```json
|
|
367
|
+
[
|
|
368
|
+
{ "prompt": "Episode 1 ...", "source-image": "ep1.jpg", "duration": 20, "output": "ep1.mp4" },
|
|
369
|
+
{ "prompt": "Episode 2 ...", "source-image": "ep2.jpg", "duration": 25, "output": "ep2.mp4" }
|
|
370
|
+
]
|
|
371
|
+
```
|
|
372
|
+
|
|
373
|
+
```bash
|
|
374
|
+
blitzreels generate videos --batch episodes.json --model wan-3.0 --aspect-ratio 9:16 \
|
|
375
|
+
--generate-audio --idempotency-key series-v1 --json
|
|
376
|
+
```
|
|
377
|
+
|
|
378
|
+
The result lists every entry with `job_id`, `status`, `media_id`, `output_path` and `error`.
|
|
379
|
+
Any failed entry exits with code 5 (`partial_failure`); `resume_command` is set when the job may still be running.
|
|
197
380
|
|
|
198
381
|
## Recovery contracts
|
|
199
382
|
|
|
@@ -235,6 +418,202 @@ Remove `--dry-run` only when the account, content and publication time are ready
|
|
|
235
418
|
For LinkedIn/Threads media, supply both `--project-id` and `--export-id` for a completed export.
|
|
236
419
|
Text posts omit both flags. The uploaded-video command also accepts LinkedIn and Threads targets.
|
|
237
420
|
|
|
421
|
+
`publishing video schedule --video PATH` uploads once and waits for the video's duration and dimensions
|
|
422
|
+
before scheduling. `--media-asset-id ID` also waits when that asset is still processing.
|
|
423
|
+
Polling defaults to `--interval-ms 3000 --timeout-ms 600000`.
|
|
424
|
+
On timeout, the error retains the asset ID so the next attempt can use `--media-asset-id` without another upload.
|
|
425
|
+
Failed processing and completed assets without metadata stop before creating a post.
|
|
426
|
+
|
|
427
|
+
TikTok direct posting requires both `--tiktok-consent-accepted` and an explicit `--tiktok-privacy-level`.
|
|
428
|
+
Privacy values are `PUBLIC_TO_EVERYONE`, `FOLLOWER_OF_CREATOR`, `MUTUAL_FOLLOW_FRIENDS`, and `SELF_ONLY`.
|
|
429
|
+
The connected account must support the chosen value.
|
|
430
|
+
TikTok also requires a separate Direct Post audit for public posting.
|
|
431
|
+
Unaudited clients require private accounts and private visibility; selecting `SELF_ONLY` alone does not make
|
|
432
|
+
a public account eligible. Use `--tiktok-publish-mode draft` for TikTok inbox delivery and finish in TikTok.
|
|
433
|
+
See [TikTok's Direct Post restrictions](https://developers.tiktok.com/doc/content-posting-api-reference-direct-post).
|
|
434
|
+
|
|
238
435
|
Keep the same idempotency key and inputs when recovering an interrupted scheduling request.
|
|
239
436
|
Read the returned post receipt until its target reaches a terminal state; `scheduled` is not proof of publication.
|
|
240
437
|
If a target is `manual_required`, inspect the provider before scheduling another copy.
|
|
438
|
+
|
|
439
|
+
## Unified post lifecycle
|
|
440
|
+
|
|
441
|
+
The unified commands use one JSON contract across CLI, SDK and REST.
|
|
442
|
+
They require a matching server release; source changes are not automatically deployed.
|
|
443
|
+
The compact discovery index lists these commands; older platform-specific scheduling commands remain
|
|
444
|
+
available through `publishing --help`, `agent-context --full`, and `agent-context --command`.
|
|
445
|
+
|
|
446
|
+
```bash
|
|
447
|
+
blitzreels publishing capabilities --json
|
|
448
|
+
blitzreels publishing posts schema --json
|
|
449
|
+
blitzreels publishing connections list --json
|
|
450
|
+
```
|
|
451
|
+
|
|
452
|
+
Save a post as `post.json`, replacing the three UUIDs with your uploaded video and connected accounts:
|
|
453
|
+
|
|
454
|
+
```json
|
|
455
|
+
{
|
|
456
|
+
"source": {
|
|
457
|
+
"type": "media_asset",
|
|
458
|
+
"media_asset_id": "00000000-0000-4000-8000-000000000001"
|
|
459
|
+
},
|
|
460
|
+
"caption": "My caption",
|
|
461
|
+
"mode": "schedule",
|
|
462
|
+
"scheduled_for": "2026-10-10T22:20:00+02:00",
|
|
463
|
+
"timezone": "Europe/Paris",
|
|
464
|
+
"targets": [
|
|
465
|
+
{
|
|
466
|
+
"platform": "instagram",
|
|
467
|
+
"connection_id": "00000000-0000-4000-8000-000000000002",
|
|
468
|
+
"share_to_feed": true,
|
|
469
|
+
"share_to_story": true
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
"platform": "facebook",
|
|
473
|
+
"connection_id": "00000000-0000-4000-8000-000000000003",
|
|
474
|
+
"video_format": "reel",
|
|
475
|
+
"caption": "My Facebook caption",
|
|
476
|
+
"share_to_story": true
|
|
477
|
+
}
|
|
478
|
+
]
|
|
479
|
+
}
|
|
480
|
+
```
|
|
481
|
+
|
|
482
|
+
```bash
|
|
483
|
+
blitzreels publishing posts validate --input-file post.json --json
|
|
484
|
+
blitzreels publishing posts create --input-file post.json --idempotency-key launch-2026-10-10 --dry-run --json
|
|
485
|
+
blitzreels publishing posts create --input-file post.json --idempotency-key launch-2026-10-10 --json
|
|
486
|
+
blitzreels publishing posts wait --post-id POST_ID --json
|
|
487
|
+
```
|
|
488
|
+
|
|
489
|
+
`--input-file -` reads JSON from stdin. Unknown fields and duplicate target accounts are rejected.
|
|
490
|
+
A post accepts 1–20 accounts. Each target can override the shared caption, including an explicit empty caption.
|
|
491
|
+
`source.type: text` supports LinkedIn, Threads and X. `media_asset` accepts a video; existing image/carousel
|
|
492
|
+
exports use `source: { type: "project_export", project_id, export_id }`.
|
|
493
|
+
The scheduled instant must include `Z` or a numeric offset. `timezone` controls its display, defaults to UTC,
|
|
494
|
+
and never changes the instant. `mode: now` omits `scheduled_for` and queues immediately.
|
|
495
|
+
Facebook video defaults to a Reel; use `video_format: video` for a normal video.
|
|
496
|
+
Instagram defaults to sharing the Reel to the feed. YouTube defaults to unlisted and requires a title
|
|
497
|
+
and an explicit `made_for_kids` boolean. TikTok direct privacy and consent remain explicit.
|
|
498
|
+
|
|
499
|
+
`validate` checks live account/media capabilities without creating a post, project or upload.
|
|
500
|
+
Provider credentials can refresh during these checks. An invalid result exits 2 and reports all discovered issues.
|
|
501
|
+
`--dry-run` only validates local JSON and previews the request; it makes no API calls.
|
|
502
|
+
`create` validates every target before writing. Pending uploaded-video metadata triggers a bounded wait
|
|
503
|
+
and a retry with the same key. Replaying an accepted key returns its original receipt without another upload.
|
|
504
|
+
Use a new key for changed inputs or an intentionally new post.
|
|
505
|
+
|
|
506
|
+
`share_to_story: true` requests a native Reel share, not a second video upload.
|
|
507
|
+
The documented Facebook and Instagram APIs do not expose the native Reel share card.
|
|
508
|
+
Receipts keep a `waiting_for_publication` follow-up until the Reel is published, then return `manual_required`
|
|
509
|
+
with its link. Share it in the platform app. A successful Reel never means the Story was shared.
|
|
510
|
+
Standalone Story uploads are not implemented by these commands.
|
|
511
|
+
|
|
512
|
+
Receipts include requested and confirmed formats, per-account state, provider links, errors, follow-ups,
|
|
513
|
+
revision timestamps and permitted actions. `wait` exits 7 on failed/cancelled targets or manual work,
|
|
514
|
+
while keeping the full receipt on stdout. A timeout never cancels the post.
|
|
515
|
+
TikTok `draft_sent` means inbox delivery, not public publication.
|
|
516
|
+
`posts list` defaults to 20 items, permits at most 100, and returns pagination bounds.
|
|
517
|
+
|
|
518
|
+
```bash
|
|
519
|
+
blitzreels publishing posts list --status scheduled --limit 20 --json
|
|
520
|
+
blitzreels publishing targets reschedule --target-id TARGET_ID --expected-revision REVISION --scheduled-for 2026-10-11T20:20:00Z --idempotency-key move-2026-10-11 --dry-run --json
|
|
521
|
+
blitzreels publishing targets cancel --target-id TARGET_ID --expected-revision REVISION --idempotency-key cancel-post-1 --dry-run --json
|
|
522
|
+
blitzreels publishing targets retry --target-id TARGET_ID --expected-revision REVISION --idempotency-key retry-post-1 --dry-run --json
|
|
523
|
+
```
|
|
524
|
+
|
|
525
|
+
Read the latest receipt before each target action and use its `revision`.
|
|
526
|
+
Conflicting revisions fail before editing. Retry addresses one eligible failed target and preserves successful targets.
|
|
527
|
+
An uncertain provider publication must be reconciled before retrying.
|
|
528
|
+
|
|
529
|
+
For a saved draft, set `mode: draft` and omit `scheduled_for`, then use `posts create`.
|
|
530
|
+
Drafts have no queued targets, preserve their full `draft_input`, and need no ready media or live provider checks.
|
|
531
|
+
Scheduling revalidates media, accounts, privacy and consent and atomically promotes the same post ID.
|
|
532
|
+
|
|
533
|
+
```bash
|
|
534
|
+
blitzreels publishing drafts update --post-id POST_ID --expected-revision REVISION --input-file draft.json --idempotency-key edit-draft-1 --dry-run --json
|
|
535
|
+
blitzreels publishing drafts schedule --post-id POST_ID --expected-revision REVISION --mode now --idempotency-key publish-draft-1 --dry-run --json
|
|
536
|
+
blitzreels publishing drafts delete --post-id POST_ID --expected-revision REVISION --idempotency-key delete-draft-1 --dry-run --json
|
|
537
|
+
```
|
|
538
|
+
|
|
539
|
+
## Web research (local source)
|
|
540
|
+
|
|
541
|
+
Research requires server pricing and a validated runtime before activation.
|
|
542
|
+
Create a JSON spec with `prompt`, nullable `productUrl`/`seriesId`, `language`, `maxSources` and `maxCredits`.
|
|
543
|
+
|
|
544
|
+
```bash
|
|
545
|
+
blitzreels knowledge research list --status all --limit 10 --offset 0 --json
|
|
546
|
+
blitzreels knowledge research quote --spec-file research.json --json
|
|
547
|
+
blitzreels knowledge research start --spec-file research.json --quote-id QUOTE_ID --idempotency-key RETRY_KEY --dry-run --json
|
|
548
|
+
blitzreels knowledge research start --spec-file research.json --quote-id QUOTE_ID --idempotency-key RETRY_KEY --json
|
|
549
|
+
blitzreels knowledge research get --job-id JOB_ID --json
|
|
550
|
+
blitzreels knowledge research cancel --job-id JOB_ID --json
|
|
551
|
+
blitzreels knowledge research resume --job-id JOB_ID --json
|
|
552
|
+
```
|
|
553
|
+
|
|
554
|
+
Keep the quoted spec unchanged. Repeat the same start flags/key after disconnect to recover its job.
|
|
555
|
+
Inspect job state for completion; queue acknowledgment alone is insufficient.
|
|
556
|
+
Cancel preserves completed/uncertain charges; resume uses the accepted remaining budget.
|
|
557
|
+
Start, cancel and resume support offline `--dry-run`.
|
|
558
|
+
|
|
559
|
+
|
|
560
|
+
### Creative spending
|
|
561
|
+
|
|
562
|
+
`source usage [--before ID] [--limit N] --json` reads workspace spending limits and paginated receipts.
|
|
563
|
+
Use `nextCursor` for the next page; `coveredOperations` lists protected job families, currently recipes, research, screenshots and isolated source builds.
|
|
564
|
+
Unknown provider costs retain their reservation; `costBasis` identifies provider-reported costs and allocated upper bounds.
|
|
565
|
+
|
|
566
|
+
### Saved recipes
|
|
567
|
+
|
|
568
|
+
- `recipes versions --project-id ID [--limit N] [--offset N]` lists saved template versions, newest first.
|
|
569
|
+
- `recipes inspect --project-id ID --recipe-version N [--section SECTION]` reads one saved section.
|
|
570
|
+
- Sections: `overview`, `variables`, `artifacts`, `dependencies`, `assets`, `source`.
|
|
571
|
+
- Source inspection requires `--source-revision-id ID`; `--path FILE` reads one exact file,
|
|
572
|
+
including `package.json` or `package-lock.json`.
|
|
573
|
+
- Inspection supports `--limit` and `--offset`; default 20 rows, maximum 100.
|
|
574
|
+
Text previews report their full character count and truncation after 4,096 characters.
|
|
575
|
+
- Current workspace and template permissions apply. Inspection commands only read saved data.
|
|
576
|
+
- `recipes quote --spec-file recipe.json` quotes `{ request, limits }` without reserving credits.
|
|
577
|
+
`request.kind` is `capture` or `copy`; the command schema exposes revision guards and destination mappings.
|
|
578
|
+
- `recipes start --spec-file recipe.json --quote-id ID --max-credits N --idempotency-key KEY`
|
|
579
|
+
starts the quoted operation; `--dry-run` prints its request without spending credits.
|
|
580
|
+
- `recipes get --job-id ID` reads status and the saved version/copy result.
|
|
581
|
+
`recipes cancel --job-id ID` stops new work and preserves completed outputs and exposed charges.
|
|
582
|
+
- Repeat the exact start inputs and retry key after disconnect to recover the same job and delivery.
|
|
583
|
+
Queue acknowledgment is not completion. Recipe operations do not publish content.
|
|
584
|
+
- Pricing must be configured before quote/start. A quote is an estimate with explicit limits, not a final provider bill.
|
|
585
|
+
|
|
586
|
+
### Submit a Project for review
|
|
587
|
+
|
|
588
|
+
`content submit --spec-file review.json --idempotency-key KEY [--dry-run]` adds a saved video or carousel
|
|
589
|
+
to the workspace review queue. The JSON contains `projectId`, `expectedProjectRevision`, `caption`, `reason`
|
|
590
|
+
and `language` (`en` or `fr`). No rendering, credits, scheduling or publication is started.
|
|
591
|
+
Use the same inputs and key after a lost response to recover the original `draftId` and mutation receipt.
|
|
592
|
+
Changed inputs with the same key, a stale Project revision or a second submission of the Project conflict.
|
|
593
|
+
Review displays the current Project after subsequent edits; the submission receipt retains the admitted revision.
|
|
594
|
+
|
|
595
|
+
Source execution quotes are available through `source quote --spec-file FILE --json` and
|
|
596
|
+
`client.creativeSource.quote({ projectId, revision, compositionId, frame, output })`.
|
|
597
|
+
Pass the returned `id` as build `quoteId` to reject changed prices or settings.
|
|
598
|
+
A null quote accepts current configured bounds; all builds reserve against the same workspace/global USD caps.
|
|
599
|
+
|
|
600
|
+
Read an audio quote before generation with `blitzreels generate audio-quote --kind music --seconds 30 --preview --json`.
|
|
601
|
+
For voiceover, supply `--kind voiceover --characters N`; `--recovery` quotes saved-audio recovery without a new provider purchase.
|
|
602
|
+
This command performs a GET and reserves nothing. Unavailable rates return a null amount and reason.
|
|
603
|
+
The corresponding MCP tool is `generation_audio_quote`; admission rechecks the workspace budget and credits.
|
|
604
|
+
|
|
605
|
+
|
|
606
|
+
Read image/video/prompt costs with `blitzreels generate quote --kind image --model fal-ai/nano-banana-2 --json`.
|
|
607
|
+
Video quotes require `--seconds`; supported models accept `--resolution`.
|
|
608
|
+
`--source-image-model` adds a generated starting image for image-to-video and `--enhance-prompt` adds one enhancement.
|
|
609
|
+
`--kind prompt` quotes enhancement alone. The corresponding MCP tool is `generation_quote`.
|
|
610
|
+
These reads report configured maximum USD, credits, limits and eligibility without reserving money or contacting providers.
|
|
611
|
+
The combined quote expires with its earliest policy; actual generation validates all inputs and rechecks current limits.
|
|
612
|
+
|
|
613
|
+
|
|
614
|
+
`generate audio-quote --kind voiceover --characters N --narration-take --preview --json` quotes direct narration previews.
|
|
615
|
+
Use `--recovery` to quote processing of an uncertain take without a replacement speech purchase.
|
|
616
|
+
|
|
617
|
+
Read frame costs with `blitzreels projects preview-quote --project-id ID --frame-count 3 --mode analyze --json`.
|
|
618
|
+
`project snapshot`, `project snapshots` and `carousels preview` accept `--idempotency-key KEY` to reuse saved previews.
|
|
619
|
+
Keep the same key and inputs when retrying; changed inputs conflict and uncertain jobs require reconciliation.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-context.d.ts","sourceRoot":"","sources":["../src/agent-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,KAAK,WAAW,EAAiB,MAAM,iBAAiB,CAAC;AAElE,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAQnE,MAAM,MAAM,YAAY,GAAG;IACzB,cAAc,EAAE,GAAG,CAAC;IACpB,GAAG,EAAE;QACH,IAAI,EAAE,YAAY,CAAC;QACnB,OAAO,EAAE,MAAM,CAAC;QAChB,gBAAgB,EAAE,MAAM,CAAC;QACzB,UAAU,EAAE,KAAK,CAAC;YAChB,IAAI,EAAE,WAAW,CAAC;YAClB,OAAO,EAAE,MAAM,CAAC;YAChB,SAAS,EAAE,OAAO,CAAC;SACpB,CAAC,CAAC;KACJ,CAAC;IACF,oBAAoB,EAAE,MAAM,EAAE,CAAC;IAC/B,uBAAuB,EAAE,uCAAuC,CAAC;IACjE,QAAQ,EAAE,KAAK,CAAC;QACd,YAAY,EAAE,MAAM,CAAC;QACrB,OAAO,EAAE,MAAM,CAAC;QAChB,QAAQ,EAAE,MAAM,CAAC;QACjB,WAAW,EAAE,MAAM,CAAC;QACpB,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,OAAO,CAAC;QACjB,WAAW,EAAE,OAAO,CAAC;QACrB,aAAa,EAAE,OAAO,CAAC;QACvB,iBAAiB,EAAE,OAAO,CAAC;QAC3B,oBAAoB,EAAE,SAAS,mBAAmB,EAAE,CAAC;QACrD,KAAK,EAAE,SAAS,QAAQ,EAAE,CAAC;QAC3B,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;QAC5B,MAAM,EAAE,KAAK,CAA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Q,EAAE,KAAK,CAAC;QACd,YAAY,EAAE,MAAM,CAAC;QACrB,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC,CAAC;CACJ,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,YAAY,GAAG,iBAAiB,CAAC;AAElE,wBAAgB,sBAAsB,CAAC,EACrC,YAAY,GACb,EAAE;IACD,YAAY,EAAE,WAAW,EAAE,CAAC;CAC7B,GAAG,iBAAiB,CAqCpB;AAED,wBAAgB,iBAAiB,CAAC,EAChC,aAAa,EACb,YAAY,EACZ,WAA6B,GAC9B,EAAE;IACD,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,YAAY,CA+Cf;AAED,wBAAgB,sBAAsB,CAAC,EACrC,KAAK,GACN,EAAE;IACD,KAAK,EAAE,kBAAkB,CAAC;CAC3B,GAAG,MAAM,EAAE,CAaX"}
|
package/dist/agent-context.js
CHANGED
|
@@ -4,7 +4,8 @@ import { CLI_VERSION, DEFAULT_BASE_URL } from "./cli-runtime.js";
|
|
|
4
4
|
import { commandLabel, commandsEqual, flagsForCommand, suggestCommandSpecs, } from "./command-metadata.js";
|
|
5
5
|
export function buildAgentContextIndex({ commandSpecs, }) {
|
|
6
6
|
const operations = commandSpecs
|
|
7
|
-
.filter((spec) =>
|
|
7
|
+
.filter((spec) => spec.discovery !== "detail" &&
|
|
8
|
+
!/^(?:(?:Shallow|Legacy-compatible) )?alias for /i.test(spec.description))
|
|
8
9
|
.map((spec) => ({
|
|
9
10
|
operation_id: operationIdForCommand({ command: spec.command }),
|
|
10
11
|
command: commandLabel({ command: spec.command }),
|
|
@@ -19,8 +20,8 @@ export function buildAgentContextIndex({ commandSpecs, }) {
|
|
|
19
20
|
version: CLI_VERSION,
|
|
20
21
|
},
|
|
21
22
|
command_count: operations.length,
|
|
22
|
-
detail_command: 'blitzreels
|
|
23
|
-
full_command: "blitzreels
|
|
23
|
+
detail_command: 'blitzreels schema --command "COMMAND" --json',
|
|
24
|
+
full_command: "blitzreels schema --full --json",
|
|
24
25
|
write_operation_ids: operations
|
|
25
26
|
.filter((operation) => operation.mutates)
|
|
26
27
|
.map((operation) => operation.operation_id),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-context.js","sourceRoot":"","sources":["../src/agent-context.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oCAAoC,GAErC,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAoB,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEjE,OAAO,EACL,YAAY,EACZ,aAAa,EACb,eAAe,EACf,mBAAmB,GACpB,MAAM,uBAAuB,CAAC;AA0D/B,MAAM,UAAU,sBAAsB,CAAC,EACrC,YAAY,GAGb;IACC,MAAM,UAAU,GAAG,YAAY;SAC5B,MAAM,
|
|
1
|
+
{"version":3,"file":"agent-context.js","sourceRoot":"","sources":["../src/agent-context.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oCAAoC,GAErC,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAoB,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEjE,OAAO,EACL,YAAY,EACZ,aAAa,EACb,eAAe,EACf,mBAAmB,GACpB,MAAM,uBAAuB,CAAC;AA0D/B,MAAM,UAAU,sBAAsB,CAAC,EACrC,YAAY,GAGb;IACC,MAAM,UAAU,GAAG,YAAY;SAC5B,MAAM,CACL,CAAC,IAAI,EAAE,EAAE,CACP,IAAI,CAAC,SAAS,KAAK,QAAQ;QAC3B,CAAC,iDAAiD,CAAC,IAAI,CACrD,IAAI,CAAC,WAAW,CACjB,CACJ;SACA,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CA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CAWhC;AAED,wBAAgB,wBAAwB,CAAC,EACvC,OAAO,GACR,EAAE;IACD,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,GAAG,aAAa,CAQhB;AAED,wBAAgB,sBAAsB,IAAI,MAAM,GAAG,SAAS,CAG3D"}
|
|
@@ -41,7 +41,11 @@ export function parseArgs({ argv }) {
|
|
|
41
41
|
return { command, flags };
|
|
42
42
|
}
|
|
43
43
|
function appendRepeatableFlag({ key, current, value, }) {
|
|
44
|
-
if ((key === "reference" ||
|
|
44
|
+
if ((key === "reference" ||
|
|
45
|
+
key === "reference-asset-id" ||
|
|
46
|
+
key === "reference-asset-uri" ||
|
|
47
|
+
key === "sample" ||
|
|
48
|
+
key === "sample-asset-id") &&
|
|
45
49
|
typeof current === "string") {
|
|
46
50
|
return `${current},${value}`;
|
|
47
51
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli-command-routing.js","sourceRoot":"","sources":["../src/cli-command-routing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAEzD,OAAO,EAEL,YAAY,EACZ,aAAa,EACb,eAAe,EACf,YAAY,EACZ,mBAAmB,EACnB,aAAa,GACd,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEtD,MAAM,UAAU,SAAS,CAAC,EAAE,IAAI,EAAsB;IACpD,MAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,MAAM,KAAK,GAAU,EAAE,CAAC;IAExB,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC;QACjD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tB,IAAI,EAAE,cAAc;YACpB,OAAO,EAAE,wDAAwD;SAClE,CAAC,CAAC;IACL,CAAC;AACH,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { SequenceOperationId } from "@blitzreels/sdk";
|
|
2
2
|
export type CommandSpec = {
|
|
3
|
+
discovery: "index" | "detail";
|
|
3
4
|
command: string[];
|
|
4
5
|
usage: string;
|
|
5
6
|
description: string;
|
|
@@ -28,7 +29,7 @@ export declare const GLOBAL_FLAGS: readonly ["api-key", "base-url", "json", "hel
|
|
|
28
29
|
export declare const TEXT_STYLE_FLAGS: readonly ["spec-json", "spec-file", "font-family", "font-size", "font-weight", "color", "background-color", "padding-x", "padding-y", "border-radius", "top", "left", "text-align", "text-shadow", "no-background"];
|
|
29
30
|
export declare const CAPTION_WORD_SELECTOR_FLAGS: readonly ["word-id", "word-ids", "timeline-item-id", "match-text", "match-pattern", "all", "from", "to"];
|
|
30
31
|
export declare const CAPTION_WORD_STYLE_FLAGS: readonly ["style-json", "style-file", "font-family", "font-weight", "font-style", "color", "active-color", "background-color", "active-animation", "text-transform", "text-shadow", "glow-color", "glow-blur-px", "scale", "offset-x", "offset-y", "rotation-deg", "letter-spacing", "opacity", "clear-existing"];
|
|
31
|
-
export declare function commandSpec({ command, usage, flags, description, examples, mutates, destructive, requiresAuth, dryRunSupported, kernelOperationIds, }: {
|
|
32
|
+
export declare function commandSpec({ discovery, command, usage, flags, description, examples, mutates, destructive, requiresAuth, dryRunSupported, kernelOperationIds, }: {
|
|
32
33
|
command: string[];
|
|
33
34
|
usage: string;
|
|
34
35
|
flags?: readonly FlagInput[];
|
|
@@ -39,6 +40,7 @@ export declare function commandSpec({ command, usage, flags, description, exampl
|
|
|
39
40
|
requiresAuth?: boolean;
|
|
40
41
|
dryRunSupported?: boolean;
|
|
41
42
|
kernelOperationIds?: readonly SequenceOperationId[];
|
|
43
|
+
discovery?: "index" | "detail";
|
|
42
44
|
}): CommandSpec;
|
|
43
45
|
export declare function commandLabel({ command }: {
|
|
44
46
|
command: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-metadata.d.ts","sourceRoot":"","sources":["../src/command-metadata.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAE3D,MAAM,MAAM,WAAW,GAAG;IACxB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,SAAS,QAAQ,EAAE,CAAC;IAC3B,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,OAAO,CAAC;IACtB,eAAe,EAAE,OAAO,CAAC;IACzB,kBAAkB,EAAE,SAAS,mBAAmB,EAAE,CAAC;CACpD,CAAC;AAEF,KAAK,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,CAAC;AAE1E,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,QAAQ,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC;IACtD,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC;IACpC,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAExE,eAAO,MAAM,YAAY,YACvB,SAAS,EACT,UAAU,EACV,MAAM,EACN,MAAM,EACN,SAAS,EACT,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AAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,MAAM,EAAE,CAAA;CAAE,GAAG,MAAM,CAEvE;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,CAKtE;AAED,wBAAgB,eAAe,CAAC,EAC9B,IAAI,EACJ,aAAa,GACd,EAAE;IACD,IAAI,EAAE,WAAW,CAAC;IAClB,aAAa,EAAE,OAAO,CAAC;CACxB,GAAG,QAAQ,EAAE,CAkBb;AAED,wBAAgB,mBAAmB,CAAC,EAClC,OAAO,EACP,KAAK,GACN,EAAE;IACD,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,KAAK,EAAE,WAAW,EAAE,CAAC;CACtB,GAAG,WAAW,EAAE,CAqBhB;AAED,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,UAAU,GACX,EAAE;IACD,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB,GAAG,MAAM,EAAE,CAUX"}
|
package/dist/command-metadata.js
CHANGED
|
@@ -55,9 +55,10 @@ export const CAPTION_WORD_STYLE_FLAGS = [
|
|
|
55
55
|
"opacity",
|
|
56
56
|
"clear-existing",
|
|
57
57
|
];
|
|
58
|
-
export function commandSpec({ command, usage, flags = [], description, examples, mutates, destructive, requiresAuth, dryRunSupported, kernelOperationIds, }) {
|
|
58
|
+
export function commandSpec({ discovery = "index", command, usage, flags = [], description, examples, mutates, destructive, requiresAuth, dryRunSupported, kernelOperationIds, }) {
|
|
59
59
|
const inferredMutates = mutates ?? inferMutates({ command });
|
|
60
60
|
return {
|
|
61
|
+
discovery,
|
|
61
62
|
command,
|
|
62
63
|
usage,
|
|
63
64
|
description: description ?? inferCommandDescription({ command }),
|
|
@@ -313,7 +314,7 @@ function inferFlagEnum({ name, usage, }) {
|
|
|
313
314
|
}
|
|
314
315
|
const match = usage.match(new RegExp(`--${name} ([^\\]\\s]+)`));
|
|
315
316
|
const value = match?.[1];
|
|
316
|
-
if (!value?.includes("|")) {
|
|
317
|
+
if (!value?.includes("|") || value.includes("--")) {
|
|
317
318
|
return undefined;
|
|
318
319
|
}
|
|
319
320
|
return value.split("|").filter((item) => item.length > 0);
|