codehere 0.3.0 → 0.5.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (389) hide show
  1. package/README.md +230 -42
  2. package/dist/application/agents/documentation-agent.d.ts +24 -0
  3. package/dist/application/agents/documentation-agent.d.ts.map +1 -0
  4. package/dist/application/agents/documentation-agent.js +399 -0
  5. package/dist/application/agents/documentation-agent.js.map +1 -0
  6. package/dist/application/agents/execution-agent.d.ts +11 -0
  7. package/dist/application/agents/execution-agent.d.ts.map +1 -1
  8. package/dist/application/agents/execution-agent.js +289 -80
  9. package/dist/application/agents/execution-agent.js.map +1 -1
  10. package/dist/application/agents/multi-agent-orchestrator.d.ts +3 -0
  11. package/dist/application/agents/multi-agent-orchestrator.d.ts.map +1 -1
  12. package/dist/application/agents/multi-agent-orchestrator.js +86 -0
  13. package/dist/application/agents/multi-agent-orchestrator.js.map +1 -1
  14. package/dist/application/agents/planning-agent.d.ts +3 -0
  15. package/dist/application/agents/planning-agent.d.ts.map +1 -1
  16. package/dist/application/agents/planning-agent.js +146 -70
  17. package/dist/application/agents/planning-agent.js.map +1 -1
  18. package/dist/application/agents/product-requirements-agent.d.ts +21 -0
  19. package/dist/application/agents/product-requirements-agent.d.ts.map +1 -0
  20. package/dist/application/agents/product-requirements-agent.js +247 -0
  21. package/dist/application/agents/product-requirements-agent.js.map +1 -0
  22. package/dist/application/agents/validation-agent.d.ts +5 -1
  23. package/dist/application/agents/validation-agent.d.ts.map +1 -1
  24. package/dist/application/agents/validation-agent.js +156 -21
  25. package/dist/application/agents/validation-agent.js.map +1 -1
  26. package/dist/application/services/dependency-container.d.ts +46 -2
  27. package/dist/application/services/dependency-container.d.ts.map +1 -1
  28. package/dist/application/services/dependency-container.js +177 -7
  29. package/dist/application/services/dependency-container.js.map +1 -1
  30. package/dist/application/services/intelligent-router.d.ts +13 -0
  31. package/dist/application/services/intelligent-router.d.ts.map +1 -1
  32. package/dist/application/services/intelligent-router.js +306 -90
  33. package/dist/application/services/intelligent-router.js.map +1 -1
  34. package/dist/application/use-cases/ask-question-use-case.d.ts +19 -0
  35. package/dist/application/use-cases/ask-question-use-case.d.ts.map +1 -1
  36. package/dist/application/use-cases/ask-question-use-case.js +125 -46
  37. package/dist/application/use-cases/ask-question-use-case.js.map +1 -1
  38. package/dist/application/use-cases/edit-file-use-case.d.ts.map +1 -1
  39. package/dist/application/use-cases/edit-file-use-case.js +16 -1
  40. package/dist/application/use-cases/edit-file-use-case.js.map +1 -1
  41. package/dist/domain/entities/documentation.d.ts +35 -0
  42. package/dist/domain/entities/documentation.d.ts.map +1 -0
  43. package/dist/domain/entities/documentation.js +6 -0
  44. package/dist/domain/entities/documentation.js.map +1 -0
  45. package/dist/domain/entities/product-requirements.d.ts +50 -0
  46. package/dist/domain/entities/product-requirements.d.ts.map +1 -0
  47. package/dist/domain/entities/product-requirements.js +6 -0
  48. package/dist/domain/entities/product-requirements.js.map +1 -0
  49. package/dist/domain/entities/task.d.ts +152 -0
  50. package/dist/domain/entities/task.d.ts.map +1 -0
  51. package/dist/domain/entities/task.js +61 -0
  52. package/dist/domain/entities/task.js.map +1 -0
  53. package/dist/domain/errors/embeddings-not-found-error.d.ts +9 -0
  54. package/dist/domain/errors/embeddings-not-found-error.d.ts.map +1 -0
  55. package/dist/domain/errors/embeddings-not-found-error.js +13 -0
  56. package/dist/domain/errors/embeddings-not-found-error.js.map +1 -0
  57. package/dist/domain/interfaces/agent.interface.d.ts +15 -0
  58. package/dist/domain/interfaces/agent.interface.d.ts.map +1 -0
  59. package/dist/domain/interfaces/agent.interface.js +6 -0
  60. package/dist/domain/interfaces/agent.interface.js.map +1 -0
  61. package/dist/domain/interfaces/embedding-repository.interface.d.ts +5 -0
  62. package/dist/domain/interfaces/embedding-repository.interface.d.ts.map +1 -1
  63. package/dist/domain/services/environment-mode-manager.d.ts +12 -0
  64. package/dist/domain/services/environment-mode-manager.d.ts.map +1 -0
  65. package/dist/domain/services/environment-mode-manager.js +22 -0
  66. package/dist/domain/services/environment-mode-manager.js.map +1 -0
  67. package/dist/domain/services/risk-tier-detector.d.ts +17 -0
  68. package/dist/domain/services/risk-tier-detector.d.ts.map +1 -0
  69. package/dist/domain/services/risk-tier-detector.js +78 -0
  70. package/dist/domain/services/risk-tier-detector.js.map +1 -0
  71. package/dist/embed.d.ts.map +1 -1
  72. package/dist/embed.js +18 -8
  73. package/dist/embed.js.map +1 -1
  74. package/dist/formatter.d.ts.map +1 -1
  75. package/dist/formatter.js +10 -3
  76. package/dist/formatter.js.map +1 -1
  77. package/dist/index.js +398 -164
  78. package/dist/index.js.map +1 -1
  79. package/dist/infrastructure/ai/cohere-ai-service.d.ts.map +1 -1
  80. package/dist/infrastructure/ai/cohere-ai-service.js +18 -5
  81. package/dist/infrastructure/ai/cohere-ai-service.js.map +1 -1
  82. package/dist/infrastructure/ai/fake-ai-service.d.ts +22 -0
  83. package/dist/infrastructure/ai/fake-ai-service.d.ts.map +1 -0
  84. package/dist/infrastructure/ai/fake-ai-service.js +59 -0
  85. package/dist/infrastructure/ai/fake-ai-service.js.map +1 -0
  86. package/dist/infrastructure/ai/provider-ai-service.d.ts +59 -0
  87. package/dist/infrastructure/ai/provider-ai-service.d.ts.map +1 -0
  88. package/dist/infrastructure/ai/provider-ai-service.js +477 -0
  89. package/dist/infrastructure/ai/provider-ai-service.js.map +1 -0
  90. package/dist/infrastructure/cache/embedding-cache.d.ts +13 -1
  91. package/dist/infrastructure/cache/embedding-cache.d.ts.map +1 -1
  92. package/dist/infrastructure/cache/embedding-cache.js +80 -9
  93. package/dist/infrastructure/cache/embedding-cache.js.map +1 -1
  94. package/dist/infrastructure/cache/query-result-cache.d.ts +14 -55
  95. package/dist/infrastructure/cache/query-result-cache.d.ts.map +1 -1
  96. package/dist/infrastructure/cache/query-result-cache.js +40 -112
  97. package/dist/infrastructure/cache/query-result-cache.js.map +1 -1
  98. package/dist/infrastructure/cache/response-cache.d.ts +18 -0
  99. package/dist/infrastructure/cache/response-cache.d.ts.map +1 -0
  100. package/dist/infrastructure/cache/response-cache.js +48 -0
  101. package/dist/infrastructure/cache/response-cache.js.map +1 -0
  102. package/dist/infrastructure/cache/security-scan-cache.d.ts +8 -49
  103. package/dist/infrastructure/cache/security-scan-cache.d.ts.map +1 -1
  104. package/dist/infrastructure/cache/security-scan-cache.js +25 -102
  105. package/dist/infrastructure/cache/security-scan-cache.js.map +1 -1
  106. package/dist/infrastructure/completion/bash-completion.d.ts +2 -3
  107. package/dist/infrastructure/completion/bash-completion.d.ts.map +1 -1
  108. package/dist/infrastructure/completion/bash-completion.js +11 -87
  109. package/dist/infrastructure/completion/bash-completion.js.map +1 -1
  110. package/dist/infrastructure/completion/fish-completion.d.ts +2 -3
  111. package/dist/infrastructure/completion/fish-completion.d.ts.map +1 -1
  112. package/dist/infrastructure/completion/fish-completion.js +15 -58
  113. package/dist/infrastructure/completion/fish-completion.js.map +1 -1
  114. package/dist/infrastructure/completion/zsh-completion.d.ts +2 -3
  115. package/dist/infrastructure/completion/zsh-completion.d.ts.map +1 -1
  116. package/dist/infrastructure/completion/zsh-completion.js +18 -73
  117. package/dist/infrastructure/completion/zsh-completion.js.map +1 -1
  118. package/dist/infrastructure/config/config-manager.js +2 -2
  119. package/dist/infrastructure/config/config-manager.js.map +1 -1
  120. package/dist/infrastructure/context/conversation-context.d.ts +54 -0
  121. package/dist/infrastructure/context/conversation-context.d.ts.map +1 -0
  122. package/dist/infrastructure/context/conversation-context.js +128 -0
  123. package/dist/infrastructure/context/conversation-context.js.map +1 -0
  124. package/dist/infrastructure/context/session-manager.d.ts +42 -0
  125. package/dist/infrastructure/context/session-manager.d.ts.map +1 -0
  126. package/dist/infrastructure/context/session-manager.js +94 -0
  127. package/dist/infrastructure/context/session-manager.js.map +1 -0
  128. package/dist/infrastructure/cost/cost-tracker.d.ts +1 -0
  129. package/dist/infrastructure/cost/cost-tracker.d.ts.map +1 -1
  130. package/dist/infrastructure/cost/cost-tracker.js +12 -5
  131. package/dist/infrastructure/cost/cost-tracker.js.map +1 -1
  132. package/dist/infrastructure/governance/nist-ai-rmf.d.ts +6 -8
  133. package/dist/infrastructure/governance/nist-ai-rmf.d.ts.map +1 -1
  134. package/dist/infrastructure/governance/nist-ai-rmf.js +6 -8
  135. package/dist/infrastructure/governance/nist-ai-rmf.js.map +1 -1
  136. package/dist/infrastructure/governance/policy-as-code.d.ts +6 -8
  137. package/dist/infrastructure/governance/policy-as-code.d.ts.map +1 -1
  138. package/dist/infrastructure/governance/policy-as-code.js +6 -8
  139. package/dist/infrastructure/governance/policy-as-code.js.map +1 -1
  140. package/dist/infrastructure/governance/prompt-to-code-lineage.d.ts +7 -9
  141. package/dist/infrastructure/governance/prompt-to-code-lineage.d.ts.map +1 -1
  142. package/dist/infrastructure/governance/prompt-to-code-lineage.js +7 -9
  143. package/dist/infrastructure/governance/prompt-to-code-lineage.js.map +1 -1
  144. package/dist/infrastructure/providers/cohere-provider.d.ts +39 -0
  145. package/dist/infrastructure/providers/cohere-provider.d.ts.map +1 -0
  146. package/dist/infrastructure/providers/cohere-provider.js +444 -0
  147. package/dist/infrastructure/providers/cohere-provider.js.map +1 -0
  148. package/dist/infrastructure/providers/fake-provider.d.ts +43 -0
  149. package/dist/infrastructure/providers/fake-provider.d.ts.map +1 -0
  150. package/dist/infrastructure/providers/fake-provider.js +130 -0
  151. package/dist/infrastructure/providers/fake-provider.js.map +1 -0
  152. package/dist/infrastructure/providers/local-llm-provider.d.ts +49 -0
  153. package/dist/infrastructure/providers/local-llm-provider.d.ts.map +1 -0
  154. package/dist/infrastructure/providers/local-llm-provider.js +330 -0
  155. package/dist/infrastructure/providers/local-llm-provider.js.map +1 -0
  156. package/dist/infrastructure/providers/model-config.types.d.ts +70 -0
  157. package/dist/infrastructure/providers/model-config.types.d.ts.map +1 -0
  158. package/dist/infrastructure/providers/model-config.types.js +9 -0
  159. package/dist/infrastructure/providers/model-config.types.js.map +1 -0
  160. package/dist/infrastructure/providers/model-provider.interface.d.ts +113 -0
  161. package/dist/infrastructure/providers/model-provider.interface.d.ts.map +1 -0
  162. package/dist/infrastructure/providers/model-provider.interface.js +8 -0
  163. package/dist/infrastructure/providers/model-provider.interface.js.map +1 -0
  164. package/dist/infrastructure/providers/openai-provider.d.ts +38 -0
  165. package/dist/infrastructure/providers/openai-provider.d.ts.map +1 -0
  166. package/dist/infrastructure/providers/openai-provider.js +413 -0
  167. package/dist/infrastructure/providers/openai-provider.js.map +1 -0
  168. package/dist/infrastructure/providers/openrouter-provider.d.ts +42 -0
  169. package/dist/infrastructure/providers/openrouter-provider.d.ts.map +1 -0
  170. package/dist/infrastructure/providers/openrouter-provider.js +399 -0
  171. package/dist/infrastructure/providers/openrouter-provider.js.map +1 -0
  172. package/dist/infrastructure/providers/operation-provider-resolver.d.ts +48 -0
  173. package/dist/infrastructure/providers/operation-provider-resolver.d.ts.map +1 -0
  174. package/dist/infrastructure/providers/operation-provider-resolver.js +105 -0
  175. package/dist/infrastructure/providers/operation-provider-resolver.js.map +1 -0
  176. package/dist/infrastructure/providers/provider-config-loader.d.ts +37 -0
  177. package/dist/infrastructure/providers/provider-config-loader.d.ts.map +1 -0
  178. package/dist/infrastructure/providers/provider-config-loader.js +120 -0
  179. package/dist/infrastructure/providers/provider-config-loader.js.map +1 -0
  180. package/dist/infrastructure/providers/provider-registry.d.ts +53 -0
  181. package/dist/infrastructure/providers/provider-registry.d.ts.map +1 -0
  182. package/dist/infrastructure/providers/provider-registry.js +88 -0
  183. package/dist/infrastructure/providers/provider-registry.js.map +1 -0
  184. package/dist/infrastructure/serialization/toon-serializer.d.ts +45 -0
  185. package/dist/infrastructure/serialization/toon-serializer.d.ts.map +1 -0
  186. package/dist/infrastructure/serialization/toon-serializer.js +119 -0
  187. package/dist/infrastructure/serialization/toon-serializer.js.map +1 -0
  188. package/dist/infrastructure/storage/embeddings-path.d.ts +18 -0
  189. package/dist/infrastructure/storage/embeddings-path.d.ts.map +1 -0
  190. package/dist/infrastructure/storage/embeddings-path.js +37 -0
  191. package/dist/infrastructure/storage/embeddings-path.js.map +1 -0
  192. package/dist/infrastructure/storage/plan-repository.d.ts +2 -0
  193. package/dist/infrastructure/storage/plan-repository.d.ts.map +1 -1
  194. package/dist/infrastructure/storage/plan-repository.js +36 -73
  195. package/dist/infrastructure/storage/plan-repository.js.map +1 -1
  196. package/dist/infrastructure/storage/sqlite-embedding-repository.d.ts +10 -1
  197. package/dist/infrastructure/storage/sqlite-embedding-repository.d.ts.map +1 -1
  198. package/dist/infrastructure/storage/sqlite-embedding-repository.js +37 -3
  199. package/dist/infrastructure/storage/sqlite-embedding-repository.js.map +1 -1
  200. package/dist/infrastructure/storage/task-helpers.d.ts +69 -0
  201. package/dist/infrastructure/storage/task-helpers.d.ts.map +1 -0
  202. package/dist/infrastructure/storage/task-helpers.js +197 -0
  203. package/dist/infrastructure/storage/task-helpers.js.map +1 -0
  204. package/dist/infrastructure/storage/task-repository.d.ts +67 -0
  205. package/dist/infrastructure/storage/task-repository.d.ts.map +1 -0
  206. package/dist/infrastructure/storage/task-repository.js +205 -0
  207. package/dist/infrastructure/storage/task-repository.js.map +1 -0
  208. package/dist/infrastructure/ux/bi-directional-learning.d.ts +22 -0
  209. package/dist/infrastructure/ux/bi-directional-learning.d.ts.map +1 -1
  210. package/dist/infrastructure/ux/bi-directional-learning.js +144 -7
  211. package/dist/infrastructure/ux/bi-directional-learning.js.map +1 -1
  212. package/dist/infrastructure/ux/capability-boundaries.d.ts +22 -0
  213. package/dist/infrastructure/ux/capability-boundaries.d.ts.map +1 -0
  214. package/dist/infrastructure/ux/capability-boundaries.js +42 -0
  215. package/dist/infrastructure/ux/capability-boundaries.js.map +1 -0
  216. package/dist/infrastructure/ux/comprehensive-formatter.d.ts +21 -0
  217. package/dist/infrastructure/ux/comprehensive-formatter.d.ts.map +1 -0
  218. package/dist/infrastructure/ux/comprehensive-formatter.js +117 -0
  219. package/dist/infrastructure/ux/comprehensive-formatter.js.map +1 -0
  220. package/dist/infrastructure/ux/contextual-feature-discovery.d.ts +5 -18
  221. package/dist/infrastructure/ux/contextual-feature-discovery.d.ts.map +1 -1
  222. package/dist/infrastructure/ux/contextual-feature-discovery.js +5 -139
  223. package/dist/infrastructure/ux/contextual-feature-discovery.js.map +1 -1
  224. package/dist/infrastructure/ux/feature-discovery.d.ts +3 -33
  225. package/dist/infrastructure/ux/feature-discovery.d.ts.map +1 -1
  226. package/dist/infrastructure/ux/feature-discovery.js +5 -181
  227. package/dist/infrastructure/ux/feature-discovery.js.map +1 -1
  228. package/dist/infrastructure/ux/feedback-prompt.d.ts +26 -0
  229. package/dist/infrastructure/ux/feedback-prompt.d.ts.map +1 -0
  230. package/dist/infrastructure/ux/feedback-prompt.js +45 -0
  231. package/dist/infrastructure/ux/feedback-prompt.js.map +1 -0
  232. package/dist/infrastructure/ux/hitl-review-portal.d.ts.map +1 -1
  233. package/dist/infrastructure/ux/hitl-review-portal.js +4 -1
  234. package/dist/infrastructure/ux/hitl-review-portal.js.map +1 -1
  235. package/dist/infrastructure/ux/hitl-validation.d.ts +35 -0
  236. package/dist/infrastructure/ux/hitl-validation.d.ts.map +1 -1
  237. package/dist/infrastructure/ux/hitl-validation.js +86 -0
  238. package/dist/infrastructure/ux/hitl-validation.js.map +1 -1
  239. package/dist/infrastructure/ux/progress-indicator.d.ts +4 -5
  240. package/dist/infrastructure/ux/progress-indicator.d.ts.map +1 -1
  241. package/dist/infrastructure/ux/progress-indicator.js +35 -40
  242. package/dist/infrastructure/ux/progress-indicator.js.map +1 -1
  243. package/dist/infrastructure/ux/proportional-friction.d.ts +73 -0
  244. package/dist/infrastructure/ux/proportional-friction.d.ts.map +1 -0
  245. package/dist/infrastructure/ux/proportional-friction.js +200 -0
  246. package/dist/infrastructure/ux/proportional-friction.js.map +1 -0
  247. package/dist/infrastructure/ux/review-checkpoint.d.ts +3 -1
  248. package/dist/infrastructure/ux/review-checkpoint.d.ts.map +1 -1
  249. package/dist/infrastructure/ux/review-checkpoint.js +33 -80
  250. package/dist/infrastructure/ux/review-checkpoint.js.map +1 -1
  251. package/dist/infrastructure/ux/staged-feature-intro.d.ts +14 -39
  252. package/dist/infrastructure/ux/staged-feature-intro.d.ts.map +1 -1
  253. package/dist/infrastructure/ux/staged-feature-intro.js +12 -132
  254. package/dist/infrastructure/ux/staged-feature-intro.js.map +1 -1
  255. package/dist/infrastructure/ux/syntax-highlighter.d.ts +1 -2
  256. package/dist/infrastructure/ux/syntax-highlighter.d.ts.map +1 -1
  257. package/dist/infrastructure/ux/syntax-highlighter.js +67 -148
  258. package/dist/infrastructure/ux/syntax-highlighter.js.map +1 -1
  259. package/dist/infrastructure/validation/agent-feedback.d.ts +51 -0
  260. package/dist/infrastructure/validation/agent-feedback.d.ts.map +1 -0
  261. package/dist/infrastructure/validation/agent-feedback.js +55 -0
  262. package/dist/infrastructure/validation/agent-feedback.js.map +1 -0
  263. package/dist/infrastructure/validation/agent-validation-helper.d.ts +75 -0
  264. package/dist/infrastructure/validation/agent-validation-helper.d.ts.map +1 -0
  265. package/dist/infrastructure/validation/agent-validation-helper.js +137 -0
  266. package/dist/infrastructure/validation/agent-validation-helper.js.map +1 -0
  267. package/dist/infrastructure/validation/feedback-stats.d.ts +99 -0
  268. package/dist/infrastructure/validation/feedback-stats.d.ts.map +1 -0
  269. package/dist/infrastructure/validation/feedback-stats.js +173 -0
  270. package/dist/infrastructure/validation/feedback-stats.js.map +1 -0
  271. package/dist/infrastructure/validation/review-handler.d.ts +26 -0
  272. package/dist/infrastructure/validation/review-handler.d.ts.map +1 -0
  273. package/dist/infrastructure/validation/review-handler.js +40 -0
  274. package/dist/infrastructure/validation/review-handler.js.map +1 -0
  275. package/dist/infrastructure/validation/summary-aggregator.d.ts +45 -0
  276. package/dist/infrastructure/validation/summary-aggregator.d.ts.map +1 -0
  277. package/dist/infrastructure/validation/summary-aggregator.js +70 -0
  278. package/dist/infrastructure/validation/summary-aggregator.js.map +1 -0
  279. package/dist/infrastructure/validation/summary-extractor.d.ts +24 -0
  280. package/dist/infrastructure/validation/summary-extractor.d.ts.map +1 -0
  281. package/dist/infrastructure/validation/summary-extractor.js +45 -0
  282. package/dist/infrastructure/validation/summary-extractor.js.map +1 -0
  283. package/dist/infrastructure/validation/trace-summary.d.ts +45 -0
  284. package/dist/infrastructure/validation/trace-summary.d.ts.map +1 -0
  285. package/dist/infrastructure/validation/trace-summary.js +52 -0
  286. package/dist/infrastructure/validation/trace-summary.js.map +1 -0
  287. package/dist/infrastructure/validation/trust-config.d.ts +27 -0
  288. package/dist/infrastructure/validation/trust-config.d.ts.map +1 -0
  289. package/dist/infrastructure/validation/trust-config.js +113 -0
  290. package/dist/infrastructure/validation/trust-config.js.map +1 -0
  291. package/dist/infrastructure/xai/attention-visualizer.d.ts +6 -8
  292. package/dist/infrastructure/xai/attention-visualizer.d.ts.map +1 -1
  293. package/dist/infrastructure/xai/attention-visualizer.js +6 -8
  294. package/dist/infrastructure/xai/attention-visualizer.js.map +1 -1
  295. package/dist/infrastructure/xai/cot-visualizer.d.ts +6 -9
  296. package/dist/infrastructure/xai/cot-visualizer.d.ts.map +1 -1
  297. package/dist/infrastructure/xai/cot-visualizer.js +6 -9
  298. package/dist/infrastructure/xai/cot-visualizer.js.map +1 -1
  299. package/dist/infrastructure/xai/decision-tree-log.d.ts +6 -10
  300. package/dist/infrastructure/xai/decision-tree-log.d.ts.map +1 -1
  301. package/dist/infrastructure/xai/decision-tree-log.js +6 -10
  302. package/dist/infrastructure/xai/decision-tree-log.js.map +1 -1
  303. package/dist/infrastructure/xai/interactive-xai.d.ts +6 -8
  304. package/dist/infrastructure/xai/interactive-xai.d.ts.map +1 -1
  305. package/dist/infrastructure/xai/interactive-xai.js +6 -8
  306. package/dist/infrastructure/xai/interactive-xai.js.map +1 -1
  307. package/dist/infrastructure/xai/uncertainty-quantifier.d.ts +6 -9
  308. package/dist/infrastructure/xai/uncertainty-quantifier.d.ts.map +1 -1
  309. package/dist/infrastructure/xai/uncertainty-quantifier.js +6 -9
  310. package/dist/infrastructure/xai/uncertainty-quantifier.js.map +1 -1
  311. package/dist/monitoring.d.ts +1 -1
  312. package/dist/monitoring.d.ts.map +1 -1
  313. package/dist/monitoring.js +12 -9
  314. package/dist/monitoring.js.map +1 -1
  315. package/dist/parallel-processor.d.ts.map +1 -1
  316. package/dist/parallel-processor.js +124 -45
  317. package/dist/parallel-processor.js.map +1 -1
  318. package/dist/presentation/cli/commands/ask-command.d.ts.map +1 -1
  319. package/dist/presentation/cli/commands/ask-command.js +225 -86
  320. package/dist/presentation/cli/commands/ask-command.js.map +1 -1
  321. package/dist/presentation/cli/commands/config-command.d.ts.map +1 -1
  322. package/dist/presentation/cli/commands/config-command.js +8 -6
  323. package/dist/presentation/cli/commands/config-command.js.map +1 -1
  324. package/dist/presentation/cli/commands/docs-command.d.ts +14 -0
  325. package/dist/presentation/cli/commands/docs-command.d.ts.map +1 -0
  326. package/dist/presentation/cli/commands/docs-command.js +25 -0
  327. package/dist/presentation/cli/commands/docs-command.js.map +1 -0
  328. package/dist/presentation/cli/commands/fix-command.d.ts +10 -0
  329. package/dist/presentation/cli/commands/fix-command.d.ts.map +1 -0
  330. package/dist/presentation/cli/commands/fix-command.js +53 -0
  331. package/dist/presentation/cli/commands/fix-command.js.map +1 -0
  332. package/dist/presentation/cli/commands/help-command.d.ts.map +1 -1
  333. package/dist/presentation/cli/commands/help-command.js +2 -0
  334. package/dist/presentation/cli/commands/help-command.js.map +1 -1
  335. package/dist/presentation/cli/commands/models-command.d.ts +13 -0
  336. package/dist/presentation/cli/commands/models-command.d.ts.map +1 -0
  337. package/dist/presentation/cli/commands/models-command.js +194 -0
  338. package/dist/presentation/cli/commands/models-command.js.map +1 -0
  339. package/dist/presentation/cli/commands/orchestrate-command.d.ts +1 -0
  340. package/dist/presentation/cli/commands/orchestrate-command.d.ts.map +1 -1
  341. package/dist/presentation/cli/commands/orchestrate-command.js +68 -7
  342. package/dist/presentation/cli/commands/orchestrate-command.js.map +1 -1
  343. package/dist/presentation/cli/commands/plan-command.d.ts +1 -0
  344. package/dist/presentation/cli/commands/plan-command.d.ts.map +1 -1
  345. package/dist/presentation/cli/commands/plan-command.js +88 -8
  346. package/dist/presentation/cli/commands/plan-command.js.map +1 -1
  347. package/dist/presentation/cli/commands/product-command.d.ts +14 -0
  348. package/dist/presentation/cli/commands/product-command.d.ts.map +1 -0
  349. package/dist/presentation/cli/commands/product-command.js +22 -0
  350. package/dist/presentation/cli/commands/product-command.js.map +1 -0
  351. package/dist/presentation/cli/commands/react-command.d.ts.map +1 -1
  352. package/dist/presentation/cli/commands/react-command.js +3 -1
  353. package/dist/presentation/cli/commands/react-command.js.map +1 -1
  354. package/dist/presentation/cli/commands/review-command.d.ts +14 -0
  355. package/dist/presentation/cli/commands/review-command.d.ts.map +1 -0
  356. package/dist/presentation/cli/commands/review-command.js +154 -0
  357. package/dist/presentation/cli/commands/review-command.js.map +1 -0
  358. package/dist/presentation/cli/commands/run-command.d.ts +13 -0
  359. package/dist/presentation/cli/commands/run-command.d.ts.map +1 -0
  360. package/dist/presentation/cli/commands/run-command.js +188 -0
  361. package/dist/presentation/cli/commands/run-command.js.map +1 -0
  362. package/dist/presentation/cli/commands/setup-command.d.ts.map +1 -1
  363. package/dist/presentation/cli/commands/setup-command.js +15 -0
  364. package/dist/presentation/cli/commands/setup-command.js.map +1 -1
  365. package/dist/presentation/cli/commands/smart-command.d.ts +3 -1
  366. package/dist/presentation/cli/commands/smart-command.d.ts.map +1 -1
  367. package/dist/presentation/cli/commands/smart-command.js +92 -6
  368. package/dist/presentation/cli/commands/smart-command.js.map +1 -1
  369. package/dist/presentation/cli/commands/status-command.d.ts +14 -0
  370. package/dist/presentation/cli/commands/status-command.d.ts.map +1 -0
  371. package/dist/presentation/cli/commands/status-command.js +167 -0
  372. package/dist/presentation/cli/commands/status-command.js.map +1 -0
  373. package/dist/presentation/cli/commands/suggest-command.d.ts +11 -0
  374. package/dist/presentation/cli/commands/suggest-command.d.ts.map +1 -0
  375. package/dist/presentation/cli/commands/suggest-command.js +138 -0
  376. package/dist/presentation/cli/commands/suggest-command.js.map +1 -0
  377. package/dist/presentation/cli/error-display.d.ts.map +1 -1
  378. package/dist/presentation/cli/error-display.js +43 -0
  379. package/dist/presentation/cli/error-display.js.map +1 -1
  380. package/dist/search.d.ts.map +1 -1
  381. package/dist/search.js +6 -1
  382. package/dist/search.js.map +1 -1
  383. package/dist/session.js +19 -2
  384. package/dist/session.js.map +1 -1
  385. package/dist/ui.d.ts +6 -0
  386. package/dist/ui.d.ts.map +1 -1
  387. package/dist/ui.js +43 -6
  388. package/dist/ui.js.map +1 -1
  389. package/package.json +16 -3
@@ -1,68 +1,27 @@
1
1
  /**
2
- * Infrastructure: Query Result Cache
3
- * Caches search results (query + topK results) to avoid redundant searches
2
+ * Query Result Cache
3
+ * Caches search query results
4
4
  *
5
- * Performance optimization: Reduces search latency by ~80% for repeated queries
6
- * Cache invalidation: Automatically clears on codebase re-index
5
+ * Phase 1: v0.5.0-alpha.0
7
6
  */
8
7
  import type { CodeChunk } from '../../domain/entities/code-chunk.js';
9
- export declare class QueryResultCache {
8
+ declare class QueryResultCache {
10
9
  private cache;
11
- private maxSize;
12
- private ttl;
13
- private accessOrder;
14
- constructor(options?: {
15
- maxSize?: number;
16
- ttl?: number;
17
- });
18
- /**
19
- * Generate cache key from query and topK
20
- */
21
- private getCacheKey;
22
- /**
23
- * Get cached result if available and not expired
24
- */
25
- get(query: string, topK: number): CodeChunk[] | null;
26
- /**
27
- * Store result in cache
28
- */
29
- set(query: string, topK: number, chunks: CodeChunk[]): void;
30
- /**
31
- * Clear all cached results (called on codebase re-index)
32
- */
33
- clear(): void;
34
- /**
35
- * Get cache statistics
36
- */
10
+ private hits;
11
+ private misses;
12
+ private readonly ttl;
13
+ get(query: string, maxResults: number): CodeChunk[] | null;
14
+ set(query: string, maxResults: number, chunks: CodeChunk[]): void;
15
+ recordHit(): void;
16
+ recordMiss(): void;
37
17
  getStats(): {
38
- size: number;
39
- maxSize: number;
40
18
  hitRate: number;
41
19
  totalHits: number;
42
20
  totalMisses: number;
43
21
  };
44
- private totalHits;
45
- private totalMisses;
46
- /**
47
- * Record cache hit
48
- */
49
- recordHit(): void;
50
- /**
51
- * Record cache miss
52
- */
53
- recordMiss(): void;
54
- /**
55
- * Update access order for LRU eviction
56
- */
57
- private updateAccessOrder;
58
- /**
59
- * Remove key from access order
60
- */
61
- private removeFromAccessOrder;
62
- /**
63
- * Evict oldest entry (LRU)
64
- */
65
- private evictOldest;
22
+ clear(): void;
23
+ private getCacheKey;
66
24
  }
67
25
  export declare function getQueryResultCache(): QueryResultCache;
26
+ export {};
68
27
  //# sourceMappingURL=query-result-cache.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"query-result-cache.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/cache/query-result-cache.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AASrE,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,KAAK,CAAwC;IACrD,OAAO,CAAC,OAAO,CAAe;IAC9B,OAAO,CAAC,GAAG,CAA0B;IACrC,OAAO,CAAC,WAAW,CAAgB;gBAEvB,OAAO,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE;IAKxD;;OAEG;IACH,OAAO,CAAC,WAAW;IAMnB;;OAEG;IACH,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,SAAS,EAAE,GAAG,IAAI;IAyBpD;;OAEG;IACH,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI;IAkB3D;;OAEG;IACH,KAAK,IAAI,IAAI;IAKb;;OAEG;IACH,QAAQ,IAAI;QACV,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,EAAE,MAAM,CAAC;QAClB,WAAW,EAAE,MAAM,CAAC;KACrB;IAWD,OAAO,CAAC,SAAS,CAAa;IAC9B,OAAO,CAAC,WAAW,CAAa;IAEhC;;OAEG;IACH,SAAS,IAAI,IAAI;IAIjB;;OAEG;IACH,UAAU,IAAI,IAAI;IAIlB;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAQzB;;OAEG;IACH,OAAO,CAAC,qBAAqB;IAO7B;;OAEG;IACH,OAAO,CAAC,WAAW;CAOpB;AAKD,wBAAgB,mBAAmB,IAAI,gBAAgB,CAKtD"}
1
+ {"version":3,"file":"query-result-cache.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/cache/query-result-cache.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AASrE,cAAM,gBAAgB;IACpB,OAAO,CAAC,KAAK,CAAwC;IACrD,OAAO,CAAC,IAAI,CAAK;IACjB,OAAO,CAAC,MAAM,CAAK;IACnB,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAW;IAE/B,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,SAAS,EAAE,GAAG,IAAI;IAgB1D,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI;IASjE,SAAS,IAAI,IAAI;IAIjB,UAAU,IAAI,IAAI;IAIlB,QAAQ,IAAI;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE;IASvE,KAAK,IAAI,IAAI;IAMb,OAAO,CAAC,WAAW;CAIpB;AAID,wBAAgB,mBAAmB,IAAI,gBAAgB,CAKtD"}
@@ -1,138 +1,66 @@
1
1
  /**
2
- * Infrastructure: Query Result Cache
3
- * Caches search results (query + topK results) to avoid redundant searches
2
+ * Query Result Cache
3
+ * Caches search query results
4
4
  *
5
- * Performance optimization: Reduces search latency by ~80% for repeated queries
6
- * Cache invalidation: Automatically clears on codebase re-index
5
+ * Phase 1: v0.5.0-alpha.0
7
6
  */
8
7
  import { createHash } from 'crypto';
9
- export class QueryResultCache {
8
+ class QueryResultCache {
10
9
  cache = new Map();
11
- maxSize = 500; // Max cached queries
12
- ttl = 60 * 60 * 1000; // 1 hour TTL
13
- accessOrder = []; // LRU tracking
14
- constructor(options) {
15
- this.maxSize = options?.maxSize || 500;
16
- this.ttl = options?.ttl || 60 * 60 * 1000;
17
- }
18
- /**
19
- * Generate cache key from query and topK
20
- */
21
- getCacheKey(query, topK) {
22
- const normalized = query.toLowerCase().trim();
23
- const key = `${normalized}:${topK}`;
24
- return createHash('sha256').update(key).digest('hex');
25
- }
26
- /**
27
- * Get cached result if available and not expired
28
- */
29
- get(query, topK) {
30
- const key = this.getCacheKey(query, topK);
10
+ hits = 0;
11
+ misses = 0;
12
+ ttl = 3600000; // 1 hour
13
+ get(query, maxResults) {
14
+ const key = this.getCacheKey(query, maxResults);
31
15
  const cached = this.cache.get(key);
32
- if (!cached) {
33
- this.recordMiss();
34
- return null;
35
- }
36
- // Check if expired
37
- const now = Date.now();
38
- if (now - cached.timestamp > this.ttl) {
39
- this.cache.delete(key);
40
- this.removeFromAccessOrder(key);
41
- this.recordMiss();
42
- return null;
16
+ if (cached) {
17
+ const age = Date.now() - cached.timestamp;
18
+ if (age < this.ttl) {
19
+ return cached.chunks;
20
+ }
21
+ else {
22
+ this.cache.delete(key);
23
+ }
43
24
  }
44
- // Update access order (LRU)
45
- this.updateAccessOrder(key);
46
- this.recordHit();
47
- return cached.chunks;
25
+ return null;
48
26
  }
49
- /**
50
- * Store result in cache
51
- */
52
- set(query, topK, chunks) {
53
- const key = this.getCacheKey(query, topK);
54
- // Evict oldest if cache is full
55
- if (this.cache.size >= this.maxSize && !this.cache.has(key)) {
56
- this.evictOldest();
57
- }
27
+ set(query, maxResults, chunks) {
28
+ const key = this.getCacheKey(query, maxResults);
58
29
  this.cache.set(key, {
59
30
  chunks,
60
31
  timestamp: Date.now(),
61
32
  query,
62
- topK,
63
33
  });
64
- this.updateAccessOrder(key);
65
- }
66
- /**
67
- * Clear all cached results (called on codebase re-index)
68
- */
69
- clear() {
70
- this.cache.clear();
71
- this.accessOrder = [];
72
- }
73
- /**
74
- * Get cache statistics
75
- */
76
- getStats() {
77
- const total = this.totalHits + this.totalMisses;
78
- return {
79
- size: this.cache.size,
80
- maxSize: this.maxSize,
81
- hitRate: total > 0 ? this.totalHits / total : 0,
82
- totalHits: this.totalHits,
83
- totalMisses: this.totalMisses,
84
- };
85
34
  }
86
- totalHits = 0;
87
- totalMisses = 0;
88
- /**
89
- * Record cache hit
90
- */
91
35
  recordHit() {
92
- this.totalHits++;
36
+ this.hits++;
93
37
  }
94
- /**
95
- * Record cache miss
96
- */
97
38
  recordMiss() {
98
- this.totalMisses++;
39
+ this.misses++;
99
40
  }
100
- /**
101
- * Update access order for LRU eviction
102
- */
103
- updateAccessOrder(key) {
104
- const index = this.accessOrder.indexOf(key);
105
- if (index > -1) {
106
- this.accessOrder.splice(index, 1);
107
- }
108
- this.accessOrder.push(key);
41
+ getStats() {
42
+ const total = this.hits + this.misses;
43
+ return {
44
+ hitRate: total > 0 ? this.hits / total : 0,
45
+ totalHits: this.hits,
46
+ totalMisses: this.misses,
47
+ };
109
48
  }
110
- /**
111
- * Remove key from access order
112
- */
113
- removeFromAccessOrder(key) {
114
- const index = this.accessOrder.indexOf(key);
115
- if (index > -1) {
116
- this.accessOrder.splice(index, 1);
117
- }
49
+ clear() {
50
+ this.cache.clear();
51
+ this.hits = 0;
52
+ this.misses = 0;
118
53
  }
119
- /**
120
- * Evict oldest entry (LRU)
121
- */
122
- evictOldest() {
123
- if (this.accessOrder.length === 0)
124
- return;
125
- const oldestKey = this.accessOrder[0];
126
- this.cache.delete(oldestKey);
127
- this.accessOrder.shift();
54
+ getCacheKey(query, maxResults) {
55
+ const normalized = query.trim().toLowerCase();
56
+ return createHash('sha256').update(`${normalized}:${maxResults}`).digest('hex');
128
57
  }
129
58
  }
130
- // Singleton instance
131
- let queryResultCacheInstance = null;
59
+ let instance = null;
132
60
  export function getQueryResultCache() {
133
- if (!queryResultCacheInstance) {
134
- queryResultCacheInstance = new QueryResultCache();
61
+ if (!instance) {
62
+ instance = new QueryResultCache();
135
63
  }
136
- return queryResultCacheInstance;
64
+ return instance;
137
65
  }
138
66
  //# sourceMappingURL=query-result-cache.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"query-result-cache.js","sourceRoot":"","sources":["../../../src/infrastructure/cache/query-result-cache.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAUpC,MAAM,OAAO,gBAAgB;IACnB,KAAK,GAA8B,IAAI,GAAG,EAAE,CAAC;IAC7C,OAAO,GAAW,GAAG,CAAC,CAAC,qBAAqB;IAC5C,GAAG,GAAW,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,aAAa;IAC3C,WAAW,GAAa,EAAE,CAAC,CAAC,eAAe;IAEnD,YAAY,OAA4C;QACtD,IAAI,CAAC,OAAO,GAAG,OAAO,EAAE,OAAO,IAAI,GAAG,CAAC;QACvC,IAAI,CAAC,GAAG,GAAG,OAAO,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IAC5C,CAAC;IAED;;OAEG;IACK,WAAW,CAAC,KAAa,EAAE,IAAY;QAC7C,MAAM,UAAU,GAAG,KAAK,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,CAAC;QAC9C,MAAM,GAAG,GAAG,GAAG,UAAU,IAAI,IAAI,EAAE,CAAC;QACpC,OAAO,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC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AAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;QAC9C,OAAO,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,GAAG,UAAU,IAAI,UAAU,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAClF,CAAC;CACF;AAED,IAAI,QAAQ,GAA4B,IAAI,CAAC;AAE7C,MAAM,UAAU,mBAAmB;IACjC,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,QAAQ,GAAG,IAAI,gBAAgB,EAAE,CAAC;IACpC,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Response Cache
3
+ * Caches AI-generated responses
4
+ *
5
+ * Phase 1: v0.5.0-alpha.0
6
+ */
7
+ import type { CodeChunk } from '../../domain/entities/code-chunk.js';
8
+ declare class ResponseCache {
9
+ private cache;
10
+ private readonly ttl;
11
+ generateContextHash(chunks: CodeChunk[]): string;
12
+ get(query: string, contextHash: string, checkStale?: boolean): string | null;
13
+ set(query: string, response: string, contextHash: string): void;
14
+ private getCacheKey;
15
+ }
16
+ export declare function getResponseCache(): ResponseCache;
17
+ export {};
18
+ //# sourceMappingURL=response-cache.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"response-cache.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/cache/response-cache.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AASrE,cAAM,aAAa;IACjB,OAAO,CAAC,KAAK,CAA0C;IACvD,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAW;IAE/B,mBAAmB,CAAC,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM;IAKhD,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,UAAU,GAAE,OAAe,GAAG,MAAM,GAAG,IAAI;IAenF,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,IAAI;IAS/D,OAAO,CAAC,WAAW;CAIpB;AAID,wBAAgB,gBAAgB,IAAI,aAAa,CAKhD"}
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Response Cache
3
+ * Caches AI-generated responses
4
+ *
5
+ * Phase 1: v0.5.0-alpha.0
6
+ */
7
+ import { createHash } from 'crypto';
8
+ class ResponseCache {
9
+ cache = new Map();
10
+ ttl = 3600000; // 1 hour
11
+ generateContextHash(chunks) {
12
+ const chunkIds = chunks.map(c => c.id || c.filepath).sort().join(',');
13
+ return createHash('sha256').update(chunkIds).digest('hex');
14
+ }
15
+ get(query, contextHash, checkStale = false) {
16
+ const key = this.getCacheKey(query, contextHash);
17
+ const cached = this.cache.get(key);
18
+ if (cached) {
19
+ if (!checkStale || (Date.now() - cached.timestamp) < this.ttl) {
20
+ return cached.response;
21
+ }
22
+ else {
23
+ this.cache.delete(key);
24
+ }
25
+ }
26
+ return null;
27
+ }
28
+ set(query, response, contextHash) {
29
+ const key = this.getCacheKey(query, contextHash);
30
+ this.cache.set(key, {
31
+ response,
32
+ timestamp: Date.now(),
33
+ contextHash,
34
+ });
35
+ }
36
+ getCacheKey(query, contextHash) {
37
+ const normalized = query.trim().toLowerCase();
38
+ return createHash('sha256').update(`${normalized}:${contextHash}`).digest('hex');
39
+ }
40
+ }
41
+ let instance = null;
42
+ export function getResponseCache() {
43
+ if (!instance) {
44
+ instance = new ResponseCache();
45
+ }
46
+ return instance;
47
+ }
48
+ //# sourceMappingURL=response-cache.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"response-cache.js","sourceRoot":"","sources":["../../../src/infrastructure/cache/response-cache.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAQpC,MAAM,aAAa;IACT,KAAK,GAAgC,IAAI,GAAG,EAAE,CAAC;IACtC,GAAG,GAAG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GAAG,KAAK,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;QAC9C,OAAO,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,GAAG,UAAU,IAAI,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACnF,CAAC;CACF;AAED,IAAI,QAAQ,GAAyB,IAAI,CAAC;AAE1C,MAAM,UAAU,gBAAgB;IAC9B,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,QAAQ,GAAG,IAAI,aAAa,EAAE,CAAC;IACjC,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC"}
@@ -1,57 +1,16 @@
1
1
  /**
2
- * Infrastructure: Security Scan Cache
3
- * Caches security scan results by file content hash to avoid redundant scans
2
+ * Security Scan Cache
3
+ * Caches security scan results
4
4
  *
5
- * Performance optimization: Reduces scan latency by ~80% for unchanged files
6
- * Cache invalidation: Automatically invalidates when file content changes
5
+ * Phase 1: v0.5.0-alpha.0
7
6
  */
8
- import type { SASTResult } from '../security/ai-sast-scanner.js';
9
- import type { LicenseScanResult } from '../security/license-scanner.js';
10
- import type { ProviderBiasResult } from '../security/provider-bias-detector.js';
11
- export declare class SecurityScanCache {
7
+ declare class SecurityScanCache {
12
8
  private cache;
13
- private maxSize;
14
- private ttl;
15
- constructor(maxSize?: number, ttl?: number);
16
- /**
17
- * Generate content hash from file path and code content
18
- */
19
- private getContentHash;
20
- /**
21
- * Generate cache key from filepath
22
- */
23
- private getCacheKey;
24
- /**
25
- * Get cached scan results if available and not expired
26
- */
27
- get(filepath: string, code: string): {
28
- sast: SASTResult;
29
- license: LicenseScanResult;
30
- providerBias: ProviderBiasResult;
31
- } | null;
32
- /**
33
- * Store scan results in cache
34
- */
35
- set(filepath: string, code: string, sast: SASTResult, license: LicenseScanResult, providerBias: ProviderBiasResult): void;
36
- /**
37
- * Evict oldest entries (LRU eviction)
38
- */
39
- private evictOldest;
40
- /**
41
- * Clear expired entries
42
- */
43
- clearExpired(): void;
44
- /**
45
- * Clear all cache
46
- */
9
+ private readonly ttl;
10
+ get(filepath: string, contentHash: string): any | null;
11
+ set(filepath: string, code: string, sast: any, license?: any, providerBias?: any): void;
47
12
  clear(): void;
48
- /**
49
- * Get cache statistics
50
- */
51
- getStats(): {
52
- size: number;
53
- maxSize: number;
54
- };
55
13
  }
56
14
  export declare function getSecurityScanCache(): SecurityScanCache;
15
+ export {};
57
16
  //# sourceMappingURL=security-scan-cache.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"security-scan-cache.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/cache/security-scan-cache.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAWhF,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,KAAK,CAA8C;IAC3D,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,GAAG,CAAS;gBAER,OAAO,GAAE,MAAY,EAAE,GAAG,GAAE,MAAgB;IAKxD;;OAEG;IACH,OAAO,CAAC,cAAc;IAKtB;;OAEG;IACH,OAAO,CAAC,WAAW;IAInB;;OAEG;IACH,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG;QACnC,IAAI,EAAE,UAAU,CAAC;QACjB,OAAO,EAAE,iBAAiB,CAAC;QAC3B,YAAY,EAAE,kBAAkB,CAAC;KAClC,GAAG,IAAI;IA6BR;;OAEG;IACH,GAAG,CACD,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,UAAU,EAChB,OAAO,EAAE,iBAAiB,EAC1B,YAAY,EAAE,kBAAkB,GAC/B,IAAI;IAmBP;;OAEG;IACH,OAAO,CAAC,WAAW;IAYnB;;OAEG;IACH,YAAY,IAAI,IAAI;IASpB;;OAEG;IACH,KAAK,IAAI,IAAI;IAIb;;OAEG;IACH,QAAQ,IAAI;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE;CAM9C;AAKD,wBAAgB,oBAAoB,IAAI,iBAAiB,CAKxD"}
1
+ {"version":3,"file":"security-scan-cache.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/cache/security-scan-cache.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAWH,cAAM,iBAAiB;IACrB,OAAO,CAAC,KAAK,CAAsC;IACnD,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAW;IAE/B,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,GAAG,GAAG,IAAI;IAgBtD,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,GAAG,EAAE,YAAY,CAAC,EAAE,GAAG,GAAG,IAAI;IAYvF,KAAK,IAAI,IAAI;CAGd;AAID,wBAAgB,oBAAoB,IAAI,iBAAiB,CAKxD"}
@@ -1,124 +1,47 @@
1
1
  /**
2
- * Infrastructure: Security Scan Cache
3
- * Caches security scan results by file content hash to avoid redundant scans
2
+ * Security Scan Cache
3
+ * Caches security scan results
4
4
  *
5
- * Performance optimization: Reduces scan latency by ~80% for unchanged files
6
- * Cache invalidation: Automatically invalidates when file content changes
5
+ * Phase 1: v0.5.0-alpha.0
7
6
  */
8
7
  import { createHash } from 'crypto';
9
- export class SecurityScanCache {
8
+ class SecurityScanCache {
10
9
  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);
10
+ ttl = 3600000; // 1 hour
11
+ get(filepath, contentHash) {
12
+ const key = `${filepath}:${contentHash}`;
36
13
  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;
14
+ if (cached) {
15
+ const age = Date.now() - cached.timestamp;
16
+ if (age < this.ttl) {
17
+ return cached.results;
18
+ }
19
+ else {
20
+ this.cache.delete(key);
21
+ }
50
22
  }
51
- return {
52
- sast: cached.sast,
53
- license: cached.license,
54
- providerBias: cached.providerBias,
55
- };
23
+ return null;
56
24
  }
57
- /**
58
- * Store scan results in cache
59
- */
60
25
  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
- }
26
+ // Create hash from code content
27
+ const contentHash = createHash('sha256').update(code).digest('hex');
28
+ const key = `${filepath}:${contentHash}`;
67
29
  this.cache.set(key, {
68
30
  filepath,
69
- contentHash,
70
- sast,
71
- license,
72
- providerBias,
31
+ hash: contentHash,
32
+ results: { sast, license, providerBias },
73
33
  timestamp: Date.now(),
74
34
  });
75
35
  }
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
36
  clear() {
104
37
  this.cache.clear();
105
38
  }
106
- /**
107
- * Get cache statistics
108
- */
109
- getStats() {
110
- return {
111
- size: this.cache.size,
112
- maxSize: this.maxSize,
113
- };
114
- }
115
39
  }
116
- // Singleton instance
117
- let securityScanCacheInstance = null;
40
+ let instance = null;
118
41
  export function getSecurityScanCache() {
119
- if (!securityScanCacheInstance) {
120
- securityScanCacheInstance = new SecurityScanCache();
42
+ if (!instance) {
43
+ instance = new SecurityScanCache();
121
44
  }
122
- return securityScanCacheInstance;
45
+ return instance;
123
46
  }
124
47
  //# sourceMappingURL=security-scan-cache.js.map
@@ -1 +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;QACnD,MAAM,UAAU,GAAG,GAAG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AM,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"}
1
+ {"version":3,"file":"security-scan-cache.js","sourceRoot":"","sources":["../../../src/infrastructure/cache/security-scan-cache.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AASpC,MAAM,iBAAiB;IACb,KAAK,GAA4B,IAAI,GAAG,EAAE,CAAC;IAClC,GAAG,GAAG,OAAO,CAAC,CAAC,SAAS;IAEzC,GAAG,CAAC,QAAgB,EAAE,WAAmB;QACvC,MAAM,GAAG,GAAG,GAAG,QAAQ,IAAI,WAAW,EAAE,CAAC;QACzC,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QAEnC,IAAI,MAAM,EAAE,CAAC;YACX,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,MAAM,CAAC,SAAS,CAAC;YAC1C,IAAI,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;gBACnB,OAAO,MAAM,CAAC,OAAO,CAAC;YACxB,CAAC;iBAAM,CAAC;gBACN,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YACzB,CAAC;QACH,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;IAED,GAAG,CAAC,QAAgB,EAAE,IAAY,EAAE,IAAS,EAAE,OAAa,EAAE,YAAkB;QAC9E,gCAAgC;QAChC,MAAM,WAAW,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACpE,MAAM,GAAG,GAAG,GAAG,QAAQ,IAAI,WAAW,EAAE,CAAC;QACzC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE;YAClB,QAAQ;YACR,IAAI,EAAE,WAAW;YACjB,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,YAAY,EAAE;YACxC,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;SACtB,CAAC,CAAC;IACL,CAAC;IAED,KAAK;QACH,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;IACrB,CAAC;CACF;AAED,IAAI,QAAQ,GAA6B,IAAI,CAAC;AAE9C,MAAM,UAAU,oBAAoB;IAClC,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,QAAQ,GAAG,IAAI,iBAAiB,EAAE,CAAC;IACrC,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC"}
@@ -1,8 +1,7 @@
1
1
  /**
2
2
  * Bash Completion Script Generator
3
- */
4
- /**
5
- * Generate bash completion script
3
+ *
4
+ * Phase 1: v0.5.0-alpha.0
6
5
  */
7
6
  export declare function generateBashCompletion(): string;
8
7
  //# sourceMappingURL=bash-completion.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"bash-completion.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/completion/bash-completion.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,wBAAgB,sBAAsB,IAAI,MAAM,CAkB/C"}