@dotpi/tools 2.7.0 → 2.7.1
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/src/templates/README.md +0 -16
- package/src/templates/ap.nmconnection +0 -25
- package/src/templates/dotpi_project.bash +0 -29
- package/src/templates/dotpi_secrets.bash +0 -4
- package/src/templates/gitignore +0 -7
- package/src/templates/infrastructure.nmconnection +0 -29
- package/src/templates/ssh_config +0 -6
- 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,91 @@
|
|
|
1
|
+
import {promisify} from 'node:util';
|
|
2
|
+
import {
|
|
3
|
+
validateIpcMethod,
|
|
4
|
+
handleEpipeError,
|
|
5
|
+
handleSerializationError,
|
|
6
|
+
disconnect,
|
|
7
|
+
} from './validation.js';
|
|
8
|
+
import {startSendMessage, endSendMessage} from './outgoing.js';
|
|
9
|
+
import {handleSendStrict, waitForStrictResponse} from './strict.js';
|
|
10
|
+
|
|
11
|
+
// Like `[sub]process.send()` but promise-based.
|
|
12
|
+
// We do not `await subprocess` during `.sendMessage()` nor `.getOneMessage()` since those methods are transient.
|
|
13
|
+
// Users would still need to `await subprocess` after the method is done.
|
|
14
|
+
// Also, this would prevent `unhandledRejection` event from being emitted, making it silent.
|
|
15
|
+
export const sendMessage = ({anyProcess, channel, isSubprocess, ipc}, message, {strict = false} = {}) => {
|
|
16
|
+
const methodName = 'sendMessage';
|
|
17
|
+
validateIpcMethod({
|
|
18
|
+
methodName,
|
|
19
|
+
isSubprocess,
|
|
20
|
+
ipc,
|
|
21
|
+
isConnected: anyProcess.connected,
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
return sendMessageAsync({
|
|
25
|
+
anyProcess,
|
|
26
|
+
channel,
|
|
27
|
+
methodName,
|
|
28
|
+
isSubprocess,
|
|
29
|
+
message,
|
|
30
|
+
strict,
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
const sendMessageAsync = async ({anyProcess, channel, methodName, isSubprocess, message, strict}) => {
|
|
35
|
+
const wrappedMessage = handleSendStrict({
|
|
36
|
+
anyProcess,
|
|
37
|
+
channel,
|
|
38
|
+
isSubprocess,
|
|
39
|
+
message,
|
|
40
|
+
strict,
|
|
41
|
+
});
|
|
42
|
+
const outgoingMessagesState = startSendMessage(anyProcess, wrappedMessage, strict);
|
|
43
|
+
try {
|
|
44
|
+
await sendOneMessage({
|
|
45
|
+
anyProcess,
|
|
46
|
+
methodName,
|
|
47
|
+
isSubprocess,
|
|
48
|
+
wrappedMessage,
|
|
49
|
+
message,
|
|
50
|
+
});
|
|
51
|
+
} catch (error) {
|
|
52
|
+
disconnect(anyProcess);
|
|
53
|
+
throw error;
|
|
54
|
+
} finally {
|
|
55
|
+
endSendMessage(outgoingMessagesState);
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
// Used internally by `cancelSignal`
|
|
60
|
+
export const sendOneMessage = async ({anyProcess, methodName, isSubprocess, wrappedMessage, message}) => {
|
|
61
|
+
const sendMethod = getSendMethod(anyProcess);
|
|
62
|
+
|
|
63
|
+
try {
|
|
64
|
+
await Promise.all([
|
|
65
|
+
waitForStrictResponse(wrappedMessage, anyProcess, isSubprocess),
|
|
66
|
+
sendMethod(wrappedMessage),
|
|
67
|
+
]);
|
|
68
|
+
} catch (error) {
|
|
69
|
+
handleEpipeError({error, methodName, isSubprocess});
|
|
70
|
+
handleSerializationError({
|
|
71
|
+
error,
|
|
72
|
+
methodName,
|
|
73
|
+
isSubprocess,
|
|
74
|
+
message,
|
|
75
|
+
});
|
|
76
|
+
throw error;
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
// [sub]process.send() promisified, memoized
|
|
81
|
+
const getSendMethod = anyProcess => {
|
|
82
|
+
if (PROCESS_SEND_METHODS.has(anyProcess)) {
|
|
83
|
+
return PROCESS_SEND_METHODS.get(anyProcess);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
const sendMethod = promisify(anyProcess.send.bind(anyProcess));
|
|
87
|
+
PROCESS_SEND_METHODS.set(anyProcess, sendMethod);
|
|
88
|
+
return sendMethod;
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
const PROCESS_SEND_METHODS = new WeakMap();
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import {once} from 'node:events';
|
|
2
|
+
import {createDeferred} from '../utils/deferred.js';
|
|
3
|
+
import {incrementMaxListeners} from '../utils/max-listeners.js';
|
|
4
|
+
import {sendMessage} from './send.js';
|
|
5
|
+
import {throwOnMissingStrict, throwOnStrictDisconnect, throwOnStrictDeadlockError} from './validation.js';
|
|
6
|
+
import {getIpcEmitter} from './forward.js';
|
|
7
|
+
import {hasMessageListeners} from './outgoing.js';
|
|
8
|
+
|
|
9
|
+
// When using the `strict` option, wrap the message with metadata during `sendMessage()`
|
|
10
|
+
export const handleSendStrict = ({anyProcess, channel, isSubprocess, message, strict}) => {
|
|
11
|
+
if (!strict) {
|
|
12
|
+
return message;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const ipcEmitter = getIpcEmitter(anyProcess, channel, isSubprocess);
|
|
16
|
+
const hasListeners = hasMessageListeners(anyProcess, ipcEmitter);
|
|
17
|
+
return {
|
|
18
|
+
id: count++,
|
|
19
|
+
type: REQUEST_TYPE,
|
|
20
|
+
message,
|
|
21
|
+
hasListeners,
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
let count = 0n;
|
|
26
|
+
|
|
27
|
+
// Handles when both processes are calling `sendMessage()` with `strict` at the same time.
|
|
28
|
+
// If neither process is listening, this would create a deadlock. We detect it and throw.
|
|
29
|
+
export const validateStrictDeadlock = (outgoingMessages, wrappedMessage) => {
|
|
30
|
+
if (wrappedMessage?.type !== REQUEST_TYPE || wrappedMessage.hasListeners) {
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
for (const {id} of outgoingMessages) {
|
|
35
|
+
if (id !== undefined) {
|
|
36
|
+
STRICT_RESPONSES[id].resolve({isDeadlock: true, hasListeners: false});
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
// The other process then sends the acknowledgment back as a response
|
|
42
|
+
export const handleStrictRequest = async ({wrappedMessage, anyProcess, channel, isSubprocess, ipcEmitter}) => {
|
|
43
|
+
if (wrappedMessage?.type !== REQUEST_TYPE || !anyProcess.connected) {
|
|
44
|
+
return wrappedMessage;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
const {id, message} = wrappedMessage;
|
|
48
|
+
const response = {id, type: RESPONSE_TYPE, message: hasMessageListeners(anyProcess, ipcEmitter)};
|
|
49
|
+
|
|
50
|
+
try {
|
|
51
|
+
await sendMessage({
|
|
52
|
+
anyProcess,
|
|
53
|
+
channel,
|
|
54
|
+
isSubprocess,
|
|
55
|
+
ipc: true,
|
|
56
|
+
}, response);
|
|
57
|
+
} catch (error) {
|
|
58
|
+
ipcEmitter.emit('strict:error', error);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return message;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
// Reception of the acknowledgment response
|
|
65
|
+
export const handleStrictResponse = wrappedMessage => {
|
|
66
|
+
if (wrappedMessage?.type !== RESPONSE_TYPE) {
|
|
67
|
+
return false;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
const {id, message: hasListeners} = wrappedMessage;
|
|
71
|
+
STRICT_RESPONSES[id]?.resolve({isDeadlock: false, hasListeners});
|
|
72
|
+
return true;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
// Wait for the other process to receive the message from `sendMessage()`
|
|
76
|
+
export const waitForStrictResponse = async (wrappedMessage, anyProcess, isSubprocess) => {
|
|
77
|
+
if (wrappedMessage?.type !== REQUEST_TYPE) {
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
const deferred = createDeferred();
|
|
82
|
+
STRICT_RESPONSES[wrappedMessage.id] = deferred;
|
|
83
|
+
const controller = new AbortController();
|
|
84
|
+
|
|
85
|
+
try {
|
|
86
|
+
const {isDeadlock, hasListeners} = await Promise.race([
|
|
87
|
+
deferred,
|
|
88
|
+
throwOnDisconnect(anyProcess, isSubprocess, controller),
|
|
89
|
+
]);
|
|
90
|
+
|
|
91
|
+
if (isDeadlock) {
|
|
92
|
+
throwOnStrictDeadlockError(isSubprocess);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
if (!hasListeners) {
|
|
96
|
+
throwOnMissingStrict(isSubprocess);
|
|
97
|
+
}
|
|
98
|
+
} finally {
|
|
99
|
+
controller.abort();
|
|
100
|
+
delete STRICT_RESPONSES[wrappedMessage.id];
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
const STRICT_RESPONSES = {};
|
|
105
|
+
|
|
106
|
+
const throwOnDisconnect = async (anyProcess, isSubprocess, {signal}) => {
|
|
107
|
+
incrementMaxListeners(anyProcess, 1, signal);
|
|
108
|
+
await once(anyProcess, 'disconnect', {signal});
|
|
109
|
+
throwOnStrictDisconnect(isSubprocess);
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
const REQUEST_TYPE = 'execa:ipc:request';
|
|
113
|
+
const RESPONSE_TYPE = 'execa:ipc:response';
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
// Validate the IPC channel is connected before receiving/sending messages
|
|
2
|
+
export const validateIpcMethod = ({methodName, isSubprocess, ipc, isConnected}) => {
|
|
3
|
+
validateIpcOption(methodName, isSubprocess, ipc);
|
|
4
|
+
validateConnection(methodName, isSubprocess, isConnected);
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
// Better error message when forgetting to set `ipc: true` and using the IPC methods
|
|
8
|
+
const validateIpcOption = (methodName, isSubprocess, ipc) => {
|
|
9
|
+
if (!ipc) {
|
|
10
|
+
throw new Error(`${getMethodName(methodName, isSubprocess)} can only be used if the \`ipc\` option is \`true\`.`);
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
// Better error message when one process does not send/receive messages once the other process has disconnected.
|
|
15
|
+
// This also makes it clear that any buffered messages are lost once either process has disconnected.
|
|
16
|
+
// Also when aborting `cancelSignal` after disconnecting the IPC.
|
|
17
|
+
export const validateConnection = (methodName, isSubprocess, isConnected) => {
|
|
18
|
+
if (!isConnected) {
|
|
19
|
+
throw new Error(`${getMethodName(methodName, isSubprocess)} cannot be used: the ${getOtherProcessName(isSubprocess)} has already exited or disconnected.`);
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
// When `getOneMessage()` could not complete due to an early disconnection
|
|
24
|
+
export const throwOnEarlyDisconnect = isSubprocess => {
|
|
25
|
+
throw new Error(`${getMethodName('getOneMessage', isSubprocess)} could not complete: the ${getOtherProcessName(isSubprocess)} exited or disconnected.`);
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
// When both processes use `sendMessage()` with `strict` at the same time
|
|
29
|
+
export const throwOnStrictDeadlockError = isSubprocess => {
|
|
30
|
+
throw new Error(`${getMethodName('sendMessage', isSubprocess)} failed: the ${getOtherProcessName(isSubprocess)} is sending a message too, instead of listening to incoming messages.
|
|
31
|
+
This can be fixed by both sending a message and listening to incoming messages at the same time:
|
|
32
|
+
|
|
33
|
+
const [receivedMessage] = await Promise.all([
|
|
34
|
+
${getMethodName('getOneMessage', isSubprocess)},
|
|
35
|
+
${getMethodName('sendMessage', isSubprocess, 'message, {strict: true}')},
|
|
36
|
+
]);`);
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
// When the other process used `strict` but the current process had I/O error calling `sendMessage()` for the response
|
|
40
|
+
export const getStrictResponseError = (error, isSubprocess) => new Error(`${getMethodName('sendMessage', isSubprocess)} failed when sending an acknowledgment response to the ${getOtherProcessName(isSubprocess)}.`, {cause: error});
|
|
41
|
+
|
|
42
|
+
// When using `strict` but the other process was not listening for messages
|
|
43
|
+
export const throwOnMissingStrict = isSubprocess => {
|
|
44
|
+
throw new Error(`${getMethodName('sendMessage', isSubprocess)} failed: the ${getOtherProcessName(isSubprocess)} is not listening to incoming messages.`);
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
// When using `strict` but the other process disconnected before receiving the message
|
|
48
|
+
export const throwOnStrictDisconnect = isSubprocess => {
|
|
49
|
+
throw new Error(`${getMethodName('sendMessage', isSubprocess)} failed: the ${getOtherProcessName(isSubprocess)} exited without listening to incoming messages.`);
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
// When the current process disconnects while the subprocess is listening to `cancelSignal`
|
|
53
|
+
export const getAbortDisconnectError = () => new Error(`\`cancelSignal\` aborted: the ${getOtherProcessName(true)} disconnected.`);
|
|
54
|
+
|
|
55
|
+
// When the subprocess uses `cancelSignal` but not the current process
|
|
56
|
+
export const throwOnMissingParent = () => {
|
|
57
|
+
throw new Error('`getCancelSignal()` cannot be used without setting the `cancelSignal` subprocess option.');
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
// EPIPE can happen when sending a message to a subprocess that is closing but has not disconnected yet
|
|
61
|
+
export const handleEpipeError = ({error, methodName, isSubprocess}) => {
|
|
62
|
+
if (error.code === 'EPIPE') {
|
|
63
|
+
throw new Error(`${getMethodName(methodName, isSubprocess)} cannot be used: the ${getOtherProcessName(isSubprocess)} is disconnecting.`, {cause: error});
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
// Better error message when sending messages which cannot be serialized.
|
|
68
|
+
// Works with both `serialization: 'advanced'` and `serialization: 'json'`.
|
|
69
|
+
export const handleSerializationError = ({error, methodName, isSubprocess, message}) => {
|
|
70
|
+
if (isSerializationError(error)) {
|
|
71
|
+
throw new Error(`${getMethodName(methodName, isSubprocess)}'s argument type is invalid: the message cannot be serialized: ${String(message)}.`, {cause: error});
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
const isSerializationError = ({code, message}) => SERIALIZATION_ERROR_CODES.has(code)
|
|
76
|
+
|| SERIALIZATION_ERROR_MESSAGES.some(serializationErrorMessage => message.includes(serializationErrorMessage));
|
|
77
|
+
|
|
78
|
+
// `error.code` set by Node.js when it failed to serialize the message
|
|
79
|
+
const SERIALIZATION_ERROR_CODES = new Set([
|
|
80
|
+
// Message is `undefined`
|
|
81
|
+
'ERR_MISSING_ARGS',
|
|
82
|
+
// Message is a function, a bigint, a symbol
|
|
83
|
+
'ERR_INVALID_ARG_TYPE',
|
|
84
|
+
]);
|
|
85
|
+
|
|
86
|
+
// `error.message` set by Node.js when it failed to serialize the message
|
|
87
|
+
const SERIALIZATION_ERROR_MESSAGES = [
|
|
88
|
+
// Message is a promise or a proxy, with `serialization: 'advanced'`
|
|
89
|
+
'could not be cloned',
|
|
90
|
+
// Message has cycles, with `serialization: 'json'`
|
|
91
|
+
'circular structure',
|
|
92
|
+
// Message has cycles inside toJSON(), with `serialization: 'json'`
|
|
93
|
+
'call stack size exceeded',
|
|
94
|
+
];
|
|
95
|
+
|
|
96
|
+
const getMethodName = (methodName, isSubprocess, parameters = '') => methodName === 'cancelSignal'
|
|
97
|
+
? '`cancelSignal`\'s `controller.abort()`'
|
|
98
|
+
: `${getNamespaceName(isSubprocess)}${methodName}(${parameters})`;
|
|
99
|
+
|
|
100
|
+
const getNamespaceName = isSubprocess => isSubprocess ? '' : 'subprocess.';
|
|
101
|
+
|
|
102
|
+
const getOtherProcessName = isSubprocess => isSubprocess ? 'parent process' : 'subprocess';
|
|
103
|
+
|
|
104
|
+
// When any error arises, we disconnect the IPC.
|
|
105
|
+
// Otherwise, it is likely that one of the processes will stop sending/receiving messages.
|
|
106
|
+
// This would leave the other process hanging.
|
|
107
|
+
export const disconnect = anyProcess => {
|
|
108
|
+
if (anyProcess.connected) {
|
|
109
|
+
anyProcess.disconnect();
|
|
110
|
+
}
|
|
111
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import isPlainObject from 'is-plain-obj';
|
|
2
|
+
import {FD_SPECIFIC_OPTIONS} from '../arguments/specific.js';
|
|
3
|
+
|
|
4
|
+
// Deep merge specific options like `env`. Shallow merge the other ones.
|
|
5
|
+
export const mergeOptions = (boundOptions, options) => {
|
|
6
|
+
const newOptions = Object.fromEntries(
|
|
7
|
+
Object.entries(options).map(([optionName, optionValue]) => [
|
|
8
|
+
optionName,
|
|
9
|
+
mergeOption(optionName, boundOptions[optionName], optionValue),
|
|
10
|
+
]),
|
|
11
|
+
);
|
|
12
|
+
return {...boundOptions, ...newOptions};
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
const mergeOption = (optionName, boundOptionValue, optionValue) => {
|
|
16
|
+
if (DEEP_OPTIONS.has(optionName) && isPlainObject(boundOptionValue) && isPlainObject(optionValue)) {
|
|
17
|
+
return {...boundOptionValue, ...optionValue};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
return optionValue;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
const DEEP_OPTIONS = new Set(['env', ...FD_SPECIFIC_OPTIONS]);
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// Main logic for `execaCommand()`
|
|
2
|
+
export const mapCommandAsync = ({file, commandArguments}) => parseCommand(file, commandArguments);
|
|
3
|
+
|
|
4
|
+
// Main logic for `execaCommandSync()`
|
|
5
|
+
export const mapCommandSync = ({file, commandArguments}) => ({...parseCommand(file, commandArguments), isSync: true});
|
|
6
|
+
|
|
7
|
+
// Convert `execaCommand(command)` into `execa(file, ...commandArguments)`
|
|
8
|
+
const parseCommand = (command, unusedArguments) => {
|
|
9
|
+
if (unusedArguments.length > 0) {
|
|
10
|
+
throw new TypeError(`The command and its arguments must be passed as a single string: ${command} ${unusedArguments}.`);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const [file, ...commandArguments] = parseCommandString(command);
|
|
14
|
+
return {file, commandArguments};
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
// Convert `command` string into an array of file or arguments to pass to $`${...fileOrCommandArguments}`
|
|
18
|
+
export const parseCommandString = command => {
|
|
19
|
+
if (typeof command !== 'string') {
|
|
20
|
+
throw new TypeError(`The command must be a string: ${String(command)}.`);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const trimmedCommand = command.trim();
|
|
24
|
+
if (trimmedCommand === '') {
|
|
25
|
+
return [];
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const tokens = [];
|
|
29
|
+
for (const token of trimmedCommand.split(SPACES_REGEXP)) {
|
|
30
|
+
// Allow spaces to be escaped by a backslash if not meant as a delimiter
|
|
31
|
+
const previousToken = tokens.at(-1);
|
|
32
|
+
if (previousToken && previousToken.endsWith('\\')) {
|
|
33
|
+
// Merge previous token with current one
|
|
34
|
+
tokens[tokens.length - 1] = `${previousToken.slice(0, -1)} ${token}`;
|
|
35
|
+
} else {
|
|
36
|
+
tokens.push(token);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
return tokens;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
const SPACES_REGEXP = / +/g;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import isPlainObject from 'is-plain-obj';
|
|
2
|
+
import {normalizeParameters} from './parameters.js';
|
|
3
|
+
import {isTemplateString, parseTemplates} from './template.js';
|
|
4
|
+
import {execaCoreSync} from './main-sync.js';
|
|
5
|
+
import {execaCoreAsync} from './main-async.js';
|
|
6
|
+
import {mergeOptions} from './bind.js';
|
|
7
|
+
|
|
8
|
+
// Wraps every exported methods to provide the following features:
|
|
9
|
+
// - template string syntax: execa`command argument`
|
|
10
|
+
// - options binding: boundExeca = execa(options)
|
|
11
|
+
// - optional argument/options: execa(file), execa(file, args), execa(file, options), execa(file, args, options)
|
|
12
|
+
// `mapArguments()` and `setBoundExeca()` allows for method-specific logic.
|
|
13
|
+
export const createExeca = (mapArguments, boundOptions, deepOptions, setBoundExeca) => {
|
|
14
|
+
const createNested = (mapArguments, boundOptions, setBoundExeca) => createExeca(mapArguments, boundOptions, deepOptions, setBoundExeca);
|
|
15
|
+
const boundExeca = (...execaArguments) => callBoundExeca({
|
|
16
|
+
mapArguments,
|
|
17
|
+
deepOptions,
|
|
18
|
+
boundOptions,
|
|
19
|
+
setBoundExeca,
|
|
20
|
+
createNested,
|
|
21
|
+
}, ...execaArguments);
|
|
22
|
+
|
|
23
|
+
if (setBoundExeca !== undefined) {
|
|
24
|
+
setBoundExeca(boundExeca, createNested, boundOptions);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
return boundExeca;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
const callBoundExeca = ({mapArguments, deepOptions = {}, boundOptions = {}, setBoundExeca, createNested}, firstArgument, ...nextArguments) => {
|
|
31
|
+
if (isPlainObject(firstArgument)) {
|
|
32
|
+
return createNested(mapArguments, mergeOptions(boundOptions, firstArgument), setBoundExeca);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
const {file, commandArguments, options, isSync} = parseArguments({
|
|
36
|
+
mapArguments,
|
|
37
|
+
firstArgument,
|
|
38
|
+
nextArguments,
|
|
39
|
+
deepOptions,
|
|
40
|
+
boundOptions,
|
|
41
|
+
});
|
|
42
|
+
return isSync
|
|
43
|
+
? execaCoreSync(file, commandArguments, options)
|
|
44
|
+
: execaCoreAsync(file, commandArguments, options, createNested);
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
const parseArguments = ({mapArguments, firstArgument, nextArguments, deepOptions, boundOptions}) => {
|
|
48
|
+
const callArguments = isTemplateString(firstArgument)
|
|
49
|
+
? parseTemplates(firstArgument, nextArguments)
|
|
50
|
+
: [firstArgument, ...nextArguments];
|
|
51
|
+
const [initialFile, initialArguments, initialOptions] = normalizeParameters(...callArguments);
|
|
52
|
+
const mergedOptions = mergeOptions(mergeOptions(deepOptions, boundOptions), initialOptions);
|
|
53
|
+
const {
|
|
54
|
+
file = initialFile,
|
|
55
|
+
commandArguments = initialArguments,
|
|
56
|
+
options = mergedOptions,
|
|
57
|
+
isSync = false,
|
|
58
|
+
} = mapArguments({file: initialFile, commandArguments: initialArguments, options: mergedOptions});
|
|
59
|
+
return {
|
|
60
|
+
file,
|
|
61
|
+
commandArguments,
|
|
62
|
+
options,
|
|
63
|
+
isSync,
|
|
64
|
+
};
|
|
65
|
+
};
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import {setMaxListeners} from 'node:events';
|
|
2
|
+
import {spawn} from 'node:child_process';
|
|
3
|
+
import {MaxBufferError} from 'get-stream';
|
|
4
|
+
import {handleCommand} from '../arguments/command.js';
|
|
5
|
+
import {normalizeOptions} from '../arguments/options.js';
|
|
6
|
+
import {SUBPROCESS_OPTIONS} from '../arguments/fd-options.js';
|
|
7
|
+
import {addIpcMethods} from '../ipc/methods.js';
|
|
8
|
+
import {makeError, makeSuccessResult} from '../return/result.js';
|
|
9
|
+
import {handleResult} from '../return/reject.js';
|
|
10
|
+
import {handleEarlyError} from '../return/early-error.js';
|
|
11
|
+
import {handleStdioAsync} from '../stdio/handle-async.js';
|
|
12
|
+
import {stripNewline} from '../io/strip-newline.js';
|
|
13
|
+
import {pipeOutputAsync} from '../io/output-async.js';
|
|
14
|
+
import {subprocessKill} from '../terminate/kill.js';
|
|
15
|
+
import {cleanupOnExit} from '../terminate/cleanup.js';
|
|
16
|
+
import {pipeToSubprocess} from '../pipe/setup.js';
|
|
17
|
+
import {makeAllStream} from '../resolve/all-async.js';
|
|
18
|
+
import {waitForSubprocessResult} from '../resolve/wait-subprocess.js';
|
|
19
|
+
import {addConvertedStreams} from '../convert/add.js';
|
|
20
|
+
import {createDeferred} from '../utils/deferred.js';
|
|
21
|
+
import {mergePromise} from './promise.js';
|
|
22
|
+
|
|
23
|
+
// Main shared logic for all async methods: `execa()`, `$`, `execaNode()`
|
|
24
|
+
export const execaCoreAsync = (rawFile, rawArguments, rawOptions, createNested) => {
|
|
25
|
+
const {file, commandArguments, command, escapedCommand, startTime, verboseInfo, options, fileDescriptors} = handleAsyncArguments(rawFile, rawArguments, rawOptions);
|
|
26
|
+
const {subprocess, promise} = spawnSubprocessAsync({
|
|
27
|
+
file,
|
|
28
|
+
commandArguments,
|
|
29
|
+
options,
|
|
30
|
+
startTime,
|
|
31
|
+
verboseInfo,
|
|
32
|
+
command,
|
|
33
|
+
escapedCommand,
|
|
34
|
+
fileDescriptors,
|
|
35
|
+
});
|
|
36
|
+
subprocess.pipe = pipeToSubprocess.bind(undefined, {
|
|
37
|
+
source: subprocess,
|
|
38
|
+
sourcePromise: promise,
|
|
39
|
+
boundOptions: {},
|
|
40
|
+
createNested,
|
|
41
|
+
});
|
|
42
|
+
mergePromise(subprocess, promise);
|
|
43
|
+
SUBPROCESS_OPTIONS.set(subprocess, {options, fileDescriptors});
|
|
44
|
+
return subprocess;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
// Compute arguments to pass to `child_process.spawn()`
|
|
48
|
+
const handleAsyncArguments = (rawFile, rawArguments, rawOptions) => {
|
|
49
|
+
const {command, escapedCommand, startTime, verboseInfo} = handleCommand(rawFile, rawArguments, rawOptions);
|
|
50
|
+
const {file, commandArguments, options: normalizedOptions} = normalizeOptions(rawFile, rawArguments, rawOptions);
|
|
51
|
+
const options = handleAsyncOptions(normalizedOptions);
|
|
52
|
+
const fileDescriptors = handleStdioAsync(options, verboseInfo);
|
|
53
|
+
return {
|
|
54
|
+
file,
|
|
55
|
+
commandArguments,
|
|
56
|
+
command,
|
|
57
|
+
escapedCommand,
|
|
58
|
+
startTime,
|
|
59
|
+
verboseInfo,
|
|
60
|
+
options,
|
|
61
|
+
fileDescriptors,
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
// Options normalization logic specific to async methods.
|
|
66
|
+
// Prevent passing the `timeout` option directly to `child_process.spawn()`.
|
|
67
|
+
const handleAsyncOptions = ({timeout, signal, ...options}) => {
|
|
68
|
+
if (signal !== undefined) {
|
|
69
|
+
throw new TypeError('The "signal" option has been renamed to "cancelSignal" instead.');
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
return {...options, timeoutDuration: timeout};
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
const spawnSubprocessAsync = ({file, commandArguments, options, startTime, verboseInfo, command, escapedCommand, fileDescriptors}) => {
|
|
76
|
+
let subprocess;
|
|
77
|
+
try {
|
|
78
|
+
subprocess = spawn(file, commandArguments, options);
|
|
79
|
+
} catch (error) {
|
|
80
|
+
return handleEarlyError({
|
|
81
|
+
error,
|
|
82
|
+
command,
|
|
83
|
+
escapedCommand,
|
|
84
|
+
fileDescriptors,
|
|
85
|
+
options,
|
|
86
|
+
startTime,
|
|
87
|
+
verboseInfo,
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
const controller = new AbortController();
|
|
92
|
+
setMaxListeners(Number.POSITIVE_INFINITY, controller.signal);
|
|
93
|
+
|
|
94
|
+
const originalStreams = [...subprocess.stdio];
|
|
95
|
+
pipeOutputAsync(subprocess, fileDescriptors, controller);
|
|
96
|
+
cleanupOnExit(subprocess, options, controller);
|
|
97
|
+
|
|
98
|
+
const context = {};
|
|
99
|
+
const onInternalError = createDeferred();
|
|
100
|
+
subprocess.kill = subprocessKill.bind(undefined, {
|
|
101
|
+
kill: subprocess.kill.bind(subprocess),
|
|
102
|
+
options,
|
|
103
|
+
onInternalError,
|
|
104
|
+
context,
|
|
105
|
+
controller,
|
|
106
|
+
});
|
|
107
|
+
subprocess.all = makeAllStream(subprocess, options);
|
|
108
|
+
addConvertedStreams(subprocess, options);
|
|
109
|
+
addIpcMethods(subprocess, options);
|
|
110
|
+
|
|
111
|
+
const promise = handlePromise({
|
|
112
|
+
subprocess,
|
|
113
|
+
options,
|
|
114
|
+
startTime,
|
|
115
|
+
verboseInfo,
|
|
116
|
+
fileDescriptors,
|
|
117
|
+
originalStreams,
|
|
118
|
+
command,
|
|
119
|
+
escapedCommand,
|
|
120
|
+
context,
|
|
121
|
+
onInternalError,
|
|
122
|
+
controller,
|
|
123
|
+
});
|
|
124
|
+
return {subprocess, promise};
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
// Asynchronous logic, as opposed to the previous logic which can be run synchronously, i.e. can be returned to user right away
|
|
128
|
+
const handlePromise = async ({subprocess, options, startTime, verboseInfo, fileDescriptors, originalStreams, command, escapedCommand, context, onInternalError, controller}) => {
|
|
129
|
+
const [
|
|
130
|
+
errorInfo,
|
|
131
|
+
[exitCode, signal],
|
|
132
|
+
stdioResults,
|
|
133
|
+
allResult,
|
|
134
|
+
ipcOutput,
|
|
135
|
+
] = await waitForSubprocessResult({
|
|
136
|
+
subprocess,
|
|
137
|
+
options,
|
|
138
|
+
context,
|
|
139
|
+
verboseInfo,
|
|
140
|
+
fileDescriptors,
|
|
141
|
+
originalStreams,
|
|
142
|
+
onInternalError,
|
|
143
|
+
controller,
|
|
144
|
+
});
|
|
145
|
+
controller.abort();
|
|
146
|
+
onInternalError.resolve();
|
|
147
|
+
|
|
148
|
+
const stdio = stdioResults.map((stdioResult, fdNumber) => stripNewline(stdioResult, options, fdNumber));
|
|
149
|
+
const all = stripNewline(allResult, options, 'all');
|
|
150
|
+
const result = getAsyncResult({
|
|
151
|
+
errorInfo,
|
|
152
|
+
exitCode,
|
|
153
|
+
signal,
|
|
154
|
+
stdio,
|
|
155
|
+
all,
|
|
156
|
+
ipcOutput,
|
|
157
|
+
context,
|
|
158
|
+
options,
|
|
159
|
+
command,
|
|
160
|
+
escapedCommand,
|
|
161
|
+
startTime,
|
|
162
|
+
});
|
|
163
|
+
return handleResult(result, verboseInfo, options);
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
const getAsyncResult = ({errorInfo, exitCode, signal, stdio, all, ipcOutput, context, options, command, escapedCommand, startTime}) => 'error' in errorInfo
|
|
167
|
+
? makeError({
|
|
168
|
+
error: errorInfo.error,
|
|
169
|
+
command,
|
|
170
|
+
escapedCommand,
|
|
171
|
+
timedOut: context.terminationReason === 'timeout',
|
|
172
|
+
isCanceled: context.terminationReason === 'cancel' || context.terminationReason === 'gracefulCancel',
|
|
173
|
+
isGracefullyCanceled: context.terminationReason === 'gracefulCancel',
|
|
174
|
+
isMaxBuffer: errorInfo.error instanceof MaxBufferError,
|
|
175
|
+
isForcefullyTerminated: context.isForcefullyTerminated,
|
|
176
|
+
exitCode,
|
|
177
|
+
signal,
|
|
178
|
+
stdio,
|
|
179
|
+
all,
|
|
180
|
+
ipcOutput,
|
|
181
|
+
options,
|
|
182
|
+
startTime,
|
|
183
|
+
isSync: false,
|
|
184
|
+
})
|
|
185
|
+
: makeSuccessResult({
|
|
186
|
+
command,
|
|
187
|
+
escapedCommand,
|
|
188
|
+
stdio,
|
|
189
|
+
all,
|
|
190
|
+
ipcOutput,
|
|
191
|
+
options,
|
|
192
|
+
startTime,
|
|
193
|
+
});
|