Metadata-Version: 2.4
Name: hakucc
Version: 0.1.3
Summary: Claude Code ↔ Feishu bridge via claude-agent-sdk
Project-URL: Repository, https://github.com/suj1e/hakucc
Author: suj1e
License-Expression: MIT
License-File: LICENSE
Keywords: chatbot,claude,claude-code,feishu,lark
Requires-Python: >=3.10
Requires-Dist: claude-agent-sdk>=0.1.76
Requires-Dist: click>=8.0
Requires-Dist: httpx[socks]>=0.27
Requires-Dist: lark-oapi>=1.5.5
Requires-Dist: protobuf>=5.0
Requires-Dist: rich>=13.0
Requires-Dist: tomli-w>=1.0
Requires-Dist: tomli>=2.0; python_version < '3.11'
Requires-Dist: websockets>=13.0
Provides-Extra: dev
Requires-Dist: ruff>=0.8; extra == 'dev'
Provides-Extra: image
Requires-Dist: pillow>=10.0; extra == 'image'
Description-Content-Type: text/markdown

# hakucc

Claude Code on Feishu/Lark — Python implementation using [claude-agent-sdk](https://github.com/anthropics/claude-agent-sdk-python).

## Install

```bash
pip install hakucc
# or with image processing support
pip install hakucc[image]
```

## Quick Start

```bash
# Configure Feishu app credentials
hakucc setup

# Start the bot
hakucc

# Background mode
hakucc -d

# Resume last session
hakucc -c

# Use a specific profile
hakucc -p work
```

## Commands

| Command | Description |
|---------|-------------|
| `hakucc setup` | Interactive configuration wizard |
| `hakucc new-profile <name>` | Create a new profile |
| `hakucc list-profiles` | List all profiles |
| `hakucc ps` | List running processes |
| `hakucc kill <target>` | Kill a process |
| `hakucc kill-all` | Kill all processes |
| `hakucc reset-session` | Clear session state |
| `hakucc sessions` | Show session info |
| `hakucc cleanup-tmp-files` | Clean temp files |

## Configuration

Global config: `~/.hakucc/config.toml`

```toml
[feishu]
app_id = "cli_a_xxxx"
app_secret = "xxxx"

[agent]
# permission_mode = "acceptEdits"
# model = "claude-sonnet-4-5"

[streaming]
# mode = "cardkit"  # cardkit | update | none

[overflow]
# mode = "document"  # document | chunk
# threshold = 8000

# [profiles.work]
# feishu.app_id = "cli_a_yyyy"
```

## Development

```bash
pixi install
pixi run setup
pixi run start
```

## License

MIT
