mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-16 13:03:31 +08:00
- 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
24 lines
1.0 KiB
Markdown
24 lines
1.0 KiB
Markdown
# 项目结构
|
||
|
||
<p align="right"><a href="./project-structure.en.md">English</a> | <a href="../../README.md">返回 README</a></p>
|
||
|
||
```
|
||
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/ # 工具函数
|
||
```
|