Files
liuyao/package.json
T
woniu336 141ed9f4a8 feat(llm): DeepSeek Flash + 思考模式;本地密钥加载器
- llm_profiles 增加 thinking / reasoning_effort(migrations/0002),
  ensureD1Schema 容忍 ALTER 重复列,已有库平滑升级
- /api/read 按 profile 组装 thinking / reasoning_effort;只转发 delta.content,
  思考链 reasoning_content 不下发;max_tokens 4096
- 后台 LLM 表单新增「思考模式」「思考强度」,列表显示当前设置;测试连通沿用同一配置
- scripts/load-secrets.mjs:启动前读取 .llm.local(gitignore),
  dev / dev:bg / dev:vinext / build:vinext / start:vinext 共用
- 解卦面板显示「研墨中 · Ns」,思考模式首字慢时有提示
- 新增 llm-request 纯函数与 4 项测试;总 68 项测试通过

本地实测:DeepSeek Flash + thinking=high,/api/read 约 23s、840 字、四段齐全;
UI 4 标题/5 段、0 错误。密钥仅存于 .llm.local(不进仓库/D1)。
2026-11-05 14:36:38 +08:00

47 lines
1.4 KiB
JSON

{
"name": "liuyao",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "node scripts/next.mjs dev",
"build": "node scripts/next.mjs build",
"start": "node scripts/next.mjs start",
"lint": "next lint",
"test": "vitest run",
"dev:bg": "node scripts/dev-bg.mjs",
"check:portability": "node scripts/check-portability.mjs",
"dev:vinext": "node scripts/vinext.mjs dev --port 3001 --strictPort",
"build:vinext": "node scripts/vinext.mjs build",
"start:vinext": "node scripts/vinext.mjs preview",
"deploy:vinext": "vinext-cloudflare deploy",
"gen:schema": "node scripts/gen-db-schema.mjs",
"check:schema": "node scripts/gen-db-schema.mjs --check",
"check": "npm run check:schema && npm run check:portability && npm test"
},
"dependencies": {
"@vinext/cloudflare": "^1.3.3",
"lucide-react": "^1.40.0",
"lunar-javascript": "^1.7.7",
"next": "16.3.0",
"react": "^19.3.1",
"react-dom": "^19.3.1",
"react-server-dom-webpack": "^19.3.1",
"vinext": "^1.4.3"
},
"devDependencies": {
"@cloudflare/vite-plugin": "^2.0.0-beta.v.11",
"@tailwindcss/postcss": "^4",
"@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",
"@vitejs/plugin-react": "^6.2.1",
"@vitejs/plugin-rsc": "^0.5.38",
"cf": "^1.0.0-beta.27",
"tailwindcss": "^4",
"typescript": "^5",
"vite": "^8.3.0",
"vitest": "^4.1.10"
},
"type": "module"
}