@superdoc/cli 0.35.0-next.24 → 0.35.0-next.26

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.
Files changed (3) hide show
  1. package/dist/index.js +94491 -94372
  2. package/package.json +9 -9
  3. package/skill/SKILL.md +24 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc/cli",
3
- "version": "0.35.0-next.24",
3
+ "version": "0.35.0-next.26",
4
4
  "description": "Command-line interface for SuperDoc: inspect, convert, and edit .docx files from a terminal or a script.",
5
5
  "type": "module",
6
6
  "license": "AGPL-3.0",
@@ -29,15 +29,15 @@
29
29
  "fast-glob": "^3.3.3",
30
30
  "happy-dom": "^20.3.4",
31
31
  "ws": "^8.18.0",
32
- "superdoc": "2.15.0-next.13",
32
+ "superdoc": "2.15.0-next.14",
33
33
  "y-websocket": "^3.0.0",
34
34
  "yjs": "13.6.31"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@hocuspocus/server": "^2.13.6",
38
- "@superdoc/sdk": "2.12.0-next.24",
38
+ "@superdoc/sdk": "2.12.0-next.26",
39
39
  "@superdoc/document-api": "0.1.0-alpha.0",
40
- "@superdoc/docx-engine": "0.14.0-next.13",
40
+ "@superdoc/docx-engine": "0.14.0-next.14",
41
41
  "@types/bun": "^1.3.8",
42
42
  "@types/node": "22.19.2",
43
43
  "@types/ws": "^8.5.13",
@@ -51,11 +51,11 @@
51
51
  "access": "public"
52
52
  },
53
53
  "optionalDependencies": {
54
- "@superdoc/cli-darwin-arm64": "0.35.0-next.24",
55
- "@superdoc/cli-darwin-x64": "0.35.0-next.24",
56
- "@superdoc/cli-linux-x64": "0.35.0-next.24",
57
- "@superdoc/cli-linux-arm64": "0.35.0-next.24",
58
- "@superdoc/cli-windows-x64": "0.35.0-next.24"
54
+ "@superdoc/cli-darwin-arm64": "0.35.0-next.26",
55
+ "@superdoc/cli-darwin-x64": "0.35.0-next.26",
56
+ "@superdoc/cli-linux-x64": "0.35.0-next.26",
57
+ "@superdoc/cli-linux-arm64": "0.35.0-next.26",
58
+ "@superdoc/cli-windows-x64": "0.35.0-next.26"
59
59
  },
60
60
  "scripts": {
61
61
  "predev": "node scripts/ensure-superdoc-build.js",
package/skill/SKILL.md CHANGED
@@ -58,7 +58,7 @@ superdoc close
58
58
  ```
59
59
 
60
60
  - `--content-override` is the fastest way to seed paragraphs, headings, lists, and `<br/>` line breaks.
61
- - Use `--override-type markdown|html|text` explicitly. `open` rejects `--content-override` without it.
61
+ - Use `--override-type markdown|html|text` explicitly with either `--content-override` or `--content-override-file`.
62
62
  - For generation, do not start with `query match` unless you are modifying content that already exists.
63
63
 
64
64
  ### 3) Generate incrementally, then reuse the insert receipt target
@@ -167,6 +167,29 @@ superdoc insert tab --block-id p1 --offset 12
167
167
 
168
168
  - Direct invoke: `call <operationId> --input-json '{...}'` (JSON output only — `--pretty` is not supported)
169
169
 
170
+ ## Text, HTML, and Markdown Files
171
+
172
+ For large content, use a UTF-8 file or pipe stdin with `-`. File content follows the same conversion and validation as inline content.
173
+
174
+ ```bash
175
+ superdoc open --content-override-file ./body.md --override-type markdown
176
+ superdoc insert --type html --value-file ./section.html
177
+ superdoc save --out ./generated.docx
178
+ superdoc close
179
+ ```
180
+
181
+ ```bash
182
+ superdoc open --content-override-file - --override-type html < ./body.html
183
+ superdoc insert --type text --value-file - < ./appendix.txt
184
+ superdoc save --out ./generated.docx
185
+ superdoc close
186
+ ```
187
+
188
+ - Use `--value-file <path|->` for `insert --type text|html|markdown`.
189
+ - Use `--content-override-file <path|->` for blank or template initialization with `open --override-type text|html|markdown`.
190
+ - Choose one content source: inline or file/stdin. An empty file is an explicit empty payload.
191
+ - Relative paths resolve from the current working directory. DOCX input and content input cannot both use stdin in the same command.
192
+
170
193
  ## JSON/File Payload Flags
171
194
 
172
195
  Not all `--*-file` variants are available on every command. Use `describe command <name>` to check.