codehere 0.3.0 → 0.5.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (389) hide show
  1. package/README.md +230 -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 +3 -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 +146 -70
  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 +46 -2
  27. package/dist/application/services/dependency-container.d.ts.map +1 -1
  28. package/dist/application/services/dependency-container.js +177 -7
  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 +306 -90
  33. package/dist/application/services/intelligent-router.js.map +1 -1
  34. package/dist/application/use-cases/ask-question-use-case.d.ts +19 -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 +125 -46
  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 +16 -1
  40. package/dist/application/use-cases/edit-file-use-case.js.map +1 -1
  41. package/dist/domain/entities/documentation.d.ts +35 -0
  42. package/dist/domain/entities/documentation.d.ts.map +1 -0
  43. package/dist/domain/entities/documentation.js +6 -0
  44. package/dist/domain/entities/documentation.js.map +1 -0
  45. package/dist/domain/entities/product-requirements.d.ts +50 -0
  46. package/dist/domain/entities/product-requirements.d.ts.map +1 -0
  47. package/dist/domain/entities/product-requirements.js +6 -0
  48. package/dist/domain/entities/product-requirements.js.map +1 -0
  49. package/dist/domain/entities/task.d.ts +152 -0
  50. package/dist/domain/entities/task.d.ts.map +1 -0
  51. package/dist/domain/entities/task.js +61 -0
  52. package/dist/domain/entities/task.js.map +1 -0
  53. package/dist/domain/errors/embeddings-not-found-error.d.ts +9 -0
  54. package/dist/domain/errors/embeddings-not-found-error.d.ts.map +1 -0
  55. package/dist/domain/errors/embeddings-not-found-error.js +13 -0
  56. package/dist/domain/errors/embeddings-not-found-error.js.map +1 -0
  57. package/dist/domain/interfaces/agent.interface.d.ts +15 -0
  58. package/dist/domain/interfaces/agent.interface.d.ts.map +1 -0
  59. package/dist/domain/interfaces/agent.interface.js +6 -0
  60. package/dist/domain/interfaces/agent.interface.js.map +1 -0
  61. package/dist/domain/interfaces/embedding-repository.interface.d.ts +5 -0
  62. package/dist/domain/interfaces/embedding-repository.interface.d.ts.map +1 -1
  63. package/dist/domain/services/environment-mode-manager.d.ts +12 -0
  64. package/dist/domain/services/environment-mode-manager.d.ts.map +1 -0
  65. package/dist/domain/services/environment-mode-manager.js +22 -0
  66. package/dist/domain/services/environment-mode-manager.js.map +1 -0
  67. package/dist/domain/services/risk-tier-detector.d.ts +17 -0
  68. package/dist/domain/services/risk-tier-detector.d.ts.map +1 -0
  69. package/dist/domain/services/risk-tier-detector.js +78 -0
  70. package/dist/domain/services/risk-tier-detector.js.map +1 -0
  71. package/dist/embed.d.ts.map +1 -1
  72. package/dist/embed.js +18 -8
  73. package/dist/embed.js.map +1 -1
  74. package/dist/formatter.d.ts.map +1 -1
  75. package/dist/formatter.js +10 -3
  76. package/dist/formatter.js.map +1 -1
  77. package/dist/index.js +398 -164
  78. package/dist/index.js.map +1 -1
  79. package/dist/infrastructure/ai/cohere-ai-service.d.ts.map +1 -1
  80. package/dist/infrastructure/ai/cohere-ai-service.js +18 -5
  81. package/dist/infrastructure/ai/cohere-ai-service.js.map +1 -1
  82. package/dist/infrastructure/ai/fake-ai-service.d.ts +22 -0
  83. package/dist/infrastructure/ai/fake-ai-service.d.ts.map +1 -0
  84. package/dist/infrastructure/ai/fake-ai-service.js +59 -0
  85. package/dist/infrastructure/ai/fake-ai-service.js.map +1 -0
  86. package/dist/infrastructure/ai/provider-ai-service.d.ts +59 -0
  87. package/dist/infrastructure/ai/provider-ai-service.d.ts.map +1 -0
  88. package/dist/infrastructure/ai/provider-ai-service.js +477 -0
  89. package/dist/infrastructure/ai/provider-ai-service.js.map +1 -0
  90. package/dist/infrastructure/cache/embedding-cache.d.ts +13 -1
  91. package/dist/infrastructure/cache/embedding-cache.d.ts.map +1 -1
  92. package/dist/infrastructure/cache/embedding-cache.js +80 -9
  93. package/dist/infrastructure/cache/embedding-cache.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 +18 -0
  99. package/dist/infrastructure/cache/response-cache.d.ts.map +1 -0
  100. package/dist/infrastructure/cache/response-cache.js +48 -0
  101. package/dist/infrastructure/cache/response-cache.js.map +1 -0
  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.js +2 -2
  119. package/dist/infrastructure/config/config-manager.js.map +1 -1
  120. package/dist/infrastructure/context/conversation-context.d.ts +54 -0
  121. package/dist/infrastructure/context/conversation-context.d.ts.map +1 -0
  122. package/dist/infrastructure/context/conversation-context.js +128 -0
  123. package/dist/infrastructure/context/conversation-context.js.map +1 -0
  124. package/dist/infrastructure/context/session-manager.d.ts +42 -0
  125. package/dist/infrastructure/context/session-manager.d.ts.map +1 -0
  126. package/dist/infrastructure/context/session-manager.js +94 -0
  127. package/dist/infrastructure/context/session-manager.js.map +1 -0
  128. package/dist/infrastructure/cost/cost-tracker.d.ts +1 -0
  129. package/dist/infrastructure/cost/cost-tracker.d.ts.map +1 -1
  130. package/dist/infrastructure/cost/cost-tracker.js +12 -5
  131. package/dist/infrastructure/cost/cost-tracker.js.map +1 -1
  132. package/dist/infrastructure/governance/nist-ai-rmf.d.ts +6 -8
  133. package/dist/infrastructure/governance/nist-ai-rmf.d.ts.map +1 -1
  134. package/dist/infrastructure/governance/nist-ai-rmf.js +6 -8
  135. package/dist/infrastructure/governance/nist-ai-rmf.js.map +1 -1
  136. package/dist/infrastructure/governance/policy-as-code.d.ts +6 -8
  137. package/dist/infrastructure/governance/policy-as-code.d.ts.map +1 -1
  138. package/dist/infrastructure/governance/policy-as-code.js +6 -8
  139. package/dist/infrastructure/governance/policy-as-code.js.map +1 -1
  140. package/dist/infrastructure/governance/prompt-to-code-lineage.d.ts +7 -9
  141. package/dist/infrastructure/governance/prompt-to-code-lineage.d.ts.map +1 -1
  142. package/dist/infrastructure/governance/prompt-to-code-lineage.js +7 -9
  143. package/dist/infrastructure/governance/prompt-to-code-lineage.js.map +1 -1
  144. package/dist/infrastructure/providers/cohere-provider.d.ts +39 -0
  145. package/dist/infrastructure/providers/cohere-provider.d.ts.map +1 -0
  146. package/dist/infrastructure/providers/cohere-provider.js +444 -0
  147. package/dist/infrastructure/providers/cohere-provider.js.map +1 -0
  148. package/dist/infrastructure/providers/fake-provider.d.ts +43 -0
  149. package/dist/infrastructure/providers/fake-provider.d.ts.map +1 -0
  150. package/dist/infrastructure/providers/fake-provider.js +130 -0
  151. package/dist/infrastructure/providers/fake-provider.js.map +1 -0
  152. package/dist/infrastructure/providers/local-llm-provider.d.ts +49 -0
  153. package/dist/infrastructure/providers/local-llm-provider.d.ts.map +1 -0
  154. package/dist/infrastructure/providers/local-llm-provider.js +330 -0
  155. package/dist/infrastructure/providers/local-llm-provider.js.map +1 -0
  156. package/dist/infrastructure/providers/model-config.types.d.ts +70 -0
  157. package/dist/infrastructure/providers/model-config.types.d.ts.map +1 -0
  158. package/dist/infrastructure/providers/model-config.types.js +9 -0
  159. package/dist/infrastructure/providers/model-config.types.js.map +1 -0
  160. package/dist/infrastructure/providers/model-provider.interface.d.ts +113 -0
  161. package/dist/infrastructure/providers/model-provider.interface.d.ts.map +1 -0
  162. package/dist/infrastructure/providers/model-provider.interface.js +8 -0
  163. package/dist/infrastructure/providers/model-provider.interface.js.map +1 -0
  164. package/dist/infrastructure/providers/openai-provider.d.ts +38 -0
  165. package/dist/infrastructure/providers/openai-provider.d.ts.map +1 -0
  166. package/dist/infrastructure/providers/openai-provider.js +413 -0
  167. package/dist/infrastructure/providers/openai-provider.js.map +1 -0
  168. package/dist/infrastructure/providers/openrouter-provider.d.ts +42 -0
  169. package/dist/infrastructure/providers/openrouter-provider.d.ts.map +1 -0
  170. package/dist/infrastructure/providers/openrouter-provider.js +399 -0
  171. package/dist/infrastructure/providers/openrouter-provider.js.map +1 -0
  172. package/dist/infrastructure/providers/operation-provider-resolver.d.ts +48 -0
  173. package/dist/infrastructure/providers/operation-provider-resolver.d.ts.map +1 -0
  174. package/dist/infrastructure/providers/operation-provider-resolver.js +105 -0
  175. package/dist/infrastructure/providers/operation-provider-resolver.js.map +1 -0
  176. package/dist/infrastructure/providers/provider-config-loader.d.ts +37 -0
  177. package/dist/infrastructure/providers/provider-config-loader.d.ts.map +1 -0
  178. package/dist/infrastructure/providers/provider-config-loader.js +120 -0
  179. package/dist/infrastructure/providers/provider-config-loader.js.map +1 -0
  180. package/dist/infrastructure/providers/provider-registry.d.ts +53 -0
  181. package/dist/infrastructure/providers/provider-registry.d.ts.map +1 -0
  182. package/dist/infrastructure/providers/provider-registry.js +88 -0
  183. package/dist/infrastructure/providers/provider-registry.js.map +1 -0
  184. package/dist/infrastructure/serialization/toon-serializer.d.ts +45 -0
  185. package/dist/infrastructure/serialization/toon-serializer.d.ts.map +1 -0
  186. package/dist/infrastructure/serialization/toon-serializer.js +119 -0
  187. package/dist/infrastructure/serialization/toon-serializer.js.map +1 -0
  188. package/dist/infrastructure/storage/embeddings-path.d.ts +18 -0
  189. package/dist/infrastructure/storage/embeddings-path.d.ts.map +1 -0
  190. package/dist/infrastructure/storage/embeddings-path.js +37 -0
  191. package/dist/infrastructure/storage/embeddings-path.js.map +1 -0
  192. package/dist/infrastructure/storage/plan-repository.d.ts +2 -0
  193. package/dist/infrastructure/storage/plan-repository.d.ts.map +1 -1
  194. package/dist/infrastructure/storage/plan-repository.js +36 -73
  195. package/dist/infrastructure/storage/plan-repository.js.map +1 -1
  196. package/dist/infrastructure/storage/sqlite-embedding-repository.d.ts +10 -1
  197. package/dist/infrastructure/storage/sqlite-embedding-repository.d.ts.map +1 -1
  198. package/dist/infrastructure/storage/sqlite-embedding-repository.js +37 -3
  199. package/dist/infrastructure/storage/sqlite-embedding-repository.js.map +1 -1
  200. package/dist/infrastructure/storage/task-helpers.d.ts +69 -0
  201. package/dist/infrastructure/storage/task-helpers.d.ts.map +1 -0
  202. package/dist/infrastructure/storage/task-helpers.js +197 -0
  203. package/dist/infrastructure/storage/task-helpers.js.map +1 -0
  204. package/dist/infrastructure/storage/task-repository.d.ts +67 -0
  205. package/dist/infrastructure/storage/task-repository.d.ts.map +1 -0
  206. package/dist/infrastructure/storage/task-repository.js +205 -0
  207. package/dist/infrastructure/storage/task-repository.js.map +1 -0
  208. package/dist/infrastructure/ux/bi-directional-learning.d.ts +22 -0
  209. package/dist/infrastructure/ux/bi-directional-learning.d.ts.map +1 -1
  210. package/dist/infrastructure/ux/bi-directional-learning.js +144 -7
  211. package/dist/infrastructure/ux/bi-directional-learning.js.map +1 -1
  212. package/dist/infrastructure/ux/capability-boundaries.d.ts +22 -0
  213. package/dist/infrastructure/ux/capability-boundaries.d.ts.map +1 -0
  214. package/dist/infrastructure/ux/capability-boundaries.js +42 -0
  215. package/dist/infrastructure/ux/capability-boundaries.js.map +1 -0
  216. package/dist/infrastructure/ux/comprehensive-formatter.d.ts +21 -0
  217. package/dist/infrastructure/ux/comprehensive-formatter.d.ts.map +1 -0
  218. package/dist/infrastructure/ux/comprehensive-formatter.js +117 -0
  219. package/dist/infrastructure/ux/comprehensive-formatter.js.map +1 -0
  220. package/dist/infrastructure/ux/contextual-feature-discovery.d.ts +5 -18
  221. package/dist/infrastructure/ux/contextual-feature-discovery.d.ts.map +1 -1
  222. package/dist/infrastructure/ux/contextual-feature-discovery.js +5 -139
  223. package/dist/infrastructure/ux/contextual-feature-discovery.js.map +1 -1
  224. package/dist/infrastructure/ux/feature-discovery.d.ts +3 -33
  225. package/dist/infrastructure/ux/feature-discovery.d.ts.map +1 -1
  226. package/dist/infrastructure/ux/feature-discovery.js +5 -181
  227. package/dist/infrastructure/ux/feature-discovery.js.map +1 -1
  228. package/dist/infrastructure/ux/feedback-prompt.d.ts +26 -0
  229. package/dist/infrastructure/ux/feedback-prompt.d.ts.map +1 -0
  230. package/dist/infrastructure/ux/feedback-prompt.js +45 -0
  231. package/dist/infrastructure/ux/feedback-prompt.js.map +1 -0
  232. package/dist/infrastructure/ux/hitl-review-portal.d.ts.map +1 -1
  233. package/dist/infrastructure/ux/hitl-review-portal.js +4 -1
  234. package/dist/infrastructure/ux/hitl-review-portal.js.map +1 -1
  235. package/dist/infrastructure/ux/hitl-validation.d.ts +35 -0
  236. package/dist/infrastructure/ux/hitl-validation.d.ts.map +1 -1
  237. package/dist/infrastructure/ux/hitl-validation.js +86 -0
  238. package/dist/infrastructure/ux/hitl-validation.js.map +1 -1
  239. package/dist/infrastructure/ux/progress-indicator.d.ts +4 -5
  240. package/dist/infrastructure/ux/progress-indicator.d.ts.map +1 -1
  241. package/dist/infrastructure/ux/progress-indicator.js +35 -40
  242. package/dist/infrastructure/ux/progress-indicator.js.map +1 -1
  243. package/dist/infrastructure/ux/proportional-friction.d.ts +73 -0
  244. package/dist/infrastructure/ux/proportional-friction.d.ts.map +1 -0
  245. package/dist/infrastructure/ux/proportional-friction.js +200 -0
  246. package/dist/infrastructure/ux/proportional-friction.js.map +1 -0
  247. package/dist/infrastructure/ux/review-checkpoint.d.ts +3 -1
  248. package/dist/infrastructure/ux/review-checkpoint.d.ts.map +1 -1
  249. package/dist/infrastructure/ux/review-checkpoint.js +33 -80
  250. package/dist/infrastructure/ux/review-checkpoint.js.map +1 -1
  251. package/dist/infrastructure/ux/staged-feature-intro.d.ts +14 -39
  252. package/dist/infrastructure/ux/staged-feature-intro.d.ts.map +1 -1
  253. package/dist/infrastructure/ux/staged-feature-intro.js +12 -132
  254. package/dist/infrastructure/ux/staged-feature-intro.js.map +1 -1
  255. package/dist/infrastructure/ux/syntax-highlighter.d.ts +1 -2
  256. package/dist/infrastructure/ux/syntax-highlighter.d.ts.map +1 -1
  257. package/dist/infrastructure/ux/syntax-highlighter.js +67 -148
  258. package/dist/infrastructure/ux/syntax-highlighter.js.map +1 -1
  259. package/dist/infrastructure/validation/agent-feedback.d.ts +51 -0
  260. package/dist/infrastructure/validation/agent-feedback.d.ts.map +1 -0
  261. package/dist/infrastructure/validation/agent-feedback.js +55 -0
  262. package/dist/infrastructure/validation/agent-feedback.js.map +1 -0
  263. package/dist/infrastructure/validation/agent-validation-helper.d.ts +75 -0
  264. package/dist/infrastructure/validation/agent-validation-helper.d.ts.map +1 -0
  265. package/dist/infrastructure/validation/agent-validation-helper.js +137 -0
  266. package/dist/infrastructure/validation/agent-validation-helper.js.map +1 -0
  267. package/dist/infrastructure/validation/feedback-stats.d.ts +99 -0
  268. package/dist/infrastructure/validation/feedback-stats.d.ts.map +1 -0
  269. package/dist/infrastructure/validation/feedback-stats.js +173 -0
  270. package/dist/infrastructure/validation/feedback-stats.js.map +1 -0
  271. package/dist/infrastructure/validation/review-handler.d.ts +26 -0
  272. package/dist/infrastructure/validation/review-handler.d.ts.map +1 -0
  273. package/dist/infrastructure/validation/review-handler.js +40 -0
  274. package/dist/infrastructure/validation/review-handler.js.map +1 -0
  275. package/dist/infrastructure/validation/summary-aggregator.d.ts +45 -0
  276. package/dist/infrastructure/validation/summary-aggregator.d.ts.map +1 -0
  277. package/dist/infrastructure/validation/summary-aggregator.js +70 -0
  278. package/dist/infrastructure/validation/summary-aggregator.js.map +1 -0
  279. package/dist/infrastructure/validation/summary-extractor.d.ts +24 -0
  280. package/dist/infrastructure/validation/summary-extractor.d.ts.map +1 -0
  281. package/dist/infrastructure/validation/summary-extractor.js +45 -0
  282. package/dist/infrastructure/validation/summary-extractor.js.map +1 -0
  283. package/dist/infrastructure/validation/trace-summary.d.ts +45 -0
  284. package/dist/infrastructure/validation/trace-summary.d.ts.map +1 -0
  285. package/dist/infrastructure/validation/trace-summary.js +52 -0
  286. package/dist/infrastructure/validation/trace-summary.js.map +1 -0
  287. package/dist/infrastructure/validation/trust-config.d.ts +27 -0
  288. package/dist/infrastructure/validation/trust-config.d.ts.map +1 -0
  289. package/dist/infrastructure/validation/trust-config.js +113 -0
  290. package/dist/infrastructure/validation/trust-config.js.map +1 -0
  291. package/dist/infrastructure/xai/attention-visualizer.d.ts +6 -8
  292. package/dist/infrastructure/xai/attention-visualizer.d.ts.map +1 -1
  293. package/dist/infrastructure/xai/attention-visualizer.js +6 -8
  294. package/dist/infrastructure/xai/attention-visualizer.js.map +1 -1
  295. package/dist/infrastructure/xai/cot-visualizer.d.ts +6 -9
  296. package/dist/infrastructure/xai/cot-visualizer.d.ts.map +1 -1
  297. package/dist/infrastructure/xai/cot-visualizer.js +6 -9
  298. package/dist/infrastructure/xai/cot-visualizer.js.map +1 -1
  299. package/dist/infrastructure/xai/decision-tree-log.d.ts +6 -10
  300. package/dist/infrastructure/xai/decision-tree-log.d.ts.map +1 -1
  301. package/dist/infrastructure/xai/decision-tree-log.js +6 -10
  302. package/dist/infrastructure/xai/decision-tree-log.js.map +1 -1
  303. package/dist/infrastructure/xai/interactive-xai.d.ts +6 -8
  304. package/dist/infrastructure/xai/interactive-xai.d.ts.map +1 -1
  305. package/dist/infrastructure/xai/interactive-xai.js +6 -8
  306. package/dist/infrastructure/xai/interactive-xai.js.map +1 -1
  307. package/dist/infrastructure/xai/uncertainty-quantifier.d.ts +6 -9
  308. package/dist/infrastructure/xai/uncertainty-quantifier.d.ts.map +1 -1
  309. package/dist/infrastructure/xai/uncertainty-quantifier.js +6 -9
  310. package/dist/infrastructure/xai/uncertainty-quantifier.js.map +1 -1
  311. package/dist/monitoring.d.ts +1 -1
  312. package/dist/monitoring.d.ts.map +1 -1
  313. package/dist/monitoring.js +12 -9
  314. package/dist/monitoring.js.map +1 -1
  315. package/dist/parallel-processor.d.ts.map +1 -1
  316. package/dist/parallel-processor.js +124 -45
  317. package/dist/parallel-processor.js.map +1 -1
  318. package/dist/presentation/cli/commands/ask-command.d.ts.map +1 -1
  319. package/dist/presentation/cli/commands/ask-command.js +225 -86
  320. package/dist/presentation/cli/commands/ask-command.js.map +1 -1
  321. package/dist/presentation/cli/commands/config-command.d.ts.map +1 -1
  322. package/dist/presentation/cli/commands/config-command.js +8 -6
  323. package/dist/presentation/cli/commands/config-command.js.map +1 -1
  324. package/dist/presentation/cli/commands/docs-command.d.ts +14 -0
  325. package/dist/presentation/cli/commands/docs-command.d.ts.map +1 -0
  326. package/dist/presentation/cli/commands/docs-command.js +25 -0
  327. package/dist/presentation/cli/commands/docs-command.js.map +1 -0
  328. package/dist/presentation/cli/commands/fix-command.d.ts +10 -0
  329. package/dist/presentation/cli/commands/fix-command.d.ts.map +1 -0
  330. package/dist/presentation/cli/commands/fix-command.js +53 -0
  331. package/dist/presentation/cli/commands/fix-command.js.map +1 -0
  332. package/dist/presentation/cli/commands/help-command.d.ts.map +1 -1
  333. package/dist/presentation/cli/commands/help-command.js +2 -0
  334. package/dist/presentation/cli/commands/help-command.js.map +1 -1
  335. package/dist/presentation/cli/commands/models-command.d.ts +13 -0
  336. package/dist/presentation/cli/commands/models-command.d.ts.map +1 -0
  337. package/dist/presentation/cli/commands/models-command.js +194 -0
  338. package/dist/presentation/cli/commands/models-command.js.map +1 -0
  339. package/dist/presentation/cli/commands/orchestrate-command.d.ts +1 -0
  340. package/dist/presentation/cli/commands/orchestrate-command.d.ts.map +1 -1
  341. package/dist/presentation/cli/commands/orchestrate-command.js +68 -7
  342. package/dist/presentation/cli/commands/orchestrate-command.js.map +1 -1
  343. package/dist/presentation/cli/commands/plan-command.d.ts +1 -0
  344. package/dist/presentation/cli/commands/plan-command.d.ts.map +1 -1
  345. package/dist/presentation/cli/commands/plan-command.js +88 -8
  346. package/dist/presentation/cli/commands/plan-command.js.map +1 -1
  347. package/dist/presentation/cli/commands/product-command.d.ts +14 -0
  348. package/dist/presentation/cli/commands/product-command.d.ts.map +1 -0
  349. package/dist/presentation/cli/commands/product-command.js +22 -0
  350. package/dist/presentation/cli/commands/product-command.js.map +1 -0
  351. package/dist/presentation/cli/commands/react-command.d.ts.map +1 -1
  352. package/dist/presentation/cli/commands/react-command.js +3 -1
  353. package/dist/presentation/cli/commands/react-command.js.map +1 -1
  354. package/dist/presentation/cli/commands/review-command.d.ts +14 -0
  355. package/dist/presentation/cli/commands/review-command.d.ts.map +1 -0
  356. package/dist/presentation/cli/commands/review-command.js +154 -0
  357. package/dist/presentation/cli/commands/review-command.js.map +1 -0
  358. package/dist/presentation/cli/commands/run-command.d.ts +13 -0
  359. package/dist/presentation/cli/commands/run-command.d.ts.map +1 -0
  360. package/dist/presentation/cli/commands/run-command.js +188 -0
  361. package/dist/presentation/cli/commands/run-command.js.map +1 -0
  362. package/dist/presentation/cli/commands/setup-command.d.ts.map +1 -1
  363. package/dist/presentation/cli/commands/setup-command.js +15 -0
  364. package/dist/presentation/cli/commands/setup-command.js.map +1 -1
  365. package/dist/presentation/cli/commands/smart-command.d.ts +3 -1
  366. package/dist/presentation/cli/commands/smart-command.d.ts.map +1 -1
  367. package/dist/presentation/cli/commands/smart-command.js +92 -6
  368. package/dist/presentation/cli/commands/smart-command.js.map +1 -1
  369. package/dist/presentation/cli/commands/status-command.d.ts +14 -0
  370. package/dist/presentation/cli/commands/status-command.d.ts.map +1 -0
  371. package/dist/presentation/cli/commands/status-command.js +167 -0
  372. package/dist/presentation/cli/commands/status-command.js.map +1 -0
  373. package/dist/presentation/cli/commands/suggest-command.d.ts +11 -0
  374. package/dist/presentation/cli/commands/suggest-command.d.ts.map +1 -0
  375. package/dist/presentation/cli/commands/suggest-command.js +138 -0
  376. package/dist/presentation/cli/commands/suggest-command.js.map +1 -0
  377. package/dist/presentation/cli/error-display.d.ts.map +1 -1
  378. package/dist/presentation/cli/error-display.js +43 -0
  379. package/dist/presentation/cli/error-display.js.map +1 -1
  380. package/dist/search.d.ts.map +1 -1
  381. package/dist/search.js +6 -1
  382. package/dist/search.js.map +1 -1
  383. package/dist/session.js +19 -2
  384. package/dist/session.js.map +1 -1
  385. package/dist/ui.d.ts +6 -0
  386. package/dist/ui.d.ts.map +1 -1
  387. package/dist/ui.js +43 -6
  388. package/dist/ui.js.map +1 -1
  389. package/package.json +16 -3
@@ -1,101 +1,25 @@
1
1
  /**
2
2
  * Bash Completion Script Generator
3
- */
4
- import { getAllCommands, } from './completion-generator.js';
5
- /**
6
- * Generate bash completion script
3
+ *
4
+ * Phase 1: v0.5.0-alpha.0
7
5
  */
8
6
  export function generateBashCompletion() {
9
- return `# Bash completion for codehere
10
- # Installation: source <(codehere --completion bash) or add to ~/.bashrc
11
-
12
- _codehere_completion() {
13
- local cur prev words cword
7
+ return `# Codehere bash completion
8
+ _complete_codehere() {
9
+ local cur prev opts
14
10
  COMPREPLY=()
15
11
  cur="\${COMP_WORDS[COMP_CWORD]}"
16
12
  prev="\${COMP_WORDS[COMP_CWORD-1]}"
17
- words=("\${COMP_WORDS[@]}")
18
- cword="\${COMP_CWORD}"
19
-
20
- # Commands list
21
- local commands="${getAllCommands().join(' ')}"
13
+ opts="ask plan orchestrate fix suggest run review status help version"
22
14
 
23
- # Main command completion
24
- if [ $COMP_CWORD -eq 1 ]; then
25
- COMPREPLY=( $(compgen -W "\${commands}" -- "\${cur}") )
26
- return 0
15
+ if [[ \${cur} == -* ]]; then
16
+ COMPREPLY=(\$(compgen -W "--help --version" -- \${cur}))
17
+ else
18
+ COMPREPLY=(\$(compgen -W "\${opts}" -- \${cur}))
27
19
  fi
28
-
29
- local command="\${words[1]}"
30
-
31
- case "\${command}" in
32
- config)
33
- if [ $COMP_CWORD -eq 2 ]; then
34
- COMPREPLY=( $(compgen -W "get set reset" -- "\${cur}") )
35
- elif [ $COMP_CWORD -eq 3 ] && [ "\${prev}" = "get" ] || [ "\${prev}" = "set" ]; then
36
- # Config keys (simplified - would need dynamic lookup)
37
- local keys="autoCommit temperature maxResults model enableStreaming enableSecurityScan enableVerification"
38
- COMPREPLY=( $(compgen -W "\${keys}" -- "\${cur}") )
39
- fi
40
- ;;
41
- undo)
42
- if [ $COMP_CWORD -eq 2 ]; then
43
- COMPREPLY=( $(compgen -W "undo list restore" -- "\${cur}") )
44
- fi
45
- ;;
46
- trace)
47
- if [ $COMP_CWORD -eq 2 ]; then
48
- COMPREPLY=( $(compgen -W "show reproduce list" -- "\${cur}") )
49
- fi
50
- ;;
51
- decision)
52
- if [ $COMP_CWORD -eq 2 ]; then
53
- COMPREPLY=( $(compgen -W "record list query explain" -- "\${cur}") )
54
- fi
55
- ;;
56
- knowledge)
57
- if [ $COMP_CWORD -eq 2 ]; then
58
- COMPREPLY=( $(compgen -W "query list summary extract" -- "\${cur}") )
59
- fi
60
- ;;
61
- learning)
62
- if [ $COMP_CWORD -eq 2 ]; then
63
- COMPREPLY=( $(compgen -W "overview patterns knowledge insights" -- "\${cur}") )
64
- fi
65
- ;;
66
- cost)
67
- if [ $COMP_CWORD -eq 2 ]; then
68
- COMPREPLY=( $(compgen -W "status summary run reset" -- "\${cur}") )
69
- fi
70
- ;;
71
- *)
72
- # Option completion for other commands
73
- if [[ "\${cur}" == -* ]]; then
74
- case "\${command}" in
75
- plan)
76
- COMPREPLY=( $(compgen -W "--execute" -- "\${cur}") )
77
- ;;
78
- orchestrate)
79
- COMPREPLY=( $(compgen -W "--mode --plan-id" -- "\${cur}") )
80
- ;;
81
- ask|react)
82
- COMPREPLY=( $(compgen -W "--stream --no-stream" -- "\${cur}") )
83
- ;;
84
- setup)
85
- COMPREPLY=( $(compgen -W "--force -f" -- "\${cur}") )
86
- ;;
87
- index)
88
- COMPREPLY=( $(compgen -W "--repo -r" -- "\${cur}") )
89
- ;;
90
- esac
91
- fi
92
- ;;
93
- esac
94
-
95
- return 0
96
20
  }
97
21
 
98
- complete -F _codehere_completion codehere
22
+ complete -F _complete_codehere codehere
99
23
  `;
100
24
  }
101
25
  //# sourceMappingURL=bash-completion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"bash-completion.js","sourceRoot":"","sources":["../../../src/infrastructure/completion/bash-completion.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,cAAc,GAKf,MAAM,2BAA2B,CAAC;AAEnC;;GAEG;AACH,MAAM,UAAU,sBAAsB;IACpC,OAAO;;;;;;;;;;;;oBAYW,cAAc,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8E7C,CAAC;AAEF,CAAC"}
1
+ {"version":3,"file":"bash-completion.js","sourceRoot":"","sources":["../../../src/infrastructure/completion/bash-completion.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,UAAU,sBAAsB;IACpC,OAAO;;;;;;;;;;;;;;;;CAgBR,CAAC;AACF,CAAC"}
@@ -1,8 +1,7 @@
1
1
  /**
2
2
  * Fish Completion Script Generator
3
- */
4
- /**
5
- * Generate fish completion script
3
+ *
4
+ * Phase 1: v0.5.0-alpha.0
6
5
  */
7
6
  export declare function generateFishCompletion(): string;
8
7
  //# sourceMappingURL=fish-completion.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fish-completion.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/completion/fish-completion.ts"],"names":[],"mappings":"AAAA;;GAEG;AAUH;;GAEG;AACH,wBAAgB,sBAAsB,IAAI,MAAM,CAyD/C"}
1
+ {"version":3,"file":"fish-completion.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/completion/fish-completion.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,wBAAgB,sBAAsB,IAAI,MAAM,CAe/C"}
@@ -1,65 +1,22 @@
1
1
  /**
2
2
  * Fish Completion Script Generator
3
- */
4
- import { getAllCommands, } from './completion-generator.js';
5
- /**
6
- * Generate fish completion script
3
+ *
4
+ * Phase 1: v0.5.0-alpha.0
7
5
  */
8
6
  export function generateFishCompletion() {
9
- return `# Fish completion for codehere
10
- # Installation: codehere --completion fish | source
11
-
12
- function __codehere_complete_commands
13
- echo ${getAllCommands().join(' ')}
14
- end
15
-
16
- function __codehere_complete_config_actions
17
- echo get set reset
18
- end
19
-
20
- function __codehere_complete_config_keys
21
- echo autoCommit temperature maxResults model enableStreaming enableSecurityScan enableVerification
22
- end
23
-
24
- function __codehere_complete_undo_actions
25
- echo undo list restore
26
- end
27
-
28
- function __codehere_complete_trace_actions
29
- echo show reproduce list
30
- end
31
-
32
- function __codehere_complete_decision_actions
33
- echo record list query explain
34
- end
35
-
36
- function __codehere_complete_knowledge_actions
37
- echo query list summary extract
38
- end
39
-
40
- function __codehere_complete_learning_actions
41
- echo overview patterns knowledge insights
42
- end
43
-
44
- function __codehere_complete_cost_actions
45
- echo status summary run reset
46
- end
47
-
48
- complete -c codehere -f -a "(__codehere_complete_commands)"
49
-
50
- complete -c codehere -f -n "__fish_seen_subcommand_from config" -a "(__codehere_complete_config_actions)"
51
- complete -c codehere -f -n "__fish_seen_subcommand_from config; and __fish_seen_subcommand_from get set" -a "(__codehere_complete_config_keys)"
52
-
53
- complete -c codehere -f -n "__fish_seen_subcommand_from undo" -a "(__codehere_complete_undo_actions)"
54
- complete -c codehere -f -n "__fish_seen_subcommand_from trace" -a "(__codehere_complete_trace_actions)"
55
- complete -c codehere -f -n "__fish_seen_subcommand_from decision" -a "(__codehere_complete_decision_actions)"
56
- complete -c codehere -f -n "__fish_seen_subcommand_from knowledge" -a "(__codehere_complete_knowledge_actions)"
57
- complete -c codehere -f -n "__fish_seen_subcommand_from learning" -a "(__codehere_complete_learning_actions)"
58
- complete -c codehere -f -n "__fish_seen_subcommand_from cost" -a "(__codehere_complete_cost_actions)"
59
-
60
- complete -c codehere -s h -l help -d "Show help"
61
- complete -c codehere -s v -l version -d "Show version"
62
- complete -c codehere -l completion -d "Show shell completion script"
7
+ return `# Codehere fish completion
8
+ complete -c codehere -f
9
+
10
+ complete -c codehere -n __fish_use_subcommand -a ask -d "Answer questions about codebase"
11
+ complete -c codehere -n __fish_use_subcommand -a plan -d "Generate execution plan"
12
+ complete -c codehere -n __fish_use_subcommand -a orchestrate -d "Multi-agent orchestration"
13
+ complete -c codehere -n __fish_use_subcommand -a fix -d "Apply AI edits to file"
14
+ complete -c codehere -n __fish_use_subcommand -a suggest -d "Read-only assistant mode"
15
+ complete -c codehere -n __fish_use_subcommand -a run -d "Unified agentic execution"
16
+ complete -c codehere -n __fish_use_subcommand -a review -d "Task review interface"
17
+ complete -c codehere -n __fish_use_subcommand -a status -d "Show agent status"
18
+ complete -c codehere -n __fish_use_subcommand -a help -d "Show help"
19
+ complete -c codehere -n __fish_use_subcommand -a version -d "Show version"
63
20
  `;
64
21
  }
65
22
  //# sourceMappingURL=fish-completion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"fish-completion.js","sourceRoot":"","sources":["../../../src/infrastructure/completion/fish-completion.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,cAAc,GAKf,MAAM,2BAA2B,CAAC;AAEnC;;GAEG;AACH,MAAM,UAAU,sBAAsB;IACpC,OAAO;;;;SAIA,cAAc,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDlC,CAAC;AAEF,CAAC"}
1
+ {"version":3,"file":"fish-completion.js","sourceRoot":"","sources":["../../../src/infrastructure/completion/fish-completion.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,UAAU,sBAAsB;IACpC,OAAO;;;;;;;;;;;;;CAaR,CAAC;AACF,CAAC"}
@@ -1,8 +1,7 @@
1
1
  /**
2
2
  * Zsh Completion Script Generator
3
- */
4
- /**
5
- * Generate zsh completion script
3
+ *
4
+ * Phase 1: v0.5.0-alpha.0
6
5
  */
7
6
  export declare function generateZshCompletion(): string;
8
7
  //# sourceMappingURL=zsh-completion.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"zsh-completion.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/completion/zsh-completion.ts"],"names":[],"mappings":"AAAA;;GAEG;AAUH;;GAEG;AACH,wBAAgB,qBAAqB,IAAI,MAAM,CA6E9C"}
1
+ {"version":3,"file":"zsh-completion.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/completion/zsh-completion.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,wBAAgB,qBAAqB,IAAI,MAAM,CAuB9C"}
@@ -1,85 +1,30 @@
1
1
  /**
2
2
  * Zsh Completion Script Generator
3
- */
4
- import { getAllCommands, } from './completion-generator.js';
5
- /**
6
- * Generate zsh completion script
3
+ *
4
+ * Phase 1: v0.5.0-alpha.0
7
5
  */
8
6
  export function generateZshCompletion() {
9
- return `# Zsh completion for codehere
10
- # Installation: source <(codehere --completion zsh) or add to ~/.zshrc
7
+ return `#compdef codehere
11
8
 
12
9
  _codehere() {
13
- local context state state_descr line
14
- typeset -A opt_args
15
-
16
- _arguments -C \\
17
- "1: :->command" \\
18
- "*::arg:->args"
10
+ local -a commands
11
+ commands=(
12
+ 'ask:Answer questions about codebase'
13
+ 'plan:Generate execution plan'
14
+ 'orchestrate:Multi-agent orchestration'
15
+ 'fix:Apply AI edits to file'
16
+ 'suggest:Read-only assistant mode'
17
+ 'run:Unified agentic execution'
18
+ 'review:Task review interface'
19
+ 'status:Show agent status'
20
+ 'help:Show help'
21
+ 'version:Show version'
22
+ )
19
23
 
20
- case $state in
21
- command)
22
- local commands="${getAllCommands().join(' ')}"
23
- _values 'commands' $commands
24
- ;;
25
- args)
26
- case $words[1] in
27
- config)
28
- _arguments \\
29
- "1: :->config_action" \\
30
- "*::arg:->config_args"
31
- ;;
32
- undo)
33
- _arguments \\
34
- "1: :->undo_action"
35
- ;;
36
- trace)
37
- _arguments \\
38
- "1: :->trace_action"
39
- ;;
40
- decision)
41
- _arguments \\
42
- "1: :->decision_action"
43
- ;;
44
- knowledge)
45
- _arguments \\
46
- "1: :->knowledge_action"
47
- ;;
48
- learning)
49
- _arguments \\
50
- "1: :->learning_action"
51
- ;;
52
- cost)
53
- _arguments \\
54
- "1: :->cost_action"
55
- ;;
56
- esac
57
- ;;
58
- config_action)
59
- _values 'config actions' get set reset
60
- ;;
61
- undo_action)
62
- _values 'undo actions' undo list restore
63
- ;;
64
- trace_action)
65
- _values 'trace actions' show reproduce list
66
- ;;
67
- decision_action)
68
- _values 'decision actions' record list query explain
69
- ;;
70
- knowledge_action)
71
- _values 'knowledge actions' query list summary extract
72
- ;;
73
- learning_action)
74
- _values 'learning actions' overview patterns knowledge insights
75
- ;;
76
- cost_action)
77
- _values 'cost actions' status summary run reset
78
- ;;
79
- esac
24
+ _describe 'codehere' commands
80
25
  }
81
26
 
82
- compdef _codehere codehere
27
+ _codehere "$@"
83
28
  `;
84
29
  }
85
30
  //# sourceMappingURL=zsh-completion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"zsh-completion.js","sourceRoot":"","sources":["../../../src/infrastructure/completion/zsh-completion.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,cAAc,GAKf,MAAM,2BAA2B,CAAC;AAEnC;;GAEG;AACH,MAAM,UAAU,qBAAqB;IACnC,OAAO;;;;;;;;;;;;;wBAae,cAAc,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6DjD,CAAC;AAEF,CAAC"}
1
+ {"version":3,"file":"zsh-completion.js","sourceRoot":"","sources":["../../../src/infrastructure/completion/zsh-completion.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,UAAU,qBAAqB;IACnC,OAAO;;;;;;;;;;;;;;;;;;;;;CAqBR,CAAC;AACF,CAAC"}
@@ -12,7 +12,7 @@ const DEFAULT_CONFIG = {
12
12
  autoCommit: false,
13
13
  askBeforeDestructive: true,
14
14
  enableCrossTeamLearning: false,
15
- defaultModel: 'command-r-plus',
15
+ defaultModel: 'command-r-08-2024', // command-r and command-r-plus were deprecated Sept 2025
16
16
  maxTokens: 4096,
17
17
  temperature: 0.3,
18
18
  enableStreaming: true,
@@ -20,7 +20,7 @@ const DEFAULT_CONFIG = {
20
20
  codebase: {},
21
21
  api: {
22
22
  provider: 'cohere',
23
- model: 'command-r-plus',
23
+ model: 'command-r-08-2024', // command-r and command-r-plus were deprecated Sept 2025
24
24
  rateLimitHandling: 'retry',
25
25
  },
26
26
  ui: {
@@ -1 +1 @@
1
- {"version":3,"file":"config-manager.js","sourceRoot":"","sources":["../../../src/infrastructure/config/config-manager.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AACxE,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AA8BpD,MAAM,cAAc,GAAmB;IACrC,OAAO,EAAE,UAAU,EAAE;IACrB,WAAW,EAAE;QACX,UAAU,EAAE,KAAK;QACjB,oBAAoB,EAAE,IAAI;QAC1B,uBAAuB,EAAE,KAAK;QAC9B,YAAY,EAAE,gBAAgB;QAC9B,SAAS,EAAE,IAAI;QACf,WAAW,EAAE,GAAG;QAChB,eAAe,EAAE,IAAI;KACtB;IACD,QAAQ,EAAE,EAAE;IACZ,GAAG,EAAE;QACH,QAAQ,EAAE,QAAQ;QAClB,KAAK,EAAE,gBAAgB;QACvB,iBAAiB,EAAE,OAAO;KAC3B;IACD,EAAE,EAAE;QACF,YAAY,EAAE,IAAI;QAClB,WAAW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,KAAK,CAAC;IAC3B,CAAC;IAED;;OAEG;IACH,aAAa,CAAgD,GAAM,EAAE,KAAuC;QAC1G,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;IACvC,CAAC;IAED;;OAEG;IACH,cAAc,CAAC,IAAY,EAAE,SAAkB;QAC7C,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC;QACjC,IAAI,SAAS,EAAE,CAAC;YACd,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,GAAG,SAAS,CAAC;QAC7C,CAAC;QACD,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,WAAW,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;IAC9D,CAAC;IAED;;OAEG;IACH,MAAM;QACJ,OAAO,EAAE,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;IAC5B,CAAC;IAED;;OAEG;IACH,KAAK;QACH,IAAI,CAAC,MAAM,GAAG,cAAc,CAAC;QAC7B,IAAI,CAAC,UAAU,EAAE,CAAC;IACpB,CAAC;IAED;;OAEG;IACH,aAAa;QACX,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;CACF;AAED;;GAEG;AACH,IAAI,mBAAmB,GAAyB,IAAI,CAAC;AAErD,MAAM,UAAU,gBAAgB,CAAC,SAAkB;IACjD,IAAI,CAAC,mBAAmB,EAAE,CAAC;QACzB,mBAAmB,GAAG,IAAI,aAAa,CAAC,SAAS,CAAC,CAAC;IACrD,CAAC;IACD,OAAO,mBAAmB,CAAC;AAC7B,CAAC"}
1
+ {"version":3,"file":"config-manager.js","sourceRoot":"","sources":["../../../src/infrastructure/config/config-manager.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AACxE,OAAO,EAAE,IAAI,EAAE,MAAM,MA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;OAEG;IACH,aAAa;QACX,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;CACF;AAED;;GAEG;AACH,IAAI,mBAAmB,GAAyB,IAAI,CAAC;AAErD,MAAM,UAAU,gBAAgB,CAAC,SAAkB;IACjD,IAAI,CAAC,mBAAmB,EAAE,CAAC;QACzB,mBAAmB,GAAG,IAAI,aAAa,CAAC,SAAS,CAAC,CAAC;IACrD,CAAC;IACD,OAAO,mBAAmB,CAAC;AAC7B,CAAC"}
@@ -0,0 +1,54 @@
1
+ /**
2
+ * Conversation Context Manager
3
+ * Manages conversation history and context for session-aware interactions
4
+ *
5
+ * Phase 1: v0.5.0-alpha.0
6
+ */
7
+ export interface ConversationTurn {
8
+ query: string;
9
+ response: string;
10
+ timestamp: string | number;
11
+ entities?: any[];
12
+ intent?: any;
13
+ }
14
+ interface ConversationSession {
15
+ sessionId: string;
16
+ turns: ConversationTurn[];
17
+ createdAt: number;
18
+ lastUpdated: number;
19
+ }
20
+ /**
21
+ * In-memory conversation context manager
22
+ * Stores conversation history per session for reference resolution
23
+ */
24
+ declare class ConversationContextManager {
25
+ private sessions;
26
+ private readonly maxHistoryPerSession;
27
+ /**
28
+ * Get conversation history for a session
29
+ */
30
+ getHistory(sessionId: string, limit?: number): ConversationTurn[];
31
+ /**
32
+ * Resolve references in query (e.g., "it", "that", "the previous")
33
+ */
34
+ resolveReferences(sessionId: string, query: string): string;
35
+ /**
36
+ * Extract entities from text (simple heuristic-based extraction)
37
+ */
38
+ extractEntities(text: string, options?: any): any[];
39
+ /**
40
+ * Add a conversation turn
41
+ */
42
+ addTurn(sessionId: string, query: string, response: string, entities?: any[], intent?: any): void;
43
+ /**
44
+ * Get full context for a session
45
+ */
46
+ getContext(sessionId: string): ConversationSession | null;
47
+ /**
48
+ * Clear conversation history for a session
49
+ */
50
+ clear(sessionId?: string): void;
51
+ }
52
+ export declare const conversationContextManager: ConversationContextManager;
53
+ export {};
54
+ //# sourceMappingURL=conversation-context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversation-context.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/context/conversation-context.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,GAAG,EAAE,CAAC;IACjB,MAAM,CAAC,EAAE,GAAG,CAAC;CACd;AAED,UAAU,mBAAmB;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,gBAAgB,EAAE,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;GAGG;AACH,cAAM,0BAA0B;IAC9B,OAAO,CAAC,QAAQ,CAA+C;IAC/D,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAM;IAE3C;;OAEG;IACH,UAAU,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,GAAE,MAAW,GAAG,gBAAgB,EAAE;IAerE;;OAEG;IACH,iBAAiB,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM;IAkC3D;;OAEG;IACH,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,GAAG,GAAG,EAAE;IAqBnD;;OAEG;IACH,OAAO,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,GAAE,GAAG,EAAO,EAAE,MAAM,CAAC,EAAE,GAAG,GAAG,IAAI;IA8BrG;;OAEG;IACH,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,mBAAmB,GAAG,IAAI;IAIzD;;OAEG;IACH,KAAK,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI;CAOhC;AAED,eAAO,MAAM,0BAA0B,4BAAmC,CAAC"}
@@ -0,0 +1,128 @@
1
+ /**
2
+ * Conversation Context Manager
3
+ * Manages conversation history and context for session-aware interactions
4
+ *
5
+ * Phase 1: v0.5.0-alpha.0
6
+ */
7
+ /**
8
+ * In-memory conversation context manager
9
+ * Stores conversation history per session for reference resolution
10
+ */
11
+ class ConversationContextManager {
12
+ sessions = new Map();
13
+ maxHistoryPerSession = 50;
14
+ /**
15
+ * Get conversation history for a session
16
+ */
17
+ getHistory(sessionId, limit = 10) {
18
+ const session = this.sessions.get(sessionId);
19
+ if (!session) {
20
+ return [];
21
+ }
22
+ // Return most recent turns, up to limit
23
+ const turns = session.turns.slice(-limit);
24
+ return turns.map(turn => ({
25
+ query: turn.query,
26
+ response: turn.response,
27
+ timestamp: turn.timestamp,
28
+ }));
29
+ }
30
+ /**
31
+ * Resolve references in query (e.g., "it", "that", "the previous")
32
+ */
33
+ resolveReferences(sessionId, query) {
34
+ const history = this.getHistory(sessionId, 3);
35
+ if (history.length === 0) {
36
+ return query;
37
+ }
38
+ // Simple reference resolution - replace common references
39
+ let resolved = query;
40
+ const lastTurn = history[history.length - 1];
41
+ // Replace "it" with last mentioned entity/context
42
+ if (/\bit\b/i.test(query) && lastTurn.response) {
43
+ // Extract key entities from last response (simple heuristic)
44
+ const lastResponse = lastTurn.response;
45
+ const words = lastResponse.split(/\s+/).filter(w => w.length > 3);
46
+ if (words.length > 0) {
47
+ // Try to replace "it" with last significant noun phrase
48
+ resolved = resolved.replace(/\bit\b/gi, words[words.length - 1]);
49
+ }
50
+ }
51
+ // Replace "that" with last query
52
+ if (/\bthat\b/i.test(query)) {
53
+ resolved = resolved.replace(/\bthat\b/gi, `"${lastTurn.query}"`);
54
+ }
55
+ // Replace "the previous" with last query
56
+ if (/\bthe previous\b/i.test(query)) {
57
+ resolved = resolved.replace(/\bthe previous\b/gi, `"${lastTurn.query}"`);
58
+ }
59
+ return resolved;
60
+ }
61
+ /**
62
+ * Extract entities from text (simple heuristic-based extraction)
63
+ */
64
+ extractEntities(text, options) {
65
+ // Simple entity extraction - can be enhanced later
66
+ const entities = [];
67
+ // Extract file paths
68
+ const filePathRegex = /[\w\/\-\.]+\.(ts|js|tsx|jsx|json|md|yaml|yml|txt|py|go|rs|java|cpp|h|hpp)/g;
69
+ const filePaths = text.match(filePathRegex) || [];
70
+ filePaths.forEach(path => {
71
+ entities.push({ type: 'file', value: path });
72
+ });
73
+ // Extract function/class names (simple heuristic)
74
+ const functionRegex = /(?:function|class|const|let|var)\s+([A-Z][a-zA-Z0-9_]+|[a-z][a-zA-Z0-9_]+)/g;
75
+ const matches = text.matchAll(functionRegex);
76
+ for (const match of matches) {
77
+ entities.push({ type: 'symbol', value: match[1] });
78
+ }
79
+ return entities;
80
+ }
81
+ /**
82
+ * Add a conversation turn
83
+ */
84
+ addTurn(sessionId, query, response, entities = [], intent) {
85
+ let session = this.sessions.get(sessionId);
86
+ if (!session) {
87
+ session = {
88
+ sessionId,
89
+ turns: [],
90
+ createdAt: Date.now(),
91
+ lastUpdated: Date.now(),
92
+ };
93
+ this.sessions.set(sessionId, session);
94
+ }
95
+ const turn = {
96
+ query,
97
+ response,
98
+ timestamp: new Date().toISOString(),
99
+ entities,
100
+ intent,
101
+ };
102
+ session.turns.push(turn);
103
+ session.lastUpdated = Date.now();
104
+ // Trim history if too long
105
+ if (session.turns.length > this.maxHistoryPerSession) {
106
+ session.turns = session.turns.slice(-this.maxHistoryPerSession);
107
+ }
108
+ }
109
+ /**
110
+ * Get full context for a session
111
+ */
112
+ getContext(sessionId) {
113
+ return this.sessions.get(sessionId) || null;
114
+ }
115
+ /**
116
+ * Clear conversation history for a session
117
+ */
118
+ clear(sessionId) {
119
+ if (sessionId) {
120
+ this.sessions.delete(sessionId);
121
+ }
122
+ else {
123
+ this.sessions.clear();
124
+ }
125
+ }
126
+ }
127
+ export const conversationContextManager = new ConversationContextManager();
128
+ //# sourceMappingURL=conversation-context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversation-context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AAiB;QAC1B,OAAO,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,IAAI,CAAC;IAC9C,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,SAAkB;QACtB,IAAI,SAAS,EAAE,CAAC;YACd,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QAClC,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC;QACxB,CAAC;IACH,CAAC;CACF;AAED,MAAM,CAAC,MAAM,0BAA0B,GAAG,IAAI,0BAA0B,EAAE,CAAC"}
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Session Manager
3
+ * Manages CLI sessions for context tracking
4
+ *
5
+ * Phase 1: v0.5.0-alpha.0
6
+ */
7
+ interface Session {
8
+ sessionId: string;
9
+ cwd: string;
10
+ startedAt: number;
11
+ lastActivity: number;
12
+ }
13
+ /**
14
+ * Session manager for tracking CLI sessions
15
+ */
16
+ declare class SessionManager {
17
+ private sessions;
18
+ private readonly sessionTimeout;
19
+ /**
20
+ * Get or create session ID for a working directory
21
+ */
22
+ getSessionId(cwd: string): string;
23
+ /**
24
+ * Get current session for a working directory
25
+ */
26
+ getCurrentSession(cwd: string): Session | null;
27
+ /**
28
+ * Create a new session explicitly
29
+ */
30
+ createSession(cwd: string): Session;
31
+ /**
32
+ * End a session
33
+ */
34
+ endSession(cwd: string): void;
35
+ /**
36
+ * Clean up expired sessions
37
+ */
38
+ cleanup(): void;
39
+ }
40
+ export declare const sessionManager: SessionManager;
41
+ export {};
42
+ //# sourceMappingURL=session-manager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session-manager.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/context/session-manager.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,UAAU,OAAO;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,cAAM,cAAc;IAClB,OAAO,CAAC,QAAQ,CAAmC;IACnD,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAuB;IAEtD;;OAEG;IACH,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;IA8BjC;;OAEG;IACH,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI;IAK9C;;OAEG;IACH,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAenC;;OAEG;IACH,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAK7B;;OAEG;IACH,OAAO,IAAI,IAAI;CAShB;AAED,eAAO,MAAM,cAAc,gBAAuB,CAAC"}