@deckflow/deckuse 1.2.1 → 1.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.
- package/README.es.md +342 -0
- package/README.fr.md +342 -0
- package/README.ja.md +342 -0
- package/README.ko.md +342 -0
- package/README.md +60 -8
- package/README.pt-BR.md +342 -0
- package/README.ru.md +342 -0
- package/README.zh-CN.md +367 -0
- package/assets/default.docx +0 -0
- package/assets/default.pptx +0 -0
- package/dist/bin.js +188 -21
- package/dist/bin.js.map +1 -1
- package/dist/core/adapter.d.ts +24 -0
- package/dist/core/adapter.d.ts.map +1 -0
- package/dist/core/adapter.js +20 -0
- package/dist/core/adapter.js.map +1 -0
- package/dist/core/executor.d.ts +24 -0
- package/dist/core/executor.d.ts.map +1 -0
- package/dist/core/executor.js +65 -0
- package/dist/core/executor.js.map +1 -0
- package/dist/core/index.d.ts +7 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +7 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/length.d.ts +27 -0
- package/dist/core/length.d.ts.map +1 -0
- package/dist/core/length.js +63 -0
- package/dist/core/length.js.map +1 -0
- package/dist/core/measure.d.ts +24 -0
- package/dist/core/measure.d.ts.map +1 -0
- package/dist/core/measure.js +79 -0
- package/dist/core/measure.js.map +1 -0
- package/dist/core/not-implemented.d.ts +3 -0
- package/dist/core/not-implemented.d.ts.map +1 -0
- package/dist/core/not-implemented.js +12 -0
- package/dist/core/not-implemented.js.map +1 -0
- package/dist/core/schema.d.ts +3065 -0
- package/dist/core/schema.d.ts.map +1 -0
- package/dist/core/schema.js +799 -0
- package/dist/core/schema.js.map +1 -0
- package/dist/default-template.d.ts +8 -0
- package/dist/default-template.d.ts.map +1 -0
- package/dist/default-template.js +29 -0
- package/dist/default-template.js.map +1 -0
- package/dist/docx/adapter.d.ts +29 -0
- package/dist/docx/adapter.d.ts.map +1 -0
- package/dist/docx/adapter.js +442 -0
- package/dist/docx/adapter.js.map +1 -0
- package/dist/docx/addressing.d.ts +18 -0
- package/dist/docx/addressing.d.ts.map +1 -0
- package/dist/docx/addressing.js +111 -0
- package/dist/docx/addressing.js.map +1 -0
- package/dist/docx/blank.d.ts +4 -0
- package/dist/docx/blank.d.ts.map +1 -0
- package/dist/docx/blank.js +75 -0
- package/dist/docx/blank.js.map +1 -0
- package/dist/docx/index-sync.d.ts +7 -0
- package/dist/docx/index-sync.d.ts.map +1 -0
- package/dist/docx/index-sync.js +24 -0
- package/dist/docx/index-sync.js.map +1 -0
- package/dist/docx/index.d.ts +5 -0
- package/dist/docx/index.d.ts.map +1 -0
- package/dist/docx/index.js +4 -0
- package/dist/docx/index.js.map +1 -0
- package/dist/docx/indexer.d.ts +41 -0
- package/dist/docx/indexer.d.ts.map +1 -0
- package/dist/docx/indexer.js +353 -0
- package/dist/docx/indexer.js.map +1 -0
- package/dist/docx/mutations.d.ts +5 -0
- package/dist/docx/mutations.d.ts.map +1 -0
- package/dist/docx/mutations.js +311 -0
- package/dist/docx/mutations.js.map +1 -0
- package/dist/docx/paragraphs.d.ts +26 -0
- package/dist/docx/paragraphs.d.ts.map +1 -0
- package/dist/docx/paragraphs.js +314 -0
- package/dist/docx/paragraphs.js.map +1 -0
- package/dist/docx/properties.d.ts +23 -0
- package/dist/docx/properties.d.ts.map +1 -0
- package/dist/docx/properties.js +414 -0
- package/dist/docx/properties.js.map +1 -0
- package/dist/docx/tables.d.ts +4 -0
- package/dist/docx/tables.d.ts.map +1 -0
- package/dist/docx/tables.js +64 -0
- package/dist/docx/tables.js.map +1 -0
- package/dist/docx/text-spans.d.ts +25 -0
- package/dist/docx/text-spans.d.ts.map +1 -0
- package/dist/docx/text-spans.js +142 -0
- package/dist/docx/text-spans.js.map +1 -0
- package/dist/docx/types.d.ts +27 -0
- package/dist/docx/types.d.ts.map +1 -0
- package/dist/docx/types.js +2 -0
- package/dist/docx/types.js.map +1 -0
- package/dist/docx/workspace.d.ts +20 -0
- package/dist/docx/workspace.d.ts.map +1 -0
- package/dist/docx/workspace.js +145 -0
- package/dist/docx/workspace.js.map +1 -0
- package/dist/docx/xml.d.ts +18 -0
- package/dist/docx/xml.d.ts.map +1 -0
- package/dist/docx/xml.js +87 -0
- package/dist/docx/xml.js.map +1 -0
- package/dist/edition-config/index.d.ts +25 -0
- package/dist/edition-config/index.d.ts.map +1 -0
- package/dist/edition-config/index.js +22 -0
- package/dist/edition-config/index.js.map +1 -0
- package/dist/edition.d.ts +2 -2
- package/dist/edition.d.ts.map +1 -1
- package/dist/edition.js +1 -1
- package/dist/edition.js.map +1 -1
- package/dist/help.d.ts.map +1 -1
- package/dist/help.js +124 -32
- package/dist/help.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/key/index.d.ts +2 -0
- package/dist/key/index.d.ts.map +1 -0
- package/dist/key/index.js +3 -0
- package/dist/key/index.js.map +1 -0
- package/dist/monitor-daemon.d.ts +21 -8
- package/dist/monitor-daemon.d.ts.map +1 -1
- package/dist/monitor-daemon.js +189 -51
- package/dist/monitor-daemon.js.map +1 -1
- package/dist/monitor-registry.d.ts +34 -0
- package/dist/monitor-registry.d.ts.map +1 -0
- package/dist/monitor-registry.js +191 -0
- package/dist/monitor-registry.js.map +1 -0
- package/dist/monitor.d.ts.map +1 -1
- package/dist/monitor.js +2 -12
- package/dist/monitor.js.map +1 -1
- package/dist/numbers/index.d.ts +2 -0
- package/dist/numbers/index.d.ts.map +1 -0
- package/dist/numbers/index.js +3 -0
- package/dist/numbers/index.js.map +1 -0
- package/dist/opc/index.d.ts +96 -0
- package/dist/opc/index.d.ts.map +1 -0
- package/dist/opc/index.js +596 -0
- package/dist/opc/index.js.map +1 -0
- package/dist/pptx/adapter.d.ts +167 -0
- package/dist/pptx/adapter.d.ts.map +1 -0
- package/dist/pptx/adapter.js +841 -0
- package/dist/pptx/adapter.js.map +1 -0
- package/dist/pptx/addressing.d.ts +47 -0
- package/dist/pptx/addressing.d.ts.map +1 -0
- package/dist/pptx/addressing.js +481 -0
- package/dist/pptx/addressing.js.map +1 -0
- package/dist/pptx/align.d.ts +24 -0
- package/dist/pptx/align.d.ts.map +1 -0
- package/dist/pptx/align.js +112 -0
- package/dist/pptx/align.js.map +1 -0
- package/dist/pptx/chart-classify.d.ts +10 -0
- package/dist/pptx/chart-classify.d.ts.map +1 -0
- package/dist/pptx/chart-classify.js +58 -0
- package/dist/pptx/chart-classify.js.map +1 -0
- package/dist/pptx/chart.d.ts +42 -0
- package/dist/pptx/chart.d.ts.map +1 -0
- package/dist/pptx/chart.js +614 -0
- package/dist/pptx/chart.js.map +1 -0
- package/dist/pptx/edition-extension.d.ts +25 -0
- package/dist/pptx/edition-extension.d.ts.map +1 -0
- package/dist/pptx/edition-extension.js +10 -0
- package/dist/pptx/edition-extension.js.map +1 -0
- package/dist/pptx/edition.d.ts +20 -0
- package/dist/pptx/edition.d.ts.map +1 -0
- package/dist/pptx/edition.js +69 -0
- package/dist/pptx/edition.js.map +1 -0
- package/dist/pptx/elements.d.ts +12 -0
- package/dist/pptx/elements.d.ts.map +1 -0
- package/dist/pptx/elements.js +224 -0
- package/dist/pptx/elements.js.map +1 -0
- package/dist/pptx/hyperlink.d.ts +7 -0
- package/dist/pptx/hyperlink.d.ts.map +1 -0
- package/dist/pptx/hyperlink.js +81 -0
- package/dist/pptx/hyperlink.js.map +1 -0
- package/dist/pptx/index-sync.d.ts +7 -0
- package/dist/pptx/index-sync.d.ts.map +1 -0
- package/dist/pptx/index-sync.js +24 -0
- package/dist/pptx/index-sync.js.map +1 -0
- package/dist/pptx/index.d.ts +10 -0
- package/dist/pptx/index.d.ts.map +1 -0
- package/dist/pptx/index.js +7 -0
- package/dist/pptx/index.js.map +1 -0
- package/dist/pptx/indexer.d.ts +19 -0
- package/dist/pptx/indexer.d.ts.map +1 -0
- package/dist/pptx/indexer.js +320 -0
- package/dist/pptx/indexer.js.map +1 -0
- package/dist/pptx/layout-ref.d.ts +41 -0
- package/dist/pptx/layout-ref.d.ts.map +1 -0
- package/dist/pptx/layout-ref.js +145 -0
- package/dist/pptx/layout-ref.js.map +1 -0
- package/dist/pptx/media.d.ts +15 -0
- package/dist/pptx/media.d.ts.map +1 -0
- package/dist/pptx/media.js +145 -0
- package/dist/pptx/media.js.map +1 -0
- package/dist/pptx/mutations.d.ts +11 -0
- package/dist/pptx/mutations.d.ts.map +1 -0
- package/dist/pptx/mutations.js +1114 -0
- package/dist/pptx/mutations.js.map +1 -0
- package/dist/pptx/picture.d.ts +25 -0
- package/dist/pptx/picture.d.ts.map +1 -0
- package/dist/pptx/picture.js +118 -0
- package/dist/pptx/picture.js.map +1 -0
- package/dist/pptx/placeholder-role.d.ts +19 -0
- package/dist/pptx/placeholder-role.d.ts.map +1 -0
- package/dist/pptx/placeholder-role.js +71 -0
- package/dist/pptx/placeholder-role.js.map +1 -0
- package/dist/pptx/properties.d.ts +13 -0
- package/dist/pptx/properties.d.ts.map +1 -0
- package/dist/pptx/properties.js +587 -0
- package/dist/pptx/properties.js.map +1 -0
- package/dist/pptx/resolve-properties.d.ts +17 -0
- package/dist/pptx/resolve-properties.d.ts.map +1 -0
- package/dist/pptx/resolve-properties.js +623 -0
- package/dist/pptx/resolve-properties.js.map +1 -0
- package/dist/pptx/slide-size.d.ts +9 -0
- package/dist/pptx/slide-size.d.ts.map +1 -0
- package/dist/pptx/slide-size.js +29 -0
- package/dist/pptx/slide-size.js.map +1 -0
- package/dist/pptx/slides.d.ts +15 -0
- package/dist/pptx/slides.d.ts.map +1 -0
- package/dist/pptx/slides.js +247 -0
- package/dist/pptx/slides.js.map +1 -0
- package/dist/pptx/table-measure.d.ts +43 -0
- package/dist/pptx/table-measure.d.ts.map +1 -0
- package/dist/pptx/table-measure.js +70 -0
- package/dist/pptx/table-measure.js.map +1 -0
- package/dist/pptx/table.d.ts +26 -0
- package/dist/pptx/table.d.ts.map +1 -0
- package/dist/pptx/table.js +638 -0
- package/dist/pptx/table.js.map +1 -0
- package/dist/pptx/types.d.ts +27 -0
- package/dist/pptx/types.d.ts.map +1 -0
- package/dist/pptx/types.js +2 -0
- package/dist/pptx/types.js.map +1 -0
- package/dist/pptx/workspace.d.ts +23 -0
- package/dist/pptx/workspace.d.ts.map +1 -0
- package/dist/pptx/workspace.js +148 -0
- package/dist/pptx/workspace.js.map +1 -0
- package/dist/pptx/xml.d.ts +75 -0
- package/dist/pptx/xml.d.ts.map +1 -0
- package/dist/pptx/xml.js +390 -0
- package/dist/pptx/xml.js.map +1 -0
- package/dist/render.d.ts.map +1 -1
- package/dist/render.js +14 -2
- package/dist/render.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/workspace/git.d.ts +7 -0
- package/dist/workspace/git.d.ts.map +1 -0
- package/dist/workspace/git.js +119 -0
- package/dist/workspace/git.js.map +1 -0
- package/dist/workspace/index.d.ts +7 -0
- package/dist/workspace/index.d.ts.map +1 -0
- package/dist/workspace/index.js +7 -0
- package/dist/workspace/index.js.map +1 -0
- package/dist/workspace/lock.d.ts +5 -0
- package/dist/workspace/lock.d.ts.map +1 -0
- package/dist/workspace/lock.js +104 -0
- package/dist/workspace/lock.js.map +1 -0
- package/dist/workspace/metadata.d.ts +4 -0
- package/dist/workspace/metadata.d.ts.map +1 -0
- package/dist/workspace/metadata.js +21 -0
- package/dist/workspace/metadata.js.map +1 -0
- package/dist/workspace/operations.d.ts +14 -0
- package/dist/workspace/operations.d.ts.map +1 -0
- package/dist/workspace/operations.js +35 -0
- package/dist/workspace/operations.js.map +1 -0
- package/dist/workspace/paths.d.ts +11 -0
- package/dist/workspace/paths.d.ts.map +1 -0
- package/dist/workspace/paths.js +12 -0
- package/dist/workspace/paths.js.map +1 -0
- package/dist/workspace/revision.d.ts +6 -0
- package/dist/workspace/revision.d.ts.map +1 -0
- package/dist/workspace/revision.js +15 -0
- package/dist/workspace/revision.js.map +1 -0
- package/dist/xlsx/index.d.ts +2 -0
- package/dist/xlsx/index.d.ts.map +1 -0
- package/dist/xlsx/index.js +3 -0
- package/dist/xlsx/index.js.map +1 -0
- package/package.json +51 -27
- package/schema/command.schema.json +2405 -0
- package/dist/.tsbuildinfo +0 -1
package/dist/help.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PROTOCOL_VERSION } from '
|
|
1
|
+
import { PROTOCOL_VERSION } from './core/index.js';
|
|
2
2
|
const GLOBAL_OPTIONS = `Global options:
|
|
3
3
|
--workspace <path> Explicit workspace (default: nearest .deckuse)
|
|
4
4
|
--revision <rev> Read a historical revision (writes reject it)
|
|
@@ -15,15 +15,16 @@ DeckUse Phase 1a CLI (protocol ${PROTOCOL_VERSION}).
|
|
|
15
15
|
${GLOBAL_OPTIONS}
|
|
16
16
|
|
|
17
17
|
Commands:
|
|
18
|
-
init Create a workspace from a .pptx
|
|
18
|
+
init Create a workspace from a .pptx or .docx
|
|
19
|
+
new Create a workspace from the bundled blank template
|
|
19
20
|
status Show workspace revision / branch summary
|
|
20
|
-
list List slides, shapes,
|
|
21
|
+
list List slides, shapes, or Word paragraphs, tables, styles, bookmarks
|
|
21
22
|
get Read a target's properties (with provenance)
|
|
22
|
-
inspect
|
|
23
|
+
inspect Structural diagnostic
|
|
23
24
|
search Search text or shapes
|
|
24
|
-
add Add a slide or
|
|
25
|
+
add Add a slide, shape, paragraph, or table
|
|
25
26
|
remove Remove a slide or shape target
|
|
26
|
-
set Set text or dotted properties on a target
|
|
27
|
+
set Set text, slide layout, or dotted properties on a target
|
|
27
28
|
replace-text Find/replace text across the deck
|
|
28
29
|
xfrm Set geometry (x/y/width/height/rotation)
|
|
29
30
|
align Align or distribute shapes on a slide
|
|
@@ -56,6 +57,23 @@ Options:
|
|
|
56
57
|
Notes:
|
|
57
58
|
Creates source/, package.pptx, .deckuse/, and a Git baseline.
|
|
58
59
|
Does not normalize or rewrite slide content.`,
|
|
60
|
+
},
|
|
61
|
+
new: {
|
|
62
|
+
usage: 'deckuse new <workspace/> [--format pptx|docx]',
|
|
63
|
+
summary: 'Create a workspace from a bundled blank template (PPTX by default, or DOCX with --format docx).',
|
|
64
|
+
example: 'deckuse new ./workspace --format docx --json',
|
|
65
|
+
details: `Arguments:
|
|
66
|
+
<workspace/> Destination directory for the workspace
|
|
67
|
+
|
|
68
|
+
Options:
|
|
69
|
+
--format pptx|docx Template format (default: pptx)
|
|
70
|
+
--workspace <path> Same as the positional workspace argument
|
|
71
|
+
--json Machine-readable envelope
|
|
72
|
+
|
|
73
|
+
Notes:
|
|
74
|
+
--format pptx uses assets/default.pptx (one blank title slide).
|
|
75
|
+
--format docx uses assets/default.docx (one empty paragraph, Normal and Heading 1–3).
|
|
76
|
+
Same workspace layout as init: source/, package.pptx or package.docx, .deckuse/, Git baseline.`,
|
|
59
77
|
},
|
|
60
78
|
status: {
|
|
61
79
|
usage: 'deckuse status [--workspace <path>]',
|
|
@@ -67,11 +85,12 @@ Notes:
|
|
|
67
85
|
--json Machine-readable envelope`,
|
|
68
86
|
},
|
|
69
87
|
list: {
|
|
70
|
-
usage: 'deckuse list <slides|shapes|layouts|masters|theme> [options]',
|
|
88
|
+
usage: 'deckuse list <slides|shapes|layouts|masters|theme|paragraphs|tables|sections|styles|bookmarks> [options]',
|
|
71
89
|
summary: 'List inventory resources from the workspace index / live package.',
|
|
72
|
-
example: 'deckuse list
|
|
90
|
+
example: 'deckuse list paragraphs --workspace ./workspace --json',
|
|
73
91
|
details: `Arguments:
|
|
74
|
-
slides | shapes | layouts | masters | theme
|
|
92
|
+
PPTX: slides | shapes | layouts | masters | theme
|
|
93
|
+
DOCX: paragraphs | tables | sections | styles | bookmarks
|
|
75
94
|
|
|
76
95
|
Options:
|
|
77
96
|
--slide <n> Required for shapes; one-based slide index
|
|
@@ -82,7 +101,7 @@ Options:
|
|
|
82
101
|
Examples:
|
|
83
102
|
deckuse list slides --json
|
|
84
103
|
deckuse list shapes --slide 12 --json
|
|
85
|
-
deckuse list
|
|
104
|
+
deckuse list paragraphs --json`,
|
|
86
105
|
},
|
|
87
106
|
'list slides': {
|
|
88
107
|
usage: 'deckuse list slides [options]',
|
|
@@ -107,12 +126,15 @@ Options:
|
|
|
107
126
|
},
|
|
108
127
|
'list layouts': {
|
|
109
128
|
usage: 'deckuse list layouts [options]',
|
|
110
|
-
summary: 'List slide layouts
|
|
129
|
+
summary: 'List slide layouts (index, displayName, type, target) in stable order.',
|
|
111
130
|
example: 'deckuse list layouts --json',
|
|
112
131
|
details: `Options:
|
|
113
132
|
--workspace <path> Workspace root
|
|
114
133
|
--revision <rev> Read a historical revision
|
|
115
|
-
--json Machine-readable envelope
|
|
134
|
+
--json Machine-readable envelope
|
|
135
|
+
|
|
136
|
+
Items include 1-based index (usable as --layout 2 / layout:2), displayName
|
|
137
|
+
(cSld@name), optional type (sldLayout@type), target, and partUri.`,
|
|
116
138
|
},
|
|
117
139
|
'list masters': {
|
|
118
140
|
usage: 'deckuse list masters [options]',
|
|
@@ -205,24 +227,33 @@ Options:
|
|
|
205
227
|
--json Machine-readable envelope`,
|
|
206
228
|
},
|
|
207
229
|
add: {
|
|
208
|
-
usage: 'deckuse add <slide|shape> [options]',
|
|
209
|
-
summary: 'Add a slide or
|
|
210
|
-
example: 'deckuse add
|
|
230
|
+
usage: 'deckuse add <slide|shape|paragraph|table|break> [options]',
|
|
231
|
+
summary: 'Add a slide, shape, paragraph, table, or page break. One successful write commits one revision.',
|
|
232
|
+
example: 'deckuse add paragraph --text "Hello" --style Heading1 --name Intro --json',
|
|
211
233
|
details: `Subcommands:
|
|
212
|
-
slide Insert a new slide
|
|
213
|
-
shape Insert a shape on an existing slide
|
|
234
|
+
slide Insert a new slide (PPTX)
|
|
235
|
+
shape Insert a shape on an existing slide (PPTX)
|
|
236
|
+
paragraph Insert a paragraph (DOCX)
|
|
237
|
+
table Insert a table (DOCX)
|
|
238
|
+
break Insert a page break (DOCX)
|
|
214
239
|
|
|
215
240
|
${WRITE_GLOBALS}
|
|
216
241
|
|
|
217
|
-
|
|
242
|
+
Examples:
|
|
243
|
+
deckuse add shape --slide 1 --type text --name Title --json
|
|
244
|
+
deckuse add paragraph --text "Hello" --style Heading1 --name Intro --json
|
|
245
|
+
|
|
246
|
+
Run 'deckuse add <slide|shape|paragraph|table|break> --help' for details.`,
|
|
218
247
|
},
|
|
219
248
|
'add slide': {
|
|
220
249
|
usage: 'deckuse add slide [options]',
|
|
221
250
|
summary: 'Insert one slide (and package/relationship updates) in a single revision.',
|
|
222
|
-
example: 'deckuse add slide --after 5 --layout
|
|
251
|
+
example: 'deckuse add slide --after 5 --layout 2 --name feature-page --json',
|
|
223
252
|
details: `Options:
|
|
224
253
|
--after <n> Insert after one-based slide index (append if omitted)
|
|
225
|
-
--layout <
|
|
254
|
+
--layout <ref> Layout ref: index (2), layout:2, slide:N (copy that
|
|
255
|
+
slide's layout), display name (Blank), or basename
|
|
256
|
+
(slideLayout2). Omit to inherit anchor/first slide.
|
|
226
257
|
--name <name> Slide name stored in inventory
|
|
227
258
|
${WRITE_GLOBALS}`,
|
|
228
259
|
},
|
|
@@ -288,13 +319,18 @@ Options:
|
|
|
288
319
|
${WRITE_GLOBALS}`,
|
|
289
320
|
},
|
|
290
321
|
set: {
|
|
291
|
-
usage: 'deckuse set text <target> --value <text> | deckuse set <target> --prop value ...',
|
|
292
|
-
summary: 'Write text or dotted semantic properties
|
|
293
|
-
example:
|
|
322
|
+
usage: 'deckuse set text <target> --value <text> | deckuse set slide-layout --slide <n> --layout <ref> | deckuse set <target> --prop value ...',
|
|
323
|
+
summary: 'Write text, rebind slide layout, or set dotted semantic properties.',
|
|
324
|
+
example: 'deckuse set slide-layout --slide 1 --layout 2 --json',
|
|
294
325
|
details: `Forms:
|
|
295
326
|
set text <target> --value <text>
|
|
327
|
+
set slide-layout --slide <n> --layout <ref>
|
|
296
328
|
set <target> --font.size 42 --fill.color '#RRGGBB' ...
|
|
297
329
|
|
|
330
|
+
set slide-layout rebinds the slide→slideLayout relationship (does not edit
|
|
331
|
+
layout parts). --layout accepts: index (2), layout:2, slide:N (copy that
|
|
332
|
+
slide's layout), display name (Blank), or basename (slideLayout2).
|
|
333
|
+
|
|
298
334
|
Common properties:
|
|
299
335
|
font.family, font.size, font.weight, font.color, font.italic
|
|
300
336
|
fill.kind, fill.color, fill.transparency
|
|
@@ -317,7 +353,23 @@ Options:
|
|
|
317
353
|
--value <text> Required for set text
|
|
318
354
|
${WRITE_GLOBALS}
|
|
319
355
|
|
|
320
|
-
Run 'deckuse set text --help' for
|
|
356
|
+
Run 'deckuse set text --help' or 'deckuse set slide-layout --help' for those forms.`,
|
|
357
|
+
},
|
|
358
|
+
'set slide-layout': {
|
|
359
|
+
usage: 'deckuse set slide-layout --slide <n> --layout <ref> [options]',
|
|
360
|
+
summary: 'Rebind a slide to another slideLayout (by index, layout:N, slide:N, or name).',
|
|
361
|
+
example: 'deckuse set slide-layout --slide 1 --layout slide:3 --json',
|
|
362
|
+
details: `Required:
|
|
363
|
+
--slide <n> One-based slide index
|
|
364
|
+
--layout <ref> Layout index (2), layout:2, slide:N, display name,
|
|
365
|
+
or basename (slideLayout2). See list layouts --json.
|
|
366
|
+
|
|
367
|
+
Notes:
|
|
368
|
+
Only updates the slide→layout relationship; slide shapes are preserved.
|
|
369
|
+
Writing layout:* / master:* part contents remains community-gated.
|
|
370
|
+
|
|
371
|
+
Options:
|
|
372
|
+
${WRITE_GLOBALS}`,
|
|
321
373
|
},
|
|
322
374
|
'set text': {
|
|
323
375
|
usage: 'deckuse set text <target> (--value <text> | --text-file <path> | --blocks <json>) [options]',
|
|
@@ -578,14 +630,15 @@ Notes:
|
|
|
578
630
|
Default export rebuilds package.pptx from source/ so hand-edits are included.`,
|
|
579
631
|
},
|
|
580
632
|
monitor: {
|
|
581
|
-
usage: 'deckuse monitor [start|status|stop] [<workspace>] [--host <addr>] [--port <n>]',
|
|
633
|
+
usage: 'deckuse monitor [start|status|stop] [<workspace>] [--host <addr>] [--port <n>] [--all]',
|
|
582
634
|
summary: 'Live HTML preview. Bare `monitor` is foreground; start/status/stop manage a background daemon.',
|
|
583
635
|
example: 'deckuse monitor start --workspace ./workspace --port 4173',
|
|
584
636
|
details: `Subcommands:
|
|
585
637
|
(none) Foreground server until SIGINT/SIGTERM
|
|
586
638
|
start Detach a background daemon (writes .deckuse/monitor/daemon.json)
|
|
587
|
-
status
|
|
588
|
-
|
|
639
|
+
status Without --workspace: list all running daemons (port, pid, workspace).
|
|
640
|
+
With --workspace: show that workspace daemon pid / url / reachability
|
|
641
|
+
stop SIGTERM the daemon and clear daemon.json (requires --workspace or --all)
|
|
589
642
|
|
|
590
643
|
Arguments:
|
|
591
644
|
<workspace> Optional workspace path (or use --workspace)
|
|
@@ -594,15 +647,19 @@ Options:
|
|
|
594
647
|
--host <addr> Bind address (default: 0.0.0.0)
|
|
595
648
|
--port <n> Port 0–65535 (default: 4173). Use 0 for an ephemeral free port.
|
|
596
649
|
--workspace <path> Workspace root
|
|
650
|
+
--all With stop: stop every running monitor daemon
|
|
597
651
|
|
|
598
652
|
Notes:
|
|
653
|
+
Only \`monitor start\` / daemon-worker processes are tracked (not foreground \`monitor\`).
|
|
654
|
+
Global index: ~/.deckflow/deckuse/monitors/ (override with DECKUSE_HOME).
|
|
599
655
|
Port conflicts (EADDRINUSE) return a clear error; daemon start fails if unreachable.
|
|
600
656
|
|
|
601
657
|
Examples:
|
|
602
658
|
deckuse monitor --port 4173
|
|
603
659
|
deckuse monitor start --port 0
|
|
604
660
|
deckuse monitor status --json
|
|
605
|
-
deckuse monitor stop
|
|
661
|
+
deckuse monitor stop --workspace ./workspace
|
|
662
|
+
deckuse monitor stop --all`,
|
|
606
663
|
},
|
|
607
664
|
render: {
|
|
608
665
|
usage: 'deckuse render --page <n> [--output <file.png>] [--scale <n>]',
|
|
@@ -620,8 +677,43 @@ Options:
|
|
|
620
677
|
Notes:
|
|
621
678
|
Intended for AI agents to visually review whether an edit looks correct.
|
|
622
679
|
Community render may not show custom chart series colors faithfully — check ppt/charts/*.xml or PowerPoint.
|
|
680
|
+
DOCX workspaces cannot be paginated: office2html converts PPTX only. Export and open the .docx in Word.
|
|
623
681
|
Requires a system Chrome / Chromium / Edge, or PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH.
|
|
624
682
|
Temporary office2html output is always removed after the screenshot.`,
|
|
683
|
+
},
|
|
684
|
+
'add paragraph': {
|
|
685
|
+
usage: 'deckuse add paragraph [--after <target>] [--style <id>] [--level <n>] [--name <bookmark>] [--text <text>]',
|
|
686
|
+
summary: 'Insert one or more paragraphs into a DOCX workspace.',
|
|
687
|
+
example: 'deckuse add paragraph --after body/p:1 --style Heading1 --name Intro --text "Hello" --json',
|
|
688
|
+
details: `Options:
|
|
689
|
+
--after <target> Insert after this paragraph, table, or bookmark
|
|
690
|
+
--style <styleId> Apply an existing paragraph style
|
|
691
|
+
--level <0-9> Heading level when --style is omitted (0 = Normal)
|
|
692
|
+
--name <bookmark> Bookmark so later commands can target bookmark:<name>
|
|
693
|
+
--text <text> Paragraph text; newlines become extra paragraphs
|
|
694
|
+
--blocks <json> Rich blocks (preferred over --text)
|
|
695
|
+
|
|
696
|
+
${WRITE_GLOBALS}`,
|
|
697
|
+
},
|
|
698
|
+
'add table': {
|
|
699
|
+
usage: 'deckuse add table --rows <json> [--name <bookmark>] [--after <target>]',
|
|
700
|
+
summary: 'Insert a table into a DOCX workspace.',
|
|
701
|
+
example: `deckuse add table --rows '[["A","B"],["1","2"]]' --name FinTable --json`,
|
|
702
|
+
details: `Options:
|
|
703
|
+
--rows <json> string[][] cell text
|
|
704
|
+
--name <bookmark> Bookmark wrapping the table
|
|
705
|
+
--after <target> Insert after this target (default: end of body)
|
|
706
|
+
|
|
707
|
+
${WRITE_GLOBALS}`,
|
|
708
|
+
},
|
|
709
|
+
'add break': {
|
|
710
|
+
usage: 'deckuse add break [--after <target>]',
|
|
711
|
+
summary: 'Insert a page break paragraph into a DOCX workspace.',
|
|
712
|
+
example: 'deckuse add break --after body/p:1 --json',
|
|
713
|
+
details: `Options:
|
|
714
|
+
--after <target> Insert after this target (default: end of body)
|
|
715
|
+
|
|
716
|
+
${WRITE_GLOBALS}`,
|
|
625
717
|
},
|
|
626
718
|
query: {
|
|
627
719
|
usage: 'deckuse query [<workspace>] <selector> [--limit <n>]',
|
|
@@ -670,16 +762,16 @@ export const resolveHelp = (topic) => {
|
|
|
670
762
|
`Run 'deckuse ${parentKey} --help' for available forms.\n`);
|
|
671
763
|
}
|
|
672
764
|
}
|
|
673
|
-
return (`Unknown command: ${topic[0]}\n\n` +
|
|
674
|
-
HELP_MAIN +
|
|
675
|
-
`Run 'deckuse --help' for the command list.\n`);
|
|
765
|
+
return (`Unknown command: ${topic[0]}\n\n` + HELP_MAIN + `Run 'deckuse --help' for the command list.\n`);
|
|
676
766
|
};
|
|
677
767
|
/** Tokens that form a help topic (command path), ignoring options and help flags. */
|
|
678
768
|
export const helpTopicFromArgs = (clean) => {
|
|
679
769
|
if (clean.length === 0)
|
|
680
770
|
return null;
|
|
681
771
|
if (clean[0] === 'help') {
|
|
682
|
-
return clean
|
|
772
|
+
return clean
|
|
773
|
+
.slice(1)
|
|
774
|
+
.filter((token) => token !== '--help' && token !== '-h' && !token.startsWith('--'));
|
|
683
775
|
}
|
|
684
776
|
const helpIndex = clean.findIndex((token) => token === '--help' || token === '-h');
|
|
685
777
|
if (helpIndex < 0)
|
package/dist/help.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"help.js","sourceRoot":"","sources":["../src/help.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"help.js","sourceRoot":"","sources":["../src/help.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAEnD,MAAM,cAAc,GAAG;;;;;;;sDAO+B,CAAC;AAEvD,MAAM,aAAa,GAAG,4EAA4E,CAAC;AAEnG,MAAM,CAAC,MAAM,SAAS,GAAG;;iCAEQ,g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B,EAAE;IACpE,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IAEpC,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,MAAM,EAAE,CAAC;QACxB,OAAO,KAAK;aACT,KAAK,CAAC,CAAC,CAAC;aACR,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;IACxF,CAAC;IAED,MAAM,SAAS,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,CAAC,CAAC;IACnF,IAAI,SAAS,GAAG,CAAC;QAAE,OAAO,IAAI,CAAC;IAE/B,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;AAC9E,CAAC,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Executor, type Result } from '
|
|
1
|
+
import { Executor, type Result } from './core/index.js';
|
|
2
2
|
export declare const createDefaultExecutor: () => Executor;
|
|
3
3
|
export declare const runCommand: (input: unknown) => Promise<Result<unknown>>;
|
|
4
4
|
export { startMonitor, type MonitorHandle, type MonitorOptions } from './monitor.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAmB,QAAQ,EAAE,KAAK,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAmB,QAAQ,EAAE,KAAK,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAMzE,eAAO,MAAM,qBAAqB,QAAO,QA4BtC,CAAC;AACJ,eAAO,MAAM,UAAU,GAAU,OAAO,OAAO,KAAG,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CACjC,CAAC;AAEzC,OAAO,EAAE,YAAY,EAAE,KAAK,aAAa,EAAE,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AACrF,OAAO,EACL,UAAU,EACV,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,YAAY,GAClB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,OAAO,EACP,eAAe,EACf,oBAAoB,EACpB,mBAAmB,EACnB,eAAe,EACf,KAAK,OAAO,EACZ,KAAK,mBAAmB,GACzB,MAAM,cAAc,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { readFile } from 'node:fs/promises';
|
|
2
2
|
import { join, resolve } from 'node:path';
|
|
3
|
-
import { AdapterRegistry, Executor } from '
|
|
4
|
-
import { pptxAdapter } from '
|
|
5
|
-
import { docxAdapter } from '
|
|
6
|
-
import { xlsxAdapter } from '
|
|
7
|
-
import { keyAdapter } from '
|
|
8
|
-
import { numbersAdapter } from '
|
|
3
|
+
import { AdapterRegistry, Executor } from './core/index.js';
|
|
4
|
+
import { pptxAdapter } from './pptx/index.js';
|
|
5
|
+
import { docxAdapter } from './docx/index.js';
|
|
6
|
+
import { xlsxAdapter } from './xlsx/index.js';
|
|
7
|
+
import { keyAdapter } from './key/index.js';
|
|
8
|
+
import { numbersAdapter } from './numbers/index.js';
|
|
9
9
|
export const createDefaultExecutor = () => new Executor(new AdapterRegistry()
|
|
10
10
|
.register(pptxAdapter)
|
|
11
11
|
.register(docxAdapter)
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],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AClB,QAAQ,CAAC,WAAW,CAAC;qBACrB,QAAQ,CAAC,WAAW,CAAC;qBACrB,QAAQ,CAAC,WAAW,CAAC;qBACrB,QAAQ,CAAC,UAAU,CAAC;qBACpB,QAAQ,CAAC,cAAc,CAAC;qBACxB,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC;gBACzB,CAAC,CAAC,SAAS,CAAC;QAChB,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,SAAS,CAAC;QACnB,CAAC;IACH,CAAC;CACF,CACF,CAAC;AACJ,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,EAAE,KAAc,EAA4B,EAAE,CAC3E,qBAAqB,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAEzC,OAAO,EAAE,YAAY,EAA2C,MAAM,cAAc,CAAC;AACrF,OAAO,EACL,UAAU,GAIX,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,OAAO,EACP,eAAe,EACf,oBAAoB,EACpB,mBAAmB,EACnB,eAAe,GAGhB,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/key/index.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,UAAU,4CAAqC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/key/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,kBAAkB,CAAC;AAC/D,MAAM,CAAC,MAAM,UAAU,GAAG,2BAA2B,CAAC,KAAK,CAAC,CAAC"}
|
package/dist/monitor-daemon.d.ts
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
import { type MonitorHandle } from './monitor.js';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
readonly host: string;
|
|
5
|
-
readonly port: number;
|
|
6
|
-
readonly url: string;
|
|
7
|
-
readonly workspace: string;
|
|
8
|
-
readonly startedAt: string;
|
|
9
|
-
}
|
|
2
|
+
import { isProcessAlive, type DaemonMeta } from './monitor-registry.js';
|
|
3
|
+
export type { DaemonMeta } from './monitor-registry.js';
|
|
10
4
|
export declare const daemonMetaPath: (workspace: string) => string;
|
|
5
|
+
export { isProcessAlive as isAlive };
|
|
11
6
|
export declare function readDaemonMeta(workspace: string): Promise<DaemonMeta | null>;
|
|
12
7
|
export declare function writeDaemonMeta(workspace: string, meta: DaemonMeta): Promise<void>;
|
|
13
8
|
export declare function clearDaemonMeta(workspace: string): Promise<void>;
|
|
@@ -17,10 +12,28 @@ export declare function monitorStatus(workspace: string): Promise<{
|
|
|
17
12
|
meta: DaemonMeta | null;
|
|
18
13
|
reachable: boolean;
|
|
19
14
|
}>;
|
|
15
|
+
export interface MonitorStatusEntry extends DaemonMeta {
|
|
16
|
+
readonly running: boolean;
|
|
17
|
+
readonly reachable: boolean;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Merge registry files with live process-table discovery, reconcile, return running monitors.
|
|
21
|
+
*/
|
|
22
|
+
export declare function monitorStatusAll(): Promise<{
|
|
23
|
+
monitors: MonitorStatusEntry[];
|
|
24
|
+
}>;
|
|
20
25
|
export declare function monitorStop(workspace: string): Promise<{
|
|
21
26
|
stopped: boolean;
|
|
22
27
|
meta: DaemonMeta | null;
|
|
23
28
|
}>;
|
|
29
|
+
export declare function monitorStopAll(): Promise<{
|
|
30
|
+
stopped: number;
|
|
31
|
+
results: Array<{
|
|
32
|
+
workspace: string;
|
|
33
|
+
stopped: boolean;
|
|
34
|
+
meta: DaemonMeta | null;
|
|
35
|
+
}>;
|
|
36
|
+
}>;
|
|
24
37
|
/**
|
|
25
38
|
* Spawn a detached deckuse monitor worker and persist daemon.json.
|
|
26
39
|
* The child runs `deckuse monitor --daemon-worker` in the foreground of that process.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"monitor-daemon.d.ts","sourceRoot":"","sources":["../src/monitor-daemon.ts"],"names":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