Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1

### 4. Start

#### macOS / Linux

```bash
# Interactive TUI mode (full interface)
./bin/claude-haha
Expand All @@ -127,6 +129,36 @@ echo "explain this code" | ./bin/claude-haha -p
./bin/claude-haha --help
```

#### Windows

On Windows, **do not** use the `bin/claude-haha` script (it's a Bash script). Use Bun directly:

```powershell
# Interactive TUI mode (full interface) - requires Windows Terminal or VS Code terminal
bun ./src/entrypoints/cli.tsx

# Headless mode (single prompt)
bun ./src/entrypoints/cli.tsx -p "your prompt here"

# Pipe input
echo "explain this code" | bun ./src/entrypoints/cli.tsx -p

# Show all options
bun ./src/entrypoints/cli.tsx --help
```

**Windows Notes:**
- Must run in **Windows Terminal** or **VS Code integrated terminal** for full TUI
- TUI may not render in legacy PowerShell 5
- First launch shows trust dialog, press `Enter` to confirm

**Windows Fallback Mode (if TUI doesn't display):**

```powershell
$env:CLAUDE_CODE_FORCE_RECOVERY_CLI="1"
bun ./src/localRecoveryCli.ts
```

---

## Environment Variables
Expand Down
32 changes: 32 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1

### 4. 启动

#### macOS / Linux

```bash
# 交互 TUI 模式(完整界面)
./bin/claude-haha
Expand All @@ -127,6 +129,36 @@ echo "explain this code" | ./bin/claude-haha -p
./bin/claude-haha --help
```

#### Windows

Windows 上 **不要** 使用 `bin/claude-haha` 脚本(它是 Bash 脚本),直接使用 Bun 运行:

```powershell
# 交互 TUI 模式(完整界面)- 需要 Windows Terminal 或 VS Code 终端
bun ./src/entrypoints/cli.tsx

# 无头模式(单次问答)
bun ./src/entrypoints/cli.tsx -p "your prompt here"

# 管道输入
echo "explain this code" | bun ./src/entrypoints/cli.tsx -p

# 查看所有选项
bun ./src/entrypoints/cli.tsx --help
```

**Windows 注意事项:**
- 必须在 **Windows Terminal** 或 **VS Code 集成终端** 中运行才能获得完整 TUI 界面
- 在旧版 PowerShell 5 中 TUI 可能无法渲染
- 首次启动会显示信任对话框,按 `Enter` 确认即可

**Windows 降级模式(如果 TUI 无法显示):**

```powershell
$env:CLAUDE_CODE_FORCE_RECOVERY_CLI="1"
bun ./src/localRecoveryCli.ts
```

---

## 环境变量说明
Expand Down
804 changes: 804 additions & 0 deletions bun.lock

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/commands.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// biome-ignore-all assist/source/organizeImports: ANT-ONLY import markers must not be reordered
import addDir from './commands/add-dir/index.js'
import connectSource from './commands/connect-source/index.js'
import autofixPr from './commands/autofix-pr/index.js'
import backfillSessions from './commands/backfill-sessions/index.js'
import btw from './commands/btw/index.js'
Expand Down Expand Up @@ -257,6 +258,7 @@ export const INTERNAL_ONLY_COMMANDS = [
// since underlying functions read from config, which can't be read at module initialization time
const COMMANDS = memoize((): Command[] => [
addDir,
connectSource,
advisor,
agents,
branch,
Expand Down
Loading