@dotpi/tools 2.7.0 → 2.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dotpi_root/dist/@dotpi/avahi-monitor-module/node_modules/.package-lock.json +7 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/.package-lock.json +308 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/index.d.ts +27 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/index.js +28 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/arguments/command.js +20 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/arguments/cwd.js +39 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/arguments/encoding-option.js +50 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/arguments/escape.js +88 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/arguments/fd-options.js +108 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/arguments/file-url.js +25 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/arguments/options.js +96 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/arguments/specific.js +111 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/convert/add.js +15 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/convert/concurrent.js +33 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/convert/duplex.js +69 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/convert/iterable.js +34 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/convert/readable.js +113 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/convert/shared.js +46 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/convert/writable.js +90 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/io/contents.js +116 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/io/input-sync.js +44 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/io/iterate.js +110 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/io/max-buffer.js +89 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/io/output-async.js +80 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/io/output-sync.js +135 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/io/pipeline.js +48 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/io/strip-newline.js +12 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/ipc/array.js +4 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/ipc/buffer-messages.js +47 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/ipc/forward.js +56 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/ipc/get-each.js +89 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/ipc/get-one.js +69 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/ipc/graceful.js +72 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/ipc/incoming.js +79 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/ipc/ipc-input.js +44 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/ipc/methods.js +49 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/ipc/outgoing.js +47 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/ipc/reference.js +44 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/ipc/send.js +91 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/ipc/strict.js +113 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/ipc/validation.js +111 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/methods/bind.js +23 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/methods/command.js +43 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/methods/create.js +65 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/methods/main-async.js +193 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/methods/main-sync.js +162 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/methods/node.js +51 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/methods/parameters.js +31 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/methods/promise.js +15 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/methods/script.js +22 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/methods/template.js +153 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/pipe/abort.js +20 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/pipe/pipe-arguments.js +91 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/pipe/sequence.js +24 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/pipe/setup.js +72 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/pipe/streaming.js +51 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/pipe/throw.js +58 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/resolve/all-async.js +46 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/resolve/all-sync.js +33 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/resolve/exit-async.js +54 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/resolve/exit-sync.js +25 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/resolve/stdio.js +47 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/resolve/wait-stream.js +96 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/resolve/wait-subprocess.js +146 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/return/duration.js +8 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/return/early-error.js +60 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/return/final-error.js +40 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/return/message.js +157 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/return/reject.js +13 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/return/result.js +186 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/stdio/direction.js +76 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/stdio/duplicate.js +116 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/stdio/handle-async.js +52 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/stdio/handle-sync.js +57 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/stdio/handle.js +214 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/stdio/input-option.js +50 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/stdio/native.js +106 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/stdio/stdio-option.js +60 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/stdio/type.js +173 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/terminate/cancel.js +20 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/terminate/cleanup.js +16 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/terminate/graceful.js +71 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/terminate/kill.js +93 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/terminate/signal.js +70 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/terminate/timeout.js +21 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/transform/encoding-transform.js +51 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/transform/generator.js +107 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/transform/normalize.js +111 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/transform/object-mode.js +41 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/transform/run-async.js +60 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/transform/run-sync.js +50 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/transform/split.js +110 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/transform/validate.js +43 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/utils/abort-signal.js +8 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/utils/deferred.js +7 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/utils/max-listeners.js +14 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/utils/standard-stream.js +6 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/utils/uint-array.js +69 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/verbose/complete.js +24 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/verbose/custom.js +26 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/verbose/default.js +54 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/verbose/error.js +13 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/verbose/info.js +39 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/verbose/ipc.js +15 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/verbose/log.js +54 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/verbose/output.js +60 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/verbose/start.js +15 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/lib/verbose/values.js +33 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/license +9 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/package.json +104 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/readme.md +451 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/arguments/encoding-option.d.ts +19 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/arguments/fd-options.d.ts +8 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/arguments/options.d.ts +400 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/arguments/specific.d.ts +52 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/convert.d.ts +58 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/ipc.d.ts +156 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/methods/command.d.ts +114 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/methods/main-async.d.ts +379 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/methods/main-sync.d.ts +59 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/methods/node.d.ts +62 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/methods/script.d.ts +115 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/methods/template.d.ts +18 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/pipe.d.ts +58 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/return/final-error.d.ts +51 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/return/ignore.d.ts +26 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/return/result-all.d.ts +30 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/return/result-ipc.d.ts +27 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/return/result-stdio.d.ts +17 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/return/result-stdout.d.ts +50 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/return/result.d.ts +203 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/stdio/array.d.ts +16 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/stdio/direction.d.ts +12 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/stdio/option.d.ts +40 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/stdio/type.d.ts +170 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/subprocess/all.d.ts +17 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/subprocess/stdio.d.ts +18 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/subprocess/stdout.d.ts +22 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/subprocess/subprocess.d.ts +117 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/transform/normalize.d.ts +57 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/transform/object-mode.d.ts +21 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/utils.d.ts +13 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/execa/types/verbose.d.ts +98 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/figures/index.d.ts +279 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/figures/index.js +292 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/figures/license +9 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/figures/package.json +49 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/figures/readme.md +337 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/get-stream/license +9 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/get-stream/package.json +60 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/get-stream/readme.md +303 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/get-stream/source/array-buffer.js +84 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/get-stream/source/array.js +32 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/get-stream/source/buffer.js +19 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/get-stream/source/contents.js +121 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/get-stream/source/exports.js +5 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/get-stream/source/index.d.ts +121 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/get-stream/source/index.js +13 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/get-stream/source/stream.js +65 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/get-stream/source/string.js +41 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/get-stream/source/utils.js +11 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/human-signals/LICENSE +201 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/human-signals/README.md +180 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/human-signals/build/src/core.js +273 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/human-signals/build/src/main.d.ts +206 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/human-signals/build/src/main.js +70 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/human-signals/build/src/realtime.js +16 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/human-signals/build/src/signals.js +34 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/human-signals/package.json +64 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-plain-obj/index.d.ts +35 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-plain-obj/index.js +8 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-plain-obj/license +9 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-plain-obj/package.json +41 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-plain-obj/readme.md +58 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-stream/index.d.ts +90 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-stream/index.js +37 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-stream/license +9 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-stream/package.json +48 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-stream/readme.md +57 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-unicode-supported/index.d.ts +12 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-unicode-supported/index.js +21 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-unicode-supported/license +9 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-unicode-supported/package.json +47 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-unicode-supported/readme.md +35 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/npm-run-path/index.d.ts +90 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/npm-run-path/index.js +55 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/npm-run-path/license +9 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/npm-run-path/package.json +52 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/npm-run-path/readme.md +104 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/path-key/index.d.ts +31 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/path-key/index.js +12 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/path-key/license +9 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/path-key/package.json +41 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/path-key/readme.md +57 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/LICENSE.txt +16 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/README.md +74 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/dist/cjs/browser.d.ts +12 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/dist/cjs/browser.d.ts.map +1 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/dist/cjs/browser.js +10 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/dist/cjs/browser.js.map +1 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/dist/cjs/index.d.ts +48 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/dist/cjs/index.d.ts.map +1 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/dist/cjs/index.js +279 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/dist/cjs/index.js.map +1 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/dist/cjs/package.json +3 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/dist/cjs/signals.d.ts +29 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/dist/cjs/signals.d.ts.map +1 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/dist/cjs/signals.js +42 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/dist/cjs/signals.js.map +1 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/dist/mjs/browser.d.ts +12 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/dist/mjs/browser.d.ts.map +1 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/dist/mjs/browser.js +4 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/dist/mjs/browser.js.map +1 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/dist/mjs/index.d.ts +48 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/dist/mjs/index.d.ts.map +1 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/dist/mjs/index.js +275 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/dist/mjs/index.js.map +1 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/dist/mjs/package.json +3 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/dist/mjs/signals.d.ts +29 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/dist/mjs/signals.d.ts.map +1 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/dist/mjs/signals.js +39 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/dist/mjs/signals.js.map +1 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/signal-exit/package.json +106 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/strip-final-newline/index.d.ts +18 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/strip-final-newline/index.js +26 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/strip-final-newline/license +9 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/strip-final-newline/package.json +49 -0
- package/dotpi_root/dist/@dotpi/javascript/node_modules/strip-final-newline/readme.md +34 -0
- package/dotpi_root/dist/@dotpi/javascript/package.json +1 -2
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/index.d.ts +27 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/index.js +28 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/arguments/command.js +20 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/arguments/cwd.js +39 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/arguments/encoding-option.js +50 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/arguments/escape.js +88 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/arguments/fd-options.js +108 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/arguments/file-url.js +25 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/arguments/options.js +96 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/arguments/specific.js +111 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/convert/add.js +15 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/convert/concurrent.js +33 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/convert/duplex.js +69 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/convert/iterable.js +34 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/convert/readable.js +113 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/convert/shared.js +46 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/convert/writable.js +90 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/io/contents.js +116 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/io/input-sync.js +44 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/io/iterate.js +110 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/io/max-buffer.js +89 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/io/output-async.js +80 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/io/output-sync.js +135 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/io/pipeline.js +48 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/io/strip-newline.js +12 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/ipc/array.js +4 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/ipc/buffer-messages.js +47 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/ipc/forward.js +56 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/ipc/get-each.js +89 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/ipc/get-one.js +69 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/ipc/graceful.js +72 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/ipc/incoming.js +79 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/ipc/ipc-input.js +44 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/ipc/methods.js +49 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/ipc/outgoing.js +47 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/ipc/reference.js +44 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/ipc/send.js +91 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/ipc/strict.js +113 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/ipc/validation.js +111 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/methods/bind.js +23 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/methods/command.js +43 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/methods/create.js +65 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/methods/main-async.js +193 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/methods/main-sync.js +162 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/methods/node.js +51 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/methods/parameters.js +31 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/methods/promise.js +15 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/methods/script.js +22 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/methods/template.js +153 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/pipe/abort.js +20 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/pipe/pipe-arguments.js +91 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/pipe/sequence.js +24 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/pipe/setup.js +72 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/pipe/streaming.js +51 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/pipe/throw.js +58 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/resolve/all-async.js +46 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/resolve/all-sync.js +33 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/resolve/exit-async.js +54 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/resolve/exit-sync.js +25 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/resolve/stdio.js +47 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/resolve/wait-stream.js +96 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/resolve/wait-subprocess.js +146 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/return/duration.js +8 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/return/early-error.js +60 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/return/final-error.js +40 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/return/message.js +157 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/return/reject.js +13 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/return/result.js +186 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/stdio/direction.js +76 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/stdio/duplicate.js +116 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/stdio/handle-async.js +52 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/stdio/handle-sync.js +57 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/stdio/handle.js +214 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/stdio/input-option.js +50 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/stdio/native.js +106 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/stdio/stdio-option.js +60 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/stdio/type.js +173 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/terminate/cancel.js +20 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/terminate/cleanup.js +16 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/terminate/graceful.js +71 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/terminate/kill.js +93 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/terminate/signal.js +70 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/terminate/timeout.js +21 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/transform/encoding-transform.js +51 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/transform/generator.js +107 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/transform/normalize.js +111 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/transform/object-mode.js +41 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/transform/run-async.js +60 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/transform/run-sync.js +50 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/transform/split.js +110 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/transform/validate.js +43 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/utils/abort-signal.js +8 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/utils/deferred.js +7 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/utils/max-listeners.js +14 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/utils/standard-stream.js +6 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/utils/uint-array.js +69 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/verbose/complete.js +24 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/verbose/custom.js +26 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/verbose/default.js +54 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/verbose/error.js +13 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/verbose/info.js +39 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/verbose/ipc.js +15 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/verbose/log.js +54 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/verbose/output.js +60 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/verbose/start.js +15 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/lib/verbose/values.js +33 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/license +9 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/package.json +104 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/readme.md +451 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/arguments/encoding-option.d.ts +19 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/arguments/fd-options.d.ts +8 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/arguments/options.d.ts +400 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/arguments/specific.d.ts +52 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/convert.d.ts +58 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/ipc.d.ts +156 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/methods/command.d.ts +114 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/methods/main-async.d.ts +379 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/methods/main-sync.d.ts +59 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/methods/node.d.ts +62 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/methods/script.d.ts +115 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/methods/template.d.ts +18 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/pipe.d.ts +58 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/return/final-error.d.ts +51 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/return/ignore.d.ts +26 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/return/result-all.d.ts +30 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/return/result-ipc.d.ts +27 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/return/result-stdio.d.ts +17 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/return/result-stdout.d.ts +50 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/return/result.d.ts +203 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/stdio/array.d.ts +16 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/stdio/direction.d.ts +12 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/stdio/option.d.ts +40 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/stdio/type.d.ts +170 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/subprocess/all.d.ts +17 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/subprocess/stdio.d.ts +18 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/subprocess/stdout.d.ts +22 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/subprocess/subprocess.d.ts +117 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/transform/normalize.d.ts +57 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/transform/object-mode.d.ts +21 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/utils.d.ts +13 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/execa/types/verbose.d.ts +98 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/figures/index.d.ts +279 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/figures/index.js +292 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/figures/license +9 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/figures/package.json +49 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/figures/readme.md +337 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/get-stream/license +9 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/get-stream/package.json +60 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/get-stream/readme.md +303 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/get-stream/source/array-buffer.js +84 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/get-stream/source/array.js +32 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/get-stream/source/buffer.js +19 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/get-stream/source/contents.js +121 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/get-stream/source/exports.js +5 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/get-stream/source/index.d.ts +121 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/get-stream/source/index.js +13 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/get-stream/source/stream.js +65 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/get-stream/source/string.js +41 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/get-stream/source/utils.js +11 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/ignore.js +109 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/index.d.ts +207 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/index.js +264 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/license +9 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/@sindresorhus/merge-streams/index.d.ts +44 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/@sindresorhus/merge-streams/index.js +223 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/@sindresorhus/merge-streams/license +9 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/@sindresorhus/merge-streams/package.json +49 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/@sindresorhus/merge-streams/readme.md +53 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/unicorn-magic/default.js +14 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/unicorn-magic/index.d.ts +29 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/unicorn-magic/license +9 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/unicorn-magic/node.js +7 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/unicorn-magic/package.json +49 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/unicorn-magic/readme.md +25 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/package.json +94 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/readme.md +177 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/utilities.js +1 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/human-signals/LICENSE +201 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/human-signals/README.md +180 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/human-signals/build/src/core.js +273 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/human-signals/build/src/main.d.ts +206 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/human-signals/build/src/main.js +70 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/human-signals/build/src/realtime.js +16 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/human-signals/build/src/signals.js +34 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/human-signals/package.json +64 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/is-plain-obj/index.d.ts +35 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/is-plain-obj/index.js +8 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/is-plain-obj/license +9 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/is-plain-obj/package.json +41 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/is-plain-obj/readme.md +58 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/is-stream/index.d.ts +90 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/is-stream/index.js +37 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/is-stream/license +9 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/is-stream/package.json +48 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/is-stream/readme.md +57 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/is-unicode-supported/index.d.ts +12 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/is-unicode-supported/index.js +21 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/is-unicode-supported/license +9 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/is-unicode-supported/package.json +47 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/is-unicode-supported/readme.md +35 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/npm-run-path/index.d.ts +90 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/npm-run-path/index.js +55 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/npm-run-path/license +9 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/npm-run-path/package.json +52 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/npm-run-path/readme.md +104 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/path-key/index.d.ts +31 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/path-key/index.js +12 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/path-key/license +9 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/path-key/package.json +41 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/path-key/readme.md +57 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/path-type/index.d.ts +51 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/path-type/index.js +41 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/path-type/license +9 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/path-type/package.json +47 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/path-type/readme.md +74 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/LICENSE.txt +16 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/README.md +74 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/dist/cjs/browser.d.ts +12 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/dist/cjs/browser.d.ts.map +1 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/dist/cjs/browser.js +10 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/dist/cjs/browser.js.map +1 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/dist/cjs/index.d.ts +48 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/dist/cjs/index.d.ts.map +1 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/dist/cjs/index.js +279 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/dist/cjs/index.js.map +1 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/dist/cjs/package.json +3 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/dist/cjs/signals.d.ts +29 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/dist/cjs/signals.d.ts.map +1 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/dist/cjs/signals.js +42 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/dist/cjs/signals.js.map +1 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/dist/mjs/browser.d.ts +12 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/dist/mjs/browser.d.ts.map +1 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/dist/mjs/browser.js +4 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/dist/mjs/browser.js.map +1 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/dist/mjs/index.d.ts +48 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/dist/mjs/index.d.ts.map +1 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/dist/mjs/index.js +275 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/dist/mjs/index.js.map +1 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/dist/mjs/package.json +3 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/dist/mjs/signals.d.ts +29 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/dist/mjs/signals.d.ts.map +1 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/dist/mjs/signals.js +39 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/dist/mjs/signals.js.map +1 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/signal-exit/package.json +106 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/slash/index.d.ts +23 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/slash/index.js +9 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/slash/license +9 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/slash/package.json +39 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/slash/readme.md +36 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/strip-final-newline/index.d.ts +18 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/strip-final-newline/index.js +26 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/strip-final-newline/license +9 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/strip-final-newline/package.json +49 -0
- package/dotpi_root/dist/@dotpi/module/node_modules/strip-final-newline/readme.md +34 -0
- package/dotpi_root/dist/@dotpi/module/package.json +1 -2
- package/dotpi_root/dist/@dotpi/module-module/package.json +1 -2
- package/package.json +15 -10
- package/.editorbackup/NOTES.md~ +0 -974
- package/.editorbackup/PIPEWIRE.md~ +0 -42
- package/.editorbackup/README.md~ +0 -335
- package/.history/dotpi_root/dist/@dotpi/javascript/index_20250224110150.js +0 -0
- package/.history/dotpi_root/dist/@dotpi/javascript/index_20250429123336.js +0 -6
- package/.history/dotpi_root/dist/@dotpi/javascript/package_20250224111859.json +0 -15
- package/.history/dotpi_root/dist/@dotpi/javascript/package_20250429101520.json +0 -16
- package/.history/dotpi_root/share/dotpi_functions/dotpi_functions_audio_device_20250117162542.bash +0 -556
- package/.history/dotpi_root/share/dotpi_functions/dotpi_functions_audio_device_20250428182930.bash +0 -556
- package/.history/dotpi_root/share/dotpi_functions/dotpi_functions_audio_device_20250428183019.bash +0 -561
- package/.history/dotpi_root/share/dotpi_functions/dotpi_functions_audio_device_20250428183434.bash +0 -563
- package/.history/dotpi_root/share/dotpi_functions/dotpi_functions_audio_device_20250428183737.bash +0 -563
- package/.history/dotpi_root/share/dotpi_functions/dotpi_functions_audio_device_20250428183826.bash +0 -563
- package/.history/test/utils.spec_20241114125309.js +0 -48
- package/.history/test/utils.spec_20250428183107.js +0 -50
- package/.history/test/utils.spec_20250428183349.js +0 -50
- package/.history/test/utils.spec_20250428183620.js +0 -49
- package/.history/test/utils.spec_20250428183631.js +0 -50
- package/.history/test/utils.spec_20250428183753.js +0 -50
- package/.history/test/utils.spec_20250428183813.js +0 -50
- package/BACKUP-SANDO.command +0 -61
- package/BACKUP-SISIDO.command +0 -61
- package/DOC.md +0 -66
- package/NOTES.md +0 -121
- package/dotpi_root/dist/@dotpi/javascript/LICENSE +0 -28
- package/dotpi_root/dist/@dotpi/module/LICENSE +0 -28
- package/dotpi_root/dist/@dotpi/module-module/LICENSE +0 -28
- package/examples/example-development/configuration/dotpi_project.bash +0 -40
- package/examples/example-headphones/configuration/dotpi_project.bash +0 -18
- package/examples/example-hifiberry/configuration/dotpi_instance_012.bash +0 -4
- package/examples/example-hifiberry/configuration/dotpi_project.bash +0 -18
- package/examples/example-network/configuration/dotpi_project.bash +0 -21
- package/lerna.json +0 -4
- package/test/constants.spec.js +0 -37
- package/test/create-project.test.js +0 -56
- package/test/install-rpi.test.js +0 -8
- package/test/utils.spec.js +0 -50
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export type {
|
|
2
|
+
StdinOption,
|
|
3
|
+
StdinSyncOption,
|
|
4
|
+
StdoutStderrOption,
|
|
5
|
+
StdoutStderrSyncOption,
|
|
6
|
+
} from './types/stdio/type.js';
|
|
7
|
+
export type {Options, SyncOptions} from './types/arguments/options.js';
|
|
8
|
+
export type {TemplateExpression} from './types/methods/template.js';
|
|
9
|
+
|
|
10
|
+
export type {Result, SyncResult} from './types/return/result.js';
|
|
11
|
+
export type {ResultPromise, Subprocess} from './types/subprocess/subprocess.js';
|
|
12
|
+
export {ExecaError, ExecaSyncError} from './types/return/final-error.js';
|
|
13
|
+
|
|
14
|
+
export {execa, type ExecaMethod} from './types/methods/main-async.js';
|
|
15
|
+
export {execaSync, type ExecaSyncMethod} from './types/methods/main-sync.js';
|
|
16
|
+
export {execaCommand, execaCommandSync, parseCommandString} from './types/methods/command.js';
|
|
17
|
+
export {$, type ExecaScriptMethod, type ExecaScriptSyncMethod} from './types/methods/script.js';
|
|
18
|
+
export {execaNode, type ExecaNodeMethod} from './types/methods/node.js';
|
|
19
|
+
|
|
20
|
+
export {
|
|
21
|
+
sendMessage,
|
|
22
|
+
getOneMessage,
|
|
23
|
+
getEachMessage,
|
|
24
|
+
getCancelSignal,
|
|
25
|
+
type Message,
|
|
26
|
+
} from './types/ipc.js';
|
|
27
|
+
export type {VerboseObject, SyncVerboseObject} from './types/verbose.js';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {createExeca} from './lib/methods/create.js';
|
|
2
|
+
import {mapCommandAsync, mapCommandSync} from './lib/methods/command.js';
|
|
3
|
+
import {mapNode} from './lib/methods/node.js';
|
|
4
|
+
import {mapScriptAsync, setScriptSync, deepScriptOptions} from './lib/methods/script.js';
|
|
5
|
+
import {getIpcExport} from './lib/ipc/methods.js';
|
|
6
|
+
|
|
7
|
+
export {parseCommandString} from './lib/methods/command.js';
|
|
8
|
+
export {ExecaError, ExecaSyncError} from './lib/return/final-error.js';
|
|
9
|
+
|
|
10
|
+
export const execa = createExeca(() => ({}));
|
|
11
|
+
export const execaSync = createExeca(() => ({isSync: true}));
|
|
12
|
+
export const execaCommand = createExeca(mapCommandAsync);
|
|
13
|
+
export const execaCommandSync = createExeca(mapCommandSync);
|
|
14
|
+
export const execaNode = createExeca(mapNode);
|
|
15
|
+
export const $ = createExeca(mapScriptAsync, {}, deepScriptOptions, setScriptSync);
|
|
16
|
+
|
|
17
|
+
const {
|
|
18
|
+
sendMessage,
|
|
19
|
+
getOneMessage,
|
|
20
|
+
getEachMessage,
|
|
21
|
+
getCancelSignal,
|
|
22
|
+
} = getIpcExport();
|
|
23
|
+
export {
|
|
24
|
+
sendMessage,
|
|
25
|
+
getOneMessage,
|
|
26
|
+
getEachMessage,
|
|
27
|
+
getCancelSignal,
|
|
28
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {logCommand} from '../verbose/start.js';
|
|
2
|
+
import {getVerboseInfo} from '../verbose/info.js';
|
|
3
|
+
import {getStartTime} from '../return/duration.js';
|
|
4
|
+
import {joinCommand} from './escape.js';
|
|
5
|
+
import {normalizeFdSpecificOption} from './specific.js';
|
|
6
|
+
|
|
7
|
+
// Compute `result.command`, `result.escapedCommand` and `verbose`-related information
|
|
8
|
+
export const handleCommand = (filePath, rawArguments, rawOptions) => {
|
|
9
|
+
const startTime = getStartTime();
|
|
10
|
+
const {command, escapedCommand} = joinCommand(filePath, rawArguments);
|
|
11
|
+
const verbose = normalizeFdSpecificOption(rawOptions, 'verbose');
|
|
12
|
+
const verboseInfo = getVerboseInfo(verbose, escapedCommand, {...rawOptions});
|
|
13
|
+
logCommand(escapedCommand, verboseInfo);
|
|
14
|
+
return {
|
|
15
|
+
command,
|
|
16
|
+
escapedCommand,
|
|
17
|
+
startTime,
|
|
18
|
+
verboseInfo,
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import {statSync} from 'node:fs';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
import process from 'node:process';
|
|
4
|
+
import {safeNormalizeFileUrl} from './file-url.js';
|
|
5
|
+
|
|
6
|
+
// Normalize `cwd` option
|
|
7
|
+
export const normalizeCwd = (cwd = getDefaultCwd()) => {
|
|
8
|
+
const cwdString = safeNormalizeFileUrl(cwd, 'The "cwd" option');
|
|
9
|
+
return path.resolve(cwdString);
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const getDefaultCwd = () => {
|
|
13
|
+
try {
|
|
14
|
+
return process.cwd();
|
|
15
|
+
} catch (error) {
|
|
16
|
+
error.message = `The current directory does not exist.\n${error.message}`;
|
|
17
|
+
throw error;
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
// When `cwd` option has an invalid value, provide with a better error message
|
|
22
|
+
export const fixCwdError = (originalMessage, cwd) => {
|
|
23
|
+
if (cwd === getDefaultCwd()) {
|
|
24
|
+
return originalMessage;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
let cwdStat;
|
|
28
|
+
try {
|
|
29
|
+
cwdStat = statSync(cwd);
|
|
30
|
+
} catch (error) {
|
|
31
|
+
return `The "cwd" option is invalid: ${cwd}.\n${error.message}\n${originalMessage}`;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
if (!cwdStat.isDirectory()) {
|
|
35
|
+
return `The "cwd" option is not a directory: ${cwd}.\n${originalMessage}`;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
return originalMessage;
|
|
39
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// Validate `encoding` option
|
|
2
|
+
export const validateEncoding = ({encoding}) => {
|
|
3
|
+
if (ENCODINGS.has(encoding)) {
|
|
4
|
+
return;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
const correctEncoding = getCorrectEncoding(encoding);
|
|
8
|
+
if (correctEncoding !== undefined) {
|
|
9
|
+
throw new TypeError(`Invalid option \`encoding: ${serializeEncoding(encoding)}\`.
|
|
10
|
+
Please rename it to ${serializeEncoding(correctEncoding)}.`);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const correctEncodings = [...ENCODINGS].map(correctEncoding => serializeEncoding(correctEncoding)).join(', ');
|
|
14
|
+
throw new TypeError(`Invalid option \`encoding: ${serializeEncoding(encoding)}\`.
|
|
15
|
+
Please rename it to one of: ${correctEncodings}.`);
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
const TEXT_ENCODINGS = new Set(['utf8', 'utf16le']);
|
|
19
|
+
export const BINARY_ENCODINGS = new Set(['buffer', 'hex', 'base64', 'base64url', 'latin1', 'ascii']);
|
|
20
|
+
const ENCODINGS = new Set([...TEXT_ENCODINGS, ...BINARY_ENCODINGS]);
|
|
21
|
+
|
|
22
|
+
const getCorrectEncoding = encoding => {
|
|
23
|
+
if (encoding === null) {
|
|
24
|
+
return 'buffer';
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
if (typeof encoding !== 'string') {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const lowerEncoding = encoding.toLowerCase();
|
|
32
|
+
if (lowerEncoding in ENCODING_ALIASES) {
|
|
33
|
+
return ENCODING_ALIASES[lowerEncoding];
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
if (ENCODINGS.has(lowerEncoding)) {
|
|
37
|
+
return lowerEncoding;
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
const ENCODING_ALIASES = {
|
|
42
|
+
// eslint-disable-next-line unicorn/text-encoding-identifier-case
|
|
43
|
+
'utf-8': 'utf8',
|
|
44
|
+
'utf-16le': 'utf16le',
|
|
45
|
+
'ucs-2': 'utf16le',
|
|
46
|
+
ucs2: 'utf16le',
|
|
47
|
+
binary: 'latin1',
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
const serializeEncoding = encoding => typeof encoding === 'string' ? `"${encoding}"` : String(encoding);
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import {platform} from 'node:process';
|
|
2
|
+
import {stripVTControlCharacters} from 'node:util';
|
|
3
|
+
|
|
4
|
+
// Compute `result.command` and `result.escapedCommand`
|
|
5
|
+
export const joinCommand = (filePath, rawArguments) => {
|
|
6
|
+
const fileAndArguments = [filePath, ...rawArguments];
|
|
7
|
+
const command = fileAndArguments.join(' ');
|
|
8
|
+
const escapedCommand = fileAndArguments
|
|
9
|
+
.map(fileAndArgument => quoteString(escapeControlCharacters(fileAndArgument)))
|
|
10
|
+
.join(' ');
|
|
11
|
+
return {command, escapedCommand};
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
// Remove ANSI sequences and escape control characters and newlines
|
|
15
|
+
export const escapeLines = lines => stripVTControlCharacters(lines)
|
|
16
|
+
.split('\n')
|
|
17
|
+
.map(line => escapeControlCharacters(line))
|
|
18
|
+
.join('\n');
|
|
19
|
+
|
|
20
|
+
const escapeControlCharacters = line => line.replaceAll(SPECIAL_CHAR_REGEXP, character => escapeControlCharacter(character));
|
|
21
|
+
|
|
22
|
+
const escapeControlCharacter = character => {
|
|
23
|
+
const commonEscape = COMMON_ESCAPES[character];
|
|
24
|
+
if (commonEscape !== undefined) {
|
|
25
|
+
return commonEscape;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const codepoint = character.codePointAt(0);
|
|
29
|
+
const codepointHex = codepoint.toString(16);
|
|
30
|
+
return codepoint <= ASTRAL_START
|
|
31
|
+
? `\\u${codepointHex.padStart(4, '0')}`
|
|
32
|
+
: `\\U${codepointHex}`;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
// Characters that would create issues when printed are escaped using the \u or \U notation.
|
|
36
|
+
// Those include control characters and newlines.
|
|
37
|
+
// The \u and \U notation is Bash specific, but there is no way to do this in a shell-agnostic way.
|
|
38
|
+
// Some shells do not even have a way to print those characters in an escaped fashion.
|
|
39
|
+
// Therefore, we prioritize printing those safely, instead of allowing those to be copy-pasted.
|
|
40
|
+
// List of Unicode character categories: https://www.fileformat.info/info/unicode/category/index.htm
|
|
41
|
+
const getSpecialCharRegExp = () => {
|
|
42
|
+
try {
|
|
43
|
+
// This throws when using Node.js without ICU support.
|
|
44
|
+
// When using a RegExp literal, this would throw at parsing-time, instead of runtime.
|
|
45
|
+
// eslint-disable-next-line prefer-regex-literals
|
|
46
|
+
return new RegExp('\\p{Separator}|\\p{Other}', 'gu');
|
|
47
|
+
} catch {
|
|
48
|
+
// Similar to the above RegExp, but works even when Node.js has been built without ICU support.
|
|
49
|
+
// Unlike the above RegExp, it only covers whitespaces and C0/C1 control characters.
|
|
50
|
+
// It does not cover some edge cases, such as Unicode reserved characters.
|
|
51
|
+
// See https://github.com/sindresorhus/execa/issues/1143
|
|
52
|
+
// eslint-disable-next-line no-control-regex
|
|
53
|
+
return /[\s\u0000-\u001F\u007F-\u009F\u00AD]/g;
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
const SPECIAL_CHAR_REGEXP = getSpecialCharRegExp();
|
|
58
|
+
|
|
59
|
+
// Accepted by $'...' in Bash.
|
|
60
|
+
// Exclude \a \e \v which are accepted in Bash but not in JavaScript (except \v) and JSON.
|
|
61
|
+
const COMMON_ESCAPES = {
|
|
62
|
+
' ': ' ',
|
|
63
|
+
'\b': '\\b',
|
|
64
|
+
'\f': '\\f',
|
|
65
|
+
'\n': '\\n',
|
|
66
|
+
'\r': '\\r',
|
|
67
|
+
'\t': '\\t',
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
// Up until that codepoint, \u notation can be used instead of \U
|
|
71
|
+
const ASTRAL_START = 65_535;
|
|
72
|
+
|
|
73
|
+
// Some characters are shell-specific, i.e. need to be escaped when the command is copy-pasted then run.
|
|
74
|
+
// Escaping is shell-specific. We cannot know which shell is used: `process.platform` detection is not enough.
|
|
75
|
+
// For example, Windows users could be using `cmd.exe`, Powershell or Bash for Windows which all use different escaping.
|
|
76
|
+
// We use '...' on Unix, which is POSIX shell compliant and escape all characters but ' so this is fairly safe.
|
|
77
|
+
// On Windows, we assume cmd.exe is used and escape with "...", which also works with Powershell.
|
|
78
|
+
const quoteString = escapedArgument => {
|
|
79
|
+
if (NO_ESCAPE_REGEXP.test(escapedArgument)) {
|
|
80
|
+
return escapedArgument;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
return platform === 'win32'
|
|
84
|
+
? `"${escapedArgument.replaceAll('"', '""')}"`
|
|
85
|
+
: `'${escapedArgument.replaceAll('\'', '\'\\\'\'')}'`;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
const NO_ESCAPE_REGEXP = /^[\w./-]+$/;
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import {parseFd} from './specific.js';
|
|
2
|
+
|
|
3
|
+
// Retrieve stream targeted by the `to` option
|
|
4
|
+
export const getToStream = (destination, to = 'stdin') => {
|
|
5
|
+
const isWritable = true;
|
|
6
|
+
const {options, fileDescriptors} = SUBPROCESS_OPTIONS.get(destination);
|
|
7
|
+
const fdNumber = getFdNumber(fileDescriptors, to, isWritable);
|
|
8
|
+
const destinationStream = destination.stdio[fdNumber];
|
|
9
|
+
|
|
10
|
+
if (destinationStream === null) {
|
|
11
|
+
throw new TypeError(getInvalidStdioOptionMessage(fdNumber, to, options, isWritable));
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
return destinationStream;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
// Retrieve stream targeted by the `from` option
|
|
18
|
+
export const getFromStream = (source, from = 'stdout') => {
|
|
19
|
+
const isWritable = false;
|
|
20
|
+
const {options, fileDescriptors} = SUBPROCESS_OPTIONS.get(source);
|
|
21
|
+
const fdNumber = getFdNumber(fileDescriptors, from, isWritable);
|
|
22
|
+
const sourceStream = fdNumber === 'all' ? source.all : source.stdio[fdNumber];
|
|
23
|
+
|
|
24
|
+
if (sourceStream === null || sourceStream === undefined) {
|
|
25
|
+
throw new TypeError(getInvalidStdioOptionMessage(fdNumber, from, options, isWritable));
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
return sourceStream;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
// Keeps track of the options passed to each Execa call
|
|
32
|
+
export const SUBPROCESS_OPTIONS = new WeakMap();
|
|
33
|
+
|
|
34
|
+
const getFdNumber = (fileDescriptors, fdName, isWritable) => {
|
|
35
|
+
const fdNumber = parseFdNumber(fdName, isWritable);
|
|
36
|
+
validateFdNumber(fdNumber, fdName, isWritable, fileDescriptors);
|
|
37
|
+
return fdNumber;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
const parseFdNumber = (fdName, isWritable) => {
|
|
41
|
+
const fdNumber = parseFd(fdName);
|
|
42
|
+
if (fdNumber !== undefined) {
|
|
43
|
+
return fdNumber;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
const {validOptions, defaultValue} = isWritable
|
|
47
|
+
? {validOptions: '"stdin"', defaultValue: 'stdin'}
|
|
48
|
+
: {validOptions: '"stdout", "stderr", "all"', defaultValue: 'stdout'};
|
|
49
|
+
throw new TypeError(`"${getOptionName(isWritable)}" must not be "${fdName}".
|
|
50
|
+
It must be ${validOptions} or "fd3", "fd4" (and so on).
|
|
51
|
+
It is optional and defaults to "${defaultValue}".`);
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
const validateFdNumber = (fdNumber, fdName, isWritable, fileDescriptors) => {
|
|
55
|
+
const fileDescriptor = fileDescriptors[getUsedDescriptor(fdNumber)];
|
|
56
|
+
if (fileDescriptor === undefined) {
|
|
57
|
+
throw new TypeError(`"${getOptionName(isWritable)}" must not be ${fdName}. That file descriptor does not exist.
|
|
58
|
+
Please set the "stdio" option to ensure that file descriptor exists.`);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
if (fileDescriptor.direction === 'input' && !isWritable) {
|
|
62
|
+
throw new TypeError(`"${getOptionName(isWritable)}" must not be ${fdName}. It must be a readable stream, not writable.`);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
if (fileDescriptor.direction !== 'input' && isWritable) {
|
|
66
|
+
throw new TypeError(`"${getOptionName(isWritable)}" must not be ${fdName}. It must be a writable stream, not readable.`);
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
const getInvalidStdioOptionMessage = (fdNumber, fdName, options, isWritable) => {
|
|
71
|
+
if (fdNumber === 'all' && !options.all) {
|
|
72
|
+
return 'The "all" option must be true to use "from: \'all\'".';
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
const {optionName, optionValue} = getInvalidStdioOption(fdNumber, options);
|
|
76
|
+
return `The "${optionName}: ${serializeOptionValue(optionValue)}" option is incompatible with using "${getOptionName(isWritable)}: ${serializeOptionValue(fdName)}".
|
|
77
|
+
Please set this option with "pipe" instead.`;
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
const getInvalidStdioOption = (fdNumber, {stdin, stdout, stderr, stdio}) => {
|
|
81
|
+
const usedDescriptor = getUsedDescriptor(fdNumber);
|
|
82
|
+
|
|
83
|
+
if (usedDescriptor === 0 && stdin !== undefined) {
|
|
84
|
+
return {optionName: 'stdin', optionValue: stdin};
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
if (usedDescriptor === 1 && stdout !== undefined) {
|
|
88
|
+
return {optionName: 'stdout', optionValue: stdout};
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
if (usedDescriptor === 2 && stderr !== undefined) {
|
|
92
|
+
return {optionName: 'stderr', optionValue: stderr};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
return {optionName: `stdio[${usedDescriptor}]`, optionValue: stdio[usedDescriptor]};
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
const getUsedDescriptor = fdNumber => fdNumber === 'all' ? 1 : fdNumber;
|
|
99
|
+
|
|
100
|
+
const getOptionName = isWritable => isWritable ? 'to' : 'from';
|
|
101
|
+
|
|
102
|
+
export const serializeOptionValue = value => {
|
|
103
|
+
if (typeof value === 'string') {
|
|
104
|
+
return `'${value}'`;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
return typeof value === 'number' ? `${value}` : 'Stream';
|
|
108
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {fileURLToPath} from 'node:url';
|
|
2
|
+
|
|
3
|
+
// Allow some arguments/options to be either a file path string or a file URL
|
|
4
|
+
export const safeNormalizeFileUrl = (file, name) => {
|
|
5
|
+
const fileString = normalizeFileUrl(normalizeDenoExecPath(file));
|
|
6
|
+
|
|
7
|
+
if (typeof fileString !== 'string') {
|
|
8
|
+
throw new TypeError(`${name} must be a string or a file URL: ${fileString}.`);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
return fileString;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
// In Deno node:process execPath is a special object, not just a string:
|
|
15
|
+
// https://github.com/denoland/deno/blob/f460188e583f00144000aa0d8ade08218d47c3c1/ext/node/polyfills/process.ts#L344
|
|
16
|
+
const normalizeDenoExecPath = file => isDenoExecPath(file)
|
|
17
|
+
? file.toString()
|
|
18
|
+
: file;
|
|
19
|
+
|
|
20
|
+
export const isDenoExecPath = file => typeof file !== 'string'
|
|
21
|
+
&& file
|
|
22
|
+
&& Object.getPrototypeOf(file) === String.prototype;
|
|
23
|
+
|
|
24
|
+
// Same but also allows other values, e.g. `boolean` for the `shell` option
|
|
25
|
+
export const normalizeFileUrl = file => file instanceof URL ? fileURLToPath(file) : file;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import path from 'node:path';
|
|
2
|
+
import process from 'node:process';
|
|
3
|
+
import crossSpawn from 'cross-spawn';
|
|
4
|
+
import {npmRunPathEnv} from 'npm-run-path';
|
|
5
|
+
import {normalizeForceKillAfterDelay} from '../terminate/kill.js';
|
|
6
|
+
import {normalizeKillSignal} from '../terminate/signal.js';
|
|
7
|
+
import {validateCancelSignal} from '../terminate/cancel.js';
|
|
8
|
+
import {validateGracefulCancel} from '../terminate/graceful.js';
|
|
9
|
+
import {validateTimeout} from '../terminate/timeout.js';
|
|
10
|
+
import {handleNodeOption} from '../methods/node.js';
|
|
11
|
+
import {validateIpcInputOption} from '../ipc/ipc-input.js';
|
|
12
|
+
import {validateEncoding, BINARY_ENCODINGS} from './encoding-option.js';
|
|
13
|
+
import {normalizeCwd} from './cwd.js';
|
|
14
|
+
import {normalizeFileUrl} from './file-url.js';
|
|
15
|
+
import {normalizeFdSpecificOptions} from './specific.js';
|
|
16
|
+
|
|
17
|
+
// Normalize the options object, and sometimes also the file paths and arguments.
|
|
18
|
+
// Applies default values, validate allowed options, normalize them.
|
|
19
|
+
export const normalizeOptions = (filePath, rawArguments, rawOptions) => {
|
|
20
|
+
rawOptions.cwd = normalizeCwd(rawOptions.cwd);
|
|
21
|
+
const [processedFile, processedArguments, processedOptions] = handleNodeOption(filePath, rawArguments, rawOptions);
|
|
22
|
+
|
|
23
|
+
const {command: file, args: commandArguments, options: initialOptions} = crossSpawn._parse(processedFile, processedArguments, processedOptions);
|
|
24
|
+
|
|
25
|
+
const fdOptions = normalizeFdSpecificOptions(initialOptions);
|
|
26
|
+
const options = addDefaultOptions(fdOptions);
|
|
27
|
+
validateTimeout(options);
|
|
28
|
+
validateEncoding(options);
|
|
29
|
+
validateIpcInputOption(options);
|
|
30
|
+
validateCancelSignal(options);
|
|
31
|
+
validateGracefulCancel(options);
|
|
32
|
+
options.shell = normalizeFileUrl(options.shell);
|
|
33
|
+
options.env = getEnv(options);
|
|
34
|
+
options.killSignal = normalizeKillSignal(options.killSignal);
|
|
35
|
+
options.forceKillAfterDelay = normalizeForceKillAfterDelay(options.forceKillAfterDelay);
|
|
36
|
+
options.lines = options.lines.map((lines, fdNumber) => lines && !BINARY_ENCODINGS.has(options.encoding) && options.buffer[fdNumber]);
|
|
37
|
+
|
|
38
|
+
if (process.platform === 'win32' && path.basename(file, '.exe') === 'cmd') {
|
|
39
|
+
// #116
|
|
40
|
+
commandArguments.unshift('/q');
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
return {file, commandArguments, options};
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
const addDefaultOptions = ({
|
|
47
|
+
extendEnv = true,
|
|
48
|
+
preferLocal = false,
|
|
49
|
+
cwd,
|
|
50
|
+
localDir: localDirectory = cwd,
|
|
51
|
+
encoding = 'utf8',
|
|
52
|
+
reject = true,
|
|
53
|
+
cleanup = true,
|
|
54
|
+
all = false,
|
|
55
|
+
windowsHide = true,
|
|
56
|
+
killSignal = 'SIGTERM',
|
|
57
|
+
forceKillAfterDelay = true,
|
|
58
|
+
gracefulCancel = false,
|
|
59
|
+
ipcInput,
|
|
60
|
+
ipc = ipcInput !== undefined || gracefulCancel,
|
|
61
|
+
serialization = 'advanced',
|
|
62
|
+
...options
|
|
63
|
+
}) => ({
|
|
64
|
+
...options,
|
|
65
|
+
extendEnv,
|
|
66
|
+
preferLocal,
|
|
67
|
+
cwd,
|
|
68
|
+
localDirectory,
|
|
69
|
+
encoding,
|
|
70
|
+
reject,
|
|
71
|
+
cleanup,
|
|
72
|
+
all,
|
|
73
|
+
windowsHide,
|
|
74
|
+
killSignal,
|
|
75
|
+
forceKillAfterDelay,
|
|
76
|
+
gracefulCancel,
|
|
77
|
+
ipcInput,
|
|
78
|
+
ipc,
|
|
79
|
+
serialization,
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
const getEnv = ({env: envOption, extendEnv, preferLocal, node, localDirectory, nodePath}) => {
|
|
83
|
+
const env = extendEnv ? {...process.env, ...envOption} : envOption;
|
|
84
|
+
|
|
85
|
+
if (preferLocal || node) {
|
|
86
|
+
return npmRunPathEnv({
|
|
87
|
+
env,
|
|
88
|
+
cwd: localDirectory,
|
|
89
|
+
execPath: nodePath,
|
|
90
|
+
preferLocal,
|
|
91
|
+
addExecPath: node,
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
return env;
|
|
96
|
+
};
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import {debuglog} from 'node:util';
|
|
2
|
+
import isPlainObject from 'is-plain-obj';
|
|
3
|
+
import {STANDARD_STREAMS_ALIASES} from '../utils/standard-stream.js';
|
|
4
|
+
|
|
5
|
+
// Some options can have different values for `stdout`/`stderr`/`fd3`.
|
|
6
|
+
// This normalizes those to array of values.
|
|
7
|
+
// For example, `{verbose: {stdout: 'none', stderr: 'full'}}` becomes `{verbose: ['none', 'none', 'full']}`
|
|
8
|
+
export const normalizeFdSpecificOptions = options => {
|
|
9
|
+
const optionsCopy = {...options};
|
|
10
|
+
|
|
11
|
+
for (const optionName of FD_SPECIFIC_OPTIONS) {
|
|
12
|
+
optionsCopy[optionName] = normalizeFdSpecificOption(options, optionName);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
return optionsCopy;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export const normalizeFdSpecificOption = (options, optionName) => {
|
|
19
|
+
const optionBaseArray = Array.from({length: getStdioLength(options) + 1});
|
|
20
|
+
const optionArray = normalizeFdSpecificValue(options[optionName], optionBaseArray, optionName);
|
|
21
|
+
return addDefaultValue(optionArray, optionName);
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
const getStdioLength = ({stdio}) => Array.isArray(stdio)
|
|
25
|
+
? Math.max(stdio.length, STANDARD_STREAMS_ALIASES.length)
|
|
26
|
+
: STANDARD_STREAMS_ALIASES.length;
|
|
27
|
+
|
|
28
|
+
const normalizeFdSpecificValue = (optionValue, optionArray, optionName) => isPlainObject(optionValue)
|
|
29
|
+
? normalizeOptionObject(optionValue, optionArray, optionName)
|
|
30
|
+
: optionArray.fill(optionValue);
|
|
31
|
+
|
|
32
|
+
const normalizeOptionObject = (optionValue, optionArray, optionName) => {
|
|
33
|
+
for (const fdName of Object.keys(optionValue).sort(compareFdName)) {
|
|
34
|
+
for (const fdNumber of parseFdName(fdName, optionName, optionArray)) {
|
|
35
|
+
optionArray[fdNumber] = optionValue[fdName];
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
return optionArray;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
// Ensure priority order when setting both `stdout`/`stderr`, `fd1`/`fd2`, and `all`
|
|
43
|
+
const compareFdName = (fdNameA, fdNameB) => getFdNameOrder(fdNameA) < getFdNameOrder(fdNameB) ? 1 : -1;
|
|
44
|
+
|
|
45
|
+
const getFdNameOrder = fdName => {
|
|
46
|
+
if (fdName === 'stdout' || fdName === 'stderr') {
|
|
47
|
+
return 0;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
return fdName === 'all' ? 2 : 1;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
const parseFdName = (fdName, optionName, optionArray) => {
|
|
54
|
+
if (fdName === 'ipc') {
|
|
55
|
+
return [optionArray.length - 1];
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
const fdNumber = parseFd(fdName);
|
|
59
|
+
if (fdNumber === undefined || fdNumber === 0) {
|
|
60
|
+
throw new TypeError(`"${optionName}.${fdName}" is invalid.
|
|
61
|
+
It must be "${optionName}.stdout", "${optionName}.stderr", "${optionName}.all", "${optionName}.ipc", or "${optionName}.fd3", "${optionName}.fd4" (and so on).`);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
if (fdNumber >= optionArray.length) {
|
|
65
|
+
throw new TypeError(`"${optionName}.${fdName}" is invalid: that file descriptor does not exist.
|
|
66
|
+
Please set the "stdio" option to ensure that file descriptor exists.`);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return fdNumber === 'all' ? [1, 2] : [fdNumber];
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
// Use the same syntax for fd-specific options and the `from`/`to` options
|
|
73
|
+
export const parseFd = fdName => {
|
|
74
|
+
if (fdName === 'all') {
|
|
75
|
+
return fdName;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
if (STANDARD_STREAMS_ALIASES.includes(fdName)) {
|
|
79
|
+
return STANDARD_STREAMS_ALIASES.indexOf(fdName);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
const regexpResult = FD_REGEXP.exec(fdName);
|
|
83
|
+
if (regexpResult !== null) {
|
|
84
|
+
return Number(regexpResult[1]);
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
const FD_REGEXP = /^fd(\d+)$/;
|
|
89
|
+
|
|
90
|
+
const addDefaultValue = (optionArray, optionName) => optionArray.map(optionValue => optionValue === undefined
|
|
91
|
+
? DEFAULT_OPTIONS[optionName]
|
|
92
|
+
: optionValue);
|
|
93
|
+
|
|
94
|
+
// Default value for the `verbose` option
|
|
95
|
+
const verboseDefault = debuglog('execa').enabled ? 'full' : 'none';
|
|
96
|
+
|
|
97
|
+
const DEFAULT_OPTIONS = {
|
|
98
|
+
lines: false,
|
|
99
|
+
buffer: true,
|
|
100
|
+
maxBuffer: 1000 * 1000 * 100,
|
|
101
|
+
verbose: verboseDefault,
|
|
102
|
+
stripFinalNewline: true,
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
// List of options which can have different values for `stdout`/`stderr`
|
|
106
|
+
export const FD_SPECIFIC_OPTIONS = ['lines', 'buffer', 'maxBuffer', 'verbose', 'stripFinalNewline'];
|
|
107
|
+
|
|
108
|
+
// Retrieve fd-specific option
|
|
109
|
+
export const getFdSpecificValue = (optionArray, fdNumber) => fdNumber === 'ipc'
|
|
110
|
+
? optionArray.at(-1)
|
|
111
|
+
: optionArray[fdNumber];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {initializeConcurrentStreams} from './concurrent.js';
|
|
2
|
+
import {createReadable} from './readable.js';
|
|
3
|
+
import {createWritable} from './writable.js';
|
|
4
|
+
import {createDuplex} from './duplex.js';
|
|
5
|
+
import {createIterable} from './iterable.js';
|
|
6
|
+
|
|
7
|
+
// Add methods to convert the subprocess to a stream or iterable
|
|
8
|
+
export const addConvertedStreams = (subprocess, {encoding}) => {
|
|
9
|
+
const concurrentStreams = initializeConcurrentStreams();
|
|
10
|
+
subprocess.readable = createReadable.bind(undefined, {subprocess, concurrentStreams, encoding});
|
|
11
|
+
subprocess.writable = createWritable.bind(undefined, {subprocess, concurrentStreams});
|
|
12
|
+
subprocess.duplex = createDuplex.bind(undefined, {subprocess, concurrentStreams, encoding});
|
|
13
|
+
subprocess.iterable = createIterable.bind(undefined, subprocess, encoding);
|
|
14
|
+
subprocess[Symbol.asyncIterator] = createIterable.bind(undefined, subprocess, encoding, {});
|
|
15
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import {createDeferred} from '../utils/deferred.js';
|
|
2
|
+
|
|
3
|
+
// When using multiple `.readable()`/`.writable()`/`.duplex()`, `final` and `destroy` should wait for other streams
|
|
4
|
+
export const initializeConcurrentStreams = () => ({
|
|
5
|
+
readableDestroy: new WeakMap(),
|
|
6
|
+
writableFinal: new WeakMap(),
|
|
7
|
+
writableDestroy: new WeakMap(),
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
// Each file descriptor + `waitName` has its own array of promises.
|
|
11
|
+
// Each promise is a single `.readable()`/`.writable()`/`.duplex()` call.
|
|
12
|
+
export const addConcurrentStream = (concurrentStreams, stream, waitName) => {
|
|
13
|
+
const weakMap = concurrentStreams[waitName];
|
|
14
|
+
if (!weakMap.has(stream)) {
|
|
15
|
+
weakMap.set(stream, []);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const promises = weakMap.get(stream);
|
|
19
|
+
const promise = createDeferred();
|
|
20
|
+
promises.push(promise);
|
|
21
|
+
const resolve = promise.resolve.bind(promise);
|
|
22
|
+
return {resolve, promises};
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
// Wait for other streams, but stop waiting when subprocess ends
|
|
26
|
+
export const waitForConcurrentStreams = async ({resolve, promises}, subprocess) => {
|
|
27
|
+
resolve();
|
|
28
|
+
const [isSubprocessExit] = await Promise.race([
|
|
29
|
+
Promise.allSettled([true, subprocess]),
|
|
30
|
+
Promise.all([false, ...promises]),
|
|
31
|
+
]);
|
|
32
|
+
return !isSubprocessExit;
|
|
33
|
+
};
|