@manfred-kunze-dev/backbone-cli 2.8.0 → 2.9.0-dev.2
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/commands/convert.js +6 -2
- package/package.json +1 -1
package/dist/commands/convert.js
CHANGED
|
@@ -22,7 +22,8 @@ export function makeConvertCommand() {
|
|
|
22
22
|
.description("Convert local files")
|
|
23
23
|
.argument("<paths...>", "File paths to convert")
|
|
24
24
|
.option("--format <formats...>", "Output formats (md, text, html, json)", ["md"])
|
|
25
|
-
.option("--pipeline <name>", "Pipeline (
|
|
25
|
+
.option("--pipeline <name>", "Pipeline: fast (default), ocr, vlm. For compound files (MSG/EML), applies to attachments; email body is always plain text")
|
|
26
|
+
.option("--image-mode <mode>", "Image export mode (placeholder, embedded)")
|
|
26
27
|
.option("--async", "Run asynchronously")
|
|
27
28
|
.action(async (paths, opts, command) => {
|
|
28
29
|
await runAction(command, async () => {
|
|
@@ -45,6 +46,7 @@ export function makeConvertCommand() {
|
|
|
45
46
|
pipeline: opts.pipeline,
|
|
46
47
|
options: {
|
|
47
48
|
outputFormats,
|
|
49
|
+
...(opts.imageMode && { imageExportMode: opts.imageMode }),
|
|
48
50
|
},
|
|
49
51
|
},
|
|
50
52
|
};
|
|
@@ -63,7 +65,8 @@ export function makeConvertCommand() {
|
|
|
63
65
|
.description("Convert documents from URLs")
|
|
64
66
|
.argument("<urls...>", "URLs to convert")
|
|
65
67
|
.option("--format <formats...>", "Output formats (md, text, html, json)", ["md"])
|
|
66
|
-
.option("--pipeline <name>", "Pipeline (
|
|
68
|
+
.option("--pipeline <name>", "Pipeline: fast (default), ocr, vlm. For compound files (MSG/EML), applies to attachments; email body is always plain text")
|
|
69
|
+
.option("--image-mode <mode>", "Image export mode (placeholder, embedded)")
|
|
67
70
|
.option("--async", "Run asynchronously")
|
|
68
71
|
.action(async (urls, opts, command) => {
|
|
69
72
|
await runAction(command, async () => {
|
|
@@ -79,6 +82,7 @@ export function makeConvertCommand() {
|
|
|
79
82
|
pipeline: opts.pipeline,
|
|
80
83
|
options: {
|
|
81
84
|
outputFormats,
|
|
85
|
+
...(opts.imageMode && { imageExportMode: opts.imageMode }),
|
|
82
86
|
},
|
|
83
87
|
},
|
|
84
88
|
};
|