hwjcode-personal 1.1.121

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.
Files changed (47) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +278 -0
  3. package/bundle/assets/help/cli-help-knowledge.md +1933 -0
  4. package/bundle/assets/sounds/confirmation-required.wav +0 -0
  5. package/bundle/assets/sounds/response-complete.wav +0 -0
  6. package/bundle/assets/sounds/selection-made.wav +0 -0
  7. package/bundle/fix-binary-permissions.js +215 -0
  8. package/bundle/hwjcode.js +8247 -0
  9. package/bundle/login/templates/authSelectPage.html +1332 -0
  10. package/bundle/login/templates/deepv.ico +0 -0
  11. package/bundle/login/templates/feishu.ico +0 -0
  12. package/bundle/node_modules/@vscode/ripgrep/bin/darwin-arm64-rg +0 -0
  13. package/bundle/node_modules/@vscode/ripgrep/bin/darwin-x64-rg +0 -0
  14. package/bundle/node_modules/@vscode/ripgrep/bin/linux-arm-rg +0 -0
  15. package/bundle/node_modules/@vscode/ripgrep/bin/linux-arm64-rg +0 -0
  16. package/bundle/node_modules/@vscode/ripgrep/bin/linux-x64-rg +0 -0
  17. package/bundle/node_modules/@vscode/ripgrep/bin/rg +0 -0
  18. package/bundle/node_modules/@vscode/ripgrep/bin/win32-arm64-rg.exe +0 -0
  19. package/bundle/node_modules/@vscode/ripgrep/bin/win32-ia32-rg.exe +0 -0
  20. package/bundle/node_modules/@vscode/ripgrep/bin/win32-x64-rg.exe +0 -0
  21. package/bundle/node_modules/@vscode/ripgrep/lib/download.js +357 -0
  22. package/bundle/node_modules/@vscode/ripgrep/lib/index.d.ts +1 -0
  23. package/bundle/node_modules/@vscode/ripgrep/lib/index.js +42 -0
  24. package/bundle/node_modules/@vscode/ripgrep/lib/postinstall.js +121 -0
  25. package/bundle/node_modules/@vscode/ripgrep/package.json +24 -0
  26. package/bundle/node_modules/yoga-layout/dist/binaries/yoga-wasm-base64-esm.js +75 -0
  27. package/bundle/node_modules/yoga-layout/dist/src/generated/YGEnums.d.ts +189 -0
  28. package/bundle/node_modules/yoga-layout/dist/src/generated/YGEnums.js +211 -0
  29. package/bundle/node_modules/yoga-layout/dist/src/generated/YGEnums.js.map +1 -0
  30. package/bundle/node_modules/yoga-layout/dist/src/index.d.ts +12 -0
  31. package/bundle/node_modules/yoga-layout/dist/src/index.js +16 -0
  32. package/bundle/node_modules/yoga-layout/dist/src/index.js.map +1 -0
  33. package/bundle/node_modules/yoga-layout/dist/src/load.d.ts +11 -0
  34. package/bundle/node_modules/yoga-layout/dist/src/load.js +17 -0
  35. package/bundle/node_modules/yoga-layout/dist/src/load.js.map +1 -0
  36. package/bundle/node_modules/yoga-layout/dist/src/wrapAssembly.d.ts +155 -0
  37. package/bundle/node_modules/yoga-layout/dist/src/wrapAssembly.js +125 -0
  38. package/bundle/node_modules/yoga-layout/dist/src/wrapAssembly.js.map +1 -0
  39. package/bundle/node_modules/yoga-layout/package.json +53 -0
  40. package/bundle/package.json +5 -0
  41. package/bundle/sandbox-macos-permissive-closed.sb +26 -0
  42. package/bundle/sandbox-macos-permissive-open.sb +19 -0
  43. package/bundle/sandbox-macos-permissive-proxied.sb +31 -0
  44. package/bundle/sandbox-macos-restrictive-closed.sb +87 -0
  45. package/bundle/sandbox-macos-restrictive-open.sb +90 -0
  46. package/bundle/sandbox-macos-restrictive-proxied.sb +92 -0
  47. package/package.json +154 -0
package/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright 2025 Google LLC
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,278 @@
1
+ <div align="center">
2
+
3
+ # 🚀 hwjcode
4
+
5
+ ### **飞书原生 · Worktree 并行 · 自更新的 AI 编程 Agent**
6
+
7
+ *基于 Easy Code 深度定制的增强 fork,专为飞书团队协作而生*
8
+
9
+ <br>
10
+
11
+ [![npm version](https://img.shields.io/npm/v/hwjcode.svg?color=CB3837&logo=npm)](https://www.npmjs.com/package/hwjcode)
12
+ [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE)
13
+ [![Node.js](https://img.shields.io/badge/Node.js-20%2B-43853D.svg?logo=node.js&logoColor=white)](https://nodejs.org/)
14
+ [![TypeScript](https://img.shields.io/badge/TypeScript-5.0%2B-3178C6.svg?logo=typescript&logoColor=white)](https://www.typescriptlang.org/)
15
+
16
+ <br>
17
+
18
+ </div>
19
+
20
+ ---
21
+
22
+ ## 📖 这是什么?
23
+
24
+ **hwjcode** 是 [Easy Code](https://github.com/OrionStarAI/EasyCode) 的增强 fork,在原项目的 AI 编码能力之上,增加了三大核心能力:
25
+
26
+ ### 1. 🦜 飞书原生集成
27
+
28
+ 把 AI Agent 变成**飞书机器人**,在群聊里直接干活:
29
+
30
+ ```
31
+ 你在飞书群:帮我重构这个模块
32
+
33
+ 飞书 Bot → 创建独立 Worktree → Agent 在隔离环境中工作 → 提交代码
34
+ ```
35
+
36
+ - **私聊**:直接对话,像用 CLI 一样
37
+ - **项目群**:「拉个群 + 项目路径」一键创建绑定工作目录的专属群
38
+ - **批量建群**:一次性拆分任务到多个群并行开发,每个群自带独立 worktree + TASK.md 任务文档
39
+ - **实时流式**:Agent 的思考过程和工具调用通过飞书卡片实时回传
40
+ - **自然语言指令**:「提交代码」「查看修改」「放弃修改」直接触发 git 操作
41
+
42
+ ### 2. 🌳 Git Worktree 并行隔离
43
+
44
+ 多个 Agent 在同一仓库下**互不干扰**地并行工作:
45
+
46
+ ```
47
+ ai-exam/ ← 仓库根目录
48
+ ├── .easycode/worktrees/
49
+ │ ├── ui-team/ ← UI 组的隔离工作区(独立分支)
50
+ │ ├── api-team/ ← API 组的隔离工作区(独立分支)
51
+ │ └── test-team/ ← 测试组的隔离工作区(独立分支)
52
+ ├── vibe-coding-题目.md
53
+ └── packages/
54
+ ```
55
+
56
+ - 每个飞书群聊绑定独立 worktree,文件操作完全隔离
57
+ - `/worktree status` 查看改动 · `/worktree commit` 提交 · `/worktree discard` 丢弃
58
+ - worktree 正确建在 git root(而非子目录),包含完整仓库快照
59
+ - TASK.md 持久化任务文档(handoff 设计哲学:文档是最可靠的上下文)
60
+
61
+ ### 3. 🔄 自更新机制
62
+
63
+ 飞书里说一句「更新一下」,自动完成 **npm 安装 + 进程重启**:
64
+
65
+ - 外挂脚本模式:父进程退出 → npm cache clean → 安装当前产品通道 → 拉起新进程
66
+ - SIGHUP 修复:外挂脚本脱离父进程 session,不被连带杀死
67
+ - npm cache 三重保险:`cache clean --force` + `--prefer-online` + `--force`
68
+ - 自动带上原启动参数(`--feishu` 等),无缝重启
69
+
70
+ ---
71
+
72
+ ## 📦 安装
73
+
74
+ 商业稳定版和个人版是两个可共存的 npm 产品:
75
+
76
+ ```bash
77
+ # 商业稳定版
78
+ npm install -g hwjcode@stable
79
+
80
+ # 个人版
81
+ npm install -g hwjcode-personal@latest
82
+ ```
83
+
84
+ 验证:
85
+
86
+ ```bash
87
+ hwjcode --version
88
+ hwjcode-personal --version
89
+ ```
90
+
91
+ 两者的全局命令、自更新目标和配置目录完全独立。商业版使用
92
+ `~/.hwjcode-user`,个人版使用 `~/.hwjcode-personal`。
93
+
94
+ ---
95
+
96
+ ## 🚀 快速开始
97
+
98
+ ### CLI 模式(和原项目一样)
99
+
100
+ ```bash
101
+ cd your-project
102
+ hwjcode
103
+ ```
104
+
105
+ ### 飞书网关模式(核心差异化)
106
+
107
+ ```bash
108
+ hwjcode --feishu
109
+ ```
110
+
111
+ 首次启动会引导你完成飞书应用配置(App ID / Secret)。配置完成后:
112
+
113
+ 1. **私聊机器人**:直接对话即可,机器人绑定一个默认工作目录
114
+ 2. **创建项目群**:发送 `拉个群 /path/to/project`
115
+ 3. **批量并行开发**:告诉主 Agent 你的任务清单,它会自动拆分到多个群
116
+
117
+ ---
118
+
119
+ ## 🦜 飞书功能详解
120
+
121
+ ### 项目群创建
122
+
123
+ | 操作 | 效果 |
124
+ |:---|:---|
125
+ | `拉个群 D:\my-app` | 创建群 + 绑定工作目录 + 自动检测 git 创建 worktree |
126
+ | `拉个群 D:\my-app --agent claude-code` | 群消息自动派发给本机 Claude Code 执行 |
127
+ | 批量建群(Agent 自动) | 一次性创建多个群,每个群独立 worktree + TASK.md |
128
+
129
+ ### 飞书命令
130
+
131
+ | 命令 | 说明 |
132
+ |:---|:---|
133
+ | `/help` | 查看帮助 |
134
+ | `/status` | 查看 CLI 版本、积分、模型、上下文大小 |
135
+ | `/model <name>` | 切换 AI 模型 |
136
+ | `/bind <路径>` | 绑定/切换群的工作目录 |
137
+ | `/worktree status` | 查看当前 worktree 的 git 改动 |
138
+ | `/worktree commit [msg]` | 提交修改并清理 worktree |
139
+ | `/worktree discard` | 丢弃所有修改 |
140
+ | `/worktree create [name]` | 创建新 worktree |
141
+ | `/sessions` | 查看本机 Agent 会话(Claude Code / Codex) |
142
+ | `/update` | 自更新到最新版 |
143
+
144
+ ### 自然语言触发
145
+
146
+ | 你说的话 | 触发的操作 |
147
+ |:---|:---|
148
+ | 「提交代码」 | `/worktree commit` |
149
+ | 「查看修改」 | `/worktree status` |
150
+ | 「放弃修改」 | `/worktree discard` |
151
+ | 「更新一下」 | 自更新到最新版 |
152
+
153
+ ### Agent 派发(ACP)
154
+
155
+ 把编码任务转交给本机的 **Claude Code** 或 **Codex** 执行:
156
+
157
+ ```
158
+ @cc 给 src/foo.ts 加单元测试 → 派发给 Claude Code
159
+ @codex 写个基准测试 → 派发给 Codex
160
+ @cc:resume <sessionId> 继续上次的工作 → 续接历史会话
161
+ ```
162
+
163
+ 也可以通过 `/bind <路径> --agent claude-code` 设置群默认派发方。
164
+
165
+ ---
166
+
167
+ ## 🌳 Worktree 管理详解
168
+
169
+ ### 工作流
170
+
171
+ ```
172
+ 建群 → 自动创建 worktree(独立分支)
173
+
174
+ Agent 在隔离环境工作(文件互不干扰)
175
+
176
+ /worktree status ← 查看改了什么
177
+ /worktree commit ← 提交到分支 + 清理
178
+ /worktree discard ← 不满意?丢弃重来
179
+ ```
180
+
181
+ ### TASK.md 任务文档
182
+
183
+ 批量建群时,每个群的 worktree 根目录会自动生成 `TASK.md`:
184
+
185
+ ```markdown
186
+ # 任务规划
187
+
188
+ > 本文档由主 Agent 在建群时自动生成,描述本群 agent 的工作目标。
189
+ > 文件持久保存在工作区根目录,可随时查看或编辑。
190
+
191
+ ---
192
+
193
+ (主 Agent 分配的具体任务描述)
194
+ ```
195
+
196
+ Agent 首次收到消息时会被引导去读 `TASK.md`。这个文件:
197
+ - ✅ **持久** — 不会因 session 重建或 /compact 丢失
198
+ - ✅ **可见** — 终端 `cat TASK.md` 随时查看
199
+ - ✅ **可编辑** — 改了文件,Agent 下次读就是新内容
200
+
201
+ ---
202
+
203
+ ## ⚙️ CLI 原有功能
204
+
205
+ 作为 Easy Code 的 fork,原项目的所有功能完整保留:
206
+
207
+ - **AI 编码**:代码生成、重构、Bug 修复、多语言支持
208
+ - **工具系统**:read_file / write_file / shell / grep / glob / web_fetch / web_search 等
209
+ - **MCP 协议**:连接外部数据源和工具
210
+ - **自定义模型**:OpenAI / Anthropic / 本地模型(通过 litellm-gateway)
211
+ - **Hooks 钩子**:在工作流节点注入自定义逻辑
212
+ - **会话管理**:持久化 / 恢复 / 压缩 / 检查点
213
+ - **斜杠命令**:/help / /model / /session / /mcp / /memory 等
214
+ - **Skills 系统**:可复用的技能包,支持本地和远程仓库
215
+ - **Cron 定时任务**:支持定时执行任务
216
+
217
+ 详见原项目文档。
218
+ ---
219
+
220
+ ## 🛠️ 开发
221
+
222
+ ```bash
223
+ git clone https://github.com/hwj123hwj/hwjcode.git
224
+ cd hwjcode
225
+ npm install
226
+ npm run build
227
+ npm run dev
228
+ ```
229
+
230
+ ### 常用命令
231
+
232
+ | 命令 | 说明 |
233
+ |:---|:---|
234
+ | `npm run build` | 构建所有包 |
235
+ | `npm run dev` | 开发模式运行 |
236
+ | `npm run test` | 运行测试 |
237
+ | `npm run lint` | 代码风格检查 |
238
+ | `npm run typecheck` | TypeScript 类型检查 |
239
+ | `npm run release:version patch` | 版本号 bump |
240
+
241
+ ### 发布流程
242
+
243
+ ```bash
244
+ npm run release:version patch # bump 版本
245
+ git add -A && git commit # 提交
246
+ git tag v1.1.xx && git push # 打 tag 推送
247
+ npm publish --access public # 发布到 npm
248
+ ```
249
+
250
+ ---
251
+
252
+ ## 📋 与原项目的差异
253
+
254
+ | 功能 | 原 Easy Code | hwjcode fork |
255
+ |:---|:---|:---|
256
+ | 飞书集成 | ❌ | ✅ 网关模式 + 群聊 + 卡片 + 流式 |
257
+ | Worktree 隔离 | ❌ | ✅ 并行开发 + 群聊隔离 |
258
+ | 自更新 | ❌ | ✅ npm + 外挂脚本 + SIGHUP 修复 |
259
+ | 批量建群 | ❌ | ✅ + TASK.md 持久化任务文档 |
260
+ | Agent 派发 | 基础 ACP | ✅ 增强(群默认绑定 + /sessions + resume) |
261
+ | 包名 | `easycode-ai` | `hwjcode` |
262
+ | 命令名 | `easycode` | `hwjcode` |
263
+
264
+ ---
265
+
266
+ ## 📄 许可证
267
+
268
+ [Apache License 2.0](LICENSE)
269
+
270
+ ---
271
+
272
+ <div align="center">
273
+
274
+ **⭐ 如果这个 fork 对你有帮助,请给个 Star!**
275
+
276
+ Based on [Easy Code](https://github.com/OrionStarAI/EasyCode) by OrionStarAI
277
+
278
+ </div>