@poe-platform/safe-bash 0.1.789 → 0.1.790
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/image-ast/index.browser.js +147 -80
- package/dist/image-ast/index.js +147 -80
- package/dist/mp4-ast/mp4.d.ts +2 -0
- package/dist/pdf-ast/cos/parser.d.ts +1 -0
- package/dist/pdf-ast/cos/security.d.ts +2 -0
- package/dist/pdf-ast/cos/writer.d.ts +1 -0
- package/dist/pdf-ast/document.d.ts +3 -0
- package/dist/pdf-ast/edit/forms.d.ts +1 -0
- package/dist/pdf-ast/index.js +171 -82
- package/dist/safe-bash/chunks/{chunk-L5QQLNTO.js → chunk-22PI65AH.js} +2 -2
- package/dist/safe-bash/chunks/{chunk-KHJGUF2W.js → chunk-2TAGYMPK.js} +43 -42
- package/dist/safe-bash/chunks/{chunk-D4PHJK4T.js → chunk-2W4HTMEK.js} +52 -48
- package/dist/safe-bash/chunks/{chunk-FFZXP6ZC.js → chunk-3M7L7XU2.js} +2 -2
- package/dist/safe-bash/chunks/{chunk-XNODZRVD.js → chunk-3QAO6UYS.js} +2 -2
- package/dist/safe-bash/chunks/{chunk-YPETOVQU.js → chunk-3VKFK3NF.js} +2 -2
- package/dist/safe-bash/chunks/chunk-5OST7NOX.js +42 -0
- package/dist/safe-bash/chunks/{chunk-KEBSX2AX.js → chunk-6HLURHVU.js} +2 -2
- package/dist/safe-bash/chunks/chunk-DYEUZE6Z.js +19 -0
- package/dist/safe-bash/chunks/{chunk-T2TGCHKE.js → chunk-FM3WBSZT.js} +2 -2
- package/dist/safe-bash/chunks/chunk-GAYRKQM6.js +22 -0
- package/dist/safe-bash/chunks/{chunk-Q45QCA4J.js → chunk-I3KSESCR.js} +0 -7
- package/dist/safe-bash/chunks/{chunk-OSKDIBQS.js → chunk-JLIMK5TD.js} +1 -1
- package/dist/safe-bash/chunks/{chunk-2AYZCT5X.js → chunk-JQ2FAJJT.js} +27 -23
- package/dist/safe-bash/chunks/{chunk-QA3NVP43.js → chunk-JRE6Z3T7.js} +2 -2
- package/dist/safe-bash/chunks/{chunk-DC5EHLKS.js → chunk-NDIL6T7Y.js} +5 -5
- package/dist/safe-bash/chunks/{chunk-747G42FY.js → chunk-OPR4UAIT.js} +2 -2
- package/dist/safe-bash/chunks/chunk-OSMQCYSP.js +19 -0
- package/dist/safe-bash/chunks/chunk-OYB332PQ.js +17 -0
- package/dist/safe-bash/chunks/{chunk-X5ZCECM6.js → chunk-QTIH2AFE.js} +77 -69
- package/dist/safe-bash/chunks/{chunk-CTUHLNJM.js → chunk-SBESXWT2.js} +43 -44
- package/dist/safe-bash/chunks/{chunk-4FDQJUFW.js → chunk-SDEPGTOF.js} +1 -1
- package/dist/safe-bash/chunks/chunk-UZU5BIJI.js +32 -0
- package/dist/safe-bash/chunks/{chunk-BI6JV62X.js → chunk-VCCMROTL.js} +7 -10
- package/dist/safe-bash/chunks/chunk-W47GHRRF.js +13 -0
- package/dist/safe-bash/chunks/{chunk-NPMQWZUZ.js → chunk-WS7KZIUM.js} +2 -2
- package/dist/safe-bash/chunks/{chunk-3PZYHMGM.js → chunk-YYAERCWS.js} +7 -7
- package/dist/safe-bash/chunks/{chunk-5U7JECDB.js → chunk-ZPGVEUKF.js} +8 -7
- package/dist/safe-bash/chunks/{csvkit-K55OYAQC.js → csvkit-USUJG62I.js} +65 -11
- package/dist/safe-bash/chunks/{ffmpeg-BEFTQ6DZ.js → ffmpeg-KRGG5DLH.js} +21 -10
- package/dist/safe-bash/chunks/{gh-HQWOWLWE.js → gh-UCFDUZCX.js} +16 -8
- package/dist/safe-bash/chunks/{git-HO7WDPHZ.js → git-LPAF6KDG.js} +7 -9
- package/dist/safe-bash/chunks/{imagemagick-53BMHH6D.js → imagemagick-KGREKK4G.js} +38 -7
- package/dist/safe-bash/chunks/{implementation-QUTAAYMT.js → implementation-FXDRYS5A.js} +34 -8
- package/dist/safe-bash/chunks/{pdfimages-4OYI6FLG.js → pdfimages-UADCF4G4.js} +12 -8
- package/dist/safe-bash/chunks/{pdfinfo-I7U6TQPP.js → pdfinfo-O7UWPF4W.js} +38 -13
- package/dist/safe-bash/chunks/{pdftk-SUA6FMHI.js → pdftk-AERXIJTN.js} +13 -8
- package/dist/safe-bash/chunks/{pdftoppm-4C5DGEWX.js → pdftoppm-L466JQKI.js} +17 -10
- package/dist/safe-bash/chunks/{pdftotext-Y4WI225Y.js → pdftotext-SUSI4WXS.js} +19 -9
- package/dist/safe-bash/chunks/{qpdf-IORB4RV5.js → qpdf-YL24KVRH.js} +14 -8
- package/dist/safe-bash/chunks/{sips-WHAMJFEU.js → sips-QXEQZERX.js} +14 -7
- package/dist/safe-bash/chunks/{soffice-SYEK6WJS.js → soffice-TBITRML3.js} +16 -8
- package/dist/safe-bash/chunks/{wkhtmltopdf-ZIICWJLF.js → wkhtmltopdf-NJA2THRC.js} +27 -7
- package/dist/safe-bash/command-chunks/chunk-2C5BEBPY.js +1388 -0
- package/dist/safe-bash/command-chunks/{chunk-2VTMZTV3.js → chunk-2EXV2ZLV.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-UJOO6DKY.js → chunk-6EASC5EC.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-ZF3ZVGQC.js → chunk-7JRITHKW.js} +150 -80
- package/dist/safe-bash/{chunks/chunk-LD76P7AG.js → command-chunks/chunk-AKDMCNX4.js} +74 -39
- package/dist/safe-bash/command-chunks/{chunk-6F7QJMJ3.js → chunk-CBDVLMJB.js} +1 -1
- package/dist/safe-bash/command-chunks/chunk-H4LWTITX.js +169 -0
- package/dist/safe-bash/command-chunks/chunk-I2MQNBGR.js +145 -0
- package/dist/safe-bash/command-chunks/{chunk-5GRLAARV.js → chunk-IOXI5ZAJ.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-XNHSCU6I.js → chunk-MDPIOQUD.js} +6 -6
- package/dist/safe-bash/command-chunks/chunk-QI4MGIN6.js +6 -0
- package/dist/safe-bash/command-chunks/chunk-QTYZAWSB.js +91 -0
- package/dist/safe-bash/command-chunks/chunk-SNK7K3XW.js +90 -0
- package/dist/safe-bash/command-chunks/chunk-T5OLGM43.js +314 -0
- package/dist/safe-bash/command-chunks/chunk-TB7IFMUZ.js +802 -0
- package/dist/safe-bash/command-chunks/{chunk-AT6ZSOE6.js → chunk-TPPBPIWL.js} +1 -1
- package/dist/safe-bash/command-chunks/chunk-VMK4XVKO.js +82 -0
- package/dist/safe-bash/command-chunks/chunk-VNSJKXDU.js +130 -0
- package/dist/safe-bash/command-chunks/chunk-YFNTMH6Z.js +6 -0
- package/dist/safe-bash/commands/csplit/index.browser.js +2 -2
- package/dist/safe-bash/commands/docx/index.browser.js +2 -2
- package/dist/safe-bash/commands/factor/index.browser.js +2 -2
- package/dist/safe-bash/commands/getopt/index.browser.js +2 -2
- package/dist/safe-bash/commands/hexdump/index.browser.js +2 -2
- package/dist/safe-bash/commands/iconv/index.browser.js +2 -2
- package/dist/safe-bash/commands/line-endings/index.browser.js +2 -2
- package/dist/safe-bash/commands/llm/command.d.ts +1 -4
- package/dist/safe-bash/commands/llm/command.js +1 -248
- package/dist/safe-bash/commands/llm/elevenlabs-stream.d.ts +1 -2
- package/dist/safe-bash/commands/llm/elevenlabs-stream.js +1 -117
- package/dist/safe-bash/commands/llm/elevenlabs.d.ts +1 -15
- package/dist/safe-bash/commands/llm/elevenlabs.js +1 -123
- package/dist/safe-bash/commands/llm/index.browser.js +20 -15
- package/dist/safe-bash/commands/llm/index.d.ts +1 -6
- package/dist/safe-bash/commands/llm/index.js +1 -4
- package/dist/safe-bash/commands/llm/mime.d.ts +1 -2
- package/dist/safe-bash/commands/llm/mime.js +1 -136
- package/dist/safe-bash/commands/llm/openai-http.d.ts +1 -8
- package/dist/safe-bash/commands/llm/openai-http.js +1 -143
- package/dist/safe-bash/commands/llm/openai-sse.d.ts +1 -3
- package/dist/safe-bash/commands/llm/openai-sse.js +1 -78
- package/dist/safe-bash/commands/llm/openai.d.ts +1 -14
- package/dist/safe-bash/commands/llm/openai.js +1 -288
- package/dist/safe-bash/commands/llm/providers/elevenlabs.d.ts +1 -1
- package/dist/safe-bash/commands/llm/providers/elevenlabs.js +1 -1
- package/dist/safe-bash/commands/llm/providers/index.browser.js +6 -6
- package/dist/safe-bash/commands/llm/providers/index.d.ts +1 -3
- package/dist/safe-bash/commands/llm/providers/index.js +1 -2
- package/dist/safe-bash/commands/llm/providers/openai.d.ts +1 -1
- package/dist/safe-bash/commands/llm/providers/openai.js +1 -1
- package/dist/safe-bash/commands/llm/providers/shared.d.ts +1 -23
- package/dist/safe-bash/commands/llm/providers/shared.js +1 -65
- package/dist/safe-bash/commands/llm/service.d.ts +1 -37
- package/dist/safe-bash/commands/llm/service.js +1 -151
- package/dist/safe-bash/commands/llm/types.d.ts +1 -52
- package/dist/safe-bash/commands/llm/types.js +1 -1
- package/dist/safe-bash/commands/mdq/index.browser.js +3 -3
- package/dist/safe-bash/commands/media/index.browser.js +1 -1
- package/dist/safe-bash/commands/network/index.browser.js +9 -9
- package/dist/safe-bash/commands/network/types.d.ts +2 -40
- package/dist/safe-bash/commands/node/index.browser.js +6 -8
- package/dist/safe-bash/commands/op/index.browser.js +3 -3
- package/dist/safe-bash/commands/op/index.js +12 -28
- package/dist/safe-bash/commands/pr/index.browser.js +2 -2
- package/dist/safe-bash/commands/python/index.browser.js +8 -8
- package/dist/safe-bash/commands/python/worker.browser.js +2 -2
- package/dist/safe-bash/commands/tsort/index.browser.js +2 -2
- package/dist/safe-bash/commands/xml/index.browser.js +2 -2
- package/dist/safe-bash/commands/yq/index.browser.js +3 -3
- package/dist/safe-bash/core.browser.js +9775 -10975
- package/dist/safe-bash/core.d.ts +0 -1
- package/dist/safe-bash/core.js +0 -1
- package/dist/safe-bash/jobs.browser.js +5 -4
- package/dist/safe-bash/optional-host.browser.js +61 -88
- package/dist/safe-bash/shell/runtime.js +34 -12
- package/dist/safe-bash/yq-browser/index.js +1 -1
- package/dist/safe-bash-command-ffmpeg/index.js +8130 -8011
- package/dist/safe-bash-command-git/git_rust.wasm +0 -0
- package/dist/safe-bash-command-git/wasm.generated.js +1 -1
- package/dist/safe-bash-command-imagemagick/index.js +2 -2
- package/dist/safe-bash-command-llm/LICENSE +21 -0
- package/dist/safe-bash-command-llm/command.d.ts +5 -0
- package/dist/safe-bash-command-llm/command.js +14 -0
- package/dist/safe-bash-command-llm/configuration.d.ts +18 -0
- package/dist/safe-bash-command-llm/elevenlabs-stream.d.ts +2 -0
- package/dist/safe-bash-command-llm/elevenlabs-stream.js +7 -0
- package/dist/safe-bash-command-llm/elevenlabs.d.ts +15 -0
- package/dist/safe-bash-command-llm/elevenlabs.js +10 -0
- package/dist/safe-bash-command-llm/index.d.ts +10 -0
- package/dist/safe-bash-command-llm/index.js +46 -0
- package/dist/safe-bash-command-llm/mime.d.ts +2 -0
- package/dist/safe-bash-command-llm/mime.js +9 -0
- package/dist/safe-bash-command-llm/model-options.d.ts +3 -0
- package/dist/safe-bash-command-llm/openai-http.d.ts +8 -0
- package/dist/safe-bash-command-llm/openai-http.js +17 -0
- package/dist/safe-bash-command-llm/openai-sse.d.ts +3 -0
- package/dist/safe-bash-command-llm/openai-sse.js +8 -0
- package/dist/safe-bash-command-llm/openai.d.ts +14 -0
- package/dist/safe-bash-command-llm/openai.js +12 -0
- package/dist/safe-bash-command-llm/providers/elevenlabs.d.ts +1 -0
- package/dist/safe-bash-command-llm/providers/elevenlabs.js +11 -0
- package/dist/safe-bash-command-llm/providers/index.d.ts +3 -0
- package/dist/safe-bash-command-llm/providers/index.js +24 -0
- package/dist/safe-bash-command-llm/providers/openai.d.ts +1 -0
- package/dist/safe-bash-command-llm/providers/openai.js +13 -0
- package/dist/safe-bash-command-llm/providers/shared.d.ts +23 -0
- package/dist/safe-bash-command-llm/providers/shared.js +13 -0
- package/dist/safe-bash-command-llm/schemas.d.ts +2 -0
- package/dist/safe-bash-command-llm/service.d.ts +42 -0
- package/dist/safe-bash-command-llm/service.js +9 -0
- package/dist/safe-bash-command-llm/templates.d.ts +27 -0
- package/dist/safe-bash-command-llm/types.d.ts +87 -0
- package/dist/safe-bash-command-llm/types.js +6 -0
- package/dist/safe-bash-command-mmdc/command.d.ts +4 -0
- package/dist/safe-bash-command-mmdc/index.d.ts +1 -1
- package/dist/safe-bash-command-mmdc/index.js +7084 -6687
- package/dist/safe-bash-command-mmdc/layout.d.ts +1 -0
- package/dist/safe-bash-command-mmdc/parser.d.ts +1 -0
- package/dist/safe-bash-command-mmdc/png.d.ts +3 -0
- package/dist/safe-bash-command-mmdc/raster.d.ts +1 -0
- package/dist/safe-bash-command-pandoc/command.js +3 -3
- package/dist/safe-bash-command-pandoc/index.js +3 -3
- package/dist/safe-bash-command-pdfimages/index.js +147 -80
- package/dist/safe-bash-command-pdfinfo/index.js +147 -80
- package/dist/safe-bash-command-pdftk/index.js +147 -80
- package/dist/safe-bash-command-pdftoppm/index.js +147 -80
- package/dist/safe-bash-command-pdftotext/index.js +147 -80
- package/dist/safe-bash-command-qpdf/index.js +174 -101
- package/dist/safe-bash-command-sips/index.js +2 -2
- package/dist/safe-bash-command-soffice/index.js +1 -1
- package/dist/safe-bash-command-ssconvert/index.js +147 -80
- package/dist/safe-bash-command-wkhtmltopdf/index.js +147 -80
- package/dist/safe-bash-contracts/default-executor.d.ts +5 -0
- package/dist/safe-bash-contracts/default-executor.js +37 -0
- package/dist/safe-bash-contracts/http.d.ts +41 -0
- package/dist/safe-bash-contracts/http.js +6 -0
- package/dist/safe-bash-io-engine/commands/search/requirements.js +3 -3
- package/dist/safe-bash-io-engine/commands/text-programs/shared.js +3 -3
- package/dist/safe-bash-io-engine/gnu-information.d.ts +1 -1
- package/dist/safe-bash-io-engine/gnu-information.js +1 -1
- package/dist/safe-bash-io-engine/internal.js +2 -2
- package/dist/safe-bash-query-engine/index.js +3 -3
- package/dist/safe-bash-query-engine/interpreter.js +2 -2
- package/dist/safe-bash-query-engine/query-core.js +3 -3
- package/package.json +2 -2
- package/dist/safe-bash/chunks/chunk-2G2T5MEM.js +0 -14
- package/dist/safe-bash/chunks/chunk-2MUJ7RLZ.js +0 -409
- package/dist/safe-bash/chunks/chunk-GJWUEOT6.js +0 -14
- package/dist/safe-bash/chunks/chunk-H7MMJS26.js +0 -37
- package/dist/safe-bash/chunks/chunk-LAPF2XE6.js +0 -14
- package/dist/safe-bash/chunks/chunk-S2LSZFZ6.js +0 -758
- package/dist/safe-bash/chunks/chunk-T3VDYWKZ.js +0 -21
- package/dist/safe-bash/chunks/chunk-VUVKC6HV.js +0 -81
- package/dist/safe-bash/chunks/chunk-VYW4Q6KF.js +0 -12
- package/dist/safe-bash/command-chunks/{chunk-BJ6DGYJA.js → chunk-KNI4GRXF.js} +3 -3
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
builtInDirectContextExecutors,
|
|
3
|
+
syncCommandEvaluators
|
|
4
|
+
} from "./chunk-5OST7NOX.js";
|
|
4
5
|
import {
|
|
5
6
|
init_platform
|
|
6
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-I3KSESCR.js";
|
|
7
8
|
|
|
8
9
|
// packages/safe-bash/src/commands/gh/index.ts
|
|
9
10
|
init_platform();
|
|
@@ -12,15 +13,15 @@ import {
|
|
|
12
13
|
createGhCommands as createRawGhCommands,
|
|
13
14
|
evalSyncGh
|
|
14
15
|
} from "../../safe-bash-command-gh/index.js";
|
|
15
|
-
|
|
16
|
+
import { DEFAULT_GH_LIMITS, GitHubBackend, createDefaultOpenSslProvider, createDefaultSshProvider, createGitHubBackend, parseRepoSpec, settings } from "../../safe-bash-command-gh/index.js";
|
|
16
17
|
function createGhCommand(options = {}) {
|
|
17
18
|
const def = createRawGhCommand(options);
|
|
18
|
-
|
|
19
|
+
builtInDirectContextExecutors.add(def.execute);
|
|
19
20
|
return def;
|
|
20
21
|
}
|
|
21
22
|
function createGhCommands(options = {}) {
|
|
22
23
|
const defs = createRawGhCommands(options);
|
|
23
|
-
for (let i = 0; i < defs.length; i++)
|
|
24
|
+
for (let i = 0; i < defs.length; i++) builtInDirectContextExecutors.add(defs[i].execute);
|
|
24
25
|
return defs;
|
|
25
26
|
}
|
|
26
27
|
function ghCommands(options = {}) {
|
|
@@ -32,10 +33,17 @@ function ghCommands(options = {}) {
|
|
|
32
33
|
}
|
|
33
34
|
};
|
|
34
35
|
}
|
|
35
|
-
|
|
36
|
+
syncCommandEvaluators.evalSyncGh = evalSyncGh;
|
|
36
37
|
export {
|
|
38
|
+
DEFAULT_GH_LIMITS,
|
|
39
|
+
GitHubBackend,
|
|
40
|
+
createDefaultOpenSslProvider,
|
|
41
|
+
createDefaultSshProvider,
|
|
37
42
|
createGhCommand,
|
|
38
43
|
createGhCommands,
|
|
44
|
+
createGitHubBackend,
|
|
39
45
|
evalSyncGh,
|
|
40
|
-
ghCommands
|
|
46
|
+
ghCommands,
|
|
47
|
+
parseRepoSpec,
|
|
48
|
+
settings
|
|
41
49
|
};
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import "./chunk-VUVKC6HV.js";
|
|
2
|
-
import "./chunk-H7MMJS26.js";
|
|
3
|
-
import "./chunk-T3VDYWKZ.js";
|
|
4
1
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
builtInDirectContextExecutors,
|
|
3
|
+
syncCommandEvaluators
|
|
4
|
+
} from "./chunk-5OST7NOX.js";
|
|
7
5
|
import {
|
|
8
6
|
init_platform
|
|
9
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-I3KSESCR.js";
|
|
10
8
|
|
|
11
9
|
// packages/safe-bash/src/commands/git/index.ts
|
|
12
10
|
init_platform();
|
|
@@ -21,14 +19,14 @@ function isDefaultOptions(options) {
|
|
|
21
19
|
function createGitCommand(options = {}) {
|
|
22
20
|
const def = createBaseGitCommand(options);
|
|
23
21
|
if (isDefaultOptions(options)) {
|
|
24
|
-
|
|
22
|
+
builtInDirectContextExecutors.add(def.execute);
|
|
25
23
|
}
|
|
26
24
|
return def;
|
|
27
25
|
}
|
|
28
26
|
function createGitCommands(options = {}) {
|
|
29
27
|
const defs = createBaseGitCommands(options);
|
|
30
28
|
if (isDefaultOptions(options)) {
|
|
31
|
-
for (const def of defs)
|
|
29
|
+
for (const def of defs) builtInDirectContextExecutors.add(def.execute);
|
|
32
30
|
}
|
|
33
31
|
return defs;
|
|
34
32
|
}
|
|
@@ -43,7 +41,7 @@ function gitCommands(options = {}) {
|
|
|
43
41
|
}
|
|
44
42
|
};
|
|
45
43
|
}
|
|
46
|
-
|
|
44
|
+
syncCommandEvaluators.evalSyncGit = evalSyncGit;
|
|
47
45
|
export {
|
|
48
46
|
createGitCommand,
|
|
49
47
|
createGitCommands,
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
builtInDirectContextExecutors,
|
|
3
|
+
syncCommandEvaluators
|
|
4
|
+
} from "./chunk-5OST7NOX.js";
|
|
4
5
|
import {
|
|
5
6
|
init_platform
|
|
6
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-I3KSESCR.js";
|
|
7
8
|
|
|
8
9
|
// packages/safe-bash/src/commands/imagemagick/index.ts
|
|
9
10
|
init_platform();
|
|
@@ -17,10 +18,10 @@ import {
|
|
|
17
18
|
runCompareCliSync,
|
|
18
19
|
runMagickCliSync
|
|
19
20
|
} from "../../safe-bash-command-imagemagick/index.js";
|
|
20
|
-
|
|
21
|
+
import { compareCommand, compositeCommand, convertCommand, createCompareCommand, createCompositeCommand, createConvertCommand, createIdentifyCommand, createImagemagickCommand, createMagickCommand, createMogrifyCommand, createMontageCommand, identifyCommand, magickCommand, mogrifyCommand, montageCommand, parseMagickGeometry, runCompareCli, runCompareCliSync as runCompareCliSync2, runCompositeCli, runCompositeCliSync as runCompositeCliSync2, runConvertCli, runConvertCliSync as runConvertCliSync2, runIdentifyCli, runIdentifyCliSync as runIdentifyCliSync2, runMagickCli, runMagickCliSync as runMagickCliSync2, runMogrifyCli, runMogrifyCliSync as runMogrifyCliSync2, runMontageCli, runMontageCliSync as runMontageCliSync2 } from "../../safe-bash-command-imagemagick/index.js";
|
|
21
22
|
function createImagemagickCommands(options = {}) {
|
|
22
23
|
const defs = createRawImagemagickCommands(options);
|
|
23
|
-
for (let i = 0; i < defs.length; i++)
|
|
24
|
+
for (let i = 0; i < defs.length; i++) builtInDirectContextExecutors.add(defs[i].execute);
|
|
24
25
|
return defs;
|
|
25
26
|
}
|
|
26
27
|
function imagemagickPlugin(options = {}) {
|
|
@@ -125,10 +126,40 @@ function evalSyncIdentify(cmdName, inBytes, opArgs, readFileSync, writeFileSync)
|
|
|
125
126
|
return void 0;
|
|
126
127
|
}
|
|
127
128
|
}
|
|
128
|
-
|
|
129
|
+
syncCommandEvaluators.evalSyncIdentify = evalSyncIdentify;
|
|
129
130
|
export {
|
|
131
|
+
compareCommand,
|
|
132
|
+
compositeCommand,
|
|
133
|
+
convertCommand,
|
|
134
|
+
createCompareCommand,
|
|
135
|
+
createCompositeCommand,
|
|
136
|
+
createConvertCommand,
|
|
137
|
+
createIdentifyCommand,
|
|
138
|
+
createImagemagickCommand,
|
|
130
139
|
createImagemagickCommands,
|
|
140
|
+
createMagickCommand,
|
|
141
|
+
createMogrifyCommand,
|
|
142
|
+
createMontageCommand,
|
|
131
143
|
evalSyncIdentify,
|
|
144
|
+
identifyCommand,
|
|
132
145
|
imagemagickCommands,
|
|
133
|
-
imagemagickPlugin
|
|
146
|
+
imagemagickPlugin,
|
|
147
|
+
magickCommand,
|
|
148
|
+
mogrifyCommand,
|
|
149
|
+
montageCommand,
|
|
150
|
+
parseMagickGeometry,
|
|
151
|
+
runCompareCli,
|
|
152
|
+
runCompareCliSync2 as runCompareCliSync,
|
|
153
|
+
runCompositeCli,
|
|
154
|
+
runCompositeCliSync2 as runCompositeCliSync,
|
|
155
|
+
runConvertCli,
|
|
156
|
+
runConvertCliSync2 as runConvertCliSync,
|
|
157
|
+
runIdentifyCli,
|
|
158
|
+
runIdentifyCliSync2 as runIdentifyCliSync,
|
|
159
|
+
runMagickCli,
|
|
160
|
+
runMagickCliSync2 as runMagickCliSync,
|
|
161
|
+
runMogrifyCli,
|
|
162
|
+
runMogrifyCliSync2 as runMogrifyCliSync,
|
|
163
|
+
runMontageCli,
|
|
164
|
+
runMontageCliSync2 as runMontageCliSync
|
|
134
165
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
builtInDirectContextExecutors,
|
|
3
|
+
syncCommandEvaluators
|
|
4
|
+
} from "./chunk-5OST7NOX.js";
|
|
4
5
|
import {
|
|
5
6
|
init_platform
|
|
6
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-I3KSESCR.js";
|
|
7
8
|
|
|
8
9
|
// packages/safe-bash/src/commands/pandoc/implementation.ts
|
|
9
10
|
init_platform();
|
|
@@ -14,18 +15,18 @@ import {
|
|
|
14
15
|
parseConversionArgs,
|
|
15
16
|
convertSync
|
|
16
17
|
} from "../../safe-bash-command-pandoc/index.js";
|
|
17
|
-
|
|
18
|
+
import { AstError, ExecutionContext, PandocError, assertNever, convert, convertSync as convertSync2, coreFormats, createCiteprocFilterCapability, createExecutionContext, createFormatInspectionCommand, createFormatRegistry, createJsonFilterCapability, createLuaFilterCapability, createStandalonePandocCommand, defaultLimits, formatCapabilities, inspectCommand, inspectFormats as inspectFormats2, normalizeDocument, normalizeDocumentCooperatively, parseConversionArgs as parseConversionArgs2, pdfReader, readDocument, resolveConversionArgs, writeDocument } from "../../safe-bash-command-pandoc/index.js";
|
|
18
19
|
function createPandocCommand(options = {}, hasCommand) {
|
|
19
20
|
const def = createRawPandocCommand(options, hasCommand);
|
|
20
21
|
if (options.limits === void 0 && options.filters === void 0 && options.jsonFilterCommand === void 0 && options.citeproc === void 0) {
|
|
21
|
-
|
|
22
|
+
builtInDirectContextExecutors.add(def.execute);
|
|
22
23
|
}
|
|
23
24
|
return def;
|
|
24
25
|
}
|
|
25
26
|
function createPandocCommands(options = {}) {
|
|
26
27
|
const defs = createRawPandocCommands(options);
|
|
27
28
|
if (options.limits === void 0 && options.filters === void 0 && options.jsonFilterCommand === void 0 && options.citeproc === void 0) {
|
|
28
|
-
for (let i = 0; i < defs.length; i++)
|
|
29
|
+
for (let i = 0; i < defs.length; i++) builtInDirectContextExecutors.add(defs[i].execute);
|
|
29
30
|
}
|
|
30
31
|
return defs;
|
|
31
32
|
}
|
|
@@ -96,10 +97,35 @@ function evalSyncPandoc(inBytes, opArgs, readFileSync, writeFileSync) {
|
|
|
96
97
|
return void 0;
|
|
97
98
|
}
|
|
98
99
|
}
|
|
99
|
-
|
|
100
|
+
syncCommandEvaluators.evalSyncPandoc = evalSyncPandoc;
|
|
100
101
|
export {
|
|
102
|
+
AstError,
|
|
103
|
+
ExecutionContext,
|
|
104
|
+
PandocError,
|
|
105
|
+
assertNever,
|
|
106
|
+
convert,
|
|
107
|
+
convertSync2 as convertSync,
|
|
108
|
+
coreFormats,
|
|
109
|
+
createCiteprocFilterCapability,
|
|
110
|
+
createExecutionContext,
|
|
111
|
+
createFormatInspectionCommand,
|
|
112
|
+
createFormatRegistry,
|
|
113
|
+
createJsonFilterCapability,
|
|
114
|
+
createLuaFilterCapability,
|
|
101
115
|
createPandocCommand,
|
|
102
116
|
createPandocCommands,
|
|
117
|
+
createStandalonePandocCommand,
|
|
118
|
+
defaultLimits,
|
|
103
119
|
evalSyncPandoc,
|
|
104
|
-
|
|
120
|
+
formatCapabilities,
|
|
121
|
+
inspectCommand,
|
|
122
|
+
inspectFormats2 as inspectFormats,
|
|
123
|
+
normalizeDocument,
|
|
124
|
+
normalizeDocumentCooperatively,
|
|
125
|
+
pandocCommands,
|
|
126
|
+
parseConversionArgs2 as parseConversionArgs,
|
|
127
|
+
pdfReader,
|
|
128
|
+
readDocument,
|
|
129
|
+
resolveConversionArgs,
|
|
130
|
+
writeDocument
|
|
105
131
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
builtInDirectContextExecutors,
|
|
3
|
+
syncCommandEvaluators
|
|
4
|
+
} from "./chunk-5OST7NOX.js";
|
|
4
5
|
import {
|
|
5
6
|
init_platform
|
|
6
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-I3KSESCR.js";
|
|
7
8
|
|
|
8
9
|
// packages/safe-bash/src/commands/pdfimages/index.ts
|
|
9
10
|
init_platform();
|
|
@@ -12,15 +13,15 @@ import {
|
|
|
12
13
|
createPdfimagesCommands as createRawPdfimagesCommands,
|
|
13
14
|
runPdfimagesCliSync
|
|
14
15
|
} from "../../safe-bash-command-pdfimages/index.js";
|
|
15
|
-
|
|
16
|
+
import { pdfimagesCommand, runPdfimagesCli, runPdfimagesCliSync as runPdfimagesCliSync2 } from "../../safe-bash-command-pdfimages/index.js";
|
|
16
17
|
function createPdfimagesCommand(options = {}) {
|
|
17
18
|
const def = createRawPdfimagesCommand(options);
|
|
18
|
-
|
|
19
|
+
builtInDirectContextExecutors.add(def.execute);
|
|
19
20
|
return def;
|
|
20
21
|
}
|
|
21
22
|
function createPdfimagesCommands(options = {}) {
|
|
22
23
|
const defs = createRawPdfimagesCommands(options);
|
|
23
|
-
for (let i = 0; i < defs.length; i++)
|
|
24
|
+
for (let i = 0; i < defs.length; i++) builtInDirectContextExecutors.add(defs[i].execute);
|
|
24
25
|
return defs;
|
|
25
26
|
}
|
|
26
27
|
function pdfimagesPlugin(options = {}) {
|
|
@@ -63,11 +64,14 @@ function evalSyncPdfimages(inBytes, opArgs, readFileSync, writeFileSync) {
|
|
|
63
64
|
return void 0;
|
|
64
65
|
}
|
|
65
66
|
}
|
|
66
|
-
|
|
67
|
+
syncCommandEvaluators.evalSyncPdfimages = evalSyncPdfimages;
|
|
67
68
|
export {
|
|
68
69
|
createPdfimagesCommand,
|
|
69
70
|
createPdfimagesCommands,
|
|
70
71
|
evalSyncPdfimages,
|
|
72
|
+
pdfimagesCommand,
|
|
71
73
|
pdfimagesCommands,
|
|
72
|
-
pdfimagesPlugin
|
|
74
|
+
pdfimagesPlugin,
|
|
75
|
+
runPdfimagesCli,
|
|
76
|
+
runPdfimagesCliSync2 as runPdfimagesCliSync
|
|
73
77
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
builtInDirectContextExecutors,
|
|
3
|
+
syncCommandEvaluators
|
|
4
|
+
} from "./chunk-5OST7NOX.js";
|
|
4
5
|
import {
|
|
5
6
|
init_platform
|
|
6
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-I3KSESCR.js";
|
|
7
8
|
|
|
8
9
|
// packages/safe-bash/src/commands/pdfinfo/index.ts
|
|
9
10
|
init_platform();
|
|
@@ -17,30 +18,30 @@ import {
|
|
|
17
18
|
runPdffontsCliSync,
|
|
18
19
|
runPdfdetachCliSync
|
|
19
20
|
} from "../../safe-bash-command-pdfinfo/index.js";
|
|
20
|
-
|
|
21
|
+
import { createPdfimagesCommand, createPdfseparateCommand, createPdftoppmCommand, createPdfuniteCommand, inspectPdfBytes as inspectPdfBytes2, pdfdetachCommand, pdffontsCommand, pdfimagesCommand, pdfinfo, pdfinfoCommand, pdfseparateCommand, pdftocairoCommand, pdftoppmCommand, pdfuniteCommand, runPdfdetachCli, runPdfdetachCliSync as runPdfdetachCliSync2, runPdffontsCli, runPdffontsCliSync as runPdffontsCliSync2, runPdfimagesCli, runPdfinfoCli, runPdfseparateCli, runPdftocairoCli, runPdftoppmCli, runPdfuniteCli } from "../../safe-bash-command-pdfinfo/index.js";
|
|
21
22
|
function createPdfinfoCommand(options = {}) {
|
|
22
23
|
const def = createRawPdfinfoCommand(options);
|
|
23
|
-
|
|
24
|
+
builtInDirectContextExecutors.add(def.execute);
|
|
24
25
|
return def;
|
|
25
26
|
}
|
|
26
27
|
function createPdffontsCommand(options = {}) {
|
|
27
28
|
const def = createRawPdffontsCommand(options);
|
|
28
|
-
|
|
29
|
+
builtInDirectContextExecutors.add(def.execute);
|
|
29
30
|
return def;
|
|
30
31
|
}
|
|
31
32
|
function createPdfdetachCommand(options = {}) {
|
|
32
33
|
const def = createRawPdfdetachCommand(options);
|
|
33
|
-
|
|
34
|
+
builtInDirectContextExecutors.add(def.execute);
|
|
34
35
|
return def;
|
|
35
36
|
}
|
|
36
37
|
function createPdftocairoCommand(options = {}) {
|
|
37
38
|
const def = createRawPdftocairoCommand(options);
|
|
38
|
-
|
|
39
|
+
builtInDirectContextExecutors.add(def.execute);
|
|
39
40
|
return def;
|
|
40
41
|
}
|
|
41
42
|
function createPdfinfoCommands(options = {}) {
|
|
42
43
|
const defs = createRawPdfinfoCommands(options);
|
|
43
|
-
for (let i = 0; i < defs.length; i++)
|
|
44
|
+
for (let i = 0; i < defs.length; i++) builtInDirectContextExecutors.add(defs[i].execute);
|
|
44
45
|
return defs;
|
|
45
46
|
}
|
|
46
47
|
function pdfinfoCommands(options = {}) {
|
|
@@ -137,17 +138,41 @@ function evalSyncPdfdetach(inBytes, opArgs, readFileSync, writeFileSync) {
|
|
|
137
138
|
return void 0;
|
|
138
139
|
}
|
|
139
140
|
}
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
141
|
+
syncCommandEvaluators.evalSyncPdfinfo = evalSyncPdfinfo;
|
|
142
|
+
syncCommandEvaluators.evalSyncPdffonts = evalSyncPdffonts;
|
|
143
|
+
syncCommandEvaluators.evalSyncPdfdetach = evalSyncPdfdetach;
|
|
143
144
|
export {
|
|
144
145
|
createPdfdetachCommand,
|
|
145
146
|
createPdffontsCommand,
|
|
147
|
+
createPdfimagesCommand,
|
|
146
148
|
createPdfinfoCommand,
|
|
147
149
|
createPdfinfoCommands,
|
|
150
|
+
createPdfseparateCommand,
|
|
148
151
|
createPdftocairoCommand,
|
|
152
|
+
createPdftoppmCommand,
|
|
153
|
+
createPdfuniteCommand,
|
|
149
154
|
evalSyncPdfdetach,
|
|
150
155
|
evalSyncPdffonts,
|
|
151
156
|
evalSyncPdfinfo,
|
|
152
|
-
|
|
157
|
+
inspectPdfBytes2 as inspectPdfBytes,
|
|
158
|
+
pdfdetachCommand,
|
|
159
|
+
pdffontsCommand,
|
|
160
|
+
pdfimagesCommand,
|
|
161
|
+
pdfinfo,
|
|
162
|
+
pdfinfoCommand,
|
|
163
|
+
pdfinfoCommands,
|
|
164
|
+
pdfseparateCommand,
|
|
165
|
+
pdftocairoCommand,
|
|
166
|
+
pdftoppmCommand,
|
|
167
|
+
pdfuniteCommand,
|
|
168
|
+
runPdfdetachCli,
|
|
169
|
+
runPdfdetachCliSync2 as runPdfdetachCliSync,
|
|
170
|
+
runPdffontsCli,
|
|
171
|
+
runPdffontsCliSync2 as runPdffontsCliSync,
|
|
172
|
+
runPdfimagesCli,
|
|
173
|
+
runPdfinfoCli,
|
|
174
|
+
runPdfseparateCli,
|
|
175
|
+
runPdftocairoCli,
|
|
176
|
+
runPdftoppmCli,
|
|
177
|
+
runPdfuniteCli
|
|
153
178
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
builtInDirectContextExecutors,
|
|
3
|
+
syncCommandEvaluators
|
|
4
|
+
} from "./chunk-5OST7NOX.js";
|
|
4
5
|
import {
|
|
5
6
|
init_platform
|
|
6
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-I3KSESCR.js";
|
|
7
8
|
|
|
8
9
|
// packages/safe-bash/src/commands/pdftk/index.ts
|
|
9
10
|
init_platform();
|
|
@@ -12,7 +13,7 @@ import {
|
|
|
12
13
|
createPdftkCommands as createRawPdftkCommands,
|
|
13
14
|
runPdftkCliSync
|
|
14
15
|
} from "../../safe-bash-command-pdftk/index.js";
|
|
15
|
-
|
|
16
|
+
import { parsePdftkRangeToken, pdftkCommand, runPdftkCli, runPdftkCliSync as runPdftkCliSync2 } from "../../safe-bash-command-pdftk/index.js";
|
|
16
17
|
function isDefaultPdftkOptions(options) {
|
|
17
18
|
if (!options) return true;
|
|
18
19
|
const o = options;
|
|
@@ -20,13 +21,13 @@ function isDefaultPdftkOptions(options) {
|
|
|
20
21
|
}
|
|
21
22
|
function createPdftkCommand(options = {}) {
|
|
22
23
|
const def = createRawPdftkCommand(options);
|
|
23
|
-
if (isDefaultPdftkOptions(options))
|
|
24
|
+
if (isDefaultPdftkOptions(options)) builtInDirectContextExecutors.add(def.execute);
|
|
24
25
|
return def;
|
|
25
26
|
}
|
|
26
27
|
function createPdftkCommands(options = {}) {
|
|
27
28
|
const defs = createRawPdftkCommands(options);
|
|
28
29
|
if (isDefaultPdftkOptions(options)) {
|
|
29
|
-
for (let i = 0; i < defs.length; i++)
|
|
30
|
+
for (let i = 0; i < defs.length; i++) builtInDirectContextExecutors.add(defs[i].execute);
|
|
30
31
|
}
|
|
31
32
|
return defs;
|
|
32
33
|
}
|
|
@@ -69,11 +70,15 @@ function evalSyncPdftk(inBytes, opArgs, readFileSync, writeFileSync) {
|
|
|
69
70
|
return void 0;
|
|
70
71
|
}
|
|
71
72
|
}
|
|
72
|
-
|
|
73
|
+
syncCommandEvaluators.evalSyncPdftk = evalSyncPdftk;
|
|
73
74
|
export {
|
|
74
75
|
createPdftkCommand,
|
|
75
76
|
createPdftkCommands,
|
|
76
77
|
evalSyncPdftk,
|
|
78
|
+
parsePdftkRangeToken,
|
|
79
|
+
pdftkCommand,
|
|
77
80
|
pdftkCommands,
|
|
78
|
-
pdftkPlugin
|
|
81
|
+
pdftkPlugin,
|
|
82
|
+
runPdftkCli,
|
|
83
|
+
runPdftkCliSync2 as runPdftkCliSync
|
|
79
84
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
builtInDirectContextExecutors,
|
|
3
|
+
syncCommandEvaluators
|
|
4
|
+
} from "./chunk-5OST7NOX.js";
|
|
4
5
|
import {
|
|
5
6
|
init_platform
|
|
6
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-I3KSESCR.js";
|
|
7
8
|
|
|
8
9
|
// packages/safe-bash/src/commands/pdftoppm/index.ts
|
|
9
10
|
init_platform();
|
|
@@ -14,21 +15,21 @@ import {
|
|
|
14
15
|
runPdftoppmCliSync,
|
|
15
16
|
runPdftocairoCliSync
|
|
16
17
|
} from "../../safe-bash-command-pdftoppm/index.js";
|
|
17
|
-
|
|
18
|
+
import { pdftocairoCommand, pdftoppmCommand, runPdftocairoCli, runPdftocairoCliSync as runPdftocairoCliSync2, runPdftoppmCli, runPdftoppmCliSync as runPdftoppmCliSync2 } from "../../safe-bash-command-pdftoppm/index.js";
|
|
18
19
|
var utf8Decoder = new TextDecoder("utf-8", { fatal: true });
|
|
19
20
|
function createPdftoppmCommand(options = {}) {
|
|
20
21
|
const def = createRawPdftoppmCommand(options);
|
|
21
|
-
|
|
22
|
+
builtInDirectContextExecutors.add(def.execute);
|
|
22
23
|
return def;
|
|
23
24
|
}
|
|
24
25
|
function createPdftocairoCommand(options = {}) {
|
|
25
26
|
const def = createRawPdftocairoCommand(options);
|
|
26
|
-
|
|
27
|
+
builtInDirectContextExecutors.add(def.execute);
|
|
27
28
|
return def;
|
|
28
29
|
}
|
|
29
30
|
function createPdftoppmCommands(options = {}) {
|
|
30
31
|
const defs = createRawPdftoppmCommands(options);
|
|
31
|
-
for (let i = 0; i < defs.length; i++)
|
|
32
|
+
for (let i = 0; i < defs.length; i++) builtInDirectContextExecutors.add(defs[i].execute);
|
|
32
33
|
return defs;
|
|
33
34
|
}
|
|
34
35
|
function pdftoppmCommands(options = {}) {
|
|
@@ -126,14 +127,20 @@ function evalSyncPdftocairo(inBytes, opArgs, readFileSync, writeFileSync) {
|
|
|
126
127
|
return void 0;
|
|
127
128
|
}
|
|
128
129
|
}
|
|
129
|
-
|
|
130
|
-
|
|
130
|
+
syncCommandEvaluators.evalSyncPdftoppm = evalSyncPdftoppm;
|
|
131
|
+
syncCommandEvaluators.evalSyncPdftocairo = evalSyncPdftocairo;
|
|
131
132
|
export {
|
|
132
133
|
createPdftocairoCommand,
|
|
133
134
|
createPdftoppmCommand,
|
|
134
135
|
createPdftoppmCommands,
|
|
135
136
|
evalSyncPdftocairo,
|
|
136
137
|
evalSyncPdftoppm,
|
|
138
|
+
pdftocairoCommand,
|
|
139
|
+
pdftoppmCommand,
|
|
137
140
|
pdftoppmCommands,
|
|
138
|
-
pdftoppmPlugin
|
|
141
|
+
pdftoppmPlugin,
|
|
142
|
+
runPdftocairoCli,
|
|
143
|
+
runPdftocairoCliSync2 as runPdftocairoCliSync,
|
|
144
|
+
runPdftoppmCli,
|
|
145
|
+
runPdftoppmCliSync2 as runPdftoppmCliSync
|
|
139
146
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
builtInDirectContextExecutors,
|
|
3
|
+
syncCommandEvaluators
|
|
4
|
+
} from "./chunk-5OST7NOX.js";
|
|
4
5
|
import {
|
|
5
6
|
init_platform
|
|
6
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-I3KSESCR.js";
|
|
7
8
|
|
|
8
9
|
// packages/safe-bash/src/commands/pdftotext/index.ts
|
|
9
10
|
init_platform();
|
|
@@ -13,7 +14,7 @@ import {
|
|
|
13
14
|
extractPdfToTextBytes,
|
|
14
15
|
runPdftohtmlCliSync
|
|
15
16
|
} from "../../safe-bash-command-pdftotext/index.js";
|
|
16
|
-
|
|
17
|
+
import { createPdftohtmlCommand, extractPdfToTextBytes as extractPdfToTextBytes2, pdftohtml, pdftohtmlCommand, pdftotext, pdftotextCommand, runPdftohtmlCli, runPdftohtmlCliSync as runPdftohtmlCliSync2, runPdftotextCli } from "../../safe-bash-command-pdftotext/index.js";
|
|
17
18
|
function isDefaultPdftotextOptions(options) {
|
|
18
19
|
if (!options) return true;
|
|
19
20
|
const o = options;
|
|
@@ -21,13 +22,13 @@ function isDefaultPdftotextOptions(options) {
|
|
|
21
22
|
}
|
|
22
23
|
function createPdftotextCommand(options = {}) {
|
|
23
24
|
const def = createRawPdftotextCommand(options);
|
|
24
|
-
if (isDefaultPdftotextOptions(options))
|
|
25
|
+
if (isDefaultPdftotextOptions(options)) builtInDirectContextExecutors.add(def.execute);
|
|
25
26
|
return def;
|
|
26
27
|
}
|
|
27
28
|
function createPdftotextCommands(options = {}) {
|
|
28
29
|
const defs = createRawPdftotextCommands(options);
|
|
29
30
|
if (isDefaultPdftotextOptions(options)) {
|
|
30
|
-
for (let i = 0; i < defs.length; i++)
|
|
31
|
+
for (let i = 0; i < defs.length; i++) builtInDirectContextExecutors.add(defs[i].execute);
|
|
31
32
|
}
|
|
32
33
|
return defs;
|
|
33
34
|
}
|
|
@@ -107,12 +108,21 @@ function evalSyncPdftohtml(inBytes, opArgs, readFileSync, writeFileSync) {
|
|
|
107
108
|
return void 0;
|
|
108
109
|
}
|
|
109
110
|
}
|
|
110
|
-
|
|
111
|
-
|
|
111
|
+
syncCommandEvaluators.evalSyncPdftotext = evalSyncPdftotext;
|
|
112
|
+
syncCommandEvaluators.evalSyncPdftohtml = evalSyncPdftohtml;
|
|
112
113
|
export {
|
|
114
|
+
createPdftohtmlCommand,
|
|
113
115
|
createPdftotextCommand,
|
|
114
116
|
createPdftotextCommands,
|
|
115
117
|
evalSyncPdftohtml,
|
|
116
118
|
evalSyncPdftotext,
|
|
117
|
-
|
|
119
|
+
extractPdfToTextBytes2 as extractPdfToTextBytes,
|
|
120
|
+
pdftohtml,
|
|
121
|
+
pdftohtmlCommand,
|
|
122
|
+
pdftotext,
|
|
123
|
+
pdftotextCommand,
|
|
124
|
+
pdftotextCommands,
|
|
125
|
+
runPdftohtmlCli,
|
|
126
|
+
runPdftohtmlCliSync2 as runPdftohtmlCliSync,
|
|
127
|
+
runPdftotextCli
|
|
118
128
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
builtInDirectContextExecutors,
|
|
3
|
+
syncCommandEvaluators
|
|
4
|
+
} from "./chunk-5OST7NOX.js";
|
|
4
5
|
import {
|
|
5
6
|
init_platform
|
|
6
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-I3KSESCR.js";
|
|
7
8
|
|
|
8
9
|
// packages/safe-bash/src/commands/qpdf/index.ts
|
|
9
10
|
init_platform();
|
|
@@ -12,15 +13,15 @@ import {
|
|
|
12
13
|
createQpdfCommands as createRawQpdfCommands,
|
|
13
14
|
runQpdfCliSync
|
|
14
15
|
} from "../../safe-bash-command-qpdf/index.js";
|
|
15
|
-
|
|
16
|
+
import { parseQpdfPageRange, qpdf, qpdfCommand, runQpdfCli, runQpdfCliSync as runQpdfCliSync2 } from "../../safe-bash-command-qpdf/index.js";
|
|
16
17
|
function createQpdfCommand(options = {}) {
|
|
17
18
|
const def = createRawQpdfCommand(options);
|
|
18
|
-
|
|
19
|
+
builtInDirectContextExecutors.add(def.execute);
|
|
19
20
|
return def;
|
|
20
21
|
}
|
|
21
22
|
function createQpdfCommands(options = {}) {
|
|
22
23
|
const defs = createRawQpdfCommands(options);
|
|
23
|
-
for (let i = 0; i < defs.length; i++)
|
|
24
|
+
for (let i = 0; i < defs.length; i++) builtInDirectContextExecutors.add(defs[i].execute);
|
|
24
25
|
return defs;
|
|
25
26
|
}
|
|
26
27
|
function qpdfCommands(options = {}) {
|
|
@@ -59,10 +60,15 @@ function evalSyncQpdf(inBytes, opArgs, readFileSync, writeFileSync) {
|
|
|
59
60
|
return void 0;
|
|
60
61
|
}
|
|
61
62
|
}
|
|
62
|
-
|
|
63
|
+
syncCommandEvaluators.evalSyncQpdf = evalSyncQpdf;
|
|
63
64
|
export {
|
|
64
65
|
createQpdfCommand,
|
|
65
66
|
createQpdfCommands,
|
|
66
67
|
evalSyncQpdf,
|
|
67
|
-
|
|
68
|
+
parseQpdfPageRange,
|
|
69
|
+
qpdf,
|
|
70
|
+
qpdfCommand,
|
|
71
|
+
qpdfCommands,
|
|
72
|
+
runQpdfCli,
|
|
73
|
+
runQpdfCliSync2 as runQpdfCliSync
|
|
68
74
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
builtInDirectContextExecutors,
|
|
3
|
+
syncCommandEvaluators
|
|
4
|
+
} from "./chunk-5OST7NOX.js";
|
|
4
5
|
import {
|
|
5
6
|
init_platform
|
|
6
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-I3KSESCR.js";
|
|
7
8
|
|
|
8
9
|
// packages/safe-bash/src/commands/sips/index.ts
|
|
9
10
|
init_platform();
|
|
@@ -12,15 +13,15 @@ import {
|
|
|
12
13
|
createSipsCommands as createRawSipsCommands,
|
|
13
14
|
runSipsCliSync
|
|
14
15
|
} from "../../safe-bash-command-sips/index.js";
|
|
15
|
-
|
|
16
|
+
import { createIdentifyCommand, identifyCommand, runIdentifyCli, runSipsCli, runSipsCliSync as runSipsCliSync2, sipsCommand } from "../../safe-bash-command-sips/index.js";
|
|
16
17
|
function createSipsCommand(options = {}) {
|
|
17
18
|
const def = createRawSipsCommand(options);
|
|
18
|
-
|
|
19
|
+
builtInDirectContextExecutors.add(def.execute);
|
|
19
20
|
return def;
|
|
20
21
|
}
|
|
21
22
|
function createSipsCommands(options = {}) {
|
|
22
23
|
const defs = createRawSipsCommands(options);
|
|
23
|
-
for (let i = 0; i < defs.length; i++)
|
|
24
|
+
for (let i = 0; i < defs.length; i++) builtInDirectContextExecutors.add(defs[i].execute);
|
|
24
25
|
return defs;
|
|
25
26
|
}
|
|
26
27
|
function sipsPlugin(options = {}) {
|
|
@@ -67,11 +68,17 @@ function evalSyncSips(inBytes, opArgs, readFileSync, writeFileSync) {
|
|
|
67
68
|
return void 0;
|
|
68
69
|
}
|
|
69
70
|
}
|
|
70
|
-
|
|
71
|
+
syncCommandEvaluators.evalSyncSips = evalSyncSips;
|
|
71
72
|
export {
|
|
73
|
+
createIdentifyCommand,
|
|
72
74
|
createSipsCommand,
|
|
73
75
|
createSipsCommands,
|
|
74
76
|
evalSyncSips,
|
|
77
|
+
identifyCommand,
|
|
78
|
+
runIdentifyCli,
|
|
79
|
+
runSipsCli,
|
|
80
|
+
runSipsCliSync2 as runSipsCliSync,
|
|
81
|
+
sipsCommand,
|
|
75
82
|
sipsCommands,
|
|
76
83
|
sipsPlugin
|
|
77
84
|
};
|