codehere 0.2.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


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

Files changed (405) hide show
  1. package/README.md +223 -42
  2. package/dist/application/agents/documentation-agent.d.ts +24 -0
  3. package/dist/application/agents/documentation-agent.d.ts.map +1 -0
  4. package/dist/application/agents/documentation-agent.js +399 -0
  5. package/dist/application/agents/documentation-agent.js.map +1 -0
  6. package/dist/application/agents/execution-agent.d.ts +11 -0
  7. package/dist/application/agents/execution-agent.d.ts.map +1 -1
  8. package/dist/application/agents/execution-agent.js +289 -80
  9. package/dist/application/agents/execution-agent.js.map +1 -1
  10. package/dist/application/agents/multi-agent-orchestrator.d.ts +4 -0
  11. package/dist/application/agents/multi-agent-orchestrator.d.ts.map +1 -1
  12. package/dist/application/agents/multi-agent-orchestrator.js +86 -0
  13. package/dist/application/agents/multi-agent-orchestrator.js.map +1 -1
  14. package/dist/application/agents/planning-agent.d.ts +3 -0
  15. package/dist/application/agents/planning-agent.d.ts.map +1 -1
  16. package/dist/application/agents/planning-agent.js +132 -64
  17. package/dist/application/agents/planning-agent.js.map +1 -1
  18. package/dist/application/agents/product-requirements-agent.d.ts +21 -0
  19. package/dist/application/agents/product-requirements-agent.d.ts.map +1 -0
  20. package/dist/application/agents/product-requirements-agent.js +247 -0
  21. package/dist/application/agents/product-requirements-agent.js.map +1 -0
  22. package/dist/application/agents/validation-agent.d.ts +5 -1
  23. package/dist/application/agents/validation-agent.d.ts.map +1 -1
  24. package/dist/application/agents/validation-agent.js +156 -21
  25. package/dist/application/agents/validation-agent.js.map +1 -1
  26. package/dist/application/services/dependency-container.d.ts +25 -2
  27. package/dist/application/services/dependency-container.d.ts.map +1 -1
  28. package/dist/application/services/dependency-container.js +163 -1
  29. package/dist/application/services/dependency-container.js.map +1 -1
  30. package/dist/application/services/intelligent-router.d.ts +13 -0
  31. package/dist/application/services/intelligent-router.d.ts.map +1 -1
  32. package/dist/application/services/intelligent-router.js +300 -87
  33. package/dist/application/services/intelligent-router.js.map +1 -1
  34. package/dist/application/use-cases/ask-question-use-case.d.ts +31 -0
  35. package/dist/application/use-cases/ask-question-use-case.d.ts.map +1 -1
  36. package/dist/application/use-cases/ask-question-use-case.js +254 -55
  37. package/dist/application/use-cases/ask-question-use-case.js.map +1 -1
  38. package/dist/application/use-cases/edit-file-use-case.d.ts.map +1 -1
  39. package/dist/application/use-cases/edit-file-use-case.js +86 -4
  40. package/dist/application/use-cases/edit-file-use-case.js.map +1 -1
  41. package/dist/application/use-cases/planning-use-case.d.ts.map +1 -1
  42. package/dist/application/use-cases/planning-use-case.js +10 -1
  43. package/dist/application/use-cases/planning-use-case.js.map +1 -1
  44. package/dist/application/use-cases/react-orchestration-use-case.d.ts.map +1 -1
  45. package/dist/application/use-cases/react-orchestration-use-case.js +6 -2
  46. package/dist/application/use-cases/react-orchestration-use-case.js.map +1 -1
  47. package/dist/domain/entities/documentation.d.ts +35 -0
  48. package/dist/domain/entities/documentation.d.ts.map +1 -0
  49. package/dist/domain/entities/documentation.js +6 -0
  50. package/dist/domain/entities/documentation.js.map +1 -0
  51. package/dist/domain/entities/product-requirements.d.ts +50 -0
  52. package/dist/domain/entities/product-requirements.d.ts.map +1 -0
  53. package/dist/domain/entities/product-requirements.js +6 -0
  54. package/dist/domain/entities/product-requirements.js.map +1 -0
  55. package/dist/domain/entities/task.d.ts +152 -0
  56. package/dist/domain/entities/task.d.ts.map +1 -0
  57. package/dist/domain/entities/task.js +61 -0
  58. package/dist/domain/entities/task.js.map +1 -0
  59. package/dist/domain/interfaces/agent.interface.d.ts +15 -0
  60. package/dist/domain/interfaces/agent.interface.d.ts.map +1 -0
  61. package/dist/domain/interfaces/agent.interface.js +6 -0
  62. package/dist/domain/interfaces/agent.interface.js.map +1 -0
  63. package/dist/domain/services/environment-mode-manager.d.ts +18 -0
  64. package/dist/domain/services/environment-mode-manager.d.ts.map +1 -0
  65. package/dist/domain/services/environment-mode-manager.js +37 -0
  66. package/dist/domain/services/environment-mode-manager.js.map +1 -0
  67. package/dist/domain/services/react-loop.d.ts +8 -0
  68. package/dist/domain/services/react-loop.d.ts.map +1 -1
  69. package/dist/domain/services/react-loop.js +82 -6
  70. package/dist/domain/services/react-loop.js.map +1 -1
  71. package/dist/domain/services/risk-tier-detector.d.ts +18 -0
  72. package/dist/domain/services/risk-tier-detector.d.ts.map +1 -0
  73. package/dist/domain/services/risk-tier-detector.js +65 -0
  74. package/dist/domain/services/risk-tier-detector.js.map +1 -0
  75. package/dist/formatter.d.ts +2 -2
  76. package/dist/formatter.d.ts.map +1 -1
  77. package/dist/formatter.js +40 -20
  78. package/dist/formatter.js.map +1 -1
  79. package/dist/index.js +218 -125
  80. package/dist/index.js.map +1 -1
  81. package/dist/infrastructure/ai/cohere-ai-service.d.ts +3 -1
  82. package/dist/infrastructure/ai/cohere-ai-service.d.ts.map +1 -1
  83. package/dist/infrastructure/ai/cohere-ai-service.js +65 -5
  84. package/dist/infrastructure/ai/cohere-ai-service.js.map +1 -1
  85. package/dist/infrastructure/ai/fake-ai-service.d.ts +22 -0
  86. package/dist/infrastructure/ai/fake-ai-service.d.ts.map +1 -0
  87. package/dist/infrastructure/ai/fake-ai-service.js +59 -0
  88. package/dist/infrastructure/ai/fake-ai-service.js.map +1 -0
  89. package/dist/infrastructure/ai/provider-ai-service.d.ts +59 -0
  90. package/dist/infrastructure/ai/provider-ai-service.d.ts.map +1 -0
  91. package/dist/infrastructure/ai/provider-ai-service.js +477 -0
  92. package/dist/infrastructure/ai/provider-ai-service.js.map +1 -0
  93. package/dist/infrastructure/cache/embedding-cache.d.ts +13 -1
  94. package/dist/infrastructure/cache/embedding-cache.d.ts.map +1 -1
  95. package/dist/infrastructure/cache/embedding-cache.js +80 -9
  96. package/dist/infrastructure/cache/embedding-cache.js.map +1 -1
  97. package/dist/infrastructure/cache/query-result-cache.d.ts +68 -0
  98. package/dist/infrastructure/cache/query-result-cache.d.ts.map +1 -0
  99. package/dist/infrastructure/cache/query-result-cache.js +138 -0
  100. package/dist/infrastructure/cache/query-result-cache.js.map +1 -0
  101. package/dist/infrastructure/cache/response-cache.d.ts +86 -0
  102. package/dist/infrastructure/cache/response-cache.d.ts.map +1 -0
  103. package/dist/infrastructure/cache/response-cache.js +224 -0
  104. package/dist/infrastructure/cache/response-cache.js.map +1 -0
  105. package/dist/infrastructure/cache/security-scan-cache.d.ts +57 -0
  106. package/dist/infrastructure/cache/security-scan-cache.d.ts.map +1 -0
  107. package/dist/infrastructure/cache/security-scan-cache.js +124 -0
  108. package/dist/infrastructure/cache/security-scan-cache.js.map +1 -0
  109. package/dist/infrastructure/completion/bash-completion.d.ts +8 -0
  110. package/dist/infrastructure/completion/bash-completion.d.ts.map +1 -0
  111. package/dist/infrastructure/completion/bash-completion.js +101 -0
  112. package/dist/infrastructure/completion/bash-completion.js.map +1 -0
  113. package/dist/infrastructure/completion/completion-generator.d.ts +42 -0
  114. package/dist/infrastructure/completion/completion-generator.d.ts.map +1 -0
  115. package/dist/infrastructure/completion/completion-generator.js +184 -0
  116. package/dist/infrastructure/completion/completion-generator.js.map +1 -0
  117. package/dist/infrastructure/completion/fish-completion.d.ts +8 -0
  118. package/dist/infrastructure/completion/fish-completion.d.ts.map +1 -0
  119. package/dist/infrastructure/completion/fish-completion.js +65 -0
  120. package/dist/infrastructure/completion/fish-completion.js.map +1 -0
  121. package/dist/infrastructure/completion/zsh-completion.d.ts +8 -0
  122. package/dist/infrastructure/completion/zsh-completion.d.ts.map +1 -0
  123. package/dist/infrastructure/completion/zsh-completion.js +85 -0
  124. package/dist/infrastructure/completion/zsh-completion.js.map +1 -0
  125. package/dist/infrastructure/context/context-compressor.d.ts +94 -0
  126. package/dist/infrastructure/context/context-compressor.d.ts.map +1 -0
  127. package/dist/infrastructure/context/context-compressor.js +329 -0
  128. package/dist/infrastructure/context/context-compressor.js.map +1 -0
  129. package/dist/infrastructure/context/conversation-context.d.ts +58 -0
  130. package/dist/infrastructure/context/conversation-context.d.ts.map +1 -0
  131. package/dist/infrastructure/context/conversation-context.js +170 -0
  132. package/dist/infrastructure/context/conversation-context.js.map +1 -0
  133. package/dist/infrastructure/context/session-manager.d.ts +26 -0
  134. package/dist/infrastructure/context/session-manager.d.ts.map +1 -0
  135. package/dist/infrastructure/context/session-manager.js +98 -0
  136. package/dist/infrastructure/context/session-manager.js.map +1 -0
  137. package/dist/infrastructure/cost/cost-tracker.d.ts +1 -0
  138. package/dist/infrastructure/cost/cost-tracker.d.ts.map +1 -1
  139. package/dist/infrastructure/cost/cost-tracker.js +12 -5
  140. package/dist/infrastructure/cost/cost-tracker.js.map +1 -1
  141. package/dist/infrastructure/governance/nist-ai-rmf.d.ts +6 -8
  142. package/dist/infrastructure/governance/nist-ai-rmf.d.ts.map +1 -1
  143. package/dist/infrastructure/governance/nist-ai-rmf.js +6 -8
  144. package/dist/infrastructure/governance/nist-ai-rmf.js.map +1 -1
  145. package/dist/infrastructure/governance/policy-as-code.d.ts +6 -8
  146. package/dist/infrastructure/governance/policy-as-code.d.ts.map +1 -1
  147. package/dist/infrastructure/governance/policy-as-code.js +24 -11
  148. package/dist/infrastructure/governance/policy-as-code.js.map +1 -1
  149. package/dist/infrastructure/governance/prompt-to-code-lineage.d.ts +7 -9
  150. package/dist/infrastructure/governance/prompt-to-code-lineage.d.ts.map +1 -1
  151. package/dist/infrastructure/governance/prompt-to-code-lineage.js +7 -9
  152. package/dist/infrastructure/governance/prompt-to-code-lineage.js.map +1 -1
  153. package/dist/infrastructure/observability/execution-tracer.d.ts +5 -2
  154. package/dist/infrastructure/observability/execution-tracer.d.ts.map +1 -1
  155. package/dist/infrastructure/observability/execution-tracer.js +45 -8
  156. package/dist/infrastructure/observability/execution-tracer.js.map +1 -1
  157. package/dist/infrastructure/providers/cohere-provider.d.ts +39 -0
  158. package/dist/infrastructure/providers/cohere-provider.d.ts.map +1 -0
  159. package/dist/infrastructure/providers/cohere-provider.js +359 -0
  160. package/dist/infrastructure/providers/cohere-provider.js.map +1 -0
  161. package/dist/infrastructure/providers/fake-provider.d.ts +43 -0
  162. package/dist/infrastructure/providers/fake-provider.d.ts.map +1 -0
  163. package/dist/infrastructure/providers/fake-provider.js +130 -0
  164. package/dist/infrastructure/providers/fake-provider.js.map +1 -0
  165. package/dist/infrastructure/providers/local-llm-provider.d.ts +49 -0
  166. package/dist/infrastructure/providers/local-llm-provider.d.ts.map +1 -0
  167. package/dist/infrastructure/providers/local-llm-provider.js +330 -0
  168. package/dist/infrastructure/providers/local-llm-provider.js.map +1 -0
  169. package/dist/infrastructure/providers/model-config.types.d.ts +70 -0
  170. package/dist/infrastructure/providers/model-config.types.d.ts.map +1 -0
  171. package/dist/infrastructure/providers/model-config.types.js +9 -0
  172. package/dist/infrastructure/providers/model-config.types.js.map +1 -0
  173. package/dist/infrastructure/providers/model-provider.interface.d.ts +113 -0
  174. package/dist/infrastructure/providers/model-provider.interface.d.ts.map +1 -0
  175. package/dist/infrastructure/providers/model-provider.interface.js +8 -0
  176. package/dist/infrastructure/providers/model-provider.interface.js.map +1 -0
  177. package/dist/infrastructure/providers/openai-provider.d.ts +38 -0
  178. package/dist/infrastructure/providers/openai-provider.d.ts.map +1 -0
  179. package/dist/infrastructure/providers/openai-provider.js +413 -0
  180. package/dist/infrastructure/providers/openai-provider.js.map +1 -0
  181. package/dist/infrastructure/providers/operation-provider-resolver.d.ts +48 -0
  182. package/dist/infrastructure/providers/operation-provider-resolver.d.ts.map +1 -0
  183. package/dist/infrastructure/providers/operation-provider-resolver.js +105 -0
  184. package/dist/infrastructure/providers/operation-provider-resolver.js.map +1 -0
  185. package/dist/infrastructure/providers/provider-config-loader.d.ts +37 -0
  186. package/dist/infrastructure/providers/provider-config-loader.d.ts.map +1 -0
  187. package/dist/infrastructure/providers/provider-config-loader.js +120 -0
  188. package/dist/infrastructure/providers/provider-config-loader.js.map +1 -0
  189. package/dist/infrastructure/providers/provider-registry.d.ts +53 -0
  190. package/dist/infrastructure/providers/provider-registry.d.ts.map +1 -0
  191. package/dist/infrastructure/providers/provider-registry.js +88 -0
  192. package/dist/infrastructure/providers/provider-registry.js.map +1 -0
  193. package/dist/infrastructure/security/ai-sast-scanner.d.ts +4 -0
  194. package/dist/infrastructure/security/ai-sast-scanner.d.ts.map +1 -1
  195. package/dist/infrastructure/security/ai-sast-scanner.js +82 -4
  196. package/dist/infrastructure/security/ai-sast-scanner.js.map +1 -1
  197. package/dist/infrastructure/security/enhanced-security-gate.d.ts +2 -0
  198. package/dist/infrastructure/security/enhanced-security-gate.d.ts.map +1 -1
  199. package/dist/infrastructure/security/enhanced-security-gate.js +74 -15
  200. package/dist/infrastructure/security/enhanced-security-gate.js.map +1 -1
  201. package/dist/infrastructure/storage/plan-repository.d.ts +38 -0
  202. package/dist/infrastructure/storage/plan-repository.d.ts.map +1 -0
  203. package/dist/infrastructure/storage/plan-repository.js +133 -0
  204. package/dist/infrastructure/storage/plan-repository.js.map +1 -0
  205. package/dist/infrastructure/storage/sqlite-embedding-repository.d.ts +11 -0
  206. package/dist/infrastructure/storage/sqlite-embedding-repository.d.ts.map +1 -1
  207. package/dist/infrastructure/storage/sqlite-embedding-repository.js +121 -6
  208. package/dist/infrastructure/storage/sqlite-embedding-repository.js.map +1 -1
  209. package/dist/infrastructure/storage/task-helpers.d.ts +58 -0
  210. package/dist/infrastructure/storage/task-helpers.d.ts.map +1 -0
  211. package/dist/infrastructure/storage/task-helpers.js +157 -0
  212. package/dist/infrastructure/storage/task-helpers.js.map +1 -0
  213. package/dist/infrastructure/storage/task-repository.d.ts +67 -0
  214. package/dist/infrastructure/storage/task-repository.d.ts.map +1 -0
  215. package/dist/infrastructure/storage/task-repository.js +205 -0
  216. package/dist/infrastructure/storage/task-repository.js.map +1 -0
  217. package/dist/infrastructure/ux/bi-directional-learning.d.ts +22 -0
  218. package/dist/infrastructure/ux/bi-directional-learning.d.ts.map +1 -1
  219. package/dist/infrastructure/ux/bi-directional-learning.js +144 -7
  220. package/dist/infrastructure/ux/bi-directional-learning.js.map +1 -1
  221. package/dist/infrastructure/ux/capability-boundaries.d.ts +50 -0
  222. package/dist/infrastructure/ux/capability-boundaries.d.ts.map +1 -0
  223. package/dist/infrastructure/ux/capability-boundaries.js +167 -0
  224. package/dist/infrastructure/ux/capability-boundaries.js.map +1 -0
  225. package/dist/infrastructure/ux/comprehensive-formatter.d.ts +63 -0
  226. package/dist/infrastructure/ux/comprehensive-formatter.d.ts.map +1 -0
  227. package/dist/infrastructure/ux/comprehensive-formatter.js +212 -0
  228. package/dist/infrastructure/ux/comprehensive-formatter.js.map +1 -0
  229. package/dist/infrastructure/ux/contextual-feature-discovery.d.ts +24 -0
  230. package/dist/infrastructure/ux/contextual-feature-discovery.d.ts.map +1 -0
  231. package/dist/infrastructure/ux/contextual-feature-discovery.js +144 -0
  232. package/dist/infrastructure/ux/contextual-feature-discovery.js.map +1 -0
  233. package/dist/infrastructure/ux/expectation-management.d.ts +33 -0
  234. package/dist/infrastructure/ux/expectation-management.d.ts.map +1 -1
  235. package/dist/infrastructure/ux/expectation-management.js +138 -4
  236. package/dist/infrastructure/ux/expectation-management.js.map +1 -1
  237. package/dist/infrastructure/ux/feature-discovery.d.ts +47 -0
  238. package/dist/infrastructure/ux/feature-discovery.d.ts.map +1 -0
  239. package/dist/infrastructure/ux/feature-discovery.js +190 -0
  240. package/dist/infrastructure/ux/feature-discovery.js.map +1 -0
  241. package/dist/infrastructure/ux/feedback-prompt.d.ts +42 -0
  242. package/dist/infrastructure/ux/feedback-prompt.d.ts.map +1 -0
  243. package/dist/infrastructure/ux/feedback-prompt.js +181 -0
  244. package/dist/infrastructure/ux/feedback-prompt.js.map +1 -0
  245. package/dist/infrastructure/ux/hitl-review-portal.d.ts +47 -0
  246. package/dist/infrastructure/ux/hitl-review-portal.d.ts.map +1 -0
  247. package/dist/infrastructure/ux/hitl-review-portal.js +228 -0
  248. package/dist/infrastructure/ux/hitl-review-portal.js.map +1 -0
  249. package/dist/infrastructure/ux/hitl-validation.d.ts +35 -0
  250. package/dist/infrastructure/ux/hitl-validation.d.ts.map +1 -1
  251. package/dist/infrastructure/ux/hitl-validation.js +86 -0
  252. package/dist/infrastructure/ux/hitl-validation.js.map +1 -1
  253. package/dist/infrastructure/ux/progress-indicator.d.ts +55 -0
  254. package/dist/infrastructure/ux/progress-indicator.d.ts.map +1 -0
  255. package/dist/infrastructure/ux/progress-indicator.js +131 -0
  256. package/dist/infrastructure/ux/progress-indicator.js.map +1 -0
  257. package/dist/infrastructure/ux/progressive-disclosure.d.ts.map +1 -1
  258. package/dist/infrastructure/ux/progressive-disclosure.js +2 -1
  259. package/dist/infrastructure/ux/progressive-disclosure.js.map +1 -1
  260. package/dist/infrastructure/ux/proportional-friction.d.ts +73 -0
  261. package/dist/infrastructure/ux/proportional-friction.d.ts.map +1 -0
  262. package/dist/infrastructure/ux/proportional-friction.js +200 -0
  263. package/dist/infrastructure/ux/proportional-friction.js.map +1 -0
  264. package/dist/infrastructure/ux/review-checkpoint.d.ts +35 -0
  265. package/dist/infrastructure/ux/review-checkpoint.d.ts.map +1 -0
  266. package/dist/infrastructure/ux/review-checkpoint.js +119 -0
  267. package/dist/infrastructure/ux/review-checkpoint.js.map +1 -0
  268. package/dist/infrastructure/ux/staged-feature-intro.d.ts +47 -0
  269. package/dist/infrastructure/ux/staged-feature-intro.d.ts.map +1 -0
  270. package/dist/infrastructure/ux/staged-feature-intro.js +144 -0
  271. package/dist/infrastructure/ux/staged-feature-intro.js.map +1 -0
  272. package/dist/infrastructure/ux/syntax-highlighter.d.ts +21 -0
  273. package/dist/infrastructure/ux/syntax-highlighter.d.ts.map +1 -0
  274. package/dist/infrastructure/ux/syntax-highlighter.js +172 -0
  275. package/dist/infrastructure/ux/syntax-highlighter.js.map +1 -0
  276. package/dist/infrastructure/validation/agent-feedback.d.ts +115 -0
  277. package/dist/infrastructure/validation/agent-feedback.d.ts.map +1 -0
  278. package/dist/infrastructure/validation/agent-feedback.js +227 -0
  279. package/dist/infrastructure/validation/agent-feedback.js.map +1 -0
  280. package/dist/infrastructure/validation/agent-validation-helper.d.ts +75 -0
  281. package/dist/infrastructure/validation/agent-validation-helper.d.ts.map +1 -0
  282. package/dist/infrastructure/validation/agent-validation-helper.js +88 -0
  283. package/dist/infrastructure/validation/agent-validation-helper.js.map +1 -0
  284. package/dist/infrastructure/validation/feedback-stats.d.ts +99 -0
  285. package/dist/infrastructure/validation/feedback-stats.d.ts.map +1 -0
  286. package/dist/infrastructure/validation/feedback-stats.js +173 -0
  287. package/dist/infrastructure/validation/feedback-stats.js.map +1 -0
  288. package/dist/infrastructure/validation/review-handler.d.ts +54 -0
  289. package/dist/infrastructure/validation/review-handler.d.ts.map +1 -0
  290. package/dist/infrastructure/validation/review-handler.js +206 -0
  291. package/dist/infrastructure/validation/review-handler.js.map +1 -0
  292. package/dist/infrastructure/validation/summary-aggregator.d.ts +42 -0
  293. package/dist/infrastructure/validation/summary-aggregator.d.ts.map +1 -0
  294. package/dist/infrastructure/validation/summary-aggregator.js +156 -0
  295. package/dist/infrastructure/validation/summary-aggregator.js.map +1 -0
  296. package/dist/infrastructure/validation/summary-extractor.d.ts +59 -0
  297. package/dist/infrastructure/validation/summary-extractor.d.ts.map +1 -0
  298. package/dist/infrastructure/validation/summary-extractor.js +102 -0
  299. package/dist/infrastructure/validation/summary-extractor.js.map +1 -0
  300. package/dist/infrastructure/validation/trace-summary.d.ts +72 -0
  301. package/dist/infrastructure/validation/trace-summary.d.ts.map +1 -0
  302. package/dist/infrastructure/validation/trace-summary.js +371 -0
  303. package/dist/infrastructure/validation/trace-summary.js.map +1 -0
  304. package/dist/infrastructure/validation/trust-config.d.ts +27 -0
  305. package/dist/infrastructure/validation/trust-config.d.ts.map +1 -0
  306. package/dist/infrastructure/validation/trust-config.js +113 -0
  307. package/dist/infrastructure/validation/trust-config.js.map +1 -0
  308. package/dist/infrastructure/xai/attention-visualizer.d.ts +6 -8
  309. package/dist/infrastructure/xai/attention-visualizer.d.ts.map +1 -1
  310. package/dist/infrastructure/xai/attention-visualizer.js +6 -8
  311. package/dist/infrastructure/xai/attention-visualizer.js.map +1 -1
  312. package/dist/infrastructure/xai/cot-visualizer.d.ts +6 -8
  313. package/dist/infrastructure/xai/cot-visualizer.d.ts.map +1 -1
  314. package/dist/infrastructure/xai/cot-visualizer.js +62 -18
  315. package/dist/infrastructure/xai/cot-visualizer.js.map +1 -1
  316. package/dist/infrastructure/xai/decision-tree-log.d.ts +6 -10
  317. package/dist/infrastructure/xai/decision-tree-log.d.ts.map +1 -1
  318. package/dist/infrastructure/xai/decision-tree-log.js +6 -10
  319. package/dist/infrastructure/xai/decision-tree-log.js.map +1 -1
  320. package/dist/infrastructure/xai/interactive-xai.d.ts +6 -8
  321. package/dist/infrastructure/xai/interactive-xai.d.ts.map +1 -1
  322. package/dist/infrastructure/xai/interactive-xai.js +6 -8
  323. package/dist/infrastructure/xai/interactive-xai.js.map +1 -1
  324. package/dist/infrastructure/xai/uncertainty-quantifier.d.ts +6 -9
  325. package/dist/infrastructure/xai/uncertainty-quantifier.d.ts.map +1 -1
  326. package/dist/infrastructure/xai/uncertainty-quantifier.js +6 -9
  327. package/dist/infrastructure/xai/uncertainty-quantifier.js.map +1 -1
  328. package/dist/presentation/cli/commands/ask-command.d.ts.map +1 -1
  329. package/dist/presentation/cli/commands/ask-command.js +152 -13
  330. package/dist/presentation/cli/commands/ask-command.js.map +1 -1
  331. package/dist/presentation/cli/commands/docs-command.d.ts +12 -0
  332. package/dist/presentation/cli/commands/docs-command.d.ts.map +1 -0
  333. package/dist/presentation/cli/commands/docs-command.js +196 -0
  334. package/dist/presentation/cli/commands/docs-command.js.map +1 -0
  335. package/dist/presentation/cli/commands/fix-command.d.ts +8 -0
  336. package/dist/presentation/cli/commands/fix-command.d.ts.map +1 -0
  337. package/dist/presentation/cli/commands/fix-command.js +309 -0
  338. package/dist/presentation/cli/commands/fix-command.js.map +1 -0
  339. package/dist/presentation/cli/commands/help-command.d.ts.map +1 -1
  340. package/dist/presentation/cli/commands/help-command.js +2 -0
  341. package/dist/presentation/cli/commands/help-command.js.map +1 -1
  342. package/dist/presentation/cli/commands/orchestrate-command.d.ts +2 -0
  343. package/dist/presentation/cli/commands/orchestrate-command.d.ts.map +1 -1
  344. package/dist/presentation/cli/commands/orchestrate-command.js +88 -1
  345. package/dist/presentation/cli/commands/orchestrate-command.js.map +1 -1
  346. package/dist/presentation/cli/commands/plan-command.d.ts +1 -0
  347. package/dist/presentation/cli/commands/plan-command.d.ts.map +1 -1
  348. package/dist/presentation/cli/commands/plan-command.js +136 -7
  349. package/dist/presentation/cli/commands/plan-command.js.map +1 -1
  350. package/dist/presentation/cli/commands/product-command.d.ts +12 -0
  351. package/dist/presentation/cli/commands/product-command.d.ts.map +1 -0
  352. package/dist/presentation/cli/commands/product-command.js +188 -0
  353. package/dist/presentation/cli/commands/product-command.js.map +1 -0
  354. package/dist/presentation/cli/commands/react-command.d.ts.map +1 -1
  355. package/dist/presentation/cli/commands/react-command.js +98 -16
  356. package/dist/presentation/cli/commands/react-command.js.map +1 -1
  357. package/dist/presentation/cli/commands/review-command.d.ts +14 -0
  358. package/dist/presentation/cli/commands/review-command.d.ts.map +1 -0
  359. package/dist/presentation/cli/commands/review-command.js +22 -0
  360. package/dist/presentation/cli/commands/review-command.js.map +1 -0
  361. package/dist/presentation/cli/commands/run-command.d.ts +15 -0
  362. package/dist/presentation/cli/commands/run-command.d.ts.map +1 -0
  363. package/dist/presentation/cli/commands/run-command.js +29 -0
  364. package/dist/presentation/cli/commands/run-command.js.map +1 -0
  365. package/dist/presentation/cli/commands/setup-command.d.ts.map +1 -1
  366. package/dist/presentation/cli/commands/setup-command.js +67 -12
  367. package/dist/presentation/cli/commands/setup-command.js.map +1 -1
  368. package/dist/presentation/cli/commands/smart-command.d.ts +3 -1
  369. package/dist/presentation/cli/commands/smart-command.d.ts.map +1 -1
  370. package/dist/presentation/cli/commands/smart-command.js +227 -23
  371. package/dist/presentation/cli/commands/smart-command.js.map +1 -1
  372. package/dist/presentation/cli/commands/status-command.d.ts +11 -0
  373. package/dist/presentation/cli/commands/status-command.d.ts.map +1 -0
  374. package/dist/presentation/cli/commands/status-command.js +176 -0
  375. package/dist/presentation/cli/commands/status-command.js.map +1 -0
  376. package/dist/presentation/cli/commands/suggest-command.d.ts +13 -0
  377. package/dist/presentation/cli/commands/suggest-command.d.ts.map +1 -0
  378. package/dist/presentation/cli/commands/suggest-command.js +25 -0
  379. package/dist/presentation/cli/commands/suggest-command.js.map +1 -0
  380. package/dist/presentation/cli/commands/trace-command.d.ts.map +1 -1
  381. package/dist/presentation/cli/commands/trace-command.js +9 -5
  382. package/dist/presentation/cli/commands/trace-command.js.map +1 -1
  383. package/dist/presentation/cli/commands/undo-command.js +15 -6
  384. package/dist/presentation/cli/commands/undo-command.js.map +1 -1
  385. package/dist/presentation/cli/error-display.d.ts +2 -0
  386. package/dist/presentation/cli/error-display.d.ts.map +1 -1
  387. package/dist/presentation/cli/error-display.js +220 -2
  388. package/dist/presentation/cli/error-display.js.map +1 -1
  389. package/dist/presentation/cli/keyboard-shortcuts.d.ts +27 -0
  390. package/dist/presentation/cli/keyboard-shortcuts.d.ts.map +1 -0
  391. package/dist/presentation/cli/keyboard-shortcuts.js +77 -0
  392. package/dist/presentation/cli/keyboard-shortcuts.js.map +1 -0
  393. package/dist/session.d.ts.map +1 -1
  394. package/dist/session.js +39 -2
  395. package/dist/session.js.map +1 -1
  396. package/dist/ui.d.ts.map +1 -1
  397. package/dist/ui.js +8 -5
  398. package/dist/ui.js.map +1 -1
  399. package/dist/utils/version.js +2 -2
  400. package/dist/verification/backup.d.ts.map +1 -1
  401. package/dist/verification/backup.js +24 -3
  402. package/dist/verification/backup.js.map +1 -1
  403. package/dist/verification/compiler.js +47 -12
  404. package/dist/verification/compiler.js.map +1 -1
  405. package/package.json +10 -2
@@ -0,0 +1,124 @@
1
+ /**
2
+ * Infrastructure: Security Scan Cache
3
+ * Caches security scan results by file content hash to avoid redundant scans
4
+ *
5
+ * Performance optimization: Reduces scan latency by ~80% for unchanged files
6
+ * Cache invalidation: Automatically invalidates when file content changes
7
+ */
8
+ import { createHash } from 'crypto';
9
+ export class SecurityScanCache {
10
+ cache = new Map();
11
+ maxSize;
12
+ ttl; // Time to live in milliseconds
13
+ constructor(maxSize = 500, ttl = 3600000) {
14
+ this.maxSize = maxSize;
15
+ this.ttl = ttl;
16
+ }
17
+ /**
18
+ * Generate content hash from file path and code content
19
+ */
20
+ getContentHash(filepath, code) {
21
+ const normalized = `${filepath}:${code}`;
22
+ return createHash('sha256').update(normalized).digest('hex');
23
+ }
24
+ /**
25
+ * Generate cache key from filepath
26
+ */
27
+ getCacheKey(filepath, contentHash) {
28
+ return createHash('sha256').update(`${filepath}:${contentHash}`).digest('hex');
29
+ }
30
+ /**
31
+ * Get cached scan results if available and not expired
32
+ */
33
+ get(filepath, code) {
34
+ const contentHash = this.getContentHash(filepath, code);
35
+ const key = this.getCacheKey(filepath, contentHash);
36
+ const cached = this.cache.get(key);
37
+ if (!cached) {
38
+ return null;
39
+ }
40
+ // Verify content hash matches (file hasn't changed)
41
+ if (cached.contentHash !== contentHash) {
42
+ this.cache.delete(key);
43
+ return null;
44
+ }
45
+ // Check if expired
46
+ const now = Date.now();
47
+ if (now - cached.timestamp > this.ttl) {
48
+ this.cache.delete(key);
49
+ return null;
50
+ }
51
+ return {
52
+ sast: cached.sast,
53
+ license: cached.license,
54
+ providerBias: cached.providerBias,
55
+ };
56
+ }
57
+ /**
58
+ * Store scan results in cache
59
+ */
60
+ set(filepath, code, sast, license, providerBias) {
61
+ const contentHash = this.getContentHash(filepath, code);
62
+ const key = this.getCacheKey(filepath, contentHash);
63
+ // Evict oldest entries if cache is full
64
+ if (this.cache.size >= this.maxSize) {
65
+ this.evictOldest();
66
+ }
67
+ this.cache.set(key, {
68
+ filepath,
69
+ contentHash,
70
+ sast,
71
+ license,
72
+ providerBias,
73
+ timestamp: Date.now(),
74
+ });
75
+ }
76
+ /**
77
+ * Evict oldest entries (LRU eviction)
78
+ */
79
+ evictOldest() {
80
+ // Remove 10% of oldest entries
81
+ const entriesToRemove = Math.ceil(this.maxSize * 0.1);
82
+ const entries = Array.from(this.cache.entries())
83
+ .sort((a, b) => a[1].timestamp - b[1].timestamp)
84
+ .slice(0, entriesToRemove);
85
+ for (const [key] of entries) {
86
+ this.cache.delete(key);
87
+ }
88
+ }
89
+ /**
90
+ * Clear expired entries
91
+ */
92
+ clearExpired() {
93
+ const now = Date.now();
94
+ for (const [key, value] of this.cache.entries()) {
95
+ if (now - value.timestamp > this.ttl) {
96
+ this.cache.delete(key);
97
+ }
98
+ }
99
+ }
100
+ /**
101
+ * Clear all cache
102
+ */
103
+ clear() {
104
+ this.cache.clear();
105
+ }
106
+ /**
107
+ * Get cache statistics
108
+ */
109
+ getStats() {
110
+ return {
111
+ size: this.cache.size,
112
+ maxSize: this.maxSize,
113
+ };
114
+ }
115
+ }
116
+ // Singleton instance
117
+ let securityScanCacheInstance = null;
118
+ export function getSecurityScanCache() {
119
+ if (!securityScanCacheInstance) {
120
+ securityScanCacheInstance = new SecurityScanCache();
121
+ }
122
+ return securityScanCacheInstance;
123
+ }
124
+ //# sourceMappingURL=security-scan-cache.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"security-scan-cache.js","sourceRoot":"","sources":["../../../src/infrastructure/cache/security-scan-cache.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAcpC,MAAM,OAAO,iBAAiB;IACpB,KAAK,GAAoC,IAAI,GAAG,EAAE,CAAC;IACnD,OAAO,CAAS;IAChB,GAAG,CAAS,CAAC,+BAA+B;IAEpD,YAAY,UAAkB,GAAG,EAAE,MAAc,OAAO;QACtD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACjB,CAAC;IAED;;OAEG;IACK,cAAc,CAAC,QAAgB,EAAE,IAAY;QAC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EAAE,CAAC;QACvB,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,EAAE,CAAC;YAChD,IAAI,GAAG,GAAG,KAAK,CAAC,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;gBACrC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YACzB,CAAC;QACH,CAAC;IACH,CAAC;IAED;;OAEG;IACH,KAAK;QACH,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;IACrB,CAAC;IAED;;OAEG;IACH,QAAQ;QACN,OAAO;YACL,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI;YACrB,OAAO,EAAE,IAAI,CAAC,OAAO;SACtB,CAAC;IACJ,CAAC;CACF;AAED,qBAAqB;AACrB,IAAI,yBAAyB,GAA6B,IAAI,CAAC;AAE/D,MAAM,UAAU,oBAAoB;IAClC,IAAI,CAAC,yBAAyB,EAAE,CAAC;QAC/B,yBAAyB,GAAG,IAAI,iBAAiB,EAAE,CAAC;IACtD,CAAC;IACD,OAAO,yBAAyB,CAAC;AACnC,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Bash Completion Script Generator
3
+ */
4
+ /**
5
+ * Generate bash completion script
6
+ */
7
+ export declare function generateBashCompletion(): string;
8
+ //# sourceMappingURL=bash-completion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bash-completion.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/completion/bash-completion.ts"],"names":[],"mappings":"AAAA;;GAEG;AAUH;;GAEG;AACH,wBAAgB,sBAAsB,IAAI,MAAM,CA6F/C"}
@@ -0,0 +1,101 @@
1
+ /**
2
+ * Bash Completion Script Generator
3
+ */
4
+ import { getAllCommands, } from './completion-generator.js';
5
+ /**
6
+ * Generate bash completion script
7
+ */
8
+ 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
14
+ COMPREPLY=()
15
+ cur="\${COMP_WORDS[COMP_CWORD]}"
16
+ prev="\${COMP_WORDS[COMP_CWORD-1]}"
17
+ words=("\${COMP_WORDS[@]}")
18
+ cword="\${COMP_CWORD}"
19
+
20
+ # Commands list
21
+ local commands="${getAllCommands().join(' ')}"
22
+
23
+ # Main command completion
24
+ if [ $COMP_CWORD -eq 1 ]; then
25
+ COMPREPLY=( $(compgen -W "\${commands}" -- "\${cur}") )
26
+ return 0
27
+ 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
+ }
97
+
98
+ complete -F _codehere_completion codehere
99
+ `;
100
+ }
101
+ //# sourceMappingURL=bash-completion.js.map
@@ -0,0 +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"}
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Shell Completion Generator
3
+ * Generates completion scripts for bash, zsh, and fish shells
4
+ */
5
+ export interface CommandDefinition {
6
+ name: string;
7
+ description: string;
8
+ options?: {
9
+ flag: string;
10
+ description: string;
11
+ }[];
12
+ subcommands?: string[];
13
+ dynamicCompletions?: (context: CompletionContext) => Promise<string[]>;
14
+ }
15
+ export interface CompletionContext {
16
+ command?: string;
17
+ subcommand?: string;
18
+ currentWord?: string;
19
+ previousWords: string[];
20
+ }
21
+ export declare const COMMAND_DEFINITIONS: Record<string, CommandDefinition>;
22
+ /**
23
+ * Get all command names
24
+ */
25
+ export declare function getAllCommands(): string[];
26
+ /**
27
+ * Get command definition
28
+ */
29
+ export declare function getCommandDefinition(command: string): CommandDefinition | undefined;
30
+ /**
31
+ * Get subcommands for a command
32
+ */
33
+ export declare function getSubcommands(command: string): string[];
34
+ /**
35
+ * Get options for a command
36
+ */
37
+ export declare function getCommandOptions(command: string): string[];
38
+ /**
39
+ * Generate file completions (for filepath arguments)
40
+ */
41
+ export declare function getFileCompletions(prefix: string): Promise<string[]>;
42
+ //# sourceMappingURL=completion-generator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"completion-generator.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/completion/completion-generator.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAClD,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,kBAAkB,CAAC,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;CACxE;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,EAAE,CAAC;CACzB;AAGD,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CA+FjE,CAAC;AAEF;;GAEG;AACH,wBAAgB,cAAc,IAAI,MAAM,EAAE,CAEzC;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,iBAAiB,GAAG,SAAS,CAEnF;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CAGxD;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CAgB3D;AAmCD;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAI1E"}
@@ -0,0 +1,184 @@
1
+ /**
2
+ * Shell Completion Generator
3
+ * Generates completion scripts for bash, zsh, and fish shells
4
+ */
5
+ import { readFileSync, existsSync } from 'fs';
6
+ import { join } from 'path';
7
+ // All commands and their definitions
8
+ export const COMMAND_DEFINITIONS = {
9
+ 'ask': {
10
+ name: 'ask',
11
+ description: 'Ask questions about your codebase',
12
+ options: [
13
+ { flag: '--stream', description: 'Enable streaming output' },
14
+ { flag: '--no-stream', description: 'Disable streaming output' },
15
+ ],
16
+ },
17
+ 'explain': {
18
+ name: 'explain',
19
+ description: 'Get detailed explanations of code files',
20
+ },
21
+ 'plan': {
22
+ name: 'plan',
23
+ description: 'Generate hierarchical plan',
24
+ options: [
25
+ { flag: '--execute', description: 'Execute the plan after generation' },
26
+ ],
27
+ },
28
+ 'orchestrate': {
29
+ name: 'orchestrate',
30
+ description: 'Orchestrate multi-agent workflows',
31
+ options: [
32
+ { flag: '--mode <mode>', description: 'Mode: plan-only, execute-only, full' },
33
+ { flag: '--plan-id <id>', description: 'Plan ID to load' },
34
+ ],
35
+ },
36
+ 'react': {
37
+ name: 'react',
38
+ description: 'Use ReAct reasoning loop',
39
+ options: [
40
+ { flag: '--stream', description: 'Enable streaming output' },
41
+ ],
42
+ },
43
+ 'setup': {
44
+ name: 'setup',
45
+ description: 'Interactive setup wizard',
46
+ options: [
47
+ { flag: '--force, -f', description: 'Force reconfiguration' },
48
+ ],
49
+ },
50
+ 'config': {
51
+ name: 'config',
52
+ description: 'Manage configuration',
53
+ subcommands: ['get', 'set', 'reset'],
54
+ dynamicCompletions: async (context) => {
55
+ // Dynamic completion for config keys
56
+ if (context.subcommand === 'get' || context.subcommand === 'set') {
57
+ return getConfigKeys();
58
+ }
59
+ return [];
60
+ },
61
+ },
62
+ 'index': {
63
+ name: 'index',
64
+ description: 'Build semantic embeddings index',
65
+ options: [
66
+ { flag: '--repo <path>, -r <path>', description: 'Repository path' },
67
+ ],
68
+ },
69
+ 'help': {
70
+ name: 'help',
71
+ description: 'Show help for commands',
72
+ },
73
+ 'undo': {
74
+ name: 'undo',
75
+ description: 'Undo file changes',
76
+ subcommands: ['undo', 'list', 'restore'],
77
+ },
78
+ 'trace': {
79
+ name: 'trace',
80
+ description: 'View execution traces',
81
+ subcommands: ['show', 'reproduce', 'list'],
82
+ },
83
+ 'decision': {
84
+ name: 'decision',
85
+ description: 'Record and query architectural decisions',
86
+ subcommands: ['record', 'list', 'query', 'explain'],
87
+ },
88
+ 'knowledge': {
89
+ name: 'knowledge',
90
+ description: 'Query preserved knowledge',
91
+ subcommands: ['query', 'list', 'summary', 'extract'],
92
+ },
93
+ 'learning': {
94
+ name: 'learning',
95
+ description: 'View learning dashboard',
96
+ subcommands: ['overview', 'patterns', 'knowledge', 'insights'],
97
+ },
98
+ 'cost': {
99
+ name: 'cost',
100
+ description: 'View API cost tracking',
101
+ subcommands: ['status', 'summary', 'run', 'reset'],
102
+ },
103
+ };
104
+ /**
105
+ * Get all command names
106
+ */
107
+ export function getAllCommands() {
108
+ return Object.keys(COMMAND_DEFINITIONS);
109
+ }
110
+ /**
111
+ * Get command definition
112
+ */
113
+ export function getCommandDefinition(command) {
114
+ return COMMAND_DEFINITIONS[command];
115
+ }
116
+ /**
117
+ * Get subcommands for a command
118
+ */
119
+ export function getSubcommands(command) {
120
+ const def = getCommandDefinition(command);
121
+ return def?.subcommands || [];
122
+ }
123
+ /**
124
+ * Get options for a command
125
+ */
126
+ export function getCommandOptions(command) {
127
+ const def = getCommandDefinition(command);
128
+ if (!def?.options)
129
+ return [];
130
+ return def.options.map(opt => {
131
+ // Extract flag names (e.g., "--force, -f" -> ["--force", "-f"])
132
+ const flags = opt.flag.split(',').map(f => f.trim());
133
+ // Return short and long flags
134
+ return flags.map(f => {
135
+ if (f.includes('<') || f.includes('[')) {
136
+ // Option with argument, return base flag
137
+ return f.split(/[<\[ ]/)[0];
138
+ }
139
+ return f;
140
+ });
141
+ }).flat();
142
+ }
143
+ /**
144
+ * Get config keys dynamically
145
+ */
146
+ async function getConfigKeys() {
147
+ try {
148
+ const configPath = join(process.cwd(), 'data', 'config.json');
149
+ if (existsSync(configPath)) {
150
+ const config = JSON.parse(readFileSync(configPath, 'utf-8'));
151
+ return Object.keys(config.preferences || {});
152
+ }
153
+ // Default config keys
154
+ return [
155
+ 'autoCommit',
156
+ 'temperature',
157
+ 'maxResults',
158
+ 'model',
159
+ 'enableStreaming',
160
+ 'enableSecurityScan',
161
+ 'enableVerification',
162
+ ];
163
+ }
164
+ catch {
165
+ return [
166
+ 'autoCommit',
167
+ 'temperature',
168
+ 'maxResults',
169
+ 'model',
170
+ 'enableStreaming',
171
+ 'enableSecurityScan',
172
+ 'enableVerification',
173
+ ];
174
+ }
175
+ }
176
+ /**
177
+ * Generate file completions (for filepath arguments)
178
+ */
179
+ export async function getFileCompletions(prefix) {
180
+ // This would need filesystem access - simplified for now
181
+ // In a real implementation, you'd list files matching the prefix
182
+ return [];
183
+ }
184
+ //# sourceMappingURL=completion-generator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"completion-generator.js","sourceRoot":"","sources":["../../../src/infrastructure/completion/completion-generator.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC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CAAC;AAED;;GAEG;AACH,KAAK,UAAU,aAAa;IAC1B,IAAI,CAAC;QACH,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,MAAM,EAAE,aAAa,CAAC,CAAC;QAC9D,IAAI,UAAU,CAAC,UAAU,CAAC,EAAE,CAAC;YAC3B,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC;YAC7D,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,IAAI,EAAE,CAAC,CAAC;QAC/C,CAAC;QACD,sBAAsB;QACtB,OAAO;YACL,YAAY;YACZ,aAAa;YACb,YAAY;YACZ,OAAO;YACP,iBAAiB;YACjB,oBAAoB;YACpB,oBAAoB;SACrB,CAAC;IACJ,CAAC;IAAC,MAAM,CAAC;QACP,OAAO;YACL,YAAY;YACZ,aAAa;YACb,YAAY;YACZ,OAAO;YACP,iBAAiB;YACjB,oBAAoB;YACpB,oBAAoB;SACrB,CAAC;IACJ,CAAC;AACH,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,kBAAkB,CAAC,MAAc;IACrD,yDAAyD;IACzD,iEAAiE;IACjE,OAAO,EAAE,CAAC;AACZ,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Fish Completion Script Generator
3
+ */
4
+ /**
5
+ * Generate fish completion script
6
+ */
7
+ export declare function generateFishCompletion(): string;
8
+ //# sourceMappingURL=fish-completion.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,65 @@
1
+ /**
2
+ * Fish Completion Script Generator
3
+ */
4
+ import { getAllCommands, } from './completion-generator.js';
5
+ /**
6
+ * Generate fish completion script
7
+ */
8
+ 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"
63
+ `;
64
+ }
65
+ //# sourceMappingURL=fish-completion.js.map
@@ -0,0 +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"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Zsh Completion Script Generator
3
+ */
4
+ /**
5
+ * Generate zsh completion script
6
+ */
7
+ export declare function generateZshCompletion(): string;
8
+ //# sourceMappingURL=zsh-completion.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,85 @@
1
+ /**
2
+ * Zsh Completion Script Generator
3
+ */
4
+ import { getAllCommands, } from './completion-generator.js';
5
+ /**
6
+ * Generate zsh completion script
7
+ */
8
+ export function generateZshCompletion() {
9
+ return `# Zsh completion for codehere
10
+ # Installation: source <(codehere --completion zsh) or add to ~/.zshrc
11
+
12
+ _codehere() {
13
+ local context state state_descr line
14
+ typeset -A opt_args
15
+
16
+ _arguments -C \\
17
+ "1: :->command" \\
18
+ "*::arg:->args"
19
+
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
80
+ }
81
+
82
+ compdef _codehere codehere
83
+ `;
84
+ }
85
+ //# sourceMappingURL=zsh-completion.js.map
@@ -0,0 +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"}