feat: refactor deploy command to enhance file upload process and user handling

- Updated the deploy command to include a new username retrieval mechanism, falling back to the organization if not specified.
- Introduced uploadFilesV2 function to streamline file upload logic, including hash checking to prevent redundant uploads.
- Modified queryAppVersion to accept a create parameter for better version management.
- Added a new test file to validate the uploadFilesV2 functionality.
This commit is contained in:
2026-02-02 17:57:50 +08:00
parent 310d727321
commit 5774391bbe
6 changed files with 373 additions and 166 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@kevisual/cli",
"version": "0.0.99",
"version": "0.1.0",
"description": "envision 命令行工具",
"type": "module",
"basename": "/root/cli",
@@ -48,8 +48,8 @@
"@kevisual/app": "^0.0.2",
"@kevisual/auth": "^2.0.3",
"@kevisual/context": "^0.0.4",
"@kevisual/use-config": "^1.0.28",
"@opencode-ai/sdk": "^1.1.44",
"@kevisual/use-config": "^1.0.30",
"@opencode-ai/sdk": "^1.1.48",
"@types/busboy": "^1.5.4",
"busboy": "^1.6.0",
"eventemitter3": "^5.0.4",
@@ -62,19 +62,20 @@
"unstorage": "^1.17.4"
},
"devDependencies": {
"@kevisual/api": "^0.0.42",
"@kevisual/dts": "^0.0.3",
"@kevisual/load": "^0.0.6",
"@kevisual/logger": "^0.0.4",
"@kevisual/query": "0.0.38",
"@kevisual/query": "0.0.39",
"@kevisual/query-login": "0.0.7",
"@types/bun": "^1.3.8",
"@types/crypto-js": "^4.2.2",
"@types/jsonwebtoken": "^9.0.10",
"@types/micromatch": "^4.0.10",
"@types/node": "^25.1.0",
"@types/node": "^25.2.0",
"@types/semver": "^7.7.1",
"chalk": "^5.6.2",
"commander": "^14.0.2",
"commander": "^14.0.3",
"crypto-js": "^4.2.0",
"fast-glob": "^3.3.3",
"filesize": "^11.0.13",
@@ -83,7 +84,7 @@
"jsonwebtoken": "^9.0.3",
"pm2": "^6.0.14",
"tar": "^7.5.7",
"zustand": "^5.0.10"
"zustand": "^5.0.11"
},
"engines": {
"node": ">=22.0.0"