codehere 0.5.2-alpha → 0.5.3-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (375) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +126 -102
  3. package/dist/application/agents/execution-agent.js +2 -2
  4. package/dist/application/agents/multi-agent-orchestrator.d.ts +0 -1
  5. package/dist/application/agents/multi-agent-orchestrator.d.ts.map +1 -1
  6. package/dist/application/agents/multi-agent-orchestrator.js +2 -9
  7. package/dist/application/agents/multi-agent-orchestrator.js.map +1 -1
  8. package/dist/application/agents/planning-agent.d.ts.map +1 -1
  9. package/dist/application/agents/planning-agent.js +11 -15
  10. package/dist/application/agents/planning-agent.js.map +1 -1
  11. package/dist/application/services/context-importer.d.ts +71 -0
  12. package/dist/application/services/context-importer.d.ts.map +1 -0
  13. package/dist/application/services/context-importer.js +436 -0
  14. package/dist/application/services/context-importer.js.map +1 -0
  15. package/dist/application/services/context-manager.d.ts +132 -0
  16. package/dist/application/services/context-manager.d.ts.map +1 -0
  17. package/dist/application/services/context-manager.js +369 -0
  18. package/dist/application/services/context-manager.js.map +1 -0
  19. package/dist/application/services/dependency-container.d.ts.map +1 -1
  20. package/dist/application/services/dependency-container.js +7 -5
  21. package/dist/application/services/dependency-container.js.map +1 -1
  22. package/dist/application/services/intelligent-router.d.ts +8 -5
  23. package/dist/application/services/intelligent-router.d.ts.map +1 -1
  24. package/dist/application/services/intelligent-router.js +78 -82
  25. package/dist/application/services/intelligent-router.js.map +1 -1
  26. package/dist/application/services/token-counting-service.d.ts +87 -0
  27. package/dist/application/services/token-counting-service.d.ts.map +1 -0
  28. package/dist/application/services/token-counting-service.js +196 -0
  29. package/dist/application/services/token-counting-service.js.map +1 -0
  30. package/dist/application/use-cases/ask-question-use-case.d.ts.map +1 -1
  31. package/dist/application/use-cases/ask-question-use-case.js +109 -21
  32. package/dist/application/use-cases/ask-question-use-case.js.map +1 -1
  33. package/dist/application/use-cases/edit-file-use-case.d.ts.map +1 -1
  34. package/dist/application/use-cases/edit-file-use-case.js +19 -0
  35. package/dist/application/use-cases/edit-file-use-case.js.map +1 -1
  36. package/dist/application/use-cases/planning-use-case.d.ts +1 -14
  37. package/dist/application/use-cases/planning-use-case.d.ts.map +1 -1
  38. package/dist/application/use-cases/planning-use-case.js +2 -109
  39. package/dist/application/use-cases/planning-use-case.js.map +1 -1
  40. package/dist/chat.d.ts.map +1 -1
  41. package/dist/chat.js +6 -17
  42. package/dist/chat.js.map +1 -1
  43. package/dist/domain/entities/conversation-context.d.ts +245 -0
  44. package/dist/domain/entities/conversation-context.d.ts.map +1 -0
  45. package/dist/domain/entities/conversation-context.js +50 -0
  46. package/dist/domain/entities/conversation-context.js.map +1 -0
  47. package/dist/domain/entities/memory.d.ts.map +1 -1
  48. package/dist/domain/interfaces/context-repository.interface.d.ts +71 -0
  49. package/dist/domain/interfaces/context-repository.interface.d.ts.map +1 -0
  50. package/dist/domain/interfaces/context-repository.interface.js +10 -0
  51. package/dist/domain/interfaces/context-repository.interface.js.map +1 -0
  52. package/dist/domain/services/query-intent-classifier.d.ts.map +1 -1
  53. package/dist/domain/services/query-intent-classifier.js +37 -23
  54. package/dist/domain/services/query-intent-classifier.js.map +1 -1
  55. package/dist/embed.d.ts.map +1 -1
  56. package/dist/embed.js +8 -3
  57. package/dist/embed.js.map +1 -1
  58. package/dist/index.js +267 -143
  59. package/dist/index.js.map +1 -1
  60. package/dist/infrastructure/ai/cohere-ai-service.d.ts.map +1 -1
  61. package/dist/infrastructure/ai/cohere-ai-service.js +14 -5
  62. package/dist/infrastructure/ai/cohere-ai-service.js.map +1 -1
  63. package/dist/infrastructure/ai/provider-ai-service.d.ts.map +1 -1
  64. package/dist/infrastructure/ai/provider-ai-service.js +64 -14
  65. package/dist/infrastructure/ai/provider-ai-service.js.map +1 -1
  66. package/dist/infrastructure/config/config-manager.d.ts +78 -9
  67. package/dist/infrastructure/config/config-manager.d.ts.map +1 -1
  68. package/dist/infrastructure/config/config-manager.js +127 -9
  69. package/dist/infrastructure/config/config-manager.js.map +1 -1
  70. package/dist/infrastructure/context/conversation-context.d.ts +39 -12
  71. package/dist/infrastructure/context/conversation-context.d.ts.map +1 -1
  72. package/dist/infrastructure/context/conversation-context.js +91 -4
  73. package/dist/infrastructure/context/conversation-context.js.map +1 -1
  74. package/dist/infrastructure/context/direct-context-provider.d.ts +18 -0
  75. package/dist/infrastructure/context/direct-context-provider.d.ts.map +1 -0
  76. package/dist/infrastructure/context/direct-context-provider.js +222 -0
  77. package/dist/infrastructure/context/direct-context-provider.js.map +1 -0
  78. package/dist/infrastructure/context/git-context-provider.d.ts +30 -0
  79. package/dist/infrastructure/context/git-context-provider.d.ts.map +1 -0
  80. package/dist/infrastructure/context/git-context-provider.js +140 -0
  81. package/dist/infrastructure/context/git-context-provider.js.map +1 -0
  82. package/dist/infrastructure/context/project-context-loader.d.ts +35 -0
  83. package/dist/infrastructure/context/project-context-loader.d.ts.map +1 -0
  84. package/dist/infrastructure/context/project-context-loader.js +184 -0
  85. package/dist/infrastructure/context/project-context-loader.js.map +1 -0
  86. package/dist/infrastructure/cost/cost-tracker.d.ts.map +1 -1
  87. package/dist/infrastructure/cost/cost-tracker.js +3 -2
  88. package/dist/infrastructure/cost/cost-tracker.js.map +1 -1
  89. package/dist/infrastructure/cost/session-token-tracker.d.ts +68 -0
  90. package/dist/infrastructure/cost/session-token-tracker.d.ts.map +1 -0
  91. package/dist/infrastructure/cost/session-token-tracker.js +178 -0
  92. package/dist/infrastructure/cost/session-token-tracker.js.map +1 -0
  93. package/dist/infrastructure/index.d.ts +1 -0
  94. package/dist/infrastructure/index.d.ts.map +1 -1
  95. package/dist/infrastructure/index.js +1 -2
  96. package/dist/infrastructure/index.js.map +1 -1
  97. package/dist/infrastructure/observability/execution-tracer.d.ts +21 -0
  98. package/dist/infrastructure/observability/execution-tracer.d.ts.map +1 -1
  99. package/dist/infrastructure/observability/execution-tracer.js +157 -4
  100. package/dist/infrastructure/observability/execution-tracer.js.map +1 -1
  101. package/dist/infrastructure/protocols/a2a-metadata.js +1 -1
  102. package/dist/infrastructure/protocols/mcp-oauth.js +1 -1
  103. package/dist/infrastructure/providers/cohere-provider.d.ts +1 -2
  104. package/dist/infrastructure/providers/cohere-provider.d.ts.map +1 -1
  105. package/dist/infrastructure/providers/cohere-provider.js +44 -42
  106. package/dist/infrastructure/providers/cohere-provider.js.map +1 -1
  107. package/dist/infrastructure/providers/fake-provider.d.ts.map +1 -1
  108. package/dist/infrastructure/providers/fake-provider.js +8 -0
  109. package/dist/infrastructure/providers/fake-provider.js.map +1 -1
  110. package/dist/infrastructure/providers/local-llm-provider.d.ts.map +1 -1
  111. package/dist/infrastructure/providers/local-llm-provider.js +8 -2
  112. package/dist/infrastructure/providers/local-llm-provider.js.map +1 -1
  113. package/dist/infrastructure/providers/openai-provider.d.ts.map +1 -1
  114. package/dist/infrastructure/providers/openai-provider.js +40 -7
  115. package/dist/infrastructure/providers/openai-provider.js.map +1 -1
  116. package/dist/infrastructure/providers/openrouter-provider.d.ts.map +1 -1
  117. package/dist/infrastructure/providers/openrouter-provider.js +13 -7
  118. package/dist/infrastructure/providers/openrouter-provider.js.map +1 -1
  119. package/dist/infrastructure/security/enhanced-security-gate.d.ts +13 -0
  120. package/dist/infrastructure/security/enhanced-security-gate.d.ts.map +1 -1
  121. package/dist/infrastructure/security/enhanced-security-gate.js +56 -1
  122. package/dist/infrastructure/security/enhanced-security-gate.js.map +1 -1
  123. package/dist/infrastructure/security/input-validator.d.ts +17 -0
  124. package/dist/infrastructure/security/input-validator.d.ts.map +1 -1
  125. package/dist/infrastructure/security/input-validator.js +140 -25
  126. package/dist/infrastructure/security/input-validator.js.map +1 -1
  127. package/dist/infrastructure/storage/embeddings-path.d.ts.map +1 -1
  128. package/dist/infrastructure/storage/embeddings-path.js +14 -4
  129. package/dist/infrastructure/storage/embeddings-path.js.map +1 -1
  130. package/dist/infrastructure/storage/memory-stream-service.d.ts.map +1 -1
  131. package/dist/infrastructure/storage/memory-stream-service.js +58 -88
  132. package/dist/infrastructure/storage/memory-stream-service.js.map +1 -1
  133. package/dist/infrastructure/storage/plan-repository.d.ts.map +1 -1
  134. package/dist/infrastructure/storage/plan-repository.js +4 -5
  135. package/dist/infrastructure/storage/plan-repository.js.map +1 -1
  136. package/dist/infrastructure/storage/sqlite-context-repository.d.ts +95 -0
  137. package/dist/infrastructure/storage/sqlite-context-repository.d.ts.map +1 -0
  138. package/dist/infrastructure/storage/sqlite-context-repository.js +467 -0
  139. package/dist/infrastructure/storage/sqlite-context-repository.js.map +1 -0
  140. package/dist/infrastructure/storage/sqlite-decision-repository.d.ts.map +1 -1
  141. package/dist/infrastructure/storage/sqlite-decision-repository.js +4 -8
  142. package/dist/infrastructure/storage/sqlite-decision-repository.js.map +1 -1
  143. package/dist/infrastructure/storage/sqlite-knowledge-graph-repository.d.ts.map +1 -1
  144. package/dist/infrastructure/storage/sqlite-knowledge-graph-repository.js +4 -8
  145. package/dist/infrastructure/storage/sqlite-knowledge-graph-repository.js.map +1 -1
  146. package/dist/infrastructure/storage/sqlite-knowledge-preservation-repository.d.ts.map +1 -1
  147. package/dist/infrastructure/storage/sqlite-knowledge-preservation-repository.js +4 -8
  148. package/dist/infrastructure/storage/sqlite-knowledge-preservation-repository.js.map +1 -1
  149. package/dist/infrastructure/storage/sqlite-memory-repository.d.ts.map +1 -1
  150. package/dist/infrastructure/storage/sqlite-memory-repository.js +4 -8
  151. package/dist/infrastructure/storage/sqlite-memory-repository.js.map +1 -1
  152. package/dist/infrastructure/storage/sqlite-pattern-repository.d.ts.map +1 -1
  153. package/dist/infrastructure/storage/sqlite-pattern-repository.js +4 -8
  154. package/dist/infrastructure/storage/sqlite-pattern-repository.js.map +1 -1
  155. package/dist/infrastructure/storage/task-repository.d.ts +0 -1
  156. package/dist/infrastructure/storage/task-repository.d.ts.map +1 -1
  157. package/dist/infrastructure/storage/task-repository.js +2 -13
  158. package/dist/infrastructure/storage/task-repository.js.map +1 -1
  159. package/dist/infrastructure/ux/cli-style-guide.d.ts +105 -0
  160. package/dist/infrastructure/ux/cli-style-guide.d.ts.map +1 -0
  161. package/dist/infrastructure/ux/cli-style-guide.js +220 -0
  162. package/dist/infrastructure/ux/cli-style-guide.js.map +1 -0
  163. package/dist/infrastructure/ux/progress-indicator.d.ts +49 -10
  164. package/dist/infrastructure/ux/progress-indicator.d.ts.map +1 -1
  165. package/dist/infrastructure/ux/progress-indicator.js +112 -9
  166. package/dist/infrastructure/ux/progress-indicator.js.map +1 -1
  167. package/dist/infrastructure/validation/agent-feedback.d.ts +14 -1
  168. package/dist/infrastructure/validation/agent-feedback.d.ts.map +1 -1
  169. package/dist/infrastructure/validation/agent-feedback.js +57 -3
  170. package/dist/infrastructure/validation/agent-feedback.js.map +1 -1
  171. package/dist/parallel-processor.d.ts.map +1 -1
  172. package/dist/parallel-processor.js +39 -11
  173. package/dist/parallel-processor.js.map +1 -1
  174. package/dist/presentation/cli/commands/ask-command.d.ts +1 -2
  175. package/dist/presentation/cli/commands/ask-command.d.ts.map +1 -1
  176. package/dist/presentation/cli/commands/ask-command.js +66 -150
  177. package/dist/presentation/cli/commands/ask-command.js.map +1 -1
  178. package/dist/presentation/cli/commands/audit-command.d.ts +13 -0
  179. package/dist/presentation/cli/commands/audit-command.d.ts.map +1 -0
  180. package/dist/presentation/cli/commands/audit-command.js +96 -0
  181. package/dist/presentation/cli/commands/audit-command.js.map +1 -0
  182. package/dist/presentation/cli/commands/config-command.d.ts.map +1 -1
  183. package/dist/presentation/cli/commands/config-command.js +2 -14
  184. package/dist/presentation/cli/commands/config-command.js.map +1 -1
  185. package/dist/presentation/cli/commands/context-command.d.ts +32 -0
  186. package/dist/presentation/cli/commands/context-command.d.ts.map +1 -0
  187. package/dist/presentation/cli/commands/context-command.js +295 -0
  188. package/dist/presentation/cli/commands/context-command.js.map +1 -0
  189. package/dist/presentation/cli/commands/context-helper.d.ts +16 -0
  190. package/dist/presentation/cli/commands/context-helper.d.ts.map +1 -0
  191. package/dist/presentation/cli/commands/context-helper.js +88 -0
  192. package/dist/presentation/cli/commands/context-helper.js.map +1 -0
  193. package/dist/presentation/cli/commands/decision-command.js +6 -23
  194. package/dist/presentation/cli/commands/decision-command.js.map +1 -1
  195. package/dist/presentation/cli/commands/fix-command.d.ts.map +1 -1
  196. package/dist/presentation/cli/commands/fix-command.js +19 -23
  197. package/dist/presentation/cli/commands/fix-command.js.map +1 -1
  198. package/dist/presentation/cli/commands/help-command.d.ts.map +1 -1
  199. package/dist/presentation/cli/commands/help-command.js +1 -21
  200. package/dist/presentation/cli/commands/help-command.js.map +1 -1
  201. package/dist/presentation/cli/commands/orchestrate-command.d.ts +0 -1
  202. package/dist/presentation/cli/commands/orchestrate-command.d.ts.map +1 -1
  203. package/dist/presentation/cli/commands/orchestrate-command.js +19 -126
  204. package/dist/presentation/cli/commands/orchestrate-command.js.map +1 -1
  205. package/dist/presentation/cli/commands/plan-command.d.ts +0 -1
  206. package/dist/presentation/cli/commands/plan-command.d.ts.map +1 -1
  207. package/dist/presentation/cli/commands/plan-command.js +42 -132
  208. package/dist/presentation/cli/commands/plan-command.js.map +1 -1
  209. package/dist/presentation/cli/commands/react-command.d.ts.map +1 -1
  210. package/dist/presentation/cli/commands/react-command.js +1 -5
  211. package/dist/presentation/cli/commands/react-command.js.map +1 -1
  212. package/dist/presentation/cli/commands/review-command.d.ts.map +1 -1
  213. package/dist/presentation/cli/commands/review-command.js +2 -21
  214. package/dist/presentation/cli/commands/review-command.js.map +1 -1
  215. package/dist/presentation/cli/commands/smart-command.d.ts +3 -0
  216. package/dist/presentation/cli/commands/smart-command.d.ts.map +1 -1
  217. package/dist/presentation/cli/commands/smart-command.js +127 -93
  218. package/dist/presentation/cli/commands/smart-command.js.map +1 -1
  219. package/dist/presentation/cli/commands/status-command.d.ts.map +1 -1
  220. package/dist/presentation/cli/commands/status-command.js +1 -5
  221. package/dist/presentation/cli/commands/status-command.js.map +1 -1
  222. package/dist/presentation/cli/commands/trust-command.d.ts +28 -0
  223. package/dist/presentation/cli/commands/trust-command.d.ts.map +1 -0
  224. package/dist/presentation/cli/commands/trust-command.js +301 -0
  225. package/dist/presentation/cli/commands/trust-command.js.map +1 -0
  226. package/dist/presentation/cli/error-display.d.ts.map +1 -1
  227. package/dist/presentation/cli/error-display.js +17 -75
  228. package/dist/presentation/cli/error-display.js.map +1 -1
  229. package/dist/search.d.ts.map +1 -1
  230. package/dist/search.js +5 -18
  231. package/dist/search.js.map +1 -1
  232. package/dist/session.d.ts.map +1 -1
  233. package/dist/session.js +221 -57
  234. package/dist/session.js.map +1 -1
  235. package/dist/token-optimizer.d.ts.map +1 -1
  236. package/dist/token-optimizer.js +6 -1
  237. package/dist/token-optimizer.js.map +1 -1
  238. package/dist/tools/bash.d.ts.map +1 -1
  239. package/dist/tools/bash.js +0 -3
  240. package/dist/tools/bash.js.map +1 -1
  241. package/dist/tools/git-tool.js +7 -7
  242. package/dist/tools/git-tool.js.map +1 -1
  243. package/dist/ui.d.ts +0 -5
  244. package/dist/ui.d.ts.map +1 -1
  245. package/dist/ui.js +0 -19
  246. package/dist/ui.js.map +1 -1
  247. package/dist/utils/provider-check.d.ts +21 -0
  248. package/dist/utils/provider-check.d.ts.map +1 -0
  249. package/dist/utils/provider-check.js +124 -0
  250. package/dist/utils/provider-check.js.map +1 -0
  251. package/package.json +17 -14
  252. package/dist/application/agents/documentation-agent.d.ts +0 -24
  253. package/dist/application/agents/documentation-agent.d.ts.map +0 -1
  254. package/dist/application/agents/documentation-agent.js +0 -399
  255. package/dist/application/agents/documentation-agent.js.map +0 -1
  256. package/dist/application/agents/product-requirements-agent.d.ts +0 -21
  257. package/dist/application/agents/product-requirements-agent.d.ts.map +0 -1
  258. package/dist/application/agents/product-requirements-agent.js +0 -247
  259. package/dist/application/agents/product-requirements-agent.js.map +0 -1
  260. package/dist/application/reasoning/multi-model-planning-strategy.d.ts +0 -21
  261. package/dist/application/reasoning/multi-model-planning-strategy.d.ts.map +0 -1
  262. package/dist/application/reasoning/multi-model-planning-strategy.js +0 -158
  263. package/dist/application/reasoning/multi-model-planning-strategy.js.map +0 -1
  264. package/dist/application/reasoning/reasoning-config.d.ts +0 -15
  265. package/dist/application/reasoning/reasoning-config.d.ts.map +0 -1
  266. package/dist/application/reasoning/reasoning-config.js +0 -50
  267. package/dist/application/reasoning/reasoning-config.js.map +0 -1
  268. package/dist/application/reasoning/reasoning-orchestrator.d.ts +0 -18
  269. package/dist/application/reasoning/reasoning-orchestrator.d.ts.map +0 -1
  270. package/dist/application/reasoning/reasoning-orchestrator.js +0 -170
  271. package/dist/application/reasoning/reasoning-orchestrator.js.map +0 -1
  272. package/dist/application/reasoning/reasoning-strategy.interface.d.ts +0 -24
  273. package/dist/application/reasoning/reasoning-strategy.interface.d.ts.map +0 -1
  274. package/dist/application/reasoning/reasoning-strategy.interface.js +0 -6
  275. package/dist/application/reasoning/reasoning-strategy.interface.js.map +0 -1
  276. package/dist/application/reasoning/role-provider-resolver.d.ts +0 -36
  277. package/dist/application/reasoning/role-provider-resolver.d.ts.map +0 -1
  278. package/dist/application/reasoning/role-provider-resolver.js +0 -74
  279. package/dist/application/reasoning/role-provider-resolver.js.map +0 -1
  280. package/dist/application/reasoning/simple-planning-strategy.d.ts +0 -22
  281. package/dist/application/reasoning/simple-planning-strategy.d.ts.map +0 -1
  282. package/dist/application/reasoning/simple-planning-strategy.js +0 -217
  283. package/dist/application/reasoning/simple-planning-strategy.js.map +0 -1
  284. package/dist/application/reasoning/types.d.ts +0 -65
  285. package/dist/application/reasoning/types.d.ts.map +0 -1
  286. package/dist/application/reasoning/types.js +0 -6
  287. package/dist/application/reasoning/types.js.map +0 -1
  288. package/dist/application/reasoning/validator-strategy.d.ts +0 -56
  289. package/dist/application/reasoning/validator-strategy.d.ts.map +0 -1
  290. package/dist/application/reasoning/validator-strategy.js +0 -103
  291. package/dist/application/reasoning/validator-strategy.js.map +0 -1
  292. package/dist/domain/entities/documentation.d.ts +0 -35
  293. package/dist/domain/entities/documentation.d.ts.map +0 -1
  294. package/dist/domain/entities/documentation.js +0 -6
  295. package/dist/domain/entities/documentation.js.map +0 -1
  296. package/dist/domain/entities/product-requirements.d.ts +0 -50
  297. package/dist/domain/entities/product-requirements.d.ts.map +0 -1
  298. package/dist/domain/entities/product-requirements.js +0 -6
  299. package/dist/domain/entities/product-requirements.js.map +0 -1
  300. package/dist/domain/interfaces/agent.interface.d.ts +0 -15
  301. package/dist/domain/interfaces/agent.interface.d.ts.map +0 -1
  302. package/dist/domain/interfaces/agent.interface.js +0 -6
  303. package/dist/domain/interfaces/agent.interface.js.map +0 -1
  304. package/dist/infrastructure/ai/fake-ai-service.d.ts +0 -22
  305. package/dist/infrastructure/ai/fake-ai-service.d.ts.map +0 -1
  306. package/dist/infrastructure/ai/fake-ai-service.js +0 -59
  307. package/dist/infrastructure/ai/fake-ai-service.js.map +0 -1
  308. package/dist/infrastructure/completion/completion-generator.d.ts +0 -42
  309. package/dist/infrastructure/completion/completion-generator.d.ts.map +0 -1
  310. package/dist/infrastructure/completion/completion-generator.js +0 -184
  311. package/dist/infrastructure/completion/completion-generator.js.map +0 -1
  312. package/dist/infrastructure/security/network-guard.d.ts +0 -8
  313. package/dist/infrastructure/security/network-guard.d.ts.map +0 -1
  314. package/dist/infrastructure/security/network-guard.js +0 -70
  315. package/dist/infrastructure/security/network-guard.js.map +0 -1
  316. package/dist/infrastructure/security/offline.d.ts +0 -16
  317. package/dist/infrastructure/security/offline.d.ts.map +0 -1
  318. package/dist/infrastructure/security/offline.js +0 -24
  319. package/dist/infrastructure/security/offline.js.map +0 -1
  320. package/dist/infrastructure/storage/sqljs-init.d.ts +0 -8
  321. package/dist/infrastructure/storage/sqljs-init.d.ts.map +0 -1
  322. package/dist/infrastructure/storage/sqljs-init.js +0 -23
  323. package/dist/infrastructure/storage/sqljs-init.js.map +0 -1
  324. package/dist/infrastructure/ux/hitl-review-portal.d.ts +0 -47
  325. package/dist/infrastructure/ux/hitl-review-portal.d.ts.map +0 -1
  326. package/dist/infrastructure/ux/hitl-review-portal.js +0 -228
  327. package/dist/infrastructure/ux/hitl-review-portal.js.map +0 -1
  328. package/dist/infrastructure/ux/meta-query.d.ts +0 -9
  329. package/dist/infrastructure/ux/meta-query.d.ts.map +0 -1
  330. package/dist/infrastructure/ux/meta-query.js +0 -63
  331. package/dist/infrastructure/ux/meta-query.js.map +0 -1
  332. package/dist/infrastructure/ux/proportional-friction.d.ts +0 -73
  333. package/dist/infrastructure/ux/proportional-friction.d.ts.map +0 -1
  334. package/dist/infrastructure/ux/proportional-friction.js +0 -200
  335. package/dist/infrastructure/ux/proportional-friction.js.map +0 -1
  336. package/dist/infrastructure/ux/repo-fingerprint.d.ts +0 -10
  337. package/dist/infrastructure/ux/repo-fingerprint.d.ts.map +0 -1
  338. package/dist/infrastructure/ux/repo-fingerprint.js +0 -55
  339. package/dist/infrastructure/ux/repo-fingerprint.js.map +0 -1
  340. package/dist/infrastructure/validation/feedback-stats.d.ts +0 -99
  341. package/dist/infrastructure/validation/feedback-stats.d.ts.map +0 -1
  342. package/dist/infrastructure/validation/feedback-stats.js +0 -173
  343. package/dist/infrastructure/validation/feedback-stats.js.map +0 -1
  344. package/dist/infrastructure/validation/trust-config.d.ts +0 -27
  345. package/dist/infrastructure/validation/trust-config.d.ts.map +0 -1
  346. package/dist/infrastructure/validation/trust-config.js +0 -113
  347. package/dist/infrastructure/validation/trust-config.js.map +0 -1
  348. package/dist/presentation/cli/commands/memory-command.d.ts +0 -17
  349. package/dist/presentation/cli/commands/memory-command.d.ts.map +0 -1
  350. package/dist/presentation/cli/commands/memory-command.js +0 -252
  351. package/dist/presentation/cli/commands/memory-command.js.map +0 -1
  352. package/dist/presentation/cli/keyboard-shortcuts.d.ts +0 -27
  353. package/dist/presentation/cli/keyboard-shortcuts.d.ts.map +0 -1
  354. package/dist/presentation/cli/keyboard-shortcuts.js +0 -77
  355. package/dist/presentation/cli/keyboard-shortcuts.js.map +0 -1
  356. package/dist/test_cohere.d.ts +0 -2
  357. package/dist/test_cohere.d.ts.map +0 -1
  358. package/dist/test_cohere.js +0 -68
  359. package/dist/test_cohere.js.map +0 -1
  360. package/dist/test_env.d.ts +0 -2
  361. package/dist/test_env.d.ts.map +0 -1
  362. package/dist/test_env.js +0 -24
  363. package/dist/test_env.js.map +0 -1
  364. package/dist/test_retrieval.d.ts +0 -2
  365. package/dist/test_retrieval.d.ts.map +0 -1
  366. package/dist/test_retrieval.js +0 -84
  367. package/dist/test_retrieval.js.map +0 -1
  368. package/dist/tools/bash.d 2.ts +0 -53
  369. package/dist/tools/bash.js 2.map +0 -1
  370. package/dist/tools/edit 2.js +0 -235
  371. package/dist/tools/edit.d.ts 2.map +0 -1
  372. package/dist/utils/logger.d.ts +0 -34
  373. package/dist/utils/logger.d.ts.map +0 -1
  374. package/dist/utils/logger.js +0 -56
  375. package/dist/utils/logger.js.map +0 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "codehere",
3
- "version": "0.5.2-alpha",
4
- "description": "AI-powered coding assistant with local embeddings and semantic search",
3
+ "version": "0.5.3-alpha",
4
+ "description": "Enterprise-safe coding agent with security-first architecture: prompt injection detection, output validation, AI SAST scanning, and compliance-ready audit trails. Local-first privacy, multi-agent reliability, and multi-provider flexibility.",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
7
7
  "bin": {
@@ -13,7 +13,7 @@
13
13
  "LICENSE"
14
14
  ],
15
15
  "scripts": {
16
- "build": "tsc",
16
+ "build": "node node_modules/typescript/bin/tsc",
17
17
  "start": "node dist/index.js",
18
18
  "start:api": "npm run build && node dist/api/server.js",
19
19
  "dev": "tsx src/index.ts",
@@ -43,21 +43,24 @@
43
43
  "measure:metrics": "npm run build && node test/measure-metrics.js",
44
44
  "analyze:feedback": "tsx scripts/analyze-feedback.ts",
45
45
  "check:trust": "tsx scripts/check-trust-thresholds.ts",
46
- "verify:openrouter-models": "tsx scripts/verify-openrouter-models.ts",
47
- "test:cli:smoke": "npm run build && tsx scripts/cli-smoke-test.ts",
48
- "test:cli:comprehensive": "npm run build && tsx scripts/comprehensive-cli-test.ts",
49
46
  "smoke:cohere": "npm run build && tsx scripts/smoke-cohere.ts",
50
47
  "smoke:openai": "npm run build && tsx scripts/smoke-openai.ts",
51
48
  "test:real-providers": "npm run build && tsx test/integration/real-provider-comprehensive.test.ts",
52
- "test:user-flows": "npm run build && tsx test/integration/user-flow-validation.test.ts",
53
- "test:hard-edge-cases": "npm run build && tsx test/integration/hard-edge-cases.test.ts"
49
+ "test:user-flows": "npm run build && tsx test/integration/user-flow-validation.test.ts"
54
50
  },
55
51
  "keywords": [
56
- "coding-assistant",
52
+ "enterprise-safe",
53
+ "coding-agent",
54
+ "local-first",
55
+ "multi-agent",
56
+ "privacy",
57
+ "security",
57
58
  "ai",
58
59
  "semantic-search",
59
60
  "cohere",
60
61
  "openai",
62
+ "openrouter",
63
+ "ollama",
61
64
  "local-llm",
62
65
  "provider-abstraction",
63
66
  "multi-provider",
@@ -72,7 +75,7 @@
72
75
  "license": "MIT",
73
76
  "repository": {
74
77
  "type": "git",
75
- "url": "git+https://github.com/muhammadegaa/codehere.git"
78
+ "url": "https://github.com/muhammadegaa/codehere.git"
76
79
  },
77
80
  "bugs": {
78
81
  "url": "https://github.com/muhammadegaa/codehere/issues"
@@ -80,6 +83,7 @@
80
83
  "homepage": "https://codehere.uk",
81
84
  "logo": "https://codehere.uk/icon.svg",
82
85
  "dependencies": {
86
+ "@aws-sdk/credential-providers": "^3.955.0",
83
87
  "boxen": "^8.0.1",
84
88
  "chalk": "^5.3.0",
85
89
  "cli-progress": "^3.12.0",
@@ -96,8 +100,6 @@
96
100
  "resolve-pkg-maps": "^1.0.0",
97
101
  "sql.js": "^1.10.3",
98
102
  "tiktoken": "^1.0.10",
99
- "typescript": "^5.9.3",
100
- "winston": "^3.15.0",
101
103
  "wrap-ansi": "^9.0.2"
102
104
  },
103
105
  "devDependencies": {
@@ -105,11 +107,12 @@
105
107
  "@types/cors": "^2.8.19",
106
108
  "@types/diff": "^5.0.8",
107
109
  "@types/express": "^5.0.5",
108
- "@types/node": "^20.19.25",
110
+ "@types/node": "^20.19.27",
109
111
  "@types/sql.js": "^1.4.8",
110
112
  "@types/supertest": "^6.0.3",
111
113
  "c8": "^10.1.3",
112
114
  "supertest": "^7.1.4",
113
- "tsx": "^4.21.0"
115
+ "tsx": "^4.21.0",
116
+ "typescript": "^5.9.3"
114
117
  }
115
118
  }
@@ -1,24 +0,0 @@
1
- /**
2
- * Application Agent: Documentation Agent
3
- * Generates and maintains documentation (README, API docs)
4
- */
5
- import type { IAIService } from '../../domain/interfaces/ai-service.interface.js';
6
- import type { MemoryStreamService } from '../../infrastructure/storage/memory-stream-service.js';
7
- import type { IAgent } from '../../domain/interfaces/agent.interface.js';
8
- import type { DocumentationRequest, DocumentationResponse } from '../../domain/entities/documentation.js';
9
- export declare class DocumentationAgent implements IAgent<DocumentationRequest, DocumentationResponse> {
10
- private aiService;
11
- private memoryStream?;
12
- private cwd;
13
- name: string;
14
- type: "non-engineering";
15
- constructor(aiService: IAIService, memoryStream?: MemoryStreamService | undefined, cwd?: string);
16
- execute(request: DocumentationRequest): Promise<DocumentationResponse>;
17
- private generateREADME;
18
- private generateAPIDocs;
19
- private analyzeFolderStructure;
20
- private findSourceFiles;
21
- private buildReadmePrompt;
22
- private buildAPIDocsContent;
23
- }
24
- //# sourceMappingURL=documentation-agent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"documentation-agent.d.ts","sourceRoot":"","sources":["../../../src/application/agents/documentation-agent.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAC;AAClF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uDAAuD,CAAC;AACjG,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4CAA4C,CAAC;AACzE,OAAO,KAAK,EACV,oBAAoB,EACpB,qBAAqB,EACtB,MAAM,wCAAwC,CAAC;AAOhD,qBAAa,kBAAmB,YAAW,MAAM,CAAC,oBAAoB,EAAE,qBAAqB,CAAC;IAK1F,OAAO,CAAC,SAAS;IACjB,OAAO,CAAC,YAAY,CAAC;IACrB,OAAO,CAAC,GAAG;IANb,IAAI,SAAyB;IAC7B,IAAI,EAAG,iBAAiB,CAAU;gBAGxB,SAAS,EAAE,UAAU,EACrB,YAAY,CAAC,EAAE,mBAAmB,YAAA,EAClC,GAAG,GAAE,MAAsB;IAG/B,OAAO,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,qBAAqB,CAAC;YAuD9D,cAAc;YA2Gd,eAAe;IAgG7B,OAAO,CAAC,sBAAsB;IAwC9B,OAAO,CAAC,eAAe;IA8BvB,OAAO,CAAC,iBAAiB;YA2BX,mBAAmB;CA6DlC"}
@@ -1,399 +0,0 @@
1
- /**
2
- * Application Agent: Documentation Agent
3
- * Generates and maintains documentation (README, API docs)
4
- */
5
- import { parseFile } from '../../ast-parser.js';
6
- import { readFileSync, writeFileSync, existsSync, mkdirSync, readdirSync } from 'fs';
7
- import { join, relative, resolve } from 'path';
8
- import { createFile } from '../../tools/edit.js';
9
- export class DocumentationAgent {
10
- aiService;
11
- memoryStream;
12
- cwd;
13
- name = 'documentation-agent';
14
- type = 'non-engineering';
15
- constructor(aiService, memoryStream, cwd = process.cwd()) {
16
- this.aiService = aiService;
17
- this.memoryStream = memoryStream;
18
- this.cwd = cwd;
19
- }
20
- async execute(request) {
21
- const errors = [];
22
- const documents = [];
23
- let filesAnalyzed = 0;
24
- let symbolsDocumented = 0;
25
- let linesGenerated = 0;
26
- try {
27
- if (request.type === 'readme' || request.type === 'all') {
28
- const readmeResult = await this.generateREADME(request);
29
- if (readmeResult.success) {
30
- documents.push(...readmeResult.documents);
31
- filesAnalyzed += readmeResult.stats?.filesAnalyzed || 0;
32
- linesGenerated += readmeResult.stats?.linesGenerated || 0;
33
- }
34
- else {
35
- errors.push(...(readmeResult.errors || []));
36
- }
37
- }
38
- if (request.type === 'api' || request.type === 'all') {
39
- const apiResult = await this.generateAPIDocs(request);
40
- if (apiResult.success) {
41
- documents.push(...apiResult.documents);
42
- filesAnalyzed += apiResult.stats?.filesAnalyzed || 0;
43
- symbolsDocumented += apiResult.stats?.symbolsDocumented || 0;
44
- linesGenerated += apiResult.stats?.linesGenerated || 0;
45
- }
46
- else {
47
- errors.push(...(apiResult.errors || []));
48
- }
49
- }
50
- return {
51
- success: errors.length === 0,
52
- documents,
53
- stats: {
54
- filesAnalyzed,
55
- symbolsDocumented,
56
- linesGenerated,
57
- },
58
- errors: errors.length > 0 ? errors : undefined,
59
- };
60
- }
61
- catch (error) {
62
- return {
63
- success: false,
64
- documents,
65
- stats: {
66
- filesAnalyzed,
67
- symbolsDocumented,
68
- linesGenerated,
69
- },
70
- errors: [error instanceof Error ? error.message : String(error)],
71
- };
72
- }
73
- }
74
- async generateREADME(request) {
75
- const errors = [];
76
- const outputPath = request.options?.outputPath || 'README.md';
77
- const fullPath = resolve(this.cwd, outputPath);
78
- const updateExisting = request.options?.updateExisting || false;
79
- // Check if README exists and updateExisting is false
80
- if (existsSync(fullPath) && !updateExisting) {
81
- errors.push(`README.md already exists at ${outputPath}. Use updateExisting option to update.`);
82
- return {
83
- success: false,
84
- documents: [],
85
- errors,
86
- };
87
- }
88
- try {
89
- // Read package.json if exists
90
- const packageJsonPath = join(this.cwd, 'package.json');
91
- let packageInfo = null;
92
- if (existsSync(packageJsonPath)) {
93
- try {
94
- packageInfo = JSON.parse(readFileSync(packageJsonPath, 'utf-8'));
95
- }
96
- catch (e) {
97
- errors.push(`Failed to parse package.json: ${e instanceof Error ? e.message : String(e)}`);
98
- }
99
- }
100
- // Analyze folder structure
101
- const folderStructure = this.analyzeFolderStructure(this.cwd);
102
- // Generate README content using AI
103
- const context = [];
104
- if (packageInfo) {
105
- context.push({
106
- filepath: 'package.json',
107
- content: JSON.stringify(packageInfo, null, 2),
108
- lineStart: 1,
109
- lineEnd: Object.keys(packageInfo).length,
110
- score: 1.0,
111
- metadata: {
112
- language: 'json',
113
- },
114
- });
115
- }
116
- const readmePrompt = this.buildReadmePrompt(packageInfo, folderStructure);
117
- const readmeContent = await this.aiService.chat(readmePrompt, context);
118
- // Write README - use writeFileSync directly when updating, createFile for new files
119
- try {
120
- if (updateExisting && existsSync(fullPath)) {
121
- // Overwrite existing file directly
122
- writeFileSync(fullPath, readmeContent, 'utf-8');
123
- }
124
- else {
125
- // Create new file using createFile (which handles directory creation)
126
- const writeResult = createFile(outputPath, readmeContent, {
127
- cwd: this.cwd,
128
- createIfNotExists: true, // Allow overwrite if file exists
129
- });
130
- if (!writeResult.success) {
131
- errors.push(writeResult.error || 'Failed to write README.md');
132
- return {
133
- success: false,
134
- documents: [],
135
- errors,
136
- };
137
- }
138
- }
139
- }
140
- catch (writeError) {
141
- errors.push(`Failed to write README.md: ${writeError instanceof Error ? writeError.message : String(writeError)}`);
142
- return {
143
- success: false,
144
- documents: [],
145
- errors,
146
- };
147
- }
148
- const lines = readmeContent.split('\n').length;
149
- return {
150
- success: true,
151
- documents: [
152
- {
153
- path: outputPath,
154
- type: 'readme',
155
- contentPreview: readmeContent.substring(0, 200),
156
- },
157
- ],
158
- stats: {
159
- filesAnalyzed: 1, // package.json
160
- symbolsDocumented: 0,
161
- linesGenerated: lines,
162
- },
163
- };
164
- }
165
- catch (error) {
166
- errors.push(error instanceof Error ? error.message : String(error));
167
- return {
168
- success: false,
169
- documents: [],
170
- errors,
171
- };
172
- }
173
- }
174
- async generateAPIDocs(request) {
175
- const errors = [];
176
- const targetDir = request.target || 'src';
177
- const targetPath = resolve(this.cwd, targetDir);
178
- if (!existsSync(targetPath)) {
179
- errors.push(`Target directory not found: ${targetDir}`);
180
- return {
181
- success: false,
182
- documents: [],
183
- errors,
184
- };
185
- }
186
- try {
187
- // Find all TypeScript/JavaScript files
188
- const sourceFiles = this.findSourceFiles(targetPath);
189
- let filesAnalyzed = sourceFiles.length;
190
- // Extract exported symbols from each file
191
- const exportedSymbols = [];
192
- for (const file of sourceFiles) {
193
- const analysis = parseFile(file);
194
- if (analysis) {
195
- const exported = analysis.symbols.filter((s) => s.isExported);
196
- exportedSymbols.push(...exported.map((s) => ({
197
- ...s,
198
- filepath: relative(this.cwd, file),
199
- })));
200
- }
201
- }
202
- let symbolsDocumented = exportedSymbols.length;
203
- if (exportedSymbols.length === 0) {
204
- errors.push('No exported symbols found in target directory');
205
- return {
206
- success: false,
207
- documents: [],
208
- stats: {
209
- filesAnalyzed,
210
- symbolsDocumented: 0,
211
- linesGenerated: 0,
212
- },
213
- errors,
214
- };
215
- }
216
- // Generate API documentation content
217
- const apiContent = await this.buildAPIDocsContent(exportedSymbols);
218
- // Write API docs
219
- const outputDir = join(this.cwd, 'docs');
220
- if (!existsSync(outputDir)) {
221
- mkdirSync(outputDir, { recursive: true });
222
- }
223
- const outputPath = join(outputDir, 'api.md');
224
- writeFileSync(outputPath, apiContent, 'utf-8');
225
- const lines = apiContent.split('\n').length;
226
- return {
227
- success: true,
228
- documents: [
229
- {
230
- path: relative(this.cwd, outputPath),
231
- type: 'api',
232
- contentPreview: apiContent.substring(0, 200),
233
- },
234
- ],
235
- stats: {
236
- filesAnalyzed,
237
- symbolsDocumented,
238
- linesGenerated: lines,
239
- },
240
- };
241
- }
242
- catch (error) {
243
- errors.push(error instanceof Error ? error.message : String(error));
244
- return {
245
- success: false,
246
- documents: [],
247
- stats: {
248
- filesAnalyzed: 0,
249
- symbolsDocumented: 0,
250
- linesGenerated: 0,
251
- },
252
- errors,
253
- };
254
- }
255
- }
256
- analyzeFolderStructure(root, maxDepth = 3) {
257
- const structure = [];
258
- const ignoreDirs = new Set([
259
- 'node_modules',
260
- '.git',
261
- 'dist',
262
- 'build',
263
- '.next',
264
- '.cache',
265
- 'coverage',
266
- '.vscode',
267
- '.idea',
268
- ]);
269
- function walkDir(dir, depth, prefix = '') {
270
- if (depth > maxDepth)
271
- return;
272
- try {
273
- const entries = readdirSync(dir, { withFileTypes: true })
274
- .filter((entry) => !ignoreDirs.has(entry.name) && !entry.name.startsWith('.'))
275
- .slice(0, 20); // Limit to first 20 entries per directory
276
- for (const entry of entries) {
277
- const fullPath = join(dir, entry.name);
278
- const relPath = relative(root, fullPath);
279
- structure.push(relPath);
280
- if (entry.isDirectory() && depth < maxDepth) {
281
- walkDir(fullPath, depth + 1, prefix + ' ');
282
- }
283
- }
284
- }
285
- catch (error) {
286
- // Ignore permission errors
287
- }
288
- }
289
- walkDir(root, 0);
290
- return structure.slice(0, 50); // Limit total entries
291
- }
292
- findSourceFiles(dir) {
293
- const files = [];
294
- const ignoreDirs = new Set(['node_modules', '.git', 'dist', 'build', '.next', '.cache']);
295
- function walkDir(currentDir) {
296
- try {
297
- const entries = readdirSync(currentDir, { withFileTypes: true });
298
- for (const entry of entries) {
299
- const fullPath = join(currentDir, entry.name);
300
- if (entry.isDirectory()) {
301
- if (!ignoreDirs.has(entry.name) && !entry.name.startsWith('.')) {
302
- walkDir(fullPath);
303
- }
304
- }
305
- else if (['.ts', '.tsx', '.js', '.jsx'].some((ext) => entry.name.endsWith(ext))) {
306
- files.push(fullPath);
307
- }
308
- }
309
- }
310
- catch (error) {
311
- // Ignore permission errors
312
- }
313
- }
314
- walkDir(dir);
315
- return files;
316
- }
317
- buildReadmePrompt(packageInfo, folderStructure) {
318
- const projectName = packageInfo?.name || 'Project';
319
- const description = packageInfo?.description || '';
320
- const scripts = packageInfo?.scripts ? Object.keys(packageInfo.scripts) : [];
321
- return `Generate a professional README.md for this project:
322
-
323
- Project Name: ${projectName}
324
- ${description ? `Description: ${description}` : ''}
325
-
326
- ${scripts.length > 0 ? `Available Scripts: ${scripts.join(', ')}` : ''}
327
-
328
- Project Structure:
329
- ${folderStructure.slice(0, 30).map((f) => `- ${f}`).join('\n')}
330
-
331
- Create a comprehensive README with:
332
- 1. Project title and description
333
- 2. Features (if applicable)
334
- 3. Installation instructions
335
- 4. Usage examples
336
- 5. Project structure overview
337
- 6. Contributing guidelines (if applicable)
338
- 7. License information (if applicable)
339
-
340
- Format as markdown. Make it professional and helpful for new users.`;
341
- }
342
- async buildAPIDocsContent(symbols) {
343
- // Group symbols by file
344
- const symbolsByFile = new Map();
345
- for (const symbol of symbols) {
346
- if (!symbolsByFile.has(symbol.filepath)) {
347
- symbolsByFile.set(symbol.filepath, []);
348
- }
349
- symbolsByFile.get(symbol.filepath).push(symbol);
350
- }
351
- // Build structured content for AI generation
352
- const symbolDescriptions = Array.from(symbolsByFile.entries())
353
- .map(([filepath, fileSymbols]) => {
354
- return `## ${filepath}\n\n${fileSymbols
355
- .map((s) => {
356
- const sig = s.signature || s.name;
357
- const params = s.parameters
358
- ? `(${s.parameters.map((p) => `${p.name}: ${p.type}`).join(', ')})`
359
- : '';
360
- const ret = s.returnType ? `: ${s.returnType}` : '';
361
- return `- **${s.name}** (${s.kind})\n - Signature: \`${sig}${params}${ret}\`\n - Location: Line ${s.line}${s.docComment ? `\n - Doc: ${s.docComment.substring(0, 100)}` : ''}`;
362
- })
363
- .join('\n\n')}`;
364
- })
365
- .join('\n\n');
366
- const prompt = `Generate comprehensive API documentation in Markdown format for the following exported symbols:
367
-
368
- ${symbolDescriptions}
369
-
370
- For each symbol, provide:
371
- 1. Function/class/type name
372
- 2. Description (generate based on name and signature)
373
- 3. Parameters (if function)
374
- 4. Return type
375
- 5. Usage example (if applicable)
376
-
377
- Format as a well-structured Markdown document with clear sections for each file.`;
378
- // Create minimal context chunks for AI
379
- const context = symbols.slice(0, 10).map((s) => ({
380
- filepath: s.filepath,
381
- content: `${s.name}${s.signature || ''}`,
382
- lineStart: s.line,
383
- lineEnd: s.line,
384
- score: 1.0,
385
- metadata: {
386
- language: 'typescript',
387
- },
388
- }));
389
- const apiDocs = await this.aiService.chat(prompt, context);
390
- // Add header
391
- return `# API Documentation
392
-
393
- Generated automatically from exported symbols.
394
-
395
- ${apiDocs}
396
- `;
397
- }
398
- }
399
- //# sourceMappingURL=documentation-agent.js.map
@@ -1 +0,0 @@
1
- {"version":3,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AE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;YAC5D,QAAQ,EAAE,CAAC,CAAC,QAAQ;YACpB,OAAO,EAAE,GAAG,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,SAAS,IAAI,EAAE,EAAE;YACxC,SAAS,EAAE,CAAC,CAAC,IAAI;YACjB,OAAO,EAAE,CAAC,CAAC,IAAI;YACf,KAAK,EAAE,GAAG;YACV,QAAQ,EAAE;gBACR,QAAQ,EAAE,YAAY;aACvB;SACF,CAAC,CAAC,CAAC;QAEJ,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAE3D,aAAa;QACb,OAAO;;;;EAIT,OAAO;CACR,CAAC;IACA,CAAC;CACF"}
@@ -1,21 +0,0 @@
1
- /**
2
- * Application Agent: Product Requirements Agent
3
- * Generates product requirements documents (PRD) and feature specifications
4
- */
5
- import type { IAIService } from '../../domain/interfaces/ai-service.interface.js';
6
- import type { MemoryStreamService } from '../../infrastructure/storage/memory-stream-service.js';
7
- import type { IAgent } from '../../domain/interfaces/agent.interface.js';
8
- import type { ProductRequirementsRequest, ProductRequirementsResponse } from '../../domain/entities/product-requirements.js';
9
- export declare class ProductRequirementsAgent implements IAgent<ProductRequirementsRequest, ProductRequirementsResponse> {
10
- private aiService;
11
- private memoryStream?;
12
- private cwd;
13
- name: string;
14
- type: "non-engineering";
15
- constructor(aiService: IAIService, memoryStream?: MemoryStreamService | undefined, cwd?: string);
16
- execute(request: ProductRequirementsRequest): Promise<ProductRequirementsResponse>;
17
- private buildPRDPrompt;
18
- private parseStructuredData;
19
- private generateTechnicalSpec;
20
- }
21
- //# sourceMappingURL=product-requirements-agent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"product-requirements-agent.d.ts","sourceRoot":"","sources":["../../../src/application/agents/product-requirements-agent.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAC;AAClF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uDAAuD,CAAC;AACjG,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4CAA4C,CAAC;AACzE,OAAO,KAAK,EACV,0BAA0B,EAC1B,2BAA2B,EAG5B,MAAM,+CAA+C,CAAC;AAIvD,qBAAa,wBAAyB,YAAW,MAAM,CAAC,0BAA0B,EAAE,2BAA2B,CAAC;IAK5G,OAAO,CAAC,SAAS;IACjB,OAAO,CAAC,YAAY,CAAC;IACrB,OAAO,CAAC,GAAG;IANb,IAAI,SAAgC;IACpC,IAAI,EAAG,iBAAiB,CAAU;gBAGxB,SAAS,EAAE,UAAU,EACrB,YAAY,CAAC,EAAE,mBAAmB,YAAA,EAClC,GAAG,GAAE,MAAsB;IAG/B,OAAO,CAAC,OAAO,EAAE,0BAA0B,GAAG,OAAO,CAAC,2BAA2B,CAAC;IA8GxF,OAAO,CAAC,cAAc;IAsCtB,OAAO,CAAC,mBAAmB;YA2Fb,qBAAqB;CAwBpC"}