abstra 3.23.5__py3-none-any.whl → 3.23.7__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.
- {abstra-3.23.5.dist-info → abstra-3.23.7.dist-info}/METADATA +1 -1
- {abstra-3.23.5.dist-info → abstra-3.23.7.dist-info}/RECORD +167 -167
- abstra_internals/contracts_generated.py +3791 -3236
- abstra_internals/interface/sdk/forms/deprecated/widgets/file_utils.py +1 -1
- abstra_statics/dist/assets/AbstraButton.vue_vue_type_script_setup_true_lang.9812dba9.js +2 -0
- abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.0c707a8b.js +2 -0
- abstra_statics/dist/assets/ApiKeys.902caf82.js +2 -0
- abstra_statics/dist/assets/App.f0468c7f.js +2 -0
- abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.864018b5.js +2 -0
- abstra_statics/dist/assets/BaseLayout.8bd18c5f.js +2 -0
- abstra_statics/dist/assets/{Billing.920e2b19.js → Billing.877a4614.js} +2 -2
- abstra_statics/dist/assets/{Breadcrumb.2d9d636f.js → Breadcrumb.f312111a.js} +2 -2
- abstra_statics/dist/assets/{Builds.11e86dae.js → Builds.a2c45c39.js} +2 -2
- abstra_statics/dist/assets/{Card.0b4293e1.js → Card.5f504e7b.js} +2 -2
- abstra_statics/dist/assets/{CircularLoading.e2f7dd80.js → CircularLoading.6f511e29.js} +2 -2
- abstra_statics/dist/assets/{CloseCircleOutlined.196a309a.js → CloseCircleOutlined.2815d641.js} +2 -2
- abstra_statics/dist/assets/{ConnectorsView.5cef13aa.css → ConnectorsView.17764dde.css} +1 -1
- abstra_statics/dist/assets/ConnectorsView.4e22242f.js +2 -0
- abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.17b546d4.js +2 -0
- abstra_statics/dist/assets/{ContentLayout.69b8ab09.js → ContentLayout.c7733a0e.js} +2 -2
- abstra_statics/dist/assets/{CrudView.56ebce1a.js → CrudView.5a642b48.js} +2 -2
- abstra_statics/dist/assets/{DocsButton.vue_vue_type_script_setup_true_lang.4eb7d335.js → DocsButton.vue_vue_type_script_setup_true_lang.2c5aae83.js} +2 -2
- abstra_statics/dist/assets/{EditorLogin.a10e3a50.js → EditorLogin.d2224782.js} +2 -2
- abstra_statics/dist/assets/{EditorsView.1925d1b5.js → EditorsView.5e769180.js} +2 -2
- abstra_statics/dist/assets/EnvVars.74e357b2.js +2 -0
- abstra_statics/dist/assets/Error.dd899e38.js +2 -0
- abstra_statics/dist/assets/ExclamationCircleOutlined.9b25ffda.js +2 -0
- abstra_statics/dist/assets/{Files.e978e721.js → Files.d9621f31.js} +2 -2
- abstra_statics/dist/assets/Form.9eebd960.js +2 -0
- abstra_statics/dist/assets/FormRunner.1c6a88dd.js +2 -0
- abstra_statics/dist/assets/{FormRunner.714ce2c1.css → FormRunner.46f6426d.css} +1 -1
- abstra_statics/dist/assets/Home.9531e545.js +2 -0
- abstra_statics/dist/assets/Home.b12bb81a.js +2 -0
- abstra_statics/dist/assets/{Live.cf58dd01.js → Live.a691b0eb.js} +2 -2
- abstra_statics/dist/assets/LoadingContainer.c40ae513.js +2 -0
- abstra_statics/dist/assets/LoadingOutlined.b607eff2.js +2 -0
- abstra_statics/dist/assets/Login.5f104bb1.js +2 -0
- abstra_statics/dist/assets/{Login.605b23e8.js → Login.f96858b0.js} +2 -2
- abstra_statics/dist/assets/Login.vue_vue_type_script_setup_true_lang.7d56cca3.js +2 -0
- abstra_statics/dist/assets/Logo.a34929e1.js +2 -0
- abstra_statics/dist/assets/{Logs.e15923a0.js → Logs.8426d360.js} +2 -2
- abstra_statics/dist/assets/{LogsController.35cad159.js → LogsController.318117fd.js} +2 -2
- abstra_statics/dist/assets/Main.7030ea1d.js +2 -0
- abstra_statics/dist/assets/MockForm.f8600bec.js +2 -0
- abstra_statics/dist/assets/Navbar.a1055174.js +2 -0
- abstra_statics/dist/assets/NewEditor.6b2cb8e6.js +8 -0
- abstra_statics/dist/assets/{NewEditor.b7bcb815.css → NewEditor.d3300cf0.css} +1 -1
- abstra_statics/dist/assets/OidcLoginCallback.445dd392.js +2 -0
- abstra_statics/dist/assets/OidcLogoutCallback.485fb0b9.js +2 -0
- abstra_statics/dist/assets/OmniChat.097bec71.js +6 -0
- abstra_statics/dist/assets/{OmniChat.10d00525.css → OmniChat.7660057c.css} +1 -1
- abstra_statics/dist/assets/{OnboardingView.546afa14.js → OnboardingView.c9a3343e.js} +2 -2
- abstra_statics/dist/assets/{Organization.a7309bfd.js → Organization.0833b7fe.js} +2 -2
- abstra_statics/dist/assets/Organizations.1c35b6b8.js +2 -0
- abstra_statics/dist/assets/{PhArrowCounterClockwise.vue.2706c012.js → PhArrowCounterClockwise.vue.aaa06bc0.js} +2 -2
- abstra_statics/dist/assets/{PhArrowSquareOut.vue.06e1e087.js → PhArrowSquareOut.vue.ee4af292.js} +2 -2
- abstra_statics/dist/assets/{PhBookBookmark.vue.b9569168.js → PhBookBookmark.vue.681c5036.js} +2 -2
- abstra_statics/dist/assets/{PhChats.vue.bb8ced1d.js → PhChats.vue.d61c3615.js} +2 -2
- abstra_statics/dist/assets/{PhClockCounterClockwise.vue.4252e6be.js → PhClockCounterClockwise.vue.0457e9b2.js} +2 -2
- abstra_statics/dist/assets/{PhCopy.vue.59c3a353.js → PhCopy.vue.391b0ef7.js} +2 -2
- abstra_statics/dist/assets/PhCopySimple.vue.e887b43c.js +2 -0
- abstra_statics/dist/assets/{PhCube.vue.7728ef5a.js → PhCube.vue.d070a184.js} +2 -2
- abstra_statics/dist/assets/{PhDotsThreeVertical.vue.275748da.js → PhDotsThreeVertical.vue.f4b60771.js} +2 -2
- abstra_statics/dist/assets/{PhDownloadSimple.vue.ed1fb44c.js → PhDownloadSimple.vue.3444d06b.js} +2 -2
- abstra_statics/dist/assets/{PhFolderPlus.vue.aa7bc872.js → PhFolderPlus.vue.d5788203.js} +2 -2
- abstra_statics/dist/assets/{PhGear.vue.ab14d56a.js → PhGear.vue.e2b120bb.js} +2 -2
- abstra_statics/dist/assets/{PhKey.vue.c0768b68.js → PhKey.vue.cf1e08ca.js} +2 -2
- abstra_statics/dist/assets/{PhPencil.vue.aaf907d1.js → PhPencil.vue.20f1b3c4.js} +2 -2
- abstra_statics/dist/assets/{PhPencilSimple.vue.2580bcf9.js → PhPencilSimple.vue.ec2125f5.js} +2 -2
- abstra_statics/dist/assets/{PhPencilSimpleLine.vue.2c2058ce.js → PhPencilSimpleLine.vue.22e75a5a.js} +2 -2
- abstra_statics/dist/assets/{PhRocket.vue.67935a85.js → PhRocket.vue.27c6f935.js} +2 -2
- abstra_statics/dist/assets/{PhSignOut.vue.87084f39.js → PhSignOut.vue.61b63ec0.js} +2 -2
- abstra_statics/dist/assets/{PhSparkle.vue.707b3721.js → PhSparkle.vue.fd6a9ad7.js} +2 -2
- abstra_statics/dist/assets/{PhUserList.vue.907c1a2b.js → PhUserList.vue.abdd6da1.js} +2 -2
- abstra_statics/dist/assets/{PhUsersThree.vue.2c3539c7.js → PhUsersThree.vue.85d1a1f0.js} +2 -2
- abstra_statics/dist/assets/{PhWebhooksLogo.vue.1134426a.js → PhWebhooksLogo.vue.00b65b2c.js} +2 -2
- abstra_statics/dist/assets/{PlayerConfigProvider.bee6a260.js → PlayerConfigProvider.10f46997.js} +2 -2
- abstra_statics/dist/assets/{PlayerNavbar.c456a4e0.css → PlayerNavbar.77209eae.css} +1 -1
- abstra_statics/dist/assets/PlayerNavbar.f2f66852.js +2 -0
- abstra_statics/dist/assets/{Project.c5ac4ebe.js → Project.2fdca57c.js} +2 -2
- abstra_statics/dist/assets/ProjectLogin.7660cd84.js +2 -0
- abstra_statics/dist/assets/{ProjectSettings.e40cc19c.js → ProjectSettings.50027450.js} +2 -2
- abstra_statics/dist/assets/{ProjectsView.3df99f87.js → ProjectsView.107f5e34.js} +2 -2
- abstra_statics/dist/assets/{SaveButton.5a81e6f5.js → SaveButton.cd025dae.js} +2 -2
- abstra_statics/dist/assets/{Sidebar.f23acdbf.js → Sidebar.c3d5d187.js} +2 -2
- abstra_statics/dist/assets/{Sql.ea1ee70d.js → Sql.7d92acbb.js} +3 -3
- abstra_statics/dist/assets/Steps.b12e16c6.js +2 -0
- abstra_statics/dist/assets/{TableEditor.3150beb1.js → TableEditor.7b07ece4.js} +2 -2
- abstra_statics/dist/assets/Tables.aa6b418c.js +2 -0
- abstra_statics/dist/assets/{TablesDiagram.5d3625d1.js → TablesDiagram.6736c045.js} +3 -3
- abstra_statics/dist/assets/TablesTabs.vue_vue_type_script_setup_true_lang.95ea10aa.js +2 -0
- abstra_statics/dist/assets/{Tasks.d5e7bdf2.js → Tasks.6660de00.js} +2 -2
- abstra_statics/dist/assets/UploadOutlined.732440a5.js +2 -0
- abstra_statics/dist/assets/{View.63e7c09c.js → View.283e52c1.js} +2 -2
- abstra_statics/dist/assets/{View.vue_vue_type_script_setup_true_lang.a36086e8.js → View.vue_vue_type_script_setup_true_lang.483e52f9.js} +2 -2
- abstra_statics/dist/assets/Watermark.6076ef47.js +2 -0
- abstra_statics/dist/assets/{WebEditor.37194274.js → WebEditor.6a012d5b.js} +2 -2
- abstra_statics/dist/assets/WidgetPreview.b01eed73.js +2 -0
- abstra_statics/dist/assets/ant-design.4302db30.js +2 -0
- abstra_statics/dist/assets/apiKey.1c96dd66.js +2 -0
- abstra_statics/dist/assets/asyncComputed.59410422.js +2 -0
- abstra_statics/dist/assets/{build.995e6997.js → build.656c5601.js} +2 -2
- abstra_statics/dist/assets/colorHelpers.2a607581.js +2 -0
- abstra_statics/dist/assets/{console.a07258d6.js → console.9b13e1da.js} +2 -2
- abstra_statics/dist/assets/constants.733c6549.js +2 -0
- abstra_statics/dist/assets/{cssMode.5c9f19b3.js → cssMode.6d17ca95.js} +2 -2
- abstra_statics/dist/assets/datetime.adbf692e.js +2 -0
- abstra_statics/dist/assets/dayjs.9e279491.js +2 -0
- abstra_statics/dist/assets/editor.7e30500a.js +2 -0
- abstra_statics/dist/assets/editor.main.4675b13a.js +2 -0
- abstra_statics/dist/assets/fetch.13b54f0f.js +2 -0
- abstra_statics/dist/assets/files.f66880c3.js +2 -0
- abstra_statics/dist/assets/{folder.777c3209.js → folder.9092348a.js} +2 -2
- abstra_statics/dist/assets/{freemarker2.385a198f.js → freemarker2.82f2cb8c.js} +2 -2
- abstra_statics/dist/assets/{handlebars.806a8b22.js → handlebars.36ec2a3c.js} +2 -2
- abstra_statics/dist/assets/{html.8df330b0.js → html.845da565.js} +3 -3
- abstra_statics/dist/assets/{htmlMode.08713341.js → htmlMode.980f76b4.js} +2 -2
- abstra_statics/dist/assets/{index.440bd76c.js → index.0f357aec.js} +2 -2
- abstra_statics/dist/assets/{index.fdbbf978.js → index.1551abd6.js} +3 -3
- abstra_statics/dist/assets/{index.49f6d313.js → index.1e12c884.js} +2 -2
- abstra_statics/dist/assets/index.4ecba4f7.js +2 -0
- abstra_statics/dist/assets/{index.f219d050.js → index.55d10b71.js} +2 -2
- abstra_statics/dist/assets/{index.11470ce1.js → index.5dbe93c3.js} +5 -5
- abstra_statics/dist/assets/{index.6f004291.js → index.81a2ae08.js} +2 -2
- abstra_statics/dist/assets/{index.cf5ef754.js → index.a2b9d34b.js} +2 -2
- abstra_statics/dist/assets/{index.ad15e486.js → index.b3b62f71.js} +2 -2
- abstra_statics/dist/assets/{javascript.7e683eb3.js → javascript.b0154182.js} +3 -3
- abstra_statics/dist/assets/{jsonMode.c71ca5e7.js → jsonMode.f86e9042.js} +2 -2
- abstra_statics/dist/assets/{jwt-decode.esm.bcf2db26.js → jwt-decode.esm.d86c27e0.js} +8 -8
- abstra_statics/dist/assets/linters.9ba6d5f8.js +2 -0
- abstra_statics/dist/assets/{liquid.c89ab4d8.js → liquid.029287f8.js} +3 -3
- abstra_statics/dist/assets/{member.39a2b810.js → member.3aca30ee.js} +2 -2
- abstra_statics/dist/assets/{metadata.77edb2ef.js → metadata.18d0a278.js} +2 -2
- abstra_statics/dist/assets/{omniChatStore.13045a23.js → omniChatStore.16b8f156.js} +2 -2
- abstra_statics/dist/assets/{organization.017d0932.js → organization.8b2c1c53.js} +2 -2
- abstra_statics/dist/assets/player.7f570660.js +2 -0
- abstra_statics/dist/assets/{plotly.min.ebdb6341.js → plotly.min.10467de2.js} +2 -2
- abstra_statics/dist/assets/polling.0b08b681.js +2 -0
- abstra_statics/dist/assets/{project.6106c0ae.js → project.33809d47.js} +2 -2
- abstra_statics/dist/assets/{python.fe5f6c61.js → python.ee23fd86.js} +3 -3
- abstra_statics/dist/assets/{razor.63a60978.js → razor.4ae6d2a2.js} +2 -2
- abstra_statics/dist/assets/{record.6b6d4da9.js → record.d087b37e.js} +2 -2
- abstra_statics/dist/assets/{redirect.b8ba406b.js → redirect.c06a7828.js} +2 -2
- abstra_statics/dist/assets/{repository.54d4a909.js → repository.02efcdbd.js} +2 -2
- abstra_statics/dist/assets/{repository.f2f5d880.js → repository.6fa74dff.js} +2 -2
- abstra_statics/dist/assets/router.7071f838.js +2 -0
- abstra_statics/dist/assets/{router.e5052323.js → router.7936fd78.js} +3 -3
- abstra_statics/dist/assets/{string.2f1abff3.js → string.360236ba.js} +2 -2
- abstra_statics/dist/assets/{tables.ecf1f359.js → tables.d580be9d.js} +2 -2
- abstra_statics/dist/assets/{tasksController.64f43cce.js → tasksController.b66c85ee.js} +2 -2
- abstra_statics/dist/assets/{toggleHighContrast.a33c9afc.js → toggleHighContrast.510bdb1d.js} +49 -49
- abstra_statics/dist/assets/{tsMode.bbb62deb.js → tsMode.5c0f732d.js} +2 -2
- abstra_statics/dist/assets/{typescript.f3be1a16.js → typescript.0643a053.js} +3 -3
- abstra_statics/dist/assets/url.b31d406a.js +2 -0
- abstra_statics/dist/assets/userStore.f2537ff3.js +2 -0
- abstra_statics/dist/assets/uuid.d6d43ef5.js +2 -0
- abstra_statics/dist/assets/{vue-flow-background.939eca5f.js → vue-flow-background.011d27ef.js} +2 -2
- abstra_statics/dist/assets/{vue-quill.esm-bundler.c86df351.js → vue-quill.esm-bundler.487756a5.js} +2 -2
- abstra_statics/dist/assets/workspaceStore.87f8dbc6.js +2 -0
- abstra_statics/dist/assets/{xml.96392483.js → xml.c3c548ab.js} +3 -3
- abstra_statics/dist/assets/{yaml.96b91a1d.js → yaml.0d909e29.js} +3 -3
- abstra_statics/dist/console.html +15 -15
- abstra_statics/dist/editor.html +11 -11
- abstra_statics/dist/player.html +9 -9
- abstra_statics/dist/assets/AbstraButton.vue_vue_type_script_setup_true_lang.ad9e23f0.js +0 -2
- abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.ee29465c.js +0 -2
- abstra_statics/dist/assets/ApiKeys.958a2342.js +0 -2
- abstra_statics/dist/assets/App.6c9e1d73.js +0 -2
- abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.46bbdba5.js +0 -2
- abstra_statics/dist/assets/BaseLayout.d4459d3a.js +0 -2
- abstra_statics/dist/assets/ConnectorsView.cda5c60f.js +0 -2
- abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.4d7bb007.js +0 -2
- abstra_statics/dist/assets/EnvVars.67eed38a.js +0 -2
- abstra_statics/dist/assets/Error.66a8e630.js +0 -2
- abstra_statics/dist/assets/ExclamationCircleOutlined.3ef65f87.js +0 -2
- abstra_statics/dist/assets/Form.ba1aeab0.js +0 -2
- abstra_statics/dist/assets/FormRunner.1a6e12cb.js +0 -2
- abstra_statics/dist/assets/Home.2871cae9.js +0 -2
- abstra_statics/dist/assets/Home.de257b98.js +0 -2
- abstra_statics/dist/assets/LoadingContainer.e6a98e2f.js +0 -2
- abstra_statics/dist/assets/LoadingOutlined.398021fd.js +0 -2
- abstra_statics/dist/assets/Login.604d7bbd.js +0 -2
- abstra_statics/dist/assets/Login.vue_vue_type_script_setup_true_lang.a8986f39.js +0 -2
- abstra_statics/dist/assets/Logo.0fee0801.js +0 -2
- abstra_statics/dist/assets/Main.17024018.js +0 -2
- abstra_statics/dist/assets/MockForm.603b1cbb.js +0 -2
- abstra_statics/dist/assets/Navbar.d4751f52.js +0 -2
- abstra_statics/dist/assets/NewEditor.bd4c258c.js +0 -8
- abstra_statics/dist/assets/OidcLoginCallback.14f293b0.js +0 -2
- abstra_statics/dist/assets/OidcLogoutCallback.cb05eca4.js +0 -2
- abstra_statics/dist/assets/OmniChat.6d6fed9c.js +0 -6
- abstra_statics/dist/assets/Organizations.91c269e6.js +0 -2
- abstra_statics/dist/assets/PhCopySimple.vue.1c5a0760.js +0 -2
- abstra_statics/dist/assets/PlayerNavbar.b15bb1f3.js +0 -2
- abstra_statics/dist/assets/ProjectLogin.2905a0d6.js +0 -2
- abstra_statics/dist/assets/Steps.ad9ac163.js +0 -2
- abstra_statics/dist/assets/Tables.ad8c6f7a.js +0 -2
- abstra_statics/dist/assets/TablesTabs.vue_vue_type_script_setup_true_lang.58bcff9a.js +0 -2
- abstra_statics/dist/assets/UploadOutlined.5f3b92b7.js +0 -2
- abstra_statics/dist/assets/Watermark.a7a7af90.js +0 -2
- abstra_statics/dist/assets/WidgetPreview.5d662c77.js +0 -2
- abstra_statics/dist/assets/ant-design.9bb31d85.js +0 -2
- abstra_statics/dist/assets/apiKey.4f2a122c.js +0 -2
- abstra_statics/dist/assets/asyncComputed.06839806.js +0 -2
- abstra_statics/dist/assets/colorHelpers.eb706cff.js +0 -2
- abstra_statics/dist/assets/constants.d30e64e7.js +0 -2
- abstra_statics/dist/assets/datetime.49213c3c.js +0 -2
- abstra_statics/dist/assets/dayjs.9d20dd08.js +0 -2
- abstra_statics/dist/assets/editor.a151d549.js +0 -2
- abstra_statics/dist/assets/editor.main.f809eb34.js +0 -2
- abstra_statics/dist/assets/fetch.ce34efab.js +0 -2
- abstra_statics/dist/assets/files.5dcc78be.js +0 -2
- abstra_statics/dist/assets/index.15909af6.js +0 -2
- abstra_statics/dist/assets/index.227be58a.js +0 -2
- abstra_statics/dist/assets/linters.1f3c2bdc.js +0 -2
- abstra_statics/dist/assets/player.490b5a36.js +0 -2
- abstra_statics/dist/assets/polling.b53cbe3d.js +0 -2
- abstra_statics/dist/assets/url.79c72bde.js +0 -2
- abstra_statics/dist/assets/userStore.5dca7ff0.js +0 -2
- abstra_statics/dist/assets/uuid.3f5b8acd.js +0 -2
- abstra_statics/dist/assets/workspaceStore.7283625b.js +0 -2
- {abstra-3.23.5.dist-info → abstra-3.23.7.dist-info}/WHEEL +0 -0
- {abstra-3.23.5.dist-info → abstra-3.23.7.dist-info}/entry_points.txt +0 -0
- {abstra-3.23.5.dist-info → abstra-3.23.7.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var F=Object.defineProperty;var E=(n,t,e)=>t in n?F(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var s=(n,t,e)=>(E(n,typeof t!="symbol"?t+"":t,e),e);import{L as o}from"./jwt-decode.esm.d86c27e0.js";import{a as k}from"./asyncComputed.59410422.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[t]="9ef2082a-e59f-4ce5-b0b3-130910802c49",n._sentryDebugIdIdentifier="sentry-dbid-9ef2082a-e59f-4ce5-b0b3-130910802c49")}catch{}})();const L=o.string(),j=o.array(L),G=o.number(),P=o.string().datetime({local:!0}),N=o.enum(["file","directory"]),_=o.string(),W=o.array(_),w=o.array(W).default([]),g=o.object({pathParts:j,size:G,lastModified:P,type:N,children:w.optional()}),M=o.boolean(),x=o.boolean(),O=o.boolean(),H=o.boolean(),v=o.boolean(),q=o.boolean();o.object({PROJECT_LIVE:M.optional(),ALLOW_RELEASE:x.optional(),CONNECTORS_CONSOLE:O.optional(),DUPLICATE_PROJECTS:H.optional(),WEB_EDITOR:v.optional(),LANGCHAIN_SMART_CHAT:q.optional()});const U=o.string(),B=o.string(),z=o.string(),$=o.string(),K=o.string();o.object({plan:U.optional(),expires:B.optional(),message:z.optional(),messageLink:$.optional(),messageCTA:K.optional()});const Q=o.string(),h=o.string(),A=o.string(),X=o.string(),Y=o.string(),Z=o.object({id:Q,name:h,description:A.optional(),projectId:X,createdAt:Y}),oo=o.string(),to=o.string(),eo=o.string(),no=o.string(),so=o.string(),ao=o.enum(["true","false"]),io=o.enum(["true","false"]),mo=o.enum(["true","false"]),co=o.string().regex(new RegExp("^[0-9]+m$")),ro=o.string().regex(new RegExp("^[0-9]+m$")),lo=o.string().regex(new RegExp("^[0-9]+Mi$")),So=o.string().regex(new RegExp("^[0-9]+Mi$")),Ao=o.string().regex(new RegExp("^[0-9]+$")),bo=o.number(),Co=o.string().regex(new RegExp("^[0-9]+$")),go=o.enum(["jusbrasil","clickbus","touchsuite","foursquare","estoca","estoca-test","irko","dr9","onfly","shared","test","abstra-projects"]),ho=o.enum(["3.9","3.10","3.11","3.12"]),uo=o.string(),po=o.string(),Vo=o.object({watermarkEnabled:ao.optional(),seleniumInstanceEnabled:io.optional(),notificationsEnabled:mo.optional(),requestsCPU:co.optional(),limitsCPU:ro.optional(),requestsMemory:lo.optional(),limitsMemory:So.optional(),minReplicas:Ao.optional(),computeUnits:bo.optional(),timeoutSeconds:Co.optional(),workerType:go.optional(),pythonVersion:ho.optional(),workerNumber:uo.optional(),baseDockerfile:po.optional()});o.object({id:oo,folderId:to,name:eo,subdomain:no,organizationId:so,deploymentResources:Vo.optional()});const fo=o.string(),Jo=o.string(),Do=o.string();o.object({name:fo,connectionType:Jo,projectId:Do});const Ro=o.string(),Io=o.string(),u=o.array(Io),p=o.string(),yo=o.string();o.object({id:Ro,emailPatterns:u,projectId:p,createdAt:yo});const To=o.string(),Fo=o.string(),Eo=o.string(),ko=o.string(),Lo=o.object({key:To,label:Fo,description:Eo,logoUrl:ko}),jo=o.literal("tokens"),Go=o.string(),Po=o.string(),No=o.string(),_o=o.string(),Wo=o.enum(["small-string","large-text","file"]),wo=o.number(),Mo=o.number(),xo=o.object({type:Wo,maxSize:wo.optional(),minSize:Mo.optional()}),Oo=o.object({key:Go,label:Po,description:No,instructions:_o.optional(),input:xo}),b=o.array(Oo),Ho=b,vo=o.object({type:jo,tokens:Ho}),qo=o.literal("oauth2"),Uo=o.string(),Bo=o.string(),zo=o.string(),$o=o.object({key:Uo,label:Bo,description:zo}),Ko=o.array($o),Qo=b,Xo=o.object({type:qo,scopes:Ko,params:Qo}),Yo=o.literal("manual"),Zo=o.object({type:Yo}),ot=o.literal("ecdsa"),tt=b,et=o.object({type:ot,params:tt}),nt=o.union([vo,Xo,Zo,et]),st=o.string(),at=o.string(),it=o.string(),mt=o.record(o.any()),ct=o.record(o.any()),rt=o.object({key:st,label:at,description:it,payloadSchema:mt,returnSchema:ct}),lt=o.array(rt),St=o.string(),At=o.string(),bt=o.record(o.any()),Ct=o.object({name:St,description:At,payloadSchema:bt.optional()}),gt=o.array(Ct);o.object({metadata:Lo,auth:nt,actions:lt,triggers:gt});const ht=o.enum(["bigint","int8","bigserial","serial8","bit","bit varying","varbit","boolean","bool","box","bytea","character","char","character varying","varchar","cidr","circle","date","double precision","float8","inet","integer","int","int4","interval","json","jsonb","line","lseg","macaddr","money","numeric","decimal","path","pg_lsn","point","polygon","real","float4","smallint","int2","smallserial","serial2","serial","serial4","text","time","time with time zone","timetz","timestamp","timestamp with time zone","timestamptz","tsquery","tsvector","txid_snapshot","uuid","xml"]),ut=o.string(),m=o.string().email(),pt=o.string(),C=o.array(pt),dt=o.string(),Vt=o.string(),ft=o.object({id:ut,email:m,roles:C,projectId:dt,createdAt:Vt}),Jt=o.string().uuid(),Dt=o.string(),Rt=o.string().uuid(),It=o.boolean(),yt=o.string(),Tt=ht,Ft=o.boolean(),Et=o.boolean(),kt=o.string(),Lt=o.string(),jt=o.object({columnId:Lt}),Gt=o.object({id:Rt,primaryKey:It,name:yt,type:Tt,unique:Ft.optional(),nullable:Et.optional(),default:kt.optional(),foreignKey:jt.optional()}),Pt=o.array(Gt),Nt=o.record(o.any()),_t=o.array(Nt),Wt=o.object({id:Jt,name:Dt,columns:Pt,data:_t}),wt=o.array(Wt);o.object({tables:wt});const d=o.string(),V=o.string(),Mt=o.boolean(),xt=o.boolean(),Ot=o.boolean(),Ht=o.boolean(),vt=o.boolean(),qt=o.boolean(),f=o.object({PROJECT_LIVE:Mt,ALLOW_RELEASE:xt,CONNECTORS_CONSOLE:Ot,DUPLICATE_PROJECTS:Ht,WEB_EDITOR:vt.optional(),LANGCHAIN_SMART_CHAT:qt.optional()}),Ut=o.string(),Bt=o.string(),zt=o.string(),$t=o.string(),Kt=o.string(),J=o.object({plan:Ut.optional(),expires:Bt.optional(),message:zt.optional(),messageLink:$t.optional(),messageCTA:Kt.optional()}),Qt=o.enum(["true","false"]),Xt=o.enum(["true","false"]),Yt=o.enum(["true","false"]),Zt=o.string().regex(new RegExp("^[0-9]+m$")),oe=o.string().regex(new RegExp("^[0-9]+m$")),te=o.string().regex(new RegExp("^[0-9]+Mi$")),ee=o.string().regex(new RegExp("^[0-9]+Mi$")),ne=o.string().regex(new RegExp("^[0-9]+$")),se=o.number(),ae=o.string().regex(new RegExp("^[0-9]+$")),ie=o.enum(["jusbrasil","clickbus","touchsuite","foursquare","estoca","estoca-test","irko","dr9","onfly","shared","test","abstra-projects"]),me=o.enum(["3.9","3.10","3.11","3.12"]),ce=o.string(),re=o.string(),le=o.object({watermarkEnabled:Qt.optional(),nativeTempDir:Xt.optional(),notificationsEnabled:Yt.optional(),requestsCPU:Zt.optional(),limitsCPU:oe.optional(),requestsMemory:te.optional(),limitsMemory:ee.optional(),minReplicas:ne.optional(),computeUnits:se.optional(),timeoutSeconds:ae.optional(),workerType:ie.optional(),pythonVersion:me.optional(),workerNumber:ce.optional(),baseDockerfile:re.optional()}),Se=o.string(),Ae=o.array(Se),be=o.object({whitelistPatterns:Ae.optional()});o.object({id:d,name:V,featureFlags:f,billingMetadata:J,deploymentResources:le.optional(),membershipsMetadata:be.optional()});const Ce=o.string(),ge=o.array(Ce);o.object({whitelistPatterns:ge.optional()});const he=o.string(),ue=o.string(),pe=o.string(),de=o.null(),Ve=o.union([pe,de]),fe=o.string(),Je=o.null(),De=o.union([fe,Je]),Re=o.string(),Ie=o.null(),ye=o.union([Re,Ie]),Te=o.string(),Fe=o.null(),Ee=o.union([Te,Fe]),ke=o.string(),Le=o.null(),je=o.union([ke,Le]),Ge=o.string(),Pe=o.null(),Ne=o.union([Ge,Pe]),_e=o.string(),We=o.null(),we=o.union([_e,We]),Me=o.object({name:he,language:ue,theme:Ve,logo_url:De,favicon_url:ye,brand_name:Ee,main_color:je,font_family:Ne,font_color:we}),xe=o.boolean(),Oe=o.string(),He=o.array(Oe),ve=o.object({is_public:xe,required_roles:He}),qe=o.object({access_control:ve}),Ue=o.string(),Be=o.number(),ze=o.array(Be),$e=o.string(),Ke=o.string(),Qe=o.string(),Xe=o.string(),Ye=o.string(),Ze=o.null(),on=o.union([Ye,Ze]),c=o.object({id:$e,target_id:Ke,target_type:Qe,type:Xe,task_type:on.optional()}),tn=c,en=o.array(tn),nn=o.string(),sn=o.string(),an=o.string(),mn=o.object({file:Ue,workflow_position:ze,transitions:en,id:nn,title:sn,schedule:an}),cn=mn,rn=o.array(cn),ln=o.string(),Sn=o.number(),An=o.array(Sn),bn=c,Cn=o.array(bn),gn=o.string(),hn=o.string(),un=o.string(),pn=o.boolean(),dn=o.boolean(),Vn=o.object({file:ln,workflow_position:An,transitions:Cn,id:gn,title:hn,path:un,is_initial:pn,enabled:dn}),fn=Vn,Jn=o.array(fn),Dn=o.string(),Rn=o.number(),In=o.array(Rn),yn=c,Tn=o.array(yn),Fn=o.string(),En=o.string(),kn=o.boolean(),Ln=o.boolean(),jn=o.string(),Gn=o.null(),Pn=o.union([jn,Gn]),Nn=o.boolean(),_n=o.string(),Wn=o.array(_n),wn=o.object({is_public:Nn,required_roles:Wn}),Mn=o.string(),xn=o.null(),On=o.union([Mn,xn]),Hn=o.string(),vn=o.null(),qn=o.union([Hn,vn]),Un=o.string(),Bn=o.boolean(),zn=o.object({variable_name:Un,enabled:Bn}),$n=o.string(),Kn=o.null(),Qn=o.union([$n,Kn]),Xn=o.boolean(),Yn=o.string(),Zn=o.string(),os=o.null(),ts=o.union([Zn,os]),es=o.string(),ns=o.null(),ss=o.union([es,ns]),as=o.string(),is=o.null(),ms=o.union([as,is]),cs=o.object({file:Dn,workflow_position:In,transitions:Tn,id:Fn,title:En,allow_restart:kn,is_initial:Ln,start_button_text:Pn,access_control:wn,welcome_title:On,restart_button_text:qn,notification_trigger:zn,timeout_message:Qn,auto_start:Xn,path:Yn,error_message:ts,start_message:ss,end_message:ms}),rs=cs,ls=o.array(rs),Ss=o.string(),As=o.number(),bs=o.array(As),Cs=c,gs=o.array(Cs),hs=o.string(),us=o.string(),ps=o.boolean(),ds=o.object({file:Ss,workflow_position:bs,transitions:gs,id:hs,title:us,is_initial:ps}),Vs=ds,fs=o.array(Vs),Js=o.literal("15.0");o.object({workspace:Me,home:qe,jobs:rn,hooks:Jn,forms:ls,scripts:fs,version:Js});const Ds=o.string(),Rs=o.string(),Is=o.string(),ys=o.null(),Ts=o.union([Is,ys]),Fs=o.string(),Es=o.null(),ks=o.union([Fs,Es]),Ls=o.string(),js=o.null(),Gs=o.union([Ls,js]),Ps=o.string(),Ns=o.null(),_s=o.union([Ps,Ns]),Ws=o.string(),ws=o.null(),Ms=o.union([Ws,ws]),xs=o.string(),Os=o.null(),Hs=o.union([xs,Os]),vs=o.string(),qs=o.null(),Us=o.union([vs,qs]),Bs=o.object({name:Ds,language:Rs,theme:Ts,logo_url:ks,favicon_url:Gs,brand_name:_s,main_color:Ms,font_family:Hs,font_color:Us}),zs=o.boolean(),$s=o.string(),Ks=o.array($s),Qs=o.object({is_public:zs,required_roles:Ks}),Xs=o.object({access_control:Qs}),Ys=o.string(),Zs=o.number(),oa=o.array(Zs),ta=o.string(),ea=o.string(),na=o.string(),sa=o.literal("task"),aa=o.string(),ia=o.null(),ma=o.union([aa,ia]),r=o.object({id:ta,target_id:ea,target_type:na,type:sa,task_type:ma.optional()}),ca=r,ra=o.array(ca),la=o.string(),Sa=o.string(),Aa=o.string(),ba=o.object({file:Ys,workflow_position:oa,transitions:ra,id:la,title:Sa,schedule:Aa}),Ca=ba,ga=o.array(Ca),ha=o.string(),ua=o.number(),pa=o.array(ua),da=r,Va=o.array(da),fa=o.string(),Ja=o.string(),Da=o.string(),Ra=o.boolean(),Ia=o.boolean(),ya=o.object({file:ha,workflow_position:pa,transitions:Va,id:fa,title:Ja,path:Da,is_initial:Ra,enabled:Ia}),Ta=ya,Fa=o.array(Ta),Ea=o.string(),ka=o.number(),La=o.array(ka),ja=r,Ga=o.array(ja),Pa=o.string(),Na=o.string(),_a=o.boolean(),Wa=o.boolean(),wa=o.string(),Ma=o.null(),xa=o.union([wa,Ma]),Oa=o.boolean(),Ha=o.string(),va=o.array(Ha),qa=o.object({is_public:Oa,required_roles:va}),Ua=o.string(),Ba=o.null(),za=o.union([Ua,Ba]),$a=o.string(),Ka=o.null(),Qa=o.union([$a,Ka]),Xa=o.string(),Ya=o.boolean(),Za=o.object({variable_name:Xa,enabled:Ya}),oi=o.string(),ti=o.null(),ei=o.union([oi,ti]),ni=o.boolean(),si=o.string(),ai=o.string(),ii=o.null(),mi=o.union([ai,ii]),ci=o.string(),ri=o.null(),li=o.union([ci,ri]),Si=o.string(),Ai=o.null(),bi=o.union([Si,Ai]),Ci=o.object({file:Ea,workflow_position:La,transitions:Ga,id:Pa,title:Na,allow_restart:_a,is_initial:Wa,start_button_text:xa,access_control:qa,welcome_title:za,restart_button_text:Qa,notification_trigger:Za,timeout_message:ei,auto_start:ni,path:si,error_message:mi,start_message:li,end_message:bi}),gi=Ci,hi=o.array(gi),ui=o.string(),pi=o.number(),di=o.array(pi),Vi=r,fi=o.array(Vi),Ji=o.string(),Di=o.string(),Ri=o.boolean(),Ii=o.object({file:ui,workflow_position:di,transitions:fi,id:Ji,title:Di,is_initial:Ri}),yi=Ii,Ti=o.array(yi),Fi=o.literal("14.0");o.object({workspace:Bs,home:Xs,jobs:ga,hooks:Fa,forms:hi,scripts:Ti,version:Fi});const Ei=o.string(),ki=o.string(),Li=o.string(),ji=o.null(),Gi=o.union([Li,ji]),Pi=o.string(),Ni=o.null(),_i=o.union([Pi,Ni]),Wi=o.string(),wi=o.null(),Mi=o.union([Wi,wi]),xi=o.string(),Oi=o.null(),Hi=o.union([xi,Oi]),vi=o.string(),qi=o.null(),Ui=o.union([vi,qi]),Bi=o.string(),zi=o.null(),$i=o.union([Bi,zi]),Ki=o.string(),Qi=o.null(),Xi=o.union([Ki,Qi]),Yi=o.object({name:Ei,language:ki,theme:Gi,logo_url:_i,favicon_url:Mi,brand_name:Hi,main_color:Ui,font_family:$i,font_color:Xi}),Zi=o.boolean(),om=o.string(),tm=o.array(om),em=o.object({is_public:Zi,required_roles:tm}),nm=o.object({access_control:em}),sm=o.string(),am=o.number(),im=o.array(am),mm=o.string(),cm=o.string(),rm=o.string(),lm=o.string(),Sm=o.string(),Am=o.null(),bm=o.union([Sm,Am]),i=o.object({id:mm,target_id:cm,target_type:rm,type:lm,task_type:bm.optional()}),Cm=i,gm=o.array(Cm),hm=o.string(),um=o.string(),pm=o.string(),dm=o.object({file:sm,workflow_position:im,transitions:gm,id:hm,title:um,schedule:pm}),Vm=dm,fm=o.array(Vm),Jm=o.string(),Dm=o.number(),Rm=o.array(Dm),Im=i,ym=o.array(Im),Tm=o.string(),Fm=o.string(),Em=o.string(),km=o.boolean(),Lm=o.boolean(),jm=o.object({file:Jm,workflow_position:Rm,transitions:ym,id:Tm,title:Fm,path:Em,is_initial:km,enabled:Lm}),Gm=jm,Pm=o.array(Gm),Nm=o.string(),_m=o.number(),Wm=o.array(_m),wm=i,Mm=o.array(wm),xm=o.string(),Om=o.string(),Hm=o.boolean(),vm=o.boolean(),qm=o.string(),Um=o.null(),Bm=o.union([qm,Um]),zm=o.boolean(),$m=o.string(),Km=o.array($m),Qm=o.object({is_public:zm,required_roles:Km}),Xm=o.string(),Ym=o.null(),Zm=o.union([Xm,Ym]),oc=o.string(),tc=o.null(),ec=o.union([oc,tc]),nc=o.string(),sc=o.boolean(),ac=o.object({variable_name:nc,enabled:sc}),ic=o.string(),mc=o.null(),cc=o.union([ic,mc]),rc=o.boolean(),lc=o.string(),Sc=o.string(),Ac=o.null(),bc=o.union([Sc,Ac]),Cc=o.string(),gc=o.null(),hc=o.union([Cc,gc]),uc=o.string(),pc=o.null(),dc=o.union([uc,pc]),Vc=o.object({file:Nm,workflow_position:Wm,transitions:Mm,id:xm,title:Om,allow_restart:Hm,is_initial:vm,start_button_text:Bm,access_control:Qm,welcome_title:Zm,restart_button_text:ec,notification_trigger:ac,timeout_message:cc,auto_start:rc,path:lc,error_message:bc,start_message:hc,end_message:dc}),fc=Vc,Jc=o.array(fc),Dc=o.string(),Rc=o.number(),Ic=o.array(Rc),yc=i,Tc=o.array(yc),Fc=o.string(),Ec=o.string(),kc=o.boolean(),Lc=o.object({file:Dc,workflow_position:Ic,transitions:Tc,id:Fc,title:Ec,is_initial:kc}),jc=Lc,Gc=o.array(jc),Pc=o.string(),Nc=o.string(),_c=o.string().uuid(),Wc=o.null(),wc=o.union([_c,Wc]),Mc=o.number(),xc=o.array(Mc),Oc=i,Hc=o.array(Oc),vc=o.string().uuid(),qc=o.null(),Uc=o.union([vc,qc]),Bc=o.object({id:Pc,title:Nc,project_id:wc,workflow_position:xc,transitions:Hc,client_stage_id:Uc}),zc=o.array(Bc),$c=o.string(),Kc=o.string(),Qc=o.number(),Xc=o.array(Qc),Yc=i,Zc=o.array(Yc),or=o.object({id:$c,title:Kc,workflow_position:Xc,transitions:Zc}),tr=o.array(or),er=o.literal("13.0");o.object({workspace:Yi,home:nm,jobs:fm,hooks:Pm,forms:Jc,scripts:Gc,agents:zc,clients:tr,version:er});const nr=o.string(),sr=o.string(),ar=o.string(),ir=o.null(),mr=o.union([ar,ir]),cr=o.string(),rr=o.null(),lr=o.union([cr,rr]),Sr=o.string(),Ar=o.null(),br=o.union([Sr,Ar]),Cr=o.string(),gr=o.null(),hr=o.union([Cr,gr]),ur=o.string(),pr=o.null(),dr=o.union([ur,pr]),Vr=o.string(),fr=o.null(),Jr=o.union([Vr,fr]),Dr=o.string(),Rr=o.null(),Ir=o.union([Dr,Rr]),yr=o.object({name:nr,language:sr,theme:mr,logo_url:lr,favicon_url:br,brand_name:hr,main_color:dr,font_family:Jr,font_color:Ir}),Tr=o.boolean(),Fr=o.string(),Er=o.array(Fr),kr=o.object({is_public:Tr,required_roles:Er}),Lr=o.object({access_control:kr}),jr=o.string(),Gr=o.number(),Pr=o.array(Gr),Nr=o.string(),_r=o.string(),Wr=o.string(),wr=o.string(),Mr=o.string(),xr=o.null(),Or=o.union([Mr,xr]),l=o.object({id:Nr,target_id:_r,target_type:Wr,type:wr,task_type:Or.optional()}),Hr=l,vr=o.array(Hr),qr=o.string(),Ur=o.string(),Br=o.string(),zr=o.object({file:jr,workflow_position:Pr,transitions:vr,id:qr,title:Ur,schedule:Br}),$r=zr,Kr=o.array($r),Qr=o.string(),Xr=o.number(),Yr=o.array(Xr),Zr=l,ol=o.array(Zr),tl=o.string(),el=o.string(),nl=o.string(),sl=o.boolean(),al=o.boolean(),il=o.object({file:Qr,workflow_position:Yr,transitions:ol,id:tl,title:el,path:nl,is_initial:sl,enabled:al}),ml=il,cl=o.array(ml),rl=o.string(),ll=o.number(),Sl=o.array(ll),Al=l,bl=o.array(Al),Cl=o.string(),gl=o.string(),hl=o.boolean(),ul=o.boolean(),pl=o.string(),dl=o.null(),Vl=o.union([pl,dl]),fl=o.boolean(),Jl=o.string(),Dl=o.array(Jl),Rl=o.object({is_public:fl,required_roles:Dl}),Il=o.string(),yl=o.null(),Tl=o.union([Il,yl]),Fl=o.string(),El=o.null(),kl=o.union([Fl,El]),Ll=o.string(),jl=o.boolean(),Gl=o.object({variable_name:Ll,enabled:jl}),Pl=o.string(),Nl=o.null(),_l=o.union([Pl,Nl]),Wl=o.boolean(),wl=o.string(),Ml=o.string(),xl=o.null(),Ol=o.union([Ml,xl]),Hl=o.string(),vl=o.null(),ql=o.union([Hl,vl]),Ul=o.string(),Bl=o.null(),zl=o.union([Ul,Bl]),$l=o.object({file:rl,workflow_position:Sl,transitions:bl,id:Cl,title:gl,allow_restart:hl,is_initial:ul,start_button_text:Vl,access_control:Rl,welcome_title:Tl,restart_button_text:kl,notification_trigger:Gl,timeout_message:_l,auto_start:Wl,path:wl,error_message:Ol,start_message:ql,end_message:zl}),Kl=$l,Ql=o.array(Kl),Xl=o.string(),Yl=o.number(),Zl=o.array(Yl),oS=l,tS=o.array(oS),eS=o.string(),nS=o.string(),sS=o.boolean(),aS=o.object({file:Xl,workflow_position:Zl,transitions:tS,id:eS,title:nS,is_initial:sS}),iS=aS,mS=o.array(iS),cS=o.literal("12.0");o.object({workspace:yr,home:Lr,jobs:Kr,hooks:cl,forms:Ql,scripts:mS,version:cS});const rS=o.enum(["true","false"]),lS=o.enum(["true","false"]),SS=o.enum(["true","false"]),AS=o.string().regex(new RegExp("^[0-9]+m$")),bS=o.string().regex(new RegExp("^[0-9]+m$")),CS=o.string().regex(new RegExp("^[0-9]+Mi$")),gS=o.string().regex(new RegExp("^[0-9]+Mi$")),hS=o.string().regex(new RegExp("^[0-9]+$")),uS=o.number(),pS=o.string().regex(new RegExp("^[0-9]+$")),dS=o.enum(["jusbrasil","clickbus","touchsuite","foursquare","estoca","estoca-test","irko","dr9","onfly","shared","test","abstra-projects"]),VS=o.enum(["3.9","3.10","3.11","3.12"]),fS=o.string(),JS=o.string();o.object({watermarkEnabled:rS.optional(),nativeTempDir:lS.optional(),notificationsEnabled:SS.optional(),requestsCPU:AS.optional(),limitsCPU:bS.optional(),requestsMemory:CS.optional(),limitsMemory:gS.optional(),minReplicas:hS.optional(),computeUnits:uS.optional(),timeoutSeconds:pS.optional(),workerType:dS.optional(),pythonVersion:VS.optional(),workerNumber:fS.optional(),baseDockerfile:JS.optional()});const DS=o.enum(["true","false"]),RS=o.enum(["true","false"]),IS=o.enum(["true","false"]),yS=o.string().regex(new RegExp("^[0-9]+m$")),TS=o.string().regex(new RegExp("^[0-9]+m$")),FS=o.string().regex(new RegExp("^[0-9]+Mi$")),ES=o.string().regex(new RegExp("^[0-9]+Mi$")),kS=o.string().regex(new RegExp("^[0-9]+$")),LS=o.number(),jS=o.string().regex(new RegExp("^[0-9]+$")),GS=o.enum(["jusbrasil","clickbus","touchsuite","foursquare","estoca","estoca-test","irko","dr9","onfly","shared","test","abstra-projects"]),PS=o.enum(["3.9","3.10","3.11","3.12"]),NS=o.string(),_S=o.string();o.object({watermarkEnabled:DS.optional(),seleniumInstanceEnabled:RS.optional(),notificationsEnabled:IS.optional(),requestsCPU:yS.optional(),limitsCPU:TS.optional(),requestsMemory:FS.optional(),limitsMemory:ES.optional(),minReplicas:kS.optional(),computeUnits:LS.optional(),timeoutSeconds:jS.optional(),workerType:GS.optional(),pythonVersion:PS.optional(),workerNumber:NS.optional(),baseDockerfile:_S.optional()});const WS=o.enum(["file","directory"]),wS=o.string(),MS=o.string(),xS=o.string().datetime({local:!0}),OS=o.number(),HS=o.string(),vS=o.number(),qS=o.object({type:WS,path:wS,name:MS,date:xS,sizeBytes:OS.optional(),sizeHuman:HS.optional(),itemCount:vS.optional()}),US=o.literal("replace-code"),BS=o.string(),zS=o.string(),$S=o.literal("replace-code"),KS=o.object({action:US,actionLabel:BS,newCode:zS,type:$S.optional()}),QS=KS,XS=o.literal("edit-stage-name"),YS=o.string(),ZS=o.string(),oA=o.literal("edit-stage-name"),tA=o.object({action:XS,actionLabel:YS,newName:ZS,type:oA.optional()}),eA=tA,nA=o.literal("add-notifiable-email"),sA=o.string(),aA=o.string(),iA=o.object({action:nA,actionLabel:sA,email:aA}),mA=iA,cA=o.literal("edit-stage-filename"),rA=o.string(),lA=o.string(),SA=o.literal("edit-stage-filename"),AA=o.object({action:cA,actionLabel:rA,newFilename:lA,type:SA.optional()}),bA=AA,CA=o.union([QS,eA,mA,bA]),gA=o.array(CA);o.object({actions:gA});const hA=o.literal("create-table"),uA=o.string(),pA=o.string().uuid(),dA=o.string(),VA=o.object({action:hA,actionLabel:uA,tableId:pA,tableName:dA}),fA=VA,JA=o.literal("create-column"),DA=o.string(),RA=o.string().uuid(),IA=o.string(),yA=o.enum(["varchar","int","boolean","json","date","timestamp","uuid","real"]),TA=o.boolean(),FA=o.string(),EA=o.boolean(),kA=o.object({action:JA,actionLabel:DA,tableId:RA,columnName:IA,columnType:yA,nullable:TA,default:FA,unique:EA}),LA=kA,jA=o.literal("insert-rows"),GA=o.string(),PA=o.string().uuid(),NA=o.record(o.any()),_A=o.array(NA),WA=o.object({action:jA,actionLabel:GA,tableId:PA,rows:_A}),wA=WA,MA=o.literal("edit-table"),xA=o.string(),OA=o.string().uuid(),HA=o.string(),vA=o.object({action:MA,actionLabel:xA,tableId:OA,newTableName:HA}),qA=vA,UA=o.literal("edit-column"),BA=o.string(),zA=o.string().uuid(),$A=o.string().uuid(),KA=o.string(),QA=o.enum(["varchar","int","boolean","json","date","timestamp","uuid","real"]),XA=o.boolean(),YA=o.string(),ZA=o.boolean(),ob=o.string().uuid(),tb=o.object({columnId:ob}),eb=o.object({columnName:KA.optional(),columnType:QA.optional(),nullable:XA.optional(),default:YA.optional(),unique:ZA.optional(),foreignKey:tb.optional()}),nb=o.object({action:UA,actionLabel:BA,columnId:zA,tableId:$A,changes:eb}),sb=nb,ab=o.literal("edit-env-var"),ib=o.string(),mb=o.string(),cb=o.string(),rb=o.object({action:ab,actionLabel:ib,key:mb,newValue:cb}),lb=rb,Sb=o.literal("set-env-var"),Ab=o.string(),bb=o.string(),Cb=o.string(),gb=o.object({action:Sb,actionLabel:Ab,key:bb,value:Cb}),hb=gb,ub=o.literal("install-package"),pb=o.string(),db=o.string(),Vb=o.object({action:ub,actionLabel:pb,packageName:db}),fb=Vb,Jb=o.literal("create-stage"),Db=o.string(),Rb=o.string().uuid(),Ib=o.enum(["form","job","hook","tasklet"]),yb=o.string(),Tb=o.string(),Fb=o.string(),Eb=o.number(),kb=o.number(),Lb=o.object({x:Eb,y:kb}),jb=o.literal("create-stage"),Gb=o.object({action:Jb,actionLabel:Db,id:Rb,stageType:Ib,stageName:yb,code:Tb,filename:Fb,position:Lb,type:jb.optional()}),Pb=Gb,Nb=o.literal("add-transition"),_b=o.string(),Wb=o.string().uuid(),wb=o.string().uuid(),Mb=o.object({action:Nb,actionLabel:_b,sourceStageId:Wb,targetStageId:wb}),xb=Mb,Ob=o.literal("edit-stage"),Hb=o.string(),vb=o.string().uuid(),qb=o.enum(["form","job","hook","tasklet"]),Ub=o.string(),Bb=o.object({action:Ob,actionLabel:Hb,stageId:vb,stageType:qb,stageNewTitle:Ub}),zb=Bb,$b=o.union([fA,LA,wA,qA,sb,lb,hb,fb,Pb,xb,zb]),Kb=o.array($b);o.object({actions:Kb});const Qb=o.literal("replace-code"),Xb=o.string(),Yb=o.number(),Zb=o.number(),oC=o.object({start:Yb,end:Zb}),tC=o.string(),eC=o.object({action:Qb,actionLabel:Xb,lines:oC,newCode:tC}),nC=eC,sC=o.literal("edit-stage-name"),aC=o.string(),iC=o.string(),mC=o.object({action:sC,actionLabel:aC,newName:iC}),cC=mC,rC=o.literal("add-notifiable-email"),lC=o.string(),SC=o.string(),AC=o.object({action:rC,actionLabel:lC,email:SC}),bC=AC,CC=o.union([nC,cC,bC]),gC=o.array(CC);o.object({actions:gC});const hC=o.literal("create-table"),uC=o.string(),pC=o.string().uuid(),dC=o.string(),VC=o.object({action:hC,actionLabel:uC,tableId:pC,tableName:dC}),fC=VC,JC=o.literal("create-column"),DC=o.string(),RC=o.string().uuid(),IC=o.string(),yC=o.enum(["varchar","int","boolean","json","date","timestamp","uuid","real"]),TC=o.object({action:JC,actionLabel:DC,tableId:RC,columnName:IC,columnType:yC}),FC=TC,EC=o.literal("set-env-var"),kC=o.string(),LC=o.string(),jC=o.string(),GC=o.object({action:EC,actionLabel:kC,key:LC,value:jC}),PC=GC,NC=o.literal("create-stage"),_C=o.string(),WC=o.string().uuid(),wC=o.enum(["form","job","hook","tasklet"]),MC=o.string(),xC=o.string(),OC=o.string(),HC=o.number(),vC=o.number(),qC=o.object({x:HC,y:vC}),UC=o.object({action:NC,actionLabel:_C,id:WC,stageType:wC,stageName:MC,code:xC,filename:OC,position:qC}),BC=UC,zC=o.literal("add-transition"),$C=o.string(),KC=o.string().uuid(),QC=o.string().uuid(),XC=o.object({action:zC,actionLabel:$C,sourceStageId:KC,targetStageId:QC}),YC=XC,ZC=o.union([fC,FC,PC,BC,YC]),og=o.array(ZC);o.object({actions:og});const tg=d,eg=V,ng=f,sg=J;o.object({id:tg,name:eg,featureFlags:ng,billingMetadata:sg});const ag=A;o.object({description:ag});const ig=o.number(),mg=o.number();o.object({offset:ig.optional(),limit:mg.optional()});const cg=Z;o.array(cg);const rg=h,lg=A;o.object({name:rg,description:lg.optional()});const Sg=qS,Ag=o.array(Sg),bg=o.number();o.object({items:Ag,totalCount:bg});const Cg=m,gg=C;o.object({email:Cg.optional(),roles:gg.optional()});const hg=o.number(),ug=o.number();o.object({offset:hg.optional(),limit:ug.optional()});const pg=ft;o.array(pg);const dg=m,Vg=C;o.object({email:dg,roles:Vg});const fg=u;o.object({emailPatterns:fg});const Jg=p;o.object({projectId:Jg});const Dg=o.literal("tokens"),Rg=o.record(o.string());o.object({type:Dg,tokens:Rg});const Ig=o.string(),yg=o.string();o.object({redirect:Ig,ping:yg});const Tg=o.string(),Fg=o.record(o.any()),Eg=o.string(),kg=o.object({key:Tg,value:Fg,type:Eg}),Lg=kg,jg=o.array(Lg),Gg=o.string(),Pg=o.string(),Ng=o.record(o.any()),D=o.enum(["waiting","running","processing","finished","failed","abandoned"]),_g=o.string(),Wg=o.string(),wg=o.string(),Mg=o.string();o.object({id:Gg,stage:Pg,data:Ng,status:D,created_at:_g,updated_at:Wg,parent_id:wg.optional(),execution_id:Mg.optional()});const xg=o.string(),Og=o.string(),Hg=o.string(),vg=o.string(),qg=D,Ug=jg,Bg=o.string(),zg=o.object({id:xg,created_at:Og,updated_at:Hg.optional(),assignee:vg.optional(),status:qg,content:Ug,stage:Bg.optional()}),$g=zg,R=o.array($g),Kg=o.string(),Qg=o.enum(["form","hook","job","script"]),Xg=o.string(),Yg=o.string(),Zg=o.boolean(),I=o.object({id:Kg,type:Qg,title:Xg,path:Yg.optional(),can_be_started:Zg}),oh=I,th=R,eh=o.number(),nh=o.boolean(),sh=o.object({selected_stage:oh,stage_run_cards:th,total_count:eh,loading:nh.optional()}),ah=sh,ih=o.array(ah),mh=ih;o.object({columns:mh});const ch=R,rh=o.string(),lh=o.array(rh),Sh=o.number();o.object({stage_run_cards:ch,not_found_stages:lh,total_count:Sh});const Ah=I;o.array(Ah);const bh=o.string(),Ch=bh,gh=o.literal("text"),hh=o.string(),uh=o.object({type:gh,text:hh}),ph=o.literal("file"),dh=o.string(),Vh=o.string(),fh=o.object({type:ph,fileName:dh,fileContent:Vh}),Jh=o.union([uh,fh]),Dh=o.array(Jh),Rh=Dh,Ih=o.record(o.any()),yh=o.string();o.object({conversationId:Ch,content:Rh,context:Ih,humanApproval:yh.optional()});const Th=o.string(),Fh=o.enum(["changed","created","deleted","moved"]),Eh=o.string(),_p=o.object({filepath:Th,event:Fh,content:Eh.optional()}),kh=o.string(),Lh=o.string(),jh=o.literal("bug"),Gh=o.string(),Ph=o.string(),Nh=o.string(),_h=o.object({name:Ph,label:Nh}),Wh=_h,wh=o.array(Wh),Mh=o.object({label:Gh,fixes:wh}),xh=Mh,Oh=o.array(xh),Hh=o.object({name:kh,label:Lh,type:jh,issues:Oh}),vh=o.string();o.object({waitingRoomUrl:vh});const qh=o.string(),Uh=o.string(),Bh=o.object({name:qh,value:Uh}),zh=o.string(),Wp=o.object({separator:zh}),$h=o.boolean(),wp=o.object({ok:$h.optional()}),Kh=g,Qh=o.enum(["form","hook","job","script"]),Xh=o.string(),Yh=o.object({type:Qh,id:Xh}),Zh=o.array(Yh),ou=o.object({file:Kh,stages:Zh}),Mp=o.array(ou),tu=o.boolean(),xp=o.object({ok:tu.optional()}),eu=o.string(),nu=o.array(eu),su=o.string(),au=o.array(su),Op=o.object({pathParts:nu,newPathParts:au}),iu=o.boolean(),Hp=o.object({ok:iu.optional()}),mu=o.string(),cu=o.number(),ru=o.enum(["delete","insert"]),lu=o.string(),Su=o.number(),Au=o.object({siteId:mu,pos:cu,type:ru,value:lu.optional(),length:Su.optional()});o.array(Au);const bu=o.boolean(),vp=o.object({ok:bu.optional()}),qp=g,Cu=o.boolean();o.object({success:Cu});const gu=Hh;o.array(gu);const hu=Bh;o.array(hu);const uu=o.string();o.object({message:uu});const pu=o.boolean(),du=o.string();o.object({success:pu,message:du});const Vu=o.string();o.object({commitHash:Vu});const fu=o.boolean(),Ju=o.string();o.object({success:fu,message:Ju});const Du=o.boolean(),Ru=o.string();o.object({success:Du,message:Ru});const Iu=o.boolean(),yu=o.string();o.object({success:Iu,message:yu});const Tu=o.record(o.string()),Fu=o.boolean();o.object({remotes:Tu,hasAbstraRemote:Fu});const Eu=o.string(),ku=o.string();o.object({branch:Eu.optional(),commitHash:ku.optional()});const Lu=o.boolean(),ju=o.string();o.object({success:Lu,message:ju});const Gu=o.boolean(),Pu=o.string(),Nu=o.string(),_u=o.array(Nu),Wu=o.string(),wu=o.string(),Mu=o.string(),xu=o.string(),Ou=o.object({hash:Wu,message:wu,author:Mu,date:xu}).nullable(),Hu=o.boolean(),vu=o.string(),qu=o.array(vu),Uu=o.string(),Bu=o.string(),zu=o.string(),$u=o.object({path:Uu,status:Bu,statusCode:zu}),Ku=o.array($u),Qu=o.boolean(),Xu=o.string().nullable(),Yu=o.boolean(),Zu=o.boolean(),op=o.string().nullable(),tp=o.string(),ep=o.array(tp),np=o.number(),sp=o.number(),ap=o.object({ahead:np,behind:sp}).nullable(),ip=o.object({success:Qu,remoteCommit:Xu,hasRemoteChanges:Yu,hasConflicts:Zu,message:op,availableBranches:ep,aheadBehind:ap}).nullable();o.object({available:Gu,branch:Pu,branches:_u,lastCommit:Ou,hasChanges:Hu,changedFiles:qu,changedFilesWithStatus:Ku,remoteStatus:ip});const mp=o.string(),cp=o.string(),rp=o.string(),lp=o.string(),Sp=o.object({hash:mp,message:cp,author:rp,date:lp}),Ap=o.array(Sp),bp=o.boolean();o.object({commits:Ap,hasMore:bp});const Cp=o.boolean(),gp=o.string();o.object({success:Cp,message:gp});const hp=m;o.object({email:hp});const up=o.enum(["ALLOWED","UNAUTHORIZED","FORBIDEN","NOT_FOUND"]);o.object({status:up});const pp=o.string(),dp=o.string().datetime({local:!0}),Vp=o.enum(["user","assistant"]),fp=o.string(),Jp=o.string().datetime({local:!0}),Dp=o.string(),Rp=o.string(),Ip=o.object({role:Vp,content:fp,createdAt:Jp,toolTitle:Dp.optional(),toolCallId:Rp.optional()}),yp=o.array(Ip),Tp=o.object({id:pp,createdAt:dp,messages:yp}),Fp=Tp;o.array(Fp);class Ep{async check(){return(await fetch("/_editor/api/linters/check")).json()}async fix(t,e){const a=await fetch(`/_editor/api/linters/fix/${t}/${e}`,{method:"POST"});if(!a.ok)throw new Error("Failed to fix");return S.refetch(),a.json()}}const y=new Ep,S=k(async()=>(await y.check()).map(t=>new jp(t)));class kp{constructor(t,e){s(this,"name");s(this,"label");s(this,"ruleName");this.name=t.name,this.label=t.label,this.ruleName=e}async fix(){await y.fix(this.ruleName,this.name)}}class Lp{constructor(t,e){s(this,"label");s(this,"fixes");this.ruleName=e,this.label=t.label,this.fixes=t.fixes.map(a=>new kp(a,e))}}class jp{constructor(t){s(this,"name");s(this,"label");s(this,"type");s(this,"issues");this.name=t.name,this.label=t.label,this.type=t.type,this.issues=t.issues.map(e=>new Lp(e,this.name))}static get asyncComputed(){return S}static fromName(t){var a;const e=(a=S.result.value)==null?void 0:a.find(T=>T.name===t);if(!e)throw new Error(`Rule ${t} not found`);return e}}export{_p as A,jp as L,Mp as a,qp as b,wp as c,vp as d,Op as e,Hp as f,xp as g,Wp as h};
|
|
2
|
+
//# sourceMappingURL=linters.9ba6d5f8.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{m as l}from"./toggleHighContrast.
|
|
1
|
+
import{m as l}from"./toggleHighContrast.510bdb1d.js";import"./jwt-decode.esm.d86c27e0.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]="1cdfbbcd-21ef-4756-8a0e-a326c01ddbde",t._sentryDebugIdIdentifier="sentry-dbid-1cdfbbcd-21ef-4756-8a0e-a326c01ddbde")}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,l);var d=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],
|
|
7
|
-
//# sourceMappingURL=liquid.
|
|
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,l);var d=["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(`<(?!(?:${d.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:n.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${d.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.029287f8.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{h as n}from"./router.
|
|
2
|
-
//# sourceMappingURL=member.
|
|
1
|
+
import{h as n}from"./router.7936fd78.js";import"./jwt-decode.esm.d86c27e0.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]="8e5306be-bedc-47f7-bb60-fb9cb55c509c",t._sentryDebugIdIdentifier="sentry-dbid-8e5306be-bedc-47f7-bb60-fb9cb55c509c")}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.3aca30ee.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
|
|
2
|
-
//# sourceMappingURL=metadata.
|
|
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.d86c27e0.js";import{F as y,G as w,I as M}from"./PhUserList.vue.abdd6da1.js";import{G as $}from"./PhWebhooksLogo.vue.00b65b2c.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]="9838e87d-4767-4876-a601-2a24756f9023",e._sentryDebugIdIdentifier="sentry-dbid-9838e87d-4767-4876-a601-2a24756f9023")}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.18d0a278.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var P=Object.defineProperty;var Z=(i,e,t)=>e in i?P(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var o=(i,e,t)=>(Z(i,typeof e!="symbol"?e+"":e,t),t);import{h as C}from"./router.e5052323.js";import{d as L,am as I,c as m,o as y,a5 as _,a7 as D,h as R,e6 as U,e as v,r as u,a as T,b as H,g as j,ed as q,u as x,aV as J,_ as V,f as z,eH as G,i as Q,ae as W,q as X,N as $}from"./jwt-decode.esm.bcf2db26.js";import{P as K}from"./record.6b6d4da9.js";import{u as S}from"./uuid.3f5b8acd.js";import{I as Y}from"./PhCopySimple.vue.1c5a0760.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[e]="ff1b432e-dfd7-4492-987e-8e35a0ee152f",i._sentryDebugIdIdentifier="sentry-dbid-ff1b432e-dfd7-4492-987e-8e35a0ee152f")}catch{}})();const ee=["width","height","fill","transform"],te={key:0},se=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),oe=[se],re={key:1},ie=v("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),ae=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),ne=[ie,ae],le={key:2},ce=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),he=[ce],de={key:3},ue=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),ge=[ue],fe={key:4},pe=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),ye=[pe],ve={key:5},_e=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),me=[_e],we={name:"PhCheckCircle"},Se=L({...we,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,t=I("weight","regular"),s=I("size","1em"),r=I("color","currentColor"),c=I("mirrored",!1),l=m(()=>{var n;return(n=e.weight)!=null?n:t}),h=m(()=>{var n;return(n=e.size)!=null?n:s}),d=m(()=>{var n;return(n=e.color)!=null?n:r}),f=m(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:c?"scale(-1, 1)":void 0);return(n,g)=>(y(),_("svg",U({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:d.value,transform:f.value},n.$attrs),[D(n.$slots,"default"),l.value==="bold"?(y(),_("g",te,oe)):l.value==="duotone"?(y(),_("g",re,ne)):l.value==="fill"?(y(),_("g",le,he)):l.value==="light"?(y(),_("g",de,ge)):l.value==="regular"?(y(),_("g",fe,ye)):l.value==="thin"?(y(),_("g",ve,me)):R("",!0)],16,ee))}});class O{constructor(e,t){o(this,"staging");this.flag=e,this.acc=t,this.staging=""}}class be extends O{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 Ce extends O{constructor(){super("___TEXT_MODE___","")}reduce(e){return this.staging+=e,this.acc=this.staging,e}}class B{constructor(){o(this,"mode");o(this,"modes",[new Ce,new be]);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 N=300;class Ie{constructor(){o(this,"_baseUrl","/_editor/api/ai");o(this,"_headers",{"Content-Type":"application/json"})}async*sendMessage(e,t,s,r,c){var n;const l={conversationId:e,content:t,context:s,humanApproval:c},h=await fetch(`${this._baseUrl}/stream`,{method:"POST",headers:this._headers,body:JSON.stringify(l)});if(!h.ok)throw new Error("Failed to send message");const d=(n=h.body)==null?void 0:n.getReader();if(!d)throw new Error("No response body");const f=new B;for(;!r();){const g=await d.read();if(g.done)break;for(const p of f.reduceInChunks(N,new TextDecoder().decode(g.value)))yield p}}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,r){const c={vote:e,question:t,answer:s,context:r};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 Ae{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,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 B;for(;!r();){const g=await d.read();if(g.done)break;for(const p of f.reduceInChunks(N,new TextDecoder().decode(g.value)))yield p}}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,r){throw new Error("Method not implemented.")}}const Te=L({__name:"CopyButton",props:{textToCopy:{}},setup(i){const e=i,t=u(!1),s=()=>{navigator.clipboard.writeText(e.textToCopy),t.value=!0,setTimeout(()=>t.value=!1,2e3)},r=m(()=>t.value?"Copied!":"Copy to clipboard");return(c,l)=>(y(),T(x(J),null,{title:H(()=>[j(q(r.value),1)]),default:H(()=>[v("div",{class:"copy-button",onClick:s},[t.value?(y(),T(x(Se),{key:1,color:"#fff",size:"22"})):(y(),T(x(Y),{key:0,color:"#fff",size:"22"}))])]),_:1}))}});const xe=V(Te,[["__scopeId","data-v-9f87bac2"]]);class F{constructor(e,t,s){o(this,"_repository");o(this,"conversationId");o(this,"_input");o(this,"_badgeState");o(this,"_smartChatState");o(this,"_logService");o(this,"_stageId",null);o(this,"_hasError",u(null));o(this,"_isLoadingHistory",u(!1));o(this,"_history",u([]));o(this,"_threadHistoryFetchInfo",u({limit:10,offset:0,done:!1}));o(this,"_recentlyAccessedThreads",u([]));o(this,"_environment");o(this,"codeForApproval",u(null));o(this,"setupThread",async()=>{this.conversationId.value=`abstra-assistant-thread-${S()}`,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,"setStageId",e=>{this._stageId=e});o(this,"setError",e=>{this._hasError.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=z(xe,{textToCopy:t.textContent});G(s,t)})});o(this,"clearLogService",()=>{this._logService.clear()});o(this,"send",async(e,t)=>{var s,r,c,l;this.conversationId.value||await this.setupThread(),this._logService.log({type:"ai-input",log:this._input.value}),this._smartChatState.value="processing";try{const h=S(),d=this.conversationId.value;if(!d)throw new Error("Conversation ID is not set");const f=[{type:"text",text:this._input.value}],n={currentEditorUrl:window.location.href,panesInfo:e||{}},g=this._repository.sendMessage(d,f,n,this.isIdle.bind(this),t);let p="",k=h,A="";for await(const w of g){if(this.isIdle())break;this._smartChatState.value==="processing"&&(this._smartChatState.value="answering");const a=w;if(typeof a=="string")p+=a,A+=a,this._logService.log({type:"ai-output",log:A},k);else if(a instanceof Object)if(a.type==="ai-tool-approval")if(this._logService.log({type:"ai-tool-approval",toolCallId:a.toolCallId,description:a.title,args:a.args,disabled:!1,needsApproval:!0,loading:!1}),((s=a.args)==null?void 0:s.file)&&((r=a.args)==null?void 0:r.replacements)){let b=a.args.replacements;typeof b=="string"&&(b=JSON.parse(b)),this.codeForApproval.value={file:a.args.file,replacements:b.map(M=>({oldContext:M.old_context,newContext:M.new_context}))}}else((c=a.args)==null?void 0:c.file)&&((l=a.args)==null?void 0:l.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=S(),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:p,createdAt:new Date().toISOString()}),w)),this._input.value=""}catch(h){this._logService.log({type:"ai-output",log:"Sorry, there was an issue processing your request. Please try again later."}),console.error(h),Q(h)}finally{this._smartChatState.value="idle",this.renderCopyButtons()}});o(this,"abort",()=>{if(!this.conversationId.value)throw new Error("Conversation ID is not set");this._repository.abortStreaming(this.conversationId.value),this._smartChatState.value="idle"});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 P=Object.defineProperty;var Z=(i,e,t)=>e in i?P(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var o=(i,e,t)=>(Z(i,typeof e!="symbol"?e+"":e,t),t);import{h as C}from"./router.7936fd78.js";import{d as L,am as I,c as m,o as y,a5 as _,a7 as D,h as R,e6 as U,e as v,r as u,a as T,b as H,g as j,ed as q,u as x,aV as J,_ as V,f as z,eH as G,i as Q,ae as W,q as X,N as $}from"./jwt-decode.esm.d86c27e0.js";import{P as K}from"./record.d087b37e.js";import{u as S}from"./uuid.d6d43ef5.js";import{I as Y}from"./PhCopySimple.vue.e887b43c.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[e]="e1c21fd9-a5d4-43ec-8a5b-54a7d18c5281",i._sentryDebugIdIdentifier="sentry-dbid-e1c21fd9-a5d4-43ec-8a5b-54a7d18c5281")}catch{}})();const ee=["width","height","fill","transform"],te={key:0},se=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),oe=[se],re={key:1},ie=v("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),ae=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),ne=[ie,ae],le={key:2},ce=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),he=[ce],de={key:3},ue=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),ge=[ue],fe={key:4},pe=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),ye=[pe],ve={key:5},_e=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),me=[_e],we={name:"PhCheckCircle"},Se=L({...we,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,t=I("weight","regular"),s=I("size","1em"),r=I("color","currentColor"),c=I("mirrored",!1),l=m(()=>{var n;return(n=e.weight)!=null?n:t}),h=m(()=>{var n;return(n=e.size)!=null?n:s}),d=m(()=>{var n;return(n=e.color)!=null?n:r}),f=m(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:c?"scale(-1, 1)":void 0);return(n,g)=>(y(),_("svg",U({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:d.value,transform:f.value},n.$attrs),[D(n.$slots,"default"),l.value==="bold"?(y(),_("g",te,oe)):l.value==="duotone"?(y(),_("g",re,ne)):l.value==="fill"?(y(),_("g",le,he)):l.value==="light"?(y(),_("g",de,ge)):l.value==="regular"?(y(),_("g",fe,ye)):l.value==="thin"?(y(),_("g",ve,me)):R("",!0)],16,ee))}});class O{constructor(e,t){o(this,"staging");this.flag=e,this.acc=t,this.staging=""}}class be extends O{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 Ce extends O{constructor(){super("___TEXT_MODE___","")}reduce(e){return this.staging+=e,this.acc=this.staging,e}}class B{constructor(){o(this,"mode");o(this,"modes",[new Ce,new be]);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 N=300;class Ie{constructor(){o(this,"_baseUrl","/_editor/api/ai");o(this,"_headers",{"Content-Type":"application/json"})}async*sendMessage(e,t,s,r,c){var n;const l={conversationId:e,content:t,context:s,humanApproval:c},h=await fetch(`${this._baseUrl}/stream`,{method:"POST",headers:this._headers,body:JSON.stringify(l)});if(!h.ok)throw new Error("Failed to send message");const d=(n=h.body)==null?void 0:n.getReader();if(!d)throw new Error("No response body");const f=new B;for(;!r();){const g=await d.read();if(g.done)break;for(const p of f.reduceInChunks(N,new TextDecoder().decode(g.value)))yield p}}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,r){const c={vote:e,question:t,answer:s,context:r};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 Ae{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,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 B;for(;!r();){const g=await d.read();if(g.done)break;for(const p of f.reduceInChunks(N,new TextDecoder().decode(g.value)))yield p}}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,r){throw new Error("Method not implemented.")}}const Te=L({__name:"CopyButton",props:{textToCopy:{}},setup(i){const e=i,t=u(!1),s=()=>{navigator.clipboard.writeText(e.textToCopy),t.value=!0,setTimeout(()=>t.value=!1,2e3)},r=m(()=>t.value?"Copied!":"Copy to clipboard");return(c,l)=>(y(),T(x(J),null,{title:H(()=>[j(q(r.value),1)]),default:H(()=>[v("div",{class:"copy-button",onClick:s},[t.value?(y(),T(x(Se),{key:1,color:"#fff",size:"22"})):(y(),T(x(Y),{key:0,color:"#fff",size:"22"}))])]),_:1}))}});const xe=V(Te,[["__scopeId","data-v-9f87bac2"]]);class F{constructor(e,t,s){o(this,"_repository");o(this,"conversationId");o(this,"_input");o(this,"_badgeState");o(this,"_smartChatState");o(this,"_logService");o(this,"_stageId",null);o(this,"_hasError",u(null));o(this,"_isLoadingHistory",u(!1));o(this,"_history",u([]));o(this,"_threadHistoryFetchInfo",u({limit:10,offset:0,done:!1}));o(this,"_recentlyAccessedThreads",u([]));o(this,"_environment");o(this,"codeForApproval",u(null));o(this,"setupThread",async()=>{this.conversationId.value=`abstra-assistant-thread-${S()}`,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,"setStageId",e=>{this._stageId=e});o(this,"setError",e=>{this._hasError.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=z(xe,{textToCopy:t.textContent});G(s,t)})});o(this,"clearLogService",()=>{this._logService.clear()});o(this,"send",async(e,t)=>{var s,r,c,l;this.conversationId.value||await this.setupThread(),this._logService.log({type:"ai-input",log:this._input.value}),this._smartChatState.value="processing";try{const h=S(),d=this.conversationId.value;if(!d)throw new Error("Conversation ID is not set");const f=[{type:"text",text:this._input.value}],n={currentEditorUrl:window.location.href,panesInfo:e||{}},g=this._repository.sendMessage(d,f,n,this.isIdle.bind(this),t);let p="",k=h,A="";for await(const w of g){if(this.isIdle())break;this._smartChatState.value==="processing"&&(this._smartChatState.value="answering");const a=w;if(typeof a=="string")p+=a,A+=a,this._logService.log({type:"ai-output",log:A},k);else if(a instanceof Object)if(a.type==="ai-tool-approval")if(this._logService.log({type:"ai-tool-approval",toolCallId:a.toolCallId,description:a.title,args:a.args,disabled:!1,needsApproval:!0,loading:!1}),((s=a.args)==null?void 0:s.file)&&((r=a.args)==null?void 0:r.replacements)){let b=a.args.replacements;typeof b=="string"&&(b=JSON.parse(b)),this.codeForApproval.value={file:a.args.file,replacements:b.map(M=>({oldContext:M.old_context,newContext:M.new_context}))}}else((c=a.args)==null?void 0:c.file)&&((l=a.args)==null?void 0:l.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=S(),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:p,createdAt:new Date().toISOString()}),w)),this._input.value=""}catch(h){this._logService.log({type:"ai-output",log:"Sorry, there was an issue processing your request. Please try again later."}),console.error(h),Q(h)}finally{this._smartChatState.value="idle",this.renderCopyButtons()}});o(this,"abort",()=>{if(!this.conversationId.value)throw new Error("Conversation ID is not set");this._repository.abortStreaming(this.conversationId.value),this._smartChatState.value="idle"});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(`I have this error in my code:
|
|
4
4
|
${e.entries.map(s=>s.payload.text).join("")}
|
|
@@ -7,4 +7,4 @@ var P=Object.defineProperty;var Z=(i,e,t)=>e in i?P(i,e,{enumerable:!0,configura
|
|
|
7
7
|
My current code is: ${t||"No code provided"}`),await this.send()});o(this,"vote",async(e,t)=>{const s=this._logService.logs[e],r=this._logService.logs[e-1],c=this._logService.logs.slice(0,e-1);await this._repository.vote(t,r,s,c)});this._repository=e,this._logService=t,this.conversationId=u(null),this._input=u(""),this._badgeState=u({type:"seen"}),this._smartChatState=u("idle"),this._environment=s}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",W({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}
|
|
8
8
|
${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-actions"&&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+`
|
|
9
9
|
`+e.log),Object.assign(s,e)):this.logs.push({...e,id:t||S()}),this.notifyListeners(e),t}clear(){this.logState.log=[]}listen(e){const t=S();return this._listeners[t]=e,t}unlisten(e){delete this._listeners[e]}notifyListeners(e){Object.values(this._listeners).forEach(t=>t(e))}}const Le=new K,Oe=X("omniChat",()=>{const i=u(!0),e=u(!1),t=E.create(),s=$(),r=$(),c=(g,p)=>{if(!r.value)if(g==="console"){if(!p)throw new Error("Project ID is required for console chat");s.value=new Ae(p),r.value=new F(s.value,t,{origin:g,projectId:p})}else s.value=new Ie,r.value=new F(s.value,t,{origin:g})},l=()=>{e.value=!0},h=()=>{e.value=!1},d=()=>{i.value=!0,l()},f=()=>{i.value=!1,h()};return{isOpen:i,isInputFocused:e,focusInput:l,blurInput:h,open:d,close:f,toggle:()=>{i.value?f():d()},controller:m(()=>r.value),repository:s,init:c}});export{Se as H,Ie as L,F as S,E as a,Le as o,Oe as u};
|
|
10
|
-
//# sourceMappingURL=omniChatStore.
|
|
10
|
+
//# sourceMappingURL=omniChatStore.16b8f156.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var c=Object.defineProperty;var
|
|
2
|
-
//# sourceMappingURL=organization.
|
|
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.7936fd78.js";import"./jwt-decode.esm.d86c27e0.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]="296ec623-4357-4434-8de7-8e44a85400d9",a._sentryDebugIdIdentifier="sentry-dbid-296ec623-4357-4434-8de7-8e44a85400d9")}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.8b2c1c53.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{y as n,z as r,B as o,C as c,P as d,D as p,E as f,F as m,G as a,H as u,I as g,J as b,K as y}from"./jwt-decode.esm.d86c27e0.js";import{a as l,b as i}from"./router.7071f838.js";import{s as w}from"./workspaceStore.87f8dbc6.js";import{_ as h}from"./App.vue_vue_type_style_index_0_lang.864018b5.js";import"./userStore.f2537ff3.js";import"./url.b31d406a.js";import"./colorHelpers.2a607581.js";import"./PlayerConfigProvider.10f46997.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]="9f628f70-e08d-4ee2-850c-89b8c7930a12",t._sentryDebugIdIdentifier="sentry-dbid-9f628f70-e08d-4ee2-850c-89b8c7930a12")}catch{}})();class I{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),I.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.7f570660.js.map
|