feat: integrate knowledge base creation in RepoCard and update app context key

- Updated the context key for the QueryRouterServer from 'router' to 'app'.
- Added functionality to create a knowledge base in RepoCard component.
- Introduced a new BookOpen icon and tooltip for knowledge base indication.
- Implemented a toast notification for successful knowledge base creation.
- Cleaned up imports in main.tsx by commenting out unused app import.
This commit is contained in:
2026-02-16 00:46:07 +08:00
parent f876a65c6b
commit 3d66eee666
5 changed files with 271 additions and 183 deletions

View File

@@ -1,7 +1,7 @@
{
"name": "@kevisual/cnb-center",
"private": true,
"version": "0.0.1",
"version": "0.0.2",
"type": "module",
"basename": "/root/cnb-center",
"scripts": {
@@ -9,7 +9,7 @@
"build": "vite build",
"preview": "vite preview",
"ui": "pnpm dlx shadcn@latest add ",
"pub": "envision deploy ./dist -k cnb-center -v 0.0.1 -y y -u"
"pub": "envision deploy ./dist -k cnb-center -v 0.0.2 -y y -u"
},
"files": [
"dist"
@@ -17,22 +17,23 @@
"author": "abearxiong <xiongxiao@xiongxiao.me>",
"license": "MIT",
"dependencies": {
"@ai-sdk/anthropic": "^3.0.38",
"@ai-sdk/openai": "^3.0.26",
"@ai-sdk/openai-compatible": "^2.0.28",
"@base-ui/react": "^1.1.0",
"@kevisual/cnb": "^0.0.22",
"@ai-sdk/anthropic": "^3.0.44",
"@ai-sdk/openai": "^3.0.29",
"@ai-sdk/openai-compatible": "^2.0.30",
"@base-ui/react": "^1.2.0",
"@kevisual/cnb": "^0.0.25",
"@kevisual/cnb-ai": "^0.0.2",
"@kevisual/context": "^0.0.4",
"@kevisual/router": "0.0.70",
"@tanstack/react-router": "^1.158.4",
"ai": "^6.0.77",
"@tanstack/react-router": "^1.159.10",
"ai": "^6.0.86",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"dayjs": "^1.11.19",
"es-toolkit": "^1.44.0",
"fuse.js": "^7.1.0",
"idb-keyval": "^6.2.2",
"lucide-react": "^0.563.0",
"lucide-react": "^0.564.0",
"nanoid": "^5.1.6",
"next-themes": "^0.4.6",
"react": "^19.2.4",
@@ -49,18 +50,18 @@
"@kevisual/query": "0.0.40",
"@kevisual/types": "^0.0.12",
"@tailwindcss/vite": "^4.1.18",
"@tanstack/react-router-devtools": "^1.158.4",
"@tanstack/router-plugin": "^1.158.4",
"@types/node": "^25.2.2",
"@types/react": "^19.2.13",
"@tanstack/react-router-devtools": "^1.159.10",
"@tanstack/router-plugin": "^1.159.11",
"@types/node": "^25.2.3",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^5.1.3",
"dotenv": "^17.2.4",
"@vitejs/plugin-react": "^5.1.4",
"dotenv": "^17.3.1",
"tailwind-merge": "^3.4.0",
"tailwindcss": "^4.1.18",
"tw-animate-css": "^1.4.0",
"typescript": "^5.9.3",
"vite": "^8.0.0-beta.13"
},
"packageManager": "pnpm@10.29.1"
"packageManager": "pnpm@10.29.3"
}