feat: migrate from inquirer to @inquirer/prompts for interactive prompts

- Replaced inquirer with @inquirer/prompts in various command files for improved prompt handling.
- Updated confirmation and input prompts in commands such as app, config, deploy, login, and others.
- Added a new command 'cc' for switching between Claude code models with appropriate configurations.
- Enhanced user experience by ensuring prompts are more streamlined and consistent across the application.
This commit is contained in:
2026-01-15 09:17:07 +08:00
parent 4f541748da
commit 8549a4aa53
15 changed files with 585 additions and 309 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@kevisual/cli",
"version": "0.0.78",
"version": "0.0.80",
"description": "envision 命令行工具",
"type": "module",
"basename": "/root/cli",
@@ -41,9 +41,11 @@
],
"author": "abearxiong",
"dependencies": {
"@inquirer/prompts": "^8.2.0",
"@kevisual/app": "^0.0.2",
"@kevisual/context": "^0.0.4",
"@kevisual/hot-api": "^0.0.3",
"@kevisual/use-config": "^1.0.26",
"@nut-tree-fork/nut-js": "^4.2.6",
"eventemitter3": "^5.0.1",
"lowdb": "^7.0.1",
@@ -57,13 +59,13 @@
"@kevisual/dts": "^0.0.3",
"@kevisual/load": "^0.0.6",
"@kevisual/logger": "^0.0.4",
"@kevisual/query": "0.0.33",
"@kevisual/query": "0.0.35",
"@kevisual/query-login": "0.0.7",
"@types/bun": "^1.3.5",
"@types/bun": "^1.3.6",
"@types/crypto-js": "^4.2.2",
"@types/jsonwebtoken": "^9.0.10",
"@types/micromatch": "^4.0.10",
"@types/node": "^25.0.3",
"@types/node": "^25.0.8",
"@types/semver": "^7.7.1",
"chalk": "^5.6.2",
"commander": "^14.0.2",
@@ -72,10 +74,9 @@
"filesize": "^11.0.13",
"form-data": "^4.0.5",
"ignore": "^7.0.5",
"inquirer": "^13.1.0",
"jsonwebtoken": "^9.0.3",
"tar": "^7.5.2",
"zustand": "^5.0.9"
"zustand": "^5.0.10"
},
"engines": {
"node": ">=22.0.0"