genaicode 0.8.6 → 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 (1003) hide show
  1. package/dist/ai-service/ai-studio.d.ts +2 -3
  2. package/dist/ai-service/ai-studio.js +55 -27
  3. package/dist/ai-service/ai-studio.js.map +1 -1
  4. package/dist/ai-service/anthropic.d.ts +2 -3
  5. package/dist/ai-service/anthropic.js +24 -8
  6. package/dist/ai-service/anthropic.js.map +1 -1
  7. package/dist/{src/ai-service/common.d.ts → ai-service/common-types.d.ts} +24 -26
  8. package/dist/ai-service/common-types.js +10 -0
  9. package/dist/ai-service/common-types.js.map +1 -0
  10. package/dist/ai-service/common.d.ts +3 -55
  11. package/dist/ai-service/common.js +16 -4
  12. package/dist/ai-service/common.js.map +1 -1
  13. package/dist/ai-service/dall-e.d.ts +2 -9
  14. package/dist/ai-service/dall-e.js +4 -11
  15. package/dist/ai-service/dall-e.js.map +1 -1
  16. package/dist/ai-service/openai.d.ts +15 -4
  17. package/dist/ai-service/openai.js +45 -20
  18. package/dist/ai-service/openai.js.map +1 -1
  19. package/dist/ai-service/service-configurations-types.d.ts +55 -0
  20. package/dist/ai-service/service-configurations-types.js +6 -0
  21. package/dist/ai-service/service-configurations-types.js.map +1 -0
  22. package/dist/ai-service/service-configurations.d.ts +3 -2
  23. package/dist/ai-service/service-configurations.js +5 -0
  24. package/dist/ai-service/service-configurations.js.map +1 -1
  25. package/dist/ai-service/unescape-function-call.d.ts +1 -1
  26. package/dist/ai-service/vertex-ai-claude.d.ts +2 -2
  27. package/dist/ai-service/vertex-ai-claude.js +22 -8
  28. package/dist/ai-service/vertex-ai-claude.js.map +1 -1
  29. package/dist/ai-service/vertex-ai-imagen.d.ts +2 -9
  30. package/dist/ai-service/vertex-ai-imagen.js +4 -11
  31. package/dist/ai-service/vertex-ai-imagen.js.map +1 -1
  32. package/dist/ai-service/vertex-ai.d.ts +2 -3
  33. package/dist/ai-service/vertex-ai.js +17 -12
  34. package/dist/ai-service/vertex-ai.js.map +1 -1
  35. package/dist/cli/cli-params.d.ts +1 -1
  36. package/dist/cli/cli-params.js +1 -1
  37. package/dist/cli/cli-params.js.map +1 -1
  38. package/dist/files/read-files.d.ts +1 -28
  39. package/dist/files/read-files.js +1 -1
  40. package/dist/files/read-files.js.map +1 -1
  41. package/dist/files/source-code-tree.d.ts +3 -1
  42. package/dist/files/source-code-tree.js.map +1 -1
  43. package/dist/files/source-code-types.d.ts +26 -0
  44. package/dist/files/source-code-types.js +2 -0
  45. package/dist/files/source-code-types.js.map +1 -0
  46. package/dist/files/summary-cache.d.ts +20 -0
  47. package/dist/files/summary-cache.js +15 -0
  48. package/dist/files/summary-cache.js.map +1 -0
  49. package/dist/files/update-files.d.ts +1 -1
  50. package/dist/help-docs/genaicode-help-document.d.ts +1 -0
  51. package/dist/help-docs/genaicode-help-document.js +286 -0
  52. package/dist/help-docs/genaicode-help-document.js.map +1 -0
  53. package/dist/index.d.ts +1 -3
  54. package/dist/index.js +1 -3
  55. package/dist/index.js.map +1 -1
  56. package/dist/main/codegen-types.d.ts +12 -10
  57. package/dist/main/codegen-utils.d.ts +1 -1
  58. package/dist/main/codegen.d.ts +4 -3
  59. package/dist/main/codegen.js.map +1 -1
  60. package/dist/main/codegen.test-utils.d.ts +1 -1
  61. package/dist/main/common/abort-controller.d.ts +2 -0
  62. package/dist/main/common/abort-controller.js +5 -0
  63. package/dist/main/common/abort-controller.js.map +1 -0
  64. package/dist/main/common/app-context-bus.d.ts +11 -0
  65. package/dist/main/common/app-context-bus.js +29 -0
  66. package/dist/main/common/app-context-bus.js.map +1 -0
  67. package/dist/main/common/content-bus-types.d.ts +1 -1
  68. package/dist/main/common/content-bus.d.ts +1 -1
  69. package/dist/main/common/cost-collector.d.ts +3 -2
  70. package/dist/main/common/cost-collector.js +3 -3
  71. package/dist/main/common/cost-collector.js.map +1 -1
  72. package/dist/main/common/user-actions.d.ts +3 -3
  73. package/dist/main/common/user-actions.js +17 -8
  74. package/dist/main/common/user-actions.js.map +1 -1
  75. package/dist/main/config-schema.js +10 -0
  76. package/dist/main/config-schema.js.map +1 -1
  77. package/dist/main/config-types.d.ts +22 -16
  78. package/dist/main/interactive/codegen-worker.d.ts +0 -1
  79. package/dist/main/interactive/codegen-worker.js +4 -3
  80. package/dist/main/interactive/codegen-worker.js.map +1 -1
  81. package/dist/main/interactive/select-ai-service.d.ts +1 -1
  82. package/dist/main/plugin-loader.d.ts +5 -3
  83. package/dist/main/plugin-loader.js.map +1 -1
  84. package/dist/main/ui/backend/endpoints/context-endpoint.js +67 -0
  85. package/dist/main/ui/backend/endpoints/context-endpoint.js.map +1 -0
  86. package/dist/main/ui/backend/endpoints/generate-content-endpoint.js +2 -1
  87. package/dist/main/ui/backend/endpoints/generate-content-endpoint.js.map +1 -1
  88. package/dist/main/ui/backend/endpoints/index.d.ts +1 -0
  89. package/dist/main/ui/backend/endpoints/index.js +1 -0
  90. package/dist/main/ui/backend/endpoints/index.js.map +1 -1
  91. package/dist/main/ui/backend/server.d.ts +2 -1
  92. package/dist/main/ui/backend/server.js +2 -1
  93. package/dist/main/ui/backend/server.js.map +1 -1
  94. package/dist/main/ui/backend/service.d.ts +29 -4
  95. package/dist/main/ui/backend/service.js +41 -3
  96. package/dist/main/ui/backend/service.js.map +1 -1
  97. package/dist/main/ui/codegen-ui.d.ts +5 -1
  98. package/dist/main/ui/codegen-ui.js +10 -1
  99. package/dist/main/ui/codegen-ui.js.map +1 -1
  100. package/dist/main/ui/common/api-types.d.ts +4 -51
  101. package/dist/main/ui/frontend/assets/favicon-DvroFOpS.png +0 -0
  102. package/dist/main/ui/frontend/assets/index-DfiFNFf2.js +1771 -0
  103. package/dist/main/ui/frontend/assets/wolf-bark-Bl17CX4O.mp3 +0 -0
  104. package/dist/main/ui/frontend/index.html +2 -2
  105. package/dist/operations/create-directory/create-directory-def.d.ts +1 -1
  106. package/dist/operations/create-file/create-file-def.d.ts +1 -1
  107. package/dist/operations/create-file/create-file-def.js +2 -1
  108. package/dist/operations/create-file/create-file-def.js.map +1 -1
  109. package/dist/operations/delete-file/delete-file-def.d.ts +1 -1
  110. package/dist/operations/download-file/download-file-def.d.ts +1 -1
  111. package/dist/operations/imgly-remove-background/imgly-remove-background-def.d.ts +1 -1
  112. package/dist/operations/move-file/move-file-def.d.ts +1 -1
  113. package/dist/operations/patch-file/patch-file-def.d.ts +1 -1
  114. package/dist/operations/patch-file/patch-file-def.js +2 -1
  115. package/dist/operations/patch-file/patch-file-def.js.map +1 -1
  116. package/dist/operations/resize-image/resize-image-def.d.ts +1 -1
  117. package/dist/operations/split-image/split-image-def.d.ts +1 -1
  118. package/dist/operations/update-file/update-file-def.d.ts +1 -1
  119. package/dist/operations/update-file/update-file-def.js +2 -1
  120. package/dist/operations/update-file/update-file-def.js.map +1 -1
  121. package/dist/prompt/ai-service-fallback.d.ts +4 -3
  122. package/dist/prompt/ai-service-fallback.js +10 -58
  123. package/dist/prompt/ai-service-fallback.js.map +1 -1
  124. package/dist/prompt/function-calling-validate.d.ts +2 -2
  125. package/dist/prompt/function-calling-validate.js +4 -5
  126. package/dist/prompt/function-calling-validate.js.map +1 -1
  127. package/dist/prompt/function-calling.d.ts +1 -1
  128. package/dist/prompt/function-calling.js +12 -2
  129. package/dist/prompt/function-calling.js.map +1 -1
  130. package/dist/prompt/function-defs/analysis-result.d.ts +7 -0
  131. package/dist/prompt/function-defs/analysis-result.js +24 -0
  132. package/dist/prompt/function-defs/analysis-result.js.map +1 -0
  133. package/dist/prompt/function-defs/ask-question.d.ts +3 -2
  134. package/dist/prompt/function-defs/ask-question.js +93 -81
  135. package/dist/prompt/function-defs/ask-question.js.map +1 -1
  136. package/dist/prompt/function-defs/codegen-planning.d.ts +1 -1
  137. package/dist/prompt/function-defs/codegen-planning.js +11 -1
  138. package/dist/prompt/function-defs/codegen-planning.js.map +1 -1
  139. package/dist/prompt/function-defs/codegen-summary.d.ts +1 -1
  140. package/dist/prompt/function-defs/codegen-summary.js +19 -10
  141. package/dist/prompt/function-defs/codegen-summary.js.map +1 -1
  142. package/dist/prompt/function-defs/explanation.d.ts +1 -1
  143. package/dist/prompt/function-defs/genaicode-help.d.ts +6 -0
  144. package/dist/prompt/function-defs/genaicode-help.js +23 -0
  145. package/dist/prompt/function-defs/genaicode-help.js.map +1 -0
  146. package/dist/prompt/function-defs/generate-image.d.ts +1 -1
  147. package/dist/prompt/function-defs/get-image-assets.d.ts +1 -1
  148. package/dist/prompt/function-defs/get-source-code.d.ts +1 -1
  149. package/dist/prompt/function-defs/optimize-context.d.ts +1 -1
  150. package/dist/prompt/function-defs/optimize-context.js +1 -1
  151. package/dist/prompt/function-defs/optimize-context.js.map +1 -1
  152. package/dist/prompt/function-defs/perform-analysis.d.ts +8 -0
  153. package/dist/prompt/function-defs/perform-analysis.js +28 -0
  154. package/dist/prompt/function-defs/perform-analysis.js.map +1 -0
  155. package/dist/prompt/function-defs/read-history.d.ts +1 -1
  156. package/dist/prompt/function-defs/reasoning-inference.d.ts +3 -0
  157. package/dist/prompt/function-defs/reasoning-inference.js +39 -0
  158. package/dist/prompt/function-defs/reasoning-inference.js.map +1 -0
  159. package/dist/prompt/function-defs/set-summaries.d.ts +1 -1
  160. package/dist/prompt/function-defs/update-history.d.ts +1 -1
  161. package/dist/prompt/limits.js +1 -1
  162. package/dist/prompt/prompt-service.d.ts +5 -2
  163. package/dist/prompt/prompt-service.js +1 -2
  164. package/dist/prompt/prompt-service.js.map +1 -1
  165. package/dist/prompt/prompt-service.test-utils.d.ts +2 -2
  166. package/dist/prompt/prompt-service.test-utils.js +2 -1
  167. package/dist/prompt/prompt-service.test-utils.js.map +1 -1
  168. package/dist/prompt/steps/step-ask-question/handlers/code-generation.d.ts +2 -0
  169. package/dist/prompt/steps/step-ask-question/handlers/code-generation.js +11 -9
  170. package/dist/prompt/steps/step-ask-question/handlers/code-generation.js.map +1 -1
  171. package/dist/prompt/steps/step-ask-question/handlers/confirm-code-generation.js +1 -5
  172. package/dist/prompt/steps/step-ask-question/handlers/confirm-code-generation.js.map +1 -1
  173. package/dist/prompt/steps/step-ask-question/handlers/context-optimization.js +1 -5
  174. package/dist/prompt/steps/step-ask-question/handlers/context-optimization.js.map +1 -1
  175. package/dist/prompt/steps/step-ask-question/handlers/genaicode-help-document.d.ts +1 -0
  176. package/dist/prompt/steps/step-ask-question/handlers/genaicode-help-document.js +251 -0
  177. package/dist/prompt/steps/step-ask-question/handlers/genaicode-help-document.js.map +1 -0
  178. package/dist/prompt/steps/step-ask-question/handlers/handle-create-file.d.ts +2 -0
  179. package/dist/prompt/steps/step-ask-question/handlers/handle-create-file.js +157 -0
  180. package/dist/prompt/steps/step-ask-question/handlers/handle-create-file.js.map +1 -0
  181. package/dist/prompt/steps/step-ask-question/handlers/handle-end-conversation.d.ts +2 -0
  182. package/dist/prompt/steps/step-ask-question/handlers/{cancel-code-generation.js → handle-end-conversation.js} +2 -2
  183. package/dist/prompt/steps/step-ask-question/handlers/handle-end-conversation.js.map +1 -0
  184. package/dist/prompt/steps/step-ask-question/handlers/handle-genaicode-help.d.ts +8 -0
  185. package/dist/prompt/steps/step-ask-question/handlers/handle-genaicode-help.js +91 -0
  186. package/dist/prompt/steps/step-ask-question/handlers/handle-genaicode-help.js.map +1 -0
  187. package/dist/prompt/steps/step-ask-question/handlers/handle-generate-image.d.ts +2 -0
  188. package/dist/prompt/steps/step-ask-question/handlers/{handle-send-message-with-image.js → handle-generate-image.js} +28 -29
  189. package/dist/prompt/steps/step-ask-question/handlers/handle-generate-image.js.map +1 -0
  190. package/dist/prompt/steps/step-ask-question/handlers/handle-perform-analysis.d.ts +6 -0
  191. package/dist/prompt/steps/step-ask-question/handlers/handle-perform-analysis.js +99 -0
  192. package/dist/prompt/steps/step-ask-question/handlers/handle-perform-analysis.js.map +1 -0
  193. package/dist/prompt/steps/step-ask-question/handlers/handle-pull-app-context.d.ts +9 -0
  194. package/dist/prompt/steps/step-ask-question/handlers/handle-pull-app-context.js +90 -0
  195. package/dist/prompt/steps/step-ask-question/handlers/handle-pull-app-context.js.map +1 -0
  196. package/dist/prompt/steps/step-ask-question/handlers/handle-push-app-context.d.ts +9 -0
  197. package/dist/prompt/steps/step-ask-question/handlers/handle-push-app-context.js +91 -0
  198. package/dist/prompt/steps/step-ask-question/handlers/handle-push-app-context.js.map +1 -0
  199. package/dist/prompt/steps/step-ask-question/handlers/handle-reasoning-inference.d.ts +7 -0
  200. package/dist/prompt/steps/step-ask-question/handlers/handle-reasoning-inference.js +87 -0
  201. package/dist/prompt/steps/step-ask-question/handlers/handle-reasoning-inference.js.map +1 -0
  202. package/dist/prompt/steps/step-ask-question/handlers/handle-search-code.js +4 -4
  203. package/dist/prompt/steps/step-ask-question/handlers/handle-search-code.js.map +1 -1
  204. package/dist/prompt/steps/step-ask-question/handlers/handle-send-message.js +1 -4
  205. package/dist/prompt/steps/step-ask-question/handlers/handle-send-message.js.map +1 -1
  206. package/dist/prompt/steps/step-ask-question/handlers/handle-update-file.js +92 -61
  207. package/dist/prompt/steps/step-ask-question/handlers/handle-update-file.js.map +1 -1
  208. package/dist/prompt/steps/step-ask-question/handlers/remove-files-from-context.js +2 -1
  209. package/dist/prompt/steps/step-ask-question/handlers/remove-files-from-context.js.map +1 -1
  210. package/dist/prompt/steps/step-ask-question/handlers/request-files-content.d.ts +7 -1
  211. package/dist/prompt/steps/step-ask-question/handlers/request-files-content.js +42 -42
  212. package/dist/prompt/steps/step-ask-question/handlers/request-files-content.js.map +1 -1
  213. package/dist/prompt/steps/step-ask-question/handlers/request-permissions.js +3 -2
  214. package/dist/prompt/steps/step-ask-question/handlers/request-permissions.js.map +1 -1
  215. package/dist/prompt/steps/step-ask-question/step-ask-question-types.d.ts +75 -6
  216. package/dist/prompt/steps/step-ask-question/step-ask-question.d.ts +5 -1
  217. package/dist/prompt/steps/step-ask-question/step-ask-question.js +30 -13
  218. package/dist/prompt/steps/step-ask-question/step-ask-question.js.map +1 -1
  219. package/dist/prompt/steps/step-codegen-planning.d.ts +2 -1
  220. package/dist/prompt/steps/step-codegen-planning.js +2 -1
  221. package/dist/prompt/steps/step-codegen-planning.js.map +1 -1
  222. package/dist/prompt/steps/step-context-optimization.d.ts +2 -1
  223. package/dist/prompt/steps/step-context-optimization.js +5 -7
  224. package/dist/prompt/steps/step-context-optimization.js.map +1 -1
  225. package/dist/prompt/steps/step-ensure-context.d.ts +1 -1
  226. package/dist/prompt/steps/step-ensure-context.js +3 -0
  227. package/dist/prompt/steps/step-ensure-context.js.map +1 -1
  228. package/dist/prompt/steps/step-generate-codegen-summary-prompt.d.ts +2 -0
  229. package/dist/prompt/steps/step-generate-codegen-summary-prompt.js +133 -0
  230. package/dist/prompt/steps/step-generate-codegen-summary-prompt.js.map +1 -0
  231. package/dist/prompt/steps/step-generate-codegen-summary.d.ts +6 -3
  232. package/dist/prompt/steps/step-generate-codegen-summary.js +14 -2
  233. package/dist/prompt/steps/step-generate-codegen-summary.js.map +1 -1
  234. package/dist/prompt/steps/step-generate-image.d.ts +2 -1
  235. package/dist/prompt/steps/step-generate-image.js +4 -2
  236. package/dist/prompt/steps/step-generate-image.js.map +1 -1
  237. package/dist/prompt/steps/step-generate-summary.d.ts +2 -1
  238. package/dist/prompt/steps/step-generate-summary.js +3 -2
  239. package/dist/prompt/steps/step-generate-summary.js.map +1 -1
  240. package/dist/prompt/steps/step-history-update.d.ts +2 -1
  241. package/dist/prompt/steps/step-history-update.js +9 -1
  242. package/dist/prompt/steps/step-history-update.js.map +1 -1
  243. package/dist/prompt/steps/step-process-file-updates.d.ts +7 -3
  244. package/dist/prompt/steps/step-process-file-updates.js +9 -7
  245. package/dist/prompt/steps/step-process-file-updates.js.map +1 -1
  246. package/dist/prompt/steps/step-summarization.d.ts +2 -6
  247. package/dist/prompt/steps/step-summarization.js +11 -15
  248. package/dist/prompt/steps/step-summarization.js.map +1 -1
  249. package/dist/prompt/steps/step-validate-recover.d.ts +4 -2
  250. package/dist/prompt/steps/step-validate-recover.js +8 -6
  251. package/dist/prompt/steps/step-validate-recover.js.map +1 -1
  252. package/dist/prompt/steps/step-verify-patch.d.ts +4 -1
  253. package/dist/prompt/steps/step-verify-patch.js +15 -2
  254. package/dist/prompt/steps/step-verify-patch.js.map +1 -1
  255. package/dist/prompt/steps/steps-types.d.ts +0 -14
  256. package/dist/prompt/steps/steps-types.js.map +1 -1
  257. package/dist/prompt/steps/steps-utils.d.ts +1 -1
  258. package/dist/prompt/systemprompt.d.ts +1 -1
  259. package/dist/prompt/systemprompt.js +40 -11
  260. package/dist/prompt/systemprompt.js.map +1 -1
  261. package/dist/{eval → prompt-debug}/current-prompt-plugin.d.ts +1 -1
  262. package/dist/{eval → prompt-debug}/current-prompt-plugin.js +1 -1
  263. package/dist/prompt-debug/current-prompt-plugin.js.map +1 -0
  264. package/dist/vite-genaicode/vite-genaicode-context.d.ts +31 -0
  265. package/dist/vite-genaicode/vite-genaicode-context.js +120 -0
  266. package/dist/vite-genaicode/vite-genaicode-context.js.map +1 -0
  267. package/dist/vite-genaicode/vite-genaicode-frontend.js +206 -30
  268. package/dist/vite-genaicode/vite-genaicode-frontend.js.map +1 -1
  269. package/dist/vite-genaicode/vite-genaicode-plugin.d.ts +1 -0
  270. package/dist/vite-genaicode/vite-genaicode-plugin.js +22 -9
  271. package/dist/vite-genaicode/vite-genaicode-plugin.js.map +1 -1
  272. package/dist/vite-genaicode/vite-genaicode-types.d.ts +26 -0
  273. package/dist/vite-genaicode/vite-genaicode-types.js +11 -0
  274. package/dist/vite-genaicode/vite-genaicode-types.js.map +1 -0
  275. package/package.json +10 -3
  276. package/dist/ai-service/ai-studio.d.ts.map +0 -1
  277. package/dist/ai-service/anthropic.d.ts.map +0 -1
  278. package/dist/ai-service/chat-gpt.d.ts +0 -7
  279. package/dist/ai-service/chat-gpt.d.ts.map +0 -1
  280. package/dist/ai-service/chat-gpt.js +0 -174
  281. package/dist/ai-service/chat-gpt.js.map +0 -1
  282. package/dist/ai-service/common.d.ts.map +0 -1
  283. package/dist/ai-service/common.test.js +0 -86
  284. package/dist/ai-service/common.test.js.map +0 -1
  285. package/dist/ai-service/dall-e.d.ts.map +0 -1
  286. package/dist/ai-service/unescape-function-call.d.ts.map +0 -1
  287. package/dist/ai-service/unescape-function-call.test.d.ts +0 -1
  288. package/dist/ai-service/unescape-function-call.test.js +0 -18
  289. package/dist/ai-service/unescape-function-call.test.js.map +0 -1
  290. package/dist/ai-service/vertex-ai-claude.d.ts.map +0 -1
  291. package/dist/ai-service/vertex-ai-imagen.d.ts.map +0 -1
  292. package/dist/ai-service/vertex-ai.d.ts.map +0 -1
  293. package/dist/cli/cli-options.d.ts.map +0 -1
  294. package/dist/cli/cli-options.test.d.ts +0 -1
  295. package/dist/cli/cli-options.test.js +0 -34
  296. package/dist/cli/cli-options.test.js.map +0 -1
  297. package/dist/cli/cli-params.d.ts.map +0 -1
  298. package/dist/cli/cli-params.test.d.ts +0 -1
  299. package/dist/cli/cli-params.test.js +0 -38
  300. package/dist/cli/cli-params.test.js.map +0 -1
  301. package/dist/cli/service-autodetect.d.ts.map +0 -1
  302. package/dist/cli/service-autodetect.test.d.ts +0 -1
  303. package/dist/cli/service-autodetect.test.js +0 -38
  304. package/dist/cli/service-autodetect.test.js.map +0 -1
  305. package/dist/cli/validate-cli-params.d.ts.map +0 -1
  306. package/dist/cli/validate-cli-params.test.d.ts +0 -1
  307. package/dist/cli/validate-cli-params.test.js +0 -106
  308. package/dist/cli/validate-cli-params.test.js.map +0 -1
  309. package/dist/eval/codegen-summary.test.d.ts +0 -1
  310. package/dist/eval/codegen-summary.test.js +0 -93
  311. package/dist/eval/codegen-summary.test.js.map +0 -1
  312. package/dist/eval/current-prompt-plugin.js.map +0 -1
  313. package/dist/eval/data/current-prompt.d.ts +0 -149
  314. package/dist/eval/data/current-prompt.js +0 -314
  315. package/dist/eval/data/current-prompt.js.map +0 -1
  316. package/dist/eval/data/prompt-assistant-image.d.ts +0 -49
  317. package/dist/eval/data/prompt-assistant-image.js +0 -67
  318. package/dist/eval/data/prompt-assistant-image.js.map +0 -1
  319. package/dist/eval/data/prompt3.d.ts +0 -34
  320. package/dist/eval/data/prompt3.js +0 -71
  321. package/dist/eval/data/prompt3.js.map +0 -1
  322. package/dist/eval/prompt-debug.test.d.ts +0 -1
  323. package/dist/eval/prompt-debug.test.js +0 -93
  324. package/dist/eval/prompt-debug.test.js.map +0 -1
  325. package/dist/eval/prompt2.d.ts +0 -34
  326. package/dist/eval/prompt2.js +0 -125
  327. package/dist/eval/prompt2.js.map +0 -1
  328. package/dist/examples/genaicode_plugins/fake_ai_service.d.ts +0 -3
  329. package/dist/examples/genaicode_plugins/fake_ai_service.js +0 -11
  330. package/dist/examples/genaicode_plugins/fake_ai_service.js.map +0 -1
  331. package/dist/examples/genaicode_plugins/grok_ai_service.d.ts +0 -3
  332. package/dist/examples/genaicode_plugins/grok_ai_service.js +0 -153
  333. package/dist/examples/genaicode_plugins/grok_ai_service.js.map +0 -1
  334. package/dist/examples/genaicode_plugins/nonsense_operation.d.ts +0 -3
  335. package/dist/examples/genaicode_plugins/nonsense_operation.js +0 -23
  336. package/dist/examples/genaicode_plugins/nonsense_operation.js.map +0 -1
  337. package/dist/files/cache-file.d.ts.map +0 -1
  338. package/dist/files/file-utils.d.ts.map +0 -1
  339. package/dist/files/file-utils.test.d.ts +0 -1
  340. package/dist/files/file-utils.test.js +0 -18
  341. package/dist/files/file-utils.test.js.map +0 -1
  342. package/dist/files/find-files.d.ts.map +0 -1
  343. package/dist/files/path-utils.d.ts.map +0 -1
  344. package/dist/files/read-files.d.ts.map +0 -1
  345. package/dist/files/read-files.test.d.ts +0 -1
  346. package/dist/files/read-files.test.js +0 -95
  347. package/dist/files/read-files.test.js.map +0 -1
  348. package/dist/files/search-files.d.ts.map +0 -1
  349. package/dist/files/source-code-tree.d.ts.map +0 -1
  350. package/dist/files/temp-buffer.d.ts.map +0 -1
  351. package/dist/files/update-files.d.ts.map +0 -1
  352. package/dist/images/ensure-alpha.d.ts.map +0 -1
  353. package/dist/images/imgly-remove-background.d.ts.map +0 -1
  354. package/dist/images/resize-image.d.ts.map +0 -1
  355. package/dist/images/split-image.d.ts.map +0 -1
  356. package/dist/index.d.ts.map +0 -1
  357. package/dist/main/codegen-non-interactive.d.ts.map +0 -1
  358. package/dist/main/codegen-types.d.ts.map +0 -1
  359. package/dist/main/codegen-utils.d.ts.map +0 -1
  360. package/dist/main/codegen.ai-services.test.d.ts +0 -3
  361. package/dist/main/codegen.ai-services.test.js +0 -198
  362. package/dist/main/codegen.ai-services.test.js.map +0 -1
  363. package/dist/main/codegen.cli-options.test.d.ts +0 -3
  364. package/dist/main/codegen.cli-options.test.js +0 -171
  365. package/dist/main/codegen.cli-options.test.js.map +0 -1
  366. package/dist/main/codegen.d.ts.map +0 -1
  367. package/dist/main/codegen.image-generation.test.d.ts +0 -3
  368. package/dist/main/codegen.image-generation.test.js +0 -187
  369. package/dist/main/codegen.image-generation.test.js.map +0 -1
  370. package/dist/main/codegen.test-utils.d.ts.map +0 -1
  371. package/dist/main/codegen.test.d.ts +0 -3
  372. package/dist/main/codegen.test.js +0 -307
  373. package/dist/main/codegen.test.js.map +0 -1
  374. package/dist/main/common/content-bus-types.d.ts.map +0 -1
  375. package/dist/main/common/content-bus.d.ts.map +0 -1
  376. package/dist/main/common/cost-collector.d.ts.map +0 -1
  377. package/dist/main/common/user-actions.d.ts.map +0 -1
  378. package/dist/main/config-lib.d.ts.map +0 -1
  379. package/dist/main/config-lib.test.d.ts +0 -1
  380. package/dist/main/config-lib.test.js +0 -64
  381. package/dist/main/config-lib.test.js.map +0 -1
  382. package/dist/main/config.d.ts.map +0 -1
  383. package/dist/main/interactive/codegen-interactive.d.ts.map +0 -1
  384. package/dist/main/interactive/codegen-interactive.test.d.ts +0 -5
  385. package/dist/main/interactive/codegen-interactive.test.js +0 -73
  386. package/dist/main/interactive/codegen-interactive.test.js.map +0 -1
  387. package/dist/main/interactive/codegen-worker.d.ts.map +0 -1
  388. package/dist/main/interactive/common.d.ts.map +0 -1
  389. package/dist/main/interactive/configure.d.ts.map +0 -1
  390. package/dist/main/interactive/error-handling.d.ts.map +0 -1
  391. package/dist/main/interactive/help.d.ts.map +0 -1
  392. package/dist/main/interactive/process-comments.d.ts +0 -2
  393. package/dist/main/interactive/process-comments.js +0 -39
  394. package/dist/main/interactive/process-comments.js.map +0 -1
  395. package/dist/main/interactive/select-ai-service.d.ts.map +0 -1
  396. package/dist/main/interactive/task-file.d.ts.map +0 -1
  397. package/dist/main/interactive/text-prompt.d.ts.map +0 -1
  398. package/dist/main/interactive/user-action-handlers.d.ts.map +0 -1
  399. package/dist/main/interactive/user-interrupt.d.ts.map +0 -1
  400. package/dist/main/plugin-loader.d.ts.map +0 -1
  401. package/dist/main/ui/backend/api-utils.d.ts.map +0 -1
  402. package/dist/main/ui/backend/api.d.ts.map +0 -1
  403. package/dist/main/ui/backend/server.d.ts.map +0 -1
  404. package/dist/main/ui/backend/service.d.ts.map +0 -1
  405. package/dist/main/ui/codegen-ui.d.ts.map +0 -1
  406. package/dist/main/ui/common/api-types.d.ts.map +0 -1
  407. package/dist/main/ui/frontend/assets/index-BAAQr5b1.js +0 -1747
  408. package/dist/main/ui/user-action-handlers.d.ts.map +0 -1
  409. package/dist/operations/create-directory/create-directory-def.d.ts.map +0 -1
  410. package/dist/operations/create-directory/create-directory-executor.d.ts.map +0 -1
  411. package/dist/operations/create-file/create-file-def.d.ts.map +0 -1
  412. package/dist/operations/create-file/create-file-executor.d.ts.map +0 -1
  413. package/dist/operations/delete-file/delete-file-def.d.ts.map +0 -1
  414. package/dist/operations/delete-file/delete-file-executor.d.ts.map +0 -1
  415. package/dist/operations/download-file/download-file-def.d.ts.map +0 -1
  416. package/dist/operations/download-file/download-file-executor.d.ts.map +0 -1
  417. package/dist/operations/imgly-remove-background/imgly-remove-background-def.d.ts.map +0 -1
  418. package/dist/operations/imgly-remove-background/imgly-remove-background-executor.d.ts.map +0 -1
  419. package/dist/operations/move-file/move-file-def.d.ts.map +0 -1
  420. package/dist/operations/move-file/move-file-executor.d.ts.map +0 -1
  421. package/dist/operations/operations-index.d.ts.map +0 -1
  422. package/dist/operations/patch-file/patch-file-def.d.ts.map +0 -1
  423. package/dist/operations/patch-file/patch-file-executor.d.ts.map +0 -1
  424. package/dist/operations/resize-image/resize-image-def.d.ts.map +0 -1
  425. package/dist/operations/resize-image/resize-image-executor.d.ts.map +0 -1
  426. package/dist/operations/split-image/split-image-def.d.ts.map +0 -1
  427. package/dist/operations/split-image/split-image-executor.d.ts.map +0 -1
  428. package/dist/operations/update-file/update-file-def.d.ts.map +0 -1
  429. package/dist/operations/update-file/update-file-executor.d.ts.map +0 -1
  430. package/dist/project-profiles/detection.d.ts.map +0 -1
  431. package/dist/project-profiles/index.d.ts.map +0 -1
  432. package/dist/project-profiles/profiles/golang.d.ts.map +0 -1
  433. package/dist/project-profiles/profiles/java-maven.d.ts.map +0 -1
  434. package/dist/project-profiles/profiles/javascript-npm.d.ts.map +0 -1
  435. package/dist/project-profiles/profiles/javascript-react.d.ts.map +0 -1
  436. package/dist/project-profiles/profiles/python-django.d.ts.map +0 -1
  437. package/dist/project-profiles/types.d.ts.map +0 -1
  438. package/dist/prompt/ai-service-fallback.d.ts.map +0 -1
  439. package/dist/prompt/function-calling-validate.d.ts.map +0 -1
  440. package/dist/prompt/function-calling.d.ts.map +0 -1
  441. package/dist/prompt/function-defs/ask-question-reflect.d.ts +0 -2
  442. package/dist/prompt/function-defs/ask-question-reflect.js +0 -21
  443. package/dist/prompt/function-defs/ask-question-reflect.js.map +0 -1
  444. package/dist/prompt/function-defs/ask-question.d.ts.map +0 -1
  445. package/dist/prompt/function-defs/codegen-planning.d.ts.map +0 -1
  446. package/dist/prompt/function-defs/codegen-summary.d.ts.map +0 -1
  447. package/dist/prompt/function-defs/create-directory.d.ts +0 -21
  448. package/dist/prompt/function-defs/create-directory.js +0 -22
  449. package/dist/prompt/function-defs/create-directory.js.map +0 -1
  450. package/dist/prompt/function-defs/create-file.d.ts +0 -25
  451. package/dist/prompt/function-defs/create-file.js +0 -26
  452. package/dist/prompt/function-defs/create-file.js.map +0 -1
  453. package/dist/prompt/function-defs/delete-file.d.ts +0 -21
  454. package/dist/prompt/function-defs/delete-file.js +0 -22
  455. package/dist/prompt/function-defs/delete-file.js.map +0 -1
  456. package/dist/prompt/function-defs/download-file.d.ts +0 -25
  457. package/dist/prompt/function-defs/download-file.js +0 -26
  458. package/dist/prompt/function-defs/download-file.js.map +0 -1
  459. package/dist/prompt/function-defs/explanation.d.ts.map +0 -1
  460. package/dist/prompt/function-defs/generate-image.d.ts.map +0 -1
  461. package/dist/prompt/function-defs/get-image-assets.d.ts.map +0 -1
  462. package/dist/prompt/function-defs/get-source-code.d.ts.map +0 -1
  463. package/dist/prompt/function-defs/imgly-remove-background.d.ts +0 -25
  464. package/dist/prompt/function-defs/imgly-remove-background.js +0 -26
  465. package/dist/prompt/function-defs/imgly-remove-background.js.map +0 -1
  466. package/dist/prompt/function-defs/move-file.d.ts +0 -25
  467. package/dist/prompt/function-defs/move-file.js +0 -26
  468. package/dist/prompt/function-defs/move-file.js.map +0 -1
  469. package/dist/prompt/function-defs/optimize-context.d.ts.map +0 -1
  470. package/dist/prompt/function-defs/patch-file.d.ts +0 -25
  471. package/dist/prompt/function-defs/patch-file.js +0 -39
  472. package/dist/prompt/function-defs/patch-file.js.map +0 -1
  473. package/dist/prompt/function-defs/read-history.d.ts.map +0 -1
  474. package/dist/prompt/function-defs/resize-image.d.ts +0 -36
  475. package/dist/prompt/function-defs/resize-image.js +0 -37
  476. package/dist/prompt/function-defs/resize-image.js.map +0 -1
  477. package/dist/prompt/function-defs/set-summaries.d.ts.map +0 -1
  478. package/dist/prompt/function-defs/split-image.d.ts +0 -57
  479. package/dist/prompt/function-defs/split-image.js +0 -46
  480. package/dist/prompt/function-defs/split-image.js.map +0 -1
  481. package/dist/prompt/function-defs/update-file.d.ts +0 -25
  482. package/dist/prompt/function-defs/update-file.js +0 -26
  483. package/dist/prompt/function-defs/update-file.js.map +0 -1
  484. package/dist/prompt/function-defs/update-history.d.ts.map +0 -1
  485. package/dist/prompt/limits.d.ts.map +0 -1
  486. package/dist/prompt/limits.test.d.ts +0 -1
  487. package/dist/prompt/limits.test.js +0 -35
  488. package/dist/prompt/limits.test.js.map +0 -1
  489. package/dist/prompt/prompt-codegen.d.ts.map +0 -1
  490. package/dist/prompt/prompt-codegen.test.d.ts +0 -1
  491. package/dist/prompt/prompt-codegen.test.js +0 -92
  492. package/dist/prompt/prompt-codegen.test.js.map +0 -1
  493. package/dist/prompt/prompt-consts.d.ts +0 -1
  494. package/dist/prompt/prompt-consts.js +0 -2
  495. package/dist/prompt/prompt-consts.js.map +0 -1
  496. package/dist/prompt/prompt-service-ask-question.test.d.ts +0 -4
  497. package/dist/prompt/prompt-service-ask-question.test.js +0 -162
  498. package/dist/prompt/prompt-service-ask-question.test.js.map +0 -1
  499. package/dist/prompt/prompt-service.ai-services.test.d.ts +0 -1
  500. package/dist/prompt/prompt-service.ai-services.test.js +0 -149
  501. package/dist/prompt/prompt-service.ai-services.test.js.map +0 -1
  502. package/dist/prompt/prompt-service.context-optimization.test.d.ts +0 -1
  503. package/dist/prompt/prompt-service.context-optimization.test.js +0 -212
  504. package/dist/prompt/prompt-service.context-optimization.test.js.map +0 -1
  505. package/dist/prompt/prompt-service.d.ts.map +0 -1
  506. package/dist/prompt/prompt-service.image-handling.test.d.ts +0 -1
  507. package/dist/prompt/prompt-service.image-handling.test.js +0 -212
  508. package/dist/prompt/prompt-service.image-handling.test.js.map +0 -1
  509. package/dist/prompt/prompt-service.test-utils.d.ts.map +0 -1
  510. package/dist/prompt/prompt-service.test.d.ts +0 -2
  511. package/dist/prompt/prompt-service.test.js +0 -629
  512. package/dist/prompt/prompt-service.test.js.map +0 -1
  513. package/dist/prompt/prompt-service.validation-recovery.test.d.ts +0 -1
  514. package/dist/prompt/prompt-service.validation-recovery.test.js +0 -263
  515. package/dist/prompt/prompt-service.validation-recovery.test.js.map +0 -1
  516. package/dist/prompt/static-prompts.d.ts.map +0 -1
  517. package/dist/prompt/steps/step-ask-question/handlers/cancel-code-generation.d.ts +0 -2
  518. package/dist/prompt/steps/step-ask-question/handlers/cancel-code-generation.d.ts.map +0 -1
  519. package/dist/prompt/steps/step-ask-question/handlers/cancel-code-generation.js.map +0 -1
  520. package/dist/prompt/steps/step-ask-question/handlers/code-generation.d.ts.map +0 -1
  521. package/dist/prompt/steps/step-ask-question/handlers/confirm-code-generation.d.ts.map +0 -1
  522. package/dist/prompt/steps/step-ask-question/handlers/context-optimization.d.ts.map +0 -1
  523. package/dist/prompt/steps/step-ask-question/handlers/default-action.d.ts +0 -2
  524. package/dist/prompt/steps/step-ask-question/handlers/default-action.d.ts.map +0 -1
  525. package/dist/prompt/steps/step-ask-question/handlers/default-action.js +0 -15
  526. package/dist/prompt/steps/step-ask-question/handlers/default-action.js.map +0 -1
  527. package/dist/prompt/steps/step-ask-question/handlers/handle-request-answer-with-image.d.ts +0 -2
  528. package/dist/prompt/steps/step-ask-question/handlers/handle-request-answer-with-image.js +0 -86
  529. package/dist/prompt/steps/step-ask-question/handlers/handle-request-answer-with-image.js.map +0 -1
  530. package/dist/prompt/steps/step-ask-question/handlers/handle-request-answer.d.ts +0 -2
  531. package/dist/prompt/steps/step-ask-question/handlers/handle-request-answer.js +0 -20
  532. package/dist/prompt/steps/step-ask-question/handlers/handle-request-answer.js.map +0 -1
  533. package/dist/prompt/steps/step-ask-question/handlers/handle-search-code.d.ts.map +0 -1
  534. package/dist/prompt/steps/step-ask-question/handlers/handle-send-message-with-image.d.ts +0 -2
  535. package/dist/prompt/steps/step-ask-question/handlers/handle-send-message-with-image.d.ts.map +0 -1
  536. package/dist/prompt/steps/step-ask-question/handlers/handle-send-message-with-image.js.map +0 -1
  537. package/dist/prompt/steps/step-ask-question/handlers/handle-send-message.d.ts.map +0 -1
  538. package/dist/prompt/steps/step-ask-question/handlers/handler-utils.d.ts +0 -0
  539. package/dist/prompt/steps/step-ask-question/handlers/handler-utils.js +0 -2
  540. package/dist/prompt/steps/step-ask-question/handlers/handler-utils.js.map +0 -1
  541. package/dist/prompt/steps/step-ask-question/handlers/lint.d.ts.map +0 -1
  542. package/dist/prompt/steps/step-ask-question/handlers/remove-files-from-context.d.ts.map +0 -1
  543. package/dist/prompt/steps/step-ask-question/handlers/request-files-content.d.ts.map +0 -1
  544. package/dist/prompt/steps/step-ask-question/handlers/request-permissions.d.ts.map +0 -1
  545. package/dist/prompt/steps/step-ask-question/handlers/start-code-generation.d.ts +0 -2
  546. package/dist/prompt/steps/step-ask-question/handlers/start-code-generation.js +0 -16
  547. package/dist/prompt/steps/step-ask-question/handlers/start-code-generation.js.map +0 -1
  548. package/dist/prompt/steps/step-ask-question/step-ask-question-handlers.d.ts +0 -0
  549. package/dist/prompt/steps/step-ask-question/step-ask-question-handlers.js +0 -2
  550. package/dist/prompt/steps/step-ask-question/step-ask-question-handlers.js.map +0 -1
  551. package/dist/prompt/steps/step-ask-question/step-ask-question-reflect.d.ts +0 -4
  552. package/dist/prompt/steps/step-ask-question/step-ask-question-reflect.js +0 -92
  553. package/dist/prompt/steps/step-ask-question/step-ask-question-reflect.js.map +0 -1
  554. package/dist/prompt/steps/step-ask-question/step-ask-question-types.d.ts.map +0 -1
  555. package/dist/prompt/steps/step-ask-question/step-ask-question.d.ts.map +0 -1
  556. package/dist/prompt/steps/step-ask-question-handlers.d.ts +0 -10
  557. package/dist/prompt/steps/step-ask-question-handlers.js +0 -257
  558. package/dist/prompt/steps/step-ask-question-handlers.js.map +0 -1
  559. package/dist/prompt/steps/step-ask-question-reflect.d.ts +0 -4
  560. package/dist/prompt/steps/step-ask-question-reflect.js +0 -48
  561. package/dist/prompt/steps/step-ask-question-reflect.js.map +0 -1
  562. package/dist/prompt/steps/step-ask-question-types.d.ts +0 -55
  563. package/dist/prompt/steps/step-ask-question-types.js +0 -2
  564. package/dist/prompt/steps/step-ask-question-types.js.map +0 -1
  565. package/dist/prompt/steps/step-ask-question.d.ts +0 -6
  566. package/dist/prompt/steps/step-ask-question.js +0 -80
  567. package/dist/prompt/steps/step-ask-question.js.map +0 -1
  568. package/dist/prompt/steps/step-codegen-planning.d.ts.map +0 -1
  569. package/dist/prompt/steps/step-codegen-summary.d.ts +0 -7
  570. package/dist/prompt/steps/step-codegen-summary.d.ts.map +0 -1
  571. package/dist/prompt/steps/step-codegen-summary.js +0 -106
  572. package/dist/prompt/steps/step-codegen-summary.js.map +0 -1
  573. package/dist/prompt/steps/step-codegen-summary.test.d.ts +0 -1
  574. package/dist/prompt/steps/step-codegen-summary.test.js +0 -136
  575. package/dist/prompt/steps/step-codegen-summary.test.js.map +0 -1
  576. package/dist/prompt/steps/step-context-optimization.d.ts.map +0 -1
  577. package/dist/prompt/steps/step-context-optimization.test.d.ts +0 -2
  578. package/dist/prompt/steps/step-context-optimization.test.js +0 -475
  579. package/dist/prompt/steps/step-context-optimization.test.js.map +0 -1
  580. package/dist/prompt/steps/step-ensure-context.d.ts.map +0 -1
  581. package/dist/prompt/steps/step-ensure-context.test.d.ts +0 -1
  582. package/dist/prompt/steps/step-ensure-context.test.js +0 -326
  583. package/dist/prompt/steps/step-ensure-context.test.js.map +0 -1
  584. package/dist/prompt/steps/step-generate-image.d.ts.map +0 -1
  585. package/dist/prompt/steps/step-generate-summary.d.ts.map +0 -1
  586. package/dist/prompt/steps/step-history-update.d.ts.map +0 -1
  587. package/dist/prompt/steps/step-summarization.d.ts.map +0 -1
  588. package/dist/prompt/steps/step-validate-recover.d.ts.map +0 -1
  589. package/dist/prompt/steps/step-verify-patch.d.ts.map +0 -1
  590. package/dist/prompt/steps/steps-types.d.ts.map +0 -1
  591. package/dist/prompt/steps/steps-utils.d.ts.map +0 -1
  592. package/dist/prompt/systemprompt.d.ts.map +0 -1
  593. package/dist/prompt/systemprompt.test.d.ts +0 -3
  594. package/dist/prompt/systemprompt.test.js +0 -42
  595. package/dist/prompt/systemprompt.test.js.map +0 -1
  596. package/dist/prompt/token-estimator.d.ts.map +0 -1
  597. package/dist/src/ai-service/ai-studio.d.ts +0 -6
  598. package/dist/src/ai-service/ai-studio.js +0 -190
  599. package/dist/src/ai-service/ai-studio.js.map +0 -1
  600. package/dist/src/ai-service/anthropic.d.ts +0 -6
  601. package/dist/src/ai-service/anthropic.js +0 -150
  602. package/dist/src/ai-service/anthropic.js.map +0 -1
  603. package/dist/src/ai-service/chat-gpt.d.ts +0 -5
  604. package/dist/src/ai-service/chat-gpt.js +0 -146
  605. package/dist/src/ai-service/chat-gpt.js.map +0 -1
  606. package/dist/src/ai-service/common.js +0 -38
  607. package/dist/src/ai-service/common.js.map +0 -1
  608. package/dist/src/ai-service/common.test.d.ts +0 -1
  609. package/dist/src/ai-service/common.test.js +0 -86
  610. package/dist/src/ai-service/common.test.js.map +0 -1
  611. package/dist/src/ai-service/dall-e.d.ts +0 -14
  612. package/dist/src/ai-service/dall-e.js +0 -50
  613. package/dist/src/ai-service/dall-e.js.map +0 -1
  614. package/dist/src/ai-service/unescape-function-call.d.ts +0 -7
  615. package/dist/src/ai-service/unescape-function-call.js +0 -59
  616. package/dist/src/ai-service/unescape-function-call.js.map +0 -1
  617. package/dist/src/ai-service/unescape-function-call.test.d.ts +0 -1
  618. package/dist/src/ai-service/unescape-function-call.test.js +0 -18
  619. package/dist/src/ai-service/unescape-function-call.test.js.map +0 -1
  620. package/dist/src/ai-service/vertex-ai-claude.d.ts +0 -5
  621. package/dist/src/ai-service/vertex-ai-claude.js +0 -104
  622. package/dist/src/ai-service/vertex-ai-claude.js.map +0 -1
  623. package/dist/src/ai-service/vertex-ai-imagen.d.ts +0 -14
  624. package/dist/src/ai-service/vertex-ai-imagen.js +0 -77
  625. package/dist/src/ai-service/vertex-ai-imagen.js.map +0 -1
  626. package/dist/src/ai-service/vertex-ai.d.ts +0 -6
  627. package/dist/src/ai-service/vertex-ai.js +0 -202
  628. package/dist/src/ai-service/vertex-ai.js.map +0 -1
  629. package/dist/src/cli/cli-options.d.ts +0 -10
  630. package/dist/src/cli/cli-options.js +0 -132
  631. package/dist/src/cli/cli-options.js.map +0 -1
  632. package/dist/src/cli/cli-options.test.d.ts +0 -1
  633. package/dist/src/cli/cli-options.test.js +0 -34
  634. package/dist/src/cli/cli-options.test.js.map +0 -1
  635. package/dist/src/cli/cli-params.d.ts +0 -32
  636. package/dist/src/cli/cli-params.js +0 -106
  637. package/dist/src/cli/cli-params.js.map +0 -1
  638. package/dist/src/cli/cli-params.test.d.ts +0 -1
  639. package/dist/src/cli/cli-params.test.js +0 -38
  640. package/dist/src/cli/cli-params.test.js.map +0 -1
  641. package/dist/src/cli/service-autodetect.d.ts +0 -2
  642. package/dist/src/cli/service-autodetect.js +0 -17
  643. package/dist/src/cli/service-autodetect.js.map +0 -1
  644. package/dist/src/cli/service-autodetect.test.d.ts +0 -1
  645. package/dist/src/cli/service-autodetect.test.js +0 -38
  646. package/dist/src/cli/service-autodetect.test.js.map +0 -1
  647. package/dist/src/cli/validate-cli-params.d.ts +0 -18
  648. package/dist/src/cli/validate-cli-params.js +0 -145
  649. package/dist/src/cli/validate-cli-params.js.map +0 -1
  650. package/dist/src/cli/validate-cli-params.test.d.ts +0 -1
  651. package/dist/src/cli/validate-cli-params.test.js +0 -106
  652. package/dist/src/cli/validate-cli-params.test.js.map +0 -1
  653. package/dist/src/files/cache-file.d.ts +0 -3
  654. package/dist/src/files/cache-file.js +0 -36
  655. package/dist/src/files/cache-file.js.map +0 -1
  656. package/dist/src/files/file-utils.d.ts +0 -2
  657. package/dist/src/files/file-utils.js +0 -7
  658. package/dist/src/files/file-utils.js.map +0 -1
  659. package/dist/src/files/file-utils.test.d.ts +0 -1
  660. package/dist/src/files/file-utils.test.js +0 -18
  661. package/dist/src/files/file-utils.test.js.map +0 -1
  662. package/dist/src/files/find-files.d.ts +0 -9
  663. package/dist/src/files/find-files.js +0 -81
  664. package/dist/src/files/find-files.js.map +0 -1
  665. package/dist/src/files/path-utils.d.ts +0 -1
  666. package/dist/src/files/path-utils.js +0 -12
  667. package/dist/src/files/path-utils.js.map +0 -1
  668. package/dist/src/files/read-files.d.ts +0 -21
  669. package/dist/src/files/read-files.js +0 -68
  670. package/dist/src/files/read-files.js.map +0 -1
  671. package/dist/src/files/read-files.test.d.ts +0 -1
  672. package/dist/src/files/read-files.test.js +0 -89
  673. package/dist/src/files/read-files.test.js.map +0 -1
  674. package/dist/src/files/temp-buffer.d.ts +0 -2
  675. package/dist/src/files/temp-buffer.js +0 -12
  676. package/dist/src/files/temp-buffer.js.map +0 -1
  677. package/dist/src/files/update-files.d.ts +0 -6
  678. package/dist/src/files/update-files.js +0 -19
  679. package/dist/src/files/update-files.js.map +0 -1
  680. package/dist/src/images/ensure-alpha.d.ts +0 -1
  681. package/dist/src/images/ensure-alpha.js +0 -5
  682. package/dist/src/images/ensure-alpha.js.map +0 -1
  683. package/dist/src/images/imgly-remove-background.d.ts +0 -2
  684. package/dist/src/images/imgly-remove-background.js +0 -21
  685. package/dist/src/images/imgly-remove-background.js.map +0 -1
  686. package/dist/src/images/resize-image.d.ts +0 -19
  687. package/dist/src/images/resize-image.js +0 -22
  688. package/dist/src/images/resize-image.js.map +0 -1
  689. package/dist/src/images/split-image.d.ts +0 -18
  690. package/dist/src/images/split-image.js +0 -25
  691. package/dist/src/images/split-image.js.map +0 -1
  692. package/dist/src/index.d.ts +0 -3
  693. package/dist/src/index.js +0 -3
  694. package/dist/src/index.js.map +0 -1
  695. package/dist/src/main/codegen-types.d.ts +0 -58
  696. package/dist/src/main/codegen-types.js +0 -2
  697. package/dist/src/main/codegen-types.js.map +0 -1
  698. package/dist/src/main/codegen-utils.d.ts +0 -3
  699. package/dist/src/main/codegen-utils.js +0 -18
  700. package/dist/src/main/codegen-utils.js.map +0 -1
  701. package/dist/src/main/codegen.d.ts +0 -4
  702. package/dist/src/main/codegen.js +0 -201
  703. package/dist/src/main/codegen.js.map +0 -1
  704. package/dist/src/main/codegen.test.d.ts +0 -3
  705. package/dist/src/main/codegen.test.js +0 -288
  706. package/dist/src/main/codegen.test.js.map +0 -1
  707. package/dist/src/main/common/content-bus-types.d.ts +0 -21
  708. package/dist/src/main/common/content-bus-types.js +0 -11
  709. package/dist/src/main/common/content-bus-types.js.map +0 -1
  710. package/dist/src/main/common/content-bus.d.ts +0 -10
  711. package/dist/src/main/common/content-bus.js +0 -39
  712. package/dist/src/main/common/content-bus.js.map +0 -1
  713. package/dist/src/main/common/cost-collector.d.ts +0 -11
  714. package/dist/src/main/common/cost-collector.js +0 -90
  715. package/dist/src/main/common/cost-collector.js.map +0 -1
  716. package/dist/src/main/common/user-actions.d.ts +0 -19
  717. package/dist/src/main/common/user-actions.js +0 -30
  718. package/dist/src/main/common/user-actions.js.map +0 -1
  719. package/dist/src/main/config-lib.d.ts +0 -36
  720. package/dist/src/main/config-lib.js +0 -51
  721. package/dist/src/main/config-lib.js.map +0 -1
  722. package/dist/src/main/config-lib.test.d.ts +0 -1
  723. package/dist/src/main/config-lib.test.js +0 -64
  724. package/dist/src/main/config-lib.test.js.map +0 -1
  725. package/dist/src/main/config.d.ts +0 -7
  726. package/dist/src/main/config.js +0 -51
  727. package/dist/src/main/config.js.map +0 -1
  728. package/dist/src/main/interactive/codegen-interactive.d.ts +0 -2
  729. package/dist/src/main/interactive/codegen-interactive.js +0 -61
  730. package/dist/src/main/interactive/codegen-interactive.js.map +0 -1
  731. package/dist/src/main/interactive/codegen-interactive.test.d.ts +0 -5
  732. package/dist/src/main/interactive/codegen-interactive.test.js +0 -79
  733. package/dist/src/main/interactive/codegen-interactive.test.js.map +0 -1
  734. package/dist/src/main/interactive/codegen-worker.d.ts +0 -3
  735. package/dist/src/main/interactive/codegen-worker.js +0 -54
  736. package/dist/src/main/interactive/codegen-worker.js.map +0 -1
  737. package/dist/src/main/interactive/common.d.ts +0 -5
  738. package/dist/src/main/interactive/common.js +0 -51
  739. package/dist/src/main/interactive/common.js.map +0 -1
  740. package/dist/src/main/interactive/configure.d.ts +0 -2
  741. package/dist/src/main/interactive/configure.js +0 -99
  742. package/dist/src/main/interactive/configure.js.map +0 -1
  743. package/dist/src/main/interactive/error-handling.d.ts +0 -1
  744. package/dist/src/main/interactive/error-handling.js +0 -43
  745. package/dist/src/main/interactive/error-handling.js.map +0 -1
  746. package/dist/src/main/interactive/help.d.ts +0 -1
  747. package/dist/src/main/interactive/help.js +0 -22
  748. package/dist/src/main/interactive/help.js.map +0 -1
  749. package/dist/src/main/interactive/process-comments.d.ts +0 -2
  750. package/dist/src/main/interactive/process-comments.js +0 -39
  751. package/dist/src/main/interactive/process-comments.js.map +0 -1
  752. package/dist/src/main/interactive/select-ai-service.d.ts +0 -2
  753. package/dist/src/main/interactive/select-ai-service.js +0 -27
  754. package/dist/src/main/interactive/select-ai-service.js.map +0 -1
  755. package/dist/src/main/interactive/task-file.d.ts +0 -2
  756. package/dist/src/main/interactive/task-file.js +0 -35
  757. package/dist/src/main/interactive/task-file.js.map +0 -1
  758. package/dist/src/main/interactive/text-prompt.d.ts +0 -2
  759. package/dist/src/main/interactive/text-prompt.js +0 -18
  760. package/dist/src/main/interactive/text-prompt.js.map +0 -1
  761. package/dist/src/main/interactive/user-action-handlers.d.ts +0 -1
  762. package/dist/src/main/interactive/user-action-handlers.js +0 -13
  763. package/dist/src/main/interactive/user-action-handlers.js.map +0 -1
  764. package/dist/src/main/interactive/user-interrupt.d.ts +0 -1
  765. package/dist/src/main/interactive/user-interrupt.js +0 -36
  766. package/dist/src/main/interactive/user-interrupt.js.map +0 -1
  767. package/dist/src/main/plugin-loader.d.ts +0 -6
  768. package/dist/src/main/plugin-loader.js +0 -40
  769. package/dist/src/main/plugin-loader.js.map +0 -1
  770. package/dist/src/main/ui/backend/api-utils.d.ts +0 -2
  771. package/dist/src/main/ui/backend/api-utils.js +0 -18
  772. package/dist/src/main/ui/backend/api-utils.js.map +0 -1
  773. package/dist/src/main/ui/backend/api.d.ts +0 -2
  774. package/dist/src/main/ui/backend/api.js +0 -210
  775. package/dist/src/main/ui/backend/api.js.map +0 -1
  776. package/dist/src/main/ui/backend/server.d.ts +0 -7
  777. package/dist/src/main/ui/backend/server.js +0 -83
  778. package/dist/src/main/ui/backend/server.js.map +0 -1
  779. package/dist/src/main/ui/backend/service.d.ts +0 -44
  780. package/dist/src/main/ui/backend/service.js +0 -171
  781. package/dist/src/main/ui/backend/service.js.map +0 -1
  782. package/dist/src/main/ui/codegen-ui.d.ts +0 -2
  783. package/dist/src/main/ui/codegen-ui.js +0 -13
  784. package/dist/src/main/ui/codegen-ui.js.map +0 -1
  785. package/dist/src/main/ui/common/api-types.d.ts +0 -20
  786. package/dist/src/main/ui/common/api-types.js +0 -2
  787. package/dist/src/main/ui/common/api-types.js.map +0 -1
  788. package/dist/src/main/ui/user-action-handlers.d.ts +0 -2
  789. package/dist/src/main/ui/user-action-handlers.js +0 -14
  790. package/dist/src/main/ui/user-action-handlers.js.map +0 -1
  791. package/dist/src/operations/create-directory/create-directory-def.d.ts +0 -9
  792. package/dist/src/operations/create-directory/create-directory-def.js +0 -22
  793. package/dist/src/operations/create-directory/create-directory-def.js.map +0 -1
  794. package/dist/src/operations/create-directory/create-directory-executor.d.ts +0 -6
  795. package/dist/src/operations/create-directory/create-directory-executor.js +0 -22
  796. package/dist/src/operations/create-directory/create-directory-executor.js.map +0 -1
  797. package/dist/src/operations/create-file/create-file-def.d.ts +0 -10
  798. package/dist/src/operations/create-file/create-file-def.js +0 -26
  799. package/dist/src/operations/create-file/create-file-def.js.map +0 -1
  800. package/dist/src/operations/create-file/create-file-executor.d.ts +0 -6
  801. package/dist/src/operations/create-file/create-file-executor.js +0 -27
  802. package/dist/src/operations/create-file/create-file-executor.js.map +0 -1
  803. package/dist/src/operations/delete-file/delete-file-def.d.ts +0 -9
  804. package/dist/src/operations/delete-file/delete-file-def.js +0 -22
  805. package/dist/src/operations/delete-file/delete-file-def.js.map +0 -1
  806. package/dist/src/operations/delete-file/delete-file-executor.d.ts +0 -6
  807. package/dist/src/operations/delete-file/delete-file-executor.js +0 -23
  808. package/dist/src/operations/delete-file/delete-file-executor.js.map +0 -1
  809. package/dist/src/operations/download-file/download-file-def.d.ts +0 -10
  810. package/dist/src/operations/download-file/download-file-def.js +0 -26
  811. package/dist/src/operations/download-file/download-file-def.js.map +0 -1
  812. package/dist/src/operations/download-file/download-file-executor.d.ts +0 -6
  813. package/dist/src/operations/download-file/download-file-executor.js +0 -44
  814. package/dist/src/operations/download-file/download-file-executor.js.map +0 -1
  815. package/dist/src/operations/imgly-remove-background/imgly-remove-background-def.d.ts +0 -10
  816. package/dist/src/operations/imgly-remove-background/imgly-remove-background-def.js +0 -26
  817. package/dist/src/operations/imgly-remove-background/imgly-remove-background-def.js.map +0 -1
  818. package/dist/src/operations/imgly-remove-background/imgly-remove-background-executor.d.ts +0 -6
  819. package/dist/src/operations/imgly-remove-background/imgly-remove-background-executor.js +0 -40
  820. package/dist/src/operations/imgly-remove-background/imgly-remove-background-executor.js.map +0 -1
  821. package/dist/src/operations/move-file/move-file-def.d.ts +0 -10
  822. package/dist/src/operations/move-file/move-file-def.js +0 -26
  823. package/dist/src/operations/move-file/move-file-def.js.map +0 -1
  824. package/dist/src/operations/move-file/move-file-executor.d.ts +0 -6
  825. package/dist/src/operations/move-file/move-file-executor.js +0 -29
  826. package/dist/src/operations/move-file/move-file-executor.js.map +0 -1
  827. package/dist/src/operations/operations-index.d.ts +0 -3
  828. package/dist/src/operations/operations-index.js +0 -33
  829. package/dist/src/operations/operations-index.js.map +0 -1
  830. package/dist/src/operations/patch-file/patch-file-def.d.ts +0 -10
  831. package/dist/src/operations/patch-file/patch-file-def.js +0 -39
  832. package/dist/src/operations/patch-file/patch-file-def.js.map +0 -1
  833. package/dist/src/operations/patch-file/patch-file-executor.d.ts +0 -5
  834. package/dist/src/operations/patch-file/patch-file-executor.js +0 -26
  835. package/dist/src/operations/patch-file/patch-file-executor.js.map +0 -1
  836. package/dist/src/operations/resize-image/resize-image-def.d.ts +0 -13
  837. package/dist/src/operations/resize-image/resize-image-def.js +0 -37
  838. package/dist/src/operations/resize-image/resize-image-def.js.map +0 -1
  839. package/dist/src/operations/resize-image/resize-image-executor.d.ts +0 -5
  840. package/dist/src/operations/resize-image/resize-image-executor.js +0 -30
  841. package/dist/src/operations/resize-image/resize-image-executor.js.map +0 -1
  842. package/dist/src/operations/split-image/split-image-def.d.ts +0 -18
  843. package/dist/src/operations/split-image/split-image-def.js +0 -46
  844. package/dist/src/operations/split-image/split-image-def.js.map +0 -1
  845. package/dist/src/operations/split-image/split-image-executor.d.ts +0 -6
  846. package/dist/src/operations/split-image/split-image-executor.js +0 -51
  847. package/dist/src/operations/split-image/split-image-executor.js.map +0 -1
  848. package/dist/src/operations/update-file/update-file-def.d.ts +0 -10
  849. package/dist/src/operations/update-file/update-file-def.js +0 -26
  850. package/dist/src/operations/update-file/update-file-def.js.map +0 -1
  851. package/dist/src/operations/update-file/update-file-executor.d.ts +0 -5
  852. package/dist/src/operations/update-file/update-file-executor.js +0 -22
  853. package/dist/src/operations/update-file/update-file-executor.js.map +0 -1
  854. package/dist/src/prompt/ai-service-fallback.d.ts +0 -3
  855. package/dist/src/prompt/ai-service-fallback.js +0 -84
  856. package/dist/src/prompt/ai-service-fallback.js.map +0 -1
  857. package/dist/src/prompt/function-calling-validate.d.ts +0 -3
  858. package/dist/src/prompt/function-calling-validate.js +0 -99
  859. package/dist/src/prompt/function-calling-validate.js.map +0 -1
  860. package/dist/src/prompt/function-calling.d.ts +0 -5
  861. package/dist/src/prompt/function-calling.js +0 -43
  862. package/dist/src/prompt/function-calling.js.map +0 -1
  863. package/dist/src/prompt/function-defs/ask-question-reflect.d.ts +0 -2
  864. package/dist/src/prompt/function-defs/ask-question-reflect.js +0 -21
  865. package/dist/src/prompt/function-defs/ask-question-reflect.js.map +0 -1
  866. package/dist/src/prompt/function-defs/ask-question.d.ts +0 -8
  867. package/dist/src/prompt/function-defs/ask-question.js +0 -100
  868. package/dist/src/prompt/function-defs/ask-question.js.map +0 -1
  869. package/dist/src/prompt/function-defs/codegen-summary.d.ts +0 -5
  870. package/dist/src/prompt/function-defs/codegen-summary.js +0 -82
  871. package/dist/src/prompt/function-defs/codegen-summary.js.map +0 -1
  872. package/dist/src/prompt/function-defs/explanation.d.ts +0 -5
  873. package/dist/src/prompt/function-defs/explanation.js +0 -18
  874. package/dist/src/prompt/function-defs/explanation.js.map +0 -1
  875. package/dist/src/prompt/function-defs/generate-image.d.ts +0 -5
  876. package/dist/src/prompt/function-defs/generate-image.js +0 -42
  877. package/dist/src/prompt/function-defs/generate-image.js.map +0 -1
  878. package/dist/src/prompt/function-defs/get-image-assets.d.ts +0 -5
  879. package/dist/src/prompt/function-defs/get-image-assets.js +0 -21
  880. package/dist/src/prompt/function-defs/get-image-assets.js.map +0 -1
  881. package/dist/src/prompt/function-defs/get-source-code.d.ts +0 -5
  882. package/dist/src/prompt/function-defs/get-source-code.js +0 -22
  883. package/dist/src/prompt/function-defs/get-source-code.js.map +0 -1
  884. package/dist/src/prompt/function-defs/optimize-context.d.ts +0 -5
  885. package/dist/src/prompt/function-defs/optimize-context.js +0 -47
  886. package/dist/src/prompt/function-defs/optimize-context.js.map +0 -1
  887. package/dist/src/prompt/function-defs/read-history.d.ts +0 -2
  888. package/dist/src/prompt/function-defs/read-history.js +0 -14
  889. package/dist/src/prompt/function-defs/read-history.js.map +0 -1
  890. package/dist/src/prompt/function-defs/set-summaries.d.ts +0 -5
  891. package/dist/src/prompt/function-defs/set-summaries.js +0 -32
  892. package/dist/src/prompt/function-defs/set-summaries.js.map +0 -1
  893. package/dist/src/prompt/function-defs/update-history.d.ts +0 -5
  894. package/dist/src/prompt/function-defs/update-history.js +0 -22
  895. package/dist/src/prompt/function-defs/update-history.js.map +0 -1
  896. package/dist/src/prompt/limits.d.ts +0 -3
  897. package/dist/src/prompt/limits.js +0 -21
  898. package/dist/src/prompt/limits.js.map +0 -1
  899. package/dist/src/prompt/limits.test.d.ts +0 -1
  900. package/dist/src/prompt/limits.test.js +0 -35
  901. package/dist/src/prompt/limits.test.js.map +0 -1
  902. package/dist/src/prompt/prompt-codegen.d.ts +0 -9
  903. package/dist/src/prompt/prompt-codegen.js +0 -117
  904. package/dist/src/prompt/prompt-codegen.js.map +0 -1
  905. package/dist/src/prompt/prompt-codegen.test.d.ts +0 -1
  906. package/dist/src/prompt/prompt-codegen.test.js +0 -98
  907. package/dist/src/prompt/prompt-codegen.test.js.map +0 -1
  908. package/dist/src/prompt/prompt-consts.d.ts +0 -1
  909. package/dist/src/prompt/prompt-consts.js +0 -2
  910. package/dist/src/prompt/prompt-consts.js.map +0 -1
  911. package/dist/src/prompt/prompt-service-ask-question.test.d.ts +0 -4
  912. package/dist/src/prompt/prompt-service-ask-question.test.js +0 -215
  913. package/dist/src/prompt/prompt-service-ask-question.test.js.map +0 -1
  914. package/dist/src/prompt/prompt-service.d.ts +0 -5
  915. package/dist/src/prompt/prompt-service.js +0 -214
  916. package/dist/src/prompt/prompt-service.js.map +0 -1
  917. package/dist/src/prompt/prompt-service.test.d.ts +0 -2
  918. package/dist/src/prompt/prompt-service.test.js +0 -553
  919. package/dist/src/prompt/prompt-service.test.js.map +0 -1
  920. package/dist/src/prompt/steps/step-ask-question/handlers/cancel-code-generation.d.ts +0 -2
  921. package/dist/src/prompt/steps/step-ask-question/handlers/cancel-code-generation.js +0 -16
  922. package/dist/src/prompt/steps/step-ask-question/handlers/cancel-code-generation.js.map +0 -1
  923. package/dist/src/prompt/steps/step-ask-question/handlers/confirm-code-generation.d.ts +0 -2
  924. package/dist/src/prompt/steps/step-ask-question/handlers/confirm-code-generation.js +0 -37
  925. package/dist/src/prompt/steps/step-ask-question/handlers/confirm-code-generation.js.map +0 -1
  926. package/dist/src/prompt/steps/step-ask-question/handlers/context-optimization.d.ts +0 -2
  927. package/dist/src/prompt/steps/step-ask-question/handlers/context-optimization.js +0 -36
  928. package/dist/src/prompt/steps/step-ask-question/handlers/context-optimization.js.map +0 -1
  929. package/dist/src/prompt/steps/step-ask-question/handlers/default-action.d.ts +0 -2
  930. package/dist/src/prompt/steps/step-ask-question/handlers/default-action.js +0 -18
  931. package/dist/src/prompt/steps/step-ask-question/handlers/default-action.js.map +0 -1
  932. package/dist/src/prompt/steps/step-ask-question/handlers/handle-request-answer.d.ts +0 -2
  933. package/dist/src/prompt/steps/step-ask-question/handlers/handle-request-answer.js +0 -20
  934. package/dist/src/prompt/steps/step-ask-question/handlers/handle-request-answer.js.map +0 -1
  935. package/dist/src/prompt/steps/step-ask-question/handlers/remove-files-from-context.d.ts +0 -2
  936. package/dist/src/prompt/steps/step-ask-question/handlers/remove-files-from-context.js +0 -43
  937. package/dist/src/prompt/steps/step-ask-question/handlers/remove-files-from-context.js.map +0 -1
  938. package/dist/src/prompt/steps/step-ask-question/handlers/request-files-content.d.ts +0 -2
  939. package/dist/src/prompt/steps/step-ask-question/handlers/request-files-content.js +0 -49
  940. package/dist/src/prompt/steps/step-ask-question/handlers/request-files-content.js.map +0 -1
  941. package/dist/src/prompt/steps/step-ask-question/handlers/request-permissions.d.ts +0 -2
  942. package/dist/src/prompt/steps/step-ask-question/handlers/request-permissions.js +0 -46
  943. package/dist/src/prompt/steps/step-ask-question/handlers/request-permissions.js.map +0 -1
  944. package/dist/src/prompt/steps/step-ask-question/handlers/start-code-generation.d.ts +0 -2
  945. package/dist/src/prompt/steps/step-ask-question/handlers/start-code-generation.js +0 -16
  946. package/dist/src/prompt/steps/step-ask-question/handlers/start-code-generation.js.map +0 -1
  947. package/dist/src/prompt/steps/step-ask-question/step-ask-question-handlers.d.ts +0 -0
  948. package/dist/src/prompt/steps/step-ask-question/step-ask-question-handlers.js +0 -2
  949. package/dist/src/prompt/steps/step-ask-question/step-ask-question-handlers.js.map +0 -1
  950. package/dist/src/prompt/steps/step-ask-question/step-ask-question-reflect.d.ts +0 -4
  951. package/dist/src/prompt/steps/step-ask-question/step-ask-question-reflect.js +0 -91
  952. package/dist/src/prompt/steps/step-ask-question/step-ask-question-reflect.js.map +0 -1
  953. package/dist/src/prompt/steps/step-ask-question/step-ask-question-types.d.ts +0 -55
  954. package/dist/src/prompt/steps/step-ask-question/step-ask-question-types.js +0 -2
  955. package/dist/src/prompt/steps/step-ask-question/step-ask-question-types.js.map +0 -1
  956. package/dist/src/prompt/steps/step-ask-question/step-ask-question.d.ts +0 -6
  957. package/dist/src/prompt/steps/step-ask-question/step-ask-question.js +0 -88
  958. package/dist/src/prompt/steps/step-ask-question/step-ask-question.js.map +0 -1
  959. package/dist/src/prompt/steps/step-context-optimization.d.ts +0 -4
  960. package/dist/src/prompt/steps/step-context-optimization.js +0 -200
  961. package/dist/src/prompt/steps/step-context-optimization.js.map +0 -1
  962. package/dist/src/prompt/steps/step-generate-image.d.ts +0 -2
  963. package/dist/src/prompt/steps/step-generate-image.js +0 -29
  964. package/dist/src/prompt/steps/step-generate-image.js.map +0 -1
  965. package/dist/src/prompt/steps/step-generate-summary.d.ts +0 -3
  966. package/dist/src/prompt/steps/step-generate-summary.js +0 -41
  967. package/dist/src/prompt/steps/step-generate-summary.js.map +0 -1
  968. package/dist/src/prompt/steps/step-history-update.d.ts +0 -5
  969. package/dist/src/prompt/steps/step-history-update.js +0 -54
  970. package/dist/src/prompt/steps/step-history-update.js.map +0 -1
  971. package/dist/src/prompt/steps/step-summarization.d.ts +0 -8
  972. package/dist/src/prompt/steps/step-summarization.js +0 -75
  973. package/dist/src/prompt/steps/step-summarization.js.map +0 -1
  974. package/dist/src/prompt/steps/step-validate-recover.d.ts +0 -2
  975. package/dist/src/prompt/steps/step-validate-recover.js +0 -51
  976. package/dist/src/prompt/steps/step-validate-recover.js.map +0 -1
  977. package/dist/src/prompt/steps/step-verify-patch.d.ts +0 -6
  978. package/dist/src/prompt/steps/step-verify-patch.js +0 -34
  979. package/dist/src/prompt/steps/step-verify-patch.js.map +0 -1
  980. package/dist/src/prompt/steps/steps-types.d.ts +0 -16
  981. package/dist/src/prompt/steps/steps-types.js +0 -6
  982. package/dist/src/prompt/steps/steps-types.js.map +0 -1
  983. package/dist/src/prompt/steps/steps-utils.d.ts +0 -7
  984. package/dist/src/prompt/steps/steps-utils.js +0 -11
  985. package/dist/src/prompt/steps/steps-utils.js.map +0 -1
  986. package/dist/src/prompt/systemprompt.d.ts +0 -3
  987. package/dist/src/prompt/systemprompt.js +0 -209
  988. package/dist/src/prompt/systemprompt.js.map +0 -1
  989. package/dist/src/prompt/systemprompt.test.d.ts +0 -3
  990. package/dist/src/prompt/systemprompt.test.js +0 -43
  991. package/dist/src/prompt/systemprompt.test.js.map +0 -1
  992. package/dist/src/prompt/token-estimator.d.ts +0 -8
  993. package/dist/src/prompt/token-estimator.js +0 -31
  994. package/dist/src/prompt/token-estimator.js.map +0 -1
  995. package/dist/src/vite-genaicode/vite-genaicode-frontend.d.ts +0 -1
  996. package/dist/src/vite-genaicode/vite-genaicode-frontend.js +0 -142
  997. package/dist/src/vite-genaicode/vite-genaicode-frontend.js.map +0 -1
  998. package/dist/src/vite-genaicode/vite-genaicode-plugin.d.ts +0 -7
  999. package/dist/src/vite-genaicode/vite-genaicode-plugin.js +0 -40
  1000. package/dist/src/vite-genaicode/vite-genaicode-plugin.js.map +0 -1
  1001. package/dist/vite-genaicode/vite-genaicode-frontend.d.ts.map +0 -1
  1002. package/dist/vite-genaicode/vite-genaicode-plugin.d.ts.map +0 -1
  1003. /package/dist/{ai-service/common.test.d.ts → main/ui/backend/endpoints/context-endpoint.d.ts} +0 -0
@@ -7,34 +7,47 @@ function getActionTypeDescription() {
7
7
  return `This value instructs the program on what should happen next.
8
8
 
9
9
  Detailed Explanation of actionTypes:
10
- - sendMessage: Use for general information, clarifications, or when no specific code is needed.
11
- - sendMessageWithImage: Use when an image is needed to provide context or additional information.
12
- - updateFile: Use to update a single file with new content. The user will be able to see the diff and approve or reject the change. Then you will be able to continue the conversation.
10
+ - sendMessage: Use for general information, clarifications, or when no specific code is needed, or when there is a need to analyze something.
11
+ - generateImage: Use this action only if there is a need to generate an image based on the conversation, and then display it to the user.
12
+ - updateFile: Use to update a single file that exists already with a new content. The user will be able to see the diff and approve or reject the change. Then you will be able to continue the conversation.
13
+ - createFile: Use to create a new file with the provided content. The user will be able to see the new file and approve or reject the change. Then you will be able to continue the conversation.
14
+ - performAnalysis: Use when there's a need to analyze complex problems or data that requires enhanced context or more expensive computation. This action supports both code and image analysis with customizable context and parameters.
13
15
  - requestPermissions: Use **only when you lack necessary permissions** for actions like creating, deleting, or moving files, and need to request them from the user.
14
16
  - requestFilesContent: Use specifically when needing to access or review the contents of files, and it was not provided yet in any of preceeding \`getSourceCode\` function responses.
15
17
  - removeFilesFromContext: Use to remove unnecessary file contents from context, optimizing token usage.
16
18
  - contextOptimization: Use to manage and optimize context during code generation tasks, allowing the LLM to provide guidance on what parts of the context are most relevant to keep.
17
19
  - searchCode: Use to search through source code files with flexible filtering. Supports searching in file contents and names, with pattern matching and case sensitivity options. Useful for finding specific code patterns or references across the codebase.
18
20
  - confirmCodeGeneration: Use to confirm with the user before starting code generation tasks.
19
- - cancelCodeGeneration: Use to stop the session, and the conversation.
21
+ - endConversation: Use to stop the conversation.
22
+ ${rcConfig.featuresEnabled?.appContext
23
+ ? `- pullAppContext: Use to retrieve application context values for use in the conversation. This allows accessing shared state between the application and GenAIcode.
24
+ - pushAppContext: Use to update application context values based on conversation outcomes. This enables persisting conversation results back to the application.`
25
+ : ''}
20
26
  ${rcConfig.lintCommand ? '- lint: Use to check the code for errors and provide feedback on the quality of the code.' : ''}
21
27
  ${pluginDescriptions}
28
+ - genaicodeHelp: Use to provide help to the user on how to use GenAIcode. The response will be grounded in the content of GenAIcode's documentation.
29
+ - reasoningInference: Use to perform an inference on a reasoning model. Should be used when a in-depth reasoning is needed for a specific problem.
22
30
 
23
- This value must be derived from the decision-making process, and must be one of the above values.`;
31
+ This value must be derived from the value of \`decisionMakingProcess\` parameter, and must be one of the above values.`;
24
32
  }
25
33
  const actionTypeOptions = [
26
34
  'sendMessage',
27
- 'sendMessageWithImage',
35
+ 'generateImage',
28
36
  'updateFile',
37
+ 'createFile',
38
+ 'performAnalysis',
29
39
  'requestPermissions',
30
40
  'requestFilesContent',
31
41
  'removeFilesFromContext',
32
42
  'contextOptimization',
33
43
  'searchCode',
34
44
  'confirmCodeGeneration',
35
- 'cancelCodeGeneration',
45
+ 'endConversation',
46
+ ...(rcConfig.featuresEnabled?.appContext ? ['pullAppContext', 'pushAppContext'] : []),
36
47
  ...(rcConfig.lintCommand ? ['lint'] : []),
37
48
  ...Array.from(getRegisteredActionHandlers().keys()),
49
+ 'genaicodeHelp',
50
+ 'reasoningInference',
38
51
  ];
39
52
  /**
40
53
  * Function definition for askQuestion
@@ -45,19 +58,14 @@ const actionTypeOptions = [
45
58
  export const getAskQuestionDef = () => ({
46
59
  name: 'askQuestion',
47
60
  description: `Use this function to interact with the user for various purposes.
48
- The \`decisionMakingProcess\` must be provided as first parameter to ensure clarity in decision-making, and impact on selection of \`actionType\` and \`message\`.
49
- The \`message\` property must align with the chosen \`actionType\`.
50
-
51
- The desired format of parameters is as follows:
52
- \`\`\`
53
- {
54
- "decisionMakingProcess": "...", // A detailed decision-making framework the assistant followed before selecting an action.",
55
- "actionType": "...", // The type of action to perform.
56
- "message": "..." // The message to display to the user.
57
- }
58
- \`\`\`
59
-
60
- **IMPORTANT**: Mind the order of the parameters, as the decision-making process must be provided first to ensure clarity in decision-making.
61
+ The \`decisionMakingProcess\` must be provided as first parameter to ensure clarity in decision-making, and impact on selection of \`actionType\` and \`message\`.
62
+ The \`decisionMakingProcess\` value must contain the following sections: Contextual Analysis, Options Evaluation, Decision Justification, Minimal Action Selection, Evaluation of Action Choice
63
+ The \`actionType\` must be chosen based on the decision-making process, and the desired outcome.
64
+ The \`message\` property must align with the chosen \`actionType\`.
65
+
66
+ **IMPORTANT**:
67
+ - Mind the order of the parameters, as the decision-making process must be provided first to ensure clarity in decision-making.
68
+ - All parameters are required for this function to work properly.
61
69
  `,
62
70
  parameters: {
63
71
  type: 'object',
@@ -65,56 +73,37 @@ export const getAskQuestionDef = () => ({
65
73
  decisionMakingProcess: {
66
74
  type: 'string',
67
75
  description: `A detailed reasoning framework describing how you chose the action.
68
- The decisionMakingProcess value must be provided in the following format:
76
+ The decisionMakingProcess value must be provided in the following format:
69
77
 
70
- \`\`\`
71
- 1. **Contextual Analysis**:
72
- Assess the current information, including available permissions,
73
- the current context, and task requirements. Identify any missing elements
74
- that are critical to task completion.
75
-
76
- 2. **Options Evaluation**:
77
- For every action type think how this action can help in the current context. Provide reasoning for each action type in such format:
78
- \`\`\`
79
- ${actionTypeOptions
80
- .map((actionType) => ` - ${actionType}: <reasoning>`)
81
- .join('\
82
- ')}
83
- \`\`\`
84
-
85
- 3. **Decision Justification**:
86
- State the reasoning for the proposed action, considering whether planning,
87
- clarification, or a direct action is required. If there's any ambiguity,
88
- prefer a confirmatory action (e.g., "confirmCodeGeneration").
78
+ \`\`\`
79
+ 1. **Contextual Analysis**:
80
+ Assess the current information, including available permissions,
81
+ the current context, and task requirements. Identify any missing elements
82
+ that are critical to task completion.
83
+
84
+ 2. **Options Evaluation**:
85
+ For every action type think how this action can help in the current context. Provide reasoning for each action type in such format:
86
+ \`\`\`
87
+ ${actionTypeOptions.map((actionType) => ` - ${actionType}: <reasoning>`).join('\n')}
88
+ \`\`\`
89
89
 
90
- 4. **Minimal Action Selection**:
91
- Determine the minimal action that can make progress toward the task goal.
92
- Avoid requesting unnecessary permissions or context that isn't strictly needed.
90
+ 3. **Decision Justification**:
91
+ State the reasoning for the proposed action, considering whether planning,
92
+ clarification, or a direct action is required. If there's any ambiguity,
93
+ prefer a confirmatory action (e.g., "confirmCodeGeneration").
93
94
 
94
- 5. **Evaluation of Action Choice**:
95
- Double-check if the selected action aligns with the task requirements
96
- and the user-provided constraints.
95
+ 4. **Minimal Action Selection**:
96
+ Determine the minimal action that can make progress toward the task goal.
97
+ Avoid requesting unnecessary permissions or context that isn't strictly needed.
97
98
 
98
- 6. **Action type**:
99
- Final selection of the action type value based on the above steps.
99
+ 5. **Evaluation of Action Choice**:
100
+ Double-check if the selected action aligns with the task requirements
101
+ and the user-provided constraints.
100
102
  \`\`\``,
101
103
  },
102
104
  actionType: {
103
105
  type: 'string',
104
- enum: [
105
- 'sendMessage',
106
- 'sendMessageWithImage',
107
- 'requestPermissions',
108
- 'requestFilesContent',
109
- 'removeFilesFromContext',
110
- 'confirmCodeGeneration',
111
- 'cancelCodeGeneration',
112
- 'contextOptimization',
113
- 'searchCode',
114
- 'updateFile',
115
- ...(rcConfig.lintCommand ? ['lint'] : []),
116
- ...Array.from(getRegisteredActionHandlers().keys()),
117
- ],
106
+ enum: actionTypeOptions,
118
107
  description: getActionTypeDescription(),
119
108
  },
120
109
  message: {
@@ -143,25 +132,6 @@ export const requestFilesContent = {
143
132
  required: ['filePaths'],
144
133
  },
145
134
  };
146
- // sendMessageWithImage
147
- export const sendMessageWithImage = {
148
- name: 'sendMessageWithImage',
149
- description: 'Use this function to send message to the user with accompanying image that will be generated using provided prompt, and optionally using other image as a context.',
150
- parameters: {
151
- type: 'object',
152
- properties: {
153
- prompt: {
154
- type: 'string',
155
- description: 'The prompt used to generate the image.',
156
- },
157
- contextImage: {
158
- type: 'string',
159
- description: 'Optional path to an image file used as context for image generation.',
160
- },
161
- },
162
- required: ['prompt'],
163
- },
164
- };
165
135
  // removeFilesFromContext
166
136
  export const removeFilesFromContext = {
167
137
  name: 'removeFilesFromContext',
@@ -298,4 +268,46 @@ export const lint = {
298
268
  required: [],
299
269
  },
300
270
  };
271
+ // pullAppContext
272
+ export const pullAppContext = {
273
+ name: 'pullAppContext',
274
+ description: 'Use this function to retrieve application context values for use in the conversation.',
275
+ parameters: {
276
+ type: 'object',
277
+ properties: {
278
+ key: {
279
+ type: 'string',
280
+ description: 'The key of the context value to retrieve.',
281
+ },
282
+ reason: {
283
+ type: 'string',
284
+ description: 'Optional reason for retrieving this context value.',
285
+ },
286
+ },
287
+ required: ['key'],
288
+ },
289
+ };
290
+ // pushAppContext
291
+ export const pushAppContext = {
292
+ name: 'pushAppContext',
293
+ description: 'Use this function to update application context values based on conversation outcomes.',
294
+ parameters: {
295
+ type: 'object',
296
+ properties: {
297
+ key: {
298
+ type: 'string',
299
+ description: 'The key of the context value to update.',
300
+ },
301
+ value: {
302
+ type: 'string',
303
+ description: 'The value to store in the context. This must be a valid json string.',
304
+ },
305
+ reason: {
306
+ type: 'string',
307
+ description: 'Optional reason for updating this context value.',
308
+ },
309
+ },
310
+ required: ['key', 'value'],
311
+ },
312
+ };
301
313
  //# sourceMappingURL=ask-question.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ask-question.js","sourceRoot":"","sources":["../../../src/prompt/function-defs/ask-question.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,sCAAsC,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAElH,SAAS,wBAAwB;IAC/B,MAAM,kBAAkB,GAAG,KAAK,CAAC,IAAI,CAAC,sCAAsC,EAAE,CAAC,OAAO,EAAE,CAAC;SACtF,GAAG,CAAC,CAAC,CAAC,UAAU,EAAE,WAAW,CAAC,EAAE,EAAE,CAAC,MAAM,UAAU,KAAK,WAAW,EAAE,CAAC;SACtE,IAAI,CAAC,IAAI,CAAC,CAAC;IAEd,OAAO;;;;;;;;;;;;;EAaP,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,2FAA2F,CAAC,CAAC,CAAC,EAAE;EACvH,kBAAkB;;kGAE8E,CAAC;AACnG,CAAC;AAED,MAAM,iBAAiB,GAAa;IAClC,aAAa;IACb,sBAAsB;IACtB,YAAY;IACZ,oBAAoB;IACpB,qBAAqB;IACrB,wBAAwB;IACxB,qBAAqB;IACrB,YAAY;IACZ,uBAAuB;IACvB,sBAAsB;IACtB,GAAG,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACzC,GAAG,KAAK,CAAC,IAAI,CAAC,2BAA2B,EAAE,CAAC,IAAI,EAAE,CAAC;CACpD,CAAC;AAEF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAA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BACf,WAAW,EAAE,iDAAiD;aAC/D;YACD,aAAa,EAAE;gBACb,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,wCAAwC;aACtD;YACD,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,mDAAmD;aACjE;YACD,YAAY,EAAE;gBACZ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,wEAAwE;aACtF;SACF;QACD,QAAQ,EAAE,CAAC,OAAO,CAAC;KACpB;CACF,CAAC;AAEF,OAAO;AACP,MAAM,CAAC,MAAM,IAAI,GAAgB;IAC/B,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,wDAAwD;IACrE,UAAU,EAAE;QACV,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACzB,WAAW,EAAE,qFAAqF;aACnG;SACF;QACD,QAAQ,EAAE,EAAE;KACb;CACF,CAAC"}
1
+ {"version":3,"file":"ask-question.js","sourceRoot":"","sources":["../../../src/prompt/function-defs/ask-question.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,sCAAsC,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAElH,SAAS,wBAAwB;IAC/B,MAAM,kBAAkB,GAAG,KAAK,CAAC,IAAI,CAAC,sCAAsC,EAAE,CAAC,OAAO,EAAE,CAAC;SACtF,GAAG,CAAC,CAAC,CAAC,UAAU,EAAE,WAAW,CAAC,EAAE,EAAE,CAAC,MAAM,UAAU,KAAK,WAAW,EAAE,CAAC;SACtE,IAAI,CAAC,IAAI,CAAC,CAAC;IAEd,OAAO;;;;;;;;;;;;;;;EAgBP,QAAQ,CAAC,eAAe,EAAE,UAAU;QAClC,CAAC,CAAC;iKAC2J;QAC7J,CAAC,CAAC,EACN;EACE,QAAQ,CAA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K,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,sEAAsE;aACpF;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,kDAAkD;aAChE;SACF;QACD,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC;KAC3B;CACF,CAAC"}
@@ -1,4 +1,4 @@
1
- import { FunctionDef } from '../../ai-service/common.js';
1
+ import { FunctionDef } from '../../ai-service/common-types.js';
2
2
  /**
3
3
  * Function definition for codegenPlanning
4
4
  * This function analyzes the conversation and produces a detailed implementation plan
@@ -16,7 +16,7 @@ export const getCodegenPlanningDef = () => ({
16
16
  },
17
17
  codeChanges: {
18
18
  type: 'string',
19
- description: 'A step by step plan of code changes neccessary to solve the problem.',
19
+ description: 'A step by step plan of code changes necessary to solve the problem.',
20
20
  },
21
21
  affectedFiles: {
22
22
  type: 'array',
@@ -39,6 +39,16 @@ export const getCodegenPlanningDef = () => ({
39
39
  type: 'string',
40
40
  },
41
41
  },
42
+ fileSize: {
43
+ type: 'string',
44
+ description: 'The approximate size of the file (in lines of code or tokens)',
45
+ enum: ['small', 'medium', 'large', 'n/a'],
46
+ },
47
+ changeComplexity: {
48
+ type: 'string',
49
+ description: 'Describes how complex the required changes to this file will be.',
50
+ enum: ['trivial', 'simple', 'medium', 'complex', 'refactor', 'n/a'],
51
+ },
42
52
  },
43
53
  required: ['reason', 'filePath'],
44
54
  },
@@ -1 +1 @@
1
- {"version":3,"file":"codegen-planning.js","sourceRoot":"","sources":["../../../src/prompt/function-defs/codegen-planning.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAgB,EAAE,CAAC,CAAC;IACvD,IAAI,EAAE,iBAAiB;IACvB,WAAW,EACT,sIAAsI;IACxI,UAAU,EAAE;QACV,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,eAAe,EAAE;gBACf,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,mCAAmC;aACjD;YACD,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,sEAAsE;aACpF;YACD,aAAa,EAAE;gBACb,IAAI,EAAE,OAAO;gBACb,WAAW,EAAE,sFAAsF;gBACnG,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,UAAU,EAAE;wBACV,MAAM,EAAE;4BACN,IAAI,EAAE,QAAQ;4BACd,WAAW,EAAE,iCAAiC;yBAC/C;wBACD,QAAQ,EAAE;4BACR,IAAI,EAAE,QAAQ;4BACd,WAAW,EAAE,4BAA4B;yBAC1C;wBACD,YAAY,EAAE;4BACZ,IAAI,EAAE,OAAO;4BACb,WAAW,EAAE,iEAAiE;4BAC9E,KAAK,EAAE;gCACL,IAAI,EAAE,QAAQ;6BACf;yBACF;qBACF;oBACD,QAAQ,EAAE,CAAC,QAAQ,EAAE,UAAU,CAAC;iBACjC;aACF;SACF;QACD,QAAQ,EAAE,CAAC,iBAAiB,EAAE,aAAa,EAAE,eAAe,CAAC;KAC9D;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"codegen-planning.js","sourceRoot":"","sources":["../../../src/prompt/function-defs/codegen-planning.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAgB,EAAE,CAAC,CAAC;IACvD,IAAI,EAAE,iBAAiB;IACvB,WAAW,EACT,sIAAsI;IACxI,UAAU,EAAE;QACV,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,eAAe,EAAE;gBACf,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,mCAAmC;aACjD;YACD,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,qEAAqE;aACnF;YACD,aAAa,EAAE;gBACb,IAAI,EAAE,OAAO;gBACb,WAAW,EAAE,sFAAsF;gBACnG,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,UAAU,EAAE;wBACV,MAAM,EAAE;4BACN,IAAI,EAAE,QAAQ;4BACd,WAAW,EAAE,iCAAiC;yBAC/C;wBACD,QAAQ,EAAE;4BACR,IAAI,EAAE,QAAQ;4BACd,WAAW,EAAE,4BAA4B;yBAC1C;wBACD,YAAY,EAAE;4BACZ,IAAI,EAAE,OAAO;4BACb,WAAW,EAAE,iEAAiE;4BAC9E,KAAK,EAAE;gCACL,IAAI,EAAE,QAAQ;6BACf;yBACF;wBACD,QAAQ,EAAE;4BACR,IAAI,EAAE,QAAQ;4BACd,WAAW,EAAE,+DAA+D;4BAC5E,IAAI,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,CAAC;yBAC1C;wBACD,gBAAgB,EAAE;4BAChB,IAAI,EAAE,QAAQ;4BACd,WAAW,EAAE,kEAAkE;4BAC/E,IAAI,EAAE,CAAC,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,CAAC;yBACpE;qBACF;oBACD,QAAQ,EAAE,CAAC,QAAQ,EAAE,UAAU,CAAC;iBACjC;aACF;SACF;QACD,QAAQ,EAAE,CAAC,iBAAiB,EAAE,aAAa,EAAE,eAAe,CAAC;KAC9D;CACF,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
- import { FunctionDef } from '../../ai-service/common.js';
1
+ import { FunctionDef } from '../../ai-service/common-types.js';
2
2
  /**
3
3
  * Function definition for codegenSummary
4
4
  */
@@ -4,33 +4,42 @@ import { getRegisteredOperations } from '../../main/plugin-loader.js';
4
4
  */
5
5
  export const getCodegenSummaryDef = () => ({
6
6
  name: 'codegenSummary',
7
- description: 'This function is called with a summary of proposed updates.\n' +
8
- '- `explanation`: A general explanation of the planned code generation updates or reasoning for no code changes.\n' +
9
- '- `fileUpdates`: A list of proposed file updates, including all affected files and dependencies.\n' +
10
- '- `contextPaths`: A list of file paths that make sense to use as context for code generation requests.\n' +
11
- 'It is critically important to adhere to the schema of parameters and include all relevant files.',
7
+ description: `This function is called with a summary of proposed updates.
8
+ - \`explanation\`: A step by step explanation of the planned code generation updates or reasoning for no code changes.
9
+ - \`fileUpdates\`: A list of proposed file updates, including all affected files and dependencies.
10
+ - \`contextPaths\`: A list of file paths that make sense to use as context for code generation requests.
11
+
12
+ It is critically important to adhere to the schema of parameters and include all relevant files.
13
+ When generating the codegen summary, the assistant will make use of preceding \`codegenPlanning\` function call.
14
+ Codegen summary is a derivative of the codegen planning step, the final step before code generation is executed.
15
+ .`,
12
16
  parameters: {
13
17
  type: 'object',
14
18
  properties: {
15
19
  explanation: {
16
20
  type: 'string',
17
- description: 'A brief description of the planned changes or an explanation if no changes are proposed.',
21
+ description: 'A step by step description of the planned changes or an explanation if no changes are proposed.',
18
22
  },
19
23
  fileUpdates: {
20
24
  type: 'array',
21
- description: 'An array of proposed file updates, each update is an object with several properties.',
25
+ description: `An array of proposed file updates, each update is an object with several properties.
26
+ The file updates are a consequence of the code generation planning step.`,
22
27
  items: {
23
28
  type: 'object',
24
29
  description: 'An object representing a proposed update to a file, containing properties like the absolute file path, the update tool name, and other important properties.',
25
30
  properties: {
26
31
  prompt: {
27
32
  type: 'string',
28
- description: '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.',
33
+ description: 'A detailed prompt that will be passed to the model request together with the tool request. It should be detailed as much as possible.',
29
34
  },
30
35
  filePath: {
31
36
  type: 'string',
32
37
  description: 'An absolute path of the project file that will be updated. This must be an absolute file path.',
33
38
  },
39
+ updateToolCoT: {
40
+ type: 'string',
41
+ description: `Step by step reasoning for choosing the function that will be used to perform the update.`,
42
+ },
34
43
  updateToolName: {
35
44
  type: 'string',
36
45
  enum: [
@@ -47,7 +56,7 @@ export const getCodegenSummaryDef = () => ({
47
56
  'imglyRemoveBackground',
48
57
  ...getRegisteredOperations().map((operation) => operation.def.name),
49
58
  ],
50
- description: 'The name of the tool that will be used to perform the update.',
59
+ description: 'The name of the function that will be used to perform the update.',
51
60
  },
52
61
  temperature: {
53
62
  type: 'number',
@@ -70,7 +79,7 @@ export const getCodegenSummaryDef = () => ({
70
79
  },
71
80
  contextPaths: {
72
81
  type: 'array',
73
- description: '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.',
82
+ description: 'An array of absolute file paths that should be used to provide context for file updates.',
74
83
  items: {
75
84
  type: 'string',
76
85
  },
@@ -1 +1 @@
1
- {"version":3,"file":"codegen-summary.js","sourceRoot":"","sources":["../../../src/prompt/function-defs/codegen-summary.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAEtE;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAgB,EAAE,CAAC,CAAC;IACtD,IAAI,EAAE,gBAAgB;IACtB,WAAW,EACT,+DAA+D;QAC/D,mHAAmH;QACnH,oGAAoG;QACpG,0GAA0G;QAC1G,kGAAkG;IACpG,UAAU,EAAE;QACV,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,0FAA0F;aACxG;YACD,WAAW,EAAE;gBACX,IAAI,EAAE,OAAO;gBACb,WAAW,EAAE,sFAAsF;gBACnG,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,8JAA8J;oBAChK,UAAU,EAAE;wBACV,MAAM,EAAE;4BACN,IAAI,EAAE,QAAQ;4BACd,WAAW,EACT,wJAAwJ;yBAC3J;wBACD,QAAQ,EAAE;4BACR,IAAI,EAAE,QAAQ;4BACd,WAAW,EACT,gGAAgG;yBACnG;wBACD,cAAc,EAAE;4BACd,IAAI,EAAE,QAAQ;4BACd,IAAI,EAAE;gCACJ,YAAY;gCACZ,YAAY;gCACZ,WAAW;gCACX,YAAY;gCACZ,iBAAiB;gCACjB,UAAU;gCACV,eAAe;gCACf,cAAc;gCACd,YAAY;gCACZ,aAAa;gCACb,uBAAuB;gCACvB,GAAG,uBAAuB,EAAE,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC;6BACpE;4BACD,WAAW,EAAE,+DAA+D;yBAC7E;wBACD,WAAW,EAAE;4BACX,IAAI,EAAE,QAAQ;4BACd,WAAW,EACT,oIAAoI;4BACtI,OAAO,EAAE,GAAG;4BACZ,OAAO,EAAE,GAAG;yBACb;wBACD,KAAK,EAAE;4BACL,IAAI,EAAE,SAAS;4BACf,WAAW,EACT,4JAA4J;yBAC/J;wBACD,kBAAkB,EAAE;4BAClB,IAAI,EAAE,OAAO;4BACb,WAAW,EACT,8JAA8J;4BAChK,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;yBAC1B;qBACF;oBACD,QAAQ,EAAE,CAAC,QAAQ,EAAE,UAAU,EAAE,gBAAgB,CAAC;iBACnD;aACF;YACD,YAAY,EAAE;gBACZ,IAAI,EAAE,OAAO;gBACb,WAAW,EACT,gLAAgL;gBAClL,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;QACD,QAAQ,EAAE,CAAC,aAAa,EAAE,aAAa,EAAE,cAAc,CAAC;KACzD;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"codegen-summary.js","sourceRoot":"","sources":["../../../src/prompt/function-defs/codegen-summary.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAEtE;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAgB,EAAE,CAAC,CAAC;IACtD,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE;;;;;;;;EAQb;IACA,UAAU,EAAE;QACV,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,iGAAiG;aAC/G;YACD,WAAW,EAAE;gBACX,IAAI,EAAE,OAAO;gBACb,W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F;SACF;QACD,QAAQ,EAAE,CAAC,aAAa,EAAE,aAAa,EAAE,cAAc,CAAC;KACzD;CACF,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
- import { FunctionDef } from '../../ai-service/common';
1
+ import { FunctionDef } from '../../ai-service/common-types';
2
2
  /**
3
3
  * Function definition for explanation
4
4
  */
@@ -0,0 +1,6 @@
1
+ import { FunctionDef } from '../../ai-service/common-types.js';
2
+ /**
3
+ * Function definition for retrieving help documentation from GenAIcode.
4
+ * This function is used by the help action handler to search and retrieve relevant documentation.
5
+ */
6
+ export declare const genaicodeHelpDef: FunctionDef;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Function definition for retrieving help documentation from GenAIcode.
3
+ * This function is used by the help action handler to search and retrieve relevant documentation.
4
+ */
5
+ export const genaicodeHelpDef = {
6
+ name: 'genaicodeHelp',
7
+ description: `This function provides help to the user on how to use GenAIcode. The response will be grounded in the content of GenAIcode's documentation.`,
8
+ parameters: {
9
+ type: 'object',
10
+ properties: {
11
+ reasoning: {
12
+ type: 'string',
13
+ description: 'Step by step thinking process starting from the problem statement, going through the thought process, and ending with potentially a solution to the user problem.',
14
+ },
15
+ message: {
16
+ type: 'string',
17
+ description: 'A message that will be displayed to the user as a result of the reasoning process and help action.',
18
+ },
19
+ },
20
+ required: ['reasoning', 'message'],
21
+ },
22
+ };
23
+ //# sourceMappingURL=genaicode-help.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"genaicode-help.js","sourceRoot":"","sources":["../../../src/prompt/function-defs/genaicode-help.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAgB;IAC3C,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,6IAA6I;IAC1J,UAAU,EAAE;QACV,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,mKAAmK;aACtK;YACD,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,oGAAoG;aACvG;SACF;QACD,QAAQ,EAAE,CAAC,WAAW,EAAE,SAAS,CAAC;KACnC;CACF,CAAC"}
@@ -1,4 +1,4 @@
1
- import { FunctionDef } from '../../ai-service/common';
1
+ import { FunctionDef } from '../../ai-service/common-types';
2
2
  /**
3
3
  * Function definition for generateImage
4
4
  */
@@ -1,4 +1,4 @@
1
- import { FunctionDef } from '../../ai-service/common';
1
+ import { FunctionDef } from '../../ai-service/common-types';
2
2
  /**
3
3
  * Function definition for getImageAssets
4
4
  */
@@ -1,4 +1,4 @@
1
- import { FunctionDef } from '../../ai-service/common';
1
+ import { FunctionDef } from '../../ai-service/common-types';
2
2
  /**
3
3
  * Function definition for getSourceCode
4
4
  */
@@ -1,4 +1,4 @@
1
- import { FunctionDef } from '../../ai-service/common';
1
+ import { FunctionDef } from '../../ai-service/common-types';
2
2
  /**
3
3
  * Function definition for optimizeContext
4
4
  */
@@ -41,7 +41,7 @@ This means that the file \`something.js\` file is not relevant to the user promp
41
41
  },
42
42
  reasoning: {
43
43
  type: 'string',
44
- description: 'Step-by-step analysis of what is needed for the user prompt and which files are needed to fullfil the prompt.',
44
+ description: 'Step-by-step analysis of what is needed for the user prompt, but it should not refer to specific files.',
45
45
  },
46
46
  optimizedContext: {
47
47
  type: 'array',
@@ -1 +1 @@
1
- {"version":3,"file":"optimize-context.js","sourceRoot":"","sources":["../../../src/prompt/function-defs/optimize-context.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAgB;IAC1C,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;yKA4B0J;IACvK,UAAU,EAAE;QACV,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,6BAA6B;aAC3C;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,+GAA+G;aAClH;YACD,gBAAgB,EAAE;gBAChB,IAAI,EAAE,OAAO;gBACb,WAAW,EAAE,0EAA0E;gBACvF,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,UAAU,EAAE;wBACV,SAAS,EAAE;4BACT,IAAI,EAAE,QAAQ;4BACd,WAAW,EAAE,wEAAwE;yBACtF;wBACD,QAAQ,EAAE;4BACR,IAAI,EAAE,QAAQ;4BACd,WAAW,EAAE,4CAA4C;yBAC1D;wBACD,SAAS,EAAE;4BACT,IAAI,EAAE,QAAQ;4BACd,WAAW,EAAE,gFAAgF;4BAC7F,OAAO,EAAE,GAAG;4BACZ,OAAO,EAAE,CAAC;yBACX;qBACF;oBACD,QAAQ,EAAE,CAAC,WAAW,EAAE,UAAU,EAAE,WAAW,CAAC;iBACjD;aACF;SACF;QACD,QAAQ,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,kBAAkB,CAAC;KAC1D;CACF,CAAC"}
1
+ {"version":3,"file":"optimize-context.js","sourceRoot":"","sources":["../../../src/prompt/function-defs/optimize-context.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAgB;IAC1C,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;yKA4B0J;IACvK,UAAU,EAAE;QACV,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,6BAA6B;aAC3C;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,yGAAyG;aAC5G;YACD,gBAAgB,EAAE;gBAChB,IAAI,EAAE,OAAO;gBACb,WAAW,EAAE,0EAA0E;gBACvF,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,UAAU,EAAE;wBACV,SAAS,EAAE;4BACT,IAAI,EAAE,QAAQ;4BACd,WAAW,EAAE,wEAAwE;yBACtF;wBACD,QAAQ,EAAE;4BACR,IAAI,EAAE,QAAQ;4BACd,WAAW,EAAE,4CAA4C;yBAC1D;wBACD,SAAS,EAAE;4BACT,IAAI,EAAE,QAAQ;4BACd,WAAW,EAAE,gFAAgF;4BAC7F,OAAO,EAAE,GAAG;4BACZ,OAAO,EAAE,CAAC;yBACX;qBACF;oBACD,QAAQ,EAAE,CAAC,WAAW,EAAE,UAAU,EAAE,WAAW,CAAC;iBACjD;aACF;SACF;QACD,QAAQ,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,kBAAkB,CAAC;KAC1D;CACF,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { FunctionDef } from '../../ai-service/common-types.js';
2
+ /**
3
+ * Function definition for performAnalysis operation.
4
+ * This function is called when there's a need to perform complex analysis
5
+ * of code, data, or other content that requires enhanced context or
6
+ * more expensive computation.
7
+ */
8
+ export declare const performAnalysis: FunctionDef;
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Function definition for performAnalysis operation.
3
+ * This function is called when there's a need to perform complex analysis
4
+ * of code, data, or other content that requires enhanced context or
5
+ * more expensive computation.
6
+ */
7
+ export const performAnalysis = {
8
+ name: 'performAnalysis',
9
+ description: `Perform analysis of complex problems or data that requires enhanced context or more expensive computation.
10
+ The \`prompt\` parameter must contain a detailed description of the analysis to perform and how to perform it.
11
+ `,
12
+ parameters: {
13
+ type: 'object',
14
+ properties: {
15
+ analysisType: {
16
+ type: 'string',
17
+ enum: ['code', 'image', 'security', 'performance', 'architecture', 'general'],
18
+ description: 'The type of analysis to perform. This helps in optimizing the analysis process and results.',
19
+ },
20
+ prompt: {
21
+ type: 'string',
22
+ description: 'The analysis prompt that describes in detail what needs to be analyzed and how.',
23
+ },
24
+ },
25
+ required: ['analysisType', 'prompt'],
26
+ },
27
+ };
28
+ //# sourceMappingURL=perform-analysis.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"perform-analysis.js","sourceRoot":"","sources":["../../../src/prompt/function-defs/perform-analysis.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,eAAe,GAAgB;IAC1C,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE;;CAEd;IACC,UAAU,EAAE;QACV,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,YAAY,EAAE;gBACZ,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,cAAc,EAAE,SAAS,CAAC;gBAC7E,WAAW,EAAE,6FAA6F;aAC3G;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,iFAAiF;aAC/F;SACF;QACD,QAAQ,EAAE,CAAC,cAAc,EAAE,QAAQ,CAAC;KACrC;CACF,CAAC"}
@@ -1,2 +1,2 @@
1
- import { FunctionDef } from '../../ai-service/common';
1
+ import { FunctionDef } from '../../ai-service/common-types';
2
2
  export declare const readHistory: FunctionDef;
@@ -0,0 +1,3 @@
1
+ import { FunctionDef } from '../../ai-service/common-types';
2
+ export declare const reasoningInference: FunctionDef;
3
+ export declare const reasoningInferenceResponse: FunctionDef;
@@ -0,0 +1,39 @@
1
+ export const reasoningInference = {
2
+ name: 'reasoningInference',
3
+ description: `This function performs a reasoning inference. It must be called with a prompt, which is detailed and exhaustive. The inference will be supplied only with this prompt, and will not contain any other context.
4
+ It must also be called with a list of context items, which are key-value pairs that provide additional context to the inference. The context items should be relevant to the prompt, and should be used to help the inference make more accurate predictions.`,
5
+ parameters: {
6
+ type: 'object',
7
+ properties: {
8
+ prompt: {
9
+ type: 'string',
10
+ description: `The string that contains the prompt. The prompt should be detailed and exhaustive. It should contain all relevant information that the inference model will need to make accurate predictions.`,
11
+ },
12
+ contextPaths: {
13
+ type: 'array',
14
+ description: 'An array of absolute file paths that should be used to provide context for the reasoning inference.',
15
+ items: {
16
+ type: 'string',
17
+ },
18
+ },
19
+ },
20
+ required: ['prompt', 'contextPaths'],
21
+ },
22
+ };
23
+ export const reasoningInferenceResponse = {
24
+ name: 'reasoningInferenceResponse',
25
+ description: 'Reasoning inference response',
26
+ parameters: {
27
+ type: 'object',
28
+ properties: {
29
+ reasoning: {
30
+ type: 'string',
31
+ },
32
+ response: {
33
+ type: 'string',
34
+ },
35
+ },
36
+ required: ['response'],
37
+ },
38
+ };
39
+ //# sourceMappingURL=reasoning-inference.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reasoning-inference.js","sourceRoot":"","sources":["../../../src/prompt/function-defs/reasoning-inference.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,kBAAkB,GAAgB;IAC7C,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EAAE;8PAC+O;IAC5P,UAAU,EAAE;QACV,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,gMAAgM;aAC9M;YACD,YAAY,EAAE;gBACZ,IAAI,EAAE,OAAO;gBACb,WAAW,EACT,qGAAqG;gBACvG,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;QACD,QAAQ,EAAE,CAAC,QAAQ,EAAE,cAAc,CAAC;KACrC;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAgB;IACrD,IAAI,EAAE,4BAA4B;IAClC,WAAW,EAAE,8BAA8B;IAC3C,UAAU,EAAE;QACV,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;aACf;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;aACf;SACF;QACD,QAAQ,EAAE,CAAC,UAAU,CAAC;KACvB;CACF,CAAC"}
@@ -1,4 +1,4 @@
1
- import { FunctionDef } from '../../ai-service/common';
1
+ import { FunctionDef } from '../../ai-service/common-types';
2
2
  /**
3
3
  * Function definition for setSummaries
4
4
  */
@@ -1,4 +1,4 @@
1
- import { FunctionDef } from '../../ai-service/common';
1
+ import { FunctionDef } from '../../ai-service/common-types';
2
2
  /**
3
3
  * Function definition for updateHistory
4
4
  */
@@ -2,7 +2,7 @@ import assert from 'node:assert';
2
2
  import { estimateTokenCount } from './token-estimator.js';
3
3
  const SYSTEM_PROMPT_LIMIT = 3500;
4
4
  const CODEGEN_PROMPT_LIMIT = 1600;
5
- const SOURCE_CODE_LIMIT = 110000;
5
+ const SOURCE_CODE_LIMIT = 150000;
6
6
  function verifyPromptLimit(promptType, prompt, limit) {
7
7
  const tokenCount = estimateTokenCount(prompt);
8
8
  console.log(`${promptType} prompt estimated token count: ${tokenCount}`);
@@ -1,5 +1,8 @@
1
- import { FunctionCall, GenerateContentFunction, GenerateImageFunction } from '../ai-service/common.js';
2
- import { AiServiceType, ImagenType } from '../main/codegen-types.js';
1
+ import { GenerateImageFunction } from '../ai-service/common-types.js';
2
+ import { GenerateContentFunction } from '../ai-service/common-types.js';
3
+ import { FunctionCall } from '../ai-service/common-types.js';
4
+ import { ImagenType } from '../main/codegen-types.js';
5
+ import { AiServiceType } from '../ai-service/service-configurations-types.js';
3
6
  import { CodegenPrompt } from './prompt-codegen.js';
4
7
  /** A function that communicates with model using */
5
8
  export declare function promptService(generateContentFns: Record<AiServiceType, GenerateContentFunction>, generateImageFns: Record<ImagenType, GenerateImageFunction>, codegenPrompt: CodegenPrompt, waitIfPaused?: () => Promise<void>): Promise<FunctionCall[]>;