@poe-platform/safe-bash 0.1.630 → 0.1.631
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 @@
|
|
|
1
|
+
export { createShufCommand, createShufCommands, shufCommands } from "../commands/shuf/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { trapExtension } from "../shell/extensions/trap/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { createTruncateCommand, createTruncateCommands, truncateCommands } from "../commands/truncate/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { createYesCommand, createYesCommands, yesCommands } from "../commands/yes/index.js";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { createMikeYqCommand as createYqCommand, createMikeYqCommands as createYqCommands, mikeYqCommands as yqCommands } from "../commands/yq/mike.js";
|
|
2
|
+
export type { MikeYqOptions as YqCommandsOptions } from "../commands/yq/mike.js";
|
|
3
|
+
export type { MikeLimits as YqLimits } from "../commands/yq/native-work.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { createMikeYqCommand as createYqCommand, createMikeYqCommands as createYqCommands, mikeYqCommands as yqCommands } from "../commands/yq/mike.js";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ByteSource, FileDescriptor, FileSystem, FsOptions, OpenFileOptions, ReadStreamOptions, WriteFileOptions } from "@poe-platform/safe-fs";
|
|
2
|
+
export interface DeviceFileSystem extends FileSystem {
|
|
3
|
+
open(path: string, options: OpenFileOptions): Promise<FileDescriptor>;
|
|
4
|
+
readStream(path: string, options?: ReadStreamOptions): ByteSource;
|
|
5
|
+
writeStream(path: string, source: ByteSource, options?: WriteFileOptions): Promise<void>;
|
|
6
|
+
rmdir(path: string, options?: FsOptions): Promise<void>;
|
|
7
|
+
}
|
|
8
|
+
export declare function createDeviceFileSystem(): DeviceFileSystem;
|
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
import { FsError, openFileDescriptor, readBytes } from "@poe-platform/safe-fs";
|
|
2
|
+
import { yieldTurn } from "@poe-platform/safe-bash/contracts/yield";
|
|
3
|
+
const deviceNames = ["null", "random", "urandom", "zero"];
|
|
4
|
+
const maxChunkBytes = 65536;
|
|
5
|
+
export function createDeviceFileSystem() {
|
|
6
|
+
const created = Date.now();
|
|
7
|
+
const identityScope = Symbol("virtual device namespace");
|
|
8
|
+
const capabilities = Object.freeze({
|
|
9
|
+
readOnly: false, read: true, stat: true, readdir: true, realpath: true, access: true,
|
|
10
|
+
write: true, append: true, open: true, streamingRead: true, streamingWrite: true, streamingAppend: true,
|
|
11
|
+
independentWriteStreams: true,
|
|
12
|
+
explicitDirectories: true, implicitDirectories: false, exclusiveCreate: false,
|
|
13
|
+
mkdir: false, recursiveMkdir: false, remove: false, removeDirectory: false, recursiveRemove: false,
|
|
14
|
+
rename: false, copy: true, exclusiveCopy: false, readlink: false,
|
|
15
|
+
truncate: false, randomAccessWrite: false, symlinks: false, hardlinks: false,
|
|
16
|
+
permissions: false, timestamps: false, atomicRename: false, snapshotRmdir: false,
|
|
17
|
+
});
|
|
18
|
+
function resolve(path, syscall, options, allowMissing = false) {
|
|
19
|
+
options.signal?.throwIfAborted();
|
|
20
|
+
if (typeof path !== "string" || path.includes("\0"))
|
|
21
|
+
throw new FsError("EINVAL", { syscall, path });
|
|
22
|
+
if (path === "")
|
|
23
|
+
throw new FsError("ENOENT", { syscall, path });
|
|
24
|
+
let entry = "/";
|
|
25
|
+
const components = path.split("/");
|
|
26
|
+
for (let index = 0; index < components.length; index++) {
|
|
27
|
+
const component = components[index];
|
|
28
|
+
if (component === "")
|
|
29
|
+
continue;
|
|
30
|
+
if (entry !== "/")
|
|
31
|
+
throw new FsError("ENOTDIR", { syscall, path });
|
|
32
|
+
if (component === "." || component === "..")
|
|
33
|
+
continue;
|
|
34
|
+
const device = deviceNames.find(name => name === component);
|
|
35
|
+
if (device === undefined) {
|
|
36
|
+
if (allowMissing && components.slice(index + 1).every(part => part === ""))
|
|
37
|
+
return undefined;
|
|
38
|
+
throw new FsError("ENOENT", { syscall, path });
|
|
39
|
+
}
|
|
40
|
+
entry = device;
|
|
41
|
+
}
|
|
42
|
+
if (entry !== "/" && path.endsWith("/"))
|
|
43
|
+
throw new FsError("ENOTDIR", { syscall, path });
|
|
44
|
+
return entry;
|
|
45
|
+
}
|
|
46
|
+
function integer(value, syscall, path) {
|
|
47
|
+
if (!Number.isSafeInteger(value) || value < 0)
|
|
48
|
+
throw new FsError("EINVAL", { syscall, path });
|
|
49
|
+
}
|
|
50
|
+
function openWrite(path, options, syscall) {
|
|
51
|
+
options.signal?.throwIfAborted();
|
|
52
|
+
const flag = options.flag ?? "w";
|
|
53
|
+
if (!["w", "a", "wx", "ax"].includes(flag))
|
|
54
|
+
throw new FsError("EINVAL", { syscall, path });
|
|
55
|
+
if (options.mode !== undefined) {
|
|
56
|
+
integer(options.mode, syscall, path);
|
|
57
|
+
if (options.mode > 0o7777)
|
|
58
|
+
throw new FsError("EINVAL", { syscall, path });
|
|
59
|
+
}
|
|
60
|
+
const entry = resolve(path, syscall, options);
|
|
61
|
+
if (flag === "wx" || flag === "ax")
|
|
62
|
+
throw new FsError("EEXIST", { syscall, path });
|
|
63
|
+
if (entry === "/")
|
|
64
|
+
throw new FsError("EISDIR", { syscall, path });
|
|
65
|
+
return entry;
|
|
66
|
+
}
|
|
67
|
+
function fill(entry, bytes, path, syscall, options) {
|
|
68
|
+
options.signal?.throwIfAborted();
|
|
69
|
+
if (entry === "random" || entry === "urandom") {
|
|
70
|
+
const crypto = globalThis.crypto;
|
|
71
|
+
if (typeof crypto?.getRandomValues !== "function")
|
|
72
|
+
throw new FsError("ENOTSUP", {
|
|
73
|
+
syscall, path, message: "Web Crypto getRandomValues is required",
|
|
74
|
+
});
|
|
75
|
+
try {
|
|
76
|
+
crypto.getRandomValues(bytes);
|
|
77
|
+
}
|
|
78
|
+
catch (cause) {
|
|
79
|
+
options.signal?.throwIfAborted();
|
|
80
|
+
throw new FsError("EIO", { syscall, path, cause });
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
else
|
|
84
|
+
bytes.fill(0);
|
|
85
|
+
options.signal?.throwIfAborted();
|
|
86
|
+
}
|
|
87
|
+
function admitWrite(entry, bytes, path, syscall) {
|
|
88
|
+
if (!(bytes instanceof Uint8Array))
|
|
89
|
+
throw new TypeError("Device writes require Uint8Array data");
|
|
90
|
+
if (entry === "urandom")
|
|
91
|
+
throw new FsError("EPERM", { syscall, path });
|
|
92
|
+
}
|
|
93
|
+
function metadata(entry) {
|
|
94
|
+
return {
|
|
95
|
+
type: entry === "/" ? "directory" : "character",
|
|
96
|
+
size: 0,
|
|
97
|
+
mode: entry === "/" ? 0o040555 : 0o020666,
|
|
98
|
+
atimeMs: created, mtimeMs: created, ctimeMs: created, birthtimeMs: created,
|
|
99
|
+
identityScope, dev: 0, ino: entry === "/" ? 1 : deviceNames.indexOf(entry) + 2,
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
const filesystem = {
|
|
103
|
+
capabilities,
|
|
104
|
+
async open(path, options) {
|
|
105
|
+
return openFileDescriptor(path, options, {
|
|
106
|
+
position: true, readObservation: true, openTruncate: true,
|
|
107
|
+
positionedRead: true, positionedWrite: true, positionedAppendWrite: true,
|
|
108
|
+
delegateZeroLengthWrite: true, truncate: true, synchronization: "volatile",
|
|
109
|
+
}, async (admitted) => {
|
|
110
|
+
const entry = resolve(path, "open", admitted);
|
|
111
|
+
if (admitted.creation === "exclusive")
|
|
112
|
+
throw new FsError("EEXIST", { syscall: "open", path });
|
|
113
|
+
if (entry === "/")
|
|
114
|
+
throw new FsError("EISDIR", { syscall: "open", path });
|
|
115
|
+
return {
|
|
116
|
+
resource: { entry, cursor: 0 },
|
|
117
|
+
async stat(retained) { return metadata(retained.entry); },
|
|
118
|
+
async getPosition(retained) { return retained.cursor; },
|
|
119
|
+
async probeRead() { return "ready"; },
|
|
120
|
+
async read(retained, bytes, position, supplied) {
|
|
121
|
+
if (retained.entry === "null")
|
|
122
|
+
return 0;
|
|
123
|
+
const count = bytes.byteLength;
|
|
124
|
+
if (position === null && !Number.isSafeInteger(retained.cursor + count))
|
|
125
|
+
throw new FsError("EFBIG", { syscall: "read", path });
|
|
126
|
+
const staging = retained.entry === "zero" ? undefined : new Uint8Array(Math.min(count, maxChunkBytes));
|
|
127
|
+
let offset = 0;
|
|
128
|
+
while (offset < count) {
|
|
129
|
+
supplied.signal?.throwIfAborted();
|
|
130
|
+
const length = Math.min(count - offset, maxChunkBytes);
|
|
131
|
+
if (staging === undefined)
|
|
132
|
+
bytes.fill(0, offset, offset + length);
|
|
133
|
+
else {
|
|
134
|
+
const chunk = staging.subarray(0, length);
|
|
135
|
+
fill(retained.entry, chunk, path, "read", supplied);
|
|
136
|
+
bytes.set(chunk, offset);
|
|
137
|
+
}
|
|
138
|
+
offset += length;
|
|
139
|
+
if (position === null)
|
|
140
|
+
retained.cursor += length;
|
|
141
|
+
if (offset < count)
|
|
142
|
+
await yieldTurn(supplied.signal);
|
|
143
|
+
}
|
|
144
|
+
return count;
|
|
145
|
+
},
|
|
146
|
+
async write(retained, bytes, position) {
|
|
147
|
+
admitWrite(retained.entry, bytes, path, "write");
|
|
148
|
+
if (position === null) {
|
|
149
|
+
if (!Number.isSafeInteger(retained.cursor + bytes.byteLength))
|
|
150
|
+
throw new FsError("EFBIG", { syscall: "write", path });
|
|
151
|
+
retained.cursor += bytes.byteLength;
|
|
152
|
+
}
|
|
153
|
+
return bytes.byteLength;
|
|
154
|
+
},
|
|
155
|
+
async truncate() { },
|
|
156
|
+
async sync() { },
|
|
157
|
+
async close() { },
|
|
158
|
+
};
|
|
159
|
+
});
|
|
160
|
+
},
|
|
161
|
+
async stat(path, options = {}) {
|
|
162
|
+
return metadata(resolve(path, "stat", options));
|
|
163
|
+
},
|
|
164
|
+
async lstat(path, options = {}) {
|
|
165
|
+
return metadata(resolve(path, "lstat", options));
|
|
166
|
+
},
|
|
167
|
+
async readFile(path, options = {}) {
|
|
168
|
+
const entry = resolve(path, "readFile", options);
|
|
169
|
+
if (options.maxBytes !== undefined)
|
|
170
|
+
integer(options.maxBytes, "readFile", path);
|
|
171
|
+
if (entry === "/")
|
|
172
|
+
throw new FsError("EISDIR", { syscall: "readFile", path });
|
|
173
|
+
if (entry !== "null")
|
|
174
|
+
throw new FsError("EFBIG", {
|
|
175
|
+
syscall: "readFile", path, message: "device has no EOF; use readStream with a bounded consumer",
|
|
176
|
+
});
|
|
177
|
+
return new Uint8Array();
|
|
178
|
+
},
|
|
179
|
+
async *readStream(path, options = {}) {
|
|
180
|
+
const entry = resolve(path, "readStream", options);
|
|
181
|
+
const start = options.start ?? 0;
|
|
182
|
+
const requested = options.chunkSize ?? maxChunkBytes;
|
|
183
|
+
integer(start, "readStream", path);
|
|
184
|
+
integer(requested, "readStream", path);
|
|
185
|
+
if (requested === 0)
|
|
186
|
+
throw new FsError("EINVAL", { syscall: "readStream", path });
|
|
187
|
+
if (options.endExclusive !== undefined) {
|
|
188
|
+
integer(options.endExclusive, "readStream", path);
|
|
189
|
+
if (options.endExclusive < start)
|
|
190
|
+
throw new FsError("EINVAL", { syscall: "readStream", path });
|
|
191
|
+
}
|
|
192
|
+
if (entry === "/")
|
|
193
|
+
throw new FsError("EISDIR", { syscall: "readStream", path });
|
|
194
|
+
if (entry === "null")
|
|
195
|
+
return;
|
|
196
|
+
const chunkSize = Math.min(requested, maxChunkBytes);
|
|
197
|
+
let remaining = options.endExclusive === undefined ? Infinity : options.endExclusive - start;
|
|
198
|
+
while (remaining > 0) {
|
|
199
|
+
options.signal?.throwIfAborted();
|
|
200
|
+
const bytes = new Uint8Array(Math.min(chunkSize, remaining));
|
|
201
|
+
fill(entry, bytes, path, "readStream", options);
|
|
202
|
+
remaining -= bytes.byteLength;
|
|
203
|
+
yield bytes;
|
|
204
|
+
options.signal?.throwIfAborted();
|
|
205
|
+
if (remaining > 0)
|
|
206
|
+
await yieldTurn(options.signal);
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
async writeFile(path, data, options = {}) {
|
|
210
|
+
const entry = openWrite(path, options, "writeFile");
|
|
211
|
+
admitWrite(entry, data, path, "writeFile");
|
|
212
|
+
},
|
|
213
|
+
async appendFile(path, data, options = {}) {
|
|
214
|
+
const entry = openWrite(path, { ...options, flag: "a" }, "appendFile");
|
|
215
|
+
admitWrite(entry, data, path, "appendFile");
|
|
216
|
+
},
|
|
217
|
+
async writeStream(path, source, options = {}) {
|
|
218
|
+
const entry = openWrite(path, options, "writeStream");
|
|
219
|
+
for await (const chunk of readBytes(source, options.signal)) {
|
|
220
|
+
if (!(chunk instanceof Uint8Array))
|
|
221
|
+
throw new TypeError("Device writes require Uint8Array data");
|
|
222
|
+
if (chunk.byteLength !== 0)
|
|
223
|
+
admitWrite(entry, chunk, path, "writeStream");
|
|
224
|
+
await yieldTurn(options.signal);
|
|
225
|
+
}
|
|
226
|
+
options.signal?.throwIfAborted();
|
|
227
|
+
},
|
|
228
|
+
async readdir(path, options = {}) {
|
|
229
|
+
const entry = resolve(path, "readdir", options);
|
|
230
|
+
if (entry !== "/")
|
|
231
|
+
throw new FsError("ENOTDIR", { syscall: "readdir", path });
|
|
232
|
+
if (options.maxEntries !== undefined) {
|
|
233
|
+
integer(options.maxEntries, "readdir", path);
|
|
234
|
+
if (options.maxEntries < deviceNames.length)
|
|
235
|
+
throw new FsError("EFBIG", { syscall: "readdir", path });
|
|
236
|
+
}
|
|
237
|
+
return deviceNames.map(name => ({ name, type: "character" }));
|
|
238
|
+
},
|
|
239
|
+
async realpath(path, options = {}) {
|
|
240
|
+
const entry = resolve(path, "realpath", options);
|
|
241
|
+
return entry === "/" ? "/" : `/${entry}`;
|
|
242
|
+
},
|
|
243
|
+
async access(path, mode = 0, options = {}) {
|
|
244
|
+
const entry = resolve(path, "access", options);
|
|
245
|
+
integer(mode, "access", path);
|
|
246
|
+
if (mode > 7)
|
|
247
|
+
throw new FsError("EINVAL", { syscall: "access", path });
|
|
248
|
+
if (entry === "/" ? (mode & 2) !== 0 : (mode & 1) !== 0) {
|
|
249
|
+
throw new FsError("EACCES", { syscall: "access", path });
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
async mkdir(path, options = {}) {
|
|
253
|
+
const entry = resolve(path, "mkdir", options, true);
|
|
254
|
+
if (entry === "/" && options.recursive)
|
|
255
|
+
return;
|
|
256
|
+
throw new FsError(entry === undefined ? "ENOTSUP" : "EEXIST", { syscall: "mkdir", path });
|
|
257
|
+
},
|
|
258
|
+
async rm(path, options = {}) {
|
|
259
|
+
try {
|
|
260
|
+
resolve(path, "rm", options);
|
|
261
|
+
}
|
|
262
|
+
catch (error) {
|
|
263
|
+
options.signal?.throwIfAborted();
|
|
264
|
+
if (options.force && error instanceof FsError && error.code === "ENOENT")
|
|
265
|
+
return;
|
|
266
|
+
throw error;
|
|
267
|
+
}
|
|
268
|
+
throw new FsError("ENOTSUP", { syscall: "rm", path });
|
|
269
|
+
},
|
|
270
|
+
async rmdir(path, options = {}) {
|
|
271
|
+
const entry = resolve(path, "rmdir", options);
|
|
272
|
+
throw new FsError(entry === "/" ? "ENOTEMPTY" : "ENOTDIR", { syscall: "rmdir", path });
|
|
273
|
+
},
|
|
274
|
+
async rename(source, destination, options = {}) {
|
|
275
|
+
resolve(source, "rename", options);
|
|
276
|
+
resolve(destination, "rename", options, true);
|
|
277
|
+
throw new FsError("ENOTSUP", { syscall: "rename", path: source, dest: destination });
|
|
278
|
+
},
|
|
279
|
+
async copyFile(source, destination, options = {}) {
|
|
280
|
+
const origin = resolve(source, "copyFile", options);
|
|
281
|
+
const target = resolve(destination, "copyFile", options);
|
|
282
|
+
if (origin === "/" || target === "/")
|
|
283
|
+
throw new FsError("EISDIR", { syscall: "copyFile", path: source, dest: destination });
|
|
284
|
+
if (options.exclusive)
|
|
285
|
+
throw new FsError("EEXIST", { syscall: "copyFile", path: source, dest: destination });
|
|
286
|
+
if (origin === target)
|
|
287
|
+
throw new FsError("EINVAL", { syscall: "copyFile", path: source, dest: destination });
|
|
288
|
+
await filesystem.writeStream(destination, filesystem.readStream(source, options), options);
|
|
289
|
+
},
|
|
290
|
+
};
|
|
291
|
+
return filesystem;
|
|
292
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export { Shell, agentCommands } from "@poe-platform/safe-bash";
|
|
2
|
+
export { createYesCommand, createYesCommands, yesCommands } from "./commands/yes/index.js";
|
|
3
|
+
export type { YesCommandOptions, YesCommandsOptions } from "./commands/yes/index.js";
|
|
4
|
+
export { createCmpCommand, createCmpCommands, cmpCommands } from "./commands/cmp/index.js";
|
|
5
|
+
export type { CmpCommandsOptions, CmpLimits } from "./commands/cmp/index.js";
|
|
6
|
+
export { createDdCommand, createDdCommands, ddCommands } from "./commands/dd/index.js";
|
|
7
|
+
export type { DdCommandsOptions, DdFileHandle, DdFileOpener, DdFileRequest } from "./commands/dd/index.js";
|
|
8
|
+
export { createShufCommand, createShufCommands, shufCommands } from "./commands/shuf/index.js";
|
|
9
|
+
export type { ShufCommandsOptions } from "./commands/shuf/index.js";
|
|
10
|
+
export { createTruncateCommand, createTruncateCommands, truncateCommands } from "./commands/truncate/index.js";
|
|
11
|
+
export type { TruncateCommandsOptions } from "./commands/truncate/index.js";
|
|
12
|
+
export { createInstallCommand, createInstallCommands, installCommands } from "./commands/install/index.js";
|
|
13
|
+
export type { InstallCommandsOptions, InstallModeRequest, InstallContextRequest } from "./commands/install/options.js";
|
|
14
|
+
export { createMikeYqCommand as createYqCommand, createMikeYqCommands as createYqCommands, mikeYqCommands as yqCommands } from "./commands/yq/mike.js";
|
|
15
|
+
export type { MikeYqOptions as YqCommandsOptions } from "./commands/yq/mike.js";
|
|
16
|
+
export type { MikeLimits as YqLimits } from "./commands/yq/native-work.js";
|
|
17
|
+
export { createDeviceFileSystem } from "./fs/devices/index.js";
|
|
18
|
+
export type { DeviceFileSystem } from "./fs/devices/index.js";
|
|
19
|
+
export { arraysExtension } from "./shell/extensions/arrays/index.js";
|
|
20
|
+
export { jobsExtension } from "./shell/extensions/jobs/index.js";
|
|
21
|
+
export { mapfileExtension } from "./shell/extensions/mapfile/index.js";
|
|
22
|
+
export { readExtension } from "./shell/extensions/read/index.js";
|
|
23
|
+
export type { ReadExtensionOptions } from "./shell/extensions/read/index.js";
|
|
24
|
+
export { trapExtension } from "./shell/extensions/trap/index.js";
|
|
25
|
+
export type { TrapExtensionOptions, TrapSignalHost } from "./shell/extensions/trap/index.js";
|
|
26
|
+
export type { ShellExtension, ShellExtensionBuiltin, ShellExtensionContext, ShellExtensionEvent, ShellExtensionInstance, ShellExtensionOption, ShellExtensionScope } from "@poe-platform/safe-bash/optional-host";
|
|
27
|
+
export type { PreparedShellChild, ShellChildPreparation, ShellListTerminatorContext, ShellListTerminatorHook, ShellSpecialParameterHook } from "@poe-platform/safe-bash/optional-host";
|
|
28
|
+
export type { ShellBindingReference, ShellBindingResult, ShellExecutionCheckpoint } from "@poe-platform/safe-bash/optional-host";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { Shell, agentCommands } from "@poe-platform/safe-bash";
|
|
2
|
+
export { createYesCommand, createYesCommands, yesCommands } from "./commands/yes/index.js";
|
|
3
|
+
export { createCmpCommand, createCmpCommands, cmpCommands } from "./commands/cmp/index.js";
|
|
4
|
+
export { createDdCommand, createDdCommands, ddCommands } from "./commands/dd/index.js";
|
|
5
|
+
export { createShufCommand, createShufCommands, shufCommands } from "./commands/shuf/index.js";
|
|
6
|
+
export { createTruncateCommand, createTruncateCommands, truncateCommands } from "./commands/truncate/index.js";
|
|
7
|
+
export { createInstallCommand, createInstallCommands, installCommands } from "./commands/install/index.js";
|
|
8
|
+
export { createMikeYqCommand as createYqCommand, createMikeYqCommands as createYqCommands, mikeYqCommands as yqCommands } from "./commands/yq/mike.js";
|
|
9
|
+
export { createDeviceFileSystem } from "./fs/devices/index.js";
|
|
10
|
+
export { arraysExtension } from "./shell/extensions/arrays/index.js";
|
|
11
|
+
export { jobsExtension } from "./shell/extensions/jobs/index.js";
|
|
12
|
+
export { mapfileExtension } from "./shell/extensions/mapfile/index.js";
|
|
13
|
+
export { readExtension } from "./shell/extensions/read/index.js";
|
|
14
|
+
export { trapExtension } from "./shell/extensions/trap/index.js";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { commandRuntimeIdentity } from "@poe-platform/safe-bash/contracts/command";
|
|
2
|
+
export function arraysExtension() {
|
|
3
|
+
return { name: "arrays", runtimeIdentity: commandRuntimeIdentity, syntax: { arrayKeys: true, indexedElementOperators: true, indexedDeclarations: ["readonly"] }, create: () => ({ builtins: [] }) };
|
|
4
|
+
}
|