@roarpeng/graphflow 1.7.7 → 1.7.10
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 +66 -2
- package/README.md +266 -264
- package/dist/config/discover-workspace.d.ts +2 -0
- package/dist/config/discover-workspace.d.ts.map +1 -1
- package/dist/config/discover-workspace.js +62 -15
- package/dist/config/discover-workspace.js.map +1 -1
- 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/config/workspace-root.d.ts.map +1 -1
- package/dist/config/workspace-root.js +7 -2
- package/dist/config/workspace-root.js.map +1 -1
- package/dist/core/types.d.ts +1 -1
- package/dist/core/types.d.ts.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/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-indexer.d.ts.map +1 -1
- package/dist/graph/file-indexer.js +18 -0
- package/dist/graph/file-indexer.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-compression.d.ts.map +1 -1
- package/dist/graph/graph-compression.js +2 -0
- package/dist/graph/graph-compression.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 +6 -0
- package/dist/graph/language-indexers/index.js.map +1 -1
- package/dist/graph/language-indexers/markdown.d.ts +11 -0
- package/dist/graph/language-indexers/markdown.d.ts.map +1 -0
- package/dist/graph/language-indexers/markdown.js +158 -0
- package/dist/graph/language-indexers/markdown.js.map +1 -0
- package/dist/graph/language-indexers/plcopen-xml.d.ts +16 -0
- package/dist/graph/language-indexers/plcopen-xml.d.ts.map +1 -0
- package/dist/graph/language-indexers/plcopen-xml.js +204 -0
- package/dist/graph/language-indexers/plcopen-xml.js.map +1 -0
- package/dist/graph/language-indexers/st-analyzer.d.ts +49 -0
- package/dist/graph/language-indexers/st-analyzer.d.ts.map +1 -0
- package/dist/graph/language-indexers/st-analyzer.js +439 -0
- package/dist/graph/language-indexers/st-analyzer.js.map +1 -0
- 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/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 +70 -5
- 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.map +1 -1
- package/dist/integrations/skill-installer.js +7 -0
- 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 +11 -0
- package/dist/learning/skill-flywheel.d.ts.map +1 -1
- package/dist/learning/skill-flywheel.js +85 -0
- 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 +1 -0
- package/dist/learning/skill-store.js.map +1 -1
- package/dist/learning/skill-types.d.ts +1 -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 +115 -9
- package/dist/surfaces/cli/index.js.map +1 -1
- package/dist/surfaces/cli/init.d.ts +55 -2
- package/dist/surfaces/cli/init.d.ts.map +1 -1
- package/dist/surfaces/cli/init.js +234 -56
- package/dist/surfaces/cli/init.js.map +1 -1
- package/dist/surfaces/cli/output.d.ts +6 -0
- package/dist/surfaces/cli/output.d.ts.map +1 -1
- package/dist/surfaces/cli/output.js +62 -2
- 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/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.map +1 -1
- package/dist/surfaces/cli/runtime/routing.js +65 -0
- 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,163 @@ 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.10+??
|
|
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
|
-
| **模型路由** | Smart / Economy
|
|
58
|
-
| **知识图谱** |
|
|
59
|
-
|
|
|
60
|
-
| **持续建图** | 默认 `autoIndexOnSave`;MCP
|
|
61
|
-
| **学习飞轮** | Episodic Memory(Jaccard + embedding RRF 语义检索)、Reflection
|
|
62
|
-
|
|
|
63
|
-
| **Agent 接入** | CLI `--json`;MCP stdio
|
|
64
|
-
| **VS Code 扩展** | Settings、建图、路由测试、Context Preview
|
|
65
|
-
| **存储后端** | `file`(JSON
|
|
66
|
-
|
|
|
67
|
-
| **工程质量** | TypeScript strict
|
|
57
|
+
| **模型路由** | Smart / Economy 双 tier;多 provider 健康探测与 fallback(**DeepSeek**、OpenAI、Anthropic、百炼、豆包) |
|
|
58
|
+
| **知识图谱** | 工作区 AST 索引(TS/JS/Python/Rust/Go/C/C++/Java/Ruby/Kotlin/Swift/Dart);File / Module / Symbol 节点 + 依赖/引用/定义/调用/继承边;图谱 artifact 导入/导出 |
|
|
59
|
+
| **上下文压缩** | L1/L2/L3 分层锚点;近无损打包;图结构压缩(边权重+PageRank,零成本默认开启);向量召回 + RRF 融合;RepoMap 概览;自适应预算 |
|
|
60
|
+
| **持续建图** | 默认 `autoIndexOnSave`;MCP 启动时自动启动 FileWatcher;preview / run 前按需增量索引;MCP `graphflow_index` 单文件增量 |
|
|
61
|
+
| **学习飞轮** | Episodic Memory(Jaccard + embedding RRF 语义检索)、Reflection(聚类 + Lesson 提取)、Skill 节点(score ±1,bounded [-20,20])、nightly 学习、技能提示注入规划 |
|
|
62
|
+
| **可观测性** | `graphflow_diagnose` 累计 token 节省;VS Code 知识图谱 Snapshot |
|
|
63
|
+
| **Agent 接入** | CLI `--json`;MCP stdio(**10 工具**);自动安装 MCP 到 15+ Agent(Cursor / Claude Code / Windsurf / Cline / Codex / Gemini / Opencode 等) |
|
|
64
|
+
| **VS Code 扩展** | Settings、建图、路由测试、Context Preview、**知识图谱可视化**、Skill Insights、Chat Agent、一键安装 MCP |
|
|
65
|
+
| **存储后端** | `file`(JSON)/ `memory` / `sqlite`(FTS5)/ `mcp-http`(Graphify) |
|
|
66
|
+
| **多项目隔离** | 全局配置共享 LLM/路由;**图谱路径按当前工作区解析**,不再串读其它项目的 `graphflow-out` |
|
|
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
|
-
- **
|
|
137
|
-
-
|
|
134
|
+
- ?????**v1.7.10**?root + vscode-extension??npm?`@roarpeng/graphflow@1.7.10`
|
|
135
|
+
- **GitHub Release**?push ??`main` ??CI ??`windows-2022` ??????VSIX ???? [GitHub Releases](https://github.com/Roarpeng/GraphFlow/releases)
|
|
136
|
+
- **Open VSX**:`main` / `v*` Build 成功后自动幂等发布到 [Open VSX](https://open-vsx.org/extension/roarpeng/graphflow-tool)(密钥 `open_vsx_token`,namespace `roarpeng`,与 `package.json` publisher 一致;版本已存在则跳过)
|
|
137
|
+
- **npm ??**?push tag `v*`?? `v1.4.1`????[Publish npm](https://github.com/Roarpeng/GraphFlow/actions/workflows/publish-npm.yml) ????
|
|
138
|
+
- ?????`CHANGELOG.md`
|
|
138
139
|
|
|
139
|
-
##
|
|
140
|
+
## ????
|
|
140
141
|
|
|
141
142
|
1. Node.js >= 20
|
|
142
143
|
2. npm >= 10
|
|
143
|
-
3. Windows / macOS / Linux
|
|
144
|
-
4. **npm
|
|
144
|
+
3. Windows / macOS / Linux ??
|
|
145
|
+
4. **npm ?? `@roarpeng/graphflow` ??*?? JS/TS ??????????
|
|
145
146
|
|
|
146
|
-
## 5
|
|
147
|
+
## 5 ??????
|
|
147
148
|
|
|
148
149
|
```bash
|
|
149
150
|
npm install
|
|
150
151
|
npm run ci
|
|
151
152
|
```
|
|
152
153
|
|
|
153
|
-
预期:`lint` 无错误、`build`
|
|
154
|
+
预期:`lint` 无错误、`build` 成功、**357+ tests** 通过、扩展 bundle 与 runtime smoke 通过。
|
|
154
155
|
|
|
155
|
-
## Agent
|
|
156
|
+
## Agent ????
|
|
156
157
|
|
|
157
|
-
GraphFlow
|
|
158
|
+
GraphFlow ????????????
|
|
158
159
|
|
|
159
|
-
1. **CLI
|
|
160
|
-
2. **MCP stdio server
|
|
160
|
+
1. **CLI ????**???????? `--json`
|
|
161
|
+
2. **MCP stdio server**?Cursor?Claude Code ??????
|
|
161
162
|
|
|
162
|
-
|
|
163
|
+
??????MCP??
|
|
163
164
|
|
|
164
165
|
```bash
|
|
165
166
|
npm run start:mcp
|
|
166
167
|
```
|
|
167
168
|
|
|
168
|
-
### MCP
|
|
169
|
+
### MCP ?????10 ??
|
|
169
170
|
|
|
170
|
-
|
|
|
171
|
+
| ?? | ???|
|
|
171
172
|
| --- | --- |
|
|
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` |
|
|
173
|
+
| `graphflow_context` | ????????query???????anchorId??**????**??|
|
|
174
|
+
| `graphflow_plan` | ????????DAG ???mode='simple' ??'insight'??|
|
|
175
|
+
| `graphflow_run` | ?? + ???????? bridge ??????|
|
|
176
|
+
| `graphflow_report_outcome` | ??GraphFlow ????????????????|
|
|
177
|
+
| `graphflow_insight` | ??????agent ?????Six Hats / plan prompts??|
|
|
178
|
+
| `graphflow_index` | ????????????????????|
|
|
179
|
+
| `graphflow_skill_insights` | ???????|
|
|
180
|
+
| `graphflow_diagnose` | ?????????? token ?? |
|
|
181
|
+
| `graphflow_artifact` | ??????????artifact |
|
|
182
|
+
| `graphflow_skill_guide` | ?? GraphFlow Skill ???? |
|
|
182
183
|
|
|
183
|
-
**MCP
|
|
184
|
+
**MCP ????**???? MCP ????`cwd` ????????????????
|
|
184
185
|
|
|
185
|
-
-
|
|
186
|
-
-
|
|
187
|
-
-
|
|
186
|
+
- ?? `graphflow_index` ????`rootDir`????????
|
|
187
|
+
- ??MCP ??????`GRAPHFLOW_WORKSPACE_ROOT` ????
|
|
188
|
+
- ?? VS Code ?????????????`.cursor/mcp.json`
|
|
188
189
|
|
|
189
|
-
CLI
|
|
190
|
+
CLI ????
|
|
190
191
|
|
|
191
192
|
```bash
|
|
192
193
|
npm run start -- plan "refactor planner and add tests" --json
|
|
@@ -194,34 +195,34 @@ npm run start -- context preview "orchestrator" --json
|
|
|
194
195
|
npm run start -- graph inspect --json
|
|
195
196
|
```
|
|
196
197
|
|
|
197
|
-
|
|
198
|
+
?? agent ?????`AGENTS.md`?`CLAUDE.md`?`.cursor/rules/graphflow.mdc`
|
|
198
199
|
|
|
199
|
-
##
|
|
200
|
+
## ???????CLI??
|
|
200
201
|
|
|
201
|
-
###
|
|
202
|
+
### ????
|
|
202
203
|
|
|
203
204
|
```bash
|
|
204
205
|
npm run start -- graph index .
|
|
205
206
|
```
|
|
206
207
|
|
|
207
|
-
|
|
208
|
+
???`indexedFiles=?? indexedSymbols=?`
|
|
208
209
|
|
|
209
|
-
###
|
|
210
|
+
### ????????
|
|
210
211
|
|
|
211
212
|
```bash
|
|
212
213
|
npm run start -- context preview "orchestrator"
|
|
213
214
|
```
|
|
214
215
|
|
|
215
|
-
|
|
216
|
+
???`summary=?? anchors=?? tokens=?`??????????????**90%+ token**??
|
|
216
217
|
|
|
217
|
-
###
|
|
218
|
+
### ???? / ??
|
|
218
219
|
|
|
219
220
|
```bash
|
|
220
221
|
npm run start -- run "update readme and add tests"
|
|
221
222
|
npm run start -- plan "update readme and add tests and refactor architecture module"
|
|
222
223
|
```
|
|
223
224
|
|
|
224
|
-
###
|
|
225
|
+
### ???? / ?? / ??
|
|
225
226
|
|
|
226
227
|
```bash
|
|
227
228
|
npm run start -- route diagnose
|
|
@@ -230,27 +231,27 @@ npm run start -- graph inspect
|
|
|
230
231
|
npm run start -- skill insights
|
|
231
232
|
```
|
|
232
233
|
|
|
233
|
-
##
|
|
234
|
+
## ????
|
|
234
235
|
|
|
235
|
-
###
|
|
236
|
+
### ??????
|
|
236
237
|
|
|
237
|
-
GraphFlow
|
|
238
|
+
GraphFlow ??????????????????????????????????????????????
|
|
238
239
|
|
|
239
|
-
|
|
|
240
|
+
| ??| ?? | ?? | ?? |
|
|
240
241
|
| --- | --- | --- | --- |
|
|
241
|
-
|
|
|
242
|
-
|
|
|
243
|
-
| RepoMap
|
|
244
|
-
|
|
|
242
|
+
| ??????| ????????+ PageRank ??????| ??LLM | **???* |
|
|
243
|
+
| ???? | transformers.js embedding + ?????+ RRF ?? | ???? | **???* |
|
|
244
|
+
| RepoMap ?? | ???????????? | ??LLM | opt-in |
|
|
245
|
+
| ????? | ???????????token ?? | ??LLM | opt-in |
|
|
245
246
|
|
|
246
|
-
|
|
247
|
+
**??????**??
|
|
247
248
|
|
|
248
|
-
-
|
|
249
|
-
-
|
|
250
|
-
-
|
|
251
|
-
-
|
|
249
|
+
- ????`file-indexer` ????????384 ????embedding?`@xenova/transformers` + `all-MiniLM-L6-v2`?? 22MB?? JS ????
|
|
250
|
+
- ??????query ????????embedding????????cosine similarity
|
|
251
|
+
- ????????????? <10K ??????????? HNSW ANN??
|
|
252
|
+
- ??????+ ???????? RRF?Reciprocal Rank Fusion, k=60????
|
|
252
253
|
|
|
253
|
-
|
|
254
|
+
??????
|
|
254
255
|
|
|
255
256
|
```json
|
|
256
257
|
{
|
|
@@ -270,15 +271,15 @@ GraphFlow 的压缩采用「两层渐进」策略,先用零成本图结构压
|
|
|
270
271
|
}
|
|
271
272
|
```
|
|
272
273
|
|
|
273
|
-
|
|
274
|
+
?????????? `@xenova/transformers` ???????? `embeddingPolicy.modelCacheDir` ??????`GRAPHFLOW_EMBEDDING_CACHE_DIR` ???????
|
|
274
275
|
|
|
275
|
-
|
|
276
|
+
????????????
|
|
276
277
|
|
|
277
278
|
```bash
|
|
278
279
|
npm run start -- route diagnose
|
|
279
280
|
```
|
|
280
281
|
|
|
281
|
-
### SQLite / FTS5
|
|
282
|
+
### SQLite / FTS5 ??
|
|
282
283
|
|
|
283
284
|
```json
|
|
284
285
|
{
|
|
@@ -290,7 +291,7 @@ npm run start -- route diagnose
|
|
|
290
291
|
}
|
|
291
292
|
```
|
|
292
293
|
|
|
293
|
-
WAL + FTS5
|
|
294
|
+
WAL + FTS5 ?????? `file` / `memory` ??????
|
|
294
295
|
|
|
295
296
|
### Episodic Memory + Reflection
|
|
296
297
|
|
|
@@ -301,18 +302,18 @@ const run = await orchestrate(
|
|
|
301
302
|
);
|
|
302
303
|
```
|
|
303
304
|
|
|
304
|
-
|
|
305
|
+
?? task ?? Episode????embedding???? task ???????Jaccard + embedding RRF ??????`learn nightly` ?? Lesson ???Lesson ??????????planner prompt??
|
|
305
306
|
|
|
306
|
-
###
|
|
307
|
+
### ???????
|
|
307
308
|
|
|
308
|
-
- `applySkillLearning
|
|
309
|
-
- `suggestSkillHints
|
|
310
|
-
-
|
|
311
|
-
-
|
|
309
|
+
- `applySkillLearning`????????????????? Skill ?? score?pass +1 / fail -1?bounded [-20,20]??
|
|
310
|
+
- `suggestSkillHints`????Skill ???? score/uses ??????top-N ?????
|
|
311
|
+
- ?????????worker prompt??????????????
|
|
312
|
+
- ???????????????????? composite skill ??
|
|
312
313
|
|
|
313
|
-
###
|
|
314
|
+
### ??? AST ??
|
|
314
315
|
|
|
315
|
-
|
|
|
316
|
+
| ?? | ?? |
|
|
316
317
|
| --- | --- |
|
|
317
318
|
| TypeScript / JavaScript | `.ts .tsx .js .jsx` |
|
|
318
319
|
| Python | `.py` |
|
|
@@ -323,158 +324,159 @@ const run = await orchestrate(
|
|
|
323
324
|
| Ruby | `.rb` |
|
|
324
325
|
| Kotlin | `.kt` |
|
|
325
326
|
| Swift | `.swift` |
|
|
327
|
+
| Dart | `.dart` |
|
|
326
328
|
|
|
327
|
-
|
|
329
|
+
?? `graphPolicy.includeExtensions` ???????tree-sitter WASM ???? `npm run build` ????`wasm/` ?? npm ???????????????
|
|
328
330
|
|
|
329
|
-
### Agent MCP
|
|
331
|
+
### Agent MCP ????
|
|
330
332
|
|
|
331
|
-
GraphFlow CLI
|
|
333
|
+
GraphFlow CLI ???????? MCP ????15+ ?? Agent??
|
|
332
334
|
|
|
333
335
|
```bash
|
|
334
|
-
#
|
|
336
|
+
# ???????Agent ??MCP ?????
|
|
335
337
|
npx @roarpeng/graphflow doctor
|
|
336
338
|
|
|
337
|
-
#
|
|
339
|
+
# ?????MCP + Skill + Cursor Rules????
|
|
338
340
|
npx @roarpeng/graphflow install
|
|
339
341
|
|
|
340
|
-
#
|
|
342
|
+
# ????????????graphflow/config.json ??
|
|
341
343
|
npx @roarpeng/graphflow init
|
|
342
344
|
```
|
|
343
345
|
|
|
344
|
-
|
|
346
|
+
**?? `npm install` ??*?????? `.cursor/mcp.json` ??`.vscode/mcp.json`?postinstall ??????workspace ??GraphFlow MCP ??Skill????????????`npx @roarpeng/graphflow install`??
|
|
345
347
|
|
|
346
|
-
### Trae / Trae CN
|
|
348
|
+
### Trae / Trae CN ????
|
|
347
349
|
|
|
348
|
-
Trae
|
|
350
|
+
Trae ?? **Rules**??????????**Skill**??????????Skill ??GraphFlow ???????`install` / `init` ????????
|
|
349
351
|
|
|
350
|
-
|
|
|
352
|
+
| ?? | ?? |
|
|
351
353
|
|------|------|
|
|
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
|
|
354
|
+
| `.trae/rules/graphflow.md` | `alwaysApply: true` ???????? `graphflow_context` |
|
|
355
|
+
| `.trae/skills/graphflow/SKILL.md` | ?? 10 ???????? `#graphflow` ???? |
|
|
356
|
+
| `~/.config/Trae CN/User/skills/graphflow/SKILL.md` | ????Skill??????|
|
|
357
|
+
| `User/mcp.json` | GraphFlow MCP ????|
|
|
356
358
|
|
|
357
359
|
```bash
|
|
358
|
-
#
|
|
360
|
+
# ?????????fat-battle/web?GraphFlow ??
|
|
359
361
|
npx @roarpeng/graphflow install
|
|
360
|
-
npx @roarpeng/graphflow doctor #
|
|
362
|
+
npx @roarpeng/graphflow doctor # ???Trae CN rules/skill/MCP ????
|
|
361
363
|
```
|
|
362
364
|
|
|
363
|
-
|
|
365
|
+
**??**?MCP ???????? `GRAPHFLOW_WORKSPACE_ROOT` ????????Trae ??????????Agent ??`graphflow_context` ?????? `rootDir`??
|
|
364
366
|
|
|
365
|
-
### Antigravity IDE
|
|
367
|
+
### Antigravity IDE ????
|
|
366
368
|
|
|
367
|
-
|
|
|
369
|
+
| ?? | ?? |
|
|
368
370
|
|------|------|
|
|
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` |
|
|
371
|
+
| `~/.gemini/antigravity/mcp_config.json` | ?? MCP?`mcpServers` ?? |
|
|
372
|
+
| `~/.gemini/antigravity/skills/graphflow/SKILL.md` | ?? Skill |
|
|
373
|
+
| `.agent/rules/graphflow.md` | ????Rules |
|
|
374
|
+
| `.agent/skills/graphflow/SKILL.md` | ????Skill |
|
|
375
|
+
| `GEMINI.md` | ???????? |
|
|
374
376
|
|
|
375
|
-
### Gemini CLI
|
|
377
|
+
### Gemini CLI ????
|
|
376
378
|
|
|
377
|
-
|
|
|
379
|
+
| ?? | ?? |
|
|
378
380
|
|------|------|
|
|
379
|
-
| `~/.gemini/settings.json` | MCP
|
|
380
|
-
| `~/.gemini/GEMINI.md` |
|
|
381
|
+
| `~/.gemini/settings.json` | MCP ????|
|
|
382
|
+
| `~/.gemini/GEMINI.md` | ????????|
|
|
381
383
|
|
|
382
|
-
### VS Code / GitHub Copilot
|
|
384
|
+
### VS Code / GitHub Copilot ????
|
|
383
385
|
|
|
384
|
-
|
|
|
386
|
+
| ?? | ?? |
|
|
385
387
|
|------|------|
|
|
386
|
-
| `~/.config/Code/User/mcp.json` |
|
|
387
|
-
| `.github/copilot-instructions.md` |
|
|
388
|
-
| `.vscode/mcp.json` |
|
|
388
|
+
| `~/.config/Code/User/mcp.json` | ????MCP?`servers` ?? |
|
|
389
|
+
| `.github/copilot-instructions.md` | ????Copilot ???token-first??|
|
|
390
|
+
| `.vscode/mcp.json` | ????? MCP |
|
|
389
391
|
|
|
390
392
|
```bash
|
|
391
|
-
npx @roarpeng/graphflow install #
|
|
392
|
-
npx @roarpeng/graphflow install --scope all #
|
|
393
|
+
npx @roarpeng/graphflow install # ????MCP + Skills
|
|
394
|
+
npx @roarpeng/graphflow install --scope all # ???? Rules / Copilot ??
|
|
393
395
|
npx @roarpeng/graphflow doctor
|
|
394
396
|
```
|
|
395
397
|
|
|
396
|
-
|
|
398
|
+
????Agent?Cursor?VS Code?Trae?Claude Code?Windsurf?Cline?Roo Code?Kilo Code?PearAI?Gemini?Codex?Antigravity?Amazon Q?Zed?Continue??
|
|
397
399
|
|
|
398
|
-
##
|
|
400
|
+
## ????
|
|
399
401
|
|
|
400
|
-
|
|
402
|
+
???`graphflow.config.json`??????`~/.graphflow.config.json` ???????
|
|
401
403
|
|
|
402
404
|
```bash
|
|
403
405
|
cp graphflow.config.example.json graphflow.config.json
|
|
404
406
|
```
|
|
405
407
|
|
|
406
|
-
###
|
|
408
|
+
### ?? vs ????
|
|
407
409
|
|
|
408
|
-
|
|
|
410
|
+
| ?? | ?? | ???? |
|
|
409
411
|
| --- | --- | --- |
|
|
410
|
-
|
|
|
411
|
-
|
|
|
412
|
-
|
|
|
412
|
+
| ?? | `~/.graphflow.config.json` | Provider?API Key?Smart/Economy ????????|
|
|
413
|
+
| ????| `graphflow.config.json` | ?????????? |
|
|
414
|
+
| ???? | `.graphflow/config.json` | ????????`graphflow init` ????|
|
|
413
415
|
|
|
414
|
-
|
|
416
|
+
**????????*??
|
|
415
417
|
|
|
416
|
-
-
|
|
417
|
-
-
|
|
418
|
-
- MCP /
|
|
418
|
+
- ????????**??????*?? `graphflow-out/graphflow-graph.json`
|
|
419
|
+
- ????**??**??????`workspaceRoot`????????????????
|
|
420
|
+
- MCP / ???????????????`GRAPHFLOW_WORKSPACE_ROOT=/path/to/project`
|
|
419
421
|
|
|
420
|
-
|
|
422
|
+
????
|
|
421
423
|
|
|
422
|
-
|
|
|
424
|
+
| ?? | ?? |
|
|
423
425
|
| --- | --- |
|
|
424
426
|
| `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` |
|
|
427
|
+
| `graphPolicy.graphStorePath` | ???????? JSON ??`.sqlite` ?? |
|
|
428
|
+
| `graphPolicy.maxContextTokens` | ?????????? **1500**??|
|
|
429
|
+
| `graphPolicy.autoIndexOnSave` | ?????????? **true**??|
|
|
430
|
+
| `graphPolicy.autoIndexOnPreview` / `autoIndexOnRun` | preview / run ??????|
|
|
431
|
+
| `graphPolicy.enableNearLosslessMode` | ???????? |
|
|
430
432
|
|
|
431
|
-
| `graphPolicy.layerQuota` | L1/L2/L3
|
|
432
|
-
| `routingPolicy.enableDynamicRouting` | provider
|
|
433
|
-
| `skillPolicy.enableSkillFlywheel` |
|
|
434
|
-
| `embeddingPolicy.provider` | embedding
|
|
433
|
+
| `graphPolicy.layerQuota` | L1/L2/L3 ???? |
|
|
434
|
+
| `routingPolicy.enableDynamicRouting` | provider ???? |
|
|
435
|
+
| `skillPolicy.enableSkillFlywheel` | ?????|
|
|
436
|
+
| `embeddingPolicy.provider` | embedding ????`transformers` ?? / `openai`??|
|
|
435
437
|
|
|
436
|
-
## VS Code / Cursor
|
|
438
|
+
## VS Code / Cursor ??
|
|
437
439
|
|
|
438
|
-
|
|
440
|
+
???? GraphFlow runtime??*?? VSIX ?????clone ?????? `npm run start`**?VSIX ???? `@xenova/transformers` ????????????????????? `GRAPHFLOW_EMBEDDING_CACHE_DIR`?Installer ??????????????????IDE ??????
|
|
439
441
|
|
|
440
|
-
###
|
|
442
|
+
### ?? VSIX????
|
|
441
443
|
|
|
442
|
-
1.
|
|
443
|
-
2. **VS Code
|
|
444
|
-
3. **Cursor
|
|
445
|
-
4.
|
|
446
|
-
5.
|
|
444
|
+
1. ?? [GitHub Releases](https://github.com/Roarpeng/GraphFlow/releases)??????`graphflow-tool-<version>.vsix`?CI ????push `main` / tag ??????
|
|
445
|
+
2. **VS Code**????????`?` ??**??VSIX ????* ??????????
|
|
446
|
+
3. **Cursor**????????????`?` ??**Install from VSIX** ??????????
|
|
447
|
+
4. ????????????????? GraphFlow MCP ????Agent ??
|
|
448
|
+
5. ?????? **GraphFlow: Show Settings** ??**??????? LLM??* ?????? Context Preview / ????
|
|
447
449
|
|
|
448
|
-
CLI
|
|
450
|
+
CLI ????????`code` / `cursor` ????
|
|
449
451
|
|
|
450
452
|
```bash
|
|
451
|
-
code --install-extension graphflow-tool-1.7.
|
|
452
|
-
cursor --install-extension graphflow-tool-1.7.
|
|
453
|
+
code --install-extension graphflow-tool-1.7.10.vsix
|
|
454
|
+
cursor --install-extension graphflow-tool-1.7.10.vsix
|
|
453
455
|
```
|
|
454
456
|
|
|
455
|
-
###
|
|
457
|
+
### ????
|
|
456
458
|
|
|
457
|
-
|
|
|
459
|
+
| ?? | ?? |
|
|
458
460
|
| --- | --- |
|
|
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 |
|
|
461
|
+
| GraphFlow: Show Settings | ???????????|
|
|
462
|
+
| GraphFlow: Show Graph | **????????*???????????? |
|
|
463
|
+
| GraphFlow: Preview Context | ?????? Token Budget |
|
|
464
|
+
| GraphFlow: Plan & Brainstorm | ???? |
|
|
465
|
+
| GraphFlow: Run Task | ???? |
|
|
466
|
+
| GraphFlow: Skill Insights | ???????|
|
|
467
|
+
| GraphFlow: Install MCP | ?? MCP ?? |
|
|
466
468
|
|
|
467
|
-
Chat Agent
|
|
469
|
+
Chat Agent?`@graphflow`??`/run`?`/plan`?`/graph`?`/skills`?`/diagnose`?`/learn`?`/history`
|
|
468
470
|
|
|
469
|
-
### Settings
|
|
471
|
+
### Settings ????
|
|
470
472
|
|
|
471
|
-
1.
|
|
472
|
-
2.
|
|
473
|
-
3.
|
|
473
|
+
1. ?? Graph Store Path ??**Save Settings**
|
|
474
|
+
2. **??????? LLM??* ????????
|
|
475
|
+
3. ?????? Provider ??**??????????*
|
|
474
476
|
|
|
475
|
-
|
|
477
|
+
???????`graph index` CLI?MCP `graphflow_index`?`autoIndexOnPreview` / `autoIndexOnRun` / `autoIndexOnSave`
|
|
476
478
|
|
|
477
|
-
###
|
|
479
|
+
### ?????????
|
|
478
480
|
|
|
479
481
|
```bash
|
|
480
482
|
cd vscode-extension
|
|
@@ -482,76 +484,76 @@ npm install
|
|
|
482
484
|
npm run build
|
|
483
485
|
```
|
|
484
486
|
|
|
485
|
-
|
|
487
|
+
??VS Code ??`F5` ?? Extension Development Host??
|
|
486
488
|
|
|
487
|
-
###
|
|
489
|
+
### ???? VSIX
|
|
488
490
|
|
|
489
491
|
```bash
|
|
490
492
|
npm run package:extension
|
|
491
|
-
#
|
|
493
|
+
# ???artifacts/graphflow-tool-<version>.vsix
|
|
492
494
|
```
|
|
493
495
|
|
|
494
|
-
##
|
|
496
|
+
## ??????
|
|
495
497
|
|
|
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`
|
|
498
|
+
1. `npm run ci` ??
|
|
499
|
+
2. `graph index` ??`indexedFiles > 0`
|
|
500
|
+
3. `context preview` ??`summary > 0` ??`anchors > 0`
|
|
501
|
+
4. VS Code **Show Graph** ????????????????????
|
|
502
|
+
5. `plan` / `run` ??????
|
|
503
|
+
6. `route diagnose` ???? provider ?????
|
|
502
504
|
|
|
503
|
-
##
|
|
505
|
+
## ????
|
|
504
506
|
|
|
505
|
-
|
|
507
|
+
**??????Snapshot ??????????*
|
|
506
508
|
|
|
507
|
-
-
|
|
508
|
-
-
|
|
509
|
+
- ???`~/.graphflow.config.json` ?????? `workspaceRoot`??*??????*??????
|
|
510
|
+
- ?????????????????? `store` ???????? `graphflow-out/`
|
|
509
511
|
|
|
510
|
-
**MCP
|
|
512
|
+
**MCP ????????????**
|
|
511
513
|
|
|
512
|
-
- `graphflow_index`
|
|
513
|
-
-
|
|
514
|
-
-
|
|
514
|
+
- `graphflow_index` ?? `rootDir: "/????????"`
|
|
515
|
+
- ?? MCP ???? `"env": { "GRAPHFLOW_WORKSPACE_ROOT": "/????????" }`
|
|
516
|
+
- ?????????????WASM ??????`@roarpeng/graphflow` ????????????
|
|
515
517
|
|
|
516
|
-
**`context preview`
|
|
518
|
+
**`context preview` ?? 0 anchors**
|
|
517
519
|
|
|
518
|
-
-
|
|
519
|
-
-
|
|
520
|
+
- ????`graph index` ??Settings ??
|
|
521
|
+
- ??????????????? `orchestrator`?`planner`??
|
|
520
522
|
|
|
521
|
-
|
|
523
|
+
**??????????????*
|
|
522
524
|
|
|
523
|
-
-
|
|
524
|
-
-
|
|
525
|
+
- ????????**?????*
|
|
526
|
+
- ??????????*????**?? 120 ??????????????
|
|
525
527
|
|
|
526
|
-
**API Key
|
|
528
|
+
**API Key ????*
|
|
527
529
|
|
|
528
|
-
-
|
|
529
|
-
- **DeepSeek
|
|
530
|
+
- ??`graphflow.config.json` ?? provider `apiKey`????`${ENV_VAR}` ??
|
|
531
|
+
- **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
532
|
|
|
531
|
-
|
|
533
|
+
**??LLM ????**
|
|
532
534
|
|
|
533
|
-
-
|
|
534
|
-
-
|
|
535
|
+
- ??????????????context preview????????+ transformers.js ????????MCP `graphflow_diagnose` ???? LLM
|
|
536
|
+
- ?? Six Hats ??????LLM ?????????provider
|
|
535
537
|
|
|
536
|
-
##
|
|
538
|
+
## ????
|
|
537
539
|
|
|
538
540
|
```text
|
|
539
541
|
GraphFlow/
|
|
540
542
|
├── src/
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
├── tests/ #
|
|
549
|
-
├── vscode-extension/ # VS Code
|
|
543
|
+
│ ├── core/ # 编排核心:orchestrator, triage, dag-engine, types
|
|
544
|
+
│ ├── graph/ # 索引、上下文切片、图压缩、snapshot
|
|
545
|
+
│ ├── routing/ # 模型路由与健康探测(deepseek/openai/anthropic/bailian/doubao)
|
|
546
|
+
│ ├── learning/ # embeddings, episode, skill-flywheel, reflector, hnsw
|
|
547
|
+
│ └── surfaces/
|
|
548
|
+
│ ├── cli/ # CLI + runtime 子模块
|
|
549
|
+
│ └── mcp/ # MCP server (10 tools)
|
|
550
|
+
├── tests/ # 72 文件 / 357+ tests
|
|
551
|
+
├── vscode-extension/ # VS Code 面板与命令
|
|
550
552
|
├── docs/
|
|
551
553
|
└── CHANGELOG.md
|
|
552
554
|
```
|
|
553
555
|
|
|
554
|
-
##
|
|
556
|
+
## ??????
|
|
555
557
|
|
|
556
|
-
-
|
|
557
|
-
- License
|
|
558
|
+
- ?????`CHANGELOG.md`
|
|
559
|
+
- License?Apache-2.0
|