cc-haha/docs/reference/project-structure.md
程序员阿江(Relakkes) 8bb3c0e116 docs: restructure README and organize docs into subdirectories
- Slim down README from ~400 lines to ~140 lines, keeping only essential content
- Reorganize docs/ into guide/, features/, reference/, images/ subdirectories
- Add GitHub badges (stars, forks, issues, PRs, license, language switch)
- Extract env vars, FAQ, fixes, project structure, global usage into separate docs
- Add LICENSE file (educational and research use only)
- Update all cross-references and issue template links
2026-04-04 18:18:01 +08:00

1.0 KiB
Raw Blame History

项目结构

English | 返回 README

bin/claude-haha          # 入口脚本
preload.ts               # Bun preload设置 MACRO 全局变量)
.env.example             # 环境变量模板
src/
├── entrypoints/cli.tsx  # CLI 主入口
├── main.tsx             # TUI 主逻辑Commander.js + React/Ink
├── localRecoveryCli.ts  # 降级 Recovery CLI
├── setup.ts             # 启动初始化
├── screens/REPL.tsx     # 交互 REPL 界面
├── ink/                 # Ink 终端渲染引擎
├── components/          # UI 组件
├── tools/               # Agent 工具Bash, Edit, Grep 等)
├── commands/            # 斜杠命令(/commit, /review 等)
├── skills/              # Skill 系统
├── services/            # 服务层API, MCP, OAuth 等)
├── hooks/               # React hooks
└── utils/               # 工具函数