@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,48 @@
|
|
|
1
|
+
import {finished} from 'node:stream/promises';
|
|
2
|
+
import {isStandardStream} from '../utils/standard-stream.js';
|
|
3
|
+
|
|
4
|
+
// Similar to `Stream.pipeline(source, destination)`, but does not destroy standard streams
|
|
5
|
+
export const pipeStreams = (source, destination) => {
|
|
6
|
+
source.pipe(destination);
|
|
7
|
+
onSourceFinish(source, destination);
|
|
8
|
+
onDestinationFinish(source, destination);
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
// `source.pipe(destination)` makes `destination` end when `source` ends.
|
|
12
|
+
// But it does not propagate aborts or errors. This function does it.
|
|
13
|
+
const onSourceFinish = async (source, destination) => {
|
|
14
|
+
if (isStandardStream(source) || isStandardStream(destination)) {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
try {
|
|
19
|
+
await finished(source, {cleanup: true, readable: true, writable: false});
|
|
20
|
+
} catch {}
|
|
21
|
+
|
|
22
|
+
endDestinationStream(destination);
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export const endDestinationStream = destination => {
|
|
26
|
+
if (destination.writable) {
|
|
27
|
+
destination.end();
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
// We do the same thing in the other direction as well.
|
|
32
|
+
const onDestinationFinish = async (source, destination) => {
|
|
33
|
+
if (isStandardStream(source) || isStandardStream(destination)) {
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
try {
|
|
38
|
+
await finished(destination, {cleanup: true, readable: false, writable: true});
|
|
39
|
+
} catch {}
|
|
40
|
+
|
|
41
|
+
abortSourceStream(source);
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export const abortSourceStream = source => {
|
|
45
|
+
if (source.readable) {
|
|
46
|
+
source.destroy();
|
|
47
|
+
}
|
|
48
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import stripFinalNewlineFunction from 'strip-final-newline';
|
|
2
|
+
|
|
3
|
+
// Apply `stripFinalNewline` option, which applies to `result.stdout|stderr|all|stdio[*]`.
|
|
4
|
+
// If the `lines` option is used, it is applied on each line, but using a different function.
|
|
5
|
+
export const stripNewline = (value, {stripFinalNewline}, fdNumber) => getStripFinalNewline(stripFinalNewline, fdNumber) && value !== undefined && !Array.isArray(value)
|
|
6
|
+
? stripFinalNewlineFunction(value)
|
|
7
|
+
: value;
|
|
8
|
+
|
|
9
|
+
// Retrieve `stripFinalNewline` option value, including with `subprocess.all`
|
|
10
|
+
export const getStripFinalNewline = (stripFinalNewline, fdNumber) => fdNumber === 'all'
|
|
11
|
+
? stripFinalNewline[1] || stripFinalNewline[2]
|
|
12
|
+
: stripFinalNewline[fdNumber];
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import {checkIpcMaxBuffer} from '../io/max-buffer.js';
|
|
2
|
+
import {shouldLogIpc, logIpcOutput} from '../verbose/ipc.js';
|
|
3
|
+
import {getFdSpecificValue} from '../arguments/specific.js';
|
|
4
|
+
import {loopOnMessages} from './get-each.js';
|
|
5
|
+
|
|
6
|
+
// Iterate through IPC messages sent by the subprocess
|
|
7
|
+
export const waitForIpcOutput = async ({
|
|
8
|
+
subprocess,
|
|
9
|
+
buffer: bufferArray,
|
|
10
|
+
maxBuffer: maxBufferArray,
|
|
11
|
+
ipc,
|
|
12
|
+
ipcOutput,
|
|
13
|
+
verboseInfo,
|
|
14
|
+
}) => {
|
|
15
|
+
if (!ipc) {
|
|
16
|
+
return ipcOutput;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const isVerbose = shouldLogIpc(verboseInfo);
|
|
20
|
+
const buffer = getFdSpecificValue(bufferArray, 'ipc');
|
|
21
|
+
const maxBuffer = getFdSpecificValue(maxBufferArray, 'ipc');
|
|
22
|
+
|
|
23
|
+
for await (const message of loopOnMessages({
|
|
24
|
+
anyProcess: subprocess,
|
|
25
|
+
channel: subprocess.channel,
|
|
26
|
+
isSubprocess: false,
|
|
27
|
+
ipc,
|
|
28
|
+
shouldAwait: false,
|
|
29
|
+
reference: true,
|
|
30
|
+
})) {
|
|
31
|
+
if (buffer) {
|
|
32
|
+
checkIpcMaxBuffer(subprocess, ipcOutput, maxBuffer);
|
|
33
|
+
ipcOutput.push(message);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
if (isVerbose) {
|
|
37
|
+
logIpcOutput(message, verboseInfo);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
return ipcOutput;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export const getBufferedIpcOutput = async (ipcOutputPromise, ipcOutput) => {
|
|
45
|
+
await Promise.allSettled([ipcOutputPromise]);
|
|
46
|
+
return ipcOutput;
|
|
47
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import {EventEmitter} from 'node:events';
|
|
2
|
+
import {onMessage, onDisconnect} from './incoming.js';
|
|
3
|
+
import {undoAddedReferences} from './reference.js';
|
|
4
|
+
|
|
5
|
+
// Forward the `message` and `disconnect` events from the process and subprocess to a proxy emitter.
|
|
6
|
+
// This prevents the `error` event from stopping IPC.
|
|
7
|
+
// This also allows debouncing the `message` event.
|
|
8
|
+
export const getIpcEmitter = (anyProcess, channel, isSubprocess) => {
|
|
9
|
+
if (IPC_EMITTERS.has(anyProcess)) {
|
|
10
|
+
return IPC_EMITTERS.get(anyProcess);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// Use an `EventEmitter`, like the `process` that is being proxied
|
|
14
|
+
// eslint-disable-next-line unicorn/prefer-event-target
|
|
15
|
+
const ipcEmitter = new EventEmitter();
|
|
16
|
+
ipcEmitter.connected = true;
|
|
17
|
+
IPC_EMITTERS.set(anyProcess, ipcEmitter);
|
|
18
|
+
forwardEvents({
|
|
19
|
+
ipcEmitter,
|
|
20
|
+
anyProcess,
|
|
21
|
+
channel,
|
|
22
|
+
isSubprocess,
|
|
23
|
+
});
|
|
24
|
+
return ipcEmitter;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
const IPC_EMITTERS = new WeakMap();
|
|
28
|
+
|
|
29
|
+
// The `message` and `disconnect` events are buffered in the subprocess until the first listener is setup.
|
|
30
|
+
// However, unbuffering happens after one tick, so this give enough time for the caller to setup the listener on the proxy emitter first.
|
|
31
|
+
// See https://github.com/nodejs/node/blob/2aaeaa863c35befa2ebaa98fb7737ec84df4d8e9/lib/internal/child_process.js#L721
|
|
32
|
+
const forwardEvents = ({ipcEmitter, anyProcess, channel, isSubprocess}) => {
|
|
33
|
+
const boundOnMessage = onMessage.bind(undefined, {
|
|
34
|
+
anyProcess,
|
|
35
|
+
channel,
|
|
36
|
+
isSubprocess,
|
|
37
|
+
ipcEmitter,
|
|
38
|
+
});
|
|
39
|
+
anyProcess.on('message', boundOnMessage);
|
|
40
|
+
anyProcess.once('disconnect', onDisconnect.bind(undefined, {
|
|
41
|
+
anyProcess,
|
|
42
|
+
channel,
|
|
43
|
+
isSubprocess,
|
|
44
|
+
ipcEmitter,
|
|
45
|
+
boundOnMessage,
|
|
46
|
+
}));
|
|
47
|
+
undoAddedReferences(channel, isSubprocess);
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
// Check whether there might still be some `message` events to receive
|
|
51
|
+
export const isConnected = anyProcess => {
|
|
52
|
+
const ipcEmitter = IPC_EMITTERS.get(anyProcess);
|
|
53
|
+
return ipcEmitter === undefined
|
|
54
|
+
? anyProcess.channel !== null
|
|
55
|
+
: ipcEmitter.connected;
|
|
56
|
+
};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import {once, on} from 'node:events';
|
|
2
|
+
import {validateIpcMethod, disconnect, getStrictResponseError} from './validation.js';
|
|
3
|
+
import {getIpcEmitter, isConnected} from './forward.js';
|
|
4
|
+
import {addReference, removeReference} from './reference.js';
|
|
5
|
+
|
|
6
|
+
// Like `[sub]process.on('message')` but promise-based
|
|
7
|
+
export const getEachMessage = ({anyProcess, channel, isSubprocess, ipc}, {reference = true} = {}) => loopOnMessages({
|
|
8
|
+
anyProcess,
|
|
9
|
+
channel,
|
|
10
|
+
isSubprocess,
|
|
11
|
+
ipc,
|
|
12
|
+
shouldAwait: !isSubprocess,
|
|
13
|
+
reference,
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
// Same but used internally
|
|
17
|
+
export const loopOnMessages = ({anyProcess, channel, isSubprocess, ipc, shouldAwait, reference}) => {
|
|
18
|
+
validateIpcMethod({
|
|
19
|
+
methodName: 'getEachMessage',
|
|
20
|
+
isSubprocess,
|
|
21
|
+
ipc,
|
|
22
|
+
isConnected: isConnected(anyProcess),
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
addReference(channel, reference);
|
|
26
|
+
const ipcEmitter = getIpcEmitter(anyProcess, channel, isSubprocess);
|
|
27
|
+
const controller = new AbortController();
|
|
28
|
+
const state = {};
|
|
29
|
+
stopOnDisconnect(anyProcess, ipcEmitter, controller);
|
|
30
|
+
abortOnStrictError({
|
|
31
|
+
ipcEmitter,
|
|
32
|
+
isSubprocess,
|
|
33
|
+
controller,
|
|
34
|
+
state,
|
|
35
|
+
});
|
|
36
|
+
return iterateOnMessages({
|
|
37
|
+
anyProcess,
|
|
38
|
+
channel,
|
|
39
|
+
ipcEmitter,
|
|
40
|
+
isSubprocess,
|
|
41
|
+
shouldAwait,
|
|
42
|
+
controller,
|
|
43
|
+
state,
|
|
44
|
+
reference,
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
const stopOnDisconnect = async (anyProcess, ipcEmitter, controller) => {
|
|
49
|
+
try {
|
|
50
|
+
await once(ipcEmitter, 'disconnect', {signal: controller.signal});
|
|
51
|
+
controller.abort();
|
|
52
|
+
} catch {}
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
const abortOnStrictError = async ({ipcEmitter, isSubprocess, controller, state}) => {
|
|
56
|
+
try {
|
|
57
|
+
const [error] = await once(ipcEmitter, 'strict:error', {signal: controller.signal});
|
|
58
|
+
state.error = getStrictResponseError(error, isSubprocess);
|
|
59
|
+
controller.abort();
|
|
60
|
+
} catch {}
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
const iterateOnMessages = async function * ({anyProcess, channel, ipcEmitter, isSubprocess, shouldAwait, controller, state, reference}) {
|
|
64
|
+
try {
|
|
65
|
+
for await (const [message] of on(ipcEmitter, 'message', {signal: controller.signal})) {
|
|
66
|
+
throwIfStrictError(state);
|
|
67
|
+
yield message;
|
|
68
|
+
}
|
|
69
|
+
} catch {
|
|
70
|
+
throwIfStrictError(state);
|
|
71
|
+
} finally {
|
|
72
|
+
controller.abort();
|
|
73
|
+
removeReference(channel, reference);
|
|
74
|
+
|
|
75
|
+
if (!isSubprocess) {
|
|
76
|
+
disconnect(anyProcess);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
if (shouldAwait) {
|
|
80
|
+
await anyProcess;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
const throwIfStrictError = ({error}) => {
|
|
86
|
+
if (error) {
|
|
87
|
+
throw error;
|
|
88
|
+
}
|
|
89
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import {once, on} from 'node:events';
|
|
2
|
+
import {
|
|
3
|
+
validateIpcMethod,
|
|
4
|
+
throwOnEarlyDisconnect,
|
|
5
|
+
disconnect,
|
|
6
|
+
getStrictResponseError,
|
|
7
|
+
} from './validation.js';
|
|
8
|
+
import {getIpcEmitter, isConnected} from './forward.js';
|
|
9
|
+
import {addReference, removeReference} from './reference.js';
|
|
10
|
+
|
|
11
|
+
// Like `[sub]process.once('message')` but promise-based
|
|
12
|
+
export const getOneMessage = ({anyProcess, channel, isSubprocess, ipc}, {reference = true, filter} = {}) => {
|
|
13
|
+
validateIpcMethod({
|
|
14
|
+
methodName: 'getOneMessage',
|
|
15
|
+
isSubprocess,
|
|
16
|
+
ipc,
|
|
17
|
+
isConnected: isConnected(anyProcess),
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
return getOneMessageAsync({
|
|
21
|
+
anyProcess,
|
|
22
|
+
channel,
|
|
23
|
+
isSubprocess,
|
|
24
|
+
filter,
|
|
25
|
+
reference,
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
const getOneMessageAsync = async ({anyProcess, channel, isSubprocess, filter, reference}) => {
|
|
30
|
+
addReference(channel, reference);
|
|
31
|
+
const ipcEmitter = getIpcEmitter(anyProcess, channel, isSubprocess);
|
|
32
|
+
const controller = new AbortController();
|
|
33
|
+
try {
|
|
34
|
+
return await Promise.race([
|
|
35
|
+
getMessage(ipcEmitter, filter, controller),
|
|
36
|
+
throwOnDisconnect(ipcEmitter, isSubprocess, controller),
|
|
37
|
+
throwOnStrictError(ipcEmitter, isSubprocess, controller),
|
|
38
|
+
]);
|
|
39
|
+
} catch (error) {
|
|
40
|
+
disconnect(anyProcess);
|
|
41
|
+
throw error;
|
|
42
|
+
} finally {
|
|
43
|
+
controller.abort();
|
|
44
|
+
removeReference(channel, reference);
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
const getMessage = async (ipcEmitter, filter, {signal}) => {
|
|
49
|
+
if (filter === undefined) {
|
|
50
|
+
const [message] = await once(ipcEmitter, 'message', {signal});
|
|
51
|
+
return message;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
for await (const [message] of on(ipcEmitter, 'message', {signal})) {
|
|
55
|
+
if (filter(message)) {
|
|
56
|
+
return message;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
const throwOnDisconnect = async (ipcEmitter, isSubprocess, {signal}) => {
|
|
62
|
+
await once(ipcEmitter, 'disconnect', {signal});
|
|
63
|
+
throwOnEarlyDisconnect(isSubprocess);
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
const throwOnStrictError = async (ipcEmitter, isSubprocess, {signal}) => {
|
|
67
|
+
const [error] = await once(ipcEmitter, 'strict:error', {signal});
|
|
68
|
+
throw getStrictResponseError(error, isSubprocess);
|
|
69
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import {scheduler} from 'node:timers/promises';
|
|
2
|
+
import {sendOneMessage} from './send.js';
|
|
3
|
+
import {getIpcEmitter} from './forward.js';
|
|
4
|
+
import {validateConnection, getAbortDisconnectError, throwOnMissingParent} from './validation.js';
|
|
5
|
+
|
|
6
|
+
// Send an IPC message so the subprocess performs a graceful termination
|
|
7
|
+
export const sendAbort = (subprocess, message) => {
|
|
8
|
+
const methodName = 'cancelSignal';
|
|
9
|
+
validateConnection(methodName, false, subprocess.connected);
|
|
10
|
+
return sendOneMessage({
|
|
11
|
+
anyProcess: subprocess,
|
|
12
|
+
methodName,
|
|
13
|
+
isSubprocess: false,
|
|
14
|
+
wrappedMessage: {type: GRACEFUL_CANCEL_TYPE, message},
|
|
15
|
+
message,
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
// When the signal is being used, start listening for incoming messages.
|
|
20
|
+
// Unbuffering messages takes one microtask to complete, so this must be async.
|
|
21
|
+
export const getCancelSignal = async ({anyProcess, channel, isSubprocess, ipc}) => {
|
|
22
|
+
await startIpc({
|
|
23
|
+
anyProcess,
|
|
24
|
+
channel,
|
|
25
|
+
isSubprocess,
|
|
26
|
+
ipc,
|
|
27
|
+
});
|
|
28
|
+
return cancelController.signal;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
const startIpc = async ({anyProcess, channel, isSubprocess, ipc}) => {
|
|
32
|
+
if (cancelListening) {
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
cancelListening = true;
|
|
37
|
+
|
|
38
|
+
if (!ipc) {
|
|
39
|
+
throwOnMissingParent();
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
if (channel === null) {
|
|
44
|
+
abortOnDisconnect();
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
getIpcEmitter(anyProcess, channel, isSubprocess);
|
|
49
|
+
await scheduler.yield();
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
let cancelListening = false;
|
|
53
|
+
|
|
54
|
+
// Reception of IPC message to perform a graceful termination
|
|
55
|
+
export const handleAbort = wrappedMessage => {
|
|
56
|
+
if (wrappedMessage?.type !== GRACEFUL_CANCEL_TYPE) {
|
|
57
|
+
return false;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
cancelController.abort(wrappedMessage.message);
|
|
61
|
+
return true;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
const GRACEFUL_CANCEL_TYPE = 'execa:ipc:cancel';
|
|
65
|
+
|
|
66
|
+
// When the current process disconnects early, the subprocess `cancelSignal` is aborted.
|
|
67
|
+
// Otherwise, the signal would never be able to be aborted later on.
|
|
68
|
+
export const abortOnDisconnect = () => {
|
|
69
|
+
cancelController.abort(getAbortDisconnectError());
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
const cancelController = new AbortController();
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import {once} from 'node:events';
|
|
2
|
+
import {scheduler} from 'node:timers/promises';
|
|
3
|
+
import {waitForOutgoingMessages} from './outgoing.js';
|
|
4
|
+
import {redoAddedReferences} from './reference.js';
|
|
5
|
+
import {handleStrictRequest, handleStrictResponse} from './strict.js';
|
|
6
|
+
import {handleAbort, abortOnDisconnect} from './graceful.js';
|
|
7
|
+
|
|
8
|
+
// By default, Node.js buffers `message` events.
|
|
9
|
+
// - Buffering happens when there is a `message` event is emitted but there is no handler.
|
|
10
|
+
// - As soon as a `message` event handler is set, all buffered `message` events are emitted, emptying the buffer.
|
|
11
|
+
// - This happens both in the current process and the subprocess.
|
|
12
|
+
// - See https://github.com/nodejs/node/blob/501546e8f37059cd577041e23941b640d0d4d406/lib/internal/child_process.js#L719
|
|
13
|
+
// This is helpful. Notably, this allows sending messages to a subprocess that's still initializing.
|
|
14
|
+
// However, it has several problems.
|
|
15
|
+
// - This works with `events.on()` but not `events.once()` since all buffered messages are emitted at once.
|
|
16
|
+
// For example, users cannot call `await getOneMessage()`/`getEachMessage()` multiple times in a row.
|
|
17
|
+
// - When a user intentionally starts listening to `message` at a specific point in time, past `message` events are replayed, which might be unexpected.
|
|
18
|
+
// - Buffering is unlimited, which might lead to an out-of-memory crash.
|
|
19
|
+
// - This does not work well with multiple consumers.
|
|
20
|
+
// For example, Execa consumes events with both `result.ipcOutput` and manual IPC calls like `getOneMessage()`.
|
|
21
|
+
// Since `result.ipcOutput` reads all incoming messages, no buffering happens for manual IPC calls.
|
|
22
|
+
// - Forgetting to setup a `message` listener, or setting it up too late, is a programming mistake.
|
|
23
|
+
// The default behavior does not allow users to realize they made that mistake.
|
|
24
|
+
// To solve those problems, instead of buffering messages, we debounce them.
|
|
25
|
+
// The `message` event so it is emitted at most once per macrotask.
|
|
26
|
+
export const onMessage = async ({anyProcess, channel, isSubprocess, ipcEmitter}, wrappedMessage) => {
|
|
27
|
+
if (handleStrictResponse(wrappedMessage) || handleAbort(wrappedMessage)) {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
if (!INCOMING_MESSAGES.has(anyProcess)) {
|
|
32
|
+
INCOMING_MESSAGES.set(anyProcess, []);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
const incomingMessages = INCOMING_MESSAGES.get(anyProcess);
|
|
36
|
+
incomingMessages.push(wrappedMessage);
|
|
37
|
+
|
|
38
|
+
if (incomingMessages.length > 1) {
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
while (incomingMessages.length > 0) {
|
|
43
|
+
// eslint-disable-next-line no-await-in-loop
|
|
44
|
+
await waitForOutgoingMessages(anyProcess, ipcEmitter, wrappedMessage);
|
|
45
|
+
// eslint-disable-next-line no-await-in-loop
|
|
46
|
+
await scheduler.yield();
|
|
47
|
+
|
|
48
|
+
// eslint-disable-next-line no-await-in-loop
|
|
49
|
+
const message = await handleStrictRequest({
|
|
50
|
+
wrappedMessage: incomingMessages[0],
|
|
51
|
+
anyProcess,
|
|
52
|
+
channel,
|
|
53
|
+
isSubprocess,
|
|
54
|
+
ipcEmitter,
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
incomingMessages.shift();
|
|
58
|
+
ipcEmitter.emit('message', message);
|
|
59
|
+
ipcEmitter.emit('message:done');
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
// If the `message` event is currently debounced, the `disconnect` event must wait for it
|
|
64
|
+
export const onDisconnect = async ({anyProcess, channel, isSubprocess, ipcEmitter, boundOnMessage}) => {
|
|
65
|
+
abortOnDisconnect();
|
|
66
|
+
|
|
67
|
+
const incomingMessages = INCOMING_MESSAGES.get(anyProcess);
|
|
68
|
+
while (incomingMessages?.length > 0) {
|
|
69
|
+
// eslint-disable-next-line no-await-in-loop
|
|
70
|
+
await once(ipcEmitter, 'message:done');
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
anyProcess.removeListener('message', boundOnMessage);
|
|
74
|
+
redoAddedReferences(channel, isSubprocess);
|
|
75
|
+
ipcEmitter.connected = false;
|
|
76
|
+
ipcEmitter.emit('disconnect');
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
const INCOMING_MESSAGES = new WeakMap();
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import {serialize} from 'node:v8';
|
|
2
|
+
|
|
3
|
+
// Validate the `ipcInput` option
|
|
4
|
+
export const validateIpcInputOption = ({ipcInput, ipc, serialization}) => {
|
|
5
|
+
if (ipcInput === undefined) {
|
|
6
|
+
return;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
if (!ipc) {
|
|
10
|
+
throw new Error('The `ipcInput` option cannot be set unless the `ipc` option is `true`.');
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
validateIpcInput[serialization](ipcInput);
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
const validateAdvancedInput = ipcInput => {
|
|
17
|
+
try {
|
|
18
|
+
serialize(ipcInput);
|
|
19
|
+
} catch (error) {
|
|
20
|
+
throw new Error('The `ipcInput` option is not serializable with a structured clone.', {cause: error});
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
const validateJsonInput = ipcInput => {
|
|
25
|
+
try {
|
|
26
|
+
JSON.stringify(ipcInput);
|
|
27
|
+
} catch (error) {
|
|
28
|
+
throw new Error('The `ipcInput` option is not serializable with JSON.', {cause: error});
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
const validateIpcInput = {
|
|
33
|
+
advanced: validateAdvancedInput,
|
|
34
|
+
json: validateJsonInput,
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
// When the `ipcInput` option is set, it is sent as an initial IPC message to the subprocess
|
|
38
|
+
export const sendIpcInput = async (subprocess, ipcInput) => {
|
|
39
|
+
if (ipcInput === undefined) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
await subprocess.sendMessage(ipcInput);
|
|
44
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import process from 'node:process';
|
|
2
|
+
import {sendMessage} from './send.js';
|
|
3
|
+
import {getOneMessage} from './get-one.js';
|
|
4
|
+
import {getEachMessage} from './get-each.js';
|
|
5
|
+
import {getCancelSignal} from './graceful.js';
|
|
6
|
+
|
|
7
|
+
// Add promise-based IPC methods in current process
|
|
8
|
+
export const addIpcMethods = (subprocess, {ipc}) => {
|
|
9
|
+
Object.assign(subprocess, getIpcMethods(subprocess, false, ipc));
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
// Get promise-based IPC in the subprocess
|
|
13
|
+
export const getIpcExport = () => {
|
|
14
|
+
const anyProcess = process;
|
|
15
|
+
const isSubprocess = true;
|
|
16
|
+
const ipc = process.channel !== undefined;
|
|
17
|
+
|
|
18
|
+
return {
|
|
19
|
+
...getIpcMethods(anyProcess, isSubprocess, ipc),
|
|
20
|
+
getCancelSignal: getCancelSignal.bind(undefined, {
|
|
21
|
+
anyProcess,
|
|
22
|
+
channel: anyProcess.channel,
|
|
23
|
+
isSubprocess,
|
|
24
|
+
ipc,
|
|
25
|
+
}),
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
// Retrieve the `ipc` shared by both the current process and the subprocess
|
|
30
|
+
const getIpcMethods = (anyProcess, isSubprocess, ipc) => ({
|
|
31
|
+
sendMessage: sendMessage.bind(undefined, {
|
|
32
|
+
anyProcess,
|
|
33
|
+
channel: anyProcess.channel,
|
|
34
|
+
isSubprocess,
|
|
35
|
+
ipc,
|
|
36
|
+
}),
|
|
37
|
+
getOneMessage: getOneMessage.bind(undefined, {
|
|
38
|
+
anyProcess,
|
|
39
|
+
channel: anyProcess.channel,
|
|
40
|
+
isSubprocess,
|
|
41
|
+
ipc,
|
|
42
|
+
}),
|
|
43
|
+
getEachMessage: getEachMessage.bind(undefined, {
|
|
44
|
+
anyProcess,
|
|
45
|
+
channel: anyProcess.channel,
|
|
46
|
+
isSubprocess,
|
|
47
|
+
ipc,
|
|
48
|
+
}),
|
|
49
|
+
});
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import {createDeferred} from '../utils/deferred.js';
|
|
2
|
+
import {getFdSpecificValue} from '../arguments/specific.js';
|
|
3
|
+
import {SUBPROCESS_OPTIONS} from '../arguments/fd-options.js';
|
|
4
|
+
import {validateStrictDeadlock} from './strict.js';
|
|
5
|
+
|
|
6
|
+
// When `sendMessage()` is ongoing, any `message` being received waits before being emitted.
|
|
7
|
+
// This allows calling one or multiple `await sendMessage()` followed by `await getOneMessage()`/`await getEachMessage()`.
|
|
8
|
+
// Without running into a race condition when the other process sends a response too fast, before the current process set up a listener.
|
|
9
|
+
export const startSendMessage = (anyProcess, wrappedMessage, strict) => {
|
|
10
|
+
if (!OUTGOING_MESSAGES.has(anyProcess)) {
|
|
11
|
+
OUTGOING_MESSAGES.set(anyProcess, new Set());
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const outgoingMessages = OUTGOING_MESSAGES.get(anyProcess);
|
|
15
|
+
const onMessageSent = createDeferred();
|
|
16
|
+
const id = strict ? wrappedMessage.id : undefined;
|
|
17
|
+
const outgoingMessage = {onMessageSent, id};
|
|
18
|
+
outgoingMessages.add(outgoingMessage);
|
|
19
|
+
return {outgoingMessages, outgoingMessage};
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export const endSendMessage = ({outgoingMessages, outgoingMessage}) => {
|
|
23
|
+
outgoingMessages.delete(outgoingMessage);
|
|
24
|
+
outgoingMessage.onMessageSent.resolve();
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
// Await while `sendMessage()` is ongoing, unless there is already a `message` listener
|
|
28
|
+
export const waitForOutgoingMessages = async (anyProcess, ipcEmitter, wrappedMessage) => {
|
|
29
|
+
while (!hasMessageListeners(anyProcess, ipcEmitter) && OUTGOING_MESSAGES.get(anyProcess)?.size > 0) {
|
|
30
|
+
const outgoingMessages = [...OUTGOING_MESSAGES.get(anyProcess)];
|
|
31
|
+
validateStrictDeadlock(outgoingMessages, wrappedMessage);
|
|
32
|
+
// eslint-disable-next-line no-await-in-loop
|
|
33
|
+
await Promise.all(outgoingMessages.map(({onMessageSent}) => onMessageSent));
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
const OUTGOING_MESSAGES = new WeakMap();
|
|
38
|
+
|
|
39
|
+
// Whether any `message` listener is setup
|
|
40
|
+
export const hasMessageListeners = (anyProcess, ipcEmitter) => ipcEmitter.listenerCount('message') > getMinListenerCount(anyProcess);
|
|
41
|
+
|
|
42
|
+
// When `buffer` is `false`, we set up a `message` listener that should be ignored.
|
|
43
|
+
// That listener is only meant to intercept `strict` acknowledgement responses.
|
|
44
|
+
const getMinListenerCount = anyProcess => SUBPROCESS_OPTIONS.has(anyProcess)
|
|
45
|
+
&& !getFdSpecificValue(SUBPROCESS_OPTIONS.get(anyProcess).options.buffer, 'ipc')
|
|
46
|
+
? 1
|
|
47
|
+
: 0;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// By default, Node.js keeps the subprocess alive while it has a `message` or `disconnect` listener.
|
|
2
|
+
// We replicate the same logic for the events that we proxy.
|
|
3
|
+
// This ensures the subprocess is kept alive while `getOneMessage()` and `getEachMessage()` are ongoing.
|
|
4
|
+
// This is not a problem with `sendMessage()` since Node.js handles that method automatically.
|
|
5
|
+
// We do not use `anyProcess.channel.ref()` since this would prevent the automatic `.channel.refCounted()` Node.js is doing.
|
|
6
|
+
// We keep a reference to `anyProcess.channel` since it might be `null` while `getOneMessage()` or `getEachMessage()` is still processing debounced messages.
|
|
7
|
+
// See https://github.com/nodejs/node/blob/2aaeaa863c35befa2ebaa98fb7737ec84df4d8e9/lib/internal/child_process.js#L547
|
|
8
|
+
export const addReference = (channel, reference) => {
|
|
9
|
+
if (reference) {
|
|
10
|
+
addReferenceCount(channel);
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
const addReferenceCount = channel => {
|
|
15
|
+
channel.refCounted();
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export const removeReference = (channel, reference) => {
|
|
19
|
+
if (reference) {
|
|
20
|
+
removeReferenceCount(channel);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
const removeReferenceCount = channel => {
|
|
25
|
+
channel.unrefCounted();
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
// To proxy events, we setup some global listeners on the `message` and `disconnect` events.
|
|
29
|
+
// Those should not keep the subprocess alive, so we remove the automatic counting that Node.js is doing.
|
|
30
|
+
// See https://github.com/nodejs/node/blob/1b965270a9c273d4cf70e8808e9d28b9ada7844f/lib/child_process.js#L180
|
|
31
|
+
export const undoAddedReferences = (channel, isSubprocess) => {
|
|
32
|
+
if (isSubprocess) {
|
|
33
|
+
removeReferenceCount(channel);
|
|
34
|
+
removeReferenceCount(channel);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
// Reverse it during `disconnect`
|
|
39
|
+
export const redoAddedReferences = (channel, isSubprocess) => {
|
|
40
|
+
if (isSubprocess) {
|
|
41
|
+
addReferenceCount(channel);
|
|
42
|
+
addReferenceCount(channel);
|
|
43
|
+
}
|
|
44
|
+
};
|