pull-request-split-advisor 3.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +52 -0
- package/README.md +168 -0
- package/dist/ai/config-wizard.js +282 -0
- package/dist/ai/enricher.js +290 -0
- package/dist/ai/prompts.js +231 -0
- package/dist/ai/provider.js +265 -0
- package/dist/cli.js +442 -0
- package/dist/config/config.js +315 -0
- package/dist/config/default-config.js +223 -0
- package/dist/core/blocks.js +145 -0
- package/dist/core/commit-planner.js +273 -0
- package/dist/core/dependency.js +284 -0
- package/dist/core/file-stats.js +341 -0
- package/dist/core/history.js +72 -0
- package/dist/core/planner.js +25 -0
- package/dist/core/scoring.js +166 -0
- package/dist/core/strategy.js +486 -0
- package/dist/git/branch-naming.js +120 -0
- package/dist/git/executor.js +378 -0
- package/dist/git/git.js +239 -0
- package/dist/output/report-styles.generated.js +10 -0
- package/dist/output/report.js +726 -0
- package/dist/output/ui.js +417 -0
- package/dist/shared/constants.js +59 -0
- package/dist/shared/types.js +7 -0
- package/dist/shared/utils.js +73 -0
- package/node_modules/@colors/colors/LICENSE +26 -0
- package/node_modules/@colors/colors/README.md +219 -0
- package/node_modules/@colors/colors/examples/normal-usage.js +83 -0
- package/node_modules/@colors/colors/examples/safe-string.js +80 -0
- package/node_modules/@colors/colors/index.d.ts +136 -0
- package/node_modules/@colors/colors/lib/colors.js +211 -0
- package/node_modules/@colors/colors/lib/custom/trap.js +46 -0
- package/node_modules/@colors/colors/lib/custom/zalgo.js +110 -0
- package/node_modules/@colors/colors/lib/extendStringPrototype.js +110 -0
- package/node_modules/@colors/colors/lib/index.js +13 -0
- package/node_modules/@colors/colors/lib/maps/america.js +10 -0
- package/node_modules/@colors/colors/lib/maps/rainbow.js +12 -0
- package/node_modules/@colors/colors/lib/maps/random.js +11 -0
- package/node_modules/@colors/colors/lib/maps/zebra.js +5 -0
- package/node_modules/@colors/colors/lib/styles.js +95 -0
- package/node_modules/@colors/colors/lib/system/has-flag.js +35 -0
- package/node_modules/@colors/colors/lib/system/supports-colors.js +151 -0
- package/node_modules/@colors/colors/package.json +45 -0
- package/node_modules/@colors/colors/safe.d.ts +48 -0
- package/node_modules/@colors/colors/safe.js +10 -0
- package/node_modules/@colors/colors/themes/generic-logging.js +12 -0
- package/node_modules/ansi-align/LICENSE +13 -0
- package/node_modules/ansi-align/README.md +80 -0
- package/node_modules/ansi-align/index.js +61 -0
- package/node_modules/ansi-align/node_modules/ansi-regex/index.d.ts +37 -0
- package/node_modules/ansi-align/node_modules/ansi-regex/index.js +10 -0
- package/node_modules/ansi-align/node_modules/ansi-regex/license +9 -0
- package/node_modules/ansi-align/node_modules/ansi-regex/package.json +55 -0
- package/node_modules/ansi-align/node_modules/ansi-regex/readme.md +78 -0
- package/node_modules/ansi-align/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
- package/node_modules/ansi-align/node_modules/emoji-regex/README.md +73 -0
- package/node_modules/ansi-align/node_modules/emoji-regex/es2015/index.js +6 -0
- package/node_modules/ansi-align/node_modules/emoji-regex/es2015/text.js +6 -0
- package/node_modules/ansi-align/node_modules/emoji-regex/index.d.ts +23 -0
- package/node_modules/ansi-align/node_modules/emoji-regex/index.js +6 -0
- package/node_modules/ansi-align/node_modules/emoji-regex/package.json +50 -0
- package/node_modules/ansi-align/node_modules/emoji-regex/text.js +6 -0
- package/node_modules/ansi-align/node_modules/string-width/index.d.ts +29 -0
- package/node_modules/ansi-align/node_modules/string-width/index.js +47 -0
- package/node_modules/ansi-align/node_modules/string-width/license +9 -0
- package/node_modules/ansi-align/node_modules/string-width/package.json +56 -0
- package/node_modules/ansi-align/node_modules/string-width/readme.md +50 -0
- package/node_modules/ansi-align/node_modules/strip-ansi/index.d.ts +17 -0
- package/node_modules/ansi-align/node_modules/strip-ansi/index.js +4 -0
- package/node_modules/ansi-align/node_modules/strip-ansi/license +9 -0
- package/node_modules/ansi-align/node_modules/strip-ansi/package.json +54 -0
- package/node_modules/ansi-align/node_modules/strip-ansi/readme.md +46 -0
- package/node_modules/ansi-align/package.json +43 -0
- package/node_modules/ansi-regex/index.d.ts +33 -0
- package/node_modules/ansi-regex/index.js +14 -0
- package/node_modules/ansi-regex/license +9 -0
- package/node_modules/ansi-regex/package.json +61 -0
- package/node_modules/ansi-regex/readme.md +66 -0
- package/node_modules/ansi-styles/index.d.ts +236 -0
- package/node_modules/ansi-styles/index.js +223 -0
- package/node_modules/ansi-styles/license +9 -0
- package/node_modules/ansi-styles/package.json +54 -0
- package/node_modules/ansi-styles/readme.md +173 -0
- package/node_modules/boxen/index.d.ts +267 -0
- package/node_modules/boxen/index.js +376 -0
- package/node_modules/boxen/license +9 -0
- package/node_modules/boxen/package.json +69 -0
- package/node_modules/boxen/readme.md +300 -0
- package/node_modules/camelcase/index.d.ts +102 -0
- package/node_modules/camelcase/index.js +110 -0
- package/node_modules/camelcase/license +9 -0
- package/node_modules/camelcase/package.json +47 -0
- package/node_modules/camelcase/readme.md +135 -0
- package/node_modules/chalk/license +9 -0
- package/node_modules/chalk/package.json +83 -0
- package/node_modules/chalk/readme.md +297 -0
- package/node_modules/chalk/source/index.d.ts +325 -0
- package/node_modules/chalk/source/index.js +225 -0
- package/node_modules/chalk/source/utilities.js +33 -0
- package/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +236 -0
- package/node_modules/chalk/source/vendor/ansi-styles/index.js +223 -0
- package/node_modules/chalk/source/vendor/supports-color/browser.d.ts +1 -0
- package/node_modules/chalk/source/vendor/supports-color/browser.js +34 -0
- package/node_modules/chalk/source/vendor/supports-color/index.d.ts +55 -0
- package/node_modules/chalk/source/vendor/supports-color/index.js +190 -0
- package/node_modules/cli-boxes/boxes.json +82 -0
- package/node_modules/cli-boxes/index.d.ts +127 -0
- package/node_modules/cli-boxes/index.js +6 -0
- package/node_modules/cli-boxes/license +9 -0
- package/node_modules/cli-boxes/package.json +42 -0
- package/node_modules/cli-boxes/readme.md +115 -0
- package/node_modules/cli-table3/LICENSE +21 -0
- package/node_modules/cli-table3/README.md +236 -0
- package/node_modules/cli-table3/index.d.ts +96 -0
- package/node_modules/cli-table3/index.js +1 -0
- package/node_modules/cli-table3/node_modules/ansi-regex/index.d.ts +37 -0
- package/node_modules/cli-table3/node_modules/ansi-regex/index.js +10 -0
- package/node_modules/cli-table3/node_modules/ansi-regex/license +9 -0
- package/node_modules/cli-table3/node_modules/ansi-regex/package.json +55 -0
- package/node_modules/cli-table3/node_modules/ansi-regex/readme.md +78 -0
- package/node_modules/cli-table3/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
- package/node_modules/cli-table3/node_modules/emoji-regex/README.md +73 -0
- package/node_modules/cli-table3/node_modules/emoji-regex/es2015/index.js +6 -0
- package/node_modules/cli-table3/node_modules/emoji-regex/es2015/text.js +6 -0
- package/node_modules/cli-table3/node_modules/emoji-regex/index.d.ts +23 -0
- package/node_modules/cli-table3/node_modules/emoji-regex/index.js +6 -0
- package/node_modules/cli-table3/node_modules/emoji-regex/package.json +50 -0
- package/node_modules/cli-table3/node_modules/emoji-regex/text.js +6 -0
- package/node_modules/cli-table3/node_modules/string-width/index.d.ts +29 -0
- package/node_modules/cli-table3/node_modules/string-width/index.js +47 -0
- package/node_modules/cli-table3/node_modules/string-width/license +9 -0
- package/node_modules/cli-table3/node_modules/string-width/package.json +56 -0
- package/node_modules/cli-table3/node_modules/string-width/readme.md +50 -0
- package/node_modules/cli-table3/node_modules/strip-ansi/index.d.ts +17 -0
- package/node_modules/cli-table3/node_modules/strip-ansi/index.js +4 -0
- package/node_modules/cli-table3/node_modules/strip-ansi/license +9 -0
- package/node_modules/cli-table3/node_modules/strip-ansi/package.json +54 -0
- package/node_modules/cli-table3/node_modules/strip-ansi/readme.md +46 -0
- package/node_modules/cli-table3/package.json +100 -0
- package/node_modules/cli-table3/src/cell.js +409 -0
- package/node_modules/cli-table3/src/debug.js +28 -0
- package/node_modules/cli-table3/src/layout-manager.js +254 -0
- package/node_modules/cli-table3/src/table.js +106 -0
- package/node_modules/cli-table3/src/utils.js +344 -0
- package/node_modules/commander/LICENSE +22 -0
- package/node_modules/commander/Readme.md +1157 -0
- package/node_modules/commander/esm.mjs +16 -0
- package/node_modules/commander/index.js +24 -0
- package/node_modules/commander/lib/argument.js +149 -0
- package/node_modules/commander/lib/command.js +2509 -0
- package/node_modules/commander/lib/error.js +39 -0
- package/node_modules/commander/lib/help.js +520 -0
- package/node_modules/commander/lib/option.js +330 -0
- package/node_modules/commander/lib/suggestSimilar.js +101 -0
- package/node_modules/commander/package-support.json +16 -0
- package/node_modules/commander/package.json +84 -0
- package/node_modules/commander/typings/esm.d.mts +3 -0
- package/node_modules/commander/typings/index.d.ts +969 -0
- package/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
- package/node_modules/emoji-regex/README.md +107 -0
- package/node_modules/emoji-regex/index.d.ts +3 -0
- package/node_modules/emoji-regex/index.js +4 -0
- package/node_modules/emoji-regex/index.mjs +4 -0
- package/node_modules/emoji-regex/package.json +45 -0
- package/node_modules/get-east-asian-width/index.d.ts +60 -0
- package/node_modules/get-east-asian-width/index.js +30 -0
- package/node_modules/get-east-asian-width/license +9 -0
- package/node_modules/get-east-asian-width/lookup-data.js +18 -0
- package/node_modules/get-east-asian-width/lookup.js +135 -0
- package/node_modules/get-east-asian-width/package.json +71 -0
- package/node_modules/get-east-asian-width/readme.md +65 -0
- package/node_modules/get-east-asian-width/utilities.js +24 -0
- package/node_modules/is-fullwidth-code-point/index.d.ts +17 -0
- package/node_modules/is-fullwidth-code-point/index.js +50 -0
- package/node_modules/is-fullwidth-code-point/license +9 -0
- package/node_modules/is-fullwidth-code-point/package.json +42 -0
- package/node_modules/is-fullwidth-code-point/readme.md +39 -0
- package/node_modules/isbinaryfile/LICENSE.txt +22 -0
- package/node_modules/isbinaryfile/README.md +70 -0
- package/node_modules/isbinaryfile/lib/index.d.ts +3 -0
- package/node_modules/isbinaryfile/lib/index.js +256 -0
- package/node_modules/isbinaryfile/package.json +64 -0
- package/node_modules/string-width/index.d.ts +39 -0
- package/node_modules/string-width/index.js +82 -0
- package/node_modules/string-width/license +9 -0
- package/node_modules/string-width/package.json +64 -0
- package/node_modules/string-width/readme.md +66 -0
- package/node_modules/strip-ansi/index.d.ts +15 -0
- package/node_modules/strip-ansi/index.js +19 -0
- package/node_modules/strip-ansi/license +9 -0
- package/node_modules/strip-ansi/package.json +59 -0
- package/node_modules/strip-ansi/readme.md +37 -0
- package/node_modules/type-fest/index.d.ts +178 -0
- package/node_modules/type-fest/license-cc0 +121 -0
- package/node_modules/type-fest/license-mit +9 -0
- package/node_modules/type-fest/package.json +91 -0
- package/node_modules/type-fest/readme.md +1060 -0
- package/node_modules/type-fest/source/all-union-fields.d.ts +88 -0
- package/node_modules/type-fest/source/and.d.ts +25 -0
- package/node_modules/type-fest/source/array-indices.d.ts +23 -0
- package/node_modules/type-fest/source/array-slice.d.ts +109 -0
- package/node_modules/type-fest/source/array-splice.d.ts +99 -0
- package/node_modules/type-fest/source/array-tail.d.ts +76 -0
- package/node_modules/type-fest/source/array-values.d.ts +22 -0
- package/node_modules/type-fest/source/arrayable.d.ts +29 -0
- package/node_modules/type-fest/source/async-return-type.d.ts +23 -0
- package/node_modules/type-fest/source/asyncify.d.ts +32 -0
- package/node_modules/type-fest/source/basic.d.ts +68 -0
- package/node_modules/type-fest/source/camel-case.d.ts +89 -0
- package/node_modules/type-fest/source/camel-cased-properties-deep.d.ts +97 -0
- package/node_modules/type-fest/source/camel-cased-properties.d.ts +43 -0
- package/node_modules/type-fest/source/conditional-except.d.ts +45 -0
- package/node_modules/type-fest/source/conditional-keys.d.ts +47 -0
- package/node_modules/type-fest/source/conditional-pick-deep.d.ts +118 -0
- package/node_modules/type-fest/source/conditional-pick.d.ts +44 -0
- package/node_modules/type-fest/source/conditional-simplify.d.ts +32 -0
- package/node_modules/type-fest/source/delimiter-case.d.ts +78 -0
- package/node_modules/type-fest/source/delimiter-cased-properties-deep.d.ts +106 -0
- package/node_modules/type-fest/source/delimiter-cased-properties.d.ts +46 -0
- package/node_modules/type-fest/source/distributed-omit.d.ts +89 -0
- package/node_modules/type-fest/source/distributed-pick.d.ts +85 -0
- package/node_modules/type-fest/source/empty-object.d.ts +46 -0
- package/node_modules/type-fest/source/enforce-optional.d.ts +47 -0
- package/node_modules/type-fest/source/entries.d.ts +62 -0
- package/node_modules/type-fest/source/entry.d.ts +65 -0
- package/node_modules/type-fest/source/exact.d.ts +68 -0
- package/node_modules/type-fest/source/except.d.ts +108 -0
- package/node_modules/type-fest/source/find-global-type.d.ts +64 -0
- package/node_modules/type-fest/source/fixed-length-array.d.ts +43 -0
- package/node_modules/type-fest/source/get.d.ts +219 -0
- package/node_modules/type-fest/source/global-this.d.ts +21 -0
- package/node_modules/type-fest/source/greater-than-or-equal.d.ts +22 -0
- package/node_modules/type-fest/source/greater-than.d.ts +56 -0
- package/node_modules/type-fest/source/has-optional-keys.d.ts +21 -0
- package/node_modules/type-fest/source/has-readonly-keys.d.ts +21 -0
- package/node_modules/type-fest/source/has-required-keys.d.ts +59 -0
- package/node_modules/type-fest/source/has-writable-keys.d.ts +21 -0
- package/node_modules/type-fest/source/if-any.d.ts +24 -0
- package/node_modules/type-fest/source/if-empty-object.d.ts +26 -0
- package/node_modules/type-fest/source/if-never.d.ts +24 -0
- package/node_modules/type-fest/source/if-null.d.ts +24 -0
- package/node_modules/type-fest/source/if-unknown.d.ts +24 -0
- package/node_modules/type-fest/source/includes.d.ts +22 -0
- package/node_modules/type-fest/source/int-closed-range.d.ts +35 -0
- package/node_modules/type-fest/source/int-range.d.ts +55 -0
- package/node_modules/type-fest/source/internal/array.d.ts +126 -0
- package/node_modules/type-fest/source/internal/characters.d.ts +67 -0
- package/node_modules/type-fest/source/internal/index.d.ts +8 -0
- package/node_modules/type-fest/source/internal/keys.d.ts +97 -0
- package/node_modules/type-fest/source/internal/numeric.d.ts +118 -0
- package/node_modules/type-fest/source/internal/object.d.ts +236 -0
- package/node_modules/type-fest/source/internal/string.d.ts +210 -0
- package/node_modules/type-fest/source/internal/tuple.d.ts +90 -0
- package/node_modules/type-fest/source/internal/type.d.ts +139 -0
- package/node_modules/type-fest/source/invariant-of.d.ts +76 -0
- package/node_modules/type-fest/source/is-any.d.ts +33 -0
- package/node_modules/type-fest/source/is-equal.d.ts +31 -0
- package/node_modules/type-fest/source/is-float.d.ts +41 -0
- package/node_modules/type-fest/source/is-integer.d.ts +58 -0
- package/node_modules/type-fest/source/is-literal.d.ts +296 -0
- package/node_modules/type-fest/source/is-never.d.ts +42 -0
- package/node_modules/type-fest/source/is-null.d.ts +20 -0
- package/node_modules/type-fest/source/is-tuple.d.ts +89 -0
- package/node_modules/type-fest/source/is-unknown.d.ts +52 -0
- package/node_modules/type-fest/source/iterable-element.d.ts +64 -0
- package/node_modules/type-fest/source/join.d.ts +68 -0
- package/node_modules/type-fest/source/jsonifiable.d.ts +37 -0
- package/node_modules/type-fest/source/jsonify.d.ts +122 -0
- package/node_modules/type-fest/source/kebab-case.d.ts +44 -0
- package/node_modules/type-fest/source/kebab-cased-properties-deep.d.ts +63 -0
- package/node_modules/type-fest/source/kebab-cased-properties.d.ts +40 -0
- package/node_modules/type-fest/source/keys-of-union.d.ts +42 -0
- package/node_modules/type-fest/source/last-array-element.d.ts +38 -0
- package/node_modules/type-fest/source/less-than-or-equal.d.ts +22 -0
- package/node_modules/type-fest/source/less-than.d.ts +26 -0
- package/node_modules/type-fest/source/literal-to-primitive-deep.d.ts +36 -0
- package/node_modules/type-fest/source/literal-to-primitive.d.ts +36 -0
- package/node_modules/type-fest/source/literal-union.d.ts +37 -0
- package/node_modules/type-fest/source/merge-deep.d.ts +486 -0
- package/node_modules/type-fest/source/merge-exclusive.d.ts +41 -0
- package/node_modules/type-fest/source/merge.d.ts +48 -0
- package/node_modules/type-fest/source/multidimensional-array.d.ts +44 -0
- package/node_modules/type-fest/source/multidimensional-readonly-array.d.ts +48 -0
- package/node_modules/type-fest/source/non-empty-object.d.ts +35 -0
- package/node_modules/type-fest/source/non-empty-string.d.ts +28 -0
- package/node_modules/type-fest/source/non-empty-tuple.d.ts +21 -0
- package/node_modules/type-fest/source/numeric.d.ts +222 -0
- package/node_modules/type-fest/source/observable-like.d.ts +63 -0
- package/node_modules/type-fest/source/omit-deep.d.ts +167 -0
- package/node_modules/type-fest/source/omit-index-signature.d.ts +95 -0
- package/node_modules/type-fest/source/opaque.d.ts +1 -0
- package/node_modules/type-fest/source/optional-keys-of.d.ts +39 -0
- package/node_modules/type-fest/source/or.d.ts +25 -0
- package/node_modules/type-fest/source/override-properties.d.ts +36 -0
- package/node_modules/type-fest/source/package-json.d.ts +676 -0
- package/node_modules/type-fest/source/partial-deep.d.ts +151 -0
- package/node_modules/type-fest/source/partial-on-undefined-deep.d.ts +78 -0
- package/node_modules/type-fest/source/pascal-case.d.ts +42 -0
- package/node_modules/type-fest/source/pascal-cased-properties-deep.d.ts +62 -0
- package/node_modules/type-fest/source/pascal-cased-properties.d.ts +36 -0
- package/node_modules/type-fest/source/paths.d.ts +262 -0
- package/node_modules/type-fest/source/pick-deep.d.ts +149 -0
- package/node_modules/type-fest/source/pick-index-signature.d.ts +50 -0
- package/node_modules/type-fest/source/primitive.d.ts +13 -0
- package/node_modules/type-fest/source/promisable.d.ts +25 -0
- package/node_modules/type-fest/source/readonly-deep.d.ts +81 -0
- package/node_modules/type-fest/source/readonly-keys-of.d.ts +30 -0
- package/node_modules/type-fest/source/readonly-tuple.d.ts +41 -0
- package/node_modules/type-fest/source/replace.d.ts +85 -0
- package/node_modules/type-fest/source/require-all-or-none.d.ts +51 -0
- package/node_modules/type-fest/source/require-at-least-one.d.ts +47 -0
- package/node_modules/type-fest/source/require-exactly-one.d.ts +45 -0
- package/node_modules/type-fest/source/require-one-or-none.d.ts +46 -0
- package/node_modules/type-fest/source/required-deep.d.ts +78 -0
- package/node_modules/type-fest/source/required-keys-of.d.ts +30 -0
- package/node_modules/type-fest/source/schema.d.ts +114 -0
- package/node_modules/type-fest/source/screaming-snake-case.d.ts +28 -0
- package/node_modules/type-fest/source/set-field-type.d.ts +65 -0
- package/node_modules/type-fest/source/set-non-nullable-deep.d.ts +83 -0
- package/node_modules/type-fest/source/set-non-nullable.d.ts +39 -0
- package/node_modules/type-fest/source/set-optional.d.ts +38 -0
- package/node_modules/type-fest/source/set-parameter-type.d.ts +117 -0
- package/node_modules/type-fest/source/set-readonly.d.ts +39 -0
- package/node_modules/type-fest/source/set-required-deep.d.ts +68 -0
- package/node_modules/type-fest/source/set-required.d.ts +70 -0
- package/node_modules/type-fest/source/set-return-type.d.ts +29 -0
- package/node_modules/type-fest/source/shared-union-fields-deep.d.ts +178 -0
- package/node_modules/type-fest/source/shared-union-fields.d.ts +76 -0
- package/node_modules/type-fest/source/simplify-deep.d.ts +115 -0
- package/node_modules/type-fest/source/simplify.d.ts +58 -0
- package/node_modules/type-fest/source/single-key-object.d.ts +29 -0
- package/node_modules/type-fest/source/snake-case.d.ts +45 -0
- package/node_modules/type-fest/source/snake-cased-properties-deep.d.ts +63 -0
- package/node_modules/type-fest/source/snake-cased-properties.d.ts +40 -0
- package/node_modules/type-fest/source/split.d.ts +88 -0
- package/node_modules/type-fest/source/spread.d.ts +84 -0
- package/node_modules/type-fest/source/string-key-of.d.ts +25 -0
- package/node_modules/type-fest/source/string-repeat.d.ts +47 -0
- package/node_modules/type-fest/source/string-slice.d.ts +37 -0
- package/node_modules/type-fest/source/stringified.d.ts +23 -0
- package/node_modules/type-fest/source/structured-cloneable.d.ts +92 -0
- package/node_modules/type-fest/source/subtract.d.ts +83 -0
- package/node_modules/type-fest/source/sum.d.ts +78 -0
- package/node_modules/type-fest/source/tagged-union.d.ts +51 -0
- package/node_modules/type-fest/source/tagged.d.ts +256 -0
- package/node_modules/type-fest/source/trim.d.ts +27 -0
- package/node_modules/type-fest/source/tsconfig-json.d.ts +1294 -0
- package/node_modules/type-fest/source/tuple-to-object.d.ts +42 -0
- package/node_modules/type-fest/source/tuple-to-union.d.ts +51 -0
- package/node_modules/type-fest/source/typed-array.d.ts +17 -0
- package/node_modules/type-fest/source/undefined-on-partial-deep.d.ts +80 -0
- package/node_modules/type-fest/source/union-to-intersection.d.ts +61 -0
- package/node_modules/type-fest/source/union-to-tuple.d.ts +56 -0
- package/node_modules/type-fest/source/unknown-array.d.ts +25 -0
- package/node_modules/type-fest/source/unknown-map.d.ts +24 -0
- package/node_modules/type-fest/source/unknown-record.d.ts +31 -0
- package/node_modules/type-fest/source/unknown-set.d.ts +24 -0
- package/node_modules/type-fest/source/value-of.d.ts +42 -0
- package/node_modules/type-fest/source/words.d.ts +118 -0
- package/node_modules/type-fest/source/writable-deep.d.ts +83 -0
- package/node_modules/type-fest/source/writable-keys-of.d.ts +33 -0
- package/node_modules/type-fest/source/writable.d.ts +68 -0
- package/node_modules/widest-line/index.d.ts +12 -0
- package/node_modules/widest-line/index.js +11 -0
- package/node_modules/widest-line/license +9 -0
- package/node_modules/widest-line/package.json +60 -0
- package/node_modules/widest-line/readme.md +26 -0
- package/node_modules/wrap-ansi/index.d.ts +41 -0
- package/node_modules/wrap-ansi/index.js +222 -0
- package/node_modules/wrap-ansi/license +9 -0
- package/node_modules/wrap-ansi/package.json +69 -0
- package/node_modules/wrap-ansi/readme.md +75 -0
- package/package.json +78 -0
- package/scripts/postinstall.cjs +122 -0
|
@@ -0,0 +1,376 @@
|
|
|
1
|
+
import process from 'node:process';
|
|
2
|
+
import stringWidth from 'string-width';
|
|
3
|
+
import chalk from 'chalk';
|
|
4
|
+
import widestLine from 'widest-line';
|
|
5
|
+
import cliBoxes from 'cli-boxes';
|
|
6
|
+
import camelCase from 'camelcase';
|
|
7
|
+
import ansiAlign from 'ansi-align';
|
|
8
|
+
import wrapAnsi from 'wrap-ansi';
|
|
9
|
+
|
|
10
|
+
const NEWLINE = '\n';
|
|
11
|
+
const PAD = ' ';
|
|
12
|
+
const NONE = 'none';
|
|
13
|
+
|
|
14
|
+
const terminalColumns = () => {
|
|
15
|
+
const {env, stdout, stderr} = process;
|
|
16
|
+
|
|
17
|
+
if (stdout?.columns) {
|
|
18
|
+
return stdout.columns;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
if (stderr?.columns) {
|
|
22
|
+
return stderr.columns;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
if (env.COLUMNS) {
|
|
26
|
+
return Number.parseInt(env.COLUMNS, 10);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
return 80;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
const getObject = detail => typeof detail === 'number' ? {
|
|
33
|
+
top: detail,
|
|
34
|
+
right: detail * 3,
|
|
35
|
+
bottom: detail,
|
|
36
|
+
left: detail * 3,
|
|
37
|
+
} : {
|
|
38
|
+
top: 0,
|
|
39
|
+
right: 0,
|
|
40
|
+
bottom: 0,
|
|
41
|
+
left: 0,
|
|
42
|
+
...detail,
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
const getBorderWidth = borderStyle => borderStyle === NONE ? 0 : 2;
|
|
46
|
+
|
|
47
|
+
const getBorderChars = borderStyle => {
|
|
48
|
+
const sides = [
|
|
49
|
+
'topLeft',
|
|
50
|
+
'topRight',
|
|
51
|
+
'bottomRight',
|
|
52
|
+
'bottomLeft',
|
|
53
|
+
'left',
|
|
54
|
+
'right',
|
|
55
|
+
'top',
|
|
56
|
+
'bottom',
|
|
57
|
+
];
|
|
58
|
+
|
|
59
|
+
let characters;
|
|
60
|
+
|
|
61
|
+
// Create empty border style
|
|
62
|
+
if (borderStyle === NONE) {
|
|
63
|
+
borderStyle = {};
|
|
64
|
+
for (const side of sides) {
|
|
65
|
+
borderStyle[side] = '';
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
if (typeof borderStyle === 'string') {
|
|
70
|
+
characters = cliBoxes[borderStyle];
|
|
71
|
+
|
|
72
|
+
if (!characters) {
|
|
73
|
+
throw new TypeError(`Invalid border style: ${borderStyle}`);
|
|
74
|
+
}
|
|
75
|
+
} else {
|
|
76
|
+
// Ensure retro-compatibility
|
|
77
|
+
if (typeof borderStyle?.vertical === 'string') {
|
|
78
|
+
borderStyle.left = borderStyle.vertical;
|
|
79
|
+
borderStyle.right = borderStyle.vertical;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// Ensure retro-compatibility
|
|
83
|
+
if (typeof borderStyle?.horizontal === 'string') {
|
|
84
|
+
borderStyle.top = borderStyle.horizontal;
|
|
85
|
+
borderStyle.bottom = borderStyle.horizontal;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
for (const side of sides) {
|
|
89
|
+
if (borderStyle[side] === null || typeof borderStyle[side] !== 'string') {
|
|
90
|
+
throw new TypeError(`Invalid border style: ${side}`);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
characters = borderStyle;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
return characters;
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
const makeTitle = (text, horizontal, alignment) => {
|
|
101
|
+
let title = '';
|
|
102
|
+
|
|
103
|
+
const textWidth = stringWidth(text);
|
|
104
|
+
|
|
105
|
+
switch (alignment) {
|
|
106
|
+
case 'left': {
|
|
107
|
+
title = text + horizontal.slice(textWidth);
|
|
108
|
+
break;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
case 'right': {
|
|
112
|
+
title = horizontal.slice(textWidth) + text;
|
|
113
|
+
break;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
default: {
|
|
117
|
+
horizontal = horizontal.slice(textWidth);
|
|
118
|
+
|
|
119
|
+
if (horizontal.length % 2 === 1) { // This is needed in case the length is odd
|
|
120
|
+
horizontal = horizontal.slice(Math.floor(horizontal.length / 2));
|
|
121
|
+
title = horizontal.slice(1) + text + horizontal; // We reduce the left part of one character to avoid the bar to go beyond its limit
|
|
122
|
+
} else {
|
|
123
|
+
horizontal = horizontal.slice(horizontal.length / 2);
|
|
124
|
+
title = horizontal + text + horizontal;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
break;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
return title;
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
const makeContentText = (text, {padding, width, textAlignment, height}) => {
|
|
135
|
+
text = ansiAlign(text, {align: textAlignment});
|
|
136
|
+
let lines = text.split(NEWLINE);
|
|
137
|
+
const textWidth = widestLine(text);
|
|
138
|
+
|
|
139
|
+
const max = width - padding.left - padding.right;
|
|
140
|
+
|
|
141
|
+
if (textWidth > max) {
|
|
142
|
+
const newLines = [];
|
|
143
|
+
for (const line of lines) {
|
|
144
|
+
const createdLines = wrapAnsi(line, max, {hard: true});
|
|
145
|
+
const alignedLines = ansiAlign(createdLines, {align: textAlignment});
|
|
146
|
+
const alignedLinesArray = alignedLines.split('\n');
|
|
147
|
+
const longestLength = Math.max(...alignedLinesArray.map(s => stringWidth(s)));
|
|
148
|
+
|
|
149
|
+
for (const alignedLine of alignedLinesArray) {
|
|
150
|
+
let paddedLine;
|
|
151
|
+
switch (textAlignment) {
|
|
152
|
+
case 'center': {
|
|
153
|
+
paddedLine = PAD.repeat((max - longestLength) / 2) + alignedLine;
|
|
154
|
+
break;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
case 'right': {
|
|
158
|
+
paddedLine = PAD.repeat(max - longestLength) + alignedLine;
|
|
159
|
+
break;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
default: {
|
|
163
|
+
paddedLine = alignedLine;
|
|
164
|
+
break;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
newLines.push(paddedLine);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
lines = newLines;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
if (textAlignment === 'center' && textWidth < max) {
|
|
176
|
+
lines = lines.map(line => PAD.repeat((max - textWidth) / 2) + line);
|
|
177
|
+
} else if (textAlignment === 'right' && textWidth < max) {
|
|
178
|
+
lines = lines.map(line => PAD.repeat(max - textWidth) + line);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
const paddingLeft = PAD.repeat(padding.left);
|
|
182
|
+
const paddingRight = PAD.repeat(padding.right);
|
|
183
|
+
|
|
184
|
+
lines = lines.map(line => {
|
|
185
|
+
const newLine = paddingLeft + line + paddingRight;
|
|
186
|
+
|
|
187
|
+
return newLine + PAD.repeat(width - stringWidth(newLine));
|
|
188
|
+
});
|
|
189
|
+
|
|
190
|
+
if (padding.top > 0) {
|
|
191
|
+
lines = [...Array.from({length: padding.top}).fill(PAD.repeat(width)), ...lines];
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
if (padding.bottom > 0) {
|
|
195
|
+
lines = [...lines, ...Array.from({length: padding.bottom}).fill(PAD.repeat(width))];
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
if (height && lines.length > height) {
|
|
199
|
+
lines = lines.slice(0, height);
|
|
200
|
+
} else if (height && lines.length < height) {
|
|
201
|
+
lines = [...lines, ...Array.from({length: height - lines.length}).fill(PAD.repeat(width))];
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
return lines.join(NEWLINE);
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
const boxContent = (content, contentWidth, options) => {
|
|
208
|
+
const colorizeBorder = border => {
|
|
209
|
+
const newBorder = options.borderColor ? getColorFunction(options.borderColor)(border) : border;
|
|
210
|
+
return options.dimBorder ? chalk.dim(newBorder) : newBorder;
|
|
211
|
+
};
|
|
212
|
+
|
|
213
|
+
const colorizeContent = content => options.backgroundColor ? getBGColorFunction(options.backgroundColor)(content) : content;
|
|
214
|
+
|
|
215
|
+
const chars = getBorderChars(options.borderStyle);
|
|
216
|
+
const columns = terminalColumns();
|
|
217
|
+
let marginLeft = PAD.repeat(options.margin.left);
|
|
218
|
+
|
|
219
|
+
if (options.float === 'center') {
|
|
220
|
+
const marginWidth = Math.max((columns - contentWidth - getBorderWidth(options.borderStyle)) / 2, 0);
|
|
221
|
+
marginLeft = PAD.repeat(marginWidth);
|
|
222
|
+
} else if (options.float === 'right') {
|
|
223
|
+
const marginWidth = Math.max(columns - contentWidth - options.margin.right - getBorderWidth(options.borderStyle), 0);
|
|
224
|
+
marginLeft = PAD.repeat(marginWidth);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
let result = '';
|
|
228
|
+
|
|
229
|
+
if (options.margin.top) {
|
|
230
|
+
result += NEWLINE.repeat(options.margin.top);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
if (options.borderStyle !== NONE || options.title) {
|
|
234
|
+
result += colorizeBorder(marginLeft + chars.topLeft + (options.title ? makeTitle(options.title, chars.top.repeat(contentWidth), options.titleAlignment) : chars.top.repeat(contentWidth)) + chars.topRight) + NEWLINE;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
const lines = content.split(NEWLINE);
|
|
238
|
+
|
|
239
|
+
result += lines.map(line => marginLeft + colorizeBorder(chars.left) + colorizeContent(line) + colorizeBorder(chars.right)).join(NEWLINE);
|
|
240
|
+
|
|
241
|
+
if (options.borderStyle !== NONE) {
|
|
242
|
+
result += NEWLINE + colorizeBorder(marginLeft + chars.bottomLeft + chars.bottom.repeat(contentWidth) + chars.bottomRight);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
if (options.margin.bottom) {
|
|
246
|
+
result += NEWLINE.repeat(options.margin.bottom);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
return result;
|
|
250
|
+
};
|
|
251
|
+
|
|
252
|
+
const sanitizeOptions = options => {
|
|
253
|
+
// If fullscreen is enabled, max-out unspecified width/height
|
|
254
|
+
if (options.fullscreen && process?.stdout) {
|
|
255
|
+
let newDimensions = [process.stdout.columns, process.stdout.rows];
|
|
256
|
+
|
|
257
|
+
if (typeof options.fullscreen === 'function') {
|
|
258
|
+
newDimensions = options.fullscreen(...newDimensions);
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
options.width ||= newDimensions[0];
|
|
262
|
+
|
|
263
|
+
options.height ||= newDimensions[1];
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
// If width is provided, make sure it's not below 1
|
|
267
|
+
options.width &&= Math.max(1, options.width - getBorderWidth(options.borderStyle));
|
|
268
|
+
|
|
269
|
+
// If height is provided, make sure it's not below 1
|
|
270
|
+
options.height &&= Math.max(1, options.height - getBorderWidth(options.borderStyle));
|
|
271
|
+
|
|
272
|
+
return options;
|
|
273
|
+
};
|
|
274
|
+
|
|
275
|
+
const formatTitle = (title, borderStyle) => borderStyle === NONE ? title : ` ${title} `;
|
|
276
|
+
|
|
277
|
+
const determineDimensions = (text, options) => {
|
|
278
|
+
options = sanitizeOptions(options);
|
|
279
|
+
const widthOverride = options.width !== undefined;
|
|
280
|
+
const columns = terminalColumns();
|
|
281
|
+
const borderWidth = getBorderWidth(options.borderStyle);
|
|
282
|
+
const maxWidth = columns - options.margin.left - options.margin.right - borderWidth;
|
|
283
|
+
|
|
284
|
+
const widest = widestLine(wrapAnsi(text, columns - borderWidth, {hard: true, trim: false})) + options.padding.left + options.padding.right;
|
|
285
|
+
|
|
286
|
+
// If title and width are provided, title adheres to fixed width
|
|
287
|
+
if (options.title && widthOverride) {
|
|
288
|
+
options.title = options.title.slice(0, Math.max(0, options.width - 2));
|
|
289
|
+
options.title &&= formatTitle(options.title, options.borderStyle);
|
|
290
|
+
} else if (options.title) {
|
|
291
|
+
options.title = options.title.slice(0, Math.max(0, maxWidth - 2));
|
|
292
|
+
|
|
293
|
+
// Recheck if title isn't empty now
|
|
294
|
+
if (options.title) {
|
|
295
|
+
options.title = formatTitle(options.title, options.borderStyle);
|
|
296
|
+
// If the title is larger than content, box adheres to title width
|
|
297
|
+
if (stringWidth(options.title) > widest) {
|
|
298
|
+
options.width = stringWidth(options.title);
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
// If fixed width is provided, use it or content width as reference
|
|
304
|
+
options.width ||= widest;
|
|
305
|
+
|
|
306
|
+
if (!widthOverride) {
|
|
307
|
+
if ((options.margin.left && options.margin.right) && options.width > maxWidth) {
|
|
308
|
+
// Let's assume we have margins: left = 3, right = 5, in total = 8
|
|
309
|
+
const spaceForMargins = columns - options.width - borderWidth;
|
|
310
|
+
// Let's assume we have space = 4
|
|
311
|
+
const multiplier = spaceForMargins / (options.margin.left + options.margin.right);
|
|
312
|
+
// Here: multiplier = 4/8 = 0.5
|
|
313
|
+
options.margin.left = Math.max(0, Math.floor(options.margin.left * multiplier));
|
|
314
|
+
options.margin.right = Math.max(0, Math.floor(options.margin.right * multiplier));
|
|
315
|
+
// Left: 3 * 0.5 = 1.5 -> 1
|
|
316
|
+
// Right: 6 * 0.5 = 3
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
// Re-cap width considering the margins after shrinking
|
|
320
|
+
options.width = Math.min(options.width, columns - borderWidth - options.margin.left - options.margin.right);
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
// Prevent padding overflow
|
|
324
|
+
if (options.width - (options.padding.left + options.padding.right) <= 0) {
|
|
325
|
+
options.padding.left = 0;
|
|
326
|
+
options.padding.right = 0;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
if (options.height && options.height - (options.padding.top + options.padding.bottom) <= 0) {
|
|
330
|
+
options.padding.top = 0;
|
|
331
|
+
options.padding.bottom = 0;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
return options;
|
|
335
|
+
};
|
|
336
|
+
|
|
337
|
+
const isHex = color => color.match(/^#(?:[0-f]{3}){1,2}$/i);
|
|
338
|
+
const isColorValid = color => typeof color === 'string' && (chalk[color] ?? isHex(color));
|
|
339
|
+
const getColorFunction = color => isHex(color) ? chalk.hex(color) : chalk[color];
|
|
340
|
+
const getBGColorFunction = color => isHex(color) ? chalk.bgHex(color) : chalk[camelCase(['bg', color])];
|
|
341
|
+
|
|
342
|
+
export default function boxen(text, options) {
|
|
343
|
+
options = {
|
|
344
|
+
padding: 0,
|
|
345
|
+
borderStyle: 'single',
|
|
346
|
+
dimBorder: false,
|
|
347
|
+
textAlignment: 'left',
|
|
348
|
+
float: 'left',
|
|
349
|
+
titleAlignment: 'left',
|
|
350
|
+
...options,
|
|
351
|
+
};
|
|
352
|
+
|
|
353
|
+
// This option is deprecated
|
|
354
|
+
if (options.align) {
|
|
355
|
+
options.textAlignment = options.align;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
if (options.borderColor && !isColorValid(options.borderColor)) {
|
|
359
|
+
throw new Error(`${options.borderColor} is not a valid borderColor`);
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
if (options.backgroundColor && !isColorValid(options.backgroundColor)) {
|
|
363
|
+
throw new Error(`${options.backgroundColor} is not a valid backgroundColor`);
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
options.padding = getObject(options.padding);
|
|
367
|
+
options.margin = getObject(options.margin);
|
|
368
|
+
|
|
369
|
+
options = determineDimensions(text, options);
|
|
370
|
+
|
|
371
|
+
text = makeContentText(text, options);
|
|
372
|
+
|
|
373
|
+
return boxContent(text, options.width, options);
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
export {default as _borderStyles} from 'cli-boxes';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "boxen",
|
|
3
|
+
"version": "8.0.1",
|
|
4
|
+
"description": "Create boxes in the terminal",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": "sindresorhus/boxen",
|
|
7
|
+
"funding": "https://github.com/sponsors/sindresorhus",
|
|
8
|
+
"author": {
|
|
9
|
+
"name": "Sindre Sorhus",
|
|
10
|
+
"email": "sindresorhus@gmail.com",
|
|
11
|
+
"url": "https://sindresorhus.com"
|
|
12
|
+
},
|
|
13
|
+
"type": "module",
|
|
14
|
+
"exports": {
|
|
15
|
+
"types": "./index.d.ts",
|
|
16
|
+
"default": "./index.js"
|
|
17
|
+
},
|
|
18
|
+
"sideEffects": false,
|
|
19
|
+
"engines": {
|
|
20
|
+
"node": ">=18"
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"test": "xo && nyc ava && tsd"
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"index.js",
|
|
27
|
+
"index.d.ts"
|
|
28
|
+
],
|
|
29
|
+
"keywords": [
|
|
30
|
+
"cli",
|
|
31
|
+
"box",
|
|
32
|
+
"boxes",
|
|
33
|
+
"terminal",
|
|
34
|
+
"term",
|
|
35
|
+
"console",
|
|
36
|
+
"ascii",
|
|
37
|
+
"unicode",
|
|
38
|
+
"border",
|
|
39
|
+
"text"
|
|
40
|
+
],
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"ansi-align": "^3.0.1",
|
|
43
|
+
"camelcase": "^8.0.0",
|
|
44
|
+
"chalk": "^5.3.0",
|
|
45
|
+
"cli-boxes": "^3.0.0",
|
|
46
|
+
"string-width": "^7.2.0",
|
|
47
|
+
"type-fest": "^4.21.0",
|
|
48
|
+
"widest-line": "^5.0.0",
|
|
49
|
+
"wrap-ansi": "^9.0.0"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"ava": "^6.1.3",
|
|
53
|
+
"nyc": "^17.0.0",
|
|
54
|
+
"tsd": "^0.31.1",
|
|
55
|
+
"xo": "^0.58.0"
|
|
56
|
+
},
|
|
57
|
+
"ava": {
|
|
58
|
+
"snapshotDir": "tests/snapshots",
|
|
59
|
+
"environmentVariables": {
|
|
60
|
+
"COLUMNS": "60",
|
|
61
|
+
"FORCE_COLOR": "0"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"xo": {
|
|
65
|
+
"rules": {
|
|
66
|
+
"@typescript-eslint/no-unsafe-assignment": "off"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|