@mulmocast/slide 0.3.0 → 0.3.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.
|
@@ -8,6 +8,14 @@ Convert a MulmoScript JSON into an ExtendedScript by adding `scriptMeta` and `be
|
|
|
8
8
|
/extend <mulmo_script.json path> [--source <source file path>]
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
+
## CLI Command
|
|
12
|
+
|
|
13
|
+
Determine the correct CLI command prefix by checking `package.json` in the project root:
|
|
14
|
+
- If `name` is `"@mulmocast/slide"` (i.e., developing MulmoCast-Slides itself) → use `yarn cli`
|
|
15
|
+
- Otherwise → use `npx mulmo-slide`
|
|
16
|
+
|
|
17
|
+
Use this prefix (referred to as `{cli}` below) for all CLI calls in the steps.
|
|
18
|
+
|
|
11
19
|
## Instructions
|
|
12
20
|
|
|
13
21
|
### Step 1: Read Inputs
|
|
@@ -16,7 +24,7 @@ Convert a MulmoScript JSON into an ExtendedScript by adding `scriptMeta` and `be
|
|
|
16
24
|
2. Read the ExtendedScript schema: `.claude/skills/extend/references/extended-script-schema.md`
|
|
17
25
|
3. Check for extracted texts file:
|
|
18
26
|
- Look for `extracted_texts.json` in the same directory as the MulmoScript
|
|
19
|
-
- This file is generated by `
|
|
27
|
+
- This file is generated by `{cli} pdf` and contains per-page text extracted from the source PDF
|
|
20
28
|
- If found, read it — this provides the raw text content for each beat
|
|
21
29
|
4. Locate the source file:
|
|
22
30
|
- If `--source` is specified, use that file
|
|
@@ -85,7 +93,7 @@ Based on the analysis, generate:
|
|
|
85
93
|
- Same directory as input: replace `mulmo_script.json` with `extended_script.json`
|
|
86
94
|
- Example: `scripts/simple_text/mulmo_script.json` -> `scripts/simple_text/extended_script.json`
|
|
87
95
|
2. Write the JSON with 2-space indentation
|
|
88
|
-
3. Run `
|
|
96
|
+
3. Run `{cli} extend validate <output_path>` to validate against the schema
|
|
89
97
|
4. If validation fails, fix the errors and re-write the file, then validate again
|
|
90
98
|
5. Generate MulmoScript from ExtendedScript using the preprocessor:
|
|
91
99
|
```bash
|
|
@@ -10,6 +10,14 @@ Convert any supported source file (PDF, PPTX, Markdown, Keynote) into a validate
|
|
|
10
10
|
|
|
11
11
|
Supported formats: `.pdf`, `.pptx`, `.md`, `.key`
|
|
12
12
|
|
|
13
|
+
## CLI Command
|
|
14
|
+
|
|
15
|
+
Determine the correct CLI command prefix by checking `package.json` in the project root:
|
|
16
|
+
- If `name` is `"@mulmocast/slide"` (i.e., developing MulmoCast-Slides itself) → use `yarn cli`
|
|
17
|
+
- Otherwise → use `npx mulmo-slide`
|
|
18
|
+
|
|
19
|
+
Use this prefix (referred to as `{cli}` below) for all CLI calls in the steps.
|
|
20
|
+
|
|
13
21
|
## Instructions
|
|
14
22
|
|
|
15
23
|
### Step 1: Convert Source to MulmoScript
|
|
@@ -18,22 +26,22 @@ Detect the file format and run the appropriate converter.
|
|
|
18
26
|
|
|
19
27
|
**PDF:**
|
|
20
28
|
```bash
|
|
21
|
-
|
|
29
|
+
{cli} pdf <file>
|
|
22
30
|
```
|
|
23
31
|
|
|
24
32
|
**PPTX:**
|
|
25
33
|
```bash
|
|
26
|
-
|
|
34
|
+
{cli} pptx <file>
|
|
27
35
|
```
|
|
28
36
|
|
|
29
37
|
**Markdown:**
|
|
30
38
|
```bash
|
|
31
|
-
|
|
39
|
+
{cli} markdown <file>
|
|
32
40
|
```
|
|
33
41
|
|
|
34
42
|
**Keynote (.key):**
|
|
35
43
|
```bash
|
|
36
|
-
|
|
44
|
+
{cli} keynote <file>
|
|
37
45
|
```
|
|
38
46
|
|
|
39
47
|
This produces `scripts/{basename}/mulmo_script.json` and (for PDF) `scripts/{basename}/extracted_texts.json`.
|
|
@@ -103,7 +111,7 @@ Based on the analysis, generate:
|
|
|
103
111
|
|
|
104
112
|
Run validation:
|
|
105
113
|
```bash
|
|
106
|
-
|
|
114
|
+
{cli} extend validate scripts/{basename}/extended_script.json
|
|
107
115
|
```
|
|
108
116
|
|
|
109
117
|
If validation fails, fix the errors and re-write the file. Repeat until validation passes.
|
package/package.json
CHANGED