genaicode 1.0.0 → 2.0.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 (1005) hide show
  1. package/README.md +269 -87
  2. package/dist/cli.d.ts +2 -0
  3. package/dist/cli.js +4 -0
  4. package/dist/cli.js.map +1 -0
  5. package/dist/core/client.d.ts +36 -0
  6. package/dist/core/client.js +121 -0
  7. package/dist/core/client.js.map +1 -0
  8. package/dist/core/plugins.d.ts +14 -0
  9. package/dist/core/plugins.js +31 -0
  10. package/dist/core/plugins.js.map +1 -0
  11. package/dist/core/prompt.d.ts +14 -0
  12. package/dist/core/prompt.js +47 -0
  13. package/dist/core/prompt.js.map +1 -0
  14. package/dist/core/result.d.ts +5 -0
  15. package/dist/core/result.js +23 -0
  16. package/dist/core/result.js.map +1 -0
  17. package/dist/core/types.d.ts +103 -0
  18. package/dist/core/types.js +2 -0
  19. package/dist/core/types.js.map +1 -0
  20. package/dist/index.d.ts +7 -8
  21. package/dist/index.js +5 -11
  22. package/dist/index.js.map +1 -1
  23. package/dist/pivot-notice.d.ts +1 -0
  24. package/dist/pivot-notice.js +13 -0
  25. package/dist/pivot-notice.js.map +1 -0
  26. package/dist/providers/anthropic-converter.d.ts +12 -0
  27. package/dist/providers/anthropic-converter.js +111 -0
  28. package/dist/providers/anthropic-converter.js.map +1 -0
  29. package/dist/providers/anthropic.d.ts +11 -0
  30. package/dist/providers/anthropic.js +28 -0
  31. package/dist/providers/anthropic.js.map +1 -0
  32. package/dist/providers/google-converter.d.ts +10 -0
  33. package/dist/providers/google-converter.js +142 -0
  34. package/dist/providers/google-converter.js.map +1 -0
  35. package/dist/providers/google.d.ts +22 -0
  36. package/dist/providers/google.js +35 -0
  37. package/dist/providers/google.js.map +1 -0
  38. package/dist/providers/openai-converter.d.ts +16 -0
  39. package/dist/providers/openai-converter.js +110 -0
  40. package/dist/providers/openai-converter.js.map +1 -0
  41. package/dist/providers/openai.d.ts +13 -0
  42. package/dist/providers/openai.js +29 -0
  43. package/dist/providers/openai.js.map +1 -0
  44. package/dist/providers.d.ts +11 -0
  45. package/dist/providers.js +7 -0
  46. package/dist/providers.js.map +1 -0
  47. package/docs/pivot.md +95 -0
  48. package/package.json +32 -91
  49. package/bin/genaicode-dev.js +0 -12
  50. package/bin/genaicode.cjs +0 -23
  51. package/dist/ai-service/ai-studio.d.ts +0 -6
  52. package/dist/ai-service/ai-studio.js +0 -460
  53. package/dist/ai-service/ai-studio.js.map +0 -1
  54. package/dist/ai-service/anthropic.d.ts +0 -5
  55. package/dist/ai-service/anthropic.js +0 -353
  56. package/dist/ai-service/anthropic.js.map +0 -1
  57. package/dist/ai-service/common-types.d.ts +0 -131
  58. package/dist/ai-service/common-types.js +0 -10
  59. package/dist/ai-service/common-types.js.map +0 -1
  60. package/dist/ai-service/common.d.ts +0 -23
  61. package/dist/ai-service/common.js +0 -59
  62. package/dist/ai-service/common.js.map +0 -1
  63. package/dist/ai-service/dall-e.d.ts +0 -7
  64. package/dist/ai-service/dall-e.js +0 -44
  65. package/dist/ai-service/dall-e.js.map +0 -1
  66. package/dist/ai-service/files-api.d.ts +0 -33
  67. package/dist/ai-service/files-api.js +0 -239
  68. package/dist/ai-service/files-api.js.map +0 -1
  69. package/dist/ai-service/github-models.d.ts +0 -13
  70. package/dist/ai-service/github-models.js +0 -49
  71. package/dist/ai-service/github-models.js.map +0 -1
  72. package/dist/ai-service/local-llm.d.ts +0 -6
  73. package/dist/ai-service/local-llm.js +0 -74
  74. package/dist/ai-service/local-llm.js.map +0 -1
  75. package/dist/ai-service/openai-responses.d.ts +0 -9
  76. package/dist/ai-service/openai-responses.js +0 -332
  77. package/dist/ai-service/openai-responses.js.map +0 -1
  78. package/dist/ai-service/openai.d.ts +0 -9
  79. package/dist/ai-service/openai.js +0 -395
  80. package/dist/ai-service/openai.js.map +0 -1
  81. package/dist/ai-service/service-configurations-types.d.ts +0 -79
  82. package/dist/ai-service/service-configurations-types.js +0 -6
  83. package/dist/ai-service/service-configurations-types.js.map +0 -1
  84. package/dist/ai-service/service-configurations.d.ts +0 -42
  85. package/dist/ai-service/service-configurations.js +0 -241
  86. package/dist/ai-service/service-configurations.js.map +0 -1
  87. package/dist/ai-service/unescape-function-call.d.ts +0 -7
  88. package/dist/ai-service/unescape-function-call.js +0 -59
  89. package/dist/ai-service/unescape-function-call.js.map +0 -1
  90. package/dist/ai-service/vertex-ai-claude.d.ts +0 -5
  91. package/dist/ai-service/vertex-ai-claude.js +0 -160
  92. package/dist/ai-service/vertex-ai-claude.js.map +0 -1
  93. package/dist/ai-service/vertex-ai-imagen.d.ts +0 -7
  94. package/dist/ai-service/vertex-ai-imagen.js +0 -70
  95. package/dist/ai-service/vertex-ai-imagen.js.map +0 -1
  96. package/dist/ai-service/vertex-ai.d.ts +0 -6
  97. package/dist/ai-service/vertex-ai.js +0 -18
  98. package/dist/ai-service/vertex-ai.js.map +0 -1
  99. package/dist/cli/cli-options.d.ts +0 -10
  100. package/dist/cli/cli-options.js +0 -116
  101. package/dist/cli/cli-options.js.map +0 -1
  102. package/dist/cli/cli-params.d.ts +0 -29
  103. package/dist/cli/cli-params.js +0 -118
  104. package/dist/cli/cli-params.js.map +0 -1
  105. package/dist/cli/service-autodetect.d.ts +0 -2
  106. package/dist/cli/service-autodetect.js +0 -17
  107. package/dist/cli/service-autodetect.js.map +0 -1
  108. package/dist/cli/validate-cli-params.d.ts +0 -18
  109. package/dist/cli/validate-cli-params.js +0 -146
  110. package/dist/cli/validate-cli-params.js.map +0 -1
  111. package/dist/files/cache-file.d.ts +0 -10
  112. package/dist/files/cache-file.js +0 -57
  113. package/dist/files/cache-file.js.map +0 -1
  114. package/dist/files/file-id-utils.d.ts +0 -7
  115. package/dist/files/file-id-utils.js +0 -25
  116. package/dist/files/file-id-utils.js.map +0 -1
  117. package/dist/files/file-utils.d.ts +0 -2
  118. package/dist/files/file-utils.js +0 -7
  119. package/dist/files/file-utils.js.map +0 -1
  120. package/dist/files/find-files.d.ts +0 -10
  121. package/dist/files/find-files.js +0 -87
  122. package/dist/files/find-files.js.map +0 -1
  123. package/dist/files/path-utils.d.ts +0 -1
  124. package/dist/files/path-utils.js +0 -12
  125. package/dist/files/path-utils.js.map +0 -1
  126. package/dist/files/read-files.d.ts +0 -18
  127. package/dist/files/read-files.js +0 -107
  128. package/dist/files/read-files.js.map +0 -1
  129. package/dist/files/search-files.d.ts +0 -53
  130. package/dist/files/search-files.js +0 -97
  131. package/dist/files/search-files.js.map +0 -1
  132. package/dist/files/source-code-tree.d.ts +0 -16
  133. package/dist/files/source-code-tree.js +0 -41
  134. package/dist/files/source-code-tree.js.map +0 -1
  135. package/dist/files/source-code-types.d.ts +0 -53
  136. package/dist/files/source-code-types.js +0 -2
  137. package/dist/files/source-code-types.js.map +0 -1
  138. package/dist/files/source-code-utils.d.ts +0 -31
  139. package/dist/files/source-code-utils.js +0 -126
  140. package/dist/files/source-code-utils.js.map +0 -1
  141. package/dist/files/summary-cache.d.ts +0 -25
  142. package/dist/files/summary-cache.js +0 -23
  143. package/dist/files/summary-cache.js.map +0 -1
  144. package/dist/files/temp-buffer.d.ts +0 -2
  145. package/dist/files/temp-buffer.js +0 -12
  146. package/dist/files/temp-buffer.js.map +0 -1
  147. package/dist/files/update-files.d.ts +0 -7
  148. package/dist/files/update-files.js +0 -30
  149. package/dist/files/update-files.js.map +0 -1
  150. package/dist/help-docs/genaicode-help-document.d.ts +0 -1
  151. package/dist/help-docs/genaicode-help-document.js +0 -287
  152. package/dist/help-docs/genaicode-help-document.js.map +0 -1
  153. package/dist/images/ensure-alpha.d.ts +0 -1
  154. package/dist/images/ensure-alpha.js +0 -5
  155. package/dist/images/ensure-alpha.js.map +0 -1
  156. package/dist/images/imgly-remove-background.d.ts +0 -2
  157. package/dist/images/imgly-remove-background.js +0 -21
  158. package/dist/images/imgly-remove-background.js.map +0 -1
  159. package/dist/images/resize-image.d.ts +0 -19
  160. package/dist/images/resize-image.js +0 -22
  161. package/dist/images/resize-image.js.map +0 -1
  162. package/dist/images/split-image.d.ts +0 -18
  163. package/dist/images/split-image.js +0 -25
  164. package/dist/images/split-image.js.map +0 -1
  165. package/dist/main/codegen-non-interactive.d.ts +0 -2
  166. package/dist/main/codegen-non-interactive.js +0 -20
  167. package/dist/main/codegen-non-interactive.js.map +0 -1
  168. package/dist/main/codegen-types.d.ts +0 -145
  169. package/dist/main/codegen-types.js +0 -2
  170. package/dist/main/codegen-types.js.map +0 -1
  171. package/dist/main/codegen-utils.d.ts +0 -8
  172. package/dist/main/codegen-utils.js +0 -43
  173. package/dist/main/codegen-utils.js.map +0 -1
  174. package/dist/main/codegen.d.ts +0 -5
  175. package/dist/main/codegen.js +0 -105
  176. package/dist/main/codegen.js.map +0 -1
  177. package/dist/main/codegen.test-utils.d.ts +0 -81
  178. package/dist/main/codegen.test-utils.js +0 -87
  179. package/dist/main/codegen.test-utils.js.map +0 -1
  180. package/dist/main/common/abort-controller.d.ts +0 -2
  181. package/dist/main/common/abort-controller.js +0 -5
  182. package/dist/main/common/abort-controller.js.map +0 -1
  183. package/dist/main/common/app-context-bus.d.ts +0 -11
  184. package/dist/main/common/app-context-bus.js +0 -29
  185. package/dist/main/common/app-context-bus.js.map +0 -1
  186. package/dist/main/common/console-types.d.ts +0 -23
  187. package/dist/main/common/console-types.js +0 -8
  188. package/dist/main/common/console-types.js.map +0 -1
  189. package/dist/main/common/content-bus-types.d.ts +0 -60
  190. package/dist/main/common/content-bus-types.js +0 -12
  191. package/dist/main/common/content-bus-types.js.map +0 -1
  192. package/dist/main/common/content-bus.d.ts +0 -16
  193. package/dist/main/common/content-bus.js +0 -102
  194. package/dist/main/common/content-bus.js.map +0 -1
  195. package/dist/main/common/cost-collector.d.ts +0 -12
  196. package/dist/main/common/cost-collector.js +0 -90
  197. package/dist/main/common/cost-collector.js.map +0 -1
  198. package/dist/main/common/user-actions.d.ts +0 -36
  199. package/dist/main/common/user-actions.js +0 -59
  200. package/dist/main/common/user-actions.js.map +0 -1
  201. package/dist/main/config-lib.d.ts +0 -13
  202. package/dist/main/config-lib.js +0 -90
  203. package/dist/main/config-lib.js.map +0 -1
  204. package/dist/main/config-schema.d.ts +0 -15
  205. package/dist/main/config-schema.js +0 -320
  206. package/dist/main/config-schema.js.map +0 -1
  207. package/dist/main/config-types.d.ts +0 -96
  208. package/dist/main/config-types.js +0 -4
  209. package/dist/main/config-types.js.map +0 -1
  210. package/dist/main/config.d.ts +0 -14
  211. package/dist/main/config.js +0 -110
  212. package/dist/main/config.js.map +0 -1
  213. package/dist/main/generate-content-functions.d.ts +0 -3
  214. package/dist/main/generate-content-functions.js +0 -19
  215. package/dist/main/generate-content-functions.js.map +0 -1
  216. package/dist/main/interactive/codegen-interactive.d.ts +0 -2
  217. package/dist/main/interactive/codegen-interactive.js +0 -57
  218. package/dist/main/interactive/codegen-interactive.js.map +0 -1
  219. package/dist/main/interactive/codegen-worker.d.ts +0 -2
  220. package/dist/main/interactive/codegen-worker.js +0 -55
  221. package/dist/main/interactive/codegen-worker.js.map +0 -1
  222. package/dist/main/interactive/common.d.ts +0 -5
  223. package/dist/main/interactive/common.js +0 -49
  224. package/dist/main/interactive/common.js.map +0 -1
  225. package/dist/main/interactive/configure.d.ts +0 -2
  226. package/dist/main/interactive/configure.js +0 -95
  227. package/dist/main/interactive/configure.js.map +0 -1
  228. package/dist/main/interactive/error-handling.d.ts +0 -1
  229. package/dist/main/interactive/error-handling.js +0 -43
  230. package/dist/main/interactive/error-handling.js.map +0 -1
  231. package/dist/main/interactive/help.d.ts +0 -1
  232. package/dist/main/interactive/help.js +0 -20
  233. package/dist/main/interactive/help.js.map +0 -1
  234. package/dist/main/interactive/select-ai-service.d.ts +0 -2
  235. package/dist/main/interactive/select-ai-service.js +0 -27
  236. package/dist/main/interactive/select-ai-service.js.map +0 -1
  237. package/dist/main/interactive/task-file.d.ts +0 -2
  238. package/dist/main/interactive/task-file.js +0 -35
  239. package/dist/main/interactive/task-file.js.map +0 -1
  240. package/dist/main/interactive/text-prompt.d.ts +0 -2
  241. package/dist/main/interactive/text-prompt.js +0 -18
  242. package/dist/main/interactive/text-prompt.js.map +0 -1
  243. package/dist/main/interactive/user-action-handlers.d.ts +0 -1
  244. package/dist/main/interactive/user-action-handlers.js +0 -20
  245. package/dist/main/interactive/user-action-handlers.js.map +0 -1
  246. package/dist/main/interactive/user-interrupt.d.ts +0 -1
  247. package/dist/main/interactive/user-interrupt.js +0 -36
  248. package/dist/main/interactive/user-interrupt.js.map +0 -1
  249. package/dist/main/knowledge/knowledge-store.d.ts +0 -6
  250. package/dist/main/knowledge/knowledge-store.js +0 -128
  251. package/dist/main/knowledge/knowledge-store.js.map +0 -1
  252. package/dist/main/knowledge/types.d.ts +0 -20
  253. package/dist/main/knowledge/types.js +0 -2
  254. package/dist/main/knowledge/types.js.map +0 -1
  255. package/dist/main/plugin-loader.d.ts +0 -36
  256. package/dist/main/plugin-loader.js +0 -245
  257. package/dist/main/plugin-loader.js.map +0 -1
  258. package/dist/main/ui/backend/api-handlers.d.ts +0 -6
  259. package/dist/main/ui/backend/api-handlers.js +0 -5
  260. package/dist/main/ui/backend/api-handlers.js.map +0 -1
  261. package/dist/main/ui/backend/api-utils.d.ts +0 -2
  262. package/dist/main/ui/backend/api-utils.js +0 -18
  263. package/dist/main/ui/backend/api-utils.js.map +0 -1
  264. package/dist/main/ui/backend/api.d.ts +0 -3
  265. package/dist/main/ui/backend/api.js +0 -25
  266. package/dist/main/ui/backend/api.js.map +0 -1
  267. package/dist/main/ui/backend/endpoints/compress-context-endpoint.d.ts +0 -1
  268. package/dist/main/ui/backend/endpoints/compress-context-endpoint.js +0 -18
  269. package/dist/main/ui/backend/endpoints/compress-context-endpoint.js.map +0 -1
  270. package/dist/main/ui/backend/endpoints/config-endpoint.d.ts +0 -1
  271. package/dist/main/ui/backend/endpoints/config-endpoint.js +0 -51
  272. package/dist/main/ui/backend/endpoints/config-endpoint.js.map +0 -1
  273. package/dist/main/ui/backend/endpoints/console-logs-endpoint.d.ts +0 -1
  274. package/dist/main/ui/backend/endpoints/console-logs-endpoint.js +0 -19
  275. package/dist/main/ui/backend/endpoints/console-logs-endpoint.js.map +0 -1
  276. package/dist/main/ui/backend/endpoints/content-endpoint.d.ts +0 -1
  277. package/dist/main/ui/backend/endpoints/content-endpoint.js +0 -14
  278. package/dist/main/ui/backend/endpoints/content-endpoint.js.map +0 -1
  279. package/dist/main/ui/backend/endpoints/context-endpoint.d.ts +0 -1
  280. package/dist/main/ui/backend/endpoints/context-endpoint.js +0 -169
  281. package/dist/main/ui/backend/endpoints/context-endpoint.js.map +0 -1
  282. package/dist/main/ui/backend/endpoints/edit-message-endpoint.d.ts +0 -1
  283. package/dist/main/ui/backend/endpoints/edit-message-endpoint.js +0 -37
  284. package/dist/main/ui/backend/endpoints/edit-message-endpoint.js.map +0 -1
  285. package/dist/main/ui/backend/endpoints/execute-codegen-endpoint.d.ts +0 -1
  286. package/dist/main/ui/backend/endpoints/execute-codegen-endpoint.js +0 -44
  287. package/dist/main/ui/backend/endpoints/execute-codegen-endpoint.js.map +0 -1
  288. package/dist/main/ui/backend/endpoints/execution-status-endpoint.d.ts +0 -1
  289. package/dist/main/ui/backend/endpoints/execution-status-endpoint.js +0 -37
  290. package/dist/main/ui/backend/endpoints/execution-status-endpoint.js.map +0 -1
  291. package/dist/main/ui/backend/endpoints/generate-content-endpoint.d.ts +0 -1
  292. package/dist/main/ui/backend/endpoints/generate-content-endpoint.js +0 -29
  293. package/dist/main/ui/backend/endpoints/generate-content-endpoint.js.map +0 -1
  294. package/dist/main/ui/backend/endpoints/index.d.ts +0 -13
  295. package/dist/main/ui/backend/endpoints/index.js +0 -14
  296. package/dist/main/ui/backend/endpoints/index.js.map +0 -1
  297. package/dist/main/ui/backend/endpoints/interrupt-execution-endpoint.d.ts +0 -1
  298. package/dist/main/ui/backend/endpoints/interrupt-execution-endpoint.js +0 -28
  299. package/dist/main/ui/backend/endpoints/interrupt-execution-endpoint.js.map +0 -1
  300. package/dist/main/ui/backend/endpoints/iteration-endpoint.d.ts +0 -1
  301. package/dist/main/ui/backend/endpoints/iteration-endpoint.js +0 -16
  302. package/dist/main/ui/backend/endpoints/iteration-endpoint.js.map +0 -1
  303. package/dist/main/ui/backend/endpoints/question-endpoint.d.ts +0 -1
  304. package/dist/main/ui/backend/endpoints/question-endpoint.js +0 -72
  305. package/dist/main/ui/backend/endpoints/question-endpoint.js.map +0 -1
  306. package/dist/main/ui/backend/endpoints/service-configuration-endpoint.d.ts +0 -1
  307. package/dist/main/ui/backend/endpoints/service-configuration-endpoint.js +0 -54
  308. package/dist/main/ui/backend/endpoints/service-configuration-endpoint.js.map +0 -1
  309. package/dist/main/ui/backend/endpoints/usage-endpoint.d.ts +0 -1
  310. package/dist/main/ui/backend/endpoints/usage-endpoint.js +0 -15
  311. package/dist/main/ui/backend/endpoints/usage-endpoint.js.map +0 -1
  312. package/dist/main/ui/backend/server.d.ts +0 -8
  313. package/dist/main/ui/backend/server.js +0 -84
  314. package/dist/main/ui/backend/server.js.map +0 -1
  315. package/dist/main/ui/backend/service.d.ts +0 -159
  316. package/dist/main/ui/backend/service.js +0 -626
  317. package/dist/main/ui/backend/service.js.map +0 -1
  318. package/dist/main/ui/codegen-ui.d.ts +0 -6
  319. package/dist/main/ui/codegen-ui.js +0 -22
  320. package/dist/main/ui/codegen-ui.js.map +0 -1
  321. package/dist/main/ui/common/api-types.d.ts +0 -170
  322. package/dist/main/ui/common/api-types.js +0 -13
  323. package/dist/main/ui/common/api-types.js.map +0 -1
  324. package/dist/main/ui/frontend/assets/favicon-DvroFOpS.png +0 -0
  325. package/dist/main/ui/frontend/assets/index-5QDg_0vR.css +0 -1
  326. package/dist/main/ui/frontend/assets/index-C_k1AhO2.js +0 -3445
  327. package/dist/main/ui/frontend/assets/logo-BGHkG1-J.png +0 -0
  328. package/dist/main/ui/frontend/assets/logo-dark-KAsU1C78.png +0 -0
  329. package/dist/main/ui/frontend/assets/press-start-2p-cyrillic-400-normal-oElOGqNf.woff2 +0 -0
  330. package/dist/main/ui/frontend/assets/press-start-2p-cyrillic-ext-400-normal-COIQET2s.woff2 +0 -0
  331. package/dist/main/ui/frontend/assets/press-start-2p-greek-400-normal-DUIT0YPZ.woff2 +0 -0
  332. package/dist/main/ui/frontend/assets/press-start-2p-latin-400-normal-BKfmdmKK.woff +0 -0
  333. package/dist/main/ui/frontend/assets/press-start-2p-latin-400-normal-xj9lRvVs.woff2 +0 -0
  334. package/dist/main/ui/frontend/assets/press-start-2p-latin-ext-400-normal-B18ub5-k.woff +0 -0
  335. package/dist/main/ui/frontend/assets/press-start-2p-latin-ext-400-normal-DDIa4im3.woff2 +0 -0
  336. package/dist/main/ui/frontend/assets/wolf-bark-Bl17CX4O.mp3 +0 -0
  337. package/dist/main/ui/frontend/index.html +0 -16
  338. package/dist/main/ui/user-action-handlers.d.ts +0 -2
  339. package/dist/main/ui/user-action-handlers.js +0 -34
  340. package/dist/main/ui/user-action-handlers.js.map +0 -1
  341. package/dist/operations/create-directory/create-directory-def.d.ts +0 -9
  342. package/dist/operations/create-directory/create-directory-def.js +0 -22
  343. package/dist/operations/create-directory/create-directory-def.js.map +0 -1
  344. package/dist/operations/create-directory/create-directory-executor.d.ts +0 -6
  345. package/dist/operations/create-directory/create-directory-executor.js +0 -22
  346. package/dist/operations/create-directory/create-directory-executor.js.map +0 -1
  347. package/dist/operations/create-file/create-file-def.d.ts +0 -10
  348. package/dist/operations/create-file/create-file-def.js +0 -29
  349. package/dist/operations/create-file/create-file-def.js.map +0 -1
  350. package/dist/operations/create-file/create-file-executor.d.ts +0 -6
  351. package/dist/operations/create-file/create-file-executor.js +0 -27
  352. package/dist/operations/create-file/create-file-executor.js.map +0 -1
  353. package/dist/operations/delete-file/delete-file-def.d.ts +0 -9
  354. package/dist/operations/delete-file/delete-file-def.js +0 -22
  355. package/dist/operations/delete-file/delete-file-def.js.map +0 -1
  356. package/dist/operations/delete-file/delete-file-executor.d.ts +0 -6
  357. package/dist/operations/delete-file/delete-file-executor.js +0 -23
  358. package/dist/operations/delete-file/delete-file-executor.js.map +0 -1
  359. package/dist/operations/download-file/download-file-def.d.ts +0 -10
  360. package/dist/operations/download-file/download-file-def.js +0 -26
  361. package/dist/operations/download-file/download-file-def.js.map +0 -1
  362. package/dist/operations/download-file/download-file-executor.d.ts +0 -6
  363. package/dist/operations/download-file/download-file-executor.js +0 -44
  364. package/dist/operations/download-file/download-file-executor.js.map +0 -1
  365. package/dist/operations/imgly-remove-background/imgly-remove-background-def.d.ts +0 -10
  366. package/dist/operations/imgly-remove-background/imgly-remove-background-def.js +0 -26
  367. package/dist/operations/imgly-remove-background/imgly-remove-background-def.js.map +0 -1
  368. package/dist/operations/imgly-remove-background/imgly-remove-background-executor.d.ts +0 -6
  369. package/dist/operations/imgly-remove-background/imgly-remove-background-executor.js +0 -40
  370. package/dist/operations/imgly-remove-background/imgly-remove-background-executor.js.map +0 -1
  371. package/dist/operations/move-file/move-file-def.d.ts +0 -10
  372. package/dist/operations/move-file/move-file-def.js +0 -26
  373. package/dist/operations/move-file/move-file-def.js.map +0 -1
  374. package/dist/operations/move-file/move-file-executor.d.ts +0 -6
  375. package/dist/operations/move-file/move-file-executor.js +0 -29
  376. package/dist/operations/move-file/move-file-executor.js.map +0 -1
  377. package/dist/operations/operations-index.d.ts +0 -3
  378. package/dist/operations/operations-index.js +0 -33
  379. package/dist/operations/operations-index.js.map +0 -1
  380. package/dist/operations/patch-file/patch-file-def.d.ts +0 -10
  381. package/dist/operations/patch-file/patch-file-def.js +0 -40
  382. package/dist/operations/patch-file/patch-file-def.js.map +0 -1
  383. package/dist/operations/patch-file/patch-file-executor.d.ts +0 -5
  384. package/dist/operations/patch-file/patch-file-executor.js +0 -26
  385. package/dist/operations/patch-file/patch-file-executor.js.map +0 -1
  386. package/dist/operations/resize-image/resize-image-def.d.ts +0 -13
  387. package/dist/operations/resize-image/resize-image-def.js +0 -37
  388. package/dist/operations/resize-image/resize-image-def.js.map +0 -1
  389. package/dist/operations/resize-image/resize-image-executor.d.ts +0 -5
  390. package/dist/operations/resize-image/resize-image-executor.js +0 -30
  391. package/dist/operations/resize-image/resize-image-executor.js.map +0 -1
  392. package/dist/operations/split-image/split-image-def.d.ts +0 -18
  393. package/dist/operations/split-image/split-image-def.js +0 -46
  394. package/dist/operations/split-image/split-image-def.js.map +0 -1
  395. package/dist/operations/split-image/split-image-executor.d.ts +0 -6
  396. package/dist/operations/split-image/split-image-executor.js +0 -51
  397. package/dist/operations/split-image/split-image-executor.js.map +0 -1
  398. package/dist/operations/update-file/update-file-def.d.ts +0 -10
  399. package/dist/operations/update-file/update-file-def.js +0 -27
  400. package/dist/operations/update-file/update-file-def.js.map +0 -1
  401. package/dist/operations/update-file/update-file-executor.d.ts +0 -5
  402. package/dist/operations/update-file/update-file-executor.js +0 -22
  403. package/dist/operations/update-file/update-file-executor.js.map +0 -1
  404. package/dist/project-profiles/detection.d.ts +0 -40
  405. package/dist/project-profiles/detection.js +0 -131
  406. package/dist/project-profiles/detection.js.map +0 -1
  407. package/dist/project-profiles/index.d.ts +0 -35
  408. package/dist/project-profiles/index.js +0 -72
  409. package/dist/project-profiles/index.js.map +0 -1
  410. package/dist/project-profiles/profiles/golang.d.ts +0 -65
  411. package/dist/project-profiles/profiles/golang.js +0 -208
  412. package/dist/project-profiles/profiles/golang.js.map +0 -1
  413. package/dist/project-profiles/profiles/java-maven.d.ts +0 -80
  414. package/dist/project-profiles/profiles/java-maven.js +0 -165
  415. package/dist/project-profiles/profiles/java-maven.js.map +0 -1
  416. package/dist/project-profiles/profiles/javascript-npm.d.ts +0 -40
  417. package/dist/project-profiles/profiles/javascript-npm.js +0 -118
  418. package/dist/project-profiles/profiles/javascript-npm.js.map +0 -1
  419. package/dist/project-profiles/profiles/javascript-react.d.ts +0 -46
  420. package/dist/project-profiles/profiles/javascript-react.js +0 -147
  421. package/dist/project-profiles/profiles/javascript-react.js.map +0 -1
  422. package/dist/project-profiles/profiles/python-django.d.ts +0 -58
  423. package/dist/project-profiles/profiles/python-django.js +0 -200
  424. package/dist/project-profiles/profiles/python-django.js.map +0 -1
  425. package/dist/project-profiles/types.d.ts +0 -122
  426. package/dist/project-profiles/types.js +0 -77
  427. package/dist/project-profiles/types.js.map +0 -1
  428. package/dist/prompt/ai-service-fallback.d.ts +0 -4
  429. package/dist/prompt/ai-service-fallback.js +0 -47
  430. package/dist/prompt/ai-service-fallback.js.map +0 -1
  431. package/dist/prompt/context-utils.d.ts +0 -7
  432. package/dist/prompt/context-utils.js +0 -33
  433. package/dist/prompt/context-utils.js.map +0 -1
  434. package/dist/prompt/dynamic-function-generator.d.ts +0 -2
  435. package/dist/prompt/dynamic-function-generator.js +0 -58
  436. package/dist/prompt/dynamic-function-generator.js.map +0 -1
  437. package/dist/prompt/function-calling-validate.d.ts +0 -4
  438. package/dist/prompt/function-calling-validate.js +0 -109
  439. package/dist/prompt/function-calling-validate.js.map +0 -1
  440. package/dist/prompt/function-calling.d.ts +0 -5
  441. package/dist/prompt/function-calling.js +0 -88
  442. package/dist/prompt/function-calling.js.map +0 -1
  443. package/dist/prompt/function-defs/analysis-result.d.ts +0 -7
  444. package/dist/prompt/function-defs/analysis-result.js +0 -24
  445. package/dist/prompt/function-defs/analysis-result.js.map +0 -1
  446. package/dist/prompt/function-defs/ask-question.d.ts +0 -20
  447. package/dist/prompt/function-defs/ask-question.js +0 -373
  448. package/dist/prompt/function-defs/ask-question.js.map +0 -1
  449. package/dist/prompt/function-defs/code-execution.d.ts +0 -7
  450. package/dist/prompt/function-defs/code-execution.js +0 -27
  451. package/dist/prompt/function-defs/code-execution.js.map +0 -1
  452. package/dist/prompt/function-defs/codegen-planning.d.ts +0 -8
  453. package/dist/prompt/function-defs/codegen-planning.js +0 -60
  454. package/dist/prompt/function-defs/codegen-planning.js.map +0 -1
  455. package/dist/prompt/function-defs/codegen-summary.d.ts +0 -5
  456. package/dist/prompt/function-defs/codegen-summary.js +0 -103
  457. package/dist/prompt/function-defs/codegen-summary.js.map +0 -1
  458. package/dist/prompt/function-defs/compound-action-list.d.ts +0 -7
  459. package/dist/prompt/function-defs/compound-action-list.js +0 -38
  460. package/dist/prompt/function-defs/compound-action-list.js.map +0 -1
  461. package/dist/prompt/function-defs/compound-action.d.ts +0 -2
  462. package/dist/prompt/function-defs/compound-action.js +0 -47
  463. package/dist/prompt/function-defs/compound-action.js.map +0 -1
  464. package/dist/prompt/function-defs/container-task-commands.d.ts +0 -10
  465. package/dist/prompt/function-defs/container-task-commands.js +0 -185
  466. package/dist/prompt/function-defs/container-task-commands.js.map +0 -1
  467. package/dist/prompt/function-defs/context-compression.d.ts +0 -47
  468. package/dist/prompt/function-defs/context-compression.js +0 -49
  469. package/dist/prompt/function-defs/context-compression.js.map +0 -1
  470. package/dist/prompt/function-defs/conversation-graph.d.ts +0 -33
  471. package/dist/prompt/function-defs/conversation-graph.js +0 -110
  472. package/dist/prompt/function-defs/conversation-graph.js.map +0 -1
  473. package/dist/prompt/function-defs/conversation-summary.d.ts +0 -2
  474. package/dist/prompt/function-defs/conversation-summary.js +0 -15
  475. package/dist/prompt/function-defs/conversation-summary.js.map +0 -1
  476. package/dist/prompt/function-defs/explanation.d.ts +0 -5
  477. package/dist/prompt/function-defs/explanation.js +0 -18
  478. package/dist/prompt/function-defs/explanation.js.map +0 -1
  479. package/dist/prompt/function-defs/explore-external-directories.d.ts +0 -16
  480. package/dist/prompt/function-defs/explore-external-directories.js +0 -48
  481. package/dist/prompt/function-defs/explore-external-directories.js.map +0 -1
  482. package/dist/prompt/function-defs/extract-file-fragments.d.ts +0 -27
  483. package/dist/prompt/function-defs/extract-file-fragments.js +0 -36
  484. package/dist/prompt/function-defs/extract-file-fragments.js.map +0 -1
  485. package/dist/prompt/function-defs/genaicode-help.d.ts +0 -6
  486. package/dist/prompt/function-defs/genaicode-help.js +0 -23
  487. package/dist/prompt/function-defs/genaicode-help.js.map +0 -1
  488. package/dist/prompt/function-defs/generate-image.d.ts +0 -5
  489. package/dist/prompt/function-defs/generate-image.js +0 -42
  490. package/dist/prompt/function-defs/generate-image.js.map +0 -1
  491. package/dist/prompt/function-defs/get-image-assets.d.ts +0 -5
  492. package/dist/prompt/function-defs/get-image-assets.js +0 -21
  493. package/dist/prompt/function-defs/get-image-assets.js.map +0 -1
  494. package/dist/prompt/function-defs/get-source-code.d.ts +0 -5
  495. package/dist/prompt/function-defs/get-source-code.js +0 -49
  496. package/dist/prompt/function-defs/get-source-code.js.map +0 -1
  497. package/dist/prompt/function-defs/iterate.d.ts +0 -20
  498. package/dist/prompt/function-defs/iterate.js +0 -373
  499. package/dist/prompt/function-defs/iterate.js.map +0 -1
  500. package/dist/prompt/function-defs/optimize-context.d.ts +0 -5
  501. package/dist/prompt/function-defs/optimize-context.js +0 -74
  502. package/dist/prompt/function-defs/optimize-context.js.map +0 -1
  503. package/dist/prompt/function-defs/perform-analysis.d.ts +0 -8
  504. package/dist/prompt/function-defs/perform-analysis.js +0 -28
  505. package/dist/prompt/function-defs/perform-analysis.js.map +0 -1
  506. package/dist/prompt/function-defs/pull-console-logs.d.ts +0 -2
  507. package/dist/prompt/function-defs/pull-console-logs.js +0 -29
  508. package/dist/prompt/function-defs/pull-console-logs.js.map +0 -1
  509. package/dist/prompt/function-defs/read-external-files.d.ts +0 -9
  510. package/dist/prompt/function-defs/read-external-files.js +0 -30
  511. package/dist/prompt/function-defs/read-external-files.js.map +0 -1
  512. package/dist/prompt/function-defs/read-history.d.ts +0 -2
  513. package/dist/prompt/function-defs/read-history.js +0 -14
  514. package/dist/prompt/function-defs/read-history.js.map +0 -1
  515. package/dist/prompt/function-defs/reasoning-inference.d.ts +0 -3
  516. package/dist/prompt/function-defs/reasoning-inference.js +0 -39
  517. package/dist/prompt/function-defs/reasoning-inference.js.map +0 -1
  518. package/dist/prompt/function-defs/run-bash-command.d.ts +0 -2
  519. package/dist/prompt/function-defs/run-bash-command.js +0 -29
  520. package/dist/prompt/function-defs/run-bash-command.js.map +0 -1
  521. package/dist/prompt/function-defs/run-container-task.d.ts +0 -11
  522. package/dist/prompt/function-defs/run-container-task.js +0 -41
  523. package/dist/prompt/function-defs/run-container-task.js.map +0 -1
  524. package/dist/prompt/function-defs/run-project-command.d.ts +0 -2
  525. package/dist/prompt/function-defs/run-project-command.js +0 -40
  526. package/dist/prompt/function-defs/run-project-command.js.map +0 -1
  527. package/dist/prompt/function-defs/set-summaries.d.ts +0 -5
  528. package/dist/prompt/function-defs/set-summaries.js +0 -59
  529. package/dist/prompt/function-defs/set-summaries.js.map +0 -1
  530. package/dist/prompt/function-defs/structured-question.d.ts +0 -2
  531. package/dist/prompt/function-defs/structured-question.js +0 -64
  532. package/dist/prompt/function-defs/structured-question.js.map +0 -1
  533. package/dist/prompt/function-defs/update-history.d.ts +0 -5
  534. package/dist/prompt/function-defs/update-history.js +0 -22
  535. package/dist/prompt/function-defs/update-history.js.map +0 -1
  536. package/dist/prompt/function-defs/web-search.d.ts +0 -9
  537. package/dist/prompt/function-defs/web-search.js +0 -16
  538. package/dist/prompt/function-defs/web-search.js.map +0 -1
  539. package/dist/prompt/limits.d.ts +0 -3
  540. package/dist/prompt/limits.js +0 -21
  541. package/dist/prompt/limits.js.map +0 -1
  542. package/dist/prompt/prompt-codegen.d.ts +0 -9
  543. package/dist/prompt/prompt-codegen.js +0 -45
  544. package/dist/prompt/prompt-codegen.js.map +0 -1
  545. package/dist/prompt/prompt-service.d.ts +0 -8
  546. package/dist/prompt/prompt-service.js +0 -147
  547. package/dist/prompt/prompt-service.js.map +0 -1
  548. package/dist/prompt/prompt-service.test-utils.d.ts +0 -66
  549. package/dist/prompt/prompt-service.test-utils.js +0 -171
  550. package/dist/prompt/prompt-service.test-utils.js.map +0 -1
  551. package/dist/prompt/source-code-optimize.d.ts +0 -2
  552. package/dist/prompt/source-code-optimize.js +0 -27
  553. package/dist/prompt/source-code-optimize.js.map +0 -1
  554. package/dist/prompt/static-prompts.d.ts +0 -17
  555. package/dist/prompt/static-prompts.js +0 -23
  556. package/dist/prompt/static-prompts.js.map +0 -1
  557. package/dist/prompt/steps/step-ask-question/ask-question-handler.d.ts +0 -3
  558. package/dist/prompt/steps/step-ask-question/ask-question-handler.js +0 -13
  559. package/dist/prompt/steps/step-ask-question/ask-question-handler.js.map +0 -1
  560. package/dist/prompt/steps/step-ask-question/handlers/container-task/command-execution-loop.d.ts +0 -7
  561. package/dist/prompt/steps/step-ask-question/handlers/container-task/command-execution-loop.js +0 -301
  562. package/dist/prompt/steps/step-ask-question/handlers/container-task/command-execution-loop.js.map +0 -1
  563. package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/check-context.d.ts +0 -12
  564. package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/check-context.js +0 -41
  565. package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/check-context.js.map +0 -1
  566. package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/complete-task.d.ts +0 -4
  567. package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/complete-task.js +0 -49
  568. package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/complete-task.js.map +0 -1
  569. package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/copy-from-container.d.ts +0 -4
  570. package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/copy-from-container.js +0 -190
  571. package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/copy-from-container.js.map +0 -1
  572. package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/copy-to-container.d.ts +0 -4
  573. package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/copy-to-container.js +0 -139
  574. package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/copy-to-container.js.map +0 -1
  575. package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/edit-file.d.ts +0 -10
  576. package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/edit-file.js +0 -93
  577. package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/edit-file.js.map +0 -1
  578. package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/fail-task.d.ts +0 -4
  579. package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/fail-task.js +0 -72
  580. package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/fail-task.js.map +0 -1
  581. package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/gain-knowledge.d.ts +0 -10
  582. package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/gain-knowledge.js +0 -125
  583. package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/gain-knowledge.js.map +0 -1
  584. package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/interrupt-controller.d.ts +0 -19
  585. package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/interrupt-controller.js +0 -33
  586. package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/interrupt-controller.js.map +0 -1
  587. package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/query-knowledge.d.ts +0 -8
  588. package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/query-knowledge.js +0 -85
  589. package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/query-knowledge.js.map +0 -1
  590. package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/request-secret.d.ts +0 -6
  591. package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/request-secret.js +0 -122
  592. package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/request-secret.js.map +0 -1
  593. package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/run-command.d.ts +0 -7
  594. package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/run-command.js +0 -146
  595. package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/run-command.js.map +0 -1
  596. package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/send-message.d.ts +0 -4
  597. package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/send-message.js +0 -56
  598. package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/send-message.js.map +0 -1
  599. package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/set-execution-plan.d.ts +0 -4
  600. package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/set-execution-plan.js +0 -56
  601. package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/set-execution-plan.js.map +0 -1
  602. package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/update-execution-plan.d.ts +0 -4
  603. package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/update-execution-plan.js +0 -39
  604. package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/update-execution-plan.js.map +0 -1
  605. package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/view-file.d.ts +0 -10
  606. package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/view-file.js +0 -95
  607. package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/view-file.js.map +0 -1
  608. package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/web-search.d.ts +0 -2
  609. package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/web-search.js +0 -96
  610. package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/web-search.js.map +0 -1
  611. package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/wrap-context.d.ts +0 -4
  612. package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/wrap-context.js +0 -123
  613. package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/wrap-context.js.map +0 -1
  614. package/dist/prompt/steps/step-ask-question/handlers/container-task/container-command-handlers.d.ts +0 -34
  615. package/dist/prompt/steps/step-ask-question/handlers/container-task/container-command-handlers.js +0 -332
  616. package/dist/prompt/steps/step-ask-question/handlers/container-task/container-command-handlers.js.map +0 -1
  617. package/dist/prompt/steps/step-ask-question/handlers/container-task/container-commands-registry.d.ts +0 -11
  618. package/dist/prompt/steps/step-ask-question/handlers/container-task/container-commands-registry.js +0 -50
  619. package/dist/prompt/steps/step-ask-question/handlers/container-task/container-commands-registry.js.map +0 -1
  620. package/dist/prompt/steps/step-ask-question/handlers/container-task/container-commands-types.d.ts +0 -28
  621. package/dist/prompt/steps/step-ask-question/handlers/container-task/container-commands-types.js +0 -2
  622. package/dist/prompt/steps/step-ask-question/handlers/container-task/container-commands-types.js.map +0 -1
  623. package/dist/prompt/steps/step-ask-question/handlers/container-task/container-task-orchestrator.d.ts +0 -2
  624. package/dist/prompt/steps/step-ask-question/handlers/container-task/container-task-orchestrator.js +0 -202
  625. package/dist/prompt/steps/step-ask-question/handlers/container-task/container-task-orchestrator.js.map +0 -1
  626. package/dist/prompt/steps/step-ask-question/handlers/container-task/container-task-types.d.ts +0 -52
  627. package/dist/prompt/steps/step-ask-question/handlers/container-task/container-task-types.js +0 -2
  628. package/dist/prompt/steps/step-ask-question/handlers/container-task/container-task-types.js.map +0 -1
  629. package/dist/prompt/steps/step-ask-question/handlers/container-task/utils/docker-check.d.ts +0 -4
  630. package/dist/prompt/steps/step-ask-question/handlers/container-task/utils/docker-check.js +0 -15
  631. package/dist/prompt/steps/step-ask-question/handlers/container-task/utils/docker-check.js.map +0 -1
  632. package/dist/prompt/steps/step-ask-question/handlers/container-task/utils/docker-utils.d.ts +0 -50
  633. package/dist/prompt/steps/step-ask-question/handlers/container-task/utils/docker-utils.js +0 -358
  634. package/dist/prompt/steps/step-ask-question/handlers/container-task/utils/docker-utils.js.map +0 -1
  635. package/dist/prompt/steps/step-ask-question/handlers/file-request-utils.d.ts +0 -47
  636. package/dist/prompt/steps/step-ask-question/handlers/file-request-utils.js +0 -114
  637. package/dist/prompt/steps/step-ask-question/handlers/file-request-utils.js.map +0 -1
  638. package/dist/prompt/steps/step-ask-question/handlers/handle-code-generation.d.ts +0 -4
  639. package/dist/prompt/steps/step-ask-question/handlers/handle-code-generation.js +0 -177
  640. package/dist/prompt/steps/step-ask-question/handlers/handle-code-generation.js.map +0 -1
  641. package/dist/prompt/steps/step-ask-question/handlers/handle-compound-action.d.ts +0 -20
  642. package/dist/prompt/steps/step-ask-question/handlers/handle-compound-action.js +0 -305
  643. package/dist/prompt/steps/step-ask-question/handlers/handle-compound-action.js.map +0 -1
  644. package/dist/prompt/steps/step-ask-question/handlers/handle-confirm-code-generation.d.ts +0 -2
  645. package/dist/prompt/steps/step-ask-question/handlers/handle-confirm-code-generation.js +0 -40
  646. package/dist/prompt/steps/step-ask-question/handlers/handle-confirm-code-generation.js.map +0 -1
  647. package/dist/prompt/steps/step-ask-question/handlers/handle-context-compression.d.ts +0 -2
  648. package/dist/prompt/steps/step-ask-question/handlers/handle-context-compression.js +0 -35
  649. package/dist/prompt/steps/step-ask-question/handlers/handle-context-compression.js.map +0 -1
  650. package/dist/prompt/steps/step-ask-question/handlers/handle-context-optimization.d.ts +0 -2
  651. package/dist/prompt/steps/step-ask-question/handlers/handle-context-optimization.js +0 -34
  652. package/dist/prompt/steps/step-ask-question/handlers/handle-context-optimization.js.map +0 -1
  653. package/dist/prompt/steps/step-ask-question/handlers/handle-conversation-graph.d.ts +0 -11
  654. package/dist/prompt/steps/step-ask-question/handlers/handle-conversation-graph.js +0 -503
  655. package/dist/prompt/steps/step-ask-question/handlers/handle-conversation-graph.js.map +0 -1
  656. package/dist/prompt/steps/step-ask-question/handlers/handle-create-file.d.ts +0 -2
  657. package/dist/prompt/steps/step-ask-question/handlers/handle-create-file.js +0 -159
  658. package/dist/prompt/steps/step-ask-question/handlers/handle-create-file.js.map +0 -1
  659. package/dist/prompt/steps/step-ask-question/handlers/handle-end-conversation.d.ts +0 -2
  660. package/dist/prompt/steps/step-ask-question/handlers/handle-end-conversation.js +0 -30
  661. package/dist/prompt/steps/step-ask-question/handlers/handle-end-conversation.js.map +0 -1
  662. package/dist/prompt/steps/step-ask-question/handlers/handle-explore-external-directories.d.ts +0 -2
  663. package/dist/prompt/steps/step-ask-question/handlers/handle-explore-external-directories.js +0 -280
  664. package/dist/prompt/steps/step-ask-question/handlers/handle-explore-external-directories.js.map +0 -1
  665. package/dist/prompt/steps/step-ask-question/handlers/handle-genaicode-help.d.ts +0 -8
  666. package/dist/prompt/steps/step-ask-question/handlers/handle-genaicode-help.js +0 -105
  667. package/dist/prompt/steps/step-ask-question/handlers/handle-genaicode-help.js.map +0 -1
  668. package/dist/prompt/steps/step-ask-question/handlers/handle-generate-image.d.ts +0 -2
  669. package/dist/prompt/steps/step-ask-question/handlers/handle-generate-image.js +0 -110
  670. package/dist/prompt/steps/step-ask-question/handlers/handle-generate-image.js.map +0 -1
  671. package/dist/prompt/steps/step-ask-question/handlers/handle-lint.d.ts +0 -6
  672. package/dist/prompt/steps/step-ask-question/handlers/handle-lint.js +0 -60
  673. package/dist/prompt/steps/step-ask-question/handlers/handle-lint.js.map +0 -1
  674. package/dist/prompt/steps/step-ask-question/handlers/handle-perform-analysis.d.ts +0 -6
  675. package/dist/prompt/steps/step-ask-question/handlers/handle-perform-analysis.js +0 -110
  676. package/dist/prompt/steps/step-ask-question/handlers/handle-perform-analysis.js.map +0 -1
  677. package/dist/prompt/steps/step-ask-question/handlers/handle-project-command.d.ts +0 -2
  678. package/dist/prompt/steps/step-ask-question/handlers/handle-project-command.js +0 -282
  679. package/dist/prompt/steps/step-ask-question/handlers/handle-project-command.js.map +0 -1
  680. package/dist/prompt/steps/step-ask-question/handlers/handle-pull-app-context.d.ts +0 -9
  681. package/dist/prompt/steps/step-ask-question/handlers/handle-pull-app-context.js +0 -94
  682. package/dist/prompt/steps/step-ask-question/handlers/handle-pull-app-context.js.map +0 -1
  683. package/dist/prompt/steps/step-ask-question/handlers/handle-pull-console-logs.d.ts +0 -2
  684. package/dist/prompt/steps/step-ask-question/handlers/handle-pull-console-logs.js +0 -174
  685. package/dist/prompt/steps/step-ask-question/handlers/handle-pull-console-logs.js.map +0 -1
  686. package/dist/prompt/steps/step-ask-question/handlers/handle-push-app-context.d.ts +0 -9
  687. package/dist/prompt/steps/step-ask-question/handlers/handle-push-app-context.js +0 -104
  688. package/dist/prompt/steps/step-ask-question/handlers/handle-push-app-context.js.map +0 -1
  689. package/dist/prompt/steps/step-ask-question/handlers/handle-read-external-files.d.ts +0 -2
  690. package/dist/prompt/steps/step-ask-question/handlers/handle-read-external-files.js +0 -149
  691. package/dist/prompt/steps/step-ask-question/handlers/handle-read-external-files.js.map +0 -1
  692. package/dist/prompt/steps/step-ask-question/handlers/handle-reasoning-inference.d.ts +0 -7
  693. package/dist/prompt/steps/step-ask-question/handlers/handle-reasoning-inference.js +0 -119
  694. package/dist/prompt/steps/step-ask-question/handlers/handle-reasoning-inference.js.map +0 -1
  695. package/dist/prompt/steps/step-ask-question/handlers/handle-remove-files-from-context.d.ts +0 -2
  696. package/dist/prompt/steps/step-ask-question/handlers/handle-remove-files-from-context.js +0 -100
  697. package/dist/prompt/steps/step-ask-question/handlers/handle-remove-files-from-context.js.map +0 -1
  698. package/dist/prompt/steps/step-ask-question/handlers/handle-request-files-content.d.ts +0 -8
  699. package/dist/prompt/steps/step-ask-question/handlers/handle-request-files-content.js +0 -145
  700. package/dist/prompt/steps/step-ask-question/handlers/handle-request-files-content.js.map +0 -1
  701. package/dist/prompt/steps/step-ask-question/handlers/handle-request-files-fragments.d.ts +0 -8
  702. package/dist/prompt/steps/step-ask-question/handlers/handle-request-files-fragments.js +0 -197
  703. package/dist/prompt/steps/step-ask-question/handlers/handle-request-files-fragments.js.map +0 -1
  704. package/dist/prompt/steps/step-ask-question/handlers/handle-request-git-context.d.ts +0 -3
  705. package/dist/prompt/steps/step-ask-question/handlers/handle-request-git-context.js +0 -251
  706. package/dist/prompt/steps/step-ask-question/handlers/handle-request-git-context.js.map +0 -1
  707. package/dist/prompt/steps/step-ask-question/handlers/handle-request-permissions.d.ts +0 -2
  708. package/dist/prompt/steps/step-ask-question/handlers/handle-request-permissions.js +0 -83
  709. package/dist/prompt/steps/step-ask-question/handlers/handle-request-permissions.js.map +0 -1
  710. package/dist/prompt/steps/step-ask-question/handlers/handle-run-bash-command.d.ts +0 -2
  711. package/dist/prompt/steps/step-ask-question/handlers/handle-run-bash-command.js +0 -185
  712. package/dist/prompt/steps/step-ask-question/handlers/handle-run-bash-command.js.map +0 -1
  713. package/dist/prompt/steps/step-ask-question/handlers/handle-run-container-task.d.ts +0 -2
  714. package/dist/prompt/steps/step-ask-question/handlers/handle-run-container-task.js +0 -7
  715. package/dist/prompt/steps/step-ask-question/handlers/handle-run-container-task.js.map +0 -1
  716. package/dist/prompt/steps/step-ask-question/handlers/handle-search-code.d.ts +0 -2
  717. package/dist/prompt/steps/step-ask-question/handlers/handle-search-code.js +0 -96
  718. package/dist/prompt/steps/step-ask-question/handlers/handle-search-code.js.map +0 -1
  719. package/dist/prompt/steps/step-ask-question/handlers/handle-send-message.d.ts +0 -2
  720. package/dist/prompt/steps/step-ask-question/handlers/handle-send-message.js +0 -21
  721. package/dist/prompt/steps/step-ask-question/handlers/handle-send-message.js.map +0 -1
  722. package/dist/prompt/steps/step-ask-question/handlers/handle-structured-question.d.ts +0 -1
  723. package/dist/prompt/steps/step-ask-question/handlers/handle-structured-question.js +0 -72
  724. package/dist/prompt/steps/step-ask-question/handlers/handle-structured-question.js.map +0 -1
  725. package/dist/prompt/steps/step-ask-question/handlers/handle-update-file.d.ts +0 -2
  726. package/dist/prompt/steps/step-ask-question/handlers/handle-update-file.js +0 -161
  727. package/dist/prompt/steps/step-ask-question/handlers/handle-update-file.js.map +0 -1
  728. package/dist/prompt/steps/step-ask-question/handlers/handle-web-search.d.ts +0 -1
  729. package/dist/prompt/steps/step-ask-question/handlers/handle-web-search.js +0 -85
  730. package/dist/prompt/steps/step-ask-question/handlers/handle-web-search.js.map +0 -1
  731. package/dist/prompt/steps/step-ask-question/step-ask-question-handlers.d.ts +0 -3
  732. package/dist/prompt/steps/step-ask-question/step-ask-question-handlers.js +0 -5
  733. package/dist/prompt/steps/step-ask-question/step-ask-question-handlers.js.map +0 -1
  734. package/dist/prompt/steps/step-ask-question/step-ask-question-types.d.ts +0 -257
  735. package/dist/prompt/steps/step-ask-question/step-ask-question-types.js +0 -2
  736. package/dist/prompt/steps/step-ask-question/step-ask-question-types.js.map +0 -1
  737. package/dist/prompt/steps/step-ask-question/step-ask-question.d.ts +0 -37
  738. package/dist/prompt/steps/step-ask-question/step-ask-question.js +0 -132
  739. package/dist/prompt/steps/step-ask-question/step-ask-question.js.map +0 -1
  740. package/dist/prompt/steps/step-auto-context-refresh.d.ts +0 -6
  741. package/dist/prompt/steps/step-auto-context-refresh.js +0 -98
  742. package/dist/prompt/steps/step-auto-context-refresh.js.map +0 -1
  743. package/dist/prompt/steps/step-codegen-planning.d.ts +0 -11
  744. package/dist/prompt/steps/step-codegen-planning.js +0 -147
  745. package/dist/prompt/steps/step-codegen-planning.js.map +0 -1
  746. package/dist/prompt/steps/step-context-compression.d.ts +0 -8
  747. package/dist/prompt/steps/step-context-compression.js +0 -231
  748. package/dist/prompt/steps/step-context-compression.js.map +0 -1
  749. package/dist/prompt/steps/step-context-optimization.d.ts +0 -8
  750. package/dist/prompt/steps/step-context-optimization.js +0 -308
  751. package/dist/prompt/steps/step-context-optimization.js.map +0 -1
  752. package/dist/prompt/steps/step-ensure-context.d.ts +0 -8
  753. package/dist/prompt/steps/step-ensure-context.js +0 -114
  754. package/dist/prompt/steps/step-ensure-context.js.map +0 -1
  755. package/dist/prompt/steps/step-generate-codegen-summary-prompt.d.ts +0 -2
  756. package/dist/prompt/steps/step-generate-codegen-summary-prompt.js +0 -133
  757. package/dist/prompt/steps/step-generate-codegen-summary-prompt.js.map +0 -1
  758. package/dist/prompt/steps/step-generate-codegen-summary.d.ts +0 -14
  759. package/dist/prompt/steps/step-generate-codegen-summary.js +0 -68
  760. package/dist/prompt/steps/step-generate-codegen-summary.js.map +0 -1
  761. package/dist/prompt/steps/step-generate-image.d.ts +0 -10
  762. package/dist/prompt/steps/step-generate-image.js +0 -32
  763. package/dist/prompt/steps/step-generate-image.js.map +0 -1
  764. package/dist/prompt/steps/step-generate-summary.d.ts +0 -10
  765. package/dist/prompt/steps/step-generate-summary.js +0 -63
  766. package/dist/prompt/steps/step-generate-summary.js.map +0 -1
  767. package/dist/prompt/steps/step-history-update.d.ts +0 -6
  768. package/dist/prompt/steps/step-history-update.js +0 -69
  769. package/dist/prompt/steps/step-history-update.js.map +0 -1
  770. package/dist/prompt/steps/step-iterate/handlers/container-task/command-execution-loop.d.ts +0 -7
  771. package/dist/prompt/steps/step-iterate/handlers/container-task/command-execution-loop.js +0 -301
  772. package/dist/prompt/steps/step-iterate/handlers/container-task/command-execution-loop.js.map +0 -1
  773. package/dist/prompt/steps/step-iterate/handlers/container-task/commands/complete-task.d.ts +0 -4
  774. package/dist/prompt/steps/step-iterate/handlers/container-task/commands/complete-task.js +0 -49
  775. package/dist/prompt/steps/step-iterate/handlers/container-task/commands/complete-task.js.map +0 -1
  776. package/dist/prompt/steps/step-iterate/handlers/container-task/commands/copy-from-container.d.ts +0 -4
  777. package/dist/prompt/steps/step-iterate/handlers/container-task/commands/copy-from-container.js +0 -190
  778. package/dist/prompt/steps/step-iterate/handlers/container-task/commands/copy-from-container.js.map +0 -1
  779. package/dist/prompt/steps/step-iterate/handlers/container-task/commands/copy-to-container.d.ts +0 -4
  780. package/dist/prompt/steps/step-iterate/handlers/container-task/commands/copy-to-container.js +0 -139
  781. package/dist/prompt/steps/step-iterate/handlers/container-task/commands/copy-to-container.js.map +0 -1
  782. package/dist/prompt/steps/step-iterate/handlers/container-task/commands/edit-file.d.ts +0 -10
  783. package/dist/prompt/steps/step-iterate/handlers/container-task/commands/edit-file.js +0 -93
  784. package/dist/prompt/steps/step-iterate/handlers/container-task/commands/edit-file.js.map +0 -1
  785. package/dist/prompt/steps/step-iterate/handlers/container-task/commands/fail-task.d.ts +0 -4
  786. package/dist/prompt/steps/step-iterate/handlers/container-task/commands/fail-task.js +0 -72
  787. package/dist/prompt/steps/step-iterate/handlers/container-task/commands/fail-task.js.map +0 -1
  788. package/dist/prompt/steps/step-iterate/handlers/container-task/commands/gain-knowledge.d.ts +0 -10
  789. package/dist/prompt/steps/step-iterate/handlers/container-task/commands/gain-knowledge.js +0 -125
  790. package/dist/prompt/steps/step-iterate/handlers/container-task/commands/gain-knowledge.js.map +0 -1
  791. package/dist/prompt/steps/step-iterate/handlers/container-task/commands/interrupt-controller.d.ts +0 -19
  792. package/dist/prompt/steps/step-iterate/handlers/container-task/commands/interrupt-controller.js +0 -33
  793. package/dist/prompt/steps/step-iterate/handlers/container-task/commands/interrupt-controller.js.map +0 -1
  794. package/dist/prompt/steps/step-iterate/handlers/container-task/commands/query-knowledge.d.ts +0 -8
  795. package/dist/prompt/steps/step-iterate/handlers/container-task/commands/query-knowledge.js +0 -85
  796. package/dist/prompt/steps/step-iterate/handlers/container-task/commands/query-knowledge.js.map +0 -1
  797. package/dist/prompt/steps/step-iterate/handlers/container-task/commands/request-secret.d.ts +0 -6
  798. package/dist/prompt/steps/step-iterate/handlers/container-task/commands/request-secret.js +0 -122
  799. package/dist/prompt/steps/step-iterate/handlers/container-task/commands/request-secret.js.map +0 -1
  800. package/dist/prompt/steps/step-iterate/handlers/container-task/commands/run-command.d.ts +0 -7
  801. package/dist/prompt/steps/step-iterate/handlers/container-task/commands/run-command.js +0 -146
  802. package/dist/prompt/steps/step-iterate/handlers/container-task/commands/run-command.js.map +0 -1
  803. package/dist/prompt/steps/step-iterate/handlers/container-task/commands/send-message.d.ts +0 -4
  804. package/dist/prompt/steps/step-iterate/handlers/container-task/commands/send-message.js +0 -56
  805. package/dist/prompt/steps/step-iterate/handlers/container-task/commands/send-message.js.map +0 -1
  806. package/dist/prompt/steps/step-iterate/handlers/container-task/commands/set-execution-plan.d.ts +0 -4
  807. package/dist/prompt/steps/step-iterate/handlers/container-task/commands/set-execution-plan.js +0 -56
  808. package/dist/prompt/steps/step-iterate/handlers/container-task/commands/set-execution-plan.js.map +0 -1
  809. package/dist/prompt/steps/step-iterate/handlers/container-task/commands/update-execution-plan.d.ts +0 -4
  810. package/dist/prompt/steps/step-iterate/handlers/container-task/commands/update-execution-plan.js +0 -39
  811. package/dist/prompt/steps/step-iterate/handlers/container-task/commands/update-execution-plan.js.map +0 -1
  812. package/dist/prompt/steps/step-iterate/handlers/container-task/commands/view-file.d.ts +0 -10
  813. package/dist/prompt/steps/step-iterate/handlers/container-task/commands/view-file.js +0 -95
  814. package/dist/prompt/steps/step-iterate/handlers/container-task/commands/view-file.js.map +0 -1
  815. package/dist/prompt/steps/step-iterate/handlers/container-task/commands/web-search.d.ts +0 -2
  816. package/dist/prompt/steps/step-iterate/handlers/container-task/commands/web-search.js +0 -96
  817. package/dist/prompt/steps/step-iterate/handlers/container-task/commands/web-search.js.map +0 -1
  818. package/dist/prompt/steps/step-iterate/handlers/container-task/commands/wrap-context.d.ts +0 -4
  819. package/dist/prompt/steps/step-iterate/handlers/container-task/commands/wrap-context.js +0 -123
  820. package/dist/prompt/steps/step-iterate/handlers/container-task/commands/wrap-context.js.map +0 -1
  821. package/dist/prompt/steps/step-iterate/handlers/container-task/container-commands-registry.d.ts +0 -11
  822. package/dist/prompt/steps/step-iterate/handlers/container-task/container-commands-registry.js +0 -50
  823. package/dist/prompt/steps/step-iterate/handlers/container-task/container-commands-registry.js.map +0 -1
  824. package/dist/prompt/steps/step-iterate/handlers/container-task/container-commands-types.d.ts +0 -28
  825. package/dist/prompt/steps/step-iterate/handlers/container-task/container-commands-types.js +0 -2
  826. package/dist/prompt/steps/step-iterate/handlers/container-task/container-commands-types.js.map +0 -1
  827. package/dist/prompt/steps/step-iterate/handlers/container-task/container-task-orchestrator.d.ts +0 -2
  828. package/dist/prompt/steps/step-iterate/handlers/container-task/container-task-orchestrator.js +0 -202
  829. package/dist/prompt/steps/step-iterate/handlers/container-task/container-task-orchestrator.js.map +0 -1
  830. package/dist/prompt/steps/step-iterate/handlers/container-task/utils/docker-check.d.ts +0 -4
  831. package/dist/prompt/steps/step-iterate/handlers/container-task/utils/docker-check.js +0 -15
  832. package/dist/prompt/steps/step-iterate/handlers/container-task/utils/docker-check.js.map +0 -1
  833. package/dist/prompt/steps/step-iterate/handlers/container-task/utils/docker-utils.d.ts +0 -50
  834. package/dist/prompt/steps/step-iterate/handlers/container-task/utils/docker-utils.js +0 -358
  835. package/dist/prompt/steps/step-iterate/handlers/container-task/utils/docker-utils.js.map +0 -1
  836. package/dist/prompt/steps/step-iterate/handlers/file-request-utils.d.ts +0 -47
  837. package/dist/prompt/steps/step-iterate/handlers/file-request-utils.js +0 -114
  838. package/dist/prompt/steps/step-iterate/handlers/file-request-utils.js.map +0 -1
  839. package/dist/prompt/steps/step-iterate/handlers/handle-code-execution.d.ts +0 -1
  840. package/dist/prompt/steps/step-iterate/handlers/handle-code-execution.js +0 -133
  841. package/dist/prompt/steps/step-iterate/handlers/handle-code-execution.js.map +0 -1
  842. package/dist/prompt/steps/step-iterate/handlers/handle-code-generation.d.ts +0 -4
  843. package/dist/prompt/steps/step-iterate/handlers/handle-code-generation.js +0 -177
  844. package/dist/prompt/steps/step-iterate/handlers/handle-code-generation.js.map +0 -1
  845. package/dist/prompt/steps/step-iterate/handlers/handle-compound-action.d.ts +0 -20
  846. package/dist/prompt/steps/step-iterate/handlers/handle-compound-action.js +0 -305
  847. package/dist/prompt/steps/step-iterate/handlers/handle-compound-action.js.map +0 -1
  848. package/dist/prompt/steps/step-iterate/handlers/handle-confirm-code-generation.d.ts +0 -2
  849. package/dist/prompt/steps/step-iterate/handlers/handle-confirm-code-generation.js +0 -40
  850. package/dist/prompt/steps/step-iterate/handlers/handle-confirm-code-generation.js.map +0 -1
  851. package/dist/prompt/steps/step-iterate/handlers/handle-context-compression.d.ts +0 -2
  852. package/dist/prompt/steps/step-iterate/handlers/handle-context-compression.js +0 -35
  853. package/dist/prompt/steps/step-iterate/handlers/handle-context-compression.js.map +0 -1
  854. package/dist/prompt/steps/step-iterate/handlers/handle-context-optimization.d.ts +0 -2
  855. package/dist/prompt/steps/step-iterate/handlers/handle-context-optimization.js +0 -34
  856. package/dist/prompt/steps/step-iterate/handlers/handle-context-optimization.js.map +0 -1
  857. package/dist/prompt/steps/step-iterate/handlers/handle-conversation-graph.d.ts +0 -11
  858. package/dist/prompt/steps/step-iterate/handlers/handle-conversation-graph.js +0 -503
  859. package/dist/prompt/steps/step-iterate/handlers/handle-conversation-graph.js.map +0 -1
  860. package/dist/prompt/steps/step-iterate/handlers/handle-create-file.d.ts +0 -2
  861. package/dist/prompt/steps/step-iterate/handlers/handle-create-file.js +0 -159
  862. package/dist/prompt/steps/step-iterate/handlers/handle-create-file.js.map +0 -1
  863. package/dist/prompt/steps/step-iterate/handlers/handle-end-conversation.d.ts +0 -2
  864. package/dist/prompt/steps/step-iterate/handlers/handle-end-conversation.js +0 -30
  865. package/dist/prompt/steps/step-iterate/handlers/handle-end-conversation.js.map +0 -1
  866. package/dist/prompt/steps/step-iterate/handlers/handle-explore-external-directories.d.ts +0 -2
  867. package/dist/prompt/steps/step-iterate/handlers/handle-explore-external-directories.js +0 -280
  868. package/dist/prompt/steps/step-iterate/handlers/handle-explore-external-directories.js.map +0 -1
  869. package/dist/prompt/steps/step-iterate/handlers/handle-genaicode-help.d.ts +0 -8
  870. package/dist/prompt/steps/step-iterate/handlers/handle-genaicode-help.js +0 -105
  871. package/dist/prompt/steps/step-iterate/handlers/handle-genaicode-help.js.map +0 -1
  872. package/dist/prompt/steps/step-iterate/handlers/handle-generate-image.d.ts +0 -2
  873. package/dist/prompt/steps/step-iterate/handlers/handle-generate-image.js +0 -110
  874. package/dist/prompt/steps/step-iterate/handlers/handle-generate-image.js.map +0 -1
  875. package/dist/prompt/steps/step-iterate/handlers/handle-perform-analysis.d.ts +0 -6
  876. package/dist/prompt/steps/step-iterate/handlers/handle-perform-analysis.js +0 -110
  877. package/dist/prompt/steps/step-iterate/handlers/handle-perform-analysis.js.map +0 -1
  878. package/dist/prompt/steps/step-iterate/handlers/handle-project-command.d.ts +0 -2
  879. package/dist/prompt/steps/step-iterate/handlers/handle-project-command.js +0 -280
  880. package/dist/prompt/steps/step-iterate/handlers/handle-project-command.js.map +0 -1
  881. package/dist/prompt/steps/step-iterate/handlers/handle-pull-app-context.d.ts +0 -9
  882. package/dist/prompt/steps/step-iterate/handlers/handle-pull-app-context.js +0 -94
  883. package/dist/prompt/steps/step-iterate/handlers/handle-pull-app-context.js.map +0 -1
  884. package/dist/prompt/steps/step-iterate/handlers/handle-pull-console-logs.d.ts +0 -2
  885. package/dist/prompt/steps/step-iterate/handlers/handle-pull-console-logs.js +0 -174
  886. package/dist/prompt/steps/step-iterate/handlers/handle-pull-console-logs.js.map +0 -1
  887. package/dist/prompt/steps/step-iterate/handlers/handle-push-app-context.d.ts +0 -9
  888. package/dist/prompt/steps/step-iterate/handlers/handle-push-app-context.js +0 -104
  889. package/dist/prompt/steps/step-iterate/handlers/handle-push-app-context.js.map +0 -1
  890. package/dist/prompt/steps/step-iterate/handlers/handle-read-external-files.d.ts +0 -2
  891. package/dist/prompt/steps/step-iterate/handlers/handle-read-external-files.js +0 -149
  892. package/dist/prompt/steps/step-iterate/handlers/handle-read-external-files.js.map +0 -1
  893. package/dist/prompt/steps/step-iterate/handlers/handle-reasoning-inference.d.ts +0 -7
  894. package/dist/prompt/steps/step-iterate/handlers/handle-reasoning-inference.js +0 -119
  895. package/dist/prompt/steps/step-iterate/handlers/handle-reasoning-inference.js.map +0 -1
  896. package/dist/prompt/steps/step-iterate/handlers/handle-remove-files-from-context.d.ts +0 -2
  897. package/dist/prompt/steps/step-iterate/handlers/handle-remove-files-from-context.js +0 -100
  898. package/dist/prompt/steps/step-iterate/handlers/handle-remove-files-from-context.js.map +0 -1
  899. package/dist/prompt/steps/step-iterate/handlers/handle-request-files-content.d.ts +0 -8
  900. package/dist/prompt/steps/step-iterate/handlers/handle-request-files-content.js +0 -146
  901. package/dist/prompt/steps/step-iterate/handlers/handle-request-files-content.js.map +0 -1
  902. package/dist/prompt/steps/step-iterate/handlers/handle-request-files-fragments.d.ts +0 -8
  903. package/dist/prompt/steps/step-iterate/handlers/handle-request-files-fragments.js +0 -197
  904. package/dist/prompt/steps/step-iterate/handlers/handle-request-files-fragments.js.map +0 -1
  905. package/dist/prompt/steps/step-iterate/handlers/handle-request-git-context.d.ts +0 -3
  906. package/dist/prompt/steps/step-iterate/handlers/handle-request-git-context.js +0 -251
  907. package/dist/prompt/steps/step-iterate/handlers/handle-request-git-context.js.map +0 -1
  908. package/dist/prompt/steps/step-iterate/handlers/handle-request-permissions.d.ts +0 -2
  909. package/dist/prompt/steps/step-iterate/handlers/handle-request-permissions.js +0 -83
  910. package/dist/prompt/steps/step-iterate/handlers/handle-request-permissions.js.map +0 -1
  911. package/dist/prompt/steps/step-iterate/handlers/handle-run-bash-command.d.ts +0 -2
  912. package/dist/prompt/steps/step-iterate/handlers/handle-run-bash-command.js +0 -185
  913. package/dist/prompt/steps/step-iterate/handlers/handle-run-bash-command.js.map +0 -1
  914. package/dist/prompt/steps/step-iterate/handlers/handle-run-container-task.d.ts +0 -2
  915. package/dist/prompt/steps/step-iterate/handlers/handle-run-container-task.js +0 -7
  916. package/dist/prompt/steps/step-iterate/handlers/handle-run-container-task.js.map +0 -1
  917. package/dist/prompt/steps/step-iterate/handlers/handle-search-code.d.ts +0 -2
  918. package/dist/prompt/steps/step-iterate/handlers/handle-search-code.js +0 -96
  919. package/dist/prompt/steps/step-iterate/handlers/handle-search-code.js.map +0 -1
  920. package/dist/prompt/steps/step-iterate/handlers/handle-send-message.d.ts +0 -2
  921. package/dist/prompt/steps/step-iterate/handlers/handle-send-message.js +0 -21
  922. package/dist/prompt/steps/step-iterate/handlers/handle-send-message.js.map +0 -1
  923. package/dist/prompt/steps/step-iterate/handlers/handle-structured-question.d.ts +0 -1
  924. package/dist/prompt/steps/step-iterate/handlers/handle-structured-question.js +0 -72
  925. package/dist/prompt/steps/step-iterate/handlers/handle-structured-question.js.map +0 -1
  926. package/dist/prompt/steps/step-iterate/handlers/handle-update-file.d.ts +0 -2
  927. package/dist/prompt/steps/step-iterate/handlers/handle-update-file.js +0 -161
  928. package/dist/prompt/steps/step-iterate/handlers/handle-update-file.js.map +0 -1
  929. package/dist/prompt/steps/step-iterate/handlers/handle-web-search.d.ts +0 -1
  930. package/dist/prompt/steps/step-iterate/handlers/handle-web-search.js +0 -85
  931. package/dist/prompt/steps/step-iterate/handlers/handle-web-search.js.map +0 -1
  932. package/dist/prompt/steps/step-iterate/iterate-handler.d.ts +0 -4
  933. package/dist/prompt/steps/step-iterate/iterate-handler.js +0 -14
  934. package/dist/prompt/steps/step-iterate/iterate-handler.js.map +0 -1
  935. package/dist/prompt/steps/step-iterate/step-iterate-handlers.d.ts +0 -3
  936. package/dist/prompt/steps/step-iterate/step-iterate-handlers.js +0 -5
  937. package/dist/prompt/steps/step-iterate/step-iterate-handlers.js.map +0 -1
  938. package/dist/prompt/steps/step-iterate/step-iterate-types.d.ts +0 -255
  939. package/dist/prompt/steps/step-iterate/step-iterate-types.js +0 -2
  940. package/dist/prompt/steps/step-iterate/step-iterate-types.js.map +0 -1
  941. package/dist/prompt/steps/step-iterate/step-iterate.d.ts +0 -37
  942. package/dist/prompt/steps/step-iterate/step-iterate.js +0 -132
  943. package/dist/prompt/steps/step-iterate/step-iterate.js.map +0 -1
  944. package/dist/prompt/steps/step-process-file-updates.d.ts +0 -12
  945. package/dist/prompt/steps/step-process-file-updates.js +0 -148
  946. package/dist/prompt/steps/step-process-file-updates.js.map +0 -1
  947. package/dist/prompt/steps/step-summarization.d.ts +0 -10
  948. package/dist/prompt/steps/step-summarization.js +0 -167
  949. package/dist/prompt/steps/step-summarization.js.map +0 -1
  950. package/dist/prompt/steps/step-validate-recover.d.ts +0 -2
  951. package/dist/prompt/steps/step-validate-recover.js +0 -71
  952. package/dist/prompt/steps/step-validate-recover.js.map +0 -1
  953. package/dist/prompt/steps/step-verify-patch.d.ts +0 -10
  954. package/dist/prompt/steps/step-verify-patch.js +0 -52
  955. package/dist/prompt/steps/step-verify-patch.js.map +0 -1
  956. package/dist/prompt/steps/steps-types.d.ts +0 -4
  957. package/dist/prompt/steps/steps-types.js +0 -6
  958. package/dist/prompt/steps/steps-types.js.map +0 -1
  959. package/dist/prompt/steps/steps-utils.d.ts +0 -7
  960. package/dist/prompt/steps/steps-utils.js +0 -11
  961. package/dist/prompt/steps/steps-utils.js.map +0 -1
  962. package/dist/prompt/systemprompt.d.ts +0 -4
  963. package/dist/prompt/systemprompt.js +0 -113
  964. package/dist/prompt/systemprompt.js.map +0 -1
  965. package/dist/prompt/token-estimator.d.ts +0 -8
  966. package/dist/prompt/token-estimator.js +0 -31
  967. package/dist/prompt/token-estimator.js.map +0 -1
  968. package/dist/prompt-debug/current-prompt-plugin.d.ts +0 -3
  969. package/dist/prompt-debug/current-prompt-plugin.js +0 -10
  970. package/dist/prompt-debug/current-prompt-plugin.js.map +0 -1
  971. package/dist/utils/docker-utils.d.ts +0 -37
  972. package/dist/utils/docker-utils.js +0 -258
  973. package/dist/utils/docker-utils.js.map +0 -1
  974. package/dist/vite-genaicode/code-transformer.d.ts +0 -5
  975. package/dist/vite-genaicode/code-transformer.js +0 -83
  976. package/dist/vite-genaicode/code-transformer.js.map +0 -1
  977. package/dist/vite-genaicode/console-interceptor.d.ts +0 -53
  978. package/dist/vite-genaicode/console-interceptor.js +0 -117
  979. package/dist/vite-genaicode/console-interceptor.js.map +0 -1
  980. package/dist/vite-genaicode/constants.d.ts +0 -3
  981. package/dist/vite-genaicode/constants.js +0 -4
  982. package/dist/vite-genaicode/constants.js.map +0 -1
  983. package/dist/vite-genaicode/dynamic-function-generator.d.ts +0 -2
  984. package/dist/vite-genaicode/dynamic-function-generator.js +0 -47
  985. package/dist/vite-genaicode/dynamic-function-generator.js.map +0 -1
  986. package/dist/vite-genaicode/html-injector.d.ts +0 -6
  987. package/dist/vite-genaicode/html-injector.js +0 -14
  988. package/dist/vite-genaicode/html-injector.js.map +0 -1
  989. package/dist/vite-genaicode/server-manager.d.ts +0 -26
  990. package/dist/vite-genaicode/server-manager.js +0 -91
  991. package/dist/vite-genaicode/server-manager.js.map +0 -1
  992. package/dist/vite-genaicode/vite-genaicode-context.d.ts +0 -31
  993. package/dist/vite-genaicode/vite-genaicode-context.js +0 -120
  994. package/dist/vite-genaicode/vite-genaicode-context.js.map +0 -1
  995. package/dist/vite-genaicode/vite-genaicode-frontend.d.ts +0 -1
  996. package/dist/vite-genaicode/vite-genaicode-frontend.js +0 -329
  997. package/dist/vite-genaicode/vite-genaicode-frontend.js.map +0 -1
  998. package/dist/vite-genaicode/vite-genaicode-plugin.d.ts +0 -21
  999. package/dist/vite-genaicode/vite-genaicode-plugin.js +0 -87
  1000. package/dist/vite-genaicode/vite-genaicode-plugin.js.map +0 -1
  1001. package/dist/vite-genaicode/vite-genaicode-types.d.ts +0 -28
  1002. package/dist/vite-genaicode/vite-genaicode-types.js +0 -11
  1003. package/dist/vite-genaicode/vite-genaicode-types.js.map +0 -1
  1004. package/media/logo-dark.png +0 -0
  1005. package/media/logo.png +0 -0
@@ -1,255 +0,0 @@
1
- import { GenerateImageFunction } from '../../../ai-service/common-types.js';
2
- import { GenerateContentFunction } from '../../../ai-service/common-types.js';
3
- import { PromptItem } from '../../../ai-service/common-types.js';
4
- import { PromptItemImage } from '../../../ai-service/common-types.js';
5
- import { FunctionCall } from '../../../ai-service/common-types.js';
6
- import { CodegenOptions } from '../../../main/codegen-types.js';
7
- import { PluginActionType } from '../../../ai-service/service-configurations-types.js';
8
- import { ConsoleLogLevel, ConsoleLogMode } from '../../../vite-genaicode/vite-genaicode-types.js';
9
- export type ActionType = 'codeGeneration' | 'sendMessage' | 'generateImage' | 'requestPermissions' | 'readExternalFiles' | 'requestFilesContent' | 'removeFilesFromContext' | 'exploreExternalDirectories' | 'confirmCodeGeneration' | 'endConversation' | 'contextOptimization' | 'contextCompression' | 'searchCode' | 'updateFile' | 'performAnalysis' | 'createFile' | 'pullAppContext' | 'pullConsoleLogs' | 'genaicodeHelp' | 'pushAppContext' | 'requestFilesFragments' | 'requestGitContext' | 'conversationGraph' | 'runContainerTask' | 'compoundAction' | 'runProjectCommand' | 'runBashCommand' | 'webSearch' | 'structuredQuestion' | 'codeExecution' | PluginActionType;
10
- export type IterateArgs = {
11
- actionType?: ActionType;
12
- message?: string;
13
- };
14
- /**
15
- * Arguments for sendMessage action
16
- */
17
- export type SendMessageArgs = {
18
- message: string;
19
- };
20
- /**
21
- * Arguments for help action
22
- */
23
- export type GenaicodeHelpArgs = {
24
- reasoning: string;
25
- message: string;
26
- };
27
- /**
28
- * Arguments for pullAppContext action
29
- */
30
- export type PullAppContextArgs = {
31
- reason: string;
32
- key: string;
33
- };
34
- /**
35
- * Arguments for pushAppContext action
36
- */
37
- export type PushAppContextArgs = {
38
- reason: string;
39
- key: string;
40
- value: string;
41
- };
42
- /**
43
- * Arguments for pullConsoleLogs action
44
- */
45
- export type PullConsoleLogsArgs = {
46
- mode: ConsoleLogMode;
47
- prompt?: string;
48
- lines?: number;
49
- level?: ConsoleLogLevel;
50
- };
51
- export type GenerateImageArgs = {
52
- prompt: string;
53
- filePath: string;
54
- contextImagePath?: string;
55
- width: number;
56
- height: number;
57
- cheap: boolean;
58
- };
59
- export type RequestPermissionsArgs = Record<'allowDirectoryCreate' | 'allowFileCreate' | 'allowFileDelete' | 'allowFileMove' | 'enableVision' | 'enableImagen', boolean>;
60
- export type RequestFilesContentArgs = {
61
- filePaths: string[];
62
- };
63
- export type RequestFilesFragmentsArgs = {
64
- /** Array of file paths to extract fragments from */
65
- filePaths: string[];
66
- /** Prompt describing what information should be extracted from the extracted files */
67
- fragmentPrompt: string;
68
- };
69
- export type ReadExternalFilesArgs = {
70
- externalFilePaths: string[];
71
- reason: string;
72
- };
73
- export type RemoveFilesFromContextArgs = {
74
- filePaths: string[];
75
- };
76
- export type ContextOptimizationArgs = {
77
- filePaths: string[];
78
- };
79
- /**
80
- * Arguments for the performAnalysis action
81
- */
82
- export type PerformAnalysisArgs = {
83
- /** The type of analysis to perform */
84
- analysisType: 'code' | 'image' | 'security' | 'performance' | 'architecture' | 'general';
85
- /** The analysis prompt describing what needs to be analyzed */
86
- prompt: string;
87
- };
88
- /**
89
- * Results of the analysis operation
90
- */
91
- export type AnalysisResultArgs = {
92
- /** Reasoning behind the analysis results */
93
- reasoning: string;
94
- /** User-friendly message summarizing results */
95
- message: string;
96
- };
97
- /**
98
- * Arguments for the searchCode action
99
- */
100
- export type SearchCodeArgs = {
101
- /** The search query string */
102
- query: string;
103
- /** Optional glob patterns to include files */
104
- includePatterns?: string[];
105
- /** Optional glob patterns to exclude files */
106
- excludePatterns?: string[];
107
- /** Whether to search in file contents (default: true) */
108
- searchInContent?: boolean;
109
- /** Whether to search in file names (default: true) */
110
- searchInFilenames?: boolean;
111
- /** Case sensitive search (default: false) */
112
- caseSensitive?: boolean;
113
- /** Maximum number of results to return */
114
- maxResults?: number;
115
- /** Number of context lines to include around content matches */
116
- contextLines?: number;
117
- };
118
- export type RequestGitContextArgs = {
119
- requestType: 'commits' | 'fileChanges' | 'blame' | 'fileDiff' | 'workingChanges' | 'workingDiff';
120
- filePath?: string;
121
- commitHash?: string;
122
- count?: number;
123
- includeUntracked?: boolean;
124
- stagedOnly?: boolean;
125
- unstagedOnly?: boolean;
126
- staged?: boolean;
127
- };
128
- /**
129
- * Represents a single action within a compound action batch.
130
- */
131
- export interface CompoundActionItem {
132
- /** The name of the operation to execute (e.g., 'createFile', 'updateFile'). */
133
- name: string;
134
- /** The parameters required by the specified actionName. */
135
- args: Record<string, unknown>;
136
- }
137
- /**
138
- * Arguments for the internal `compoundActionList` function call.
139
- */
140
- export type CompoundActionListArgs = {
141
- /** An array of actions to be executed as part of a compound operation. */
142
- actions: CompoundActionItem[];
143
- /** Summary of the actions to be performed. */
144
- summary?: string;
145
- };
146
- export type RunProjectCommandArgs = {
147
- name: string;
148
- args?: string[];
149
- env?: Record<string, string>;
150
- workingDirOverride?: string;
151
- truncMode?: 'first' | 'last' | 'summarize' | 'full';
152
- };
153
- export type RunBashCommandArgs = {
154
- command: string;
155
- env?: Record<string, string>;
156
- workingDirOverride?: string;
157
- truncMode?: 'first' | 'last' | 'summarize' | 'full';
158
- };
159
- export type ProjectCommandResult = {
160
- success: boolean;
161
- exitCode: number;
162
- stdout: string;
163
- stderr: string;
164
- };
165
- export type CodeExecutionArgs = {
166
- message: string;
167
- };
168
- export type IterateCall = FunctionCall<IterateArgs>;
169
- export type PerformAnalysisCall = FunctionCall<PerformAnalysisArgs>;
170
- export type AnalysisResultCall = FunctionCall<AnalysisResultArgs>;
171
- export interface AssistantItem {
172
- type: 'assistant';
173
- text: string;
174
- functionCalls?: FunctionCall[];
175
- executableCode?: {
176
- language: string;
177
- code: string;
178
- };
179
- codeExecutionResult?: {
180
- outcome: 'OUTCOME_OK' | 'OUTCOME_FAILED' | 'OUTCOME_DEADLINE_EXCEEDED';
181
- output: string;
182
- outputFiles?: Array<{
183
- fileId: string;
184
- filename: string;
185
- size: number;
186
- mimeType?: string;
187
- }>;
188
- };
189
- images?: PromptItemImage[];
190
- cache?: true;
191
- }
192
- export interface UserItem {
193
- type: 'user';
194
- text?: string;
195
- data?: Record<string, unknown>;
196
- functionResponses?: Array<{
197
- name: string;
198
- call_id: string | undefined;
199
- content: string | undefined;
200
- isError?: boolean;
201
- }>;
202
- images?: PromptItemImage[];
203
- cache?: true;
204
- }
205
- export interface ActionResult {
206
- breakLoop: boolean;
207
- forceActionType?: ActionType;
208
- stepResult?: FunctionCall[];
209
- items: Array<{
210
- assistant: AssistantItem;
211
- user: UserItem;
212
- }>;
213
- }
214
- export type ActionHandlerProps = {
215
- iterateCall: IterateCall;
216
- prompt: PromptItem[];
217
- options: CodegenOptions;
218
- generateContentFn: GenerateContentFunction;
219
- generateImageFn: GenerateImageFunction;
220
- waitIfPaused: () => Promise<void>;
221
- };
222
- export type ActionHandler = (props: ActionHandlerProps) => Promise<ActionResult>;
223
- export type StructuredQuestionFieldType = 'text' | 'checkbox' | 'radio' | 'select' | 'textarea' | 'number' | 'email';
224
- export interface StructuredQuestionField {
225
- id: string;
226
- label: string;
227
- type: StructuredQuestionFieldType;
228
- required?: boolean;
229
- placeholder?: string;
230
- options?: {
231
- value: string;
232
- label: string;
233
- }[];
234
- defaultValue?: string | string[];
235
- validation?: {
236
- pattern?: string;
237
- minLength?: number;
238
- maxLength?: number;
239
- };
240
- }
241
- export interface StructuredQuestionForm {
242
- title: string;
243
- description?: string;
244
- fields: StructuredQuestionField[];
245
- submitLabel?: string;
246
- cancelLabel?: string;
247
- }
248
- export type StructuredQuestionArgs = {
249
- message: string;
250
- form: StructuredQuestionForm;
251
- };
252
- export type StructuredQuestionResponse = {
253
- submitted: boolean;
254
- values: Record<string, string | string[] | boolean>;
255
- };
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=step-iterate-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"step-iterate-types.js","sourceRoot":"","sources":["../../../../src/prompt/steps/step-iterate/step-iterate-types.ts"],"names":[],"mappings":""}
@@ -1,37 +0,0 @@
1
- import { GenerateImageFunction } from '../../../ai-service/common-types.js';
2
- import { GenerateContentFunction } from '../../../ai-service/common-types.js';
3
- import { PromptItem } from '../../../ai-service/common-types.js';
4
- import { FunctionCall } from '../../../ai-service/common-types.js';
5
- import { FunctionDef } from '../../../ai-service/common-types.js';
6
- import { CodegenOptions } from '../../../main/codegen-types.js';
7
- import './handlers/handle-code-generation.js';
8
- import './handlers/handle-confirm-code-generation.js';
9
- import './handlers/handle-context-compression.js';
10
- import './handlers/handle-context-optimization.js';
11
- import './handlers/handle-conversation-graph.js';
12
- import './handlers/handle-create-file.js';
13
- import './handlers/handle-end-conversation.js';
14
- import './handlers/handle-explore-external-directories.js';
15
- import './handlers/handle-genaicode-help.js';
16
- import './handlers/handle-generate-image.js';
17
- import './handlers/handle-perform-analysis.js';
18
- import './handlers/handle-project-command.js';
19
- import './handlers/handle-pull-app-context.js';
20
- import './handlers/handle-pull-console-logs.js';
21
- import './handlers/handle-push-app-context.js';
22
- import './handlers/handle-read-external-files.js';
23
- import './handlers/handle-remove-files-from-context.js';
24
- import './handlers/handle-request-files-content.js';
25
- import './handlers/handle-request-files-fragments.js';
26
- import './handlers/handle-request-git-context.js';
27
- import './handlers/handle-request-permissions.js';
28
- import './handlers/handle-run-bash-command.js';
29
- import './handlers/handle-run-container-task.js';
30
- import './handlers/handle-search-code.js';
31
- import './handlers/handle-send-message.js';
32
- import './handlers/handle-structured-question.js';
33
- import './handlers/handle-update-file.js';
34
- import './handlers/handle-web-search.js';
35
- import './handlers/handle-compound-action.js';
36
- import './handlers/handle-code-execution.js';
37
- export declare function executeStepIterate(generateContentFn: GenerateContentFunction, generateImageFn: GenerateImageFunction, prompt: PromptItem[], functionDefs: FunctionDef[], waitIfPaused: () => Promise<void>, temperature: number, options: CodegenOptions): Promise<FunctionCall[]>;
@@ -1,132 +0,0 @@
1
- import { ModelType } from '../../../ai-service/common-types.js';
2
- import { putAssistantMessage, putSystemMessage, putUserMessage } from '../../../main/common/content-bus.js';
3
- import { abortController } from '../../../main/common/abort-controller.js';
4
- import { getUsageMetrics } from '../../../main/common/cost-collector.js';
5
- import { getActionHandler } from './iterate-handler.js';
6
- import { executeStepAutoContextRefresh, getFilesState } from '../step-auto-context-refresh.js';
7
- import { getFilesContextSizeFromPrompt } from '../../context-utils.js';
8
- import './handlers/handle-code-generation.js';
9
- import './handlers/handle-confirm-code-generation.js';
10
- import './handlers/handle-context-compression.js';
11
- import './handlers/handle-context-optimization.js';
12
- import './handlers/handle-conversation-graph.js';
13
- import './handlers/handle-create-file.js';
14
- import './handlers/handle-end-conversation.js';
15
- import './handlers/handle-explore-external-directories.js';
16
- import './handlers/handle-genaicode-help.js';
17
- import './handlers/handle-generate-image.js';
18
- import './handlers/handle-perform-analysis.js';
19
- import './handlers/handle-project-command.js';
20
- import './handlers/handle-pull-app-context.js';
21
- import './handlers/handle-pull-console-logs.js';
22
- import './handlers/handle-push-app-context.js';
23
- import './handlers/handle-read-external-files.js';
24
- import './handlers/handle-remove-files-from-context.js';
25
- import './handlers/handle-request-files-content.js';
26
- import './handlers/handle-request-files-fragments.js';
27
- import './handlers/handle-request-git-context.js';
28
- import './handlers/handle-request-permissions.js';
29
- import './handlers/handle-run-bash-command.js';
30
- import './handlers/handle-run-container-task.js';
31
- import './handlers/handle-search-code.js';
32
- import './handlers/handle-send-message.js';
33
- import './handlers/handle-structured-question.js';
34
- import './handlers/handle-update-file.js';
35
- import './handlers/handle-web-search.js';
36
- import './handlers/handle-compound-action.js';
37
- import './handlers/handle-code-execution.js';
38
- export async function executeStepIterate(generateContentFn, generateImageFn, prompt, functionDefs, waitIfPaused, temperature, options) {
39
- putSystemMessage('Allowing the assistant to iterate...');
40
- let filesState = getFilesState();
41
- let aborted = false;
42
- abortController?.signal.addEventListener('abort', () => {
43
- aborted = true;
44
- });
45
- let forcedActionType = options.initialActionType;
46
- while (!aborted) {
47
- try {
48
- // Calculate context size using the total tokens per day (this is not a perfect metric, but it's a good approximation)
49
- const lastTokenCount = getUsageMetrics().total.tpd;
50
- if (forcedActionType) {
51
- putSystemMessage(`Forcing action type: ${forcedActionType}`);
52
- }
53
- const iterateCall = forcedActionType
54
- ? {
55
- name: 'iterate',
56
- id: 'forced-action',
57
- args: {
58
- actionType: forcedActionType,
59
- message: `I'm going to execute the action: ${forcedActionType}`,
60
- },
61
- }
62
- : await getIterateCall(generateContentFn, prompt, functionDefs, temperature, options);
63
- const totalTokens = getUsageMetrics().total.tpd - lastTokenCount;
64
- if (!iterateCall) {
65
- break;
66
- }
67
- if (iterateCall.args?.message && iterateCall.id !== 'forced-action') {
68
- const filesContextSize = getFilesContextSizeFromPrompt(prompt);
69
- putAssistantMessage(iterateCall.args.message, {
70
- ...iterateCall.args,
71
- contextSize: totalTokens,
72
- filesContextSize,
73
- });
74
- }
75
- const actionType = iterateCall.args?.actionType;
76
- if (actionType) {
77
- const actionHandler = getActionHandler(actionType);
78
- const result = await actionHandler({
79
- iterateCall,
80
- prompt,
81
- options,
82
- generateContentFn,
83
- generateImageFn,
84
- waitIfPaused,
85
- });
86
- forcedActionType = result.forceActionType;
87
- if (aborted) {
88
- putSystemMessage('Iteration aborted.');
89
- break;
90
- }
91
- // This is important to display the content to the user interface (ui or interactive cli)
92
- const lastItem = result.items.slice(-1)[0];
93
- if (lastItem?.user?.text || lastItem?.user?.images) {
94
- putUserMessage(lastItem.user.text ?? '', lastItem.user.data, undefined, lastItem.user.images, lastItem.user);
95
- }
96
- prompt.push(...result.items.map(({ assistant, user }) => [assistant, user]).flat());
97
- filesState = await executeStepAutoContextRefresh(filesState, generateContentFn, options, prompt);
98
- if (result.breakLoop) {
99
- return result.stepResult ?? [];
100
- }
101
- }
102
- else {
103
- putSystemMessage('Invalid action type received');
104
- break;
105
- }
106
- }
107
- catch (error) {
108
- putSystemMessage(`An error occurred: ${error instanceof Error ? error.message : String(error)}`);
109
- return [];
110
- }
111
- }
112
- putSystemMessage('Assistant did not iterate. This unexpected, we need to abort.');
113
- return [];
114
- }
115
- async function getIterateCall(generateContentFn, prompt, functionDefs, temperature, options) {
116
- const iterateRequest = [
117
- prompt,
118
- {
119
- functionDefs,
120
- requiredFunctionName: 'iterate',
121
- temperature,
122
- modelType: ModelType.CHEAP,
123
- expectedResponseType: { text: false, functionCall: true, media: false },
124
- },
125
- options,
126
- ];
127
- const iterateResult = (await generateContentFn(...iterateRequest))
128
- .filter((item) => item.type === 'functionCall')
129
- .map((item) => item.functionCall);
130
- return iterateResult.find((call) => call.name === 'iterate');
131
- }
132
- //# sourceMappingURL=step-iterate.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"step-iterate.js","sourceRoot":"","sources":["../../../../src/prompt/steps/step-iterate/step-iterate.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAEhE,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAC5G,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAE3E,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,6BAA6B,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAC/F,OAAO,EAAE,6BAA6B,EAAE,MAAM,wBAAwB,CAAC;AAEvE,OAAO,sCAAsC,CAAC;AAC9C,OAAO,8CAA8C,CAAC;AACtD,OAAO,0CAA0C,CAAC;AAClD,OAAO,2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;IACH,CAAC;IAED,gBAAgB,CAAC,+DAA+D,CAAC,CAAC;IAClF,OAAO,EAAE,CAAC;AACZ,CAAC;AAED,KAAK,UAAU,cAAc,CAC3B,iBAA0C,EAC1C,MAAoB,EACpB,YAA2B,EAC3B,WAAmB,EACnB,OAAuB;IAEvB,MAAM,cAAc,GAAwB;QAC1C,MAAM;QACN;YACE,YAAY;YACZ,oBAAoB,EAAE,SAAS;YAC/B,WAAW;YACX,SAAS,EAAE,SAAS,CAAC,KAAK;YAC1B,oBAAoB,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE;SACxE;QACD,OAAO;KACR,CAAC;IACF,MAAM,aAAa,GAAG,CAAC,MAAM,iBAAiB,CAAC,GAAG,cAAc,CAAC,CAAC;SAC/D,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,cAAc,CAAC;SAC9C,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IACpC,OAAO,aAAa,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,SAAS,CAA4B,CAAC;AAC1F,CAAC"}
@@ -1,12 +0,0 @@
1
- import { GenerateImageFunction } from '../../ai-service/common-types.js';
2
- import { GenerateContentFunction } from '../../ai-service/common-types.js';
3
- import { PromptItem } from '../../ai-service/common-types.js';
4
- import { FunctionCall } from '../../ai-service/common-types.js';
5
- import { FunctionDef } from '../../ai-service/common-types.js';
6
- import { CodegenOptions, CodegenSummaryArgs } from '../../main/codegen-types.js';
7
- /**
8
- * Processes file updates from the codegen summary.
9
- * This is the second part of the original executeStepCodegenSummary function.
10
- * It handles processing individual file updates, image generation, and patch verification.
11
- */
12
- export declare function processFileUpdates(generateContentFn: GenerateContentFunction, prompt: PromptItem[], functionDefs: FunctionDef[], options: CodegenOptions, codegenSummaryRequest: FunctionCall<CodegenSummaryArgs>, waitIfPaused?: () => Promise<void>, generateImageFn?: GenerateImageFunction): Promise<FunctionCall[]>;
@@ -1,148 +0,0 @@
1
- import fs from 'fs';
2
- import mime from 'mime-types';
3
- import { ModelType } from '../../ai-service/common-types.js';
4
- import { putSystemMessage } from '../../main/common/content-bus.js';
5
- import { executeStepGenerateImage } from './step-generate-image.js';
6
- import { executeStepVerifyPatch } from './step-verify-patch.js';
7
- import { getPartialPromptTemplate } from '../static-prompts.js';
8
- import { getSourceCode } from '../../files/read-files.js';
9
- import { abortController } from '../../main/common/abort-controller.js';
10
- /**
11
- * Processes file updates from the codegen summary.
12
- * This is the second part of the original executeStepCodegenSummary function.
13
- * It handles processing individual file updates, image generation, and patch verification.
14
- */
15
- export async function processFileUpdates(generateContentFn, prompt, functionDefs, options, codegenSummaryRequest, waitIfPaused = () => Promise.resolve(), generateImageFn) {
16
- const result = [];
17
- if (!Array.isArray(codegenSummaryRequest.args?.fileUpdates)) {
18
- putSystemMessage('No file updates found in codegen summary');
19
- return result;
20
- }
21
- // Ensure updates are sorted by dependencies
22
- // This is a simple topological sort-like approach to resolve dependencies
23
- const resolvedUpdateIds = new Set();
24
- const resolvedUpdates = [];
25
- const pendingActions = [...codegenSummaryRequest.args.fileUpdates];
26
- let iterations = 0;
27
- while (pendingActions.length > 0) {
28
- if (iterations++ > codegenSummaryRequest.args.fileUpdates.length) {
29
- putSystemMessage('Circular dependency detected in file updates');
30
- resolvedUpdates.push(...pendingActions); // Add remaining pending actions to resolved updates
31
- break; // Prevent infinite loop in case of circular dependencies
32
- }
33
- const currentAction = pendingActions.shift();
34
- if (!currentAction)
35
- continue;
36
- if (resolvedUpdateIds.has(currentAction.id))
37
- continue;
38
- if (!currentAction.dependsOn?.length || currentAction.dependsOn.every((dep) => resolvedUpdateIds.has(dep))) {
39
- resolvedUpdateIds.add(currentAction.id);
40
- resolvedUpdates.push(currentAction);
41
- }
42
- else {
43
- // If dependencies are not resolved, re-add to the end of the queue
44
- pendingActions.push(currentAction);
45
- }
46
- }
47
- for (const file of resolvedUpdates) {
48
- try {
49
- const fileResult = await processFileUpdate(file, generateContentFn, generateImageFn, prompt, functionDefs, options, waitIfPaused);
50
- if (fileResult.success) {
51
- result.push(...fileResult.functionCalls);
52
- }
53
- else {
54
- putSystemMessage(`Failed to process update for ${file.filePath}`, { error: fileResult.error });
55
- }
56
- if (abortController?.signal.aborted) {
57
- putSystemMessage('Code generation aborted');
58
- break;
59
- }
60
- }
61
- catch (error) {
62
- putSystemMessage(`Unexpected error processing update for ${file.filePath}`, { error });
63
- }
64
- }
65
- return result;
66
- }
67
- /**
68
- * Processes a single file update, handling image generation and patch verification.
69
- * @returns Object containing success status and function calls or error
70
- */
71
- async function processFileUpdate(file, generateContentFn, generateImageFn, prompt, functionDefs, options, waitIfPaused) {
72
- try {
73
- putSystemMessage('Collecting partial update for: ' + file.filePath + ' using tool: ' + file.updateToolName, file);
74
- // Check if execution is paused before proceeding
75
- await waitIfPaused();
76
- // Update prompt with file-specific information
77
- if (prompt.slice(-1)[0].type === 'user') {
78
- prompt.push({ type: 'assistant', text: 'What would you like me to do next?' });
79
- }
80
- prompt.push({ type: 'user', text: getPartialPromptTemplate(file) });
81
- // Handle image assets if vision is enabled
82
- if (options.vision && file.contextImageAssets) {
83
- prompt.slice(-1)[0].images = file.contextImageAssets.map((path) => ({
84
- path,
85
- base64url: fs.readFileSync(path, 'base64'),
86
- mediaType: (mime.lookup(path) || ''),
87
- }));
88
- }
89
- // Prepare and execute content generation request
90
- const partialRequest = [
91
- prompt,
92
- {
93
- functionDefs,
94
- requiredFunctionName: file.updateToolName,
95
- temperature: file.temperature ?? options.temperature,
96
- modelType: file.cheap ? ModelType.CHEAP : ModelType.DEFAULT,
97
- expectedResponseType: { text: false, functionCall: true, media: false },
98
- },
99
- options,
100
- ];
101
- let partialResult = (await generateContentFn(...partialRequest))
102
- .filter((item) => item.type === 'functionCall')
103
- .map((item) => item.functionCall);
104
- // Verify patch file operations
105
- const patchFileCall = partialResult.find((call) => call.name === 'patchFile');
106
- if (patchFileCall) {
107
- partialResult = [
108
- await executeStepVerifyPatch(patchFileCall.args, generateContentFn, prompt, functionDefs, file.temperature ?? options.temperature, file.cheap === true, options),
109
- ];
110
- }
111
- // Add current content
112
- const fileUpdateResult = partialResult[0];
113
- if (fileUpdateResult.args) {
114
- const fileSource = getSourceCode({ filterPaths: [file.filePath], forceAll: true }, options)[file.filePath];
115
- if (fileSource && 'content' in fileSource) {
116
- fileUpdateResult.args.oldContent = fileSource.content;
117
- }
118
- }
119
- putSystemMessage('Received partial update', fileUpdateResult);
120
- // Handle image generation requests
121
- const generateImageCall = partialResult.find((call) => call.name === 'generateImage');
122
- if (generateImageCall && generateImageFn) {
123
- partialResult.push(await executeStepGenerateImage(generateImageFn, generateImageCall));
124
- }
125
- else if (generateImageCall) {
126
- console.warn('Image generation requested but generateImageFn not provided');
127
- }
128
- // Update prompt with results
129
- prompt.push({ type: 'assistant', functionCalls: partialResult }, {
130
- type: 'user',
131
- // TODO: Not always true
132
- text: `Update ${file.id} applied.`,
133
- functionResponses: partialResult.map((call) => ({ name: call.name, call_id: call.id })),
134
- });
135
- return {
136
- success: true,
137
- functionCalls: partialResult,
138
- };
139
- }
140
- catch (error) {
141
- return {
142
- success: false,
143
- functionCalls: [],
144
- error: error instanceof Error ? error : new Error(String(error)),
145
- };
146
- }
147
- }
148
- //# sourceMappingURL=step-process-file-updates.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"step-process-file-updates.js","sourceRoot":"","sources":["../../../src/prompt/steps/step-process-file-updates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,YAAY,CAAC;AAO9B,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAE7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,C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CAAC,CAAC;SACjE,CAAC;IACJ,CAAC;AACH,CAAC"}
@@ -1,10 +0,0 @@
1
- import { GenerateContentFunction } from '../../ai-service/common-types.js';
2
- import { PromptItem } from '../../ai-service/common-types.js';
3
- import { CodegenOptions } from '../../main/codegen-types.js';
4
- import { FileId, SourceCodeMap } from '../../files/source-code-types.js';
5
- export declare function getSummarizationPrefix(items: {
6
- path: string;
7
- content: string | null;
8
- fileId: FileId;
9
- }[], allFilePaths: string[]): PromptItem[];
10
- export declare function summarizeSourceCode(generateContentFn: GenerateContentFunction, sourceCode: SourceCodeMap, options: CodegenOptions): Promise<void>;