@henlii/pidance 0.1.3 → 0.2.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 (271) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-path-routes-manifest.json +12 -7
  3. package/.next/build-manifest.json +2 -2
  4. package/.next/prerender-manifest.json +3 -3
  5. package/.next/required-server-files.json +6 -2
  6. package/.next/routes-manifest.json +36 -6
  7. package/.next/server/app/_global-error/page.js +3 -3
  8. package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  9. package/.next/server/app/_global-error.html +1 -1
  10. package/.next/server/app/_global-error.rsc +1 -1
  11. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  12. package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  13. package/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  14. package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  15. package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  16. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  17. package/.next/server/app/_not-found/page.js +2 -2
  18. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  19. package/.next/server/app/_not-found.html +1 -1
  20. package/.next/server/app/_not-found.rsc +3 -3
  21. package/.next/server/app/_not-found.segments/_full.segment.rsc +3 -3
  22. package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  23. package/.next/server/app/_not-found.segments/_index.segment.rsc +3 -3
  24. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  25. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  26. package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  27. package/.next/server/app/api/about/route.js +1 -1
  28. package/.next/server/app/api/agent/[id]/bash-output/route.js +1 -1
  29. package/.next/server/app/api/agent/[id]/events/route.js +2 -2
  30. package/.next/server/app/api/agent/[id]/route.js +1 -1
  31. package/.next/server/app/api/agent/new/route.js +1 -1
  32. package/.next/server/app/api/agent/running/events/route.js +2 -2
  33. package/.next/server/app/api/agent/running/route.js +1 -1
  34. package/.next/server/app/api/agent-settings/route.js +2 -2
  35. package/.next/server/app/api/attachments/route.js +1 -1
  36. package/.next/server/app/api/auth/all-providers/route.js +1 -1
  37. package/.next/server/app/api/auth/api-key/[provider]/route.js +1 -1
  38. package/.next/server/app/api/auth/login/[provider]/route.js +2 -2
  39. package/.next/server/app/api/auth/logout/[provider]/route.js +1 -1
  40. package/.next/server/app/api/auth/providers/route.js +1 -1
  41. package/.next/server/app/api/auth/ui-session/route.js +1 -1
  42. package/.next/server/app/api/cwd/browse/route.js +1 -1
  43. package/.next/server/app/api/cwd/validate/route.js +1 -1
  44. package/.next/server/app/api/default-cwd/route.js +1 -1
  45. package/.next/server/app/api/file-index/route.js +1 -1
  46. package/.next/server/app/api/files/[...path]/route.js +5 -5
  47. package/.next/server/app/api/git/diff/route.js +1 -1
  48. package/.next/server/app/api/git/status/route.js +1 -1
  49. package/.next/server/app/api/home/route.js +1 -1
  50. package/.next/server/app/api/models/route.js +1 -1
  51. package/.next/server/app/api/models-config/raw/route.js +1 -0
  52. package/.next/server/app/api/models-config/raw/route_client-reference-manifest.js +1 -0
  53. package/.next/server/app/api/models-config/route.js +1 -1
  54. package/.next/server/app/api/models-config/test/route.js +1 -1
  55. package/.next/server/app/api/plugins/route.js +1 -2
  56. package/.next/server/app/api/plugins/search/route.js +1 -0
  57. package/.next/server/app/api/{runtime/switch → plugins/search}/route_client-reference-manifest.js +1 -1
  58. package/.next/server/app/api/plugins/updates/route.js +1 -0
  59. package/.next/server/app/api/plugins/updates/route_client-reference-manifest.js +1 -0
  60. package/.next/server/app/api/preferences/route.js +1 -0
  61. package/.next/server/app/api/preferences/route_client-reference-manifest.js +1 -0
  62. package/.next/server/app/api/project-assets/route.js +13 -0
  63. package/.next/server/app/api/project-assets/route_client-reference-manifest.js +1 -0
  64. package/.next/server/app/api/prompts/route.js +1 -0
  65. package/.next/server/app/api/{runtime → prompts}/route_client-reference-manifest.js +1 -1
  66. package/.next/server/app/api/sessions/[id]/archive/route.js +1 -1
  67. package/.next/server/app/api/sessions/[id]/auto-name/route.js +4 -4
  68. package/.next/server/app/api/sessions/[id]/command-entry/route.js +1 -1
  69. package/.next/server/app/api/sessions/[id]/context/route.js +1 -1
  70. package/.next/server/app/api/sessions/[id]/entries/[entryId]/thinking/route.js +1 -1
  71. package/.next/server/app/api/sessions/[id]/export/route.js +17 -17
  72. package/.next/server/app/api/sessions/[id]/info/route.js +1 -1
  73. package/.next/server/app/api/sessions/[id]/route.js +1 -1
  74. package/.next/server/app/api/sessions/[id]/state/route.js +1 -1
  75. package/.next/server/app/api/sessions/[id]/tool-results/[toolCallId]/route.js +1 -1
  76. package/.next/server/app/api/sessions/route.js +1 -1
  77. package/.next/server/app/api/sessions/search/route.js +3 -3
  78. package/.next/server/app/api/settings/raw/route.js +2 -0
  79. package/.next/server/app/api/settings/raw/route_client-reference-manifest.js +1 -0
  80. package/.next/server/app/api/skills/check/route.js +1 -1
  81. package/.next/server/app/api/skills/install/route.js +1 -1
  82. package/.next/server/app/api/skills/route.js +2 -2
  83. package/.next/server/app/api/skills/search/route.js +1 -1
  84. package/.next/server/app/api/skills/update/route.js +1 -1
  85. package/.next/server/app/api/subagent-runs/route.js +1 -1
  86. package/.next/server/app/api/update/apply/route.js +4 -2
  87. package/.next/server/app/api/update/check/route.js +2 -2
  88. package/.next/server/app/api/worktrees/route.js +1 -1
  89. package/.next/server/app/icon.png/route.js +1 -1
  90. package/.next/server/app/index.html +1 -1
  91. package/.next/server/app/index.rsc +5 -5
  92. package/.next/server/app/index.segments/__PAGE__.segment.rsc +3 -3
  93. package/.next/server/app/index.segments/_full.segment.rsc +5 -5
  94. package/.next/server/app/index.segments/_head.segment.rsc +1 -1
  95. package/.next/server/app/index.segments/_index.segment.rsc +3 -3
  96. package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  97. package/.next/server/app/page.js +6 -6
  98. package/.next/server/app/page_client-reference-manifest.js +1 -1
  99. package/.next/server/app-paths-manifest.json +12 -7
  100. package/.next/server/chunks/188.js +1 -1
  101. package/.next/server/chunks/2325.js +1 -1
  102. package/.next/server/chunks/3960.js +1 -1
  103. package/.next/server/chunks/5319.js +1 -1
  104. package/.next/server/chunks/5582.js +1 -0
  105. package/.next/server/chunks/6192.js +1 -1
  106. package/.next/server/chunks/7561.js +1 -1
  107. package/.next/server/chunks/7594.js +1 -0
  108. package/.next/server/chunks/8359.js +2 -0
  109. package/.next/server/chunks/981.js +1 -1
  110. package/.next/server/chunks/9874.js +1 -1
  111. package/.next/server/instrumentation.js +1 -1
  112. package/.next/server/middleware-build-manifest.js +1 -1
  113. package/.next/server/middleware.js +2 -2
  114. package/.next/server/pages/404.html +1 -1
  115. package/.next/server/pages/500.html +1 -1
  116. package/.next/server/server-reference-manifest.json +1 -1
  117. package/.next/server/webpack-runtime.js +1 -1
  118. package/.next/static/chunks/1-71e25539dfd4d39d.js +1 -0
  119. package/.next/static/chunks/9780-f1bf37996f7894e3.js +1 -0
  120. package/.next/static/chunks/app/_global-error/page-c74291295bcd24a9.js +1 -0
  121. package/.next/static/chunks/app/api/about/route-c74291295bcd24a9.js +1 -0
  122. package/.next/static/chunks/app/api/agent/[id]/bash-output/route-c74291295bcd24a9.js +1 -0
  123. package/.next/static/chunks/app/api/agent/[id]/events/route-c74291295bcd24a9.js +1 -0
  124. package/.next/static/chunks/app/api/agent/[id]/route-c74291295bcd24a9.js +1 -0
  125. package/.next/static/chunks/app/api/agent/new/route-c74291295bcd24a9.js +1 -0
  126. package/.next/static/chunks/app/api/agent/running/events/route-c74291295bcd24a9.js +1 -0
  127. package/.next/static/chunks/app/api/agent/running/route-c74291295bcd24a9.js +1 -0
  128. package/.next/static/chunks/app/api/agent-settings/route-c74291295bcd24a9.js +1 -0
  129. package/.next/static/chunks/app/api/attachments/route-c74291295bcd24a9.js +1 -0
  130. package/.next/static/chunks/app/api/auth/all-providers/route-c74291295bcd24a9.js +1 -0
  131. package/.next/static/chunks/app/api/auth/api-key/[provider]/route-c74291295bcd24a9.js +1 -0
  132. package/.next/static/chunks/app/api/auth/login/[provider]/route-c74291295bcd24a9.js +1 -0
  133. package/.next/static/chunks/app/api/auth/logout/[provider]/route-c74291295bcd24a9.js +1 -0
  134. package/.next/static/chunks/app/api/auth/providers/route-c74291295bcd24a9.js +1 -0
  135. package/.next/static/chunks/app/api/auth/ui-session/route-c74291295bcd24a9.js +1 -0
  136. package/.next/static/chunks/app/api/cwd/browse/route-c74291295bcd24a9.js +1 -0
  137. package/.next/static/chunks/app/api/cwd/validate/route-c74291295bcd24a9.js +1 -0
  138. package/.next/static/chunks/app/api/default-cwd/route-c74291295bcd24a9.js +1 -0
  139. package/.next/static/chunks/app/api/file-index/route-c74291295bcd24a9.js +1 -0
  140. package/.next/static/chunks/app/api/files/[...path]/route-c74291295bcd24a9.js +1 -0
  141. package/.next/static/chunks/app/api/git/diff/route-c74291295bcd24a9.js +1 -0
  142. package/.next/static/chunks/app/api/git/status/route-c74291295bcd24a9.js +1 -0
  143. package/.next/static/chunks/app/api/home/route-c74291295bcd24a9.js +1 -0
  144. package/.next/static/chunks/app/api/models/route-c74291295bcd24a9.js +1 -0
  145. package/.next/static/chunks/app/api/models-config/raw/route-c74291295bcd24a9.js +1 -0
  146. package/.next/static/chunks/app/api/models-config/route-c74291295bcd24a9.js +1 -0
  147. package/.next/static/chunks/app/api/models-config/test/route-c74291295bcd24a9.js +1 -0
  148. package/.next/static/chunks/app/api/plugins/route-c74291295bcd24a9.js +1 -0
  149. package/.next/static/chunks/app/api/plugins/search/route-c74291295bcd24a9.js +1 -0
  150. package/.next/static/chunks/app/api/plugins/updates/route-c74291295bcd24a9.js +1 -0
  151. package/.next/static/chunks/app/api/preferences/route-c74291295bcd24a9.js +1 -0
  152. package/.next/static/chunks/app/api/project-assets/route-c74291295bcd24a9.js +1 -0
  153. package/.next/static/chunks/app/api/prompts/route-c74291295bcd24a9.js +1 -0
  154. package/.next/static/chunks/app/api/sessions/[id]/archive/route-c74291295bcd24a9.js +1 -0
  155. package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-c74291295bcd24a9.js +1 -0
  156. package/.next/static/chunks/app/api/sessions/[id]/command-entry/route-c74291295bcd24a9.js +1 -0
  157. package/.next/static/chunks/app/api/sessions/[id]/context/route-c74291295bcd24a9.js +1 -0
  158. package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-c74291295bcd24a9.js +1 -0
  159. package/.next/static/chunks/app/api/sessions/[id]/export/route-c74291295bcd24a9.js +1 -0
  160. package/.next/static/chunks/app/api/sessions/[id]/info/route-c74291295bcd24a9.js +1 -0
  161. package/.next/static/chunks/app/api/sessions/[id]/route-c74291295bcd24a9.js +1 -0
  162. package/.next/static/chunks/app/api/sessions/[id]/state/route-c74291295bcd24a9.js +1 -0
  163. package/.next/static/chunks/app/api/sessions/[id]/tool-results/[toolCallId]/route-c74291295bcd24a9.js +1 -0
  164. package/.next/static/chunks/app/api/sessions/route-c74291295bcd24a9.js +1 -0
  165. package/.next/static/chunks/app/api/sessions/search/route-c74291295bcd24a9.js +1 -0
  166. package/.next/static/chunks/app/api/settings/raw/route-c74291295bcd24a9.js +1 -0
  167. package/.next/static/chunks/app/api/skills/check/route-c74291295bcd24a9.js +1 -0
  168. package/.next/static/chunks/app/api/skills/install/route-c74291295bcd24a9.js +1 -0
  169. package/.next/static/chunks/app/api/skills/route-c74291295bcd24a9.js +1 -0
  170. package/.next/static/chunks/app/api/skills/search/route-c74291295bcd24a9.js +1 -0
  171. package/.next/static/chunks/app/api/skills/update/route-c74291295bcd24a9.js +1 -0
  172. package/.next/static/chunks/app/api/subagent-runs/route-c74291295bcd24a9.js +1 -0
  173. package/.next/static/chunks/app/api/update/apply/route-c74291295bcd24a9.js +1 -0
  174. package/.next/static/chunks/app/api/update/check/route-c74291295bcd24a9.js +1 -0
  175. package/.next/static/chunks/app/api/worktrees/route-c74291295bcd24a9.js +1 -0
  176. package/.next/static/chunks/app/page-d30f26ad6c277d9a.js +25 -0
  177. package/.next/static/chunks/next/dist/client/components/builtin/app-error-c74291295bcd24a9.js +1 -0
  178. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-c74291295bcd24a9.js +1 -0
  179. package/.next/static/chunks/next/dist/client/components/builtin/not-found-c74291295bcd24a9.js +1 -0
  180. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-c74291295bcd24a9.js +1 -0
  181. package/.next/static/css/{08fde228db4b094f.css → 3f30d6a75b867678.css} +1 -1
  182. package/.next/static/q1mexPd6cs-PRLAbDhEQK/_buildManifest.js +1 -0
  183. package/README.en.md +25 -10
  184. package/README.md +26 -10
  185. package/README.zh-CN.md +32 -2
  186. package/bin/pidance.js +17 -0
  187. package/package.json +4 -6
  188. package/.next/server/app/api/runtime/route.js +0 -1
  189. package/.next/server/app/api/runtime/switch/route.js +0 -1
  190. package/.next/server/chunks/1734.js +0 -1
  191. package/.next/server/chunks/1965.js +0 -8
  192. package/.next/server/chunks/2537.js +0 -1
  193. package/.next/server/chunks/2817.js +0 -17
  194. package/.next/server/chunks/3115.js +0 -4
  195. package/.next/server/chunks/3504.js +0 -1
  196. package/.next/server/chunks/3533.js +0 -1293
  197. package/.next/server/chunks/3603.js +0 -1
  198. package/.next/server/chunks/3757.js +0 -1
  199. package/.next/server/chunks/3776.js +0 -1
  200. package/.next/server/chunks/4188.js +0 -1
  201. package/.next/server/chunks/443.js +0 -32
  202. package/.next/server/chunks/6454.js +0 -28
  203. package/.next/server/chunks/7075.js +0 -1
  204. package/.next/server/chunks/7129.js +0 -6
  205. package/.next/server/chunks/7527.js +0 -1
  206. package/.next/server/chunks/8213.js +0 -1
  207. package/.next/server/chunks/8875.js +0 -2
  208. package/.next/server/chunks/9071.js +0 -1
  209. package/.next/server/chunks/951.js +0 -8
  210. package/.next/server/chunks/9784.js +0 -2
  211. package/.next/server/chunks/9883.js +0 -2
  212. package/.next/static/Y_GKPks6Yv2rUhwcLuaB0/_buildManifest.js +0 -1
  213. package/.next/static/chunks/5531-66b1a21ff1c52081.js +0 -1
  214. package/.next/static/chunks/9780-3a70190d23b25b10.js +0 -1
  215. package/.next/static/chunks/app/_global-error/page-81852e4fa8c48c17.js +0 -1
  216. package/.next/static/chunks/app/api/about/route-81852e4fa8c48c17.js +0 -1
  217. package/.next/static/chunks/app/api/agent/[id]/bash-output/route-81852e4fa8c48c17.js +0 -1
  218. package/.next/static/chunks/app/api/agent/[id]/events/route-81852e4fa8c48c17.js +0 -1
  219. package/.next/static/chunks/app/api/agent/[id]/route-81852e4fa8c48c17.js +0 -1
  220. package/.next/static/chunks/app/api/agent/new/route-81852e4fa8c48c17.js +0 -1
  221. package/.next/static/chunks/app/api/agent/running/events/route-81852e4fa8c48c17.js +0 -1
  222. package/.next/static/chunks/app/api/agent/running/route-81852e4fa8c48c17.js +0 -1
  223. package/.next/static/chunks/app/api/agent-settings/route-81852e4fa8c48c17.js +0 -1
  224. package/.next/static/chunks/app/api/attachments/route-81852e4fa8c48c17.js +0 -1
  225. package/.next/static/chunks/app/api/auth/all-providers/route-81852e4fa8c48c17.js +0 -1
  226. package/.next/static/chunks/app/api/auth/api-key/[provider]/route-81852e4fa8c48c17.js +0 -1
  227. package/.next/static/chunks/app/api/auth/login/[provider]/route-81852e4fa8c48c17.js +0 -1
  228. package/.next/static/chunks/app/api/auth/logout/[provider]/route-81852e4fa8c48c17.js +0 -1
  229. package/.next/static/chunks/app/api/auth/providers/route-81852e4fa8c48c17.js +0 -1
  230. package/.next/static/chunks/app/api/auth/ui-session/route-81852e4fa8c48c17.js +0 -1
  231. package/.next/static/chunks/app/api/cwd/browse/route-81852e4fa8c48c17.js +0 -1
  232. package/.next/static/chunks/app/api/cwd/validate/route-81852e4fa8c48c17.js +0 -1
  233. package/.next/static/chunks/app/api/default-cwd/route-81852e4fa8c48c17.js +0 -1
  234. package/.next/static/chunks/app/api/file-index/route-81852e4fa8c48c17.js +0 -1
  235. package/.next/static/chunks/app/api/files/[...path]/route-81852e4fa8c48c17.js +0 -1
  236. package/.next/static/chunks/app/api/git/diff/route-81852e4fa8c48c17.js +0 -1
  237. package/.next/static/chunks/app/api/git/status/route-81852e4fa8c48c17.js +0 -1
  238. package/.next/static/chunks/app/api/home/route-81852e4fa8c48c17.js +0 -1
  239. package/.next/static/chunks/app/api/models/route-81852e4fa8c48c17.js +0 -1
  240. package/.next/static/chunks/app/api/models-config/route-81852e4fa8c48c17.js +0 -1
  241. package/.next/static/chunks/app/api/models-config/test/route-81852e4fa8c48c17.js +0 -1
  242. package/.next/static/chunks/app/api/plugins/route-81852e4fa8c48c17.js +0 -1
  243. package/.next/static/chunks/app/api/runtime/route-81852e4fa8c48c17.js +0 -1
  244. package/.next/static/chunks/app/api/runtime/switch/route-81852e4fa8c48c17.js +0 -1
  245. package/.next/static/chunks/app/api/sessions/[id]/archive/route-81852e4fa8c48c17.js +0 -1
  246. package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-81852e4fa8c48c17.js +0 -1
  247. package/.next/static/chunks/app/api/sessions/[id]/command-entry/route-81852e4fa8c48c17.js +0 -1
  248. package/.next/static/chunks/app/api/sessions/[id]/context/route-81852e4fa8c48c17.js +0 -1
  249. package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-81852e4fa8c48c17.js +0 -1
  250. package/.next/static/chunks/app/api/sessions/[id]/export/route-81852e4fa8c48c17.js +0 -1
  251. package/.next/static/chunks/app/api/sessions/[id]/info/route-81852e4fa8c48c17.js +0 -1
  252. package/.next/static/chunks/app/api/sessions/[id]/route-81852e4fa8c48c17.js +0 -1
  253. package/.next/static/chunks/app/api/sessions/[id]/state/route-81852e4fa8c48c17.js +0 -1
  254. package/.next/static/chunks/app/api/sessions/[id]/tool-results/[toolCallId]/route-81852e4fa8c48c17.js +0 -1
  255. package/.next/static/chunks/app/api/sessions/route-81852e4fa8c48c17.js +0 -1
  256. package/.next/static/chunks/app/api/sessions/search/route-81852e4fa8c48c17.js +0 -1
  257. package/.next/static/chunks/app/api/skills/check/route-81852e4fa8c48c17.js +0 -1
  258. package/.next/static/chunks/app/api/skills/install/route-81852e4fa8c48c17.js +0 -1
  259. package/.next/static/chunks/app/api/skills/route-81852e4fa8c48c17.js +0 -1
  260. package/.next/static/chunks/app/api/skills/search/route-81852e4fa8c48c17.js +0 -1
  261. package/.next/static/chunks/app/api/skills/update/route-81852e4fa8c48c17.js +0 -1
  262. package/.next/static/chunks/app/api/subagent-runs/route-81852e4fa8c48c17.js +0 -1
  263. package/.next/static/chunks/app/api/update/apply/route-81852e4fa8c48c17.js +0 -1
  264. package/.next/static/chunks/app/api/update/check/route-81852e4fa8c48c17.js +0 -1
  265. package/.next/static/chunks/app/api/worktrees/route-81852e4fa8c48c17.js +0 -1
  266. package/.next/static/chunks/app/page-36437a35f2251063.js +0 -25
  267. package/.next/static/chunks/next/dist/client/components/builtin/app-error-81852e4fa8c48c17.js +0 -1
  268. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-81852e4fa8c48c17.js +0 -1
  269. package/.next/static/chunks/next/dist/client/components/builtin/not-found-81852e4fa8c48c17.js +0 -1
  270. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-81852e4fa8c48c17.js +0 -1
  271. /package/.next/static/{Y_GKPks6Yv2rUhwcLuaB0 → q1mexPd6cs-PRLAbDhEQK}/_ssgManifest.js +0 -0
@@ -1,4 +0,0 @@
1
- exports.id=3115,exports.ids=[3115],exports.modules={12080:function(a,b,c){"use strict";var d=this&&this.__createBinding||(Object.create?function(a,b,c,d){void 0===d&&(d=c);var e=Object.getOwnPropertyDescriptor(b,c);(!e||("get"in e?!b.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return b[c]}}),Object.defineProperty(a,d,e)}:function(a,b,c,d){void 0===d&&(d=c),a[d]=b[c]}),e=this&&this.__setModuleDefault||(Object.create?function(a,b){Object.defineProperty(a,"default",{enumerable:!0,value:b})}:function(a,b){a.default=b}),f=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)"default"!==c&&Object.prototype.hasOwnProperty.call(a,c)&&d(b,a,c);return e(b,a),b},g=this&&this.__exportStar||function(a,b){for(var c in a)"default"===c||Object.prototype.hasOwnProperty.call(b,c)||d(b,a,c)};Object.defineProperty(b,"__esModule",{value:!0}),b.Agent=void 0;let h=f(c(91645)),i=f(c(81630)),j=c(55591);g(c(27357),b);let k=Symbol("AgentBaseInternalState");class l extends i.Agent{constructor(a){super(a),this[k]={}}isSecureEndpoint(a){if(a){if("boolean"==typeof a.secureEndpoint)return a.secureEndpoint;if("string"==typeof a.protocol)return"https:"===a.protocol}let{stack:b}=Error();return"string"==typeof b&&b.split("\n").some(a=>-1!==a.indexOf("(https.js:")||-1!==a.indexOf("node:https:"))}incrementSockets(a){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[a]||(this.sockets[a]=[]);let b=new h.Socket({writable:!1});return this.sockets[a].push(b),this.totalSocketCount++,b}decrementSockets(a,b){if(!this.sockets[a]||null===b)return;let c=this.sockets[a],d=c.indexOf(b);-1!==d&&(c.splice(d,1),this.totalSocketCount--,0===c.length&&delete this.sockets[a])}getName(a){return this.isSecureEndpoint(a)?j.Agent.prototype.getName.call(this,a):super.getName(a)}createSocket(a,b,c){let d={...b,secureEndpoint:this.isSecureEndpoint(b)},e=this.getName(d),f=this.incrementSockets(e);Promise.resolve().then(()=>this.connect(a,d)).then(g=>{if(this.decrementSockets(e,f),g instanceof i.Agent)try{return g.addRequest(a,d)}catch(a){return c(a)}this[k].currentSocket=g,super.createSocket(a,b,c)},a=>{this.decrementSockets(e,f),c(a)})}createConnection(){let a=this[k].currentSocket;if(this[k].currentSocket=void 0,!a)throw Error("No socket was returned in the `connect()` function");return a}get defaultPort(){return this[k].defaultPort??("https:"===this.protocol?443:80)}set defaultPort(a){this[k]&&(this[k].defaultPort=a)}get protocol(){return this[k].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(a){this[k]&&(this[k].protocol=a)}}b.Agent=l},23115:function(a,b,c){"use strict";var d=this&&this.__createBinding||(Object.create?function(a,b,c,d){void 0===d&&(d=c);var e=Object.getOwnPropertyDescriptor(b,c);(!e||("get"in e?!b.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return b[c]}}),Object.defineProperty(a,d,e)}:function(a,b,c,d){void 0===d&&(d=c),a[d]=b[c]}),e=this&&this.__setModuleDefault||(Object.create?function(a,b){Object.defineProperty(a,"default",{enumerable:!0,value:b})}:function(a,b){a.default=b}),f=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)"default"!==c&&Object.prototype.hasOwnProperty.call(a,c)&&d(b,a,c);return e(b,a),b},g=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0}),b.HttpsProxyAgent=void 0;let h=f(c(91645)),i=f(c(34631)),j=g(c(12412)),k=g(c(82080)),l=c(12080),m=c(1932),n=c(51893),o=(0,k.default)("https-proxy-agent"),p=a=>void 0===a.servername&&a.host&&!h.isIP(a.host)?{...a,servername:a.host}:a;class q extends l.Agent{constructor(a,b){super(b),this.options={path:void 0},this.proxy="string"==typeof a?new m.URL(a):a,this.proxyHeaders=b?.headers??{},o("Creating new HttpsProxyAgent instance: %o",this.proxy.href);const c=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),d=this.proxy.port?parseInt(this.proxy.port,10):"https:"===this.proxy.protocol?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...b?s(b,"headers"):null,host:c,port:d}}async connect(a,b){let c,{proxy:d}=this;if(!b.host)throw TypeError('No "host" provided');"https:"===d.protocol?(o("Creating `tls.Socket`: %o",this.connectOpts),c=i.connect(p(this.connectOpts))):(o("Creating `net.Socket`: %o",this.connectOpts),c=h.connect(this.connectOpts));let e="function"==typeof this.proxyHeaders?this.proxyHeaders():{...this.proxyHeaders},f=h.isIPv6(b.host)?`[${b.host}]`:b.host,g=`CONNECT ${f}:${b.port} HTTP/1.1\r
2
- `;if(d.username||d.password){let a=`${decodeURIComponent(d.username)}:${decodeURIComponent(d.password)}`;e["Proxy-Authorization"]=`Basic ${Buffer.from(a).toString("base64")}`}for(let a of(e.Host=`${f}:${b.port}`,e["Proxy-Connection"]||(e["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close"),Object.keys(e)))g+=`${a}: ${e[a]}\r
3
- `;let k=(0,n.parseProxyResponse)(c);c.write(`${g}\r
4
- `);let{connect:l,buffered:m}=await k;if(a.emit("proxyConnect",l),this.emit("proxyConnect",l,a),200===l.statusCode)return(a.once("socket",r),b.secureEndpoint)?(o("Upgrading socket connection to TLS"),i.connect({...s(p(b),"host","path","port"),socket:c})):c;c.destroy();let q=new h.Socket({writable:!1});return q.readable=!0,a.once("socket",a=>{o("Replaying proxy buffer for failed request"),(0,j.default)(a.listenerCount("data")>0),a.push(m),a.push(null)}),q}}function r(a){a.resume()}function s(a,...b){let c,d={};for(c in a)b.includes(c)||(d[c]=a[c]);return d}q.protocols=["http","https"],b.HttpsProxyAgent=q},27357:function(a,b,c){"use strict";var d=this&&this.__createBinding||(Object.create?function(a,b,c,d){void 0===d&&(d=c);var e=Object.getOwnPropertyDescriptor(b,c);(!e||("get"in e?!b.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return b[c]}}),Object.defineProperty(a,d,e)}:function(a,b,c,d){void 0===d&&(d=c),a[d]=b[c]}),e=this&&this.__setModuleDefault||(Object.create?function(a,b){Object.defineProperty(a,"default",{enumerable:!0,value:b})}:function(a,b){a.default=b}),f=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)"default"!==c&&Object.prototype.hasOwnProperty.call(a,c)&&d(b,a,c);return e(b,a),b};Object.defineProperty(b,"__esModule",{value:!0}),b.req=b.json=b.toBuffer=void 0;let g=f(c(81630)),h=f(c(55591));async function i(a){let b=0,c=[];for await(let d of a)b+=d.length,c.push(d);return Buffer.concat(c,b)}b.toBuffer=i,b.json=async function(a){let b=(await i(a)).toString("utf8");try{return JSON.parse(b)}catch(a){throw a.message+=` (input: ${b})`,a}},b.req=function(a,b={}){let c=(("string"==typeof a?a:a.href).startsWith("https:")?h:g).request(a,b),d=new Promise((a,b)=>{c.once("response",a).once("error",b).end()});return c.then=d.then.bind(d),c}},41892:(a,b,c)=>{"use strict";let d,e=c(21820),f=c(83997),g=c(92535),{env:h}=process;function i(a){return 0!==a&&{level:a,hasBasic:!0,has256:a>=2,has16m:a>=3}}function j(a,b){if(0===d)return 0;if(g("color=16m")||g("color=full")||g("color=truecolor"))return 3;if(g("color=256"))return 2;if(a&&!b&&void 0===d)return 0;let c=d||0;if("dumb"===h.TERM)return c;if("win32"===process.platform){let a=e.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in h)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(a=>a in h)||"codeship"===h.CI_NAME?1:c;if("TEAMCITY_VERSION"in h)return+!!/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(h.TEAMCITY_VERSION);if("truecolor"===h.COLORTERM)return 3;if("TERM_PROGRAM"in h){let a=parseInt((h.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(h.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(h.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(h.TERM)||"COLORTERM"in h?1:c}g("no-color")||g("no-colors")||g("color=false")||g("color=never")?d=0:(g("color")||g("colors")||g("color=true")||g("color=always"))&&(d=1),"FORCE_COLOR"in h&&(d="true"===h.FORCE_COLOR?1:"false"===h.FORCE_COLOR?0:0===h.FORCE_COLOR.length?1:Math.min(parseInt(h.FORCE_COLOR,10),3)),a.exports={supportsColor:function(a){return i(j(a,a&&a.isTTY))},stdout:i(j(!0,f.isatty(1))),stderr:i(j(!0,f.isatty(2)))}},46052:(a,b,c)=>{let d;b.formatArgs=function(b){if(b[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+b[0]+(this.useColors?"%c ":" ")+"+"+a.exports.humanize(this.diff),!this.useColors)return;let c="color: "+this.color;b.splice(1,0,c,"color: inherit");let d=0,e=0;b[0].replace(/%[a-zA-Z%]/g,a=>{"%%"!==a&&(d++,"%c"===a&&(e=d))}),b.splice(e,0,c)},b.save=function(a){try{a?b.storage.setItem("debug",a):b.storage.removeItem("debug")}catch(a){}},b.load=function(){let a;try{a=b.storage.getItem("debug")||b.storage.getItem("DEBUG")}catch(a){}return!a&&"u">typeof process&&"env"in process&&(a=process.env.DEBUG),a},b.useColors=function(){let a;return"u">typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("u">typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"u">typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"u">typeof navigator&&navigator.userAgent&&(a=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(a[1],10)>=31||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},b.storage=function(){try{return localStorage}catch(a){}}(),d=!1,b.destroy=()=>{d||(d=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))},b.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],b.log=console.debug||console.log||(()=>{}),a.exports=c(75935)(b);let{formatters:e}=a.exports;e.j=function(a){try{return JSON.stringify(a)}catch(a){return"[UnexpectedJSONParseError]: "+a.message}}},51893:function(a,b,c){"use strict";var d=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0}),b.parseProxyResponse=void 0;let e=(0,d(c(82080)).default)("https-proxy-agent:parse-proxy-response");b.parseProxyResponse=function(a){return new Promise((b,c)=>{let d=0,f=[];function g(){let i=a.read();i?function(i){f.push(i),d+=i.length;let j=Buffer.concat(f,d),k=j.indexOf("\r\n\r\n");if(-1===k){e("have not received end of HTTP headers yet..."),g();return}let l=j.slice(0,k).toString("ascii").split("\r\n"),m=l.shift();if(!m)return a.destroy(),c(Error("No header received from proxy CONNECT response"));let n=m.split(" "),o=+n[1],p=n.slice(2).join(" "),q={};for(let b of l){if(!b)continue;let d=b.indexOf(":");if(-1===d)return a.destroy(),c(Error(`Invalid header from proxy CONNECT response: "${b}"`));let e=b.slice(0,d).toLowerCase(),f=b.slice(d+1).trimStart(),g=q[e];"string"==typeof g?q[e]=[g,f]:Array.isArray(g)?g.push(f):q[e]=f}e("got proxy server response: %o %o",m,q),h(),b({connect:{statusCode:o,statusText:p,headers:q},buffered:j})}(i):a.once("readable",g)}function h(){a.removeListener("end",i),a.removeListener("error",j),a.removeListener("readable",g)}function i(){h(),e("onend"),c(Error("Proxy connection ended before receiving CONNECT response"))}function j(a){h(),e("onerror %o",a),c(a)}a.on("error",j),a.on("end",i),g()})}},56362:(a,b,c)=>{let d=c(83997),e=c(28354);b.init=function(a){a.inspectOpts={};let c=Object.keys(b.inspectOpts);for(let d=0;d<c.length;d++)a.inspectOpts[c[d]]=b.inspectOpts[c[d]]},b.log=function(...a){return process.stderr.write(e.formatWithOptions(b.inspectOpts,...a)+"\n")},b.formatArgs=function(c){let{namespace:d,useColors:e}=this;if(e){let b=this.color,e="\x1b[3"+(b<8?b:"8;5;"+b),f=` ${e};1m${d} \u001B[0m`;c[0]=f+c[0].split("\n").join("\n"+f),c.push(e+"m+"+a.exports.humanize(this.diff)+"\x1b[0m")}else c[0]=(b.inspectOpts.hideDate?"":new Date().toISOString()+" ")+d+" "+c[0]},b.save=function(a){a?process.env.DEBUG=a:delete process.env.DEBUG},b.load=function(){return process.env.DEBUG},b.useColors=function(){return"colors"in b.inspectOpts?!!b.inspectOpts.colors:d.isatty(process.stderr.fd)},b.destroy=e.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),b.colors=[6,2,3,4,5,1];try{let a=c(41892);a&&(a.stderr||a).level>=2&&(b.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(a){}b.inspectOpts=Object.keys(process.env).filter(a=>/^debug_/i.test(a)).reduce((a,b)=>{let c=b.substring(6).toLowerCase().replace(/_([a-z])/g,(a,b)=>b.toUpperCase()),d=process.env[b];return d=!!/^(yes|on|true|enabled)$/i.test(d)||!/^(no|off|false|disabled)$/i.test(d)&&("null"===d?null:Number(d)),a[c]=d,a},{}),a.exports=c(75935)(b);let{formatters:f}=a.exports;f.o=function(a){return this.inspectOpts.colors=this.useColors,e.inspect(a,this.inspectOpts).split("\n").map(a=>a.trim()).join(" ")},f.O=function(a){return this.inspectOpts.colors=this.useColors,e.inspect(a,this.inspectOpts)}},68454:a=>{function b(a,b,c,d){return Math.round(a/c)+" "+d+(b>=1.5*c?"s":"")}a.exports=function(a,c){c=c||{};var d,e,f,g,h=typeof a;if("string"===h&&a.length>0){var i=a;if(!((i=String(i)).length>100)){var j=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(i);if(j){var k=parseFloat(j[1]);switch((j[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*k;case"weeks":case"week":case"w":return 6048e5*k;case"days":case"day":case"d":return 864e5*k;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*k;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*k;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*k;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return k;default:break}}}return}if("number"===h&&isFinite(a)){return c.long?(e=Math.abs(d=a))>=864e5?b(d,e,864e5,"day"):e>=36e5?b(d,e,36e5,"hour"):e>=6e4?b(d,e,6e4,"minute"):e>=1e3?b(d,e,1e3,"second"):d+" ms":(g=Math.abs(f=a))>=864e5?Math.round(f/864e5)+"d":g>=36e5?Math.round(f/36e5)+"h":g>=6e4?Math.round(f/6e4)+"m":g>=1e3?Math.round(f/1e3)+"s":f+"ms"}throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(a))}},75935:(a,b,c)=>{a.exports=function(a){function b(a){let c,e,f,g=null;function h(...a){if(!h.enabled)return;let d=Number(new Date);h.diff=d-(c||d),h.prev=c,h.curr=d,c=d,a[0]=b.coerce(a[0]),"string"!=typeof a[0]&&a.unshift("%O");let e=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,(c,d)=>{if("%%"===c)return"%";e++;let f=b.formatters[d];if("function"==typeof f){let b=a[e];c=f.call(h,b),a.splice(e,1),e--}return c}),b.formatArgs.call(h,a),(h.log||b.log).apply(h,a)}return h.namespace=a,h.useColors=b.useColors(),h.color=b.selectColor(a),h.extend=d,h.destroy=b.destroy,Object.defineProperty(h,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==g?g:(e!==b.namespaces&&(e=b.namespaces,f=b.enabled(a)),f),set:a=>{g=a}}),"function"==typeof b.init&&b.init(h),h}function d(a,c){let d=b(this.namespace+(void 0===c?":":c)+a);return d.log=this.log,d}function e(a,b){let c=0,d=0,e=-1,f=0;for(;c<a.length;)if(d<b.length&&(b[d]===a[c]||"*"===b[d]))"*"===b[d]?(e=d,f=c):c++,d++;else{if(-1===e)return!1;d=e+1,c=++f}for(;d<b.length&&"*"===b[d];)d++;return d===b.length}return b.debug=b,b.default=b,b.coerce=function(a){return a instanceof Error?a.stack||a.message:a},b.disable=function(){let a=[...b.names,...b.skips.map(a=>"-"+a)].join(",");return b.enable(""),a},b.enable=function(a){for(let c of(b.save(a),b.namespaces=a,b.names=[],b.skips=[],("string"==typeof a?a:"").trim().replace(/\s+/g,",").split(",").filter(Boolean)))"-"===c[0]?b.skips.push(c.slice(1)):b.names.push(c)},b.enabled=function(a){for(let c of b.skips)if(e(a,c))return!1;for(let c of b.names)if(e(a,c))return!0;return!1},b.humanize=c(68454),b.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(a).forEach(c=>{b[c]=a[c]}),b.names=[],b.skips=[],b.formatters={},b.selectColor=function(a){let c=0;for(let b=0;b<a.length;b++)c=(c<<5)-c+a.charCodeAt(b)|0;return b.colors[Math.abs(c)%b.colors.length]},b.enable(b.load()),b}},82080:(a,b,c)=>{"u"<typeof process||"renderer"===process.type||process.__nwjs?a.exports=c(46052):a.exports=c(56362)},92535:a=>{"use strict";a.exports=(a,b=process.argv)=>{let c=a.startsWith("-")?"":1===a.length?"-":"--",d=b.indexOf(c+a),e=b.indexOf("--");return -1!==d&&(-1===e||d<e)}}};
@@ -1 +0,0 @@
1
- "use strict";exports.id=3504,exports.ids=[3504],exports.modules={93504:(a,b,c)=>{c.r(b),c.d(b,{generateImages:()=>h});var d=c(18089),e=c(8334),f=c(72893),g=c(88470);let h=async(a,b,c)=>{let h={api:a.api,provider:a.provider,model:a.id,output:[],stopReason:"stop",timestamp:Date.now()};try{var i,j,k,l,m,n;let e,o,p,q,r,s,t,u,v=c?.apiKey;if(!v)throw Error(`No API key for provider: ${a.provider}`);let w=(i=a,j=v,k=c?.headers,new d.Ay({apiKey:j,baseURL:i.baseUrl,dangerouslyAllowBrowser:!0,defaultHeaders:(0,f.m)({...i.headers,...k})})),x=(l=a,e=b.input.map(a=>"text"===a.type?{type:"text",text:(0,g.J)(a.text)}:{type:"image_url",image_url:{url:`data:${a.mimeType};base64,${a.data}`}}),{model:l.id,messages:[{role:"user",content:e}],stream:!1,modalities:l.output.includes("text")?["image","text"]:["image"]}),y=await c?.onPayload?.(x,a);void 0!==y&&(x=y);let z={...c?.signal?{signal:c.signal}:{},...c?.timeoutMs!==void 0?{timeout:c.timeoutMs}:{},maxRetries:c?.maxRetries??0},{data:A,response:B}=await w.chat.completions.create(x,z).withResponse();await c?.onResponse?.({status:B.status,headers:(0,f.j)(B.headers)},a);h.responseId=A.id,A.usage&&(m=A.usage,n=a,o=m.prompt_tokens||0,p=m.prompt_tokens_details?.cached_tokens||0,r=(q=m.prompt_tokens_details?.cache_write_tokens||0)>0?Math.max(0,p-q):p,s=Math.max(0,o-r-q),t=m.completion_tokens||0,(u={input:s,output:t,cacheRead:r,cacheWrite:q,totalTokens:s+t+r+q,cost:{input:n.cost.input/1e6*s,output:n.cost.output/1e6*t,cacheRead:n.cost.cacheRead/1e6*r,cacheWrite:n.cost.cacheWrite/1e6*q,total:0}}).cost.total=u.cost.input+u.cost.output+u.cost.cacheRead+u.cost.cacheWrite,h.usage=u);let C=A.choices[0];if(C){let a=C.message.content;for(let b of("string"==typeof a&&a.length>0&&h.output.push({type:"text",text:a}),C.message.images??[])){let a="string"==typeof b.image_url?b.image_url:b.image_url?.url;if(!a?.startsWith("data:"))continue;let c=a.match(/^data:([^;]+);base64,(.+)$/);c&&h.output.push({type:"image",mimeType:c[1],data:c[2]})}}return h}catch(a){return h.stopReason=c?.signal?.aborted?"aborted":"error",h.errorMessage=(0,e.lR)((0,e.Jo)(a)),h}}}};