@poe-platform/safe-bash 0.1.630 → 0.1.632
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 +1 -0
- package/dist/office-package/compression.d.ts +19 -0
- package/dist/office-package/compression.js +186 -0
- package/dist/office-package/runtime.d.ts +11 -0
- package/dist/office-package/runtime.js +28 -0
- package/dist/safe-bash/chunks/{bz2-B2RXT4EX.js → bz2-ACU4EOVE.js} +2 -2
- package/dist/safe-bash/chunks/chunk-2E4KBFO6.js +239 -0
- package/dist/safe-bash/chunks/chunk-2E4KBFO6.js.map +7 -0
- package/dist/safe-bash/chunks/chunk-3E5M2WEL.js +33 -0
- package/dist/safe-bash/chunks/chunk-3E5M2WEL.js.map +7 -0
- package/dist/safe-bash/chunks/{chunk-KQ6J7JHQ.js → chunk-3LD67SER.js} +12 -10
- package/dist/safe-bash/chunks/{chunk-KQ6J7JHQ.js.map → chunk-3LD67SER.js.map} +1 -1
- package/dist/safe-bash/chunks/{chunk-6LSSEOG7.js → chunk-6HNK7Q66.js} +11 -7
- package/dist/safe-bash/chunks/{chunk-6LSSEOG7.js.map → chunk-6HNK7Q66.js.map} +1 -1
- package/dist/safe-bash/chunks/{chunk-AD7UAP5B.js → chunk-7EEWZY5S.js} +10 -8
- package/dist/safe-bash/chunks/{chunk-AD7UAP5B.js.map → chunk-7EEWZY5S.js.map} +1 -1
- package/dist/safe-bash/chunks/{chunk-RNKTWFEM.js → chunk-CDBQXRWL.js} +3 -3
- package/dist/safe-bash/chunks/{chunk-UYX72YHY.js → chunk-CHHAB5SS.js} +10 -74
- package/dist/safe-bash/chunks/{chunk-UYX72YHY.js.map → chunk-CHHAB5SS.js.map} +3 -3
- package/dist/safe-bash/chunks/{chunk-6YSBXTTJ.js → chunk-EI4X5ETX.js} +12 -10
- package/dist/safe-bash/chunks/{chunk-6YSBXTTJ.js.map → chunk-EI4X5ETX.js.map} +1 -1
- package/dist/safe-bash/chunks/{chunk-KZ7QCYNT.js → chunk-GIBLUW2U.js} +13 -9
- package/dist/safe-bash/chunks/{chunk-KZ7QCYNT.js.map → chunk-GIBLUW2U.js.map} +1 -1
- package/dist/safe-bash/chunks/chunk-GPV7ZFYS.js +1528 -0
- package/dist/safe-bash/chunks/chunk-GPV7ZFYS.js.map +7 -0
- package/dist/safe-bash/chunks/{chunk-N5CYTGBN.js → chunk-H3E67KTZ.js} +13 -9
- package/dist/safe-bash/chunks/{chunk-N5CYTGBN.js.map → chunk-H3E67KTZ.js.map} +1 -1
- package/dist/safe-bash/chunks/{chunk-AFH57PPL.js → chunk-IEKESMO4.js} +3 -3
- package/dist/safe-bash/chunks/{chunk-DPJWEGIX.js → chunk-JLBIUYT3.js} +2 -2
- package/dist/safe-bash/chunks/chunk-JZDO5MC3.js +77 -0
- package/dist/safe-bash/chunks/chunk-JZDO5MC3.js.map +7 -0
- package/dist/safe-bash/chunks/{chunk-GFZKQIPL.js → chunk-LA6BX562.js} +8 -6
- package/dist/safe-bash/chunks/{chunk-GFZKQIPL.js.map → chunk-LA6BX562.js.map} +1 -1
- package/dist/safe-bash/chunks/{chunk-PVJJFCGA.js → chunk-M3GPCYSP.js} +2 -2
- package/dist/safe-bash/chunks/{chunk-FWDMJTQO.js → chunk-NDCZ3UBP.js} +13 -9
- package/dist/safe-bash/chunks/{chunk-FWDMJTQO.js.map → chunk-NDCZ3UBP.js.map} +1 -1
- package/dist/safe-bash/chunks/{chunk-2KL6W6NB.js → chunk-O2EVBRKF.js} +1 -2
- package/dist/safe-bash/chunks/chunk-OFT77XIB.js +389 -0
- package/dist/safe-bash/chunks/chunk-OFT77XIB.js.map +7 -0
- package/dist/safe-bash/chunks/{chunk-PCLOK32J.js → chunk-PC6BEIAF.js} +13 -9
- package/dist/safe-bash/chunks/{chunk-PCLOK32J.js.map → chunk-PC6BEIAF.js.map} +1 -1
- package/dist/safe-bash/chunks/{chunk-3M5F7LD5.js → chunk-QWKP7ZU7.js} +13 -9
- package/dist/safe-bash/chunks/{chunk-3M5F7LD5.js.map → chunk-QWKP7ZU7.js.map} +1 -1
- package/dist/safe-bash/chunks/chunk-THXJ6CLF.js +53 -0
- package/dist/safe-bash/chunks/chunk-THXJ6CLF.js.map +7 -0
- package/dist/safe-bash/chunks/{chunk-K7W6Q6FN.js → chunk-V73A742N.js} +58 -16
- package/dist/safe-bash/chunks/chunk-V73A742N.js.map +7 -0
- package/dist/safe-bash/chunks/{chunk-4BYUV5PA.js → chunk-VN3ZGME3.js} +12 -8
- package/dist/safe-bash/chunks/{chunk-4BYUV5PA.js.map → chunk-VN3ZGME3.js.map} +1 -1
- package/dist/safe-bash/chunks/{chunk-3BZ5NQ73.js → chunk-WECHUK3Y.js} +369 -36
- package/dist/safe-bash/chunks/chunk-WECHUK3Y.js.map +7 -0
- package/dist/safe-bash/chunks/{chunk-X55AMTNM.js → chunk-WIOEUR7D.js} +14 -10
- package/dist/safe-bash/chunks/{chunk-X55AMTNM.js.map → chunk-WIOEUR7D.js.map} +1 -1
- package/dist/safe-bash/chunks/chunk-WPIOO4NX.js +443 -0
- package/dist/safe-bash/chunks/chunk-WPIOO4NX.js.map +7 -0
- package/dist/safe-bash/chunks/{chunk-C7QNJ3D4.js → chunk-WYTI64IU.js} +2 -2
- package/dist/safe-bash/chunks/{xz-AVXFDXW4.js → xz-U4QDTPZL.js} +2 -2
- package/dist/safe-bash/chunks/{zstd-R6RPHJYO.js → zstd-OG5RPYXO.js} +2 -2
- package/dist/safe-bash/commands/archive/zip/crc.d.ts +2 -0
- package/dist/safe-bash/commands/archive/zip/crc.d.ts.map +1 -0
- package/dist/safe-bash/commands/archive/zip/crc.js +7 -0
- package/dist/safe-bash/commands/archive/zip/crc.js.map +1 -0
- package/dist/safe-bash/commands/archive/zip/crypto.d.ts +4 -0
- package/dist/safe-bash/commands/archive/zip/crypto.d.ts.map +1 -0
- package/dist/safe-bash/commands/archive/zip/crypto.js +34 -0
- package/dist/safe-bash/commands/archive/zip/crypto.js.map +1 -0
- package/dist/safe-bash/commands/archive/zip/help.d.ts +3 -0
- package/dist/safe-bash/commands/archive/zip/help.d.ts.map +1 -0
- package/dist/safe-bash/commands/archive/zip/help.js +87 -0
- package/dist/safe-bash/commands/archive/zip/help.js.map +1 -0
- package/dist/safe-bash/commands/archive/zip/move.d.ts +12 -0
- package/dist/safe-bash/commands/archive/zip/move.d.ts.map +1 -0
- package/dist/safe-bash/commands/archive/zip/move.js +60 -0
- package/dist/safe-bash/commands/archive/zip/move.js.map +1 -0
- package/dist/safe-bash/commands/archive/zip/options.js +5 -5
- package/dist/safe-bash/commands/archive/zip/options.js.map +1 -1
- package/dist/safe-bash/commands/archive/zip-format.d.ts +1 -1
- package/dist/safe-bash/commands/archive/zip-format.d.ts.map +1 -1
- package/dist/safe-bash/commands/archive/zip-format.js +14 -17
- package/dist/safe-bash/commands/archive/zip-format.js.map +1 -1
- package/dist/safe-bash/commands/archive/zip.d.ts.map +1 -1
- package/dist/safe-bash/commands/archive/zip.js +45 -15
- package/dist/safe-bash/commands/archive/zip.js.map +1 -1
- package/dist/safe-bash/commands/bytes/compression/bounded-codec.d.ts +2 -0
- package/dist/safe-bash/commands/bytes/compression/bounded-codec.d.ts.map +1 -1
- package/dist/safe-bash/commands/bytes/compression/bounded-codec.js +4 -0
- package/dist/safe-bash/commands/bytes/compression/bounded-codec.js.map +1 -1
- package/dist/safe-bash/commands/bytes/compression/codec.d.ts +4 -24
- package/dist/safe-bash/commands/bytes/compression/codec.d.ts.map +1 -1
- package/dist/safe-bash/commands/bytes/compression/codec.js +12 -168
- package/dist/safe-bash/commands/bytes/compression/codec.js.map +1 -1
- package/dist/safe-bash/commands/cmp.js +1 -1
- package/dist/safe-bash/commands/cmp.js.map +1 -1
- package/dist/safe-bash/commands/csplit/index.browser.js +10 -7
- package/dist/safe-bash/commands/docx/index.browser.js +54 -0
- package/dist/safe-bash/commands/docx/index.browser.js.map +7 -0
- package/dist/safe-bash/commands/docx/index.d.ts +25 -0
- package/dist/safe-bash/commands/docx/index.d.ts.map +1 -0
- package/dist/safe-bash/commands/docx/index.js +42 -0
- package/dist/safe-bash/commands/docx/index.js.map +1 -0
- package/dist/safe-bash/commands/docx/io.d.ts +15 -0
- package/dist/safe-bash/commands/docx/io.d.ts.map +1 -0
- package/dist/safe-bash/commands/docx/io.js +16 -0
- package/dist/safe-bash/commands/docx/io.js.map +1 -0
- package/dist/safe-bash/commands/factor/index.browser.js +7 -5
- package/dist/safe-bash/commands/filesystem.d.ts.map +1 -1
- package/dist/safe-bash/commands/filesystem.js +9 -1
- package/dist/safe-bash/commands/filesystem.js.map +1 -1
- package/dist/safe-bash/commands/getopt/index.browser.js +7 -5
- package/dist/safe-bash/commands/hexdump/index.browser.js +8 -6
- package/dist/safe-bash/commands/iconv/index.browser.js +8 -6
- package/dist/safe-bash/commands/line-endings/index.browser.js +10 -7
- package/dist/safe-bash/commands/llm/index.browser.js +10 -8
- package/dist/safe-bash/commands/llm/providers/index.browser.js +3 -3
- package/dist/safe-bash/commands/network/index.browser.js +11 -8
- package/dist/safe-bash/commands/node/index.browser.js +8 -6
- package/dist/safe-bash/commands/op/index.browser.js +3 -3
- package/dist/safe-bash/commands/op/index.js +0 -1
- package/dist/safe-bash/commands/op/index.js.map +2 -2
- package/dist/safe-bash/commands/pptx/index.d.ts +29 -0
- package/dist/safe-bash/commands/pptx/index.d.ts.map +1 -0
- package/dist/safe-bash/commands/pptx/index.js +153 -0
- package/dist/safe-bash/commands/pptx/index.js.map +1 -0
- package/dist/safe-bash/commands/pr/index.browser.js +8 -6
- package/dist/safe-bash/commands/predicates.js +1 -1
- package/dist/safe-bash/commands/python/execution.d.ts +3 -0
- package/dist/safe-bash/commands/python/execution.d.ts.map +1 -0
- package/dist/safe-bash/commands/python/execution.js +193 -0
- package/dist/safe-bash/commands/python/execution.js.map +1 -0
- package/dist/safe-bash/commands/python/index.browser.js +21 -0
- package/dist/safe-bash/commands/python/index.browser.js.map +7 -0
- package/dist/safe-bash/commands/python/index.d.ts +49 -0
- package/dist/safe-bash/commands/python/index.d.ts.map +1 -0
- package/dist/safe-bash/commands/python/index.js +317 -0
- package/dist/safe-bash/commands/python/index.js.map +1 -0
- package/dist/safe-bash/commands/python/installation.d.ts +9 -0
- package/dist/safe-bash/commands/python/installation.d.ts.map +1 -0
- package/dist/safe-bash/commands/python/installation.js +80 -0
- package/dist/safe-bash/commands/python/installation.js.map +1 -0
- package/dist/safe-bash/commands/python/invocation.d.ts +10 -0
- package/dist/safe-bash/commands/python/invocation.d.ts.map +1 -0
- package/dist/safe-bash/commands/python/invocation.js +81 -0
- package/dist/safe-bash/commands/python/invocation.js.map +1 -0
- package/dist/safe-bash/commands/python/node.d.ts +12 -0
- package/dist/safe-bash/commands/python/node.d.ts.map +1 -0
- package/dist/safe-bash/commands/python/node.js +33 -0
- package/dist/safe-bash/commands/python/node.js.map +1 -0
- package/dist/safe-bash/commands/python/provisioning-runtime.d.ts +5 -0
- package/dist/safe-bash/commands/python/provisioning-runtime.d.ts.map +1 -0
- package/dist/safe-bash/commands/python/provisioning-runtime.js +179 -0
- package/dist/safe-bash/commands/python/provisioning-runtime.js.map +1 -0
- package/dist/safe-bash/commands/python/provisioning.d.ts +49 -0
- package/dist/safe-bash/commands/python/provisioning.d.ts.map +1 -0
- package/dist/safe-bash/commands/python/provisioning.js +320 -0
- package/dist/safe-bash/commands/python/provisioning.js.map +1 -0
- package/dist/safe-bash/commands/python/reply.d.ts +3 -0
- package/dist/safe-bash/commands/python/reply.d.ts.map +1 -0
- package/dist/safe-bash/commands/python/reply.js +103 -0
- package/dist/safe-bash/commands/python/reply.js.map +1 -0
- package/dist/safe-bash/commands/python/worker.browser.js +736 -0
- package/dist/safe-bash/commands/python/worker.browser.js.map +7 -0
- package/dist/safe-bash/commands/python/worker.d.ts +47 -0
- package/dist/safe-bash/commands/python/worker.d.ts.map +1 -0
- package/dist/safe-bash/commands/python/worker.js +373 -0
- package/dist/safe-bash/commands/python/worker.js.map +1 -0
- package/dist/safe-bash/commands/tsort/index.browser.js +8 -6
- package/dist/safe-bash/commands/xml/index.browser.js +9 -7
- package/dist/safe-bash/commands/yq/index.browser.js +10 -8
- package/dist/safe-bash/commands/yq/index.d.ts.map +1 -1
- package/dist/safe-bash/commands/yq/index.js +32 -4
- package/dist/safe-bash/commands/yq/index.js.map +1 -1
- package/dist/safe-bash/commands/yq/parser.d.ts.map +1 -1
- package/dist/safe-bash/commands/yq/parser.js +21 -5
- package/dist/safe-bash/commands/yq/parser.js.map +1 -1
- package/dist/safe-bash/contracts/command.d.ts +2 -0
- package/dist/safe-bash/contracts/command.d.ts.map +1 -1
- package/dist/safe-bash/contracts/command.js +6 -2
- package/dist/safe-bash/contracts/command.js.map +1 -1
- package/dist/safe-bash/contracts/filesystem-descriptor.d.ts +13 -0
- package/dist/safe-bash/contracts/filesystem-descriptor.d.ts.map +1 -0
- package/dist/safe-bash/contracts/filesystem-descriptor.js +189 -0
- package/dist/safe-bash/contracts/filesystem-descriptor.js.map +1 -0
- package/dist/safe-bash/contracts/filesystem-output-budget.d.ts +15 -0
- package/dist/safe-bash/contracts/filesystem-output-budget.d.ts.map +1 -0
- package/dist/safe-bash/contracts/filesystem-output-budget.js +69 -0
- package/dist/safe-bash/contracts/filesystem-output-budget.js.map +1 -0
- package/dist/safe-bash/contracts/filesystem-output.d.ts +11 -5
- package/dist/safe-bash/contracts/filesystem-output.d.ts.map +1 -1
- package/dist/safe-bash/contracts/filesystem-output.js +229 -20
- package/dist/safe-bash/contracts/filesystem-output.js.map +1 -1
- package/dist/safe-bash/contracts/io.d.ts +29 -0
- package/dist/safe-bash/contracts/io.d.ts.map +1 -1
- package/dist/safe-bash/contracts/io.js +317 -37
- package/dist/safe-bash/contracts/io.js.map +1 -1
- package/dist/safe-bash/core.browser.js +5502 -2210
- package/dist/safe-bash/core.browser.js.map +4 -4
- package/dist/safe-bash/core.d.ts +1 -0
- package/dist/safe-bash/core.d.ts.map +1 -1
- package/dist/safe-bash/core.js +1 -0
- package/dist/safe-bash/core.js.map +1 -1
- package/dist/safe-bash/opt-in/commands/cmp/compare.js +95 -0
- package/dist/safe-bash/opt-in/commands/cmp/index.d.ts +6 -0
- package/dist/safe-bash/opt-in/commands/cmp/index.js +99 -0
- package/dist/safe-bash/opt-in/commands/cmp/io.js +218 -0
- package/dist/safe-bash/opt-in/commands/cmp/options.d.ts +24 -0
- package/dist/safe-bash/opt-in/commands/cmp/options.js +195 -0
- package/dist/safe-bash/opt-in/commands/dd/conversions.js +152 -0
- package/dist/safe-bash/opt-in/commands/dd/index.d.ts +18 -0
- package/dist/safe-bash/opt-in/commands/dd/index.js +561 -0
- package/dist/safe-bash/opt-in/commands/dd/io.d.ts +31 -0
- package/dist/safe-bash/opt-in/commands/dd/io.js +244 -0
- package/dist/safe-bash/opt-in/commands/dd/options.js +184 -0
- package/dist/safe-bash/opt-in/commands/dd/report.js +69 -0
- package/dist/safe-bash/opt-in/commands/install/arguments.js +224 -0
- package/dist/safe-bash/opt-in/commands/install/index.d.ts +6 -0
- package/dist/safe-bash/opt-in/commands/install/index.js +678 -0
- package/dist/safe-bash/opt-in/commands/install/mode.js +71 -0
- package/dist/safe-bash/opt-in/commands/install/options.d.ts +36 -0
- package/dist/safe-bash/opt-in/commands/install/options.js +27 -0
- package/dist/safe-bash/opt-in/commands/shuf/args.js +179 -0
- package/dist/safe-bash/opt-in/commands/shuf/index.d.ts +6 -0
- package/dist/safe-bash/opt-in/commands/shuf/index.js +20 -0
- package/dist/safe-bash/opt-in/commands/shuf/input.js +93 -0
- package/dist/safe-bash/opt-in/commands/shuf/options.d.ts +9 -0
- package/dist/safe-bash/opt-in/commands/shuf/options.js +8 -0
- package/dist/safe-bash/opt-in/commands/shuf/random.js +114 -0
- package/dist/safe-bash/opt-in/commands/shuf/shuf.d.ts +3 -0
- package/dist/safe-bash/opt-in/commands/shuf/shuf.js +230 -0
- package/dist/safe-bash/opt-in/commands/shuf/usage.js +24 -0
- package/dist/safe-bash/opt-in/commands/truncate/arguments.js +186 -0
- package/dist/safe-bash/opt-in/commands/truncate/index.d.ts +9 -0
- package/dist/safe-bash/opt-in/commands/truncate/index.js +244 -0
- package/dist/safe-bash/opt-in/commands/yes/index.d.ts +11 -0
- package/dist/safe-bash/opt-in/commands/yes/index.js +167 -0
- package/dist/safe-bash/opt-in/commands/yq/arguments.js +177 -0
- package/dist/safe-bash/opt-in/commands/yq/evaluate.js +564 -0
- package/dist/safe-bash/opt-in/commands/yq/expression.js +183 -0
- package/dist/safe-bash/opt-in/commands/yq/inplace.js +65 -0
- package/dist/safe-bash/opt-in/commands/yq/mike.d.ts +9 -0
- package/dist/safe-bash/opt-in/commands/yq/mike.js +192 -0
- package/dist/safe-bash/opt-in/commands/yq/native-encoder.js +165 -0
- package/dist/safe-bash/opt-in/commands/yq/native-work.d.ts +44 -0
- package/dist/safe-bash/opt-in/commands/yq/native-work.js +188 -0
- package/dist/safe-bash/opt-in/commands/yq/nodes.js +621 -0
- package/dist/safe-bash/opt-in/entrypoints/arrays.d.ts +1 -0
- package/dist/safe-bash/opt-in/entrypoints/arrays.js +1 -0
- package/dist/safe-bash/opt-in/entrypoints/cmp.d.ts +2 -0
- package/dist/safe-bash/opt-in/entrypoints/cmp.js +1 -0
- package/dist/safe-bash/opt-in/entrypoints/dd.d.ts +2 -0
- package/dist/safe-bash/opt-in/entrypoints/dd.js +1 -0
- package/dist/safe-bash/opt-in/entrypoints/devices.d.ts +2 -0
- package/dist/safe-bash/opt-in/entrypoints/devices.js +1 -0
- package/dist/safe-bash/opt-in/entrypoints/install.d.ts +2 -0
- package/dist/safe-bash/opt-in/entrypoints/install.js +1 -0
- package/dist/safe-bash/opt-in/entrypoints/jobs.d.ts +1 -0
- package/dist/safe-bash/opt-in/entrypoints/jobs.js +1 -0
- package/dist/safe-bash/opt-in/entrypoints/mapfile.d.ts +1 -0
- package/dist/safe-bash/opt-in/entrypoints/mapfile.js +1 -0
- package/dist/safe-bash/opt-in/entrypoints/read.d.ts +2 -0
- package/dist/safe-bash/opt-in/entrypoints/read.js +1 -0
- package/dist/safe-bash/opt-in/entrypoints/shuf.d.ts +2 -0
- package/dist/safe-bash/opt-in/entrypoints/shuf.js +1 -0
- package/dist/safe-bash/opt-in/entrypoints/trap.d.ts +2 -0
- package/dist/safe-bash/opt-in/entrypoints/trap.js +1 -0
- package/dist/safe-bash/opt-in/entrypoints/truncate.d.ts +2 -0
- package/dist/safe-bash/opt-in/entrypoints/truncate.js +1 -0
- package/dist/safe-bash/opt-in/entrypoints/yes.d.ts +2 -0
- package/dist/safe-bash/opt-in/entrypoints/yes.js +1 -0
- package/dist/safe-bash/opt-in/entrypoints/yq.d.ts +3 -0
- package/dist/safe-bash/opt-in/entrypoints/yq.js +1 -0
- package/dist/safe-bash/opt-in/fs/devices/index.d.ts +8 -0
- package/dist/safe-bash/opt-in/fs/devices/index.js +292 -0
- package/dist/safe-bash/opt-in/optional.d.ts +28 -0
- package/dist/safe-bash/opt-in/optional.js +14 -0
- package/dist/safe-bash/opt-in/shell/extensions/arrays/index.d.ts +2 -0
- package/dist/safe-bash/opt-in/shell/extensions/arrays/index.js +4 -0
- package/dist/safe-bash/opt-in/shell/extensions/jobs/index.d.ts +2 -0
- package/dist/safe-bash/opt-in/shell/extensions/jobs/index.js +291 -0
- package/dist/safe-bash/opt-in/shell/extensions/jobs/state.js +374 -0
- package/dist/safe-bash/opt-in/shell/extensions/mapfile/index.d.ts +24 -0
- package/dist/safe-bash/opt-in/shell/extensions/mapfile/index.js +338 -0
- package/dist/safe-bash/opt-in/shell/extensions/read/index.d.ts +5 -0
- package/dist/safe-bash/opt-in/shell/extensions/read/index.js +351 -0
- package/dist/safe-bash/opt-in/shell/extensions/trap/index.d.ts +9 -0
- package/dist/safe-bash/opt-in/shell/extensions/trap/index.js +210 -0
- package/dist/safe-bash/optional-host.d.ts +5 -0
- package/dist/safe-bash/optional-host.d.ts.map +1 -0
- package/dist/safe-bash/optional-host.js +3 -0
- package/dist/safe-bash/optional-host.js.map +1 -0
- package/dist/safe-bash/shell/arrays/bindings.d.ts +15 -5
- package/dist/safe-bash/shell/arrays/bindings.d.ts.map +1 -1
- package/dist/safe-bash/shell/arrays/bindings.js +131 -23
- package/dist/safe-bash/shell/arrays/bindings.js.map +1 -1
- package/dist/safe-bash/shell/arrays/ledger.d.ts +1 -0
- package/dist/safe-bash/shell/arrays/ledger.d.ts.map +1 -1
- package/dist/safe-bash/shell/arrays/ledger.js +19 -0
- package/dist/safe-bash/shell/arrays/ledger.js.map +1 -1
- package/dist/safe-bash/shell/arrays/state.d.ts.map +1 -1
- package/dist/safe-bash/shell/arrays/state.js +3 -1
- package/dist/safe-bash/shell/arrays/state.js.map +1 -1
- package/dist/safe-bash/shell/arrays/syntax.d.ts +4 -1
- package/dist/safe-bash/shell/arrays/syntax.d.ts.map +1 -1
- package/dist/safe-bash/shell/arrays/syntax.js +3 -3
- package/dist/safe-bash/shell/arrays/syntax.js.map +1 -1
- package/dist/safe-bash/shell/conditional.js +1 -1
- package/dist/safe-bash/shell/descriptors.d.ts +31 -0
- package/dist/safe-bash/shell/descriptors.d.ts.map +1 -0
- package/dist/safe-bash/shell/descriptors.js +234 -0
- package/dist/safe-bash/shell/descriptors.js.map +1 -0
- package/dist/safe-bash/shell/diagnostic-name-ranges.d.ts +2 -0
- package/dist/safe-bash/shell/diagnostic-name-ranges.d.ts.map +1 -0
- package/dist/safe-bash/shell/diagnostic-name-ranges.js +717 -0
- package/dist/safe-bash/shell/diagnostic-name-ranges.js.map +1 -0
- package/dist/safe-bash/shell/diagnostic-name.d.ts +3 -0
- package/dist/safe-bash/shell/diagnostic-name.d.ts.map +1 -0
- package/dist/safe-bash/shell/diagnostic-name.js +89 -0
- package/dist/safe-bash/shell/diagnostic-name.js.map +1 -0
- package/dist/safe-bash/shell/display.js +1 -1
- package/dist/safe-bash/shell/display.js.map +1 -1
- package/dist/safe-bash/shell/extensions.d.ts +188 -0
- package/dist/safe-bash/shell/extensions.d.ts.map +1 -0
- package/dist/safe-bash/shell/extensions.js +141 -0
- package/dist/safe-bash/shell/extensions.js.map +1 -0
- package/dist/safe-bash/shell/input.d.ts +66 -14
- package/dist/safe-bash/shell/input.d.ts.map +1 -1
- package/dist/safe-bash/shell/input.js +947 -173
- package/dist/safe-bash/shell/input.js.map +1 -1
- package/dist/safe-bash/shell/parser.d.ts +38 -6
- package/dist/safe-bash/shell/parser.d.ts.map +1 -1
- package/dist/safe-bash/shell/parser.js +339 -52
- package/dist/safe-bash/shell/parser.js.map +1 -1
- package/dist/safe-bash/shell/runtime.d.ts +92 -20
- package/dist/safe-bash/shell/runtime.d.ts.map +1 -1
- package/dist/safe-bash/shell/runtime.js +2547 -689
- package/dist/safe-bash/shell/runtime.js.map +1 -1
- package/dist/safe-bash/shell/shell.d.ts.map +1 -1
- package/dist/safe-bash/shell/shell.js +52 -21
- package/dist/safe-bash/shell/shell.js.map +1 -1
- package/dist/safe-bash/shell/types.d.ts +4 -0
- package/dist/safe-bash/shell/types.d.ts.map +1 -1
- package/dist/safe-bash/shell/types.js.map +1 -1
- package/package.json +92 -4
- package/dist/safe-bash/chunks/chunk-3BZ5NQ73.js.map +0 -7
- package/dist/safe-bash/chunks/chunk-4DBWBEU7.js +0 -194
- package/dist/safe-bash/chunks/chunk-4DBWBEU7.js.map +0 -7
- package/dist/safe-bash/chunks/chunk-CXMIIXJA.js +0 -178
- package/dist/safe-bash/chunks/chunk-CXMIIXJA.js.map +0 -7
- package/dist/safe-bash/chunks/chunk-K7W6Q6FN.js.map +0 -7
- /package/dist/safe-bash/chunks/{bz2-B2RXT4EX.js.map → bz2-ACU4EOVE.js.map} +0 -0
- /package/dist/safe-bash/chunks/{chunk-RNKTWFEM.js.map → chunk-CDBQXRWL.js.map} +0 -0
- /package/dist/safe-bash/chunks/{chunk-AFH57PPL.js.map → chunk-IEKESMO4.js.map} +0 -0
- /package/dist/safe-bash/chunks/{chunk-DPJWEGIX.js.map → chunk-JLBIUYT3.js.map} +0 -0
- /package/dist/safe-bash/chunks/{chunk-PVJJFCGA.js.map → chunk-M3GPCYSP.js.map} +0 -0
- /package/dist/safe-bash/chunks/{chunk-2KL6W6NB.js.map → chunk-O2EVBRKF.js.map} +0 -0
- /package/dist/safe-bash/chunks/{chunk-C7QNJ3D4.js.map → chunk-WYTI64IU.js.map} +0 -0
- /package/dist/safe-bash/chunks/{xz-AVXFDXW4.js.map → xz-U4QDTPZL.js.map} +0 -0
- /package/dist/safe-bash/chunks/{zstd-R6RPHJYO.js.map → zstd-OG5RPYXO.js.map} +0 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import {
|
|
2
|
+
init_platform
|
|
3
|
+
} from "./chunk-O2EVBRKF.js";
|
|
4
|
+
|
|
5
|
+
// packages/safe-bash/src/contracts/yield.ts
|
|
6
|
+
init_platform();
|
|
7
|
+
var checkpoints = /* @__PURE__ */ new WeakMap();
|
|
8
|
+
function monotonicNow() {
|
|
9
|
+
return globalThis.performance?.now() ?? Date.now();
|
|
10
|
+
}
|
|
11
|
+
function registerYieldCheckpoint(signal, checkpoint) {
|
|
12
|
+
checkpoints.set(signal, checkpoint);
|
|
13
|
+
}
|
|
14
|
+
function inheritYieldCheckpoint(parent, child) {
|
|
15
|
+
const checkpoint = checkpoints.get(parent);
|
|
16
|
+
if (checkpoint) checkpoints.set(child, checkpoint);
|
|
17
|
+
}
|
|
18
|
+
function scheduleTurn(callback) {
|
|
19
|
+
const host = globalThis;
|
|
20
|
+
return host.setImmediate ? { kind: "immediate", value: host.setImmediate(callback) } : { kind: "timeout", value: setTimeout(callback, 0) };
|
|
21
|
+
}
|
|
22
|
+
function cancelTurn(handle) {
|
|
23
|
+
if (handle?.kind === "immediate") globalThis.clearImmediate?.(handle.value);
|
|
24
|
+
else if (handle) clearTimeout(handle.value);
|
|
25
|
+
}
|
|
26
|
+
function yieldTurn(signal) {
|
|
27
|
+
signal?.throwIfAborted();
|
|
28
|
+
if (signal) checkpoints.get(signal)?.();
|
|
29
|
+
return new Promise((resolve, reject) => {
|
|
30
|
+
let handle;
|
|
31
|
+
const finish = () => {
|
|
32
|
+
signal?.removeEventListener("abort", abort);
|
|
33
|
+
resolve();
|
|
34
|
+
};
|
|
35
|
+
const abort = () => {
|
|
36
|
+
cancelTurn(handle);
|
|
37
|
+
reject(signal.reason);
|
|
38
|
+
};
|
|
39
|
+
signal?.addEventListener("abort", abort, { once: true });
|
|
40
|
+
if (signal?.aborted) abort();
|
|
41
|
+
else handle = scheduleTurn(finish);
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export {
|
|
46
|
+
monotonicNow,
|
|
47
|
+
registerYieldCheckpoint,
|
|
48
|
+
inheritYieldCheckpoint,
|
|
49
|
+
scheduleTurn,
|
|
50
|
+
cancelTurn,
|
|
51
|
+
yieldTurn
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=chunk-THXJ6CLF.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/contracts/yield.ts"],
|
|
4
|
+
"sourcesContent": ["type ImmediateHost = typeof globalThis & {\n setImmediate?: (callback: () => void) => unknown;\n clearImmediate?: (handle: unknown) => void;\n};\n\nexport type TurnHandle =\n | { kind: \"immediate\"; value: unknown }\n | { kind: \"timeout\"; value: ReturnType<typeof setTimeout> };\nconst checkpoints = new WeakMap<AbortSignal, () => void>();\n\nexport function monotonicNow(): number {\n return globalThis.performance?.now() ?? Date.now();\n}\n\nexport function registerYieldCheckpoint(signal: AbortSignal, checkpoint: () => void): void {\n checkpoints.set(signal, checkpoint);\n}\n\nexport function inheritYieldCheckpoint(parent: AbortSignal, child: AbortSignal): void {\n const checkpoint = checkpoints.get(parent);\n if (checkpoint) checkpoints.set(child, checkpoint);\n}\n\nexport function scheduleTurn(callback: () => void): TurnHandle {\n const host = globalThis as ImmediateHost;\n return host.setImmediate\n ? { kind: \"immediate\", value: host.setImmediate(callback) }\n : { kind: \"timeout\", value: setTimeout(callback, 0) };\n}\n\nexport function cancelTurn(handle: TurnHandle | undefined): void {\n if (handle?.kind === \"immediate\") (globalThis as ImmediateHost).clearImmediate?.(handle.value);\n else if (handle) clearTimeout(handle.value);\n}\n\nexport function yieldTurn(signal?: AbortSignal): Promise<void> {\n signal?.throwIfAborted();\n if (signal) checkpoints.get(signal)?.();\n return new Promise<void>((resolve, reject) => {\n let handle: TurnHandle | undefined;\n const finish = (): void => {\n signal?.removeEventListener(\"abort\", abort);\n resolve();\n };\n const abort = (): void => {\n cancelTurn(handle);\n reject(signal!.reason);\n };\n signal?.addEventListener(\"abort\", abort, { once: true });\n if (signal?.aborted) abort();\n else handle = scheduleTurn(finish);\n });\n}\n"],
|
|
5
|
+
"mappings": ";;;;;AAAA;AAQA,IAAM,cAAc,oBAAI,QAAiC;AAElD,SAAS,eAAuB;AACrC,SAAO,WAAW,aAAa,IAAI,KAAK,KAAK,IAAI;AACnD;AAEO,SAAS,wBAAwB,QAAqB,YAA8B;AACzF,cAAY,IAAI,QAAQ,UAAU;AACpC;AAEO,SAAS,uBAAuB,QAAqB,OAA0B;AACpF,QAAM,aAAa,YAAY,IAAI,MAAM;AACzC,MAAI,WAAY,aAAY,IAAI,OAAO,UAAU;AACnD;AAEO,SAAS,aAAa,UAAkC;AAC7D,QAAM,OAAO;AACb,SAAO,KAAK,eACR,EAAE,MAAM,aAAa,OAAO,KAAK,aAAa,QAAQ,EAAE,IACxD,EAAE,MAAM,WAAW,OAAO,WAAW,UAAU,CAAC,EAAE;AACxD;AAEO,SAAS,WAAW,QAAsC;AAC/D,MAAI,QAAQ,SAAS,YAAa,CAAC,WAA6B,iBAAiB,OAAO,KAAK;AAAA,WACpF,OAAQ,cAAa,OAAO,KAAK;AAC5C;AAEO,SAAS,UAAU,QAAqC;AAC7D,UAAQ,eAAe;AACvB,MAAI,OAAQ,aAAY,IAAI,MAAM,IAAI;AACtC,SAAO,IAAI,QAAc,CAAC,SAAS,WAAW;AAC5C,QAAI;AACJ,UAAM,SAAS,MAAY;AACzB,cAAQ,oBAAoB,SAAS,KAAK;AAC1C,cAAQ;AAAA,IACV;AACA,UAAM,QAAQ,MAAY;AACxB,iBAAW,MAAM;AACjB,aAAO,OAAQ,MAAM;AAAA,IACvB;AACA,YAAQ,iBAAiB,SAAS,OAAO,EAAE,MAAM,KAAK,CAAC;AACvD,QAAI,QAAQ,QAAS,OAAM;AAAA,QACtB,UAAS,aAAa,MAAM;AAAA,EACnC,CAAC;AACH;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createOutputOperation
|
|
3
|
+
} from "./chunk-CDBQXRWL.js";
|
|
1
4
|
import {
|
|
2
5
|
Budget,
|
|
3
6
|
Decimal,
|
|
@@ -21,27 +24,27 @@ import {
|
|
|
21
24
|
scalarJson,
|
|
22
25
|
truth,
|
|
23
26
|
wellFormed
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import {
|
|
26
|
-
createOutputOperation
|
|
27
|
-
} from "./chunk-RNKTWFEM.js";
|
|
27
|
+
} from "./chunk-IEKESMO4.js";
|
|
28
28
|
import {
|
|
29
29
|
escapeText,
|
|
30
30
|
pathOf
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-LA6BX562.js";
|
|
32
32
|
import {
|
|
33
|
-
getCommandArguments,
|
|
34
|
-
shellValueByteLength,
|
|
35
33
|
yieldTurn
|
|
36
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-THXJ6CLF.js";
|
|
35
|
+
import {
|
|
36
|
+
commandRuntimeIdentity,
|
|
37
|
+
getCommandArguments,
|
|
38
|
+
shellValueByteLength
|
|
39
|
+
} from "./chunk-CHHAB5SS.js";
|
|
37
40
|
import {
|
|
38
41
|
FsError,
|
|
39
42
|
readBytes
|
|
40
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-WPIOO4NX.js";
|
|
41
44
|
import {
|
|
42
45
|
import_buffer,
|
|
43
46
|
init_platform
|
|
44
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-O2EVBRKF.js";
|
|
45
48
|
|
|
46
49
|
// packages/safe-bash/src/commands/yq/index.ts
|
|
47
50
|
init_platform();
|
|
@@ -2924,9 +2927,10 @@ function stripComment(text) {
|
|
|
2924
2927
|
else if (character === "'") single = true;
|
|
2925
2928
|
else if (character === "[" || character === "{") flowDepth++;
|
|
2926
2929
|
else if (character === "]" || character === "}") flowDepth--;
|
|
2927
|
-
else if (character === "#" && (index === 0 || /[ \t\r\n]/u.test(text[index - 1])))
|
|
2930
|
+
else if (character === "#" && (index === 0 || /[ \t\r\n]/u.test(text[index - 1]))) {
|
|
2931
|
+
return flowDepth > 0 ? text.trimEnd() : text.slice(0, index).trimEnd();
|
|
2932
|
+
}
|
|
2928
2933
|
}
|
|
2929
|
-
void flowDepth;
|
|
2930
2934
|
return text.trimEnd();
|
|
2931
2935
|
}
|
|
2932
2936
|
function mappingColon(text, flow = false) {
|
|
@@ -3508,6 +3512,7 @@ var FlowParser = class {
|
|
|
3508
3512
|
let depth = 0;
|
|
3509
3513
|
while (this.#position < this.source.length) {
|
|
3510
3514
|
const character = this.source[this.#position];
|
|
3515
|
+
if (character === "#" && /[ \t\r\n]/u.test(this.source[this.#position - 1] ?? "")) break;
|
|
3511
3516
|
if (character === "[" || character === "{") depth++;
|
|
3512
3517
|
if (character === "]" || character === "}") {
|
|
3513
3518
|
if (depth === 0) break;
|
|
@@ -3526,7 +3531,13 @@ var FlowParser = class {
|
|
|
3526
3531
|
return { value, style: "plain", raw };
|
|
3527
3532
|
}
|
|
3528
3533
|
#space() {
|
|
3529
|
-
while (
|
|
3534
|
+
while (this.#position < this.source.length) {
|
|
3535
|
+
const character = this.source[this.#position];
|
|
3536
|
+
if (/[ \t\r\n]/u.test(character)) this.#position++;
|
|
3537
|
+
else if (character === "#") {
|
|
3538
|
+
while (this.#position < this.source.length && this.source[this.#position] !== "\n") this.#position++;
|
|
3539
|
+
} else break;
|
|
3540
|
+
}
|
|
3530
3541
|
}
|
|
3531
3542
|
};
|
|
3532
3543
|
var Composer = class {
|
|
@@ -3780,11 +3791,13 @@ var BlockParser = class {
|
|
|
3780
3791
|
let negativeDepth = false;
|
|
3781
3792
|
let balanced = false;
|
|
3782
3793
|
while (true) {
|
|
3794
|
+
let inComment = false;
|
|
3783
3795
|
for (let start = 0; start < fragment.length; start += 256) {
|
|
3784
3796
|
const end = Math.min(start + 256, fragment.length);
|
|
3785
3797
|
await this.composer.work.charge(end - start);
|
|
3786
3798
|
this.composer.work.assertOpen();
|
|
3787
3799
|
for (let index = start; index < end; index++) {
|
|
3800
|
+
if (inComment) continue;
|
|
3788
3801
|
const character = fragment[index];
|
|
3789
3802
|
if (double) {
|
|
3790
3803
|
if (escaped) escaped = false;
|
|
@@ -3794,6 +3807,8 @@ var BlockParser = class {
|
|
|
3794
3807
|
if (character === "'") single = false;
|
|
3795
3808
|
} else if (character === '"') double = true;
|
|
3796
3809
|
else if (character === "'") single = true;
|
|
3810
|
+
else if (character === "#" && (index === 0 || ` \r
|
|
3811
|
+
,[]{}"'`.includes(fragment[index - 1]))) inComment = true;
|
|
3797
3812
|
else if (character === "[" || character === "{") depth++;
|
|
3798
3813
|
else if (character === "]" || character === "}") {
|
|
3799
3814
|
depth--;
|
|
@@ -4831,6 +4846,18 @@ function withSource(error, source) {
|
|
|
4831
4846
|
return new YqError(error.category, error.code, error.status, source, error.line, error.column);
|
|
4832
4847
|
}
|
|
4833
4848
|
async function collectSource(context, owner, session, sourceName, source, vfs, inputFormat) {
|
|
4849
|
+
let producer;
|
|
4850
|
+
let finished = false;
|
|
4851
|
+
let producerReturn;
|
|
4852
|
+
const closeProducer = () => {
|
|
4853
|
+
if (producerReturn) return producerReturn;
|
|
4854
|
+
if (!producer || finished || !producer.return) return Promise.resolve({ done: true, value: void 0 });
|
|
4855
|
+
producerReturn = Promise.resolve().then(() => producer.return());
|
|
4856
|
+
return producerReturn;
|
|
4857
|
+
};
|
|
4858
|
+
owner.register(async () => {
|
|
4859
|
+
await closeProducer();
|
|
4860
|
+
});
|
|
4834
4861
|
let iterator;
|
|
4835
4862
|
let returned;
|
|
4836
4863
|
owner.register(async () => {
|
|
@@ -4839,7 +4866,19 @@ async function collectSource(context, owner, session, sourceName, source, vfs, i
|
|
|
4839
4866
|
await returned;
|
|
4840
4867
|
}
|
|
4841
4868
|
});
|
|
4842
|
-
iterator = readBytes(
|
|
4869
|
+
iterator = readBytes({ [Symbol.asyncIterator]() {
|
|
4870
|
+
owner.assertOpen(context.signal);
|
|
4871
|
+
producer = source[Symbol.asyncIterator]();
|
|
4872
|
+
return {
|
|
4873
|
+
async next() {
|
|
4874
|
+
owner.assertOpen(context.signal);
|
|
4875
|
+
const next = await producer.next();
|
|
4876
|
+
if (next.done) finished = true;
|
|
4877
|
+
return next;
|
|
4878
|
+
},
|
|
4879
|
+
return: closeProducer
|
|
4880
|
+
};
|
|
4881
|
+
} }, context.signal)[Symbol.asyncIterator]();
|
|
4843
4882
|
const chunks = [];
|
|
4844
4883
|
const framer = inputFormat === "yaml" ? new RawDocumentFramer() : void 0;
|
|
4845
4884
|
let size = 0;
|
|
@@ -4855,7 +4894,9 @@ async function collectSource(context, owner, session, sourceName, source, vfs, i
|
|
|
4855
4894
|
owner.assertOpen(context.signal);
|
|
4856
4895
|
if (next.done) break;
|
|
4857
4896
|
const chunk = next.value;
|
|
4858
|
-
|
|
4897
|
+
await session.ownedWork.charge(1);
|
|
4898
|
+
owner.assertOpen(context.signal);
|
|
4899
|
+
if (chunk.byteLength === 0) continue;
|
|
4859
4900
|
session.ownedWork.admitInputBytes(chunk.byteLength);
|
|
4860
4901
|
if (chunk.byteLength > yqCaps.maxInputBytes - size) throw fromJqLimit(new JqLimitError("maxInputBytes"));
|
|
4861
4902
|
if (inputFormat === "toml" && chunk.byteLength > yqCaps.maxDocumentBytes - size) throw new YqError("limit", "LIMIT_MAX_DOCUMENT_BYTES", 5);
|
|
@@ -5124,6 +5165,7 @@ function createYqCommand(options = {}) {
|
|
|
5124
5165
|
const { inputFormat } = admittedOptions(options);
|
|
5125
5166
|
return Object.freeze({
|
|
5126
5167
|
name: "yq",
|
|
5168
|
+
runtimeIdentity: commandRuntimeIdentity,
|
|
5127
5169
|
description: "Bounded restricted YAML/TOML query and formatter",
|
|
5128
5170
|
execute: (context) => execute(context, inputFormat)
|
|
5129
5171
|
});
|
|
@@ -5158,4 +5200,4 @@ export {
|
|
|
5158
5200
|
createYqCommands,
|
|
5159
5201
|
yqCommands
|
|
5160
5202
|
};
|
|
5161
|
-
//# sourceMappingURL=chunk-
|
|
5203
|
+
//# sourceMappingURL=chunk-V73A742N.js.map
|