v0.6.0: beautifului 整合 + 会话/工作区/队列/权限/命令/附件全链路

- beautifului.dev 组件直连:Sidebar Nav、Tool Chips、Approval Card(抽屉化)、Streaming/Thinking、Code Block、Selection Actions、Prompt Bar、Search
This commit is contained in:
Rick Ye
2026-09-06 09:57:14 +08:00
parent 3c2e9e96c5
commit a5951849c8
96 changed files with 11828 additions and 4649 deletions
+18
View File
@@ -0,0 +1,18 @@
// 校验 react-icons/lu 里要用的图标名是否存在
import { readdirSync, readFileSync } from 'node:fs'
const pnpm = new URL('../node_modules/.pnpm/', import.meta.url)
const dir = readdirSync(pnpm).find((d) => d.startsWith('react-icons@'))
if (!dir) throw new Error('react-icons not found')
const dts = new URL(`${dir}/node_modules/react-icons/lu/index.d.ts`, pnpm)
const content = readFileSync(dts, 'utf8')
const names = [
'LuCheck', 'LuCpu', 'LuMessageSquare', 'LuPencil', 'LuRefreshCw', 'LuSettings', 'LuStore',
'LuTrash2', 'LuX', 'LuAlertTriangle', 'LuTriangleAlert', 'LuRotateCw', 'LuShieldAlert',
'LuTimer', 'LuKeyRound', 'LuLogOut', 'LuSearch', 'LuSparkles', 'LuPlus', 'LuArrowUp',
'LuSquare', 'LuChevronDown', 'LuActivity'
]
for (const n of names) {
console.log(n, content.includes(`declare const ${n}:`) ? 'OK' : 'MISSING')
}