@unieai/code 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +101 -141
- package/README.md +77 -116
- package/package.json +1 -1
- package/preload.ts +1 -1
package/README.en.md
CHANGED
|
@@ -1,36 +1,95 @@
|
|
|
1
|
-
#
|
|
1
|
+
# UnieAI Code
|
|
2
2
|
|
|
3
3
|
<p align="center">
|
|
4
|
-
<img src="docs/images/
|
|
4
|
+
<img src="docs/images/app-icon.png" alt="UnieAI Code" width="240">
|
|
5
5
|
</p>
|
|
6
6
|
|
|
7
7
|
<div align="center">
|
|
8
8
|
|
|
9
|
-
[](README.md)
|
|
15
|
-
[](README.en.md)
|
|
16
|
-
[](https://claudecode-haha.relakkesyang.org)
|
|
9
|
+
[](https://github.com/UnieAI/unieai-code/stargazers)
|
|
10
|
+
[](https://github.com/UnieAI/unieai-code/issues)
|
|
11
|
+
[](https://www.npmjs.com/package/@unieai/code)
|
|
12
|
+
[](README.md)
|
|
13
|
+
[](README.en.md)
|
|
17
14
|
|
|
18
15
|
</div>
|
|
19
16
|
|
|
20
|
-
|
|
17
|
+
UnieAI Code is an AI coding workspace integrated with **UnieAI Studio**: sessions, multi-project navigation, branch / Worktree launch, right-side file changes, code diffs, permission review, model providers, Computer Use, H5 remote access, IM integration, and scheduled tasks in one macOS / Windows app — plus a CLI built from the same source.
|
|
21
18
|
|
|
22
19
|
<p align="center">
|
|
23
|
-
<a href="#
|
|
20
|
+
<a href="#recent-updates">Recent Updates</a> · <a href="#install-the-cli">Install CLI</a> · <a href="#desktop-preview">Desktop Preview</a> · <a href="#install-the-desktop-app">Install Desktop</a> · <a href="#more-documentation">More Docs</a>
|
|
24
21
|
</p>
|
|
25
22
|
|
|
26
23
|
---
|
|
27
24
|
|
|
25
|
+
## Recent Updates
|
|
26
|
+
|
|
27
|
+
- **npm package ~98% smaller**: publishing used to bundle the entire source tree (`docs/`, `desktop/`, `packages/`, tests, …) — about **116 MB / 3200 files**. It now ships only the `bun build`-bundled, minified `dist/` — about **2.2 MB / ~340 files** (still executed by bun at runtime). `dist/` is built automatically during `prepublishOnly`, is in `.gitignore`, and is never committed; local development still runs straight from `src/` so edits take effect immediately.
|
|
28
|
+
- **Enterprise / on-prem UnieAI Studio integration**: sign in to the cloud or a company-hosted Studio. The inference gateway can be auto-derived from the Studio URL, typed in at login, or overridden with `UNIEAI_GATEWAY_URL` — fixing the case where on-prem login succeeded but API calls failed to route. See [Install the CLI](#install-the-cli).
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## Install the CLI
|
|
33
|
+
|
|
34
|
+
`@unieai/code` runs on the [Bun](https://bun.sh) runtime, so make sure bun is installed and on your PATH.
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
# Install / upgrade to the latest version
|
|
38
|
+
npm install -g @unieai/code
|
|
39
|
+
|
|
40
|
+
# Verify
|
|
41
|
+
unieai --version
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Run `unieai` to start an interactive session. To reinstall or pin a version:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
npm uninstall -g @unieai/code
|
|
48
|
+
npm install -g @unieai/code@latest
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
> The npm package ships only the bundled `dist/` (~2 MB; the JS is still executed by bun) instead of the full source tree.
|
|
52
|
+
|
|
53
|
+
### Sign in to UnieAI Studio
|
|
54
|
+
|
|
55
|
+
On first launch you'll be asked to sign in:
|
|
56
|
+
|
|
57
|
+
- **UnieAI Studio**: use your cloud account (`https://studio.unieai.com`).
|
|
58
|
+
- **Company UnieAI Studio**: enter your enterprise / on-prem Studio URL (e.g. `https://studio.demo.unieai.com`).
|
|
59
|
+
|
|
60
|
+
Enterprise / on-prem deployments often serve inference from a different host than the login URL, so the login flow has an **optional** "Inference gateway URL" step:
|
|
61
|
+
|
|
62
|
+
- Leave it blank → auto-derived from the Studio URL (`studio.` → `api.`).
|
|
63
|
+
- Or type the gateway URL (it usually ends in `/v1`).
|
|
64
|
+
|
|
65
|
+
You can also override it with an environment variable (it applies to already-logged-in sessions too, no re-login needed):
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
export UNIEAI_GATEWAY_URL="https://api.your-company.com/v1"
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Run the CLI from Source
|
|
72
|
+
|
|
73
|
+
For users who want to debug the underlying CLI, server, or local development flow:
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
bun install
|
|
77
|
+
cp .env.example .env
|
|
78
|
+
./bin/claude-haha
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
> Development runs straight from `src/` (edits take effect immediately). On publish, `prepublishOnly` runs `bun run build` to generate `dist/` (gitignored, never committed).
|
|
82
|
+
|
|
83
|
+
See [environment variables](docs/en/guide/env-vars.md) and [global usage](docs/en/guide/global-usage.md) for more configuration options.
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
28
87
|
## Desktop Preview
|
|
29
88
|
|
|
30
|
-
The
|
|
89
|
+
The UnieAI Code desktop app brings sessions, multi-project navigation, branch / Worktree controls, right-side file changes, code diffs, permission review, provider setup, and remote access into one graphical workspace for daily development flows beyond the terminal.
|
|
31
90
|
|
|
32
91
|
<p align="center">
|
|
33
|
-
<a href="https://github.com/
|
|
92
|
+
<a href="https://github.com/UnieAI/unieai-code/releases"><img src="https://img.shields.io/badge/⬇_Download_Desktop-macOS_%7C_Windows-FF7A00?style=for-the-badge" alt="Download Desktop"></a>
|
|
34
93
|
|
|
35
94
|
<a href="docs/desktop/04-installation.md"><img src="https://img.shields.io/badge/📖_Install_Guide-Guide-gray?style=for-the-badge" alt="Install Guide"></a>
|
|
36
95
|
</p>
|
|
@@ -54,121 +113,42 @@ The Claude Code Haha desktop app brings sessions, multi-project navigation, bran
|
|
|
54
113
|
|
|
55
114
|
## Install the Desktop App
|
|
56
115
|
|
|
57
|
-
1. Download the macOS or Windows desktop installer from [Releases](https://github.com/
|
|
58
|
-
2. On first launch, configure your model provider, API key, and default model in Settings.
|
|
116
|
+
1. Download the macOS or Windows desktop installer from [Releases](https://github.com/UnieAI/unieai-code/releases).
|
|
117
|
+
2. On first launch, sign in to UnieAI Studio or configure your model provider, API key, and default model in Settings.
|
|
59
118
|
3. If macOS blocks the app on first open, follow the [desktop installation guide](docs/desktop/04-installation.md) for Gatekeeper steps.
|
|
60
119
|
|
|
61
|
-
## Run the CLI from Source
|
|
62
|
-
|
|
63
|
-
For users who want to debug the underlying CLI, server, or local development flow:
|
|
64
|
-
|
|
65
|
-
```bash
|
|
66
|
-
bun install
|
|
67
|
-
cp .env.example .env
|
|
68
|
-
./bin/claude-haha
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
See [environment variables](docs/en/guide/env-vars.md) and [global usage](docs/en/guide/global-usage.md) for more configuration options.
|
|
72
|
-
|
|
73
120
|
---
|
|
74
121
|
|
|
75
122
|
## Desktop Highlights
|
|
76
123
|
|
|
77
124
|
- **Multi-session workspace**: tabs, project switching, terminal entry, and session history in one place.
|
|
78
|
-
- **Branch / Worktree launch**:
|
|
79
|
-
- **Right-side
|
|
80
|
-
- **
|
|
81
|
-
- **Permission
|
|
82
|
-
- **
|
|
83
|
-
- **Computer Use**: let the agent
|
|
84
|
-
- **H5 remote access**:
|
|
85
|
-
- **IM integration**: chat, switch projects, and approve
|
|
86
|
-
- **Scheduled tasks
|
|
125
|
+
- **Branch / Worktree launch**: new sessions can pick a repo branch and choose the current working tree or an isolated Worktree.
|
|
126
|
+
- **Right-side changes panel**: view changed files, added/removed lines, and workspace status while chatting.
|
|
127
|
+
- **Visualized code edits**: inspect the AI's file edits, diffs, and execution steps directly.
|
|
128
|
+
- **Permission & confirmation flow**: review dangerous commands, tool calls, and AI questions in one place.
|
|
129
|
+
- **Multiple model providers**: UnieAI Studio, Anthropic-compatible APIs, third-party models, and local config.
|
|
130
|
+
- **Computer Use**: let the agent screenshot, click, type, and control desktop apps once authorized.
|
|
131
|
+
- **H5 remote access**: join the current desktop session from a phone or another device with a one-time token.
|
|
132
|
+
- **IM integration**: chat remotely, switch projects, and approve permissions via Telegram / Feishu / WeChat / DingTalk.
|
|
133
|
+
- **Scheduled tasks & usage stats**: create scheduled tasks and track local token usage trends.
|
|
87
134
|
|
|
88
135
|
---
|
|
89
136
|
|
|
90
137
|
## More Documentation
|
|
91
138
|
|
|
92
|
-
|
|
|
139
|
+
| Doc | Description |
|
|
93
140
|
|------|------|
|
|
94
|
-
| [Environment
|
|
95
|
-
| [Third-
|
|
96
|
-
| [Contributing](docs/en/guide/contributing.md) | Local
|
|
97
|
-
| [Memory
|
|
98
|
-
| [Multi-
|
|
99
|
-
| [Skills
|
|
100
|
-
| [
|
|
101
|
-
| [
|
|
102
|
-
| [
|
|
103
|
-
| [Global Usage](docs/en/guide/global-usage.md) | Run claude-haha from any directory |
|
|
141
|
+
| [Environment variables](docs/en/guide/env-vars.md) | Full environment variable reference |
|
|
142
|
+
| [Third-party models](docs/en/guide/third-party-models.md) | Connect OpenAI / DeepSeek / Ollama and other non-Anthropic models |
|
|
143
|
+
| [Contributing & quality gates](docs/en/guide/contributing.md) | Local testing, live-model baselines, PR and release gates |
|
|
144
|
+
| [Memory system](docs/en/memory/01-usage-guide.md) | Cross-session persistent memory |
|
|
145
|
+
| [Multi-agent system](docs/en/agent/01-usage-guide.md) | Multi-agent orchestration, parallel tasks, and Teams |
|
|
146
|
+
| [Skills system](docs/en/skills/01-usage-guide.md) | Extensible capability plugins and custom workflows |
|
|
147
|
+
| [Computer Use](docs/en/features/computer-use.md) | Desktop control (screenshot, mouse, keyboard) |
|
|
148
|
+
| [Desktop](docs/desktop/) | Tauri 2 + React client — [quick start](docs/desktop/01-quick-start.md) \| [architecture](docs/desktop/02-architecture.md) \| [install guide](docs/desktop/04-installation.md) |
|
|
149
|
+
| [Global usage](docs/en/guide/global-usage.md) | Launch the CLI from any directory |
|
|
104
150
|
| [FAQ](docs/en/guide/faq.md) | Common error troubleshooting |
|
|
105
|
-
| [
|
|
106
|
-
| [Project Structure](docs/en/reference/project-structure.md) | Code directory structure |
|
|
107
|
-
|
|
108
|
-
---
|
|
109
|
-
|
|
110
|
-
## Sponsorship & Partnership
|
|
111
|
-
|
|
112
|
-
This project is maintained in the author's spare time. Corporate or individual sponsorships are welcome to support ongoing development. Custom features, integrations, and business partnerships are also open for discussion.
|
|
113
|
-
|
|
114
|
-
<table>
|
|
115
|
-
<thead>
|
|
116
|
-
<tr>
|
|
117
|
-
<th width="220">Sponsor</th>
|
|
118
|
-
<th align="left">Description</th>
|
|
119
|
-
</tr>
|
|
120
|
-
</thead>
|
|
121
|
-
<tbody>
|
|
122
|
-
<tr>
|
|
123
|
-
<td align="center" valign="middle">
|
|
124
|
-
<a href="https://jiekou.ai/referral?invited_code=OBNU3K">
|
|
125
|
-
<img src="docs/images/sponsors/jiekou-logo.svg" width="72" alt="JieKou AI"><br>
|
|
126
|
-
<strong>接口AI</strong>
|
|
127
|
-
</a>
|
|
128
|
-
</td>
|
|
129
|
-
<td valign="middle">
|
|
130
|
-
Thanks to <a href="https://jiekou.ai/referral?invited_code=OBNU3K">JieKou AI</a> for sponsoring this project. JieKou AI provides official model resources with stable, high-performance API access. Subscription bundles are priced at 20% off the official rate; new users who register through <a href="https://jiekou.ai/referral?invited_code=OBNU3K">this link</a> and bind GitHub can claim a $3 coupon.
|
|
131
|
-
</td>
|
|
132
|
-
</tr>
|
|
133
|
-
<tr>
|
|
134
|
-
<td align="center" valign="middle">
|
|
135
|
-
<a href="https://www.shengsuanyun.com/?from=CH_LEJ88KWR">
|
|
136
|
-
<img src="docs/images/sponsors/shengsuanyun-logo.svg" width="180" alt="ShengSuanYun">
|
|
137
|
-
</a>
|
|
138
|
-
</td>
|
|
139
|
-
<td valign="middle">
|
|
140
|
-
Thanks to <a href="https://www.shengsuanyun.com/?from=CH_LEJ88KWR">ShengSuanYun</a> for sponsoring this project. ShengSuanYun is an industrial-grade AI task parallel execution platform for AI Native Teams, aggregating Claude, ChatGPT, Gemini, and other LLM, image, and video model capacity through direct, non-reverse-engineered access. Its platform SLA reaches 99.7%, with <a href="https://watch.shengsuanyun.com/status/shengsuanyun">service status</a> available online. It also supports dedicated enterprise gateways, cost and permission controls, smart routing, security protection, BYOK, usage-based billing, upcoming tokens plans, and invoicing. New users registering through <a href="https://www.shengsuanyun.com/?from=CH_LEJ88KWR">this link</a> can receive 10 yuan in model credits plus a 10% first top-up bonus.
|
|
141
|
-
</td>
|
|
142
|
-
</tr>
|
|
143
|
-
</tbody>
|
|
144
|
-
</table>
|
|
145
|
-
|
|
146
|
-
📧 **Contact**: relakkes@gmail.com
|
|
147
|
-
|
|
148
|
-
---
|
|
149
|
-
|
|
150
|
-
## ☕ Buy Me a Coffee
|
|
151
|
-
|
|
152
|
-
If this project helps you, consider buying me a coffee — every bit of support keeps this project going ❤️
|
|
153
|
-
|
|
154
|
-
<table>
|
|
155
|
-
<tr>
|
|
156
|
-
<td align="center" width="33%">
|
|
157
|
-
<img src="docs/images/donate/wechat_pay.jpeg" width="250" alt="WeChat Pay"><br>
|
|
158
|
-
<b>WeChat Pay</b>
|
|
159
|
-
</td>
|
|
160
|
-
<td align="center" width="33%">
|
|
161
|
-
<img src="docs/images/donate/zfb_pay.png" width="250" alt="Alipay"><br>
|
|
162
|
-
<b>Alipay</b>
|
|
163
|
-
</td>
|
|
164
|
-
<td align="center" width="33%">
|
|
165
|
-
<a href="https://buymeacoffee.com/relakkes" target="_blank">
|
|
166
|
-
<img src="docs/images/donate/bmc_button.png" width="250" alt="Buy Me a Coffee">
|
|
167
|
-
</a><br>
|
|
168
|
-
<b>Buy Me a Coffee</b>
|
|
169
|
-
</td>
|
|
170
|
-
</tr>
|
|
171
|
-
</table>
|
|
151
|
+
| [Project structure](docs/en/reference/project-structure.md) | Code directory overview |
|
|
172
152
|
|
|
173
153
|
---
|
|
174
154
|
|
|
@@ -182,33 +162,13 @@ If this project helps you, consider buying me a coffee — every bit of support
|
|
|
182
162
|
| Local runtime | [Bun](https://bun.sh) |
|
|
183
163
|
| Terminal UI | React + [Ink](https://github.com/vadimdemedes/ink) |
|
|
184
164
|
| CLI parsing | Commander.js |
|
|
185
|
-
| API | Anthropic SDK |
|
|
186
165
|
| Protocols | MCP, LSP |
|
|
187
166
|
|
|
188
|
-
##
|
|
189
|
-
|
|
190
|
-
Thanks to the following open-source projects and community practices for reference and inspiration:
|
|
191
|
-
|
|
192
|
-
- [React](https://github.com/facebook/react): frontend engineering and component-based UI ecosystem.
|
|
193
|
-
- [Tauri](https://github.com/tauri-apps/tauri): cross-platform desktop app capabilities and engineering practices.
|
|
194
|
-
- [cc-switch](https://github.com/farion1231/cc-switch): reference for model provider configuration.
|
|
195
|
-
|
|
196
|
-
---
|
|
197
|
-
|
|
198
|
-
## ⭐ Star History
|
|
199
|
-
|
|
200
|
-
If this project helps you, please support it with a ⭐ Star so more people can discover Claude Code Haha.
|
|
201
|
-
|
|
202
|
-
<a href="https://www.star-history.com/#NanmiCoder/cc-haha&Date">
|
|
203
|
-
<picture>
|
|
204
|
-
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=NanmiCoder/cc-haha&type=Date&theme=dark" />
|
|
205
|
-
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=NanmiCoder/cc-haha&type=Date" />
|
|
206
|
-
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=NanmiCoder/cc-haha&type=Date" />
|
|
207
|
-
</picture>
|
|
208
|
-
</a>
|
|
209
|
-
|
|
210
|
-
---
|
|
167
|
+
## Acknowledgments
|
|
211
168
|
|
|
212
|
-
|
|
169
|
+
Thanks to the following open-source projects for the foundation and inspiration:
|
|
213
170
|
|
|
214
|
-
|
|
171
|
+
- [React](https://github.com/facebook/react): frontend engineering and component UI ecosystem.
|
|
172
|
+
- [Tauri](https://github.com/tauri-apps/tauri): cross-platform desktop app capabilities.
|
|
173
|
+
- [opencode](https://github.com/sst/opencode): upstream open-source base.
|
|
174
|
+
- [cc-switch](https://github.com/farion1231/cc-switch): model provider configuration reference.
|
package/README.md
CHANGED
|
@@ -1,36 +1,95 @@
|
|
|
1
|
-
#
|
|
1
|
+
# UnieAI Code
|
|
2
2
|
|
|
3
3
|
<p align="center">
|
|
4
|
-
<img src="docs/images/app-icon.png" alt="
|
|
4
|
+
<img src="docs/images/app-icon.png" alt="UnieAI Code" width="240">
|
|
5
5
|
</p>
|
|
6
6
|
|
|
7
7
|
<div align="center">
|
|
8
8
|
|
|
9
|
-
[](https://github.com/NanmiCoder/cc-haha/pulls)
|
|
13
|
-
[](https://github.com/NanmiCoder/cc-haha/blob/main/LICENSE)
|
|
9
|
+
[](https://github.com/UnieAI/unieai-code/stargazers)
|
|
10
|
+
[](https://github.com/UnieAI/unieai-code/issues)
|
|
11
|
+
[](https://www.npmjs.com/package/@unieai/code)
|
|
14
12
|
[](README.md)
|
|
15
13
|
[](README.en.md)
|
|
16
|
-
[](https://claudecode-haha.relakkesyang.org)
|
|
17
14
|
|
|
18
15
|
</div>
|
|
19
16
|
|
|
20
|
-
|
|
17
|
+
UnieAI Code 是一个集成 **UnieAI Studio** 的 AI 编程工作台:把会话、多项目、分支 / Worktree、右侧代码改动、代码 Diff、权限审批、模型提供商、Computer Use、H5 远程访问、IM 接入和定时任务集中到一个 macOS / Windows APP,并提供同源的命令行(CLI)。
|
|
21
18
|
|
|
22
19
|
<p align="center">
|
|
23
|
-
<a href="
|
|
20
|
+
<a href="#近期更新">近期更新</a> · <a href="#安装命令行cli">安装 CLI</a> · <a href="#桌面端预览">桌面端预览</a> · <a href="#安装桌面端">安装桌面端</a> · <a href="#更多文档">更多文档</a>
|
|
24
21
|
</p>
|
|
25
22
|
|
|
26
23
|
---
|
|
27
24
|
|
|
25
|
+
## 近期更新
|
|
26
|
+
|
|
27
|
+
- **npm 包瘦身 ~98%**:以前发布时会把整个源码树(含 `docs/`、`desktop/`、`packages/`、测试等)一起打包,约 **116 MB / 3200 文件**。现在改为只发布经 `bun build` 打包并压缩后的 `dist/`,约 **2.2 MB / ~340 文件**(运行时仍由 bun 执行)。`dist/` 在 `prepublishOnly` 阶段自动构建、已加入 `.gitignore`,不会提交;本地开发仍直接跑 `src/`,改动即时生效。
|
|
28
|
+
- **企业 / 地端 UnieAI Studio 整合**:支持云端与企业自建 Studio 登录;推理网关(gateway)可自动从 Studio 网址推导、在登录时手动填写,或用 `UNIEAI_GATEWAY_URL` 覆盖,修复了地端登录成功但 API 打不通的问题。详见 [安装命令行(CLI)](#安装命令行cli)。
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## 安装命令行(CLI)
|
|
33
|
+
|
|
34
|
+
`@unieai/code` 以 [Bun](https://bun.sh) 为运行时,请先确认本机已安装 bun 并在 PATH 上。
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
# 安装 / 升级到最新版
|
|
38
|
+
npm install -g @unieai/code
|
|
39
|
+
|
|
40
|
+
# 验证
|
|
41
|
+
unieai --version
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
安装后用 `unieai` 启动交互式会话。如需重新安装或固定版本:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
npm uninstall -g @unieai/code
|
|
48
|
+
npm install -g @unieai/code@latest
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
> npm 包只发布打包后的 `dist/`(体积约 2 MB;运行时仍由 bun 执行 JS),不再附带整个源码树。
|
|
52
|
+
|
|
53
|
+
### 登录 UnieAI Studio
|
|
54
|
+
|
|
55
|
+
首次启动会要求登录,可选:
|
|
56
|
+
|
|
57
|
+
- **UnieAI Studio**:使用云端账号(`https://studio.unieai.com`)。
|
|
58
|
+
- **Company UnieAI Studio**:填入企业 / 地端 Studio 网址(例如 `https://studio.demo.unieai.com`)。
|
|
59
|
+
|
|
60
|
+
企业 / 地端部署的推理网关(gateway)常与登录网址不同。登录流程会有一个**选填**的 “Inference gateway URL” 步骤:
|
|
61
|
+
|
|
62
|
+
- 留空 → 自动从 Studio 网址推导(`studio.` → `api.`)。
|
|
63
|
+
- 或手动填写网关地址(通常以 `/v1` 结尾)。
|
|
64
|
+
|
|
65
|
+
也可以用环境变量覆盖(对已登录的会话同样生效,无需重新登录):
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
export UNIEAI_GATEWAY_URL="https://api.your-company.com/v1"
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## 从源码启动 CLI
|
|
72
|
+
|
|
73
|
+
适合想调试底层 CLI、服务端或自行开发的用户:
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
bun install
|
|
77
|
+
cp .env.example .env
|
|
78
|
+
./bin/claude-haha
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
> 开发时直接从 `src/` 运行,改动即时生效。npm 发布时会通过 `prepublishOnly` 自动执行 `bun run build` 生成 `dist/`(已在 `.gitignore` 中,不会提交)。
|
|
82
|
+
|
|
83
|
+
更多配置见 [环境变量](docs/guide/env-vars.md) 和 [全局使用](docs/guide/global-usage.md)。
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
28
87
|
## 桌面端预览
|
|
29
88
|
|
|
30
|
-
|
|
89
|
+
UnieAI Code 的桌面端把会话、多项目、分支 / Worktree、右侧代码改动、代码 Diff、权限确认、提供商配置和远程入口集中到一个图形化工作台里,适合不想长期停留在终端里的日常开发工作流。
|
|
31
90
|
|
|
32
91
|
<p align="center">
|
|
33
|
-
<a href="https://github.com/
|
|
92
|
+
<a href="https://github.com/UnieAI/unieai-code/releases"><img src="https://img.shields.io/badge/⬇_下载桌面端-macOS_%7C_Windows-FF7A00?style=for-the-badge" alt="下载桌面端"></a>
|
|
34
93
|
|
|
35
94
|
<a href="docs/desktop/04-installation.md"><img src="https://img.shields.io/badge/📖_安装指南-Guide-gray?style=for-the-badge" alt="安装指南"></a>
|
|
36
95
|
</p>
|
|
@@ -54,22 +113,10 @@ Claude Code Haha 的桌面端把会话、多项目、分支 / Worktree、右侧
|
|
|
54
113
|
|
|
55
114
|
## 安装桌面端
|
|
56
115
|
|
|
57
|
-
1. 前往 [Releases](https://github.com/
|
|
58
|
-
2.
|
|
116
|
+
1. 前往 [Releases](https://github.com/UnieAI/unieai-code/releases) 下载 macOS 或 Windows 桌面端安装包。
|
|
117
|
+
2. 首次启动后,在桌面端设置里登录 UnieAI Studio 或配置模型提供商、API Key 和默认模型。
|
|
59
118
|
3. 如果 macOS 提示应用无法打开,请按 [桌面端安装指南](docs/desktop/04-installation.md) 处理 Gatekeeper 权限。
|
|
60
119
|
|
|
61
|
-
## 从源码启动 CLI
|
|
62
|
-
|
|
63
|
-
适合想调试底层 CLI、服务端或自行开发的用户:
|
|
64
|
-
|
|
65
|
-
```bash
|
|
66
|
-
bun install
|
|
67
|
-
cp .env.example .env
|
|
68
|
-
./bin/claude-haha
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
更多配置见 [环境变量](docs/guide/env-vars.md) 和 [全局使用](docs/guide/global-usage.md)。
|
|
72
|
-
|
|
73
120
|
---
|
|
74
121
|
|
|
75
122
|
## 桌面端亮点
|
|
@@ -79,7 +126,7 @@ cp .env.example .env
|
|
|
79
126
|
- **右侧代码改动面板**:聊天时直接在右侧查看已更改文件、增删行和当前工作区状态。
|
|
80
127
|
- **代码修改可视化**:直接查看 AI 对文件的编辑、Diff 和执行过程。
|
|
81
128
|
- **权限与确认流**:危险命令、工具调用和 AI 反问可以在桌面端集中审批。
|
|
82
|
-
- **多模型提供商**:支持 Anthropic 兼容 API
|
|
129
|
+
- **多模型提供商**:支持 UnieAI Studio、Anthropic 兼容 API、第三方模型和本地配置。
|
|
83
130
|
- **Computer Use**:让 Agent 在授权后截图、点击、输入并控制桌面应用。
|
|
84
131
|
- **H5 远程访问**:用一次性令牌在手机或其他设备上接入当前桌面端会话。
|
|
85
132
|
- **IM 接入**:通过 Telegram / 飞书 / 微信 / 钉钉远程对话、切换项目和审批权限。
|
|
@@ -100,78 +147,12 @@ cp .env.example .env
|
|
|
100
147
|
| [IM 接入](docs/im/) | 通过 Telegram / 飞书 / 微信 / 钉钉远程对话、切换项目和审批权限 |
|
|
101
148
|
| [Computer Use](docs/features/computer-use.md) | 桌面控制功能(截屏、鼠标、键盘)— [架构解析](docs/features/computer-use-architecture.md) |
|
|
102
149
|
| [桌面端](docs/desktop/) | Tauri 2 + React 图形化客户端 — [快速上手](docs/desktop/01-quick-start.md) \| [架构设计](docs/desktop/02-architecture.md) \| [安装指南](docs/desktop/04-installation.md) |
|
|
103
|
-
| [全局使用](docs/guide/global-usage.md) | 在任意目录启动
|
|
150
|
+
| [全局使用](docs/guide/global-usage.md) | 在任意目录启动 CLI |
|
|
104
151
|
| [常见问题](docs/guide/faq.md) | 常见错误排查 |
|
|
105
|
-
| [源码修复记录](docs/reference/fixes.md) | 相对于原始泄露源码的修复内容 |
|
|
106
152
|
| [项目结构](docs/reference/project-structure.md) | 代码目录结构说明 |
|
|
107
153
|
|
|
108
154
|
---
|
|
109
155
|
|
|
110
|
-
## 赞助与合作
|
|
111
|
-
|
|
112
|
-
本项目由个人利用业余时间维护,欢迎企业或个人赞助支持持续开发,也可洽谈定制、集成或商务合作。
|
|
113
|
-
|
|
114
|
-
<table>
|
|
115
|
-
<thead>
|
|
116
|
-
<tr>
|
|
117
|
-
<th width="220">赞助商</th>
|
|
118
|
-
<th align="left">介绍</th>
|
|
119
|
-
</tr>
|
|
120
|
-
</thead>
|
|
121
|
-
<tbody>
|
|
122
|
-
<tr>
|
|
123
|
-
<td align="center" valign="middle">
|
|
124
|
-
<a href="https://jiekou.ai/referral?invited_code=OBNU3K">
|
|
125
|
-
<img src="docs/images/sponsors/jiekou-logo.svg" width="72" alt="接口AI"><br>
|
|
126
|
-
<strong>接口AI</strong>
|
|
127
|
-
</a>
|
|
128
|
-
</td>
|
|
129
|
-
<td valign="middle">
|
|
130
|
-
感谢 <a href="https://jiekou.ai/referral?invited_code=OBNU3K">接口AI</a> 赞助本项目!接口AI 提供官方资源直供与稳定高性能 API 体验,订阅包价格为官方 8 折;使用 <a href="https://jiekou.ai/referral?invited_code=OBNU3K">专属链接</a> 注册并绑定 GitHub,可领取 3 美元优惠券。
|
|
131
|
-
</td>
|
|
132
|
-
</tr>
|
|
133
|
-
<tr>
|
|
134
|
-
<td align="center" valign="middle">
|
|
135
|
-
<a href="https://www.shengsuanyun.com/?from=CH_LEJ88KWR">
|
|
136
|
-
<img src="docs/images/sponsors/shengsuanyun-logo.svg" width="180" alt="胜算云">
|
|
137
|
-
</a>
|
|
138
|
-
</td>
|
|
139
|
-
<td valign="middle">
|
|
140
|
-
感谢 <a href="https://www.shengsuanyun.com/?from=CH_LEJ88KWR">胜算云</a> 赞助本项目!胜算云是面向 AI Native Teams 的工业级 AI 任务并行执行平台,聚合 Claude、ChatGPT、Gemini 等海内外 LLM 及图片、视频多媒体模型算力;官方直连、非逆向,平台 SLA 可用性达 99.7%,可查看 <a href="https://watch.shengsuanyun.com/status/shengsuanyun">服务状态</a>。平台支持企业专属网关、成本与权限管控、智能路由、安全防护和 BYOK,按量与 tokens plan(即将上线)计费并可开票;使用 <a href="https://www.shengsuanyun.com/?from=CH_LEJ88KWR">专属链接</a> 注册可获 10 元模力及首充 10% 赠送。
|
|
141
|
-
</td>
|
|
142
|
-
</tr>
|
|
143
|
-
</tbody>
|
|
144
|
-
</table>
|
|
145
|
-
|
|
146
|
-
📧 **联系邮箱**:relakkes@gmail.com
|
|
147
|
-
|
|
148
|
-
---
|
|
149
|
-
|
|
150
|
-
## ☕ 请作者喝杯咖啡
|
|
151
|
-
|
|
152
|
-
如果这个项目对您有帮助,欢迎打赏支持,您的每一份支持都是我持续更新的动力 ❤️
|
|
153
|
-
|
|
154
|
-
<table>
|
|
155
|
-
<tr>
|
|
156
|
-
<td align="center" width="33%">
|
|
157
|
-
<img src="docs/images/donate/wechat_pay.jpeg" width="250" alt="微信赞赏"><br>
|
|
158
|
-
<b>微信赞赏</b>
|
|
159
|
-
</td>
|
|
160
|
-
<td align="center" width="33%">
|
|
161
|
-
<img src="docs/images/donate/zfb_pay.png" width="250" alt="支付宝"><br>
|
|
162
|
-
<b>支付宝</b>
|
|
163
|
-
</td>
|
|
164
|
-
<td align="center" width="33%">
|
|
165
|
-
<a href="https://buymeacoffee.com/relakkes" target="_blank">
|
|
166
|
-
<img src="docs/images/donate/bmc_button.png" width="250" alt="Buy Me a Coffee">
|
|
167
|
-
</a><br>
|
|
168
|
-
<b>Buy Me a Coffee</b>
|
|
169
|
-
</td>
|
|
170
|
-
</tr>
|
|
171
|
-
</table>
|
|
172
|
-
|
|
173
|
-
---
|
|
174
|
-
|
|
175
156
|
## 技术栈
|
|
176
157
|
|
|
177
158
|
| 类别 | 技术 |
|
|
@@ -182,33 +163,13 @@ cp .env.example .env
|
|
|
182
163
|
| 本地运行时 | [Bun](https://bun.sh) |
|
|
183
164
|
| 终端 UI | React + [Ink](https://github.com/vadimdemedes/ink) |
|
|
184
165
|
| CLI 解析 | Commander.js |
|
|
185
|
-
| API | Anthropic SDK |
|
|
186
166
|
| 协议 | MCP, LSP |
|
|
187
167
|
|
|
188
168
|
## 感谢
|
|
189
169
|
|
|
190
|
-
|
|
170
|
+
感谢以下开源项目为本项目提供基础与启发:
|
|
191
171
|
|
|
192
172
|
- [React](https://github.com/facebook/react):前端工程与组件化 UI 生态。
|
|
193
173
|
- [Tauri](https://github.com/tauri-apps/tauri):跨端桌面应用能力与工程实践。
|
|
174
|
+
- [opencode](https://github.com/sst/opencode):上游开源代码基础。
|
|
194
175
|
- [cc-switch](https://github.com/farion1231/cc-switch):模型供应商配置能力参考。
|
|
195
|
-
|
|
196
|
-
---
|
|
197
|
-
|
|
198
|
-
## ⭐ Star 趋势图
|
|
199
|
-
|
|
200
|
-
如果这个项目对您有帮助,请给个 ⭐ Star 支持一下,让更多的人看到 Claude Code Haha!
|
|
201
|
-
|
|
202
|
-
<a href="https://www.star-history.com/#NanmiCoder/cc-haha&Date">
|
|
203
|
-
<picture>
|
|
204
|
-
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=NanmiCoder/cc-haha&type=Date&theme=dark" />
|
|
205
|
-
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=NanmiCoder/cc-haha&type=Date" />
|
|
206
|
-
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=NanmiCoder/cc-haha&type=Date" />
|
|
207
|
-
</picture>
|
|
208
|
-
</a>
|
|
209
|
-
|
|
210
|
-
---
|
|
211
|
-
|
|
212
|
-
## Disclaimer
|
|
213
|
-
|
|
214
|
-
本仓库基于 2026-03-31 从 Anthropic npm registry 泄露的 Claude Code 源码。所有原始源码版权归 [Anthropic](https://www.anthropic.com) 所有。仅供学习和研究用途。
|
package/package.json
CHANGED
package/preload.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const version = process.env.CLAUDE_CODE_LOCAL_VERSION ?? '0.0.
|
|
1
|
+
const version = process.env.CLAUDE_CODE_LOCAL_VERSION ?? '0.0.10';
|
|
2
2
|
const packageUrl = process.env.CLAUDE_CODE_LOCAL_PACKAGE_URL ?? '@unieai/code';
|
|
3
3
|
const buildTime = process.env.CLAUDE_CODE_LOCAL_BUILD_TIME ?? new Date().toISOString();
|
|
4
4
|
|