@skyf0xx/hedgehog 6.0.3 → 6.0.5
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.md +9 -17
- package/README.zh-CN.md +10 -16
- package/bin/cli.mjs +139 -504
- package/package.json +2 -3
- package/src/db/community.mjs +1 -26
- package/src/db/core.mjs +1 -2
- package/src/db/debt.mjs +3 -3
- package/src/db/decision.mjs +64 -0
- package/src/db/friction.mjs +0 -75
- package/src/db/init.mjs +12 -0
- package/src/db/next.mjs +40 -40
- package/src/db/plan.mjs +3 -55
- package/src/db/rebuild.mjs +20 -14
- package/src/db/schema.mjs +101 -6
- package/src/db/status.mjs +2 -100
- package/src/hosts/gemini/gemini-extension.json +1 -1
- package/src/skills/hedgehog-contributing/SKILL.md +17 -24
- package/src/skills/pr-writing/SKILL.md +63 -0
- package/src/templates/CLAUDE.md +9 -2
- package/src/db/code-intelligence-requires.mjs +0 -296
- package/src/db/code-intelligence.mjs +0 -291
- package/src/skills/hedgehog-code-intelligence-setup/SKILL.md +0 -586
package/README.md
CHANGED
|
@@ -93,23 +93,20 @@ Every dependency is explicit, so Hedgehog knows which tasks can run in parallel.
|
|
|
93
93
|
|
|
94
94
|
Agents fan out to give you great outcomes at **faster speeds**.
|
|
95
95
|
|
|
96
|
-
##
|
|
96
|
+
## Live Dependency Awareness
|
|
97
97
|
|
|
98
|
-
Hedgehog
|
|
98
|
+
Hedgehog reaches for your editor's own Language Server Protocol integration to see what depends on what.
|
|
99
99
|
|
|
100
100
|
```mermaid
|
|
101
101
|
flowchart TD
|
|
102
|
-
A[Code Repository] --> B[
|
|
103
|
-
B --> C[
|
|
104
|
-
C --> D[
|
|
105
|
-
D --> E[MCP Server]
|
|
106
|
-
E --> F[Hedgehog]
|
|
102
|
+
A[Code Repository] --> B[Language Server]
|
|
103
|
+
B --> C[Symbols & References]
|
|
104
|
+
C --> D[Hedgehog]
|
|
107
105
|
```
|
|
108
106
|
|
|
109
|
-
- **
|
|
110
|
-
- **
|
|
111
|
-
- **
|
|
112
|
-
- **Tests cover what changed**: verification that misses affected code gets caught
|
|
107
|
+
- **Lower token cost**: a targeted symbol lookup replaces reading or grepping whole files for context
|
|
108
|
+
- **Impact known before editing**: every task checks what depends on it before it changes anything
|
|
109
|
+
- **Verification matches the real surface**: tests target what actually changed
|
|
113
110
|
|
|
114
111
|
## Deterministic Code Generation
|
|
115
112
|
|
|
@@ -218,10 +215,7 @@ Mention `Hedgehog` whenever you want to build something with it.
|
|
|
218
215
|
<summary>Instructions for AI Agents</summary>
|
|
219
216
|
|
|
220
217
|
1. Check Node >=22.5.0 is installed.
|
|
221
|
-
2.
|
|
222
|
-
3. Check CodeGraphContext is installed and configured.
|
|
223
|
-
4. If anything is missing, offer to set it up with the `hedgehog-code-intelligence-setup` skill — `init` stops without it.
|
|
224
|
-
5. Run the install commands below.
|
|
218
|
+
2. Run the install commands below.
|
|
225
219
|
|
|
226
220
|
</details>
|
|
227
221
|
|
|
@@ -288,8 +282,6 @@ new one.
|
|
|
288
282
|
|
|
289
283
|
- Animation skills vendored from [gsap-skills](https://github.com/greensock/gsap-skills).
|
|
290
284
|
|
|
291
|
-
- Hedgehog indexes your codebase with [CodeGraphContext](https://github.com/CodeGraphContext/CodeGraphContext).
|
|
292
|
-
|
|
293
285
|
## Support Hedgehog
|
|
294
286
|
|
|
295
287
|
If Hedgehog helps you build better software with AI, **give it a ⭐ on GitHub**.
|
package/README.zh-CN.md
CHANGED
|
@@ -93,23 +93,20 @@ npx @skyf0xx/hedgehog graph # 显示构建图
|
|
|
93
93
|
|
|
94
94
|
多个 agent 并行展开工作,以**更快的速度**交付出色的结果。
|
|
95
95
|
|
|
96
|
-
##
|
|
96
|
+
## 实时感知依赖关系
|
|
97
97
|
|
|
98
|
-
Hedgehog
|
|
98
|
+
Hedgehog 借助你编辑器自带的 Language Server Protocol 集成来查看代码间的依赖关系。
|
|
99
99
|
|
|
100
100
|
```mermaid
|
|
101
101
|
flowchart TD
|
|
102
|
-
A[代码仓库] --> B[
|
|
103
|
-
B --> C[
|
|
104
|
-
C --> D[
|
|
105
|
-
D --> E[MCP 服务器]
|
|
106
|
-
E --> F[Hedgehog]
|
|
102
|
+
A[代码仓库] --> B[Language Server]
|
|
103
|
+
B --> C[符号与引用]
|
|
104
|
+
C --> D[Hedgehog]
|
|
107
105
|
```
|
|
108
106
|
|
|
109
|
-
-
|
|
110
|
-
-
|
|
111
|
-
-
|
|
112
|
-
- **测试覆盖改动**:遗漏受影响代码的验证会被发现
|
|
107
|
+
- **更低的 token 成本**:精准的符号查找取代了为获取上下文而阅读或搜索整个文件
|
|
108
|
+
- **改动前先知影响**:每个任务在动手前都能查清有哪些代码依赖它
|
|
109
|
+
- **验证匹配真实改动范围**:测试针对实际发生变化的部分运行
|
|
113
110
|
|
|
114
111
|
## 确定性代码生成
|
|
115
112
|
|
|
@@ -204,7 +201,7 @@ CLI、库、浏览器扩展、数据管道等,都会拥有各自的构建顺
|
|
|
204
201
|
|
|
205
202
|
Hedgehog 也可以接入已有仓库。
|
|
206
203
|
|
|
207
|
-
|
|
204
|
+
Hedgehog 也可以接入它并未参与构建的仓库。它会读取该仓库,并提出一条构建层次链,用仓库自身的 test/lint/build 命令来验证。
|
|
208
205
|
|
|
209
206
|
## Hedgehog 为什么有效
|
|
210
207
|
|
|
@@ -220,10 +217,7 @@ Hedgehog 也可以接入已有仓库。
|
|
|
220
217
|
<summary>给 AI Agent 的操作说明</summary>
|
|
221
218
|
|
|
222
219
|
1. 检查已安装 Node >=22.5.0。
|
|
223
|
-
2.
|
|
224
|
-
3. 检查 CodeGraphContext 已安装并完成配置。
|
|
225
|
-
4. 如有缺失,主动提出使用 `hedgehog-code-intelligence-setup` skill 完成配置 —— 否则 `init` 会中止。
|
|
226
|
-
5. 运行上方的安装命令。
|
|
220
|
+
2. 运行上方的安装命令。
|
|
227
221
|
|
|
228
222
|
</details>
|
|
229
223
|
|