diff --git a/lang/en.json b/lang/en.json
index 2f1145e..6fe451d 100755
--- a/lang/en.json
+++ b/lang/en.json
@@ -30,10 +30,14 @@
"TYPES": {
"Actor": {
"character": "Character",
+ "kith": "Kith",
+ "location": "Location",
"npc": "NPC"
},
"Item": {
- "item": "Item",
+ "trait": "Trait",
+ "nature": "nature",
+ "playbook": "Playbook",
"feature": "Feature",
"spell": "Spell"
}
diff --git a/node_modules/.bin/detect-libc b/node_modules/.bin/detect-libc
deleted file mode 120000
index b4c4b76..0000000
--- a/node_modules/.bin/detect-libc
+++ /dev/null
@@ -1 +0,0 @@
-../detect-libc/bin/detect-libc.js
\ No newline at end of file
diff --git a/node_modules/.bin/sass b/node_modules/.bin/sass
deleted file mode 120000
index 4bda500..0000000
--- a/node_modules/.bin/sass
+++ /dev/null
@@ -1 +0,0 @@
-../sass/sass.js
\ No newline at end of file
diff --git a/node_modules/.package-lock.json b/node_modules/.package-lock.json
deleted file mode 100755
index 787f52b..0000000
--- a/node_modules/.package-lock.json
+++ /dev/null
@@ -1,804 +0,0 @@
-{
- "name": "wanderhome",
- "version": "2.0.0",
- "lockfileVersion": 3,
- "requires": true,
- "packages": {
- "node_modules/@inquirer/checkbox": {
- "version": "4.2.0",
- "resolved": "https://registry.npmjs.org/@inquirer/checkbox/-/checkbox-4.2.0.tgz",
- "integrity": "sha512-fdSw07FLJEU5vbpOPzXo5c6xmMGDzbZE2+niuDHX5N6mc6V0Ebso/q3xiHra4D73+PMsC8MJmcaZKuAAoaQsSA==",
- "dependencies": {
- "@inquirer/core": "^10.1.15",
- "@inquirer/figures": "^1.0.13",
- "@inquirer/type": "^3.0.8",
- "ansi-escapes": "^4.3.2",
- "yoctocolors-cjs": "^2.1.2"
- },
- "engines": {
- "node": ">=18"
- },
- "peerDependencies": {
- "@types/node": ">=18"
- },
- "peerDependenciesMeta": {
- "@types/node": {
- "optional": true
- }
- }
- },
- "node_modules/@inquirer/confirm": {
- "version": "5.1.14",
- "resolved": "https://registry.npmjs.org/@inquirer/confirm/-/confirm-5.1.14.tgz",
- "integrity": "sha512-5yR4IBfe0kXe59r1YCTG8WXkUbl7Z35HK87Sw+WUyGD8wNUx7JvY7laahzeytyE1oLn74bQnL7hstctQxisQ8Q==",
- "dependencies": {
- "@inquirer/core": "^10.1.15",
- "@inquirer/type": "^3.0.8"
- },
- "engines": {
- "node": ">=18"
- },
- "peerDependencies": {
- "@types/node": ">=18"
- },
- "peerDependenciesMeta": {
- "@types/node": {
- "optional": true
- }
- }
- },
- "node_modules/@inquirer/core": {
- "version": "10.1.15",
- "resolved": "https://registry.npmjs.org/@inquirer/core/-/core-10.1.15.tgz",
- "integrity": "sha512-8xrp836RZvKkpNbVvgWUlxjT4CraKk2q+I3Ksy+seI2zkcE+y6wNs1BVhgcv8VyImFecUhdQrYLdW32pAjwBdA==",
- "dependencies": {
- "@inquirer/figures": "^1.0.13",
- "@inquirer/type": "^3.0.8",
- "ansi-escapes": "^4.3.2",
- "cli-width": "^4.1.0",
- "mute-stream": "^2.0.0",
- "signal-exit": "^4.1.0",
- "wrap-ansi": "^6.2.0",
- "yoctocolors-cjs": "^2.1.2"
- },
- "engines": {
- "node": ">=18"
- },
- "peerDependencies": {
- "@types/node": ">=18"
- },
- "peerDependenciesMeta": {
- "@types/node": {
- "optional": true
- }
- }
- },
- "node_modules/@inquirer/editor": {
- "version": "4.2.16",
- "resolved": "https://registry.npmjs.org/@inquirer/editor/-/editor-4.2.16.tgz",
- "integrity": "sha512-iSzLjT4C6YKp2DU0fr8T7a97FnRRxMO6CushJnW5ktxLNM2iNeuyUuUA5255eOLPORoGYCrVnuDOEBdGkHGkpw==",
- "dependencies": {
- "@inquirer/core": "^10.1.15",
- "@inquirer/external-editor": "^1.0.0",
- "@inquirer/type": "^3.0.8"
- },
- "engines": {
- "node": ">=18"
- },
- "peerDependencies": {
- "@types/node": ">=18"
- },
- "peerDependenciesMeta": {
- "@types/node": {
- "optional": true
- }
- }
- },
- "node_modules/@inquirer/expand": {
- "version": "4.0.17",
- "resolved": "https://registry.npmjs.org/@inquirer/expand/-/expand-4.0.17.tgz",
- "integrity": "sha512-PSqy9VmJx/VbE3CT453yOfNa+PykpKg/0SYP7odez1/NWBGuDXgPhp4AeGYYKjhLn5lUUavVS/JbeYMPdH50Mw==",
- "dependencies": {
- "@inquirer/core": "^10.1.15",
- "@inquirer/type": "^3.0.8",
- "yoctocolors-cjs": "^2.1.2"
- },
- "engines": {
- "node": ">=18"
- },
- "peerDependencies": {
- "@types/node": ">=18"
- },
- "peerDependenciesMeta": {
- "@types/node": {
- "optional": true
- }
- }
- },
- "node_modules/@inquirer/external-editor": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/@inquirer/external-editor/-/external-editor-1.0.0.tgz",
- "integrity": "sha512-5v3YXc5ZMfL6OJqXPrX9csb4l7NlQA2doO1yynUjpUChT9hg4JcuBVP0RbsEJ/3SL/sxWEyFjT2W69ZhtoBWqg==",
- "dependencies": {
- "chardet": "^2.1.0",
- "iconv-lite": "^0.6.3"
- },
- "engines": {
- "node": ">=18"
- },
- "peerDependencies": {
- "@types/node": ">=18"
- }
- },
- "node_modules/@inquirer/figures": {
- "version": "1.0.13",
- "resolved": "https://registry.npmjs.org/@inquirer/figures/-/figures-1.0.13.tgz",
- "integrity": "sha512-lGPVU3yO9ZNqA7vTYz26jny41lE7yoQansmqdMLBEfqaGsmdg7V3W9mK9Pvb5IL4EVZ9GnSDGMO/cJXud5dMaw==",
- "engines": {
- "node": ">=18"
- }
- },
- "node_modules/@inquirer/input": {
- "version": "4.2.1",
- "resolved": "https://registry.npmjs.org/@inquirer/input/-/input-4.2.1.tgz",
- "integrity": "sha512-tVC+O1rBl0lJpoUZv4xY+WGWY8V5b0zxU1XDsMsIHYregdh7bN5X5QnIONNBAl0K765FYlAfNHS2Bhn7SSOVow==",
- "dependencies": {
- "@inquirer/core": "^10.1.15",
- "@inquirer/type": "^3.0.8"
- },
- "engines": {
- "node": ">=18"
- },
- "peerDependencies": {
- "@types/node": ">=18"
- },
- "peerDependenciesMeta": {
- "@types/node": {
- "optional": true
- }
- }
- },
- "node_modules/@inquirer/number": {
- "version": "3.0.17",
- "resolved": "https://registry.npmjs.org/@inquirer/number/-/number-3.0.17.tgz",
- "integrity": "sha512-GcvGHkyIgfZgVnnimURdOueMk0CztycfC8NZTiIY9arIAkeOgt6zG57G+7vC59Jns3UX27LMkPKnKWAOF5xEYg==",
- "dependencies": {
- "@inquirer/core": "^10.1.15",
- "@inquirer/type": "^3.0.8"
- },
- "engines": {
- "node": ">=18"
- },
- "peerDependencies": {
- "@types/node": ">=18"
- },
- "peerDependenciesMeta": {
- "@types/node": {
- "optional": true
- }
- }
- },
- "node_modules/@inquirer/password": {
- "version": "4.0.17",
- "resolved": "https://registry.npmjs.org/@inquirer/password/-/password-4.0.17.tgz",
- "integrity": "sha512-DJolTnNeZ00E1+1TW+8614F7rOJJCM4y4BAGQ3Gq6kQIG+OJ4zr3GLjIjVVJCbKsk2jmkmv6v2kQuN/vriHdZA==",
- "dependencies": {
- "@inquirer/core": "^10.1.15",
- "@inquirer/type": "^3.0.8",
- "ansi-escapes": "^4.3.2"
- },
- "engines": {
- "node": ">=18"
- },
- "peerDependencies": {
- "@types/node": ">=18"
- },
- "peerDependenciesMeta": {
- "@types/node": {
- "optional": true
- }
- }
- },
- "node_modules/@inquirer/prompts": {
- "version": "7.8.1",
- "resolved": "https://registry.npmjs.org/@inquirer/prompts/-/prompts-7.8.1.tgz",
- "integrity": "sha512-LpBPeIpyCF1H3C7SK/QxJQG4iV1/SRmJdymfcul8PuwtVhD0JI1CSwqmd83VgRgt1QEsDojQYFSXJSgo81PVMw==",
- "dependencies": {
- "@inquirer/checkbox": "^4.2.0",
- "@inquirer/confirm": "^5.1.14",
- "@inquirer/editor": "^4.2.16",
- "@inquirer/expand": "^4.0.17",
- "@inquirer/input": "^4.2.1",
- "@inquirer/number": "^3.0.17",
- "@inquirer/password": "^4.0.17",
- "@inquirer/rawlist": "^4.1.5",
- "@inquirer/search": "^3.1.0",
- "@inquirer/select": "^4.3.1"
- },
- "engines": {
- "node": ">=18"
- },
- "peerDependencies": {
- "@types/node": ">=18"
- },
- "peerDependenciesMeta": {
- "@types/node": {
- "optional": true
- }
- }
- },
- "node_modules/@inquirer/rawlist": {
- "version": "4.1.5",
- "resolved": "https://registry.npmjs.org/@inquirer/rawlist/-/rawlist-4.1.5.tgz",
- "integrity": "sha512-R5qMyGJqtDdi4Ht521iAkNqyB6p2UPuZUbMifakg1sWtu24gc2Z8CJuw8rP081OckNDMgtDCuLe42Q2Kr3BolA==",
- "dependencies": {
- "@inquirer/core": "^10.1.15",
- "@inquirer/type": "^3.0.8",
- "yoctocolors-cjs": "^2.1.2"
- },
- "engines": {
- "node": ">=18"
- },
- "peerDependencies": {
- "@types/node": ">=18"
- },
- "peerDependenciesMeta": {
- "@types/node": {
- "optional": true
- }
- }
- },
- "node_modules/@inquirer/search": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/@inquirer/search/-/search-3.1.0.tgz",
- "integrity": "sha512-PMk1+O/WBcYJDq2H7foV0aAZSmDdkzZB9Mw2v/DmONRJopwA/128cS9M/TXWLKKdEQKZnKwBzqu2G4x/2Nqx8Q==",
- "dependencies": {
- "@inquirer/core": "^10.1.15",
- "@inquirer/figures": "^1.0.13",
- "@inquirer/type": "^3.0.8",
- "yoctocolors-cjs": "^2.1.2"
- },
- "engines": {
- "node": ">=18"
- },
- "peerDependencies": {
- "@types/node": ">=18"
- },
- "peerDependenciesMeta": {
- "@types/node": {
- "optional": true
- }
- }
- },
- "node_modules/@inquirer/select": {
- "version": "4.3.1",
- "resolved": "https://registry.npmjs.org/@inquirer/select/-/select-4.3.1.tgz",
- "integrity": "sha512-Gfl/5sqOF5vS/LIrSndFgOh7jgoe0UXEizDqahFRkq5aJBLegZ6WjuMh/hVEJwlFQjyLq1z9fRtvUMkb7jM1LA==",
- "dependencies": {
- "@inquirer/core": "^10.1.15",
- "@inquirer/figures": "^1.0.13",
- "@inquirer/type": "^3.0.8",
- "ansi-escapes": "^4.3.2",
- "yoctocolors-cjs": "^2.1.2"
- },
- "engines": {
- "node": ">=18"
- },
- "peerDependencies": {
- "@types/node": ">=18"
- },
- "peerDependenciesMeta": {
- "@types/node": {
- "optional": true
- }
- }
- },
- "node_modules/@inquirer/type": {
- "version": "3.0.8",
- "resolved": "https://registry.npmjs.org/@inquirer/type/-/type-3.0.8.tgz",
- "integrity": "sha512-lg9Whz8onIHRthWaN1Q9EGLa/0LFJjyM8mEUbL1eTi6yMGvBf8gvyDLtxSXztQsxMvhxxNpJYrwa1YHdq+w4Jw==",
- "engines": {
- "node": ">=18"
- },
- "peerDependencies": {
- "@types/node": ">=18"
- },
- "peerDependenciesMeta": {
- "@types/node": {
- "optional": true
- }
- }
- },
- "node_modules/@parcel/watcher": {
- "version": "2.5.1",
- "resolved": "https://registry.npmjs.org/@parcel/watcher/-/watcher-2.5.1.tgz",
- "integrity": "sha512-dfUnCxiN9H4ap84DvD2ubjw+3vUNpstxa0TneY/Paat8a3R4uQZDLSvWjmznAY/DoahqTHl9V46HF/Zs3F29pg==",
- "dev": true,
- "hasInstallScript": true,
- "optional": true,
- "dependencies": {
- "detect-libc": "^1.0.3",
- "is-glob": "^4.0.3",
- "micromatch": "^4.0.5",
- "node-addon-api": "^7.0.0"
- },
- "engines": {
- "node": ">= 10.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/parcel"
- },
- "optionalDependencies": {
- "@parcel/watcher-android-arm64": "2.5.1",
- "@parcel/watcher-darwin-arm64": "2.5.1",
- "@parcel/watcher-darwin-x64": "2.5.1",
- "@parcel/watcher-freebsd-x64": "2.5.1",
- "@parcel/watcher-linux-arm-glibc": "2.5.1",
- "@parcel/watcher-linux-arm-musl": "2.5.1",
- "@parcel/watcher-linux-arm64-glibc": "2.5.1",
- "@parcel/watcher-linux-arm64-musl": "2.5.1",
- "@parcel/watcher-linux-x64-glibc": "2.5.1",
- "@parcel/watcher-linux-x64-musl": "2.5.1",
- "@parcel/watcher-win32-arm64": "2.5.1",
- "@parcel/watcher-win32-ia32": "2.5.1",
- "@parcel/watcher-win32-x64": "2.5.1"
- }
- },
- "node_modules/@parcel/watcher-linux-x64-glibc": {
- "version": "2.5.1",
- "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-glibc/-/watcher-linux-x64-glibc-2.5.1.tgz",
- "integrity": "sha512-GcESn8NZySmfwlTsIur+49yDqSny2IhPeZfXunQi48DMugKeZ7uy1FX83pO0X22sHntJ4Ub+9k34XQCX+oHt2A==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">= 10.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/parcel"
- }
- },
- "node_modules/@parcel/watcher-linux-x64-musl": {
- "version": "2.5.1",
- "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-musl/-/watcher-linux-x64-musl-2.5.1.tgz",
- "integrity": "sha512-n0E2EQbatQ3bXhcH2D1XIAANAcTZkQICBPVaxMeaCVBtOpBZpWJuf7LwyWPSBDITb7In8mqQgJ7gH8CILCURXg==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">= 10.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/parcel"
- }
- },
- "node_modules/@types/node": {
- "version": "24.2.1",
- "resolved": "https://registry.npmjs.org/@types/node/-/node-24.2.1.tgz",
- "integrity": "sha512-DRh5K+ka5eJic8CjH7td8QpYEV6Zo10gfRkjHCO3weqZHWDtAaSTFtl4+VMqOJ4N5jcuhZ9/l+yy8rVgw7BQeQ==",
- "peer": true,
- "dependencies": {
- "undici-types": "~7.10.0"
- }
- },
- "node_modules/ansi-escapes": {
- "version": "4.3.2",
- "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz",
- "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==",
- "dependencies": {
- "type-fest": "^0.21.3"
- },
- "engines": {
- "node": ">=8"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/ansi-regex": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/ansi-styles": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
- "dependencies": {
- "color-convert": "^2.0.1"
- },
- "engines": {
- "node": ">=8"
- },
- "funding": {
- "url": "https://github.com/chalk/ansi-styles?sponsor=1"
- }
- },
- "node_modules/braces": {
- "version": "3.0.3",
- "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",
- "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==",
- "dev": true,
- "optional": true,
- "dependencies": {
- "fill-range": "^7.1.1"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/chardet": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/chardet/-/chardet-2.1.0.tgz",
- "integrity": "sha512-bNFETTG/pM5ryzQ9Ad0lJOTa6HWD/YsScAR3EnCPZRPlQh77JocYktSHOUHelyhm8IARL+o4c4F1bP5KVOjiRA=="
- },
- "node_modules/chokidar": {
- "version": "4.0.3",
- "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz",
- "integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==",
- "dev": true,
- "dependencies": {
- "readdirp": "^4.0.1"
- },
- "engines": {
- "node": ">= 14.16.0"
- },
- "funding": {
- "url": "https://paulmillr.com/funding/"
- }
- },
- "node_modules/cli-width": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-4.1.0.tgz",
- "integrity": "sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ==",
- "engines": {
- "node": ">= 12"
- }
- },
- "node_modules/color-convert": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
- "dependencies": {
- "color-name": "~1.1.4"
- },
- "engines": {
- "node": ">=7.0.0"
- }
- },
- "node_modules/color-name": {
- "version": "1.1.4",
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
- },
- "node_modules/detect-libc": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz",
- "integrity": "sha512-pGjwhsmsp4kL2RTz08wcOlGN83otlqHeD/Z5T8GXZB+/YcpQ/dgo+lbU8ZsGxV0HIvqqxo9l7mqYwyYMD9bKDg==",
- "dev": true,
- "optional": true,
- "bin": {
- "detect-libc": "bin/detect-libc.js"
- },
- "engines": {
- "node": ">=0.10"
- }
- },
- "node_modules/emoji-regex": {
- "version": "8.0.0",
- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
- "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="
- },
- "node_modules/fill-range": {
- "version": "7.1.1",
- "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",
- "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",
- "dev": true,
- "optional": true,
- "dependencies": {
- "to-regex-range": "^5.0.1"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/iconv-lite": {
- "version": "0.6.3",
- "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz",
- "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==",
- "dependencies": {
- "safer-buffer": ">= 2.1.2 < 3.0.0"
- },
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/immutable": {
- "version": "5.1.3",
- "resolved": "https://registry.npmjs.org/immutable/-/immutable-5.1.3.tgz",
- "integrity": "sha512-+chQdDfvscSF1SJqv2gn4SRO2ZyS3xL3r7IW/wWEEzrzLisnOlKiQu5ytC/BVNcS15C39WT2Hg/bjKjDMcu+zg==",
- "dev": true
- },
- "node_modules/inquirer": {
- "version": "12.9.1",
- "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-12.9.1.tgz",
- "integrity": "sha512-G7uXAb9OiLcd+9jmA/7KKrItvFF00kKk/jb6CtG+Tm2zSPWfzzhyJwDhVCy+mBmE32o2zJnB5JnknIIv2Ft+AA==",
- "dependencies": {
- "@inquirer/core": "^10.1.15",
- "@inquirer/prompts": "^7.8.1",
- "@inquirer/type": "^3.0.8",
- "ansi-escapes": "^4.3.2",
- "mute-stream": "^2.0.0",
- "run-async": "^4.0.5",
- "rxjs": "^7.8.2"
- },
- "engines": {
- "node": ">=18"
- },
- "peerDependencies": {
- "@types/node": ">=18"
- },
- "peerDependenciesMeta": {
- "@types/node": {
- "optional": true
- }
- }
- },
- "node_modules/is-extglob": {
- "version": "2.1.1",
- "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
- "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
- "dev": true,
- "optional": true,
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/is-fullwidth-code-point": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
- "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/is-glob": {
- "version": "4.0.3",
- "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
- "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
- "dev": true,
- "optional": true,
- "dependencies": {
- "is-extglob": "^2.1.1"
- },
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/is-number": {
- "version": "7.0.0",
- "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
- "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
- "dev": true,
- "optional": true,
- "engines": {
- "node": ">=0.12.0"
- }
- },
- "node_modules/micromatch": {
- "version": "4.0.8",
- "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz",
- "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==",
- "dev": true,
- "optional": true,
- "dependencies": {
- "braces": "^3.0.3",
- "picomatch": "^2.3.1"
- },
- "engines": {
- "node": ">=8.6"
- }
- },
- "node_modules/mute-stream": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-2.0.0.tgz",
- "integrity": "sha512-WWdIxpyjEn+FhQJQQv9aQAYlHoNVdzIzUySNV1gHUPDSdZJ3yZn7pAAbQcV7B56Mvu881q9FZV+0Vx2xC44VWA==",
- "engines": {
- "node": "^18.17.0 || >=20.5.0"
- }
- },
- "node_modules/node-addon-api": {
- "version": "7.1.1",
- "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-7.1.1.tgz",
- "integrity": "sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==",
- "dev": true,
- "optional": true
- },
- "node_modules/picomatch": {
- "version": "2.3.1",
- "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",
- "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",
- "dev": true,
- "optional": true,
- "engines": {
- "node": ">=8.6"
- },
- "funding": {
- "url": "https://github.com/sponsors/jonschlinkert"
- }
- },
- "node_modules/readdirp": {
- "version": "4.1.2",
- "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz",
- "integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==",
- "dev": true,
- "engines": {
- "node": ">= 14.18.0"
- },
- "funding": {
- "type": "individual",
- "url": "https://paulmillr.com/funding/"
- }
- },
- "node_modules/run-async": {
- "version": "4.0.6",
- "resolved": "https://registry.npmjs.org/run-async/-/run-async-4.0.6.tgz",
- "integrity": "sha512-IoDlSLTs3Yq593mb3ZoKWKXMNu3UpObxhgA/Xuid5p4bbfi2jdY1Hj0m1K+0/tEuQTxIGMhQDqGjKb7RuxGpAQ==",
- "engines": {
- "node": ">=0.12.0"
- }
- },
- "node_modules/rxjs": {
- "version": "7.8.2",
- "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.2.tgz",
- "integrity": "sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==",
- "dependencies": {
- "tslib": "^2.1.0"
- }
- },
- "node_modules/safer-buffer": {
- "version": "2.1.2",
- "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
- "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
- },
- "node_modules/sass": {
- "version": "1.90.0",
- "resolved": "https://registry.npmjs.org/sass/-/sass-1.90.0.tgz",
- "integrity": "sha512-9GUyuksjw70uNpb1MTYWsH9MQHOHY6kwfnkafC24+7aOMZn9+rVMBxRbLvw756mrBFbIsFg6Xw9IkR2Fnn3k+Q==",
- "dev": true,
- "dependencies": {
- "chokidar": "^4.0.0",
- "immutable": "^5.0.2",
- "source-map-js": ">=0.6.2 <2.0.0"
- },
- "bin": {
- "sass": "sass.js"
- },
- "engines": {
- "node": ">=14.0.0"
- },
- "optionalDependencies": {
- "@parcel/watcher": "^2.4.1"
- }
- },
- "node_modules/signal-exit": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz",
- "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==",
- "engines": {
- "node": ">=14"
- },
- "funding": {
- "url": "https://github.com/sponsors/isaacs"
- }
- },
- "node_modules/source-map-js": {
- "version": "1.2.1",
- "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",
- "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",
- "dev": true,
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/string-width": {
- "version": "4.2.3",
- "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
- "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
- "dependencies": {
- "emoji-regex": "^8.0.0",
- "is-fullwidth-code-point": "^3.0.0",
- "strip-ansi": "^6.0.1"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/strip-ansi": {
- "version": "6.0.1",
- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
- "dependencies": {
- "ansi-regex": "^5.0.1"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/to-regex-range": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
- "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
- "dev": true,
- "optional": true,
- "dependencies": {
- "is-number": "^7.0.0"
- },
- "engines": {
- "node": ">=8.0"
- }
- },
- "node_modules/tslib": {
- "version": "2.8.1",
- "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
- "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="
- },
- "node_modules/type-fest": {
- "version": "0.21.3",
- "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz",
- "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==",
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/undici-types": {
- "version": "7.10.0",
- "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.10.0.tgz",
- "integrity": "sha512-t5Fy/nfn+14LuOc2KNYg75vZqClpAiqscVvMygNnlsHBFpSXdJaYtXMcdNLpl/Qvc3P2cB3s6lOV51nqsFq4ag==",
- "peer": true
- },
- "node_modules/wrap-ansi": {
- "version": "6.2.0",
- "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz",
- "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==",
- "dependencies": {
- "ansi-styles": "^4.0.0",
- "string-width": "^4.1.0",
- "strip-ansi": "^6.0.0"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/yoctocolors-cjs": {
- "version": "2.1.2",
- "resolved": "https://registry.npmjs.org/yoctocolors-cjs/-/yoctocolors-cjs-2.1.2.tgz",
- "integrity": "sha512-cYVsTjKl8b+FrnidjibDWskAv7UKOfcwaVZdp/it9n1s9fU3IkgDbhdIRKCW4JDsAlECJY0ytoVPT3sK6kideA==",
- "engines": {
- "node": ">=18"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- }
- }
-}
diff --git a/node_modules/@inquirer/checkbox/LICENSE b/node_modules/@inquirer/checkbox/LICENSE
deleted file mode 100755
index f718698..0000000
--- a/node_modules/@inquirer/checkbox/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-Copyright (c) 2025 Simon Boudrias
-
-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:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-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.
diff --git a/node_modules/@inquirer/checkbox/README.md b/node_modules/@inquirer/checkbox/README.md
deleted file mode 100755
index b6b8e77..0000000
--- a/node_modules/@inquirer/checkbox/README.md
+++ /dev/null
@@ -1,182 +0,0 @@
-# `@inquirer/checkbox`
-
-Simple interactive command line prompt to display a list of checkboxes (multi select).
-
-
-
-# Special Thanks
-
-
-
-[](https://graphite.dev/?utm_source=npmjs&utm_medium=repo&utm_campaign=inquirerjs)
-
-### [Graphite is the AI developer productivity platform helping teams on GitHub ship higher quality software, faster](https://graphite.dev/?utm_source=npmjs&utm_medium=repo&utm_campaign=inquirerjs)
-
-
-
-# Installation
-
-
-
- npm |
- yarn |
-
-
-
-
-```sh
-npm install @inquirer/prompts
-```
-
- |
-
-
-```sh
-yarn add @inquirer/prompts
-```
-
- |
-
-
-Or |
-
-
-
-
-```sh
-npm install @inquirer/checkbox
-```
-
- |
-
-
-```sh
-yarn add @inquirer/checkbox
-```
-
- |
-
-
-
-# Usage
-
-```js
-import { checkbox, Separator } from '@inquirer/prompts';
-// Or
-// import checkbox, { Separator } from '@inquirer/checkbox';
-
-const answer = await checkbox({
- message: 'Select a package manager',
- choices: [
- { name: 'npm', value: 'npm' },
- { name: 'yarn', value: 'yarn' },
- new Separator(),
- { name: 'pnpm', value: 'pnpm', disabled: true },
- {
- name: 'pnpm',
- value: 'pnpm',
- disabled: '(pnpm is not available)',
- },
- ],
-});
-```
-
-## Options
-
-| Property | Type | Required | Description |
-| --------- | --------------------------------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| message | `string` | yes | The question to ask |
-| choices | `Choice[]` | yes | List of the available choices. |
-| pageSize | `number` | no | By default, lists of choice longer than 7 will be paginated. Use this option to control how many choices will appear on the screen at once. |
-| loop | `boolean` | no | Defaults to `true`. When set to `false`, the cursor will be constrained to the top and bottom of the choice list without looping. |
-| required | `boolean` | no | When set to `true`, ensures at least one choice must be selected. |
-| validate | `async (Choice[]) => boolean \| string` | no | On submit, validate the choices. When returning a string, it'll be used as the error message displayed to the user. Note: returning a rejected promise, we'll assume a code error happened and crash. |
-| shortcuts | [See Shortcuts](#Shortcuts) | no | Customize shortcut keys for `all` and `invert`. |
-| theme | [See Theming](#Theming) | no | Customize look of the prompt. |
-
-`Separator` objects can be used in the `choices` array to render non-selectable lines in the choice list. By default it'll render a line, but you can provide the text as argument (`new Separator('-- Dependencies --')`). This option is often used to add labels to groups within long list of options.
-
-### `Choice` object
-
-The `Choice` object is typed as
-
-```ts
-type Choice = {
- value: Value;
- name?: string;
- description?: string;
- short?: string;
- checked?: boolean;
- disabled?: boolean | string;
-};
-```
-
-Here's each property:
-
-- `value`: The value is what will be returned by `await checkbox()`.
-- `name`: This is the string displayed in the choice list.
-- `description`: Option for a longer description string that'll appear under the list when the cursor highlight a given choice.
-- `short`: Once the prompt is done (press enter), we'll use `short` if defined to render next to the question. By default we'll use `name`.
-- `checked`: If `true`, the option will be checked by default.
-- `disabled`: Disallow the option from being selected. If `disabled` is a string, it'll be used as a help tip explaining why the choice isn't available.
-
-Also note the `choices` array can contain `Separator`s to help organize long lists.
-
-`choices` can also be an array of string, in which case the string will be used both as the `value` and the `name`.
-
-## Shortcuts
-
-You can customize the shortcut keys for `all` and `invert` or disable them by setting them to `null`.
-
-```ts
-type Shortcuts = {
- all?: string | null; // default: 'a'
- invert?: string | null; // default: 'i'
-};
-```
-
-## Theming
-
-You can theme a prompt by passing a `theme` object option. The theme object only need to includes the keys you wish to modify, we'll fallback on the defaults for the rest.
-
-```ts
-type Theme = {
- prefix: string | { idle: string; done: string };
- spinner: {
- interval: number;
- frames: string[];
- };
- style: {
- answer: (text: string) => string;
- message: (text: string, status: 'idle' | 'done' | 'loading') => string;
- error: (text: string) => string;
- defaultAnswer: (text: string) => string;
- help: (text: string) => string;
- highlight: (text: string) => string;
- key: (text: string) => string;
- disabledChoice: (text: string) => string;
- description: (text: string) => string;
- renderSelectedChoices: (
- selectedChoices: ReadonlyArray>,
- allChoices: ReadonlyArray | Separator>,
- ) => string;
- };
- icon: {
- checked: string;
- unchecked: string;
- cursor: string;
- };
- helpMode: 'always' | 'never' | 'auto';
-};
-```
-
-### `theme.helpMode`
-
-- `auto` (default): Hide the help tips after an interaction occurs. The scroll tip will hide after any interactions, the selection tip will hide as soon as a first selection is done.
-- `always`: The help tips will always show and never hide.
-- `never`: The help tips will never show.
-
-# License
-
-Copyright (c) 2023 Simon Boudrias (twitter: [@vaxilart](https://twitter.com/Vaxilart))
-Licensed under the MIT license.
diff --git a/node_modules/@inquirer/checkbox/dist/commonjs/index.d.ts b/node_modules/@inquirer/checkbox/dist/commonjs/index.d.ts
deleted file mode 100755
index 9e41330..0000000
--- a/node_modules/@inquirer/checkbox/dist/commonjs/index.d.ts
+++ /dev/null
@@ -1,52 +0,0 @@
-import { Separator, type Theme } from '@inquirer/core';
-import type { PartialDeep } from '@inquirer/type';
-type CheckboxTheme = {
- icon: {
- checked: string;
- unchecked: string;
- cursor: string;
- };
- style: {
- disabledChoice: (text: string) => string;
- renderSelectedChoices: (selectedChoices: ReadonlyArray>, allChoices: ReadonlyArray | Separator>) => string;
- description: (text: string) => string;
- };
- helpMode: 'always' | 'never' | 'auto';
-};
-type CheckboxShortcuts = {
- all?: string | null;
- invert?: string | null;
-};
-type Choice = {
- value: Value;
- name?: string;
- description?: string;
- short?: string;
- disabled?: boolean | string;
- checked?: boolean;
- type?: never;
-};
-type NormalizedChoice = {
- value: Value;
- name: string;
- description?: string;
- short: string;
- disabled: boolean | string;
- checked: boolean;
-};
-declare const _default: (config: {
- message: string;
- prefix?: string | undefined;
- pageSize?: number | undefined;
- instructions?: string | boolean | undefined;
- choices: readonly (string | Separator)[] | readonly (Separator | Choice)[];
- loop?: boolean | undefined;
- required?: boolean | undefined;
- validate?: ((choices: readonly Choice[]) => boolean | string | Promise) | undefined;
- theme?: PartialDeep> | undefined;
- shortcuts?: CheckboxShortcuts | undefined;
-}, context?: import("@inquirer/type").Context) => Promise & {
- cancel: () => void;
-};
-export default _default;
-export { Separator } from '@inquirer/core';
diff --git a/node_modules/@inquirer/checkbox/dist/commonjs/index.js b/node_modules/@inquirer/checkbox/dist/commonjs/index.js
deleted file mode 100755
index 283e9bf..0000000
--- a/node_modules/@inquirer/checkbox/dist/commonjs/index.js
+++ /dev/null
@@ -1,207 +0,0 @@
-"use strict";
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.Separator = void 0;
-const core_1 = require("@inquirer/core");
-const yoctocolors_cjs_1 = __importDefault(require("yoctocolors-cjs"));
-const figures_1 = __importDefault(require("@inquirer/figures"));
-const ansi_escapes_1 = __importDefault(require("ansi-escapes"));
-const checkboxTheme = {
- icon: {
- checked: yoctocolors_cjs_1.default.green(figures_1.default.circleFilled),
- unchecked: figures_1.default.circle,
- cursor: figures_1.default.pointer,
- },
- style: {
- disabledChoice: (text) => yoctocolors_cjs_1.default.dim(`- ${text}`),
- renderSelectedChoices: (selectedChoices) => selectedChoices.map((choice) => choice.short).join(', '),
- description: (text) => yoctocolors_cjs_1.default.cyan(text),
- },
- helpMode: 'auto',
-};
-function isSelectable(item) {
- return !core_1.Separator.isSeparator(item) && !item.disabled;
-}
-function isChecked(item) {
- return isSelectable(item) && Boolean(item.checked);
-}
-function toggle(item) {
- return isSelectable(item) ? { ...item, checked: !item.checked } : item;
-}
-function check(checked) {
- return function (item) {
- return isSelectable(item) ? { ...item, checked } : item;
- };
-}
-function normalizeChoices(choices) {
- return choices.map((choice) => {
- if (core_1.Separator.isSeparator(choice))
- return choice;
- if (typeof choice === 'string') {
- return {
- value: choice,
- name: choice,
- short: choice,
- disabled: false,
- checked: false,
- };
- }
- const name = choice.name ?? String(choice.value);
- const normalizedChoice = {
- value: choice.value,
- name,
- short: choice.short ?? name,
- disabled: choice.disabled ?? false,
- checked: choice.checked ?? false,
- };
- if (choice.description) {
- normalizedChoice.description = choice.description;
- }
- return normalizedChoice;
- });
-}
-exports.default = (0, core_1.createPrompt)((config, done) => {
- const { instructions, pageSize = 7, loop = true, required, validate = () => true, } = config;
- const shortcuts = { all: 'a', invert: 'i', ...config.shortcuts };
- const theme = (0, core_1.makeTheme)(checkboxTheme, config.theme);
- const firstRender = (0, core_1.useRef)(true);
- const [status, setStatus] = (0, core_1.useState)('idle');
- const prefix = (0, core_1.usePrefix)({ status, theme });
- const [items, setItems] = (0, core_1.useState)(normalizeChoices(config.choices));
- const bounds = (0, core_1.useMemo)(() => {
- const first = items.findIndex(isSelectable);
- const last = items.findLastIndex(isSelectable);
- if (first === -1) {
- throw new core_1.ValidationError('[checkbox prompt] No selectable choices. All choices are disabled.');
- }
- return { first, last };
- }, [items]);
- const [active, setActive] = (0, core_1.useState)(bounds.first);
- const [showHelpTip, setShowHelpTip] = (0, core_1.useState)(true);
- const [errorMsg, setError] = (0, core_1.useState)();
- (0, core_1.useKeypress)(async (key) => {
- if ((0, core_1.isEnterKey)(key)) {
- const selection = items.filter(isChecked);
- const isValid = await validate([...selection]);
- if (required && !items.some(isChecked)) {
- setError('At least one choice must be selected');
- }
- else if (isValid === true) {
- setStatus('done');
- done(selection.map((choice) => choice.value));
- }
- else {
- setError(isValid || 'You must select a valid value');
- }
- }
- else if ((0, core_1.isUpKey)(key) || (0, core_1.isDownKey)(key)) {
- if (loop ||
- ((0, core_1.isUpKey)(key) && active !== bounds.first) ||
- ((0, core_1.isDownKey)(key) && active !== bounds.last)) {
- const offset = (0, core_1.isUpKey)(key) ? -1 : 1;
- let next = active;
- do {
- next = (next + offset + items.length) % items.length;
- } while (!isSelectable(items[next]));
- setActive(next);
- }
- }
- else if ((0, core_1.isSpaceKey)(key)) {
- setError(undefined);
- setShowHelpTip(false);
- setItems(items.map((choice, i) => (i === active ? toggle(choice) : choice)));
- }
- else if (key.name === shortcuts.all) {
- const selectAll = items.some((choice) => isSelectable(choice) && !choice.checked);
- setItems(items.map(check(selectAll)));
- }
- else if (key.name === shortcuts.invert) {
- setItems(items.map(toggle));
- }
- else if ((0, core_1.isNumberKey)(key)) {
- const selectedIndex = Number(key.name) - 1;
- // Find the nth item (ignoring separators)
- let selectableIndex = -1;
- const position = items.findIndex((item) => {
- if (core_1.Separator.isSeparator(item))
- return false;
- selectableIndex++;
- return selectableIndex === selectedIndex;
- });
- const selectedItem = items[position];
- if (selectedItem && isSelectable(selectedItem)) {
- setActive(position);
- setItems(items.map((choice, i) => (i === position ? toggle(choice) : choice)));
- }
- }
- });
- const message = theme.style.message(config.message, status);
- let description;
- const page = (0, core_1.usePagination)({
- items,
- active,
- renderItem({ item, isActive }) {
- if (core_1.Separator.isSeparator(item)) {
- return ` ${item.separator}`;
- }
- if (item.disabled) {
- const disabledLabel = typeof item.disabled === 'string' ? item.disabled : '(disabled)';
- return theme.style.disabledChoice(`${item.name} ${disabledLabel}`);
- }
- if (isActive) {
- description = item.description;
- }
- const checkbox = item.checked ? theme.icon.checked : theme.icon.unchecked;
- const color = isActive ? theme.style.highlight : (x) => x;
- const cursor = isActive ? theme.icon.cursor : ' ';
- return color(`${cursor}${checkbox} ${item.name}`);
- },
- pageSize,
- loop,
- });
- if (status === 'done') {
- const selection = items.filter(isChecked);
- const answer = theme.style.answer(theme.style.renderSelectedChoices(selection, items));
- return `${prefix} ${message} ${answer}`;
- }
- let helpTipTop = '';
- let helpTipBottom = '';
- if (theme.helpMode === 'always' ||
- (theme.helpMode === 'auto' &&
- showHelpTip &&
- (instructions === undefined || instructions))) {
- if (typeof instructions === 'string') {
- helpTipTop = instructions;
- }
- else {
- const keys = [
- `${theme.style.key('space')} to select`,
- shortcuts.all ? `${theme.style.key(shortcuts.all)} to toggle all` : '',
- shortcuts.invert
- ? `${theme.style.key(shortcuts.invert)} to invert selection`
- : '',
- `and ${theme.style.key('enter')} to proceed`,
- ];
- helpTipTop = ` (Press ${keys.filter((key) => key !== '').join(', ')})`;
- }
- if (items.length > pageSize &&
- (theme.helpMode === 'always' ||
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
- (theme.helpMode === 'auto' && firstRender.current))) {
- helpTipBottom = `\n${theme.style.help('(Use arrow keys to reveal more choices)')}`;
- firstRender.current = false;
- }
- }
- const choiceDescription = description
- ? `\n${theme.style.description(description)}`
- : ``;
- let error = '';
- if (errorMsg) {
- error = `\n${theme.style.error(errorMsg)}`;
- }
- return `${prefix} ${message}${helpTipTop}\n${page}${helpTipBottom}${choiceDescription}${error}${ansi_escapes_1.default.cursorHide}`;
-});
-var core_2 = require("@inquirer/core");
-Object.defineProperty(exports, "Separator", { enumerable: true, get: function () { return core_2.Separator; } });
diff --git a/node_modules/@inquirer/checkbox/dist/commonjs/package.json b/node_modules/@inquirer/checkbox/dist/commonjs/package.json
deleted file mode 100755
index 5bbefff..0000000
--- a/node_modules/@inquirer/checkbox/dist/commonjs/package.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "type": "commonjs"
-}
diff --git a/node_modules/@inquirer/checkbox/dist/esm/index.d.ts b/node_modules/@inquirer/checkbox/dist/esm/index.d.ts
deleted file mode 100755
index 9e41330..0000000
--- a/node_modules/@inquirer/checkbox/dist/esm/index.d.ts
+++ /dev/null
@@ -1,52 +0,0 @@
-import { Separator, type Theme } from '@inquirer/core';
-import type { PartialDeep } from '@inquirer/type';
-type CheckboxTheme = {
- icon: {
- checked: string;
- unchecked: string;
- cursor: string;
- };
- style: {
- disabledChoice: (text: string) => string;
- renderSelectedChoices: (selectedChoices: ReadonlyArray>, allChoices: ReadonlyArray | Separator>) => string;
- description: (text: string) => string;
- };
- helpMode: 'always' | 'never' | 'auto';
-};
-type CheckboxShortcuts = {
- all?: string | null;
- invert?: string | null;
-};
-type Choice = {
- value: Value;
- name?: string;
- description?: string;
- short?: string;
- disabled?: boolean | string;
- checked?: boolean;
- type?: never;
-};
-type NormalizedChoice = {
- value: Value;
- name: string;
- description?: string;
- short: string;
- disabled: boolean | string;
- checked: boolean;
-};
-declare const _default: (config: {
- message: string;
- prefix?: string | undefined;
- pageSize?: number | undefined;
- instructions?: string | boolean | undefined;
- choices: readonly (string | Separator)[] | readonly (Separator | Choice)[];
- loop?: boolean | undefined;
- required?: boolean | undefined;
- validate?: ((choices: readonly Choice[]) => boolean | string | Promise) | undefined;
- theme?: PartialDeep> | undefined;
- shortcuts?: CheckboxShortcuts | undefined;
-}, context?: import("@inquirer/type").Context) => Promise & {
- cancel: () => void;
-};
-export default _default;
-export { Separator } from '@inquirer/core';
diff --git a/node_modules/@inquirer/checkbox/dist/esm/index.js b/node_modules/@inquirer/checkbox/dist/esm/index.js
deleted file mode 100755
index 19f9540..0000000
--- a/node_modules/@inquirer/checkbox/dist/esm/index.js
+++ /dev/null
@@ -1,200 +0,0 @@
-import { createPrompt, useState, useKeypress, usePrefix, usePagination, useRef, useMemo, makeTheme, isUpKey, isDownKey, isSpaceKey, isNumberKey, isEnterKey, ValidationError, Separator, } from '@inquirer/core';
-import colors from 'yoctocolors-cjs';
-import figures from '@inquirer/figures';
-import ansiEscapes from 'ansi-escapes';
-const checkboxTheme = {
- icon: {
- checked: colors.green(figures.circleFilled),
- unchecked: figures.circle,
- cursor: figures.pointer,
- },
- style: {
- disabledChoice: (text) => colors.dim(`- ${text}`),
- renderSelectedChoices: (selectedChoices) => selectedChoices.map((choice) => choice.short).join(', '),
- description: (text) => colors.cyan(text),
- },
- helpMode: 'auto',
-};
-function isSelectable(item) {
- return !Separator.isSeparator(item) && !item.disabled;
-}
-function isChecked(item) {
- return isSelectable(item) && Boolean(item.checked);
-}
-function toggle(item) {
- return isSelectable(item) ? { ...item, checked: !item.checked } : item;
-}
-function check(checked) {
- return function (item) {
- return isSelectable(item) ? { ...item, checked } : item;
- };
-}
-function normalizeChoices(choices) {
- return choices.map((choice) => {
- if (Separator.isSeparator(choice))
- return choice;
- if (typeof choice === 'string') {
- return {
- value: choice,
- name: choice,
- short: choice,
- disabled: false,
- checked: false,
- };
- }
- const name = choice.name ?? String(choice.value);
- const normalizedChoice = {
- value: choice.value,
- name,
- short: choice.short ?? name,
- disabled: choice.disabled ?? false,
- checked: choice.checked ?? false,
- };
- if (choice.description) {
- normalizedChoice.description = choice.description;
- }
- return normalizedChoice;
- });
-}
-export default createPrompt((config, done) => {
- const { instructions, pageSize = 7, loop = true, required, validate = () => true, } = config;
- const shortcuts = { all: 'a', invert: 'i', ...config.shortcuts };
- const theme = makeTheme(checkboxTheme, config.theme);
- const firstRender = useRef(true);
- const [status, setStatus] = useState('idle');
- const prefix = usePrefix({ status, theme });
- const [items, setItems] = useState(normalizeChoices(config.choices));
- const bounds = useMemo(() => {
- const first = items.findIndex(isSelectable);
- const last = items.findLastIndex(isSelectable);
- if (first === -1) {
- throw new ValidationError('[checkbox prompt] No selectable choices. All choices are disabled.');
- }
- return { first, last };
- }, [items]);
- const [active, setActive] = useState(bounds.first);
- const [showHelpTip, setShowHelpTip] = useState(true);
- const [errorMsg, setError] = useState();
- useKeypress(async (key) => {
- if (isEnterKey(key)) {
- const selection = items.filter(isChecked);
- const isValid = await validate([...selection]);
- if (required && !items.some(isChecked)) {
- setError('At least one choice must be selected');
- }
- else if (isValid === true) {
- setStatus('done');
- done(selection.map((choice) => choice.value));
- }
- else {
- setError(isValid || 'You must select a valid value');
- }
- }
- else if (isUpKey(key) || isDownKey(key)) {
- if (loop ||
- (isUpKey(key) && active !== bounds.first) ||
- (isDownKey(key) && active !== bounds.last)) {
- const offset = isUpKey(key) ? -1 : 1;
- let next = active;
- do {
- next = (next + offset + items.length) % items.length;
- } while (!isSelectable(items[next]));
- setActive(next);
- }
- }
- else if (isSpaceKey(key)) {
- setError(undefined);
- setShowHelpTip(false);
- setItems(items.map((choice, i) => (i === active ? toggle(choice) : choice)));
- }
- else if (key.name === shortcuts.all) {
- const selectAll = items.some((choice) => isSelectable(choice) && !choice.checked);
- setItems(items.map(check(selectAll)));
- }
- else if (key.name === shortcuts.invert) {
- setItems(items.map(toggle));
- }
- else if (isNumberKey(key)) {
- const selectedIndex = Number(key.name) - 1;
- // Find the nth item (ignoring separators)
- let selectableIndex = -1;
- const position = items.findIndex((item) => {
- if (Separator.isSeparator(item))
- return false;
- selectableIndex++;
- return selectableIndex === selectedIndex;
- });
- const selectedItem = items[position];
- if (selectedItem && isSelectable(selectedItem)) {
- setActive(position);
- setItems(items.map((choice, i) => (i === position ? toggle(choice) : choice)));
- }
- }
- });
- const message = theme.style.message(config.message, status);
- let description;
- const page = usePagination({
- items,
- active,
- renderItem({ item, isActive }) {
- if (Separator.isSeparator(item)) {
- return ` ${item.separator}`;
- }
- if (item.disabled) {
- const disabledLabel = typeof item.disabled === 'string' ? item.disabled : '(disabled)';
- return theme.style.disabledChoice(`${item.name} ${disabledLabel}`);
- }
- if (isActive) {
- description = item.description;
- }
- const checkbox = item.checked ? theme.icon.checked : theme.icon.unchecked;
- const color = isActive ? theme.style.highlight : (x) => x;
- const cursor = isActive ? theme.icon.cursor : ' ';
- return color(`${cursor}${checkbox} ${item.name}`);
- },
- pageSize,
- loop,
- });
- if (status === 'done') {
- const selection = items.filter(isChecked);
- const answer = theme.style.answer(theme.style.renderSelectedChoices(selection, items));
- return `${prefix} ${message} ${answer}`;
- }
- let helpTipTop = '';
- let helpTipBottom = '';
- if (theme.helpMode === 'always' ||
- (theme.helpMode === 'auto' &&
- showHelpTip &&
- (instructions === undefined || instructions))) {
- if (typeof instructions === 'string') {
- helpTipTop = instructions;
- }
- else {
- const keys = [
- `${theme.style.key('space')} to select`,
- shortcuts.all ? `${theme.style.key(shortcuts.all)} to toggle all` : '',
- shortcuts.invert
- ? `${theme.style.key(shortcuts.invert)} to invert selection`
- : '',
- `and ${theme.style.key('enter')} to proceed`,
- ];
- helpTipTop = ` (Press ${keys.filter((key) => key !== '').join(', ')})`;
- }
- if (items.length > pageSize &&
- (theme.helpMode === 'always' ||
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
- (theme.helpMode === 'auto' && firstRender.current))) {
- helpTipBottom = `\n${theme.style.help('(Use arrow keys to reveal more choices)')}`;
- firstRender.current = false;
- }
- }
- const choiceDescription = description
- ? `\n${theme.style.description(description)}`
- : ``;
- let error = '';
- if (errorMsg) {
- error = `\n${theme.style.error(errorMsg)}`;
- }
- return `${prefix} ${message}${helpTipTop}\n${page}${helpTipBottom}${choiceDescription}${error}${ansiEscapes.cursorHide}`;
-});
-export { Separator } from '@inquirer/core';
diff --git a/node_modules/@inquirer/checkbox/dist/esm/package.json b/node_modules/@inquirer/checkbox/dist/esm/package.json
deleted file mode 100755
index 3dbc1ca..0000000
--- a/node_modules/@inquirer/checkbox/dist/esm/package.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "type": "module"
-}
diff --git a/node_modules/@inquirer/checkbox/package.json b/node_modules/@inquirer/checkbox/package.json
deleted file mode 100755
index 9722420..0000000
--- a/node_modules/@inquirer/checkbox/package.json
+++ /dev/null
@@ -1,112 +0,0 @@
-{
- "name": "@inquirer/checkbox",
- "version": "4.2.0",
- "description": "Inquirer checkbox prompt",
- "keywords": [
- "answer",
- "answers",
- "ask",
- "base",
- "cli",
- "command",
- "command-line",
- "confirm",
- "enquirer",
- "generate",
- "generator",
- "hyper",
- "input",
- "inquire",
- "inquirer",
- "interface",
- "iterm",
- "javascript",
- "menu",
- "node",
- "nodejs",
- "prompt",
- "promptly",
- "prompts",
- "question",
- "readline",
- "scaffold",
- "scaffolder",
- "scaffolding",
- "stdin",
- "stdout",
- "terminal",
- "tty",
- "ui",
- "yeoman",
- "yo",
- "zsh"
- ],
- "homepage": "https://github.com/SBoudrias/Inquirer.js/blob/main/packages/checkbox/README.md",
- "repository": {
- "type": "git",
- "url": "https://github.com/SBoudrias/Inquirer.js.git"
- },
- "license": "MIT",
- "author": "Simon Boudrias ",
- "sideEffects": false,
- "type": "module",
- "exports": {
- "./package.json": "./package.json",
- ".": {
- "import": {
- "types": "./dist/esm/index.d.ts",
- "default": "./dist/esm/index.js"
- },
- "require": {
- "types": "./dist/commonjs/index.d.ts",
- "default": "./dist/commonjs/index.js"
- }
- }
- },
- "main": "./dist/commonjs/index.js",
- "module": "./dist/esm/index.js",
- "types": "./dist/commonjs/index.d.ts",
- "files": [
- "dist"
- ],
- "scripts": {
- "attw": "attw --pack",
- "tsc": "tshy"
- },
- "dependencies": {
- "@inquirer/core": "^10.1.15",
- "@inquirer/figures": "^1.0.13",
- "@inquirer/type": "^3.0.8",
- "ansi-escapes": "^4.3.2",
- "yoctocolors-cjs": "^2.1.2"
- },
- "devDependencies": {
- "@arethetypeswrong/cli": "^0.18.2",
- "@inquirer/testing": "^2.1.49",
- "tshy": "^3.0.2"
- },
- "engines": {
- "node": ">=18"
- },
- "publishConfig": {
- "access": "public"
- },
- "tshy": {
- "exclude": [
- "src/**/*.test.ts"
- ],
- "exports": {
- "./package.json": "./package.json",
- ".": "./src/index.ts"
- }
- },
- "peerDependencies": {
- "@types/node": ">=18"
- },
- "peerDependenciesMeta": {
- "@types/node": {
- "optional": true
- }
- },
- "gitHead": "c1a755fe8b50377b685ea5951e0794985ce8d356"
-}
diff --git a/node_modules/@inquirer/confirm/LICENSE b/node_modules/@inquirer/confirm/LICENSE
deleted file mode 100755
index f718698..0000000
--- a/node_modules/@inquirer/confirm/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-Copyright (c) 2025 Simon Boudrias
-
-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:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-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.
diff --git a/node_modules/@inquirer/confirm/README.md b/node_modules/@inquirer/confirm/README.md
deleted file mode 100755
index 0a259af..0000000
--- a/node_modules/@inquirer/confirm/README.md
+++ /dev/null
@@ -1,102 +0,0 @@
-# `@inquirer/confirm`
-
-Simple interactive command line prompt to gather boolean input from users.
-
-
-
-# Special Thanks
-
-
-
-[](https://graphite.dev/?utm_source=npmjs&utm_medium=repo&utm_campaign=inquirerjs)
-
-### [Graphite is the AI developer productivity platform helping teams on GitHub ship higher quality software, faster](https://graphite.dev/?utm_source=npmjs&utm_medium=repo&utm_campaign=inquirerjs)
-
-
-
-# Installation
-
-
-
- npm |
- yarn |
-
-
-
-
-```sh
-npm install @inquirer/prompts
-```
-
- |
-
-
-```sh
-yarn add @inquirer/prompts
-```
-
- |
-
-
-Or |
-
-
-
-
-```sh
-npm install @inquirer/confirm
-```
-
- |
-
-
-```sh
-yarn add @inquirer/confirm
-```
-
- |
-
-
-
-# Usage
-
-```js
-import { confirm } from '@inquirer/prompts';
-// Or
-// import confirm from '@inquirer/confirm';
-
-const answer = await confirm({ message: 'Continue?' });
-```
-
-## Options
-
-| Property | Type | Required | Description |
-| ----------- | ----------------------- | -------- | ------------------------------------------------------- |
-| message | `string` | yes | The question to ask |
-| default | `boolean` | no | Default answer (true or false) |
-| transformer | `(boolean) => string` | no | Transform the prompt printed message to a custom string |
-| theme | [See Theming](#Theming) | no | Customize look of the prompt. |
-
-## Theming
-
-You can theme a prompt by passing a `theme` object option. The theme object only need to includes the keys you wish to modify, we'll fallback on the defaults for the rest.
-
-```ts
-type Theme = {
- prefix: string | { idle: string; done: string };
- spinner: {
- interval: number;
- frames: string[];
- };
- style: {
- answer: (text: string) => string;
- message: (text: string, status: 'idle' | 'done' | 'loading') => string;
- defaultAnswer: (text: string) => string;
- };
-};
-```
-
-# License
-
-Copyright (c) 2023 Simon Boudrias (twitter: [@vaxilart](https://twitter.com/Vaxilart))
-Licensed under the MIT license.
diff --git a/node_modules/@inquirer/confirm/dist/commonjs/index.d.ts b/node_modules/@inquirer/confirm/dist/commonjs/index.d.ts
deleted file mode 100755
index d3d323a..0000000
--- a/node_modules/@inquirer/confirm/dist/commonjs/index.d.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-import { type Theme } from '@inquirer/core';
-import type { PartialDeep } from '@inquirer/type';
-type ConfirmConfig = {
- message: string;
- default?: boolean;
- transformer?: (value: boolean) => string;
- theme?: PartialDeep;
-};
-declare const _default: import("@inquirer/type").Prompt;
-export default _default;
diff --git a/node_modules/@inquirer/confirm/dist/commonjs/index.js b/node_modules/@inquirer/confirm/dist/commonjs/index.js
deleted file mode 100755
index f4b51f1..0000000
--- a/node_modules/@inquirer/confirm/dist/commonjs/index.js
+++ /dev/null
@@ -1,48 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-const core_1 = require("@inquirer/core");
-function getBooleanValue(value, defaultValue) {
- let answer = defaultValue !== false;
- if (/^(y|yes)/i.test(value))
- answer = true;
- else if (/^(n|no)/i.test(value))
- answer = false;
- return answer;
-}
-function boolToString(value) {
- return value ? 'Yes' : 'No';
-}
-exports.default = (0, core_1.createPrompt)((config, done) => {
- const { transformer = boolToString } = config;
- const [status, setStatus] = (0, core_1.useState)('idle');
- const [value, setValue] = (0, core_1.useState)('');
- const theme = (0, core_1.makeTheme)(config.theme);
- const prefix = (0, core_1.usePrefix)({ status, theme });
- (0, core_1.useKeypress)((key, rl) => {
- if ((0, core_1.isEnterKey)(key)) {
- const answer = getBooleanValue(value, config.default);
- setValue(transformer(answer));
- setStatus('done');
- done(answer);
- }
- else if (key.name === 'tab') {
- const answer = boolToString(!getBooleanValue(value, config.default));
- rl.clearLine(0); // Remove the tab character.
- rl.write(answer);
- setValue(answer);
- }
- else {
- setValue(rl.line);
- }
- });
- let formattedValue = value;
- let defaultValue = '';
- if (status === 'done') {
- formattedValue = theme.style.answer(value);
- }
- else {
- defaultValue = ` ${theme.style.defaultAnswer(config.default === false ? 'y/N' : 'Y/n')}`;
- }
- const message = theme.style.message(config.message, status);
- return `${prefix} ${message}${defaultValue} ${formattedValue}`;
-});
diff --git a/node_modules/@inquirer/confirm/dist/commonjs/package.json b/node_modules/@inquirer/confirm/dist/commonjs/package.json
deleted file mode 100755
index 5bbefff..0000000
--- a/node_modules/@inquirer/confirm/dist/commonjs/package.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "type": "commonjs"
-}
diff --git a/node_modules/@inquirer/confirm/dist/esm/index.d.ts b/node_modules/@inquirer/confirm/dist/esm/index.d.ts
deleted file mode 100755
index d3d323a..0000000
--- a/node_modules/@inquirer/confirm/dist/esm/index.d.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-import { type Theme } from '@inquirer/core';
-import type { PartialDeep } from '@inquirer/type';
-type ConfirmConfig = {
- message: string;
- default?: boolean;
- transformer?: (value: boolean) => string;
- theme?: PartialDeep;
-};
-declare const _default: import("@inquirer/type").Prompt;
-export default _default;
diff --git a/node_modules/@inquirer/confirm/dist/esm/index.js b/node_modules/@inquirer/confirm/dist/esm/index.js
deleted file mode 100755
index 970c2b6..0000000
--- a/node_modules/@inquirer/confirm/dist/esm/index.js
+++ /dev/null
@@ -1,46 +0,0 @@
-import { createPrompt, useState, useKeypress, isEnterKey, usePrefix, makeTheme, } from '@inquirer/core';
-function getBooleanValue(value, defaultValue) {
- let answer = defaultValue !== false;
- if (/^(y|yes)/i.test(value))
- answer = true;
- else if (/^(n|no)/i.test(value))
- answer = false;
- return answer;
-}
-function boolToString(value) {
- return value ? 'Yes' : 'No';
-}
-export default createPrompt((config, done) => {
- const { transformer = boolToString } = config;
- const [status, setStatus] = useState('idle');
- const [value, setValue] = useState('');
- const theme = makeTheme(config.theme);
- const prefix = usePrefix({ status, theme });
- useKeypress((key, rl) => {
- if (isEnterKey(key)) {
- const answer = getBooleanValue(value, config.default);
- setValue(transformer(answer));
- setStatus('done');
- done(answer);
- }
- else if (key.name === 'tab') {
- const answer = boolToString(!getBooleanValue(value, config.default));
- rl.clearLine(0); // Remove the tab character.
- rl.write(answer);
- setValue(answer);
- }
- else {
- setValue(rl.line);
- }
- });
- let formattedValue = value;
- let defaultValue = '';
- if (status === 'done') {
- formattedValue = theme.style.answer(value);
- }
- else {
- defaultValue = ` ${theme.style.defaultAnswer(config.default === false ? 'y/N' : 'Y/n')}`;
- }
- const message = theme.style.message(config.message, status);
- return `${prefix} ${message}${defaultValue} ${formattedValue}`;
-});
diff --git a/node_modules/@inquirer/confirm/dist/esm/package.json b/node_modules/@inquirer/confirm/dist/esm/package.json
deleted file mode 100755
index 3dbc1ca..0000000
--- a/node_modules/@inquirer/confirm/dist/esm/package.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "type": "module"
-}
diff --git a/node_modules/@inquirer/confirm/package.json b/node_modules/@inquirer/confirm/package.json
deleted file mode 100755
index 0816407..0000000
--- a/node_modules/@inquirer/confirm/package.json
+++ /dev/null
@@ -1,109 +0,0 @@
-{
- "name": "@inquirer/confirm",
- "version": "5.1.14",
- "description": "Inquirer confirm prompt",
- "keywords": [
- "answer",
- "answers",
- "ask",
- "base",
- "cli",
- "command",
- "command-line",
- "confirm",
- "enquirer",
- "generate",
- "generator",
- "hyper",
- "input",
- "inquire",
- "inquirer",
- "interface",
- "iterm",
- "javascript",
- "menu",
- "node",
- "nodejs",
- "prompt",
- "promptly",
- "prompts",
- "question",
- "readline",
- "scaffold",
- "scaffolder",
- "scaffolding",
- "stdin",
- "stdout",
- "terminal",
- "tty",
- "ui",
- "yeoman",
- "yo",
- "zsh"
- ],
- "homepage": "https://github.com/SBoudrias/Inquirer.js/blob/main/packages/confirm/README.md",
- "repository": {
- "type": "git",
- "url": "https://github.com/SBoudrias/Inquirer.js.git"
- },
- "license": "MIT",
- "author": "Simon Boudrias ",
- "sideEffects": false,
- "type": "module",
- "exports": {
- "./package.json": "./package.json",
- ".": {
- "import": {
- "types": "./dist/esm/index.d.ts",
- "default": "./dist/esm/index.js"
- },
- "require": {
- "types": "./dist/commonjs/index.d.ts",
- "default": "./dist/commonjs/index.js"
- }
- }
- },
- "main": "./dist/commonjs/index.js",
- "module": "./dist/esm/index.js",
- "types": "./dist/commonjs/index.d.ts",
- "files": [
- "dist"
- ],
- "scripts": {
- "attw": "attw --pack",
- "tsc": "tshy"
- },
- "dependencies": {
- "@inquirer/core": "^10.1.15",
- "@inquirer/type": "^3.0.8"
- },
- "devDependencies": {
- "@arethetypeswrong/cli": "^0.18.2",
- "@inquirer/testing": "^2.1.49",
- "tshy": "^3.0.2"
- },
- "engines": {
- "node": ">=18"
- },
- "publishConfig": {
- "access": "public"
- },
- "tshy": {
- "exclude": [
- "src/**/*.test.ts"
- ],
- "exports": {
- "./package.json": "./package.json",
- ".": "./src/index.ts"
- }
- },
- "peerDependencies": {
- "@types/node": ">=18"
- },
- "peerDependenciesMeta": {
- "@types/node": {
- "optional": true
- }
- },
- "gitHead": "c1a755fe8b50377b685ea5951e0794985ce8d356"
-}
diff --git a/node_modules/@inquirer/core/LICENSE b/node_modules/@inquirer/core/LICENSE
deleted file mode 100755
index f718698..0000000
--- a/node_modules/@inquirer/core/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-Copyright (c) 2025 Simon Boudrias
-
-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:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-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.
diff --git a/node_modules/@inquirer/core/README.md b/node_modules/@inquirer/core/README.md
deleted file mode 100755
index 6f72b0f..0000000
--- a/node_modules/@inquirer/core/README.md
+++ /dev/null
@@ -1,393 +0,0 @@
-# `@inquirer/core`
-
-The `@inquirer/core` package is the library enabling the creation of Inquirer prompts.
-
-It aims to implements a lightweight API similar to React hooks - but without JSX.
-
-# Special Thanks
-
-
-
-[](https://graphite.dev/?utm_source=npmjs&utm_medium=repo&utm_campaign=inquirerjs)
-
-### [Graphite is the AI developer productivity platform helping teams on GitHub ship higher quality software, faster](https://graphite.dev/?utm_source=npmjs&utm_medium=repo&utm_campaign=inquirerjs)
-
-
-
-# Installation
-
-
-
- npm |
- yarn |
-
-
-
-
-```sh
-npm install @inquirer/core
-```
-
- |
-
-
-```sh
-yarn add @inquirer/core
-```
-
- |
-
-
-
-# Usage
-
-## Basic concept
-
-Visual terminal apps are at their core strings rendered onto the terminal.
-
-The most basic prompt is a function returning a string that'll be rendered in the terminal. This function will run every time the prompt state change, and the new returned string will replace the previously rendered one. The prompt cursor appears after the string.
-
-Wrapping the rendering function with `createPrompt()` will setup the rendering layer, inject the state management utilities, and wait until the `done` callback is called.
-
-```ts
-import { createPrompt } from '@inquirer/core';
-
-const input = createPrompt((config, done) => {
- // Implement logic
-
- return '? My question';
-});
-
-// And it is then called as
-const answer = await input({
- /* config */
-});
-```
-
-## Hooks
-
-State management and user interactions are handled through hooks. Hooks are common [within the React ecosystem](https://react.dev/reference/react/hooks), and Inquirer reimplement the common ones.
-
-### State hook
-
-State lets a component “remember” information like user input. For example, an input prompt can use state to store the input value, while a list prompt can use state to track the cursor index.
-
-`useState` declares a state variable that you can update directly.
-
-```ts
-import { createPrompt, useState } from '@inquirer/core';
-
-const input = createPrompt((config, done) => {
- const [index, setIndex] = useState(0);
-
- // ...
-```
-
-### Keypress hook
-
-Almost all prompts need to react to user actions. In a terminal, this is done through typing.
-
-`useKeypress` allows you to react to keypress events, and access the prompt line.
-
-```ts
-const input = createPrompt((config, done) => {
- useKeypress((key) => {
- if (key.name === 'enter') {
- done(answer);
- }
- });
-
- // ...
-```
-
-Behind the scenes, Inquirer prompts are wrappers around [readlines](https://nodejs.org/api/readline.html). Aside the keypress event object, the hook also pass the active readline instance to the event handler.
-
-```ts
-const input = createPrompt((config, done) => {
- useKeypress((key, readline) => {
- setValue(readline.line);
- });
-
- // ...
-```
-
-### Ref hook
-
-Refs let a prompt hold some information that isn’t used for rendering, like a class instance or a timeout ID. Unlike with state, updating a ref does not re-render your prompt. Refs are an “escape hatch” from the rendering paradigm.
-
-`useRef` declares a ref. You can hold any value in it, but most often it’s used to hold a timeout ID.
-
-```ts
-const input = createPrompt((config, done) => {
- const timeout = useRef(null);
-
- // ...
-```
-
-### Effect Hook
-
-Effects let a prompt connect to and synchronize with external systems. This includes dealing with network or animations.
-
-`useEffect` connects a component to an external system.
-
-```ts
-const chat = createPrompt((config, done) => {
- useEffect(() => {
- const connection = createConnection(roomId);
- connection.connect();
- return () => connection.disconnect();
- }, [roomId]);
-
- // ...
-```
-
-### Performance hook
-
-A common way to optimize re-rendering performance is to skip unnecessary work. For example, you can tell Inquirer to reuse a cached calculation or to skip a re-render if the data has not changed since the previous render.
-
-`useMemo` lets you cache the result of an expensive calculation.
-
-```ts
-const todoSelect = createPrompt((config, done) => {
- const visibleTodos = useMemo(() => filterTodos(todos, tab), [todos, tab]);
-
- // ...
-```
-
-### Rendering hooks
-
-#### Prefix / loading
-
-All default prompts, and most custom ones, uses a prefix at the beginning of the prompt line. This helps visually delineate different questions, and provides a convenient area to render a loading spinner.
-
-`usePrefix` is a built-in hook to do this.
-
-```ts
-const input = createPrompt((config, done) => {
- const prefix = usePrefix({ status });
-
- return `${prefix} My question`;
-});
-```
-
-#### Pagination
-
-When looping through a long list of options (like in the `select` prompt), paginating the results appearing on the screen at once can be necessary. The `usePagination` hook is the utility used within the `select` and `checkbox` prompts to cycle through the list of options.
-
-Pagination works by taking in the list of options and returning a subset of the rendered items that fit within the page. The hook takes in a few options. It needs a list of options (`items`), and a `pageSize` which is the number of lines to be rendered. The `active` index is the index of the currently selected/selectable item. The `loop` option is a boolean that indicates if the list should loop around when reaching the end: this is the default behavior. The pagination hook renders items only as necessary, so it takes a function that can render an item at an index, including an `active` state, called `renderItem`.
-
-```js
-export default createPrompt((config, done) => {
- const [active, setActive] = useState(0);
-
- const allChoices = config.choices.map((choice) => choice.name);
-
- const page = usePagination({
- items: allChoices,
- active: active,
- renderItem: ({ item, index, isActive }) => `${isActive ? ">" : " "}${index}. ${item.toString()}`
- pageSize: config.pageSize,
- loop: config.loop,
- });
-
- return `... ${page}`;
-});
-```
-
-## `createPrompt()` API
-
-As we saw earlier, the rendering function should return a string, and eventually call `done` to close the prompt and return the answer.
-
-```ts
-const input = createPrompt((config, done) => {
- const [value, setValue] = useState();
-
- useKeypress((key, readline) => {
- if (key.name === 'enter') {
- done(answer);
- } else {
- setValue(readline.line);
- }
- });
-
- return `? ${config.message} ${value}`;
-});
-```
-
-The rendering function can also return a tuple of 2 string (`[string, string]`.) The first string represents the prompt. The second one is content to render under the prompt, like an error message. The text input cursor will appear after the first string.
-
-```ts
-const number = createPrompt((config, done) => {
- // Add some logic here
-
- return [`? My question ${input}`, `! The input must be a number`];
-});
-```
-
-### Typescript
-
-If using typescript, `createPrompt` takes 2 generic arguments.
-
-```ts
-// createPrompt
-const input = createPrompt(// ...
-```
-
-The first one is the type of the resolved value
-
-```ts
-const answer: string = await input();
-```
-
-The second one is the type of the prompt config; in other words the interface the created prompt will provide to users.
-
-```ts
-const answer = await input({
- message: 'My question',
-});
-```
-
-## Key utilities
-
-Listening for keypress events inside an inquirer prompt is a very common pattern. To ease this, we export a few utility functions taking in the keypress event object and return a boolean:
-
-- `isEnterKey()`
-- `isBackspaceKey()`
-- `isSpaceKey()`
-- `isUpKey()` - Note: this utility will handle vim and emacs keybindings (up, `k`, and `ctrl+p`)
-- `isDownKey()` - Note: this utility will handle vim and emacs keybindings (down, `j`, and `ctrl+n`)
-- `isNumberKey()` one of 1, 2, 3, 4, 5, 6, 7, 8, 9, 0
-
-## Theming
-
-Theming utilities will allow you to expose customization of the prompt style. Inquirer also has a few standard theme values shared across all the official prompts.
-
-To allow standard customization:
-
-```ts
-import { createPrompt, usePrefix, makeTheme, type Theme } from '@inquirer/core';
-import type { PartialDeep } from '@inquirer/type';
-
-type PromptConfig = {
- theme?: PartialDeep;
-};
-
-export default createPrompt((config, done) => {
- const theme = makeTheme(config.theme);
-
- const prefix = usePrefix({ status, theme });
-
- return `${prefix} ${theme.style.highlight('hello')}`;
-});
-```
-
-To setup a custom theme:
-
-```ts
-import { createPrompt, makeTheme, type Theme } from '@inquirer/core';
-import type { PartialDeep } from '@inquirer/type';
-
-type PromptTheme = {};
-
-const promptTheme: PromptTheme = {
- icon: '!',
-};
-
-type PromptConfig = {
- theme?: PartialDeep>;
-};
-
-export default createPrompt((config, done) => {
- const theme = makeTheme(promptTheme, config.theme);
-
- const prefix = usePrefix({ status, theme });
-
- return `${prefix} ${theme.icon}`;
-});
-```
-
-The [default theme keys cover](https://github.com/SBoudrias/Inquirer.js/blob/main/packages/core/src/lib/theme.ts):
-
-```ts
-type DefaultTheme = {
- prefix: string | { idle: string; done: string };
- spinner: {
- interval: number;
- frames: string[];
- };
- style: {
- answer: (text: string) => string;
- message: (text: string, status: 'idle' | 'done' | 'loading') => string;
- error: (text: string) => string;
- defaultAnswer: (text: string) => string;
- help: (text: string) => string;
- highlight: (text: string) => string;
- key: (text: string) => string;
- };
-};
-```
-
-# Examples
-
-You can refer to any `@inquirer/prompts` prompts for real examples:
-
-- [Confirm Prompt](https://github.com/SBoudrias/Inquirer.js/blob/main/packages/confirm/src/index.ts)
-- [Input Prompt](https://github.com/SBoudrias/Inquirer.js/blob/main/packages/input/src/index.ts)
-- [Password Prompt](https://github.com/SBoudrias/Inquirer.js/blob/main/packages/password/src/index.ts)
-- [Editor Prompt](https://github.com/SBoudrias/Inquirer.js/blob/main/packages/editor/src/index.ts)
-- [Select Prompt](https://github.com/SBoudrias/Inquirer.js/blob/main/packages/select/src/index.ts)
-- [Checkbox Prompt](https://github.com/SBoudrias/Inquirer.js/blob/main/packages/checkbox/src/index.ts)
-- [Rawlist Prompt](https://github.com/SBoudrias/Inquirer.js/blob/main/packages/rawlist/src/index.ts)
-- [Expand Prompt](https://github.com/SBoudrias/Inquirer.js/blob/main/packages/expand/src/index.ts)
-
-```ts
-import colors from 'yoctocolors';
-import {
- createPrompt,
- useState,
- useKeypress,
- isEnterKey,
- usePrefix,
- type Status,
-} from '@inquirer/core';
-
-const confirm = createPrompt(
- (config, done) => {
- const [status, setStatus] = useState('idle');
- const [value, setValue] = useState('');
- const prefix = usePrefix({});
-
- useKeypress((key, rl) => {
- if (isEnterKey(key)) {
- const answer = value ? /^y(es)?/i.test(value) : config.default !== false;
- setValue(answer ? 'yes' : 'no');
- setStatus('done');
- done(answer);
- } else {
- setValue(rl.line);
- }
- });
-
- let formattedValue = value;
- let defaultValue = '';
- if (status === 'done') {
- formattedValue = colors.cyan(value);
- } else {
- defaultValue = colors.dim(config.default === false ? ' (y/N)' : ' (Y/n)');
- }
-
- const message = colors.bold(config.message);
- return `${prefix} ${message}${defaultValue} ${formattedValue}`;
- },
-);
-
-/**
- * Which then can be used like this:
- */
-const answer = await confirm({ message: 'Do you want to continue?' });
-```
-
-# License
-
-Copyright (c) 2023 Simon Boudrias (twitter: [@vaxilart](https://twitter.com/Vaxilart))
-Licensed under the MIT license.
diff --git a/node_modules/@inquirer/core/dist/commonjs/index.d.ts b/node_modules/@inquirer/core/dist/commonjs/index.d.ts
deleted file mode 100755
index 2f28572..0000000
--- a/node_modules/@inquirer/core/dist/commonjs/index.d.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-export * from './lib/key.ts';
-export * from './lib/errors.ts';
-export { usePrefix } from './lib/use-prefix.ts';
-export { useState } from './lib/use-state.ts';
-export { useEffect } from './lib/use-effect.ts';
-export { useMemo } from './lib/use-memo.ts';
-export { useRef } from './lib/use-ref.ts';
-export { useKeypress } from './lib/use-keypress.ts';
-export { makeTheme } from './lib/make-theme.ts';
-export type { Theme, Status } from './lib/theme.ts';
-export { usePagination } from './lib/pagination/use-pagination.ts';
-export { createPrompt } from './lib/create-prompt.ts';
-export { Separator } from './lib/Separator.ts';
diff --git a/node_modules/@inquirer/core/dist/commonjs/index.js b/node_modules/@inquirer/core/dist/commonjs/index.js
deleted file mode 100755
index 256d5f7..0000000
--- a/node_modules/@inquirer/core/dist/commonjs/index.js
+++ /dev/null
@@ -1,39 +0,0 @@
-"use strict";
-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- var desc = Object.getOwnPropertyDescriptor(m, k);
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
- desc = { enumerable: true, get: function() { return m[k]; } };
- }
- Object.defineProperty(o, k2, desc);
-}) : (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- o[k2] = m[k];
-}));
-var __exportStar = (this && this.__exportStar) || function(m, exports) {
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.Separator = exports.createPrompt = exports.usePagination = exports.makeTheme = exports.useKeypress = exports.useRef = exports.useMemo = exports.useEffect = exports.useState = exports.usePrefix = void 0;
-__exportStar(require("./lib/key.js"), exports);
-__exportStar(require("./lib/errors.js"), exports);
-var use_prefix_ts_1 = require("./lib/use-prefix.js");
-Object.defineProperty(exports, "usePrefix", { enumerable: true, get: function () { return use_prefix_ts_1.usePrefix; } });
-var use_state_ts_1 = require("./lib/use-state.js");
-Object.defineProperty(exports, "useState", { enumerable: true, get: function () { return use_state_ts_1.useState; } });
-var use_effect_ts_1 = require("./lib/use-effect.js");
-Object.defineProperty(exports, "useEffect", { enumerable: true, get: function () { return use_effect_ts_1.useEffect; } });
-var use_memo_ts_1 = require("./lib/use-memo.js");
-Object.defineProperty(exports, "useMemo", { enumerable: true, get: function () { return use_memo_ts_1.useMemo; } });
-var use_ref_ts_1 = require("./lib/use-ref.js");
-Object.defineProperty(exports, "useRef", { enumerable: true, get: function () { return use_ref_ts_1.useRef; } });
-var use_keypress_ts_1 = require("./lib/use-keypress.js");
-Object.defineProperty(exports, "useKeypress", { enumerable: true, get: function () { return use_keypress_ts_1.useKeypress; } });
-var make_theme_ts_1 = require("./lib/make-theme.js");
-Object.defineProperty(exports, "makeTheme", { enumerable: true, get: function () { return make_theme_ts_1.makeTheme; } });
-var use_pagination_ts_1 = require("./lib/pagination/use-pagination.js");
-Object.defineProperty(exports, "usePagination", { enumerable: true, get: function () { return use_pagination_ts_1.usePagination; } });
-var create_prompt_ts_1 = require("./lib/create-prompt.js");
-Object.defineProperty(exports, "createPrompt", { enumerable: true, get: function () { return create_prompt_ts_1.createPrompt; } });
-var Separator_ts_1 = require("./lib/Separator.js");
-Object.defineProperty(exports, "Separator", { enumerable: true, get: function () { return Separator_ts_1.Separator; } });
diff --git a/node_modules/@inquirer/core/dist/commonjs/lib/Separator.d.ts b/node_modules/@inquirer/core/dist/commonjs/lib/Separator.d.ts
deleted file mode 100755
index 0283555..0000000
--- a/node_modules/@inquirer/core/dist/commonjs/lib/Separator.d.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Separator object
- * Used to space/separate choices group
- */
-export declare class Separator {
- readonly separator: string;
- readonly type: string;
- constructor(separator?: string);
- static isSeparator(choice: unknown): choice is Separator;
-}
diff --git a/node_modules/@inquirer/core/dist/commonjs/lib/Separator.js b/node_modules/@inquirer/core/dist/commonjs/lib/Separator.js
deleted file mode 100755
index 5f4ab93..0000000
--- a/node_modules/@inquirer/core/dist/commonjs/lib/Separator.js
+++ /dev/null
@@ -1,28 +0,0 @@
-"use strict";
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.Separator = void 0;
-const yoctocolors_cjs_1 = __importDefault(require("yoctocolors-cjs"));
-const figures_1 = __importDefault(require("@inquirer/figures"));
-/**
- * Separator object
- * Used to space/separate choices group
- */
-class Separator {
- separator = yoctocolors_cjs_1.default.dim(Array.from({ length: 15 }).join(figures_1.default.line));
- type = 'separator';
- constructor(separator) {
- if (separator) {
- this.separator = separator;
- }
- }
- static isSeparator(choice) {
- return Boolean(choice &&
- typeof choice === 'object' &&
- 'type' in choice &&
- choice.type === 'separator');
- }
-}
-exports.Separator = Separator;
diff --git a/node_modules/@inquirer/core/dist/commonjs/lib/create-prompt.d.ts b/node_modules/@inquirer/core/dist/commonjs/lib/create-prompt.d.ts
deleted file mode 100755
index 4414db4..0000000
--- a/node_modules/@inquirer/core/dist/commonjs/lib/create-prompt.d.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-import { type Prompt, type Prettify } from '@inquirer/type';
-type ViewFunction = (config: Prettify, done: (value: Value) => void) => string | [string, string | undefined];
-export declare function createPrompt(view: ViewFunction): Prompt;
-export {};
diff --git a/node_modules/@inquirer/core/dist/commonjs/lib/create-prompt.js b/node_modules/@inquirer/core/dist/commonjs/lib/create-prompt.js
deleted file mode 100755
index 7ddbf98..0000000
--- a/node_modules/@inquirer/core/dist/commonjs/lib/create-prompt.js
+++ /dev/null
@@ -1,156 +0,0 @@
-"use strict";
-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- var desc = Object.getOwnPropertyDescriptor(m, k);
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
- desc = { enumerable: true, get: function() { return m[k]; } };
- }
- Object.defineProperty(o, k2, desc);
-}) : (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- o[k2] = m[k];
-}));
-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
- Object.defineProperty(o, "default", { enumerable: true, value: v });
-}) : function(o, v) {
- o["default"] = v;
-});
-var __importStar = (this && this.__importStar) || (function () {
- var ownKeys = function(o) {
- ownKeys = Object.getOwnPropertyNames || function (o) {
- var ar = [];
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
- return ar;
- };
- return ownKeys(o);
- };
- return function (mod) {
- if (mod && mod.__esModule) return mod;
- var result = {};
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
- __setModuleDefault(result, mod);
- return result;
- };
-})();
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.createPrompt = createPrompt;
-const readline = __importStar(require("node:readline"));
-const node_async_hooks_1 = require("node:async_hooks");
-const mute_stream_1 = __importDefault(require("mute-stream"));
-const signal_exit_1 = require("signal-exit");
-const screen_manager_ts_1 = __importDefault(require("./screen-manager.js"));
-const promise_polyfill_ts_1 = require("./promise-polyfill.js");
-const hook_engine_ts_1 = require("./hook-engine.js");
-const errors_ts_1 = require("./errors.js");
-function getCallSites() {
- // eslint-disable-next-line @typescript-eslint/unbound-method
- const _prepareStackTrace = Error.prepareStackTrace;
- let result = [];
- try {
- Error.prepareStackTrace = (_, callSites) => {
- const callSitesWithoutCurrent = callSites.slice(1);
- result = callSitesWithoutCurrent;
- return callSitesWithoutCurrent;
- };
- // eslint-disable-next-line @typescript-eslint/no-unused-expressions
- new Error().stack;
- }
- catch {
- // An error will occur if the Node flag --frozen-intrinsics is used.
- // https://nodejs.org/api/cli.html#--frozen-intrinsics
- return result;
- }
- Error.prepareStackTrace = _prepareStackTrace;
- return result;
-}
-function createPrompt(view) {
- const callSites = getCallSites();
- const prompt = (config, context = {}) => {
- // Default `input` to stdin
- const { input = process.stdin, signal } = context;
- const cleanups = new Set();
- // Add mute capabilities to the output
- const output = new mute_stream_1.default();
- output.pipe(context.output ?? process.stdout);
- const rl = readline.createInterface({
- terminal: true,
- input,
- output,
- });
- const screen = new screen_manager_ts_1.default(rl);
- const { promise, resolve, reject } = promise_polyfill_ts_1.PromisePolyfill.withResolver();
- const cancel = () => reject(new errors_ts_1.CancelPromptError());
- if (signal) {
- const abort = () => reject(new errors_ts_1.AbortPromptError({ cause: signal.reason }));
- if (signal.aborted) {
- abort();
- return Object.assign(promise, { cancel });
- }
- signal.addEventListener('abort', abort);
- cleanups.add(() => signal.removeEventListener('abort', abort));
- }
- cleanups.add((0, signal_exit_1.onExit)((code, signal) => {
- reject(new errors_ts_1.ExitPromptError(`User force closed the prompt with ${code} ${signal}`));
- }));
- // SIGINT must be explicitly handled by the prompt so the ExitPromptError can be handled.
- // Otherwise, the prompt will stop and in some scenarios never resolve.
- // Ref issue #1741
- const sigint = () => reject(new errors_ts_1.ExitPromptError(`User force closed the prompt with SIGINT`));
- rl.on('SIGINT', sigint);
- cleanups.add(() => rl.removeListener('SIGINT', sigint));
- // Re-renders only happen when the state change; but the readline cursor could change position
- // and that also requires a re-render (and a manual one because we mute the streams).
- // We set the listener after the initial workLoop to avoid a double render if render triggered
- // by a state change sets the cursor to the right position.
- const checkCursorPos = () => screen.checkCursorPos();
- rl.input.on('keypress', checkCursorPos);
- cleanups.add(() => rl.input.removeListener('keypress', checkCursorPos));
- return (0, hook_engine_ts_1.withHooks)(rl, (cycle) => {
- // The close event triggers immediately when the user press ctrl+c. SignalExit on the other hand
- // triggers after the process is done (which happens after timeouts are done triggering.)
- // We triggers the hooks cleanup phase on rl `close` so active timeouts can be cleared.
- const hooksCleanup = node_async_hooks_1.AsyncResource.bind(() => hook_engine_ts_1.effectScheduler.clearAll());
- rl.on('close', hooksCleanup);
- cleanups.add(() => rl.removeListener('close', hooksCleanup));
- cycle(() => {
- try {
- const nextView = view(config, (value) => {
- setImmediate(() => resolve(value));
- });
- // Typescript won't allow this, but not all users rely on typescript.
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
- if (nextView === undefined) {
- const callerFilename = callSites[1]?.getFileName();
- throw new Error(`Prompt functions must return a string.\n at ${callerFilename}`);
- }
- const [content, bottomContent] = typeof nextView === 'string' ? [nextView] : nextView;
- screen.render(content, bottomContent);
- hook_engine_ts_1.effectScheduler.run();
- }
- catch (error) {
- reject(error);
- }
- });
- return Object.assign(promise
- .then((answer) => {
- hook_engine_ts_1.effectScheduler.clearAll();
- return answer;
- }, (error) => {
- hook_engine_ts_1.effectScheduler.clearAll();
- throw error;
- })
- // Wait for the promise to settle, then cleanup.
- .finally(() => {
- cleanups.forEach((cleanup) => cleanup());
- screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
- output.end();
- })
- // Once cleanup is done, let the expose promise resolve/reject to the internal one.
- .then(() => promise), { cancel });
- });
- };
- return prompt;
-}
diff --git a/node_modules/@inquirer/core/dist/commonjs/lib/errors.d.ts b/node_modules/@inquirer/core/dist/commonjs/lib/errors.d.ts
deleted file mode 100755
index b9df681..0000000
--- a/node_modules/@inquirer/core/dist/commonjs/lib/errors.d.ts
+++ /dev/null
@@ -1,20 +0,0 @@
-export declare class AbortPromptError extends Error {
- name: string;
- message: string;
- constructor(options?: {
- cause?: unknown;
- });
-}
-export declare class CancelPromptError extends Error {
- name: string;
- message: string;
-}
-export declare class ExitPromptError extends Error {
- name: string;
-}
-export declare class HookError extends Error {
- name: string;
-}
-export declare class ValidationError extends Error {
- name: string;
-}
diff --git a/node_modules/@inquirer/core/dist/commonjs/lib/errors.js b/node_modules/@inquirer/core/dist/commonjs/lib/errors.js
deleted file mode 100755
index df3b974..0000000
--- a/node_modules/@inquirer/core/dist/commonjs/lib/errors.js
+++ /dev/null
@@ -1,29 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.ValidationError = exports.HookError = exports.ExitPromptError = exports.CancelPromptError = exports.AbortPromptError = void 0;
-class AbortPromptError extends Error {
- name = 'AbortPromptError';
- message = 'Prompt was aborted';
- constructor(options) {
- super();
- this.cause = options?.cause;
- }
-}
-exports.AbortPromptError = AbortPromptError;
-class CancelPromptError extends Error {
- name = 'CancelPromptError';
- message = 'Prompt was canceled';
-}
-exports.CancelPromptError = CancelPromptError;
-class ExitPromptError extends Error {
- name = 'ExitPromptError';
-}
-exports.ExitPromptError = ExitPromptError;
-class HookError extends Error {
- name = 'HookError';
-}
-exports.HookError = HookError;
-class ValidationError extends Error {
- name = 'ValidationError';
-}
-exports.ValidationError = ValidationError;
diff --git a/node_modules/@inquirer/core/dist/commonjs/lib/hook-engine.d.ts b/node_modules/@inquirer/core/dist/commonjs/lib/hook-engine.d.ts
deleted file mode 100755
index edfc61c..0000000
--- a/node_modules/@inquirer/core/dist/commonjs/lib/hook-engine.d.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-import type { InquirerReadline } from '@inquirer/type';
-export declare function withHooks(rl: InquirerReadline, cb: (cycle: (render: () => void) => void) => T): T;
-export declare function readline(): InquirerReadline;
-export declare function withUpdates(fn: (...args: Args) => R): (...args: Args) => R;
-type SetPointer = {
- get(): Value;
- set(value: Value): void;
- initialized: true;
-};
-type UnsetPointer = {
- get(): void;
- set(value: Value): void;
- initialized: false;
-};
-type Pointer = SetPointer | UnsetPointer;
-export declare function withPointer(cb: (pointer: Pointer) => ReturnValue): ReturnValue;
-export declare function handleChange(): void;
-export declare const effectScheduler: {
- queue(cb: (readline: InquirerReadline) => void | (() => void)): void;
- run(): void;
- clearAll(): void;
-};
-export {};
diff --git a/node_modules/@inquirer/core/dist/commonjs/lib/hook-engine.js b/node_modules/@inquirer/core/dist/commonjs/lib/hook-engine.js
deleted file mode 100755
index 479b91f..0000000
--- a/node_modules/@inquirer/core/dist/commonjs/lib/hook-engine.js
+++ /dev/null
@@ -1,118 +0,0 @@
-"use strict";
-/* eslint @typescript-eslint/no-explicit-any: ["off"] */
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.effectScheduler = void 0;
-exports.withHooks = withHooks;
-exports.readline = readline;
-exports.withUpdates = withUpdates;
-exports.withPointer = withPointer;
-exports.handleChange = handleChange;
-const node_async_hooks_1 = require("node:async_hooks");
-const errors_ts_1 = require("./errors.js");
-const hookStorage = new node_async_hooks_1.AsyncLocalStorage();
-function createStore(rl) {
- const store = {
- rl,
- hooks: [],
- hooksCleanup: [],
- hooksEffect: [],
- index: 0,
- handleChange() { },
- };
- return store;
-}
-// Run callback in with the hook engine setup.
-function withHooks(rl, cb) {
- const store = createStore(rl);
- return hookStorage.run(store, () => {
- function cycle(render) {
- store.handleChange = () => {
- store.index = 0;
- render();
- };
- store.handleChange();
- }
- return cb(cycle);
- });
-}
-// Safe getStore utility that'll return the store or throw if undefined.
-function getStore() {
- const store = hookStorage.getStore();
- if (!store) {
- throw new errors_ts_1.HookError('[Inquirer] Hook functions can only be called from within a prompt');
- }
- return store;
-}
-function readline() {
- return getStore().rl;
-}
-// Merge state updates happening within the callback function to avoid multiple renders.
-function withUpdates(fn) {
- const wrapped = (...args) => {
- const store = getStore();
- let shouldUpdate = false;
- const oldHandleChange = store.handleChange;
- store.handleChange = () => {
- shouldUpdate = true;
- };
- const returnValue = fn(...args);
- if (shouldUpdate) {
- oldHandleChange();
- }
- store.handleChange = oldHandleChange;
- return returnValue;
- };
- return node_async_hooks_1.AsyncResource.bind(wrapped);
-}
-function withPointer(cb) {
- const store = getStore();
- const { index } = store;
- const pointer = {
- get() {
- return store.hooks[index];
- },
- set(value) {
- store.hooks[index] = value;
- },
- initialized: index in store.hooks,
- };
- const returnValue = cb(pointer);
- store.index++;
- return returnValue;
-}
-function handleChange() {
- getStore().handleChange();
-}
-exports.effectScheduler = {
- queue(cb) {
- const store = getStore();
- const { index } = store;
- store.hooksEffect.push(() => {
- store.hooksCleanup[index]?.();
- const cleanFn = cb(readline());
- if (cleanFn != null && typeof cleanFn !== 'function') {
- throw new errors_ts_1.ValidationError('useEffect return value must be a cleanup function or nothing.');
- }
- store.hooksCleanup[index] = cleanFn;
- });
- },
- run() {
- const store = getStore();
- withUpdates(() => {
- store.hooksEffect.forEach((effect) => {
- effect();
- });
- // Warning: Clean the hooks before exiting the `withUpdates` block.
- // Failure to do so means an updates would hit the same effects again.
- store.hooksEffect.length = 0;
- })();
- },
- clearAll() {
- const store = getStore();
- store.hooksCleanup.forEach((cleanFn) => {
- cleanFn?.();
- });
- store.hooksEffect.length = 0;
- store.hooksCleanup.length = 0;
- },
-};
diff --git a/node_modules/@inquirer/core/dist/commonjs/lib/key.d.ts b/node_modules/@inquirer/core/dist/commonjs/lib/key.d.ts
deleted file mode 100755
index e2ad3dc..0000000
--- a/node_modules/@inquirer/core/dist/commonjs/lib/key.d.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-export type KeypressEvent = {
- name: string;
- ctrl: boolean;
-};
-export declare const isUpKey: (key: KeypressEvent) => boolean;
-export declare const isDownKey: (key: KeypressEvent) => boolean;
-export declare const isSpaceKey: (key: KeypressEvent) => boolean;
-export declare const isBackspaceKey: (key: KeypressEvent) => boolean;
-export declare const isNumberKey: (key: KeypressEvent) => boolean;
-export declare const isEnterKey: (key: KeypressEvent) => boolean;
diff --git a/node_modules/@inquirer/core/dist/commonjs/lib/key.js b/node_modules/@inquirer/core/dist/commonjs/lib/key.js
deleted file mode 100755
index d571f18..0000000
--- a/node_modules/@inquirer/core/dist/commonjs/lib/key.js
+++ /dev/null
@@ -1,27 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.isEnterKey = exports.isNumberKey = exports.isBackspaceKey = exports.isSpaceKey = exports.isDownKey = exports.isUpKey = void 0;
-const isUpKey = (key) =>
-// The up key
-key.name === 'up' ||
- // Vim keybinding
- key.name === 'k' ||
- // Emacs keybinding
- (key.ctrl && key.name === 'p');
-exports.isUpKey = isUpKey;
-const isDownKey = (key) =>
-// The down key
-key.name === 'down' ||
- // Vim keybinding
- key.name === 'j' ||
- // Emacs keybinding
- (key.ctrl && key.name === 'n');
-exports.isDownKey = isDownKey;
-const isSpaceKey = (key) => key.name === 'space';
-exports.isSpaceKey = isSpaceKey;
-const isBackspaceKey = (key) => key.name === 'backspace';
-exports.isBackspaceKey = isBackspaceKey;
-const isNumberKey = (key) => '1234567890'.includes(key.name);
-exports.isNumberKey = isNumberKey;
-const isEnterKey = (key) => key.name === 'enter' || key.name === 'return';
-exports.isEnterKey = isEnterKey;
diff --git a/node_modules/@inquirer/core/dist/commonjs/lib/make-theme.d.ts b/node_modules/@inquirer/core/dist/commonjs/lib/make-theme.d.ts
deleted file mode 100755
index c7aae8b..0000000
--- a/node_modules/@inquirer/core/dist/commonjs/lib/make-theme.d.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import type { Prettify, PartialDeep } from '@inquirer/type';
-import { type Theme } from './theme.ts';
-export declare function makeTheme(...themes: ReadonlyArray>>): Prettify>;
diff --git a/node_modules/@inquirer/core/dist/commonjs/lib/make-theme.js b/node_modules/@inquirer/core/dist/commonjs/lib/make-theme.js
deleted file mode 100755
index b4b2c66..0000000
--- a/node_modules/@inquirer/core/dist/commonjs/lib/make-theme.js
+++ /dev/null
@@ -1,33 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.makeTheme = makeTheme;
-const theme_ts_1 = require("./theme.js");
-function isPlainObject(value) {
- if (typeof value !== 'object' || value === null)
- return false;
- let proto = value;
- while (Object.getPrototypeOf(proto) !== null) {
- proto = Object.getPrototypeOf(proto);
- }
- return Object.getPrototypeOf(value) === proto;
-}
-function deepMerge(...objects) {
- const output = {};
- for (const obj of objects) {
- for (const [key, value] of Object.entries(obj)) {
- const prevValue = output[key];
- output[key] =
- isPlainObject(prevValue) && isPlainObject(value)
- ? deepMerge(prevValue, value)
- : value;
- }
- }
- return output;
-}
-function makeTheme(...themes) {
- const themesToMerge = [
- theme_ts_1.defaultTheme,
- ...themes.filter((theme) => theme != null),
- ];
- return deepMerge(...themesToMerge);
-}
diff --git a/node_modules/@inquirer/core/dist/commonjs/lib/pagination/use-pagination.d.ts b/node_modules/@inquirer/core/dist/commonjs/lib/pagination/use-pagination.d.ts
deleted file mode 100755
index 47467c3..0000000
--- a/node_modules/@inquirer/core/dist/commonjs/lib/pagination/use-pagination.d.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-import type { Prettify } from '@inquirer/type';
-export declare function usePagination({ items, active, renderItem, pageSize, loop, }: {
- items: ReadonlyArray;
- /** The index of the active item. */
- active: number;
- /** Renders an item as part of a page. */
- renderItem: (layout: Prettify<{
- item: T;
- index: number;
- isActive: boolean;
- }>) => string;
- /** The size of the page. */
- pageSize: number;
- /** Allows creating an infinitely looping list. `true` if unspecified. */
- loop?: boolean;
-}): string;
diff --git a/node_modules/@inquirer/core/dist/commonjs/lib/pagination/use-pagination.js b/node_modules/@inquirer/core/dist/commonjs/lib/pagination/use-pagination.js
deleted file mode 100755
index 0fbae50..0000000
--- a/node_modules/@inquirer/core/dist/commonjs/lib/pagination/use-pagination.js
+++ /dev/null
@@ -1,124 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.usePagination = usePagination;
-const use_ref_ts_1 = require("../use-ref.js");
-const utils_ts_1 = require("../utils.js");
-function usePointerPosition({ active, renderedItems, pageSize, loop, }) {
- const state = (0, use_ref_ts_1.useRef)({
- lastPointer: active,
- lastActive: undefined,
- });
- const { lastPointer, lastActive } = state.current;
- const middle = Math.floor(pageSize / 2);
- const renderedLength = renderedItems.reduce((acc, item) => acc + item.length, 0);
- const defaultPointerPosition = renderedItems
- .slice(0, active)
- .reduce((acc, item) => acc + item.length, 0);
- let pointer = defaultPointerPosition;
- if (renderedLength > pageSize) {
- if (loop) {
- /**
- * Creates the next position for the pointer considering an infinitely
- * looping list of items to be rendered on the page.
- *
- * The goal is to progressively move the cursor to the middle position as the user move down, and then keep
- * the cursor there. When the user move up, maintain the cursor position.
- */
- // By default, keep the cursor position as-is.
- pointer = lastPointer;
- if (
- // First render, skip this logic.
- lastActive != null &&
- // Only move the pointer down when the user moves down.
- lastActive < active &&
- // Check user didn't move up across page boundary.
- active - lastActive < pageSize) {
- pointer = Math.min(
- // Furthest allowed position for the pointer is the middle of the list
- middle, Math.abs(active - lastActive) === 1
- ? Math.min(
- // Move the pointer at most the height of the last active item.
- lastPointer + (renderedItems[lastActive]?.length ?? 0),
- // If the user moved by one item, move the pointer to the natural position of the active item as
- // long as it doesn't move the cursor up.
- Math.max(defaultPointerPosition, lastPointer))
- : // Otherwise, move the pointer down by the difference between the active and last active item.
- lastPointer + active - lastActive);
- }
- }
- else {
- /**
- * Creates the next position for the pointer considering a finite list of
- * items to be rendered on a page.
- *
- * The goal is to keep the pointer in the middle of the page whenever possible, until
- * we reach the bounds of the list (top or bottom). In which case, the cursor moves progressively
- * to the bottom or top of the list.
- */
- const spaceUnderActive = renderedItems
- .slice(active)
- .reduce((acc, item) => acc + item.length, 0);
- pointer =
- spaceUnderActive < pageSize - middle
- ? // If the active item is near the end of the list, progressively move the cursor towards the end.
- pageSize - spaceUnderActive
- : // Otherwise, progressively move the pointer to the middle of the list.
- Math.min(defaultPointerPosition, middle);
- }
- }
- // Save state for the next render
- state.current.lastPointer = pointer;
- state.current.lastActive = active;
- return pointer;
-}
-function usePagination({ items, active, renderItem, pageSize, loop = true, }) {
- const width = (0, utils_ts_1.readlineWidth)();
- const bound = (num) => ((num % items.length) + items.length) % items.length;
- const renderedItems = items.map((item, index) => {
- if (item == null)
- return [];
- return (0, utils_ts_1.breakLines)(renderItem({ item, index, isActive: index === active }), width).split('\n');
- });
- const renderedLength = renderedItems.reduce((acc, item) => acc + item.length, 0);
- const renderItemAtIndex = (index) => renderedItems[index] ?? [];
- const pointer = usePointerPosition({ active, renderedItems, pageSize, loop });
- // Render the active item to decide the position.
- // If the active item fits under the pointer, we render it there.
- // Otherwise, we need to render it to fit at the bottom of the page; moving the pointer up.
- const activeItem = renderItemAtIndex(active).slice(0, pageSize);
- const activeItemPosition = pointer + activeItem.length <= pageSize ? pointer : pageSize - activeItem.length;
- // Create an array of lines for the page, and add the lines of the active item into the page
- const pageBuffer = Array.from({ length: pageSize });
- pageBuffer.splice(activeItemPosition, activeItem.length, ...activeItem);
- // Store to prevent rendering the same item twice
- const itemVisited = new Set([active]);
- // Fill the page under the active item
- let bufferPointer = activeItemPosition + activeItem.length;
- let itemPointer = bound(active + 1);
- while (bufferPointer < pageSize &&
- !itemVisited.has(itemPointer) &&
- (loop && renderedLength > pageSize ? itemPointer !== active : itemPointer > active)) {
- const lines = renderItemAtIndex(itemPointer);
- const linesToAdd = lines.slice(0, pageSize - bufferPointer);
- pageBuffer.splice(bufferPointer, linesToAdd.length, ...linesToAdd);
- // Move pointers for next iteration
- itemVisited.add(itemPointer);
- bufferPointer += linesToAdd.length;
- itemPointer = bound(itemPointer + 1);
- }
- // Fill the page over the active item
- bufferPointer = activeItemPosition - 1;
- itemPointer = bound(active - 1);
- while (bufferPointer >= 0 &&
- !itemVisited.has(itemPointer) &&
- (loop && renderedLength > pageSize ? itemPointer !== active : itemPointer < active)) {
- const lines = renderItemAtIndex(itemPointer);
- const linesToAdd = lines.slice(Math.max(0, lines.length - bufferPointer - 1));
- pageBuffer.splice(bufferPointer - linesToAdd.length + 1, linesToAdd.length, ...linesToAdd);
- // Move pointers for next iteration
- itemVisited.add(itemPointer);
- bufferPointer -= linesToAdd.length;
- itemPointer = bound(itemPointer - 1);
- }
- return pageBuffer.filter((line) => typeof line === 'string').join('\n');
-}
diff --git a/node_modules/@inquirer/core/dist/commonjs/lib/promise-polyfill.d.ts b/node_modules/@inquirer/core/dist/commonjs/lib/promise-polyfill.d.ts
deleted file mode 100755
index 0e4f74c..0000000
--- a/node_modules/@inquirer/core/dist/commonjs/lib/promise-polyfill.d.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-export declare class PromisePolyfill extends Promise {
- static withResolver(): {
- promise: Promise;
- resolve: (value: T) => void;
- reject: (error: unknown) => void;
- };
-}
diff --git a/node_modules/@inquirer/core/dist/commonjs/lib/promise-polyfill.js b/node_modules/@inquirer/core/dist/commonjs/lib/promise-polyfill.js
deleted file mode 100755
index 7e6bdc4..0000000
--- a/node_modules/@inquirer/core/dist/commonjs/lib/promise-polyfill.js
+++ /dev/null
@@ -1,18 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.PromisePolyfill = void 0;
-// TODO: Remove this class once Node 22 becomes the minimum supported version.
-class PromisePolyfill extends Promise {
- // Available starting from Node 22
- // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/withResolvers
- static withResolver() {
- let resolve;
- let reject;
- const promise = new Promise((res, rej) => {
- resolve = res;
- reject = rej;
- });
- return { promise, resolve: resolve, reject: reject };
- }
-}
-exports.PromisePolyfill = PromisePolyfill;
diff --git a/node_modules/@inquirer/core/dist/commonjs/lib/screen-manager.d.ts b/node_modules/@inquirer/core/dist/commonjs/lib/screen-manager.d.ts
deleted file mode 100755
index de4c1e0..0000000
--- a/node_modules/@inquirer/core/dist/commonjs/lib/screen-manager.d.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-import type { InquirerReadline } from '@inquirer/type';
-export default class ScreenManager {
- private height;
- private extraLinesUnderPrompt;
- private cursorPos;
- private readonly rl;
- constructor(rl: InquirerReadline);
- write(content: string): void;
- render(content: string, bottomContent?: string): void;
- checkCursorPos(): void;
- done({ clearContent }: {
- clearContent: boolean;
- }): void;
-}
diff --git a/node_modules/@inquirer/core/dist/commonjs/lib/screen-manager.js b/node_modules/@inquirer/core/dist/commonjs/lib/screen-manager.js
deleted file mode 100755
index a195ede..0000000
--- a/node_modules/@inquirer/core/dist/commonjs/lib/screen-manager.js
+++ /dev/null
@@ -1,90 +0,0 @@
-"use strict";
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-const node_util_1 = require("node:util");
-const ansi_escapes_1 = __importDefault(require("ansi-escapes"));
-const utils_ts_1 = require("./utils.js");
-const height = (content) => content.split('\n').length;
-const lastLine = (content) => content.split('\n').pop() ?? '';
-function cursorDown(n) {
- return n > 0 ? ansi_escapes_1.default.cursorDown(n) : '';
-}
-class ScreenManager {
- // These variables are keeping information to allow correct prompt re-rendering
- height = 0;
- extraLinesUnderPrompt = 0;
- cursorPos;
- rl;
- constructor(rl) {
- this.rl = rl;
- this.cursorPos = rl.getCursorPos();
- }
- write(content) {
- this.rl.output.unmute();
- this.rl.output.write(content);
- this.rl.output.mute();
- }
- render(content, bottomContent = '') {
- // Write message to screen and setPrompt to control backspace
- const promptLine = lastLine(content);
- const rawPromptLine = (0, node_util_1.stripVTControlCharacters)(promptLine);
- // Remove the rl.line from our prompt. We can't rely on the content of
- // rl.line (mainly because of the password prompt), so just rely on it's
- // length.
- let prompt = rawPromptLine;
- if (this.rl.line.length > 0) {
- prompt = prompt.slice(0, -this.rl.line.length);
- }
- this.rl.setPrompt(prompt);
- // SetPrompt will change cursor position, now we can get correct value
- this.cursorPos = this.rl.getCursorPos();
- const width = (0, utils_ts_1.readlineWidth)();
- content = (0, utils_ts_1.breakLines)(content, width);
- bottomContent = (0, utils_ts_1.breakLines)(bottomContent, width);
- // Manually insert an extra line if we're at the end of the line.
- // This prevent the cursor from appearing at the beginning of the
- // current line.
- if (rawPromptLine.length % width === 0) {
- content += '\n';
- }
- let output = content + (bottomContent ? '\n' + bottomContent : '');
- /**
- * Re-adjust the cursor at the correct position.
- */
- // We need to consider parts of the prompt under the cursor as part of the bottom
- // content in order to correctly cleanup and re-render.
- const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
- const bottomContentHeight = promptLineUpDiff + (bottomContent ? height(bottomContent) : 0);
- // Return cursor to the input position (on top of the bottomContent)
- if (bottomContentHeight > 0)
- output += ansi_escapes_1.default.cursorUp(bottomContentHeight);
- // Return cursor to the initial left offset.
- output += ansi_escapes_1.default.cursorTo(this.cursorPos.cols);
- /**
- * Render and store state for future re-rendering
- */
- this.write(cursorDown(this.extraLinesUnderPrompt) +
- ansi_escapes_1.default.eraseLines(this.height) +
- output);
- this.extraLinesUnderPrompt = bottomContentHeight;
- this.height = height(output);
- }
- checkCursorPos() {
- const cursorPos = this.rl.getCursorPos();
- if (cursorPos.cols !== this.cursorPos.cols) {
- this.write(ansi_escapes_1.default.cursorTo(cursorPos.cols));
- this.cursorPos = cursorPos;
- }
- }
- done({ clearContent }) {
- this.rl.setPrompt('');
- let output = cursorDown(this.extraLinesUnderPrompt);
- output += clearContent ? ansi_escapes_1.default.eraseLines(this.height) : '\n';
- output += ansi_escapes_1.default.cursorShow;
- this.write(output);
- this.rl.close();
- }
-}
-exports.default = ScreenManager;
diff --git a/node_modules/@inquirer/core/dist/commonjs/lib/theme.d.ts b/node_modules/@inquirer/core/dist/commonjs/lib/theme.d.ts
deleted file mode 100755
index f1529b0..0000000
--- a/node_modules/@inquirer/core/dist/commonjs/lib/theme.d.ts
+++ /dev/null
@@ -1,155 +0,0 @@
-import type { Prettify } from '@inquirer/type';
-/**
- * Union type representing the possible statuses of a prompt.
- *
- * - `'loading'`: The prompt is currently loading.
- * - `'idle'`: The prompt is loaded and currently waiting for the user to
- * submit an answer.
- * - `'done'`: The user has submitted an answer and the prompt is finished.
- * - `string`: Any other string: The prompt is in a custom state.
- */
-export type Status = 'loading' | 'idle' | 'done' | (string & {});
-type DefaultTheme = {
- /**
- * Prefix to prepend to the message. If a function is provided, it will be
- * called with the current status of the prompt, and the return value will be
- * used as the prefix.
- *
- * @remarks
- * If `status === 'loading'`, this property is ignored and the spinner (styled
- * by the `spinner` property) will be displayed instead.
- *
- * @defaultValue
- * ```ts
- * // import colors from 'yoctocolors-cjs';
- * (status) => status === 'done' ? colors.green('✔') : colors.blue('?')
- * ```
- */
- prefix: string | Prettify, 'loading'>>;
- /**
- * Configuration for the spinner that is displayed when the prompt is in the
- * `'loading'` state.
- *
- * We recommend the use of {@link https://github.com/sindresorhus/cli-spinners|cli-spinners} for a list of available spinners.
- */
- spinner: {
- /**
- * The time interval between frames, in milliseconds.
- *
- * @defaultValue
- * ```ts
- * 80
- * ```
- */
- interval: number;
- /**
- * A list of frames to show for the spinner.
- *
- * @defaultValue
- * ```ts
- * ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏']
- * ```
- */
- frames: string[];
- };
- /**
- * Object containing functions to style different parts of the prompt.
- */
- style: {
- /**
- * Style to apply to the user's answer once it has been submitted.
- *
- * @param text - The user's answer.
- * @returns The styled answer.
- *
- * @defaultValue
- * ```ts
- * // import colors from 'yoctocolors-cjs';
- * (text) => colors.cyan(text)
- * ```
- */
- answer: (text: string) => string;
- /**
- * Style to apply to the message displayed to the user.
- *
- * @param text - The message to style.
- * @param status - The current status of the prompt.
- * @returns The styled message.
- *
- * @defaultValue
- * ```ts
- * // import colors from 'yoctocolors-cjs';
- * (text, status) => colors.bold(text)
- * ```
- */
- message: (text: string, status: Status) => string;
- /**
- * Style to apply to error messages.
- *
- * @param text - The error message.
- * @returns The styled error message.
- *
- * @defaultValue
- * ```ts
- * // import colors from 'yoctocolors-cjs';
- * (text) => colors.red(`> ${text}`)
- * ```
- */
- error: (text: string) => string;
- /**
- * Style to apply to the default answer when one is provided.
- *
- * @param text - The default answer.
- * @returns The styled default answer.
- *
- * @defaultValue
- * ```ts
- * // import colors from 'yoctocolors-cjs';
- * (text) => colors.dim(`(${text})`)
- * ```
- */
- defaultAnswer: (text: string) => string;
- /**
- * Style to apply to help text.
- *
- * @param text - The help text.
- * @returns The styled help text.
- *
- * @defaultValue
- * ```ts
- * // import colors from 'yoctocolors-cjs';
- * (text) => colors.dim(text)
- * ```
- */
- help: (text: string) => string;
- /**
- * Style to apply to highlighted text.
- *
- * @param text - The text to highlight.
- * @returns The highlighted text.
- *
- * @defaultValue
- * ```ts
- * // import colors from 'yoctocolors-cjs';
- * (text) => colors.cyan(text)
- * ```
- */
- highlight: (text: string) => string;
- /**
- * Style to apply to keyboard keys referred to in help texts.
- *
- * @param text - The key to style.
- * @returns The styled key.
- *
- * @defaultValue
- * ```ts
- * // import colors from 'yoctocolors-cjs';
- * (text) => colors.cyan(colors.bold(`<${text}>`))
- * ```
- */
- key: (text: string) => string;
- };
-};
-export type Theme = Prettify;
-export declare const defaultTheme: DefaultTheme;
-export {};
diff --git a/node_modules/@inquirer/core/dist/commonjs/lib/theme.js b/node_modules/@inquirer/core/dist/commonjs/lib/theme.js
deleted file mode 100755
index 3bb4fa8..0000000
--- a/node_modules/@inquirer/core/dist/commonjs/lib/theme.js
+++ /dev/null
@@ -1,28 +0,0 @@
-"use strict";
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.defaultTheme = void 0;
-const yoctocolors_cjs_1 = __importDefault(require("yoctocolors-cjs"));
-const figures_1 = __importDefault(require("@inquirer/figures"));
-exports.defaultTheme = {
- prefix: {
- idle: yoctocolors_cjs_1.default.blue('?'),
- // TODO: use figure
- done: yoctocolors_cjs_1.default.green(figures_1.default.tick),
- },
- spinner: {
- interval: 80,
- frames: ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏'].map((frame) => yoctocolors_cjs_1.default.yellow(frame)),
- },
- style: {
- answer: yoctocolors_cjs_1.default.cyan,
- message: yoctocolors_cjs_1.default.bold,
- error: (text) => yoctocolors_cjs_1.default.red(`> ${text}`),
- defaultAnswer: (text) => yoctocolors_cjs_1.default.dim(`(${text})`),
- help: yoctocolors_cjs_1.default.dim,
- highlight: yoctocolors_cjs_1.default.cyan,
- key: (text) => yoctocolors_cjs_1.default.cyan(yoctocolors_cjs_1.default.bold(`<${text}>`)),
- },
-};
diff --git a/node_modules/@inquirer/core/dist/commonjs/lib/use-effect.d.ts b/node_modules/@inquirer/core/dist/commonjs/lib/use-effect.d.ts
deleted file mode 100755
index abee906..0000000
--- a/node_modules/@inquirer/core/dist/commonjs/lib/use-effect.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import type { InquirerReadline } from '@inquirer/type';
-export declare function useEffect(cb: (rl: InquirerReadline) => void | (() => void), depArray: ReadonlyArray): void;
diff --git a/node_modules/@inquirer/core/dist/commonjs/lib/use-effect.js b/node_modules/@inquirer/core/dist/commonjs/lib/use-effect.js
deleted file mode 100755
index b82c206..0000000
--- a/node_modules/@inquirer/core/dist/commonjs/lib/use-effect.js
+++ /dev/null
@@ -1,14 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.useEffect = useEffect;
-const hook_engine_ts_1 = require("./hook-engine.js");
-function useEffect(cb, depArray) {
- (0, hook_engine_ts_1.withPointer)((pointer) => {
- const oldDeps = pointer.get();
- const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i) => !Object.is(dep, oldDeps[i]));
- if (hasChanged) {
- hook_engine_ts_1.effectScheduler.queue(cb);
- }
- pointer.set(depArray);
- });
-}
diff --git a/node_modules/@inquirer/core/dist/commonjs/lib/use-keypress.d.ts b/node_modules/@inquirer/core/dist/commonjs/lib/use-keypress.d.ts
deleted file mode 100755
index ccdeefa..0000000
--- a/node_modules/@inquirer/core/dist/commonjs/lib/use-keypress.d.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import { type InquirerReadline } from '@inquirer/type';
-import { type KeypressEvent } from './key.ts';
-export declare function useKeypress(userHandler: (event: KeypressEvent, rl: InquirerReadline) => void | Promise): void;
diff --git a/node_modules/@inquirer/core/dist/commonjs/lib/use-keypress.js b/node_modules/@inquirer/core/dist/commonjs/lib/use-keypress.js
deleted file mode 100755
index 1f78f15..0000000
--- a/node_modules/@inquirer/core/dist/commonjs/lib/use-keypress.js
+++ /dev/null
@@ -1,23 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.useKeypress = useKeypress;
-const use_ref_ts_1 = require("./use-ref.js");
-const use_effect_ts_1 = require("./use-effect.js");
-const hook_engine_ts_1 = require("./hook-engine.js");
-function useKeypress(userHandler) {
- const signal = (0, use_ref_ts_1.useRef)(userHandler);
- signal.current = userHandler;
- (0, use_effect_ts_1.useEffect)((rl) => {
- let ignore = false;
- const handler = (0, hook_engine_ts_1.withUpdates)((_input, event) => {
- if (ignore)
- return;
- void signal.current(event, rl);
- });
- rl.input.on('keypress', handler);
- return () => {
- ignore = true;
- rl.input.removeListener('keypress', handler);
- };
- }, []);
-}
diff --git a/node_modules/@inquirer/core/dist/commonjs/lib/use-memo.d.ts b/node_modules/@inquirer/core/dist/commonjs/lib/use-memo.d.ts
deleted file mode 100755
index 19d1644..0000000
--- a/node_modules/@inquirer/core/dist/commonjs/lib/use-memo.d.ts
+++ /dev/null
@@ -1 +0,0 @@
-export declare function useMemo(fn: () => Value, dependencies: ReadonlyArray): Value;
diff --git a/node_modules/@inquirer/core/dist/commonjs/lib/use-memo.js b/node_modules/@inquirer/core/dist/commonjs/lib/use-memo.js
deleted file mode 100755
index d6fcadb..0000000
--- a/node_modules/@inquirer/core/dist/commonjs/lib/use-memo.js
+++ /dev/null
@@ -1,17 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.useMemo = useMemo;
-const hook_engine_ts_1 = require("./hook-engine.js");
-function useMemo(fn, dependencies) {
- return (0, hook_engine_ts_1.withPointer)((pointer) => {
- const prev = pointer.get();
- if (!prev ||
- prev.dependencies.length !== dependencies.length ||
- prev.dependencies.some((dep, i) => dep !== dependencies[i])) {
- const value = fn();
- pointer.set({ value, dependencies });
- return value;
- }
- return prev.value;
- });
-}
diff --git a/node_modules/@inquirer/core/dist/commonjs/lib/use-prefix.d.ts b/node_modules/@inquirer/core/dist/commonjs/lib/use-prefix.d.ts
deleted file mode 100755
index db1dabb..0000000
--- a/node_modules/@inquirer/core/dist/commonjs/lib/use-prefix.d.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-import type { Theme, Status } from './theme.ts';
-export declare function usePrefix({ status, theme, }: {
- status?: Status;
- theme?: Theme;
-}): string;
diff --git a/node_modules/@inquirer/core/dist/commonjs/lib/use-prefix.js b/node_modules/@inquirer/core/dist/commonjs/lib/use-prefix.js
deleted file mode 100755
index 2265e10..0000000
--- a/node_modules/@inquirer/core/dist/commonjs/lib/use-prefix.js
+++ /dev/null
@@ -1,38 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.usePrefix = usePrefix;
-const use_state_ts_1 = require("./use-state.js");
-const use_effect_ts_1 = require("./use-effect.js");
-const make_theme_ts_1 = require("./make-theme.js");
-function usePrefix({ status = 'idle', theme, }) {
- const [showLoader, setShowLoader] = (0, use_state_ts_1.useState)(false);
- const [tick, setTick] = (0, use_state_ts_1.useState)(0);
- const { prefix, spinner } = (0, make_theme_ts_1.makeTheme)(theme);
- (0, use_effect_ts_1.useEffect)(() => {
- if (status === 'loading') {
- let tickInterval;
- let inc = -1;
- // Delay displaying spinner by 300ms, to avoid flickering
- const delayTimeout = setTimeout(() => {
- setShowLoader(true);
- tickInterval = setInterval(() => {
- inc = inc + 1;
- setTick(inc % spinner.frames.length);
- }, spinner.interval);
- }, 300);
- return () => {
- clearTimeout(delayTimeout);
- clearInterval(tickInterval);
- };
- }
- else {
- setShowLoader(false);
- }
- }, [status]);
- if (showLoader) {
- return spinner.frames[tick];
- }
- // There's a delay before we show the loader. So we want to ignore `loading` here, and pass idle instead.
- const iconName = status === 'loading' ? 'idle' : status;
- return typeof prefix === 'string' ? prefix : (prefix[iconName] ?? prefix['idle']);
-}
diff --git a/node_modules/@inquirer/core/dist/commonjs/lib/use-ref.d.ts b/node_modules/@inquirer/core/dist/commonjs/lib/use-ref.d.ts
deleted file mode 100755
index be7126b..0000000
--- a/node_modules/@inquirer/core/dist/commonjs/lib/use-ref.d.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-export declare function useRef(val: Value): {
- current: Value;
-};
-export declare function useRef(val?: Value): {
- current: Value | undefined;
-};
diff --git a/node_modules/@inquirer/core/dist/commonjs/lib/use-ref.js b/node_modules/@inquirer/core/dist/commonjs/lib/use-ref.js
deleted file mode 100755
index 513b2ee..0000000
--- a/node_modules/@inquirer/core/dist/commonjs/lib/use-ref.js
+++ /dev/null
@@ -1,7 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.useRef = useRef;
-const use_state_ts_1 = require("./use-state.js");
-function useRef(val) {
- return (0, use_state_ts_1.useState)({ current: val })[0];
-}
diff --git a/node_modules/@inquirer/core/dist/commonjs/lib/use-state.d.ts b/node_modules/@inquirer/core/dist/commonjs/lib/use-state.d.ts
deleted file mode 100755
index fba0b62..0000000
--- a/node_modules/@inquirer/core/dist/commonjs/lib/use-state.d.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-type NotFunction = T extends (...args: never) => unknown ? never : T;
-export declare function useState(defaultValue: NotFunction | (() => Value)): [Value, (newValue: Value) => void];
-export declare function useState(defaultValue?: NotFunction | (() => Value)): [Value | undefined, (newValue?: Value) => void];
-export {};
diff --git a/node_modules/@inquirer/core/dist/commonjs/lib/use-state.js b/node_modules/@inquirer/core/dist/commonjs/lib/use-state.js
deleted file mode 100755
index c38fdc6..0000000
--- a/node_modules/@inquirer/core/dist/commonjs/lib/use-state.js
+++ /dev/null
@@ -1,23 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.useState = useState;
-const node_async_hooks_1 = require("node:async_hooks");
-const hook_engine_ts_1 = require("./hook-engine.js");
-function useState(defaultValue) {
- return (0, hook_engine_ts_1.withPointer)((pointer) => {
- const setState = node_async_hooks_1.AsyncResource.bind(function setState(newValue) {
- // Noop if the value is still the same.
- if (pointer.get() !== newValue) {
- pointer.set(newValue);
- // Trigger re-render
- (0, hook_engine_ts_1.handleChange)();
- }
- });
- if (pointer.initialized) {
- return [pointer.get(), setState];
- }
- const value = typeof defaultValue === 'function' ? defaultValue() : defaultValue;
- pointer.set(value);
- return [value, setState];
- });
-}
diff --git a/node_modules/@inquirer/core/dist/commonjs/lib/utils.d.ts b/node_modules/@inquirer/core/dist/commonjs/lib/utils.d.ts
deleted file mode 100755
index 14f8fc4..0000000
--- a/node_modules/@inquirer/core/dist/commonjs/lib/utils.d.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- * Force line returns at specific width. This function is ANSI code friendly and it'll
- * ignore invisible codes during width calculation.
- * @param {string} content
- * @param {number} width
- * @return {string}
- */
-export declare function breakLines(content: string, width: number): string;
-/**
- * Returns the width of the active readline, or 80 as default value.
- * @returns {number}
- */
-export declare function readlineWidth(): number;
diff --git a/node_modules/@inquirer/core/dist/commonjs/lib/utils.js b/node_modules/@inquirer/core/dist/commonjs/lib/utils.js
deleted file mode 100755
index ae9e12a..0000000
--- a/node_modules/@inquirer/core/dist/commonjs/lib/utils.js
+++ /dev/null
@@ -1,32 +0,0 @@
-"use strict";
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.breakLines = breakLines;
-exports.readlineWidth = readlineWidth;
-const cli_width_1 = __importDefault(require("cli-width"));
-const wrap_ansi_1 = __importDefault(require("wrap-ansi"));
-const hook_engine_ts_1 = require("./hook-engine.js");
-/**
- * Force line returns at specific width. This function is ANSI code friendly and it'll
- * ignore invisible codes during width calculation.
- * @param {string} content
- * @param {number} width
- * @return {string}
- */
-function breakLines(content, width) {
- return content
- .split('\n')
- .flatMap((line) => (0, wrap_ansi_1.default)(line, width, { trim: false, hard: true })
- .split('\n')
- .map((str) => str.trimEnd()))
- .join('\n');
-}
-/**
- * Returns the width of the active readline, or 80 as default value.
- * @returns {number}
- */
-function readlineWidth() {
- return (0, cli_width_1.default)({ defaultWidth: 80, output: (0, hook_engine_ts_1.readline)().output });
-}
diff --git a/node_modules/@inquirer/core/dist/commonjs/package.json b/node_modules/@inquirer/core/dist/commonjs/package.json
deleted file mode 100755
index 5bbefff..0000000
--- a/node_modules/@inquirer/core/dist/commonjs/package.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "type": "commonjs"
-}
diff --git a/node_modules/@inquirer/core/dist/esm/index.d.ts b/node_modules/@inquirer/core/dist/esm/index.d.ts
deleted file mode 100755
index 2f28572..0000000
--- a/node_modules/@inquirer/core/dist/esm/index.d.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-export * from './lib/key.ts';
-export * from './lib/errors.ts';
-export { usePrefix } from './lib/use-prefix.ts';
-export { useState } from './lib/use-state.ts';
-export { useEffect } from './lib/use-effect.ts';
-export { useMemo } from './lib/use-memo.ts';
-export { useRef } from './lib/use-ref.ts';
-export { useKeypress } from './lib/use-keypress.ts';
-export { makeTheme } from './lib/make-theme.ts';
-export type { Theme, Status } from './lib/theme.ts';
-export { usePagination } from './lib/pagination/use-pagination.ts';
-export { createPrompt } from './lib/create-prompt.ts';
-export { Separator } from './lib/Separator.ts';
diff --git a/node_modules/@inquirer/core/dist/esm/index.js b/node_modules/@inquirer/core/dist/esm/index.js
deleted file mode 100755
index a2ab0e3..0000000
--- a/node_modules/@inquirer/core/dist/esm/index.js
+++ /dev/null
@@ -1,12 +0,0 @@
-export * from "./lib/key.js";
-export * from "./lib/errors.js";
-export { usePrefix } from "./lib/use-prefix.js";
-export { useState } from "./lib/use-state.js";
-export { useEffect } from "./lib/use-effect.js";
-export { useMemo } from "./lib/use-memo.js";
-export { useRef } from "./lib/use-ref.js";
-export { useKeypress } from "./lib/use-keypress.js";
-export { makeTheme } from "./lib/make-theme.js";
-export { usePagination } from "./lib/pagination/use-pagination.js";
-export { createPrompt } from "./lib/create-prompt.js";
-export { Separator } from "./lib/Separator.js";
diff --git a/node_modules/@inquirer/core/dist/esm/lib/Separator.d.ts b/node_modules/@inquirer/core/dist/esm/lib/Separator.d.ts
deleted file mode 100755
index 0283555..0000000
--- a/node_modules/@inquirer/core/dist/esm/lib/Separator.d.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Separator object
- * Used to space/separate choices group
- */
-export declare class Separator {
- readonly separator: string;
- readonly type: string;
- constructor(separator?: string);
- static isSeparator(choice: unknown): choice is Separator;
-}
diff --git a/node_modules/@inquirer/core/dist/esm/lib/Separator.js b/node_modules/@inquirer/core/dist/esm/lib/Separator.js
deleted file mode 100755
index f0d8409..0000000
--- a/node_modules/@inquirer/core/dist/esm/lib/Separator.js
+++ /dev/null
@@ -1,21 +0,0 @@
-import colors from 'yoctocolors-cjs';
-import figures from '@inquirer/figures';
-/**
- * Separator object
- * Used to space/separate choices group
- */
-export class Separator {
- separator = colors.dim(Array.from({ length: 15 }).join(figures.line));
- type = 'separator';
- constructor(separator) {
- if (separator) {
- this.separator = separator;
- }
- }
- static isSeparator(choice) {
- return Boolean(choice &&
- typeof choice === 'object' &&
- 'type' in choice &&
- choice.type === 'separator');
- }
-}
diff --git a/node_modules/@inquirer/core/dist/esm/lib/create-prompt.d.ts b/node_modules/@inquirer/core/dist/esm/lib/create-prompt.d.ts
deleted file mode 100755
index 4414db4..0000000
--- a/node_modules/@inquirer/core/dist/esm/lib/create-prompt.d.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-import { type Prompt, type Prettify } from '@inquirer/type';
-type ViewFunction = (config: Prettify, done: (value: Value) => void) => string | [string, string | undefined];
-export declare function createPrompt(view: ViewFunction): Prompt;
-export {};
diff --git a/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js b/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
deleted file mode 100755
index 7154416..0000000
--- a/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
+++ /dev/null
@@ -1,117 +0,0 @@
-import * as readline from 'node:readline';
-import { AsyncResource } from 'node:async_hooks';
-import MuteStream from 'mute-stream';
-import { onExit as onSignalExit } from 'signal-exit';
-import ScreenManager from "./screen-manager.js";
-import { PromisePolyfill } from "./promise-polyfill.js";
-import { withHooks, effectScheduler } from "./hook-engine.js";
-import { AbortPromptError, CancelPromptError, ExitPromptError } from "./errors.js";
-function getCallSites() {
- // eslint-disable-next-line @typescript-eslint/unbound-method
- const _prepareStackTrace = Error.prepareStackTrace;
- let result = [];
- try {
- Error.prepareStackTrace = (_, callSites) => {
- const callSitesWithoutCurrent = callSites.slice(1);
- result = callSitesWithoutCurrent;
- return callSitesWithoutCurrent;
- };
- // eslint-disable-next-line @typescript-eslint/no-unused-expressions
- new Error().stack;
- }
- catch {
- // An error will occur if the Node flag --frozen-intrinsics is used.
- // https://nodejs.org/api/cli.html#--frozen-intrinsics
- return result;
- }
- Error.prepareStackTrace = _prepareStackTrace;
- return result;
-}
-export function createPrompt(view) {
- const callSites = getCallSites();
- const prompt = (config, context = {}) => {
- // Default `input` to stdin
- const { input = process.stdin, signal } = context;
- const cleanups = new Set();
- // Add mute capabilities to the output
- const output = new MuteStream();
- output.pipe(context.output ?? process.stdout);
- const rl = readline.createInterface({
- terminal: true,
- input,
- output,
- });
- const screen = new ScreenManager(rl);
- const { promise, resolve, reject } = PromisePolyfill.withResolver();
- const cancel = () => reject(new CancelPromptError());
- if (signal) {
- const abort = () => reject(new AbortPromptError({ cause: signal.reason }));
- if (signal.aborted) {
- abort();
- return Object.assign(promise, { cancel });
- }
- signal.addEventListener('abort', abort);
- cleanups.add(() => signal.removeEventListener('abort', abort));
- }
- cleanups.add(onSignalExit((code, signal) => {
- reject(new ExitPromptError(`User force closed the prompt with ${code} ${signal}`));
- }));
- // SIGINT must be explicitly handled by the prompt so the ExitPromptError can be handled.
- // Otherwise, the prompt will stop and in some scenarios never resolve.
- // Ref issue #1741
- const sigint = () => reject(new ExitPromptError(`User force closed the prompt with SIGINT`));
- rl.on('SIGINT', sigint);
- cleanups.add(() => rl.removeListener('SIGINT', sigint));
- // Re-renders only happen when the state change; but the readline cursor could change position
- // and that also requires a re-render (and a manual one because we mute the streams).
- // We set the listener after the initial workLoop to avoid a double render if render triggered
- // by a state change sets the cursor to the right position.
- const checkCursorPos = () => screen.checkCursorPos();
- rl.input.on('keypress', checkCursorPos);
- cleanups.add(() => rl.input.removeListener('keypress', checkCursorPos));
- return withHooks(rl, (cycle) => {
- // The close event triggers immediately when the user press ctrl+c. SignalExit on the other hand
- // triggers after the process is done (which happens after timeouts are done triggering.)
- // We triggers the hooks cleanup phase on rl `close` so active timeouts can be cleared.
- const hooksCleanup = AsyncResource.bind(() => effectScheduler.clearAll());
- rl.on('close', hooksCleanup);
- cleanups.add(() => rl.removeListener('close', hooksCleanup));
- cycle(() => {
- try {
- const nextView = view(config, (value) => {
- setImmediate(() => resolve(value));
- });
- // Typescript won't allow this, but not all users rely on typescript.
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
- if (nextView === undefined) {
- const callerFilename = callSites[1]?.getFileName();
- throw new Error(`Prompt functions must return a string.\n at ${callerFilename}`);
- }
- const [content, bottomContent] = typeof nextView === 'string' ? [nextView] : nextView;
- screen.render(content, bottomContent);
- effectScheduler.run();
- }
- catch (error) {
- reject(error);
- }
- });
- return Object.assign(promise
- .then((answer) => {
- effectScheduler.clearAll();
- return answer;
- }, (error) => {
- effectScheduler.clearAll();
- throw error;
- })
- // Wait for the promise to settle, then cleanup.
- .finally(() => {
- cleanups.forEach((cleanup) => cleanup());
- screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
- output.end();
- })
- // Once cleanup is done, let the expose promise resolve/reject to the internal one.
- .then(() => promise), { cancel });
- });
- };
- return prompt;
-}
diff --git a/node_modules/@inquirer/core/dist/esm/lib/errors.d.ts b/node_modules/@inquirer/core/dist/esm/lib/errors.d.ts
deleted file mode 100755
index b9df681..0000000
--- a/node_modules/@inquirer/core/dist/esm/lib/errors.d.ts
+++ /dev/null
@@ -1,20 +0,0 @@
-export declare class AbortPromptError extends Error {
- name: string;
- message: string;
- constructor(options?: {
- cause?: unknown;
- });
-}
-export declare class CancelPromptError extends Error {
- name: string;
- message: string;
-}
-export declare class ExitPromptError extends Error {
- name: string;
-}
-export declare class HookError extends Error {
- name: string;
-}
-export declare class ValidationError extends Error {
- name: string;
-}
diff --git a/node_modules/@inquirer/core/dist/esm/lib/errors.js b/node_modules/@inquirer/core/dist/esm/lib/errors.js
deleted file mode 100755
index 153a936..0000000
--- a/node_modules/@inquirer/core/dist/esm/lib/errors.js
+++ /dev/null
@@ -1,21 +0,0 @@
-export class AbortPromptError extends Error {
- name = 'AbortPromptError';
- message = 'Prompt was aborted';
- constructor(options) {
- super();
- this.cause = options?.cause;
- }
-}
-export class CancelPromptError extends Error {
- name = 'CancelPromptError';
- message = 'Prompt was canceled';
-}
-export class ExitPromptError extends Error {
- name = 'ExitPromptError';
-}
-export class HookError extends Error {
- name = 'HookError';
-}
-export class ValidationError extends Error {
- name = 'ValidationError';
-}
diff --git a/node_modules/@inquirer/core/dist/esm/lib/hook-engine.d.ts b/node_modules/@inquirer/core/dist/esm/lib/hook-engine.d.ts
deleted file mode 100755
index edfc61c..0000000
--- a/node_modules/@inquirer/core/dist/esm/lib/hook-engine.d.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-import type { InquirerReadline } from '@inquirer/type';
-export declare function withHooks(rl: InquirerReadline, cb: (cycle: (render: () => void) => void) => T): T;
-export declare function readline(): InquirerReadline;
-export declare function withUpdates(fn: (...args: Args) => R): (...args: Args) => R;
-type SetPointer = {
- get(): Value;
- set(value: Value): void;
- initialized: true;
-};
-type UnsetPointer = {
- get(): void;
- set(value: Value): void;
- initialized: false;
-};
-type Pointer = SetPointer | UnsetPointer;
-export declare function withPointer(cb: (pointer: Pointer) => ReturnValue): ReturnValue;
-export declare function handleChange(): void;
-export declare const effectScheduler: {
- queue(cb: (readline: InquirerReadline) => void | (() => void)): void;
- run(): void;
- clearAll(): void;
-};
-export {};
diff --git a/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js b/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
deleted file mode 100755
index 3ed0432..0000000
--- a/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
+++ /dev/null
@@ -1,110 +0,0 @@
-/* eslint @typescript-eslint/no-explicit-any: ["off"] */
-import { AsyncLocalStorage, AsyncResource } from 'node:async_hooks';
-import { HookError, ValidationError } from "./errors.js";
-const hookStorage = new AsyncLocalStorage();
-function createStore(rl) {
- const store = {
- rl,
- hooks: [],
- hooksCleanup: [],
- hooksEffect: [],
- index: 0,
- handleChange() { },
- };
- return store;
-}
-// Run callback in with the hook engine setup.
-export function withHooks(rl, cb) {
- const store = createStore(rl);
- return hookStorage.run(store, () => {
- function cycle(render) {
- store.handleChange = () => {
- store.index = 0;
- render();
- };
- store.handleChange();
- }
- return cb(cycle);
- });
-}
-// Safe getStore utility that'll return the store or throw if undefined.
-function getStore() {
- const store = hookStorage.getStore();
- if (!store) {
- throw new HookError('[Inquirer] Hook functions can only be called from within a prompt');
- }
- return store;
-}
-export function readline() {
- return getStore().rl;
-}
-// Merge state updates happening within the callback function to avoid multiple renders.
-export function withUpdates(fn) {
- const wrapped = (...args) => {
- const store = getStore();
- let shouldUpdate = false;
- const oldHandleChange = store.handleChange;
- store.handleChange = () => {
- shouldUpdate = true;
- };
- const returnValue = fn(...args);
- if (shouldUpdate) {
- oldHandleChange();
- }
- store.handleChange = oldHandleChange;
- return returnValue;
- };
- return AsyncResource.bind(wrapped);
-}
-export function withPointer(cb) {
- const store = getStore();
- const { index } = store;
- const pointer = {
- get() {
- return store.hooks[index];
- },
- set(value) {
- store.hooks[index] = value;
- },
- initialized: index in store.hooks,
- };
- const returnValue = cb(pointer);
- store.index++;
- return returnValue;
-}
-export function handleChange() {
- getStore().handleChange();
-}
-export const effectScheduler = {
- queue(cb) {
- const store = getStore();
- const { index } = store;
- store.hooksEffect.push(() => {
- store.hooksCleanup[index]?.();
- const cleanFn = cb(readline());
- if (cleanFn != null && typeof cleanFn !== 'function') {
- throw new ValidationError('useEffect return value must be a cleanup function or nothing.');
- }
- store.hooksCleanup[index] = cleanFn;
- });
- },
- run() {
- const store = getStore();
- withUpdates(() => {
- store.hooksEffect.forEach((effect) => {
- effect();
- });
- // Warning: Clean the hooks before exiting the `withUpdates` block.
- // Failure to do so means an updates would hit the same effects again.
- store.hooksEffect.length = 0;
- })();
- },
- clearAll() {
- const store = getStore();
- store.hooksCleanup.forEach((cleanFn) => {
- cleanFn?.();
- });
- store.hooksEffect.length = 0;
- store.hooksCleanup.length = 0;
- },
-};
diff --git a/node_modules/@inquirer/core/dist/esm/lib/key.d.ts b/node_modules/@inquirer/core/dist/esm/lib/key.d.ts
deleted file mode 100755
index e2ad3dc..0000000
--- a/node_modules/@inquirer/core/dist/esm/lib/key.d.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-export type KeypressEvent = {
- name: string;
- ctrl: boolean;
-};
-export declare const isUpKey: (key: KeypressEvent) => boolean;
-export declare const isDownKey: (key: KeypressEvent) => boolean;
-export declare const isSpaceKey: (key: KeypressEvent) => boolean;
-export declare const isBackspaceKey: (key: KeypressEvent) => boolean;
-export declare const isNumberKey: (key: KeypressEvent) => boolean;
-export declare const isEnterKey: (key: KeypressEvent) => boolean;
diff --git a/node_modules/@inquirer/core/dist/esm/lib/key.js b/node_modules/@inquirer/core/dist/esm/lib/key.js
deleted file mode 100755
index 36a6f5c..0000000
--- a/node_modules/@inquirer/core/dist/esm/lib/key.js
+++ /dev/null
@@ -1,18 +0,0 @@
-export const isUpKey = (key) =>
-// The up key
-key.name === 'up' ||
- // Vim keybinding
- key.name === 'k' ||
- // Emacs keybinding
- (key.ctrl && key.name === 'p');
-export const isDownKey = (key) =>
-// The down key
-key.name === 'down' ||
- // Vim keybinding
- key.name === 'j' ||
- // Emacs keybinding
- (key.ctrl && key.name === 'n');
-export const isSpaceKey = (key) => key.name === 'space';
-export const isBackspaceKey = (key) => key.name === 'backspace';
-export const isNumberKey = (key) => '1234567890'.includes(key.name);
-export const isEnterKey = (key) => key.name === 'enter' || key.name === 'return';
diff --git a/node_modules/@inquirer/core/dist/esm/lib/make-theme.d.ts b/node_modules/@inquirer/core/dist/esm/lib/make-theme.d.ts
deleted file mode 100755
index c7aae8b..0000000
--- a/node_modules/@inquirer/core/dist/esm/lib/make-theme.d.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import type { Prettify, PartialDeep } from '@inquirer/type';
-import { type Theme } from './theme.ts';
-export declare function makeTheme(...themes: ReadonlyArray>>): Prettify>;
diff --git a/node_modules/@inquirer/core/dist/esm/lib/make-theme.js b/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
deleted file mode 100755
index 8086da6..0000000
--- a/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
+++ /dev/null
@@ -1,30 +0,0 @@
-import { defaultTheme } from "./theme.js";
-function isPlainObject(value) {
- if (typeof value !== 'object' || value === null)
- return false;
- let proto = value;
- while (Object.getPrototypeOf(proto) !== null) {
- proto = Object.getPrototypeOf(proto);
- }
- return Object.getPrototypeOf(value) === proto;
-}
-function deepMerge(...objects) {
- const output = {};
- for (const obj of objects) {
- for (const [key, value] of Object.entries(obj)) {
- const prevValue = output[key];
- output[key] =
- isPlainObject(prevValue) && isPlainObject(value)
- ? deepMerge(prevValue, value)
- : value;
- }
- }
- return output;
-}
-export function makeTheme(...themes) {
- const themesToMerge = [
- defaultTheme,
- ...themes.filter((theme) => theme != null),
- ];
- return deepMerge(...themesToMerge);
-}
diff --git a/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.d.ts b/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.d.ts
deleted file mode 100755
index 47467c3..0000000
--- a/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.d.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-import type { Prettify } from '@inquirer/type';
-export declare function usePagination({ items, active, renderItem, pageSize, loop, }: {
- items: ReadonlyArray;
- /** The index of the active item. */
- active: number;
- /** Renders an item as part of a page. */
- renderItem: (layout: Prettify<{
- item: T;
- index: number;
- isActive: boolean;
- }>) => string;
- /** The size of the page. */
- pageSize: number;
- /** Allows creating an infinitely looping list. `true` if unspecified. */
- loop?: boolean;
-}): string;
diff --git a/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js b/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
deleted file mode 100755
index f3883d5..0000000
--- a/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
+++ /dev/null
@@ -1,121 +0,0 @@
-import { useRef } from "../use-ref.js";
-import { readlineWidth, breakLines } from "../utils.js";
-function usePointerPosition({ active, renderedItems, pageSize, loop, }) {
- const state = useRef({
- lastPointer: active,
- lastActive: undefined,
- });
- const { lastPointer, lastActive } = state.current;
- const middle = Math.floor(pageSize / 2);
- const renderedLength = renderedItems.reduce((acc, item) => acc + item.length, 0);
- const defaultPointerPosition = renderedItems
- .slice(0, active)
- .reduce((acc, item) => acc + item.length, 0);
- let pointer = defaultPointerPosition;
- if (renderedLength > pageSize) {
- if (loop) {
- /**
- * Creates the next position for the pointer considering an infinitely
- * looping list of items to be rendered on the page.
- *
- * The goal is to progressively move the cursor to the middle position as the user move down, and then keep
- * the cursor there. When the user move up, maintain the cursor position.
- */
- // By default, keep the cursor position as-is.
- pointer = lastPointer;
- if (
- // First render, skip this logic.
- lastActive != null &&
- // Only move the pointer down when the user moves down.
- lastActive < active &&
- // Check user didn't move up across page boundary.
- active - lastActive < pageSize) {
- pointer = Math.min(
- // Furthest allowed position for the pointer is the middle of the list
- middle, Math.abs(active - lastActive) === 1
- ? Math.min(
- // Move the pointer at most the height of the last active item.
- lastPointer + (renderedItems[lastActive]?.length ?? 0),
- // If the user moved by one item, move the pointer to the natural position of the active item as
- // long as it doesn't move the cursor up.
- Math.max(defaultPointerPosition, lastPointer))
- : // Otherwise, move the pointer down by the difference between the active and last active item.
- lastPointer + active - lastActive);
- }
- }
- else {
- /**
- * Creates the next position for the pointer considering a finite list of
- * items to be rendered on a page.
- *
- * The goal is to keep the pointer in the middle of the page whenever possible, until
- * we reach the bounds of the list (top or bottom). In which case, the cursor moves progressively
- * to the bottom or top of the list.
- */
- const spaceUnderActive = renderedItems
- .slice(active)
- .reduce((acc, item) => acc + item.length, 0);
- pointer =
- spaceUnderActive < pageSize - middle
- ? // If the active item is near the end of the list, progressively move the cursor towards the end.
- pageSize - spaceUnderActive
- : // Otherwise, progressively move the pointer to the middle of the list.
- Math.min(defaultPointerPosition, middle);
- }
- }
- // Save state for the next render
- state.current.lastPointer = pointer;
- state.current.lastActive = active;
- return pointer;
-}
-export function usePagination({ items, active, renderItem, pageSize, loop = true, }) {
- const width = readlineWidth();
- const bound = (num) => ((num % items.length) + items.length) % items.length;
- const renderedItems = items.map((item, index) => {
- if (item == null)
- return [];
- return breakLines(renderItem({ item, index, isActive: index === active }), width).split('\n');
- });
- const renderedLength = renderedItems.reduce((acc, item) => acc + item.length, 0);
- const renderItemAtIndex = (index) => renderedItems[index] ?? [];
- const pointer = usePointerPosition({ active, renderedItems, pageSize, loop });
- // Render the active item to decide the position.
- // If the active item fits under the pointer, we render it there.
- // Otherwise, we need to render it to fit at the bottom of the page; moving the pointer up.
- const activeItem = renderItemAtIndex(active).slice(0, pageSize);
- const activeItemPosition = pointer + activeItem.length <= pageSize ? pointer : pageSize - activeItem.length;
- // Create an array of lines for the page, and add the lines of the active item into the page
- const pageBuffer = Array.from({ length: pageSize });
- pageBuffer.splice(activeItemPosition, activeItem.length, ...activeItem);
- // Store to prevent rendering the same item twice
- const itemVisited = new Set([active]);
- // Fill the page under the active item
- let bufferPointer = activeItemPosition + activeItem.length;
- let itemPointer = bound(active + 1);
- while (bufferPointer < pageSize &&
- !itemVisited.has(itemPointer) &&
- (loop && renderedLength > pageSize ? itemPointer !== active : itemPointer > active)) {
- const lines = renderItemAtIndex(itemPointer);
- const linesToAdd = lines.slice(0, pageSize - bufferPointer);
- pageBuffer.splice(bufferPointer, linesToAdd.length, ...linesToAdd);
- // Move pointers for next iteration
- itemVisited.add(itemPointer);
- bufferPointer += linesToAdd.length;
- itemPointer = bound(itemPointer + 1);
- }
- // Fill the page over the active item
- bufferPointer = activeItemPosition - 1;
- itemPointer = bound(active - 1);
- while (bufferPointer >= 0 &&
- !itemVisited.has(itemPointer) &&
- (loop && renderedLength > pageSize ? itemPointer !== active : itemPointer < active)) {
- const lines = renderItemAtIndex(itemPointer);
- const linesToAdd = lines.slice(Math.max(0, lines.length - bufferPointer - 1));
- pageBuffer.splice(bufferPointer - linesToAdd.length + 1, linesToAdd.length, ...linesToAdd);
- // Move pointers for next iteration
- itemVisited.add(itemPointer);
- bufferPointer -= linesToAdd.length;
- itemPointer = bound(itemPointer - 1);
- }
- return pageBuffer.filter((line) => typeof line === 'string').join('\n');
-}
diff --git a/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.d.ts b/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.d.ts
deleted file mode 100755
index 0e4f74c..0000000
--- a/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.d.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-export declare class PromisePolyfill extends Promise {
- static withResolver(): {
- promise: Promise;
- resolve: (value: T) => void;
- reject: (error: unknown) => void;
- };
-}
diff --git a/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js b/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
deleted file mode 100755
index 621708e..0000000
--- a/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
+++ /dev/null
@@ -1,14 +0,0 @@
-// TODO: Remove this class once Node 22 becomes the minimum supported version.
-export class PromisePolyfill extends Promise {
- // Available starting from Node 22
- // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/withResolvers
- static withResolver() {
- let resolve;
- let reject;
- const promise = new Promise((res, rej) => {
- resolve = res;
- reject = rej;
- });
- return { promise, resolve: resolve, reject: reject };
- }
-}
diff --git a/node_modules/@inquirer/core/dist/esm/lib/screen-manager.d.ts b/node_modules/@inquirer/core/dist/esm/lib/screen-manager.d.ts
deleted file mode 100755
index de4c1e0..0000000
--- a/node_modules/@inquirer/core/dist/esm/lib/screen-manager.d.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-import type { InquirerReadline } from '@inquirer/type';
-export default class ScreenManager {
- private height;
- private extraLinesUnderPrompt;
- private cursorPos;
- private readonly rl;
- constructor(rl: InquirerReadline);
- write(content: string): void;
- render(content: string, bottomContent?: string): void;
- checkCursorPos(): void;
- done({ clearContent }: {
- clearContent: boolean;
- }): void;
-}
diff --git a/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js b/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
deleted file mode 100755
index b77aad6..0000000
--- a/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
+++ /dev/null
@@ -1,84 +0,0 @@
-import { stripVTControlCharacters } from 'node:util';
-import ansiEscapes from 'ansi-escapes';
-import { breakLines, readlineWidth } from "./utils.js";
-const height = (content) => content.split('\n').length;
-const lastLine = (content) => content.split('\n').pop() ?? '';
-function cursorDown(n) {
- return n > 0 ? ansiEscapes.cursorDown(n) : '';
-}
-export default class ScreenManager {
- // These variables are keeping information to allow correct prompt re-rendering
- height = 0;
- extraLinesUnderPrompt = 0;
- cursorPos;
- rl;
- constructor(rl) {
- this.rl = rl;
- this.cursorPos = rl.getCursorPos();
- }
- write(content) {
- this.rl.output.unmute();
- this.rl.output.write(content);
- this.rl.output.mute();
- }
- render(content, bottomContent = '') {
- // Write message to screen and setPrompt to control backspace
- const promptLine = lastLine(content);
- const rawPromptLine = stripVTControlCharacters(promptLine);
- // Remove the rl.line from our prompt. We can't rely on the content of
- // rl.line (mainly because of the password prompt), so just rely on it's
- // length.
- let prompt = rawPromptLine;
- if (this.rl.line.length > 0) {
- prompt = prompt.slice(0, -this.rl.line.length);
- }
- this.rl.setPrompt(prompt);
- // SetPrompt will change cursor position, now we can get correct value
- this.cursorPos = this.rl.getCursorPos();
- const width = readlineWidth();
- content = breakLines(content, width);
- bottomContent = breakLines(bottomContent, width);
- // Manually insert an extra line if we're at the end of the line.
- // This prevent the cursor from appearing at the beginning of the
- // current line.
- if (rawPromptLine.length % width === 0) {
- content += '\n';
- }
- let output = content + (bottomContent ? '\n' + bottomContent : '');
- /**
- * Re-adjust the cursor at the correct position.
- */
- // We need to consider parts of the prompt under the cursor as part of the bottom
- // content in order to correctly cleanup and re-render.
- const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
- const bottomContentHeight = promptLineUpDiff + (bottomContent ? height(bottomContent) : 0);
- // Return cursor to the input position (on top of the bottomContent)
- if (bottomContentHeight > 0)
- output += ansiEscapes.cursorUp(bottomContentHeight);
- // Return cursor to the initial left offset.
- output += ansiEscapes.cursorTo(this.cursorPos.cols);
- /**
- * Render and store state for future re-rendering
- */
- this.write(cursorDown(this.extraLinesUnderPrompt) +
- ansiEscapes.eraseLines(this.height) +
- output);
- this.extraLinesUnderPrompt = bottomContentHeight;
- this.height = height(output);
- }
- checkCursorPos() {
- const cursorPos = this.rl.getCursorPos();
- if (cursorPos.cols !== this.cursorPos.cols) {
- this.write(ansiEscapes.cursorTo(cursorPos.cols));
- this.cursorPos = cursorPos;
- }
- }
- done({ clearContent }) {
- this.rl.setPrompt('');
- let output = cursorDown(this.extraLinesUnderPrompt);
- output += clearContent ? ansiEscapes.eraseLines(this.height) : '\n';
- output += ansiEscapes.cursorShow;
- this.write(output);
- this.rl.close();
- }
-}
diff --git a/node_modules/@inquirer/core/dist/esm/lib/theme.d.ts b/node_modules/@inquirer/core/dist/esm/lib/theme.d.ts
deleted file mode 100755
index f1529b0..0000000
--- a/node_modules/@inquirer/core/dist/esm/lib/theme.d.ts
+++ /dev/null
@@ -1,155 +0,0 @@
-import type { Prettify } from '@inquirer/type';
-/**
- * Union type representing the possible statuses of a prompt.
- *
- * - `'loading'`: The prompt is currently loading.
- * - `'idle'`: The prompt is loaded and currently waiting for the user to
- * submit an answer.
- * - `'done'`: The user has submitted an answer and the prompt is finished.
- * - `string`: Any other string: The prompt is in a custom state.
- */
-export type Status = 'loading' | 'idle' | 'done' | (string & {});
-type DefaultTheme = {
- /**
- * Prefix to prepend to the message. If a function is provided, it will be
- * called with the current status of the prompt, and the return value will be
- * used as the prefix.
- *
- * @remarks
- * If `status === 'loading'`, this property is ignored and the spinner (styled
- * by the `spinner` property) will be displayed instead.
- *
- * @defaultValue
- * ```ts
- * // import colors from 'yoctocolors-cjs';
- * (status) => status === 'done' ? colors.green('✔') : colors.blue('?')
- * ```
- */
- prefix: string | Prettify, 'loading'>>;
- /**
- * Configuration for the spinner that is displayed when the prompt is in the
- * `'loading'` state.
- *
- * We recommend the use of {@link https://github.com/sindresorhus/cli-spinners|cli-spinners} for a list of available spinners.
- */
- spinner: {
- /**
- * The time interval between frames, in milliseconds.
- *
- * @defaultValue
- * ```ts
- * 80
- * ```
- */
- interval: number;
- /**
- * A list of frames to show for the spinner.
- *
- * @defaultValue
- * ```ts
- * ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏']
- * ```
- */
- frames: string[];
- };
- /**
- * Object containing functions to style different parts of the prompt.
- */
- style: {
- /**
- * Style to apply to the user's answer once it has been submitted.
- *
- * @param text - The user's answer.
- * @returns The styled answer.
- *
- * @defaultValue
- * ```ts
- * // import colors from 'yoctocolors-cjs';
- * (text) => colors.cyan(text)
- * ```
- */
- answer: (text: string) => string;
- /**
- * Style to apply to the message displayed to the user.
- *
- * @param text - The message to style.
- * @param status - The current status of the prompt.
- * @returns The styled message.
- *
- * @defaultValue
- * ```ts
- * // import colors from 'yoctocolors-cjs';
- * (text, status) => colors.bold(text)
- * ```
- */
- message: (text: string, status: Status) => string;
- /**
- * Style to apply to error messages.
- *
- * @param text - The error message.
- * @returns The styled error message.
- *
- * @defaultValue
- * ```ts
- * // import colors from 'yoctocolors-cjs';
- * (text) => colors.red(`> ${text}`)
- * ```
- */
- error: (text: string) => string;
- /**
- * Style to apply to the default answer when one is provided.
- *
- * @param text - The default answer.
- * @returns The styled default answer.
- *
- * @defaultValue
- * ```ts
- * // import colors from 'yoctocolors-cjs';
- * (text) => colors.dim(`(${text})`)
- * ```
- */
- defaultAnswer: (text: string) => string;
- /**
- * Style to apply to help text.
- *
- * @param text - The help text.
- * @returns The styled help text.
- *
- * @defaultValue
- * ```ts
- * // import colors from 'yoctocolors-cjs';
- * (text) => colors.dim(text)
- * ```
- */
- help: (text: string) => string;
- /**
- * Style to apply to highlighted text.
- *
- * @param text - The text to highlight.
- * @returns The highlighted text.
- *
- * @defaultValue
- * ```ts
- * // import colors from 'yoctocolors-cjs';
- * (text) => colors.cyan(text)
- * ```
- */
- highlight: (text: string) => string;
- /**
- * Style to apply to keyboard keys referred to in help texts.
- *
- * @param text - The key to style.
- * @returns The styled key.
- *
- * @defaultValue
- * ```ts
- * // import colors from 'yoctocolors-cjs';
- * (text) => colors.cyan(colors.bold(`<${text}>`))
- * ```
- */
- key: (text: string) => string;
- };
-};
-export type Theme = Prettify;
-export declare const defaultTheme: DefaultTheme;
-export {};
diff --git a/node_modules/@inquirer/core/dist/esm/lib/theme.js b/node_modules/@inquirer/core/dist/esm/lib/theme.js
deleted file mode 100755
index d52a2da..0000000
--- a/node_modules/@inquirer/core/dist/esm/lib/theme.js
+++ /dev/null
@@ -1,22 +0,0 @@
-import colors from 'yoctocolors-cjs';
-import figures from '@inquirer/figures';
-export const defaultTheme = {
- prefix: {
- idle: colors.blue('?'),
- // TODO: use figure
- done: colors.green(figures.tick),
- },
- spinner: {
- interval: 80,
- frames: ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏'].map((frame) => colors.yellow(frame)),
- },
- style: {
- answer: colors.cyan,
- message: colors.bold,
- error: (text) => colors.red(`> ${text}`),
- defaultAnswer: (text) => colors.dim(`(${text})`),
- help: colors.dim,
- highlight: colors.cyan,
- key: (text) => colors.cyan(colors.bold(`<${text}>`)),
- },
-};
diff --git a/node_modules/@inquirer/core/dist/esm/lib/use-effect.d.ts b/node_modules/@inquirer/core/dist/esm/lib/use-effect.d.ts
deleted file mode 100755
index abee906..0000000
--- a/node_modules/@inquirer/core/dist/esm/lib/use-effect.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import type { InquirerReadline } from '@inquirer/type';
-export declare function useEffect(cb: (rl: InquirerReadline) => void | (() => void), depArray: ReadonlyArray): void;
diff --git a/node_modules/@inquirer/core/dist/esm/lib/use-effect.js b/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
deleted file mode 100755
index 1c1a9ca..0000000
--- a/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
+++ /dev/null
@@ -1,11 +0,0 @@
-import { withPointer, effectScheduler } from "./hook-engine.js";
-export function useEffect(cb, depArray) {
- withPointer((pointer) => {
- const oldDeps = pointer.get();
- const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i) => !Object.is(dep, oldDeps[i]));
- if (hasChanged) {
- effectScheduler.queue(cb);
- }
- pointer.set(depArray);
- });
-}
diff --git a/node_modules/@inquirer/core/dist/esm/lib/use-keypress.d.ts b/node_modules/@inquirer/core/dist/esm/lib/use-keypress.d.ts
deleted file mode 100755
index ccdeefa..0000000
--- a/node_modules/@inquirer/core/dist/esm/lib/use-keypress.d.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import { type InquirerReadline } from '@inquirer/type';
-import { type KeypressEvent } from './key.ts';
-export declare function useKeypress(userHandler: (event: KeypressEvent, rl: InquirerReadline) => void | Promise): void;
diff --git a/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js b/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
deleted file mode 100755
index 4ff9b89..0000000
--- a/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
+++ /dev/null
@@ -1,20 +0,0 @@
-import { useRef } from "./use-ref.js";
-import { useEffect } from "./use-effect.js";
-import { withUpdates } from "./hook-engine.js";
-export function useKeypress(userHandler) {
- const signal = useRef(userHandler);
- signal.current = userHandler;
- useEffect((rl) => {
- let ignore = false;
- const handler = withUpdates((_input, event) => {
- if (ignore)
- return;
- void signal.current(event, rl);
- });
- rl.input.on('keypress', handler);
- return () => {
- ignore = true;
- rl.input.removeListener('keypress', handler);
- };
- }, []);
-}
diff --git a/node_modules/@inquirer/core/dist/esm/lib/use-memo.d.ts b/node_modules/@inquirer/core/dist/esm/lib/use-memo.d.ts
deleted file mode 100755
index 19d1644..0000000
--- a/node_modules/@inquirer/core/dist/esm/lib/use-memo.d.ts
+++ /dev/null
@@ -1 +0,0 @@
-export declare function useMemo(fn: () => Value, dependencies: ReadonlyArray): Value;
diff --git a/node_modules/@inquirer/core/dist/esm/lib/use-memo.js b/node_modules/@inquirer/core/dist/esm/lib/use-memo.js
deleted file mode 100755
index 0395f4e..0000000
--- a/node_modules/@inquirer/core/dist/esm/lib/use-memo.js
+++ /dev/null
@@ -1,14 +0,0 @@
-import { withPointer } from "./hook-engine.js";
-export function useMemo(fn, dependencies) {
- return withPointer((pointer) => {
- const prev = pointer.get();
- if (!prev ||
- prev.dependencies.length !== dependencies.length ||
- prev.dependencies.some((dep, i) => dep !== dependencies[i])) {
- const value = fn();
- pointer.set({ value, dependencies });
- return value;
- }
- return prev.value;
- });
-}
diff --git a/node_modules/@inquirer/core/dist/esm/lib/use-prefix.d.ts b/node_modules/@inquirer/core/dist/esm/lib/use-prefix.d.ts
deleted file mode 100755
index db1dabb..0000000
--- a/node_modules/@inquirer/core/dist/esm/lib/use-prefix.d.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-import type { Theme, Status } from './theme.ts';
-export declare function usePrefix({ status, theme, }: {
- status?: Status;
- theme?: Theme;
-}): string;
diff --git a/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js b/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
deleted file mode 100755
index d334a50..0000000
--- a/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
+++ /dev/null
@@ -1,35 +0,0 @@
-import { useState } from "./use-state.js";
-import { useEffect } from "./use-effect.js";
-import { makeTheme } from "./make-theme.js";
-export function usePrefix({ status = 'idle', theme, }) {
- const [showLoader, setShowLoader] = useState(false);
- const [tick, setTick] = useState(0);
- const { prefix, spinner } = makeTheme(theme);
- useEffect(() => {
- if (status === 'loading') {
- let tickInterval;
- let inc = -1;
- // Delay displaying spinner by 300ms, to avoid flickering
- const delayTimeout = setTimeout(() => {
- setShowLoader(true);
- tickInterval = setInterval(() => {
- inc = inc + 1;
- setTick(inc % spinner.frames.length);
- }, spinner.interval);
- }, 300);
- return () => {
- clearTimeout(delayTimeout);
- clearInterval(tickInterval);
- };
- }
- else {
- setShowLoader(false);
- }
- }, [status]);
- if (showLoader) {
- return spinner.frames[tick];
- }
- // There's a delay before we show the loader. So we want to ignore `loading` here, and pass idle instead.
- const iconName = status === 'loading' ? 'idle' : status;
- return typeof prefix === 'string' ? prefix : (prefix[iconName] ?? prefix['idle']);
-}
diff --git a/node_modules/@inquirer/core/dist/esm/lib/use-ref.d.ts b/node_modules/@inquirer/core/dist/esm/lib/use-ref.d.ts
deleted file mode 100755
index be7126b..0000000
--- a/node_modules/@inquirer/core/dist/esm/lib/use-ref.d.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-export declare function useRef(val: Value): {
- current: Value;
-};
-export declare function useRef(val?: Value): {
- current: Value | undefined;
-};
diff --git a/node_modules/@inquirer/core/dist/esm/lib/use-ref.js b/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
deleted file mode 100755
index a025561..0000000
--- a/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
+++ /dev/null
@@ -1,4 +0,0 @@
-import { useState } from "./use-state.js";
-export function useRef(val) {
- return useState({ current: val })[0];
-}
diff --git a/node_modules/@inquirer/core/dist/esm/lib/use-state.d.ts b/node_modules/@inquirer/core/dist/esm/lib/use-state.d.ts
deleted file mode 100755
index fba0b62..0000000
--- a/node_modules/@inquirer/core/dist/esm/lib/use-state.d.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-type NotFunction = T extends (...args: never) => unknown ? never : T;
-export declare function useState(defaultValue: NotFunction | (() => Value)): [Value, (newValue: Value) => void];
-export declare function useState(defaultValue?: NotFunction | (() => Value)): [Value | undefined, (newValue?: Value) => void];
-export {};
diff --git a/node_modules/@inquirer/core/dist/esm/lib/use-state.js b/node_modules/@inquirer/core/dist/esm/lib/use-state.js
deleted file mode 100755
index c6b928d..0000000
--- a/node_modules/@inquirer/core/dist/esm/lib/use-state.js
+++ /dev/null
@@ -1,20 +0,0 @@
-import { AsyncResource } from 'node:async_hooks';
-import { withPointer, handleChange } from "./hook-engine.js";
-export function useState(defaultValue) {
- return withPointer((pointer) => {
- const setState = AsyncResource.bind(function setState(newValue) {
- // Noop if the value is still the same.
- if (pointer.get() !== newValue) {
- pointer.set(newValue);
- // Trigger re-render
- handleChange();
- }
- });
- if (pointer.initialized) {
- return [pointer.get(), setState];
- }
- const value = typeof defaultValue === 'function' ? defaultValue() : defaultValue;
- pointer.set(value);
- return [value, setState];
- });
-}
diff --git a/node_modules/@inquirer/core/dist/esm/lib/utils.d.ts b/node_modules/@inquirer/core/dist/esm/lib/utils.d.ts
deleted file mode 100755
index 14f8fc4..0000000
--- a/node_modules/@inquirer/core/dist/esm/lib/utils.d.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- * Force line returns at specific width. This function is ANSI code friendly and it'll
- * ignore invisible codes during width calculation.
- * @param {string} content
- * @param {number} width
- * @return {string}
- */
-export declare function breakLines(content: string, width: number): string;
-/**
- * Returns the width of the active readline, or 80 as default value.
- * @returns {number}
- */
-export declare function readlineWidth(): number;
diff --git a/node_modules/@inquirer/core/dist/esm/lib/utils.js b/node_modules/@inquirer/core/dist/esm/lib/utils.js
deleted file mode 100755
index 259eb07..0000000
--- a/node_modules/@inquirer/core/dist/esm/lib/utils.js
+++ /dev/null
@@ -1,25 +0,0 @@
-import cliWidth from 'cli-width';
-import wrapAnsi from 'wrap-ansi';
-import { readline } from "./hook-engine.js";
-/**
- * Force line returns at specific width. This function is ANSI code friendly and it'll
- * ignore invisible codes during width calculation.
- * @param {string} content
- * @param {number} width
- * @return {string}
- */
-export function breakLines(content, width) {
- return content
- .split('\n')
- .flatMap((line) => wrapAnsi(line, width, { trim: false, hard: true })
- .split('\n')
- .map((str) => str.trimEnd()))
- .join('\n');
-}
-/**
- * Returns the width of the active readline, or 80 as default value.
- * @returns {number}
- */
-export function readlineWidth() {
- return cliWidth({ defaultWidth: 80, output: readline().output });
-}
diff --git a/node_modules/@inquirer/core/dist/esm/package.json b/node_modules/@inquirer/core/dist/esm/package.json
deleted file mode 100755
index 3dbc1ca..0000000
--- a/node_modules/@inquirer/core/dist/esm/package.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "type": "module"
-}
diff --git a/node_modules/@inquirer/core/package.json b/node_modules/@inquirer/core/package.json
deleted file mode 100755
index 0e2ae07..0000000
--- a/node_modules/@inquirer/core/package.json
+++ /dev/null
@@ -1,118 +0,0 @@
-{
- "name": "@inquirer/core",
- "version": "10.1.15",
- "description": "Core Inquirer prompt API",
- "keywords": [
- "answer",
- "answers",
- "ask",
- "base",
- "cli",
- "command",
- "command-line",
- "confirm",
- "enquirer",
- "generate",
- "generator",
- "hyper",
- "input",
- "inquire",
- "inquirer",
- "interface",
- "iterm",
- "javascript",
- "menu",
- "node",
- "nodejs",
- "prompt",
- "promptly",
- "prompts",
- "question",
- "readline",
- "scaffold",
- "scaffolder",
- "scaffolding",
- "stdin",
- "stdout",
- "terminal",
- "tty",
- "ui",
- "yeoman",
- "yo",
- "zsh"
- ],
- "homepage": "https://github.com/SBoudrias/Inquirer.js/blob/main/packages/core/README.md",
- "repository": {
- "type": "git",
- "url": "https://github.com/SBoudrias/Inquirer.js.git"
- },
- "license": "MIT",
- "author": "Simon Boudrias ",
- "sideEffects": false,
- "type": "module",
- "exports": {
- "./package.json": "./package.json",
- ".": {
- "import": {
- "types": "./dist/esm/index.d.ts",
- "default": "./dist/esm/index.js"
- },
- "require": {
- "types": "./dist/commonjs/index.d.ts",
- "default": "./dist/commonjs/index.js"
- }
- }
- },
- "main": "./dist/commonjs/index.js",
- "module": "./dist/esm/index.js",
- "types": "./dist/commonjs/index.d.ts",
- "files": [
- "dist"
- ],
- "scripts": {
- "attw": "attw --pack",
- "tsc": "tshy"
- },
- "dependencies": {
- "@inquirer/figures": "^1.0.13",
- "@inquirer/type": "^3.0.8",
- "ansi-escapes": "^4.3.2",
- "cli-width": "^4.1.0",
- "mute-stream": "^2.0.0",
- "signal-exit": "^4.1.0",
- "wrap-ansi": "^6.2.0",
- "yoctocolors-cjs": "^2.1.2"
- },
- "devDependencies": {
- "@arethetypeswrong/cli": "^0.18.2",
- "@inquirer/testing": "^2.1.49",
- "@types/mute-stream": "^0.0.4",
- "@types/node": "^24.0.15",
- "@types/wrap-ansi": "^3.0.0",
- "tshy": "^3.0.2"
- },
- "peerDependencies": {
- "@types/node": ">=18"
- },
- "peerDependenciesMeta": {
- "@types/node": {
- "optional": true
- }
- },
- "engines": {
- "node": ">=18"
- },
- "publishConfig": {
- "access": "public"
- },
- "tshy": {
- "exclude": [
- "src/**/*.test.ts"
- ],
- "exports": {
- "./package.json": "./package.json",
- ".": "./src/index.ts"
- }
- },
- "gitHead": "c1a755fe8b50377b685ea5951e0794985ce8d356"
-}
diff --git a/node_modules/@inquirer/editor/LICENSE b/node_modules/@inquirer/editor/LICENSE
deleted file mode 100755
index f718698..0000000
--- a/node_modules/@inquirer/editor/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-Copyright (c) 2025 Simon Boudrias
-
-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:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-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.
diff --git a/node_modules/@inquirer/editor/README.md b/node_modules/@inquirer/editor/README.md
deleted file mode 100755
index c6d67be..0000000
--- a/node_modules/@inquirer/editor/README.md
+++ /dev/null
@@ -1,111 +0,0 @@
-# `@inquirer/editor`
-
-Prompt that'll open the user preferred editor with default content and allow for a convenient multi-line input controlled through the command line.
-
-The editor launched is the one [defined by the user's `EDITOR` environment variable](https://dev.to/jonasbn/til-integrate-visual-studio-code-with-shell--cli-2l1l).
-
-# Special Thanks
-
-
-
-[](https://graphite.dev/?utm_source=npmjs&utm_medium=repo&utm_campaign=inquirerjs)
-
-### [Graphite is the AI developer productivity platform helping teams on GitHub ship higher quality software, faster](https://graphite.dev/?utm_source=npmjs&utm_medium=repo&utm_campaign=inquirerjs)
-
-
-
-# Installation
-
-
-
- npm |
- yarn |
-
-
-
-
-```sh
-npm install @inquirer/prompts
-```
-
- |
-
-
-```sh
-yarn add @inquirer/prompts
-```
-
- |
-
-
-Or |
-
-
-
-
-```sh
-npm install @inquirer/editor
-```
-
- |
-
-
-```sh
-yarn add @inquirer/editor
-```
-
- |
-
-
-
-# Usage
-
-```js
-import { editor } from '@inquirer/prompts';
-// Or
-// import editor from '@inquirer/editor';
-
-const answer = await editor({
- message: 'Enter a description',
-});
-```
-
-## Options
-
-| Property | Type | Required | Description |
-| --------------- | ------------------------------------------------------------------------------ | ---------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| message | `string` | yes | The question to ask |
-| default | `string` | no | Default value which will automatically be present in the editor |
-| validate | `string => boolean \| string \| Promise` | no | On submit, validate the content. When returning a string, it'll be used as the error message displayed to the user. Note: returning a rejected promise, we'll assume a code error happened and crash. |
-| postfix | `string` | no (default to `.txt`) | The postfix of the file being edited. Adding this will add color highlighting to the file content in most editors. |
-| file | [`IFileOptions`](https://github.com/mrkmg/node-external-editor#config-options) | no | Exposes the [`external-editor` package options](https://github.com/mrkmg/node-external-editor#config-options) to configure the temporary file. |
-| waitForUseInput | `boolean` | no (default to `true`) | Open the editor automatically without waiting for the user to press enter. Note that this mean the user will not see the question! So make sure you have a default value that provide guidance if it's unclear what input is expected. |
-| theme | [See Theming](#Theming) | no | Customize look of the prompt. |
-
-## Theming
-
-You can theme a prompt by passing a `theme` object option. The theme object only need to includes the keys you wish to modify, we'll fallback on the defaults for the rest.
-
-```ts
-type Theme = {
- prefix: string | { idle: string; done: string };
- spinner: {
- interval: number;
- frames: string[];
- };
- style: {
- message: (text: string, status: 'idle' | 'done' | 'loading') => string;
- error: (text: string) => string;
- help: (text: string) => string;
- key: (text: string) => string;
- };
- validationFailureMode: 'keep' | 'clear';
-};
-```
-
-`validationFailureMode` defines the behavior of the prompt when the value submitted is invalid. By default, we'll keep the value allowing the user to edit it. When the theme option is set to `clear`, we'll remove and reset to the default value or empty string.
-
-# License
-
-Copyright (c) 2023 Simon Boudrias (twitter: [@vaxilart](https://twitter.com/Vaxilart))
-Licensed under the MIT license.
diff --git a/node_modules/@inquirer/editor/dist/commonjs/index.d.ts b/node_modules/@inquirer/editor/dist/commonjs/index.d.ts
deleted file mode 100755
index 8cbb981..0000000
--- a/node_modules/@inquirer/editor/dist/commonjs/index.d.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-import { IFileOptions } from '@inquirer/external-editor';
-import { type Theme } from '@inquirer/core';
-import type { PartialDeep } from '@inquirer/type';
-type EditorTheme = {
- validationFailureMode: 'keep' | 'clear';
-};
-type EditorConfig = {
- message: string;
- default?: string;
- postfix?: string;
- waitForUseInput?: boolean;
- validate?: (value: string) => boolean | string | Promise;
- file?: IFileOptions;
- theme?: PartialDeep>;
-};
-declare const _default: import("@inquirer/type").Prompt;
-export default _default;
diff --git a/node_modules/@inquirer/editor/dist/commonjs/index.js b/node_modules/@inquirer/editor/dist/commonjs/index.js
deleted file mode 100755
index ed85f3c..0000000
--- a/node_modules/@inquirer/editor/dist/commonjs/index.js
+++ /dev/null
@@ -1,76 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-const external_editor_1 = require("@inquirer/external-editor");
-const core_1 = require("@inquirer/core");
-const editorTheme = {
- validationFailureMode: 'keep',
-};
-exports.default = (0, core_1.createPrompt)((config, done) => {
- const { waitForUseInput = true, file: { postfix = config.postfix ?? '.txt', ...fileProps } = {}, validate = () => true, } = config;
- const theme = (0, core_1.makeTheme)(editorTheme, config.theme);
- const [status, setStatus] = (0, core_1.useState)('idle');
- const [value = '', setValue] = (0, core_1.useState)(config.default);
- const [errorMsg, setError] = (0, core_1.useState)();
- const prefix = (0, core_1.usePrefix)({ status, theme });
- function startEditor(rl) {
- rl.pause();
- const editCallback = async (error, answer) => {
- rl.resume();
- if (error) {
- setError(error.toString());
- }
- else {
- setStatus('loading');
- const finalAnswer = answer ?? '';
- const isValid = await validate(finalAnswer);
- if (isValid === true) {
- setError(undefined);
- setStatus('done');
- done(finalAnswer);
- }
- else {
- if (theme.validationFailureMode === 'clear') {
- setValue(config.default);
- }
- else {
- setValue(finalAnswer);
- }
- setError(isValid || 'You must provide a valid value');
- setStatus('idle');
- }
- }
- };
- (0, external_editor_1.editAsync)(value, (error, answer) => void editCallback(error, answer), {
- postfix,
- ...fileProps,
- });
- }
- (0, core_1.useEffect)((rl) => {
- if (!waitForUseInput) {
- startEditor(rl);
- }
- }, []);
- (0, core_1.useKeypress)((key, rl) => {
- // Ignore keypress while our prompt is doing other processing.
- if (status !== 'idle') {
- return;
- }
- if ((0, core_1.isEnterKey)(key)) {
- startEditor(rl);
- }
- });
- const message = theme.style.message(config.message, status);
- let helpTip = '';
- if (status === 'loading') {
- helpTip = theme.style.help('Received');
- }
- else if (status === 'idle') {
- const enterKey = theme.style.key('enter');
- helpTip = theme.style.help(`Press ${enterKey} to launch your preferred editor.`);
- }
- let error = '';
- if (errorMsg) {
- error = theme.style.error(errorMsg);
- }
- return [[prefix, message, helpTip].filter(Boolean).join(' '), error];
-});
diff --git a/node_modules/@inquirer/editor/dist/commonjs/package.json b/node_modules/@inquirer/editor/dist/commonjs/package.json
deleted file mode 100755
index 5bbefff..0000000
--- a/node_modules/@inquirer/editor/dist/commonjs/package.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "type": "commonjs"
-}
diff --git a/node_modules/@inquirer/editor/dist/esm/index.d.ts b/node_modules/@inquirer/editor/dist/esm/index.d.ts
deleted file mode 100755
index 8cbb981..0000000
--- a/node_modules/@inquirer/editor/dist/esm/index.d.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-import { IFileOptions } from '@inquirer/external-editor';
-import { type Theme } from '@inquirer/core';
-import type { PartialDeep } from '@inquirer/type';
-type EditorTheme = {
- validationFailureMode: 'keep' | 'clear';
-};
-type EditorConfig = {
- message: string;
- default?: string;
- postfix?: string;
- waitForUseInput?: boolean;
- validate?: (value: string) => boolean | string | Promise;
- file?: IFileOptions;
- theme?: PartialDeep>;
-};
-declare const _default: import("@inquirer/type").Prompt;
-export default _default;
diff --git a/node_modules/@inquirer/editor/dist/esm/index.js b/node_modules/@inquirer/editor/dist/esm/index.js
deleted file mode 100755
index 396a70f..0000000
--- a/node_modules/@inquirer/editor/dist/esm/index.js
+++ /dev/null
@@ -1,74 +0,0 @@
-import { editAsync } from '@inquirer/external-editor';
-import { createPrompt, useEffect, useState, useKeypress, usePrefix, isEnterKey, makeTheme, } from '@inquirer/core';
-const editorTheme = {
- validationFailureMode: 'keep',
-};
-export default createPrompt((config, done) => {
- const { waitForUseInput = true, file: { postfix = config.postfix ?? '.txt', ...fileProps } = {}, validate = () => true, } = config;
- const theme = makeTheme(editorTheme, config.theme);
- const [status, setStatus] = useState('idle');
- const [value = '', setValue] = useState(config.default);
- const [errorMsg, setError] = useState();
- const prefix = usePrefix({ status, theme });
- function startEditor(rl) {
- rl.pause();
- const editCallback = async (error, answer) => {
- rl.resume();
- if (error) {
- setError(error.toString());
- }
- else {
- setStatus('loading');
- const finalAnswer = answer ?? '';
- const isValid = await validate(finalAnswer);
- if (isValid === true) {
- setError(undefined);
- setStatus('done');
- done(finalAnswer);
- }
- else {
- if (theme.validationFailureMode === 'clear') {
- setValue(config.default);
- }
- else {
- setValue(finalAnswer);
- }
- setError(isValid || 'You must provide a valid value');
- setStatus('idle');
- }
- }
- };
- editAsync(value, (error, answer) => void editCallback(error, answer), {
- postfix,
- ...fileProps,
- });
- }
- useEffect((rl) => {
- if (!waitForUseInput) {
- startEditor(rl);
- }
- }, []);
- useKeypress((key, rl) => {
- // Ignore keypress while our prompt is doing other processing.
- if (status !== 'idle') {
- return;
- }
- if (isEnterKey(key)) {
- startEditor(rl);
- }
- });
- const message = theme.style.message(config.message, status);
- let helpTip = '';
- if (status === 'loading') {
- helpTip = theme.style.help('Received');
- }
- else if (status === 'idle') {
- const enterKey = theme.style.key('enter');
- helpTip = theme.style.help(`Press ${enterKey} to launch your preferred editor.`);
- }
- let error = '';
- if (errorMsg) {
- error = theme.style.error(errorMsg);
- }
- return [[prefix, message, helpTip].filter(Boolean).join(' '), error];
-});
diff --git a/node_modules/@inquirer/editor/dist/esm/package.json b/node_modules/@inquirer/editor/dist/esm/package.json
deleted file mode 100755
index 3dbc1ca..0000000
--- a/node_modules/@inquirer/editor/dist/esm/package.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "type": "module"
-}
diff --git a/node_modules/@inquirer/editor/package.json b/node_modules/@inquirer/editor/package.json
deleted file mode 100755
index ddcafa1..0000000
--- a/node_modules/@inquirer/editor/package.json
+++ /dev/null
@@ -1,110 +0,0 @@
-{
- "name": "@inquirer/editor",
- "version": "4.2.16",
- "description": "Inquirer multiline editor prompt",
- "keywords": [
- "answer",
- "answers",
- "ask",
- "base",
- "cli",
- "command",
- "command-line",
- "confirm",
- "enquirer",
- "generate",
- "generator",
- "hyper",
- "input",
- "inquire",
- "inquirer",
- "interface",
- "iterm",
- "javascript",
- "menu",
- "node",
- "nodejs",
- "prompt",
- "promptly",
- "prompts",
- "question",
- "readline",
- "scaffold",
- "scaffolder",
- "scaffolding",
- "stdin",
- "stdout",
- "terminal",
- "tty",
- "ui",
- "yeoman",
- "yo",
- "zsh"
- ],
- "homepage": "https://github.com/SBoudrias/Inquirer.js/blob/main/packages/editor/README.md",
- "repository": {
- "type": "git",
- "url": "https://github.com/SBoudrias/Inquirer.js.git"
- },
- "license": "MIT",
- "author": "Simon Boudrias ",
- "sideEffects": false,
- "type": "module",
- "exports": {
- "./package.json": "./package.json",
- ".": {
- "import": {
- "types": "./dist/esm/index.d.ts",
- "default": "./dist/esm/index.js"
- },
- "require": {
- "types": "./dist/commonjs/index.d.ts",
- "default": "./dist/commonjs/index.js"
- }
- }
- },
- "main": "./dist/commonjs/index.js",
- "module": "./dist/esm/index.js",
- "types": "./dist/commonjs/index.d.ts",
- "files": [
- "dist"
- ],
- "scripts": {
- "attw": "attw --pack",
- "tsc": "tshy"
- },
- "dependencies": {
- "@inquirer/core": "^10.1.15",
- "@inquirer/external-editor": "^1.0.0",
- "@inquirer/type": "^3.0.8"
- },
- "devDependencies": {
- "@arethetypeswrong/cli": "^0.18.2",
- "@inquirer/testing": "^2.1.49",
- "tshy": "^3.0.2"
- },
- "engines": {
- "node": ">=18"
- },
- "publishConfig": {
- "access": "public"
- },
- "tshy": {
- "exclude": [
- "src/**/*.test.ts"
- ],
- "exports": {
- "./package.json": "./package.json",
- ".": "./src/index.ts"
- }
- },
- "peerDependencies": {
- "@types/node": ">=18"
- },
- "peerDependenciesMeta": {
- "@types/node": {
- "optional": true
- }
- },
- "gitHead": "15b1e9c929abf5a46930e825e5fbafc50a9f31f6"
-}
diff --git a/node_modules/@inquirer/expand/LICENSE b/node_modules/@inquirer/expand/LICENSE
deleted file mode 100755
index f718698..0000000
--- a/node_modules/@inquirer/expand/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-Copyright (c) 2025 Simon Boudrias
-
-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:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-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.
diff --git a/node_modules/@inquirer/expand/README.md b/node_modules/@inquirer/expand/README.md
deleted file mode 100755
index 047e5e6..0000000
--- a/node_modules/@inquirer/expand/README.md
+++ /dev/null
@@ -1,151 +0,0 @@
-# `@inquirer/expand`
-
-Compact single select prompt. Every option is assigned a shortcut key, and selecting `h` will expand all the choices and their descriptions.
-
-
-
-
-# Special Thanks
-
-
-
-[](https://graphite.dev/?utm_source=npmjs&utm_medium=repo&utm_campaign=inquirerjs)
-
-### [Graphite is the AI developer productivity platform helping teams on GitHub ship higher quality software, faster](https://graphite.dev/?utm_source=npmjs&utm_medium=repo&utm_campaign=inquirerjs)
-
-
-
-# Installation
-
-
-
- npm |
- yarn |
-
-
-
-
-```sh
-npm install @inquirer/prompts
-```
-
- |
-
-
-```sh
-yarn add @inquirer/prompts
-```
-
- |
-
-
-Or |
-
-
-
-
-```sh
-npm install @inquirer/expand
-```
-
- |
-
-
-```sh
-yarn add @inquirer/expand
-```
-
- |
-
-
-
-# Usage
-
-```js
-import { expand } from '@inquirer/prompts';
-// Or
-// import expand from '@inquirer/expand';
-
-const answer = await expand({
- message: 'Conflict on file.js',
- default: 'y',
- choices: [
- {
- key: 'y',
- name: 'Overwrite',
- value: 'overwrite',
- },
- {
- key: 'a',
- name: 'Overwrite this one and all next',
- value: 'overwrite_all',
- },
- {
- key: 'd',
- name: 'Show diff',
- value: 'diff',
- },
- {
- key: 'x',
- name: 'Abort',
- value: 'abort',
- },
- ],
-});
-```
-
-## Options
-
-| Property | Type | Required | Description |
-| -------- | ----------------------- | -------- | ----------------------------------------------------------------------------------------- |
-| message | `string` | yes | The question to ask |
-| choices | `Choice[]` | yes | Array of the different allowed choices. The `h`/help option is always provided by default |
-| default | `string` | no | Default choices to be selected. (value must be one of the choices `key`) |
-| expanded | `boolean` | no | Expand the choices by default |
-| theme | [See Theming](#Theming) | no | Customize look of the prompt. |
-
-`Separator` objects can be used in the `choices` array to render non-selectable lines in the choice list. By default it'll render a line, but you can provide the text as argument (`new Separator('-- Dependencies --')`). This option is often used to add labels to groups within long list of options.
-
-### `Choice` object
-
-The `Choice` object is typed as
-
-```ts
-type Choice = {
- value: Value;
- name?: string;
- key: string;
-};
-```
-
-Here's each property:
-
-- `value`: The value is what will be returned by `await expand()`.
-- `name`: The string displayed in the choice list. It'll default to the stringify `value`.
-- `key`: The input the use must provide to select the choice. Must be a lowercase single alpha-numeric character string.
-
-## Theming
-
-You can theme a prompt by passing a `theme` object option. The theme object only need to includes the keys you wish to modify, we'll fallback on the defaults for the rest.
-
-```ts
-type Theme = {
- prefix: string | { idle: string; done: string };
- spinner: {
- interval: number;
- frames: string[];
- };
- style: {
- answer: (text: string) => string;
- message: (text: string, status: 'idle' | 'done' | 'loading') => string;
- error: (text: string) => string;
- defaultAnswer: (text: string) => string;
- highlight: (text: string) => string;
- };
-};
-```
-
-# License
-
-Copyright (c) 2023 Simon Boudrias (twitter: [@vaxilart](https://twitter.com/Vaxilart))
-Licensed under the MIT license.
diff --git a/node_modules/@inquirer/expand/dist/commonjs/index.d.ts b/node_modules/@inquirer/expand/dist/commonjs/index.d.ts
deleted file mode 100755
index faf906e..0000000
--- a/node_modules/@inquirer/expand/dist/commonjs/index.d.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-import { Separator, type Theme } from '@inquirer/core';
-import type { PartialDeep } from '@inquirer/type';
-type Key = 'a' | 'b' | 'c' | 'd' | 'e' | 'f' | 'g' | 'i' | 'j' | 'k' | 'l' | 'm' | 'n' | 'o' | 'p' | 'q' | 'r' | 's' | 't' | 'u' | 'v' | 'w' | 'x' | 'y' | 'z' | '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9';
-type Choice = {
- key: Key;
- value: Value;
-} | {
- key: Key;
- name: string;
- value: Value;
-};
-declare const _default: (config: {
- message: string;
- choices: readonly {
- key: Key;
- name: string;
- }[] | readonly (Separator | Choice)[];
- default?: (Key | "h") | undefined;
- expanded?: boolean | undefined;
- theme?: PartialDeep | undefined;
-}, context?: import("@inquirer/type").Context) => Promise & {
- cancel: () => void;
-};
-export default _default;
-export { Separator } from '@inquirer/core';
diff --git a/node_modules/@inquirer/expand/dist/commonjs/index.js b/node_modules/@inquirer/expand/dist/commonjs/index.js
deleted file mode 100755
index c925548..0000000
--- a/node_modules/@inquirer/expand/dist/commonjs/index.js
+++ /dev/null
@@ -1,115 +0,0 @@
-"use strict";
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.Separator = void 0;
-const core_1 = require("@inquirer/core");
-const yoctocolors_cjs_1 = __importDefault(require("yoctocolors-cjs"));
-function normalizeChoices(choices) {
- return choices.map((choice) => {
- if (core_1.Separator.isSeparator(choice)) {
- return choice;
- }
- const name = 'name' in choice ? choice.name : String(choice.value);
- const value = 'value' in choice ? choice.value : name;
- return {
- value: value,
- name,
- key: choice.key.toLowerCase(),
- };
- });
-}
-const helpChoice = {
- key: 'h',
- name: 'Help, list all options',
- value: undefined,
-};
-exports.default = (0, core_1.createPrompt)((config, done) => {
- const { default: defaultKey = 'h' } = config;
- const choices = (0, core_1.useMemo)(() => normalizeChoices(config.choices), [config.choices]);
- const [status, setStatus] = (0, core_1.useState)('idle');
- const [value, setValue] = (0, core_1.useState)('');
- const [expanded, setExpanded] = (0, core_1.useState)(config.expanded ?? false);
- const [errorMsg, setError] = (0, core_1.useState)();
- const theme = (0, core_1.makeTheme)(config.theme);
- const prefix = (0, core_1.usePrefix)({ theme, status });
- (0, core_1.useKeypress)((event, rl) => {
- if ((0, core_1.isEnterKey)(event)) {
- const answer = (value || defaultKey).toLowerCase();
- if (answer === 'h' && !expanded) {
- setExpanded(true);
- }
- else {
- const selectedChoice = choices.find((choice) => !core_1.Separator.isSeparator(choice) && choice.key === answer);
- if (selectedChoice) {
- setStatus('done');
- // Set the value as we might've selected the default one.
- setValue(answer);
- done(selectedChoice.value);
- }
- else if (value === '') {
- setError('Please input a value');
- }
- else {
- setError(`"${yoctocolors_cjs_1.default.red(value)}" isn't an available option`);
- }
- }
- }
- else {
- setValue(rl.line);
- setError(undefined);
- }
- });
- const message = theme.style.message(config.message, status);
- if (status === 'done') {
- // If the prompt is done, it's safe to assume there is a selected value.
- const selectedChoice = choices.find((choice) => !core_1.Separator.isSeparator(choice) && choice.key === value.toLowerCase());
- return `${prefix} ${message} ${theme.style.answer(selectedChoice.name)}`;
- }
- const allChoices = expanded ? choices : [...choices, helpChoice];
- // Collapsed display style
- let longChoices = '';
- let shortChoices = allChoices
- .map((choice) => {
- if (core_1.Separator.isSeparator(choice))
- return '';
- if (choice.key === defaultKey) {
- return choice.key.toUpperCase();
- }
- return choice.key;
- })
- .join('');
- shortChoices = ` ${theme.style.defaultAnswer(shortChoices)}`;
- // Expanded display style
- if (expanded) {
- shortChoices = '';
- longChoices = allChoices
- .map((choice) => {
- if (core_1.Separator.isSeparator(choice)) {
- return ` ${choice.separator}`;
- }
- const line = ` ${choice.key}) ${choice.name}`;
- if (choice.key === value.toLowerCase()) {
- return theme.style.highlight(line);
- }
- return line;
- })
- .join('\n');
- }
- let helpTip = '';
- const currentOption = choices.find((choice) => !core_1.Separator.isSeparator(choice) && choice.key === value.toLowerCase());
- if (currentOption) {
- helpTip = `${yoctocolors_cjs_1.default.cyan('>>')} ${currentOption.name}`;
- }
- let error = '';
- if (errorMsg) {
- error = theme.style.error(errorMsg);
- }
- return [
- `${prefix} ${message}${shortChoices} ${value}`,
- [longChoices, helpTip, error].filter(Boolean).join('\n'),
- ];
-});
-var core_2 = require("@inquirer/core");
-Object.defineProperty(exports, "Separator", { enumerable: true, get: function () { return core_2.Separator; } });
diff --git a/node_modules/@inquirer/expand/dist/commonjs/package.json b/node_modules/@inquirer/expand/dist/commonjs/package.json
deleted file mode 100755
index 5bbefff..0000000
--- a/node_modules/@inquirer/expand/dist/commonjs/package.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "type": "commonjs"
-}
diff --git a/node_modules/@inquirer/expand/dist/esm/index.d.ts b/node_modules/@inquirer/expand/dist/esm/index.d.ts
deleted file mode 100755
index faf906e..0000000
--- a/node_modules/@inquirer/expand/dist/esm/index.d.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-import { Separator, type Theme } from '@inquirer/core';
-import type { PartialDeep } from '@inquirer/type';
-type Key = 'a' | 'b' | 'c' | 'd' | 'e' | 'f' | 'g' | 'i' | 'j' | 'k' | 'l' | 'm' | 'n' | 'o' | 'p' | 'q' | 'r' | 's' | 't' | 'u' | 'v' | 'w' | 'x' | 'y' | 'z' | '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9';
-type Choice = {
- key: Key;
- value: Value;
-} | {
- key: Key;
- name: string;
- value: Value;
-};
-declare const _default: (config: {
- message: string;
- choices: readonly {
- key: Key;
- name: string;
- }[] | readonly (Separator | Choice)[];
- default?: (Key | "h") | undefined;
- expanded?: boolean | undefined;
- theme?: PartialDeep | undefined;
-}, context?: import("@inquirer/type").Context) => Promise & {
- cancel: () => void;
-};
-export default _default;
-export { Separator } from '@inquirer/core';
diff --git a/node_modules/@inquirer/expand/dist/esm/index.js b/node_modules/@inquirer/expand/dist/esm/index.js
deleted file mode 100755
index 9b1f849..0000000
--- a/node_modules/@inquirer/expand/dist/esm/index.js
+++ /dev/null
@@ -1,108 +0,0 @@
-import { createPrompt, useMemo, useState, useKeypress, usePrefix, isEnterKey, makeTheme, Separator, } from '@inquirer/core';
-import colors from 'yoctocolors-cjs';
-function normalizeChoices(choices) {
- return choices.map((choice) => {
- if (Separator.isSeparator(choice)) {
- return choice;
- }
- const name = 'name' in choice ? choice.name : String(choice.value);
- const value = 'value' in choice ? choice.value : name;
- return {
- value: value,
- name,
- key: choice.key.toLowerCase(),
- };
- });
-}
-const helpChoice = {
- key: 'h',
- name: 'Help, list all options',
- value: undefined,
-};
-export default createPrompt((config, done) => {
- const { default: defaultKey = 'h' } = config;
- const choices = useMemo(() => normalizeChoices(config.choices), [config.choices]);
- const [status, setStatus] = useState('idle');
- const [value, setValue] = useState('');
- const [expanded, setExpanded] = useState(config.expanded ?? false);
- const [errorMsg, setError] = useState();
- const theme = makeTheme(config.theme);
- const prefix = usePrefix({ theme, status });
- useKeypress((event, rl) => {
- if (isEnterKey(event)) {
- const answer = (value || defaultKey).toLowerCase();
- if (answer === 'h' && !expanded) {
- setExpanded(true);
- }
- else {
- const selectedChoice = choices.find((choice) => !Separator.isSeparator(choice) && choice.key === answer);
- if (selectedChoice) {
- setStatus('done');
- // Set the value as we might've selected the default one.
- setValue(answer);
- done(selectedChoice.value);
- }
- else if (value === '') {
- setError('Please input a value');
- }
- else {
- setError(`"${colors.red(value)}" isn't an available option`);
- }
- }
- }
- else {
- setValue(rl.line);
- setError(undefined);
- }
- });
- const message = theme.style.message(config.message, status);
- if (status === 'done') {
- // If the prompt is done, it's safe to assume there is a selected value.
- const selectedChoice = choices.find((choice) => !Separator.isSeparator(choice) && choice.key === value.toLowerCase());
- return `${prefix} ${message} ${theme.style.answer(selectedChoice.name)}`;
- }
- const allChoices = expanded ? choices : [...choices, helpChoice];
- // Collapsed display style
- let longChoices = '';
- let shortChoices = allChoices
- .map((choice) => {
- if (Separator.isSeparator(choice))
- return '';
- if (choice.key === defaultKey) {
- return choice.key.toUpperCase();
- }
- return choice.key;
- })
- .join('');
- shortChoices = ` ${theme.style.defaultAnswer(shortChoices)}`;
- // Expanded display style
- if (expanded) {
- shortChoices = '';
- longChoices = allChoices
- .map((choice) => {
- if (Separator.isSeparator(choice)) {
- return ` ${choice.separator}`;
- }
- const line = ` ${choice.key}) ${choice.name}`;
- if (choice.key === value.toLowerCase()) {
- return theme.style.highlight(line);
- }
- return line;
- })
- .join('\n');
- }
- let helpTip = '';
- const currentOption = choices.find((choice) => !Separator.isSeparator(choice) && choice.key === value.toLowerCase());
- if (currentOption) {
- helpTip = `${colors.cyan('>>')} ${currentOption.name}`;
- }
- let error = '';
- if (errorMsg) {
- error = theme.style.error(errorMsg);
- }
- return [
- `${prefix} ${message}${shortChoices} ${value}`,
- [longChoices, helpTip, error].filter(Boolean).join('\n'),
- ];
-});
-export { Separator } from '@inquirer/core';
diff --git a/node_modules/@inquirer/expand/dist/esm/package.json b/node_modules/@inquirer/expand/dist/esm/package.json
deleted file mode 100755
index 3dbc1ca..0000000
--- a/node_modules/@inquirer/expand/dist/esm/package.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "type": "module"
-}
diff --git a/node_modules/@inquirer/expand/package.json b/node_modules/@inquirer/expand/package.json
deleted file mode 100755
index 1f38b0a..0000000
--- a/node_modules/@inquirer/expand/package.json
+++ /dev/null
@@ -1,110 +0,0 @@
-{
- "name": "@inquirer/expand",
- "version": "4.0.17",
- "description": "Inquirer checkbox prompt",
- "keywords": [
- "answer",
- "answers",
- "ask",
- "base",
- "cli",
- "command",
- "command-line",
- "confirm",
- "enquirer",
- "generate",
- "generator",
- "hyper",
- "input",
- "inquire",
- "inquirer",
- "interface",
- "iterm",
- "javascript",
- "menu",
- "node",
- "nodejs",
- "prompt",
- "promptly",
- "prompts",
- "question",
- "readline",
- "scaffold",
- "scaffolder",
- "scaffolding",
- "stdin",
- "stdout",
- "terminal",
- "tty",
- "ui",
- "yeoman",
- "yo",
- "zsh"
- ],
- "homepage": "https://github.com/SBoudrias/Inquirer.js/blob/main/packages/expand/README.md",
- "repository": {
- "type": "git",
- "url": "https://github.com/SBoudrias/Inquirer.js.git"
- },
- "license": "MIT",
- "author": "Simon Boudrias ",
- "sideEffects": false,
- "type": "module",
- "exports": {
- "./package.json": "./package.json",
- ".": {
- "import": {
- "types": "./dist/esm/index.d.ts",
- "default": "./dist/esm/index.js"
- },
- "require": {
- "types": "./dist/commonjs/index.d.ts",
- "default": "./dist/commonjs/index.js"
- }
- }
- },
- "main": "./dist/commonjs/index.js",
- "module": "./dist/esm/index.js",
- "types": "./dist/commonjs/index.d.ts",
- "files": [
- "dist"
- ],
- "scripts": {
- "attw": "attw --pack",
- "tsc": "tshy"
- },
- "dependencies": {
- "@inquirer/core": "^10.1.15",
- "@inquirer/type": "^3.0.8",
- "yoctocolors-cjs": "^2.1.2"
- },
- "devDependencies": {
- "@arethetypeswrong/cli": "^0.18.2",
- "@inquirer/testing": "^2.1.49",
- "tshy": "^3.0.2"
- },
- "engines": {
- "node": ">=18"
- },
- "publishConfig": {
- "access": "public"
- },
- "tshy": {
- "exclude": [
- "src/**/*.test.ts"
- ],
- "exports": {
- "./package.json": "./package.json",
- ".": "./src/index.ts"
- }
- },
- "peerDependencies": {
- "@types/node": ">=18"
- },
- "peerDependenciesMeta": {
- "@types/node": {
- "optional": true
- }
- },
- "gitHead": "c1a755fe8b50377b685ea5951e0794985ce8d356"
-}
diff --git a/node_modules/@inquirer/external-editor/LICENSE b/node_modules/@inquirer/external-editor/LICENSE
deleted file mode 100755
index f718698..0000000
--- a/node_modules/@inquirer/external-editor/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-Copyright (c) 2025 Simon Boudrias
-
-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:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-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.
diff --git a/node_modules/@inquirer/external-editor/README.md b/node_modules/@inquirer/external-editor/README.md
deleted file mode 100755
index 254ca78..0000000
--- a/node_modules/@inquirer/external-editor/README.md
+++ /dev/null
@@ -1,151 +0,0 @@
-# `@inquirer/external-editor`
-
-A Node.js module to edit a string with the user's preferred text editor using $VISUAL or $EDITOR.
-
-# Installation
-
-
-
- npm |
- yarn |
-
-
-
-
-```sh
-npm install @inquirer/external-editor
-```
-
- |
-
-
-```sh
-yarn add @inquirer/external-editor
-```
-
- |
-
-
-
-## Usage
-
-A simple example using the `edit` function
-
-```ts
-import { edit } from '@inquirer/external-editor';
-
-const data = edit('\n\n# Please write your text above');
-console.log(data);
-```
-
-Example relying on the class construct
-
-```ts
-import {
- ExternalEditor,
- CreateFileError,
- ReadFileError,
- RemoveFileError,
- LaunchEditorError,
-} from '@inquirer/external-editor';
-
-try {
- const editor = new ExternalEditor();
- const text = editor.run(); // the text is also available in editor.text
-
- if (editor.lastExitStatus !== 0) {
- console.log('The editor exited with a non-zero code');
- }
-
- // Do things with the text
- editor.cleanup();
-} catch (err) {
- if (err instanceof CreateFileError) {
- console.log('Failed to create the temporary file');
- } else if (err instanceof ReadFileError) {
- console.log('Failed to read the temporary file');
- } else if (err instanceof LaunchEditorError) {
- console.log('Failed to launch your editor');
- } else if (err instanceof RemoveFileError) {
- console.log('Failed to remove the temporary file');
- } else {
- throw err;
- }
-}
-```
-
-#### API
-
-**Convenience Functions**
-
-- `edit(text, config)`
- - `text` (string) _Optional_ Defaults to empty string
- - `config` (Config) _Optional_ Options for temporary file creation
- - **Returns** (string) The contents of the file
- - Could throw `CreateFileError`, `ReadFileError`, or `LaunchEditorError`, or `RemoveFileError`
-- `editAsync(text, callback, config)`
- - `text` (string) _Optional_ Defaults to empty string
- - `callback` (function (error?, text?))
- - `error` could be of type `CreateFileError`, `ReadFileError`, `LaunchEditorError`, or `RemoveFileError`
- - `text` (string) The contents of the file
- - `config` (Config) _Optional_ Options for temporary file creation
-
-**Errors**
-
-- `CreateFileError` Error thrown if the temporary file could not be created.
-- `ReadFileError` Error thrown if the temporary file could not be read.
-- `RemoveFileError` Error thrown if the temporary file could not be removed during cleanup.
-- `LaunchEditorError` Error thrown if the editor could not be launched.
-
-**External Editor Public Methods**
-
-- `new ExternalEditor(text, config)`
- - `text` (string) _Optional_ Defaults to empty string
- - `config` (Config) _Optional_ Options for temporary file creation
- - Could throw `CreateFileError`
-- `run()` Launches the editor.
- - **Returns** (string) The contents of the file
- - Could throw `LaunchEditorError` or `ReadFileError`
-- `runAsync(callback)` Launches the editor in an async way
- - `callback` (function (error?, text?))
- - `error` could be of type `ReadFileError` or `LaunchEditorError`
- - `text` (string) The contents of the file
-- `cleanup()` Removes the temporary file.
- - Could throw `RemoveFileError`
-
-**External Editor Public Properties**
-
-- `text` (string) _readonly_ The text in the temporary file.
-- `editor.bin` (string) The editor determined from the environment.
-- `editor.args` (array) Default arguments for the bin
-- `tempFile` (string) Path to temporary file. Can be changed, but be careful as the temporary file probably already
- exists and would need be removed manually.
-- `lastExitStatus` (number) The last exit code emitted from the editor.
-
-**Config Options**
-
-- `prefix` (string) _Optional_ A prefix for the file name.
-- `postfix` (string) _Optional_ A postfix for the file name. Useful if you want to provide an extension.
-- `mode` (number) _Optional_ Which mode to create the file with. e.g. 644
-- `dir` (string) _Optional_ Which path to store the file.
-
-## Why Synchronous?
-
-Everything is synchronous to make sure the editor has complete control of the stdin and stdout. Testing has shown
-async launching of the editor can lead to issues when using readline or other packages which try to read from stdin or
-write to stdout. Seeing as this will be used in an interactive CLI environment, I made the decision to force the package
-to be synchronous. If you know a reliable way to force all stdin and stdout to be limited only to the child_process,
-please submit a PR.
-
-If async is really needed, you can use `editAsync` or `runAsync`. If you are using readline or have anything else
-listening to the stdin or you write to stdout, you will most likely have problem, so make sure to remove any other
-listeners on stdin, stdout, or stderr.
-
-## Demo
-
-[](https://asciinema.org/a/a1qh9lypbe65mj0ivfuoslz2s)
-
-# License
-
-Copyright (c) 2025 Simon Boudrias (twitter: [@vaxilart](https://twitter.com/Vaxilart))
-Licensed under the MIT license.
diff --git a/node_modules/@inquirer/external-editor/dist/commonjs/errors/CreateFileError.d.ts b/node_modules/@inquirer/external-editor/dist/commonjs/errors/CreateFileError.d.ts
deleted file mode 100755
index 0df1b3d..0000000
--- a/node_modules/@inquirer/external-editor/dist/commonjs/errors/CreateFileError.d.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-/***
- * Node External Editor
- *
- * Kevin Gravier
- * MIT 2018
- */
-export declare class CreateFileError extends Error {
- originalError: Error;
- constructor(originalError: Error);
-}
diff --git a/node_modules/@inquirer/external-editor/dist/commonjs/errors/CreateFileError.js b/node_modules/@inquirer/external-editor/dist/commonjs/errors/CreateFileError.js
deleted file mode 100755
index c2f2bea..0000000
--- a/node_modules/@inquirer/external-editor/dist/commonjs/errors/CreateFileError.js
+++ /dev/null
@@ -1,17 +0,0 @@
-"use strict";
-/***
- * Node External Editor
- *
- * Kevin Gravier
- * MIT 2018
- */
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.CreateFileError = void 0;
-class CreateFileError extends Error {
- originalError;
- constructor(originalError) {
- super(`Failed to create temporary file. ${originalError.message}`);
- this.originalError = originalError;
- }
-}
-exports.CreateFileError = CreateFileError;
diff --git a/node_modules/@inquirer/external-editor/dist/commonjs/errors/LaunchEditorError.d.ts b/node_modules/@inquirer/external-editor/dist/commonjs/errors/LaunchEditorError.d.ts
deleted file mode 100755
index 105077c..0000000
--- a/node_modules/@inquirer/external-editor/dist/commonjs/errors/LaunchEditorError.d.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-/***
- * Node External Editor
- *
- * Kevin Gravier
- * MIT 2018
- */
-export declare class LaunchEditorError extends Error {
- originalError: Error;
- constructor(originalError: Error);
-}
diff --git a/node_modules/@inquirer/external-editor/dist/commonjs/errors/LaunchEditorError.js b/node_modules/@inquirer/external-editor/dist/commonjs/errors/LaunchEditorError.js
deleted file mode 100755
index 741fede..0000000
--- a/node_modules/@inquirer/external-editor/dist/commonjs/errors/LaunchEditorError.js
+++ /dev/null
@@ -1,17 +0,0 @@
-"use strict";
-/***
- * Node External Editor
- *
- * Kevin Gravier
- * MIT 2018
- */
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.LaunchEditorError = void 0;
-class LaunchEditorError extends Error {
- originalError;
- constructor(originalError) {
- super(`Failed to launch editor. ${originalError.message}`);
- this.originalError = originalError;
- }
-}
-exports.LaunchEditorError = LaunchEditorError;
diff --git a/node_modules/@inquirer/external-editor/dist/commonjs/errors/ReadFileError.d.ts b/node_modules/@inquirer/external-editor/dist/commonjs/errors/ReadFileError.d.ts
deleted file mode 100755
index 438eae1..0000000
--- a/node_modules/@inquirer/external-editor/dist/commonjs/errors/ReadFileError.d.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-/***
- * Node External Editor
- *
- * Kevin Gravier
- * MIT 2018
- */
-export declare class ReadFileError extends Error {
- originalError: Error;
- constructor(originalError: Error);
-}
diff --git a/node_modules/@inquirer/external-editor/dist/commonjs/errors/ReadFileError.js b/node_modules/@inquirer/external-editor/dist/commonjs/errors/ReadFileError.js
deleted file mode 100755
index c6c7719..0000000
--- a/node_modules/@inquirer/external-editor/dist/commonjs/errors/ReadFileError.js
+++ /dev/null
@@ -1,17 +0,0 @@
-"use strict";
-/***
- * Node External Editor
- *
- * Kevin Gravier
- * MIT 2018
- */
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.ReadFileError = void 0;
-class ReadFileError extends Error {
- originalError;
- constructor(originalError) {
- super(`Failed to read temporary file. ${originalError.message}`);
- this.originalError = originalError;
- }
-}
-exports.ReadFileError = ReadFileError;
diff --git a/node_modules/@inquirer/external-editor/dist/commonjs/errors/RemoveFileError.d.ts b/node_modules/@inquirer/external-editor/dist/commonjs/errors/RemoveFileError.d.ts
deleted file mode 100755
index a6402e4..0000000
--- a/node_modules/@inquirer/external-editor/dist/commonjs/errors/RemoveFileError.d.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-/***
- * Node External Editor
- *
- * Kevin Gravier
- * MIT 2018
- */
-export declare class RemoveFileError extends Error {
- originalError: Error;
- constructor(originalError: Error);
-}
diff --git a/node_modules/@inquirer/external-editor/dist/commonjs/errors/RemoveFileError.js b/node_modules/@inquirer/external-editor/dist/commonjs/errors/RemoveFileError.js
deleted file mode 100755
index d1f8c94..0000000
--- a/node_modules/@inquirer/external-editor/dist/commonjs/errors/RemoveFileError.js
+++ /dev/null
@@ -1,17 +0,0 @@
-"use strict";
-/***
- * Node External Editor
- *
- * Kevin Gravier
- * MIT 2018
- */
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.RemoveFileError = void 0;
-class RemoveFileError extends Error {
- originalError;
- constructor(originalError) {
- super(`Failed to remove temporary file. ${originalError.message}`);
- this.originalError = originalError;
- }
-}
-exports.RemoveFileError = RemoveFileError;
diff --git a/node_modules/@inquirer/external-editor/dist/commonjs/index.d.ts b/node_modules/@inquirer/external-editor/dist/commonjs/index.d.ts
deleted file mode 100755
index 744ab30..0000000
--- a/node_modules/@inquirer/external-editor/dist/commonjs/index.d.ts
+++ /dev/null
@@ -1,39 +0,0 @@
-import { CreateFileError } from './errors/CreateFileError.js';
-import { LaunchEditorError } from './errors/LaunchEditorError.js';
-import { ReadFileError } from './errors/ReadFileError.js';
-import { RemoveFileError } from './errors/RemoveFileError.js';
-export interface IEditorParams {
- args: string[];
- bin: string;
-}
-export interface IFileOptions {
- prefix?: string;
- postfix?: string;
- mode?: number;
- template?: string;
- dir?: string;
-}
-export type StringCallback = (err: Error | undefined, result: string | undefined) => void;
-export type VoidCallback = () => void;
-export { CreateFileError, LaunchEditorError, ReadFileError, RemoveFileError };
-export declare function edit(text?: string, fileOptions?: IFileOptions): string;
-export declare function editAsync(text: string | undefined, callback: StringCallback, fileOptions?: IFileOptions): void;
-export declare class ExternalEditor {
- text: string;
- tempFile: string;
- editor: IEditorParams;
- lastExitStatus: number;
- private fileOptions;
- get temp_file(): string;
- get last_exit_status(): number;
- constructor(text?: string, fileOptions?: IFileOptions);
- run(): string;
- runAsync(callback: StringCallback): void;
- cleanup(): void;
- private determineEditor;
- private createTemporaryFile;
- private readTemporaryFile;
- private removeTemporaryFile;
- private launchEditor;
- private launchEditorAsync;
-}
diff --git a/node_modules/@inquirer/external-editor/dist/commonjs/index.js b/node_modules/@inquirer/external-editor/dist/commonjs/index.js
deleted file mode 100755
index 2d9c0ce..0000000
--- a/node_modules/@inquirer/external-editor/dist/commonjs/index.js
+++ /dev/null
@@ -1,203 +0,0 @@
-"use strict";
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.ExternalEditor = exports.RemoveFileError = exports.ReadFileError = exports.LaunchEditorError = exports.CreateFileError = void 0;
-exports.edit = edit;
-exports.editAsync = editAsync;
-const chardet_1 = require("chardet");
-const child_process_1 = require("child_process");
-const fs_1 = require("fs");
-const node_path_1 = __importDefault(require("node:path"));
-const node_os_1 = __importDefault(require("node:os"));
-const node_crypto_1 = require("node:crypto");
-const iconv_lite_1 = __importDefault(require("iconv-lite"));
-const CreateFileError_js_1 = require("./errors/CreateFileError.js");
-Object.defineProperty(exports, "CreateFileError", { enumerable: true, get: function () { return CreateFileError_js_1.CreateFileError; } });
-const LaunchEditorError_js_1 = require("./errors/LaunchEditorError.js");
-Object.defineProperty(exports, "LaunchEditorError", { enumerable: true, get: function () { return LaunchEditorError_js_1.LaunchEditorError; } });
-const ReadFileError_js_1 = require("./errors/ReadFileError.js");
-Object.defineProperty(exports, "ReadFileError", { enumerable: true, get: function () { return ReadFileError_js_1.ReadFileError; } });
-const RemoveFileError_js_1 = require("./errors/RemoveFileError.js");
-Object.defineProperty(exports, "RemoveFileError", { enumerable: true, get: function () { return RemoveFileError_js_1.RemoveFileError; } });
-function edit(text = '', fileOptions) {
- const editor = new ExternalEditor(text, fileOptions);
- editor.run();
- editor.cleanup();
- return editor.text;
-}
-function editAsync(text = '', callback, fileOptions) {
- const editor = new ExternalEditor(text, fileOptions);
- editor.runAsync((err, result) => {
- if (err) {
- setImmediate(callback, err, undefined);
- }
- else {
- try {
- editor.cleanup();
- setImmediate(callback, undefined, result);
- }
- catch (cleanupError) {
- setImmediate(callback, cleanupError, undefined);
- }
- }
- });
-}
-function sanitizeAffix(affix) {
- if (!affix)
- return '';
- return affix.replace(/[^a-zA-Z0-9_.-]/g, '_');
-}
-function splitStringBySpace(str) {
- const pieces = [];
- let currentString = '';
- for (let strIndex = 0; strIndex < str.length; strIndex++) {
- const currentLetter = str.charAt(strIndex);
- if (strIndex > 0 &&
- currentLetter === ' ' &&
- str[strIndex - 1] !== '\\' &&
- currentString.length > 0) {
- pieces.push(currentString);
- currentString = '';
- }
- else {
- currentString = `${currentString}${currentLetter}`;
- }
- }
- if (currentString.length > 0) {
- pieces.push(currentString);
- }
- return pieces;
-}
-class ExternalEditor {
- text = '';
- tempFile;
- editor;
- lastExitStatus = 0;
- fileOptions = {};
- get temp_file() {
- console.log('DEPRECATED: temp_file. Use tempFile moving forward.');
- return this.tempFile;
- }
- get last_exit_status() {
- console.log('DEPRECATED: last_exit_status. Use lastExitStatus moving forward.');
- return this.lastExitStatus;
- }
- constructor(text = '', fileOptions) {
- this.text = text;
- if (fileOptions) {
- this.fileOptions = fileOptions;
- }
- this.determineEditor();
- this.createTemporaryFile();
- }
- run() {
- this.launchEditor();
- this.readTemporaryFile();
- return this.text;
- }
- runAsync(callback) {
- try {
- this.launchEditorAsync(() => {
- try {
- this.readTemporaryFile();
- setImmediate(callback, undefined, this.text);
- }
- catch (readError) {
- setImmediate(callback, readError, undefined);
- }
- });
- }
- catch (launchError) {
- setImmediate(callback, launchError, undefined);
- }
- }
- cleanup() {
- this.removeTemporaryFile();
- }
- determineEditor() {
- const editor = process.env['VISUAL']
- ? process.env['VISUAL']
- : process.env['EDITOR']
- ? process.env['EDITOR']
- : process.platform.startsWith('win')
- ? 'notepad'
- : 'vim';
- const editorOpts = splitStringBySpace(editor).map((piece) => piece.replace('\\ ', ' '));
- const bin = editorOpts.shift();
- this.editor = { args: editorOpts, bin };
- }
- createTemporaryFile() {
- try {
- const baseDir = this.fileOptions.dir ?? node_os_1.default.tmpdir();
- const id = (0, node_crypto_1.randomUUID)();
- const prefix = sanitizeAffix(this.fileOptions.prefix);
- const postfix = sanitizeAffix(this.fileOptions.postfix);
- const filename = `${prefix}${id}${postfix}`;
- const candidate = node_path_1.default.resolve(baseDir, filename);
- const baseResolved = node_path_1.default.resolve(baseDir) + node_path_1.default.sep;
- if (!candidate.startsWith(baseResolved)) {
- throw new Error('Resolved temporary file escaped the base directory');
- }
- this.tempFile = candidate;
- const opt = { encoding: 'utf8', flag: 'wx' };
- if (Object.prototype.hasOwnProperty.call(this.fileOptions, 'mode')) {
- opt.mode = this.fileOptions.mode;
- }
- (0, fs_1.writeFileSync)(this.tempFile, this.text, opt);
- }
- catch (createFileError) {
- throw new CreateFileError_js_1.CreateFileError(createFileError);
- }
- }
- readTemporaryFile() {
- try {
- const tempFileBuffer = (0, fs_1.readFileSync)(this.tempFile);
- if (tempFileBuffer.length === 0) {
- this.text = '';
- }
- else {
- let encoding = (0, chardet_1.detect)(tempFileBuffer) ?? 'utf8';
- if (!iconv_lite_1.default.encodingExists(encoding)) {
- // Probably a bad idea, but will at least prevent crashing
- encoding = 'utf8';
- }
- this.text = iconv_lite_1.default.decode(tempFileBuffer, encoding);
- }
- }
- catch (readFileError) {
- throw new ReadFileError_js_1.ReadFileError(readFileError);
- }
- }
- removeTemporaryFile() {
- try {
- (0, fs_1.unlinkSync)(this.tempFile);
- }
- catch (removeFileError) {
- throw new RemoveFileError_js_1.RemoveFileError(removeFileError);
- }
- }
- launchEditor() {
- try {
- const editorProcess = (0, child_process_1.spawnSync)(this.editor.bin, this.editor.args.concat([this.tempFile]), { stdio: 'inherit' });
- this.lastExitStatus = editorProcess.status ?? 0;
- }
- catch (launchError) {
- throw new LaunchEditorError_js_1.LaunchEditorError(launchError);
- }
- }
- launchEditorAsync(callback) {
- try {
- const editorProcess = (0, child_process_1.spawn)(this.editor.bin, this.editor.args.concat([this.tempFile]), { stdio: 'inherit' });
- editorProcess.on('exit', (code) => {
- this.lastExitStatus = code;
- setImmediate(callback);
- });
- }
- catch (launchError) {
- throw new LaunchEditorError_js_1.LaunchEditorError(launchError);
- }
- }
-}
-exports.ExternalEditor = ExternalEditor;
diff --git a/node_modules/@inquirer/external-editor/dist/commonjs/package.json b/node_modules/@inquirer/external-editor/dist/commonjs/package.json
deleted file mode 100755
index 5bbefff..0000000
--- a/node_modules/@inquirer/external-editor/dist/commonjs/package.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "type": "commonjs"
-}
diff --git a/node_modules/@inquirer/external-editor/dist/esm/errors/CreateFileError.d.ts b/node_modules/@inquirer/external-editor/dist/esm/errors/CreateFileError.d.ts
deleted file mode 100755
index 0df1b3d..0000000
--- a/node_modules/@inquirer/external-editor/dist/esm/errors/CreateFileError.d.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-/***
- * Node External Editor
- *
- * Kevin Gravier
- * MIT 2018
- */
-export declare class CreateFileError extends Error {
- originalError: Error;
- constructor(originalError: Error);
-}
diff --git a/node_modules/@inquirer/external-editor/dist/esm/errors/CreateFileError.js b/node_modules/@inquirer/external-editor/dist/esm/errors/CreateFileError.js
deleted file mode 100755
index 6f52e5f..0000000
--- a/node_modules/@inquirer/external-editor/dist/esm/errors/CreateFileError.js
+++ /dev/null
@@ -1,13 +0,0 @@
-/***
- * Node External Editor
- *
- * Kevin Gravier
- * MIT 2018
- */
-export class CreateFileError extends Error {
- originalError;
- constructor(originalError) {
- super(`Failed to create temporary file. ${originalError.message}`);
- this.originalError = originalError;
- }
-}
diff --git a/node_modules/@inquirer/external-editor/dist/esm/errors/LaunchEditorError.d.ts b/node_modules/@inquirer/external-editor/dist/esm/errors/LaunchEditorError.d.ts
deleted file mode 100755
index 105077c..0000000
--- a/node_modules/@inquirer/external-editor/dist/esm/errors/LaunchEditorError.d.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-/***
- * Node External Editor
- *
- * Kevin Gravier
- * MIT 2018
- */
-export declare class LaunchEditorError extends Error {
- originalError: Error;
- constructor(originalError: Error);
-}
diff --git a/node_modules/@inquirer/external-editor/dist/esm/errors/LaunchEditorError.js b/node_modules/@inquirer/external-editor/dist/esm/errors/LaunchEditorError.js
deleted file mode 100755
index 43d7441..0000000
--- a/node_modules/@inquirer/external-editor/dist/esm/errors/LaunchEditorError.js
+++ /dev/null
@@ -1,13 +0,0 @@
-/***
- * Node External Editor
- *
- * Kevin Gravier
- * MIT 2018
- */
-export class LaunchEditorError extends Error {
- originalError;
- constructor(originalError) {
- super(`Failed to launch editor. ${originalError.message}`);
- this.originalError = originalError;
- }
-}
diff --git a/node_modules/@inquirer/external-editor/dist/esm/errors/ReadFileError.d.ts b/node_modules/@inquirer/external-editor/dist/esm/errors/ReadFileError.d.ts
deleted file mode 100755
index 438eae1..0000000
--- a/node_modules/@inquirer/external-editor/dist/esm/errors/ReadFileError.d.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-/***
- * Node External Editor
- *
- * Kevin Gravier
- * MIT 2018
- */
-export declare class ReadFileError extends Error {
- originalError: Error;
- constructor(originalError: Error);
-}
diff --git a/node_modules/@inquirer/external-editor/dist/esm/errors/ReadFileError.js b/node_modules/@inquirer/external-editor/dist/esm/errors/ReadFileError.js
deleted file mode 100755
index fe2307e..0000000
--- a/node_modules/@inquirer/external-editor/dist/esm/errors/ReadFileError.js
+++ /dev/null
@@ -1,13 +0,0 @@
-/***
- * Node External Editor
- *
- * Kevin Gravier
- * MIT 2018
- */
-export class ReadFileError extends Error {
- originalError;
- constructor(originalError) {
- super(`Failed to read temporary file. ${originalError.message}`);
- this.originalError = originalError;
- }
-}
diff --git a/node_modules/@inquirer/external-editor/dist/esm/errors/RemoveFileError.d.ts b/node_modules/@inquirer/external-editor/dist/esm/errors/RemoveFileError.d.ts
deleted file mode 100755
index a6402e4..0000000
--- a/node_modules/@inquirer/external-editor/dist/esm/errors/RemoveFileError.d.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-/***
- * Node External Editor
- *
- * Kevin Gravier
- * MIT 2018
- */
-export declare class RemoveFileError extends Error {
- originalError: Error;
- constructor(originalError: Error);
-}
diff --git a/node_modules/@inquirer/external-editor/dist/esm/errors/RemoveFileError.js b/node_modules/@inquirer/external-editor/dist/esm/errors/RemoveFileError.js
deleted file mode 100755
index 4fe6313..0000000
--- a/node_modules/@inquirer/external-editor/dist/esm/errors/RemoveFileError.js
+++ /dev/null
@@ -1,13 +0,0 @@
-/***
- * Node External Editor
- *
- * Kevin Gravier
- * MIT 2018
- */
-export class RemoveFileError extends Error {
- originalError;
- constructor(originalError) {
- super(`Failed to remove temporary file. ${originalError.message}`);
- this.originalError = originalError;
- }
-}
diff --git a/node_modules/@inquirer/external-editor/dist/esm/index.d.ts b/node_modules/@inquirer/external-editor/dist/esm/index.d.ts
deleted file mode 100755
index 744ab30..0000000
--- a/node_modules/@inquirer/external-editor/dist/esm/index.d.ts
+++ /dev/null
@@ -1,39 +0,0 @@
-import { CreateFileError } from './errors/CreateFileError.js';
-import { LaunchEditorError } from './errors/LaunchEditorError.js';
-import { ReadFileError } from './errors/ReadFileError.js';
-import { RemoveFileError } from './errors/RemoveFileError.js';
-export interface IEditorParams {
- args: string[];
- bin: string;
-}
-export interface IFileOptions {
- prefix?: string;
- postfix?: string;
- mode?: number;
- template?: string;
- dir?: string;
-}
-export type StringCallback = (err: Error | undefined, result: string | undefined) => void;
-export type VoidCallback = () => void;
-export { CreateFileError, LaunchEditorError, ReadFileError, RemoveFileError };
-export declare function edit(text?: string, fileOptions?: IFileOptions): string;
-export declare function editAsync(text: string | undefined, callback: StringCallback, fileOptions?: IFileOptions): void;
-export declare class ExternalEditor {
- text: string;
- tempFile: string;
- editor: IEditorParams;
- lastExitStatus: number;
- private fileOptions;
- get temp_file(): string;
- get last_exit_status(): number;
- constructor(text?: string, fileOptions?: IFileOptions);
- run(): string;
- runAsync(callback: StringCallback): void;
- cleanup(): void;
- private determineEditor;
- private createTemporaryFile;
- private readTemporaryFile;
- private removeTemporaryFile;
- private launchEditor;
- private launchEditorAsync;
-}
diff --git a/node_modules/@inquirer/external-editor/dist/esm/index.js b/node_modules/@inquirer/external-editor/dist/esm/index.js
deleted file mode 100755
index 768eb0c..0000000
--- a/node_modules/@inquirer/external-editor/dist/esm/index.js
+++ /dev/null
@@ -1,191 +0,0 @@
-import { detect } from 'chardet';
-import { spawn, spawnSync } from 'child_process';
-import { readFileSync, unlinkSync, writeFileSync } from 'fs';
-import path from 'node:path';
-import os from 'node:os';
-import { randomUUID } from 'node:crypto';
-import iconv from 'iconv-lite';
-import { CreateFileError } from './errors/CreateFileError.js';
-import { LaunchEditorError } from './errors/LaunchEditorError.js';
-import { ReadFileError } from './errors/ReadFileError.js';
-import { RemoveFileError } from './errors/RemoveFileError.js';
-export { CreateFileError, LaunchEditorError, ReadFileError, RemoveFileError };
-export function edit(text = '', fileOptions) {
- const editor = new ExternalEditor(text, fileOptions);
- editor.run();
- editor.cleanup();
- return editor.text;
-}
-export function editAsync(text = '', callback, fileOptions) {
- const editor = new ExternalEditor(text, fileOptions);
- editor.runAsync((err, result) => {
- if (err) {
- setImmediate(callback, err, undefined);
- }
- else {
- try {
- editor.cleanup();
- setImmediate(callback, undefined, result);
- }
- catch (cleanupError) {
- setImmediate(callback, cleanupError, undefined);
- }
- }
- });
-}
-function sanitizeAffix(affix) {
- if (!affix)
- return '';
- return affix.replace(/[^a-zA-Z0-9_.-]/g, '_');
-}
-function splitStringBySpace(str) {
- const pieces = [];
- let currentString = '';
- for (let strIndex = 0; strIndex < str.length; strIndex++) {
- const currentLetter = str.charAt(strIndex);
- if (strIndex > 0 &&
- currentLetter === ' ' &&
- str[strIndex - 1] !== '\\' &&
- currentString.length > 0) {
- pieces.push(currentString);
- currentString = '';
- }
- else {
- currentString = `${currentString}${currentLetter}`;
- }
- }
- if (currentString.length > 0) {
- pieces.push(currentString);
- }
- return pieces;
-}
-export class ExternalEditor {
- text = '';
- tempFile;
- editor;
- lastExitStatus = 0;
- fileOptions = {};
- get temp_file() {
- console.log('DEPRECATED: temp_file. Use tempFile moving forward.');
- return this.tempFile;
- }
- get last_exit_status() {
- console.log('DEPRECATED: last_exit_status. Use lastExitStatus moving forward.');
- return this.lastExitStatus;
- }
- constructor(text = '', fileOptions) {
- this.text = text;
- if (fileOptions) {
- this.fileOptions = fileOptions;
- }
- this.determineEditor();
- this.createTemporaryFile();
- }
- run() {
- this.launchEditor();
- this.readTemporaryFile();
- return this.text;
- }
- runAsync(callback) {
- try {
- this.launchEditorAsync(() => {
- try {
- this.readTemporaryFile();
- setImmediate(callback, undefined, this.text);
- }
- catch (readError) {
- setImmediate(callback, readError, undefined);
- }
- });
- }
- catch (launchError) {
- setImmediate(callback, launchError, undefined);
- }
- }
- cleanup() {
- this.removeTemporaryFile();
- }
- determineEditor() {
- const editor = process.env['VISUAL']
- ? process.env['VISUAL']
- : process.env['EDITOR']
- ? process.env['EDITOR']
- : process.platform.startsWith('win')
- ? 'notepad'
- : 'vim';
- const editorOpts = splitStringBySpace(editor).map((piece) => piece.replace('\\ ', ' '));
- const bin = editorOpts.shift();
- this.editor = { args: editorOpts, bin };
- }
- createTemporaryFile() {
- try {
- const baseDir = this.fileOptions.dir ?? os.tmpdir();
- const id = randomUUID();
- const prefix = sanitizeAffix(this.fileOptions.prefix);
- const postfix = sanitizeAffix(this.fileOptions.postfix);
- const filename = `${prefix}${id}${postfix}`;
- const candidate = path.resolve(baseDir, filename);
- const baseResolved = path.resolve(baseDir) + path.sep;
- if (!candidate.startsWith(baseResolved)) {
- throw new Error('Resolved temporary file escaped the base directory');
- }
- this.tempFile = candidate;
- const opt = { encoding: 'utf8', flag: 'wx' };
- if (Object.prototype.hasOwnProperty.call(this.fileOptions, 'mode')) {
- opt.mode = this.fileOptions.mode;
- }
- writeFileSync(this.tempFile, this.text, opt);
- }
- catch (createFileError) {
- throw new CreateFileError(createFileError);
- }
- }
- readTemporaryFile() {
- try {
- const tempFileBuffer = readFileSync(this.tempFile);
- if (tempFileBuffer.length === 0) {
- this.text = '';
- }
- else {
- let encoding = detect(tempFileBuffer) ?? 'utf8';
- if (!iconv.encodingExists(encoding)) {
- // Probably a bad idea, but will at least prevent crashing
- encoding = 'utf8';
- }
- this.text = iconv.decode(tempFileBuffer, encoding);
- }
- }
- catch (readFileError) {
- throw new ReadFileError(readFileError);
- }
- }
- removeTemporaryFile() {
- try {
- unlinkSync(this.tempFile);
- }
- catch (removeFileError) {
- throw new RemoveFileError(removeFileError);
- }
- }
- launchEditor() {
- try {
- const editorProcess = spawnSync(this.editor.bin, this.editor.args.concat([this.tempFile]), { stdio: 'inherit' });
- this.lastExitStatus = editorProcess.status ?? 0;
- }
- catch (launchError) {
- throw new LaunchEditorError(launchError);
- }
- }
- launchEditorAsync(callback) {
- try {
- const editorProcess = spawn(this.editor.bin, this.editor.args.concat([this.tempFile]), { stdio: 'inherit' });
- editorProcess.on('exit', (code) => {
- this.lastExitStatus = code;
- setImmediate(callback);
- });
- }
- catch (launchError) {
- throw new LaunchEditorError(launchError);
- }
- }
-}
diff --git a/node_modules/@inquirer/external-editor/dist/esm/package.json b/node_modules/@inquirer/external-editor/dist/esm/package.json
deleted file mode 100755
index 3dbc1ca..0000000
--- a/node_modules/@inquirer/external-editor/dist/esm/package.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "type": "module"
-}
diff --git a/node_modules/@inquirer/external-editor/package.json b/node_modules/@inquirer/external-editor/package.json
deleted file mode 100755
index d17017b..0000000
--- a/node_modules/@inquirer/external-editor/package.json
+++ /dev/null
@@ -1,108 +0,0 @@
-{
- "name": "@inquirer/external-editor",
- "version": "1.0.0",
- "description": "Edit a string with the users preferred text editor using $VISUAL or $ENVIRONMENT",
- "type": "module",
- "exports": {
- "./package.json": "./package.json",
- ".": {
- "import": {
- "types": "./dist/esm/index.d.ts",
- "default": "./dist/esm/index.js"
- },
- "require": {
- "types": "./dist/commonjs/index.d.ts",
- "default": "./dist/commonjs/index.js"
- }
- }
- },
- "module": "./dist/esm/index.js",
- "main": "./dist/commonjs/index.js",
- "types": "./dist/commonjs/index.d.ts",
- "repository": {
- "type": "git",
- "url": "https://github.com/SBoudrias/Inquirer.js.git"
- },
- "keywords": [
- "answer",
- "answers",
- "ask",
- "base",
- "cli",
- "command",
- "command-line",
- "confirm",
- "enquirer",
- "generate",
- "generator",
- "hyper",
- "input",
- "inquire",
- "inquirer",
- "interface",
- "iterm",
- "javascript",
- "menu",
- "node",
- "nodejs",
- "prompt",
- "promptly",
- "prompts",
- "question",
- "readline",
- "scaffold",
- "scaffolder",
- "scaffolding",
- "stdin",
- "stdout",
- "terminal",
- "tty",
- "ui",
- "yeoman",
- "yo",
- "zsh",
- "editor",
- "external",
- "user",
- "visual"
- ],
- "publishConfig": {
- "access": "public"
- },
- "files": [
- "dist"
- ],
- "engines": {
- "node": ">=18"
- },
- "author": "Simon Boudrias ",
- "license": "MIT",
- "sideEffects": false,
- "homepage": "https://github.com/SBoudrias/Inquirer.js/blob/main/packages/external-editor/README.md",
- "dependencies": {
- "chardet": "^2.1.0",
- "iconv-lite": "^0.6.3"
- },
- "devDependencies": {
- "@arethetypeswrong/cli": "^0.18.2",
- "@types/chardet": "^1.0.0",
- "tshy": "^3.0.2"
- },
- "peerDependencies": {
- "@types/node": ">=18"
- },
- "tshy": {
- "exclude": [
- "src/**/*.test.ts"
- ],
- "exports": {
- "./package.json": "./package.json",
- ".": "./src/index.ts"
- }
- },
- "scripts": {
- "tsc": "tshy",
- "attw": "attw --pack"
- },
- "gitHead": "15b1e9c929abf5a46930e825e5fbafc50a9f31f6"
-}
diff --git a/node_modules/@inquirer/figures/LICENSE b/node_modules/@inquirer/figures/LICENSE
deleted file mode 100755
index f718698..0000000
--- a/node_modules/@inquirer/figures/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-Copyright (c) 2025 Simon Boudrias
-
-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:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-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.
diff --git a/node_modules/@inquirer/figures/dist/commonjs/index.d.ts b/node_modules/@inquirer/figures/dist/commonjs/index.d.ts
deleted file mode 100755
index f8202e5..0000000
--- a/node_modules/@inquirer/figures/dist/commonjs/index.d.ts
+++ /dev/null
@@ -1,465 +0,0 @@
-export declare const mainSymbols: {
- tick: string;
- info: string;
- warning: string;
- cross: string;
- squareSmall: string;
- squareSmallFilled: string;
- circle: string;
- circleFilled: string;
- circleDotted: string;
- circleDouble: string;
- circleCircle: string;
- circleCross: string;
- circlePipe: string;
- radioOn: string;
- radioOff: string;
- checkboxOn: string;
- checkboxOff: string;
- checkboxCircleOn: string;
- checkboxCircleOff: string;
- pointer: string;
- triangleUpOutline: string;
- triangleLeft: string;
- triangleRight: string;
- lozenge: string;
- lozengeOutline: string;
- hamburger: string;
- smiley: string;
- mustache: string;
- star: string;
- play: string;
- nodejs: string;
- oneSeventh: string;
- oneNinth: string;
- oneTenth: string;
- circleQuestionMark: string;
- questionMarkPrefix: string;
- square: string;
- squareDarkShade: string;
- squareMediumShade: string;
- squareLightShade: string;
- squareTop: string;
- squareBottom: string;
- squareLeft: string;
- squareRight: string;
- squareCenter: string;
- bullet: string;
- dot: string;
- ellipsis: string;
- pointerSmall: string;
- triangleUp: string;
- triangleUpSmall: string;
- triangleDown: string;
- triangleDownSmall: string;
- triangleLeftSmall: string;
- triangleRightSmall: string;
- home: string;
- heart: string;
- musicNote: string;
- musicNoteBeamed: string;
- arrowUp: string;
- arrowDown: string;
- arrowLeft: string;
- arrowRight: string;
- arrowLeftRight: string;
- arrowUpDown: string;
- almostEqual: string;
- notEqual: string;
- lessOrEqual: string;
- greaterOrEqual: string;
- identical: string;
- infinity: string;
- subscriptZero: string;
- subscriptOne: string;
- subscriptTwo: string;
- subscriptThree: string;
- subscriptFour: string;
- subscriptFive: string;
- subscriptSix: string;
- subscriptSeven: string;
- subscriptEight: string;
- subscriptNine: string;
- oneHalf: string;
- oneThird: string;
- oneQuarter: string;
- oneFifth: string;
- oneSixth: string;
- oneEighth: string;
- twoThirds: string;
- twoFifths: string;
- threeQuarters: string;
- threeFifths: string;
- threeEighths: string;
- fourFifths: string;
- fiveSixths: string;
- fiveEighths: string;
- sevenEighths: string;
- line: string;
- lineBold: string;
- lineDouble: string;
- lineDashed0: string;
- lineDashed1: string;
- lineDashed2: string;
- lineDashed3: string;
- lineDashed4: string;
- lineDashed5: string;
- lineDashed6: string;
- lineDashed7: string;
- lineDashed8: string;
- lineDashed9: string;
- lineDashed10: string;
- lineDashed11: string;
- lineDashed12: string;
- lineDashed13: string;
- lineDashed14: string;
- lineDashed15: string;
- lineVertical: string;
- lineVerticalBold: string;
- lineVerticalDouble: string;
- lineVerticalDashed0: string;
- lineVerticalDashed1: string;
- lineVerticalDashed2: string;
- lineVerticalDashed3: string;
- lineVerticalDashed4: string;
- lineVerticalDashed5: string;
- lineVerticalDashed6: string;
- lineVerticalDashed7: string;
- lineVerticalDashed8: string;
- lineVerticalDashed9: string;
- lineVerticalDashed10: string;
- lineVerticalDashed11: string;
- lineDownLeft: string;
- lineDownLeftArc: string;
- lineDownBoldLeftBold: string;
- lineDownBoldLeft: string;
- lineDownLeftBold: string;
- lineDownDoubleLeftDouble: string;
- lineDownDoubleLeft: string;
- lineDownLeftDouble: string;
- lineDownRight: string;
- lineDownRightArc: string;
- lineDownBoldRightBold: string;
- lineDownBoldRight: string;
- lineDownRightBold: string;
- lineDownDoubleRightDouble: string;
- lineDownDoubleRight: string;
- lineDownRightDouble: string;
- lineUpLeft: string;
- lineUpLeftArc: string;
- lineUpBoldLeftBold: string;
- lineUpBoldLeft: string;
- lineUpLeftBold: string;
- lineUpDoubleLeftDouble: string;
- lineUpDoubleLeft: string;
- lineUpLeftDouble: string;
- lineUpRight: string;
- lineUpRightArc: string;
- lineUpBoldRightBold: string;
- lineUpBoldRight: string;
- lineUpRightBold: string;
- lineUpDoubleRightDouble: string;
- lineUpDoubleRight: string;
- lineUpRightDouble: string;
- lineUpDownLeft: string;
- lineUpBoldDownBoldLeftBold: string;
- lineUpBoldDownBoldLeft: string;
- lineUpDownLeftBold: string;
- lineUpBoldDownLeftBold: string;
- lineUpDownBoldLeftBold: string;
- lineUpDownBoldLeft: string;
- lineUpBoldDownLeft: string;
- lineUpDoubleDownDoubleLeftDouble: string;
- lineUpDoubleDownDoubleLeft: string;
- lineUpDownLeftDouble: string;
- lineUpDownRight: string;
- lineUpBoldDownBoldRightBold: string;
- lineUpBoldDownBoldRight: string;
- lineUpDownRightBold: string;
- lineUpBoldDownRightBold: string;
- lineUpDownBoldRightBold: string;
- lineUpDownBoldRight: string;
- lineUpBoldDownRight: string;
- lineUpDoubleDownDoubleRightDouble: string;
- lineUpDoubleDownDoubleRight: string;
- lineUpDownRightDouble: string;
- lineDownLeftRight: string;
- lineDownBoldLeftBoldRightBold: string;
- lineDownLeftBoldRightBold: string;
- lineDownBoldLeftRight: string;
- lineDownBoldLeftBoldRight: string;
- lineDownBoldLeftRightBold: string;
- lineDownLeftRightBold: string;
- lineDownLeftBoldRight: string;
- lineDownDoubleLeftDoubleRightDouble: string;
- lineDownDoubleLeftRight: string;
- lineDownLeftDoubleRightDouble: string;
- lineUpLeftRight: string;
- lineUpBoldLeftBoldRightBold: string;
- lineUpLeftBoldRightBold: string;
- lineUpBoldLeftRight: string;
- lineUpBoldLeftBoldRight: string;
- lineUpBoldLeftRightBold: string;
- lineUpLeftRightBold: string;
- lineUpLeftBoldRight: string;
- lineUpDoubleLeftDoubleRightDouble: string;
- lineUpDoubleLeftRight: string;
- lineUpLeftDoubleRightDouble: string;
- lineUpDownLeftRight: string;
- lineUpBoldDownBoldLeftBoldRightBold: string;
- lineUpDownBoldLeftBoldRightBold: string;
- lineUpBoldDownLeftBoldRightBold: string;
- lineUpBoldDownBoldLeftRightBold: string;
- lineUpBoldDownBoldLeftBoldRight: string;
- lineUpBoldDownLeftRight: string;
- lineUpDownBoldLeftRight: string;
- lineUpDownLeftBoldRight: string;
- lineUpDownLeftRightBold: string;
- lineUpBoldDownBoldLeftRight: string;
- lineUpDownLeftBoldRightBold: string;
- lineUpBoldDownLeftBoldRight: string;
- lineUpBoldDownLeftRightBold: string;
- lineUpDownBoldLeftBoldRight: string;
- lineUpDownBoldLeftRightBold: string;
- lineUpDoubleDownDoubleLeftDoubleRightDouble: string;
- lineUpDoubleDownDoubleLeftRight: string;
- lineUpDownLeftDoubleRightDouble: string;
- lineCross: string;
- lineBackslash: string;
- lineSlash: string;
-};
-export declare const fallbackSymbols: Record;
-declare const figures: {
- tick: string;
- info: string;
- warning: string;
- cross: string;
- squareSmall: string;
- squareSmallFilled: string;
- circle: string;
- circleFilled: string;
- circleDotted: string;
- circleDouble: string;
- circleCircle: string;
- circleCross: string;
- circlePipe: string;
- radioOn: string;
- radioOff: string;
- checkboxOn: string;
- checkboxOff: string;
- checkboxCircleOn: string;
- checkboxCircleOff: string;
- pointer: string;
- triangleUpOutline: string;
- triangleLeft: string;
- triangleRight: string;
- lozenge: string;
- lozengeOutline: string;
- hamburger: string;
- smiley: string;
- mustache: string;
- star: string;
- play: string;
- nodejs: string;
- oneSeventh: string;
- oneNinth: string;
- oneTenth: string;
- circleQuestionMark: string;
- questionMarkPrefix: string;
- square: string;
- squareDarkShade: string;
- squareMediumShade: string;
- squareLightShade: string;
- squareTop: string;
- squareBottom: string;
- squareLeft: string;
- squareRight: string;
- squareCenter: string;
- bullet: string;
- dot: string;
- ellipsis: string;
- pointerSmall: string;
- triangleUp: string;
- triangleUpSmall: string;
- triangleDown: string;
- triangleDownSmall: string;
- triangleLeftSmall: string;
- triangleRightSmall: string;
- home: string;
- heart: string;
- musicNote: string;
- musicNoteBeamed: string;
- arrowUp: string;
- arrowDown: string;
- arrowLeft: string;
- arrowRight: string;
- arrowLeftRight: string;
- arrowUpDown: string;
- almostEqual: string;
- notEqual: string;
- lessOrEqual: string;
- greaterOrEqual: string;
- identical: string;
- infinity: string;
- subscriptZero: string;
- subscriptOne: string;
- subscriptTwo: string;
- subscriptThree: string;
- subscriptFour: string;
- subscriptFive: string;
- subscriptSix: string;
- subscriptSeven: string;
- subscriptEight: string;
- subscriptNine: string;
- oneHalf: string;
- oneThird: string;
- oneQuarter: string;
- oneFifth: string;
- oneSixth: string;
- oneEighth: string;
- twoThirds: string;
- twoFifths: string;
- threeQuarters: string;
- threeFifths: string;
- threeEighths: string;
- fourFifths: string;
- fiveSixths: string;
- fiveEighths: string;
- sevenEighths: string;
- line: string;
- lineBold: string;
- lineDouble: string;
- lineDashed0: string;
- lineDashed1: string;
- lineDashed2: string;
- lineDashed3: string;
- lineDashed4: string;
- lineDashed5: string;
- lineDashed6: string;
- lineDashed7: string;
- lineDashed8: string;
- lineDashed9: string;
- lineDashed10: string;
- lineDashed11: string;
- lineDashed12: string;
- lineDashed13: string;
- lineDashed14: string;
- lineDashed15: string;
- lineVertical: string;
- lineVerticalBold: string;
- lineVerticalDouble: string;
- lineVerticalDashed0: string;
- lineVerticalDashed1: string;
- lineVerticalDashed2: string;
- lineVerticalDashed3: string;
- lineVerticalDashed4: string;
- lineVerticalDashed5: string;
- lineVerticalDashed6: string;
- lineVerticalDashed7: string;
- lineVerticalDashed8: string;
- lineVerticalDashed9: string;
- lineVerticalDashed10: string;
- lineVerticalDashed11: string;
- lineDownLeft: string;
- lineDownLeftArc: string;
- lineDownBoldLeftBold: string;
- lineDownBoldLeft: string;
- lineDownLeftBold: string;
- lineDownDoubleLeftDouble: string;
- lineDownDoubleLeft: string;
- lineDownLeftDouble: string;
- lineDownRight: string;
- lineDownRightArc: string;
- lineDownBoldRightBold: string;
- lineDownBoldRight: string;
- lineDownRightBold: string;
- lineDownDoubleRightDouble: string;
- lineDownDoubleRight: string;
- lineDownRightDouble: string;
- lineUpLeft: string;
- lineUpLeftArc: string;
- lineUpBoldLeftBold: string;
- lineUpBoldLeft: string;
- lineUpLeftBold: string;
- lineUpDoubleLeftDouble: string;
- lineUpDoubleLeft: string;
- lineUpLeftDouble: string;
- lineUpRight: string;
- lineUpRightArc: string;
- lineUpBoldRightBold: string;
- lineUpBoldRight: string;
- lineUpRightBold: string;
- lineUpDoubleRightDouble: string;
- lineUpDoubleRight: string;
- lineUpRightDouble: string;
- lineUpDownLeft: string;
- lineUpBoldDownBoldLeftBold: string;
- lineUpBoldDownBoldLeft: string;
- lineUpDownLeftBold: string;
- lineUpBoldDownLeftBold: string;
- lineUpDownBoldLeftBold: string;
- lineUpDownBoldLeft: string;
- lineUpBoldDownLeft: string;
- lineUpDoubleDownDoubleLeftDouble: string;
- lineUpDoubleDownDoubleLeft: string;
- lineUpDownLeftDouble: string;
- lineUpDownRight: string;
- lineUpBoldDownBoldRightBold: string;
- lineUpBoldDownBoldRight: string;
- lineUpDownRightBold: string;
- lineUpBoldDownRightBold: string;
- lineUpDownBoldRightBold: string;
- lineUpDownBoldRight: string;
- lineUpBoldDownRight: string;
- lineUpDoubleDownDoubleRightDouble: string;
- lineUpDoubleDownDoubleRight: string;
- lineUpDownRightDouble: string;
- lineDownLeftRight: string;
- lineDownBoldLeftBoldRightBold: string;
- lineDownLeftBoldRightBold: string;
- lineDownBoldLeftRight: string;
- lineDownBoldLeftBoldRight: string;
- lineDownBoldLeftRightBold: string;
- lineDownLeftRightBold: string;
- lineDownLeftBoldRight: string;
- lineDownDoubleLeftDoubleRightDouble: string;
- lineDownDoubleLeftRight: string;
- lineDownLeftDoubleRightDouble: string;
- lineUpLeftRight: string;
- lineUpBoldLeftBoldRightBold: string;
- lineUpLeftBoldRightBold: string;
- lineUpBoldLeftRight: string;
- lineUpBoldLeftBoldRight: string;
- lineUpBoldLeftRightBold: string;
- lineUpLeftRightBold: string;
- lineUpLeftBoldRight: string;
- lineUpDoubleLeftDoubleRightDouble: string;
- lineUpDoubleLeftRight: string;
- lineUpLeftDoubleRightDouble: string;
- lineUpDownLeftRight: string;
- lineUpBoldDownBoldLeftBoldRightBold: string;
- lineUpDownBoldLeftBoldRightBold: string;
- lineUpBoldDownLeftBoldRightBold: string;
- lineUpBoldDownBoldLeftRightBold: string;
- lineUpBoldDownBoldLeftBoldRight: string;
- lineUpBoldDownLeftRight: string;
- lineUpDownBoldLeftRight: string;
- lineUpDownLeftBoldRight: string;
- lineUpDownLeftRightBold: string;
- lineUpBoldDownBoldLeftRight: string;
- lineUpDownLeftBoldRightBold: string;
- lineUpBoldDownLeftBoldRight: string;
- lineUpBoldDownLeftRightBold: string;
- lineUpDownBoldLeftBoldRight: string;
- lineUpDownBoldLeftRightBold: string;
- lineUpDoubleDownDoubleLeftDoubleRightDouble: string;
- lineUpDoubleDownDoubleLeftRight: string;
- lineUpDownLeftDoubleRightDouble: string;
- lineCross: string;
- lineBackslash: string;
- lineSlash: string;
-} | Record;
-export default figures;
-export declare const replaceSymbols: (string: string, { useFallback }?: {
- useFallback?: boolean | undefined;
-}) => string;
diff --git a/node_modules/@inquirer/figures/dist/commonjs/index.js b/node_modules/@inquirer/figures/dist/commonjs/index.js
deleted file mode 100755
index 5316b17..0000000
--- a/node_modules/@inquirer/figures/dist/commonjs/index.js
+++ /dev/null
@@ -1,316 +0,0 @@
-"use strict";
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.replaceSymbols = exports.fallbackSymbols = exports.mainSymbols = void 0;
-// process.env dot-notation access prints:
-// Property 'TERM' comes from an index signature, so it must be accessed with ['TERM'].ts(4111)
-/* eslint dot-notation: ["off"] */
-const node_process_1 = __importDefault(require("node:process"));
-// Ported from is-unicode-supported
-function isUnicodeSupported() {
- if (node_process_1.default.platform !== 'win32') {
- return node_process_1.default.env['TERM'] !== 'linux'; // Linux console (kernel)
- }
- return (Boolean(node_process_1.default.env['WT_SESSION']) || // Windows Terminal
- Boolean(node_process_1.default.env['TERMINUS_SUBLIME']) || // Terminus (<0.2.27)
- node_process_1.default.env['ConEmuTask'] === '{cmd::Cmder}' || // ConEmu and cmder
- node_process_1.default.env['TERM_PROGRAM'] === 'Terminus-Sublime' ||
- node_process_1.default.env['TERM_PROGRAM'] === 'vscode' ||
- node_process_1.default.env['TERM'] === 'xterm-256color' ||
- node_process_1.default.env['TERM'] === 'alacritty' ||
- node_process_1.default.env['TERMINAL_EMULATOR'] === 'JetBrains-JediTerm');
-}
-// Ported from figures
-const common = {
- circleQuestionMark: '(?)',
- questionMarkPrefix: '(?)',
- square: '█',
- squareDarkShade: '▓',
- squareMediumShade: '▒',
- squareLightShade: '░',
- squareTop: '▀',
- squareBottom: '▄',
- squareLeft: '▌',
- squareRight: '▐',
- squareCenter: '■',
- bullet: '●',
- dot: '․',
- ellipsis: '…',
- pointerSmall: '›',
- triangleUp: '▲',
- triangleUpSmall: '▴',
- triangleDown: '▼',
- triangleDownSmall: '▾',
- triangleLeftSmall: '◂',
- triangleRightSmall: '▸',
- home: '⌂',
- heart: '♥',
- musicNote: '♪',
- musicNoteBeamed: '♫',
- arrowUp: '↑',
- arrowDown: '↓',
- arrowLeft: '←',
- arrowRight: '→',
- arrowLeftRight: '↔',
- arrowUpDown: '↕',
- almostEqual: '≈',
- notEqual: '≠',
- lessOrEqual: '≤',
- greaterOrEqual: '≥',
- identical: '≡',
- infinity: '∞',
- subscriptZero: '₀',
- subscriptOne: '₁',
- subscriptTwo: '₂',
- subscriptThree: '₃',
- subscriptFour: '₄',
- subscriptFive: '₅',
- subscriptSix: '₆',
- subscriptSeven: '₇',
- subscriptEight: '₈',
- subscriptNine: '₉',
- oneHalf: '½',
- oneThird: '⅓',
- oneQuarter: '¼',
- oneFifth: '⅕',
- oneSixth: '⅙',
- oneEighth: '⅛',
- twoThirds: '⅔',
- twoFifths: '⅖',
- threeQuarters: '¾',
- threeFifths: '⅗',
- threeEighths: '⅜',
- fourFifths: '⅘',
- fiveSixths: '⅚',
- fiveEighths: '⅝',
- sevenEighths: '⅞',
- line: '─',
- lineBold: '━',
- lineDouble: '═',
- lineDashed0: '┄',
- lineDashed1: '┅',
- lineDashed2: '┈',
- lineDashed3: '┉',
- lineDashed4: '╌',
- lineDashed5: '╍',
- lineDashed6: '╴',
- lineDashed7: '╶',
- lineDashed8: '╸',
- lineDashed9: '╺',
- lineDashed10: '╼',
- lineDashed11: '╾',
- lineDashed12: '−',
- lineDashed13: '–',
- lineDashed14: '‐',
- lineDashed15: '⁃',
- lineVertical: '│',
- lineVerticalBold: '┃',
- lineVerticalDouble: '║',
- lineVerticalDashed0: '┆',
- lineVerticalDashed1: '┇',
- lineVerticalDashed2: '┊',
- lineVerticalDashed3: '┋',
- lineVerticalDashed4: '╎',
- lineVerticalDashed5: '╏',
- lineVerticalDashed6: '╵',
- lineVerticalDashed7: '╷',
- lineVerticalDashed8: '╹',
- lineVerticalDashed9: '╻',
- lineVerticalDashed10: '╽',
- lineVerticalDashed11: '╿',
- lineDownLeft: '┐',
- lineDownLeftArc: '╮',
- lineDownBoldLeftBold: '┓',
- lineDownBoldLeft: '┒',
- lineDownLeftBold: '┑',
- lineDownDoubleLeftDouble: '╗',
- lineDownDoubleLeft: '╖',
- lineDownLeftDouble: '╕',
- lineDownRight: '┌',
- lineDownRightArc: '╭',
- lineDownBoldRightBold: '┏',
- lineDownBoldRight: '┎',
- lineDownRightBold: '┍',
- lineDownDoubleRightDouble: '╔',
- lineDownDoubleRight: '╓',
- lineDownRightDouble: '╒',
- lineUpLeft: '┘',
- lineUpLeftArc: '╯',
- lineUpBoldLeftBold: '┛',
- lineUpBoldLeft: '┚',
- lineUpLeftBold: '┙',
- lineUpDoubleLeftDouble: '╝',
- lineUpDoubleLeft: '╜',
- lineUpLeftDouble: '╛',
- lineUpRight: '└',
- lineUpRightArc: '╰',
- lineUpBoldRightBold: '┗',
- lineUpBoldRight: '┖',
- lineUpRightBold: '┕',
- lineUpDoubleRightDouble: '╚',
- lineUpDoubleRight: '╙',
- lineUpRightDouble: '╘',
- lineUpDownLeft: '┤',
- lineUpBoldDownBoldLeftBold: '┫',
- lineUpBoldDownBoldLeft: '┨',
- lineUpDownLeftBold: '┥',
- lineUpBoldDownLeftBold: '┩',
- lineUpDownBoldLeftBold: '┪',
- lineUpDownBoldLeft: '┧',
- lineUpBoldDownLeft: '┦',
- lineUpDoubleDownDoubleLeftDouble: '╣',
- lineUpDoubleDownDoubleLeft: '╢',
- lineUpDownLeftDouble: '╡',
- lineUpDownRight: '├',
- lineUpBoldDownBoldRightBold: '┣',
- lineUpBoldDownBoldRight: '┠',
- lineUpDownRightBold: '┝',
- lineUpBoldDownRightBold: '┡',
- lineUpDownBoldRightBold: '┢',
- lineUpDownBoldRight: '┟',
- lineUpBoldDownRight: '┞',
- lineUpDoubleDownDoubleRightDouble: '╠',
- lineUpDoubleDownDoubleRight: '╟',
- lineUpDownRightDouble: '╞',
- lineDownLeftRight: '┬',
- lineDownBoldLeftBoldRightBold: '┳',
- lineDownLeftBoldRightBold: '┯',
- lineDownBoldLeftRight: '┰',
- lineDownBoldLeftBoldRight: '┱',
- lineDownBoldLeftRightBold: '┲',
- lineDownLeftRightBold: '┮',
- lineDownLeftBoldRight: '┭',
- lineDownDoubleLeftDoubleRightDouble: '╦',
- lineDownDoubleLeftRight: '╥',
- lineDownLeftDoubleRightDouble: '╤',
- lineUpLeftRight: '┴',
- lineUpBoldLeftBoldRightBold: '┻',
- lineUpLeftBoldRightBold: '┷',
- lineUpBoldLeftRight: '┸',
- lineUpBoldLeftBoldRight: '┹',
- lineUpBoldLeftRightBold: '┺',
- lineUpLeftRightBold: '┶',
- lineUpLeftBoldRight: '┵',
- lineUpDoubleLeftDoubleRightDouble: '╩',
- lineUpDoubleLeftRight: '╨',
- lineUpLeftDoubleRightDouble: '╧',
- lineUpDownLeftRight: '┼',
- lineUpBoldDownBoldLeftBoldRightBold: '╋',
- lineUpDownBoldLeftBoldRightBold: '╈',
- lineUpBoldDownLeftBoldRightBold: '╇',
- lineUpBoldDownBoldLeftRightBold: '╊',
- lineUpBoldDownBoldLeftBoldRight: '╉',
- lineUpBoldDownLeftRight: '╀',
- lineUpDownBoldLeftRight: '╁',
- lineUpDownLeftBoldRight: '┽',
- lineUpDownLeftRightBold: '┾',
- lineUpBoldDownBoldLeftRight: '╂',
- lineUpDownLeftBoldRightBold: '┿',
- lineUpBoldDownLeftBoldRight: '╃',
- lineUpBoldDownLeftRightBold: '╄',
- lineUpDownBoldLeftBoldRight: '╅',
- lineUpDownBoldLeftRightBold: '╆',
- lineUpDoubleDownDoubleLeftDoubleRightDouble: '╬',
- lineUpDoubleDownDoubleLeftRight: '╫',
- lineUpDownLeftDoubleRightDouble: '╪',
- lineCross: '╳',
- lineBackslash: '╲',
- lineSlash: '╱',
-};
-const specialMainSymbols = {
- tick: '✔',
- info: 'ℹ',
- warning: '⚠',
- cross: '✘',
- squareSmall: '◻',
- squareSmallFilled: '◼',
- circle: '◯',
- circleFilled: '◉',
- circleDotted: '◌',
- circleDouble: '◎',
- circleCircle: 'ⓞ',
- circleCross: 'ⓧ',
- circlePipe: 'Ⓘ',
- radioOn: '◉',
- radioOff: '◯',
- checkboxOn: '☒',
- checkboxOff: '☐',
- checkboxCircleOn: 'ⓧ',
- checkboxCircleOff: 'Ⓘ',
- pointer: '❯',
- triangleUpOutline: '△',
- triangleLeft: '◀',
- triangleRight: '▶',
- lozenge: '◆',
- lozengeOutline: '◇',
- hamburger: '☰',
- smiley: '㋡',
- mustache: '෴',
- star: '★',
- play: '▶',
- nodejs: '⬢',
- oneSeventh: '⅐',
- oneNinth: '⅑',
- oneTenth: '⅒',
-};
-const specialFallbackSymbols = {
- tick: '√',
- info: 'i',
- warning: '‼',
- cross: '×',
- squareSmall: '□',
- squareSmallFilled: '■',
- circle: '( )',
- circleFilled: '(*)',
- circleDotted: '( )',
- circleDouble: '( )',
- circleCircle: '(○)',
- circleCross: '(×)',
- circlePipe: '(│)',
- radioOn: '(*)',
- radioOff: '( )',
- checkboxOn: '[×]',
- checkboxOff: '[ ]',
- checkboxCircleOn: '(×)',
- checkboxCircleOff: '( )',
- pointer: '>',
- triangleUpOutline: '∆',
- triangleLeft: '◄',
- triangleRight: '►',
- lozenge: '♦',
- lozengeOutline: '◊',
- hamburger: '≡',
- smiley: '☺',
- mustache: '┌─┐',
- star: '✶',
- play: '►',
- nodejs: '♦',
- oneSeventh: '1/7',
- oneNinth: '1/9',
- oneTenth: '1/10',
-};
-exports.mainSymbols = { ...common, ...specialMainSymbols };
-exports.fallbackSymbols = {
- ...common,
- ...specialFallbackSymbols,
-};
-const shouldUseMain = isUnicodeSupported();
-const figures = shouldUseMain ? exports.mainSymbols : exports.fallbackSymbols;
-exports.default = figures;
-const replacements = Object.entries(specialMainSymbols);
-// On terminals which do not support Unicode symbols, substitute them to other symbols
-const replaceSymbols = (string, { useFallback = !shouldUseMain } = {}) => {
- if (useFallback) {
- for (const [key, mainSymbol] of replacements) {
- const fallbackSymbol = exports.fallbackSymbols[key];
- if (!fallbackSymbol) {
- throw new Error(`Unable to find fallback for ${key}`);
- }
- string = string.replaceAll(mainSymbol, fallbackSymbol);
- }
- }
- return string;
-};
-exports.replaceSymbols = replaceSymbols;
diff --git a/node_modules/@inquirer/figures/dist/commonjs/package.json b/node_modules/@inquirer/figures/dist/commonjs/package.json
deleted file mode 100755
index 5bbefff..0000000
--- a/node_modules/@inquirer/figures/dist/commonjs/package.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "type": "commonjs"
-}
diff --git a/node_modules/@inquirer/figures/dist/esm/index.d.ts b/node_modules/@inquirer/figures/dist/esm/index.d.ts
deleted file mode 100755
index f8202e5..0000000
--- a/node_modules/@inquirer/figures/dist/esm/index.d.ts
+++ /dev/null
@@ -1,465 +0,0 @@
-export declare const mainSymbols: {
- tick: string;
- info: string;
- warning: string;
- cross: string;
- squareSmall: string;
- squareSmallFilled: string;
- circle: string;
- circleFilled: string;
- circleDotted: string;
- circleDouble: string;
- circleCircle: string;
- circleCross: string;
- circlePipe: string;
- radioOn: string;
- radioOff: string;
- checkboxOn: string;
- checkboxOff: string;
- checkboxCircleOn: string;
- checkboxCircleOff: string;
- pointer: string;
- triangleUpOutline: string;
- triangleLeft: string;
- triangleRight: string;
- lozenge: string;
- lozengeOutline: string;
- hamburger: string;
- smiley: string;
- mustache: string;
- star: string;
- play: string;
- nodejs: string;
- oneSeventh: string;
- oneNinth: string;
- oneTenth: string;
- circleQuestionMark: string;
- questionMarkPrefix: string;
- square: string;
- squareDarkShade: string;
- squareMediumShade: string;
- squareLightShade: string;
- squareTop: string;
- squareBottom: string;
- squareLeft: string;
- squareRight: string;
- squareCenter: string;
- bullet: string;
- dot: string;
- ellipsis: string;
- pointerSmall: string;
- triangleUp: string;
- triangleUpSmall: string;
- triangleDown: string;
- triangleDownSmall: string;
- triangleLeftSmall: string;
- triangleRightSmall: string;
- home: string;
- heart: string;
- musicNote: string;
- musicNoteBeamed: string;
- arrowUp: string;
- arrowDown: string;
- arrowLeft: string;
- arrowRight: string;
- arrowLeftRight: string;
- arrowUpDown: string;
- almostEqual: string;
- notEqual: string;
- lessOrEqual: string;
- greaterOrEqual: string;
- identical: string;
- infinity: string;
- subscriptZero: string;
- subscriptOne: string;
- subscriptTwo: string;
- subscriptThree: string;
- subscriptFour: string;
- subscriptFive: string;
- subscriptSix: string;
- subscriptSeven: string;
- subscriptEight: string;
- subscriptNine: string;
- oneHalf: string;
- oneThird: string;
- oneQuarter: string;
- oneFifth: string;
- oneSixth: string;
- oneEighth: string;
- twoThirds: string;
- twoFifths: string;
- threeQuarters: string;
- threeFifths: string;
- threeEighths: string;
- fourFifths: string;
- fiveSixths: string;
- fiveEighths: string;
- sevenEighths: string;
- line: string;
- lineBold: string;
- lineDouble: string;
- lineDashed0: string;
- lineDashed1: string;
- lineDashed2: string;
- lineDashed3: string;
- lineDashed4: string;
- lineDashed5: string;
- lineDashed6: string;
- lineDashed7: string;
- lineDashed8: string;
- lineDashed9: string;
- lineDashed10: string;
- lineDashed11: string;
- lineDashed12: string;
- lineDashed13: string;
- lineDashed14: string;
- lineDashed15: string;
- lineVertical: string;
- lineVerticalBold: string;
- lineVerticalDouble: string;
- lineVerticalDashed0: string;
- lineVerticalDashed1: string;
- lineVerticalDashed2: string;
- lineVerticalDashed3: string;
- lineVerticalDashed4: string;
- lineVerticalDashed5: string;
- lineVerticalDashed6: string;
- lineVerticalDashed7: string;
- lineVerticalDashed8: string;
- lineVerticalDashed9: string;
- lineVerticalDashed10: string;
- lineVerticalDashed11: string;
- lineDownLeft: string;
- lineDownLeftArc: string;
- lineDownBoldLeftBold: string;
- lineDownBoldLeft: string;
- lineDownLeftBold: string;
- lineDownDoubleLeftDouble: string;
- lineDownDoubleLeft: string;
- lineDownLeftDouble: string;
- lineDownRight: string;
- lineDownRightArc: string;
- lineDownBoldRightBold: string;
- lineDownBoldRight: string;
- lineDownRightBold: string;
- lineDownDoubleRightDouble: string;
- lineDownDoubleRight: string;
- lineDownRightDouble: string;
- lineUpLeft: string;
- lineUpLeftArc: string;
- lineUpBoldLeftBold: string;
- lineUpBoldLeft: string;
- lineUpLeftBold: string;
- lineUpDoubleLeftDouble: string;
- lineUpDoubleLeft: string;
- lineUpLeftDouble: string;
- lineUpRight: string;
- lineUpRightArc: string;
- lineUpBoldRightBold: string;
- lineUpBoldRight: string;
- lineUpRightBold: string;
- lineUpDoubleRightDouble: string;
- lineUpDoubleRight: string;
- lineUpRightDouble: string;
- lineUpDownLeft: string;
- lineUpBoldDownBoldLeftBold: string;
- lineUpBoldDownBoldLeft: string;
- lineUpDownLeftBold: string;
- lineUpBoldDownLeftBold: string;
- lineUpDownBoldLeftBold: string;
- lineUpDownBoldLeft: string;
- lineUpBoldDownLeft: string;
- lineUpDoubleDownDoubleLeftDouble: string;
- lineUpDoubleDownDoubleLeft: string;
- lineUpDownLeftDouble: string;
- lineUpDownRight: string;
- lineUpBoldDownBoldRightBold: string;
- lineUpBoldDownBoldRight: string;
- lineUpDownRightBold: string;
- lineUpBoldDownRightBold: string;
- lineUpDownBoldRightBold: string;
- lineUpDownBoldRight: string;
- lineUpBoldDownRight: string;
- lineUpDoubleDownDoubleRightDouble: string;
- lineUpDoubleDownDoubleRight: string;
- lineUpDownRightDouble: string;
- lineDownLeftRight: string;
- lineDownBoldLeftBoldRightBold: string;
- lineDownLeftBoldRightBold: string;
- lineDownBoldLeftRight: string;
- lineDownBoldLeftBoldRight: string;
- lineDownBoldLeftRightBold: string;
- lineDownLeftRightBold: string;
- lineDownLeftBoldRight: string;
- lineDownDoubleLeftDoubleRightDouble: string;
- lineDownDoubleLeftRight: string;
- lineDownLeftDoubleRightDouble: string;
- lineUpLeftRight: string;
- lineUpBoldLeftBoldRightBold: string;
- lineUpLeftBoldRightBold: string;
- lineUpBoldLeftRight: string;
- lineUpBoldLeftBoldRight: string;
- lineUpBoldLeftRightBold: string;
- lineUpLeftRightBold: string;
- lineUpLeftBoldRight: string;
- lineUpDoubleLeftDoubleRightDouble: string;
- lineUpDoubleLeftRight: string;
- lineUpLeftDoubleRightDouble: string;
- lineUpDownLeftRight: string;
- lineUpBoldDownBoldLeftBoldRightBold: string;
- lineUpDownBoldLeftBoldRightBold: string;
- lineUpBoldDownLeftBoldRightBold: string;
- lineUpBoldDownBoldLeftRightBold: string;
- lineUpBoldDownBoldLeftBoldRight: string;
- lineUpBoldDownLeftRight: string;
- lineUpDownBoldLeftRight: string;
- lineUpDownLeftBoldRight: string;
- lineUpDownLeftRightBold: string;
- lineUpBoldDownBoldLeftRight: string;
- lineUpDownLeftBoldRightBold: string;
- lineUpBoldDownLeftBoldRight: string;
- lineUpBoldDownLeftRightBold: string;
- lineUpDownBoldLeftBoldRight: string;
- lineUpDownBoldLeftRightBold: string;
- lineUpDoubleDownDoubleLeftDoubleRightDouble: string;
- lineUpDoubleDownDoubleLeftRight: string;
- lineUpDownLeftDoubleRightDouble: string;
- lineCross: string;
- lineBackslash: string;
- lineSlash: string;
-};
-export declare const fallbackSymbols: Record;
-declare const figures: {
- tick: string;
- info: string;
- warning: string;
- cross: string;
- squareSmall: string;
- squareSmallFilled: string;
- circle: string;
- circleFilled: string;
- circleDotted: string;
- circleDouble: string;
- circleCircle: string;
- circleCross: string;
- circlePipe: string;
- radioOn: string;
- radioOff: string;
- checkboxOn: string;
- checkboxOff: string;
- checkboxCircleOn: string;
- checkboxCircleOff: string;
- pointer: string;
- triangleUpOutline: string;
- triangleLeft: string;
- triangleRight: string;
- lozenge: string;
- lozengeOutline: string;
- hamburger: string;
- smiley: string;
- mustache: string;
- star: string;
- play: string;
- nodejs: string;
- oneSeventh: string;
- oneNinth: string;
- oneTenth: string;
- circleQuestionMark: string;
- questionMarkPrefix: string;
- square: string;
- squareDarkShade: string;
- squareMediumShade: string;
- squareLightShade: string;
- squareTop: string;
- squareBottom: string;
- squareLeft: string;
- squareRight: string;
- squareCenter: string;
- bullet: string;
- dot: string;
- ellipsis: string;
- pointerSmall: string;
- triangleUp: string;
- triangleUpSmall: string;
- triangleDown: string;
- triangleDownSmall: string;
- triangleLeftSmall: string;
- triangleRightSmall: string;
- home: string;
- heart: string;
- musicNote: string;
- musicNoteBeamed: string;
- arrowUp: string;
- arrowDown: string;
- arrowLeft: string;
- arrowRight: string;
- arrowLeftRight: string;
- arrowUpDown: string;
- almostEqual: string;
- notEqual: string;
- lessOrEqual: string;
- greaterOrEqual: string;
- identical: string;
- infinity: string;
- subscriptZero: string;
- subscriptOne: string;
- subscriptTwo: string;
- subscriptThree: string;
- subscriptFour: string;
- subscriptFive: string;
- subscriptSix: string;
- subscriptSeven: string;
- subscriptEight: string;
- subscriptNine: string;
- oneHalf: string;
- oneThird: string;
- oneQuarter: string;
- oneFifth: string;
- oneSixth: string;
- oneEighth: string;
- twoThirds: string;
- twoFifths: string;
- threeQuarters: string;
- threeFifths: string;
- threeEighths: string;
- fourFifths: string;
- fiveSixths: string;
- fiveEighths: string;
- sevenEighths: string;
- line: string;
- lineBold: string;
- lineDouble: string;
- lineDashed0: string;
- lineDashed1: string;
- lineDashed2: string;
- lineDashed3: string;
- lineDashed4: string;
- lineDashed5: string;
- lineDashed6: string;
- lineDashed7: string;
- lineDashed8: string;
- lineDashed9: string;
- lineDashed10: string;
- lineDashed11: string;
- lineDashed12: string;
- lineDashed13: string;
- lineDashed14: string;
- lineDashed15: string;
- lineVertical: string;
- lineVerticalBold: string;
- lineVerticalDouble: string;
- lineVerticalDashed0: string;
- lineVerticalDashed1: string;
- lineVerticalDashed2: string;
- lineVerticalDashed3: string;
- lineVerticalDashed4: string;
- lineVerticalDashed5: string;
- lineVerticalDashed6: string;
- lineVerticalDashed7: string;
- lineVerticalDashed8: string;
- lineVerticalDashed9: string;
- lineVerticalDashed10: string;
- lineVerticalDashed11: string;
- lineDownLeft: string;
- lineDownLeftArc: string;
- lineDownBoldLeftBold: string;
- lineDownBoldLeft: string;
- lineDownLeftBold: string;
- lineDownDoubleLeftDouble: string;
- lineDownDoubleLeft: string;
- lineDownLeftDouble: string;
- lineDownRight: string;
- lineDownRightArc: string;
- lineDownBoldRightBold: string;
- lineDownBoldRight: string;
- lineDownRightBold: string;
- lineDownDoubleRightDouble: string;
- lineDownDoubleRight: string;
- lineDownRightDouble: string;
- lineUpLeft: string;
- lineUpLeftArc: string;
- lineUpBoldLeftBold: string;
- lineUpBoldLeft: string;
- lineUpLeftBold: string;
- lineUpDoubleLeftDouble: string;
- lineUpDoubleLeft: string;
- lineUpLeftDouble: string;
- lineUpRight: string;
- lineUpRightArc: string;
- lineUpBoldRightBold: string;
- lineUpBoldRight: string;
- lineUpRightBold: string;
- lineUpDoubleRightDouble: string;
- lineUpDoubleRight: string;
- lineUpRightDouble: string;
- lineUpDownLeft: string;
- lineUpBoldDownBoldLeftBold: string;
- lineUpBoldDownBoldLeft: string;
- lineUpDownLeftBold: string;
- lineUpBoldDownLeftBold: string;
- lineUpDownBoldLeftBold: string;
- lineUpDownBoldLeft: string;
- lineUpBoldDownLeft: string;
- lineUpDoubleDownDoubleLeftDouble: string;
- lineUpDoubleDownDoubleLeft: string;
- lineUpDownLeftDouble: string;
- lineUpDownRight: string;
- lineUpBoldDownBoldRightBold: string;
- lineUpBoldDownBoldRight: string;
- lineUpDownRightBold: string;
- lineUpBoldDownRightBold: string;
- lineUpDownBoldRightBold: string;
- lineUpDownBoldRight: string;
- lineUpBoldDownRight: string;
- lineUpDoubleDownDoubleRightDouble: string;
- lineUpDoubleDownDoubleRight: string;
- lineUpDownRightDouble: string;
- lineDownLeftRight: string;
- lineDownBoldLeftBoldRightBold: string;
- lineDownLeftBoldRightBold: string;
- lineDownBoldLeftRight: string;
- lineDownBoldLeftBoldRight: string;
- lineDownBoldLeftRightBold: string;
- lineDownLeftRightBold: string;
- lineDownLeftBoldRight: string;
- lineDownDoubleLeftDoubleRightDouble: string;
- lineDownDoubleLeftRight: string;
- lineDownLeftDoubleRightDouble: string;
- lineUpLeftRight: string;
- lineUpBoldLeftBoldRightBold: string;
- lineUpLeftBoldRightBold: string;
- lineUpBoldLeftRight: string;
- lineUpBoldLeftBoldRight: string;
- lineUpBoldLeftRightBold: string;
- lineUpLeftRightBold: string;
- lineUpLeftBoldRight: string;
- lineUpDoubleLeftDoubleRightDouble: string;
- lineUpDoubleLeftRight: string;
- lineUpLeftDoubleRightDouble: string;
- lineUpDownLeftRight: string;
- lineUpBoldDownBoldLeftBoldRightBold: string;
- lineUpDownBoldLeftBoldRightBold: string;
- lineUpBoldDownLeftBoldRightBold: string;
- lineUpBoldDownBoldLeftRightBold: string;
- lineUpBoldDownBoldLeftBoldRight: string;
- lineUpBoldDownLeftRight: string;
- lineUpDownBoldLeftRight: string;
- lineUpDownLeftBoldRight: string;
- lineUpDownLeftRightBold: string;
- lineUpBoldDownBoldLeftRight: string;
- lineUpDownLeftBoldRightBold: string;
- lineUpBoldDownLeftBoldRight: string;
- lineUpBoldDownLeftRightBold: string;
- lineUpDownBoldLeftBoldRight: string;
- lineUpDownBoldLeftRightBold: string;
- lineUpDoubleDownDoubleLeftDoubleRightDouble: string;
- lineUpDoubleDownDoubleLeftRight: string;
- lineUpDownLeftDoubleRightDouble: string;
- lineCross: string;
- lineBackslash: string;
- lineSlash: string;
-} | Record;
-export default figures;
-export declare const replaceSymbols: (string: string, { useFallback }?: {
- useFallback?: boolean | undefined;
-}) => string;
diff --git a/node_modules/@inquirer/figures/dist/esm/index.js b/node_modules/@inquirer/figures/dist/esm/index.js
deleted file mode 100755
index d43b15e..0000000
--- a/node_modules/@inquirer/figures/dist/esm/index.js
+++ /dev/null
@@ -1,309 +0,0 @@
-// process.env dot-notation access prints:
-// Property 'TERM' comes from an index signature, so it must be accessed with ['TERM'].ts(4111)
-/* eslint dot-notation: ["off"] */
-import process from 'node:process';
-// Ported from is-unicode-supported
-function isUnicodeSupported() {
- if (process.platform !== 'win32') {
- return process.env['TERM'] !== 'linux'; // Linux console (kernel)
- }
- return (Boolean(process.env['WT_SESSION']) || // Windows Terminal
- Boolean(process.env['TERMINUS_SUBLIME']) || // Terminus (<0.2.27)
- process.env['ConEmuTask'] === '{cmd::Cmder}' || // ConEmu and cmder
- process.env['TERM_PROGRAM'] === 'Terminus-Sublime' ||
- process.env['TERM_PROGRAM'] === 'vscode' ||
- process.env['TERM'] === 'xterm-256color' ||
- process.env['TERM'] === 'alacritty' ||
- process.env['TERMINAL_EMULATOR'] === 'JetBrains-JediTerm');
-}
-// Ported from figures
-const common = {
- circleQuestionMark: '(?)',
- questionMarkPrefix: '(?)',
- square: '█',
- squareDarkShade: '▓',
- squareMediumShade: '▒',
- squareLightShade: '░',
- squareTop: '▀',
- squareBottom: '▄',
- squareLeft: '▌',
- squareRight: '▐',
- squareCenter: '■',
- bullet: '●',
- dot: '․',
- ellipsis: '…',
- pointerSmall: '›',
- triangleUp: '▲',
- triangleUpSmall: '▴',
- triangleDown: '▼',
- triangleDownSmall: '▾',
- triangleLeftSmall: '◂',
- triangleRightSmall: '▸',
- home: '⌂',
- heart: '♥',
- musicNote: '♪',
- musicNoteBeamed: '♫',
- arrowUp: '↑',
- arrowDown: '↓',
- arrowLeft: '←',
- arrowRight: '→',
- arrowLeftRight: '↔',
- arrowUpDown: '↕',
- almostEqual: '≈',
- notEqual: '≠',
- lessOrEqual: '≤',
- greaterOrEqual: '≥',
- identical: '≡',
- infinity: '∞',
- subscriptZero: '₀',
- subscriptOne: '₁',
- subscriptTwo: '₂',
- subscriptThree: '₃',
- subscriptFour: '₄',
- subscriptFive: '₅',
- subscriptSix: '₆',
- subscriptSeven: '₇',
- subscriptEight: '₈',
- subscriptNine: '₉',
- oneHalf: '½',
- oneThird: '⅓',
- oneQuarter: '¼',
- oneFifth: '⅕',
- oneSixth: '⅙',
- oneEighth: '⅛',
- twoThirds: '⅔',
- twoFifths: '⅖',
- threeQuarters: '¾',
- threeFifths: '⅗',
- threeEighths: '⅜',
- fourFifths: '⅘',
- fiveSixths: '⅚',
- fiveEighths: '⅝',
- sevenEighths: '⅞',
- line: '─',
- lineBold: '━',
- lineDouble: '═',
- lineDashed0: '┄',
- lineDashed1: '┅',
- lineDashed2: '┈',
- lineDashed3: '┉',
- lineDashed4: '╌',
- lineDashed5: '╍',
- lineDashed6: '╴',
- lineDashed7: '╶',
- lineDashed8: '╸',
- lineDashed9: '╺',
- lineDashed10: '╼',
- lineDashed11: '╾',
- lineDashed12: '−',
- lineDashed13: '–',
- lineDashed14: '‐',
- lineDashed15: '⁃',
- lineVertical: '│',
- lineVerticalBold: '┃',
- lineVerticalDouble: '║',
- lineVerticalDashed0: '┆',
- lineVerticalDashed1: '┇',
- lineVerticalDashed2: '┊',
- lineVerticalDashed3: '┋',
- lineVerticalDashed4: '╎',
- lineVerticalDashed5: '╏',
- lineVerticalDashed6: '╵',
- lineVerticalDashed7: '╷',
- lineVerticalDashed8: '╹',
- lineVerticalDashed9: '╻',
- lineVerticalDashed10: '╽',
- lineVerticalDashed11: '╿',
- lineDownLeft: '┐',
- lineDownLeftArc: '╮',
- lineDownBoldLeftBold: '┓',
- lineDownBoldLeft: '┒',
- lineDownLeftBold: '┑',
- lineDownDoubleLeftDouble: '╗',
- lineDownDoubleLeft: '╖',
- lineDownLeftDouble: '╕',
- lineDownRight: '┌',
- lineDownRightArc: '╭',
- lineDownBoldRightBold: '┏',
- lineDownBoldRight: '┎',
- lineDownRightBold: '┍',
- lineDownDoubleRightDouble: '╔',
- lineDownDoubleRight: '╓',
- lineDownRightDouble: '╒',
- lineUpLeft: '┘',
- lineUpLeftArc: '╯',
- lineUpBoldLeftBold: '┛',
- lineUpBoldLeft: '┚',
- lineUpLeftBold: '┙',
- lineUpDoubleLeftDouble: '╝',
- lineUpDoubleLeft: '╜',
- lineUpLeftDouble: '╛',
- lineUpRight: '└',
- lineUpRightArc: '╰',
- lineUpBoldRightBold: '┗',
- lineUpBoldRight: '┖',
- lineUpRightBold: '┕',
- lineUpDoubleRightDouble: '╚',
- lineUpDoubleRight: '╙',
- lineUpRightDouble: '╘',
- lineUpDownLeft: '┤',
- lineUpBoldDownBoldLeftBold: '┫',
- lineUpBoldDownBoldLeft: '┨',
- lineUpDownLeftBold: '┥',
- lineUpBoldDownLeftBold: '┩',
- lineUpDownBoldLeftBold: '┪',
- lineUpDownBoldLeft: '┧',
- lineUpBoldDownLeft: '┦',
- lineUpDoubleDownDoubleLeftDouble: '╣',
- lineUpDoubleDownDoubleLeft: '╢',
- lineUpDownLeftDouble: '╡',
- lineUpDownRight: '├',
- lineUpBoldDownBoldRightBold: '┣',
- lineUpBoldDownBoldRight: '┠',
- lineUpDownRightBold: '┝',
- lineUpBoldDownRightBold: '┡',
- lineUpDownBoldRightBold: '┢',
- lineUpDownBoldRight: '┟',
- lineUpBoldDownRight: '┞',
- lineUpDoubleDownDoubleRightDouble: '╠',
- lineUpDoubleDownDoubleRight: '╟',
- lineUpDownRightDouble: '╞',
- lineDownLeftRight: '┬',
- lineDownBoldLeftBoldRightBold: '┳',
- lineDownLeftBoldRightBold: '┯',
- lineDownBoldLeftRight: '┰',
- lineDownBoldLeftBoldRight: '┱',
- lineDownBoldLeftRightBold: '┲',
- lineDownLeftRightBold: '┮',
- lineDownLeftBoldRight: '┭',
- lineDownDoubleLeftDoubleRightDouble: '╦',
- lineDownDoubleLeftRight: '╥',
- lineDownLeftDoubleRightDouble: '╤',
- lineUpLeftRight: '┴',
- lineUpBoldLeftBoldRightBold: '┻',
- lineUpLeftBoldRightBold: '┷',
- lineUpBoldLeftRight: '┸',
- lineUpBoldLeftBoldRight: '┹',
- lineUpBoldLeftRightBold: '┺',
- lineUpLeftRightBold: '┶',
- lineUpLeftBoldRight: '┵',
- lineUpDoubleLeftDoubleRightDouble: '╩',
- lineUpDoubleLeftRight: '╨',
- lineUpLeftDoubleRightDouble: '╧',
- lineUpDownLeftRight: '┼',
- lineUpBoldDownBoldLeftBoldRightBold: '╋',
- lineUpDownBoldLeftBoldRightBold: '╈',
- lineUpBoldDownLeftBoldRightBold: '╇',
- lineUpBoldDownBoldLeftRightBold: '╊',
- lineUpBoldDownBoldLeftBoldRight: '╉',
- lineUpBoldDownLeftRight: '╀',
- lineUpDownBoldLeftRight: '╁',
- lineUpDownLeftBoldRight: '┽',
- lineUpDownLeftRightBold: '┾',
- lineUpBoldDownBoldLeftRight: '╂',
- lineUpDownLeftBoldRightBold: '┿',
- lineUpBoldDownLeftBoldRight: '╃',
- lineUpBoldDownLeftRightBold: '╄',
- lineUpDownBoldLeftBoldRight: '╅',
- lineUpDownBoldLeftRightBold: '╆',
- lineUpDoubleDownDoubleLeftDoubleRightDouble: '╬',
- lineUpDoubleDownDoubleLeftRight: '╫',
- lineUpDownLeftDoubleRightDouble: '╪',
- lineCross: '╳',
- lineBackslash: '╲',
- lineSlash: '╱',
-};
-const specialMainSymbols = {
- tick: '✔',
- info: 'ℹ',
- warning: '⚠',
- cross: '✘',
- squareSmall: '◻',
- squareSmallFilled: '◼',
- circle: '◯',
- circleFilled: '◉',
- circleDotted: '◌',
- circleDouble: '◎',
- circleCircle: 'ⓞ',
- circleCross: 'ⓧ',
- circlePipe: 'Ⓘ',
- radioOn: '◉',
- radioOff: '◯',
- checkboxOn: '☒',
- checkboxOff: '☐',
- checkboxCircleOn: 'ⓧ',
- checkboxCircleOff: 'Ⓘ',
- pointer: '❯',
- triangleUpOutline: '△',
- triangleLeft: '◀',
- triangleRight: '▶',
- lozenge: '◆',
- lozengeOutline: '◇',
- hamburger: '☰',
- smiley: '㋡',
- mustache: '෴',
- star: '★',
- play: '▶',
- nodejs: '⬢',
- oneSeventh: '⅐',
- oneNinth: '⅑',
- oneTenth: '⅒',
-};
-const specialFallbackSymbols = {
- tick: '√',
- info: 'i',
- warning: '‼',
- cross: '×',
- squareSmall: '□',
- squareSmallFilled: '■',
- circle: '( )',
- circleFilled: '(*)',
- circleDotted: '( )',
- circleDouble: '( )',
- circleCircle: '(○)',
- circleCross: '(×)',
- circlePipe: '(│)',
- radioOn: '(*)',
- radioOff: '( )',
- checkboxOn: '[×]',
- checkboxOff: '[ ]',
- checkboxCircleOn: '(×)',
- checkboxCircleOff: '( )',
- pointer: '>',
- triangleUpOutline: '∆',
- triangleLeft: '◄',
- triangleRight: '►',
- lozenge: '♦',
- lozengeOutline: '◊',
- hamburger: '≡',
- smiley: '☺',
- mustache: '┌─┐',
- star: '✶',
- play: '►',
- nodejs: '♦',
- oneSeventh: '1/7',
- oneNinth: '1/9',
- oneTenth: '1/10',
-};
-export const mainSymbols = { ...common, ...specialMainSymbols };
-export const fallbackSymbols = {
- ...common,
- ...specialFallbackSymbols,
-};
-const shouldUseMain = isUnicodeSupported();
-const figures = shouldUseMain ? mainSymbols : fallbackSymbols;
-export default figures;
-const replacements = Object.entries(specialMainSymbols);
-// On terminals which do not support Unicode symbols, substitute them to other symbols
-export const replaceSymbols = (string, { useFallback = !shouldUseMain } = {}) => {
- if (useFallback) {
- for (const [key, mainSymbol] of replacements) {
- const fallbackSymbol = fallbackSymbols[key];
- if (!fallbackSymbol) {
- throw new Error(`Unable to find fallback for ${key}`);
- }
- string = string.replaceAll(mainSymbol, fallbackSymbol);
- }
- }
- return string;
-};
diff --git a/node_modules/@inquirer/figures/dist/esm/package.json b/node_modules/@inquirer/figures/dist/esm/package.json
deleted file mode 100755
index 3dbc1ca..0000000
--- a/node_modules/@inquirer/figures/dist/esm/package.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "type": "module"
-}
diff --git a/node_modules/@inquirer/figures/package.json b/node_modules/@inquirer/figures/package.json
deleted file mode 100755
index 3a508a8..0000000
--- a/node_modules/@inquirer/figures/package.json
+++ /dev/null
@@ -1,94 +0,0 @@
-{
- "name": "@inquirer/figures",
- "version": "1.0.13",
- "description": "Vendored version of figures, for CJS compatibility",
- "keywords": [
- "answer",
- "answers",
- "ask",
- "base",
- "cli",
- "command",
- "command-line",
- "confirm",
- "enquirer",
- "generate",
- "generator",
- "hyper",
- "input",
- "inquire",
- "inquirer",
- "interface",
- "iterm",
- "javascript",
- "menu",
- "node",
- "nodejs",
- "prompt",
- "promptly",
- "prompts",
- "question",
- "readline",
- "scaffold",
- "scaffolder",
- "scaffolding",
- "stdin",
- "stdout",
- "terminal",
- "tty",
- "ui",
- "yeoman",
- "yo",
- "zsh",
- "types",
- "typescript"
- ],
- "repository": {
- "type": "git",
- "url": "https://github.com/SBoudrias/Inquirer.js.git"
- },
- "license": "MIT",
- "author": "Simon Boudrias ",
- "sideEffects": false,
- "type": "module",
- "exports": {
- "./package.json": "./package.json",
- ".": {
- "import": {
- "types": "./dist/esm/index.d.ts",
- "default": "./dist/esm/index.js"
- },
- "require": {
- "types": "./dist/commonjs/index.d.ts",
- "default": "./dist/commonjs/index.js"
- }
- }
- },
- "main": "./dist/commonjs/index.js",
- "module": "./dist/esm/index.js",
- "types": "./dist/commonjs/index.d.ts",
- "files": [
- "dist"
- ],
- "scripts": {
- "attw": "attw --pack",
- "tsc": "tshy"
- },
- "devDependencies": {
- "@arethetypeswrong/cli": "^0.18.2",
- "tshy": "^3.0.2"
- },
- "engines": {
- "node": ">=18"
- },
- "tshy": {
- "exclude": [
- "src/**/*.test.ts"
- ],
- "exports": {
- "./package.json": "./package.json",
- ".": "./src/index.ts"
- }
- },
- "gitHead": "c1a755fe8b50377b685ea5951e0794985ce8d356"
-}
diff --git a/node_modules/@inquirer/input/LICENSE b/node_modules/@inquirer/input/LICENSE
deleted file mode 100755
index f718698..0000000
--- a/node_modules/@inquirer/input/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-Copyright (c) 2025 Simon Boudrias
-
-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:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-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.
diff --git a/node_modules/@inquirer/input/README.md b/node_modules/@inquirer/input/README.md
deleted file mode 100755
index 030d992..0000000
--- a/node_modules/@inquirer/input/README.md
+++ /dev/null
@@ -1,109 +0,0 @@
-# `@inquirer/input`
-
-Interactive free text input component for command line interfaces. Supports validation, filtering, transformation, etc.
-
-
-
-# Special Thanks
-
-
-
-[](https://graphite.dev/?utm_source=npmjs&utm_medium=repo&utm_campaign=inquirerjs)
-
-### [Graphite is the AI developer productivity platform helping teams on GitHub ship higher quality software, faster](https://graphite.dev/?utm_source=npmjs&utm_medium=repo&utm_campaign=inquirerjs)
-
-
-
-# Installation
-
-
-
- npm |
- yarn |
-
-
-
-
-```sh
-npm install @inquirer/prompts
-```
-
- |
-
-
-```sh
-yarn add @inquirer/prompts
-```
-
- |
-
-
-Or |
-
-
-
-
-```sh
-npm install @inquirer/input
-```
-
- |
-
-
-```sh
-yarn add @inquirer/input
-```
-
- |
-
-
-
-# Usage
-
-```js
-import { input } from '@inquirer/prompts';
-// Or
-// import input from '@inquirer/input';
-
-const answer = await input({ message: 'Enter your name' });
-```
-
-## Options
-
-| Property | Type | Required | Description |
-| ----------- | ----------------------------------------------------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| message | `string` | yes | The question to ask |
-| default | `string` | no | Default value if no answer is provided; see the prefill option below for governing it's behaviour. |
-| prefill | `'tab' \| 'editable'` | no | Defaults to `'tab'`. If set to `'tab'`, pressing `backspace` will clear the default and pressing `tab` will inline the value for edits; If set to `'editable'`, the default value will already be inlined to edit. |
-| required | `boolean` | no | Defaults to `false`. If set to true, `undefined` (empty) will not be accepted for this. |
-| transformer | `(string, { isFinal: boolean }) => string` | no | Transform/Format the raw value entered by the user. Once the prompt is completed, `isFinal` will be `true`. This function is purely visual, modify the answer in your code if needed. |
-| validate | `string => boolean \| string \| Promise` | no | On submit, validate the filtered answered content. When returning a string, it'll be used as the error message displayed to the user. Note: returning a rejected promise, we'll assume a code error happened and crash. |
-| theme | [See Theming](#Theming) | no | Customize look of the prompt. |
-
-## Theming
-
-You can theme a prompt by passing a `theme` object option. The theme object only need to includes the keys you wish to modify, we'll fallback on the defaults for the rest.
-
-```ts
-type Theme = {
- prefix: string | { idle: string; done: string };
- spinner: {
- interval: number;
- frames: string[];
- };
- style: {
- answer: (text: string) => string;
- message: (text: string, status: 'idle' | 'done' | 'loading') => string;
- error: (text: string) => string;
- defaultAnswer: (text: string) => string;
- };
- validationFailureMode: 'keep' | 'clear';
-};
-```
-
-`validationFailureMode` defines the behavior of the prompt when the value submitted is invalid. By default, we'll keep the value allowing the user to edit it. When the theme option is set to `clear`, we'll remove and reset to an empty string.
-
-# License
-
-Copyright (c) 2023 Simon Boudrias (twitter: [@vaxilart](https://twitter.com/Vaxilart))
-Licensed under the MIT license.
diff --git a/node_modules/@inquirer/input/dist/commonjs/index.d.ts b/node_modules/@inquirer/input/dist/commonjs/index.d.ts
deleted file mode 100755
index 1047c3b..0000000
--- a/node_modules/@inquirer/input/dist/commonjs/index.d.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-import { type Theme } from '@inquirer/core';
-import type { PartialDeep } from '@inquirer/type';
-type InputTheme = {
- validationFailureMode: 'keep' | 'clear';
-};
-type InputConfig = {
- message: string;
- default?: string;
- prefill?: 'tab' | 'editable';
- required?: boolean;
- transformer?: (value: string, { isFinal }: {
- isFinal: boolean;
- }) => string;
- validate?: (value: string) => boolean | string | Promise;
- theme?: PartialDeep>;
-};
-declare const _default: import("@inquirer/type").Prompt;
-export default _default;
diff --git a/node_modules/@inquirer/input/dist/commonjs/index.js b/node_modules/@inquirer/input/dist/commonjs/index.js
deleted file mode 100755
index d489cc8..0000000
--- a/node_modules/@inquirer/input/dist/commonjs/index.js
+++ /dev/null
@@ -1,86 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-const core_1 = require("@inquirer/core");
-const inputTheme = {
- validationFailureMode: 'keep',
-};
-exports.default = (0, core_1.createPrompt)((config, done) => {
- const { required, validate = () => true, prefill = 'tab' } = config;
- const theme = (0, core_1.makeTheme)(inputTheme, config.theme);
- const [status, setStatus] = (0, core_1.useState)('idle');
- const [defaultValue = '', setDefaultValue] = (0, core_1.useState)(config.default);
- const [errorMsg, setError] = (0, core_1.useState)();
- const [value, setValue] = (0, core_1.useState)('');
- const prefix = (0, core_1.usePrefix)({ status, theme });
- (0, core_1.useKeypress)(async (key, rl) => {
- // Ignore keypress while our prompt is doing other processing.
- if (status !== 'idle') {
- return;
- }
- if ((0, core_1.isEnterKey)(key)) {
- const answer = value || defaultValue;
- setStatus('loading');
- const isValid = required && !answer ? 'You must provide a value' : await validate(answer);
- if (isValid === true) {
- setValue(answer);
- setStatus('done');
- done(answer);
- }
- else {
- if (theme.validationFailureMode === 'clear') {
- setValue('');
- }
- else {
- // Reset the readline line value to the previous value. On line event, the value
- // get cleared, forcing the user to re-enter the value instead of fixing it.
- rl.write(value);
- }
- setError(isValid || 'You must provide a valid value');
- setStatus('idle');
- }
- }
- else if ((0, core_1.isBackspaceKey)(key) && !value) {
- setDefaultValue(undefined);
- }
- else if (key.name === 'tab' && !value) {
- setDefaultValue(undefined);
- rl.clearLine(0); // Remove the tab character.
- rl.write(defaultValue);
- setValue(defaultValue);
- }
- else {
- setValue(rl.line);
- setError(undefined);
- }
- });
- // If prefill is set to 'editable' cut out the default value and paste into current state and the user's cli buffer
- // They can edit the value immediately instead of needing to press 'tab'
- (0, core_1.useEffect)((rl) => {
- if (prefill === 'editable' && defaultValue) {
- rl.write(defaultValue);
- setValue(defaultValue);
- }
- }, []);
- const message = theme.style.message(config.message, status);
- let formattedValue = value;
- if (typeof config.transformer === 'function') {
- formattedValue = config.transformer(value, { isFinal: status === 'done' });
- }
- else if (status === 'done') {
- formattedValue = theme.style.answer(value);
- }
- let defaultStr;
- if (defaultValue && status !== 'done' && !value) {
- defaultStr = theme.style.defaultAnswer(defaultValue);
- }
- let error = '';
- if (errorMsg) {
- error = theme.style.error(errorMsg);
- }
- return [
- [prefix, message, defaultStr, formattedValue]
- .filter((v) => v !== undefined)
- .join(' '),
- error,
- ];
-});
diff --git a/node_modules/@inquirer/input/dist/commonjs/package.json b/node_modules/@inquirer/input/dist/commonjs/package.json
deleted file mode 100755
index 5bbefff..0000000
--- a/node_modules/@inquirer/input/dist/commonjs/package.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "type": "commonjs"
-}
diff --git a/node_modules/@inquirer/input/dist/esm/index.d.ts b/node_modules/@inquirer/input/dist/esm/index.d.ts
deleted file mode 100755
index 1047c3b..0000000
--- a/node_modules/@inquirer/input/dist/esm/index.d.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-import { type Theme } from '@inquirer/core';
-import type { PartialDeep } from '@inquirer/type';
-type InputTheme = {
- validationFailureMode: 'keep' | 'clear';
-};
-type InputConfig = {
- message: string;
- default?: string;
- prefill?: 'tab' | 'editable';
- required?: boolean;
- transformer?: (value: string, { isFinal }: {
- isFinal: boolean;
- }) => string;
- validate?: (value: string) => boolean | string | Promise;
- theme?: PartialDeep>;
-};
-declare const _default: import("@inquirer/type").Prompt;
-export default _default;
diff --git a/node_modules/@inquirer/input/dist/esm/index.js b/node_modules/@inquirer/input/dist/esm/index.js
deleted file mode 100755
index 1cfd3e1..0000000
--- a/node_modules/@inquirer/input/dist/esm/index.js
+++ /dev/null
@@ -1,84 +0,0 @@
-import { createPrompt, useState, useKeypress, useEffect, usePrefix, isEnterKey, isBackspaceKey, makeTheme, } from '@inquirer/core';
-const inputTheme = {
- validationFailureMode: 'keep',
-};
-export default createPrompt((config, done) => {
- const { required, validate = () => true, prefill = 'tab' } = config;
- const theme = makeTheme(inputTheme, config.theme);
- const [status, setStatus] = useState('idle');
- const [defaultValue = '', setDefaultValue] = useState(config.default);
- const [errorMsg, setError] = useState();
- const [value, setValue] = useState('');
- const prefix = usePrefix({ status, theme });
- useKeypress(async (key, rl) => {
- // Ignore keypress while our prompt is doing other processing.
- if (status !== 'idle') {
- return;
- }
- if (isEnterKey(key)) {
- const answer = value || defaultValue;
- setStatus('loading');
- const isValid = required && !answer ? 'You must provide a value' : await validate(answer);
- if (isValid === true) {
- setValue(answer);
- setStatus('done');
- done(answer);
- }
- else {
- if (theme.validationFailureMode === 'clear') {
- setValue('');
- }
- else {
- // Reset the readline line value to the previous value. On line event, the value
- // get cleared, forcing the user to re-enter the value instead of fixing it.
- rl.write(value);
- }
- setError(isValid || 'You must provide a valid value');
- setStatus('idle');
- }
- }
- else if (isBackspaceKey(key) && !value) {
- setDefaultValue(undefined);
- }
- else if (key.name === 'tab' && !value) {
- setDefaultValue(undefined);
- rl.clearLine(0); // Remove the tab character.
- rl.write(defaultValue);
- setValue(defaultValue);
- }
- else {
- setValue(rl.line);
- setError(undefined);
- }
- });
- // If prefill is set to 'editable' cut out the default value and paste into current state and the user's cli buffer
- // They can edit the value immediately instead of needing to press 'tab'
- useEffect((rl) => {
- if (prefill === 'editable' && defaultValue) {
- rl.write(defaultValue);
- setValue(defaultValue);
- }
- }, []);
- const message = theme.style.message(config.message, status);
- let formattedValue = value;
- if (typeof config.transformer === 'function') {
- formattedValue = config.transformer(value, { isFinal: status === 'done' });
- }
- else if (status === 'done') {
- formattedValue = theme.style.answer(value);
- }
- let defaultStr;
- if (defaultValue && status !== 'done' && !value) {
- defaultStr = theme.style.defaultAnswer(defaultValue);
- }
- let error = '';
- if (errorMsg) {
- error = theme.style.error(errorMsg);
- }
- return [
- [prefix, message, defaultStr, formattedValue]
- .filter((v) => v !== undefined)
- .join(' '),
- error,
- ];
-});
diff --git a/node_modules/@inquirer/input/dist/esm/package.json b/node_modules/@inquirer/input/dist/esm/package.json
deleted file mode 100755
index 3dbc1ca..0000000
--- a/node_modules/@inquirer/input/dist/esm/package.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "type": "module"
-}
diff --git a/node_modules/@inquirer/input/package.json b/node_modules/@inquirer/input/package.json
deleted file mode 100755
index fa05c60..0000000
--- a/node_modules/@inquirer/input/package.json
+++ /dev/null
@@ -1,109 +0,0 @@
-{
- "name": "@inquirer/input",
- "version": "4.2.1",
- "description": "Inquirer input text prompt",
- "keywords": [
- "answer",
- "answers",
- "ask",
- "base",
- "cli",
- "command",
- "command-line",
- "confirm",
- "enquirer",
- "generate",
- "generator",
- "hyper",
- "input",
- "inquire",
- "inquirer",
- "interface",
- "iterm",
- "javascript",
- "menu",
- "node",
- "nodejs",
- "prompt",
- "promptly",
- "prompts",
- "question",
- "readline",
- "scaffold",
- "scaffolder",
- "scaffolding",
- "stdin",
- "stdout",
- "terminal",
- "tty",
- "ui",
- "yeoman",
- "yo",
- "zsh"
- ],
- "homepage": "https://github.com/SBoudrias/Inquirer.js/blob/main/packages/input/README.md",
- "repository": {
- "type": "git",
- "url": "https://github.com/SBoudrias/Inquirer.js.git"
- },
- "license": "MIT",
- "author": "Simon Boudrias ",
- "sideEffects": false,
- "type": "module",
- "exports": {
- "./package.json": "./package.json",
- ".": {
- "import": {
- "types": "./dist/esm/index.d.ts",
- "default": "./dist/esm/index.js"
- },
- "require": {
- "types": "./dist/commonjs/index.d.ts",
- "default": "./dist/commonjs/index.js"
- }
- }
- },
- "main": "./dist/commonjs/index.js",
- "module": "./dist/esm/index.js",
- "types": "./dist/commonjs/index.d.ts",
- "files": [
- "dist"
- ],
- "scripts": {
- "attw": "attw --pack",
- "tsc": "tshy"
- },
- "dependencies": {
- "@inquirer/core": "^10.1.15",
- "@inquirer/type": "^3.0.8"
- },
- "devDependencies": {
- "@arethetypeswrong/cli": "^0.18.2",
- "@inquirer/testing": "^2.1.49",
- "tshy": "^3.0.2"
- },
- "engines": {
- "node": ">=18"
- },
- "publishConfig": {
- "access": "public"
- },
- "tshy": {
- "exclude": [
- "src/**/*.test.ts"
- ],
- "exports": {
- "./package.json": "./package.json",
- ".": "./src/index.ts"
- }
- },
- "peerDependencies": {
- "@types/node": ">=18"
- },
- "peerDependenciesMeta": {
- "@types/node": {
- "optional": true
- }
- },
- "gitHead": "c1a755fe8b50377b685ea5951e0794985ce8d356"
-}
diff --git a/node_modules/@inquirer/number/LICENSE b/node_modules/@inquirer/number/LICENSE
deleted file mode 100755
index f718698..0000000
--- a/node_modules/@inquirer/number/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-Copyright (c) 2025 Simon Boudrias
-
-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:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-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.
diff --git a/node_modules/@inquirer/number/README.md b/node_modules/@inquirer/number/README.md
deleted file mode 100755
index 00c0ae3..0000000
--- a/node_modules/@inquirer/number/README.md
+++ /dev/null
@@ -1,105 +0,0 @@
-# `@inquirer/number`
-
-Interactive free number input component for command line interfaces. Supports validation, filtering, transformation, etc.
-
-# Special Thanks
-
-
-
-[](https://graphite.dev/?utm_source=npmjs&utm_medium=repo&utm_campaign=inquirerjs)
-
-### [Graphite is the AI developer productivity platform helping teams on GitHub ship higher quality software, faster](https://graphite.dev/?utm_source=npmjs&utm_medium=repo&utm_campaign=inquirerjs)
-
-
-
-# Installation
-
-
-
- npm |
- yarn |
-
-
-
-
-```sh
-npm install @inquirer/prompts
-```
-
- |
-
-
-```sh
-yarn add @inquirer/prompts
-```
-
- |
-
-
-Or |
-
-
-
-
-```sh
-npm install @inquirer/number
-```
-
- |
-
-
-```sh
-yarn add @inquirer/number
-```
-
- |
-
-
-
-# Usage
-
-```js
-import { number } from '@inquirer/prompts';
-// Or
-// import number from '@inquirer/number';
-
-const answer = await number({ message: 'Enter your age' });
-```
-
-## Options
-
-| Property | Type | Required | Description |
-| -------- | -------------------------------------------------------------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| message | `string` | yes | The question to ask |
-| default | `number` | no | Default value if no answer is provided (clear it by pressing backspace) |
-| min | `number` | no | The minimum value to accept for this input. |
-| max | `number` | no | The maximum value to accept for this input. |
-| step | `number \| 'any'` | no | The step option is a number that specifies the granularity that the value must adhere to. Only values which are equal to the basis for stepping (min if specified) are valid. This value defaults to 1, meaning by default the prompt will only allow integers. |
-| required | `boolean` | no | Defaults to `false`. If set to true, `undefined` (empty) will not be accepted for this. |
-| validate | `(number \| undefined) => boolean \| string \| Promise` | no | On submit, validate the filtered answered content. When returning a string, it'll be used as the error message displayed to the user. Note: returning a rejected promise, we'll assume a code error happened and crash. |
-| theme | [See Theming](#Theming) | no | Customize look of the prompt. |
-
-## Theming
-
-You can theme a prompt by passing a `theme` object option. The theme object only need to includes the keys you wish to modify, we'll fallback on the defaults for the rest.
-
-```ts
-type Theme = {
- prefix: string | { idle: string; done: string };
- spinner: {
- interval: number;
- frames: string[];
- };
- style: {
- answer: (text: string) => string;
- message: (text: string, status: 'idle' | 'done' | 'loading') => string;
- error: (text: string) => string;
- defaultAnswer: (text: string) => string;
- };
-};
-```
-
-# License
-
-Copyright (c) 2023 Simon Boudrias (twitter: [@vaxilart](https://twitter.com/Vaxilart))
-Licensed under the MIT license.
diff --git a/node_modules/@inquirer/number/dist/commonjs/index.d.ts b/node_modules/@inquirer/number/dist/commonjs/index.d.ts
deleted file mode 100755
index 470dccb..0000000
--- a/node_modules/@inquirer/number/dist/commonjs/index.d.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-import { type Theme } from '@inquirer/core';
-import type { PartialDeep } from '@inquirer/type';
-declare const _default: (config: {
- message: string;
- default?: number | undefined;
- min?: number | undefined;
- max?: number | undefined;
- step?: number | "any" | undefined;
- required?: Required | undefined;
- validate?: ((value: Required extends true ? number : number | undefined) => boolean | string | Promise) | undefined;
- theme?: PartialDeep | undefined;
-}, context?: import("@inquirer/type").Context) => Promise & {
- cancel: () => void;
-};
-export default _default;
diff --git a/node_modules/@inquirer/number/dist/commonjs/index.js b/node_modules/@inquirer/number/dist/commonjs/index.js
deleted file mode 100755
index e086813..0000000
--- a/node_modules/@inquirer/number/dist/commonjs/index.js
+++ /dev/null
@@ -1,96 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-const core_1 = require("@inquirer/core");
-function isStepOf(value, step, min) {
- const valuePow = value * Math.pow(10, 6);
- const stepPow = step * Math.pow(10, 6);
- const minPow = min * Math.pow(10, 6);
- return (valuePow - (Number.isFinite(min) ? minPow : 0)) % stepPow === 0;
-}
-function validateNumber(value, { min, max, step, }) {
- if (value == null || Number.isNaN(value)) {
- return false;
- }
- else if (value < min || value > max) {
- return `Value must be between ${min} and ${max}`;
- }
- else if (step !== 'any' && !isStepOf(value, step, min)) {
- return `Value must be a multiple of ${step}${Number.isFinite(min) ? ` starting from ${min}` : ''}`;
- }
- return true;
-}
-exports.default = (0, core_1.createPrompt)((config, done) => {
- const { validate = () => true, min = -Infinity, max = Infinity, step = 1, required = false, } = config;
- const theme = (0, core_1.makeTheme)(config.theme);
- const [status, setStatus] = (0, core_1.useState)('idle');
- const [value, setValue] = (0, core_1.useState)(''); // store the input value as string and convert to number on "Enter"
- // Ignore default if not valid.
- const validDefault = validateNumber(config.default, { min, max, step }) === true
- ? config.default?.toString()
- : undefined;
- const [defaultValue = '', setDefaultValue] = (0, core_1.useState)(validDefault);
- const [errorMsg, setError] = (0, core_1.useState)();
- const prefix = (0, core_1.usePrefix)({ status, theme });
- (0, core_1.useKeypress)(async (key, rl) => {
- // Ignore keypress while our prompt is doing other processing.
- if (status !== 'idle') {
- return;
- }
- if ((0, core_1.isEnterKey)(key)) {
- const input = value || defaultValue;
- const answer = input === '' ? undefined : Number(input);
- setStatus('loading');
- let isValid = true;
- if (required || answer != null) {
- isValid = validateNumber(answer, { min, max, step });
- }
- if (isValid === true) {
- isValid = await validate(answer);
- }
- if (isValid === true) {
- setValue(String(answer ?? ''));
- setStatus('done');
- done(answer);
- }
- else {
- // Reset the readline line value to the previous value. On line event, the value
- // get cleared, forcing the user to re-enter the value instead of fixing it.
- rl.write(value);
- setError(isValid || 'You must provide a valid numeric value');
- setStatus('idle');
- }
- }
- else if ((0, core_1.isBackspaceKey)(key) && !value) {
- setDefaultValue(undefined);
- }
- else if (key.name === 'tab' && !value) {
- setDefaultValue(undefined);
- rl.clearLine(0); // Remove the tab character.
- rl.write(defaultValue);
- setValue(defaultValue);
- }
- else {
- setValue(rl.line);
- setError(undefined);
- }
- });
- const message = theme.style.message(config.message, status);
- let formattedValue = value;
- if (status === 'done') {
- formattedValue = theme.style.answer(value);
- }
- let defaultStr;
- if (defaultValue && status !== 'done' && !value) {
- defaultStr = theme.style.defaultAnswer(defaultValue);
- }
- let error = '';
- if (errorMsg) {
- error = theme.style.error(errorMsg);
- }
- return [
- [prefix, message, defaultStr, formattedValue]
- .filter((v) => v !== undefined)
- .join(' '),
- error,
- ];
-});
diff --git a/node_modules/@inquirer/number/dist/commonjs/package.json b/node_modules/@inquirer/number/dist/commonjs/package.json
deleted file mode 100755
index 5bbefff..0000000
--- a/node_modules/@inquirer/number/dist/commonjs/package.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "type": "commonjs"
-}
diff --git a/node_modules/@inquirer/number/dist/esm/index.d.ts b/node_modules/@inquirer/number/dist/esm/index.d.ts
deleted file mode 100755
index 470dccb..0000000
--- a/node_modules/@inquirer/number/dist/esm/index.d.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-import { type Theme } from '@inquirer/core';
-import type { PartialDeep } from '@inquirer/type';
-declare const _default: (config: {
- message: string;
- default?: number | undefined;
- min?: number | undefined;
- max?: number | undefined;
- step?: number | "any" | undefined;
- required?: Required | undefined;
- validate?: ((value: Required extends true ? number : number | undefined) => boolean | string | Promise) | undefined;
- theme?: PartialDeep | undefined;
-}, context?: import("@inquirer/type").Context) => Promise & {
- cancel: () => void;
-};
-export default _default;
diff --git a/node_modules/@inquirer/number/dist/esm/index.js b/node_modules/@inquirer/number/dist/esm/index.js
deleted file mode 100755
index d1309b2..0000000
--- a/node_modules/@inquirer/number/dist/esm/index.js
+++ /dev/null
@@ -1,94 +0,0 @@
-import { createPrompt, useState, useKeypress, usePrefix, isEnterKey, isBackspaceKey, makeTheme, } from '@inquirer/core';
-function isStepOf(value, step, min) {
- const valuePow = value * Math.pow(10, 6);
- const stepPow = step * Math.pow(10, 6);
- const minPow = min * Math.pow(10, 6);
- return (valuePow - (Number.isFinite(min) ? minPow : 0)) % stepPow === 0;
-}
-function validateNumber(value, { min, max, step, }) {
- if (value == null || Number.isNaN(value)) {
- return false;
- }
- else if (value < min || value > max) {
- return `Value must be between ${min} and ${max}`;
- }
- else if (step !== 'any' && !isStepOf(value, step, min)) {
- return `Value must be a multiple of ${step}${Number.isFinite(min) ? ` starting from ${min}` : ''}`;
- }
- return true;
-}
-export default createPrompt((config, done) => {
- const { validate = () => true, min = -Infinity, max = Infinity, step = 1, required = false, } = config;
- const theme = makeTheme(config.theme);
- const [status, setStatus] = useState('idle');
- const [value, setValue] = useState(''); // store the input value as string and convert to number on "Enter"
- // Ignore default if not valid.
- const validDefault = validateNumber(config.default, { min, max, step }) === true
- ? config.default?.toString()
- : undefined;
- const [defaultValue = '', setDefaultValue] = useState(validDefault);
- const [errorMsg, setError] = useState();
- const prefix = usePrefix({ status, theme });
- useKeypress(async (key, rl) => {
- // Ignore keypress while our prompt is doing other processing.
- if (status !== 'idle') {
- return;
- }
- if (isEnterKey(key)) {
- const input = value || defaultValue;
- const answer = input === '' ? undefined : Number(input);
- setStatus('loading');
- let isValid = true;
- if (required || answer != null) {
- isValid = validateNumber(answer, { min, max, step });
- }
- if (isValid === true) {
- isValid = await validate(answer);
- }
- if (isValid === true) {
- setValue(String(answer ?? ''));
- setStatus('done');
- done(answer);
- }
- else {
- // Reset the readline line value to the previous value. On line event, the value
- // get cleared, forcing the user to re-enter the value instead of fixing it.
- rl.write(value);
- setError(isValid || 'You must provide a valid numeric value');
- setStatus('idle');
- }
- }
- else if (isBackspaceKey(key) && !value) {
- setDefaultValue(undefined);
- }
- else if (key.name === 'tab' && !value) {
- setDefaultValue(undefined);
- rl.clearLine(0); // Remove the tab character.
- rl.write(defaultValue);
- setValue(defaultValue);
- }
- else {
- setValue(rl.line);
- setError(undefined);
- }
- });
- const message = theme.style.message(config.message, status);
- let formattedValue = value;
- if (status === 'done') {
- formattedValue = theme.style.answer(value);
- }
- let defaultStr;
- if (defaultValue && status !== 'done' && !value) {
- defaultStr = theme.style.defaultAnswer(defaultValue);
- }
- let error = '';
- if (errorMsg) {
- error = theme.style.error(errorMsg);
- }
- return [
- [prefix, message, defaultStr, formattedValue]
- .filter((v) => v !== undefined)
- .join(' '),
- error,
- ];
-});
diff --git a/node_modules/@inquirer/number/dist/esm/package.json b/node_modules/@inquirer/number/dist/esm/package.json
deleted file mode 100755
index 3dbc1ca..0000000
--- a/node_modules/@inquirer/number/dist/esm/package.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "type": "module"
-}
diff --git a/node_modules/@inquirer/number/package.json b/node_modules/@inquirer/number/package.json
deleted file mode 100755
index 063384d..0000000
--- a/node_modules/@inquirer/number/package.json
+++ /dev/null
@@ -1,109 +0,0 @@
-{
- "name": "@inquirer/number",
- "version": "3.0.17",
- "description": "Inquirer number prompt",
- "keywords": [
- "answer",
- "answers",
- "ask",
- "base",
- "cli",
- "command",
- "command-line",
- "confirm",
- "enquirer",
- "generate",
- "generator",
- "hyper",
- "input",
- "inquire",
- "inquirer",
- "interface",
- "iterm",
- "javascript",
- "menu",
- "node",
- "nodejs",
- "prompt",
- "promptly",
- "prompts",
- "question",
- "readline",
- "scaffold",
- "scaffolder",
- "scaffolding",
- "stdin",
- "stdout",
- "terminal",
- "tty",
- "ui",
- "yeoman",
- "yo",
- "zsh"
- ],
- "homepage": "https://github.com/SBoudrias/Inquirer.js/blob/main/packages/number/README.md",
- "repository": {
- "type": "git",
- "url": "https://github.com/SBoudrias/Inquirer.js.git"
- },
- "license": "MIT",
- "author": "Simon Boudrias ",
- "sideEffects": false,
- "type": "module",
- "exports": {
- "./package.json": "./package.json",
- ".": {
- "import": {
- "types": "./dist/esm/index.d.ts",
- "default": "./dist/esm/index.js"
- },
- "require": {
- "types": "./dist/commonjs/index.d.ts",
- "default": "./dist/commonjs/index.js"
- }
- }
- },
- "main": "./dist/commonjs/index.js",
- "module": "./dist/esm/index.js",
- "types": "./dist/commonjs/index.d.ts",
- "files": [
- "dist"
- ],
- "scripts": {
- "attw": "attw --pack",
- "tsc": "tshy"
- },
- "dependencies": {
- "@inquirer/core": "^10.1.15",
- "@inquirer/type": "^3.0.8"
- },
- "devDependencies": {
- "@arethetypeswrong/cli": "^0.18.2",
- "@inquirer/testing": "^2.1.49",
- "tshy": "^3.0.2"
- },
- "engines": {
- "node": ">=18"
- },
- "publishConfig": {
- "access": "public"
- },
- "tshy": {
- "exclude": [
- "src/**/*.test.ts"
- ],
- "exports": {
- "./package.json": "./package.json",
- ".": "./src/index.ts"
- }
- },
- "peerDependencies": {
- "@types/node": ">=18"
- },
- "peerDependenciesMeta": {
- "@types/node": {
- "optional": true
- }
- },
- "gitHead": "c1a755fe8b50377b685ea5951e0794985ce8d356"
-}
diff --git a/node_modules/@inquirer/password/LICENSE b/node_modules/@inquirer/password/LICENSE
deleted file mode 100755
index f718698..0000000
--- a/node_modules/@inquirer/password/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-Copyright (c) 2025 Simon Boudrias
-
-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:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-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.
diff --git a/node_modules/@inquirer/password/README.md b/node_modules/@inquirer/password/README.md
deleted file mode 100755
index f9d1eae..0000000
--- a/node_modules/@inquirer/password/README.md
+++ /dev/null
@@ -1,103 +0,0 @@
-# `@inquirer/password`
-
-Interactive password input component for command line interfaces. Supports input validation and masked or transparent modes.
-
-
-
-# Special Thanks
-
-
-
-[](https://graphite.dev/?utm_source=npmjs&utm_medium=repo&utm_campaign=inquirerjs)
-
-### [Graphite is the AI developer productivity platform helping teams on GitHub ship higher quality software, faster](https://graphite.dev/?utm_source=npmjs&utm_medium=repo&utm_campaign=inquirerjs)
-
-
-
-# Installation
-
-
-
- npm |
- yarn |
-
-
-
-
-```sh
-npm install @inquirer/prompts
-```
-
- |
-
-
-```sh
-yarn add @inquirer/prompts
-```
-
- |
-
-
-Or |
-
-
-
-
-```sh
-npm install @inquirer/password
-```
-
- |
-
-
-```sh
-yarn add @inquirer/password
-```
-
- |
-
-
-
-# Usage
-
-```js
-import { password } from '@inquirer/prompts';
-// Or
-// import password from '@inquirer/password';
-
-const answer = await password({ message: 'Enter your name' });
-```
-
-## Options
-
-| Property | Type | Required | Description |
-| -------- | ----------------------------------------------------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| message | `string` | yes | The question to ask |
-| mask | `boolean` | no | Show a `*` mask over the input or keep it transparent |
-| validate | `string => boolean \| string \| Promise` | no | On submit, validate the filtered answered content. When returning a string, it'll be used as the error message displayed to the user. Note: returning a rejected promise, we'll assume a code error happened and crash. |
-| theme | [See Theming](#Theming) | no | Customize look of the prompt. |
-
-## Theming
-
-You can theme a prompt by passing a `theme` object option. The theme object only need to includes the keys you wish to modify, we'll fallback on the defaults for the rest.
-
-```ts
-type Theme = {
- prefix: string | { idle: string; done: string };
- spinner: {
- interval: number;
- frames: string[];
- };
- style: {
- answer: (text: string) => string;
- message: (text: string, status: 'idle' | 'done' | 'loading') => string;
- error: (text: string) => string;
- help: (text: string) => string;
- };
-};
-```
-
-# License
-
-Copyright (c) 2023 Simon Boudrias (twitter: [@vaxilart](https://twitter.com/Vaxilart))
-Licensed under the MIT license.
diff --git a/node_modules/@inquirer/password/dist/commonjs/index.d.ts b/node_modules/@inquirer/password/dist/commonjs/index.d.ts
deleted file mode 100755
index 897bcea..0000000
--- a/node_modules/@inquirer/password/dist/commonjs/index.d.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-import { type Theme } from '@inquirer/core';
-import type { PartialDeep } from '@inquirer/type';
-type PasswordConfig = {
- message: string;
- mask?: boolean | string;
- validate?: (value: string) => boolean | string | Promise;
- theme?: PartialDeep;
-};
-declare const _default: import("@inquirer/type").Prompt;
-export default _default;
diff --git a/node_modules/@inquirer/password/dist/commonjs/index.js b/node_modules/@inquirer/password/dist/commonjs/index.js
deleted file mode 100755
index 118e8ec..0000000
--- a/node_modules/@inquirer/password/dist/commonjs/index.js
+++ /dev/null
@@ -1,60 +0,0 @@
-"use strict";
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-const core_1 = require("@inquirer/core");
-const ansi_escapes_1 = __importDefault(require("ansi-escapes"));
-exports.default = (0, core_1.createPrompt)((config, done) => {
- const { validate = () => true } = config;
- const theme = (0, core_1.makeTheme)(config.theme);
- const [status, setStatus] = (0, core_1.useState)('idle');
- const [errorMsg, setError] = (0, core_1.useState)();
- const [value, setValue] = (0, core_1.useState)('');
- const prefix = (0, core_1.usePrefix)({ status, theme });
- (0, core_1.useKeypress)(async (key, rl) => {
- // Ignore keypress while our prompt is doing other processing.
- if (status !== 'idle') {
- return;
- }
- if ((0, core_1.isEnterKey)(key)) {
- const answer = value;
- setStatus('loading');
- const isValid = await validate(answer);
- if (isValid === true) {
- setValue(answer);
- setStatus('done');
- done(answer);
- }
- else {
- // Reset the readline line value to the previous value. On line event, the value
- // get cleared, forcing the user to re-enter the value instead of fixing it.
- rl.write(value);
- setError(isValid || 'You must provide a valid value');
- setStatus('idle');
- }
- }
- else {
- setValue(rl.line);
- setError(undefined);
- }
- });
- const message = theme.style.message(config.message, status);
- let formattedValue = '';
- let helpTip;
- if (config.mask) {
- const maskChar = typeof config.mask === 'string' ? config.mask : '*';
- formattedValue = maskChar.repeat(value.length);
- }
- else if (status !== 'done') {
- helpTip = `${theme.style.help('[input is masked]')}${ansi_escapes_1.default.cursorHide}`;
- }
- if (status === 'done') {
- formattedValue = theme.style.answer(formattedValue);
- }
- let error = '';
- if (errorMsg) {
- error = theme.style.error(errorMsg);
- }
- return [[prefix, message, config.mask ? formattedValue : helpTip].join(' '), error];
-});
diff --git a/node_modules/@inquirer/password/dist/commonjs/package.json b/node_modules/@inquirer/password/dist/commonjs/package.json
deleted file mode 100755
index 5bbefff..0000000
--- a/node_modules/@inquirer/password/dist/commonjs/package.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "type": "commonjs"
-}
diff --git a/node_modules/@inquirer/password/dist/esm/index.d.ts b/node_modules/@inquirer/password/dist/esm/index.d.ts
deleted file mode 100755
index 897bcea..0000000
--- a/node_modules/@inquirer/password/dist/esm/index.d.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-import { type Theme } from '@inquirer/core';
-import type { PartialDeep } from '@inquirer/type';
-type PasswordConfig = {
- message: string;
- mask?: boolean | string;
- validate?: (value: string) => boolean | string | Promise;
- theme?: PartialDeep;
-};
-declare const _default: import("@inquirer/type").Prompt;
-export default _default;
diff --git a/node_modules/@inquirer/password/dist/esm/index.js b/node_modules/@inquirer/password/dist/esm/index.js
deleted file mode 100755
index 4e3e929..0000000
--- a/node_modules/@inquirer/password/dist/esm/index.js
+++ /dev/null
@@ -1,55 +0,0 @@
-import { createPrompt, useState, useKeypress, usePrefix, isEnterKey, makeTheme, } from '@inquirer/core';
-import ansiEscapes from 'ansi-escapes';
-export default createPrompt((config, done) => {
- const { validate = () => true } = config;
- const theme = makeTheme(config.theme);
- const [status, setStatus] = useState('idle');
- const [errorMsg, setError] = useState();
- const [value, setValue] = useState('');
- const prefix = usePrefix({ status, theme });
- useKeypress(async (key, rl) => {
- // Ignore keypress while our prompt is doing other processing.
- if (status !== 'idle') {
- return;
- }
- if (isEnterKey(key)) {
- const answer = value;
- setStatus('loading');
- const isValid = await validate(answer);
- if (isValid === true) {
- setValue(answer);
- setStatus('done');
- done(answer);
- }
- else {
- // Reset the readline line value to the previous value. On line event, the value
- // get cleared, forcing the user to re-enter the value instead of fixing it.
- rl.write(value);
- setError(isValid || 'You must provide a valid value');
- setStatus('idle');
- }
- }
- else {
- setValue(rl.line);
- setError(undefined);
- }
- });
- const message = theme.style.message(config.message, status);
- let formattedValue = '';
- let helpTip;
- if (config.mask) {
- const maskChar = typeof config.mask === 'string' ? config.mask : '*';
- formattedValue = maskChar.repeat(value.length);
- }
- else if (status !== 'done') {
- helpTip = `${theme.style.help('[input is masked]')}${ansiEscapes.cursorHide}`;
- }
- if (status === 'done') {
- formattedValue = theme.style.answer(formattedValue);
- }
- let error = '';
- if (errorMsg) {
- error = theme.style.error(errorMsg);
- }
- return [[prefix, message, config.mask ? formattedValue : helpTip].join(' '), error];
-});
diff --git a/node_modules/@inquirer/password/dist/esm/package.json b/node_modules/@inquirer/password/dist/esm/package.json
deleted file mode 100755
index 3dbc1ca..0000000
--- a/node_modules/@inquirer/password/dist/esm/package.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "type": "module"
-}
diff --git a/node_modules/@inquirer/password/package.json b/node_modules/@inquirer/password/package.json
deleted file mode 100755
index dbaf279..0000000
--- a/node_modules/@inquirer/password/package.json
+++ /dev/null
@@ -1,110 +0,0 @@
-{
- "name": "@inquirer/password",
- "version": "4.0.17",
- "description": "Inquirer password prompt",
- "keywords": [
- "answer",
- "answers",
- "ask",
- "base",
- "cli",
- "command",
- "command-line",
- "confirm",
- "enquirer",
- "generate",
- "generator",
- "hyper",
- "input",
- "inquire",
- "inquirer",
- "interface",
- "iterm",
- "javascript",
- "menu",
- "node",
- "nodejs",
- "prompt",
- "promptly",
- "prompts",
- "question",
- "readline",
- "scaffold",
- "scaffolder",
- "scaffolding",
- "stdin",
- "stdout",
- "terminal",
- "tty",
- "ui",
- "yeoman",
- "yo",
- "zsh"
- ],
- "homepage": "https://github.com/SBoudrias/Inquirer.js/blob/main/packages/password/README.md",
- "repository": {
- "type": "git",
- "url": "https://github.com/SBoudrias/Inquirer.js.git"
- },
- "license": "MIT",
- "author": "Simon Boudrias ",
- "sideEffects": false,
- "type": "module",
- "exports": {
- "./package.json": "./package.json",
- ".": {
- "import": {
- "types": "./dist/esm/index.d.ts",
- "default": "./dist/esm/index.js"
- },
- "require": {
- "types": "./dist/commonjs/index.d.ts",
- "default": "./dist/commonjs/index.js"
- }
- }
- },
- "main": "./dist/commonjs/index.js",
- "module": "./dist/esm/index.js",
- "types": "./dist/commonjs/index.d.ts",
- "files": [
- "dist"
- ],
- "scripts": {
- "attw": "attw --pack",
- "tsc": "tshy"
- },
- "dependencies": {
- "@inquirer/core": "^10.1.15",
- "@inquirer/type": "^3.0.8",
- "ansi-escapes": "^4.3.2"
- },
- "devDependencies": {
- "@arethetypeswrong/cli": "^0.18.2",
- "@inquirer/testing": "^2.1.49",
- "tshy": "^3.0.2"
- },
- "engines": {
- "node": ">=18"
- },
- "publishConfig": {
- "access": "public"
- },
- "tshy": {
- "exclude": [
- "src/**/*.test.ts"
- ],
- "exports": {
- "./package.json": "./package.json",
- ".": "./src/index.ts"
- }
- },
- "peerDependencies": {
- "@types/node": ">=18"
- },
- "peerDependenciesMeta": {
- "@types/node": {
- "optional": true
- }
- },
- "gitHead": "c1a755fe8b50377b685ea5951e0794985ce8d356"
-}
diff --git a/node_modules/@inquirer/prompts/LICENSE b/node_modules/@inquirer/prompts/LICENSE
deleted file mode 100755
index f718698..0000000
--- a/node_modules/@inquirer/prompts/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-Copyright (c) 2025 Simon Boudrias
-
-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:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-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.
diff --git a/node_modules/@inquirer/prompts/README.md b/node_modules/@inquirer/prompts/README.md
deleted file mode 100755
index 0fcb8cd..0000000
--- a/node_modules/@inquirer/prompts/README.md
+++ /dev/null
@@ -1,504 +0,0 @@
-
-
-# Inquirer
-
-[](https://www.npmjs.com/package/@inquirer/prompts)
-[](https://app.fossa.com/projects/git%2Bgithub.com%2FSBoudrias%2FInquirer.js?ref=badge_shield)
-
-A collection of common interactive command line user interfaces.
-
-
-
-Give it a try in your own terminal!
-
-```sh
-npx @inquirer/demo@latest
-```
-
-# Special Thanks
-
-
-
-[](https://graphite.dev/?utm_source=npmjs&utm_medium=repo&utm_campaign=inquirerjs)
-
-### [Graphite is the AI developer productivity platform helping teams on GitHub ship higher quality software, faster](https://graphite.dev/?utm_source=npmjs&utm_medium=repo&utm_campaign=inquirerjs)
-
-
-
-# Installation
-
-
-
- npm |
- yarn |
-
-
-
-
-```sh
-npm install @inquirer/prompts
-```
-
- |
-
-
-```sh
-yarn add @inquirer/prompts
-```
-
- |
-
-
-
-> [!NOTE]
-> Inquirer recently underwent a rewrite from the ground up to reduce the package size and improve performance. The previous version of the package is still maintained (though not actively developed), and offered hundreds of community contributed prompts that might not have been migrated to the latest API. If this is what you're looking for, the [previous package is over here](https://github.com/SBoudrias/Inquirer.js/tree/main/packages/inquirer).
-
-# Usage
-
-```js
-import { input } from '@inquirer/prompts';
-
-const answer = await input({ message: 'Enter your name' });
-```
-
-# Prompts
-
-## [Input](https://github.com/SBoudrias/Inquirer.js/tree/main/packages/input)
-
-
-
-```js
-import { input } from '@inquirer/prompts';
-```
-
-[See documentation](https://github.com/SBoudrias/Inquirer.js/tree/main/packages/input) for usage example and options documentation.
-
-## [Select](https://github.com/SBoudrias/Inquirer.js/tree/main/packages/select)
-
-
-
-```js
-import { select } from '@inquirer/prompts';
-```
-
-[See documentation](https://github.com/SBoudrias/Inquirer.js/tree/main/packages/select) for usage example and options documentation.
-
-## [Checkbox](https://github.com/SBoudrias/Inquirer.js/tree/main/packages/checkbox)
-
-
-
-```js
-import { checkbox } from '@inquirer/prompts';
-```
-
-[See documentation](https://github.com/SBoudrias/Inquirer.js/tree/main/packages/checkbox) for usage example and options documentation.
-
-## [Confirm](https://github.com/SBoudrias/Inquirer.js/tree/main/packages/confirm)
-
-
-
-```js
-import { confirm } from '@inquirer/prompts';
-```
-
-[See documentation](https://github.com/SBoudrias/Inquirer.js/tree/main/packages/confirm) for usage example and options documentation.
-
-## [Search](https://github.com/SBoudrias/Inquirer.js/tree/main/packages/search)
-
-
-
-```js
-import { search } from '@inquirer/prompts';
-```
-
-[See documentation](https://github.com/SBoudrias/Inquirer.js/tree/main/packages/search) for usage example and options documentation.
-
-## [Password](https://github.com/SBoudrias/Inquirer.js/tree/main/packages/password)
-
-
-
-```js
-import { password } from '@inquirer/prompts';
-```
-
-[See documentation](https://github.com/SBoudrias/Inquirer.js/tree/main/packages/password) for usage example and options documentation.
-
-## [Expand](https://github.com/SBoudrias/Inquirer.js/tree/main/packages/expand)
-
-
-
-
-```js
-import { expand } from '@inquirer/prompts';
-```
-
-[See documentation](https://github.com/SBoudrias/Inquirer.js/tree/main/packages/expand) for usage example and options documentation.
-
-## [Editor](https://github.com/SBoudrias/Inquirer.js/tree/main/packages/editor)
-
-Launches an instance of the users preferred editor on a temporary file. Once the user exits their editor, the content of the temporary file is read as the answer. The editor used is determined by reading the $VISUAL or $EDITOR environment variables. If neither of those are present, the OS default is used (notepad on Windows, vim on Mac or Linux.)
-
-```js
-import { editor } from '@inquirer/prompts';
-```
-
-[See documentation](https://github.com/SBoudrias/Inquirer.js/tree/main/packages/editor) for usage example and options documentation.
-
-## [Number](https://github.com/SBoudrias/Inquirer.js/tree/main/packages/number)
-
-Very similar to the `input` prompt, but with built-in number validation configuration option.
-
-```js
-import { number } from '@inquirer/prompts';
-```
-
-[See documentation](https://github.com/SBoudrias/Inquirer.js/tree/main/packages/number) for usage example and options documentation.
-
-## [Raw List](https://github.com/SBoudrias/Inquirer.js/tree/main/packages/rawlist)
-
-
-
-```js
-import { rawlist } from '@inquirer/prompts';
-```
-
-[See documentation](https://github.com/SBoudrias/Inquirer.js/tree/main/packages/rawlist) for usage example and options documentation.
-
-# Create your own prompts
-
-The [API documentation is over here](https://github.com/SBoudrias/Inquirer.js/tree/main/packages/core), and our [testing utilities here](https://github.com/SBoudrias/Inquirer.js/tree/main/packages/testing).
-
-# Advanced usage
-
-All inquirer prompts are a function taking 2 arguments. The first argument is the prompt configuration (unique to each prompt). The second is providing contextual or runtime configuration.
-
-The context options are:
-
-| Property | Type | Required | Description |
-| ----------------- | ----------------------- | -------- | ------------------------------------------------------------ |
-| input | `NodeJS.ReadableStream` | no | The stdin stream (defaults to `process.stdin`) |
-| output | `NodeJS.WritableStream` | no | The stdout stream (defaults to `process.stdout`) |
-| clearPromptOnDone | `boolean` | no | If true, we'll clear the screen after the prompt is answered |
-| signal | `AbortSignal` | no | An AbortSignal to cancel prompts asynchronously |
-
-Example:
-
-```js
-import { confirm } from '@inquirer/prompts';
-
-const allowEmail = await confirm(
- { message: 'Do you allow us to send you email?' },
- {
- output: new Stream.Writable({
- write(chunk, _encoding, next) {
- // Do something
- next();
- },
- }),
- clearPromptOnDone: true,
- },
-);
-```
-
-## Canceling prompt
-
-This can be done with either an `AbortController` or `AbortSignal`.
-
-```js
-// Example 1: using built-in AbortSignal utilities
-import { confirm } from '@inquirer/prompts';
-
-const answer = await confirm({ ... }, { signal: AbortSignal.timeout(5000) });
-```
-
-```js
-// Example 2: implementing custom cancellation with an AbortController
-import { confirm } from '@inquirer/prompts';
-
-const controller = new AbortController();
-setTimeout(() => {
- controller.abort(); // This will reject the promise
-}, 5000);
-
-const answer = await confirm({ ... }, { signal: controller.signal });
-```
-
-# Recipes
-
-## Handling `ctrl+c` gracefully
-
-When a user press `ctrl+c` to exit a prompt, Inquirer rejects the prompt promise. This is the expected behavior in order to allow your program to teardown/cleanup its environment. When using `async/await`, rejected promises throw their error. When unhandled, those errors print their stack trace in your user's terminal.
-
-```
-ExitPromptError: User force closed the prompt with 0 null
- at file://example/packages/core/dist/esm/lib/create-prompt.js:55:20
- at Emitter.emit (file://example/node_modules/signal-exit/dist/mjs/index.js:67:19)
- at #processEmit (file://example/node_modules/signal-exit/dist/mjs/index.js:236:27)
- at #process.emit (file://example/node_modules/signal-exit/dist/mjs/index.js:187:37)
- at process.callbackTrampoline (node:internal/async_hooks:130:17)
-```
-
-This isn't a great UX, which is why we highly recommend you to handle those errors gracefully.
-
-First option is to wrap your scripts in `try/catch`; like [we do in our demo program](https://github.com/SBoudrias/Inquirer.js/blob/649e78147cbb6390a162ff842d4b21d53a233472/packages/demo/src/index.ts#L89-L95). Or handle the error in your CLI framework mechanism; for example [`Clipanion catch` method](https://mael.dev/clipanion/docs/errors#custom-error-handling).
-
-Lastly, you could handle the error globally with an event listener and silence it.
-
-```ts
-process.on('uncaughtException', (error) => {
- if (error instanceof Error && error.name === 'ExitPromptError') {
- console.log('👋 until next time!');
- } else {
- // Rethrow unknown errors
- throw error;
- }
-});
-```
-
-## Get answers in an object
-
-When asking many questions, you might not want to keep one variable per answer everywhere. In which case, you can put the answer inside an object.
-
-```js
-import { input, confirm } from '@inquirer/prompts';
-
-const answers = {
- firstName: await input({ message: "What's your first name?" }),
- allowEmail: await confirm({ message: 'Do you allow us to send you email?' }),
-};
-
-console.log(answers.firstName);
-```
-
-## Ask a question conditionally
-
-Maybe some questions depend on some other question's answer.
-
-```js
-import { input, confirm } from '@inquirer/prompts';
-
-const allowEmail = await confirm({ message: 'Do you allow us to send you email?' });
-
-let email;
-if (allowEmail) {
- email = await input({ message: 'What is your email address' });
-}
-```
-
-## Get default value after timeout
-
-```js
-import { input } from '@inquirer/prompts';
-
-const answer = await input(
- { message: 'Enter a value (timing out in 5 seconds)' },
- { signal: AbortSignal.timeout(5000) },
-).catch((error) => {
- if (error.name === 'AbortPromptError') {
- return 'Default value';
- }
-
- throw error;
-});
-```
-
-## Using as pre-commit/git hooks, or scripts
-
-By default scripts ran from tools like `husky`/`lint-staged` might not run inside an interactive shell. In non-interactive shell, Inquirer cannot run, and users cannot send keypress events to the process.
-
-For it to work, you must make sure you start a `tty` (or "interactive" input stream.)
-
-If those scripts are set within your `package.json`, you can define the stream like so:
-
-```json
- "precommit": "my-script < /dev/tty"
-```
-
-Or if in a shell script file, you'll do it like so: (on Windows that's likely your only option)
-
-```sh
-#!/bin/sh
-exec < /dev/tty
-
-node my-script.js
-```
-
-## Using with nodemon
-
-When using inquirer prompts with nodemon, you need to pass the `--no-stdin` flag for everything to work as expected.
-
-```sh
-npx nodemon ./packages/demo/demos/password.mjs --no-stdin
-```
-
-Note that for most of you, you'll be able to use the new watch-mode built-in Node. This mode works out of the box with inquirer.
-
-```sh
-# One of depending on your need
-node --watch script.js
-node --watch-path=packages/ packages/demo/
-```
-
-## Wait for config
-
-Maybe some question configuration require to await a value.
-
-```js
-import { confirm } from '@inquirer/prompts';
-
-const answer = await confirm({ message: await getMessage() });
-```
-
-## Usage with `npx` within bash scripts
-
-You can use Inquirer prompts directly in the shell via [`npx`](https://docs.npmjs.com/cli/v8/commands/npx), which is useful for quick scripts or `package.json` commands.
-
-A community library, [@inquirer-cli](https://github.com/fishballapp/inquirer-cli), exposes each prompt as a standalone CLI.
-
-For example, to prompt for input:
-
-```bash
-name=$(npx -y @inquirer-cli/input -r "What is your name?")
-echo "Hello, $name!"
-```
-
-Or to create an interactive version bump:
-
-```bash
-$ npm version $(npx -y @inquirer-cli/select -c patch -c minor -c major 'Select Version')
-```
-
-Find out more: [@inquirer-cli](https://github.com/fishballapp/inquirer-cli).
-
-# Community prompts
-
-If you created a cool prompt, [send us a PR adding it](https://github.com/SBoudrias/Inquirer.js/edit/main/packages/prompts/README.md) to the list below!
-
-[**Interactive List Prompt**](https://github.com/pgibler/inquirer-interactive-list-prompt)
-Select a choice either with arrow keys + Enter or by pressing a key associated with a choice.
-
-```
-? Choose an option:
-> Run command (D)
- Quit (Q)
-```
-
-[**Action Select Prompt**](https://github.com/zenithlight/inquirer-action-select)
-Choose an item from a list and choose an action to take by pressing a key.
-
-```
-? Choose a file Open Edit Delete
-❯ image.png
- audio.mp3
- code.py
-```
-
-[**Table Multiple Prompt**](https://github.com/Bartheleway/inquirer-table-multiple)
-Select multiple answer from a table display.
-
-```sh
-Choose between choices? (Press to select, to move rows,
- to move columns)
-
-┌──────────┬───────┬───────┐
-│ 1-2 of 2 │ Yes? │ No? |
-├──────────┼───────┼───────┤
-│ Choice 1 │ [ ◯ ] │ ◯ |
-├──────────┼───────┼───────┤
-│ Choice 2 │ ◯ │ ◯ |
-└──────────┴───────┴───────┘
-
-```
-
-[**Toggle Prompt**](https://github.com/skarahoda/inquirer-toggle)
-Confirm with a toggle. Select a choice with arrow keys + Enter.
-
-```
-? Do you want to continue? no / yes
-```
-
-[**Sortable Checkbox Prompt**](https://github.com/th0r/inquirer-sortable-checkbox)
-The same as built-in checkbox prompt, but also allowing to reorder choices using ctrl+up/down.
-
-```
-? Which PRs and in what order would you like to merge? (Press to select, to toggle all, to invert selection, to move item up, to move item down, and to proceed)
-❯ ◯ PR 1
- ◯ PR 2
- ◯ PR 3
-```
-
-[**Multi Select Prompt**](https://github.com/jeffwcx/inquirer-select-pro)
-
-An inquirer select that supports multiple selections and filtering/searching.
-
-```
-? Choose your OS, IDE, PL, etc. (Press to select/deselect, to remove selected
-option, to select option)
->> vue
->[ ] vue
- [ ] vuejs
- [ ] fuelphp
- [ ] venv
- [ ] vercel
- (Use arrow keys to reveal more options)
-```
-
-[**File Selector Prompt**](https://github.com/br14n-sol/inquirer-file-selector)
-A file selector, you can navigate freely between directories, choose what type of files you want to allow and it is fully customizable.
-
-```sh
-? Select a file:
-/main/path/
-├── folder1/
-├── folder2/
-├── folder3/
-├── file1.txt
-├── file2.pdf
-└── file3.jpg (not allowed)
-━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
-Use ↑↓ to navigate through the list
-Press to navigate to the parent directory
-Press to select a file or navigate to a directory
-```
-
-[**Select Prompt with Stateful Banner**](https://github.com/patik/inquirer-select-with-state)
-The same as built-in select prompt, but it also displays a banner above the prompt which can be updated with a `setState` function. For example, it can display the results of a long-running command without making the user wait to see the prompt.
-
-Initial display:
-
-```
-Directory size: loading...
-? Choose an option
-❯ Rename
- Copy
- Delete
-```
-
-A moment later:
-
-```
-Directory size: 123M
-? Choose an option
-❯ Rename
- Copy
- Delete
-```
-
-[**Ordered Checkbox Prompt**](https://github.com/kyou-izumi/inquirer-ordered-checkbox)
-A sortable checkbox prompt that maintains the order of selection. Perfect for prioritizing tasks or ranking options.
-
-```
-? Configure your development workflow:
- [1] Set up CI/CD pipeline
-❯ [3] Code quality tools
- [ ] Documentation
- [2] Performance monitoring
- ──────────────
-- Legacy system (disabled)
-(Linting, formatting, and analysis)
-```
-
-# License
-
-Copyright (c) 2023 Simon Boudrias (twitter: [@vaxilart](https://twitter.com/Vaxilart))
-Licensed under the MIT license.
diff --git a/node_modules/@inquirer/prompts/dist/commonjs/index.d.ts b/node_modules/@inquirer/prompts/dist/commonjs/index.d.ts
deleted file mode 100755
index 1926375..0000000
--- a/node_modules/@inquirer/prompts/dist/commonjs/index.d.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-export { default as checkbox, Separator } from '@inquirer/checkbox';
-export { default as editor } from '@inquirer/editor';
-export { default as confirm } from '@inquirer/confirm';
-export { default as input } from '@inquirer/input';
-export { default as number } from '@inquirer/number';
-export { default as expand } from '@inquirer/expand';
-export { default as rawlist } from '@inquirer/rawlist';
-export { default as password } from '@inquirer/password';
-export { default as search } from '@inquirer/search';
-export { default as select } from '@inquirer/select';
diff --git a/node_modules/@inquirer/prompts/dist/commonjs/index.js b/node_modules/@inquirer/prompts/dist/commonjs/index.js
deleted file mode 100755
index dc61cf3..0000000
--- a/node_modules/@inquirer/prompts/dist/commonjs/index.js
+++ /dev/null
@@ -1,27 +0,0 @@
-"use strict";
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.select = exports.search = exports.password = exports.rawlist = exports.expand = exports.number = exports.input = exports.confirm = exports.editor = exports.Separator = exports.checkbox = void 0;
-var checkbox_1 = require("@inquirer/checkbox");
-Object.defineProperty(exports, "checkbox", { enumerable: true, get: function () { return __importDefault(checkbox_1).default; } });
-Object.defineProperty(exports, "Separator", { enumerable: true, get: function () { return checkbox_1.Separator; } });
-var editor_1 = require("@inquirer/editor");
-Object.defineProperty(exports, "editor", { enumerable: true, get: function () { return __importDefault(editor_1).default; } });
-var confirm_1 = require("@inquirer/confirm");
-Object.defineProperty(exports, "confirm", { enumerable: true, get: function () { return __importDefault(confirm_1).default; } });
-var input_1 = require("@inquirer/input");
-Object.defineProperty(exports, "input", { enumerable: true, get: function () { return __importDefault(input_1).default; } });
-var number_1 = require("@inquirer/number");
-Object.defineProperty(exports, "number", { enumerable: true, get: function () { return __importDefault(number_1).default; } });
-var expand_1 = require("@inquirer/expand");
-Object.defineProperty(exports, "expand", { enumerable: true, get: function () { return __importDefault(expand_1).default; } });
-var rawlist_1 = require("@inquirer/rawlist");
-Object.defineProperty(exports, "rawlist", { enumerable: true, get: function () { return __importDefault(rawlist_1).default; } });
-var password_1 = require("@inquirer/password");
-Object.defineProperty(exports, "password", { enumerable: true, get: function () { return __importDefault(password_1).default; } });
-var search_1 = require("@inquirer/search");
-Object.defineProperty(exports, "search", { enumerable: true, get: function () { return __importDefault(search_1).default; } });
-var select_1 = require("@inquirer/select");
-Object.defineProperty(exports, "select", { enumerable: true, get: function () { return __importDefault(select_1).default; } });
diff --git a/node_modules/@inquirer/prompts/dist/commonjs/package.json b/node_modules/@inquirer/prompts/dist/commonjs/package.json
deleted file mode 100755
index 5bbefff..0000000
--- a/node_modules/@inquirer/prompts/dist/commonjs/package.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "type": "commonjs"
-}
diff --git a/node_modules/@inquirer/prompts/dist/esm/index.d.ts b/node_modules/@inquirer/prompts/dist/esm/index.d.ts
deleted file mode 100755
index 1926375..0000000
--- a/node_modules/@inquirer/prompts/dist/esm/index.d.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-export { default as checkbox, Separator } from '@inquirer/checkbox';
-export { default as editor } from '@inquirer/editor';
-export { default as confirm } from '@inquirer/confirm';
-export { default as input } from '@inquirer/input';
-export { default as number } from '@inquirer/number';
-export { default as expand } from '@inquirer/expand';
-export { default as rawlist } from '@inquirer/rawlist';
-export { default as password } from '@inquirer/password';
-export { default as search } from '@inquirer/search';
-export { default as select } from '@inquirer/select';
diff --git a/node_modules/@inquirer/prompts/dist/esm/index.js b/node_modules/@inquirer/prompts/dist/esm/index.js
deleted file mode 100755
index 1926375..0000000
--- a/node_modules/@inquirer/prompts/dist/esm/index.js
+++ /dev/null
@@ -1,10 +0,0 @@
-export { default as checkbox, Separator } from '@inquirer/checkbox';
-export { default as editor } from '@inquirer/editor';
-export { default as confirm } from '@inquirer/confirm';
-export { default as input } from '@inquirer/input';
-export { default as number } from '@inquirer/number';
-export { default as expand } from '@inquirer/expand';
-export { default as rawlist } from '@inquirer/rawlist';
-export { default as password } from '@inquirer/password';
-export { default as search } from '@inquirer/search';
-export { default as select } from '@inquirer/select';
diff --git a/node_modules/@inquirer/prompts/dist/esm/package.json b/node_modules/@inquirer/prompts/dist/esm/package.json
deleted file mode 100755
index 3dbc1ca..0000000
--- a/node_modules/@inquirer/prompts/dist/esm/package.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "type": "module"
-}
diff --git a/node_modules/@inquirer/prompts/package.json b/node_modules/@inquirer/prompts/package.json
deleted file mode 100755
index f233fec..0000000
--- a/node_modules/@inquirer/prompts/package.json
+++ /dev/null
@@ -1,116 +0,0 @@
-{
- "name": "@inquirer/prompts",
- "version": "7.8.1",
- "description": "Inquirer prompts, combined in a single package",
- "keywords": [
- "answer",
- "answers",
- "ask",
- "base",
- "cli",
- "command",
- "command-line",
- "confirm",
- "enquirer",
- "generate",
- "generator",
- "hyper",
- "input",
- "inquire",
- "inquirer",
- "interface",
- "iterm",
- "javascript",
- "menu",
- "node",
- "nodejs",
- "prompt",
- "promptly",
- "prompts",
- "question",
- "readline",
- "scaffold",
- "scaffolder",
- "scaffolding",
- "stdin",
- "stdout",
- "terminal",
- "tty",
- "ui",
- "yeoman",
- "yo",
- "zsh",
- "types",
- "typescript"
- ],
- "homepage": "https://github.com/SBoudrias/Inquirer.js/blob/main/packages/prompts/README.md",
- "repository": {
- "type": "git",
- "url": "https://github.com/SBoudrias/Inquirer.js.git"
- },
- "license": "MIT",
- "author": "Simon Boudrias ",
- "sideEffects": false,
- "type": "module",
- "exports": {
- "./package.json": "./package.json",
- ".": {
- "import": {
- "types": "./dist/esm/index.d.ts",
- "default": "./dist/esm/index.js"
- },
- "require": {
- "types": "./dist/commonjs/index.d.ts",
- "default": "./dist/commonjs/index.js"
- }
- }
- },
- "main": "./dist/commonjs/index.js",
- "module": "./dist/esm/index.js",
- "types": "./dist/commonjs/index.d.ts",
- "files": [
- "dist"
- ],
- "scripts": {
- "attw": "attw --pack",
- "tsc": "tshy"
- },
- "dependencies": {
- "@inquirer/checkbox": "^4.2.0",
- "@inquirer/confirm": "^5.1.14",
- "@inquirer/editor": "^4.2.16",
- "@inquirer/expand": "^4.0.17",
- "@inquirer/input": "^4.2.1",
- "@inquirer/number": "^3.0.17",
- "@inquirer/password": "^4.0.17",
- "@inquirer/rawlist": "^4.1.5",
- "@inquirer/search": "^3.1.0",
- "@inquirer/select": "^4.3.1"
- },
- "devDependencies": {
- "@arethetypeswrong/cli": "^0.18.2",
- "@inquirer/type": "^3.0.8",
- "tshy": "^3.0.2"
- },
- "engines": {
- "node": ">=18"
- },
- "tshy": {
- "exclude": [
- "src/**/*.test.ts"
- ],
- "exports": {
- "./package.json": "./package.json",
- ".": "./src/index.ts"
- }
- },
- "peerDependencies": {
- "@types/node": ">=18"
- },
- "peerDependenciesMeta": {
- "@types/node": {
- "optional": true
- }
- },
- "gitHead": "15b1e9c929abf5a46930e825e5fbafc50a9f31f6"
-}
diff --git a/node_modules/@inquirer/rawlist/LICENSE b/node_modules/@inquirer/rawlist/LICENSE
deleted file mode 100755
index f718698..0000000
--- a/node_modules/@inquirer/rawlist/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-Copyright (c) 2025 Simon Boudrias
-
-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:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-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.
diff --git a/node_modules/@inquirer/rawlist/README.md b/node_modules/@inquirer/rawlist/README.md
deleted file mode 100755
index 538301b..0000000
--- a/node_modules/@inquirer/rawlist/README.md
+++ /dev/null
@@ -1,134 +0,0 @@
-# `@inquirer/rawlist`
-
-Simple interactive command line prompt to display a raw list of choices (single value select) with minimal interaction.
-
-
-
-# Special Thanks
-
-
-
-[](https://graphite.dev/?utm_source=npmjs&utm_medium=repo&utm_campaign=inquirerjs)
-
-### [Graphite is the AI developer productivity platform helping teams on GitHub ship higher quality software, faster](https://graphite.dev/?utm_source=npmjs&utm_medium=repo&utm_campaign=inquirerjs)
-
-
-
-# Installation
-
-
-
- npm |
- yarn |
-
-
-
-
-```sh
-npm install @inquirer/prompts
-```
-
- |
-
-
-```sh
-yarn add @inquirer/prompts
-```
-
- |
-
-
-Or |
-
-
-
-
-```sh
-npm install @inquirer/rawlist
-```
-
- |
-
-
-```sh
-yarn add @inquirer/rawlist
-```
-
- |
-
-
-
-# Usage
-
-```js
-import { rawlist } from '@inquirer/prompts';
-// Or
-// import rawlist from '@inquirer/rawlist';
-
-const answer = await rawlist({
- message: 'Select a package manager',
- choices: [
- { name: 'npm', value: 'npm' },
- { name: 'yarn', value: 'yarn' },
- { name: 'pnpm', value: 'pnpm' },
- ],
-});
-```
-
-## Options
-
-| Property | Type | Required | Description |
-| -------- | ----------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------- |
-| message | `string` | yes | The question to ask |
-| choices | `Choice[]` | yes | List of the available choices. |
-| loop | `boolean` | no | Defaults to `true`. When set to `false`, the cursor will be constrained to the top and bottom of the choice list without looping. |
-| theme | [See Theming](#Theming) | no | Customize look of the prompt. |
-
-`Separator` objects can be used in the `choices` array to render non-selectable lines in the choice list. By default it'll render a line, but you can provide the text as argument (`new Separator('-- Dependencies --')`). This option is often used to add labels to groups within long list of options.
-
-### `Choice` object
-
-The `Choice` object is typed as
-
-```ts
-type Choice = {
- value: Value;
- name?: string;
- short?: string;
- key?: string;
-};
-```
-
-Here's each property:
-
-- `value`: The value is what will be returned by `await rawlist()`.
-- `name`: This is the string displayed in the choice list.
-- `short`: Once the prompt is done (press enter), we'll use `short` if defined to render next to the question. By default we'll use `name`.
-- `key`: The key of the choice. Displayed as `key) name`.
-
-`choices` can also be an array of string, in which case the string will be used both as the `value` and the `name`.
-
-## Theming
-
-You can theme a prompt by passing a `theme` object option. The theme object only need to includes the keys you wish to modify, we'll fallback on the defaults for the rest.
-
-```ts
-type Theme = {
- prefix: string | { idle: string; done: string };
- spinner: {
- interval: number;
- frames: string[];
- };
- style: {
- answer: (text: string) => string;
- message: (text: string, status: 'idle' | 'done' | 'loading') => string;
- error: (text: string) => string;
- highlight: (text: string) => string;
- };
-};
-```
-
-# License
-
-Copyright (c) 2023 Simon Boudrias (twitter: [@vaxilart](https://twitter.com/Vaxilart))
-Licensed under the MIT license.
diff --git a/node_modules/@inquirer/rawlist/dist/commonjs/index.d.ts b/node_modules/@inquirer/rawlist/dist/commonjs/index.d.ts
deleted file mode 100755
index f92fc87..0000000
--- a/node_modules/@inquirer/rawlist/dist/commonjs/index.d.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-import { Separator, type Theme } from '@inquirer/core';
-import type { PartialDeep } from '@inquirer/type';
-type Choice = {
- value: Value;
- name?: string;
- short?: string;
- key?: string;
-};
-declare const _default: (config: {
- message: string;
- choices: readonly (string | Separator)[] | readonly (Separator | Choice)[];
- loop?: boolean | undefined;
- theme?: PartialDeep | undefined;
-}, context?: import("@inquirer/type").Context) => Promise & {
- cancel: () => void;
-};
-export default _default;
-export { Separator } from '@inquirer/core';
diff --git a/node_modules/@inquirer/rawlist/dist/commonjs/index.js b/node_modules/@inquirer/rawlist/dist/commonjs/index.js
deleted file mode 100755
index 5a047f3..0000000
--- a/node_modules/@inquirer/rawlist/dist/commonjs/index.js
+++ /dev/null
@@ -1,132 +0,0 @@
-"use strict";
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.Separator = void 0;
-const core_1 = require("@inquirer/core");
-const yoctocolors_cjs_1 = __importDefault(require("yoctocolors-cjs"));
-const numberRegex = /\d+/;
-function isSelectableChoice(choice) {
- return choice != null && !core_1.Separator.isSeparator(choice);
-}
-function normalizeChoices(choices) {
- let index = 0;
- return choices.map((choice) => {
- if (core_1.Separator.isSeparator(choice))
- return choice;
- index += 1;
- if (typeof choice === 'string') {
- return {
- value: choice,
- name: choice,
- short: choice,
- key: String(index),
- };
- }
- const name = choice.name ?? String(choice.value);
- return {
- value: choice.value,
- name,
- short: choice.short ?? name,
- key: choice.key ?? String(index),
- };
- });
-}
-function getSelectedChoice(input, choices) {
- let selectedChoice;
- const selectableChoices = choices.filter(isSelectableChoice);
- if (numberRegex.test(input)) {
- const answer = Number.parseInt(input, 10) - 1;
- selectedChoice = selectableChoices[answer];
- }
- else {
- selectedChoice = selectableChoices.find((choice) => choice.key === input);
- }
- return selectedChoice
- ? [selectedChoice, choices.indexOf(selectedChoice)]
- : [undefined, undefined];
-}
-exports.default = (0, core_1.createPrompt)((config, done) => {
- const { loop = true } = config;
- const choices = (0, core_1.useMemo)(() => normalizeChoices(config.choices), [config.choices]);
- const [status, setStatus] = (0, core_1.useState)('idle');
- const [value, setValue] = (0, core_1.useState)('');
- const [errorMsg, setError] = (0, core_1.useState)();
- const theme = (0, core_1.makeTheme)(config.theme);
- const prefix = (0, core_1.usePrefix)({ status, theme });
- const bounds = (0, core_1.useMemo)(() => {
- const first = choices.findIndex(isSelectableChoice);
- const last = choices.findLastIndex(isSelectableChoice);
- if (first === -1) {
- throw new core_1.ValidationError('[select prompt] No selectable choices. All choices are disabled.');
- }
- return { first, last };
- }, [choices]);
- (0, core_1.useKeypress)((key, rl) => {
- if ((0, core_1.isEnterKey)(key)) {
- const [selectedChoice] = getSelectedChoice(value, choices);
- if (isSelectableChoice(selectedChoice)) {
- setValue(selectedChoice.short);
- setStatus('done');
- done(selectedChoice.value);
- }
- else if (value === '') {
- setError('Please input a value');
- }
- else {
- setError(`"${yoctocolors_cjs_1.default.red(value)}" isn't an available option`);
- }
- }
- else if (key.name === 'up' || key.name === 'down') {
- rl.clearLine(0);
- const [selectedChoice, active] = getSelectedChoice(value, choices);
- if (!selectedChoice) {
- const firstChoice = key.name === 'down'
- ? choices.find(isSelectableChoice)
- : choices.findLast(isSelectableChoice);
- setValue(firstChoice.key);
- }
- else if (loop ||
- (key.name === 'up' && active !== bounds.first) ||
- (key.name === 'down' && active !== bounds.last)) {
- const offset = key.name === 'up' ? -1 : 1;
- let next = active;
- do {
- next = (next + offset + choices.length) % choices.length;
- } while (!isSelectableChoice(choices[next]));
- setValue(choices[next].key);
- }
- }
- else {
- setValue(rl.line);
- setError(undefined);
- }
- });
- const message = theme.style.message(config.message, status);
- if (status === 'done') {
- return `${prefix} ${message} ${theme.style.answer(value)}`;
- }
- const choicesStr = choices
- .map((choice) => {
- if (core_1.Separator.isSeparator(choice)) {
- return ` ${choice.separator}`;
- }
- const line = ` ${choice.key}) ${choice.name}`;
- if (choice.key === value.toLowerCase()) {
- return theme.style.highlight(line);
- }
- return line;
- })
- .join('\n');
- let error = '';
- if (errorMsg) {
- error = theme.style.error(errorMsg);
- }
- return [
- `${prefix} ${message} ${value}`,
- [choicesStr, error].filter(Boolean).join('\n'),
- ];
-});
-var core_2 = require("@inquirer/core");
-Object.defineProperty(exports, "Separator", { enumerable: true, get: function () { return core_2.Separator; } });
diff --git a/node_modules/@inquirer/rawlist/dist/commonjs/package.json b/node_modules/@inquirer/rawlist/dist/commonjs/package.json
deleted file mode 100755
index 5bbefff..0000000
--- a/node_modules/@inquirer/rawlist/dist/commonjs/package.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "type": "commonjs"
-}
diff --git a/node_modules/@inquirer/rawlist/dist/esm/index.d.ts b/node_modules/@inquirer/rawlist/dist/esm/index.d.ts
deleted file mode 100755
index f92fc87..0000000
--- a/node_modules/@inquirer/rawlist/dist/esm/index.d.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-import { Separator, type Theme } from '@inquirer/core';
-import type { PartialDeep } from '@inquirer/type';
-type Choice = {
- value: Value;
- name?: string;
- short?: string;
- key?: string;
-};
-declare const _default: (config: {
- message: string;
- choices: readonly (string | Separator)[] | readonly (Separator | Choice)[];
- loop?: boolean | undefined;
- theme?: PartialDeep | undefined;
-}, context?: import("@inquirer/type").Context) => Promise & {
- cancel: () => void;
-};
-export default _default;
-export { Separator } from '@inquirer/core';
diff --git a/node_modules/@inquirer/rawlist/dist/esm/index.js b/node_modules/@inquirer/rawlist/dist/esm/index.js
deleted file mode 100755
index 8f2dee2..0000000
--- a/node_modules/@inquirer/rawlist/dist/esm/index.js
+++ /dev/null
@@ -1,125 +0,0 @@
-import { createPrompt, useMemo, useState, useKeypress, usePrefix, isEnterKey, Separator, makeTheme, ValidationError, } from '@inquirer/core';
-import colors from 'yoctocolors-cjs';
-const numberRegex = /\d+/;
-function isSelectableChoice(choice) {
- return choice != null && !Separator.isSeparator(choice);
-}
-function normalizeChoices(choices) {
- let index = 0;
- return choices.map((choice) => {
- if (Separator.isSeparator(choice))
- return choice;
- index += 1;
- if (typeof choice === 'string') {
- return {
- value: choice,
- name: choice,
- short: choice,
- key: String(index),
- };
- }
- const name = choice.name ?? String(choice.value);
- return {
- value: choice.value,
- name,
- short: choice.short ?? name,
- key: choice.key ?? String(index),
- };
- });
-}
-function getSelectedChoice(input, choices) {
- let selectedChoice;
- const selectableChoices = choices.filter(isSelectableChoice);
- if (numberRegex.test(input)) {
- const answer = Number.parseInt(input, 10) - 1;
- selectedChoice = selectableChoices[answer];
- }
- else {
- selectedChoice = selectableChoices.find((choice) => choice.key === input);
- }
- return selectedChoice
- ? [selectedChoice, choices.indexOf(selectedChoice)]
- : [undefined, undefined];
-}
-export default createPrompt((config, done) => {
- const { loop = true } = config;
- const choices = useMemo(() => normalizeChoices(config.choices), [config.choices]);
- const [status, setStatus] = useState('idle');
- const [value, setValue] = useState('');
- const [errorMsg, setError] = useState();
- const theme = makeTheme(config.theme);
- const prefix = usePrefix({ status, theme });
- const bounds = useMemo(() => {
- const first = choices.findIndex(isSelectableChoice);
- const last = choices.findLastIndex(isSelectableChoice);
- if (first === -1) {
- throw new ValidationError('[select prompt] No selectable choices. All choices are disabled.');
- }
- return { first, last };
- }, [choices]);
- useKeypress((key, rl) => {
- if (isEnterKey(key)) {
- const [selectedChoice] = getSelectedChoice(value, choices);
- if (isSelectableChoice(selectedChoice)) {
- setValue(selectedChoice.short);
- setStatus('done');
- done(selectedChoice.value);
- }
- else if (value === '') {
- setError('Please input a value');
- }
- else {
- setError(`"${colors.red(value)}" isn't an available option`);
- }
- }
- else if (key.name === 'up' || key.name === 'down') {
- rl.clearLine(0);
- const [selectedChoice, active] = getSelectedChoice(value, choices);
- if (!selectedChoice) {
- const firstChoice = key.name === 'down'
- ? choices.find(isSelectableChoice)
- : choices.findLast(isSelectableChoice);
- setValue(firstChoice.key);
- }
- else if (loop ||
- (key.name === 'up' && active !== bounds.first) ||
- (key.name === 'down' && active !== bounds.last)) {
- const offset = key.name === 'up' ? -1 : 1;
- let next = active;
- do {
- next = (next + offset + choices.length) % choices.length;
- } while (!isSelectableChoice(choices[next]));
- setValue(choices[next].key);
- }
- }
- else {
- setValue(rl.line);
- setError(undefined);
- }
- });
- const message = theme.style.message(config.message, status);
- if (status === 'done') {
- return `${prefix} ${message} ${theme.style.answer(value)}`;
- }
- const choicesStr = choices
- .map((choice) => {
- if (Separator.isSeparator(choice)) {
- return ` ${choice.separator}`;
- }
- const line = ` ${choice.key}) ${choice.name}`;
- if (choice.key === value.toLowerCase()) {
- return theme.style.highlight(line);
- }
- return line;
- })
- .join('\n');
- let error = '';
- if (errorMsg) {
- error = theme.style.error(errorMsg);
- }
- return [
- `${prefix} ${message} ${value}`,
- [choicesStr, error].filter(Boolean).join('\n'),
- ];
-});
-export { Separator } from '@inquirer/core';
diff --git a/node_modules/@inquirer/rawlist/dist/esm/package.json b/node_modules/@inquirer/rawlist/dist/esm/package.json
deleted file mode 100755
index 3dbc1ca..0000000
--- a/node_modules/@inquirer/rawlist/dist/esm/package.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "type": "module"
-}
diff --git a/node_modules/@inquirer/rawlist/package.json b/node_modules/@inquirer/rawlist/package.json
deleted file mode 100755
index f07286c..0000000
--- a/node_modules/@inquirer/rawlist/package.json
+++ /dev/null
@@ -1,110 +0,0 @@
-{
- "name": "@inquirer/rawlist",
- "version": "4.1.5",
- "description": "Inquirer rawlist prompt",
- "keywords": [
- "answer",
- "answers",
- "ask",
- "base",
- "cli",
- "command",
- "command-line",
- "confirm",
- "enquirer",
- "generate",
- "generator",
- "hyper",
- "input",
- "inquire",
- "inquirer",
- "interface",
- "iterm",
- "javascript",
- "menu",
- "node",
- "nodejs",
- "prompt",
- "promptly",
- "prompts",
- "question",
- "readline",
- "scaffold",
- "scaffolder",
- "scaffolding",
- "stdin",
- "stdout",
- "terminal",
- "tty",
- "ui",
- "yeoman",
- "yo",
- "zsh"
- ],
- "homepage": "https://github.com/SBoudrias/Inquirer.js/blob/main/packages/rawlist/README.md",
- "repository": {
- "type": "git",
- "url": "https://github.com/SBoudrias/Inquirer.js.git"
- },
- "license": "MIT",
- "author": "Simon Boudrias ",
- "sideEffects": false,
- "type": "module",
- "exports": {
- "./package.json": "./package.json",
- ".": {
- "import": {
- "types": "./dist/esm/index.d.ts",
- "default": "./dist/esm/index.js"
- },
- "require": {
- "types": "./dist/commonjs/index.d.ts",
- "default": "./dist/commonjs/index.js"
- }
- }
- },
- "main": "./dist/commonjs/index.js",
- "module": "./dist/esm/index.js",
- "types": "./dist/commonjs/index.d.ts",
- "files": [
- "dist"
- ],
- "scripts": {
- "attw": "attw --pack",
- "tsc": "tshy"
- },
- "dependencies": {
- "@inquirer/core": "^10.1.15",
- "@inquirer/type": "^3.0.8",
- "yoctocolors-cjs": "^2.1.2"
- },
- "devDependencies": {
- "@arethetypeswrong/cli": "^0.18.2",
- "@inquirer/testing": "^2.1.49",
- "tshy": "^3.0.2"
- },
- "engines": {
- "node": ">=18"
- },
- "publishConfig": {
- "access": "public"
- },
- "tshy": {
- "exclude": [
- "src/**/*.test.ts"
- ],
- "exports": {
- "./package.json": "./package.json",
- ".": "./src/index.ts"
- }
- },
- "peerDependencies": {
- "@types/node": ">=18"
- },
- "peerDependenciesMeta": {
- "@types/node": {
- "optional": true
- }
- },
- "gitHead": "c1a755fe8b50377b685ea5951e0794985ce8d356"
-}
diff --git a/node_modules/@inquirer/search/LICENSE b/node_modules/@inquirer/search/LICENSE
deleted file mode 100755
index f718698..0000000
--- a/node_modules/@inquirer/search/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-Copyright (c) 2025 Simon Boudrias
-
-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:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-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.
diff --git a/node_modules/@inquirer/search/README.md b/node_modules/@inquirer/search/README.md
deleted file mode 100755
index b000cdf..0000000
--- a/node_modules/@inquirer/search/README.md
+++ /dev/null
@@ -1,216 +0,0 @@
-# `@inquirer/search`
-
-Interactive search prompt component for command line interfaces.
-
-
-
-# Special Thanks
-
-
-
-[](https://graphite.dev/?utm_source=npmjs&utm_medium=repo&utm_campaign=inquirerjs)
-
-### [Graphite is the AI developer productivity platform helping teams on GitHub ship higher quality software, faster](https://graphite.dev/?utm_source=npmjs&utm_medium=repo&utm_campaign=inquirerjs)
-
-
-
-# Installation
-
-
-
- npm |
- yarn |
-
-
-
-
-```sh
-npm install @inquirer/prompts
-```
-
- |
-
-
-```sh
-yarn add @inquirer/prompts
-```
-
- |
-
-
-
-
-```sh
-npm install @inquirer/search
-```
-
- |
-
-
-```sh
-yarn add @inquirer/search
-```
-
- |
-
-
-
-# Usage
-
-```js
-import { search, Separator } from '@inquirer/prompts';
-// Or
-// import search, { Separator } from '@inquirer/search';
-
-const answer = await search({
- message: 'Select an npm package',
- source: async (input, { signal }) => {
- if (!input) {
- return [];
- }
-
- const response = await fetch(
- `https://registry.npmjs.org/-/v1/search?text=${encodeURIComponent(input)}&size=20`,
- { signal },
- );
- const data = await response.json();
-
- return data.objects.map((pkg) => ({
- name: pkg.package.name,
- value: pkg.package.name,
- description: pkg.package.description,
- }));
- },
-});
-```
-
-## Options
-
-| Property | Type | Required | Description |
-| ------------ | ---------------------------------------------------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| message | `string` | yes | The question to ask |
-| source | `(term: string \| void) => Promise` | yes | This function returns the choices relevant to the search term. |
-| pageSize | `number` | no | By default, lists of choice longer than 7 will be paginated. Use this option to control how many choices will appear on the screen at once. |
-| validate | `Value => boolean \| string \| Promise` | no | On submit, validate the answer. When returning a string, it'll be used as the error message displayed to the user. Note: returning a rejected promise, we'll assume a code error happened and crash. |
-| instructions | `{ navigation: string; pager: string }` | no | Customize the help instructions shown at the bottom of the prompt. |
-| theme | [See Theming](#Theming) | no | Customize look of the prompt. |
-
-### `source` function
-
-The full signature type of `source` is as follow:
-
-```ts
-function(
- term: string | void,
- opt: { signal: AbortSignal },
-): Promise | Separator>>;
-```
-
-When `term` is `undefined`, it means the search term input is empty. You can use this to return default choices, or return an empty array.
-
-Aside from returning the choices:
-
-1. An `AbortSignal` is passed in to cancel ongoing network calls when the search term change.
-2. `Separator`s can be used to organize the list.
-
-### `Choice` object
-
-The `Choice` object is typed as
-
-```ts
-type Choice = {
- value: Value;
- name?: string;
- description?: string;
- short?: string;
- disabled?: boolean | string;
-};
-```
-
-Here's each property:
-
-- `value`: The value is what will be returned by `await search()`.
-- `name`: This is the string displayed in the choice list.
-- `description`: Option for a longer description string that'll appear under the list when the cursor highlight a given choice.
-- `short`: Once the prompt is done (press enter), we'll use `short` if defined to render next to the question. By default we'll use `name`.
-- `disabled`: Disallow the option from being selected. If `disabled` is a string, it'll be used as a help tip explaining why the choice isn't available.
-
-Choices can also be an array of string, in which case the string will be used both as the `value` and the `name`.
-
-### `instructions` object
-
-The `instructions` option allows you to customize the help text displayed at the bottom of the prompt:
-
-- `navigation`: The instruction text shown when all choices fit within the page size (default: "Use arrow keys")
-- `pager`: The instruction text shown when there are more choices than the page size (default: "Use arrow keys to reveal more choices")
-
-### Validation & autocomplete interaction
-
-The validation within the search prompt acts as a signal for the autocomplete feature.
-
-When a list value is submitted and fail validation, the prompt will compare it to the search term. If they're the same, the prompt display the error. If they're not the same, we'll autocomplete the search term to match the value. Doing this will trigger a new search.
-
-You can rely on this behavior to implement progressive autocomplete searches. Where you want the user to narrow the search in a progressive manner.
-
-Pressing `tab` also triggers the term autocomplete.
-
-You can see this behavior in action in [our search demo](https://github.com/SBoudrias/Inquirer.js/blob/main/packages/demo/demos/search.mjs).
-
-## Theming
-
-You can theme a prompt by passing a `theme` object option. The theme object only need to includes the keys you wish to modify, we'll fallback on the defaults for the rest.
-
-```ts
-type Theme = {
- prefix: string | { idle: string; done: string };
- spinner: {
- interval: number;
- frames: string[];
- };
- style: {
- answer: (text: string) => string;
- message: (text: string, status: 'idle' | 'done' | 'loading') => string;
- error: (text: string) => string;
- help: (text: string) => string;
- highlight: (text: string) => string;
- description: (text: string) => string;
- disabled: (text: string) => string;
- searchTerm: (text: string) => string;
- };
- icon: {
- cursor: string;
- };
- helpMode: 'always' | 'never' | 'auto';
-};
-```
-
-### `theme.helpMode`
-
-- `auto` (default): Hide the help tips after an interaction occurs.
-- `always`: The help tips will always show and never hide.
-- `never`: The help tips will never show.
-
-## Recipes
-
-### Debounce search
-
-```js
-import { setTimeout } from 'node:timers/promises';
-import { search } from '@inquirer/prompts';
-
-const answer = await search({
- message: 'Select an npm package',
- source: async (input, { signal }) => {
- await setTimeout(300);
- if (signal.aborted) return [];
-
- // Do the search
- fetch(...)
- },
-});
-```
-
-# License
-
-Copyright (c) 2024 Simon Boudrias (twitter: [@vaxilart](https://twitter.com/Vaxilart))
-Licensed under the MIT license.
diff --git a/node_modules/@inquirer/search/dist/commonjs/index.d.ts b/node_modules/@inquirer/search/dist/commonjs/index.d.ts
deleted file mode 100755
index cdc486f..0000000
--- a/node_modules/@inquirer/search/dist/commonjs/index.d.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-import { Separator, type Theme } from '@inquirer/core';
-import type { PartialDeep } from '@inquirer/type';
-type SearchTheme = {
- icon: {
- cursor: string;
- };
- style: {
- disabled: (text: string) => string;
- searchTerm: (text: string) => string;
- description: (text: string) => string;
- };
- helpMode: 'always' | 'never' | 'auto';
-};
-type Choice = {
- value: Value;
- name?: string;
- description?: string;
- short?: string;
- disabled?: boolean | string;
- type?: never;
-};
-declare const _default: (config: {
- message: string;
- source: (term: string | undefined, opt: {
- signal: AbortSignal;
- }) => readonly (string | Separator)[] | readonly (Separator | Choice)[] | Promise | Promise)[]>;
- validate?: ((value: Value) => boolean | string | Promise) | undefined;
- pageSize?: number | undefined;
- instructions?: {
- navigation: string;
- pager: string;
- } | undefined;
- theme?: PartialDeep> | undefined;
-}, context?: import("@inquirer/type").Context) => Promise & {
- cancel: () => void;
-};
-export default _default;
-export { Separator } from '@inquirer/core';
diff --git a/node_modules/@inquirer/search/dist/commonjs/index.js b/node_modules/@inquirer/search/dist/commonjs/index.js
deleted file mode 100755
index ac80220..0000000
--- a/node_modules/@inquirer/search/dist/commonjs/index.js
+++ /dev/null
@@ -1,193 +0,0 @@
-"use strict";
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.Separator = void 0;
-const core_1 = require("@inquirer/core");
-const yoctocolors_cjs_1 = __importDefault(require("yoctocolors-cjs"));
-const figures_1 = __importDefault(require("@inquirer/figures"));
-const searchTheme = {
- icon: { cursor: figures_1.default.pointer },
- style: {
- disabled: (text) => yoctocolors_cjs_1.default.dim(`- ${text}`),
- searchTerm: (text) => yoctocolors_cjs_1.default.cyan(text),
- description: (text) => yoctocolors_cjs_1.default.cyan(text),
- },
- helpMode: 'auto',
-};
-function isSelectable(item) {
- return !core_1.Separator.isSeparator(item) && !item.disabled;
-}
-function normalizeChoices(choices) {
- return choices.map((choice) => {
- if (core_1.Separator.isSeparator(choice))
- return choice;
- if (typeof choice === 'string') {
- return {
- value: choice,
- name: choice,
- short: choice,
- disabled: false,
- };
- }
- const name = choice.name ?? String(choice.value);
- const normalizedChoice = {
- value: choice.value,
- name,
- short: choice.short ?? name,
- disabled: choice.disabled ?? false,
- };
- if (choice.description) {
- normalizedChoice.description = choice.description;
- }
- return normalizedChoice;
- });
-}
-exports.default = (0, core_1.createPrompt)((config, done) => {
- const { pageSize = 7, validate = () => true } = config;
- const theme = (0, core_1.makeTheme)(searchTheme, config.theme);
- const firstRender = (0, core_1.useRef)(true);
- const [status, setStatus] = (0, core_1.useState)('loading');
- const [searchTerm, setSearchTerm] = (0, core_1.useState)('');
- const [searchResults, setSearchResults] = (0, core_1.useState)([]);
- const [searchError, setSearchError] = (0, core_1.useState)();
- const prefix = (0, core_1.usePrefix)({ status, theme });
- const bounds = (0, core_1.useMemo)(() => {
- const first = searchResults.findIndex(isSelectable);
- const last = searchResults.findLastIndex(isSelectable);
- return { first, last };
- }, [searchResults]);
- const [active = bounds.first, setActive] = (0, core_1.useState)();
- (0, core_1.useEffect)(() => {
- const controller = new AbortController();
- setStatus('loading');
- setSearchError(undefined);
- const fetchResults = async () => {
- try {
- const results = await config.source(searchTerm || undefined, {
- signal: controller.signal,
- });
- if (!controller.signal.aborted) {
- // Reset the pointer
- setActive(undefined);
- setSearchError(undefined);
- setSearchResults(normalizeChoices(results));
- setStatus('idle');
- }
- }
- catch (error) {
- if (!controller.signal.aborted && error instanceof Error) {
- setSearchError(error.message);
- }
- }
- };
- void fetchResults();
- return () => {
- controller.abort();
- };
- }, [searchTerm]);
- // Safe to assume the cursor position never points to a Separator.
- const selectedChoice = searchResults[active];
- (0, core_1.useKeypress)(async (key, rl) => {
- if ((0, core_1.isEnterKey)(key)) {
- if (selectedChoice) {
- setStatus('loading');
- const isValid = await validate(selectedChoice.value);
- setStatus('idle');
- if (isValid === true) {
- setStatus('done');
- done(selectedChoice.value);
- }
- else if (selectedChoice.name === searchTerm) {
- setSearchError(isValid || 'You must provide a valid value');
- }
- else {
- // Reset line with new search term
- rl.write(selectedChoice.name);
- setSearchTerm(selectedChoice.name);
- }
- }
- else {
- // Reset the readline line value to the previous value. On line event, the value
- // get cleared, forcing the user to re-enter the value instead of fixing it.
- rl.write(searchTerm);
- }
- }
- else if (key.name === 'tab' && selectedChoice) {
- rl.clearLine(0); // Remove the tab character.
- rl.write(selectedChoice.name);
- setSearchTerm(selectedChoice.name);
- }
- else if (status !== 'loading' && (key.name === 'up' || key.name === 'down')) {
- rl.clearLine(0);
- if ((key.name === 'up' && active !== bounds.first) ||
- (key.name === 'down' && active !== bounds.last)) {
- const offset = key.name === 'up' ? -1 : 1;
- let next = active;
- do {
- next = (next + offset + searchResults.length) % searchResults.length;
- } while (!isSelectable(searchResults[next]));
- setActive(next);
- }
- }
- else {
- setSearchTerm(rl.line);
- }
- });
- const message = theme.style.message(config.message, status);
- if (active > 0) {
- firstRender.current = false;
- }
- let helpTip = '';
- if (searchResults.length > 1 &&
- (theme.helpMode === 'always' || (theme.helpMode === 'auto' && firstRender.current))) {
- helpTip =
- searchResults.length > pageSize
- ? `\n${theme.style.help(`(${config.instructions?.pager ?? 'Use arrow keys to reveal more choices'})`)}`
- : `\n${theme.style.help(`(${config.instructions?.navigation ?? 'Use arrow keys'})`)}`;
- }
- // TODO: What to do if no results are found? Should we display a message?
- const page = (0, core_1.usePagination)({
- items: searchResults,
- active,
- renderItem({ item, isActive }) {
- if (core_1.Separator.isSeparator(item)) {
- return ` ${item.separator}`;
- }
- if (item.disabled) {
- const disabledLabel = typeof item.disabled === 'string' ? item.disabled : '(disabled)';
- return theme.style.disabled(`${item.name} ${disabledLabel}`);
- }
- const color = isActive ? theme.style.highlight : (x) => x;
- const cursor = isActive ? theme.icon.cursor : ` `;
- return color(`${cursor} ${item.name}`);
- },
- pageSize,
- loop: false,
- });
- let error;
- if (searchError) {
- error = theme.style.error(searchError);
- }
- else if (searchResults.length === 0 && searchTerm !== '' && status === 'idle') {
- error = theme.style.error('No results found');
- }
- let searchStr;
- if (status === 'done' && selectedChoice) {
- const answer = selectedChoice.short;
- return `${prefix} ${message} ${theme.style.answer(answer)}`;
- }
- else {
- searchStr = theme.style.searchTerm(searchTerm);
- }
- const choiceDescription = selectedChoice?.description
- ? `\n${theme.style.description(selectedChoice.description)}`
- : ``;
- return [
- [prefix, message, searchStr].filter(Boolean).join(' '),
- `${error ?? page}${helpTip}${choiceDescription}`,
- ];
-});
-var core_2 = require("@inquirer/core");
-Object.defineProperty(exports, "Separator", { enumerable: true, get: function () { return core_2.Separator; } });
diff --git a/node_modules/@inquirer/search/dist/commonjs/package.json b/node_modules/@inquirer/search/dist/commonjs/package.json
deleted file mode 100755
index 5bbefff..0000000
--- a/node_modules/@inquirer/search/dist/commonjs/package.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "type": "commonjs"
-}
diff --git a/node_modules/@inquirer/search/dist/esm/index.d.ts b/node_modules/@inquirer/search/dist/esm/index.d.ts
deleted file mode 100755
index cdc486f..0000000
--- a/node_modules/@inquirer/search/dist/esm/index.d.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-import { Separator, type Theme } from '@inquirer/core';
-import type { PartialDeep } from '@inquirer/type';
-type SearchTheme = {
- icon: {
- cursor: string;
- };
- style: {
- disabled: (text: string) => string;
- searchTerm: (text: string) => string;
- description: (text: string) => string;
- };
- helpMode: 'always' | 'never' | 'auto';
-};
-type Choice = {
- value: Value;
- name?: string;
- description?: string;
- short?: string;
- disabled?: boolean | string;
- type?: never;
-};
-declare const _default: (config: {
- message: string;
- source: (term: string | undefined, opt: {
- signal: AbortSignal;
- }) => readonly (string | Separator)[] | readonly (Separator | Choice)[] | Promise | Promise)[]>;
- validate?: ((value: Value) => boolean | string | Promise) | undefined;
- pageSize?: number | undefined;
- instructions?: {
- navigation: string;
- pager: string;
- } | undefined;
- theme?: PartialDeep> | undefined;
-}, context?: import("@inquirer/type").Context) => Promise & {
- cancel: () => void;
-};
-export default _default;
-export { Separator } from '@inquirer/core';
diff --git a/node_modules/@inquirer/search/dist/esm/index.js b/node_modules/@inquirer/search/dist/esm/index.js
deleted file mode 100755
index 093043f..0000000
--- a/node_modules/@inquirer/search/dist/esm/index.js
+++ /dev/null
@@ -1,186 +0,0 @@
-import { createPrompt, useState, useKeypress, usePrefix, usePagination, useRef, useEffect, useMemo, isEnterKey, Separator, makeTheme, } from '@inquirer/core';
-import colors from 'yoctocolors-cjs';
-import figures from '@inquirer/figures';
-const searchTheme = {
- icon: { cursor: figures.pointer },
- style: {
- disabled: (text) => colors.dim(`- ${text}`),
- searchTerm: (text) => colors.cyan(text),
- description: (text) => colors.cyan(text),
- },
- helpMode: 'auto',
-};
-function isSelectable(item) {
- return !Separator.isSeparator(item) && !item.disabled;
-}
-function normalizeChoices(choices) {
- return choices.map((choice) => {
- if (Separator.isSeparator(choice))
- return choice;
- if (typeof choice === 'string') {
- return {
- value: choice,
- name: choice,
- short: choice,
- disabled: false,
- };
- }
- const name = choice.name ?? String(choice.value);
- const normalizedChoice = {
- value: choice.value,
- name,
- short: choice.short ?? name,
- disabled: choice.disabled ?? false,
- };
- if (choice.description) {
- normalizedChoice.description = choice.description;
- }
- return normalizedChoice;
- });
-}
-export default createPrompt((config, done) => {
- const { pageSize = 7, validate = () => true } = config;
- const theme = makeTheme(searchTheme, config.theme);
- const firstRender = useRef(true);
- const [status, setStatus] = useState('loading');
- const [searchTerm, setSearchTerm] = useState('');
- const [searchResults, setSearchResults] = useState([]);
- const [searchError, setSearchError] = useState();
- const prefix = usePrefix({ status, theme });
- const bounds = useMemo(() => {
- const first = searchResults.findIndex(isSelectable);
- const last = searchResults.findLastIndex(isSelectable);
- return { first, last };
- }, [searchResults]);
- const [active = bounds.first, setActive] = useState();
- useEffect(() => {
- const controller = new AbortController();
- setStatus('loading');
- setSearchError(undefined);
- const fetchResults = async () => {
- try {
- const results = await config.source(searchTerm || undefined, {
- signal: controller.signal,
- });
- if (!controller.signal.aborted) {
- // Reset the pointer
- setActive(undefined);
- setSearchError(undefined);
- setSearchResults(normalizeChoices(results));
- setStatus('idle');
- }
- }
- catch (error) {
- if (!controller.signal.aborted && error instanceof Error) {
- setSearchError(error.message);
- }
- }
- };
- void fetchResults();
- return () => {
- controller.abort();
- };
- }, [searchTerm]);
- // Safe to assume the cursor position never points to a Separator.
- const selectedChoice = searchResults[active];
- useKeypress(async (key, rl) => {
- if (isEnterKey(key)) {
- if (selectedChoice) {
- setStatus('loading');
- const isValid = await validate(selectedChoice.value);
- setStatus('idle');
- if (isValid === true) {
- setStatus('done');
- done(selectedChoice.value);
- }
- else if (selectedChoice.name === searchTerm) {
- setSearchError(isValid || 'You must provide a valid value');
- }
- else {
- // Reset line with new search term
- rl.write(selectedChoice.name);
- setSearchTerm(selectedChoice.name);
- }
- }
- else {
- // Reset the readline line value to the previous value. On line event, the value
- // get cleared, forcing the user to re-enter the value instead of fixing it.
- rl.write(searchTerm);
- }
- }
- else if (key.name === 'tab' && selectedChoice) {
- rl.clearLine(0); // Remove the tab character.
- rl.write(selectedChoice.name);
- setSearchTerm(selectedChoice.name);
- }
- else if (status !== 'loading' && (key.name === 'up' || key.name === 'down')) {
- rl.clearLine(0);
- if ((key.name === 'up' && active !== bounds.first) ||
- (key.name === 'down' && active !== bounds.last)) {
- const offset = key.name === 'up' ? -1 : 1;
- let next = active;
- do {
- next = (next + offset + searchResults.length) % searchResults.length;
- } while (!isSelectable(searchResults[next]));
- setActive(next);
- }
- }
- else {
- setSearchTerm(rl.line);
- }
- });
- const message = theme.style.message(config.message, status);
- if (active > 0) {
- firstRender.current = false;
- }
- let helpTip = '';
- if (searchResults.length > 1 &&
- (theme.helpMode === 'always' || (theme.helpMode === 'auto' && firstRender.current))) {
- helpTip =
- searchResults.length > pageSize
- ? `\n${theme.style.help(`(${config.instructions?.pager ?? 'Use arrow keys to reveal more choices'})`)}`
- : `\n${theme.style.help(`(${config.instructions?.navigation ?? 'Use arrow keys'})`)}`;
- }
- // TODO: What to do if no results are found? Should we display a message?
- const page = usePagination({
- items: searchResults,
- active,
- renderItem({ item, isActive }) {
- if (Separator.isSeparator(item)) {
- return ` ${item.separator}`;
- }
- if (item.disabled) {
- const disabledLabel = typeof item.disabled === 'string' ? item.disabled : '(disabled)';
- return theme.style.disabled(`${item.name} ${disabledLabel}`);
- }
- const color = isActive ? theme.style.highlight : (x) => x;
- const cursor = isActive ? theme.icon.cursor : ` `;
- return color(`${cursor} ${item.name}`);
- },
- pageSize,
- loop: false,
- });
- let error;
- if (searchError) {
- error = theme.style.error(searchError);
- }
- else if (searchResults.length === 0 && searchTerm !== '' && status === 'idle') {
- error = theme.style.error('No results found');
- }
- let searchStr;
- if (status === 'done' && selectedChoice) {
- const answer = selectedChoice.short;
- return `${prefix} ${message} ${theme.style.answer(answer)}`;
- }
- else {
- searchStr = theme.style.searchTerm(searchTerm);
- }
- const choiceDescription = selectedChoice?.description
- ? `\n${theme.style.description(selectedChoice.description)}`
- : ``;
- return [
- [prefix, message, searchStr].filter(Boolean).join(' '),
- `${error ?? page}${helpTip}${choiceDescription}`,
- ];
-});
-export { Separator } from '@inquirer/core';
diff --git a/node_modules/@inquirer/search/dist/esm/package.json b/node_modules/@inquirer/search/dist/esm/package.json
deleted file mode 100755
index 3dbc1ca..0000000
--- a/node_modules/@inquirer/search/dist/esm/package.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "type": "module"
-}
diff --git a/node_modules/@inquirer/search/package.json b/node_modules/@inquirer/search/package.json
deleted file mode 100755
index 464c132..0000000
--- a/node_modules/@inquirer/search/package.json
+++ /dev/null
@@ -1,111 +0,0 @@
-{
- "name": "@inquirer/search",
- "version": "3.1.0",
- "description": "Inquirer search prompt",
- "keywords": [
- "answer",
- "answers",
- "ask",
- "base",
- "cli",
- "command",
- "command-line",
- "confirm",
- "enquirer",
- "generate",
- "generator",
- "hyper",
- "input",
- "inquire",
- "inquirer",
- "interface",
- "iterm",
- "javascript",
- "menu",
- "node",
- "nodejs",
- "prompt",
- "promptly",
- "prompts",
- "question",
- "readline",
- "scaffold",
- "scaffolder",
- "scaffolding",
- "stdin",
- "stdout",
- "terminal",
- "tty",
- "ui",
- "yeoman",
- "yo",
- "zsh"
- ],
- "homepage": "https://github.com/SBoudrias/Inquirer.js/blob/main/packages/search/README.md",
- "repository": {
- "type": "git",
- "url": "https://github.com/SBoudrias/Inquirer.js.git"
- },
- "license": "MIT",
- "author": "Simon Boudrias ",
- "sideEffects": false,
- "type": "module",
- "exports": {
- "./package.json": "./package.json",
- ".": {
- "import": {
- "types": "./dist/esm/index.d.ts",
- "default": "./dist/esm/index.js"
- },
- "require": {
- "types": "./dist/commonjs/index.d.ts",
- "default": "./dist/commonjs/index.js"
- }
- }
- },
- "main": "./dist/commonjs/index.js",
- "module": "./dist/esm/index.js",
- "types": "./dist/commonjs/index.d.ts",
- "files": [
- "dist"
- ],
- "scripts": {
- "attw": "attw --pack",
- "tsc": "tshy"
- },
- "dependencies": {
- "@inquirer/core": "^10.1.15",
- "@inquirer/figures": "^1.0.13",
- "@inquirer/type": "^3.0.8",
- "yoctocolors-cjs": "^2.1.2"
- },
- "devDependencies": {
- "@arethetypeswrong/cli": "^0.18.2",
- "@inquirer/testing": "^2.1.49",
- "tshy": "^3.0.2"
- },
- "engines": {
- "node": ">=18"
- },
- "publishConfig": {
- "access": "public"
- },
- "tshy": {
- "exclude": [
- "src/**/*.test.ts"
- ],
- "exports": {
- "./package.json": "./package.json",
- ".": "./src/index.ts"
- }
- },
- "peerDependencies": {
- "@types/node": ">=18"
- },
- "peerDependenciesMeta": {
- "@types/node": {
- "optional": true
- }
- },
- "gitHead": "69944cc0ef991049e24e4f6bcd3896a93f23b30b"
-}
diff --git a/node_modules/@inquirer/select/LICENSE b/node_modules/@inquirer/select/LICENSE
deleted file mode 100755
index f718698..0000000
--- a/node_modules/@inquirer/select/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-Copyright (c) 2025 Simon Boudrias
-
-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:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-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.
diff --git a/node_modules/@inquirer/select/README.md b/node_modules/@inquirer/select/README.md
deleted file mode 100755
index 8e0bdde..0000000
--- a/node_modules/@inquirer/select/README.md
+++ /dev/null
@@ -1,178 +0,0 @@
-# `@inquirer/select`
-
-Simple interactive command line prompt to display a list of choices (single select.)
-
-
-
-# Special Thanks
-
-
-
-[](https://graphite.dev/?utm_source=npmjs&utm_medium=repo&utm_campaign=inquirerjs)
-
-### [Graphite is the AI developer productivity platform helping teams on GitHub ship higher quality software, faster](https://graphite.dev/?utm_source=npmjs&utm_medium=repo&utm_campaign=inquirerjs)
-
-
-
-# Installation
-
-
-
- npm |
- yarn |
-
-
-
-
-```sh
-npm install @inquirer/prompts
-```
-
- |
-
-
-```sh
-yarn add @inquirer/prompts
-```
-
- |
-
-
-Or |
-
-
-
-
-```sh
-npm install @inquirer/select
-```
-
- |
-
-
-```sh
-yarn add @inquirer/select
-```
-
- |
-
-
-
-# Usage
-
-```js
-import { select, Separator } from '@inquirer/prompts';
-// Or
-// import select, { Separator } from '@inquirer/select';
-
-const answer = await select({
- message: 'Select a package manager',
- choices: [
- {
- name: 'npm',
- value: 'npm',
- description: 'npm is the most popular package manager',
- },
- {
- name: 'yarn',
- value: 'yarn',
- description: 'yarn is an awesome package manager',
- },
- new Separator(),
- {
- name: 'jspm',
- value: 'jspm',
- disabled: true,
- },
- {
- name: 'pnpm',
- value: 'pnpm',
- disabled: '(pnpm is not available)',
- },
- ],
-});
-```
-
-## Options
-
-| Property | Type | Required | Description |
-| ------------ | ---------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
-| message | `string` | yes | The question to ask |
-| choices | `Choice[]` | yes | List of the available choices. |
-| default | `string` | no | Defines in front of which item the cursor will initially appear. When omitted, the cursor will appear on the first selectable item. |
-| pageSize | `number` | no | By default, lists of choice longer than 7 will be paginated. Use this option to control how many choices will appear on the screen at once. |
-| loop | `boolean` | no | Defaults to `true`. When set to `false`, the cursor will be constrained to the top and bottom of the choice list without looping. |
-| instructions | `{ navigation: string; pager: string; }` | no | Defines the help tip content. |
-| theme | [See Theming](#Theming) | no | Customize look of the prompt. |
-
-`Separator` objects can be used in the `choices` array to render non-selectable lines in the choice list. By default it'll render a line, but you can provide the text as argument (`new Separator('-- Dependencies --')`). This option is often used to add labels to groups within long list of options.
-
-### `Choice` object
-
-The `Choice` object is typed as
-
-```ts
-type Choice = {
- value: Value;
- name?: string;
- description?: string;
- short?: string;
- disabled?: boolean | string;
-};
-```
-
-Here's each property:
-
-- `value`: The value is what will be returned by `await select()`.
-- `name`: This is the string displayed in the choice list.
-- `description`: Option for a longer description string that'll appear under the list when the cursor highlight a given choice.
-- `short`: Once the prompt is done (press enter), we'll use `short` if defined to render next to the question. By default we'll use `name`.
-- `disabled`: Disallow the option from being selected. If `disabled` is a string, it'll be used as a help tip explaining why the choice isn't available.
-
-`choices` can also be an array of string, in which case the string will be used both as the `value` and the `name`.
-
-## Theming
-
-You can theme a prompt by passing a `theme` object option. The theme object only need to includes the keys you wish to modify, we'll fallback on the defaults for the rest.
-
-```ts
-type Theme = {
- prefix: string | { idle: string; done: string };
- spinner: {
- interval: number;
- frames: string[];
- };
- style: {
- answer: (text: string) => string;
- message: (text: string, status: 'idle' | 'done' | 'loading') => string;
- error: (text: string) => string;
- help: (text: string) => string;
- highlight: (text: string) => string;
- description: (text: string) => string;
- disabled: (text: string) => string;
- };
- icon: {
- cursor: string;
- };
- helpMode: 'always' | 'never' | 'auto';
- indexMode: 'hidden' | 'number';
-};
-```
-
-### `theme.helpMode`
-
-- `auto` (default): Hide the help tips after an interaction occurs.
-- `always`: The help tips will always show and never hide.
-- `never`: The help tips will never show.
-
-### `theme.indexMode`
-
-Controls how indices are displayed before each choice:
-
-- `hidden` (default): No indices are shown
-- `number`: Display a number before each choice (e.g. "1. Option A")
-
-# License
-
-Copyright (c) 2023 Simon Boudrias (twitter: [@vaxilart](https://twitter.com/Vaxilart))
-Licensed under the MIT license.
diff --git a/node_modules/@inquirer/select/dist/commonjs/index.d.ts b/node_modules/@inquirer/select/dist/commonjs/index.d.ts
deleted file mode 100755
index 3370818..0000000
--- a/node_modules/@inquirer/select/dist/commonjs/index.d.ts
+++ /dev/null
@@ -1,37 +0,0 @@
-import { Separator, type Theme } from '@inquirer/core';
-import type { PartialDeep } from '@inquirer/type';
-type SelectTheme = {
- icon: {
- cursor: string;
- };
- style: {
- disabled: (text: string) => string;
- description: (text: string) => string;
- };
- helpMode: 'always' | 'never' | 'auto';
- indexMode: 'hidden' | 'number';
-};
-type Choice = {
- value: Value;
- name?: string;
- description?: string;
- short?: string;
- disabled?: boolean | string;
- type?: never;
-};
-declare const _default: (config: {
- message: string;
- choices: readonly (string | Separator)[] | readonly (Separator | Choice)[];
- pageSize?: number | undefined;
- loop?: boolean | undefined;
- default?: unknown;
- instructions?: {
- navigation: string;
- pager: string;
- } | undefined;
- theme?: PartialDeep> | undefined;
-}, context?: import("@inquirer/type").Context) => Promise & {
- cancel: () => void;
-};
-export default _default;
-export { Separator } from '@inquirer/core';
diff --git a/node_modules/@inquirer/select/dist/commonjs/index.js b/node_modules/@inquirer/select/dist/commonjs/index.js
deleted file mode 100755
index c078992..0000000
--- a/node_modules/@inquirer/select/dist/commonjs/index.js
+++ /dev/null
@@ -1,174 +0,0 @@
-"use strict";
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.Separator = void 0;
-const core_1 = require("@inquirer/core");
-const yoctocolors_cjs_1 = __importDefault(require("yoctocolors-cjs"));
-const figures_1 = __importDefault(require("@inquirer/figures"));
-const ansi_escapes_1 = __importDefault(require("ansi-escapes"));
-const selectTheme = {
- icon: { cursor: figures_1.default.pointer },
- style: {
- disabled: (text) => yoctocolors_cjs_1.default.dim(`- ${text}`),
- description: (text) => yoctocolors_cjs_1.default.cyan(text),
- },
- helpMode: 'auto',
- indexMode: 'hidden',
-};
-function isSelectable(item) {
- return !core_1.Separator.isSeparator(item) && !item.disabled;
-}
-function normalizeChoices(choices) {
- return choices.map((choice) => {
- if (core_1.Separator.isSeparator(choice))
- return choice;
- if (typeof choice === 'string') {
- return {
- value: choice,
- name: choice,
- short: choice,
- disabled: false,
- };
- }
- const name = choice.name ?? String(choice.value);
- const normalizedChoice = {
- value: choice.value,
- name,
- short: choice.short ?? name,
- disabled: choice.disabled ?? false,
- };
- if (choice.description) {
- normalizedChoice.description = choice.description;
- }
- return normalizedChoice;
- });
-}
-exports.default = (0, core_1.createPrompt)((config, done) => {
- const { loop = true, pageSize = 7 } = config;
- const firstRender = (0, core_1.useRef)(true);
- const theme = (0, core_1.makeTheme)(selectTheme, config.theme);
- const [status, setStatus] = (0, core_1.useState)('idle');
- const prefix = (0, core_1.usePrefix)({ status, theme });
- const searchTimeoutRef = (0, core_1.useRef)();
- const items = (0, core_1.useMemo)(() => normalizeChoices(config.choices), [config.choices]);
- const bounds = (0, core_1.useMemo)(() => {
- const first = items.findIndex(isSelectable);
- const last = items.findLastIndex(isSelectable);
- if (first === -1) {
- throw new core_1.ValidationError('[select prompt] No selectable choices. All choices are disabled.');
- }
- return { first, last };
- }, [items]);
- const defaultItemIndex = (0, core_1.useMemo)(() => {
- if (!('default' in config))
- return -1;
- return items.findIndex((item) => isSelectable(item) && item.value === config.default);
- }, [config.default, items]);
- const [active, setActive] = (0, core_1.useState)(defaultItemIndex === -1 ? bounds.first : defaultItemIndex);
- // Safe to assume the cursor position always point to a Choice.
- const selectedChoice = items[active];
- (0, core_1.useKeypress)((key, rl) => {
- clearTimeout(searchTimeoutRef.current);
- if ((0, core_1.isEnterKey)(key)) {
- setStatus('done');
- done(selectedChoice.value);
- }
- else if ((0, core_1.isUpKey)(key) || (0, core_1.isDownKey)(key)) {
- rl.clearLine(0);
- if (loop ||
- ((0, core_1.isUpKey)(key) && active !== bounds.first) ||
- ((0, core_1.isDownKey)(key) && active !== bounds.last)) {
- const offset = (0, core_1.isUpKey)(key) ? -1 : 1;
- let next = active;
- do {
- next = (next + offset + items.length) % items.length;
- } while (!isSelectable(items[next]));
- setActive(next);
- }
- }
- else if ((0, core_1.isNumberKey)(key) && !Number.isNaN(Number(rl.line))) {
- const selectedIndex = Number(rl.line) - 1;
- // Find the nth item (ignoring separators)
- let selectableIndex = -1;
- const position = items.findIndex((item) => {
- if (core_1.Separator.isSeparator(item))
- return false;
- selectableIndex++;
- return selectableIndex === selectedIndex;
- });
- const item = items[position];
- if (item != null && isSelectable(item)) {
- setActive(position);
- }
- searchTimeoutRef.current = setTimeout(() => {
- rl.clearLine(0);
- }, 700);
- }
- else if ((0, core_1.isBackspaceKey)(key)) {
- rl.clearLine(0);
- }
- else {
- // Default to search
- const searchTerm = rl.line.toLowerCase();
- const matchIndex = items.findIndex((item) => {
- if (core_1.Separator.isSeparator(item) || !isSelectable(item))
- return false;
- return item.name.toLowerCase().startsWith(searchTerm);
- });
- if (matchIndex !== -1) {
- setActive(matchIndex);
- }
- searchTimeoutRef.current = setTimeout(() => {
- rl.clearLine(0);
- }, 700);
- }
- });
- (0, core_1.useEffect)(() => () => {
- clearTimeout(searchTimeoutRef.current);
- }, []);
- const message = theme.style.message(config.message, status);
- let helpTipTop = '';
- let helpTipBottom = '';
- if (theme.helpMode === 'always' ||
- (theme.helpMode === 'auto' && firstRender.current)) {
- firstRender.current = false;
- if (items.length > pageSize) {
- helpTipBottom = `\n${theme.style.help(`(${config.instructions?.pager ?? 'Use arrow keys to reveal more choices'})`)}`;
- }
- else {
- helpTipTop = theme.style.help(`(${config.instructions?.navigation ?? 'Use arrow keys'})`);
- }
- }
- let separatorCount = 0;
- const page = (0, core_1.usePagination)({
- items,
- active,
- renderItem({ item, isActive, index }) {
- if (core_1.Separator.isSeparator(item)) {
- separatorCount++;
- return ` ${item.separator}`;
- }
- const indexLabel = theme.indexMode === 'number' ? `${index + 1 - separatorCount}. ` : '';
- if (item.disabled) {
- const disabledLabel = typeof item.disabled === 'string' ? item.disabled : '(disabled)';
- return theme.style.disabled(`${indexLabel}${item.name} ${disabledLabel}`);
- }
- const color = isActive ? theme.style.highlight : (x) => x;
- const cursor = isActive ? theme.icon.cursor : ` `;
- return color(`${cursor} ${indexLabel}${item.name}`);
- },
- pageSize,
- loop,
- });
- if (status === 'done') {
- return `${prefix} ${message} ${theme.style.answer(selectedChoice.short)}`;
- }
- const choiceDescription = selectedChoice.description
- ? `\n${theme.style.description(selectedChoice.description)}`
- : ``;
- return `${[prefix, message, helpTipTop].filter(Boolean).join(' ')}\n${page}${helpTipBottom}${choiceDescription}${ansi_escapes_1.default.cursorHide}`;
-});
-var core_2 = require("@inquirer/core");
-Object.defineProperty(exports, "Separator", { enumerable: true, get: function () { return core_2.Separator; } });
diff --git a/node_modules/@inquirer/select/dist/commonjs/package.json b/node_modules/@inquirer/select/dist/commonjs/package.json
deleted file mode 100755
index 5bbefff..0000000
--- a/node_modules/@inquirer/select/dist/commonjs/package.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "type": "commonjs"
-}
diff --git a/node_modules/@inquirer/select/dist/esm/index.d.ts b/node_modules/@inquirer/select/dist/esm/index.d.ts
deleted file mode 100755
index 3370818..0000000
--- a/node_modules/@inquirer/select/dist/esm/index.d.ts
+++ /dev/null
@@ -1,37 +0,0 @@
-import { Separator, type Theme } from '@inquirer/core';
-import type { PartialDeep } from '@inquirer/type';
-type SelectTheme = {
- icon: {
- cursor: string;
- };
- style: {
- disabled: (text: string) => string;
- description: (text: string) => string;
- };
- helpMode: 'always' | 'never' | 'auto';
- indexMode: 'hidden' | 'number';
-};
-type Choice = {
- value: Value;
- name?: string;
- description?: string;
- short?: string;
- disabled?: boolean | string;
- type?: never;
-};
-declare const _default: (config: {
- message: string;
- choices: readonly (string | Separator)[] | readonly (Separator | Choice)[];
- pageSize?: number | undefined;
- loop?: boolean | undefined;
- default?: unknown;
- instructions?: {
- navigation: string;
- pager: string;
- } | undefined;
- theme?: PartialDeep> | undefined;
-}, context?: import("@inquirer/type").Context) => Promise & {
- cancel: () => void;
-};
-export default _default;
-export { Separator } from '@inquirer/core';
diff --git a/node_modules/@inquirer/select/dist/esm/index.js b/node_modules/@inquirer/select/dist/esm/index.js
deleted file mode 100755
index a88a807..0000000
--- a/node_modules/@inquirer/select/dist/esm/index.js
+++ /dev/null
@@ -1,167 +0,0 @@
-import { createPrompt, useState, useKeypress, usePrefix, usePagination, useRef, useMemo, useEffect, isBackspaceKey, isEnterKey, isUpKey, isDownKey, isNumberKey, Separator, ValidationError, makeTheme, } from '@inquirer/core';
-import colors from 'yoctocolors-cjs';
-import figures from '@inquirer/figures';
-import ansiEscapes from 'ansi-escapes';
-const selectTheme = {
- icon: { cursor: figures.pointer },
- style: {
- disabled: (text) => colors.dim(`- ${text}`),
- description: (text) => colors.cyan(text),
- },
- helpMode: 'auto',
- indexMode: 'hidden',
-};
-function isSelectable(item) {
- return !Separator.isSeparator(item) && !item.disabled;
-}
-function normalizeChoices(choices) {
- return choices.map((choice) => {
- if (Separator.isSeparator(choice))
- return choice;
- if (typeof choice === 'string') {
- return {
- value: choice,
- name: choice,
- short: choice,
- disabled: false,
- };
- }
- const name = choice.name ?? String(choice.value);
- const normalizedChoice = {
- value: choice.value,
- name,
- short: choice.short ?? name,
- disabled: choice.disabled ?? false,
- };
- if (choice.description) {
- normalizedChoice.description = choice.description;
- }
- return normalizedChoice;
- });
-}
-export default createPrompt((config, done) => {
- const { loop = true, pageSize = 7 } = config;
- const firstRender = useRef(true);
- const theme = makeTheme(selectTheme, config.theme);
- const [status, setStatus] = useState('idle');
- const prefix = usePrefix({ status, theme });
- const searchTimeoutRef = useRef();
- const items = useMemo(() => normalizeChoices(config.choices), [config.choices]);
- const bounds = useMemo(() => {
- const first = items.findIndex(isSelectable);
- const last = items.findLastIndex(isSelectable);
- if (first === -1) {
- throw new ValidationError('[select prompt] No selectable choices. All choices are disabled.');
- }
- return { first, last };
- }, [items]);
- const defaultItemIndex = useMemo(() => {
- if (!('default' in config))
- return -1;
- return items.findIndex((item) => isSelectable(item) && item.value === config.default);
- }, [config.default, items]);
- const [active, setActive] = useState(defaultItemIndex === -1 ? bounds.first : defaultItemIndex);
- // Safe to assume the cursor position always point to a Choice.
- const selectedChoice = items[active];
- useKeypress((key, rl) => {
- clearTimeout(searchTimeoutRef.current);
- if (isEnterKey(key)) {
- setStatus('done');
- done(selectedChoice.value);
- }
- else if (isUpKey(key) || isDownKey(key)) {
- rl.clearLine(0);
- if (loop ||
- (isUpKey(key) && active !== bounds.first) ||
- (isDownKey(key) && active !== bounds.last)) {
- const offset = isUpKey(key) ? -1 : 1;
- let next = active;
- do {
- next = (next + offset + items.length) % items.length;
- } while (!isSelectable(items[next]));
- setActive(next);
- }
- }
- else if (isNumberKey(key) && !Number.isNaN(Number(rl.line))) {
- const selectedIndex = Number(rl.line) - 1;
- // Find the nth item (ignoring separators)
- let selectableIndex = -1;
- const position = items.findIndex((item) => {
- if (Separator.isSeparator(item))
- return false;
- selectableIndex++;
- return selectableIndex === selectedIndex;
- });
- const item = items[position];
- if (item != null && isSelectable(item)) {
- setActive(position);
- }
- searchTimeoutRef.current = setTimeout(() => {
- rl.clearLine(0);
- }, 700);
- }
- else if (isBackspaceKey(key)) {
- rl.clearLine(0);
- }
- else {
- // Default to search
- const searchTerm = rl.line.toLowerCase();
- const matchIndex = items.findIndex((item) => {
- if (Separator.isSeparator(item) || !isSelectable(item))
- return false;
- return item.name.toLowerCase().startsWith(searchTerm);
- });
- if (matchIndex !== -1) {
- setActive(matchIndex);
- }
- searchTimeoutRef.current = setTimeout(() => {
- rl.clearLine(0);
- }, 700);
- }
- });
- useEffect(() => () => {
- clearTimeout(searchTimeoutRef.current);
- }, []);
- const message = theme.style.message(config.message, status);
- let helpTipTop = '';
- let helpTipBottom = '';
- if (theme.helpMode === 'always' ||
- (theme.helpMode === 'auto' && firstRender.current)) {
- firstRender.current = false;
- if (items.length > pageSize) {
- helpTipBottom = `\n${theme.style.help(`(${config.instructions?.pager ?? 'Use arrow keys to reveal more choices'})`)}`;
- }
- else {
- helpTipTop = theme.style.help(`(${config.instructions?.navigation ?? 'Use arrow keys'})`);
- }
- }
- let separatorCount = 0;
- const page = usePagination({
- items,
- active,
- renderItem({ item, isActive, index }) {
- if (Separator.isSeparator(item)) {
- separatorCount++;
- return ` ${item.separator}`;
- }
- const indexLabel = theme.indexMode === 'number' ? `${index + 1 - separatorCount}. ` : '';
- if (item.disabled) {
- const disabledLabel = typeof item.disabled === 'string' ? item.disabled : '(disabled)';
- return theme.style.disabled(`${indexLabel}${item.name} ${disabledLabel}`);
- }
- const color = isActive ? theme.style.highlight : (x) => x;
- const cursor = isActive ? theme.icon.cursor : ` `;
- return color(`${cursor} ${indexLabel}${item.name}`);
- },
- pageSize,
- loop,
- });
- if (status === 'done') {
- return `${prefix} ${message} ${theme.style.answer(selectedChoice.short)}`;
- }
- const choiceDescription = selectedChoice.description
- ? `\n${theme.style.description(selectedChoice.description)}`
- : ``;
- return `${[prefix, message, helpTipTop].filter(Boolean).join(' ')}\n${page}${helpTipBottom}${choiceDescription}${ansiEscapes.cursorHide}`;
-});
-export { Separator } from '@inquirer/core';
diff --git a/node_modules/@inquirer/select/dist/esm/package.json b/node_modules/@inquirer/select/dist/esm/package.json
deleted file mode 100755
index 3dbc1ca..0000000
--- a/node_modules/@inquirer/select/dist/esm/package.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "type": "module"
-}
diff --git a/node_modules/@inquirer/select/package.json b/node_modules/@inquirer/select/package.json
deleted file mode 100755
index e3c0ba3..0000000
--- a/node_modules/@inquirer/select/package.json
+++ /dev/null
@@ -1,112 +0,0 @@
-{
- "name": "@inquirer/select",
- "version": "4.3.1",
- "description": "Inquirer select/list prompt",
- "keywords": [
- "answer",
- "answers",
- "ask",
- "base",
- "cli",
- "command",
- "command-line",
- "confirm",
- "enquirer",
- "generate",
- "generator",
- "hyper",
- "input",
- "inquire",
- "inquirer",
- "interface",
- "iterm",
- "javascript",
- "menu",
- "node",
- "nodejs",
- "prompt",
- "promptly",
- "prompts",
- "question",
- "readline",
- "scaffold",
- "scaffolder",
- "scaffolding",
- "stdin",
- "stdout",
- "terminal",
- "tty",
- "ui",
- "yeoman",
- "yo",
- "zsh"
- ],
- "homepage": "https://github.com/SBoudrias/Inquirer.js/blob/main/packages/select/README.md",
- "repository": {
- "type": "git",
- "url": "https://github.com/SBoudrias/Inquirer.js.git"
- },
- "license": "MIT",
- "author": "Simon Boudrias ",
- "sideEffects": false,
- "type": "module",
- "exports": {
- "./package.json": "./package.json",
- ".": {
- "import": {
- "types": "./dist/esm/index.d.ts",
- "default": "./dist/esm/index.js"
- },
- "require": {
- "types": "./dist/commonjs/index.d.ts",
- "default": "./dist/commonjs/index.js"
- }
- }
- },
- "main": "./dist/commonjs/index.js",
- "module": "./dist/esm/index.js",
- "types": "./dist/commonjs/index.d.ts",
- "files": [
- "dist"
- ],
- "scripts": {
- "attw": "attw --pack",
- "tsc": "tshy"
- },
- "dependencies": {
- "@inquirer/core": "^10.1.15",
- "@inquirer/figures": "^1.0.13",
- "@inquirer/type": "^3.0.8",
- "ansi-escapes": "^4.3.2",
- "yoctocolors-cjs": "^2.1.2"
- },
- "devDependencies": {
- "@arethetypeswrong/cli": "^0.18.2",
- "@inquirer/testing": "^2.1.49",
- "tshy": "^3.0.2"
- },
- "engines": {
- "node": ">=18"
- },
- "publishConfig": {
- "access": "public"
- },
- "tshy": {
- "exclude": [
- "src/**/*.test.ts"
- ],
- "exports": {
- "./package.json": "./package.json",
- ".": "./src/index.ts"
- }
- },
- "peerDependencies": {
- "@types/node": ">=18"
- },
- "peerDependenciesMeta": {
- "@types/node": {
- "optional": true
- }
- },
- "gitHead": "5fbae895f0da93446b99ed0b03ccaa6dfb12cf00"
-}
diff --git a/node_modules/@inquirer/type/LICENSE b/node_modules/@inquirer/type/LICENSE
deleted file mode 100755
index f718698..0000000
--- a/node_modules/@inquirer/type/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-Copyright (c) 2025 Simon Boudrias
-
-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:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-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.
diff --git a/node_modules/@inquirer/type/dist/commonjs/index.d.ts b/node_modules/@inquirer/type/dist/commonjs/index.d.ts
deleted file mode 100755
index 611714b..0000000
--- a/node_modules/@inquirer/type/dist/commonjs/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-export * from './inquirer.ts';
-export * from './utils.ts';
diff --git a/node_modules/@inquirer/type/dist/commonjs/index.js b/node_modules/@inquirer/type/dist/commonjs/index.js
deleted file mode 100755
index 556c9b8..0000000
--- a/node_modules/@inquirer/type/dist/commonjs/index.js
+++ /dev/null
@@ -1,18 +0,0 @@
-"use strict";
-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- var desc = Object.getOwnPropertyDescriptor(m, k);
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
- desc = { enumerable: true, get: function() { return m[k]; } };
- }
- Object.defineProperty(o, k2, desc);
-}) : (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- o[k2] = m[k];
-}));
-var __exportStar = (this && this.__exportStar) || function(m, exports) {
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-__exportStar(require("./inquirer.js"), exports);
-__exportStar(require("./utils.js"), exports);
diff --git a/node_modules/@inquirer/type/dist/commonjs/inquirer.d.ts b/node_modules/@inquirer/type/dist/commonjs/inquirer.d.ts
deleted file mode 100755
index c1633ea..0000000
--- a/node_modules/@inquirer/type/dist/commonjs/inquirer.d.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-import { Duplex } from 'node:stream';
-/**
- * `InquirerReadline` is a re-implementation of `readline.Interface` from Node.js.
- * We're reimplementing it because of 3 reasons:
- * 1. The `readline.Interface` API is not complete; it's missing for example `clearLine`.
- * 2. The input/output streams are not generics, meaning they're inexact.
- * 3. Since ReadLine isn't built-in Typescript Global NodeJS type, it'd force us to ship `@types/node` as a dependency to all users.
- */
-export type InquirerReadline = {
- output: Duplex & {
- mute: () => void;
- unmute: () => void;
- };
- input: NodeJS.ReadableStream;
- clearLine: (dir: 0 | 1 | -1) => void;
- getCursorPos: () => {
- rows: number;
- cols: number;
- };
- setPrompt: (prompt: string) => void;
- line: string;
- write: (data: string) => void;
- on: (event: string, listener: (...args: unknown[]) => void) => void;
- removeListener: (event: string, listener: (...args: unknown[]) => void) => void;
- pause: () => void;
- resume: () => void;
- close: () => void;
-};
-export type Context = {
- input?: NodeJS.ReadableStream;
- output?: NodeJS.WritableStream;
- clearPromptOnDone?: boolean;
- signal?: AbortSignal;
-};
-export type Prompt = (config: Config, context?: Context) => Promise & {
- /** @deprecated pass an AbortSignal in the context options instead. See {@link https://github.com/SBoudrias/Inquirer.js#canceling-prompt} */
- cancel: () => void;
-};
diff --git a/node_modules/@inquirer/type/dist/commonjs/inquirer.js b/node_modules/@inquirer/type/dist/commonjs/inquirer.js
deleted file mode 100755
index c8ad2e5..0000000
--- a/node_modules/@inquirer/type/dist/commonjs/inquirer.js
+++ /dev/null
@@ -1,2 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
diff --git a/node_modules/@inquirer/type/dist/commonjs/package.json b/node_modules/@inquirer/type/dist/commonjs/package.json
deleted file mode 100755
index 5bbefff..0000000
--- a/node_modules/@inquirer/type/dist/commonjs/package.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "type": "commonjs"
-}
diff --git a/node_modules/@inquirer/type/dist/commonjs/utils.d.ts b/node_modules/@inquirer/type/dist/commonjs/utils.d.ts
deleted file mode 100755
index c37eb73..0000000
--- a/node_modules/@inquirer/type/dist/commonjs/utils.d.ts
+++ /dev/null
@@ -1,29 +0,0 @@
-type Key = string | number | symbol;
-export type Prettify = {
- [K in keyof T]: T[K];
-} & {};
-export type PartialDeep = T extends object ? {
- [P in keyof T]?: PartialDeep;
-} : T;
-export type LiteralUnion = T | (F & {});
-export type KeyUnion = LiteralUnion