feat: add user info command and package management for assistant app

- Implemented a new command 'me' to view current user information in the assistant application.
- Created a common configuration file for the assistant app with package details and scripts.
- Added functionality to check and update package.json dependencies and devDependencies in the assistant app.
- Refactored storage initialization in query module to use StorageNode.
This commit is contained in:
2026-02-21 03:08:39 +08:00
parent e53c166c29
commit 68c1976754
26 changed files with 657 additions and 1453 deletions

View File

@@ -0,0 +1,38 @@
export const configJson = `{
"name": "assistant-app",
"version": "1.0.1",
"description": "assistant-app package pnpm, node pkgs projects",
"type": "module",
"scripts": {
"start": "pm2 start apps/code-center/dist/app.mjs --name code-center",
"proxy": "pm2 start apps/page-proxy/dist/app.mjs --name page-proxy",
"preview": "pnpm i && ASSISTANT_CONFIG_DIR=/workspace/kevisual asst server -s"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@aws-sdk/client-s3": "^3.990.0",
"@kevisual/oss": "^0.0.19",
"@kevisual/query": "^0.0.40",
"eventemitter3": "^5.0.4",
"@kevisual/router": "^0.0.70",
"@kevisual/use-config": "^1.0.30",
"ioredis": "^5.9.3",
"pg": "^8.18.0",
"pm2": "^6.0.14",
"crypto-js": "^4.2.0",
"unstorage": "^1.17.4",
"dayjs": "^1.11.19",
"es-toolkit": "^1.44.0",
"node-cron": "^4.2.1",
"dotenv": "^17.3.1"
},
"devDependencies": {
"@kevisual/types": "^0.0.12",
"@types/bun": "^1.3.9",
"@types/crypto-js": "^4.2.2",
"@types/node": "^25.2.3"
}
}
`