abstra 3.23.11__py3-none-any.whl → 3.23.12__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 (227) hide show
  1. abstra/ai.py +2 -0
  2. {abstra-3.23.11.dist-info → abstra-3.23.12.dist-info}/METADATA +1 -1
  3. {abstra-3.23.11.dist-info → abstra-3.23.12.dist-info}/RECORD +172 -172
  4. abstra_internals/contracts_generated.py +5254 -5115
  5. abstra_internals/controllers/ai.py +23 -15
  6. abstra_internals/entities/forms/template.py +2 -2
  7. abstra_internals/interface/sdk/ai.py +156 -19
  8. abstra_internals/server/routes/ai.py +1 -18
  9. abstra_internals/services/fs.py +4 -1
  10. abstra_statics/dist/assets/{AbstraButton.vue_vue_type_script_setup_true_lang.3fce0fbb.js → AbstraButton.vue_vue_type_script_setup_true_lang.441fcdfd.js} +2 -2
  11. abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.3f03a3ef.js +2 -0
  12. abstra_statics/dist/assets/ApiKeys.cb561e62.js +2 -0
  13. abstra_statics/dist/assets/App.dc82115f.js +2 -0
  14. abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.3640ec1c.js +2 -0
  15. abstra_statics/dist/assets/BaseLayout.c63dfc2d.js +2 -0
  16. abstra_statics/dist/assets/Billing.461db3ef.js +2 -0
  17. abstra_statics/dist/assets/{Breadcrumb.f11a16d0.js → Breadcrumb.27110ec4.js} +2 -2
  18. abstra_statics/dist/assets/{Builds.2bf5dad8.js → Builds.4eecd717.js} +2 -2
  19. abstra_statics/dist/assets/{Card.6caecaa4.js → Card.1d1a9fb7.js} +2 -2
  20. abstra_statics/dist/assets/{CircularLoading.bc88c029.js → CircularLoading.fc66331b.js} +2 -2
  21. abstra_statics/dist/assets/CloseCircleOutlined.0110bbe2.js +2 -0
  22. abstra_statics/dist/assets/{ConnectorsView.aeb00ce8.css → ConnectorsView.82e74ae4.css} +1 -1
  23. abstra_statics/dist/assets/ConnectorsView.b428e487.js +2 -0
  24. abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.506f28c6.js +2 -0
  25. abstra_statics/dist/assets/ContentLayout.228d2328.js +2 -0
  26. abstra_statics/dist/assets/{CrudView.79588134.js → CrudView.c16e2f81.js} +2 -2
  27. abstra_statics/dist/assets/DocsButton.vue_vue_type_script_setup_true_lang.61381525.js +2 -0
  28. abstra_statics/dist/assets/{EditorLogin.e704b2ee.js → EditorLogin.00a3b3d9.js} +2 -2
  29. abstra_statics/dist/assets/EditorsView.f7b2843c.js +2 -0
  30. abstra_statics/dist/assets/EnvVars.242b97c2.js +2 -0
  31. abstra_statics/dist/assets/Error.466dbb94.js +2 -0
  32. abstra_statics/dist/assets/ExclamationCircleOutlined.6d10f60b.js +2 -0
  33. abstra_statics/dist/assets/{Files.06a52abd.js → Files.104385dd.js} +2 -2
  34. abstra_statics/dist/assets/Form.8077681f.js +2 -0
  35. abstra_statics/dist/assets/{FormRunner.2b75fd4d.js → FormRunner.055e2c45.js} +2 -2
  36. abstra_statics/dist/assets/Home.0ef22910.js +2 -0
  37. abstra_statics/dist/assets/{Home.d122da63.js → Home.80c7e349.js} +2 -2
  38. abstra_statics/dist/assets/{Live.08670b33.js → Live.e1261458.js} +2 -2
  39. abstra_statics/dist/assets/LoadingContainer.6e2b63e4.js +2 -0
  40. abstra_statics/dist/assets/{LoadingOutlined.659d6aae.js → LoadingOutlined.cd84d9c9.js} +2 -2
  41. abstra_statics/dist/assets/{Login.8491c4b7.js → Login.041361ea.js} +2 -2
  42. abstra_statics/dist/assets/Login.409f4a11.js +2 -0
  43. abstra_statics/dist/assets/{Login.vue_vue_type_script_setup_true_lang.eb94ecc3.js → Login.vue_vue_type_script_setup_true_lang.c2eb444c.js} +2 -2
  44. abstra_statics/dist/assets/Logo.2de02c4a.js +2 -0
  45. abstra_statics/dist/assets/{Logs.030c8a19.js → Logs.f76cde12.js} +2 -2
  46. abstra_statics/dist/assets/{LogsController.7e2c0c7a.js → LogsController.addd81bf.js} +2 -2
  47. abstra_statics/dist/assets/Main.4370ed68.js +2 -0
  48. abstra_statics/dist/assets/{MockForm.8b56fd25.js → MockForm.c9441864.js} +2 -2
  49. abstra_statics/dist/assets/Navbar.07ba9452.js +2 -0
  50. abstra_statics/dist/assets/NewEditor.769f4459.js +8 -0
  51. abstra_statics/dist/assets/NewEditor.d6e41a05.css +1 -0
  52. abstra_statics/dist/assets/OidcLoginCallback.a89857fe.js +2 -0
  53. abstra_statics/dist/assets/OidcLogoutCallback.d151c695.js +2 -0
  54. abstra_statics/dist/assets/OmniChat.0f64dfec.css +1 -0
  55. abstra_statics/dist/assets/OmniChat.d015bfa8.js +6 -0
  56. abstra_statics/dist/assets/{OnboardingView.262e82cc.js → OnboardingView.fbc4b6fe.js} +2 -2
  57. abstra_statics/dist/assets/{Organization.4f3ccb55.js → Organization.bc495099.js} +2 -2
  58. abstra_statics/dist/assets/Organizations.b630803f.js +2 -0
  59. abstra_statics/dist/assets/{PhArrowCounterClockwise.vue.a1a917b9.js → PhArrowCounterClockwise.vue.156bcd89.js} +2 -2
  60. abstra_statics/dist/assets/{PhArrowSquareOut.vue.eb4455ba.js → PhArrowSquareOut.vue.d0c95a06.js} +2 -2
  61. abstra_statics/dist/assets/{PhBookBookmark.vue.7bb66888.js → PhBookBookmark.vue.42e49494.js} +2 -2
  62. abstra_statics/dist/assets/{PhChats.vue.88d84608.js → PhChats.vue.54d692e4.js} +2 -2
  63. abstra_statics/dist/assets/{PhClockCounterClockwise.vue.02d85ea5.js → PhClockCounterClockwise.vue.d47d66ba.js} +2 -2
  64. abstra_statics/dist/assets/{PhCopy.vue.5664181e.js → PhCopy.vue.a0d9b0ec.js} +2 -2
  65. abstra_statics/dist/assets/PhCopySimple.vue.43c74ebe.js +2 -0
  66. abstra_statics/dist/assets/{PhCube.vue.8de1132a.js → PhCube.vue.498c014d.js} +2 -2
  67. abstra_statics/dist/assets/{PhDotsThreeVertical.vue.9e306480.js → PhDotsThreeVertical.vue.0ea03d82.js} +2 -2
  68. abstra_statics/dist/assets/{PhDownloadSimple.vue.6192bb0e.js → PhDownloadSimple.vue.c92aeaff.js} +2 -2
  69. abstra_statics/dist/assets/{PhFolderPlus.vue.658105d4.js → PhFolderPlus.vue.0c210f8d.js} +2 -2
  70. abstra_statics/dist/assets/{PhGear.vue.68bce043.js → PhGear.vue.86c3014a.js} +2 -2
  71. abstra_statics/dist/assets/{PhKey.vue.3f5192b6.js → PhKey.vue.72ce23d3.js} +2 -2
  72. abstra_statics/dist/assets/{PhPencil.vue.ee28fb6e.js → PhPencil.vue.80ed4b2e.js} +2 -2
  73. abstra_statics/dist/assets/{PhPencilSimple.vue.148807f6.js → PhPencilSimple.vue.0046d784.js} +2 -2
  74. abstra_statics/dist/assets/{PhPencilSimpleLine.vue.af76e884.js → PhPencilSimpleLine.vue.34633dfa.js} +2 -2
  75. abstra_statics/dist/assets/{PhRocket.vue.7ba12859.js → PhRocket.vue.f3302a7e.js} +2 -2
  76. abstra_statics/dist/assets/{PhSignOut.vue.aa78b6eb.js → PhSignOut.vue.c9150da4.js} +2 -2
  77. abstra_statics/dist/assets/{PhSparkle.vue.7820be45.js → PhSparkle.vue.84ea95fc.js} +2 -2
  78. abstra_statics/dist/assets/{PhUserList.vue.04f21cbe.js → PhUserList.vue.bce47902.js} +2 -2
  79. abstra_statics/dist/assets/{PhUsersThree.vue.8b11b97d.js → PhUsersThree.vue.0a84dfa4.js} +2 -2
  80. abstra_statics/dist/assets/{PhWebhooksLogo.vue.9e20d559.js → PhWebhooksLogo.vue.a704632d.js} +2 -2
  81. abstra_statics/dist/assets/{PlayerConfigProvider.0915b29f.js → PlayerConfigProvider.26b585a1.js} +2 -2
  82. abstra_statics/dist/assets/{PlayerNavbar.78cf73f2.js → PlayerNavbar.0fa6f760.js} +2 -2
  83. abstra_statics/dist/assets/{Project.34c75b7c.js → Project.c03610d3.js} +2 -2
  84. abstra_statics/dist/assets/{ProjectLogin.9b8cb3d1.js → ProjectLogin.934271a6.js} +2 -2
  85. abstra_statics/dist/assets/{ProjectSettings.f9bf9124.js → ProjectSettings.2bf7e6c8.js} +2 -2
  86. abstra_statics/dist/assets/{ProjectsView.407ea382.js → ProjectsView.ed31b921.js} +2 -2
  87. abstra_statics/dist/assets/{SaveButton.e70cd09e.js → SaveButton.fdf70b31.js} +2 -2
  88. abstra_statics/dist/assets/{ScrollArea.vue_vue_type_script_setup_true_lang.cf352882.js → ScrollArea.vue_vue_type_script_setup_true_lang.3bbea426.js} +2 -2
  89. abstra_statics/dist/assets/{Sidebar.ce129494.js → Sidebar.781afa0a.js} +2 -2
  90. abstra_statics/dist/assets/{Sql.4e31662a.js → Sql.b6aa38ca.js} +3 -3
  91. abstra_statics/dist/assets/Steps.7c7e4a4a.js +2 -0
  92. abstra_statics/dist/assets/{TableEditor.e7371677.js → TableEditor.dc1b4a2d.js} +2 -2
  93. abstra_statics/dist/assets/{Tables.f2c23e20.js → Tables.de30953b.js} +2 -2
  94. abstra_statics/dist/assets/{TablesDiagram.8297ec4b.js → TablesDiagram.97d6a43f.js} +3 -3
  95. abstra_statics/dist/assets/TablesTabs.vue_vue_type_script_setup_true_lang.63aa07d0.js +2 -0
  96. abstra_statics/dist/assets/{Tasks.c9ba3095.js → Tasks.ee450480.js} +2 -2
  97. abstra_statics/dist/assets/{UploadOutlined.c563b054.js → UploadOutlined.e3072945.js} +2 -2
  98. abstra_statics/dist/assets/{View.4c3c38ba.js → View.617ad8d8.js} +2 -2
  99. abstra_statics/dist/assets/{View.vue_vue_type_script_setup_true_lang.a00f21c8.js → View.vue_vue_type_script_setup_true_lang.ee5d447b.js} +2 -2
  100. abstra_statics/dist/assets/{Watermark.c71c105b.js → Watermark.891eee9f.js} +2 -2
  101. abstra_statics/dist/assets/WebEditor.7409cd48.js +2 -0
  102. abstra_statics/dist/assets/WidgetPreview.99f14714.js +2 -0
  103. abstra_statics/dist/assets/{ant-design.06b818ab.js → ant-design.4952c8fb.js} +2 -2
  104. abstra_statics/dist/assets/apiKey.864dc66b.js +2 -0
  105. abstra_statics/dist/assets/asyncComputed.25309626.js +2 -0
  106. abstra_statics/dist/assets/{build.aef51d48.js → build.8fa1a961.js} +2 -2
  107. abstra_statics/dist/assets/colorHelpers.71d6d61d.js +2 -0
  108. abstra_statics/dist/assets/{console.86947afb.js → console.3d4702c3.js} +4 -4
  109. abstra_statics/dist/assets/constants.56e8988f.js +2 -0
  110. abstra_statics/dist/assets/contracts.generated.c4057ed0.js +2 -0
  111. abstra_statics/dist/assets/{cssMode.0aa24dcd.js → cssMode.4c65b876.js} +2 -2
  112. abstra_statics/dist/assets/datetime.e5660676.js +2 -0
  113. abstra_statics/dist/assets/dayjs.c54f8edb.js +2 -0
  114. abstra_statics/dist/assets/editor.6d0baf6f.js +2 -0
  115. abstra_statics/dist/assets/editor.main.65812c73.js +2 -0
  116. abstra_statics/dist/assets/fetch.5136a62d.js +2 -0
  117. abstra_statics/dist/assets/folder.d7d65e5b.js +2 -0
  118. abstra_statics/dist/assets/{freemarker2.8bd96640.js → freemarker2.1d872d48.js} +2 -2
  119. abstra_statics/dist/assets/{handlebars.e5dd9b19.js → handlebars.41fc6db8.js} +2 -2
  120. abstra_statics/dist/assets/{html.7bcef916.js → html.967e3c6d.js} +3 -3
  121. abstra_statics/dist/assets/{htmlMode.ce91c230.js → htmlMode.d38ab72a.js} +2 -2
  122. abstra_statics/dist/assets/{index.161ccee5.js → index.03d222dd.js} +2 -2
  123. abstra_statics/dist/assets/{index.eb8f01b7.js → index.23283fbb.js} +2 -2
  124. abstra_statics/dist/assets/{index.06cad1f2.js → index.4b93c8ad.js} +2 -2
  125. abstra_statics/dist/assets/{index.fe015dd3.js → index.51dbb698.js} +2 -2
  126. abstra_statics/dist/assets/{index.a884598f.js → index.58e29274.js} +2 -2
  127. abstra_statics/dist/assets/{index.005bab7f.js → index.5f3f38ed.js} +2 -2
  128. abstra_statics/dist/assets/{index.ee218f7a.js → index.8e871bae.js} +2 -2
  129. abstra_statics/dist/assets/{index.57a61691.js → index.9021ba5d.js} +2 -2
  130. abstra_statics/dist/assets/{index.16664500.js → index.b762f5e8.js} +2 -2
  131. abstra_statics/dist/assets/{javascript.4d5c0a37.js → javascript.0935bea2.js} +3 -3
  132. abstra_statics/dist/assets/{jsonMode.0942a255.js → jsonMode.2860b71c.js} +2 -2
  133. abstra_statics/dist/assets/{jwt-decode.esm.e1e8e181.js → jwt-decode.esm.7f2ef0df.js} +7 -7
  134. abstra_statics/dist/assets/linters.640d6098.js +2 -0
  135. abstra_statics/dist/assets/{liquid.884b015e.js → liquid.1bae5f6b.js} +3 -3
  136. abstra_statics/dist/assets/member.b7ac8000.js +2 -0
  137. abstra_statics/dist/assets/{metadata.034775c8.js → metadata.39f9b9ba.js} +2 -2
  138. abstra_statics/dist/assets/omniChatStore.3431c026.js +8 -0
  139. abstra_statics/dist/assets/{organization.a29009bc.js → organization.a877b653.js} +2 -2
  140. abstra_statics/dist/assets/player.30593e18.js +2 -0
  141. abstra_statics/dist/assets/{plotly.min.df1e817c.js → plotly.min.d3f75723.js} +2 -2
  142. abstra_statics/dist/assets/polling.d1c934c7.js +2 -0
  143. abstra_statics/dist/assets/{project.a9ad86e9.js → project.d22a89ee.js} +2 -2
  144. abstra_statics/dist/assets/{python.17c791bf.js → python.4c1a1300.js} +2 -2
  145. abstra_statics/dist/assets/{razor.4b071c3b.js → razor.ba8bdb33.js} +3 -3
  146. abstra_statics/dist/assets/{record.06867f70.js → record.4ffc477c.js} +2 -2
  147. abstra_statics/dist/assets/{redirect.cd158e43.js → redirect.ce3c0f65.js} +2 -2
  148. abstra_statics/dist/assets/{repository.ecf19994.js → repository.360feb8f.js} +2 -2
  149. abstra_statics/dist/assets/{repository.40cf87c6.js → repository.ab3036a9.js} +2 -2
  150. abstra_statics/dist/assets/router.7f571832.js +2 -0
  151. abstra_statics/dist/assets/{router.8ccbba96.js → router.8fd5b2ad.js} +3 -3
  152. abstra_statics/dist/assets/string.2ed1cde3.js +2 -0
  153. abstra_statics/dist/assets/{tables.928d4c4a.js → tables.be1c51f8.js} +2 -2
  154. abstra_statics/dist/assets/{tasksController.95334db5.js → tasksController.bf12e264.js} +2 -2
  155. abstra_statics/dist/assets/{toggleHighContrast.67a76682.js → toggleHighContrast.c4e1b24d.js} +7 -7
  156. abstra_statics/dist/assets/{tsMode.bd4befb2.js → tsMode.da264aae.js} +2 -2
  157. abstra_statics/dist/assets/{typescript.b5722de7.js → typescript.db5d7517.js} +3 -3
  158. abstra_statics/dist/assets/url.8583a595.js +2 -0
  159. abstra_statics/dist/assets/{useCodebaseEvents.47e4fcfe.js → useCodebaseEvents.42573b00.js} +2 -2
  160. abstra_statics/dist/assets/userStore.73b89fbb.js +2 -0
  161. abstra_statics/dist/assets/uuid.dadede91.js +2 -0
  162. abstra_statics/dist/assets/{vue-flow-background.03bf6b4b.js → vue-flow-background.d2772d9a.js} +2 -2
  163. abstra_statics/dist/assets/{vue-quill.esm-bundler.d6a7c536.js → vue-quill.esm-bundler.37119951.js} +2 -2
  164. abstra_statics/dist/assets/{workspaceStore.cca10750.js → workspaceStore.50ef2df1.js} +2 -2
  165. abstra_statics/dist/assets/{xml.0a62ffce.js → xml.94b88503.js} +3 -3
  166. abstra_statics/dist/assets/{yaml.1efc213f.js → yaml.73b7d5ce.js} +3 -3
  167. abstra_statics/dist/console.html +15 -15
  168. abstra_statics/dist/editor.html +13 -13
  169. abstra_statics/dist/player.html +9 -9
  170. abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.4fb1f88a.js +0 -2
  171. abstra_statics/dist/assets/ApiKeys.56b97ced.js +0 -2
  172. abstra_statics/dist/assets/App.bd5ec032.js +0 -2
  173. abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.79524273.js +0 -2
  174. abstra_statics/dist/assets/BaseLayout.ac22ef55.js +0 -2
  175. abstra_statics/dist/assets/Billing.2c39d133.js +0 -2
  176. abstra_statics/dist/assets/CloseCircleOutlined.12f63f77.js +0 -2
  177. abstra_statics/dist/assets/ConnectorsView.97a8c63b.js +0 -2
  178. abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.48b29302.js +0 -2
  179. abstra_statics/dist/assets/ContentLayout.072b3790.js +0 -2
  180. abstra_statics/dist/assets/DocsButton.vue_vue_type_script_setup_true_lang.6566ff97.js +0 -2
  181. abstra_statics/dist/assets/EditorsView.987a7eda.js +0 -2
  182. abstra_statics/dist/assets/EnvVars.c5e84d82.js +0 -2
  183. abstra_statics/dist/assets/Error.f378696f.js +0 -2
  184. abstra_statics/dist/assets/ExclamationCircleOutlined.f9a25080.js +0 -2
  185. abstra_statics/dist/assets/Form.4633ab8e.js +0 -2
  186. abstra_statics/dist/assets/Home.a883da25.js +0 -2
  187. abstra_statics/dist/assets/LoadingContainer.b11f052c.js +0 -2
  188. abstra_statics/dist/assets/Login.84d39327.js +0 -2
  189. abstra_statics/dist/assets/Logo.a32d36e7.js +0 -2
  190. abstra_statics/dist/assets/Main.70db8614.js +0 -2
  191. abstra_statics/dist/assets/Navbar.6acd9007.js +0 -2
  192. abstra_statics/dist/assets/NewEditor.15e29eac.js +0 -8
  193. abstra_statics/dist/assets/NewEditor.6dd8f03b.css +0 -1
  194. abstra_statics/dist/assets/OidcLoginCallback.b65a6f9f.js +0 -2
  195. abstra_statics/dist/assets/OidcLogoutCallback.dabd09cf.js +0 -2
  196. abstra_statics/dist/assets/OmniChat.078af315.css +0 -1
  197. abstra_statics/dist/assets/OmniChat.6ed96f8e.js +0 -6
  198. abstra_statics/dist/assets/Organizations.d90dd629.js +0 -2
  199. abstra_statics/dist/assets/PhCopySimple.vue.beb69d1f.js +0 -2
  200. abstra_statics/dist/assets/Steps.4c850501.js +0 -2
  201. abstra_statics/dist/assets/TablesTabs.vue_vue_type_script_setup_true_lang.ec94f9e7.js +0 -2
  202. abstra_statics/dist/assets/WebEditor.4ef39590.js +0 -2
  203. abstra_statics/dist/assets/WidgetPreview.8bd406f7.js +0 -2
  204. abstra_statics/dist/assets/apiKey.e3aa9e16.js +0 -2
  205. abstra_statics/dist/assets/asyncComputed.bfb7341c.js +0 -2
  206. abstra_statics/dist/assets/colorHelpers.e94da383.js +0 -2
  207. abstra_statics/dist/assets/constants.b75d9567.js +0 -2
  208. abstra_statics/dist/assets/contracts.generated.7508e893.js +0 -2
  209. abstra_statics/dist/assets/datetime.46141396.js +0 -2
  210. abstra_statics/dist/assets/dayjs.b4dc8227.js +0 -2
  211. abstra_statics/dist/assets/editor.4f4b7594.js +0 -2
  212. abstra_statics/dist/assets/editor.main.340c0a2d.js +0 -2
  213. abstra_statics/dist/assets/fetch.cfa094a0.js +0 -2
  214. abstra_statics/dist/assets/folder.fe6adcd2.js +0 -2
  215. abstra_statics/dist/assets/linters.39cc198f.js +0 -2
  216. abstra_statics/dist/assets/member.af05829c.js +0 -2
  217. abstra_statics/dist/assets/omniChatStore.19fcae1a.js +0 -8
  218. abstra_statics/dist/assets/player.b9e54e21.js +0 -2
  219. abstra_statics/dist/assets/polling.84bf96db.js +0 -2
  220. abstra_statics/dist/assets/router.c00c99d7.js +0 -2
  221. abstra_statics/dist/assets/string.ea3b2597.js +0 -2
  222. abstra_statics/dist/assets/url.62ce842c.js +0 -2
  223. abstra_statics/dist/assets/userStore.51f1e2d0.js +0 -2
  224. abstra_statics/dist/assets/uuid.f4308f15.js +0 -2
  225. {abstra-3.23.11.dist-info → abstra-3.23.12.dist-info}/WHEEL +0 -0
  226. {abstra-3.23.11.dist-info → abstra-3.23.12.dist-info}/entry_points.txt +0 -0
  227. {abstra-3.23.11.dist-info → abstra-3.23.12.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,2 @@
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 a=(t,e,s)=>(l(t,typeof e!="symbol"?e+"":e,s),s);import{a as f}from"./asyncComputed.25309626.js";import"./jwt-decode.esm.7f2ef0df.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]="f0269ea1-bb61-4caa-9f7a-b4d5ba0701ec",t._sentryDebugIdIdentifier="sentry-dbid-f0269ea1-bb61-4caa-9f7a-b4d5ba0701ec")}catch{}})();class u{async check(){return(await fetch("/_editor/api/linters/check")).json()}async fix(e,s){const n=await fetch(`/_editor/api/linters/fix/${e}/${s}`,{method:"POST"});if(!n.ok)throw new Error("Failed to fix");return i.refetch(),n.json()}}const r=new u,i=f(async()=>(await r.check()).map(e=>new h(e)));class b{constructor(e,s){a(this,"name");a(this,"label");a(this,"ruleName");this.name=e.name,this.label=e.label,this.ruleName=s}async fix(){await r.fix(this.ruleName,this.name)}}class d{constructor(e,s){a(this,"label");a(this,"fixes");this.ruleName=s,this.label=e.label,this.fixes=e.fixes.map(n=>new b(n,s))}}class h{constructor(e){a(this,"name");a(this,"label");a(this,"type");a(this,"issues");this.name=e.name,this.label=e.label,this.type=e.type,this.issues=e.issues.map(s=>new d(s,this.name))}static get asyncComputed(){return i}static fromName(e){var n;const s=(n=i.result.value)==null?void 0:n.find(o=>o.name===e);if(!s)throw new Error(`Rule ${e} not found`);return s}}export{h as L};
2
+ //# sourceMappingURL=linters.640d6098.js.map
@@ -1,7 +1,7 @@
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{}})();/*!-----------------------------------------------------------------------------
1
+ import{m as d}from"./toggleHighContrast.c4e1b24d.js";import"./jwt-decode.esm.7f2ef0df.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]="9ccfcec3-6239-4e8d-880a-87d5813a6be8",t._sentryDebugIdIdentifier="sentry-dbid-9ccfcec3-6239-4e8d-880a-87d5813a6be8")}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,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
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"],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.1bae5f6b.js.map
@@ -0,0 +1,2 @@
1
+ import{h as n}from"./router.8fd5b2ad.js";import"./jwt-decode.esm.7f2ef0df.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]="724234d9-f242-4a19-b2bd-61d0f2155eea",r._sentryDebugIdIdentifier="sentry-dbid-724234d9-f242-4a19-b2bd-61d0f2155eea")}catch{}})();class s{async create(e){return n.post(`organizations/${e.organizationId}/members`,{email:e.email,folderIds:e.folderIds})}async delete(e){return n.delete(`organizations/${e.organizationId}/members/${e.authorId}`)}async list(e){return n.get(`organizations/${e}/members`)}async get(e,t){return n.get(`organizations/${e}/members/${t}`)}async update(e,t,a){return n.patch(`organizations/${e}/members/${t}`,a)}}export{s as M};
2
+ //# sourceMappingURL=member.b7ac8000.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.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
+ 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.7f2ef0df.js";import{F as y,G as w,I as M}from"./PhUserList.vue.bce47902.js";import{G as $}from"./PhWebhooksLogo.vue.a704632d.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]="4297111b-ac44-47ff-9d4e-544fcfb0aa8c",e._sentryDebugIdIdentifier="sentry-dbid-4297111b-ac44-47ff-9d4e-544fcfb0aa8c")}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"),d=n("size","1em"),V=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:d}),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: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},d0=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=[d0],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"),d=n("size","1em"),V=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:d}),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: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,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.39f9b9ba.js.map
@@ -0,0 +1,8 @@
1
+ var J=Object.defineProperty;var V=(a,e,t)=>e in a?J(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var o=(a,e,t)=>(V(a,typeof e!="symbol"?e+"":e,t),t);import{h as C}from"./router.8fd5b2ad.js";import{d as Z,am as I,c as m,o as f,a5 as _,a7 as z,h as W,e6 as G,e as v,r as c,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 re,N as O}from"./jwt-decode.esm.7f2ef0df.js";import{P as ie}from"./record.4ffc477c.js";import{u as b}from"./uuid.dadede91.js";import{I as ae}from"./PhCopySimple.vue.43c74ebe.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[e]="3eea1897-6b92-48a1-bd0b-be5be242e13f",a._sentryDebugIdIdentifier="sentry-dbid-3eea1897-6b92-48a1-bd0b-be5be242e13f")}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),pe=[ue,ge],fe={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=Z({...xe,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(a){const e=a,t=I("weight","regular"),s=I("size","1em"),r=I("color","currentColor"),g=I("mirrored",!1),l=m(()=>{var n;return(n=e.weight)!=null?n:t}),u=m(()=>{var n;return(n=e.size)!=null?n:s}),h=m(()=>{var n;return(n=e.color)!=null?n:r}),p=m(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:g?"scale(-1, 1)":void 0);return(n,d)=>(f(),_("svg",G({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:h.value,transform:p.value},n.$attrs),[z(n.$slots,"default"),l.value==="bold"?(f(),_("g",le,he)):l.value==="duotone"?(f(),_("g",de,pe)):l.value==="fill"?(f(),_("g",fe,ve)):l.value==="light"?(f(),_("g",_e,we)):l.value==="regular"?(f(),_("g",be,Ce)):l.value==="thin"?(f(),_("g",Ie,Te)):W("",!0)],16,ne))}});class N{constructor(e,t){o(this,"staging");this.flag=e,this.acc=t,this.staging=""}}class Fe extends N{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 r=this.reduceChar(s);r!==void 0&&t.push(r)}return t}}class ke extends N{constructor(){super("___TEXT_MODE___","")}reduce(e){return this.staging+=e,this.acc=this.staging,e}}class P{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 r=this.mode.reduce(s);if(r!==void 0&&(Array.isArray(r)?yield*r:yield r),this.flagPrefixes.has(this.staging))break}}}*reduceInChunks(e,t){let s="";for(const r of this.reduce(t))if(typeof r=="string")for(s+=r;s.length>=e;)yield s.slice(0,e),s=s.slice(e);else s.length>0&&(yield s,s=""),yield r;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,r,g){var n;const l={conversationId:e,content:t,context:s,humanApproval:g},u=await fetch(`${this._baseUrl}/stream`,{method:"POST",headers:this._headers,body:JSON.stringify(l)});if(!u.ok)throw new Error("Failed to send message");const h=(n=u.body)==null?void 0:n.getReader();if(!h)throw new Error("No response body");const p=new P;for(;!r();){const d=await h.read();if(d.done)break;for(const y of p.reduceInChunks(R,new TextDecoder().decode(d.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()}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,r,g){var n;const l={conversationId:e,content:t,context:s,humanApproval:g},h=(n=(await C.postRaw(`${this.baseUrl}/messages`,l)).body)==null?void 0:n.getReader();if(!h)throw new Error("No response body");const p=new P;for(;!r();){const d=await h.read();if(d.done)break;for(const y of p.reduceInChunks(R,new TextDecoder().decode(d.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}`)}}const $e=Z({__name:"CopyButton",props:{textToCopy:{}},setup(a){const e=a,t=c(!1),s=()=>{navigator.clipboard.writeText(e.textToCopy),t.value=!0,setTimeout(()=>t.value=!1,2e3)},r=m(()=>t.value?"Copied!":"Copy to clipboard");return(g,l)=>(f(),T(x(Y),null,{title:L(()=>[Q(X(r.value),1)]),default:L(()=>[v("div",{class:"copy-button",onClick:s},[t.value?(f(),T(x(Ee),{key:1,color:"#fff",size:"22"})):(f(),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",c(null));o(this,"_isLoadingHistory",c(!1));o(this,"_history",c([]));o(this,"_threadHistoryFetchInfo",c({limit:10,offset:0,done:!1}));o(this,"_executingFormFile",c(null));o(this,"_recentlyAccessedThreads",c([]));o(this,"loadingAbort",c(!1));o(this,"codeForApproval",c(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(r=>r.id===e);if(!t)throw new Error(`Thread ${e} not found`);const s=this._recentlyAccessedThreads.value.findIndex(r=>r.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(r=>r.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 r,g,l,u,h,p,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 d=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=d,A="";for await(const w of j){if(this.isIdle())break;this._smartChatState.value==="processing"&&(this._smartChatState.value="answering");const i=w;if(typeof i=="string"){if(i.includes("abstra__trigger__retry"))throw new Error("AI service requested a retry");F+=i,A+=i,this._logService.log({type:"ai-output",log:A},k)}else if(i instanceof Object)if(i.type==="ai-tool-approval"){const q=(r=i.args)==null?void 0:r.file,M=!!(((g=i.args)==null?void 0:g.replacements)||((l=i.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:i.toolCallId,description:i.title,args:i.args,disabled:M,needsApproval:!0,loading:!1,...H&&{message:H}}),((u=i.args)==null?void 0:u.file)&&((h=i.args)==null?void 0:h.replacements)){let S=i.args.replacements;typeof S=="string"&&(S=JSON.parse(S)),this.codeForApproval.value={file:i.args.file,replacements:S.map($=>({oldContext:$.old_context,newContext:$.new_context}))}}else((p=i.args)==null?void 0:p.file)&&((n=i.args)==null?void 0:n.content)&&(this.codeForApproval.value={file:i.args.file,code:i.args.content})}else i.type==="ai-tool-call"?(this._logService.log({type:"ai-tool-approval",toolCallId:i.toolCallId,description:i.title,args:i.args,disabled:!1,needsApproval:!1,loading:!1}),k=b(),A=""):i.type==="ai-tool-call-response"&&this._logService.log({type:"ai-tool-call-response",toolCallId:i.toolCallId,response:i.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(d){console.error(d),se(d),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()):(this._logService.log({type:"ai-output",log:"We had some trouble, but we are already retrying your request..."}),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
+ ${e}
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
+ `)),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
+ `)),await this.send()});this._repository=e,this._logService=t,this.conversationId=c(null),this._input=c(""),this._badgeState=c({type:"seen"}),this._smartChatState=c("idle")}init(){this.setupThread(),this.renderCopyButtons()}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 r=this.logs[s];if(r.type!==e&&t.length>0)break;r.type===e&&(t=`${r.log}
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(r=>r.id===t):null;return s?(s.type==="stderr"&&e.type==="stderr"&&(e.log=s.log+`
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 ie,je=re("omniChat",()=>{const a=c(!0),e=c(!1),t=E.create(),s=O(),r=O(),g=(d,y)=>{if(!r.value)if(d==="console"){if(!y)throw new Error("Project ID is required for console chat");s.value=new He(y),r.value=new B(s.value,t)}else s.value=new Me,r.value=new B(s.value,t)},l=()=>{e.value=!0},u=()=>{e.value=!1},h=()=>{a.value=!0,l()},p=()=>{a.value=!1,u()};return{isOpen:a,isInputFocused:e,focusInput:l,blurInput:u,open:h,close:p,toggle:()=>{a.value?p():h()},controller:m(()=>r.value),repository:s,init:g}});export{Ee as H,Me as L,B as S,E as a,Ue as o,je as u};
8
+ //# sourceMappingURL=omniChatStore.3431c026.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.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
1
+ var c=Object.defineProperty;var l=(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)=>(l(a,typeof t!="symbol"?t+"":t,e),e);import{h as s}from"./router.8fd5b2ad.js";import"./jwt-decode.esm.7f2ef0df.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]="a2a95567-7490-4b80-b330-9c9fe35810ed",a._sentryDebugIdIdentifier="sentry-dbid-a2a95567-7490-4b80-b330-9c9fe35810ed")}catch{}})();class o{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 o;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{o as O,n as a};
2
+ //# sourceMappingURL=organization.a877b653.js.map
@@ -0,0 +1,2 @@
1
+ import{s as n,t as r,v as o,x as c,P as d,C as p,y as f,z as m,B as a,D as u,E as g,F as b,G as y}from"./jwt-decode.esm.7f2ef0df.js";import{a as l,b as i}from"./router.7f571832.js";import{s as w}from"./workspaceStore.50ef2df1.js";import{_ as h}from"./App.vue_vue_type_style_index_0_lang.3640ec1c.js";import"./userStore.73b89fbb.js";import"./url.8583a595.js";import"./colorHelpers.71d6d61d.js";import"./PlayerConfigProvider.26b585a1.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]="6ec56167-46e4-40fa-bd1e-00ec224c0471",t._sentryDebugIdIdentifier="sentry-dbid-6ec56167-46e4-40fa-bd1e-00ec224c0471")}catch{}})();class _{static init(){setInterval(()=>{fetch("/_healthcheck").catch(()=>{})},20*1e3)}}(async()=>{await w();const t=await l(),s=n(),e=r({render:()=>u(h)});o.init(),c(e,i,t),_.init(),e.use(i),e.use(s),e.use(d),e.mount("#app"),e.component("VSelect",p),e.component("Markdown",f),e.component("Message",m),a(e,g),a(e,b),a(e,y)})();
2
+ //# sourceMappingURL=player.30593e18.js.map