abstra 3.23.10__py3-none-any.whl → 3.23.11__py3-none-any.whl

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 (209) hide show
  1. abstra/ai.py +6 -0
  2. {abstra-3.23.10.dist-info → abstra-3.23.11.dist-info}/METADATA +1 -1
  3. {abstra-3.23.10.dist-info → abstra-3.23.11.dist-info}/RECORD +167 -167
  4. abstra_internals/contracts_generated.py +5677 -4749
  5. abstra_internals/controllers/sdk/sdk_ai.py +6 -1
  6. abstra_internals/interface/sdk/ai.py +59 -4
  7. abstra_internals/repositories/execution_logs.py +3 -13
  8. abstra_statics/dist/assets/{AbstraButton.vue_vue_type_script_setup_true_lang.ab120641.js → AbstraButton.vue_vue_type_script_setup_true_lang.3fce0fbb.js} +2 -2
  9. abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.4fb1f88a.js +2 -0
  10. abstra_statics/dist/assets/{ApiKeys.f5b7fcec.js → ApiKeys.56b97ced.js} +2 -2
  11. abstra_statics/dist/assets/App.bd5ec032.js +2 -0
  12. abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.79524273.js +2 -0
  13. abstra_statics/dist/assets/BaseLayout.ac22ef55.js +2 -0
  14. abstra_statics/dist/assets/Billing.2c39d133.js +2 -0
  15. abstra_statics/dist/assets/{Breadcrumb.ef8bd191.js → Breadcrumb.f11a16d0.js} +2 -2
  16. abstra_statics/dist/assets/{Builds.4efe7d0f.js → Builds.2bf5dad8.js} +2 -2
  17. abstra_statics/dist/assets/{Card.897ad69d.js → Card.6caecaa4.js} +2 -2
  18. abstra_statics/dist/assets/{CircularLoading.ea5d27d2.js → CircularLoading.bc88c029.js} +2 -2
  19. abstra_statics/dist/assets/CloseCircleOutlined.12f63f77.js +2 -0
  20. abstra_statics/dist/assets/{ConnectorsView.b274568b.js → ConnectorsView.97a8c63b.js} +2 -2
  21. abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.48b29302.js +2 -0
  22. abstra_statics/dist/assets/ContentLayout.072b3790.js +2 -0
  23. abstra_statics/dist/assets/{CrudView.d06da8d4.js → CrudView.79588134.js} +2 -2
  24. abstra_statics/dist/assets/DocsButton.vue_vue_type_script_setup_true_lang.6566ff97.js +2 -0
  25. abstra_statics/dist/assets/{EditorLogin.22bca314.js → EditorLogin.e704b2ee.js} +2 -2
  26. abstra_statics/dist/assets/{EditorsView.367f6a9a.js → EditorsView.987a7eda.js} +2 -2
  27. abstra_statics/dist/assets/EnvVars.c5e84d82.js +2 -0
  28. abstra_statics/dist/assets/{Error.c2ad341a.js → Error.f378696f.js} +2 -2
  29. abstra_statics/dist/assets/ExclamationCircleOutlined.f9a25080.js +2 -0
  30. abstra_statics/dist/assets/{Files.aba4c92b.js → Files.06a52abd.js} +2 -2
  31. abstra_statics/dist/assets/Form.4633ab8e.js +2 -0
  32. abstra_statics/dist/assets/{FormRunner.ce5ad4fd.js → FormRunner.2b75fd4d.js} +2 -2
  33. abstra_statics/dist/assets/{Home.ee572768.js → Home.a883da25.js} +2 -2
  34. abstra_statics/dist/assets/Home.d122da63.js +2 -0
  35. abstra_statics/dist/assets/{Live.c14662db.js → Live.08670b33.js} +2 -2
  36. abstra_statics/dist/assets/LoadingContainer.b11f052c.js +2 -0
  37. abstra_statics/dist/assets/LoadingOutlined.659d6aae.js +2 -0
  38. abstra_statics/dist/assets/{Login.2ef78ae0.js → Login.8491c4b7.js} +2 -2
  39. abstra_statics/dist/assets/Login.84d39327.js +2 -0
  40. abstra_statics/dist/assets/{Login.vue_vue_type_script_setup_true_lang.b006d8d3.js → Login.vue_vue_type_script_setup_true_lang.eb94ecc3.js} +2 -2
  41. abstra_statics/dist/assets/Logo.a32d36e7.js +2 -0
  42. abstra_statics/dist/assets/{Logs.072f55c6.js → Logs.030c8a19.js} +2 -2
  43. abstra_statics/dist/assets/{LogsController.395d93f5.js → LogsController.7e2c0c7a.js} +2 -2
  44. abstra_statics/dist/assets/Main.70db8614.js +2 -0
  45. abstra_statics/dist/assets/{MockForm.fdc58df0.js → MockForm.8b56fd25.js} +2 -2
  46. abstra_statics/dist/assets/{Navbar.7add3eb0.js → Navbar.6acd9007.js} +2 -2
  47. abstra_statics/dist/assets/NewEditor.15e29eac.js +8 -0
  48. abstra_statics/dist/assets/OidcLoginCallback.b65a6f9f.js +2 -0
  49. abstra_statics/dist/assets/OidcLogoutCallback.dabd09cf.js +2 -0
  50. abstra_statics/dist/assets/{OmniChat.de7b834a.js → OmniChat.6ed96f8e.js} +2 -2
  51. abstra_statics/dist/assets/{OnboardingView.51adcf60.js → OnboardingView.262e82cc.js} +2 -2
  52. abstra_statics/dist/assets/{Organization.e9e92d40.js → Organization.4f3ccb55.js} +2 -2
  53. abstra_statics/dist/assets/{Organizations.a6fb836d.js → Organizations.d90dd629.js} +2 -2
  54. abstra_statics/dist/assets/{PhArrowCounterClockwise.vue.a4f3391b.js → PhArrowCounterClockwise.vue.a1a917b9.js} +2 -2
  55. abstra_statics/dist/assets/{PhArrowSquareOut.vue.6554aa1c.js → PhArrowSquareOut.vue.eb4455ba.js} +2 -2
  56. abstra_statics/dist/assets/{PhBookBookmark.vue.c37eb773.js → PhBookBookmark.vue.7bb66888.js} +2 -2
  57. abstra_statics/dist/assets/{PhChats.vue.1d971c96.js → PhChats.vue.88d84608.js} +2 -2
  58. abstra_statics/dist/assets/{PhClockCounterClockwise.vue.f3d7a5f0.js → PhClockCounterClockwise.vue.02d85ea5.js} +2 -2
  59. abstra_statics/dist/assets/{PhCopy.vue.e433af1d.js → PhCopy.vue.5664181e.js} +2 -2
  60. abstra_statics/dist/assets/{PhCopySimple.vue.b8cedde5.js → PhCopySimple.vue.beb69d1f.js} +2 -2
  61. abstra_statics/dist/assets/{PhCube.vue.8321d975.js → PhCube.vue.8de1132a.js} +2 -2
  62. abstra_statics/dist/assets/{PhDotsThreeVertical.vue.377e8248.js → PhDotsThreeVertical.vue.9e306480.js} +2 -2
  63. abstra_statics/dist/assets/PhDownloadSimple.vue.6192bb0e.js +2 -0
  64. abstra_statics/dist/assets/{PhFolderPlus.vue.26f4fc08.js → PhFolderPlus.vue.658105d4.js} +2 -2
  65. abstra_statics/dist/assets/{PhGear.vue.bde6cc31.js → PhGear.vue.68bce043.js} +2 -2
  66. abstra_statics/dist/assets/{PhKey.vue.6aba158a.js → PhKey.vue.3f5192b6.js} +2 -2
  67. abstra_statics/dist/assets/{PhPencil.vue.55f0d005.js → PhPencil.vue.ee28fb6e.js} +2 -2
  68. abstra_statics/dist/assets/{PhPencilSimple.vue.82f128f3.js → PhPencilSimple.vue.148807f6.js} +2 -2
  69. abstra_statics/dist/assets/{PhPencilSimpleLine.vue.64631777.js → PhPencilSimpleLine.vue.af76e884.js} +2 -2
  70. abstra_statics/dist/assets/{PhRocket.vue.ff778122.js → PhRocket.vue.7ba12859.js} +2 -2
  71. abstra_statics/dist/assets/{PhSignOut.vue.8f5bfa41.js → PhSignOut.vue.aa78b6eb.js} +2 -2
  72. abstra_statics/dist/assets/{PhSparkle.vue.2d12a12f.js → PhSparkle.vue.7820be45.js} +2 -2
  73. abstra_statics/dist/assets/{PhUserList.vue.5cfe135b.js → PhUserList.vue.04f21cbe.js} +2 -2
  74. abstra_statics/dist/assets/{PhUsersThree.vue.ddb0f571.js → PhUsersThree.vue.8b11b97d.js} +2 -2
  75. abstra_statics/dist/assets/{PhWebhooksLogo.vue.f667599c.js → PhWebhooksLogo.vue.9e20d559.js} +2 -2
  76. abstra_statics/dist/assets/{PlayerConfigProvider.ef1e8f48.js → PlayerConfigProvider.0915b29f.js} +2 -2
  77. abstra_statics/dist/assets/{PlayerNavbar.ca2f19cb.js → PlayerNavbar.78cf73f2.js} +2 -2
  78. abstra_statics/dist/assets/{Project.4e2f44e3.js → Project.34c75b7c.js} +2 -2
  79. abstra_statics/dist/assets/{ProjectLogin.2d8bb827.js → ProjectLogin.9b8cb3d1.js} +2 -2
  80. abstra_statics/dist/assets/{ProjectSettings.952cec7a.js → ProjectSettings.f9bf9124.js} +2 -2
  81. abstra_statics/dist/assets/{ProjectsView.67e79ccf.js → ProjectsView.407ea382.js} +2 -2
  82. abstra_statics/dist/assets/{SaveButton.d14631e9.js → SaveButton.e70cd09e.js} +2 -2
  83. abstra_statics/dist/assets/{ScrollArea.vue_vue_type_script_setup_true_lang.49642b53.js → ScrollArea.vue_vue_type_script_setup_true_lang.cf352882.js} +2 -2
  84. abstra_statics/dist/assets/{Sidebar.964fcb1c.js → Sidebar.ce129494.js} +2 -2
  85. abstra_statics/dist/assets/{Sql.afd70c7f.js → Sql.4e31662a.js} +3 -3
  86. abstra_statics/dist/assets/Steps.4c850501.js +2 -0
  87. abstra_statics/dist/assets/{TableEditor.9584d010.js → TableEditor.e7371677.js} +2 -2
  88. abstra_statics/dist/assets/Tables.f2c23e20.js +2 -0
  89. abstra_statics/dist/assets/{TablesDiagram.e6ce884d.js → TablesDiagram.8297ec4b.js} +3 -3
  90. abstra_statics/dist/assets/TablesTabs.vue_vue_type_script_setup_true_lang.ec94f9e7.js +2 -0
  91. abstra_statics/dist/assets/{Tasks.f57e239d.js → Tasks.c9ba3095.js} +2 -2
  92. abstra_statics/dist/assets/{UploadOutlined.68e6d0cf.js → UploadOutlined.c563b054.js} +2 -2
  93. abstra_statics/dist/assets/{View.f549262c.js → View.4c3c38ba.js} +2 -2
  94. abstra_statics/dist/assets/{View.vue_vue_type_script_setup_true_lang.8e0a328b.js → View.vue_vue_type_script_setup_true_lang.a00f21c8.js} +2 -2
  95. abstra_statics/dist/assets/{Watermark.37fe047e.js → Watermark.c71c105b.js} +2 -2
  96. abstra_statics/dist/assets/{WebEditor.8ff1601b.js → WebEditor.4ef39590.js} +2 -2
  97. abstra_statics/dist/assets/WidgetPreview.8bd406f7.js +2 -0
  98. abstra_statics/dist/assets/{ant-design.876f2f8d.js → ant-design.06b818ab.js} +2 -2
  99. abstra_statics/dist/assets/apiKey.e3aa9e16.js +2 -0
  100. abstra_statics/dist/assets/asyncComputed.bfb7341c.js +2 -0
  101. abstra_statics/dist/assets/{build.71b8e04b.js → build.aef51d48.js} +2 -2
  102. abstra_statics/dist/assets/colorHelpers.e94da383.js +2 -0
  103. abstra_statics/dist/assets/{console.6a1ae26d.js → console.86947afb.js} +4 -4
  104. abstra_statics/dist/assets/constants.b75d9567.js +2 -0
  105. abstra_statics/dist/assets/contracts.generated.7508e893.js +2 -0
  106. abstra_statics/dist/assets/{cssMode.6a4a4184.js → cssMode.0aa24dcd.js} +2 -2
  107. abstra_statics/dist/assets/{datetime.2d5b6900.js → datetime.46141396.js} +2 -2
  108. abstra_statics/dist/assets/dayjs.b4dc8227.js +2 -0
  109. abstra_statics/dist/assets/editor.4f4b7594.js +2 -0
  110. abstra_statics/dist/assets/editor.main.340c0a2d.js +2 -0
  111. abstra_statics/dist/assets/fetch.cfa094a0.js +2 -0
  112. abstra_statics/dist/assets/{folder.f5b64034.js → folder.fe6adcd2.js} +2 -2
  113. abstra_statics/dist/assets/{freemarker2.b87986e8.js → freemarker2.8bd96640.js} +2 -2
  114. abstra_statics/dist/assets/{handlebars.cc213cd7.js → handlebars.e5dd9b19.js} +2 -2
  115. abstra_statics/dist/assets/{html.77746bba.js → html.7bcef916.js} +2 -2
  116. abstra_statics/dist/assets/{htmlMode.db862c25.js → htmlMode.ce91c230.js} +2 -2
  117. abstra_statics/dist/assets/{index.ddb85c9b.js → index.005bab7f.js} +2 -2
  118. abstra_statics/dist/assets/index.06cad1f2.js +2 -0
  119. abstra_statics/dist/assets/{index.34fb5fc2.js → index.161ccee5.js} +2 -2
  120. abstra_statics/dist/assets/{index.045179c5.js → index.16664500.js} +5 -5
  121. abstra_statics/dist/assets/{index.d928bc3c.js → index.57a61691.js} +2 -2
  122. abstra_statics/dist/assets/{index.e6c377d2.js → index.a884598f.js} +2 -2
  123. abstra_statics/dist/assets/{index.3404e7dd.js → index.eb8f01b7.js} +2 -2
  124. abstra_statics/dist/assets/{index.00fb5b89.js → index.ee218f7a.js} +2 -2
  125. abstra_statics/dist/assets/{index.09f330ad.js → index.fe015dd3.js} +3 -3
  126. abstra_statics/dist/assets/{javascript.54e5f980.js → javascript.4d5c0a37.js} +3 -3
  127. abstra_statics/dist/assets/{jsonMode.fc4496f7.js → jsonMode.0942a255.js} +2 -2
  128. abstra_statics/dist/assets/{jwt-decode.esm.7fb8faf4.js → jwt-decode.esm.e1e8e181.js} +7 -7
  129. abstra_statics/dist/assets/{linters.910a9028.js → linters.39cc198f.js} +2 -2
  130. abstra_statics/dist/assets/{liquid.2595976e.js → liquid.884b015e.js} +3 -3
  131. abstra_statics/dist/assets/{member.4e942dca.js → member.af05829c.js} +2 -2
  132. abstra_statics/dist/assets/{metadata.bd2832f8.js → metadata.034775c8.js} +2 -2
  133. abstra_statics/dist/assets/{omniChatStore.83648f7c.js → omniChatStore.19fcae1a.js} +2 -2
  134. abstra_statics/dist/assets/{organization.0e5f192f.js → organization.a29009bc.js} +2 -2
  135. abstra_statics/dist/assets/player.b9e54e21.js +2 -0
  136. abstra_statics/dist/assets/{plotly.min.8ee43c36.js → plotly.min.df1e817c.js} +2 -2
  137. abstra_statics/dist/assets/{polling.41905ad0.js → polling.84bf96db.js} +2 -2
  138. abstra_statics/dist/assets/{project.47800fcd.js → project.a9ad86e9.js} +2 -2
  139. abstra_statics/dist/assets/{python.adb76dee.js → python.17c791bf.js} +3 -3
  140. abstra_statics/dist/assets/{razor.8c0f414a.js → razor.4b071c3b.js} +3 -3
  141. abstra_statics/dist/assets/{record.5fbe6782.js → record.06867f70.js} +2 -2
  142. abstra_statics/dist/assets/{redirect.0e6a5558.js → redirect.cd158e43.js} +2 -2
  143. abstra_statics/dist/assets/{repository.f466c79e.js → repository.40cf87c6.js} +2 -2
  144. abstra_statics/dist/assets/{repository.22769dca.js → repository.ecf19994.js} +2 -2
  145. abstra_statics/dist/assets/{router.643f183e.js → router.8ccbba96.js} +3 -3
  146. abstra_statics/dist/assets/router.c00c99d7.js +2 -0
  147. abstra_statics/dist/assets/string.ea3b2597.js +2 -0
  148. abstra_statics/dist/assets/{tables.736ccb3d.js → tables.928d4c4a.js} +2 -2
  149. abstra_statics/dist/assets/{tasksController.4a937a41.js → tasksController.95334db5.js} +2 -2
  150. abstra_statics/dist/assets/{toggleHighContrast.15446005.js → toggleHighContrast.67a76682.js} +49 -49
  151. abstra_statics/dist/assets/{tsMode.6e8249dd.js → tsMode.bd4befb2.js} +2 -2
  152. abstra_statics/dist/assets/{typescript.2c2237b9.js → typescript.b5722de7.js} +3 -3
  153. abstra_statics/dist/assets/url.62ce842c.js +2 -0
  154. abstra_statics/dist/assets/{useCodebaseEvents.28978c2b.js → useCodebaseEvents.47e4fcfe.js} +2 -2
  155. abstra_statics/dist/assets/userStore.51f1e2d0.js +2 -0
  156. abstra_statics/dist/assets/uuid.f4308f15.js +2 -0
  157. abstra_statics/dist/assets/{vue-flow-background.b301f87f.js → vue-flow-background.03bf6b4b.js} +2 -2
  158. abstra_statics/dist/assets/{vue-quill.esm-bundler.b4fd1194.js → vue-quill.esm-bundler.d6a7c536.js} +2 -2
  159. abstra_statics/dist/assets/{workspaceStore.de299d82.js → workspaceStore.cca10750.js} +2 -2
  160. abstra_statics/dist/assets/{xml.685038e1.js → xml.0a62ffce.js} +3 -3
  161. abstra_statics/dist/assets/{yaml.1a2cf10b.js → yaml.1efc213f.js} +3 -3
  162. abstra_statics/dist/console.html +15 -15
  163. abstra_statics/dist/editor.html +13 -13
  164. abstra_statics/dist/player.html +9 -9
  165. abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.23cf85ee.js +0 -2
  166. abstra_statics/dist/assets/App.46bd8dd6.js +0 -2
  167. abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.2264189c.js +0 -2
  168. abstra_statics/dist/assets/BaseLayout.77f1c4c9.js +0 -2
  169. abstra_statics/dist/assets/Billing.44a9d31b.js +0 -2
  170. abstra_statics/dist/assets/CloseCircleOutlined.3d4e81d4.js +0 -2
  171. abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.99b3af8f.js +0 -2
  172. abstra_statics/dist/assets/ContentLayout.866d5dde.js +0 -2
  173. abstra_statics/dist/assets/DocsButton.vue_vue_type_script_setup_true_lang.a3f96825.js +0 -2
  174. abstra_statics/dist/assets/EnvVars.afb25010.js +0 -2
  175. abstra_statics/dist/assets/ExclamationCircleOutlined.5510023c.js +0 -2
  176. abstra_statics/dist/assets/Form.ab1706e4.js +0 -2
  177. abstra_statics/dist/assets/Home.a001fbb0.js +0 -2
  178. abstra_statics/dist/assets/LoadingContainer.c883bb34.js +0 -2
  179. abstra_statics/dist/assets/LoadingOutlined.f4b4629a.js +0 -2
  180. abstra_statics/dist/assets/Login.efd0eb05.js +0 -2
  181. abstra_statics/dist/assets/Logo.648566b5.js +0 -2
  182. abstra_statics/dist/assets/Main.e6027f81.js +0 -2
  183. abstra_statics/dist/assets/NewEditor.6771ba53.js +0 -8
  184. abstra_statics/dist/assets/OidcLoginCallback.f56f78fc.js +0 -2
  185. abstra_statics/dist/assets/OidcLogoutCallback.437c4101.js +0 -2
  186. abstra_statics/dist/assets/PhDownloadSimple.vue.4c39fa52.js +0 -2
  187. abstra_statics/dist/assets/Steps.4482ff19.js +0 -2
  188. abstra_statics/dist/assets/Tables.ea01768b.js +0 -2
  189. abstra_statics/dist/assets/TablesTabs.vue_vue_type_script_setup_true_lang.1a057f69.js +0 -2
  190. abstra_statics/dist/assets/WidgetPreview.bc7a6646.js +0 -2
  191. abstra_statics/dist/assets/apiKey.1d723817.js +0 -2
  192. abstra_statics/dist/assets/asyncComputed.7b34952b.js +0 -2
  193. abstra_statics/dist/assets/colorHelpers.5dd0cb4f.js +0 -2
  194. abstra_statics/dist/assets/constants.60cb557d.js +0 -2
  195. abstra_statics/dist/assets/contracts.generated.6e0d1816.js +0 -2
  196. abstra_statics/dist/assets/dayjs.0eae9c2d.js +0 -2
  197. abstra_statics/dist/assets/editor.776db77c.js +0 -2
  198. abstra_statics/dist/assets/editor.main.7f316986.js +0 -2
  199. abstra_statics/dist/assets/fetch.cbf466d2.js +0 -2
  200. abstra_statics/dist/assets/index.f04176ea.js +0 -2
  201. abstra_statics/dist/assets/player.5f97b741.js +0 -2
  202. abstra_statics/dist/assets/router.71aa46ba.js +0 -2
  203. abstra_statics/dist/assets/string.d8337a2b.js +0 -2
  204. abstra_statics/dist/assets/url.4e737b7f.js +0 -2
  205. abstra_statics/dist/assets/userStore.f3109854.js +0 -2
  206. abstra_statics/dist/assets/uuid.0f9d5a19.js +0 -2
  207. {abstra-3.23.10.dist-info → abstra-3.23.11.dist-info}/WHEEL +0 -0
  208. {abstra-3.23.10.dist-info → abstra-3.23.11.dist-info}/entry_points.txt +0 -0
  209. {abstra-3.23.10.dist-info → abstra-3.23.11.dist-info}/top_level.txt +0 -0
@@ -1,2 +1,2 @@
1
- var l=Object.defineProperty;var c=(t,e,s)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s;var n=(t,e,s)=>(c(t,typeof e!="symbol"?e+"":e,s),s);import{a as u}from"./asyncComputed.7b34952b.js";import"./jwt-decode.esm.7fb8faf4.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="42df84b7-e1e9-4a6e-a6dd-8a7740363e9b",t._sentryDebugIdIdentifier="sentry-dbid-42df84b7-e1e9-4a6e-a6dd-8a7740363e9b")}catch{}})();class f{async check(){return(await fetch("/_editor/api/linters/check")).json()}async fix(e,s){const a=await fetch(`/_editor/api/linters/fix/${e}/${s}`,{method:"POST"});if(!a.ok)throw new Error("Failed to fix");return i.refetch(),a.json()}}const r=new f,i=u(async()=>(await r.check()).map(e=>new m(e)));class d{constructor(e,s){n(this,"name");n(this,"label");n(this,"ruleName");this.name=e.name,this.label=e.label,this.ruleName=s}async fix(){await r.fix(this.ruleName,this.name)}}class h{constructor(e,s){n(this,"label");n(this,"fixes");this.ruleName=s,this.label=e.label,this.fixes=e.fixes.map(a=>new d(a,s))}}class m{constructor(e){n(this,"name");n(this,"label");n(this,"type");n(this,"issues");this.name=e.name,this.label=e.label,this.type=e.type,this.issues=e.issues.map(s=>new h(s,this.name))}static get asyncComputed(){return i}static fromName(e){var a;const s=(a=i.result.value)==null?void 0:a.find(o=>o.name===e);if(!s)throw new Error(`Rule ${e} not found`);return s}}export{m as L};
2
- //# sourceMappingURL=linters.910a9028.js.map
1
+ var c=Object.defineProperty;var l=(t,e,s)=>e in t?c(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s;var n=(t,e,s)=>(l(t,typeof e!="symbol"?e+"":e,s),s);import{a as u}from"./asyncComputed.bfb7341c.js";import"./jwt-decode.esm.e1e8e181.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="5ebbfe7b-6309-4c37-aa99-64428ddad293",t._sentryDebugIdIdentifier="sentry-dbid-5ebbfe7b-6309-4c37-aa99-64428ddad293")}catch{}})();class f{async check(){return(await fetch("/_editor/api/linters/check")).json()}async fix(e,s){const a=await fetch(`/_editor/api/linters/fix/${e}/${s}`,{method:"POST"});if(!a.ok)throw new Error("Failed to fix");return i.refetch(),a.json()}}const r=new f,i=u(async()=>(await r.check()).map(e=>new m(e)));class d{constructor(e,s){n(this,"name");n(this,"label");n(this,"ruleName");this.name=e.name,this.label=e.label,this.ruleName=s}async fix(){await r.fix(this.ruleName,this.name)}}class h{constructor(e,s){n(this,"label");n(this,"fixes");this.ruleName=s,this.label=e.label,this.fixes=e.fixes.map(a=>new d(a,s))}}class m{constructor(e){n(this,"name");n(this,"label");n(this,"type");n(this,"issues");this.name=e.name,this.label=e.label,this.type=e.type,this.issues=e.issues.map(s=>new h(s,this.name))}static get asyncComputed(){return i}static fromName(e){var a;const s=(a=i.result.value)==null?void 0:a.find(o=>o.name===e);if(!s)throw new Error(`Rule ${e} not found`);return s}}export{m as L};
2
+ //# sourceMappingURL=linters.39cc198f.js.map
@@ -1,7 +1,7 @@
1
- import{m as d}from"./toggleHighContrast.15446005.js";import"./jwt-decode.esm.7fb8faf4.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="c4688ac7-a8cb-49bc-9bf4-6f286a093ca7",t._sentryDebugIdIdentifier="sentry-dbid-c4688ac7-a8cb-49bc-9bf4-6f286a093ca7")}catch{}})();/*!-----------------------------------------------------------------------------
1
+ import{m as d}from"./toggleHighContrast.67a76682.js";import"./jwt-decode.esm.e1e8e181.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="f535e995-231d-45df-ae04-63a65e701c15",t._sentryDebugIdIdentifier="sentry-dbid-f535e995-231d-45df-ae04-63a65e701c15")}catch{}})();/*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
4
4
  * Released under the MIT license
5
5
  * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
6
- *-----------------------------------------------------------------------------*/var s=Object.defineProperty,c=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,m=Object.prototype.hasOwnProperty,a=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of u(e))!m.call(t,r)&&r!==i&&s(t,r,{get:()=>e[r],enumerable:!(o=c(e,r))||o.enumerable});return t},p=(t,e,i)=>(a(t,e,"default"),i&&a(i,e,"default")),n={};p(n,d);var l=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],b={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,brackets:[["<!--","-->"],["<",">"],["{{","}}"],["{%","%}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"%",close:"%"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${l.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:n.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${l.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:n.languages.IndentAction.Indent}}]},g={defaultToken:"",tokenPostfix:"",builtinTags:["if","else","elseif","endif","render","assign","capture","endcapture","case","endcase","comment","endcomment","cycle","decrement","for","endfor","include","increment","layout","raw","endraw","render","tablerow","endtablerow","unless","endunless"],builtinFilters:["abs","append","at_least","at_most","capitalize","ceil","compact","date","default","divided_by","downcase","escape","escape_once","first","floor","join","json","last","lstrip","map","minus","modulo","newline_to_br","plus","prepend","remove","remove_first","replace","replace_first","reverse","round","rstrip","size","slice","sort","sort_natural","split","strip","strip_html","strip_newlines","times","truncate","truncatewords","uniq","upcase","url_decode","url_encode","where"],constants:["true","false"],operators:["==","!=",">","<",">=","<="],symbol:/[=><!]+/,identifier:/[a-zA-Z_][\w]*/,tokenizer:{root:[[/\{\%\s*comment\s*\%\}/,"comment.start.liquid","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@liquidState.root"}],[/\{\%/,{token:"@rematch",switchTo:"@liquidState.root"}],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],comment:[[/\{\%\s*endcomment\s*\%\}/,"comment.end.liquid","@pop"],[/./,"comment.content.liquid"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@liquidState.otherTag"}],[/\{\%/,{token:"@rematch",switchTo:"@liquidState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],liquidState:[[/\{\{/,"delimiter.output.liquid"],[/\}\}/,{token:"delimiter.output.liquid",switchTo:"@$S2.$S3"}],[/\{\%/,"delimiter.tag.liquid"],[/raw\s*\%\}/,"delimiter.tag.liquid","@liquidRaw"],[/\%\}/,{token:"delimiter.tag.liquid",switchTo:"@$S2.$S3"}],{include:"liquidRoot"}],liquidRaw:[[/^(?!\{\%\s*endraw\s*\%\}).+/],[/\{\%/,"delimiter.tag.liquid"],[/@identifier/],[/\%\}/,{token:"delimiter.tag.liquid",next:"@root"}]],liquidRoot:[[/\d+(\.\d+)?/,"number.liquid"],[/"[^"]*"/,"string.liquid"],[/'[^']*'/,"string.liquid"],[/\s+/],[/@symbol/,{cases:{"@operators":"operator.liquid","@default":""}}],[/\./],[/@identifier/,{cases:{"@constants":"keyword.liquid","@builtinFilters":"predefined.liquid","@builtinTags":"predefined.liquid","@default":"variable.liquid"}}],[/[^}|%]/,"variable.liquid"]]}};export{b as conf,g as language};
7
- //# sourceMappingURL=liquid.2595976e.js.map
6
+ *-----------------------------------------------------------------------------*/var s=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,m=Object.prototype.hasOwnProperty,a=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of c(e))!m.call(t,r)&&r!==i&&s(t,r,{get:()=>e[r],enumerable:!(o=u(e,r))||o.enumerable});return t},p=(t,e,i)=>(a(t,e,"default"),i&&a(i,e,"default")),n={};p(n,d);var l=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],g={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,brackets:[["<!--","-->"],["<",">"],["{{","}}"],["{%","%}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"%",close:"%"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${l.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:n.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${l.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:n.languages.IndentAction.Indent}}]},b={defaultToken:"",tokenPostfix:"",builtinTags:["if","else","elseif","endif","render","assign","capture","endcapture","case","endcase","comment","endcomment","cycle","decrement","for","endfor","include","increment","layout","raw","endraw","render","tablerow","endtablerow","unless","endunless"],builtinFilters:["abs","append","at_least","at_most","capitalize","ceil","compact","date","default","divided_by","downcase","escape","escape_once","first","floor","join","json","last","lstrip","map","minus","modulo","newline_to_br","plus","prepend","remove","remove_first","replace","replace_first","reverse","round","rstrip","size","slice","sort","sort_natural","split","strip","strip_html","strip_newlines","times","truncate","truncatewords","uniq","upcase","url_decode","url_encode","where"],constants:["true","false"],operators:["==","!=",">","<",">=","<="],symbol:/[=><!]+/,identifier:/[a-zA-Z_][\w]*/,tokenizer:{root:[[/\{\%\s*comment\s*\%\}/,"comment.start.liquid","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@liquidState.root"}],[/\{\%/,{token:"@rematch",switchTo:"@liquidState.root"}],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],comment:[[/\{\%\s*endcomment\s*\%\}/,"comment.end.liquid","@pop"],[/./,"comment.content.liquid"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@liquidState.otherTag"}],[/\{\%/,{token:"@rematch",switchTo:"@liquidState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],liquidState:[[/\{\{/,"delimiter.output.liquid"],[/\}\}/,{token:"delimiter.output.liquid",switchTo:"@$S2.$S3"}],[/\{\%/,"delimiter.tag.liquid"],[/raw\s*\%\}/,"delimiter.tag.liquid","@liquidRaw"],[/\%\}/,{token:"delimiter.tag.liquid",switchTo:"@$S2.$S3"}],{include:"liquidRoot"}],liquidRaw:[[/^(?!\{\%\s*endraw\s*\%\}).+/],[/\{\%/,"delimiter.tag.liquid"],[/@identifier/],[/\%\}/,{token:"delimiter.tag.liquid",next:"@root"}]],liquidRoot:[[/\d+(\.\d+)?/,"number.liquid"],[/"[^"]*"/,"string.liquid"],[/'[^']*'/,"string.liquid"],[/\s+/],[/@symbol/,{cases:{"@operators":"operator.liquid","@default":""}}],[/\./],[/@identifier/,{cases:{"@constants":"keyword.liquid","@builtinFilters":"predefined.liquid","@builtinTags":"predefined.liquid","@default":"variable.liquid"}}],[/[^}|%]/,"variable.liquid"]]}};export{g as conf,b as language};
7
+ //# sourceMappingURL=liquid.884b015e.js.map
@@ -1,2 +1,2 @@
1
- import{h as n}from"./router.643f183e.js";import"./jwt-decode.esm.7fb8faf4.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="18b4acc0-cf41-4134-b61f-cc80052df629",t._sentryDebugIdIdentifier="sentry-dbid-18b4acc0-cf41-4134-b61f-cc80052df629")}catch{}})();class i{async create(e){return n.post(`organizations/${e.organizationId}/members`,{email:e.email,teams:e.teams})}async delete(e){return n.delete(`organizations/${e.organizationId}/members/${e.authorId}`)}async list(e){return n.get(`organizations/${e}/members`)}async get(e,r){return n.get(`organizations/${e}/members/${r}`)}async update(e,r,a){return n.patch(`organizations/${e}/members/${r}`,a)}}export{i as M};
2
- //# sourceMappingURL=member.4e942dca.js.map
1
+ import{h as n}from"./router.8ccbba96.js";import"./jwt-decode.esm.e1e8e181.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="7a17dc41-5128-44e2-82a6-0456f338fff2",t._sentryDebugIdIdentifier="sentry-dbid-7a17dc41-5128-44e2-82a6-0456f338fff2")}catch{}})();class i{async create(e){return n.post(`organizations/${e.organizationId}/members`,{email:e.email,teams:e.teams})}async delete(e){return n.delete(`organizations/${e.organizationId}/members/${e.authorId}`)}async list(e){return n.get(`organizations/${e}/members`)}async get(e,r){return n.get(`organizations/${e}/members/${r}`)}async update(e,r,a){return n.patch(`organizations/${e}/members/${r}`,a)}}export{i as M};
2
+ //# sourceMappingURL=member.af05829c.js.map
@@ -1,2 +1,2 @@
1
- import{d as c,am as n,c as s,o as l,a5 as r,a7 as p,h as g,e6 as Z,e as o}from"./jwt-decode.esm.7fb8faf4.js";import{F as y,G as w,I as M}from"./PhUserList.vue.5cfe135b.js";import{G as $}from"./PhWebhooksLogo.vue.f667599c.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f616a88b-7918-413c-932c-e5e1c495a949",e._sentryDebugIdIdentifier="sentry-dbid-f616a88b-7918-413c-932c-e5e1c495a949")}catch{}})();const k=["width","height","fill","transform"],A={key:0},b=o("path",{d:"M222.14,105.85l-80-80a20,20,0,0,0-28.28,0l-80,80A19.86,19.86,0,0,0,28,120v96a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12V164h24v52a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12V120A19.86,19.86,0,0,0,222.14,105.85ZM204,204H164V152a12,12,0,0,0-12-12H104a12,12,0,0,0-12,12v52H52V121.65l76-76,76,76Z"},null,-1),N=[b],x={key:1},B=o("path",{d:"M216,120v96H152V152H104v64H40V120a8,8,0,0,1,2.34-5.66l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,216,120Z",opacity:"0.2"},null,-1),I=o("path",{d:"M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z"},null,-1),S=[B,I],z={key:2},C=o("path",{d:"M224,120v96a8,8,0,0,1-8,8H160a8,8,0,0,1-8-8V164a4,4,0,0,0-4-4H108a4,4,0,0,0-4,4v52a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V120a16,16,0,0,1,4.69-11.31l80-80a16,16,0,0,1,22.62,0l80,80A16,16,0,0,1,224,120Z"},null,-1),D=[C],E={key:3},P=o("path",{d:"M217.9,110.1l-80-80a14,14,0,0,0-19.8,0l-80,80A13.92,13.92,0,0,0,34,120v96a6,6,0,0,0,6,6h64a6,6,0,0,0,6-6V158h36v58a6,6,0,0,0,6,6h64a6,6,0,0,0,6-6V120A13.92,13.92,0,0,0,217.9,110.1ZM210,210H158V152a6,6,0,0,0-6-6H104a6,6,0,0,0-6,6v58H46V120a2,2,0,0,1,.58-1.42l80-80a2,2,0,0,1,2.84,0l80,80A2,2,0,0,1,210,120Z"},null,-1),_=[P],G={key:4},j=o("path",{d:"M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z"},null,-1),F=[j],W={key:5},q=o("path",{d:"M216.49,111.51l-80-80a12,12,0,0,0-17,0l-80,80A12,12,0,0,0,36,120v96a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4V156h40v60a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4V120A12,12,0,0,0,216.49,111.51ZM212,212H156V152a4,4,0,0,0-4-4H104a4,4,0,0,0-4,4v60H44V120a4,4,0,0,1,1.17-2.83l80-80a4,4,0,0,1,5.66,0l80,80A4,4,0,0,1,212,120Z"},null,-1),J=[q],K={name:"PhHouse"},R=c({...K,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,h=n("weight","regular"),V=n("size","1em"),d=n("color","currentColor"),H=n("mirrored",!1),i=s(()=>{var a;return(a=t.weight)!=null?a:h}),v=s(()=>{var a;return(a=t.size)!=null?a:V}),u=s(()=>{var a;return(a=t.color)!=null?a:d}),m=s(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:H?"scale(-1, 1)":void 0);return(a,f)=>(l(),r("svg",Z({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:v.value,height:v.value,fill:u.value,transform:m.value},a.$attrs),[p(a.$slots,"default"),i.value==="bold"?(l(),r("g",A,N)):i.value==="duotone"?(l(),r("g",x,S)):i.value==="fill"?(l(),r("g",z,D)):i.value==="light"?(l(),r("g",E,_)):i.value==="regular"?(l(),r("g",G,F)):i.value==="thin"?(l(),r("g",W,J)):g("",!0)],16,k))}}),L=["width","height","fill","transform"],O={key:0},Q=o("path",{d:"M216,44H40A12,12,0,0,0,28,56V208a20,20,0,0,0,20,20H88a20,20,0,0,0,20-20V164h40v12a20,20,0,0,0,20,20h40a20,20,0,0,0,20-20V56A12,12,0,0,0,216,44Zm-12,64H172V68h32ZM84,68v40H52V68Zm0,136H52V132H84Zm24-64V68h40v72Zm64,32V132h32v40Z"},null,-1),U=[Q],X={key:1},Y=o("path",{d:"M216,56v64H160V56ZM40,208a8,8,0,0,0,8,8H88a8,8,0,0,0,8-8V120H40Z",opacity:"0.2"},null,-1),T=o("path",{d:"M216,48H40a8,8,0,0,0-8,8V208a16,16,0,0,0,16,16H88a16,16,0,0,0,16-16V160h48v16a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V56A8,8,0,0,0,216,48Zm-8,64H168V64h40ZM88,64v48H48V64Zm0,144H48V128H88Zm16-64V64h48v80Zm64,32V128h40v48Z"},null,-1),a0=[Y,T],e0={key:2},t0=o("path",{d:"M160,56v96a8,8,0,0,1-8,8H112a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8h40A8,8,0,0,1,160,56Zm64-8H184a8,8,0,0,0-8,8v52a4,4,0,0,0,4,4h48a4,4,0,0,0,4-4V56A8,8,0,0,0,224,48Zm4,80H180a4,4,0,0,0-4,4v44a16,16,0,0,0,16,16h24a16,16,0,0,0,16-16V132A4,4,0,0,0,228,128ZM80,48H40a8,8,0,0,0-8,8v52a4,4,0,0,0,4,4H84a4,4,0,0,0,4-4V56A8,8,0,0,0,80,48Zm4,80H36a4,4,0,0,0-4,4v76a16,16,0,0,0,16,16H72a16,16,0,0,0,16-16V132A4,4,0,0,0,84,128Z"},null,-1),l0=[t0],r0={key:3},o0=o("path",{d:"M216,50H40a6,6,0,0,0-6,6V208a14,14,0,0,0,14,14H88a14,14,0,0,0,14-14V158h52v18a14,14,0,0,0,14,14h40a14,14,0,0,0,14-14V56A6,6,0,0,0,216,50Zm-6,64H166V62h44ZM90,62v52H46V62Zm0,146a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V126H90Zm12-62V62h52v84Zm106,32H168a2,2,0,0,1-2-2V126h44v50A2,2,0,0,1,208,178Z"},null,-1),i0=[o0],n0={key:4},s0=o("path",{d:"M216,48H40a8,8,0,0,0-8,8V208a16,16,0,0,0,16,16H88a16,16,0,0,0,16-16V160h48v16a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V56A8,8,0,0,0,216,48ZM88,208H48V128H88Zm0-96H48V64H88Zm64,32H104V64h48Zm56,32H168V128h40Zm0-64H168V64h40Z"},null,-1),h0=[s0],v0={key:5},V0=o("path",{d:"M216,52H40a4,4,0,0,0-4,4V208a12,12,0,0,0,12,12H88a12,12,0,0,0,12-12V156h56v20a12,12,0,0,0,12,12h40a12,12,0,0,0,12-12V56A4,4,0,0,0,216,52ZM92,208a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V124H92Zm0-92H44V60H92Zm64,32H100V60h56Zm56,28a4,4,0,0,1-4,4H168a4,4,0,0,1-4-4V124h48Zm0-60H164V60h48Z"},null,-1),d0=[V0],H0={name:"PhKanban"},u0=c({...H0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,h=n("weight","regular"),V=n("size","1em"),d=n("color","currentColor"),H=n("mirrored",!1),i=s(()=>{var a;return(a=t.weight)!=null?a:h}),v=s(()=>{var a;return(a=t.size)!=null?a:V}),u=s(()=>{var a;return(a=t.color)!=null?a:d}),m=s(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:H?"scale(-1, 1)":void 0);return(a,f)=>(l(),r("svg",Z({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:v.value,height:v.value,fill:u.value,transform:m.value},a.$attrs),[p(a.$slots,"default"),i.value==="bold"?(l(),r("g",O,U)):i.value==="duotone"?(l(),r("g",X,a0)):i.value==="fill"?(l(),r("g",e0,l0)):i.value==="light"?(l(),r("g",r0,i0)):i.value==="regular"?(l(),r("g",n0,h0)):i.value==="thin"?(l(),r("g",v0,d0)):g("",!0)],16,L))}}),m0={stages:[{icon:y,typeName:"forms",description:"Wait for a user input",key:"F",title:"Forms"},{typeName:"hooks",title:"Hooks",icon:$,description:"Wait for a trigger from an external service",key:"H"},{typeName:"jobs",title:"Jobs",icon:w,description:"Executed periodically",key:"J"},{typeName:"scripts",title:"Tasklets",icon:M,description:"Run a script when a task arrives",key:"T"}]};function c0(e){e==="tasklet"&&(e="script");const t=m0.stages.find(h=>h.typeName===e||h.typeName===`${e}s`);if(!t)throw new Error(`No metadata found for stage ${e}`);return t.icon}const f0=e=>e==="kanban"?u0:e==="home"?R:c0(e);export{f0 as i,c0 as s,m0 as w};
2
- //# sourceMappingURL=metadata.bd2832f8.js.map
1
+ import{d as c,am as n,c as s,o as l,a5 as r,a7 as p,h as g,e6 as Z,e as o}from"./jwt-decode.esm.e1e8e181.js";import{F as y,G as w,I as M}from"./PhUserList.vue.04f21cbe.js";import{G as $}from"./PhWebhooksLogo.vue.9e20d559.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="3e415edc-73f0-4df7-859c-b7a2ac511a06",e._sentryDebugIdIdentifier="sentry-dbid-3e415edc-73f0-4df7-859c-b7a2ac511a06")}catch{}})();const k=["width","height","fill","transform"],A={key:0},b=o("path",{d:"M222.14,105.85l-80-80a20,20,0,0,0-28.28,0l-80,80A19.86,19.86,0,0,0,28,120v96a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12V164h24v52a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12V120A19.86,19.86,0,0,0,222.14,105.85ZM204,204H164V152a12,12,0,0,0-12-12H104a12,12,0,0,0-12,12v52H52V121.65l76-76,76,76Z"},null,-1),N=[b],x={key:1},B=o("path",{d:"M216,120v96H152V152H104v64H40V120a8,8,0,0,1,2.34-5.66l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,216,120Z",opacity:"0.2"},null,-1),I=o("path",{d:"M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z"},null,-1),S=[B,I],z={key:2},C=o("path",{d:"M224,120v96a8,8,0,0,1-8,8H160a8,8,0,0,1-8-8V164a4,4,0,0,0-4-4H108a4,4,0,0,0-4,4v52a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V120a16,16,0,0,1,4.69-11.31l80-80a16,16,0,0,1,22.62,0l80,80A16,16,0,0,1,224,120Z"},null,-1),D=[C],E={key:3},P=o("path",{d:"M217.9,110.1l-80-80a14,14,0,0,0-19.8,0l-80,80A13.92,13.92,0,0,0,34,120v96a6,6,0,0,0,6,6h64a6,6,0,0,0,6-6V158h36v58a6,6,0,0,0,6,6h64a6,6,0,0,0,6-6V120A13.92,13.92,0,0,0,217.9,110.1ZM210,210H158V152a6,6,0,0,0-6-6H104a6,6,0,0,0-6,6v58H46V120a2,2,0,0,1,.58-1.42l80-80a2,2,0,0,1,2.84,0l80,80A2,2,0,0,1,210,120Z"},null,-1),_=[P],G={key:4},j=o("path",{d:"M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z"},null,-1),F=[j],W={key:5},q=o("path",{d:"M216.49,111.51l-80-80a12,12,0,0,0-17,0l-80,80A12,12,0,0,0,36,120v96a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4V156h40v60a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4V120A12,12,0,0,0,216.49,111.51ZM212,212H156V152a4,4,0,0,0-4-4H104a4,4,0,0,0-4,4v60H44V120a4,4,0,0,1,1.17-2.83l80-80a4,4,0,0,1,5.66,0l80,80A4,4,0,0,1,212,120Z"},null,-1),J=[q],K={name:"PhHouse"},R=c({...K,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,h=n("weight","regular"),v=n("size","1em"),V=n("color","currentColor"),H=n("mirrored",!1),i=s(()=>{var a;return(a=t.weight)!=null?a:h}),d=s(()=>{var a;return(a=t.size)!=null?a:v}),u=s(()=>{var a;return(a=t.color)!=null?a:V}),m=s(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:H?"scale(-1, 1)":void 0);return(a,f)=>(l(),r("svg",Z({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:d.value,height:d.value,fill:u.value,transform:m.value},a.$attrs),[p(a.$slots,"default"),i.value==="bold"?(l(),r("g",A,N)):i.value==="duotone"?(l(),r("g",x,S)):i.value==="fill"?(l(),r("g",z,D)):i.value==="light"?(l(),r("g",E,_)):i.value==="regular"?(l(),r("g",G,F)):i.value==="thin"?(l(),r("g",W,J)):g("",!0)],16,k))}}),L=["width","height","fill","transform"],O={key:0},Q=o("path",{d:"M216,44H40A12,12,0,0,0,28,56V208a20,20,0,0,0,20,20H88a20,20,0,0,0,20-20V164h40v12a20,20,0,0,0,20,20h40a20,20,0,0,0,20-20V56A12,12,0,0,0,216,44Zm-12,64H172V68h32ZM84,68v40H52V68Zm0,136H52V132H84Zm24-64V68h40v72Zm64,32V132h32v40Z"},null,-1),U=[Q],X={key:1},Y=o("path",{d:"M216,56v64H160V56ZM40,208a8,8,0,0,0,8,8H88a8,8,0,0,0,8-8V120H40Z",opacity:"0.2"},null,-1),T=o("path",{d:"M216,48H40a8,8,0,0,0-8,8V208a16,16,0,0,0,16,16H88a16,16,0,0,0,16-16V160h48v16a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V56A8,8,0,0,0,216,48Zm-8,64H168V64h40ZM88,64v48H48V64Zm0,144H48V128H88Zm16-64V64h48v80Zm64,32V128h40v48Z"},null,-1),a0=[Y,T],e0={key:2},t0=o("path",{d:"M160,56v96a8,8,0,0,1-8,8H112a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8h40A8,8,0,0,1,160,56Zm64-8H184a8,8,0,0,0-8,8v52a4,4,0,0,0,4,4h48a4,4,0,0,0,4-4V56A8,8,0,0,0,224,48Zm4,80H180a4,4,0,0,0-4,4v44a16,16,0,0,0,16,16h24a16,16,0,0,0,16-16V132A4,4,0,0,0,228,128ZM80,48H40a8,8,0,0,0-8,8v52a4,4,0,0,0,4,4H84a4,4,0,0,0,4-4V56A8,8,0,0,0,80,48Zm4,80H36a4,4,0,0,0-4,4v76a16,16,0,0,0,16,16H72a16,16,0,0,0,16-16V132A4,4,0,0,0,84,128Z"},null,-1),l0=[t0],r0={key:3},o0=o("path",{d:"M216,50H40a6,6,0,0,0-6,6V208a14,14,0,0,0,14,14H88a14,14,0,0,0,14-14V158h52v18a14,14,0,0,0,14,14h40a14,14,0,0,0,14-14V56A6,6,0,0,0,216,50Zm-6,64H166V62h44ZM90,62v52H46V62Zm0,146a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V126H90Zm12-62V62h52v84Zm106,32H168a2,2,0,0,1-2-2V126h44v50A2,2,0,0,1,208,178Z"},null,-1),i0=[o0],n0={key:4},s0=o("path",{d:"M216,48H40a8,8,0,0,0-8,8V208a16,16,0,0,0,16,16H88a16,16,0,0,0,16-16V160h48v16a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V56A8,8,0,0,0,216,48ZM88,208H48V128H88Zm0-96H48V64H88Zm64,32H104V64h48Zm56,32H168V128h40Zm0-64H168V64h40Z"},null,-1),h0=[s0],d0={key:5},v0=o("path",{d:"M216,52H40a4,4,0,0,0-4,4V208a12,12,0,0,0,12,12H88a12,12,0,0,0,12-12V156h56v20a12,12,0,0,0,12,12h40a12,12,0,0,0,12-12V56A4,4,0,0,0,216,52ZM92,208a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V124H92Zm0-92H44V60H92Zm64,32H100V60h56Zm56,28a4,4,0,0,1-4,4H168a4,4,0,0,1-4-4V124h48Zm0-60H164V60h48Z"},null,-1),V0=[v0],H0={name:"PhKanban"},u0=c({...H0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,h=n("weight","regular"),v=n("size","1em"),V=n("color","currentColor"),H=n("mirrored",!1),i=s(()=>{var a;return(a=t.weight)!=null?a:h}),d=s(()=>{var a;return(a=t.size)!=null?a:v}),u=s(()=>{var a;return(a=t.color)!=null?a:V}),m=s(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:H?"scale(-1, 1)":void 0);return(a,f)=>(l(),r("svg",Z({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:d.value,height:d.value,fill:u.value,transform:m.value},a.$attrs),[p(a.$slots,"default"),i.value==="bold"?(l(),r("g",O,U)):i.value==="duotone"?(l(),r("g",X,a0)):i.value==="fill"?(l(),r("g",e0,l0)):i.value==="light"?(l(),r("g",r0,i0)):i.value==="regular"?(l(),r("g",n0,h0)):i.value==="thin"?(l(),r("g",d0,V0)):g("",!0)],16,L))}}),m0={stages:[{icon:y,typeName:"forms",description:"Wait for a user input",key:"F",title:"Forms"},{typeName:"hooks",title:"Hooks",icon:$,description:"Wait for a trigger from an external service",key:"H"},{typeName:"jobs",title:"Jobs",icon:w,description:"Executed periodically",key:"J"},{typeName:"scripts",title:"Tasklets",icon:M,description:"Run a script when a task arrives",key:"T"}]};function c0(e){e==="tasklet"&&(e="script");const t=m0.stages.find(h=>h.typeName===e||h.typeName===`${e}s`);if(!t)throw new Error(`No metadata found for stage ${e}`);return t.icon}const f0=e=>e==="kanban"?u0:e==="home"?R:c0(e);export{f0 as i,c0 as s,m0 as w};
2
+ //# sourceMappingURL=metadata.034775c8.js.map
@@ -1,8 +1,8 @@
1
- var J=Object.defineProperty;var V=(r,e,t)=>e in r?J(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var o=(r,e,t)=>(V(r,typeof e!="symbol"?e+"":e,t),t);import{h as C}from"./router.643f183e.js";import{d as N,am as I,c as m,o as p,a5 as _,a7 as z,h as G,e6 as W,e as v,r as h,a as T,b as L,g as Q,ed as X,u as x,aV as Y,_ as K,f as ee,eH as te,H as se,ae as oe,k as ie,N as O}from"./jwt-decode.esm.7fb8faf4.js";import{P as re}from"./record.5fbe6782.js";import{u as b}from"./uuid.0f9d5a19.js";import{I as ae}from"./PhCopySimple.vue.b8cedde5.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="a2fac6fc-6044-4b52-95ff-ddf01174bb1f",r._sentryDebugIdIdentifier="sentry-dbid-a2fac6fc-6044-4b52-95ff-ddf01174bb1f")}catch{}})();const ne=["width","height","fill","transform"],le={key:0},ce=v("path",{d:"M176.49,95.51a12,12,0,0,1,0,17l-56,56a12,12,0,0,1-17,0l-24-24a12,12,0,1,1,17-17L112,143l47.51-47.52A12,12,0,0,1,176.49,95.51ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"},null,-1),he=[ce],de={key:1},ue=v("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),ge=v("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"},null,-1),fe=[ue,ge],pe={key:2},ye=v("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"},null,-1),ve=[ye],_e={key:3},me=v("path",{d:"M172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"},null,-1),we=[me],be={key:4},Se=v("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"},null,-1),Ce=[Se],Ie={key:5},Ae=v("path",{d:"M170.83,101.17a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"},null,-1),Te=[Ae],xe={name:"PhCheckCircle"},Ee=N({...xe,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(r){const e=r,t=I("weight","regular"),s=I("size","1em"),i=I("color","currentColor"),c=I("mirrored",!1),l=m(()=>{var n;return(n=e.weight)!=null?n:t}),g=m(()=>{var n;return(n=e.size)!=null?n:s}),d=m(()=>{var n;return(n=e.color)!=null?n:i}),f=m(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:c?"scale(-1, 1)":void 0);return(n,u)=>(p(),_("svg",W({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:g.value,height:g.value,fill:d.value,transform:f.value},n.$attrs),[z(n.$slots,"default"),l.value==="bold"?(p(),_("g",le,he)):l.value==="duotone"?(p(),_("g",de,fe)):l.value==="fill"?(p(),_("g",pe,ve)):l.value==="light"?(p(),_("g",_e,we)):l.value==="regular"?(p(),_("g",be,Ce)):l.value==="thin"?(p(),_("g",Ie,Te)):G("",!0)],16,ne))}});class P{constructor(e,t){o(this,"staging");this.flag=e,this.acc=t,this.staging=""}}class Fe extends P{constructor(){super("___JSON_MODE___",[])}reduceChar(e){try{this.staging+=e;const t=JSON.parse(this.staging);return this.acc.push(t),this.staging="",t}catch{return}}reduce(e){const t=[];for(const s of e){const i=this.reduceChar(s);i!==void 0&&t.push(i)}return t}}class ke extends P{constructor(){super("___TEXT_MODE___","")}reduce(e){return this.staging+=e,this.acc=this.staging,e}}class Z{constructor(){o(this,"mode");o(this,"modes",[new ke,new Fe]);o(this,"staging","");o(this,"chunkOnBuffer","");o(this,"flagMap");o(this,"flagPrefixes");this.mode=this.modes[0],this.flagMap=new Map,this.flagPrefixes=new Set;for(const e of this.modes){this.flagMap.set(e.flag,e);for(let t=1;t<e.flag.length;t++)this.flagPrefixes.add(e.flag.slice(0,t))}}*reduce(e){for(const t of e){if(this.staging+=t,this.flagMap.has(this.staging)){this.mode=this.flagMap.get(this.staging),this.staging="";continue}if(!this.flagPrefixes.has(this.staging))for(;this.staging.length>0;){const s=this.staging[0];this.staging=this.staging.slice(1);const i=this.mode.reduce(s);if(i!==void 0&&(Array.isArray(i)?yield*i:yield i),this.flagPrefixes.has(this.staging))break}}}*reduceInChunks(e,t){let s="";for(const i of this.reduce(t))if(typeof i=="string")for(s+=i;s.length>=e;)yield s.slice(0,e),s=s.slice(e);else s.length>0&&(yield s,s=""),yield i;s.length>0&&(yield s)}}const R=300;class Me{constructor(){o(this,"_baseUrl","/_editor/api/ai");o(this,"_headers",{"Content-Type":"application/json"})}async*sendMessage(e,t,s,i,c){var n;const l={conversationId:e,content:t,context:s,humanApproval:c},g=await fetch(`${this._baseUrl}/stream`,{method:"POST",headers:this._headers,body:JSON.stringify(l)});if(!g.ok)throw new Error("Failed to send message");const d=(n=g.body)==null?void 0:n.getReader();if(!d)throw new Error("No response body");const f=new Z;for(;!i();){const u=await d.read();if(u.done)break;for(const y of f.reduceInChunks(R,new TextDecoder().decode(u.value)))yield y}}async deleteThread(e){if(!(await fetch(`${this._baseUrl}/thread/${e}`,{method:"DELETE",headers:this._headers})).ok)throw new Error("Failed to delete thread")}async abortStreaming(e){if(!(await fetch(`${this._baseUrl}/abort`,{method:"POST",headers:this._headers,body:JSON.stringify({langGraphThreadId:e})})).ok)throw new Error("Failed to abort streaming")}async getHistory(e,t){const s=await fetch(`${this._baseUrl}/history?limit=${e}&offset=${t}`,{method:"GET"});if(!s.ok)throw new Error("Failed to fetch history");return await s.json()}async vote(e,t,s,i){const c={vote:e,question:t,answer:s,context:i};await fetch(`${this._baseUrl}/vote`,{method:"POST",headers:this._headers,body:JSON.stringify(c)})}startConversation(){return new Promise((e,t)=>{fetch(`${this._baseUrl}/start-conversation`,{method:"POST",headers:this._headers}).then(s=>{if(!s.ok)throw new Error("Failed to start conversation");return s.json()}).then(s=>e(s)).catch(s=>t(s))})}}class He{constructor(e){o(this,"projectId");o(this,"baseUrl");this.projectId=e,this.baseUrl=`projects/${e}`}startConversation(){throw new Error("Method not implemented.")}async*sendMessage(e,t,s,i,c){var n;const l={conversationId:e,content:t,context:s,humanApproval:c},d=(n=(await C.postRaw(`${this.baseUrl}/messages`,l)).body)==null?void 0:n.getReader();if(!d)throw new Error("No response body");const f=new Z;for(;!i();){const u=await d.read();if(u.done)break;for(const y of f.reduceInChunks(R,new TextDecoder().decode(u.value)))yield y}}async abortStreaming(e){await C.post(`${this.baseUrl}/abort`,{langGraphThreadId:e})}async getHistory(e,t){const s={limit:`${e}`,offset:`${t}`};return await C.get(`${this.baseUrl}/history`,s)}async deleteThread(e){await C.delete(`${this.baseUrl}/threads/${e}`)}async vote(e,t,s,i){throw new Error("Method not implemented.")}}const $e=N({__name:"CopyButton",props:{textToCopy:{}},setup(r){const e=r,t=h(!1),s=()=>{navigator.clipboard.writeText(e.textToCopy),t.value=!0,setTimeout(()=>t.value=!1,2e3)},i=m(()=>t.value?"Copied!":"Copy to clipboard");return(c,l)=>(p(),T(x(Y),null,{title:L(()=>[Q(X(i.value),1)]),default:L(()=>[v("div",{class:"copy-button",onClick:s},[t.value?(p(),T(x(Ee),{key:1,color:"#fff",size:"22"})):(p(),T(x(ae),{key:0,color:"#fff",size:"22"}))])]),_:1}))}});const Le=K($e,[["__scopeId","data-v-9f87bac2"]]);class B{constructor(e,t){o(this,"_repository");o(this,"conversationId");o(this,"_input");o(this,"_badgeState");o(this,"_smartChatState");o(this,"_logService");o(this,"_hasError",h(null));o(this,"_isLoadingHistory",h(!1));o(this,"_history",h([]));o(this,"_threadHistoryFetchInfo",h({limit:10,offset:0,done:!1}));o(this,"_executingFormFile",h(null));o(this,"_recentlyAccessedThreads",h([]));o(this,"loadingAbort",h(!1));o(this,"codeForApproval",h(null));o(this,"setupThread",async()=>{this.conversationId.value=`abstra-assistant-thread-${b()}`,this._recentlyAccessedThreads.value.unshift({id:this.conversationId.value,messages:[],createdAt:new Date().toISOString()})});o(this,"fetchHistory",async()=>{this._isLoadingHistory.value=!0;const e=await this._repository.getHistory(this._threadHistoryFetchInfo.value.limit,this._threadHistoryFetchInfo.value.offset);this._history.value=e,this._isLoadingHistory.value=!1});o(this,"loadMoreHistory",async()=>{this._isLoadingHistory.value=!0,this._threadHistoryFetchInfo.value.offset+=this._threadHistoryFetchInfo.value.limit;const e=await this._repository.getHistory(this._threadHistoryFetchInfo.value.limit,this._threadHistoryFetchInfo.value.offset);e.length<this._threadHistoryFetchInfo.value.limit&&(this._threadHistoryFetchInfo.value.done=!0);const t=[...this._history.value,...e];this._history.value=t,this._isLoadingHistory.value=!1});o(this,"setError",e=>{this._hasError.value=e});o(this,"setExecutingFormFile",e=>{this._executingFormFile.value=e});o(this,"_fillChat",e=>{this._logService.clear();for(const t of e)t.toolTitle?(this._logService.log({type:"ai-tool-approval",toolCallId:t.toolCallId,description:t.toolTitle,args:{},disabled:!1,needsApproval:!1,loading:!1}),this._logService.log({type:"ai-tool-call-response",toolCallId:t.toolCallId,response:t.content})):this._logService.log({type:t.role==="user"?"ai-input":"ai-output",log:t.content});this.renderCopyButtons()});o(this,"moveThreadFromHistoryToRecents",e=>{this.conversationId.value=e;const t=this._history.value.find(i=>i.id===e);if(!t)throw new Error(`Thread ${e} not found`);const s=this._recentlyAccessedThreads.value.findIndex(i=>i.id===e);s!==-1&&this._recentlyAccessedThreads.value.splice(s,1),this._recentlyAccessedThreads.value.unshift(t),this._fillChat(t.messages)});o(this,"deleteThread",e=>{this._repository.deleteThread(e),this.removeFromRecentlyAccessedThreads(e);const t=this._history.value.findIndex(s=>s.id===e);t!==-1&&this._history.value.splice(t,1)});o(this,"setCurrentThreadFromRecents",e=>{this.conversationId.value=e;const t=this._recentlyAccessedThreads.value.findIndex(i=>i.id===e);if(t===-1)throw new Error(`Thread ${e} not found`);const[s]=this._recentlyAccessedThreads.value.splice(t,1);this._recentlyAccessedThreads.value.unshift(s),this._fillChat(s.messages)});o(this,"removeFromRecentlyAccessedThreads",e=>{const t=this._recentlyAccessedThreads.value.findIndex(s=>s.id===e);if(t===-1)throw new Error(`Thread ${e} not found`);if(this._recentlyAccessedThreads.value.splice(t,1),this._logService.clear(),this._recentlyAccessedThreads.value.length===0)this.conversationId.value=null;else{const s=this._recentlyAccessedThreads.value[0];this.conversationId.value=s.id,this._fillChat(s.messages)}});o(this,"renderCopyButtons",()=>{document.querySelectorAll("pre").forEach(t=>{t.style.position="relative";const s=ee(Le,{textToCopy:t.textContent});te(s,t)})});o(this,"clearLogService",()=>{this._logService.clear()});o(this,"send",async(e,t,s=0)=>{var i,c,l,g,d,f,n;this.conversationId.value||await this.setupThread(),s===0&&this._logService.log({type:"ai-input",log:this._input.value}),this._smartChatState.value="processing";try{const u=b(),y=this.conversationId.value;if(!y)throw new Error("Conversation ID is not set");const D=[{type:"text",text:this._input.value}],U={currentEditorUrl:window.location.href,panesInfo:e||{}},j=this._repository.sendMessage(y,D,U,this.isIdle.bind(this),t);let F="",k=u,A="";for await(const w of j){if(this.isIdle())break;this._smartChatState.value==="processing"&&(this._smartChatState.value="answering");const a=w;if(typeof a=="string")F+=a,A+=a,this._logService.log({type:"ai-output",log:A},k);else if(a instanceof Object){if(a.type==="ai-tool-approval"){const q=(i=a.args)==null?void 0:i.file,M=!!(((c=a.args)==null?void 0:c.replacements)||((l=a.args)==null?void 0:l.content))&&this._executingFormFile.value===q,H=M?"This action can\u2019t be performed while the form is running":void 0;if(this._logService.log({type:"ai-tool-approval",toolCallId:a.toolCallId,description:a.title,args:a.args,disabled:M,needsApproval:!0,loading:!1,...H&&{message:H}}),((g=a.args)==null?void 0:g.file)&&((d=a.args)==null?void 0:d.replacements)){let S=a.args.replacements;typeof S=="string"&&(S=JSON.parse(S)),this.codeForApproval.value={file:a.args.file,replacements:S.map($=>({oldContext:$.old_context,newContext:$.new_context}))}}else((f=a.args)==null?void 0:f.file)&&((n=a.args)==null?void 0:n.content)&&(this.codeForApproval.value={file:a.args.file,code:a.args.content})}}else a.type==="ai-tool-call"?(this._logService.log({type:"ai-tool-approval",toolCallId:a.toolCallId,description:a.title,args:a.args,disabled:!1,needsApproval:!1,loading:!1}),k=b(),A=""):a.type==="ai-tool-call-response"&&this._logService.log({type:"ai-tool-call-response",toolCallId:a.toolCallId,response:a.response})}this._recentlyAccessedThreads.value=this._recentlyAccessedThreads.value.map(w=>(w.id===this.conversationId.value&&w.messages.unshift({role:"assistant",content:F,createdAt:new Date().toISOString()}),w)),this._input.value="",this._smartChatState.value="idle",this.renderCopyButtons()}catch(u){console.error(u),se(u),s>3?(this._logService.log({type:"ai-output",log:"Sorry, there was an issue processing your request. Please try again later."}),this._input.value="",this._smartChatState.value="idle",this.renderCopyButtons()):(await this.abort(),this._input.value="There was an unexpected error, please try again. You must continue from where you stopped as if nothing happened.",this.send(e,t,s+1))}});o(this,"abort",async()=>{if(!this.conversationId.value)throw new Error("Conversation ID is not set");this.loadingAbort.value=!0,await this._repository.abortStreaming(this.conversationId.value),this._smartChatState.value="idle",this.loadingAbort.value=!1});o(this,"isLoadingHistory",()=>this._isLoadingHistory.value);o(this,"isProcessing",()=>this._smartChatState.value==="processing");o(this,"isAnswering",()=>this._smartChatState.value==="answering");o(this,"isIdle",()=>this._smartChatState.value==="idle");o(this,"setSeen",()=>{this._badgeState.value={type:"seen"}});o(this,"setUnseen",e=>{this._badgeState.value={type:"unseen",count:this._badgeState.value.type==="unseen"?this._badgeState.value.count+1:1,severity:e.type==="stderr"?"error":"info"}});o(this,"setInput",e=>{e=e==null?void 0:e.trimEnd(),this._input.value=e||""});o(this,"regenerateLast",async()=>{for(let e=this._logService.logs.length-1;e>=0;e--){const t=this._logService.logs[e];if(t.type==="ai-input"){this.setInput(t.log);break}}await this.send()});o(this,"fixJson",async(e,t)=>{this._logService.clear(),this._logService.log({type:"ai-input",log:`here is my json code:
1
+ var J=Object.defineProperty;var V=(r,e,t)=>e in r?J(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var o=(r,e,t)=>(V(r,typeof e!="symbol"?e+"":e,t),t);import{h as C}from"./router.8ccbba96.js";import{d as N,am as I,c as m,o as p,a5 as _,a7 as z,h as G,e6 as W,e as v,r as h,a as T,b as L,g as Q,ed as X,u as x,aV as Y,_ as K,f as ee,eH as te,H as se,ae as oe,k as ie,N as O}from"./jwt-decode.esm.e1e8e181.js";import{P as re}from"./record.06867f70.js";import{u as b}from"./uuid.f4308f15.js";import{I as ae}from"./PhCopySimple.vue.beb69d1f.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="206d573b-a58e-4be0-951c-4abdb2554f14",r._sentryDebugIdIdentifier="sentry-dbid-206d573b-a58e-4be0-951c-4abdb2554f14")}catch{}})();const ne=["width","height","fill","transform"],le={key:0},ce=v("path",{d:"M176.49,95.51a12,12,0,0,1,0,17l-56,56a12,12,0,0,1-17,0l-24-24a12,12,0,1,1,17-17L112,143l47.51-47.52A12,12,0,0,1,176.49,95.51ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"},null,-1),he=[ce],de={key:1},ue=v("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),ge=v("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"},null,-1),fe=[ue,ge],pe={key:2},ye=v("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"},null,-1),ve=[ye],_e={key:3},me=v("path",{d:"M172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"},null,-1),we=[me],be={key:4},Se=v("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"},null,-1),Ce=[Se],Ie={key:5},Ae=v("path",{d:"M170.83,101.17a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"},null,-1),Te=[Ae],xe={name:"PhCheckCircle"},Ee=N({...xe,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(r){const e=r,t=I("weight","regular"),s=I("size","1em"),i=I("color","currentColor"),c=I("mirrored",!1),l=m(()=>{var n;return(n=e.weight)!=null?n:t}),g=m(()=>{var n;return(n=e.size)!=null?n:s}),d=m(()=>{var n;return(n=e.color)!=null?n:i}),f=m(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:c?"scale(-1, 1)":void 0);return(n,u)=>(p(),_("svg",W({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:g.value,height:g.value,fill:d.value,transform:f.value},n.$attrs),[z(n.$slots,"default"),l.value==="bold"?(p(),_("g",le,he)):l.value==="duotone"?(p(),_("g",de,fe)):l.value==="fill"?(p(),_("g",pe,ve)):l.value==="light"?(p(),_("g",_e,we)):l.value==="regular"?(p(),_("g",be,Ce)):l.value==="thin"?(p(),_("g",Ie,Te)):G("",!0)],16,ne))}});class P{constructor(e,t){o(this,"staging");this.flag=e,this.acc=t,this.staging=""}}class Fe extends P{constructor(){super("___JSON_MODE___",[])}reduceChar(e){try{this.staging+=e;const t=JSON.parse(this.staging);return this.acc.push(t),this.staging="",t}catch{return}}reduce(e){const t=[];for(const s of e){const i=this.reduceChar(s);i!==void 0&&t.push(i)}return t}}class ke extends P{constructor(){super("___TEXT_MODE___","")}reduce(e){return this.staging+=e,this.acc=this.staging,e}}class Z{constructor(){o(this,"mode");o(this,"modes",[new ke,new Fe]);o(this,"staging","");o(this,"chunkOnBuffer","");o(this,"flagMap");o(this,"flagPrefixes");this.mode=this.modes[0],this.flagMap=new Map,this.flagPrefixes=new Set;for(const e of this.modes){this.flagMap.set(e.flag,e);for(let t=1;t<e.flag.length;t++)this.flagPrefixes.add(e.flag.slice(0,t))}}*reduce(e){for(const t of e){if(this.staging+=t,this.flagMap.has(this.staging)){this.mode=this.flagMap.get(this.staging),this.staging="";continue}if(!this.flagPrefixes.has(this.staging))for(;this.staging.length>0;){const s=this.staging[0];this.staging=this.staging.slice(1);const i=this.mode.reduce(s);if(i!==void 0&&(Array.isArray(i)?yield*i:yield i),this.flagPrefixes.has(this.staging))break}}}*reduceInChunks(e,t){let s="";for(const i of this.reduce(t))if(typeof i=="string")for(s+=i;s.length>=e;)yield s.slice(0,e),s=s.slice(e);else s.length>0&&(yield s,s=""),yield i;s.length>0&&(yield s)}}const R=300;class Me{constructor(){o(this,"_baseUrl","/_editor/api/ai");o(this,"_headers",{"Content-Type":"application/json"})}async*sendMessage(e,t,s,i,c){var n;const l={conversationId:e,content:t,context:s,humanApproval:c},g=await fetch(`${this._baseUrl}/stream`,{method:"POST",headers:this._headers,body:JSON.stringify(l)});if(!g.ok)throw new Error("Failed to send message");const d=(n=g.body)==null?void 0:n.getReader();if(!d)throw new Error("No response body");const f=new Z;for(;!i();){const u=await d.read();if(u.done)break;for(const y of f.reduceInChunks(R,new TextDecoder().decode(u.value)))yield y}}async deleteThread(e){if(!(await fetch(`${this._baseUrl}/thread/${e}`,{method:"DELETE",headers:this._headers})).ok)throw new Error("Failed to delete thread")}async abortStreaming(e){if(!(await fetch(`${this._baseUrl}/abort`,{method:"POST",headers:this._headers,body:JSON.stringify({langGraphThreadId:e})})).ok)throw new Error("Failed to abort streaming")}async getHistory(e,t){const s=await fetch(`${this._baseUrl}/history?limit=${e}&offset=${t}`,{method:"GET"});if(!s.ok)throw new Error("Failed to fetch history");return await s.json()}async vote(e,t,s,i){const c={vote:e,question:t,answer:s,context:i};await fetch(`${this._baseUrl}/vote`,{method:"POST",headers:this._headers,body:JSON.stringify(c)})}startConversation(){return new Promise((e,t)=>{fetch(`${this._baseUrl}/start-conversation`,{method:"POST",headers:this._headers}).then(s=>{if(!s.ok)throw new Error("Failed to start conversation");return s.json()}).then(s=>e(s)).catch(s=>t(s))})}}class He{constructor(e){o(this,"projectId");o(this,"baseUrl");this.projectId=e,this.baseUrl=`projects/${e}`}startConversation(){throw new Error("Method not implemented.")}async*sendMessage(e,t,s,i,c){var n;const l={conversationId:e,content:t,context:s,humanApproval:c},d=(n=(await C.postRaw(`${this.baseUrl}/messages`,l)).body)==null?void 0:n.getReader();if(!d)throw new Error("No response body");const f=new Z;for(;!i();){const u=await d.read();if(u.done)break;for(const y of f.reduceInChunks(R,new TextDecoder().decode(u.value)))yield y}}async abortStreaming(e){await C.post(`${this.baseUrl}/abort`,{langGraphThreadId:e})}async getHistory(e,t){const s={limit:`${e}`,offset:`${t}`};return await C.get(`${this.baseUrl}/history`,s)}async deleteThread(e){await C.delete(`${this.baseUrl}/threads/${e}`)}async vote(e,t,s,i){throw new Error("Method not implemented.")}}const $e=N({__name:"CopyButton",props:{textToCopy:{}},setup(r){const e=r,t=h(!1),s=()=>{navigator.clipboard.writeText(e.textToCopy),t.value=!0,setTimeout(()=>t.value=!1,2e3)},i=m(()=>t.value?"Copied!":"Copy to clipboard");return(c,l)=>(p(),T(x(Y),null,{title:L(()=>[Q(X(i.value),1)]),default:L(()=>[v("div",{class:"copy-button",onClick:s},[t.value?(p(),T(x(Ee),{key:1,color:"#fff",size:"22"})):(p(),T(x(ae),{key:0,color:"#fff",size:"22"}))])]),_:1}))}});const Le=K($e,[["__scopeId","data-v-9f87bac2"]]);class B{constructor(e,t){o(this,"_repository");o(this,"conversationId");o(this,"_input");o(this,"_badgeState");o(this,"_smartChatState");o(this,"_logService");o(this,"_hasError",h(null));o(this,"_isLoadingHistory",h(!1));o(this,"_history",h([]));o(this,"_threadHistoryFetchInfo",h({limit:10,offset:0,done:!1}));o(this,"_executingFormFile",h(null));o(this,"_recentlyAccessedThreads",h([]));o(this,"loadingAbort",h(!1));o(this,"codeForApproval",h(null));o(this,"setupThread",async()=>{this.conversationId.value=`abstra-assistant-thread-${b()}`,this._recentlyAccessedThreads.value.unshift({id:this.conversationId.value,messages:[],createdAt:new Date().toISOString()})});o(this,"fetchHistory",async()=>{this._isLoadingHistory.value=!0;const e=await this._repository.getHistory(this._threadHistoryFetchInfo.value.limit,this._threadHistoryFetchInfo.value.offset);this._history.value=e,this._isLoadingHistory.value=!1});o(this,"loadMoreHistory",async()=>{this._isLoadingHistory.value=!0,this._threadHistoryFetchInfo.value.offset+=this._threadHistoryFetchInfo.value.limit;const e=await this._repository.getHistory(this._threadHistoryFetchInfo.value.limit,this._threadHistoryFetchInfo.value.offset);e.length<this._threadHistoryFetchInfo.value.limit&&(this._threadHistoryFetchInfo.value.done=!0);const t=[...this._history.value,...e];this._history.value=t,this._isLoadingHistory.value=!1});o(this,"setError",e=>{this._hasError.value=e});o(this,"setExecutingFormFile",e=>{this._executingFormFile.value=e});o(this,"_fillChat",e=>{this._logService.clear();for(const t of e)t.toolTitle?(this._logService.log({type:"ai-tool-approval",toolCallId:t.toolCallId,description:t.toolTitle,args:{},disabled:!1,needsApproval:!1,loading:!1}),this._logService.log({type:"ai-tool-call-response",toolCallId:t.toolCallId,response:t.content})):this._logService.log({type:t.role==="user"?"ai-input":"ai-output",log:t.content});this.renderCopyButtons()});o(this,"moveThreadFromHistoryToRecents",e=>{this.conversationId.value=e;const t=this._history.value.find(i=>i.id===e);if(!t)throw new Error(`Thread ${e} not found`);const s=this._recentlyAccessedThreads.value.findIndex(i=>i.id===e);s!==-1&&this._recentlyAccessedThreads.value.splice(s,1),this._recentlyAccessedThreads.value.unshift(t),this._fillChat(t.messages)});o(this,"deleteThread",e=>{this._repository.deleteThread(e),this.removeFromRecentlyAccessedThreads(e);const t=this._history.value.findIndex(s=>s.id===e);t!==-1&&this._history.value.splice(t,1)});o(this,"setCurrentThreadFromRecents",e=>{this.conversationId.value=e;const t=this._recentlyAccessedThreads.value.findIndex(i=>i.id===e);if(t===-1)throw new Error(`Thread ${e} not found`);const[s]=this._recentlyAccessedThreads.value.splice(t,1);this._recentlyAccessedThreads.value.unshift(s),this._fillChat(s.messages)});o(this,"removeFromRecentlyAccessedThreads",e=>{const t=this._recentlyAccessedThreads.value.findIndex(s=>s.id===e);if(t===-1)throw new Error(`Thread ${e} not found`);if(this._recentlyAccessedThreads.value.splice(t,1),this._logService.clear(),this._recentlyAccessedThreads.value.length===0)this.conversationId.value=null;else{const s=this._recentlyAccessedThreads.value[0];this.conversationId.value=s.id,this._fillChat(s.messages)}});o(this,"renderCopyButtons",()=>{document.querySelectorAll("pre").forEach(t=>{t.style.position="relative";const s=ee(Le,{textToCopy:t.textContent});te(s,t)})});o(this,"clearLogService",()=>{this._logService.clear()});o(this,"send",async(e,t,s=0)=>{var i,c,l,g,d,f,n;this.conversationId.value||await this.setupThread(),s===0&&this._logService.log({type:"ai-input",log:this._input.value}),this._smartChatState.value="processing";try{const u=b(),y=this.conversationId.value;if(!y)throw new Error("Conversation ID is not set");const D=[{type:"text",text:this._input.value}],U={currentEditorUrl:window.location.href,panesInfo:e||{}},j=this._repository.sendMessage(y,D,U,this.isIdle.bind(this),t);let F="",k=u,A="";for await(const w of j){if(this.isIdle())break;this._smartChatState.value==="processing"&&(this._smartChatState.value="answering");const a=w;if(typeof a=="string")F+=a,A+=a,this._logService.log({type:"ai-output",log:A},k);else if(a instanceof Object){if(a.type==="ai-tool-approval"){const q=(i=a.args)==null?void 0:i.file,M=!!(((c=a.args)==null?void 0:c.replacements)||((l=a.args)==null?void 0:l.content))&&this._executingFormFile.value===q,H=M?"This action can\u2019t be performed while the form is running":void 0;if(this._logService.log({type:"ai-tool-approval",toolCallId:a.toolCallId,description:a.title,args:a.args,disabled:M,needsApproval:!0,loading:!1,...H&&{message:H}}),((g=a.args)==null?void 0:g.file)&&((d=a.args)==null?void 0:d.replacements)){let S=a.args.replacements;typeof S=="string"&&(S=JSON.parse(S)),this.codeForApproval.value={file:a.args.file,replacements:S.map($=>({oldContext:$.old_context,newContext:$.new_context}))}}else((f=a.args)==null?void 0:f.file)&&((n=a.args)==null?void 0:n.content)&&(this.codeForApproval.value={file:a.args.file,code:a.args.content})}}else a.type==="ai-tool-call"?(this._logService.log({type:"ai-tool-approval",toolCallId:a.toolCallId,description:a.title,args:a.args,disabled:!1,needsApproval:!1,loading:!1}),k=b(),A=""):a.type==="ai-tool-call-response"&&this._logService.log({type:"ai-tool-call-response",toolCallId:a.toolCallId,response:a.response})}this._recentlyAccessedThreads.value=this._recentlyAccessedThreads.value.map(w=>(w.id===this.conversationId.value&&w.messages.unshift({role:"assistant",content:F,createdAt:new Date().toISOString()}),w)),this._input.value="",this._smartChatState.value="idle",this.renderCopyButtons()}catch(u){console.error(u),se(u),s>3?(this._logService.log({type:"ai-output",log:"Sorry, there was an issue processing your request. Please try again later."}),this._input.value="",this._smartChatState.value="idle",this.renderCopyButtons()):(await this.abort(),this._input.value="There was an unexpected error, please try again. You must continue from where you stopped as if nothing happened.",this.send(e,t,s+1))}});o(this,"abort",async()=>{if(!this.conversationId.value)throw new Error("Conversation ID is not set");this.loadingAbort.value=!0,await this._repository.abortStreaming(this.conversationId.value),this._smartChatState.value="idle",this.loadingAbort.value=!1});o(this,"isLoadingHistory",()=>this._isLoadingHistory.value);o(this,"isProcessing",()=>this._smartChatState.value==="processing");o(this,"isAnswering",()=>this._smartChatState.value==="answering");o(this,"isIdle",()=>this._smartChatState.value==="idle");o(this,"setSeen",()=>{this._badgeState.value={type:"seen"}});o(this,"setUnseen",e=>{this._badgeState.value={type:"unseen",count:this._badgeState.value.type==="unseen"?this._badgeState.value.count+1:1,severity:e.type==="stderr"?"error":"info"}});o(this,"setInput",e=>{e=e==null?void 0:e.trimEnd(),this._input.value=e||""});o(this,"regenerateLast",async()=>{for(let e=this._logService.logs.length-1;e>=0;e--){const t=this._logService.logs[e];if(t.type==="ai-input"){this.setInput(t.log);break}}await this.send()});o(this,"fixJson",async(e,t)=>{this._logService.clear(),this._logService.log({type:"ai-input",log:`here is my json code:
2
2
  ${e}
3
3
  And I got this error:`}),this._logService.log({type:"stderr",log:t}),this.setSeen(),this.setInput("Can you fix this JSON?"),await this.send()});o(this,"askAboutError",async(e,t)=>{this._logService.clear(),this.setInput(["Fix the following error based on my logs:",...e.entries.map(s=>s.payload.text),`My current code is: ${t||"No code provided"}`].join(`
4
4
  `)),await this.send()});o(this,"fixIssueWithAI",async(e,t)=>{this._logService.clear(),this.setInput(["Fix the following issue in my code:",e.label,t.label].join(`
5
5
  `)),await this.send()});o(this,"vote",async(e,t)=>{const s=this._logService.logs[e],i=this._logService.logs[e-1],c=this._logService.logs.slice(0,e-1);await this._repository.vote(t,i,s,c)});this._repository=e,this._logService=t,this.conversationId=h(null),this._input=h(""),this._badgeState=h({type:"seen"}),this._smartChatState=h("idle")}init(){this.setupThread(),this.renderCopyButtons(),this.fetchHistory()}get hasError(){var e;return((e=this._hasError.value)==null?void 0:e.payload)||null}get logService(){return this._logService}shouldRenderLoadMoreHistory(){return!this._threadHistoryFetchInfo.value.done}get pastThreads(){return this._history.value.map(e=>e.messages.length===0?{threadId:e.id,title:"New thread"}:{threadId:e.id,title:e.messages[0].content.slice(0,20)+"..."})}get recentlyAccessedThreads(){return this._recentlyAccessedThreads.value.map(e=>({threadId:e.id,title:e.messages.length>0?e.messages[0].content.slice(0,20)+"...":"New thread"}))}get badgeState(){return this._badgeState.value}get input(){return this._input.value}}class E{constructor(){o(this,"logState",oe({log:[]}));o(this,"_listeners",{});o(this,"getLastExecutionLogs",e=>{let t="";for(let s=this.logs.length-1;s>=0;s--){const i=this.logs[s];if(i.type!==e&&t.length>0)break;i.type===e&&(t=`${i.log}
6
6
  ${t}`)}return t})}static create(){return new E}get logs(){return this.logState.log}hasAiLogs(){return this.logs.some(e=>e.type==="ai-input"||e.type==="ai-output")}log(e,t){if(e.type!=="restart"&&e.type!=="ai-tool-approval"&&e.type!=="ai-tool-call-response"&&"log"in e&&e.log.trim()==="")return;const s=t?this.logs.find(i=>i.id===t):null;return s?(s.type==="stderr"&&e.type==="stderr"&&(e.log=s.log+`
7
7
  `+e.log),Object.assign(s,e)):this.logs.push({...e,id:t||b()}),this.notifyListeners(e),t}clear(){this.logState.log=[]}listen(e){const t=b();return this._listeners[t]=e,t}unlisten(e){delete this._listeners[e]}notifyListeners(e){Object.values(this._listeners).forEach(t=>t(e))}}const Ue=new re,je=ie("omniChat",()=>{const r=h(!0),e=h(!1),t=E.create(),s=O(),i=O(),c=(u,y)=>{if(!i.value)if(u==="console"){if(!y)throw new Error("Project ID is required for console chat");s.value=new He(y),i.value=new B(s.value,t)}else s.value=new Me,i.value=new B(s.value,t)},l=()=>{e.value=!0},g=()=>{e.value=!1},d=()=>{r.value=!0,l()},f=()=>{r.value=!1,g()};return{isOpen:r,isInputFocused:e,focusInput:l,blurInput:g,open:d,close:f,toggle:()=>{r.value?f():d()},controller:m(()=>i.value),repository:s,init:c}});export{Ee as H,Me as L,B as S,E as a,Ue as o,je as u};
8
- //# sourceMappingURL=omniChatStore.83648f7c.js.map
8
+ //# sourceMappingURL=omniChatStore.19fcae1a.js.map
@@ -1,2 +1,2 @@
1
- var c=Object.defineProperty;var d=(a,t,e)=>t in a?c(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e;var i=(a,t,e)=>(d(a,typeof t!="symbol"?t+"":t,e),e);import{h as s}from"./router.643f183e.js";import"./jwt-decode.esm.7fb8faf4.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="18c10b46-bcbd-4445-ab43-69df3e590df4",a._sentryDebugIdIdentifier="sentry-dbid-18c10b46-bcbd-4445-ab43-69df3e590df4")}catch{}})();class l{constructor(){i(this,"urlPath","organizations")}async create(t){return s.post(`${this.urlPath}`,t)}async delete(t){await s.delete(`${this.urlPath}/${t}`)}async rename(t,e){await s.patch(`${this.urlPath}/${t}`,{name:e})}async list(){return s.get(`${this.urlPath}`)}async get(t){return s.get(`${this.urlPath}/${t}`)}async getUsageReportUrl(t){return s.get(`${this.urlPath}/${t}/usage-report`)}}const r=new l;class n{constructor(t){this.dto=t}static async list(){return(await r.list()).map(e=>new n(e))}static async create(t){const e=await r.create({name:t});return new n(e)}static async get(t){const e=await r.get(t);return new n(e)}static async rename(t,e){return r.rename(t,e)}get id(){return this.dto.id}get name(){return this.dto.name}get featureFlags(){return this.dto.featureFlags}get billingMetadata(){return this.dto.billingMetadata}get coalescedPlan(){var t;return(t=this.billingMetadata.plan)!=null?t:"No active plan"}get hasUsageReport(){return["Business","Abstra"].includes(this.coalescedPlan)}async getUsageReportUrl(){return r.getUsageReportUrl(this.id)}}export{l as O,n as a};
2
- //# sourceMappingURL=organization.0e5f192f.js.map
1
+ var c=Object.defineProperty;var d=(a,t,e)=>t in a?c(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e;var i=(a,t,e)=>(d(a,typeof t!="symbol"?t+"":t,e),e);import{h as s}from"./router.8ccbba96.js";import"./jwt-decode.esm.e1e8e181.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="edc3b2b3-0d72-4894-bf6e-533587417962",a._sentryDebugIdIdentifier="sentry-dbid-edc3b2b3-0d72-4894-bf6e-533587417962")}catch{}})();class l{constructor(){i(this,"urlPath","organizations")}async create(t){return s.post(`${this.urlPath}`,t)}async delete(t){await s.delete(`${this.urlPath}/${t}`)}async rename(t,e){await s.patch(`${this.urlPath}/${t}`,{name:e})}async list(){return s.get(`${this.urlPath}`)}async get(t){return s.get(`${this.urlPath}/${t}`)}async getUsageReportUrl(t){return s.get(`${this.urlPath}/${t}/usage-report`)}}const r=new l;class n{constructor(t){this.dto=t}static async list(){return(await r.list()).map(e=>new n(e))}static async create(t){const e=await r.create({name:t});return new n(e)}static async get(t){const e=await r.get(t);return new n(e)}static async rename(t,e){return r.rename(t,e)}get id(){return this.dto.id}get name(){return this.dto.name}get featureFlags(){return this.dto.featureFlags}get billingMetadata(){return this.dto.billingMetadata}get coalescedPlan(){var t;return(t=this.billingMetadata.plan)!=null?t:"No active plan"}get hasUsageReport(){return["Business","Abstra"].includes(this.coalescedPlan)}async getUsageReportUrl(){return r.getUsageReportUrl(this.id)}}export{l as O,n as a};
2
+ //# sourceMappingURL=organization.a29009bc.js.map
@@ -0,0 +1,2 @@
1
+ import{s as n,t as r,v as o,x as d,P as c,C as p,y as f,z as m,B as a,D as u,E as g,F as y,G as l}from"./jwt-decode.esm.e1e8e181.js";import{a as b,b as i}from"./router.c00c99d7.js";import{s as w}from"./workspaceStore.cca10750.js";import{_ as h}from"./App.vue_vue_type_style_index_0_lang.79524273.js";import"./userStore.51f1e2d0.js";import"./url.62ce842c.js";import"./colorHelpers.e94da383.js";import"./PlayerConfigProvider.0915b29f.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[s]="d15e71c8-7f81-41aa-9461-74e1175ad0e4",t._sentryDebugIdIdentifier="sentry-dbid-d15e71c8-7f81-41aa-9461-74e1175ad0e4")}catch{}})();class _{static init(){setInterval(()=>{fetch("/_healthcheck").catch(()=>{})},20*1e3)}}(async()=>{await w();const t=await b(),s=n(),e=r({render:()=>u(h)});o.init(),d(e,i,t),_.init(),e.use(i),e.use(s),e.use(c),e.mount("#app"),e.component("VSelect",p),e.component("Markdown",f),e.component("Message",m),a(e,g),a(e,y),a(e,l)})();
2
+ //# sourceMappingURL=player.b9e54e21.js.map