genaicode 0.8.5 → 0.9.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 (1021) hide show
  1. package/README.md +18 -1
  2. package/dist/ai-service/ai-studio.d.ts +2 -3
  3. package/dist/ai-service/ai-studio.js +55 -27
  4. package/dist/ai-service/ai-studio.js.map +1 -1
  5. package/dist/ai-service/anthropic.d.ts +2 -3
  6. package/dist/ai-service/anthropic.js +24 -8
  7. package/dist/ai-service/anthropic.js.map +1 -1
  8. package/dist/{src/ai-service/common.d.ts → ai-service/common-types.d.ts} +24 -26
  9. package/dist/ai-service/common-types.js +10 -0
  10. package/dist/ai-service/common-types.js.map +1 -0
  11. package/dist/ai-service/common.d.ts +3 -55
  12. package/dist/ai-service/common.js +19 -6
  13. package/dist/ai-service/common.js.map +1 -1
  14. package/dist/ai-service/dall-e.d.ts +2 -9
  15. package/dist/ai-service/dall-e.js +4 -11
  16. package/dist/ai-service/dall-e.js.map +1 -1
  17. package/dist/ai-service/openai.d.ts +15 -4
  18. package/dist/ai-service/openai.js +45 -20
  19. package/dist/ai-service/openai.js.map +1 -1
  20. package/dist/ai-service/service-configurations-types.d.ts +55 -0
  21. package/dist/ai-service/service-configurations-types.js +6 -0
  22. package/dist/ai-service/service-configurations-types.js.map +1 -0
  23. package/dist/ai-service/service-configurations.d.ts +3 -2
  24. package/dist/ai-service/service-configurations.js +5 -0
  25. package/dist/ai-service/service-configurations.js.map +1 -1
  26. package/dist/ai-service/unescape-function-call.d.ts +1 -1
  27. package/dist/ai-service/vertex-ai-claude.d.ts +2 -2
  28. package/dist/ai-service/vertex-ai-claude.js +22 -8
  29. package/dist/ai-service/vertex-ai-claude.js.map +1 -1
  30. package/dist/ai-service/vertex-ai-imagen.d.ts +2 -9
  31. package/dist/ai-service/vertex-ai-imagen.js +4 -11
  32. package/dist/ai-service/vertex-ai-imagen.js.map +1 -1
  33. package/dist/ai-service/vertex-ai.d.ts +2 -3
  34. package/dist/ai-service/vertex-ai.js +17 -12
  35. package/dist/ai-service/vertex-ai.js.map +1 -1
  36. package/dist/cli/cli-params.d.ts +1 -1
  37. package/dist/cli/cli-params.js +1 -1
  38. package/dist/cli/cli-params.js.map +1 -1
  39. package/dist/files/read-files.d.ts +1 -28
  40. package/dist/files/read-files.js +1 -1
  41. package/dist/files/read-files.js.map +1 -1
  42. package/dist/files/source-code-tree.d.ts +3 -1
  43. package/dist/files/source-code-tree.js.map +1 -1
  44. package/dist/files/source-code-types.d.ts +26 -0
  45. package/dist/files/source-code-types.js +2 -0
  46. package/dist/files/source-code-types.js.map +1 -0
  47. package/dist/files/summary-cache.d.ts +20 -0
  48. package/dist/files/summary-cache.js +15 -0
  49. package/dist/files/summary-cache.js.map +1 -0
  50. package/dist/files/update-files.d.ts +1 -1
  51. package/dist/help-docs/genaicode-help-document.d.ts +1 -0
  52. package/dist/help-docs/genaicode-help-document.js +286 -0
  53. package/dist/help-docs/genaicode-help-document.js.map +1 -0
  54. package/dist/index.d.ts +2 -4
  55. package/dist/index.js +1 -3
  56. package/dist/index.js.map +1 -1
  57. package/dist/main/codegen-types.d.ts +12 -10
  58. package/dist/main/codegen-utils.d.ts +1 -1
  59. package/dist/main/codegen.d.ts +4 -3
  60. package/dist/main/codegen.js.map +1 -1
  61. package/dist/main/codegen.test-utils.d.ts +1 -1
  62. package/dist/main/common/abort-controller.d.ts +2 -0
  63. package/dist/main/common/abort-controller.js +5 -0
  64. package/dist/main/common/abort-controller.js.map +1 -0
  65. package/dist/main/common/app-context-bus.d.ts +11 -0
  66. package/dist/main/common/app-context-bus.js +29 -0
  67. package/dist/main/common/app-context-bus.js.map +1 -0
  68. package/dist/main/common/content-bus-types.d.ts +1 -1
  69. package/dist/main/common/content-bus.d.ts +1 -1
  70. package/dist/main/common/cost-collector.d.ts +3 -2
  71. package/dist/main/common/cost-collector.js +3 -3
  72. package/dist/main/common/cost-collector.js.map +1 -1
  73. package/dist/main/common/user-actions.d.ts +3 -3
  74. package/dist/main/common/user-actions.js +17 -8
  75. package/dist/main/common/user-actions.js.map +1 -1
  76. package/dist/main/config-lib.d.ts +1 -36
  77. package/dist/main/config-lib.js.map +1 -1
  78. package/dist/main/config-schema.js +10 -0
  79. package/dist/main/config-schema.js.map +1 -1
  80. package/dist/main/config-types.d.ts +42 -0
  81. package/dist/main/config-types.js +2 -0
  82. package/dist/main/config-types.js.map +1 -0
  83. package/dist/main/config.d.ts +1 -1
  84. package/dist/main/config.js +1 -1
  85. package/dist/main/config.js.map +1 -1
  86. package/dist/main/interactive/codegen-worker.d.ts +0 -1
  87. package/dist/main/interactive/codegen-worker.js +4 -3
  88. package/dist/main/interactive/codegen-worker.js.map +1 -1
  89. package/dist/main/interactive/select-ai-service.d.ts +1 -1
  90. package/dist/main/plugin-loader.d.ts +6 -4
  91. package/dist/main/plugin-loader.js.map +1 -1
  92. package/dist/main/ui/backend/endpoints/context-endpoint.js +67 -0
  93. package/dist/main/ui/backend/endpoints/context-endpoint.js.map +1 -0
  94. package/dist/main/ui/backend/endpoints/generate-content-endpoint.js +2 -1
  95. package/dist/main/ui/backend/endpoints/generate-content-endpoint.js.map +1 -1
  96. package/dist/main/ui/backend/endpoints/index.d.ts +1 -0
  97. package/dist/main/ui/backend/endpoints/index.js +1 -0
  98. package/dist/main/ui/backend/endpoints/index.js.map +1 -1
  99. package/dist/main/ui/backend/server.d.ts +2 -1
  100. package/dist/main/ui/backend/server.js +2 -1
  101. package/dist/main/ui/backend/server.js.map +1 -1
  102. package/dist/main/ui/backend/service.d.ts +30 -5
  103. package/dist/main/ui/backend/service.js +41 -3
  104. package/dist/main/ui/backend/service.js.map +1 -1
  105. package/dist/main/ui/codegen-ui.d.ts +5 -1
  106. package/dist/main/ui/codegen-ui.js +10 -1
  107. package/dist/main/ui/codegen-ui.js.map +1 -1
  108. package/dist/main/ui/common/api-types.d.ts +4 -51
  109. package/dist/main/ui/frontend/assets/favicon-DvroFOpS.png +0 -0
  110. package/dist/main/ui/frontend/assets/index-DfiFNFf2.js +1771 -0
  111. package/dist/main/ui/frontend/assets/wolf-bark-Bl17CX4O.mp3 +0 -0
  112. package/dist/main/ui/frontend/index.html +2 -2
  113. package/dist/operations/create-directory/create-directory-def.d.ts +1 -1
  114. package/dist/operations/create-file/create-file-def.d.ts +1 -1
  115. package/dist/operations/create-file/create-file-def.js +2 -1
  116. package/dist/operations/create-file/create-file-def.js.map +1 -1
  117. package/dist/operations/delete-file/delete-file-def.d.ts +1 -1
  118. package/dist/operations/download-file/download-file-def.d.ts +1 -1
  119. package/dist/operations/imgly-remove-background/imgly-remove-background-def.d.ts +1 -1
  120. package/dist/operations/move-file/move-file-def.d.ts +1 -1
  121. package/dist/operations/patch-file/patch-file-def.d.ts +1 -1
  122. package/dist/operations/patch-file/patch-file-def.js +2 -1
  123. package/dist/operations/patch-file/patch-file-def.js.map +1 -1
  124. package/dist/operations/resize-image/resize-image-def.d.ts +1 -1
  125. package/dist/operations/split-image/split-image-def.d.ts +1 -1
  126. package/dist/operations/update-file/update-file-def.d.ts +1 -1
  127. package/dist/operations/update-file/update-file-def.js +2 -1
  128. package/dist/operations/update-file/update-file-def.js.map +1 -1
  129. package/dist/prompt/ai-service-fallback.d.ts +4 -3
  130. package/dist/prompt/ai-service-fallback.js +10 -58
  131. package/dist/prompt/ai-service-fallback.js.map +1 -1
  132. package/dist/prompt/function-calling-validate.d.ts +2 -2
  133. package/dist/prompt/function-calling-validate.js +4 -5
  134. package/dist/prompt/function-calling-validate.js.map +1 -1
  135. package/dist/prompt/function-calling.d.ts +1 -1
  136. package/dist/prompt/function-calling.js +13 -2
  137. package/dist/prompt/function-calling.js.map +1 -1
  138. package/dist/prompt/function-defs/analysis-result.d.ts +7 -0
  139. package/dist/prompt/function-defs/analysis-result.js +24 -0
  140. package/dist/prompt/function-defs/analysis-result.js.map +1 -0
  141. package/dist/prompt/function-defs/ask-question.d.ts +4 -2
  142. package/dist/prompt/function-defs/ask-question.js +130 -102
  143. package/dist/prompt/function-defs/ask-question.js.map +1 -1
  144. package/dist/prompt/function-defs/codegen-planning.d.ts +1 -1
  145. package/dist/prompt/function-defs/codegen-planning.js +11 -1
  146. package/dist/prompt/function-defs/codegen-planning.js.map +1 -1
  147. package/dist/prompt/function-defs/codegen-summary.d.ts +1 -1
  148. package/dist/prompt/function-defs/codegen-summary.js +19 -10
  149. package/dist/prompt/function-defs/codegen-summary.js.map +1 -1
  150. package/dist/prompt/function-defs/explanation.d.ts +1 -1
  151. package/dist/prompt/function-defs/genaicode-help.d.ts +6 -0
  152. package/dist/prompt/function-defs/genaicode-help.js +23 -0
  153. package/dist/prompt/function-defs/genaicode-help.js.map +1 -0
  154. package/dist/prompt/function-defs/generate-image.d.ts +1 -1
  155. package/dist/prompt/function-defs/get-image-assets.d.ts +1 -1
  156. package/dist/prompt/function-defs/get-source-code.d.ts +1 -1
  157. package/dist/prompt/function-defs/optimize-context.d.ts +1 -1
  158. package/dist/prompt/function-defs/optimize-context.js +2 -2
  159. package/dist/prompt/function-defs/optimize-context.js.map +1 -1
  160. package/dist/prompt/function-defs/perform-analysis.d.ts +8 -0
  161. package/dist/prompt/function-defs/perform-analysis.js +28 -0
  162. package/dist/prompt/function-defs/perform-analysis.js.map +1 -0
  163. package/dist/prompt/function-defs/read-history.d.ts +1 -1
  164. package/dist/prompt/function-defs/reasoning-inference.d.ts +3 -0
  165. package/dist/prompt/function-defs/reasoning-inference.js +39 -0
  166. package/dist/prompt/function-defs/reasoning-inference.js.map +1 -0
  167. package/dist/prompt/function-defs/set-summaries.d.ts +1 -1
  168. package/dist/prompt/function-defs/update-history.d.ts +1 -1
  169. package/dist/prompt/limits.js +1 -1
  170. package/dist/prompt/prompt-service.d.ts +5 -2
  171. package/dist/prompt/prompt-service.js +3 -3
  172. package/dist/prompt/prompt-service.js.map +1 -1
  173. package/dist/prompt/prompt-service.test-utils.d.ts +2 -2
  174. package/dist/prompt/prompt-service.test-utils.js +2 -1
  175. package/dist/prompt/prompt-service.test-utils.js.map +1 -1
  176. package/dist/prompt/steps/step-ask-question/handlers/code-generation.d.ts +2 -0
  177. package/dist/prompt/steps/step-ask-question/handlers/code-generation.js +11 -9
  178. package/dist/prompt/steps/step-ask-question/handlers/code-generation.js.map +1 -1
  179. package/dist/prompt/steps/step-ask-question/handlers/confirm-code-generation.d.ts +1 -1
  180. package/dist/prompt/steps/step-ask-question/handlers/confirm-code-generation.js +4 -8
  181. package/dist/prompt/steps/step-ask-question/handlers/confirm-code-generation.js.map +1 -1
  182. package/dist/prompt/steps/step-ask-question/handlers/context-optimization.d.ts +1 -1
  183. package/dist/prompt/steps/step-ask-question/handlers/context-optimization.js +3 -7
  184. package/dist/prompt/steps/step-ask-question/handlers/context-optimization.js.map +1 -1
  185. package/dist/prompt/steps/step-ask-question/handlers/genaicode-help-document.d.ts +1 -0
  186. package/dist/prompt/steps/step-ask-question/handlers/genaicode-help-document.js +251 -0
  187. package/dist/prompt/steps/step-ask-question/handlers/genaicode-help-document.js.map +1 -0
  188. package/dist/prompt/steps/step-ask-question/handlers/handle-create-file.d.ts +2 -0
  189. package/dist/prompt/steps/step-ask-question/handlers/handle-create-file.js +157 -0
  190. package/dist/prompt/steps/step-ask-question/handlers/handle-create-file.js.map +1 -0
  191. package/dist/prompt/steps/step-ask-question/handlers/handle-end-conversation.d.ts +2 -0
  192. package/dist/prompt/steps/step-ask-question/handlers/{cancel-code-generation.js → handle-end-conversation.js} +3 -3
  193. package/dist/prompt/steps/step-ask-question/handlers/handle-end-conversation.js.map +1 -0
  194. package/dist/prompt/steps/step-ask-question/handlers/handle-genaicode-help.d.ts +8 -0
  195. package/dist/prompt/steps/step-ask-question/handlers/handle-genaicode-help.js +91 -0
  196. package/dist/prompt/steps/step-ask-question/handlers/handle-genaicode-help.js.map +1 -0
  197. package/dist/prompt/steps/step-ask-question/handlers/handle-generate-image.d.ts +2 -0
  198. package/dist/prompt/steps/step-ask-question/handlers/{handle-send-message-with-image.js → handle-generate-image.js} +30 -31
  199. package/dist/prompt/steps/step-ask-question/handlers/handle-generate-image.js.map +1 -0
  200. package/dist/prompt/steps/step-ask-question/handlers/handle-perform-analysis.d.ts +6 -0
  201. package/dist/prompt/steps/step-ask-question/handlers/handle-perform-analysis.js +99 -0
  202. package/dist/prompt/steps/step-ask-question/handlers/handle-perform-analysis.js.map +1 -0
  203. package/dist/prompt/steps/step-ask-question/handlers/handle-pull-app-context.d.ts +9 -0
  204. package/dist/prompt/steps/step-ask-question/handlers/handle-pull-app-context.js +90 -0
  205. package/dist/prompt/steps/step-ask-question/handlers/handle-pull-app-context.js.map +1 -0
  206. package/dist/prompt/steps/step-ask-question/handlers/handle-push-app-context.d.ts +9 -0
  207. package/dist/prompt/steps/step-ask-question/handlers/handle-push-app-context.js +91 -0
  208. package/dist/prompt/steps/step-ask-question/handlers/handle-push-app-context.js.map +1 -0
  209. package/dist/prompt/steps/step-ask-question/handlers/handle-reasoning-inference.d.ts +7 -0
  210. package/dist/prompt/steps/step-ask-question/handlers/handle-reasoning-inference.js +87 -0
  211. package/dist/prompt/steps/step-ask-question/handlers/handle-reasoning-inference.js.map +1 -0
  212. package/dist/prompt/steps/step-ask-question/handlers/handle-search-code.d.ts +1 -1
  213. package/dist/prompt/steps/step-ask-question/handlers/handle-search-code.js +7 -7
  214. package/dist/prompt/steps/step-ask-question/handlers/handle-search-code.js.map +1 -1
  215. package/dist/prompt/steps/step-ask-question/handlers/handle-send-message.d.ts +1 -1
  216. package/dist/prompt/steps/step-ask-question/handlers/handle-send-message.js +3 -6
  217. package/dist/prompt/steps/step-ask-question/handlers/handle-send-message.js.map +1 -1
  218. package/dist/prompt/steps/step-ask-question/handlers/handle-update-file.d.ts +2 -0
  219. package/dist/prompt/steps/step-ask-question/handlers/handle-update-file.js +167 -0
  220. package/dist/prompt/steps/step-ask-question/handlers/handle-update-file.js.map +1 -0
  221. package/dist/prompt/steps/step-ask-question/handlers/lint.d.ts +1 -1
  222. package/dist/prompt/steps/step-ask-question/handlers/lint.js +27 -7
  223. package/dist/prompt/steps/step-ask-question/handlers/lint.js.map +1 -1
  224. package/dist/prompt/steps/step-ask-question/handlers/remove-files-from-context.d.ts +1 -1
  225. package/dist/prompt/steps/step-ask-question/handlers/remove-files-from-context.js +5 -4
  226. package/dist/prompt/steps/step-ask-question/handlers/remove-files-from-context.js.map +1 -1
  227. package/dist/prompt/steps/step-ask-question/handlers/request-files-content.d.ts +8 -2
  228. package/dist/prompt/steps/step-ask-question/handlers/request-files-content.js +47 -47
  229. package/dist/prompt/steps/step-ask-question/handlers/request-files-content.js.map +1 -1
  230. package/dist/prompt/steps/step-ask-question/handlers/request-permissions.d.ts +1 -1
  231. package/dist/prompt/steps/step-ask-question/handlers/request-permissions.js +6 -5
  232. package/dist/prompt/steps/step-ask-question/handlers/request-permissions.js.map +1 -1
  233. package/dist/prompt/steps/step-ask-question/step-ask-question-types.d.ts +78 -21
  234. package/dist/prompt/steps/step-ask-question/step-ask-question.d.ts +5 -1
  235. package/dist/prompt/steps/step-ask-question/step-ask-question.js +37 -21
  236. package/dist/prompt/steps/step-ask-question/step-ask-question.js.map +1 -1
  237. package/dist/prompt/steps/step-codegen-planning.d.ts +2 -1
  238. package/dist/prompt/steps/step-codegen-planning.js +2 -1
  239. package/dist/prompt/steps/step-codegen-planning.js.map +1 -1
  240. package/dist/prompt/steps/step-context-optimization.d.ts +5 -1
  241. package/dist/prompt/steps/step-context-optimization.js +64 -54
  242. package/dist/prompt/steps/step-context-optimization.js.map +1 -1
  243. package/dist/prompt/steps/step-ensure-context.d.ts +1 -1
  244. package/dist/prompt/steps/step-ensure-context.js +3 -0
  245. package/dist/prompt/steps/step-ensure-context.js.map +1 -1
  246. package/dist/prompt/steps/step-generate-codegen-summary-prompt.d.ts +2 -0
  247. package/dist/prompt/steps/step-generate-codegen-summary-prompt.js +133 -0
  248. package/dist/prompt/steps/step-generate-codegen-summary-prompt.js.map +1 -0
  249. package/dist/prompt/steps/step-generate-codegen-summary.d.ts +6 -3
  250. package/dist/prompt/steps/step-generate-codegen-summary.js +14 -2
  251. package/dist/prompt/steps/step-generate-codegen-summary.js.map +1 -1
  252. package/dist/prompt/steps/step-generate-image.d.ts +2 -1
  253. package/dist/prompt/steps/step-generate-image.js +4 -2
  254. package/dist/prompt/steps/step-generate-image.js.map +1 -1
  255. package/dist/prompt/steps/step-generate-summary.d.ts +2 -1
  256. package/dist/prompt/steps/step-generate-summary.js +3 -2
  257. package/dist/prompt/steps/step-generate-summary.js.map +1 -1
  258. package/dist/prompt/steps/step-history-update.d.ts +2 -1
  259. package/dist/prompt/steps/step-history-update.js +9 -1
  260. package/dist/prompt/steps/step-history-update.js.map +1 -1
  261. package/dist/prompt/steps/step-process-file-updates.d.ts +7 -3
  262. package/dist/prompt/steps/step-process-file-updates.js +9 -7
  263. package/dist/prompt/steps/step-process-file-updates.js.map +1 -1
  264. package/dist/prompt/steps/step-summarization.d.ts +2 -6
  265. package/dist/prompt/steps/step-summarization.js +11 -15
  266. package/dist/prompt/steps/step-summarization.js.map +1 -1
  267. package/dist/prompt/steps/step-validate-recover.d.ts +4 -2
  268. package/dist/prompt/steps/step-validate-recover.js +8 -6
  269. package/dist/prompt/steps/step-validate-recover.js.map +1 -1
  270. package/dist/prompt/steps/step-verify-patch.d.ts +4 -1
  271. package/dist/prompt/steps/step-verify-patch.js +15 -2
  272. package/dist/prompt/steps/step-verify-patch.js.map +1 -1
  273. package/dist/prompt/steps/steps-types.d.ts +0 -14
  274. package/dist/prompt/steps/steps-types.js.map +1 -1
  275. package/dist/prompt/steps/steps-utils.d.ts +1 -1
  276. package/dist/prompt/systemprompt.d.ts +2 -1
  277. package/dist/prompt/systemprompt.js +52 -15
  278. package/dist/prompt/systemprompt.js.map +1 -1
  279. package/dist/{eval → prompt-debug}/current-prompt-plugin.d.ts +1 -1
  280. package/dist/{eval → prompt-debug}/current-prompt-plugin.js +1 -1
  281. package/dist/prompt-debug/current-prompt-plugin.js.map +1 -0
  282. package/dist/vite-genaicode/vite-genaicode-context.d.ts +31 -0
  283. package/dist/vite-genaicode/vite-genaicode-context.js +120 -0
  284. package/dist/vite-genaicode/vite-genaicode-context.js.map +1 -0
  285. package/dist/vite-genaicode/vite-genaicode-frontend.js +206 -30
  286. package/dist/vite-genaicode/vite-genaicode-frontend.js.map +1 -1
  287. package/dist/vite-genaicode/vite-genaicode-plugin.d.ts +1 -0
  288. package/dist/vite-genaicode/vite-genaicode-plugin.js +22 -9
  289. package/dist/vite-genaicode/vite-genaicode-plugin.js.map +1 -1
  290. package/dist/vite-genaicode/vite-genaicode-types.d.ts +26 -0
  291. package/dist/vite-genaicode/vite-genaicode-types.js +11 -0
  292. package/dist/vite-genaicode/vite-genaicode-types.js.map +1 -0
  293. package/package.json +10 -3
  294. package/dist/ai-service/ai-studio.d.ts.map +0 -1
  295. package/dist/ai-service/anthropic.d.ts.map +0 -1
  296. package/dist/ai-service/chat-gpt.d.ts +0 -7
  297. package/dist/ai-service/chat-gpt.d.ts.map +0 -1
  298. package/dist/ai-service/chat-gpt.js +0 -174
  299. package/dist/ai-service/chat-gpt.js.map +0 -1
  300. package/dist/ai-service/common.d.ts.map +0 -1
  301. package/dist/ai-service/common.test.js +0 -86
  302. package/dist/ai-service/common.test.js.map +0 -1
  303. package/dist/ai-service/dall-e.d.ts.map +0 -1
  304. package/dist/ai-service/unescape-function-call.d.ts.map +0 -1
  305. package/dist/ai-service/unescape-function-call.test.d.ts +0 -1
  306. package/dist/ai-service/unescape-function-call.test.js +0 -18
  307. package/dist/ai-service/unescape-function-call.test.js.map +0 -1
  308. package/dist/ai-service/vertex-ai-claude.d.ts.map +0 -1
  309. package/dist/ai-service/vertex-ai-imagen.d.ts.map +0 -1
  310. package/dist/ai-service/vertex-ai.d.ts.map +0 -1
  311. package/dist/cli/cli-options.d.ts.map +0 -1
  312. package/dist/cli/cli-options.test.d.ts +0 -1
  313. package/dist/cli/cli-options.test.js +0 -34
  314. package/dist/cli/cli-options.test.js.map +0 -1
  315. package/dist/cli/cli-params.d.ts.map +0 -1
  316. package/dist/cli/cli-params.test.d.ts +0 -1
  317. package/dist/cli/cli-params.test.js +0 -38
  318. package/dist/cli/cli-params.test.js.map +0 -1
  319. package/dist/cli/service-autodetect.d.ts.map +0 -1
  320. package/dist/cli/service-autodetect.test.d.ts +0 -1
  321. package/dist/cli/service-autodetect.test.js +0 -38
  322. package/dist/cli/service-autodetect.test.js.map +0 -1
  323. package/dist/cli/validate-cli-params.d.ts.map +0 -1
  324. package/dist/cli/validate-cli-params.test.d.ts +0 -1
  325. package/dist/cli/validate-cli-params.test.js +0 -106
  326. package/dist/cli/validate-cli-params.test.js.map +0 -1
  327. package/dist/eval/codegen-summary.test.d.ts +0 -1
  328. package/dist/eval/codegen-summary.test.js +0 -93
  329. package/dist/eval/codegen-summary.test.js.map +0 -1
  330. package/dist/eval/current-prompt-plugin.js.map +0 -1
  331. package/dist/eval/data/current-prompt.d.ts +0 -149
  332. package/dist/eval/data/current-prompt.js +0 -314
  333. package/dist/eval/data/current-prompt.js.map +0 -1
  334. package/dist/eval/data/prompt-assistant-image.d.ts +0 -49
  335. package/dist/eval/data/prompt-assistant-image.js +0 -67
  336. package/dist/eval/data/prompt-assistant-image.js.map +0 -1
  337. package/dist/eval/data/prompt3.d.ts +0 -34
  338. package/dist/eval/data/prompt3.js +0 -71
  339. package/dist/eval/data/prompt3.js.map +0 -1
  340. package/dist/eval/prompt-debug.test.d.ts +0 -1
  341. package/dist/eval/prompt-debug.test.js +0 -93
  342. package/dist/eval/prompt-debug.test.js.map +0 -1
  343. package/dist/eval/prompt2.d.ts +0 -34
  344. package/dist/eval/prompt2.js +0 -125
  345. package/dist/eval/prompt2.js.map +0 -1
  346. package/dist/examples/genaicode_plugins/fake_ai_service.d.ts +0 -3
  347. package/dist/examples/genaicode_plugins/fake_ai_service.js +0 -11
  348. package/dist/examples/genaicode_plugins/fake_ai_service.js.map +0 -1
  349. package/dist/examples/genaicode_plugins/grok_ai_service.d.ts +0 -3
  350. package/dist/examples/genaicode_plugins/grok_ai_service.js +0 -153
  351. package/dist/examples/genaicode_plugins/grok_ai_service.js.map +0 -1
  352. package/dist/examples/genaicode_plugins/nonsense_operation.d.ts +0 -3
  353. package/dist/examples/genaicode_plugins/nonsense_operation.js +0 -23
  354. package/dist/examples/genaicode_plugins/nonsense_operation.js.map +0 -1
  355. package/dist/files/cache-file.d.ts.map +0 -1
  356. package/dist/files/file-utils.d.ts.map +0 -1
  357. package/dist/files/file-utils.test.d.ts +0 -1
  358. package/dist/files/file-utils.test.js +0 -18
  359. package/dist/files/file-utils.test.js.map +0 -1
  360. package/dist/files/find-files.d.ts.map +0 -1
  361. package/dist/files/path-utils.d.ts.map +0 -1
  362. package/dist/files/read-files.d.ts.map +0 -1
  363. package/dist/files/read-files.test.d.ts +0 -1
  364. package/dist/files/read-files.test.js +0 -95
  365. package/dist/files/read-files.test.js.map +0 -1
  366. package/dist/files/search-files.d.ts.map +0 -1
  367. package/dist/files/source-code-tree.d.ts.map +0 -1
  368. package/dist/files/temp-buffer.d.ts.map +0 -1
  369. package/dist/files/update-files.d.ts.map +0 -1
  370. package/dist/images/ensure-alpha.d.ts.map +0 -1
  371. package/dist/images/imgly-remove-background.d.ts.map +0 -1
  372. package/dist/images/resize-image.d.ts.map +0 -1
  373. package/dist/images/split-image.d.ts.map +0 -1
  374. package/dist/index.d.ts.map +0 -1
  375. package/dist/main/codegen-non-interactive.d.ts.map +0 -1
  376. package/dist/main/codegen-types.d.ts.map +0 -1
  377. package/dist/main/codegen-utils.d.ts.map +0 -1
  378. package/dist/main/codegen.ai-services.test.d.ts +0 -3
  379. package/dist/main/codegen.ai-services.test.js +0 -198
  380. package/dist/main/codegen.ai-services.test.js.map +0 -1
  381. package/dist/main/codegen.cli-options.test.d.ts +0 -3
  382. package/dist/main/codegen.cli-options.test.js +0 -171
  383. package/dist/main/codegen.cli-options.test.js.map +0 -1
  384. package/dist/main/codegen.d.ts.map +0 -1
  385. package/dist/main/codegen.image-generation.test.d.ts +0 -3
  386. package/dist/main/codegen.image-generation.test.js +0 -187
  387. package/dist/main/codegen.image-generation.test.js.map +0 -1
  388. package/dist/main/codegen.test-utils.d.ts.map +0 -1
  389. package/dist/main/codegen.test.d.ts +0 -3
  390. package/dist/main/codegen.test.js +0 -307
  391. package/dist/main/codegen.test.js.map +0 -1
  392. package/dist/main/common/content-bus-types.d.ts.map +0 -1
  393. package/dist/main/common/content-bus.d.ts.map +0 -1
  394. package/dist/main/common/cost-collector.d.ts.map +0 -1
  395. package/dist/main/common/user-actions.d.ts.map +0 -1
  396. package/dist/main/config-lib.d.ts.map +0 -1
  397. package/dist/main/config-lib.test.d.ts +0 -1
  398. package/dist/main/config-lib.test.js +0 -64
  399. package/dist/main/config-lib.test.js.map +0 -1
  400. package/dist/main/config.d.ts.map +0 -1
  401. package/dist/main/interactive/codegen-interactive.d.ts.map +0 -1
  402. package/dist/main/interactive/codegen-interactive.test.d.ts +0 -5
  403. package/dist/main/interactive/codegen-interactive.test.js +0 -73
  404. package/dist/main/interactive/codegen-interactive.test.js.map +0 -1
  405. package/dist/main/interactive/codegen-worker.d.ts.map +0 -1
  406. package/dist/main/interactive/common.d.ts.map +0 -1
  407. package/dist/main/interactive/configure.d.ts.map +0 -1
  408. package/dist/main/interactive/error-handling.d.ts.map +0 -1
  409. package/dist/main/interactive/help.d.ts.map +0 -1
  410. package/dist/main/interactive/process-comments.d.ts +0 -2
  411. package/dist/main/interactive/process-comments.js +0 -39
  412. package/dist/main/interactive/process-comments.js.map +0 -1
  413. package/dist/main/interactive/select-ai-service.d.ts.map +0 -1
  414. package/dist/main/interactive/task-file.d.ts.map +0 -1
  415. package/dist/main/interactive/text-prompt.d.ts.map +0 -1
  416. package/dist/main/interactive/user-action-handlers.d.ts.map +0 -1
  417. package/dist/main/interactive/user-interrupt.d.ts.map +0 -1
  418. package/dist/main/plugin-loader.d.ts.map +0 -1
  419. package/dist/main/ui/backend/api-utils.d.ts.map +0 -1
  420. package/dist/main/ui/backend/api.d.ts.map +0 -1
  421. package/dist/main/ui/backend/server.d.ts.map +0 -1
  422. package/dist/main/ui/backend/service.d.ts.map +0 -1
  423. package/dist/main/ui/codegen-ui.d.ts.map +0 -1
  424. package/dist/main/ui/common/api-types.d.ts.map +0 -1
  425. package/dist/main/ui/frontend/assets/index-DY7-_JMu.js +0 -1759
  426. package/dist/main/ui/user-action-handlers.d.ts.map +0 -1
  427. package/dist/operations/create-directory/create-directory-def.d.ts.map +0 -1
  428. package/dist/operations/create-directory/create-directory-executor.d.ts.map +0 -1
  429. package/dist/operations/create-file/create-file-def.d.ts.map +0 -1
  430. package/dist/operations/create-file/create-file-executor.d.ts.map +0 -1
  431. package/dist/operations/delete-file/delete-file-def.d.ts.map +0 -1
  432. package/dist/operations/delete-file/delete-file-executor.d.ts.map +0 -1
  433. package/dist/operations/download-file/download-file-def.d.ts.map +0 -1
  434. package/dist/operations/download-file/download-file-executor.d.ts.map +0 -1
  435. package/dist/operations/imgly-remove-background/imgly-remove-background-def.d.ts.map +0 -1
  436. package/dist/operations/imgly-remove-background/imgly-remove-background-executor.d.ts.map +0 -1
  437. package/dist/operations/move-file/move-file-def.d.ts.map +0 -1
  438. package/dist/operations/move-file/move-file-executor.d.ts.map +0 -1
  439. package/dist/operations/operations-index.d.ts.map +0 -1
  440. package/dist/operations/patch-file/patch-file-def.d.ts.map +0 -1
  441. package/dist/operations/patch-file/patch-file-executor.d.ts.map +0 -1
  442. package/dist/operations/resize-image/resize-image-def.d.ts.map +0 -1
  443. package/dist/operations/resize-image/resize-image-executor.d.ts.map +0 -1
  444. package/dist/operations/split-image/split-image-def.d.ts.map +0 -1
  445. package/dist/operations/split-image/split-image-executor.d.ts.map +0 -1
  446. package/dist/operations/update-file/update-file-def.d.ts.map +0 -1
  447. package/dist/operations/update-file/update-file-executor.d.ts.map +0 -1
  448. package/dist/project-profiles/detection.d.ts.map +0 -1
  449. package/dist/project-profiles/index.d.ts.map +0 -1
  450. package/dist/project-profiles/profiles/golang.d.ts.map +0 -1
  451. package/dist/project-profiles/profiles/java-maven.d.ts.map +0 -1
  452. package/dist/project-profiles/profiles/javascript-npm.d.ts.map +0 -1
  453. package/dist/project-profiles/profiles/javascript-react.d.ts.map +0 -1
  454. package/dist/project-profiles/profiles/python-django.d.ts.map +0 -1
  455. package/dist/project-profiles/types.d.ts.map +0 -1
  456. package/dist/prompt/ai-service-fallback.d.ts.map +0 -1
  457. package/dist/prompt/function-calling-validate.d.ts.map +0 -1
  458. package/dist/prompt/function-calling.d.ts.map +0 -1
  459. package/dist/prompt/function-defs/ask-question-reflect.d.ts +0 -2
  460. package/dist/prompt/function-defs/ask-question-reflect.js +0 -21
  461. package/dist/prompt/function-defs/ask-question-reflect.js.map +0 -1
  462. package/dist/prompt/function-defs/ask-question.d.ts.map +0 -1
  463. package/dist/prompt/function-defs/codegen-planning.d.ts.map +0 -1
  464. package/dist/prompt/function-defs/codegen-summary.d.ts.map +0 -1
  465. package/dist/prompt/function-defs/create-directory.d.ts +0 -21
  466. package/dist/prompt/function-defs/create-directory.js +0 -22
  467. package/dist/prompt/function-defs/create-directory.js.map +0 -1
  468. package/dist/prompt/function-defs/create-file.d.ts +0 -25
  469. package/dist/prompt/function-defs/create-file.js +0 -26
  470. package/dist/prompt/function-defs/create-file.js.map +0 -1
  471. package/dist/prompt/function-defs/delete-file.d.ts +0 -21
  472. package/dist/prompt/function-defs/delete-file.js +0 -22
  473. package/dist/prompt/function-defs/delete-file.js.map +0 -1
  474. package/dist/prompt/function-defs/download-file.d.ts +0 -25
  475. package/dist/prompt/function-defs/download-file.js +0 -26
  476. package/dist/prompt/function-defs/download-file.js.map +0 -1
  477. package/dist/prompt/function-defs/explanation.d.ts.map +0 -1
  478. package/dist/prompt/function-defs/generate-image.d.ts.map +0 -1
  479. package/dist/prompt/function-defs/get-image-assets.d.ts.map +0 -1
  480. package/dist/prompt/function-defs/get-source-code.d.ts.map +0 -1
  481. package/dist/prompt/function-defs/imgly-remove-background.d.ts +0 -25
  482. package/dist/prompt/function-defs/imgly-remove-background.js +0 -26
  483. package/dist/prompt/function-defs/imgly-remove-background.js.map +0 -1
  484. package/dist/prompt/function-defs/move-file.d.ts +0 -25
  485. package/dist/prompt/function-defs/move-file.js +0 -26
  486. package/dist/prompt/function-defs/move-file.js.map +0 -1
  487. package/dist/prompt/function-defs/optimize-context.d.ts.map +0 -1
  488. package/dist/prompt/function-defs/patch-file.d.ts +0 -25
  489. package/dist/prompt/function-defs/patch-file.js +0 -39
  490. package/dist/prompt/function-defs/patch-file.js.map +0 -1
  491. package/dist/prompt/function-defs/read-history.d.ts.map +0 -1
  492. package/dist/prompt/function-defs/resize-image.d.ts +0 -36
  493. package/dist/prompt/function-defs/resize-image.js +0 -37
  494. package/dist/prompt/function-defs/resize-image.js.map +0 -1
  495. package/dist/prompt/function-defs/set-summaries.d.ts.map +0 -1
  496. package/dist/prompt/function-defs/split-image.d.ts +0 -57
  497. package/dist/prompt/function-defs/split-image.js +0 -46
  498. package/dist/prompt/function-defs/split-image.js.map +0 -1
  499. package/dist/prompt/function-defs/update-file.d.ts +0 -25
  500. package/dist/prompt/function-defs/update-file.js +0 -26
  501. package/dist/prompt/function-defs/update-file.js.map +0 -1
  502. package/dist/prompt/function-defs/update-history.d.ts.map +0 -1
  503. package/dist/prompt/limits.d.ts.map +0 -1
  504. package/dist/prompt/limits.test.d.ts +0 -1
  505. package/dist/prompt/limits.test.js +0 -35
  506. package/dist/prompt/limits.test.js.map +0 -1
  507. package/dist/prompt/prompt-codegen.d.ts.map +0 -1
  508. package/dist/prompt/prompt-codegen.test.d.ts +0 -1
  509. package/dist/prompt/prompt-codegen.test.js +0 -92
  510. package/dist/prompt/prompt-codegen.test.js.map +0 -1
  511. package/dist/prompt/prompt-consts.d.ts +0 -1
  512. package/dist/prompt/prompt-consts.js +0 -2
  513. package/dist/prompt/prompt-consts.js.map +0 -1
  514. package/dist/prompt/prompt-service-ask-question.test.d.ts +0 -4
  515. package/dist/prompt/prompt-service-ask-question.test.js +0 -162
  516. package/dist/prompt/prompt-service-ask-question.test.js.map +0 -1
  517. package/dist/prompt/prompt-service.ai-services.test.d.ts +0 -1
  518. package/dist/prompt/prompt-service.ai-services.test.js +0 -149
  519. package/dist/prompt/prompt-service.ai-services.test.js.map +0 -1
  520. package/dist/prompt/prompt-service.context-optimization.test.d.ts +0 -1
  521. package/dist/prompt/prompt-service.context-optimization.test.js +0 -212
  522. package/dist/prompt/prompt-service.context-optimization.test.js.map +0 -1
  523. package/dist/prompt/prompt-service.d.ts.map +0 -1
  524. package/dist/prompt/prompt-service.image-handling.test.d.ts +0 -1
  525. package/dist/prompt/prompt-service.image-handling.test.js +0 -212
  526. package/dist/prompt/prompt-service.image-handling.test.js.map +0 -1
  527. package/dist/prompt/prompt-service.test-utils.d.ts.map +0 -1
  528. package/dist/prompt/prompt-service.test.d.ts +0 -2
  529. package/dist/prompt/prompt-service.test.js +0 -629
  530. package/dist/prompt/prompt-service.test.js.map +0 -1
  531. package/dist/prompt/prompt-service.validation-recovery.test.d.ts +0 -1
  532. package/dist/prompt/prompt-service.validation-recovery.test.js +0 -263
  533. package/dist/prompt/prompt-service.validation-recovery.test.js.map +0 -1
  534. package/dist/prompt/static-prompts.d.ts.map +0 -1
  535. package/dist/prompt/steps/step-ask-question/handlers/cancel-code-generation.d.ts +0 -2
  536. package/dist/prompt/steps/step-ask-question/handlers/cancel-code-generation.d.ts.map +0 -1
  537. package/dist/prompt/steps/step-ask-question/handlers/cancel-code-generation.js.map +0 -1
  538. package/dist/prompt/steps/step-ask-question/handlers/code-generation.d.ts.map +0 -1
  539. package/dist/prompt/steps/step-ask-question/handlers/confirm-code-generation.d.ts.map +0 -1
  540. package/dist/prompt/steps/step-ask-question/handlers/context-optimization.d.ts.map +0 -1
  541. package/dist/prompt/steps/step-ask-question/handlers/default-action.d.ts +0 -2
  542. package/dist/prompt/steps/step-ask-question/handlers/default-action.d.ts.map +0 -1
  543. package/dist/prompt/steps/step-ask-question/handlers/default-action.js +0 -15
  544. package/dist/prompt/steps/step-ask-question/handlers/default-action.js.map +0 -1
  545. package/dist/prompt/steps/step-ask-question/handlers/handle-request-answer-with-image.d.ts +0 -2
  546. package/dist/prompt/steps/step-ask-question/handlers/handle-request-answer-with-image.js +0 -86
  547. package/dist/prompt/steps/step-ask-question/handlers/handle-request-answer-with-image.js.map +0 -1
  548. package/dist/prompt/steps/step-ask-question/handlers/handle-request-answer.d.ts +0 -2
  549. package/dist/prompt/steps/step-ask-question/handlers/handle-request-answer.js +0 -20
  550. package/dist/prompt/steps/step-ask-question/handlers/handle-request-answer.js.map +0 -1
  551. package/dist/prompt/steps/step-ask-question/handlers/handle-search-code.d.ts.map +0 -1
  552. package/dist/prompt/steps/step-ask-question/handlers/handle-send-message-with-image.d.ts +0 -2
  553. package/dist/prompt/steps/step-ask-question/handlers/handle-send-message-with-image.d.ts.map +0 -1
  554. package/dist/prompt/steps/step-ask-question/handlers/handle-send-message-with-image.js.map +0 -1
  555. package/dist/prompt/steps/step-ask-question/handlers/handle-send-message.d.ts.map +0 -1
  556. package/dist/prompt/steps/step-ask-question/handlers/handler-utils.d.ts +0 -0
  557. package/dist/prompt/steps/step-ask-question/handlers/handler-utils.js +0 -2
  558. package/dist/prompt/steps/step-ask-question/handlers/handler-utils.js.map +0 -1
  559. package/dist/prompt/steps/step-ask-question/handlers/lint.d.ts.map +0 -1
  560. package/dist/prompt/steps/step-ask-question/handlers/remove-files-from-context.d.ts.map +0 -1
  561. package/dist/prompt/steps/step-ask-question/handlers/request-files-content.d.ts.map +0 -1
  562. package/dist/prompt/steps/step-ask-question/handlers/request-permissions.d.ts.map +0 -1
  563. package/dist/prompt/steps/step-ask-question/handlers/start-code-generation.d.ts +0 -2
  564. package/dist/prompt/steps/step-ask-question/handlers/start-code-generation.js +0 -16
  565. package/dist/prompt/steps/step-ask-question/handlers/start-code-generation.js.map +0 -1
  566. package/dist/prompt/steps/step-ask-question/step-ask-question-handlers.d.ts +0 -0
  567. package/dist/prompt/steps/step-ask-question/step-ask-question-handlers.js +0 -2
  568. package/dist/prompt/steps/step-ask-question/step-ask-question-handlers.js.map +0 -1
  569. package/dist/prompt/steps/step-ask-question/step-ask-question-reflect.d.ts +0 -4
  570. package/dist/prompt/steps/step-ask-question/step-ask-question-reflect.js +0 -92
  571. package/dist/prompt/steps/step-ask-question/step-ask-question-reflect.js.map +0 -1
  572. package/dist/prompt/steps/step-ask-question/step-ask-question-types.d.ts.map +0 -1
  573. package/dist/prompt/steps/step-ask-question/step-ask-question.d.ts.map +0 -1
  574. package/dist/prompt/steps/step-ask-question-handlers.d.ts +0 -10
  575. package/dist/prompt/steps/step-ask-question-handlers.js +0 -257
  576. package/dist/prompt/steps/step-ask-question-handlers.js.map +0 -1
  577. package/dist/prompt/steps/step-ask-question-reflect.d.ts +0 -4
  578. package/dist/prompt/steps/step-ask-question-reflect.js +0 -48
  579. package/dist/prompt/steps/step-ask-question-reflect.js.map +0 -1
  580. package/dist/prompt/steps/step-ask-question-types.d.ts +0 -55
  581. package/dist/prompt/steps/step-ask-question-types.js +0 -2
  582. package/dist/prompt/steps/step-ask-question-types.js.map +0 -1
  583. package/dist/prompt/steps/step-ask-question.d.ts +0 -6
  584. package/dist/prompt/steps/step-ask-question.js +0 -80
  585. package/dist/prompt/steps/step-ask-question.js.map +0 -1
  586. package/dist/prompt/steps/step-codegen-planning.d.ts.map +0 -1
  587. package/dist/prompt/steps/step-codegen-summary.d.ts +0 -7
  588. package/dist/prompt/steps/step-codegen-summary.d.ts.map +0 -1
  589. package/dist/prompt/steps/step-codegen-summary.js +0 -106
  590. package/dist/prompt/steps/step-codegen-summary.js.map +0 -1
  591. package/dist/prompt/steps/step-codegen-summary.test.d.ts +0 -1
  592. package/dist/prompt/steps/step-codegen-summary.test.js +0 -136
  593. package/dist/prompt/steps/step-codegen-summary.test.js.map +0 -1
  594. package/dist/prompt/steps/step-context-optimization.d.ts.map +0 -1
  595. package/dist/prompt/steps/step-context-optimization.test.d.ts +0 -2
  596. package/dist/prompt/steps/step-context-optimization.test.js +0 -475
  597. package/dist/prompt/steps/step-context-optimization.test.js.map +0 -1
  598. package/dist/prompt/steps/step-ensure-context.d.ts.map +0 -1
  599. package/dist/prompt/steps/step-ensure-context.test.d.ts +0 -1
  600. package/dist/prompt/steps/step-ensure-context.test.js +0 -326
  601. package/dist/prompt/steps/step-ensure-context.test.js.map +0 -1
  602. package/dist/prompt/steps/step-generate-image.d.ts.map +0 -1
  603. package/dist/prompt/steps/step-generate-summary.d.ts.map +0 -1
  604. package/dist/prompt/steps/step-history-update.d.ts.map +0 -1
  605. package/dist/prompt/steps/step-summarization.d.ts.map +0 -1
  606. package/dist/prompt/steps/step-validate-recover.d.ts.map +0 -1
  607. package/dist/prompt/steps/step-verify-patch.d.ts.map +0 -1
  608. package/dist/prompt/steps/steps-types.d.ts.map +0 -1
  609. package/dist/prompt/steps/steps-utils.d.ts.map +0 -1
  610. package/dist/prompt/systemprompt.d.ts.map +0 -1
  611. package/dist/prompt/systemprompt.test.d.ts +0 -3
  612. package/dist/prompt/systemprompt.test.js +0 -42
  613. package/dist/prompt/systemprompt.test.js.map +0 -1
  614. package/dist/prompt/token-estimator.d.ts.map +0 -1
  615. package/dist/src/ai-service/ai-studio.d.ts +0 -6
  616. package/dist/src/ai-service/ai-studio.js +0 -190
  617. package/dist/src/ai-service/ai-studio.js.map +0 -1
  618. package/dist/src/ai-service/anthropic.d.ts +0 -6
  619. package/dist/src/ai-service/anthropic.js +0 -150
  620. package/dist/src/ai-service/anthropic.js.map +0 -1
  621. package/dist/src/ai-service/chat-gpt.d.ts +0 -5
  622. package/dist/src/ai-service/chat-gpt.js +0 -146
  623. package/dist/src/ai-service/chat-gpt.js.map +0 -1
  624. package/dist/src/ai-service/common.js +0 -38
  625. package/dist/src/ai-service/common.js.map +0 -1
  626. package/dist/src/ai-service/common.test.d.ts +0 -1
  627. package/dist/src/ai-service/common.test.js +0 -86
  628. package/dist/src/ai-service/common.test.js.map +0 -1
  629. package/dist/src/ai-service/dall-e.d.ts +0 -14
  630. package/dist/src/ai-service/dall-e.js +0 -50
  631. package/dist/src/ai-service/dall-e.js.map +0 -1
  632. package/dist/src/ai-service/unescape-function-call.d.ts +0 -7
  633. package/dist/src/ai-service/unescape-function-call.js +0 -59
  634. package/dist/src/ai-service/unescape-function-call.js.map +0 -1
  635. package/dist/src/ai-service/unescape-function-call.test.d.ts +0 -1
  636. package/dist/src/ai-service/unescape-function-call.test.js +0 -18
  637. package/dist/src/ai-service/unescape-function-call.test.js.map +0 -1
  638. package/dist/src/ai-service/vertex-ai-claude.d.ts +0 -5
  639. package/dist/src/ai-service/vertex-ai-claude.js +0 -104
  640. package/dist/src/ai-service/vertex-ai-claude.js.map +0 -1
  641. package/dist/src/ai-service/vertex-ai-imagen.d.ts +0 -14
  642. package/dist/src/ai-service/vertex-ai-imagen.js +0 -77
  643. package/dist/src/ai-service/vertex-ai-imagen.js.map +0 -1
  644. package/dist/src/ai-service/vertex-ai.d.ts +0 -6
  645. package/dist/src/ai-service/vertex-ai.js +0 -202
  646. package/dist/src/ai-service/vertex-ai.js.map +0 -1
  647. package/dist/src/cli/cli-options.d.ts +0 -10
  648. package/dist/src/cli/cli-options.js +0 -132
  649. package/dist/src/cli/cli-options.js.map +0 -1
  650. package/dist/src/cli/cli-options.test.d.ts +0 -1
  651. package/dist/src/cli/cli-options.test.js +0 -34
  652. package/dist/src/cli/cli-options.test.js.map +0 -1
  653. package/dist/src/cli/cli-params.d.ts +0 -32
  654. package/dist/src/cli/cli-params.js +0 -106
  655. package/dist/src/cli/cli-params.js.map +0 -1
  656. package/dist/src/cli/cli-params.test.d.ts +0 -1
  657. package/dist/src/cli/cli-params.test.js +0 -38
  658. package/dist/src/cli/cli-params.test.js.map +0 -1
  659. package/dist/src/cli/service-autodetect.d.ts +0 -2
  660. package/dist/src/cli/service-autodetect.js +0 -17
  661. package/dist/src/cli/service-autodetect.js.map +0 -1
  662. package/dist/src/cli/service-autodetect.test.d.ts +0 -1
  663. package/dist/src/cli/service-autodetect.test.js +0 -38
  664. package/dist/src/cli/service-autodetect.test.js.map +0 -1
  665. package/dist/src/cli/validate-cli-params.d.ts +0 -18
  666. package/dist/src/cli/validate-cli-params.js +0 -145
  667. package/dist/src/cli/validate-cli-params.js.map +0 -1
  668. package/dist/src/cli/validate-cli-params.test.d.ts +0 -1
  669. package/dist/src/cli/validate-cli-params.test.js +0 -106
  670. package/dist/src/cli/validate-cli-params.test.js.map +0 -1
  671. package/dist/src/files/cache-file.d.ts +0 -3
  672. package/dist/src/files/cache-file.js +0 -36
  673. package/dist/src/files/cache-file.js.map +0 -1
  674. package/dist/src/files/file-utils.d.ts +0 -2
  675. package/dist/src/files/file-utils.js +0 -7
  676. package/dist/src/files/file-utils.js.map +0 -1
  677. package/dist/src/files/file-utils.test.d.ts +0 -1
  678. package/dist/src/files/file-utils.test.js +0 -18
  679. package/dist/src/files/file-utils.test.js.map +0 -1
  680. package/dist/src/files/find-files.d.ts +0 -9
  681. package/dist/src/files/find-files.js +0 -81
  682. package/dist/src/files/find-files.js.map +0 -1
  683. package/dist/src/files/path-utils.d.ts +0 -1
  684. package/dist/src/files/path-utils.js +0 -12
  685. package/dist/src/files/path-utils.js.map +0 -1
  686. package/dist/src/files/read-files.d.ts +0 -21
  687. package/dist/src/files/read-files.js +0 -68
  688. package/dist/src/files/read-files.js.map +0 -1
  689. package/dist/src/files/read-files.test.d.ts +0 -1
  690. package/dist/src/files/read-files.test.js +0 -89
  691. package/dist/src/files/read-files.test.js.map +0 -1
  692. package/dist/src/files/temp-buffer.d.ts +0 -2
  693. package/dist/src/files/temp-buffer.js +0 -12
  694. package/dist/src/files/temp-buffer.js.map +0 -1
  695. package/dist/src/files/update-files.d.ts +0 -6
  696. package/dist/src/files/update-files.js +0 -19
  697. package/dist/src/files/update-files.js.map +0 -1
  698. package/dist/src/images/ensure-alpha.d.ts +0 -1
  699. package/dist/src/images/ensure-alpha.js +0 -5
  700. package/dist/src/images/ensure-alpha.js.map +0 -1
  701. package/dist/src/images/imgly-remove-background.d.ts +0 -2
  702. package/dist/src/images/imgly-remove-background.js +0 -21
  703. package/dist/src/images/imgly-remove-background.js.map +0 -1
  704. package/dist/src/images/resize-image.d.ts +0 -19
  705. package/dist/src/images/resize-image.js +0 -22
  706. package/dist/src/images/resize-image.js.map +0 -1
  707. package/dist/src/images/split-image.d.ts +0 -18
  708. package/dist/src/images/split-image.js +0 -25
  709. package/dist/src/images/split-image.js.map +0 -1
  710. package/dist/src/index.d.ts +0 -3
  711. package/dist/src/index.js +0 -3
  712. package/dist/src/index.js.map +0 -1
  713. package/dist/src/main/codegen-types.d.ts +0 -58
  714. package/dist/src/main/codegen-types.js +0 -2
  715. package/dist/src/main/codegen-types.js.map +0 -1
  716. package/dist/src/main/codegen-utils.d.ts +0 -3
  717. package/dist/src/main/codegen-utils.js +0 -18
  718. package/dist/src/main/codegen-utils.js.map +0 -1
  719. package/dist/src/main/codegen.d.ts +0 -4
  720. package/dist/src/main/codegen.js +0 -201
  721. package/dist/src/main/codegen.js.map +0 -1
  722. package/dist/src/main/codegen.test.d.ts +0 -3
  723. package/dist/src/main/codegen.test.js +0 -288
  724. package/dist/src/main/codegen.test.js.map +0 -1
  725. package/dist/src/main/common/content-bus-types.d.ts +0 -21
  726. package/dist/src/main/common/content-bus-types.js +0 -11
  727. package/dist/src/main/common/content-bus-types.js.map +0 -1
  728. package/dist/src/main/common/content-bus.d.ts +0 -10
  729. package/dist/src/main/common/content-bus.js +0 -39
  730. package/dist/src/main/common/content-bus.js.map +0 -1
  731. package/dist/src/main/common/cost-collector.d.ts +0 -11
  732. package/dist/src/main/common/cost-collector.js +0 -90
  733. package/dist/src/main/common/cost-collector.js.map +0 -1
  734. package/dist/src/main/common/user-actions.d.ts +0 -19
  735. package/dist/src/main/common/user-actions.js +0 -30
  736. package/dist/src/main/common/user-actions.js.map +0 -1
  737. package/dist/src/main/config-lib.d.ts +0 -36
  738. package/dist/src/main/config-lib.js +0 -51
  739. package/dist/src/main/config-lib.js.map +0 -1
  740. package/dist/src/main/config-lib.test.d.ts +0 -1
  741. package/dist/src/main/config-lib.test.js +0 -64
  742. package/dist/src/main/config-lib.test.js.map +0 -1
  743. package/dist/src/main/config.d.ts +0 -7
  744. package/dist/src/main/config.js +0 -51
  745. package/dist/src/main/config.js.map +0 -1
  746. package/dist/src/main/interactive/codegen-interactive.d.ts +0 -2
  747. package/dist/src/main/interactive/codegen-interactive.js +0 -61
  748. package/dist/src/main/interactive/codegen-interactive.js.map +0 -1
  749. package/dist/src/main/interactive/codegen-interactive.test.d.ts +0 -5
  750. package/dist/src/main/interactive/codegen-interactive.test.js +0 -79
  751. package/dist/src/main/interactive/codegen-interactive.test.js.map +0 -1
  752. package/dist/src/main/interactive/codegen-worker.d.ts +0 -3
  753. package/dist/src/main/interactive/codegen-worker.js +0 -54
  754. package/dist/src/main/interactive/codegen-worker.js.map +0 -1
  755. package/dist/src/main/interactive/common.d.ts +0 -5
  756. package/dist/src/main/interactive/common.js +0 -51
  757. package/dist/src/main/interactive/common.js.map +0 -1
  758. package/dist/src/main/interactive/configure.d.ts +0 -2
  759. package/dist/src/main/interactive/configure.js +0 -99
  760. package/dist/src/main/interactive/configure.js.map +0 -1
  761. package/dist/src/main/interactive/error-handling.d.ts +0 -1
  762. package/dist/src/main/interactive/error-handling.js +0 -43
  763. package/dist/src/main/interactive/error-handling.js.map +0 -1
  764. package/dist/src/main/interactive/help.d.ts +0 -1
  765. package/dist/src/main/interactive/help.js +0 -22
  766. package/dist/src/main/interactive/help.js.map +0 -1
  767. package/dist/src/main/interactive/process-comments.d.ts +0 -2
  768. package/dist/src/main/interactive/process-comments.js +0 -39
  769. package/dist/src/main/interactive/process-comments.js.map +0 -1
  770. package/dist/src/main/interactive/select-ai-service.d.ts +0 -2
  771. package/dist/src/main/interactive/select-ai-service.js +0 -27
  772. package/dist/src/main/interactive/select-ai-service.js.map +0 -1
  773. package/dist/src/main/interactive/task-file.d.ts +0 -2
  774. package/dist/src/main/interactive/task-file.js +0 -35
  775. package/dist/src/main/interactive/task-file.js.map +0 -1
  776. package/dist/src/main/interactive/text-prompt.d.ts +0 -2
  777. package/dist/src/main/interactive/text-prompt.js +0 -18
  778. package/dist/src/main/interactive/text-prompt.js.map +0 -1
  779. package/dist/src/main/interactive/user-action-handlers.d.ts +0 -1
  780. package/dist/src/main/interactive/user-action-handlers.js +0 -13
  781. package/dist/src/main/interactive/user-action-handlers.js.map +0 -1
  782. package/dist/src/main/interactive/user-interrupt.d.ts +0 -1
  783. package/dist/src/main/interactive/user-interrupt.js +0 -36
  784. package/dist/src/main/interactive/user-interrupt.js.map +0 -1
  785. package/dist/src/main/plugin-loader.d.ts +0 -6
  786. package/dist/src/main/plugin-loader.js +0 -40
  787. package/dist/src/main/plugin-loader.js.map +0 -1
  788. package/dist/src/main/ui/backend/api-utils.d.ts +0 -2
  789. package/dist/src/main/ui/backend/api-utils.js +0 -18
  790. package/dist/src/main/ui/backend/api-utils.js.map +0 -1
  791. package/dist/src/main/ui/backend/api.d.ts +0 -2
  792. package/dist/src/main/ui/backend/api.js +0 -210
  793. package/dist/src/main/ui/backend/api.js.map +0 -1
  794. package/dist/src/main/ui/backend/server.d.ts +0 -7
  795. package/dist/src/main/ui/backend/server.js +0 -83
  796. package/dist/src/main/ui/backend/server.js.map +0 -1
  797. package/dist/src/main/ui/backend/service.d.ts +0 -44
  798. package/dist/src/main/ui/backend/service.js +0 -171
  799. package/dist/src/main/ui/backend/service.js.map +0 -1
  800. package/dist/src/main/ui/codegen-ui.d.ts +0 -2
  801. package/dist/src/main/ui/codegen-ui.js +0 -13
  802. package/dist/src/main/ui/codegen-ui.js.map +0 -1
  803. package/dist/src/main/ui/common/api-types.d.ts +0 -20
  804. package/dist/src/main/ui/common/api-types.js +0 -2
  805. package/dist/src/main/ui/common/api-types.js.map +0 -1
  806. package/dist/src/main/ui/user-action-handlers.d.ts +0 -2
  807. package/dist/src/main/ui/user-action-handlers.js +0 -14
  808. package/dist/src/main/ui/user-action-handlers.js.map +0 -1
  809. package/dist/src/operations/create-directory/create-directory-def.d.ts +0 -9
  810. package/dist/src/operations/create-directory/create-directory-def.js +0 -22
  811. package/dist/src/operations/create-directory/create-directory-def.js.map +0 -1
  812. package/dist/src/operations/create-directory/create-directory-executor.d.ts +0 -6
  813. package/dist/src/operations/create-directory/create-directory-executor.js +0 -22
  814. package/dist/src/operations/create-directory/create-directory-executor.js.map +0 -1
  815. package/dist/src/operations/create-file/create-file-def.d.ts +0 -10
  816. package/dist/src/operations/create-file/create-file-def.js +0 -26
  817. package/dist/src/operations/create-file/create-file-def.js.map +0 -1
  818. package/dist/src/operations/create-file/create-file-executor.d.ts +0 -6
  819. package/dist/src/operations/create-file/create-file-executor.js +0 -27
  820. package/dist/src/operations/create-file/create-file-executor.js.map +0 -1
  821. package/dist/src/operations/delete-file/delete-file-def.d.ts +0 -9
  822. package/dist/src/operations/delete-file/delete-file-def.js +0 -22
  823. package/dist/src/operations/delete-file/delete-file-def.js.map +0 -1
  824. package/dist/src/operations/delete-file/delete-file-executor.d.ts +0 -6
  825. package/dist/src/operations/delete-file/delete-file-executor.js +0 -23
  826. package/dist/src/operations/delete-file/delete-file-executor.js.map +0 -1
  827. package/dist/src/operations/download-file/download-file-def.d.ts +0 -10
  828. package/dist/src/operations/download-file/download-file-def.js +0 -26
  829. package/dist/src/operations/download-file/download-file-def.js.map +0 -1
  830. package/dist/src/operations/download-file/download-file-executor.d.ts +0 -6
  831. package/dist/src/operations/download-file/download-file-executor.js +0 -44
  832. package/dist/src/operations/download-file/download-file-executor.js.map +0 -1
  833. package/dist/src/operations/imgly-remove-background/imgly-remove-background-def.d.ts +0 -10
  834. package/dist/src/operations/imgly-remove-background/imgly-remove-background-def.js +0 -26
  835. package/dist/src/operations/imgly-remove-background/imgly-remove-background-def.js.map +0 -1
  836. package/dist/src/operations/imgly-remove-background/imgly-remove-background-executor.d.ts +0 -6
  837. package/dist/src/operations/imgly-remove-background/imgly-remove-background-executor.js +0 -40
  838. package/dist/src/operations/imgly-remove-background/imgly-remove-background-executor.js.map +0 -1
  839. package/dist/src/operations/move-file/move-file-def.d.ts +0 -10
  840. package/dist/src/operations/move-file/move-file-def.js +0 -26
  841. package/dist/src/operations/move-file/move-file-def.js.map +0 -1
  842. package/dist/src/operations/move-file/move-file-executor.d.ts +0 -6
  843. package/dist/src/operations/move-file/move-file-executor.js +0 -29
  844. package/dist/src/operations/move-file/move-file-executor.js.map +0 -1
  845. package/dist/src/operations/operations-index.d.ts +0 -3
  846. package/dist/src/operations/operations-index.js +0 -33
  847. package/dist/src/operations/operations-index.js.map +0 -1
  848. package/dist/src/operations/patch-file/patch-file-def.d.ts +0 -10
  849. package/dist/src/operations/patch-file/patch-file-def.js +0 -39
  850. package/dist/src/operations/patch-file/patch-file-def.js.map +0 -1
  851. package/dist/src/operations/patch-file/patch-file-executor.d.ts +0 -5
  852. package/dist/src/operations/patch-file/patch-file-executor.js +0 -26
  853. package/dist/src/operations/patch-file/patch-file-executor.js.map +0 -1
  854. package/dist/src/operations/resize-image/resize-image-def.d.ts +0 -13
  855. package/dist/src/operations/resize-image/resize-image-def.js +0 -37
  856. package/dist/src/operations/resize-image/resize-image-def.js.map +0 -1
  857. package/dist/src/operations/resize-image/resize-image-executor.d.ts +0 -5
  858. package/dist/src/operations/resize-image/resize-image-executor.js +0 -30
  859. package/dist/src/operations/resize-image/resize-image-executor.js.map +0 -1
  860. package/dist/src/operations/split-image/split-image-def.d.ts +0 -18
  861. package/dist/src/operations/split-image/split-image-def.js +0 -46
  862. package/dist/src/operations/split-image/split-image-def.js.map +0 -1
  863. package/dist/src/operations/split-image/split-image-executor.d.ts +0 -6
  864. package/dist/src/operations/split-image/split-image-executor.js +0 -51
  865. package/dist/src/operations/split-image/split-image-executor.js.map +0 -1
  866. package/dist/src/operations/update-file/update-file-def.d.ts +0 -10
  867. package/dist/src/operations/update-file/update-file-def.js +0 -26
  868. package/dist/src/operations/update-file/update-file-def.js.map +0 -1
  869. package/dist/src/operations/update-file/update-file-executor.d.ts +0 -5
  870. package/dist/src/operations/update-file/update-file-executor.js +0 -22
  871. package/dist/src/operations/update-file/update-file-executor.js.map +0 -1
  872. package/dist/src/prompt/ai-service-fallback.d.ts +0 -3
  873. package/dist/src/prompt/ai-service-fallback.js +0 -84
  874. package/dist/src/prompt/ai-service-fallback.js.map +0 -1
  875. package/dist/src/prompt/function-calling-validate.d.ts +0 -3
  876. package/dist/src/prompt/function-calling-validate.js +0 -99
  877. package/dist/src/prompt/function-calling-validate.js.map +0 -1
  878. package/dist/src/prompt/function-calling.d.ts +0 -5
  879. package/dist/src/prompt/function-calling.js +0 -43
  880. package/dist/src/prompt/function-calling.js.map +0 -1
  881. package/dist/src/prompt/function-defs/ask-question-reflect.d.ts +0 -2
  882. package/dist/src/prompt/function-defs/ask-question-reflect.js +0 -21
  883. package/dist/src/prompt/function-defs/ask-question-reflect.js.map +0 -1
  884. package/dist/src/prompt/function-defs/ask-question.d.ts +0 -8
  885. package/dist/src/prompt/function-defs/ask-question.js +0 -100
  886. package/dist/src/prompt/function-defs/ask-question.js.map +0 -1
  887. package/dist/src/prompt/function-defs/codegen-summary.d.ts +0 -5
  888. package/dist/src/prompt/function-defs/codegen-summary.js +0 -82
  889. package/dist/src/prompt/function-defs/codegen-summary.js.map +0 -1
  890. package/dist/src/prompt/function-defs/explanation.d.ts +0 -5
  891. package/dist/src/prompt/function-defs/explanation.js +0 -18
  892. package/dist/src/prompt/function-defs/explanation.js.map +0 -1
  893. package/dist/src/prompt/function-defs/generate-image.d.ts +0 -5
  894. package/dist/src/prompt/function-defs/generate-image.js +0 -42
  895. package/dist/src/prompt/function-defs/generate-image.js.map +0 -1
  896. package/dist/src/prompt/function-defs/get-image-assets.d.ts +0 -5
  897. package/dist/src/prompt/function-defs/get-image-assets.js +0 -21
  898. package/dist/src/prompt/function-defs/get-image-assets.js.map +0 -1
  899. package/dist/src/prompt/function-defs/get-source-code.d.ts +0 -5
  900. package/dist/src/prompt/function-defs/get-source-code.js +0 -22
  901. package/dist/src/prompt/function-defs/get-source-code.js.map +0 -1
  902. package/dist/src/prompt/function-defs/optimize-context.d.ts +0 -5
  903. package/dist/src/prompt/function-defs/optimize-context.js +0 -47
  904. package/dist/src/prompt/function-defs/optimize-context.js.map +0 -1
  905. package/dist/src/prompt/function-defs/read-history.d.ts +0 -2
  906. package/dist/src/prompt/function-defs/read-history.js +0 -14
  907. package/dist/src/prompt/function-defs/read-history.js.map +0 -1
  908. package/dist/src/prompt/function-defs/set-summaries.d.ts +0 -5
  909. package/dist/src/prompt/function-defs/set-summaries.js +0 -32
  910. package/dist/src/prompt/function-defs/set-summaries.js.map +0 -1
  911. package/dist/src/prompt/function-defs/update-history.d.ts +0 -5
  912. package/dist/src/prompt/function-defs/update-history.js +0 -22
  913. package/dist/src/prompt/function-defs/update-history.js.map +0 -1
  914. package/dist/src/prompt/limits.d.ts +0 -3
  915. package/dist/src/prompt/limits.js +0 -21
  916. package/dist/src/prompt/limits.js.map +0 -1
  917. package/dist/src/prompt/limits.test.d.ts +0 -1
  918. package/dist/src/prompt/limits.test.js +0 -35
  919. package/dist/src/prompt/limits.test.js.map +0 -1
  920. package/dist/src/prompt/prompt-codegen.d.ts +0 -9
  921. package/dist/src/prompt/prompt-codegen.js +0 -117
  922. package/dist/src/prompt/prompt-codegen.js.map +0 -1
  923. package/dist/src/prompt/prompt-codegen.test.d.ts +0 -1
  924. package/dist/src/prompt/prompt-codegen.test.js +0 -98
  925. package/dist/src/prompt/prompt-codegen.test.js.map +0 -1
  926. package/dist/src/prompt/prompt-consts.d.ts +0 -1
  927. package/dist/src/prompt/prompt-consts.js +0 -2
  928. package/dist/src/prompt/prompt-consts.js.map +0 -1
  929. package/dist/src/prompt/prompt-service-ask-question.test.d.ts +0 -4
  930. package/dist/src/prompt/prompt-service-ask-question.test.js +0 -215
  931. package/dist/src/prompt/prompt-service-ask-question.test.js.map +0 -1
  932. package/dist/src/prompt/prompt-service.d.ts +0 -5
  933. package/dist/src/prompt/prompt-service.js +0 -214
  934. package/dist/src/prompt/prompt-service.js.map +0 -1
  935. package/dist/src/prompt/prompt-service.test.d.ts +0 -2
  936. package/dist/src/prompt/prompt-service.test.js +0 -553
  937. package/dist/src/prompt/prompt-service.test.js.map +0 -1
  938. package/dist/src/prompt/steps/step-ask-question/handlers/cancel-code-generation.d.ts +0 -2
  939. package/dist/src/prompt/steps/step-ask-question/handlers/cancel-code-generation.js +0 -16
  940. package/dist/src/prompt/steps/step-ask-question/handlers/cancel-code-generation.js.map +0 -1
  941. package/dist/src/prompt/steps/step-ask-question/handlers/confirm-code-generation.d.ts +0 -2
  942. package/dist/src/prompt/steps/step-ask-question/handlers/confirm-code-generation.js +0 -37
  943. package/dist/src/prompt/steps/step-ask-question/handlers/confirm-code-generation.js.map +0 -1
  944. package/dist/src/prompt/steps/step-ask-question/handlers/context-optimization.d.ts +0 -2
  945. package/dist/src/prompt/steps/step-ask-question/handlers/context-optimization.js +0 -36
  946. package/dist/src/prompt/steps/step-ask-question/handlers/context-optimization.js.map +0 -1
  947. package/dist/src/prompt/steps/step-ask-question/handlers/default-action.d.ts +0 -2
  948. package/dist/src/prompt/steps/step-ask-question/handlers/default-action.js +0 -18
  949. package/dist/src/prompt/steps/step-ask-question/handlers/default-action.js.map +0 -1
  950. package/dist/src/prompt/steps/step-ask-question/handlers/handle-request-answer.d.ts +0 -2
  951. package/dist/src/prompt/steps/step-ask-question/handlers/handle-request-answer.js +0 -20
  952. package/dist/src/prompt/steps/step-ask-question/handlers/handle-request-answer.js.map +0 -1
  953. package/dist/src/prompt/steps/step-ask-question/handlers/remove-files-from-context.d.ts +0 -2
  954. package/dist/src/prompt/steps/step-ask-question/handlers/remove-files-from-context.js +0 -43
  955. package/dist/src/prompt/steps/step-ask-question/handlers/remove-files-from-context.js.map +0 -1
  956. package/dist/src/prompt/steps/step-ask-question/handlers/request-files-content.d.ts +0 -2
  957. package/dist/src/prompt/steps/step-ask-question/handlers/request-files-content.js +0 -49
  958. package/dist/src/prompt/steps/step-ask-question/handlers/request-files-content.js.map +0 -1
  959. package/dist/src/prompt/steps/step-ask-question/handlers/request-permissions.d.ts +0 -2
  960. package/dist/src/prompt/steps/step-ask-question/handlers/request-permissions.js +0 -46
  961. package/dist/src/prompt/steps/step-ask-question/handlers/request-permissions.js.map +0 -1
  962. package/dist/src/prompt/steps/step-ask-question/handlers/start-code-generation.d.ts +0 -2
  963. package/dist/src/prompt/steps/step-ask-question/handlers/start-code-generation.js +0 -16
  964. package/dist/src/prompt/steps/step-ask-question/handlers/start-code-generation.js.map +0 -1
  965. package/dist/src/prompt/steps/step-ask-question/step-ask-question-handlers.d.ts +0 -0
  966. package/dist/src/prompt/steps/step-ask-question/step-ask-question-handlers.js +0 -2
  967. package/dist/src/prompt/steps/step-ask-question/step-ask-question-handlers.js.map +0 -1
  968. package/dist/src/prompt/steps/step-ask-question/step-ask-question-reflect.d.ts +0 -4
  969. package/dist/src/prompt/steps/step-ask-question/step-ask-question-reflect.js +0 -91
  970. package/dist/src/prompt/steps/step-ask-question/step-ask-question-reflect.js.map +0 -1
  971. package/dist/src/prompt/steps/step-ask-question/step-ask-question-types.d.ts +0 -55
  972. package/dist/src/prompt/steps/step-ask-question/step-ask-question-types.js +0 -2
  973. package/dist/src/prompt/steps/step-ask-question/step-ask-question-types.js.map +0 -1
  974. package/dist/src/prompt/steps/step-ask-question/step-ask-question.d.ts +0 -6
  975. package/dist/src/prompt/steps/step-ask-question/step-ask-question.js +0 -88
  976. package/dist/src/prompt/steps/step-ask-question/step-ask-question.js.map +0 -1
  977. package/dist/src/prompt/steps/step-context-optimization.d.ts +0 -4
  978. package/dist/src/prompt/steps/step-context-optimization.js +0 -200
  979. package/dist/src/prompt/steps/step-context-optimization.js.map +0 -1
  980. package/dist/src/prompt/steps/step-generate-image.d.ts +0 -2
  981. package/dist/src/prompt/steps/step-generate-image.js +0 -29
  982. package/dist/src/prompt/steps/step-generate-image.js.map +0 -1
  983. package/dist/src/prompt/steps/step-generate-summary.d.ts +0 -3
  984. package/dist/src/prompt/steps/step-generate-summary.js +0 -41
  985. package/dist/src/prompt/steps/step-generate-summary.js.map +0 -1
  986. package/dist/src/prompt/steps/step-history-update.d.ts +0 -5
  987. package/dist/src/prompt/steps/step-history-update.js +0 -54
  988. package/dist/src/prompt/steps/step-history-update.js.map +0 -1
  989. package/dist/src/prompt/steps/step-summarization.d.ts +0 -8
  990. package/dist/src/prompt/steps/step-summarization.js +0 -75
  991. package/dist/src/prompt/steps/step-summarization.js.map +0 -1
  992. package/dist/src/prompt/steps/step-validate-recover.d.ts +0 -2
  993. package/dist/src/prompt/steps/step-validate-recover.js +0 -51
  994. package/dist/src/prompt/steps/step-validate-recover.js.map +0 -1
  995. package/dist/src/prompt/steps/step-verify-patch.d.ts +0 -6
  996. package/dist/src/prompt/steps/step-verify-patch.js +0 -34
  997. package/dist/src/prompt/steps/step-verify-patch.js.map +0 -1
  998. package/dist/src/prompt/steps/steps-types.d.ts +0 -16
  999. package/dist/src/prompt/steps/steps-types.js +0 -6
  1000. package/dist/src/prompt/steps/steps-types.js.map +0 -1
  1001. package/dist/src/prompt/steps/steps-utils.d.ts +0 -7
  1002. package/dist/src/prompt/steps/steps-utils.js +0 -11
  1003. package/dist/src/prompt/steps/steps-utils.js.map +0 -1
  1004. package/dist/src/prompt/systemprompt.d.ts +0 -3
  1005. package/dist/src/prompt/systemprompt.js +0 -209
  1006. package/dist/src/prompt/systemprompt.js.map +0 -1
  1007. package/dist/src/prompt/systemprompt.test.d.ts +0 -3
  1008. package/dist/src/prompt/systemprompt.test.js +0 -43
  1009. package/dist/src/prompt/systemprompt.test.js.map +0 -1
  1010. package/dist/src/prompt/token-estimator.d.ts +0 -8
  1011. package/dist/src/prompt/token-estimator.js +0 -31
  1012. package/dist/src/prompt/token-estimator.js.map +0 -1
  1013. package/dist/src/vite-genaicode/vite-genaicode-frontend.d.ts +0 -1
  1014. package/dist/src/vite-genaicode/vite-genaicode-frontend.js +0 -142
  1015. package/dist/src/vite-genaicode/vite-genaicode-frontend.js.map +0 -1
  1016. package/dist/src/vite-genaicode/vite-genaicode-plugin.d.ts +0 -7
  1017. package/dist/src/vite-genaicode/vite-genaicode-plugin.js +0 -40
  1018. package/dist/src/vite-genaicode/vite-genaicode-plugin.js.map +0 -1
  1019. package/dist/vite-genaicode/vite-genaicode-frontend.d.ts.map +0 -1
  1020. package/dist/vite-genaicode/vite-genaicode-plugin.d.ts.map +0 -1
  1021. /package/dist/{ai-service/common.test.d.ts → main/ui/backend/endpoints/context-endpoint.d.ts} +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"prompt-assistant-image.js","sourceRoot":"","sources":["../../../src/eval/data/prompt-assistant-image.js"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C;QACE,IAAI,EAAE,cAAc;QACpB,YAAY,EACV,g5JAAg5J;KACn5J;IACD;QACE,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,mBAAmB;KAC1B;IACD;QACE,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,+QAA+Q;QACrR,aAAa,EAAE;YACb;gBACE,IAAI,EAAE,eAAe;aACtB;YACD;gBACE,IAAI,EAAE,gBAAgB;aACvB;YACD;gBACE,IAAI,EAAE,aAAa;aACpB;SACF;KACF;IACD;QACE,IAAI,EAAE,MAAM;QACZ,iBAAiB,EAAE;YACjB;gBACE,IAAI,EAAE,eAAe;gBACrB,OAAO,EACL,m0nCAAm0nC;aACt0nC;YACD;gBACE,IAAI,EAAE,gBAAgB;gBACtB,OAAO,EACL,qUAAqU;aACxU;YACD;gBACE,IAAI,EAAE,aAAa;gBACnB,OAAO,EACL,ycAAyc;aAC5c;SACF;QACD,IAAI,EAAE,2EAA2E;QACjF,KAAK,EAAE,IAAI;KACZ;IACD;QACE,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,uDAAuD;KAC9D;IACD;QACE,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,kCAAkC;KACzC;IACD;QACE,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,qBAAqB;QAC3B,MAAM,EAAE;YACN;gBACE,SAAS,EACP,s+lgIAAs+lgI;gBACx+lgI,SAAS,EAAE,WAAW;aACvB;SACF;KACF;IACD;QACE,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,uBAAuB;KAC9B;CACF,CAAC"}
@@ -1,34 +0,0 @@
1
- export const DEBUG_PROMPT3: ({
2
- type: string;
3
- systemPrompt: string;
4
- text?: undefined;
5
- functionCalls?: undefined;
6
- functionResponses?: undefined;
7
- cache?: undefined;
8
- } | {
9
- type: string;
10
- text: string;
11
- systemPrompt?: undefined;
12
- functionCalls?: undefined;
13
- functionResponses?: undefined;
14
- cache?: undefined;
15
- } | {
16
- type: string;
17
- text: string;
18
- functionCalls: {
19
- name: string;
20
- }[];
21
- systemPrompt?: undefined;
22
- functionResponses?: undefined;
23
- cache?: undefined;
24
- } | {
25
- type: string;
26
- functionResponses: {
27
- name: string;
28
- content: string;
29
- }[];
30
- text: string;
31
- cache: boolean;
32
- systemPrompt?: undefined;
33
- functionCalls?: undefined;
34
- })[];
@@ -1,71 +0,0 @@
1
- import { PLANNING_PROMPT } from '../../prompt/steps/step-codegen-planning';
2
- import { getSystemPrompt } from '../../prompt/systemprompt';
3
- export const DEBUG_PROMPT3 = [
4
- {
5
- type: 'systemPrompt',
6
- systemPrompt: getSystemPrompt({ verbose: false, askQuestion: true, interactive: false, ui: true }),
7
- },
8
- {
9
- type: 'user',
10
- text: 'Hello, GenAIcode!',
11
- },
12
- {
13
- type: 'assistant',
14
- text: 'Hello there! I guess you have a task for me today. Before we start, could you please provide me with: \n - the current source code of your application\n - the image assets (if available)\n - and conversational history (if available)\n \n Thanks',
15
- functionCalls: [
16
- {
17
- name: 'getSourceCode',
18
- },
19
- {
20
- name: 'getImageAssets',
21
- },
22
- {
23
- name: 'readHistory',
24
- },
25
- ],
26
- },
27
- {
28
- type: 'user',
29
- functionResponses: [
30
- {
31
- name: 'getSourceCode',
32
- content: '{"/Users/gtanczyk/src/codegen":{"README.md":{"summary":"GenAIcode: AI-powered code generation tool"},"knip.json":{"summary":"Configuration file for the Knip tool, used for code analysis and generation."},"package.json":{"summary":"Package configuration file for the GenAIcode tool, including dependencies, scripts, and other metadata."},"tsconfig.json":{"summary":"TypeScript config for GenAICode project."},"vitest.e2e.config.ts":{"summary":"Vitest config for e2e tests."},"vitest.unit.config.ts":{"summary":"Vite unit test configuration."},"vitest.workspace.ts":{"summary":"Vitest workspace config."}},"/Users/gtanczyk/src/codegen/bin":{"genaicode-dev.js":{"summary":"Development script for running GenAIcode tool."}},"/Users/gtanczyk/src/codegen/docs/design":{"configuration.md":{"summary":"Documentation on configuration options for the GenAIcode tool, including .genaicoderc file and lint command integration."},"context_optimization_feature.md":{"summary":"Design document for the context optimization feature in GenAIcode, aimed at reducing token usage."},"features.md":{"summary":"GenAIcode features: verbose mode, context optimization, explanations, vision, temperature control, configurable extensions, ignore paths, lint command integration, dry run, image generation, cheaper model, content mask, interactive clarification."},"file_operations.md":{"summary":"Overview of file operations supported by the GenAIcode tool, including creating, deleting, and moving files."},"genaicode_design_doc.md":{"summary":"Main design document for the GenAIcode tool, providing an overview of its architecture, components, and features."},"overview.md":{"summary":"GenAIcode overview: AI-powered code generation, multiple models, flexible configuration, dependency analysis, linting, vision, interactive/UI modes, context optimization."},"token_usage_reduction.md":{"summary":"Design document for implementing strategies to reduce token usage in the GenAIcode tool."}},"/Users/gtanczyk/src/codegen/docs/tasks":{"advanced_llm_prompt.md":{"summary":"Task description for analyzing and improving token reduction strategies in GenAIcode."},"ai_token_usage.md":{"summary":"Task to implement token usage measurement and cost estimation for AI services in GenAIcode."},"allow_directory_create.md":{"summary":"Task to add support for directory creation in the GenAIcode tool."},"codegen_design_doc.md":{"summary":"Task to create a comprehensive design document for the GenAIcode tool."},"configurable_extensions.md":{"summary":"Task to introduce configurable file extensions in the GenAIcode tool."},"content_mask.md":{"summary":"Task to add a content mask feature to the GenAIcode tool for managing token usage."},"context_shrinking.md":{"summary":"Task to implement a context shrinking feature in the GenAIcode tool for optimizing token usage."},"current_feedback.md":{"summary":"List of current feedback and improvements for the GenAIcode tool."},"interactive_cli.md":{"summary":"Task to add an interactive CLI mode to the GenAIcode tool."},"lint_step.md":{"summary":"Task to refactor the lint step in the GenAIcode tool for improved code quality."},"multimodal_frontend.md":{"summary":"Task to add multimodal functionality to the GenAIcode web UI, including image support."},"new_config_options.md":{"summary":"Task to add new configuration options to the .genaicoderc file in the GenAIcode tool."},"project_structure_refactor.md":{"summary":"Task to refactor the project structure of the GenAIcode tool for improved maintainability."},"step_ask_question_refactor.md":{"summary":"Task to refactor the `executeStepAskQuestion` function in the GenAIcode tool."},"usage_monitoring.md":{"summary":"Implementation plan for a usage monitoring feature in the GenAIcode tool."},"web_ui.md":{"summary":"Task to create a web-based user interface for the GenAIcode tool."}},"/Users/gtanczyk/src/codegen/e2e-tests":{"genaicode-ui.test.ts":{"summary":"End-to-end test for the GenAIcode web UI."}},"/Users/gtanczyk/src/codegen/examples":{"README.md":{"summary":"Examples of applications generated using the GenAIcode tool, including Python, Golang, Java, and vision-based examples."}},"/Users/gtanczyk/src/codegen/examples/genaicode_plugins":{"fake_ai_service.ts":{"summary":"Example plugin for a fake AI service in the GenAIcode tool."},"grok_ai_service.ts":{"summary":"Example plugin for the Grok AI service in the GenAIcode tool."},"nonsense_action_handler.ts":{"summary":"Plugin example: nonsense action handler"},"nonsense_operation.ts":{"summary":"Example plugin for a nonsense operation in the GenAIcode tool."}},"/Users/gtanczyk/src/codegen/examples/vite_genaicode_example":{"index.html":{"summary":"Example HTML file for the Vite GenAIcode plugin."},"vite.config.ts":{"summary":"Example Vite configuration file for the GenAIcode plugin."}},"/Users/gtanczyk/src/codegen/src/ai-service":{"ai-studio.ts":{"summary":"Implementation of the AI Studio service integration in the GenAIcode tool."},"anthropic.ts":{"summary":"Anthropic AI service for generating content using the Claude model."},"chat-gpt.ts":{"summary":"Implementation of the ChatGPT service integration in the GenAIcode tool."},"common.test.ts":{"summary":"Unit tests for common functions in the AI service module of the GenAIcode tool."},"common.ts":{"summary":"Common functions and types used across the AI service integrations in the GenAIcode tool."},"dall-e.ts":{"summary":"Implementation of the DALL-E image generation service in the GenAIcode tool."},"unescape-function-call.test.ts":{"summary":"Unit tests for the function call unescaping utility in the GenAIcode tool."},"unescape-function-call.ts":{"summary":"Utility function to unescape function call arguments in the GenAIcode tool."},"vertex-ai-claude.ts":{"summary":"Implementation of the Vertex AI Claude service integration in the GenAIcode tool."},"vertex-ai-imagen.ts":{"summary":"Implementation of the Vertex AI Imagen image generation service in the GenAIcode tool."},"vertex-ai.ts":{"summary":"Implementation of the Vertex AI Gemini Pro service integration in the GenAIcode tool."}},"/Users/gtanczyk/src/codegen/src/cli":{"cli-options.test.ts":{"summary":"Unit tests for the CLI options in the GenAIcode tool."},"cli-options.ts":{"summary":"CLI options: help, dry run, disallow file operations, AI service, prompt, task file, verbose prompt, disable explanations, disable context optimization, Gemini settings, disable lint, temperature, vision, imagen, cheap, content mask, ignore pattern, disable cache, disable ask question."},"cli-params.test.ts":{"summary":"Unit tests for the CLI parameter handling in the GenAIcode tool."},"cli-params.ts":{"summary":"CLI parameters: parse and validate parameters, autodetect AI service"},"service-autodetect.test.ts":{"summary":"Tests for auto-detecting AI service from env vars."},"service-autodetect.ts":{"summary":"Detects AI service based on env vars."},"validate-cli-params.test.ts":{"summary":"CLI parameter validation tests"},"validate-cli-params.ts":{"summary":"Validates CLI parameters, checks for allowed params, and handles errors."}},"/Users/gtanczyk/src/codegen/src/eval":{"codegen-summary.test.ts":{"summary":"Unit tests for codegen-summary functionality"},"prompt-debug.test.ts":{"summary":"Unit tests for prompt debugging"}},"/Users/gtanczyk/src/codegen/src/files":{"cache-file.ts":{"summary":"Caching utilities for source code and image assets."},"file-utils.test.ts":{"summary":"Tests for file utility functions."},"file-utils.ts":{"summary":"Utility functions for working with file paths."},"find-files.ts":{"summary":"Finds source files and image assets in the project."},"path-utils.ts":{"summary":"Utility functions for working with file paths."},"read-files.test.ts":{"summary":"Unit tests for file reading utilities"},"read-files.ts":{"summary":"Utilities to read source code and image assets"},"source-code-tree.ts":{"summary":"Defines SourceCodeTree type, getSourceCodeTree and parseSourceCodeTree functions."},"temp-buffer.ts":{"summary":"Temporary storage for image data."},"update-files.ts":{"summary":"Updates files based on code generation results."}},"/Users/gtanczyk/src/codegen/src/images":{"ensure-alpha.ts":{"summary":"Ensures alpha channel for images."},"imgly-remove-background.ts":{"summary":"Removes background from images using @imgly/background-removal-node."},"resize-image.ts":{"summary":"Resizes images."},"split-image.ts":{"summary":"Splits images into parts."}},"/Users/gtanczyk/src/codegen/src":{"index.ts":{"summary":"Exports main codegen types and functions."}},"/Users/gtanczyk/src/codegen/src/main":{"codegen-types.ts":{"content":"import { FunctionDef, GenerateContentFunction } from \'../ai-service/common\';\\nimport { ActionHandler } from \'../prompt/steps/step-ask-question/step-ask-question-types\';\\n\\n/** Example: {@link ../../examples/genaicode_plugins/grok_ai_service.ts} */\\nexport type PluginAiServiceType = `plugin:${string}`;\\n\\n/** Example: {@link ../../examples/genaicode_plugins/nonsense_action_handlers.ts} */\\nexport type PluginActionType = `plugin:${string}`;\\n\\nexport type AiServiceType =\\n | \'vertex-ai\'\\n | \'ai-studio\'\\n | \'vertex-ai-claude\'\\n | \'chat-gpt\'\\n | \'anthropic\'\\n | PluginAiServiceType;\\n\\nexport type ImagenType = \'vertex-ai\' | \'dall-e\';\\n\\nexport interface UploadedImage {\\n base64url: string;\\n mediaType: \'image/jpeg\' | \'image/png\' | \'image/gif\' | \'image/webp\';\\n originalName: string;\\n}\\n\\nexport interface CodegenOptions {\\n explicitPrompt?: string;\\n taskFile?: string;\\n allowFileCreate?: boolean;\\n allowFileDelete?: boolean;\\n allowDirectoryCreate?: boolean;\\n allowFileMove?: boolean;\\n vision?: boolean;\\n imagen?: ImagenType;\\n aiService: AiServiceType;\\n\\n disableContextOptimization?: boolean;\\n temperature?: number;\\n cheap?: boolean;\\n dryRun?: boolean;\\n verbose?: boolean;\\n requireExplanations?: boolean;\\n geminiBlockNone?: boolean;\\n disableInitialLint?: boolean;\\n contentMask?: string;\\n ignorePatterns?: string[];\\n askQuestion?: boolean;\\n interactive?: boolean;\\n ui?: boolean;\\n uiPort?: number;\\n uiFrameAncestors?: string[];\\n disableCache?: boolean;\\n historyEnabled?: boolean;\\n\\n disableAiServiceFallback?: boolean;\\n conversationSummaryEnabled?: boolean;\\n images?: UploadedImage[];\\n isDev?: boolean;\\n}\\n\\ninterface ExecutorArgs {\\n [key: string]: unknown;\\n}\\n\\nexport type OperationExecutor = (args: ExecutorArgs, options: CodegenOptions) => Promise<void>;\\n\\nexport type Operation = {\\n executor: OperationExecutor;\\n def: FunctionDef;\\n};\\n\\nexport interface Plugin {\\n name: string;\\n aiServices?: Record<string, GenerateContentFunction>;\\n operations?: Record<string, Operation>;\\n actionHandlers?: Record<\\n string,\\n {\\n /** The action handler implementation */\\n handler: ActionHandler;\\n /**\\n * Description of what this action handler does.\\n * This description will be included in the askQuestion function definition\\n * to help the AI understand when to use this action.\\n */\\n description: string;\\n }\\n >;\\n}\\n"},"codegen-utils.ts":{"content":"import { AiServiceType } from \'./codegen-types\';\\nimport { getRegisteredAiServices } from \'./plugin-loader.js\';\\n\\nexport function getSupportedAiServices(): AiServiceType[] {\\n return [\'vertex-ai\', \'ai-studio\', \'vertex-ai-claude\', \'chat-gpt\', \'anthropic\', ...getRegisteredAiServices().keys()];\\n}\\n\\nexport function stringToAiServiceType(aiService: string | undefined | null): AiServiceType {\\n if (!aiService) {\\n throw new Error(\'Please specify which AI service should be used with --ai-service option\');\\n }\\n\\n // Validate that the provided AI service is supported\\n const supportedServices = getSupportedAiServices();\\n if (!supportedServices.includes(aiService as AiServiceType)) {\\n throw new Error(`Unsupported AI service: ${aiService}. Supported services are: ${supportedServices.join(\', \')}`);\\n }\\n\\n return aiService as AiServiceType;\\n}\\n"},"codegen.test.ts":{"summary":"Unit tests for codegen functionality"},"codegen.ts":{"summary":"Main code generation logic: handles different modes, lint checks, AI services, and updates files."},"config-lib.test.ts":{"summary":"Tests for the configuration library."},"config-lib.ts":{"summary":"Reads and parses the .genaicoderc configuration file."},"config.ts":{"summary":"Loads the configuration and sets up the environment."},"plugin-loader.ts":{"summary":"Loads and registers plugins."}},"/Users/gtanczyk/src/codegen/src/main/common":{"content-bus-types.ts":{"summary":"Types for the content bus."},"content-bus.ts":{"summary":"Handles content updates and messaging."},"cost-collector.ts":{"summary":"Collects and reports usage metrics for AI services."},"user-actions.ts":{"summary":"Handles user input and confirmation."}},"/Users/gtanczyk/src/codegen/src/main/interactive":{"codegen-interactive.test.ts":{"summary":"Tests for interactive code generation mode"},"codegen-interactive.ts":{"summary":"Interactive code generation mode: handles user actions and runs code generation"},"codegen-worker.ts":{"summary":"Runs codegen in a separate process with interrupt handling."},"common.ts":{"summary":"Common functions for interactive mode: welcome message, user action selection, error handling"},"configure.ts":{"summary":"Configuration options for interactive mode"},"error-handling.ts":{"summary":"Handles errors in the interactive mode."},"help.ts":{"summary":"Help message for interactive mode"},"select-ai-service.ts":{"summary":"Allows selecting the AI service in the interactive mode."},"task-file.ts":{"summary":"Task file handling for interactive mode"},"text-prompt.ts":{"summary":"Text prompt handling for interactive mode"},"user-action-handlers.ts":{"summary":"Implements user input and confirmation handlers"},"user-interrupt.ts":{"summary":"Handles user interrupts in the interactive mode."}},"/Users/gtanczyk/src/codegen/src/main/ui/backend":{"api-utils.ts":{"summary":"Utility functions for the API."},"api.ts":{"summary":"API routes for code generation"},"server.ts":{"summary":"Starts the web server for the UI."},"service.ts":{"summary":"Backend service for UI: handles code generation requests, pausing, interrupting, and providing status updates."}},"/Users/gtanczyk/src/codegen/src/main/ui":{"codegen-ui.ts":{"summary":"Runs the web UI for codegen."},"user-action-handlers.ts":{"summary":"Registers user input and confirmation handlers"}},"/Users/gtanczyk/src/codegen/src/main/ui/common":{"api-types.ts":{"summary":"Defines types for the web UI API."}},"/Users/gtanczyk/src/codegen/src/main/ui/frontend/app/api":{"api-client.ts":{"summary":"Provides API client for interacting with the backend"}},"/Users/gtanczyk/src/codegen/src/main/ui/frontend/app/components":{"app-handlers.tsx":{"summary":"Handlers for app-level actions like execute, pause, resume"},"app-layout.tsx":{"summary":"Defines the layout of the application, including the header, usage display, and main content area."},"app-state.tsx":{"summary":"Manages app state, including execution status and usage"},"chat-interface.tsx":{"summary":"Renders the chat interface with message history and question handling"},"info-icon.tsx":{"summary":"Renders an information icon that displays the RcConfig settings in a tooltip."},"progress-indicator.tsx":{"summary":"Renders the progress indicator, including the interrupt and pause/resume buttons."},"question-handler.tsx":{"summary":"React component for handling user questions and code generation confirmation."},"styled-textarea.tsx":{"summary":"Renders a styled textarea component with automatic height adjustment and image pasting support."},"theme-toggle.tsx":{"summary":"Renders a button to toggle the application theme between light and dark mode."},"unread-messages-notification.tsx":{"summary":"Renders a notification for unread messages in the chat interface."},"usage-display.tsx":{"summary":"Renders the usage display, including the cost, RPM, RPD, TPM, and TPD metrics."}},"/Users/gtanczyk/src/codegen/src/main/ui/frontend/app/components/chat":{"data-container.tsx":{"summary":"Renders data in a formatted container."},"message-container.tsx":{"summary":"Renders a chat message, including user/assistant messages, images, and data."},"system-message-container.tsx":{"summary":"Renders a system message container, including collapsible execution details and data."}},"/Users/gtanczyk/src/codegen/src/main/ui/frontend/app/components/chat/styles":{"chat-interface-styles.ts":{"summary":"Defines styles for the chat interface, including the chat container, messages container, and iteration header."},"data-container-styles.ts":{"summary":"Defines styles for the data container component."},"message-container-styles.ts":{"summary":"Defines styles for the message container component."},"system-message-container-styles.ts":{"summary":"Defines the styles for the system message container component"}},"/Users/gtanczyk/src/codegen/src/main/ui/frontend/app/components/input-area":{"ai-service-selector.tsx":{"summary":"Dropdown to select AI service"},"button-container.tsx":{"summary":"Renders the buttons for the input area, including submit, upload images, and configuration."},"codegen-options-form.tsx":{"summary":"Form to configure codegen options"},"image-upload.tsx":{"summary":"Handles the upload and preview of images for the input area."},"input-area.tsx":{"summary":"Renders the input area, including the textarea, image upload, buttons, and codegen options form."}},"/Users/gtanczyk/src/codegen/src/main/ui/frontend/app":{"genaicode-app.tsx":{"summary":"Main application component that orchestrates the UI"}},"/Users/gtanczyk/src/codegen/src/main/ui/frontend/app/hooks":{"merged-messages.ts":{"summary":"Provides a custom hook to merge chat messages into iterations, including system messages and conversation summaries."}},"/Users/gtanczyk/src/codegen/src/main/ui/frontend/app/theme":{"global-style.ts":{"summary":"Defines the global styles for the application, including the background image and color scheme."},"styled-components.d.ts":{"summary":"Type definitions for styled-components."},"theme.ts":{"summary":"Defines the light and dark themes for the application, including the color scheme and background image."}},"/Users/gtanczyk/src/codegen/src/main/ui/frontend":{"index.html":{"summary":"Defines the HTML structure of the application, including the root element and script import."},"index.js":{"summary":"Renders the main application component to the DOM."},"tsconfig.json":{"summary":"Defines the TypeScript configuration for the frontend application."},"vite-env.d.ts":{"summary":"Provides type definitions for the Vite environment."}},"/Users/gtanczyk/src/codegen/src/operations/create-directory":{"create-directory-def.ts":{"summary":"Defines the function definition for creating a new directory."},"create-directory-executor.ts":{"summary":"Implements the logic for creating a new directory."}},"/Users/gtanczyk/src/codegen/src/operations/create-file":{"create-file-def.ts":{"summary":"Defines the function definition for creating a new file."},"create-file-executor.ts":{"summary":"Implements the logic for creating a new file."}},"/Users/gtanczyk/src/codegen/src/operations/delete-file":{"delete-file-def.ts":{"summary":"Defines the function definition for deleting a file."},"delete-file-executor.ts":{"summary":"Implements the logic for deleting a file."}},"/Users/gtanczyk/src/codegen/src/operations/download-file":{"download-file-def.ts":{"summary":"Defines the function definition for downloading a file."},"download-file-executor.ts":{"summary":"Implements the logic for downloading a file."}},"/Users/gtanczyk/src/codegen/src/operations/imgly-remove-background":{"imgly-remove-background-def.ts":{"summary":"Defines the function definition for removing the background from an image using the @imgly/background-removal-node library."},"imgly-remove-background-executor.ts":{"summary":"Implements the logic for removing the background from an image using the @imgly/background-removal-node library."}},"/Users/gtanczyk/src/codegen/src/operations/move-file":{"move-file-def.ts":{"summary":"Defines the function definition for moving a file from one location to another."},"move-file-executor.ts":{"summary":"Implements the logic for moving a file from one location to another."}},"/Users/gtanczyk/src/codegen/src/operations":{"operations-index.ts":{"summary":"Provides a centralized index of all available operations, including their executors and definitions."}},"/Users/gtanczyk/src/codegen/src/operations/patch-file":{"patch-file-def.ts":{"summary":"Defines the function definition for partially updating a file\'s content."},"patch-file-executor.ts":{"summary":"Implements the logic for partially updating a file\'s content."}},"/Users/gtanczyk/src/codegen/src/operations/resize-image":{"resize-image-def.ts":{"summary":"Defines the function definition for resizing an image to a specified size."},"resize-image-executor.ts":{"summary":"Implements the logic for resizing an image to a specified size."}},"/Users/gtanczyk/src/codegen/src/operations/split-image":{"split-image-def.ts":{"summary":"Defines function to split image into multiple parts and save them as separate files."},"split-image-executor.ts":{"summary":"Implements function to split image into multiple parts and save them as separate files."}},"/Users/gtanczyk/src/codegen/src/operations/update-file":{"update-file-def.ts":{"summary":"Defines function to update a file with new content."},"update-file-executor.ts":{"summary":"Implements function to update a file with new content."}},"/Users/gtanczyk/src/codegen/src/prompt":{"ai-service-fallback.ts":{"summary":"Handles AI service fallback when rate limit is exceeded"},"function-calling-validate.ts":{"summary":"Validates function calls to ensure they match the expected schema"},"function-calling.ts":{"summary":"Defines function definitions for function calling"},"limits.test.ts":{"summary":"Unit tests for prompt token limits"},"limits.ts":{"summary":"Defines functions to verify prompt and source code token limits"},"prompt-codegen.test.ts":{"summary":"Unit tests for codegen prompt generation"},"prompt-codegen.ts":{"content":"import assert from \'node:assert\';\\nimport { verifyCodegenPromptLimit } from \'./limits.js\';\\nimport { CodegenOptions } from \'../main/codegen-types.js\';\\n\\nexport interface CodegenPrompt {\\n prompt: string;\\n options: CodegenOptions;\\n}\\n\\n/** Get codegen prompt */\\nexport function getCodeGenPrompt(options: CodegenOptions): CodegenPrompt {\\n let { explicitPrompt } = options;\\n const { taskFile, verbose } = options;\\n\\n assert(!explicitPrompt || !taskFile, \'Both taskFile and explicitPrompt are not allowed\');\\n\\n if (taskFile) {\\n explicitPrompt = `I want you to perform a coding task. The task is described in the ${taskFile} file. Use those instructions.`;\\n }\\n\\n assert(explicitPrompt, \'No taskFile or explicitPrompt provided\');\\n\\n const taskPrompt = explicitPrompt;\\n\\n if (verbose) {\\n console.log(\'Code gen prompt:\');\\n console.log(taskPrompt);\\n }\\n\\n verifyCodegenPromptLimit(taskPrompt);\\n\\n return { prompt: taskPrompt, options };\\n}\\n\\n/** Get lint fix prompt */\\nexport function getLintFixPrompt(command: string, { verbose }: CodegenOptions, stdout: string, stderr: string): string {\\n const lintFixPrompt = `The following lint errors were encountered after the initial code generation:\\n\\nLint command: ${command}\\nLint command stdout:\\n\\n\\\\`\\\\`\\\\`\\n${stdout}\\n\\\\`\\\\`\\\\`\\n\\nLint command stderr:\\n\\n\\\\`\\\\`\\\\`\\n${stderr}\\n\\\\`\\\\`\\\\`\\n\\nPlease suggest changes to fix these lint errors. Use the \'sendMessage\' actionType if you need any clarifications before proposing fixes.`;\\n\\n if (verbose) {\\n console.log(\'Lint fix prompt:\');\\n console.log(lintFixPrompt);\\n }\\n\\n verifyCodegenPromptLimit(lintFixPrompt);\\n\\n return lintFixPrompt;\\n}\\n"},"prompt-service-ask-question.test.ts":{"summary":"Unit tests for prompt service with askQuestion"},"prompt-service.test.ts":{"summary":"Unit tests for prompt service"},"prompt-service.ts":{"content":"import assert from \'node:assert\';\\nimport fs from \'fs\';\\nimport mime from \'mime-types\';\\n\\nimport { getSystemPrompt } from \'./systemprompt.js\';\\nimport { getFunctionDefs } from \'./function-calling.js\';\\nimport { getSourceCode, getImageAssets } from \'../files/read-files.js\';\\nimport {\\n PromptItem,\\n FunctionDef,\\n FunctionCall,\\n GenerateContentFunction,\\n GenerateImageFunction,\\n} from \'../ai-service/common.js\';\\nimport { importantContext } from \'../main/config.js\';\\nimport { AiServiceType, CodegenOptions, ImagenType } from \'../main/codegen-types.js\';\\nimport { executeStepAskQuestion } from \'./steps/step-ask-question/step-ask-question.js\';\\nimport { validateAndRecoverSingleResult } from \'./steps/step-validate-recover.js\';\\nimport { executeStepVerifyPatch } from \'./steps/step-verify-patch.js\';\\nimport { executeStepGenerateImage } from \'./steps/step-generate-image.js\';\\nimport { executeStepContextOptimization } from \'./steps/step-context-optimization.js\';\\nimport { StepResult } from \'./steps/steps-types.js\';\\nimport { CodegenPrompt } from \'./prompt-codegen.js\';\\nimport { putSystemMessage } from \'../main/common/content-bus.js\';\\nimport { handleAiServiceFallback } from \'./ai-service-fallback.js\';\\nimport { summarizeSourceCode } from \'./steps/step-summarization.js\';\\nimport { executeStepHistoryUpdate, getCurrentHistory } from \'./steps/step-history-update.js\';\\nimport { executeStepGenerateSummary } from \'./steps/step-generate-summary.js\';\\nimport { getSourceCodeTree } from \'../files/source-code-tree.js\';\\n\\n/** A function that communicates with model using */\\nexport async function promptService(\\n generateContentFns: Record<AiServiceType, GenerateContentFunction>,\\n generateImageFns: Record<ImagenType, GenerateImageFunction>,\\n codegenPrompt: CodegenPrompt,\\n waitIfPaused: () => Promise<void> = () => Promise.resolve(),\\n): Promise<FunctionCall[]> {\\n const generateContentFn: GenerateContentFunction = async (...args) => {\\n return await handleAiServiceFallback(\\n generateContentFns,\\n codegenPrompt.options.aiService,\\n codegenPrompt.options,\\n ...args,\\n );\\n };\\n\\n const generateImageFn: GenerateImageFunction = (...args) => {\\n assert(codegenPrompt.options.imagen, \'imagen value must be provided\');\\n return generateImageFns[codegenPrompt.options.imagen](...args);\\n };\\n\\n const { result, prompt } = await executePromptService(\\n generateContentFn,\\n generateImageFn,\\n codegenPrompt,\\n waitIfPaused,\\n );\\n\\n if (codegenPrompt.options.historyEnabled) {\\n await executeStepHistoryUpdate(generateContentFn, prompt, codegenPrompt.options);\\n }\\n\\n return result;\\n}\\n\\nasync function executePromptService(\\n generateContentFn: GenerateContentFunction,\\n generateImageFn: GenerateImageFunction,\\n codegenPrompt: CodegenPrompt,\\n waitIfPaused: () => Promise<void> = () => Promise.resolve(),\\n): Promise<{ result: FunctionCall[]; prompt: PromptItem[] }> {\\n const messages = prepareMessages(codegenPrompt);\\n\\n // First stage: summarize the source code\\n if (!codegenPrompt.options.disableContextOptimization) {\\n await summarizeSourceCode(\\n generateContentFn,\\n getSourceCode({ forceAll: true }, codegenPrompt.options),\\n codegenPrompt.options,\\n );\\n }\\n\\n // Second stage: generate code generation summary, which should not take a lot of output tokens\\n const getSourceCodeRequest: FunctionCall = { name: \'getSourceCode\' };\\n\\n const prompt: PromptItem[] = [\\n { type: \'systemPrompt\', systemPrompt: getSystemPrompt(codegenPrompt.options) },\\n { type: \'user\', text: \'Hello, GenAIcode!\' },\\n {\\n type: \'assistant\',\\n text: `Hello there! I guess you have a task for me today. Before we start, could you please provide me with: \\n - the current source code of your application\\n - the image assets (if available)\\n - and conversational history (if available)\\n \\n Thanks`,\\n functionCalls: [\\n getSourceCodeRequest,\\n ...(codegenPrompt.options.vision ? [{ name: \'getImageAssets\' }] : []),\\n ...(codegenPrompt.options.historyEnabled ? [{ name: \'readHistory\' }] : []),\\n ],\\n },\\n ];\\n\\n const getSourceCodeResponse: PromptItem = {\\n type: \'user\',\\n functionResponses: [\\n { name: \'getSourceCode\', content: messages.sourceCode },\\n ...(codegenPrompt.options.vision ? [{ name: \'getImageAssets\', content: messages.imageAssets }] : []),\\n ...(codegenPrompt.options.historyEnabled ? [{ name: \'readHistory\', content: getCurrentHistory() }] : []),\\n ],\\n text: \'Sure, here is the application source code, image assets, and the history.\',\\n cache: true,\\n };\\n prompt.push(getSourceCodeResponse);\\n\\n prompt.push(\\n {\\n type: \'assistant\',\\n text: \\"Thank you, I\'m ready to assist you with your request.\\",\\n },\\n {\\n type: \'user\',\\n text: codegenPrompt.prompt,\\n },\\n );\\n\\n // Add uploaded images to the prompt if available\\n if (codegenPrompt.options.images && codegenPrompt.options.images.length > 0 && codegenPrompt.options.vision) {\\n prompt.slice(-1)[0].images = codegenPrompt.options.images.map((img) => ({\\n base64url: img.base64url,\\n mediaType: img.mediaType,\\n }));\\n }\\n\\n // Initial summary based on first user input\\n await executeStepGenerateSummary(generateContentFn, prompt, codegenPrompt.options);\\n\\n // Execute the context optimization step\\n if (!codegenPrompt.options.disableContextOptimization) {\\n const optimizationResult = await executeStepContextOptimization(generateContentFn, prompt, codegenPrompt.options);\\n\\n if (optimizationResult === StepResult.BREAK) {\\n return { result: [], prompt };\\n }\\n }\\n\\n // Execute the ask question step\\n if (codegenPrompt.options.askQuestion !== false && (codegenPrompt.options.interactive || codegenPrompt.options.ui)) {\\n const askQuestionResult = await executeStepAskQuestion(\\n generateContentFn,\\n generateImageFn,\\n prompt,\\n getFunctionDefs(),\\n codegenPrompt.options.temperature ?? 0.7,\\n messages,\\n codegenPrompt.options,\\n );\\n\\n // Summary based on the ask-question conversation history (may be different from the initial summary)\\n await executeStepGenerateSummary(generateContentFn, prompt, codegenPrompt.options);\\n\\n if (askQuestionResult === StepResult.BREAK) {\\n return { result: [], prompt };\\n }\\n } else if (codegenPrompt.options.askQuestion === false) {\\n console.log(\'Ask question is not enabled.\');\\n // Also there is no need to generate conversation summary\\n }\\n\\n const baseRequest: [PromptItem[], FunctionDef[], string, number, boolean, CodegenOptions] = [\\n prompt,\\n getFunctionDefs(),\\n \'codegenSummary\',\\n codegenPrompt.options.temperature ?? 0.7,\\n codegenPrompt.options.cheap ?? false,\\n codegenPrompt.options,\\n ];\\n let baseResult = await generateContentFn(...baseRequest);\\n\\n let codegenSummaryRequest = baseResult.find((call) => call.name === \'codegenSummary\');\\n\\n if (codegenSummaryRequest) {\\n // Second stage: for each file request the actual code updates\\n putSystemMessage(\'Received codegen summary, will collect partial updates\', codegenSummaryRequest.args);\\n\\n baseResult = await validateAndRecoverSingleResult(baseRequest, baseResult, generateContentFn);\\n codegenSummaryRequest = baseResult.find((call) => call.name === \'codegenSummary\');\\n\\n // Sometimes the result happens to be a string\\n assert(Array.isArray(codegenSummaryRequest?.args?.fileUpdates), \'fileUpdates is not an array\');\\n assert(Array.isArray(codegenSummaryRequest?.args.contextPaths), \'contextPaths is not an array\');\\n\\n if (!codegenPrompt.options.disableContextOptimization) {\\n console.log(\'Optimize with context paths.\');\\n // Monkey patch the initial getSourceCode, do not send parts of source code that are consider irrelevant\\n getSourceCodeRequest.args = {\\n filePaths: [\\n ...codegenSummaryRequest.args.fileUpdates.map((file: { filePath: string }) => file.filePath),\\n ...codegenSummaryRequest.args.contextPaths,\\n ...(importantContext.files ?? []),\\n ],\\n };\\n getSourceCodeResponse.functionResponses!.find((item) => item.name === \'getSourceCode\')!.content =\\n messages.contextSourceCode(getSourceCodeRequest.args?.filePaths as string[]);\\n }\\n\\n // Store the first stage response entirely in conversation history\\n prompt.push({ type: \'assistant\', functionCalls: baseResult });\\n prompt.push({\\n type: \'user\',\\n functionResponses: baseResult.map((call) => ({ name: call.name, call_id: call.id })),\\n cache: true,\\n });\\n\\n const result: FunctionCall[] = [];\\n\\n for (const file of codegenSummaryRequest!.args.fileUpdates) {\\n putSystemMessage(\'Collecting partial update for: \' + file.filePath + \' using tool: \' + file.updateToolName, file);\\n console.log(\'- Prompt:\', file.prompt);\\n console.log(\'- Temperature\', file.temperature);\\n console.log(\'- Cheap\', file.cheap);\\n if (codegenPrompt.options.vision) {\\n console.log(\'- Context image assets\', file.contextImageAssets);\\n }\\n\\n // Check if execution is paused before proceeding\\n await waitIfPaused();\\n\\n // this is needed, otherwise we will get an error\\n if (prompt.slice(-1)[0].type === \'user\') {\\n prompt.slice(-1)[0].text = file.prompt ?? messages.partialPromptTemplate(file.filePath);\\n } else {\\n prompt.push({ type: \'user\', text: file.prompt ?? messages.partialPromptTemplate(file.filePath) });\\n }\\n\\n if (codegenPrompt.options.vision && file.contextImageAssets) {\\n prompt.slice(-1)[0].images = file.contextImageAssets.map((path: string) => ({\\n path,\\n base64url: fs.readFileSync(path, \'base64\'),\\n mediaType: mime.lookup(path) || \'\',\\n }));\\n }\\n\\n const partialRequest: [PromptItem[], FunctionDef[], string, number, boolean, CodegenOptions] = [\\n prompt,\\n getFunctionDefs(),\\n file.updateToolName,\\n file.temperature ?? codegenPrompt.options.temperature,\\n file.cheap === true,\\n codegenPrompt.options,\\n ];\\n let partialResult = await generateContentFn(...partialRequest);\\n\\n putSystemMessage(\'Received partial update\', partialResult);\\n\\n // Validate if function call is compliant with the schema\\n partialResult = await validateAndRecoverSingleResult(partialRequest, partialResult, generateContentFn);\\n\\n // Handle image generation requests\\n const generateImageCall = partialResult.find((call) => call.name === \'generateImage\');\\n if (generateImageCall) {\\n partialResult.push(await executeStepGenerateImage(generateImageFn, generateImageCall));\\n }\\n\\n // Verify if patchFile is one of the functions called, and test if patch is valid and can be applied successfully\\n const patchFileCall = partialResult.find((call) => call.name === \'patchFile\');\\n if (patchFileCall) {\\n partialResult = await executeStepVerifyPatch(\\n patchFileCall.args as { filePath: string; patch: string },\\n generateContentFn,\\n prompt,\\n getFunctionDefs(),\\n file.temperature ?? codegenPrompt.options.temperature,\\n file.cheap === true,\\n codegenPrompt.options,\\n );\\n }\\n\\n // add the code gen result to the context, as the subsequent code gen may depend on the result\\n prompt.push(\\n { type: \'assistant\', functionCalls: partialResult },\\n {\\n type: \'user\',\\n text: \'Update applied.\',\\n functionResponses: partialResult.map((call) => ({ name: call.name, call_id: call.id })),\\n },\\n );\\n\\n result.push(...partialResult);\\n }\\n\\n return { result, prompt };\\n } else {\\n // This is unexpected, if happens probably means no code updates.\\n putSystemMessage(\'Did not receive codegen summary, returning result.\');\\n return { result: baseResult, prompt };\\n }\\n}\\n\\n/**\\n * Function to prepare messages for AI services\\n */\\nfunction prepareMessages(codegen: CodegenPrompt) {\\n return {\\n sourceCode: JSON.stringify(\\n getSourceCodeTree(getSourceCode({ taskFile: codegen.options.taskFile }, codegen.options)),\\n ),\\n contextSourceCode: (paths: string[], pathsOnly: boolean = false) =>\\n JSON.stringify(\\n getSourceCodeTree(\\n Object.fromEntries(\\n Object.entries(\\n getSourceCode(\\n { filterPaths: paths, taskFile: codegen.options.taskFile, forceAll: true },\\n codegen.options,\\n ),\\n ).filter(([path]) => !pathsOnly || paths.includes(path)),\\n ),\\n ),\\n ),\\n imageAssets: JSON.stringify(getImageAssets()),\\n partialPromptTemplate(path: string) {\\n return `Thank you for providing the summary, now suggest changes for the \\\\`${path}\\\\` file using appropriate tools.`;\\n },\\n };\\n}\\n"},"systemprompt.test.ts":{"summary":"Unit tests for system prompt generation"},"systemprompt.ts":{"summary":"Generates system prompt for code generation assistant, defines guidelines and usage of key functions"},"token-estimator.ts":{"summary":"Estimates token count for text and code"}},"/Users/gtanczyk/src/codegen/src/prompt/function-defs":{"ask-question.ts":{"summary":"Function definitions for asking questions and managing conversation flow"},"codegen-summary.ts":{"content":"import { FunctionDef } from \'../../ai-service/common.js\';\\nimport { getRegisteredOperations } from \'../../main/plugin-loader.js\';\\n\\n/**\\n * Function definition for codegenSummary\\n */\\nexport const getCodegenSummaryDef = (): FunctionDef => ({\\n name: \'codegenSummary\',\\n description:\\n \'This function is called with a summary of proposed updates.\\\\n\' +\\n \'- `explanation`: A general explanation of the planned code generation updates or reasoning for no code changes.\\\\n\' +\\n \'- `fileUpdates`: A list of proposed file updates that will be subject to subsequent code generation requests.\\\\n\' +\\n \'- `contextPaths`: A list of file paths that make sense to use as context for code generation requests.\\\\n\' +\\n \'It is critically important to adhere to the schema of parameters.\',\\n parameters: {\\n type: \'object\',\\n properties: {\\n explanation: {\\n type: \'string\',\\n description: \'A brief description of the planned changes or an explanation if no changes are proposed.\',\\n },\\n fileUpdates: {\\n type: \'array\',\\n description: \'An array of proposed file updates, each update is an object with several properties.\',\\n items: {\\n type: \'object\',\\n description:\\n \'An object representing a proposed update to a file, containing properties like the absolute file path, the update tool name, and other important properties.\',\\n properties: {\\n filePath: {\\n type: \'string\',\\n description:\\n \'An absolute path of the project file that will be updated. This must be an absolute file path.\',\\n },\\n prompt: {\\n type: \'string\',\\n description:\\n \'A detailed prompt that will be passed to the model request together with the tool request. It summarizes the planned changes for this particular file.\',\\n },\\n updateToolName: {\\n type: \'string\',\\n enum: [\\n \'createFile\',\\n \'updateFile\',\\n \'patchFile\',\\n \'deleteFile\',\\n \'createDirectory\',\\n \'moveFile\',\\n \'generateImage\',\\n \'downloadFile\',\\n \'splitImage\',\\n \'resizeImage\',\\n \'imglyRemoveBackground\',\\n ...getRegisteredOperations().map((operation) => operation.def.name),\\n ],\\n description: \'The name of the tool that will be used to perform the update.\',\\n },\\n temperature: {\\n type: \'number\',\\n description:\\n \'Temperature parameter for the LLM request. Should be within the range [0.0, 2.0]. Lower values make the output more deterministic.\',\\n minimum: 0.0,\\n maximum: 2.0,\\n },\\n cheap: {\\n type: \'boolean\',\\n description:\\n \'If true, the prompt will be executed with a cheaper, faster model that provides lower quality results. Use only when lower quality results are acceptable.\',\\n },\\n contextImageAssets: {\\n type: \'array\',\\n description:\\n \'A list of absolute image asset paths that should be included in the context of the LLM request. Use this parameter when there is a need to analyze an image.\',\\n items: { type: \'string\' },\\n },\\n },\\n required: [\'filePath\', \'prompt\', \'updateToolName\'],\\n },\\n },\\n contextPaths: {\\n type: \'array\',\\n description:\\n \'An array of absolute file paths that should be used to provide context for the following updates. These could be dependencies or files that depend on the files to be updated.\',\\n items: {\\n type: \'string\',\\n },\\n },\\n },\\n required: [\'explanation\', \'fileUpdates\', \'contextPaths\'],\\n },\\n});\\n"},"explanation.ts":{"content":"import { FunctionDef } from \'../../ai-service/common\';\\n\\n/**\\n * Function definition for explanation\\n */\\nexport const explanation: FunctionDef = {\\n name: \'explanation\',\\n description: \'Explain the reasoning behind the suggested code changes or reasoning for lack of code changes\',\\n parameters: {\\n type: \'object\',\\n properties: {\\n text: {\\n type: \'string\',\\n description: \'The explanation text\',\\n },\\n },\\n required: [\'text\'],\\n },\\n};\\n"},"generate-image.ts":{"summary":"Defines function to generate images using AI service."},"get-image-assets.ts":{"summary":"Defines function to get a map of application image assets."},"get-source-code.ts":{"content":"import { FunctionDef } from \'../../ai-service/common\';\\n\\n/**\\n * Function definition for getSourceCode\\n */\\nexport const getSourceCode: FunctionDef = {\\n name: \'getSourceCode\',\\n description: `This function returns source code of the application in the following format:\\n\\\\`\\\\`\\\\`\\n{\\n [directoryPath: string]: {\\n [filePath: string]: {content: string | null} | {summary: string};\\n };\\n}\\n\\\\`\\\\`\\\\`\\n\\nSome keys may not provide content. Some keys may provide a short summary of content.\\n\\nHere is an example of the returned object:\\n\\\\`\\\\`\\\\`\\n{\\n \'/path/to/directory\': {\\n \'file1.js\': {content: \'console.log(\'Hello, World!\');\'},\\n },\\n \'/path/to/directory/sub1/sub2\': {\\n \'file2.js\': {summary: \'This file contains a simple log statement.\'},\\n }\\n}\\n\\\\`\\\\`\\\\`\\n\\nHow to understand this object:\\n- there are 2 files\\n- the first file has content: \'console.log(\'Hello, World!\');\'\\n- the second file has no content, but a summary: \'This file contains a simple log statement.\'\\n- path of first file: \'/path/to/directory/file1.js\'\\n- path of second file: \'/path/to/directory/sub1/sub2/file2.js\'\\n\\nThis function is used to provide context to the AI model.\\n `,\\n parameters: {\\n type: \'object\',\\n properties: {\\n filePaths: {\\n type: \'array\',\\n description: \'An array of absolute paths of files that should be used to provided context.\',\\n items: {\\n type: \'string\',\\n },\\n },\\n },\\n required: [],\\n },\\n};\\n"},"optimize-context.ts":{"summary":"Defines optimizeContext function: prioritizes code files based on relevance to user prompt."},"read-history.ts":{"summary":"Defines function to read the conversation history."},"set-summaries.ts":{"summary":"Defines function to save summaries of files."},"update-history.ts":{"summary":"Defines function to update the conversation history."}},"/Users/gtanczyk/src/codegen/src/prompt/steps/step-ask-question/handlers":{"cancel-code-generation.ts":{"summary":"Handles cancellation of code generation"},"confirm-code-generation.ts":{"summary":"Handles user confirmation for starting code generation."},"context-optimization.ts":{"summary":"Handles user confirmation for optimizing context during code generation."},"default-action.ts":{"summary":"Default action handler"},"handle-send-message-with-image.ts":{"summary":"Handles sending messages with images"},"handle-send-message.ts":{"summary":"Handles sending messages"},"remove-files-from-context.ts":{"summary":"Handles removing files from context"},"request-files-content.ts":{"summary":"Handles requesting content of missing files"},"request-permissions.ts":{"summary":"Handles requesting permissions from user"},"start-code-generation.ts":{"summary":"Handles the start of code generation"}},"/Users/gtanczyk/src/codegen/src/prompt/steps/step-ask-question":{"step-ask-question-types.ts":{"summary":"Types for step-ask-question"},"step-ask-question.ts":{"summary":"Step for asking questions in code generation"}},"/Users/gtanczyk/src/codegen/src/prompt/steps":{"step-context-optimization.test.ts":{"summary":"Unit tests for context optimization step."},"step-context-optimization.ts":{"summary":"Optimizes context for code generation by evaluating file relevance and token cost."},"step-generate-image.ts":{"summary":"Implements the step to generate images using AI service."},"step-generate-summary.ts":{"content":"import { GenerateContentArgs, GenerateContentFunction, PromptItem } from \'../../ai-service/common.js\';\\nimport { CodegenOptions } from \'../../main/codegen-types.js\';\\nimport { putSystemMessage } from \'../../main/common/content-bus.js\';\\nimport { getFunctionDefs } from \'../function-calling.js\';\\nimport { ChatMessageFlags } from \'../../main/common/content-bus-types.js\';\\n\\nexport async function executeStepGenerateSummary(\\n generateContentFn: GenerateContentFunction,\\n prompt: PromptItem[],\\n options: CodegenOptions,\\n): Promise<void> {\\n if (!options.conversationSummaryEnabled) {\\n console.log(\\"Not generating conversation summary because it\'s disabled in options.\\");\\n return;\\n }\\n\\n const summaryRequest: GenerateContentArgs = [\\n [\\n ...prompt,\\n { type: \'assistant\', text: \'Thank you for explaining the task.\' },\\n {\\n type: \'user\',\\n text: `Now please summarize our conversation, I want maximum 1 sentence of maximum 10 words explaning the conversation.`,\\n },\\n ],\\n getFunctionDefs(),\\n \'explanation\',\\n 0.3, // Use a lower temperature for more focused summaries\\n true, // Use cheap model by default for summaries\\n options,\\n ];\\n\\n try {\\n const summaryResult = await generateContentFn(...summaryRequest);\\n const summaryExplanation = summaryResult.find((call) => call.name === \'explanation\');\\n\\n if (summaryExplanation && summaryExplanation.args && typeof summaryExplanation.args.text === \'string\') {\\n const conversationSummary = summaryExplanation.args.text;\\n putSystemMessage(\'Generated conversation summary\', conversationSummary, [ChatMessageFlags.CONVERSATION_SUMMARY]);\\n } else {\\n throw new Error(\'Failed to generate summary: unexpected response format\');\\n }\\n } catch (error) {\\n console.error(\'Error generating conversation summary:\', error);\\n putSystemMessage(\'Failed to generate conversation summary.\');\\n return;\\n }\\n}\\n"},"step-history-update.ts":{"summary":"Implements the step to update the conversation history."},"step-summarization.ts":{"summary":"Summarizes source code files and caches the summaries."},"step-validate-recover.ts":{"summary":"Utility to validate and recover from invalid function calls"},"step-verify-patch.ts":{"summary":"Implements the step to verify the validity of a patch file."},"steps-types.ts":{"summary":"Defines types for the prompt service steps."},"steps-utils.ts":{"summary":"Provides utility functions for the prompt service steps."}},"/Users/gtanczyk/src/codegen/src/vite-genaicode":{"README.md":{"summary":"Docs for Vite plugin that integrates GenAIcode into dev workflow."},"tsconfig.json":{"summary":"TypeScript config for Vite GenAIcode plugin."},"vite-env.d.ts":{"summary":"TypeScript type definitions for Vite environment."},"vite-genaicode-frontend.ts":{"summary":"Custom element for GenAICode overlay in Vite plugin."},"vite-genaicode-plugin.ts":{"summary":"Vite plugin for GenAIcode"}}}',
33
- },
34
- {
35
- name: 'getImageAssets',
36
- content: '{"/Users/gtanczyk/src/codegen/media/logo-dark.png":{"mimeType":"image/png","width":1200,"height":686},"/Users/gtanczyk/src/codegen/media/logo.png":{"mimeType":"image/png","width":1200,"height":686},"/Users/gtanczyk/src/codegen/src/vite-genaicode/media/demo-for-readme.gif":{"mimeType":"image/gif","width":769,"height":465}}',
37
- },
38
- {
39
- name: 'readHistory',
40
- content: "2024-11-02: Opt sys prompt codegen. 24-10: ops, refact, perms, CG start. 21: plg cfg, load, svc; core/cfg/func upd; ops, self-reflect. 21: plg init, new loader, cfg/CG upd, opt hist. 22: 'nonsense', '--ai-svc' CLI, gen code. 22: tst, req clarif, conf/summ CG, opt ctx. 22: task: hello; anlys, clarif, conf CG, CG summ, opt ctx, CG, comp. 22: plg ext ActionTypes, custom acts. 22: anlyz Anthropic genCont, fix cache, patch. 22: upd ask-question, plg acts. 26: img disp, upd ChatMsg. 27: 'reqAnswWithImg', img gen req. 28: anlyz getSourceCodeTree, gen summ, conf/opt CG, comp. 28-10: tst step-ctx-opt: src, opt, edge, token. 29: upd tst, verify step-ctx-opt. 29: AI svc sel, save backend. 30: upd cfg/svc. 30: opt opts, retain ctx. 30: add QHandler opts. 30-10: sync aiSvc in QHandler. 2024-11-01: upd self-reflect: cheap/exp, 4-step, err, esc. Summ CG: exp, files, ctx. Clarif: tasks, goals, constraints, timeline. 2024-11-01: upd step-ask-question-reflect.ts self-reflect: balanced, concise, struct, examples. 2024-11-01T12:13: Fixed tst: prompt-ask-question, 7 calls exp, updated. 2024-11-01T12:25: Analyzed tst, fixed 6 calls issue. 2024-11-02: Analyzed and fixed codegen.test.ts: mocks, CLI params, func calls, types, expectations. 2024-11-02: Opt sys prompt codegen. 2024-11-02: Cre new tst codegen-summary.test.ts, test codegenSummary w/ Claude, valid resp struct/content. 2024-11-02T10:14: Upd codegen-summ.ts: import prompt templates, test multiple AI srvcs (vertex-ai, chat-gpt, vertex-ai-claude)",
41
- },
42
- ],
43
- text: 'Sure, here is the application source code, image assets, and the history.',
44
- cache: true,
45
- },
46
- {
47
- type: 'assistant',
48
- text: "Thank you, I'm ready to assist you with your request.",
49
- },
50
- {
51
- type: 'user',
52
- text: 'codegen-summary.test.ts should be importing prompts from prompt-service, using the same static prompts',
53
- },
54
- {
55
- type: 'assistant',
56
- text: "Thank you for providing the source code, image assets, and history. I noticed that the codegen-summary.test.ts file should be importing the prompt templates from the prompt-service module, rather than using static prompts. This will ensure consistency and maintainability across the codebase. I'd be happy to make this update, but first I want to confirm that this change aligns with your expectations. Please let me know if you have any other feedback or concerns.",
57
- },
58
- {
59
- type: 'user',
60
- text: 'yes it aligns',
61
- },
62
- {
63
- type: 'assistant',
64
- text: 'Okay, great. I will update the codegen-summary.test.ts file to import the prompt templates from the prompt-service module. Before I proceed, would you like me to confirm anything else or provide an explanation of the planned changes?',
65
- },
66
- {
67
- type: 'user',
68
- text: PLANNING_PROMPT,
69
- },
70
- ];
71
- //# sourceMappingURL=prompt3.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"prompt3.js","sourceRoot":"","sources":["../../../src/eval/data/prompt3.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE5D,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B;QACE,IAAI,EAAE,cAAc;QACpB,YAAY,EAAE,eAAe,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC;KACnG;IACD;QACE,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,mBAAmB;KAC1B;IACD;QACE,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,+QAA+Q;QACrR,aAAa,EAAE;YACb;gBACE,IAAI,EAAE,eAAe;aACtB;YACD;gBACE,IAAI,EAAE,gBAAgB;aACvB;YACD;gBACE,IAAI,EAAE,aAAa;aACpB;SACF;KACF;IACD;QACE,IAAI,EAAE,MAAM;QACZ,iBAAiB,EAAE;YACjB;gBACE,IAAI,EAAE,eAAe;gBACrB,OAAO,EACL,m0hDAAm0hD;aACt0hD;YACD;gBACE,IAAI,EAAE,gBAAgB;gBACtB,OAAO,EACL,qUAAqU;aACxU;YACD;gBACE,IAAI,EAAE,aAAa;gBACnB,OAAO,EACL,k+CAAk+C;aACr+C;SACF;QACD,IAAI,EAAE,2EAA2E;QACjF,KAAK,EAAE,IAAI;KACZ;IACD;QACE,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,uDAAuD;KAC9D;IACD;QACE,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,wGAAwG;KAC/G;IACD;QACE,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,mdAAmd;KAC1d;IACD;QACE,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,eAAe;KACtB;IACD;QACE,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,2OAA2O;KAClP;IACD;QACE,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,eAAe;KACtB;CACF,CAAC"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,93 +0,0 @@
1
- import { describe, it, vi } from 'vitest';
2
- import { generateContent as generateContentGemini } from '../ai-service/ai-studio';
3
- import { generateContent as generateContentGPT } from '../ai-service/chat-gpt';
4
- import { generateContent as generateContentClaude } from '../ai-service/anthropic';
5
- import { generateContent as generateContentVertexClaude } from '../ai-service/vertex-ai-claude';
6
- import { getFunctionDefs } from '../prompt/function-calling.js';
7
- import { validateAndRecoverSingleResult } from '../prompt/steps/step-validate-recover';
8
- import { DEBUG_CURRENT_PROMPT } from './data/current-prompt';
9
- vi.setConfig({
10
- testTimeout: 60000,
11
- });
12
- describe('prompt-debug', () => {
13
- const prompt = DEBUG_CURRENT_PROMPT;
14
- const requiredFunctionName = 'codegenSummary';
15
- const temperature = 0.7;
16
- it('Gemini Flash', async () => {
17
- const geminiArgs = (await generateContentGemini(prompt, getFunctionDefs(), requiredFunctionName, temperature, true, {
18
- aiService: 'vertex-ai',
19
- askQuestion: false,
20
- }))[0].args;
21
- console.log('GEMINI', JSON.stringify(geminiArgs, null, 4));
22
- });
23
- it('GPT Mini', async () => {
24
- const req = [prompt, getFunctionDefs(), requiredFunctionName, temperature, true];
25
- let result = await generateContentGPT(...req);
26
- result = await validateAndRecoverSingleResult([
27
- ...req,
28
- {
29
- aiService: 'chat-gpt',
30
- disableCache: false,
31
- askQuestion: false,
32
- },
33
- ], result, generateContentGPT);
34
- console.log('GPT', JSON.stringify(result, null, 4));
35
- });
36
- it('Claude Haikku', async () => {
37
- const defs = getFunctionDefs(); //.filter((fd) => fd.name === 'askQuestion');
38
- const req = [
39
- prompt,
40
- defs,
41
- requiredFunctionName,
42
- temperature,
43
- true,
44
- {
45
- aiService: 'anthropic',
46
- disableCache: false,
47
- askQuestion: false,
48
- },
49
- ];
50
- let result = await generateContentClaude(...req);
51
- result = await validateAndRecoverSingleResult([...req], result, generateContentClaude);
52
- console.log('CLAUDE', JSON.stringify(result[0].args, null, 4));
53
- });
54
- it('Claude Haikku (Vertex)', async () => {
55
- const defs = getFunctionDefs(); //.filter((fd) => fd.name === 'askQuestion');
56
- const req = [prompt, defs, requiredFunctionName, temperature, true];
57
- let result = await generateContentVertexClaude(...req);
58
- result = await validateAndRecoverSingleResult([
59
- ...req,
60
- {
61
- aiService: 'vertex-ai-claude',
62
- disableCache: false,
63
- askQuestion: false,
64
- },
65
- ], result, generateContentVertexClaude);
66
- console.log('CLAUDE VERTEX', JSON.stringify(result[0].args, null, 4));
67
- });
68
- it('Gemini Pro', async () => {
69
- const geminiArgs = (await generateContentGemini(prompt, getFunctionDefs(), requiredFunctionName, temperature, false, {
70
- aiService: 'vertex-ai',
71
- askQuestion: false,
72
- }))[0].args;
73
- console.log('GEMINI', JSON.stringify(geminiArgs, null, 4));
74
- });
75
- it('GPT 4o', async () => {
76
- const gptArgs = (await generateContentGPT(prompt, getFunctionDefs(), requiredFunctionName, temperature, false))[0]
77
- .args;
78
- console.log('GPT', JSON.stringify(gptArgs, null, 4));
79
- });
80
- it('Claude Sonnet', async () => {
81
- const claudeArgs = (await generateContentClaude(prompt, getFunctionDefs(), requiredFunctionName, temperature, false, {
82
- aiService: 'anthropic',
83
- disableCache: false,
84
- askQuestion: false,
85
- }))[0].args;
86
- console.log('CLAUDE', JSON.stringify(claudeArgs, null, 4));
87
- });
88
- it('Claude Sonnet (Vertex)', async () => {
89
- const claudeArgs = (await generateContentVertexClaude(prompt, getFunctionDefs(), requiredFunctionName, temperature, false))[0].args;
90
- console.log('CLAUDE VERTEX', JSON.stringify(claudeArgs, null, 4));
91
- });
92
- });
93
- //# sourceMappingURL=prompt-debug.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"prompt-debug.test.js","sourceRoot":"","sources":["../../src/eval/prompt-debug.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,EAAE,eAAe,IAAI,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACnF,OAAO,EAAE,eAAe,IAAI,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC/E,OAAO,EAAE,eAAe,IAAI,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACnF,OAAO,EAAE,eAAe,IAAI,2BAA2B,EAAE,MAAM,gCAAgC,CAAC;AAChG,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,8BAA8B,EAAE,MAAM,uCAAuC,CAAC;AACvF,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAG7D,EAAE,CAAC,SAAS,CAAC;IACX,WAAW,EAAE,KAAK;CACnB,CAAC,CAAC;AAEH,QAAQ,CAAC,cAAc,EAAE,GAAG,EAAE;IAC5B,MAAM,MAAM,GAAG,oBAAoC,CAAC;IACpD,MAAM,oBAAoB,GAAG,gBAAgB,CAAC;IAC9C,MAAM,WAAW,GAAG,GAAG,CAAC;IAExB,EAAE,CAAC,cAAc,EAAE,KAAK,IAAI,EAAE;QAC5B,MAAM,UAAU,GAAG,CACjB,MAAM,qBAAqB,CAAC,MAAM,EAAE,eAAe,EAAE,EAAE,oBAAoB,EAAE,WAAW,EAAE,IAAI,EAAE;YAC9F,SAAS,EAAE,WAAW;YACtB,WAAW,EAAE,KAAK;SACnB,CAAC,CACH,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QAEV,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;IAC7D,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,UAAU,EAAE,KAAK,IAAI,EAAE;QACxB,MAAM,GAAG,GAAG,CAAC,MAAM,EAAE,eAAe,EAAE,EAAE,oBAAoB,EAAE,WAAW,EAAE,IAAI,CAAU,CAAC;QAC1F,IAAI,MAAM,GAAG,MAAM,kBAAkB,CAAC,GAAG,GAAG,CAAC,CAAC;QAC9C,MAAM,GAAG,MAAM,8BAA8B,CAC3C;YACE,GAAG,GAAG;YACN;gBACE,SAAS,EAAE,UAAU;gBACrB,YAAY,EAAE,KAAK;gBACnB,WAAW,EAAE,KAAK;aACnB;SACF,EACD,MAAM,EACN,kBAAkB,CACnB,CAAC;QAEF,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;IACtD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,eAAe,EAAE,KAAK,IAAI,EAAE;QAC7B,MAAM,IAAI,GAAG,eAAe,EAAE,CAAC,CAAC,6CAA6C;QAC7E,MAAM,GAAG,GAAG;YACV,MAAM;YACN,IAAI;YACJ,oBAAoB;YACpB,WAAW;YACX,IAAI;YACJ;gBACE,SAAS,EAAE,WAAW;gBACtB,YAAY,EAAE,KAAK;gBACnB,WAAW,EAAE,KAAK;aACnB;SACO,CAAC;QACX,IAAI,MAAM,GAAG,MAAM,qBAAqB,CAAC,GAAG,GAAG,CAAC,CAAC;QACjD,MAAM,GAAG,MAAM,8BAA8B,CAAC,CAAC,GAAG,GAAG,CAAC,EAAE,MAAM,EAAE,qBAAqB,CAAC,CAAC;QAEvF,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;IACjE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,wBAAwB,EAAE,KAAK,IAAI,EAAE;QACtC,MAAM,IAAI,GAAG,eAAe,EAAE,CAAC,CAAC,6CAA6C;QAC7E,MAAM,GAAG,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,oBAAoB,EAAE,WAAW,EAAE,IAAI,CAAU,CAAC;QAC7E,IAAI,MAAM,GAAG,MAAM,2BAA2B,CAAC,GAAG,GAAG,CAAC,CAAC;QACvD,MAAM,GAAG,MAAM,8BAA8B,CAC3C;YACE,GAAG,GAAG;YACN;gBACE,SAAS,EAAE,kBAAkB;gBAC7B,YAAY,EAAE,KAAK;gBACnB,WAAW,EAAE,KAAK;aACnB;SACF,EACD,MAAM,EACN,2BAA2B,CAC5B,CAAC;QAEF,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;IACxE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,YAAY,EAAE,KAAK,IAAI,EAAE;QAC1B,MAAM,UAAU,GAAG,CACjB,MAAM,qBAAqB,CAAC,MAAM,EAAE,eAAe,EAAE,EAAE,oBAAoB,EAAE,WAAW,EAAE,KAAK,EAAE;YAC/F,SAAS,EAAE,WAAW;YACtB,WAAW,EAAE,KAAK;SACnB,CAAC,CACH,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QAEV,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;IAC7D,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,QAAQ,EAAE,KAAK,IAAI,EAAE;QACtB,MAAM,OAAO,GAAG,CAAC,MAAM,kBAAkB,CAAC,MAAM,EAAE,eAAe,EAAE,EAAE,oBAAoB,EAAE,WAAW,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;aAC/G,IAAI,CAAC;QAER,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;IACvD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,eAAe,EAAE,KAAK,IAAI,EAAE;QAC7B,MAAM,UAAU,GAAG,CACjB,MAAM,qBAAqB,CAAC,MAAM,EAAE,eAAe,EAAE,EAAE,oBAAoB,EAAE,WAAW,EAAE,KAAK,EAAE;YAC/F,SAAS,EAAE,WAAW;YACtB,YAAY,EAAE,KAAK;YACnB,WAAW,EAAE,KAAK;SACnB,CAAC,CACH,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QAEV,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;IAC7D,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,wBAAwB,EAAE,KAAK,IAAI,EAAE;QACtC,MAAM,UAAU,GAAG,CACjB,MAAM,2BAA2B,CAAC,MAAM,EAAE,eAAe,EAAE,EAAE,oBAAoB,EAAE,WAAW,EAAE,KAAK,CAAC,CACvG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QAEV,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;IACpE,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,34 +0,0 @@
1
- export const DEBUG_PROMPT2: ({
2
- type: string;
3
- systemPrompt: string;
4
- text?: undefined;
5
- functionCalls?: undefined;
6
- functionResponses?: undefined;
7
- cache?: undefined;
8
- } | {
9
- type: string;
10
- text: string;
11
- systemPrompt?: undefined;
12
- functionCalls?: undefined;
13
- functionResponses?: undefined;
14
- cache?: undefined;
15
- } | {
16
- type: string;
17
- text: string;
18
- functionCalls: {
19
- name: string;
20
- }[];
21
- systemPrompt?: undefined;
22
- functionResponses?: undefined;
23
- cache?: undefined;
24
- } | {
25
- type: string;
26
- functionResponses: {
27
- name: string;
28
- content: string;
29
- }[];
30
- cache: boolean;
31
- text: string;
32
- systemPrompt?: undefined;
33
- functionCalls?: undefined;
34
- })[];