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
@@ -0,0 +1,22 @@
1
+ /**
2
+ * CLI Command: Review
3
+ * View pending reviews and approve/reject changes
4
+ *
5
+ * Phase 1: v0.5.0-alpha
6
+ * See: docs/INTERNAL/v0.5.0_ALPHA_PHASE1_TECH_SPEC.md
7
+ */
8
+ // TODO: Load task by ID
9
+ // TODO: Update task review fields on user action
10
+ // Set task.reviewStatus, task.reviewedAt, task.reviewComments
11
+ // Update task.status: NEEDS_REVIEW → APPROVED/REJECTED
12
+ // See: docs/ARCHITECTURE/TASK_MODEL.md
13
+ // TODO: Implement review command
14
+ // - List reviews (load tasks from storage, filter by status)
15
+ // - Task detail view (show goal, status, risk tier, files, diffs, test/SAST results)
16
+ // - Review actions (approve, reject, request changes)
17
+ // See: docs/INTERNAL/v0.5.0_ALPHA_PHASE1_TECH_SPEC.md section 1.4
18
+ export async function executeReviewCommand(options = {}) {
19
+ // Implementation pending Phase 1
20
+ throw new Error('Review command not yet implemented. See docs/INTERNAL/v0.5.0_ALPHA_PHASE1_TECH_SPEC.md');
21
+ }
22
+ //# sourceMappingURL=review-command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"review-command.js","sourceRoot":"","sources":["../../../../src/presentation/cli/commands/review-command.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,wBAAwB;AACxB,iDAAiD;AACjD,8DAA8D;AAC9D,uDAAuD;AACvD,uCAAuC;AAEvC,iCAAiC;AACjC,6DAA6D;AAC7D,qFAAqF;AACrF,sDAAsD;AACtD,kEAAkE;AAElE,MAAM,CAAC,KAAK,UAAU,oBAAoB,CACxC,UAKI,EAAE;IAEN,iCAAiC;IACjC,MAAM,IAAI,KAAK,CAAC,wFAAwF,CAAC,CAAC;AAC5G,CAAC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * CLI Command: Run
3
+ * Execute a plan with step-by-step visibility and review checkpoints
4
+ *
5
+ * Phase 1: v0.5.0-alpha
6
+ * See: docs/INTERNAL/v0.5.0_ALPHA_PHASE1_TECH_SPEC.md
7
+ */
8
+ export declare function executeRunCommand(goal: string, options?: {
9
+ planId?: string;
10
+ yes?: boolean;
11
+ dryRun?: boolean;
12
+ env?: string;
13
+ verbose?: boolean;
14
+ }): Promise<void>;
15
+ //# sourceMappingURL=run-command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run-command.d.ts","sourceRoot":"","sources":["../../../../src/presentation/cli/commands/run-command.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAsBH,wBAAsB,iBAAiB,CACrC,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE;IACP,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;CACd,GACL,OAAO,CAAC,IAAI,CAAC,CAGf"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * CLI Command: Run
3
+ * Execute a plan with step-by-step visibility and review checkpoints
4
+ *
5
+ * Phase 1: v0.5.0-alpha
6
+ * See: docs/INTERNAL/v0.5.0_ALPHA_PHASE1_TECH_SPEC.md
7
+ */
8
+ // TODO: Create task at start of run
9
+ // Task mode: RUN
10
+ // Status: CREATED → PLANNED → RUNNING
11
+ // Risk tier: Detect during execution
12
+ // Track steps in task.steps
13
+ // Update status as execution progresses
14
+ // See: docs/ARCHITECTURE/TASK_MODEL.md
15
+ // TODO: After execution, if T2/T3: set task.reviewStatus = PENDING, task.status = NEEDS_REVIEW
16
+ // TODO: Link task to TraceSummary and AgentFeedback
17
+ // See: docs/ARCHITECTURE/TASK_MODEL.md
18
+ // TODO: Implement run command
19
+ // - Plan loading/generation (may trigger clarification flow)
20
+ // - Execution loop with step-by-step display
21
+ // - Risk checkpoint logic (T1/T2/T3)
22
+ // - Validation (tests, SAST)
23
+ // - Completion summary
24
+ // See: docs/INTERNAL/v0.5.0_ALPHA_PHASE1_TECH_SPEC.md section 1.3
25
+ export async function executeRunCommand(goal, options = {}) {
26
+ // Implementation pending Phase 1
27
+ throw new Error('Run command not yet implemented. See docs/INTERNAL/v0.5.0_ALPHA_PHASE1_TECH_SPEC.md');
28
+ }
29
+ //# sourceMappingURL=run-command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run-command.js","sourceRoot":"","sources":["../../../../src/presentation/cli/commands/run-command.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,oCAAoC;AACpC,iBAAiB;AACjB,sCAAsC;AACtC,qCAAqC;AACrC,4BAA4B;AAC5B,wCAAwC;AACxC,uCAAuC;AAEvC,+FAA+F;AAC/F,oDAAoD;AACpD,uCAAuC;AAEvC,8BAA8B;AAC9B,6DAA6D;AAC7D,6CAA6C;AAC7C,qCAAqC;AACrC,6BAA6B;AAC7B,uBAAuB;AACvB,kEAAkE;AAElE,MAAM,CAAC,KAAK,UAAU,iBAAiB,CACrC,IAAY,EACZ,UAMI,EAAE;IAEN,iCAAiC;IACjC,MAAM,IAAI,KAAK,CAAC,qFAAqF,CAAC,CAAC;AACzG,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"setup-command.d.ts","sourceRoot":"","sources":["../../../../src/presentation/cli/commands/setup-command.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AA6HH;;GAEG;AACH,wBAAsB,mBAAmB,CAAC,KAAK,GAAE,OAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAkJ/E"}
1
+ {"version":3,"file":"setup-command.d.ts","sourceRoot":"","sources":["../../../../src/presentation/cli/commands/setup-command.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AA+HH;;GAEG;AACH,wBAAsB,mBAAmB,CAAC,KAAK,GAAE,OAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CA6M/E"}
@@ -6,7 +6,7 @@
6
6
  import { readFileSync, existsSync, writeFileSync, mkdirSync } from 'fs';
7
7
  import { join } from 'path';
8
8
  import { getConfigManager } from '../../../infrastructure/config/config-manager.js';
9
- import { colors, separator, newline, sectionHeader, success, error, warning, info, } from '../../../ui.js';
9
+ import { colors, separator, newline, sectionHeader, success, error, warning, info, createBanner, createWelcomeMessage, } from '../../../ui.js';
10
10
  import { executionTracer } from '../../../infrastructure/observability/execution-tracer.js';
11
11
  import { findCodebaseRoot } from '../../../domain/services/codebase-detector.js';
12
12
  /**
@@ -108,11 +108,40 @@ export async function executeSetupCommand(force = false) {
108
108
  codebaseId: codebaseInfo?.rootPath || process.cwd(),
109
109
  });
110
110
  try {
111
- newline();
112
- console.log(separator('═', 80));
113
- console.log(colors.bold('Codehere - Setup Wizard'));
114
- console.log(separator('═', 80));
115
- newline();
111
+ const isFirstTime = !isSetupComplete() || force;
112
+ // Welcome banner for first-time users
113
+ if (isFirstTime) {
114
+ newline();
115
+ console.log(createWelcomeMessage());
116
+ newline();
117
+ console.log(createBanner('Welcome to Codehere', 'Your AI-powered coding assistant'));
118
+ newline();
119
+ // Feature overview for first-time users
120
+ console.log(colors.bold('What Codehere Can Do:'));
121
+ console.log(colors.dim(' • ') + colors.cyan('Ask questions') + colors.dim(' about your codebase'));
122
+ console.log(colors.dim(' • ') + colors.cyan('Edit code') + colors.dim(' with natural language instructions'));
123
+ console.log(colors.dim(' • ') + colors.cyan('Explain code') + colors.dim(' files and functions'));
124
+ console.log(colors.dim(' • ') + colors.cyan('Plan complex tasks') + colors.dim(' with multi-step workflows'));
125
+ console.log(colors.dim(' • ') + colors.cyan('Multi-agent orchestration') + colors.dim(' for advanced tasks'));
126
+ newline();
127
+ console.log(colors.bold('Quick Start Guide:'));
128
+ console.log(colors.dim(' 1. ') + colors.cyan('codehere "explain this function"') + colors.dim(' - Ask questions'));
129
+ console.log(colors.dim(' 2. ') + colors.cyan('codehere "add error handling to auth.ts"') + colors.dim(' - Edit code'));
130
+ console.log(colors.dim(' 3. ') + colors.cyan('codehere plan "refactor authentication"') + colors.dim(' - Plan tasks'));
131
+ newline();
132
+ console.log(separator('═', 80));
133
+ console.log(colors.bold('Setup Wizard'));
134
+ console.log(separator('═', 80));
135
+ newline();
136
+ }
137
+ else {
138
+ // Regular setup header for reconfigure
139
+ newline();
140
+ console.log(separator('═', 80));
141
+ console.log(colors.bold('Codehere - Setup Wizard'));
142
+ console.log(separator('═', 80));
143
+ newline();
144
+ }
116
145
  // Check if already set up
117
146
  if (!force && isSetupComplete()) {
118
147
  console.log(info('Setup has already been completed.'));
@@ -206,13 +235,39 @@ export async function executeSetupCommand(force = false) {
206
235
  console.log(colors.bold('Configuration Saved:'));
207
236
  console.log(colors.dim(` ${result.configPath}`));
208
237
  newline();
209
- console.log(colors.bold('Next Steps:'));
210
- console.log(colors.dim(` 1. Index your codebase: ${colors.cyan('codehere index')}`));
211
- console.log(colors.dim(` 2. Try asking a question: ${colors.cyan('codehere "explain this function"')}`));
212
- console.log(colors.dim(` 3. Get help: ${colors.cyan('codehere --help')}`));
213
- console.log(colors.dim(` 4. Configure preferences: ${colors.cyan('codehere config')}`));
214
- newline();
238
+ // Enhanced next steps with feature discovery
239
+ if (isFirstTime) {
240
+ console.log(colors.bold('🎉 Setup Complete! Next Steps:'));
241
+ console.log(colors.dim(` 1. Index your codebase: ${colors.cyan('codehere index')}`));
242
+ console.log(colors.dim(` 2. Try asking a question: ${colors.cyan('codehere "explain this function"')}`));
243
+ console.log(colors.dim(` 3. Get help: ${colors.cyan('codehere --help')}`));
244
+ newline();
245
+ console.log(colors.bold('💡 Pro Tip:'));
246
+ console.log(colors.dim(' After you\'ve tried the basics, discover advanced features:'));
247
+ console.log(colors.dim(` • Multi-agent orchestration: ${colors.cyan('codehere orchestrate')}`));
248
+ console.log(colors.dim(` • ReAct reasoning: ${colors.cyan('codehere react')}`));
249
+ console.log(colors.dim(` • Configuration: ${colors.cyan('codehere config')}`));
250
+ newline();
251
+ }
252
+ else {
253
+ console.log(colors.bold('Next Steps:'));
254
+ console.log(colors.dim(` 1. Index your codebase: ${colors.cyan('codehere index')}`));
255
+ console.log(colors.dim(` 2. Try asking a question: ${colors.cyan('codehere "explain this function"')}`));
256
+ console.log(colors.dim(` 3. Get help: ${colors.cyan('codehere --help')}`));
257
+ console.log(colors.dim(` 4. Configure preferences: ${colors.cyan('codehere config')}`));
258
+ newline();
259
+ }
215
260
  saveSetupConfig(result);
261
+ // Track onboarding completion for first-time users
262
+ if (isFirstTime) {
263
+ const onboardingConfig = {
264
+ onboardingComplete: true,
265
+ onboardingDate: new Date().toISOString(),
266
+ commandCount: 0, // Will be tracked by feature discovery
267
+ };
268
+ const onboardingPath = join(ensureConfigDir(), 'onboarding.json');
269
+ writeFileSync(onboardingPath, JSON.stringify(onboardingConfig, null, 2));
270
+ }
216
271
  }
217
272
  else {
218
273
  console.log(separator('═', 80));
@@ -1 +1 @@
1
- {"version":3,"file":"setup-command.js","sourceRoot":"","sources":["../../../../src/presentation/cli/commands/setup-command.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AACxE,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,gBAAgB,EAAE,MAAM,kDAAkD,CAAC;AACpF,OAAO,EACL,MAAM,EAGN,SAAS,EACT,OAAO,EACP,aAAa,EACb,OAAO,EACP,KAAK,EACL,OAAO,EACP,IAAI,GACL,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,2DAA2D,CAAC;AAC5F,OAAO,EAAE,gBAAgB,EAAE,MAAM,+CAA+C,CAAC;AASjF;;GAEG;AACH,SAAS,WAAW;IAClB,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC;IAC1C,IAAI,MAAM,IAAI,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAC,IAAI,MAAM,CAAC,MAAM,GAAG,EAAE,EAAE,CAAC;QACvF,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC;IAC3C,CAAC;IACD,OAAO,EAAE,UAAU,EAAE,KA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DAAuD,CAAC,CAAC,CAAC;YACjF,OAAO,EAAE,CAAC;QACZ,CAAC;IACD,CAAC;YAAS,CAAC;QACT,eAAe,CAAC,MAAM,EAAE,CAAC;IAC3B,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"setup-command.js","sourceRoot":"","sources":["../../../../src/presentation/cli/commands/setup-command.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AACxE,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,gBAAgB,EAAE,MAAM,kDAAkD,CAAC;AACpF,OAAO,EACL,MAAM,EAGN,SAAS,EACT,OAAO,EACP,aAAa,EACb,OAAO,EACP,KAAK,EACL,OAAO,EACP,IAAI,EACJ,YAAY,EACZ,oBAAoB,GACrB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,2DAA2D,CAAC;AAC5F,OAAO,EAAE,gBAAgB,EAAE,MAAM,+CAA+C,CAAC;AASjF;;GAEG;AACH,SAAS,WAAW;IAClB,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC;IAC1C,IAAI,MAAM,IAAI,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAC,IAAI,MAAM,CAAC,MAAM,GAAG,EAAE,EAAE,CAAC;QACvF,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC;IAC3C,CAAC;IACD,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC;AAC/B,CAAC;AAED;;GAEG;AACH,SAAS,cAAc;IACrB,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;IAE1B,sCAAsC;IACtC,MAAM,UAAU,GAAG;QACjB,IAAI,EAAE,CAAC,cAAc,CAAC;Q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
2
  * CLI Command: Smart Router
3
3
  * Intelligent routing - user just types what they want
4
4
  */
5
- export declare function executeSmartCommand(query: string): Promise<void>;
5
+ export declare function executeSmartCommand(query: string, options?: {
6
+ review?: boolean;
7
+ }): Promise<void>;
6
8
  //# sourceMappingURL=smart-command.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"smart-command.d.ts","sourceRoot":"","sources":["../../../../src/presentation/cli/commands/smart-command.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAuBH,wBAAsB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CA6OtE"}
1
+ {"version":3,"file":"smart-command.d.ts","sourceRoot":"","sources":["../../../../src/presentation/cli/commands/smart-command.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA+BH,wBAAsB,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,GAAE;IAAE,MAAM,CAAC,EAAE,OAAO,CAAA;CAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CA2c1G"}
@@ -3,10 +3,26 @@
3
3
  * Intelligent routing - user just types what they want
4
4
  */
5
5
  import { IntelligentRouter } from '../../../application/services/intelligent-router.js';
6
- import { colors, success, error, warning, newline, separator, symbols, } from '../../../ui.js';
7
- import { cleanResponse } from '../../../formatter.js';
6
+ import { colors, sectionHeader, formatNumber, formatPath, createTable, success, error, warning, newline, separator, symbols, } from '../../../ui.js';
8
7
  import { executionTracer } from '../../../infrastructure/observability/execution-tracer.js';
9
- export async function executeSmartCommand(query) {
8
+ import { displayError } from '../error-display.js';
9
+ import { trackCommand, shouldShowFeatureDiscovery, markFeatureDiscoveryShown, } from '../../../infrastructure/ux/feature-discovery.js';
10
+ import { summaryExtractor } from '../../../infrastructure/validation/summary-extractor.js';
11
+ import { reviewHandler } from '../../../infrastructure/validation/review-handler.js';
12
+ export async function executeSmartCommand(query, options = {}) {
13
+ // Capability Boundaries: Check for unsupported operations
14
+ try {
15
+ const { CapabilityBoundaryDetector, displayCapabilityBoundary } = await import('../../../infrastructure/ux/capability-boundaries.js');
16
+ const detector = new CapabilityBoundaryDetector();
17
+ const boundary = detector.detectUnsupported(query);
18
+ if (boundary) {
19
+ displayCapabilityBoundary(boundary);
20
+ return; // Don't proceed with unsupported operation
21
+ }
22
+ }
23
+ catch {
24
+ // Capability boundary check failed - continue anyway (non-blocking)
25
+ }
10
26
  // Use dependency container to get memory-aware router
11
27
  const { container } = await import('../../../application/services/dependency-container.js');
12
28
  const router = new IntelligentRouter(undefined, // Use default QueryIntentClassifier
@@ -26,51 +42,170 @@ export async function executeSmartCommand(query) {
26
42
  });
27
43
  // No verbose spinner - atomic interaction
28
44
  try {
45
+ // Get conversation context for this session
46
+ const { conversationContextManager } = await import('../../../infrastructure/context/conversation-context.js');
47
+ const { sessionManager } = await import('../../../infrastructure/context/session-manager.js');
48
+ const sessionId = sessionManager.getSessionId(process.cwd());
49
+ const history = conversationContextManager.getHistory(sessionId, 5);
29
50
  const result = await router.route({
30
51
  query,
31
52
  context: {
32
53
  currentDirectory: process.cwd(),
54
+ conversationHistory: history.map(turn => ({
55
+ query: turn.query,
56
+ response: turn.response,
57
+ timestamp: turn.timestamp,
58
+ })),
59
+ sessionId,
33
60
  },
34
61
  });
35
- // Display result based on action type - atomic, human-like
62
+ // Calculate execution time for summary
63
+ const executionTime = ((Date.now() - startTime) / 1000).toFixed(2);
64
+ // Handle review if --review flag is set (only for destructive actions)
65
+ if (options.review && (result.action === 'edit' || result.action === 'plan')) {
66
+ const summarySource = summaryExtractor.extractFromRouting(result);
67
+ if (summarySource) {
68
+ const decision = await reviewHandler.requestReview(summarySource.summary);
69
+ if (!decision.approved) {
70
+ console.log(warning('Operation cancelled by user.'));
71
+ newline();
72
+ return;
73
+ }
74
+ // User approved - continue with display
75
+ newline();
76
+ }
77
+ else {
78
+ console.log(warning('⚠️ No summary available for review. Continuing without review.'));
79
+ newline();
80
+ }
81
+ }
82
+ // Display result based on action type - enhanced with better formatting
83
+ // Import formatter once for all cases
84
+ const { formatContent } = await import('../../../infrastructure/ux/comprehensive-formatter.js');
36
85
  switch (result.action) {
37
86
  case 'ask':
38
- // Atomic: Just show the answer, no verbose tables
39
- console.log(cleanResponse(result.message || 'No answer generated'));
87
+ // Enhanced: Show answer with better formatting and summary
88
+ sectionHeader('Answer');
89
+ const formattedAnswer = formatContent(result.message || 'No answer generated', { indent: 0, maxWidth: 76 });
90
+ console.log(formattedAnswer);
40
91
  newline();
92
+ // Show summary statistics
93
+ const summaryRows = [];
94
+ summaryRows.push(['Execution Time', `${executionTime}s`]);
95
+ if (result.memoriesUsed) {
96
+ summaryRows.push(['Memories Used', formatNumber(result.memoriesUsed)]);
97
+ }
98
+ // Add summary if we have metrics
99
+ if (summaryRows.length > 1) {
100
+ console.log(separator('─', 80));
101
+ sectionHeader('Summary');
102
+ const summaryTable = createTable(['Metric', 'Value'], summaryRows);
103
+ console.log(summaryTable.toString());
104
+ newline();
105
+ }
41
106
  break;
42
107
  case 'explain':
43
108
  // Atomic: Just show the explanation
44
109
  if (result.result) {
45
110
  const explainResult = result.result;
46
- console.log(cleanResponse(explainResult.explanation));
111
+ const formattedExplanation = formatContent(explainResult.explanation || '', { indent: 0, maxWidth: 76 });
112
+ console.log(formattedExplanation);
47
113
  }
48
114
  newline();
49
115
  break;
50
116
  case 'edit':
51
117
  console.log(separator('═', 80));
52
- console.log(colors.bold('Edit Result'));
118
+ sectionHeader('Edit Result');
53
119
  console.log(separator('═', 80));
54
120
  newline();
55
121
  if (result.success) {
56
- console.log(success('Edit applied successfully'));
57
- if (result.result) {
58
- const editResult = result.result;
59
- if (editResult.edit?.filepath) {
60
- console.log(colors.dim(`File: ${editResult.edit.filepath}`));
122
+ const editResult = result.result;
123
+ // Display license warnings if present (Enhanced Security - License Scanning)
124
+ if (editResult?.licenseFindings && editResult.licenseFindings.length > 0) {
125
+ sectionHeader('License Scan');
126
+ const criticalFindings = editResult.licenseFindings.filter((f) => f.severity === 'critical' || f.severity === 'high');
127
+ if (criticalFindings.length > 0) {
128
+ console.log(warning(`⚠️ ${criticalFindings.length} license conflict(s) detected:`));
129
+ criticalFindings.slice(0, 3).forEach((finding) => {
130
+ console.log(colors.yellow(` • ${finding.license} license detected in ${finding.filepath || 'code'}`));
131
+ if (finding.message) {
132
+ console.log(colors.dim(` ${finding.message}`));
133
+ }
134
+ });
135
+ if (criticalFindings.length > 3) {
136
+ console.log(colors.dim(` ... and ${criticalFindings.length - 3} more`));
137
+ }
138
+ newline();
139
+ }
140
+ }
141
+ // Display provider bias warnings if present (Enhanced Security - Provider Bias Detection)
142
+ if (editResult?.providerBiasFindings && editResult.providerBiasFindings.length > 0) {
143
+ sectionHeader('Provider Bias Detection');
144
+ const criticalFindings = editResult.providerBiasFindings.filter((f) => f.severity === 'critical' || f.severity === 'high');
145
+ if (criticalFindings.length > 0) {
146
+ console.log(warning(`⚠️ ${criticalFindings.length} vendor lock-in risk(s) detected:`));
147
+ criticalFindings.slice(0, 3).forEach((finding) => {
148
+ console.log(colors.yellow(` • ${finding.provider} provider detected`));
149
+ if (finding.message) {
150
+ console.log(colors.dim(` ${finding.message}`));
151
+ }
152
+ });
153
+ if (criticalFindings.length > 3) {
154
+ console.log(colors.dim(` ... and ${criticalFindings.length - 3} more`));
155
+ }
156
+ newline();
61
157
  }
62
158
  }
159
+ console.log(success('Edit applied successfully'));
160
+ if (editResult?.edit?.filepath) {
161
+ console.log(colors.dim(`File: ${formatPath(editResult.edit.filepath)}`));
162
+ }
163
+ if (editResult?.edit?.linesAdded || editResult?.edit?.linesRemoved) {
164
+ const changesTable = createTable(['Metric', 'Value'], [
165
+ ['Lines Added', formatNumber(editResult.edit.linesAdded || 0)],
166
+ ['Lines Removed', formatNumber(editResult.edit.linesRemoved || 0)],
167
+ ['Execution Time', `${executionTime}s`],
168
+ ]);
169
+ console.log(changesTable.toString());
170
+ newline();
171
+ }
63
172
  }
64
173
  else {
65
- console.log(error('Edit failed'));
66
- if (result.error) {
67
- console.log(colors.red(` ${result.error}`));
174
+ // Use centralized error display
175
+ const errorMessage = result.error || 'Edit failed';
176
+ displayError(new Error(errorMessage), {
177
+ operation: 'edit',
178
+ query: query,
179
+ filepath: result.result?.edit?.filepath,
180
+ showSuggestions: true,
181
+ });
182
+ // Display security/license findings even on failure
183
+ const editResult = result.result;
184
+ if (editResult?.licenseFindings && editResult.licenseFindings.length > 0) {
185
+ newline();
186
+ sectionHeader('License Scan');
187
+ editResult.licenseFindings.slice(0, 3).forEach((finding) => {
188
+ console.log(colors.yellow(`⚠️ ${finding.license} license: ${finding.message || 'License conflict detected'}`));
189
+ });
68
190
  }
69
- if (result.result && result.result.reflection) {
191
+ if (editResult?.providerBiasFindings && editResult.providerBiasFindings.length > 0) {
70
192
  newline();
71
- console.log(colors.bold('Learning:'));
72
- console.log(colors.yellow(` ${result.result.reflection}`));
193
+ sectionHeader('Provider Bias Detection');
194
+ editResult.providerBiasFindings.slice(0, 3).forEach((finding) => {
195
+ console.log(colors.yellow(`⚠️ ${finding.provider} provider: ${finding.message || 'Vendor lock-in risk detected'}`));
196
+ });
73
197
  }
198
+ if (editResult?.reflection) {
199
+ newline();
200
+ sectionHeader('Learning');
201
+ // Use comprehensive formatter for consistent formatting
202
+ const { formatReflection } = await import('../../../infrastructure/ux/comprehensive-formatter.js');
203
+ const formatted = formatReflection(editResult.reflection);
204
+ console.log(formatted);
205
+ newline();
206
+ }
207
+ newline();
208
+ console.log(colors.dim(`Execution Time: ${executionTime}s`));
74
209
  }
75
210
  console.log(separator('═', 80));
76
211
  newline();
@@ -80,7 +215,8 @@ export async function executeSmartCommand(query) {
80
215
  if (result.result) {
81
216
  const reactResult = result.result;
82
217
  // Only show answer, not verbose reasoning steps
83
- console.log(cleanResponse(result.message || reactResult.answer || 'Processing complete'));
218
+ const formattedReact = formatContent(result.message || reactResult.answer || 'Processing complete', { indent: 0, maxWidth: 76 });
219
+ console.log(formattedReact);
84
220
  }
85
221
  newline();
86
222
  break;
@@ -171,9 +307,13 @@ export async function executeSmartCommand(query) {
171
307
  console.log(separator('═', 80));
172
308
  }
173
309
  else {
174
- console.log(separator('═', 80));
175
- console.log(error(result.message || result.error || 'Plan failed'));
176
- console.log(separator('═', 80));
310
+ // Use centralized error display
311
+ const errorMessage = result.message || result.error || 'Plan failed';
312
+ displayError(new Error(errorMessage), {
313
+ operation: 'plan',
314
+ query: query,
315
+ showSuggestions: true,
316
+ });
177
317
  }
178
318
  newline();
179
319
  }
@@ -194,6 +334,70 @@ export async function executeSmartCommand(query) {
194
334
  }
195
335
  // Atomic interaction: No summary table for better UX
196
336
  // Summary statistics are tracked internally but not displayed
337
+ // Track command usage for feature discovery
338
+ trackCommand('smart');
339
+ // Contextual Feature Discovery: Show relevant features based on query (Task 2.2)
340
+ const { shouldShowContextualSuggestion } = await import('../../../infrastructure/ux/contextual-feature-discovery.js');
341
+ const contextualSuggestion = shouldShowContextualSuggestion(query, 'smart');
342
+ if (contextualSuggestion) {
343
+ newline();
344
+ console.log(separator('─', 80));
345
+ console.log(colors.bold(`💡 ${contextualSuggestion.reason}`));
346
+ console.log(colors.dim(` Try: ${colors.cyan(contextualSuggestion.command)}`));
347
+ console.log(colors.dim(` ${contextualSuggestion.description}`));
348
+ console.log(separator('─', 80));
349
+ newline();
350
+ }
351
+ else {
352
+ // Show milestone-based feature discovery if appropriate
353
+ const discovery = shouldShowFeatureDiscovery('smart');
354
+ if (discovery) {
355
+ newline();
356
+ console.log(separator('─', 80));
357
+ console.log(colors.bold(`💡 ${discovery.message}`));
358
+ discovery.features.forEach(feature => {
359
+ console.log(colors.dim(` • ${colors.cyan(feature.name)}: ${feature.description}`));
360
+ console.log(colors.dim(` ${colors.cyan(feature.command)}`));
361
+ });
362
+ console.log(separator('─', 80));
363
+ newline();
364
+ markFeatureDiscoveryShown(discovery.id);
365
+ }
366
+ }
367
+ // Store conversation turn for future reference resolution
368
+ try {
369
+ const { conversationContextManager } = await import('../../../infrastructure/context/conversation-context.js');
370
+ const { sessionManager } = await import('../../../infrastructure/context/session-manager.js');
371
+ const sessionId = sessionManager.getSessionId(process.cwd());
372
+ const response = result.message || result.error || 'Processing complete';
373
+ const entities = conversationContextManager.extractEntities(query);
374
+ conversationContextManager.addTurn(sessionId, query, response, entities, result.intent);
375
+ }
376
+ catch (error) {
377
+ // Don't fail if conversation tracking fails
378
+ }
379
+ // Task 6.1: Explicit Feedback Mechanisms - Prompt for feedback after operation
380
+ try {
381
+ const { promptForFeedback, storeFeedback, displayFeedbackConfirmation } = await import('../../../infrastructure/ux/feedback-prompt.js');
382
+ const learningSystem = container.biDirectionalLearning;
383
+ const userId = process.env.USER || 'default-user';
384
+ const feedback = await promptForFeedback('smart-route', {
385
+ query,
386
+ sessionId: executionTracer.getCurrentRunId() || undefined,
387
+ });
388
+ if (feedback) {
389
+ storeFeedback(learningSystem, userId, feedback, {
390
+ operation: 'smart-route',
391
+ query,
392
+ sessionId: executionTracer.getCurrentRunId() || undefined,
393
+ });
394
+ displayFeedbackConfirmation(feedback);
395
+ }
396
+ }
397
+ catch (feedbackError) {
398
+ // Don't fail the command if feedback collection fails
399
+ // Just log silently
400
+ }
197
401
  newline();
198
402
  }
199
403
  catch (err) {