Files
agent-desktop/console/package.json
T
Pine 6a87496a4b fix: 统一桌面端登录与 token 管理逻辑,修复模型列表 401
- PineAgents provider base_url 改为动态使用 DEMO_API_BASE_URL(远程服务器)
- list_provider_info 支持从请求头透传 console 端 JWT,优先用于 /v1/models
- forward/forward_upload 未显式传 auth_header 时自动使用本地持久化 token
- auth_token_store 添加日志,便于排查 token 保存/加载问题
- fetch_models 超时增加到 15s,添加获取结果日志
2026-09-02 18:18:55 +08:00

95 lines
3.6 KiB
JSON

{
"name": "pineagents-console",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite --host",
"build": "tsc -b && node --max-old-space-size=4096 node_modules/vite/bin/vite.js build && node scripts/copy-console.mjs",
"build:prod": "tsc -b && node --max-old-space-size=4096 node_modules/vite/bin/vite.js build --mode production && node scripts/copy-console.mjs",
"build:tauri-bootstrap": "tsc -b && node --max-old-space-size=4096 node_modules/vite/bin/vite.js build --mode tauri --config src-tauri/vite.bootstrap.config.ts && node ../scripts/pack-tauri/finalize_tauri_bootstrap.mjs",
"build:test": "tsc -b && node --max-old-space-size=4096 node_modules/vite/bin/vite.js build --mode test",
"format": "tsc -b --noEmit && prettier --write --cache .",
"format:check": "tsc -b --noEmit && prettier --check .",
"lint": "eslint .",
"preview": "vite preview",
"preview:prod": "vite preview --mode production",
"preview:test": "vite preview --mode test",
"test": "vitest",
"test:run": "node --max-old-space-size=4096 ./node_modules/vitest/vitest.mjs run",
"test:coverage": "node --max-old-space-size=4096 ./node_modules/vitest/vitest.mjs run --coverage"
},
"dependencies": {
"@agentscope-ai/chat": "patch:@agentscope-ai/chat@npm%3A1.1.72-beta.1783494781362#~/.yarn/patches/@agentscope-ai-chat-npm-1.1.72-beta.1783494781362-c6cb2dc69d.patch",
"@agentscope-ai/design": "^1.0.14",
"@agentscope-ai/icons": "^1.0.67",
"@ant-design/icons": "^5.0.1",
"@ant-design/plots": "^2.6.8",
"@ant-design/x-markdown": "^2.2.2",
"@appica/icons-react": "^1.0.0",
"@dnd-kit/core": "^6.3.1",
"@dnd-kit/sortable": "^10.0.0",
"@dnd-kit/utilities": "^3.2.2",
"@monaco-editor/react": "^4.7.0",
"@tauri-apps/api": "^2.10.1",
"@tauri-apps/plugin-dialog": "^2.7.1",
"@types/react-window": "^1.8.8",
"@vvo/tzdb": "^6.198.0",
"ahooks": "^3.9.6",
"antd": "^5.29.1",
"antd-style": "^3.7.1",
"dayjs": "^1.11.13",
"i18next": "^25.8.4",
"jszip": "^3.10.1",
"lucide-react": "^0.562.0",
"mermaid": "^11.12.2",
"monaco-editor": "0.55.1",
"pretty-bytes": "^7.1.0",
"react": "^18",
"react-dom": "^18",
"react-i18next": "^16.5.4",
"react-markdown": "^10.1.0",
"react-resizable-panels": "^4.11.1",
"react-router-dom": "^7.13.0",
"react-syntax-highlighter": "^16.1.1",
"react-window": "^1.8.10",
"remark-gfm": "^4.0.1",
"zustand": "^5.0.3"
},
"devDependencies": {
"@eslint/js": "^9.25.0",
"@tauri-apps/cli": "^2.10.1",
"@testing-library/dom": "^10.0.0",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.2",
"@testing-library/user-event": "^14.6.1",
"@types/babel__core": "^7.20.5",
"@types/babel__generator": "^7.27.0",
"@types/babel__template": "^7.4.4",
"@types/babel__traverse": "^7.28.0",
"@types/i18next": "^12.1.0",
"@types/node": "^25.0.3",
"@types/react": "^18",
"@types/react-dom": "^18",
"@types/react-syntax-highlighter": "^15.5.13",
"@vitejs/plugin-react": "^4.4.1",
"@vitest/coverage-v8": "^4.1.6",
"eslint": "^9.25.0",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-react-refresh": "^0.4.19",
"globals": "^16.0.0",
"jsdom": "^29.0.2",
"less": "^4.5.1",
"prettier": "3.0.0",
"typescript": "~5.8.3",
"typescript-eslint": "^8.30.1",
"vite": "^6.3.5",
"vitest": "^4.1.4"
},
"repository": "https://github.com/agentscope-ai/agentscope-runtime.git",
"packageManager": "yarn@4.18.0",
"resolutions": {
"@types/react": "18.3.31"
}
}