codehere 0.4.0 → 0.5.0-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (324) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +113 -30
  3. package/dist/application/agents/execution-agent.js +2 -2
  4. package/dist/application/agents/execution-agent.js.map +1 -1
  5. package/dist/application/agents/multi-agent-orchestrator.d.ts +1 -0
  6. package/dist/application/agents/multi-agent-orchestrator.d.ts.map +1 -1
  7. package/dist/application/agents/multi-agent-orchestrator.js +10 -3
  8. package/dist/application/agents/multi-agent-orchestrator.js.map +1 -1
  9. package/dist/application/agents/planning-agent.d.ts.map +1 -1
  10. package/dist/application/agents/planning-agent.js +22 -10
  11. package/dist/application/agents/planning-agent.js.map +1 -1
  12. package/dist/application/agents/validation-agent.js +2 -2
  13. package/dist/application/agents/validation-agent.js.map +1 -1
  14. package/dist/application/reasoning/multi-model-planning-strategy.d.ts +21 -0
  15. package/dist/application/reasoning/multi-model-planning-strategy.d.ts.map +1 -0
  16. package/dist/application/reasoning/multi-model-planning-strategy.js +158 -0
  17. package/dist/application/reasoning/multi-model-planning-strategy.js.map +1 -0
  18. package/dist/application/reasoning/reasoning-config.d.ts +15 -0
  19. package/dist/application/reasoning/reasoning-config.d.ts.map +1 -0
  20. package/dist/application/reasoning/reasoning-config.js +50 -0
  21. package/dist/application/reasoning/reasoning-config.js.map +1 -0
  22. package/dist/application/reasoning/reasoning-orchestrator.d.ts +18 -0
  23. package/dist/application/reasoning/reasoning-orchestrator.d.ts.map +1 -0
  24. package/dist/application/reasoning/reasoning-orchestrator.js +170 -0
  25. package/dist/application/reasoning/reasoning-orchestrator.js.map +1 -0
  26. package/dist/application/reasoning/reasoning-strategy.interface.d.ts +24 -0
  27. package/dist/application/reasoning/reasoning-strategy.interface.d.ts.map +1 -0
  28. package/dist/application/reasoning/reasoning-strategy.interface.js +6 -0
  29. package/dist/application/reasoning/reasoning-strategy.interface.js.map +1 -0
  30. package/dist/application/reasoning/role-provider-resolver.d.ts +36 -0
  31. package/dist/application/reasoning/role-provider-resolver.d.ts.map +1 -0
  32. package/dist/application/reasoning/role-provider-resolver.js +74 -0
  33. package/dist/application/reasoning/role-provider-resolver.js.map +1 -0
  34. package/dist/application/reasoning/simple-planning-strategy.d.ts +22 -0
  35. package/dist/application/reasoning/simple-planning-strategy.d.ts.map +1 -0
  36. package/dist/application/reasoning/simple-planning-strategy.js +217 -0
  37. package/dist/application/reasoning/simple-planning-strategy.js.map +1 -0
  38. package/dist/application/reasoning/types.d.ts +65 -0
  39. package/dist/application/reasoning/types.d.ts.map +1 -0
  40. package/dist/application/reasoning/types.js +6 -0
  41. package/dist/application/reasoning/types.js.map +1 -0
  42. package/dist/application/reasoning/validator-strategy.d.ts +56 -0
  43. package/dist/application/reasoning/validator-strategy.d.ts.map +1 -0
  44. package/dist/application/reasoning/validator-strategy.js +103 -0
  45. package/dist/application/reasoning/validator-strategy.js.map +1 -0
  46. package/dist/application/services/dependency-container.d.ts +30 -6
  47. package/dist/application/services/dependency-container.d.ts.map +1 -1
  48. package/dist/application/services/dependency-container.js +96 -44
  49. package/dist/application/services/dependency-container.js.map +1 -1
  50. package/dist/application/services/intelligent-router.d.ts +6 -0
  51. package/dist/application/services/intelligent-router.d.ts.map +1 -1
  52. package/dist/application/services/intelligent-router.js +98 -9
  53. package/dist/application/services/intelligent-router.js.map +1 -1
  54. package/dist/application/use-cases/ask-question-use-case.d.ts +1 -0
  55. package/dist/application/use-cases/ask-question-use-case.d.ts.map +1 -1
  56. package/dist/application/use-cases/ask-question-use-case.js +4 -3
  57. package/dist/application/use-cases/ask-question-use-case.js.map +1 -1
  58. package/dist/application/use-cases/planning-use-case.d.ts +14 -1
  59. package/dist/application/use-cases/planning-use-case.d.ts.map +1 -1
  60. package/dist/application/use-cases/planning-use-case.js +109 -2
  61. package/dist/application/use-cases/planning-use-case.js.map +1 -1
  62. package/dist/domain/entities/memory.d.ts.map +1 -1
  63. package/dist/domain/entities/task.d.ts +1 -1
  64. package/dist/domain/entities/task.d.ts.map +1 -1
  65. package/dist/domain/entities/task.js +2 -2
  66. package/dist/domain/entities/task.js.map +1 -1
  67. package/dist/domain/errors/embeddings-not-found-error.d.ts +9 -0
  68. package/dist/domain/errors/embeddings-not-found-error.d.ts.map +1 -0
  69. package/dist/domain/errors/embeddings-not-found-error.js +13 -0
  70. package/dist/domain/errors/embeddings-not-found-error.js.map +1 -0
  71. package/dist/domain/interfaces/embedding-repository.interface.d.ts +5 -0
  72. package/dist/domain/interfaces/embedding-repository.interface.d.ts.map +1 -1
  73. package/dist/domain/services/environment-mode-manager.d.ts +4 -10
  74. package/dist/domain/services/environment-mode-manager.d.ts.map +1 -1
  75. package/dist/domain/services/environment-mode-manager.js +7 -22
  76. package/dist/domain/services/environment-mode-manager.js.map +1 -1
  77. package/dist/domain/services/query-intent-classifier.d.ts.map +1 -1
  78. package/dist/domain/services/query-intent-classifier.js +20 -1
  79. package/dist/domain/services/query-intent-classifier.js.map +1 -1
  80. package/dist/domain/services/risk-tier-detector.d.ts +8 -9
  81. package/dist/domain/services/risk-tier-detector.d.ts.map +1 -1
  82. package/dist/domain/services/risk-tier-detector.js +53 -40
  83. package/dist/domain/services/risk-tier-detector.js.map +1 -1
  84. package/dist/embed.d.ts.map +1 -1
  85. package/dist/embed.js +18 -8
  86. package/dist/embed.js.map +1 -1
  87. package/dist/index.js +405 -52
  88. package/dist/index.js.map +1 -1
  89. package/dist/infrastructure/ai/cohere-ai-service.js +4 -4
  90. package/dist/infrastructure/ai/cohere-ai-service.js.map +1 -1
  91. package/dist/infrastructure/ai/provider-ai-service.d.ts.map +1 -1
  92. package/dist/infrastructure/ai/provider-ai-service.js +7 -7
  93. package/dist/infrastructure/ai/provider-ai-service.js.map +1 -1
  94. package/dist/infrastructure/cache/query-result-cache.d.ts +14 -55
  95. package/dist/infrastructure/cache/query-result-cache.d.ts.map +1 -1
  96. package/dist/infrastructure/cache/query-result-cache.js +40 -112
  97. package/dist/infrastructure/cache/query-result-cache.js.map +1 -1
  98. package/dist/infrastructure/cache/response-cache.d.ts +10 -78
  99. package/dist/infrastructure/cache/response-cache.d.ts.map +1 -1
  100. package/dist/infrastructure/cache/response-cache.js +22 -198
  101. package/dist/infrastructure/cache/response-cache.js.map +1 -1
  102. package/dist/infrastructure/cache/security-scan-cache.d.ts +8 -49
  103. package/dist/infrastructure/cache/security-scan-cache.d.ts.map +1 -1
  104. package/dist/infrastructure/cache/security-scan-cache.js +25 -102
  105. package/dist/infrastructure/cache/security-scan-cache.js.map +1 -1
  106. package/dist/infrastructure/completion/bash-completion.d.ts +2 -3
  107. package/dist/infrastructure/completion/bash-completion.d.ts.map +1 -1
  108. package/dist/infrastructure/completion/bash-completion.js +11 -87
  109. package/dist/infrastructure/completion/bash-completion.js.map +1 -1
  110. package/dist/infrastructure/completion/fish-completion.d.ts +2 -3
  111. package/dist/infrastructure/completion/fish-completion.d.ts.map +1 -1
  112. package/dist/infrastructure/completion/fish-completion.js +15 -58
  113. package/dist/infrastructure/completion/fish-completion.js.map +1 -1
  114. package/dist/infrastructure/completion/zsh-completion.d.ts +2 -3
  115. package/dist/infrastructure/completion/zsh-completion.d.ts.map +1 -1
  116. package/dist/infrastructure/completion/zsh-completion.js +18 -73
  117. package/dist/infrastructure/completion/zsh-completion.js.map +1 -1
  118. package/dist/infrastructure/config/config-manager.d.ts +10 -0
  119. package/dist/infrastructure/config/config-manager.d.ts.map +1 -1
  120. package/dist/infrastructure/config/config-manager.js +13 -2
  121. package/dist/infrastructure/config/config-manager.js.map +1 -1
  122. package/dist/infrastructure/context/conversation-context.d.ts +27 -31
  123. package/dist/infrastructure/context/conversation-context.d.ts.map +1 -1
  124. package/dist/infrastructure/context/conversation-context.js +95 -136
  125. package/dist/infrastructure/context/conversation-context.js.map +1 -1
  126. package/dist/infrastructure/context/session-manager.d.ts +27 -11
  127. package/dist/infrastructure/context/session-manager.d.ts.map +1 -1
  128. package/dist/infrastructure/context/session-manager.js +69 -73
  129. package/dist/infrastructure/context/session-manager.js.map +1 -1
  130. package/dist/infrastructure/protocols/a2a-metadata.js +1 -1
  131. package/dist/infrastructure/protocols/mcp-oauth.js +1 -1
  132. package/dist/infrastructure/providers/cohere-provider.d.ts.map +1 -1
  133. package/dist/infrastructure/providers/cohere-provider.js +102 -17
  134. package/dist/infrastructure/providers/cohere-provider.js.map +1 -1
  135. package/dist/infrastructure/providers/openrouter-provider.d.ts +42 -0
  136. package/dist/infrastructure/providers/openrouter-provider.d.ts.map +1 -0
  137. package/dist/infrastructure/providers/openrouter-provider.js +401 -0
  138. package/dist/infrastructure/providers/openrouter-provider.js.map +1 -0
  139. package/dist/infrastructure/providers/operation-provider-resolver.d.ts.map +1 -1
  140. package/dist/infrastructure/providers/operation-provider-resolver.js +33 -7
  141. package/dist/infrastructure/providers/operation-provider-resolver.js.map +1 -1
  142. package/dist/infrastructure/security/input-validator.d.ts.map +1 -1
  143. package/dist/infrastructure/security/input-validator.js +19 -6
  144. package/dist/infrastructure/security/input-validator.js.map +1 -1
  145. package/dist/infrastructure/serialization/toon-serializer.d.ts +45 -0
  146. package/dist/infrastructure/serialization/toon-serializer.d.ts.map +1 -0
  147. package/dist/infrastructure/serialization/toon-serializer.js +119 -0
  148. package/dist/infrastructure/serialization/toon-serializer.js.map +1 -0
  149. package/dist/infrastructure/storage/embeddings-path.d.ts +18 -0
  150. package/dist/infrastructure/storage/embeddings-path.d.ts.map +1 -0
  151. package/dist/infrastructure/storage/embeddings-path.js +37 -0
  152. package/dist/infrastructure/storage/embeddings-path.js.map +1 -0
  153. package/dist/infrastructure/storage/plan-repository.d.ts +2 -0
  154. package/dist/infrastructure/storage/plan-repository.d.ts.map +1 -1
  155. package/dist/infrastructure/storage/plan-repository.js +36 -73
  156. package/dist/infrastructure/storage/plan-repository.js.map +1 -1
  157. package/dist/infrastructure/storage/sqlite-embedding-repository.d.ts +10 -1
  158. package/dist/infrastructure/storage/sqlite-embedding-repository.d.ts.map +1 -1
  159. package/dist/infrastructure/storage/sqlite-embedding-repository.js +37 -3
  160. package/dist/infrastructure/storage/sqlite-embedding-repository.js.map +1 -1
  161. package/dist/infrastructure/storage/task-helpers.d.ts +12 -1
  162. package/dist/infrastructure/storage/task-helpers.d.ts.map +1 -1
  163. package/dist/infrastructure/storage/task-helpers.js +48 -8
  164. package/dist/infrastructure/storage/task-helpers.js.map +1 -1
  165. package/dist/infrastructure/storage/task-repository.d.ts +2 -1
  166. package/dist/infrastructure/storage/task-repository.d.ts.map +1 -1
  167. package/dist/infrastructure/storage/task-repository.js +14 -3
  168. package/dist/infrastructure/storage/task-repository.js.map +1 -1
  169. package/dist/infrastructure/telemetry/telemetry-service.d.ts +74 -0
  170. package/dist/infrastructure/telemetry/telemetry-service.d.ts.map +1 -0
  171. package/dist/infrastructure/telemetry/telemetry-service.js +167 -0
  172. package/dist/infrastructure/telemetry/telemetry-service.js.map +1 -0
  173. package/dist/infrastructure/ux/capability-boundaries.d.ts +9 -37
  174. package/dist/infrastructure/ux/capability-boundaries.d.ts.map +1 -1
  175. package/dist/infrastructure/ux/capability-boundaries.js +23 -148
  176. package/dist/infrastructure/ux/capability-boundaries.js.map +1 -1
  177. package/dist/infrastructure/ux/comprehensive-formatter.d.ts +12 -54
  178. package/dist/infrastructure/ux/comprehensive-formatter.d.ts.map +1 -1
  179. package/dist/infrastructure/ux/comprehensive-formatter.js +87 -182
  180. package/dist/infrastructure/ux/comprehensive-formatter.js.map +1 -1
  181. package/dist/infrastructure/ux/contextual-feature-discovery.d.ts +5 -18
  182. package/dist/infrastructure/ux/contextual-feature-discovery.d.ts.map +1 -1
  183. package/dist/infrastructure/ux/contextual-feature-discovery.js +5 -139
  184. package/dist/infrastructure/ux/contextual-feature-discovery.js.map +1 -1
  185. package/dist/infrastructure/ux/feature-discovery.d.ts +3 -33
  186. package/dist/infrastructure/ux/feature-discovery.d.ts.map +1 -1
  187. package/dist/infrastructure/ux/feature-discovery.js +5 -181
  188. package/dist/infrastructure/ux/feature-discovery.js.map +1 -1
  189. package/dist/infrastructure/ux/feedback-prompt.d.ts +15 -31
  190. package/dist/infrastructure/ux/feedback-prompt.d.ts.map +1 -1
  191. package/dist/infrastructure/ux/feedback-prompt.js +30 -166
  192. package/dist/infrastructure/ux/feedback-prompt.js.map +1 -1
  193. package/dist/infrastructure/ux/progress-indicator.d.ts +4 -6
  194. package/dist/infrastructure/ux/progress-indicator.d.ts.map +1 -1
  195. package/dist/infrastructure/ux/progress-indicator.js +35 -50
  196. package/dist/infrastructure/ux/progress-indicator.js.map +1 -1
  197. package/dist/infrastructure/ux/review-checkpoint.d.ts +3 -1
  198. package/dist/infrastructure/ux/review-checkpoint.d.ts.map +1 -1
  199. package/dist/infrastructure/ux/review-checkpoint.js +33 -80
  200. package/dist/infrastructure/ux/review-checkpoint.js.map +1 -1
  201. package/dist/infrastructure/ux/staged-feature-intro.d.ts +14 -39
  202. package/dist/infrastructure/ux/staged-feature-intro.d.ts.map +1 -1
  203. package/dist/infrastructure/ux/staged-feature-intro.js +12 -132
  204. package/dist/infrastructure/ux/staged-feature-intro.js.map +1 -1
  205. package/dist/infrastructure/ux/syntax-highlighter.d.ts +1 -2
  206. package/dist/infrastructure/ux/syntax-highlighter.d.ts.map +1 -1
  207. package/dist/infrastructure/ux/syntax-highlighter.js +67 -148
  208. package/dist/infrastructure/ux/syntax-highlighter.js.map +1 -1
  209. package/dist/infrastructure/validation/agent-feedback.d.ts +25 -89
  210. package/dist/infrastructure/validation/agent-feedback.d.ts.map +1 -1
  211. package/dist/infrastructure/validation/agent-feedback.js +32 -204
  212. package/dist/infrastructure/validation/agent-feedback.js.map +1 -1
  213. package/dist/infrastructure/validation/agent-validation-helper.d.ts +53 -53
  214. package/dist/infrastructure/validation/agent-validation-helper.d.ts.map +1 -1
  215. package/dist/infrastructure/validation/agent-validation-helper.js +110 -61
  216. package/dist/infrastructure/validation/agent-validation-helper.js.map +1 -1
  217. package/dist/infrastructure/validation/review-handler.d.ts +13 -41
  218. package/dist/infrastructure/validation/review-handler.d.ts.map +1 -1
  219. package/dist/infrastructure/validation/review-handler.js +23 -189
  220. package/dist/infrastructure/validation/review-handler.js.map +1 -1
  221. package/dist/infrastructure/validation/summary-aggregator.d.ts +25 -22
  222. package/dist/infrastructure/validation/summary-aggregator.d.ts.map +1 -1
  223. package/dist/infrastructure/validation/summary-aggregator.js +47 -133
  224. package/dist/infrastructure/validation/summary-aggregator.js.map +1 -1
  225. package/dist/infrastructure/validation/summary-extractor.d.ts +13 -48
  226. package/dist/infrastructure/validation/summary-extractor.d.ts.map +1 -1
  227. package/dist/infrastructure/validation/summary-extractor.js +32 -89
  228. package/dist/infrastructure/validation/summary-extractor.js.map +1 -1
  229. package/dist/infrastructure/validation/trace-summary.d.ts +30 -57
  230. package/dist/infrastructure/validation/trace-summary.d.ts.map +1 -1
  231. package/dist/infrastructure/validation/trace-summary.js +37 -356
  232. package/dist/infrastructure/validation/trace-summary.js.map +1 -1
  233. package/dist/monitoring.d.ts +1 -1
  234. package/dist/monitoring.d.ts.map +1 -1
  235. package/dist/monitoring.js +12 -9
  236. package/dist/monitoring.js.map +1 -1
  237. package/dist/parallel-processor.d.ts.map +1 -1
  238. package/dist/parallel-processor.js +124 -45
  239. package/dist/parallel-processor.js.map +1 -1
  240. package/dist/presentation/cli/commands/ask-command.d.ts +2 -0
  241. package/dist/presentation/cli/commands/ask-command.d.ts.map +1 -1
  242. package/dist/presentation/cli/commands/ask-command.js +316 -129
  243. package/dist/presentation/cli/commands/ask-command.js.map +1 -1
  244. package/dist/presentation/cli/commands/config-command.d.ts.map +1 -1
  245. package/dist/presentation/cli/commands/config-command.js +22 -8
  246. package/dist/presentation/cli/commands/config-command.js.map +1 -1
  247. package/dist/presentation/cli/commands/decision-command.js +23 -6
  248. package/dist/presentation/cli/commands/decision-command.js.map +1 -1
  249. package/dist/presentation/cli/commands/docs-command.d.ts +3 -1
  250. package/dist/presentation/cli/commands/docs-command.d.ts.map +1 -1
  251. package/dist/presentation/cli/commands/docs-command.js +13 -184
  252. package/dist/presentation/cli/commands/docs-command.js.map +1 -1
  253. package/dist/presentation/cli/commands/fix-command.d.ts +2 -0
  254. package/dist/presentation/cli/commands/fix-command.d.ts.map +1 -1
  255. package/dist/presentation/cli/commands/fix-command.js +61 -276
  256. package/dist/presentation/cli/commands/fix-command.js.map +1 -1
  257. package/dist/presentation/cli/commands/help-command.d.ts.map +1 -1
  258. package/dist/presentation/cli/commands/help-command.js +21 -1
  259. package/dist/presentation/cli/commands/help-command.js.map +1 -1
  260. package/dist/presentation/cli/commands/memory-command.d.ts +17 -0
  261. package/dist/presentation/cli/commands/memory-command.d.ts.map +1 -0
  262. package/dist/presentation/cli/commands/memory-command.js +252 -0
  263. package/dist/presentation/cli/commands/memory-command.js.map +1 -0
  264. package/dist/presentation/cli/commands/models-command.d.ts +13 -0
  265. package/dist/presentation/cli/commands/models-command.d.ts.map +1 -0
  266. package/dist/presentation/cli/commands/models-command.js +194 -0
  267. package/dist/presentation/cli/commands/models-command.js.map +1 -0
  268. package/dist/presentation/cli/commands/orchestrate-command.d.ts +1 -0
  269. package/dist/presentation/cli/commands/orchestrate-command.d.ts.map +1 -1
  270. package/dist/presentation/cli/commands/orchestrate-command.js +129 -14
  271. package/dist/presentation/cli/commands/orchestrate-command.js.map +1 -1
  272. package/dist/presentation/cli/commands/plan-command.d.ts +1 -0
  273. package/dist/presentation/cli/commands/plan-command.d.ts.map +1 -1
  274. package/dist/presentation/cli/commands/plan-command.js +134 -25
  275. package/dist/presentation/cli/commands/plan-command.js.map +1 -1
  276. package/dist/presentation/cli/commands/product-command.d.ts +6 -4
  277. package/dist/presentation/cli/commands/product-command.d.ts.map +1 -1
  278. package/dist/presentation/cli/commands/product-command.js +12 -178
  279. package/dist/presentation/cli/commands/product-command.js.map +1 -1
  280. package/dist/presentation/cli/commands/react-command.d.ts.map +1 -1
  281. package/dist/presentation/cli/commands/react-command.js +5 -1
  282. package/dist/presentation/cli/commands/react-command.js.map +1 -1
  283. package/dist/presentation/cli/commands/review-command.d.ts +7 -7
  284. package/dist/presentation/cli/commands/review-command.d.ts.map +1 -1
  285. package/dist/presentation/cli/commands/review-command.js +167 -16
  286. package/dist/presentation/cli/commands/review-command.js.map +1 -1
  287. package/dist/presentation/cli/commands/run-command.d.ts +6 -8
  288. package/dist/presentation/cli/commands/run-command.d.ts.map +1 -1
  289. package/dist/presentation/cli/commands/run-command.js +182 -23
  290. package/dist/presentation/cli/commands/run-command.js.map +1 -1
  291. package/dist/presentation/cli/commands/setup-command.d.ts.map +1 -1
  292. package/dist/presentation/cli/commands/setup-command.js +15 -0
  293. package/dist/presentation/cli/commands/setup-command.js.map +1 -1
  294. package/dist/presentation/cli/commands/smart-command.d.ts.map +1 -1
  295. package/dist/presentation/cli/commands/smart-command.js +74 -6
  296. package/dist/presentation/cli/commands/smart-command.js.map +1 -1
  297. package/dist/presentation/cli/commands/status-command.d.ts +3 -0
  298. package/dist/presentation/cli/commands/status-command.d.ts.map +1 -1
  299. package/dist/presentation/cli/commands/status-command.js +151 -156
  300. package/dist/presentation/cli/commands/status-command.js.map +1 -1
  301. package/dist/presentation/cli/commands/suggest-command.d.ts +3 -5
  302. package/dist/presentation/cli/commands/suggest-command.d.ts.map +1 -1
  303. package/dist/presentation/cli/commands/suggest-command.js +132 -19
  304. package/dist/presentation/cli/commands/suggest-command.js.map +1 -1
  305. package/dist/presentation/cli/error-display.d.ts.map +1 -1
  306. package/dist/presentation/cli/error-display.js +75 -17
  307. package/dist/presentation/cli/error-display.js.map +1 -1
  308. package/dist/search.d.ts.map +1 -1
  309. package/dist/search.js +6 -1
  310. package/dist/search.js.map +1 -1
  311. package/dist/session.d.ts +1 -0
  312. package/dist/session.d.ts.map +1 -1
  313. package/dist/session.js +55 -7
  314. package/dist/session.js.map +1 -1
  315. package/dist/tools/bash.d.ts.map +1 -1
  316. package/dist/tools/bash.js +3 -0
  317. package/dist/tools/bash.js.map +1 -1
  318. package/dist/tools/git-tool.js +7 -7
  319. package/dist/tools/git-tool.js.map +1 -1
  320. package/dist/ui.d.ts +11 -0
  321. package/dist/ui.d.ts.map +1 -1
  322. package/dist/ui.js +54 -1
  323. package/dist/ui.js.map +1 -1
  324. package/package.json +14 -4
@@ -1,167 +1,42 @@
1
1
  /**
2
- * Infrastructure: Explicit Capability Boundaries
3
- * Task 3.3: Show limitations when user requests unsupported features
2
+ * Capability Boundaries
3
+ * Detects unsupported operations and displays boundaries
4
4
  *
5
- * Features:
6
- * - Detects unsupported operation requests
7
- * - Shows clear capability boundaries
8
- * - Suggests alternatives when capabilities exceeded
9
- */
10
- import { colors, separator, warning, info, createBox, } from '../../ui.js';
11
- /**
12
- * Display capability boundary message when unsupported operation detected
13
- */
14
- export function displayCapabilityBoundary(boundary) {
15
- console.log('');
16
- console.log(separator('═', 80));
17
- console.log(warning('⚠️ Capability Boundary'));
18
- console.log(separator('═', 80));
19
- console.log('');
20
- console.log(colors.bold('Unsupported Operation:'));
21
- console.log(` ${boundary.unsupportedOperation}`);
22
- console.log('');
23
- console.log(colors.bold('Reason:'));
24
- console.log(` ${colors.dim(boundary.reason)}`);
25
- console.log('');
26
- if (boundary.alternatives && boundary.alternatives.length > 0) {
27
- console.log(colors.bold('Alternatives:'));
28
- boundary.alternatives.forEach((alt, idx) => {
29
- console.log(` ${idx + 1}. ${info(alt)}`);
30
- });
31
- console.log('');
32
- }
33
- console.log(separator('═', 80));
34
- console.log('');
35
- }
36
- /**
37
- * Detect unsupported operations in user queries
5
+ * Phase 1: v0.5.0-alpha.0
38
6
  */
7
+ import { colors, warning } from '../../ui.js';
39
8
  export class CapabilityBoundaryDetector {
40
- unsupportedPatterns = [];
41
- constructor() {
42
- this.initializePatterns();
43
- }
44
9
  /**
45
- * Detect if query requests unsupported operation
10
+ * Detect unsupported operations
46
11
  */
47
12
  detectUnsupported(query) {
48
- const lowerQuery = query.toLowerCase();
49
- // Check each unsupported pattern
50
- for (const { pattern, reason, alternatives } of this.unsupportedPatterns) {
51
- if (pattern.test(lowerQuery)) {
13
+ // In alpha, minimal detection
14
+ // Can be enhanced later with more sophisticated detection
15
+ const unsupportedPatterns = [
16
+ { pattern: /\b(deploy|publish|release|ship)\b/i, reason: 'Deployment operations are not supported' },
17
+ { pattern: /\b(delete|remove|destroy|wipe)\s+(all|everything|database|data)\b/i, reason: 'Bulk deletion operations are not supported' },
18
+ ];
19
+ for (const { pattern, reason } of unsupportedPatterns) {
20
+ if (pattern.test(query)) {
52
21
  return {
53
- unsupportedOperation: this.extractOperation(query, pattern),
22
+ operation: query,
54
23
  reason,
55
- alternatives,
56
- canSuggest: true,
57
24
  };
58
25
  }
59
26
  }
60
27
  return null;
61
28
  }
62
- /**
63
- * Extract operation from query
64
- */
65
- extractOperation(query, pattern) {
66
- const match = query.match(pattern);
67
- if (match) {
68
- return match[0];
69
- }
70
- return query.substring(0, 50) + (query.length > 50 ? '...' : '');
71
- }
72
- /**
73
- * Initialize unsupported operation patterns
74
- */
75
- initializePatterns() {
76
- // Code execution (direct execution requests)
77
- this.unsupportedPatterns.push({
78
- pattern: /\b(execute|run|test|execute code|run code|run tests|execute tests|run program)\b/i,
79
- reason: 'I cannot execute code or run tests directly for security reasons.',
80
- alternatives: [
81
- 'Generate test code: codehere "create tests for src/auth.ts"',
82
- 'Suggest test commands: codehere ask "how to test authentication"',
83
- 'Review code manually and run tests yourself',
84
- ],
85
- });
86
- // Database operations
87
- this.unsupportedPatterns.push({
88
- pattern: /\b(connect to database|query database|run sql|execute sql|database connection)\b/i,
89
- reason: 'I cannot connect to or query databases directly for security reasons.',
90
- alternatives: [
91
- 'Show database connection code: codehere "show database connection example"',
92
- 'Generate database query code: codehere "create SQL query for users table"',
93
- 'Review database schema: codehere "explain database schema"',
94
- ],
95
- });
96
- // Network operations
97
- this.unsupportedPatterns.push({
98
- pattern: /\b(make http request|send request|fetch from url|call api endpoint)\b/i,
99
- reason: 'I cannot make HTTP requests or call external APIs directly.',
100
- alternatives: [
101
- 'Generate HTTP request code: codehere "create HTTP request function"',
102
- 'Show API integration example: codehere "show API integration pattern"',
103
- 'Review existing API calls: codehere "explain API calls in codebase"',
104
- ],
105
- });
106
- // File system operations (destructive)
107
- this.unsupportedPatterns.push({
108
- pattern: /\b(delete file|remove file|rm -rf|format disk|wipe data)\b/i,
109
- reason: 'I cannot perform destructive file system operations directly.',
110
- alternatives: [
111
- 'Suggest deletion commands: codehere ask "how to safely delete files"',
112
- 'Review files before deletion: codehere "list files to delete"',
113
- 'Generate safe deletion script: codehere "create file deletion script"',
114
- ],
115
- });
116
- // System commands
117
- this.unsupportedPatterns.push({
118
- pattern: /\b(shutdown|restart|kill process|stop service|install package system-wide)\b/i,
119
- reason: 'I cannot execute system-level commands for security reasons.',
120
- alternatives: [
121
- 'Suggest commands: codehere ask "how to restart service"',
122
- 'Generate command scripts: codehere "create service restart script"',
123
- 'Review system configuration: codehere "explain system configuration"',
124
- ],
125
- });
126
- // Real-time operations
127
- this.unsupportedPatterns.push({
128
- pattern: /\b(watch|monitor|stream|real-time|live)\b.*\b(execute|run|perform)\b/i,
129
- reason: 'I cannot perform real-time monitoring or streaming operations.',
130
- alternatives: [
131
- 'Generate monitoring code: codehere "create monitoring script"',
132
- 'Show monitoring patterns: codehere "explain monitoring setup"',
133
- 'Suggest monitoring tools: codehere ask "what monitoring tools to use"',
134
- ],
135
- });
136
- }
137
- /**
138
- * Register custom unsupported pattern
139
- */
140
- registerPattern(pattern, reason, alternatives) {
141
- this.unsupportedPatterns.push({ pattern, reason, alternatives });
142
- }
143
29
  }
144
30
  /**
145
- * Get general capability boundaries message
31
+ * Display capability boundary message
146
32
  */
147
- export function getCapabilityBoundariesMessage() {
148
- const content = [
149
- 'What I CAN do:',
150
- ' ✓ Answer questions about your codebase',
151
- ' ✓ Generate and modify code',
152
- ' ✓ Explain code structure and logic',
153
- ' ✓ Suggest improvements and refactorings',
154
- ' ✓ Identify potential issues',
155
- '',
156
- 'What I CANNOT do:',
157
- ' ✗ Execute code or run tests directly',
158
- ' ✗ Connect to databases or APIs',
159
- ' ✗ Perform system-level operations',
160
- ' ✗ Guarantee code correctness',
161
- ' ✗ Replace thorough testing',
162
- '',
163
- 'Always review generated code and test before deploying.',
164
- ].join('\n');
165
- return createBox(content, { borderColor: colors.yellow });
33
+ export function displayCapabilityBoundary(boundary) {
34
+ console.log(warning('\n⚠️ Capability Boundary'));
35
+ console.log(warning(`Operation: ${boundary.operation}`));
36
+ console.log(warning(`Reason: ${boundary.reason}`));
37
+ if (boundary.alternative) {
38
+ console.log(colors.dim(`Alternative: ${boundary.alternative}`));
39
+ }
40
+ console.log('');
166
41
  }
167
42
  //# sourceMappingURL=capability-boundaries.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"capability-boundaries.js","sourceRoot":"","sources":["../../../src/infrastructure/ux/capability-boundaries.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EACL,MAAM,EACN,SAAS,EAET,OAAO,EACP,IAAI,EACJ,SAAS,GACV,MAAM,aAAa,CAAC;AAarB;;GAEG;AACH,MAAM,UAAU,yBAAyB,CAAC,QAA4B;IACpE,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAChB,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC;IAChC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,yBAAyB,CAAC,CAAC,CAAC;IAChD,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC;IAChC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAEhB,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC,CAAC;IACnD,OAAO,CAAC,GAAG,CAAC,KAAK,QAAQ,CAAC,oBAAoB,EAAE,CAAC,CAAC;IAClD,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAEhB,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAA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M,EAAE,+DAA+D;YACvE,YAAY,EAAE;gBACZ,sEAAsE;gBACtE,+DAA+D;gBAC/D,uEAAuE;aACxE;SACF,CAAC,CAAC;QAEH,kBAAkB;QAClB,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC;YAC5B,OAAO,EAAE,+EAA+E;YACxF,MAAM,EAAE,8DAA8D;YACtE,YAAY,EAAE;gBACZ,yDAAyD;gBACzD,oEAAoE;gBACpE,sEAAsE;aACvE;SACF,CAAC,CAAC;QAEH,uBAAuB;QACvB,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC;YAC5B,OAAO,EAAE,uEAAuE;YAChF,MAAM,EAAE,gEAAgE;YACxE,YAAY,EAAE;gBACZ,+DAA+D;gBAC/D,+DAA+D;gBAC/D,uEAAuE;aACxE;SACF,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,eAAe,CAAC,OAAe,EAAE,MAAc,EAAE,YAAsB;QACrE,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC,CAAC;IACnE,CAAC;CACF;AAED;;GAEG;AACH,MAAM,UAAU,8BAA8B;IAC5C,MAAM,OAAO,GAAG;QACd,gBAAgB;QAChB,0CAA0C;QAC1C,8BAA8B;QAC9B,sCAAsC;QACtC,2CAA2C;QAC3C,+BAA+B;QAC/B,EAAE;QACF,mBAAmB;QACnB,wCAAwC;QACxC,kCAAkC;QAClC,qCAAqC;QACrC,gCAAgC;QAChC,8BAA8B;QAC9B,EAAE;QACF,yDAAyD;KAC1D,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAEb,OAAO,SAAS,CAAC,OAAO,EAAE,EAAE,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;AAC5D,CAAC"}
1
+ {"version":3,"file":"capability-boundaries.js","sourceRoot":"","sources":["../../../src/infrastructure/ux/capability-boundaries.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAQ9C,MAAM,OAAO,0BAA0B;IACrC;;OAEG;IACH,iBAAiB,CAAC,KAAa;QAC7B,8BAA8B;QAC9B,0DAA0D;QAE1D,MAAM,mBAAmB,GAAG;YAC1B,EAAE,OAAO,EAAE,oCAAoC,EAAE,MAAM,EAAE,yCAAyC,EAAE;YACpG,EAAE,OAAO,EAAE,oEAAoE,EAAE,MAAM,EAAE,4CAA4C,EAAE;SACxI,CAAC;QAEF,KAAK,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,mBAAmB,EAAE,CAAC;YACtD,IAAI,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;gBACxB,OAAO;oBACL,SAAS,EAAE,KAAK;oBAChB,MAAM;iBACP,CAAC;YACJ,CAAC;QACH,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAED;;GAEG;AACH,MAAM,UAAU,yBAAyB,CAAC,QAA4B;IACpE,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,2BAA2B,CAAC,CAAC,CAAC;IAClD,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,cAAc,QAAQ,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC;IACzD,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,WAAW,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IACnD,IAAI,QAAQ,CAAC,WAAW,EAAE,CAAC;QACzB,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,gBAAgB,QAAQ,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;IAClE,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;AAClB,CAAC"}
@@ -1,63 +1,21 @@
1
1
  /**
2
- * Comprehensive Formatter for All CLI Output
3
- * Ensures consistent, well-formatted output across ALL commands and use cases
2
+ * Comprehensive Formatter
3
+ * Format content for CLI display with proper indentation and wrapping
4
+ *
5
+ * Phase 1: v0.5.0-alpha.0
4
6
  */
5
- /**
6
- * Format any text content with proper indentation, wrapping, and visual hierarchy
7
- */
8
- export declare function formatContent(content: string, options?: {
7
+ interface FormatOptions {
9
8
  indent?: number;
10
9
  maxWidth?: number;
11
- preserveFormatting?: boolean;
12
- color?: (text: string) => string;
13
- }): string;
14
- /**
15
- * Format section headers with consistent styling and color coding
16
- * DELIGHTFUL UX: Enhanced color coding for better visual hierarchy
17
- */
18
- export declare function formatSectionHeader(title: string, level?: 1 | 2 | 3): string;
19
- /**
20
- * Format numbered lists with proper indentation
21
- */
22
- export declare function formatNumberedList(items: string[], indent?: number): string;
23
- /**
24
- * Format bullet lists with proper indentation
25
- */
26
- /**
27
- * Format bullet list with enhanced color coding and spacing
28
- * DELIGHTFUL UX: Consistent bullet styling with proper spacing and color
29
- */
30
- export declare function formatBulletList(items: string[], indent?: number): string;
31
- /**
32
- * Format reflection/learning content with proper structure
33
- */
34
- export declare function formatReflection(reflection: string): string;
35
- /**
36
- * Format code blocks with proper borders and syntax highlighting
37
- */
38
- export declare function formatCodeBlock(code: string, language?: string, filepath?: string): string;
39
- /**
40
- * Format table data with consistent styling
41
- */
42
- export declare function formatTableData(rows: string[][]): string;
43
- /**
44
- * Format metadata/summary information
45
- */
46
- export declare function formatMetadata(metadata: Record<string, string | number>): string;
47
- /**
48
- * Format error messages with proper structure
49
- */
50
- export declare function formatErrorMessage(error: string, suggestions?: string[]): string;
51
- /**
52
- * Format success messages
53
- */
54
- export declare function formatSuccessMessage(message: string): string;
10
+ preserveMarkdown?: boolean;
11
+ }
55
12
  /**
56
- * Format warning messages
13
+ * Format content for CLI display
57
14
  */
58
- export declare function formatWarningMessage(message: string): string;
15
+ export declare function formatContent(content: string, options?: FormatOptions): string;
59
16
  /**
60
- * Format info messages
17
+ * Format reflection/analysis output
61
18
  */
62
- export declare function formatInfoMessage(message: string): string;
19
+ export declare function formatReflection(reflection: any, options?: FormatOptions): string;
20
+ export {};
63
21
  //# sourceMappingURL=comprehensive-formatter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"comprehensive-formatter.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/ux/comprehensive-formatter.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH;;GAEG;AACH,wBAAgB,aAAa,CAC3B,OAAO,EAAE,MAAM,EACf,OAAO,GAAE;IACP,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,KAAK,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;CAC7B,GACL,MAAM,CAmCR;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,GAAE,CAAC,GAAG,CAAC,GAAG,CAAK,GAAG,MAAM,CAc/E;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,MAAM,GAAE,MAAU,GAAG,MAAM,CAY9E;AAED;;GAEG;AACH;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,MAAM,GAAE,MAAU,GAAG,MAAM,CAe5E;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAsD3D;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAI1F;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,GAAG,MAAM,CASxD;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,GAAG,MAAM,CAMhF;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAahF;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAE5D;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAE5D;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEzD"}
1
+ {"version":3,"file":"comprehensive-formatter.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/ux/comprehensive-formatter.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,UAAU,aAAa;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,GAAE,aAAkB,GAAG,MAAM,CAsDlF;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,GAAG,EAAE,OAAO,GAAE,aAAkB,GAAG,MAAM,CAiCrF"}
@@ -1,212 +1,117 @@
1
1
  /**
2
- * Comprehensive Formatter for All CLI Output
3
- * Ensures consistent, well-formatted output across ALL commands and use cases
2
+ * Comprehensive Formatter
3
+ * Format content for CLI display with proper indentation and wrapping
4
+ *
5
+ * Phase 1: v0.5.0-alpha.0
4
6
  */
5
- import { colors } from '../../ui.js';
6
- import { formatResponse } from '../../formatter.js';
7
7
  /**
8
- * Format any text content with proper indentation, wrapping, and visual hierarchy
8
+ * Format content for CLI display
9
9
  */
10
10
  export function formatContent(content, options = {}) {
11
- const { indent = 0, maxWidth = 76, // 80 - 4 for default indent
12
- preserveFormatting = false, color = (text) => text, } = options;
13
- if (!content || !content.trim()) {
11
+ const { indent = 0, maxWidth = 76, preserveMarkdown = true, } = options;
12
+ if (!content) {
14
13
  return '';
15
14
  }
16
- // First, format markdown if not preserving
17
- let formatted = preserveFormatting ? content : formatResponse(content, maxWidth);
18
- // Split into lines
19
- const lines = formatted.split('\n');
20
15
  const indentStr = ' '.repeat(indent);
21
- const result = [];
16
+ const actualMaxWidth = maxWidth - indent;
17
+ // If content is short enough, return as-is with indentation
18
+ if (content.length <= actualMaxWidth && !content.includes('\n')) {
19
+ return indentStr + content;
20
+ }
21
+ // Handle markdown code blocks
22
+ if (preserveMarkdown && content.includes('```')) {
23
+ return formatMarkdownContent(content, indent, actualMaxWidth);
24
+ }
25
+ // Simple word wrapping
26
+ const lines = content.split('\n');
27
+ const wrappedLines = [];
22
28
  for (const line of lines) {
23
- const trimmed = line.trim();
24
- if (!trimmed) {
25
- // Empty line - preserve spacing but avoid multiple consecutive
26
- if (result.length === 0 || result[result.length - 1] !== '') {
27
- result.push('');
28
- }
29
+ if (line.length <= actualMaxWidth) {
30
+ wrappedLines.push(indentStr + line);
29
31
  }
30
32
  else {
31
- // Apply indentation and color
32
- result.push(indentStr + color(trimmed));
33
+ // Word wrap
34
+ const words = line.split(/\s+/);
35
+ let currentLine = '';
36
+ for (const word of words) {
37
+ if ((currentLine + word).length <= actualMaxWidth) {
38
+ currentLine += (currentLine ? ' ' : '') + word;
39
+ }
40
+ else {
41
+ if (currentLine) {
42
+ wrappedLines.push(indentStr + currentLine);
43
+ }
44
+ currentLine = word;
45
+ }
46
+ }
47
+ if (currentLine) {
48
+ wrappedLines.push(indentStr + currentLine);
49
+ }
33
50
  }
34
51
  }
35
- return result.join('\n');
52
+ return wrappedLines.join('\n');
36
53
  }
37
54
  /**
38
- * Format section headers with consistent styling and color coding
39
- * DELIGHTFUL UX: Enhanced color coding for better visual hierarchy
55
+ * Format reflection/analysis output
40
56
  */
41
- export function formatSectionHeader(title, level = 1) {
42
- switch (level) {
43
- case 1:
44
- // Level 1: Cyan bold for major sections (with spacing)
45
- return '\n' + colors.bold.cyan(title) + '\n' + colors.dim('─'.repeat(Math.min(title.length, 60))) + '\n';
46
- case 2:
47
- // Level 2: Blue bold for subsections
48
- return '\n' + colors.bold.blue(title) + '\n';
49
- case 3:
50
- // Level 3: Regular bold for minor sections
51
- return colors.bold(title);
52
- default:
53
- return colors.bold(title);
57
+ export function formatReflection(reflection, options = {}) {
58
+ if (!reflection) {
59
+ return '';
54
60
  }
61
+ if (typeof reflection === 'string') {
62
+ return formatContent(reflection, options);
63
+ }
64
+ if (typeof reflection === 'object') {
65
+ // Format structured reflection
66
+ const parts = [];
67
+ if (reflection.insight) {
68
+ parts.push(`💡 Insight:\n${formatContent(reflection.insight, { ...options, indent: (options.indent || 0) + 2 })}`);
69
+ }
70
+ if (reflection.reasoning) {
71
+ parts.push(`🧠 Reasoning:\n${formatContent(reflection.reasoning, { ...options, indent: (options.indent || 0) + 2 })}`);
72
+ }
73
+ if (reflection.summary) {
74
+ parts.push(`📋 Summary:\n${formatContent(reflection.summary, { ...options, indent: (options.indent || 0) + 2 })}`);
75
+ }
76
+ if (parts.length === 0) {
77
+ return formatContent(JSON.stringify(reflection, null, 2), options);
78
+ }
79
+ return parts.join('\n\n');
80
+ }
81
+ return String(reflection);
55
82
  }
56
83
  /**
57
- * Format numbered lists with proper indentation
58
- */
59
- export function formatNumberedList(items, indent = 2) {
60
- return items
61
- .map((item, index) => {
62
- const num = `${index + 1}.`;
63
- const indentStr = ' '.repeat(indent);
64
- const formattedItem = formatContent(item, {
65
- indent: indent + num.length + 1,
66
- maxWidth: 76 - indent - num.length - 1,
67
- });
68
- return `${indentStr}${colors.bold(num)} ${formattedItem.split('\n').join('\n' + ' '.repeat(indent + num.length + 1))}`;
69
- })
70
- .join('\n\n');
71
- }
72
- /**
73
- * Format bullet lists with proper indentation
74
- */
75
- /**
76
- * Format bullet list with enhanced color coding and spacing
77
- * DELIGHTFUL UX: Consistent bullet styling with proper spacing and color
78
- */
79
- export function formatBulletList(items, indent = 2) {
80
- return items
81
- .map((item, index) => {
82
- const indentStr = ' '.repeat(indent);
83
- // Use cyan bullet for visual consistency and delight
84
- const bullet = colors.cyan('•');
85
- const formattedItem = formatContent(item, {
86
- indent: indent + 2,
87
- maxWidth: 76 - indent - 2,
88
- });
89
- // Add proper spacing between items
90
- const spacing = index > 0 ? '\n' : '';
91
- return `${spacing}${indentStr}${bullet} ${formattedItem.split('\n').join('\n' + ' '.repeat(indent + 2))}`;
92
- })
93
- .join('\n');
94
- }
95
- /**
96
- * Format reflection/learning content with proper structure
84
+ * Format markdown content with code block preservation
97
85
  */
98
- export function formatReflection(reflection) {
99
- if (!reflection || !reflection.trim()) {
100
- return '';
101
- }
102
- // Remove redundant "Reflection:" header
103
- let cleaned = reflection.trim();
104
- cleaned = cleaned.replace(/^Reflection:\s*/i, '');
105
- cleaned = cleaned.replace(/^\*\*Reflection:\*\*\s*/i, '');
106
- // Format the content
107
- const formatted = formatResponse(cleaned, 76);
108
- const lines = formatted.split('\n');
109
- const result = [];
110
- let lastWasEmpty = false;
111
- for (let i = 0; i < lines.length; i++) {
112
- const line = lines[i];
113
- const trimmed = line.trim();
114
- // Skip redundant "Reflection:" header
115
- if (trimmed.toLowerCase() === 'reflection:' || trimmed.toLowerCase().startsWith('reflection:')) {
116
- continue;
117
- }
118
- if (!trimmed) {
119
- // Empty line - add spacing but avoid multiple consecutive
120
- if (!lastWasEmpty && result.length > 0) {
121
- result.push('');
122
- lastWasEmpty = true;
86
+ function formatMarkdownContent(content, indent, maxWidth) {
87
+ const indentStr = ' '.repeat(indent);
88
+ const lines = content.split('\n');
89
+ const formatted = [];
90
+ let inCodeBlock = false;
91
+ let codeBlockLang = '';
92
+ for (const line of lines) {
93
+ if (line.trim().startsWith('```')) {
94
+ inCodeBlock = !inCodeBlock;
95
+ if (inCodeBlock) {
96
+ codeBlockLang = line.trim().substring(3).trim();
123
97
  }
98
+ formatted.push(indentStr + line);
99
+ }
100
+ else if (inCodeBlock) {
101
+ // Preserve code blocks as-is
102
+ formatted.push(indentStr + line);
124
103
  }
125
104
  else {
126
- lastWasEmpty = false;
127
- // Detect section headers (numbered with capital letter)
128
- const isNumberedHeader = /^\d+\.\s+[A-Z]/.test(trimmed);
129
- if (isNumberedHeader) {
130
- // Section header - add spacing before and make it stand out
131
- if (i > 0 && lines[i - 1].trim()) {
132
- result.push('');
133
- }
134
- result.push(' ' + colors.bold.cyan(trimmed));
135
- }
136
- else if (trimmed.startsWith('•') || /^\d+\./.test(trimmed)) {
137
- // List item - indent properly
138
- result.push(' ' + trimmed);
105
+ // Format regular markdown lines
106
+ if (line.length <= maxWidth) {
107
+ formatted.push(indentStr + line);
139
108
  }
140
109
  else {
141
- // Regular text - indent and wrap
142
- result.push(' ' + trimmed);
110
+ // Word wrap for non-code content
111
+ formatted.push(formatContent(line, { indent, maxWidth: maxWidth + indent }));
143
112
  }
144
113
  }
145
114
  }
146
- return result.join('\n');
147
- }
148
- /**
149
- * Format code blocks with proper borders and syntax highlighting
150
- */
151
- export function formatCodeBlock(code, language, filepath) {
152
- // Use existing formatter
153
- const { formatCodeBlock: formatCode } = require('../../formatter.js');
154
- return formatCode(code, language, filepath);
155
- }
156
- /**
157
- * Format table data with consistent styling
158
- */
159
- export function formatTableData(rows) {
160
- return rows
161
- .map((row) => {
162
- return row.map((cell, idx) => {
163
- // First column: bold, others: normal
164
- return idx === 0 ? colors.bold(cell) : cell;
165
- }).join(' ');
166
- })
167
- .join('\n');
168
- }
169
- /**
170
- * Format metadata/summary information
171
- */
172
- export function formatMetadata(metadata) {
173
- const lines = [];
174
- for (const [key, value] of Object.entries(metadata)) {
175
- lines.push(` ${colors.dim(key + ':')} ${String(value)}`);
176
- }
177
- return lines.join('\n');
178
- }
179
- /**
180
- * Format error messages with proper structure
181
- */
182
- export function formatErrorMessage(error, suggestions) {
183
- const parts = [];
184
- parts.push(colors.red('Error: ' + error));
185
- if (suggestions && suggestions.length > 0) {
186
- parts.push('');
187
- parts.push(colors.bold('Suggestions:'));
188
- suggestions.forEach((suggestion) => {
189
- parts.push(' • ' + suggestion);
190
- });
191
- }
192
- return parts.join('\n');
193
- }
194
- /**
195
- * Format success messages
196
- */
197
- export function formatSuccessMessage(message) {
198
- return colors.green('✓ ' + message);
199
- }
200
- /**
201
- * Format warning messages
202
- */
203
- export function formatWarningMessage(message) {
204
- return colors.yellow('⚠ ' + message);
205
- }
206
- /**
207
- * Format info messages
208
- */
209
- export function formatInfoMessage(message) {
210
- return colors.blue('→ ' + message);
115
+ return formatted.join('\n');
211
116
  }
212
117
  //# sourceMappingURL=comprehensive-formatter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"comprehensive-formatter.js","sourceRoot":"","sources":["../../../src/infrastructure/ux/comprehensive-formatter.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAkB,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpE;;GAEG;AACH,MAAM,UAAU,aAAa,CAC3B,OAAe,EACf,UAKI,EAAE;IAEN,MAAM,EACJ,MAAM,GAAG,CAAC,EACV,QAAQ,GAAG,EAAE,EAAE,4BAA4B;IAC3C,kBAAkB,GAAG,KAAK,EAC1B,KAAK,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,IAAI,GAC/B,GAAG,OAAO,CAAC;IAEZ,IAAI,CAAC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC;QAChC,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,2CAA2C;IAC3C,IAAI,SAAS,GAAG,kBAAkB,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IAEjF,mBAAmB;IACnB,MAAM,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACpC,MAAM,SAAS,GAAG,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACrC,MAAM,MAA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EAAE,CAAC;QAC1C,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACf,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC;QACxC,WAAW,CAAC,OAAO,CAAC,CAAC,UAAU,EAAE,EAAE;YACjC,KAAK,CAAC,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,CAAC;QAClC,CAAC,CAAC,CAAC;IACL,CAAC;IAED,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,oBAAoB,CAAC,OAAe;IAClD,OAAO,MAAM,CAAC,KAAK,CAAC,IAAI,GAAG,OAAO,CAAC,CAAC;AACtC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,oBAAoB,CAAC,OAAe;IAClD,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,GAAG,OAAO,CAAC,CAAC;AACvC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,iBAAiB,CAAC,OAAe;IAC/C,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,CAAC;AACrC,CAAC"}
1
+ {"version":3,"file":"comprehensive-formatter.js","sourceRoot":"","sources":["../../../src/infrastructure/ux/comprehensive-formatter.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAQH;;GAEG;AACH,MAAM,UAAU,aAAa,CAAC,OAAe,EAAE,UAAyB,EAAE;IACxE,MAAM,EACJ,MAAM,GAAG,CAAC,EACV,QAAQ,GAAG,EAAE,EACb,gBAAgB,GAAG,IAAI,GACxB,GAAG,OAAO,CAAC;IAEZ,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,MAAM,SAAS,GAAG,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACrC,MAAM,cAAc,GAAG,QAAQ,GAAG,MAAM,CAAC;IAEzC,4DAA4D;IA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