codehere 0.2.0 → 0.4.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.

Potentially problematic release.


This version of codehere might be problematic. Click here for more details.

Files changed (405) hide show
  1. package/README.md +223 -42
  2. package/dist/application/agents/documentation-agent.d.ts +24 -0
  3. package/dist/application/agents/documentation-agent.d.ts.map +1 -0
  4. package/dist/application/agents/documentation-agent.js +399 -0
  5. package/dist/application/agents/documentation-agent.js.map +1 -0
  6. package/dist/application/agents/execution-agent.d.ts +11 -0
  7. package/dist/application/agents/execution-agent.d.ts.map +1 -1
  8. package/dist/application/agents/execution-agent.js +289 -80
  9. package/dist/application/agents/execution-agent.js.map +1 -1
  10. package/dist/application/agents/multi-agent-orchestrator.d.ts +4 -0
  11. package/dist/application/agents/multi-agent-orchestrator.d.ts.map +1 -1
  12. package/dist/application/agents/multi-agent-orchestrator.js +86 -0
  13. package/dist/application/agents/multi-agent-orchestrator.js.map +1 -1
  14. package/dist/application/agents/planning-agent.d.ts +3 -0
  15. package/dist/application/agents/planning-agent.d.ts.map +1 -1
  16. package/dist/application/agents/planning-agent.js +132 -64
  17. package/dist/application/agents/planning-agent.js.map +1 -1
  18. package/dist/application/agents/product-requirements-agent.d.ts +21 -0
  19. package/dist/application/agents/product-requirements-agent.d.ts.map +1 -0
  20. package/dist/application/agents/product-requirements-agent.js +247 -0
  21. package/dist/application/agents/product-requirements-agent.js.map +1 -0
  22. package/dist/application/agents/validation-agent.d.ts +5 -1
  23. package/dist/application/agents/validation-agent.d.ts.map +1 -1
  24. package/dist/application/agents/validation-agent.js +156 -21
  25. package/dist/application/agents/validation-agent.js.map +1 -1
  26. package/dist/application/services/dependency-container.d.ts +25 -2
  27. package/dist/application/services/dependency-container.d.ts.map +1 -1
  28. package/dist/application/services/dependency-container.js +163 -1
  29. package/dist/application/services/dependency-container.js.map +1 -1
  30. package/dist/application/services/intelligent-router.d.ts +13 -0
  31. package/dist/application/services/intelligent-router.d.ts.map +1 -1
  32. package/dist/application/services/intelligent-router.js +300 -87
  33. package/dist/application/services/intelligent-router.js.map +1 -1
  34. package/dist/application/use-cases/ask-question-use-case.d.ts +31 -0
  35. package/dist/application/use-cases/ask-question-use-case.d.ts.map +1 -1
  36. package/dist/application/use-cases/ask-question-use-case.js +254 -55
  37. package/dist/application/use-cases/ask-question-use-case.js.map +1 -1
  38. package/dist/application/use-cases/edit-file-use-case.d.ts.map +1 -1
  39. package/dist/application/use-cases/edit-file-use-case.js +86 -4
  40. package/dist/application/use-cases/edit-file-use-case.js.map +1 -1
  41. package/dist/application/use-cases/planning-use-case.d.ts.map +1 -1
  42. package/dist/application/use-cases/planning-use-case.js +10 -1
  43. package/dist/application/use-cases/planning-use-case.js.map +1 -1
  44. package/dist/application/use-cases/react-orchestration-use-case.d.ts.map +1 -1
  45. package/dist/application/use-cases/react-orchestration-use-case.js +6 -2
  46. package/dist/application/use-cases/react-orchestration-use-case.js.map +1 -1
  47. package/dist/domain/entities/documentation.d.ts +35 -0
  48. package/dist/domain/entities/documentation.d.ts.map +1 -0
  49. package/dist/domain/entities/documentation.js +6 -0
  50. package/dist/domain/entities/documentation.js.map +1 -0
  51. package/dist/domain/entities/product-requirements.d.ts +50 -0
  52. package/dist/domain/entities/product-requirements.d.ts.map +1 -0
  53. package/dist/domain/entities/product-requirements.js +6 -0
  54. package/dist/domain/entities/product-requirements.js.map +1 -0
  55. package/dist/domain/entities/task.d.ts +152 -0
  56. package/dist/domain/entities/task.d.ts.map +1 -0
  57. package/dist/domain/entities/task.js +61 -0
  58. package/dist/domain/entities/task.js.map +1 -0
  59. package/dist/domain/interfaces/agent.interface.d.ts +15 -0
  60. package/dist/domain/interfaces/agent.interface.d.ts.map +1 -0
  61. package/dist/domain/interfaces/agent.interface.js +6 -0
  62. package/dist/domain/interfaces/agent.interface.js.map +1 -0
  63. package/dist/domain/services/environment-mode-manager.d.ts +18 -0
  64. package/dist/domain/services/environment-mode-manager.d.ts.map +1 -0
  65. package/dist/domain/services/environment-mode-manager.js +37 -0
  66. package/dist/domain/services/environment-mode-manager.js.map +1 -0
  67. package/dist/domain/services/react-loop.d.ts +8 -0
  68. package/dist/domain/services/react-loop.d.ts.map +1 -1
  69. package/dist/domain/services/react-loop.js +82 -6
  70. package/dist/domain/services/react-loop.js.map +1 -1
  71. package/dist/domain/services/risk-tier-detector.d.ts +18 -0
  72. package/dist/domain/services/risk-tier-detector.d.ts.map +1 -0
  73. package/dist/domain/services/risk-tier-detector.js +65 -0
  74. package/dist/domain/services/risk-tier-detector.js.map +1 -0
  75. package/dist/formatter.d.ts +2 -2
  76. package/dist/formatter.d.ts.map +1 -1
  77. package/dist/formatter.js +40 -20
  78. package/dist/formatter.js.map +1 -1
  79. package/dist/index.js +218 -125
  80. package/dist/index.js.map +1 -1
  81. package/dist/infrastructure/ai/cohere-ai-service.d.ts +3 -1
  82. package/dist/infrastructure/ai/cohere-ai-service.d.ts.map +1 -1
  83. package/dist/infrastructure/ai/cohere-ai-service.js +65 -5
  84. package/dist/infrastructure/ai/cohere-ai-service.js.map +1 -1
  85. package/dist/infrastructure/ai/fake-ai-service.d.ts +22 -0
  86. package/dist/infrastructure/ai/fake-ai-service.d.ts.map +1 -0
  87. package/dist/infrastructure/ai/fake-ai-service.js +59 -0
  88. package/dist/infrastructure/ai/fake-ai-service.js.map +1 -0
  89. package/dist/infrastructure/ai/provider-ai-service.d.ts +59 -0
  90. package/dist/infrastructure/ai/provider-ai-service.d.ts.map +1 -0
  91. package/dist/infrastructure/ai/provider-ai-service.js +477 -0
  92. package/dist/infrastructure/ai/provider-ai-service.js.map +1 -0
  93. package/dist/infrastructure/cache/embedding-cache.d.ts +13 -1
  94. package/dist/infrastructure/cache/embedding-cache.d.ts.map +1 -1
  95. package/dist/infrastructure/cache/embedding-cache.js +80 -9
  96. package/dist/infrastructure/cache/embedding-cache.js.map +1 -1
  97. package/dist/infrastructure/cache/query-result-cache.d.ts +68 -0
  98. package/dist/infrastructure/cache/query-result-cache.d.ts.map +1 -0
  99. package/dist/infrastructure/cache/query-result-cache.js +138 -0
  100. package/dist/infrastructure/cache/query-result-cache.js.map +1 -0
  101. package/dist/infrastructure/cache/response-cache.d.ts +86 -0
  102. package/dist/infrastructure/cache/response-cache.d.ts.map +1 -0
  103. package/dist/infrastructure/cache/response-cache.js +224 -0
  104. package/dist/infrastructure/cache/response-cache.js.map +1 -0
  105. package/dist/infrastructure/cache/security-scan-cache.d.ts +57 -0
  106. package/dist/infrastructure/cache/security-scan-cache.d.ts.map +1 -0
  107. package/dist/infrastructure/cache/security-scan-cache.js +124 -0
  108. package/dist/infrastructure/cache/security-scan-cache.js.map +1 -0
  109. package/dist/infrastructure/completion/bash-completion.d.ts +8 -0
  110. package/dist/infrastructure/completion/bash-completion.d.ts.map +1 -0
  111. package/dist/infrastructure/completion/bash-completion.js +101 -0
  112. package/dist/infrastructure/completion/bash-completion.js.map +1 -0
  113. package/dist/infrastructure/completion/completion-generator.d.ts +42 -0
  114. package/dist/infrastructure/completion/completion-generator.d.ts.map +1 -0
  115. package/dist/infrastructure/completion/completion-generator.js +184 -0
  116. package/dist/infrastructure/completion/completion-generator.js.map +1 -0
  117. package/dist/infrastructure/completion/fish-completion.d.ts +8 -0
  118. package/dist/infrastructure/completion/fish-completion.d.ts.map +1 -0
  119. package/dist/infrastructure/completion/fish-completion.js +65 -0
  120. package/dist/infrastructure/completion/fish-completion.js.map +1 -0
  121. package/dist/infrastructure/completion/zsh-completion.d.ts +8 -0
  122. package/dist/infrastructure/completion/zsh-completion.d.ts.map +1 -0
  123. package/dist/infrastructure/completion/zsh-completion.js +85 -0
  124. package/dist/infrastructure/completion/zsh-completion.js.map +1 -0
  125. package/dist/infrastructure/context/context-compressor.d.ts +94 -0
  126. package/dist/infrastructure/context/context-compressor.d.ts.map +1 -0
  127. package/dist/infrastructure/context/context-compressor.js +329 -0
  128. package/dist/infrastructure/context/context-compressor.js.map +1 -0
  129. package/dist/infrastructure/context/conversation-context.d.ts +58 -0
  130. package/dist/infrastructure/context/conversation-context.d.ts.map +1 -0
  131. package/dist/infrastructure/context/conversation-context.js +170 -0
  132. package/dist/infrastructure/context/conversation-context.js.map +1 -0
  133. package/dist/infrastructure/context/session-manager.d.ts +26 -0
  134. package/dist/infrastructure/context/session-manager.d.ts.map +1 -0
  135. package/dist/infrastructure/context/session-manager.js +98 -0
  136. package/dist/infrastructure/context/session-manager.js.map +1 -0
  137. package/dist/infrastructure/cost/cost-tracker.d.ts +1 -0
  138. package/dist/infrastructure/cost/cost-tracker.d.ts.map +1 -1
  139. package/dist/infrastructure/cost/cost-tracker.js +12 -5
  140. package/dist/infrastructure/cost/cost-tracker.js.map +1 -1
  141. package/dist/infrastructure/governance/nist-ai-rmf.d.ts +6 -8
  142. package/dist/infrastructure/governance/nist-ai-rmf.d.ts.map +1 -1
  143. package/dist/infrastructure/governance/nist-ai-rmf.js +6 -8
  144. package/dist/infrastructure/governance/nist-ai-rmf.js.map +1 -1
  145. package/dist/infrastructure/governance/policy-as-code.d.ts +6 -8
  146. package/dist/infrastructure/governance/policy-as-code.d.ts.map +1 -1
  147. package/dist/infrastructure/governance/policy-as-code.js +24 -11
  148. package/dist/infrastructure/governance/policy-as-code.js.map +1 -1
  149. package/dist/infrastructure/governance/prompt-to-code-lineage.d.ts +7 -9
  150. package/dist/infrastructure/governance/prompt-to-code-lineage.d.ts.map +1 -1
  151. package/dist/infrastructure/governance/prompt-to-code-lineage.js +7 -9
  152. package/dist/infrastructure/governance/prompt-to-code-lineage.js.map +1 -1
  153. package/dist/infrastructure/observability/execution-tracer.d.ts +5 -2
  154. package/dist/infrastructure/observability/execution-tracer.d.ts.map +1 -1
  155. package/dist/infrastructure/observability/execution-tracer.js +45 -8
  156. package/dist/infrastructure/observability/execution-tracer.js.map +1 -1
  157. package/dist/infrastructure/providers/cohere-provider.d.ts +39 -0
  158. package/dist/infrastructure/providers/cohere-provider.d.ts.map +1 -0
  159. package/dist/infrastructure/providers/cohere-provider.js +359 -0
  160. package/dist/infrastructure/providers/cohere-provider.js.map +1 -0
  161. package/dist/infrastructure/providers/fake-provider.d.ts +43 -0
  162. package/dist/infrastructure/providers/fake-provider.d.ts.map +1 -0
  163. package/dist/infrastructure/providers/fake-provider.js +130 -0
  164. package/dist/infrastructure/providers/fake-provider.js.map +1 -0
  165. package/dist/infrastructure/providers/local-llm-provider.d.ts +49 -0
  166. package/dist/infrastructure/providers/local-llm-provider.d.ts.map +1 -0
  167. package/dist/infrastructure/providers/local-llm-provider.js +330 -0
  168. package/dist/infrastructure/providers/local-llm-provider.js.map +1 -0
  169. package/dist/infrastructure/providers/model-config.types.d.ts +70 -0
  170. package/dist/infrastructure/providers/model-config.types.d.ts.map +1 -0
  171. package/dist/infrastructure/providers/model-config.types.js +9 -0
  172. package/dist/infrastructure/providers/model-config.types.js.map +1 -0
  173. package/dist/infrastructure/providers/model-provider.interface.d.ts +113 -0
  174. package/dist/infrastructure/providers/model-provider.interface.d.ts.map +1 -0
  175. package/dist/infrastructure/providers/model-provider.interface.js +8 -0
  176. package/dist/infrastructure/providers/model-provider.interface.js.map +1 -0
  177. package/dist/infrastructure/providers/openai-provider.d.ts +38 -0
  178. package/dist/infrastructure/providers/openai-provider.d.ts.map +1 -0
  179. package/dist/infrastructure/providers/openai-provider.js +413 -0
  180. package/dist/infrastructure/providers/openai-provider.js.map +1 -0
  181. package/dist/infrastructure/providers/operation-provider-resolver.d.ts +48 -0
  182. package/dist/infrastructure/providers/operation-provider-resolver.d.ts.map +1 -0
  183. package/dist/infrastructure/providers/operation-provider-resolver.js +105 -0
  184. package/dist/infrastructure/providers/operation-provider-resolver.js.map +1 -0
  185. package/dist/infrastructure/providers/provider-config-loader.d.ts +37 -0
  186. package/dist/infrastructure/providers/provider-config-loader.d.ts.map +1 -0
  187. package/dist/infrastructure/providers/provider-config-loader.js +120 -0
  188. package/dist/infrastructure/providers/provider-config-loader.js.map +1 -0
  189. package/dist/infrastructure/providers/provider-registry.d.ts +53 -0
  190. package/dist/infrastructure/providers/provider-registry.d.ts.map +1 -0
  191. package/dist/infrastructure/providers/provider-registry.js +88 -0
  192. package/dist/infrastructure/providers/provider-registry.js.map +1 -0
  193. package/dist/infrastructure/security/ai-sast-scanner.d.ts +4 -0
  194. package/dist/infrastructure/security/ai-sast-scanner.d.ts.map +1 -1
  195. package/dist/infrastructure/security/ai-sast-scanner.js +82 -4
  196. package/dist/infrastructure/security/ai-sast-scanner.js.map +1 -1
  197. package/dist/infrastructure/security/enhanced-security-gate.d.ts +2 -0
  198. package/dist/infrastructure/security/enhanced-security-gate.d.ts.map +1 -1
  199. package/dist/infrastructure/security/enhanced-security-gate.js +74 -15
  200. package/dist/infrastructure/security/enhanced-security-gate.js.map +1 -1
  201. package/dist/infrastructure/storage/plan-repository.d.ts +38 -0
  202. package/dist/infrastructure/storage/plan-repository.d.ts.map +1 -0
  203. package/dist/infrastructure/storage/plan-repository.js +133 -0
  204. package/dist/infrastructure/storage/plan-repository.js.map +1 -0
  205. package/dist/infrastructure/storage/sqlite-embedding-repository.d.ts +11 -0
  206. package/dist/infrastructure/storage/sqlite-embedding-repository.d.ts.map +1 -1
  207. package/dist/infrastructure/storage/sqlite-embedding-repository.js +121 -6
  208. package/dist/infrastructure/storage/sqlite-embedding-repository.js.map +1 -1
  209. package/dist/infrastructure/storage/task-helpers.d.ts +58 -0
  210. package/dist/infrastructure/storage/task-helpers.d.ts.map +1 -0
  211. package/dist/infrastructure/storage/task-helpers.js +157 -0
  212. package/dist/infrastructure/storage/task-helpers.js.map +1 -0
  213. package/dist/infrastructure/storage/task-repository.d.ts +67 -0
  214. package/dist/infrastructure/storage/task-repository.d.ts.map +1 -0
  215. package/dist/infrastructure/storage/task-repository.js +205 -0
  216. package/dist/infrastructure/storage/task-repository.js.map +1 -0
  217. package/dist/infrastructure/ux/bi-directional-learning.d.ts +22 -0
  218. package/dist/infrastructure/ux/bi-directional-learning.d.ts.map +1 -1
  219. package/dist/infrastructure/ux/bi-directional-learning.js +144 -7
  220. package/dist/infrastructure/ux/bi-directional-learning.js.map +1 -1
  221. package/dist/infrastructure/ux/capability-boundaries.d.ts +50 -0
  222. package/dist/infrastructure/ux/capability-boundaries.d.ts.map +1 -0
  223. package/dist/infrastructure/ux/capability-boundaries.js +167 -0
  224. package/dist/infrastructure/ux/capability-boundaries.js.map +1 -0
  225. package/dist/infrastructure/ux/comprehensive-formatter.d.ts +63 -0
  226. package/dist/infrastructure/ux/comprehensive-formatter.d.ts.map +1 -0
  227. package/dist/infrastructure/ux/comprehensive-formatter.js +212 -0
  228. package/dist/infrastructure/ux/comprehensive-formatter.js.map +1 -0
  229. package/dist/infrastructure/ux/contextual-feature-discovery.d.ts +24 -0
  230. package/dist/infrastructure/ux/contextual-feature-discovery.d.ts.map +1 -0
  231. package/dist/infrastructure/ux/contextual-feature-discovery.js +144 -0
  232. package/dist/infrastructure/ux/contextual-feature-discovery.js.map +1 -0
  233. package/dist/infrastructure/ux/expectation-management.d.ts +33 -0
  234. package/dist/infrastructure/ux/expectation-management.d.ts.map +1 -1
  235. package/dist/infrastructure/ux/expectation-management.js +138 -4
  236. package/dist/infrastructure/ux/expectation-management.js.map +1 -1
  237. package/dist/infrastructure/ux/feature-discovery.d.ts +47 -0
  238. package/dist/infrastructure/ux/feature-discovery.d.ts.map +1 -0
  239. package/dist/infrastructure/ux/feature-discovery.js +190 -0
  240. package/dist/infrastructure/ux/feature-discovery.js.map +1 -0
  241. package/dist/infrastructure/ux/feedback-prompt.d.ts +42 -0
  242. package/dist/infrastructure/ux/feedback-prompt.d.ts.map +1 -0
  243. package/dist/infrastructure/ux/feedback-prompt.js +181 -0
  244. package/dist/infrastructure/ux/feedback-prompt.js.map +1 -0
  245. package/dist/infrastructure/ux/hitl-review-portal.d.ts +47 -0
  246. package/dist/infrastructure/ux/hitl-review-portal.d.ts.map +1 -0
  247. package/dist/infrastructure/ux/hitl-review-portal.js +228 -0
  248. package/dist/infrastructure/ux/hitl-review-portal.js.map +1 -0
  249. package/dist/infrastructure/ux/hitl-validation.d.ts +35 -0
  250. package/dist/infrastructure/ux/hitl-validation.d.ts.map +1 -1
  251. package/dist/infrastructure/ux/hitl-validation.js +86 -0
  252. package/dist/infrastructure/ux/hitl-validation.js.map +1 -1
  253. package/dist/infrastructure/ux/progress-indicator.d.ts +55 -0
  254. package/dist/infrastructure/ux/progress-indicator.d.ts.map +1 -0
  255. package/dist/infrastructure/ux/progress-indicator.js +131 -0
  256. package/dist/infrastructure/ux/progress-indicator.js.map +1 -0
  257. package/dist/infrastructure/ux/progressive-disclosure.d.ts.map +1 -1
  258. package/dist/infrastructure/ux/progressive-disclosure.js +2 -1
  259. package/dist/infrastructure/ux/progressive-disclosure.js.map +1 -1
  260. package/dist/infrastructure/ux/proportional-friction.d.ts +73 -0
  261. package/dist/infrastructure/ux/proportional-friction.d.ts.map +1 -0
  262. package/dist/infrastructure/ux/proportional-friction.js +200 -0
  263. package/dist/infrastructure/ux/proportional-friction.js.map +1 -0
  264. package/dist/infrastructure/ux/review-checkpoint.d.ts +35 -0
  265. package/dist/infrastructure/ux/review-checkpoint.d.ts.map +1 -0
  266. package/dist/infrastructure/ux/review-checkpoint.js +119 -0
  267. package/dist/infrastructure/ux/review-checkpoint.js.map +1 -0
  268. package/dist/infrastructure/ux/staged-feature-intro.d.ts +47 -0
  269. package/dist/infrastructure/ux/staged-feature-intro.d.ts.map +1 -0
  270. package/dist/infrastructure/ux/staged-feature-intro.js +144 -0
  271. package/dist/infrastructure/ux/staged-feature-intro.js.map +1 -0
  272. package/dist/infrastructure/ux/syntax-highlighter.d.ts +21 -0
  273. package/dist/infrastructure/ux/syntax-highlighter.d.ts.map +1 -0
  274. package/dist/infrastructure/ux/syntax-highlighter.js +172 -0
  275. package/dist/infrastructure/ux/syntax-highlighter.js.map +1 -0
  276. package/dist/infrastructure/validation/agent-feedback.d.ts +115 -0
  277. package/dist/infrastructure/validation/agent-feedback.d.ts.map +1 -0
  278. package/dist/infrastructure/validation/agent-feedback.js +227 -0
  279. package/dist/infrastructure/validation/agent-feedback.js.map +1 -0
  280. package/dist/infrastructure/validation/agent-validation-helper.d.ts +75 -0
  281. package/dist/infrastructure/validation/agent-validation-helper.d.ts.map +1 -0
  282. package/dist/infrastructure/validation/agent-validation-helper.js +88 -0
  283. package/dist/infrastructure/validation/agent-validation-helper.js.map +1 -0
  284. package/dist/infrastructure/validation/feedback-stats.d.ts +99 -0
  285. package/dist/infrastructure/validation/feedback-stats.d.ts.map +1 -0
  286. package/dist/infrastructure/validation/feedback-stats.js +173 -0
  287. package/dist/infrastructure/validation/feedback-stats.js.map +1 -0
  288. package/dist/infrastructure/validation/review-handler.d.ts +54 -0
  289. package/dist/infrastructure/validation/review-handler.d.ts.map +1 -0
  290. package/dist/infrastructure/validation/review-handler.js +206 -0
  291. package/dist/infrastructure/validation/review-handler.js.map +1 -0
  292. package/dist/infrastructure/validation/summary-aggregator.d.ts +42 -0
  293. package/dist/infrastructure/validation/summary-aggregator.d.ts.map +1 -0
  294. package/dist/infrastructure/validation/summary-aggregator.js +156 -0
  295. package/dist/infrastructure/validation/summary-aggregator.js.map +1 -0
  296. package/dist/infrastructure/validation/summary-extractor.d.ts +59 -0
  297. package/dist/infrastructure/validation/summary-extractor.d.ts.map +1 -0
  298. package/dist/infrastructure/validation/summary-extractor.js +102 -0
  299. package/dist/infrastructure/validation/summary-extractor.js.map +1 -0
  300. package/dist/infrastructure/validation/trace-summary.d.ts +72 -0
  301. package/dist/infrastructure/validation/trace-summary.d.ts.map +1 -0
  302. package/dist/infrastructure/validation/trace-summary.js +371 -0
  303. package/dist/infrastructure/validation/trace-summary.js.map +1 -0
  304. package/dist/infrastructure/validation/trust-config.d.ts +27 -0
  305. package/dist/infrastructure/validation/trust-config.d.ts.map +1 -0
  306. package/dist/infrastructure/validation/trust-config.js +113 -0
  307. package/dist/infrastructure/validation/trust-config.js.map +1 -0
  308. package/dist/infrastructure/xai/attention-visualizer.d.ts +6 -8
  309. package/dist/infrastructure/xai/attention-visualizer.d.ts.map +1 -1
  310. package/dist/infrastructure/xai/attention-visualizer.js +6 -8
  311. package/dist/infrastructure/xai/attention-visualizer.js.map +1 -1
  312. package/dist/infrastructure/xai/cot-visualizer.d.ts +6 -8
  313. package/dist/infrastructure/xai/cot-visualizer.d.ts.map +1 -1
  314. package/dist/infrastructure/xai/cot-visualizer.js +62 -18
  315. package/dist/infrastructure/xai/cot-visualizer.js.map +1 -1
  316. package/dist/infrastructure/xai/decision-tree-log.d.ts +6 -10
  317. package/dist/infrastructure/xai/decision-tree-log.d.ts.map +1 -1
  318. package/dist/infrastructure/xai/decision-tree-log.js +6 -10
  319. package/dist/infrastructure/xai/decision-tree-log.js.map +1 -1
  320. package/dist/infrastructure/xai/interactive-xai.d.ts +6 -8
  321. package/dist/infrastructure/xai/interactive-xai.d.ts.map +1 -1
  322. package/dist/infrastructure/xai/interactive-xai.js +6 -8
  323. package/dist/infrastructure/xai/interactive-xai.js.map +1 -1
  324. package/dist/infrastructure/xai/uncertainty-quantifier.d.ts +6 -9
  325. package/dist/infrastructure/xai/uncertainty-quantifier.d.ts.map +1 -1
  326. package/dist/infrastructure/xai/uncertainty-quantifier.js +6 -9
  327. package/dist/infrastructure/xai/uncertainty-quantifier.js.map +1 -1
  328. package/dist/presentation/cli/commands/ask-command.d.ts.map +1 -1
  329. package/dist/presentation/cli/commands/ask-command.js +152 -13
  330. package/dist/presentation/cli/commands/ask-command.js.map +1 -1
  331. package/dist/presentation/cli/commands/docs-command.d.ts +12 -0
  332. package/dist/presentation/cli/commands/docs-command.d.ts.map +1 -0
  333. package/dist/presentation/cli/commands/docs-command.js +196 -0
  334. package/dist/presentation/cli/commands/docs-command.js.map +1 -0
  335. package/dist/presentation/cli/commands/fix-command.d.ts +8 -0
  336. package/dist/presentation/cli/commands/fix-command.d.ts.map +1 -0
  337. package/dist/presentation/cli/commands/fix-command.js +309 -0
  338. package/dist/presentation/cli/commands/fix-command.js.map +1 -0
  339. package/dist/presentation/cli/commands/help-command.d.ts.map +1 -1
  340. package/dist/presentation/cli/commands/help-command.js +2 -0
  341. package/dist/presentation/cli/commands/help-command.js.map +1 -1
  342. package/dist/presentation/cli/commands/orchestrate-command.d.ts +2 -0
  343. package/dist/presentation/cli/commands/orchestrate-command.d.ts.map +1 -1
  344. package/dist/presentation/cli/commands/orchestrate-command.js +88 -1
  345. package/dist/presentation/cli/commands/orchestrate-command.js.map +1 -1
  346. package/dist/presentation/cli/commands/plan-command.d.ts +1 -0
  347. package/dist/presentation/cli/commands/plan-command.d.ts.map +1 -1
  348. package/dist/presentation/cli/commands/plan-command.js +136 -7
  349. package/dist/presentation/cli/commands/plan-command.js.map +1 -1
  350. package/dist/presentation/cli/commands/product-command.d.ts +12 -0
  351. package/dist/presentation/cli/commands/product-command.d.ts.map +1 -0
  352. package/dist/presentation/cli/commands/product-command.js +188 -0
  353. package/dist/presentation/cli/commands/product-command.js.map +1 -0
  354. package/dist/presentation/cli/commands/react-command.d.ts.map +1 -1
  355. package/dist/presentation/cli/commands/react-command.js +98 -16
  356. package/dist/presentation/cli/commands/react-command.js.map +1 -1
  357. package/dist/presentation/cli/commands/review-command.d.ts +14 -0
  358. package/dist/presentation/cli/commands/review-command.d.ts.map +1 -0
  359. package/dist/presentation/cli/commands/review-command.js +22 -0
  360. package/dist/presentation/cli/commands/review-command.js.map +1 -0
  361. package/dist/presentation/cli/commands/run-command.d.ts +15 -0
  362. package/dist/presentation/cli/commands/run-command.d.ts.map +1 -0
  363. package/dist/presentation/cli/commands/run-command.js +29 -0
  364. package/dist/presentation/cli/commands/run-command.js.map +1 -0
  365. package/dist/presentation/cli/commands/setup-command.d.ts.map +1 -1
  366. package/dist/presentation/cli/commands/setup-command.js +67 -12
  367. package/dist/presentation/cli/commands/setup-command.js.map +1 -1
  368. package/dist/presentation/cli/commands/smart-command.d.ts +3 -1
  369. package/dist/presentation/cli/commands/smart-command.d.ts.map +1 -1
  370. package/dist/presentation/cli/commands/smart-command.js +227 -23
  371. package/dist/presentation/cli/commands/smart-command.js.map +1 -1
  372. package/dist/presentation/cli/commands/status-command.d.ts +11 -0
  373. package/dist/presentation/cli/commands/status-command.d.ts.map +1 -0
  374. package/dist/presentation/cli/commands/status-command.js +176 -0
  375. package/dist/presentation/cli/commands/status-command.js.map +1 -0
  376. package/dist/presentation/cli/commands/suggest-command.d.ts +13 -0
  377. package/dist/presentation/cli/commands/suggest-command.d.ts.map +1 -0
  378. package/dist/presentation/cli/commands/suggest-command.js +25 -0
  379. package/dist/presentation/cli/commands/suggest-command.js.map +1 -0
  380. package/dist/presentation/cli/commands/trace-command.d.ts.map +1 -1
  381. package/dist/presentation/cli/commands/trace-command.js +9 -5
  382. package/dist/presentation/cli/commands/trace-command.js.map +1 -1
  383. package/dist/presentation/cli/commands/undo-command.js +15 -6
  384. package/dist/presentation/cli/commands/undo-command.js.map +1 -1
  385. package/dist/presentation/cli/error-display.d.ts +2 -0
  386. package/dist/presentation/cli/error-display.d.ts.map +1 -1
  387. package/dist/presentation/cli/error-display.js +220 -2
  388. package/dist/presentation/cli/error-display.js.map +1 -1
  389. package/dist/presentation/cli/keyboard-shortcuts.d.ts +27 -0
  390. package/dist/presentation/cli/keyboard-shortcuts.d.ts.map +1 -0
  391. package/dist/presentation/cli/keyboard-shortcuts.js +77 -0
  392. package/dist/presentation/cli/keyboard-shortcuts.js.map +1 -0
  393. package/dist/session.d.ts.map +1 -1
  394. package/dist/session.js +39 -2
  395. package/dist/session.js.map +1 -1
  396. package/dist/ui.d.ts.map +1 -1
  397. package/dist/ui.js +8 -5
  398. package/dist/ui.js.map +1 -1
  399. package/dist/utils/version.js +2 -2
  400. package/dist/verification/backup.d.ts.map +1 -1
  401. package/dist/verification/backup.js +24 -3
  402. package/dist/verification/backup.js.map +1 -1
  403. package/dist/verification/compiler.js +47 -12
  404. package/dist/verification/compiler.js.map +1 -1
  405. package/package.json +10 -2
@@ -3,12 +3,28 @@
3
3
  * Uses clean architecture - AskQuestionUseCase
4
4
  */
5
5
  import { container } from '../../../application/services/dependency-container.js';
6
- import { colors, sectionHeader, formatNumber, formatPath, formatScore, createTable, warning, info, } from '../../../ui.js';
6
+ import { colors, sectionHeader, formatNumber, formatPath, formatScore, createTable, newline, warning, info, separator, } from '../../../ui.js';
7
7
  import { cleanResponse } from '../../../formatter.js';
8
8
  import { executionTracer } from '../../../infrastructure/observability/execution-tracer.js';
9
9
  import { findCodebaseRoot } from '../../../domain/services/codebase-detector.js';
10
10
  import { displayError } from '../error-display.js';
11
11
  export async function executeAskCommand(question, options) {
12
+ // Track start time for summary statistics
13
+ const startTime = Date.now();
14
+ // Capability Boundaries: Check for unsupported operations
15
+ try {
16
+ const { CapabilityBoundaryDetector, displayCapabilityBoundary } = await import('../../../infrastructure/ux/capability-boundaries.js');
17
+ const detector = new CapabilityBoundaryDetector();
18
+ const boundary = detector.detectUnsupported(question);
19
+ if (boundary) {
20
+ displayCapabilityBoundary(boundary);
21
+ executionTracer.endRun();
22
+ return; // Don't proceed with unsupported operation
23
+ }
24
+ }
25
+ catch {
26
+ // Capability boundary check failed - continue anyway (non-blocking)
27
+ }
12
28
  // Start execution tracing
13
29
  const codebaseInfo = findCodebaseRoot(process.cwd());
14
30
  const runId = executionTracer.startRun('ask', {
@@ -26,6 +42,12 @@ export async function executeAskCommand(question, options) {
26
42
  const expectationManagement = container.expectationManagement;
27
43
  let capabilityAssessment = null;
28
44
  if (expectationManagement) {
45
+ // Show first-time AI disclaimer if needed
46
+ if (expectationManagement.shouldShowFirstTimeDisclaimer()) {
47
+ console.log(warning(expectationManagement.formatDisclaimerForConsole()));
48
+ newline();
49
+ expectationManagement.markDisclaimerShown();
50
+ }
29
51
  capabilityAssessment = expectationManagement.assessCapability('ask_question', {
30
52
  complexity: question.split(' ').length > 20 ? 'complex' : question.split(' ').length > 10 ? 'moderate' : 'simple',
31
53
  uncertainty: undefined, // Will be filled from result if available
@@ -54,16 +76,39 @@ export async function executeAskCommand(question, options) {
54
76
  console.error(colors.red(`\nStreaming error: ${error.message}`));
55
77
  },
56
78
  } : undefined;
79
+ // Get conversation context and resolve references
80
+ const { conversationContextManager } = await import('../../../infrastructure/context/conversation-context.js');
81
+ const { sessionManager } = await import('../../../infrastructure/context/session-manager.js');
82
+ const sessionId = sessionManager.getSessionId(process.cwd());
83
+ const history = conversationContextManager.getHistory(sessionId, 5);
84
+ // Resolve references in query (e.g., "it", "that", "the previous")
85
+ const resolvedQuestion = conversationContextManager.resolveReferences(sessionId, question);
86
+ const entities = conversationContextManager.extractEntities(resolvedQuestion);
57
87
  // Display search results first (before streaming answer)
58
88
  const result = await useCase.execute({
59
- query: question,
89
+ query: resolvedQuestion,
60
90
  maxResults: 15,
61
91
  streamHandler,
92
+ conversationHistory: history.map(turn => ({
93
+ query: turn.query,
94
+ response: turn.response,
95
+ timestamp: turn.timestamp,
96
+ })),
62
97
  });
63
- if (result.chunks.length === 0) {
98
+ // Check if this is a git status response (has answer but no chunks)
99
+ const isGitResponse = result.answer && result.answer.includes('Git Repository Status');
100
+ if (result.chunks.length === 0 && !isGitResponse) {
64
101
  console.log('No relevant code found. Run "codehere index" first.');
65
102
  return;
66
103
  }
104
+ // If git response, display it directly
105
+ if (isGitResponse) {
106
+ sectionHeader('Response');
107
+ const formattedResponse = cleanResponse(result.answer);
108
+ console.log(formattedResponse);
109
+ newline();
110
+ return;
111
+ }
67
112
  // Display search results
68
113
  sectionHeader('Search Results');
69
114
  const fileTable = createTable(['File', 'Relevance', 'Preview'], result.chunks.slice(0, 10).map(r => [
@@ -85,9 +130,53 @@ export async function executeAskCommand(question, options) {
85
130
  console.log();
86
131
  }
87
132
  else {
88
- const formattedResponse = cleanResponse(result.answer);
133
+ const { formatContent } = await import('../../../infrastructure/ux/comprehensive-formatter.js');
134
+ const formattedResponse = formatContent(result.answer || '', { indent: 0, maxWidth: 76 });
89
135
  console.log(formattedResponse);
90
136
  }
137
+ newline();
138
+ // Show summary statistics
139
+ const executionTime = ((Date.now() - startTime) / 1000).toFixed(2);
140
+ const summaryRows = [];
141
+ summaryRows.push(['Execution Time', `${executionTime}s`]);
142
+ // Performance metrics breakdown (if available)
143
+ if (result.performanceMetrics) {
144
+ const pm = result.performanceMetrics;
145
+ if (pm.embeddingGenTime && pm.embeddingGenTime > 0) {
146
+ summaryRows.push([' Embedding Generation', `${(pm.embeddingGenTime / 1000).toFixed(2)}s`]);
147
+ }
148
+ if (pm.searchTime && pm.searchTime > 0) {
149
+ summaryRows.push([' Code Search', `${(pm.searchTime / 1000).toFixed(2)}s`]);
150
+ }
151
+ if (pm.rerankTime && pm.rerankTime > 0) {
152
+ summaryRows.push([' Rerank', `${(pm.rerankTime / 1000).toFixed(2)}s`]);
153
+ }
154
+ if (pm.chatTime && pm.chatTime > 0) {
155
+ summaryRows.push([' AI Chat', `${(pm.chatTime / 1000).toFixed(2)}s`]);
156
+ }
157
+ }
158
+ if (result.chunks.length > 0) {
159
+ summaryRows.push(['Files Found', formatNumber(result.chunks.length)]);
160
+ summaryRows.push(['Chunks Retrieved', formatNumber(result.chunks.length)]);
161
+ }
162
+ if (result.tokenEstimate) {
163
+ summaryRows.push(['Tokens', formatNumber(result.tokenEstimate)]);
164
+ }
165
+ if (result.memories && result.memories.length > 0) {
166
+ summaryRows.push(['Memories Used', formatNumber(result.memories.length)]);
167
+ }
168
+ if (result.compressionMetrics && result.compressionMetrics.reductionPercent > 0) {
169
+ summaryRows.push(['Context Compression', `${result.compressionMetrics.reductionPercent.toFixed(1)}% reduction`]);
170
+ summaryRows.push([' Original Tokens', formatNumber(result.compressionMetrics.originalTokens)]);
171
+ summaryRows.push([' Compressed Tokens', formatNumber(result.compressionMetrics.compressedTokens)]);
172
+ }
173
+ if (summaryRows.length > 1) {
174
+ console.log(separator('─', 80));
175
+ sectionHeader('Summary');
176
+ const summaryTable = createTable(['Metric', 'Value'], summaryRows);
177
+ console.log(summaryTable.toString());
178
+ newline();
179
+ }
91
180
  // Expectation Management: Show warnings if uncertainty is high
92
181
  if (result.uncertainty && expectationManagement) {
93
182
  if (result.uncertainty.isHallucinationRisk) {
@@ -104,18 +193,68 @@ export async function executeAskCommand(question, options) {
104
193
  }
105
194
  }
106
195
  }
107
- // Progressive Disclosure: Suggest next features for beginner users
108
- if (progressiveDisclosure) {
109
- const profile = progressiveDisclosure.getUserProfile(userId);
110
- if (profile.level === 'beginner' || profile.level === 'intermediate') {
111
- const nextFeatures = progressiveDisclosure.getNextSuggestedFeatures(userId, 1);
112
- if (nextFeatures.length > 0) {
113
- const feature = nextFeatures[0];
114
- console.log(info(`💡 Tip: Try "${feature.featureName}" - ${feature.description}`));
115
- console.log(colors.dim(` Run: codehere ${feature.featureId === 'edit_file' ? 'edit' : feature.featureId === 'react_loop' ? 'react' : 'help'} for more info\n`));
196
+ // Contextual Feature Discovery: Show relevant features based on query (Task 2.2)
197
+ const { shouldShowContextualSuggestion } = await import('../../../infrastructure/ux/contextual-feature-discovery.js');
198
+ const contextualSuggestion = shouldShowContextualSuggestion(question, 'ask');
199
+ if (contextualSuggestion) {
200
+ newline();
201
+ console.log(colors.bold(`💡 Tip: ${contextualSuggestion.reason}`));
202
+ console.log(colors.dim(` Try: ${colors.cyan(contextualSuggestion.command)}`));
203
+ console.log(colors.dim(` ${contextualSuggestion.description}`));
204
+ newline();
205
+ }
206
+ else {
207
+ // Progressive Disclosure: Suggest next features for beginner users (fallback)
208
+ if (progressiveDisclosure) {
209
+ const profile = progressiveDisclosure.getUserProfile(userId);
210
+ if (profile.level === 'beginner' || profile.level === 'intermediate') {
211
+ const nextFeatures = progressiveDisclosure.getNextSuggestedFeatures(userId, 1);
212
+ if (nextFeatures.length > 0) {
213
+ const feature = nextFeatures[0];
214
+ console.log(info(`💡 Tip: Try "${feature.featureName}" - ${feature.description}`));
215
+ console.log(colors.dim(` Run: codehere ${feature.featureId === 'edit_file' ? 'edit' : feature.featureId === 'react_loop' ? 'react' : 'help'} for more info\n`));
216
+ }
116
217
  }
117
218
  }
118
219
  }
220
+ // Store conversation turn for future reference resolution
221
+ try {
222
+ const { conversationContextManager } = await import('../../../infrastructure/context/conversation-context.js');
223
+ const { sessionManager } = await import('../../../infrastructure/context/session-manager.js');
224
+ const sessionId = sessionManager.getSessionId(process.cwd());
225
+ const response = result.answer || 'No answer generated';
226
+ const entities = conversationContextManager.extractEntities(resolvedQuestion);
227
+ conversationContextManager.addTurn(sessionId, question, response, entities, 'ask');
228
+ }
229
+ catch (error) {
230
+ // Don't fail if conversation tracking fails
231
+ }
232
+ // Task 6.1: Explicit Feedback Mechanisms - Prompt for feedback after response
233
+ try {
234
+ const { promptForFeedback, storeFeedback, displayFeedbackConfirmation } = await import('../../../infrastructure/ux/feedback-prompt.js');
235
+ const { BiDirectionalLearning } = await import('../../../infrastructure/ux/bi-directional-learning.js');
236
+ // Get learning system from container (or create instance if not available)
237
+ const learningSystem = container.biDirectionalLearning || new BiDirectionalLearning();
238
+ const userId = process.env.USER || 'default-user';
239
+ const feedback = await promptForFeedback('ask', {
240
+ query: question,
241
+ response: result.answer,
242
+ sessionId: executionTracer.getCurrentRunId() || undefined,
243
+ });
244
+ if (feedback) {
245
+ storeFeedback(learningSystem, userId, feedback, {
246
+ operation: 'ask',
247
+ query: question,
248
+ response: result.answer,
249
+ sessionId: executionTracer.getCurrentRunId() || undefined,
250
+ });
251
+ displayFeedbackConfirmation(feedback);
252
+ }
253
+ }
254
+ catch (feedbackError) {
255
+ // Don't fail the command if feedback collection fails
256
+ // Just log silently
257
+ }
119
258
  console.log();
120
259
  }
121
260
  catch (err) {
@@ -1 +1 @@
1
- {"version":3,"file":"ask-command.js","sourceRoot":"","sources":["../../../../src/presentation/cli/commands/ask-command.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,uDAAuD,CAAC;AAClF,OAAO,EACL,MAAM,EACN,aAAa,EACb,YAAY,EACZ,UAAU,EACV,WAAW,EACX,WAAW,EAEX,OAAO,EACP,IAAI,GACL,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,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AAC,KAAK,KAAK,cAAc,EAAE,CAAC;gBACrE,MAAM,YAAY,GAAG,qBAAqB,CAAC,wBAAwB,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;gBAC/E,IAAI,YAAY,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBAC5B,MAAM,OAAO,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC;oBAChC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,gBAAgB,OAAO,CAAC,WAAW,OAAO,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;oBACnF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,oBAAoB,OAAO,CAAC,SAAS,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,KAAK,YAAY,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,kBAAkB,CAAC,CAAC,CAAC;gBACpK,CAAC;YACH,CAAC;QACH,CAAC;QAED,OAAO,CAAC,GAAG,EAAE,CAAC;IACd,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,YAAY,CAAC,GAAG,EAAE;YAChB,SAAS,EAAE,KAAK;YAChB,KAAK,EAAE,QAAQ;YACf,eAAe,EAAE,IAAI;SACtB,CAAC,CAAC;QACH,MAAM,GAAG,CAAC;IACZ,CAAC;YAAS,CAAC;QACT,eAAe,CAAC,MAAM,EAAE,CAAC;IAC3B,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"ask-command.js","sourceRoot":"","sources":["../../../../src/presentation/cli/commands/ask-command.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,uDAAuD,CAAC;AAClF,OAAO,EACL,MAAM,EACN,aAAa,EACb,YAAY,EACZ,UAAU,EACV,WAAW,EACX,WAAW,EACX,OAAO,EACP,OAAO,EACP,IAAI,EACJ,SAAS,GACV,MAAM,gBAAgB,CAAC;AACx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AS;aAC1D,CAAC,CAAC;YAEH,IAAI,QAAQ,EAAE,CAAC;gBACb,aAAa,CAAC,cAAc,EAAE,MAAM,EAAE,QAAQ,EAAE;oBAC9C,SAAS,EAAE,KAAK;oBAChB,KAAK,EAAE,QAAQ;oBACf,QAAQ,EAAE,MAAM,CAAC,MAAM;oBACvB,SAAS,EAAE,eAAe,CAAC,eAAe,EAAE,IAAI,SAAS;iBAC1D,CAAC,CAAC;gBACH,2BAA2B,CAAC,QAAQ,CAAC,CAAC;YACxC,CAAC;QACH,CAAC;QAAC,OAAO,aAAa,EAAE,CAAC;YACvB,sDAAsD;YACtD,oBAAoB;QACtB,CAAC;QAED,OAAO,CAAC,GAAG,EAAE,CAAC;IACd,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,YAAY,CAAC,GAAG,EAAE;YAChB,SAAS,EAAE,KAAK;YAChB,KAAK,EAAE,QAAQ;YACf,eAAe,EAAE,IAAI;SACtB,CAAC,CAAC;QACH,MAAM,GAAG,CAAC;IACZ,CAAC;YAAS,CAAC;QACT,eAAe,CAAC,MAAM,EAAE,CAAC;IAC3B,CAAC;AACH,CAAC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * CLI Command: Docs
3
+ * Generate documentation (README, API docs) using DocumentationAgent
4
+ */
5
+ import type { DocumentationType } from '../../../domain/entities/documentation.js';
6
+ export declare function executeDocsCommand(type: DocumentationType, options?: {
7
+ target?: string;
8
+ updateExisting?: boolean;
9
+ outputPath?: string;
10
+ review?: boolean;
11
+ }): Promise<void>;
12
+ //# sourceMappingURL=docs-command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"docs-command.d.ts","sourceRoot":"","sources":["../../../../src/presentation/cli/commands/docs-command.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAmBH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAKnF,wBAAsB,kBAAkB,CACtC,IAAI,EAAE,iBAAiB,EACvB,OAAO,GAAE;IACP,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;CACb,GACL,OAAO,CAAC,IAAI,CAAC,CAiNf"}
@@ -0,0 +1,196 @@
1
+ /**
2
+ * CLI Command: Docs
3
+ * Generate documentation (README, API docs) using DocumentationAgent
4
+ */
5
+ import { container } from '../../../application/services/dependency-container.js';
6
+ import { colors, sectionHeader, formatPath, success, error, warning, newline, createBanner, createSpinner, createTable, } from '../../../ui.js';
7
+ import { findCodebaseRoot } from '../../../domain/services/codebase-detector.js';
8
+ import { executionTracer } from '../../../infrastructure/observability/execution-tracer.js';
9
+ import { displayError } from '../error-display.js';
10
+ import { agentFeedbackManager } from '../../../infrastructure/validation/agent-feedback.js';
11
+ import { traceSummaryFormatter } from '../../../infrastructure/validation/trace-summary.js';
12
+ import { reviewHandler } from '../../../infrastructure/validation/review-handler.js';
13
+ export async function executeDocsCommand(type, options = {}) {
14
+ // Validate type
15
+ const validTypes = ['readme', 'api', 'all'];
16
+ if (!validTypes.includes(type)) {
17
+ console.error(error(`Invalid type: ${type}. Must be one of: ${validTypes.join(', ')}`));
18
+ process.exit(1);
19
+ }
20
+ // Detect codebase context
21
+ const codebaseInfo = findCodebaseRoot(process.cwd());
22
+ const runId = executionTracer.startRun('docs', {
23
+ query: `generate ${type}`,
24
+ codebaseId: codebaseInfo?.rootPath || process.cwd(),
25
+ });
26
+ console.log(createBanner('Documentation Generator', 'Auto-generate documentation from codebase'));
27
+ newline();
28
+ if (codebaseInfo) {
29
+ console.log(colors.dim(`Codebase: ${codebaseInfo.rootPath} (${codebaseInfo.type})`));
30
+ newline();
31
+ }
32
+ const spinner = createSpinner(`Generating ${type} documentation...`);
33
+ spinner.start();
34
+ try {
35
+ const agent = container.documentationAgent;
36
+ const result = await agent.execute({
37
+ type,
38
+ target: options.target,
39
+ options: {
40
+ format: 'markdown',
41
+ updateExisting: options.updateExisting || false,
42
+ outputPath: options.outputPath,
43
+ },
44
+ context: {
45
+ codebaseId: codebaseInfo?.rootPath || process.cwd(),
46
+ sessionId: codebaseInfo?.rootPath || 'default-session',
47
+ },
48
+ });
49
+ spinner.stop();
50
+ // Get current run before ending (so we can use it for summary)
51
+ const currentRunId = executionTracer.getCurrentRunId();
52
+ // End trace to finalize run context and save to disk
53
+ executionTracer.endRun();
54
+ // Get finalized run context from disk
55
+ // Small delay to ensure file is written (could be improved with callback)
56
+ await new Promise(resolve => setTimeout(resolve, 100));
57
+ const run = executionTracer.getRun(runId);
58
+ const startTime = run?.startTime || Date.now();
59
+ // Create trace summary
60
+ let summary = traceSummaryFormatter.createSummary(run || {
61
+ runId,
62
+ startTime,
63
+ endTime: Date.now(),
64
+ operation: 'docs',
65
+ query: `generate ${type}`,
66
+ codebaseId: codebaseInfo?.rootPath || process.cwd(),
67
+ traces: [],
68
+ }, undefined, 'documentation-agent');
69
+ // Update summary with actual results
70
+ if (result.success && result.documents.length > 0) {
71
+ summary.filesCreated = result.documents.map(doc => doc.path);
72
+ summary.metrics.filesAnalyzed = result.stats?.filesAnalyzed;
73
+ }
74
+ if (result.errors && result.errors.length > 0) {
75
+ summary.errors = result.errors;
76
+ }
77
+ // Get review decision - single source of truth for userAction
78
+ // All CLI commands use this same pattern: getReviewDecision() → use decision.userAction
79
+ const reviewRequested = Boolean(options.review);
80
+ const decision = await reviewHandler.getReviewDecision(summary, reviewRequested);
81
+ if (!decision.approved) {
82
+ console.log(warning('Operation cancelled by user.'));
83
+ // Record feedback for rejection
84
+ agentFeedbackManager.recordFeedback({
85
+ runId,
86
+ agentName: 'documentation-agent',
87
+ operation: `generate ${type}`,
88
+ query: `generate ${type}`,
89
+ outcome: 'cancelled',
90
+ userAction: decision.userAction,
91
+ filesCreated: result.documents.map(doc => doc.path),
92
+ errors: result.errors,
93
+ metrics: {
94
+ filesAnalyzed: result.stats?.filesAnalyzed,
95
+ duration: run ? (run.endTime - run.startTime) : 0,
96
+ },
97
+ validationChecks: summary.validationChecks.map(check => ({
98
+ check: check.check,
99
+ passed: check.passed,
100
+ message: check.message,
101
+ })),
102
+ });
103
+ return;
104
+ }
105
+ const finalOutcome = result.success ? 'success' : 'failure';
106
+ // Record feedback with userAction from review decision
107
+ agentFeedbackManager.recordFeedback({
108
+ runId,
109
+ agentName: 'documentation-agent',
110
+ operation: `generate ${type}`,
111
+ query: `generate ${type}`,
112
+ outcome: finalOutcome,
113
+ userAction: decision.userAction,
114
+ filesCreated: result.documents.map(doc => doc.path),
115
+ errors: result.errors,
116
+ metrics: {
117
+ filesAnalyzed: result.stats?.filesAnalyzed,
118
+ duration: run ? (run.endTime - run.startTime) : 0,
119
+ },
120
+ validationChecks: summary.validationChecks.map(check => ({
121
+ check: check.check,
122
+ passed: check.passed,
123
+ message: check.message,
124
+ })),
125
+ });
126
+ if (result.success) {
127
+ newline();
128
+ sectionHeader('Generated Documentation');
129
+ // Display generated documents
130
+ if (result.documents.length > 0) {
131
+ const rows = result.documents.map((doc) => [
132
+ formatPath(doc.path),
133
+ colors.cyan(doc.type),
134
+ colors.dim(doc.contentPreview.substring(0, 80) + '...'),
135
+ ]);
136
+ const table = createTable(['File', 'Type', 'Preview'], rows);
137
+ console.log(table.toString());
138
+ newline();
139
+ }
140
+ // Display stats
141
+ if (result.stats) {
142
+ sectionHeader('Statistics');
143
+ console.log(` Files Analyzed: ${colors.cyan(String(result.stats.filesAnalyzed))}`);
144
+ if (result.stats.symbolsDocumented > 0) {
145
+ console.log(` Symbols Documented: ${colors.cyan(String(result.stats.symbolsDocumented))}`);
146
+ }
147
+ console.log(` Lines Generated: ${colors.cyan(String(result.stats.linesGenerated))}`);
148
+ newline();
149
+ }
150
+ // Display trace summary if requested or if review was needed
151
+ if (options.review || summary.reviewNeeded.required) {
152
+ newline();
153
+ console.log(traceSummaryFormatter.formatSummary(summary));
154
+ newline();
155
+ }
156
+ console.log(success(`Documentation generated successfully!`));
157
+ }
158
+ else {
159
+ spinner.stop();
160
+ newline();
161
+ console.log(error('Failed to generate documentation'));
162
+ if (result.errors && result.errors.length > 0) {
163
+ sectionHeader('Errors');
164
+ result.errors.forEach((err) => {
165
+ console.log(` ${colors.red('✗')} ${err}`);
166
+ });
167
+ newline();
168
+ }
169
+ if (result.documents.length > 0) {
170
+ console.log(warning('Some documents were generated despite errors:'));
171
+ result.documents.forEach((doc) => {
172
+ console.log(` ${colors.yellow('○')} ${formatPath(doc.path)}`);
173
+ });
174
+ newline();
175
+ }
176
+ displayError(new Error('Documentation generation completed with errors'), {
177
+ operation: 'docs',
178
+ query: `generate ${type}`,
179
+ showSuggestions: true,
180
+ });
181
+ }
182
+ }
183
+ catch (err) {
184
+ spinner.stop();
185
+ displayError(err, {
186
+ operation: 'docs',
187
+ query: `generate ${type}`,
188
+ showSuggestions: true,
189
+ });
190
+ throw err;
191
+ }
192
+ finally {
193
+ // Run already ended after execution, no need to end again
194
+ }
195
+ }
196
+ //# sourceMappingURL=docs-command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"docs-command.js","sourceRoot":"","sources":["../../../../src/presentation/cli/commands/docs-command.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,uDAAuD,CAAC;AAClF,OAAO,EACL,MAAM,EACN,aAAa,EACb,UAAU,EACV,OAAO,EACP,KAAK,EACL,OAAO,EAEP,OAAO,EACP,YAAY,EACZ,aAAa,EACb,WAAW,GACZ,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,+CAA+C,CAAC;AACjF,OAAO,EAAE,eAAe,EAAE,MAAM,2DAA2D,CAAC;AAC5F,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,sDAAsD,CAAC;AAC5F,OAAO,EAAE,qBAAqB,EAAE,MAAM,qDAAqD,CAAC;AAC5F,OAAO,EAAE,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,EAAE,CAAC;YACZ,CAAC;YAED,YAAY,CAAC,IAAI,KAAK,CAAC,gDAAgD,CAAC,EAAE;gBACxE,SAAS,EAAE,MAAM;gBACjB,KAAK,EAAE,YAAY,IAAI,EAAE;gBACzB,eAAe,EAAE,IAAI;aACtB,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,OAAO,CAAC,IAAI,EAAE,CAAC;QACf,YAAY,CAAC,GAAG,EAAE;YAChB,SAAS,EAAE,MAAM;YACjB,KAAK,EAAE,YAAY,IAAI,EAAE;YACzB,eAAe,EAAE,IAAI;SACtB,CAAC,CAAC;QACH,MAAM,GAAG,CAAC;IACZ,CAAC;YAAS,CAAC;QACT,0DAA0D;IAC5D,CAAC;AACH,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * CLI Command: Fix/Edit
3
+ * Apply AI-generated code edits to a file with review support
4
+ */
5
+ export declare function executeFixCommand(file: string, instruction: string, options?: {
6
+ review?: boolean;
7
+ }): Promise<void>;
8
+ //# sourceMappingURL=fix-command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fix-command.d.ts","sourceRoot":"","sources":["../../../../src/presentation/cli/commands/fix-command.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA2BH,wBAAsB,iBAAiB,CACrC,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE;IAAE,MAAM,CAAC,EAAE,OAAO,CAAA;CAAO,GACjC,OAAO,CAAC,IAAI,CAAC,CAmUf"}