omegon 0.6.32 → 0.7.0
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/bin/omegon.mjs +74 -1
- package/extensions/00-secrets/index.ts +6 -0
- package/extensions/00-splash/index.ts +338 -0
- package/extensions/00-splash/logo.ts +194 -0
- package/extensions/bootstrap/index.ts +19 -2
- package/extensions/effort/index.ts +10 -0
- package/extensions/lib/splash-state.ts +25 -0
- package/extensions/mcp-bridge/index.ts +5 -0
- package/extensions/project-memory/index.ts +10 -0
- package/extensions/tool-profile/index.ts +7 -2
- package/node_modules/@smithy/core/package.json +2 -2
- package/node_modules/@smithy/middleware-endpoint/package.json +3 -3
- package/node_modules/@smithy/middleware-retry/package.json +2 -2
- package/node_modules/@smithy/middleware-serde/package.json +2 -2
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +44 -37
- package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +38 -31
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +1 -1
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +1 -1
- package/node_modules/@smithy/node-http-handler/dist-es/readable.mock.js +1 -1
- package/node_modules/@smithy/node-http-handler/dist-es/server.mock.js +6 -6
- package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/collector.js +1 -1
- package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/readable.mock.js +1 -1
- package/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/get-transformed-headers.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +4 -4
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/readable.mock.d.ts +2 -2
- package/node_modules/@smithy/node-http-handler/dist-types/server.mock.d.ts +3 -3
- package/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/set-request-timeout.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/collector.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/readable.mock.d.ts +2 -2
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/get-transformed-headers.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +4 -4
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-pool.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/readable.mock.d.ts +2 -2
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/server.mock.d.ts +3 -3
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-connection-timeout.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-request-timeout.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-keep-alive.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/collector.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/readable.mock.d.ts +2 -2
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +2 -2
- package/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts +2 -2
- package/node_modules/@smithy/node-http-handler/package.json +1 -1
- package/node_modules/@smithy/smithy-client/package.json +4 -4
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -2
- package/node_modules/@smithy/util-defaults-mode-node/package.json +2 -2
- package/node_modules/@smithy/util-stream/package.json +2 -2
- package/node_modules/file-type/core.js +86 -9
- package/node_modules/file-type/index.js +17 -1
- package/node_modules/file-type/package.json +1 -1
- package/node_modules/file-type/readme.md +3 -0
- package/node_modules/gaxios/build/cjs/tsconfig.cjs.tsbuildinfo +1 -1
- package/node_modules/gaxios/build/esm/tsconfig.tsbuildinfo +1 -1
- package/node_modules/gaxios/package.json +13 -14
- package/node_modules/google-auth-library/package.json +2 -2
- package/package.json +5 -5
- package/node_modules/@isaacs/cliui/LICENSE.txt +0 -14
- package/node_modules/@isaacs/cliui/README.md +0 -143
- package/node_modules/@isaacs/cliui/build/index.cjs +0 -317
- package/node_modules/@isaacs/cliui/build/index.d.cts +0 -43
- package/node_modules/@isaacs/cliui/build/lib/index.js +0 -302
- package/node_modules/@isaacs/cliui/index.mjs +0 -14
- package/node_modules/@isaacs/cliui/node_modules/ansi-styles/index.d.ts +0 -236
- package/node_modules/@isaacs/cliui/node_modules/ansi-styles/index.js +0 -223
- package/node_modules/@isaacs/cliui/node_modules/ansi-styles/license +0 -9
- package/node_modules/@isaacs/cliui/node_modules/ansi-styles/package.json +0 -54
- package/node_modules/@isaacs/cliui/node_modules/ansi-styles/readme.md +0 -173
- package/node_modules/@isaacs/cliui/node_modules/emoji-regex/LICENSE-MIT.txt +0 -20
- package/node_modules/@isaacs/cliui/node_modules/emoji-regex/README.md +0 -137
- package/node_modules/@isaacs/cliui/node_modules/emoji-regex/RGI_Emoji.d.ts +0 -5
- package/node_modules/@isaacs/cliui/node_modules/emoji-regex/RGI_Emoji.js +0 -6
- package/node_modules/@isaacs/cliui/node_modules/emoji-regex/es2015/RGI_Emoji.d.ts +0 -5
- package/node_modules/@isaacs/cliui/node_modules/emoji-regex/es2015/RGI_Emoji.js +0 -6
- package/node_modules/@isaacs/cliui/node_modules/emoji-regex/es2015/index.d.ts +0 -5
- package/node_modules/@isaacs/cliui/node_modules/emoji-regex/es2015/index.js +0 -6
- package/node_modules/@isaacs/cliui/node_modules/emoji-regex/es2015/text.d.ts +0 -5
- package/node_modules/@isaacs/cliui/node_modules/emoji-regex/es2015/text.js +0 -6
- package/node_modules/@isaacs/cliui/node_modules/emoji-regex/index.d.ts +0 -5
- package/node_modules/@isaacs/cliui/node_modules/emoji-regex/index.js +0 -6
- package/node_modules/@isaacs/cliui/node_modules/emoji-regex/package.json +0 -52
- package/node_modules/@isaacs/cliui/node_modules/emoji-regex/text.d.ts +0 -5
- package/node_modules/@isaacs/cliui/node_modules/emoji-regex/text.js +0 -6
- package/node_modules/@isaacs/cliui/node_modules/string-width/index.d.ts +0 -29
- package/node_modules/@isaacs/cliui/node_modules/string-width/index.js +0 -54
- package/node_modules/@isaacs/cliui/node_modules/string-width/license +0 -9
- package/node_modules/@isaacs/cliui/node_modules/string-width/package.json +0 -59
- package/node_modules/@isaacs/cliui/node_modules/string-width/readme.md +0 -67
- package/node_modules/@isaacs/cliui/node_modules/wrap-ansi/index.d.ts +0 -41
- package/node_modules/@isaacs/cliui/node_modules/wrap-ansi/index.js +0 -214
- package/node_modules/@isaacs/cliui/node_modules/wrap-ansi/license +0 -9
- package/node_modules/@isaacs/cliui/node_modules/wrap-ansi/package.json +0 -69
- package/node_modules/@isaacs/cliui/node_modules/wrap-ansi/readme.md +0 -91
- package/node_modules/@isaacs/cliui/package.json +0 -86
- package/node_modules/@pkgjs/parseargs/.editorconfig +0 -14
- package/node_modules/@pkgjs/parseargs/CHANGELOG.md +0 -147
- package/node_modules/@pkgjs/parseargs/LICENSE +0 -201
- package/node_modules/@pkgjs/parseargs/README.md +0 -413
- package/node_modules/@pkgjs/parseargs/examples/is-default-value.js +0 -25
- package/node_modules/@pkgjs/parseargs/examples/limit-long-syntax.js +0 -35
- package/node_modules/@pkgjs/parseargs/examples/negate.js +0 -43
- package/node_modules/@pkgjs/parseargs/examples/no-repeated-options.js +0 -31
- package/node_modules/@pkgjs/parseargs/examples/ordered-options.mjs +0 -41
- package/node_modules/@pkgjs/parseargs/examples/simple-hard-coded.js +0 -26
- package/node_modules/@pkgjs/parseargs/index.js +0 -396
- package/node_modules/@pkgjs/parseargs/internal/errors.js +0 -47
- package/node_modules/@pkgjs/parseargs/internal/primordials.js +0 -393
- package/node_modules/@pkgjs/parseargs/internal/util.js +0 -14
- package/node_modules/@pkgjs/parseargs/internal/validators.js +0 -89
- package/node_modules/@pkgjs/parseargs/package.json +0 -36
- package/node_modules/@pkgjs/parseargs/utils.js +0 -198
- package/node_modules/cross-spawn/LICENSE +0 -21
- package/node_modules/cross-spawn/README.md +0 -89
- package/node_modules/cross-spawn/index.js +0 -39
- package/node_modules/cross-spawn/lib/enoent.js +0 -59
- package/node_modules/cross-spawn/lib/parse.js +0 -91
- package/node_modules/cross-spawn/lib/util/escape.js +0 -47
- package/node_modules/cross-spawn/lib/util/readShebang.js +0 -23
- package/node_modules/cross-spawn/lib/util/resolveCommand.js +0 -52
- package/node_modules/cross-spawn/package.json +0 -73
- package/node_modules/eastasianwidth/README.md +0 -32
- package/node_modules/eastasianwidth/eastasianwidth.js +0 -311
- package/node_modules/eastasianwidth/package.json +0 -18
- package/node_modules/foreground-child/LICENSE +0 -15
- package/node_modules/foreground-child/README.md +0 -128
- package/node_modules/foreground-child/dist/commonjs/all-signals.d.ts +0 -2
- package/node_modules/foreground-child/dist/commonjs/all-signals.d.ts.map +0 -1
- package/node_modules/foreground-child/dist/commonjs/all-signals.js +0 -58
- package/node_modules/foreground-child/dist/commonjs/all-signals.js.map +0 -1
- package/node_modules/foreground-child/dist/commonjs/index.d.ts +0 -58
- package/node_modules/foreground-child/dist/commonjs/index.d.ts.map +0 -1
- package/node_modules/foreground-child/dist/commonjs/index.js +0 -123
- package/node_modules/foreground-child/dist/commonjs/index.js.map +0 -1
- package/node_modules/foreground-child/dist/commonjs/package.json +0 -3
- package/node_modules/foreground-child/dist/commonjs/proxy-signals.d.ts +0 -6
- package/node_modules/foreground-child/dist/commonjs/proxy-signals.d.ts.map +0 -1
- package/node_modules/foreground-child/dist/commonjs/proxy-signals.js +0 -38
- package/node_modules/foreground-child/dist/commonjs/proxy-signals.js.map +0 -1
- package/node_modules/foreground-child/dist/commonjs/watchdog.d.ts +0 -10
- package/node_modules/foreground-child/dist/commonjs/watchdog.d.ts.map +0 -1
- package/node_modules/foreground-child/dist/commonjs/watchdog.js +0 -50
- package/node_modules/foreground-child/dist/commonjs/watchdog.js.map +0 -1
- package/node_modules/foreground-child/dist/esm/all-signals.d.ts +0 -2
- package/node_modules/foreground-child/dist/esm/all-signals.d.ts.map +0 -1
- package/node_modules/foreground-child/dist/esm/all-signals.js +0 -52
- package/node_modules/foreground-child/dist/esm/all-signals.js.map +0 -1
- package/node_modules/foreground-child/dist/esm/index.d.ts +0 -58
- package/node_modules/foreground-child/dist/esm/index.d.ts.map +0 -1
- package/node_modules/foreground-child/dist/esm/index.js +0 -115
- package/node_modules/foreground-child/dist/esm/index.js.map +0 -1
- package/node_modules/foreground-child/dist/esm/package.json +0 -3
- package/node_modules/foreground-child/dist/esm/proxy-signals.d.ts +0 -6
- package/node_modules/foreground-child/dist/esm/proxy-signals.d.ts.map +0 -1
- package/node_modules/foreground-child/dist/esm/proxy-signals.js +0 -34
- package/node_modules/foreground-child/dist/esm/proxy-signals.js.map +0 -1
- package/node_modules/foreground-child/dist/esm/watchdog.d.ts +0 -10
- package/node_modules/foreground-child/dist/esm/watchdog.d.ts.map +0 -1
- package/node_modules/foreground-child/dist/esm/watchdog.js +0 -46
- package/node_modules/foreground-child/dist/esm/watchdog.js.map +0 -1
- package/node_modules/foreground-child/node_modules/signal-exit/LICENSE.txt +0 -16
- package/node_modules/foreground-child/node_modules/signal-exit/README.md +0 -74
- package/node_modules/foreground-child/node_modules/signal-exit/dist/cjs/browser.d.ts +0 -12
- package/node_modules/foreground-child/node_modules/signal-exit/dist/cjs/browser.d.ts.map +0 -1
- package/node_modules/foreground-child/node_modules/signal-exit/dist/cjs/browser.js +0 -10
- package/node_modules/foreground-child/node_modules/signal-exit/dist/cjs/browser.js.map +0 -1
- package/node_modules/foreground-child/node_modules/signal-exit/dist/cjs/index.d.ts +0 -48
- package/node_modules/foreground-child/node_modules/signal-exit/dist/cjs/index.d.ts.map +0 -1
- package/node_modules/foreground-child/node_modules/signal-exit/dist/cjs/index.js +0 -279
- package/node_modules/foreground-child/node_modules/signal-exit/dist/cjs/index.js.map +0 -1
- package/node_modules/foreground-child/node_modules/signal-exit/dist/cjs/package.json +0 -3
- package/node_modules/foreground-child/node_modules/signal-exit/dist/cjs/signals.d.ts +0 -29
- package/node_modules/foreground-child/node_modules/signal-exit/dist/cjs/signals.d.ts.map +0 -1
- package/node_modules/foreground-child/node_modules/signal-exit/dist/cjs/signals.js +0 -42
- package/node_modules/foreground-child/node_modules/signal-exit/dist/cjs/signals.js.map +0 -1
- package/node_modules/foreground-child/node_modules/signal-exit/dist/mjs/browser.d.ts +0 -12
- package/node_modules/foreground-child/node_modules/signal-exit/dist/mjs/browser.d.ts.map +0 -1
- package/node_modules/foreground-child/node_modules/signal-exit/dist/mjs/browser.js +0 -4
- package/node_modules/foreground-child/node_modules/signal-exit/dist/mjs/browser.js.map +0 -1
- package/node_modules/foreground-child/node_modules/signal-exit/dist/mjs/index.d.ts +0 -48
- package/node_modules/foreground-child/node_modules/signal-exit/dist/mjs/index.d.ts.map +0 -1
- package/node_modules/foreground-child/node_modules/signal-exit/dist/mjs/index.js +0 -275
- package/node_modules/foreground-child/node_modules/signal-exit/dist/mjs/index.js.map +0 -1
- package/node_modules/foreground-child/node_modules/signal-exit/dist/mjs/package.json +0 -3
- package/node_modules/foreground-child/node_modules/signal-exit/dist/mjs/signals.d.ts +0 -29
- package/node_modules/foreground-child/node_modules/signal-exit/dist/mjs/signals.d.ts.map +0 -1
- package/node_modules/foreground-child/node_modules/signal-exit/dist/mjs/signals.js +0 -39
- package/node_modules/foreground-child/node_modules/signal-exit/dist/mjs/signals.js.map +0 -1
- package/node_modules/foreground-child/node_modules/signal-exit/package.json +0 -106
- package/node_modules/foreground-child/package.json +0 -106
- package/node_modules/isexe/.npmignore +0 -2
- package/node_modules/isexe/LICENSE +0 -15
- package/node_modules/isexe/README.md +0 -51
- package/node_modules/isexe/index.js +0 -57
- package/node_modules/isexe/mode.js +0 -41
- package/node_modules/isexe/package.json +0 -31
- package/node_modules/isexe/test/basic.js +0 -221
- package/node_modules/isexe/windows.js +0 -42
- package/node_modules/jackspeak/LICENSE.md +0 -55
- package/node_modules/jackspeak/README.md +0 -357
- package/node_modules/jackspeak/dist/commonjs/index.d.ts +0 -315
- package/node_modules/jackspeak/dist/commonjs/index.d.ts.map +0 -1
- package/node_modules/jackspeak/dist/commonjs/index.js +0 -1010
- package/node_modules/jackspeak/dist/commonjs/index.js.map +0 -1
- package/node_modules/jackspeak/dist/commonjs/package.json +0 -3
- package/node_modules/jackspeak/dist/commonjs/parse-args-cjs.cjs.map +0 -1
- package/node_modules/jackspeak/dist/commonjs/parse-args-cjs.d.cts.map +0 -1
- package/node_modules/jackspeak/dist/commonjs/parse-args.d.ts +0 -4
- package/node_modules/jackspeak/dist/commonjs/parse-args.js +0 -50
- package/node_modules/jackspeak/dist/esm/index.d.ts +0 -315
- package/node_modules/jackspeak/dist/esm/index.d.ts.map +0 -1
- package/node_modules/jackspeak/dist/esm/index.js +0 -1000
- package/node_modules/jackspeak/dist/esm/index.js.map +0 -1
- package/node_modules/jackspeak/dist/esm/package.json +0 -3
- package/node_modules/jackspeak/dist/esm/parse-args.d.ts +0 -4
- package/node_modules/jackspeak/dist/esm/parse-args.d.ts.map +0 -1
- package/node_modules/jackspeak/dist/esm/parse-args.js +0 -26
- package/node_modules/jackspeak/dist/esm/parse-args.js.map +0 -1
- package/node_modules/jackspeak/package.json +0 -95
- package/node_modules/package-json-from-dist/LICENSE.md +0 -63
- package/node_modules/package-json-from-dist/README.md +0 -110
- package/node_modules/package-json-from-dist/dist/commonjs/index.d.ts +0 -89
- package/node_modules/package-json-from-dist/dist/commonjs/index.d.ts.map +0 -1
- package/node_modules/package-json-from-dist/dist/commonjs/index.js +0 -134
- package/node_modules/package-json-from-dist/dist/commonjs/index.js.map +0 -1
- package/node_modules/package-json-from-dist/dist/commonjs/package.json +0 -3
- package/node_modules/package-json-from-dist/dist/esm/index.d.ts +0 -89
- package/node_modules/package-json-from-dist/dist/esm/index.d.ts.map +0 -1
- package/node_modules/package-json-from-dist/dist/esm/index.js +0 -129
- package/node_modules/package-json-from-dist/dist/esm/index.js.map +0 -1
- package/node_modules/package-json-from-dist/dist/esm/package.json +0 -3
- package/node_modules/package-json-from-dist/package.json +0 -68
- package/node_modules/path-key/index.d.ts +0 -40
- package/node_modules/path-key/index.js +0 -16
- package/node_modules/path-key/license +0 -9
- package/node_modules/path-key/package.json +0 -39
- package/node_modules/path-key/readme.md +0 -61
- package/node_modules/rimraf/LICENSE +0 -15
- package/node_modules/rimraf/README.md +0 -220
- package/node_modules/rimraf/dist/commonjs/default-tmp.d.ts +0 -3
- package/node_modules/rimraf/dist/commonjs/default-tmp.d.ts.map +0 -1
- package/node_modules/rimraf/dist/commonjs/default-tmp.js +0 -61
- package/node_modules/rimraf/dist/commonjs/default-tmp.js.map +0 -1
- package/node_modules/rimraf/dist/commonjs/fix-eperm.d.ts +0 -3
- package/node_modules/rimraf/dist/commonjs/fix-eperm.d.ts.map +0 -1
- package/node_modules/rimraf/dist/commonjs/fix-eperm.js +0 -58
- package/node_modules/rimraf/dist/commonjs/fix-eperm.js.map +0 -1
- package/node_modules/rimraf/dist/commonjs/fs.d.ts +0 -17
- package/node_modules/rimraf/dist/commonjs/fs.d.ts.map +0 -1
- package/node_modules/rimraf/dist/commonjs/fs.js +0 -46
- package/node_modules/rimraf/dist/commonjs/fs.js.map +0 -1
- package/node_modules/rimraf/dist/commonjs/ignore-enoent.d.ts +0 -3
- package/node_modules/rimraf/dist/commonjs/ignore-enoent.d.ts.map +0 -1
- package/node_modules/rimraf/dist/commonjs/ignore-enoent.js +0 -21
- package/node_modules/rimraf/dist/commonjs/ignore-enoent.js.map +0 -1
- package/node_modules/rimraf/dist/commonjs/index.d.ts +0 -50
- package/node_modules/rimraf/dist/commonjs/index.d.ts.map +0 -1
- package/node_modules/rimraf/dist/commonjs/index.js +0 -78
- package/node_modules/rimraf/dist/commonjs/index.js.map +0 -1
- package/node_modules/rimraf/dist/commonjs/opt-arg.d.ts +0 -34
- package/node_modules/rimraf/dist/commonjs/opt-arg.d.ts.map +0 -1
- package/node_modules/rimraf/dist/commonjs/opt-arg.js +0 -53
- package/node_modules/rimraf/dist/commonjs/opt-arg.js.map +0 -1
- package/node_modules/rimraf/dist/commonjs/package.json +0 -3
- package/node_modules/rimraf/dist/commonjs/path-arg.d.ts +0 -4
- package/node_modules/rimraf/dist/commonjs/path-arg.d.ts.map +0 -1
- package/node_modules/rimraf/dist/commonjs/path-arg.js +0 -52
- package/node_modules/rimraf/dist/commonjs/path-arg.js.map +0 -1
- package/node_modules/rimraf/dist/commonjs/platform.d.ts +0 -3
- package/node_modules/rimraf/dist/commonjs/platform.d.ts.map +0 -1
- package/node_modules/rimraf/dist/commonjs/platform.js +0 -4
- package/node_modules/rimraf/dist/commonjs/platform.js.map +0 -1
- package/node_modules/rimraf/dist/commonjs/readdir-or-error.d.ts +0 -3
- package/node_modules/rimraf/dist/commonjs/readdir-or-error.d.ts.map +0 -1
- package/node_modules/rimraf/dist/commonjs/readdir-or-error.js +0 -19
- package/node_modules/rimraf/dist/commonjs/readdir-or-error.js.map +0 -1
- package/node_modules/rimraf/dist/commonjs/retry-busy.d.ts +0 -8
- package/node_modules/rimraf/dist/commonjs/retry-busy.d.ts.map +0 -1
- package/node_modules/rimraf/dist/commonjs/retry-busy.js +0 -68
- package/node_modules/rimraf/dist/commonjs/retry-busy.js.map +0 -1
- package/node_modules/rimraf/dist/commonjs/rimraf-manual.d.ts +0 -3
- package/node_modules/rimraf/dist/commonjs/rimraf-manual.d.ts.map +0 -1
- package/node_modules/rimraf/dist/commonjs/rimraf-manual.js +0 -12
- package/node_modules/rimraf/dist/commonjs/rimraf-manual.js.map +0 -1
- package/node_modules/rimraf/dist/commonjs/rimraf-move-remove.d.ts +0 -4
- package/node_modules/rimraf/dist/commonjs/rimraf-move-remove.d.ts.map +0 -1
- package/node_modules/rimraf/dist/commonjs/rimraf-move-remove.js +0 -192
- package/node_modules/rimraf/dist/commonjs/rimraf-move-remove.js.map +0 -1
- package/node_modules/rimraf/dist/commonjs/rimraf-native.d.ts +0 -4
- package/node_modules/rimraf/dist/commonjs/rimraf-native.d.ts.map +0 -1
- package/node_modules/rimraf/dist/commonjs/rimraf-native.js +0 -24
- package/node_modules/rimraf/dist/commonjs/rimraf-native.js.map +0 -1
- package/node_modules/rimraf/dist/commonjs/rimraf-posix.d.ts +0 -4
- package/node_modules/rimraf/dist/commonjs/rimraf-posix.d.ts.map +0 -1
- package/node_modules/rimraf/dist/commonjs/rimraf-posix.js +0 -123
- package/node_modules/rimraf/dist/commonjs/rimraf-posix.js.map +0 -1
- package/node_modules/rimraf/dist/commonjs/rimraf-windows.d.ts +0 -4
- package/node_modules/rimraf/dist/commonjs/rimraf-windows.d.ts.map +0 -1
- package/node_modules/rimraf/dist/commonjs/rimraf-windows.js +0 -182
- package/node_modules/rimraf/dist/commonjs/rimraf-windows.js.map +0 -1
- package/node_modules/rimraf/dist/commonjs/use-native.d.ts +0 -4
- package/node_modules/rimraf/dist/commonjs/use-native.d.ts.map +0 -1
- package/node_modules/rimraf/dist/commonjs/use-native.js +0 -22
- package/node_modules/rimraf/dist/commonjs/use-native.js.map +0 -1
- package/node_modules/rimraf/dist/esm/bin.d.mts +0 -8
- package/node_modules/rimraf/dist/esm/bin.d.mts.map +0 -1
- package/node_modules/rimraf/dist/esm/bin.mjs +0 -256
- package/node_modules/rimraf/dist/esm/bin.mjs.map +0 -1
- package/node_modules/rimraf/dist/esm/default-tmp.d.ts +0 -3
- package/node_modules/rimraf/dist/esm/default-tmp.d.ts.map +0 -1
- package/node_modules/rimraf/dist/esm/default-tmp.js +0 -55
- package/node_modules/rimraf/dist/esm/default-tmp.js.map +0 -1
- package/node_modules/rimraf/dist/esm/fix-eperm.d.ts +0 -3
- package/node_modules/rimraf/dist/esm/fix-eperm.d.ts.map +0 -1
- package/node_modules/rimraf/dist/esm/fix-eperm.js +0 -53
- package/node_modules/rimraf/dist/esm/fix-eperm.js.map +0 -1
- package/node_modules/rimraf/dist/esm/fs.d.ts +0 -17
- package/node_modules/rimraf/dist/esm/fs.d.ts.map +0 -1
- package/node_modules/rimraf/dist/esm/fs.js +0 -31
- package/node_modules/rimraf/dist/esm/fs.js.map +0 -1
- package/node_modules/rimraf/dist/esm/ignore-enoent.d.ts +0 -3
- package/node_modules/rimraf/dist/esm/ignore-enoent.d.ts.map +0 -1
- package/node_modules/rimraf/dist/esm/ignore-enoent.js +0 -16
- package/node_modules/rimraf/dist/esm/ignore-enoent.js.map +0 -1
- package/node_modules/rimraf/dist/esm/index.d.ts +0 -50
- package/node_modules/rimraf/dist/esm/index.d.ts.map +0 -1
- package/node_modules/rimraf/dist/esm/index.js +0 -70
- package/node_modules/rimraf/dist/esm/index.js.map +0 -1
- package/node_modules/rimraf/dist/esm/opt-arg.d.ts +0 -34
- package/node_modules/rimraf/dist/esm/opt-arg.d.ts.map +0 -1
- package/node_modules/rimraf/dist/esm/opt-arg.js +0 -46
- package/node_modules/rimraf/dist/esm/opt-arg.js.map +0 -1
- package/node_modules/rimraf/dist/esm/package.json +0 -3
- package/node_modules/rimraf/dist/esm/path-arg.d.ts +0 -4
- package/node_modules/rimraf/dist/esm/path-arg.d.ts.map +0 -1
- package/node_modules/rimraf/dist/esm/path-arg.js +0 -47
- package/node_modules/rimraf/dist/esm/path-arg.js.map +0 -1
- package/node_modules/rimraf/dist/esm/platform.d.ts +0 -3
- package/node_modules/rimraf/dist/esm/platform.d.ts.map +0 -1
- package/node_modules/rimraf/dist/esm/platform.js +0 -2
- package/node_modules/rimraf/dist/esm/platform.js.map +0 -1
- package/node_modules/rimraf/dist/esm/readdir-or-error.d.ts +0 -3
- package/node_modules/rimraf/dist/esm/readdir-or-error.d.ts.map +0 -1
- package/node_modules/rimraf/dist/esm/readdir-or-error.js +0 -14
- package/node_modules/rimraf/dist/esm/readdir-or-error.js.map +0 -1
- package/node_modules/rimraf/dist/esm/retry-busy.d.ts +0 -8
- package/node_modules/rimraf/dist/esm/retry-busy.d.ts.map +0 -1
- package/node_modules/rimraf/dist/esm/retry-busy.js +0 -63
- package/node_modules/rimraf/dist/esm/retry-busy.js.map +0 -1
- package/node_modules/rimraf/dist/esm/rimraf-manual.d.ts +0 -3
- package/node_modules/rimraf/dist/esm/rimraf-manual.d.ts.map +0 -1
- package/node_modules/rimraf/dist/esm/rimraf-manual.js +0 -6
- package/node_modules/rimraf/dist/esm/rimraf-manual.js.map +0 -1
- package/node_modules/rimraf/dist/esm/rimraf-move-remove.d.ts +0 -4
- package/node_modules/rimraf/dist/esm/rimraf-move-remove.d.ts.map +0 -1
- package/node_modules/rimraf/dist/esm/rimraf-move-remove.js +0 -187
- package/node_modules/rimraf/dist/esm/rimraf-move-remove.js.map +0 -1
- package/node_modules/rimraf/dist/esm/rimraf-native.d.ts +0 -4
- package/node_modules/rimraf/dist/esm/rimraf-native.d.ts.map +0 -1
- package/node_modules/rimraf/dist/esm/rimraf-native.js +0 -19
- package/node_modules/rimraf/dist/esm/rimraf-native.js.map +0 -1
- package/node_modules/rimraf/dist/esm/rimraf-posix.d.ts +0 -4
- package/node_modules/rimraf/dist/esm/rimraf-posix.d.ts.map +0 -1
- package/node_modules/rimraf/dist/esm/rimraf-posix.js +0 -118
- package/node_modules/rimraf/dist/esm/rimraf-posix.js.map +0 -1
- package/node_modules/rimraf/dist/esm/rimraf-windows.d.ts +0 -4
- package/node_modules/rimraf/dist/esm/rimraf-windows.d.ts.map +0 -1
- package/node_modules/rimraf/dist/esm/rimraf-windows.js +0 -177
- package/node_modules/rimraf/dist/esm/rimraf-windows.js.map +0 -1
- package/node_modules/rimraf/dist/esm/use-native.d.ts +0 -4
- package/node_modules/rimraf/dist/esm/use-native.d.ts.map +0 -1
- package/node_modules/rimraf/dist/esm/use-native.js +0 -16
- package/node_modules/rimraf/dist/esm/use-native.js.map +0 -1
- package/node_modules/rimraf/node_modules/balanced-match/.github/FUNDING.yml +0 -2
- package/node_modules/rimraf/node_modules/balanced-match/LICENSE.md +0 -21
- package/node_modules/rimraf/node_modules/balanced-match/README.md +0 -97
- package/node_modules/rimraf/node_modules/balanced-match/index.js +0 -62
- package/node_modules/rimraf/node_modules/balanced-match/package.json +0 -48
- package/node_modules/rimraf/node_modules/brace-expansion/.github/FUNDING.yml +0 -2
- package/node_modules/rimraf/node_modules/brace-expansion/LICENSE +0 -21
- package/node_modules/rimraf/node_modules/brace-expansion/README.md +0 -135
- package/node_modules/rimraf/node_modules/brace-expansion/index.js +0 -203
- package/node_modules/rimraf/node_modules/brace-expansion/package.json +0 -49
- package/node_modules/rimraf/node_modules/glob/LICENSE +0 -15
- package/node_modules/rimraf/node_modules/glob/README.md +0 -1265
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/glob.d.ts +0 -388
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/glob.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/glob.js +0 -247
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/glob.js.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/has-magic.d.ts +0 -14
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/has-magic.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/has-magic.js +0 -27
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/has-magic.js.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/ignore.d.ts +0 -24
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/ignore.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/ignore.js +0 -119
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/ignore.js.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/index.d.ts +0 -97
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/index.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/index.js +0 -68
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/index.js.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/package.json +0 -3
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/pattern.d.ts +0 -76
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/pattern.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/pattern.js +0 -219
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/pattern.js.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/processor.d.ts +0 -59
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/processor.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/processor.js +0 -301
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/processor.js.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/walker.d.ts +0 -97
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/walker.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/walker.js +0 -387
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/walker.js.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/esm/bin.d.mts +0 -3
- package/node_modules/rimraf/node_modules/glob/dist/esm/bin.d.mts.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/esm/bin.mjs +0 -346
- package/node_modules/rimraf/node_modules/glob/dist/esm/bin.mjs.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/esm/glob.d.ts +0 -388
- package/node_modules/rimraf/node_modules/glob/dist/esm/glob.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/esm/glob.js +0 -243
- package/node_modules/rimraf/node_modules/glob/dist/esm/glob.js.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/esm/has-magic.d.ts +0 -14
- package/node_modules/rimraf/node_modules/glob/dist/esm/has-magic.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/esm/has-magic.js +0 -23
- package/node_modules/rimraf/node_modules/glob/dist/esm/has-magic.js.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/esm/ignore.d.ts +0 -24
- package/node_modules/rimraf/node_modules/glob/dist/esm/ignore.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/esm/ignore.js +0 -115
- package/node_modules/rimraf/node_modules/glob/dist/esm/ignore.js.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/esm/index.d.ts +0 -97
- package/node_modules/rimraf/node_modules/glob/dist/esm/index.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/esm/index.js +0 -55
- package/node_modules/rimraf/node_modules/glob/dist/esm/index.js.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/esm/package.json +0 -3
- package/node_modules/rimraf/node_modules/glob/dist/esm/pattern.d.ts +0 -76
- package/node_modules/rimraf/node_modules/glob/dist/esm/pattern.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/esm/pattern.js +0 -215
- package/node_modules/rimraf/node_modules/glob/dist/esm/pattern.js.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/esm/processor.d.ts +0 -59
- package/node_modules/rimraf/node_modules/glob/dist/esm/processor.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/esm/processor.js +0 -294
- package/node_modules/rimraf/node_modules/glob/dist/esm/processor.js.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/esm/walker.d.ts +0 -97
- package/node_modules/rimraf/node_modules/glob/dist/esm/walker.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/esm/walker.js +0 -381
- package/node_modules/rimraf/node_modules/glob/dist/esm/walker.js.map +0 -1
- package/node_modules/rimraf/node_modules/glob/package.json +0 -99
- package/node_modules/rimraf/node_modules/lru-cache/LICENSE +0 -15
- package/node_modules/rimraf/node_modules/lru-cache/README.md +0 -331
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/index.d.ts +0 -1277
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/index.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/index.js +0 -1546
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/index.js.map +0 -1
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/index.min.js +0 -2
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/index.min.js.map +0 -7
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/package.json +0 -3
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/index.d.ts +0 -1277
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/index.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/index.js +0 -1542
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/index.js.map +0 -1
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/index.min.js +0 -2
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/index.min.js.map +0 -7
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/package.json +0 -3
- package/node_modules/rimraf/node_modules/lru-cache/package.json +0 -116
- package/node_modules/rimraf/node_modules/minimatch/LICENSE +0 -15
- package/node_modules/rimraf/node_modules/minimatch/README.md +0 -491
- package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts +0 -2
- package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +0 -14
- package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map +0 -1
- package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/ast.d.ts +0 -20
- package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/ast.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/ast.js +0 -747
- package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/ast.js.map +0 -1
- package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts +0 -8
- package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/brace-expressions.js +0 -152
- package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/brace-expressions.js.map +0 -1
- package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/escape.d.ts +0 -12
- package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/escape.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/escape.js +0 -22
- package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/escape.js.map +0 -1
- package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/index.d.ts +0 -98
- package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/index.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/index.js +0 -1023
- package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/index.js.map +0 -1
- package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/package.json +0 -3
- package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/unescape.d.ts +0 -17
- package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/unescape.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/unescape.js +0 -24
- package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/unescape.js.map +0 -1
- package/node_modules/rimraf/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts +0 -2
- package/node_modules/rimraf/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/minimatch/dist/esm/assert-valid-pattern.js +0 -10
- package/node_modules/rimraf/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map +0 -1
- package/node_modules/rimraf/node_modules/minimatch/dist/esm/ast.d.ts +0 -20
- package/node_modules/rimraf/node_modules/minimatch/dist/esm/ast.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/minimatch/dist/esm/ast.js +0 -743
- package/node_modules/rimraf/node_modules/minimatch/dist/esm/ast.js.map +0 -1
- package/node_modules/rimraf/node_modules/minimatch/dist/esm/brace-expressions.d.ts +0 -8
- package/node_modules/rimraf/node_modules/minimatch/dist/esm/brace-expressions.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/minimatch/dist/esm/brace-expressions.js +0 -148
- package/node_modules/rimraf/node_modules/minimatch/dist/esm/brace-expressions.js.map +0 -1
- package/node_modules/rimraf/node_modules/minimatch/dist/esm/escape.d.ts +0 -12
- package/node_modules/rimraf/node_modules/minimatch/dist/esm/escape.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/minimatch/dist/esm/escape.js +0 -18
- package/node_modules/rimraf/node_modules/minimatch/dist/esm/escape.js.map +0 -1
- package/node_modules/rimraf/node_modules/minimatch/dist/esm/index.d.ts +0 -98
- package/node_modules/rimraf/node_modules/minimatch/dist/esm/index.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/minimatch/dist/esm/index.js +0 -1007
- package/node_modules/rimraf/node_modules/minimatch/dist/esm/index.js.map +0 -1
- package/node_modules/rimraf/node_modules/minimatch/dist/esm/package.json +0 -3
- package/node_modules/rimraf/node_modules/minimatch/dist/esm/unescape.d.ts +0 -17
- package/node_modules/rimraf/node_modules/minimatch/dist/esm/unescape.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/minimatch/dist/esm/unescape.js +0 -20
- package/node_modules/rimraf/node_modules/minimatch/dist/esm/unescape.js.map +0 -1
- package/node_modules/rimraf/node_modules/minimatch/package.json +0 -82
- package/node_modules/rimraf/node_modules/path-scurry/LICENSE.md +0 -55
- package/node_modules/rimraf/node_modules/path-scurry/README.md +0 -636
- package/node_modules/rimraf/node_modules/path-scurry/dist/commonjs/index.d.ts +0 -1116
- package/node_modules/rimraf/node_modules/path-scurry/dist/commonjs/index.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/path-scurry/dist/commonjs/index.js +0 -2014
- package/node_modules/rimraf/node_modules/path-scurry/dist/commonjs/index.js.map +0 -1
- package/node_modules/rimraf/node_modules/path-scurry/dist/commonjs/package.json +0 -3
- package/node_modules/rimraf/node_modules/path-scurry/dist/esm/index.d.ts +0 -1116
- package/node_modules/rimraf/node_modules/path-scurry/dist/esm/index.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/path-scurry/dist/esm/index.js +0 -1979
- package/node_modules/rimraf/node_modules/path-scurry/dist/esm/index.js.map +0 -1
- package/node_modules/rimraf/node_modules/path-scurry/dist/esm/package.json +0 -3
- package/node_modules/rimraf/node_modules/path-scurry/package.json +0 -89
- package/node_modules/rimraf/package.json +0 -89
- package/node_modules/shebang-command/index.js +0 -19
- package/node_modules/shebang-command/license +0 -9
- package/node_modules/shebang-command/package.json +0 -34
- package/node_modules/shebang-command/readme.md +0 -34
- package/node_modules/shebang-regex/index.d.ts +0 -22
- package/node_modules/shebang-regex/index.js +0 -2
- package/node_modules/shebang-regex/license +0 -9
- package/node_modules/shebang-regex/package.json +0 -35
- package/node_modules/shebang-regex/readme.md +0 -33
- package/node_modules/string-width-cjs/index.d.ts +0 -29
- package/node_modules/string-width-cjs/index.js +0 -47
- package/node_modules/string-width-cjs/license +0 -9
- package/node_modules/string-width-cjs/node_modules/ansi-regex/index.d.ts +0 -37
- package/node_modules/string-width-cjs/node_modules/ansi-regex/index.js +0 -10
- package/node_modules/string-width-cjs/node_modules/ansi-regex/license +0 -9
- package/node_modules/string-width-cjs/node_modules/ansi-regex/package.json +0 -55
- package/node_modules/string-width-cjs/node_modules/ansi-regex/readme.md +0 -78
- package/node_modules/string-width-cjs/node_modules/strip-ansi/index.d.ts +0 -17
- package/node_modules/string-width-cjs/node_modules/strip-ansi/index.js +0 -4
- package/node_modules/string-width-cjs/node_modules/strip-ansi/license +0 -9
- package/node_modules/string-width-cjs/node_modules/strip-ansi/package.json +0 -54
- package/node_modules/string-width-cjs/node_modules/strip-ansi/readme.md +0 -46
- package/node_modules/string-width-cjs/package.json +0 -56
- package/node_modules/string-width-cjs/readme.md +0 -50
- package/node_modules/strip-ansi-cjs/index.d.ts +0 -17
- package/node_modules/strip-ansi-cjs/index.js +0 -4
- package/node_modules/strip-ansi-cjs/license +0 -9
- package/node_modules/strip-ansi-cjs/node_modules/ansi-regex/index.d.ts +0 -37
- package/node_modules/strip-ansi-cjs/node_modules/ansi-regex/index.js +0 -10
- package/node_modules/strip-ansi-cjs/node_modules/ansi-regex/license +0 -9
- package/node_modules/strip-ansi-cjs/node_modules/ansi-regex/package.json +0 -55
- package/node_modules/strip-ansi-cjs/node_modules/ansi-regex/readme.md +0 -78
- package/node_modules/strip-ansi-cjs/package.json +0 -54
- package/node_modules/strip-ansi-cjs/readme.md +0 -46
- package/node_modules/which/CHANGELOG.md +0 -166
- package/node_modules/which/LICENSE +0 -15
- package/node_modules/which/README.md +0 -54
- package/node_modules/which/bin/node-which +0 -52
- package/node_modules/which/package.json +0 -43
- package/node_modules/which/which.js +0 -125
- package/node_modules/wrap-ansi-cjs/index.js +0 -216
- package/node_modules/wrap-ansi-cjs/license +0 -9
- package/node_modules/wrap-ansi-cjs/node_modules/ansi-regex/index.d.ts +0 -37
- package/node_modules/wrap-ansi-cjs/node_modules/ansi-regex/index.js +0 -10
- package/node_modules/wrap-ansi-cjs/node_modules/ansi-regex/license +0 -9
- package/node_modules/wrap-ansi-cjs/node_modules/ansi-regex/package.json +0 -55
- package/node_modules/wrap-ansi-cjs/node_modules/ansi-regex/readme.md +0 -78
- package/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/index.d.ts +0 -17
- package/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/index.js +0 -4
- package/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/license +0 -9
- package/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/package.json +0 -54
- package/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/readme.md +0 -46
- package/node_modules/wrap-ansi-cjs/package.json +0 -62
- package/node_modules/wrap-ansi-cjs/readme.md +0 -91
|
@@ -1,317 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const align = {
|
|
4
|
-
right: alignRight,
|
|
5
|
-
center: alignCenter
|
|
6
|
-
};
|
|
7
|
-
const top = 0;
|
|
8
|
-
const right = 1;
|
|
9
|
-
const bottom = 2;
|
|
10
|
-
const left = 3;
|
|
11
|
-
class UI {
|
|
12
|
-
constructor(opts) {
|
|
13
|
-
var _a;
|
|
14
|
-
this.width = opts.width;
|
|
15
|
-
/* c8 ignore start */
|
|
16
|
-
this.wrap = (_a = opts.wrap) !== null && _a !== void 0 ? _a : true;
|
|
17
|
-
/* c8 ignore stop */
|
|
18
|
-
this.rows = [];
|
|
19
|
-
}
|
|
20
|
-
span(...args) {
|
|
21
|
-
const cols = this.div(...args);
|
|
22
|
-
cols.span = true;
|
|
23
|
-
}
|
|
24
|
-
resetOutput() {
|
|
25
|
-
this.rows = [];
|
|
26
|
-
}
|
|
27
|
-
div(...args) {
|
|
28
|
-
if (args.length === 0) {
|
|
29
|
-
this.div('');
|
|
30
|
-
}
|
|
31
|
-
if (this.wrap && this.shouldApplyLayoutDSL(...args) && typeof args[0] === 'string') {
|
|
32
|
-
return this.applyLayoutDSL(args[0]);
|
|
33
|
-
}
|
|
34
|
-
const cols = args.map(arg => {
|
|
35
|
-
if (typeof arg === 'string') {
|
|
36
|
-
return this.colFromString(arg);
|
|
37
|
-
}
|
|
38
|
-
return arg;
|
|
39
|
-
});
|
|
40
|
-
this.rows.push(cols);
|
|
41
|
-
return cols;
|
|
42
|
-
}
|
|
43
|
-
shouldApplyLayoutDSL(...args) {
|
|
44
|
-
return args.length === 1 && typeof args[0] === 'string' &&
|
|
45
|
-
/[\t\n]/.test(args[0]);
|
|
46
|
-
}
|
|
47
|
-
applyLayoutDSL(str) {
|
|
48
|
-
const rows = str.split('\n').map(row => row.split('\t'));
|
|
49
|
-
let leftColumnWidth = 0;
|
|
50
|
-
// simple heuristic for layout, make sure the
|
|
51
|
-
// second column lines up along the left-hand.
|
|
52
|
-
// don't allow the first column to take up more
|
|
53
|
-
// than 50% of the screen.
|
|
54
|
-
rows.forEach(columns => {
|
|
55
|
-
if (columns.length > 1 && mixin.stringWidth(columns[0]) > leftColumnWidth) {
|
|
56
|
-
leftColumnWidth = Math.min(Math.floor(this.width * 0.5), mixin.stringWidth(columns[0]));
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
// generate a table:
|
|
60
|
-
// replacing ' ' with padding calculations.
|
|
61
|
-
// using the algorithmically generated width.
|
|
62
|
-
rows.forEach(columns => {
|
|
63
|
-
this.div(...columns.map((r, i) => {
|
|
64
|
-
return {
|
|
65
|
-
text: r.trim(),
|
|
66
|
-
padding: this.measurePadding(r),
|
|
67
|
-
width: (i === 0 && columns.length > 1) ? leftColumnWidth : undefined
|
|
68
|
-
};
|
|
69
|
-
}));
|
|
70
|
-
});
|
|
71
|
-
return this.rows[this.rows.length - 1];
|
|
72
|
-
}
|
|
73
|
-
colFromString(text) {
|
|
74
|
-
return {
|
|
75
|
-
text,
|
|
76
|
-
padding: this.measurePadding(text)
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
measurePadding(str) {
|
|
80
|
-
// measure padding without ansi escape codes
|
|
81
|
-
const noAnsi = mixin.stripAnsi(str);
|
|
82
|
-
return [0, noAnsi.match(/\s*$/)[0].length, 0, noAnsi.match(/^\s*/)[0].length];
|
|
83
|
-
}
|
|
84
|
-
toString() {
|
|
85
|
-
const lines = [];
|
|
86
|
-
this.rows.forEach(row => {
|
|
87
|
-
this.rowToString(row, lines);
|
|
88
|
-
});
|
|
89
|
-
// don't display any lines with the
|
|
90
|
-
// hidden flag set.
|
|
91
|
-
return lines
|
|
92
|
-
.filter(line => !line.hidden)
|
|
93
|
-
.map(line => line.text)
|
|
94
|
-
.join('\n');
|
|
95
|
-
}
|
|
96
|
-
rowToString(row, lines) {
|
|
97
|
-
this.rasterize(row).forEach((rrow, r) => {
|
|
98
|
-
let str = '';
|
|
99
|
-
rrow.forEach((col, c) => {
|
|
100
|
-
const { width } = row[c]; // the width with padding.
|
|
101
|
-
const wrapWidth = this.negatePadding(row[c]); // the width without padding.
|
|
102
|
-
let ts = col; // temporary string used during alignment/padding.
|
|
103
|
-
if (wrapWidth > mixin.stringWidth(col)) {
|
|
104
|
-
ts += ' '.repeat(wrapWidth - mixin.stringWidth(col));
|
|
105
|
-
}
|
|
106
|
-
// align the string within its column.
|
|
107
|
-
if (row[c].align && row[c].align !== 'left' && this.wrap) {
|
|
108
|
-
const fn = align[row[c].align];
|
|
109
|
-
ts = fn(ts, wrapWidth);
|
|
110
|
-
if (mixin.stringWidth(ts) < wrapWidth) {
|
|
111
|
-
/* c8 ignore start */
|
|
112
|
-
const w = width || 0;
|
|
113
|
-
/* c8 ignore stop */
|
|
114
|
-
ts += ' '.repeat(w - mixin.stringWidth(ts) - 1);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
// apply border and padding to string.
|
|
118
|
-
const padding = row[c].padding || [0, 0, 0, 0];
|
|
119
|
-
if (padding[left]) {
|
|
120
|
-
str += ' '.repeat(padding[left]);
|
|
121
|
-
}
|
|
122
|
-
str += addBorder(row[c], ts, '| ');
|
|
123
|
-
str += ts;
|
|
124
|
-
str += addBorder(row[c], ts, ' |');
|
|
125
|
-
if (padding[right]) {
|
|
126
|
-
str += ' '.repeat(padding[right]);
|
|
127
|
-
}
|
|
128
|
-
// if prior row is span, try to render the
|
|
129
|
-
// current row on the prior line.
|
|
130
|
-
if (r === 0 && lines.length > 0) {
|
|
131
|
-
str = this.renderInline(str, lines[lines.length - 1]);
|
|
132
|
-
}
|
|
133
|
-
});
|
|
134
|
-
// remove trailing whitespace.
|
|
135
|
-
lines.push({
|
|
136
|
-
text: str.replace(/ +$/, ''),
|
|
137
|
-
span: row.span
|
|
138
|
-
});
|
|
139
|
-
});
|
|
140
|
-
return lines;
|
|
141
|
-
}
|
|
142
|
-
// if the full 'source' can render in
|
|
143
|
-
// the target line, do so.
|
|
144
|
-
renderInline(source, previousLine) {
|
|
145
|
-
const match = source.match(/^ */);
|
|
146
|
-
/* c8 ignore start */
|
|
147
|
-
const leadingWhitespace = match ? match[0].length : 0;
|
|
148
|
-
/* c8 ignore stop */
|
|
149
|
-
const target = previousLine.text;
|
|
150
|
-
const targetTextWidth = mixin.stringWidth(target.trimEnd());
|
|
151
|
-
if (!previousLine.span) {
|
|
152
|
-
return source;
|
|
153
|
-
}
|
|
154
|
-
// if we're not applying wrapping logic,
|
|
155
|
-
// just always append to the span.
|
|
156
|
-
if (!this.wrap) {
|
|
157
|
-
previousLine.hidden = true;
|
|
158
|
-
return target + source;
|
|
159
|
-
}
|
|
160
|
-
if (leadingWhitespace < targetTextWidth) {
|
|
161
|
-
return source;
|
|
162
|
-
}
|
|
163
|
-
previousLine.hidden = true;
|
|
164
|
-
return target.trimEnd() + ' '.repeat(leadingWhitespace - targetTextWidth) + source.trimStart();
|
|
165
|
-
}
|
|
166
|
-
rasterize(row) {
|
|
167
|
-
const rrows = [];
|
|
168
|
-
const widths = this.columnWidths(row);
|
|
169
|
-
let wrapped;
|
|
170
|
-
// word wrap all columns, and create
|
|
171
|
-
// a data-structure that is easy to rasterize.
|
|
172
|
-
row.forEach((col, c) => {
|
|
173
|
-
// leave room for left and right padding.
|
|
174
|
-
col.width = widths[c];
|
|
175
|
-
if (this.wrap) {
|
|
176
|
-
wrapped = mixin.wrap(col.text, this.negatePadding(col), { hard: true }).split('\n');
|
|
177
|
-
}
|
|
178
|
-
else {
|
|
179
|
-
wrapped = col.text.split('\n');
|
|
180
|
-
}
|
|
181
|
-
if (col.border) {
|
|
182
|
-
wrapped.unshift('.' + '-'.repeat(this.negatePadding(col) + 2) + '.');
|
|
183
|
-
wrapped.push("'" + '-'.repeat(this.negatePadding(col) + 2) + "'");
|
|
184
|
-
}
|
|
185
|
-
// add top and bottom padding.
|
|
186
|
-
if (col.padding) {
|
|
187
|
-
wrapped.unshift(...new Array(col.padding[top] || 0).fill(''));
|
|
188
|
-
wrapped.push(...new Array(col.padding[bottom] || 0).fill(''));
|
|
189
|
-
}
|
|
190
|
-
wrapped.forEach((str, r) => {
|
|
191
|
-
if (!rrows[r]) {
|
|
192
|
-
rrows.push([]);
|
|
193
|
-
}
|
|
194
|
-
const rrow = rrows[r];
|
|
195
|
-
for (let i = 0; i < c; i++) {
|
|
196
|
-
if (rrow[i] === undefined) {
|
|
197
|
-
rrow.push('');
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
rrow.push(str);
|
|
201
|
-
});
|
|
202
|
-
});
|
|
203
|
-
return rrows;
|
|
204
|
-
}
|
|
205
|
-
negatePadding(col) {
|
|
206
|
-
/* c8 ignore start */
|
|
207
|
-
let wrapWidth = col.width || 0;
|
|
208
|
-
/* c8 ignore stop */
|
|
209
|
-
if (col.padding) {
|
|
210
|
-
wrapWidth -= (col.padding[left] || 0) + (col.padding[right] || 0);
|
|
211
|
-
}
|
|
212
|
-
if (col.border) {
|
|
213
|
-
wrapWidth -= 4;
|
|
214
|
-
}
|
|
215
|
-
return wrapWidth;
|
|
216
|
-
}
|
|
217
|
-
columnWidths(row) {
|
|
218
|
-
if (!this.wrap) {
|
|
219
|
-
return row.map(col => {
|
|
220
|
-
return col.width || mixin.stringWidth(col.text);
|
|
221
|
-
});
|
|
222
|
-
}
|
|
223
|
-
let unset = row.length;
|
|
224
|
-
let remainingWidth = this.width;
|
|
225
|
-
// column widths can be set in config.
|
|
226
|
-
const widths = row.map(col => {
|
|
227
|
-
if (col.width) {
|
|
228
|
-
unset--;
|
|
229
|
-
remainingWidth -= col.width;
|
|
230
|
-
return col.width;
|
|
231
|
-
}
|
|
232
|
-
return undefined;
|
|
233
|
-
});
|
|
234
|
-
// any unset widths should be calculated.
|
|
235
|
-
/* c8 ignore start */
|
|
236
|
-
const unsetWidth = unset ? Math.floor(remainingWidth / unset) : 0;
|
|
237
|
-
/* c8 ignore stop */
|
|
238
|
-
return widths.map((w, i) => {
|
|
239
|
-
if (w === undefined) {
|
|
240
|
-
return Math.max(unsetWidth, _minWidth(row[i]));
|
|
241
|
-
}
|
|
242
|
-
return w;
|
|
243
|
-
});
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
function addBorder(col, ts, style) {
|
|
247
|
-
if (col.border) {
|
|
248
|
-
if (/[.']-+[.']/.test(ts)) {
|
|
249
|
-
return '';
|
|
250
|
-
}
|
|
251
|
-
if (ts.trim().length !== 0) {
|
|
252
|
-
return style;
|
|
253
|
-
}
|
|
254
|
-
return ' ';
|
|
255
|
-
}
|
|
256
|
-
return '';
|
|
257
|
-
}
|
|
258
|
-
// calculates the minimum width of
|
|
259
|
-
// a column, based on padding preferences.
|
|
260
|
-
function _minWidth(col) {
|
|
261
|
-
const padding = col.padding || [];
|
|
262
|
-
const minWidth = 1 + (padding[left] || 0) + (padding[right] || 0);
|
|
263
|
-
if (col.border) {
|
|
264
|
-
return minWidth + 4;
|
|
265
|
-
}
|
|
266
|
-
return minWidth;
|
|
267
|
-
}
|
|
268
|
-
function getWindowWidth() {
|
|
269
|
-
/* c8 ignore start */
|
|
270
|
-
if (typeof process === 'object' && process.stdout && process.stdout.columns) {
|
|
271
|
-
return process.stdout.columns;
|
|
272
|
-
}
|
|
273
|
-
return 80;
|
|
274
|
-
}
|
|
275
|
-
/* c8 ignore stop */
|
|
276
|
-
function alignRight(str, width) {
|
|
277
|
-
str = str.trim();
|
|
278
|
-
const strWidth = mixin.stringWidth(str);
|
|
279
|
-
if (strWidth < width) {
|
|
280
|
-
return ' '.repeat(width - strWidth) + str;
|
|
281
|
-
}
|
|
282
|
-
return str;
|
|
283
|
-
}
|
|
284
|
-
function alignCenter(str, width) {
|
|
285
|
-
str = str.trim();
|
|
286
|
-
const strWidth = mixin.stringWidth(str);
|
|
287
|
-
/* c8 ignore start */
|
|
288
|
-
if (strWidth >= width) {
|
|
289
|
-
return str;
|
|
290
|
-
}
|
|
291
|
-
/* c8 ignore stop */
|
|
292
|
-
return ' '.repeat((width - strWidth) >> 1) + str;
|
|
293
|
-
}
|
|
294
|
-
let mixin;
|
|
295
|
-
function cliui(opts, _mixin) {
|
|
296
|
-
mixin = _mixin;
|
|
297
|
-
return new UI({
|
|
298
|
-
/* c8 ignore start */
|
|
299
|
-
width: (opts === null || opts === void 0 ? void 0 : opts.width) || getWindowWidth(),
|
|
300
|
-
wrap: opts === null || opts === void 0 ? void 0 : opts.wrap
|
|
301
|
-
/* c8 ignore stop */
|
|
302
|
-
});
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
// Bootstrap cliui with CommonJS dependencies:
|
|
306
|
-
const stringWidth = require('string-width-cjs');
|
|
307
|
-
const stripAnsi = require('strip-ansi-cjs');
|
|
308
|
-
const wrap = require('wrap-ansi-cjs');
|
|
309
|
-
function ui(opts) {
|
|
310
|
-
return cliui(opts, {
|
|
311
|
-
stringWidth,
|
|
312
|
-
stripAnsi,
|
|
313
|
-
wrap
|
|
314
|
-
});
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
module.exports = ui;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
interface UIOptions {
|
|
2
|
-
width: number;
|
|
3
|
-
wrap?: boolean;
|
|
4
|
-
rows?: string[];
|
|
5
|
-
}
|
|
6
|
-
interface Column {
|
|
7
|
-
text: string;
|
|
8
|
-
width?: number;
|
|
9
|
-
align?: "right" | "left" | "center";
|
|
10
|
-
padding: number[];
|
|
11
|
-
border?: boolean;
|
|
12
|
-
}
|
|
13
|
-
interface ColumnArray extends Array<Column> {
|
|
14
|
-
span: boolean;
|
|
15
|
-
}
|
|
16
|
-
interface Line {
|
|
17
|
-
hidden?: boolean;
|
|
18
|
-
text: string;
|
|
19
|
-
span?: boolean;
|
|
20
|
-
}
|
|
21
|
-
declare class UI {
|
|
22
|
-
width: number;
|
|
23
|
-
wrap: boolean;
|
|
24
|
-
rows: ColumnArray[];
|
|
25
|
-
constructor(opts: UIOptions);
|
|
26
|
-
span(...args: ColumnArray): void;
|
|
27
|
-
resetOutput(): void;
|
|
28
|
-
div(...args: (Column | string)[]): ColumnArray;
|
|
29
|
-
private shouldApplyLayoutDSL;
|
|
30
|
-
private applyLayoutDSL;
|
|
31
|
-
private colFromString;
|
|
32
|
-
private measurePadding;
|
|
33
|
-
toString(): string;
|
|
34
|
-
rowToString(row: ColumnArray, lines: Line[]): Line[];
|
|
35
|
-
// if the full 'source' can render in
|
|
36
|
-
// the target line, do so.
|
|
37
|
-
private renderInline;
|
|
38
|
-
private rasterize;
|
|
39
|
-
private negatePadding;
|
|
40
|
-
private columnWidths;
|
|
41
|
-
}
|
|
42
|
-
declare function ui(opts: UIOptions): UI;
|
|
43
|
-
export { ui as default };
|
|
@@ -1,302 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
const align = {
|
|
3
|
-
right: alignRight,
|
|
4
|
-
center: alignCenter
|
|
5
|
-
};
|
|
6
|
-
const top = 0;
|
|
7
|
-
const right = 1;
|
|
8
|
-
const bottom = 2;
|
|
9
|
-
const left = 3;
|
|
10
|
-
export class UI {
|
|
11
|
-
constructor(opts) {
|
|
12
|
-
var _a;
|
|
13
|
-
this.width = opts.width;
|
|
14
|
-
/* c8 ignore start */
|
|
15
|
-
this.wrap = (_a = opts.wrap) !== null && _a !== void 0 ? _a : true;
|
|
16
|
-
/* c8 ignore stop */
|
|
17
|
-
this.rows = [];
|
|
18
|
-
}
|
|
19
|
-
span(...args) {
|
|
20
|
-
const cols = this.div(...args);
|
|
21
|
-
cols.span = true;
|
|
22
|
-
}
|
|
23
|
-
resetOutput() {
|
|
24
|
-
this.rows = [];
|
|
25
|
-
}
|
|
26
|
-
div(...args) {
|
|
27
|
-
if (args.length === 0) {
|
|
28
|
-
this.div('');
|
|
29
|
-
}
|
|
30
|
-
if (this.wrap && this.shouldApplyLayoutDSL(...args) && typeof args[0] === 'string') {
|
|
31
|
-
return this.applyLayoutDSL(args[0]);
|
|
32
|
-
}
|
|
33
|
-
const cols = args.map(arg => {
|
|
34
|
-
if (typeof arg === 'string') {
|
|
35
|
-
return this.colFromString(arg);
|
|
36
|
-
}
|
|
37
|
-
return arg;
|
|
38
|
-
});
|
|
39
|
-
this.rows.push(cols);
|
|
40
|
-
return cols;
|
|
41
|
-
}
|
|
42
|
-
shouldApplyLayoutDSL(...args) {
|
|
43
|
-
return args.length === 1 && typeof args[0] === 'string' &&
|
|
44
|
-
/[\t\n]/.test(args[0]);
|
|
45
|
-
}
|
|
46
|
-
applyLayoutDSL(str) {
|
|
47
|
-
const rows = str.split('\n').map(row => row.split('\t'));
|
|
48
|
-
let leftColumnWidth = 0;
|
|
49
|
-
// simple heuristic for layout, make sure the
|
|
50
|
-
// second column lines up along the left-hand.
|
|
51
|
-
// don't allow the first column to take up more
|
|
52
|
-
// than 50% of the screen.
|
|
53
|
-
rows.forEach(columns => {
|
|
54
|
-
if (columns.length > 1 && mixin.stringWidth(columns[0]) > leftColumnWidth) {
|
|
55
|
-
leftColumnWidth = Math.min(Math.floor(this.width * 0.5), mixin.stringWidth(columns[0]));
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
// generate a table:
|
|
59
|
-
// replacing ' ' with padding calculations.
|
|
60
|
-
// using the algorithmically generated width.
|
|
61
|
-
rows.forEach(columns => {
|
|
62
|
-
this.div(...columns.map((r, i) => {
|
|
63
|
-
return {
|
|
64
|
-
text: r.trim(),
|
|
65
|
-
padding: this.measurePadding(r),
|
|
66
|
-
width: (i === 0 && columns.length > 1) ? leftColumnWidth : undefined
|
|
67
|
-
};
|
|
68
|
-
}));
|
|
69
|
-
});
|
|
70
|
-
return this.rows[this.rows.length - 1];
|
|
71
|
-
}
|
|
72
|
-
colFromString(text) {
|
|
73
|
-
return {
|
|
74
|
-
text,
|
|
75
|
-
padding: this.measurePadding(text)
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
measurePadding(str) {
|
|
79
|
-
// measure padding without ansi escape codes
|
|
80
|
-
const noAnsi = mixin.stripAnsi(str);
|
|
81
|
-
return [0, noAnsi.match(/\s*$/)[0].length, 0, noAnsi.match(/^\s*/)[0].length];
|
|
82
|
-
}
|
|
83
|
-
toString() {
|
|
84
|
-
const lines = [];
|
|
85
|
-
this.rows.forEach(row => {
|
|
86
|
-
this.rowToString(row, lines);
|
|
87
|
-
});
|
|
88
|
-
// don't display any lines with the
|
|
89
|
-
// hidden flag set.
|
|
90
|
-
return lines
|
|
91
|
-
.filter(line => !line.hidden)
|
|
92
|
-
.map(line => line.text)
|
|
93
|
-
.join('\n');
|
|
94
|
-
}
|
|
95
|
-
rowToString(row, lines) {
|
|
96
|
-
this.rasterize(row).forEach((rrow, r) => {
|
|
97
|
-
let str = '';
|
|
98
|
-
rrow.forEach((col, c) => {
|
|
99
|
-
const { width } = row[c]; // the width with padding.
|
|
100
|
-
const wrapWidth = this.negatePadding(row[c]); // the width without padding.
|
|
101
|
-
let ts = col; // temporary string used during alignment/padding.
|
|
102
|
-
if (wrapWidth > mixin.stringWidth(col)) {
|
|
103
|
-
ts += ' '.repeat(wrapWidth - mixin.stringWidth(col));
|
|
104
|
-
}
|
|
105
|
-
// align the string within its column.
|
|
106
|
-
if (row[c].align && row[c].align !== 'left' && this.wrap) {
|
|
107
|
-
const fn = align[row[c].align];
|
|
108
|
-
ts = fn(ts, wrapWidth);
|
|
109
|
-
if (mixin.stringWidth(ts) < wrapWidth) {
|
|
110
|
-
/* c8 ignore start */
|
|
111
|
-
const w = width || 0;
|
|
112
|
-
/* c8 ignore stop */
|
|
113
|
-
ts += ' '.repeat(w - mixin.stringWidth(ts) - 1);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
// apply border and padding to string.
|
|
117
|
-
const padding = row[c].padding || [0, 0, 0, 0];
|
|
118
|
-
if (padding[left]) {
|
|
119
|
-
str += ' '.repeat(padding[left]);
|
|
120
|
-
}
|
|
121
|
-
str += addBorder(row[c], ts, '| ');
|
|
122
|
-
str += ts;
|
|
123
|
-
str += addBorder(row[c], ts, ' |');
|
|
124
|
-
if (padding[right]) {
|
|
125
|
-
str += ' '.repeat(padding[right]);
|
|
126
|
-
}
|
|
127
|
-
// if prior row is span, try to render the
|
|
128
|
-
// current row on the prior line.
|
|
129
|
-
if (r === 0 && lines.length > 0) {
|
|
130
|
-
str = this.renderInline(str, lines[lines.length - 1]);
|
|
131
|
-
}
|
|
132
|
-
});
|
|
133
|
-
// remove trailing whitespace.
|
|
134
|
-
lines.push({
|
|
135
|
-
text: str.replace(/ +$/, ''),
|
|
136
|
-
span: row.span
|
|
137
|
-
});
|
|
138
|
-
});
|
|
139
|
-
return lines;
|
|
140
|
-
}
|
|
141
|
-
// if the full 'source' can render in
|
|
142
|
-
// the target line, do so.
|
|
143
|
-
renderInline(source, previousLine) {
|
|
144
|
-
const match = source.match(/^ */);
|
|
145
|
-
/* c8 ignore start */
|
|
146
|
-
const leadingWhitespace = match ? match[0].length : 0;
|
|
147
|
-
/* c8 ignore stop */
|
|
148
|
-
const target = previousLine.text;
|
|
149
|
-
const targetTextWidth = mixin.stringWidth(target.trimEnd());
|
|
150
|
-
if (!previousLine.span) {
|
|
151
|
-
return source;
|
|
152
|
-
}
|
|
153
|
-
// if we're not applying wrapping logic,
|
|
154
|
-
// just always append to the span.
|
|
155
|
-
if (!this.wrap) {
|
|
156
|
-
previousLine.hidden = true;
|
|
157
|
-
return target + source;
|
|
158
|
-
}
|
|
159
|
-
if (leadingWhitespace < targetTextWidth) {
|
|
160
|
-
return source;
|
|
161
|
-
}
|
|
162
|
-
previousLine.hidden = true;
|
|
163
|
-
return target.trimEnd() + ' '.repeat(leadingWhitespace - targetTextWidth) + source.trimStart();
|
|
164
|
-
}
|
|
165
|
-
rasterize(row) {
|
|
166
|
-
const rrows = [];
|
|
167
|
-
const widths = this.columnWidths(row);
|
|
168
|
-
let wrapped;
|
|
169
|
-
// word wrap all columns, and create
|
|
170
|
-
// a data-structure that is easy to rasterize.
|
|
171
|
-
row.forEach((col, c) => {
|
|
172
|
-
// leave room for left and right padding.
|
|
173
|
-
col.width = widths[c];
|
|
174
|
-
if (this.wrap) {
|
|
175
|
-
wrapped = mixin.wrap(col.text, this.negatePadding(col), { hard: true }).split('\n');
|
|
176
|
-
}
|
|
177
|
-
else {
|
|
178
|
-
wrapped = col.text.split('\n');
|
|
179
|
-
}
|
|
180
|
-
if (col.border) {
|
|
181
|
-
wrapped.unshift('.' + '-'.repeat(this.negatePadding(col) + 2) + '.');
|
|
182
|
-
wrapped.push("'" + '-'.repeat(this.negatePadding(col) + 2) + "'");
|
|
183
|
-
}
|
|
184
|
-
// add top and bottom padding.
|
|
185
|
-
if (col.padding) {
|
|
186
|
-
wrapped.unshift(...new Array(col.padding[top] || 0).fill(''));
|
|
187
|
-
wrapped.push(...new Array(col.padding[bottom] || 0).fill(''));
|
|
188
|
-
}
|
|
189
|
-
wrapped.forEach((str, r) => {
|
|
190
|
-
if (!rrows[r]) {
|
|
191
|
-
rrows.push([]);
|
|
192
|
-
}
|
|
193
|
-
const rrow = rrows[r];
|
|
194
|
-
for (let i = 0; i < c; i++) {
|
|
195
|
-
if (rrow[i] === undefined) {
|
|
196
|
-
rrow.push('');
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
rrow.push(str);
|
|
200
|
-
});
|
|
201
|
-
});
|
|
202
|
-
return rrows;
|
|
203
|
-
}
|
|
204
|
-
negatePadding(col) {
|
|
205
|
-
/* c8 ignore start */
|
|
206
|
-
let wrapWidth = col.width || 0;
|
|
207
|
-
/* c8 ignore stop */
|
|
208
|
-
if (col.padding) {
|
|
209
|
-
wrapWidth -= (col.padding[left] || 0) + (col.padding[right] || 0);
|
|
210
|
-
}
|
|
211
|
-
if (col.border) {
|
|
212
|
-
wrapWidth -= 4;
|
|
213
|
-
}
|
|
214
|
-
return wrapWidth;
|
|
215
|
-
}
|
|
216
|
-
columnWidths(row) {
|
|
217
|
-
if (!this.wrap) {
|
|
218
|
-
return row.map(col => {
|
|
219
|
-
return col.width || mixin.stringWidth(col.text);
|
|
220
|
-
});
|
|
221
|
-
}
|
|
222
|
-
let unset = row.length;
|
|
223
|
-
let remainingWidth = this.width;
|
|
224
|
-
// column widths can be set in config.
|
|
225
|
-
const widths = row.map(col => {
|
|
226
|
-
if (col.width) {
|
|
227
|
-
unset--;
|
|
228
|
-
remainingWidth -= col.width;
|
|
229
|
-
return col.width;
|
|
230
|
-
}
|
|
231
|
-
return undefined;
|
|
232
|
-
});
|
|
233
|
-
// any unset widths should be calculated.
|
|
234
|
-
/* c8 ignore start */
|
|
235
|
-
const unsetWidth = unset ? Math.floor(remainingWidth / unset) : 0;
|
|
236
|
-
/* c8 ignore stop */
|
|
237
|
-
return widths.map((w, i) => {
|
|
238
|
-
if (w === undefined) {
|
|
239
|
-
return Math.max(unsetWidth, _minWidth(row[i]));
|
|
240
|
-
}
|
|
241
|
-
return w;
|
|
242
|
-
});
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
function addBorder(col, ts, style) {
|
|
246
|
-
if (col.border) {
|
|
247
|
-
if (/[.']-+[.']/.test(ts)) {
|
|
248
|
-
return '';
|
|
249
|
-
}
|
|
250
|
-
if (ts.trim().length !== 0) {
|
|
251
|
-
return style;
|
|
252
|
-
}
|
|
253
|
-
return ' ';
|
|
254
|
-
}
|
|
255
|
-
return '';
|
|
256
|
-
}
|
|
257
|
-
// calculates the minimum width of
|
|
258
|
-
// a column, based on padding preferences.
|
|
259
|
-
function _minWidth(col) {
|
|
260
|
-
const padding = col.padding || [];
|
|
261
|
-
const minWidth = 1 + (padding[left] || 0) + (padding[right] || 0);
|
|
262
|
-
if (col.border) {
|
|
263
|
-
return minWidth + 4;
|
|
264
|
-
}
|
|
265
|
-
return minWidth;
|
|
266
|
-
}
|
|
267
|
-
function getWindowWidth() {
|
|
268
|
-
/* c8 ignore start */
|
|
269
|
-
if (typeof process === 'object' && process.stdout && process.stdout.columns) {
|
|
270
|
-
return process.stdout.columns;
|
|
271
|
-
}
|
|
272
|
-
return 80;
|
|
273
|
-
}
|
|
274
|
-
/* c8 ignore stop */
|
|
275
|
-
function alignRight(str, width) {
|
|
276
|
-
str = str.trim();
|
|
277
|
-
const strWidth = mixin.stringWidth(str);
|
|
278
|
-
if (strWidth < width) {
|
|
279
|
-
return ' '.repeat(width - strWidth) + str;
|
|
280
|
-
}
|
|
281
|
-
return str;
|
|
282
|
-
}
|
|
283
|
-
function alignCenter(str, width) {
|
|
284
|
-
str = str.trim();
|
|
285
|
-
const strWidth = mixin.stringWidth(str);
|
|
286
|
-
/* c8 ignore start */
|
|
287
|
-
if (strWidth >= width) {
|
|
288
|
-
return str;
|
|
289
|
-
}
|
|
290
|
-
/* c8 ignore stop */
|
|
291
|
-
return ' '.repeat((width - strWidth) >> 1) + str;
|
|
292
|
-
}
|
|
293
|
-
let mixin;
|
|
294
|
-
export function cliui(opts, _mixin) {
|
|
295
|
-
mixin = _mixin;
|
|
296
|
-
return new UI({
|
|
297
|
-
/* c8 ignore start */
|
|
298
|
-
width: (opts === null || opts === void 0 ? void 0 : opts.width) || getWindowWidth(),
|
|
299
|
-
wrap: opts === null || opts === void 0 ? void 0 : opts.wrap
|
|
300
|
-
/* c8 ignore stop */
|
|
301
|
-
});
|
|
302
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// Bootstrap cliui with ESM dependencies:
|
|
2
|
-
import { cliui } from './build/lib/index.js'
|
|
3
|
-
|
|
4
|
-
import stringWidth from 'string-width'
|
|
5
|
-
import stripAnsi from 'strip-ansi'
|
|
6
|
-
import wrap from 'wrap-ansi'
|
|
7
|
-
|
|
8
|
-
export default function ui (opts) {
|
|
9
|
-
return cliui(opts, {
|
|
10
|
-
stringWidth,
|
|
11
|
-
stripAnsi,
|
|
12
|
-
wrap
|
|
13
|
-
})
|
|
14
|
-
}
|