pnpm-workspace.yaml 1.78 KB
packages:
  - 'packages/*'
  - 'apps/*'

# pnpm catalog:整个 workspace 所有「外部依赖」的单一版本源(要求 pnpm >= 9)。
# 各 package.json 用 "catalog:" 引用,统一升级只需改这里;
# 只有内部包互引(如 @coderio/ai-client、coderio)才用 "workspace:*"。
catalog:
  # ── 语言 / 运行时基础 ──
  typescript: ^5.7.2
  '@types/node': ^22.10.2
  tsx: ^4.21.0
  zod: ^3.23.8

  # ── web 运行时(React / UI 组件库)──
  react: ^18.3.1
  'react-dom': ^18.3.1
  '@types/react': ^18.3.12
  '@types/react-dom': ^18.3.1
  'react-router-dom': ^6.28.0
  '@radix-ui/react-label': ^2.1.1
  '@radix-ui/react-select': ^2.1.4
  '@radix-ui/react-slot': ^1.1.1
  '@radix-ui/react-tabs': ^1.1.21
  'class-variance-authority': ^0.7.1
  clsx: ^2.1.1
  'tailwind-merge': ^2.5.5
  'lucide-react': ^0.460.0
  sonner: ^1.7.0

  # ── web 构建链 ──
  vite: ^5.4.11
  '@vitejs/plugin-react': ^4.3.4
  tailwindcss: ^3.4.15
  autoprefixer: ^10.4.20
  postcss: ^8.4.49
  'tailwindcss-animate': ^1.0.7

  # ── AI / LangChain 链(coderio + ai-client 共享,版本已统一)──
  '@langchain/core': ^1.1.19
  '@langchain/openai': ^1.2.4
  '@langchain/langgraph': ^1.1.2
  '@langchain/langgraph-checkpoint-sqlite': ^1.0.0

  # ── coderio 引擎运行时 ──
  axios: ^1.13.2
  'better-sqlite3': ^11.10.0
  chalk: ^5.4.1
  commander: ^12.1.0
  evoltagent: 1.1.5
  'js-yaml': ^4.1.1
  pixelmatch: ^7.1.0
  prompts: ^2.4.2

  # ── coderio 类型 / 构建 / 测试 / 质量工具链 ──
  '@types/pixelmatch': ^5.2.6
  '@types/js-yaml': ^4.0.9
  '@types/prompts': ^2.4.9
  tsup: ^8.3.5
  vitest: ^2.1.9
  '@vitest/coverage-v8': ^2.1.9
  eslint: ^9.17.0
  'typescript-eslint': ^8.18.1
  prettier: ^3.4.2
  husky: ^9.1.7
  'lint-staged': ^16.2.7