@roarpeng/graphflow 1.7.6 → 1.7.9
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/CHANGELOG.md +71 -2
- package/README.md +249 -248
- package/dist/config/embedding-factory.d.ts.map +1 -1
- package/dist/config/embedding-factory.js +8 -0
- package/dist/config/embedding-factory.js.map +1 -1
- package/dist/graph/artifact-manager.d.ts +1 -0
- package/dist/graph/artifact-manager.d.ts.map +1 -1
- package/dist/graph/artifact-manager.js +15 -8
- package/dist/graph/artifact-manager.js.map +1 -1
- package/dist/graph/context-slicer-types.d.ts +4 -0
- package/dist/graph/context-slicer-types.d.ts.map +1 -1
- package/dist/graph/context-slicer-types.js +5 -1
- package/dist/graph/context-slicer-types.js.map +1 -1
- package/dist/graph/context-slicer.d.ts.map +1 -1
- package/dist/graph/context-slicer.js +8 -2
- package/dist/graph/context-slicer.js.map +1 -1
- package/dist/graph/file-indexer-walker.d.ts.map +1 -1
- package/dist/graph/file-indexer-walker.js +1 -0
- package/dist/graph/file-indexer-walker.js.map +1 -1
- package/dist/graph/file-watcher.d.ts.map +1 -1
- package/dist/graph/file-watcher.js +1 -0
- package/dist/graph/file-watcher.js.map +1 -1
- package/dist/graph/graph-utils.d.ts +7 -0
- package/dist/graph/graph-utils.d.ts.map +1 -1
- package/dist/graph/graph-utils.js +65 -1
- package/dist/graph/graph-utils.js.map +1 -1
- package/dist/graph/hit-diversify.js +1 -1
- package/dist/graph/hit-diversify.js.map +1 -1
- package/dist/graph/language-indexers/dart.d.ts +9 -0
- package/dist/graph/language-indexers/dart.d.ts.map +1 -0
- package/dist/graph/language-indexers/dart.js +225 -0
- package/dist/graph/language-indexers/dart.js.map +1 -0
- package/dist/graph/language-indexers/index.d.ts.map +1 -1
- package/dist/graph/language-indexers/index.js +2 -0
- package/dist/graph/language-indexers/index.js.map +1 -1
- package/dist/graph/language-indexers/tree-sitter-loader.d.ts +2 -1
- package/dist/graph/language-indexers/tree-sitter-loader.d.ts.map +1 -1
- package/dist/graph/language-indexers/tree-sitter-loader.js +5 -2
- package/dist/graph/language-indexers/tree-sitter-loader.js.map +1 -1
- package/dist/graph/query-expand.d.ts.map +1 -1
- package/dist/graph/query-expand.js +1 -0
- package/dist/graph/query-expand.js.map +1 -1
- package/dist/integrations/agent-mcp-installer.d.ts +8 -2
- package/dist/integrations/agent-mcp-installer.d.ts.map +1 -1
- package/dist/integrations/agent-mcp-installer.js +62 -1
- package/dist/integrations/agent-mcp-installer.js.map +1 -1
- package/dist/integrations/agent-profiles/index.d.ts +2 -0
- package/dist/integrations/agent-profiles/index.d.ts.map +1 -1
- package/dist/integrations/agent-profiles/index.js +2 -0
- package/dist/integrations/agent-profiles/index.js.map +1 -1
- package/dist/integrations/agent-profiles/profiles/opencode.d.ts +2 -0
- package/dist/integrations/agent-profiles/profiles/opencode.d.ts.map +1 -0
- package/dist/integrations/agent-profiles/profiles/opencode.js +28 -0
- package/dist/integrations/agent-profiles/profiles/opencode.js.map +1 -0
- package/dist/integrations/agent-profiles/skills/opencode.d.ts +2 -0
- package/dist/integrations/agent-profiles/skills/opencode.d.ts.map +1 -0
- package/dist/integrations/agent-profiles/skills/opencode.js +13 -0
- package/dist/integrations/agent-profiles/skills/opencode.js.map +1 -0
- package/dist/integrations/agent-profiles/types.d.ts +2 -2
- package/dist/integrations/agent-profiles/types.d.ts.map +1 -1
- package/dist/integrations/skill-installer.d.ts +6 -0
- package/dist/integrations/skill-installer.d.ts.map +1 -1
- package/dist/integrations/skill-installer.js +18 -2
- package/dist/integrations/skill-installer.js.map +1 -1
- package/dist/learning/embedding-quality.d.ts +4 -0
- package/dist/learning/embedding-quality.d.ts.map +1 -1
- package/dist/learning/embedding-quality.js +10 -0
- package/dist/learning/embedding-quality.js.map +1 -1
- package/dist/learning/embeddings.d.ts +31 -2
- package/dist/learning/embeddings.d.ts.map +1 -1
- package/dist/learning/embeddings.js +114 -22
- package/dist/learning/embeddings.js.map +1 -1
- package/dist/learning/episodic-memory.d.ts +3 -0
- package/dist/learning/episodic-memory.d.ts.map +1 -1
- package/dist/learning/episodic-memory.js +13 -0
- package/dist/learning/episodic-memory.js.map +1 -1
- package/dist/learning/skill-flywheel.d.ts +30 -0
- package/dist/learning/skill-flywheel.d.ts.map +1 -1
- package/dist/learning/skill-flywheel.js +179 -8
- package/dist/learning/skill-flywheel.js.map +1 -1
- package/dist/learning/skill-store.d.ts.map +1 -1
- package/dist/learning/skill-store.js +2 -0
- package/dist/learning/skill-store.js.map +1 -1
- package/dist/learning/skill-types.d.ts +3 -0
- package/dist/learning/skill-types.d.ts.map +1 -1
- package/dist/learning/skill-types.js.map +1 -1
- package/dist/surfaces/cli/index.js +44 -1
- package/dist/surfaces/cli/index.js.map +1 -1
- package/dist/surfaces/cli/output.d.ts.map +1 -1
- package/dist/surfaces/cli/output.js +5 -1
- package/dist/surfaces/cli/output.js.map +1 -1
- package/dist/surfaces/cli/runtime/graph.d.ts +1 -0
- package/dist/surfaces/cli/runtime/graph.d.ts.map +1 -1
- package/dist/surfaces/cli/runtime/graph.js.map +1 -1
- package/dist/surfaces/cli/runtime/helpers.d.ts.map +1 -1
- package/dist/surfaces/cli/runtime/helpers.js +4 -0
- package/dist/surfaces/cli/runtime/helpers.js.map +1 -1
- package/dist/surfaces/cli/runtime/learning.d.ts +13 -0
- package/dist/surfaces/cli/runtime/learning.d.ts.map +1 -1
- package/dist/surfaces/cli/runtime/learning.js +27 -0
- package/dist/surfaces/cli/runtime/learning.js.map +1 -1
- package/dist/surfaces/cli/runtime/routing.d.ts +7 -9
- package/dist/surfaces/cli/runtime/routing.d.ts.map +1 -1
- package/dist/surfaces/cli/runtime/routing.js +106 -4
- package/dist/surfaces/cli/runtime/routing.js.map +1 -1
- package/dist/surfaces/cli/runtime/types.d.ts +25 -0
- package/dist/surfaces/cli/runtime/types.d.ts.map +1 -1
- package/dist/surfaces/cli/runtime.d.ts +1 -1
- package/dist/surfaces/cli/runtime.d.ts.map +1 -1
- package/dist/surfaces/cli/runtime.js +5 -1
- package/dist/surfaces/cli/runtime.js.map +1 -1
- package/package.json +13 -8
- package/scripts/safe-postinstall.cjs +38 -1
- package/wasm/.grammar-version +1 -0
- package/wasm/tree-sitter-dart.wasm +0 -0
- package/wasm/tree-sitter-kotlin.wasm +0 -0
package/README.md
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
# GraphFlow
|
|
2
2
|
|
|
3
|
-
> **Local-first
|
|
3
|
+
> **Local-first ?????? + ????????* ?????????????????????????
|
|
4
4
|
|
|
5
|
-
GraphFlow
|
|
5
|
+
GraphFlow ??????????*????????**?? agent ??????????????????????*?? + 90%+ token ??**????????? **Episodic / Skill / Decision ??**???????????????????????**????**?????????
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
??TypeScript/Node ??????? CLI?MCP?VS Code ????????*?? API key?????**??????????+ ??????????
|
|
8
8
|
|
|
9
|
-
## 30
|
|
9
|
+
## 30 ????
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
?? API key??????????????????????
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
# 1.
|
|
14
|
+
# 1. ???????? AST?? LLM??????
|
|
15
15
|
npx @roarpeng/graphflow graph index .
|
|
16
16
|
|
|
17
|
-
# 2.
|
|
17
|
+
# 2. ??????????????+ ???????90%+ token??
|
|
18
18
|
npx @roarpeng/graphflow context preview "orchestrator" --json
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
?? MCP?Cursor / Claude Code ????????
|
|
22
22
|
|
|
23
23
|
```json
|
|
24
24
|
{
|
|
@@ -31,162 +31,162 @@ npx @roarpeng/graphflow context preview "orchestrator" --json
|
|
|
31
31
|
}
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
???? agent ???? `graphflow_context` ???????????? `graphflow_plan`????provider API key ??*???*????????LLM ?????????
|
|
35
35
|
|
|
36
|
-
##
|
|
36
|
+
## ?????GraphFlow????????
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
????????????????GraphFlow ???????????????**?????????????????????????????*?????"??????????????????????????
|
|
39
39
|
|
|
40
|
-
|
|
|
40
|
+
| ?? | **GraphFlow** | CodeGraph | Serena | Repomix |
|
|
41
41
|
| --- | --- | --- | --- | --- |
|
|
42
|
-
|
|
|
43
|
-
|
|
|
44
|
-
|
|
|
45
|
-
|
|
|
46
|
-
| Local-first |
|
|
47
|
-
|
|
|
42
|
+
| ?????? | ????? AST ?? | ????????????| ?? LSP ???????? | ??|
|
|
43
|
+
| ??????| ??????????????| ?? ??????| ?? ??????| ????????????|
|
|
44
|
+
| ???? | ??DAG / ????? | ??| ??| ??|
|
|
45
|
+
| **????????* | ??Episodic / Skill / Decision ?? | ??| ??| ??|
|
|
46
|
+
| Local-first | ??| ??| ??| ??|
|
|
47
|
+
| ?? | Apache-2.0 | MIT | MIT | ?????|
|
|
48
48
|
|
|
49
|
-
>
|
|
49
|
+
> ???????????????????CodeGraph ??????LSP ???????Serena ??????????Repomix ????GraphFlow ??????"?? + ?? + ?? + ????"???????agent ????token??????????????
|
|
50
50
|
|
|
51
|
-
##
|
|
51
|
+
## ???????v1.7.9+??
|
|
52
52
|
|
|
53
|
-
|
|
|
53
|
+
| ????| ?? |
|
|
54
54
|
| --- | --- |
|
|
55
|
-
|
|
|
55
|
+
| **????????* | ???????? simple / complex / insight?DAG ????*ATP v1.0 Agent Thinking Protocol**?Intent ??Requirement ??Six Hats ??5-Why ??First Principles ??Decision Matrix ??Planning ??Reflection?`planInsight(task, opts, true)` ?????8 ????????????short-circuit??Agent ?????? work items????**bridge ??**?????????????? coding agent ?? |
|
|
56
56
|
|
|
57
57
|
| **模型路由** | Smart / Economy 双 tier;多 provider 健康探测与 fallback(**DeepSeek**、OpenAI、Anthropic、百炼、豆包) |
|
|
58
|
-
| **知识图谱** | 工作区 AST 索引(TS/JS/Python/Rust/Go/C/C++/Java/Ruby/Kotlin/Swift);File / Module / Symbol 节点 + 依赖/引用/定义/调用/继承边;图谱 artifact 导入/导出 |
|
|
58
|
+
| **知识图谱** | 工作区 AST 索引(TS/JS/Python/Rust/Go/C/C++/Java/Ruby/Kotlin/Swift/Dart);File / Module / Symbol 节点 + 依赖/引用/定义/调用/继承边;图谱 artifact 导入/导出 |
|
|
59
59
|
| **上下文压缩** | L1/L2/L3 分层锚点;近无损打包;图结构压缩(边权重+PageRank,零成本默认开启);向量召回 + RRF 融合;RepoMap 概览;自适应预算 |
|
|
60
60
|
| **持续建图** | 默认 `autoIndexOnSave`;MCP 启动时自动启动 FileWatcher;preview / run 前按需增量索引;MCP `graphflow_index` 单文件增量 |
|
|
61
61
|
| **学习飞轮** | Episodic Memory(Jaccard + embedding RRF 语义检索)、Reflection(聚类 + Lesson 提取)、Skill 节点(score ±1,bounded [-20,20])、nightly 学习、技能提示注入规划 |
|
|
62
62
|
| **可观测性** | `graphflow_diagnose` 累计 token 节省;VS Code 知识图谱 Snapshot |
|
|
63
|
-
| **Agent 接入** | CLI `--json`;MCP stdio(**10 工具**);自动安装 MCP 到 15+ Agent(Cursor / Claude Code / Windsurf / Cline / Codex / Gemini 等) |
|
|
63
|
+
| **Agent 接入** | CLI `--json`;MCP stdio(**10 工具**);自动安装 MCP 到 15+ Agent(Cursor / Claude Code / Windsurf / Cline / Codex / Gemini / Opencode 等) |
|
|
64
64
|
| **VS Code 扩展** | Settings、建图、路由测试、Context Preview、**知识图谱可视化**、Skill Insights、Chat Agent、一键安装 MCP |
|
|
65
65
|
| **存储后端** | `file`(JSON)/ `memory` / `sqlite`(FTS5)/ `mcp-http`(Graphify) |
|
|
66
66
|
| **多项目隔离** | 全局配置共享 LLM/路由;**图谱路径按当前工作区解析**,不再串读其它项目的 `graphflow-out` |
|
|
67
|
-
| **工程质量** | TypeScript strict;**
|
|
67
|
+
| **工程质量** | TypeScript strict;**72 测试文件 / 357+ tests**;`npm run ci` 含扩展 esbuild 打包与 bundled runtime smoke |
|
|
68
68
|
|
|
69
|
-
###
|
|
69
|
+
### ?????
|
|
70
70
|
|
|
71
|
-
>
|
|
71
|
+
> ??task ???????????????? ??????????????????**?????????????? coding agent**?????????????????**?????????context service??*??????????
|
|
72
72
|
|
|
73
|
-
### v1.7.0
|
|
73
|
+
### v1.7.0 ????026-07??
|
|
74
74
|
|
|
75
|
-
**P0
|
|
75
|
+
**P0 ??????**????FNV-1a hash embedding????`@xenova/transformers` + `all-MiniLM-L6-v2`??84 ????22MB?? JS ?????????????????
|
|
76
76
|
|
|
77
|
-
**P1
|
|
77
|
+
**P1 ?? hnswlib-node**??????C++ ??????????????????????? <10K ???????????
|
|
78
78
|
|
|
79
|
-
**P2 MCP
|
|
79
|
+
**P2 MCP ????**??8 ?????? 10 ??????context?plan?index?insight?diagnose?artifact ????????LLM ??????????
|
|
80
80
|
|
|
81
|
-
**P2 ATP
|
|
81
|
+
**P2 ATP ?????**??????????????????????short-circuit????First Principles / Decision Matrix / Reflection????4-6 ??LLM ????
|
|
82
82
|
|
|
83
83
|
---
|
|
84
84
|
|
|
85
|
-
### v1.5.0
|
|
85
|
+
### v1.5.0 ????026-07??
|
|
86
86
|
|
|
87
|
-
**ATP v1.0 Agent Thinking Protocol
|
|
87
|
+
**ATP v1.0 Agent Thinking Protocol**????????????????????????
|
|
88
88
|
|
|
89
|
-
|
|
89
|
+
**?? 5 ??????*?? Six Hats + 5-Why ????????
|
|
90
90
|
|
|
91
|
-
1. **Intent Analysis**
|
|
92
|
-
2. **Requirement Analysis**
|
|
93
|
-
3. **First Principles**
|
|
94
|
-
4. **Decision Matrix**
|
|
95
|
-
5. **Plan Reflection**
|
|
91
|
+
1. **Intent Analysis** ??????/???????????????????
|
|
92
|
+
2. **Requirement Analysis** ?????????????????????included/excluded??
|
|
93
|
+
3. **First Principles** ?????????????????
|
|
94
|
+
4. **Decision Matrix** ?????? 5 ?????complexity/cost/risk/maintainability/impact??????
|
|
95
|
+
5. **Plan Reflection** ???????????????????????????
|
|
96
96
|
|
|
97
|
-
**ATP
|
|
97
|
+
**ATP ?? IR**?`atp-schema.ts` ?? `AgentThinkingProtocol` ????????Multi-Agent ????????
|
|
98
98
|
|
|
99
|
-
**TaskNode
|
|
99
|
+
**TaskNode ??**????`priority`?`complexity`?`verification`?`inputs`?`outputs`?`risks` 6 ???????
|
|
100
100
|
|
|
101
|
-
**Agent
|
|
101
|
+
**Agent ????**?work items ????intent +requirement +first-principles +decision-matrix +reflection??submit/merge ??????
|
|
102
102
|
|
|
103
|
-
|
|
103
|
+
**????**?`planInsight(task, options)` ????????????`runFullAtp=true` ???? ATP 8 ????
|
|
104
104
|
|
|
105
|
-
**P0
|
|
105
|
+
**P0 ????**????VS Code ????????runtime ??????`enrichGraph`/`downloadModel`/`showSetupGuide` ?? + `/enrich` ???????? 87 ??OpenBMB/enrichment ????????`canaryAllowed`/`canaryReason` ??5 ??enrichment ??????
|
|
106
106
|
|
|
107
|
-
### v1.4.0
|
|
107
|
+
### v1.4.0 ????026-07??
|
|
108
108
|
|
|
109
|
-
|
|
109
|
+
**???????**????OpenBMB ?????????????????????????????????????????????????????????????????????
|
|
110
110
|
|
|
111
|
-
|
|
111
|
+
**??????????**??
|
|
112
112
|
|
|
113
|
-
1. **HNSW
|
|
114
|
-
- `file-indexer`
|
|
115
|
-
- `orchestrator-context`
|
|
116
|
-
-
|
|
113
|
+
1. **HNSW ?????????*?P0 ????
|
|
114
|
+
- `file-indexer` ??????File/Symbol/Module ??????????embedding?`@xenova/transformers` + `all-MiniLM-L6-v2`??84 ??
|
|
115
|
+
- `orchestrator-context` ?????`embeddingProvider` + `enableVectorRecall` ??????
|
|
116
|
+
- ???????????????? C++ ????
|
|
117
117
|
|
|
118
|
-
2. **FileWatcher
|
|
119
|
-
- `startFileWatcherIfEnabled`
|
|
120
|
-
-
|
|
118
|
+
2. **FileWatcher ?? MCP ??**?P0 ????
|
|
119
|
+
- `startFileWatcherIfEnabled` ????????????MCP ????????
|
|
120
|
+
- ??`autoIndexOnSave: true` ??????????????
|
|
121
121
|
|
|
122
|
-
3.
|
|
123
|
-
- `skillHints`
|
|
124
|
-
- Dangling edges
|
|
122
|
+
3. **?????????*?P1 ????
|
|
123
|
+
- `skillHints` ??????? `enableGraphContextInPrompt`??????worker prompt
|
|
124
|
+
- Dangling edges ???`applySkillLearning` ??????Decision ???? `improves` ??
|
|
125
125
|
|
|
126
|
-
###
|
|
126
|
+
### ????
|
|
127
127
|
|
|
128
|
-
- **v1.3.x
|
|
129
|
-
- **v1.0.x
|
|
130
|
-
- **v0.6.x
|
|
128
|
+
- **v1.3.x**?????????Java/Ruby ????MCP ????????????
|
|
129
|
+
- **v1.0.x**????????bridge ??????????????????
|
|
130
|
+
- **v0.6.x**?????????autoIndexOnSave?runtime ????VS Code esbuild bundle
|
|
131
131
|
|
|
132
|
-
###
|
|
132
|
+
### ????
|
|
133
133
|
|
|
134
|
-
-
|
|
135
|
-
- **GitHub Release
|
|
136
|
-
- **npm
|
|
137
|
-
-
|
|
134
|
+
- ?????**v1.7.9**?root + vscode-extension??npm?`@roarpeng/graphflow@1.7.9`
|
|
135
|
+
- **GitHub Release**?push ??`main` ??CI ??`windows-2022` ??????VSIX ???? [GitHub Releases](https://github.com/Roarpeng/GraphFlow/releases)
|
|
136
|
+
- **npm ??**?push tag `v*`?? `v1.4.1`????[Publish npm](https://github.com/Roarpeng/GraphFlow/actions/workflows/publish-npm.yml) ????
|
|
137
|
+
- ?????`CHANGELOG.md`
|
|
138
138
|
|
|
139
|
-
##
|
|
139
|
+
## ????
|
|
140
140
|
|
|
141
141
|
1. Node.js >= 20
|
|
142
142
|
2. npm >= 10
|
|
143
|
-
3. Windows / macOS / Linux
|
|
144
|
-
4. **npm
|
|
143
|
+
3. Windows / macOS / Linux ??
|
|
144
|
+
4. **npm ?? `@roarpeng/graphflow` ??*?? JS/TS ??????????
|
|
145
145
|
|
|
146
|
-
## 5
|
|
146
|
+
## 5 ??????
|
|
147
147
|
|
|
148
148
|
```bash
|
|
149
149
|
npm install
|
|
150
150
|
npm run ci
|
|
151
151
|
```
|
|
152
152
|
|
|
153
|
-
预期:`lint` 无错误、`build` 成功、**
|
|
153
|
+
预期:`lint` 无错误、`build` 成功、**357+ tests** 通过、扩展 bundle 与 runtime smoke 通过。
|
|
154
154
|
|
|
155
|
-
## Agent
|
|
155
|
+
## Agent ????
|
|
156
156
|
|
|
157
|
-
GraphFlow
|
|
157
|
+
GraphFlow ????????????
|
|
158
158
|
|
|
159
|
-
1. **CLI
|
|
160
|
-
2. **MCP stdio server
|
|
159
|
+
1. **CLI ????**???????? `--json`
|
|
160
|
+
2. **MCP stdio server**?Cursor?Claude Code ??????
|
|
161
161
|
|
|
162
|
-
|
|
162
|
+
??????MCP??
|
|
163
163
|
|
|
164
164
|
```bash
|
|
165
165
|
npm run start:mcp
|
|
166
166
|
```
|
|
167
167
|
|
|
168
|
-
### MCP
|
|
168
|
+
### MCP ?????10 ??
|
|
169
169
|
|
|
170
|
-
|
|
|
170
|
+
| ?? | ???|
|
|
171
171
|
| --- | --- |
|
|
172
|
-
| `graphflow_context` |
|
|
173
|
-
| `graphflow_plan` |
|
|
174
|
-
| `graphflow_run` |
|
|
175
|
-
| `graphflow_report_outcome` |
|
|
176
|
-
| `graphflow_insight` |
|
|
177
|
-
| `graphflow_index` |
|
|
178
|
-
| `graphflow_skill_insights` |
|
|
179
|
-
| `graphflow_diagnose` |
|
|
180
|
-
| `graphflow_artifact` |
|
|
181
|
-
| `graphflow_skill_guide` |
|
|
172
|
+
| `graphflow_context` | ????????query???????anchorId??**????**??|
|
|
173
|
+
| `graphflow_plan` | ????????DAG ???mode='simple' ??'insight'??|
|
|
174
|
+
| `graphflow_run` | ?? + ???????? bridge ??????|
|
|
175
|
+
| `graphflow_report_outcome` | ??GraphFlow ????????????????|
|
|
176
|
+
| `graphflow_insight` | ??????agent ?????Six Hats / plan prompts??|
|
|
177
|
+
| `graphflow_index` | ????????????????????|
|
|
178
|
+
| `graphflow_skill_insights` | ???????|
|
|
179
|
+
| `graphflow_diagnose` | ?????????? token ?? |
|
|
180
|
+
| `graphflow_artifact` | ??????????artifact |
|
|
181
|
+
| `graphflow_skill_guide` | ?? GraphFlow Skill ???? |
|
|
182
182
|
|
|
183
|
-
**MCP
|
|
183
|
+
**MCP ????**???? MCP ????`cwd` ????????????????
|
|
184
184
|
|
|
185
|
-
-
|
|
186
|
-
-
|
|
187
|
-
-
|
|
185
|
+
- ?? `graphflow_index` ????`rootDir`????????
|
|
186
|
+
- ??MCP ??????`GRAPHFLOW_WORKSPACE_ROOT` ????
|
|
187
|
+
- ?? VS Code ?????????????`.cursor/mcp.json`
|
|
188
188
|
|
|
189
|
-
CLI
|
|
189
|
+
CLI ????
|
|
190
190
|
|
|
191
191
|
```bash
|
|
192
192
|
npm run start -- plan "refactor planner and add tests" --json
|
|
@@ -194,34 +194,34 @@ npm run start -- context preview "orchestrator" --json
|
|
|
194
194
|
npm run start -- graph inspect --json
|
|
195
195
|
```
|
|
196
196
|
|
|
197
|
-
|
|
197
|
+
?? agent ?????`AGENTS.md`?`CLAUDE.md`?`.cursor/rules/graphflow.mdc`
|
|
198
198
|
|
|
199
|
-
##
|
|
199
|
+
## ???????CLI??
|
|
200
200
|
|
|
201
|
-
###
|
|
201
|
+
### ????
|
|
202
202
|
|
|
203
203
|
```bash
|
|
204
204
|
npm run start -- graph index .
|
|
205
205
|
```
|
|
206
206
|
|
|
207
|
-
|
|
207
|
+
???`indexedFiles=?? indexedSymbols=?`
|
|
208
208
|
|
|
209
|
-
###
|
|
209
|
+
### ????????
|
|
210
210
|
|
|
211
211
|
```bash
|
|
212
212
|
npm run start -- context preview "orchestrator"
|
|
213
213
|
```
|
|
214
214
|
|
|
215
|
-
|
|
215
|
+
???`summary=?? anchors=?? tokens=?`??????????????**90%+ token**??
|
|
216
216
|
|
|
217
|
-
###
|
|
217
|
+
### ???? / ??
|
|
218
218
|
|
|
219
219
|
```bash
|
|
220
220
|
npm run start -- run "update readme and add tests"
|
|
221
221
|
npm run start -- plan "update readme and add tests and refactor architecture module"
|
|
222
222
|
```
|
|
223
223
|
|
|
224
|
-
###
|
|
224
|
+
### ???? / ?? / ??
|
|
225
225
|
|
|
226
226
|
```bash
|
|
227
227
|
npm run start -- route diagnose
|
|
@@ -230,27 +230,27 @@ npm run start -- graph inspect
|
|
|
230
230
|
npm run start -- skill insights
|
|
231
231
|
```
|
|
232
232
|
|
|
233
|
-
##
|
|
233
|
+
## ????
|
|
234
234
|
|
|
235
|
-
###
|
|
235
|
+
### ??????
|
|
236
236
|
|
|
237
|
-
GraphFlow
|
|
237
|
+
GraphFlow ??????????????????????????????????????????????
|
|
238
238
|
|
|
239
|
-
|
|
|
239
|
+
| ??| ?? | ?? | ?? |
|
|
240
240
|
| --- | --- | --- | --- |
|
|
241
|
-
|
|
|
242
|
-
|
|
|
243
|
-
| RepoMap
|
|
244
|
-
|
|
|
241
|
+
| ??????| ????????+ PageRank ??????| ??LLM | **???* |
|
|
242
|
+
| ???? | transformers.js embedding + ?????+ RRF ?? | ???? | **???* |
|
|
243
|
+
| RepoMap ?? | ???????????? | ??LLM | opt-in |
|
|
244
|
+
| ????? | ???????????token ?? | ??LLM | opt-in |
|
|
245
245
|
|
|
246
|
-
|
|
246
|
+
**??????**??
|
|
247
247
|
|
|
248
|
-
-
|
|
249
|
-
-
|
|
250
|
-
-
|
|
251
|
-
-
|
|
248
|
+
- ????`file-indexer` ????????384 ????embedding?`@xenova/transformers` + `all-MiniLM-L6-v2`?? 22MB?? JS ????
|
|
249
|
+
- ??????query ????????embedding????????cosine similarity
|
|
250
|
+
- ????????????? <10K ??????????? HNSW ANN??
|
|
251
|
+
- ??????+ ???????? RRF?Reciprocal Rank Fusion, k=60????
|
|
252
252
|
|
|
253
|
-
|
|
253
|
+
??????
|
|
254
254
|
|
|
255
255
|
```json
|
|
256
256
|
{
|
|
@@ -270,15 +270,15 @@ GraphFlow 的压缩采用「两层渐进」策略,先用零成本图结构压
|
|
|
270
270
|
}
|
|
271
271
|
```
|
|
272
272
|
|
|
273
|
-
|
|
273
|
+
?????????? `@xenova/transformers` ???????? `embeddingPolicy.modelCacheDir` ??????`GRAPHFLOW_EMBEDDING_CACHE_DIR` ???????
|
|
274
274
|
|
|
275
|
-
|
|
275
|
+
????????????
|
|
276
276
|
|
|
277
277
|
```bash
|
|
278
278
|
npm run start -- route diagnose
|
|
279
279
|
```
|
|
280
280
|
|
|
281
|
-
### SQLite / FTS5
|
|
281
|
+
### SQLite / FTS5 ??
|
|
282
282
|
|
|
283
283
|
```json
|
|
284
284
|
{
|
|
@@ -290,7 +290,7 @@ npm run start -- route diagnose
|
|
|
290
290
|
}
|
|
291
291
|
```
|
|
292
292
|
|
|
293
|
-
WAL + FTS5
|
|
293
|
+
WAL + FTS5 ?????? `file` / `memory` ??????
|
|
294
294
|
|
|
295
295
|
### Episodic Memory + Reflection
|
|
296
296
|
|
|
@@ -301,18 +301,18 @@ const run = await orchestrate(
|
|
|
301
301
|
);
|
|
302
302
|
```
|
|
303
303
|
|
|
304
|
-
|
|
304
|
+
?? task ?? Episode????embedding???? task ???????Jaccard + embedding RRF ??????`learn nightly` ?? Lesson ???Lesson ??????????planner prompt??
|
|
305
305
|
|
|
306
|
-
###
|
|
306
|
+
### ???????
|
|
307
307
|
|
|
308
|
-
- `applySkillLearning
|
|
309
|
-
- `suggestSkillHints
|
|
310
|
-
-
|
|
311
|
-
-
|
|
308
|
+
- `applySkillLearning`????????????????? Skill ?? score?pass +1 / fail -1?bounded [-20,20]??
|
|
309
|
+
- `suggestSkillHints`????Skill ???? score/uses ??????top-N ?????
|
|
310
|
+
- ?????????worker prompt??????????????
|
|
311
|
+
- ???????????????????? composite skill ??
|
|
312
312
|
|
|
313
|
-
###
|
|
313
|
+
### ??? AST ??
|
|
314
314
|
|
|
315
|
-
|
|
|
315
|
+
| ?? | ?? |
|
|
316
316
|
| --- | --- |
|
|
317
317
|
| TypeScript / JavaScript | `.ts .tsx .js .jsx` |
|
|
318
318
|
| Python | `.py` |
|
|
@@ -323,158 +323,159 @@ const run = await orchestrate(
|
|
|
323
323
|
| Ruby | `.rb` |
|
|
324
324
|
| Kotlin | `.kt` |
|
|
325
325
|
| Swift | `.swift` |
|
|
326
|
+
| Dart | `.dart` |
|
|
326
327
|
|
|
327
|
-
|
|
328
|
+
?? `graphPolicy.includeExtensions` ???????tree-sitter WASM ???? `npm run build` ????`wasm/` ?? npm ???????????????
|
|
328
329
|
|
|
329
|
-
### Agent MCP
|
|
330
|
+
### Agent MCP ????
|
|
330
331
|
|
|
331
|
-
GraphFlow CLI
|
|
332
|
+
GraphFlow CLI ???????? MCP ????15+ ?? Agent??
|
|
332
333
|
|
|
333
334
|
```bash
|
|
334
|
-
#
|
|
335
|
+
# ???????Agent ??MCP ?????
|
|
335
336
|
npx @roarpeng/graphflow doctor
|
|
336
337
|
|
|
337
|
-
#
|
|
338
|
+
# ?????MCP + Skill + Cursor Rules????
|
|
338
339
|
npx @roarpeng/graphflow install
|
|
339
340
|
|
|
340
|
-
#
|
|
341
|
+
# ????????????graphflow/config.json ??
|
|
341
342
|
npx @roarpeng/graphflow init
|
|
342
343
|
```
|
|
343
344
|
|
|
344
|
-
|
|
345
|
+
**?? `npm install` ??*?????? `.cursor/mcp.json` ??`.vscode/mcp.json`?postinstall ??????workspace ??GraphFlow MCP ??Skill????????????`npx @roarpeng/graphflow install`??
|
|
345
346
|
|
|
346
|
-
### Trae / Trae CN
|
|
347
|
+
### Trae / Trae CN ????
|
|
347
348
|
|
|
348
|
-
Trae
|
|
349
|
+
Trae ?? **Rules**??????????**Skill**??????????Skill ??GraphFlow ???????`install` / `init` ????????
|
|
349
350
|
|
|
350
|
-
|
|
|
351
|
+
| ?? | ?? |
|
|
351
352
|
|------|------|
|
|
352
|
-
| `.trae/rules/graphflow.md` | `alwaysApply: true`
|
|
353
|
-
| `.trae/skills/graphflow/SKILL.md` |
|
|
354
|
-
| `~/.config/Trae CN/User/skills/graphflow/SKILL.md` |
|
|
355
|
-
| `User/mcp.json` | GraphFlow MCP
|
|
353
|
+
| `.trae/rules/graphflow.md` | `alwaysApply: true` ???????? `graphflow_context` |
|
|
354
|
+
| `.trae/skills/graphflow/SKILL.md` | ?? 10 ???????? `#graphflow` ???? |
|
|
355
|
+
| `~/.config/Trae CN/User/skills/graphflow/SKILL.md` | ????Skill??????|
|
|
356
|
+
| `User/mcp.json` | GraphFlow MCP ????|
|
|
356
357
|
|
|
357
358
|
```bash
|
|
358
|
-
#
|
|
359
|
+
# ?????????fat-battle/web?GraphFlow ??
|
|
359
360
|
npx @roarpeng/graphflow install
|
|
360
|
-
npx @roarpeng/graphflow doctor #
|
|
361
|
+
npx @roarpeng/graphflow doctor # ???Trae CN rules/skill/MCP ????
|
|
361
362
|
```
|
|
362
363
|
|
|
363
|
-
|
|
364
|
+
**??**?MCP ???????? `GRAPHFLOW_WORKSPACE_ROOT` ????????Trae ??????????Agent ??`graphflow_context` ?????? `rootDir`??
|
|
364
365
|
|
|
365
|
-
### Antigravity IDE
|
|
366
|
+
### Antigravity IDE ????
|
|
366
367
|
|
|
367
|
-
|
|
|
368
|
+
| ?? | ?? |
|
|
368
369
|
|------|------|
|
|
369
|
-
| `~/.gemini/antigravity/mcp_config.json` |
|
|
370
|
-
| `~/.gemini/antigravity/skills/graphflow/SKILL.md` |
|
|
371
|
-
| `.agent/rules/graphflow.md` |
|
|
372
|
-
| `.agent/skills/graphflow/SKILL.md` |
|
|
373
|
-
| `GEMINI.md` |
|
|
370
|
+
| `~/.gemini/antigravity/mcp_config.json` | ?? MCP?`mcpServers` ?? |
|
|
371
|
+
| `~/.gemini/antigravity/skills/graphflow/SKILL.md` | ?? Skill |
|
|
372
|
+
| `.agent/rules/graphflow.md` | ????Rules |
|
|
373
|
+
| `.agent/skills/graphflow/SKILL.md` | ????Skill |
|
|
374
|
+
| `GEMINI.md` | ???????? |
|
|
374
375
|
|
|
375
|
-
### Gemini CLI
|
|
376
|
+
### Gemini CLI ????
|
|
376
377
|
|
|
377
|
-
|
|
|
378
|
+
| ?? | ?? |
|
|
378
379
|
|------|------|
|
|
379
|
-
| `~/.gemini/settings.json` | MCP
|
|
380
|
-
| `~/.gemini/GEMINI.md` |
|
|
380
|
+
| `~/.gemini/settings.json` | MCP ????|
|
|
381
|
+
| `~/.gemini/GEMINI.md` | ????????|
|
|
381
382
|
|
|
382
|
-
### VS Code / GitHub Copilot
|
|
383
|
+
### VS Code / GitHub Copilot ????
|
|
383
384
|
|
|
384
|
-
|
|
|
385
|
+
| ?? | ?? |
|
|
385
386
|
|------|------|
|
|
386
|
-
| `~/.config/Code/User/mcp.json` |
|
|
387
|
-
| `.github/copilot-instructions.md` |
|
|
388
|
-
| `.vscode/mcp.json` |
|
|
387
|
+
| `~/.config/Code/User/mcp.json` | ????MCP?`servers` ?? |
|
|
388
|
+
| `.github/copilot-instructions.md` | ????Copilot ???token-first??|
|
|
389
|
+
| `.vscode/mcp.json` | ????? MCP |
|
|
389
390
|
|
|
390
391
|
```bash
|
|
391
|
-
npx @roarpeng/graphflow install #
|
|
392
|
-
npx @roarpeng/graphflow install --scope all #
|
|
392
|
+
npx @roarpeng/graphflow install # ????MCP + Skills
|
|
393
|
+
npx @roarpeng/graphflow install --scope all # ???? Rules / Copilot ??
|
|
393
394
|
npx @roarpeng/graphflow doctor
|
|
394
395
|
```
|
|
395
396
|
|
|
396
|
-
|
|
397
|
+
????Agent?Cursor?VS Code?Trae?Claude Code?Windsurf?Cline?Roo Code?Kilo Code?PearAI?Gemini?Codex?Antigravity?Amazon Q?Zed?Continue??
|
|
397
398
|
|
|
398
|
-
##
|
|
399
|
+
## ????
|
|
399
400
|
|
|
400
|
-
|
|
401
|
+
???`graphflow.config.json`??????`~/.graphflow.config.json` ???????
|
|
401
402
|
|
|
402
403
|
```bash
|
|
403
404
|
cp graphflow.config.example.json graphflow.config.json
|
|
404
405
|
```
|
|
405
406
|
|
|
406
|
-
###
|
|
407
|
+
### ?? vs ????
|
|
407
408
|
|
|
408
|
-
|
|
|
409
|
+
| ?? | ?? | ???? |
|
|
409
410
|
| --- | --- | --- |
|
|
410
|
-
|
|
|
411
|
-
|
|
|
412
|
-
|
|
|
411
|
+
| ?? | `~/.graphflow.config.json` | Provider?API Key?Smart/Economy ????????|
|
|
412
|
+
| ????| `graphflow.config.json` | ?????????? |
|
|
413
|
+
| ???? | `.graphflow/config.json` | ????????`graphflow init` ????|
|
|
413
414
|
|
|
414
|
-
|
|
415
|
+
**????????*??
|
|
415
416
|
|
|
416
|
-
-
|
|
417
|
-
-
|
|
418
|
-
- MCP /
|
|
417
|
+
- ????????**??????*?? `graphflow-out/graphflow-graph.json`
|
|
418
|
+
- ????**??**??????`workspaceRoot`????????????????
|
|
419
|
+
- MCP / ???????????????`GRAPHFLOW_WORKSPACE_ROOT=/path/to/project`
|
|
419
420
|
|
|
420
|
-
|
|
421
|
+
????
|
|
421
422
|
|
|
422
|
-
|
|
|
423
|
+
| ?? | ?? |
|
|
423
424
|
| --- | --- |
|
|
424
425
|
| `graphPolicy.transport` | `file` / `memory` / `sqlite` / `mcp-http` |
|
|
425
|
-
| `graphPolicy.graphStorePath` |
|
|
426
|
-
| `graphPolicy.maxContextTokens` |
|
|
427
|
-
| `graphPolicy.autoIndexOnSave` |
|
|
428
|
-
| `graphPolicy.autoIndexOnPreview` / `autoIndexOnRun` | preview / run
|
|
429
|
-
| `graphPolicy.enableNearLosslessMode` |
|
|
426
|
+
| `graphPolicy.graphStorePath` | ???????? JSON ??`.sqlite` ?? |
|
|
427
|
+
| `graphPolicy.maxContextTokens` | ?????????? **1500**??|
|
|
428
|
+
| `graphPolicy.autoIndexOnSave` | ?????????? **true**??|
|
|
429
|
+
| `graphPolicy.autoIndexOnPreview` / `autoIndexOnRun` | preview / run ??????|
|
|
430
|
+
| `graphPolicy.enableNearLosslessMode` | ???????? |
|
|
430
431
|
|
|
431
|
-
| `graphPolicy.layerQuota` | L1/L2/L3
|
|
432
|
-
| `routingPolicy.enableDynamicRouting` | provider
|
|
433
|
-
| `skillPolicy.enableSkillFlywheel` |
|
|
434
|
-
| `embeddingPolicy.provider` | embedding
|
|
432
|
+
| `graphPolicy.layerQuota` | L1/L2/L3 ???? |
|
|
433
|
+
| `routingPolicy.enableDynamicRouting` | provider ???? |
|
|
434
|
+
| `skillPolicy.enableSkillFlywheel` | ?????|
|
|
435
|
+
| `embeddingPolicy.provider` | embedding ????`transformers` ?? / `openai`??|
|
|
435
436
|
|
|
436
|
-
## VS Code / Cursor
|
|
437
|
+
## VS Code / Cursor ??
|
|
437
438
|
|
|
438
|
-
|
|
439
|
+
???? GraphFlow runtime??*?? VSIX ?????clone ?????? `npm run start`**?VSIX ???? `@xenova/transformers` ????????????????????? `GRAPHFLOW_EMBEDDING_CACHE_DIR`?Installer ??????????????????IDE ??????
|
|
439
440
|
|
|
440
|
-
###
|
|
441
|
+
### ?? VSIX????
|
|
441
442
|
|
|
442
|
-
1.
|
|
443
|
-
2. **VS Code
|
|
444
|
-
3. **Cursor
|
|
445
|
-
4.
|
|
446
|
-
5.
|
|
443
|
+
1. ?? [GitHub Releases](https://github.com/Roarpeng/GraphFlow/releases)??????`graphflow-tool-<version>.vsix`?CI ????push `main` / tag ??????
|
|
444
|
+
2. **VS Code**????????`?` ??**??VSIX ????* ??????????
|
|
445
|
+
3. **Cursor**????????????`?` ??**Install from VSIX** ??????????
|
|
446
|
+
4. ????????????????? GraphFlow MCP ????Agent ??
|
|
447
|
+
5. ?????? **GraphFlow: Show Settings** ??**??????? LLM??* ?????? Context Preview / ????
|
|
447
448
|
|
|
448
|
-
CLI
|
|
449
|
+
CLI ????????`code` / `cursor` ????
|
|
449
450
|
|
|
450
451
|
```bash
|
|
451
|
-
code --install-extension graphflow-tool-1.7.
|
|
452
|
-
cursor --install-extension graphflow-tool-1.7.
|
|
452
|
+
code --install-extension graphflow-tool-1.7.9.vsix
|
|
453
|
+
cursor --install-extension graphflow-tool-1.7.9.vsix
|
|
453
454
|
```
|
|
454
455
|
|
|
455
|
-
###
|
|
456
|
+
### ????
|
|
456
457
|
|
|
457
|
-
|
|
|
458
|
+
| ?? | ?? |
|
|
458
459
|
| --- | --- |
|
|
459
|
-
| GraphFlow: Show Settings |
|
|
460
|
-
| GraphFlow: Show Graph |
|
|
461
|
-
| GraphFlow: Preview Context |
|
|
462
|
-
| GraphFlow: Plan & Brainstorm |
|
|
463
|
-
| GraphFlow: Run Task |
|
|
464
|
-
| GraphFlow: Skill Insights |
|
|
465
|
-
| GraphFlow: Install MCP |
|
|
460
|
+
| GraphFlow: Show Settings | ???????????|
|
|
461
|
+
| GraphFlow: Show Graph | **????????*???????????? |
|
|
462
|
+
| GraphFlow: Preview Context | ?????? Token Budget |
|
|
463
|
+
| GraphFlow: Plan & Brainstorm | ???? |
|
|
464
|
+
| GraphFlow: Run Task | ???? |
|
|
465
|
+
| GraphFlow: Skill Insights | ???????|
|
|
466
|
+
| GraphFlow: Install MCP | ?? MCP ?? |
|
|
466
467
|
|
|
467
|
-
Chat Agent
|
|
468
|
+
Chat Agent?`@graphflow`??`/run`?`/plan`?`/graph`?`/skills`?`/diagnose`?`/learn`?`/history`
|
|
468
469
|
|
|
469
|
-
### Settings
|
|
470
|
+
### Settings ????
|
|
470
471
|
|
|
471
|
-
1.
|
|
472
|
-
2.
|
|
473
|
-
3.
|
|
472
|
+
1. ?? Graph Store Path ??**Save Settings**
|
|
473
|
+
2. **??????? LLM??* ????????
|
|
474
|
+
3. ?????? Provider ??**??????????*
|
|
474
475
|
|
|
475
|
-
|
|
476
|
+
???????`graph index` CLI?MCP `graphflow_index`?`autoIndexOnPreview` / `autoIndexOnRun` / `autoIndexOnSave`
|
|
476
477
|
|
|
477
|
-
###
|
|
478
|
+
### ?????????
|
|
478
479
|
|
|
479
480
|
```bash
|
|
480
481
|
cd vscode-extension
|
|
@@ -482,58 +483,58 @@ npm install
|
|
|
482
483
|
npm run build
|
|
483
484
|
```
|
|
484
485
|
|
|
485
|
-
|
|
486
|
+
??VS Code ??`F5` ?? Extension Development Host??
|
|
486
487
|
|
|
487
|
-
###
|
|
488
|
+
### ???? VSIX
|
|
488
489
|
|
|
489
490
|
```bash
|
|
490
491
|
npm run package:extension
|
|
491
|
-
#
|
|
492
|
+
# ???artifacts/graphflow-tool-<version>.vsix
|
|
492
493
|
```
|
|
493
494
|
|
|
494
|
-
##
|
|
495
|
+
## ??????
|
|
495
496
|
|
|
496
|
-
1. `npm run ci`
|
|
497
|
-
2. `graph index`
|
|
498
|
-
3. `context preview`
|
|
499
|
-
4. VS Code **Show Graph**
|
|
500
|
-
5. `plan` / `run`
|
|
501
|
-
6. `route diagnose`
|
|
497
|
+
1. `npm run ci` ??
|
|
498
|
+
2. `graph index` ??`indexedFiles > 0`
|
|
499
|
+
3. `context preview` ??`summary > 0` ??`anchors > 0`
|
|
500
|
+
4. VS Code **Show Graph** ????????????????????
|
|
501
|
+
5. `plan` / `run` ??????
|
|
502
|
+
6. `route diagnose` ???? provider ?????
|
|
502
503
|
|
|
503
|
-
##
|
|
504
|
+
## ????
|
|
504
505
|
|
|
505
|
-
|
|
506
|
+
**??????Snapshot ??????????*
|
|
506
507
|
|
|
507
|
-
-
|
|
508
|
-
-
|
|
508
|
+
- ???`~/.graphflow.config.json` ?????? `workspaceRoot`??*??????*??????
|
|
509
|
+
- ?????????????????? `store` ???????? `graphflow-out/`
|
|
509
510
|
|
|
510
|
-
**MCP
|
|
511
|
+
**MCP ????????????**
|
|
511
512
|
|
|
512
|
-
- `graphflow_index`
|
|
513
|
-
-
|
|
514
|
-
-
|
|
513
|
+
- `graphflow_index` ?? `rootDir: "/????????"`
|
|
514
|
+
- ?? MCP ???? `"env": { "GRAPHFLOW_WORKSPACE_ROOT": "/????????" }`
|
|
515
|
+
- ?????????????WASM ??????`@roarpeng/graphflow` ????????????
|
|
515
516
|
|
|
516
|
-
**`context preview`
|
|
517
|
+
**`context preview` ?? 0 anchors**
|
|
517
518
|
|
|
518
|
-
-
|
|
519
|
-
-
|
|
519
|
+
- ????`graph index` ??Settings ??
|
|
520
|
+
- ??????????????? `orchestrator`?`planner`??
|
|
520
521
|
|
|
521
|
-
|
|
522
|
+
**??????????????*
|
|
522
523
|
|
|
523
|
-
-
|
|
524
|
-
-
|
|
524
|
+
- ????????**?????*
|
|
525
|
+
- ??????????*????**?? 120 ??????????????
|
|
525
526
|
|
|
526
|
-
**API Key
|
|
527
|
+
**API Key ????*
|
|
527
528
|
|
|
528
|
-
-
|
|
529
|
-
- **DeepSeek
|
|
529
|
+
- ??`graphflow.config.json` ?? provider `apiKey`????`${ENV_VAR}` ??
|
|
530
|
+
- **DeepSeek????**?`providers.deepseek` + `tiers.*.provider: "deepseek"`?Base URL ?? `https://api.deepseek.com`???? `deepseek-v4-pro` / `deepseek-v4-flash`?? [DeepSeek API ??](https://api-docs.deepseek.com/zh-cn/)??
|
|
530
531
|
|
|
531
|
-
|
|
532
|
+
**??LLM ????**
|
|
532
533
|
|
|
533
|
-
-
|
|
534
|
-
-
|
|
534
|
+
- ??????????????context preview????????+ transformers.js ????????MCP `graphflow_diagnose` ???? LLM
|
|
535
|
+
- ?? Six Hats ??????LLM ?????????provider
|
|
535
536
|
|
|
536
|
-
##
|
|
537
|
+
## ????
|
|
537
538
|
|
|
538
539
|
```text
|
|
539
540
|
GraphFlow/
|
|
@@ -545,13 +546,13 @@ GraphFlow/
|
|
|
545
546
|
│ └── surfaces/
|
|
546
547
|
│ ├── cli/ # CLI + runtime 子模块
|
|
547
548
|
│ └── mcp/ # MCP server (10 tools)
|
|
548
|
-
├── tests/ #
|
|
549
|
+
├── tests/ # 72 文件 / 357+ tests
|
|
549
550
|
├── vscode-extension/ # VS Code 面板与命令
|
|
550
551
|
├── docs/
|
|
551
552
|
└── CHANGELOG.md
|
|
552
553
|
```
|
|
553
554
|
|
|
554
|
-
##
|
|
555
|
+
## ??????
|
|
555
556
|
|
|
556
|
-
-
|
|
557
|
-
- License
|
|
557
|
+
- ?????`CHANGELOG.md`
|
|
558
|
+
- License?Apache-2.0
|