@poe-platform/safe-bash 0.1.782 → 0.1.784
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.md +40 -0
- package/dist/office-package/zip-sync.d.ts +2 -0
- package/dist/office-package/zip-sync.js +111 -0
- package/dist/safe-bash/chunks/chunk-4FDQJUFW.js +3464 -0
- package/dist/safe-bash/chunks/csvkit-K55OYAQC.js +1564 -0
- package/dist/safe-bash/chunks/ffmpeg-BEFTQ6DZ.js +60 -0
- package/dist/safe-bash/chunks/gh-HQWOWLWE.js +41 -0
- package/dist/safe-bash/chunks/git-UFNPAOYZ.js +52 -0
- package/dist/safe-bash/chunks/imagemagick-53BMHH6D.js +134 -0
- package/dist/safe-bash/chunks/implementation-QUTAAYMT.js +105 -0
- package/dist/safe-bash/chunks/pdfimages-4OYI6FLG.js +73 -0
- package/dist/safe-bash/chunks/pdfinfo-I7U6TQPP.js +153 -0
- package/dist/safe-bash/chunks/pdftk-SUA6FMHI.js +79 -0
- package/dist/safe-bash/chunks/pdftoppm-4C5DGEWX.js +139 -0
- package/dist/safe-bash/chunks/pdftotext-Y4WI225Y.js +118 -0
- package/dist/safe-bash/chunks/qpdf-IORB4RV5.js +68 -0
- package/dist/safe-bash/chunks/sips-WHAMJFEU.js +77 -0
- package/dist/safe-bash/chunks/soffice-SYEK6WJS.js +89 -0
- package/dist/safe-bash/chunks/wkhtmltopdf-ZIICWJLF.js +85 -0
- package/dist/safe-bash/command-chunks/chunk-2LP3VMPA.js +58 -0
- package/dist/safe-bash/command-chunks/{chunk-CG4JSOK2.js → chunk-3HDIDEUJ.js} +1 -1
- package/dist/safe-bash/command-chunks/chunk-4DSJDVBM.js +2897 -0
- package/dist/safe-bash/command-chunks/{chunk-GBHSE6ZO.js → chunk-5GRLAARV.js} +1 -1
- package/dist/safe-bash/command-chunks/chunk-7OKDCM5U.js +112 -0
- package/dist/safe-bash/command-chunks/{chunk-FH3D75FC.js → chunk-ADCGH6A7.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-MTKXVRXL.js → chunk-DREUDEQG.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-ADBFNLLK.js → chunk-FXYWQ6S4.js} +16 -14
- package/dist/safe-bash/command-chunks/{chunk-Y2KHC6TZ.js → chunk-IDKD76KR.js} +5 -3
- package/dist/safe-bash/command-chunks/{chunk-K6KBYLQC.js → chunk-JUDOV5MJ.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-3ZK5F23O.js → chunk-L3MLMXL4.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-E5TEVROY.js → chunk-PFBJR2PY.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-YGYOVXTO.js → chunk-UUR2S7AD.js} +9 -5
- package/dist/safe-bash/command-chunks/chunk-VIVYKW7Q.js +101 -0
- package/dist/safe-bash/command-chunks/{chunk-I5GLTNVH.js → chunk-X4P42NYK.js} +2 -27
- package/dist/safe-bash/command-chunks/{chunk-XF6TXYLD.js → chunk-Z57TV6TC.js} +4 -54
- package/dist/safe-bash/command-chunks/{chunk-QDPRSPHQ.js → chunk-Z64BW7CG.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-X3IVPNC3.js → chunk-Z7TYZG3A.js} +5 -3
- package/dist/safe-bash/command-chunks/{chunk-GZXLPWT5.js → chunk-ZF3ZVGQC.js} +259 -258
- package/dist/safe-bash/command-chunks/{pptx-ZL6L7KP2-QVZEYFUV.js → pptx-KY2OJWZW-76LBHCHD.js} +4 -3
- package/dist/safe-bash/commands/csvkit/index.d.ts +1 -8
- package/dist/safe-bash/commands/csvkit/index.js +5 -1639
- package/dist/safe-bash/commands/csvkit/sync.d.ts +9 -0
- package/dist/safe-bash/commands/csvkit/sync.js +1639 -0
- package/dist/safe-bash/commands/pandoc/implementation.d.ts +8 -0
- package/dist/safe-bash/commands/pandoc/implementation.js +92 -0
- package/dist/safe-bash/commands/pandoc/index.d.ts +2 -6
- package/dist/safe-bash/commands/pandoc/index.js +2 -90
- package/dist/safe-bash/core.browser.js +808 -6271
- package/dist/safe-bash/core.d.ts +17 -16
- package/dist/safe-bash/core.js +17 -16
- package/dist/safe-bash/lazy-gh.d.ts +10 -0
- package/dist/safe-bash/lazy-gh.js +30 -0
- package/dist/safe-bash/lazy-optional.d.ts +499 -0
- package/dist/safe-bash/lazy-optional.js +609 -0
- package/dist/safe-bash/plugins/composition.d.ts +1 -1
- package/dist/safe-bash/plugins/composition.js +1 -1
- package/dist/safe-bash/plugins/lazy-command.d.ts +9 -0
- package/dist/safe-bash/plugins/lazy-command.js +57 -0
- package/dist/safe-bash/shell/runtime.js +24 -25
- package/dist/safe-bash-command-csvkit/cli/lexical.d.ts +3 -0
- package/dist/safe-bash-command-csvkit/cli/parser.d.ts +1 -2
- package/dist/safe-bash-command-csvkit/codecs/python.js +3 -2
- package/dist/safe-bash-command-csvkit/codecs/utf8.js +2 -1
- package/dist/safe-bash-command-csvkit/index.js +453 -3270
- package/dist/safe-bash-command-csvkit/sync-support.d.ts +7 -0
- package/dist/safe-bash-command-csvkit/sync-support.js +31 -0
- package/dist/safe-bash-command-gh/index.js +25 -17
- package/dist/safe-bash-command-git/index.js +6 -10
- package/dist/safe-bash-command-imagemagick/index.js +2 -2
- package/dist/safe-bash-command-pandoc/citeproc-filters.js +4 -2
- package/dist/safe-bash-command-pandoc/command.js +8 -6
- package/dist/safe-bash-command-pandoc/index.js +8 -6
- package/dist/safe-bash-command-pandoc/lua-filters.js +3 -2
- package/dist/safe-bash-command-pandoc/options.d.ts +5 -0
- package/dist/safe-bash-command-pandoc/options.js +93 -0
- package/dist/safe-bash-command-sips/index.js +2 -2
- package/dist/safe-bash-command-soffice/index.d.ts +1 -2
- package/dist/safe-bash-command-soffice/index.js +22 -18
- package/dist/safe-bash-command-ssconvert/commands.js +2 -2
- package/dist/safe-bash-command-ssconvert/core.js +2 -2
- package/dist/safe-bash-command-ssconvert/formats/csv.js +2 -2
- package/dist/safe-bash-command-ssconvert/formats/xls.js +3 -3
- package/dist/safe-bash-command-ssconvert/formats/xlsx.js +3 -3
- package/dist/safe-bash-command-timeout/index.js +3 -3
- package/dist/safe-bash-command-yq/index.js +5 -5
- package/dist/safe-bash-compression-engine/bounded-codec.js +3 -3
- package/dist/safe-bash-compression-engine/codec-loader.js +2 -2
- package/dist/safe-bash-compression-engine/files.js +7 -7
- package/dist/safe-bash-compression-engine/index.js +6 -6
- package/dist/safe-bash-compression-engine/operand.js +7 -7
- package/dist/safe-bash-compression-engine/stream.js +6 -6
- package/dist/safe-bash-compression-engine/zstd-decode.js +5 -5
- package/dist/safe-bash-contracts/diagnostics.js +3 -3
- package/dist/safe-bash-contracts/escaping.js +9 -9
- package/dist/safe-bash-contracts/filesystem-descriptor.js +1 -1
- package/dist/safe-bash-contracts/filesystem-output.js +10 -10
- package/dist/safe-bash-contracts/index.js +40 -40
- package/dist/safe-bash-io-engine/commands/search/requirements.js +4 -4
- package/dist/safe-bash-io-engine/commands/text-programs/shared.js +4 -4
- package/dist/safe-bash-io-engine/internal.d.ts +9 -0
- package/dist/safe-bash-io-engine/internal.js +3 -3
- package/dist/safe-bash-query-engine/index.js +6 -6
- package/dist/safe-bash-query-engine/interpreter.js +5 -5
- package/dist/safe-bash-query-engine/query-core.js +6 -6
- package/dist/safe-bash-regex-engine/execution/bounded-provider.js +3 -3
- package/dist/safe-bash-regex-engine/index.js +2 -2
- package/dist/safe-bash-regex-engine/text/regex.js +2 -2
- package/dist/safe-bash-xml-engine/index.js +3 -3
- package/package.json +4 -4
- package/dist/safe-bash/command-chunks/{chunk-DC52GWRK.js → chunk-BUKYQBXO.js} +13 -13
- package/dist/safe-bash/command-chunks/{chunk-QJ3ONEBI.js → chunk-DEH3CMGL.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-Y64PA6IA.js → chunk-KHZZ4V3L.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-I7PKIGII.js → chunk-QIRUOY2W.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-HQG2IBZL.js → chunk-TOSM3T3A.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-F4IQCXZG.js → chunk-VBZMCL23.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-J2NPH7DO.js → chunk-W2T7JWT3.js} +3 -3
|
@@ -93,7 +93,6 @@ import { gnuInformationSync } from "../commands/gnu-information.js";
|
|
|
93
93
|
import { evalSyncTar, evalSyncUnzip, evalSyncZip } from "../commands/archive/index.js";
|
|
94
94
|
import { evalSyncDd } from "../../safe-bash-command-dd/index.js";
|
|
95
95
|
import { evalSyncEnv, evalSyncXargs } from "../commands/execution.js";
|
|
96
|
-
import { evalSyncCsvlook, evalSyncCsvjson, evalSyncCsvsort, evalSyncCsvformat, evalSyncCsvstat, evalSyncIn2csv, evalSyncCsvstack, evalSyncCsvjoin } from "../commands/csvkit/index.js";
|
|
97
96
|
import { evalSyncDiff } from "../commands/diff-patch/index.js";
|
|
98
97
|
import { evalSyncXan } from "../../safe-bash-command-xan/index.js";
|
|
99
98
|
import { evalSyncDate, evalSyncPrintenv } from "../commands/time-env/index.js";
|
|
@@ -36897,21 +36896,21 @@ export class Runtime {
|
|
|
36897
36896
|
: firstName === "find"
|
|
36898
36897
|
? evalSyncFind(stageArgs, rawState.cwd, (p, follow) => this.tryInspectMemoryNodeSync(p, true, follow), true)
|
|
36899
36898
|
: firstName === "csvlook"
|
|
36900
|
-
? evalSyncCsvlook(sIdx === 0 && cmd0FileStage ? undefined : rawBytes, stageArgs, readFile)
|
|
36899
|
+
? syncCommandEvaluators.evalSyncCsvlook?.(sIdx === 0 && cmd0FileStage ? undefined : rawBytes, stageArgs, readFile)
|
|
36901
36900
|
: firstName === "csvjson"
|
|
36902
|
-
? evalSyncCsvjson(sIdx === 0 && cmd0FileStage ? undefined : rawBytes, stageArgs, readFile)
|
|
36901
|
+
? syncCommandEvaluators.evalSyncCsvjson?.(sIdx === 0 && cmd0FileStage ? undefined : rawBytes, stageArgs, readFile)
|
|
36903
36902
|
: firstName === "csvsort"
|
|
36904
|
-
? evalSyncCsvsort(sIdx === 0 && cmd0FileStage ? undefined : rawBytes, stageArgs, readFile)
|
|
36903
|
+
? syncCommandEvaluators.evalSyncCsvsort?.(sIdx === 0 && cmd0FileStage ? undefined : rawBytes, stageArgs, readFile)
|
|
36905
36904
|
: firstName === "csvformat"
|
|
36906
|
-
? evalSyncCsvformat(sIdx === 0 && cmd0FileStage ? undefined : rawBytes, stageArgs, readFile)
|
|
36905
|
+
? syncCommandEvaluators.evalSyncCsvformat?.(sIdx === 0 && cmd0FileStage ? undefined : rawBytes, stageArgs, readFile)
|
|
36907
36906
|
: firstName === "csvstat"
|
|
36908
|
-
? evalSyncCsvstat(sIdx === 0 && cmd0FileStage ? undefined : rawBytes, stageArgs, readFile)
|
|
36907
|
+
? syncCommandEvaluators.evalSyncCsvstat?.(sIdx === 0 && cmd0FileStage ? undefined : rawBytes, stageArgs, readFile)
|
|
36909
36908
|
: firstName === "in2csv"
|
|
36910
|
-
? evalSyncIn2csv(sIdx === 0 && cmd0FileStage ? undefined : rawBytes, stageArgs, readFile)
|
|
36909
|
+
? syncCommandEvaluators.evalSyncIn2csv?.(sIdx === 0 && cmd0FileStage ? undefined : rawBytes, stageArgs, readFile)
|
|
36911
36910
|
: firstName === "csvstack"
|
|
36912
|
-
? evalSyncCsvstack(sIdx === 0 && cmd0FileStage ? undefined : rawBytes, stageArgs, readFile)
|
|
36911
|
+
? syncCommandEvaluators.evalSyncCsvstack?.(sIdx === 0 && cmd0FileStage ? undefined : rawBytes, stageArgs, readFile)
|
|
36913
36912
|
: firstName === "csvjoin"
|
|
36914
|
-
? evalSyncCsvjoin(sIdx === 0 && cmd0FileStage ? undefined : rawBytes, stageArgs, readFile)
|
|
36913
|
+
? syncCommandEvaluators.evalSyncCsvjoin?.(sIdx === 0 && cmd0FileStage ? undefined : rawBytes, stageArgs, readFile)
|
|
36915
36914
|
: firstName === "dd"
|
|
36916
36915
|
? evalSyncDd(sIdx === 0 && cmd0FileStage ? undefined : rawBytes, stageArgs, readFile, (p, b) => { try {
|
|
36917
36916
|
if (this._inSyncLoopPreflight)
|
|
@@ -37810,21 +37809,21 @@ export class Runtime {
|
|
|
37810
37809
|
: w0Plain === "csvgrep"
|
|
37811
37810
|
? evalSyncCsvgrep(optInBytes, allArgs, readFile)
|
|
37812
37811
|
: w0Plain === "csvlook"
|
|
37813
|
-
? evalSyncCsvlook(optInBytes, allArgs, readFile)
|
|
37812
|
+
? syncCommandEvaluators.evalSyncCsvlook?.(optInBytes, allArgs, readFile)
|
|
37814
37813
|
: w0Plain === "csvjson"
|
|
37815
|
-
? evalSyncCsvjson(optInBytes, allArgs, readFile)
|
|
37814
|
+
? syncCommandEvaluators.evalSyncCsvjson?.(optInBytes, allArgs, readFile)
|
|
37816
37815
|
: w0Plain === "csvsort"
|
|
37817
|
-
? evalSyncCsvsort(optInBytes, allArgs, readFile)
|
|
37816
|
+
? syncCommandEvaluators.evalSyncCsvsort?.(optInBytes, allArgs, readFile)
|
|
37818
37817
|
: w0Plain === "csvformat"
|
|
37819
|
-
? evalSyncCsvformat(optInBytes, allArgs, readFile)
|
|
37818
|
+
? syncCommandEvaluators.evalSyncCsvformat?.(optInBytes, allArgs, readFile)
|
|
37820
37819
|
: w0Plain === "csvstat"
|
|
37821
|
-
? evalSyncCsvstat(optInBytes, allArgs, readFile)
|
|
37820
|
+
? syncCommandEvaluators.evalSyncCsvstat?.(optInBytes, allArgs, readFile)
|
|
37822
37821
|
: w0Plain === "in2csv"
|
|
37823
|
-
? evalSyncIn2csv(optInBytes, allArgs, readFile)
|
|
37822
|
+
? syncCommandEvaluators.evalSyncIn2csv?.(optInBytes, allArgs, readFile)
|
|
37824
37823
|
: w0Plain === "csvstack"
|
|
37825
|
-
? evalSyncCsvstack(optInBytes, allArgs, readFile)
|
|
37824
|
+
? syncCommandEvaluators.evalSyncCsvstack?.(optInBytes, allArgs, readFile)
|
|
37826
37825
|
: w0Plain === "csvjoin"
|
|
37827
|
-
? evalSyncCsvjoin(optInBytes, allArgs, readFile)
|
|
37826
|
+
? syncCommandEvaluators.evalSyncCsvjoin?.(optInBytes, allArgs, readFile)
|
|
37828
37827
|
: w0Plain === "dd"
|
|
37829
37828
|
? evalSyncDd(optInBytes, allArgs, readFile, (p, b) => { try {
|
|
37830
37829
|
if (this._inSyncLoopPreflight)
|
|
@@ -38720,30 +38719,30 @@ export class Runtime {
|
|
|
38720
38719
|
fileRes = evalSyncCsvgrep(view, opArgs);
|
|
38721
38720
|
}
|
|
38722
38721
|
else if (w0Plain === "csvlook") {
|
|
38723
|
-
fileRes = evalSyncCsvlook(view, opArgs);
|
|
38722
|
+
fileRes = syncCommandEvaluators.evalSyncCsvlook?.(view, opArgs);
|
|
38724
38723
|
}
|
|
38725
38724
|
else if (w0Plain === "csvjson") {
|
|
38726
|
-
fileRes = evalSyncCsvjson(view, opArgs);
|
|
38725
|
+
fileRes = syncCommandEvaluators.evalSyncCsvjson?.(view, opArgs);
|
|
38727
38726
|
}
|
|
38728
38727
|
else if (w0Plain === "csvsort") {
|
|
38729
|
-
fileRes = evalSyncCsvsort(view, opArgs);
|
|
38728
|
+
fileRes = syncCommandEvaluators.evalSyncCsvsort?.(view, opArgs);
|
|
38730
38729
|
}
|
|
38731
38730
|
else if (w0Plain === "csvformat") {
|
|
38732
|
-
fileRes = evalSyncCsvformat(view, opArgs);
|
|
38731
|
+
fileRes = syncCommandEvaluators.evalSyncCsvformat?.(view, opArgs);
|
|
38733
38732
|
}
|
|
38734
38733
|
else if (w0Plain === "csvstat") {
|
|
38735
|
-
fileRes = evalSyncCsvstat(view, opArgs);
|
|
38734
|
+
fileRes = syncCommandEvaluators.evalSyncCsvstat?.(view, opArgs);
|
|
38736
38735
|
}
|
|
38737
38736
|
else if (w0Plain === "in2csv") {
|
|
38738
|
-
fileRes = evalSyncIn2csv(view, opArgs);
|
|
38737
|
+
fileRes = syncCommandEvaluators.evalSyncIn2csv?.(view, opArgs);
|
|
38739
38738
|
}
|
|
38740
38739
|
else if (w0Plain === "csvstack") {
|
|
38741
38740
|
const readFile = (p) => this.tryReadMemoryFileViewSync(resolvePath(rawState.cwd, p), true, true);
|
|
38742
|
-
fileRes = evalSyncCsvstack(view, opArgs, readFile);
|
|
38741
|
+
fileRes = syncCommandEvaluators.evalSyncCsvstack?.(view, opArgs, readFile);
|
|
38743
38742
|
}
|
|
38744
38743
|
else if (w0Plain === "csvjoin") {
|
|
38745
38744
|
const readFile = (p) => this.tryReadMemoryFileViewSync(resolvePath(rawState.cwd, p), true, true);
|
|
38746
|
-
fileRes = evalSyncCsvjoin(view, opArgs, readFile);
|
|
38745
|
+
fileRes = syncCommandEvaluators.evalSyncCsvjoin?.(view, opArgs, readFile);
|
|
38747
38746
|
}
|
|
38748
38747
|
else if (w0Plain === "dd") {
|
|
38749
38748
|
const readFile = (p) => this.tryReadMemoryFileViewSync(resolvePath(rawState.cwd, p), true, true);
|
|
@@ -19,8 +19,7 @@ export type ParseResult = {
|
|
|
19
19
|
readonly stdout: string;
|
|
20
20
|
readonly stderr: string;
|
|
21
21
|
};
|
|
22
|
-
export
|
|
23
|
-
export declare function integer(text: string, maxDigits?: number): number | bigint | undefined;
|
|
22
|
+
export { repr, integer } from "./lexical.js";
|
|
24
23
|
/** Parser profile: CPython 3.14.2, C locale, 80 columns, UTF-8/surrogateescape argv. */
|
|
25
24
|
export declare function parseArguments(command: string, input: readonly Uint8Array[], context: ParserOptions): Promise<ParseResult>;
|
|
26
25
|
//# sourceMappingURL=parser.d.ts.map
|
|
@@ -2,8 +2,9 @@ import {
|
|
|
2
2
|
normalizeEncoding,
|
|
3
3
|
pythonCodecs,
|
|
4
4
|
resolveCodec
|
|
5
|
-
} from "../../safe-bash/command-chunks/chunk-
|
|
6
|
-
import "../../safe-bash/command-chunks/chunk-
|
|
5
|
+
} from "../../safe-bash/command-chunks/chunk-Z7TYZG3A.js";
|
|
6
|
+
import "../../safe-bash/command-chunks/chunk-Z57TV6TC.js";
|
|
7
|
+
import "../../safe-bash/command-chunks/chunk-2LP3VMPA.js";
|
|
7
8
|
import "../../safe-bash/command-chunks/chunk-HX3SHTCE.js";
|
|
8
9
|
export {
|
|
9
10
|
normalizeEncoding,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
utf8Codec
|
|
3
|
-
} from "../../safe-bash/command-chunks/chunk-
|
|
3
|
+
} from "../../safe-bash/command-chunks/chunk-Z57TV6TC.js";
|
|
4
|
+
import "../../safe-bash/command-chunks/chunk-2LP3VMPA.js";
|
|
4
5
|
import "../../safe-bash/command-chunks/chunk-HX3SHTCE.js";
|
|
5
6
|
export {
|
|
6
7
|
utf8Codec
|