@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,488 @@
1
+ // [META] since:2026-03-02 | owner:orchestrator-team | stable:true
2
+ // [WHY] Workflow CLI commands for managing refactoring workflows with error code support
3
+ /**
4
+ * Workflow CLI 命令
5
+ * 工作流管理命令:start, status, proceed, resume, checkpoint, visualize, template
6
+ */
7
+ import { Command } from 'commander';
8
+ import { WorkflowOrchestrator } from '../../orchestrator/workflow/workflow-orchestrator.js';
9
+ import { WorkflowVisualizer } from '../../orchestrator/workflow/visualizer.js';
10
+ import { WorkflowTemplateManager, recommendTemplate } from '../../orchestrator/workflow/templates.js';
11
+ /**
12
+ * Workflow 命令错误码
13
+ */
14
+ export var WorkflowErrorCode;
15
+ (function (WorkflowErrorCode) {
16
+ WorkflowErrorCode["E0011_WORKFLOW_NOT_FOUND"] = "E0011";
17
+ WorkflowErrorCode["E0012_INVALID_WORKFLOW_STATE"] = "E0012";
18
+ WorkflowErrorCode["E0013_CHECKPOINT_VALIDATION_FAILED"] = "E0013";
19
+ WorkflowErrorCode["E0014_WORKFLOW_CREATION_FAILED"] = "E0014";
20
+ WorkflowErrorCode["E0015_WORKFLOW_PERSISTENCE_FAILED"] = "E0015";
21
+ WorkflowErrorCode["E0016_TEMPLATE_NOT_FOUND"] = "E0016";
22
+ WorkflowErrorCode["E0017_TEMPLATE_INVALID"] = "E0017";
23
+ })(WorkflowErrorCode || (WorkflowErrorCode = {}));
24
+ /**
25
+ * Workflow 命令错误信息
26
+ */
27
+ export const ERROR_MESSAGES = {
28
+ [WorkflowErrorCode.E0011_WORKFLOW_NOT_FOUND]: '工作流ID不存在',
29
+ [WorkflowErrorCode.E0012_INVALID_WORKFLOW_STATE]: '工作流状态无效(无法执行当前操作)',
30
+ [WorkflowErrorCode.E0013_CHECKPOINT_VALIDATION_FAILED]: '阶段检查点验证失败',
31
+ [WorkflowErrorCode.E0014_WORKFLOW_CREATION_FAILED]: '工作流创建失败',
32
+ [WorkflowErrorCode.E0015_WORKFLOW_PERSISTENCE_FAILED]: '工作流持久化失败',
33
+ [WorkflowErrorCode.E0016_TEMPLATE_NOT_FOUND]: '模板不存在',
34
+ [WorkflowErrorCode.E0017_TEMPLATE_INVALID]: '模板格式无效',
35
+ };
36
+ /**
37
+ * 创建错误对象
38
+ */
39
+ function createError(code, message) {
40
+ const errorMessage = message || ERROR_MESSAGES[code];
41
+ const error = new Error(`[${code}] ${errorMessage}`);
42
+ error.code = code;
43
+ return error;
44
+ }
45
+ const workflow = new Command('workflow');
46
+ workflow.description('Workflow management - manage development workflow across multiple phases');
47
+ /**
48
+ * 启动新工作流
49
+ */
50
+ workflow.command('start')
51
+ .description('Start a new development workflow')
52
+ .argument('<task>', 'Task description')
53
+ .option('-t, --template <name>', 'Use workflow template (refactoring|bugfix|feature|hotfix)')
54
+ .action(async (task, options) => {
55
+ try {
56
+ const orchestrator = new WorkflowOrchestrator();
57
+ const templateManager = new WorkflowTemplateManager();
58
+ await templateManager.loadCustomTemplates();
59
+ let selectedTemplate;
60
+ if (options.template) {
61
+ selectedTemplate = templateManager.getTemplate(options.template);
62
+ if (!selectedTemplate) {
63
+ throw createError(WorkflowErrorCode.E0016_TEMPLATE_NOT_FOUND, `${ERROR_MESSAGES[WorkflowErrorCode.E0016_TEMPLATE_NOT_FOUND]}: ${options.template}`);
64
+ }
65
+ if (!templateManager.validateTemplate(selectedTemplate)) {
66
+ throw createError(WorkflowErrorCode.E0017_TEMPLATE_INVALID, `${ERROR_MESSAGES[WorkflowErrorCode.E0017_TEMPLATE_INVALID]}: ${options.template}`);
67
+ }
68
+ }
69
+ const context = await orchestrator.start(task, {
70
+ template: selectedTemplate?.name
71
+ });
72
+ let templateNote = '';
73
+ if (selectedTemplate) {
74
+ templateNote = `\nUsing template: ${selectedTemplate.name} (${selectedTemplate.type})`;
75
+ }
76
+ else {
77
+ const recommended = recommendTemplate(task);
78
+ templateNote = `\nRecommended template: ${recommended.name} (use --template ${recommended.name})`;
79
+ }
80
+ console.log(`
81
+ ╔══════════════════════════════════════════════════════════╗
82
+ ║ [WORKFLOW STARTED] ║
83
+ ╚══════════════════════════════════════════════════════════╝
84
+
85
+ Task: ${task}
86
+ ID: ${context.id}
87
+ Phase: ${context.currentPhase}${templateNote}
88
+
89
+ Next steps:
90
+ 1. codemap workflow status # 查看当前状态
91
+ 2. codemap workflow visualize # 可视化工作流
92
+ 3. codemap analyze --intent reference --keywords ...
93
+ 4. codemap workflow proceed # 进入下一阶段
94
+ `);
95
+ }
96
+ catch (error) {
97
+ const err = error;
98
+ const errMsg = error instanceof Error ? error.message : String(error);
99
+ if (err.code === WorkflowErrorCode.E0016_TEMPLATE_NOT_FOUND) {
100
+ console.error(`❌ ${errMsg}`);
101
+ process.exit(1);
102
+ }
103
+ if (err.code === WorkflowErrorCode.E0017_TEMPLATE_INVALID) {
104
+ console.error(`❌ ${errMsg}`);
105
+ process.exit(1);
106
+ }
107
+ if (errMsg.startsWith('Template not found:')) {
108
+ console.error(`❌ [${WorkflowErrorCode.E0016_TEMPLATE_NOT_FOUND}] ${ERROR_MESSAGES[WorkflowErrorCode.E0016_TEMPLATE_NOT_FOUND]}: ${errMsg.replace('Template not found: ', '')}`);
109
+ process.exit(1);
110
+ }
111
+ if (errMsg.startsWith('Template invalid:')) {
112
+ console.error(`❌ [${WorkflowErrorCode.E0017_TEMPLATE_INVALID}] ${ERROR_MESSAGES[WorkflowErrorCode.E0017_TEMPLATE_INVALID]}: ${errMsg.replace('Template invalid: ', '')}`);
113
+ process.exit(1);
114
+ }
115
+ console.error(`❌ [${WorkflowErrorCode.E0014_WORKFLOW_CREATION_FAILED}] ${ERROR_MESSAGES[WorkflowErrorCode.E0014_WORKFLOW_CREATION_FAILED]}: ${errMsg}`);
116
+ process.exit(1);
117
+ }
118
+ });
119
+ /**
120
+ * 查看工作流状态
121
+ */
122
+ workflow.command('status')
123
+ .description('Show current workflow status')
124
+ .action(async () => {
125
+ try {
126
+ const orchestrator = new WorkflowOrchestrator();
127
+ const status = await orchestrator.getStatus();
128
+ if (!status.active) {
129
+ console.log('No active workflow. Run "codemap workflow start <task>" first.');
130
+ return;
131
+ }
132
+ const visualizer = new WorkflowVisualizer();
133
+ const output = visualizer.renderWorkflowStatusCompact(status);
134
+ console.log(output);
135
+ }
136
+ catch (error) {
137
+ const errMsg = error instanceof Error ? error.message : String(error);
138
+ console.error(`❌ [${WorkflowErrorCode.E0015_WORKFLOW_PERSISTENCE_FAILED}] ${ERROR_MESSAGES[WorkflowErrorCode.E0015_WORKFLOW_PERSISTENCE_FAILED]}: ${errMsg}`);
139
+ process.exit(1);
140
+ }
141
+ });
142
+ /**
143
+ * 推进到下一阶段
144
+ */
145
+ workflow.command('proceed')
146
+ .description('Proceed to next phase')
147
+ .option('-f, --force', 'Skip verification')
148
+ .action(async (options) => {
149
+ try {
150
+ const orchestrator = new WorkflowOrchestrator();
151
+ const status = await orchestrator.getStatus();
152
+ if (!status.active) {
153
+ console.log('No active workflow. Run "codemap workflow start <task>" first.');
154
+ return;
155
+ }
156
+ if (status.phaseStatus !== 'completed' && status.phaseStatus !== 'verified' && !options.force) {
157
+ console.error(`❌ [${WorkflowErrorCode.E0012_INVALID_WORKFLOW_STATE}] ${ERROR_MESSAGES[WorkflowErrorCode.E0012_INVALID_WORKFLOW_STATE]}: Current phase ${status.currentPhase} is not completed (status: ${status.phaseStatus}). Use --force to override.`);
158
+ process.exit(1);
159
+ }
160
+ const next = await orchestrator.proceedToNextPhase(options.force);
161
+ console.log(`
162
+ ╔══════════════════════════════════════════════════════════╗
163
+ ║ [PHASE COMPLETED] ║
164
+ ╚══════════════════════════════════════════════════════════╝
165
+
166
+ Current phase: ${status.currentPhase}
167
+ Status: ${status.phaseStatus}
168
+ Next phase: ${next}
169
+
170
+ Type "codemap workflow proceed" to continue to next phase.
171
+ `);
172
+ }
173
+ catch (error) {
174
+ const errMsg = error instanceof Error ? error.message : String(error);
175
+ console.error(`❌ [${WorkflowErrorCode.E0012_INVALID_WORKFLOW_STATE}] ${ERROR_MESSAGES[WorkflowErrorCode.E0012_INVALID_WORKFLOW_STATE]}: ${errMsg}`);
176
+ process.exit(1);
177
+ }
178
+ });
179
+ /**
180
+ * 恢复工作流
181
+ */
182
+ workflow.command('resume')
183
+ .description('Resume an interrupted workflow')
184
+ .argument('[id]', 'Workflow ID (optional, defaults to active)')
185
+ .action(async (id) => {
186
+ try {
187
+ const orchestrator = new WorkflowOrchestrator();
188
+ if (id) {
189
+ const context = await orchestrator.resume(id);
190
+ if (!context) {
191
+ console.error(`❌ [${WorkflowErrorCode.E0011_WORKFLOW_NOT_FOUND}] ${ERROR_MESSAGES[WorkflowErrorCode.E0011_WORKFLOW_NOT_FOUND]}: ${id}`);
192
+ process.exit(1);
193
+ }
194
+ console.log(`Resumed workflow: ${context.id}`);
195
+ }
196
+ else {
197
+ const context = await orchestrator.resumeActive();
198
+ if (!context) {
199
+ console.log('No active workflow to resume.');
200
+ return;
201
+ }
202
+ console.log(`Resumed workflow: ${context.id}`);
203
+ }
204
+ const status = await orchestrator.getStatus();
205
+ console.log(`
206
+ Phase: ${status.currentPhase}
207
+ Status: ${status.phaseStatus}
208
+ Progress: ${status.progress?.toFixed(0) || 0}%
209
+ `);
210
+ }
211
+ catch (error) {
212
+ const errMsg = error instanceof Error ? error.message : String(error);
213
+ console.error(`❌ [${WorkflowErrorCode.E0012_INVALID_WORKFLOW_STATE}] ${ERROR_MESSAGES[WorkflowErrorCode.E0012_INVALID_WORKFLOW_STATE]}: ${errMsg}`);
214
+ process.exit(1);
215
+ }
216
+ });
217
+ /**
218
+ * 创建检查点
219
+ */
220
+ workflow.command('checkpoint')
221
+ .description('Create a checkpoint of current workflow state')
222
+ .action(async () => {
223
+ try {
224
+ const orchestrator = new WorkflowOrchestrator();
225
+ // 先加载活动工作流
226
+ const status = await orchestrator.getStatus();
227
+ if (!status.active) {
228
+ console.log('No active workflow. Run "codemap workflow start <task>" first.');
229
+ return;
230
+ }
231
+ await orchestrator.checkpoint();
232
+ console.log('Checkpoint created successfully.');
233
+ }
234
+ catch (error) {
235
+ const errMsg = error instanceof Error ? error.message : String(error);
236
+ console.error(`❌ [${WorkflowErrorCode.E0013_CHECKPOINT_VALIDATION_FAILED}] ${ERROR_MESSAGES[WorkflowErrorCode.E0013_CHECKPOINT_VALIDATION_FAILED]}: ${errMsg}`);
237
+ process.exit(1);
238
+ }
239
+ });
240
+ /**
241
+ * 列出所有工作流
242
+ */
243
+ workflow.command('list')
244
+ .description('List all workflows')
245
+ .action(async () => {
246
+ try {
247
+ const orchestrator = new WorkflowOrchestrator();
248
+ const workflows = await orchestrator.listWorkflows();
249
+ if (workflows.length === 0) {
250
+ console.log('No workflows found.');
251
+ return;
252
+ }
253
+ console.log(`
254
+ ╔══════════════════════════════════════════════════════════╗
255
+ ║ [WORKFLOWS] ║
256
+ ╚══════════════════════════════════════════════════════════╝
257
+ `);
258
+ for (const wf of workflows) {
259
+ console.log(`ID: ${wf.id}`);
260
+ console.log(` Task: ${wf.task}`);
261
+ console.log(` Phase: ${wf.currentPhase} (${wf.phaseStatus})`);
262
+ console.log(` Updated: ${wf.updatedAt}`);
263
+ console.log('');
264
+ }
265
+ }
266
+ catch (error) {
267
+ const errMsg = error instanceof Error ? error.message : String(error);
268
+ console.error(`❌ [${WorkflowErrorCode.E0015_WORKFLOW_PERSISTENCE_FAILED}] ${ERROR_MESSAGES[WorkflowErrorCode.E0015_WORKFLOW_PERSISTENCE_FAILED]}: ${errMsg}`);
269
+ process.exit(1);
270
+ }
271
+ });
272
+ /**
273
+ * 删除工作流
274
+ */
275
+ workflow.command('delete')
276
+ .description('Delete a workflow')
277
+ .argument('<id>', 'Workflow ID')
278
+ .action(async (id) => {
279
+ try {
280
+ const orchestrator = new WorkflowOrchestrator();
281
+ // 先检查工作流是否存在
282
+ const allWorkflows = await orchestrator.listWorkflows();
283
+ const exists = allWorkflows.some(wf => wf.id === id);
284
+ if (!exists) {
285
+ console.error(`❌ [${WorkflowErrorCode.E0011_WORKFLOW_NOT_FOUND}] ${ERROR_MESSAGES[WorkflowErrorCode.E0011_WORKFLOW_NOT_FOUND]}: ${id}`);
286
+ process.exit(1);
287
+ }
288
+ await orchestrator.deleteWorkflow(id);
289
+ console.log(`Workflow ${id} deleted.`);
290
+ }
291
+ catch (error) {
292
+ const errMsg = error instanceof Error ? error.message : String(error);
293
+ console.error(`❌ [${WorkflowErrorCode.E0015_WORKFLOW_PERSISTENCE_FAILED}] ${ERROR_MESSAGES[WorkflowErrorCode.E0015_WORKFLOW_PERSISTENCE_FAILED]}: ${errMsg}`);
294
+ process.exit(1);
295
+ }
296
+ });
297
+ // ============================================
298
+ // 可视化命令 (T009)
299
+ // ============================================
300
+ /**
301
+ * 可视化工作流
302
+ */
303
+ workflow.command('visualize')
304
+ .description('Visualize workflow with ASCII charts (T009)')
305
+ .argument('[id]', 'Workflow ID (optional, defaults to active)')
306
+ .option('-t, --timeline', 'Show timeline view')
307
+ .option('-r, --results', 'Show results table')
308
+ .action(async (id, options) => {
309
+ try {
310
+ const orchestrator = new WorkflowOrchestrator();
311
+ const visualizer = new WorkflowVisualizer();
312
+ // 加载工作流
313
+ let context;
314
+ if (id) {
315
+ context = await orchestrator.resume(id);
316
+ if (!context) {
317
+ console.error(`❌ [${WorkflowErrorCode.E0011_WORKFLOW_NOT_FOUND}] ${ERROR_MESSAGES[WorkflowErrorCode.E0011_WORKFLOW_NOT_FOUND]}: ${id}`);
318
+ process.exit(1);
319
+ }
320
+ }
321
+ else {
322
+ context = await orchestrator.getContext();
323
+ if (!context) {
324
+ const active = await orchestrator.resumeActive();
325
+ if (!active) {
326
+ console.log('No active workflow. Run "codemap workflow start <task>" first.');
327
+ return;
328
+ }
329
+ context = active;
330
+ }
331
+ }
332
+ // 根据选项渲染不同视图
333
+ if (options.timeline) {
334
+ console.log(visualizer.renderTimeline(context));
335
+ }
336
+ else if (options.results) {
337
+ const currentArtifacts = context.artifacts.get(context.currentPhase);
338
+ if (currentArtifacts?.results) {
339
+ console.log(visualizer.renderResultsTable(currentArtifacts.results));
340
+ }
341
+ else {
342
+ console.log('No results available for current phase.');
343
+ }
344
+ }
345
+ else {
346
+ // 完整可视化
347
+ console.log(visualizer.renderWorkflowStatus(context));
348
+ }
349
+ }
350
+ catch (error) {
351
+ const errMsg = error instanceof Error ? error.message : String(error);
352
+ console.error(`❌ [${WorkflowErrorCode.E0015_WORKFLOW_PERSISTENCE_FAILED}] ${ERROR_MESSAGES[WorkflowErrorCode.E0015_WORKFLOW_PERSISTENCE_FAILED]}: ${errMsg}`);
353
+ process.exit(1);
354
+ }
355
+ });
356
+ // ============================================
357
+ // 模板命令 (T010)
358
+ // ============================================
359
+ const template = workflow.command('template')
360
+ .description('Workflow template management (T010)');
361
+ /**
362
+ * 列出所有模板
363
+ */
364
+ template.command('list')
365
+ .description('List all available templates')
366
+ .option('-a, --all', 'Include builtin templates')
367
+ .action(async (options) => {
368
+ try {
369
+ const manager = new WorkflowTemplateManager();
370
+ await manager.loadCustomTemplates();
371
+ const templates = options.all
372
+ ? manager.getAllTemplates()
373
+ : manager.getAllBuiltinTemplates();
374
+ if (templates.length === 0) {
375
+ console.log('No templates found.');
376
+ return;
377
+ }
378
+ console.log(`
379
+ ╔══════════════════════════════════════════════════════════╗
380
+ ║ [WORKFLOW TEMPLATES] ║
381
+ ╚══════════════════════════════════════════════════════════╝
382
+ `);
383
+ for (const t of templates) {
384
+ const type = t.type === 'custom' ? '👤 custom' : '📦 builtin';
385
+ console.log(`${type} │ ${t.name.padEnd(15)} │ ${t.description}`);
386
+ }
387
+ console.log(`
388
+ Use 'codemap workflow template info <name>' for details
389
+ Use 'codemap workflow template apply <name>' to apply a template
390
+ `);
391
+ }
392
+ catch (error) {
393
+ const errMsg = error instanceof Error ? error.message : String(error);
394
+ console.error(`❌ Failed to list templates: ${errMsg}`);
395
+ process.exit(1);
396
+ }
397
+ });
398
+ /**
399
+ * 显示模板详情
400
+ */
401
+ template.command('info')
402
+ .description('Show template details')
403
+ .argument('<name>', 'Template name')
404
+ .action(async (name) => {
405
+ try {
406
+ const manager = new WorkflowTemplateManager();
407
+ await manager.loadCustomTemplates();
408
+ const template = manager.getTemplate(name);
409
+ if (!template) {
410
+ console.error(`❌ [${WorkflowErrorCode.E0016_TEMPLATE_NOT_FOUND}] ${ERROR_MESSAGES[WorkflowErrorCode.E0016_TEMPLATE_NOT_FOUND]}: ${name}`);
411
+ process.exit(1);
412
+ }
413
+ console.log(manager.renderTemplateInfo(template));
414
+ }
415
+ catch (error) {
416
+ const errMsg = error instanceof Error ? error.message : String(error);
417
+ console.error(`❌ Failed to get template info: ${errMsg}`);
418
+ process.exit(1);
419
+ }
420
+ });
421
+ /**
422
+ * 应用模板
423
+ */
424
+ template.command('apply')
425
+ .description('Apply template to current workflow (set phase configuration)')
426
+ .argument('<name>', 'Template name')
427
+ .action(async (name) => {
428
+ try {
429
+ const manager = new WorkflowTemplateManager();
430
+ await manager.loadCustomTemplates();
431
+ const template = manager.getTemplate(name);
432
+ if (!template) {
433
+ console.error(`❌ [${WorkflowErrorCode.E0016_TEMPLATE_NOT_FOUND}] ${ERROR_MESSAGES[WorkflowErrorCode.E0016_TEMPLATE_NOT_FOUND]}: ${name}`);
434
+ process.exit(1);
435
+ }
436
+ if (!manager.validateTemplate(template)) {
437
+ console.error(`❌ [${WorkflowErrorCode.E0017_TEMPLATE_INVALID}] ${ERROR_MESSAGES[WorkflowErrorCode.E0017_TEMPLATE_INVALID]}: ${name}`);
438
+ process.exit(1);
439
+ }
440
+ const orchestrator = new WorkflowOrchestrator();
441
+ const context = await orchestrator.applyTemplate(name);
442
+ console.log(`Applied template: ${template.name}`);
443
+ console.log(`Type: ${template.type}`);
444
+ console.log(`Phases: ${template.phases.map(p => p.name).join(' → ')}`);
445
+ console.log(`Current phase: ${context.currentPhase}`);
446
+ }
447
+ catch (error) {
448
+ const errMsg = error instanceof Error ? error.message : String(error);
449
+ if (errMsg === 'No active workflow') {
450
+ console.error(`❌ [${WorkflowErrorCode.E0012_INVALID_WORKFLOW_STATE}] ${ERROR_MESSAGES[WorkflowErrorCode.E0012_INVALID_WORKFLOW_STATE]}: No active workflow.`);
451
+ process.exit(1);
452
+ }
453
+ console.error(`❌ Failed to apply template: ${errMsg}`);
454
+ process.exit(1);
455
+ }
456
+ });
457
+ /**
458
+ * 推荐模板
459
+ */
460
+ template.command('recommend')
461
+ .description('Recommend template based on task description')
462
+ .argument('<task>', 'Task description')
463
+ .action(async (task) => {
464
+ try {
465
+ const recommended = recommendTemplate(task);
466
+ console.log(`
467
+ ╔══════════════════════════════════════════════════════════╗
468
+ ║ [TEMPLATE RECOMMENDATION] ║
469
+ ╚══════════════════════════════════════════════════════════╝
470
+
471
+ Task: ${task}
472
+
473
+ Recommended: ${recommended.name}
474
+ Description: ${recommended.description}
475
+
476
+ Use:
477
+ codemap workflow start "${task}" --template ${recommended.name}
478
+ `);
479
+ }
480
+ catch (error) {
481
+ const errMsg = error instanceof Error ? error.message : String(error);
482
+ console.error(`❌ Failed to recommend template: ${errMsg}`);
483
+ process.exit(1);
484
+ }
485
+ });
486
+ export const workflowCommand = workflow;
487
+ export default workflow;
488
+ //# sourceMappingURL=workflow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow.js","sourceRoot":"","sources":["../../../src/cli/commands/workflow.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,yFAAyF;AAEzF;;;GAGG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,sDAAsD,CAAC;AAC5F,OAAO,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAC/E,OAAO,EAAE,uBAAuB,EAAE,iBAAiB,EAAyB,MAAM,0CAA0C,CAAC;AAG7H;;GAEG;AACH,MAAM,CAAN,IAAY,iBAQX;AARD,WAAY,iBAAiB;IAC3B,uDAAkC,CAAA;IAClC,2DAAsC,CAAA;IACtC,iE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+1,3 @@
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,115 @@
1
+ #!/usr/bin/env node
2
+ // [META] since:2026-03-03 | owner:orchestrator-team | stable:true
3
+ // [WHY] CLI 入口点,注册命令并初始化运行日志
4
+ import { Command } from 'commander';
5
+ import { generateCommand } from './commands/generate.js';
6
+ import { initCommand } from './commands/init.js';
7
+ import { watchCommand } from './commands/watch.js';
8
+ import { queryCommand } from './commands/query.js';
9
+ import { depsCommand } from './commands/deps.js';
10
+ import { cyclesCommand } from './commands/cycles.js';
11
+ import { complexityCommand } from './commands/complexity.js';
12
+ import { impactCommand } from './commands/impact.js';
13
+ import { analyzeCommand } from './commands/analyze.js';
14
+ import { ciCommand } from './commands/ci.js';
15
+ import { workflowCommand } from './commands/workflow.js';
16
+ import { setupRuntimeLogging } from './runtime-logger.js';
17
+ const program = new Command();
18
+ setupRuntimeLogging(process.argv.slice(2));
19
+ program
20
+ .name('mycodemap')
21
+ .alias('codemap') // 兼容旧命令名
22
+ .description('TypeScript 代码地图工具 - 为 AI 辅助开发提供结构化上下文')
23
+ .version('0.1.0');
24
+ program
25
+ .command('init')
26
+ .description('初始化 CodeMap 配置')
27
+ .option('-y, --yes', '使用默认配置')
28
+ .action(initCommand);
29
+ program
30
+ .command('generate')
31
+ .description('生成代码地图')
32
+ .option('-m, --mode <mode>', '分析模式 (fast|smart|hybrid)', 'hybrid')
33
+ .option('-o, --output <dir>', '输出目录', '.mycodemap')
34
+ .option('--ai-context', '为每个文件生成 AI 描述(需要 AI Provider)', false)
35
+ .action(generateCommand);
36
+ program
37
+ .command('watch')
38
+ .description('监听文件变更并自动更新代码地图')
39
+ .option('-m, --mode <mode>', '分析模式 (fast|smart|hybrid)', 'hybrid')
40
+ .option('-o, --output <dir>', '输出目录', '.mycodemap')
41
+ .option('-d, --detach', '以后台守护进程方式运行')
42
+ .option('-s, --stop', '停止后台守护进程')
43
+ .option('-t, --status', '查看后台守护进程状态')
44
+ .action(watchCommand);
45
+ program
46
+ .command('query')
47
+ .description('查询代码地图中的符号、模块、依赖信息')
48
+ .option('-s, --symbol <name>', '精确查询符号')
49
+ .option('-m, --module <path>', '查询模块')
50
+ .option('-d, --deps <name>', '查询依赖')
51
+ .option('-S, --search <word>', '模糊搜索')
52
+ .option('-l, --limit <number>', '限制结果数量', '50')
53
+ .option('-j, --json', 'JSON 格式输出')
54
+ .option('--structured', '输出完全结构化的 JSON(不包含自然语言字符串,需要配合 --json 使用)')
55
+ .option('-v, --verbose', '显示性能指标')
56
+ .option('-r, --regex', '使用正则表达式搜索(仅适用于 -S/--search)')
57
+ .option('-c, --context <lines>', '显示代码上下文行数', '0')
58
+ .option('--case-sensitive', '大小写敏感搜索(精确搜索默认开启)')
59
+ .option('--include-references', '包含符号引用位置信息')
60
+ .option('--deps-format <format>', '依赖查询输出格式 (default|detailed)', 'default')
61
+ .option('--no-cache', '禁用缓存,强制重新加载索引')
62
+ .action(queryCommand);
63
+ program
64
+ .command('deps')
65
+ .description('分析项目模块依赖关系')
66
+ .option('-m, --module <path>', '查看指定模块的依赖')
67
+ .option('-j, --json', 'JSON 格式输出')
68
+ .option('--structured', '输出完全结构化的 JSON(不包含自然语言字符串,需要配合 --json 使用)')
69
+ .action(depsCommand);
70
+ program
71
+ .command('cycles')
72
+ .description('检测项目中的循环依赖')
73
+ .option('-d, --depth <number>', '检测深度', '5')
74
+ .option('-j, --json', 'JSON 格式输出')
75
+ .option('--structured', '输出完全结构化的 JSON(不包含自然语言字符串,需要配合 --json 使用)')
76
+ .action(cyclesCommand);
77
+ program
78
+ .command('complexity')
79
+ .description('分析代码复杂度(圈复杂度、认知复杂度、可维护性)')
80
+ .option('-f, --file <path>', '查看指定文件的复杂度')
81
+ .option('-d, --detail', '显示函数级复杂度详情(使用 AST 精确分析)')
82
+ .option('-j, --json', 'JSON 格式输出')
83
+ .option('--structured', '输出完全结构化的 JSON(不包含自然语言字符串,需要配合 --json 使用)')
84
+ .action(complexityCommand);
85
+ program
86
+ .command('impact')
87
+ .description('分析文件变更的影响范围')
88
+ .option('-f, --file <path>', '指定要分析的文件(必填)')
89
+ .option('-t, --transitive', '包含传递依赖')
90
+ .option('-j, --json', 'JSON 格式输出')
91
+ .option('--structured', '输出完全结构化的 JSON(不包含自然语言字符串,需要配合 --json 使用)')
92
+ .action(impactCommand);
93
+ program
94
+ .command('analyze')
95
+ .description('统一分析入口 - 支持多种分析意图')
96
+ .option('-i, --intent <type>', '分析类型 (impact|dependency|search|documentation|complexity|overview|refactor|reference)')
97
+ .option('-t, --targets <paths...>', '目标文件/模块路径')
98
+ .option('-k, --keywords <words...>', '搜索关键词')
99
+ .option('-s, --scope <scope>', '范围 (direct|transitive)')
100
+ .option('-n, --topK <number>', '返回结果数量', '8')
101
+ .option('--include-tests', '包含测试文件')
102
+ .option('--include-git-history', '包含 Git 历史')
103
+ .option('--json', 'JSON 格式输出')
104
+ .option('--structured', '输出完全结构化的 JSON(不包含自然语言字符串,需要配合 --json 或 --output-mode=machine 使用)')
105
+ .option('--output-mode <mode>', '输出模式 (machine|human)')
106
+ .action(async () => {
107
+ // 跳过 program name 和 command name
108
+ await analyzeCommand(process.argv.slice(2));
109
+ });
110
+ // CI Gateway 命令
111
+ program.addCommand(ciCommand);
112
+ // Workflow 命令
113
+ program.addCommand(workflowCommand);
114
+ program.parse();
115
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":";AAEA,kEAAkE;AAClE,6BAA6B;AAE7B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO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