@mycodemap/mycodemap 0.1.0

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 (329) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/LICENSE +21 -0
  3. package/README.md +559 -0
  4. package/dist/ai/claude.d.ts +38 -0
  5. package/dist/ai/claude.d.ts.map +1 -0
  6. package/dist/ai/claude.js +169 -0
  7. package/dist/ai/claude.js.map +1 -0
  8. package/dist/ai/codex.d.ts +38 -0
  9. package/dist/ai/codex.d.ts.map +1 -0
  10. package/dist/ai/codex.js +169 -0
  11. package/dist/ai/codex.js.map +1 -0
  12. package/dist/ai/factory.d.ts +48 -0
  13. package/dist/ai/factory.d.ts.map +1 -0
  14. package/dist/ai/factory.js +95 -0
  15. package/dist/ai/factory.js.map +1 -0
  16. package/dist/ai/index.d.ts +12 -0
  17. package/dist/ai/index.d.ts.map +1 -0
  18. package/dist/ai/index.js +29 -0
  19. package/dist/ai/index.js.map +1 -0
  20. package/dist/ai/provider.d.ts +70 -0
  21. package/dist/ai/provider.d.ts.map +1 -0
  22. package/dist/ai/provider.js +31 -0
  23. package/dist/ai/provider.js.map +1 -0
  24. package/dist/ai/subagent-caller.d.ts +90 -0
  25. package/dist/ai/subagent-caller.d.ts.map +1 -0
  26. package/dist/ai/subagent-caller.js +280 -0
  27. package/dist/ai/subagent-caller.js.map +1 -0
  28. package/dist/ai/types.d.ts +70 -0
  29. package/dist/ai/types.d.ts.map +1 -0
  30. package/dist/ai/types.js +5 -0
  31. package/dist/ai/types.js.map +1 -0
  32. package/dist/cache/file-hash-cache.d.ts +76 -0
  33. package/dist/cache/file-hash-cache.d.ts.map +1 -0
  34. package/dist/cache/file-hash-cache.js +159 -0
  35. package/dist/cache/file-hash-cache.js.map +1 -0
  36. package/dist/cache/index.d.ts +151 -0
  37. package/dist/cache/index.d.ts.map +1 -0
  38. package/dist/cache/index.js +303 -0
  39. package/dist/cache/index.js.map +1 -0
  40. package/dist/cache/lru-cache.d.ts +93 -0
  41. package/dist/cache/lru-cache.d.ts.map +1 -0
  42. package/dist/cache/lru-cache.js +194 -0
  43. package/dist/cache/lru-cache.js.map +1 -0
  44. package/dist/cache/parse-cache.d.ts +68 -0
  45. package/dist/cache/parse-cache.d.ts.map +1 -0
  46. package/dist/cache/parse-cache.js +173 -0
  47. package/dist/cache/parse-cache.js.map +1 -0
  48. package/dist/cli/commands/analyze.d.ts +96 -0
  49. package/dist/cli/commands/analyze.d.ts.map +1 -0
  50. package/dist/cli/commands/analyze.js +567 -0
  51. package/dist/cli/commands/analyze.js.map +1 -0
  52. package/dist/cli/commands/ci.d.ts +25 -0
  53. package/dist/cli/commands/ci.d.ts.map +1 -0
  54. package/dist/cli/commands/ci.js +481 -0
  55. package/dist/cli/commands/ci.js.map +1 -0
  56. package/dist/cli/commands/complexity.d.ts +70 -0
  57. package/dist/cli/commands/complexity.d.ts.map +1 -0
  58. package/dist/cli/commands/complexity.js +479 -0
  59. package/dist/cli/commands/complexity.js.map +1 -0
  60. package/dist/cli/commands/cycles.d.ts +10 -0
  61. package/dist/cli/commands/cycles.d.ts.map +1 -0
  62. package/dist/cli/commands/cycles.js +202 -0
  63. package/dist/cli/commands/cycles.js.map +1 -0
  64. package/dist/cli/commands/deps.d.ts +61 -0
  65. package/dist/cli/commands/deps.d.ts.map +1 -0
  66. package/dist/cli/commands/deps.js +340 -0
  67. package/dist/cli/commands/deps.js.map +1 -0
  68. package/dist/cli/commands/generate.d.ts +8 -0
  69. package/dist/cli/commands/generate.d.ts.map +1 -0
  70. package/dist/cli/commands/generate.js +61 -0
  71. package/dist/cli/commands/generate.js.map +1 -0
  72. package/dist/cli/commands/impact.d.ts +55 -0
  73. package/dist/cli/commands/impact.d.ts.map +1 -0
  74. package/dist/cli/commands/impact.js +455 -0
  75. package/dist/cli/commands/impact.js.map +1 -0
  76. package/dist/cli/commands/init.d.ts +4 -0
  77. package/dist/cli/commands/init.d.ts.map +1 -0
  78. package/dist/cli/commands/init.js +50 -0
  79. package/dist/cli/commands/init.js.map +1 -0
  80. package/dist/cli/commands/query.d.ts +22 -0
  81. package/dist/cli/commands/query.d.ts.map +1 -0
  82. package/dist/cli/commands/query.js +718 -0
  83. package/dist/cli/commands/query.js.map +1 -0
  84. package/dist/cli/commands/watch-foreground.d.ts +9 -0
  85. package/dist/cli/commands/watch-foreground.d.ts.map +1 -0
  86. package/dist/cli/commands/watch-foreground.js +67 -0
  87. package/dist/cli/commands/watch-foreground.js.map +1 -0
  88. package/dist/cli/commands/watch.d.ts +12 -0
  89. package/dist/cli/commands/watch.d.ts.map +1 -0
  90. package/dist/cli/commands/watch.js +114 -0
  91. package/dist/cli/commands/watch.js.map +1 -0
  92. package/dist/cli/commands/workflow.d.ts +25 -0
  93. package/dist/cli/commands/workflow.d.ts.map +1 -0
  94. package/dist/cli/commands/workflow.js +488 -0
  95. package/dist/cli/commands/workflow.js.map +1 -0
  96. package/dist/cli/index.d.ts +3 -0
  97. package/dist/cli/index.d.ts.map +1 -0
  98. package/dist/cli/index.js +115 -0
  99. package/dist/cli/index.js.map +1 -0
  100. package/dist/cli/paths.d.ts +90 -0
  101. package/dist/cli/paths.d.ts.map +1 -0
  102. package/dist/cli/paths.js +136 -0
  103. package/dist/cli/paths.js.map +1 -0
  104. package/dist/cli/runtime-logger.d.ts +13 -0
  105. package/dist/cli/runtime-logger.d.ts.map +1 -0
  106. package/dist/cli/runtime-logger.js +213 -0
  107. package/dist/cli/runtime-logger.js.map +1 -0
  108. package/dist/core/analyzer.d.ts +3 -0
  109. package/dist/core/analyzer.d.ts.map +1 -0
  110. package/dist/core/analyzer.js +359 -0
  111. package/dist/core/analyzer.js.map +1 -0
  112. package/dist/core/ast-complexity-analyzer.d.ts +40 -0
  113. package/dist/core/ast-complexity-analyzer.d.ts.map +1 -0
  114. package/dist/core/ast-complexity-analyzer.js +279 -0
  115. package/dist/core/ast-complexity-analyzer.js.map +1 -0
  116. package/dist/core/global-index.d.ts +69 -0
  117. package/dist/core/global-index.d.ts.map +1 -0
  118. package/dist/core/global-index.js +388 -0
  119. package/dist/core/global-index.js.map +1 -0
  120. package/dist/generator/ai-overview.d.ts +51 -0
  121. package/dist/generator/ai-overview.d.ts.map +1 -0
  122. package/dist/generator/ai-overview.js +160 -0
  123. package/dist/generator/ai-overview.js.map +1 -0
  124. package/dist/generator/context.d.ts +5 -0
  125. package/dist/generator/context.d.ts.map +1 -0
  126. package/dist/generator/context.js +514 -0
  127. package/dist/generator/context.js.map +1 -0
  128. package/dist/generator/file-describer.d.ts +93 -0
  129. package/dist/generator/file-describer.d.ts.map +1 -0
  130. package/dist/generator/file-describer.js +375 -0
  131. package/dist/generator/file-describer.js.map +1 -0
  132. package/dist/generator/index.d.ts +8 -0
  133. package/dist/generator/index.d.ts.map +1 -0
  134. package/dist/generator/index.js +259 -0
  135. package/dist/generator/index.js.map +1 -0
  136. package/dist/index.d.ts +5 -0
  137. package/dist/index.d.ts.map +1 -0
  138. package/dist/index.js +6 -0
  139. package/dist/index.js.map +1 -0
  140. package/dist/orchestrator/adapters/ast-grep-adapter.d.ts +75 -0
  141. package/dist/orchestrator/adapters/ast-grep-adapter.d.ts.map +1 -0
  142. package/dist/orchestrator/adapters/ast-grep-adapter.js +242 -0
  143. package/dist/orchestrator/adapters/ast-grep-adapter.js.map +1 -0
  144. package/dist/orchestrator/adapters/base-adapter.d.ts +24 -0
  145. package/dist/orchestrator/adapters/base-adapter.d.ts.map +1 -0
  146. package/dist/orchestrator/adapters/base-adapter.js +2 -0
  147. package/dist/orchestrator/adapters/base-adapter.js.map +1 -0
  148. package/dist/orchestrator/adapters/codemap-adapter.d.ts +56 -0
  149. package/dist/orchestrator/adapters/codemap-adapter.d.ts.map +1 -0
  150. package/dist/orchestrator/adapters/codemap-adapter.js +163 -0
  151. package/dist/orchestrator/adapters/codemap-adapter.js.map +1 -0
  152. package/dist/orchestrator/adapters/index.d.ts +10 -0
  153. package/dist/orchestrator/adapters/index.d.ts.map +1 -0
  154. package/dist/orchestrator/adapters/index.js +3 -0
  155. package/dist/orchestrator/adapters/index.js.map +1 -0
  156. package/dist/orchestrator/ai-feed-generator.d.ts +210 -0
  157. package/dist/orchestrator/ai-feed-generator.d.ts.map +1 -0
  158. package/dist/orchestrator/ai-feed-generator.js +377 -0
  159. package/dist/orchestrator/ai-feed-generator.js.map +1 -0
  160. package/dist/orchestrator/commit-validator.d.ts +30 -0
  161. package/dist/orchestrator/commit-validator.d.ts.map +1 -0
  162. package/dist/orchestrator/commit-validator.js +87 -0
  163. package/dist/orchestrator/commit-validator.js.map +1 -0
  164. package/dist/orchestrator/confidence.d.ts +25 -0
  165. package/dist/orchestrator/confidence.d.ts.map +1 -0
  166. package/dist/orchestrator/confidence.js +138 -0
  167. package/dist/orchestrator/confidence.js.map +1 -0
  168. package/dist/orchestrator/file-header-scanner.d.ts +48 -0
  169. package/dist/orchestrator/file-header-scanner.d.ts.map +1 -0
  170. package/dist/orchestrator/file-header-scanner.js +158 -0
  171. package/dist/orchestrator/file-header-scanner.js.map +1 -0
  172. package/dist/orchestrator/git-analyzer.d.ts +192 -0
  173. package/dist/orchestrator/git-analyzer.d.ts.map +1 -0
  174. package/dist/orchestrator/git-analyzer.js +539 -0
  175. package/dist/orchestrator/git-analyzer.js.map +1 -0
  176. package/dist/orchestrator/index.d.ts +20 -0
  177. package/dist/orchestrator/index.d.ts.map +1 -0
  178. package/dist/orchestrator/index.js +16 -0
  179. package/dist/orchestrator/index.js.map +1 -0
  180. package/dist/orchestrator/intent-router.d.ts +41 -0
  181. package/dist/orchestrator/intent-router.d.ts.map +1 -0
  182. package/dist/orchestrator/intent-router.js +98 -0
  183. package/dist/orchestrator/intent-router.js.map +1 -0
  184. package/dist/orchestrator/result-fusion.d.ts +114 -0
  185. package/dist/orchestrator/result-fusion.d.ts.map +1 -0
  186. package/dist/orchestrator/result-fusion.js +332 -0
  187. package/dist/orchestrator/result-fusion.js.map +1 -0
  188. package/dist/orchestrator/test-linker.d.ts +166 -0
  189. package/dist/orchestrator/test-linker.d.ts.map +1 -0
  190. package/dist/orchestrator/test-linker.js +570 -0
  191. package/dist/orchestrator/test-linker.js.map +1 -0
  192. package/dist/orchestrator/tool-orchestrator.d.ts +108 -0
  193. package/dist/orchestrator/tool-orchestrator.d.ts.map +1 -0
  194. package/dist/orchestrator/tool-orchestrator.js +247 -0
  195. package/dist/orchestrator/tool-orchestrator.js.map +1 -0
  196. package/dist/orchestrator/types.d.ts +162 -0
  197. package/dist/orchestrator/types.d.ts.map +1 -0
  198. package/dist/orchestrator/types.js +39 -0
  199. package/dist/orchestrator/types.js.map +1 -0
  200. package/dist/orchestrator/workflow/ci-executor.d.ts +157 -0
  201. package/dist/orchestrator/workflow/ci-executor.d.ts.map +1 -0
  202. package/dist/orchestrator/workflow/ci-executor.js +423 -0
  203. package/dist/orchestrator/workflow/ci-executor.js.map +1 -0
  204. package/dist/orchestrator/workflow/config.d.ts +97 -0
  205. package/dist/orchestrator/workflow/config.d.ts.map +1 -0
  206. package/dist/orchestrator/workflow/config.js +115 -0
  207. package/dist/orchestrator/workflow/config.js.map +1 -0
  208. package/dist/orchestrator/workflow/git-analyzer.d.ts +173 -0
  209. package/dist/orchestrator/workflow/git-analyzer.d.ts.map +1 -0
  210. package/dist/orchestrator/workflow/git-analyzer.js +473 -0
  211. package/dist/orchestrator/workflow/git-analyzer.js.map +1 -0
  212. package/dist/orchestrator/workflow/index.d.ts +21 -0
  213. package/dist/orchestrator/workflow/index.d.ts.map +1 -0
  214. package/dist/orchestrator/workflow/index.js +21 -0
  215. package/dist/orchestrator/workflow/index.js.map +1 -0
  216. package/dist/orchestrator/workflow/phase-checkpoint.d.ts +38 -0
  217. package/dist/orchestrator/workflow/phase-checkpoint.d.ts.map +1 -0
  218. package/dist/orchestrator/workflow/phase-checkpoint.js +75 -0
  219. package/dist/orchestrator/workflow/phase-checkpoint.js.map +1 -0
  220. package/dist/orchestrator/workflow/phase-inheritance.d.ts +128 -0
  221. package/dist/orchestrator/workflow/phase-inheritance.d.ts.map +1 -0
  222. package/dist/orchestrator/workflow/phase-inheritance.js +266 -0
  223. package/dist/orchestrator/workflow/phase-inheritance.js.map +1 -0
  224. package/dist/orchestrator/workflow/result-fusion.d.ts +117 -0
  225. package/dist/orchestrator/workflow/result-fusion.d.ts.map +1 -0
  226. package/dist/orchestrator/workflow/result-fusion.js +246 -0
  227. package/dist/orchestrator/workflow/result-fusion.js.map +1 -0
  228. package/dist/orchestrator/workflow/templates.d.ts +116 -0
  229. package/dist/orchestrator/workflow/templates.d.ts.map +1 -0
  230. package/dist/orchestrator/workflow/templates.js +546 -0
  231. package/dist/orchestrator/workflow/templates.js.map +1 -0
  232. package/dist/orchestrator/workflow/test-linker.d.ts +152 -0
  233. package/dist/orchestrator/workflow/test-linker.d.ts.map +1 -0
  234. package/dist/orchestrator/workflow/test-linker.js +342 -0
  235. package/dist/orchestrator/workflow/test-linker.js.map +1 -0
  236. package/dist/orchestrator/workflow/types.d.ts +202 -0
  237. package/dist/orchestrator/workflow/types.d.ts.map +1 -0
  238. package/dist/orchestrator/workflow/types.js +4 -0
  239. package/dist/orchestrator/workflow/types.js.map +1 -0
  240. package/dist/orchestrator/workflow/visualizer.d.ts +56 -0
  241. package/dist/orchestrator/workflow/visualizer.d.ts.map +1 -0
  242. package/dist/orchestrator/workflow/visualizer.js +300 -0
  243. package/dist/orchestrator/workflow/visualizer.js.map +1 -0
  244. package/dist/orchestrator/workflow/workflow-context.d.ts +50 -0
  245. package/dist/orchestrator/workflow/workflow-context.d.ts.map +1 -0
  246. package/dist/orchestrator/workflow/workflow-context.js +105 -0
  247. package/dist/orchestrator/workflow/workflow-context.js.map +1 -0
  248. package/dist/orchestrator/workflow/workflow-orchestrator.d.ts +126 -0
  249. package/dist/orchestrator/workflow/workflow-orchestrator.d.ts.map +1 -0
  250. package/dist/orchestrator/workflow/workflow-orchestrator.js +489 -0
  251. package/dist/orchestrator/workflow/workflow-orchestrator.js.map +1 -0
  252. package/dist/orchestrator/workflow/workflow-persistence.d.ts +38 -0
  253. package/dist/orchestrator/workflow/workflow-persistence.d.ts.map +1 -0
  254. package/dist/orchestrator/workflow/workflow-persistence.js +166 -0
  255. package/dist/orchestrator/workflow/workflow-persistence.js.map +1 -0
  256. package/dist/parser/implementations/fast-parser.d.ts +65 -0
  257. package/dist/parser/implementations/fast-parser.d.ts.map +1 -0
  258. package/dist/parser/implementations/fast-parser.js +299 -0
  259. package/dist/parser/implementations/fast-parser.js.map +1 -0
  260. package/dist/parser/implementations/smart-parser.d.ts +220 -0
  261. package/dist/parser/implementations/smart-parser.d.ts.map +1 -0
  262. package/dist/parser/implementations/smart-parser.js +1536 -0
  263. package/dist/parser/implementations/smart-parser.js.map +1 -0
  264. package/dist/parser/implementations/tree-sitter-parser.d.ts +57 -0
  265. package/dist/parser/implementations/tree-sitter-parser.d.ts.map +1 -0
  266. package/dist/parser/implementations/tree-sitter-parser.js +375 -0
  267. package/dist/parser/implementations/tree-sitter-parser.js.map +1 -0
  268. package/dist/parser/index.d.ts +19 -0
  269. package/dist/parser/index.d.ts.map +1 -0
  270. package/dist/parser/index.js +449 -0
  271. package/dist/parser/index.js.map +1 -0
  272. package/dist/parser/interfaces/IParser.d.ts +218 -0
  273. package/dist/parser/interfaces/IParser.d.ts.map +1 -0
  274. package/dist/parser/interfaces/IParser.js +22 -0
  275. package/dist/parser/interfaces/IParser.js.map +1 -0
  276. package/dist/plugins/built-in/call-graph.d.ts +38 -0
  277. package/dist/plugins/built-in/call-graph.d.ts.map +1 -0
  278. package/dist/plugins/built-in/call-graph.js +135 -0
  279. package/dist/plugins/built-in/call-graph.js.map +1 -0
  280. package/dist/plugins/built-in/complexity-analyzer.d.ts +45 -0
  281. package/dist/plugins/built-in/complexity-analyzer.d.ts.map +1 -0
  282. package/dist/plugins/built-in/complexity-analyzer.js +155 -0
  283. package/dist/plugins/built-in/complexity-analyzer.js.map +1 -0
  284. package/dist/plugins/index.d.ts +34 -0
  285. package/dist/plugins/index.d.ts.map +1 -0
  286. package/dist/plugins/index.js +103 -0
  287. package/dist/plugins/index.js.map +1 -0
  288. package/dist/plugins/plugin-loader.d.ts +22 -0
  289. package/dist/plugins/plugin-loader.d.ts.map +1 -0
  290. package/dist/plugins/plugin-loader.js +200 -0
  291. package/dist/plugins/plugin-loader.js.map +1 -0
  292. package/dist/plugins/plugin-registry.d.ts +20 -0
  293. package/dist/plugins/plugin-registry.d.ts.map +1 -0
  294. package/dist/plugins/plugin-registry.js +143 -0
  295. package/dist/plugins/plugin-registry.js.map +1 -0
  296. package/dist/plugins/types.d.ts +72 -0
  297. package/dist/plugins/types.d.ts.map +1 -0
  298. package/dist/plugins/types.js +5 -0
  299. package/dist/plugins/types.js.map +1 -0
  300. package/dist/types/index.d.ts +373 -0
  301. package/dist/types/index.d.ts.map +1 -0
  302. package/dist/types/index.js +7 -0
  303. package/dist/types/index.js.map +1 -0
  304. package/dist/watcher/daemon.d.ts +64 -0
  305. package/dist/watcher/daemon.d.ts.map +1 -0
  306. package/dist/watcher/daemon.js +189 -0
  307. package/dist/watcher/daemon.js.map +1 -0
  308. package/dist/watcher/file-watcher.d.ts +70 -0
  309. package/dist/watcher/file-watcher.d.ts.map +1 -0
  310. package/dist/watcher/file-watcher.js +127 -0
  311. package/dist/watcher/file-watcher.js.map +1 -0
  312. package/dist/watcher/index.d.ts +5 -0
  313. package/dist/watcher/index.d.ts.map +1 -0
  314. package/dist/watcher/index.js +6 -0
  315. package/dist/watcher/index.js.map +1 -0
  316. package/dist/watcher/watch-worker.d.ts +2 -0
  317. package/dist/watcher/watch-worker.d.ts.map +1 -0
  318. package/dist/watcher/watch-worker.js +57 -0
  319. package/dist/watcher/watch-worker.js.map +1 -0
  320. package/dist/worker/index.d.ts +76 -0
  321. package/dist/worker/index.d.ts.map +1 -0
  322. package/dist/worker/index.js +155 -0
  323. package/dist/worker/index.js.map +1 -0
  324. package/dist/worker/parse-worker.d.ts +2 -0
  325. package/dist/worker/parse-worker.d.ts.map +1 -0
  326. package/dist/worker/parse-worker.js +202 -0
  327. package/dist/worker/parse-worker.js.map +1 -0
  328. package/mycodemap.config.schema.json +42 -0
  329. package/package.json +69 -0
@@ -0,0 +1,546 @@
1
+ /**
2
+ * [META] 工作流模板系统
3
+ * [WHY] 提供预定义的工作流模板,加速常见开发场景
4
+ */
5
+ import { writeFile, readFile, mkdir, access } from 'node:fs/promises';
6
+ import { existsSync } from 'node:fs';
7
+ import { join } from 'node:path';
8
+ import { cwd } from 'node:process';
9
+ /**
10
+ * 路径兼容常量
11
+ */
12
+ const DEFAULT_OUTPUT_DIR_NEW = '.mycodemap';
13
+ const DEFAULT_OUTPUT_DIR_OLD = '.codemap';
14
+ /**
15
+ * 解析工作流目录路径
16
+ */
17
+ function resolveWorkflowDir() {
18
+ const rootDir = cwd();
19
+ const newPath = join(rootDir, DEFAULT_OUTPUT_DIR_NEW, 'workflow');
20
+ if (existsSync(newPath) || !existsSync(join(rootDir, DEFAULT_OUTPUT_DIR_OLD, 'workflow'))) {
21
+ return join(DEFAULT_OUTPUT_DIR_NEW, 'workflow');
22
+ }
23
+ return join(DEFAULT_OUTPUT_DIR_OLD, 'workflow');
24
+ }
25
+ /**
26
+ * 解析模板目录路径
27
+ */
28
+ function resolveTemplatesDir() {
29
+ const rootDir = cwd();
30
+ const newPath = join(rootDir, DEFAULT_OUTPUT_DIR_NEW, 'templates');
31
+ if (existsSync(newPath) || !existsSync(join(rootDir, DEFAULT_OUTPUT_DIR_OLD, 'templates'))) {
32
+ return join(DEFAULT_OUTPUT_DIR_NEW, 'templates');
33
+ }
34
+ return join(DEFAULT_OUTPUT_DIR_OLD, 'templates');
35
+ }
36
+ /**
37
+ * 获取工作流文件路径(用于模板定义)
38
+ */
39
+ function wf(file) {
40
+ return join(resolveWorkflowDir(), file);
41
+ }
42
+ // ============================================
43
+ // 预定义模板
44
+ // ============================================
45
+ /** 重构模板 - 用于代码重构任务 */
46
+ export const REFACTORING_TEMPLATE = {
47
+ name: 'refactoring',
48
+ type: 'refactoring',
49
+ description: 'Standard workflow for code refactoring tasks with impact analysis',
50
+ useCases: [
51
+ 'Extract method/class refactoring',
52
+ 'Rename refactoring',
53
+ 'Move refactoring',
54
+ 'Code structure improvement'
55
+ ],
56
+ version: '1.0.0',
57
+ createdAt: new Date().toISOString(),
58
+ phases: [
59
+ {
60
+ name: 'reference',
61
+ action: 'analyze',
62
+ analyzeIntent: 'reference',
63
+ entryCondition: { minConfidence: 0.3 },
64
+ deliverables: [
65
+ { name: 'reference-results', path: wf('reference.json'), validator: () => true }
66
+ ],
67
+ nextPhase: 'impact',
68
+ commands: ['codemap analyze --intent reference']
69
+ },
70
+ {
71
+ name: 'impact',
72
+ action: 'analyze',
73
+ analyzeIntent: 'impact',
74
+ entryCondition: { minConfidence: 0.4 },
75
+ deliverables: [
76
+ { name: 'impact-report', path: wf('impact.json'), validator: () => true }
77
+ ],
78
+ nextPhase: 'risk',
79
+ commands: ['codemap analyze --intent impact']
80
+ },
81
+ {
82
+ name: 'risk',
83
+ action: 'ci',
84
+ ciCommand: 'codemap ci assess-risk --threshold 0.7',
85
+ entryCondition: {},
86
+ deliverables: [
87
+ { name: 'risk-assessment', path: wf('risk.json'), validator: () => true }
88
+ ],
89
+ nextPhase: 'implementation',
90
+ commands: ['codemap ci assess-risk']
91
+ },
92
+ {
93
+ name: 'implementation',
94
+ action: 'manual',
95
+ entryCondition: {},
96
+ deliverables: [
97
+ { name: 'refactored-code', path: 'src/', validator: () => true }
98
+ ],
99
+ nextPhase: 'commit',
100
+ commands: []
101
+ },
102
+ {
103
+ name: 'commit',
104
+ action: 'manual',
105
+ entryCondition: {},
106
+ deliverables: [
107
+ { name: 'commit-message', path: '.git/COMMIT_EDITMSG', validator: () => true }
108
+ ],
109
+ nextPhase: 'ci',
110
+ commands: ['git commit']
111
+ },
112
+ {
113
+ name: 'ci',
114
+ action: 'ci',
115
+ ciCommand: 'npm test && codemap ci check-commits && codemap ci check-headers && codemap ci assess-risk --threshold 0.7',
116
+ entryCondition: {},
117
+ deliverables: [],
118
+ commands: []
119
+ }
120
+ ]
121
+ };
122
+ /** Bug 修复模板 - 用于快速修复生产环境问题 */
123
+ export const BUGFIX_TEMPLATE = {
124
+ name: 'bugfix',
125
+ type: 'bugfix',
126
+ description: 'Streamlined workflow for bug fixes with focused testing',
127
+ useCases: [
128
+ 'Production bug fixes',
129
+ 'Critical issue resolution',
130
+ 'Regression fixes',
131
+ 'Security patches'
132
+ ],
133
+ version: '1.0.0',
134
+ createdAt: new Date().toISOString(),
135
+ phases: [
136
+ {
137
+ name: 'reference',
138
+ action: 'analyze',
139
+ analyzeIntent: 'reference',
140
+ entryCondition: { minConfidence: 0.2 }, // Lower threshold for speed
141
+ deliverables: [
142
+ { name: 'bug-location', path: wf('reference.json'), validator: () => true }
143
+ ],
144
+ nextPhase: 'implementation',
145
+ commands: ['codemap analyze --intent reference --priority speed']
146
+ },
147
+ {
148
+ name: 'implementation',
149
+ action: 'manual',
150
+ entryCondition: {},
151
+ deliverables: [
152
+ { name: 'bug-fix', path: 'src/', validator: () => true }
153
+ ],
154
+ nextPhase: 'commit',
155
+ commands: []
156
+ },
157
+ {
158
+ name: 'commit',
159
+ action: 'manual',
160
+ entryCondition: {},
161
+ deliverables: [
162
+ { name: 'commit-message', path: '.git/COMMIT_EDITMSG', validator: () => true }
163
+ ],
164
+ nextPhase: 'ci',
165
+ commands: ['git commit -m "fix: [BUG-XXX] description"']
166
+ },
167
+ {
168
+ name: 'ci',
169
+ action: 'ci',
170
+ ciCommand: 'npm test -- --run affected && codemap ci check-commits',
171
+ entryCondition: {},
172
+ deliverables: [],
173
+ commands: []
174
+ }
175
+ ]
176
+ };
177
+ /** 功能开发模板 - 用于新功能开发 */
178
+ export const FEATURE_TEMPLATE = {
179
+ name: 'feature',
180
+ type: 'feature',
181
+ description: 'Complete workflow for new feature development',
182
+ useCases: [
183
+ 'New feature implementation',
184
+ 'Major enhancements',
185
+ 'API additions',
186
+ 'UI/UX improvements'
187
+ ],
188
+ version: '1.0.0',
189
+ createdAt: new Date().toISOString(),
190
+ phases: [
191
+ {
192
+ name: 'reference',
193
+ action: 'analyze',
194
+ analyzeIntent: 'reference',
195
+ entryCondition: { minConfidence: 0.4 },
196
+ deliverables: [
197
+ { name: 'reference-results', path: wf('reference.json'), validator: () => true }
198
+ ],
199
+ nextPhase: 'impact',
200
+ commands: ['codemap analyze --intent reference']
201
+ },
202
+ {
203
+ name: 'impact',
204
+ action: 'analyze',
205
+ analyzeIntent: 'impact',
206
+ entryCondition: { minConfidence: 0.5 },
207
+ deliverables: [
208
+ { name: 'impact-report', path: wf('impact.json'), validator: () => true }
209
+ ],
210
+ nextPhase: 'risk',
211
+ commands: ['codemap analyze --intent impact']
212
+ },
213
+ {
214
+ name: 'risk',
215
+ action: 'ci',
216
+ ciCommand: 'codemap ci assess-risk --threshold 0.6',
217
+ entryCondition: {},
218
+ deliverables: [
219
+ { name: 'risk-assessment', path: wf('risk.json'), validator: () => true }
220
+ ],
221
+ nextPhase: 'implementation',
222
+ commands: ['codemap ci assess-risk']
223
+ },
224
+ {
225
+ name: 'implementation',
226
+ action: 'manual',
227
+ entryCondition: {},
228
+ deliverables: [
229
+ { name: 'feature-code', path: 'src/', validator: () => true },
230
+ { name: 'tests', path: 'tests/', validator: () => true }
231
+ ],
232
+ nextPhase: 'commit',
233
+ commands: []
234
+ },
235
+ {
236
+ name: 'commit',
237
+ action: 'manual',
238
+ entryCondition: {},
239
+ deliverables: [
240
+ { name: 'commit-message', path: '.git/COMMIT_EDITMSG', validator: () => true }
241
+ ],
242
+ nextPhase: 'ci',
243
+ commands: ['git commit']
244
+ },
245
+ {
246
+ name: 'ci',
247
+ action: 'ci',
248
+ ciCommand: 'npm test && codemap ci check-commits && codemap ci check-headers && codemap ci assess-risk --threshold 0.6 && codemap ci check-output-contract',
249
+ entryCondition: {},
250
+ deliverables: [],
251
+ commands: []
252
+ }
253
+ ]
254
+ };
255
+ /** 热修复模板 - 用于紧急生产修复 */
256
+ export const HOTFIX_TEMPLATE = {
257
+ name: 'hotfix',
258
+ type: 'hotfix',
259
+ description: 'Emergency workflow for critical production hotfixes',
260
+ useCases: [
261
+ 'Critical production issues',
262
+ 'Security vulnerabilities',
263
+ 'Data corruption fixes',
264
+ 'Service outages'
265
+ ],
266
+ version: '1.0.0',
267
+ createdAt: new Date().toISOString(),
268
+ phases: [
269
+ {
270
+ name: 'reference',
271
+ action: 'analyze',
272
+ analyzeIntent: 'reference',
273
+ entryCondition: { minConfidence: 0.1 }, // Minimal threshold
274
+ deliverables: [
275
+ { name: 'hotfix-location', path: wf('reference.json'), validator: () => true }
276
+ ],
277
+ nextPhase: 'implementation',
278
+ commands: ['codemap analyze --intent reference --quick']
279
+ },
280
+ {
281
+ name: 'implementation',
282
+ action: 'manual',
283
+ entryCondition: {},
284
+ deliverables: [
285
+ { name: 'hotfix-code', path: 'src/', validator: () => true }
286
+ ],
287
+ nextPhase: 'commit',
288
+ commands: []
289
+ },
290
+ {
291
+ name: 'commit',
292
+ action: 'manual',
293
+ entryCondition: {},
294
+ deliverables: [
295
+ { name: 'hotfix-commit', path: '.git/COMMIT_EDITMSG', validator: () => true }
296
+ ],
297
+ nextPhase: 'ci',
298
+ commands: ['git commit -m "hotfix: [HOTFIX] critical fix"']
299
+ },
300
+ {
301
+ name: 'ci',
302
+ action: 'ci',
303
+ ciCommand: 'npm run test:quick && codemap ci check-commits',
304
+ entryCondition: {},
305
+ deliverables: [],
306
+ commands: []
307
+ }
308
+ ]
309
+ };
310
+ /** 所有预定义模板 */
311
+ export const BUILTIN_TEMPLATES = {
312
+ refactoring: REFACTORING_TEMPLATE,
313
+ bugfix: BUGFIX_TEMPLATE,
314
+ feature: FEATURE_TEMPLATE,
315
+ hotfix: HOTFIX_TEMPLATE
316
+ };
317
+ // ============================================
318
+ // 模板管理器
319
+ // ============================================
320
+ export class WorkflowTemplateManager {
321
+ templatesDir;
322
+ customTemplates = new Map();
323
+ constructor(templatesDir) {
324
+ this.templatesDir = templatesDir || resolveTemplatesDir();
325
+ }
326
+ /**
327
+ * 获取预定义模板
328
+ */
329
+ getBuiltinTemplate(name) {
330
+ return BUILTIN_TEMPLATES[name];
331
+ }
332
+ /**
333
+ * 获取所有预定义模板
334
+ */
335
+ getAllBuiltinTemplates() {
336
+ return Object.values(BUILTIN_TEMPLATES);
337
+ }
338
+ /**
339
+ * 获取自定义模板
340
+ */
341
+ getCustomTemplate(name) {
342
+ return this.customTemplates.get(name);
343
+ }
344
+ /**
345
+ * 获取所有自定义模板
346
+ */
347
+ getAllCustomTemplates() {
348
+ return Array.from(this.customTemplates.values());
349
+ }
350
+ /**
351
+ * 获取所有可用模板(内置 + 自定义)
352
+ */
353
+ getAllTemplates() {
354
+ return [
355
+ ...this.getAllBuiltinTemplates(),
356
+ ...this.getAllCustomTemplates()
357
+ ];
358
+ }
359
+ /**
360
+ * 获取模板(优先自定义,其次内置)
361
+ */
362
+ getTemplate(name) {
363
+ return this.getCustomTemplate(name) || this.getBuiltinTemplate(name);
364
+ }
365
+ /**
366
+ * 检查模板是否存在
367
+ */
368
+ hasTemplate(name) {
369
+ return this.getTemplate(name) !== undefined;
370
+ }
371
+ /**
372
+ * 保存自定义模板
373
+ */
374
+ async saveTemplate(template, options = {}) {
375
+ // 检查是否覆盖内置模板
376
+ if (BUILTIN_TEMPLATES[template.name] && !options.overwrite) {
377
+ throw new Error(`Cannot overwrite builtin template: ${template.name}`);
378
+ }
379
+ // 更新元数据
380
+ const templateToSave = {
381
+ ...template,
382
+ type: 'custom',
383
+ description: options.description || template.description,
384
+ useCases: options.useCases || template.useCases,
385
+ version: this.incrementVersion(template.version),
386
+ createdAt: new Date().toISOString()
387
+ };
388
+ // 保存到内存
389
+ this.customTemplates.set(template.name, templateToSave);
390
+ // 保存到文件
391
+ await this.ensureTemplatesDir();
392
+ const filePath = join(this.templatesDir, `${template.name}.json`);
393
+ await writeFile(filePath, JSON.stringify(templateToSave, null, 2));
394
+ }
395
+ /**
396
+ * 从当前阶段配置创建模板
397
+ */
398
+ async createTemplateFromPhases(name, phases, options = {}) {
399
+ const template = {
400
+ name,
401
+ type: 'custom',
402
+ description: options.description || `Custom template: ${name}`,
403
+ useCases: options.useCases || ['Custom workflow'],
404
+ phases,
405
+ version: '1.0.0',
406
+ createdAt: new Date().toISOString()
407
+ };
408
+ await this.saveTemplate(template, options);
409
+ return template;
410
+ }
411
+ /**
412
+ * 加载自定义模板
413
+ */
414
+ async loadCustomTemplates() {
415
+ try {
416
+ await access(this.templatesDir);
417
+ }
418
+ catch {
419
+ // 目录不存在,没有自定义模板
420
+ return;
421
+ }
422
+ const { readdir } = await import('node:fs/promises');
423
+ const files = await readdir(this.templatesDir);
424
+ for (const file of files) {
425
+ if (file.endsWith('.json')) {
426
+ try {
427
+ const filePath = join(this.templatesDir, file);
428
+ const content = await readFile(filePath, 'utf-8');
429
+ const template = JSON.parse(content);
430
+ if (this.validateTemplate(template)) {
431
+ this.customTemplates.set(template.name, template);
432
+ }
433
+ }
434
+ catch (error) {
435
+ console.warn(`Failed to load template from ${file}:`, error);
436
+ }
437
+ }
438
+ }
439
+ }
440
+ /**
441
+ * 删除自定义模板
442
+ */
443
+ async deleteTemplate(name) {
444
+ // 不能删除内置模板
445
+ if (BUILTIN_TEMPLATES[name]) {
446
+ return false;
447
+ }
448
+ const deleted = this.customTemplates.delete(name);
449
+ if (deleted) {
450
+ try {
451
+ const filePath = join(this.templatesDir, `${name}.json`);
452
+ const { unlink } = await import('node:fs/promises');
453
+ await unlink(filePath);
454
+ }
455
+ catch {
456
+ // 文件可能不存在,忽略错误
457
+ }
458
+ }
459
+ return deleted;
460
+ }
461
+ /**
462
+ * 验证模板
463
+ */
464
+ validateTemplate(template) {
465
+ if (!template || typeof template !== 'object') {
466
+ return false;
467
+ }
468
+ const t = template;
469
+ return (typeof t.name === 'string' &&
470
+ typeof t.type === 'string' &&
471
+ Array.isArray(t.phases) &&
472
+ t.phases.length > 0 &&
473
+ t.phases.every(p => typeof p.name === 'string' &&
474
+ typeof p.action === 'string' &&
475
+ typeof p.entryCondition === 'object'));
476
+ }
477
+ /**
478
+ * 渲染模板信息
479
+ */
480
+ renderTemplateInfo(template) {
481
+ const lines = [];
482
+ lines.push(`Template: ${template.name}`);
483
+ lines.push(`Type: ${template.type}`);
484
+ lines.push(`Version: ${template.version}`);
485
+ lines.push(`Description: ${template.description}`);
486
+ lines.push('');
487
+ lines.push('Use Cases:');
488
+ for (const useCase of template.useCases) {
489
+ lines.push(` • ${useCase}`);
490
+ }
491
+ lines.push('');
492
+ lines.push('Phases:');
493
+ for (const phase of template.phases) {
494
+ const nextPhase = phase.nextPhase ? ` → ${phase.nextPhase}` : '';
495
+ lines.push(` ${phase.name} (${phase.action})${nextPhase}`);
496
+ }
497
+ return lines.join('\n');
498
+ }
499
+ // ============================================
500
+ // 私有辅助方法
501
+ // ============================================
502
+ async ensureTemplatesDir() {
503
+ try {
504
+ await mkdir(this.templatesDir, { recursive: true });
505
+ }
506
+ catch (error) {
507
+ // 目录可能已存在
508
+ }
509
+ }
510
+ incrementVersion(version) {
511
+ const parts = version.split('.');
512
+ const patch = parseInt(parts[2] || '0', 10);
513
+ parts[2] = (patch + 1).toString();
514
+ return parts.join('.');
515
+ }
516
+ }
517
+ // ============================================
518
+ // 便捷函数
519
+ // ============================================
520
+ /** 创建模板管理器 */
521
+ export function createTemplateManager(templatesDir) {
522
+ return new WorkflowTemplateManager(templatesDir);
523
+ }
524
+ /** 获取默认模板 */
525
+ export function getDefaultTemplate() {
526
+ return REFACTORING_TEMPLATE;
527
+ }
528
+ /** 根据任务描述推荐模板 */
529
+ export function recommendTemplate(taskDescription) {
530
+ const lowerTask = taskDescription.toLowerCase();
531
+ if (lowerTask.includes('bug') || lowerTask.includes('fix') || lowerTask.includes('error')) {
532
+ if (lowerTask.includes('hotfix') || lowerTask.includes('urgent') || lowerTask.includes('critical')) {
533
+ return HOTFIX_TEMPLATE;
534
+ }
535
+ return BUGFIX_TEMPLATE;
536
+ }
537
+ if (lowerTask.includes('feature') || lowerTask.includes('add') || lowerTask.includes('implement')) {
538
+ return FEATURE_TEMPLATE;
539
+ }
540
+ if (lowerTask.includes('refactor') || lowerTask.includes('restructure') || lowerTask.includes('clean')) {
541
+ return REFACTORING_TEMPLATE;
542
+ }
543
+ // 默认返回重构模板
544
+ return REFACTORING_TEMPLATE;
545
+ }
546
+ //# sourceMappingURL=templates.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"templates.js","sourceRoot":"","sources":["../../../src/orchestrator/workflow/templates.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AACtE,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAGnC;;GAEG;AACH,MAAM,sBAAsB,GAAG,YAAY,CAAC;AAC5C,MAAM,sBAAsB,GAAG,UAAU,CAAC;AAE1C;;GAEG;AACH,SAAS,kBAAkB;IACzB,MAAM,OAAO,GAAG,GAAG,EAAE,CAAC;IACtB,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,EAAE,sBAAsB,EAAE,UAAU,CAAC,CAAC;IAElE,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,EAAE,sBAAsB,EAAE,UAAU,CAAC,CAAC,EAAE,CAAC;QAC1F,OAAO,IAAI,CAAC,sBAAsB,EAAE,UAAU,CAAC,CAAC;IAClD,CAAC;IAED,OAAO,IAAI,CAAC,sBAAsB,EAAE,UAAU,CAAC,CAAC;AAClD,CAAC;AAED;;GAEG;AACH,SAAS,mBAAmB;IAC1B,MAAM,OAAO,GAAG,GAAG,EAAE,CAAC;IACtB,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,EAAE,sBAAsB,EAAE,WAAW,CAAC,CAA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