feat: 将项目名称从 Claude Code 重命名为 LHY Code
- 更新 package.json 中的 name、bin 和 scripts 字段 - 创建新的启动脚本 bin/lhy-code - 将所有文档和源代码中的 "Claude Code" 替换为 "LHY Code" - 更新欢迎信息、状态栏描述和版本显示 - 删除不再需要的 .env.example 文件
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Claude Code Haha
|
||||
# LHY Code
|
||||
|
||||
<p align="right"><strong>中文</strong> | <a href="./README.en.md">English</a></p>
|
||||
|
||||
@@ -117,23 +117,23 @@ CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1
|
||||
|
||||
```bash
|
||||
# 交互 TUI 模式(完整界面)
|
||||
./bin/claude-haha
|
||||
./bin/lhy-code
|
||||
|
||||
# 无头模式(单次问答)
|
||||
./bin/claude-haha -p "your prompt here"
|
||||
./bin/lhy-code -p "your prompt here"
|
||||
|
||||
# 管道输入
|
||||
echo "explain this code" | ./bin/claude-haha -p
|
||||
echo "explain this code" | ./bin/lhy-code -p
|
||||
|
||||
# 查看所有选项
|
||||
./bin/claude-haha --help
|
||||
./bin/lhy-code --help
|
||||
```
|
||||
|
||||
#### Windows
|
||||
|
||||
> **前置要求**:必须安装 [Git for Windows](https://git-scm.com/download/win)(提供 Git Bash,项目内部 Shell 执行依赖它)。
|
||||
|
||||
Windows 下启动脚本 `bin/claude-haha` 是 bash 脚本,无法在 cmd / PowerShell 中直接运行。请使用以下方式:
|
||||
Windows 下启动脚本 `bin/lhy-code` 是 bash 脚本,无法在 cmd / PowerShell 中直接运行。请使用以下方式:
|
||||
|
||||
**方式一:PowerShell / cmd 直接调用 Bun(推荐)**
|
||||
|
||||
@@ -152,7 +152,7 @@ bun --env-file=.env ./src/localRecoveryCli.ts
|
||||
|
||||
```bash
|
||||
# 在 Git Bash 终端中,与 macOS/Linux 用法一致
|
||||
./bin/claude-haha
|
||||
./bin/lhy-code
|
||||
```
|
||||
|
||||
> **注意**:部分功能(语音输入、Computer Use、Sandbox 隔离等)在 Windows 上不可用,不影响核心 TUI 交互。
|
||||
@@ -181,7 +181,7 @@ bun --env-file=.env ./src/localRecoveryCli.ts
|
||||
如果完整 TUI 出现问题,可以使用简化版 readline 交互模式:
|
||||
|
||||
```bash
|
||||
CLAUDE_CODE_FORCE_RECOVERY_CLI=1 ./bin/claude-haha
|
||||
CLAUDE_CODE_FORCE_RECOVERY_CLI=1 ./bin/lhy-code
|
||||
```
|
||||
|
||||
---
|
||||
@@ -204,7 +204,7 @@ CLAUDE_CODE_FORCE_RECOVERY_CLI=1 ./bin/claude-haha
|
||||
## 项目结构
|
||||
|
||||
```
|
||||
bin/claude-haha # 入口脚本
|
||||
bin/lhy-code # 入口脚本
|
||||
preload.ts # Bun preload(设置 MACRO 全局变量)
|
||||
.env.example # 环境变量模板
|
||||
src/
|
||||
|
||||
Reference in New Issue
Block a user