@dotpi/tools 2.6.1 → 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/index.js +6 -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 +5 -1
- 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 +2 -2
- package/dotpi_root/dist/@dotpi/module-module/package.json +3 -4
- package/dotpi_root/etc/dotpi_modules.json +2 -1
- package/dotpi_root/share/dotpi_functions/dotpi_functions_audio_device.bash +25 -18
- package/package.json +16 -11
- package/.editorbackup/NOTES.md~ +0 -974
- package/.editorbackup/PIPEWIRE.md~ +0 -42
- package/.editorbackup/README.md~ +0 -335
- 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/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 -48
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import {Writable} from 'node:stream';
|
|
2
|
+
import {callbackify} from 'node:util';
|
|
3
|
+
import {getToStream} from '../arguments/fd-options.js';
|
|
4
|
+
import {addConcurrentStream, waitForConcurrentStreams} from './concurrent.js';
|
|
5
|
+
import {
|
|
6
|
+
safeWaitForSubprocessStdout,
|
|
7
|
+
waitForSubprocessStdin,
|
|
8
|
+
waitForSubprocess,
|
|
9
|
+
destroyOtherStream,
|
|
10
|
+
} from './shared.js';
|
|
11
|
+
|
|
12
|
+
// Create a `Writable` stream that forwards to `stdin` and awaits the subprocess
|
|
13
|
+
export const createWritable = ({subprocess, concurrentStreams}, {to} = {}) => {
|
|
14
|
+
const {subprocessStdin, waitWritableFinal, waitWritableDestroy} = getSubprocessStdin(subprocess, to, concurrentStreams);
|
|
15
|
+
const writable = new Writable({
|
|
16
|
+
...getWritableMethods(subprocessStdin, subprocess, waitWritableFinal),
|
|
17
|
+
destroy: callbackify(onWritableDestroy.bind(undefined, {
|
|
18
|
+
subprocessStdin,
|
|
19
|
+
subprocess,
|
|
20
|
+
waitWritableFinal,
|
|
21
|
+
waitWritableDestroy,
|
|
22
|
+
})),
|
|
23
|
+
highWaterMark: subprocessStdin.writableHighWaterMark,
|
|
24
|
+
objectMode: subprocessStdin.writableObjectMode,
|
|
25
|
+
});
|
|
26
|
+
onStdinFinished(subprocessStdin, writable);
|
|
27
|
+
return writable;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
// Retrieve `stdin` (or other stream depending on `to`)
|
|
31
|
+
export const getSubprocessStdin = (subprocess, to, concurrentStreams) => {
|
|
32
|
+
const subprocessStdin = getToStream(subprocess, to);
|
|
33
|
+
const waitWritableFinal = addConcurrentStream(concurrentStreams, subprocessStdin, 'writableFinal');
|
|
34
|
+
const waitWritableDestroy = addConcurrentStream(concurrentStreams, subprocessStdin, 'writableDestroy');
|
|
35
|
+
return {subprocessStdin, waitWritableFinal, waitWritableDestroy};
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export const getWritableMethods = (subprocessStdin, subprocess, waitWritableFinal) => ({
|
|
39
|
+
write: onWrite.bind(undefined, subprocessStdin),
|
|
40
|
+
final: callbackify(onWritableFinal.bind(undefined, subprocessStdin, subprocess, waitWritableFinal)),
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
// Forwards data from `writable` to `stdin`
|
|
44
|
+
const onWrite = (subprocessStdin, chunk, encoding, done) => {
|
|
45
|
+
if (subprocessStdin.write(chunk, encoding)) {
|
|
46
|
+
done();
|
|
47
|
+
} else {
|
|
48
|
+
subprocessStdin.once('drain', done);
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
// Ensures that the writable `final` and readable `end` events awaits the subprocess.
|
|
53
|
+
// Like this, any subprocess failure is propagated as a stream `error` event, instead of being lost.
|
|
54
|
+
// The user does not need to `await` the subprocess anymore, but now needs to await the stream completion or error.
|
|
55
|
+
// When multiple writables are targeting the same stream, they wait for each other, unless the subprocess ends first.
|
|
56
|
+
const onWritableFinal = async (subprocessStdin, subprocess, waitWritableFinal) => {
|
|
57
|
+
if (await waitForConcurrentStreams(waitWritableFinal, subprocess)) {
|
|
58
|
+
if (subprocessStdin.writable) {
|
|
59
|
+
subprocessStdin.end();
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
await subprocess;
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
// When `subprocess.stdin` ends/aborts/errors, do the same on `writable`.
|
|
67
|
+
export const onStdinFinished = async (subprocessStdin, writable, subprocessStdout) => {
|
|
68
|
+
try {
|
|
69
|
+
await waitForSubprocessStdin(subprocessStdin);
|
|
70
|
+
if (writable.writable) {
|
|
71
|
+
writable.end();
|
|
72
|
+
}
|
|
73
|
+
} catch (error) {
|
|
74
|
+
await safeWaitForSubprocessStdout(subprocessStdout);
|
|
75
|
+
destroyOtherWritable(writable, error);
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
// When `writable` aborts/errors, do the same on `subprocess.stdin`
|
|
80
|
+
export const onWritableDestroy = async ({subprocessStdin, subprocess, waitWritableFinal, waitWritableDestroy}, error) => {
|
|
81
|
+
await waitForConcurrentStreams(waitWritableFinal, subprocess);
|
|
82
|
+
if (await waitForConcurrentStreams(waitWritableDestroy, subprocess)) {
|
|
83
|
+
destroyOtherWritable(subprocessStdin, error);
|
|
84
|
+
await waitForSubprocess(subprocess, error);
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
const destroyOtherWritable = (stream, error) => {
|
|
89
|
+
destroyOtherStream(stream, stream.writable, error);
|
|
90
|
+
};
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import {setImmediate} from 'node:timers/promises';
|
|
2
|
+
import getStream, {getStreamAsArrayBuffer, getStreamAsArray} from 'get-stream';
|
|
3
|
+
import {isArrayBuffer} from '../utils/uint-array.js';
|
|
4
|
+
import {shouldLogOutput, logLines} from '../verbose/output.js';
|
|
5
|
+
import {iterateForResult} from './iterate.js';
|
|
6
|
+
import {handleMaxBuffer} from './max-buffer.js';
|
|
7
|
+
import {getStripFinalNewline} from './strip-newline.js';
|
|
8
|
+
|
|
9
|
+
// Retrieve `result.stdout|stderr|all|stdio[*]`
|
|
10
|
+
export const getStreamOutput = async ({stream, onStreamEnd, fdNumber, encoding, buffer, maxBuffer, lines, allMixed, stripFinalNewline, verboseInfo, streamInfo}) => {
|
|
11
|
+
const logPromise = logOutputAsync({
|
|
12
|
+
stream,
|
|
13
|
+
onStreamEnd,
|
|
14
|
+
fdNumber,
|
|
15
|
+
encoding,
|
|
16
|
+
allMixed,
|
|
17
|
+
verboseInfo,
|
|
18
|
+
streamInfo,
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
if (!buffer) {
|
|
22
|
+
await Promise.all([resumeStream(stream), logPromise]);
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const stripFinalNewlineValue = getStripFinalNewline(stripFinalNewline, fdNumber);
|
|
27
|
+
const iterable = iterateForResult({
|
|
28
|
+
stream,
|
|
29
|
+
onStreamEnd,
|
|
30
|
+
lines,
|
|
31
|
+
encoding,
|
|
32
|
+
stripFinalNewline: stripFinalNewlineValue,
|
|
33
|
+
allMixed,
|
|
34
|
+
});
|
|
35
|
+
const [output] = await Promise.all([
|
|
36
|
+
getStreamContents({
|
|
37
|
+
stream,
|
|
38
|
+
iterable,
|
|
39
|
+
fdNumber,
|
|
40
|
+
encoding,
|
|
41
|
+
maxBuffer,
|
|
42
|
+
lines,
|
|
43
|
+
}),
|
|
44
|
+
logPromise,
|
|
45
|
+
]);
|
|
46
|
+
return output;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
const logOutputAsync = async ({stream, onStreamEnd, fdNumber, encoding, allMixed, verboseInfo, streamInfo: {fileDescriptors}}) => {
|
|
50
|
+
if (!shouldLogOutput({
|
|
51
|
+
stdioItems: fileDescriptors[fdNumber]?.stdioItems,
|
|
52
|
+
encoding,
|
|
53
|
+
verboseInfo,
|
|
54
|
+
fdNumber,
|
|
55
|
+
})) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
const linesIterable = iterateForResult({
|
|
60
|
+
stream,
|
|
61
|
+
onStreamEnd,
|
|
62
|
+
lines: true,
|
|
63
|
+
encoding,
|
|
64
|
+
stripFinalNewline: true,
|
|
65
|
+
allMixed,
|
|
66
|
+
});
|
|
67
|
+
await logLines(linesIterable, stream, fdNumber, verboseInfo);
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
// When using `buffer: false`, users need to read `subprocess.stdout|stderr|all` right away
|
|
71
|
+
// See https://github.com/sindresorhus/execa/issues/730 and https://github.com/sindresorhus/execa/pull/729#discussion_r1465496310
|
|
72
|
+
const resumeStream = async stream => {
|
|
73
|
+
await setImmediate();
|
|
74
|
+
if (stream.readableFlowing === null) {
|
|
75
|
+
stream.resume();
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
const getStreamContents = async ({stream, stream: {readableObjectMode}, iterable, fdNumber, encoding, maxBuffer, lines}) => {
|
|
80
|
+
try {
|
|
81
|
+
if (readableObjectMode || lines) {
|
|
82
|
+
return await getStreamAsArray(iterable, {maxBuffer});
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
if (encoding === 'buffer') {
|
|
86
|
+
return new Uint8Array(await getStreamAsArrayBuffer(iterable, {maxBuffer}));
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
return await getStream(iterable, {maxBuffer});
|
|
90
|
+
} catch (error) {
|
|
91
|
+
return handleBufferedData(handleMaxBuffer({
|
|
92
|
+
error,
|
|
93
|
+
stream,
|
|
94
|
+
readableObjectMode,
|
|
95
|
+
lines,
|
|
96
|
+
encoding,
|
|
97
|
+
fdNumber,
|
|
98
|
+
}));
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
// On failure, `result.stdout|stderr|all` should contain the currently buffered stream
|
|
103
|
+
// They are automatically closed and flushed by Node.js when the subprocess exits
|
|
104
|
+
// When `buffer` is `false`, `streamPromise` is `undefined` and there is no buffered data to retrieve
|
|
105
|
+
export const getBufferedData = async streamPromise => {
|
|
106
|
+
try {
|
|
107
|
+
return await streamPromise;
|
|
108
|
+
} catch (error) {
|
|
109
|
+
return handleBufferedData(error);
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
// Ensure we are returning Uint8Arrays when using `encoding: 'buffer'`
|
|
114
|
+
const handleBufferedData = ({bufferedData}) => isArrayBuffer(bufferedData)
|
|
115
|
+
? new Uint8Array(bufferedData)
|
|
116
|
+
: bufferedData;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import {runGeneratorsSync} from '../transform/generator.js';
|
|
2
|
+
import {joinToUint8Array, isUint8Array} from '../utils/uint-array.js';
|
|
3
|
+
import {TYPE_TO_MESSAGE} from '../stdio/type.js';
|
|
4
|
+
|
|
5
|
+
// Apply `stdin`/`input`/`inputFile` options, before spawning, in sync mode, by converting it to the `input` option
|
|
6
|
+
export const addInputOptionsSync = (fileDescriptors, options) => {
|
|
7
|
+
for (const fdNumber of getInputFdNumbers(fileDescriptors)) {
|
|
8
|
+
addInputOptionSync(fileDescriptors, fdNumber, options);
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const getInputFdNumbers = fileDescriptors => new Set(Object.entries(fileDescriptors)
|
|
13
|
+
.filter(([, {direction}]) => direction === 'input')
|
|
14
|
+
.map(([fdNumber]) => Number(fdNumber)));
|
|
15
|
+
|
|
16
|
+
const addInputOptionSync = (fileDescriptors, fdNumber, options) => {
|
|
17
|
+
const {stdioItems} = fileDescriptors[fdNumber];
|
|
18
|
+
const allStdioItems = stdioItems.filter(({contents}) => contents !== undefined);
|
|
19
|
+
if (allStdioItems.length === 0) {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
if (fdNumber !== 0) {
|
|
24
|
+
const [{type, optionName}] = allStdioItems;
|
|
25
|
+
throw new TypeError(`Only the \`stdin\` option, not \`${optionName}\`, can be ${TYPE_TO_MESSAGE[type]} with synchronous methods.`);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const allContents = allStdioItems.map(({contents}) => contents);
|
|
29
|
+
const transformedContents = allContents.map(contents => applySingleInputGeneratorsSync(contents, stdioItems));
|
|
30
|
+
options.input = joinToUint8Array(transformedContents);
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
const applySingleInputGeneratorsSync = (contents, stdioItems) => {
|
|
34
|
+
const newContents = runGeneratorsSync(contents, stdioItems, 'utf8', true);
|
|
35
|
+
validateSerializable(newContents);
|
|
36
|
+
return joinToUint8Array(newContents);
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
const validateSerializable = newContents => {
|
|
40
|
+
const invalidItem = newContents.find(item => typeof item !== 'string' && !isUint8Array(item));
|
|
41
|
+
if (invalidItem !== undefined) {
|
|
42
|
+
throw new TypeError(`The \`stdin\` option is invalid: when passing objects as input, a transform must be used to serialize them to strings or Uint8Arrays: ${invalidItem}.`);
|
|
43
|
+
}
|
|
44
|
+
};
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import {on} from 'node:events';
|
|
2
|
+
import {getDefaultHighWaterMark} from 'node:stream';
|
|
3
|
+
import {getEncodingTransformGenerator} from '../transform/encoding-transform.js';
|
|
4
|
+
import {getSplitLinesGenerator} from '../transform/split.js';
|
|
5
|
+
import {transformChunkSync, finalChunksSync} from '../transform/run-sync.js';
|
|
6
|
+
|
|
7
|
+
// Iterate over lines of `subprocess.stdout`, used by `subprocess.readable|duplex|iterable()`
|
|
8
|
+
export const iterateOnSubprocessStream = ({subprocessStdout, subprocess, binary, shouldEncode, encoding, preserveNewlines}) => {
|
|
9
|
+
const controller = new AbortController();
|
|
10
|
+
stopReadingOnExit(subprocess, controller);
|
|
11
|
+
return iterateOnStream({
|
|
12
|
+
stream: subprocessStdout,
|
|
13
|
+
controller,
|
|
14
|
+
binary,
|
|
15
|
+
shouldEncode: !subprocessStdout.readableObjectMode && shouldEncode,
|
|
16
|
+
encoding,
|
|
17
|
+
shouldSplit: !subprocessStdout.readableObjectMode,
|
|
18
|
+
preserveNewlines,
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
const stopReadingOnExit = async (subprocess, controller) => {
|
|
23
|
+
try {
|
|
24
|
+
await subprocess;
|
|
25
|
+
} catch {} finally {
|
|
26
|
+
controller.abort();
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
// Iterate over lines of `subprocess.stdout`, used by `result.stdout` and the `verbose: 'full'` option.
|
|
31
|
+
// Applies the `lines` and `encoding` options.
|
|
32
|
+
export const iterateForResult = ({stream, onStreamEnd, lines, encoding, stripFinalNewline, allMixed}) => {
|
|
33
|
+
const controller = new AbortController();
|
|
34
|
+
stopReadingOnStreamEnd(onStreamEnd, controller, stream);
|
|
35
|
+
const objectMode = stream.readableObjectMode && !allMixed;
|
|
36
|
+
return iterateOnStream({
|
|
37
|
+
stream,
|
|
38
|
+
controller,
|
|
39
|
+
binary: encoding === 'buffer',
|
|
40
|
+
shouldEncode: !objectMode,
|
|
41
|
+
encoding,
|
|
42
|
+
shouldSplit: !objectMode && lines,
|
|
43
|
+
preserveNewlines: !stripFinalNewline,
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
const stopReadingOnStreamEnd = async (onStreamEnd, controller, stream) => {
|
|
48
|
+
try {
|
|
49
|
+
await onStreamEnd;
|
|
50
|
+
} catch {
|
|
51
|
+
stream.destroy();
|
|
52
|
+
} finally {
|
|
53
|
+
controller.abort();
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
const iterateOnStream = ({stream, controller, binary, shouldEncode, encoding, shouldSplit, preserveNewlines}) => {
|
|
58
|
+
const onStdoutChunk = on(stream, 'data', {
|
|
59
|
+
signal: controller.signal,
|
|
60
|
+
highWaterMark: HIGH_WATER_MARK,
|
|
61
|
+
// Backward compatibility with older name for this option
|
|
62
|
+
// See https://github.com/nodejs/node/pull/52080#discussion_r1525227861
|
|
63
|
+
// @todo Remove after removing support for Node 21
|
|
64
|
+
highWatermark: HIGH_WATER_MARK,
|
|
65
|
+
});
|
|
66
|
+
return iterateOnData({
|
|
67
|
+
onStdoutChunk,
|
|
68
|
+
controller,
|
|
69
|
+
binary,
|
|
70
|
+
shouldEncode,
|
|
71
|
+
encoding,
|
|
72
|
+
shouldSplit,
|
|
73
|
+
preserveNewlines,
|
|
74
|
+
});
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
export const DEFAULT_OBJECT_HIGH_WATER_MARK = getDefaultHighWaterMark(true);
|
|
78
|
+
|
|
79
|
+
// The `highWaterMark` of `events.on()` is measured in number of events, not in bytes.
|
|
80
|
+
// Not knowing the average amount of bytes per `data` event, we use the same heuristic as streams in objectMode, since they have the same issue.
|
|
81
|
+
// Therefore, we use the value of `getDefaultHighWaterMark(true)`.
|
|
82
|
+
// Note: this option does not exist on Node 18, but this is ok since the logic works without it. It just consumes more memory.
|
|
83
|
+
const HIGH_WATER_MARK = DEFAULT_OBJECT_HIGH_WATER_MARK;
|
|
84
|
+
|
|
85
|
+
const iterateOnData = async function * ({onStdoutChunk, controller, binary, shouldEncode, encoding, shouldSplit, preserveNewlines}) {
|
|
86
|
+
const generators = getGenerators({
|
|
87
|
+
binary,
|
|
88
|
+
shouldEncode,
|
|
89
|
+
encoding,
|
|
90
|
+
shouldSplit,
|
|
91
|
+
preserveNewlines,
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
try {
|
|
95
|
+
for await (const [chunk] of onStdoutChunk) {
|
|
96
|
+
yield * transformChunkSync(chunk, generators, 0);
|
|
97
|
+
}
|
|
98
|
+
} catch (error) {
|
|
99
|
+
if (!controller.signal.aborted) {
|
|
100
|
+
throw error;
|
|
101
|
+
}
|
|
102
|
+
} finally {
|
|
103
|
+
yield * finalChunksSync(generators);
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
const getGenerators = ({binary, shouldEncode, encoding, shouldSplit, preserveNewlines}) => [
|
|
108
|
+
getEncodingTransformGenerator(binary, encoding, !shouldEncode),
|
|
109
|
+
getSplitLinesGenerator(binary, preserveNewlines, !shouldSplit, {}),
|
|
110
|
+
].filter(Boolean);
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import {MaxBufferError} from 'get-stream';
|
|
2
|
+
import {getStreamName} from '../utils/standard-stream.js';
|
|
3
|
+
import {getFdSpecificValue} from '../arguments/specific.js';
|
|
4
|
+
|
|
5
|
+
// When the `maxBuffer` option is hit, a MaxBufferError is thrown.
|
|
6
|
+
// The stream is aborted, then specific information is kept for the error message.
|
|
7
|
+
export const handleMaxBuffer = ({error, stream, readableObjectMode, lines, encoding, fdNumber}) => {
|
|
8
|
+
if (!(error instanceof MaxBufferError)) {
|
|
9
|
+
throw error;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
if (fdNumber === 'all') {
|
|
13
|
+
return error;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const unit = getMaxBufferUnit(readableObjectMode, lines, encoding);
|
|
17
|
+
error.maxBufferInfo = {fdNumber, unit};
|
|
18
|
+
stream.destroy();
|
|
19
|
+
throw error;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
const getMaxBufferUnit = (readableObjectMode, lines, encoding) => {
|
|
23
|
+
if (readableObjectMode) {
|
|
24
|
+
return 'objects';
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
if (lines) {
|
|
28
|
+
return 'lines';
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
if (encoding === 'buffer') {
|
|
32
|
+
return 'bytes';
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
return 'characters';
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
// Check the `maxBuffer` option with `result.ipcOutput`
|
|
39
|
+
export const checkIpcMaxBuffer = (subprocess, ipcOutput, maxBuffer) => {
|
|
40
|
+
if (ipcOutput.length !== maxBuffer) {
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
const error = new MaxBufferError();
|
|
45
|
+
error.maxBufferInfo = {fdNumber: 'ipc'};
|
|
46
|
+
throw error;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
// Error message when `maxBuffer` is hit
|
|
50
|
+
export const getMaxBufferMessage = (error, maxBuffer) => {
|
|
51
|
+
const {streamName, threshold, unit} = getMaxBufferInfo(error, maxBuffer);
|
|
52
|
+
return `Command's ${streamName} was larger than ${threshold} ${unit}`;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
const getMaxBufferInfo = (error, maxBuffer) => {
|
|
56
|
+
if (error?.maxBufferInfo === undefined) {
|
|
57
|
+
return {streamName: 'output', threshold: maxBuffer[1], unit: 'bytes'};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
const {maxBufferInfo: {fdNumber, unit}} = error;
|
|
61
|
+
delete error.maxBufferInfo;
|
|
62
|
+
|
|
63
|
+
const threshold = getFdSpecificValue(maxBuffer, fdNumber);
|
|
64
|
+
if (fdNumber === 'ipc') {
|
|
65
|
+
return {streamName: 'IPC output', threshold, unit: 'messages'};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {streamName: getStreamName(fdNumber), threshold, unit};
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
// The only way to apply `maxBuffer` with `spawnSync()` is to use the native `maxBuffer` option Node.js provides.
|
|
72
|
+
// However, this has multiple limitations, and cannot behave the exact same way as the async behavior.
|
|
73
|
+
// When the `maxBuffer` is hit, a `ENOBUFS` error is thrown.
|
|
74
|
+
export const isMaxBufferSync = (resultError, output, maxBuffer) => resultError?.code === 'ENOBUFS'
|
|
75
|
+
&& output !== null
|
|
76
|
+
&& output.some(result => result !== null && result.length > getMaxBufferSync(maxBuffer));
|
|
77
|
+
|
|
78
|
+
// When `maxBuffer` is hit, ensure the result is truncated
|
|
79
|
+
export const truncateMaxBufferSync = (result, isMaxBuffer, maxBuffer) => {
|
|
80
|
+
if (!isMaxBuffer) {
|
|
81
|
+
return result;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
const maxBufferValue = getMaxBufferSync(maxBuffer);
|
|
85
|
+
return result.length > maxBufferValue ? result.slice(0, maxBufferValue) : result;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
// `spawnSync()` does not allow differentiating `maxBuffer` per file descriptor, so we always use `stdout`
|
|
89
|
+
export const getMaxBufferSync = ([, stdoutMaxBuffer]) => stdoutMaxBuffer;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import mergeStreams from '@sindresorhus/merge-streams';
|
|
2
|
+
import {isStandardStream} from '../utils/standard-stream.js';
|
|
3
|
+
import {incrementMaxListeners} from '../utils/max-listeners.js';
|
|
4
|
+
import {TRANSFORM_TYPES} from '../stdio/type.js';
|
|
5
|
+
import {pipeStreams} from './pipeline.js';
|
|
6
|
+
|
|
7
|
+
// Handle `input`, `inputFile`, `stdin`, `stdout` and `stderr` options, after spawning, in async mode
|
|
8
|
+
// When multiple input streams are used, we merge them to ensure the output stream ends only once each input stream has ended
|
|
9
|
+
export const pipeOutputAsync = (subprocess, fileDescriptors, controller) => {
|
|
10
|
+
const pipeGroups = new Map();
|
|
11
|
+
|
|
12
|
+
for (const [fdNumber, {stdioItems, direction}] of Object.entries(fileDescriptors)) {
|
|
13
|
+
for (const {stream} of stdioItems.filter(({type}) => TRANSFORM_TYPES.has(type))) {
|
|
14
|
+
pipeTransform(subprocess, stream, direction, fdNumber);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
for (const {stream} of stdioItems.filter(({type}) => !TRANSFORM_TYPES.has(type))) {
|
|
18
|
+
pipeStdioItem({
|
|
19
|
+
subprocess,
|
|
20
|
+
stream,
|
|
21
|
+
direction,
|
|
22
|
+
fdNumber,
|
|
23
|
+
pipeGroups,
|
|
24
|
+
controller,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
for (const [outputStream, inputStreams] of pipeGroups.entries()) {
|
|
30
|
+
const inputStream = inputStreams.length === 1 ? inputStreams[0] : mergeStreams(inputStreams);
|
|
31
|
+
pipeStreams(inputStream, outputStream);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
// When using transforms, `subprocess.stdin|stdout|stderr|stdio` is directly mutated
|
|
36
|
+
const pipeTransform = (subprocess, stream, direction, fdNumber) => {
|
|
37
|
+
if (direction === 'output') {
|
|
38
|
+
pipeStreams(subprocess.stdio[fdNumber], stream);
|
|
39
|
+
} else {
|
|
40
|
+
pipeStreams(stream, subprocess.stdio[fdNumber]);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const streamProperty = SUBPROCESS_STREAM_PROPERTIES[fdNumber];
|
|
44
|
+
if (streamProperty !== undefined) {
|
|
45
|
+
subprocess[streamProperty] = stream;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
subprocess.stdio[fdNumber] = stream;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
const SUBPROCESS_STREAM_PROPERTIES = ['stdin', 'stdout', 'stderr'];
|
|
52
|
+
|
|
53
|
+
// Most `std*` option values involve piping `subprocess.std*` to a stream.
|
|
54
|
+
// The stream is either passed by the user or created internally.
|
|
55
|
+
const pipeStdioItem = ({subprocess, stream, direction, fdNumber, pipeGroups, controller}) => {
|
|
56
|
+
if (stream === undefined) {
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
setStandardStreamMaxListeners(stream, controller);
|
|
61
|
+
|
|
62
|
+
const [inputStream, outputStream] = direction === 'output'
|
|
63
|
+
? [stream, subprocess.stdio[fdNumber]]
|
|
64
|
+
: [subprocess.stdio[fdNumber], stream];
|
|
65
|
+
const outputStreams = pipeGroups.get(inputStream) ?? [];
|
|
66
|
+
pipeGroups.set(inputStream, [...outputStreams, outputStream]);
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
// Multiple subprocesses might be piping from/to `process.std*` at the same time.
|
|
70
|
+
// This is not necessarily an error and should not print a `maxListeners` warning.
|
|
71
|
+
const setStandardStreamMaxListeners = (stream, {signal}) => {
|
|
72
|
+
if (isStandardStream(stream)) {
|
|
73
|
+
incrementMaxListeners(stream, MAX_LISTENERS_INCREMENT, signal);
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
// `source.pipe(destination)` adds at most 1 listener for each event.
|
|
78
|
+
// If `stdin` option is an array, the values might be combined with `merge-streams`.
|
|
79
|
+
// That library also listens for `source` end, which adds 1 more listener.
|
|
80
|
+
const MAX_LISTENERS_INCREMENT = 2;
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import {writeFileSync, appendFileSync} from 'node:fs';
|
|
2
|
+
import {shouldLogOutput, logLinesSync} from '../verbose/output.js';
|
|
3
|
+
import {runGeneratorsSync} from '../transform/generator.js';
|
|
4
|
+
import {splitLinesSync} from '../transform/split.js';
|
|
5
|
+
import {joinToString, joinToUint8Array, bufferToUint8Array} from '../utils/uint-array.js';
|
|
6
|
+
import {FILE_TYPES} from '../stdio/type.js';
|
|
7
|
+
import {truncateMaxBufferSync} from './max-buffer.js';
|
|
8
|
+
|
|
9
|
+
// Apply `stdout`/`stderr` options, after spawning, in sync mode
|
|
10
|
+
export const transformOutputSync = ({fileDescriptors, syncResult: {output}, options, isMaxBuffer, verboseInfo}) => {
|
|
11
|
+
if (output === null) {
|
|
12
|
+
return {output: Array.from({length: 3})};
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const state = {};
|
|
16
|
+
const outputFiles = new Set([]);
|
|
17
|
+
const transformedOutput = output.map((result, fdNumber) =>
|
|
18
|
+
transformOutputResultSync({
|
|
19
|
+
result,
|
|
20
|
+
fileDescriptors,
|
|
21
|
+
fdNumber,
|
|
22
|
+
state,
|
|
23
|
+
outputFiles,
|
|
24
|
+
isMaxBuffer,
|
|
25
|
+
verboseInfo,
|
|
26
|
+
}, options));
|
|
27
|
+
return {output: transformedOutput, ...state};
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
const transformOutputResultSync = (
|
|
31
|
+
{result, fileDescriptors, fdNumber, state, outputFiles, isMaxBuffer, verboseInfo},
|
|
32
|
+
{buffer, encoding, lines, stripFinalNewline, maxBuffer},
|
|
33
|
+
) => {
|
|
34
|
+
if (result === null) {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
const truncatedResult = truncateMaxBufferSync(result, isMaxBuffer, maxBuffer);
|
|
39
|
+
const uint8ArrayResult = bufferToUint8Array(truncatedResult);
|
|
40
|
+
const {stdioItems, objectMode} = fileDescriptors[fdNumber];
|
|
41
|
+
const chunks = runOutputGeneratorsSync([uint8ArrayResult], stdioItems, encoding, state);
|
|
42
|
+
const {serializedResult, finalResult = serializedResult} = serializeChunks({
|
|
43
|
+
chunks,
|
|
44
|
+
objectMode,
|
|
45
|
+
encoding,
|
|
46
|
+
lines,
|
|
47
|
+
stripFinalNewline,
|
|
48
|
+
fdNumber,
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
logOutputSync({
|
|
52
|
+
serializedResult,
|
|
53
|
+
fdNumber,
|
|
54
|
+
state,
|
|
55
|
+
verboseInfo,
|
|
56
|
+
encoding,
|
|
57
|
+
stdioItems,
|
|
58
|
+
objectMode,
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
const returnedResult = buffer[fdNumber] ? finalResult : undefined;
|
|
62
|
+
|
|
63
|
+
try {
|
|
64
|
+
if (state.error === undefined) {
|
|
65
|
+
writeToFiles(serializedResult, stdioItems, outputFiles);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return returnedResult;
|
|
69
|
+
} catch (error) {
|
|
70
|
+
state.error = error;
|
|
71
|
+
return returnedResult;
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
// Applies transform generators to `stdout`/`stderr`
|
|
76
|
+
const runOutputGeneratorsSync = (chunks, stdioItems, encoding, state) => {
|
|
77
|
+
try {
|
|
78
|
+
return runGeneratorsSync(chunks, stdioItems, encoding, false);
|
|
79
|
+
} catch (error) {
|
|
80
|
+
state.error = error;
|
|
81
|
+
return chunks;
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
// The contents is converted to three stages:
|
|
86
|
+
// - serializedResult: used when the target is a file path/URL or a file descriptor (including 'inherit')
|
|
87
|
+
// - finalResult/returnedResult: returned as `result.std*`
|
|
88
|
+
const serializeChunks = ({chunks, objectMode, encoding, lines, stripFinalNewline, fdNumber}) => {
|
|
89
|
+
if (objectMode) {
|
|
90
|
+
return {serializedResult: chunks};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
if (encoding === 'buffer') {
|
|
94
|
+
return {serializedResult: joinToUint8Array(chunks)};
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
const serializedResult = joinToString(chunks, encoding);
|
|
98
|
+
if (lines[fdNumber]) {
|
|
99
|
+
return {serializedResult, finalResult: splitLinesSync(serializedResult, !stripFinalNewline[fdNumber], objectMode)};
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
return {serializedResult};
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
const logOutputSync = ({serializedResult, fdNumber, state, verboseInfo, encoding, stdioItems, objectMode}) => {
|
|
106
|
+
if (!shouldLogOutput({
|
|
107
|
+
stdioItems,
|
|
108
|
+
encoding,
|
|
109
|
+
verboseInfo,
|
|
110
|
+
fdNumber,
|
|
111
|
+
})) {
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
const linesArray = splitLinesSync(serializedResult, false, objectMode);
|
|
116
|
+
|
|
117
|
+
try {
|
|
118
|
+
logLinesSync(linesArray, fdNumber, verboseInfo);
|
|
119
|
+
} catch (error) {
|
|
120
|
+
state.error ??= error;
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
// When the `std*` target is a file path/URL or a file descriptor
|
|
125
|
+
const writeToFiles = (serializedResult, stdioItems, outputFiles) => {
|
|
126
|
+
for (const {path, append} of stdioItems.filter(({type}) => FILE_TYPES.has(type))) {
|
|
127
|
+
const pathString = typeof path === 'string' ? path : path.toString();
|
|
128
|
+
if (append || outputFiles.has(pathString)) {
|
|
129
|
+
appendFileSync(path, serializedResult);
|
|
130
|
+
} else {
|
|
131
|
+
outputFiles.add(pathString);
|
|
132
|
+
writeFileSync(path, serializedResult);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
};
|