@roarpeng/graphflow 1.7.0 → 1.7.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.
Files changed (332) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/README.md +13 -10
  3. package/dist/agents/insight.d.ts +13 -2
  4. package/dist/agents/insight.d.ts.map +1 -1
  5. package/dist/agents/insight.js +56 -26
  6. package/dist/agents/insight.js.map +1 -1
  7. package/dist/agents/task-profile.d.ts +19 -0
  8. package/dist/agents/task-profile.d.ts.map +1 -0
  9. package/dist/agents/task-profile.js +64 -0
  10. package/dist/agents/task-profile.js.map +1 -0
  11. package/dist/agents/validator.js +1 -1
  12. package/dist/agents/validator.js.map +1 -1
  13. package/dist/config/defaults.d.ts.map +1 -1
  14. package/dist/config/defaults.js +3 -1
  15. package/dist/config/defaults.js.map +1 -1
  16. package/dist/config/discover-workspace.d.ts.map +1 -1
  17. package/dist/config/discover-workspace.js +10 -2
  18. package/dist/config/discover-workspace.js.map +1 -1
  19. package/dist/config/embedding-factory.d.ts.map +1 -1
  20. package/dist/config/embedding-factory.js +88 -9
  21. package/dist/config/embedding-factory.js.map +1 -1
  22. package/dist/config/loader.d.ts.map +1 -1
  23. package/dist/config/loader.js +9 -2
  24. package/dist/config/loader.js.map +1 -1
  25. package/dist/config/provider-env.d.ts +32 -0
  26. package/dist/config/provider-env.d.ts.map +1 -0
  27. package/dist/config/provider-env.js +51 -0
  28. package/dist/config/provider-env.js.map +1 -0
  29. package/dist/config/resolve.d.ts.map +1 -1
  30. package/dist/config/resolve.js +7 -2
  31. package/dist/config/resolve.js.map +1 -1
  32. package/dist/config/schema.d.ts +17 -2
  33. package/dist/config/schema.d.ts.map +1 -1
  34. package/dist/config/workspace-root.d.ts +0 -12
  35. package/dist/config/workspace-root.d.ts.map +1 -1
  36. package/dist/config/workspace-root.js +21 -5
  37. package/dist/config/workspace-root.js.map +1 -1
  38. package/dist/core/agent-delegation.d.ts +5 -0
  39. package/dist/core/agent-delegation.d.ts.map +1 -1
  40. package/dist/core/agent-delegation.js +131 -57
  41. package/dist/core/agent-delegation.js.map +1 -1
  42. package/dist/core/cancellation.d.ts +57 -0
  43. package/dist/core/cancellation.d.ts.map +1 -0
  44. package/dist/core/cancellation.js +195 -0
  45. package/dist/core/cancellation.js.map +1 -0
  46. package/dist/core/dag-engine.d.ts +6 -1
  47. package/dist/core/dag-engine.d.ts.map +1 -1
  48. package/dist/core/dag-engine.js +67 -9
  49. package/dist/core/dag-engine.js.map +1 -1
  50. package/dist/core/orchestrator-context.d.ts.map +1 -1
  51. package/dist/core/orchestrator-context.js +3 -0
  52. package/dist/core/orchestrator-context.js.map +1 -1
  53. package/dist/core/orchestrator-route.d.ts +1 -1
  54. package/dist/core/orchestrator-route.d.ts.map +1 -1
  55. package/dist/core/orchestrator-route.js.map +1 -1
  56. package/dist/core/orchestrator.d.ts.map +1 -1
  57. package/dist/core/orchestrator.js +61 -42
  58. package/dist/core/orchestrator.js.map +1 -1
  59. package/dist/core/runtime-controller.d.ts +19 -0
  60. package/dist/core/runtime-controller.d.ts.map +1 -0
  61. package/dist/core/runtime-controller.js +89 -0
  62. package/dist/core/runtime-controller.js.map +1 -0
  63. package/dist/core/types.d.ts +5 -0
  64. package/dist/core/types.d.ts.map +1 -1
  65. package/dist/graph/context-cache.d.ts +23 -0
  66. package/dist/graph/context-cache.d.ts.map +1 -0
  67. package/dist/graph/context-cache.js +92 -0
  68. package/dist/graph/context-cache.js.map +1 -0
  69. package/dist/graph/context-slicer-types.d.ts +2 -0
  70. package/dist/graph/context-slicer-types.d.ts.map +1 -1
  71. package/dist/graph/context-slicer-types.js.map +1 -1
  72. package/dist/graph/context-slicer.d.ts +1 -0
  73. package/dist/graph/context-slicer.d.ts.map +1 -1
  74. package/dist/graph/context-slicer.js +54 -8
  75. package/dist/graph/context-slicer.js.map +1 -1
  76. package/dist/graph/file-indexer.d.ts +4 -1
  77. package/dist/graph/file-indexer.d.ts.map +1 -1
  78. package/dist/graph/file-indexer.js +16 -5
  79. package/dist/graph/file-indexer.js.map +1 -1
  80. package/dist/graph/file-watcher.d.ts.map +1 -1
  81. package/dist/graph/file-watcher.js +9 -2
  82. package/dist/graph/file-watcher.js.map +1 -1
  83. package/dist/graph/graph-utils.d.ts +6 -1
  84. package/dist/graph/graph-utils.d.ts.map +1 -1
  85. package/dist/graph/graph-utils.js +116 -2
  86. package/dist/graph/graph-utils.js.map +1 -1
  87. package/dist/graph/graphify-file-client.d.ts.map +1 -1
  88. package/dist/graph/graphify-file-client.js +2 -1
  89. package/dist/graph/graphify-file-client.js.map +1 -1
  90. package/dist/graph/hit-diversify.d.ts +31 -0
  91. package/dist/graph/hit-diversify.d.ts.map +1 -0
  92. package/dist/graph/hit-diversify.js +270 -0
  93. package/dist/graph/hit-diversify.js.map +1 -0
  94. package/dist/graph/language-indexers/go.d.ts.map +1 -1
  95. package/dist/graph/language-indexers/go.js +2 -3
  96. package/dist/graph/language-indexers/go.js.map +1 -1
  97. package/dist/graph/language-indexers/incremental-parse.d.ts +9 -0
  98. package/dist/graph/language-indexers/incremental-parse.d.ts.map +1 -0
  99. package/dist/graph/language-indexers/incremental-parse.js +114 -0
  100. package/dist/graph/language-indexers/incremental-parse.js.map +1 -0
  101. package/dist/graph/language-indexers/python.d.ts.map +1 -1
  102. package/dist/graph/language-indexers/python.js +2 -3
  103. package/dist/graph/language-indexers/python.js.map +1 -1
  104. package/dist/graph/language-indexers/rust.d.ts.map +1 -1
  105. package/dist/graph/language-indexers/rust.js +2 -3
  106. package/dist/graph/language-indexers/rust.js.map +1 -1
  107. package/dist/graph/language-indexers/tree-sitter-loader.d.ts +19 -3
  108. package/dist/graph/language-indexers/tree-sitter-loader.d.ts.map +1 -1
  109. package/dist/graph/language-indexers/tree-sitter-loader.js +24 -4
  110. package/dist/graph/language-indexers/tree-sitter-loader.js.map +1 -1
  111. package/dist/graph/query-expand.d.ts.map +1 -1
  112. package/dist/graph/query-expand.js +2 -0
  113. package/dist/graph/query-expand.js.map +1 -1
  114. package/dist/index.d.ts +1 -1
  115. package/dist/index.d.ts.map +1 -1
  116. package/dist/index.js +2 -1
  117. package/dist/index.js.map +1 -1
  118. package/dist/integrations/agent-mcp-installer.d.ts +39 -0
  119. package/dist/integrations/agent-mcp-installer.d.ts.map +1 -1
  120. package/dist/integrations/agent-mcp-installer.js +242 -31
  121. package/dist/integrations/agent-mcp-installer.js.map +1 -1
  122. package/dist/integrations/agent-profiles/index.d.ts +26 -0
  123. package/dist/integrations/agent-profiles/index.d.ts.map +1 -0
  124. package/dist/integrations/agent-profiles/index.js +31 -0
  125. package/dist/integrations/agent-profiles/index.js.map +1 -0
  126. package/dist/integrations/agent-profiles/profiles/amazon-q.d.ts +2 -0
  127. package/dist/integrations/agent-profiles/profiles/amazon-q.d.ts.map +1 -0
  128. package/dist/integrations/agent-profiles/profiles/amazon-q.js +18 -0
  129. package/dist/integrations/agent-profiles/profiles/amazon-q.js.map +1 -0
  130. package/dist/integrations/agent-profiles/profiles/antigravity.d.ts +2 -0
  131. package/dist/integrations/agent-profiles/profiles/antigravity.d.ts.map +1 -0
  132. package/dist/integrations/agent-profiles/profiles/antigravity.js +33 -0
  133. package/dist/integrations/agent-profiles/profiles/antigravity.js.map +1 -0
  134. package/dist/integrations/agent-profiles/profiles/claude-code.d.ts +2 -0
  135. package/dist/integrations/agent-profiles/profiles/claude-code.d.ts.map +1 -0
  136. package/dist/integrations/agent-profiles/profiles/claude-code.js +22 -0
  137. package/dist/integrations/agent-profiles/profiles/claude-code.js.map +1 -0
  138. package/dist/integrations/agent-profiles/profiles/cline.d.ts +2 -0
  139. package/dist/integrations/agent-profiles/profiles/cline.d.ts.map +1 -0
  140. package/dist/integrations/agent-profiles/profiles/cline.js +33 -0
  141. package/dist/integrations/agent-profiles/profiles/cline.js.map +1 -0
  142. package/dist/integrations/agent-profiles/profiles/codex.d.ts +2 -0
  143. package/dist/integrations/agent-profiles/profiles/codex.d.ts.map +1 -0
  144. package/dist/integrations/agent-profiles/profiles/codex.js +22 -0
  145. package/dist/integrations/agent-profiles/profiles/codex.js.map +1 -0
  146. package/dist/integrations/agent-profiles/profiles/continue.d.ts +2 -0
  147. package/dist/integrations/agent-profiles/profiles/continue.d.ts.map +1 -0
  148. package/dist/integrations/agent-profiles/profiles/continue.js +23 -0
  149. package/dist/integrations/agent-profiles/profiles/continue.js.map +1 -0
  150. package/dist/integrations/agent-profiles/profiles/cursor.d.ts +2 -0
  151. package/dist/integrations/agent-profiles/profiles/cursor.d.ts.map +1 -0
  152. package/dist/integrations/agent-profiles/profiles/cursor.js +28 -0
  153. package/dist/integrations/agent-profiles/profiles/cursor.js.map +1 -0
  154. package/dist/integrations/agent-profiles/profiles/gemini.d.ts +2 -0
  155. package/dist/integrations/agent-profiles/profiles/gemini.d.ts.map +1 -0
  156. package/dist/integrations/agent-profiles/profiles/gemini.js +30 -0
  157. package/dist/integrations/agent-profiles/profiles/gemini.js.map +1 -0
  158. package/dist/integrations/agent-profiles/profiles/kilocode.d.ts +2 -0
  159. package/dist/integrations/agent-profiles/profiles/kilocode.d.ts.map +1 -0
  160. package/dist/integrations/agent-profiles/profiles/kilocode.js +33 -0
  161. package/dist/integrations/agent-profiles/profiles/kilocode.js.map +1 -0
  162. package/dist/integrations/agent-profiles/profiles/pearai.d.ts +2 -0
  163. package/dist/integrations/agent-profiles/profiles/pearai.d.ts.map +1 -0
  164. package/dist/integrations/agent-profiles/profiles/pearai.js +23 -0
  165. package/dist/integrations/agent-profiles/profiles/pearai.js.map +1 -0
  166. package/dist/integrations/agent-profiles/profiles/qoder.d.ts +2 -0
  167. package/dist/integrations/agent-profiles/profiles/qoder.d.ts.map +1 -0
  168. package/dist/integrations/agent-profiles/profiles/qoder.js +32 -0
  169. package/dist/integrations/agent-profiles/profiles/qoder.js.map +1 -0
  170. package/dist/integrations/agent-profiles/profiles/roo-code.d.ts +2 -0
  171. package/dist/integrations/agent-profiles/profiles/roo-code.d.ts.map +1 -0
  172. package/dist/integrations/agent-profiles/profiles/roo-code.js +33 -0
  173. package/dist/integrations/agent-profiles/profiles/roo-code.js.map +1 -0
  174. package/dist/integrations/agent-profiles/profiles/trae.d.ts +2 -0
  175. package/dist/integrations/agent-profiles/profiles/trae.d.ts.map +1 -0
  176. package/dist/integrations/agent-profiles/profiles/trae.js +42 -0
  177. package/dist/integrations/agent-profiles/profiles/trae.js.map +1 -0
  178. package/dist/integrations/agent-profiles/profiles/vscode.d.ts +2 -0
  179. package/dist/integrations/agent-profiles/profiles/vscode.d.ts.map +1 -0
  180. package/dist/integrations/agent-profiles/profiles/vscode.js +28 -0
  181. package/dist/integrations/agent-profiles/profiles/vscode.js.map +1 -0
  182. package/dist/integrations/agent-profiles/profiles/windsurf.d.ts +2 -0
  183. package/dist/integrations/agent-profiles/profiles/windsurf.d.ts.map +1 -0
  184. package/dist/integrations/agent-profiles/profiles/windsurf.js +21 -0
  185. package/dist/integrations/agent-profiles/profiles/windsurf.js.map +1 -0
  186. package/dist/integrations/agent-profiles/profiles/zed.d.ts +2 -0
  187. package/dist/integrations/agent-profiles/profiles/zed.d.ts.map +1 -0
  188. package/dist/integrations/agent-profiles/profiles/zed.js +26 -0
  189. package/dist/integrations/agent-profiles/profiles/zed.js.map +1 -0
  190. package/dist/integrations/agent-profiles/registry.d.ts +5 -0
  191. package/dist/integrations/agent-profiles/registry.d.ts.map +1 -0
  192. package/dist/integrations/agent-profiles/registry.js +45 -0
  193. package/dist/integrations/agent-profiles/registry.js.map +1 -0
  194. package/dist/integrations/agent-profiles/skills/antigravity.d.ts +2 -0
  195. package/dist/integrations/agent-profiles/skills/antigravity.d.ts.map +1 -0
  196. package/dist/integrations/agent-profiles/skills/antigravity.js +13 -0
  197. package/dist/integrations/agent-profiles/skills/antigravity.js.map +1 -0
  198. package/dist/integrations/agent-profiles/skills/claude-code.d.ts +2 -0
  199. package/dist/integrations/agent-profiles/skills/claude-code.d.ts.map +1 -0
  200. package/dist/integrations/agent-profiles/skills/claude-code.js +13 -0
  201. package/dist/integrations/agent-profiles/skills/claude-code.js.map +1 -0
  202. package/dist/integrations/agent-profiles/skills/codex.d.ts +2 -0
  203. package/dist/integrations/agent-profiles/skills/codex.d.ts.map +1 -0
  204. package/dist/integrations/agent-profiles/skills/codex.js +18 -0
  205. package/dist/integrations/agent-profiles/skills/codex.js.map +1 -0
  206. package/dist/integrations/agent-profiles/skills/cursor.d.ts +2 -0
  207. package/dist/integrations/agent-profiles/skills/cursor.d.ts.map +1 -0
  208. package/dist/integrations/agent-profiles/skills/cursor.js +13 -0
  209. package/dist/integrations/agent-profiles/skills/cursor.js.map +1 -0
  210. package/dist/integrations/agent-profiles/skills/kilocode.d.ts +2 -0
  211. package/dist/integrations/agent-profiles/skills/kilocode.d.ts.map +1 -0
  212. package/dist/integrations/agent-profiles/skills/kilocode.js +13 -0
  213. package/dist/integrations/agent-profiles/skills/kilocode.js.map +1 -0
  214. package/dist/integrations/agent-profiles/skills/qoder.d.ts +2 -0
  215. package/dist/integrations/agent-profiles/skills/qoder.d.ts.map +1 -0
  216. package/dist/integrations/agent-profiles/skills/qoder.js +13 -0
  217. package/dist/integrations/agent-profiles/skills/qoder.js.map +1 -0
  218. package/dist/integrations/agent-profiles/skills/roo-code.d.ts +2 -0
  219. package/dist/integrations/agent-profiles/skills/roo-code.d.ts.map +1 -0
  220. package/dist/integrations/agent-profiles/skills/roo-code.js +13 -0
  221. package/dist/integrations/agent-profiles/skills/roo-code.js.map +1 -0
  222. package/dist/integrations/agent-profiles/types.d.ts +31 -0
  223. package/dist/integrations/agent-profiles/types.d.ts.map +1 -0
  224. package/dist/integrations/agent-profiles/types.js +3 -0
  225. package/dist/integrations/agent-profiles/types.js.map +1 -0
  226. package/dist/integrations/agent-profiles/utils.d.ts +12 -0
  227. package/dist/integrations/agent-profiles/utils.d.ts.map +1 -0
  228. package/dist/integrations/agent-profiles/utils.js +75 -0
  229. package/dist/integrations/agent-profiles/utils.js.map +1 -0
  230. package/dist/integrations/errors.d.ts +28 -0
  231. package/dist/integrations/errors.d.ts.map +1 -0
  232. package/dist/integrations/errors.js +97 -0
  233. package/dist/integrations/errors.js.map +1 -0
  234. package/dist/integrations/skill-health.d.ts +24 -0
  235. package/dist/integrations/skill-health.d.ts.map +1 -0
  236. package/dist/integrations/skill-health.js +111 -0
  237. package/dist/integrations/skill-health.js.map +1 -0
  238. package/dist/integrations/skill-installer.d.ts.map +1 -1
  239. package/dist/integrations/skill-installer.js +5 -8
  240. package/dist/integrations/skill-installer.js.map +1 -1
  241. package/dist/learning/embedding-quality.d.ts +46 -0
  242. package/dist/learning/embedding-quality.d.ts.map +1 -0
  243. package/dist/learning/embedding-quality.js +131 -0
  244. package/dist/learning/embedding-quality.js.map +1 -0
  245. package/dist/learning/embeddings.d.ts +45 -1
  246. package/dist/learning/embeddings.d.ts.map +1 -1
  247. package/dist/learning/embeddings.js +180 -5
  248. package/dist/learning/embeddings.js.map +1 -1
  249. package/dist/learning/skill-flywheel.d.ts +1 -1
  250. package/dist/learning/skill-flywheel.d.ts.map +1 -1
  251. package/dist/learning/skill-flywheel.js +10 -3
  252. package/dist/learning/skill-flywheel.js.map +1 -1
  253. package/dist/routing/deepseek-tools.d.ts +7 -0
  254. package/dist/routing/deepseek-tools.d.ts.map +1 -0
  255. package/dist/routing/deepseek-tools.js +154 -0
  256. package/dist/routing/deepseek-tools.js.map +1 -0
  257. package/dist/routing/model-router.d.ts +1 -1
  258. package/dist/routing/model-router.d.ts.map +1 -1
  259. package/dist/routing/model-router.js +5 -1
  260. package/dist/routing/model-router.js.map +1 -1
  261. package/dist/routing/provider-adapters/anthropic.d.ts.map +1 -1
  262. package/dist/routing/provider-adapters/anthropic.js +7 -4
  263. package/dist/routing/provider-adapters/anthropic.js.map +1 -1
  264. package/dist/routing/provider-adapters/bailian.d.ts.map +1 -1
  265. package/dist/routing/provider-adapters/bailian.js +7 -4
  266. package/dist/routing/provider-adapters/bailian.js.map +1 -1
  267. package/dist/routing/provider-adapters/deepseek.d.ts +5 -0
  268. package/dist/routing/provider-adapters/deepseek.d.ts.map +1 -0
  269. package/dist/routing/provider-adapters/deepseek.js +109 -0
  270. package/dist/routing/provider-adapters/deepseek.js.map +1 -0
  271. package/dist/routing/provider-adapters/doubao.d.ts.map +1 -1
  272. package/dist/routing/provider-adapters/doubao.js +7 -4
  273. package/dist/routing/provider-adapters/doubao.js.map +1 -1
  274. package/dist/routing/provider-adapters/openai.d.ts +2 -4
  275. package/dist/routing/provider-adapters/openai.d.ts.map +1 -1
  276. package/dist/routing/provider-adapters/openai.js +23 -32
  277. package/dist/routing/provider-adapters/openai.js.map +1 -1
  278. package/dist/routing/provider-adapters/types.d.ts +61 -0
  279. package/dist/routing/provider-adapters/types.d.ts.map +1 -0
  280. package/dist/routing/provider-adapters/types.js +56 -0
  281. package/dist/routing/provider-adapters/types.js.map +1 -0
  282. package/dist/routing/provider-executor.d.ts +6 -1
  283. package/dist/routing/provider-executor.d.ts.map +1 -1
  284. package/dist/routing/provider-executor.js +70 -39
  285. package/dist/routing/provider-executor.js.map +1 -1
  286. package/dist/routing/provider-health.d.ts.map +1 -1
  287. package/dist/routing/provider-health.js +7 -1
  288. package/dist/routing/provider-health.js.map +1 -1
  289. package/dist/routing/role-capabilities.d.ts +11 -0
  290. package/dist/routing/role-capabilities.d.ts.map +1 -0
  291. package/dist/routing/role-capabilities.js +94 -0
  292. package/dist/routing/role-capabilities.js.map +1 -0
  293. package/dist/surfaces/antigravity-rules/graphflow.md +3 -2
  294. package/dist/surfaces/cli/runtime/env.d.ts.map +1 -1
  295. package/dist/surfaces/cli/runtime/env.js +3 -0
  296. package/dist/surfaces/cli/runtime/env.js.map +1 -1
  297. package/dist/surfaces/cli/runtime/facade.d.ts +2 -1
  298. package/dist/surfaces/cli/runtime/facade.d.ts.map +1 -1
  299. package/dist/surfaces/cli/runtime/facade.js +1 -0
  300. package/dist/surfaces/cli/runtime/facade.js.map +1 -1
  301. package/dist/surfaces/cli/runtime/graph.d.ts.map +1 -1
  302. package/dist/surfaces/cli/runtime/graph.js +18 -2
  303. package/dist/surfaces/cli/runtime/graph.js.map +1 -1
  304. package/dist/surfaces/cli/runtime/routing.d.ts +3 -0
  305. package/dist/surfaces/cli/runtime/routing.d.ts.map +1 -1
  306. package/dist/surfaces/cli/runtime/routing.js +34 -6
  307. package/dist/surfaces/cli/runtime/routing.js.map +1 -1
  308. package/dist/surfaces/cli/runtime/types.d.ts +24 -1
  309. package/dist/surfaces/cli/runtime/types.d.ts.map +1 -1
  310. package/dist/surfaces/cli/runtime.d.ts +1 -1
  311. package/dist/surfaces/cli/runtime.d.ts.map +1 -1
  312. package/dist/surfaces/cli/runtime.js +2 -1
  313. package/dist/surfaces/cli/runtime.js.map +1 -1
  314. package/dist/surfaces/copilot-instructions/graphflow.md +3 -2
  315. package/dist/surfaces/cursor-rules/graphflow.mdc +3 -2
  316. package/dist/surfaces/mcp/server.js +17 -6
  317. package/dist/surfaces/mcp/server.js.map +1 -1
  318. package/dist/surfaces/mcp/tool-definitions.d.ts.map +1 -1
  319. package/dist/surfaces/mcp/tool-definitions.js +1 -1
  320. package/dist/surfaces/mcp/tool-definitions.js.map +1 -1
  321. package/dist/surfaces/mcp/tool-handlers.d.ts.map +1 -1
  322. package/dist/surfaces/mcp/tool-handlers.js +2 -0
  323. package/dist/surfaces/mcp/tool-handlers.js.map +1 -1
  324. package/dist/surfaces/trae-rules/graphflow.md +3 -2
  325. package/dist/surfaces/trae-skill/graphflow/SKILL.md +2 -0
  326. package/package.json +1 -1
  327. package/scripts/safe-postinstall.cjs +1 -0
  328. package/src/surfaces/antigravity-rules/graphflow.md +3 -2
  329. package/src/surfaces/copilot-instructions/graphflow.md +3 -2
  330. package/src/surfaces/cursor-rules/graphflow.mdc +3 -2
  331. package/src/surfaces/trae-rules/graphflow.md +3 -2
  332. package/src/surfaces/trae-skill/graphflow/SKILL.md +2 -0
@@ -19,8 +19,9 @@ Before code exploration, implementation, debugging, review, planning, or archite
19
19
  Code symbols are mostly English. For Chinese user questions:
20
20
 
21
21
  1. **Proactive:** Translate intent to English **file/class/component names** and pass **`englishQuery`** (e.g. `PoseDetectionPage`, `BattlePage`, `shieldEffect`). Avoid generic `exercise` when the user means UI/camera.
22
- 2. **Reactive:** If preview returns `agentWorkItems` with `query-translate-en`, answer the JSON prompt, then retry with `englishQuery`.
23
- 3. Keep `query` as the original Chinese text.
22
+ 2. **Module families (store/slices):** Prefer file stems (`useGameStore companionSlice dailySlice`), not bare domain words like `monster` (often hits `data/monsters` instead of `monsterSlice`).
23
+ 3. **Reactive:** If preview returns `agentWorkItems` with `query-translate-en`, answer the JSON prompt, then retry with `englishQuery`.
24
+ 4. Keep `query` as the original Chinese text.
24
25
 
25
26
  ```typescript
26
27
  graphflow_context({
@@ -46,8 +46,9 @@ Do **not** hardcode `GRAPHFLOW_WORKSPACE_ROOT` — let the MCP server detect the
46
46
  Code symbols are mostly English. For Chinese user questions:
47
47
 
48
48
  1. **Proactive:** Before or with `graphflow_context`, translate intent to English **file/class/component names** (e.g. `PoseDetectionPage`, `BattlePage`, `shieldEffect`) and pass `englishQuery`. Avoid generic terms like `exercise` when the user means UI/camera — they often match data/types layers.
49
- 2. **Reactive:** If preview returns `agentWorkItems` with `query-translate-en` (low `anchorCount`), answer the JSON prompt with your model, then retry preview with `englishQuery`.
50
- 3. Keep `query` as the original Chinese text; use `englishQuery` for search terms only.
49
+ 2. **Module families (store/slices):** Prefer file stems (`useGameStore companionSlice dailySlice inventorySlice`), not bare domain words like `monster` (often hits `data/monsters` instead of `monsterSlice`).
50
+ 3. **Reactive:** If preview returns `agentWorkItems` with `query-translate-en` (low `anchorCount`), answer the JSON prompt with your model, then retry preview with `englishQuery`.
51
+ 4. Keep `query` as the original Chinese text; use `englishQuery` for search terms only.
51
52
 
52
53
  ## High-frequency MCP tools
53
54
 
@@ -32,8 +32,9 @@ Do not scan the whole repository, recursively inspect many files, or read large
32
32
  Code symbols are mostly English. For Chinese user questions:
33
33
 
34
34
  1. **Proactive:** Before or with `graphflow_context`, translate intent to English **file/class/component names** (e.g. `PoseDetectionPage`, `BattlePage`, `shieldEffect`) and pass `englishQuery`. Avoid generic terms like `exercise` when the user means UI/camera — they often match data/types layers.
35
- 2. **Reactive:** If preview returns `agentWorkItems` with `query-translate-en` (low `anchorCount`), answer the JSON prompt with your model, then retry preview with `englishQuery`.
36
- 3. Keep `query` as the original Chinese text; use `englishQuery` for search terms only.
35
+ 2. **Module families (store/slices):** Prefer file stems (`useGameStore companionSlice dailySlice inventorySlice`), not bare domain words like `monster` (often hits `data/monsters` instead of `monsterSlice`).
36
+ 3. **Reactive:** If preview returns `agentWorkItems` with `query-translate-en` (low `anchorCount`), answer the JSON prompt with your model, then retry preview with `englishQuery`.
37
+ 4. Keep `query` as the original Chinese text; use `englishQuery` for search terms only.
37
38
 
38
39
  ```typescript
39
40
  graphflow_context({
@@ -26,8 +26,9 @@ Before code exploration, implementation, debugging, review, planning, or archite
26
26
  Code symbols are mostly English. For Chinese user questions:
27
27
 
28
28
  1. **Proactive:** Translate intent to English **file/class/component names** and pass **`englishQuery`** (e.g. `PoseDetectionPage`, `BattlePage`, `shieldEffect`). Avoid generic `exercise` when the user means UI/camera.
29
- 2. **Reactive:** If preview returns `agentWorkItems` with `query-translate-en`, answer the JSON prompt, then retry with `englishQuery`.
30
- 3. Keep `query` as the original Chinese text.
29
+ 2. **Module families (store/slices):** Prefer file stems (`useGameStore companionSlice dailySlice`), not bare domain words like `monster` (often hits `data/monsters` instead of `monsterSlice`).
30
+ 3. **Reactive:** If preview returns `agentWorkItems` with `query-translate-en`, answer the JSON prompt, then retry with `englishQuery`.
31
+ 4. Keep `query` as the original Chinese text.
31
32
 
32
33
  ```typescript
33
34
  graphflow_context({
@@ -193,6 +193,8 @@ Step 3: Use summary + anchors
193
193
 
194
194
  Use **exact file/class/component names** (PascalCase stems). Avoid generic words like `exercise` when the user means camera/pose UI — that word often hits data/types layers instead of pages.
195
195
 
196
+ For **module families** (Zustand store + `slices/`): put file stems in `englishQuery` (`useGameStore companionSlice dailySlice inventorySlice`), not bare domain words like `monster` (often ranks `data/monsters` over `monsterSlice`).
197
+
196
198
  **Fallback:** If `anchorCount < 3` and `agentWorkItems` includes `query-translate-en`, answer JSON prompt and retry with `englishQuery`.
197
199
 
198
200
  ---