@superdoc/cli 0.36.1-next.8 → 0.36.1-next.9
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/index.js +103084 -103170
- package/dist/prompts/system-prompt.md +2 -2
- package/dist/tools/system-prompt-mcp.md +0 -1
- package/dist/tools/system-prompt.md +0 -1
- package/package.json +9 -9
|
@@ -74,7 +74,7 @@ ACTIONS (superdoc_perform_action with flat args)
|
|
|
74
74
|
- move_table: tableOrdinal? (default 1), placement {at:"document_end"|"document_start"|"after"|"before", selector?}. THE way to move a whole table in ONE call — never delete-and-recreate or chain inserts/undos to relocate a table. changeMode:"tracked" records the move for review.
|
|
75
75
|
- delete_table: tableOrdinal? (default 1), changeMode?. THE way to delete an entire table in ONE call — never delete rows one by one or reuse another table.
|
|
76
76
|
- style_table: tableOrdinal? (default 1), accentColor? (header fill hex). ONE call makes a table look professional: accent header row with white bold text, bold first column, banded rows, clean borders. Use after create_table or on any existing table. changeMode:"tracked" records the formatting for review.
|
|
77
|
-
- insert_table_row: tableOrdinal (1-based), rowIndex (0-based; omit to append), position:"above"|"below", optional cellTexts.
|
|
77
|
+
- insert_table_row: tableOrdinal (1-based), rowIndex (0-based; omit to append), position:"above"|"below", optional cellTexts.
|
|
78
78
|
- insert_table_column: tableOrdinal, columnIndex (0-based; omit to append right), position:"left"|"right", optional headerText.
|
|
79
79
|
- delete_table_row / delete_table_column: rowIndex or columnIndex required, tableOrdinal optional.
|
|
80
80
|
- split_table: tableOrdinal, rowIndex (>=1), optional separatorText.
|
|
@@ -103,7 +103,7 @@ OPERATING RULES
|
|
|
103
103
|
- For anchored rewrites or multi-term edits, prefer textSearch selectors over copied nodeIds. For clause text inside tables, use a tableCell selector with replace_text.
|
|
104
104
|
- For tab-indented headings, replace only the visible text with replace_text (rewrite_block can delete the tab node).
|
|
105
105
|
- For BULK or PATTERN transforms (every percentage, every date), use ONE replace_text call with multiple edits. For bulk FORMATTING ("bold all the dates"): read the matching texts first, then ONE format_text call with targetTexts.
|
|
106
|
-
- For preview-only requests ("show what it would look like", "don't save"),
|
|
106
|
+
- For preview-only requests ("show what it would look like", "don't save"), make NO mutating call — read the document with superdoc_inspect and describe the change in your answer. If they want to SEE it in the document before it is final, make the edit with changeMode:"tracked" so it lands as a reviewable suggestion they can accept or reject — but only on an action that records tracked changes; for an action marked Direct edit, describe the change instead of making it.
|
|
107
107
|
- Pure count questions: superdoc_inspect countsOnly:true, then stop. Use includeDomains to keep snapshots small.
|
|
108
108
|
- Do not include doc or sessionId in tool args. Never rely on benchmark routing, eval metadata, or fixture names.
|
|
109
109
|
- If the runtime truly cannot express the request, say what is missing instead of faking success.
|
|
@@ -478,7 +478,6 @@ When formatting newly created content, use the right source:
|
|
|
478
478
|
- **Do NOT hardcode formatting values.** Always read from blocks data and replicate.
|
|
479
479
|
- **Do NOT copy heading/title formatting onto body paragraphs.** Read from body text blocks (alignment "justify" or "left"), not title blocks.
|
|
480
480
|
- **Pass structured objects, not JSON-encoded strings.** Fields like `at`, `target`, and `inline` expect objects, not serialized JSON strings.
|
|
481
|
-
- **Only pass `dryRun` when the action's schema explicitly lists it.** Do not assume every action accepts it. Prefer a real call over a preview for destructive actions unless dryRun is documented for that action.
|
|
482
481
|
- **If blocks still report `underline: true` after you explicitly removed it, treat it as a style inheritance artifact.** Do not retry formatting to fix it.
|
|
483
482
|
- **On "Unknown field" errors, drop the unrecognized field and retry.** Use the narrowest working call shape rather than guessing alternative field names.
|
|
484
483
|
- **Table styling crosses two tools.** Borders / shading / cnf flags / spacing are on `superdoc_table`; cell-text alignment and font color/weight are on `superdoc_format` (paragraph- and run-level). A "style the whole table" pass calls both. See the Tables: cross-tool workflows section for the full recipe.
|
|
@@ -432,7 +432,6 @@ When formatting newly created content, use the right source:
|
|
|
432
432
|
- **Do NOT hardcode formatting values.** Always read from blocks data and replicate.
|
|
433
433
|
- **Do NOT copy heading/title formatting onto body paragraphs.** Read from body text blocks (alignment "justify" or "left"), not title blocks.
|
|
434
434
|
- **Pass structured objects, not JSON-encoded strings.** Fields like `at`, `target`, and `inline` expect objects, not serialized JSON strings.
|
|
435
|
-
- **Only pass `dryRun` when the action's schema explicitly lists it.** Do not assume every action accepts it. Prefer a real call over a preview for destructive actions unless dryRun is documented for that action.
|
|
436
435
|
- **If blocks still report `underline: true` after you explicitly removed it, treat it as a style inheritance artifact.** Do not retry formatting to fix it.
|
|
437
436
|
- **On "Unknown field" errors, drop the unrecognized field and retry.** Use the narrowest working call shape rather than guessing alternative field names.
|
|
438
437
|
- **Table styling crosses two tools.** Borders / shading / cnf flags / spacing are on `superdoc_table`; cell-text alignment and font color/weight are on `superdoc_format` (paragraph- and run-level). A "style the whole table" pass calls both. See the Tables: cross-tool workflows section for the full recipe.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc/cli",
|
|
3
|
-
"version": "0.36.1-next.
|
|
3
|
+
"version": "0.36.1-next.9",
|
|
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.16.1-next.
|
|
32
|
+
"superdoc": "2.16.1-next.9",
|
|
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.13.1-next.
|
|
38
|
+
"@superdoc/sdk": "2.13.1-next.9",
|
|
39
39
|
"@superdoc/document-api": "0.1.0-alpha.0",
|
|
40
|
-
"@superdoc/docx-engine": "0.15.1-next.
|
|
40
|
+
"@superdoc/docx-engine": "0.15.1-next.9",
|
|
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.36.1-next.
|
|
55
|
-
"@superdoc/cli-darwin-x64": "0.36.1-next.
|
|
56
|
-
"@superdoc/cli-linux-x64": "0.36.1-next.
|
|
57
|
-
"@superdoc/cli-linux-arm64": "0.36.1-next.
|
|
58
|
-
"@superdoc/cli-windows-x64": "0.36.1-next.
|
|
54
|
+
"@superdoc/cli-darwin-arm64": "0.36.1-next.9",
|
|
55
|
+
"@superdoc/cli-darwin-x64": "0.36.1-next.9",
|
|
56
|
+
"@superdoc/cli-linux-x64": "0.36.1-next.9",
|
|
57
|
+
"@superdoc/cli-linux-arm64": "0.36.1-next.9",
|
|
58
|
+
"@superdoc/cli-windows-x64": "0.36.1-next.9"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"predev": "node scripts/ensure-superdoc-build.js",
|