@lalalic/markcut 2.7.0 → 2.7.1
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/AGENTS.md +5 -4
- package/README.md +4 -0
- package/package.json +1 -1
- package/skills/markcut/SKILL.md +17 -3
- package/src/render/cli.mjs +4 -2
package/AGENTS.md
CHANGED
|
@@ -5,10 +5,11 @@
|
|
|
5
5
|
## Quick Start
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm run render storyboard.md
|
|
9
|
-
npm run preview storyboard.md --edit
|
|
10
|
-
npm
|
|
11
|
-
npm
|
|
8
|
+
npm run render storyboard.md # render markdown → MP4 (9x16 default)
|
|
9
|
+
npm run preview storyboard.md --edit # live preview with auto-reload
|
|
10
|
+
npm run preview storyboard.md --storyboard # fast structure preview (skips TTI/TTV, shows prompts as placeholders)
|
|
11
|
+
npm test # unit + integration tests
|
|
12
|
+
npm run typecheck # TypeScript type check
|
|
12
13
|
```
|
|
13
14
|
|
|
14
15
|
## Input formats
|
package/README.md
CHANGED
|
@@ -9,6 +9,9 @@ npx markcut render storyboard.md
|
|
|
9
9
|
# Preview with live edit (edit .md file, player auto-reloads)
|
|
10
10
|
npx markcut preview storyboard.md --edit
|
|
11
11
|
|
|
12
|
+
# Fast structure preview: show TTI/TTV prompts as placeholders, skip slow generation
|
|
13
|
+
npx markcut preview storyboard.md --storyboard
|
|
14
|
+
|
|
12
15
|
# Label clips in a stream tree
|
|
13
16
|
npx markcut preview labels.json --label --port=3031
|
|
14
17
|
```
|
|
@@ -43,6 +46,7 @@ storyboard.md ──[parse]──▶ DescriptiveRoot ──[compile]──▶
|
|
|
43
46
|
| **Tween animation** | `tween(from, to)` function calls in JSX for frame-accurate numeric animation |
|
|
44
47
|
| **Styling** | Inline `style` strings on any node for CSS. JSX components use inline React styles |
|
|
45
48
|
| **Live edit** | `--edit` watches the input file, re-runs pipeline, auto-reloads player |
|
|
49
|
+
| **Storyboard** | `--storyboard` fast structure preview: replaces TTI/TTV prompts with placeholder components, skips slow generation. Implies `--edit` |
|
|
46
50
|
| **Label mode** | `--label` interactive player with per-scene label input, saves to labels.json |
|
|
47
51
|
| **CLI** | `render`, `preview` commands for MP4 export and Remotion Studio |
|
|
48
52
|
| **Programmatic** | `MarkCut` / `DescriptiveComposition` React components for embedding |
|
package/package.json
CHANGED
package/skills/markcut/SKILL.md
CHANGED
|
@@ -10,8 +10,9 @@ Everything video is a **stream tree** described with markdown. see [docs/markdow
|
|
|
10
10
|
|
|
11
11
|
## Video Design Utilities
|
|
12
12
|
|
|
13
|
-
###
|
|
14
|
-
- `npx @lalalic/markcut
|
|
13
|
+
### Vision — understand video and images
|
|
14
|
+
- `npx @lalalic/markcut vision <folder>` provides tool to understand video and images in a folder, and generate a `metadata.json` file with with text description, duration, and other metadata for each media file.
|
|
15
|
+
- `npx @lalalic/markcut vision <folder> --label`, interactive mode, provides tool to label video and images with text, and above metadata.
|
|
15
16
|
|
|
16
17
|
### Storyboard — plan video structure with scene nodes
|
|
17
18
|
|
|
@@ -20,6 +21,18 @@ Everything video is a **stream tree** described with markdown. see [docs/markdow
|
|
|
20
21
|
|
|
21
22
|
see [docs/markdown-descriptive.md](docs/markdown-descriptive.md) for full details.
|
|
22
23
|
|
|
24
|
+
### `--storyboard` — fast structure preview
|
|
25
|
+
```bash
|
|
26
|
+
npx @lalalic/markcut preview video.md --storyboard
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Skips slow TTI/TTV/STT generation and renders a fast preview where:
|
|
30
|
+
- `image`/`video` nodes with `prompt` but no `src` → `<StoryboardSlot>` placeholder showing the prompt text
|
|
31
|
+
- `audio`/`script` nodes → `<StoryboardCaption>` overlays showing narration text
|
|
32
|
+
- A `<StoryboardInfo>` card with root metadata (title, dimensions, fps) appears at the first frame
|
|
33
|
+
|
|
34
|
+
Implies `--edit` so you can chat to reshape the story and see live reloads.
|
|
35
|
+
|
|
23
36
|
### Video Variants
|
|
24
37
|
- define variants for different video configurations, such as different languages, aspects, platforms
|
|
25
38
|
|
|
@@ -43,10 +56,11 @@ npx @lalalic/markcut <command> [options]
|
|
|
43
56
|
npx @lalalic/markcut --help # get overall information
|
|
44
57
|
npx @lalalic/markcut --show-clis # get command specific information
|
|
45
58
|
npx @lalalic/markcut preview <file> # assemble and preview the video with a local server, and chat to edit the video and auto refresh
|
|
59
|
+
npx @lalalic/markcut preview <file> --storyboard # fast structure preview: replaces TTI/TTV prompts with placeholder components, skips slow generation
|
|
46
60
|
npx @lalalic/markcut render <file> # render the video to mp4
|
|
47
61
|
npx @lalalic/markcut vision <folder> # vision understanding medias in folder
|
|
48
62
|
npx @lalalic/markcut vision <folder> --label # an extra step to provide UI to label the medias with text, time ranges
|
|
49
|
-
|
|
63
|
+
|
|
50
64
|
```
|
|
51
65
|
|
|
52
66
|
---
|
package/src/render/cli.mjs
CHANGED
|
@@ -65,8 +65,10 @@ Commands:
|
|
|
65
65
|
|
|
66
66
|
preview <file.json|.md> Open player with live preview
|
|
67
67
|
--label Open label input overlay
|
|
68
|
-
--storyboard Fast structure preview:
|
|
69
|
-
|
|
68
|
+
--storyboard Fast structure preview: replaces TTI/TTV prompt
|
|
69
|
+
nodes with <StoryboardSlot> placeholders and
|
|
70
|
+
script nodes with <StoryboardCaption> overlays.
|
|
71
|
+
Skips slow generation (TTI/TTV/STT).
|
|
70
72
|
Implies --edit so you can reshape the story.
|
|
71
73
|
--no-browser Skip opening browser automatically
|
|
72
74
|
--port <num> Port for the player server (default: 3001)
|