feat: 添加cnb智能对话接口,支持用户提问和消息列表处理

This commit is contained in:
2026-03-11 13:49:07 +08:00
parent 38ee73e48f
commit 813005ab9c
5 changed files with 214 additions and 41 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@kevisual/cnb",
"version": "0.0.42",
"version": "0.0.41",
"description": "",
"main": "index.js",
"basename": "/root/cnb",
@@ -16,7 +16,8 @@
},
"keywords": [],
"bin": {
"cnb": "./bin/index.js"
"cnb": "./bin/index.js",
"cloud": "./bin/index.js"
},
"files": [
"dist",
@@ -25,20 +26,22 @@
],
"author": "abearxiong <xiongxiao@xiongxiao.me> (https://www.xiongxiao.me)",
"license": "MIT",
"packageManager": "pnpm@10.31.0",
"packageManager": "pnpm@10.32.1",
"type": "module",
"devDependencies": {
"@kevisual/ai": "^0.0.26",
"@ai-sdk/openai-compatible": "^2.0.35",
"@kevisual/ai": "^0.0.27",
"@kevisual/api": "^0.0.62",
"@kevisual/code-builder": "^0.0.6",
"@kevisual/context": "^0.0.8",
"@kevisual/dts": "^0.0.4",
"@kevisual/remote-app": "^0.0.6",
"@kevisual/types": "^0.0.12",
"@opencode-ai/plugin": "^1.2.23",
"@opencode-ai/plugin": "^1.2.24",
"@types/bun": "^1.3.10",
"@types/node": "^25.3.5",
"@types/node": "^25.4.0",
"@types/ws": "^8.18.1",
"ai": "^6.0.116",
"commander": "^14.0.3",
"dayjs": "^1.11.19",
"dotenv": "^17.3.1"
@@ -51,7 +54,7 @@
},
"dependencies": {
"@kevisual/query": "^0.0.53",
"@kevisual/router": "^0.0.90",
"@kevisual/router": "^0.1.1",
"@kevisual/use-config": "^1.0.30",
"es-toolkit": "^1.45.1",
"nanoid": "^5.1.6",