@skyf0xx/hedgehog 6.0.2 → 6.0.4
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 -18
- package/README.zh-CN.md +9 -14
- package/bin/cli.mjs +118 -497
- package/package.json +2 -3
- package/src/db/community.mjs +1 -26
- package/src/db/core.mjs +1 -2
- package/src/db/friction.mjs +0 -75
- package/src/db/next.mjs +0 -37
- package/src/db/plan.mjs +8 -59
- package/src/db/rebuild.mjs +0 -6
- package/src/db/schema.mjs +1 -6
- package/src/db/status.mjs +2 -100
- package/src/hosts/claude-md-merge.mjs +69 -0
- package/src/hosts/gemini/gemini-extension.json +1 -1
- package/src/registry/cores.json +5 -5
- package/src/registry/index.mjs +10 -8
- package/src/registry/installed.mjs +35 -7
- 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
|
@@ -95,20 +95,18 @@ Agents fan out to give you great outcomes at **faster speeds**.
|
|
|
95
95
|
|
|
96
96
|
## Your Code is a Graph
|
|
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
|
-
- **No more surprise breakage**: every task
|
|
107
|
+
- **No index to go stale**: the language server's view of the code is always current
|
|
108
|
+
- **No time spent hunting through the codebase for context**: find references and callers directly
|
|
109
|
+
- **No more surprise breakage**: every task can check what depends on it before it edits
|
|
112
110
|
- **Tests cover what changed**: verification that misses affected code gets caught
|
|
113
111
|
|
|
114
112
|
## Deterministic Code Generation
|
|
@@ -202,9 +200,7 @@ Where possible, Hedgehog uses a battle-tested blueprint in [`hedgehog-core-autho
|
|
|
202
200
|
|
|
203
201
|
### Existing codebases
|
|
204
202
|
|
|
205
|
-
Hedgehog also adopts onto
|
|
206
|
-
|
|
207
|
-
It scans the repo's shape and is able to create new changes with the same scoped, verified, committed loop.
|
|
203
|
+
Hedgehog also adopts onto a repo it didn't build. It reads the repo and proposes a layer chain that verifies with the repo's own test/lint/build commands.
|
|
208
204
|
|
|
209
205
|
## Why Hedgehog Works
|
|
210
206
|
|
|
@@ -220,10 +216,7 @@ Mention `Hedgehog` whenever you want to build something with it.
|
|
|
220
216
|
<summary>Instructions for AI Agents</summary>
|
|
221
217
|
|
|
222
218
|
1. Check Node >=22.5.0 is installed.
|
|
223
|
-
2.
|
|
224
|
-
3. Check CodeGraphContext is installed and configured.
|
|
225
|
-
4. If anything is missing, offer to set it up with the `hedgehog-code-intelligence-setup` skill — `init` stops without it.
|
|
226
|
-
5. Run the install commands above.
|
|
219
|
+
2. Run the install commands below.
|
|
227
220
|
|
|
228
221
|
</details>
|
|
229
222
|
|
|
@@ -290,8 +283,6 @@ new one.
|
|
|
290
283
|
|
|
291
284
|
- Animation skills vendored from [gsap-skills](https://github.com/greensock/gsap-skills).
|
|
292
285
|
|
|
293
|
-
- Hedgehog indexes your codebase with [CodeGraphContext](https://github.com/CodeGraphContext/CodeGraphContext).
|
|
294
|
-
|
|
295
286
|
## Support Hedgehog
|
|
296
287
|
|
|
297
288
|
If Hedgehog helps you build better software with AI, **give it a ⭐ on GitHub**.
|
package/README.zh-CN.md
CHANGED
|
@@ -95,20 +95,18 @@ npx @skyf0xx/hedgehog graph # 显示构建图
|
|
|
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
|
-
-
|
|
107
|
+
- **索引永不过期**:语言服务器看到的代码状态始终是最新的
|
|
108
|
+
- **不必在代码库中翻找上下文**:直接查找引用和调用方
|
|
109
|
+
- **不再意外改坏**:每个任务在动手前都能查一查有哪些代码依赖它
|
|
112
110
|
- **测试覆盖改动**:遗漏受影响代码的验证会被发现
|
|
113
111
|
|
|
114
112
|
## 确定性代码生成
|
|
@@ -204,7 +202,7 @@ CLI、库、浏览器扩展、数据管道等,都会拥有各自的构建顺
|
|
|
204
202
|
|
|
205
203
|
Hedgehog 也可以接入已有仓库。
|
|
206
204
|
|
|
207
|
-
|
|
205
|
+
Hedgehog 也可以接入它并未参与构建的仓库。它会读取该仓库,并提出一条构建层次链,用仓库自身的 test/lint/build 命令来验证。
|
|
208
206
|
|
|
209
207
|
## Hedgehog 为什么有效
|
|
210
208
|
|
|
@@ -220,10 +218,7 @@ Hedgehog 也可以接入已有仓库。
|
|
|
220
218
|
<summary>给 AI Agent 的操作说明</summary>
|
|
221
219
|
|
|
222
220
|
1. 检查已安装 Node >=22.5.0。
|
|
223
|
-
2.
|
|
224
|
-
3. 检查 CodeGraphContext 已安装并完成配置。
|
|
225
|
-
4. 如有缺失,主动提出使用 `hedgehog-code-intelligence-setup` skill 完成配置 —— 否则 `init` 会中止。
|
|
226
|
-
5. 运行上方的安装命令。
|
|
221
|
+
2. 运行上方的安装命令。
|
|
227
222
|
|
|
228
223
|
</details>
|
|
229
224
|
|