@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
@@ -0,0 +1,31 @@
1
+ export type McpServersKey = "mcpServers" | "servers" | "context_servers";
2
+ export type McpConfigFormat = "json" | "codex-toml";
3
+ export interface McpServerTarget {
4
+ configPath: string;
5
+ serversKey: McpServersKey;
6
+ configFormat?: McpConfigFormat;
7
+ }
8
+ export interface WorkspaceServerTarget {
9
+ relativePath: string;
10
+ serversKey: McpServersKey;
11
+ configFormat?: McpConfigFormat;
12
+ }
13
+ export interface AgentProfile {
14
+ id: string;
15
+ name: string;
16
+ markerPaths: string[];
17
+ userTargets: McpServerTarget[];
18
+ workspaceRelativePaths?: WorkspaceServerTarget[];
19
+ }
20
+ export interface AgentSkillTarget {
21
+ agent: string;
22
+ markerDir: string;
23
+ skillsRoot: string;
24
+ }
25
+ export interface ProfileRegistry {
26
+ registerProfile(profile: AgentProfile): void;
27
+ registerSkillTarget(target: AgentSkillTarget): void;
28
+ getProfiles(): AgentProfile[];
29
+ getSkillTargets(): AgentSkillTarget[];
30
+ }
31
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/integrations/agent-profiles/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,SAAS,GAAG,iBAAiB,CAAC;AAEzE,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,YAAY,CAAC;AAEpD,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,aAAa,CAAC;IAC1B,YAAY,CAAC,EAAE,eAAe,CAAC;CAChC;AAED,MAAM,WAAW,qBAAqB;IACpC,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,aAAa,CAAC;IAC1B,YAAY,CAAC,EAAE,eAAe,CAAC;CAChC;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,WAAW,EAAE,eAAe,EAAE,CAAC;IAC/B,sBAAsB,CAAC,EAAE,qBAAqB,EAAE,CAAC;CAClD;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,eAAe;IAC9B,eAAe,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI,CAAC;IAC7C,mBAAmB,CAAC,MAAM,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACpD,WAAW,IAAI,YAAY,EAAE,CAAC;IAC9B,eAAe,IAAI,gBAAgB,EAAE,CAAC;CACvC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/integrations/agent-profiles/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ import { join } from "node:path";
2
+ export declare function isWindows(): boolean;
3
+ export declare function isWsl(): boolean;
4
+ export declare function getWindowsHomeFromWsl(): string | undefined;
5
+ export declare function resolveHomePaths(): {
6
+ home: string;
7
+ appData: string;
8
+ localAppData: string;
9
+ wslWindowsHome: string | undefined;
10
+ };
11
+ export { join };
12
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/integrations/agent-profiles/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,wBAAgB,SAAS,IAAI,OAAO,CAEnC;AAED,wBAAgB,KAAK,IAAI,OAAO,CAuB/B;AAED,wBAAgB,qBAAqB,IAAI,MAAM,GAAG,SAAS,CAiB1D;AAED,wBAAgB,gBAAgB,IAAI;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;CACpC,CAeA;AAED,OAAO,EAAE,IAAI,EAAE,CAAC"}
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.join = void 0;
4
+ exports.isWindows = isWindows;
5
+ exports.isWsl = isWsl;
6
+ exports.getWindowsHomeFromWsl = getWindowsHomeFromWsl;
7
+ exports.resolveHomePaths = resolveHomePaths;
8
+ const node_os_1 = require("node:os");
9
+ const node_fs_1 = require("node:fs");
10
+ const node_path_1 = require("node:path");
11
+ Object.defineProperty(exports, "join", { enumerable: true, get: function () { return node_path_1.join; } });
12
+ function isWindows() {
13
+ return process.platform === "win32";
14
+ }
15
+ function isWsl() {
16
+ if (process.platform !== "linux") {
17
+ return false;
18
+ }
19
+ try {
20
+ const rel = (0, node_os_1.release)() ?? "";
21
+ if (rel.toLowerCase().includes("microsoft") || rel.toLowerCase().includes("wsl")) {
22
+ return true;
23
+ }
24
+ }
25
+ catch {
26
+ // ignore
27
+ }
28
+ try {
29
+ if ((0, node_fs_1.existsSync)("/proc/version")) {
30
+ const content = (0, node_fs_1.readFileSync)("/proc/version", "utf8").toLowerCase();
31
+ if (content.includes("microsoft") || content.includes("wsl")) {
32
+ return true;
33
+ }
34
+ }
35
+ }
36
+ catch {
37
+ // ignore
38
+ }
39
+ return false;
40
+ }
41
+ function getWindowsHomeFromWsl() {
42
+ try {
43
+ const cmd = "wslpath -w ~";
44
+ const result = (0, node_fs_1.readFileSync)("/proc/version", "utf8").toLowerCase();
45
+ if (result.includes("microsoft")) {
46
+ const wslHome = require("child_process").execSync(cmd, { encoding: "utf8" }).trim();
47
+ if (wslHome.startsWith("/mnt/")) {
48
+ const winPath = wslHome.replace("/mnt/", "").replace(/\//g, "\\");
49
+ if (winPath.length > 1 && winPath[1] === ":") {
50
+ return winPath;
51
+ }
52
+ }
53
+ }
54
+ }
55
+ catch {
56
+ // ignore
57
+ }
58
+ return undefined;
59
+ }
60
+ function resolveHomePaths() {
61
+ const home = (0, node_os_1.homedir)();
62
+ const wslWindowsHome = isWsl() ? getWindowsHomeFromWsl() : undefined;
63
+ let appData;
64
+ let localAppData;
65
+ if (isWindows()) {
66
+ appData = process.env.APPDATA ?? (0, node_path_1.join)(home, "AppData", "Roaming");
67
+ localAppData = process.env.LOCALAPPDATA ?? (0, node_path_1.join)(home, "AppData", "Local");
68
+ }
69
+ else {
70
+ appData = (0, node_path_1.join)(home, ".config");
71
+ localAppData = (0, node_path_1.join)(home, ".local", "share");
72
+ }
73
+ return { home, appData, localAppData, wslWindowsHome };
74
+ }
75
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/integrations/agent-profiles/utils.ts"],"names":[],"mappings":";;;AAIA,8BAEC;AAED,sBAuBC;AAED,sDAiBC;AAED,4CAoBC;AAxED,qCAA2C;AAC3C,qCAAmD;AACnD,yCAAiC;AAwExB,qFAxEA,gBAAI,OAwEA;AAtEb,SAAgB,SAAS;IACvB,OAAO,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAC;AACtC,CAAC;AAED,SAAgB,KAAK;IACnB,IAAI,OAAO,CAAC,QAAQ,KAAK,OAAO,EAAE,CAAC;QACjC,OAAO,KAAK,CAAC;IACf,CAAC;IACD,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,IAAA,iBAAO,GAAE,IAAI,EAAE,CAAC;QAC5B,IAAI,GAAG,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,GAAG,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;YACjF,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IAAC,MAAM,CAAC;QACP,SAAS;IACX,CAAC;IACD,IAAI,CAAC;QACH,IAAI,IAAA,oBAAU,EAAC,eAAe,CAAC,EAAE,CAAC;YAChC,MAAM,OAAO,GAAG,IAAA,sBAAY,EAAC,eAAe,EAAE,MAAM,CAAC,CAAC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OAAe,CAAC;IACpB,IAAI,YAAoB,CAAC;IAEzB,IAAI,SAAS,EAAE,EAAE,CAAC;QAChB,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,OAAO,IAAI,IAAA,gBAAI,EAAC,IAAI,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;QAClE,YAAY,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,IAAI,IAAA,gBAAI,EAAC,IAAI,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;SAAM,CAAC;QACN,OAAO,GAAG,IAAA,gBAAI,EAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QAChC,YAAY,GAAG,IAAA,gBAAI,EAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC/C,CAAC;IAED,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC;AACzD,CAAC"}
@@ -0,0 +1,28 @@
1
+ export type ErrorCode = "MCP_INSTALL_FAILED" | "MCP_CONFIG_READ_FAILED" | "MCP_CONFIG_WRITE_FAILED" | "SKILL_INSTALL_FAILED" | "SKILL_READ_FAILED" | "SKILL_VALIDATION_FAILED" | "GRAPH_INDEX_FAILED" | "GRAPH_READ_FAILED" | "GRAPH_WRITE_FAILED" | "CONTEXT_QUERY_FAILED" | "CONTEXT_EXPAND_FAILED" | "PLAN_FAILED" | "RUN_FAILED" | "PROVIDER_CONFIG_ERROR" | "PROVIDER_TIMEOUT" | "PROVIDER_UNAVAILABLE" | "CONFIG_PARSE_ERROR" | "PATH_RESOLVE_ERROR" | "PERMISSION_DENIED" | "CANCELLED" | "INTERNAL_ERROR";
2
+ export interface GraphFlowErrorOptions {
3
+ code: ErrorCode;
4
+ message: string;
5
+ cause?: Error | undefined;
6
+ details?: Record<string, unknown> | undefined;
7
+ }
8
+ export declare class GraphFlowError extends Error {
9
+ readonly code: ErrorCode;
10
+ readonly details: Record<string, unknown> | undefined;
11
+ constructor(options: GraphFlowErrorOptions);
12
+ toJSON(): Record<string, unknown>;
13
+ toString(): string;
14
+ }
15
+ export interface ErrorResult<T = unknown> {
16
+ ok: boolean;
17
+ error?: GraphFlowError;
18
+ data?: T;
19
+ }
20
+ export declare function ok<T>(data: T): ErrorResult<T>;
21
+ export declare function err<T = unknown>(error: GraphFlowError): ErrorResult<T>;
22
+ export declare function errCode<T = unknown>(code: ErrorCode, message: string, details?: Record<string, unknown>, cause?: Error): ErrorResult<T>;
23
+ export declare function isGraphFlowError(error: unknown): error is GraphFlowError;
24
+ export declare function wrapError<T = unknown>(code: ErrorCode, message: string, error: unknown): ErrorResult<T>;
25
+ export declare function catchToResult<T>(fn: () => T): ErrorResult<T>;
26
+ export declare function catchToResultAsync<T>(fn: () => Promise<T>): Promise<ErrorResult<T>>;
27
+ export declare const errorMessages: Record<ErrorCode, string>;
28
+ //# sourceMappingURL=errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/integrations/errors.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GACjB,oBAAoB,GACpB,wBAAwB,GACxB,yBAAyB,GACzB,sBAAsB,GACtB,mBAAmB,GACnB,yBAAyB,GACzB,oBAAoB,GACpB,mBAAmB,GACnB,oBAAoB,GACpB,sBAAsB,GACtB,uBAAuB,GACvB,aAAa,GACb,YAAY,GACZ,uBAAuB,GACvB,kBAAkB,GAClB,sBAAsB,GACtB,oBAAoB,GACpB,oBAAoB,GACpB,mBAAmB,GACnB,WAAW,GACX,gBAAgB,CAAC;AAErB,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,SAAS,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,KAAK,GAAG,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;CAC/C;AAED,qBAAa,cAAe,SAAQ,KAAK;IACvC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,WAAW,CAAC,CAAC,CAAC,CAAC,CAMzF;AAED,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAsBnD,CAAC"}
@@ -0,0 +1,97 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.errorMessages = exports.GraphFlowError = void 0;
4
+ exports.ok = ok;
5
+ exports.err = err;
6
+ exports.errCode = errCode;
7
+ exports.isGraphFlowError = isGraphFlowError;
8
+ exports.wrapError = wrapError;
9
+ exports.catchToResult = catchToResult;
10
+ exports.catchToResultAsync = catchToResultAsync;
11
+ class GraphFlowError extends Error {
12
+ code;
13
+ details;
14
+ constructor(options) {
15
+ super(options.message);
16
+ this.name = "GraphFlowError";
17
+ this.code = options.code;
18
+ this.details = options.details;
19
+ if (options.cause) {
20
+ this.cause = options.cause;
21
+ }
22
+ }
23
+ toJSON() {
24
+ return {
25
+ name: this.name,
26
+ code: this.code,
27
+ message: this.message,
28
+ details: this.details,
29
+ stack: this.stack,
30
+ };
31
+ }
32
+ toString() {
33
+ return `[${this.code}] ${this.message}`;
34
+ }
35
+ }
36
+ exports.GraphFlowError = GraphFlowError;
37
+ function ok(data) {
38
+ return { ok: true, data };
39
+ }
40
+ function err(error) {
41
+ return { ok: false, error };
42
+ }
43
+ function errCode(code, message, details, cause) {
44
+ return {
45
+ ok: false,
46
+ error: new GraphFlowError({ code, message, details, cause }),
47
+ };
48
+ }
49
+ function isGraphFlowError(error) {
50
+ return error instanceof GraphFlowError;
51
+ }
52
+ function wrapError(code, message, error) {
53
+ if (isGraphFlowError(error)) {
54
+ return err(error);
55
+ }
56
+ return errCode(code, `${message}: ${String(error)}`, undefined, error);
57
+ }
58
+ function catchToResult(fn) {
59
+ try {
60
+ return ok(fn());
61
+ }
62
+ catch (error) {
63
+ return wrapError("INTERNAL_ERROR", "Unexpected error", error);
64
+ }
65
+ }
66
+ async function catchToResultAsync(fn) {
67
+ try {
68
+ return ok(await fn());
69
+ }
70
+ catch (error) {
71
+ return wrapError("INTERNAL_ERROR", "Unexpected error", error);
72
+ }
73
+ }
74
+ exports.errorMessages = {
75
+ MCP_INSTALL_FAILED: "MCP server installation failed",
76
+ MCP_CONFIG_READ_FAILED: "Failed to read MCP configuration",
77
+ MCP_CONFIG_WRITE_FAILED: "Failed to write MCP configuration",
78
+ SKILL_INSTALL_FAILED: "Skill installation failed",
79
+ SKILL_READ_FAILED: "Failed to read skill file",
80
+ SKILL_VALIDATION_FAILED: "Skill file validation failed",
81
+ GRAPH_INDEX_FAILED: "Graph indexing failed",
82
+ GRAPH_READ_FAILED: "Failed to read from graph",
83
+ GRAPH_WRITE_FAILED: "Failed to write to graph",
84
+ CONTEXT_QUERY_FAILED: "Context query failed",
85
+ CONTEXT_EXPAND_FAILED: "Context expand failed",
86
+ PLAN_FAILED: "Task planning failed",
87
+ RUN_FAILED: "Task execution failed",
88
+ PROVIDER_CONFIG_ERROR: "Provider configuration error",
89
+ PROVIDER_TIMEOUT: "Provider request timed out",
90
+ PROVIDER_UNAVAILABLE: "Provider is unavailable",
91
+ CONFIG_PARSE_ERROR: "Configuration parsing error",
92
+ PATH_RESOLVE_ERROR: "Path resolution error",
93
+ PERMISSION_DENIED: "Permission denied",
94
+ CANCELLED: "Operation cancelled",
95
+ INTERNAL_ERROR: "Internal error",
96
+ };
97
+ //# sourceMappingURL=errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/integrations/errors.ts"],"names":[],"mappings":";;;AAiEA,gBAEC;AAED,kBAEC;AAED,0BAUC;AAED,4CAEC;AAED,8BASC;AAED,sCAMC;AAED,gDAMC;AApFD,MAAa,cAAe,SAAQ,KAAK;IAC9B,IAAI,CAAY;IAChB,OAAO,CAAsC;IAEtD,YAAY,OAA8B;QACxC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACvB,IAAI,CAAC,IAAI,GAAG,gBAAgB,CAAC;QAC7B,IAAI,CAAC,IAAI,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ACjC,CAAC"}
@@ -0,0 +1,24 @@
1
+ export interface SkillHealthCheck {
2
+ agent: string;
3
+ markerDir: string;
4
+ skillsRoot: string;
5
+ skillPath: string;
6
+ exists: boolean;
7
+ size: number;
8
+ hasFrontmatter: boolean;
9
+ hasName: boolean;
10
+ hasDescription: boolean;
11
+ isValid: boolean;
12
+ issues: string[];
13
+ }
14
+ export interface SkillHealthSummary {
15
+ total: number;
16
+ valid: number;
17
+ invalid: number;
18
+ missing: number;
19
+ checks: SkillHealthCheck[];
20
+ }
21
+ export declare function checkSkillHealth(workspaceRoot?: string): SkillHealthSummary;
22
+ export declare function getSkillHealthReport(workspaceRoot?: string): string;
23
+ export declare function isAnySkillValid(workspaceRoot?: string): boolean;
24
+ //# sourceMappingURL=skill-health.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skill-health.d.ts","sourceRoot":"","sources":["../../src/integrations/skill-health.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,OAAO,CAAC;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,EAAE,OAAO,CAAC;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,gBAAgB,EAAE,CAAC;CAC5B;AAiDD,wBAAgB,gBAAgB,CAAC,aAAa,CAAC,EAAE,MAAM,GAAG,kBAAkB,CAyC3E;AAED,wBAAgB,oBAAoB,CAAC,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,CA0BnE;AAED,wBAAgB,eAAe,CAAC,aAAa,CAAC,EAAE,MAAM,GAAG,OAAO,CAG/D"}
@@ -0,0 +1,111 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.checkSkillHealth = checkSkillHealth;
4
+ exports.getSkillHealthReport = getSkillHealthReport;
5
+ exports.isAnySkillValid = isAnySkillValid;
6
+ const node_fs_1 = require("node:fs");
7
+ const node_path_1 = require("node:path");
8
+ const registry_1 = require("./agent-profiles/registry");
9
+ function checkSkillFile(path) {
10
+ if (!(0, node_fs_1.existsSync)(path)) {
11
+ return {
12
+ exists: false,
13
+ size: 0,
14
+ hasFrontmatter: false,
15
+ hasName: false,
16
+ hasDescription: false,
17
+ isValid: false,
18
+ issues: ["Skill file does not exist"],
19
+ };
20
+ }
21
+ const content = (0, node_fs_1.readFileSync)(path, "utf8");
22
+ const size = content.length;
23
+ const issues = [];
24
+ const hasFrontmatter = /^---\s*\n/.test(content);
25
+ if (!hasFrontmatter) {
26
+ issues.push("Missing YAML frontmatter");
27
+ }
28
+ const hasName = /^---\s*\n[\s\S]*?name:\s*.+?\s*\n/.test(content);
29
+ if (!hasName) {
30
+ issues.push("Missing 'name' in frontmatter");
31
+ }
32
+ const hasDescription = /^---\s*\n[\s\S]*?description:\s*.+?\s*\n/.test(content);
33
+ if (!hasDescription) {
34
+ issues.push("Missing 'description' in frontmatter");
35
+ }
36
+ if (size < 100) {
37
+ issues.push(`Skill file too small (${size} bytes)`);
38
+ }
39
+ return {
40
+ exists: true,
41
+ size,
42
+ hasFrontmatter,
43
+ hasName,
44
+ hasDescription,
45
+ isValid: issues.length === 0,
46
+ issues,
47
+ };
48
+ }
49
+ function checkSkillHealth(workspaceRoot) {
50
+ const targets = registry_1.profileRegistry.getSkillTargets();
51
+ const checks = [];
52
+ for (const target of targets) {
53
+ const skillPath = (0, node_path_1.join)(target.skillsRoot, "graphflow", "SKILL.md");
54
+ const fileCheck = checkSkillFile(skillPath);
55
+ checks.push({
56
+ agent: target.agent,
57
+ markerDir: target.markerDir,
58
+ skillsRoot: target.skillsRoot,
59
+ skillPath,
60
+ ...fileCheck,
61
+ });
62
+ }
63
+ if (workspaceRoot) {
64
+ const workspaceSkillPath = (0, node_path_1.join)(workspaceRoot, ".graphflow", "skills", "graphflow", "SKILL.md");
65
+ const fileCheck = checkSkillFile(workspaceSkillPath);
66
+ checks.push({
67
+ agent: "Workspace",
68
+ markerDir: workspaceRoot,
69
+ skillsRoot: (0, node_path_1.join)(workspaceRoot, ".graphflow", "skills"),
70
+ skillPath: workspaceSkillPath,
71
+ ...fileCheck,
72
+ });
73
+ }
74
+ const valid = checks.filter((c) => c.isValid).length;
75
+ const invalid = checks.filter((c) => c.exists && !c.isValid).length;
76
+ const missing = checks.filter((c) => !c.exists).length;
77
+ return {
78
+ total: checks.length,
79
+ valid,
80
+ invalid,
81
+ missing,
82
+ checks,
83
+ };
84
+ }
85
+ function getSkillHealthReport(workspaceRoot) {
86
+ const summary = checkSkillHealth(workspaceRoot);
87
+ const lines = [];
88
+ lines.push(`Skill Health Report`);
89
+ lines.push(`=====================`);
90
+ lines.push(`Total: ${summary.total} | Valid: ${summary.valid} | Invalid: ${summary.invalid} | Missing: ${summary.missing}`);
91
+ lines.push("");
92
+ for (const check of summary.checks) {
93
+ const status = check.isValid ? "✅" : check.exists ? "⚠️" : "❌";
94
+ lines.push(`${status} ${check.agent}`);
95
+ lines.push(` Path: ${check.skillPath}`);
96
+ lines.push(` Exists: ${check.exists} | Size: ${check.size} bytes`);
97
+ if (check.issues.length > 0) {
98
+ lines.push(` Issues:`);
99
+ for (const issue of check.issues) {
100
+ lines.push(` - ${issue}`);
101
+ }
102
+ }
103
+ lines.push("");
104
+ }
105
+ return lines.join("\n");
106
+ }
107
+ function isAnySkillValid(workspaceRoot) {
108
+ const summary = checkSkillHealth(workspaceRoot);
109
+ return summary.valid > 0;
110
+ }
111
+ //# sourceMappingURL=skill-health.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skill-health.js","sourceRoot":"","sources":["../../src/integrations/skill-health.ts"],"names":[],"mappings":";;AAyEA,4CAyCC;AAED,oDA0BC;AAED,0CAGC;AAnJD,qCAAmD;AACnD,yCAAiC;AACjC,wDAA4D;AAwB5D,SAAS,cAAc,CAAC,IAAY;IAClC,IAAI,CAAC,IAAA,oBAAU,EAAC,IAAI,CAAC,EAAE,CAAC;QACtB,OAAO;YACL,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,CAAC;YACP,cAAc,EAAE,KAAK;YACrB,OAAO,EAAE,KAAK;YACd,cAAc,EAAE,KAAK;YACrB,OAAO,EAAE,KAAK;YACd,MAAM,EAAE,CAAC,2BAA2B,CAAC;SACtC,CAAC;IACJ,CAAC;IAED,MAAM,OAAO,GAAG,IAAA,sBAAY,EAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IAC3C,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC;IAC5B,MAAM,MAAM,GAAa,EAAE,CAAC;IAE5B,MAAM,cAAc,GAAG,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACjD,IAAI,CAAC,cAAc,EAAE,CAAC;QACpB,MAAM,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC;IAC1C,CAAC;IAED,MAAM,OAAO,GAAG,mCAAmC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAClE,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,CAAC,IAAI,CAAC,+BAA+B,CAAC,CAAC;IAC/C,CAAC;IAED,MAAM,cAAc,GAAG,0CAA0C,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAChF,IAAI,CAAC,cAAc,EAAE,CAAC;QACpB,MAAM,CAAC,IAAI,CAAC,sCAAsC,CAAC,CAAC;IACtD,CAAC;IAED,IAAI,IAAI,GAAG,GAAG,EAAE,CAAC;QACf,MAAM,CAAC,IAAI,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ACtC,aAAa,EAAE,MAAM,EACrB,iBAAiB,CAAC,EAAE,MAAM,EAC1B,GAAG,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,GAC9B,kBAAkB,EAAE,CA6EtB;AAED;;GAEG;AACH,wBAAgB,gCAAgC,CAAC,aAAa,EAAE,MAAM,GAAG,kBAAkB,EAAE,CAK5F;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAC9B,iBAAiB,CAAC,EAAE,MAAM,EAC1B,GAAG,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,EAC/B,aAAa,CAAC,EAAE,MAAM,GACrB,mBAAmB,CA+ErB;AAID,mCAAmC;AACnC,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAiB5D;AAED,sCAAsC;AACtC,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,SAAc,GAAG,OAAO,CAYrF"}
@@ -520,49 +520,46 @@ function getProjectLevelRuleTargets(workspaceRoot) {
520
520
  function getAgentSkillTargets() {
521
521
  const { home } = resolveHomePaths();
522
522
  return [
523
- // Cursor 用户级 Skill(~/.cursor/skills/graphflow/SKILL.md)
524
523
  {
525
524
  agent: "Cursor",
526
525
  markerDir: (0, node_path_1.join)(home, ".cursor"),
527
526
  skillsRoot: (0, node_path_1.join)(home, ".cursor", "skills"),
528
527
  },
529
- // Claude Code 用户级 Skill(~/.claude/skills/graphflow/SKILL.md)
530
528
  {
531
529
  agent: "Claude Code",
532
530
  markerDir: (0, node_path_1.join)(home, ".claude"),
533
531
  skillsRoot: (0, node_path_1.join)(home, ".claude", "skills"),
534
532
  },
535
- // Codex 用户级 Skill — 同时写入两个路径确保兼容
536
- // ~/.codex/skills/graphflow/SKILL.md(旧路径,部分版本兼容)
537
533
  {
538
534
  agent: "Codex",
539
535
  markerDir: (0, node_path_1.join)(home, ".codex"),
540
536
  skillsRoot: (0, node_path_1.join)(home, ".codex", "skills"),
541
537
  },
542
- // ~/.agents/skills/graphflow/SKILL.md(Agent Skills 标准路径)
543
538
  {
544
539
  agent: "Codex (agents)",
545
540
  markerDir: (0, node_path_1.join)(home, ".codex"),
546
541
  skillsRoot: (0, node_path_1.join)(home, ".agents", "skills"),
547
542
  },
548
- // Roo Code 用户级 Skill(~/.roo/skills/graphflow/SKILL.md)
549
543
  {
550
544
  agent: "Roo Code",
551
545
  markerDir: (0, node_path_1.join)(home, ".roo"),
552
546
  skillsRoot: (0, node_path_1.join)(home, ".roo", "skills"),
553
547
  },
554
- // Kilo Code 用户级 Skill(~/.kilocode/skills/graphflow/SKILL.md)
555
548
  {
556
549
  agent: "Kilo Code",
557
550
  markerDir: (0, node_path_1.join)(home, ".kilocode"),
558
551
  skillsRoot: (0, node_path_1.join)(home, ".kilocode", "skills"),
559
552
  },
560
- // Antigravity 全局 Skill(~/.gemini/antigravity/skills/graphflow/SKILL.md)
561
553
  {
562
554
  agent: "Antigravity",
563
555
  markerDir: (0, node_path_1.join)(home, ".gemini", "antigravity"),
564
556
  skillsRoot: (0, node_path_1.join)(home, ".gemini", "antigravity", "skills"),
565
557
  },
558
+ {
559
+ agent: "Qoder",
560
+ markerDir: (0, node_path_1.join)(home, ".qoder"),
561
+ skillsRoot: (0, node_path_1.join)(home, ".qoder", "skills"),
562
+ },
566
563
  ];
567
564
  }
568
565
  /**