@opengeni/react 6.36.0 → 6.36.1-canary.45113772604001
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.
- package/dist/app/app-state.js +10 -10
- package/dist/app/components/Composer.js +19 -19
- package/dist/app/components/agent/agent-capability-picker.js +6 -6
- package/dist/app/components/agents/agent-can-use.js +21 -20
- package/dist/app/components/agents/agent-form-page.js +69 -65
- package/dist/app/components/agents/agent-form-page.js.map +1 -1
- package/dist/app/components/agents/agent-page.js +68 -64
- package/dist/app/components/agents/agent-setup-sections.js +40 -36
- package/dist/app/components/agents/agent-skills.js +5 -5
- package/dist/app/components/agents/agent-trigger-chat-field.js +4 -4
- package/dist/app/components/agents/agent-trigger-dialog.js +20 -17
- package/dist/app/components/agents/agent-trigger-model.d.ts +14 -0
- package/dist/app/components/agents/agent-trigger-picker.js +6 -5
- package/dist/app/components/agents/agent-trigger-repositories.d.ts +9 -0
- package/dist/app/components/agents/agent-trigger-repositories.js +31 -0
- package/dist/app/components/agents/agents-page.css +1905 -0
- package/dist/app/components/agents/agents-page.css.map +1 -0
- package/dist/app/components/agents/agents-page.js +106 -61
- package/dist/app/components/agents/agents-page.js.map +1 -1
- package/dist/app/components/agents/composer-agent-chip.js +29 -29
- package/dist/app/components/agents/session-agent-chip.js +29 -29
- package/dist/app/components/artifacts/app-package.js +3 -3
- package/dist/app/components/artifacts/app-server-status.d.ts +22 -0
- package/dist/app/components/artifacts/app-server-status.js +13 -0
- package/dist/app/components/artifacts/artifact-library.css +1905 -0
- package/dist/app/components/artifacts/artifact-library.css.map +1 -0
- package/dist/app/components/artifacts/artifact-library.js +8 -8
- package/dist/app/components/artifacts/artifact-viewer.css +1905 -0
- package/dist/app/components/artifacts/artifact-viewer.css.map +1 -0
- package/dist/app/components/artifacts/artifact-viewer.js +30 -30
- package/dist/app/components/artifacts/chat-interactive-block.js +16 -16
- package/dist/app/components/artifacts/file-reach-dialog.js +6 -6
- package/dist/app/components/artifacts/inline-chat-image.js +28 -28
- package/dist/app/components/artifacts/ready-made-apps.css +1905 -0
- package/dist/app/components/artifacts/ready-made-apps.css.map +1 -0
- package/dist/app/components/artifacts/ready-made-apps.d.ts +3 -0
- package/dist/app/components/artifacts/ready-made-apps.js +40 -0
- package/dist/app/components/artifacts/retained-file-preview.js +30 -30
- package/dist/app/components/artifacts/retained-text-preview.js +3 -3
- package/dist/app/components/artifacts/site-actions.js +1 -1
- package/dist/app/components/artifacts/site-audience.js +3 -3
- package/dist/app/components/artifacts/site-conversations.js +15 -15
- package/dist/app/components/artifacts/site-data.js +11 -11
- package/dist/app/components/artifacts/site-publishing-page.js +32 -32
- package/dist/app/components/artifacts/site-publishing.js +24 -24
- package/dist/app/components/artifacts/site-settings.js +31 -31
- package/dist/app/components/artifacts/site-version-menu.js +4 -4
- package/dist/app/components/billing-class-mark.js +3 -3
- package/dist/app/components/capabilities/capability-detail-sheet.js +7 -7
- package/dist/app/components/capabilities/capability-logo-source.js +15 -14
- package/dist/app/components/capabilities/connector-tool-permissions.js +4 -4
- package/dist/app/components/capabilities/native-connect-setup.js +16 -15
- package/dist/app/components/capabilities/own-logins-shared-heads-up.js +3 -3
- package/dist/app/components/capabilities/perform-capability-action.js +1 -1
- package/dist/app/components/capabilities/prepared-mcp-setup-card.js +17 -16
- package/dist/app/components/capabilities/session-capability-card.js +70 -69
- package/dist/app/components/capabilities/session-capability-card.js.map +1 -1
- package/dist/app/components/capabilities/session-chrome-card.js +22 -22
- package/dist/app/components/capabilities/session-connect-inputs-card.js +16 -15
- package/dist/app/components/capabilities/session-custom-mcp-card.js +18 -17
- package/dist/app/components/capabilities/session-github-card.js +19 -18
- package/dist/app/components/capabilities/session-machine-card.js +21 -21
- package/dist/app/components/capabilities/session-personal-github-card.js +16 -15
- package/dist/app/components/capabilities/session-plugin-card.js +9 -9
- package/dist/app/components/capabilities/use-connection-accounts.js +1 -1
- package/dist/app/components/command-menu/chat-status.js +18 -18
- package/dist/app/components/command-menu/chat-switcher.js +47 -47
- package/dist/app/components/command-menu/command-menu.js +58 -58
- package/dist/app/components/command-menu/shortcut-sheet.js +15 -15
- package/dist/app/components/composer-capabilities-menu-body.js +4 -4
- package/dist/app/components/composer-mobile-plus-panel.js +9 -9
- package/dist/app/components/composer-mobile-plus.js +1 -1
- package/dist/app/components/credit-required-gate.js +1 -1
- package/dist/app/components/credit-required-prompt.js +11 -11
- package/dist/app/components/credits/checkout-credits-celebration.js +2 -2
- package/dist/app/components/credits/checkout-return.js +2 -2
- package/dist/app/components/credits/credit-refusal-notice.js +2 -2
- package/dist/app/components/desktop/app-shots.js +7 -7
- package/dist/app/components/desktop/computer-use.js +2 -2
- package/dist/app/components/desktop/this-computer.js +5 -5
- package/dist/app/components/feedback.js +3 -3
- package/dist/app/components/follow-up-repository-menu-body.js +2 -2
- package/dist/app/components/follow-up-repository-picker.js +1 -1
- package/dist/app/components/github-app-connect-launcher.js +1 -1
- package/dist/app/components/machines/connect-machine-dialog.js +11 -11
- package/dist/app/components/markdown.js +7 -7
- package/dist/app/components/models/models-ui.js +6 -6
- package/dist/app/components/models/subscription-usage.js +5 -5
- package/dist/app/components/my-things.js +4 -4
- package/dist/app/components/own-where-it-works.js +3 -3
- package/dist/app/components/personal-resource-attachment-surface.js +4 -4
- package/dist/app/components/pickers.js +6 -6
- package/dist/app/components/rail/channel-create-dialog.js +3 -3
- package/dist/app/components/rail/project-glyph.js +29 -29
- package/dist/app/components/rail/project-profile.js +36 -36
- package/dist/app/components/rail/rail-context.js +1 -1
- package/dist/app/components/rail/rail-sections.js +80 -80
- package/dist/app/components/rail/session-header.js +64 -64
- package/dist/app/components/rail/session-list.js +78 -78
- package/dist/app/components/rail/session-row-content.js +4 -4
- package/dist/app/components/rail/session-row-hover-details.js +20 -20
- package/dist/app/components/rail/session-shell.js +102 -102
- package/dist/app/components/rail/site-session-group-heading.js +14 -14
- package/dist/app/components/repository-picker.js +2 -2
- package/dist/app/components/session/agent-configuration-panel.js +16 -16
- package/dist/app/components/session/artifact-session-page.js +1 -1
- package/dist/app/components/session/banners.js +9 -9
- package/dist/app/components/session/chat-avatar.js +29 -29
- package/dist/app/components/session/console-new-conversation.js +51 -51
- package/dist/app/components/session/descendant-requests.js +46 -46
- package/dist/app/components/session/editable-artifacts-workspace.css +1905 -0
- package/dist/app/components/session/editable-artifacts-workspace.css.map +1 -0
- package/dist/app/components/session/editable-artifacts-workspace.js +22 -22
- package/dist/app/components/session/failed-session-banner.js +10 -10
- package/dist/app/components/session/failure-recovery-boundary.js +3 -3
- package/dist/app/components/session/human-input-delegation-record.js +2 -2
- package/dist/app/components/session/human-input.js +42 -42
- package/dist/app/components/session/inspector.js +56 -56
- package/dist/app/components/session/linked-panel.js +3 -3
- package/dist/app/components/session/message-actions.js +3 -3
- package/dist/app/components/session/model-recovery-notice.js +3 -3
- package/dist/app/components/session/new-session-settings-menu.js +11 -11
- package/dist/app/components/session/new-session-setup-strip.js +30 -30
- package/dist/app/components/session/pull-request-panel.js +11 -11
- package/dist/app/components/session/sandbox-recovery-actions.js +3 -3
- package/dist/app/components/session/sandbox-switcher.js +8 -8
- package/dist/app/components/session/sandbox-workspace.js +58 -58
- package/dist/app/components/session/search-markdown-highlight.js +8 -8
- package/dist/app/components/session/search-results-view.js +9 -9
- package/dist/app/components/session/session-admin-access.js +4 -4
- package/dist/app/components/session/session-admission-notice.js +4 -4
- package/dist/app/components/session/session-avatar-picker.js +30 -30
- package/dist/app/components/session/session-avatar.js +28 -28
- package/dist/app/components/session/session-machine-access-notice.js +4 -4
- package/dist/app/components/session/session-profile-dialog.js +34 -34
- package/dist/app/components/session/session-profile-editor.js +35 -35
- package/dist/app/components/session/session-retention.js +4 -4
- package/dist/app/components/session/session-search-dialog.js +9 -9
- package/dist/app/components/session/session-tenancy-control.js +8 -8
- package/dist/app/components/session/session-usage-limit-section.js +4 -4
- package/dist/app/components/session/share-chat-dialog.js +6 -6
- package/dist/app/components/session/subagents.js +13 -13
- package/dist/app/components/session/subscription-account-indicator.js +11 -11
- package/dist/app/components/session/subscription-account-menu.js +6 -6
- package/dist/app/components/settings/row-select.js +4 -4
- package/dist/app/components/toaster.js +2 -2
- package/dist/app/components/transcription-settings.js +6 -6
- package/dist/app/components/ui/destructive-confirm.js +5 -5
- package/dist/app/components/usage/usage-entry.js +3 -3
- package/dist/app/components/window-bar.js +13 -13
- package/dist/app/components/workspace-composer-plus.js +18 -17
- package/dist/app/components/workspace-reach.js +4 -4
- package/dist/app/embed/session-app.js +241 -240
- package/dist/app/lib/actions/actions-provider.js +12 -12
- package/dist/app/lib/agent-capabilities.js +3 -3
- package/dist/app/lib/app-connect-card.js +9 -9
- package/dist/app/lib/app-shared-key-dialog.js +4 -4
- package/dist/app/lib/app-sync-opt-in.js +3 -3
- package/dist/app/lib/codex-usage-query.js +2 -2
- package/dist/app/lib/composer-connectors.js +16 -15
- package/dist/app/lib/console-site.js +5 -5
- package/dist/app/lib/console-text.js +2 -2
- package/dist/app/lib/events.js +18 -18
- package/dist/app/lib/failed-session-copy.js +3 -3
- package/dist/app/lib/model-access-onboarding.js +3 -3
- package/dist/app/lib/move-chat-to-machine.js +3 -3
- package/dist/app/lib/needs-you.d.ts +2 -1
- package/dist/app/lib/needs-you.js +1 -1
- package/dist/app/lib/ready-made-apps.d.ts +14 -0
- package/dist/app/lib/ready-made-apps.js +8 -0
- package/dist/app/lib/session-branch-cache.js +13 -13
- package/dist/app/lib/session-capabilities.js +1 -1
- package/dist/app/lib/session-create.js +4 -4
- package/dist/app/lib/session-group-pagination.js +13 -13
- package/dist/app/lib/session-hover-facts.js +17 -17
- package/dist/app/lib/session-list-dirty-scopes.js +14 -14
- package/dist/app/lib/session-model.js +2 -2
- package/dist/app/lib/session-rail.js +10 -10
- package/dist/app/lib/session-rename.js +3 -3
- package/dist/app/lib/sessions-group.js +12 -12
- package/dist/app/lib/site-tool-consent-dialog.js +8 -8
- package/dist/app/lib/site-tool-consent.js +1 -1
- package/dist/app/lib/turn-failure-analytics.js +4 -4
- package/dist/app/lib/use-follow-up-repositories.js +3 -3
- package/dist/app/lib/use-workspace-machines.js +4 -4
- package/dist/app/lib/use-workspace-model-catalog.js +3 -3
- package/dist/app/lib/use-workspace-rigs.js +2 -2
- package/dist/app/lib/workspace-navigation-preference.js +4 -4
- package/dist/app/lib/workspace-scope-context.js +3 -3
- package/dist/app/routes/app-page-view.js +10 -10
- package/dist/app/routes/app-page.js +1 -1
- package/dist/app/routes/artifacts.css +1905 -0
- package/dist/app/routes/artifacts.css.map +1 -0
- package/dist/app/routes/artifacts.js +105 -94
- package/dist/app/routes/artifacts.js.map +1 -1
- package/dist/app/routes/retained-artifact.js +47 -47
- package/dist/app/routes/session-unavailable.js +2 -2
- package/dist/app/routes/session.js +131 -130
- package/dist/app/routes/sessions-index-hydration.js +5 -5
- package/dist/app/routes/sessions-index.js +108 -107
- package/dist/app/routes/site-view.js +107 -95
- package/dist/app/routes/site-view.js.map +1 -1
- package/dist/approval-review-model.js +2 -2
- package/dist/artifacts-document.js +4 -4
- package/dist/artifacts-presentation.js +5 -5
- package/dist/artifacts-spreadsheet.js +4 -4
- package/dist/artifacts.js +15 -15
- package/dist/automation-model.js +5 -5
- package/dist/automations.d.ts +1 -0
- package/dist/automations.js +29 -22
- package/dist/automations.js.map +1 -1
- package/dist/browser-viewer-EPGAK2W6.js +23 -0
- package/dist/chat-interactive-block-65YU6TMO.js +22 -0
- package/dist/chunk-25ODMMHH.js +403 -0
- package/dist/chunk-266ZPUMH.js +400 -0
- package/dist/chunk-2A7SB7UR.js +168 -0
- package/dist/chunk-2EU4Y7A7.js +100 -0
- package/dist/chunk-2F7VSGRS.js +1177 -0
- package/dist/chunk-2F7VSGRS.js.map +1 -0
- package/dist/chunk-2L6B6766.js +5915 -0
- package/dist/chunk-2L6B6766.js.map +1 -0
- package/dist/chunk-2LBYEHBH.js +570 -0
- package/dist/chunk-2MHIIF4N.js +141 -0
- package/dist/chunk-2SHWGDAA.js +283 -0
- package/dist/chunk-2VX42S4W.js +773 -0
- package/dist/chunk-2WGJQ4XK.js +311 -0
- package/dist/chunk-2XSF44TY.js +15 -0
- package/dist/chunk-33HUZMNE.js +639 -0
- package/dist/chunk-36IKHM4Q.js +148 -0
- package/dist/chunk-3JVQZAXQ.js +4480 -0
- package/dist/chunk-3SDESU6U.js +287 -0
- package/dist/chunk-3VXZFBP6.js +292 -0
- package/dist/chunk-3WDNCSVU.js +197 -0
- package/dist/chunk-3WDNCSVU.js.map +1 -0
- package/dist/chunk-3YKED2ZV.js +307 -0
- package/dist/chunk-3ZNOKD3S.js +1019 -0
- package/dist/chunk-45SB4UK3.js +2580 -0
- package/dist/chunk-47BETTVA.js +133 -0
- package/dist/chunk-4BTQ473O.js +274 -0
- package/dist/chunk-4JQRWJVR.js +249 -0
- package/dist/chunk-4NGIKV2W.js +316 -0
- package/dist/chunk-4NGIKV2W.js.map +1 -0
- package/dist/chunk-4R6WFQKZ.js +202 -0
- package/dist/chunk-4WEPVL7X.js +283 -0
- package/dist/chunk-4YWHOAB4.js +201 -0
- package/dist/chunk-52XGYRVS.js +155 -0
- package/dist/chunk-5G6UHUJZ.js +43 -0
- package/dist/chunk-5HFITPHH.js +229 -0
- package/dist/chunk-5LVVN2K7.js +650 -0
- package/dist/chunk-5PVXFVIT.js +48 -0
- package/dist/chunk-5WFGW7B7.js +187 -0
- package/dist/chunk-5YMSLKJP.js +92 -0
- package/dist/chunk-5YMSLKJP.js.map +1 -0
- package/dist/chunk-66M7RVM6.js +3070 -0
- package/dist/chunk-6AGNZI2W.js +437 -0
- package/dist/chunk-6ENO634Y.js +373 -0
- package/dist/chunk-6LQ5KEMP.js +200 -0
- package/dist/chunk-6QGIWLH5.js +428 -0
- package/dist/chunk-6WEDWD4N.js +170 -0
- package/dist/chunk-6YCYPXDA.js +114 -0
- package/dist/chunk-6YTNMDFP.js +318 -0
- package/dist/chunk-73O7NO3F.js +50 -0
- package/dist/chunk-76VXLTQF.js +251 -0
- package/dist/chunk-7EJ7PSZT.js +93 -0
- package/dist/chunk-7GS2MGFU.js +27 -0
- package/dist/chunk-7MF6MFHS.js +406 -0
- package/dist/chunk-7N35XBSC.js +386 -0
- package/dist/chunk-7ND2VMKV.js +270 -0
- package/dist/chunk-7RVJLO3N.js +154 -0
- package/dist/chunk-7VAILBP6.js +353 -0
- package/dist/chunk-7VSJQWFO.js +37 -0
- package/dist/chunk-7YKUIKGH.js +335 -0
- package/dist/chunk-A7DS77WC.js +138 -0
- package/dist/chunk-ABGHRGID.js +376 -0
- package/dist/chunk-ABGHRGID.js.map +1 -0
- package/dist/chunk-AEH34OOU.js +298 -0
- package/dist/chunk-ANWMRO2G.js +554 -0
- package/dist/chunk-APGUIORF.js +247 -0
- package/dist/chunk-ASCVQJB4.js +1309 -0
- package/dist/chunk-AVYFJKQS.js +10044 -0
- package/dist/chunk-AVYFJKQS.js.map +1 -0
- package/dist/chunk-AY4XH73V.js +1333 -0
- package/dist/chunk-B6AH43UQ.js +2434 -0
- package/dist/chunk-BBZUHH4F.js +154 -0
- package/dist/chunk-BBZUHH4F.js.map +1 -0
- package/dist/chunk-BGT43KDL.js +42 -0
- package/dist/chunk-BHS4KW4W.js +3851 -0
- package/dist/chunk-BJUDGPOD.js +1803 -0
- package/dist/chunk-BJUDGPOD.js.map +1 -0
- package/dist/chunk-BNWO72C2.js +851 -0
- package/dist/chunk-BSPIASSQ.js +2551 -0
- package/dist/chunk-BVWJEZXG.js +230 -0
- package/dist/chunk-BZ47G3VP.js +366 -0
- package/dist/chunk-C6KI5P3H.js +72 -0
- package/dist/chunk-CLERWAEA.js +2317 -0
- package/dist/chunk-CNRFFCAE.js +572 -0
- package/dist/chunk-CPC6CYVW.js +236 -0
- package/dist/chunk-D23UAPXK.js +107 -0
- package/dist/chunk-DAPZEB4R.js +29 -0
- package/dist/chunk-DEDEA3WS.js +205 -0
- package/dist/chunk-DHVA3T3K.js +271 -0
- package/dist/chunk-DJQ6TKIP.js +391 -0
- package/dist/chunk-DK2CDAMR.js +33 -0
- package/dist/chunk-DPOB6MUS.js +278 -0
- package/dist/chunk-DSO7S6PZ.js +137 -0
- package/dist/chunk-DV3OECO6.js +333 -0
- package/dist/chunk-DW2IQRMB.js +1187 -0
- package/dist/chunk-DWLPQTDL.js +134 -0
- package/dist/chunk-DXMKECFR.js +3176 -0
- package/dist/chunk-DYQRNIID.js +73 -0
- package/dist/chunk-DZLWO73N.js +129 -0
- package/dist/chunk-DZZSFPMW.js +66 -0
- package/dist/chunk-DZZSFPMW.js.map +1 -0
- package/dist/chunk-E2GNUL64.js +107 -0
- package/dist/chunk-E7XU2KHD.js +192 -0
- package/dist/chunk-ENYULVQW.js +114 -0
- package/dist/chunk-EWHQ3DFM.js +41 -0
- package/dist/chunk-F2T4J7CK.js +4957 -0
- package/dist/chunk-F2T4J7CK.js.map +1 -0
- package/dist/chunk-F3LIUDXN.js +738 -0
- package/dist/chunk-F5C7DTVR.js +103 -0
- package/dist/chunk-F5NFGBIN.js +391 -0
- package/dist/chunk-F6XJLGOV.js +175 -0
- package/dist/chunk-F7T2STMX.js +158 -0
- package/dist/chunk-FAEVOM6B.js +371 -0
- package/dist/chunk-FCFAXQDM.js +276 -0
- package/dist/chunk-FEQVCQMK.js +138 -0
- package/dist/chunk-FLD4VOJW.js +4565 -0
- package/dist/chunk-FLD4VOJW.js.map +1 -0
- package/dist/chunk-FLDF2Z44.js +396 -0
- package/dist/chunk-GADABL3P.js +772 -0
- package/dist/chunk-GFUDB3SA.js +140 -0
- package/dist/chunk-GGPZPBHS.js +215 -0
- package/dist/chunk-GIEGIEMT.js +311 -0
- package/dist/chunk-GKWFQEO3.js +187 -0
- package/dist/chunk-GMMB4NCN.js +250 -0
- package/dist/chunk-GN4FOL2G.js +269 -0
- package/dist/chunk-GQJAMANY.js +469 -0
- package/dist/chunk-H7F4ANJQ.js +379 -0
- package/dist/chunk-HEPFJ3XQ.js +3110 -0
- package/dist/chunk-HLRAQITA.js +234 -0
- package/dist/chunk-HXYSZKCC.js +117 -0
- package/dist/chunk-I5Q6FVHP.js +828 -0
- package/dist/chunk-I7M5BYJU.js +265 -0
- package/dist/chunk-IH3J7VWW.js +85 -0
- package/dist/chunk-IMMDXSZ4.js +178 -0
- package/dist/chunk-IOMZDY5D.js +199 -0
- package/dist/chunk-IQTCUUDF.js +1236 -0
- package/dist/chunk-ISR6KXWT.js +898 -0
- package/dist/chunk-IWPPGXUZ.js +3321 -0
- package/dist/chunk-IYKO6BBK.js +3854 -0
- package/dist/chunk-IYKO6BBK.js.map +1 -0
- package/dist/chunk-IYUZPNMU.js +79 -0
- package/dist/chunk-IYUZPNMU.js.map +1 -0
- package/dist/chunk-JNPCRNPA.js +84 -0
- package/dist/chunk-JSJGGP32.js +505 -0
- package/dist/chunk-JZZUEJYD.js +56 -0
- package/dist/chunk-K5XFZKK5.js +270 -0
- package/dist/chunk-K6GRTSEA.js +65 -0
- package/dist/chunk-KA4PZU3Q.js +103 -0
- package/dist/chunk-KGZ35ESO.js +83 -0
- package/dist/chunk-KRM4PW5N.js +1021 -0
- package/dist/chunk-KSNKF6FE.js +551 -0
- package/dist/chunk-KSNKF6FE.js.map +1 -0
- package/dist/chunk-LEZGGRDQ.js +1095 -0
- package/dist/chunk-LFWMFFKT.js +144 -0
- package/dist/chunk-LKSPUZPH.js +849 -0
- package/dist/chunk-LLX4S6BI.js +401 -0
- package/dist/chunk-M4WEF4DZ.js +850 -0
- package/dist/chunk-MATYGLUT.js +121 -0
- package/dist/chunk-MDI6SH7B.js +27 -0
- package/dist/chunk-MQO7MSA6.js +43 -0
- package/dist/chunk-MQO7MSA6.js.map +1 -0
- package/dist/chunk-MQTYIBY6.js +263 -0
- package/dist/chunk-MRKY2GL5.js +1185 -0
- package/dist/chunk-MSIQ42IY.js +794 -0
- package/dist/chunk-MVGU7BET.js +357 -0
- package/dist/chunk-MWY4TBDY.js +404 -0
- package/dist/chunk-NGQCWCD6.js +234 -0
- package/dist/chunk-NKXMIOYN.js +538 -0
- package/dist/chunk-NMVRFFCR.js +256 -0
- package/dist/chunk-NNTDIKJP.js +407 -0
- package/dist/chunk-NQXCPP4G.js +98 -0
- package/dist/chunk-NYGS6FNV.js +132 -0
- package/dist/chunk-O3LOQDTI.js +176 -0
- package/dist/chunk-O5HRZ2KG.js +818 -0
- package/dist/chunk-O5PZRVQR.js +214 -0
- package/dist/chunk-O6KR5SN7.js +399 -0
- package/dist/chunk-OBKDRV2H.js +259 -0
- package/dist/chunk-OBKKUBGL.js +107 -0
- package/dist/chunk-OFYXDB6I.js +52 -0
- package/dist/chunk-OLMWJGSJ.js +50 -0
- package/dist/chunk-OO7N6APA.js +598 -0
- package/dist/chunk-OO7N6APA.js.map +1 -0
- package/dist/chunk-ORRACKLB.js +1263 -0
- package/dist/chunk-P426WWAB.js +351 -0
- package/dist/chunk-P4GOY3ZL.js +177 -0
- package/dist/chunk-P4KVJLUC.js +129 -0
- package/dist/chunk-P4N7ZS6W.js +56 -0
- package/dist/chunk-P6LSLNSL.js +209 -0
- package/dist/chunk-P7MQCSML.js +77 -0
- package/dist/chunk-P7MQCSML.js.map +1 -0
- package/dist/chunk-PAFSIDM2.js +111 -0
- package/dist/chunk-PC2JAIAH.js +117 -0
- package/dist/chunk-PGSXT5OY.js +207 -0
- package/dist/chunk-QDMGUTOU.js +2984 -0
- package/dist/chunk-QEMDQKQT.js +1356 -0
- package/dist/chunk-QK7VU5N3.js +2412 -0
- package/dist/chunk-QL4Q332Z.js +12 -0
- package/dist/chunk-QL5227KT.js +1184 -0
- package/dist/chunk-QREYGVWO.js +297 -0
- package/dist/chunk-QREYGVWO.js.map +1 -0
- package/dist/chunk-QUFCZMHG.js +114 -0
- package/dist/chunk-QXPKUKOV.js +227 -0
- package/dist/chunk-QZE3KD34.js +441 -0
- package/dist/chunk-RAIUIXCY.js +166 -0
- package/dist/chunk-RDLS6IZY.js +723 -0
- package/dist/chunk-RKPETJDJ.js +175 -0
- package/dist/chunk-RMDLTRLI.js +372 -0
- package/dist/chunk-RR6DQN4X.js +523 -0
- package/dist/chunk-RVPH6BB7.js +218 -0
- package/dist/chunk-RVXLSVJH.js +931 -0
- package/dist/chunk-RVY5EZNU.js +246 -0
- package/dist/chunk-RWHBX4MN.js +1024 -0
- package/dist/chunk-RWHDMGFG.js +214 -0
- package/dist/chunk-RYB3WBMZ.js +113 -0
- package/dist/chunk-S7EO77EE.js +449 -0
- package/dist/chunk-S7J4HBPP.js +584 -0
- package/dist/chunk-SA3XI7FB.js +108 -0
- package/dist/chunk-SKRTCSUL.js +196 -0
- package/dist/chunk-SUWDILUY.js +5089 -0
- package/dist/chunk-SWTPVMR4.js +251 -0
- package/dist/chunk-T5BYEE66.js +191 -0
- package/dist/chunk-T652Q4R6.js +48 -0
- package/dist/chunk-TBUOHK6R.js +608 -0
- package/dist/chunk-TCUAGCAX.js +1628 -0
- package/dist/chunk-TLWH4E3P.js +126 -0
- package/dist/chunk-TNHGSWG3.js +1152 -0
- package/dist/chunk-TO6VBJI3.js +383 -0
- package/dist/chunk-TOL7MOAN.js +162 -0
- package/dist/chunk-U243CBVZ.js +2553 -0
- package/dist/chunk-U2CEPRDH.js +46 -0
- package/dist/chunk-UAZPXKPH.js +3996 -0
- package/dist/chunk-UHRGUMLJ.js +412 -0
- package/dist/chunk-UNDSD6UA.js +131 -0
- package/dist/chunk-USU2SS4V.js +3690 -0
- package/dist/chunk-USWA5GQQ.js +340 -0
- package/dist/chunk-UXGTI4HR.js +184 -0
- package/dist/chunk-UZKAHEQO.js +172 -0
- package/dist/chunk-VALESBNH.js +113 -0
- package/dist/chunk-VMSMVWCJ.js +515 -0
- package/dist/chunk-VPERSFGV.js +158 -0
- package/dist/chunk-VVW2CBWK.js +21 -0
- package/dist/chunk-VVW2CBWK.js.map +1 -0
- package/dist/chunk-VXPY2GF3.js +124 -0
- package/dist/chunk-W7RKXZDV.js +112 -0
- package/dist/chunk-WEGZPK4I.js +532 -0
- package/dist/chunk-WPKY3BGG.js +380 -0
- package/dist/chunk-X3T3N6W5.js +1022 -0
- package/dist/chunk-X4OGMBY6.js +110 -0
- package/dist/chunk-X7ZHIJEI.js +82 -0
- package/dist/chunk-XR7Y2HPZ.js +67 -0
- package/dist/chunk-Y2NMKJ7F.js +57 -0
- package/dist/chunk-Y2QYPJDN.js +26 -0
- package/dist/chunk-Y47EPVCD.js +211 -0
- package/dist/chunk-Y5Q4ETIW.js +162 -0
- package/dist/chunk-YMQVVFXI.js +105 -0
- package/dist/chunk-YQ6FP33X.js +378 -0
- package/dist/chunk-YUA42N5A.js +406 -0
- package/dist/chunk-YXFNW64N.js +91 -0
- package/dist/chunk-Z76RJPZF.js +389 -0
- package/dist/chunk-ZD67RM6G.js +60 -0
- package/dist/chunk-ZE4RD7U5.js +231 -0
- package/dist/chunk-ZGR7LNXC.js +432 -0
- package/dist/chunk-ZNA65Q6Y.js +20 -0
- package/dist/chunk-ZRNK6FK6.js +188 -0
- package/dist/chunk-ZVAIKQMC.js +296 -0
- package/dist/chunk-ZZ3KNGTJ.js +246 -0
- package/dist/components/automations/pasted-webhook-steps.d.ts +29 -0
- package/dist/components/browser-viewer.d.ts +4 -1
- package/dist/components/human-input-form.d.ts +3 -4
- package/dist/components/use-fit-browser-viewport.d.ts +10 -0
- package/dist/composer.js +8 -8
- package/dist/computer-viewer-M5N3GWBR.js +21 -0
- package/dist/connect.js +17 -15
- package/dist/connection-step-up-CNVFVWYO.js +146 -0
- package/dist/connection-step-up-CNVFVWYO.js.map +1 -0
- package/dist/desktop-dictation.js +8 -8
- package/dist/desktop.js +2 -2
- package/dist/editor.js +2 -2
- package/dist/embedded-new-voice-QZJG5DZ3.js +25 -0
- package/dist/embedded-voice-7KOQNGKU.js +25 -0
- package/dist/fleet-decision-row-FJPAWNOQ.js +361 -0
- package/dist/in-chat-connect-model.js +5 -5
- package/dist/index.js +65 -65
- package/dist/interaction.js +5 -5
- package/dist/latest-question-F3VPDR7U.js +124 -0
- package/dist/machines.js +3 -3
- package/dist/meetings-recorder.js +1 -1
- package/dist/meetings.js +20 -20
- package/dist/messages/en.d.ts +1 -1
- package/dist/messages.js +1 -1
- package/dist/model-policy-picker-menu-UNI5B6N6.js +23 -0
- package/dist/model-policy-picker-menu-UNI5B6N6.js.map +1 -0
- package/dist/payment-page-card-HZJVN3F4.js +226 -0
- package/dist/platform-activity-row-NPEGG2VE.js +156 -0
- package/dist/queue-surface-implementation-RTCTPF5T.js +932 -0
- package/dist/realtime.js +4 -4
- package/dist/recorder-host-YPWPLMS6.js +80 -0
- package/dist/recordings.js +3 -3
- package/dist/sandbox-files-BJKCREOU.js +28 -0
- package/dist/sandbox-files-BJKCREOU.js.map +1 -0
- package/dist/session-app.js +242 -241
- package/dist/session-connect-cards-DK3UJZRY.js +27 -0
- package/dist/session-connect-cards-DK3UJZRY.js.map +1 -0
- package/dist/session-list-model.js +2 -2
- package/dist/session-realtime-AKDUKFY4.js +30 -0
- package/dist/session-realtime-AKDUKFY4.js.map +1 -0
- package/dist/session-realtime.js +2 -2
- package/dist/session-ui.js +42 -42
- package/dist/session.js +11 -11
- package/dist/sites.js +2 -2
- package/dist/terminal.js +2 -2
- package/dist/this-computer.js +3 -3
- package/dist/timeline-annotation-markers-7QSYK22C.js +157 -0
- package/dist/timeline-annotation-selection-XYNMESWL.js +208 -0
- package/dist/timeline-annotations-dialog-WSI6L2CP.js +283 -0
- package/dist/timeline-model.js +26 -26
- package/dist/ui/access-list.js +5 -5
- package/dist/ui/cadence-picker.js +5 -5
- package/dist/ui/choice-cards.js +3 -3
- package/dist/ui/confirm-dialog.js +2 -2
- package/dist/ui/copy-field.js +3 -3
- package/dist/ui/detail-page.js +2 -2
- package/dist/ui/detail-sheet.js +2 -2
- package/dist/ui/disclosure.js +3 -3
- package/dist/ui/email-chips-input.js +3 -3
- package/dist/ui/field.js +2 -2
- package/dist/ui/flush-form-page.js +3 -3
- package/dist/ui/form-dialog.js +2 -2
- package/dist/ui/list-row.js +4 -4
- package/dist/ui/relative-time.js +3 -3
- package/dist/ui/revision-history.js +5 -5
- package/dist/ui/role-select.js +5 -5
- package/dist/ui/select-menu.js +3 -3
- package/dist/ui/usage-meter.js +4 -4
- package/dist/usage.js +2 -2
- package/dist/workbench.js +4 -4
- package/package.json +6 -5
- package/src/app/components/agents/agent-skills.tsx +21 -18
- package/src/app/components/agents/agent-trigger-dialog.tsx +80 -119
- package/src/app/components/agents/agent-trigger-model.ts +47 -0
- package/src/app/components/agents/agent-trigger-repositories.tsx +88 -0
- package/src/app/components/agents/agents-page.tsx +118 -38
- package/src/app/components/artifacts/app-server-status.test.tsx +33 -0
- package/src/app/components/artifacts/app-server-status.tsx +93 -0
- package/src/app/components/artifacts/ready-made-apps.tsx +84 -0
- package/src/app/lib/codex-model-switch.ts +1 -0
- package/src/app/lib/needs-you.test.ts +8 -0
- package/src/app/lib/needs-you.tsx +3 -1
- package/src/app/lib/ready-made-apps.tsx +42 -0
- package/src/app/lib/session-capabilities.tsx +1 -0
- package/src/app/routes/artifacts.tsx +11 -0
- package/src/app/routes/site-view.tsx +9 -0
- package/src/automations.ts +8 -2
- package/src/components/automations/pasted-webhook-steps.tsx +89 -0
- package/src/components/browser-viewer.tsx +49 -7
- package/src/components/human-input-form.tsx +16 -5
- package/src/components/secret-question-field.tsx +42 -32
- package/src/components/use-fit-browser-viewport.ts +84 -0
- package/src/messages/en.ts +1 -1
- package/src/timeline/projection.ts +5 -2
- package/src/timeline/tool-steps.ts +2 -0
- package/dist/browser-viewer-EIEMRVFF.js +0 -23
- package/dist/chat-interactive-block-FV37LWYZ.js +0 -22
- package/dist/chunk-2COBAJC7.js +0 -818
- package/dist/chunk-2HS3IUXE.js +0 -170
- package/dist/chunk-2JTMFYCT.js +0 -296
- package/dist/chunk-2JXKP4M6.js +0 -114
- package/dist/chunk-2P5K7CBH.js +0 -269
- package/dist/chunk-2XGRHMRI.js +0 -250
- package/dist/chunk-332BYSAZ.js +0 -65
- package/dist/chunk-3EM5GTP3.js +0 -158
- package/dist/chunk-3L5ATO4A.js +0 -52
- package/dist/chunk-3S3PJB7J.js +0 -107
- package/dist/chunk-3SBKYPNM.js +0 -270
- package/dist/chunk-3Z7VA6ET.js +0 -114
- package/dist/chunk-43BRJBEV.js +0 -207
- package/dist/chunk-46LZO4ZO.js +0 -188
- package/dist/chunk-4AH4EEHE.js +0 -298
- package/dist/chunk-4D3YJNVN.js +0 -270
- package/dist/chunk-4E5QVAT4.js +0 -4480
- package/dist/chunk-4I4RTI4D.js +0 -37
- package/dist/chunk-4KASGJTF.js +0 -287
- package/dist/chunk-4RUKLIOF.js +0 -1263
- package/dist/chunk-4UU7FN3I.js +0 -650
- package/dist/chunk-4ZRNASBF.js +0 -2551
- package/dist/chunk-5EJBPQI2.js +0 -41
- package/dist/chunk-5G4IGG7F.js +0 -209
- package/dist/chunk-5JAYZOAW.js +0 -131
- package/dist/chunk-5JOKVDSR.js +0 -789
- package/dist/chunk-5JOKVDSR.js.map +0 -1
- package/dist/chunk-5MP3G7ZV.js +0 -1236
- package/dist/chunk-5OVRMKP5.js +0 -42
- package/dist/chunk-5SGTRULO.js +0 -1184
- package/dist/chunk-5SOL4INY.js +0 -572
- package/dist/chunk-5Y34P32B.js +0 -27
- package/dist/chunk-62HIKJ5F.js +0 -72
- package/dist/chunk-63VNZRLY.js +0 -386
- package/dist/chunk-63WDQV5X.js +0 -148
- package/dist/chunk-6DOIINY4.js +0 -201
- package/dist/chunk-6DQBUKGJ.js +0 -112
- package/dist/chunk-6SETNFNH.js +0 -1399
- package/dist/chunk-6SETNFNH.js.map +0 -1
- package/dist/chunk-6XYFMHNT.js +0 -56
- package/dist/chunk-6YU3WV2P.js +0 -33
- package/dist/chunk-6YUHDFOZ.js +0 -351
- package/dist/chunk-72EOXOR7.js +0 -1185
- package/dist/chunk-72ND4ALI.js +0 -532
- package/dist/chunk-757LE32E.js +0 -283
- package/dist/chunk-7S2S4MXR.js +0 -138
- package/dist/chunk-7SYCHMXS.js +0 -200
- package/dist/chunk-7TVAPQOV.js +0 -5089
- package/dist/chunk-7UDLRDHK.js +0 -214
- package/dist/chunk-7YLQCMZP.js +0 -357
- package/dist/chunk-A5GX3CAE.js +0 -849
- package/dist/chunk-A7EBV2EB.js +0 -318
- package/dist/chunk-AB5SPXUR.js +0 -114
- package/dist/chunk-AHVQGL5A.js +0 -202
- package/dist/chunk-AI77ZKEV.js +0 -26
- package/dist/chunk-AIX2D6RB.js +0 -1019
- package/dist/chunk-AVSIHP7Q.js +0 -192
- package/dist/chunk-AWK23Q32.js +0 -107
- package/dist/chunk-AYM3UFP2.js +0 -43
- package/dist/chunk-AYM3UFP2.js.map +0 -1
- package/dist/chunk-AYVWA6KD.js +0 -432
- package/dist/chunk-AYVWA6KD.js.map +0 -1
- package/dist/chunk-AYZXE4IM.js +0 -2553
- package/dist/chunk-AZGGSPTE.js +0 -124
- package/dist/chunk-B45TB4HY.js +0 -931
- package/dist/chunk-BC7PTVXW.js +0 -140
- package/dist/chunk-BIUJHNVR.js +0 -46
- package/dist/chunk-BJUOKUE5.js +0 -234
- package/dist/chunk-BMT5IXQW.js +0 -154
- package/dist/chunk-BMT5IXQW.js.map +0 -1
- package/dist/chunk-BPEEVMKH.js +0 -292
- package/dist/chunk-BXMND6YU.js +0 -307
- package/dist/chunk-C6OM2SRG.js +0 -117
- package/dist/chunk-CIRCUDKF.js +0 -1309
- package/dist/chunk-CLKR4UG3.js +0 -403
- package/dist/chunk-CPX6BHER.js +0 -554
- package/dist/chunk-CVC4RO7D.js +0 -155
- package/dist/chunk-D3YJAQGK.js +0 -103
- package/dist/chunk-DFQ72BLS.js +0 -1024
- package/dist/chunk-DG65PJOZ.js +0 -4564
- package/dist/chunk-DG65PJOZ.js.map +0 -1
- package/dist/chunk-DNAXAS5R.js +0 -406
- package/dist/chunk-DO247ITS.js +0 -175
- package/dist/chunk-DONBARLL.js +0 -154
- package/dist/chunk-DTLXQ3ZU.js +0 -373
- package/dist/chunk-EAXTACI4.js +0 -274
- package/dist/chunk-EDPH7AJH.js +0 -412
- package/dist/chunk-EER3B3G5.js +0 -10036
- package/dist/chunk-EER3B3G5.js.map +0 -1
- package/dist/chunk-EFKQHCGJ.js +0 -276
- package/dist/chunk-EILSPMVD.js +0 -133
- package/dist/chunk-EMWT6GOK.js +0 -437
- package/dist/chunk-EO22NST7.js +0 -259
- package/dist/chunk-ER5MYLIE.js +0 -256
- package/dist/chunk-ES5HKVQF.js +0 -234
- package/dist/chunk-EXRQ5ATC.js +0 -738
- package/dist/chunk-F26YBYAZ.js +0 -111
- package/dist/chunk-F6QP4GSK.js +0 -515
- package/dist/chunk-F7QEO7M2.js +0 -851
- package/dist/chunk-FJFGDLXB.js +0 -12
- package/dist/chunk-FLLJ2WXW.js +0 -113
- package/dist/chunk-FMBJKMT4.js +0 -107
- package/dist/chunk-FPN4I4CG.js +0 -3690
- package/dist/chunk-FUXFJTXL.js +0 -3070
- package/dist/chunk-FZI4QOAV.js +0 -3996
- package/dist/chunk-G6SSSX5R.js +0 -158
- package/dist/chunk-GBGCMHBB.js +0 -608
- package/dist/chunk-GJ4GTYOD.js +0 -372
- package/dist/chunk-GLSDWNFV.js +0 -432
- package/dist/chunk-GMGAW3T6.js +0 -278
- package/dist/chunk-GNGI6XFN.js +0 -43
- package/dist/chunk-GSW4YHZE.js +0 -229
- package/dist/chunk-GUC6IWEY.js +0 -407
- package/dist/chunk-GWAY3SO5.js +0 -15
- package/dist/chunk-GXOTNT5D.js +0 -168
- package/dist/chunk-GZZCVF76.js +0 -3851
- package/dist/chunk-H4VMHFOX.js +0 -214
- package/dist/chunk-HA5RFQAF.js +0 -110
- package/dist/chunk-HJLHGXWL.js +0 -103
- package/dist/chunk-HKNMNL7B.js +0 -2984
- package/dist/chunk-HT7MBHLY.js +0 -1021
- package/dist/chunk-I5FSUZVW.js +0 -584
- package/dist/chunk-II376XH3.js +0 -117
- package/dist/chunk-IINQO425.js +0 -246
- package/dist/chunk-IIXNEOK4.js +0 -1022
- package/dist/chunk-IM3WA5AL.js +0 -311
- package/dist/chunk-IX4P4OGR.js +0 -399
- package/dist/chunk-IX5VHZYS.js +0 -129
- package/dist/chunk-J7QHW2KS.js +0 -549
- package/dist/chunk-J7QHW2KS.js.map +0 -1
- package/dist/chunk-JB3TSUZO.js +0 -263
- package/dist/chunk-JD6LHU26.js +0 -3852
- package/dist/chunk-JD6LHU26.js.map +0 -1
- package/dist/chunk-JIC6RLUB.js +0 -27
- package/dist/chunk-JNJIZCTN.js +0 -172
- package/dist/chunk-JNV5ZPUV.js +0 -828
- package/dist/chunk-JPQFVR24.js +0 -50
- package/dist/chunk-JPZVMXDP.js +0 -1333
- package/dist/chunk-JVPF34MX.js +0 -215
- package/dist/chunk-KED67KAF.js +0 -85
- package/dist/chunk-KJ72GMZ2.js +0 -378
- package/dist/chunk-KVPQUADA.js +0 -5915
- package/dist/chunk-KVPQUADA.js.map +0 -1
- package/dist/chunk-KXBLLFOO.js +0 -249
- package/dist/chunk-LIOZ2MXJ.js +0 -380
- package/dist/chunk-LPEFULJY.js +0 -73
- package/dist/chunk-LRMGPO7E.js +0 -98
- package/dist/chunk-LVKTKORH.js +0 -121
- package/dist/chunk-MFVUNNFN.js +0 -205
- package/dist/chunk-MIUJ3EH5.js +0 -60
- package/dist/chunk-MIUMNTIJ.js +0 -175
- package/dist/chunk-ML46TXRM.js +0 -113
- package/dist/chunk-MQRHTOQ2.js +0 -218
- package/dist/chunk-NIPON7YB.js +0 -850
- package/dist/chunk-NPBEUU22.js +0 -196
- package/dist/chunk-NSXKGS2K.js +0 -178
- package/dist/chunk-NUEFORM6.js +0 -2317
- package/dist/chunk-NZOFNQNC.js +0 -176
- package/dist/chunk-OATXCLTY.js +0 -211
- package/dist/chunk-OG3ELROW.js +0 -538
- package/dist/chunk-OI4WS7FW.js +0 -162
- package/dist/chunk-OITGZUDC.js +0 -82
- package/dist/chunk-OKD2LBMK.js +0 -333
- package/dist/chunk-OSA4CGST.js +0 -134
- package/dist/chunk-OXYAKUFU.js +0 -401
- package/dist/chunk-OYMSMU5O.js +0 -396
- package/dist/chunk-P4NZ72KY.js +0 -162
- package/dist/chunk-PBYL2VIM.js +0 -379
- package/dist/chunk-PDW3OOSZ.js +0 -505
- package/dist/chunk-PGRKTQIW.js +0 -523
- package/dist/chunk-Q273Q33U.js +0 -166
- package/dist/chunk-Q4CLS2HL.js +0 -340
- package/dist/chunk-QFOBUA2J.js +0 -428
- package/dist/chunk-QLIM4D56.js +0 -1095
- package/dist/chunk-QMQF5U2D.js +0 -20
- package/dist/chunk-QPOUPVPD.js +0 -144
- package/dist/chunk-QTJAQ6DS.js +0 -48
- package/dist/chunk-QUOFP3G7.js +0 -404
- package/dist/chunk-QVOTPOXK.js +0 -29
- package/dist/chunk-QYZ5RVGM.js +0 -184
- package/dist/chunk-R7CVDKRN.js +0 -2580
- package/dist/chunk-RB7MXNZD.js +0 -639
- package/dist/chunk-RDZQFZOQ.js +0 -187
- package/dist/chunk-RIHKEGWS.js +0 -194
- package/dist/chunk-RIHKEGWS.js.map +0 -1
- package/dist/chunk-ROSB7GF6.js +0 -57
- package/dist/chunk-RP3YMYCX.js +0 -723
- package/dist/chunk-RPHXJHNX.js +0 -271
- package/dist/chunk-RVC3M66H.js +0 -191
- package/dist/chunk-S3OTJAAC.js +0 -283
- package/dist/chunk-SBWPMVRN.js +0 -56
- package/dist/chunk-SERECSAR.js +0 -138
- package/dist/chunk-SHSEF3GJ.js +0 -187
- package/dist/chunk-SMS2M3RG.js +0 -772
- package/dist/chunk-SRDHDIRQ.js +0 -177
- package/dist/chunk-SXRYA7NN.js +0 -389
- package/dist/chunk-SYA3WYG4.js +0 -1187
- package/dist/chunk-T2QDSTBH.js +0 -371
- package/dist/chunk-TFSCGFYV.js +0 -251
- package/dist/chunk-TGCKZOSX.js +0 -246
- package/dist/chunk-THILLYQM.js +0 -132
- package/dist/chunk-TI6LGUEZ.js +0 -2412
- package/dist/chunk-TSY6YZL2.js +0 -366
- package/dist/chunk-TW2RHTLH.js +0 -3321
- package/dist/chunk-TWA5G277.js +0 -141
- package/dist/chunk-TZZ2S4XI.js +0 -247
- package/dist/chunk-UECD27LX.js +0 -251
- package/dist/chunk-UFJDETKG.js +0 -108
- package/dist/chunk-UHBIXNRW.js +0 -100
- package/dist/chunk-UHCFYX4I.js +0 -570
- package/dist/chunk-UHTURYJO.js +0 -898
- package/dist/chunk-UJH63JT3.js +0 -67
- package/dist/chunk-UMLPIMGW.js +0 -105
- package/dist/chunk-UOLDS6S5.js +0 -1152
- package/dist/chunk-UUE3OGXI.js +0 -84
- package/dist/chunk-UUNJ2E57.js +0 -391
- package/dist/chunk-UYQVWRAH.js +0 -199
- package/dist/chunk-UYWWUEL4.js +0 -126
- package/dist/chunk-V4CQKX5H.js +0 -48
- package/dist/chunk-V4QM7GDQ.js +0 -3176
- package/dist/chunk-V5Y74WII.js +0 -91
- package/dist/chunk-VGGZLUQK.js +0 -129
- package/dist/chunk-VGX636MB.js +0 -311
- package/dist/chunk-VGZLFQO2.js +0 -773
- package/dist/chunk-VJWZATNF.js +0 -137
- package/dist/chunk-VMWCIC2N.js +0 -50
- package/dist/chunk-VPWKTIU5.js +0 -227
- package/dist/chunk-VXOLG6YB.js +0 -469
- package/dist/chunk-W2NAU5VB.js +0 -1628
- package/dist/chunk-WGORKMR3.js +0 -353
- package/dist/chunk-WMIDELSJ.js +0 -391
- package/dist/chunk-WSOSGL2G.js +0 -383
- package/dist/chunk-WXUUOM4X.js +0 -400
- package/dist/chunk-WZ74QHLE.js +0 -4863
- package/dist/chunk-WZ74QHLE.js.map +0 -1
- package/dist/chunk-X2OWM2ME.js +0 -1870
- package/dist/chunk-X2OWM2ME.js.map +0 -1
- package/dist/chunk-XDXKB25W.js +0 -93
- package/dist/chunk-XE4PHI74.js +0 -231
- package/dist/chunk-XLJ4SQFS.js +0 -230
- package/dist/chunk-XOD4FX6M.js +0 -2434
- package/dist/chunk-XODQ2GPF.js +0 -3110
- package/dist/chunk-XT54RTAM.js +0 -441
- package/dist/chunk-YDQHFJM2.js +0 -83
- package/dist/chunk-YH6O6OQ6.js +0 -1356
- package/dist/chunk-YIKPC2QP.js +0 -794
- package/dist/chunk-ZD7PKYC4.js +0 -335
- package/dist/chunk-ZEQYHEWP.js +0 -406
- package/dist/chunk-ZRVUCTSI.js +0 -265
- package/dist/chunk-ZSI3ITRK.js +0 -449
- package/dist/chunk-ZZMEQCIZ.js +0 -236
- package/dist/computer-viewer-ZBY3BPYW.js +0 -21
- package/dist/connection-step-up-JQ4OFSQN.js +0 -145
- package/dist/connection-step-up-JQ4OFSQN.js.map +0 -1
- package/dist/embedded-new-voice-ZB5XLKLU.js +0 -25
- package/dist/embedded-voice-MZJISDCS.js +0 -25
- package/dist/fleet-decision-row-LG3SYVR3.js +0 -361
- package/dist/latest-question-QWJTXMFA.js +0 -124
- package/dist/model-policy-picker-menu-5Y72PLNF.js +0 -23
- package/dist/payment-page-card-YPSXRHBA.js +0 -226
- package/dist/platform-activity-row-ZU4MEBNK.js +0 -156
- package/dist/queue-surface-implementation-6Q25RPH6.js +0 -932
- package/dist/recorder-host-JD4GWJ2Z.js +0 -80
- package/dist/sandbox-files-HCLEEJMU.js +0 -28
- package/dist/session-connect-cards-DRKEN3Z4.js +0 -27
- package/dist/session-realtime-IZOTTRH6.js +0 -30
- package/dist/timeline-annotation-markers-WWXNJOXI.js +0 -157
- package/dist/timeline-annotation-selection-ZKRIQFIQ.js +0 -208
- package/dist/timeline-annotations-dialog-4IMKTOXJ.js +0 -283
- /package/dist/{browser-viewer-EIEMRVFF.js.map → app/components/agents/agent-trigger-repositories.js.map} +0 -0
- /package/dist/{chat-interactive-block-FV37LWYZ.js.map → app/components/artifacts/app-server-status.js.map} +0 -0
- /package/dist/{computer-viewer-ZBY3BPYW.js.map → app/components/artifacts/ready-made-apps.js.map} +0 -0
- /package/dist/{embedded-new-voice-ZB5XLKLU.js.map → app/lib/ready-made-apps.js.map} +0 -0
- /package/dist/{embedded-voice-MZJISDCS.js.map → browser-viewer-EPGAK2W6.js.map} +0 -0
- /package/dist/{model-policy-picker-menu-5Y72PLNF.js.map → chat-interactive-block-65YU6TMO.js.map} +0 -0
- /package/dist/{chunk-CLKR4UG3.js.map → chunk-25ODMMHH.js.map} +0 -0
- /package/dist/{chunk-WXUUOM4X.js.map → chunk-266ZPUMH.js.map} +0 -0
- /package/dist/{chunk-GXOTNT5D.js.map → chunk-2A7SB7UR.js.map} +0 -0
- /package/dist/{chunk-UHBIXNRW.js.map → chunk-2EU4Y7A7.js.map} +0 -0
- /package/dist/{chunk-UHCFYX4I.js.map → chunk-2LBYEHBH.js.map} +0 -0
- /package/dist/{chunk-TWA5G277.js.map → chunk-2MHIIF4N.js.map} +0 -0
- /package/dist/{chunk-757LE32E.js.map → chunk-2SHWGDAA.js.map} +0 -0
- /package/dist/{chunk-VGZLFQO2.js.map → chunk-2VX42S4W.js.map} +0 -0
- /package/dist/{chunk-VGX636MB.js.map → chunk-2WGJQ4XK.js.map} +0 -0
- /package/dist/{chunk-GWAY3SO5.js.map → chunk-2XSF44TY.js.map} +0 -0
- /package/dist/{chunk-RB7MXNZD.js.map → chunk-33HUZMNE.js.map} +0 -0
- /package/dist/{chunk-63WDQV5X.js.map → chunk-36IKHM4Q.js.map} +0 -0
- /package/dist/{chunk-4E5QVAT4.js.map → chunk-3JVQZAXQ.js.map} +0 -0
- /package/dist/{chunk-4KASGJTF.js.map → chunk-3SDESU6U.js.map} +0 -0
- /package/dist/{chunk-BPEEVMKH.js.map → chunk-3VXZFBP6.js.map} +0 -0
- /package/dist/{chunk-BXMND6YU.js.map → chunk-3YKED2ZV.js.map} +0 -0
- /package/dist/{chunk-AIX2D6RB.js.map → chunk-3ZNOKD3S.js.map} +0 -0
- /package/dist/{chunk-R7CVDKRN.js.map → chunk-45SB4UK3.js.map} +0 -0
- /package/dist/{chunk-EILSPMVD.js.map → chunk-47BETTVA.js.map} +0 -0
- /package/dist/{chunk-EAXTACI4.js.map → chunk-4BTQ473O.js.map} +0 -0
- /package/dist/{chunk-KXBLLFOO.js.map → chunk-4JQRWJVR.js.map} +0 -0
- /package/dist/{chunk-AHVQGL5A.js.map → chunk-4R6WFQKZ.js.map} +0 -0
- /package/dist/{chunk-S3OTJAAC.js.map → chunk-4WEPVL7X.js.map} +0 -0
- /package/dist/{chunk-6DOIINY4.js.map → chunk-4YWHOAB4.js.map} +0 -0
- /package/dist/{chunk-CVC4RO7D.js.map → chunk-52XGYRVS.js.map} +0 -0
- /package/dist/{chunk-GNGI6XFN.js.map → chunk-5G6UHUJZ.js.map} +0 -0
- /package/dist/{chunk-GSW4YHZE.js.map → chunk-5HFITPHH.js.map} +0 -0
- /package/dist/{chunk-4UU7FN3I.js.map → chunk-5LVVN2K7.js.map} +0 -0
- /package/dist/{chunk-V4CQKX5H.js.map → chunk-5PVXFVIT.js.map} +0 -0
- /package/dist/{chunk-RDZQFZOQ.js.map → chunk-5WFGW7B7.js.map} +0 -0
- /package/dist/{chunk-FUXFJTXL.js.map → chunk-66M7RVM6.js.map} +0 -0
- /package/dist/{chunk-EMWT6GOK.js.map → chunk-6AGNZI2W.js.map} +0 -0
- /package/dist/{chunk-DTLXQ3ZU.js.map → chunk-6ENO634Y.js.map} +0 -0
- /package/dist/{chunk-7SYCHMXS.js.map → chunk-6LQ5KEMP.js.map} +0 -0
- /package/dist/{chunk-QFOBUA2J.js.map → chunk-6QGIWLH5.js.map} +0 -0
- /package/dist/{chunk-2HS3IUXE.js.map → chunk-6WEDWD4N.js.map} +0 -0
- /package/dist/{chunk-AB5SPXUR.js.map → chunk-6YCYPXDA.js.map} +0 -0
- /package/dist/{chunk-A7EBV2EB.js.map → chunk-6YTNMDFP.js.map} +0 -0
- /package/dist/{chunk-JPQFVR24.js.map → chunk-73O7NO3F.js.map} +0 -0
- /package/dist/{chunk-UECD27LX.js.map → chunk-76VXLTQF.js.map} +0 -0
- /package/dist/{chunk-XDXKB25W.js.map → chunk-7EJ7PSZT.js.map} +0 -0
- /package/dist/{chunk-JIC6RLUB.js.map → chunk-7GS2MGFU.js.map} +0 -0
- /package/dist/{chunk-DNAXAS5R.js.map → chunk-7MF6MFHS.js.map} +0 -0
- /package/dist/{chunk-63VNZRLY.js.map → chunk-7N35XBSC.js.map} +0 -0
- /package/dist/{chunk-3SBKYPNM.js.map → chunk-7ND2VMKV.js.map} +0 -0
- /package/dist/{chunk-DONBARLL.js.map → chunk-7RVJLO3N.js.map} +0 -0
- /package/dist/{chunk-WGORKMR3.js.map → chunk-7VAILBP6.js.map} +0 -0
- /package/dist/{chunk-4I4RTI4D.js.map → chunk-7VSJQWFO.js.map} +0 -0
- /package/dist/{chunk-ZD7PKYC4.js.map → chunk-7YKUIKGH.js.map} +0 -0
- /package/dist/{chunk-SERECSAR.js.map → chunk-A7DS77WC.js.map} +0 -0
- /package/dist/{chunk-4AH4EEHE.js.map → chunk-AEH34OOU.js.map} +0 -0
- /package/dist/{chunk-CPX6BHER.js.map → chunk-ANWMRO2G.js.map} +0 -0
- /package/dist/{chunk-TZZ2S4XI.js.map → chunk-APGUIORF.js.map} +0 -0
- /package/dist/{chunk-CIRCUDKF.js.map → chunk-ASCVQJB4.js.map} +0 -0
- /package/dist/{chunk-JPZVMXDP.js.map → chunk-AY4XH73V.js.map} +0 -0
- /package/dist/{chunk-XOD4FX6M.js.map → chunk-B6AH43UQ.js.map} +0 -0
- /package/dist/{chunk-5OVRMKP5.js.map → chunk-BGT43KDL.js.map} +0 -0
- /package/dist/{chunk-GZZCVF76.js.map → chunk-BHS4KW4W.js.map} +0 -0
- /package/dist/{chunk-F7QEO7M2.js.map → chunk-BNWO72C2.js.map} +0 -0
- /package/dist/{chunk-4ZRNASBF.js.map → chunk-BSPIASSQ.js.map} +0 -0
- /package/dist/{chunk-XLJ4SQFS.js.map → chunk-BVWJEZXG.js.map} +0 -0
- /package/dist/{chunk-TSY6YZL2.js.map → chunk-BZ47G3VP.js.map} +0 -0
- /package/dist/{chunk-62HIKJ5F.js.map → chunk-C6KI5P3H.js.map} +0 -0
- /package/dist/{chunk-NUEFORM6.js.map → chunk-CLERWAEA.js.map} +0 -0
- /package/dist/{chunk-5SOL4INY.js.map → chunk-CNRFFCAE.js.map} +0 -0
- /package/dist/{chunk-ZZMEQCIZ.js.map → chunk-CPC6CYVW.js.map} +0 -0
- /package/dist/{chunk-FMBJKMT4.js.map → chunk-D23UAPXK.js.map} +0 -0
- /package/dist/{chunk-QVOTPOXK.js.map → chunk-DAPZEB4R.js.map} +0 -0
- /package/dist/{chunk-MFVUNNFN.js.map → chunk-DEDEA3WS.js.map} +0 -0
- /package/dist/{chunk-RPHXJHNX.js.map → chunk-DHVA3T3K.js.map} +0 -0
- /package/dist/{chunk-UUNJ2E57.js.map → chunk-DJQ6TKIP.js.map} +0 -0
- /package/dist/{chunk-6YU3WV2P.js.map → chunk-DK2CDAMR.js.map} +0 -0
- /package/dist/{chunk-GMGAW3T6.js.map → chunk-DPOB6MUS.js.map} +0 -0
- /package/dist/{chunk-VJWZATNF.js.map → chunk-DSO7S6PZ.js.map} +0 -0
- /package/dist/{chunk-OKD2LBMK.js.map → chunk-DV3OECO6.js.map} +0 -0
- /package/dist/{chunk-SYA3WYG4.js.map → chunk-DW2IQRMB.js.map} +0 -0
- /package/dist/{chunk-OSA4CGST.js.map → chunk-DWLPQTDL.js.map} +0 -0
- /package/dist/{chunk-V4QM7GDQ.js.map → chunk-DXMKECFR.js.map} +0 -0
- /package/dist/{chunk-LPEFULJY.js.map → chunk-DYQRNIID.js.map} +0 -0
- /package/dist/{chunk-VGGZLUQK.js.map → chunk-DZLWO73N.js.map} +0 -0
- /package/dist/{chunk-AWK23Q32.js.map → chunk-E2GNUL64.js.map} +0 -0
- /package/dist/{chunk-AVSIHP7Q.js.map → chunk-E7XU2KHD.js.map} +0 -0
- /package/dist/{chunk-2JXKP4M6.js.map → chunk-ENYULVQW.js.map} +0 -0
- /package/dist/{chunk-5EJBPQI2.js.map → chunk-EWHQ3DFM.js.map} +0 -0
- /package/dist/{chunk-EXRQ5ATC.js.map → chunk-F3LIUDXN.js.map} +0 -0
- /package/dist/{chunk-D3YJAQGK.js.map → chunk-F5C7DTVR.js.map} +0 -0
- /package/dist/{chunk-WMIDELSJ.js.map → chunk-F5NFGBIN.js.map} +0 -0
- /package/dist/{chunk-DO247ITS.js.map → chunk-F6XJLGOV.js.map} +0 -0
- /package/dist/{chunk-G6SSSX5R.js.map → chunk-F7T2STMX.js.map} +0 -0
- /package/dist/{chunk-T2QDSTBH.js.map → chunk-FAEVOM6B.js.map} +0 -0
- /package/dist/{chunk-EFKQHCGJ.js.map → chunk-FCFAXQDM.js.map} +0 -0
- /package/dist/{chunk-7S2S4MXR.js.map → chunk-FEQVCQMK.js.map} +0 -0
- /package/dist/{chunk-OYMSMU5O.js.map → chunk-FLDF2Z44.js.map} +0 -0
- /package/dist/{chunk-SMS2M3RG.js.map → chunk-GADABL3P.js.map} +0 -0
- /package/dist/{chunk-BC7PTVXW.js.map → chunk-GFUDB3SA.js.map} +0 -0
- /package/dist/{chunk-JVPF34MX.js.map → chunk-GGPZPBHS.js.map} +0 -0
- /package/dist/{chunk-IM3WA5AL.js.map → chunk-GIEGIEMT.js.map} +0 -0
- /package/dist/{chunk-SHSEF3GJ.js.map → chunk-GKWFQEO3.js.map} +0 -0
- /package/dist/{chunk-2XGRHMRI.js.map → chunk-GMMB4NCN.js.map} +0 -0
- /package/dist/{chunk-2P5K7CBH.js.map → chunk-GN4FOL2G.js.map} +0 -0
- /package/dist/{chunk-VXOLG6YB.js.map → chunk-GQJAMANY.js.map} +0 -0
- /package/dist/{chunk-PBYL2VIM.js.map → chunk-H7F4ANJQ.js.map} +0 -0
- /package/dist/{chunk-XODQ2GPF.js.map → chunk-HEPFJ3XQ.js.map} +0 -0
- /package/dist/{chunk-ES5HKVQF.js.map → chunk-HLRAQITA.js.map} +0 -0
- /package/dist/{chunk-II376XH3.js.map → chunk-HXYSZKCC.js.map} +0 -0
- /package/dist/{chunk-JNV5ZPUV.js.map → chunk-I5Q6FVHP.js.map} +0 -0
- /package/dist/{chunk-ZRVUCTSI.js.map → chunk-I7M5BYJU.js.map} +0 -0
- /package/dist/{chunk-KED67KAF.js.map → chunk-IH3J7VWW.js.map} +0 -0
- /package/dist/{chunk-NSXKGS2K.js.map → chunk-IMMDXSZ4.js.map} +0 -0
- /package/dist/{chunk-UYQVWRAH.js.map → chunk-IOMZDY5D.js.map} +0 -0
- /package/dist/{chunk-5MP3G7ZV.js.map → chunk-IQTCUUDF.js.map} +0 -0
- /package/dist/{chunk-UHTURYJO.js.map → chunk-ISR6KXWT.js.map} +0 -0
- /package/dist/{chunk-TW2RHTLH.js.map → chunk-IWPPGXUZ.js.map} +0 -0
- /package/dist/{chunk-UUE3OGXI.js.map → chunk-JNPCRNPA.js.map} +0 -0
- /package/dist/{chunk-PDW3OOSZ.js.map → chunk-JSJGGP32.js.map} +0 -0
- /package/dist/{chunk-SBWPMVRN.js.map → chunk-JZZUEJYD.js.map} +0 -0
- /package/dist/{chunk-4D3YJNVN.js.map → chunk-K5XFZKK5.js.map} +0 -0
- /package/dist/{chunk-332BYSAZ.js.map → chunk-K6GRTSEA.js.map} +0 -0
- /package/dist/{chunk-HJLHGXWL.js.map → chunk-KA4PZU3Q.js.map} +0 -0
- /package/dist/{chunk-YDQHFJM2.js.map → chunk-KGZ35ESO.js.map} +0 -0
- /package/dist/{chunk-HT7MBHLY.js.map → chunk-KRM4PW5N.js.map} +0 -0
- /package/dist/{chunk-QLIM4D56.js.map → chunk-LEZGGRDQ.js.map} +0 -0
- /package/dist/{chunk-QPOUPVPD.js.map → chunk-LFWMFFKT.js.map} +0 -0
- /package/dist/{chunk-A5GX3CAE.js.map → chunk-LKSPUZPH.js.map} +0 -0
- /package/dist/{chunk-OXYAKUFU.js.map → chunk-LLX4S6BI.js.map} +0 -0
- /package/dist/{chunk-NIPON7YB.js.map → chunk-M4WEF4DZ.js.map} +0 -0
- /package/dist/{chunk-LVKTKORH.js.map → chunk-MATYGLUT.js.map} +0 -0
- /package/dist/{chunk-5Y34P32B.js.map → chunk-MDI6SH7B.js.map} +0 -0
- /package/dist/{chunk-JB3TSUZO.js.map → chunk-MQTYIBY6.js.map} +0 -0
- /package/dist/{chunk-72EOXOR7.js.map → chunk-MRKY2GL5.js.map} +0 -0
- /package/dist/{chunk-YIKPC2QP.js.map → chunk-MSIQ42IY.js.map} +0 -0
- /package/dist/{chunk-7YLQCMZP.js.map → chunk-MVGU7BET.js.map} +0 -0
- /package/dist/{chunk-QUOFP3G7.js.map → chunk-MWY4TBDY.js.map} +0 -0
- /package/dist/{chunk-BJUOKUE5.js.map → chunk-NGQCWCD6.js.map} +0 -0
- /package/dist/{chunk-OG3ELROW.js.map → chunk-NKXMIOYN.js.map} +0 -0
- /package/dist/{chunk-ER5MYLIE.js.map → chunk-NMVRFFCR.js.map} +0 -0
- /package/dist/{chunk-GUC6IWEY.js.map → chunk-NNTDIKJP.js.map} +0 -0
- /package/dist/{chunk-LRMGPO7E.js.map → chunk-NQXCPP4G.js.map} +0 -0
- /package/dist/{chunk-THILLYQM.js.map → chunk-NYGS6FNV.js.map} +0 -0
- /package/dist/{chunk-NZOFNQNC.js.map → chunk-O3LOQDTI.js.map} +0 -0
- /package/dist/{chunk-2COBAJC7.js.map → chunk-O5HRZ2KG.js.map} +0 -0
- /package/dist/{chunk-H4VMHFOX.js.map → chunk-O5PZRVQR.js.map} +0 -0
- /package/dist/{chunk-IX4P4OGR.js.map → chunk-O6KR5SN7.js.map} +0 -0
- /package/dist/{chunk-EO22NST7.js.map → chunk-OBKDRV2H.js.map} +0 -0
- /package/dist/{chunk-3S3PJB7J.js.map → chunk-OBKKUBGL.js.map} +0 -0
- /package/dist/{chunk-3L5ATO4A.js.map → chunk-OFYXDB6I.js.map} +0 -0
- /package/dist/{chunk-VMWCIC2N.js.map → chunk-OLMWJGSJ.js.map} +0 -0
- /package/dist/{chunk-4RUKLIOF.js.map → chunk-ORRACKLB.js.map} +0 -0
- /package/dist/{chunk-6YUHDFOZ.js.map → chunk-P426WWAB.js.map} +0 -0
- /package/dist/{chunk-SRDHDIRQ.js.map → chunk-P4GOY3ZL.js.map} +0 -0
- /package/dist/{chunk-IX5VHZYS.js.map → chunk-P4KVJLUC.js.map} +0 -0
- /package/dist/{chunk-6XYFMHNT.js.map → chunk-P4N7ZS6W.js.map} +0 -0
- /package/dist/{chunk-5G4IGG7F.js.map → chunk-P6LSLNSL.js.map} +0 -0
- /package/dist/{chunk-F26YBYAZ.js.map → chunk-PAFSIDM2.js.map} +0 -0
- /package/dist/{chunk-C6OM2SRG.js.map → chunk-PC2JAIAH.js.map} +0 -0
- /package/dist/{chunk-43BRJBEV.js.map → chunk-PGSXT5OY.js.map} +0 -0
- /package/dist/{chunk-HKNMNL7B.js.map → chunk-QDMGUTOU.js.map} +0 -0
- /package/dist/{chunk-YH6O6OQ6.js.map → chunk-QEMDQKQT.js.map} +0 -0
- /package/dist/{chunk-TI6LGUEZ.js.map → chunk-QK7VU5N3.js.map} +0 -0
- /package/dist/{chunk-FJFGDLXB.js.map → chunk-QL4Q332Z.js.map} +0 -0
- /package/dist/{chunk-5SGTRULO.js.map → chunk-QL5227KT.js.map} +0 -0
- /package/dist/{chunk-3Z7VA6ET.js.map → chunk-QUFCZMHG.js.map} +0 -0
- /package/dist/{chunk-VPWKTIU5.js.map → chunk-QXPKUKOV.js.map} +0 -0
- /package/dist/{chunk-XT54RTAM.js.map → chunk-QZE3KD34.js.map} +0 -0
- /package/dist/{chunk-Q273Q33U.js.map → chunk-RAIUIXCY.js.map} +0 -0
- /package/dist/{chunk-RP3YMYCX.js.map → chunk-RDLS6IZY.js.map} +0 -0
- /package/dist/{chunk-MIUMNTIJ.js.map → chunk-RKPETJDJ.js.map} +0 -0
- /package/dist/{chunk-GJ4GTYOD.js.map → chunk-RMDLTRLI.js.map} +0 -0
- /package/dist/{chunk-PGRKTQIW.js.map → chunk-RR6DQN4X.js.map} +0 -0
- /package/dist/{chunk-MQRHTOQ2.js.map → chunk-RVPH6BB7.js.map} +0 -0
- /package/dist/{chunk-B45TB4HY.js.map → chunk-RVXLSVJH.js.map} +0 -0
- /package/dist/{chunk-IINQO425.js.map → chunk-RVY5EZNU.js.map} +0 -0
- /package/dist/{chunk-DFQ72BLS.js.map → chunk-RWHBX4MN.js.map} +0 -0
- /package/dist/{chunk-7UDLRDHK.js.map → chunk-RWHDMGFG.js.map} +0 -0
- /package/dist/{chunk-FLLJ2WXW.js.map → chunk-RYB3WBMZ.js.map} +0 -0
- /package/dist/{chunk-ZSI3ITRK.js.map → chunk-S7EO77EE.js.map} +0 -0
- /package/dist/{chunk-I5FSUZVW.js.map → chunk-S7J4HBPP.js.map} +0 -0
- /package/dist/{chunk-UFJDETKG.js.map → chunk-SA3XI7FB.js.map} +0 -0
- /package/dist/{chunk-NPBEUU22.js.map → chunk-SKRTCSUL.js.map} +0 -0
- /package/dist/{chunk-7TVAPQOV.js.map → chunk-SUWDILUY.js.map} +0 -0
- /package/dist/{chunk-TFSCGFYV.js.map → chunk-SWTPVMR4.js.map} +0 -0
- /package/dist/{chunk-RVC3M66H.js.map → chunk-T5BYEE66.js.map} +0 -0
- /package/dist/{chunk-QTJAQ6DS.js.map → chunk-T652Q4R6.js.map} +0 -0
- /package/dist/{chunk-GBGCMHBB.js.map → chunk-TBUOHK6R.js.map} +0 -0
- /package/dist/{chunk-W2NAU5VB.js.map → chunk-TCUAGCAX.js.map} +0 -0
- /package/dist/{chunk-UYWWUEL4.js.map → chunk-TLWH4E3P.js.map} +0 -0
- /package/dist/{chunk-UOLDS6S5.js.map → chunk-TNHGSWG3.js.map} +0 -0
- /package/dist/{chunk-WSOSGL2G.js.map → chunk-TO6VBJI3.js.map} +0 -0
- /package/dist/{chunk-OI4WS7FW.js.map → chunk-TOL7MOAN.js.map} +0 -0
- /package/dist/{chunk-AYZXE4IM.js.map → chunk-U243CBVZ.js.map} +0 -0
- /package/dist/{chunk-BIUJHNVR.js.map → chunk-U2CEPRDH.js.map} +0 -0
- /package/dist/{chunk-FZI4QOAV.js.map → chunk-UAZPXKPH.js.map} +0 -0
- /package/dist/{chunk-EDPH7AJH.js.map → chunk-UHRGUMLJ.js.map} +0 -0
- /package/dist/{chunk-5JAYZOAW.js.map → chunk-UNDSD6UA.js.map} +0 -0
- /package/dist/{chunk-FPN4I4CG.js.map → chunk-USU2SS4V.js.map} +0 -0
- /package/dist/{chunk-Q4CLS2HL.js.map → chunk-USWA5GQQ.js.map} +0 -0
- /package/dist/{chunk-QYZ5RVGM.js.map → chunk-UXGTI4HR.js.map} +0 -0
- /package/dist/{chunk-JNJIZCTN.js.map → chunk-UZKAHEQO.js.map} +0 -0
- /package/dist/{chunk-ML46TXRM.js.map → chunk-VALESBNH.js.map} +0 -0
- /package/dist/{chunk-F6QP4GSK.js.map → chunk-VMSMVWCJ.js.map} +0 -0
- /package/dist/{chunk-3EM5GTP3.js.map → chunk-VPERSFGV.js.map} +0 -0
- /package/dist/{chunk-AZGGSPTE.js.map → chunk-VXPY2GF3.js.map} +0 -0
- /package/dist/{chunk-6DQBUKGJ.js.map → chunk-W7RKXZDV.js.map} +0 -0
- /package/dist/{chunk-72ND4ALI.js.map → chunk-WEGZPK4I.js.map} +0 -0
- /package/dist/{chunk-LIOZ2MXJ.js.map → chunk-WPKY3BGG.js.map} +0 -0
- /package/dist/{chunk-IIXNEOK4.js.map → chunk-X3T3N6W5.js.map} +0 -0
- /package/dist/{chunk-HA5RFQAF.js.map → chunk-X4OGMBY6.js.map} +0 -0
- /package/dist/{chunk-OITGZUDC.js.map → chunk-X7ZHIJEI.js.map} +0 -0
- /package/dist/{chunk-UJH63JT3.js.map → chunk-XR7Y2HPZ.js.map} +0 -0
- /package/dist/{chunk-ROSB7GF6.js.map → chunk-Y2NMKJ7F.js.map} +0 -0
- /package/dist/{chunk-AI77ZKEV.js.map → chunk-Y2QYPJDN.js.map} +0 -0
- /package/dist/{chunk-OATXCLTY.js.map → chunk-Y47EPVCD.js.map} +0 -0
- /package/dist/{chunk-P4NZ72KY.js.map → chunk-Y5Q4ETIW.js.map} +0 -0
- /package/dist/{chunk-UMLPIMGW.js.map → chunk-YMQVVFXI.js.map} +0 -0
- /package/dist/{chunk-KJ72GMZ2.js.map → chunk-YQ6FP33X.js.map} +0 -0
- /package/dist/{chunk-ZEQYHEWP.js.map → chunk-YUA42N5A.js.map} +0 -0
- /package/dist/{chunk-V5Y74WII.js.map → chunk-YXFNW64N.js.map} +0 -0
- /package/dist/{chunk-SXRYA7NN.js.map → chunk-Z76RJPZF.js.map} +0 -0
- /package/dist/{chunk-MIUJ3EH5.js.map → chunk-ZD67RM6G.js.map} +0 -0
- /package/dist/{chunk-XE4PHI74.js.map → chunk-ZE4RD7U5.js.map} +0 -0
- /package/dist/{chunk-GLSDWNFV.js.map → chunk-ZGR7LNXC.js.map} +0 -0
- /package/dist/{chunk-QMQF5U2D.js.map → chunk-ZNA65Q6Y.js.map} +0 -0
- /package/dist/{chunk-46LZO4ZO.js.map → chunk-ZRNK6FK6.js.map} +0 -0
- /package/dist/{chunk-2JTMFYCT.js.map → chunk-ZVAIKQMC.js.map} +0 -0
- /package/dist/{chunk-TGCKZOSX.js.map → chunk-ZZ3KNGTJ.js.map} +0 -0
- /package/dist/{sandbox-files-HCLEEJMU.js.map → computer-viewer-M5N3GWBR.js.map} +0 -0
- /package/dist/{session-connect-cards-DRKEN3Z4.js.map → embedded-new-voice-QZJG5DZ3.js.map} +0 -0
- /package/dist/{session-realtime-IZOTTRH6.js.map → embedded-voice-7KOQNGKU.js.map} +0 -0
- /package/dist/{fleet-decision-row-LG3SYVR3.js.map → fleet-decision-row-FJPAWNOQ.js.map} +0 -0
- /package/dist/{latest-question-QWJTXMFA.js.map → latest-question-F3VPDR7U.js.map} +0 -0
- /package/dist/{payment-page-card-YPSXRHBA.js.map → payment-page-card-HZJVN3F4.js.map} +0 -0
- /package/dist/{platform-activity-row-ZU4MEBNK.js.map → platform-activity-row-NPEGG2VE.js.map} +0 -0
- /package/dist/{queue-surface-implementation-6Q25RPH6.js.map → queue-surface-implementation-RTCTPF5T.js.map} +0 -0
- /package/dist/{recorder-host-JD4GWJ2Z.js.map → recorder-host-YPWPLMS6.js.map} +0 -0
- /package/dist/{timeline-annotation-markers-WWXNJOXI.js.map → timeline-annotation-markers-7QSYK22C.js.map} +0 -0
- /package/dist/{timeline-annotation-selection-ZKRIQFIQ.js.map → timeline-annotation-selection-XYNMESWL.js.map} +0 -0
- /package/dist/{timeline-annotations-dialog-4IMKTOXJ.js.map → timeline-annotations-dialog-WSI6L2CP.js.map} +0 -0
package/dist/chunk-6SETNFNH.js
DELETED
|
@@ -1,1399 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
EventSourceTile,
|
|
4
|
-
eventSourceAddLabel,
|
|
5
|
-
eventSourceChoiceName,
|
|
6
|
-
eventSourceChoiceOf,
|
|
7
|
-
eventSourceKindLabel,
|
|
8
|
-
eventStatusReasonText
|
|
9
|
-
} from "./chunk-AYVWA6KD.js";
|
|
10
|
-
import {
|
|
11
|
-
CadencePicker
|
|
12
|
-
} from "./chunk-JPZVMXDP.js";
|
|
13
|
-
import {
|
|
14
|
-
AUTOMATION_NAME_MAX_LENGTH,
|
|
15
|
-
automationCadence,
|
|
16
|
-
automationName,
|
|
17
|
-
defaultAutomationCadence,
|
|
18
|
-
viewerTimeZone
|
|
19
|
-
} from "./chunk-EMWT6GOK.js";
|
|
20
|
-
import {
|
|
21
|
-
DEFAULT_EVENT_RUNS_PER_HOUR,
|
|
22
|
-
EVENT_CONDITION_OPERATORS,
|
|
23
|
-
EVENT_TRIGGERS_PER_AUTOMATION_MAX,
|
|
24
|
-
EVENT_TRIGGER_CONDITIONS_MAX,
|
|
25
|
-
emptyEventTriggersDraft,
|
|
26
|
-
eventConditionFieldSuggestions,
|
|
27
|
-
eventConditionOperator,
|
|
28
|
-
eventConditionOperatorLabel,
|
|
29
|
-
eventTriggerDraftFrom,
|
|
30
|
-
eventTypeIssue,
|
|
31
|
-
eventTypeLabel,
|
|
32
|
-
eventTypesLabel,
|
|
33
|
-
newEventConditionDraft,
|
|
34
|
-
newEventTriggerDraft
|
|
35
|
-
} from "./chunk-UV4X2IJA.js";
|
|
36
|
-
import {
|
|
37
|
-
cadenceFromScheduleSpec,
|
|
38
|
-
describeCadence,
|
|
39
|
-
timeZoneLabels,
|
|
40
|
-
toScheduleSpec
|
|
41
|
-
} from "./chunk-VGZLFQO2.js";
|
|
42
|
-
import {
|
|
43
|
-
ComboboxSelect,
|
|
44
|
-
SelectMenu
|
|
45
|
-
} from "./chunk-B45TB4HY.js";
|
|
46
|
-
import {
|
|
47
|
-
CheckboxField,
|
|
48
|
-
Field,
|
|
49
|
-
TextArea,
|
|
50
|
-
TextInput
|
|
51
|
-
} from "./chunk-2XGRHMRI.js";
|
|
52
|
-
import {
|
|
53
|
-
Button
|
|
54
|
-
} from "./chunk-7QQN3KNP.js";
|
|
55
|
-
import {
|
|
56
|
-
cn
|
|
57
|
-
} from "./chunk-TXS65BB2.js";
|
|
58
|
-
import {
|
|
59
|
-
useOpenGeniText
|
|
60
|
-
} from "./chunk-KVPQUADA.js";
|
|
61
|
-
|
|
62
|
-
// src/components/automations/event-arguments-model.ts
|
|
63
|
-
function isSchema(value) {
|
|
64
|
-
return Boolean(value) && typeof value === "object" && !Array.isArray(value);
|
|
65
|
-
}
|
|
66
|
-
function eventArgumentLabel(name) {
|
|
67
|
-
const words = name.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " ").trim().toLowerCase();
|
|
68
|
-
return words ? words.charAt(0).toUpperCase() + words.slice(1) : name;
|
|
69
|
-
}
|
|
70
|
-
function scalarExample(value) {
|
|
71
|
-
return typeof value === "string" || typeof value === "number" ? String(value) : null;
|
|
72
|
-
}
|
|
73
|
-
function choiceOptions(property) {
|
|
74
|
-
if (Array.isArray(property.enum)) {
|
|
75
|
-
const values = property.enum.filter(
|
|
76
|
-
(value) => typeof value === "string" || typeof value === "number" || typeof value === "boolean"
|
|
77
|
-
);
|
|
78
|
-
if (values.length === 0 || values.length !== property.enum.length) return null;
|
|
79
|
-
return values.map((value) => ({ value, label: String(value) }));
|
|
80
|
-
}
|
|
81
|
-
const variants = Array.isArray(property.oneOf) ? property.oneOf : Array.isArray(property.anyOf) ? property.anyOf : null;
|
|
82
|
-
if (!variants || variants.length === 0) return null;
|
|
83
|
-
const options = [];
|
|
84
|
-
for (const variant of variants) {
|
|
85
|
-
if (!isSchema(variant) || !("const" in variant)) return null;
|
|
86
|
-
const value = variant.const;
|
|
87
|
-
if (typeof value !== "string" && typeof value !== "number" && typeof value !== "boolean")
|
|
88
|
-
return null;
|
|
89
|
-
options.push({
|
|
90
|
-
value,
|
|
91
|
-
label: typeof variant.title === "string" && variant.title ? variant.title : String(value)
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
return options;
|
|
95
|
-
}
|
|
96
|
-
function argumentField(name, property, required) {
|
|
97
|
-
if (!isSchema(property)) return null;
|
|
98
|
-
const base = {
|
|
99
|
-
name,
|
|
100
|
-
label: typeof property.title === "string" && property.title.trim() ? property.title.trim() : eventArgumentLabel(name),
|
|
101
|
-
description: typeof property.description === "string" && property.description.trim() ? property.description.trim() : null,
|
|
102
|
-
required
|
|
103
|
-
};
|
|
104
|
-
const options = choiceOptions(property);
|
|
105
|
-
if (options) return { ...base, kind: "choice", options };
|
|
106
|
-
const examples = Array.isArray(property.examples) ? property.examples : [];
|
|
107
|
-
const placeholder = scalarExample(property.default) ?? scalarExample(examples[0]);
|
|
108
|
-
switch (property.type) {
|
|
109
|
-
case "string":
|
|
110
|
-
return {
|
|
111
|
-
...base,
|
|
112
|
-
kind: "text",
|
|
113
|
-
format: typeof property.format === "string" ? property.format : null,
|
|
114
|
-
placeholder
|
|
115
|
-
};
|
|
116
|
-
case "number":
|
|
117
|
-
case "integer":
|
|
118
|
-
return { ...base, kind: "number", integer: property.type === "integer", placeholder };
|
|
119
|
-
case "boolean":
|
|
120
|
-
return { ...base, kind: "boolean" };
|
|
121
|
-
default:
|
|
122
|
-
return null;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
function eventArgumentFields(schema) {
|
|
126
|
-
if (!schema) return [];
|
|
127
|
-
if (schema.type !== void 0 && schema.type !== "object") return null;
|
|
128
|
-
const properties = schema.properties;
|
|
129
|
-
if (properties === void 0) return [];
|
|
130
|
-
if (!isSchema(properties)) return null;
|
|
131
|
-
const required = new Set(
|
|
132
|
-
Array.isArray(schema.required) ? schema.required.filter((name) => typeof name === "string") : []
|
|
133
|
-
);
|
|
134
|
-
const fields = [];
|
|
135
|
-
for (const [name, property] of Object.entries(properties)) {
|
|
136
|
-
const field = argumentField(name, property, required.has(name));
|
|
137
|
-
if (!field) return null;
|
|
138
|
-
fields.push(field);
|
|
139
|
-
}
|
|
140
|
-
return [
|
|
141
|
-
...fields.filter((field) => field.required),
|
|
142
|
-
...fields.filter((field) => !field.required)
|
|
143
|
-
];
|
|
144
|
-
}
|
|
145
|
-
function eventArgumentsValue(text) {
|
|
146
|
-
if (!text.trim()) return {};
|
|
147
|
-
try {
|
|
148
|
-
const value = JSON.parse(text);
|
|
149
|
-
return isSchema(value) ? value : null;
|
|
150
|
-
} catch {
|
|
151
|
-
return null;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
function withEventArgument(text, name, value) {
|
|
155
|
-
const current = eventArgumentsValue(text) ?? {};
|
|
156
|
-
const next = { ...current };
|
|
157
|
-
if (value === void 0) delete next[name];
|
|
158
|
-
else next[name] = value;
|
|
159
|
-
return Object.keys(next).length > 0 ? JSON.stringify(next, null, 2) : "";
|
|
160
|
-
}
|
|
161
|
-
function eventArgumentsForEvent(schema, text, defaults) {
|
|
162
|
-
const properties = schema?.properties;
|
|
163
|
-
const current = eventArgumentsValue(text);
|
|
164
|
-
if (!isSchema(properties) || current === null) return text;
|
|
165
|
-
const next = {};
|
|
166
|
-
for (const name of Object.keys(properties)) {
|
|
167
|
-
const value = name in current ? current[name] : defaults?.[name];
|
|
168
|
-
if (value !== void 0) next[name] = value;
|
|
169
|
-
}
|
|
170
|
-
return Object.keys(next).length > 0 ? JSON.stringify(next, null, 2) : "";
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
// src/components/automations/event-arguments-field.tsx
|
|
174
|
-
import { useMemo } from "react";
|
|
175
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
176
|
-
function EventArgumentsField({
|
|
177
|
-
schema,
|
|
178
|
-
value,
|
|
179
|
-
onChange,
|
|
180
|
-
error,
|
|
181
|
-
disabled = false
|
|
182
|
-
}) {
|
|
183
|
-
const t = useOpenGeniText();
|
|
184
|
-
const fields = useMemo(() => eventArgumentFields(schema), [schema]);
|
|
185
|
-
const values = eventArgumentsValue(value);
|
|
186
|
-
const title = t("automations.editor.subscriptionSettings");
|
|
187
|
-
if (fields === null || values === null || fields.length === 0 && value.trim()) {
|
|
188
|
-
return /* @__PURE__ */ jsx(
|
|
189
|
-
Field,
|
|
190
|
-
{
|
|
191
|
-
label: title,
|
|
192
|
-
optional: true,
|
|
193
|
-
error,
|
|
194
|
-
hint: t("automations.editor.subscriptionSettingsHint"),
|
|
195
|
-
children: /* @__PURE__ */ jsx(
|
|
196
|
-
TextArea,
|
|
197
|
-
{
|
|
198
|
-
mono: true,
|
|
199
|
-
rows: 4,
|
|
200
|
-
value,
|
|
201
|
-
onChange: (event) => onChange(event.target.value),
|
|
202
|
-
placeholder: jsonExample(schema),
|
|
203
|
-
disabled,
|
|
204
|
-
spellCheck: false
|
|
205
|
-
}
|
|
206
|
-
)
|
|
207
|
-
}
|
|
208
|
-
);
|
|
209
|
-
}
|
|
210
|
-
if (fields.length === 0) return null;
|
|
211
|
-
return /* @__PURE__ */ jsxs("fieldset", { className: "m-0 flex min-w-0 flex-col gap-4 border-0 p-0", disabled, children: [
|
|
212
|
-
/* @__PURE__ */ jsx("legend", { className: "sr-only", children: title }),
|
|
213
|
-
fields.map((field) => /* @__PURE__ */ jsx(
|
|
214
|
-
ArgumentInput,
|
|
215
|
-
{
|
|
216
|
-
field,
|
|
217
|
-
value: values[field.name],
|
|
218
|
-
onChange: (next) => onChange(withEventArgument(value, field.name, next)),
|
|
219
|
-
disabled
|
|
220
|
-
},
|
|
221
|
-
field.name
|
|
222
|
-
)),
|
|
223
|
-
error ? /* @__PURE__ */ jsx("p", { role: "alert", className: "m-0 text-xs leading-4.5 text-danger", children: error }) : null
|
|
224
|
-
] });
|
|
225
|
-
}
|
|
226
|
-
function ArgumentInput({
|
|
227
|
-
field,
|
|
228
|
-
value,
|
|
229
|
-
onChange,
|
|
230
|
-
disabled
|
|
231
|
-
}) {
|
|
232
|
-
const t = useOpenGeniText();
|
|
233
|
-
if (field.kind === "boolean") {
|
|
234
|
-
return /* @__PURE__ */ jsx(
|
|
235
|
-
CheckboxField,
|
|
236
|
-
{
|
|
237
|
-
label: field.label,
|
|
238
|
-
description: field.description ?? void 0,
|
|
239
|
-
checked: value === true,
|
|
240
|
-
onCheckedChange: (checked) => onChange(checked ? true : field.required ? false : void 0),
|
|
241
|
-
disabled
|
|
242
|
-
}
|
|
243
|
-
);
|
|
244
|
-
}
|
|
245
|
-
const hint = field.description ?? void 0;
|
|
246
|
-
if (field.kind === "choice") {
|
|
247
|
-
const selected = field.options.findIndex((option) => option.value === value);
|
|
248
|
-
return /* @__PURE__ */ jsx(Field, { label: field.label, optional: !field.required, hint, children: /* @__PURE__ */ jsx(
|
|
249
|
-
SelectMenu,
|
|
250
|
-
{
|
|
251
|
-
options: field.options.map((option, index) => ({
|
|
252
|
-
value: String(index),
|
|
253
|
-
label: option.label
|
|
254
|
-
})),
|
|
255
|
-
value: selected >= 0 ? String(selected) : null,
|
|
256
|
-
onValueChange: (index) => onChange(field.options[Number(index)]?.value),
|
|
257
|
-
placeholder: t("automations.arguments.choose"),
|
|
258
|
-
disabled,
|
|
259
|
-
className: "max-w-full"
|
|
260
|
-
}
|
|
261
|
-
) });
|
|
262
|
-
}
|
|
263
|
-
const text = typeof value === "string" || typeof value === "number" ? String(value) : "";
|
|
264
|
-
return /* @__PURE__ */ jsx(Field, { label: field.label, optional: !field.required, hint, children: /* @__PURE__ */ jsx(
|
|
265
|
-
TextInput,
|
|
266
|
-
{
|
|
267
|
-
value: text,
|
|
268
|
-
onChange: (event) => {
|
|
269
|
-
const typed = event.target.value;
|
|
270
|
-
if (!typed.trim()) return onChange(void 0);
|
|
271
|
-
if (field.kind === "number") {
|
|
272
|
-
const number = Number(typed.trim());
|
|
273
|
-
return onChange(String(number) === typed.trim() ? number : typed);
|
|
274
|
-
}
|
|
275
|
-
onChange(typed);
|
|
276
|
-
},
|
|
277
|
-
inputMode: field.kind === "number" ? field.integer ? "numeric" : "decimal" : void 0,
|
|
278
|
-
mono: field.kind === "text" && field.format === "uuid",
|
|
279
|
-
placeholder: field.placeholder ?? void 0,
|
|
280
|
-
disabled,
|
|
281
|
-
spellCheck: false,
|
|
282
|
-
suppressAutofill: true
|
|
283
|
-
}
|
|
284
|
-
) });
|
|
285
|
-
}
|
|
286
|
-
function jsonExample(schema) {
|
|
287
|
-
const properties = schema?.properties;
|
|
288
|
-
if (!properties || typeof properties !== "object") return "{}";
|
|
289
|
-
const example = {};
|
|
290
|
-
for (const [name, property] of Object.entries(properties)) {
|
|
291
|
-
const type = property?.type;
|
|
292
|
-
example[name] = type === "number" || type === "integer" ? 0 : type === "boolean" ? true : "";
|
|
293
|
-
}
|
|
294
|
-
return JSON.stringify(example, null, 2);
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
// src/components/automations/automation-template-model.ts
|
|
298
|
-
import { AUTOMATION_TEMPLATE_NAME_MAX_LENGTH } from "@opengeni/contracts/automation-templates";
|
|
299
|
-
import { webhookPresetOf } from "@opengeni/contracts/event-triggers";
|
|
300
|
-
var WEEKDAYS = ["MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY"];
|
|
301
|
-
function builtinAutomationTemplates(t) {
|
|
302
|
-
return [
|
|
303
|
-
{
|
|
304
|
-
id: "meeting-notes",
|
|
305
|
-
name: t("automations.template.meetingNotes.name"),
|
|
306
|
-
description: t("automations.template.meetingNotes.description"),
|
|
307
|
-
instructions: t("automations.template.meetingNotes.instructions"),
|
|
308
|
-
when: t("automations.template.meetingNotes.when"),
|
|
309
|
-
schedule: null,
|
|
310
|
-
triggers: [
|
|
311
|
-
{
|
|
312
|
-
source: { kind: "workspace" },
|
|
313
|
-
eventTypes: ["recording.transcript.ready"],
|
|
314
|
-
conditions: [
|
|
315
|
-
{ field: "data.purpose", op: "equals", value: "meeting" },
|
|
316
|
-
// The person's own meetings: everyone who uses the template writes their own.
|
|
317
|
-
{ field: "data.recordedByYou", op: "equals", value: true }
|
|
318
|
-
]
|
|
319
|
-
}
|
|
320
|
-
]
|
|
321
|
-
},
|
|
322
|
-
{
|
|
323
|
-
id: "pr-review",
|
|
324
|
-
name: t("automations.template.prReview.name"),
|
|
325
|
-
description: t("automations.template.prReview.description"),
|
|
326
|
-
instructions: t("automations.template.prReview.instructions"),
|
|
327
|
-
when: t("automations.template.prReview.when"),
|
|
328
|
-
schedule: null,
|
|
329
|
-
triggers: [
|
|
330
|
-
{
|
|
331
|
-
source: { kind: "github" },
|
|
332
|
-
eventTypes: ["pull_request.opened", "pull_request.ready_for_review"],
|
|
333
|
-
// A draft is reviewed once it is marked ready for review.
|
|
334
|
-
conditions: [{ field: "data.pull_request.draft", op: "equals", value: false }]
|
|
335
|
-
}
|
|
336
|
-
]
|
|
337
|
-
},
|
|
338
|
-
{
|
|
339
|
-
id: "automation-failed",
|
|
340
|
-
name: t("automations.template.automationFailed.name"),
|
|
341
|
-
description: t("automations.template.automationFailed.description"),
|
|
342
|
-
instructions: t("automations.template.automationFailed.instructions"),
|
|
343
|
-
when: t("automations.template.automationFailed.when"),
|
|
344
|
-
schedule: null,
|
|
345
|
-
triggers: [
|
|
346
|
-
{
|
|
347
|
-
source: { kind: "workspace" },
|
|
348
|
-
eventTypes: ["turn.failed"],
|
|
349
|
-
// Failed automation chats are Opengeni's own events: only chats an
|
|
350
|
-
// automation ran, and only the person's own automations.
|
|
351
|
-
includeOwnEvents: true,
|
|
352
|
-
conditions: [
|
|
353
|
-
{ field: "data.automationRunId", op: "exists" },
|
|
354
|
-
{ field: "data.startedByYou", op: "equals", value: true }
|
|
355
|
-
]
|
|
356
|
-
}
|
|
357
|
-
]
|
|
358
|
-
},
|
|
359
|
-
{
|
|
360
|
-
id: "issue-triage",
|
|
361
|
-
name: t("automations.template.issueTriage.name"),
|
|
362
|
-
description: t("automations.template.issueTriage.description"),
|
|
363
|
-
instructions: t("automations.template.issueTriage.instructions"),
|
|
364
|
-
when: t("automations.template.issueTriage.when"),
|
|
365
|
-
schedule: null,
|
|
366
|
-
triggers: [
|
|
367
|
-
{
|
|
368
|
-
source: { kind: "webhook", adapter: "custom", preset: "linear" },
|
|
369
|
-
eventTypes: ["Issue.create"]
|
|
370
|
-
}
|
|
371
|
-
]
|
|
372
|
-
},
|
|
373
|
-
{
|
|
374
|
-
id: "morning-brief",
|
|
375
|
-
name: t("automations.template.morningBrief.name"),
|
|
376
|
-
description: t("automations.template.morningBrief.description"),
|
|
377
|
-
instructions: t("automations.template.morningBrief.instructions"),
|
|
378
|
-
schedule: { type: "calendar", hour: 8, minute: 0, daysOfWeek: [...WEEKDAYS] },
|
|
379
|
-
triggers: []
|
|
380
|
-
},
|
|
381
|
-
{
|
|
382
|
-
id: "dependency-pr",
|
|
383
|
-
name: t("automations.template.dependencyPr.name"),
|
|
384
|
-
description: t("automations.template.dependencyPr.description"),
|
|
385
|
-
instructions: t("automations.template.dependencyPr.instructions"),
|
|
386
|
-
schedule: { type: "calendar", hour: 9, minute: 30, daysOfWeek: ["MONDAY"] },
|
|
387
|
-
triggers: []
|
|
388
|
-
},
|
|
389
|
-
{
|
|
390
|
-
id: "cost-check",
|
|
391
|
-
name: t("automations.template.costCheck.name"),
|
|
392
|
-
description: t("automations.template.costCheck.description"),
|
|
393
|
-
instructions: t("automations.template.costCheck.instructions"),
|
|
394
|
-
schedule: { type: "calendar", hour: 8, minute: 0, daysOfWeek: [...WEEKDAYS] },
|
|
395
|
-
triggers: []
|
|
396
|
-
}
|
|
397
|
-
];
|
|
398
|
-
}
|
|
399
|
-
function automationTemplatesFor(templates, options) {
|
|
400
|
-
return templates.filter(
|
|
401
|
-
(template) => (options.eventTriggers || template.triggers.length === 0) && (options.workspaceEvents === true || !template.triggers.some((trigger) => trigger.source.kind === "workspace"))
|
|
402
|
-
);
|
|
403
|
-
}
|
|
404
|
-
function automationTemplateOfSaved(saved) {
|
|
405
|
-
return {
|
|
406
|
-
id: saved.id,
|
|
407
|
-
name: saved.name,
|
|
408
|
-
description: saved.description,
|
|
409
|
-
instructions: saved.instructions,
|
|
410
|
-
schedule: saved.schedule,
|
|
411
|
-
triggers: saved.triggers,
|
|
412
|
-
maxRunsPerHour: saved.maxRunsPerHour
|
|
413
|
-
};
|
|
414
|
-
}
|
|
415
|
-
function automationTemplateSourceChoice(source) {
|
|
416
|
-
return eventSourceChoiceOf({
|
|
417
|
-
kind: source.kind,
|
|
418
|
-
adapter: source.adapter ?? null,
|
|
419
|
-
format: source.preset ? { preset: source.preset } : null
|
|
420
|
-
});
|
|
421
|
-
}
|
|
422
|
-
function automationTemplateWhenWords(t, template, now) {
|
|
423
|
-
if (template.when) return template.when;
|
|
424
|
-
const cadence = template.schedule ? automationTemplateCadence(template.schedule, viewerTimeZone()) : null;
|
|
425
|
-
if (cadence) {
|
|
426
|
-
return describeCadence(cadence.rule, {
|
|
427
|
-
timeZone: cadence.timeZone,
|
|
428
|
-
now,
|
|
429
|
-
text: t
|
|
430
|
-
}).short.replace(/ · .*$/u, "");
|
|
431
|
-
}
|
|
432
|
-
const [first] = template.triggers;
|
|
433
|
-
if (!first) return t("automations.when.manual");
|
|
434
|
-
const words = t("automations.trigger.short", {
|
|
435
|
-
events: eventTypesLabel(t, first.eventTypes),
|
|
436
|
-
source: eventSourceChoiceName(t, automationTemplateSourceChoice(first.source))
|
|
437
|
-
});
|
|
438
|
-
return template.triggers.length === 1 ? words : t("automations.triggers.shortAndMore", { words, count: template.triggers.length - 1 });
|
|
439
|
-
}
|
|
440
|
-
function automationTemplateCadence(schedule, timeZone) {
|
|
441
|
-
return schedule.type === "calendar" ? cadenceFromScheduleSpec({ ...schedule, timeZone }, timeZone) : cadenceFromScheduleSpec({ type: "interval", everySeconds: schedule.everySeconds }, timeZone);
|
|
442
|
-
}
|
|
443
|
-
function automationTemplateSchedule(cadence, now) {
|
|
444
|
-
if (!cadence) return null;
|
|
445
|
-
const spec = toScheduleSpec(cadence.rule, { timeZone: cadence.timeZone, now });
|
|
446
|
-
if (spec.type === "calendar") {
|
|
447
|
-
if (spec.daysOfMonth?.length) return null;
|
|
448
|
-
return {
|
|
449
|
-
type: "calendar",
|
|
450
|
-
hour: spec.hour,
|
|
451
|
-
minute: spec.minute,
|
|
452
|
-
...spec.daysOfWeek?.length ? { daysOfWeek: [...spec.daysOfWeek] } : {}
|
|
453
|
-
};
|
|
454
|
-
}
|
|
455
|
-
if (spec.type === "interval") return { type: "interval", everySeconds: spec.everySeconds };
|
|
456
|
-
return null;
|
|
457
|
-
}
|
|
458
|
-
function eventSourceFitsTemplate(wanted, source) {
|
|
459
|
-
if (source.kind !== wanted.kind) return false;
|
|
460
|
-
if (wanted.kind === "webhook") {
|
|
461
|
-
const have = webhookPresetOf({ adapter: source.adapter, preset: source.format?.preset });
|
|
462
|
-
const want = webhookPresetOf(wanted);
|
|
463
|
-
return have.adapter === want.adapter && have.preset === want.preset;
|
|
464
|
-
}
|
|
465
|
-
if (wanted.kind === "mcp") return source.mcp?.serverId === wanted.mcpServerId;
|
|
466
|
-
return true;
|
|
467
|
-
}
|
|
468
|
-
function automationTemplateSourceId(wanted, sources) {
|
|
469
|
-
const usable = sources.filter(
|
|
470
|
-
(source) => source.status === "active" && eventSourceFitsTemplate(wanted, source)
|
|
471
|
-
);
|
|
472
|
-
return usable.find((source) => source.id === wanted.sourceId)?.id ?? usable[0]?.id ?? "";
|
|
473
|
-
}
|
|
474
|
-
function withTemplateSources(events, sources) {
|
|
475
|
-
if (!sources) return events;
|
|
476
|
-
let changed = false;
|
|
477
|
-
const triggers = events.triggers.map((trigger) => {
|
|
478
|
-
if (trigger.sourceId || !trigger.templateSource) return trigger;
|
|
479
|
-
const sourceId = automationTemplateSourceId(trigger.templateSource, sources);
|
|
480
|
-
if (!sourceId) return trigger;
|
|
481
|
-
changed = true;
|
|
482
|
-
return { ...trigger, sourceId };
|
|
483
|
-
});
|
|
484
|
-
return changed ? { ...events, triggers } : events;
|
|
485
|
-
}
|
|
486
|
-
function automationDraftFromTemplate(template, options = {}) {
|
|
487
|
-
const timeZone = options.timeZone ?? viewerTimeZone();
|
|
488
|
-
const events = {
|
|
489
|
-
...emptyEventTriggersDraft(),
|
|
490
|
-
maxRunsPerHour: template.maxRunsPerHour ?? DEFAULT_EVENT_RUNS_PER_HOUR,
|
|
491
|
-
triggers: template.triggers.map(
|
|
492
|
-
(trigger) => ({
|
|
493
|
-
...eventTriggerDraftFrom({
|
|
494
|
-
sourceId: "",
|
|
495
|
-
eventTypes: trigger.eventTypes,
|
|
496
|
-
conditions: trigger.conditions ?? [],
|
|
497
|
-
includeOwnEvents: trigger.includeOwnEvents ?? false,
|
|
498
|
-
arguments: trigger.arguments ?? null
|
|
499
|
-
}),
|
|
500
|
-
templateSource: trigger.source
|
|
501
|
-
})
|
|
502
|
-
)
|
|
503
|
-
};
|
|
504
|
-
return {
|
|
505
|
-
instructions: template.instructions,
|
|
506
|
-
name: template.name.slice(0, AUTOMATION_NAME_MAX_LENGTH),
|
|
507
|
-
cadence: template.schedule ? automationTemplateCadence(template.schedule, timeZone) : null,
|
|
508
|
-
events: withTemplateSources(events, options.sources)
|
|
509
|
-
};
|
|
510
|
-
}
|
|
511
|
-
function automationTemplateFromTask(t, task, sources, input) {
|
|
512
|
-
const cadence = automationCadence(task.schedule);
|
|
513
|
-
const triggers = (task.events?.triggers ?? []).flatMap((trigger) => {
|
|
514
|
-
const source = sources.find((candidate) => candidate.id === trigger.sourceId);
|
|
515
|
-
const wanted = templateSourceOf(trigger.sourceKind, source);
|
|
516
|
-
if (!wanted) return [];
|
|
517
|
-
return [
|
|
518
|
-
{
|
|
519
|
-
source: wanted,
|
|
520
|
-
eventTypes: [...trigger.eventTypes],
|
|
521
|
-
conditions: trigger.conditions.map((condition) => ({ ...condition })),
|
|
522
|
-
includeOwnEvents: trigger.includeOwnEvents,
|
|
523
|
-
...trigger.arguments && Object.keys(trigger.arguments).length > 0 ? { arguments: { ...trigger.arguments } } : {}
|
|
524
|
-
}
|
|
525
|
-
];
|
|
526
|
-
});
|
|
527
|
-
const name = (input.name ?? "").trim() || task.name;
|
|
528
|
-
return {
|
|
529
|
-
name: automationName(t, { name, instructions: task.agentConfig.prompt }).slice(
|
|
530
|
-
0,
|
|
531
|
-
AUTOMATION_TEMPLATE_NAME_MAX_LENGTH
|
|
532
|
-
),
|
|
533
|
-
description: (input.description ?? "").trim(),
|
|
534
|
-
instructions: task.agentConfig.prompt,
|
|
535
|
-
schedule: automationTemplateSchedule(cadence, input.now),
|
|
536
|
-
triggers,
|
|
537
|
-
maxRunsPerHour: triggers.length > 0 && task.events && task.events.maxRunsPerHour !== DEFAULT_EVENT_RUNS_PER_HOUR ? task.events.maxRunsPerHour : null
|
|
538
|
-
};
|
|
539
|
-
}
|
|
540
|
-
function templateSourceOf(kind, source) {
|
|
541
|
-
const shared = source?.visibility === "workspace" ? { sourceId: source.id } : {};
|
|
542
|
-
if (kind === "webhook") {
|
|
543
|
-
if (!source?.adapter) return null;
|
|
544
|
-
const { adapter, preset } = webhookPresetOf({
|
|
545
|
-
adapter: source.adapter,
|
|
546
|
-
preset: source.format?.preset
|
|
547
|
-
});
|
|
548
|
-
return { kind, adapter, ...preset ? { preset } : {}, ...shared };
|
|
549
|
-
}
|
|
550
|
-
if (kind === "mcp") {
|
|
551
|
-
return source?.mcp ? { kind, mcpServerId: source.mcp.serverId, ...shared } : null;
|
|
552
|
-
}
|
|
553
|
-
return { kind, ...shared };
|
|
554
|
-
}
|
|
555
|
-
|
|
556
|
-
// src/components/automations/event-trigger-editor.tsx
|
|
557
|
-
import { useEffect, useId, useMemo as useMemo2, useRef, useState } from "react";
|
|
558
|
-
import { PlusIcon, Trash2Icon, XIcon } from "lucide-react";
|
|
559
|
-
import { Fragment, jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
560
|
-
function useEventTypes(sourceIds, load) {
|
|
561
|
-
const t = useOpenGeniText();
|
|
562
|
-
const [states, setStates] = useState({});
|
|
563
|
-
const requested = useRef(/* @__PURE__ */ new Set());
|
|
564
|
-
const loadRef = useRef(load);
|
|
565
|
-
loadRef.current = load;
|
|
566
|
-
const textRef = useRef(t);
|
|
567
|
-
textRef.current = t;
|
|
568
|
-
const key = [...new Set(sourceIds)].filter(Boolean).sort().join(",");
|
|
569
|
-
useEffect(() => {
|
|
570
|
-
for (const sourceId of key ? key.split(",") : []) {
|
|
571
|
-
if (requested.current.has(sourceId)) continue;
|
|
572
|
-
requested.current.add(sourceId);
|
|
573
|
-
setStates((current) => ({ ...current, [sourceId]: { status: "loading" } }));
|
|
574
|
-
loadRef.current(sourceId).then(
|
|
575
|
-
(eventTypes) => setStates((current) => ({ ...current, [sourceId]: { status: "ready", eventTypes } })),
|
|
576
|
-
(error) => {
|
|
577
|
-
requested.current.delete(sourceId);
|
|
578
|
-
setStates((current) => ({
|
|
579
|
-
...current,
|
|
580
|
-
[sourceId]: {
|
|
581
|
-
status: "error",
|
|
582
|
-
message: error instanceof Error ? error.message : textRef.current("automations.editor.loadEventsFailed")
|
|
583
|
-
}
|
|
584
|
-
}));
|
|
585
|
-
}
|
|
586
|
-
);
|
|
587
|
-
}
|
|
588
|
-
}, [key]);
|
|
589
|
-
return states;
|
|
590
|
-
}
|
|
591
|
-
function EventTriggersField({
|
|
592
|
-
value,
|
|
593
|
-
onChange,
|
|
594
|
-
sources,
|
|
595
|
-
loadEventTypes,
|
|
596
|
-
issues,
|
|
597
|
-
sourceLogo,
|
|
598
|
-
onAddSource,
|
|
599
|
-
allowOnce = true,
|
|
600
|
-
argumentDefaults,
|
|
601
|
-
actions,
|
|
602
|
-
disabled = false
|
|
603
|
-
}) {
|
|
604
|
-
const t = useOpenGeniText();
|
|
605
|
-
const eventTypes = useEventTypes(
|
|
606
|
-
value.triggers.map((trigger) => trigger.sourceId),
|
|
607
|
-
loadEventTypes
|
|
608
|
-
);
|
|
609
|
-
const lastAdded = useRef(null);
|
|
610
|
-
const update = (key, next) => onChange({
|
|
611
|
-
...value,
|
|
612
|
-
triggers: value.triggers.map((trigger) => trigger.key === key ? next : trigger)
|
|
613
|
-
});
|
|
614
|
-
const remove = (key) => {
|
|
615
|
-
const triggers = value.triggers.filter((trigger) => trigger.key !== key);
|
|
616
|
-
onChange({ ...value, triggers, ...triggers.length === 0 ? { once: false } : {} });
|
|
617
|
-
};
|
|
618
|
-
const add = () => {
|
|
619
|
-
const only = sources?.length === 1 ? sources[0].id : "";
|
|
620
|
-
const trigger = newEventTriggerDraft(only);
|
|
621
|
-
lastAdded.current = trigger.key;
|
|
622
|
-
onChange({ ...value, triggers: [...value.triggers, trigger] });
|
|
623
|
-
};
|
|
624
|
-
const full = value.triggers.length >= EVENT_TRIGGERS_PER_AUTOMATION_MAX;
|
|
625
|
-
return /* @__PURE__ */ jsxs2("div", { className: "flex min-w-0 flex-col gap-3", children: [
|
|
626
|
-
value.triggers.map((trigger, index) => /* @__PURE__ */ jsx2(
|
|
627
|
-
EventTriggerEditor,
|
|
628
|
-
{
|
|
629
|
-
index,
|
|
630
|
-
value: trigger,
|
|
631
|
-
onChange: (next) => update(trigger.key, next),
|
|
632
|
-
onRemove: () => remove(trigger.key),
|
|
633
|
-
sources,
|
|
634
|
-
eventTypes: trigger.sourceId ? eventTypes[trigger.sourceId] : void 0,
|
|
635
|
-
issues: issues?.triggers[trigger.key],
|
|
636
|
-
sourceLogo,
|
|
637
|
-
onAddSource,
|
|
638
|
-
argumentDefaults,
|
|
639
|
-
autoFocus: lastAdded.current === trigger.key,
|
|
640
|
-
disabled
|
|
641
|
-
},
|
|
642
|
-
trigger.key
|
|
643
|
-
)),
|
|
644
|
-
/* @__PURE__ */ jsxs2("div", { className: "flex min-w-0 flex-wrap items-center gap-x-3 gap-y-2", children: [
|
|
645
|
-
/* @__PURE__ */ jsxs2(
|
|
646
|
-
Button,
|
|
647
|
-
{
|
|
648
|
-
type: "button",
|
|
649
|
-
variant: "outline",
|
|
650
|
-
size: "sm",
|
|
651
|
-
onClick: add,
|
|
652
|
-
disabled: disabled || full,
|
|
653
|
-
className: "pointer-coarse:h-11",
|
|
654
|
-
children: [
|
|
655
|
-
/* @__PURE__ */ jsx2(PlusIcon, { "aria-hidden": "true" }),
|
|
656
|
-
value.triggers.length === 0 ? t("automations.editor.addEvent") : t("automations.editor.addAnotherEvent")
|
|
657
|
-
]
|
|
658
|
-
}
|
|
659
|
-
),
|
|
660
|
-
actions,
|
|
661
|
-
full ? /* @__PURE__ */ jsx2("span", { className: "text-xs text-fg-muted", children: t("automations.editor.triggersMax", { max: EVENT_TRIGGERS_PER_AUTOMATION_MAX }) }) : null
|
|
662
|
-
] }),
|
|
663
|
-
allowOnce && value.triggers.length > 0 ? /* @__PURE__ */ jsx2(
|
|
664
|
-
CheckboxField,
|
|
665
|
-
{
|
|
666
|
-
label: t("automations.editor.once"),
|
|
667
|
-
description: t("automations.editor.onceDescription"),
|
|
668
|
-
checked: value.once,
|
|
669
|
-
onCheckedChange: (once) => onChange({ ...value, once }),
|
|
670
|
-
disabled
|
|
671
|
-
}
|
|
672
|
-
) : null
|
|
673
|
-
] });
|
|
674
|
-
}
|
|
675
|
-
function EventTriggerEditor({
|
|
676
|
-
value,
|
|
677
|
-
onChange,
|
|
678
|
-
onRemove,
|
|
679
|
-
index,
|
|
680
|
-
sources,
|
|
681
|
-
eventTypes,
|
|
682
|
-
issues,
|
|
683
|
-
sourceLogo,
|
|
684
|
-
onAddSource,
|
|
685
|
-
argumentDefaults,
|
|
686
|
-
autoFocus = false,
|
|
687
|
-
disabled = false
|
|
688
|
-
}) {
|
|
689
|
-
const t = useOpenGeniText();
|
|
690
|
-
const blockRef = useRef(null);
|
|
691
|
-
const source = sources?.find((candidate) => candidate.id === value.sourceId);
|
|
692
|
-
const wanted = !value.sourceId ? value.templateSource : void 0;
|
|
693
|
-
const wantedChoice = wanted ? automationTemplateSourceChoice(wanted) : void 0;
|
|
694
|
-
const descriptors = eventTypes?.status === "ready" ? eventTypes.eventTypes : [];
|
|
695
|
-
const schemaOf = (types) => types.map((type) => descriptors.find((descriptor) => descriptor.type === type)?.argumentsSchema).find((schema) => schema && Object.keys(schema).length > 0);
|
|
696
|
-
const argumentsSchema = schemaOf(value.eventTypes);
|
|
697
|
-
useEffect(() => {
|
|
698
|
-
if (!autoFocus) return;
|
|
699
|
-
blockRef.current?.querySelector("button, input")?.focus();
|
|
700
|
-
}, [autoFocus]);
|
|
701
|
-
const sourceOptions = (sources ?? []).map((candidate) => ({
|
|
702
|
-
value: candidate.id,
|
|
703
|
-
label: candidate.name,
|
|
704
|
-
meta: eventSourceKindLabel(t, candidate),
|
|
705
|
-
leading: /* @__PURE__ */ jsx2(EventSourceTile, { source: candidate, logo: sourceLogo, size: "sm" }),
|
|
706
|
-
...candidate.status === "active" ? {} : {
|
|
707
|
-
description: eventStatusReasonText(
|
|
708
|
-
t,
|
|
709
|
-
{
|
|
710
|
-
text: candidate.statusReason,
|
|
711
|
-
code: candidate.statusReasonCode,
|
|
712
|
-
detail: candidate.statusReasonDetail
|
|
713
|
-
},
|
|
714
|
-
candidate.name
|
|
715
|
-
) ?? t("automations.editor.sourceOff")
|
|
716
|
-
}
|
|
717
|
-
}));
|
|
718
|
-
const label = t("automations.editor.eventN", { index: index + 1 });
|
|
719
|
-
return /* @__PURE__ */ jsxs2(
|
|
720
|
-
"div",
|
|
721
|
-
{
|
|
722
|
-
ref: blockRef,
|
|
723
|
-
role: "group",
|
|
724
|
-
"aria-label": label,
|
|
725
|
-
className: "flex min-w-0 flex-col gap-4 rounded-lg border border-border bg-surface p-4",
|
|
726
|
-
children: [
|
|
727
|
-
/* @__PURE__ */ jsxs2("div", { className: "flex min-w-0 items-start gap-3", children: [
|
|
728
|
-
/* @__PURE__ */ jsx2(
|
|
729
|
-
Field,
|
|
730
|
-
{
|
|
731
|
-
label: t("automations.editor.from"),
|
|
732
|
-
error: issues?.source,
|
|
733
|
-
className: "min-w-0 flex-1",
|
|
734
|
-
children: /* @__PURE__ */ jsx2(
|
|
735
|
-
SelectMenu,
|
|
736
|
-
{
|
|
737
|
-
variant: sourceOptions.length > 8 ? "combobox" : "menu",
|
|
738
|
-
options: sourceOptions,
|
|
739
|
-
value: value.sourceId || null,
|
|
740
|
-
onValueChange: (sourceId) => {
|
|
741
|
-
const picked = sources?.find((candidate) => candidate.id === sourceId);
|
|
742
|
-
onChange(
|
|
743
|
-
wanted && picked && eventSourceFitsTemplate(wanted, picked) ? { ...value, sourceId } : { ...value, sourceId, eventTypes: [], conditions: [], argumentsText: "" }
|
|
744
|
-
);
|
|
745
|
-
},
|
|
746
|
-
placeholder: sources === void 0 ? t("automations.editor.loadingSources") : t("automations.editor.chooseSource"),
|
|
747
|
-
loading: sources === void 0,
|
|
748
|
-
searchPlaceholder: t("automations.editor.searchSources"),
|
|
749
|
-
emptyMessage: onAddSource ? /* @__PURE__ */ jsxs2("span", { children: [
|
|
750
|
-
t("automations.editor.noSources"),
|
|
751
|
-
" ",
|
|
752
|
-
/* @__PURE__ */ jsx2(
|
|
753
|
-
"button",
|
|
754
|
-
{
|
|
755
|
-
type: "button",
|
|
756
|
-
className: "og-link",
|
|
757
|
-
onClick: () => onAddSource(wantedChoice),
|
|
758
|
-
children: t("automations.editor.addSource")
|
|
759
|
-
}
|
|
760
|
-
)
|
|
761
|
-
] }) : t("automations.editor.noSourcesAskAdmin"),
|
|
762
|
-
invalid: Boolean(issues?.source),
|
|
763
|
-
disabled,
|
|
764
|
-
className: "max-w-full"
|
|
765
|
-
}
|
|
766
|
-
)
|
|
767
|
-
}
|
|
768
|
-
),
|
|
769
|
-
/* @__PURE__ */ jsx2(
|
|
770
|
-
Button,
|
|
771
|
-
{
|
|
772
|
-
type: "button",
|
|
773
|
-
variant: "ghost",
|
|
774
|
-
size: "icon-sm",
|
|
775
|
-
onClick: onRemove,
|
|
776
|
-
disabled,
|
|
777
|
-
"aria-label": t("automations.editor.removeEventN", { index: index + 1 }),
|
|
778
|
-
title: t("automations.editor.remove"),
|
|
779
|
-
className: "mt-7 shrink-0 text-fg-muted pointer-coarse:size-11",
|
|
780
|
-
children: /* @__PURE__ */ jsx2(Trash2Icon, { "aria-hidden": "true" })
|
|
781
|
-
}
|
|
782
|
-
)
|
|
783
|
-
] }),
|
|
784
|
-
wanted && wantedChoice && sources !== void 0 ? /* @__PURE__ */ jsxs2("p", { className: "m-0 text-sm leading-5 text-fg-muted", children: [
|
|
785
|
-
t("automations.editor.templateWants", {
|
|
786
|
-
events: eventTypesLabel(t, value.eventTypes),
|
|
787
|
-
source: wanted.kind === "mcp" && wanted.mcpServerId ? wanted.mcpServerId : eventSourceChoiceName(t, wantedChoice)
|
|
788
|
-
}),
|
|
789
|
-
onAddSource ? /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
790
|
-
" ",
|
|
791
|
-
/* @__PURE__ */ jsx2(
|
|
792
|
-
"button",
|
|
793
|
-
{
|
|
794
|
-
type: "button",
|
|
795
|
-
className: "og-link",
|
|
796
|
-
onClick: () => onAddSource(wantedChoice),
|
|
797
|
-
disabled,
|
|
798
|
-
children: eventSourceAddLabel(t, wantedChoice)
|
|
799
|
-
}
|
|
800
|
-
)
|
|
801
|
-
] }) : null
|
|
802
|
-
] }) : null,
|
|
803
|
-
value.sourceId ? /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
804
|
-
/* @__PURE__ */ jsx2(
|
|
805
|
-
Field,
|
|
806
|
-
{
|
|
807
|
-
label: source?.kind === "mcp" ? t("automations.editor.event") : t("automations.editor.events"),
|
|
808
|
-
error: issues?.eventTypes,
|
|
809
|
-
hint: source?.kind === "mcp" ? t("automations.editor.mcpOneEventHint") : t("automations.editor.anyStartsRun"),
|
|
810
|
-
children: /* @__PURE__ */ jsx2(
|
|
811
|
-
EventTypePicker,
|
|
812
|
-
{
|
|
813
|
-
value: value.eventTypes,
|
|
814
|
-
onChange: (picked) => onChange({
|
|
815
|
-
...value,
|
|
816
|
-
eventTypes: picked,
|
|
817
|
-
// A newly picked MCP event keeps what applies and fills in the host's defaults.
|
|
818
|
-
...source?.kind === "mcp" && picked.length > 0 ? {
|
|
819
|
-
argumentsText: eventArgumentsForEvent(
|
|
820
|
-
schemaOf(picked),
|
|
821
|
-
value.argumentsText,
|
|
822
|
-
argumentDefaults
|
|
823
|
-
)
|
|
824
|
-
} : {}
|
|
825
|
-
}),
|
|
826
|
-
state: eventTypes,
|
|
827
|
-
sourceName: source?.name,
|
|
828
|
-
single: source?.kind === "mcp",
|
|
829
|
-
grouped: source?.kind === "workspace",
|
|
830
|
-
invalid: Boolean(issues?.eventTypes),
|
|
831
|
-
disabled
|
|
832
|
-
}
|
|
833
|
-
)
|
|
834
|
-
}
|
|
835
|
-
),
|
|
836
|
-
source?.kind === "mcp" ? /* @__PURE__ */ jsx2(
|
|
837
|
-
EventArgumentsField,
|
|
838
|
-
{
|
|
839
|
-
schema: argumentsSchema,
|
|
840
|
-
value: value.argumentsText,
|
|
841
|
-
onChange: (argumentsText) => onChange({ ...value, argumentsText }),
|
|
842
|
-
error: issues?.arguments,
|
|
843
|
-
disabled
|
|
844
|
-
}
|
|
845
|
-
) : null,
|
|
846
|
-
/* @__PURE__ */ jsx2(
|
|
847
|
-
EventConditionsEditor,
|
|
848
|
-
{
|
|
849
|
-
value: value.conditions,
|
|
850
|
-
onChange: (conditions) => onChange({ ...value, conditions }),
|
|
851
|
-
suggestions: eventConditionFieldSuggestions(t, value.eventTypes, descriptors),
|
|
852
|
-
issues: issues?.conditions,
|
|
853
|
-
disabled
|
|
854
|
-
}
|
|
855
|
-
),
|
|
856
|
-
source?.kind === "github" || source?.kind === "slack" || source?.kind === "workspace" ? /* @__PURE__ */ jsx2(
|
|
857
|
-
CheckboxField,
|
|
858
|
-
{
|
|
859
|
-
label: t("automations.editor.includeOwn"),
|
|
860
|
-
description: source.kind === "workspace" ? t("automations.editor.includeOwnWorkspaceDescription") : t("automations.editor.includeOwnDescription"),
|
|
861
|
-
checked: value.includeOwnEvents,
|
|
862
|
-
onCheckedChange: (includeOwnEvents) => onChange({ ...value, includeOwnEvents }),
|
|
863
|
-
disabled
|
|
864
|
-
}
|
|
865
|
-
) : null
|
|
866
|
-
] }) : null
|
|
867
|
-
]
|
|
868
|
-
}
|
|
869
|
-
);
|
|
870
|
-
}
|
|
871
|
-
var CUSTOM_PREFIX = "custom:";
|
|
872
|
-
var NO_EVENT_TYPES = [];
|
|
873
|
-
function workspaceEventGroup(t, type) {
|
|
874
|
-
if (type.startsWith("app.")) return t("automations.picker.groupApps");
|
|
875
|
-
if (type.startsWith("recording.")) return t("automations.picker.groupMeetings");
|
|
876
|
-
if (type.startsWith("usage.")) return t("automations.picker.groupUsage");
|
|
877
|
-
if (type.startsWith("turn.") || type.startsWith("session.")) {
|
|
878
|
-
return t("automations.picker.groupChats");
|
|
879
|
-
}
|
|
880
|
-
return void 0;
|
|
881
|
-
}
|
|
882
|
-
function EventTypePicker({
|
|
883
|
-
value,
|
|
884
|
-
onChange,
|
|
885
|
-
state,
|
|
886
|
-
sourceName,
|
|
887
|
-
single = false,
|
|
888
|
-
grouped = false,
|
|
889
|
-
invalid = false,
|
|
890
|
-
disabled = false
|
|
891
|
-
}) {
|
|
892
|
-
const t = useOpenGeniText();
|
|
893
|
-
const [query, setQuery] = useState("");
|
|
894
|
-
const descriptors = state?.status === "ready" ? state.eventTypes : NO_EVENT_TYPES;
|
|
895
|
-
const options = useMemo2(() => {
|
|
896
|
-
const picked = new Set(value);
|
|
897
|
-
const known = descriptors.filter((descriptor) => !picked.has(descriptor.type)).map((descriptor) => {
|
|
898
|
-
const unavailable = descriptor.available ? null : eventStatusReasonText(
|
|
899
|
-
t,
|
|
900
|
-
{
|
|
901
|
-
text: descriptor.unavailableReason,
|
|
902
|
-
code: descriptor.unavailableReasonCode,
|
|
903
|
-
detail: descriptor.unavailableReasonDetail
|
|
904
|
-
},
|
|
905
|
-
sourceName
|
|
906
|
-
);
|
|
907
|
-
return {
|
|
908
|
-
value: descriptor.type,
|
|
909
|
-
label: descriptor.type,
|
|
910
|
-
description: unavailable ?? descriptor.description,
|
|
911
|
-
disabled: !descriptor.available,
|
|
912
|
-
...grouped ? { group: workspaceEventGroup(t, descriptor.type) } : {},
|
|
913
|
-
...descriptor.available ? {} : { disabledReason: unavailable ?? t("automations.picker.cantReceive") },
|
|
914
|
-
keywords: [descriptor.description]
|
|
915
|
-
};
|
|
916
|
-
});
|
|
917
|
-
const all = single || picked.has("*") ? [] : [
|
|
918
|
-
{
|
|
919
|
-
value: "*",
|
|
920
|
-
label: eventTypeLabel(t, "*"),
|
|
921
|
-
description: t("automations.picker.everyEventDescription")
|
|
922
|
-
}
|
|
923
|
-
];
|
|
924
|
-
const needle = query.trim().toLowerCase();
|
|
925
|
-
const matches = [...all, ...known].filter(
|
|
926
|
-
(option) => !needle || option.value.toLowerCase().includes(needle) || String(option.description ?? "").toLowerCase().includes(needle)
|
|
927
|
-
);
|
|
928
|
-
const typed = query.trim();
|
|
929
|
-
const custom = typed && !single && !picked.has(typed) && !descriptors.some((descriptor) => descriptor.type === typed) && eventTypeIssue(t, typed) === null ? [
|
|
930
|
-
{
|
|
931
|
-
value: `${CUSTOM_PREFIX}${typed}`,
|
|
932
|
-
label: t("automations.picker.use", { type: typed }),
|
|
933
|
-
description: typed.endsWith(".*") ? t("automations.picker.prefixDescription", { prefix: typed.slice(0, -1) }) : t("automations.picker.unlisted")
|
|
934
|
-
}
|
|
935
|
-
] : [];
|
|
936
|
-
return [...matches, ...custom];
|
|
937
|
-
}, [descriptors, grouped, query, single, sourceName, t, value]);
|
|
938
|
-
const add = (picked) => {
|
|
939
|
-
const type = picked.startsWith(CUSTOM_PREFIX) ? picked.slice(CUSTOM_PREFIX.length) : picked;
|
|
940
|
-
setQuery("");
|
|
941
|
-
onChange(single ? [type] : [...value, type]);
|
|
942
|
-
};
|
|
943
|
-
const loading = state === void 0 || state.status === "loading";
|
|
944
|
-
return /* @__PURE__ */ jsxs2("div", { className: "flex min-w-0 flex-col gap-2", children: [
|
|
945
|
-
value.length > 0 ? /* @__PURE__ */ jsx2(
|
|
946
|
-
"ul",
|
|
947
|
-
{
|
|
948
|
-
"aria-label": t("automations.picker.picked"),
|
|
949
|
-
className: "m-0 flex min-w-0 list-none flex-wrap gap-1.5 p-0",
|
|
950
|
-
children: value.map((type) => {
|
|
951
|
-
const description = descriptors.find((entry) => entry.type === type)?.description;
|
|
952
|
-
return /* @__PURE__ */ jsxs2(
|
|
953
|
-
"li",
|
|
954
|
-
{
|
|
955
|
-
title: description,
|
|
956
|
-
className: "inline-flex h-7 max-w-full min-w-0 items-center gap-1 rounded-full border border-border bg-surface-2 pr-0.5 pl-2.5 text-xs font-medium text-fg",
|
|
957
|
-
children: [
|
|
958
|
-
/* @__PURE__ */ jsx2("span", { className: cn("min-w-0 truncate", type !== "*" && "font-mono"), children: eventTypeLabel(t, type) }),
|
|
959
|
-
/* @__PURE__ */ jsx2(
|
|
960
|
-
"button",
|
|
961
|
-
{
|
|
962
|
-
type: "button",
|
|
963
|
-
onClick: () => onChange(value.filter((entry) => entry !== type)),
|
|
964
|
-
disabled,
|
|
965
|
-
"aria-label": t("automations.picker.removeType", { type: eventTypeLabel(t, type) }),
|
|
966
|
-
className: "grid size-6 shrink-0 place-items-center rounded-full text-fg-muted hover:bg-hover hover:text-fg pointer-coarse:size-8",
|
|
967
|
-
children: /* @__PURE__ */ jsx2(XIcon, { "aria-hidden": "true", className: "size-3" })
|
|
968
|
-
}
|
|
969
|
-
)
|
|
970
|
-
]
|
|
971
|
-
},
|
|
972
|
-
type
|
|
973
|
-
);
|
|
974
|
-
})
|
|
975
|
-
}
|
|
976
|
-
) : null,
|
|
977
|
-
state?.status === "error" ? /* @__PURE__ */ jsx2("p", { className: "m-0 text-xs leading-4.5 text-fg-muted", children: t("automations.picker.loadFailed", { reason: state.message.replace(/\.$/, "") }) }) : null,
|
|
978
|
-
single && value.length > 0 ? null : /* @__PURE__ */ jsx2(
|
|
979
|
-
ComboboxSelect,
|
|
980
|
-
{
|
|
981
|
-
options,
|
|
982
|
-
value: null,
|
|
983
|
-
onValueChange: add,
|
|
984
|
-
onSearchChange: setQuery,
|
|
985
|
-
filterLocally: false,
|
|
986
|
-
placeholder: value.length === 0 ? t("automations.picker.choose") : t("automations.picker.addEvent"),
|
|
987
|
-
searchPlaceholder: t("automations.picker.search"),
|
|
988
|
-
loading: loading && state?.status !== "error",
|
|
989
|
-
loadingLabel: t("automations.picker.loading"),
|
|
990
|
-
emptyMessage: t("automations.picker.empty"),
|
|
991
|
-
invalid,
|
|
992
|
-
disabled,
|
|
993
|
-
showMetaInTrigger: false,
|
|
994
|
-
className: "max-w-full sm:max-w-80",
|
|
995
|
-
"aria-label": value.length === 0 ? t("automations.picker.choose") : t("automations.picker.addEvent")
|
|
996
|
-
}
|
|
997
|
-
)
|
|
998
|
-
] });
|
|
999
|
-
}
|
|
1000
|
-
function EventConditionsEditor({
|
|
1001
|
-
value,
|
|
1002
|
-
onChange,
|
|
1003
|
-
suggestions,
|
|
1004
|
-
issues,
|
|
1005
|
-
disabled = false
|
|
1006
|
-
}) {
|
|
1007
|
-
const t = useOpenGeniText();
|
|
1008
|
-
const listId = useId();
|
|
1009
|
-
const headingId = useId();
|
|
1010
|
-
const update = (key, next) => onChange(
|
|
1011
|
-
value.map((condition) => condition.key === key ? { ...condition, ...next } : condition)
|
|
1012
|
-
);
|
|
1013
|
-
const full = value.length >= EVENT_TRIGGER_CONDITIONS_MAX;
|
|
1014
|
-
return /* @__PURE__ */ jsxs2("div", { role: "group", "aria-labelledby": headingId, className: "flex min-w-0 flex-col gap-2", children: [
|
|
1015
|
-
/* @__PURE__ */ jsxs2("p", { id: headingId, className: "m-0 text-sm leading-5 font-medium text-fg", children: [
|
|
1016
|
-
t("automations.conditions.heading"),
|
|
1017
|
-
/* @__PURE__ */ jsx2("span", { className: "ml-1.5 text-xs font-normal text-fg-subtle", children: t("automations.conditions.optional") })
|
|
1018
|
-
] }),
|
|
1019
|
-
/* @__PURE__ */ jsx2("datalist", { id: listId, children: suggestions.map((entry) => /* @__PURE__ */ jsx2("option", { value: entry.field, children: entry.description }, entry.field)) }),
|
|
1020
|
-
value.map((condition, index) => {
|
|
1021
|
-
const operator = eventConditionOperator(condition.op);
|
|
1022
|
-
const issue = issues?.[condition.key];
|
|
1023
|
-
const position = { index: index + 1 };
|
|
1024
|
-
return /* @__PURE__ */ jsxs2("div", { className: "flex min-w-0 flex-col gap-1.5", children: [
|
|
1025
|
-
/* @__PURE__ */ jsxs2("div", { className: "grid min-w-0 grid-cols-[minmax(0,1fr)_auto] gap-2 sm:grid-cols-[minmax(0,1.2fr)_9.5rem_minmax(0,1fr)_auto]", children: [
|
|
1026
|
-
/* @__PURE__ */ jsx2(
|
|
1027
|
-
TextInput,
|
|
1028
|
-
{
|
|
1029
|
-
value: condition.field,
|
|
1030
|
-
onChange: (event) => update(condition.key, { field: event.target.value }),
|
|
1031
|
-
list: listId,
|
|
1032
|
-
placeholder: "data.action",
|
|
1033
|
-
"aria-label": t("automations.conditions.fieldFor", position),
|
|
1034
|
-
"aria-invalid": issue ? true : void 0,
|
|
1035
|
-
mono: true,
|
|
1036
|
-
suppressAutofill: true,
|
|
1037
|
-
disabled,
|
|
1038
|
-
className: "col-span-1"
|
|
1039
|
-
}
|
|
1040
|
-
),
|
|
1041
|
-
/* @__PURE__ */ jsx2(
|
|
1042
|
-
Button,
|
|
1043
|
-
{
|
|
1044
|
-
type: "button",
|
|
1045
|
-
variant: "ghost",
|
|
1046
|
-
size: "icon-sm",
|
|
1047
|
-
onClick: () => onChange(value.filter((entry) => entry.key !== condition.key)),
|
|
1048
|
-
disabled,
|
|
1049
|
-
"aria-label": t("automations.conditions.remove", position),
|
|
1050
|
-
title: t("automations.editor.remove"),
|
|
1051
|
-
className: "text-fg-muted sm:order-last pointer-coarse:size-11",
|
|
1052
|
-
children: /* @__PURE__ */ jsx2(XIcon, { "aria-hidden": "true" })
|
|
1053
|
-
}
|
|
1054
|
-
),
|
|
1055
|
-
/* @__PURE__ */ jsx2(
|
|
1056
|
-
SelectMenu,
|
|
1057
|
-
{
|
|
1058
|
-
variant: "native",
|
|
1059
|
-
options: EVENT_CONDITION_OPERATORS.map((option) => ({
|
|
1060
|
-
value: option.value,
|
|
1061
|
-
label: eventConditionOperatorLabel(t, option.value)
|
|
1062
|
-
})),
|
|
1063
|
-
value: condition.op,
|
|
1064
|
-
onValueChange: (op) => update(condition.key, {
|
|
1065
|
-
op,
|
|
1066
|
-
...eventConditionOperator(op).takes === null ? { value: "" } : {}
|
|
1067
|
-
}),
|
|
1068
|
-
"aria-label": t("automations.conditions.comparisonFor", position),
|
|
1069
|
-
showSelectedDescription: false,
|
|
1070
|
-
disabled,
|
|
1071
|
-
className: "col-span-2 sm:col-span-1"
|
|
1072
|
-
}
|
|
1073
|
-
),
|
|
1074
|
-
operator.takes === null ? /* @__PURE__ */ jsx2("span", { className: "hidden sm:block" }) : /* @__PURE__ */ jsx2(
|
|
1075
|
-
TextInput,
|
|
1076
|
-
{
|
|
1077
|
-
value: condition.value,
|
|
1078
|
-
onChange: (event) => update(condition.key, { value: event.target.value }),
|
|
1079
|
-
placeholder: operator.takes === "list" ? "opened, reopened" : "opened",
|
|
1080
|
-
"aria-label": t("automations.conditions.valueFor", position),
|
|
1081
|
-
"aria-invalid": issue ? true : void 0,
|
|
1082
|
-
suppressAutofill: true,
|
|
1083
|
-
disabled,
|
|
1084
|
-
className: "col-span-2 sm:col-span-1"
|
|
1085
|
-
}
|
|
1086
|
-
)
|
|
1087
|
-
] }),
|
|
1088
|
-
issue ? /* @__PURE__ */ jsx2("p", { className: "m-0 text-xs leading-4.5 text-danger", children: issue }) : null
|
|
1089
|
-
] }, condition.key);
|
|
1090
|
-
}),
|
|
1091
|
-
/* @__PURE__ */ jsx2("div", { children: /* @__PURE__ */ jsxs2(
|
|
1092
|
-
Button,
|
|
1093
|
-
{
|
|
1094
|
-
type: "button",
|
|
1095
|
-
variant: "ghost",
|
|
1096
|
-
size: "sm",
|
|
1097
|
-
onClick: () => onChange([...value, newEventConditionDraft()]),
|
|
1098
|
-
disabled: disabled || full,
|
|
1099
|
-
className: "-ml-2 text-fg-muted pointer-coarse:h-11",
|
|
1100
|
-
children: [
|
|
1101
|
-
/* @__PURE__ */ jsx2(PlusIcon, { "aria-hidden": "true" }),
|
|
1102
|
-
t("automations.conditions.add")
|
|
1103
|
-
]
|
|
1104
|
-
}
|
|
1105
|
-
) })
|
|
1106
|
-
] });
|
|
1107
|
-
}
|
|
1108
|
-
|
|
1109
|
-
// src/components/automations/automation-when-field.tsx
|
|
1110
|
-
import { useId as useId2, useMemo as useMemo3 } from "react";
|
|
1111
|
-
import { CircleAlertIcon, PlusIcon as PlusIcon2, Trash2Icon as Trash2Icon2 } from "lucide-react";
|
|
1112
|
-
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
1113
|
-
var AUTOMATION_FREQUENCIES = [
|
|
1114
|
-
"hourly",
|
|
1115
|
-
"daily",
|
|
1116
|
-
"weekdays",
|
|
1117
|
-
"weekly",
|
|
1118
|
-
"interval",
|
|
1119
|
-
"once"
|
|
1120
|
-
];
|
|
1121
|
-
function AutomationWhenField({
|
|
1122
|
-
cadence,
|
|
1123
|
-
onCadenceChange,
|
|
1124
|
-
events,
|
|
1125
|
-
onEventsChange,
|
|
1126
|
-
eventTriggers,
|
|
1127
|
-
sources,
|
|
1128
|
-
loadEventTypes,
|
|
1129
|
-
eventIssues,
|
|
1130
|
-
error,
|
|
1131
|
-
sourceLogo,
|
|
1132
|
-
onAddSource,
|
|
1133
|
-
argumentDefaults,
|
|
1134
|
-
frequencies = AUTOMATION_FREQUENCIES,
|
|
1135
|
-
timeZones,
|
|
1136
|
-
viewerTimeZone: viewerTimeZone2,
|
|
1137
|
-
now,
|
|
1138
|
-
children,
|
|
1139
|
-
disabled = false,
|
|
1140
|
-
className
|
|
1141
|
-
}) {
|
|
1142
|
-
const t = useOpenGeniText();
|
|
1143
|
-
const labelId = useId2();
|
|
1144
|
-
const viewerZone = viewerTimeZone2 ?? viewerTimeZone();
|
|
1145
|
-
const scheduleZone = cadence?.timeZone ?? viewerZone;
|
|
1146
|
-
const zones = useMemo3(
|
|
1147
|
-
() => timeZones ?? [.../* @__PURE__ */ new Set([viewerZone, scheduleZone, "UTC"])].map((id) => ({
|
|
1148
|
-
id,
|
|
1149
|
-
...timeZoneLabels(id, t)
|
|
1150
|
-
})),
|
|
1151
|
-
[scheduleZone, t, timeZones, viewerZone]
|
|
1152
|
-
);
|
|
1153
|
-
const addSchedule = /* @__PURE__ */ jsxs3(
|
|
1154
|
-
Button,
|
|
1155
|
-
{
|
|
1156
|
-
type: "button",
|
|
1157
|
-
variant: "outline",
|
|
1158
|
-
size: "sm",
|
|
1159
|
-
onClick: () => onCadenceChange(defaultAutomationCadence(viewerZone)),
|
|
1160
|
-
disabled,
|
|
1161
|
-
className: "pointer-coarse:h-11",
|
|
1162
|
-
children: [
|
|
1163
|
-
/* @__PURE__ */ jsx3(PlusIcon2, { "aria-hidden": "true" }),
|
|
1164
|
-
t("automations.whenField.addSchedule")
|
|
1165
|
-
]
|
|
1166
|
-
}
|
|
1167
|
-
);
|
|
1168
|
-
const picker = cadence ? /* @__PURE__ */ jsx3(
|
|
1169
|
-
CadencePicker,
|
|
1170
|
-
{
|
|
1171
|
-
"aria-labelledby": labelId,
|
|
1172
|
-
value: cadence,
|
|
1173
|
-
onChange: onCadenceChange,
|
|
1174
|
-
frequencies,
|
|
1175
|
-
now,
|
|
1176
|
-
viewerTimeZone: viewerZone,
|
|
1177
|
-
timeZones: zones,
|
|
1178
|
-
disabled,
|
|
1179
|
-
className: "min-w-0 flex-1"
|
|
1180
|
-
}
|
|
1181
|
-
) : null;
|
|
1182
|
-
const nothing = !cadence && events.triggers.length === 0;
|
|
1183
|
-
return /* @__PURE__ */ jsxs3(
|
|
1184
|
-
"div",
|
|
1185
|
-
{
|
|
1186
|
-
role: "group",
|
|
1187
|
-
"aria-labelledby": labelId,
|
|
1188
|
-
className: cn("flex min-w-0 flex-col gap-3", className),
|
|
1189
|
-
children: [
|
|
1190
|
-
/* @__PURE__ */ jsx3("p", { id: labelId, className: "m-0 text-sm leading-5 font-medium text-fg", children: t("automations.panel.when") }),
|
|
1191
|
-
picker && eventTriggers ? (
|
|
1192
|
-
// Beside event triggers the schedule is one block among others, and removable.
|
|
1193
|
-
/* @__PURE__ */ jsxs3(
|
|
1194
|
-
"div",
|
|
1195
|
-
{
|
|
1196
|
-
role: "group",
|
|
1197
|
-
"aria-label": t("automations.whenField.schedule"),
|
|
1198
|
-
className: "flex min-w-0 items-start gap-3 rounded-lg border border-border bg-surface p-4",
|
|
1199
|
-
children: [
|
|
1200
|
-
picker,
|
|
1201
|
-
/* @__PURE__ */ jsx3(
|
|
1202
|
-
Button,
|
|
1203
|
-
{
|
|
1204
|
-
type: "button",
|
|
1205
|
-
variant: "ghost",
|
|
1206
|
-
size: "icon-sm",
|
|
1207
|
-
onClick: () => onCadenceChange(null),
|
|
1208
|
-
disabled,
|
|
1209
|
-
"aria-label": t("automations.whenField.removeSchedule"),
|
|
1210
|
-
title: t("automations.whenField.removeSchedule"),
|
|
1211
|
-
className: "shrink-0 text-fg-muted pointer-coarse:size-11",
|
|
1212
|
-
children: /* @__PURE__ */ jsx3(Trash2Icon2, { "aria-hidden": "true" })
|
|
1213
|
-
}
|
|
1214
|
-
)
|
|
1215
|
-
]
|
|
1216
|
-
}
|
|
1217
|
-
)
|
|
1218
|
-
) : picker,
|
|
1219
|
-
nothing ? /* @__PURE__ */ jsx3("p", { className: "m-0 text-sm leading-5 text-fg-muted", children: eventTriggers ? t("automations.whenField.manualUntilAdded") : t("automations.whenField.manual") }) : null,
|
|
1220
|
-
eventTriggers ? /* @__PURE__ */ jsx3(
|
|
1221
|
-
EventTriggersField,
|
|
1222
|
-
{
|
|
1223
|
-
value: events,
|
|
1224
|
-
onChange: onEventsChange,
|
|
1225
|
-
sources,
|
|
1226
|
-
loadEventTypes,
|
|
1227
|
-
issues: eventIssues,
|
|
1228
|
-
sourceLogo,
|
|
1229
|
-
onAddSource,
|
|
1230
|
-
argumentDefaults,
|
|
1231
|
-
actions: cadence ? null : addSchedule,
|
|
1232
|
-
disabled
|
|
1233
|
-
}
|
|
1234
|
-
) : cadence ? null : /* @__PURE__ */ jsx3("div", { className: "flex min-w-0 flex-wrap items-center gap-x-3 gap-y-2", children: addSchedule }),
|
|
1235
|
-
children,
|
|
1236
|
-
cadence && events.triggers.length > 0 && !error ? /* @__PURE__ */ jsx3("p", { className: "m-0 text-xs leading-4.5 text-fg-muted", children: t("automations.whenField.both") }) : null,
|
|
1237
|
-
error ? /* @__PURE__ */ jsxs3(
|
|
1238
|
-
"p",
|
|
1239
|
-
{
|
|
1240
|
-
role: "alert",
|
|
1241
|
-
className: "m-0 flex min-w-0 items-start gap-1.5 text-xs leading-4.5 text-danger",
|
|
1242
|
-
children: [
|
|
1243
|
-
/* @__PURE__ */ jsx3(CircleAlertIcon, { "aria-hidden": "true", className: "mt-0.5 size-3.5 shrink-0" }),
|
|
1244
|
-
/* @__PURE__ */ jsx3("span", { className: "min-w-0 break-words", children: error })
|
|
1245
|
-
]
|
|
1246
|
-
}
|
|
1247
|
-
) : null
|
|
1248
|
-
]
|
|
1249
|
-
}
|
|
1250
|
-
);
|
|
1251
|
-
}
|
|
1252
|
-
|
|
1253
|
-
// src/components/automations/event-source-stand-ins.ts
|
|
1254
|
-
import { useCallback, useMemo as useMemo4, useRef as useRef2, useState as useState2 } from "react";
|
|
1255
|
-
import {
|
|
1256
|
-
readyEventSourceKey,
|
|
1257
|
-
readyEventSourceRequest
|
|
1258
|
-
} from "@opengeni/contracts/event-triggers";
|
|
1259
|
-
function isStandIn(sourceId) {
|
|
1260
|
-
return readyEventSourceRequest(sourceId) !== null;
|
|
1261
|
-
}
|
|
1262
|
-
function standIn(workspaceId, ready) {
|
|
1263
|
-
const request = readyEventSourceRequest(ready.key);
|
|
1264
|
-
return {
|
|
1265
|
-
id: ready.key,
|
|
1266
|
-
workspaceId,
|
|
1267
|
-
kind: ready.kind,
|
|
1268
|
-
adapter: null,
|
|
1269
|
-
format: null,
|
|
1270
|
-
name: ready.name,
|
|
1271
|
-
ownerSubjectId: null,
|
|
1272
|
-
visibility: "private",
|
|
1273
|
-
status: "active",
|
|
1274
|
-
statusReason: null,
|
|
1275
|
-
statusReasonCode: null,
|
|
1276
|
-
statusReasonDetail: null,
|
|
1277
|
-
webhookUrl: null,
|
|
1278
|
-
awaitingSigningSecret: false,
|
|
1279
|
-
mcp: request?.kind === "mcp" ? { serverId: request.serverId, connectionId: null } : null,
|
|
1280
|
-
lastDeliveryAt: null,
|
|
1281
|
-
createdAt: "",
|
|
1282
|
-
updatedAt: ""
|
|
1283
|
-
};
|
|
1284
|
-
}
|
|
1285
|
-
function useEventSourceStandIns({
|
|
1286
|
-
client,
|
|
1287
|
-
workspaceId,
|
|
1288
|
-
sources,
|
|
1289
|
-
readySources,
|
|
1290
|
-
eventServers,
|
|
1291
|
-
workspaceEvents = false
|
|
1292
|
-
}) {
|
|
1293
|
-
const t = useOpenGeniText();
|
|
1294
|
-
const workspaceName = t("automations.source.workspace.name");
|
|
1295
|
-
const [added, setAdded] = useState2(() => /* @__PURE__ */ new Map());
|
|
1296
|
-
const withStandIns = useMemo4(() => {
|
|
1297
|
-
if (!sources) return void 0;
|
|
1298
|
-
const ready = /* @__PURE__ */ new Map();
|
|
1299
|
-
for (const entry of readySources ?? []) {
|
|
1300
|
-
if (entry.kind === "workspace" && !workspaceEvents) continue;
|
|
1301
|
-
ready.set(entry.key, entry);
|
|
1302
|
-
}
|
|
1303
|
-
for (const server of eventServers ?? []) {
|
|
1304
|
-
const key = readyEventSourceKey({ kind: "mcp", serverId: server.serverId });
|
|
1305
|
-
ready.set(key, {
|
|
1306
|
-
key,
|
|
1307
|
-
kind: "mcp",
|
|
1308
|
-
name: server.name ?? ready.get(key)?.name ?? server.serverId
|
|
1309
|
-
});
|
|
1310
|
-
}
|
|
1311
|
-
if (workspaceEvents) {
|
|
1312
|
-
const key = readyEventSourceKey({ kind: "workspace" });
|
|
1313
|
-
ready.set(key, { key, kind: "workspace", name: workspaceName });
|
|
1314
|
-
}
|
|
1315
|
-
const has = (key, kind) => {
|
|
1316
|
-
const id = added.get(key);
|
|
1317
|
-
if (id !== void 0 && sources.some((source) => source.id === id)) return true;
|
|
1318
|
-
const request = readyEventSourceRequest(key);
|
|
1319
|
-
if (request?.kind === "mcp") {
|
|
1320
|
-
return sources.some(
|
|
1321
|
-
(source) => source.kind === "mcp" && source.mcp?.serverId === request.serverId
|
|
1322
|
-
);
|
|
1323
|
-
}
|
|
1324
|
-
return kind === "workspace" && sources.some((source) => source.kind === "workspace");
|
|
1325
|
-
};
|
|
1326
|
-
const extra = [...ready.values()].filter((entry) => !has(entry.key, entry.kind)).map((entry) => standIn(workspaceId, entry));
|
|
1327
|
-
return extra.length > 0 ? [...sources, ...extra] : sources;
|
|
1328
|
-
}, [added, eventServers, readySources, sources, workspaceEvents, workspaceId, workspaceName]);
|
|
1329
|
-
const adding = useRef2(/* @__PURE__ */ new Map());
|
|
1330
|
-
const realSourceId = useCallback(
|
|
1331
|
-
(sourceId) => {
|
|
1332
|
-
const request = readyEventSourceRequest(sourceId);
|
|
1333
|
-
if (!request) return Promise.resolve(sourceId);
|
|
1334
|
-
let pending = adding.current.get(sourceId);
|
|
1335
|
-
if (!pending) {
|
|
1336
|
-
const name = request.kind === "mcp" ? eventServers?.find((server) => server.serverId === request.serverId)?.name : void 0;
|
|
1337
|
-
pending = client.createEventSource(workspaceId, { ...request, ...name ? { name } : {} }).then((created) => {
|
|
1338
|
-
setAdded((current) => new Map(current).set(sourceId, created.source.id));
|
|
1339
|
-
return created.source.id;
|
|
1340
|
-
});
|
|
1341
|
-
adding.current.set(sourceId, pending);
|
|
1342
|
-
pending.catch(() => adding.current.delete(sourceId));
|
|
1343
|
-
}
|
|
1344
|
-
return pending;
|
|
1345
|
-
},
|
|
1346
|
-
[client, eventServers, workspaceId]
|
|
1347
|
-
);
|
|
1348
|
-
const loadEventTypes = useCallback(
|
|
1349
|
-
async (sourceId) => client.listEventSourceTypes(workspaceId, await realSourceId(sourceId)),
|
|
1350
|
-
[client, realSourceId, workspaceId]
|
|
1351
|
-
);
|
|
1352
|
-
const realEvents = useCallback(
|
|
1353
|
-
async (events) => ({
|
|
1354
|
-
...events,
|
|
1355
|
-
triggers: await Promise.all(
|
|
1356
|
-
events.triggers.map(async (trigger) => ({
|
|
1357
|
-
...trigger,
|
|
1358
|
-
sourceId: await realSourceId(trigger.sourceId)
|
|
1359
|
-
}))
|
|
1360
|
-
)
|
|
1361
|
-
}),
|
|
1362
|
-
[realSourceId]
|
|
1363
|
-
);
|
|
1364
|
-
const usesStandIn = useCallback(
|
|
1365
|
-
(events) => events.triggers.some((trigger) => isStandIn(trigger.sourceId)),
|
|
1366
|
-
[]
|
|
1367
|
-
);
|
|
1368
|
-
return { sources: withStandIns, loadEventTypes, realEvents, usesStandIn };
|
|
1369
|
-
}
|
|
1370
|
-
|
|
1371
|
-
export {
|
|
1372
|
-
eventArgumentLabel,
|
|
1373
|
-
eventArgumentFields,
|
|
1374
|
-
eventArgumentsValue,
|
|
1375
|
-
withEventArgument,
|
|
1376
|
-
eventArgumentsForEvent,
|
|
1377
|
-
EventArgumentsField,
|
|
1378
|
-
builtinAutomationTemplates,
|
|
1379
|
-
automationTemplatesFor,
|
|
1380
|
-
automationTemplateOfSaved,
|
|
1381
|
-
automationTemplateSourceChoice,
|
|
1382
|
-
automationTemplateWhenWords,
|
|
1383
|
-
automationTemplateCadence,
|
|
1384
|
-
automationTemplateSchedule,
|
|
1385
|
-
eventSourceFitsTemplate,
|
|
1386
|
-
automationTemplateSourceId,
|
|
1387
|
-
withTemplateSources,
|
|
1388
|
-
automationDraftFromTemplate,
|
|
1389
|
-
automationTemplateFromTask,
|
|
1390
|
-
useEventTypes,
|
|
1391
|
-
EventTriggersField,
|
|
1392
|
-
EventTriggerEditor,
|
|
1393
|
-
EventTypePicker,
|
|
1394
|
-
EventConditionsEditor,
|
|
1395
|
-
AUTOMATION_FREQUENCIES,
|
|
1396
|
-
AutomationWhenField,
|
|
1397
|
-
useEventSourceStandIns
|
|
1398
|
-
};
|
|
1399
|
-
//# sourceMappingURL=chunk-6SETNFNH.js.map
|