speccore 6.91.1 → 6.91.2

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 (2) hide show
  1. package/README.md +15 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -134,7 +134,7 @@ Iteration-001-meeting/
134
134
 
135
135
  ![Ask Pipeline](docs/screenshots/ask-pipeline.png)
136
136
 
137
- ### 🧠 knowledge — 知识图谱可视化
137
+ ### 🧠 knowledge — 知识图谱可视化与代码图谱查询
138
138
  `speccore knowledge` 生成交互式 HTML 知识图谱:
139
139
  - vis-network 力导向图:9 种形状区分实体类型(需求◆ 规格🛢 功能模块■ 任务▲ 全局★ 业务模块⭐ 源码)
140
140
  - 业务-代码关联图谱:从 TECH.md 提取业务模块→代码实体映射,支持开放关系类型
@@ -142,6 +142,18 @@ Iteration-001-meeting/
142
142
  - RAG 上下文预览:查看 AI 检索时会注入的完整上下文
143
143
  - 9 套主题 / 3 种字体 / 4 档字号 / 全屏模式 / 实体搜索 / 类型过滤
144
144
 
145
+ **v6.90.0+ 代码知识图谱** — 本地 AST 解析,零 LLM Token:
146
+ ```bash
147
+ speccore code-index --graph --scope src # 构建代码知识图谱
148
+ speccore knowledge-explain "buildCodeGraph" # 解释节点及其连接
149
+ speccore knowledge-path "AuthModule" "UserDB" # 查找最短依赖路径
150
+ speccore knowledge-query "how does payment work" # 自然语言查询
151
+ ```
152
+ - 基于 TypeScript 编译器 API 本地解析(代码不出本机)
153
+ - 自动生成 `graph.json` + `GRAPH_REPORT.md` + `graph.html`
154
+ - 社区检测自动划分子系统,识别 God nodes 和跨社区桥梁
155
+ - v6.91.0+ 支持 API Contract / SQL Schema 多模态纳入图谱
156
+
145
157
  ![Knowledge Graph](docs/screenshots/knowledge-graph-full.png)
146
158
 
147
159
  ![Knowledge Graph Zoom](docs/screenshots/knowledge-graph-zoom.png)
@@ -182,7 +194,7 @@ Iteration-001-meeting/
182
194
 
183
195
  ```bash
184
196
  npm install -g speccore
185
- speccore --version # v6.71.3
197
+ speccore --version # v6.91.1
186
198
  ```
187
199
 
188
200
  ## 命令列表
@@ -205,7 +217,7 @@ speccore --version # v6.71.3
205
217
  | `change` | `ch` | 🔄 🔒 需求变更 |
206
218
  | `sync` | `sy` | 🔄 🔒 双向同步 |
207
219
  | `validate` | `vl` | ✅ 合规验证 |
208
- | `knowledge` | `kg` | 知识图谱可视化 + 衰减检测 |
220
+ | `knowledge` | `kg` | 🌐 知识图谱可视化 + 衰减检测 + 代码图谱查询 |
209
221
  | `track` | `trk` | 🔗 🔒 REQ→Task→Code 全链路 |
210
222
  | `search` | `sh` | 🔍 跨 Spec 全文搜索 |
211
223
  | `retro` | `rt` | 📝 🔒 任务回顾复盘 + 评分 |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "speccore",
3
- "version": "6.91.1",
3
+ "version": "6.91.2",
4
4
  "description": "SpecCore - Code by Spec, Not by Vibe.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",